@vitest/browser 2.1.0-beta.7 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,43 +10,43 @@ var z_=Object.defineProperty;var I_=(e,t,r)=>t in e?z_(e,t,{enumerable:!0,config
10
10
  * @vue/runtime-core v3.4.37
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/function Ki(e,t,r,o){try{return o?e(...o):e()}catch(s){fa(s,t,r)}}function rr(e,t,r,o){if(Xe(e)){const s=Ki(e,t,r,o);return s&&$0(s)&&s.catch(c=>{fa(c,t,r)}),s}if(Ie(e)){const s=[];for(let c=0;c<e.length;c++)s.push(rr(e[c],t,r,o));return s}}function fa(e,t,r,o=!0){const s=t?t.vnode:null;if(t){let c=t.parent;const f=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${r}`;for(;c;){const p=c.ec;if(p){for(let v=0;v<p.length;v++)if(p[v](e,f,d)===!1)return}c=c.parent}const h=t.appContext.config.errorHandler;if(h){ro(),Ki(h,null,10,[e,f,d]),io();return}}LS(e,r,s,o)}function LS(e,t,r,o=!0){console.error(e)}let Wl=!1,gd=!1;const un=[];let Or=0;const ys=[];let Di=null,ko=0;const sy=Promise.resolve();let wh=null;function ln(e){const t=wh||sy;return e?t.then(this?e.bind(this):e):t}function AS(e){let t=Or+1,r=un.length;for(;t<r;){const o=t+r>>>1,s=un[o],c=Ul(s);c<e||c===e&&s.pre?t=o+1:r=o}return t}function xh(e){(!un.length||!un.includes(e,Wl&&e.allowRecurse?Or+1:Or))&&(e.id==null?un.push(e):un.splice(AS(e.id),0,e),ly())}function ly(){!Wl&&!gd&&(gd=!0,wh=sy.then(cy))}function MS(e){const t=un.indexOf(e);t>Or&&un.splice(t,1)}function vd(e){Ie(e)?ys.push(...e):(!Di||!Di.includes(e,e.allowRecurse?ko+1:ko))&&ys.push(e),ly()}function bv(e,t,r=Wl?Or+1:0){for(;r<un.length;r++){const o=un[r];if(o&&o.pre){if(e&&o.id!==e.uid)continue;un.splice(r,1),r--,o()}}}function ay(e){if(ys.length){const t=[...new Set(ys)].sort((r,o)=>Ul(r)-Ul(o));if(ys.length=0,Di){Di.push(...t);return}for(Di=t,ko=0;ko<Di.length;ko++){const r=Di[ko];r.active!==!1&&r()}Di=null,ko=0}}const Ul=e=>e.id==null?1/0:e.id,NS=(e,t)=>{const r=Ul(e)-Ul(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function cy(e){gd=!1,Wl=!0,un.sort(NS);try{for(Or=0;Or<un.length;Or++){const t=un[Or];t&&t.active!==!1&&Ki(t,t.i,t.i?15:14)}}finally{Or=0,un.length=0,ay(),Wl=!1,wh=null,(un.length||ys.length)&&cy()}}let Zt=null,bu=null;function Ic(e){const t=Zt;return Zt=e,bu=e&&e.type.__scopeId||null,t}function Is(e){bu=e}function Fs(){bu=null}const uy=e=>st;function st(e,t=Zt,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Wc(-1);const c=Ic(t);let f;try{f=e(...s)}finally{Ic(c),o._d&&Wc(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function vt(e,t){if(Zt===null)return e;const r=Eu(Zt),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=_t]=t[s];c&&(Xe(c)&&(c={mounted:c,updated:c}),c.deep&&Bi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function yo(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(ro(),rr(h,r,8,[e.el,d,e,t]),io())}}const zi=Symbol("_leaveCb"),oc=Symbol("_enterCb");function $S(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Hs(()=>{e.isMounted=!0}),vy(()=>{e.isUnmounting=!0}),e}const Qn=[Function,Array],fy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qn,onEnter:Qn,onAfterEnter:Qn,onEnterCancelled:Qn,onBeforeLeave:Qn,onLeave:Qn,onAfterLeave:Qn,onLeaveCancelled:Qn,onBeforeAppear:Qn,onAppear:Qn,onAfterAppear:Qn,onAppearCancelled:Qn},dy=e=>{const t=e.subTree;return t.component?dy(t.component):t},PS={name:"BaseTransition",props:fy,setup(e,{slots:t}){const r=da(),o=$S();return()=>{const s=t.default&&py(t.default(),!0);if(!s||!s.length)return;let c=s[0];if(s.length>1){for(const b of s)if(b.type!==fn){c=b;break}}const f=gt(e),{mode:d}=f;if(o.isLeaving)return Bf(c);const h=wv(c);if(!h)return Bf(c);let p=md(h,f,o,r,b=>p=b);Fc(h,p);const v=r.subTree,y=v&&wv(v);if(y&&y.type!==fn&&!Rr(h,y)&&dy(r).type!==fn){const b=md(y,f,o,r);if(Fc(y,b),d==="out-in"&&h.type!==fn)return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Bf(c);d==="in-out"&&h.type!==fn&&(b.delayLeave=(x,E,C)=>{const L=hy(o,y);L[String(y.key)]=y,x[zi]=()=>{E(),x[zi]=void 0,delete p.delayedLeave},p.delayedLeave=C})}return c}}},OS=PS;function hy(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function md(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:y,onBeforeLeave:b,onLeave:x,onAfterLeave:E,onLeaveCancelled:C,onBeforeAppear:L,onAppear:N,onAfterAppear:A,onAppearCancelled:P}=t,M=String(e.key),q=hy(r,e),W=(ee,j)=>{ee&&rr(ee,o,9,j)},X=(ee,j)=>{const te=j[1];W(ee,j),Ie(ee)?ee.every(Z=>Z.length<=1)&&te():ee.length<=1&&te()},ie={mode:f,persisted:d,beforeEnter(ee){let j=h;if(!r.isMounted)if(c)j=L||h;else return;ee[zi]&&ee[zi](!0);const te=q[M];te&&Rr(e,te)&&te.el[zi]&&te.el[zi](),W(j,[ee])},enter(ee){let j=p,te=v,Z=y;if(!r.isMounted)if(c)j=N||p,te=A||v,Z=P||y;else return;let H=!1;const I=ee[oc]=k=>{H||(H=!0,k?W(Z,[ee]):W(te,[ee]),ie.delayedLeave&&ie.delayedLeave(),ee[oc]=void 0)};j?X(j,[ee,I]):I()},leave(ee,j){const te=String(e.key);if(ee[oc]&&ee[oc](!0),r.isUnmounting)return j();W(b,[ee]);let Z=!1;const H=ee[zi]=I=>{Z||(Z=!0,j(),I?W(C,[ee]):W(E,[ee]),ee[zi]=void 0,q[te]===e&&delete q[te])};q[te]=e,x?X(x,[ee,H]):H()},clone(ee){const j=md(ee,t,r,o,s);return s&&s(j),j}};return ie}function Bf(e){if(wu(e))return e=Zi(e),e.children=null,e}function wv(e){if(!wu(e))return e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Xe(r.default))return r.default()}}function Fc(e,t){e.shapeFlag&6&&e.component?Fc(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function py(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===ut?(f.patchFlag&128&&s++,o=o.concat(py(f.children,t,d))):(t||f.type!==fn)&&o.push(d!=null?Zi(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ft(e,t){return Xe(e)?Xt({name:e.name},t,{setup:e}):e}const Nl=e=>!!e.type.__asyncLoader,wu=e=>e.type.__isKeepAlive;function RS(e,t){gy(e,"a",t)}function DS(e,t){gy(e,"da",t)}function gy(e,t,r=sn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(xu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)wu(s.parent.vnode)&&zS(o,t,r,s),s=s.parent}}function zS(e,t,r,o){const s=xu(t,e,o,!0);_u(()=>{ah(o[t],s)},r)}function xu(e,t,r=sn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{ro();const d=ha(r),h=rr(t,r,e,f);return d(),io(),h});return o?s.unshift(c):s.push(c),c}}const pi=e=>(t,r=sn)=>{(!Tu||e==="sp")&&xu(e,(...o)=>t(...o),r)},IS=pi("bm"),Hs=pi("m"),FS=pi("bu"),HS=pi("u"),vy=pi("bum"),_u=pi("um"),qS=pi("sp"),BS=pi("rtg"),WS=pi("rtc");function US(e,t=sn){xu("ec",e,t)}const _h="components",VS="directives";function Po(e,t){return Sh(_h,e,!0,t)||e}const my=Symbol.for("v-ndc");function xv(e){return $t(e)?Sh(_h,e,!1)||e:e||my}function Ur(e){return Sh(VS,e)}function Sh(e,t,r=!0,o=!1){const s=Zt||sn;if(s){const c=s.type;if(e===_h){const d=Hk(c,!1);if(d&&(d===t||d===ir(t)||d===gu(ir(t))))return c}const f=_v(s[e]||c[e],t)||_v(s.appContext[e],t);return!f&&o?c:f}}function _v(e,t){return e&&(e[t]||e[ir(t)]||e[gu(ir(t))])}function ui(e,t,r,o){let s;const c=r;if(Ie(e)||$t(e)){s=new Array(e.length);for(let f=0,d=e.length;f<d;f++)s[f]=t(e[f],f,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let f=0;f<e;f++)s[f]=t(f+1,f,void 0,c)}else if(St(e))if(e[Symbol.iterator])s=Array.from(e,(f,d)=>t(f,d,void 0,c));else{const f=Object.keys(e);s=new Array(f.length);for(let d=0,h=f.length;d<h;d++){const p=f[d];s[d]=t(e[p],p,d,c)}}else s=[];return s}function jS(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Ie(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function hn(e,t,r={},o,s){if(Zt.isCE||Zt.parent&&Nl(Zt.parent)&&Zt.parent.isCE)return t!=="default"&&(r.name=t),Pe("slot",r,o&&o());let c=e[t];c&&c._c&&(c._d=!1),oe();const f=c&&yy(c(r)),d=ot(ut,{key:(r.key||f&&f.key||`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return d.scopeId&&(d.slotScopeIds=[d.scopeId+"-s"]),c&&c._c&&(c._d=!0),d}function yy(e){return e.some(t=>jl(t)?!(t.type===fn||t.type===ut&&!yy(t.children)):!0)?e:null}function GS(e,t){const r={};for(const o in e)r[xc(o)]=e[o];return r}const yd=e=>e?qy(e)?Eu(e):yd(e.parent):null,$l=Xt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>yd(e.parent),$root:e=>yd(e.root),$emit:e=>e.emit,$options:e=>kh(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xh(e.update)}),$nextTick:e=>e.n||(e.n=ln.bind(e.proxy)),$watch:e=>bk.bind(e)}),Wf=(e,t)=>e!==_t&&!e.__isScriptSetup&&ct(e,t),KS={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const x=f[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Wf(o,t))return f[t]=1,o[t];if(s!==_t&&ct(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&ct(p,t))return f[t]=3,c[t];if(r!==_t&&ct(r,t))return f[t]=4,r[t];bd&&(f[t]=0)}}const v=$l[t];let y,b;if(v)return t==="$attrs"&&Fn(e.attrs,"get",""),v(e);if((y=d.__cssModules)&&(y=y[t]))return y;if(r!==_t&&ct(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,ct(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Wf(s,t)?(s[t]=r,!0):o!==_t&&ct(o,t)?(o[t]=r,!0):ct(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c}},f){let d;return!!r[f]||e!==_t&&ct(e,f)||Wf(t,f)||(d=c[0])&&ct(d,f)||ct(o,f)||ct($l,f)||ct(s.config.globalProperties,f)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ct(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function XS(){return YS().attrs}function YS(){const e=da();return e.setupContext||(e.setupContext=Wy(e))}function Hc(e){return Ie(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function qc(e,t){return!e||!t?e||t:Ie(e)&&Ie(t)?e.concat(t):Xt({},Hc(e),Hc(t))}let bd=!0;function ZS(e){const t=kh(e),r=e.proxy,o=e.ctx;bd=!1,t.beforeCreate&&Sv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:y,mounted:b,beforeUpdate:x,updated:E,activated:C,deactivated:L,beforeDestroy:N,beforeUnmount:A,destroyed:P,unmounted:M,render:q,renderTracked:W,renderTriggered:X,errorCaptured:ie,serverPrefetch:ee,expose:j,inheritAttrs:te,components:Z,directives:H,filters:I}=t;if(p&&JS(p,o,null),f)for(const U in f){const re=f[U];Xe(re)&&(o[U]=re.bind(r))}if(s){const U=s.call(r,r);St(U)&&(e.data=Xn(U))}if(bd=!0,c)for(const U in c){const re=c[U],ye=Xe(re)?re.bind(r,r):Xe(re.get)?re.get.bind(r,r):tr,Ne=!Xe(re)&&Xe(re.set)?re.set.bind(r):tr,We=Ce({get:ye,set:Ne});Object.defineProperty(o,U,{enumerable:!0,configurable:!0,get:()=>We.value,set:je=>We.value=je})}if(d)for(const U in d)by(d[U],o,r,U);if(h){const U=Xe(h)?h.call(r):h;Reflect.ownKeys(U).forEach(re=>{Sc(re,U[re])})}v&&Sv(v,e,"c");function B(U,re){Ie(re)?re.forEach(ye=>U(ye.bind(r))):re&&U(re.bind(r))}if(B(IS,y),B(Hs,b),B(FS,x),B(HS,E),B(RS,C),B(DS,L),B(US,ie),B(WS,W),B(BS,X),B(vy,A),B(_u,M),B(qS,ee),Ie(j))if(j.length){const U=e.exposed||(e.exposed={});j.forEach(re=>{Object.defineProperty(U,re,{get:()=>r[re],set:ye=>r[re]=ye})})}else e.exposed||(e.exposed={});q&&e.render===tr&&(e.render=q),te!=null&&(e.inheritAttrs=te),Z&&(e.components=Z),H&&(e.directives=H)}function JS(e,t,r=tr){Ie(e)&&(e=wd(e));for(const o in e){const s=e[o];let c;St(s)?"default"in s?c=li(s.from||o,s.default,!0):c=li(s.from||o):c=li(s),Pt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function Sv(e,t,r){rr(Ie(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function by(e,t,r,o){const s=o.includes(".")?$y(r,o):()=>r[o];if($t(e)){const c=t[e];Xe(c)&&It(s,c)}else if(Xe(e))It(s,e.bind(r));else if(St(e))if(Ie(e))e.forEach(c=>by(c,t,r,o));else{const c=Xe(e.handler)?e.handler.bind(r):t[e.handler];Xe(c)&&It(s,c,e)}}function kh(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>Bc(h,p,f,!0)),Bc(h,t,f)),St(t)&&c.set(t,h),h}function Bc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Bc(e,c,r,!0),s&&s.forEach(f=>Bc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=QS[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const QS={data:kv,props:Cv,emits:Cv,methods:Cl,computed:Cl,beforeCreate:_n,created:_n,beforeMount:_n,mounted:_n,beforeUpdate:_n,updated:_n,beforeDestroy:_n,beforeUnmount:_n,destroyed:_n,unmounted:_n,activated:_n,deactivated:_n,errorCaptured:_n,serverPrefetch:_n,components:Cl,directives:Cl,watch:tk,provide:kv,inject:ek};function kv(e,t){return t?e?function(){return Xt(Xe(e)?e.call(this,this):e,Xe(t)?t.call(this,this):t)}:t:e}function ek(e,t){return Cl(wd(e),wd(t))}function wd(e){if(Ie(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function _n(e,t){return e?[...new Set([].concat(e,t))]:t}function Cl(e,t){return e?Xt(Object.create(null),e,t):t}function Cv(e,t){return e?Ie(e)&&Ie(t)?[...new Set([...e,...t])]:Xt(Object.create(null),Hc(e),Hc(t??{})):t}function tk(e,t){if(!e)return t;if(!t)return e;const r=Xt(Object.create(null),e);for(const o in t)r[o]=_n(e[o],t[o]);return r}function wy(){return{app:null,config:{isNativeTag:F_,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 nk=0;function rk(e,t){return function(o,s=null){Xe(o)||(o=Xt({},o)),s!=null&&!St(s)&&(s=null);const c=wy(),f=new WeakSet;let d=!1;const h=c.app={_uid:nk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:Bk,get config(){return c.config},set config(p){},use(p,...v){return f.has(p)||(p&&Xe(p.install)?(f.add(p),p.install(h,...v)):Xe(p)&&(f.add(p),p(h,...v))),h},mixin(p){return c.mixins.includes(p)||c.mixins.push(p),h},component(p,v){return v?(c.components[p]=v,h):c.components[p]},directive(p,v){return v?(c.directives[p]=v,h):c.directives[p]},mount(p,v,y){if(!d){const b=Pe(o,s);return b.appContext=c,y===!0?y="svg":y===!1&&(y=void 0),v&&t?t(b,p):e(b,p,y),d=!0,h._container=p,p.__vue_app__=h,Eu(b.component)}},unmount(){d&&(e(null,h._container),delete h._container.__vue_app__)},provide(p,v){return c.provides[p]=v,h},runWithContext(p){const v=bs;bs=h;try{return p()}finally{bs=v}}};return h}}let bs=null;function Sc(e,t){if(sn){let r=sn.provides;const o=sn.parent&&sn.parent.provides;o===r&&(r=sn.provides=Object.create(o)),r[e]=t}}function li(e,t,r=!1){const o=sn||Zt;if(o||bs){const s=bs?bs._context.provides:o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Xe(t)?t.call(o&&o.proxy):t}}const xy={},_y=()=>Object.create(xy),Sy=e=>Object.getPrototypeOf(e)===xy;function ik(e,t,r,o=!1){const s={},c=_y();e.propsDefaults=Object.create(null),ky(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:gh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function ok(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=gt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let y=0;y<v.length;y++){let b=v[y];if(ku(e.emitsOptions,b))continue;const x=t[b];if(h)if(ct(c,b))x!==c[b]&&(c[b]=x,p=!0);else{const E=ir(b);s[E]=xd(h,d,E,x,e,!1)}else x!==c[b]&&(c[b]=x,p=!0)}}}else{ky(e,t,s,c)&&(p=!0);let v;for(const y in d)(!t||!ct(t,y)&&((v=hi(y))===y||!ct(t,v)))&&(h?r&&(r[y]!==void 0||r[v]!==void 0)&&(s[y]=xd(h,d,y,void 0,e,!0)):delete s[y]);if(c!==d)for(const y in c)(!t||!ct(t,y))&&(delete c[y],p=!0)}p&&si(e.attrs,"set","")}function ky(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Ll(h))continue;const p=t[h];let v;s&&ct(s,v=ir(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:ku(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=gt(r),p=d||_t;for(let v=0;v<c.length;v++){const y=c[v];r[y]=xd(s,h,y,p[y],e,!ct(p,y))}}return f}function xd(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=ct(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Xe(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=ha(s);o=p[r]=h.call(null,t),v()}}else o=h}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===hi(r))&&(o=!0))}return o}const sk=new WeakMap;function Cy(e,t,r=!1){const o=r?sk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Xe(e)){const v=y=>{h=!0;const[b,x]=Cy(y,t,!0);Xt(f,b),x&&d.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return St(e)&&o.set(e,vs),vs;if(Ie(c))for(let v=0;v<c.length;v++){const y=ir(c[v]);Tv(y)&&(f[y]=_t)}else if(c)for(const v in c){const y=ir(v);if(Tv(y)){const b=c[v],x=f[y]=Ie(b)||Xe(b)?{type:b}:Xt({},b),E=x.type;let C=!1,L=!0;if(Ie(E))for(let N=0;N<E.length;++N){const A=E[N],P=Xe(A)&&A.name;if(P==="Boolean"){C=!0;break}else P==="String"&&(L=!1)}else C=Xe(E)&&E.name==="Boolean";x[0]=C,x[1]=L,(C||ct(x,"default"))&&d.push(y)}}const p=[f,d];return St(e)&&o.set(e,p),p}function Tv(e){return e[0]!=="$"&&!Ll(e)}const Ty=e=>e[0]==="_"||e==="$stable",Ch=e=>Ie(e)?e.map(wr):[wr(e)],lk=(e,t,r)=>{if(t._n)return t;const o=st((...s)=>Ch(t(...s)),r);return o._c=!1,o},Ey=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Ty(s))continue;const c=e[s];if(Xe(c))t[s]=lk(s,c,o);else if(c!=null){const f=Ch(c);t[s]=()=>f}}},Ly=(e,t)=>{const r=Ch(t);e.slots.default=()=>r},Ay=(e,t,r)=>{for(const o in t)(r||o!=="_")&&(e[o]=t[o])},ak=(e,t,r)=>{const o=e.slots=_y();if(e.vnode.shapeFlag&32){const s=t._;s?(Ay(o,t,r),r&&R0(o,"_",s,!0)):Ey(t,o)}else t&&Ly(e,t)},ck=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=_t;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:Ay(s,t,r):(c=!t.$stable,Ey(t,s)),f=t}else t&&(Ly(e,t),f={default:1});if(c)for(const d in s)!Ty(d)&&f[d]==null&&delete s[d]};function _d(e,t,r,o,s=!1){if(Ie(e)){e.forEach((b,x)=>_d(b,t&&(Ie(t)?t[x]:t),r,o,s));return}if(Nl(o)&&!s)return;const c=o.shapeFlag&4?Eu(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===_t?d.refs={}:d.refs,y=d.setupState;if(p!=null&&p!==h&&($t(p)?(v[p]=null,ct(y,p)&&(y[p]=null)):Pt(p)&&(p.value=null)),Xe(h))Ki(h,d,12,[f,v]);else{const b=$t(h),x=Pt(h);if(b||x){const E=()=>{if(e.f){const C=b?ct(y,h)?y[h]:v[h]:h.value;s?Ie(C)&&ah(C,c):Ie(C)?C.includes(c)||C.push(c):b?(v[h]=[c],ct(y,h)&&(y[h]=v[h])):(h.value=[c],e.k&&(v[e.k]=h.value))}else b?(v[h]=f,ct(y,h)&&(y[h]=f)):x&&(h.value=f,e.k&&(v[e.k]=f))};f?(E.id=-1,$n(E,r)):E()}}}const uk=Symbol("_vte"),fk=e=>e.__isTeleport,$n=Nk;function dk(e){return hk(e)}function hk(e,t){const r=z0();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:y,nextSibling:b,setScopeId:x=tr,insertStaticContent:E}=e,C=(O,F,J,ue=null,le=null,he=null,Se=void 0,fe=null,xe=!!F.dynamicChildren)=>{if(O===F)return;O&&!Rr(O,F)&&(ue=K(O),je(O,le,he,!0),O=null),F.patchFlag===-2&&(xe=!1,F.dynamicChildren=null);const{type:pe,ref:Me,shapeFlag:ze}=F;switch(pe){case Cu:L(O,F,J,ue);break;case fn:N(O,F,J,ue);break;case jf:O==null&&A(F,J,ue,Se);break;case ut:Z(O,F,J,ue,le,he,Se,fe,xe);break;default:ze&1?q(O,F,J,ue,le,he,Se,fe,xe):ze&6?H(O,F,J,ue,le,he,Se,fe,xe):(ze&64||ze&128)&&pe.process(O,F,J,ue,le,he,Se,fe,xe,$e)}Me!=null&&le&&_d(Me,O&&O.ref,he,F||O,!F)},L=(O,F,J,ue)=>{if(O==null)o(F.el=d(F.children),J,ue);else{const le=F.el=O.el;F.children!==O.children&&p(le,F.children)}},N=(O,F,J,ue)=>{O==null?o(F.el=h(F.children||""),J,ue):F.el=O.el},A=(O,F,J,ue)=>{[O.el,O.anchor]=E(O.children,F,J,ue,O.el,O.anchor)},P=({el:O,anchor:F},J,ue)=>{let le;for(;O&&O!==F;)le=b(O),o(O,J,ue),O=le;o(F,J,ue)},M=({el:O,anchor:F})=>{let J;for(;O&&O!==F;)J=b(O),s(O),O=J;s(F)},q=(O,F,J,ue,le,he,Se,fe,xe)=>{F.type==="svg"?Se="svg":F.type==="math"&&(Se="mathml"),O==null?W(F,J,ue,le,he,Se,fe,xe):ee(O,F,le,he,Se,fe,xe)},W=(O,F,J,ue,le,he,Se,fe)=>{let xe,pe;const{props:Me,shapeFlag:ze,transition:Re,dirs:Ue}=O;if(xe=O.el=f(O.type,he,Me&&Me.is,Me),ze&8?v(xe,O.children):ze&16&&ie(O.children,xe,null,ue,le,Uf(O,he),Se,fe),Ue&&yo(O,null,ue,"created"),X(xe,O,O.scopeId,Se,ue),Me){for(const mt in Me)mt!=="value"&&!Ll(mt)&&c(xe,mt,null,Me[mt],he,ue);"value"in Me&&c(xe,"value",null,Me.value,he),(pe=Me.onVnodeBeforeMount)&&$r(pe,ue,O)}Ue&&yo(O,null,ue,"beforeMount");const Ge=pk(le,Re);Ge&&Re.beforeEnter(xe),o(xe,F,J),((pe=Me&&Me.onVnodeMounted)||Ge||Ue)&&$n(()=>{pe&&$r(pe,ue,O),Ge&&Re.enter(xe),Ue&&yo(O,null,ue,"mounted")},le)},X=(O,F,J,ue,le)=>{if(J&&x(O,J),ue)for(let he=0;he<ue.length;he++)x(O,ue[he]);if(le){let he=le.subTree;if(F===he){const Se=le.vnode;X(O,Se,Se.scopeId,Se.slotScopeIds,le.parent)}}},ie=(O,F,J,ue,le,he,Se,fe,xe=0)=>{for(let pe=xe;pe<O.length;pe++){const Me=O[pe]=fe?Ii(O[pe]):wr(O[pe]);C(null,Me,F,J,ue,le,he,Se,fe)}},ee=(O,F,J,ue,le,he,Se)=>{const fe=F.el=O.el;let{patchFlag:xe,dynamicChildren:pe,dirs:Me}=F;xe|=O.patchFlag&16;const ze=O.props||_t,Re=F.props||_t;let Ue;if(J&&bo(J,!1),(Ue=Re.onVnodeBeforeUpdate)&&$r(Ue,J,F,O),Me&&yo(F,O,J,"beforeUpdate"),J&&bo(J,!0),(ze.innerHTML&&Re.innerHTML==null||ze.textContent&&Re.textContent==null)&&v(fe,""),pe?j(O.dynamicChildren,pe,fe,J,ue,Uf(F,le),he):Se||re(O,F,fe,null,J,ue,Uf(F,le),he,!1),xe>0){if(xe&16)te(fe,ze,Re,J,le);else if(xe&2&&ze.class!==Re.class&&c(fe,"class",null,Re.class,le),xe&4&&c(fe,"style",ze.style,Re.style,le),xe&8){const Ge=F.dynamicProps;for(let mt=0;mt<Ge.length;mt++){const tt=Ge[mt],nt=ze[tt],Ft=Re[tt];(Ft!==nt||tt==="value")&&c(fe,tt,nt,Ft,le,J)}}xe&1&&O.children!==F.children&&v(fe,F.children)}else!Se&&pe==null&&te(fe,ze,Re,J,le);((Ue=Re.onVnodeUpdated)||Me)&&$n(()=>{Ue&&$r(Ue,J,F,O),Me&&yo(F,O,J,"updated")},ue)},j=(O,F,J,ue,le,he,Se)=>{for(let fe=0;fe<F.length;fe++){const xe=O[fe],pe=F[fe],Me=xe.el&&(xe.type===ut||!Rr(xe,pe)||xe.shapeFlag&70)?y(xe.el):J;C(xe,pe,Me,null,ue,le,he,Se,!0)}},te=(O,F,J,ue,le)=>{if(F!==J){if(F!==_t)for(const he in F)!Ll(he)&&!(he in J)&&c(O,he,F[he],null,le,ue);for(const he in J){if(Ll(he))continue;const Se=J[he],fe=F[he];Se!==fe&&he!=="value"&&c(O,he,fe,Se,le,ue)}"value"in J&&c(O,"value",F.value,J.value,le)}},Z=(O,F,J,ue,le,he,Se,fe,xe)=>{const pe=F.el=O?O.el:d(""),Me=F.anchor=O?O.anchor:d("");let{patchFlag:ze,dynamicChildren:Re,slotScopeIds:Ue}=F;Ue&&(fe=fe?fe.concat(Ue):Ue),O==null?(o(pe,J,ue),o(Me,J,ue),ie(F.children||[],J,Me,le,he,Se,fe,xe)):ze>0&&ze&64&&Re&&O.dynamicChildren?(j(O.dynamicChildren,Re,J,le,he,Se,fe),(F.key!=null||le&&F===le.subTree)&&My(O,F,!0)):re(O,F,J,Me,le,he,Se,fe,xe)},H=(O,F,J,ue,le,he,Se,fe,xe)=>{F.slotScopeIds=fe,O==null?F.shapeFlag&512?le.ctx.activate(F,J,ue,Se,xe):I(F,J,ue,le,he,Se,xe):k(O,F,xe)},I=(O,F,J,ue,le,he,Se)=>{const fe=O.component=Dk(O,ue,le);if(wu(O)&&(fe.ctx.renderer=$e),zk(fe,!1,Se),fe.asyncDep){if(le&&le.registerDep(fe,B,Se),!O.el){const xe=fe.subTree=Pe(fn);N(null,xe,F,J)}}else B(fe,O,F,J,le,he,Se)},k=(O,F,J)=>{const ue=F.component=O.component;if(kk(O,F,J))if(ue.asyncDep&&!ue.asyncResolved){U(ue,F,J);return}else ue.next=F,MS(ue.update),ue.effect.dirty=!0,ue.update();else F.el=O.el,ue.vnode=F},B=(O,F,J,ue,le,he,Se)=>{const fe=()=>{if(O.isMounted){let{next:Me,bu:ze,u:Re,parent:Ue,vnode:Ge}=O;{const Jt=Ny(O);if(Jt){Me&&(Me.el=Ge.el,U(O,Me,Se)),Jt.asyncDep.then(()=>{O.isUnmounted||fe()});return}}let mt=Me,tt;bo(O,!1),Me?(Me.el=Ge.el,U(O,Me,Se)):Me=Ge,ze&&_c(ze),(tt=Me.props&&Me.props.onVnodeBeforeUpdate)&&$r(tt,Ue,Me,Ge),bo(O,!0);const nt=Vf(O),Ft=O.subTree;O.subTree=nt,C(Ft,nt,y(Ft.el),K(Ft),O,le,he),Me.el=nt.el,mt===null&&Lh(O,nt.el),Re&&$n(Re,le),(tt=Me.props&&Me.props.onVnodeUpdated)&&$n(()=>$r(tt,Ue,Me,Ge),le)}else{let Me;const{el:ze,props:Re}=F,{bm:Ue,m:Ge,parent:mt}=O,tt=Nl(F);if(bo(O,!1),Ue&&_c(Ue),!tt&&(Me=Re&&Re.onVnodeBeforeMount)&&$r(Me,mt,F),bo(O,!0),ze&&Ze){const nt=()=>{O.subTree=Vf(O),Ze(ze,O.subTree,O,le,null)};tt?F.type.__asyncLoader().then(()=>!O.isUnmounted&&nt()):nt()}else{const nt=O.subTree=Vf(O);C(null,nt,J,ue,O,le,he),F.el=nt.el}if(Ge&&$n(Ge,le),!tt&&(Me=Re&&Re.onVnodeMounted)){const nt=F;$n(()=>$r(Me,mt,nt),le)}(F.shapeFlag&256||mt&&Nl(mt.vnode)&&mt.vnode.shapeFlag&256)&&O.a&&$n(O.a,le),O.isMounted=!0,F=J=ue=null}},xe=O.effect=new uh(fe,tr,()=>xh(pe),O.scope),pe=O.update=()=>{xe.dirty&&xe.run()};pe.i=O,pe.id=O.uid,bo(O,!0),pe()},U=(O,F,J)=>{F.component=O;const ue=O.vnode.props;O.vnode=F,O.next=null,ok(O,F.props,ue,J),ck(O,F.children,J),ro(),bv(O),io()},re=(O,F,J,ue,le,he,Se,fe,xe=!1)=>{const pe=O&&O.children,Me=O?O.shapeFlag:0,ze=F.children,{patchFlag:Re,shapeFlag:Ue}=F;if(Re>0){if(Re&128){Ne(pe,ze,J,ue,le,he,Se,fe,xe);return}else if(Re&256){ye(pe,ze,J,ue,le,he,Se,fe,xe);return}}Ue&8?(Me&16&&Le(pe,le,he),ze!==pe&&v(J,ze)):Me&16?Ue&16?Ne(pe,ze,J,ue,le,he,Se,fe,xe):Le(pe,le,he,!0):(Me&8&&v(J,""),Ue&16&&ie(ze,J,ue,le,he,Se,fe,xe))},ye=(O,F,J,ue,le,he,Se,fe,xe)=>{O=O||vs,F=F||vs;const pe=O.length,Me=F.length,ze=Math.min(pe,Me);let Re;for(Re=0;Re<ze;Re++){const Ue=F[Re]=xe?Ii(F[Re]):wr(F[Re]);C(O[Re],Ue,J,null,le,he,Se,fe,xe)}pe>Me?Le(O,le,he,!0,!1,ze):ie(F,J,ue,le,he,Se,fe,xe,ze)},Ne=(O,F,J,ue,le,he,Se,fe,xe)=>{let pe=0;const Me=F.length;let ze=O.length-1,Re=Me-1;for(;pe<=ze&&pe<=Re;){const Ue=O[pe],Ge=F[pe]=xe?Ii(F[pe]):wr(F[pe]);if(Rr(Ue,Ge))C(Ue,Ge,J,null,le,he,Se,fe,xe);else break;pe++}for(;pe<=ze&&pe<=Re;){const Ue=O[ze],Ge=F[Re]=xe?Ii(F[Re]):wr(F[Re]);if(Rr(Ue,Ge))C(Ue,Ge,J,null,le,he,Se,fe,xe);else break;ze--,Re--}if(pe>ze){if(pe<=Re){const Ue=Re+1,Ge=Ue<Me?F[Ue].el:ue;for(;pe<=Re;)C(null,F[pe]=xe?Ii(F[pe]):wr(F[pe]),J,Ge,le,he,Se,fe,xe),pe++}}else if(pe>Re)for(;pe<=ze;)je(O[pe],le,he,!0),pe++;else{const Ue=pe,Ge=pe,mt=new Map;for(pe=Ge;pe<=Re;pe++){const Qt=F[pe]=xe?Ii(F[pe]):wr(F[pe]);Qt.key!=null&&mt.set(Qt.key,pe)}let tt,nt=0;const Ft=Re-Ge+1;let Jt=!1,lr=0;const qn=new Array(Ft);for(pe=0;pe<Ft;pe++)qn[pe]=0;for(pe=Ue;pe<=ze;pe++){const Qt=O[pe];if(nt>=Ft){je(Qt,le,he,!0);continue}let Ve;if(Qt.key!=null)Ve=mt.get(Qt.key);else for(tt=Ge;tt<=Re;tt++)if(qn[tt-Ge]===0&&Rr(Qt,F[tt])){Ve=tt;break}Ve===void 0?je(Qt,le,he,!0):(qn[Ve-Ge]=pe+1,Ve>=lr?lr=Ve:Jt=!0,C(Qt,F[Ve],J,null,le,he,Se,fe,xe),nt++)}const ar=Jt?gk(qn):vs;for(tt=ar.length-1,pe=Ft-1;pe>=0;pe--){const Qt=Ge+pe,Ve=F[Qt],oo=Qt+1<Me?F[Qt+1].el:ue;qn[pe]===0?C(null,Ve,J,oo,le,he,Se,fe,xe):Jt&&(tt<0||pe!==ar[tt]?We(Ve,J,oo,2):tt--)}}},We=(O,F,J,ue,le=null)=>{const{el:he,type:Se,transition:fe,children:xe,shapeFlag:pe}=O;if(pe&6){We(O.component.subTree,F,J,ue);return}if(pe&128){O.suspense.move(F,J,ue);return}if(pe&64){Se.move(O,F,J,$e);return}if(Se===ut){o(he,F,J);for(let ze=0;ze<xe.length;ze++)We(xe[ze],F,J,ue);o(O.anchor,F,J);return}if(Se===jf){P(O,F,J);return}if(ue!==2&&pe&1&&fe)if(ue===0)fe.beforeEnter(he),o(he,F,J),$n(()=>fe.enter(he),le);else{const{leave:ze,delayLeave:Re,afterLeave:Ue}=fe,Ge=()=>o(he,F,J),mt=()=>{ze(he,()=>{Ge(),Ue&&Ue()})};Re?Re(he,Ge,mt):mt()}else o(he,F,J)},je=(O,F,J,ue=!1,le=!1)=>{const{type:he,props:Se,ref:fe,children:xe,dynamicChildren:pe,shapeFlag:Me,patchFlag:ze,dirs:Re,cacheIndex:Ue}=O;if(ze===-2&&(le=!1),fe!=null&&_d(fe,null,J,O,!0),Ue!=null&&(F.renderCache[Ue]=void 0),Me&256){F.ctx.deactivate(O);return}const Ge=Me&1&&Re,mt=!Nl(O);let tt;if(mt&&(tt=Se&&Se.onVnodeBeforeUnmount)&&$r(tt,F,O),Me&6)Je(O.component,J,ue);else{if(Me&128){O.suspense.unmount(J,ue);return}Ge&&yo(O,null,F,"beforeUnmount"),Me&64?O.type.remove(O,F,J,$e,ue):pe&&!pe.hasOnce&&(he!==ut||ze>0&&ze&64)?Le(pe,F,J,!1,!0):(he===ut&&ze&384||!le&&Me&16)&&Le(xe,F,J),ue&&it(O)}(mt&&(tt=Se&&Se.onVnodeUnmounted)||Ge)&&$n(()=>{tt&&$r(tt,F,O),Ge&&yo(O,null,F,"unmounted")},J)},it=O=>{const{type:F,el:J,anchor:ue,transition:le}=O;if(F===ut){rt(J,ue);return}if(F===jf){M(O);return}const he=()=>{s(J),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(O.shapeFlag&1&&le&&!le.persisted){const{leave:Se,delayLeave:fe}=le,xe=()=>Se(J,he);fe?fe(O.el,he,xe):xe()}else he()},rt=(O,F)=>{let J;for(;O!==F;)J=b(O),s(O),O=J;s(F)},Je=(O,F,J)=>{const{bum:ue,scope:le,update:he,subTree:Se,um:fe,m:xe,a:pe}=O;Ev(xe),Ev(pe),ue&&_c(ue),le.stop(),he&&(he.active=!1,je(Se,O,F,J)),fe&&$n(fe,F),$n(()=>{O.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve())},Le=(O,F,J,ue=!1,le=!1,he=0)=>{for(let Se=he;Se<O.length;Se++)je(O[Se],F,J,ue,le)},K=O=>{if(O.shapeFlag&6)return K(O.component.subTree);if(O.shapeFlag&128)return O.suspense.next();const F=b(O.anchor||O.el),J=F&&F[uk];return J?b(J):F};let ae=!1;const de=(O,F,J)=>{O==null?F._vnode&&je(F._vnode,null,null,!0):C(F._vnode||null,O,F,null,null,null,J),F._vnode=O,ae||(ae=!0,bv(),ay(),ae=!1)},$e={p:C,um:je,m:We,r:it,mt:I,mc:ie,pc:re,pbc:j,n:K,o:e};let Ee,Ze;return{render:de,hydrate:Ee,createApp:rk(de,Ee)}}function Uf({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function bo({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function pk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function My(e,t,r=!1){const o=e.children,s=t.children;if(Ie(o)&&Ie(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=Ii(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&My(f,d)),d.type===Cu&&(d.el=f.el)}}function gk(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function Ny(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ny(t)}function Ev(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const vk=Symbol.for("v-scx"),mk=()=>li(vk);function Th(e,t){return Su(e,null,t)}function yk(e,t){return Su(e,null,{flush:"sync"})}const sc={};function It(e,t,r){return Su(e,t,r)}function Su(e,t,{immediate:r,deep:o,flush:s,once:c,onTrack:f,onTrigger:d}=_t){if(t&&c){const W=t;t=(...X)=>{W(...X),q()}}const h=sn,p=W=>o===!0?W:Bi(W,o===!1?1:void 0);let v,y=!1,b=!1;if(Pt(e)?(v=()=>e.value,y=Es(e)):Al(e)?(v=()=>p(e),y=!0):Ie(e)?(b=!0,y=e.some(W=>Al(W)||Es(W)),v=()=>e.map(W=>{if(Pt(W))return W.value;if(Al(W))return p(W);if(Xe(W))return Ki(W,h,2)})):Xe(e)?t?v=()=>Ki(e,h,2):v=()=>(x&&x(),rr(e,h,3,[E])):v=tr,t&&o){const W=v;v=()=>Bi(W())}let x,E=W=>{x=P.onStop=()=>{Ki(W,h,4),x=P.onStop=void 0}},C;if(Tu)if(E=tr,t?r&&rr(t,h,3,[v(),b?[]:void 0,E]):v(),s==="sync"){const W=mk();C=W.__watcherHandles||(W.__watcherHandles=[])}else return tr;let L=b?new Array(e.length).fill(sc):sc;const N=()=>{if(!(!P.active||!P.dirty))if(t){const W=P.run();(o||y||(b?W.some((X,ie)=>Rn(X,L[ie])):Rn(W,L)))&&(x&&x(),rr(t,h,3,[W,L===sc?void 0:b&&L[0]===sc?[]:L,E]),L=W)}else P.run()};N.allowRecurse=!!t;let A;s==="sync"?A=N:s==="post"?A=()=>$n(N,h&&h.suspense):(N.pre=!0,h&&(N.id=h.uid),A=()=>xh(N));const P=new uh(v,tr,A),M=B0(),q=()=>{P.stop(),M&&ah(M.effects,P)};return t?r?N():L=P.run():s==="post"?$n(P.run.bind(P),h&&h.suspense):P.run(),C&&C.push(q),q}function bk(e,t,r){const o=this.proxy,s=$t(e)?e.includes(".")?$y(o,e):()=>o[e]:e.bind(o,o);let c;Xe(t)?c=t:(c=t.handler,r=t);const f=ha(this),d=Su(s,c.bind(o),r);return f(),d}function $y(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Bi(e,t=1/0,r){if(t<=0||!St(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,Pt(e))Bi(e.value,t,r);else if(Ie(e))for(let o=0;o<e.length;o++)Bi(e[o],t,r);else if(hu(e)||ms(e))e.forEach(o=>{Bi(o,t,r)});else if(O0(e)){for(const o in e)Bi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Bi(e[o],t,r)}return e}function Eh(e,t,r=_t){const o=da(),s=ir(t),c=hi(t),f=Py(e,t),d=iy((h,p)=>{let v,y=_t,b;return yk(()=>{const x=e[t];Rn(v,x)&&(v=x,p())}),{get(){return h(),r.get?r.get(v):v},set(x){const E=r.set?r.set(x):x;if(!Rn(E,v)&&!(y!==_t&&Rn(x,y)))return;const C=o.vnode.props;C&&(t in C||s in C||c in C)&&(`onUpdate:${t}`in C||`onUpdate:${s}`in C||`onUpdate:${c}`in C)||(v=x,p()),o.emit(`update:${t}`,E),Rn(x,E)&&Rn(x,y)&&!Rn(E,b)&&p(),y=x,b=E}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||_t:d,done:!1}:{done:!0}}}},d}const Py=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ir(t)}Modifiers`]||e[`${hi(t)}Modifiers`];function wk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||_t;let s=r;const c=t.startsWith("update:"),f=c&&Py(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>$t(v)?v.trim():v)),f.number&&(s=r.map(fd)));let d,h=o[d=xc(t)]||o[d=xc(ir(t))];!h&&c&&(h=o[d=xc(hi(t))]),h&&rr(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,rr(p,e,6,s)}}function Oy(e,t,r=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Xe(e)){const h=p=>{const v=Oy(p,t,!0);v&&(d=!0,Xt(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(St(e)&&o.set(e,null),null):(Ie(c)?c.forEach(h=>f[h]=null):Xt(f,c),St(e)&&o.set(e,f),f)}function ku(e,t){return!e||!du(t)?!1:(t=t.slice(2).replace(/Once$/,""),ct(e,t[0].toLowerCase()+t.slice(1))||ct(e,hi(t))||ct(e,t))}function Vf(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:y,data:b,setupState:x,ctx:E,inheritAttrs:C}=e,L=Ic(e);let N,A;try{if(r.shapeFlag&4){const M=s||o,q=M;N=wr(p.call(q,M,v,y,x,b,E)),A=d}else{const M=t;N=wr(M.length>1?M(y,{attrs:d,slots:f,emit:h}):M(y,null)),A=t.props?d:_k(d)}}catch(M){Pl.length=0,fa(M,e,1),N=Pe(fn)}let P=N;if(A&&C!==!1){const M=Object.keys(A),{shapeFlag:q}=P;M.length&&q&7&&(c&&M.some(lh)&&(A=Sk(A,c)),P=Zi(P,A,!1,!0))}return r.dirs&&(P=Zi(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(r.dirs):r.dirs),r.transition&&(P.transition=r.transition),N=P,Ic(L),N}function xk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(jl(s)){if(s.type!==fn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const _k=e=>{let t;for(const r in e)(r==="class"||r==="style"||du(r))&&((t||(t={}))[r]=e[r]);return t},Sk=(e,t)=>{const r={};for(const o in e)(!lh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function kk(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?Lv(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let y=0;y<v.length;y++){const b=v[y];if(f[b]!==o[b]&&!ku(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Lv(o,f,p):!0:!!f;return!1}function Lv(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!ku(r,c))return!0}return!1}function Lh({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const Ck=e=>e.__isSuspense;let Sd=0;const Tk={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)Ek(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Lk(e,t,r,o,s,f,d,h,p)}},hydrate:Ak,normalize:Mk},Ry=Tk;function Vl(e,t){const r=e.props&&e.props[t];Xe(r)&&r()}function Ek(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,y=v("div"),b=e.suspense=Dy(e,s,o,t,y,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,y,null,o,b,c,f),b.deps>0?(Vl(e,"onPending"),Vl(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),ws(b,e.ssFallback)):b.resolve(!1,!0)}function Lk(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const y=t.suspense=e.suspense;y.vnode=t,t.el=e.el;const b=t.ssContent,x=t.ssFallback,{activeBranch:E,pendingBranch:C,isInFallback:L,isHydrating:N}=y;if(C)y.pendingBranch=b,Rr(b,C)?(h(C,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0?y.resolve():L&&(N||(h(E,x,r,o,s,null,c,f,d),ws(y,x)))):(y.pendingId=Sd++,N?(y.isHydrating=!1,y.activeBranch=C):p(C,s,y),y.deps=0,y.effects.length=0,y.hiddenContainer=v("div"),L?(h(null,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0?y.resolve():(h(E,x,r,o,s,null,c,f,d),ws(y,x))):E&&Rr(b,E)?(h(E,b,r,o,s,y,c,f,d),y.resolve(!0)):(h(null,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0&&y.resolve()));else if(E&&Rr(b,E))h(E,b,r,o,s,y,c,f,d),ws(y,b);else if(Vl(t,"onPending"),y.pendingBranch=b,b.shapeFlag&512?y.pendingId=b.component.suspenseId:y.pendingId=Sd++,h(null,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0)y.resolve();else{const{timeout:A,pendingId:P}=y;A>0?setTimeout(()=>{y.pendingId===P&&y.fallback(x)},A):A===0&&y.fallback(x)}}function Dy(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:y,m:b,um:x,n:E,o:{parentNode:C,remove:L}}=p;let N;const A=$k(e);A&&t&&t.pendingBranch&&(N=t.pendingId,t.deps++);const P=e.props?D0(e.props.timeout):void 0,M=c,q={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Sd++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(W=!1,X=!1){const{vnode:ie,activeBranch:ee,pendingBranch:j,pendingId:te,effects:Z,parentComponent:H,container:I}=q;let k=!1;q.isHydrating?q.isHydrating=!1:W||(k=ee&&j.transition&&j.transition.mode==="out-in",k&&(ee.transition.afterLeave=()=>{te===q.pendingId&&(b(j,I,c===M?E(ee):c,0),vd(Z))}),ee&&(C(ee.el)!==q.hiddenContainer&&(c=E(ee)),x(ee,H,q,!0)),k||b(j,I,c,0)),ws(q,j),q.pendingBranch=null,q.isInFallback=!1;let B=q.parent,U=!1;for(;B;){if(B.pendingBranch){B.effects.push(...Z),U=!0;break}B=B.parent}!U&&!k&&vd(Z),q.effects=[],A&&t&&t.pendingBranch&&N===t.pendingId&&(t.deps--,t.deps===0&&!X&&t.resolve()),Vl(ie,"onResolve")},fallback(W){if(!q.pendingBranch)return;const{vnode:X,activeBranch:ie,parentComponent:ee,container:j,namespace:te}=q;Vl(X,"onFallback");const Z=E(ie),H=()=>{q.isInFallback&&(y(null,W,j,Z,ee,null,te,d,h),ws(q,W))},I=W.transition&&W.transition.mode==="out-in";I&&(ie.transition.afterLeave=H),q.isInFallback=!0,x(ie,ee,null,!0),I||H()},move(W,X,ie){q.activeBranch&&b(q.activeBranch,W,X,ie),q.container=W},next(){return q.activeBranch&&E(q.activeBranch)},registerDep(W,X,ie){const ee=!!q.pendingBranch;ee&&q.deps++;const j=W.vnode.el;W.asyncDep.catch(te=>{fa(te,W,0)}).then(te=>{if(W.isUnmounted||q.isUnmounted||q.pendingId!==W.suspenseId)return;W.asyncResolved=!0;const{vnode:Z}=W;Cd(W,te,!1),j&&(Z.el=j);const H=!j&&W.subTree.el;X(W,Z,C(j||W.subTree.el),j?null:E(W.subTree),q,f,ie),H&&L(H),Lh(W,Z.el),ee&&--q.deps===0&&q.resolve()})},unmount(W,X){q.isUnmounted=!0,q.activeBranch&&x(q.activeBranch,r,W,X),q.pendingBranch&&x(q.pendingBranch,r,W,X)}};return q}function Ak(e,t,r,o,s,c,f,d,h){const p=t.suspense=Dy(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function Mk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=Av(o?r.default:r),e.ssFallback=o?Av(r.fallback):Pe(fn)}function Av(e){let t;if(Xe(e)){const r=Ls&&e._c;r&&(e._d=!1,oe()),e=e(),r&&(e._d=!0,t=zn,zy())}return Ie(e)&&(e=xk(e)),e=wr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Nk(e,t){t&&t.pendingBranch?Ie(e)?t.effects.push(...e):t.effects.push(e):vd(e)}function ws(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,Lh(o,s))}function $k(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ut=Symbol.for("v-fgt"),Cu=Symbol.for("v-txt"),fn=Symbol.for("v-cmt"),jf=Symbol.for("v-stc"),Pl=[];let zn=null;function oe(e=!1){Pl.push(zn=e?null:[])}function zy(){Pl.pop(),zn=Pl[Pl.length-1]||null}let Ls=1;function Wc(e){Ls+=e,e<0&&zn&&(zn.hasOnce=!0)}function Iy(e){return e.dynamicChildren=Ls>0?zn||vs:null,zy(),Ls>0&&zn&&zn.push(e),e}function me(e,t,r,o,s,c){return Iy(Y(e,t,r,o,s,c,!0))}function ot(e,t,r,o,s){return Iy(Pe(e,t,r,o,s,!0))}function jl(e){return e?e.__v_isVNode===!0:!1}function Rr(e,t){return e.type===t.type&&e.key===t.key}const Fy=({key:e})=>e??null,kc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?$t(e)||Pt(e)||Xe(e)?{i:Zt,r:e,k:t,f:!!r}:e:null);function Y(e,t=null,r=null,o=0,s=null,c=e===ut?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fy(t),ref:t&&kc(t),scopeId:bu,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Zt};return d?(Ah(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=$t(r)?8:16),Ls>0&&!f&&zn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&zn.push(h),h}const Pe=Pk;function Pk(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===my)&&(e=fn),jl(e)){const d=Zi(e,t,!0);return r&&Ah(d,r),Ls>0&&!c&&zn&&(d.shapeFlag&6?zn[zn.indexOf(e)]=d:zn.push(d)),d.patchFlag=-2,d}if(qk(e)&&(e=e.__vccOpts),t){t=Hy(t);let{class:d,style:h}=t;d&&!$t(d)&&(t.class=lt(d)),St(h)&&(ey(h)&&!Ie(h)&&(h=Xt({},h)),t.style=Kt(h))}const f=$t(e)?1:Ck(e)?128:fk(e)?64:St(e)?4:Xe(e)?2:0;return Y(e,t,r,o,s,f,c,!0)}function Hy(e){return e?ey(e)||Sy(e)?Xt({},e):e:null}function Zi(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?ai(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Fy(p),ref:t&&t.ref?r&&c?Ie(c)?c.concat(kc(t)):[c,kc(t)]:kc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ut?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zi(e.ssContent),ssFallback:e.ssFallback&&Zi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&Fc(v,h.clone(v)),v}function pt(e=" ",t=0){return Pe(Cu,null,e,t)}function Ye(e="",t=!1){return t?(oe(),ot(fn,null,e)):Pe(fn,null,e)}function wr(e){return e==null||typeof e=="boolean"?Pe(fn):Ie(e)?Pe(ut,null,e.slice()):typeof e=="object"?Ii(e):Pe(Cu,null,String(e))}function Ii(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zi(e)}function Ah(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Ie(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Ah(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Sy(t)?t._ctx=Zt:s===3&&Zt&&(Zt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Xe(t)?(t={default:t,_ctx:Zt},r=32):(t=String(t),o&64?(r=16,t=[pt(t)]):r=8);e.children=t,e.shapeFlag|=r}function ai(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=lt([t.class,o.class]));else if(s==="style")t.style=Kt([t.style,o.style]);else if(du(s)){const c=t[s],f=o[s];f&&c!==f&&!(Ie(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function $r(e,t,r,o=null){rr(e,t,7,[r,o])}const Ok=wy();let Rk=0;function Dk(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Ok,c={uid:Rk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new J_(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Cy(o,s),emitsOptions:Oy(o,s),emit:null,emitted:null,propsDefaults:_t,inheritAttrs:o.inheritAttrs,ctx:_t,data:_t,props:_t,attrs:_t,slots:_t,refs:_t,setupState:_t,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=wk.bind(null,c),e.ce&&e.ce(c),c}let sn=null;const da=()=>sn||Zt;let Uc,kd;{const e=z0(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};Uc=t("__VUE_INSTANCE_SETTERS__",r=>sn=r),kd=t("__VUE_SSR_SETTERS__",r=>Tu=r)}const ha=e=>{const t=sn;return Uc(e),e.scope.on(),()=>{e.scope.off(),Uc(t)}},Mv=()=>{sn&&sn.scope.off(),Uc(null)};function qy(e){return e.vnode.shapeFlag&4}let Tu=!1;function zk(e,t=!1,r=!1){t&&kd(t);const{props:o,children:s}=e.vnode,c=qy(e);ik(e,o,c,t),ak(e,s,r);const f=c?Ik(e,t):void 0;return t&&kd(!1),f}function Ik(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,KS);const{setup:o}=r;if(o){const s=e.setupContext=o.length>1?Wy(e):null,c=ha(e);ro();const f=Ki(o,e,0,[e.props,s]);if(io(),c(),$0(f)){if(f.then(Mv,Mv),t)return f.then(d=>{Cd(e,d,t)}).catch(d=>{fa(d,e,0)});e.asyncDep=f}else Cd(e,f,t)}else By(e,t)}function Cd(e,t,r){Xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=ry(t)),By(e,r)}let Nv;function By(e,t,r){const o=e.type;if(!e.render){if(!t&&Nv&&!o.render){const s=o.template||kh(e).template;if(s){const{isCustomElement:c,compilerOptions:f}=e.appContext.config,{delimiters:d,compilerOptions:h}=o,p=Xt(Xt({isCustomElement:c,delimiters:d},f),h);o.render=Nv(s,p)}}e.render=o.render||tr}{const s=ha(e);ro();try{ZS(e)}finally{io(),s()}}}const Fk={get(e,t){return Fn(e,"get",""),e[t]}};function Wy(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Fk),slots:e.slots,emit:e.emit,expose:t}}function Eu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ry(mh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in $l)return $l[r](e)},has(t,r){return r in t||r in $l}})):e.proxy}function Hk(e,t=!0){return Xe(e)?e.displayName||e.name:e.name||t&&e.__name}function qk(e){return Xe(e)&&"__vccOpts"in e}const Ce=(e,t)=>xS(e,t,Tu);function pa(e,t,r){const o=arguments.length;return o===2?St(t)&&!Ie(t)?jl(t)?Pe(e,null,[t]):Pe(e,t):Pe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&jl(r)&&(r=[r]),Pe(e,t,r))}const Bk="3.4.37";/**
13
+ **/function Ki(e,t,r,o){try{return o?e(...o):e()}catch(s){fa(s,t,r)}}function rr(e,t,r,o){if(Xe(e)){const s=Ki(e,t,r,o);return s&&$0(s)&&s.catch(c=>{fa(c,t,r)}),s}if(Ie(e)){const s=[];for(let c=0;c<e.length;c++)s.push(rr(e[c],t,r,o));return s}}function fa(e,t,r,o=!0){const s=t?t.vnode:null;if(t){let c=t.parent;const f=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${r}`;for(;c;){const p=c.ec;if(p){for(let v=0;v<p.length;v++)if(p[v](e,f,d)===!1)return}c=c.parent}const h=t.appContext.config.errorHandler;if(h){ro(),Ki(h,null,10,[e,f,d]),io();return}}LS(e,r,s,o)}function LS(e,t,r,o=!0){console.error(e)}let Wl=!1,gd=!1;const un=[];let Or=0;const ys=[];let Di=null,ko=0;const sy=Promise.resolve();let wh=null;function ln(e){const t=wh||sy;return e?t.then(this?e.bind(this):e):t}function AS(e){let t=Or+1,r=un.length;for(;t<r;){const o=t+r>>>1,s=un[o],c=Ul(s);c<e||c===e&&s.pre?t=o+1:r=o}return t}function xh(e){(!un.length||!un.includes(e,Wl&&e.allowRecurse?Or+1:Or))&&(e.id==null?un.push(e):un.splice(AS(e.id),0,e),ly())}function ly(){!Wl&&!gd&&(gd=!0,wh=sy.then(cy))}function MS(e){const t=un.indexOf(e);t>Or&&un.splice(t,1)}function vd(e){Ie(e)?ys.push(...e):(!Di||!Di.includes(e,e.allowRecurse?ko+1:ko))&&ys.push(e),ly()}function bv(e,t,r=Wl?Or+1:0){for(;r<un.length;r++){const o=un[r];if(o&&o.pre){if(e&&o.id!==e.uid)continue;un.splice(r,1),r--,o()}}}function ay(e){if(ys.length){const t=[...new Set(ys)].sort((r,o)=>Ul(r)-Ul(o));if(ys.length=0,Di){Di.push(...t);return}for(Di=t,ko=0;ko<Di.length;ko++){const r=Di[ko];r.active!==!1&&r()}Di=null,ko=0}}const Ul=e=>e.id==null?1/0:e.id,NS=(e,t)=>{const r=Ul(e)-Ul(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function cy(e){gd=!1,Wl=!0,un.sort(NS);try{for(Or=0;Or<un.length;Or++){const t=un[Or];t&&t.active!==!1&&Ki(t,t.i,t.i?15:14)}}finally{Or=0,un.length=0,ay(),Wl=!1,wh=null,(un.length||ys.length)&&cy()}}let Zt=null,bu=null;function Ic(e){const t=Zt;return Zt=e,bu=e&&e.type.__scopeId||null,t}function Is(e){bu=e}function Fs(){bu=null}const uy=e=>st;function st(e,t=Zt,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Wc(-1);const c=Ic(t);let f;try{f=e(...s)}finally{Ic(c),o._d&&Wc(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function vt(e,t){if(Zt===null)return e;const r=Eu(Zt),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=_t]=t[s];c&&(Xe(c)&&(c={mounted:c,updated:c}),c.deep&&Bi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function yo(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(ro(),rr(h,r,8,[e.el,d,e,t]),io())}}const zi=Symbol("_leaveCb"),oc=Symbol("_enterCb");function $S(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Hs(()=>{e.isMounted=!0}),vy(()=>{e.isUnmounting=!0}),e}const Qn=[Function,Array],fy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qn,onEnter:Qn,onAfterEnter:Qn,onEnterCancelled:Qn,onBeforeLeave:Qn,onLeave:Qn,onAfterLeave:Qn,onLeaveCancelled:Qn,onBeforeAppear:Qn,onAppear:Qn,onAfterAppear:Qn,onAppearCancelled:Qn},dy=e=>{const t=e.subTree;return t.component?dy(t.component):t},PS={name:"BaseTransition",props:fy,setup(e,{slots:t}){const r=da(),o=$S();return()=>{const s=t.default&&py(t.default(),!0);if(!s||!s.length)return;let c=s[0];if(s.length>1){for(const b of s)if(b.type!==fn){c=b;break}}const f=gt(e),{mode:d}=f;if(o.isLeaving)return Bf(c);const h=wv(c);if(!h)return Bf(c);let p=md(h,f,o,r,b=>p=b);Fc(h,p);const v=r.subTree,y=v&&wv(v);if(y&&y.type!==fn&&!Rr(h,y)&&dy(r).type!==fn){const b=md(y,f,o,r);if(Fc(y,b),d==="out-in"&&h.type!==fn)return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Bf(c);d==="in-out"&&h.type!==fn&&(b.delayLeave=(x,A,T)=>{const E=hy(o,y);E[String(y.key)]=y,x[zi]=()=>{A(),x[zi]=void 0,delete p.delayedLeave},p.delayedLeave=T})}return c}}},OS=PS;function hy(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function md(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:y,onBeforeLeave:b,onLeave:x,onAfterLeave:A,onLeaveCancelled:T,onBeforeAppear:E,onAppear:L,onAfterAppear:M,onAppearCancelled:P}=t,N=String(e.key),q=hy(r,e),W=(ee,j)=>{ee&&rr(ee,o,9,j)},X=(ee,j)=>{const te=j[1];W(ee,j),Ie(ee)?ee.every(Z=>Z.length<=1)&&te():ee.length<=1&&te()},ie={mode:f,persisted:d,beforeEnter(ee){let j=h;if(!r.isMounted)if(c)j=E||h;else return;ee[zi]&&ee[zi](!0);const te=q[N];te&&Rr(e,te)&&te.el[zi]&&te.el[zi](),W(j,[ee])},enter(ee){let j=p,te=v,Z=y;if(!r.isMounted)if(c)j=L||p,te=M||v,Z=P||y;else return;let H=!1;const I=ee[oc]=k=>{H||(H=!0,k?W(Z,[ee]):W(te,[ee]),ie.delayedLeave&&ie.delayedLeave(),ee[oc]=void 0)};j?X(j,[ee,I]):I()},leave(ee,j){const te=String(e.key);if(ee[oc]&&ee[oc](!0),r.isUnmounting)return j();W(b,[ee]);let Z=!1;const H=ee[zi]=I=>{Z||(Z=!0,j(),I?W(T,[ee]):W(A,[ee]),ee[zi]=void 0,q[te]===e&&delete q[te])};q[te]=e,x?X(x,[ee,H]):H()},clone(ee){const j=md(ee,t,r,o,s);return s&&s(j),j}};return ie}function Bf(e){if(wu(e))return e=Zi(e),e.children=null,e}function wv(e){if(!wu(e))return e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Xe(r.default))return r.default()}}function Fc(e,t){e.shapeFlag&6&&e.component?Fc(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function py(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===ut?(f.patchFlag&128&&s++,o=o.concat(py(f.children,t,d))):(t||f.type!==fn)&&o.push(d!=null?Zi(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ft(e,t){return Xe(e)?Xt({name:e.name},t,{setup:e}):e}const Nl=e=>!!e.type.__asyncLoader,wu=e=>e.type.__isKeepAlive;function RS(e,t){gy(e,"a",t)}function DS(e,t){gy(e,"da",t)}function gy(e,t,r=sn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(xu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)wu(s.parent.vnode)&&zS(o,t,r,s),s=s.parent}}function zS(e,t,r,o){const s=xu(t,e,o,!0);_u(()=>{ah(o[t],s)},r)}function xu(e,t,r=sn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{ro();const d=ha(r),h=rr(t,r,e,f);return d(),io(),h});return o?s.unshift(c):s.push(c),c}}const pi=e=>(t,r=sn)=>{(!Tu||e==="sp")&&xu(e,(...o)=>t(...o),r)},IS=pi("bm"),Hs=pi("m"),FS=pi("bu"),HS=pi("u"),vy=pi("bum"),_u=pi("um"),qS=pi("sp"),BS=pi("rtg"),WS=pi("rtc");function US(e,t=sn){xu("ec",e,t)}const _h="components",VS="directives";function Po(e,t){return Sh(_h,e,!0,t)||e}const my=Symbol.for("v-ndc");function xv(e){return $t(e)?Sh(_h,e,!1)||e:e||my}function Ur(e){return Sh(VS,e)}function Sh(e,t,r=!0,o=!1){const s=Zt||sn;if(s){const c=s.type;if(e===_h){const d=Hk(c,!1);if(d&&(d===t||d===ir(t)||d===gu(ir(t))))return c}const f=_v(s[e]||c[e],t)||_v(s.appContext[e],t);return!f&&o?c:f}}function _v(e,t){return e&&(e[t]||e[ir(t)]||e[gu(ir(t))])}function ui(e,t,r,o){let s;const c=r;if(Ie(e)||$t(e)){s=new Array(e.length);for(let f=0,d=e.length;f<d;f++)s[f]=t(e[f],f,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let f=0;f<e;f++)s[f]=t(f+1,f,void 0,c)}else if(St(e))if(e[Symbol.iterator])s=Array.from(e,(f,d)=>t(f,d,void 0,c));else{const f=Object.keys(e);s=new Array(f.length);for(let d=0,h=f.length;d<h;d++){const p=f[d];s[d]=t(e[p],p,d,c)}}else s=[];return s}function jS(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Ie(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function hn(e,t,r={},o,s){if(Zt.isCE||Zt.parent&&Nl(Zt.parent)&&Zt.parent.isCE)return t!=="default"&&(r.name=t),Pe("slot",r,o&&o());let c=e[t];c&&c._c&&(c._d=!1),oe();const f=c&&yy(c(r)),d=ot(ut,{key:(r.key||f&&f.key||`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return d.scopeId&&(d.slotScopeIds=[d.scopeId+"-s"]),c&&c._c&&(c._d=!0),d}function yy(e){return e.some(t=>jl(t)?!(t.type===fn||t.type===ut&&!yy(t.children)):!0)?e:null}function GS(e,t){const r={};for(const o in e)r[xc(o)]=e[o];return r}const yd=e=>e?qy(e)?Eu(e):yd(e.parent):null,$l=Xt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>yd(e.parent),$root:e=>yd(e.root),$emit:e=>e.emit,$options:e=>kh(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xh(e.update)}),$nextTick:e=>e.n||(e.n=ln.bind(e.proxy)),$watch:e=>bk.bind(e)}),Wf=(e,t)=>e!==_t&&!e.__isScriptSetup&&ct(e,t),KS={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const x=f[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Wf(o,t))return f[t]=1,o[t];if(s!==_t&&ct(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&ct(p,t))return f[t]=3,c[t];if(r!==_t&&ct(r,t))return f[t]=4,r[t];bd&&(f[t]=0)}}const v=$l[t];let y,b;if(v)return t==="$attrs"&&Fn(e.attrs,"get",""),v(e);if((y=d.__cssModules)&&(y=y[t]))return y;if(r!==_t&&ct(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,ct(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Wf(s,t)?(s[t]=r,!0):o!==_t&&ct(o,t)?(o[t]=r,!0):ct(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c}},f){let d;return!!r[f]||e!==_t&&ct(e,f)||Wf(t,f)||(d=c[0])&&ct(d,f)||ct(o,f)||ct($l,f)||ct(s.config.globalProperties,f)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ct(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function XS(){return YS().attrs}function YS(){const e=da();return e.setupContext||(e.setupContext=Wy(e))}function Hc(e){return Ie(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function qc(e,t){return!e||!t?e||t:Ie(e)&&Ie(t)?e.concat(t):Xt({},Hc(e),Hc(t))}let bd=!0;function ZS(e){const t=kh(e),r=e.proxy,o=e.ctx;bd=!1,t.beforeCreate&&Sv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:y,mounted:b,beforeUpdate:x,updated:A,activated:T,deactivated:E,beforeDestroy:L,beforeUnmount:M,destroyed:P,unmounted:N,render:q,renderTracked:W,renderTriggered:X,errorCaptured:ie,serverPrefetch:ee,expose:j,inheritAttrs:te,components:Z,directives:H,filters:I}=t;if(p&&JS(p,o,null),f)for(const U in f){const re=f[U];Xe(re)&&(o[U]=re.bind(r))}if(s){const U=s.call(r,r);St(U)&&(e.data=Xn(U))}if(bd=!0,c)for(const U in c){const re=c[U],ye=Xe(re)?re.bind(r,r):Xe(re.get)?re.get.bind(r,r):tr,Ne=!Xe(re)&&Xe(re.set)?re.set.bind(r):tr,We=Ce({get:ye,set:Ne});Object.defineProperty(o,U,{enumerable:!0,configurable:!0,get:()=>We.value,set:je=>We.value=je})}if(d)for(const U in d)by(d[U],o,r,U);if(h){const U=Xe(h)?h.call(r):h;Reflect.ownKeys(U).forEach(re=>{Sc(re,U[re])})}v&&Sv(v,e,"c");function B(U,re){Ie(re)?re.forEach(ye=>U(ye.bind(r))):re&&U(re.bind(r))}if(B(IS,y),B(Hs,b),B(FS,x),B(HS,A),B(RS,T),B(DS,E),B(US,ie),B(WS,W),B(BS,X),B(vy,M),B(_u,N),B(qS,ee),Ie(j))if(j.length){const U=e.exposed||(e.exposed={});j.forEach(re=>{Object.defineProperty(U,re,{get:()=>r[re],set:ye=>r[re]=ye})})}else e.exposed||(e.exposed={});q&&e.render===tr&&(e.render=q),te!=null&&(e.inheritAttrs=te),Z&&(e.components=Z),H&&(e.directives=H)}function JS(e,t,r=tr){Ie(e)&&(e=wd(e));for(const o in e){const s=e[o];let c;St(s)?"default"in s?c=li(s.from||o,s.default,!0):c=li(s.from||o):c=li(s),Pt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function Sv(e,t,r){rr(Ie(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function by(e,t,r,o){const s=o.includes(".")?$y(r,o):()=>r[o];if($t(e)){const c=t[e];Xe(c)&&It(s,c)}else if(Xe(e))It(s,e.bind(r));else if(St(e))if(Ie(e))e.forEach(c=>by(c,t,r,o));else{const c=Xe(e.handler)?e.handler.bind(r):t[e.handler];Xe(c)&&It(s,c,e)}}function kh(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>Bc(h,p,f,!0)),Bc(h,t,f)),St(t)&&c.set(t,h),h}function Bc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Bc(e,c,r,!0),s&&s.forEach(f=>Bc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=QS[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const QS={data:kv,props:Cv,emits:Cv,methods:Cl,computed:Cl,beforeCreate:_n,created:_n,beforeMount:_n,mounted:_n,beforeUpdate:_n,updated:_n,beforeDestroy:_n,beforeUnmount:_n,destroyed:_n,unmounted:_n,activated:_n,deactivated:_n,errorCaptured:_n,serverPrefetch:_n,components:Cl,directives:Cl,watch:tk,provide:kv,inject:ek};function kv(e,t){return t?e?function(){return Xt(Xe(e)?e.call(this,this):e,Xe(t)?t.call(this,this):t)}:t:e}function ek(e,t){return Cl(wd(e),wd(t))}function wd(e){if(Ie(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function _n(e,t){return e?[...new Set([].concat(e,t))]:t}function Cl(e,t){return e?Xt(Object.create(null),e,t):t}function Cv(e,t){return e?Ie(e)&&Ie(t)?[...new Set([...e,...t])]:Xt(Object.create(null),Hc(e),Hc(t??{})):t}function tk(e,t){if(!e)return t;if(!t)return e;const r=Xt(Object.create(null),e);for(const o in t)r[o]=_n(e[o],t[o]);return r}function wy(){return{app:null,config:{isNativeTag:F_,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 nk=0;function rk(e,t){return function(o,s=null){Xe(o)||(o=Xt({},o)),s!=null&&!St(s)&&(s=null);const c=wy(),f=new WeakSet;let d=!1;const h=c.app={_uid:nk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:Bk,get config(){return c.config},set config(p){},use(p,...v){return f.has(p)||(p&&Xe(p.install)?(f.add(p),p.install(h,...v)):Xe(p)&&(f.add(p),p(h,...v))),h},mixin(p){return c.mixins.includes(p)||c.mixins.push(p),h},component(p,v){return v?(c.components[p]=v,h):c.components[p]},directive(p,v){return v?(c.directives[p]=v,h):c.directives[p]},mount(p,v,y){if(!d){const b=Pe(o,s);return b.appContext=c,y===!0?y="svg":y===!1&&(y=void 0),v&&t?t(b,p):e(b,p,y),d=!0,h._container=p,p.__vue_app__=h,Eu(b.component)}},unmount(){d&&(e(null,h._container),delete h._container.__vue_app__)},provide(p,v){return c.provides[p]=v,h},runWithContext(p){const v=bs;bs=h;try{return p()}finally{bs=v}}};return h}}let bs=null;function Sc(e,t){if(sn){let r=sn.provides;const o=sn.parent&&sn.parent.provides;o===r&&(r=sn.provides=Object.create(o)),r[e]=t}}function li(e,t,r=!1){const o=sn||Zt;if(o||bs){const s=bs?bs._context.provides:o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Xe(t)?t.call(o&&o.proxy):t}}const xy={},_y=()=>Object.create(xy),Sy=e=>Object.getPrototypeOf(e)===xy;function ik(e,t,r,o=!1){const s={},c=_y();e.propsDefaults=Object.create(null),ky(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:gh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function ok(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=gt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let y=0;y<v.length;y++){let b=v[y];if(ku(e.emitsOptions,b))continue;const x=t[b];if(h)if(ct(c,b))x!==c[b]&&(c[b]=x,p=!0);else{const A=ir(b);s[A]=xd(h,d,A,x,e,!1)}else x!==c[b]&&(c[b]=x,p=!0)}}}else{ky(e,t,s,c)&&(p=!0);let v;for(const y in d)(!t||!ct(t,y)&&((v=hi(y))===y||!ct(t,v)))&&(h?r&&(r[y]!==void 0||r[v]!==void 0)&&(s[y]=xd(h,d,y,void 0,e,!0)):delete s[y]);if(c!==d)for(const y in c)(!t||!ct(t,y))&&(delete c[y],p=!0)}p&&si(e.attrs,"set","")}function ky(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Ll(h))continue;const p=t[h];let v;s&&ct(s,v=ir(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:ku(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=gt(r),p=d||_t;for(let v=0;v<c.length;v++){const y=c[v];r[y]=xd(s,h,y,p[y],e,!ct(p,y))}}return f}function xd(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=ct(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Xe(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=ha(s);o=p[r]=h.call(null,t),v()}}else o=h}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===hi(r))&&(o=!0))}return o}const sk=new WeakMap;function Cy(e,t,r=!1){const o=r?sk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Xe(e)){const v=y=>{h=!0;const[b,x]=Cy(y,t,!0);Xt(f,b),x&&d.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return St(e)&&o.set(e,vs),vs;if(Ie(c))for(let v=0;v<c.length;v++){const y=ir(c[v]);Tv(y)&&(f[y]=_t)}else if(c)for(const v in c){const y=ir(v);if(Tv(y)){const b=c[v],x=f[y]=Ie(b)||Xe(b)?{type:b}:Xt({},b),A=x.type;let T=!1,E=!0;if(Ie(A))for(let L=0;L<A.length;++L){const M=A[L],P=Xe(M)&&M.name;if(P==="Boolean"){T=!0;break}else P==="String"&&(E=!1)}else T=Xe(A)&&A.name==="Boolean";x[0]=T,x[1]=E,(T||ct(x,"default"))&&d.push(y)}}const p=[f,d];return St(e)&&o.set(e,p),p}function Tv(e){return e[0]!=="$"&&!Ll(e)}const Ty=e=>e[0]==="_"||e==="$stable",Ch=e=>Ie(e)?e.map(wr):[wr(e)],lk=(e,t,r)=>{if(t._n)return t;const o=st((...s)=>Ch(t(...s)),r);return o._c=!1,o},Ey=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Ty(s))continue;const c=e[s];if(Xe(c))t[s]=lk(s,c,o);else if(c!=null){const f=Ch(c);t[s]=()=>f}}},Ly=(e,t)=>{const r=Ch(t);e.slots.default=()=>r},Ay=(e,t,r)=>{for(const o in t)(r||o!=="_")&&(e[o]=t[o])},ak=(e,t,r)=>{const o=e.slots=_y();if(e.vnode.shapeFlag&32){const s=t._;s?(Ay(o,t,r),r&&R0(o,"_",s,!0)):Ey(t,o)}else t&&Ly(e,t)},ck=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=_t;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:Ay(s,t,r):(c=!t.$stable,Ey(t,s)),f=t}else t&&(Ly(e,t),f={default:1});if(c)for(const d in s)!Ty(d)&&f[d]==null&&delete s[d]};function _d(e,t,r,o,s=!1){if(Ie(e)){e.forEach((b,x)=>_d(b,t&&(Ie(t)?t[x]:t),r,o,s));return}if(Nl(o)&&!s)return;const c=o.shapeFlag&4?Eu(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===_t?d.refs={}:d.refs,y=d.setupState;if(p!=null&&p!==h&&($t(p)?(v[p]=null,ct(y,p)&&(y[p]=null)):Pt(p)&&(p.value=null)),Xe(h))Ki(h,d,12,[f,v]);else{const b=$t(h),x=Pt(h);if(b||x){const A=()=>{if(e.f){const T=b?ct(y,h)?y[h]:v[h]:h.value;s?Ie(T)&&ah(T,c):Ie(T)?T.includes(c)||T.push(c):b?(v[h]=[c],ct(y,h)&&(y[h]=v[h])):(h.value=[c],e.k&&(v[e.k]=h.value))}else b?(v[h]=f,ct(y,h)&&(y[h]=f)):x&&(h.value=f,e.k&&(v[e.k]=f))};f?(A.id=-1,$n(A,r)):A()}}}const uk=Symbol("_vte"),fk=e=>e.__isTeleport,$n=Nk;function dk(e){return hk(e)}function hk(e,t){const r=z0();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:y,nextSibling:b,setScopeId:x=tr,insertStaticContent:A}=e,T=(O,F,J,ue=null,le=null,he=null,Se=void 0,fe=null,xe=!!F.dynamicChildren)=>{if(O===F)return;O&&!Rr(O,F)&&(ue=K(O),je(O,le,he,!0),O=null),F.patchFlag===-2&&(xe=!1,F.dynamicChildren=null);const{type:pe,ref:Me,shapeFlag:ze}=F;switch(pe){case Cu:E(O,F,J,ue);break;case fn:L(O,F,J,ue);break;case jf:O==null&&M(F,J,ue,Se);break;case ut:Z(O,F,J,ue,le,he,Se,fe,xe);break;default:ze&1?q(O,F,J,ue,le,he,Se,fe,xe):ze&6?H(O,F,J,ue,le,he,Se,fe,xe):(ze&64||ze&128)&&pe.process(O,F,J,ue,le,he,Se,fe,xe,$e)}Me!=null&&le&&_d(Me,O&&O.ref,he,F||O,!F)},E=(O,F,J,ue)=>{if(O==null)o(F.el=d(F.children),J,ue);else{const le=F.el=O.el;F.children!==O.children&&p(le,F.children)}},L=(O,F,J,ue)=>{O==null?o(F.el=h(F.children||""),J,ue):F.el=O.el},M=(O,F,J,ue)=>{[O.el,O.anchor]=A(O.children,F,J,ue,O.el,O.anchor)},P=({el:O,anchor:F},J,ue)=>{let le;for(;O&&O!==F;)le=b(O),o(O,J,ue),O=le;o(F,J,ue)},N=({el:O,anchor:F})=>{let J;for(;O&&O!==F;)J=b(O),s(O),O=J;s(F)},q=(O,F,J,ue,le,he,Se,fe,xe)=>{F.type==="svg"?Se="svg":F.type==="math"&&(Se="mathml"),O==null?W(F,J,ue,le,he,Se,fe,xe):ee(O,F,le,he,Se,fe,xe)},W=(O,F,J,ue,le,he,Se,fe)=>{let xe,pe;const{props:Me,shapeFlag:ze,transition:Re,dirs:Ue}=O;if(xe=O.el=f(O.type,he,Me&&Me.is,Me),ze&8?v(xe,O.children):ze&16&&ie(O.children,xe,null,ue,le,Uf(O,he),Se,fe),Ue&&yo(O,null,ue,"created"),X(xe,O,O.scopeId,Se,ue),Me){for(const mt in Me)mt!=="value"&&!Ll(mt)&&c(xe,mt,null,Me[mt],he,ue);"value"in Me&&c(xe,"value",null,Me.value,he),(pe=Me.onVnodeBeforeMount)&&$r(pe,ue,O)}Ue&&yo(O,null,ue,"beforeMount");const Ge=pk(le,Re);Ge&&Re.beforeEnter(xe),o(xe,F,J),((pe=Me&&Me.onVnodeMounted)||Ge||Ue)&&$n(()=>{pe&&$r(pe,ue,O),Ge&&Re.enter(xe),Ue&&yo(O,null,ue,"mounted")},le)},X=(O,F,J,ue,le)=>{if(J&&x(O,J),ue)for(let he=0;he<ue.length;he++)x(O,ue[he]);if(le){let he=le.subTree;if(F===he){const Se=le.vnode;X(O,Se,Se.scopeId,Se.slotScopeIds,le.parent)}}},ie=(O,F,J,ue,le,he,Se,fe,xe=0)=>{for(let pe=xe;pe<O.length;pe++){const Me=O[pe]=fe?Ii(O[pe]):wr(O[pe]);T(null,Me,F,J,ue,le,he,Se,fe)}},ee=(O,F,J,ue,le,he,Se)=>{const fe=F.el=O.el;let{patchFlag:xe,dynamicChildren:pe,dirs:Me}=F;xe|=O.patchFlag&16;const ze=O.props||_t,Re=F.props||_t;let Ue;if(J&&bo(J,!1),(Ue=Re.onVnodeBeforeUpdate)&&$r(Ue,J,F,O),Me&&yo(F,O,J,"beforeUpdate"),J&&bo(J,!0),(ze.innerHTML&&Re.innerHTML==null||ze.textContent&&Re.textContent==null)&&v(fe,""),pe?j(O.dynamicChildren,pe,fe,J,ue,Uf(F,le),he):Se||re(O,F,fe,null,J,ue,Uf(F,le),he,!1),xe>0){if(xe&16)te(fe,ze,Re,J,le);else if(xe&2&&ze.class!==Re.class&&c(fe,"class",null,Re.class,le),xe&4&&c(fe,"style",ze.style,Re.style,le),xe&8){const Ge=F.dynamicProps;for(let mt=0;mt<Ge.length;mt++){const tt=Ge[mt],nt=ze[tt],Ft=Re[tt];(Ft!==nt||tt==="value")&&c(fe,tt,nt,Ft,le,J)}}xe&1&&O.children!==F.children&&v(fe,F.children)}else!Se&&pe==null&&te(fe,ze,Re,J,le);((Ue=Re.onVnodeUpdated)||Me)&&$n(()=>{Ue&&$r(Ue,J,F,O),Me&&yo(F,O,J,"updated")},ue)},j=(O,F,J,ue,le,he,Se)=>{for(let fe=0;fe<F.length;fe++){const xe=O[fe],pe=F[fe],Me=xe.el&&(xe.type===ut||!Rr(xe,pe)||xe.shapeFlag&70)?y(xe.el):J;T(xe,pe,Me,null,ue,le,he,Se,!0)}},te=(O,F,J,ue,le)=>{if(F!==J){if(F!==_t)for(const he in F)!Ll(he)&&!(he in J)&&c(O,he,F[he],null,le,ue);for(const he in J){if(Ll(he))continue;const Se=J[he],fe=F[he];Se!==fe&&he!=="value"&&c(O,he,fe,Se,le,ue)}"value"in J&&c(O,"value",F.value,J.value,le)}},Z=(O,F,J,ue,le,he,Se,fe,xe)=>{const pe=F.el=O?O.el:d(""),Me=F.anchor=O?O.anchor:d("");let{patchFlag:ze,dynamicChildren:Re,slotScopeIds:Ue}=F;Ue&&(fe=fe?fe.concat(Ue):Ue),O==null?(o(pe,J,ue),o(Me,J,ue),ie(F.children||[],J,Me,le,he,Se,fe,xe)):ze>0&&ze&64&&Re&&O.dynamicChildren?(j(O.dynamicChildren,Re,J,le,he,Se,fe),(F.key!=null||le&&F===le.subTree)&&My(O,F,!0)):re(O,F,J,Me,le,he,Se,fe,xe)},H=(O,F,J,ue,le,he,Se,fe,xe)=>{F.slotScopeIds=fe,O==null?F.shapeFlag&512?le.ctx.activate(F,J,ue,Se,xe):I(F,J,ue,le,he,Se,xe):k(O,F,xe)},I=(O,F,J,ue,le,he,Se)=>{const fe=O.component=Dk(O,ue,le);if(wu(O)&&(fe.ctx.renderer=$e),zk(fe,!1,Se),fe.asyncDep){if(le&&le.registerDep(fe,B,Se),!O.el){const xe=fe.subTree=Pe(fn);L(null,xe,F,J)}}else B(fe,O,F,J,le,he,Se)},k=(O,F,J)=>{const ue=F.component=O.component;if(kk(O,F,J))if(ue.asyncDep&&!ue.asyncResolved){U(ue,F,J);return}else ue.next=F,MS(ue.update),ue.effect.dirty=!0,ue.update();else F.el=O.el,ue.vnode=F},B=(O,F,J,ue,le,he,Se)=>{const fe=()=>{if(O.isMounted){let{next:Me,bu:ze,u:Re,parent:Ue,vnode:Ge}=O;{const Jt=Ny(O);if(Jt){Me&&(Me.el=Ge.el,U(O,Me,Se)),Jt.asyncDep.then(()=>{O.isUnmounted||fe()});return}}let mt=Me,tt;bo(O,!1),Me?(Me.el=Ge.el,U(O,Me,Se)):Me=Ge,ze&&_c(ze),(tt=Me.props&&Me.props.onVnodeBeforeUpdate)&&$r(tt,Ue,Me,Ge),bo(O,!0);const nt=Vf(O),Ft=O.subTree;O.subTree=nt,T(Ft,nt,y(Ft.el),K(Ft),O,le,he),Me.el=nt.el,mt===null&&Lh(O,nt.el),Re&&$n(Re,le),(tt=Me.props&&Me.props.onVnodeUpdated)&&$n(()=>$r(tt,Ue,Me,Ge),le)}else{let Me;const{el:ze,props:Re}=F,{bm:Ue,m:Ge,parent:mt}=O,tt=Nl(F);if(bo(O,!1),Ue&&_c(Ue),!tt&&(Me=Re&&Re.onVnodeBeforeMount)&&$r(Me,mt,F),bo(O,!0),ze&&Ze){const nt=()=>{O.subTree=Vf(O),Ze(ze,O.subTree,O,le,null)};tt?F.type.__asyncLoader().then(()=>!O.isUnmounted&&nt()):nt()}else{const nt=O.subTree=Vf(O);T(null,nt,J,ue,O,le,he),F.el=nt.el}if(Ge&&$n(Ge,le),!tt&&(Me=Re&&Re.onVnodeMounted)){const nt=F;$n(()=>$r(Me,mt,nt),le)}(F.shapeFlag&256||mt&&Nl(mt.vnode)&&mt.vnode.shapeFlag&256)&&O.a&&$n(O.a,le),O.isMounted=!0,F=J=ue=null}},xe=O.effect=new uh(fe,tr,()=>xh(pe),O.scope),pe=O.update=()=>{xe.dirty&&xe.run()};pe.i=O,pe.id=O.uid,bo(O,!0),pe()},U=(O,F,J)=>{F.component=O;const ue=O.vnode.props;O.vnode=F,O.next=null,ok(O,F.props,ue,J),ck(O,F.children,J),ro(),bv(O),io()},re=(O,F,J,ue,le,he,Se,fe,xe=!1)=>{const pe=O&&O.children,Me=O?O.shapeFlag:0,ze=F.children,{patchFlag:Re,shapeFlag:Ue}=F;if(Re>0){if(Re&128){Ne(pe,ze,J,ue,le,he,Se,fe,xe);return}else if(Re&256){ye(pe,ze,J,ue,le,he,Se,fe,xe);return}}Ue&8?(Me&16&&Le(pe,le,he),ze!==pe&&v(J,ze)):Me&16?Ue&16?Ne(pe,ze,J,ue,le,he,Se,fe,xe):Le(pe,le,he,!0):(Me&8&&v(J,""),Ue&16&&ie(ze,J,ue,le,he,Se,fe,xe))},ye=(O,F,J,ue,le,he,Se,fe,xe)=>{O=O||vs,F=F||vs;const pe=O.length,Me=F.length,ze=Math.min(pe,Me);let Re;for(Re=0;Re<ze;Re++){const Ue=F[Re]=xe?Ii(F[Re]):wr(F[Re]);T(O[Re],Ue,J,null,le,he,Se,fe,xe)}pe>Me?Le(O,le,he,!0,!1,ze):ie(F,J,ue,le,he,Se,fe,xe,ze)},Ne=(O,F,J,ue,le,he,Se,fe,xe)=>{let pe=0;const Me=F.length;let ze=O.length-1,Re=Me-1;for(;pe<=ze&&pe<=Re;){const Ue=O[pe],Ge=F[pe]=xe?Ii(F[pe]):wr(F[pe]);if(Rr(Ue,Ge))T(Ue,Ge,J,null,le,he,Se,fe,xe);else break;pe++}for(;pe<=ze&&pe<=Re;){const Ue=O[ze],Ge=F[Re]=xe?Ii(F[Re]):wr(F[Re]);if(Rr(Ue,Ge))T(Ue,Ge,J,null,le,he,Se,fe,xe);else break;ze--,Re--}if(pe>ze){if(pe<=Re){const Ue=Re+1,Ge=Ue<Me?F[Ue].el:ue;for(;pe<=Re;)T(null,F[pe]=xe?Ii(F[pe]):wr(F[pe]),J,Ge,le,he,Se,fe,xe),pe++}}else if(pe>Re)for(;pe<=ze;)je(O[pe],le,he,!0),pe++;else{const Ue=pe,Ge=pe,mt=new Map;for(pe=Ge;pe<=Re;pe++){const Qt=F[pe]=xe?Ii(F[pe]):wr(F[pe]);Qt.key!=null&&mt.set(Qt.key,pe)}let tt,nt=0;const Ft=Re-Ge+1;let Jt=!1,lr=0;const qn=new Array(Ft);for(pe=0;pe<Ft;pe++)qn[pe]=0;for(pe=Ue;pe<=ze;pe++){const Qt=O[pe];if(nt>=Ft){je(Qt,le,he,!0);continue}let Ve;if(Qt.key!=null)Ve=mt.get(Qt.key);else for(tt=Ge;tt<=Re;tt++)if(qn[tt-Ge]===0&&Rr(Qt,F[tt])){Ve=tt;break}Ve===void 0?je(Qt,le,he,!0):(qn[Ve-Ge]=pe+1,Ve>=lr?lr=Ve:Jt=!0,T(Qt,F[Ve],J,null,le,he,Se,fe,xe),nt++)}const ar=Jt?gk(qn):vs;for(tt=ar.length-1,pe=Ft-1;pe>=0;pe--){const Qt=Ge+pe,Ve=F[Qt],oo=Qt+1<Me?F[Qt+1].el:ue;qn[pe]===0?T(null,Ve,J,oo,le,he,Se,fe,xe):Jt&&(tt<0||pe!==ar[tt]?We(Ve,J,oo,2):tt--)}}},We=(O,F,J,ue,le=null)=>{const{el:he,type:Se,transition:fe,children:xe,shapeFlag:pe}=O;if(pe&6){We(O.component.subTree,F,J,ue);return}if(pe&128){O.suspense.move(F,J,ue);return}if(pe&64){Se.move(O,F,J,$e);return}if(Se===ut){o(he,F,J);for(let ze=0;ze<xe.length;ze++)We(xe[ze],F,J,ue);o(O.anchor,F,J);return}if(Se===jf){P(O,F,J);return}if(ue!==2&&pe&1&&fe)if(ue===0)fe.beforeEnter(he),o(he,F,J),$n(()=>fe.enter(he),le);else{const{leave:ze,delayLeave:Re,afterLeave:Ue}=fe,Ge=()=>o(he,F,J),mt=()=>{ze(he,()=>{Ge(),Ue&&Ue()})};Re?Re(he,Ge,mt):mt()}else o(he,F,J)},je=(O,F,J,ue=!1,le=!1)=>{const{type:he,props:Se,ref:fe,children:xe,dynamicChildren:pe,shapeFlag:Me,patchFlag:ze,dirs:Re,cacheIndex:Ue}=O;if(ze===-2&&(le=!1),fe!=null&&_d(fe,null,J,O,!0),Ue!=null&&(F.renderCache[Ue]=void 0),Me&256){F.ctx.deactivate(O);return}const Ge=Me&1&&Re,mt=!Nl(O);let tt;if(mt&&(tt=Se&&Se.onVnodeBeforeUnmount)&&$r(tt,F,O),Me&6)Je(O.component,J,ue);else{if(Me&128){O.suspense.unmount(J,ue);return}Ge&&yo(O,null,F,"beforeUnmount"),Me&64?O.type.remove(O,F,J,$e,ue):pe&&!pe.hasOnce&&(he!==ut||ze>0&&ze&64)?Le(pe,F,J,!1,!0):(he===ut&&ze&384||!le&&Me&16)&&Le(xe,F,J),ue&&it(O)}(mt&&(tt=Se&&Se.onVnodeUnmounted)||Ge)&&$n(()=>{tt&&$r(tt,F,O),Ge&&yo(O,null,F,"unmounted")},J)},it=O=>{const{type:F,el:J,anchor:ue,transition:le}=O;if(F===ut){rt(J,ue);return}if(F===jf){N(O);return}const he=()=>{s(J),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(O.shapeFlag&1&&le&&!le.persisted){const{leave:Se,delayLeave:fe}=le,xe=()=>Se(J,he);fe?fe(O.el,he,xe):xe()}else he()},rt=(O,F)=>{let J;for(;O!==F;)J=b(O),s(O),O=J;s(F)},Je=(O,F,J)=>{const{bum:ue,scope:le,update:he,subTree:Se,um:fe,m:xe,a:pe}=O;Ev(xe),Ev(pe),ue&&_c(ue),le.stop(),he&&(he.active=!1,je(Se,O,F,J)),fe&&$n(fe,F),$n(()=>{O.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve())},Le=(O,F,J,ue=!1,le=!1,he=0)=>{for(let Se=he;Se<O.length;Se++)je(O[Se],F,J,ue,le)},K=O=>{if(O.shapeFlag&6)return K(O.component.subTree);if(O.shapeFlag&128)return O.suspense.next();const F=b(O.anchor||O.el),J=F&&F[uk];return J?b(J):F};let ae=!1;const de=(O,F,J)=>{O==null?F._vnode&&je(F._vnode,null,null,!0):T(F._vnode||null,O,F,null,null,null,J),F._vnode=O,ae||(ae=!0,bv(),ay(),ae=!1)},$e={p:T,um:je,m:We,r:it,mt:I,mc:ie,pc:re,pbc:j,n:K,o:e};let Ee,Ze;return{render:de,hydrate:Ee,createApp:rk(de,Ee)}}function Uf({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function bo({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function pk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function My(e,t,r=!1){const o=e.children,s=t.children;if(Ie(o)&&Ie(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=Ii(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&My(f,d)),d.type===Cu&&(d.el=f.el)}}function gk(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function Ny(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ny(t)}function Ev(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const vk=Symbol.for("v-scx"),mk=()=>li(vk);function Th(e,t){return Su(e,null,t)}function yk(e,t){return Su(e,null,{flush:"sync"})}const sc={};function It(e,t,r){return Su(e,t,r)}function Su(e,t,{immediate:r,deep:o,flush:s,once:c,onTrack:f,onTrigger:d}=_t){if(t&&c){const W=t;t=(...X)=>{W(...X),q()}}const h=sn,p=W=>o===!0?W:Bi(W,o===!1?1:void 0);let v,y=!1,b=!1;if(Pt(e)?(v=()=>e.value,y=Es(e)):Al(e)?(v=()=>p(e),y=!0):Ie(e)?(b=!0,y=e.some(W=>Al(W)||Es(W)),v=()=>e.map(W=>{if(Pt(W))return W.value;if(Al(W))return p(W);if(Xe(W))return Ki(W,h,2)})):Xe(e)?t?v=()=>Ki(e,h,2):v=()=>(x&&x(),rr(e,h,3,[A])):v=tr,t&&o){const W=v;v=()=>Bi(W())}let x,A=W=>{x=P.onStop=()=>{Ki(W,h,4),x=P.onStop=void 0}},T;if(Tu)if(A=tr,t?r&&rr(t,h,3,[v(),b?[]:void 0,A]):v(),s==="sync"){const W=mk();T=W.__watcherHandles||(W.__watcherHandles=[])}else return tr;let E=b?new Array(e.length).fill(sc):sc;const L=()=>{if(!(!P.active||!P.dirty))if(t){const W=P.run();(o||y||(b?W.some((X,ie)=>Rn(X,E[ie])):Rn(W,E)))&&(x&&x(),rr(t,h,3,[W,E===sc?void 0:b&&E[0]===sc?[]:E,A]),E=W)}else P.run()};L.allowRecurse=!!t;let M;s==="sync"?M=L:s==="post"?M=()=>$n(L,h&&h.suspense):(L.pre=!0,h&&(L.id=h.uid),M=()=>xh(L));const P=new uh(v,tr,M),N=B0(),q=()=>{P.stop(),N&&ah(N.effects,P)};return t?r?L():E=P.run():s==="post"?$n(P.run.bind(P),h&&h.suspense):P.run(),T&&T.push(q),q}function bk(e,t,r){const o=this.proxy,s=$t(e)?e.includes(".")?$y(o,e):()=>o[e]:e.bind(o,o);let c;Xe(t)?c=t:(c=t.handler,r=t);const f=ha(this),d=Su(s,c.bind(o),r);return f(),d}function $y(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Bi(e,t=1/0,r){if(t<=0||!St(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,Pt(e))Bi(e.value,t,r);else if(Ie(e))for(let o=0;o<e.length;o++)Bi(e[o],t,r);else if(hu(e)||ms(e))e.forEach(o=>{Bi(o,t,r)});else if(O0(e)){for(const o in e)Bi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Bi(e[o],t,r)}return e}function Eh(e,t,r=_t){const o=da(),s=ir(t),c=hi(t),f=Py(e,t),d=iy((h,p)=>{let v,y=_t,b;return yk(()=>{const x=e[t];Rn(v,x)&&(v=x,p())}),{get(){return h(),r.get?r.get(v):v},set(x){const A=r.set?r.set(x):x;if(!Rn(A,v)&&!(y!==_t&&Rn(x,y)))return;const T=o.vnode.props;T&&(t in T||s in T||c in T)&&(`onUpdate:${t}`in T||`onUpdate:${s}`in T||`onUpdate:${c}`in T)||(v=x,p()),o.emit(`update:${t}`,A),Rn(x,A)&&Rn(x,y)&&!Rn(A,b)&&p(),y=x,b=A}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||_t:d,done:!1}:{done:!0}}}},d}const Py=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ir(t)}Modifiers`]||e[`${hi(t)}Modifiers`];function wk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||_t;let s=r;const c=t.startsWith("update:"),f=c&&Py(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>$t(v)?v.trim():v)),f.number&&(s=r.map(fd)));let d,h=o[d=xc(t)]||o[d=xc(ir(t))];!h&&c&&(h=o[d=xc(hi(t))]),h&&rr(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,rr(p,e,6,s)}}function Oy(e,t,r=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Xe(e)){const h=p=>{const v=Oy(p,t,!0);v&&(d=!0,Xt(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(St(e)&&o.set(e,null),null):(Ie(c)?c.forEach(h=>f[h]=null):Xt(f,c),St(e)&&o.set(e,f),f)}function ku(e,t){return!e||!du(t)?!1:(t=t.slice(2).replace(/Once$/,""),ct(e,t[0].toLowerCase()+t.slice(1))||ct(e,hi(t))||ct(e,t))}function Vf(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:y,data:b,setupState:x,ctx:A,inheritAttrs:T}=e,E=Ic(e);let L,M;try{if(r.shapeFlag&4){const N=s||o,q=N;L=wr(p.call(q,N,v,y,x,b,A)),M=d}else{const N=t;L=wr(N.length>1?N(y,{attrs:d,slots:f,emit:h}):N(y,null)),M=t.props?d:_k(d)}}catch(N){Pl.length=0,fa(N,e,1),L=Pe(fn)}let P=L;if(M&&T!==!1){const N=Object.keys(M),{shapeFlag:q}=P;N.length&&q&7&&(c&&N.some(lh)&&(M=Sk(M,c)),P=Zi(P,M,!1,!0))}return r.dirs&&(P=Zi(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(r.dirs):r.dirs),r.transition&&(P.transition=r.transition),L=P,Ic(E),L}function xk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(jl(s)){if(s.type!==fn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const _k=e=>{let t;for(const r in e)(r==="class"||r==="style"||du(r))&&((t||(t={}))[r]=e[r]);return t},Sk=(e,t)=>{const r={};for(const o in e)(!lh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function kk(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?Lv(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let y=0;y<v.length;y++){const b=v[y];if(f[b]!==o[b]&&!ku(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Lv(o,f,p):!0:!!f;return!1}function Lv(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!ku(r,c))return!0}return!1}function Lh({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const Ck=e=>e.__isSuspense;let Sd=0;const Tk={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)Ek(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Lk(e,t,r,o,s,f,d,h,p)}},hydrate:Ak,normalize:Mk},Ry=Tk;function Vl(e,t){const r=e.props&&e.props[t];Xe(r)&&r()}function Ek(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,y=v("div"),b=e.suspense=Dy(e,s,o,t,y,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,y,null,o,b,c,f),b.deps>0?(Vl(e,"onPending"),Vl(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),ws(b,e.ssFallback)):b.resolve(!1,!0)}function Lk(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const y=t.suspense=e.suspense;y.vnode=t,t.el=e.el;const b=t.ssContent,x=t.ssFallback,{activeBranch:A,pendingBranch:T,isInFallback:E,isHydrating:L}=y;if(T)y.pendingBranch=b,Rr(b,T)?(h(T,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0?y.resolve():E&&(L||(h(A,x,r,o,s,null,c,f,d),ws(y,x)))):(y.pendingId=Sd++,L?(y.isHydrating=!1,y.activeBranch=T):p(T,s,y),y.deps=0,y.effects.length=0,y.hiddenContainer=v("div"),E?(h(null,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0?y.resolve():(h(A,x,r,o,s,null,c,f,d),ws(y,x))):A&&Rr(b,A)?(h(A,b,r,o,s,y,c,f,d),y.resolve(!0)):(h(null,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0&&y.resolve()));else if(A&&Rr(b,A))h(A,b,r,o,s,y,c,f,d),ws(y,b);else if(Vl(t,"onPending"),y.pendingBranch=b,b.shapeFlag&512?y.pendingId=b.component.suspenseId:y.pendingId=Sd++,h(null,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0)y.resolve();else{const{timeout:M,pendingId:P}=y;M>0?setTimeout(()=>{y.pendingId===P&&y.fallback(x)},M):M===0&&y.fallback(x)}}function Dy(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:y,m:b,um:x,n:A,o:{parentNode:T,remove:E}}=p;let L;const M=$k(e);M&&t&&t.pendingBranch&&(L=t.pendingId,t.deps++);const P=e.props?D0(e.props.timeout):void 0,N=c,q={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Sd++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(W=!1,X=!1){const{vnode:ie,activeBranch:ee,pendingBranch:j,pendingId:te,effects:Z,parentComponent:H,container:I}=q;let k=!1;q.isHydrating?q.isHydrating=!1:W||(k=ee&&j.transition&&j.transition.mode==="out-in",k&&(ee.transition.afterLeave=()=>{te===q.pendingId&&(b(j,I,c===N?A(ee):c,0),vd(Z))}),ee&&(T(ee.el)!==q.hiddenContainer&&(c=A(ee)),x(ee,H,q,!0)),k||b(j,I,c,0)),ws(q,j),q.pendingBranch=null,q.isInFallback=!1;let B=q.parent,U=!1;for(;B;){if(B.pendingBranch){B.effects.push(...Z),U=!0;break}B=B.parent}!U&&!k&&vd(Z),q.effects=[],M&&t&&t.pendingBranch&&L===t.pendingId&&(t.deps--,t.deps===0&&!X&&t.resolve()),Vl(ie,"onResolve")},fallback(W){if(!q.pendingBranch)return;const{vnode:X,activeBranch:ie,parentComponent:ee,container:j,namespace:te}=q;Vl(X,"onFallback");const Z=A(ie),H=()=>{q.isInFallback&&(y(null,W,j,Z,ee,null,te,d,h),ws(q,W))},I=W.transition&&W.transition.mode==="out-in";I&&(ie.transition.afterLeave=H),q.isInFallback=!0,x(ie,ee,null,!0),I||H()},move(W,X,ie){q.activeBranch&&b(q.activeBranch,W,X,ie),q.container=W},next(){return q.activeBranch&&A(q.activeBranch)},registerDep(W,X,ie){const ee=!!q.pendingBranch;ee&&q.deps++;const j=W.vnode.el;W.asyncDep.catch(te=>{fa(te,W,0)}).then(te=>{if(W.isUnmounted||q.isUnmounted||q.pendingId!==W.suspenseId)return;W.asyncResolved=!0;const{vnode:Z}=W;Cd(W,te,!1),j&&(Z.el=j);const H=!j&&W.subTree.el;X(W,Z,T(j||W.subTree.el),j?null:A(W.subTree),q,f,ie),H&&E(H),Lh(W,Z.el),ee&&--q.deps===0&&q.resolve()})},unmount(W,X){q.isUnmounted=!0,q.activeBranch&&x(q.activeBranch,r,W,X),q.pendingBranch&&x(q.pendingBranch,r,W,X)}};return q}function Ak(e,t,r,o,s,c,f,d,h){const p=t.suspense=Dy(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function Mk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=Av(o?r.default:r),e.ssFallback=o?Av(r.fallback):Pe(fn)}function Av(e){let t;if(Xe(e)){const r=Ls&&e._c;r&&(e._d=!1,oe()),e=e(),r&&(e._d=!0,t=zn,zy())}return Ie(e)&&(e=xk(e)),e=wr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Nk(e,t){t&&t.pendingBranch?Ie(e)?t.effects.push(...e):t.effects.push(e):vd(e)}function ws(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,Lh(o,s))}function $k(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ut=Symbol.for("v-fgt"),Cu=Symbol.for("v-txt"),fn=Symbol.for("v-cmt"),jf=Symbol.for("v-stc"),Pl=[];let zn=null;function oe(e=!1){Pl.push(zn=e?null:[])}function zy(){Pl.pop(),zn=Pl[Pl.length-1]||null}let Ls=1;function Wc(e){Ls+=e,e<0&&zn&&(zn.hasOnce=!0)}function Iy(e){return e.dynamicChildren=Ls>0?zn||vs:null,zy(),Ls>0&&zn&&zn.push(e),e}function me(e,t,r,o,s,c){return Iy(Y(e,t,r,o,s,c,!0))}function ot(e,t,r,o,s){return Iy(Pe(e,t,r,o,s,!0))}function jl(e){return e?e.__v_isVNode===!0:!1}function Rr(e,t){return e.type===t.type&&e.key===t.key}const Fy=({key:e})=>e??null,kc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?$t(e)||Pt(e)||Xe(e)?{i:Zt,r:e,k:t,f:!!r}:e:null);function Y(e,t=null,r=null,o=0,s=null,c=e===ut?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fy(t),ref:t&&kc(t),scopeId:bu,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Zt};return d?(Ah(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=$t(r)?8:16),Ls>0&&!f&&zn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&zn.push(h),h}const Pe=Pk;function Pk(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===my)&&(e=fn),jl(e)){const d=Zi(e,t,!0);return r&&Ah(d,r),Ls>0&&!c&&zn&&(d.shapeFlag&6?zn[zn.indexOf(e)]=d:zn.push(d)),d.patchFlag=-2,d}if(qk(e)&&(e=e.__vccOpts),t){t=Hy(t);let{class:d,style:h}=t;d&&!$t(d)&&(t.class=lt(d)),St(h)&&(ey(h)&&!Ie(h)&&(h=Xt({},h)),t.style=Kt(h))}const f=$t(e)?1:Ck(e)?128:fk(e)?64:St(e)?4:Xe(e)?2:0;return Y(e,t,r,o,s,f,c,!0)}function Hy(e){return e?ey(e)||Sy(e)?Xt({},e):e:null}function Zi(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?ai(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Fy(p),ref:t&&t.ref?r&&c?Ie(c)?c.concat(kc(t)):[c,kc(t)]:kc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ut?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zi(e.ssContent),ssFallback:e.ssFallback&&Zi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&Fc(v,h.clone(v)),v}function pt(e=" ",t=0){return Pe(Cu,null,e,t)}function Ye(e="",t=!1){return t?(oe(),ot(fn,null,e)):Pe(fn,null,e)}function wr(e){return e==null||typeof e=="boolean"?Pe(fn):Ie(e)?Pe(ut,null,e.slice()):typeof e=="object"?Ii(e):Pe(Cu,null,String(e))}function Ii(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zi(e)}function Ah(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Ie(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Ah(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Sy(t)?t._ctx=Zt:s===3&&Zt&&(Zt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Xe(t)?(t={default:t,_ctx:Zt},r=32):(t=String(t),o&64?(r=16,t=[pt(t)]):r=8);e.children=t,e.shapeFlag|=r}function ai(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=lt([t.class,o.class]));else if(s==="style")t.style=Kt([t.style,o.style]);else if(du(s)){const c=t[s],f=o[s];f&&c!==f&&!(Ie(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function $r(e,t,r,o=null){rr(e,t,7,[r,o])}const Ok=wy();let Rk=0;function Dk(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Ok,c={uid:Rk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new J_(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Cy(o,s),emitsOptions:Oy(o,s),emit:null,emitted:null,propsDefaults:_t,inheritAttrs:o.inheritAttrs,ctx:_t,data:_t,props:_t,attrs:_t,slots:_t,refs:_t,setupState:_t,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=wk.bind(null,c),e.ce&&e.ce(c),c}let sn=null;const da=()=>sn||Zt;let Uc,kd;{const e=z0(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};Uc=t("__VUE_INSTANCE_SETTERS__",r=>sn=r),kd=t("__VUE_SSR_SETTERS__",r=>Tu=r)}const ha=e=>{const t=sn;return Uc(e),e.scope.on(),()=>{e.scope.off(),Uc(t)}},Mv=()=>{sn&&sn.scope.off(),Uc(null)};function qy(e){return e.vnode.shapeFlag&4}let Tu=!1;function zk(e,t=!1,r=!1){t&&kd(t);const{props:o,children:s}=e.vnode,c=qy(e);ik(e,o,c,t),ak(e,s,r);const f=c?Ik(e,t):void 0;return t&&kd(!1),f}function Ik(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,KS);const{setup:o}=r;if(o){const s=e.setupContext=o.length>1?Wy(e):null,c=ha(e);ro();const f=Ki(o,e,0,[e.props,s]);if(io(),c(),$0(f)){if(f.then(Mv,Mv),t)return f.then(d=>{Cd(e,d,t)}).catch(d=>{fa(d,e,0)});e.asyncDep=f}else Cd(e,f,t)}else By(e,t)}function Cd(e,t,r){Xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=ry(t)),By(e,r)}let Nv;function By(e,t,r){const o=e.type;if(!e.render){if(!t&&Nv&&!o.render){const s=o.template||kh(e).template;if(s){const{isCustomElement:c,compilerOptions:f}=e.appContext.config,{delimiters:d,compilerOptions:h}=o,p=Xt(Xt({isCustomElement:c,delimiters:d},f),h);o.render=Nv(s,p)}}e.render=o.render||tr}{const s=ha(e);ro();try{ZS(e)}finally{io(),s()}}}const Fk={get(e,t){return Fn(e,"get",""),e[t]}};function Wy(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Fk),slots:e.slots,emit:e.emit,expose:t}}function Eu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ry(mh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in $l)return $l[r](e)},has(t,r){return r in t||r in $l}})):e.proxy}function Hk(e,t=!0){return Xe(e)?e.displayName||e.name:e.name||t&&e.__name}function qk(e){return Xe(e)&&"__vccOpts"in e}const Ce=(e,t)=>xS(e,t,Tu);function pa(e,t,r){const o=arguments.length;return o===2?St(t)&&!Ie(t)?jl(t)?Pe(e,null,[t]):Pe(e,t):Pe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&jl(r)&&(r=[r]),Pe(e,t,r))}const Bk="3.4.37";/**
14
14
  * @vue/runtime-dom v3.4.37
15
15
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
16
  * @license MIT
17
- **/const Wk="http://www.w3.org/2000/svg",Uk="http://www.w3.org/1998/Math/MathML",ri=typeof document<"u"?document:null,$v=ri&&ri.createElement("template"),Vk={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?ri.createElementNS(Wk,e):t==="mathml"?ri.createElementNS(Uk,e):r?ri.createElement(e,{is:r}):ri.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>ri.createTextNode(e),createComment:e=>ri.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ri.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{$v.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const d=$v.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Mi="transition",bl="animation",Gl=Symbol("_vtc"),Mh=(e,{slots:t})=>pa(OS,jk(e),t);Mh.displayName="Transition";const Uy={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};Mh.props=Xt({},fy,Uy);const wo=(e,t=[])=>{Ie(e)?e.forEach(r=>r(...t)):e&&e(...t)},Pv=e=>e?Ie(e)?e.some(t=>t.length>1):e.length>1:!1;function jk(e){const t={};for(const Z in e)Z in Uy||(t[Z]=e[Z]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:y=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,E=Gk(s),C=E&&E[0],L=E&&E[1],{onBeforeEnter:N,onEnter:A,onEnterCancelled:P,onLeave:M,onLeaveCancelled:q,onBeforeAppear:W=N,onAppear:X=A,onAppearCancelled:ie=P}=t,ee=(Z,H,I)=>{xo(Z,H?v:d),xo(Z,H?p:f),I&&I()},j=(Z,H)=>{Z._isLeaving=!1,xo(Z,y),xo(Z,x),xo(Z,b),H&&H()},te=Z=>(H,I)=>{const k=Z?X:A,B=()=>ee(H,Z,I);wo(k,[H,B]),Ov(()=>{xo(H,Z?h:c),Ni(H,Z?v:d),Pv(k)||Rv(H,o,C,B)})};return Xt(t,{onBeforeEnter(Z){wo(N,[Z]),Ni(Z,c),Ni(Z,f)},onBeforeAppear(Z){wo(W,[Z]),Ni(Z,h),Ni(Z,p)},onEnter:te(!1),onAppear:te(!0),onLeave(Z,H){Z._isLeaving=!0;const I=()=>j(Z,H);Ni(Z,y),Ni(Z,b),Yk(),Ov(()=>{Z._isLeaving&&(xo(Z,y),Ni(Z,x),Pv(M)||Rv(Z,o,L,I))}),wo(M,[Z,I])},onEnterCancelled(Z){ee(Z,!1),wo(P,[Z])},onAppearCancelled(Z){ee(Z,!0),wo(ie,[Z])},onLeaveCancelled(Z){j(Z),wo(q,[Z])}})}function Gk(e){if(e==null)return null;if(St(e))return[Gf(e.enter),Gf(e.leave)];{const t=Gf(e);return[t,t]}}function Gf(e){return D0(e)}function Ni(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Gl]||(e[Gl]=new Set)).add(t)}function xo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Gl];r&&(r.delete(t),r.size||(e[Gl]=void 0))}function Ov(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Kk=0;function Rv(e,t,r,o){const s=e._endId=++Kk,c=()=>{s===e._endId&&o()};if(r)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=Xk(e,t);if(!f)return o();const p=f+"end";let v=0;const y=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++v>=h&&y()};setTimeout(()=>{v<h&&y()},d+1),e.addEventListener(p,b)}function Xk(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Mi}Delay`),c=o(`${Mi}Duration`),f=Dv(s,c),d=o(`${bl}Delay`),h=o(`${bl}Duration`),p=Dv(d,h);let v=null,y=0,b=0;t===Mi?f>0&&(v=Mi,y=f,b=c.length):t===bl?p>0&&(v=bl,y=p,b=h.length):(y=Math.max(f,p),v=y>0?f>p?Mi:bl:null,b=v?v===Mi?c.length:h.length:0);const x=v===Mi&&/\b(transform|all)(,|$)/.test(o(`${Mi}Property`).toString());return{type:v,timeout:y,propCount:b,hasTransform:x}}function Dv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>zv(r)+zv(e[o])))}function zv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Yk(){return document.body.offsetHeight}function Zk(e,t,r){const o=e[Gl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Vc=Symbol("_vod"),Vy=Symbol("_vsh"),Ui={beforeMount(e,{value:t},{transition:r}){e[Vc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):wl(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),wl(e,!0),o.enter(e)):o.leave(e,()=>{wl(e,!1)}):wl(e,t))},beforeUnmount(e,{value:t}){wl(e,t)}};function wl(e,t){e.style.display=t?e[Vc]:"none",e[Vy]=!t}const Jk=Symbol(""),Qk=/(^|;)\s*display\s*:/;function eC(e,t,r){const o=e.style,s=$t(r);let c=!1;if(r&&!s){if(t)if($t(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Cc(o,d,"")}else for(const f in t)r[f]==null&&Cc(o,f,"");for(const f in r)f==="display"&&(c=!0),Cc(o,f,r[f])}else if(s){if(t!==r){const f=o[Jk];f&&(r+=";"+f),o.cssText=r,c=Qk.test(r)}}else t&&e.removeAttribute("style");Vc in e&&(e[Vc]=c?o.display:"",e[Vy]&&(o.display="none"))}const Iv=/\s*!important$/;function Cc(e,t,r){if(Ie(r))r.forEach(o=>Cc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=tC(e,t);Iv.test(r)?e.setProperty(hi(o),r.replace(Iv,""),"important"):e[o]=r}}const Fv=["Webkit","Moz","ms"],Kf={};function tC(e,t){const r=Kf[t];if(r)return r;let o=ir(t);if(o!=="filter"&&o in e)return Kf[t]=o;o=gu(o);for(let s=0;s<Fv.length;s++){const c=Fv[s]+o;if(c in e)return Kf[t]=c}return t}const Hv="http://www.w3.org/1999/xlink";function qv(e,t,r,o,s,c=Y_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Hv,t.slice(6,t.length)):e.setAttributeNS(Hv,t,r):r==null||c&&!I0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Hr(r)?String(r):r)}function nC(e,t,r,o){if(t==="innerHTML"||t==="textContent"){if(r==null)return;e[t]=r;return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const f=s==="OPTION"?e.getAttribute("value")||"":e.value,d=r==null?"":String(r);(f!==d||!("_value"in e))&&(e.value=d),r==null&&e.removeAttribute(t),e._value=r;return}let c=!1;if(r===""||r==null){const f=typeof e[t];f==="boolean"?r=I0(r):r==null&&f==="string"?(r="",c=!0):f==="number"&&(r=0,c=!0)}try{e[t]=r}catch{}c&&e.removeAttribute(t)}function Co(e,t,r,o){e.addEventListener(t,r,o)}function rC(e,t,r,o){e.removeEventListener(t,r,o)}const Bv=Symbol("_vei");function iC(e,t,r,o,s=null){const c=e[Bv]||(e[Bv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=oC(t);if(o){const p=c[t]=aC(o,s);Co(e,d,p,h)}else f&&(rC(e,d,f,h),c[t]=void 0)}}const Wv=/(?:Once|Passive|Capture)$/;function oC(e){let t;if(Wv.test(e)){t={};let o;for(;o=e.match(Wv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):hi(e.slice(2)),t]}let Xf=0;const sC=Promise.resolve(),lC=()=>Xf||(sC.then(()=>Xf=0),Xf=Date.now());function aC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;rr(cC(o,r.value),t,5,[o])};return r.value=e,r.attached=lC(),r}function cC(e,t){if(Ie(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Uv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,uC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?Zk(e,o,f):t==="style"?eC(e,r,o):du(t)?lh(t)||iC(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):fC(e,t,o,f))?(nC(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&qv(e,t,o,f,c,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),qv(e,t,o,f))};function fC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Uv(t)&&Xe(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Uv(t)&&$t(r)?!1:t in e}const jc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ie(t)?r=>_c(t,r):t};function dC(e){e.target.composing=!0}function Vv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xs=Symbol("_assign"),hC={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[xs]=jc(s);const c=o||s.props&&s.props.type==="number";Co(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=fd(d)),e[xs](d)}),r&&Co(e,"change",()=>{e.value=e.value.trim()}),t||(Co(e,"compositionstart",dC),Co(e,"compositionend",Vv),Co(e,"change",Vv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[xs]=jc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?fd(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},pC={deep:!0,created(e,t,r){e[xs]=jc(r),Co(e,"change",()=>{const o=e._modelValue,s=gC(e),c=e.checked,f=e[xs];if(Ie(o)){const d=F0(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(hu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(jy(e,c))})},mounted:jv,beforeUpdate(e,t,r){e[xs]=jc(r),jv(e,t,r)}};function jv(e,{value:t,oldValue:r},o){e._modelValue=t,Ie(t)?e.checked=F0(t,o.props.value)>-1:hu(t)?e.checked=t.has(o.props.value):t!==r&&(e.checked=vu(t,jy(e,!0)))}function gC(e){return"_value"in e?e._value:e.value}function jy(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const vC=["ctrl","shift","alt","meta"],mC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>vC.some(r=>e[`${r}Key`]&&!t.includes(r))},Tc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(s,...c)=>{for(let f=0;f<t.length;f++){const d=mC[t[f]];if(d&&d(s,t))return}return e(s,...c)})},yC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Td=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=hi(s.key);if(t.some(f=>f===c||yC[f]===c))return e(s)})},bC=Xt({patchProp:uC},Vk);let Gv;function wC(){return Gv||(Gv=dk(bC))}const Gy=(...e)=>{const t=wC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=_C(o);if(!s)return;const c=t._component;!Xe(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.innerHTML="";const f=r(s,!1,xC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function xC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function _C(e){return $t(e)?document.querySelector(e):e}const Vr=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},SC={};function kC(e,t){const r=Po("RouterView");return oe(),ot(r)}const CC=Vr(SC,[["render",kC]]);/*!
17
+ **/const Wk="http://www.w3.org/2000/svg",Uk="http://www.w3.org/1998/Math/MathML",ri=typeof document<"u"?document:null,$v=ri&&ri.createElement("template"),Vk={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?ri.createElementNS(Wk,e):t==="mathml"?ri.createElementNS(Uk,e):r?ri.createElement(e,{is:r}):ri.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>ri.createTextNode(e),createComment:e=>ri.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ri.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{$v.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const d=$v.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Mi="transition",bl="animation",Gl=Symbol("_vtc"),Mh=(e,{slots:t})=>pa(OS,jk(e),t);Mh.displayName="Transition";const Uy={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};Mh.props=Xt({},fy,Uy);const wo=(e,t=[])=>{Ie(e)?e.forEach(r=>r(...t)):e&&e(...t)},Pv=e=>e?Ie(e)?e.some(t=>t.length>1):e.length>1:!1;function jk(e){const t={};for(const Z in e)Z in Uy||(t[Z]=e[Z]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:y=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,A=Gk(s),T=A&&A[0],E=A&&A[1],{onBeforeEnter:L,onEnter:M,onEnterCancelled:P,onLeave:N,onLeaveCancelled:q,onBeforeAppear:W=L,onAppear:X=M,onAppearCancelled:ie=P}=t,ee=(Z,H,I)=>{xo(Z,H?v:d),xo(Z,H?p:f),I&&I()},j=(Z,H)=>{Z._isLeaving=!1,xo(Z,y),xo(Z,x),xo(Z,b),H&&H()},te=Z=>(H,I)=>{const k=Z?X:M,B=()=>ee(H,Z,I);wo(k,[H,B]),Ov(()=>{xo(H,Z?h:c),Ni(H,Z?v:d),Pv(k)||Rv(H,o,T,B)})};return Xt(t,{onBeforeEnter(Z){wo(L,[Z]),Ni(Z,c),Ni(Z,f)},onBeforeAppear(Z){wo(W,[Z]),Ni(Z,h),Ni(Z,p)},onEnter:te(!1),onAppear:te(!0),onLeave(Z,H){Z._isLeaving=!0;const I=()=>j(Z,H);Ni(Z,y),Ni(Z,b),Yk(),Ov(()=>{Z._isLeaving&&(xo(Z,y),Ni(Z,x),Pv(N)||Rv(Z,o,E,I))}),wo(N,[Z,I])},onEnterCancelled(Z){ee(Z,!1),wo(P,[Z])},onAppearCancelled(Z){ee(Z,!0),wo(ie,[Z])},onLeaveCancelled(Z){j(Z),wo(q,[Z])}})}function Gk(e){if(e==null)return null;if(St(e))return[Gf(e.enter),Gf(e.leave)];{const t=Gf(e);return[t,t]}}function Gf(e){return D0(e)}function Ni(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Gl]||(e[Gl]=new Set)).add(t)}function xo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Gl];r&&(r.delete(t),r.size||(e[Gl]=void 0))}function Ov(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Kk=0;function Rv(e,t,r,o){const s=e._endId=++Kk,c=()=>{s===e._endId&&o()};if(r)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=Xk(e,t);if(!f)return o();const p=f+"end";let v=0;const y=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++v>=h&&y()};setTimeout(()=>{v<h&&y()},d+1),e.addEventListener(p,b)}function Xk(e,t){const r=window.getComputedStyle(e),o=A=>(r[A]||"").split(", "),s=o(`${Mi}Delay`),c=o(`${Mi}Duration`),f=Dv(s,c),d=o(`${bl}Delay`),h=o(`${bl}Duration`),p=Dv(d,h);let v=null,y=0,b=0;t===Mi?f>0&&(v=Mi,y=f,b=c.length):t===bl?p>0&&(v=bl,y=p,b=h.length):(y=Math.max(f,p),v=y>0?f>p?Mi:bl:null,b=v?v===Mi?c.length:h.length:0);const x=v===Mi&&/\b(transform|all)(,|$)/.test(o(`${Mi}Property`).toString());return{type:v,timeout:y,propCount:b,hasTransform:x}}function Dv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>zv(r)+zv(e[o])))}function zv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Yk(){return document.body.offsetHeight}function Zk(e,t,r){const o=e[Gl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Vc=Symbol("_vod"),Vy=Symbol("_vsh"),Ui={beforeMount(e,{value:t},{transition:r}){e[Vc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):wl(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),wl(e,!0),o.enter(e)):o.leave(e,()=>{wl(e,!1)}):wl(e,t))},beforeUnmount(e,{value:t}){wl(e,t)}};function wl(e,t){e.style.display=t?e[Vc]:"none",e[Vy]=!t}const Jk=Symbol(""),Qk=/(^|;)\s*display\s*:/;function eC(e,t,r){const o=e.style,s=$t(r);let c=!1;if(r&&!s){if(t)if($t(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Cc(o,d,"")}else for(const f in t)r[f]==null&&Cc(o,f,"");for(const f in r)f==="display"&&(c=!0),Cc(o,f,r[f])}else if(s){if(t!==r){const f=o[Jk];f&&(r+=";"+f),o.cssText=r,c=Qk.test(r)}}else t&&e.removeAttribute("style");Vc in e&&(e[Vc]=c?o.display:"",e[Vy]&&(o.display="none"))}const Iv=/\s*!important$/;function Cc(e,t,r){if(Ie(r))r.forEach(o=>Cc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=tC(e,t);Iv.test(r)?e.setProperty(hi(o),r.replace(Iv,""),"important"):e[o]=r}}const Fv=["Webkit","Moz","ms"],Kf={};function tC(e,t){const r=Kf[t];if(r)return r;let o=ir(t);if(o!=="filter"&&o in e)return Kf[t]=o;o=gu(o);for(let s=0;s<Fv.length;s++){const c=Fv[s]+o;if(c in e)return Kf[t]=c}return t}const Hv="http://www.w3.org/1999/xlink";function qv(e,t,r,o,s,c=Y_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Hv,t.slice(6,t.length)):e.setAttributeNS(Hv,t,r):r==null||c&&!I0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Hr(r)?String(r):r)}function nC(e,t,r,o){if(t==="innerHTML"||t==="textContent"){if(r==null)return;e[t]=r;return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const f=s==="OPTION"?e.getAttribute("value")||"":e.value,d=r==null?"":String(r);(f!==d||!("_value"in e))&&(e.value=d),r==null&&e.removeAttribute(t),e._value=r;return}let c=!1;if(r===""||r==null){const f=typeof e[t];f==="boolean"?r=I0(r):r==null&&f==="string"?(r="",c=!0):f==="number"&&(r=0,c=!0)}try{e[t]=r}catch{}c&&e.removeAttribute(t)}function Co(e,t,r,o){e.addEventListener(t,r,o)}function rC(e,t,r,o){e.removeEventListener(t,r,o)}const Bv=Symbol("_vei");function iC(e,t,r,o,s=null){const c=e[Bv]||(e[Bv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=oC(t);if(o){const p=c[t]=aC(o,s);Co(e,d,p,h)}else f&&(rC(e,d,f,h),c[t]=void 0)}}const Wv=/(?:Once|Passive|Capture)$/;function oC(e){let t;if(Wv.test(e)){t={};let o;for(;o=e.match(Wv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):hi(e.slice(2)),t]}let Xf=0;const sC=Promise.resolve(),lC=()=>Xf||(sC.then(()=>Xf=0),Xf=Date.now());function aC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;rr(cC(o,r.value),t,5,[o])};return r.value=e,r.attached=lC(),r}function cC(e,t){if(Ie(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Uv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,uC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?Zk(e,o,f):t==="style"?eC(e,r,o):du(t)?lh(t)||iC(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):fC(e,t,o,f))?(nC(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&qv(e,t,o,f,c,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),qv(e,t,o,f))};function fC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Uv(t)&&Xe(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Uv(t)&&$t(r)?!1:t in e}const jc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ie(t)?r=>_c(t,r):t};function dC(e){e.target.composing=!0}function Vv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xs=Symbol("_assign"),hC={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[xs]=jc(s);const c=o||s.props&&s.props.type==="number";Co(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=fd(d)),e[xs](d)}),r&&Co(e,"change",()=>{e.value=e.value.trim()}),t||(Co(e,"compositionstart",dC),Co(e,"compositionend",Vv),Co(e,"change",Vv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[xs]=jc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?fd(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},pC={deep:!0,created(e,t,r){e[xs]=jc(r),Co(e,"change",()=>{const o=e._modelValue,s=gC(e),c=e.checked,f=e[xs];if(Ie(o)){const d=F0(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(hu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(jy(e,c))})},mounted:jv,beforeUpdate(e,t,r){e[xs]=jc(r),jv(e,t,r)}};function jv(e,{value:t,oldValue:r},o){e._modelValue=t,Ie(t)?e.checked=F0(t,o.props.value)>-1:hu(t)?e.checked=t.has(o.props.value):t!==r&&(e.checked=vu(t,jy(e,!0)))}function gC(e){return"_value"in e?e._value:e.value}function jy(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const vC=["ctrl","shift","alt","meta"],mC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>vC.some(r=>e[`${r}Key`]&&!t.includes(r))},Tc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(s,...c)=>{for(let f=0;f<t.length;f++){const d=mC[t[f]];if(d&&d(s,t))return}return e(s,...c)})},yC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Td=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=hi(s.key);if(t.some(f=>f===c||yC[f]===c))return e(s)})},bC=Xt({patchProp:uC},Vk);let Gv;function wC(){return Gv||(Gv=dk(bC))}const Gy=(...e)=>{const t=wC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=_C(o);if(!s)return;const c=t._component;!Xe(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.innerHTML="";const f=r(s,!1,xC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function xC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function _C(e){return $t(e)?document.querySelector(e):e}const Vr=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},SC={};function kC(e,t){const r=Po("RouterView");return oe(),ot(r)}const CC=Vr(SC,[["render",kC]]);/*!
18
18
  * vue-router v4.4.3
19
19
  * (c) 2024 Eduardo San Martin Morote
20
20
  * @license MIT
21
- */const ds=typeof document<"u";function TC(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const wt=Object.assign;function Yf(e,t){const r={};for(const o in t){const s=t[o];r[o]=kr(s)?s.map(e):e(s)}return r}const Ol=()=>{},kr=Array.isArray,Ky=/#/g,EC=/&/g,LC=/\//g,AC=/=/g,MC=/\?/g,Xy=/\+/g,NC=/%5B/g,$C=/%5D/g,Yy=/%5E/g,PC=/%60/g,Zy=/%7B/g,OC=/%7C/g,Jy=/%7D/g,RC=/%20/g;function Nh(e){return encodeURI(""+e).replace(OC,"|").replace(NC,"[").replace($C,"]")}function DC(e){return Nh(e).replace(Zy,"{").replace(Jy,"}").replace(Yy,"^")}function Ed(e){return Nh(e).replace(Xy,"%2B").replace(RC,"+").replace(Ky,"%23").replace(EC,"%26").replace(PC,"`").replace(Zy,"{").replace(Jy,"}").replace(Yy,"^")}function zC(e){return Ed(e).replace(AC,"%3D")}function IC(e){return Nh(e).replace(Ky,"%23").replace(MC,"%3F")}function FC(e){return e==null?"":IC(e).replace(LC,"%2F")}function Kl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const HC=/\/$/,qC=e=>e.replace(HC,"");function Zf(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=VC(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:Kl(f)}}function BC(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Kv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function WC(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&As(t.matched[o],r.matched[s])&&Qy(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function As(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qy(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!UC(e[r],t[r]))return!1;return!0}function UC(e,t){return kr(e)?Xv(e,t):kr(t)?Xv(t,e):e===t}function Xv(e,t){return kr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function VC(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const $i={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Xl;(function(e){e.pop="pop",e.push="push"})(Xl||(Xl={}));var Rl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Rl||(Rl={}));function jC(e){if(!e)if(ds){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),qC(e)}const GC=/^[^#]+#/;function KC(e,t){return e.replace(GC,"#")+t}function XC(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const Lu=()=>({left:window.scrollX,top:window.scrollY});function YC(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=XC(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Yv(e,t){return(history.state?history.state.position-t:-1)+e}const Ld=new Map;function ZC(e,t){Ld.set(e,t)}function JC(e){const t=Ld.get(e);return Ld.delete(e),t}let QC=()=>location.protocol+"//"+location.host;function eb(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),Kv(h,"")}return Kv(r,e)+o+s}function eT(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=eb(e,location),E=r.value,C=t.value;let L=0;if(b){if(r.value=x,t.value=b,f&&f===E){f=null;return}L=C?b.position-C.position:0}else o(x);s.forEach(N=>{N(r.value,E,{delta:L,type:Xl.pop,direction:L?L>0?Rl.forward:Rl.back:Rl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const E=s.indexOf(b);E>-1&&s.splice(E,1)};return c.push(x),x}function v(){const{history:b}=window;b.state&&b.replaceState(wt({},b.state,{scroll:Lu()}),"")}function y(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:y}}function Zv(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Lu():null}}function tT(e){const{history:t,location:r}=window,o={value:eb(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const y=e.indexOf("#"),b=y>-1?(r.host&&document.querySelector("base")?e:e.slice(y))+h:QC()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(x){console.error(x),r[v?"replace":"assign"](b)}}function f(h,p){const v=wt({},t.state,Zv(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=wt({},s.value,t.state,{forward:h,scroll:Lu()});c(v.current,v,!0);const y=wt({},Zv(o.value,h,null),{position:v.position+1},p);c(h,y,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function nT(e){e=jC(e);const t=tT(e),r=eT(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=wt({location:"",base:e,go:o,createHref:KC.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function rT(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nT(e)}function iT(e){return typeof e=="string"||e&&typeof e=="object"}function tb(e){return typeof e=="string"||typeof e=="symbol"}const nb=Symbol("");var Jv;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Jv||(Jv={}));function Ms(e,t){return wt(new Error,{type:e,[nb]:!0},t)}function ti(e,t){return e instanceof Error&&nb in e&&(t==null||!!(e.type&t))}const Qv="[^/]+?",oT={sensitive:!1,strict:!1,start:!0,end:!0},sT=/[.+*?^${}()[\]/\\]/g;function lT(e,t){const r=wt({},oT,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let y=0;y<p.length;y++){const b=p[y];let x=40+(r.sensitive?.25:0);if(b.type===0)y||(s+="/"),s+=b.value.replace(sT,"\\$&"),x+=40;else if(b.type===1){const{value:E,repeatable:C,optional:L,regexp:N}=b;c.push({name:E,repeatable:C,optional:L});const A=N||Qv;if(A!==Qv){x+=10;try{new RegExp(`(${A})`)}catch(M){throw new Error(`Invalid custom RegExp for param "${E}" (${A}): `+M.message)}}let P=C?`((?:${A})(?:/(?:${A}))*)`:`(${A})`;y||(P=L&&p.length<2?`(?:/${P})`:"/"+P),L&&(P+="?"),s+=P,x+=20,L&&(x+=-8),C&&(x+=-20),A===".*"&&(x+=-50)}v.push(x)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),y={};if(!v)return null;for(let b=1;b<v.length;b++){const x=v[b]||"",E=c[b-1];y[E.name]=x&&E.repeatable?x.split("/"):x}return y}function h(p){let v="",y=!1;for(const b of e){(!y||!v.endsWith("/"))&&(v+="/"),y=!1;for(const x of b)if(x.type===0)v+=x.value;else if(x.type===1){const{value:E,repeatable:C,optional:L}=x,N=E in p?p[E]:"";if(kr(N)&&!C)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const A=kr(N)?N.join("/"):N;if(!A)if(L)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):y=!0);else throw new Error(`Missing required param "${E}"`);v+=A}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function aT(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function rb(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=aT(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(em(o))return 1;if(em(s))return-1}return s.length-o.length}function em(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const cT={type:0,value:""},uT=/[a-zA-Z0-9_]/;function fT(e){if(!e)return[[]];if(e==="/")return[[cT]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function y(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&y(),f()):h===":"?(y(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:uT.test(h)?b():(y(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:y(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),y(),f(),s}function dT(e,t,r){const o=lT(fT(e.path),r),s=wt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function hT(e,t){const r=[],o=new Map;t=rm({strict:!1,end:!0,sensitive:!1},t);function s(y){return o.get(y)}function c(y,b,x){const E=!x,C=pT(y);C.aliasOf=x&&x.record;const L=rm(t,y),N=[C];if("alias"in y){const M=typeof y.alias=="string"?[y.alias]:y.alias;for(const q of M)N.push(wt({},C,{components:x?x.record.components:C.components,path:q,aliasOf:x?x.record:C}))}let A,P;for(const M of N){const{path:q}=M;if(b&&q[0]!=="/"){const W=b.record.path,X=W[W.length-1]==="/"?"":"/";M.path=b.record.path+(q&&X+q)}if(A=dT(M,b,L),x?x.alias.push(A):(P=P||A,P!==A&&P.alias.push(A),E&&y.name&&!nm(A)&&f(y.name)),ib(A)&&h(A),C.children){const W=C.children;for(let X=0;X<W.length;X++)c(W[X],A,x&&x.children[X])}x=x||A}return P?()=>{f(P)}:Ol}function f(y){if(tb(y)){const b=o.get(y);b&&(o.delete(y),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(y);b>-1&&(r.splice(b,1),y.record.name&&o.delete(y.record.name),y.children.forEach(f),y.alias.forEach(f))}}function d(){return r}function h(y){const b=mT(y,r);r.splice(b,0,y),y.record.name&&!nm(y)&&o.set(y.record.name,y)}function p(y,b){let x,E={},C,L;if("name"in y&&y.name){if(x=o.get(y.name),!x)throw Ms(1,{location:y});L=x.record.name,E=wt(tm(b.params,x.keys.filter(P=>!P.optional).concat(x.parent?x.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),y.params&&tm(y.params,x.keys.map(P=>P.name))),C=x.stringify(E)}else if(y.path!=null)C=y.path,x=r.find(P=>P.re.test(C)),x&&(E=x.parse(C),L=x.record.name);else{if(x=b.name?o.get(b.name):r.find(P=>P.re.test(b.path)),!x)throw Ms(1,{location:y,currentLocation:b});L=x.record.name,E=wt({},b.params,y.params),C=x.stringify(E)}const N=[];let A=x;for(;A;)N.unshift(A.record),A=A.parent;return{name:L,path:C,params:E,matched:N,meta:vT(N)}}e.forEach(y=>c(y));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function tm(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function pT(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:gT(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function gT(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function nm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function vT(e){return e.reduce((t,r)=>wt(t,r.meta),{})}function rm(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function mT(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;rb(e,t[c])<0?o=c:r=c+1}const s=yT(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function yT(e){let t=e;for(;t=t.parent;)if(ib(t)&&rb(e,t)===0)return t}function ib({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bT(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(Xy," "),f=c.indexOf("="),d=Kl(f<0?c:c.slice(0,f)),h=f<0?null:Kl(c.slice(f+1));if(d in t){let p=t[d];kr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function im(e){let t="";for(let r in e){const o=e[r];if(r=zC(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(kr(o)?o.map(c=>c&&Ed(c)):[o&&Ed(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function wT(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=kr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const xT=Symbol(""),om=Symbol(""),$h=Symbol(""),ob=Symbol(""),Ad=Symbol("");function xl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Fi(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(Ms(4,{from:r,to:t})):b instanceof Error?h(b):iT(b)?h(Ms(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let y=Promise.resolve(v);e.length<3&&(y=y.then(p)),y.catch(b=>h(b))})}function Jf(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(_T(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Fi(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${f.path}"`));const y=TC(v)?v.default:v;f.components[d]=y;const x=(y.__vccOpts||y)[t];return x&&Fi(x,r,o,f,d,s)()}))}}return c}function _T(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function sm(e){const t=li($h),r=li(ob),o=Ce(()=>{const h=z(e.to);return t.resolve(h)}),s=Ce(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],y=r.matched;if(!v||!y.length)return-1;const b=y.findIndex(As.bind(null,v));if(b>-1)return b;const x=lm(h[p-2]);return p>1&&lm(v)===x&&y[y.length-1].path!==x?y.findIndex(As.bind(null,h[p-2])):b}),c=Ce(()=>s.value>-1&&TT(r.params,o.value.params)),f=Ce(()=>s.value>-1&&s.value===r.matched.length-1&&Qy(r.params,o.value.params));function d(h={}){return CT(h)?t[z(e.replace)?"replace":"push"](z(e.to)).catch(Ol):Promise.resolve()}return{route:o,href:Ce(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}const ST=ft({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:sm,setup(e,{slots:t}){const r=Xn(sm(e)),{options:o}=li($h),s=Ce(()=>({[am(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[am(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&t.default(r);return e.custom?c:pa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),kT=ST;function CT(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function TT(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!kr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function lm(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const am=(e,t,r)=>e??t??r,ET=ft({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=li(Ad),s=Ce(()=>e.route||o.value),c=li(om,0),f=Ce(()=>{let p=z(c);const{matched:v}=s.value;let y;for(;(y=v[p])&&!y.components;)p++;return p}),d=Ce(()=>s.value.matched[f.value]);Sc(om,Ce(()=>f.value+1)),Sc(xT,d),Sc(Ad,s);const h=Be();return It(()=>[h.value,d.value,e.name],([p,v,y],[b,x,E])=>{v&&(v.instances[y]=p,x&&x!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=x.leaveGuards),v.updateGuards.size||(v.updateGuards=x.updateGuards))),p&&v&&(!x||!As(v,x)||!b)&&(v.enterCallbacks[y]||[]).forEach(C=>C(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,y=d.value,b=y&&y.components[v];if(!b)return cm(r.default,{Component:b,route:p});const x=y.props[v],E=x?x===!0?p.params:typeof x=="function"?x(p):x:null,L=pa(b,wt({},E,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(y.instances[v]=null)},ref:h}));return cm(r.default,{Component:L,route:p})||L}}});function cm(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const LT=ET;function AT(e){const t=hT(e.routes,e),r=e.parseQuery||bT,o=e.stringifyQuery||im,s=e.history,c=xl(),f=xl(),d=xl(),h=Wr($i);let p=$i;ds&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Yf.bind(null,K=>""+K),y=Yf.bind(null,FC),b=Yf.bind(null,Kl);function x(K,ae){let de,$e;return tb(K)?(de=t.getRecordMatcher(K),$e=ae):$e=K,t.addRoute($e,de)}function E(K){const ae=t.getRecordMatcher(K);ae&&t.removeRoute(ae)}function C(){return t.getRoutes().map(K=>K.record)}function L(K){return!!t.getRecordMatcher(K)}function N(K,ae){if(ae=wt({},ae||h.value),typeof K=="string"){const F=Zf(r,K,ae.path),J=t.resolve({path:F.path},ae),ue=s.createHref(F.fullPath);return wt(F,J,{params:b(J.params),hash:Kl(F.hash),redirectedFrom:void 0,href:ue})}let de;if(K.path!=null)de=wt({},K,{path:Zf(r,K.path,ae.path).path});else{const F=wt({},K.params);for(const J in F)F[J]==null&&delete F[J];de=wt({},K,{params:y(F)}),ae.params=y(ae.params)}const $e=t.resolve(de,ae),Ee=K.hash||"";$e.params=v(b($e.params));const Ze=BC(o,wt({},K,{hash:DC(Ee),path:$e.path})),O=s.createHref(Ze);return wt({fullPath:Ze,hash:Ee,query:o===im?wT(K.query):K.query||{}},$e,{redirectedFrom:void 0,href:O})}function A(K){return typeof K=="string"?Zf(r,K,h.value.path):wt({},K)}function P(K,ae){if(p!==K)return Ms(8,{from:ae,to:K})}function M(K){return X(K)}function q(K){return M(wt(A(K),{replace:!0}))}function W(K){const ae=K.matched[K.matched.length-1];if(ae&&ae.redirect){const{redirect:de}=ae;let $e=typeof de=="function"?de(K):de;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=A($e):{path:$e},$e.params={}),wt({query:K.query,hash:K.hash,params:$e.path!=null?{}:K.params},$e)}}function X(K,ae){const de=p=N(K),$e=h.value,Ee=K.state,Ze=K.force,O=K.replace===!0,F=W(de);if(F)return X(wt(A(F),{state:typeof F=="object"?wt({},Ee,F.state):Ee,force:Ze,replace:O}),ae||de);const J=de;J.redirectedFrom=ae;let ue;return!Ze&&WC(o,$e,de)&&(ue=Ms(16,{to:J,from:$e}),We($e,$e,!0,!1)),(ue?Promise.resolve(ue):j(J,$e)).catch(le=>ti(le)?ti(le,2)?le:Ne(le):re(le,J,$e)).then(le=>{if(le){if(ti(le,2))return X(wt({replace:O},A(le.to),{state:typeof le.to=="object"?wt({},Ee,le.to.state):Ee,force:Ze}),ae||J)}else le=Z(J,$e,!0,O,Ee);return te(J,$e,le),le})}function ie(K,ae){const de=P(K,ae);return de?Promise.reject(de):Promise.resolve()}function ee(K){const ae=rt.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(K):K()}function j(K,ae){let de;const[$e,Ee,Ze]=MT(K,ae);de=Jf($e.reverse(),"beforeRouteLeave",K,ae);for(const F of $e)F.leaveGuards.forEach(J=>{de.push(Fi(J,K,ae))});const O=ie.bind(null,K,ae);return de.push(O),Le(de).then(()=>{de=[];for(const F of c.list())de.push(Fi(F,K,ae));return de.push(O),Le(de)}).then(()=>{de=Jf(Ee,"beforeRouteUpdate",K,ae);for(const F of Ee)F.updateGuards.forEach(J=>{de.push(Fi(J,K,ae))});return de.push(O),Le(de)}).then(()=>{de=[];for(const F of Ze)if(F.beforeEnter)if(kr(F.beforeEnter))for(const J of F.beforeEnter)de.push(Fi(J,K,ae));else de.push(Fi(F.beforeEnter,K,ae));return de.push(O),Le(de)}).then(()=>(K.matched.forEach(F=>F.enterCallbacks={}),de=Jf(Ze,"beforeRouteEnter",K,ae,ee),de.push(O),Le(de))).then(()=>{de=[];for(const F of f.list())de.push(Fi(F,K,ae));return de.push(O),Le(de)}).catch(F=>ti(F,8)?F:Promise.reject(F))}function te(K,ae,de){d.list().forEach($e=>ee(()=>$e(K,ae,de)))}function Z(K,ae,de,$e,Ee){const Ze=P(K,ae);if(Ze)return Ze;const O=ae===$i,F=ds?history.state:{};de&&($e||O?s.replace(K.fullPath,wt({scroll:O&&F&&F.scroll},Ee)):s.push(K.fullPath,Ee)),h.value=K,We(K,ae,de,O),Ne()}let H;function I(){H||(H=s.listen((K,ae,de)=>{if(!Je.listening)return;const $e=N(K),Ee=W($e);if(Ee){X(wt(Ee,{replace:!0}),$e).catch(Ol);return}p=$e;const Ze=h.value;ds&&ZC(Yv(Ze.fullPath,de.delta),Lu()),j($e,Ze).catch(O=>ti(O,12)?O:ti(O,2)?(X(O.to,$e).then(F=>{ti(F,20)&&!de.delta&&de.type===Xl.pop&&s.go(-1,!1)}).catch(Ol),Promise.reject()):(de.delta&&s.go(-de.delta,!1),re(O,$e,Ze))).then(O=>{O=O||Z($e,Ze,!1),O&&(de.delta&&!ti(O,8)?s.go(-de.delta,!1):de.type===Xl.pop&&ti(O,20)&&s.go(-1,!1)),te($e,Ze,O)}).catch(Ol)}))}let k=xl(),B=xl(),U;function re(K,ae,de){Ne(K);const $e=B.list();return $e.length?$e.forEach(Ee=>Ee(K,ae,de)):console.error(K),Promise.reject(K)}function ye(){return U&&h.value!==$i?Promise.resolve():new Promise((K,ae)=>{k.add([K,ae])})}function Ne(K){return U||(U=!K,I(),k.list().forEach(([ae,de])=>K?de(K):ae()),k.reset()),K}function We(K,ae,de,$e){const{scrollBehavior:Ee}=e;if(!ds||!Ee)return Promise.resolve();const Ze=!de&&JC(Yv(K.fullPath,0))||($e||!de)&&history.state&&history.state.scroll||null;return ln().then(()=>Ee(K,ae,Ze)).then(O=>O&&YC(O)).catch(O=>re(O,K,ae))}const je=K=>s.go(K);let it;const rt=new Set,Je={currentRoute:h,listening:!0,addRoute:x,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:L,getRoutes:C,resolve:N,options:e,push:M,replace:q,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:B.add,isReady:ye,install(K){const ae=this;K.component("RouterLink",kT),K.component("RouterView",LT),K.config.globalProperties.$router=ae,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>z(h)}),ds&&!it&&h.value===$i&&(it=!0,M(s.location).catch(Ee=>{}));const de={};for(const Ee in $i)Object.defineProperty(de,Ee,{get:()=>h.value[Ee],enumerable:!0});K.provide($h,ae),K.provide(ob,gh(de)),K.provide(Ad,h);const $e=K.unmount;rt.add(K),K.unmount=function(){rt.delete(K),rt.size<1&&(p=$i,H&&H(),H=null,h.value=$i,it=!1,U=!1),$e()}}};function Le(K){return K.reduce((ae,de)=>ae.then(()=>ee(de)),Promise.resolve())}return Je}function MT(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>As(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>As(p,h))||s.push(h))}return[r,o,s]}const NT=["top","right","bottom","left"],um=["start","end"],fm=NT.reduce((e,t)=>e.concat(t,t+"-"+um[0],t+"-"+um[1]),[]),Yl=Math.min,So=Math.max,$T={left:"right",right:"left",bottom:"top",top:"bottom"},PT={start:"end",end:"start"};function Md(e,t,r){return So(e,Yl(t,r))}function zo(e,t){return typeof e=="function"?e(t):e}function qr(e){return e.split("-")[0]}function _r(e){return e.split("-")[1]}function sb(e){return e==="x"?"y":"x"}function Ph(e){return e==="y"?"height":"width"}function ga(e){return["top","bottom"].includes(qr(e))?"y":"x"}function Oh(e){return sb(ga(e))}function lb(e,t,r){r===void 0&&(r=!1);const o=_r(e),s=Oh(e),c=Ph(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Kc(f)),[f,Kc(f)]}function OT(e){const t=Kc(e);return[Gc(e),t,Gc(t)]}function Gc(e){return e.replace(/start|end/g,t=>PT[t])}function RT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function DT(e,t,r,o){const s=_r(e);let c=RT(qr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Gc)))),c}function Kc(e){return e.replace(/left|right|bottom|top/g,t=>$T[t])}function zT(e){return{top:0,right:0,bottom:0,left:0,...e}}function ab(e){return typeof e!="number"?zT(e):{top:e,right:e,bottom:e,left:e}}function Dl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function dm(e,t,r){let{reference:o,floating:s}=e;const c=ga(t),f=Oh(t),d=Ph(f),h=qr(t),p=c==="y",v=o.x+o.width/2-s.width/2,y=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y};break;case"left":x={x:o.x-s.width,y};break;default:x={x:o.x,y:o.y}}switch(_r(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const IT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y}=dm(p,o,h),b=o,x={},E=0;for(let C=0;C<d.length;C++){const{name:L,fn:N}=d[C],{x:A,y:P,data:M,reset:q}=await N({x:v,y,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=A??v,y=P??y,x={...x,[L]:{...x[L],...M}},q&&E<=50&&(E++,typeof q=="object"&&(q.placement&&(b=q.placement),q.rects&&(p=q.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):q.rects),{x:v,y}=dm(p,b,h)),C=-1)}return{x:v,y,placement:b,strategy:s,middlewareData:x}};async function Au(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:b=!1,padding:x=0}=zo(t,e),E=ab(x),L=d[b?y==="floating"?"reference":"floating":y],N=Dl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(L)))==null||r?L:L.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),A=y==="floating"?{...f.floating,x:o,y:s}:f.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),M=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},q=Dl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:A,offsetParent:P,strategy:h}):A);return{top:(N.top-q.top+E.top)/M.y,bottom:(q.bottom-N.bottom+E.bottom)/M.y,left:(N.left-q.left+E.left)/M.x,right:(q.right-N.right+E.right)/M.x}}const FT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=zo(e,t)||{};if(p==null)return{};const y=ab(v),b={x:r,y:o},x=Oh(s),E=Ph(x),C=await f.getDimensions(p),L=x==="y",N=L?"top":"left",A=L?"bottom":"right",P=L?"clientHeight":"clientWidth",M=c.reference[E]+c.reference[x]-b[x]-c.floating[E],q=b[x]-c.reference[x],W=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let X=W?W[P]:0;(!X||!await(f.isElement==null?void 0:f.isElement(W)))&&(X=d.floating[P]||c.floating[E]);const ie=M/2-q/2,ee=X/2-C[E]/2-1,j=Yl(y[N],ee),te=Yl(y[A],ee),Z=j,H=X-C[E]-te,I=X/2-C[E]/2+ie,k=Md(Z,I,H),B=!h.arrow&&_r(s)!=null&&I!==k&&c.reference[E]/2-(I<Z?j:te)-C[E]/2<0,U=B?I<Z?I-Z:I-H:0;return{[x]:b[x]+U,data:{[x]:k,centerOffset:I-k-U,...B&&{alignmentOffset:U}},reset:B}}});function HT(e,t,r){return(e?[...r.filter(s=>_r(s)===e),...r.filter(s=>_r(s)!==e)]:r.filter(s=>qr(s)===s)).filter(s=>e?_r(s)===e||(t?Gc(s)!==s:!1):!0)}const qT=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:y,allowedPlacements:b=fm,autoAlignment:x=!0,...E}=zo(e,t),C=y!==void 0||b===fm?HT(y||null,x,b):b,L=await Au(t,E),N=((r=f.autoPlacement)==null?void 0:r.index)||0,A=C[N];if(A==null)return{};const P=lb(A,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==A)return{reset:{placement:C[0]}};const M=[L[qr(A)],L[P[0]],L[P[1]]],q=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:A,overflows:M}],W=C[N+1];if(W)return{data:{index:N+1,overflows:q},reset:{placement:W}};const X=q.map(j=>{const te=_r(j.placement);return[j.placement,te&&v?j.overflows.slice(0,2).reduce((Z,H)=>Z+H,0):j.overflows[0],j.overflows]}).sort((j,te)=>j[1]-te[1]),ee=((s=X.filter(j=>j[2].slice(0,_r(j[0])?2:3).every(te=>te<=0))[0])==null?void 0:s[0])||X[0][0];return ee!==d?{data:{index:N+1,overflows:q},reset:{placement:ee}}:{}}}},BT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:C=!0,...L}=zo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const N=qr(s),A=qr(d)===d,P=await(h.isRTL==null?void 0:h.isRTL(p.floating)),M=b||(A||!C?[Kc(d)]:OT(d));!b&&E!=="none"&&M.push(...DT(d,C,E,P));const q=[d,...M],W=await Au(t,L),X=[];let ie=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&X.push(W[N]),y){const Z=lb(s,f,P);X.push(W[Z[0]],W[Z[1]])}if(ie=[...ie,{placement:s,overflows:X}],!X.every(Z=>Z<=0)){var ee,j;const Z=(((ee=c.flip)==null?void 0:ee.index)||0)+1,H=q[Z];if(H)return{data:{index:Z,overflows:ie},reset:{placement:H}};let I=(j=ie.filter(k=>k.overflows[0]<=0).sort((k,B)=>k.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!I)switch(x){case"bestFit":{var te;const k=(te=ie.map(B=>[B.placement,B.overflows.filter(U=>U>0).reduce((U,re)=>U+re,0)]).sort((B,U)=>B[1]-U[1])[0])==null?void 0:te[0];k&&(I=k);break}case"initialPlacement":I=d;break}if(s!==I)return{reset:{placement:I}}}return{}}}};async function WT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=qr(r),d=_r(r),h=ga(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,y=zo(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return d&&typeof E=="number"&&(x=d==="end"?E*-1:E),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const UT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await WT(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},VT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:L=>{let{x:N,y:A}=L;return{x:N,y:A}}},...h}=zo(e,t),p={x:r,y:o},v=await Au(t,h),y=ga(qr(s)),b=sb(y);let x=p[b],E=p[y];if(c){const L=b==="y"?"top":"left",N=b==="y"?"bottom":"right",A=x+v[L],P=x-v[N];x=Md(A,x,P)}if(f){const L=y==="y"?"top":"left",N=y==="y"?"bottom":"right",A=E+v[L],P=E-v[N];E=Md(A,E,P)}const C=d.fn({...t,[b]:x,[y]:E});return{...C,data:{x:C.x-r,y:C.y-o}}}}},jT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=zo(e,t),h=await Au(t,d),p=qr(r),v=_r(r),y=ga(r)==="y",{width:b,height:x}=o.floating;let E,C;p==="top"||p==="bottom"?(E=p,C=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(C=p,E=v==="end"?"top":"bottom");const L=x-h[E],N=b-h[C],A=!t.middlewareData.shift;let P=L,M=N;if(y){const W=b-h.left-h.right;M=v||A?Yl(N,W):W}else{const W=x-h.top-h.bottom;P=v||A?Yl(L,W):W}if(A&&!v){const W=So(h.left,0),X=So(h.right,0),ie=So(h.top,0),ee=So(h.bottom,0);y?M=b-2*(W!==0||X!==0?W+X:So(h.left,h.right)):P=x-2*(ie!==0||ee!==0?ie+ee:So(h.top,h.bottom))}await f({...t,availableWidth:M,availableHeight:P});const q=await s.getDimensions(c.floating);return b!==q.width||x!==q.height?{reset:{rects:!0}}:{}}}};function nr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Dr(e){return nr(e).getComputedStyle(e)}const hm=Math.min,zl=Math.max,Xc=Math.round;function cb(e){const t=Dr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Xc(r)!==s||Xc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Ji(e){return fb(e)?(e.nodeName||"").toLowerCase():""}let lc;function ub(){if(lc)return lc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(lc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),lc):navigator.userAgent}function zr(e){return e instanceof nr(e).HTMLElement}function Xi(e){return e instanceof nr(e).Element}function fb(e){return e instanceof nr(e).Node}function pm(e){return typeof ShadowRoot>"u"?!1:e instanceof nr(e).ShadowRoot||e instanceof ShadowRoot}function Mu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Dr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function GT(e){return["table","td","th"].includes(Ji(e))}function Nd(e){const t=/firefox/i.test(ub()),r=Dr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const c=r.contain;return c!=null&&c.includes(s)})}function db(){return!/^((?!chrome|android).)*safari/i.test(ub())}function Rh(e){return["html","body","#document"].includes(Ji(e))}function hb(e){return Xi(e)?e:e.contextElement}const pb={x:1,y:1};function _s(e){const t=hb(e);if(!zr(t))return pb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=cb(t);let f=(c?Xc(r.width):r.width)/o,d=(c?Xc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Zl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=hb(e);let h=pb;t&&(o?Xi(o)&&(h=_s(o)):h=_s(e));const p=d?nr(d):window,v=!db()&&r;let y=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,E=f.height/h.y;if(d){const C=nr(d),L=o&&Xi(o)?nr(o):o;let N=C.frameElement;for(;N&&o&&L!==C;){const A=_s(N),P=N.getBoundingClientRect(),M=getComputedStyle(N);P.x+=(N.clientLeft+parseFloat(M.paddingLeft))*A.x,P.y+=(N.clientTop+parseFloat(M.paddingTop))*A.y,y*=A.x,b*=A.y,x*=A.x,E*=A.y,y+=P.x,b+=P.y,N=nr(N).frameElement}}return{width:x,height:E,top:b,right:y+x,bottom:b+E,left:y,x:y,y:b}}function Yi(e){return((fb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nu(e){return Xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function gb(e){return Zl(Yi(e)).left+Nu(e).scrollLeft}function Jl(e){if(Ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pm(e)&&e.host||Yi(e);return pm(t)?t.host:t}function vb(e){const t=Jl(e);return Rh(t)?t.ownerDocument.body:zr(t)&&Mu(t)?t:vb(t)}function Yc(e,t){var r;t===void 0&&(t=[]);const o=vb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=nr(o);return s?t.concat(c,c.visualViewport||[],Mu(o)?o:[]):t.concat(o,Yc(o))}function gm(e,t,r){return t==="viewport"?Dl(function(o,s){const c=nr(o),f=Yi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,y=0;if(d){h=d.width,p=d.height;const b=db();(b||!b&&s==="fixed")&&(v=d.offsetLeft,y=d.offsetTop)}return{width:h,height:p,x:v,y}}(e,r)):Xi(t)?Dl(function(o,s){const c=Zl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=zr(o)?_s(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}}(t,r)):Dl(function(o){const s=Yi(o),c=Nu(o),f=o.ownerDocument.body,d=zl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=zl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+gb(o);const v=-c.scrollTop;return Dr(f).direction==="rtl"&&(p+=zl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Yi(e)))}function vm(e){return zr(e)&&Dr(e).position!=="fixed"?e.offsetParent:null}function mm(e){const t=nr(e);let r=vm(e);for(;r&&GT(r)&&Dr(r).position==="static";)r=vm(r);return r&&(Ji(r)==="html"||Ji(r)==="body"&&Dr(r).position==="static"&&!Nd(r))?t:r||function(o){let s=Jl(o);for(;zr(s)&&!Rh(s);){if(Nd(s))return s;s=Jl(s)}return null}(e)||t}function KT(e,t,r){const o=zr(t),s=Yi(t),c=Zl(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Ji(t)!=="body"||Mu(s))&&(f=Nu(t)),zr(t)){const h=Zl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=gb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const XT={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const y=v.get(p);if(y)return y;let b=Yc(p).filter(L=>Xi(L)&&Ji(L)!=="body"),x=null;const E=Dr(p).position==="fixed";let C=E?Jl(p):p;for(;Xi(C)&&!Rh(C);){const L=Dr(C),N=Nd(C);(E?N||x:N||L.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=L:b=b.filter(A=>A!==C),C=Jl(C)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const y=gm(t,v,s);return p.top=zl(y.top,p.top),p.right=hm(y.right,p.right),p.bottom=hm(y.bottom,p.bottom),p.left=zl(y.left,p.left),p},gm(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=zr(r),c=Yi(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((Ji(r)!=="body"||Mu(c))&&(f=Nu(r)),zr(r))){const p=Zl(r);d=_s(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Xi,getDimensions:function(e){return zr(e)?cb(e):e.getBoundingClientRect()},getOffsetParent:mm,getDocumentElement:Yi,getScale:_s,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||mm,c=this.getDimensions;return{reference:KT(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Dr(e).direction==="rtl"},YT=(e,t,r)=>{const o=new Map,s={platform:XT,...r},c={...s.platform,_c:o};return IT(e,t,{...s,platform:c})};function mb(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?mb(e[r],t[r]):e[r]=t[r])}const Sr={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"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"],delay:{show:0,hide:400}}}};function Ql(e,t){let r=Sr.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Sr.themes[r.$extend]||{}:(r=null,o=Sr[t]):r=null;while(r);return o}function ZT(e){const t=[e];let r=Sr.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Sr.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function ym(e){const t=[e];let r=Sr.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Sr.themes[r.$extend]||{}):r=null;while(r);return t}let Ns=!1;if(typeof window<"u"){Ns=!1;try{const e=Object.defineProperty({},"passive",{get(){Ns=!0}});window.addEventListener("test",null,e)}catch{}}let yb=!1;typeof window<"u"&&typeof navigator<"u"&&(yb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const bb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),bm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},wm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function xm(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Qf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const jn=[];let _o=null;const _m={};function Sm(e){let t=_m[e];return t||(t=_m[e]=[]),t}let $d=function(){};typeof window<"u"&&($d=window.Element);function at(e){return function(t){return Ql(t.theme,e)}}const ed="__floating-vue__popper",wb=()=>ft({name:"VPopper",provide(){return{[ed]:{parentPopper:this}}},inject:{[ed]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>bb.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,$d,Boolean],default:at("container")},boundary:{type:[String,$d],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},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},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},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:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[ed])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,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.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(UT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(qT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(VT({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(BT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(FT({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(jT({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await YT(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),_o&&this.instantMove&&_o.instantMove&&_o!==this.parentPopper){_o.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(_o=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Qf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Yc(this.$_referenceNode),...Yc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<jn.length;r++)t=jn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}jn.push(this),document.body.classList.add("v-popper--some-open");for(const t of ym(this.theme))Sm(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Qf(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,xm(jn,this),jn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of ym(this.theme)){const o=Sm(r);xm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}_o===this&&(_o=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Qf(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,bm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],bm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,wm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],wm,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,Ns?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Il>=e.left&&Il<=e.right&&Fl>=e.top&&Fl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Il-Oi,o=Fl-Ri,s=t.left+t.width/2-Oi+(t.top+t.height/2)-Ri+t.width+t.height,c=Oi+r*s,f=Ri+o*s;return ac(Oi,Ri,c,f,t.left,t.top,t.left,t.bottom)||ac(Oi,Ri,c,f,t.left,t.top,t.right,t.top)||ac(Oi,Ri,c,f,t.right,t.top,t.right,t.bottom)||ac(Oi,Ri,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(yb){const e=Ns?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>km(t,!0),e),document.addEventListener("touchend",t=>Cm(t,!0),e)}else window.addEventListener("mousedown",e=>km(e,!1),!0),window.addEventListener("click",e=>Cm(e,!1),!0);window.addEventListener("resize",QT)}function km(e,t){if(Sr.autoHideOnMousedown)xb(e,t);else for(let r=0;r<jn.length;r++){const o=jn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Cm(e,t){Sr.autoHideOnMousedown||xb(e,t)}function xb(e,t){const r={};for(let o=jn.length-1;o>=0;o--){const s=jn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Tm(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&Tm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Tm(e,t,r){return r.closeAllPopover||r.closePopover&&t||JT(e,r)&&!t}function JT(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function QT(){for(let e=0;e<jn.length;e++)jn[e].$_computePosition()}function Em(){for(let e=0;e<jn.length;e++)jn[e].hide()}let Oi=0,Ri=0,Il=0,Fl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Oi=Il,Ri=Fl,Il=e.clientX,Fl=e.clientY},Ns?{passive:!0}:void 0);function ac(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const eE={extends:wb()},$u=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function tE(e,t,r,o,s,c){return oe(),me("div",{ref:"reference",class:lt(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[hn(e.$slots,"default",K_(Hy(e.slotData)))],2)}const nE=$u(eE,[["render",tE]]);function rE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Ec;function Pd(){Pd.init||(Pd.init=!0,Ec=rE()!==-1)}var Pu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Pd(),ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Ec&&this.$el.appendChild(e),e.data="about:blank",Ec||this.$el.appendChild(e)},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&&(!Ec&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const iE=uy();Is("data-v-b329ee4c");const oE={class:"resize-observer",tabindex:"-1"};Fs();const sE=iE((e,t,r,o,s,c)=>(oe(),ot("div",oE)));Pu.render=sE;Pu.__scopeId="data-v-b329ee4c";Pu.__file="src/components/ResizeObserver.vue";const _b=(e="theme")=>({computed:{themeClass(){return ZT(this[e])}}}),lE=ft({name:"VPopperContent",components:{ResizeObserver:Pu},mixins:[_b()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),aE=["id","aria-hidden","tabindex","data-popper-placement"],cE={ref:"inner",class:"v-popper__inner"},uE=Y("div",{class:"v-popper__arrow-outer"},null,-1),fE=Y("div",{class:"v-popper__arrow-inner"},null,-1),dE=[uE,fE];function hE(e,t,r,o,s,c){const f=Po("ResizeObserver");return oe(),me("div",{id:e.popperId,ref:"popover",class:lt(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Kt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Td(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[Y("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),Y("div",{class:"v-popper__wrapper",style:Kt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Y("div",cE,[e.mounted?(oe(),me(ut,{key:0},[Y("div",null,[hn(e.$slots,"default")]),e.handleResize?(oe(),ot(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ye("",!0)],64)):Ye("",!0)],512),Y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Kt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},dE,4)],4)],46,aE)}const Sb=$u(lE,[["render",hE]]),kb={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Od=function(){};typeof window<"u"&&(Od=window.Element);const pE=ft({name:"VPopperWrapper",components:{Popper:nE,PopperContent:Sb},mixins:[kb,_b("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Od,Boolean],default:void 0},boundary:{type:[String,Od],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function gE(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),ot(d,ai({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:st(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:y,autoHide:b,show:x,hide:E,handleResize:C,onResize:L,classes:N,result:A})=>[hn(e.$slots,"default",{shown:p,show:x,hide:E}),Pe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":y,"auto-hide":b,"handle-resize":C,classes:N,result:A,onHide:E,onResize:L},{default:st(()=>[hn(e.$slots,"popper",{shown:p,hide:E})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Dh=$u(pE,[["render",gE]]),vE={...Dh,name:"VDropdown",vPopperTheme:"dropdown"},mE={...Dh,name:"VMenu",vPopperTheme:"menu"},Cb={...Dh,name:"VTooltip",vPopperTheme:"tooltip"},yE=ft({name:"VTooltipDirective",components:{Popper:wb(),PopperContent:Sb},mixins:[kb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ql(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ql(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},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(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),bE=["innerHTML"],wE=["textContent"];function xE(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),ot(d,ai({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:st(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:y,autoHide:b,hide:x,handleResize:E,onResize:C,classes:L,result:N})=>[Pe(f,{ref:"popperContent",class:lt({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":y,"auto-hide":b,"handle-resize":E,classes:L,result:N,onHide:x,onResize:C},{default:st(()=>[e.html?(oe(),me("div",{key:0,innerHTML:e.finalContent},null,8,bE)):(oe(),me("div",{key:1,textContent:qe(e.finalContent)},null,8,wE))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const _E=$u(yE,[["render",xE]]),Tb="v-popper--has-tooltip";function SE(e,t){let r=e.placement;if(!r&&t)for(const o of bb)t[o]&&(r=o);return r||(r=Ql(e.theme||"tooltip","placement")),r}function Eb(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=SE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let td,ea,kE=0;function CE(){if(td)return;ea=Be([]),td=Gy({name:"VTooltipDirectiveApp",setup(){return{directives:ea}},render(){return this.directives.map(t=>pa(_E,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),td.mount(e)}function Lb(e,t,r){CE();const o=Be(Eb(e,t,r)),s=Be(!1),c={id:kE++,options:o,shown:s};return ea.value.push(c),e.classList&&e.classList.add(Tb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function zh(e){if(e.$_popper){const t=ea.value.indexOf(e.$_popper.item);t!==-1&&ea.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Tb)}function Lm(e,{value:t,modifiers:r}){const o=Eb(e,t,r);if(!o.content||Ql(o.theme||"tooltip","disabled"))zh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Lb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Ab={beforeMount:Lm,updated:Lm,beforeUnmount(e){zh(e)}};function Am(e){e.addEventListener("mousedown",Zc),e.addEventListener("click",Zc),e.addEventListener("touchstart",Mb,Ns?{passive:!0}:!1)}function Mm(e){e.removeEventListener("mousedown",Zc),e.removeEventListener("click",Zc),e.removeEventListener("touchstart",Mb),e.removeEventListener("touchend",Nb),e.removeEventListener("touchcancel",$b)}function Zc(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Mb(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const r=e.changedTouches[0];t.$_vclosepopover_touchPoint=r,t.addEventListener("touchend",Nb),t.addEventListener("touchcancel",$b)}}function Nb(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function $b(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const TE={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&Am(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?Am(e):Mm(e))},beforeUnmount(e){Mm(e)}},EE=Ab,Pb=Cb;function LE(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,mb(Sr,t),e.directive("tooltip",Ab),e.directive("close-popper",TE),e.component("VTooltip",Cb),e.component("VDropdown",vE),e.component("VMenu",mE))}const Ob={version:"5.2.2",install:LE,options:Sr},AE=6e4;function Rb(e){return e}const ME=Rb,{clearTimeout:NE,setTimeout:$E}=globalThis,PE=Math.random.bind(Math);function OE(e,t){const{post:r,on:o,eventNames:s=[],serialize:c=Rb,deserialize:f=ME,resolver:d,timeout:h=AE}=t,p=new Map;let v;const y=new Proxy({},{get(b,x){if(x==="$functions")return e;if(x==="then"&&!s.includes("then")&&!("then"in e))return;const E=(...L)=>{r(c({m:x,a:L,t:"q"}))};if(s.includes(x))return E.asEvent=E,E;const C=async(...L)=>(await v,new Promise((N,A)=>{var q;const P=DE();let M;h>=0&&(M=$E(()=>{var W;try{throw(W=t.onTimeoutError)==null||W.call(t,x,L),new Error(`[birpc] timeout on calling "${x}"`)}catch(X){A(X)}p.delete(P)},h),typeof M=="object"&&(M=(q=M.unref)==null?void 0:q.call(M))),p.set(P,{resolve:N,reject:A,timeoutId:M}),r(c({m:x,a:L,i:P,t:"q"}))}));return C.asEvent=E,C}});return v=o(async(b,...x)=>{const E=f(b);if(E.t==="q"){const{m:C,a:L}=E;let N,A;const P=d?d(C,e[C]):e[C];if(!P)A=new Error(`[birpc] function "${C}" not found`);else try{N=await P.apply(y,L)}catch(M){A=M}E.i&&(A&&t.onError&&t.onError(A,C,L),r(c({t:"s",i:E.i,r:N,e:A}),...x))}else{const{i:C,r:L,e:N}=E,A=p.get(C);A&&(NE(A.timeoutId),N?A.reject(N):A.resolve(L)),p.delete(C)}}),y}const RE="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function DE(e=21){let t="",r=e;for(;r--;)t+=RE[PE()*64|0];return t}const{parse:zE,stringify:IE}=JSON,{keys:FE}=Object,ta=String,Db="string",Nm={},Jc="object",zb=(e,t)=>t,HE=e=>e instanceof ta?ta(e):e,qE=(e,t)=>typeof t===Db?new ta(t):t,Ib=(e,t,r,o)=>{const s=[];for(let c=FE(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ta){const v=e[p];typeof v===Jc&&!t.has(v)?(t.add(v),r[h]=Nm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Nm&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,Ib.apply(null,h))}return r},$m=(e,t,r)=>{const o=ta(t.push(r)-1);return e.set(r,o),o},Rd=(e,t)=>{const r=zE(e,qE).map(HE),o=r[0],s=t||zb,c=typeof o===Jc&&o?Ib(r,new Set,o,s):o;return s.call({"":c},"",c)},BE=(e,t,r)=>{const o=t&&typeof t===Jc?(v,y)=>v===""||-1<t.indexOf(v)?y:void 0:t||zb,s=new Map,c=[],f=[];let d=+$m(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=IE(c[d++],p,r);return"["+f.join(",")+"]";function p(v,y){if(h)return h=!h,y;const b=o.call(this,v,y);switch(typeof b){case Jc:if(b===null)return b;case Db:return s.get(b)||$m(s,c,b)}return b}};function Fb(e){return e!=null}function Ih(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const WE=/^[A-Za-z]:\//;function UE(e=""){return e&&e.replace(/\\/g,"/").replace(WE,t=>t.toUpperCase())}const VE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Pm=/^\/([A-Za-z]:)?$/;function jE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Om=function(...e){e=e.map(o=>UE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:jE();!s||s.length===0||(t=`${s}/${t}`,r=Rm(s))}return t=GE(t,!r),r&&!Rm(t)?`/${t}`:t.length>0?t:"."};function GE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Rm=function(e){return VE.test(e)},KE=function(e,t){const r=Om(e).replace(Pm,"$1").split("/"),o=Om(t).replace(Pm,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function XE(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Hb(e,t,r,o){const s=KE(t,e),c={id:XE(`${s}${r||""}`),name:s,type:"suite",mode:"run",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function $s(e){return e.type==="test"||e.type==="custom"}function qb(e){const t=[],r=Ih(e);for(const o of r)if($s(o))t.push(o);else for(const s of o.tasks)if($s(s))t.push(s);else{const c=qb(s);for(const f of c)t.push(f)}return t}function Fh(e=[]){return Ih(e).flatMap(t=>$s(t)?[t]:[t,...Fh(t.tasks)])}function YE(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}class Bb{constructor(){fs(this,"filesMap",new Map);fs(this,"pathsSet",new Set);fs(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Hb(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function Hh(e){return qb(e).some(t=>{var r,o;return(o=(r=t.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 ZE(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=A=>A,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Bb,waitForConnection:N,reconnect:C},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let y;const b={onSpecsCollected(A){var P;A==null||A.forEach(([M,q])=>{v.state.clearFiles({config:M},[q])}),(P=r.onSpecsCollected)==null||P.call(r,A)},onPathsCollected(A){var P;v.state.collectPaths(A),(P=r.onPathsCollected)==null||P.call(r,A)},onCollected(A){var P;v.state.collectFiles(A),(P=r.onCollected)==null||P.call(r,A)},onTaskUpdate(A){var P;v.state.updateTasks(A),(P=r.onTaskUpdate)==null||P.call(r,A)},onUserConsoleLog(A){var P;v.state.updateUserLog(A),(P=r.onUserConsoleLog)==null||P.call(r,A)},onFinished(A,P){var M;(M=r.onFinished)==null||M.call(r,A,P)},onFinishedReportCoverage(){var A;(A=r.onFinishedReportCoverage)==null||A.call(r)}},x={post:A=>v.ws.send(A),on:A=>y=A,serialize:A=>BE(A,(P,M)=>M instanceof Error?{name:M.name,message:M.message,stack:M.stack}:M),deserialize:Rd,onTimeoutError(A){throw new Error(`[vitest-ws-client]: Timeout calling "${A}"`)}};v.rpc=OE(b,x);let E;function C(A=!1){A&&(p=c),v.ws=new h(e),L()}function L(){E=new Promise((A,P)=>{var q,W;const M=(W=(q=setTimeout(()=>{P(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:q.unref)==null?void 0:W.call(q);v.ws.OPEN===v.ws.readyState&&A(),v.ws.addEventListener("open",()=>{p=c,A(),clearTimeout(M)})}),v.ws.addEventListener("message",A=>{y(A.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(C,s)})}L();function N(){return E}return v}const JE=location.port,QE=[location.hostname,JE].filter(Boolean).join(":"),eL=`${location.protocol==="https:"?"wss:":"ws:"}//${QE}/__vitest_api__`,Ir=!!window.METADATA_PATH;var Oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ub={},ci={};const tL="Á",nL="á",rL="Ă",iL="ă",oL="∾",sL="∿",lL="∾̳",aL="Â",cL="â",uL="´",fL="А",dL="а",hL="Æ",pL="æ",gL="⁡",vL="𝔄",mL="𝔞",yL="À",bL="à",wL="ℵ",xL="ℵ",_L="Α",SL="α",kL="Ā",CL="ā",TL="⨿",EL="&",LL="&",AL="⩕",ML="⩓",NL="∧",$L="⩜",PL="⩘",OL="⩚",RL="∠",DL="⦤",zL="∠",IL="⦨",FL="⦩",HL="⦪",qL="⦫",BL="⦬",WL="⦭",UL="⦮",VL="⦯",jL="∡",GL="∟",KL="⊾",XL="⦝",YL="∢",ZL="Å",JL="⍼",QL="Ą",eA="ą",tA="𝔸",nA="𝕒",rA="⩯",iA="≈",oA="⩰",sA="≊",lA="≋",aA="'",cA="⁡",uA="≈",fA="≊",dA="Å",hA="å",pA="𝒜",gA="𝒶",vA="≔",mA="*",yA="≈",bA="≍",wA="Ã",xA="ã",_A="Ä",SA="ä",kA="∳",CA="⨑",TA="≌",EA="϶",LA="‵",AA="∽",MA="⋍",NA="∖",$A="⫧",PA="⊽",OA="⌅",RA="⌆",DA="⌅",zA="⎵",IA="⎶",FA="≌",HA="Б",qA="б",BA="„",WA="∵",UA="∵",VA="∵",jA="⦰",GA="϶",KA="ℬ",XA="ℬ",YA="Β",ZA="β",JA="ℶ",QA="≬",eM="𝔅",tM="𝔟",nM="⋂",rM="◯",iM="⋃",oM="⨀",sM="⨁",lM="⨂",aM="⨆",cM="★",uM="▽",fM="△",dM="⨄",hM="⋁",pM="⋀",gM="⤍",vM="⧫",mM="▪",yM="▴",bM="▾",wM="◂",xM="▸",_M="␣",SM="▒",kM="░",CM="▓",TM="█",EM="=⃥",LM="≡⃥",AM="⫭",MM="⌐",NM="𝔹",$M="𝕓",PM="⊥",OM="⊥",RM="⋈",DM="⧉",zM="┐",IM="╕",FM="╖",HM="╗",qM="┌",BM="╒",WM="╓",UM="╔",VM="─",jM="═",GM="┬",KM="╤",XM="╥",YM="╦",ZM="┴",JM="╧",QM="╨",eN="╩",tN="⊟",nN="⊞",rN="⊠",iN="┘",oN="╛",sN="╜",lN="╝",aN="└",cN="╘",uN="╙",fN="╚",dN="│",hN="║",pN="┼",gN="╪",vN="╫",mN="╬",yN="┤",bN="╡",wN="╢",xN="╣",_N="├",SN="╞",kN="╟",CN="╠",TN="‵",EN="˘",LN="˘",AN="¦",MN="𝒷",NN="ℬ",$N="⁏",PN="∽",ON="⋍",RN="⧅",DN="\\",zN="⟈",IN="•",FN="•",HN="≎",qN="⪮",BN="≏",WN="≎",UN="≏",VN="Ć",jN="ć",GN="⩄",KN="⩉",XN="⩋",YN="∩",ZN="⋒",JN="⩇",QN="⩀",e$="ⅅ",t$="∩︀",n$="⁁",r$="ˇ",i$="ℭ",o$="⩍",s$="Č",l$="č",a$="Ç",c$="ç",u$="Ĉ",f$="ĉ",d$="∰",h$="⩌",p$="⩐",g$="Ċ",v$="ċ",m$="¸",y$="¸",b$="⦲",w$="¢",x$="·",_$="·",S$="𝔠",k$="ℭ",C$="Ч",T$="ч",E$="✓",L$="✓",A$="Χ",M$="χ",N$="ˆ",$$="≗",P$="↺",O$="↻",R$="⊛",D$="⊚",z$="⊝",I$="⊙",F$="®",H$="Ⓢ",q$="⊖",B$="⊕",W$="⊗",U$="○",V$="⧃",j$="≗",G$="⨐",K$="⫯",X$="⧂",Y$="∲",Z$="”",J$="’",Q$="♣",eP="♣",tP=":",nP="∷",rP="⩴",iP="≔",oP="≔",sP=",",lP="@",aP="∁",cP="∘",uP="∁",fP="ℂ",dP="≅",hP="⩭",pP="≡",gP="∮",vP="∯",mP="∮",yP="𝕔",bP="ℂ",wP="∐",xP="∐",_P="©",SP="©",kP="℗",CP="∳",TP="↵",EP="✗",LP="⨯",AP="𝒞",MP="𝒸",NP="⫏",$P="⫑",PP="⫐",OP="⫒",RP="⋯",DP="⤸",zP="⤵",IP="⋞",FP="⋟",HP="↶",qP="⤽",BP="⩈",WP="⩆",UP="≍",VP="∪",jP="⋓",GP="⩊",KP="⊍",XP="⩅",YP="∪︀",ZP="↷",JP="⤼",QP="⋞",eO="⋟",tO="⋎",nO="⋏",rO="¤",iO="↶",oO="↷",sO="⋎",lO="⋏",aO="∲",cO="∱",uO="⌭",fO="†",dO="‡",hO="ℸ",pO="↓",gO="↡",vO="⇓",mO="‐",yO="⫤",bO="⊣",wO="⤏",xO="˝",_O="Ď",SO="ď",kO="Д",CO="д",TO="‡",EO="⇊",LO="ⅅ",AO="ⅆ",MO="⤑",NO="⩷",$O="°",PO="∇",OO="Δ",RO="δ",DO="⦱",zO="⥿",IO="𝔇",FO="𝔡",HO="⥥",qO="⇃",BO="⇂",WO="´",UO="˙",VO="˝",jO="`",GO="˜",KO="⋄",XO="⋄",YO="⋄",ZO="♦",JO="♦",QO="¨",eR="ⅆ",tR="ϝ",nR="⋲",rR="÷",iR="÷",oR="⋇",sR="⋇",lR="Ђ",aR="ђ",cR="⌞",uR="⌍",fR="$",dR="𝔻",hR="𝕕",pR="¨",gR="˙",vR="⃜",mR="≐",yR="≑",bR="≐",wR="∸",xR="∔",_R="⊡",SR="⌆",kR="∯",CR="¨",TR="⇓",ER="⇐",LR="⇔",AR="⫤",MR="⟸",NR="⟺",$R="⟹",PR="⇒",OR="⊨",RR="⇑",DR="⇕",zR="∥",IR="⤓",FR="↓",HR="↓",qR="⇓",BR="⇵",WR="̑",UR="⇊",VR="⇃",jR="⇂",GR="⥐",KR="⥞",XR="⥖",YR="↽",ZR="⥟",JR="⥗",QR="⇁",eD="↧",tD="⊤",nD="⤐",rD="⌟",iD="⌌",oD="𝒟",sD="𝒹",lD="Ѕ",aD="ѕ",cD="⧶",uD="Đ",fD="đ",dD="⋱",hD="▿",pD="▾",gD="⇵",vD="⥯",mD="⦦",yD="Џ",bD="џ",wD="⟿",xD="É",_D="é",SD="⩮",kD="Ě",CD="ě",TD="Ê",ED="ê",LD="≖",AD="≕",MD="Э",ND="э",$D="⩷",PD="Ė",OD="ė",RD="≑",DD="ⅇ",zD="≒",ID="𝔈",FD="𝔢",HD="⪚",qD="È",BD="è",WD="⪖",UD="⪘",VD="⪙",jD="∈",GD="⏧",KD="ℓ",XD="⪕",YD="⪗",ZD="Ē",JD="ē",QD="∅",e2="∅",t2="◻",n2="∅",r2="▫",i2=" ",o2=" ",s2=" ",l2="Ŋ",a2="ŋ",c2=" ",u2="Ę",f2="ę",d2="𝔼",h2="𝕖",p2="⋕",g2="⧣",v2="⩱",m2="ε",y2="Ε",b2="ε",w2="ϵ",x2="≖",_2="≕",S2="≂",k2="⪖",C2="⪕",T2="⩵",E2="=",L2="≂",A2="≟",M2="⇌",N2="≡",$2="⩸",P2="⧥",O2="⥱",R2="≓",D2="ℯ",z2="ℰ",I2="≐",F2="⩳",H2="≂",q2="Η",B2="η",W2="Ð",U2="ð",V2="Ë",j2="ë",G2="€",K2="!",X2="∃",Y2="∃",Z2="ℰ",J2="ⅇ",Q2="ⅇ",ez="≒",tz="Ф",nz="ф",rz="♀",iz="ffi",oz="ff",sz="ffl",lz="𝔉",az="𝔣",cz="fi",uz="◼",fz="▪",dz="fj",hz="♭",pz="fl",gz="▱",vz="ƒ",mz="𝔽",yz="𝕗",bz="∀",wz="∀",xz="⋔",_z="⫙",Sz="ℱ",kz="⨍",Cz="½",Tz="⅓",Ez="¼",Lz="⅕",Az="⅙",Mz="⅛",Nz="⅔",$z="⅖",Pz="¾",Oz="⅗",Rz="⅜",Dz="⅘",zz="⅚",Iz="⅝",Fz="⅞",Hz="⁄",qz="⌢",Bz="𝒻",Wz="ℱ",Uz="ǵ",Vz="Γ",jz="γ",Gz="Ϝ",Kz="ϝ",Xz="⪆",Yz="Ğ",Zz="ğ",Jz="Ģ",Qz="Ĝ",eI="ĝ",tI="Г",nI="г",rI="Ġ",iI="ġ",oI="≥",sI="≧",lI="⪌",aI="⋛",cI="≥",uI="≧",fI="⩾",dI="⪩",hI="⩾",pI="⪀",gI="⪂",vI="⪄",mI="⋛︀",yI="⪔",bI="𝔊",wI="𝔤",xI="≫",_I="⋙",SI="⋙",kI="ℷ",CI="Ѓ",TI="ѓ",EI="⪥",LI="≷",AI="⪒",MI="⪤",NI="⪊",$I="⪊",PI="⪈",OI="≩",RI="⪈",DI="≩",zI="⋧",II="𝔾",FI="𝕘",HI="`",qI="≥",BI="⋛",WI="≧",UI="⪢",VI="≷",jI="⩾",GI="≳",KI="𝒢",XI="ℊ",YI="≳",ZI="⪎",JI="⪐",QI="⪧",eF="⩺",tF=">",nF=">",rF="≫",iF="⋗",oF="⦕",sF="⩼",lF="⪆",aF="⥸",cF="⋗",uF="⋛",fF="⪌",dF="≷",hF="≳",pF="≩︀",gF="≩︀",vF="ˇ",mF=" ",yF="½",bF="ℋ",wF="Ъ",xF="ъ",_F="⥈",SF="↔",kF="⇔",CF="↭",TF="^",EF="ℏ",LF="Ĥ",AF="ĥ",MF="♥",NF="♥",$F="…",PF="⊹",OF="𝔥",RF="ℌ",DF="ℋ",zF="⤥",IF="⤦",FF="⇿",HF="∻",qF="↩",BF="↪",WF="𝕙",UF="ℍ",VF="―",jF="─",GF="𝒽",KF="ℋ",XF="ℏ",YF="Ħ",ZF="ħ",JF="≎",QF="≏",eH="⁃",tH="‐",nH="Í",rH="í",iH="⁣",oH="Î",sH="î",lH="И",aH="и",cH="İ",uH="Е",fH="е",dH="¡",hH="⇔",pH="𝔦",gH="ℑ",vH="Ì",mH="ì",yH="ⅈ",bH="⨌",wH="∭",xH="⧜",_H="℩",SH="IJ",kH="ij",CH="Ī",TH="ī",EH="ℑ",LH="ⅈ",AH="ℐ",MH="ℑ",NH="ı",$H="ℑ",PH="⊷",OH="Ƶ",RH="⇒",DH="℅",zH="∞",IH="⧝",FH="ı",HH="⊺",qH="∫",BH="∬",WH="ℤ",UH="∫",VH="⊺",jH="⋂",GH="⨗",KH="⨼",XH="⁣",YH="⁢",ZH="Ё",JH="ё",QH="Į",eq="į",tq="𝕀",nq="𝕚",rq="Ι",iq="ι",oq="⨼",sq="¿",lq="𝒾",aq="ℐ",cq="∈",uq="⋵",fq="⋹",dq="⋴",hq="⋳",pq="∈",gq="⁢",vq="Ĩ",mq="ĩ",yq="І",bq="і",wq="Ï",xq="ï",_q="Ĵ",Sq="ĵ",kq="Й",Cq="й",Tq="𝔍",Eq="𝔧",Lq="ȷ",Aq="𝕁",Mq="𝕛",Nq="𝒥",$q="𝒿",Pq="Ј",Oq="ј",Rq="Є",Dq="є",zq="Κ",Iq="κ",Fq="ϰ",Hq="Ķ",qq="ķ",Bq="К",Wq="к",Uq="𝔎",Vq="𝔨",jq="ĸ",Gq="Х",Kq="х",Xq="Ќ",Yq="ќ",Zq="𝕂",Jq="𝕜",Qq="𝒦",eB="𝓀",tB="⇚",nB="Ĺ",rB="ĺ",iB="⦴",oB="ℒ",sB="Λ",lB="λ",aB="⟨",cB="⟪",uB="⦑",fB="⟨",dB="⪅",hB="ℒ",pB="«",gB="⇤",vB="⤟",mB="←",yB="↞",bB="⇐",wB="⤝",xB="↩",_B="↫",SB="⤹",kB="⥳",CB="↢",TB="⤙",EB="⤛",LB="⪫",AB="⪭",MB="⪭︀",NB="⤌",$B="⤎",PB="❲",OB="{",RB="[",DB="⦋",zB="⦏",IB="⦍",FB="Ľ",HB="ľ",qB="Ļ",BB="ļ",WB="⌈",UB="{",VB="Л",jB="л",GB="⤶",KB="“",XB="„",YB="⥧",ZB="⥋",JB="↲",QB="≤",e3="≦",t3="⟨",n3="⇤",r3="←",i3="←",o3="⇐",s3="⇆",l3="↢",a3="⌈",c3="⟦",u3="⥡",f3="⥙",d3="⇃",h3="⌊",p3="↽",g3="↼",v3="⇇",m3="↔",y3="↔",b3="⇔",w3="⇆",x3="⇋",_3="↭",S3="⥎",k3="↤",C3="⊣",T3="⥚",E3="⋋",L3="⧏",A3="⊲",M3="⊴",N3="⥑",$3="⥠",P3="⥘",O3="↿",R3="⥒",D3="↼",z3="⪋",I3="⋚",F3="≤",H3="≦",q3="⩽",B3="⪨",W3="⩽",U3="⩿",V3="⪁",j3="⪃",G3="⋚︀",K3="⪓",X3="⪅",Y3="⋖",Z3="⋚",J3="⪋",Q3="⋚",e5="≦",t5="≶",n5="≶",r5="⪡",i5="≲",o5="⩽",s5="≲",l5="⥼",a5="⌊",c5="𝔏",u5="𝔩",f5="≶",d5="⪑",h5="⥢",p5="↽",g5="↼",v5="⥪",m5="▄",y5="Љ",b5="љ",w5="⇇",x5="≪",_5="⋘",S5="⌞",k5="⇚",C5="⥫",T5="◺",E5="Ŀ",L5="ŀ",A5="⎰",M5="⎰",N5="⪉",$5="⪉",P5="⪇",O5="≨",R5="⪇",D5="≨",z5="⋦",I5="⟬",F5="⇽",H5="⟦",q5="⟵",B5="⟵",W5="⟸",U5="⟷",V5="⟷",j5="⟺",G5="⟼",K5="⟶",X5="⟶",Y5="⟹",Z5="↫",J5="↬",Q5="⦅",e8="𝕃",t8="𝕝",n8="⨭",r8="⨴",i8="∗",o8="_",s8="↙",l8="↘",a8="◊",c8="◊",u8="⧫",f8="(",d8="⦓",h8="⇆",p8="⌟",g8="⇋",v8="⥭",m8="‎",y8="⊿",b8="‹",w8="𝓁",x8="ℒ",_8="↰",S8="↰",k8="≲",C8="⪍",T8="⪏",E8="[",L8="‘",A8="‚",M8="Ł",N8="ł",$8="⪦",P8="⩹",O8="<",R8="<",D8="≪",z8="⋖",I8="⋋",F8="⋉",H8="⥶",q8="⩻",B8="◃",W8="⊴",U8="◂",V8="⦖",j8="⥊",G8="⥦",K8="≨︀",X8="≨︀",Y8="¯",Z8="♂",J8="✠",Q8="✠",eW="↦",tW="↦",nW="↧",rW="↤",iW="↥",oW="▮",sW="⨩",lW="М",aW="м",cW="—",uW="∺",fW="∡",dW=" ",hW="ℳ",pW="𝔐",gW="𝔪",vW="℧",mW="µ",yW="*",bW="⫰",wW="∣",xW="·",_W="⊟",SW="−",kW="∸",CW="⨪",TW="∓",EW="⫛",LW="…",AW="∓",MW="⊧",NW="𝕄",$W="𝕞",PW="∓",OW="𝓂",RW="ℳ",DW="∾",zW="Μ",IW="μ",FW="⊸",HW="⊸",qW="∇",BW="Ń",WW="ń",UW="∠⃒",VW="≉",jW="⩰̸",GW="≋̸",KW="ʼn",XW="≉",YW="♮",ZW="ℕ",JW="♮",QW=" ",e4="≎̸",t4="≏̸",n4="⩃",r4="Ň",i4="ň",o4="Ņ",s4="ņ",l4="≇",a4="⩭̸",c4="⩂",u4="Н",f4="н",d4="–",h4="⤤",p4="↗",g4="⇗",v4="↗",m4="≠",y4="≐̸",b4="​",w4="​",x4="​",_4="​",S4="≢",k4="⤨",C4="≂̸",T4="≫",E4="≪",L4=`
22
- `,A4="∄",M4="∄",N4="𝔑",$4="𝔫",P4="≧̸",O4="≱",R4="≱",D4="≧̸",z4="⩾̸",I4="⩾̸",F4="⋙̸",H4="≵",q4="≫⃒",B4="≯",W4="≯",U4="≫̸",V4="↮",j4="⇎",G4="⫲",K4="∋",X4="⋼",Y4="⋺",Z4="∋",J4="Њ",Q4="њ",eU="↚",tU="⇍",nU="‥",rU="≦̸",iU="≰",oU="↚",sU="⇍",lU="↮",aU="⇎",cU="≰",uU="≦̸",fU="⩽̸",dU="⩽̸",hU="≮",pU="⋘̸",gU="≴",vU="≪⃒",mU="≮",yU="⋪",bU="⋬",wU="≪̸",xU="∤",_U="⁠",SU=" ",kU="𝕟",CU="ℕ",TU="⫬",EU="¬",LU="≢",AU="≭",MU="∦",NU="∉",$U="≠",PU="≂̸",OU="∄",RU="≯",DU="≱",zU="≧̸",IU="≫̸",FU="≹",HU="⩾̸",qU="≵",BU="≎̸",WU="≏̸",UU="∉",VU="⋵̸",jU="⋹̸",GU="∉",KU="⋷",XU="⋶",YU="⧏̸",ZU="⋪",JU="⋬",QU="≮",e6="≰",t6="≸",n6="≪̸",r6="⩽̸",i6="≴",o6="⪢̸",s6="⪡̸",l6="∌",a6="∌",c6="⋾",u6="⋽",f6="⊀",d6="⪯̸",h6="⋠",p6="∌",g6="⧐̸",v6="⋫",m6="⋭",y6="⊏̸",b6="⋢",w6="⊐̸",x6="⋣",_6="⊂⃒",S6="⊈",k6="⊁",C6="⪰̸",T6="⋡",E6="≿̸",L6="⊃⃒",A6="⊉",M6="≁",N6="≄",$6="≇",P6="≉",O6="∤",R6="∦",D6="∦",z6="⫽⃥",I6="∂̸",F6="⨔",H6="⊀",q6="⋠",B6="⊀",W6="⪯̸",U6="⪯̸",V6="⤳̸",j6="↛",G6="⇏",K6="↝̸",X6="↛",Y6="⇏",Z6="⋫",J6="⋭",Q6="⊁",eV="⋡",tV="⪰̸",nV="𝒩",rV="𝓃",iV="∤",oV="∦",sV="≁",lV="≄",aV="≄",cV="∤",uV="∦",fV="⋢",dV="⋣",hV="⊄",pV="⫅̸",gV="⊈",vV="⊂⃒",mV="⊈",yV="⫅̸",bV="⊁",wV="⪰̸",xV="⊅",_V="⫆̸",SV="⊉",kV="⊃⃒",CV="⊉",TV="⫆̸",EV="≹",LV="Ñ",AV="ñ",MV="≸",NV="⋪",$V="⋬",PV="⋫",OV="⋭",RV="Ν",DV="ν",zV="#",IV="№",FV=" ",HV="≍⃒",qV="⊬",BV="⊭",WV="⊮",UV="⊯",VV="≥⃒",jV=">⃒",GV="⤄",KV="⧞",XV="⤂",YV="≤⃒",ZV="<⃒",JV="⊴⃒",QV="⤃",ej="⊵⃒",tj="∼⃒",nj="⤣",rj="↖",ij="⇖",oj="↖",sj="⤧",lj="Ó",aj="ó",cj="⊛",uj="Ô",fj="ô",dj="⊚",hj="О",pj="о",gj="⊝",vj="Ő",mj="ő",yj="⨸",bj="⊙",wj="⦼",xj="Œ",_j="œ",Sj="⦿",kj="𝔒",Cj="𝔬",Tj="˛",Ej="Ò",Lj="ò",Aj="⧁",Mj="⦵",Nj="Ω",$j="∮",Pj="↺",Oj="⦾",Rj="⦻",Dj="‾",zj="⧀",Ij="Ō",Fj="ō",Hj="Ω",qj="ω",Bj="Ο",Wj="ο",Uj="⦶",Vj="⊖",jj="𝕆",Gj="𝕠",Kj="⦷",Xj="“",Yj="‘",Zj="⦹",Jj="⊕",Qj="↻",eG="⩔",tG="∨",nG="⩝",rG="ℴ",iG="ℴ",oG="ª",sG="º",lG="⊶",aG="⩖",cG="⩗",uG="⩛",fG="Ⓢ",dG="𝒪",hG="ℴ",pG="Ø",gG="ø",vG="⊘",mG="Õ",yG="õ",bG="⨶",wG="⨷",xG="⊗",_G="Ö",SG="ö",kG="⌽",CG="‾",TG="⏞",EG="⎴",LG="⏜",AG="¶",MG="∥",NG="∥",$G="⫳",PG="⫽",OG="∂",RG="∂",DG="П",zG="п",IG="%",FG=".",HG="‰",qG="⊥",BG="‱",WG="𝔓",UG="𝔭",VG="Φ",jG="φ",GG="ϕ",KG="ℳ",XG="☎",YG="Π",ZG="π",JG="⋔",QG="ϖ",e9="ℏ",t9="ℎ",n9="ℏ",r9="⨣",i9="⊞",o9="⨢",s9="+",l9="∔",a9="⨥",c9="⩲",u9="±",f9="±",d9="⨦",h9="⨧",p9="±",g9="ℌ",v9="⨕",m9="𝕡",y9="ℙ",b9="£",w9="⪷",x9="⪻",_9="≺",S9="≼",k9="⪷",C9="≺",T9="≼",E9="≺",L9="⪯",A9="≼",M9="≾",N9="⪯",$9="⪹",P9="⪵",O9="⋨",R9="⪯",D9="⪳",z9="≾",I9="′",F9="″",H9="ℙ",q9="⪹",B9="⪵",W9="⋨",U9="∏",V9="∏",j9="⌮",G9="⌒",K9="⌓",X9="∝",Y9="∝",Z9="∷",J9="∝",Q9="≾",e7="⊰",t7="𝒫",n7="𝓅",r7="Ψ",i7="ψ",o7=" ",s7="𝔔",l7="𝔮",a7="⨌",c7="𝕢",u7="ℚ",f7="⁗",d7="𝒬",h7="𝓆",p7="ℍ",g7="⨖",v7="?",m7="≟",y7='"',b7='"',w7="⇛",x7="∽̱",_7="Ŕ",S7="ŕ",k7="√",C7="⦳",T7="⟩",E7="⟫",L7="⦒",A7="⦥",M7="⟩",N7="»",$7="⥵",P7="⇥",O7="⤠",R7="⤳",D7="→",z7="↠",I7="⇒",F7="⤞",H7="↪",q7="↬",B7="⥅",W7="⥴",U7="⤖",V7="↣",j7="↝",G7="⤚",K7="⤜",X7="∶",Y7="ℚ",Z7="⤍",J7="⤏",Q7="⤐",eK="❳",tK="}",nK="]",rK="⦌",iK="⦎",oK="⦐",sK="Ř",lK="ř",aK="Ŗ",cK="ŗ",uK="⌉",fK="}",dK="Р",hK="р",pK="⤷",gK="⥩",vK="”",mK="”",yK="↳",bK="ℜ",wK="ℛ",xK="ℜ",_K="ℝ",SK="ℜ",kK="▭",CK="®",TK="®",EK="∋",LK="⇋",AK="⥯",MK="⥽",NK="⌋",$K="𝔯",PK="ℜ",OK="⥤",RK="⇁",DK="⇀",zK="⥬",IK="Ρ",FK="ρ",HK="ϱ",qK="⟩",BK="⇥",WK="→",UK="→",VK="⇒",jK="⇄",GK="↣",KK="⌉",XK="⟧",YK="⥝",ZK="⥕",JK="⇂",QK="⌋",eX="⇁",tX="⇀",nX="⇄",rX="⇌",iX="⇉",oX="↝",sX="↦",lX="⊢",aX="⥛",cX="⋌",uX="⧐",fX="⊳",dX="⊵",hX="⥏",pX="⥜",gX="⥔",vX="↾",mX="⥓",yX="⇀",bX="˚",wX="≓",xX="⇄",_X="⇌",SX="‏",kX="⎱",CX="⎱",TX="⫮",EX="⟭",LX="⇾",AX="⟧",MX="⦆",NX="𝕣",$X="ℝ",PX="⨮",OX="⨵",RX="⥰",DX=")",zX="⦔",IX="⨒",FX="⇉",HX="⇛",qX="›",BX="𝓇",WX="ℛ",UX="↱",VX="↱",jX="]",GX="’",KX="’",XX="⋌",YX="⋊",ZX="▹",JX="⊵",QX="▸",eY="⧎",tY="⧴",nY="⥨",rY="℞",iY="Ś",oY="ś",sY="‚",lY="⪸",aY="Š",cY="š",uY="⪼",fY="≻",dY="≽",hY="⪰",pY="⪴",gY="Ş",vY="ş",mY="Ŝ",yY="ŝ",bY="⪺",wY="⪶",xY="⋩",_Y="⨓",SY="≿",kY="С",CY="с",TY="⊡",EY="⋅",LY="⩦",AY="⤥",MY="↘",NY="⇘",$Y="↘",PY="§",OY=";",RY="⤩",DY="∖",zY="∖",IY="✶",FY="𝔖",HY="𝔰",qY="⌢",BY="♯",WY="Щ",UY="щ",VY="Ш",jY="ш",GY="↓",KY="←",XY="∣",YY="∥",ZY="→",JY="↑",QY="­",eZ="Σ",tZ="σ",nZ="ς",rZ="ς",iZ="∼",oZ="⩪",sZ="≃",lZ="≃",aZ="⪞",cZ="⪠",uZ="⪝",fZ="⪟",dZ="≆",hZ="⨤",pZ="⥲",gZ="←",vZ="∘",mZ="∖",yZ="⨳",bZ="⧤",wZ="∣",xZ="⌣",_Z="⪪",SZ="⪬",kZ="⪬︀",CZ="Ь",TZ="ь",EZ="⌿",LZ="⧄",AZ="/",MZ="𝕊",NZ="𝕤",$Z="♠",PZ="♠",OZ="∥",RZ="⊓",DZ="⊓︀",zZ="⊔",IZ="⊔︀",FZ="√",HZ="⊏",qZ="⊑",BZ="⊏",WZ="⊑",UZ="⊐",VZ="⊒",jZ="⊐",GZ="⊒",KZ="□",XZ="□",YZ="⊓",ZZ="⊏",JZ="⊑",QZ="⊐",eJ="⊒",tJ="⊔",nJ="▪",rJ="□",iJ="▪",oJ="→",sJ="𝒮",lJ="𝓈",aJ="∖",cJ="⌣",uJ="⋆",fJ="⋆",dJ="☆",hJ="★",pJ="ϵ",gJ="ϕ",vJ="¯",mJ="⊂",yJ="⋐",bJ="⪽",wJ="⫅",xJ="⊆",_J="⫃",SJ="⫁",kJ="⫋",CJ="⊊",TJ="⪿",EJ="⥹",LJ="⊂",AJ="⋐",MJ="⊆",NJ="⫅",$J="⊆",PJ="⊊",OJ="⫋",RJ="⫇",DJ="⫕",zJ="⫓",IJ="⪸",FJ="≻",HJ="≽",qJ="≻",BJ="⪰",WJ="≽",UJ="≿",VJ="⪰",jJ="⪺",GJ="⪶",KJ="⋩",XJ="≿",YJ="∋",ZJ="∑",JJ="∑",QJ="♪",eQ="¹",tQ="²",nQ="³",rQ="⊃",iQ="⋑",oQ="⪾",sQ="⫘",lQ="⫆",aQ="⊇",cQ="⫄",uQ="⊃",fQ="⊇",dQ="⟉",hQ="⫗",pQ="⥻",gQ="⫂",vQ="⫌",mQ="⊋",yQ="⫀",bQ="⊃",wQ="⋑",xQ="⊇",_Q="⫆",SQ="⊋",kQ="⫌",CQ="⫈",TQ="⫔",EQ="⫖",LQ="⤦",AQ="↙",MQ="⇙",NQ="↙",$Q="⤪",PQ="ß",OQ=" ",RQ="⌖",DQ="Τ",zQ="τ",IQ="⎴",FQ="Ť",HQ="ť",qQ="Ţ",BQ="ţ",WQ="Т",UQ="т",VQ="⃛",jQ="⌕",GQ="𝔗",KQ="𝔱",XQ="∴",YQ="∴",ZQ="∴",JQ="Θ",QQ="θ",eee="ϑ",tee="ϑ",nee="≈",ree="∼",iee="  ",oee=" ",see=" ",lee="≈",aee="∼",cee="Þ",uee="þ",fee="˜",dee="∼",hee="≃",pee="≅",gee="≈",vee="⨱",mee="⊠",yee="×",bee="⨰",wee="∭",xee="⤨",_ee="⌶",See="⫱",kee="⊤",Cee="𝕋",Tee="𝕥",Eee="⫚",Lee="⤩",Aee="‴",Mee="™",Nee="™",$ee="▵",Pee="▿",Oee="◃",Ree="⊴",Dee="≜",zee="▹",Iee="⊵",Fee="◬",Hee="≜",qee="⨺",Bee="⃛",Wee="⨹",Uee="⧍",Vee="⨻",jee="⏢",Gee="𝒯",Kee="𝓉",Xee="Ц",Yee="ц",Zee="Ћ",Jee="ћ",Qee="Ŧ",ete="ŧ",tte="≬",nte="↞",rte="↠",ite="Ú",ote="ú",ste="↑",lte="↟",ate="⇑",cte="⥉",ute="Ў",fte="ў",dte="Ŭ",hte="ŭ",pte="Û",gte="û",vte="У",mte="у",yte="⇅",bte="Ű",wte="ű",xte="⥮",_te="⥾",Ste="𝔘",kte="𝔲",Cte="Ù",Tte="ù",Ete="⥣",Lte="↿",Ate="↾",Mte="▀",Nte="⌜",$te="⌜",Pte="⌏",Ote="◸",Rte="Ū",Dte="ū",zte="¨",Ite="_",Fte="⏟",Hte="⎵",qte="⏝",Bte="⋃",Wte="⊎",Ute="Ų",Vte="ų",jte="𝕌",Gte="𝕦",Kte="⤒",Xte="↑",Yte="↑",Zte="⇑",Jte="⇅",Qte="↕",ene="↕",tne="⇕",nne="⥮",rne="↿",ine="↾",one="⊎",sne="↖",lne="↗",ane="υ",cne="ϒ",une="ϒ",fne="Υ",dne="υ",hne="↥",pne="⊥",gne="⇈",vne="⌝",mne="⌝",yne="⌎",bne="Ů",wne="ů",xne="◹",_ne="𝒰",Sne="𝓊",kne="⋰",Cne="Ũ",Tne="ũ",Ene="▵",Lne="▴",Ane="⇈",Mne="Ü",Nne="ü",$ne="⦧",Pne="⦜",One="ϵ",Rne="ϰ",Dne="∅",zne="ϕ",Ine="ϖ",Fne="∝",Hne="↕",qne="⇕",Bne="ϱ",Wne="ς",Une="⊊︀",Vne="⫋︀",jne="⊋︀",Gne="⫌︀",Kne="ϑ",Xne="⊲",Yne="⊳",Zne="⫨",Jne="⫫",Qne="⫩",ere="В",tre="в",nre="⊢",rre="⊨",ire="⊩",ore="⊫",sre="⫦",lre="⊻",are="∨",cre="⋁",ure="≚",fre="⋮",dre="|",hre="‖",pre="|",gre="‖",vre="∣",mre="|",yre="❘",bre="≀",wre=" ",xre="𝔙",_re="𝔳",Sre="⊲",kre="⊂⃒",Cre="⊃⃒",Tre="𝕍",Ere="𝕧",Lre="∝",Are="⊳",Mre="𝒱",Nre="𝓋",$re="⫋︀",Pre="⊊︀",Ore="⫌︀",Rre="⊋︀",Dre="⊪",zre="⦚",Ire="Ŵ",Fre="ŵ",Hre="⩟",qre="∧",Bre="⋀",Wre="≙",Ure="℘",Vre="𝔚",jre="𝔴",Gre="𝕎",Kre="𝕨",Xre="℘",Yre="≀",Zre="≀",Jre="𝒲",Qre="𝓌",eie="⋂",tie="◯",nie="⋃",rie="▽",iie="𝔛",oie="𝔵",sie="⟷",lie="⟺",aie="Ξ",cie="ξ",uie="⟵",fie="⟸",die="⟼",hie="⋻",pie="⨀",gie="𝕏",vie="𝕩",mie="⨁",yie="⨂",bie="⟶",wie="⟹",xie="𝒳",_ie="𝓍",Sie="⨆",kie="⨄",Cie="△",Tie="⋁",Eie="⋀",Lie="Ý",Aie="ý",Mie="Я",Nie="я",$ie="Ŷ",Pie="ŷ",Oie="Ы",Rie="ы",Die="¥",zie="𝔜",Iie="𝔶",Fie="Ї",Hie="ї",qie="𝕐",Bie="𝕪",Wie="𝒴",Uie="𝓎",Vie="Ю",jie="ю",Gie="ÿ",Kie="Ÿ",Xie="Ź",Yie="ź",Zie="Ž",Jie="ž",Qie="З",eoe="з",toe="Ż",noe="ż",roe="ℨ",ioe="​",ooe="Ζ",soe="ζ",loe="𝔷",aoe="ℨ",coe="Ж",uoe="ж",foe="⇝",doe="𝕫",hoe="ℤ",poe="𝒵",goe="𝓏",voe="‍",moe="‌",Vb={Aacute:tL,aacute:nL,Abreve:rL,abreve:iL,ac:oL,acd:sL,acE:lL,Acirc:aL,acirc:cL,acute:uL,Acy:fL,acy:dL,AElig:hL,aelig:pL,af:gL,Afr:vL,afr:mL,Agrave:yL,agrave:bL,alefsym:wL,aleph:xL,Alpha:_L,alpha:SL,Amacr:kL,amacr:CL,amalg:TL,amp:EL,AMP:LL,andand:AL,And:ML,and:NL,andd:$L,andslope:PL,andv:OL,ang:RL,ange:DL,angle:zL,angmsdaa:IL,angmsdab:FL,angmsdac:HL,angmsdad:qL,angmsdae:BL,angmsdaf:WL,angmsdag:UL,angmsdah:VL,angmsd:jL,angrt:GL,angrtvb:KL,angrtvbd:XL,angsph:YL,angst:ZL,angzarr:JL,Aogon:QL,aogon:eA,Aopf:tA,aopf:nA,apacir:rA,ap:iA,apE:oA,ape:sA,apid:lA,apos:aA,ApplyFunction:cA,approx:uA,approxeq:fA,Aring:dA,aring:hA,Ascr:pA,ascr:gA,Assign:vA,ast:mA,asymp:yA,asympeq:bA,Atilde:wA,atilde:xA,Auml:_A,auml:SA,awconint:kA,awint:CA,backcong:TA,backepsilon:EA,backprime:LA,backsim:AA,backsimeq:MA,Backslash:NA,Barv:$A,barvee:PA,barwed:OA,Barwed:RA,barwedge:DA,bbrk:zA,bbrktbrk:IA,bcong:FA,Bcy:HA,bcy:qA,bdquo:BA,becaus:WA,because:UA,Because:VA,bemptyv:jA,bepsi:GA,bernou:KA,Bernoullis:XA,Beta:YA,beta:ZA,beth:JA,between:QA,Bfr:eM,bfr:tM,bigcap:nM,bigcirc:rM,bigcup:iM,bigodot:oM,bigoplus:sM,bigotimes:lM,bigsqcup:aM,bigstar:cM,bigtriangledown:uM,bigtriangleup:fM,biguplus:dM,bigvee:hM,bigwedge:pM,bkarow:gM,blacklozenge:vM,blacksquare:mM,blacktriangle:yM,blacktriangledown:bM,blacktriangleleft:wM,blacktriangleright:xM,blank:_M,blk12:SM,blk14:kM,blk34:CM,block:TM,bne:EM,bnequiv:LM,bNot:AM,bnot:MM,Bopf:NM,bopf:$M,bot:PM,bottom:OM,bowtie:RM,boxbox:DM,boxdl:zM,boxdL:IM,boxDl:FM,boxDL:HM,boxdr:qM,boxdR:BM,boxDr:WM,boxDR:UM,boxh:VM,boxH:jM,boxhd:GM,boxHd:KM,boxhD:XM,boxHD:YM,boxhu:ZM,boxHu:JM,boxhU:QM,boxHU:eN,boxminus:tN,boxplus:nN,boxtimes:rN,boxul:iN,boxuL:oN,boxUl:sN,boxUL:lN,boxur:aN,boxuR:cN,boxUr:uN,boxUR:fN,boxv:dN,boxV:hN,boxvh:pN,boxvH:gN,boxVh:vN,boxVH:mN,boxvl:yN,boxvL:bN,boxVl:wN,boxVL:xN,boxvr:_N,boxvR:SN,boxVr:kN,boxVR:CN,bprime:TN,breve:EN,Breve:LN,brvbar:AN,bscr:MN,Bscr:NN,bsemi:$N,bsim:PN,bsime:ON,bsolb:RN,bsol:DN,bsolhsub:zN,bull:IN,bullet:FN,bump:HN,bumpE:qN,bumpe:BN,Bumpeq:WN,bumpeq:UN,Cacute:VN,cacute:jN,capand:GN,capbrcup:KN,capcap:XN,cap:YN,Cap:ZN,capcup:JN,capdot:QN,CapitalDifferentialD:e$,caps:t$,caret:n$,caron:r$,Cayleys:i$,ccaps:o$,Ccaron:s$,ccaron:l$,Ccedil:a$,ccedil:c$,Ccirc:u$,ccirc:f$,Cconint:d$,ccups:h$,ccupssm:p$,Cdot:g$,cdot:v$,cedil:m$,Cedilla:y$,cemptyv:b$,cent:w$,centerdot:x$,CenterDot:_$,cfr:S$,Cfr:k$,CHcy:C$,chcy:T$,check:E$,checkmark:L$,Chi:A$,chi:M$,circ:N$,circeq:$$,circlearrowleft:P$,circlearrowright:O$,circledast:R$,circledcirc:D$,circleddash:z$,CircleDot:I$,circledR:F$,circledS:H$,CircleMinus:q$,CirclePlus:B$,CircleTimes:W$,cir:U$,cirE:V$,cire:j$,cirfnint:G$,cirmid:K$,cirscir:X$,ClockwiseContourIntegral:Y$,CloseCurlyDoubleQuote:Z$,CloseCurlyQuote:J$,clubs:Q$,clubsuit:eP,colon:tP,Colon:nP,Colone:rP,colone:iP,coloneq:oP,comma:sP,commat:lP,comp:aP,compfn:cP,complement:uP,complexes:fP,cong:dP,congdot:hP,Congruent:pP,conint:gP,Conint:vP,ContourIntegral:mP,copf:yP,Copf:bP,coprod:wP,Coproduct:xP,copy:_P,COPY:SP,copysr:kP,CounterClockwiseContourIntegral:CP,crarr:TP,cross:EP,Cross:LP,Cscr:AP,cscr:MP,csub:NP,csube:$P,csup:PP,csupe:OP,ctdot:RP,cudarrl:DP,cudarrr:zP,cuepr:IP,cuesc:FP,cularr:HP,cularrp:qP,cupbrcap:BP,cupcap:WP,CupCap:UP,cup:VP,Cup:jP,cupcup:GP,cupdot:KP,cupor:XP,cups:YP,curarr:ZP,curarrm:JP,curlyeqprec:QP,curlyeqsucc:eO,curlyvee:tO,curlywedge:nO,curren:rO,curvearrowleft:iO,curvearrowright:oO,cuvee:sO,cuwed:lO,cwconint:aO,cwint:cO,cylcty:uO,dagger:fO,Dagger:dO,daleth:hO,darr:pO,Darr:gO,dArr:vO,dash:mO,Dashv:yO,dashv:bO,dbkarow:wO,dblac:xO,Dcaron:_O,dcaron:SO,Dcy:kO,dcy:CO,ddagger:TO,ddarr:EO,DD:LO,dd:AO,DDotrahd:MO,ddotseq:NO,deg:$O,Del:PO,Delta:OO,delta:RO,demptyv:DO,dfisht:zO,Dfr:IO,dfr:FO,dHar:HO,dharl:qO,dharr:BO,DiacriticalAcute:WO,DiacriticalDot:UO,DiacriticalDoubleAcute:VO,DiacriticalGrave:jO,DiacriticalTilde:GO,diam:KO,diamond:XO,Diamond:YO,diamondsuit:ZO,diams:JO,die:QO,DifferentialD:eR,digamma:tR,disin:nR,div:rR,divide:iR,divideontimes:oR,divonx:sR,DJcy:lR,djcy:aR,dlcorn:cR,dlcrop:uR,dollar:fR,Dopf:dR,dopf:hR,Dot:pR,dot:gR,DotDot:vR,doteq:mR,doteqdot:yR,DotEqual:bR,dotminus:wR,dotplus:xR,dotsquare:_R,doublebarwedge:SR,DoubleContourIntegral:kR,DoubleDot:CR,DoubleDownArrow:TR,DoubleLeftArrow:ER,DoubleLeftRightArrow:LR,DoubleLeftTee:AR,DoubleLongLeftArrow:MR,DoubleLongLeftRightArrow:NR,DoubleLongRightArrow:$R,DoubleRightArrow:PR,DoubleRightTee:OR,DoubleUpArrow:RR,DoubleUpDownArrow:DR,DoubleVerticalBar:zR,DownArrowBar:IR,downarrow:FR,DownArrow:HR,Downarrow:qR,DownArrowUpArrow:BR,DownBreve:WR,downdownarrows:UR,downharpoonleft:VR,downharpoonright:jR,DownLeftRightVector:GR,DownLeftTeeVector:KR,DownLeftVectorBar:XR,DownLeftVector:YR,DownRightTeeVector:ZR,DownRightVectorBar:JR,DownRightVector:QR,DownTeeArrow:eD,DownTee:tD,drbkarow:nD,drcorn:rD,drcrop:iD,Dscr:oD,dscr:sD,DScy:lD,dscy:aD,dsol:cD,Dstrok:uD,dstrok:fD,dtdot:dD,dtri:hD,dtrif:pD,duarr:gD,duhar:vD,dwangle:mD,DZcy:yD,dzcy:bD,dzigrarr:wD,Eacute:xD,eacute:_D,easter:SD,Ecaron:kD,ecaron:CD,Ecirc:TD,ecirc:ED,ecir:LD,ecolon:AD,Ecy:MD,ecy:ND,eDDot:$D,Edot:PD,edot:OD,eDot:RD,ee:DD,efDot:zD,Efr:ID,efr:FD,eg:HD,Egrave:qD,egrave:BD,egs:WD,egsdot:UD,el:VD,Element:jD,elinters:GD,ell:KD,els:XD,elsdot:YD,Emacr:ZD,emacr:JD,empty:QD,emptyset:e2,EmptySmallSquare:t2,emptyv:n2,EmptyVerySmallSquare:r2,emsp13:i2,emsp14:o2,emsp:s2,ENG:l2,eng:a2,ensp:c2,Eogon:u2,eogon:f2,Eopf:d2,eopf:h2,epar:p2,eparsl:g2,eplus:v2,epsi:m2,Epsilon:y2,epsilon:b2,epsiv:w2,eqcirc:x2,eqcolon:_2,eqsim:S2,eqslantgtr:k2,eqslantless:C2,Equal:T2,equals:E2,EqualTilde:L2,equest:A2,Equilibrium:M2,equiv:N2,equivDD:$2,eqvparsl:P2,erarr:O2,erDot:R2,escr:D2,Escr:z2,esdot:I2,Esim:F2,esim:H2,Eta:q2,eta:B2,ETH:W2,eth:U2,Euml:V2,euml:j2,euro:G2,excl:K2,exist:X2,Exists:Y2,expectation:Z2,exponentiale:J2,ExponentialE:Q2,fallingdotseq:ez,Fcy:tz,fcy:nz,female:rz,ffilig:iz,fflig:oz,ffllig:sz,Ffr:lz,ffr:az,filig:cz,FilledSmallSquare:uz,FilledVerySmallSquare:fz,fjlig:dz,flat:hz,fllig:pz,fltns:gz,fnof:vz,Fopf:mz,fopf:yz,forall:bz,ForAll:wz,fork:xz,forkv:_z,Fouriertrf:Sz,fpartint:kz,frac12:Cz,frac13:Tz,frac14:Ez,frac15:Lz,frac16:Az,frac18:Mz,frac23:Nz,frac25:$z,frac34:Pz,frac35:Oz,frac38:Rz,frac45:Dz,frac56:zz,frac58:Iz,frac78:Fz,frasl:Hz,frown:qz,fscr:Bz,Fscr:Wz,gacute:Uz,Gamma:Vz,gamma:jz,Gammad:Gz,gammad:Kz,gap:Xz,Gbreve:Yz,gbreve:Zz,Gcedil:Jz,Gcirc:Qz,gcirc:eI,Gcy:tI,gcy:nI,Gdot:rI,gdot:iI,ge:oI,gE:sI,gEl:lI,gel:aI,geq:cI,geqq:uI,geqslant:fI,gescc:dI,ges:hI,gesdot:pI,gesdoto:gI,gesdotol:vI,gesl:mI,gesles:yI,Gfr:bI,gfr:wI,gg:xI,Gg:_I,ggg:SI,gimel:kI,GJcy:CI,gjcy:TI,gla:EI,gl:LI,glE:AI,glj:MI,gnap:NI,gnapprox:$I,gne:PI,gnE:OI,gneq:RI,gneqq:DI,gnsim:zI,Gopf:II,gopf:FI,grave:HI,GreaterEqual:qI,GreaterEqualLess:BI,GreaterFullEqual:WI,GreaterGreater:UI,GreaterLess:VI,GreaterSlantEqual:jI,GreaterTilde:GI,Gscr:KI,gscr:XI,gsim:YI,gsime:ZI,gsiml:JI,gtcc:QI,gtcir:eF,gt:tF,GT:nF,Gt:rF,gtdot:iF,gtlPar:oF,gtquest:sF,gtrapprox:lF,gtrarr:aF,gtrdot:cF,gtreqless:uF,gtreqqless:fF,gtrless:dF,gtrsim:hF,gvertneqq:pF,gvnE:gF,Hacek:vF,hairsp:mF,half:yF,hamilt:bF,HARDcy:wF,hardcy:xF,harrcir:_F,harr:SF,hArr:kF,harrw:CF,Hat:TF,hbar:EF,Hcirc:LF,hcirc:AF,hearts:MF,heartsuit:NF,hellip:$F,hercon:PF,hfr:OF,Hfr:RF,HilbertSpace:DF,hksearow:zF,hkswarow:IF,hoarr:FF,homtht:HF,hookleftarrow:qF,hookrightarrow:BF,hopf:WF,Hopf:UF,horbar:VF,HorizontalLine:jF,hscr:GF,Hscr:KF,hslash:XF,Hstrok:YF,hstrok:ZF,HumpDownHump:JF,HumpEqual:QF,hybull:eH,hyphen:tH,Iacute:nH,iacute:rH,ic:iH,Icirc:oH,icirc:sH,Icy:lH,icy:aH,Idot:cH,IEcy:uH,iecy:fH,iexcl:dH,iff:hH,ifr:pH,Ifr:gH,Igrave:vH,igrave:mH,ii:yH,iiiint:bH,iiint:wH,iinfin:xH,iiota:_H,IJlig:SH,ijlig:kH,Imacr:CH,imacr:TH,image:EH,ImaginaryI:LH,imagline:AH,imagpart:MH,imath:NH,Im:$H,imof:PH,imped:OH,Implies:RH,incare:DH,in:"∈",infin:zH,infintie:IH,inodot:FH,intcal:HH,int:qH,Int:BH,integers:WH,Integral:UH,intercal:VH,Intersection:jH,intlarhk:GH,intprod:KH,InvisibleComma:XH,InvisibleTimes:YH,IOcy:ZH,iocy:JH,Iogon:QH,iogon:eq,Iopf:tq,iopf:nq,Iota:rq,iota:iq,iprod:oq,iquest:sq,iscr:lq,Iscr:aq,isin:cq,isindot:uq,isinE:fq,isins:dq,isinsv:hq,isinv:pq,it:gq,Itilde:vq,itilde:mq,Iukcy:yq,iukcy:bq,Iuml:wq,iuml:xq,Jcirc:_q,jcirc:Sq,Jcy:kq,jcy:Cq,Jfr:Tq,jfr:Eq,jmath:Lq,Jopf:Aq,jopf:Mq,Jscr:Nq,jscr:$q,Jsercy:Pq,jsercy:Oq,Jukcy:Rq,jukcy:Dq,Kappa:zq,kappa:Iq,kappav:Fq,Kcedil:Hq,kcedil:qq,Kcy:Bq,kcy:Wq,Kfr:Uq,kfr:Vq,kgreen:jq,KHcy:Gq,khcy:Kq,KJcy:Xq,kjcy:Yq,Kopf:Zq,kopf:Jq,Kscr:Qq,kscr:eB,lAarr:tB,Lacute:nB,lacute:rB,laemptyv:iB,lagran:oB,Lambda:sB,lambda:lB,lang:aB,Lang:cB,langd:uB,langle:fB,lap:dB,Laplacetrf:hB,laquo:pB,larrb:gB,larrbfs:vB,larr:mB,Larr:yB,lArr:bB,larrfs:wB,larrhk:xB,larrlp:_B,larrpl:SB,larrsim:kB,larrtl:CB,latail:TB,lAtail:EB,lat:LB,late:AB,lates:MB,lbarr:NB,lBarr:$B,lbbrk:PB,lbrace:OB,lbrack:RB,lbrke:DB,lbrksld:zB,lbrkslu:IB,Lcaron:FB,lcaron:HB,Lcedil:qB,lcedil:BB,lceil:WB,lcub:UB,Lcy:VB,lcy:jB,ldca:GB,ldquo:KB,ldquor:XB,ldrdhar:YB,ldrushar:ZB,ldsh:JB,le:QB,lE:e3,LeftAngleBracket:t3,LeftArrowBar:n3,leftarrow:r3,LeftArrow:i3,Leftarrow:o3,LeftArrowRightArrow:s3,leftarrowtail:l3,LeftCeiling:a3,LeftDoubleBracket:c3,LeftDownTeeVector:u3,LeftDownVectorBar:f3,LeftDownVector:d3,LeftFloor:h3,leftharpoondown:p3,leftharpoonup:g3,leftleftarrows:v3,leftrightarrow:m3,LeftRightArrow:y3,Leftrightarrow:b3,leftrightarrows:w3,leftrightharpoons:x3,leftrightsquigarrow:_3,LeftRightVector:S3,LeftTeeArrow:k3,LeftTee:C3,LeftTeeVector:T3,leftthreetimes:E3,LeftTriangleBar:L3,LeftTriangle:A3,LeftTriangleEqual:M3,LeftUpDownVector:N3,LeftUpTeeVector:$3,LeftUpVectorBar:P3,LeftUpVector:O3,LeftVectorBar:R3,LeftVector:D3,lEg:z3,leg:I3,leq:F3,leqq:H3,leqslant:q3,lescc:B3,les:W3,lesdot:U3,lesdoto:V3,lesdotor:j3,lesg:G3,lesges:K3,lessapprox:X3,lessdot:Y3,lesseqgtr:Z3,lesseqqgtr:J3,LessEqualGreater:Q3,LessFullEqual:e5,LessGreater:t5,lessgtr:n5,LessLess:r5,lesssim:i5,LessSlantEqual:o5,LessTilde:s5,lfisht:l5,lfloor:a5,Lfr:c5,lfr:u5,lg:f5,lgE:d5,lHar:h5,lhard:p5,lharu:g5,lharul:v5,lhblk:m5,LJcy:y5,ljcy:b5,llarr:w5,ll:x5,Ll:_5,llcorner:S5,Lleftarrow:k5,llhard:C5,lltri:T5,Lmidot:E5,lmidot:L5,lmoustache:A5,lmoust:M5,lnap:N5,lnapprox:$5,lne:P5,lnE:O5,lneq:R5,lneqq:D5,lnsim:z5,loang:I5,loarr:F5,lobrk:H5,longleftarrow:q5,LongLeftArrow:B5,Longleftarrow:W5,longleftrightarrow:U5,LongLeftRightArrow:V5,Longleftrightarrow:j5,longmapsto:G5,longrightarrow:K5,LongRightArrow:X5,Longrightarrow:Y5,looparrowleft:Z5,looparrowright:J5,lopar:Q5,Lopf:e8,lopf:t8,loplus:n8,lotimes:r8,lowast:i8,lowbar:o8,LowerLeftArrow:s8,LowerRightArrow:l8,loz:a8,lozenge:c8,lozf:u8,lpar:f8,lparlt:d8,lrarr:h8,lrcorner:p8,lrhar:g8,lrhard:v8,lrm:m8,lrtri:y8,lsaquo:b8,lscr:w8,Lscr:x8,lsh:_8,Lsh:S8,lsim:k8,lsime:C8,lsimg:T8,lsqb:E8,lsquo:L8,lsquor:A8,Lstrok:M8,lstrok:N8,ltcc:$8,ltcir:P8,lt:O8,LT:R8,Lt:D8,ltdot:z8,lthree:I8,ltimes:F8,ltlarr:H8,ltquest:q8,ltri:B8,ltrie:W8,ltrif:U8,ltrPar:V8,lurdshar:j8,luruhar:G8,lvertneqq:K8,lvnE:X8,macr:Y8,male:Z8,malt:J8,maltese:Q8,Map:"⤅",map:eW,mapsto:tW,mapstodown:nW,mapstoleft:rW,mapstoup:iW,marker:oW,mcomma:sW,Mcy:lW,mcy:aW,mdash:cW,mDDot:uW,measuredangle:fW,MediumSpace:dW,Mellintrf:hW,Mfr:pW,mfr:gW,mho:vW,micro:mW,midast:yW,midcir:bW,mid:wW,middot:xW,minusb:_W,minus:SW,minusd:kW,minusdu:CW,MinusPlus:TW,mlcp:EW,mldr:LW,mnplus:AW,models:MW,Mopf:NW,mopf:$W,mp:PW,mscr:OW,Mscr:RW,mstpos:DW,Mu:zW,mu:IW,multimap:FW,mumap:HW,nabla:qW,Nacute:BW,nacute:WW,nang:UW,nap:VW,napE:jW,napid:GW,napos:KW,napprox:XW,natural:YW,naturals:ZW,natur:JW,nbsp:QW,nbump:e4,nbumpe:t4,ncap:n4,Ncaron:r4,ncaron:i4,Ncedil:o4,ncedil:s4,ncong:l4,ncongdot:a4,ncup:c4,Ncy:u4,ncy:f4,ndash:d4,nearhk:h4,nearr:p4,neArr:g4,nearrow:v4,ne:m4,nedot:y4,NegativeMediumSpace:b4,NegativeThickSpace:w4,NegativeThinSpace:x4,NegativeVeryThinSpace:_4,nequiv:S4,nesear:k4,nesim:C4,NestedGreaterGreater:T4,NestedLessLess:E4,NewLine:L4,nexist:A4,nexists:M4,Nfr:N4,nfr:$4,ngE:P4,nge:O4,ngeq:R4,ngeqq:D4,ngeqslant:z4,nges:I4,nGg:F4,ngsim:H4,nGt:q4,ngt:B4,ngtr:W4,nGtv:U4,nharr:V4,nhArr:j4,nhpar:G4,ni:K4,nis:X4,nisd:Y4,niv:Z4,NJcy:J4,njcy:Q4,nlarr:eU,nlArr:tU,nldr:nU,nlE:rU,nle:iU,nleftarrow:oU,nLeftarrow:sU,nleftrightarrow:lU,nLeftrightarrow:aU,nleq:cU,nleqq:uU,nleqslant:fU,nles:dU,nless:hU,nLl:pU,nlsim:gU,nLt:vU,nlt:mU,nltri:yU,nltrie:bU,nLtv:wU,nmid:xU,NoBreak:_U,NonBreakingSpace:SU,nopf:kU,Nopf:CU,Not:TU,not:EU,NotCongruent:LU,NotCupCap:AU,NotDoubleVerticalBar:MU,NotElement:NU,NotEqual:$U,NotEqualTilde:PU,NotExists:OU,NotGreater:RU,NotGreaterEqual:DU,NotGreaterFullEqual:zU,NotGreaterGreater:IU,NotGreaterLess:FU,NotGreaterSlantEqual:HU,NotGreaterTilde:qU,NotHumpDownHump:BU,NotHumpEqual:WU,notin:UU,notindot:VU,notinE:jU,notinva:GU,notinvb:KU,notinvc:XU,NotLeftTriangleBar:YU,NotLeftTriangle:ZU,NotLeftTriangleEqual:JU,NotLess:QU,NotLessEqual:e6,NotLessGreater:t6,NotLessLess:n6,NotLessSlantEqual:r6,NotLessTilde:i6,NotNestedGreaterGreater:o6,NotNestedLessLess:s6,notni:l6,notniva:a6,notnivb:c6,notnivc:u6,NotPrecedes:f6,NotPrecedesEqual:d6,NotPrecedesSlantEqual:h6,NotReverseElement:p6,NotRightTriangleBar:g6,NotRightTriangle:v6,NotRightTriangleEqual:m6,NotSquareSubset:y6,NotSquareSubsetEqual:b6,NotSquareSuperset:w6,NotSquareSupersetEqual:x6,NotSubset:_6,NotSubsetEqual:S6,NotSucceeds:k6,NotSucceedsEqual:C6,NotSucceedsSlantEqual:T6,NotSucceedsTilde:E6,NotSuperset:L6,NotSupersetEqual:A6,NotTilde:M6,NotTildeEqual:N6,NotTildeFullEqual:$6,NotTildeTilde:P6,NotVerticalBar:O6,nparallel:R6,npar:D6,nparsl:z6,npart:I6,npolint:F6,npr:H6,nprcue:q6,nprec:B6,npreceq:W6,npre:U6,nrarrc:V6,nrarr:j6,nrArr:G6,nrarrw:K6,nrightarrow:X6,nRightarrow:Y6,nrtri:Z6,nrtrie:J6,nsc:Q6,nsccue:eV,nsce:tV,Nscr:nV,nscr:rV,nshortmid:iV,nshortparallel:oV,nsim:sV,nsime:lV,nsimeq:aV,nsmid:cV,nspar:uV,nsqsube:fV,nsqsupe:dV,nsub:hV,nsubE:pV,nsube:gV,nsubset:vV,nsubseteq:mV,nsubseteqq:yV,nsucc:bV,nsucceq:wV,nsup:xV,nsupE:_V,nsupe:SV,nsupset:kV,nsupseteq:CV,nsupseteqq:TV,ntgl:EV,Ntilde:LV,ntilde:AV,ntlg:MV,ntriangleleft:NV,ntrianglelefteq:$V,ntriangleright:PV,ntrianglerighteq:OV,Nu:RV,nu:DV,num:zV,numero:IV,numsp:FV,nvap:HV,nvdash:qV,nvDash:BV,nVdash:WV,nVDash:UV,nvge:VV,nvgt:jV,nvHarr:GV,nvinfin:KV,nvlArr:XV,nvle:YV,nvlt:ZV,nvltrie:JV,nvrArr:QV,nvrtrie:ej,nvsim:tj,nwarhk:nj,nwarr:rj,nwArr:ij,nwarrow:oj,nwnear:sj,Oacute:lj,oacute:aj,oast:cj,Ocirc:uj,ocirc:fj,ocir:dj,Ocy:hj,ocy:pj,odash:gj,Odblac:vj,odblac:mj,odiv:yj,odot:bj,odsold:wj,OElig:xj,oelig:_j,ofcir:Sj,Ofr:kj,ofr:Cj,ogon:Tj,Ograve:Ej,ograve:Lj,ogt:Aj,ohbar:Mj,ohm:Nj,oint:$j,olarr:Pj,olcir:Oj,olcross:Rj,oline:Dj,olt:zj,Omacr:Ij,omacr:Fj,Omega:Hj,omega:qj,Omicron:Bj,omicron:Wj,omid:Uj,ominus:Vj,Oopf:jj,oopf:Gj,opar:Kj,OpenCurlyDoubleQuote:Xj,OpenCurlyQuote:Yj,operp:Zj,oplus:Jj,orarr:Qj,Or:eG,or:tG,ord:nG,order:rG,orderof:iG,ordf:oG,ordm:sG,origof:lG,oror:aG,orslope:cG,orv:uG,oS:fG,Oscr:dG,oscr:hG,Oslash:pG,oslash:gG,osol:vG,Otilde:mG,otilde:yG,otimesas:bG,Otimes:wG,otimes:xG,Ouml:_G,ouml:SG,ovbar:kG,OverBar:CG,OverBrace:TG,OverBracket:EG,OverParenthesis:LG,para:AG,parallel:MG,par:NG,parsim:$G,parsl:PG,part:OG,PartialD:RG,Pcy:DG,pcy:zG,percnt:IG,period:FG,permil:HG,perp:qG,pertenk:BG,Pfr:WG,pfr:UG,Phi:VG,phi:jG,phiv:GG,phmmat:KG,phone:XG,Pi:YG,pi:ZG,pitchfork:JG,piv:QG,planck:e9,planckh:t9,plankv:n9,plusacir:r9,plusb:i9,pluscir:o9,plus:s9,plusdo:l9,plusdu:a9,pluse:c9,PlusMinus:u9,plusmn:f9,plussim:d9,plustwo:h9,pm:p9,Poincareplane:g9,pointint:v9,popf:m9,Popf:y9,pound:b9,prap:w9,Pr:x9,pr:_9,prcue:S9,precapprox:k9,prec:C9,preccurlyeq:T9,Precedes:E9,PrecedesEqual:L9,PrecedesSlantEqual:A9,PrecedesTilde:M9,preceq:N9,precnapprox:$9,precneqq:P9,precnsim:O9,pre:R9,prE:D9,precsim:z9,prime:I9,Prime:F9,primes:H9,prnap:q9,prnE:B9,prnsim:W9,prod:U9,Product:V9,profalar:j9,profline:G9,profsurf:K9,prop:X9,Proportional:Y9,Proportion:Z9,propto:J9,prsim:Q9,prurel:e7,Pscr:t7,pscr:n7,Psi:r7,psi:i7,puncsp:o7,Qfr:s7,qfr:l7,qint:a7,qopf:c7,Qopf:u7,qprime:f7,Qscr:d7,qscr:h7,quaternions:p7,quatint:g7,quest:v7,questeq:m7,quot:y7,QUOT:b7,rAarr:w7,race:x7,Racute:_7,racute:S7,radic:k7,raemptyv:C7,rang:T7,Rang:E7,rangd:L7,range:A7,rangle:M7,raquo:N7,rarrap:$7,rarrb:P7,rarrbfs:O7,rarrc:R7,rarr:D7,Rarr:z7,rArr:I7,rarrfs:F7,rarrhk:H7,rarrlp:q7,rarrpl:B7,rarrsim:W7,Rarrtl:U7,rarrtl:V7,rarrw:j7,ratail:G7,rAtail:K7,ratio:X7,rationals:Y7,rbarr:Z7,rBarr:J7,RBarr:Q7,rbbrk:eK,rbrace:tK,rbrack:nK,rbrke:rK,rbrksld:iK,rbrkslu:oK,Rcaron:sK,rcaron:lK,Rcedil:aK,rcedil:cK,rceil:uK,rcub:fK,Rcy:dK,rcy:hK,rdca:pK,rdldhar:gK,rdquo:vK,rdquor:mK,rdsh:yK,real:bK,realine:wK,realpart:xK,reals:_K,Re:SK,rect:kK,reg:CK,REG:TK,ReverseElement:EK,ReverseEquilibrium:LK,ReverseUpEquilibrium:AK,rfisht:MK,rfloor:NK,rfr:$K,Rfr:PK,rHar:OK,rhard:RK,rharu:DK,rharul:zK,Rho:IK,rho:FK,rhov:HK,RightAngleBracket:qK,RightArrowBar:BK,rightarrow:WK,RightArrow:UK,Rightarrow:VK,RightArrowLeftArrow:jK,rightarrowtail:GK,RightCeiling:KK,RightDoubleBracket:XK,RightDownTeeVector:YK,RightDownVectorBar:ZK,RightDownVector:JK,RightFloor:QK,rightharpoondown:eX,rightharpoonup:tX,rightleftarrows:nX,rightleftharpoons:rX,rightrightarrows:iX,rightsquigarrow:oX,RightTeeArrow:sX,RightTee:lX,RightTeeVector:aX,rightthreetimes:cX,RightTriangleBar:uX,RightTriangle:fX,RightTriangleEqual:dX,RightUpDownVector:hX,RightUpTeeVector:pX,RightUpVectorBar:gX,RightUpVector:vX,RightVectorBar:mX,RightVector:yX,ring:bX,risingdotseq:wX,rlarr:xX,rlhar:_X,rlm:SX,rmoustache:kX,rmoust:CX,rnmid:TX,roang:EX,roarr:LX,robrk:AX,ropar:MX,ropf:NX,Ropf:$X,roplus:PX,rotimes:OX,RoundImplies:RX,rpar:DX,rpargt:zX,rppolint:IX,rrarr:FX,Rrightarrow:HX,rsaquo:qX,rscr:BX,Rscr:WX,rsh:UX,Rsh:VX,rsqb:jX,rsquo:GX,rsquor:KX,rthree:XX,rtimes:YX,rtri:ZX,rtrie:JX,rtrif:QX,rtriltri:eY,RuleDelayed:tY,ruluhar:nY,rx:rY,Sacute:iY,sacute:oY,sbquo:sY,scap:lY,Scaron:aY,scaron:cY,Sc:uY,sc:fY,sccue:dY,sce:hY,scE:pY,Scedil:gY,scedil:vY,Scirc:mY,scirc:yY,scnap:bY,scnE:wY,scnsim:xY,scpolint:_Y,scsim:SY,Scy:kY,scy:CY,sdotb:TY,sdot:EY,sdote:LY,searhk:AY,searr:MY,seArr:NY,searrow:$Y,sect:PY,semi:OY,seswar:RY,setminus:DY,setmn:zY,sext:IY,Sfr:FY,sfr:HY,sfrown:qY,sharp:BY,SHCHcy:WY,shchcy:UY,SHcy:VY,shcy:jY,ShortDownArrow:GY,ShortLeftArrow:KY,shortmid:XY,shortparallel:YY,ShortRightArrow:ZY,ShortUpArrow:JY,shy:QY,Sigma:eZ,sigma:tZ,sigmaf:nZ,sigmav:rZ,sim:iZ,simdot:oZ,sime:sZ,simeq:lZ,simg:aZ,simgE:cZ,siml:uZ,simlE:fZ,simne:dZ,simplus:hZ,simrarr:pZ,slarr:gZ,SmallCircle:vZ,smallsetminus:mZ,smashp:yZ,smeparsl:bZ,smid:wZ,smile:xZ,smt:_Z,smte:SZ,smtes:kZ,SOFTcy:CZ,softcy:TZ,solbar:EZ,solb:LZ,sol:AZ,Sopf:MZ,sopf:NZ,spades:$Z,spadesuit:PZ,spar:OZ,sqcap:RZ,sqcaps:DZ,sqcup:zZ,sqcups:IZ,Sqrt:FZ,sqsub:HZ,sqsube:qZ,sqsubset:BZ,sqsubseteq:WZ,sqsup:UZ,sqsupe:VZ,sqsupset:jZ,sqsupseteq:GZ,square:KZ,Square:XZ,SquareIntersection:YZ,SquareSubset:ZZ,SquareSubsetEqual:JZ,SquareSuperset:QZ,SquareSupersetEqual:eJ,SquareUnion:tJ,squarf:nJ,squ:rJ,squf:iJ,srarr:oJ,Sscr:sJ,sscr:lJ,ssetmn:aJ,ssmile:cJ,sstarf:uJ,Star:fJ,star:dJ,starf:hJ,straightepsilon:pJ,straightphi:gJ,strns:vJ,sub:mJ,Sub:yJ,subdot:bJ,subE:wJ,sube:xJ,subedot:_J,submult:SJ,subnE:kJ,subne:CJ,subplus:TJ,subrarr:EJ,subset:LJ,Subset:AJ,subseteq:MJ,subseteqq:NJ,SubsetEqual:$J,subsetneq:PJ,subsetneqq:OJ,subsim:RJ,subsub:DJ,subsup:zJ,succapprox:IJ,succ:FJ,succcurlyeq:HJ,Succeeds:qJ,SucceedsEqual:BJ,SucceedsSlantEqual:WJ,SucceedsTilde:UJ,succeq:VJ,succnapprox:jJ,succneqq:GJ,succnsim:KJ,succsim:XJ,SuchThat:YJ,sum:ZJ,Sum:JJ,sung:QJ,sup1:eQ,sup2:tQ,sup3:nQ,sup:rQ,Sup:iQ,supdot:oQ,supdsub:sQ,supE:lQ,supe:aQ,supedot:cQ,Superset:uQ,SupersetEqual:fQ,suphsol:dQ,suphsub:hQ,suplarr:pQ,supmult:gQ,supnE:vQ,supne:mQ,supplus:yQ,supset:bQ,Supset:wQ,supseteq:xQ,supseteqq:_Q,supsetneq:SQ,supsetneqq:kQ,supsim:CQ,supsub:TQ,supsup:EQ,swarhk:LQ,swarr:AQ,swArr:MQ,swarrow:NQ,swnwar:$Q,szlig:PQ,Tab:OQ,target:RQ,Tau:DQ,tau:zQ,tbrk:IQ,Tcaron:FQ,tcaron:HQ,Tcedil:qQ,tcedil:BQ,Tcy:WQ,tcy:UQ,tdot:VQ,telrec:jQ,Tfr:GQ,tfr:KQ,there4:XQ,therefore:YQ,Therefore:ZQ,Theta:JQ,theta:QQ,thetasym:eee,thetav:tee,thickapprox:nee,thicksim:ree,ThickSpace:iee,ThinSpace:oee,thinsp:see,thkap:lee,thksim:aee,THORN:cee,thorn:uee,tilde:fee,Tilde:dee,TildeEqual:hee,TildeFullEqual:pee,TildeTilde:gee,timesbar:vee,timesb:mee,times:yee,timesd:bee,tint:wee,toea:xee,topbot:_ee,topcir:See,top:kee,Topf:Cee,topf:Tee,topfork:Eee,tosa:Lee,tprime:Aee,trade:Mee,TRADE:Nee,triangle:$ee,triangledown:Pee,triangleleft:Oee,trianglelefteq:Ree,triangleq:Dee,triangleright:zee,trianglerighteq:Iee,tridot:Fee,trie:Hee,triminus:qee,TripleDot:Bee,triplus:Wee,trisb:Uee,tritime:Vee,trpezium:jee,Tscr:Gee,tscr:Kee,TScy:Xee,tscy:Yee,TSHcy:Zee,tshcy:Jee,Tstrok:Qee,tstrok:ete,twixt:tte,twoheadleftarrow:nte,twoheadrightarrow:rte,Uacute:ite,uacute:ote,uarr:ste,Uarr:lte,uArr:ate,Uarrocir:cte,Ubrcy:ute,ubrcy:fte,Ubreve:dte,ubreve:hte,Ucirc:pte,ucirc:gte,Ucy:vte,ucy:mte,udarr:yte,Udblac:bte,udblac:wte,udhar:xte,ufisht:_te,Ufr:Ste,ufr:kte,Ugrave:Cte,ugrave:Tte,uHar:Ete,uharl:Lte,uharr:Ate,uhblk:Mte,ulcorn:Nte,ulcorner:$te,ulcrop:Pte,ultri:Ote,Umacr:Rte,umacr:Dte,uml:zte,UnderBar:Ite,UnderBrace:Fte,UnderBracket:Hte,UnderParenthesis:qte,Union:Bte,UnionPlus:Wte,Uogon:Ute,uogon:Vte,Uopf:jte,uopf:Gte,UpArrowBar:Kte,uparrow:Xte,UpArrow:Yte,Uparrow:Zte,UpArrowDownArrow:Jte,updownarrow:Qte,UpDownArrow:ene,Updownarrow:tne,UpEquilibrium:nne,upharpoonleft:rne,upharpoonright:ine,uplus:one,UpperLeftArrow:sne,UpperRightArrow:lne,upsi:ane,Upsi:cne,upsih:une,Upsilon:fne,upsilon:dne,UpTeeArrow:hne,UpTee:pne,upuparrows:gne,urcorn:vne,urcorner:mne,urcrop:yne,Uring:bne,uring:wne,urtri:xne,Uscr:_ne,uscr:Sne,utdot:kne,Utilde:Cne,utilde:Tne,utri:Ene,utrif:Lne,uuarr:Ane,Uuml:Mne,uuml:Nne,uwangle:$ne,vangrt:Pne,varepsilon:One,varkappa:Rne,varnothing:Dne,varphi:zne,varpi:Ine,varpropto:Fne,varr:Hne,vArr:qne,varrho:Bne,varsigma:Wne,varsubsetneq:Une,varsubsetneqq:Vne,varsupsetneq:jne,varsupsetneqq:Gne,vartheta:Kne,vartriangleleft:Xne,vartriangleright:Yne,vBar:Zne,Vbar:Jne,vBarv:Qne,Vcy:ere,vcy:tre,vdash:nre,vDash:rre,Vdash:ire,VDash:ore,Vdashl:sre,veebar:lre,vee:are,Vee:cre,veeeq:ure,vellip:fre,verbar:dre,Verbar:hre,vert:pre,Vert:gre,VerticalBar:vre,VerticalLine:mre,VerticalSeparator:yre,VerticalTilde:bre,VeryThinSpace:wre,Vfr:xre,vfr:_re,vltri:Sre,vnsub:kre,vnsup:Cre,Vopf:Tre,vopf:Ere,vprop:Lre,vrtri:Are,Vscr:Mre,vscr:Nre,vsubnE:$re,vsubne:Pre,vsupnE:Ore,vsupne:Rre,Vvdash:Dre,vzigzag:zre,Wcirc:Ire,wcirc:Fre,wedbar:Hre,wedge:qre,Wedge:Bre,wedgeq:Wre,weierp:Ure,Wfr:Vre,wfr:jre,Wopf:Gre,wopf:Kre,wp:Xre,wr:Yre,wreath:Zre,Wscr:Jre,wscr:Qre,xcap:eie,xcirc:tie,xcup:nie,xdtri:rie,Xfr:iie,xfr:oie,xharr:sie,xhArr:lie,Xi:aie,xi:cie,xlarr:uie,xlArr:fie,xmap:die,xnis:hie,xodot:pie,Xopf:gie,xopf:vie,xoplus:mie,xotime:yie,xrarr:bie,xrArr:wie,Xscr:xie,xscr:_ie,xsqcup:Sie,xuplus:kie,xutri:Cie,xvee:Tie,xwedge:Eie,Yacute:Lie,yacute:Aie,YAcy:Mie,yacy:Nie,Ycirc:$ie,ycirc:Pie,Ycy:Oie,ycy:Rie,yen:Die,Yfr:zie,yfr:Iie,YIcy:Fie,yicy:Hie,Yopf:qie,yopf:Bie,Yscr:Wie,yscr:Uie,YUcy:Vie,yucy:jie,yuml:Gie,Yuml:Kie,Zacute:Xie,zacute:Yie,Zcaron:Zie,zcaron:Jie,Zcy:Qie,zcy:eoe,Zdot:toe,zdot:noe,zeetrf:roe,ZeroWidthSpace:ioe,Zeta:ooe,zeta:soe,zfr:loe,Zfr:aoe,ZHcy:coe,zhcy:uoe,zigrarr:foe,zopf:doe,Zopf:hoe,Zscr:poe,zscr:goe,zwj:voe,zwnj:moe},yoe="Á",boe="á",woe="Â",xoe="â",_oe="´",Soe="Æ",koe="æ",Coe="À",Toe="à",Eoe="&",Loe="&",Aoe="Å",Moe="å",Noe="Ã",$oe="ã",Poe="Ä",Ooe="ä",Roe="¦",Doe="Ç",zoe="ç",Ioe="¸",Foe="¢",Hoe="©",qoe="©",Boe="¤",Woe="°",Uoe="÷",Voe="É",joe="é",Goe="Ê",Koe="ê",Xoe="È",Yoe="è",Zoe="Ð",Joe="ð",Qoe="Ë",ese="ë",tse="½",nse="¼",rse="¾",ise=">",ose=">",sse="Í",lse="í",ase="Î",cse="î",use="¡",fse="Ì",dse="ì",hse="¿",pse="Ï",gse="ï",vse="«",mse="<",yse="<",bse="¯",wse="µ",xse="·",_se=" ",Sse="¬",kse="Ñ",Cse="ñ",Tse="Ó",Ese="ó",Lse="Ô",Ase="ô",Mse="Ò",Nse="ò",$se="ª",Pse="º",Ose="Ø",Rse="ø",Dse="Õ",zse="õ",Ise="Ö",Fse="ö",Hse="¶",qse="±",Bse="£",Wse='"',Use='"',Vse="»",jse="®",Gse="®",Kse="§",Xse="­",Yse="¹",Zse="²",Jse="³",Qse="ß",ele="Þ",tle="þ",nle="×",rle="Ú",ile="ú",ole="Û",sle="û",lle="Ù",ale="ù",cle="¨",ule="Ü",fle="ü",dle="Ý",hle="ý",ple="¥",gle="ÿ",vle={Aacute:yoe,aacute:boe,Acirc:woe,acirc:xoe,acute:_oe,AElig:Soe,aelig:koe,Agrave:Coe,agrave:Toe,amp:Eoe,AMP:Loe,Aring:Aoe,aring:Moe,Atilde:Noe,atilde:$oe,Auml:Poe,auml:Ooe,brvbar:Roe,Ccedil:Doe,ccedil:zoe,cedil:Ioe,cent:Foe,copy:Hoe,COPY:qoe,curren:Boe,deg:Woe,divide:Uoe,Eacute:Voe,eacute:joe,Ecirc:Goe,ecirc:Koe,Egrave:Xoe,egrave:Yoe,ETH:Zoe,eth:Joe,Euml:Qoe,euml:ese,frac12:tse,frac14:nse,frac34:rse,gt:ise,GT:ose,Iacute:sse,iacute:lse,Icirc:ase,icirc:cse,iexcl:use,Igrave:fse,igrave:dse,iquest:hse,Iuml:pse,iuml:gse,laquo:vse,lt:mse,LT:yse,macr:bse,micro:wse,middot:xse,nbsp:_se,not:Sse,Ntilde:kse,ntilde:Cse,Oacute:Tse,oacute:Ese,Ocirc:Lse,ocirc:Ase,Ograve:Mse,ograve:Nse,ordf:$se,ordm:Pse,Oslash:Ose,oslash:Rse,Otilde:Dse,otilde:zse,Ouml:Ise,ouml:Fse,para:Hse,plusmn:qse,pound:Bse,quot:Wse,QUOT:Use,raquo:Vse,reg:jse,REG:Gse,sect:Kse,shy:Xse,sup1:Yse,sup2:Zse,sup3:Jse,szlig:Qse,THORN:ele,thorn:tle,times:nle,Uacute:rle,uacute:ile,Ucirc:ole,ucirc:sle,Ugrave:lle,ugrave:ale,uml:cle,Uuml:ule,uuml:fle,Yacute:dle,yacute:hle,yen:ple,yuml:gle},mle="&",yle="'",ble=">",wle="<",xle='"',jb={amp:mle,apos:yle,gt:ble,lt:wle,quot:xle};var qh={};const _le={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 Sle=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qh,"__esModule",{value:!0});var Dm=Sle(_le),kle=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Cle(e){return e>=55296&&e<=57343||e>1114111?"�":(e in Dm.default&&(e=Dm.default[e]),kle(e))}qh.default=Cle;var Ou=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ci,"__esModule",{value:!0});ci.decodeHTML=ci.decodeHTMLStrict=ci.decodeXML=void 0;var Dd=Ou(Vb),Tle=Ou(vle),Ele=Ou(jb),zm=Ou(qh),Lle=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;ci.decodeXML=Gb(Ele.default);ci.decodeHTMLStrict=Gb(Dd.default);function Gb(e){var t=Kb(e);return function(r){return String(r).replace(Lle,t)}}var Im=function(e,t){return e<t?1:-1};ci.decodeHTML=function(){for(var e=Object.keys(Tle.default).sort(Im),t=Object.keys(Dd.default).sort(Im),r=0,o=0;r<t.length;r++)e[o]===t[r]?(t[r]+=";?",o++):t[r]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=Kb(Dd.default);function f(d){return d.substr(-1)!==";"&&(d+=";"),c(d)}return function(d){return String(d).replace(s,f)}}();function Kb(e){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?zm.default(parseInt(r.substr(3),16)):zm.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}var Gn={},Xb=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.escapeUTF8=Gn.escape=Gn.encodeNonAsciiHTML=Gn.encodeHTML=Gn.encodeXML=void 0;var Ale=Xb(jb),Yb=Jb(Ale.default),Zb=Qb(Yb);Gn.encodeXML=nw(Yb);var Mle=Xb(Vb),Bh=Jb(Mle.default),Nle=Qb(Bh);Gn.encodeHTML=Ple(Bh,Nle);Gn.encodeNonAsciiHTML=nw(Bh);function Jb(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function Qb(e){for(var t=[],r=[],o=0,s=Object.keys(e);o<s.length;o++){var c=s[o];c.length===1?t.push("\\"+c):r.push(c)}t.sort();for(var f=0;f<t.length-1;f++){for(var d=f;d<t.length-1&&t[d].charCodeAt(1)+1===t[d+1].charCodeAt(1);)d+=1;var h=1+d-f;h<3||t.splice(f,h,t[f]+"-"+t[d])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var ew=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,$le=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Ru(e){return"&#x"+(e.length>1?$le(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function Ple(e,t){return function(r){return r.replace(t,function(o){return e[o]}).replace(ew,Ru)}}var tw=new RegExp(Zb.source+"|"+ew.source,"g");function Ole(e){return e.replace(tw,Ru)}Gn.escape=Ole;function Rle(e){return e.replace(Zb,Ru)}Gn.escapeUTF8=Rle;function nw(e){return function(t){return t.replace(tw,function(r){return e[r]||Ru(r)})}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=ci,r=Gn;function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=Gn;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=ci;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(Ub);function Dle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zle(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ile(e,t,r){return t&&zle(e.prototype,t),e}function rw(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Fle(e))||t){r&&(e=r);var o=0,s=function(){};return{s,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,f=!1,d;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return c=p.done,p},e:function(p){f=!0,d=p},f:function(){try{!c&&r.return!=null&&r.return()}finally{if(f)throw d}}}}function Fle(e,t){if(e){if(typeof e=="string")return Fm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fm(e,t)}}function Fm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var Hle=Ub,Hm={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:qle()};function qle(){var e={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 cc(0,5).forEach(function(t){cc(0,5).forEach(function(r){cc(0,5).forEach(function(o){return Ble(t,r,o,e)})})}),cc(0,23).forEach(function(t){var r=t+232,o=iw(t*10+8);e[r]="#"+o+o+o}),e}function Ble(e,t,r,o){var s=16+e*36+t*6+r,c=e>0?e*40+55:0,f=t>0?t*40+55:0,d=r>0?r*40+55:0;o[s]=Wle([c,f,d])}function iw(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function Wle(e){var t=[],r=rw(e),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;t.push(iw(s))}}catch(c){r.e(c)}finally{r.f()}return"#"+t.join("")}function qm(e,t,r,o){var s;return t==="text"?s=Gle(r,o):t==="display"?s=Vle(e,r,o):t==="xterm256Foreground"?s=Ac(e,o.colors[r]):t==="xterm256Background"?s=Mc(e,o.colors[r]):t==="rgb"&&(s=Ule(e,r)),s}function Ule(e,t){t=t.substring(2).slice(0,-1);var r=+t.substr(0,2),o=t.substring(5).split(";"),s=o.map(function(c){return("0"+Number(c).toString(16)).substr(-2)}).join("");return Lc(e,(r===38?"color:#":"background-color:#")+s)}function Vle(e,t,r){t=parseInt(t,10);var o={"-1":function(){return"<br/>"},0:function(){return e.length&&ow(e)},1:function(){return Wi(e,"b")},3:function(){return Wi(e,"i")},4:function(){return Wi(e,"u")},8:function(){return Lc(e,"display:none")},9:function(){return Wi(e,"strike")},22:function(){return Lc(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Wm(e,"i")},24:function(){return Wm(e,"u")},39:function(){return Ac(e,r.fg)},49:function(){return Mc(e,r.bg)},53:function(){return Lc(e,"text-decoration:overline")}},s;return o[t]?s=o[t]():4<t&&t<7?s=Wi(e,"blink"):29<t&&t<38?s=Ac(e,r.colors[t-30]):39<t&&t<48?s=Mc(e,r.colors[t-40]):89<t&&t<98?s=Ac(e,r.colors[8+(t-90)]):99<t&&t<108&&(s=Mc(e,r.colors[8+(t-100)])),s}function ow(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(r){return"</"+r+">"}).join("")}function cc(e,t){for(var r=[],o=e;o<=t;o++)r.push(o);return r}function jle(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function Bm(e){e=parseInt(e,10);var t=null;return e===0?t="all":e===1?t="bold":2<e&&e<5?t="underline":4<e&&e<7?t="blink":e===8?t="hide":e===9?t="strike":29<e&&e<38||e===39||89<e&&e<98?t="foreground-color":(39<e&&e<48||e===49||99<e&&e<108)&&(t="background-color"),t}function Gle(e,t){return t.escapeXML?Hle.encodeXML(e):e}function Wi(e,t,r){return r||(r=""),e.push(t),"<".concat(t).concat(r?' style="'.concat(r,'"'):"",">")}function Lc(e,t){return Wi(e,"span",t)}function Ac(e,t){return Wi(e,"span","color:"+t)}function Mc(e,t){return Wi(e,"span","background-color:"+t)}function Wm(e,t){var r;if(e.slice(-1)[0]===t&&(r=e.pop()),r)return"</"+t+">"}function Kle(e,t,r){var o=!1,s=3;function c(){return""}function f(q,W){return r("xterm256Foreground",W),""}function d(q,W){return r("xterm256Background",W),""}function h(q){return t.newline?r("display",-1):r("text",q),""}function p(q,W){o=!0,W.trim().length===0&&(W="0"),W=W.trimRight(";").split(";");var X=rw(W),ie;try{for(X.s();!(ie=X.n()).done;){var ee=ie.value;r("display",ee)}}catch(j){X.e(j)}finally{X.f()}return""}function v(q){return r("text",q),""}function y(q){return r("rgb",q),""}var b=[{pattern:/^\x08+/,sub:c},{pattern:/^\x1b\[[012]?K/,sub:c},{pattern:/^\x1b\[\(B/,sub:c},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:y},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:d},{pattern:/^\n/,sub:h},{pattern:/^\r+\n/,sub:h},{pattern:/^\r/,sub:h},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:p},{pattern:/^\x1b\[\d?J/,sub:c},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:c},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:c},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function x(q,W){W>s&&o||(o=!1,e=e.replace(q.pattern,q.sub))}var E=[],C=e,L=C.length;e:for(;L>0;){for(var N=0,A=0,P=b.length;A<P;N=++A){var M=b[N];if(x(M,N),e.length!==L){L=e.length;continue e}}if(e.length===L)break;E.push(0),L=e.length}return E}function Xle(e,t,r){return t!=="text"&&(e=e.filter(jle(Bm(r))),e.push({token:t,data:r,category:Bm(r)})),e}var Yle=function(){function e(t){Dle(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},Hm.colors,t.colors)),this.options=Object.assign({},Hm,t),this.stack=[],this.stickyStack=[]}return Ile(e,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var s=this.stack,c=this.options,f=[];return this.stickyStack.forEach(function(d){var h=qm(s,d.token,d.data,c);h&&f.push(h)}),Kle(r.join(""),c,function(d,h){var p=qm(s,d,h,c);p&&f.push(p),c.stream&&(o.stickyStack=Xle(o.stickyStack,d,h))}),s.length&&f.push(ow(s)),f.join("")}}]),e}(),Zle=Yle;const Jle=Wb(Zle),Qle=/^[A-Za-z]:\//;function eae(e=""){return e&&e.replace(/\\/g,"/").replace(Qle,t=>t.toUpperCase())}const tae=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function nae(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const rae=function(...e){e=e.map(o=>eae(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:nae();!s||s.length===0||(t=`${s}/${t}`,r=Um(s))}return t=iae(t,!r),r&&!Um(t)?`/${t}`:t.length>0?t:"."};function iae(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Um=function(e){return tae.test(e)},oae=44,Vm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sae=new Uint8Array(64),sw=new Uint8Array(128);for(let e=0;e<Vm.length;e++){const t=Vm.charCodeAt(e);sae[e]=t,sw[t]=e}function _l(e,t){let r=0,o=0,s=0;do{const f=e.next();s=sw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function jm(e,t){return e.pos>=t?!1:e.peek()!==oae}class lae{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:r,pos:o}=this,s=r.indexOf(t,o);return s===-1?r.length:s}}function aae(e){const{length:t}=e,r=new lae(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let y=!0,b=0;for(s=0;r.pos<p;){let x;s=_l(r,s),s<b&&(y=!1),b=s,jm(r,p)?(c=_l(r,c),f=_l(r,f),d=_l(r,d),jm(r,p)?(h=_l(r,h),x=[s,c,f,d,h]):x=[s,c,f,d]):x=[s],v.push(x),r.pos++}y||cae(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function cae(e){e.sort(uae)}function uae(e,t){return e[0]-t[0]}const fae=/^[\w+.-]+:\/\//,dae=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,hae=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var zt;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(zt||(zt={}));function pae(e){return fae.test(e)}function gae(e){return e.startsWith("//")}function lw(e){return e.startsWith("/")}function vae(e){return e.startsWith("file:")}function Gm(e){return/^[.?#]/.test(e)}function uc(e){const t=dae.exec(e);return aw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function mae(e){const t=hae.exec(e),r=t[2];return aw("file:","",t[1]||"","",lw(r)?r:"/"+r,t[3]||"",t[4]||"")}function aw(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:zt.Absolute}}function Km(e){if(gae(e)){const r=uc("http:"+e);return r.scheme="",r.type=zt.SchemeRelative,r}if(lw(e)){const r=uc("http://foo.com"+e);return r.scheme="",r.host="",r.type=zt.AbsolutePath,r}if(vae(e))return mae(e);if(pae(e))return uc(e);const t=uc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?zt.Query:e.startsWith("#")?zt.Hash:zt.RelativePath:zt.Empty,t}function yae(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function bae(e,t){cw(t,t.type),e.path==="/"?e.path=t.path:e.path=yae(t.path)+e.path}function cw(e,t){const r=t<=zt.RelativePath,o=e.path.split("/");let s=1,c=0,f=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){f=!0;continue}if(f=!1,p!=="."){if(p===".."){c?(f=!0,c--,s--):r&&(o[s++]=p);continue}o[s++]=p,c++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||f&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function wae(e,t){if(!e&&!t)return"";const r=Km(e);let o=r.type;if(t&&o!==zt.Absolute){const c=Km(t),f=c.type;switch(o){case zt.Empty:r.hash=c.hash;case zt.Hash:r.query=c.query;case zt.Query:case zt.RelativePath:bae(r,c);case zt.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case zt.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}cw(r,o);const s=r.query+r.hash;switch(o){case zt.Hash:case zt.Query:return s;case zt.RelativePath:{const c=r.path.slice(1);return c?Gm(t||e)&&!Gm(c)?"./"+c+s:c+s:s||"."}case zt.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Xm(e,t){return t&&!t.endsWith("/")&&(t+="/"),wae(e,t)}function xae(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const Qi=0,_ae=1,Sae=2,kae=3,Cae=4;function Tae(e,t){const r=Ym(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Ym(e,o+1))e[o]=Lae(e[o],t);return e}function Ym(e,t){for(let r=t;r<e.length;r++)if(!Eae(e[r]))return r;return e.length}function Eae(e){for(let t=1;t<e.length;t++)if(e[t][Qi]<e[t-1][Qi])return!1;return!0}function Lae(e,t){return t||(e=e.slice()),e.sort(Aae)}function Aae(e,t){return e[Qi]-t[Qi]}let Qc=!1;function Mae(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Qi]-t;if(c===0)return Qc=!0,s;c<0?r=s+1:o=s-1}return Qc=!1,r-1}function Nae(e,t,r){for(let o=r+1;o<e.length&&e[o][Qi]===t;r=o++);return r}function $ae(e,t,r){for(let o=r-1;o>=0&&e[o][Qi]===t;r=o--);return r}function Pae(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Oae(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return Qc=f!==-1&&e[f][Qi]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=Mae(e,t,d,h)}const Rae="`line` must be greater than 0 (lines start at line 1)",Dae="`column` must be greater than or equal to 0 (columns start at column 0)",Zm=-1,zae=1;class Iae{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const s=o?JSON.parse(t):t,{version:c,file:f,names:d,sourceRoot:h,sources:p,sourcesContent:v}=s;this.version=c,this.file=f,this.names=d||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const y=Xm(h||"",xae(r));this.resolvedSources=p.map(x=>Xm(x||"",y));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=Tae(b,o)),this._decodedMemo=Pae(),this._bySources=void 0,this._bySourceMemos=void 0}}function Fae(e){var t;return(t=e)._decoded||(t._decoded=aae(e._encoded))}function Hae(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(Rae);if(o<0)throw new Error(Dae);const c=Fae(e);if(r>=c.length)return fc(null,null,null,null);const f=c[r],d=qae(f,e._decodedMemo,r,o,s||zae);if(d===-1)return fc(null,null,null,null);const h=f[d];if(h.length===1)return fc(null,null,null,null);const{names:p,resolvedSources:v}=e;return fc(v[h[_ae]],h[Sae]+1,h[kae],h.length===5?p[h[Cae]]:null)}function fc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function qae(e,t,r,o,s){let c=Oae(e,o,t,r);return Qc?c=(s===Zm?Nae:$ae)(e,o,c):s===Zm&&c++,c===-1||c===e.length?-1:c}const uw=/^\s*at .*(?:\S:\d+|\(native\))/m,Bae=/^(?:eval@)?(?:\[native code\])?$/,Wae=["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/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function fw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),(o.startsWith("http:")||o.startsWith("https:"))&&(o=new URL(o).pathname),o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function Uae(e){let t=e.trim();if(Bae.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=fw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function Vae(e){let t=e.trim();if(!uw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=fw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=rae(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function jae(e,t={}){const{ignoreStackEntries:r=Wae}=t;let o=uw.test(e)?Kae(e):Gae(e);return r.length&&(o=o.filter(s=>!r.some(c=>s.file.match(c)))),o.map(s=>{var c;t.getFileName&&(s.file=t.getFileName(s.file));const f=(c=t.getSourceMap)==null?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return s;const d=new Iae(f),{line:h,column:p}=Hae(d,s);return h!=null&&p!=null?{...s,line:h,column:p}:s})}function Gae(e){return e.split(`
21
+ */const ds=typeof document<"u";function TC(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const wt=Object.assign;function Yf(e,t){const r={};for(const o in t){const s=t[o];r[o]=kr(s)?s.map(e):e(s)}return r}const Ol=()=>{},kr=Array.isArray,Ky=/#/g,EC=/&/g,LC=/\//g,AC=/=/g,MC=/\?/g,Xy=/\+/g,NC=/%5B/g,$C=/%5D/g,Yy=/%5E/g,PC=/%60/g,Zy=/%7B/g,OC=/%7C/g,Jy=/%7D/g,RC=/%20/g;function Nh(e){return encodeURI(""+e).replace(OC,"|").replace(NC,"[").replace($C,"]")}function DC(e){return Nh(e).replace(Zy,"{").replace(Jy,"}").replace(Yy,"^")}function Ed(e){return Nh(e).replace(Xy,"%2B").replace(RC,"+").replace(Ky,"%23").replace(EC,"%26").replace(PC,"`").replace(Zy,"{").replace(Jy,"}").replace(Yy,"^")}function zC(e){return Ed(e).replace(AC,"%3D")}function IC(e){return Nh(e).replace(Ky,"%23").replace(MC,"%3F")}function FC(e){return e==null?"":IC(e).replace(LC,"%2F")}function Kl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const HC=/\/$/,qC=e=>e.replace(HC,"");function Zf(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=VC(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:Kl(f)}}function BC(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Kv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function WC(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&As(t.matched[o],r.matched[s])&&Qy(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function As(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qy(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!UC(e[r],t[r]))return!1;return!0}function UC(e,t){return kr(e)?Xv(e,t):kr(t)?Xv(t,e):e===t}function Xv(e,t){return kr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function VC(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const $i={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Xl;(function(e){e.pop="pop",e.push="push"})(Xl||(Xl={}));var Rl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Rl||(Rl={}));function jC(e){if(!e)if(ds){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),qC(e)}const GC=/^[^#]+#/;function KC(e,t){return e.replace(GC,"#")+t}function XC(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const Lu=()=>({left:window.scrollX,top:window.scrollY});function YC(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=XC(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Yv(e,t){return(history.state?history.state.position-t:-1)+e}const Ld=new Map;function ZC(e,t){Ld.set(e,t)}function JC(e){const t=Ld.get(e);return Ld.delete(e),t}let QC=()=>location.protocol+"//"+location.host;function eb(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),Kv(h,"")}return Kv(r,e)+o+s}function eT(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=eb(e,location),A=r.value,T=t.value;let E=0;if(b){if(r.value=x,t.value=b,f&&f===A){f=null;return}E=T?b.position-T.position:0}else o(x);s.forEach(L=>{L(r.value,A,{delta:E,type:Xl.pop,direction:E?E>0?Rl.forward:Rl.back:Rl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const A=s.indexOf(b);A>-1&&s.splice(A,1)};return c.push(x),x}function v(){const{history:b}=window;b.state&&b.replaceState(wt({},b.state,{scroll:Lu()}),"")}function y(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:y}}function Zv(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Lu():null}}function tT(e){const{history:t,location:r}=window,o={value:eb(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const y=e.indexOf("#"),b=y>-1?(r.host&&document.querySelector("base")?e:e.slice(y))+h:QC()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(x){console.error(x),r[v?"replace":"assign"](b)}}function f(h,p){const v=wt({},t.state,Zv(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=wt({},s.value,t.state,{forward:h,scroll:Lu()});c(v.current,v,!0);const y=wt({},Zv(o.value,h,null),{position:v.position+1},p);c(h,y,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function nT(e){e=jC(e);const t=tT(e),r=eT(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=wt({location:"",base:e,go:o,createHref:KC.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function rT(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nT(e)}function iT(e){return typeof e=="string"||e&&typeof e=="object"}function tb(e){return typeof e=="string"||typeof e=="symbol"}const nb=Symbol("");var Jv;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Jv||(Jv={}));function Ms(e,t){return wt(new Error,{type:e,[nb]:!0},t)}function ti(e,t){return e instanceof Error&&nb in e&&(t==null||!!(e.type&t))}const Qv="[^/]+?",oT={sensitive:!1,strict:!1,start:!0,end:!0},sT=/[.+*?^${}()[\]/\\]/g;function lT(e,t){const r=wt({},oT,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let y=0;y<p.length;y++){const b=p[y];let x=40+(r.sensitive?.25:0);if(b.type===0)y||(s+="/"),s+=b.value.replace(sT,"\\$&"),x+=40;else if(b.type===1){const{value:A,repeatable:T,optional:E,regexp:L}=b;c.push({name:A,repeatable:T,optional:E});const M=L||Qv;if(M!==Qv){x+=10;try{new RegExp(`(${M})`)}catch(N){throw new Error(`Invalid custom RegExp for param "${A}" (${M}): `+N.message)}}let P=T?`((?:${M})(?:/(?:${M}))*)`:`(${M})`;y||(P=E&&p.length<2?`(?:/${P})`:"/"+P),E&&(P+="?"),s+=P,x+=20,E&&(x+=-8),T&&(x+=-20),M===".*"&&(x+=-50)}v.push(x)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),y={};if(!v)return null;for(let b=1;b<v.length;b++){const x=v[b]||"",A=c[b-1];y[A.name]=x&&A.repeatable?x.split("/"):x}return y}function h(p){let v="",y=!1;for(const b of e){(!y||!v.endsWith("/"))&&(v+="/"),y=!1;for(const x of b)if(x.type===0)v+=x.value;else if(x.type===1){const{value:A,repeatable:T,optional:E}=x,L=A in p?p[A]:"";if(kr(L)&&!T)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const M=kr(L)?L.join("/"):L;if(!M)if(E)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):y=!0);else throw new Error(`Missing required param "${A}"`);v+=M}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function aT(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function rb(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=aT(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(em(o))return 1;if(em(s))return-1}return s.length-o.length}function em(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const cT={type:0,value:""},uT=/[a-zA-Z0-9_]/;function fT(e){if(!e)return[[]];if(e==="/")return[[cT]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function y(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&y(),f()):h===":"?(y(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:uT.test(h)?b():(y(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:y(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),y(),f(),s}function dT(e,t,r){const o=lT(fT(e.path),r),s=wt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function hT(e,t){const r=[],o=new Map;t=rm({strict:!1,end:!0,sensitive:!1},t);function s(y){return o.get(y)}function c(y,b,x){const A=!x,T=pT(y);T.aliasOf=x&&x.record;const E=rm(t,y),L=[T];if("alias"in y){const N=typeof y.alias=="string"?[y.alias]:y.alias;for(const q of N)L.push(wt({},T,{components:x?x.record.components:T.components,path:q,aliasOf:x?x.record:T}))}let M,P;for(const N of L){const{path:q}=N;if(b&&q[0]!=="/"){const W=b.record.path,X=W[W.length-1]==="/"?"":"/";N.path=b.record.path+(q&&X+q)}if(M=dT(N,b,E),x?x.alias.push(M):(P=P||M,P!==M&&P.alias.push(M),A&&y.name&&!nm(M)&&f(y.name)),ib(M)&&h(M),T.children){const W=T.children;for(let X=0;X<W.length;X++)c(W[X],M,x&&x.children[X])}x=x||M}return P?()=>{f(P)}:Ol}function f(y){if(tb(y)){const b=o.get(y);b&&(o.delete(y),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(y);b>-1&&(r.splice(b,1),y.record.name&&o.delete(y.record.name),y.children.forEach(f),y.alias.forEach(f))}}function d(){return r}function h(y){const b=mT(y,r);r.splice(b,0,y),y.record.name&&!nm(y)&&o.set(y.record.name,y)}function p(y,b){let x,A={},T,E;if("name"in y&&y.name){if(x=o.get(y.name),!x)throw Ms(1,{location:y});E=x.record.name,A=wt(tm(b.params,x.keys.filter(P=>!P.optional).concat(x.parent?x.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),y.params&&tm(y.params,x.keys.map(P=>P.name))),T=x.stringify(A)}else if(y.path!=null)T=y.path,x=r.find(P=>P.re.test(T)),x&&(A=x.parse(T),E=x.record.name);else{if(x=b.name?o.get(b.name):r.find(P=>P.re.test(b.path)),!x)throw Ms(1,{location:y,currentLocation:b});E=x.record.name,A=wt({},b.params,y.params),T=x.stringify(A)}const L=[];let M=x;for(;M;)L.unshift(M.record),M=M.parent;return{name:E,path:T,params:A,matched:L,meta:vT(L)}}e.forEach(y=>c(y));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function tm(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function pT(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:gT(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function gT(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function nm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function vT(e){return e.reduce((t,r)=>wt(t,r.meta),{})}function rm(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function mT(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;rb(e,t[c])<0?o=c:r=c+1}const s=yT(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function yT(e){let t=e;for(;t=t.parent;)if(ib(t)&&rb(e,t)===0)return t}function ib({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bT(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(Xy," "),f=c.indexOf("="),d=Kl(f<0?c:c.slice(0,f)),h=f<0?null:Kl(c.slice(f+1));if(d in t){let p=t[d];kr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function im(e){let t="";for(let r in e){const o=e[r];if(r=zC(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(kr(o)?o.map(c=>c&&Ed(c)):[o&&Ed(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function wT(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=kr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const xT=Symbol(""),om=Symbol(""),$h=Symbol(""),ob=Symbol(""),Ad=Symbol("");function xl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Fi(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(Ms(4,{from:r,to:t})):b instanceof Error?h(b):iT(b)?h(Ms(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let y=Promise.resolve(v);e.length<3&&(y=y.then(p)),y.catch(b=>h(b))})}function Jf(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(_T(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Fi(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${f.path}"`));const y=TC(v)?v.default:v;f.components[d]=y;const x=(y.__vccOpts||y)[t];return x&&Fi(x,r,o,f,d,s)()}))}}return c}function _T(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function sm(e){const t=li($h),r=li(ob),o=Ce(()=>{const h=z(e.to);return t.resolve(h)}),s=Ce(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],y=r.matched;if(!v||!y.length)return-1;const b=y.findIndex(As.bind(null,v));if(b>-1)return b;const x=lm(h[p-2]);return p>1&&lm(v)===x&&y[y.length-1].path!==x?y.findIndex(As.bind(null,h[p-2])):b}),c=Ce(()=>s.value>-1&&TT(r.params,o.value.params)),f=Ce(()=>s.value>-1&&s.value===r.matched.length-1&&Qy(r.params,o.value.params));function d(h={}){return CT(h)?t[z(e.replace)?"replace":"push"](z(e.to)).catch(Ol):Promise.resolve()}return{route:o,href:Ce(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}const ST=ft({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:sm,setup(e,{slots:t}){const r=Xn(sm(e)),{options:o}=li($h),s=Ce(()=>({[am(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[am(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&t.default(r);return e.custom?c:pa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),kT=ST;function CT(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function TT(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!kr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function lm(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const am=(e,t,r)=>e??t??r,ET=ft({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=li(Ad),s=Ce(()=>e.route||o.value),c=li(om,0),f=Ce(()=>{let p=z(c);const{matched:v}=s.value;let y;for(;(y=v[p])&&!y.components;)p++;return p}),d=Ce(()=>s.value.matched[f.value]);Sc(om,Ce(()=>f.value+1)),Sc(xT,d),Sc(Ad,s);const h=Be();return It(()=>[h.value,d.value,e.name],([p,v,y],[b,x,A])=>{v&&(v.instances[y]=p,x&&x!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=x.leaveGuards),v.updateGuards.size||(v.updateGuards=x.updateGuards))),p&&v&&(!x||!As(v,x)||!b)&&(v.enterCallbacks[y]||[]).forEach(T=>T(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,y=d.value,b=y&&y.components[v];if(!b)return cm(r.default,{Component:b,route:p});const x=y.props[v],A=x?x===!0?p.params:typeof x=="function"?x(p):x:null,E=pa(b,wt({},A,t,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(y.instances[v]=null)},ref:h}));return cm(r.default,{Component:E,route:p})||E}}});function cm(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const LT=ET;function AT(e){const t=hT(e.routes,e),r=e.parseQuery||bT,o=e.stringifyQuery||im,s=e.history,c=xl(),f=xl(),d=xl(),h=Wr($i);let p=$i;ds&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Yf.bind(null,K=>""+K),y=Yf.bind(null,FC),b=Yf.bind(null,Kl);function x(K,ae){let de,$e;return tb(K)?(de=t.getRecordMatcher(K),$e=ae):$e=K,t.addRoute($e,de)}function A(K){const ae=t.getRecordMatcher(K);ae&&t.removeRoute(ae)}function T(){return t.getRoutes().map(K=>K.record)}function E(K){return!!t.getRecordMatcher(K)}function L(K,ae){if(ae=wt({},ae||h.value),typeof K=="string"){const F=Zf(r,K,ae.path),J=t.resolve({path:F.path},ae),ue=s.createHref(F.fullPath);return wt(F,J,{params:b(J.params),hash:Kl(F.hash),redirectedFrom:void 0,href:ue})}let de;if(K.path!=null)de=wt({},K,{path:Zf(r,K.path,ae.path).path});else{const F=wt({},K.params);for(const J in F)F[J]==null&&delete F[J];de=wt({},K,{params:y(F)}),ae.params=y(ae.params)}const $e=t.resolve(de,ae),Ee=K.hash||"";$e.params=v(b($e.params));const Ze=BC(o,wt({},K,{hash:DC(Ee),path:$e.path})),O=s.createHref(Ze);return wt({fullPath:Ze,hash:Ee,query:o===im?wT(K.query):K.query||{}},$e,{redirectedFrom:void 0,href:O})}function M(K){return typeof K=="string"?Zf(r,K,h.value.path):wt({},K)}function P(K,ae){if(p!==K)return Ms(8,{from:ae,to:K})}function N(K){return X(K)}function q(K){return N(wt(M(K),{replace:!0}))}function W(K){const ae=K.matched[K.matched.length-1];if(ae&&ae.redirect){const{redirect:de}=ae;let $e=typeof de=="function"?de(K):de;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=M($e):{path:$e},$e.params={}),wt({query:K.query,hash:K.hash,params:$e.path!=null?{}:K.params},$e)}}function X(K,ae){const de=p=L(K),$e=h.value,Ee=K.state,Ze=K.force,O=K.replace===!0,F=W(de);if(F)return X(wt(M(F),{state:typeof F=="object"?wt({},Ee,F.state):Ee,force:Ze,replace:O}),ae||de);const J=de;J.redirectedFrom=ae;let ue;return!Ze&&WC(o,$e,de)&&(ue=Ms(16,{to:J,from:$e}),We($e,$e,!0,!1)),(ue?Promise.resolve(ue):j(J,$e)).catch(le=>ti(le)?ti(le,2)?le:Ne(le):re(le,J,$e)).then(le=>{if(le){if(ti(le,2))return X(wt({replace:O},M(le.to),{state:typeof le.to=="object"?wt({},Ee,le.to.state):Ee,force:Ze}),ae||J)}else le=Z(J,$e,!0,O,Ee);return te(J,$e,le),le})}function ie(K,ae){const de=P(K,ae);return de?Promise.reject(de):Promise.resolve()}function ee(K){const ae=rt.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(K):K()}function j(K,ae){let de;const[$e,Ee,Ze]=MT(K,ae);de=Jf($e.reverse(),"beforeRouteLeave",K,ae);for(const F of $e)F.leaveGuards.forEach(J=>{de.push(Fi(J,K,ae))});const O=ie.bind(null,K,ae);return de.push(O),Le(de).then(()=>{de=[];for(const F of c.list())de.push(Fi(F,K,ae));return de.push(O),Le(de)}).then(()=>{de=Jf(Ee,"beforeRouteUpdate",K,ae);for(const F of Ee)F.updateGuards.forEach(J=>{de.push(Fi(J,K,ae))});return de.push(O),Le(de)}).then(()=>{de=[];for(const F of Ze)if(F.beforeEnter)if(kr(F.beforeEnter))for(const J of F.beforeEnter)de.push(Fi(J,K,ae));else de.push(Fi(F.beforeEnter,K,ae));return de.push(O),Le(de)}).then(()=>(K.matched.forEach(F=>F.enterCallbacks={}),de=Jf(Ze,"beforeRouteEnter",K,ae,ee),de.push(O),Le(de))).then(()=>{de=[];for(const F of f.list())de.push(Fi(F,K,ae));return de.push(O),Le(de)}).catch(F=>ti(F,8)?F:Promise.reject(F))}function te(K,ae,de){d.list().forEach($e=>ee(()=>$e(K,ae,de)))}function Z(K,ae,de,$e,Ee){const Ze=P(K,ae);if(Ze)return Ze;const O=ae===$i,F=ds?history.state:{};de&&($e||O?s.replace(K.fullPath,wt({scroll:O&&F&&F.scroll},Ee)):s.push(K.fullPath,Ee)),h.value=K,We(K,ae,de,O),Ne()}let H;function I(){H||(H=s.listen((K,ae,de)=>{if(!Je.listening)return;const $e=L(K),Ee=W($e);if(Ee){X(wt(Ee,{replace:!0}),$e).catch(Ol);return}p=$e;const Ze=h.value;ds&&ZC(Yv(Ze.fullPath,de.delta),Lu()),j($e,Ze).catch(O=>ti(O,12)?O:ti(O,2)?(X(O.to,$e).then(F=>{ti(F,20)&&!de.delta&&de.type===Xl.pop&&s.go(-1,!1)}).catch(Ol),Promise.reject()):(de.delta&&s.go(-de.delta,!1),re(O,$e,Ze))).then(O=>{O=O||Z($e,Ze,!1),O&&(de.delta&&!ti(O,8)?s.go(-de.delta,!1):de.type===Xl.pop&&ti(O,20)&&s.go(-1,!1)),te($e,Ze,O)}).catch(Ol)}))}let k=xl(),B=xl(),U;function re(K,ae,de){Ne(K);const $e=B.list();return $e.length?$e.forEach(Ee=>Ee(K,ae,de)):console.error(K),Promise.reject(K)}function ye(){return U&&h.value!==$i?Promise.resolve():new Promise((K,ae)=>{k.add([K,ae])})}function Ne(K){return U||(U=!K,I(),k.list().forEach(([ae,de])=>K?de(K):ae()),k.reset()),K}function We(K,ae,de,$e){const{scrollBehavior:Ee}=e;if(!ds||!Ee)return Promise.resolve();const Ze=!de&&JC(Yv(K.fullPath,0))||($e||!de)&&history.state&&history.state.scroll||null;return ln().then(()=>Ee(K,ae,Ze)).then(O=>O&&YC(O)).catch(O=>re(O,K,ae))}const je=K=>s.go(K);let it;const rt=new Set,Je={currentRoute:h,listening:!0,addRoute:x,removeRoute:A,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:T,resolve:L,options:e,push:N,replace:q,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:B.add,isReady:ye,install(K){const ae=this;K.component("RouterLink",kT),K.component("RouterView",LT),K.config.globalProperties.$router=ae,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>z(h)}),ds&&!it&&h.value===$i&&(it=!0,N(s.location).catch(Ee=>{}));const de={};for(const Ee in $i)Object.defineProperty(de,Ee,{get:()=>h.value[Ee],enumerable:!0});K.provide($h,ae),K.provide(ob,gh(de)),K.provide(Ad,h);const $e=K.unmount;rt.add(K),K.unmount=function(){rt.delete(K),rt.size<1&&(p=$i,H&&H(),H=null,h.value=$i,it=!1,U=!1),$e()}}};function Le(K){return K.reduce((ae,de)=>ae.then(()=>ee(de)),Promise.resolve())}return Je}function MT(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>As(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>As(p,h))||s.push(h))}return[r,o,s]}const NT=["top","right","bottom","left"],um=["start","end"],fm=NT.reduce((e,t)=>e.concat(t,t+"-"+um[0],t+"-"+um[1]),[]),Yl=Math.min,So=Math.max,$T={left:"right",right:"left",bottom:"top",top:"bottom"},PT={start:"end",end:"start"};function Md(e,t,r){return So(e,Yl(t,r))}function zo(e,t){return typeof e=="function"?e(t):e}function qr(e){return e.split("-")[0]}function _r(e){return e.split("-")[1]}function sb(e){return e==="x"?"y":"x"}function Ph(e){return e==="y"?"height":"width"}function ga(e){return["top","bottom"].includes(qr(e))?"y":"x"}function Oh(e){return sb(ga(e))}function lb(e,t,r){r===void 0&&(r=!1);const o=_r(e),s=Oh(e),c=Ph(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Kc(f)),[f,Kc(f)]}function OT(e){const t=Kc(e);return[Gc(e),t,Gc(t)]}function Gc(e){return e.replace(/start|end/g,t=>PT[t])}function RT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function DT(e,t,r,o){const s=_r(e);let c=RT(qr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Gc)))),c}function Kc(e){return e.replace(/left|right|bottom|top/g,t=>$T[t])}function zT(e){return{top:0,right:0,bottom:0,left:0,...e}}function ab(e){return typeof e!="number"?zT(e):{top:e,right:e,bottom:e,left:e}}function Dl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function dm(e,t,r){let{reference:o,floating:s}=e;const c=ga(t),f=Oh(t),d=Ph(f),h=qr(t),p=c==="y",v=o.x+o.width/2-s.width/2,y=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y};break;case"left":x={x:o.x-s.width,y};break;default:x={x:o.x,y:o.y}}switch(_r(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const IT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y}=dm(p,o,h),b=o,x={},A=0;for(let T=0;T<d.length;T++){const{name:E,fn:L}=d[T],{x:M,y:P,data:N,reset:q}=await L({x:v,y,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=M??v,y=P??y,x={...x,[E]:{...x[E],...N}},q&&A<=50&&(A++,typeof q=="object"&&(q.placement&&(b=q.placement),q.rects&&(p=q.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):q.rects),{x:v,y}=dm(p,b,h)),T=-1)}return{x:v,y,placement:b,strategy:s,middlewareData:x}};async function Au(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:b=!1,padding:x=0}=zo(t,e),A=ab(x),E=d[b?y==="floating"?"reference":"floating":y],L=Dl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(E)))==null||r?E:E.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),M=y==="floating"?{...f.floating,x:o,y:s}:f.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),N=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},q=Dl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:M,offsetParent:P,strategy:h}):M);return{top:(L.top-q.top+A.top)/N.y,bottom:(q.bottom-L.bottom+A.bottom)/N.y,left:(L.left-q.left+A.left)/N.x,right:(q.right-L.right+A.right)/N.x}}const FT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=zo(e,t)||{};if(p==null)return{};const y=ab(v),b={x:r,y:o},x=Oh(s),A=Ph(x),T=await f.getDimensions(p),E=x==="y",L=E?"top":"left",M=E?"bottom":"right",P=E?"clientHeight":"clientWidth",N=c.reference[A]+c.reference[x]-b[x]-c.floating[A],q=b[x]-c.reference[x],W=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let X=W?W[P]:0;(!X||!await(f.isElement==null?void 0:f.isElement(W)))&&(X=d.floating[P]||c.floating[A]);const ie=N/2-q/2,ee=X/2-T[A]/2-1,j=Yl(y[L],ee),te=Yl(y[M],ee),Z=j,H=X-T[A]-te,I=X/2-T[A]/2+ie,k=Md(Z,I,H),B=!h.arrow&&_r(s)!=null&&I!==k&&c.reference[A]/2-(I<Z?j:te)-T[A]/2<0,U=B?I<Z?I-Z:I-H:0;return{[x]:b[x]+U,data:{[x]:k,centerOffset:I-k-U,...B&&{alignmentOffset:U}},reset:B}}});function HT(e,t,r){return(e?[...r.filter(s=>_r(s)===e),...r.filter(s=>_r(s)!==e)]:r.filter(s=>qr(s)===s)).filter(s=>e?_r(s)===e||(t?Gc(s)!==s:!1):!0)}const qT=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:y,allowedPlacements:b=fm,autoAlignment:x=!0,...A}=zo(e,t),T=y!==void 0||b===fm?HT(y||null,x,b):b,E=await Au(t,A),L=((r=f.autoPlacement)==null?void 0:r.index)||0,M=T[L];if(M==null)return{};const P=lb(M,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==M)return{reset:{placement:T[0]}};const N=[E[qr(M)],E[P[0]],E[P[1]]],q=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:M,overflows:N}],W=T[L+1];if(W)return{data:{index:L+1,overflows:q},reset:{placement:W}};const X=q.map(j=>{const te=_r(j.placement);return[j.placement,te&&v?j.overflows.slice(0,2).reduce((Z,H)=>Z+H,0):j.overflows[0],j.overflows]}).sort((j,te)=>j[1]-te[1]),ee=((s=X.filter(j=>j[2].slice(0,_r(j[0])?2:3).every(te=>te<=0))[0])==null?void 0:s[0])||X[0][0];return ee!==d?{data:{index:L+1,overflows:q},reset:{placement:ee}}:{}}}},BT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:T=!0,...E}=zo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const L=qr(s),M=qr(d)===d,P=await(h.isRTL==null?void 0:h.isRTL(p.floating)),N=b||(M||!T?[Kc(d)]:OT(d));!b&&A!=="none"&&N.push(...DT(d,T,A,P));const q=[d,...N],W=await Au(t,E),X=[];let ie=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&X.push(W[L]),y){const Z=lb(s,f,P);X.push(W[Z[0]],W[Z[1]])}if(ie=[...ie,{placement:s,overflows:X}],!X.every(Z=>Z<=0)){var ee,j;const Z=(((ee=c.flip)==null?void 0:ee.index)||0)+1,H=q[Z];if(H)return{data:{index:Z,overflows:ie},reset:{placement:H}};let I=(j=ie.filter(k=>k.overflows[0]<=0).sort((k,B)=>k.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!I)switch(x){case"bestFit":{var te;const k=(te=ie.map(B=>[B.placement,B.overflows.filter(U=>U>0).reduce((U,re)=>U+re,0)]).sort((B,U)=>B[1]-U[1])[0])==null?void 0:te[0];k&&(I=k);break}case"initialPlacement":I=d;break}if(s!==I)return{reset:{placement:I}}}return{}}}};async function WT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=qr(r),d=_r(r),h=ga(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,y=zo(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:A}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return d&&typeof A=="number"&&(x=d==="end"?A*-1:A),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const UT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await WT(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},VT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:E=>{let{x:L,y:M}=E;return{x:L,y:M}}},...h}=zo(e,t),p={x:r,y:o},v=await Au(t,h),y=ga(qr(s)),b=sb(y);let x=p[b],A=p[y];if(c){const E=b==="y"?"top":"left",L=b==="y"?"bottom":"right",M=x+v[E],P=x-v[L];x=Md(M,x,P)}if(f){const E=y==="y"?"top":"left",L=y==="y"?"bottom":"right",M=A+v[E],P=A-v[L];A=Md(M,A,P)}const T=d.fn({...t,[b]:x,[y]:A});return{...T,data:{x:T.x-r,y:T.y-o}}}}},jT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=zo(e,t),h=await Au(t,d),p=qr(r),v=_r(r),y=ga(r)==="y",{width:b,height:x}=o.floating;let A,T;p==="top"||p==="bottom"?(A=p,T=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(T=p,A=v==="end"?"top":"bottom");const E=x-h[A],L=b-h[T],M=!t.middlewareData.shift;let P=E,N=L;if(y){const W=b-h.left-h.right;N=v||M?Yl(L,W):W}else{const W=x-h.top-h.bottom;P=v||M?Yl(E,W):W}if(M&&!v){const W=So(h.left,0),X=So(h.right,0),ie=So(h.top,0),ee=So(h.bottom,0);y?N=b-2*(W!==0||X!==0?W+X:So(h.left,h.right)):P=x-2*(ie!==0||ee!==0?ie+ee:So(h.top,h.bottom))}await f({...t,availableWidth:N,availableHeight:P});const q=await s.getDimensions(c.floating);return b!==q.width||x!==q.height?{reset:{rects:!0}}:{}}}};function nr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Dr(e){return nr(e).getComputedStyle(e)}const hm=Math.min,zl=Math.max,Xc=Math.round;function cb(e){const t=Dr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Xc(r)!==s||Xc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Ji(e){return fb(e)?(e.nodeName||"").toLowerCase():""}let lc;function ub(){if(lc)return lc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(lc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),lc):navigator.userAgent}function zr(e){return e instanceof nr(e).HTMLElement}function Xi(e){return e instanceof nr(e).Element}function fb(e){return e instanceof nr(e).Node}function pm(e){return typeof ShadowRoot>"u"?!1:e instanceof nr(e).ShadowRoot||e instanceof ShadowRoot}function Mu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Dr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function GT(e){return["table","td","th"].includes(Ji(e))}function Nd(e){const t=/firefox/i.test(ub()),r=Dr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const c=r.contain;return c!=null&&c.includes(s)})}function db(){return!/^((?!chrome|android).)*safari/i.test(ub())}function Rh(e){return["html","body","#document"].includes(Ji(e))}function hb(e){return Xi(e)?e:e.contextElement}const pb={x:1,y:1};function _s(e){const t=hb(e);if(!zr(t))return pb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=cb(t);let f=(c?Xc(r.width):r.width)/o,d=(c?Xc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Zl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=hb(e);let h=pb;t&&(o?Xi(o)&&(h=_s(o)):h=_s(e));const p=d?nr(d):window,v=!db()&&r;let y=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,A=f.height/h.y;if(d){const T=nr(d),E=o&&Xi(o)?nr(o):o;let L=T.frameElement;for(;L&&o&&E!==T;){const M=_s(L),P=L.getBoundingClientRect(),N=getComputedStyle(L);P.x+=(L.clientLeft+parseFloat(N.paddingLeft))*M.x,P.y+=(L.clientTop+parseFloat(N.paddingTop))*M.y,y*=M.x,b*=M.y,x*=M.x,A*=M.y,y+=P.x,b+=P.y,L=nr(L).frameElement}}return{width:x,height:A,top:b,right:y+x,bottom:b+A,left:y,x:y,y:b}}function Yi(e){return((fb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nu(e){return Xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function gb(e){return Zl(Yi(e)).left+Nu(e).scrollLeft}function Jl(e){if(Ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pm(e)&&e.host||Yi(e);return pm(t)?t.host:t}function vb(e){const t=Jl(e);return Rh(t)?t.ownerDocument.body:zr(t)&&Mu(t)?t:vb(t)}function Yc(e,t){var r;t===void 0&&(t=[]);const o=vb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=nr(o);return s?t.concat(c,c.visualViewport||[],Mu(o)?o:[]):t.concat(o,Yc(o))}function gm(e,t,r){return t==="viewport"?Dl(function(o,s){const c=nr(o),f=Yi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,y=0;if(d){h=d.width,p=d.height;const b=db();(b||!b&&s==="fixed")&&(v=d.offsetLeft,y=d.offsetTop)}return{width:h,height:p,x:v,y}}(e,r)):Xi(t)?Dl(function(o,s){const c=Zl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=zr(o)?_s(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}}(t,r)):Dl(function(o){const s=Yi(o),c=Nu(o),f=o.ownerDocument.body,d=zl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=zl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+gb(o);const v=-c.scrollTop;return Dr(f).direction==="rtl"&&(p+=zl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Yi(e)))}function vm(e){return zr(e)&&Dr(e).position!=="fixed"?e.offsetParent:null}function mm(e){const t=nr(e);let r=vm(e);for(;r&&GT(r)&&Dr(r).position==="static";)r=vm(r);return r&&(Ji(r)==="html"||Ji(r)==="body"&&Dr(r).position==="static"&&!Nd(r))?t:r||function(o){let s=Jl(o);for(;zr(s)&&!Rh(s);){if(Nd(s))return s;s=Jl(s)}return null}(e)||t}function KT(e,t,r){const o=zr(t),s=Yi(t),c=Zl(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Ji(t)!=="body"||Mu(s))&&(f=Nu(t)),zr(t)){const h=Zl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=gb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const XT={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const y=v.get(p);if(y)return y;let b=Yc(p).filter(E=>Xi(E)&&Ji(E)!=="body"),x=null;const A=Dr(p).position==="fixed";let T=A?Jl(p):p;for(;Xi(T)&&!Rh(T);){const E=Dr(T),L=Nd(T);(A?L||x:L||E.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=E:b=b.filter(M=>M!==T),T=Jl(T)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const y=gm(t,v,s);return p.top=zl(y.top,p.top),p.right=hm(y.right,p.right),p.bottom=hm(y.bottom,p.bottom),p.left=zl(y.left,p.left),p},gm(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=zr(r),c=Yi(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((Ji(r)!=="body"||Mu(c))&&(f=Nu(r)),zr(r))){const p=Zl(r);d=_s(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Xi,getDimensions:function(e){return zr(e)?cb(e):e.getBoundingClientRect()},getOffsetParent:mm,getDocumentElement:Yi,getScale:_s,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||mm,c=this.getDimensions;return{reference:KT(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Dr(e).direction==="rtl"},YT=(e,t,r)=>{const o=new Map,s={platform:XT,...r},c={...s.platform,_c:o};return IT(e,t,{...s,platform:c})};function mb(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?mb(e[r],t[r]):e[r]=t[r])}const Sr={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"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"],delay:{show:0,hide:400}}}};function Ql(e,t){let r=Sr.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Sr.themes[r.$extend]||{}:(r=null,o=Sr[t]):r=null;while(r);return o}function ZT(e){const t=[e];let r=Sr.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Sr.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function ym(e){const t=[e];let r=Sr.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Sr.themes[r.$extend]||{}):r=null;while(r);return t}let Ns=!1;if(typeof window<"u"){Ns=!1;try{const e=Object.defineProperty({},"passive",{get(){Ns=!0}});window.addEventListener("test",null,e)}catch{}}let yb=!1;typeof window<"u"&&typeof navigator<"u"&&(yb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const bb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),bm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},wm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function xm(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Qf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const jn=[];let _o=null;const _m={};function Sm(e){let t=_m[e];return t||(t=_m[e]=[]),t}let $d=function(){};typeof window<"u"&&($d=window.Element);function at(e){return function(t){return Ql(t.theme,e)}}const ed="__floating-vue__popper",wb=()=>ft({name:"VPopper",provide(){return{[ed]:{parentPopper:this}}},inject:{[ed]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>bb.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,$d,Boolean],default:at("container")},boundary:{type:[String,$d],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},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},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},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:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[ed])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,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.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(UT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(qT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(VT({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(BT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(FT({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(jT({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await YT(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),_o&&this.instantMove&&_o.instantMove&&_o!==this.parentPopper){_o.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(_o=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Qf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Yc(this.$_referenceNode),...Yc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<jn.length;r++)t=jn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}jn.push(this),document.body.classList.add("v-popper--some-open");for(const t of ym(this.theme))Sm(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Qf(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,xm(jn,this),jn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of ym(this.theme)){const o=Sm(r);xm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}_o===this&&(_o=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Qf(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,bm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],bm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,wm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],wm,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,Ns?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Il>=e.left&&Il<=e.right&&Fl>=e.top&&Fl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Il-Oi,o=Fl-Ri,s=t.left+t.width/2-Oi+(t.top+t.height/2)-Ri+t.width+t.height,c=Oi+r*s,f=Ri+o*s;return ac(Oi,Ri,c,f,t.left,t.top,t.left,t.bottom)||ac(Oi,Ri,c,f,t.left,t.top,t.right,t.top)||ac(Oi,Ri,c,f,t.right,t.top,t.right,t.bottom)||ac(Oi,Ri,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(yb){const e=Ns?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>km(t,!0),e),document.addEventListener("touchend",t=>Cm(t,!0),e)}else window.addEventListener("mousedown",e=>km(e,!1),!0),window.addEventListener("click",e=>Cm(e,!1),!0);window.addEventListener("resize",QT)}function km(e,t){if(Sr.autoHideOnMousedown)xb(e,t);else for(let r=0;r<jn.length;r++){const o=jn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Cm(e,t){Sr.autoHideOnMousedown||xb(e,t)}function xb(e,t){const r={};for(let o=jn.length-1;o>=0;o--){const s=jn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Tm(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&Tm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Tm(e,t,r){return r.closeAllPopover||r.closePopover&&t||JT(e,r)&&!t}function JT(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function QT(){for(let e=0;e<jn.length;e++)jn[e].$_computePosition()}function Em(){for(let e=0;e<jn.length;e++)jn[e].hide()}let Oi=0,Ri=0,Il=0,Fl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Oi=Il,Ri=Fl,Il=e.clientX,Fl=e.clientY},Ns?{passive:!0}:void 0);function ac(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const eE={extends:wb()},$u=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function tE(e,t,r,o,s,c){return oe(),me("div",{ref:"reference",class:lt(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[hn(e.$slots,"default",K_(Hy(e.slotData)))],2)}const nE=$u(eE,[["render",tE]]);function rE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Ec;function Pd(){Pd.init||(Pd.init=!0,Ec=rE()!==-1)}var Pu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Pd(),ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Ec&&this.$el.appendChild(e),e.data="about:blank",Ec||this.$el.appendChild(e)},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&&(!Ec&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const iE=uy();Is("data-v-b329ee4c");const oE={class:"resize-observer",tabindex:"-1"};Fs();const sE=iE((e,t,r,o,s,c)=>(oe(),ot("div",oE)));Pu.render=sE;Pu.__scopeId="data-v-b329ee4c";Pu.__file="src/components/ResizeObserver.vue";const _b=(e="theme")=>({computed:{themeClass(){return ZT(this[e])}}}),lE=ft({name:"VPopperContent",components:{ResizeObserver:Pu},mixins:[_b()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),aE=["id","aria-hidden","tabindex","data-popper-placement"],cE={ref:"inner",class:"v-popper__inner"},uE=Y("div",{class:"v-popper__arrow-outer"},null,-1),fE=Y("div",{class:"v-popper__arrow-inner"},null,-1),dE=[uE,fE];function hE(e,t,r,o,s,c){const f=Po("ResizeObserver");return oe(),me("div",{id:e.popperId,ref:"popover",class:lt(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Kt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Td(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[Y("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),Y("div",{class:"v-popper__wrapper",style:Kt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Y("div",cE,[e.mounted?(oe(),me(ut,{key:0},[Y("div",null,[hn(e.$slots,"default")]),e.handleResize?(oe(),ot(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ye("",!0)],64)):Ye("",!0)],512),Y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Kt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},dE,4)],4)],46,aE)}const Sb=$u(lE,[["render",hE]]),kb={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Od=function(){};typeof window<"u"&&(Od=window.Element);const pE=ft({name:"VPopperWrapper",components:{Popper:nE,PopperContent:Sb},mixins:[kb,_b("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Od,Boolean],default:void 0},boundary:{type:[String,Od],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function gE(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),ot(d,ai({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:st(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:y,autoHide:b,show:x,hide:A,handleResize:T,onResize:E,classes:L,result:M})=>[hn(e.$slots,"default",{shown:p,show:x,hide:A}),Pe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":y,"auto-hide":b,"handle-resize":T,classes:L,result:M,onHide:A,onResize:E},{default:st(()=>[hn(e.$slots,"popper",{shown:p,hide:A})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Dh=$u(pE,[["render",gE]]),vE={...Dh,name:"VDropdown",vPopperTheme:"dropdown"},mE={...Dh,name:"VMenu",vPopperTheme:"menu"},Cb={...Dh,name:"VTooltip",vPopperTheme:"tooltip"},yE=ft({name:"VTooltipDirective",components:{Popper:wb(),PopperContent:Sb},mixins:[kb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ql(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ql(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},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(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),bE=["innerHTML"],wE=["textContent"];function xE(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),ot(d,ai({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:st(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:y,autoHide:b,hide:x,handleResize:A,onResize:T,classes:E,result:L})=>[Pe(f,{ref:"popperContent",class:lt({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":y,"auto-hide":b,"handle-resize":A,classes:E,result:L,onHide:x,onResize:T},{default:st(()=>[e.html?(oe(),me("div",{key:0,innerHTML:e.finalContent},null,8,bE)):(oe(),me("div",{key:1,textContent:qe(e.finalContent)},null,8,wE))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const _E=$u(yE,[["render",xE]]),Tb="v-popper--has-tooltip";function SE(e,t){let r=e.placement;if(!r&&t)for(const o of bb)t[o]&&(r=o);return r||(r=Ql(e.theme||"tooltip","placement")),r}function Eb(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=SE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let td,ea,kE=0;function CE(){if(td)return;ea=Be([]),td=Gy({name:"VTooltipDirectiveApp",setup(){return{directives:ea}},render(){return this.directives.map(t=>pa(_E,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),td.mount(e)}function Lb(e,t,r){CE();const o=Be(Eb(e,t,r)),s=Be(!1),c={id:kE++,options:o,shown:s};return ea.value.push(c),e.classList&&e.classList.add(Tb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function zh(e){if(e.$_popper){const t=ea.value.indexOf(e.$_popper.item);t!==-1&&ea.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Tb)}function Lm(e,{value:t,modifiers:r}){const o=Eb(e,t,r);if(!o.content||Ql(o.theme||"tooltip","disabled"))zh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Lb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Ab={beforeMount:Lm,updated:Lm,beforeUnmount(e){zh(e)}};function Am(e){e.addEventListener("mousedown",Zc),e.addEventListener("click",Zc),e.addEventListener("touchstart",Mb,Ns?{passive:!0}:!1)}function Mm(e){e.removeEventListener("mousedown",Zc),e.removeEventListener("click",Zc),e.removeEventListener("touchstart",Mb),e.removeEventListener("touchend",Nb),e.removeEventListener("touchcancel",$b)}function Zc(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Mb(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const r=e.changedTouches[0];t.$_vclosepopover_touchPoint=r,t.addEventListener("touchend",Nb),t.addEventListener("touchcancel",$b)}}function Nb(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function $b(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const TE={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&Am(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?Am(e):Mm(e))},beforeUnmount(e){Mm(e)}},EE=Ab,Pb=Cb;function LE(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,mb(Sr,t),e.directive("tooltip",Ab),e.directive("close-popper",TE),e.component("VTooltip",Cb),e.component("VDropdown",vE),e.component("VMenu",mE))}const Ob={version:"5.2.2",install:LE,options:Sr},AE=6e4;function Rb(e){return e}const ME=Rb,{clearTimeout:NE,setTimeout:$E}=globalThis,PE=Math.random.bind(Math);function OE(e,t){const{post:r,on:o,eventNames:s=[],serialize:c=Rb,deserialize:f=ME,resolver:d,timeout:h=AE}=t,p=new Map;let v;const y=new Proxy({},{get(b,x){if(x==="$functions")return e;if(x==="then"&&!s.includes("then")&&!("then"in e))return;const A=(...E)=>{r(c({m:x,a:E,t:"q"}))};if(s.includes(x))return A.asEvent=A,A;const T=async(...E)=>(await v,new Promise((L,M)=>{var q;const P=DE();let N;h>=0&&(N=$E(()=>{var W;try{throw(W=t.onTimeoutError)==null||W.call(t,x,E),new Error(`[birpc] timeout on calling "${x}"`)}catch(X){M(X)}p.delete(P)},h),typeof N=="object"&&(N=(q=N.unref)==null?void 0:q.call(N))),p.set(P,{resolve:L,reject:M,timeoutId:N}),r(c({m:x,a:E,i:P,t:"q"}))}));return T.asEvent=A,T}});return v=o(async(b,...x)=>{const A=f(b);if(A.t==="q"){const{m:T,a:E}=A;let L,M;const P=d?d(T,e[T]):e[T];if(!P)M=new Error(`[birpc] function "${T}" not found`);else try{L=await P.apply(y,E)}catch(N){M=N}A.i&&(M&&t.onError&&t.onError(M,T,E),r(c({t:"s",i:A.i,r:L,e:M}),...x))}else{const{i:T,r:E,e:L}=A,M=p.get(T);M&&(NE(M.timeoutId),L?M.reject(L):M.resolve(E)),p.delete(T)}}),y}const RE="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function DE(e=21){let t="",r=e;for(;r--;)t+=RE[PE()*64|0];return t}const{parse:zE,stringify:IE}=JSON,{keys:FE}=Object,ta=String,Db="string",Nm={},Jc="object",zb=(e,t)=>t,HE=e=>e instanceof ta?ta(e):e,qE=(e,t)=>typeof t===Db?new ta(t):t,Ib=(e,t,r,o)=>{const s=[];for(let c=FE(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ta){const v=e[p];typeof v===Jc&&!t.has(v)?(t.add(v),r[h]=Nm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Nm&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,Ib.apply(null,h))}return r},$m=(e,t,r)=>{const o=ta(t.push(r)-1);return e.set(r,o),o},Rd=(e,t)=>{const r=zE(e,qE).map(HE),o=r[0],s=t||zb,c=typeof o===Jc&&o?Ib(r,new Set,o,s):o;return s.call({"":c},"",c)},BE=(e,t,r)=>{const o=t&&typeof t===Jc?(v,y)=>v===""||-1<t.indexOf(v)?y:void 0:t||zb,s=new Map,c=[],f=[];let d=+$m(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=IE(c[d++],p,r);return"["+f.join(",")+"]";function p(v,y){if(h)return h=!h,y;const b=o.call(this,v,y);switch(typeof b){case Jc:if(b===null)return b;case Db:return s.get(b)||$m(s,c,b)}return b}};function Fb(e){return e!=null}function Ih(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const WE=/^[A-Za-z]:\//;function UE(e=""){return e&&e.replace(/\\/g,"/").replace(WE,t=>t.toUpperCase())}const VE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Pm=/^\/([A-Za-z]:)?$/;function jE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Om=function(...e){e=e.map(o=>UE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:jE();!s||s.length===0||(t=`${s}/${t}`,r=Rm(s))}return t=GE(t,!r),r&&!Rm(t)?`/${t}`:t.length>0?t:"."};function GE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Rm=function(e){return VE.test(e)},KE=function(e,t){const r=Om(e).replace(Pm,"$1").split("/"),o=Om(t).replace(Pm,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function XE(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Hb(e,t,r,o){const s=KE(t,e),c={id:XE(`${s}${r||""}`),name:s,type:"suite",mode:"run",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function $s(e){return e.type==="test"||e.type==="custom"}function qb(e){const t=[],r=Ih(e);for(const o of r)if($s(o))t.push(o);else for(const s of o.tasks)if($s(s))t.push(s);else{const c=qb(s);for(const f of c)t.push(f)}return t}function Fh(e=[]){return Ih(e).flatMap(t=>$s(t)?[t]:[t,...Fh(t.tasks)])}function YE(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}class Bb{constructor(){fs(this,"filesMap",new Map);fs(this,"pathsSet",new Set);fs(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Hb(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function Hh(e){return qb(e).some(t=>{var r,o;return(o=(r=t.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 ZE(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=M=>M,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Bb,waitForConnection:L,reconnect:T},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let y;const b={onSpecsCollected(M){var P;M==null||M.forEach(([N,q])=>{v.state.clearFiles({config:N},[q])}),(P=r.onSpecsCollected)==null||P.call(r,M)},onPathsCollected(M){var P;v.state.collectPaths(M),(P=r.onPathsCollected)==null||P.call(r,M)},onCollected(M){var P;v.state.collectFiles(M),(P=r.onCollected)==null||P.call(r,M)},onTaskUpdate(M){var P;v.state.updateTasks(M),(P=r.onTaskUpdate)==null||P.call(r,M)},onUserConsoleLog(M){var P;v.state.updateUserLog(M),(P=r.onUserConsoleLog)==null||P.call(r,M)},onFinished(M,P){var N;(N=r.onFinished)==null||N.call(r,M,P)},onFinishedReportCoverage(){var M;(M=r.onFinishedReportCoverage)==null||M.call(r)}},x={post:M=>v.ws.send(M),on:M=>y=M,serialize:M=>BE(M,(P,N)=>N instanceof Error?{name:N.name,message:N.message,stack:N.stack}:N),deserialize:Rd,onTimeoutError(M){throw new Error(`[vitest-ws-client]: Timeout calling "${M}"`)}};v.rpc=OE(b,x);let A;function T(M=!1){M&&(p=c),v.ws=new h(e),E()}function E(){A=new Promise((M,P)=>{var q,W;const N=(W=(q=setTimeout(()=>{P(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:q.unref)==null?void 0:W.call(q);v.ws.OPEN===v.ws.readyState&&M(),v.ws.addEventListener("open",()=>{p=c,M(),clearTimeout(N)})}),v.ws.addEventListener("message",M=>{y(M.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(T,s)})}E();function L(){return A}return v}const JE=location.port,QE=[location.hostname,JE].filter(Boolean).join(":"),eL=`${location.protocol==="https:"?"wss:":"ws:"}//${QE}/__vitest_api__`,Ir=!!window.METADATA_PATH;var Oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ub={},ci={};const tL="Á",nL="á",rL="Ă",iL="ă",oL="∾",sL="∿",lL="∾̳",aL="Â",cL="â",uL="´",fL="А",dL="а",hL="Æ",pL="æ",gL="⁡",vL="𝔄",mL="𝔞",yL="À",bL="à",wL="ℵ",xL="ℵ",_L="Α",SL="α",kL="Ā",CL="ā",TL="⨿",EL="&",LL="&",AL="⩕",ML="⩓",NL="∧",$L="⩜",PL="⩘",OL="⩚",RL="∠",DL="⦤",zL="∠",IL="⦨",FL="⦩",HL="⦪",qL="⦫",BL="⦬",WL="⦭",UL="⦮",VL="⦯",jL="∡",GL="∟",KL="⊾",XL="⦝",YL="∢",ZL="Å",JL="⍼",QL="Ą",eA="ą",tA="𝔸",nA="𝕒",rA="⩯",iA="≈",oA="⩰",sA="≊",lA="≋",aA="'",cA="⁡",uA="≈",fA="≊",dA="Å",hA="å",pA="𝒜",gA="𝒶",vA="≔",mA="*",yA="≈",bA="≍",wA="Ã",xA="ã",_A="Ä",SA="ä",kA="∳",CA="⨑",TA="≌",EA="϶",LA="‵",AA="∽",MA="⋍",NA="∖",$A="⫧",PA="⊽",OA="⌅",RA="⌆",DA="⌅",zA="⎵",IA="⎶",FA="≌",HA="Б",qA="б",BA="„",WA="∵",UA="∵",VA="∵",jA="⦰",GA="϶",KA="ℬ",XA="ℬ",YA="Β",ZA="β",JA="ℶ",QA="≬",eM="𝔅",tM="𝔟",nM="⋂",rM="◯",iM="⋃",oM="⨀",sM="⨁",lM="⨂",aM="⨆",cM="★",uM="▽",fM="△",dM="⨄",hM="⋁",pM="⋀",gM="⤍",vM="⧫",mM="▪",yM="▴",bM="▾",wM="◂",xM="▸",_M="␣",SM="▒",kM="░",CM="▓",TM="█",EM="=⃥",LM="≡⃥",AM="⫭",MM="⌐",NM="𝔹",$M="𝕓",PM="⊥",OM="⊥",RM="⋈",DM="⧉",zM="┐",IM="╕",FM="╖",HM="╗",qM="┌",BM="╒",WM="╓",UM="╔",VM="─",jM="═",GM="┬",KM="╤",XM="╥",YM="╦",ZM="┴",JM="╧",QM="╨",eN="╩",tN="⊟",nN="⊞",rN="⊠",iN="┘",oN="╛",sN="╜",lN="╝",aN="└",cN="╘",uN="╙",fN="╚",dN="│",hN="║",pN="┼",gN="╪",vN="╫",mN="╬",yN="┤",bN="╡",wN="╢",xN="╣",_N="├",SN="╞",kN="╟",CN="╠",TN="‵",EN="˘",LN="˘",AN="¦",MN="𝒷",NN="ℬ",$N="⁏",PN="∽",ON="⋍",RN="⧅",DN="\\",zN="⟈",IN="•",FN="•",HN="≎",qN="⪮",BN="≏",WN="≎",UN="≏",VN="Ć",jN="ć",GN="⩄",KN="⩉",XN="⩋",YN="∩",ZN="⋒",JN="⩇",QN="⩀",e$="ⅅ",t$="∩︀",n$="⁁",r$="ˇ",i$="ℭ",o$="⩍",s$="Č",l$="č",a$="Ç",c$="ç",u$="Ĉ",f$="ĉ",d$="∰",h$="⩌",p$="⩐",g$="Ċ",v$="ċ",m$="¸",y$="¸",b$="⦲",w$="¢",x$="·",_$="·",S$="𝔠",k$="ℭ",C$="Ч",T$="ч",E$="✓",L$="✓",A$="Χ",M$="χ",N$="ˆ",$$="≗",P$="↺",O$="↻",R$="⊛",D$="⊚",z$="⊝",I$="⊙",F$="®",H$="Ⓢ",q$="⊖",B$="⊕",W$="⊗",U$="○",V$="⧃",j$="≗",G$="⨐",K$="⫯",X$="⧂",Y$="∲",Z$="”",J$="’",Q$="♣",eP="♣",tP=":",nP="∷",rP="⩴",iP="≔",oP="≔",sP=",",lP="@",aP="∁",cP="∘",uP="∁",fP="ℂ",dP="≅",hP="⩭",pP="≡",gP="∮",vP="∯",mP="∮",yP="𝕔",bP="ℂ",wP="∐",xP="∐",_P="©",SP="©",kP="℗",CP="∳",TP="↵",EP="✗",LP="⨯",AP="𝒞",MP="𝒸",NP="⫏",$P="⫑",PP="⫐",OP="⫒",RP="⋯",DP="⤸",zP="⤵",IP="⋞",FP="⋟",HP="↶",qP="⤽",BP="⩈",WP="⩆",UP="≍",VP="∪",jP="⋓",GP="⩊",KP="⊍",XP="⩅",YP="∪︀",ZP="↷",JP="⤼",QP="⋞",eO="⋟",tO="⋎",nO="⋏",rO="¤",iO="↶",oO="↷",sO="⋎",lO="⋏",aO="∲",cO="∱",uO="⌭",fO="†",dO="‡",hO="ℸ",pO="↓",gO="↡",vO="⇓",mO="‐",yO="⫤",bO="⊣",wO="⤏",xO="˝",_O="Ď",SO="ď",kO="Д",CO="д",TO="‡",EO="⇊",LO="ⅅ",AO="ⅆ",MO="⤑",NO="⩷",$O="°",PO="∇",OO="Δ",RO="δ",DO="⦱",zO="⥿",IO="𝔇",FO="𝔡",HO="⥥",qO="⇃",BO="⇂",WO="´",UO="˙",VO="˝",jO="`",GO="˜",KO="⋄",XO="⋄",YO="⋄",ZO="♦",JO="♦",QO="¨",eR="ⅆ",tR="ϝ",nR="⋲",rR="÷",iR="÷",oR="⋇",sR="⋇",lR="Ђ",aR="ђ",cR="⌞",uR="⌍",fR="$",dR="𝔻",hR="𝕕",pR="¨",gR="˙",vR="⃜",mR="≐",yR="≑",bR="≐",wR="∸",xR="∔",_R="⊡",SR="⌆",kR="∯",CR="¨",TR="⇓",ER="⇐",LR="⇔",AR="⫤",MR="⟸",NR="⟺",$R="⟹",PR="⇒",OR="⊨",RR="⇑",DR="⇕",zR="∥",IR="⤓",FR="↓",HR="↓",qR="⇓",BR="⇵",WR="̑",UR="⇊",VR="⇃",jR="⇂",GR="⥐",KR="⥞",XR="⥖",YR="↽",ZR="⥟",JR="⥗",QR="⇁",eD="↧",tD="⊤",nD="⤐",rD="⌟",iD="⌌",oD="𝒟",sD="𝒹",lD="Ѕ",aD="ѕ",cD="⧶",uD="Đ",fD="đ",dD="⋱",hD="▿",pD="▾",gD="⇵",vD="⥯",mD="⦦",yD="Џ",bD="џ",wD="⟿",xD="É",_D="é",SD="⩮",kD="Ě",CD="ě",TD="Ê",ED="ê",LD="≖",AD="≕",MD="Э",ND="э",$D="⩷",PD="Ė",OD="ė",RD="≑",DD="ⅇ",zD="≒",ID="𝔈",FD="𝔢",HD="⪚",qD="È",BD="è",WD="⪖",UD="⪘",VD="⪙",jD="∈",GD="⏧",KD="ℓ",XD="⪕",YD="⪗",ZD="Ē",JD="ē",QD="∅",ez="∅",tz="◻",nz="∅",rz="▫",iz=" ",oz=" ",sz=" ",lz="Ŋ",az="ŋ",cz=" ",uz="Ę",fz="ę",dz="𝔼",hz="𝕖",pz="⋕",gz="⧣",vz="⩱",mz="ε",yz="Ε",bz="ε",wz="ϵ",xz="≖",_z="≕",Sz="≂",kz="⪖",Cz="⪕",Tz="⩵",Ez="=",Lz="≂",Az="≟",Mz="⇌",Nz="≡",$z="⩸",Pz="⧥",Oz="⥱",Rz="≓",Dz="ℯ",zz="ℰ",Iz="≐",Fz="⩳",Hz="≂",qz="Η",Bz="η",Wz="Ð",Uz="ð",Vz="Ë",jz="ë",Gz="€",Kz="!",Xz="∃",Yz="∃",Zz="ℰ",Jz="ⅇ",Qz="ⅇ",e2="≒",t2="Ф",n2="ф",r2="♀",i2="ffi",o2="ff",s2="ffl",l2="𝔉",a2="𝔣",c2="fi",u2="◼",f2="▪",d2="fj",h2="♭",p2="fl",g2="▱",v2="ƒ",m2="𝔽",y2="𝕗",b2="∀",w2="∀",x2="⋔",_2="⫙",S2="ℱ",k2="⨍",C2="½",T2="⅓",E2="¼",L2="⅕",A2="⅙",M2="⅛",N2="⅔",$2="⅖",P2="¾",O2="⅗",R2="⅜",D2="⅘",z2="⅚",I2="⅝",F2="⅞",H2="⁄",q2="⌢",B2="𝒻",W2="ℱ",U2="ǵ",V2="Γ",j2="γ",G2="Ϝ",K2="ϝ",X2="⪆",Y2="Ğ",Z2="ğ",J2="Ģ",Q2="Ĝ",eI="ĝ",tI="Г",nI="г",rI="Ġ",iI="ġ",oI="≥",sI="≧",lI="⪌",aI="⋛",cI="≥",uI="≧",fI="⩾",dI="⪩",hI="⩾",pI="⪀",gI="⪂",vI="⪄",mI="⋛︀",yI="⪔",bI="𝔊",wI="𝔤",xI="≫",_I="⋙",SI="⋙",kI="ℷ",CI="Ѓ",TI="ѓ",EI="⪥",LI="≷",AI="⪒",MI="⪤",NI="⪊",$I="⪊",PI="⪈",OI="≩",RI="⪈",DI="≩",zI="⋧",II="𝔾",FI="𝕘",HI="`",qI="≥",BI="⋛",WI="≧",UI="⪢",VI="≷",jI="⩾",GI="≳",KI="𝒢",XI="ℊ",YI="≳",ZI="⪎",JI="⪐",QI="⪧",eF="⩺",tF=">",nF=">",rF="≫",iF="⋗",oF="⦕",sF="⩼",lF="⪆",aF="⥸",cF="⋗",uF="⋛",fF="⪌",dF="≷",hF="≳",pF="≩︀",gF="≩︀",vF="ˇ",mF=" ",yF="½",bF="ℋ",wF="Ъ",xF="ъ",_F="⥈",SF="↔",kF="⇔",CF="↭",TF="^",EF="ℏ",LF="Ĥ",AF="ĥ",MF="♥",NF="♥",$F="…",PF="⊹",OF="𝔥",RF="ℌ",DF="ℋ",zF="⤥",IF="⤦",FF="⇿",HF="∻",qF="↩",BF="↪",WF="𝕙",UF="ℍ",VF="―",jF="─",GF="𝒽",KF="ℋ",XF="ℏ",YF="Ħ",ZF="ħ",JF="≎",QF="≏",eH="⁃",tH="‐",nH="Í",rH="í",iH="⁣",oH="Î",sH="î",lH="И",aH="и",cH="İ",uH="Е",fH="е",dH="¡",hH="⇔",pH="𝔦",gH="ℑ",vH="Ì",mH="ì",yH="ⅈ",bH="⨌",wH="∭",xH="⧜",_H="℩",SH="IJ",kH="ij",CH="Ī",TH="ī",EH="ℑ",LH="ⅈ",AH="ℐ",MH="ℑ",NH="ı",$H="ℑ",PH="⊷",OH="Ƶ",RH="⇒",DH="℅",zH="∞",IH="⧝",FH="ı",HH="⊺",qH="∫",BH="∬",WH="ℤ",UH="∫",VH="⊺",jH="⋂",GH="⨗",KH="⨼",XH="⁣",YH="⁢",ZH="Ё",JH="ё",QH="Į",eq="į",tq="𝕀",nq="𝕚",rq="Ι",iq="ι",oq="⨼",sq="¿",lq="𝒾",aq="ℐ",cq="∈",uq="⋵",fq="⋹",dq="⋴",hq="⋳",pq="∈",gq="⁢",vq="Ĩ",mq="ĩ",yq="І",bq="і",wq="Ï",xq="ï",_q="Ĵ",Sq="ĵ",kq="Й",Cq="й",Tq="𝔍",Eq="𝔧",Lq="ȷ",Aq="𝕁",Mq="𝕛",Nq="𝒥",$q="𝒿",Pq="Ј",Oq="ј",Rq="Є",Dq="є",zq="Κ",Iq="κ",Fq="ϰ",Hq="Ķ",qq="ķ",Bq="К",Wq="к",Uq="𝔎",Vq="𝔨",jq="ĸ",Gq="Х",Kq="х",Xq="Ќ",Yq="ќ",Zq="𝕂",Jq="𝕜",Qq="𝒦",eB="𝓀",tB="⇚",nB="Ĺ",rB="ĺ",iB="⦴",oB="ℒ",sB="Λ",lB="λ",aB="⟨",cB="⟪",uB="⦑",fB="⟨",dB="⪅",hB="ℒ",pB="«",gB="⇤",vB="⤟",mB="←",yB="↞",bB="⇐",wB="⤝",xB="↩",_B="↫",SB="⤹",kB="⥳",CB="↢",TB="⤙",EB="⤛",LB="⪫",AB="⪭",MB="⪭︀",NB="⤌",$B="⤎",PB="❲",OB="{",RB="[",DB="⦋",zB="⦏",IB="⦍",FB="Ľ",HB="ľ",qB="Ļ",BB="ļ",WB="⌈",UB="{",VB="Л",jB="л",GB="⤶",KB="“",XB="„",YB="⥧",ZB="⥋",JB="↲",QB="≤",e3="≦",t3="⟨",n3="⇤",r3="←",i3="←",o3="⇐",s3="⇆",l3="↢",a3="⌈",c3="⟦",u3="⥡",f3="⥙",d3="⇃",h3="⌊",p3="↽",g3="↼",v3="⇇",m3="↔",y3="↔",b3="⇔",w3="⇆",x3="⇋",_3="↭",S3="⥎",k3="↤",C3="⊣",T3="⥚",E3="⋋",L3="⧏",A3="⊲",M3="⊴",N3="⥑",$3="⥠",P3="⥘",O3="↿",R3="⥒",D3="↼",z3="⪋",I3="⋚",F3="≤",H3="≦",q3="⩽",B3="⪨",W3="⩽",U3="⩿",V3="⪁",j3="⪃",G3="⋚︀",K3="⪓",X3="⪅",Y3="⋖",Z3="⋚",J3="⪋",Q3="⋚",e5="≦",t5="≶",n5="≶",r5="⪡",i5="≲",o5="⩽",s5="≲",l5="⥼",a5="⌊",c5="𝔏",u5="𝔩",f5="≶",d5="⪑",h5="⥢",p5="↽",g5="↼",v5="⥪",m5="▄",y5="Љ",b5="љ",w5="⇇",x5="≪",_5="⋘",S5="⌞",k5="⇚",C5="⥫",T5="◺",E5="Ŀ",L5="ŀ",A5="⎰",M5="⎰",N5="⪉",$5="⪉",P5="⪇",O5="≨",R5="⪇",D5="≨",z5="⋦",I5="⟬",F5="⇽",H5="⟦",q5="⟵",B5="⟵",W5="⟸",U5="⟷",V5="⟷",j5="⟺",G5="⟼",K5="⟶",X5="⟶",Y5="⟹",Z5="↫",J5="↬",Q5="⦅",e8="𝕃",t8="𝕝",n8="⨭",r8="⨴",i8="∗",o8="_",s8="↙",l8="↘",a8="◊",c8="◊",u8="⧫",f8="(",d8="⦓",h8="⇆",p8="⌟",g8="⇋",v8="⥭",m8="‎",y8="⊿",b8="‹",w8="𝓁",x8="ℒ",_8="↰",S8="↰",k8="≲",C8="⪍",T8="⪏",E8="[",L8="‘",A8="‚",M8="Ł",N8="ł",$8="⪦",P8="⩹",O8="<",R8="<",D8="≪",z8="⋖",I8="⋋",F8="⋉",H8="⥶",q8="⩻",B8="◃",W8="⊴",U8="◂",V8="⦖",j8="⥊",G8="⥦",K8="≨︀",X8="≨︀",Y8="¯",Z8="♂",J8="✠",Q8="✠",eW="↦",tW="↦",nW="↧",rW="↤",iW="↥",oW="▮",sW="⨩",lW="М",aW="м",cW="—",uW="∺",fW="∡",dW=" ",hW="ℳ",pW="𝔐",gW="𝔪",vW="℧",mW="µ",yW="*",bW="⫰",wW="∣",xW="·",_W="⊟",SW="−",kW="∸",CW="⨪",TW="∓",EW="⫛",LW="…",AW="∓",MW="⊧",NW="𝕄",$W="𝕞",PW="∓",OW="𝓂",RW="ℳ",DW="∾",zW="Μ",IW="μ",FW="⊸",HW="⊸",qW="∇",BW="Ń",WW="ń",UW="∠⃒",VW="≉",jW="⩰̸",GW="≋̸",KW="ʼn",XW="≉",YW="♮",ZW="ℕ",JW="♮",QW=" ",e4="≎̸",t4="≏̸",n4="⩃",r4="Ň",i4="ň",o4="Ņ",s4="ņ",l4="≇",a4="⩭̸",c4="⩂",u4="Н",f4="н",d4="–",h4="⤤",p4="↗",g4="⇗",v4="↗",m4="≠",y4="≐̸",b4="​",w4="​",x4="​",_4="​",S4="≢",k4="⤨",C4="≂̸",T4="≫",E4="≪",L4=`
22
+ `,A4="∄",M4="∄",N4="𝔑",$4="𝔫",P4="≧̸",O4="≱",R4="≱",D4="≧̸",z4="⩾̸",I4="⩾̸",F4="⋙̸",H4="≵",q4="≫⃒",B4="≯",W4="≯",U4="≫̸",V4="↮",j4="⇎",G4="⫲",K4="∋",X4="⋼",Y4="⋺",Z4="∋",J4="Њ",Q4="њ",eU="↚",tU="⇍",nU="‥",rU="≦̸",iU="≰",oU="↚",sU="⇍",lU="↮",aU="⇎",cU="≰",uU="≦̸",fU="⩽̸",dU="⩽̸",hU="≮",pU="⋘̸",gU="≴",vU="≪⃒",mU="≮",yU="⋪",bU="⋬",wU="≪̸",xU="∤",_U="⁠",SU=" ",kU="𝕟",CU="ℕ",TU="⫬",EU="¬",LU="≢",AU="≭",MU="∦",NU="∉",$U="≠",PU="≂̸",OU="∄",RU="≯",DU="≱",zU="≧̸",IU="≫̸",FU="≹",HU="⩾̸",qU="≵",BU="≎̸",WU="≏̸",UU="∉",VU="⋵̸",jU="⋹̸",GU="∉",KU="⋷",XU="⋶",YU="⧏̸",ZU="⋪",JU="⋬",QU="≮",e6="≰",t6="≸",n6="≪̸",r6="⩽̸",i6="≴",o6="⪢̸",s6="⪡̸",l6="∌",a6="∌",c6="⋾",u6="⋽",f6="⊀",d6="⪯̸",h6="⋠",p6="∌",g6="⧐̸",v6="⋫",m6="⋭",y6="⊏̸",b6="⋢",w6="⊐̸",x6="⋣",_6="⊂⃒",S6="⊈",k6="⊁",C6="⪰̸",T6="⋡",E6="≿̸",L6="⊃⃒",A6="⊉",M6="≁",N6="≄",$6="≇",P6="≉",O6="∤",R6="∦",D6="∦",z6="⫽⃥",I6="∂̸",F6="⨔",H6="⊀",q6="⋠",B6="⊀",W6="⪯̸",U6="⪯̸",V6="⤳̸",j6="↛",G6="⇏",K6="↝̸",X6="↛",Y6="⇏",Z6="⋫",J6="⋭",Q6="⊁",eV="⋡",tV="⪰̸",nV="𝒩",rV="𝓃",iV="∤",oV="∦",sV="≁",lV="≄",aV="≄",cV="∤",uV="∦",fV="⋢",dV="⋣",hV="⊄",pV="⫅̸",gV="⊈",vV="⊂⃒",mV="⊈",yV="⫅̸",bV="⊁",wV="⪰̸",xV="⊅",_V="⫆̸",SV="⊉",kV="⊃⃒",CV="⊉",TV="⫆̸",EV="≹",LV="Ñ",AV="ñ",MV="≸",NV="⋪",$V="⋬",PV="⋫",OV="⋭",RV="Ν",DV="ν",zV="#",IV="№",FV=" ",HV="≍⃒",qV="⊬",BV="⊭",WV="⊮",UV="⊯",VV="≥⃒",jV=">⃒",GV="⤄",KV="⧞",XV="⤂",YV="≤⃒",ZV="<⃒",JV="⊴⃒",QV="⤃",ej="⊵⃒",tj="∼⃒",nj="⤣",rj="↖",ij="⇖",oj="↖",sj="⤧",lj="Ó",aj="ó",cj="⊛",uj="Ô",fj="ô",dj="⊚",hj="О",pj="о",gj="⊝",vj="Ő",mj="ő",yj="⨸",bj="⊙",wj="⦼",xj="Œ",_j="œ",Sj="⦿",kj="𝔒",Cj="𝔬",Tj="˛",Ej="Ò",Lj="ò",Aj="⧁",Mj="⦵",Nj="Ω",$j="∮",Pj="↺",Oj="⦾",Rj="⦻",Dj="‾",zj="⧀",Ij="Ō",Fj="ō",Hj="Ω",qj="ω",Bj="Ο",Wj="ο",Uj="⦶",Vj="⊖",jj="𝕆",Gj="𝕠",Kj="⦷",Xj="“",Yj="‘",Zj="⦹",Jj="⊕",Qj="↻",eG="⩔",tG="∨",nG="⩝",rG="ℴ",iG="ℴ",oG="ª",sG="º",lG="⊶",aG="⩖",cG="⩗",uG="⩛",fG="Ⓢ",dG="𝒪",hG="ℴ",pG="Ø",gG="ø",vG="⊘",mG="Õ",yG="õ",bG="⨶",wG="⨷",xG="⊗",_G="Ö",SG="ö",kG="⌽",CG="‾",TG="⏞",EG="⎴",LG="⏜",AG="¶",MG="∥",NG="∥",$G="⫳",PG="⫽",OG="∂",RG="∂",DG="П",zG="п",IG="%",FG=".",HG="‰",qG="⊥",BG="‱",WG="𝔓",UG="𝔭",VG="Φ",jG="φ",GG="ϕ",KG="ℳ",XG="☎",YG="Π",ZG="π",JG="⋔",QG="ϖ",e9="ℏ",t9="ℎ",n9="ℏ",r9="⨣",i9="⊞",o9="⨢",s9="+",l9="∔",a9="⨥",c9="⩲",u9="±",f9="±",d9="⨦",h9="⨧",p9="±",g9="ℌ",v9="⨕",m9="𝕡",y9="ℙ",b9="£",w9="⪷",x9="⪻",_9="≺",S9="≼",k9="⪷",C9="≺",T9="≼",E9="≺",L9="⪯",A9="≼",M9="≾",N9="⪯",$9="⪹",P9="⪵",O9="⋨",R9="⪯",D9="⪳",z9="≾",I9="′",F9="″",H9="ℙ",q9="⪹",B9="⪵",W9="⋨",U9="∏",V9="∏",j9="⌮",G9="⌒",K9="⌓",X9="∝",Y9="∝",Z9="∷",J9="∝",Q9="≾",e7="⊰",t7="𝒫",n7="𝓅",r7="Ψ",i7="ψ",o7=" ",s7="𝔔",l7="𝔮",a7="⨌",c7="𝕢",u7="ℚ",f7="⁗",d7="𝒬",h7="𝓆",p7="ℍ",g7="⨖",v7="?",m7="≟",y7='"',b7='"',w7="⇛",x7="∽̱",_7="Ŕ",S7="ŕ",k7="√",C7="⦳",T7="⟩",E7="⟫",L7="⦒",A7="⦥",M7="⟩",N7="»",$7="⥵",P7="⇥",O7="⤠",R7="⤳",D7="→",z7="↠",I7="⇒",F7="⤞",H7="↪",q7="↬",B7="⥅",W7="⥴",U7="⤖",V7="↣",j7="↝",G7="⤚",K7="⤜",X7="∶",Y7="ℚ",Z7="⤍",J7="⤏",Q7="⤐",eK="❳",tK="}",nK="]",rK="⦌",iK="⦎",oK="⦐",sK="Ř",lK="ř",aK="Ŗ",cK="ŗ",uK="⌉",fK="}",dK="Р",hK="р",pK="⤷",gK="⥩",vK="”",mK="”",yK="↳",bK="ℜ",wK="ℛ",xK="ℜ",_K="ℝ",SK="ℜ",kK="▭",CK="®",TK="®",EK="∋",LK="⇋",AK="⥯",MK="⥽",NK="⌋",$K="𝔯",PK="ℜ",OK="⥤",RK="⇁",DK="⇀",zK="⥬",IK="Ρ",FK="ρ",HK="ϱ",qK="⟩",BK="⇥",WK="→",UK="→",VK="⇒",jK="⇄",GK="↣",KK="⌉",XK="⟧",YK="⥝",ZK="⥕",JK="⇂",QK="⌋",eX="⇁",tX="⇀",nX="⇄",rX="⇌",iX="⇉",oX="↝",sX="↦",lX="⊢",aX="⥛",cX="⋌",uX="⧐",fX="⊳",dX="⊵",hX="⥏",pX="⥜",gX="⥔",vX="↾",mX="⥓",yX="⇀",bX="˚",wX="≓",xX="⇄",_X="⇌",SX="‏",kX="⎱",CX="⎱",TX="⫮",EX="⟭",LX="⇾",AX="⟧",MX="⦆",NX="𝕣",$X="ℝ",PX="⨮",OX="⨵",RX="⥰",DX=")",zX="⦔",IX="⨒",FX="⇉",HX="⇛",qX="›",BX="𝓇",WX="ℛ",UX="↱",VX="↱",jX="]",GX="’",KX="’",XX="⋌",YX="⋊",ZX="▹",JX="⊵",QX="▸",eY="⧎",tY="⧴",nY="⥨",rY="℞",iY="Ś",oY="ś",sY="‚",lY="⪸",aY="Š",cY="š",uY="⪼",fY="≻",dY="≽",hY="⪰",pY="⪴",gY="Ş",vY="ş",mY="Ŝ",yY="ŝ",bY="⪺",wY="⪶",xY="⋩",_Y="⨓",SY="≿",kY="С",CY="с",TY="⊡",EY="⋅",LY="⩦",AY="⤥",MY="↘",NY="⇘",$Y="↘",PY="§",OY=";",RY="⤩",DY="∖",zY="∖",IY="✶",FY="𝔖",HY="𝔰",qY="⌢",BY="♯",WY="Щ",UY="щ",VY="Ш",jY="ш",GY="↓",KY="←",XY="∣",YY="∥",ZY="→",JY="↑",QY="­",eZ="Σ",tZ="σ",nZ="ς",rZ="ς",iZ="∼",oZ="⩪",sZ="≃",lZ="≃",aZ="⪞",cZ="⪠",uZ="⪝",fZ="⪟",dZ="≆",hZ="⨤",pZ="⥲",gZ="←",vZ="∘",mZ="∖",yZ="⨳",bZ="⧤",wZ="∣",xZ="⌣",_Z="⪪",SZ="⪬",kZ="⪬︀",CZ="Ь",TZ="ь",EZ="⌿",LZ="⧄",AZ="/",MZ="𝕊",NZ="𝕤",$Z="♠",PZ="♠",OZ="∥",RZ="⊓",DZ="⊓︀",zZ="⊔",IZ="⊔︀",FZ="√",HZ="⊏",qZ="⊑",BZ="⊏",WZ="⊑",UZ="⊐",VZ="⊒",jZ="⊐",GZ="⊒",KZ="□",XZ="□",YZ="⊓",ZZ="⊏",JZ="⊑",QZ="⊐",eJ="⊒",tJ="⊔",nJ="▪",rJ="□",iJ="▪",oJ="→",sJ="𝒮",lJ="𝓈",aJ="∖",cJ="⌣",uJ="⋆",fJ="⋆",dJ="☆",hJ="★",pJ="ϵ",gJ="ϕ",vJ="¯",mJ="⊂",yJ="⋐",bJ="⪽",wJ="⫅",xJ="⊆",_J="⫃",SJ="⫁",kJ="⫋",CJ="⊊",TJ="⪿",EJ="⥹",LJ="⊂",AJ="⋐",MJ="⊆",NJ="⫅",$J="⊆",PJ="⊊",OJ="⫋",RJ="⫇",DJ="⫕",zJ="⫓",IJ="⪸",FJ="≻",HJ="≽",qJ="≻",BJ="⪰",WJ="≽",UJ="≿",VJ="⪰",jJ="⪺",GJ="⪶",KJ="⋩",XJ="≿",YJ="∋",ZJ="∑",JJ="∑",QJ="♪",eQ="¹",tQ="²",nQ="³",rQ="⊃",iQ="⋑",oQ="⪾",sQ="⫘",lQ="⫆",aQ="⊇",cQ="⫄",uQ="⊃",fQ="⊇",dQ="⟉",hQ="⫗",pQ="⥻",gQ="⫂",vQ="⫌",mQ="⊋",yQ="⫀",bQ="⊃",wQ="⋑",xQ="⊇",_Q="⫆",SQ="⊋",kQ="⫌",CQ="⫈",TQ="⫔",EQ="⫖",LQ="⤦",AQ="↙",MQ="⇙",NQ="↙",$Q="⤪",PQ="ß",OQ=" ",RQ="⌖",DQ="Τ",zQ="τ",IQ="⎴",FQ="Ť",HQ="ť",qQ="Ţ",BQ="ţ",WQ="Т",UQ="т",VQ="⃛",jQ="⌕",GQ="𝔗",KQ="𝔱",XQ="∴",YQ="∴",ZQ="∴",JQ="Θ",QQ="θ",eee="ϑ",tee="ϑ",nee="≈",ree="∼",iee="  ",oee=" ",see=" ",lee="≈",aee="∼",cee="Þ",uee="þ",fee="˜",dee="∼",hee="≃",pee="≅",gee="≈",vee="⨱",mee="⊠",yee="×",bee="⨰",wee="∭",xee="⤨",_ee="⌶",See="⫱",kee="⊤",Cee="𝕋",Tee="𝕥",Eee="⫚",Lee="⤩",Aee="‴",Mee="™",Nee="™",$ee="▵",Pee="▿",Oee="◃",Ree="⊴",Dee="≜",zee="▹",Iee="⊵",Fee="◬",Hee="≜",qee="⨺",Bee="⃛",Wee="⨹",Uee="⧍",Vee="⨻",jee="⏢",Gee="𝒯",Kee="𝓉",Xee="Ц",Yee="ц",Zee="Ћ",Jee="ћ",Qee="Ŧ",ete="ŧ",tte="≬",nte="↞",rte="↠",ite="Ú",ote="ú",ste="↑",lte="↟",ate="⇑",cte="⥉",ute="Ў",fte="ў",dte="Ŭ",hte="ŭ",pte="Û",gte="û",vte="У",mte="у",yte="⇅",bte="Ű",wte="ű",xte="⥮",_te="⥾",Ste="𝔘",kte="𝔲",Cte="Ù",Tte="ù",Ete="⥣",Lte="↿",Ate="↾",Mte="▀",Nte="⌜",$te="⌜",Pte="⌏",Ote="◸",Rte="Ū",Dte="ū",zte="¨",Ite="_",Fte="⏟",Hte="⎵",qte="⏝",Bte="⋃",Wte="⊎",Ute="Ų",Vte="ų",jte="𝕌",Gte="𝕦",Kte="⤒",Xte="↑",Yte="↑",Zte="⇑",Jte="⇅",Qte="↕",ene="↕",tne="⇕",nne="⥮",rne="↿",ine="↾",one="⊎",sne="↖",lne="↗",ane="υ",cne="ϒ",une="ϒ",fne="Υ",dne="υ",hne="↥",pne="⊥",gne="⇈",vne="⌝",mne="⌝",yne="⌎",bne="Ů",wne="ů",xne="◹",_ne="𝒰",Sne="𝓊",kne="⋰",Cne="Ũ",Tne="ũ",Ene="▵",Lne="▴",Ane="⇈",Mne="Ü",Nne="ü",$ne="⦧",Pne="⦜",One="ϵ",Rne="ϰ",Dne="∅",zne="ϕ",Ine="ϖ",Fne="∝",Hne="↕",qne="⇕",Bne="ϱ",Wne="ς",Une="⊊︀",Vne="⫋︀",jne="⊋︀",Gne="⫌︀",Kne="ϑ",Xne="⊲",Yne="⊳",Zne="⫨",Jne="⫫",Qne="⫩",ere="В",tre="в",nre="⊢",rre="⊨",ire="⊩",ore="⊫",sre="⫦",lre="⊻",are="∨",cre="⋁",ure="≚",fre="⋮",dre="|",hre="‖",pre="|",gre="‖",vre="∣",mre="|",yre="❘",bre="≀",wre=" ",xre="𝔙",_re="𝔳",Sre="⊲",kre="⊂⃒",Cre="⊃⃒",Tre="𝕍",Ere="𝕧",Lre="∝",Are="⊳",Mre="𝒱",Nre="𝓋",$re="⫋︀",Pre="⊊︀",Ore="⫌︀",Rre="⊋︀",Dre="⊪",zre="⦚",Ire="Ŵ",Fre="ŵ",Hre="⩟",qre="∧",Bre="⋀",Wre="≙",Ure="℘",Vre="𝔚",jre="𝔴",Gre="𝕎",Kre="𝕨",Xre="℘",Yre="≀",Zre="≀",Jre="𝒲",Qre="𝓌",eie="⋂",tie="◯",nie="⋃",rie="▽",iie="𝔛",oie="𝔵",sie="⟷",lie="⟺",aie="Ξ",cie="ξ",uie="⟵",fie="⟸",die="⟼",hie="⋻",pie="⨀",gie="𝕏",vie="𝕩",mie="⨁",yie="⨂",bie="⟶",wie="⟹",xie="𝒳",_ie="𝓍",Sie="⨆",kie="⨄",Cie="△",Tie="⋁",Eie="⋀",Lie="Ý",Aie="ý",Mie="Я",Nie="я",$ie="Ŷ",Pie="ŷ",Oie="Ы",Rie="ы",Die="¥",zie="𝔜",Iie="𝔶",Fie="Ї",Hie="ї",qie="𝕐",Bie="𝕪",Wie="𝒴",Uie="𝓎",Vie="Ю",jie="ю",Gie="ÿ",Kie="Ÿ",Xie="Ź",Yie="ź",Zie="Ž",Jie="ž",Qie="З",eoe="з",toe="Ż",noe="ż",roe="ℨ",ioe="​",ooe="Ζ",soe="ζ",loe="𝔷",aoe="ℨ",coe="Ж",uoe="ж",foe="⇝",doe="𝕫",hoe="ℤ",poe="𝒵",goe="𝓏",voe="‍",moe="‌",Vb={Aacute:tL,aacute:nL,Abreve:rL,abreve:iL,ac:oL,acd:sL,acE:lL,Acirc:aL,acirc:cL,acute:uL,Acy:fL,acy:dL,AElig:hL,aelig:pL,af:gL,Afr:vL,afr:mL,Agrave:yL,agrave:bL,alefsym:wL,aleph:xL,Alpha:_L,alpha:SL,Amacr:kL,amacr:CL,amalg:TL,amp:EL,AMP:LL,andand:AL,And:ML,and:NL,andd:$L,andslope:PL,andv:OL,ang:RL,ange:DL,angle:zL,angmsdaa:IL,angmsdab:FL,angmsdac:HL,angmsdad:qL,angmsdae:BL,angmsdaf:WL,angmsdag:UL,angmsdah:VL,angmsd:jL,angrt:GL,angrtvb:KL,angrtvbd:XL,angsph:YL,angst:ZL,angzarr:JL,Aogon:QL,aogon:eA,Aopf:tA,aopf:nA,apacir:rA,ap:iA,apE:oA,ape:sA,apid:lA,apos:aA,ApplyFunction:cA,approx:uA,approxeq:fA,Aring:dA,aring:hA,Ascr:pA,ascr:gA,Assign:vA,ast:mA,asymp:yA,asympeq:bA,Atilde:wA,atilde:xA,Auml:_A,auml:SA,awconint:kA,awint:CA,backcong:TA,backepsilon:EA,backprime:LA,backsim:AA,backsimeq:MA,Backslash:NA,Barv:$A,barvee:PA,barwed:OA,Barwed:RA,barwedge:DA,bbrk:zA,bbrktbrk:IA,bcong:FA,Bcy:HA,bcy:qA,bdquo:BA,becaus:WA,because:UA,Because:VA,bemptyv:jA,bepsi:GA,bernou:KA,Bernoullis:XA,Beta:YA,beta:ZA,beth:JA,between:QA,Bfr:eM,bfr:tM,bigcap:nM,bigcirc:rM,bigcup:iM,bigodot:oM,bigoplus:sM,bigotimes:lM,bigsqcup:aM,bigstar:cM,bigtriangledown:uM,bigtriangleup:fM,biguplus:dM,bigvee:hM,bigwedge:pM,bkarow:gM,blacklozenge:vM,blacksquare:mM,blacktriangle:yM,blacktriangledown:bM,blacktriangleleft:wM,blacktriangleright:xM,blank:_M,blk12:SM,blk14:kM,blk34:CM,block:TM,bne:EM,bnequiv:LM,bNot:AM,bnot:MM,Bopf:NM,bopf:$M,bot:PM,bottom:OM,bowtie:RM,boxbox:DM,boxdl:zM,boxdL:IM,boxDl:FM,boxDL:HM,boxdr:qM,boxdR:BM,boxDr:WM,boxDR:UM,boxh:VM,boxH:jM,boxhd:GM,boxHd:KM,boxhD:XM,boxHD:YM,boxhu:ZM,boxHu:JM,boxhU:QM,boxHU:eN,boxminus:tN,boxplus:nN,boxtimes:rN,boxul:iN,boxuL:oN,boxUl:sN,boxUL:lN,boxur:aN,boxuR:cN,boxUr:uN,boxUR:fN,boxv:dN,boxV:hN,boxvh:pN,boxvH:gN,boxVh:vN,boxVH:mN,boxvl:yN,boxvL:bN,boxVl:wN,boxVL:xN,boxvr:_N,boxvR:SN,boxVr:kN,boxVR:CN,bprime:TN,breve:EN,Breve:LN,brvbar:AN,bscr:MN,Bscr:NN,bsemi:$N,bsim:PN,bsime:ON,bsolb:RN,bsol:DN,bsolhsub:zN,bull:IN,bullet:FN,bump:HN,bumpE:qN,bumpe:BN,Bumpeq:WN,bumpeq:UN,Cacute:VN,cacute:jN,capand:GN,capbrcup:KN,capcap:XN,cap:YN,Cap:ZN,capcup:JN,capdot:QN,CapitalDifferentialD:e$,caps:t$,caret:n$,caron:r$,Cayleys:i$,ccaps:o$,Ccaron:s$,ccaron:l$,Ccedil:a$,ccedil:c$,Ccirc:u$,ccirc:f$,Cconint:d$,ccups:h$,ccupssm:p$,Cdot:g$,cdot:v$,cedil:m$,Cedilla:y$,cemptyv:b$,cent:w$,centerdot:x$,CenterDot:_$,cfr:S$,Cfr:k$,CHcy:C$,chcy:T$,check:E$,checkmark:L$,Chi:A$,chi:M$,circ:N$,circeq:$$,circlearrowleft:P$,circlearrowright:O$,circledast:R$,circledcirc:D$,circleddash:z$,CircleDot:I$,circledR:F$,circledS:H$,CircleMinus:q$,CirclePlus:B$,CircleTimes:W$,cir:U$,cirE:V$,cire:j$,cirfnint:G$,cirmid:K$,cirscir:X$,ClockwiseContourIntegral:Y$,CloseCurlyDoubleQuote:Z$,CloseCurlyQuote:J$,clubs:Q$,clubsuit:eP,colon:tP,Colon:nP,Colone:rP,colone:iP,coloneq:oP,comma:sP,commat:lP,comp:aP,compfn:cP,complement:uP,complexes:fP,cong:dP,congdot:hP,Congruent:pP,conint:gP,Conint:vP,ContourIntegral:mP,copf:yP,Copf:bP,coprod:wP,Coproduct:xP,copy:_P,COPY:SP,copysr:kP,CounterClockwiseContourIntegral:CP,crarr:TP,cross:EP,Cross:LP,Cscr:AP,cscr:MP,csub:NP,csube:$P,csup:PP,csupe:OP,ctdot:RP,cudarrl:DP,cudarrr:zP,cuepr:IP,cuesc:FP,cularr:HP,cularrp:qP,cupbrcap:BP,cupcap:WP,CupCap:UP,cup:VP,Cup:jP,cupcup:GP,cupdot:KP,cupor:XP,cups:YP,curarr:ZP,curarrm:JP,curlyeqprec:QP,curlyeqsucc:eO,curlyvee:tO,curlywedge:nO,curren:rO,curvearrowleft:iO,curvearrowright:oO,cuvee:sO,cuwed:lO,cwconint:aO,cwint:cO,cylcty:uO,dagger:fO,Dagger:dO,daleth:hO,darr:pO,Darr:gO,dArr:vO,dash:mO,Dashv:yO,dashv:bO,dbkarow:wO,dblac:xO,Dcaron:_O,dcaron:SO,Dcy:kO,dcy:CO,ddagger:TO,ddarr:EO,DD:LO,dd:AO,DDotrahd:MO,ddotseq:NO,deg:$O,Del:PO,Delta:OO,delta:RO,demptyv:DO,dfisht:zO,Dfr:IO,dfr:FO,dHar:HO,dharl:qO,dharr:BO,DiacriticalAcute:WO,DiacriticalDot:UO,DiacriticalDoubleAcute:VO,DiacriticalGrave:jO,DiacriticalTilde:GO,diam:KO,diamond:XO,Diamond:YO,diamondsuit:ZO,diams:JO,die:QO,DifferentialD:eR,digamma:tR,disin:nR,div:rR,divide:iR,divideontimes:oR,divonx:sR,DJcy:lR,djcy:aR,dlcorn:cR,dlcrop:uR,dollar:fR,Dopf:dR,dopf:hR,Dot:pR,dot:gR,DotDot:vR,doteq:mR,doteqdot:yR,DotEqual:bR,dotminus:wR,dotplus:xR,dotsquare:_R,doublebarwedge:SR,DoubleContourIntegral:kR,DoubleDot:CR,DoubleDownArrow:TR,DoubleLeftArrow:ER,DoubleLeftRightArrow:LR,DoubleLeftTee:AR,DoubleLongLeftArrow:MR,DoubleLongLeftRightArrow:NR,DoubleLongRightArrow:$R,DoubleRightArrow:PR,DoubleRightTee:OR,DoubleUpArrow:RR,DoubleUpDownArrow:DR,DoubleVerticalBar:zR,DownArrowBar:IR,downarrow:FR,DownArrow:HR,Downarrow:qR,DownArrowUpArrow:BR,DownBreve:WR,downdownarrows:UR,downharpoonleft:VR,downharpoonright:jR,DownLeftRightVector:GR,DownLeftTeeVector:KR,DownLeftVectorBar:XR,DownLeftVector:YR,DownRightTeeVector:ZR,DownRightVectorBar:JR,DownRightVector:QR,DownTeeArrow:eD,DownTee:tD,drbkarow:nD,drcorn:rD,drcrop:iD,Dscr:oD,dscr:sD,DScy:lD,dscy:aD,dsol:cD,Dstrok:uD,dstrok:fD,dtdot:dD,dtri:hD,dtrif:pD,duarr:gD,duhar:vD,dwangle:mD,DZcy:yD,dzcy:bD,dzigrarr:wD,Eacute:xD,eacute:_D,easter:SD,Ecaron:kD,ecaron:CD,Ecirc:TD,ecirc:ED,ecir:LD,ecolon:AD,Ecy:MD,ecy:ND,eDDot:$D,Edot:PD,edot:OD,eDot:RD,ee:DD,efDot:zD,Efr:ID,efr:FD,eg:HD,Egrave:qD,egrave:BD,egs:WD,egsdot:UD,el:VD,Element:jD,elinters:GD,ell:KD,els:XD,elsdot:YD,Emacr:ZD,emacr:JD,empty:QD,emptyset:ez,EmptySmallSquare:tz,emptyv:nz,EmptyVerySmallSquare:rz,emsp13:iz,emsp14:oz,emsp:sz,ENG:lz,eng:az,ensp:cz,Eogon:uz,eogon:fz,Eopf:dz,eopf:hz,epar:pz,eparsl:gz,eplus:vz,epsi:mz,Epsilon:yz,epsilon:bz,epsiv:wz,eqcirc:xz,eqcolon:_z,eqsim:Sz,eqslantgtr:kz,eqslantless:Cz,Equal:Tz,equals:Ez,EqualTilde:Lz,equest:Az,Equilibrium:Mz,equiv:Nz,equivDD:$z,eqvparsl:Pz,erarr:Oz,erDot:Rz,escr:Dz,Escr:zz,esdot:Iz,Esim:Fz,esim:Hz,Eta:qz,eta:Bz,ETH:Wz,eth:Uz,Euml:Vz,euml:jz,euro:Gz,excl:Kz,exist:Xz,Exists:Yz,expectation:Zz,exponentiale:Jz,ExponentialE:Qz,fallingdotseq:e2,Fcy:t2,fcy:n2,female:r2,ffilig:i2,fflig:o2,ffllig:s2,Ffr:l2,ffr:a2,filig:c2,FilledSmallSquare:u2,FilledVerySmallSquare:f2,fjlig:d2,flat:h2,fllig:p2,fltns:g2,fnof:v2,Fopf:m2,fopf:y2,forall:b2,ForAll:w2,fork:x2,forkv:_2,Fouriertrf:S2,fpartint:k2,frac12:C2,frac13:T2,frac14:E2,frac15:L2,frac16:A2,frac18:M2,frac23:N2,frac25:$2,frac34:P2,frac35:O2,frac38:R2,frac45:D2,frac56:z2,frac58:I2,frac78:F2,frasl:H2,frown:q2,fscr:B2,Fscr:W2,gacute:U2,Gamma:V2,gamma:j2,Gammad:G2,gammad:K2,gap:X2,Gbreve:Y2,gbreve:Z2,Gcedil:J2,Gcirc:Q2,gcirc:eI,Gcy:tI,gcy:nI,Gdot:rI,gdot:iI,ge:oI,gE:sI,gEl:lI,gel:aI,geq:cI,geqq:uI,geqslant:fI,gescc:dI,ges:hI,gesdot:pI,gesdoto:gI,gesdotol:vI,gesl:mI,gesles:yI,Gfr:bI,gfr:wI,gg:xI,Gg:_I,ggg:SI,gimel:kI,GJcy:CI,gjcy:TI,gla:EI,gl:LI,glE:AI,glj:MI,gnap:NI,gnapprox:$I,gne:PI,gnE:OI,gneq:RI,gneqq:DI,gnsim:zI,Gopf:II,gopf:FI,grave:HI,GreaterEqual:qI,GreaterEqualLess:BI,GreaterFullEqual:WI,GreaterGreater:UI,GreaterLess:VI,GreaterSlantEqual:jI,GreaterTilde:GI,Gscr:KI,gscr:XI,gsim:YI,gsime:ZI,gsiml:JI,gtcc:QI,gtcir:eF,gt:tF,GT:nF,Gt:rF,gtdot:iF,gtlPar:oF,gtquest:sF,gtrapprox:lF,gtrarr:aF,gtrdot:cF,gtreqless:uF,gtreqqless:fF,gtrless:dF,gtrsim:hF,gvertneqq:pF,gvnE:gF,Hacek:vF,hairsp:mF,half:yF,hamilt:bF,HARDcy:wF,hardcy:xF,harrcir:_F,harr:SF,hArr:kF,harrw:CF,Hat:TF,hbar:EF,Hcirc:LF,hcirc:AF,hearts:MF,heartsuit:NF,hellip:$F,hercon:PF,hfr:OF,Hfr:RF,HilbertSpace:DF,hksearow:zF,hkswarow:IF,hoarr:FF,homtht:HF,hookleftarrow:qF,hookrightarrow:BF,hopf:WF,Hopf:UF,horbar:VF,HorizontalLine:jF,hscr:GF,Hscr:KF,hslash:XF,Hstrok:YF,hstrok:ZF,HumpDownHump:JF,HumpEqual:QF,hybull:eH,hyphen:tH,Iacute:nH,iacute:rH,ic:iH,Icirc:oH,icirc:sH,Icy:lH,icy:aH,Idot:cH,IEcy:uH,iecy:fH,iexcl:dH,iff:hH,ifr:pH,Ifr:gH,Igrave:vH,igrave:mH,ii:yH,iiiint:bH,iiint:wH,iinfin:xH,iiota:_H,IJlig:SH,ijlig:kH,Imacr:CH,imacr:TH,image:EH,ImaginaryI:LH,imagline:AH,imagpart:MH,imath:NH,Im:$H,imof:PH,imped:OH,Implies:RH,incare:DH,in:"∈",infin:zH,infintie:IH,inodot:FH,intcal:HH,int:qH,Int:BH,integers:WH,Integral:UH,intercal:VH,Intersection:jH,intlarhk:GH,intprod:KH,InvisibleComma:XH,InvisibleTimes:YH,IOcy:ZH,iocy:JH,Iogon:QH,iogon:eq,Iopf:tq,iopf:nq,Iota:rq,iota:iq,iprod:oq,iquest:sq,iscr:lq,Iscr:aq,isin:cq,isindot:uq,isinE:fq,isins:dq,isinsv:hq,isinv:pq,it:gq,Itilde:vq,itilde:mq,Iukcy:yq,iukcy:bq,Iuml:wq,iuml:xq,Jcirc:_q,jcirc:Sq,Jcy:kq,jcy:Cq,Jfr:Tq,jfr:Eq,jmath:Lq,Jopf:Aq,jopf:Mq,Jscr:Nq,jscr:$q,Jsercy:Pq,jsercy:Oq,Jukcy:Rq,jukcy:Dq,Kappa:zq,kappa:Iq,kappav:Fq,Kcedil:Hq,kcedil:qq,Kcy:Bq,kcy:Wq,Kfr:Uq,kfr:Vq,kgreen:jq,KHcy:Gq,khcy:Kq,KJcy:Xq,kjcy:Yq,Kopf:Zq,kopf:Jq,Kscr:Qq,kscr:eB,lAarr:tB,Lacute:nB,lacute:rB,laemptyv:iB,lagran:oB,Lambda:sB,lambda:lB,lang:aB,Lang:cB,langd:uB,langle:fB,lap:dB,Laplacetrf:hB,laquo:pB,larrb:gB,larrbfs:vB,larr:mB,Larr:yB,lArr:bB,larrfs:wB,larrhk:xB,larrlp:_B,larrpl:SB,larrsim:kB,larrtl:CB,latail:TB,lAtail:EB,lat:LB,late:AB,lates:MB,lbarr:NB,lBarr:$B,lbbrk:PB,lbrace:OB,lbrack:RB,lbrke:DB,lbrksld:zB,lbrkslu:IB,Lcaron:FB,lcaron:HB,Lcedil:qB,lcedil:BB,lceil:WB,lcub:UB,Lcy:VB,lcy:jB,ldca:GB,ldquo:KB,ldquor:XB,ldrdhar:YB,ldrushar:ZB,ldsh:JB,le:QB,lE:e3,LeftAngleBracket:t3,LeftArrowBar:n3,leftarrow:r3,LeftArrow:i3,Leftarrow:o3,LeftArrowRightArrow:s3,leftarrowtail:l3,LeftCeiling:a3,LeftDoubleBracket:c3,LeftDownTeeVector:u3,LeftDownVectorBar:f3,LeftDownVector:d3,LeftFloor:h3,leftharpoondown:p3,leftharpoonup:g3,leftleftarrows:v3,leftrightarrow:m3,LeftRightArrow:y3,Leftrightarrow:b3,leftrightarrows:w3,leftrightharpoons:x3,leftrightsquigarrow:_3,LeftRightVector:S3,LeftTeeArrow:k3,LeftTee:C3,LeftTeeVector:T3,leftthreetimes:E3,LeftTriangleBar:L3,LeftTriangle:A3,LeftTriangleEqual:M3,LeftUpDownVector:N3,LeftUpTeeVector:$3,LeftUpVectorBar:P3,LeftUpVector:O3,LeftVectorBar:R3,LeftVector:D3,lEg:z3,leg:I3,leq:F3,leqq:H3,leqslant:q3,lescc:B3,les:W3,lesdot:U3,lesdoto:V3,lesdotor:j3,lesg:G3,lesges:K3,lessapprox:X3,lessdot:Y3,lesseqgtr:Z3,lesseqqgtr:J3,LessEqualGreater:Q3,LessFullEqual:e5,LessGreater:t5,lessgtr:n5,LessLess:r5,lesssim:i5,LessSlantEqual:o5,LessTilde:s5,lfisht:l5,lfloor:a5,Lfr:c5,lfr:u5,lg:f5,lgE:d5,lHar:h5,lhard:p5,lharu:g5,lharul:v5,lhblk:m5,LJcy:y5,ljcy:b5,llarr:w5,ll:x5,Ll:_5,llcorner:S5,Lleftarrow:k5,llhard:C5,lltri:T5,Lmidot:E5,lmidot:L5,lmoustache:A5,lmoust:M5,lnap:N5,lnapprox:$5,lne:P5,lnE:O5,lneq:R5,lneqq:D5,lnsim:z5,loang:I5,loarr:F5,lobrk:H5,longleftarrow:q5,LongLeftArrow:B5,Longleftarrow:W5,longleftrightarrow:U5,LongLeftRightArrow:V5,Longleftrightarrow:j5,longmapsto:G5,longrightarrow:K5,LongRightArrow:X5,Longrightarrow:Y5,looparrowleft:Z5,looparrowright:J5,lopar:Q5,Lopf:e8,lopf:t8,loplus:n8,lotimes:r8,lowast:i8,lowbar:o8,LowerLeftArrow:s8,LowerRightArrow:l8,loz:a8,lozenge:c8,lozf:u8,lpar:f8,lparlt:d8,lrarr:h8,lrcorner:p8,lrhar:g8,lrhard:v8,lrm:m8,lrtri:y8,lsaquo:b8,lscr:w8,Lscr:x8,lsh:_8,Lsh:S8,lsim:k8,lsime:C8,lsimg:T8,lsqb:E8,lsquo:L8,lsquor:A8,Lstrok:M8,lstrok:N8,ltcc:$8,ltcir:P8,lt:O8,LT:R8,Lt:D8,ltdot:z8,lthree:I8,ltimes:F8,ltlarr:H8,ltquest:q8,ltri:B8,ltrie:W8,ltrif:U8,ltrPar:V8,lurdshar:j8,luruhar:G8,lvertneqq:K8,lvnE:X8,macr:Y8,male:Z8,malt:J8,maltese:Q8,Map:"⤅",map:eW,mapsto:tW,mapstodown:nW,mapstoleft:rW,mapstoup:iW,marker:oW,mcomma:sW,Mcy:lW,mcy:aW,mdash:cW,mDDot:uW,measuredangle:fW,MediumSpace:dW,Mellintrf:hW,Mfr:pW,mfr:gW,mho:vW,micro:mW,midast:yW,midcir:bW,mid:wW,middot:xW,minusb:_W,minus:SW,minusd:kW,minusdu:CW,MinusPlus:TW,mlcp:EW,mldr:LW,mnplus:AW,models:MW,Mopf:NW,mopf:$W,mp:PW,mscr:OW,Mscr:RW,mstpos:DW,Mu:zW,mu:IW,multimap:FW,mumap:HW,nabla:qW,Nacute:BW,nacute:WW,nang:UW,nap:VW,napE:jW,napid:GW,napos:KW,napprox:XW,natural:YW,naturals:ZW,natur:JW,nbsp:QW,nbump:e4,nbumpe:t4,ncap:n4,Ncaron:r4,ncaron:i4,Ncedil:o4,ncedil:s4,ncong:l4,ncongdot:a4,ncup:c4,Ncy:u4,ncy:f4,ndash:d4,nearhk:h4,nearr:p4,neArr:g4,nearrow:v4,ne:m4,nedot:y4,NegativeMediumSpace:b4,NegativeThickSpace:w4,NegativeThinSpace:x4,NegativeVeryThinSpace:_4,nequiv:S4,nesear:k4,nesim:C4,NestedGreaterGreater:T4,NestedLessLess:E4,NewLine:L4,nexist:A4,nexists:M4,Nfr:N4,nfr:$4,ngE:P4,nge:O4,ngeq:R4,ngeqq:D4,ngeqslant:z4,nges:I4,nGg:F4,ngsim:H4,nGt:q4,ngt:B4,ngtr:W4,nGtv:U4,nharr:V4,nhArr:j4,nhpar:G4,ni:K4,nis:X4,nisd:Y4,niv:Z4,NJcy:J4,njcy:Q4,nlarr:eU,nlArr:tU,nldr:nU,nlE:rU,nle:iU,nleftarrow:oU,nLeftarrow:sU,nleftrightarrow:lU,nLeftrightarrow:aU,nleq:cU,nleqq:uU,nleqslant:fU,nles:dU,nless:hU,nLl:pU,nlsim:gU,nLt:vU,nlt:mU,nltri:yU,nltrie:bU,nLtv:wU,nmid:xU,NoBreak:_U,NonBreakingSpace:SU,nopf:kU,Nopf:CU,Not:TU,not:EU,NotCongruent:LU,NotCupCap:AU,NotDoubleVerticalBar:MU,NotElement:NU,NotEqual:$U,NotEqualTilde:PU,NotExists:OU,NotGreater:RU,NotGreaterEqual:DU,NotGreaterFullEqual:zU,NotGreaterGreater:IU,NotGreaterLess:FU,NotGreaterSlantEqual:HU,NotGreaterTilde:qU,NotHumpDownHump:BU,NotHumpEqual:WU,notin:UU,notindot:VU,notinE:jU,notinva:GU,notinvb:KU,notinvc:XU,NotLeftTriangleBar:YU,NotLeftTriangle:ZU,NotLeftTriangleEqual:JU,NotLess:QU,NotLessEqual:e6,NotLessGreater:t6,NotLessLess:n6,NotLessSlantEqual:r6,NotLessTilde:i6,NotNestedGreaterGreater:o6,NotNestedLessLess:s6,notni:l6,notniva:a6,notnivb:c6,notnivc:u6,NotPrecedes:f6,NotPrecedesEqual:d6,NotPrecedesSlantEqual:h6,NotReverseElement:p6,NotRightTriangleBar:g6,NotRightTriangle:v6,NotRightTriangleEqual:m6,NotSquareSubset:y6,NotSquareSubsetEqual:b6,NotSquareSuperset:w6,NotSquareSupersetEqual:x6,NotSubset:_6,NotSubsetEqual:S6,NotSucceeds:k6,NotSucceedsEqual:C6,NotSucceedsSlantEqual:T6,NotSucceedsTilde:E6,NotSuperset:L6,NotSupersetEqual:A6,NotTilde:M6,NotTildeEqual:N6,NotTildeFullEqual:$6,NotTildeTilde:P6,NotVerticalBar:O6,nparallel:R6,npar:D6,nparsl:z6,npart:I6,npolint:F6,npr:H6,nprcue:q6,nprec:B6,npreceq:W6,npre:U6,nrarrc:V6,nrarr:j6,nrArr:G6,nrarrw:K6,nrightarrow:X6,nRightarrow:Y6,nrtri:Z6,nrtrie:J6,nsc:Q6,nsccue:eV,nsce:tV,Nscr:nV,nscr:rV,nshortmid:iV,nshortparallel:oV,nsim:sV,nsime:lV,nsimeq:aV,nsmid:cV,nspar:uV,nsqsube:fV,nsqsupe:dV,nsub:hV,nsubE:pV,nsube:gV,nsubset:vV,nsubseteq:mV,nsubseteqq:yV,nsucc:bV,nsucceq:wV,nsup:xV,nsupE:_V,nsupe:SV,nsupset:kV,nsupseteq:CV,nsupseteqq:TV,ntgl:EV,Ntilde:LV,ntilde:AV,ntlg:MV,ntriangleleft:NV,ntrianglelefteq:$V,ntriangleright:PV,ntrianglerighteq:OV,Nu:RV,nu:DV,num:zV,numero:IV,numsp:FV,nvap:HV,nvdash:qV,nvDash:BV,nVdash:WV,nVDash:UV,nvge:VV,nvgt:jV,nvHarr:GV,nvinfin:KV,nvlArr:XV,nvle:YV,nvlt:ZV,nvltrie:JV,nvrArr:QV,nvrtrie:ej,nvsim:tj,nwarhk:nj,nwarr:rj,nwArr:ij,nwarrow:oj,nwnear:sj,Oacute:lj,oacute:aj,oast:cj,Ocirc:uj,ocirc:fj,ocir:dj,Ocy:hj,ocy:pj,odash:gj,Odblac:vj,odblac:mj,odiv:yj,odot:bj,odsold:wj,OElig:xj,oelig:_j,ofcir:Sj,Ofr:kj,ofr:Cj,ogon:Tj,Ograve:Ej,ograve:Lj,ogt:Aj,ohbar:Mj,ohm:Nj,oint:$j,olarr:Pj,olcir:Oj,olcross:Rj,oline:Dj,olt:zj,Omacr:Ij,omacr:Fj,Omega:Hj,omega:qj,Omicron:Bj,omicron:Wj,omid:Uj,ominus:Vj,Oopf:jj,oopf:Gj,opar:Kj,OpenCurlyDoubleQuote:Xj,OpenCurlyQuote:Yj,operp:Zj,oplus:Jj,orarr:Qj,Or:eG,or:tG,ord:nG,order:rG,orderof:iG,ordf:oG,ordm:sG,origof:lG,oror:aG,orslope:cG,orv:uG,oS:fG,Oscr:dG,oscr:hG,Oslash:pG,oslash:gG,osol:vG,Otilde:mG,otilde:yG,otimesas:bG,Otimes:wG,otimes:xG,Ouml:_G,ouml:SG,ovbar:kG,OverBar:CG,OverBrace:TG,OverBracket:EG,OverParenthesis:LG,para:AG,parallel:MG,par:NG,parsim:$G,parsl:PG,part:OG,PartialD:RG,Pcy:DG,pcy:zG,percnt:IG,period:FG,permil:HG,perp:qG,pertenk:BG,Pfr:WG,pfr:UG,Phi:VG,phi:jG,phiv:GG,phmmat:KG,phone:XG,Pi:YG,pi:ZG,pitchfork:JG,piv:QG,planck:e9,planckh:t9,plankv:n9,plusacir:r9,plusb:i9,pluscir:o9,plus:s9,plusdo:l9,plusdu:a9,pluse:c9,PlusMinus:u9,plusmn:f9,plussim:d9,plustwo:h9,pm:p9,Poincareplane:g9,pointint:v9,popf:m9,Popf:y9,pound:b9,prap:w9,Pr:x9,pr:_9,prcue:S9,precapprox:k9,prec:C9,preccurlyeq:T9,Precedes:E9,PrecedesEqual:L9,PrecedesSlantEqual:A9,PrecedesTilde:M9,preceq:N9,precnapprox:$9,precneqq:P9,precnsim:O9,pre:R9,prE:D9,precsim:z9,prime:I9,Prime:F9,primes:H9,prnap:q9,prnE:B9,prnsim:W9,prod:U9,Product:V9,profalar:j9,profline:G9,profsurf:K9,prop:X9,Proportional:Y9,Proportion:Z9,propto:J9,prsim:Q9,prurel:e7,Pscr:t7,pscr:n7,Psi:r7,psi:i7,puncsp:o7,Qfr:s7,qfr:l7,qint:a7,qopf:c7,Qopf:u7,qprime:f7,Qscr:d7,qscr:h7,quaternions:p7,quatint:g7,quest:v7,questeq:m7,quot:y7,QUOT:b7,rAarr:w7,race:x7,Racute:_7,racute:S7,radic:k7,raemptyv:C7,rang:T7,Rang:E7,rangd:L7,range:A7,rangle:M7,raquo:N7,rarrap:$7,rarrb:P7,rarrbfs:O7,rarrc:R7,rarr:D7,Rarr:z7,rArr:I7,rarrfs:F7,rarrhk:H7,rarrlp:q7,rarrpl:B7,rarrsim:W7,Rarrtl:U7,rarrtl:V7,rarrw:j7,ratail:G7,rAtail:K7,ratio:X7,rationals:Y7,rbarr:Z7,rBarr:J7,RBarr:Q7,rbbrk:eK,rbrace:tK,rbrack:nK,rbrke:rK,rbrksld:iK,rbrkslu:oK,Rcaron:sK,rcaron:lK,Rcedil:aK,rcedil:cK,rceil:uK,rcub:fK,Rcy:dK,rcy:hK,rdca:pK,rdldhar:gK,rdquo:vK,rdquor:mK,rdsh:yK,real:bK,realine:wK,realpart:xK,reals:_K,Re:SK,rect:kK,reg:CK,REG:TK,ReverseElement:EK,ReverseEquilibrium:LK,ReverseUpEquilibrium:AK,rfisht:MK,rfloor:NK,rfr:$K,Rfr:PK,rHar:OK,rhard:RK,rharu:DK,rharul:zK,Rho:IK,rho:FK,rhov:HK,RightAngleBracket:qK,RightArrowBar:BK,rightarrow:WK,RightArrow:UK,Rightarrow:VK,RightArrowLeftArrow:jK,rightarrowtail:GK,RightCeiling:KK,RightDoubleBracket:XK,RightDownTeeVector:YK,RightDownVectorBar:ZK,RightDownVector:JK,RightFloor:QK,rightharpoondown:eX,rightharpoonup:tX,rightleftarrows:nX,rightleftharpoons:rX,rightrightarrows:iX,rightsquigarrow:oX,RightTeeArrow:sX,RightTee:lX,RightTeeVector:aX,rightthreetimes:cX,RightTriangleBar:uX,RightTriangle:fX,RightTriangleEqual:dX,RightUpDownVector:hX,RightUpTeeVector:pX,RightUpVectorBar:gX,RightUpVector:vX,RightVectorBar:mX,RightVector:yX,ring:bX,risingdotseq:wX,rlarr:xX,rlhar:_X,rlm:SX,rmoustache:kX,rmoust:CX,rnmid:TX,roang:EX,roarr:LX,robrk:AX,ropar:MX,ropf:NX,Ropf:$X,roplus:PX,rotimes:OX,RoundImplies:RX,rpar:DX,rpargt:zX,rppolint:IX,rrarr:FX,Rrightarrow:HX,rsaquo:qX,rscr:BX,Rscr:WX,rsh:UX,Rsh:VX,rsqb:jX,rsquo:GX,rsquor:KX,rthree:XX,rtimes:YX,rtri:ZX,rtrie:JX,rtrif:QX,rtriltri:eY,RuleDelayed:tY,ruluhar:nY,rx:rY,Sacute:iY,sacute:oY,sbquo:sY,scap:lY,Scaron:aY,scaron:cY,Sc:uY,sc:fY,sccue:dY,sce:hY,scE:pY,Scedil:gY,scedil:vY,Scirc:mY,scirc:yY,scnap:bY,scnE:wY,scnsim:xY,scpolint:_Y,scsim:SY,Scy:kY,scy:CY,sdotb:TY,sdot:EY,sdote:LY,searhk:AY,searr:MY,seArr:NY,searrow:$Y,sect:PY,semi:OY,seswar:RY,setminus:DY,setmn:zY,sext:IY,Sfr:FY,sfr:HY,sfrown:qY,sharp:BY,SHCHcy:WY,shchcy:UY,SHcy:VY,shcy:jY,ShortDownArrow:GY,ShortLeftArrow:KY,shortmid:XY,shortparallel:YY,ShortRightArrow:ZY,ShortUpArrow:JY,shy:QY,Sigma:eZ,sigma:tZ,sigmaf:nZ,sigmav:rZ,sim:iZ,simdot:oZ,sime:sZ,simeq:lZ,simg:aZ,simgE:cZ,siml:uZ,simlE:fZ,simne:dZ,simplus:hZ,simrarr:pZ,slarr:gZ,SmallCircle:vZ,smallsetminus:mZ,smashp:yZ,smeparsl:bZ,smid:wZ,smile:xZ,smt:_Z,smte:SZ,smtes:kZ,SOFTcy:CZ,softcy:TZ,solbar:EZ,solb:LZ,sol:AZ,Sopf:MZ,sopf:NZ,spades:$Z,spadesuit:PZ,spar:OZ,sqcap:RZ,sqcaps:DZ,sqcup:zZ,sqcups:IZ,Sqrt:FZ,sqsub:HZ,sqsube:qZ,sqsubset:BZ,sqsubseteq:WZ,sqsup:UZ,sqsupe:VZ,sqsupset:jZ,sqsupseteq:GZ,square:KZ,Square:XZ,SquareIntersection:YZ,SquareSubset:ZZ,SquareSubsetEqual:JZ,SquareSuperset:QZ,SquareSupersetEqual:eJ,SquareUnion:tJ,squarf:nJ,squ:rJ,squf:iJ,srarr:oJ,Sscr:sJ,sscr:lJ,ssetmn:aJ,ssmile:cJ,sstarf:uJ,Star:fJ,star:dJ,starf:hJ,straightepsilon:pJ,straightphi:gJ,strns:vJ,sub:mJ,Sub:yJ,subdot:bJ,subE:wJ,sube:xJ,subedot:_J,submult:SJ,subnE:kJ,subne:CJ,subplus:TJ,subrarr:EJ,subset:LJ,Subset:AJ,subseteq:MJ,subseteqq:NJ,SubsetEqual:$J,subsetneq:PJ,subsetneqq:OJ,subsim:RJ,subsub:DJ,subsup:zJ,succapprox:IJ,succ:FJ,succcurlyeq:HJ,Succeeds:qJ,SucceedsEqual:BJ,SucceedsSlantEqual:WJ,SucceedsTilde:UJ,succeq:VJ,succnapprox:jJ,succneqq:GJ,succnsim:KJ,succsim:XJ,SuchThat:YJ,sum:ZJ,Sum:JJ,sung:QJ,sup1:eQ,sup2:tQ,sup3:nQ,sup:rQ,Sup:iQ,supdot:oQ,supdsub:sQ,supE:lQ,supe:aQ,supedot:cQ,Superset:uQ,SupersetEqual:fQ,suphsol:dQ,suphsub:hQ,suplarr:pQ,supmult:gQ,supnE:vQ,supne:mQ,supplus:yQ,supset:bQ,Supset:wQ,supseteq:xQ,supseteqq:_Q,supsetneq:SQ,supsetneqq:kQ,supsim:CQ,supsub:TQ,supsup:EQ,swarhk:LQ,swarr:AQ,swArr:MQ,swarrow:NQ,swnwar:$Q,szlig:PQ,Tab:OQ,target:RQ,Tau:DQ,tau:zQ,tbrk:IQ,Tcaron:FQ,tcaron:HQ,Tcedil:qQ,tcedil:BQ,Tcy:WQ,tcy:UQ,tdot:VQ,telrec:jQ,Tfr:GQ,tfr:KQ,there4:XQ,therefore:YQ,Therefore:ZQ,Theta:JQ,theta:QQ,thetasym:eee,thetav:tee,thickapprox:nee,thicksim:ree,ThickSpace:iee,ThinSpace:oee,thinsp:see,thkap:lee,thksim:aee,THORN:cee,thorn:uee,tilde:fee,Tilde:dee,TildeEqual:hee,TildeFullEqual:pee,TildeTilde:gee,timesbar:vee,timesb:mee,times:yee,timesd:bee,tint:wee,toea:xee,topbot:_ee,topcir:See,top:kee,Topf:Cee,topf:Tee,topfork:Eee,tosa:Lee,tprime:Aee,trade:Mee,TRADE:Nee,triangle:$ee,triangledown:Pee,triangleleft:Oee,trianglelefteq:Ree,triangleq:Dee,triangleright:zee,trianglerighteq:Iee,tridot:Fee,trie:Hee,triminus:qee,TripleDot:Bee,triplus:Wee,trisb:Uee,tritime:Vee,trpezium:jee,Tscr:Gee,tscr:Kee,TScy:Xee,tscy:Yee,TSHcy:Zee,tshcy:Jee,Tstrok:Qee,tstrok:ete,twixt:tte,twoheadleftarrow:nte,twoheadrightarrow:rte,Uacute:ite,uacute:ote,uarr:ste,Uarr:lte,uArr:ate,Uarrocir:cte,Ubrcy:ute,ubrcy:fte,Ubreve:dte,ubreve:hte,Ucirc:pte,ucirc:gte,Ucy:vte,ucy:mte,udarr:yte,Udblac:bte,udblac:wte,udhar:xte,ufisht:_te,Ufr:Ste,ufr:kte,Ugrave:Cte,ugrave:Tte,uHar:Ete,uharl:Lte,uharr:Ate,uhblk:Mte,ulcorn:Nte,ulcorner:$te,ulcrop:Pte,ultri:Ote,Umacr:Rte,umacr:Dte,uml:zte,UnderBar:Ite,UnderBrace:Fte,UnderBracket:Hte,UnderParenthesis:qte,Union:Bte,UnionPlus:Wte,Uogon:Ute,uogon:Vte,Uopf:jte,uopf:Gte,UpArrowBar:Kte,uparrow:Xte,UpArrow:Yte,Uparrow:Zte,UpArrowDownArrow:Jte,updownarrow:Qte,UpDownArrow:ene,Updownarrow:tne,UpEquilibrium:nne,upharpoonleft:rne,upharpoonright:ine,uplus:one,UpperLeftArrow:sne,UpperRightArrow:lne,upsi:ane,Upsi:cne,upsih:une,Upsilon:fne,upsilon:dne,UpTeeArrow:hne,UpTee:pne,upuparrows:gne,urcorn:vne,urcorner:mne,urcrop:yne,Uring:bne,uring:wne,urtri:xne,Uscr:_ne,uscr:Sne,utdot:kne,Utilde:Cne,utilde:Tne,utri:Ene,utrif:Lne,uuarr:Ane,Uuml:Mne,uuml:Nne,uwangle:$ne,vangrt:Pne,varepsilon:One,varkappa:Rne,varnothing:Dne,varphi:zne,varpi:Ine,varpropto:Fne,varr:Hne,vArr:qne,varrho:Bne,varsigma:Wne,varsubsetneq:Une,varsubsetneqq:Vne,varsupsetneq:jne,varsupsetneqq:Gne,vartheta:Kne,vartriangleleft:Xne,vartriangleright:Yne,vBar:Zne,Vbar:Jne,vBarv:Qne,Vcy:ere,vcy:tre,vdash:nre,vDash:rre,Vdash:ire,VDash:ore,Vdashl:sre,veebar:lre,vee:are,Vee:cre,veeeq:ure,vellip:fre,verbar:dre,Verbar:hre,vert:pre,Vert:gre,VerticalBar:vre,VerticalLine:mre,VerticalSeparator:yre,VerticalTilde:bre,VeryThinSpace:wre,Vfr:xre,vfr:_re,vltri:Sre,vnsub:kre,vnsup:Cre,Vopf:Tre,vopf:Ere,vprop:Lre,vrtri:Are,Vscr:Mre,vscr:Nre,vsubnE:$re,vsubne:Pre,vsupnE:Ore,vsupne:Rre,Vvdash:Dre,vzigzag:zre,Wcirc:Ire,wcirc:Fre,wedbar:Hre,wedge:qre,Wedge:Bre,wedgeq:Wre,weierp:Ure,Wfr:Vre,wfr:jre,Wopf:Gre,wopf:Kre,wp:Xre,wr:Yre,wreath:Zre,Wscr:Jre,wscr:Qre,xcap:eie,xcirc:tie,xcup:nie,xdtri:rie,Xfr:iie,xfr:oie,xharr:sie,xhArr:lie,Xi:aie,xi:cie,xlarr:uie,xlArr:fie,xmap:die,xnis:hie,xodot:pie,Xopf:gie,xopf:vie,xoplus:mie,xotime:yie,xrarr:bie,xrArr:wie,Xscr:xie,xscr:_ie,xsqcup:Sie,xuplus:kie,xutri:Cie,xvee:Tie,xwedge:Eie,Yacute:Lie,yacute:Aie,YAcy:Mie,yacy:Nie,Ycirc:$ie,ycirc:Pie,Ycy:Oie,ycy:Rie,yen:Die,Yfr:zie,yfr:Iie,YIcy:Fie,yicy:Hie,Yopf:qie,yopf:Bie,Yscr:Wie,yscr:Uie,YUcy:Vie,yucy:jie,yuml:Gie,Yuml:Kie,Zacute:Xie,zacute:Yie,Zcaron:Zie,zcaron:Jie,Zcy:Qie,zcy:eoe,Zdot:toe,zdot:noe,zeetrf:roe,ZeroWidthSpace:ioe,Zeta:ooe,zeta:soe,zfr:loe,Zfr:aoe,ZHcy:coe,zhcy:uoe,zigrarr:foe,zopf:doe,Zopf:hoe,Zscr:poe,zscr:goe,zwj:voe,zwnj:moe},yoe="Á",boe="á",woe="Â",xoe="â",_oe="´",Soe="Æ",koe="æ",Coe="À",Toe="à",Eoe="&",Loe="&",Aoe="Å",Moe="å",Noe="Ã",$oe="ã",Poe="Ä",Ooe="ä",Roe="¦",Doe="Ç",zoe="ç",Ioe="¸",Foe="¢",Hoe="©",qoe="©",Boe="¤",Woe="°",Uoe="÷",Voe="É",joe="é",Goe="Ê",Koe="ê",Xoe="È",Yoe="è",Zoe="Ð",Joe="ð",Qoe="Ë",ese="ë",tse="½",nse="¼",rse="¾",ise=">",ose=">",sse="Í",lse="í",ase="Î",cse="î",use="¡",fse="Ì",dse="ì",hse="¿",pse="Ï",gse="ï",vse="«",mse="<",yse="<",bse="¯",wse="µ",xse="·",_se=" ",Sse="¬",kse="Ñ",Cse="ñ",Tse="Ó",Ese="ó",Lse="Ô",Ase="ô",Mse="Ò",Nse="ò",$se="ª",Pse="º",Ose="Ø",Rse="ø",Dse="Õ",zse="õ",Ise="Ö",Fse="ö",Hse="¶",qse="±",Bse="£",Wse='"',Use='"',Vse="»",jse="®",Gse="®",Kse="§",Xse="­",Yse="¹",Zse="²",Jse="³",Qse="ß",ele="Þ",tle="þ",nle="×",rle="Ú",ile="ú",ole="Û",sle="û",lle="Ù",ale="ù",cle="¨",ule="Ü",fle="ü",dle="Ý",hle="ý",ple="¥",gle="ÿ",vle={Aacute:yoe,aacute:boe,Acirc:woe,acirc:xoe,acute:_oe,AElig:Soe,aelig:koe,Agrave:Coe,agrave:Toe,amp:Eoe,AMP:Loe,Aring:Aoe,aring:Moe,Atilde:Noe,atilde:$oe,Auml:Poe,auml:Ooe,brvbar:Roe,Ccedil:Doe,ccedil:zoe,cedil:Ioe,cent:Foe,copy:Hoe,COPY:qoe,curren:Boe,deg:Woe,divide:Uoe,Eacute:Voe,eacute:joe,Ecirc:Goe,ecirc:Koe,Egrave:Xoe,egrave:Yoe,ETH:Zoe,eth:Joe,Euml:Qoe,euml:ese,frac12:tse,frac14:nse,frac34:rse,gt:ise,GT:ose,Iacute:sse,iacute:lse,Icirc:ase,icirc:cse,iexcl:use,Igrave:fse,igrave:dse,iquest:hse,Iuml:pse,iuml:gse,laquo:vse,lt:mse,LT:yse,macr:bse,micro:wse,middot:xse,nbsp:_se,not:Sse,Ntilde:kse,ntilde:Cse,Oacute:Tse,oacute:Ese,Ocirc:Lse,ocirc:Ase,Ograve:Mse,ograve:Nse,ordf:$se,ordm:Pse,Oslash:Ose,oslash:Rse,Otilde:Dse,otilde:zse,Ouml:Ise,ouml:Fse,para:Hse,plusmn:qse,pound:Bse,quot:Wse,QUOT:Use,raquo:Vse,reg:jse,REG:Gse,sect:Kse,shy:Xse,sup1:Yse,sup2:Zse,sup3:Jse,szlig:Qse,THORN:ele,thorn:tle,times:nle,Uacute:rle,uacute:ile,Ucirc:ole,ucirc:sle,Ugrave:lle,ugrave:ale,uml:cle,Uuml:ule,uuml:fle,Yacute:dle,yacute:hle,yen:ple,yuml:gle},mle="&",yle="'",ble=">",wle="<",xle='"',jb={amp:mle,apos:yle,gt:ble,lt:wle,quot:xle};var qh={};const _le={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 Sle=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qh,"__esModule",{value:!0});var Dm=Sle(_le),kle=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Cle(e){return e>=55296&&e<=57343||e>1114111?"�":(e in Dm.default&&(e=Dm.default[e]),kle(e))}qh.default=Cle;var Ou=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ci,"__esModule",{value:!0});ci.decodeHTML=ci.decodeHTMLStrict=ci.decodeXML=void 0;var Dd=Ou(Vb),Tle=Ou(vle),Ele=Ou(jb),zm=Ou(qh),Lle=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;ci.decodeXML=Gb(Ele.default);ci.decodeHTMLStrict=Gb(Dd.default);function Gb(e){var t=Kb(e);return function(r){return String(r).replace(Lle,t)}}var Im=function(e,t){return e<t?1:-1};ci.decodeHTML=function(){for(var e=Object.keys(Tle.default).sort(Im),t=Object.keys(Dd.default).sort(Im),r=0,o=0;r<t.length;r++)e[o]===t[r]?(t[r]+=";?",o++):t[r]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=Kb(Dd.default);function f(d){return d.substr(-1)!==";"&&(d+=";"),c(d)}return function(d){return String(d).replace(s,f)}}();function Kb(e){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?zm.default(parseInt(r.substr(3),16)):zm.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}var Gn={},Xb=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.escapeUTF8=Gn.escape=Gn.encodeNonAsciiHTML=Gn.encodeHTML=Gn.encodeXML=void 0;var Ale=Xb(jb),Yb=Jb(Ale.default),Zb=Qb(Yb);Gn.encodeXML=nw(Yb);var Mle=Xb(Vb),Bh=Jb(Mle.default),Nle=Qb(Bh);Gn.encodeHTML=Ple(Bh,Nle);Gn.encodeNonAsciiHTML=nw(Bh);function Jb(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function Qb(e){for(var t=[],r=[],o=0,s=Object.keys(e);o<s.length;o++){var c=s[o];c.length===1?t.push("\\"+c):r.push(c)}t.sort();for(var f=0;f<t.length-1;f++){for(var d=f;d<t.length-1&&t[d].charCodeAt(1)+1===t[d+1].charCodeAt(1);)d+=1;var h=1+d-f;h<3||t.splice(f,h,t[f]+"-"+t[d])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var ew=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,$le=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Ru(e){return"&#x"+(e.length>1?$le(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function Ple(e,t){return function(r){return r.replace(t,function(o){return e[o]}).replace(ew,Ru)}}var tw=new RegExp(Zb.source+"|"+ew.source,"g");function Ole(e){return e.replace(tw,Ru)}Gn.escape=Ole;function Rle(e){return e.replace(Zb,Ru)}Gn.escapeUTF8=Rle;function nw(e){return function(t){return t.replace(tw,function(r){return e[r]||Ru(r)})}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=ci,r=Gn;function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=Gn;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=ci;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(Ub);function Dle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zle(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ile(e,t,r){return t&&zle(e.prototype,t),e}function rw(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Fle(e))||t){r&&(e=r);var o=0,s=function(){};return{s,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,f=!1,d;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return c=p.done,p},e:function(p){f=!0,d=p},f:function(){try{!c&&r.return!=null&&r.return()}finally{if(f)throw d}}}}function Fle(e,t){if(e){if(typeof e=="string")return Fm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fm(e,t)}}function Fm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var Hle=Ub,Hm={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:qle()};function qle(){var e={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 cc(0,5).forEach(function(t){cc(0,5).forEach(function(r){cc(0,5).forEach(function(o){return Ble(t,r,o,e)})})}),cc(0,23).forEach(function(t){var r=t+232,o=iw(t*10+8);e[r]="#"+o+o+o}),e}function Ble(e,t,r,o){var s=16+e*36+t*6+r,c=e>0?e*40+55:0,f=t>0?t*40+55:0,d=r>0?r*40+55:0;o[s]=Wle([c,f,d])}function iw(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function Wle(e){var t=[],r=rw(e),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;t.push(iw(s))}}catch(c){r.e(c)}finally{r.f()}return"#"+t.join("")}function qm(e,t,r,o){var s;return t==="text"?s=Gle(r,o):t==="display"?s=Vle(e,r,o):t==="xterm256Foreground"?s=Ac(e,o.colors[r]):t==="xterm256Background"?s=Mc(e,o.colors[r]):t==="rgb"&&(s=Ule(e,r)),s}function Ule(e,t){t=t.substring(2).slice(0,-1);var r=+t.substr(0,2),o=t.substring(5).split(";"),s=o.map(function(c){return("0"+Number(c).toString(16)).substr(-2)}).join("");return Lc(e,(r===38?"color:#":"background-color:#")+s)}function Vle(e,t,r){t=parseInt(t,10);var o={"-1":function(){return"<br/>"},0:function(){return e.length&&ow(e)},1:function(){return Wi(e,"b")},3:function(){return Wi(e,"i")},4:function(){return Wi(e,"u")},8:function(){return Lc(e,"display:none")},9:function(){return Wi(e,"strike")},22:function(){return Lc(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Wm(e,"i")},24:function(){return Wm(e,"u")},39:function(){return Ac(e,r.fg)},49:function(){return Mc(e,r.bg)},53:function(){return Lc(e,"text-decoration:overline")}},s;return o[t]?s=o[t]():4<t&&t<7?s=Wi(e,"blink"):29<t&&t<38?s=Ac(e,r.colors[t-30]):39<t&&t<48?s=Mc(e,r.colors[t-40]):89<t&&t<98?s=Ac(e,r.colors[8+(t-90)]):99<t&&t<108&&(s=Mc(e,r.colors[8+(t-100)])),s}function ow(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(r){return"</"+r+">"}).join("")}function cc(e,t){for(var r=[],o=e;o<=t;o++)r.push(o);return r}function jle(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function Bm(e){e=parseInt(e,10);var t=null;return e===0?t="all":e===1?t="bold":2<e&&e<5?t="underline":4<e&&e<7?t="blink":e===8?t="hide":e===9?t="strike":29<e&&e<38||e===39||89<e&&e<98?t="foreground-color":(39<e&&e<48||e===49||99<e&&e<108)&&(t="background-color"),t}function Gle(e,t){return t.escapeXML?Hle.encodeXML(e):e}function Wi(e,t,r){return r||(r=""),e.push(t),"<".concat(t).concat(r?' style="'.concat(r,'"'):"",">")}function Lc(e,t){return Wi(e,"span",t)}function Ac(e,t){return Wi(e,"span","color:"+t)}function Mc(e,t){return Wi(e,"span","background-color:"+t)}function Wm(e,t){var r;if(e.slice(-1)[0]===t&&(r=e.pop()),r)return"</"+t+">"}function Kle(e,t,r){var o=!1,s=3;function c(){return""}function f(q,W){return r("xterm256Foreground",W),""}function d(q,W){return r("xterm256Background",W),""}function h(q){return t.newline?r("display",-1):r("text",q),""}function p(q,W){o=!0,W.trim().length===0&&(W="0"),W=W.trimRight(";").split(";");var X=rw(W),ie;try{for(X.s();!(ie=X.n()).done;){var ee=ie.value;r("display",ee)}}catch(j){X.e(j)}finally{X.f()}return""}function v(q){return r("text",q),""}function y(q){return r("rgb",q),""}var b=[{pattern:/^\x08+/,sub:c},{pattern:/^\x1b\[[012]?K/,sub:c},{pattern:/^\x1b\[\(B/,sub:c},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:y},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:d},{pattern:/^\n/,sub:h},{pattern:/^\r+\n/,sub:h},{pattern:/^\r/,sub:h},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:p},{pattern:/^\x1b\[\d?J/,sub:c},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:c},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:c},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function x(q,W){W>s&&o||(o=!1,e=e.replace(q.pattern,q.sub))}var A=[],T=e,E=T.length;e:for(;E>0;){for(var L=0,M=0,P=b.length;M<P;L=++M){var N=b[L];if(x(N,L),e.length!==E){E=e.length;continue e}}if(e.length===E)break;A.push(0),E=e.length}return A}function Xle(e,t,r){return t!=="text"&&(e=e.filter(jle(Bm(r))),e.push({token:t,data:r,category:Bm(r)})),e}var Yle=function(){function e(t){Dle(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},Hm.colors,t.colors)),this.options=Object.assign({},Hm,t),this.stack=[],this.stickyStack=[]}return Ile(e,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var s=this.stack,c=this.options,f=[];return this.stickyStack.forEach(function(d){var h=qm(s,d.token,d.data,c);h&&f.push(h)}),Kle(r.join(""),c,function(d,h){var p=qm(s,d,h,c);p&&f.push(p),c.stream&&(o.stickyStack=Xle(o.stickyStack,d,h))}),s.length&&f.push(ow(s)),f.join("")}}]),e}(),Zle=Yle;const Jle=Wb(Zle),Qle=/^[A-Za-z]:\//;function eae(e=""){return e&&e.replace(/\\/g,"/").replace(Qle,t=>t.toUpperCase())}const tae=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function nae(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const rae=function(...e){e=e.map(o=>eae(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:nae();!s||s.length===0||(t=`${s}/${t}`,r=Um(s))}return t=iae(t,!r),r&&!Um(t)?`/${t}`:t.length>0?t:"."};function iae(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Um=function(e){return tae.test(e)},oae=44,Vm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sae=new Uint8Array(64),sw=new Uint8Array(128);for(let e=0;e<Vm.length;e++){const t=Vm.charCodeAt(e);sae[e]=t,sw[t]=e}function _l(e,t){let r=0,o=0,s=0;do{const f=e.next();s=sw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function jm(e,t){return e.pos>=t?!1:e.peek()!==oae}class lae{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:r,pos:o}=this,s=r.indexOf(t,o);return s===-1?r.length:s}}function aae(e){const{length:t}=e,r=new lae(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let y=!0,b=0;for(s=0;r.pos<p;){let x;s=_l(r,s),s<b&&(y=!1),b=s,jm(r,p)?(c=_l(r,c),f=_l(r,f),d=_l(r,d),jm(r,p)?(h=_l(r,h),x=[s,c,f,d,h]):x=[s,c,f,d]):x=[s],v.push(x),r.pos++}y||cae(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function cae(e){e.sort(uae)}function uae(e,t){return e[0]-t[0]}const fae=/^[\w+.-]+:\/\//,dae=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,hae=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var zt;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(zt||(zt={}));function pae(e){return fae.test(e)}function gae(e){return e.startsWith("//")}function lw(e){return e.startsWith("/")}function vae(e){return e.startsWith("file:")}function Gm(e){return/^[.?#]/.test(e)}function uc(e){const t=dae.exec(e);return aw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function mae(e){const t=hae.exec(e),r=t[2];return aw("file:","",t[1]||"","",lw(r)?r:"/"+r,t[3]||"",t[4]||"")}function aw(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:zt.Absolute}}function Km(e){if(gae(e)){const r=uc("http:"+e);return r.scheme="",r.type=zt.SchemeRelative,r}if(lw(e)){const r=uc("http://foo.com"+e);return r.scheme="",r.host="",r.type=zt.AbsolutePath,r}if(vae(e))return mae(e);if(pae(e))return uc(e);const t=uc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?zt.Query:e.startsWith("#")?zt.Hash:zt.RelativePath:zt.Empty,t}function yae(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function bae(e,t){cw(t,t.type),e.path==="/"?e.path=t.path:e.path=yae(t.path)+e.path}function cw(e,t){const r=t<=zt.RelativePath,o=e.path.split("/");let s=1,c=0,f=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){f=!0;continue}if(f=!1,p!=="."){if(p===".."){c?(f=!0,c--,s--):r&&(o[s++]=p);continue}o[s++]=p,c++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||f&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function wae(e,t){if(!e&&!t)return"";const r=Km(e);let o=r.type;if(t&&o!==zt.Absolute){const c=Km(t),f=c.type;switch(o){case zt.Empty:r.hash=c.hash;case zt.Hash:r.query=c.query;case zt.Query:case zt.RelativePath:bae(r,c);case zt.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case zt.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}cw(r,o);const s=r.query+r.hash;switch(o){case zt.Hash:case zt.Query:return s;case zt.RelativePath:{const c=r.path.slice(1);return c?Gm(t||e)&&!Gm(c)?"./"+c+s:c+s:s||"."}case zt.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Xm(e,t){return t&&!t.endsWith("/")&&(t+="/"),wae(e,t)}function xae(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const Qi=0,_ae=1,Sae=2,kae=3,Cae=4;function Tae(e,t){const r=Ym(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Ym(e,o+1))e[o]=Lae(e[o],t);return e}function Ym(e,t){for(let r=t;r<e.length;r++)if(!Eae(e[r]))return r;return e.length}function Eae(e){for(let t=1;t<e.length;t++)if(e[t][Qi]<e[t-1][Qi])return!1;return!0}function Lae(e,t){return t||(e=e.slice()),e.sort(Aae)}function Aae(e,t){return e[Qi]-t[Qi]}let Qc=!1;function Mae(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Qi]-t;if(c===0)return Qc=!0,s;c<0?r=s+1:o=s-1}return Qc=!1,r-1}function Nae(e,t,r){for(let o=r+1;o<e.length&&e[o][Qi]===t;r=o++);return r}function $ae(e,t,r){for(let o=r-1;o>=0&&e[o][Qi]===t;r=o--);return r}function Pae(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Oae(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return Qc=f!==-1&&e[f][Qi]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=Mae(e,t,d,h)}const Rae="`line` must be greater than 0 (lines start at line 1)",Dae="`column` must be greater than or equal to 0 (columns start at column 0)",Zm=-1,zae=1;class Iae{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const s=o?JSON.parse(t):t,{version:c,file:f,names:d,sourceRoot:h,sources:p,sourcesContent:v}=s;this.version=c,this.file=f,this.names=d||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const y=Xm(h||"",xae(r));this.resolvedSources=p.map(x=>Xm(x||"",y));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=Tae(b,o)),this._decodedMemo=Pae(),this._bySources=void 0,this._bySourceMemos=void 0}}function Fae(e){var t;return(t=e)._decoded||(t._decoded=aae(e._encoded))}function Hae(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(Rae);if(o<0)throw new Error(Dae);const c=Fae(e);if(r>=c.length)return fc(null,null,null,null);const f=c[r],d=qae(f,e._decodedMemo,r,o,s||zae);if(d===-1)return fc(null,null,null,null);const h=f[d];if(h.length===1)return fc(null,null,null,null);const{names:p,resolvedSources:v}=e;return fc(v[h[_ae]],h[Sae]+1,h[kae],h.length===5?p[h[Cae]]:null)}function fc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function qae(e,t,r,o,s){let c=Oae(e,o,t,r);return Qc?c=(s===Zm?Nae:$ae)(e,o,c):s===Zm&&c++,c===-1||c===e.length?-1:c}const uw=/^\s*at .*(?:\S:\d+|\(native\))/m,Bae=/^(?:eval@)?(?:\[native code\])?$/,Wae=["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/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function fw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),(o.startsWith("http:")||o.startsWith("https:"))&&(o=new URL(o).pathname),o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function Uae(e){let t=e.trim();if(Bae.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=fw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function Vae(e){let t=e.trim();if(!uw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=fw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=rae(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function jae(e,t={}){const{ignoreStackEntries:r=Wae}=t;let o=uw.test(e)?Kae(e):Gae(e);return r.length&&(o=o.filter(s=>!r.some(c=>s.file.match(c)))),o.map(s=>{var c;t.getFileName&&(s.file=t.getFileName(s.file));const f=(c=t.getSourceMap)==null?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return s;const d=new Iae(f),{line:h,column:p}=Hae(d,s);return h!=null&&p!=null?{...s,line:h,column:p}:s})}function Gae(e){return e.split(`
24
24
  `).map(t=>Uae(t)).filter(Fb)}function Kae(e){return e.split(`
25
- `).map(t=>Vae(t)).filter(Fb)}function Xae(e,t){return t&&e.endsWith(t)}async function dw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Wh(e){return new Jle({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Yae(e){return e===null||typeof e!="function"&&typeof e!="object"}function hw(e){let t=e;if(Yae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:""}}return t.stacks=jae(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}function Du(e){return B0()?(eS(e),!0):!1}function Br(e){return typeof e=="function"?e():z(e)}const Zae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Jae=Object.prototype.toString,Qae=e=>Jae.call(e)==="[object Object]",na=()=>{};function pw(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const gw=e=>e();function vw(e,t={}){let r,o,s=na;const c=d=>{clearTimeout(d),s(),s=na};return d=>{const h=Br(e),p=Br(t.maxWait);return r&&c(r),h<=0||p!==void 0&&p<=0?(o&&(c(o),o=null),Promise.resolve(d())):new Promise((v,y)=>{s=t.rejectOnCancel?y:v,p&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(d())},p)),r=setTimeout(()=>{o&&c(o),o=null,v(d())},h)})}}function ece(e=gw){const t=Be(!0);function r(){t.value=!1}function o(){t.value=!0}const s=(...c)=>{t.value&&e(...c)};return{isActive:ua(t),pause:r,resume:o,eventFilter:s}}function tce(e){return da()}function nce(...e){if(e.length!==1)return yu(...e);const t=e[0];return typeof t=="function"?ua(iy(()=>({get:t,set:na}))):Be(t)}function dc(e,t=200,r={}){return pw(vw(t,r),e)}function mw(e,t,r={}){const{eventFilter:o=gw,...s}=r;return It(e,pw(o,t),s)}function yw(e,t,r={}){const{eventFilter:o,...s}=r,{eventFilter:c,pause:f,resume:d,isActive:h}=ece(o);return{stop:mw(e,t,{...s,eventFilter:c}),pause:f,resume:d,isActive:h}}function Uh(e,t=!0,r){tce()?Hs(e,r):t?e():ln(e)}function rce(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Pt(e),c=Be(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Br(r);return c.value=c.value===h?Br(o):h,c.value}}return s?f:[c,f]}function bw(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return mw(e,t,{...c,eventFilter:vw(o,{maxWait:s})})}function ice(e,t,r){const o=It(e,(...s)=>(ln(()=>o()),t(...s)),r);return o}function oce(e,t,r){let o;Pt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=na}=o,h=Be(!s),p=f?Wr(t):Be(t);let v=0;return Th(async y=>{if(!h.value)return;v++;const b=v;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(C=>{y(()=>{c&&(c.value=!1),x||C()})});b===v&&(p.value=E)}catch(E){d(E)}finally{c&&b===v&&(c.value=!1),x=!0}}),s?Ce(()=>(h.value=!0,p.value)):p}function eu(e){var t;const r=Br(e);return(t=r==null?void 0:r.$el)!=null?t:r}const or=Zae?window:void 0;function Ps(...e){let t,r,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,o,s]=e,t=or):[t,r,o,s]=e,!t)return na;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const c=[],f=()=>{c.forEach(v=>v()),c.length=0},d=(v,y,b,x)=>(v.addEventListener(y,b,x),()=>v.removeEventListener(y,b,x)),h=It(()=>[eu(t),Br(s)],([v,y])=>{if(f(),!v)return;const b=Qae(y)?{...y}:y;c.push(...r.flatMap(x=>o.map(E=>d(v,x,E,b))))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return Du(p),p}function sce(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ww(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=or,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=sce(t);return Ps(s,c,v=>{v.repeat&&Br(d)||h(v)&&r(v)},f)}function lce(){const e=Be(!1),t=da();return t&&Hs(()=>{e.value=!0},t),e}function xw(e){const t=lce();return Ce(()=>(t.value,!!e()))}function ace(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=or}=t,c=Be(!1),f=o?1e3/o:null;let d=0,h=null;function p(b){if(!c.value||!s)return;d||(d=b);const x=b-d;if(f&&x<f){h=s.requestAnimationFrame(p);return}d=b,e({delta:x,timestamp:b}),h=s.requestAnimationFrame(p)}function v(){!c.value&&s&&(c.value=!0,d=0,h=s.requestAnimationFrame(p))}function y(){c.value=!1,h!=null&&s&&(s.cancelAnimationFrame(h),h=null)}return r&&v(),Du(y),{isActive:ua(c),pause:y,resume:v}}function _w(e,t={}){const{window:r=or}=t,o=xw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const c=Be(!1),f=p=>{c.value=p.matches},d=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},h=Th(()=>{o.value&&(d(),s=r.matchMedia(Br(e)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),c.value=s.matches)});return Du(()=>{h(),d(),s=void 0}),c}const hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pc="__vueuse_ssr_handlers__",cce=uce();function uce(){return pc in hc||(hc[pc]=hc[pc]||{}),hc[pc]}function Sw(e,t){return cce[e]||t}function fce(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const dce={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Jm="vueuse-storage";function kw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:y=or,eventFilter:b,onError:x=j=>{console.error(j)},initOnMounted:E}=o,C=(v?Wr:Be)(typeof t=="function"?t():t);if(!r)try{r=Sw("getDefaultStorage",()=>{var j;return(j=or)==null?void 0:j.localStorage})()}catch(j){x(j)}if(!r)return C;const L=Br(t),N=fce(L),A=(s=o.serializer)!=null?s:dce[N],{pause:P,resume:M}=yw(C,()=>W(C.value),{flush:c,deep:f,eventFilter:b});y&&d&&Uh(()=>{r instanceof Storage?Ps(y,"storage",ie):Ps(y,Jm,ee),E&&ie()}),E||ie();function q(j,te){y&&!(r instanceof Storage)&&y.dispatchEvent(new CustomEvent(Jm,{detail:{key:e,oldValue:j,newValue:te,storageArea:r}}))}function W(j){try{const te=r.getItem(e);if(j==null)q(te,null),r.removeItem(e);else{const Z=A.write(j);te!==Z&&(r.setItem(e,Z),q(te,Z))}}catch(te){x(te)}}function X(j){const te=j?j.newValue:r.getItem(e);if(te==null)return h&&L!=null&&r.setItem(e,A.write(L)),L;if(!j&&p){const Z=A.read(te);return typeof p=="function"?p(Z,L):N==="object"&&!Array.isArray(Z)?{...L,...Z}:Z}else return typeof te!="string"?te:A.read(te)}function ie(j){if(!(j&&j.storageArea!==r)){if(j&&j.key==null){C.value=L;return}if(!(j&&j.key!==e)){P();try{(j==null?void 0:j.newValue)!==A.write(C.value)&&(C.value=X(j))}catch(te){x(te)}finally{j?ln(M):M()}}}}function ee(j){ie(j.detail)}return C}function Cw(e){return _w("(prefers-color-scheme: dark)",e)}const hce="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function pce(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=or,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,y={auto:"",light:"light",dark:"dark",...e.modes||{}},b=Cw({window:s}),x=Ce(()=>b.value?"dark":"light"),E=h||(f==null?nce(o):kw(f,o,c,{window:s,listenToStorageChanges:d})),C=Ce(()=>E.value==="auto"?x.value:E.value),L=Sw("updateHTMLAttrs",(M,q,W)=>{const X=typeof M=="string"?s==null?void 0:s.document.querySelector(M):eu(M);if(!X)return;const ie=new Set,ee=new Set;let j=null;if(q==="class"){const Z=W.split(/\s/g);Object.values(y).flatMap(H=>(H||"").split(/\s/g)).filter(Boolean).forEach(H=>{Z.includes(H)?ie.add(H):ee.add(H)})}else j={key:q,value:W};if(ie.size===0&&ee.size===0&&j===null)return;let te;v&&(te=s.document.createElement("style"),te.appendChild(document.createTextNode(hce)),s.document.head.appendChild(te));for(const Z of ie)X.classList.add(Z);for(const Z of ee)X.classList.remove(Z);j&&X.setAttribute(j.key,j.value),v&&(s.getComputedStyle(te).opacity,document.head.removeChild(te))});function N(M){var q;L(t,r,(q=y[M])!=null?q:M)}function A(M){e.onChanged?e.onChanged(M,N):N(M)}It(C,A,{flush:"post",immediate:!0}),Uh(()=>A(C.value));const P=Ce({get(){return p?E.value:C.value},set(M){E.value=M}});try{return Object.assign(P,{store:E,system:x,state:C})}catch{return P}}function gce(e={}){const{valueDark:t="dark",valueLight:r="",window:o=or}=e,s=pce({...e,onChanged:(d,h)=>{var p;e.onChanged?(p=e.onChanged)==null||p.call(e,d==="dark",h,d):h(d)},modes:{dark:t,light:r}}),c=Ce(()=>s.system?s.system.value:Cw({window:o}).value?"dark":"light");return Ce({get(){return s.value==="dark"},set(d){const h=d?"dark":"light";c.value===h?s.value="auto":s.value=h}})}function vce(e,t,r={}){const{window:o=or,...s}=r;let c;const f=xw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Ce(()=>{const y=Br(e);return Array.isArray(y)?y.map(b=>eu(b)):[eu(y)]}),p=It(h,y=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of y)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Du(v),{isSupported:f,stop:v}}function zu(e,t,r={}){const{window:o=or}=r;return kw(e,t,o==null?void 0:o.localStorage,r)}function mce(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,window:f=or}=t;if(!f)return Xn(r);const d=Xn({});function h(){if(e==="history")return f.location.search||"";if(e==="hash"){const N=f.location.hash||"",A=N.indexOf("?");return A>0?N.slice(A):""}else return(f.location.hash||"").replace(/^#/,"")}function p(N){const A=N.toString();if(e==="history")return`${A?`?${A}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${A?`#${A}`:""}`;const P=f.location.hash||"#",M=P.indexOf("?");return M>0?`${P.slice(0,M)}${A?`?${A}`:""}`:`${P}${A?`?${A}`:""}`}function v(){return new URLSearchParams(h())}function y(N){const A=new Set(Object.keys(d));for(const P of N.keys()){const M=N.getAll(P);d[P]=M.length>1?M:N.get(P)||"",A.delete(P)}Array.from(A).forEach(P=>delete d[P])}const{pause:b,resume:x}=yw(d,()=>{const N=new URLSearchParams("");Object.keys(d).forEach(A=>{const P=d[A];Array.isArray(P)?P.forEach(M=>N.append(A,M)):o&&P==null||s&&!P?N.delete(A):N.set(A,P)}),E(N)},{deep:!0});function E(N,A){b(),A&&y(N),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+p(N)),x()}function C(){c&&E(v(),!0)}Ps(f,"popstate",C,!1),e!=="history"&&Ps(f,"hashchange",C,!1);const L=v();return L.keys().next().value?y(L):Object.assign(d,r),d}function Vh(e={}){const{window:t=or,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Be(r),h=Be(o),p=()=>{t&&(f==="outer"?(d.value=t.outerWidth,h.value=t.outerHeight):c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight))};if(p(),Uh(p),Ps("resize",p,{passive:!0}),s){const v=_w("(orientation: portrait)");It(v,()=>p())}return{width:d,height:h}}const jh=mce("hash",{initialValue:{file:"",view:null,line:null}}),eo=yu(jh,"file"),Un=yu(jh,"view"),zd=yu(jh,"line"),Pr=Be([414,896]),tu=Be("idle"),yce=Ce(()=>tu.value==="idle"),Hi=Be([]),Os=Be(),Ss=Be(!0),to=Be(!1),nu=Be(!0),hs=Ce(()=>{var e;return(e=Hu.value)==null?void 0:e.coverage}),Id=Ce(()=>{var e;return(e=hs.value)==null?void 0:e.enabled}),ps=Ce(()=>Id.value&&!!hs.value.htmlReporter),br=zu("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),Mo=zu("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),dn=Xn({navigation:br.value[0],details:{size:br.value[1],browser:Mo.value[0],main:Mo.value[1]}}),Qm=Ce(()=>{var e;if(ps.value){const t=hs.value.reportsDirectory.lastIndexOf("/"),r=(e=hs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${hs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${hs.value.reportsDirectory.slice(t+1)}/index.html`}});It(tu,e=>{nu.value=e==="running"},{immediate:!0});function bce(){const e=eo.value;if(e&&e.length>0){const t=sr(e);t?(Os.value=t,Ss.value=!1,to.value=!1):ice(()=>bt.state.getFiles(),()=>{Os.value=sr(e),Ss.value=!1,to.value=!1})}return Ss}function ru(e){Ss.value=e,to.value=!1,e&&(Os.value=void 0,eo.value="")}function Tw(e,t=null){eo.value=e.file.id,zd.value=null,t!=null&&(ln(()=>{zd.value=t}),Un.value="editor"),Os.value=sr(e.file.id),ru(!1)}function wce(){to.value=!0,Ss.value=!1,Os.value=void 0,eo.value=""}function xce(){dn.details.browser=100,dn.details.main=0,Mo.value=[100,0]}function _ce(){dn.details.browser=33,dn.details.main=67,Mo.value=[33,67]}function Sce(){dn.navigation=33,dn.details.size=67,br.value=[33,67]}const kce={setCurrentFileId(e){eo.value=e,Os.value=sr(e),ru(!1)},async setIframeViewport(e,t){Pr.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}};var Kn=Uint8Array,gs=Uint16Array,Cce=Int32Array,Ew=new Kn([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]),Lw=new Kn([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]),Tce=new Kn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Aw=function(e,t){for(var r=new gs(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Cce(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},Mw=Aw(Ew,2),Nw=Mw.b,Ece=Mw.r;Nw[28]=258,Ece[258]=28;var Lce=Aw(Lw,0),Ace=Lce.b,Fd=new gs(32768);for(var Ct=0;Ct<32768;++Ct){var Pi=(Ct&43690)>>1|(Ct&21845)<<1;Pi=(Pi&52428)>>2|(Pi&13107)<<2,Pi=(Pi&61680)>>4|(Pi&3855)<<4,Fd[Ct]=((Pi&65280)>>8|(Pi&255)<<8)>>1}var Hl=function(e,t,r){for(var o=e.length,s=0,c=new gs(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new gs(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new gs(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],y=f[e[s]-1]++<<v,b=y|(1<<v)-1;y<=b;++y)d[Fd[y]>>h]=p}else for(d=new gs(o),s=0;s<o;++s)e[s]&&(d[s]=Fd[f[e[s]-1]++]>>15-e[s]);return d},va=new Kn(288);for(var Ct=0;Ct<144;++Ct)va[Ct]=8;for(var Ct=144;Ct<256;++Ct)va[Ct]=9;for(var Ct=256;Ct<280;++Ct)va[Ct]=7;for(var Ct=280;Ct<288;++Ct)va[Ct]=8;var $w=new Kn(32);for(var Ct=0;Ct<32;++Ct)$w[Ct]=5;var Mce=Hl(va,9,1),Nce=Hl($w,5,1),nd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},yr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},rd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},$ce=function(e){return(e+7)/8|0},Pw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Kn(e.subarray(t,r))},Pce=["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"],Pn=function(e,t,r){var o=new Error(t||Pce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Pn),!r)throw o;return o},Gh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new Kn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Kn(s*3));var p=function(Ee){var Ze=r.length;if(Ee>Ze){var O=new Kn(Math.max(Ze*2,Ee));O.set(r),r=O}},v=t.f||0,y=t.p||0,b=t.b||0,x=t.l,E=t.d,C=t.m,L=t.n,N=s*8;do{if(!x){v=yr(e,y,1);var A=yr(e,y+1,3);if(y+=3,A)if(A==1)x=Mce,E=Nce,C=9,L=5;else if(A==2){var W=yr(e,y,31)+257,X=yr(e,y+10,15)+4,ie=W+yr(e,y+5,31)+1;y+=14;for(var ee=new Kn(ie),j=new Kn(19),te=0;te<X;++te)j[Tce[te]]=yr(e,y+te*3,7);y+=X*3;for(var Z=nd(j),H=(1<<Z)-1,I=Hl(j,Z,1),te=0;te<ie;){var k=I[yr(e,y,H)];y+=k&15;var P=k>>4;if(P<16)ee[te++]=P;else{var B=0,U=0;for(P==16?(U=3+yr(e,y,3),y+=2,B=ee[te-1]):P==17?(U=3+yr(e,y,7),y+=3):P==18&&(U=11+yr(e,y,127),y+=7);U--;)ee[te++]=B}}var re=ee.subarray(0,W),ye=ee.subarray(W);C=nd(re),L=nd(ye),x=Hl(re,C,1),E=Hl(ye,L,1)}else Pn(1);else{var P=$ce(y)+4,M=e[P-4]|e[P-3]<<8,q=P+M;if(q>s){h&&Pn(0);break}d&&p(b+M),r.set(e.subarray(P,q),b),t.b=b+=M,t.p=y=q*8,t.f=v;continue}if(y>N){h&&Pn(0);break}}d&&p(b+131072);for(var Ne=(1<<C)-1,We=(1<<L)-1,je=y;;je=y){var B=x[rd(e,y)&Ne],it=B>>4;if(y+=B&15,y>N){h&&Pn(0);break}if(B||Pn(2),it<256)r[b++]=it;else if(it==256){je=y,x=null;break}else{var rt=it-254;if(it>264){var te=it-257,Je=Ew[te];rt=yr(e,y,(1<<Je)-1)+Nw[te],y+=Je}var Le=E[rd(e,y)&We],K=Le>>4;Le||Pn(3),y+=Le&15;var ye=Ace[K];if(K>3){var Je=Lw[K];ye+=rd(e,y)&(1<<Je)-1,y+=Je}if(y>N){h&&Pn(0);break}d&&p(b+131072);var ae=b+rt;if(b<ye){var de=c-ye,$e=Math.min(ye,ae);for(de+b<0&&Pn(3);b<$e;++b)r[b]=o[de+b]}for(;b<ae;++b)r[b]=r[b-ye]}}t.l=x,t.p=je,t.b=b,t.f=v,x&&(v=1,t.m=C,t.d=E,t.n=L)}while(!v);return b!=r.length&&f?Pw(r,0,b):r.subarray(0,b)},Oce=new Kn(0),Rce=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Pn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Dce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},zce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Pn(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&Pn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Ice(e,t){return Gh(e,{i:2},t,t)}function Fce(e,t){var r=Rce(e);return r+8>e.length&&Pn(6,"invalid gzip data"),Gh(e.subarray(r,-8),{i:2},new Kn(Dce(e)),t)}function Hce(e,t){return Gh(e.subarray(zce(e,t),-4),{i:2},t,t)}function qce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Fce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Ice(e,t):Hce(e,t)}var Hd=typeof TextDecoder<"u"&&new TextDecoder,Bce=0;try{Hd.decode(Oce,{stream:!0}),Bce=1}catch{}var Wce=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Pw(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function Uce(e,t){var r;if(Hd)return Hd.decode(e);var o=Wce(e),s=o.s,r=o.r;return r.length&&Pn(8),s}const id=()=>{},xn=()=>Promise.resolve();function Vce(){const e=Xn({state:new Bb,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=Xn(e.state.filesMap),e.state.idMap=Xn(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:xn,onDone:id,onTaskUpdate:id,writeFile:xn,rerun:xn,updateSnapshot:xn,resolveSnapshotPath:xn,snapshotSaved:xn,onAfterSuiteRun:xn,onCancel:xn,getCountOfFailedTests:()=>0,sendLog:xn,resolveSnapshotRawPath:xn,readSnapshotFile:xn,saveSnapshotFile:xn,readTestFile:async d=>t.sources[d],removeSnapshotFile:xn,onUnhandledError:id,saveTestFile:xn,getProvidedContext:()=>({}),getTestFiles:xn};e.rpc=r;let o;function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const y=new Uint8Array(await d.arrayBuffer()),b=Uce(qce(y));t=Rd(b)}else t=Rd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const qd=Wr([]),Hn=Wr([]),Cr=zu("vitest-ui_task-tree-opened",[],{shallow:!0}),iu=Ce(()=>new Set(Cr.value)),on=zu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),On=Be(on.value.search),jce={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ow(e){return e.replace(/[&<>"']/g,t=>jce[t])}const Gce=Ce(()=>{const e=On.value.toLowerCase();return e.length?new RegExp(`(${Ow(e)})`,"gi"):null}),Rw=Ce(()=>On.value.trim()!==""),et=Xn({failed:on.value.failed,success:on.value.success,skipped:on.value.skipped,onlyTests:on.value.onlyTests}),Bd=Ce(()=>!!(et.failed||et.success||et.skipped)),Iu=Wr([]),Rs=Be(!1),e0=Ce(()=>{const e=on.value.expandAll;return Cr.value.length>0?e!==!0:e!==!1}),Kce=Ce(()=>{const e=Rw.value,t=Bd.value,r=et.onlyTests,o=Te.summary.filesFailed,s=Te.summary.filesSuccess,c=Te.summary.filesSkipped,f=Te.summary.filesRunning,d=Iu.value;return Te.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Fu(e){return Object.hasOwnProperty.call(e,"tasks")}function Xce(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Dw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["blue","yellow","cyan","green","magenta"];return r[t%r.length]}function Yce(e){return e.type==="test"||e.type==="custom"}function Zce(e){return e.mode==="run"&&(e.type==="test"||e.type==="custom")}function Cn(e){return e.type==="file"}function fi(e){return e.type==="file"||e.type==="suite"}function Jce(e=Te.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ra(e,t=!1){var o,s,c,f,d;let r=Te.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:iu.value.size>0&&iu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((c=e.result)==null?void 0:c.duration)!=null?Math.round((f=e.result)==null?void 0:f.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Dw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Te.nodes.set(e.id,r),Te.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)ma(e.id,e.tasks[h],!0)}function zw(e,t){const r=Te.nodes.get(e);if(!r||!fi(r))return;const o=bt.state.idMap.get(e);if(!(!o||!Fu(o)))return ma(r.parentId,o,t&&o.tasks.length>0),[r,o]}function Qce(e){const t=Te.nodes.get(e);if(!t)return;const r=bt.state.idMap.get(e);!r||!$s(r)||ma(t.parentId,r,!1)}function ma(e,t,r){var f,d,h,p,v;const o=Te.nodes.get(e);let s;const c=((f=t.result)==null?void 0:f.duration)!=null?Math.round((d=t.result)==null?void 0:d.duration):void 0;if(o&&(s=Te.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.mode=t.mode,s.duration=c,s.state=(h=t.result)==null?void 0:h.state):($s(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:(p=t.result)==null?void 0:p.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:iu.value.size>0&&iu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Te.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Fu(t)))for(let y=0;y<t.tasks.length;y++)ma(s.id,t.tasks[y],r)}function eue(e,t,r){return e?Hw(e,t,r):!1}function Kh(e,t){const r=[...Iw(e,t)];Hn.value=r,Iu.value=r.filter(Cn).map(o=>sr(o.id))}function*Iw(e,t){for(const r of Jce())yield*Fw(r,e,t)}function*Fw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[y,b]of Wd(e,o,x=>t0(x,t,r)))c.push([y,b]);else{for(const[y,b]of Wd(e,o,x=>t0(x,t,r)))fi(b)?(s.set(b.id,y),Cn(b)?(y&&(f=b.id),c.push([y,b])):c.push([y||s.get(b.parentId)===!0,b])):c.push([y||s.get(b.parentId)===!0,b]);!f&&!Cn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...nue(c,r.onlyTests,o,d,f)].reverse(),p=Te.nodes,v=new Set(h.filter(y=>{var b;return Cn(y)||fi(y)&&((b=p.get(y.parentId))==null?void 0:b.expanded)}).map(y=>y.id));yield*h.filter(y=>{var b;return Cn(y)||v.has(y.parentId)&&((b=p.get(y.parentId))==null?void 0:b.expanded)})}function tue(e,t,r,o,s){if(o){if(Cn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Te.nodes.get(t.parentId);return c&&Cn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Te.nodes.get(t.parentId);return c&&Cn(c)&&s.add(c.id),t}}function*nue(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=fi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Te.nodes.get(d.parentId);for(;p;)r.add(p.id),Cn(p)&&o.add(p.id),p=Te.nodes.get(p.parentId);yield d;continue}if(h){const p=tue(f,d,r,t,o);p&&(yield p)}else if(f){const p=Te.nodes.get(d.parentId);p&&Cn(p)&&o.add(p.id),yield d}}}function rue(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Hw(e,t,r){if(t.length===0||Xce(e.name,t))if(r.success||r.failed||r.skipped){if(rue(e,r))return!0}else return!0;return!1}function*Wd(e,t,r){const o=r(e);if(o)if(Yce(e)){let s=Te.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Te.nodes.get(s.parentId)}else if(Cn(e))t.add(e.id);else{t.add(e.id);let s=Te.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Te.nodes.get(s.parentId)}if(yield[o,e],fi(e))for(let s=0;s<e.tasks.length;s++)yield*Wd(e.tasks[s],t,r)}function t0(e,t,r){const o=bt.state.idMap.get(e.id);return o?Hw(o,t,r):!1}function iue(e,t,r){const o=zw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)ma(s.id,p,!1);s.expanded=!0;const f=new Set(Cr.value);f.add(s.id);const d=new Set(Fw(s,t,r)),h=[...lue(s,d)];Cr.value=Array.from(f),Hn.value=h}function oue(e,t){Xh(Te.root.tasks,!1);const r=[...Iw(e,t)];on.value.expandAll=!1,Cr.value=[],Hn.value=r,Iu.value=r.filter(Cn).map(o=>sr(o.id))}function sue(e,t){if(e.size)for(const r of Hn.value)e.has(r.id)&&(r.expanded=!0);else t&&Xh(Hn.value.filter(Cn),!0)}function Xh(e,t){for(const r of e)fi(r)&&(r.expanded=!0,Xh(r.tasks,!1));t&&(on.value.expandAll=!1,Cr.value=[])}function*lue(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Hn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function aue(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ra(s,t)),qd.value=[...Te.root.tasks],Kh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function cue(e){queueMicrotask(()=>{const t=Te.pendingTasks,r=bt.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function n0(e,t,r,o,s){e&&gue(r);const c=!e;queueMicrotask(()=>{t?due(c):hue(c)}),queueMicrotask(()=>{vue(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=qd.value&&Hh(qd.value.map(f=>sr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{pue(o,s,t)})}function*uue(){yield*Hn.value.filter(Zce)}function fue(){const e=bt.state.idMap;let t;for(const r of uue())t=e.get(r.parentId),t&&Fu(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function due(e){const t=bt.state.getFiles(),r=Te.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ra(o[c],e),ou(o[c].tasks);const s=Te.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=sr(f.id);if(!d)continue;ra(d,e);const h=d.tasks;h!=null&&h.length&&ou(d.tasks)}}function hue(e){const t=new Map(Te.pendingTasks.entries());Te.pendingTasks.clear();const r=Te.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>sr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ra(s,!1),ou(s.tasks),t.delete(s.id);const c=bt.state.idMap,f=Te.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=sr(h.id);if(!p)continue;const v=t.get(p.id);v&&(ra(p,e),ou(Array.from(v).map(y=>c.get(y)).filter(Boolean)))}}function pue(e,t,r=!1){const o=on.value.expandAll,s=o!==!0,c=new Set(Cr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{r0(e,t,r)}),Rs.value||queueMicrotask(()=>{(Hn.value.length||r)&&(Rs.value=!0)}),f&&(queueMicrotask(()=>{sue(c,r),s&&(on.value.expandAll=!1)}),queueMicrotask(()=>{r0(e,t,r)}))}function r0(e,t,r){Kh(e,t),r&&fue()}function ou(e){let t;for(let r=0;r<e.length;r++)t=e[r],Fu(t)?zw(t.id,!0):Qce(t.id)}function gue(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function vue(e){var f,d,h,p,v,y;const t=bt.state.idMap,r=new Map(Te.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,sr(b.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,filesSnapshotFailed:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1};let c=0;for(const[b,x]of o){if(!x)continue;const E=r.get(b);E&&(E.mode=x.mode,E.setupDuration=x.setupDuration,E.prepareDuration=x.prepareDuration,E.environmentLoad=x.environmentLoad,E.collectDuration=x.collectDuration,E.duration=((f=x.result)==null?void 0:f.duration)!=null?Math.round((d=x.result)==null?void 0:d.duration):void 0,E.state=(h=x.result)==null?void 0:h.state),c+=Math.max(0,x.collectDuration||0),c+=Math.max(0,x.setupDuration||0),c+=Math.max(0,((p=x.result)==null?void 0:p.duration)||0),c+=Math.max(0,x.environmentLoad||0),c+=Math.max(0,x.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((v=x.result)==null?void 0:v.state)==="fail"?s.filesFailed++:((y=x.result)==null?void 0:y.state)==="pass"?s.filesSuccess++:x.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):x.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:C,success:L,skipped:N,total:A,ignored:P,todo:M}=qw(x);s.totalTests+=A,s.testsFailed+=C,s.testsSuccess+=L,s.testsSkipped+=N,s.testsTodo+=M,s.testsIgnore+=P}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function qw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of Bw(e))(!r||eue(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function mue(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>qw(h,s,c)).reduce((h,{failed:p,success:v,ignored:y,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=y,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,y=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=y?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*Bw(e){const t=Ih(e);let r;for(let o=0;o<t.length;o++)r=t[o],$s(r)?yield r:yield*Bw(r.tasks)}function yue(e){const t=Te.nodes.get(e);if(!t||!fi(t))return;const r=new Set(Cr.value);r.delete(t.id);const o=[...wue(t)];Cr.value=Array.from(r),Hn.value=o}function bue(){Ud(Te.root.tasks);const e=[...Hn.value.filter(Cn)];Ud(e),Cr.value=[],on.value.expandAll=!0,Hn.value=e}function Ud(e){for(const t of e)fi(t)&&(t.expanded=!1,Ud(t.tasks))}function*Ww(e,t){if(t&&(yield e.id),fi(e))for(let r=0;r<e.tasks.length;r++)yield*Ww(e.tasks[r],!0)}function*wue(e){const t=e.id,r=new Set(Ww(e,!1));for(let o=0;o<Hn.value.length;o++){const s=Hn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}class xue{constructor(t=!1,r=500,o={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},s=new Map,c=new Map,f=Xn({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){fs(this,"rafCollector");fs(this,"resumeEndRunId");this.onTaskUpdateCalled=t,this.resumeEndTimeout=r,this.root=o,this.pendingTasks=s,this.nodes=c,this.summary=f,this.rafCollector=ace(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t){aue(t,!0,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){cue(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{n0(t,r,this.summary,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}):n0(t,r,this.summary,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collectTestsTotal(t,r,o,s){return mue(t,r,o,s,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collapseNode(t){queueMicrotask(()=>{yue(t)})}expandNode(t){queueMicrotask(()=>{iue(t,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{bue()})}expandAllNodes(){queueMicrotask(()=>{oue(On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}filterNodes(){queueMicrotask(()=>{Kh(On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}}const Te=new xue,bt=function(){return Ir?Vce():ZE(eL,{reactive:(t,r)=>r==="state"?Xn(t):Wr(t),handlers:{onTaskUpdate(t){Te.resumeRun(t),tu.value="running"},onFinished(t,r){Te.endRun(),tu.value="idle",Hi.value=(r||[]).map(hw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Hu=Wr({}),To=Be("CONNECTING"),Gt=Ce(()=>{const e=eo.value;return e?sr(e):void 0}),Uw=Ce(()=>Fh(Gt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function sr(e){const t=bt.state.idMap.get(e);return t||void 0}const _ue=Ce(()=>To.value==="OPEN"),od=Ce(()=>To.value==="CONNECTING");Ce(()=>To.value==="CLOSED");function Sue(){return Yh(bt.state.getFiles())}function kue(e){const t=Te.nodes;e.forEach(r=>{delete r.result,Fh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,Cn(o)&&(o.collectDuration=void 0))})}function Yh(e){return kue(e),Te.startRun(),bt.rpc.rerun(e.map(t=>t.filepath))}const Ro=window.__vitest_browser_runner__;window.__vitest_ui_api__=kce;It(()=>bt.ws,e=>{To.value=Ir?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{To.value="OPEN",bt.state.filesMap.clear();const[t,r,o]=await Promise.all([bt.rpc.getFiles(),bt.rpc.getConfig(),bt.rpc.getUnhandledErrors()]);if(r.standalone){const c=(await bt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>Hb(h,d,f));bt.state.collectFiles(c)}else Te.loadFiles(t),bt.state.collectFiles(t),Te.startRun();Hi.value=(o||[]).map(hw),Hu.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{To.value==="CONNECTING"&&(To.value="CLOSED")},1e3)})},{immediate:!0});const Cue={"text-2xl":""},Tue={"text-lg":"",op50:""},Eue=ft({__name:"ConnectionOverlay",setup(e){return(t,r)=>z(_ue)?Ye("",!0):(oe(),me("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>z(bt).reconnect&&z(bt).reconnect(...o))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:lt(z(od)?"animate-pulse":"")},[Y("div",{text:"5xl",class:lt(z(od)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",Cue,qe(z(od)?"Connecting...":"Disconnected"),1),Y("div",Tue," Check your terminal or start a new server with `"+qe(z(Ro)?`vitest --browser=${z(Ro).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Lue=["aria-label","opacity","disabled","hover"],gi=ft({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(oe(),me("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:lt(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[hn(t.$slots,"default",{},()=>[Y("span",{class:lt(t.icon),ma:"",block:""},null,2)])],10,Lue))}}),Vw=e=>(Is("data-v-28536a8a"),e=e(),Fs(),e),Aue={h:"full",flex:"~ col"},Mue={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Nue=Vw(()=>Y("div",{class:"i-carbon-content-delivery-network"},null,-1)),$ue=Vw(()=>Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),Pue={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Oue={class:"pointer-events-none","text-sm":""},Rue={key:0},Due={id:"tester-container",relative:""},zue=["data-scale"],i0=20,Iue=100,Fue=ft({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return Pr.value[0]===v[0]&&Pr.value[1]===v[1]}async function o(p){Pr.value=t[p]}const{width:s,height:c}=Vh(),f=Ce(()=>{const y=s.value*(dn.details.size/100)*(dn.details.browser/100)-i0,b=c.value-Iue;return{width:y,height:b}}),d=Ce(()=>{const[p,v]=Pr.value,{width:y,height:b}=f.value,x=y>p?1:y/p,E=b>v?1:b/v;return Math.min(1,x,E)}),h=Ce(()=>{const p=f.value.width,v=Pr.value[0];return`${Math.trunc((p+i0-v)/2)}px`});return(p,v)=>{const y=gi,b=Ur("tooltip");return oe(),me("div",Aue,[Y("div",Mue,[vt(Pe(y,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=x=>z(Sce)())},null,512),[[Ui,z(dn).navigation<=2],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),Nue,$ue,vt(Pe(y,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=x=>z(xce)())},null,512),[[Ui,z(dn).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),vt(Pe(y,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=x=>z(_ce)())},null,512),[[Ui,z(dn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),Y("div",Pue,[vt(Pe(y,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=x=>o("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),vt(Pe(y,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=x=>o("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),vt(Pe(y,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=x=>o("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),Y("span",Oue,[pt(qe(z(Pr)[0])+"x"+qe(z(Pr)[1])+"px ",1),z(d)<1?(oe(),me("span",Rue,"("+qe((z(d)*100).toFixed(0))+"%)",1)):Ye("",!0)])]),Y("div",Due,[Y("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":z(d),style:Kt({"--viewport-width":`${z(Pr)[0]}px`,"--viewport-height":`${z(Pr)[1]}px`,"--tester-transform":`scale(${z(d)})`,"--tester-margin-left":z(h)})}," Select a test to run ",12,zue)])])}}}),Hue=Vr(Fue,[["__scopeId","data-v-28536a8a"]]),jw=ft({__name:"Modal",props:qc({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Eh(e,"modelValue"),r=Ce(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=Ce(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(oe(),me("div",{class:lt(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:lt(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),Y("div",{class:lt(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[z(r)]]),style:Kt(t.value?{}:{transform:z(o)})},[hn(c.$slots,"default")],6)],2))}}),que=e=>(Is("data-v-93900314"),e=e(),Fs(),e),Bue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Wue={"p-4":"",relative:"",border:"base b"},Uue=que(()=>Y("p",null,"Screenshot error",-1)),Vue={op50:"","font-mono":"","text-sm":""},jue={op50:"","font-mono":"","text-sm":""},Gue={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Kue=["src","alt"],Xue={key:1},Yue=ft({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return ww("Escape",()=>{r("close")}),(o,s)=>{const c=gi;return oe(),me("div",Bue,[Y("div",Wue,[Uue,Y("p",Vue,qe(o.file),1),Y("p",jue,qe(o.name),1),Pe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),Y("div",Gue,[o.url?(oe(),me("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,Kue)):(oe(),me("div",Xue," Something was wrong, the image cannot be resolved. "))])])}}}),Zue=Vr(Yue,[["__scopeId","data-v-93900314"]]);function ql(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}const ya=gce(),Jue=rce(ya),Que={class:"scrolls scrolls-rounded task-error"},efe=["onClickPassive"],tfe=["innerHTML"],nfe=ft({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const o=Ce(()=>Wh(ya.value)),s=Ce(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=Ce(()=>t.error.diff?o.value.toHtml(ql(t.error.diff)):void 0);return(f,d)=>{const h=Ur("tooltip");return oe(),me("div",Que,[Y("pre",null,[Y("b",null,qe(f.error.name||f.error.nameStr),1),pt(": "+qe(f.error.message),1)]),(oe(!0),me(ut,null,ui(f.error.stacks,(p,v)=>(oe(),me("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+qe(r(p.file))+":"+qe(p.line)+":"+qe(p.column),1),z(Xae)(p.file,f.filename)?vt((oe(),me("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:y=>z(dw)(p.file,p.line,p.column)},null,40,efe)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ye("",!0)]))),128)),z(s)?(oe(),me("pre",{key:0,"data-testid":"diff",innerHTML:z(c)},null,8,tfe)):Ye("",!0)])}}}),rfe=Vr(nfe,[["__scopeId","data-v-9dd6eaea"]]),ife={"h-full":"",class:"scrolls"},ofe={flex:"~ gap-2 items-center"},sfe={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},lfe=["innerHTML"],afe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},cfe=ft({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,x){var E;return((E=b.result)==null?void 0:E.state)!=="fail"?[]:b.type==="test"||b.type==="custom"?[{...b,level:x}]:[{...b,level:x},...b.tasks.flatMap(C=>r(C,x+1))]}function o(b,x){var L,N,A;let E="";(L=x.message)!=null&&L.includes("\x1B")&&(E=`<b>${x.nameStr||x.name}</b>: ${b.toHtml(ql(x.message))}`);const C=(N=x.stackStr)==null?void 0:N.includes("\x1B");return(C||(A=x.stack)!=null&&A.includes("\x1B"))&&(E.length>0?E+=b.toHtml(ql(C?x.stackStr:x.stack)):E=`<b>${x.nameStr||x.name}</b>: ${x.message}${b.toHtml(ql(C?x.stackStr:x.stack))}`),E.length>0?E:null}function s(b,x){const E=Wh(b);return x.map(C=>{var A;const L=C.result;if(!L)return C;const N=(A=L.errors)==null?void 0:A.map(P=>o(E,P)).filter(P=>P!=null).join("<br><br>");return N!=null&&N.length&&(L.htmlError=N),C})}const c=Ce(()=>{var L,N;const b=t.file,x=((L=b==null?void 0:b.tasks)==null?void 0:L.flatMap(A=>r(A,0)))??[],E=b==null?void 0:b.result;if((N=E==null?void 0:E.errors)==null?void 0:N[0]){const A={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:E};x.unshift(A)}return x.length>0?s(ya.value,x):x});function f(b){var E;const x=(E=b.meta)==null?void 0:E.failScreenshotPath;x&&fetch(`/__open-in-editor?file=${encodeURIComponent(x)}`)}const d=Be(!1),h=Be(Date.now()),p=Be(),v=Ce(()=>{var E;const b=(E=p.value)==null?void 0:E.meta.failScreenshotPath,x=h.value;return b?`/__screenshot-error?file=${encodeURIComponent(b)}&t=${x}`:void 0});function y(b){p.value=b,h.value=Date.now(),d.value=!0}return(b,x)=>{const E=gi,C=rfe,L=Zue,N=jw,A=Ur("tooltip");return oe(),me("div",ife,[z(c).length?(oe(!0),me(ut,{key:0},ui(z(c),P=>{var M,q,W,X;return oe(),me("div",{key:P.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Kt({"margin-left":`${(M=P.result)!=null&&M.htmlError?.5:2*P.level+.5}rem`})},[Y("div",ofe,[Y("span",null,qe(P.name),1),z(Ro)&&((q=P.meta)!=null&&q.failScreenshotPath)?(oe(),me(ut,{key:0},[vt(Pe(E,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:ie=>y(P)},null,8,["onClick"]),[[A,"View screenshot error",void 0,{bottom:!0}]]),vt(Pe(E,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:ie=>f(P)},null,8,["onClick"]),[[A,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ye("",!0)]),(W=P.result)!=null&&W.htmlError?(oe(),me("div",sfe,[Y("pre",{innerHTML:P.result.htmlError},null,8,lfe)])):(X=P.result)!=null&&X.errors?(oe(!0),me(ut,{key:1},ui(P.result.errors,(ie,ee)=>{var j;return oe(),ot(C,{key:ee,error:ie,filename:(j=b.file)==null?void 0:j.name,root:z(Hu).root},null,8,["error","filename","root"])}),128)):Ye("",!0)],4)])}),128)):(oe(),me("div",afe," All tests passed in this file ")),z(Ro)?(oe(),ot(N,{key:2,modelValue:z(d),"onUpdate:modelValue":x[1]||(x[1]=P=>Pt(d)?d.value=P:null),direction:"right"},{default:st(()=>[z(p)?(oe(),ot(Ry,{key:0},{default:st(()=>[Pe(L,{file:z(p).file.filepath,name:z(p).name,url:z(v),onClose:x[0]||(x[0]=P=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])):Ye("",!0)])}}}),ufe=Vr(cfe,[["__scopeId","data-v-8f3dbcaa"]]),ffe={border:"b base","p-4":""},dfe=["innerHTML"],hfe=ft({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),me("div",ffe,[Y("div",{"text-xs":"","mb-1":"",class:lt(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},qe(t(r.time))+" | "+qe(r.taskName)+" | "+qe(r.type),3),Y("pre",{"data-type":"html",innerHTML:r.content},null,8,dfe)]))}}),pfe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},gfe={key:1,p6:""},vfe=Y("pre",{inline:""},"console.log(foo)",-1),mfe=ft({__name:"ViewConsoleOutput",setup(e){const t=Ce(()=>{const o=Uw.value;if(o){const s=Wh(ya.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(ql(h))}))}});function r(o){const s=o&&bt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?YE(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=hfe;return(f=z(t))!=null&&f.length?(oe(),me("div",pfe,[(oe(!0),me(ut,null,ui(z(t),({taskId:d,type:h,time:p,content:v})=>(oe(),me("div",{key:d,"font-mono":""},[Pe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(oe(),me("p",gfe,[pt(" Log something in your test and it would print here. (e.g. "),vfe,pt(") ")]))}}});var Gw={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Oo,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),y=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],E=/Opera\//.test(r),C=/Apple Computer/.test(navigator.vendor),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),N=/PhantomJS/.test(r),A=C&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),P=/Android/.test(r),M=A||P||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),q=A||/Mac/.test(o),W=/\bCrOS\b/.test(r),X=/win/i.test(o),ie=E&&r.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&(E=!1,v=!0);var ee=q&&(y||E&&(ie==null||ie<12.11)),j=s||h&&p>=9;function te(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var Z=function(n,i){var a=n.className,l=te(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function H(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function I(n,i){return H(n).appendChild(i)}function k(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function B(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var U;document.createRange?U=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:U=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 re(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 ye(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 Ne(n,i){var a=n.className;te(i).test(a)||(n.className+=(a?" ":"")+i)}function We(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!te(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};A?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function it(n){return n.display.wrapper.ownerDocument}function rt(n){return Je(n.display.wrapper)}function Je(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Le(n){return it(n).defaultView}function K(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function ae(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 de(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,m=u||0;;){var w=n.indexOf(" ",g);if(w<0||w>=i)return m+(i-g);m+=w-g,m+=a-m%a,g=w+1}}var $e=function(){this.id=null,this.f=null,this.time=0,this.handler=K(this.onTimeout,this)};$e.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},$e.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 Ee(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var Ze=50,O={toString:function(){return"CodeMirror.Pass"}},F={scroll:!1},J={origin:"*mouse"},ue={origin:"+move"};function le(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var m=g-l;if(g==n.length||u+m>=i)return l+Math.min(m,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var he=[""];function Se(n){for(;he.length<=n;)he.push(fe(he)+" ");return he[n]}function fe(n){return n[n.length-1]}function xe(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function pe(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Me(){}function ze(n,i){var a;return Object.create?a=Object.create(n):(Me.prototype=n,a=new Me),i&&ae(i,a),a}var Re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ue(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Re.test(n))}function Ge(n,i){return i?i.source.indexOf("\\w")>-1&&Ue(n)?!0:i.test(n):Ue(n)}function mt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var tt=/[\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 nt(n){return n.charCodeAt(0)>=768&&tt.test(n)}function Ft(n,i,a){for(;(a<0?i>0:i<n.length)&&nt(n.charAt(i));)i+=a;return i}function Jt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function lr(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var m=n[g];(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",g),u=!0)}u||l(i,a,"ltr")}var qn=null;function ar(n,i,a){var l;qn=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:qn=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:qn=u)}return l??qn}var Qt=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(S){return S<=247?n.charAt(S):1424<=S&&S<=1524?"R":1536<=S&&S<=1785?i.charAt(S-1536):1774<=S&&S<=2220?"r":8192<=S&&S<=8203?"w":S==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,m=/[Lb1n]/,w=/[1n]/;function _(S,$,D){this.level=S,this.from=$,this.to=D}return function(S,$){var D=$=="ltr"?"L":"R";if(S.length==0||$=="ltr"&&!l.test(S))return!1;for(var G=S.length,V=[],ne=0;ne<G;++ne)V.push(a(S.charCodeAt(ne)));for(var ce=0,ve=D;ce<G;++ce){var be=V[ce];be=="m"?V[ce]=ve:ve=be}for(var ke=0,we=D;ke<G;++ke){var Ae=V[ke];Ae=="1"&&we=="r"?V[ke]="n":g.test(Ae)&&(we=Ae,Ae=="r"&&(V[ke]="R"))}for(var He=1,De=V[0];He<G-1;++He){var Qe=V[He];Qe=="+"&&De=="1"&&V[He+1]=="1"?V[He]="1":Qe==","&&De==V[He+1]&&(De=="1"||De=="n")&&(V[He]=De),De=Qe}for(var xt=0;xt<G;++xt){var Vt=V[xt];if(Vt==",")V[xt]="N";else if(Vt=="%"){var Tt=void 0;for(Tt=xt+1;Tt<G&&V[Tt]=="%";++Tt);for(var Nn=xt&&V[xt-1]=="!"||Tt<G&&V[Tt]=="1"?"1":"N",yn=xt;yn<Tt;++yn)V[yn]=Nn;xt=Tt-1}}for(var Ot=0,bn=D;Ot<G;++Ot){var Yt=V[Ot];bn=="L"&&Yt=="1"?V[Ot]="L":g.test(Yt)&&(bn=Yt)}for(var Ht=0;Ht<G;++Ht)if(u.test(V[Ht])){var Rt=void 0;for(Rt=Ht+1;Rt<G&&u.test(V[Rt]);++Rt);for(var Mt=(Ht?V[Ht-1]:D)=="L",wn=(Rt<G?V[Rt]:D)=="L",cs=Mt==wn?Mt?"L":"R":D,Li=Ht;Li<Rt;++Li)V[Li]=cs;Ht=Rt-1}for(var rn=[],Nr,jt=0;jt<G;)if(m.test(V[jt])){var Ff=jt;for(++jt;jt<G&&m.test(V[jt]);++jt);rn.push(new _(0,Ff,jt))}else{var ei=jt,vo=rn.length,mo=$=="rtl"?1:0;for(++jt;jt<G&&V[jt]!="L";++jt);for(var cn=ei;cn<jt;)if(w.test(V[cn])){ei<cn&&(rn.splice(vo,0,new _(1,ei,cn)),vo+=mo);var us=cn;for(++cn;cn<jt&&w.test(V[cn]);++cn);rn.splice(vo,0,new _(2,us,cn)),vo+=mo,ei=cn}else++cn;ei<jt&&rn.splice(vo,0,new _(1,ei,jt))}return $=="ltr"&&(rn[0].level==1&&(Nr=S.match(/^\s+/))&&(rn[0].from=Nr[0].length,rn.unshift(new _(0,0,Nr[0].length))),fe(rn).level==1&&(Nr=S.match(/\s+$/))&&(fe(rn).to-=Nr[0].length,rn.push(new _(0,G-Nr[0].length,G)))),$=="rtl"?rn.reverse():rn}}();function Ve(n,i){var a=n.order;return a==null&&(a=n.order=Qt(n.text,i)),a}var oo=[],Fe=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]||oo).concat(a)}};function Gr(n,i){return n._handlers&&n._handlers[i]||oo}function en(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,u=l&&l[i];if(u){var g=Ee(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Et(n,i){var a=Gr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Lt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Et(n,a||i.type,n,i),pn(i)||i.codemirrorIgnore}function Zn(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)Ee(a,i[l])==-1&&a.push(i[l])}function An(n,i){return Gr(n,i).length>0}function cr(n){n.prototype.on=function(i,a){Fe(this,i,a)},n.prototype.off=function(i,a){en(this,i,a)}}function tn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Io(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function pn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function vi(n){tn(n),Io(n)}function Bs(n){return n.target||n.srcElement}function ur(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),q&&n.ctrlKey&&i==1&&(i=3),i}var Vu=function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),Fo;function _a(n){if(Fo==null){var i=k("span","​");I(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Fo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Fo?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Ws;function mi(n){if(Ws!=null)return Ws;var i=I(n,document.createTextNode("AخA")),a=U(i,0,1).getBoundingClientRect(),l=U(i,1,2).getBoundingClientRect();return H(n),!a||a.left==a.right?!1:Ws=l.right-a.right<3}var Jn=`
25
+ `).map(t=>Vae(t)).filter(Fb)}function Xae(e,t){return t&&e.endsWith(t)}async function dw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Wh(e){return new Jle({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Yae(e){return e===null||typeof e!="function"&&typeof e!="object"}function hw(e){let t=e;if(Yae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:""}}return t.stacks=jae(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}function Du(e){return B0()?(eS(e),!0):!1}function Br(e){return typeof e=="function"?e():z(e)}const Zae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Jae=Object.prototype.toString,Qae=e=>Jae.call(e)==="[object Object]",na=()=>{};function pw(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const gw=e=>e();function vw(e,t={}){let r,o,s=na;const c=d=>{clearTimeout(d),s(),s=na};return d=>{const h=Br(e),p=Br(t.maxWait);return r&&c(r),h<=0||p!==void 0&&p<=0?(o&&(c(o),o=null),Promise.resolve(d())):new Promise((v,y)=>{s=t.rejectOnCancel?y:v,p&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(d())},p)),r=setTimeout(()=>{o&&c(o),o=null,v(d())},h)})}}function ece(e=gw){const t=Be(!0);function r(){t.value=!1}function o(){t.value=!0}const s=(...c)=>{t.value&&e(...c)};return{isActive:ua(t),pause:r,resume:o,eventFilter:s}}function tce(e){return da()}function nce(...e){if(e.length!==1)return yu(...e);const t=e[0];return typeof t=="function"?ua(iy(()=>({get:t,set:na}))):Be(t)}function dc(e,t=200,r={}){return pw(vw(t,r),e)}function mw(e,t,r={}){const{eventFilter:o=gw,...s}=r;return It(e,pw(o,t),s)}function yw(e,t,r={}){const{eventFilter:o,...s}=r,{eventFilter:c,pause:f,resume:d,isActive:h}=ece(o);return{stop:mw(e,t,{...s,eventFilter:c}),pause:f,resume:d,isActive:h}}function Uh(e,t=!0,r){tce()?Hs(e,r):t?e():ln(e)}function rce(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Pt(e),c=Be(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Br(r);return c.value=c.value===h?Br(o):h,c.value}}return s?f:[c,f]}function bw(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return mw(e,t,{...c,eventFilter:vw(o,{maxWait:s})})}function ice(e,t,r){const o=It(e,(...s)=>(ln(()=>o()),t(...s)),r);return o}function oce(e,t,r){let o;Pt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=na}=o,h=Be(!s),p=f?Wr(t):Be(t);let v=0;return Th(async y=>{if(!h.value)return;v++;const b=v;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const A=await e(T=>{y(()=>{c&&(c.value=!1),x||T()})});b===v&&(p.value=A)}catch(A){d(A)}finally{c&&b===v&&(c.value=!1),x=!0}}),s?Ce(()=>(h.value=!0,p.value)):p}function eu(e){var t;const r=Br(e);return(t=r==null?void 0:r.$el)!=null?t:r}const or=Zae?window:void 0;function Ps(...e){let t,r,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,o,s]=e,t=or):[t,r,o,s]=e,!t)return na;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const c=[],f=()=>{c.forEach(v=>v()),c.length=0},d=(v,y,b,x)=>(v.addEventListener(y,b,x),()=>v.removeEventListener(y,b,x)),h=It(()=>[eu(t),Br(s)],([v,y])=>{if(f(),!v)return;const b=Qae(y)?{...y}:y;c.push(...r.flatMap(x=>o.map(A=>d(v,x,A,b))))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return Du(p),p}function sce(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ww(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=or,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=sce(t);return Ps(s,c,v=>{v.repeat&&Br(d)||h(v)&&r(v)},f)}function lce(){const e=Be(!1),t=da();return t&&Hs(()=>{e.value=!0},t),e}function xw(e){const t=lce();return Ce(()=>(t.value,!!e()))}function ace(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=or}=t,c=Be(!1),f=o?1e3/o:null;let d=0,h=null;function p(b){if(!c.value||!s)return;d||(d=b);const x=b-d;if(f&&x<f){h=s.requestAnimationFrame(p);return}d=b,e({delta:x,timestamp:b}),h=s.requestAnimationFrame(p)}function v(){!c.value&&s&&(c.value=!0,d=0,h=s.requestAnimationFrame(p))}function y(){c.value=!1,h!=null&&s&&(s.cancelAnimationFrame(h),h=null)}return r&&v(),Du(y),{isActive:ua(c),pause:y,resume:v}}function _w(e,t={}){const{window:r=or}=t,o=xw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const c=Be(!1),f=p=>{c.value=p.matches},d=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},h=Th(()=>{o.value&&(d(),s=r.matchMedia(Br(e)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),c.value=s.matches)});return Du(()=>{h(),d(),s=void 0}),c}const hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pc="__vueuse_ssr_handlers__",cce=uce();function uce(){return pc in hc||(hc[pc]=hc[pc]||{}),hc[pc]}function Sw(e,t){return cce[e]||t}function fce(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const dce={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Jm="vueuse-storage";function kw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:y=or,eventFilter:b,onError:x=j=>{console.error(j)},initOnMounted:A}=o,T=(v?Wr:Be)(typeof t=="function"?t():t);if(!r)try{r=Sw("getDefaultStorage",()=>{var j;return(j=or)==null?void 0:j.localStorage})()}catch(j){x(j)}if(!r)return T;const E=Br(t),L=fce(E),M=(s=o.serializer)!=null?s:dce[L],{pause:P,resume:N}=yw(T,()=>W(T.value),{flush:c,deep:f,eventFilter:b});y&&d&&Uh(()=>{r instanceof Storage?Ps(y,"storage",ie):Ps(y,Jm,ee),A&&ie()}),A||ie();function q(j,te){y&&!(r instanceof Storage)&&y.dispatchEvent(new CustomEvent(Jm,{detail:{key:e,oldValue:j,newValue:te,storageArea:r}}))}function W(j){try{const te=r.getItem(e);if(j==null)q(te,null),r.removeItem(e);else{const Z=M.write(j);te!==Z&&(r.setItem(e,Z),q(te,Z))}}catch(te){x(te)}}function X(j){const te=j?j.newValue:r.getItem(e);if(te==null)return h&&E!=null&&r.setItem(e,M.write(E)),E;if(!j&&p){const Z=M.read(te);return typeof p=="function"?p(Z,E):L==="object"&&!Array.isArray(Z)?{...E,...Z}:Z}else return typeof te!="string"?te:M.read(te)}function ie(j){if(!(j&&j.storageArea!==r)){if(j&&j.key==null){T.value=E;return}if(!(j&&j.key!==e)){P();try{(j==null?void 0:j.newValue)!==M.write(T.value)&&(T.value=X(j))}catch(te){x(te)}finally{j?ln(N):N()}}}}function ee(j){ie(j.detail)}return T}function Cw(e){return _w("(prefers-color-scheme: dark)",e)}const hce="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function pce(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=or,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,y={auto:"",light:"light",dark:"dark",...e.modes||{}},b=Cw({window:s}),x=Ce(()=>b.value?"dark":"light"),A=h||(f==null?nce(o):kw(f,o,c,{window:s,listenToStorageChanges:d})),T=Ce(()=>A.value==="auto"?x.value:A.value),E=Sw("updateHTMLAttrs",(N,q,W)=>{const X=typeof N=="string"?s==null?void 0:s.document.querySelector(N):eu(N);if(!X)return;const ie=new Set,ee=new Set;let j=null;if(q==="class"){const Z=W.split(/\s/g);Object.values(y).flatMap(H=>(H||"").split(/\s/g)).filter(Boolean).forEach(H=>{Z.includes(H)?ie.add(H):ee.add(H)})}else j={key:q,value:W};if(ie.size===0&&ee.size===0&&j===null)return;let te;v&&(te=s.document.createElement("style"),te.appendChild(document.createTextNode(hce)),s.document.head.appendChild(te));for(const Z of ie)X.classList.add(Z);for(const Z of ee)X.classList.remove(Z);j&&X.setAttribute(j.key,j.value),v&&(s.getComputedStyle(te).opacity,document.head.removeChild(te))});function L(N){var q;E(t,r,(q=y[N])!=null?q:N)}function M(N){e.onChanged?e.onChanged(N,L):L(N)}It(T,M,{flush:"post",immediate:!0}),Uh(()=>M(T.value));const P=Ce({get(){return p?A.value:T.value},set(N){A.value=N}});try{return Object.assign(P,{store:A,system:x,state:T})}catch{return P}}function gce(e={}){const{valueDark:t="dark",valueLight:r="",window:o=or}=e,s=pce({...e,onChanged:(d,h)=>{var p;e.onChanged?(p=e.onChanged)==null||p.call(e,d==="dark",h,d):h(d)},modes:{dark:t,light:r}}),c=Ce(()=>s.system?s.system.value:Cw({window:o}).value?"dark":"light");return Ce({get(){return s.value==="dark"},set(d){const h=d?"dark":"light";c.value===h?s.value="auto":s.value=h}})}function vce(e,t,r={}){const{window:o=or,...s}=r;let c;const f=xw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Ce(()=>{const y=Br(e);return Array.isArray(y)?y.map(b=>eu(b)):[eu(y)]}),p=It(h,y=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of y)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Du(v),{isSupported:f,stop:v}}function zu(e,t,r={}){const{window:o=or}=r;return kw(e,t,o==null?void 0:o.localStorage,r)}function mce(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,window:f=or}=t;if(!f)return Xn(r);const d=Xn({});function h(){if(e==="history")return f.location.search||"";if(e==="hash"){const L=f.location.hash||"",M=L.indexOf("?");return M>0?L.slice(M):""}else return(f.location.hash||"").replace(/^#/,"")}function p(L){const M=L.toString();if(e==="history")return`${M?`?${M}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${M?`#${M}`:""}`;const P=f.location.hash||"#",N=P.indexOf("?");return N>0?`${P.slice(0,N)}${M?`?${M}`:""}`:`${P}${M?`?${M}`:""}`}function v(){return new URLSearchParams(h())}function y(L){const M=new Set(Object.keys(d));for(const P of L.keys()){const N=L.getAll(P);d[P]=N.length>1?N:L.get(P)||"",M.delete(P)}Array.from(M).forEach(P=>delete d[P])}const{pause:b,resume:x}=yw(d,()=>{const L=new URLSearchParams("");Object.keys(d).forEach(M=>{const P=d[M];Array.isArray(P)?P.forEach(N=>L.append(M,N)):o&&P==null||s&&!P?L.delete(M):L.set(M,P)}),A(L)},{deep:!0});function A(L,M){b(),M&&y(L),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+p(L)),x()}function T(){c&&A(v(),!0)}Ps(f,"popstate",T,!1),e!=="history"&&Ps(f,"hashchange",T,!1);const E=v();return E.keys().next().value?y(E):Object.assign(d,r),d}function Vh(e={}){const{window:t=or,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Be(r),h=Be(o),p=()=>{t&&(f==="outer"?(d.value=t.outerWidth,h.value=t.outerHeight):c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight))};if(p(),Uh(p),Ps("resize",p,{passive:!0}),s){const v=_w("(orientation: portrait)");It(v,()=>p())}return{width:d,height:h}}const jh=mce("hash",{initialValue:{file:"",view:null,line:null}}),eo=yu(jh,"file"),Un=yu(jh,"view"),zd=yu(jh,"line"),Pr=Be([414,896]),tu=Be("idle"),yce=Ce(()=>tu.value==="idle"),Hi=Be([]),Os=Be(),Ss=Be(!0),to=Be(!1),nu=Be(!0),hs=Ce(()=>{var e;return(e=Hu.value)==null?void 0:e.coverage}),Id=Ce(()=>{var e;return(e=hs.value)==null?void 0:e.enabled}),ps=Ce(()=>Id.value&&!!hs.value.htmlReporter),br=zu("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),Mo=zu("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),dn=Xn({navigation:br.value[0],details:{size:br.value[1],browser:Mo.value[0],main:Mo.value[1]}}),Qm=Ce(()=>{var e;if(ps.value){const t=hs.value.reportsDirectory.lastIndexOf("/"),r=(e=hs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${hs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${hs.value.reportsDirectory.slice(t+1)}/index.html`}});It(tu,e=>{nu.value=e==="running"},{immediate:!0});function bce(){const e=eo.value;if(e&&e.length>0){const t=sr(e);t?(Os.value=t,Ss.value=!1,to.value=!1):ice(()=>bt.state.getFiles(),()=>{Os.value=sr(e),Ss.value=!1,to.value=!1})}return Ss}function ru(e){Ss.value=e,to.value=!1,e&&(Os.value=void 0,eo.value="")}function Tw(e,t=null){eo.value=e.file.id,zd.value=null,t!=null&&(ln(()=>{zd.value=t}),Un.value="editor"),Os.value=sr(e.file.id),ru(!1)}function wce(){to.value=!0,Ss.value=!1,Os.value=void 0,eo.value=""}function xce(){dn.details.browser=100,dn.details.main=0,Mo.value=[100,0]}function _ce(){dn.details.browser=33,dn.details.main=67,Mo.value=[33,67]}function Sce(){dn.navigation=33,dn.details.size=67,br.value=[33,67]}const kce={setCurrentFileId(e){eo.value=e,Os.value=sr(e),ru(!1)},async setIframeViewport(e,t){Pr.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}};var Kn=Uint8Array,gs=Uint16Array,Cce=Int32Array,Ew=new Kn([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]),Lw=new Kn([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]),Tce=new Kn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Aw=function(e,t){for(var r=new gs(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Cce(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},Mw=Aw(Ew,2),Nw=Mw.b,Ece=Mw.r;Nw[28]=258,Ece[258]=28;var Lce=Aw(Lw,0),Ace=Lce.b,Fd=new gs(32768);for(var Ct=0;Ct<32768;++Ct){var Pi=(Ct&43690)>>1|(Ct&21845)<<1;Pi=(Pi&52428)>>2|(Pi&13107)<<2,Pi=(Pi&61680)>>4|(Pi&3855)<<4,Fd[Ct]=((Pi&65280)>>8|(Pi&255)<<8)>>1}var Hl=function(e,t,r){for(var o=e.length,s=0,c=new gs(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new gs(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new gs(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],y=f[e[s]-1]++<<v,b=y|(1<<v)-1;y<=b;++y)d[Fd[y]>>h]=p}else for(d=new gs(o),s=0;s<o;++s)e[s]&&(d[s]=Fd[f[e[s]-1]++]>>15-e[s]);return d},va=new Kn(288);for(var Ct=0;Ct<144;++Ct)va[Ct]=8;for(var Ct=144;Ct<256;++Ct)va[Ct]=9;for(var Ct=256;Ct<280;++Ct)va[Ct]=7;for(var Ct=280;Ct<288;++Ct)va[Ct]=8;var $w=new Kn(32);for(var Ct=0;Ct<32;++Ct)$w[Ct]=5;var Mce=Hl(va,9,1),Nce=Hl($w,5,1),nd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},yr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},rd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},$ce=function(e){return(e+7)/8|0},Pw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Kn(e.subarray(t,r))},Pce=["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"],Pn=function(e,t,r){var o=new Error(t||Pce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Pn),!r)throw o;return o},Gh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new Kn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Kn(s*3));var p=function(Ee){var Ze=r.length;if(Ee>Ze){var O=new Kn(Math.max(Ze*2,Ee));O.set(r),r=O}},v=t.f||0,y=t.p||0,b=t.b||0,x=t.l,A=t.d,T=t.m,E=t.n,L=s*8;do{if(!x){v=yr(e,y,1);var M=yr(e,y+1,3);if(y+=3,M)if(M==1)x=Mce,A=Nce,T=9,E=5;else if(M==2){var W=yr(e,y,31)+257,X=yr(e,y+10,15)+4,ie=W+yr(e,y+5,31)+1;y+=14;for(var ee=new Kn(ie),j=new Kn(19),te=0;te<X;++te)j[Tce[te]]=yr(e,y+te*3,7);y+=X*3;for(var Z=nd(j),H=(1<<Z)-1,I=Hl(j,Z,1),te=0;te<ie;){var k=I[yr(e,y,H)];y+=k&15;var P=k>>4;if(P<16)ee[te++]=P;else{var B=0,U=0;for(P==16?(U=3+yr(e,y,3),y+=2,B=ee[te-1]):P==17?(U=3+yr(e,y,7),y+=3):P==18&&(U=11+yr(e,y,127),y+=7);U--;)ee[te++]=B}}var re=ee.subarray(0,W),ye=ee.subarray(W);T=nd(re),E=nd(ye),x=Hl(re,T,1),A=Hl(ye,E,1)}else Pn(1);else{var P=$ce(y)+4,N=e[P-4]|e[P-3]<<8,q=P+N;if(q>s){h&&Pn(0);break}d&&p(b+N),r.set(e.subarray(P,q),b),t.b=b+=N,t.p=y=q*8,t.f=v;continue}if(y>L){h&&Pn(0);break}}d&&p(b+131072);for(var Ne=(1<<T)-1,We=(1<<E)-1,je=y;;je=y){var B=x[rd(e,y)&Ne],it=B>>4;if(y+=B&15,y>L){h&&Pn(0);break}if(B||Pn(2),it<256)r[b++]=it;else if(it==256){je=y,x=null;break}else{var rt=it-254;if(it>264){var te=it-257,Je=Ew[te];rt=yr(e,y,(1<<Je)-1)+Nw[te],y+=Je}var Le=A[rd(e,y)&We],K=Le>>4;Le||Pn(3),y+=Le&15;var ye=Ace[K];if(K>3){var Je=Lw[K];ye+=rd(e,y)&(1<<Je)-1,y+=Je}if(y>L){h&&Pn(0);break}d&&p(b+131072);var ae=b+rt;if(b<ye){var de=c-ye,$e=Math.min(ye,ae);for(de+b<0&&Pn(3);b<$e;++b)r[b]=o[de+b]}for(;b<ae;++b)r[b]=r[b-ye]}}t.l=x,t.p=je,t.b=b,t.f=v,x&&(v=1,t.m=T,t.d=A,t.n=E)}while(!v);return b!=r.length&&f?Pw(r,0,b):r.subarray(0,b)},Oce=new Kn(0),Rce=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Pn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Dce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},zce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Pn(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&Pn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Ice(e,t){return Gh(e,{i:2},t,t)}function Fce(e,t){var r=Rce(e);return r+8>e.length&&Pn(6,"invalid gzip data"),Gh(e.subarray(r,-8),{i:2},new Kn(Dce(e)),t)}function Hce(e,t){return Gh(e.subarray(zce(e,t),-4),{i:2},t,t)}function qce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Fce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Ice(e,t):Hce(e,t)}var Hd=typeof TextDecoder<"u"&&new TextDecoder,Bce=0;try{Hd.decode(Oce,{stream:!0}),Bce=1}catch{}var Wce=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Pw(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function Uce(e,t){var r;if(Hd)return Hd.decode(e);var o=Wce(e),s=o.s,r=o.r;return r.length&&Pn(8),s}const id=()=>{},xn=()=>Promise.resolve();function Vce(){const e=Xn({state:new Bb,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=Xn(e.state.filesMap),e.state.idMap=Xn(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:xn,onDone:id,onTaskUpdate:id,writeFile:xn,rerun:xn,updateSnapshot:xn,resolveSnapshotPath:xn,snapshotSaved:xn,onAfterSuiteRun:xn,onCancel:xn,getCountOfFailedTests:()=>0,sendLog:xn,resolveSnapshotRawPath:xn,readSnapshotFile:xn,saveSnapshotFile:xn,readTestFile:async d=>t.sources[d],removeSnapshotFile:xn,onUnhandledError:id,saveTestFile:xn,getProvidedContext:()=>({}),getTestFiles:xn};e.rpc=r;let o;function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const y=new Uint8Array(await d.arrayBuffer()),b=Uce(qce(y));t=Rd(b)}else t=Rd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const qd=Wr([]),Hn=Wr([]),Cr=zu("vitest-ui_task-tree-opened",[],{shallow:!0}),iu=Ce(()=>new Set(Cr.value)),on=zu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),On=Be(on.value.search),jce={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ow(e){return e.replace(/[&<>"']/g,t=>jce[t])}const Gce=Ce(()=>{const e=On.value.toLowerCase();return e.length?new RegExp(`(${Ow(e)})`,"gi"):null}),Rw=Ce(()=>On.value.trim()!==""),et=Xn({failed:on.value.failed,success:on.value.success,skipped:on.value.skipped,onlyTests:on.value.onlyTests}),Bd=Ce(()=>!!(et.failed||et.success||et.skipped)),Iu=Wr([]),Rs=Be(!1),e0=Ce(()=>{const e=on.value.expandAll;return Cr.value.length>0?e!==!0:e!==!1}),Kce=Ce(()=>{const e=Rw.value,t=Bd.value,r=et.onlyTests,o=Te.summary.filesFailed,s=Te.summary.filesSuccess,c=Te.summary.filesSkipped,f=Te.summary.filesRunning,d=Iu.value;return Te.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Fu(e){return Object.hasOwnProperty.call(e,"tasks")}function Xce(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Dw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["blue","yellow","cyan","green","magenta"];return r[t%r.length]}function Yce(e){return e.type==="test"||e.type==="custom"}function Zce(e){return e.mode==="run"&&(e.type==="test"||e.type==="custom")}function Cn(e){return e.type==="file"}function fi(e){return e.type==="file"||e.type==="suite"}function Jce(e=Te.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ra(e,t=!1){var o,s,c,f,d;let r=Te.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:iu.value.size>0&&iu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((c=e.result)==null?void 0:c.duration)!=null?Math.round((f=e.result)==null?void 0:f.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Dw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Te.nodes.set(e.id,r),Te.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)ma(e.id,e.tasks[h],!0)}function zw(e,t){const r=Te.nodes.get(e);if(!r||!fi(r))return;const o=bt.state.idMap.get(e);if(!(!o||!Fu(o)))return ma(r.parentId,o,t&&o.tasks.length>0),[r,o]}function Qce(e){const t=Te.nodes.get(e);if(!t)return;const r=bt.state.idMap.get(e);!r||!$s(r)||ma(t.parentId,r,!1)}function ma(e,t,r){var f,d,h,p,v;const o=Te.nodes.get(e);let s;const c=((f=t.result)==null?void 0:f.duration)!=null?Math.round((d=t.result)==null?void 0:d.duration):void 0;if(o&&(s=Te.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.mode=t.mode,s.duration=c,s.state=(h=t.result)==null?void 0:h.state):($s(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:(p=t.result)==null?void 0:p.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:iu.value.size>0&&iu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Te.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Fu(t)))for(let y=0;y<t.tasks.length;y++)ma(s.id,t.tasks[y],r)}function eue(e,t,r){return e?Hw(e,t,r):!1}function Kh(e,t){const r=[...Iw(e,t)];Hn.value=r,Iu.value=r.filter(Cn).map(o=>sr(o.id))}function*Iw(e,t){for(const r of Jce())yield*Fw(r,e,t)}function*Fw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[y,b]of Wd(e,o,x=>t0(x,t,r)))c.push([y,b]);else{for(const[y,b]of Wd(e,o,x=>t0(x,t,r)))fi(b)?(s.set(b.id,y),Cn(b)?(y&&(f=b.id),c.push([y,b])):c.push([y||s.get(b.parentId)===!0,b])):c.push([y||s.get(b.parentId)===!0,b]);!f&&!Cn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...nue(c,r.onlyTests,o,d,f)].reverse(),p=Te.nodes,v=new Set(h.filter(y=>{var b;return Cn(y)||fi(y)&&((b=p.get(y.parentId))==null?void 0:b.expanded)}).map(y=>y.id));yield*h.filter(y=>{var b;return Cn(y)||v.has(y.parentId)&&((b=p.get(y.parentId))==null?void 0:b.expanded)})}function tue(e,t,r,o,s){if(o){if(Cn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Te.nodes.get(t.parentId);return c&&Cn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Te.nodes.get(t.parentId);return c&&Cn(c)&&s.add(c.id),t}}function*nue(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=fi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Te.nodes.get(d.parentId);for(;p;)r.add(p.id),Cn(p)&&o.add(p.id),p=Te.nodes.get(p.parentId);yield d;continue}if(h){const p=tue(f,d,r,t,o);p&&(yield p)}else if(f){const p=Te.nodes.get(d.parentId);p&&Cn(p)&&o.add(p.id),yield d}}}function rue(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Hw(e,t,r){if(t.length===0||Xce(e.name,t))if(r.success||r.failed||r.skipped){if(rue(e,r))return!0}else return!0;return!1}function*Wd(e,t,r){const o=r(e);if(o)if(Yce(e)){let s=Te.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Te.nodes.get(s.parentId)}else if(Cn(e))t.add(e.id);else{t.add(e.id);let s=Te.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Te.nodes.get(s.parentId)}if(yield[o,e],fi(e))for(let s=0;s<e.tasks.length;s++)yield*Wd(e.tasks[s],t,r)}function t0(e,t,r){const o=bt.state.idMap.get(e.id);return o?Hw(o,t,r):!1}function iue(e,t,r){const o=zw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)ma(s.id,p,!1);s.expanded=!0;const f=new Set(Cr.value);f.add(s.id);const d=new Set(Fw(s,t,r)),h=[...lue(s,d)];Cr.value=Array.from(f),Hn.value=h}function oue(e,t){Xh(Te.root.tasks,!1);const r=[...Iw(e,t)];on.value.expandAll=!1,Cr.value=[],Hn.value=r,Iu.value=r.filter(Cn).map(o=>sr(o.id))}function sue(e,t){if(e.size)for(const r of Hn.value)e.has(r.id)&&(r.expanded=!0);else t&&Xh(Hn.value.filter(Cn),!0)}function Xh(e,t){for(const r of e)fi(r)&&(r.expanded=!0,Xh(r.tasks,!1));t&&(on.value.expandAll=!1,Cr.value=[])}function*lue(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Hn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function aue(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ra(s,t)),qd.value=[...Te.root.tasks],Kh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function cue(e){queueMicrotask(()=>{const t=Te.pendingTasks,r=bt.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function n0(e,t,r,o,s){e&&gue(r);const c=!e;queueMicrotask(()=>{t?due(c):hue(c)}),queueMicrotask(()=>{vue(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=qd.value&&Hh(qd.value.map(f=>sr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{pue(o,s,t)})}function*uue(){yield*Hn.value.filter(Zce)}function fue(){const e=bt.state.idMap;let t;for(const r of uue())t=e.get(r.parentId),t&&Fu(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function due(e){const t=bt.state.getFiles(),r=Te.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ra(o[c],e),ou(o[c].tasks);const s=Te.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=sr(f.id);if(!d)continue;ra(d,e);const h=d.tasks;h!=null&&h.length&&ou(d.tasks)}}function hue(e){const t=new Map(Te.pendingTasks.entries());Te.pendingTasks.clear();const r=Te.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>sr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ra(s,!1),ou(s.tasks),t.delete(s.id);const c=bt.state.idMap,f=Te.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=sr(h.id);if(!p)continue;const v=t.get(p.id);v&&(ra(p,e),ou(Array.from(v).map(y=>c.get(y)).filter(Boolean)))}}function pue(e,t,r=!1){const o=on.value.expandAll,s=o!==!0,c=new Set(Cr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{r0(e,t,r)}),Rs.value||queueMicrotask(()=>{(Hn.value.length||r)&&(Rs.value=!0)}),f&&(queueMicrotask(()=>{sue(c,r),s&&(on.value.expandAll=!1)}),queueMicrotask(()=>{r0(e,t,r)}))}function r0(e,t,r){Kh(e,t),r&&fue()}function ou(e){let t;for(let r=0;r<e.length;r++)t=e[r],Fu(t)?zw(t.id,!0):Qce(t.id)}function gue(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function vue(e){var f,d,h,p,v,y;const t=bt.state.idMap,r=new Map(Te.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,sr(b.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,filesSnapshotFailed:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1};let c=0;for(const[b,x]of o){if(!x)continue;const A=r.get(b);A&&(A.mode=x.mode,A.setupDuration=x.setupDuration,A.prepareDuration=x.prepareDuration,A.environmentLoad=x.environmentLoad,A.collectDuration=x.collectDuration,A.duration=((f=x.result)==null?void 0:f.duration)!=null?Math.round((d=x.result)==null?void 0:d.duration):void 0,A.state=(h=x.result)==null?void 0:h.state),c+=Math.max(0,x.collectDuration||0),c+=Math.max(0,x.setupDuration||0),c+=Math.max(0,((p=x.result)==null?void 0:p.duration)||0),c+=Math.max(0,x.environmentLoad||0),c+=Math.max(0,x.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((v=x.result)==null?void 0:v.state)==="fail"?s.filesFailed++:((y=x.result)==null?void 0:y.state)==="pass"?s.filesSuccess++:x.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):x.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:T,success:E,skipped:L,total:M,ignored:P,todo:N}=qw(x);s.totalTests+=M,s.testsFailed+=T,s.testsSuccess+=E,s.testsSkipped+=L,s.testsTodo+=N,s.testsIgnore+=P}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function qw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of Bw(e))(!r||eue(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function mue(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>qw(h,s,c)).reduce((h,{failed:p,success:v,ignored:y,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=y,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,y=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=y?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*Bw(e){const t=Ih(e);let r;for(let o=0;o<t.length;o++)r=t[o],$s(r)?yield r:yield*Bw(r.tasks)}function yue(e){const t=Te.nodes.get(e);if(!t||!fi(t))return;const r=new Set(Cr.value);r.delete(t.id);const o=[...wue(t)];Cr.value=Array.from(r),Hn.value=o}function bue(){Ud(Te.root.tasks);const e=[...Hn.value.filter(Cn)];Ud(e),Cr.value=[],on.value.expandAll=!0,Hn.value=e}function Ud(e){for(const t of e)fi(t)&&(t.expanded=!1,Ud(t.tasks))}function*Ww(e,t){if(t&&(yield e.id),fi(e))for(let r=0;r<e.tasks.length;r++)yield*Ww(e.tasks[r],!0)}function*wue(e){const t=e.id,r=new Set(Ww(e,!1));for(let o=0;o<Hn.value.length;o++){const s=Hn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}class xue{constructor(t=!1,r=500,o={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},s=new Map,c=new Map,f=Xn({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){fs(this,"rafCollector");fs(this,"resumeEndRunId");this.onTaskUpdateCalled=t,this.resumeEndTimeout=r,this.root=o,this.pendingTasks=s,this.nodes=c,this.summary=f,this.rafCollector=ace(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t){aue(t,!0,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){cue(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{n0(t,r,this.summary,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}):n0(t,r,this.summary,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collectTestsTotal(t,r,o,s){return mue(t,r,o,s,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collapseNode(t){queueMicrotask(()=>{yue(t)})}expandNode(t){queueMicrotask(()=>{iue(t,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{bue()})}expandAllNodes(){queueMicrotask(()=>{oue(On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}filterNodes(){queueMicrotask(()=>{Kh(On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}}const Te=new xue,bt=function(){return Ir?Vce():ZE(eL,{reactive:(t,r)=>r==="state"?Xn(t):Wr(t),handlers:{onTaskUpdate(t){Te.resumeRun(t),tu.value="running"},onFinished(t,r){Te.endRun(),tu.value="idle",Hi.value=(r||[]).map(hw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Hu=Wr({}),To=Be("CONNECTING"),Gt=Ce(()=>{const e=eo.value;return e?sr(e):void 0}),Uw=Ce(()=>Fh(Gt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function sr(e){const t=bt.state.idMap.get(e);return t||void 0}const _ue=Ce(()=>To.value==="OPEN"),od=Ce(()=>To.value==="CONNECTING");Ce(()=>To.value==="CLOSED");function Sue(){return Yh(bt.state.getFiles())}function kue(e){const t=Te.nodes;e.forEach(r=>{delete r.result,Fh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,Cn(o)&&(o.collectDuration=void 0))})}function Yh(e){return kue(e),Te.startRun(),bt.rpc.rerun(e.map(t=>t.filepath))}const Ro=window.__vitest_browser_runner__;window.__vitest_ui_api__=kce;It(()=>bt.ws,e=>{To.value=Ir?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{To.value="OPEN",bt.state.filesMap.clear();const[t,r,o]=await Promise.all([bt.rpc.getFiles(),bt.rpc.getConfig(),bt.rpc.getUnhandledErrors()]);if(r.standalone){const c=(await bt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>Hb(h,d,f));bt.state.collectFiles(c)}else Te.loadFiles(t),bt.state.collectFiles(t),Te.startRun();Hi.value=(o||[]).map(hw),Hu.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{To.value==="CONNECTING"&&(To.value="CLOSED")},1e3)})},{immediate:!0});const Cue={"text-2xl":""},Tue={"text-lg":"",op50:""},Eue=ft({__name:"ConnectionOverlay",setup(e){return(t,r)=>z(_ue)?Ye("",!0):(oe(),me("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>z(bt).reconnect&&z(bt).reconnect(...o))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:lt(z(od)?"animate-pulse":"")},[Y("div",{text:"5xl",class:lt(z(od)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",Cue,qe(z(od)?"Connecting...":"Disconnected"),1),Y("div",Tue," Check your terminal or start a new server with `"+qe(z(Ro)?`vitest --browser=${z(Ro).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Lue=["aria-label","opacity","disabled","hover"],gi=ft({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(oe(),me("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:lt(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[hn(t.$slots,"default",{},()=>[Y("span",{class:lt(t.icon),ma:"",block:""},null,2)])],10,Lue))}}),Vw=e=>(Is("data-v-28536a8a"),e=e(),Fs(),e),Aue={h:"full",flex:"~ col"},Mue={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Nue=Vw(()=>Y("div",{class:"i-carbon-content-delivery-network"},null,-1)),$ue=Vw(()=>Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),Pue={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Oue={class:"pointer-events-none","text-sm":""},Rue={key:0},Due={id:"tester-container",relative:""},zue=["data-scale"],i0=20,Iue=100,Fue=ft({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return Pr.value[0]===v[0]&&Pr.value[1]===v[1]}async function o(p){Pr.value=t[p]}const{width:s,height:c}=Vh(),f=Ce(()=>{const y=s.value*(dn.details.size/100)*(dn.details.browser/100)-i0,b=c.value-Iue;return{width:y,height:b}}),d=Ce(()=>{const[p,v]=Pr.value,{width:y,height:b}=f.value,x=y>p?1:y/p,A=b>v?1:b/v;return Math.min(1,x,A)}),h=Ce(()=>{const p=f.value.width,v=Pr.value[0];return`${Math.trunc((p+i0-v)/2)}px`});return(p,v)=>{const y=gi,b=Ur("tooltip");return oe(),me("div",Aue,[Y("div",Mue,[vt(Pe(y,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=x=>z(Sce)())},null,512),[[Ui,z(dn).navigation<=2],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),Nue,$ue,vt(Pe(y,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=x=>z(xce)())},null,512),[[Ui,z(dn).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),vt(Pe(y,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=x=>z(_ce)())},null,512),[[Ui,z(dn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),Y("div",Pue,[vt(Pe(y,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=x=>o("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),vt(Pe(y,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=x=>o("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),vt(Pe(y,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=x=>o("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),Y("span",Oue,[pt(qe(z(Pr)[0])+"x"+qe(z(Pr)[1])+"px ",1),z(d)<1?(oe(),me("span",Rue,"("+qe((z(d)*100).toFixed(0))+"%)",1)):Ye("",!0)])]),Y("div",Due,[Y("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":z(d),style:Kt({"--viewport-width":`${z(Pr)[0]}px`,"--viewport-height":`${z(Pr)[1]}px`,"--tester-transform":`scale(${z(d)})`,"--tester-margin-left":z(h)})}," Select a test to run ",12,zue)])])}}}),Hue=Vr(Fue,[["__scopeId","data-v-28536a8a"]]),jw=ft({__name:"Modal",props:qc({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Eh(e,"modelValue"),r=Ce(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=Ce(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(oe(),me("div",{class:lt(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:lt(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),Y("div",{class:lt(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[z(r)]]),style:Kt(t.value?{}:{transform:z(o)})},[hn(c.$slots,"default")],6)],2))}}),que=e=>(Is("data-v-93900314"),e=e(),Fs(),e),Bue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Wue={"p-4":"",relative:"",border:"base b"},Uue=que(()=>Y("p",null,"Screenshot error",-1)),Vue={op50:"","font-mono":"","text-sm":""},jue={op50:"","font-mono":"","text-sm":""},Gue={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Kue=["src","alt"],Xue={key:1},Yue=ft({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return ww("Escape",()=>{r("close")}),(o,s)=>{const c=gi;return oe(),me("div",Bue,[Y("div",Wue,[Uue,Y("p",Vue,qe(o.file),1),Y("p",jue,qe(o.name),1),Pe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),Y("div",Gue,[o.url?(oe(),me("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,Kue)):(oe(),me("div",Xue," Something was wrong, the image cannot be resolved. "))])])}}}),Zue=Vr(Yue,[["__scopeId","data-v-93900314"]]);function ql(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}const ya=gce(),Jue=rce(ya),Que={class:"scrolls scrolls-rounded task-error"},efe=["onClickPassive"],tfe=["innerHTML"],nfe=ft({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const o=Ce(()=>Wh(ya.value)),s=Ce(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=Ce(()=>t.error.diff?o.value.toHtml(ql(t.error.diff)):void 0);return(f,d)=>{const h=Ur("tooltip");return oe(),me("div",Que,[Y("pre",null,[Y("b",null,qe(f.error.name||f.error.nameStr),1),pt(": "+qe(f.error.message),1)]),(oe(!0),me(ut,null,ui(f.error.stacks,(p,v)=>(oe(),me("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+qe(r(p.file))+":"+qe(p.line)+":"+qe(p.column),1),z(Xae)(p.file,f.filename)?vt((oe(),me("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:y=>z(dw)(p.file,p.line,p.column)},null,40,efe)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ye("",!0)]))),128)),z(s)?(oe(),me("pre",{key:0,"data-testid":"diff",innerHTML:z(c)},null,8,tfe)):Ye("",!0)])}}}),rfe=Vr(nfe,[["__scopeId","data-v-9dd6eaea"]]),ife={"h-full":"",class:"scrolls"},ofe={flex:"~ gap-2 items-center"},sfe={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},lfe=["innerHTML"],afe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},cfe=ft({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,x){var A;return((A=b.result)==null?void 0:A.state)!=="fail"?[]:b.type==="test"||b.type==="custom"?[{...b,level:x}]:[{...b,level:x},...b.tasks.flatMap(T=>r(T,x+1))]}function o(b,x){var E,L,M;let A="";(E=x.message)!=null&&E.includes("\x1B")&&(A=`<b>${x.nameStr||x.name}</b>: ${b.toHtml(ql(x.message))}`);const T=(L=x.stackStr)==null?void 0:L.includes("\x1B");return(T||(M=x.stack)!=null&&M.includes("\x1B"))&&(A.length>0?A+=b.toHtml(ql(T?x.stackStr:x.stack)):A=`<b>${x.nameStr||x.name}</b>: ${x.message}${b.toHtml(ql(T?x.stackStr:x.stack))}`),A.length>0?A:null}function s(b,x){const A=Wh(b);return x.map(T=>{var M;const E=T.result;if(!E)return T;const L=(M=E.errors)==null?void 0:M.map(P=>o(A,P)).filter(P=>P!=null).join("<br><br>");return L!=null&&L.length&&(E.htmlError=L),T})}const c=Ce(()=>{var E,L;const b=t.file,x=((E=b==null?void 0:b.tasks)==null?void 0:E.flatMap(M=>r(M,0)))??[],A=b==null?void 0:b.result;if((L=A==null?void 0:A.errors)==null?void 0:L[0]){const M={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:A};x.unshift(M)}return x.length>0?s(ya.value,x):x});function f(b){var A;const x=(A=b.meta)==null?void 0:A.failScreenshotPath;x&&fetch(`/__open-in-editor?file=${encodeURIComponent(x)}`)}const d=Be(!1),h=Be(Date.now()),p=Be(),v=Ce(()=>{var A;const b=(A=p.value)==null?void 0:A.meta.failScreenshotPath,x=h.value;return b?`/__screenshot-error?file=${encodeURIComponent(b)}&t=${x}`:void 0});function y(b){p.value=b,h.value=Date.now(),d.value=!0}return(b,x)=>{const A=gi,T=rfe,E=Zue,L=jw,M=Ur("tooltip");return oe(),me("div",ife,[z(c).length?(oe(!0),me(ut,{key:0},ui(z(c),P=>{var N,q,W,X;return oe(),me("div",{key:P.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Kt({"margin-left":`${(N=P.result)!=null&&N.htmlError?.5:2*P.level+.5}rem`})},[Y("div",ofe,[Y("span",null,qe(P.name),1),z(Ro)&&((q=P.meta)!=null&&q.failScreenshotPath)?(oe(),me(ut,{key:0},[vt(Pe(A,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:ie=>y(P)},null,8,["onClick"]),[[M,"View screenshot error",void 0,{bottom:!0}]]),vt(Pe(A,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:ie=>f(P)},null,8,["onClick"]),[[M,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ye("",!0)]),(W=P.result)!=null&&W.htmlError?(oe(),me("div",sfe,[Y("pre",{innerHTML:P.result.htmlError},null,8,lfe)])):(X=P.result)!=null&&X.errors?(oe(!0),me(ut,{key:1},ui(P.result.errors,(ie,ee)=>{var j;return oe(),ot(T,{key:ee,error:ie,filename:(j=b.file)==null?void 0:j.name,root:z(Hu).root},null,8,["error","filename","root"])}),128)):Ye("",!0)],4)])}),128)):(oe(),me("div",afe," All tests passed in this file ")),z(Ro)?(oe(),ot(L,{key:2,modelValue:z(d),"onUpdate:modelValue":x[1]||(x[1]=P=>Pt(d)?d.value=P:null),direction:"right"},{default:st(()=>[z(p)?(oe(),ot(Ry,{key:0},{default:st(()=>[Pe(E,{file:z(p).file.filepath,name:z(p).name,url:z(v),onClose:x[0]||(x[0]=P=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])):Ye("",!0)])}}}),ufe=Vr(cfe,[["__scopeId","data-v-8f3dbcaa"]]),ffe={border:"b base","p-4":""},dfe=["innerHTML"],hfe=ft({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),me("div",ffe,[Y("div",{"text-xs":"","mb-1":"",class:lt(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},qe(t(r.time))+" | "+qe(r.taskName)+" | "+qe(r.type),3),Y("pre",{"data-type":"html",innerHTML:r.content},null,8,dfe)]))}}),pfe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},gfe={key:1,p6:""},vfe=Y("pre",{inline:""},"console.log(foo)",-1),mfe=ft({__name:"ViewConsoleOutput",setup(e){const t=Ce(()=>{const o=Uw.value;if(o){const s=Wh(ya.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(ql(h))}))}});function r(o){const s=o&&bt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?YE(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=hfe;return(f=z(t))!=null&&f.length?(oe(),me("div",pfe,[(oe(!0),me(ut,null,ui(z(t),({taskId:d,type:h,time:p,content:v})=>(oe(),me("div",{key:d,"font-mono":""},[Pe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(oe(),me("p",gfe,[pt(" Log something in your test and it would print here. (e.g. "),vfe,pt(") ")]))}}});var Gw={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Oo,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),y=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],A=/Opera\//.test(r),T=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),L=/PhantomJS/.test(r),M=T&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),P=/Android/.test(r),N=M||P||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),q=M||/Mac/.test(o),W=/\bCrOS\b/.test(r),X=/win/i.test(o),ie=A&&r.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&(A=!1,v=!0);var ee=q&&(y||A&&(ie==null||ie<12.11)),j=s||h&&p>=9;function te(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var Z=function(n,i){var a=n.className,l=te(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function H(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function I(n,i){return H(n).appendChild(i)}function k(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function B(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var U;document.createRange?U=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:U=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 re(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 ye(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 Ne(n,i){var a=n.className;te(i).test(a)||(n.className+=(a?" ":"")+i)}function We(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!te(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};M?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function it(n){return n.display.wrapper.ownerDocument}function rt(n){return Je(n.display.wrapper)}function Je(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Le(n){return it(n).defaultView}function K(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function ae(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 de(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,m=u||0;;){var w=n.indexOf(" ",g);if(w<0||w>=i)return m+(i-g);m+=w-g,m+=a-m%a,g=w+1}}var $e=function(){this.id=null,this.f=null,this.time=0,this.handler=K(this.onTimeout,this)};$e.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},$e.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 Ee(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var Ze=50,O={toString:function(){return"CodeMirror.Pass"}},F={scroll:!1},J={origin:"*mouse"},ue={origin:"+move"};function le(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var m=g-l;if(g==n.length||u+m>=i)return l+Math.min(m,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var he=[""];function Se(n){for(;he.length<=n;)he.push(fe(he)+" ");return he[n]}function fe(n){return n[n.length-1]}function xe(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function pe(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Me(){}function ze(n,i){var a;return Object.create?a=Object.create(n):(Me.prototype=n,a=new Me),i&&ae(i,a),a}var Re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ue(n){return/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Re.test(n))}function Ge(n,i){return i?i.source.indexOf("\\w")>-1&&Ue(n)?!0:i.test(n):Ue(n)}function mt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var tt=/[\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 nt(n){return n.charCodeAt(0)>=768&&tt.test(n)}function Ft(n,i,a){for(;(a<0?i>0:i<n.length)&&nt(n.charAt(i));)i+=a;return i}function Jt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function lr(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var m=n[g];(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",g),u=!0)}u||l(i,a,"ltr")}var qn=null;function ar(n,i,a){var l;qn=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:qn=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:qn=u)}return l??qn}var Qt=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(S){return S<=247?n.charAt(S):1424<=S&&S<=1524?"R":1536<=S&&S<=1785?i.charAt(S-1536):1774<=S&&S<=2220?"r":8192<=S&&S<=8203?"w":S==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,m=/[Lb1n]/,w=/[1n]/;function _(S,$,D){this.level=S,this.from=$,this.to=D}return function(S,$){var D=$=="ltr"?"L":"R";if(S.length==0||$=="ltr"&&!l.test(S))return!1;for(var G=S.length,V=[],ne=0;ne<G;++ne)V.push(a(S.charCodeAt(ne)));for(var ce=0,ve=D;ce<G;++ce){var be=V[ce];be=="m"?V[ce]=ve:ve=be}for(var ke=0,we=D;ke<G;++ke){var Ae=V[ke];Ae=="1"&&we=="r"?V[ke]="n":g.test(Ae)&&(we=Ae,Ae=="r"&&(V[ke]="R"))}for(var He=1,De=V[0];He<G-1;++He){var Qe=V[He];Qe=="+"&&De=="1"&&V[He+1]=="1"?V[He]="1":Qe==","&&De==V[He+1]&&(De=="1"||De=="n")&&(V[He]=De),De=Qe}for(var xt=0;xt<G;++xt){var Vt=V[xt];if(Vt==",")V[xt]="N";else if(Vt=="%"){var Tt=void 0;for(Tt=xt+1;Tt<G&&V[Tt]=="%";++Tt);for(var Nn=xt&&V[xt-1]=="!"||Tt<G&&V[Tt]=="1"?"1":"N",yn=xt;yn<Tt;++yn)V[yn]=Nn;xt=Tt-1}}for(var Ot=0,bn=D;Ot<G;++Ot){var Yt=V[Ot];bn=="L"&&Yt=="1"?V[Ot]="L":g.test(Yt)&&(bn=Yt)}for(var Ht=0;Ht<G;++Ht)if(u.test(V[Ht])){var Rt=void 0;for(Rt=Ht+1;Rt<G&&u.test(V[Rt]);++Rt);for(var Mt=(Ht?V[Ht-1]:D)=="L",wn=(Rt<G?V[Rt]:D)=="L",cs=Mt==wn?Mt?"L":"R":D,Li=Ht;Li<Rt;++Li)V[Li]=cs;Ht=Rt-1}for(var rn=[],Nr,jt=0;jt<G;)if(m.test(V[jt])){var Ff=jt;for(++jt;jt<G&&m.test(V[jt]);++jt);rn.push(new _(0,Ff,jt))}else{var ei=jt,vo=rn.length,mo=$=="rtl"?1:0;for(++jt;jt<G&&V[jt]!="L";++jt);for(var cn=ei;cn<jt;)if(w.test(V[cn])){ei<cn&&(rn.splice(vo,0,new _(1,ei,cn)),vo+=mo);var us=cn;for(++cn;cn<jt&&w.test(V[cn]);++cn);rn.splice(vo,0,new _(2,us,cn)),vo+=mo,ei=cn}else++cn;ei<jt&&rn.splice(vo,0,new _(1,ei,jt))}return $=="ltr"&&(rn[0].level==1&&(Nr=S.match(/^\s+/))&&(rn[0].from=Nr[0].length,rn.unshift(new _(0,0,Nr[0].length))),fe(rn).level==1&&(Nr=S.match(/\s+$/))&&(fe(rn).to-=Nr[0].length,rn.push(new _(0,G-Nr[0].length,G)))),$=="rtl"?rn.reverse():rn}}();function Ve(n,i){var a=n.order;return a==null&&(a=n.order=Qt(n.text,i)),a}var oo=[],Fe=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]||oo).concat(a)}};function Gr(n,i){return n._handlers&&n._handlers[i]||oo}function en(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,u=l&&l[i];if(u){var g=Ee(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Et(n,i){var a=Gr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Lt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Et(n,a||i.type,n,i),pn(i)||i.codemirrorIgnore}function Zn(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)Ee(a,i[l])==-1&&a.push(i[l])}function An(n,i){return Gr(n,i).length>0}function cr(n){n.prototype.on=function(i,a){Fe(this,i,a)},n.prototype.off=function(i,a){en(this,i,a)}}function tn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Io(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function pn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function vi(n){tn(n),Io(n)}function Bs(n){return n.target||n.srcElement}function ur(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),q&&n.ctrlKey&&i==1&&(i=3),i}var Vu=function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),Fo;function _a(n){if(Fo==null){var i=k("span","​");I(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Fo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Fo?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Ws;function mi(n){if(Ws!=null)return Ws;var i=I(n,document.createTextNode("AخA")),a=U(i,0,1).getBoundingClientRect(),l=U(i,1,2).getBoundingClientRect();return H(n),!a||a.left==a.right?!1:Ws=l.right-a.right<3}var Jn=`
26
26
 
27
27
  b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
28
- `,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),m=g.indexOf("\r");m!=-1?(a.push(g.slice(0,m)),i+=m+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},yi=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},Sa=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),fr=null;function ju(n){if(fr!=null)return fr;var i=I(n,k("span","x")),a=i.getBoundingClientRect(),l=U(i,0,1).getBoundingClientRect();return fr=Math.abs(a.left-l.left)>1}var Ho={},dr={};function hr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Ho[n]=i}function so(n,i){dr[n]=i}function qo(n){if(typeof n=="string"&&dr.hasOwnProperty(n))n=dr[n];else if(n&&typeof n.name=="string"&&dr.hasOwnProperty(n.name)){var i=dr[n.name];typeof i=="string"&&(i={name:i}),n=ze(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return qo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return qo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Bo(n,i){i=qo(i);var a=Ho[i.name];if(!a)return Bo(n,"text/plain");var l=a(n,i);if(bi.hasOwnProperty(i.name)){var u=bi[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}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 bi={};function Wo(n,i){var a=bi.hasOwnProperty(n)?bi[n]:bi[n]={};ae(i,a)}function Er(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function Us(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 Uo(n,i,a){return n.startState?n.startState(i,a):!0}var At=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};At.prototype.eol=function(){return this.pos>=this.string.length},At.prototype.sol=function(){return this.pos==this.lineStart},At.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},At.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},At.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},At.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},At.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},At.prototype.skipToEnd=function(){this.pos=this.string.length},At.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},At.prototype.backUp=function(n){this.pos-=n},At.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=de(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},At.prototype.indentation=function(){return de(this.string,null,this.tabSize)-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},At.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(m){return a?m.toLowerCase():m},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},At.prototype.current=function(){return this.string.slice(this.start,this.pos)},At.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},At.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},At.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Oe(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 u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function Kr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var m=g.text;u==a.line&&(m=m.slice(0,a.ch)),u==i.line&&(m=m.slice(i.ch)),l.push(m),++u}),l}function Vs(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Bn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function T(n){if(n.parent==null)return null;for(var i=n.parent,a=Ee(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function R(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var m=0;m<n.lines.length;++m){var w=n.lines[m],_=w.height;if(i<_)break;i-=_}return a+m}function se(n,i){return i>=n.first&&i<n.first+n.size}function ge(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function Q(n,i,a){if(a===void 0&&(a=null),!(this instanceof Q))return new Q(n,i,a);this.line=n,this.ch=i,this.sticky=a}function _e(n,i){return n.line-i.line||n.ch-i.ch}function dt(n,i){return n.sticky==i.sticky&&_e(n,i)==0}function qt(n){return Q(n.line,n.ch)}function gn(n,i){return _e(n,i)<0?i:n}function Vo(n,i){return _e(n,i)<0?n:i}function fp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ke(n,i){if(i.line<n.first)return Q(n.first,0);var a=n.first+n.size-1;return i.line>a?Q(a,Oe(n,a).text.length):I1(i,Oe(n,i.line).text.length)}function I1(n,i){var a=n.ch;return a==null||a>i?Q(n.line,i):a<0?Q(n.line,0):n}function dp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ke(n,i[l]);return a}var ka=function(n,i){this.state=n,this.lookAhead=i},Lr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Lr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Lr.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}},Lr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Lr.fromSaved=function(n,i,a){return i instanceof ka?new Lr(n,Er(n.mode,i.state),a,i.lookAhead):new Lr(n,Er(n.mode,i),a)},Lr.prototype.save=function(n){var i=n!==!1?Er(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ka(i,this.maxLookAhead):i};function hp(n,i,a,l){var u=[n.state.modeGen],g={};bp(n,i.text,n.doc.mode,a,function(S,$){return u.push(S,$)},g,l);for(var m=a.state,w=function(S){a.baseTokens=u;var $=n.state.overlays[S],D=1,G=0;a.state=!0,bp(n,i.text,$.mode,a,function(V,ne){for(var ce=D;G<V;){var ve=u[D];ve>V&&u.splice(D,1,V,u[D+1],ve),D+=2,G=Math.min(V,ve)}if(ne)if($.opaque)u.splice(ce,D-ce,V,"overlay "+ne),D=ce+2;else for(;ce<D;ce+=2){var be=u[ce+1];u[ce+1]=(be?be+" ":"")+"overlay "+ne}},g),a.state=m,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)w(_);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function pp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=js(n,T(i)),u=i.text.length>n.options.maxHighlightLength&&Er(n.doc.mode,l.state),g=hp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.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 js(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Lr(l,!0,i);var g=F1(n,i,a),m=g>l.first&&Oe(l,g-1).stateAfter,w=m?Lr.fromSaved(l,m,g):new Lr(l,Uo(l.mode),g);return l.iter(g,i,function(_){Gu(n,_.text,w);var S=w.line;_.stateAfter=S==i-1||S%5==0||S>=u.viewFrom&&S<u.viewTo?w.save():null,w.nextLine()}),a&&(l.modeFrontier=w.line),w}function Gu(n,i,a,l){var u=n.doc.mode,g=new At(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&gp(u,a.state);!g.eol();)Ku(u,g,a.state),g.start=g.pos}function gp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Us(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Ku(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Us(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var vp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function mp(n,i,a,l){var u=n.doc,g=u.mode,m;i=Ke(u,i);var w=Oe(u,i.line),_=js(n,i.line,a),S=new At(w.text,n.options.tabSize,_),$;for(l&&($=[]);(l||S.pos<i.ch)&&!S.eol();)S.start=S.pos,m=Ku(g,S,_.state),l&&$.push(new vp(S,m,Er(u.mode,_.state)));return l?$:new vp(S,m,_.state)}function yp(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 bp(n,i,a,l,u,g,m){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var _=0,S=null,$=new At(i,n.options.tabSize,l),D,G=n.options.addModeClass&&[null];for(i==""&&yp(gp(a,l.state),g);!$.eol();){if($.pos>n.options.maxHighlightLength?(w=!1,m&&Gu(n,i,l,$.pos),$.pos=i.length,D=null):D=yp(Ku(a,$,l.state,G),g),G){var V=G[0].name;V&&(D="m-"+(D?V+" "+D:V))}if(!w||S!=D){for(;_<$.start;)_=Math.min($.start,_+5e3),u(_,S);S=D}$.start=$.pos}for(;_<$.pos;){var ne=Math.min($.pos,_+5e3);u(ne,S),_=ne}}function F1(n,i,a){for(var l,u,g=n.doc,m=a?-1:i-(n.doc.mode.innerMode?1e3:100),w=i;w>m;--w){if(w<=g.first)return g.first;var _=Oe(g,w-1),S=_.stateAfter;if(S&&(!a||w+(S instanceof ka?S.lookAhead:0)<=g.modeFrontier))return w;var $=de(_.text,null,n.options.tabSize);(u==null||l>$)&&(u=w-1,l=$)}return u}function H1(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 u=Oe(n,l).stateAfter;if(u&&(!(u instanceof ka)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var wp=!1,Xr=!1;function q1(){wp=!0}function B1(){Xr=!0}function Ca(n,i,a){this.marker=n,this.from=i,this.to=a}function Gs(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function W1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function U1(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 V1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],m=g.marker,w=g.from==null||(m.inclusiveLeft?g.from<=i:g.from<i);if(w||g.from==i&&m.type=="bookmark"&&(!a||!g.marker.insertLeft)){var _=g.to==null||(m.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Ca(m,g.from,_?null:g.to))}}return l}function j1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],m=g.marker,w=g.to==null||(m.inclusiveRight?g.to>=i:g.to>i);if(w||g.from==i&&m.type=="bookmark"&&(!a||g.marker.insertLeft)){var _=g.from==null||(m.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Ca(m,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function Xu(n,i){if(i.full)return null;var a=se(n,i.from.line)&&Oe(n,i.from.line).markedSpans,l=se(n,i.to.line)&&Oe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,m=_e(i.from,i.to)==0,w=V1(a,u,m),_=j1(l,g,m),S=i.text.length==1,$=fe(i.text).length+(S?u:0);if(w)for(var D=0;D<w.length;++D){var G=w[D];if(G.to==null){var V=Gs(_,G.marker);V?S&&(G.to=V.to==null?null:V.to+$):G.to=u}}if(_)for(var ne=0;ne<_.length;++ne){var ce=_[ne];if(ce.to!=null&&(ce.to+=$),ce.from==null){var ve=Gs(w,ce.marker);ve||(ce.from=$,S&&(w||(w=[])).push(ce))}else ce.from+=$,S&&(w||(w=[])).push(ce)}w&&(w=xp(w)),_&&_!=w&&(_=xp(_));var be=[w];if(!S){var ke=i.text.length-2,we;if(ke>0&&w)for(var Ae=0;Ae<w.length;++Ae)w[Ae].to==null&&(we||(we=[])).push(new Ca(w[Ae].marker,null,null));for(var He=0;He<ke;++He)be.push(we);be.push(_)}return be}function xp(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 G1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(V){if(V.markedSpans)for(var ne=0;ne<V.markedSpans.length;++ne){var ce=V.markedSpans[ne].marker;ce.readOnly&&(!l||Ee(l,ce)==-1)&&(l||(l=[])).push(ce)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var m=l[g],w=m.find(0),_=0;_<u.length;++_){var S=u[_];if(!(_e(S.to,w.from)<0||_e(S.from,w.to)>0)){var $=[_,1],D=_e(S.from,w.from),G=_e(S.to,w.to);(D<0||!m.inclusiveLeft&&!D)&&$.push({from:S.from,to:w.from}),(G>0||!m.inclusiveRight&&!G)&&$.push({from:w.to,to:S.to}),u.splice.apply(u,$),_+=$.length-3}}return u}function _p(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Sp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Ta(n){return n.inclusiveLeft?-1:0}function Ea(n){return n.inclusiveRight?1:0}function Yu(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=_e(l.from,u.from)||Ta(n)-Ta(i);if(g)return-g;var m=_e(l.to,u.to)||Ea(n)-Ea(i);return m||i.id-n.id}function kp(n,i){var a=Xr&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||Yu(l,u.marker)<0)&&(l=u.marker);return l}function Cp(n){return kp(n,!0)}function La(n){return kp(n,!1)}function K1(n,i){var a=Xr&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||Yu(l,g.marker)<0)&&(l=g.marker)}return l}function Tp(n,i,a,l,u){var g=Oe(n,i),m=Xr&&g.markedSpans;if(m)for(var w=0;w<m.length;++w){var _=m[w];if(_.marker.collapsed){var S=_.marker.find(0),$=_e(S.from,a)||Ta(_.marker)-Ta(u),D=_e(S.to,l)||Ea(_.marker)-Ea(u);if(!($>=0&&D<=0||$<=0&&D>=0)&&($<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?_e(S.to,a)>=0:_e(S.to,a)>0)||$>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?_e(S.from,l)<=0:_e(S.from,l)<0)))return!0}}}function pr(n){for(var i;i=Cp(n);)n=i.find(-1,!0).line;return n}function X1(n){for(var i;i=La(n);)n=i.find(1,!0).line;return n}function Y1(n){for(var i,a;i=La(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Zu(n,i){var a=Oe(n,i),l=pr(a);return a==l?i:T(l)}function Ep(n,i){if(i>n.lastLine())return i;var a=Oe(n,i),l;if(!wi(n,a))return i;for(;l=La(a);)a=l.find(1,!0).line;return T(a)+1}function wi(n,i){var a=Xr&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Ju(n,i,l))return!0}}}function Ju(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Ju(n,l.line,Gs(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&Ju(n,i,u))return!0}function Yr(n){n=pr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var m=0;m<g.children.length;++m){var w=g.children[m];if(w==a)break;i+=w.height}return i}function Aa(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Cp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=La(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function Qu(n){var i=n.display,a=n.doc;i.maxLine=Oe(a,a.first),i.maxLineLength=Aa(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Aa(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var jo=function(n,i,a){this.text=n,Sp(this,i),this.height=a?a(this):1};jo.prototype.lineNo=function(){return T(this)},cr(jo);function Z1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),_p(n),Sp(n,a);var u=l?l(n):1;u!=n.height&&Bn(n,u)}function J1(n){n.parent=null,_p(n)}var Q1={},ex={};function Lp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?ex:Q1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Ap(n,i){var a=B("span",null,null,v?"padding-right: .1px":null),l={pre:B("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,m=void 0;l.pos=0,l.addToken=nx,mi(n.display.measure)&&(m=Ve(g,n.doc.direction))&&(l.addToken=ix(l.addToken,m)),l.map=[];var w=i!=n.display.externalMeasured&&T(g);ox(g,l,pp(n,g,w)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=We(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=We(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(_a(n.display.measure))),u==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 _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Et(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=We(l.pre.className,l.textClass||"")),l}function tx(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function nx(n,i,a,l,u,g,m){if(i){var w=n.splitSpaces?rx(i,n.trailingSpace):i,_=n.cm.state.specialChars,S=!1,$;if(!_.test(i))n.col+=i.length,$=document.createTextNode(w),n.map.push(n.pos,n.pos+i.length,$),h&&p<9&&(S=!0),n.pos+=i.length;else{$=document.createDocumentFragment();for(var D=0;;){_.lastIndex=D;var G=_.exec(i),V=G?G.index-D:i.length-D;if(V){var ne=document.createTextNode(w.slice(D,D+V));h&&p<9?$.appendChild(k("span",[ne])):$.appendChild(ne),n.map.push(n.pos,n.pos+V,ne),n.col+=V,n.pos+=V}if(!G)break;D+=V+1;var ce=void 0;if(G[0]==" "){var ve=n.cm.options.tabSize,be=ve-n.col%ve;ce=$.appendChild(k("span",Se(be),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),n.col+=be}else G[0]=="\r"||G[0]==`
29
- `?(ce=$.appendChild(k("span",G[0]=="\r"?"␍":"␤","cm-invalidchar")),ce.setAttribute("cm-text",G[0]),n.col+=1):(ce=n.cm.options.specialCharPlaceholder(G[0]),ce.setAttribute("cm-text",G[0]),h&&p<9?$.appendChild(k("span",[ce])):$.appendChild(ce),n.col+=1);n.map.push(n.pos,n.pos+1,ce),n.pos++}}if(n.trailingSpace=w.charCodeAt(i.length-1)==32,a||l||u||S||g||m){var ke=a||"";l&&(ke+=l),u&&(ke+=u);var we=k("span",[$],ke,g);if(m)for(var Ae in m)m.hasOwnProperty(Ae)&&Ae!="style"&&Ae!="class"&&we.setAttribute(Ae,m[Ae]);return n.content.appendChild(we)}n.content.appendChild($)}}function rx(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var g=n.charAt(u);g==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(g=" "),l+=g,a=g==" "}return l}function ix(n,i){return function(a,l,u,g,m,w,_){u=u?u+" cm-force-border":"cm-force-border";for(var S=a.pos,$=S+l.length;;){for(var D=void 0,G=0;G<i.length&&(D=i[G],!(D.to>S&&D.from<=S));G++);if(D.to>=$)return n(a,l,u,g,m,w,_);n(a,l.slice(0,D.to-S),u,g,null,w,_),g=null,l=l.slice(D.to-S),S=D.to}}}function Mp(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function ox(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var m=1;m<a.length;m+=2)i.addToken(i,u.slice(g,g=a[m]),Lp(a[m+1],i.cm.options));return}for(var w=u.length,_=0,S=1,$="",D,G,V=0,ne,ce,ve,be,ke;;){if(V==_){ne=ce=ve=G="",ke=null,be=null,V=1/0;for(var we=[],Ae=void 0,He=0;He<l.length;++He){var De=l[He],Qe=De.marker;if(Qe.type=="bookmark"&&De.from==_&&Qe.widgetNode)we.push(Qe);else if(De.from<=_&&(De.to==null||De.to>_||Qe.collapsed&&De.to==_&&De.from==_)){if(De.to!=null&&De.to!=_&&V>De.to&&(V=De.to,ce=""),Qe.className&&(ne+=" "+Qe.className),Qe.css&&(G=(G?G+";":"")+Qe.css),Qe.startStyle&&De.from==_&&(ve+=" "+Qe.startStyle),Qe.endStyle&&De.to==V&&(Ae||(Ae=[])).push(Qe.endStyle,De.to),Qe.title&&((ke||(ke={})).title=Qe.title),Qe.attributes)for(var xt in Qe.attributes)(ke||(ke={}))[xt]=Qe.attributes[xt];Qe.collapsed&&(!be||Yu(be.marker,Qe)<0)&&(be=De)}else De.from>_&&V>De.from&&(V=De.from)}if(Ae)for(var Vt=0;Vt<Ae.length;Vt+=2)Ae[Vt+1]==V&&(ce+=" "+Ae[Vt]);if(!be||be.from==_)for(var Tt=0;Tt<we.length;++Tt)Mp(i,0,we[Tt]);if(be&&(be.from||0)==_){if(Mp(i,(be.to==null?w+1:be.to)-_,be.marker,be.from==null),be.to==null)return;be.to==_&&(be=!1)}}if(_>=w)break;for(var Nn=Math.min(w,V);;){if($){var yn=_+$.length;if(!be){var Ot=yn>Nn?$.slice(0,Nn-_):$;i.addToken(i,Ot,D?D+ne:ne,ve,_+Ot.length==V?ce:"",G,ke)}if(yn>=Nn){$=$.slice(Nn-_),_=Nn;break}_=yn,ve=""}$=u.slice(g,g=a[S++]),D=Lp(a[S++],i.cm.options)}}}function Np(n,i,a){this.line=i,this.rest=Y1(i),this.size=this.rest?T(fe(this.rest))-a+1:1,this.node=this.text=null,this.hidden=wi(n,i)}function Ma(n,i,a){for(var l=[],u,g=i;g<a;g=u){var m=new Np(n.doc,Oe(n.doc,g),g);u=g+m.size,l.push(m)}return l}var Go=null;function sx(n){Go?Go.ops.push(n):n.ownsGroup=Go={ops:[n],delayedCallbacks:[]}}function lx(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 u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function ax(n,i){var a=n.ownsGroup;if(a)try{lx(a)}finally{Go=null,i(a)}}var Ks=null;function Bt(n,i){var a=Gr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Go?u=Go.delayedCallbacks:Ks?u=Ks:(u=Ks=[],setTimeout(cx,0));for(var g=function(w){u.push(function(){return a[w].apply(null,l)})},m=0;m<a.length;++m)g(m)}}function cx(){var n=Ks;Ks=null;for(var i=0;i<n.length;++i)n[i]()}function $p(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?fx(n,i):g=="gutter"?Op(n,i,a,l):g=="class"?ef(n,i):g=="widget"&&dx(n,i,l)}i.changes=null}function Xs(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),h&&p<8&&(n.node.style.zIndex=2)),n.node}function ux(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=Xs(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Pp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Ap(n,i)}function fx(n,i){var a=i.text.className,l=Pp(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,ef(n,i)):a&&(i.text.className=a)}function ef(n,i){ux(n,i),i.line.wrapClass?Xs(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 Op(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 u=Xs(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),u.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var m=Xs(i),w=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(w.setAttribute("aria-hidden","true"),n.display.input.setUneditable(w),m.insertBefore(w,i.text),i.line.gutterClass&&(w.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=w.appendChild(k("div",ge(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var _=0;_<n.display.gutterSpecs.length;++_){var S=n.display.gutterSpecs[_].className,$=g.hasOwnProperty(S)&&g[S];$&&w.appendChild(k("div",[$],"CodeMirror-gutter-elt","left: "+l.gutterLeft[S]+"px; width: "+l.gutterWidth[S]+"px"))}}}function dx(n,i,a){i.alignable&&(i.alignable=null);for(var l=te("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Rp(n,i,a)}function hx(n,i,a,l){var u=Pp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),ef(n,i),Op(n,i,a,l),Rp(n,i,l),i.node}function Rp(n,i,a){if(Dp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Dp(n,i.rest[l],i,a,!1)}function Dp(n,i,a,l,u){if(i.widgets)for(var g=Xs(a),m=0,w=i.widgets;m<w.length;++m){var _=w[m],S=k("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||S.setAttribute("cm-ignore-events","true"),px(_,S,a,l),n.display.input.setUneditable(S),u&&_.above?g.insertBefore(S,a.gutter||a.text):g.appendChild(S),Bt(_,"redraw")}}function px(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Ys(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!re(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;"),I(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function Zr(n,i){for(var a=Bs(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 Na(n){return n.lineSpace.offsetTop}function tf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function zp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=I(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 Ar(n){return Ze-n.display.nativeBarWidth}function lo(n){return n.display.scroller.clientWidth-Ar(n)-n.display.barWidth}function nf(n){return n.display.scroller.clientHeight-Ar(n)-n.display.barHeight}function gx(n,i,a){var l=n.options.lineWrapping,u=l&&lo(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var m=i.text.firstChild.getClientRects(),w=0;w<m.length-1;w++){var _=m[w],S=m[w+1];Math.abs(_.bottom-S.bottom)>2&&g.push((_.bottom+S.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Ip(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 u=0;u<n.rest.length;u++)if(T(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function vx(n,i){i=pr(i);var a=T(i),l=n.display.externalMeasured=new Np(n.doc,i,a);l.lineN=a;var u=l.built=Ap(n,l);return l.text=u.pre,I(n.display.lineMeasure,u.pre),l}function Fp(n,i,a,l){return Mr(n,Ko(n,i),a,l)}function rf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[uo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Ko(n,i){var a=T(i),l=rf(n,a);l&&!l.text?l=null:l&&l.changes&&($p(n,l,a,cf(n)),n.curOp.forceUpdate=!0),l||(l=vx(n,i));var u=Ip(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Mr(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),m;return i.cache.hasOwnProperty(g)?m=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(gx(n,i.view,i.rect),i.hasHeights=!0),m=yx(n,i,a,l),m.bogus||(i.cache[g]=m)),{left:m.left,right:m.right,top:u?m.rtop:m.top,bottom:u?m.rbottom:m.bottom}}var Hp={left:0,right:0,top:0,bottom:0};function qp(n,i,a){for(var l,u,g,m,w,_,S=0;S<n.length;S+=3)if(w=n[S],_=n[S+1],i<w?(u=0,g=1,m="left"):i<_?(u=i-w,g=u+1):(S==n.length-3||i==_&&n[S+3]>i)&&(g=_-w,u=g-1,i>=_&&(m="right")),u!=null){if(l=n[S+2],w==_&&a==(l.insertLeft?"left":"right")&&(m=a),a=="left"&&u==0)for(;S&&n[S-2]==n[S-3]&&n[S-1].insertLeft;)l=n[(S-=3)+2],m="left";if(a=="right"&&u==_-w)for(;S<n.length-3&&n[S+3]==n[S+4]&&!n[S+5].insertLeft;)l=n[(S+=3)+2],m="right";break}return{node:l,start:u,end:g,collapse:m,coverStart:w,coverEnd:_}}function mx(n,i){var a=Hp;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function yx(n,i,a,l){var u=qp(i.map,a,l),g=u.node,m=u.start,w=u.end,_=u.collapse,S;if(g.nodeType==3){for(var $=0;$<4;$++){for(;m&&nt(i.line.text.charAt(u.coverStart+m));)--m;for(;u.coverStart+w<u.coverEnd&&nt(i.line.text.charAt(u.coverStart+w));)++w;if(h&&p<9&&m==0&&w==u.coverEnd-u.coverStart?S=g.parentNode.getBoundingClientRect():S=mx(U(g,m,w).getClientRects(),l),S.left||S.right||m==0)break;w=m,m=m-1,_="right"}h&&p<11&&(S=bx(n.display.measure,S))}else{m>0&&(_=l="right");var D;n.options.lineWrapping&&(D=g.getClientRects()).length>1?S=D[l=="right"?D.length-1:0]:S=g.getBoundingClientRect()}if(h&&p<9&&!m&&(!S||!S.left&&!S.right)){var G=g.parentNode.getClientRects()[0];G?S={left:G.left,right:G.left+Yo(n.display),top:G.top,bottom:G.bottom}:S=Hp}for(var V=S.top-i.rect.top,ne=S.bottom-i.rect.top,ce=(V+ne)/2,ve=i.view.measure.heights,be=0;be<ve.length-1&&!(ce<ve[be]);be++);var ke=be?ve[be-1]:0,we=ve[be],Ae={left:(_=="right"?S.right:S.left)-i.rect.left,right:(_=="left"?S.left:S.right)-i.rect.left,top:ke,bottom:we};return!S.left&&!S.right&&(Ae.bogus=!0),n.options.singleCursorHeightPerLine||(Ae.rtop=V,Ae.rbottom=ne),Ae}function bx(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ju(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 Bp(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 Wp(n){n.display.externalMeasure=null,H(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Bp(n.display.view[i])}function Zs(n){Wp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Up(n){return b&&P?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Vp(n){return b&&P?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function of(n){var i=pr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Ys(a[u]));return l}function $a(n,i,a,l,u){if(!u){var g=of(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var m=Yr(i);if(l=="local"?m+=Na(n.display):m-=n.display.viewOffset,l=="page"||l=="window"){var w=n.display.lineSpace.getBoundingClientRect();m+=w.top+(l=="window"?0:Vp(it(n)));var _=w.left+(l=="window"?0:Up(it(n)));a.left+=_,a.right+=_}return a.top+=m,a.bottom+=m,a}function jp(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Up(it(n)),u-=Vp(it(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var m=n.display.lineSpace.getBoundingClientRect();return{left:l-m.left,top:u-m.top}}function Pa(n,i,a,l,u){return l||(l=Oe(n.doc,i.line)),$a(n,l,Fp(n,l,i.ch,u),a)}function gr(n,i,a,l,u,g){l=l||Oe(n.doc,i.line),u||(u=Ko(n,l));function m(ne,ce){var ve=Mr(n,u,ne,ce?"right":"left",g);return ce?ve.left=ve.right:ve.right=ve.left,$a(n,l,ve,a)}var w=Ve(l,n.doc.direction),_=i.ch,S=i.sticky;if(_>=l.text.length?(_=l.text.length,S="before"):_<=0&&(_=0,S="after"),!w)return m(S=="before"?_-1:_,S=="before");function $(ne,ce,ve){var be=w[ce],ke=be.level==1;return m(ve?ne-1:ne,ke!=ve)}var D=ar(w,_,S),G=qn,V=$(_,D,S=="before");return G!=null&&(V.other=$(_,G,S!="before")),V}function Gp(n,i){var a=0;i=Ke(n.doc,i),n.options.lineWrapping||(a=Yo(n.display)*i.ch);var l=Oe(n.doc,i.line),u=Yr(l)+Na(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function sf(n,i,a,l,u){var g=Q(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function lf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return sf(l.first,0,null,-1,-1);var u=R(l,a),g=l.first+l.size-1;if(u>g)return sf(l.first+l.size-1,Oe(l,g).text.length,null,1,1);i<0&&(i=0);for(var m=Oe(l,u);;){var w=wx(n,m,u,i,a),_=K1(m,w.ch+(w.xRel>0||w.outside>0?1:0));if(!_)return w;var S=_.find(1);if(S.line==u)return S;m=Oe(l,u=S.line)}}function Kp(n,i,a,l){l-=of(i);var u=i.text.length,g=Jt(function(m){return Mr(n,a,m-1).bottom<=l},u,0);return u=Jt(function(m){return Mr(n,a,m).top>l},g,u),{begin:g,end:u}}function Xp(n,i,a,l){a||(a=Ko(n,i));var u=$a(n,i,Mr(n,a,l),"line").top;return Kp(n,i,a,u)}function af(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function wx(n,i,a,l,u){u-=Yr(i);var g=Ko(n,i),m=of(i),w=0,_=i.text.length,S=!0,$=Ve(i,n.doc.direction);if($){var D=(n.options.lineWrapping?_x:xx)(n,i,a,g,$,l,u);S=D.level!=1,w=S?D.from:D.to-1,_=S?D.to:D.from-1}var G=null,V=null,ne=Jt(function(He){var De=Mr(n,g,He);return De.top+=m,De.bottom+=m,af(De,l,u,!1)?(De.top<=u&&De.left<=l&&(G=He,V=De),!0):!1},w,_),ce,ve,be=!1;if(V){var ke=l-V.left<V.right-l,we=ke==S;ne=G+(we?0:1),ve=we?"after":"before",ce=ke?V.left:V.right}else{!S&&(ne==_||ne==w)&&ne++,ve=ne==0?"after":ne==i.text.length?"before":Mr(n,g,ne-(S?1:0)).bottom+m<=u==S?"after":"before";var Ae=gr(n,Q(a,ne,ve),"line",i,g);ce=Ae.left,be=u<Ae.top?-1:u>=Ae.bottom?1:0}return ne=Ft(i.text,ne,1),sf(a,ne,ve,be,l-ce)}function xx(n,i,a,l,u,g,m){var w=Jt(function(D){var G=u[D],V=G.level!=1;return af(gr(n,Q(a,V?G.to:G.from,V?"before":"after"),"line",i,l),g,m,!0)},0,u.length-1),_=u[w];if(w>0){var S=_.level!=1,$=gr(n,Q(a,S?_.from:_.to,S?"after":"before"),"line",i,l);af($,g,m,!0)&&$.top>m&&(_=u[w-1])}return _}function _x(n,i,a,l,u,g,m){var w=Kp(n,i,l,m),_=w.begin,S=w.end;/\s/.test(i.text.charAt(S-1))&&S--;for(var $=null,D=null,G=0;G<u.length;G++){var V=u[G];if(!(V.from>=S||V.to<=_)){var ne=V.level!=1,ce=Mr(n,l,ne?Math.min(S,V.to)-1:Math.max(_,V.from)).right,ve=ce<g?g-ce+1e9:ce-g;(!$||D>ve)&&($=V,D=ve)}}return $||($=u[u.length-1]),$.from<_&&($={from:_,to:$.to,level:$.level}),$.to>S&&($={from:$.from,to:S,level:$.level}),$}var ao;function Xo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(ao==null){ao=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)ao.appendChild(document.createTextNode("x")),ao.appendChild(k("br"));ao.appendChild(document.createTextNode("x"))}I(n.measure,ao);var a=ao.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),H(n.measure),a||1}function Yo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");I(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function cf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,m=0;g;g=g.nextSibling,++m){var w=n.display.gutterSpecs[m].className;a[w]=g.offsetLeft+g.clientLeft+u,l[w]=g.clientWidth}return{fixedPos:uf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function uf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Yp(n){var i=Xo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Yo(n.display)-3);return function(u){if(wi(n.doc,u))return 0;var g=0;if(u.widgets)for(var m=0;m<u.widgets.length;m++)u.widgets[m].height&&(g+=u.widgets[m].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function ff(n){var i=n.doc,a=Yp(n);i.iter(function(l){var u=a(l);u!=l.height&&Bn(l,u)})}function co(n,i,a,l){var u=n.display;if(!a&&Bs(i).getAttribute("cm-not-content")=="true")return null;var g,m,w=u.lineSpace.getBoundingClientRect();try{g=i.clientX-w.left,m=i.clientY-w.top}catch{return null}var _=lf(n,g,m),S;if(l&&_.xRel>0&&(S=Oe(n.doc,_.line).text).length==_.ch){var $=de(S,S.length,n.options.tabSize)-S.length;_=Q(_.line,Math.max(0,Math.round((g-zp(n.display).left)/Yo(n.display))-$))}return _}function uo(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 vn(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)Xr&&Zu(n.doc,i)<u.viewTo&&_i(n);else if(a<=u.viewFrom)Xr&&Ep(n.doc,a+l)>u.viewFrom?_i(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)_i(n);else if(i<=u.viewFrom){var g=Oa(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):_i(n)}else if(a>=u.viewTo){var m=Oa(n,i,i,-1);m?(u.view=u.view.slice(0,m.index),u.viewTo=m.lineN):_i(n)}else{var w=Oa(n,i,i,-1),_=Oa(n,a,a+l,1);w&&_?(u.view=u.view.slice(0,w.index).concat(Ma(n,w.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):_i(n)}var S=u.externalMeasured;S&&(a<S.lineN?S.lineN+=l:i<S.lineN+S.size&&(u.externalMeasured=null))}function xi(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[uo(n,i)];if(g.node!=null){var m=g.changes||(g.changes=[]);Ee(m,a)==-1&&m.push(a)}}}function _i(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Oa(n,i,a,l){var u=uo(n,i),g,m=n.display.view;if(!Xr||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var w=n.display.viewFrom,_=0;_<u;_++)w+=m[_].size;if(w!=i){if(l>0){if(u==m.length-1)return null;g=w+m[u].size-i,u++}else g=w-i;i+=g,a+=g}for(;Zu(n.doc,a)!=a;){if(u==(l<0?0:m.length-1))return null;a+=l*m[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function Sx(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Ma(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Ma(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(uo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Ma(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,uo(n,a)))),l.viewTo=a}function Zp(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function Js(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Jp(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),m=n.options.$customCursor;m&&(i=!0);for(var w=0;w<a.sel.ranges.length;w++)if(!(!i&&w==a.sel.primIndex)){var _=a.sel.ranges[w];if(!(_.from().line>=n.display.viewTo||_.to().line<n.display.viewFrom)){var S=_.empty();if(m){var $=m(n,_);$&&df(n,$,u)}else(S||n.options.showCursorWhenSelecting)&&df(n,_.head,u);S||kx(n,_,g)}}return l}function df(n,i,a){var l=gr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(k("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=Pa(n,i,"div",null,null),m=g.right-g.left;u.style.width=(m>0?m:n.defaultCharWidth())+"px"}if(l.other){var w=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));w.style.display="",w.style.left=l.other.left+"px",w.style.top=l.other.top+"px",w.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Ra(n,i){return n.top-i.top||n.left-i.left}function kx(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),m=zp(n.display),w=m.left,_=Math.max(l.sizerWidth,lo(n)-l.sizer.offsetLeft)-m.right,S=u.direction=="ltr";function $(we,Ae,He,De){Ae<0&&(Ae=0),Ae=Math.round(Ae),De=Math.round(De),g.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+we+`px;
28
+ `,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),m=g.indexOf("\r");m!=-1?(a.push(g.slice(0,m)),i+=m+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},yi=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},Sa=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),fr=null;function ju(n){if(fr!=null)return fr;var i=I(n,k("span","x")),a=i.getBoundingClientRect(),l=U(i,0,1).getBoundingClientRect();return fr=Math.abs(a.left-l.left)>1}var Ho={},dr={};function hr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Ho[n]=i}function so(n,i){dr[n]=i}function qo(n){if(typeof n=="string"&&dr.hasOwnProperty(n))n=dr[n];else if(n&&typeof n.name=="string"&&dr.hasOwnProperty(n.name)){var i=dr[n.name];typeof i=="string"&&(i={name:i}),n=ze(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return qo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return qo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Bo(n,i){i=qo(i);var a=Ho[i.name];if(!a)return Bo(n,"text/plain");var l=a(n,i);if(bi.hasOwnProperty(i.name)){var u=bi[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}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 bi={};function Wo(n,i){var a=bi.hasOwnProperty(n)?bi[n]:bi[n]={};ae(i,a)}function Er(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function Us(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 Uo(n,i,a){return n.startState?n.startState(i,a):!0}var At=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};At.prototype.eol=function(){return this.pos>=this.string.length},At.prototype.sol=function(){return this.pos==this.lineStart},At.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},At.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},At.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},At.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},At.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},At.prototype.skipToEnd=function(){this.pos=this.string.length},At.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},At.prototype.backUp=function(n){this.pos-=n},At.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=de(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},At.prototype.indentation=function(){return de(this.string,null,this.tabSize)-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},At.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(m){return a?m.toLowerCase():m},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},At.prototype.current=function(){return this.string.slice(this.start,this.pos)},At.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},At.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},At.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Oe(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 u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function Kr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var m=g.text;u==a.line&&(m=m.slice(0,a.ch)),u==i.line&&(m=m.slice(i.ch)),l.push(m),++u}),l}function Vs(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Bn(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=Ee(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function R(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var m=0;m<n.lines.length;++m){var w=n.lines[m],_=w.height;if(i<_)break;i-=_}return a+m}function se(n,i){return i>=n.first&&i<n.first+n.size}function ge(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function Q(n,i,a){if(a===void 0&&(a=null),!(this instanceof Q))return new Q(n,i,a);this.line=n,this.ch=i,this.sticky=a}function _e(n,i){return n.line-i.line||n.ch-i.ch}function dt(n,i){return n.sticky==i.sticky&&_e(n,i)==0}function qt(n){return Q(n.line,n.ch)}function gn(n,i){return _e(n,i)<0?i:n}function Vo(n,i){return _e(n,i)<0?n:i}function fp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ke(n,i){if(i.line<n.first)return Q(n.first,0);var a=n.first+n.size-1;return i.line>a?Q(a,Oe(n,a).text.length):I1(i,Oe(n,i.line).text.length)}function I1(n,i){var a=n.ch;return a==null||a>i?Q(n.line,i):a<0?Q(n.line,0):n}function dp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ke(n,i[l]);return a}var ka=function(n,i){this.state=n,this.lookAhead=i},Lr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Lr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Lr.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}},Lr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Lr.fromSaved=function(n,i,a){return i instanceof ka?new Lr(n,Er(n.mode,i.state),a,i.lookAhead):new Lr(n,Er(n.mode,i),a)},Lr.prototype.save=function(n){var i=n!==!1?Er(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ka(i,this.maxLookAhead):i};function hp(n,i,a,l){var u=[n.state.modeGen],g={};bp(n,i.text,n.doc.mode,a,function(S,$){return u.push(S,$)},g,l);for(var m=a.state,w=function(S){a.baseTokens=u;var $=n.state.overlays[S],D=1,G=0;a.state=!0,bp(n,i.text,$.mode,a,function(V,ne){for(var ce=D;G<V;){var ve=u[D];ve>V&&u.splice(D,1,V,u[D+1],ve),D+=2,G=Math.min(V,ve)}if(ne)if($.opaque)u.splice(ce,D-ce,V,"overlay "+ne),D=ce+2;else for(;ce<D;ce+=2){var be=u[ce+1];u[ce+1]=(be?be+" ":"")+"overlay "+ne}},g),a.state=m,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)w(_);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function pp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=js(n,C(i)),u=i.text.length>n.options.maxHighlightLength&&Er(n.doc.mode,l.state),g=hp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.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 js(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Lr(l,!0,i);var g=F1(n,i,a),m=g>l.first&&Oe(l,g-1).stateAfter,w=m?Lr.fromSaved(l,m,g):new Lr(l,Uo(l.mode),g);return l.iter(g,i,function(_){Gu(n,_.text,w);var S=w.line;_.stateAfter=S==i-1||S%5==0||S>=u.viewFrom&&S<u.viewTo?w.save():null,w.nextLine()}),a&&(l.modeFrontier=w.line),w}function Gu(n,i,a,l){var u=n.doc.mode,g=new At(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&gp(u,a.state);!g.eol();)Ku(u,g,a.state),g.start=g.pos}function gp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Us(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Ku(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Us(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var vp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function mp(n,i,a,l){var u=n.doc,g=u.mode,m;i=Ke(u,i);var w=Oe(u,i.line),_=js(n,i.line,a),S=new At(w.text,n.options.tabSize,_),$;for(l&&($=[]);(l||S.pos<i.ch)&&!S.eol();)S.start=S.pos,m=Ku(g,S,_.state),l&&$.push(new vp(S,m,Er(u.mode,_.state)));return l?$:new vp(S,m,_.state)}function yp(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 bp(n,i,a,l,u,g,m){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var _=0,S=null,$=new At(i,n.options.tabSize,l),D,G=n.options.addModeClass&&[null];for(i==""&&yp(gp(a,l.state),g);!$.eol();){if($.pos>n.options.maxHighlightLength?(w=!1,m&&Gu(n,i,l,$.pos),$.pos=i.length,D=null):D=yp(Ku(a,$,l.state,G),g),G){var V=G[0].name;V&&(D="m-"+(D?V+" "+D:V))}if(!w||S!=D){for(;_<$.start;)_=Math.min($.start,_+5e3),u(_,S);S=D}$.start=$.pos}for(;_<$.pos;){var ne=Math.min($.pos,_+5e3);u(ne,S),_=ne}}function F1(n,i,a){for(var l,u,g=n.doc,m=a?-1:i-(n.doc.mode.innerMode?1e3:100),w=i;w>m;--w){if(w<=g.first)return g.first;var _=Oe(g,w-1),S=_.stateAfter;if(S&&(!a||w+(S instanceof ka?S.lookAhead:0)<=g.modeFrontier))return w;var $=de(_.text,null,n.options.tabSize);(u==null||l>$)&&(u=w-1,l=$)}return u}function H1(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 u=Oe(n,l).stateAfter;if(u&&(!(u instanceof ka)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var wp=!1,Xr=!1;function q1(){wp=!0}function B1(){Xr=!0}function Ca(n,i,a){this.marker=n,this.from=i,this.to=a}function Gs(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function W1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function U1(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 V1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],m=g.marker,w=g.from==null||(m.inclusiveLeft?g.from<=i:g.from<i);if(w||g.from==i&&m.type=="bookmark"&&(!a||!g.marker.insertLeft)){var _=g.to==null||(m.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Ca(m,g.from,_?null:g.to))}}return l}function j1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],m=g.marker,w=g.to==null||(m.inclusiveRight?g.to>=i:g.to>i);if(w||g.from==i&&m.type=="bookmark"&&(!a||g.marker.insertLeft)){var _=g.from==null||(m.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Ca(m,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function Xu(n,i){if(i.full)return null;var a=se(n,i.from.line)&&Oe(n,i.from.line).markedSpans,l=se(n,i.to.line)&&Oe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,m=_e(i.from,i.to)==0,w=V1(a,u,m),_=j1(l,g,m),S=i.text.length==1,$=fe(i.text).length+(S?u:0);if(w)for(var D=0;D<w.length;++D){var G=w[D];if(G.to==null){var V=Gs(_,G.marker);V?S&&(G.to=V.to==null?null:V.to+$):G.to=u}}if(_)for(var ne=0;ne<_.length;++ne){var ce=_[ne];if(ce.to!=null&&(ce.to+=$),ce.from==null){var ve=Gs(w,ce.marker);ve||(ce.from=$,S&&(w||(w=[])).push(ce))}else ce.from+=$,S&&(w||(w=[])).push(ce)}w&&(w=xp(w)),_&&_!=w&&(_=xp(_));var be=[w];if(!S){var ke=i.text.length-2,we;if(ke>0&&w)for(var Ae=0;Ae<w.length;++Ae)w[Ae].to==null&&(we||(we=[])).push(new Ca(w[Ae].marker,null,null));for(var He=0;He<ke;++He)be.push(we);be.push(_)}return be}function xp(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 G1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(V){if(V.markedSpans)for(var ne=0;ne<V.markedSpans.length;++ne){var ce=V.markedSpans[ne].marker;ce.readOnly&&(!l||Ee(l,ce)==-1)&&(l||(l=[])).push(ce)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var m=l[g],w=m.find(0),_=0;_<u.length;++_){var S=u[_];if(!(_e(S.to,w.from)<0||_e(S.from,w.to)>0)){var $=[_,1],D=_e(S.from,w.from),G=_e(S.to,w.to);(D<0||!m.inclusiveLeft&&!D)&&$.push({from:S.from,to:w.from}),(G>0||!m.inclusiveRight&&!G)&&$.push({from:w.to,to:S.to}),u.splice.apply(u,$),_+=$.length-3}}return u}function _p(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Sp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Ta(n){return n.inclusiveLeft?-1:0}function Ea(n){return n.inclusiveRight?1:0}function Yu(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=_e(l.from,u.from)||Ta(n)-Ta(i);if(g)return-g;var m=_e(l.to,u.to)||Ea(n)-Ea(i);return m||i.id-n.id}function kp(n,i){var a=Xr&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||Yu(l,u.marker)<0)&&(l=u.marker);return l}function Cp(n){return kp(n,!0)}function La(n){return kp(n,!1)}function K1(n,i){var a=Xr&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||Yu(l,g.marker)<0)&&(l=g.marker)}return l}function Tp(n,i,a,l,u){var g=Oe(n,i),m=Xr&&g.markedSpans;if(m)for(var w=0;w<m.length;++w){var _=m[w];if(_.marker.collapsed){var S=_.marker.find(0),$=_e(S.from,a)||Ta(_.marker)-Ta(u),D=_e(S.to,l)||Ea(_.marker)-Ea(u);if(!($>=0&&D<=0||$<=0&&D>=0)&&($<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?_e(S.to,a)>=0:_e(S.to,a)>0)||$>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?_e(S.from,l)<=0:_e(S.from,l)<0)))return!0}}}function pr(n){for(var i;i=Cp(n);)n=i.find(-1,!0).line;return n}function X1(n){for(var i;i=La(n);)n=i.find(1,!0).line;return n}function Y1(n){for(var i,a;i=La(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Zu(n,i){var a=Oe(n,i),l=pr(a);return a==l?i:C(l)}function Ep(n,i){if(i>n.lastLine())return i;var a=Oe(n,i),l;if(!wi(n,a))return i;for(;l=La(a);)a=l.find(1,!0).line;return C(a)+1}function wi(n,i){var a=Xr&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Ju(n,i,l))return!0}}}function Ju(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Ju(n,l.line,Gs(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&Ju(n,i,u))return!0}function Yr(n){n=pr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var m=0;m<g.children.length;++m){var w=g.children[m];if(w==a)break;i+=w.height}return i}function Aa(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Cp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=La(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function Qu(n){var i=n.display,a=n.doc;i.maxLine=Oe(a,a.first),i.maxLineLength=Aa(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Aa(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var jo=function(n,i,a){this.text=n,Sp(this,i),this.height=a?a(this):1};jo.prototype.lineNo=function(){return C(this)},cr(jo);function Z1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),_p(n),Sp(n,a);var u=l?l(n):1;u!=n.height&&Bn(n,u)}function J1(n){n.parent=null,_p(n)}var Q1={},ex={};function Lp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?ex:Q1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Ap(n,i){var a=B("span",null,null,v?"padding-right: .1px":null),l={pre:B("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,m=void 0;l.pos=0,l.addToken=nx,mi(n.display.measure)&&(m=Ve(g,n.doc.direction))&&(l.addToken=ix(l.addToken,m)),l.map=[];var w=i!=n.display.externalMeasured&&C(g);ox(g,l,pp(n,g,w)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=We(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=We(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(_a(n.display.measure))),u==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 _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Et(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=We(l.pre.className,l.textClass||"")),l}function tx(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function nx(n,i,a,l,u,g,m){if(i){var w=n.splitSpaces?rx(i,n.trailingSpace):i,_=n.cm.state.specialChars,S=!1,$;if(!_.test(i))n.col+=i.length,$=document.createTextNode(w),n.map.push(n.pos,n.pos+i.length,$),h&&p<9&&(S=!0),n.pos+=i.length;else{$=document.createDocumentFragment();for(var D=0;;){_.lastIndex=D;var G=_.exec(i),V=G?G.index-D:i.length-D;if(V){var ne=document.createTextNode(w.slice(D,D+V));h&&p<9?$.appendChild(k("span",[ne])):$.appendChild(ne),n.map.push(n.pos,n.pos+V,ne),n.col+=V,n.pos+=V}if(!G)break;D+=V+1;var ce=void 0;if(G[0]==" "){var ve=n.cm.options.tabSize,be=ve-n.col%ve;ce=$.appendChild(k("span",Se(be),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),n.col+=be}else G[0]=="\r"||G[0]==`
29
+ `?(ce=$.appendChild(k("span",G[0]=="\r"?"␍":"␤","cm-invalidchar")),ce.setAttribute("cm-text",G[0]),n.col+=1):(ce=n.cm.options.specialCharPlaceholder(G[0]),ce.setAttribute("cm-text",G[0]),h&&p<9?$.appendChild(k("span",[ce])):$.appendChild(ce),n.col+=1);n.map.push(n.pos,n.pos+1,ce),n.pos++}}if(n.trailingSpace=w.charCodeAt(i.length-1)==32,a||l||u||S||g||m){var ke=a||"";l&&(ke+=l),u&&(ke+=u);var we=k("span",[$],ke,g);if(m)for(var Ae in m)m.hasOwnProperty(Ae)&&Ae!="style"&&Ae!="class"&&we.setAttribute(Ae,m[Ae]);return n.content.appendChild(we)}n.content.appendChild($)}}function rx(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var g=n.charAt(u);g==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(g=" "),l+=g,a=g==" "}return l}function ix(n,i){return function(a,l,u,g,m,w,_){u=u?u+" cm-force-border":"cm-force-border";for(var S=a.pos,$=S+l.length;;){for(var D=void 0,G=0;G<i.length&&(D=i[G],!(D.to>S&&D.from<=S));G++);if(D.to>=$)return n(a,l,u,g,m,w,_);n(a,l.slice(0,D.to-S),u,g,null,w,_),g=null,l=l.slice(D.to-S),S=D.to}}}function Mp(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function ox(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var m=1;m<a.length;m+=2)i.addToken(i,u.slice(g,g=a[m]),Lp(a[m+1],i.cm.options));return}for(var w=u.length,_=0,S=1,$="",D,G,V=0,ne,ce,ve,be,ke;;){if(V==_){ne=ce=ve=G="",ke=null,be=null,V=1/0;for(var we=[],Ae=void 0,He=0;He<l.length;++He){var De=l[He],Qe=De.marker;if(Qe.type=="bookmark"&&De.from==_&&Qe.widgetNode)we.push(Qe);else if(De.from<=_&&(De.to==null||De.to>_||Qe.collapsed&&De.to==_&&De.from==_)){if(De.to!=null&&De.to!=_&&V>De.to&&(V=De.to,ce=""),Qe.className&&(ne+=" "+Qe.className),Qe.css&&(G=(G?G+";":"")+Qe.css),Qe.startStyle&&De.from==_&&(ve+=" "+Qe.startStyle),Qe.endStyle&&De.to==V&&(Ae||(Ae=[])).push(Qe.endStyle,De.to),Qe.title&&((ke||(ke={})).title=Qe.title),Qe.attributes)for(var xt in Qe.attributes)(ke||(ke={}))[xt]=Qe.attributes[xt];Qe.collapsed&&(!be||Yu(be.marker,Qe)<0)&&(be=De)}else De.from>_&&V>De.from&&(V=De.from)}if(Ae)for(var Vt=0;Vt<Ae.length;Vt+=2)Ae[Vt+1]==V&&(ce+=" "+Ae[Vt]);if(!be||be.from==_)for(var Tt=0;Tt<we.length;++Tt)Mp(i,0,we[Tt]);if(be&&(be.from||0)==_){if(Mp(i,(be.to==null?w+1:be.to)-_,be.marker,be.from==null),be.to==null)return;be.to==_&&(be=!1)}}if(_>=w)break;for(var Nn=Math.min(w,V);;){if($){var yn=_+$.length;if(!be){var Ot=yn>Nn?$.slice(0,Nn-_):$;i.addToken(i,Ot,D?D+ne:ne,ve,_+Ot.length==V?ce:"",G,ke)}if(yn>=Nn){$=$.slice(Nn-_),_=Nn;break}_=yn,ve=""}$=u.slice(g,g=a[S++]),D=Lp(a[S++],i.cm.options)}}}function Np(n,i,a){this.line=i,this.rest=Y1(i),this.size=this.rest?C(fe(this.rest))-a+1:1,this.node=this.text=null,this.hidden=wi(n,i)}function Ma(n,i,a){for(var l=[],u,g=i;g<a;g=u){var m=new Np(n.doc,Oe(n.doc,g),g);u=g+m.size,l.push(m)}return l}var Go=null;function sx(n){Go?Go.ops.push(n):n.ownsGroup=Go={ops:[n],delayedCallbacks:[]}}function lx(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 u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function ax(n,i){var a=n.ownsGroup;if(a)try{lx(a)}finally{Go=null,i(a)}}var Ks=null;function Bt(n,i){var a=Gr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Go?u=Go.delayedCallbacks:Ks?u=Ks:(u=Ks=[],setTimeout(cx,0));for(var g=function(w){u.push(function(){return a[w].apply(null,l)})},m=0;m<a.length;++m)g(m)}}function cx(){var n=Ks;Ks=null;for(var i=0;i<n.length;++i)n[i]()}function $p(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?fx(n,i):g=="gutter"?Op(n,i,a,l):g=="class"?ef(n,i):g=="widget"&&dx(n,i,l)}i.changes=null}function Xs(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),h&&p<8&&(n.node.style.zIndex=2)),n.node}function ux(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=Xs(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Pp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Ap(n,i)}function fx(n,i){var a=i.text.className,l=Pp(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,ef(n,i)):a&&(i.text.className=a)}function ef(n,i){ux(n,i),i.line.wrapClass?Xs(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 Op(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 u=Xs(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),u.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var m=Xs(i),w=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(w.setAttribute("aria-hidden","true"),n.display.input.setUneditable(w),m.insertBefore(w,i.text),i.line.gutterClass&&(w.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=w.appendChild(k("div",ge(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var _=0;_<n.display.gutterSpecs.length;++_){var S=n.display.gutterSpecs[_].className,$=g.hasOwnProperty(S)&&g[S];$&&w.appendChild(k("div",[$],"CodeMirror-gutter-elt","left: "+l.gutterLeft[S]+"px; width: "+l.gutterWidth[S]+"px"))}}}function dx(n,i,a){i.alignable&&(i.alignable=null);for(var l=te("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Rp(n,i,a)}function hx(n,i,a,l){var u=Pp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),ef(n,i),Op(n,i,a,l),Rp(n,i,l),i.node}function Rp(n,i,a){if(Dp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Dp(n,i.rest[l],i,a,!1)}function Dp(n,i,a,l,u){if(i.widgets)for(var g=Xs(a),m=0,w=i.widgets;m<w.length;++m){var _=w[m],S=k("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||S.setAttribute("cm-ignore-events","true"),px(_,S,a,l),n.display.input.setUneditable(S),u&&_.above?g.insertBefore(S,a.gutter||a.text):g.appendChild(S),Bt(_,"redraw")}}function px(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Ys(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!re(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;"),I(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function Zr(n,i){for(var a=Bs(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 Na(n){return n.lineSpace.offsetTop}function tf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function zp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=I(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 Ar(n){return Ze-n.display.nativeBarWidth}function lo(n){return n.display.scroller.clientWidth-Ar(n)-n.display.barWidth}function nf(n){return n.display.scroller.clientHeight-Ar(n)-n.display.barHeight}function gx(n,i,a){var l=n.options.lineWrapping,u=l&&lo(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var m=i.text.firstChild.getClientRects(),w=0;w<m.length-1;w++){var _=m[w],S=m[w+1];Math.abs(_.bottom-S.bottom)>2&&g.push((_.bottom+S.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Ip(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 u=0;u<n.rest.length;u++)if(C(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function vx(n,i){i=pr(i);var a=C(i),l=n.display.externalMeasured=new Np(n.doc,i,a);l.lineN=a;var u=l.built=Ap(n,l);return l.text=u.pre,I(n.display.lineMeasure,u.pre),l}function Fp(n,i,a,l){return Mr(n,Ko(n,i),a,l)}function rf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[uo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Ko(n,i){var a=C(i),l=rf(n,a);l&&!l.text?l=null:l&&l.changes&&($p(n,l,a,cf(n)),n.curOp.forceUpdate=!0),l||(l=vx(n,i));var u=Ip(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Mr(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),m;return i.cache.hasOwnProperty(g)?m=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(gx(n,i.view,i.rect),i.hasHeights=!0),m=yx(n,i,a,l),m.bogus||(i.cache[g]=m)),{left:m.left,right:m.right,top:u?m.rtop:m.top,bottom:u?m.rbottom:m.bottom}}var Hp={left:0,right:0,top:0,bottom:0};function qp(n,i,a){for(var l,u,g,m,w,_,S=0;S<n.length;S+=3)if(w=n[S],_=n[S+1],i<w?(u=0,g=1,m="left"):i<_?(u=i-w,g=u+1):(S==n.length-3||i==_&&n[S+3]>i)&&(g=_-w,u=g-1,i>=_&&(m="right")),u!=null){if(l=n[S+2],w==_&&a==(l.insertLeft?"left":"right")&&(m=a),a=="left"&&u==0)for(;S&&n[S-2]==n[S-3]&&n[S-1].insertLeft;)l=n[(S-=3)+2],m="left";if(a=="right"&&u==_-w)for(;S<n.length-3&&n[S+3]==n[S+4]&&!n[S+5].insertLeft;)l=n[(S+=3)+2],m="right";break}return{node:l,start:u,end:g,collapse:m,coverStart:w,coverEnd:_}}function mx(n,i){var a=Hp;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function yx(n,i,a,l){var u=qp(i.map,a,l),g=u.node,m=u.start,w=u.end,_=u.collapse,S;if(g.nodeType==3){for(var $=0;$<4;$++){for(;m&&nt(i.line.text.charAt(u.coverStart+m));)--m;for(;u.coverStart+w<u.coverEnd&&nt(i.line.text.charAt(u.coverStart+w));)++w;if(h&&p<9&&m==0&&w==u.coverEnd-u.coverStart?S=g.parentNode.getBoundingClientRect():S=mx(U(g,m,w).getClientRects(),l),S.left||S.right||m==0)break;w=m,m=m-1,_="right"}h&&p<11&&(S=bx(n.display.measure,S))}else{m>0&&(_=l="right");var D;n.options.lineWrapping&&(D=g.getClientRects()).length>1?S=D[l=="right"?D.length-1:0]:S=g.getBoundingClientRect()}if(h&&p<9&&!m&&(!S||!S.left&&!S.right)){var G=g.parentNode.getClientRects()[0];G?S={left:G.left,right:G.left+Yo(n.display),top:G.top,bottom:G.bottom}:S=Hp}for(var V=S.top-i.rect.top,ne=S.bottom-i.rect.top,ce=(V+ne)/2,ve=i.view.measure.heights,be=0;be<ve.length-1&&!(ce<ve[be]);be++);var ke=be?ve[be-1]:0,we=ve[be],Ae={left:(_=="right"?S.right:S.left)-i.rect.left,right:(_=="left"?S.left:S.right)-i.rect.left,top:ke,bottom:we};return!S.left&&!S.right&&(Ae.bogus=!0),n.options.singleCursorHeightPerLine||(Ae.rtop=V,Ae.rbottom=ne),Ae}function bx(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ju(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 Bp(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 Wp(n){n.display.externalMeasure=null,H(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Bp(n.display.view[i])}function Zs(n){Wp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Up(n){return b&&P?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Vp(n){return b&&P?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function of(n){var i=pr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Ys(a[u]));return l}function $a(n,i,a,l,u){if(!u){var g=of(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var m=Yr(i);if(l=="local"?m+=Na(n.display):m-=n.display.viewOffset,l=="page"||l=="window"){var w=n.display.lineSpace.getBoundingClientRect();m+=w.top+(l=="window"?0:Vp(it(n)));var _=w.left+(l=="window"?0:Up(it(n)));a.left+=_,a.right+=_}return a.top+=m,a.bottom+=m,a}function jp(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Up(it(n)),u-=Vp(it(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var m=n.display.lineSpace.getBoundingClientRect();return{left:l-m.left,top:u-m.top}}function Pa(n,i,a,l,u){return l||(l=Oe(n.doc,i.line)),$a(n,l,Fp(n,l,i.ch,u),a)}function gr(n,i,a,l,u,g){l=l||Oe(n.doc,i.line),u||(u=Ko(n,l));function m(ne,ce){var ve=Mr(n,u,ne,ce?"right":"left",g);return ce?ve.left=ve.right:ve.right=ve.left,$a(n,l,ve,a)}var w=Ve(l,n.doc.direction),_=i.ch,S=i.sticky;if(_>=l.text.length?(_=l.text.length,S="before"):_<=0&&(_=0,S="after"),!w)return m(S=="before"?_-1:_,S=="before");function $(ne,ce,ve){var be=w[ce],ke=be.level==1;return m(ve?ne-1:ne,ke!=ve)}var D=ar(w,_,S),G=qn,V=$(_,D,S=="before");return G!=null&&(V.other=$(_,G,S!="before")),V}function Gp(n,i){var a=0;i=Ke(n.doc,i),n.options.lineWrapping||(a=Yo(n.display)*i.ch);var l=Oe(n.doc,i.line),u=Yr(l)+Na(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function sf(n,i,a,l,u){var g=Q(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function lf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return sf(l.first,0,null,-1,-1);var u=R(l,a),g=l.first+l.size-1;if(u>g)return sf(l.first+l.size-1,Oe(l,g).text.length,null,1,1);i<0&&(i=0);for(var m=Oe(l,u);;){var w=wx(n,m,u,i,a),_=K1(m,w.ch+(w.xRel>0||w.outside>0?1:0));if(!_)return w;var S=_.find(1);if(S.line==u)return S;m=Oe(l,u=S.line)}}function Kp(n,i,a,l){l-=of(i);var u=i.text.length,g=Jt(function(m){return Mr(n,a,m-1).bottom<=l},u,0);return u=Jt(function(m){return Mr(n,a,m).top>l},g,u),{begin:g,end:u}}function Xp(n,i,a,l){a||(a=Ko(n,i));var u=$a(n,i,Mr(n,a,l),"line").top;return Kp(n,i,a,u)}function af(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function wx(n,i,a,l,u){u-=Yr(i);var g=Ko(n,i),m=of(i),w=0,_=i.text.length,S=!0,$=Ve(i,n.doc.direction);if($){var D=(n.options.lineWrapping?_x:xx)(n,i,a,g,$,l,u);S=D.level!=1,w=S?D.from:D.to-1,_=S?D.to:D.from-1}var G=null,V=null,ne=Jt(function(He){var De=Mr(n,g,He);return De.top+=m,De.bottom+=m,af(De,l,u,!1)?(De.top<=u&&De.left<=l&&(G=He,V=De),!0):!1},w,_),ce,ve,be=!1;if(V){var ke=l-V.left<V.right-l,we=ke==S;ne=G+(we?0:1),ve=we?"after":"before",ce=ke?V.left:V.right}else{!S&&(ne==_||ne==w)&&ne++,ve=ne==0?"after":ne==i.text.length?"before":Mr(n,g,ne-(S?1:0)).bottom+m<=u==S?"after":"before";var Ae=gr(n,Q(a,ne,ve),"line",i,g);ce=Ae.left,be=u<Ae.top?-1:u>=Ae.bottom?1:0}return ne=Ft(i.text,ne,1),sf(a,ne,ve,be,l-ce)}function xx(n,i,a,l,u,g,m){var w=Jt(function(D){var G=u[D],V=G.level!=1;return af(gr(n,Q(a,V?G.to:G.from,V?"before":"after"),"line",i,l),g,m,!0)},0,u.length-1),_=u[w];if(w>0){var S=_.level!=1,$=gr(n,Q(a,S?_.from:_.to,S?"after":"before"),"line",i,l);af($,g,m,!0)&&$.top>m&&(_=u[w-1])}return _}function _x(n,i,a,l,u,g,m){var w=Kp(n,i,l,m),_=w.begin,S=w.end;/\s/.test(i.text.charAt(S-1))&&S--;for(var $=null,D=null,G=0;G<u.length;G++){var V=u[G];if(!(V.from>=S||V.to<=_)){var ne=V.level!=1,ce=Mr(n,l,ne?Math.min(S,V.to)-1:Math.max(_,V.from)).right,ve=ce<g?g-ce+1e9:ce-g;(!$||D>ve)&&($=V,D=ve)}}return $||($=u[u.length-1]),$.from<_&&($={from:_,to:$.to,level:$.level}),$.to>S&&($={from:$.from,to:S,level:$.level}),$}var ao;function Xo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(ao==null){ao=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)ao.appendChild(document.createTextNode("x")),ao.appendChild(k("br"));ao.appendChild(document.createTextNode("x"))}I(n.measure,ao);var a=ao.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),H(n.measure),a||1}function Yo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");I(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function cf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,m=0;g;g=g.nextSibling,++m){var w=n.display.gutterSpecs[m].className;a[w]=g.offsetLeft+g.clientLeft+u,l[w]=g.clientWidth}return{fixedPos:uf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function uf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Yp(n){var i=Xo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Yo(n.display)-3);return function(u){if(wi(n.doc,u))return 0;var g=0;if(u.widgets)for(var m=0;m<u.widgets.length;m++)u.widgets[m].height&&(g+=u.widgets[m].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function ff(n){var i=n.doc,a=Yp(n);i.iter(function(l){var u=a(l);u!=l.height&&Bn(l,u)})}function co(n,i,a,l){var u=n.display;if(!a&&Bs(i).getAttribute("cm-not-content")=="true")return null;var g,m,w=u.lineSpace.getBoundingClientRect();try{g=i.clientX-w.left,m=i.clientY-w.top}catch{return null}var _=lf(n,g,m),S;if(l&&_.xRel>0&&(S=Oe(n.doc,_.line).text).length==_.ch){var $=de(S,S.length,n.options.tabSize)-S.length;_=Q(_.line,Math.max(0,Math.round((g-zp(n.display).left)/Yo(n.display))-$))}return _}function uo(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 vn(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)Xr&&Zu(n.doc,i)<u.viewTo&&_i(n);else if(a<=u.viewFrom)Xr&&Ep(n.doc,a+l)>u.viewFrom?_i(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)_i(n);else if(i<=u.viewFrom){var g=Oa(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):_i(n)}else if(a>=u.viewTo){var m=Oa(n,i,i,-1);m?(u.view=u.view.slice(0,m.index),u.viewTo=m.lineN):_i(n)}else{var w=Oa(n,i,i,-1),_=Oa(n,a,a+l,1);w&&_?(u.view=u.view.slice(0,w.index).concat(Ma(n,w.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):_i(n)}var S=u.externalMeasured;S&&(a<S.lineN?S.lineN+=l:i<S.lineN+S.size&&(u.externalMeasured=null))}function xi(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[uo(n,i)];if(g.node!=null){var m=g.changes||(g.changes=[]);Ee(m,a)==-1&&m.push(a)}}}function _i(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Oa(n,i,a,l){var u=uo(n,i),g,m=n.display.view;if(!Xr||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var w=n.display.viewFrom,_=0;_<u;_++)w+=m[_].size;if(w!=i){if(l>0){if(u==m.length-1)return null;g=w+m[u].size-i,u++}else g=w-i;i+=g,a+=g}for(;Zu(n.doc,a)!=a;){if(u==(l<0?0:m.length-1))return null;a+=l*m[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function Sx(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Ma(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Ma(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(uo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Ma(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,uo(n,a)))),l.viewTo=a}function Zp(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function Js(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Jp(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),m=n.options.$customCursor;m&&(i=!0);for(var w=0;w<a.sel.ranges.length;w++)if(!(!i&&w==a.sel.primIndex)){var _=a.sel.ranges[w];if(!(_.from().line>=n.display.viewTo||_.to().line<n.display.viewFrom)){var S=_.empty();if(m){var $=m(n,_);$&&df(n,$,u)}else(S||n.options.showCursorWhenSelecting)&&df(n,_.head,u);S||kx(n,_,g)}}return l}function df(n,i,a){var l=gr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(k("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=Pa(n,i,"div",null,null),m=g.right-g.left;u.style.width=(m>0?m:n.defaultCharWidth())+"px"}if(l.other){var w=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));w.style.display="",w.style.left=l.other.left+"px",w.style.top=l.other.top+"px",w.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Ra(n,i){return n.top-i.top||n.left-i.left}function kx(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),m=zp(n.display),w=m.left,_=Math.max(l.sizerWidth,lo(n)-l.sizer.offsetLeft)-m.right,S=u.direction=="ltr";function $(we,Ae,He,De){Ae<0&&(Ae=0),Ae=Math.round(Ae),De=Math.round(De),g.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+we+`px;
30
30
  top: `+Ae+"px; width: "+(He??_-we)+`px;
31
- height: `+(De-Ae)+"px"))}function D(we,Ae,He){var De=Oe(u,we),Qe=De.text.length,xt,Vt;function Tt(Ot,bn){return Pa(n,Q(we,Ot),"div",De,bn)}function Nn(Ot,bn,Yt){var Ht=Xp(n,De,null,Ot),Rt=bn=="ltr"==(Yt=="after")?"left":"right",Mt=Yt=="after"?Ht.begin:Ht.end-(/\s/.test(De.text.charAt(Ht.end-1))?2:1);return Tt(Mt,Rt)[Rt]}var yn=Ve(De,u.direction);return lr(yn,Ae||0,He??Qe,function(Ot,bn,Yt,Ht){var Rt=Yt=="ltr",Mt=Tt(Ot,Rt?"left":"right"),wn=Tt(bn-1,Rt?"right":"left"),cs=Ae==null&&Ot==0,Li=He==null&&bn==Qe,rn=Ht==0,Nr=!yn||Ht==yn.length-1;if(wn.top-Mt.top<=3){var jt=(S?cs:Li)&&rn,Ff=(S?Li:cs)&&Nr,ei=jt?w:(Rt?Mt:wn).left,vo=Ff?_:(Rt?wn:Mt).right;$(ei,Mt.top,vo-ei,Mt.bottom)}else{var mo,cn,us,Hf;Rt?(mo=S&&cs&&rn?w:Mt.left,cn=S?_:Nn(Ot,Yt,"before"),us=S?w:Nn(bn,Yt,"after"),Hf=S&&Li&&Nr?_:wn.right):(mo=S?Nn(Ot,Yt,"before"):w,cn=!S&&cs&&rn?_:Mt.right,us=!S&&Li&&Nr?w:wn.left,Hf=S?Nn(bn,Yt,"after"):_),$(mo,Mt.top,cn-mo,Mt.bottom),Mt.bottom<wn.top&&$(w,Mt.bottom,null,wn.top),$(us,wn.top,Hf-us,wn.bottom)}(!xt||Ra(Mt,xt)<0)&&(xt=Mt),Ra(wn,xt)<0&&(xt=wn),(!Vt||Ra(Mt,Vt)<0)&&(Vt=Mt),Ra(wn,Vt)<0&&(Vt=wn)}),{start:xt,end:Vt}}var G=i.from(),V=i.to();if(G.line==V.line)D(G.line,G.ch,V.ch);else{var ne=Oe(u,G.line),ce=Oe(u,V.line),ve=pr(ne)==pr(ce),be=D(G.line,G.ch,ve?ne.text.length+1:null).end,ke=D(V.line,ve?0:null,V.ch).start;ve&&(be.top<ke.top-2?($(be.right,be.top,null,be.bottom),$(w,ke.top,ke.left,ke.bottom)):$(be.right,be.top,ke.left-be.right,be.bottom)),be.bottom<ke.top&&$(w,be.bottom,null,ke.top)}a.appendChild(g)}function hf(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()||Zo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Qp(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||gf(n))}function pf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Zo(n))},100)}function gf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Et(n,"focus",n,i),n.state.focused=!0,Ne(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()),hf(n))}function Zo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Et(n,"blur",n,i),n.state.focused=!1,Z(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Da(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,m=0;m<i.view.length;m++){var w=i.view[m],_=n.options.lineWrapping,S=void 0,$=0;if(!w.hidden){if(u+=w.line.height,h&&p<8){var D=w.node.offsetTop+w.node.offsetHeight;S=D-a,a=D}else{var G=w.node.getBoundingClientRect();S=G.bottom-G.top,!_&&w.text.firstChild&&($=w.text.firstChild.getBoundingClientRect().right-G.left-1)}var V=w.line.height-S;if((V>.005||V<-.005)&&(u<l&&(g-=V),Bn(w.line,S),eg(w.line),w.rest))for(var ne=0;ne<w.rest.length;ne++)eg(w.rest[ne]);if($>n.display.sizerWidth){var ce=Math.ceil($/Yo(n.display));ce>n.display.maxLineLength&&(n.display.maxLineLength=ce,n.display.maxLine=w.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function eg(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 za(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Na(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=R(i,l),m=R(i,u);if(a&&a.ensure){var w=a.ensure.from.line,_=a.ensure.to.line;w<g?(g=w,m=R(i,Yr(Oe(i,w))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=m&&(g=R(i,Yr(Oe(i,_))-n.wrapper.clientHeight),m=_)}return{from:g,to:Math.max(m,g+1)}}function Cx(n,i){if(!Lt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!N){var m=k("div","​",null,`position: absolute;
31
+ height: `+(De-Ae)+"px"))}function D(we,Ae,He){var De=Oe(u,we),Qe=De.text.length,xt,Vt;function Tt(Ot,bn){return Pa(n,Q(we,Ot),"div",De,bn)}function Nn(Ot,bn,Yt){var Ht=Xp(n,De,null,Ot),Rt=bn=="ltr"==(Yt=="after")?"left":"right",Mt=Yt=="after"?Ht.begin:Ht.end-(/\s/.test(De.text.charAt(Ht.end-1))?2:1);return Tt(Mt,Rt)[Rt]}var yn=Ve(De,u.direction);return lr(yn,Ae||0,He??Qe,function(Ot,bn,Yt,Ht){var Rt=Yt=="ltr",Mt=Tt(Ot,Rt?"left":"right"),wn=Tt(bn-1,Rt?"right":"left"),cs=Ae==null&&Ot==0,Li=He==null&&bn==Qe,rn=Ht==0,Nr=!yn||Ht==yn.length-1;if(wn.top-Mt.top<=3){var jt=(S?cs:Li)&&rn,Ff=(S?Li:cs)&&Nr,ei=jt?w:(Rt?Mt:wn).left,vo=Ff?_:(Rt?wn:Mt).right;$(ei,Mt.top,vo-ei,Mt.bottom)}else{var mo,cn,us,Hf;Rt?(mo=S&&cs&&rn?w:Mt.left,cn=S?_:Nn(Ot,Yt,"before"),us=S?w:Nn(bn,Yt,"after"),Hf=S&&Li&&Nr?_:wn.right):(mo=S?Nn(Ot,Yt,"before"):w,cn=!S&&cs&&rn?_:Mt.right,us=!S&&Li&&Nr?w:wn.left,Hf=S?Nn(bn,Yt,"after"):_),$(mo,Mt.top,cn-mo,Mt.bottom),Mt.bottom<wn.top&&$(w,Mt.bottom,null,wn.top),$(us,wn.top,Hf-us,wn.bottom)}(!xt||Ra(Mt,xt)<0)&&(xt=Mt),Ra(wn,xt)<0&&(xt=wn),(!Vt||Ra(Mt,Vt)<0)&&(Vt=Mt),Ra(wn,Vt)<0&&(Vt=wn)}),{start:xt,end:Vt}}var G=i.from(),V=i.to();if(G.line==V.line)D(G.line,G.ch,V.ch);else{var ne=Oe(u,G.line),ce=Oe(u,V.line),ve=pr(ne)==pr(ce),be=D(G.line,G.ch,ve?ne.text.length+1:null).end,ke=D(V.line,ve?0:null,V.ch).start;ve&&(be.top<ke.top-2?($(be.right,be.top,null,be.bottom),$(w,ke.top,ke.left,ke.bottom)):$(be.right,be.top,ke.left-be.right,be.bottom)),be.bottom<ke.top&&$(w,be.bottom,null,ke.top)}a.appendChild(g)}function hf(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()||Zo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Qp(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||gf(n))}function pf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Zo(n))},100)}function gf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Et(n,"focus",n,i),n.state.focused=!0,Ne(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()),hf(n))}function Zo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Et(n,"blur",n,i),n.state.focused=!1,Z(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Da(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,m=0;m<i.view.length;m++){var w=i.view[m],_=n.options.lineWrapping,S=void 0,$=0;if(!w.hidden){if(u+=w.line.height,h&&p<8){var D=w.node.offsetTop+w.node.offsetHeight;S=D-a,a=D}else{var G=w.node.getBoundingClientRect();S=G.bottom-G.top,!_&&w.text.firstChild&&($=w.text.firstChild.getBoundingClientRect().right-G.left-1)}var V=w.line.height-S;if((V>.005||V<-.005)&&(u<l&&(g-=V),Bn(w.line,S),eg(w.line),w.rest))for(var ne=0;ne<w.rest.length;ne++)eg(w.rest[ne]);if($>n.display.sizerWidth){var ce=Math.ceil($/Yo(n.display));ce>n.display.maxLineLength&&(n.display.maxLineLength=ce,n.display.maxLine=w.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function eg(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 za(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Na(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=R(i,l),m=R(i,u);if(a&&a.ensure){var w=a.ensure.from.line,_=a.ensure.to.line;w<g?(g=w,m=R(i,Yr(Oe(i,w))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=m&&(g=R(i,Yr(Oe(i,_))-n.wrapper.clientHeight),m=_)}return{from:g,to:Math.max(m,g+1)}}function Cx(n,i){if(!Lt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!L){var m=k("div","​",null,`position: absolute;
32
32
  top: `+(i.top-a.viewOffset-Na(n.display))+`px;
33
33
  height: `+(i.bottom-i.top+Ar(n)+a.barHeight)+`px;
34
- left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(m),m.scrollIntoView(u),n.display.lineSpace.removeChild(m)}}}function Tx(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?Q(i.line,i.ch+1,"before"):i,i=i.ch?Q(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var m=!1,w=gr(n,i),_=!a||a==i?w:gr(n,a);u={left:Math.min(w.left,_.left),top:Math.min(w.top,_.top)-l,right:Math.max(w.left,_.left),bottom:Math.max(w.bottom,_.bottom)+l};var S=vf(n,u),$=n.doc.scrollTop,D=n.doc.scrollLeft;if(S.scrollTop!=null&&(el(n,S.scrollTop),Math.abs(n.doc.scrollTop-$)>1&&(m=!0)),S.scrollLeft!=null&&(fo(n,S.scrollLeft),Math.abs(n.doc.scrollLeft-D)>1&&(m=!0)),!m)break}return u}function Ex(n,i){var a=vf(n,i);a.scrollTop!=null&&el(n,a.scrollTop),a.scrollLeft!=null&&fo(n,a.scrollLeft)}function vf(n,i){var a=n.display,l=Xo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=nf(n),m={};i.bottom-i.top>g&&(i.bottom=i.top+g);var w=n.doc.height+tf(a),_=i.top<l,S=i.bottom>w-l;if(i.top<u)m.scrollTop=_?0:i.top;else if(i.bottom>u+g){var $=Math.min(i.top,(S?w:i.bottom)-g);$!=u&&(m.scrollTop=$)}var D=n.options.fixedGutter?0:a.gutters.offsetWidth,G=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-D,V=lo(n)-a.gutters.offsetWidth,ne=i.right-i.left>V;return ne&&(i.right=i.left+V),i.left<10?m.scrollLeft=0:i.left<G?m.scrollLeft=Math.max(0,i.left+D-(ne?0:10)):i.right>V+G-3&&(m.scrollLeft=i.right+(ne?0:10)-V),m}function mf(n,i){i!=null&&(Ia(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Jo(n){Ia(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Qs(n,i,a){(i!=null||a!=null)&&Ia(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Lx(n,i){Ia(n),n.curOp.scrollToPos=i}function Ia(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Gp(n,i.from),l=Gp(n,i.to);tg(n,a,l,i.margin)}}function tg(n,i,a,l){var u=vf(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});Qs(n,u.scrollLeft,u.scrollTop)}function el(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||bf(n,{top:i}),ng(n,i,!0),s&&bf(n),rl(n,100))}function ng(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 fo(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,lg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function tl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+tf(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+Ar(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var ho=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Fe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Fe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ho.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 u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"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 g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"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}},ho.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ho.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ho.prototype.zeroWidthHack=function(){var n=q&&!L?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new $e,this.disableVert=new $e},ho.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},ho.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var nl=function(){};nl.prototype.update=function(){return{bottom:0,right:0}},nl.prototype.setScrollLeft=function(){},nl.prototype.setScrollTop=function(){},nl.prototype.clear=function(){};function Qo(n,i){i||(i=tl(n));var a=n.display.barWidth,l=n.display.barHeight;rg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&Da(n),rg(n,tl(n)),a=n.display.barWidth,l=n.display.barHeight}function rg(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 ig={native:ho,null:nl};function og(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&Z(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new ig[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Fe(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"?fo(n,i):el(n,i)},n),n.display.scrollbars.addClass&&Ne(n.display.wrapper,n.display.scrollbars.addClass)}var Ax=0;function po(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:++Ax,markArrays:null},sx(n.curOp)}function go(n){var i=n.curOp;i&&ax(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Mx(a)})}function Mx(n){for(var i=n.ops,a=0;a<i.length;a++)Nx(i[a]);for(var l=0;l<i.length;l++)$x(i[l]);for(var u=0;u<i.length;u++)Px(i[u]);for(var g=0;g<i.length;g++)Ox(i[g]);for(var m=0;m<i.length;m++)Rx(i[m])}function Nx(n){var i=n.cm,a=i.display;zx(i),n.updateMaxLine&&Qu(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 Fa(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function $x(n){n.updatedDisplay=n.mustUpdate&&yf(n.cm,n.update)}function Px(n){var i=n.cm,a=i.display;n.updatedDisplay&&Da(i),n.barMeasure=tl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Fp(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+Ar(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-lo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Ox(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&fo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ye(rt(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&Qo(i,n.barMeasure),n.updatedDisplay&&xf(i,n.barMeasure),n.selectionChanged&&hf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Qp(n.cm)}function Rx(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&sg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&ng(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&fo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Tx(i,Ke(l,n.scrollToPos.from),Ke(l,n.scrollToPos.to),n.scrollToPos.margin);Cx(i,u)}var g=n.maybeHiddenMarkers,m=n.maybeUnhiddenMarkers;if(g)for(var w=0;w<g.length;++w)g[w].lines.length||Et(g[w],"hide");if(m)for(var _=0;_<m.length;++_)m[_].lines.length&&Et(m[_],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Et(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Mn(n,i){if(n.curOp)return i();po(n);try{return i()}finally{go(n)}}function Wt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);po(n);try{return i.apply(n,arguments)}finally{go(n)}}}function an(n){return function(){if(this.curOp)return n.apply(this,arguments);po(this);try{return n.apply(this,arguments)}finally{go(this)}}}function Ut(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);po(i);try{return n.apply(this,arguments)}finally{go(i)}}}function rl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,K(Dx,n))}function Dx(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=js(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var m=g.styles,w=g.text.length>n.options.maxHighlightLength?Er(i.mode,l.state):null,_=hp(n,g,l,!0);w&&(l.state=w),g.styles=_.styles;var S=g.styleClasses,$=_.classes;$?g.styleClasses=$:S&&(g.styleClasses=null);for(var D=!m||m.length!=g.styles.length||S!=$&&(!S||!$||S.bgClass!=$.bgClass||S.textClass!=$.textClass),G=0;!D&&G<m.length;++G)D=m[G]!=g.styles[G];D&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&Gu(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return rl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Mn(n,function(){for(var g=0;g<u.length;g++)xi(n,u[g],"text")})}}var Fa=function(n,i,a){var l=n.display;this.viewport=i,this.visible=za(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=lo(n),this.force=a,this.dims=cf(n),this.events=[]};Fa.prototype.signal=function(n,i){An(n,i)&&this.events.push(arguments)},Fa.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Et.apply(null,this.events[n])};function zx(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Ar(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Ar(n)+"px",i.scrollbarsClipped=!0)}function Ix(n){if(n.hasFocus())return null;var i=ye(rt(n));if(!i||!re(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Le(n).getSelection();l.anchorNode&&l.extend&&re(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Fx(n){if(!(!n||!n.activeElt||n.activeElt==ye(Je(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&re(document.body,n.anchorNode)&&re(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 yf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return _i(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&&Zp(n)==0)return!1;ag(n)&&(_i(n),i.dims=cf(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),m=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>m&&a.viewTo-m<20&&(m=Math.min(u,a.viewTo)),Xr&&(g=Zu(n.doc,g),m=Ep(n.doc,m));var w=g!=a.viewFrom||m!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;Sx(n,g,m),a.viewOffset=Yr(Oe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=Zp(n);if(!w&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var S=Ix(n);return _>4&&(a.lineDiv.style.display="none"),Hx(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Fx(S),H(a.cursorDiv),H(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,w&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,rl(n,400)),a.updateLineNumbers=null,!0}function sg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==lo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+tf(n.display)-nf(n),a.top)}),i.visible=za(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=za(n.display,n.doc,a));if(!yf(n,i))break;Da(n);var u=tl(n);Js(n),Qo(n,u),xf(n,u),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 bf(n,i){var a=new Fa(n,i);if(yf(n,a)){Da(n),sg(n,a);var l=tl(n);Js(n),Qo(n,l),xf(n,l),a.finish()}}function Hx(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,m=g.firstChild;function w(ne){var ce=ne.nextSibling;return v&&q&&n.display.currentWheelTarget==ne?ne.style.display="none":ne.parentNode.removeChild(ne),ce}for(var _=l.view,S=l.viewFrom,$=0;$<_.length;$++){var D=_[$];if(!D.hidden)if(!D.node||D.node.parentNode!=g){var G=hx(n,D,S,a);g.insertBefore(G,m)}else{for(;m!=D.node;)m=w(m);var V=u&&i!=null&&i<=S&&D.lineNumber;D.changes&&(Ee(D.changes,"gutter")>-1&&(V=!1),$p(n,D,S,a)),V&&(H(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(ge(n.options,S)))),m=D.node.nextSibling}S+=D.size}for(;m;)m=w(m)}function wf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Bt(n,"gutterChanged",n)}function xf(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+Ar(n)+"px"}function lg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=uf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",m=0;m<a.length;m++)if(!a[m].hidden){n.options.fixedGutter&&(a[m].gutter&&(a[m].gutter.style.left=g),a[m].gutterBackground&&(a[m].gutterBackground.style.left=g));var w=a[m].alignable;if(w)for(var _=0;_<w.length;_++)w[_].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function ag(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=ge(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(k("div",[k("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=u.firstChild.offsetWidth,m=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-m)+1,l.lineNumWidth=l.lineNumInnerWidth+m,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",wf(n.display),!0}return!1}function _f(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],m=null;if(typeof g!="string"&&(m=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:m})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function cg(n){var i=n.gutters,a=n.gutterSpecs;H(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,m=u.style,w=i.appendChild(k("div",null,"CodeMirror-gutter "+g));m&&(w.style.cssText=m),g=="CodeMirror-linenumbers"&&(n.lineGutter=w,w.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",wf(n)}function il(n){cg(n.display),vn(n),lg(n)}function qx(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=B("div",null,"CodeMirror-code"),u.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=k("div",null,"CodeMirror-cursors"),u.measure=k("div",null,"CodeMirror-measure"),u.lineMeasure=k("div",null,"CodeMirror-measure"),u.lineSpace=B("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=B("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[g],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+Ze+"px; width: 1px;"),u.gutters=k("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=k("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=k("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&x>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&M)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=_f(l.gutters,l.lineNumbers),cg(u),a.init(u)}var Ha=0,Jr=null;h?Jr=-.53:s?Jr=15:b?Jr=-.7:C&&(Jr=-1/3);function ug(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 Bx(n){var i=ug(n);return i.x*=Jr,i.y*=Jr,i}function fg(n,i){b&&x==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=ug(i),l=a.x,u=a.y,g=Jr;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var m=n.display,w=m.scroller,_=w.scrollWidth>w.clientWidth,S=w.scrollHeight>w.clientHeight;if(l&&_||u&&S){if(u&&q&&v){e:for(var $=i.target,D=m.view;$!=w;$=$.parentNode)for(var G=0;G<D.length;G++)if(D[G].node==$){n.display.currentWheelTarget=$;break e}}if(l&&!s&&!E&&g!=null){u&&S&&el(n,Math.max(0,w.scrollTop+u*g)),fo(n,Math.max(0,w.scrollLeft+l*g)),(!u||u&&S)&&tn(i),m.wheelStartX=null;return}if(u&&g!=null){var V=u*g,ne=n.doc.scrollTop,ce=ne+m.wrapper.clientHeight;V<0?ne=Math.max(0,ne+V-50):ce=Math.min(n.doc.height,ce+V+50),bf(n,{top:ne,bottom:ce})}Ha<20&&i.deltaMode!==0&&(m.wheelStartX==null?(m.wheelStartX=w.scrollLeft,m.wheelStartY=w.scrollTop,m.wheelDX=l,m.wheelDY=u,setTimeout(function(){if(m.wheelStartX!=null){var ve=w.scrollLeft-m.wheelStartX,be=w.scrollTop-m.wheelStartY,ke=be&&m.wheelDY&&be/m.wheelDY||ve&&m.wheelDX&&ve/m.wheelDX;m.wheelStartX=m.wheelStartY=null,ke&&(Jr=(Jr*Ha+ke)/(Ha+1),++Ha)}},200)):(m.wheelDX+=l,m.wheelDY+=u))}}var Wn=function(n,i){this.ranges=n,this.primIndex=i};Wn.prototype.primary=function(){return this.ranges[this.primIndex]},Wn.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(!dt(a.anchor,l.anchor)||!dt(a.head,l.head))return!1}return!0},Wn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new ht(qt(this.ranges[i].anchor),qt(this.ranges[i].head));return new Wn(n,this.primIndex)},Wn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Wn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(_e(i,l.from())>=0&&_e(n,l.to())<=0)return a}return-1};var ht=function(n,i){this.anchor=n,this.head=i};ht.prototype.from=function(){return Vo(this.anchor,this.head)},ht.prototype.to=function(){return gn(this.anchor,this.head)},ht.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function vr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(G,V){return _e(G.from(),V.from())}),a=Ee(i,u);for(var g=1;g<i.length;g++){var m=i[g],w=i[g-1],_=_e(w.to(),m.from());if(l&&!m.empty()?_>0:_>=0){var S=Vo(w.from(),m.from()),$=gn(w.to(),m.to()),D=w.empty()?m.from()==m.head:w.from()==w.head;g<=a&&--a,i.splice(--g,2,new ht(D?$:S,D?S:$))}}return new Wn(i,a)}function Si(n,i){return new Wn([new ht(n,i||n)],0)}function ki(n){return n.text?Q(n.from.line+n.text.length-1,fe(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function dg(n,i){if(_e(n,i.from)<0)return n;if(_e(n,i.to)<=0)return ki(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+=ki(i).ch-i.to.ch),Q(a,l)}function Sf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new ht(dg(u.anchor,i),dg(u.head,i)))}return vr(n.cm,a,n.sel.primIndex)}function hg(n,i,a){return n.line==i.line?Q(a.line,n.ch-i.ch+a.ch):Q(a.line+(n.line-i.line),n.ch)}function Wx(n,i,a){for(var l=[],u=Q(n.first,0),g=u,m=0;m<i.length;m++){var w=i[m],_=hg(w.from,u,g),S=hg(ki(w),u,g);if(u=w.to,g=S,a=="around"){var $=n.sel.ranges[m],D=_e($.head,$.anchor)<0;l[m]=new ht(D?S:_,D?_:S)}else l[m]=new ht(_,_)}return new Wn(l,n.sel.primIndex)}function kf(n){n.doc.mode=Bo(n.options,n.doc.modeOption),ol(n)}function ol(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,rl(n,100),n.state.modeGen++,n.curOp&&vn(n)}function pg(n,i){return i.from.ch==0&&i.to.ch==0&&fe(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Cf(n,i,a,l){function u(ke){return a?a[ke]:null}function g(ke,we,Ae){Z1(ke,we,Ae,l),Bt(ke,"change",ke,i)}function m(ke,we){for(var Ae=[],He=ke;He<we;++He)Ae.push(new jo(S[He],u(He),l));return Ae}var w=i.from,_=i.to,S=i.text,$=Oe(n,w.line),D=Oe(n,_.line),G=fe(S),V=u(S.length-1),ne=_.line-w.line;if(i.full)n.insert(0,m(0,S.length)),n.remove(S.length,n.size-S.length);else if(pg(n,i)){var ce=m(0,S.length-1);g(D,D.text,V),ne&&n.remove(w.line,ne),ce.length&&n.insert(w.line,ce)}else if($==D)if(S.length==1)g($,$.text.slice(0,w.ch)+G+$.text.slice(_.ch),V);else{var ve=m(1,S.length-1);ve.push(new jo(G+$.text.slice(_.ch),V,l)),g($,$.text.slice(0,w.ch)+S[0],u(0)),n.insert(w.line+1,ve)}else if(S.length==1)g($,$.text.slice(0,w.ch)+S[0]+D.text.slice(_.ch),u(0)),n.remove(w.line+1,ne);else{g($,$.text.slice(0,w.ch)+S[0],u(0)),g(D,G+D.text.slice(_.ch),V);var be=m(1,S.length-1);ne>1&&n.remove(w.line+1,ne-1),n.insert(w.line+1,be)}Bt(n,"change",n,i)}function Ci(n,i,a){function l(u,g,m){if(u.linked)for(var w=0;w<u.linked.length;++w){var _=u.linked[w];if(_.doc!=g){var S=m&&_.sharedHist;a&&!S||(i(_.doc,S),l(_.doc,u,S))}}}l(n,null,!0)}function gg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,ff(n),kf(n),vg(n),n.options.direction=i.direction,n.options.lineWrapping||Qu(n),n.options.mode=i.modeOption,vn(n)}function vg(n){(n.doc.direction=="rtl"?Ne:Z)(n.display.lineDiv,"CodeMirror-rtl")}function Ux(n){Mn(n,function(){vg(n),vn(n)})}function qa(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 Tf(n,i){var a={from:qt(i.from),to:ki(i),text:Kr(n,i.from,i.to)};return bg(n,a,i.from.line,i.to.line+1),Ci(n,function(l){return bg(l,a,i.from.line,i.to.line+1)},!0),a}function mg(n){for(;n.length;){var i=fe(n);if(i.ranges)n.pop();else break}}function Vx(n,i){if(i)return mg(n.done),fe(n.done);if(n.done.length&&!fe(n.done).ranges)return fe(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),fe(n.done)}function yg(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,m,w;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(m=Vx(u,u.lastOp==l)))w=fe(m.changes),_e(i.from,i.to)==0&&_e(i.from,w.to)==0?w.to=ki(i):m.changes.push(Tf(n,i));else{var _=fe(u.done);for((!_||!_.ranges)&&Ba(n.sel,u.done),m={changes:[Tf(n,i)],generation:u.generation},u.done.push(m);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,w||Et(n,"historyAdded")}function jx(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function Gx(n,i,a,l){var u=n.history,g=l&&l.origin;a==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||jx(n,g,fe(u.done),i))?u.done[u.done.length-1]=i:Ba(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&mg(u.undone)}function Ba(n,i){var a=fe(i);a&&a.ranges&&a.equals(n)||i.push(n)}function bg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(m){m.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=m.markedSpans),++g})}function Kx(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 Xx(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(Kx(a[u]));return l}function wg(n,i){var a=Xx(n,i),l=Xu(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],m=l[u];if(g&&m)e:for(var w=0;w<m.length;++w){for(var _=m[w],S=0;S<g.length;++S)if(g[S].marker==_.marker)continue e;g.push(_)}else m&&(a[u]=m)}return a}function es(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Wn.prototype.deepCopy.call(g):g);continue}var m=g.changes,w=[];l.push({changes:w});for(var _=0;_<m.length;++_){var S=m[_],$=void 0;if(w.push({from:S.from,to:S.to,text:S.text}),i)for(var D in S)($=D.match(/^spans_(\d+)$/))&&Ee(i,Number($[1]))>-1&&(fe(w)[D]=S[D],delete S[D])}}return l}function Ef(n,i,a,l){if(l){var u=n.anchor;if(a){var g=_e(i,u)<0;g!=_e(a,u)<0?(u=i,i=a):g!=_e(i,a)<0&&(i=a)}return new ht(u,i)}else return new ht(a||i,i)}function Wa(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),nn(n,new Wn([Ef(n.sel.primary(),i,a,u)],0),l)}function xg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),g=0;g<n.sel.ranges.length;g++)l[g]=Ef(n.sel.ranges[g],i[g],null,u);var m=vr(n.cm,l,n.sel.primIndex);nn(n,m,a)}function Lf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,nn(n,vr(n.cm,u,n.sel.primIndex),l)}function _g(n,i,a,l){nn(n,Si(i,a),l)}function Yx(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new ht(Ke(n,u[g].anchor),Ke(n,u[g].head))},origin:a&&a.origin};return Et(n,"beforeSelectionChange",n,l),n.cm&&Et(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?vr(n.cm,l.ranges,l.ranges.length-1):i}function Sg(n,i,a){var l=n.history.done,u=fe(l);u&&u.ranges?(l[l.length-1]=i,Ua(n,i,a)):nn(n,i,a)}function nn(n,i,a){Ua(n,i,a),Gx(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ua(n,i,a){(An(n,"beforeSelectionChange")||n.cm&&An(n.cm,"beforeSelectionChange"))&&(i=Yx(n,i,a));var l=a&&a.bias||(_e(i.primary().head,n.sel.primary().head)<0?-1:1);kg(n,Tg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Jo(n.cm)}function kg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,Zn(n.cm)),Bt(n,"cursorActivity",n))}function Cg(n){kg(n,Tg(n,n.sel,null,!1))}function Tg(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var m=i.ranges[g],w=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],_=Va(n,m.anchor,w&&w.anchor,a,l),S=m.head==m.anchor?_:Va(n,m.head,w&&w.head,a,l);(u||_!=m.anchor||S!=m.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new ht(_,S))}return u?vr(n.cm,u,i.primIndex):i}function ts(n,i,a,l,u){var g=Oe(n,i.line);if(g.markedSpans)for(var m=0;m<g.markedSpans.length;++m){var w=g.markedSpans[m],_=w.marker,S="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,$="selectRight"in _?!_.selectRight:_.inclusiveRight;if((w.from==null||(S?w.from<=i.ch:w.from<i.ch))&&(w.to==null||($?w.to>=i.ch:w.to>i.ch))){if(u&&(Et(_,"beforeCursorEnter"),_.explicitlyCleared))if(g.markedSpans){--m;continue}else break;if(!_.atomic)continue;if(a){var D=_.find(l<0?1:-1),G=void 0;if((l<0?$:S)&&(D=Eg(n,D,-l,D&&D.line==i.line?g:null)),D&&D.line==i.line&&(G=_e(D,a))&&(l<0?G<0:G>0))return ts(n,D,i,l,u)}var V=_.find(l<0?-1:1);return(l<0?S:$)&&(V=Eg(n,V,l,V.line==i.line?g:null)),V?ts(n,V,i,l,u):null}}return i}function Va(n,i,a,l,u){var g=l||1,m=ts(n,i,a,g,u)||!u&&ts(n,i,a,g,!0)||ts(n,i,a,-g,u)||!u&&ts(n,i,a,-g,!0);return m||(n.cantEdit=!0,Q(n.first,0))}function Eg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ke(n,Q(i.line-1)):null:a>0&&i.ch==(l||Oe(n,i.line)).text.length?i.line<n.first+n.size-1?Q(i.line+1,0):null:new Q(i.line,i.ch+a)}function Lg(n){n.setSelection(Q(n.firstLine(),0),Q(n.lastLine()),F)}function Ag(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(u,g,m,w){u&&(l.from=Ke(n,u)),g&&(l.to=Ke(n,g)),m&&(l.text=m),w!==void 0&&(l.origin=w)}),Et(n,"beforeChange",n,l),n.cm&&Et(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 ns(n,i,a){if(n.cm){if(!n.cm.curOp)return Wt(n.cm,ns)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((An(n,"beforeChange")||n.cm&&An(n.cm,"beforeChange"))&&(i=Ag(n,i,!0),!i))){var l=wp&&!a&&G1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Mg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Mg(n,i)}}function Mg(n,i){if(!(i.text.length==1&&i.text[0]==""&&_e(i.from,i.to)==0)){var a=Sf(n,i);yg(n,i,a,n.cm?n.cm.curOp.id:NaN),sl(n,i,a,Xu(n,i));var l=[];Ci(n,function(u,g){!g&&Ee(l,u.history)==-1&&(Og(u.history,i),l.push(u.history)),sl(u,i,null,Xu(u,i))})}}function ja(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,m=n.sel,w=i=="undo"?u.done:u.undone,_=i=="undo"?u.undone:u.done,S=0;S<w.length&&(g=w[S],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));S++);if(S!=w.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=w.pop(),g.ranges){if(Ba(g,_),a&&!g.equals(n.sel)){nn(n,g,{clearRedo:!1});return}m=g}else if(l){w.push(g);return}else break;var $=[];Ba(m,_),_.push({changes:$,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var D=An(n,"beforeChange")||n.cm&&An(n.cm,"beforeChange"),G=function(ce){var ve=g.changes[ce];if(ve.origin=i,D&&!Ag(n,ve,!1))return w.length=0,{};$.push(Tf(n,ve));var be=ce?Sf(n,ve):fe(w);sl(n,ve,be,wg(n,ve)),!ce&&n.cm&&n.cm.scrollIntoView({from:ve.from,to:ki(ve)});var ke=[];Ci(n,function(we,Ae){!Ae&&Ee(ke,we.history)==-1&&(Og(we.history,ve),ke.push(we.history)),sl(we,ve,null,wg(we,ve))})},V=g.changes.length-1;V>=0;--V){var ne=G(V);if(ne)return ne.v}}}}function Ng(n,i){if(i!=0&&(n.first+=i,n.sel=new Wn(xe(n.sel.ranges,function(u){return new ht(Q(u.anchor.line+i,u.anchor.ch),Q(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){vn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)xi(n.cm,l,"gutter")}}function sl(n,i,a,l){if(n.cm&&!n.cm.curOp)return Wt(n.cm,sl)(n,i,a,l);if(i.to.line<n.first){Ng(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 u=i.text.length-1-(n.first-i.from.line);Ng(n,u),i={from:Q(n.first,0),to:Q(i.to.line+u,i.to.ch),text:[fe(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:Q(g,Oe(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Kr(n,i.from,i.to),a||(a=Sf(n,i)),n.cm?Zx(n.cm,i,l):Cf(n,i,l),Ua(n,a,F),n.cantEdit&&Va(n,Q(n.firstLine(),0))&&(n.cantEdit=!1)}}function Zx(n,i,a){var l=n.doc,u=n.display,g=i.from,m=i.to,w=!1,_=g.line;n.options.lineWrapping||(_=T(pr(Oe(l,g.line))),l.iter(_,m.line+1,function(V){if(V==u.maxLine)return w=!0,!0})),l.sel.contains(i.from,i.to)>-1&&Zn(n),Cf(l,i,a,Yp(n)),n.options.lineWrapping||(l.iter(_,g.line+i.text.length,function(V){var ne=Aa(V);ne>u.maxLineLength&&(u.maxLine=V,u.maxLineLength=ne,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),H1(l,g.line),rl(n,400);var S=i.text.length-(m.line-g.line)-1;i.full?vn(n):g.line==m.line&&i.text.length==1&&!pg(n.doc,i)?xi(n,g.line,"text"):vn(n,g.line,m.line+1,S);var $=An(n,"changes"),D=An(n,"change");if(D||$){var G={from:g,to:m,text:i.text,removed:i.removed,origin:i.origin};D&&Bt(n,"change",n,G),$&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(G)}n.display.selForContextMenu=null}function rs(n,i,a,l,u){var g;l||(l=a),_e(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),ns(n,{from:a,to:l,text:i,origin:u})}function $g(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Pg(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],m=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var w=0;w<g.ranges.length;w++)$g(g.ranges[w].anchor,i,a,l),$g(g.ranges[w].head,i,a,l);continue}for(var _=0;_<g.changes.length;++_){var S=g.changes[_];if(a<S.from.line)S.from=Q(S.from.line+l,S.from.ch),S.to=Q(S.to.line+l,S.to.ch);else if(i<=S.to.line){m=!1;break}}m||(n.splice(0,u+1),u=0)}}function Og(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Pg(n.done,a,l,u),Pg(n.undone,a,l,u)}function ll(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Oe(n,fp(n,i)):u=T(i),u==null?null:(l(g,u)&&n.cm&&xi(n.cm,u,a),g)}function al(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}al.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,J1(u),Bt(u,"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 cl(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}cl.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],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),m=l.height;if(l.removeInner(n,g),this.height-=m-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof al))){var w=[];this.collapse(w),this.children=[new al(w)],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 u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var m=u.lines.length%25+25,w=m;w<u.lines.length;){var _=new al(u.lines.slice(w,w+=25));u.height-=_.height,this.children.splice(++l,0,_),_.parent=this}u.lines=u.lines.slice(0,m),this.maybeSpill()}break}n-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new cl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=Ee(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new cl(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 u=this.children[l],g=u.chunkSize();if(n<g){var m=Math.min(i,g-n);if(u.iterN(n,m,a))return!0;if((i-=m)==0)break;n=0}else n-=g}}};var ul=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};ul.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=T(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=Ys(this);Bn(a,Math.max(0,a.height-g)),n&&(Mn(n,function(){Rg(n,a,-g),xi(n,l,"widget")}),Bt(n,"lineWidgetCleared",n,this,l))}},ul.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Ys(this)-i;u&&(wi(this.doc,l)||Bn(l,l.height+u),a&&Mn(a,function(){a.curOp.forceUpdate=!0,Rg(a,l,u),Bt(a,"lineWidgetChanged",a,n,T(l))}))},cr(ul);function Rg(n,i,a){Yr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&mf(n,a)}function Jx(n,i,a,l){var u=new ul(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),ll(n,i,"widget",function(m){var w=m.widgets||(m.widgets=[]);if(u.insertAt==null?w.push(u):w.splice(Math.min(w.length,Math.max(0,u.insertAt)),0,u),u.line=m,g&&!wi(n,m)){var _=Yr(m)<n.scrollTop;Bn(m,m.height+Ys(u)),_&&mf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Bt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:T(i)),u}var Dg=0,Ti=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Dg};Ti.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&po(n),An(this,"clear")){var a=this.find();a&&Bt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var m=this.lines[g],w=Gs(m.markedSpans,this);n&&!this.collapsed?xi(n,T(m),"text"):n&&(w.to!=null&&(u=T(m)),w.from!=null&&(l=T(m))),m.markedSpans=W1(m.markedSpans,w),w.from==null&&this.collapsed&&!wi(this.doc,m)&&n&&Bn(m,Xo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var S=pr(this.lines[_]),$=Aa(S);$>n.display.maxLineLength&&(n.display.maxLine=S,n.display.maxLineLength=$,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&vn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Cg(n.doc)),n&&Bt(n,"markerCleared",n,this,l,u),i&&go(n),this.parent&&this.parent.clear()}},Ti.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],m=Gs(g.markedSpans,this);if(m.from!=null&&(a=Q(i?g:T(g),m.from),n==-1))return a;if(m.to!=null&&(l=Q(i?g:T(g),m.to),n==1))return l}return a&&{from:a,to:l}},Ti.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Mn(l,function(){var u=i.line,g=T(i.line),m=rf(l,g);if(m&&(Bp(m),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!wi(a.doc,u)&&a.height!=null){var w=a.height;a.height=null;var _=Ys(a)-w;_&&Bn(u,u.height+_)}Bt(l,"markerChanged",l,n)})},Ti.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ee(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Ti.prototype.detachLine=function(n){if(this.lines.splice(Ee(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},cr(Ti);function is(n,i,a,l,u){if(l&&l.shared)return Qx(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Wt(n.cm,is)(n,i,a,l,u);var g=new Ti(n,u),m=_e(i,a);if(l&&ae(l,g,!1),m>0||m==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=B("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Tp(n,i.line,i,a,g)||i.line!=a.line&&Tp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");B1()}g.addToHistory&&yg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var w=i.line,_=n.cm,S;if(n.iter(w,a.line+1,function(D){_&&g.collapsed&&!_.options.lineWrapping&&pr(D)==_.display.maxLine&&(S=!0),g.collapsed&&w!=i.line&&Bn(D,0),U1(D,new Ca(g,w==i.line?i.ch:null,w==a.line?a.ch:null),n.cm&&n.cm.curOp),++w}),g.collapsed&&n.iter(i.line,a.line+1,function(D){wi(n,D)&&Bn(D,0)}),g.clearOnEnter&&Fe(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(q1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Dg,g.atomic=!0),_){if(S&&(_.curOp.updateMaxLine=!0),g.collapsed)vn(_,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var $=i.line;$<=a.line;$++)xi(_,$,"text");g.atomic&&Cg(_.doc),Bt(_,"markerAdded",_,g)}return g}var fl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};fl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Bt(this,"clear")}},fl.prototype.find=function(n,i){return this.primary.find(n,i)},cr(fl);function Qx(n,i,a,l,u){l=ae(l),l.shared=!1;var g=[is(n,i,a,l,u)],m=g[0],w=l.widgetNode;return Ci(n,function(_){w&&(l.widgetNode=w.cloneNode(!0)),g.push(is(_,Ke(_,i),Ke(_,a),l,u));for(var S=0;S<_.linked.length;++S)if(_.linked[S].isParent)return;m=fe(g)}),new fl(g,m)}function zg(n){return n.findMarks(Q(n.first,0),n.clipPos(Q(n.lastLine())),function(i){return i.parent})}function e_(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),m=n.clipPos(u.to);if(_e(g,m)){var w=is(n,g,m,l.primary,l.primary.type);l.markers.push(w),w.parent=l}}}function t_(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Ci(u.primary.doc,function(_){return g.push(_)});for(var m=0;m<u.markers.length;m++){var w=u.markers[m];Ee(g,w.doc)==-1&&(w.parent=null,u.markers.splice(m--,1))}},a=0;a<n.length;a++)i(a)}var n_=0,mn=function(n,i,a,l,u){if(!(this instanceof mn))return new mn(n,i,a,l,u);a==null&&(a=0),cl.call(this,[new al([new jo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=Q(a,0);this.sel=Si(g),this.history=new qa(null),this.id=++n_,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Cf(this,{from:g,to:g,text:n}),nn(this,Si(g),F)};mn.prototype=ze(cl.prototype,{constructor:mn,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=Vs(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Ut(function(n){var i=Q(this.first,0),a=this.first+this.size-1;ns(this,{from:i,to:Q(a,Oe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&Qs(this.cm,0,0),nn(this,Si(i),F)}),replaceRange:function(n,i,a,l){i=Ke(this,i),a=a?Ke(this,a):i,rs(this,n,i,a,l)},getRange:function(n,i,a){var l=Kr(this,Ke(this,n),Ke(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(se(this,n))return Oe(this,n)},getLineNumber:function(n){return T(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Oe(this,n)),pr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ke(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:Ut(function(n,i,a){_g(this,Ke(this,typeof n=="number"?Q(n,i||0):n),null,a)}),setSelection:Ut(function(n,i,a){_g(this,Ke(this,n),Ke(this,i||n),a)}),extendSelection:Ut(function(n,i,a){Wa(this,Ke(this,n),i&&Ke(this,i),a)}),extendSelections:Ut(function(n,i){xg(this,dp(this,n),i)}),extendSelectionsBy:Ut(function(n,i){var a=xe(this.sel.ranges,n);xg(this,dp(this,a),i)}),setSelections:Ut(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new ht(Ke(this,n[u].anchor),Ke(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),nn(this,vr(this.cm,l,i),a)}}),addSelection:Ut(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new ht(Ke(this,n),Ke(this,i||n))),nn(this,vr(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=Kr(this,i[l].from(),i[l].to());a=a?a.concat(u):u}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 u=Kr(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:Ut(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var m=u.ranges[g];l[g]={from:m.from(),to:m.to(),text:this.splitLines(n[g]),origin:a}}for(var w=i&&i!="end"&&Wx(this,l,i),_=l.length-1;_>=0;_--)ns(this,l[_]);w?Sg(this,w):this.cm&&Jo(this.cm)}),undo:Ut(function(){ja(this,"undo")}),redo:Ut(function(){ja(this,"redo")}),undoSelection:Ut(function(){ja(this,"undo",!0)}),redoSelection:Ut(function(){ja(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 u=0;u<n.undone.length;u++)n.undone[u].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new qa(this.history),Ci(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:es(this.history.done),undone:es(this.history.undone)}},setHistory:function(n){var i=this.history=new qa(this.history);i.done=es(n.done.slice(0),null,!0),i.undone=es(n.undone.slice(0),null,!0)},setGutterMarker:Ut(function(n,i,a){return ll(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&mt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Ut(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&ll(i,a,"gutter",function(){return a.gutterMarkers[n]=null,mt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!se(this,n)||(i=n,n=Oe(this,n),!n))return null}else if(i=T(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:Ut(function(n,i,a){return ll(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(te(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Ut(function(n,i,a){return ll(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var m=g.match(te(a));if(!m)return!1;var w=m.index+m[0].length;l[u]=g.slice(0,m.index)+(!m.index||w==g.length?"":" ")+g.slice(w)||null}else return!1;return!0})}),addLineWidget:Ut(function(n,i,a){return Jx(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return is(this,Ke(this,n),Ke(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=Ke(this,n),is(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ke(this,n);var i=[],a=Oe(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Ke(this,n),i=Ke(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var m=g.markedSpans;if(m)for(var w=0;w<m.length;w++){var _=m[w];!(_.to!=null&&u==n.line&&n.ch>=_.to||_.from==null&&u!=n.line||_.from!=null&&u==i.line&&_.from>=i.ch)&&(!a||a(_.marker))&&l.push(_.marker.parent||_.marker)}++u}),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(u){var g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ke(this,Q(a,i))},indexFromPos:function(n){n=Ke(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 mn(Vs(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 mn(Vs(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}],e_(l,zg(this)),l},unlinkDoc:function(n){if(n instanceof kt&&(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),t_(zg(this));break}}if(n.history==this.history){var l=[n.id];Ci(n,function(u){return l.push(u.id)},!0),n.history=new qa(null),n.history.done=es(this.history.done,l),n.history.undone=es(this.history.undone,l)}},iterLinkedDocs:function(n){Ci(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):Jn(n)},lineSeparator:function(){return this.lineSep||`
35
- `},setDirection:Ut(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Ux(this.cm))})}),mn.prototype.eachLine=mn.prototype.iter;var Ig=0;function r_(n){var i=this;if(Fg(i),!(Lt(i,n)||Zr(i.display,n))){tn(n),h&&(Ig=+new Date);var a=co(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),m=0,w=function(){++m==u&&Wt(i,function(){a=Ke(i.doc,a);var V={from:a,to:a,text:i.doc.splitLines(g.filter(function(ne){return ne!=null}).join(i.doc.lineSeparator())),origin:"paste"};ns(i.doc,V),Sg(i.doc,Si(Ke(i.doc,a),Ke(i.doc,ki(V))))})()},_=function(V,ne){if(i.options.allowDropFileTypes&&Ee(i.options.allowDropFileTypes,V.type)==-1){w();return}var ce=new FileReader;ce.onerror=function(){return w()},ce.onload=function(){var ve=ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ve)){w();return}g[ne]=ve,w()},ce.readAsText(V)},S=0;S<l.length;S++)_(l[S],S);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.dataTransfer.getData("Text");if($){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),Ua(i.doc,Si(a,a)),D)for(var G=0;G<D.length;++G)rs(i.doc,"",D[G].anchor,D[G].head,"drag");i.replaceSelection($,"around","paste"),i.display.input.focus()}}catch{}}}}function i_(n,i){if(h&&(!n.state.draggingText||+new Date-Ig<100)){vi(i);return}if(!(Lt(n,i)||Zr(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!C)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),E&&a.parentNode.removeChild(a)}}function o_(n,i){var a=co(n,i);if(a){var l=document.createDocumentFragment();df(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)),I(n.display.dragCursor,l)}}function Fg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Hg(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var g=0;g<a.length;g++)n(a[g])})}}var qg=!1;function s_(){qg||(l_(),qg=!0)}function l_(){var n;Fe(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Hg(a_)},100))}),Fe(window,"blur",function(){return Hg(Zo)})}function a_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Ei={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"},dl=0;dl<10;dl++)Ei[dl+48]=Ei[dl+96]=String(dl);for(var Ga=65;Ga<=90;Ga++)Ei[Ga]=String.fromCharCode(Ga);for(var hl=1;hl<=12;hl++)Ei[hl+111]=Ei[hl+63235]="F"+hl;var Qr={};Qr.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"},Qr.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"},Qr.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"},Qr.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"]},Qr.default=q?Qr.macDefault:Qr.pcDefault;function c_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,m=0;m<i.length-1;m++){var w=i[m];if(/^(cmd|meta|m)$/i.test(w))g=!0;else if(/^a(lt)?$/i.test(w))a=!0;else if(/^(c|ctrl|control)$/i.test(w))l=!0;else if(/^s(hift)?$/i.test(w))u=!0;else throw new Error("Unrecognized modifier name: "+w)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function u_(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 u=xe(a.split(" "),c_),g=0;g<u.length;g++){var m=void 0,w=void 0;g==u.length-1?(w=u.join(" "),m=l):(w=u.slice(0,g+1).join(" "),m="...");var _=i[w];if(!_)i[w]=m;else if(_!=m)throw new Error("Inconsistent bindings for "+w)}delete n[a]}for(var S in i)n[S]=i[S];return n}function os(n,i,a,l){i=Ka(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return os(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var m=os(n,i.fallthrough[g],a,l);if(m)return m}}}function Bg(n){var i=typeof n=="string"?n:Ei[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Wg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(ee?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(ee?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Ug(n,i){if(E&&n.keyCode==34&&n.char)return!1;var a=Ei[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Wg(a,n,i))}function Ka(n){return typeof n=="string"?Qr[n]:n}function ss(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&_e(g.from,fe(l).to)<=0;){var m=l.pop();if(_e(m.from,g.from)<0){g.from=m.from;break}}l.push(g)}Mn(n,function(){for(var w=l.length-1;w>=0;w--)rs(n.doc,"",l[w].from,l[w].to,"+delete");Jo(n)})}function Af(n,i,a){var l=Ft(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Mf(n,i,a){var l=Af(n,i.ch,a);return l==null?null:new Q(i.line,l,a<0?"after":"before")}function Nf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=Ve(a,i.doc.direction);if(g){var m=u<0?fe(g):g[0],w=u<0==(m.level==1),_=w?"after":"before",S;if(m.level>0||i.doc.direction=="rtl"){var $=Ko(i,a);S=u<0?a.text.length-1:0;var D=Mr(i,$,S).top;S=Jt(function(G){return Mr(i,$,G).top==D},u<0==(m.level==1)?m.from:m.to-1,S),_=="before"&&(S=Af(a,S,1))}else S=u<0?m.to:m.from;return new Q(l,S,_)}}return new Q(l,u<0?a.text.length:0,u<0?"before":"after")}function f_(n,i,a,l){var u=Ve(i,n.doc.direction);if(!u)return Mf(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 g=ar(u,a.ch,a.sticky),m=u[g];if(n.doc.direction=="ltr"&&m.level%2==0&&(l>0?m.to>a.ch:m.from<a.ch))return Mf(i,a,l);var w=function(be,ke){return Af(i,be instanceof Q?be.ch:be,ke)},_,S=function(be){return n.options.lineWrapping?(_=_||Ko(n,i),Xp(n,i,_,be)):{begin:0,end:i.text.length}},$=S(a.sticky=="before"?w(a,-1):a.ch);if(n.doc.direction=="rtl"||m.level==1){var D=m.level==1==l<0,G=w(a,D?1:-1);if(G!=null&&(D?G<=m.to&&G<=$.end:G>=m.from&&G>=$.begin)){var V=D?"before":"after";return new Q(a.line,G,V)}}var ne=function(be,ke,we){for(var Ae=function(xt,Vt){return Vt?new Q(a.line,w(xt,1),"before"):new Q(a.line,xt,"after")};be>=0&&be<u.length;be+=ke){var He=u[be],De=ke>0==(He.level!=1),Qe=De?we.begin:w(we.end,-1);if(He.from<=Qe&&Qe<He.to||(Qe=De?He.from:w(He.to,-1),we.begin<=Qe&&Qe<we.end))return Ae(Qe,De)}},ce=ne(g+l,l,$);if(ce)return ce;var ve=l>0?$.end:w($.begin,-1);return ve!=null&&!(l>0&&ve==i.text.length)&&(ce=ne(l>0?0:u.length-1,l,S(ve)),ce)?ce:null}var pl={selectAll:Lg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),F)},killLine:function(n){return ss(n,function(i){if(i.empty()){var a=Oe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:Q(i.head.line+1,0)}:{from:i.head,to:Q(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ss(n,function(i){return{from:Q(i.from().line,0),to:Ke(n.doc,Q(i.to().line+1,0))}})},delLineLeft:function(n){return ss(n,function(i){return{from:Q(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ss(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 ss(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(Q(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(Q(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Vg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return jg(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return d_(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")},ue)},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")},ue)},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/)?jg(n,i.head):l},ue)},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,u=0;u<a.length;u++){var g=a[u].from(),m=de(n.getLine(g.line),g.ch,l);i.push(Se(l-m%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Mn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Oe(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new Q(u.line,u.ch-1)),u.ch>0)u=new Q(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),Q(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var m=Oe(n.doc,u.line-1).text;m&&(u=new Q(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+m.charAt(m.length-1),Q(u.line-1,m.length-1),u,"+transpose"))}}a.push(new ht(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Mn(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);Jo(n)})},openLine:function(n){return n.replaceSelection(`
36
- `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Vg(n,i){var a=Oe(n.doc,i),l=pr(a);return l!=a&&(i=T(l)),Nf(!0,n,l,i,1)}function d_(n,i){var a=Oe(n.doc,i),l=X1(a);return l!=a&&(i=T(l)),Nf(!0,n,a,i,-1)}function jg(n,i){var a=Vg(n,i.line),l=Oe(n.doc,a.line),u=Ve(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),m=i.line==a.line&&i.ch<=g&&i.ch;return Q(a.line,m?0:g,a.sticky)}return a}function Xa(n,i,a){if(typeof i=="string"&&(i=pl[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=O}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function h_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=os(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&os(i,n.options.extraKeys,a,n)||os(i,n.options.keyMap,a,n)}var p_=new $e;function gl(n,i,a,l){var u=n.state.keySeq;if(u){if(Bg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:p_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Gg(n,u+" "+i,a,l))return!0}return Gg(n,i,a,l)}function Gg(n,i,a,l){var u=h_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Bt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(tn(a),hf(n)),!!u}function Kg(n,i){var a=Ug(i,!0);return a?i.shiftKey&&!n.state.keySeq?gl(n,"Shift-"+a,i,function(l){return Xa(n,l,!0)})||gl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Xa(n,l)}):gl(n,a,i,function(l){return Xa(n,l)}):!1}function g_(n,i,a){return gl(n,"'"+a+"'",i,function(l){return Xa(n,l,!0)})}var $f=null;function Xg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ye(rt(i)),!Lt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Kg(i,n);E&&($f=l?a:null,!l&&a==88&&!Sa&&(q?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!q&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&v_(i)}}function v_(n){var i=n.display.lineDiv;Ne(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(Z(i,"CodeMirror-crosshair"),en(document,"keyup",a),en(document,"mouseover",a))}Fe(document,"keyup",a),Fe(document,"mouseover",a)}function Yg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Lt(this,n)}function Zg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(Zr(i.display,n)||Lt(i,n)||n.ctrlKey&&!n.altKey||q&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(E&&a==$f){$f=null,tn(n);return}if(!(E&&(!n.which||n.which<10)&&Kg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(g_(i,n,u)||i.display.input.onKeyPress(n))}}}var m_=400,Pf=function(n,i,a){this.time=n,this.pos=i,this.button=a};Pf.prototype.compare=function(n,i,a){return this.time+m_>n&&_e(i,this.pos)==0&&a==this.button};var vl,ml;function y_(n,i){var a=+new Date;return ml&&ml.compare(a,n,i)?(vl=ml=null,"triple"):vl&&vl.compare(a,n,i)?(ml=new Pf(a,n,i),vl=null,"double"):(vl=new Pf(a,n,i),ml=null,"single")}function Jg(n){var i=this,a=i.display;if(!(Lt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,Zr(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Of(i,n)){var l=co(i,n),u=ur(n),g=l?y_(l,u):"single";Le(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&b_(i,u,l,g,n))&&(u==1?l?x_(i,l,g,n):Bs(n)==a.scroller&&tn(n):u==2?(l&&Wa(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(j?i.display.input.onContextMenu(n):pf(i)))}}}function b_(n,i,a,l,u){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,gl(n,Wg(g,u),u,function(m){if(typeof m=="string"&&(m=pl[m]),!m)return!1;var w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=m(n,a)!=O}finally{n.state.suppressEdits=!1}return w})}function w_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=W?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=q?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(q?a.altKey:a.ctrlKey)),u}function x_(n,i,a,l){h?setTimeout(K(Qp,n),0):n.curOp.focus=ye(rt(n));var u=w_(n,a,l),g=n.doc.sel,m;n.options.dragDrop&&Vu&&!n.isReadOnly()&&a=="single"&&(m=g.contains(i))>-1&&(_e((m=g.ranges[m]).from(),i)<0||i.xRel>0)&&(_e(m.to(),i)>0||i.xRel<0)?__(n,l,i,u):S_(n,l,i,u)}function __(n,i,a,l){var u=n.display,g=!1,m=Wt(n,function(S){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:pf(n)),en(u.wrapper.ownerDocument,"mouseup",m),en(u.wrapper.ownerDocument,"mousemove",w),en(u.scroller,"dragstart",_),en(u.scroller,"drop",m),g||(tn(S),l.addNew||Wa(n.doc,a,null,null,l.extend),v&&!C||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(S){g=g||Math.abs(i.clientX-S.clientX)+Math.abs(i.clientY-S.clientY)>=10},_=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=m,m.copy=!l.moveOnDrag,Fe(u.wrapper.ownerDocument,"mouseup",m),Fe(u.wrapper.ownerDocument,"mousemove",w),Fe(u.scroller,"dragstart",_),Fe(u.scroller,"drop",m),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Qg(n,i,a){if(a=="char")return new ht(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new ht(Q(i.line,0),Ke(n.doc,Q(i.line+1,0)));var l=a(n,i);return new ht(l.from,l.to)}function S_(n,i,a,l){h&&pf(n);var u=n.display,g=n.doc;tn(i);var m,w,_=g.sel,S=_.ranges;if(l.addNew&&!l.extend?(w=g.sel.contains(a),w>-1?m=S[w]:m=new ht(a,a)):(m=g.sel.primary(),w=g.sel.primIndex),l.unit=="rectangle")l.addNew||(m=new ht(a,a)),a=co(n,i,!0,!0),w=-1;else{var $=Qg(n,a,l.unit);l.extend?m=Ef(m,$.anchor,$.head,l.extend):m=$}l.addNew?w==-1?(w=S.length,nn(g,vr(n,S.concat([m]),w),{scroll:!1,origin:"*mouse"})):S.length>1&&S[w].empty()&&l.unit=="char"&&!l.extend?(nn(g,vr(n,S.slice(0,w).concat(S.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),_=g.sel):Lf(g,w,m,J):(w=0,nn(g,new Wn([m],0),J),_=g.sel);var D=a;function G(we){if(_e(D,we)!=0)if(D=we,l.unit=="rectangle"){for(var Ae=[],He=n.options.tabSize,De=de(Oe(g,a.line).text,a.ch,He),Qe=de(Oe(g,we.line).text,we.ch,He),xt=Math.min(De,Qe),Vt=Math.max(De,Qe),Tt=Math.min(a.line,we.line),Nn=Math.min(n.lastLine(),Math.max(a.line,we.line));Tt<=Nn;Tt++){var yn=Oe(g,Tt).text,Ot=le(yn,xt,He);xt==Vt?Ae.push(new ht(Q(Tt,Ot),Q(Tt,Ot))):yn.length>Ot&&Ae.push(new ht(Q(Tt,Ot),Q(Tt,le(yn,Vt,He))))}Ae.length||Ae.push(new ht(a,a)),nn(g,vr(n,_.ranges.slice(0,w).concat(Ae),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(we)}else{var bn=m,Yt=Qg(n,we,l.unit),Ht=bn.anchor,Rt;_e(Yt.anchor,Ht)>0?(Rt=Yt.head,Ht=Vo(bn.from(),Yt.anchor)):(Rt=Yt.anchor,Ht=gn(bn.to(),Yt.head));var Mt=_.ranges.slice(0);Mt[w]=k_(n,new ht(Ke(g,Ht),Rt)),nn(g,vr(n,Mt,w),J)}}var V=u.wrapper.getBoundingClientRect(),ne=0;function ce(we){var Ae=++ne,He=co(n,we,!0,l.unit=="rectangle");if(He)if(_e(He,D)!=0){n.curOp.focus=ye(rt(n)),G(He);var De=za(u,g);(He.line>=De.to||He.line<De.from)&&setTimeout(Wt(n,function(){ne==Ae&&ce(we)}),150)}else{var Qe=we.clientY<V.top?-20:we.clientY>V.bottom?20:0;Qe&&setTimeout(Wt(n,function(){ne==Ae&&(u.scroller.scrollTop+=Qe,ce(we))}),50)}}function ve(we){n.state.selectingText=!1,ne=1/0,we&&(tn(we),u.input.focus()),en(u.wrapper.ownerDocument,"mousemove",be),en(u.wrapper.ownerDocument,"mouseup",ke),g.history.lastSelOrigin=null}var be=Wt(n,function(we){we.buttons===0||!ur(we)?ve(we):ce(we)}),ke=Wt(n,ve);n.state.selectingText=ke,Fe(u.wrapper.ownerDocument,"mousemove",be),Fe(u.wrapper.ownerDocument,"mouseup",ke)}function k_(n,i){var a=i.anchor,l=i.head,u=Oe(n.doc,a.line);if(_e(a,l)==0&&a.sticky==l.sticky)return i;var g=Ve(u);if(!g)return i;var m=ar(g,a.ch,a.sticky),w=g[m];if(w.from!=a.ch&&w.to!=a.ch)return i;var _=m+(w.from==a.ch==(w.level!=1)?0:1);if(_==0||_==g.length)return i;var S;if(l.line!=a.line)S=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var $=ar(g,l.ch,l.sticky),D=$-m||(l.ch-a.ch)*(w.level==1?-1:1);$==_-1||$==_?S=D<0:S=D>0}var G=g[_+(S?-1:0)],V=S==(G.level==1),ne=V?G.from:G.to,ce=V?"after":"before";return a.ch==ne&&a.sticky==ce?i:new ht(new Q(a.line,ne,ce),l)}function ev(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&tn(i);var m=n.display,w=m.lineDiv.getBoundingClientRect();if(g>w.bottom||!An(n,a))return pn(i);g-=w.top-m.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var S=m.gutters.childNodes[_];if(S&&S.getBoundingClientRect().right>=u){var $=R(n.doc,g),D=n.display.gutterSpecs[_];return Et(n,a,n,$,D.className,i),pn(i)}}}function Of(n,i){return ev(n,i,"gutterClick",!0)}function tv(n,i){Zr(n.display,i)||C_(n,i)||Lt(n,i,"contextmenu")||j||n.display.input.onContextMenu(i)}function C_(n,i){return An(n,"gutterContextMenu")?ev(n,i,"gutterContextMenu",!1):!1}function nv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Zs(n)}var ls={toString:function(){return"CodeMirror.Init"}},rv={},Ya={};function T_(n){var i=n.optionHandlers;function a(l,u,g,m){n.defaults[l]=u,g&&(i[l]=m?function(w,_,S){S!=ls&&g(w,_,S)}:g)}n.defineOption=a,n.Init=ls,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,kf(l)},!0),a("indentUnit",2,kf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){ol(l),Zs(l),vn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],m=l.doc.first;l.doc.iter(function(_){for(var S=0;;){var $=_.text.indexOf(u,S);if($==-1)break;S=$+u.length,g.push(Q(m,$))}m++});for(var w=g.length-1;w>=0;w--)rs(l.doc,u,g[w],Q(g[w].line,g[w].ch+u.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,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=ls&&l.refresh()}),a("specialCharPlaceholder",tx,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",M?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!X),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){nv(l),il(l)},!0),a("keyMap","default",function(l,u,g){var m=Ka(u),w=g!=ls&&Ka(g);w&&w.detach&&w.detach(l,m),m.attach&&m.attach(l,w||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,L_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=_f(u,l.options.lineNumbers),il(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?uf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return Qo(l)},!0),a("scrollbarStyle","native",function(l){og(l),Qo(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=_f(l.options.gutters,u),il(l)},!0),a("firstLineNumber",1,il,!0),a("lineNumberFormatter",function(l){return l},il,!0),a("showCursorWhenSelecting",!1,Js,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Zo(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,E_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Js,!0),a("singleCursorHeightPerLine",!0,Js,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,ol,!0),a("addModeClass",!1,ol,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,ol,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function E_(n,i,a){var l=a&&a!=ls;if(!i!=!l){var u=n.display.dragFunctions,g=i?Fe:en;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function L_(n){n.options.lineWrapping?(Ne(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(Z(n.display.wrapper,"CodeMirror-wrap"),Qu(n)),ff(n),vn(n),Zs(n),setTimeout(function(){return Qo(n)},100)}function kt(n,i){var a=this;if(!(this instanceof kt))return new kt(n,i);this.options=i=i?ae(i):{},ae(rv,i,!1);var l=i.value;typeof l=="string"?l=new mn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new kt.inputStyles[i.inputStyle](this),g=this.display=new qx(n,l,u,i);g.wrapper.CodeMirror=this,nv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),og(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 $e,keySeq:null,specialChars:null},i.autofocus&&!M&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),A_(this),s_(),po(this),this.curOp.forceUpdate=!0,gg(this,l),i.autofocus&&!M||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&gf(a)},20):Zo(this);for(var m in Ya)Ya.hasOwnProperty(m)&&Ya[m](this,i[m],ls);ag(this),i.finishInit&&i.finishInit(this);for(var w=0;w<Rf.length;++w)Rf[w](this);go(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}kt.defaults=rv,kt.optionHandlers=Ya;function A_(n){var i=n.display;Fe(i.scroller,"mousedown",Wt(n,Jg)),h&&p<11?Fe(i.scroller,"dblclick",Wt(n,function(_){if(!Lt(n,_)){var S=co(n,_);if(!(!S||Of(n,_)||Zr(n.display,_))){tn(_);var $=n.findWordAt(S);Wa(n.doc,$.anchor,$.head)}}})):Fe(i.scroller,"dblclick",function(_){return Lt(n,_)||tn(_)}),Fe(i.scroller,"contextmenu",function(_){return tv(n,_)}),Fe(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||tv(n,_)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(_){if(_.touches.length!=1)return!1;var S=_.touches[0];return S.radiusX<=1&&S.radiusY<=1}function m(_,S){if(S.left==null)return!0;var $=S.left-_.left,D=S.top-_.top;return $*$+D*D>20*20}Fe(i.scroller,"touchstart",function(_){if(!Lt(n,_)&&!g(_)&&!Of(n,_)){i.input.ensurePolled(),clearTimeout(a);var S=+new Date;i.activeTouch={start:S,moved:!1,prev:S-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),Fe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Fe(i.scroller,"touchend",function(_){var S=i.activeTouch;if(S&&!Zr(i,_)&&S.left!=null&&!S.moved&&new Date-S.start<300){var $=n.coordsChar(i.activeTouch,"page"),D;!S.prev||m(S,S.prev)?D=new ht($,$):!S.prev.prev||m(S,S.prev.prev)?D=n.findWordAt($):D=new ht(Q($.line,0),Ke(n.doc,Q($.line+1,0))),n.setSelection(D.anchor,D.head),n.focus(),tn(_)}u()}),Fe(i.scroller,"touchcancel",u),Fe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(el(n,i.scroller.scrollTop),fo(n,i.scroller.scrollLeft,!0),Et(n,"scroll",n))}),Fe(i.scroller,"mousewheel",function(_){return fg(n,_)}),Fe(i.scroller,"DOMMouseScroll",function(_){return fg(n,_)}),Fe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Lt(n,_)||vi(_)},over:function(_){Lt(n,_)||(o_(n,_),vi(_))},start:function(_){return i_(n,_)},drop:Wt(n,r_),leave:function(_){Lt(n,_)||Fg(n)}};var w=i.input.getField();Fe(w,"keyup",function(_){return Yg.call(n,_)}),Fe(w,"keydown",Wt(n,Xg)),Fe(w,"keypress",Wt(n,Zg)),Fe(w,"focus",function(_){return gf(n,_)}),Fe(w,"blur",function(_){return Zo(n,_)})}var Rf=[];kt.defineInitHook=function(n){return Rf.push(n)};function yl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=js(n,i).state:a="prev");var m=n.options.tabSize,w=Oe(u,i),_=de(w.text,null,m);w.stateAfter&&(w.stateAfter=null);var S=w.text.match(/^\s*/)[0],$;if(!l&&!/\S/.test(w.text))$=0,a="not";else if(a=="smart"&&($=u.mode.indent(g,w.text.slice(S.length),w.text),$==O||$>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?$=de(Oe(u,i-1).text,null,m):$=0:a=="add"?$=_+n.options.indentUnit:a=="subtract"?$=_-n.options.indentUnit:typeof a=="number"&&($=_+a),$=Math.max(0,$);var D="",G=0;if(n.options.indentWithTabs)for(var V=Math.floor($/m);V;--V)G+=m,D+=" ";if(G<$&&(D+=Se($-G)),D!=S)return rs(u,D,Q(i,0),Q(i,S.length),"+input"),w.stateAfter=null,!0;for(var ne=0;ne<u.sel.ranges.length;ne++){var ce=u.sel.ranges[ne];if(ce.head.line==i&&ce.head.ch<S.length){var ve=Q(i,S.length);Lf(u,ne,new ht(ve,ve));break}}}var mr=null;function Za(n){mr=n}function Df(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var m=+new Date-200,w=u=="paste"||n.state.pasteIncoming>m,_=Jn(i),S=null;if(w&&l.ranges.length>1)if(mr&&mr.text.join(`
34
+ left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(m),m.scrollIntoView(u),n.display.lineSpace.removeChild(m)}}}function Tx(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?Q(i.line,i.ch+1,"before"):i,i=i.ch?Q(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var m=!1,w=gr(n,i),_=!a||a==i?w:gr(n,a);u={left:Math.min(w.left,_.left),top:Math.min(w.top,_.top)-l,right:Math.max(w.left,_.left),bottom:Math.max(w.bottom,_.bottom)+l};var S=vf(n,u),$=n.doc.scrollTop,D=n.doc.scrollLeft;if(S.scrollTop!=null&&(el(n,S.scrollTop),Math.abs(n.doc.scrollTop-$)>1&&(m=!0)),S.scrollLeft!=null&&(fo(n,S.scrollLeft),Math.abs(n.doc.scrollLeft-D)>1&&(m=!0)),!m)break}return u}function Ex(n,i){var a=vf(n,i);a.scrollTop!=null&&el(n,a.scrollTop),a.scrollLeft!=null&&fo(n,a.scrollLeft)}function vf(n,i){var a=n.display,l=Xo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=nf(n),m={};i.bottom-i.top>g&&(i.bottom=i.top+g);var w=n.doc.height+tf(a),_=i.top<l,S=i.bottom>w-l;if(i.top<u)m.scrollTop=_?0:i.top;else if(i.bottom>u+g){var $=Math.min(i.top,(S?w:i.bottom)-g);$!=u&&(m.scrollTop=$)}var D=n.options.fixedGutter?0:a.gutters.offsetWidth,G=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-D,V=lo(n)-a.gutters.offsetWidth,ne=i.right-i.left>V;return ne&&(i.right=i.left+V),i.left<10?m.scrollLeft=0:i.left<G?m.scrollLeft=Math.max(0,i.left+D-(ne?0:10)):i.right>V+G-3&&(m.scrollLeft=i.right+(ne?0:10)-V),m}function mf(n,i){i!=null&&(Ia(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Jo(n){Ia(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Qs(n,i,a){(i!=null||a!=null)&&Ia(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Lx(n,i){Ia(n),n.curOp.scrollToPos=i}function Ia(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Gp(n,i.from),l=Gp(n,i.to);tg(n,a,l,i.margin)}}function tg(n,i,a,l){var u=vf(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});Qs(n,u.scrollLeft,u.scrollTop)}function el(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||bf(n,{top:i}),ng(n,i,!0),s&&bf(n),rl(n,100))}function ng(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 fo(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,lg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function tl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+tf(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+Ar(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var ho=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Fe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Fe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ho.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 u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"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 g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"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}},ho.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ho.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ho.prototype.zeroWidthHack=function(){var n=q&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new $e,this.disableVert=new $e},ho.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},ho.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var nl=function(){};nl.prototype.update=function(){return{bottom:0,right:0}},nl.prototype.setScrollLeft=function(){},nl.prototype.setScrollTop=function(){},nl.prototype.clear=function(){};function Qo(n,i){i||(i=tl(n));var a=n.display.barWidth,l=n.display.barHeight;rg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&Da(n),rg(n,tl(n)),a=n.display.barWidth,l=n.display.barHeight}function rg(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 ig={native:ho,null:nl};function og(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&Z(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new ig[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Fe(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"?fo(n,i):el(n,i)},n),n.display.scrollbars.addClass&&Ne(n.display.wrapper,n.display.scrollbars.addClass)}var Ax=0;function po(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:++Ax,markArrays:null},sx(n.curOp)}function go(n){var i=n.curOp;i&&ax(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Mx(a)})}function Mx(n){for(var i=n.ops,a=0;a<i.length;a++)Nx(i[a]);for(var l=0;l<i.length;l++)$x(i[l]);for(var u=0;u<i.length;u++)Px(i[u]);for(var g=0;g<i.length;g++)Ox(i[g]);for(var m=0;m<i.length;m++)Rx(i[m])}function Nx(n){var i=n.cm,a=i.display;zx(i),n.updateMaxLine&&Qu(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 Fa(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function $x(n){n.updatedDisplay=n.mustUpdate&&yf(n.cm,n.update)}function Px(n){var i=n.cm,a=i.display;n.updatedDisplay&&Da(i),n.barMeasure=tl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Fp(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+Ar(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-lo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Ox(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&fo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ye(rt(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&Qo(i,n.barMeasure),n.updatedDisplay&&xf(i,n.barMeasure),n.selectionChanged&&hf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Qp(n.cm)}function Rx(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&sg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&ng(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&fo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Tx(i,Ke(l,n.scrollToPos.from),Ke(l,n.scrollToPos.to),n.scrollToPos.margin);Cx(i,u)}var g=n.maybeHiddenMarkers,m=n.maybeUnhiddenMarkers;if(g)for(var w=0;w<g.length;++w)g[w].lines.length||Et(g[w],"hide");if(m)for(var _=0;_<m.length;++_)m[_].lines.length&&Et(m[_],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Et(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Mn(n,i){if(n.curOp)return i();po(n);try{return i()}finally{go(n)}}function Wt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);po(n);try{return i.apply(n,arguments)}finally{go(n)}}}function an(n){return function(){if(this.curOp)return n.apply(this,arguments);po(this);try{return n.apply(this,arguments)}finally{go(this)}}}function Ut(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);po(i);try{return n.apply(this,arguments)}finally{go(i)}}}function rl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,K(Dx,n))}function Dx(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=js(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var m=g.styles,w=g.text.length>n.options.maxHighlightLength?Er(i.mode,l.state):null,_=hp(n,g,l,!0);w&&(l.state=w),g.styles=_.styles;var S=g.styleClasses,$=_.classes;$?g.styleClasses=$:S&&(g.styleClasses=null);for(var D=!m||m.length!=g.styles.length||S!=$&&(!S||!$||S.bgClass!=$.bgClass||S.textClass!=$.textClass),G=0;!D&&G<m.length;++G)D=m[G]!=g.styles[G];D&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&Gu(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return rl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Mn(n,function(){for(var g=0;g<u.length;g++)xi(n,u[g],"text")})}}var Fa=function(n,i,a){var l=n.display;this.viewport=i,this.visible=za(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=lo(n),this.force=a,this.dims=cf(n),this.events=[]};Fa.prototype.signal=function(n,i){An(n,i)&&this.events.push(arguments)},Fa.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Et.apply(null,this.events[n])};function zx(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Ar(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Ar(n)+"px",i.scrollbarsClipped=!0)}function Ix(n){if(n.hasFocus())return null;var i=ye(rt(n));if(!i||!re(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Le(n).getSelection();l.anchorNode&&l.extend&&re(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Fx(n){if(!(!n||!n.activeElt||n.activeElt==ye(Je(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&re(document.body,n.anchorNode)&&re(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 yf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return _i(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&&Zp(n)==0)return!1;ag(n)&&(_i(n),i.dims=cf(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),m=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>m&&a.viewTo-m<20&&(m=Math.min(u,a.viewTo)),Xr&&(g=Zu(n.doc,g),m=Ep(n.doc,m));var w=g!=a.viewFrom||m!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;Sx(n,g,m),a.viewOffset=Yr(Oe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=Zp(n);if(!w&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var S=Ix(n);return _>4&&(a.lineDiv.style.display="none"),Hx(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Fx(S),H(a.cursorDiv),H(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,w&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,rl(n,400)),a.updateLineNumbers=null,!0}function sg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==lo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+tf(n.display)-nf(n),a.top)}),i.visible=za(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=za(n.display,n.doc,a));if(!yf(n,i))break;Da(n);var u=tl(n);Js(n),Qo(n,u),xf(n,u),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 bf(n,i){var a=new Fa(n,i);if(yf(n,a)){Da(n),sg(n,a);var l=tl(n);Js(n),Qo(n,l),xf(n,l),a.finish()}}function Hx(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,m=g.firstChild;function w(ne){var ce=ne.nextSibling;return v&&q&&n.display.currentWheelTarget==ne?ne.style.display="none":ne.parentNode.removeChild(ne),ce}for(var _=l.view,S=l.viewFrom,$=0;$<_.length;$++){var D=_[$];if(!D.hidden)if(!D.node||D.node.parentNode!=g){var G=hx(n,D,S,a);g.insertBefore(G,m)}else{for(;m!=D.node;)m=w(m);var V=u&&i!=null&&i<=S&&D.lineNumber;D.changes&&(Ee(D.changes,"gutter")>-1&&(V=!1),$p(n,D,S,a)),V&&(H(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(ge(n.options,S)))),m=D.node.nextSibling}S+=D.size}for(;m;)m=w(m)}function wf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Bt(n,"gutterChanged",n)}function xf(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+Ar(n)+"px"}function lg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=uf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",m=0;m<a.length;m++)if(!a[m].hidden){n.options.fixedGutter&&(a[m].gutter&&(a[m].gutter.style.left=g),a[m].gutterBackground&&(a[m].gutterBackground.style.left=g));var w=a[m].alignable;if(w)for(var _=0;_<w.length;_++)w[_].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function ag(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=ge(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(k("div",[k("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=u.firstChild.offsetWidth,m=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-m)+1,l.lineNumWidth=l.lineNumInnerWidth+m,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",wf(n.display),!0}return!1}function _f(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],m=null;if(typeof g!="string"&&(m=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:m})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function cg(n){var i=n.gutters,a=n.gutterSpecs;H(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,m=u.style,w=i.appendChild(k("div",null,"CodeMirror-gutter "+g));m&&(w.style.cssText=m),g=="CodeMirror-linenumbers"&&(n.lineGutter=w,w.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",wf(n)}function il(n){cg(n.display),vn(n),lg(n)}function qx(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=B("div",null,"CodeMirror-code"),u.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=k("div",null,"CodeMirror-cursors"),u.measure=k("div",null,"CodeMirror-measure"),u.lineMeasure=k("div",null,"CodeMirror-measure"),u.lineSpace=B("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=B("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[g],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+Ze+"px; width: 1px;"),u.gutters=k("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=k("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=k("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&x>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&N)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=_f(l.gutters,l.lineNumbers),cg(u),a.init(u)}var Ha=0,Jr=null;h?Jr=-.53:s?Jr=15:b?Jr=-.7:T&&(Jr=-1/3);function ug(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 Bx(n){var i=ug(n);return i.x*=Jr,i.y*=Jr,i}function fg(n,i){b&&x==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=ug(i),l=a.x,u=a.y,g=Jr;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var m=n.display,w=m.scroller,_=w.scrollWidth>w.clientWidth,S=w.scrollHeight>w.clientHeight;if(l&&_||u&&S){if(u&&q&&v){e:for(var $=i.target,D=m.view;$!=w;$=$.parentNode)for(var G=0;G<D.length;G++)if(D[G].node==$){n.display.currentWheelTarget=$;break e}}if(l&&!s&&!A&&g!=null){u&&S&&el(n,Math.max(0,w.scrollTop+u*g)),fo(n,Math.max(0,w.scrollLeft+l*g)),(!u||u&&S)&&tn(i),m.wheelStartX=null;return}if(u&&g!=null){var V=u*g,ne=n.doc.scrollTop,ce=ne+m.wrapper.clientHeight;V<0?ne=Math.max(0,ne+V-50):ce=Math.min(n.doc.height,ce+V+50),bf(n,{top:ne,bottom:ce})}Ha<20&&i.deltaMode!==0&&(m.wheelStartX==null?(m.wheelStartX=w.scrollLeft,m.wheelStartY=w.scrollTop,m.wheelDX=l,m.wheelDY=u,setTimeout(function(){if(m.wheelStartX!=null){var ve=w.scrollLeft-m.wheelStartX,be=w.scrollTop-m.wheelStartY,ke=be&&m.wheelDY&&be/m.wheelDY||ve&&m.wheelDX&&ve/m.wheelDX;m.wheelStartX=m.wheelStartY=null,ke&&(Jr=(Jr*Ha+ke)/(Ha+1),++Ha)}},200)):(m.wheelDX+=l,m.wheelDY+=u))}}var Wn=function(n,i){this.ranges=n,this.primIndex=i};Wn.prototype.primary=function(){return this.ranges[this.primIndex]},Wn.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(!dt(a.anchor,l.anchor)||!dt(a.head,l.head))return!1}return!0},Wn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new ht(qt(this.ranges[i].anchor),qt(this.ranges[i].head));return new Wn(n,this.primIndex)},Wn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Wn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(_e(i,l.from())>=0&&_e(n,l.to())<=0)return a}return-1};var ht=function(n,i){this.anchor=n,this.head=i};ht.prototype.from=function(){return Vo(this.anchor,this.head)},ht.prototype.to=function(){return gn(this.anchor,this.head)},ht.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function vr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(G,V){return _e(G.from(),V.from())}),a=Ee(i,u);for(var g=1;g<i.length;g++){var m=i[g],w=i[g-1],_=_e(w.to(),m.from());if(l&&!m.empty()?_>0:_>=0){var S=Vo(w.from(),m.from()),$=gn(w.to(),m.to()),D=w.empty()?m.from()==m.head:w.from()==w.head;g<=a&&--a,i.splice(--g,2,new ht(D?$:S,D?S:$))}}return new Wn(i,a)}function Si(n,i){return new Wn([new ht(n,i||n)],0)}function ki(n){return n.text?Q(n.from.line+n.text.length-1,fe(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function dg(n,i){if(_e(n,i.from)<0)return n;if(_e(n,i.to)<=0)return ki(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+=ki(i).ch-i.to.ch),Q(a,l)}function Sf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new ht(dg(u.anchor,i),dg(u.head,i)))}return vr(n.cm,a,n.sel.primIndex)}function hg(n,i,a){return n.line==i.line?Q(a.line,n.ch-i.ch+a.ch):Q(a.line+(n.line-i.line),n.ch)}function Wx(n,i,a){for(var l=[],u=Q(n.first,0),g=u,m=0;m<i.length;m++){var w=i[m],_=hg(w.from,u,g),S=hg(ki(w),u,g);if(u=w.to,g=S,a=="around"){var $=n.sel.ranges[m],D=_e($.head,$.anchor)<0;l[m]=new ht(D?S:_,D?_:S)}else l[m]=new ht(_,_)}return new Wn(l,n.sel.primIndex)}function kf(n){n.doc.mode=Bo(n.options,n.doc.modeOption),ol(n)}function ol(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,rl(n,100),n.state.modeGen++,n.curOp&&vn(n)}function pg(n,i){return i.from.ch==0&&i.to.ch==0&&fe(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Cf(n,i,a,l){function u(ke){return a?a[ke]:null}function g(ke,we,Ae){Z1(ke,we,Ae,l),Bt(ke,"change",ke,i)}function m(ke,we){for(var Ae=[],He=ke;He<we;++He)Ae.push(new jo(S[He],u(He),l));return Ae}var w=i.from,_=i.to,S=i.text,$=Oe(n,w.line),D=Oe(n,_.line),G=fe(S),V=u(S.length-1),ne=_.line-w.line;if(i.full)n.insert(0,m(0,S.length)),n.remove(S.length,n.size-S.length);else if(pg(n,i)){var ce=m(0,S.length-1);g(D,D.text,V),ne&&n.remove(w.line,ne),ce.length&&n.insert(w.line,ce)}else if($==D)if(S.length==1)g($,$.text.slice(0,w.ch)+G+$.text.slice(_.ch),V);else{var ve=m(1,S.length-1);ve.push(new jo(G+$.text.slice(_.ch),V,l)),g($,$.text.slice(0,w.ch)+S[0],u(0)),n.insert(w.line+1,ve)}else if(S.length==1)g($,$.text.slice(0,w.ch)+S[0]+D.text.slice(_.ch),u(0)),n.remove(w.line+1,ne);else{g($,$.text.slice(0,w.ch)+S[0],u(0)),g(D,G+D.text.slice(_.ch),V);var be=m(1,S.length-1);ne>1&&n.remove(w.line+1,ne-1),n.insert(w.line+1,be)}Bt(n,"change",n,i)}function Ci(n,i,a){function l(u,g,m){if(u.linked)for(var w=0;w<u.linked.length;++w){var _=u.linked[w];if(_.doc!=g){var S=m&&_.sharedHist;a&&!S||(i(_.doc,S),l(_.doc,u,S))}}}l(n,null,!0)}function gg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,ff(n),kf(n),vg(n),n.options.direction=i.direction,n.options.lineWrapping||Qu(n),n.options.mode=i.modeOption,vn(n)}function vg(n){(n.doc.direction=="rtl"?Ne:Z)(n.display.lineDiv,"CodeMirror-rtl")}function Ux(n){Mn(n,function(){vg(n),vn(n)})}function qa(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 Tf(n,i){var a={from:qt(i.from),to:ki(i),text:Kr(n,i.from,i.to)};return bg(n,a,i.from.line,i.to.line+1),Ci(n,function(l){return bg(l,a,i.from.line,i.to.line+1)},!0),a}function mg(n){for(;n.length;){var i=fe(n);if(i.ranges)n.pop();else break}}function Vx(n,i){if(i)return mg(n.done),fe(n.done);if(n.done.length&&!fe(n.done).ranges)return fe(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),fe(n.done)}function yg(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,m,w;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(m=Vx(u,u.lastOp==l)))w=fe(m.changes),_e(i.from,i.to)==0&&_e(i.from,w.to)==0?w.to=ki(i):m.changes.push(Tf(n,i));else{var _=fe(u.done);for((!_||!_.ranges)&&Ba(n.sel,u.done),m={changes:[Tf(n,i)],generation:u.generation},u.done.push(m);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,w||Et(n,"historyAdded")}function jx(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function Gx(n,i,a,l){var u=n.history,g=l&&l.origin;a==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||jx(n,g,fe(u.done),i))?u.done[u.done.length-1]=i:Ba(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&mg(u.undone)}function Ba(n,i){var a=fe(i);a&&a.ranges&&a.equals(n)||i.push(n)}function bg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(m){m.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=m.markedSpans),++g})}function Kx(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 Xx(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(Kx(a[u]));return l}function wg(n,i){var a=Xx(n,i),l=Xu(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],m=l[u];if(g&&m)e:for(var w=0;w<m.length;++w){for(var _=m[w],S=0;S<g.length;++S)if(g[S].marker==_.marker)continue e;g.push(_)}else m&&(a[u]=m)}return a}function es(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Wn.prototype.deepCopy.call(g):g);continue}var m=g.changes,w=[];l.push({changes:w});for(var _=0;_<m.length;++_){var S=m[_],$=void 0;if(w.push({from:S.from,to:S.to,text:S.text}),i)for(var D in S)($=D.match(/^spans_(\d+)$/))&&Ee(i,Number($[1]))>-1&&(fe(w)[D]=S[D],delete S[D])}}return l}function Ef(n,i,a,l){if(l){var u=n.anchor;if(a){var g=_e(i,u)<0;g!=_e(a,u)<0?(u=i,i=a):g!=_e(i,a)<0&&(i=a)}return new ht(u,i)}else return new ht(a||i,i)}function Wa(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),nn(n,new Wn([Ef(n.sel.primary(),i,a,u)],0),l)}function xg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),g=0;g<n.sel.ranges.length;g++)l[g]=Ef(n.sel.ranges[g],i[g],null,u);var m=vr(n.cm,l,n.sel.primIndex);nn(n,m,a)}function Lf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,nn(n,vr(n.cm,u,n.sel.primIndex),l)}function _g(n,i,a,l){nn(n,Si(i,a),l)}function Yx(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new ht(Ke(n,u[g].anchor),Ke(n,u[g].head))},origin:a&&a.origin};return Et(n,"beforeSelectionChange",n,l),n.cm&&Et(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?vr(n.cm,l.ranges,l.ranges.length-1):i}function Sg(n,i,a){var l=n.history.done,u=fe(l);u&&u.ranges?(l[l.length-1]=i,Ua(n,i,a)):nn(n,i,a)}function nn(n,i,a){Ua(n,i,a),Gx(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ua(n,i,a){(An(n,"beforeSelectionChange")||n.cm&&An(n.cm,"beforeSelectionChange"))&&(i=Yx(n,i,a));var l=a&&a.bias||(_e(i.primary().head,n.sel.primary().head)<0?-1:1);kg(n,Tg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Jo(n.cm)}function kg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,Zn(n.cm)),Bt(n,"cursorActivity",n))}function Cg(n){kg(n,Tg(n,n.sel,null,!1))}function Tg(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var m=i.ranges[g],w=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],_=Va(n,m.anchor,w&&w.anchor,a,l),S=m.head==m.anchor?_:Va(n,m.head,w&&w.head,a,l);(u||_!=m.anchor||S!=m.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new ht(_,S))}return u?vr(n.cm,u,i.primIndex):i}function ts(n,i,a,l,u){var g=Oe(n,i.line);if(g.markedSpans)for(var m=0;m<g.markedSpans.length;++m){var w=g.markedSpans[m],_=w.marker,S="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,$="selectRight"in _?!_.selectRight:_.inclusiveRight;if((w.from==null||(S?w.from<=i.ch:w.from<i.ch))&&(w.to==null||($?w.to>=i.ch:w.to>i.ch))){if(u&&(Et(_,"beforeCursorEnter"),_.explicitlyCleared))if(g.markedSpans){--m;continue}else break;if(!_.atomic)continue;if(a){var D=_.find(l<0?1:-1),G=void 0;if((l<0?$:S)&&(D=Eg(n,D,-l,D&&D.line==i.line?g:null)),D&&D.line==i.line&&(G=_e(D,a))&&(l<0?G<0:G>0))return ts(n,D,i,l,u)}var V=_.find(l<0?-1:1);return(l<0?S:$)&&(V=Eg(n,V,l,V.line==i.line?g:null)),V?ts(n,V,i,l,u):null}}return i}function Va(n,i,a,l,u){var g=l||1,m=ts(n,i,a,g,u)||!u&&ts(n,i,a,g,!0)||ts(n,i,a,-g,u)||!u&&ts(n,i,a,-g,!0);return m||(n.cantEdit=!0,Q(n.first,0))}function Eg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ke(n,Q(i.line-1)):null:a>0&&i.ch==(l||Oe(n,i.line)).text.length?i.line<n.first+n.size-1?Q(i.line+1,0):null:new Q(i.line,i.ch+a)}function Lg(n){n.setSelection(Q(n.firstLine(),0),Q(n.lastLine()),F)}function Ag(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(u,g,m,w){u&&(l.from=Ke(n,u)),g&&(l.to=Ke(n,g)),m&&(l.text=m),w!==void 0&&(l.origin=w)}),Et(n,"beforeChange",n,l),n.cm&&Et(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 ns(n,i,a){if(n.cm){if(!n.cm.curOp)return Wt(n.cm,ns)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((An(n,"beforeChange")||n.cm&&An(n.cm,"beforeChange"))&&(i=Ag(n,i,!0),!i))){var l=wp&&!a&&G1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Mg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Mg(n,i)}}function Mg(n,i){if(!(i.text.length==1&&i.text[0]==""&&_e(i.from,i.to)==0)){var a=Sf(n,i);yg(n,i,a,n.cm?n.cm.curOp.id:NaN),sl(n,i,a,Xu(n,i));var l=[];Ci(n,function(u,g){!g&&Ee(l,u.history)==-1&&(Og(u.history,i),l.push(u.history)),sl(u,i,null,Xu(u,i))})}}function ja(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,m=n.sel,w=i=="undo"?u.done:u.undone,_=i=="undo"?u.undone:u.done,S=0;S<w.length&&(g=w[S],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));S++);if(S!=w.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=w.pop(),g.ranges){if(Ba(g,_),a&&!g.equals(n.sel)){nn(n,g,{clearRedo:!1});return}m=g}else if(l){w.push(g);return}else break;var $=[];Ba(m,_),_.push({changes:$,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var D=An(n,"beforeChange")||n.cm&&An(n.cm,"beforeChange"),G=function(ce){var ve=g.changes[ce];if(ve.origin=i,D&&!Ag(n,ve,!1))return w.length=0,{};$.push(Tf(n,ve));var be=ce?Sf(n,ve):fe(w);sl(n,ve,be,wg(n,ve)),!ce&&n.cm&&n.cm.scrollIntoView({from:ve.from,to:ki(ve)});var ke=[];Ci(n,function(we,Ae){!Ae&&Ee(ke,we.history)==-1&&(Og(we.history,ve),ke.push(we.history)),sl(we,ve,null,wg(we,ve))})},V=g.changes.length-1;V>=0;--V){var ne=G(V);if(ne)return ne.v}}}}function Ng(n,i){if(i!=0&&(n.first+=i,n.sel=new Wn(xe(n.sel.ranges,function(u){return new ht(Q(u.anchor.line+i,u.anchor.ch),Q(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){vn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)xi(n.cm,l,"gutter")}}function sl(n,i,a,l){if(n.cm&&!n.cm.curOp)return Wt(n.cm,sl)(n,i,a,l);if(i.to.line<n.first){Ng(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 u=i.text.length-1-(n.first-i.from.line);Ng(n,u),i={from:Q(n.first,0),to:Q(i.to.line+u,i.to.ch),text:[fe(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:Q(g,Oe(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Kr(n,i.from,i.to),a||(a=Sf(n,i)),n.cm?Zx(n.cm,i,l):Cf(n,i,l),Ua(n,a,F),n.cantEdit&&Va(n,Q(n.firstLine(),0))&&(n.cantEdit=!1)}}function Zx(n,i,a){var l=n.doc,u=n.display,g=i.from,m=i.to,w=!1,_=g.line;n.options.lineWrapping||(_=C(pr(Oe(l,g.line))),l.iter(_,m.line+1,function(V){if(V==u.maxLine)return w=!0,!0})),l.sel.contains(i.from,i.to)>-1&&Zn(n),Cf(l,i,a,Yp(n)),n.options.lineWrapping||(l.iter(_,g.line+i.text.length,function(V){var ne=Aa(V);ne>u.maxLineLength&&(u.maxLine=V,u.maxLineLength=ne,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),H1(l,g.line),rl(n,400);var S=i.text.length-(m.line-g.line)-1;i.full?vn(n):g.line==m.line&&i.text.length==1&&!pg(n.doc,i)?xi(n,g.line,"text"):vn(n,g.line,m.line+1,S);var $=An(n,"changes"),D=An(n,"change");if(D||$){var G={from:g,to:m,text:i.text,removed:i.removed,origin:i.origin};D&&Bt(n,"change",n,G),$&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(G)}n.display.selForContextMenu=null}function rs(n,i,a,l,u){var g;l||(l=a),_e(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),ns(n,{from:a,to:l,text:i,origin:u})}function $g(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Pg(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],m=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var w=0;w<g.ranges.length;w++)$g(g.ranges[w].anchor,i,a,l),$g(g.ranges[w].head,i,a,l);continue}for(var _=0;_<g.changes.length;++_){var S=g.changes[_];if(a<S.from.line)S.from=Q(S.from.line+l,S.from.ch),S.to=Q(S.to.line+l,S.to.ch);else if(i<=S.to.line){m=!1;break}}m||(n.splice(0,u+1),u=0)}}function Og(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Pg(n.done,a,l,u),Pg(n.undone,a,l,u)}function ll(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Oe(n,fp(n,i)):u=C(i),u==null?null:(l(g,u)&&n.cm&&xi(n.cm,u,a),g)}function al(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}al.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,J1(u),Bt(u,"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 cl(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}cl.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],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),m=l.height;if(l.removeInner(n,g),this.height-=m-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof al))){var w=[];this.collapse(w),this.children=[new al(w)],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 u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var m=u.lines.length%25+25,w=m;w<u.lines.length;){var _=new al(u.lines.slice(w,w+=25));u.height-=_.height,this.children.splice(++l,0,_),_.parent=this}u.lines=u.lines.slice(0,m),this.maybeSpill()}break}n-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new cl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=Ee(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new cl(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 u=this.children[l],g=u.chunkSize();if(n<g){var m=Math.min(i,g-n);if(u.iterN(n,m,a))return!0;if((i-=m)==0)break;n=0}else n-=g}}};var ul=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};ul.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=C(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=Ys(this);Bn(a,Math.max(0,a.height-g)),n&&(Mn(n,function(){Rg(n,a,-g),xi(n,l,"widget")}),Bt(n,"lineWidgetCleared",n,this,l))}},ul.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Ys(this)-i;u&&(wi(this.doc,l)||Bn(l,l.height+u),a&&Mn(a,function(){a.curOp.forceUpdate=!0,Rg(a,l,u),Bt(a,"lineWidgetChanged",a,n,C(l))}))},cr(ul);function Rg(n,i,a){Yr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&mf(n,a)}function Jx(n,i,a,l){var u=new ul(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),ll(n,i,"widget",function(m){var w=m.widgets||(m.widgets=[]);if(u.insertAt==null?w.push(u):w.splice(Math.min(w.length,Math.max(0,u.insertAt)),0,u),u.line=m,g&&!wi(n,m)){var _=Yr(m)<n.scrollTop;Bn(m,m.height+Ys(u)),_&&mf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Bt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:C(i)),u}var Dg=0,Ti=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Dg};Ti.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&po(n),An(this,"clear")){var a=this.find();a&&Bt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var m=this.lines[g],w=Gs(m.markedSpans,this);n&&!this.collapsed?xi(n,C(m),"text"):n&&(w.to!=null&&(u=C(m)),w.from!=null&&(l=C(m))),m.markedSpans=W1(m.markedSpans,w),w.from==null&&this.collapsed&&!wi(this.doc,m)&&n&&Bn(m,Xo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var S=pr(this.lines[_]),$=Aa(S);$>n.display.maxLineLength&&(n.display.maxLine=S,n.display.maxLineLength=$,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&vn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Cg(n.doc)),n&&Bt(n,"markerCleared",n,this,l,u),i&&go(n),this.parent&&this.parent.clear()}},Ti.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],m=Gs(g.markedSpans,this);if(m.from!=null&&(a=Q(i?g:C(g),m.from),n==-1))return a;if(m.to!=null&&(l=Q(i?g:C(g),m.to),n==1))return l}return a&&{from:a,to:l}},Ti.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Mn(l,function(){var u=i.line,g=C(i.line),m=rf(l,g);if(m&&(Bp(m),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!wi(a.doc,u)&&a.height!=null){var w=a.height;a.height=null;var _=Ys(a)-w;_&&Bn(u,u.height+_)}Bt(l,"markerChanged",l,n)})},Ti.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ee(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Ti.prototype.detachLine=function(n){if(this.lines.splice(Ee(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},cr(Ti);function is(n,i,a,l,u){if(l&&l.shared)return Qx(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Wt(n.cm,is)(n,i,a,l,u);var g=new Ti(n,u),m=_e(i,a);if(l&&ae(l,g,!1),m>0||m==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=B("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Tp(n,i.line,i,a,g)||i.line!=a.line&&Tp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");B1()}g.addToHistory&&yg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var w=i.line,_=n.cm,S;if(n.iter(w,a.line+1,function(D){_&&g.collapsed&&!_.options.lineWrapping&&pr(D)==_.display.maxLine&&(S=!0),g.collapsed&&w!=i.line&&Bn(D,0),U1(D,new Ca(g,w==i.line?i.ch:null,w==a.line?a.ch:null),n.cm&&n.cm.curOp),++w}),g.collapsed&&n.iter(i.line,a.line+1,function(D){wi(n,D)&&Bn(D,0)}),g.clearOnEnter&&Fe(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(q1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Dg,g.atomic=!0),_){if(S&&(_.curOp.updateMaxLine=!0),g.collapsed)vn(_,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var $=i.line;$<=a.line;$++)xi(_,$,"text");g.atomic&&Cg(_.doc),Bt(_,"markerAdded",_,g)}return g}var fl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};fl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Bt(this,"clear")}},fl.prototype.find=function(n,i){return this.primary.find(n,i)},cr(fl);function Qx(n,i,a,l,u){l=ae(l),l.shared=!1;var g=[is(n,i,a,l,u)],m=g[0],w=l.widgetNode;return Ci(n,function(_){w&&(l.widgetNode=w.cloneNode(!0)),g.push(is(_,Ke(_,i),Ke(_,a),l,u));for(var S=0;S<_.linked.length;++S)if(_.linked[S].isParent)return;m=fe(g)}),new fl(g,m)}function zg(n){return n.findMarks(Q(n.first,0),n.clipPos(Q(n.lastLine())),function(i){return i.parent})}function e_(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),m=n.clipPos(u.to);if(_e(g,m)){var w=is(n,g,m,l.primary,l.primary.type);l.markers.push(w),w.parent=l}}}function t_(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Ci(u.primary.doc,function(_){return g.push(_)});for(var m=0;m<u.markers.length;m++){var w=u.markers[m];Ee(g,w.doc)==-1&&(w.parent=null,u.markers.splice(m--,1))}},a=0;a<n.length;a++)i(a)}var n_=0,mn=function(n,i,a,l,u){if(!(this instanceof mn))return new mn(n,i,a,l,u);a==null&&(a=0),cl.call(this,[new al([new jo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=Q(a,0);this.sel=Si(g),this.history=new qa(null),this.id=++n_,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Cf(this,{from:g,to:g,text:n}),nn(this,Si(g),F)};mn.prototype=ze(cl.prototype,{constructor:mn,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=Vs(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Ut(function(n){var i=Q(this.first,0),a=this.first+this.size-1;ns(this,{from:i,to:Q(a,Oe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&Qs(this.cm,0,0),nn(this,Si(i),F)}),replaceRange:function(n,i,a,l){i=Ke(this,i),a=a?Ke(this,a):i,rs(this,n,i,a,l)},getRange:function(n,i,a){var l=Kr(this,Ke(this,n),Ke(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(se(this,n))return Oe(this,n)},getLineNumber:function(n){return C(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Oe(this,n)),pr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ke(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:Ut(function(n,i,a){_g(this,Ke(this,typeof n=="number"?Q(n,i||0):n),null,a)}),setSelection:Ut(function(n,i,a){_g(this,Ke(this,n),Ke(this,i||n),a)}),extendSelection:Ut(function(n,i,a){Wa(this,Ke(this,n),i&&Ke(this,i),a)}),extendSelections:Ut(function(n,i){xg(this,dp(this,n),i)}),extendSelectionsBy:Ut(function(n,i){var a=xe(this.sel.ranges,n);xg(this,dp(this,a),i)}),setSelections:Ut(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new ht(Ke(this,n[u].anchor),Ke(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),nn(this,vr(this.cm,l,i),a)}}),addSelection:Ut(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new ht(Ke(this,n),Ke(this,i||n))),nn(this,vr(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=Kr(this,i[l].from(),i[l].to());a=a?a.concat(u):u}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 u=Kr(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:Ut(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var m=u.ranges[g];l[g]={from:m.from(),to:m.to(),text:this.splitLines(n[g]),origin:a}}for(var w=i&&i!="end"&&Wx(this,l,i),_=l.length-1;_>=0;_--)ns(this,l[_]);w?Sg(this,w):this.cm&&Jo(this.cm)}),undo:Ut(function(){ja(this,"undo")}),redo:Ut(function(){ja(this,"redo")}),undoSelection:Ut(function(){ja(this,"undo",!0)}),redoSelection:Ut(function(){ja(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 u=0;u<n.undone.length;u++)n.undone[u].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new qa(this.history),Ci(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:es(this.history.done),undone:es(this.history.undone)}},setHistory:function(n){var i=this.history=new qa(this.history);i.done=es(n.done.slice(0),null,!0),i.undone=es(n.undone.slice(0),null,!0)},setGutterMarker:Ut(function(n,i,a){return ll(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&mt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Ut(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&ll(i,a,"gutter",function(){return a.gutterMarkers[n]=null,mt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!se(this,n)||(i=n,n=Oe(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:Ut(function(n,i,a){return ll(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(te(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Ut(function(n,i,a){return ll(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var m=g.match(te(a));if(!m)return!1;var w=m.index+m[0].length;l[u]=g.slice(0,m.index)+(!m.index||w==g.length?"":" ")+g.slice(w)||null}else return!1;return!0})}),addLineWidget:Ut(function(n,i,a){return Jx(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return is(this,Ke(this,n),Ke(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=Ke(this,n),is(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ke(this,n);var i=[],a=Oe(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Ke(this,n),i=Ke(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var m=g.markedSpans;if(m)for(var w=0;w<m.length;w++){var _=m[w];!(_.to!=null&&u==n.line&&n.ch>=_.to||_.from==null&&u!=n.line||_.from!=null&&u==i.line&&_.from>=i.ch)&&(!a||a(_.marker))&&l.push(_.marker.parent||_.marker)}++u}),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(u){var g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ke(this,Q(a,i))},indexFromPos:function(n){n=Ke(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 mn(Vs(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 mn(Vs(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}],e_(l,zg(this)),l},unlinkDoc:function(n){if(n instanceof kt&&(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),t_(zg(this));break}}if(n.history==this.history){var l=[n.id];Ci(n,function(u){return l.push(u.id)},!0),n.history=new qa(null),n.history.done=es(this.history.done,l),n.history.undone=es(this.history.undone,l)}},iterLinkedDocs:function(n){Ci(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):Jn(n)},lineSeparator:function(){return this.lineSep||`
35
+ `},setDirection:Ut(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Ux(this.cm))})}),mn.prototype.eachLine=mn.prototype.iter;var Ig=0;function r_(n){var i=this;if(Fg(i),!(Lt(i,n)||Zr(i.display,n))){tn(n),h&&(Ig=+new Date);var a=co(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),m=0,w=function(){++m==u&&Wt(i,function(){a=Ke(i.doc,a);var V={from:a,to:a,text:i.doc.splitLines(g.filter(function(ne){return ne!=null}).join(i.doc.lineSeparator())),origin:"paste"};ns(i.doc,V),Sg(i.doc,Si(Ke(i.doc,a),Ke(i.doc,ki(V))))})()},_=function(V,ne){if(i.options.allowDropFileTypes&&Ee(i.options.allowDropFileTypes,V.type)==-1){w();return}var ce=new FileReader;ce.onerror=function(){return w()},ce.onload=function(){var ve=ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ve)){w();return}g[ne]=ve,w()},ce.readAsText(V)},S=0;S<l.length;S++)_(l[S],S);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.dataTransfer.getData("Text");if($){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),Ua(i.doc,Si(a,a)),D)for(var G=0;G<D.length;++G)rs(i.doc,"",D[G].anchor,D[G].head,"drag");i.replaceSelection($,"around","paste"),i.display.input.focus()}}catch{}}}}function i_(n,i){if(h&&(!n.state.draggingText||+new Date-Ig<100)){vi(i);return}if(!(Lt(n,i)||Zr(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!T)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",A&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),A&&a.parentNode.removeChild(a)}}function o_(n,i){var a=co(n,i);if(a){var l=document.createDocumentFragment();df(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)),I(n.display.dragCursor,l)}}function Fg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Hg(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var g=0;g<a.length;g++)n(a[g])})}}var qg=!1;function s_(){qg||(l_(),qg=!0)}function l_(){var n;Fe(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Hg(a_)},100))}),Fe(window,"blur",function(){return Hg(Zo)})}function a_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Ei={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"},dl=0;dl<10;dl++)Ei[dl+48]=Ei[dl+96]=String(dl);for(var Ga=65;Ga<=90;Ga++)Ei[Ga]=String.fromCharCode(Ga);for(var hl=1;hl<=12;hl++)Ei[hl+111]=Ei[hl+63235]="F"+hl;var Qr={};Qr.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"},Qr.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"},Qr.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"},Qr.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"]},Qr.default=q?Qr.macDefault:Qr.pcDefault;function c_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,m=0;m<i.length-1;m++){var w=i[m];if(/^(cmd|meta|m)$/i.test(w))g=!0;else if(/^a(lt)?$/i.test(w))a=!0;else if(/^(c|ctrl|control)$/i.test(w))l=!0;else if(/^s(hift)?$/i.test(w))u=!0;else throw new Error("Unrecognized modifier name: "+w)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function u_(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 u=xe(a.split(" "),c_),g=0;g<u.length;g++){var m=void 0,w=void 0;g==u.length-1?(w=u.join(" "),m=l):(w=u.slice(0,g+1).join(" "),m="...");var _=i[w];if(!_)i[w]=m;else if(_!=m)throw new Error("Inconsistent bindings for "+w)}delete n[a]}for(var S in i)n[S]=i[S];return n}function os(n,i,a,l){i=Ka(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return os(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var m=os(n,i.fallthrough[g],a,l);if(m)return m}}}function Bg(n){var i=typeof n=="string"?n:Ei[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Wg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(ee?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(ee?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Ug(n,i){if(A&&n.keyCode==34&&n.char)return!1;var a=Ei[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Wg(a,n,i))}function Ka(n){return typeof n=="string"?Qr[n]:n}function ss(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&_e(g.from,fe(l).to)<=0;){var m=l.pop();if(_e(m.from,g.from)<0){g.from=m.from;break}}l.push(g)}Mn(n,function(){for(var w=l.length-1;w>=0;w--)rs(n.doc,"",l[w].from,l[w].to,"+delete");Jo(n)})}function Af(n,i,a){var l=Ft(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Mf(n,i,a){var l=Af(n,i.ch,a);return l==null?null:new Q(i.line,l,a<0?"after":"before")}function Nf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=Ve(a,i.doc.direction);if(g){var m=u<0?fe(g):g[0],w=u<0==(m.level==1),_=w?"after":"before",S;if(m.level>0||i.doc.direction=="rtl"){var $=Ko(i,a);S=u<0?a.text.length-1:0;var D=Mr(i,$,S).top;S=Jt(function(G){return Mr(i,$,G).top==D},u<0==(m.level==1)?m.from:m.to-1,S),_=="before"&&(S=Af(a,S,1))}else S=u<0?m.to:m.from;return new Q(l,S,_)}}return new Q(l,u<0?a.text.length:0,u<0?"before":"after")}function f_(n,i,a,l){var u=Ve(i,n.doc.direction);if(!u)return Mf(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 g=ar(u,a.ch,a.sticky),m=u[g];if(n.doc.direction=="ltr"&&m.level%2==0&&(l>0?m.to>a.ch:m.from<a.ch))return Mf(i,a,l);var w=function(be,ke){return Af(i,be instanceof Q?be.ch:be,ke)},_,S=function(be){return n.options.lineWrapping?(_=_||Ko(n,i),Xp(n,i,_,be)):{begin:0,end:i.text.length}},$=S(a.sticky=="before"?w(a,-1):a.ch);if(n.doc.direction=="rtl"||m.level==1){var D=m.level==1==l<0,G=w(a,D?1:-1);if(G!=null&&(D?G<=m.to&&G<=$.end:G>=m.from&&G>=$.begin)){var V=D?"before":"after";return new Q(a.line,G,V)}}var ne=function(be,ke,we){for(var Ae=function(xt,Vt){return Vt?new Q(a.line,w(xt,1),"before"):new Q(a.line,xt,"after")};be>=0&&be<u.length;be+=ke){var He=u[be],De=ke>0==(He.level!=1),Qe=De?we.begin:w(we.end,-1);if(He.from<=Qe&&Qe<He.to||(Qe=De?He.from:w(He.to,-1),we.begin<=Qe&&Qe<we.end))return Ae(Qe,De)}},ce=ne(g+l,l,$);if(ce)return ce;var ve=l>0?$.end:w($.begin,-1);return ve!=null&&!(l>0&&ve==i.text.length)&&(ce=ne(l>0?0:u.length-1,l,S(ve)),ce)?ce:null}var pl={selectAll:Lg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),F)},killLine:function(n){return ss(n,function(i){if(i.empty()){var a=Oe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:Q(i.head.line+1,0)}:{from:i.head,to:Q(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ss(n,function(i){return{from:Q(i.from().line,0),to:Ke(n.doc,Q(i.to().line+1,0))}})},delLineLeft:function(n){return ss(n,function(i){return{from:Q(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ss(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 ss(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(Q(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(Q(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Vg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return jg(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return d_(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")},ue)},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")},ue)},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/)?jg(n,i.head):l},ue)},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,u=0;u<a.length;u++){var g=a[u].from(),m=de(n.getLine(g.line),g.ch,l);i.push(Se(l-m%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Mn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Oe(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new Q(u.line,u.ch-1)),u.ch>0)u=new Q(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),Q(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var m=Oe(n.doc,u.line-1).text;m&&(u=new Q(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+m.charAt(m.length-1),Q(u.line-1,m.length-1),u,"+transpose"))}}a.push(new ht(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Mn(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);Jo(n)})},openLine:function(n){return n.replaceSelection(`
36
+ `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Vg(n,i){var a=Oe(n.doc,i),l=pr(a);return l!=a&&(i=C(l)),Nf(!0,n,l,i,1)}function d_(n,i){var a=Oe(n.doc,i),l=X1(a);return l!=a&&(i=C(l)),Nf(!0,n,a,i,-1)}function jg(n,i){var a=Vg(n,i.line),l=Oe(n.doc,a.line),u=Ve(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),m=i.line==a.line&&i.ch<=g&&i.ch;return Q(a.line,m?0:g,a.sticky)}return a}function Xa(n,i,a){if(typeof i=="string"&&(i=pl[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=O}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function h_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=os(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&os(i,n.options.extraKeys,a,n)||os(i,n.options.keyMap,a,n)}var p_=new $e;function gl(n,i,a,l){var u=n.state.keySeq;if(u){if(Bg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:p_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Gg(n,u+" "+i,a,l))return!0}return Gg(n,i,a,l)}function Gg(n,i,a,l){var u=h_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Bt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(tn(a),hf(n)),!!u}function Kg(n,i){var a=Ug(i,!0);return a?i.shiftKey&&!n.state.keySeq?gl(n,"Shift-"+a,i,function(l){return Xa(n,l,!0)})||gl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Xa(n,l)}):gl(n,a,i,function(l){return Xa(n,l)}):!1}function g_(n,i,a){return gl(n,"'"+a+"'",i,function(l){return Xa(n,l,!0)})}var $f=null;function Xg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ye(rt(i)),!Lt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Kg(i,n);A&&($f=l?a:null,!l&&a==88&&!Sa&&(q?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!q&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&v_(i)}}function v_(n){var i=n.display.lineDiv;Ne(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(Z(i,"CodeMirror-crosshair"),en(document,"keyup",a),en(document,"mouseover",a))}Fe(document,"keyup",a),Fe(document,"mouseover",a)}function Yg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Lt(this,n)}function Zg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(Zr(i.display,n)||Lt(i,n)||n.ctrlKey&&!n.altKey||q&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(A&&a==$f){$f=null,tn(n);return}if(!(A&&(!n.which||n.which<10)&&Kg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(g_(i,n,u)||i.display.input.onKeyPress(n))}}}var m_=400,Pf=function(n,i,a){this.time=n,this.pos=i,this.button=a};Pf.prototype.compare=function(n,i,a){return this.time+m_>n&&_e(i,this.pos)==0&&a==this.button};var vl,ml;function y_(n,i){var a=+new Date;return ml&&ml.compare(a,n,i)?(vl=ml=null,"triple"):vl&&vl.compare(a,n,i)?(ml=new Pf(a,n,i),vl=null,"double"):(vl=new Pf(a,n,i),ml=null,"single")}function Jg(n){var i=this,a=i.display;if(!(Lt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,Zr(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Of(i,n)){var l=co(i,n),u=ur(n),g=l?y_(l,u):"single";Le(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&b_(i,u,l,g,n))&&(u==1?l?x_(i,l,g,n):Bs(n)==a.scroller&&tn(n):u==2?(l&&Wa(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(j?i.display.input.onContextMenu(n):pf(i)))}}}function b_(n,i,a,l,u){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,gl(n,Wg(g,u),u,function(m){if(typeof m=="string"&&(m=pl[m]),!m)return!1;var w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=m(n,a)!=O}finally{n.state.suppressEdits=!1}return w})}function w_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=W?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=q?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(q?a.altKey:a.ctrlKey)),u}function x_(n,i,a,l){h?setTimeout(K(Qp,n),0):n.curOp.focus=ye(rt(n));var u=w_(n,a,l),g=n.doc.sel,m;n.options.dragDrop&&Vu&&!n.isReadOnly()&&a=="single"&&(m=g.contains(i))>-1&&(_e((m=g.ranges[m]).from(),i)<0||i.xRel>0)&&(_e(m.to(),i)>0||i.xRel<0)?__(n,l,i,u):S_(n,l,i,u)}function __(n,i,a,l){var u=n.display,g=!1,m=Wt(n,function(S){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:pf(n)),en(u.wrapper.ownerDocument,"mouseup",m),en(u.wrapper.ownerDocument,"mousemove",w),en(u.scroller,"dragstart",_),en(u.scroller,"drop",m),g||(tn(S),l.addNew||Wa(n.doc,a,null,null,l.extend),v&&!T||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(S){g=g||Math.abs(i.clientX-S.clientX)+Math.abs(i.clientY-S.clientY)>=10},_=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=m,m.copy=!l.moveOnDrag,Fe(u.wrapper.ownerDocument,"mouseup",m),Fe(u.wrapper.ownerDocument,"mousemove",w),Fe(u.scroller,"dragstart",_),Fe(u.scroller,"drop",m),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Qg(n,i,a){if(a=="char")return new ht(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new ht(Q(i.line,0),Ke(n.doc,Q(i.line+1,0)));var l=a(n,i);return new ht(l.from,l.to)}function S_(n,i,a,l){h&&pf(n);var u=n.display,g=n.doc;tn(i);var m,w,_=g.sel,S=_.ranges;if(l.addNew&&!l.extend?(w=g.sel.contains(a),w>-1?m=S[w]:m=new ht(a,a)):(m=g.sel.primary(),w=g.sel.primIndex),l.unit=="rectangle")l.addNew||(m=new ht(a,a)),a=co(n,i,!0,!0),w=-1;else{var $=Qg(n,a,l.unit);l.extend?m=Ef(m,$.anchor,$.head,l.extend):m=$}l.addNew?w==-1?(w=S.length,nn(g,vr(n,S.concat([m]),w),{scroll:!1,origin:"*mouse"})):S.length>1&&S[w].empty()&&l.unit=="char"&&!l.extend?(nn(g,vr(n,S.slice(0,w).concat(S.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),_=g.sel):Lf(g,w,m,J):(w=0,nn(g,new Wn([m],0),J),_=g.sel);var D=a;function G(we){if(_e(D,we)!=0)if(D=we,l.unit=="rectangle"){for(var Ae=[],He=n.options.tabSize,De=de(Oe(g,a.line).text,a.ch,He),Qe=de(Oe(g,we.line).text,we.ch,He),xt=Math.min(De,Qe),Vt=Math.max(De,Qe),Tt=Math.min(a.line,we.line),Nn=Math.min(n.lastLine(),Math.max(a.line,we.line));Tt<=Nn;Tt++){var yn=Oe(g,Tt).text,Ot=le(yn,xt,He);xt==Vt?Ae.push(new ht(Q(Tt,Ot),Q(Tt,Ot))):yn.length>Ot&&Ae.push(new ht(Q(Tt,Ot),Q(Tt,le(yn,Vt,He))))}Ae.length||Ae.push(new ht(a,a)),nn(g,vr(n,_.ranges.slice(0,w).concat(Ae),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(we)}else{var bn=m,Yt=Qg(n,we,l.unit),Ht=bn.anchor,Rt;_e(Yt.anchor,Ht)>0?(Rt=Yt.head,Ht=Vo(bn.from(),Yt.anchor)):(Rt=Yt.anchor,Ht=gn(bn.to(),Yt.head));var Mt=_.ranges.slice(0);Mt[w]=k_(n,new ht(Ke(g,Ht),Rt)),nn(g,vr(n,Mt,w),J)}}var V=u.wrapper.getBoundingClientRect(),ne=0;function ce(we){var Ae=++ne,He=co(n,we,!0,l.unit=="rectangle");if(He)if(_e(He,D)!=0){n.curOp.focus=ye(rt(n)),G(He);var De=za(u,g);(He.line>=De.to||He.line<De.from)&&setTimeout(Wt(n,function(){ne==Ae&&ce(we)}),150)}else{var Qe=we.clientY<V.top?-20:we.clientY>V.bottom?20:0;Qe&&setTimeout(Wt(n,function(){ne==Ae&&(u.scroller.scrollTop+=Qe,ce(we))}),50)}}function ve(we){n.state.selectingText=!1,ne=1/0,we&&(tn(we),u.input.focus()),en(u.wrapper.ownerDocument,"mousemove",be),en(u.wrapper.ownerDocument,"mouseup",ke),g.history.lastSelOrigin=null}var be=Wt(n,function(we){we.buttons===0||!ur(we)?ve(we):ce(we)}),ke=Wt(n,ve);n.state.selectingText=ke,Fe(u.wrapper.ownerDocument,"mousemove",be),Fe(u.wrapper.ownerDocument,"mouseup",ke)}function k_(n,i){var a=i.anchor,l=i.head,u=Oe(n.doc,a.line);if(_e(a,l)==0&&a.sticky==l.sticky)return i;var g=Ve(u);if(!g)return i;var m=ar(g,a.ch,a.sticky),w=g[m];if(w.from!=a.ch&&w.to!=a.ch)return i;var _=m+(w.from==a.ch==(w.level!=1)?0:1);if(_==0||_==g.length)return i;var S;if(l.line!=a.line)S=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var $=ar(g,l.ch,l.sticky),D=$-m||(l.ch-a.ch)*(w.level==1?-1:1);$==_-1||$==_?S=D<0:S=D>0}var G=g[_+(S?-1:0)],V=S==(G.level==1),ne=V?G.from:G.to,ce=V?"after":"before";return a.ch==ne&&a.sticky==ce?i:new ht(new Q(a.line,ne,ce),l)}function ev(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&tn(i);var m=n.display,w=m.lineDiv.getBoundingClientRect();if(g>w.bottom||!An(n,a))return pn(i);g-=w.top-m.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var S=m.gutters.childNodes[_];if(S&&S.getBoundingClientRect().right>=u){var $=R(n.doc,g),D=n.display.gutterSpecs[_];return Et(n,a,n,$,D.className,i),pn(i)}}}function Of(n,i){return ev(n,i,"gutterClick",!0)}function tv(n,i){Zr(n.display,i)||C_(n,i)||Lt(n,i,"contextmenu")||j||n.display.input.onContextMenu(i)}function C_(n,i){return An(n,"gutterContextMenu")?ev(n,i,"gutterContextMenu",!1):!1}function nv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Zs(n)}var ls={toString:function(){return"CodeMirror.Init"}},rv={},Ya={};function T_(n){var i=n.optionHandlers;function a(l,u,g,m){n.defaults[l]=u,g&&(i[l]=m?function(w,_,S){S!=ls&&g(w,_,S)}:g)}n.defineOption=a,n.Init=ls,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,kf(l)},!0),a("indentUnit",2,kf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){ol(l),Zs(l),vn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],m=l.doc.first;l.doc.iter(function(_){for(var S=0;;){var $=_.text.indexOf(u,S);if($==-1)break;S=$+u.length,g.push(Q(m,$))}m++});for(var w=g.length-1;w>=0;w--)rs(l.doc,u,g[w],Q(g[w].line,g[w].ch+u.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,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=ls&&l.refresh()}),a("specialCharPlaceholder",tx,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",N?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!X),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){nv(l),il(l)},!0),a("keyMap","default",function(l,u,g){var m=Ka(u),w=g!=ls&&Ka(g);w&&w.detach&&w.detach(l,m),m.attach&&m.attach(l,w||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,L_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=_f(u,l.options.lineNumbers),il(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?uf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return Qo(l)},!0),a("scrollbarStyle","native",function(l){og(l),Qo(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=_f(l.options.gutters,u),il(l)},!0),a("firstLineNumber",1,il,!0),a("lineNumberFormatter",function(l){return l},il,!0),a("showCursorWhenSelecting",!1,Js,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Zo(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,E_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Js,!0),a("singleCursorHeightPerLine",!0,Js,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,ol,!0),a("addModeClass",!1,ol,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,ol,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function E_(n,i,a){var l=a&&a!=ls;if(!i!=!l){var u=n.display.dragFunctions,g=i?Fe:en;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function L_(n){n.options.lineWrapping?(Ne(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(Z(n.display.wrapper,"CodeMirror-wrap"),Qu(n)),ff(n),vn(n),Zs(n),setTimeout(function(){return Qo(n)},100)}function kt(n,i){var a=this;if(!(this instanceof kt))return new kt(n,i);this.options=i=i?ae(i):{},ae(rv,i,!1);var l=i.value;typeof l=="string"?l=new mn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new kt.inputStyles[i.inputStyle](this),g=this.display=new qx(n,l,u,i);g.wrapper.CodeMirror=this,nv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),og(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 $e,keySeq:null,specialChars:null},i.autofocus&&!N&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),A_(this),s_(),po(this),this.curOp.forceUpdate=!0,gg(this,l),i.autofocus&&!N||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&gf(a)},20):Zo(this);for(var m in Ya)Ya.hasOwnProperty(m)&&Ya[m](this,i[m],ls);ag(this),i.finishInit&&i.finishInit(this);for(var w=0;w<Rf.length;++w)Rf[w](this);go(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}kt.defaults=rv,kt.optionHandlers=Ya;function A_(n){var i=n.display;Fe(i.scroller,"mousedown",Wt(n,Jg)),h&&p<11?Fe(i.scroller,"dblclick",Wt(n,function(_){if(!Lt(n,_)){var S=co(n,_);if(!(!S||Of(n,_)||Zr(n.display,_))){tn(_);var $=n.findWordAt(S);Wa(n.doc,$.anchor,$.head)}}})):Fe(i.scroller,"dblclick",function(_){return Lt(n,_)||tn(_)}),Fe(i.scroller,"contextmenu",function(_){return tv(n,_)}),Fe(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||tv(n,_)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(_){if(_.touches.length!=1)return!1;var S=_.touches[0];return S.radiusX<=1&&S.radiusY<=1}function m(_,S){if(S.left==null)return!0;var $=S.left-_.left,D=S.top-_.top;return $*$+D*D>20*20}Fe(i.scroller,"touchstart",function(_){if(!Lt(n,_)&&!g(_)&&!Of(n,_)){i.input.ensurePolled(),clearTimeout(a);var S=+new Date;i.activeTouch={start:S,moved:!1,prev:S-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),Fe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Fe(i.scroller,"touchend",function(_){var S=i.activeTouch;if(S&&!Zr(i,_)&&S.left!=null&&!S.moved&&new Date-S.start<300){var $=n.coordsChar(i.activeTouch,"page"),D;!S.prev||m(S,S.prev)?D=new ht($,$):!S.prev.prev||m(S,S.prev.prev)?D=n.findWordAt($):D=new ht(Q($.line,0),Ke(n.doc,Q($.line+1,0))),n.setSelection(D.anchor,D.head),n.focus(),tn(_)}u()}),Fe(i.scroller,"touchcancel",u),Fe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(el(n,i.scroller.scrollTop),fo(n,i.scroller.scrollLeft,!0),Et(n,"scroll",n))}),Fe(i.scroller,"mousewheel",function(_){return fg(n,_)}),Fe(i.scroller,"DOMMouseScroll",function(_){return fg(n,_)}),Fe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Lt(n,_)||vi(_)},over:function(_){Lt(n,_)||(o_(n,_),vi(_))},start:function(_){return i_(n,_)},drop:Wt(n,r_),leave:function(_){Lt(n,_)||Fg(n)}};var w=i.input.getField();Fe(w,"keyup",function(_){return Yg.call(n,_)}),Fe(w,"keydown",Wt(n,Xg)),Fe(w,"keypress",Wt(n,Zg)),Fe(w,"focus",function(_){return gf(n,_)}),Fe(w,"blur",function(_){return Zo(n,_)})}var Rf=[];kt.defineInitHook=function(n){return Rf.push(n)};function yl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=js(n,i).state:a="prev");var m=n.options.tabSize,w=Oe(u,i),_=de(w.text,null,m);w.stateAfter&&(w.stateAfter=null);var S=w.text.match(/^\s*/)[0],$;if(!l&&!/\S/.test(w.text))$=0,a="not";else if(a=="smart"&&($=u.mode.indent(g,w.text.slice(S.length),w.text),$==O||$>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?$=de(Oe(u,i-1).text,null,m):$=0:a=="add"?$=_+n.options.indentUnit:a=="subtract"?$=_-n.options.indentUnit:typeof a=="number"&&($=_+a),$=Math.max(0,$);var D="",G=0;if(n.options.indentWithTabs)for(var V=Math.floor($/m);V;--V)G+=m,D+=" ";if(G<$&&(D+=Se($-G)),D!=S)return rs(u,D,Q(i,0),Q(i,S.length),"+input"),w.stateAfter=null,!0;for(var ne=0;ne<u.sel.ranges.length;ne++){var ce=u.sel.ranges[ne];if(ce.head.line==i&&ce.head.ch<S.length){var ve=Q(i,S.length);Lf(u,ne,new ht(ve,ve));break}}}var mr=null;function Za(n){mr=n}function Df(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var m=+new Date-200,w=u=="paste"||n.state.pasteIncoming>m,_=Jn(i),S=null;if(w&&l.ranges.length>1)if(mr&&mr.text.join(`
37
37
  `)==i){if(l.ranges.length%mr.text.length==0){S=[];for(var $=0;$<mr.text.length;$++)S.push(g.splitLines(mr.text[$]))}}else _.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(S=xe(_,function(be){return[be]}));for(var D=n.curOp.updateInput,G=l.ranges.length-1;G>=0;G--){var V=l.ranges[G],ne=V.from(),ce=V.to();V.empty()&&(a&&a>0?ne=Q(ne.line,ne.ch-a):n.state.overwrite&&!w?ce=Q(ce.line,Math.min(Oe(g,ce.line).text.length,ce.ch+fe(_).length)):w&&mr&&mr.lineWise&&mr.text.join(`
38
38
  `)==_.join(`
39
- `)&&(ne=ce=Q(ne.line,0)));var ve={from:ne,to:ce,text:S?S[G%S.length]:_,origin:u||(w?"paste":n.state.cutIncoming>m?"cut":"+input")};ns(n.doc,ve),Bt(n,"inputRead",n,ve)}i&&!w&&ov(n,i),Jo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=D),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function iv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Mn(i,function(){return Df(i,a,0,null,"paste")}),!0}function ov(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),m=!1;if(g.electricChars){for(var w=0;w<g.electricChars.length;w++)if(i.indexOf(g.electricChars.charAt(w))>-1){m=yl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Oe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(m=yl(n,u.head.line,"smart"));m&&Bt(n,"electricInput",n,u.head.line)}}}function sv(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:Q(u,0),head:Q(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function zf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function lv(){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"),A&&(n.style.border="1px solid black"),i}function M_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Le(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,m=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Wt(this,i[l])(this,u,m),Et(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](Ka(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:an(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");pe(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(m){return m.priority}),this.state.modeGen++,vn(this)}),removeOverlay:an(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var m=u[g].modeSpec;if(m==l||typeof l=="string"&&m.name==l){u.splice(g,1),this.state.modeGen++,vn(this);return}}}),indentLine:an(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),se(this.doc,l)&&yl(this,l,u,g)}),indentSelection:an(function(l){for(var u=this.doc.sel.ranges,g=-1,m=0;m<u.length;m++){var w=u[m];if(w.empty())w.head.line>g&&(yl(this,w.head.line,l,!0),g=w.head.line,m==this.doc.sel.primIndex&&Jo(this));else{var _=w.from(),S=w.to(),$=Math.max(g,_.line);g=Math.min(this.lastLine(),S.line-(S.ch?0:1))+1;for(var D=$;D<g;++D)yl(this,D,l);var G=this.doc.sel.ranges;_.ch==0&&u.length==G.length&&G[m].from().ch>0&&Lf(this.doc,m,new ht(_,G[m].to()),F)}}}),getTokenAt:function(l,u){return mp(this,l,u)},getLineTokens:function(l,u){return mp(this,Q(l),u,!0)},getTokenTypeAt:function(l){l=Ke(this.doc,l);var u=pp(this,Oe(this.doc,l.line)),g=0,m=(u.length-1)/2,w=l.ch,_;if(w==0)_=u[2];else for(;;){var S=g+m>>1;if((S?u[S*2-1]:0)>=w)m=S;else if(u[S*2+1]<w)g=S+1;else{_=u[S*2+2];break}}var $=_?_.indexOf("overlay "):-1;return $<0?_:$==0?null:_.slice(0,$-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var m=a[u],w=this.getModeAt(l);if(typeof w[u]=="string")m[w[u]]&&g.push(m[w[u]]);else if(w[u])for(var _=0;_<w[u].length;_++){var S=m[w[u][_]];S&&g.push(S)}else w.helperType&&m[w.helperType]?g.push(m[w.helperType]):m[w.name]&&g.push(m[w.name]);for(var $=0;$<m._global.length;$++){var D=m._global[$];D.pred(w,this)&&Ee(g,D.val)==-1&&g.push(D.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=fp(g,l??g.first+g.size-1),js(this,l+1,u).state},cursorCoords:function(l,u){var g,m=this.doc.sel.primary();return l==null?g=m.head:typeof l=="object"?g=Ke(this.doc,l):g=l?m.from():m.to(),gr(this,g,u||"page")},charCoords:function(l,u){return Pa(this,Ke(this.doc,l),u||"page")},coordsChar:function(l,u){return l=jp(this,l,u||"page"),lf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=jp(this,{top:l,left:0},u||"page").top,R(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var m=!1,w;if(typeof l=="number"){var _=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>_&&(l=_,m=!0),w=Oe(this.doc,l)}else w=l;return $a(this,w,{top:0,left:0},u||"page",g||m).top+(m?this.doc.height-Yr(w):0)},defaultTextHeight:function(){return Xo(this.display)},defaultCharWidth:function(){return Yo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,m,w){var _=this.display;l=gr(this,Ke(this.doc,l));var S=l.bottom,$=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),m=="over")S=l.top;else if(m=="above"||m=="near"){var D=Math.max(_.wrapper.clientHeight,this.doc.height),G=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(m=="above"||l.bottom+u.offsetHeight>D)&&l.top>u.offsetHeight?S=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=D&&(S=l.bottom),$+u.offsetWidth>G&&($=G-u.offsetWidth)}u.style.top=S+"px",u.style.left=u.style.right="",w=="right"?($=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?$=0:w=="middle"&&($=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=$+"px"),g&&Ex(this,{left:$,top:S,right:$+u.offsetWidth,bottom:S+u.offsetHeight})},triggerOnKeyDown:an(Xg),triggerOnKeyPress:an(Zg),triggerOnKeyUp:Yg,triggerOnMouseDown:an(Jg),execCommand:function(l){if(pl.hasOwnProperty(l))return pl[l].call(null,this)},triggerElectric:an(function(l){ov(this,l)}),findPosH:function(l,u,g,m){var w=1;u<0&&(w=-1,u=-u);for(var _=Ke(this.doc,l),S=0;S<u&&(_=If(this.doc,_,w,g,m),!_.hitSide);++S);return _},moveH:an(function(l,u){var g=this;this.extendSelectionsBy(function(m){return g.display.shift||g.doc.extend||m.empty()?If(g.doc,m.head,l,u,g.options.rtlMoveVisually):l<0?m.from():m.to()},ue)}),deleteH:an(function(l,u){var g=this.doc.sel,m=this.doc;g.somethingSelected()?m.replaceSelection("",null,"+delete"):ss(this,function(w){var _=If(m,w.head,l,u,!1);return l<0?{from:_,to:w.head}:{from:w.head,to:_}})}),findPosV:function(l,u,g,m){var w=1,_=m;u<0&&(w=-1,u=-u);for(var S=Ke(this.doc,l),$=0;$<u;++$){var D=gr(this,S,"div");if(_==null?_=D.left:D.left=_,S=av(this,D,w,g),S.hitSide)break}return S},moveV:an(function(l,u){var g=this,m=this.doc,w=[],_=!this.display.shift&&!m.extend&&m.sel.somethingSelected();if(m.extendSelectionsBy(function($){if(_)return l<0?$.from():$.to();var D=gr(g,$.head,"div");$.goalColumn!=null&&(D.left=$.goalColumn),w.push(D.left);var G=av(g,D,l,u);return u=="page"&&$==m.sel.primary()&&mf(g,Pa(g,G,"div").top-D.top),G},ue),w.length)for(var S=0;S<m.sel.ranges.length;S++)m.sel.ranges[S].goalColumn=w[S]}),findWordAt:function(l){var u=this.doc,g=Oe(u,l.line).text,m=l.ch,w=l.ch;if(g){var _=this.getHelper(l,"wordChars");(l.sticky=="before"||w==g.length)&&m?--m:++w;for(var S=g.charAt(m),$=Ge(S,_)?function(D){return Ge(D,_)}:/\s/.test(S)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!Ge(D)};m>0&&$(g.charAt(m-1));)--m;for(;w<g.length&&$(g.charAt(w));)++w}return new ht(Q(l.line,m),Q(l.line,w))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ne(this.display.cursorDiv,"CodeMirror-overwrite"):Z(this.display.cursorDiv,"CodeMirror-overwrite"),Et(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye(rt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:an(function(l,u){Qs(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Ar(this)-this.display.barHeight,width:l.scrollWidth-Ar(this)-this.display.barWidth,clientHeight:nf(this),clientWidth:lo(this)}},scrollIntoView:an(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:Q(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?Lx(this,l):tg(this,l.from,l.to,l.margin)}),setSize:an(function(l,u){var g=this,m=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};l!=null&&(this.display.wrapper.style.width=m(l)),u!=null&&(this.display.wrapper.style.height=m(u)),this.options.lineWrapping&&Wp(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(_){if(_.widgets){for(var S=0;S<_.widgets.length;S++)if(_.widgets[S].noHScroll){xi(g,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,Et(this,"refresh",this)}),operation:function(l){return Mn(this,l)},startOperation:function(){return po(this)},endOperation:function(){return go(this)},refresh:an(function(){var l=this.display.cachedTextHeight;vn(this),this.curOp.forceUpdate=!0,Zs(this),Qs(this,this.doc.scrollLeft,this.doc.scrollTop),wf(this.display),(l==null||Math.abs(l-Xo(this.display))>.5||this.options.lineWrapping)&&ff(this),Et(this,"refresh",this)}),swapDoc:an(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),gg(this,l),Zs(this),this.display.input.reset(),Qs(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Bt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[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}},cr(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,m){n.registerHelper(l,u,m),a[l]._global.push({pred:g,val:m})}}function If(n,i,a,l,u){var g=i,m=a,w=Oe(n,i.line),_=u&&n.direction=="rtl"?-a:a;function S(){var ke=i.line+_;return ke<n.first||ke>=n.first+n.size?!1:(i=new Q(ke,i.ch,i.sticky),w=Oe(n,ke))}function $(ke){var we;if(l=="codepoint"){var Ae=w.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Ae))we=null;else{var He=a>0?Ae>=55296&&Ae<56320:Ae>=56320&&Ae<57343;we=new Q(i.line,Math.max(0,Math.min(w.text.length,i.ch+a*(He?2:1))),-a)}}else u?we=f_(n.cm,w,i,a):we=Mf(w,i,a);if(we==null)if(!ke&&S())i=Nf(u,n.cm,w,i.line,_);else return!1;else i=we;return!0}if(l=="char"||l=="codepoint")$();else if(l=="column")$(!0);else if(l=="word"||l=="group")for(var D=null,G=l=="group",V=n.cm&&n.cm.getHelper(i,"wordChars"),ne=!0;!(a<0&&!$(!ne));ne=!1){var ce=w.text.charAt(i.ch)||`
39
+ `)&&(ne=ce=Q(ne.line,0)));var ve={from:ne,to:ce,text:S?S[G%S.length]:_,origin:u||(w?"paste":n.state.cutIncoming>m?"cut":"+input")};ns(n.doc,ve),Bt(n,"inputRead",n,ve)}i&&!w&&ov(n,i),Jo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=D),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function iv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Mn(i,function(){return Df(i,a,0,null,"paste")}),!0}function ov(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),m=!1;if(g.electricChars){for(var w=0;w<g.electricChars.length;w++)if(i.indexOf(g.electricChars.charAt(w))>-1){m=yl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Oe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(m=yl(n,u.head.line,"smart"));m&&Bt(n,"electricInput",n,u.head.line)}}}function sv(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:Q(u,0),head:Q(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function zf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function lv(){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 M_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Le(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,m=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Wt(this,i[l])(this,u,m),Et(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](Ka(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:an(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");pe(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(m){return m.priority}),this.state.modeGen++,vn(this)}),removeOverlay:an(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var m=u[g].modeSpec;if(m==l||typeof l=="string"&&m.name==l){u.splice(g,1),this.state.modeGen++,vn(this);return}}}),indentLine:an(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),se(this.doc,l)&&yl(this,l,u,g)}),indentSelection:an(function(l){for(var u=this.doc.sel.ranges,g=-1,m=0;m<u.length;m++){var w=u[m];if(w.empty())w.head.line>g&&(yl(this,w.head.line,l,!0),g=w.head.line,m==this.doc.sel.primIndex&&Jo(this));else{var _=w.from(),S=w.to(),$=Math.max(g,_.line);g=Math.min(this.lastLine(),S.line-(S.ch?0:1))+1;for(var D=$;D<g;++D)yl(this,D,l);var G=this.doc.sel.ranges;_.ch==0&&u.length==G.length&&G[m].from().ch>0&&Lf(this.doc,m,new ht(_,G[m].to()),F)}}}),getTokenAt:function(l,u){return mp(this,l,u)},getLineTokens:function(l,u){return mp(this,Q(l),u,!0)},getTokenTypeAt:function(l){l=Ke(this.doc,l);var u=pp(this,Oe(this.doc,l.line)),g=0,m=(u.length-1)/2,w=l.ch,_;if(w==0)_=u[2];else for(;;){var S=g+m>>1;if((S?u[S*2-1]:0)>=w)m=S;else if(u[S*2+1]<w)g=S+1;else{_=u[S*2+2];break}}var $=_?_.indexOf("overlay "):-1;return $<0?_:$==0?null:_.slice(0,$-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var m=a[u],w=this.getModeAt(l);if(typeof w[u]=="string")m[w[u]]&&g.push(m[w[u]]);else if(w[u])for(var _=0;_<w[u].length;_++){var S=m[w[u][_]];S&&g.push(S)}else w.helperType&&m[w.helperType]?g.push(m[w.helperType]):m[w.name]&&g.push(m[w.name]);for(var $=0;$<m._global.length;$++){var D=m._global[$];D.pred(w,this)&&Ee(g,D.val)==-1&&g.push(D.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=fp(g,l??g.first+g.size-1),js(this,l+1,u).state},cursorCoords:function(l,u){var g,m=this.doc.sel.primary();return l==null?g=m.head:typeof l=="object"?g=Ke(this.doc,l):g=l?m.from():m.to(),gr(this,g,u||"page")},charCoords:function(l,u){return Pa(this,Ke(this.doc,l),u||"page")},coordsChar:function(l,u){return l=jp(this,l,u||"page"),lf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=jp(this,{top:l,left:0},u||"page").top,R(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var m=!1,w;if(typeof l=="number"){var _=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>_&&(l=_,m=!0),w=Oe(this.doc,l)}else w=l;return $a(this,w,{top:0,left:0},u||"page",g||m).top+(m?this.doc.height-Yr(w):0)},defaultTextHeight:function(){return Xo(this.display)},defaultCharWidth:function(){return Yo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,m,w){var _=this.display;l=gr(this,Ke(this.doc,l));var S=l.bottom,$=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),m=="over")S=l.top;else if(m=="above"||m=="near"){var D=Math.max(_.wrapper.clientHeight,this.doc.height),G=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(m=="above"||l.bottom+u.offsetHeight>D)&&l.top>u.offsetHeight?S=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=D&&(S=l.bottom),$+u.offsetWidth>G&&($=G-u.offsetWidth)}u.style.top=S+"px",u.style.left=u.style.right="",w=="right"?($=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?$=0:w=="middle"&&($=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=$+"px"),g&&Ex(this,{left:$,top:S,right:$+u.offsetWidth,bottom:S+u.offsetHeight})},triggerOnKeyDown:an(Xg),triggerOnKeyPress:an(Zg),triggerOnKeyUp:Yg,triggerOnMouseDown:an(Jg),execCommand:function(l){if(pl.hasOwnProperty(l))return pl[l].call(null,this)},triggerElectric:an(function(l){ov(this,l)}),findPosH:function(l,u,g,m){var w=1;u<0&&(w=-1,u=-u);for(var _=Ke(this.doc,l),S=0;S<u&&(_=If(this.doc,_,w,g,m),!_.hitSide);++S);return _},moveH:an(function(l,u){var g=this;this.extendSelectionsBy(function(m){return g.display.shift||g.doc.extend||m.empty()?If(g.doc,m.head,l,u,g.options.rtlMoveVisually):l<0?m.from():m.to()},ue)}),deleteH:an(function(l,u){var g=this.doc.sel,m=this.doc;g.somethingSelected()?m.replaceSelection("",null,"+delete"):ss(this,function(w){var _=If(m,w.head,l,u,!1);return l<0?{from:_,to:w.head}:{from:w.head,to:_}})}),findPosV:function(l,u,g,m){var w=1,_=m;u<0&&(w=-1,u=-u);for(var S=Ke(this.doc,l),$=0;$<u;++$){var D=gr(this,S,"div");if(_==null?_=D.left:D.left=_,S=av(this,D,w,g),S.hitSide)break}return S},moveV:an(function(l,u){var g=this,m=this.doc,w=[],_=!this.display.shift&&!m.extend&&m.sel.somethingSelected();if(m.extendSelectionsBy(function($){if(_)return l<0?$.from():$.to();var D=gr(g,$.head,"div");$.goalColumn!=null&&(D.left=$.goalColumn),w.push(D.left);var G=av(g,D,l,u);return u=="page"&&$==m.sel.primary()&&mf(g,Pa(g,G,"div").top-D.top),G},ue),w.length)for(var S=0;S<m.sel.ranges.length;S++)m.sel.ranges[S].goalColumn=w[S]}),findWordAt:function(l){var u=this.doc,g=Oe(u,l.line).text,m=l.ch,w=l.ch;if(g){var _=this.getHelper(l,"wordChars");(l.sticky=="before"||w==g.length)&&m?--m:++w;for(var S=g.charAt(m),$=Ge(S,_)?function(D){return Ge(D,_)}:/\s/.test(S)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!Ge(D)};m>0&&$(g.charAt(m-1));)--m;for(;w<g.length&&$(g.charAt(w));)++w}return new ht(Q(l.line,m),Q(l.line,w))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ne(this.display.cursorDiv,"CodeMirror-overwrite"):Z(this.display.cursorDiv,"CodeMirror-overwrite"),Et(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye(rt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:an(function(l,u){Qs(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Ar(this)-this.display.barHeight,width:l.scrollWidth-Ar(this)-this.display.barWidth,clientHeight:nf(this),clientWidth:lo(this)}},scrollIntoView:an(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:Q(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?Lx(this,l):tg(this,l.from,l.to,l.margin)}),setSize:an(function(l,u){var g=this,m=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};l!=null&&(this.display.wrapper.style.width=m(l)),u!=null&&(this.display.wrapper.style.height=m(u)),this.options.lineWrapping&&Wp(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(_){if(_.widgets){for(var S=0;S<_.widgets.length;S++)if(_.widgets[S].noHScroll){xi(g,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,Et(this,"refresh",this)}),operation:function(l){return Mn(this,l)},startOperation:function(){return po(this)},endOperation:function(){return go(this)},refresh:an(function(){var l=this.display.cachedTextHeight;vn(this),this.curOp.forceUpdate=!0,Zs(this),Qs(this,this.doc.scrollLeft,this.doc.scrollTop),wf(this.display),(l==null||Math.abs(l-Xo(this.display))>.5||this.options.lineWrapping)&&ff(this),Et(this,"refresh",this)}),swapDoc:an(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),gg(this,l),Zs(this),this.display.input.reset(),Qs(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Bt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[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}},cr(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,m){n.registerHelper(l,u,m),a[l]._global.push({pred:g,val:m})}}function If(n,i,a,l,u){var g=i,m=a,w=Oe(n,i.line),_=u&&n.direction=="rtl"?-a:a;function S(){var ke=i.line+_;return ke<n.first||ke>=n.first+n.size?!1:(i=new Q(ke,i.ch,i.sticky),w=Oe(n,ke))}function $(ke){var we;if(l=="codepoint"){var Ae=w.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Ae))we=null;else{var He=a>0?Ae>=55296&&Ae<56320:Ae>=56320&&Ae<57343;we=new Q(i.line,Math.max(0,Math.min(w.text.length,i.ch+a*(He?2:1))),-a)}}else u?we=f_(n.cm,w,i,a):we=Mf(w,i,a);if(we==null)if(!ke&&S())i=Nf(u,n.cm,w,i.line,_);else return!1;else i=we;return!0}if(l=="char"||l=="codepoint")$();else if(l=="column")$(!0);else if(l=="word"||l=="group")for(var D=null,G=l=="group",V=n.cm&&n.cm.getHelper(i,"wordChars"),ne=!0;!(a<0&&!$(!ne));ne=!1){var ce=w.text.charAt(i.ch)||`
40
40
  `,ve=Ge(ce,V)?"w":G&&ce==`
41
41
  `?"n":!G||/\s/.test(ce)?null:"p";if(G&&!ne&&!ve&&(ve="s"),D&&D!=ve){a<0&&(a=1,$(),i.sticky="after");break}if(ve&&(D=ve),a>0&&!$(!ne))break}var be=Va(n,i,g,m,!0);return dt(g,be)&&(be.hitSide=!0),be}function av(n,i,a,l){var u=n.doc,g=i.left,m;if(l=="page"){var w=Math.min(n.display.wrapper.clientHeight,Le(n).innerHeight||u(n).documentElement.clientHeight),_=Math.max(w-.5*Xo(n.display),3);m=(a>0?i.bottom:i.top)+a*_}else l=="line"&&(m=a>0?i.bottom+3:i.top-3);for(var S;S=lf(n,g,m),!!S.outside;){if(a<0?m<=0:m>=u.height){S.hitSide=!0;break}m+=a*5}return S}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $e,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,zf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(w){for(var _=w.target;_;_=_.parentNode){if(_==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}Fe(u,"paste",function(w){!g(w)||Lt(l,w)||iv(w,l)||p<=11&&setTimeout(Wt(l,function(){return i.updateFromDOM()}),20)}),Fe(u,"compositionstart",function(w){i.composing={data:w.data,done:!1}}),Fe(u,"compositionupdate",function(w){i.composing||(i.composing={data:w.data,done:!1})}),Fe(u,"compositionend",function(w){i.composing&&(w.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Fe(u,"touchstart",function(){return a.forceCompositionEnd()}),Fe(u,"input",function(){i.composing||i.readFromDOMSoon()});function m(w){if(!(!g(w)||Lt(l,w))){if(l.somethingSelected())Za({lineWise:!1,text:l.getSelections()}),w.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var _=sv(l);Za({lineWise:!0,text:_.text}),w.type=="cut"&&l.operation(function(){l.setSelections(_.ranges,0,F),l.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();var S=mr.text.join(`
42
42
  `);if(w.clipboardData.setData("Text",S),w.clipboardData.getData("Text")==S){w.preventDefault();return}}var $=lv(),D=$.firstChild;zf(D),l.display.lineSpace.insertBefore($,l.display.lineSpace.firstChild),D.value=mr.text.join(`
43
- `);var G=ye(Je(u));je(D),setTimeout(function(){l.display.lineSpace.removeChild($),G.focus(),G==u&&a.showPrimarySelection()},50)}}Fe(u,"copy",m),Fe(u,"cut",m)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=Jp(this.cm,!1);return n.focus=ye(Je(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=Ja(i,n.anchorNode,n.anchorOffset),m=Ja(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&m&&!m.bad&&_e(Vo(g,m),l)==0&&_e(gn(g,m),u)==0)){var w=i.display.view,_=l.line>=i.display.viewFrom&&cv(i,l)||{node:w[0].measure.map[2],offset:0},S=u.line<i.display.viewTo&&cv(i,u);if(!S){var $=w[w.length-1].measure,D=$.maps?$.maps[$.maps.length-1]:$.map;S={node:D[D.length-1],offset:D[D.length-2]-D[D.length-3]}}if(!_||!S){n.removeAllRanges();return}var G=n.rangeCount&&n.getRangeAt(0),V;try{V=U(_.node,_.offset,S.offset,S.node)}catch{}V&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),V.collapsed||(n.removeAllRanges(),n.addRange(V))):(n.removeAllRanges(),n.addRange(V)),G&&n.anchorNode==null?n.addRange(G):s&&this.startGracePeriod()),this.rememberSelection()}},yt.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)},yt.prototype.showMultipleSelections=function(n){I(this.cm.display.cursorDiv,n.cursors),I(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return re(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ye(Je(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Mn(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)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(P&&b&&this.cm.display.gutterSpecs.length&&N_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Ja(i,n.anchorNode,n.anchorOffset),l=Ja(i,n.focusNode,n.focusOffset);a&&l&&Mn(i,function(){nn(i.doc,Si(a,l),F),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.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(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=Q(l.line-1,Oe(n.doc,l.line-1).length)),u.ch==Oe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=Q(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,m,w;l.line==i.viewFrom||(g=uo(n,l.line))==0?(m=T(i.view[0].line),w=i.view[0].node):(m=T(i.view[g].line),w=i.view[g-1].node.nextSibling);var _=uo(n,u.line),S,$;if(_==i.view.length-1?(S=i.viewTo-1,$=i.lineDiv.lastChild):(S=T(i.view[_+1].line)-1,$=i.view[_+1].node.previousSibling),!w)return!1;for(var D=n.doc.splitLines($_(n,w,$,m,S)),G=Kr(n.doc,Q(m,0),Q(S,Oe(n.doc,S).text.length));D.length>1&&G.length>1;)if(fe(D)==fe(G))D.pop(),G.pop(),S--;else if(D[0]==G[0])D.shift(),G.shift(),m++;else break;for(var V=0,ne=0,ce=D[0],ve=G[0],be=Math.min(ce.length,ve.length);V<be&&ce.charCodeAt(V)==ve.charCodeAt(V);)++V;for(var ke=fe(D),we=fe(G),Ae=Math.min(ke.length-(D.length==1?V:0),we.length-(G.length==1?V:0));ne<Ae&&ke.charCodeAt(ke.length-ne-1)==we.charCodeAt(we.length-ne-1);)++ne;if(D.length==1&&G.length==1&&m==l.line)for(;V&&V>l.ch&&ke.charCodeAt(ke.length-ne-1)==we.charCodeAt(we.length-ne-1);)V--,ne++;D[D.length-1]=ke.slice(0,ke.length-ne).replace(/^\u200b+/,""),D[0]=D[0].slice(V).replace(/\u200b+$/,"");var He=Q(m,V),De=Q(S,G.length?fe(G).length-ne:0);if(D.length>1||D[0]||_e(He,De))return rs(n.doc,D,He,De,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.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))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Mn(this.cm,function(){return vn(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Wt(this.cm,Df)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function cv(n,i){var a=rf(n,i.line);if(!a||a.hidden)return null;var l=Oe(n.doc,i.line),u=Ip(a,l,i.line),g=Ve(l,n.doc.direction),m="left";if(g){var w=ar(g,i.ch);m=w%2?"right":"left"}var _=qp(u.map,i.ch,m);return _.offset=_.collapse=="right"?_.end:_.start,_}function N_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function as(n,i){return i&&(n.bad=!0),n}function $_(n,i,a,l,u){var g="",m=!1,w=n.doc.lineSeparator(),_=!1;function S(V){return function(ne){return ne.id==V}}function $(){m&&(g+=w,_&&(g+=w),m=_=!1)}function D(V){V&&($(),g+=V)}function G(V){if(V.nodeType==1){var ne=V.getAttribute("cm-text");if(ne){D(ne);return}var ce=V.getAttribute("cm-marker"),ve;if(ce){var be=n.findMarks(Q(l,0),Q(u+1,0),S(+ce));be.length&&(ve=be[0].find(0))&&D(Kr(n.doc,ve.from,ve.to).join(w));return}if(V.getAttribute("contenteditable")=="false")return;var ke=/^(pre|div|p|li|table|br)$/i.test(V.nodeName);if(!/^br$/i.test(V.nodeName)&&V.textContent.length==0)return;ke&&$();for(var we=0;we<V.childNodes.length;we++)G(V.childNodes[we]);/^(pre|p)$/i.test(V.nodeName)&&(_=!0),ke&&(m=!0)}else V.nodeType==3&&D(V.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;G(i),i!=a;)i=i.nextSibling,_=!1;return g}function Ja(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return as(n.clipPos(Q(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 u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return P_(g,i,a)}}function P_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!re(l,i))return as(Q(T(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?fe(n.rest):n.line;return as(Q(T(g),g.text.length),u)}var m=i.nodeType==3?i:null,w=i;for(!m&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(m=i.firstChild,a&&(a=m.nodeValue.length));w.parentNode!=l;)w=w.parentNode;var _=n.measure,S=_.maps;function $(ve,be,ke){for(var we=-1;we<(S?S.length:0);we++)for(var Ae=we<0?_.map:S[we],He=0;He<Ae.length;He+=3){var De=Ae[He+2];if(De==ve||De==be){var Qe=T(we<0?n.line:n.rest[we]),xt=Ae[He]+ke;return(ke<0||De!=ve)&&(xt=Ae[He+(ke?1:0)]),Q(Qe,xt)}}}var D=$(m,w,a);if(D)return as(D,u);for(var G=w.nextSibling,V=m?m.nodeValue.length-a:0;G;G=G.nextSibling){if(D=$(G,G.firstChild,0),D)return as(Q(D.line,D.ch-V),u);V+=G.textContent.length}for(var ne=w.previousSibling,ce=a;ne;ne=ne.previousSibling){if(D=$(ne,ne.firstChild,-1),D)return as(Q(D.line,D.ch+ce),u);ce+=ne.textContent.length}}var Nt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new $e,this.hasSelection=!1,this.composing=null,this.resetting=!1};Nt.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),A&&(u.style.width="0px"),Fe(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Fe(u,"paste",function(m){Lt(l,m)||iv(m,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(m){if(!Lt(l,m)){if(l.somethingSelected())Za({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var w=sv(l);Za({lineWise:!0,text:w.text}),m.type=="cut"?l.setSelections(w.ranges,null,F):(a.prevInput="",u.value=w.text.join(`
44
- `),je(u))}else return;m.type=="cut"&&(l.state.cutIncoming=+new Date)}}Fe(u,"cut",g),Fe(u,"copy",g),Fe(n.scroller,"paste",function(m){if(!(Zr(n,m)||Lt(l,m))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var w=new Event("paste");w.clipboardData=m.clipboardData,u.dispatchEvent(w)}}),Fe(n.lineSpace,"selectstart",function(m){Zr(n,m)||tn(m)}),Fe(u,"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"})}}),Fe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Nt.prototype.createField=function(n){this.wrapper=lv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;zf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Nt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Nt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Jp(n);if(n.options.moveInputWithCursor){var u=gr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),m=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+m.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+m.left-g.left))}return l},Nt.prototype.showSelection=function(n){var i=this.cm,a=i.display;I(a.cursorDiv,n.cursors),I(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Nt.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&&je(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Nt.prototype.getField=function(){return this.textarea},Nt.prototype.supportsTouch=function(){return!1},Nt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!M||ye(Je(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Nt.prototype.blur=function(){this.textarea.blur()},Nt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Nt.prototype.receivedFocus=function(){this.slowPoll()},Nt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Nt.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)},Nt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||yi(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||q&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l="​"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var m=0,w=Math.min(l.length,u.length);m<w&&l.charCodeAt(m)==u.charCodeAt(m);)++m;return Mn(i,function(){Df(i,u.slice(m),l.length-m,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
45
- `)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Nt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Nt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Nt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=co(a,n),m=l.scroller.scrollTop;if(!g||E)return;var w=a.options.resetSelectionOnContextMenu;w&&a.doc.sel.contains(g)==-1&&Wt(a,nn)(a.doc,Si(g),F);var _=u.style.cssText,S=i.wrapper.style.cssText,$=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
43
+ `);var G=ye(Je(u));je(D),setTimeout(function(){l.display.lineSpace.removeChild($),G.focus(),G==u&&a.showPrimarySelection()},50)}}Fe(u,"copy",m),Fe(u,"cut",m)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=Jp(this.cm,!1);return n.focus=ye(Je(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=Ja(i,n.anchorNode,n.anchorOffset),m=Ja(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&m&&!m.bad&&_e(Vo(g,m),l)==0&&_e(gn(g,m),u)==0)){var w=i.display.view,_=l.line>=i.display.viewFrom&&cv(i,l)||{node:w[0].measure.map[2],offset:0},S=u.line<i.display.viewTo&&cv(i,u);if(!S){var $=w[w.length-1].measure,D=$.maps?$.maps[$.maps.length-1]:$.map;S={node:D[D.length-1],offset:D[D.length-2]-D[D.length-3]}}if(!_||!S){n.removeAllRanges();return}var G=n.rangeCount&&n.getRangeAt(0),V;try{V=U(_.node,_.offset,S.offset,S.node)}catch{}V&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),V.collapsed||(n.removeAllRanges(),n.addRange(V))):(n.removeAllRanges(),n.addRange(V)),G&&n.anchorNode==null?n.addRange(G):s&&this.startGracePeriod()),this.rememberSelection()}},yt.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)},yt.prototype.showMultipleSelections=function(n){I(this.cm.display.cursorDiv,n.cursors),I(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return re(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ye(Je(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Mn(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)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(P&&b&&this.cm.display.gutterSpecs.length&&N_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Ja(i,n.anchorNode,n.anchorOffset),l=Ja(i,n.focusNode,n.focusOffset);a&&l&&Mn(i,function(){nn(i.doc,Si(a,l),F),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.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(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=Q(l.line-1,Oe(n.doc,l.line-1).length)),u.ch==Oe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=Q(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,m,w;l.line==i.viewFrom||(g=uo(n,l.line))==0?(m=C(i.view[0].line),w=i.view[0].node):(m=C(i.view[g].line),w=i.view[g-1].node.nextSibling);var _=uo(n,u.line),S,$;if(_==i.view.length-1?(S=i.viewTo-1,$=i.lineDiv.lastChild):(S=C(i.view[_+1].line)-1,$=i.view[_+1].node.previousSibling),!w)return!1;for(var D=n.doc.splitLines($_(n,w,$,m,S)),G=Kr(n.doc,Q(m,0),Q(S,Oe(n.doc,S).text.length));D.length>1&&G.length>1;)if(fe(D)==fe(G))D.pop(),G.pop(),S--;else if(D[0]==G[0])D.shift(),G.shift(),m++;else break;for(var V=0,ne=0,ce=D[0],ve=G[0],be=Math.min(ce.length,ve.length);V<be&&ce.charCodeAt(V)==ve.charCodeAt(V);)++V;for(var ke=fe(D),we=fe(G),Ae=Math.min(ke.length-(D.length==1?V:0),we.length-(G.length==1?V:0));ne<Ae&&ke.charCodeAt(ke.length-ne-1)==we.charCodeAt(we.length-ne-1);)++ne;if(D.length==1&&G.length==1&&m==l.line)for(;V&&V>l.ch&&ke.charCodeAt(ke.length-ne-1)==we.charCodeAt(we.length-ne-1);)V--,ne++;D[D.length-1]=ke.slice(0,ke.length-ne).replace(/^\u200b+/,""),D[0]=D[0].slice(V).replace(/\u200b+$/,"");var He=Q(m,V),De=Q(S,G.length?fe(G).length-ne:0);if(D.length>1||D[0]||_e(He,De))return rs(n.doc,D,He,De,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.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))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Mn(this.cm,function(){return vn(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Wt(this.cm,Df)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function cv(n,i){var a=rf(n,i.line);if(!a||a.hidden)return null;var l=Oe(n.doc,i.line),u=Ip(a,l,i.line),g=Ve(l,n.doc.direction),m="left";if(g){var w=ar(g,i.ch);m=w%2?"right":"left"}var _=qp(u.map,i.ch,m);return _.offset=_.collapse=="right"?_.end:_.start,_}function N_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function as(n,i){return i&&(n.bad=!0),n}function $_(n,i,a,l,u){var g="",m=!1,w=n.doc.lineSeparator(),_=!1;function S(V){return function(ne){return ne.id==V}}function $(){m&&(g+=w,_&&(g+=w),m=_=!1)}function D(V){V&&($(),g+=V)}function G(V){if(V.nodeType==1){var ne=V.getAttribute("cm-text");if(ne){D(ne);return}var ce=V.getAttribute("cm-marker"),ve;if(ce){var be=n.findMarks(Q(l,0),Q(u+1,0),S(+ce));be.length&&(ve=be[0].find(0))&&D(Kr(n.doc,ve.from,ve.to).join(w));return}if(V.getAttribute("contenteditable")=="false")return;var ke=/^(pre|div|p|li|table|br)$/i.test(V.nodeName);if(!/^br$/i.test(V.nodeName)&&V.textContent.length==0)return;ke&&$();for(var we=0;we<V.childNodes.length;we++)G(V.childNodes[we]);/^(pre|p)$/i.test(V.nodeName)&&(_=!0),ke&&(m=!0)}else V.nodeType==3&&D(V.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;G(i),i!=a;)i=i.nextSibling,_=!1;return g}function Ja(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return as(n.clipPos(Q(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 u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return P_(g,i,a)}}function P_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!re(l,i))return as(Q(C(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?fe(n.rest):n.line;return as(Q(C(g),g.text.length),u)}var m=i.nodeType==3?i:null,w=i;for(!m&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(m=i.firstChild,a&&(a=m.nodeValue.length));w.parentNode!=l;)w=w.parentNode;var _=n.measure,S=_.maps;function $(ve,be,ke){for(var we=-1;we<(S?S.length:0);we++)for(var Ae=we<0?_.map:S[we],He=0;He<Ae.length;He+=3){var De=Ae[He+2];if(De==ve||De==be){var Qe=C(we<0?n.line:n.rest[we]),xt=Ae[He]+ke;return(ke<0||De!=ve)&&(xt=Ae[He+(ke?1:0)]),Q(Qe,xt)}}}var D=$(m,w,a);if(D)return as(D,u);for(var G=w.nextSibling,V=m?m.nodeValue.length-a:0;G;G=G.nextSibling){if(D=$(G,G.firstChild,0),D)return as(Q(D.line,D.ch-V),u);V+=G.textContent.length}for(var ne=w.previousSibling,ce=a;ne;ne=ne.previousSibling){if(D=$(ne,ne.firstChild,-1),D)return as(Q(D.line,D.ch+ce),u);ce+=ne.textContent.length}}var Nt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new $e,this.hasSelection=!1,this.composing=null,this.resetting=!1};Nt.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),M&&(u.style.width="0px"),Fe(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Fe(u,"paste",function(m){Lt(l,m)||iv(m,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(m){if(!Lt(l,m)){if(l.somethingSelected())Za({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var w=sv(l);Za({lineWise:!0,text:w.text}),m.type=="cut"?l.setSelections(w.ranges,null,F):(a.prevInput="",u.value=w.text.join(`
44
+ `),je(u))}else return;m.type=="cut"&&(l.state.cutIncoming=+new Date)}}Fe(u,"cut",g),Fe(u,"copy",g),Fe(n.scroller,"paste",function(m){if(!(Zr(n,m)||Lt(l,m))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var w=new Event("paste");w.clipboardData=m.clipboardData,u.dispatchEvent(w)}}),Fe(n.lineSpace,"selectstart",function(m){Zr(n,m)||tn(m)}),Fe(u,"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"})}}),Fe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Nt.prototype.createField=function(n){this.wrapper=lv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;zf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Nt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Nt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Jp(n);if(n.options.moveInputWithCursor){var u=gr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),m=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+m.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+m.left-g.left))}return l},Nt.prototype.showSelection=function(n){var i=this.cm,a=i.display;I(a.cursorDiv,n.cursors),I(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Nt.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&&je(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Nt.prototype.getField=function(){return this.textarea},Nt.prototype.supportsTouch=function(){return!1},Nt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!N||ye(Je(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Nt.prototype.blur=function(){this.textarea.blur()},Nt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Nt.prototype.receivedFocus=function(){this.slowPoll()},Nt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Nt.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)},Nt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||yi(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||q&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l="​"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var m=0,w=Math.min(l.length,u.length);m<w&&l.charCodeAt(m)==u.charCodeAt(m);)++m;return Mn(i,function(){Df(i,u.slice(m),l.length-m,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
45
+ `)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Nt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Nt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Nt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=co(a,n),m=l.scroller.scrollTop;if(!g||A)return;var w=a.options.resetSelectionOnContextMenu;w&&a.doc.sel.contains(g)==-1&&Wt(a,nn)(a.doc,Si(g),F);var _=u.style.cssText,S=i.wrapper.style.cssText,$=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
46
46
  top: `+(n.clientY-$.top-5)+"px; left: "+(n.clientX-$.left-5)+`px;
47
47
  z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
48
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;v&&(D=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,D),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=V,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function G(){if(u.selectionStart!=null){var ce=a.somethingSelected(),ve="​"+(ce?u.value:"");u.value="⇚",u.value=ve,i.prevInput=ce?"":"​",u.selectionStart=1,u.selectionEnd=ve.length,l.selForContextMenu=a.doc.sel}}function V(){if(i.contextMenuPending==V&&(i.contextMenuPending=!1,i.wrapper.style.cssText=S,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=m),u.selectionStart!=null)){(!h||h&&p<9)&&G();var ce=0,ve=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?Wt(a,Lg)(a):ce++<10?l.detectingSelectAll=setTimeout(ve,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ve,200)}}if(h&&p>=9&&G(),j){vi(n);var ne=function(){en(window,"mouseup",ne),setTimeout(V,20)};Fe(window,"mouseup",ne)}else setTimeout(V,50)},Nt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Nt.prototype.setUneditable=function(){},Nt.prototype.needsContentAttribute=!1;function O_(n,i){if(i=i?ae(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=ye(Je(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=w.getValue()}var u;if(n.form&&(Fe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var m=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=m}}catch{}}i.finishInit=function(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(en(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=kt(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return w}function R_(n){n.off=en,n.on=Fe,n.wheelEventPixels=Bx,n.Doc=mn,n.splitLines=Jn,n.countColumn=de,n.findColumn=le,n.isWordChar=Ue,n.Pass=O,n.signal=Et,n.Line=jo,n.changeEnd=ki,n.scrollbarModel=ig,n.Pos=Q,n.cmpPos=_e,n.modes=Ho,n.mimeModes=dr,n.resolveMode=qo,n.getMode=Bo,n.modeExtensions=bi,n.extendMode=Wo,n.copyState=Er,n.startState=Uo,n.innerMode=Us,n.commands=pl,n.keyMap=Qr,n.keyName=Ug,n.isModifierKey=Bg,n.lookupKey=os,n.normalizeKeyMap=u_,n.StringStream=At,n.SharedTextMarker=fl,n.TextMarker=Ti,n.LineWidget=ul,n.e_preventDefault=tn,n.e_stopPropagation=Io,n.e_stop=vi,n.addClass=Ne,n.contains=re,n.rmClass=Z,n.keyNames=Ei}T_(kt),M_(kt);var D_="iter insert remove copy getEditor constructor".split(" ");for(var Qa in mn.prototype)mn.prototype.hasOwnProperty(Qa)&&Ee(D_,Qa)<0&&(kt.prototype[Qa]=function(n){return function(){return n.apply(this.doc,arguments)}}(mn.prototype[Qa]));return cr(mn),kt.inputStyles={textarea:Nt,contenteditable:yt},kt.defineMode=function(n){!kt.defaults.mode&&n!="null"&&(kt.defaults.mode=n),hr.apply(this,arguments)},kt.defineMIME=so,kt.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),kt.defineMIME("text/plain","null"),kt.defineExtension=function(n,i){kt.prototype[n]=i},kt.defineDocExtension=function(n,i){mn.prototype[n]=i},kt.fromTextArea=O_,R_(kt),kt.version="5.65.17",kt})})(Gw);var qs=Gw.exports;const yfe=Wb(qs);var bfe={exports:{}};(function(e,t){(function(r){r(qs)})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,y=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function T(qt){return{type:qt,style:"keyword"}}var R=T("keyword a"),se=T("keyword b"),ge=T("keyword c"),Q=T("keyword d"),_e=T("operator"),dt={type:"atom",style:"atom"};return{if:T("if"),while:R,with:R,else:se,do:se,try:se,finally:se,return:Q,break:Q,continue:Q,new:T("new"),delete:ge,void:ge,throw:ge,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:_e,typeof:_e,instanceof:_e,true:dt,false:dt,null:dt,undefined:dt,NaN:dt,Infinity:dt,this:T("this"),class:T("class"),super:T("atom"),yield:ge,export:T("export"),import:T("import"),extends:ge,await:ge}}(),x=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function C(T){for(var R=!1,se,ge=!1;(se=T.next())!=null;){if(!R){if(se=="/"&&!ge)return;se=="["?ge=!0:ge&&se=="]"&&(ge=!1)}R=!R&&se=="\\"}}var L,N;function A(T,R,se){return L=T,N=se,R}function P(T,R){var se=T.next();if(se=='"'||se=="'")return R.tokenize=M(se),R.tokenize(T,R);if(se=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return A("number","number");if(se=="."&&T.match(".."))return A("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(se))return A(se);if(se=="="&&T.eat(">"))return A("=>","operator");if(se=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return A("number","number");if(/\d/.test(se))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),A("number","number");if(se=="/")return T.eat("*")?(R.tokenize=q,q(T,R)):T.eat("/")?(T.skipToEnd(),A("comment","comment")):Bn(T,R,1)?(C(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),A("regexp","string-2")):(T.eat("="),A("operator","operator",T.current()));if(se=="`")return R.tokenize=W,W(T,R);if(se=="#"&&T.peek()=="!")return T.skipToEnd(),A("meta","meta");if(se=="#"&&T.eatWhile(y))return A("variable","property");if(se=="<"&&T.match("!--")||se=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),A("comment","comment");if(x.test(se))return(se!=">"||!R.lexical||R.lexical.type!=">")&&(T.eat("=")?(se=="!"||se=="=")&&T.eat("="):/[<>*+\-|&?]/.test(se)&&(T.eat(se),se==">"&&T.eat(se))),se=="?"&&T.eat(".")?A("."):A("operator","operator",T.current());if(y.test(se)){T.eatWhile(y);var ge=T.current();if(R.lastType!="."){if(b.propertyIsEnumerable(ge)){var Q=b[ge];return A(Q.type,Q.style,ge)}if(ge=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return A("async","keyword",ge)}return A("variable","variable",ge)}}function M(T){return function(R,se){var ge=!1,Q;if(d&&R.peek()=="@"&&R.match(E))return se.tokenize=P,A("jsonld-keyword","meta");for(;(Q=R.next())!=null&&!(Q==T&&!ge);)ge=!ge&&Q=="\\";return ge||(se.tokenize=P),A("string","string")}}function q(T,R){for(var se=!1,ge;ge=T.next();){if(ge=="/"&&se){R.tokenize=P;break}se=ge=="*"}return A("comment","comment")}function W(T,R){for(var se=!1,ge;(ge=T.next())!=null;){if(!se&&(ge=="`"||ge=="$"&&T.eat("{"))){R.tokenize=P;break}se=!se&&ge=="\\"}return A("quasi","string-2",T.current())}var X="([{}])";function ie(T,R){R.fatArrowAt&&(R.fatArrowAt=null);var se=T.string.indexOf("=>",T.start);if(!(se<0)){if(v){var ge=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,se));ge&&(se=ge.index)}for(var Q=0,_e=!1,dt=se-1;dt>=0;--dt){var qt=T.string.charAt(dt),gn=X.indexOf(qt);if(gn>=0&&gn<3){if(!Q){++dt;break}if(--Q==0){qt=="("&&(_e=!0);break}}else if(gn>=3&&gn<6)++Q;else if(y.test(qt))_e=!0;else if(/["'\/`]/.test(qt))for(;;--dt){if(dt==0)return;var Vo=T.string.charAt(dt-1);if(Vo==qt&&T.string.charAt(dt-2)!="\\"){dt--;break}}else if(_e&&!Q){++dt;break}}_e&&!Q&&(R.fatArrowAt=dt)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function j(T,R,se,ge,Q,_e){this.indented=T,this.column=R,this.type=se,this.prev=Q,this.info=_e,ge!=null&&(this.align=ge)}function te(T,R){if(!p)return!1;for(var se=T.localVars;se;se=se.next)if(se.name==R)return!0;for(var ge=T.context;ge;ge=ge.prev)for(var se=ge.vars;se;se=se.next)if(se.name==R)return!0}function Z(T,R,se,ge,Q){var _e=T.cc;for(H.state=T,H.stream=Q,H.marked=null,H.cc=_e,H.style=R,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var dt=_e.length?_e.pop():h?Ee:de;if(dt(se,ge)){for(;_e.length&&_e[_e.length-1].lex;)_e.pop()();return H.marked?H.marked:se=="variable"&&te(T,ge)?"variable-2":R}}}var H={state:null,column:null,marked:null,cc:null};function I(){for(var T=arguments.length-1;T>=0;T--)H.cc.push(arguments[T])}function k(){return I.apply(null,arguments),!0}function B(T,R){for(var se=R;se;se=se.next)if(se.name==T)return!0;return!1}function U(T){var R=H.state;if(H.marked="def",!!p){if(R.context){if(R.lexical.info=="var"&&R.context&&R.context.block){var se=re(T,R.context);if(se!=null){R.context=se;return}}else if(!B(T,R.localVars)){R.localVars=new We(T,R.localVars);return}}s.globalVars&&!B(T,R.globalVars)&&(R.globalVars=new We(T,R.globalVars))}}function re(T,R){if(R)if(R.block){var se=re(T,R.prev);return se?se==R.prev?R:new Ne(se,R.vars,!0):null}else return B(T,R.vars)?R:new Ne(R.prev,new We(T,R.vars),!1);else return null}function ye(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Ne(T,R,se){this.prev=T,this.vars=R,this.block=se}function We(T,R){this.name=T,this.next=R}var je=new We("this",new We("arguments",null));function it(){H.state.context=new Ne(H.state.context,H.state.localVars,!1),H.state.localVars=je}function rt(){H.state.context=new Ne(H.state.context,H.state.localVars,!0),H.state.localVars=null}it.lex=rt.lex=!0;function Je(){H.state.localVars=H.state.context.vars,H.state.context=H.state.context.prev}Je.lex=!0;function Le(T,R){var se=function(){var ge=H.state,Q=ge.indented;if(ge.lexical.type=="stat")Q=ge.lexical.indented;else for(var _e=ge.lexical;_e&&_e.type==")"&&_e.align;_e=_e.prev)Q=_e.indented;ge.lexical=new j(Q,H.stream.column(),T,null,ge.lexical,R)};return se.lex=!0,se}function K(){var T=H.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}K.lex=!0;function ae(T){function R(se){return se==T?k():T==";"||se=="}"||se==")"||se=="]"?I():k(R)}return R}function de(T,R){return T=="var"?k(Le("vardef",R),Io,ae(";"),K):T=="keyword a"?k(Le("form"),O,de,K):T=="keyword b"?k(Le("form"),de,K):T=="keyword d"?H.stream.match(/^\s*$/,!1)?k():k(Le("stat"),J,ae(";"),K):T=="debugger"?k(ae(";")):T=="{"?k(Le("}"),rt,Jt,K,Je):T==";"?k():T=="if"?(H.state.lexical.info=="else"&&H.state.cc[H.state.cc.length-1]==K&&H.state.cc.pop()(),k(Le("form"),O,de,K,Fo)):T=="function"?k(Jn):T=="for"?k(Le("form"),rt,_a,de,Je,K):T=="class"||v&&R=="interface"?(H.marked="keyword",k(Le("form",T=="class"?T:R),Ho,K)):T=="variable"?v&&R=="declare"?(H.marked="keyword",k(de)):v&&(R=="module"||R=="enum"||R=="type")&&H.stream.match(/^\s*\w/,!1)?(H.marked="keyword",R=="enum"?k(Oe):R=="type"?k(Sa,ae("operator"),Ve,ae(";")):k(Le("form"),pn,ae("{"),Le("}"),Jt,K,K)):v&&R=="namespace"?(H.marked="keyword",k(Le("form"),Ee,de,K)):v&&R=="abstract"?(H.marked="keyword",k(de)):k(Le("stat"),Re):T=="switch"?k(Le("form"),O,ae("{"),Le("}","switch"),rt,Jt,K,K,Je):T=="case"?k(Ee,ae(":")):T=="default"?k(ae(":")):T=="catch"?k(Le("form"),it,$e,de,K,Je):T=="export"?k(Le("stat"),qo,K):T=="import"?k(Le("stat"),bi,K):T=="async"?k(de):R=="@"?k(Ee,de):I(Le("stat"),Ee,ae(";"),K)}function $e(T){if(T=="(")return k(fr,ae(")"))}function Ee(T,R){return F(T,R,!1)}function Ze(T,R){return F(T,R,!0)}function O(T){return T!="("?I():k(Le(")"),J,ae(")"),K)}function F(T,R,se){if(H.state.fatArrowAt==H.stream.start){var ge=se?xe:fe;if(T=="(")return k(it,Le(")"),nt(fr,")"),K,ae("=>"),ge,Je);if(T=="variable")return I(it,pn,ae("=>"),ge,Je)}var Q=se?le:ue;return ee.hasOwnProperty(T)?k(Q):T=="function"?k(Jn,Q):T=="class"||v&&R=="interface"?(H.marked="keyword",k(Le("form"),ju,K)):T=="keyword c"||T=="async"?k(se?Ze:Ee):T=="("?k(Le(")"),J,ae(")"),K,Q):T=="operator"||T=="spread"?k(se?Ze:Ee):T=="["?k(Le("]"),At,K,Q):T=="{"?Ft(Ge,"}",null,Q):T=="quasi"?I(he,Q):T=="new"?k(pe(se)):k()}function J(T){return T.match(/[;\}\)\],]/)?I():I(Ee)}function ue(T,R){return T==","?k(J):le(T,R,!1)}function le(T,R,se){var ge=se==!1?ue:le,Q=se==!1?Ee:Ze;if(T=="=>")return k(it,se?xe:fe,Je);if(T=="operator")return/\+\+|--/.test(R)||v&&R=="!"?k(ge):v&&R=="<"&&H.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Le(">"),nt(Ve,">"),K,ge):R=="?"?k(Ee,ae(":"),Q):k(Q);if(T=="quasi")return I(he,ge);if(T!=";"){if(T=="(")return Ft(Ze,")","call",ge);if(T==".")return k(Ue,ge);if(T=="[")return k(Le("]"),J,ae("]"),K,ge);if(v&&R=="as")return H.marked="keyword",k(Ve,ge);if(T=="regexp")return H.state.lastType=H.marked="operator",H.stream.backUp(H.stream.pos-H.stream.start-1),k(Q)}}function he(T,R){return T!="quasi"?I():R.slice(R.length-2)!="${"?k(he):k(J,Se)}function Se(T){if(T=="}")return H.marked="string-2",H.state.tokenize=W,k(he)}function fe(T){return ie(H.stream,H.state),I(T=="{"?de:Ee)}function xe(T){return ie(H.stream,H.state),I(T=="{"?de:Ze)}function pe(T){return function(R){return R=="."?k(T?ze:Me):R=="variable"&&v?k(An,T?le:ue):I(T?Ze:Ee)}}function Me(T,R){if(R=="target")return H.marked="keyword",k(ue)}function ze(T,R){if(R=="target")return H.marked="keyword",k(le)}function Re(T){return T==":"?k(K,de):I(ue,ae(";"),K)}function Ue(T){if(T=="variable")return H.marked="property",k()}function Ge(T,R){if(T=="async")return H.marked="property",k(Ge);if(T=="variable"||H.style=="keyword"){if(H.marked="property",R=="get"||R=="set")return k(mt);var se;return v&&H.state.fatArrowAt==H.stream.start&&(se=H.stream.match(/^\s*:\s*/,!1))&&(H.state.fatArrowAt=H.stream.pos+se[0].length),k(tt)}else{if(T=="number"||T=="string")return H.marked=d?"property":H.style+" property",k(tt);if(T=="jsonld-keyword")return k(tt);if(v&&ye(R))return H.marked="keyword",k(Ge);if(T=="[")return k(Ee,lr,ae("]"),tt);if(T=="spread")return k(Ze,tt);if(R=="*")return H.marked="keyword",k(Ge);if(T==":")return I(tt)}}function mt(T){return T!="variable"?I(tt):(H.marked="property",k(Jn))}function tt(T){if(T==":")return k(Ze);if(T=="(")return I(Jn)}function nt(T,R,se){function ge(Q,_e){if(se?se.indexOf(Q)>-1:Q==","){var dt=H.state.lexical;return dt.info=="call"&&(dt.pos=(dt.pos||0)+1),k(function(qt,gn){return qt==R||gn==R?I():I(T)},ge)}return Q==R||_e==R?k():se&&se.indexOf(";")>-1?I(T):k(ae(R))}return function(Q,_e){return Q==R||_e==R?k():I(T,ge)}}function Ft(T,R,se){for(var ge=3;ge<arguments.length;ge++)H.cc.push(arguments[ge]);return k(Le(R,se),nt(T,R),K)}function Jt(T){return T=="}"?k():I(de,Jt)}function lr(T,R){if(v){if(T==":")return k(Ve);if(R=="?")return k(lr)}}function qn(T,R){if(v&&(T==":"||R=="in"))return k(Ve)}function ar(T){if(v&&T==":")return H.stream.match(/^\s*\w+\s+is\b/,!1)?k(Ee,Qt,Ve):k(Ve)}function Qt(T,R){if(R=="is")return H.marked="keyword",k()}function Ve(T,R){if(R=="keyof"||R=="typeof"||R=="infer"||R=="readonly")return H.marked="keyword",k(R=="typeof"?Ze:Ve);if(T=="variable"||R=="void")return H.marked="type",k(Zn);if(R=="|"||R=="&")return k(Ve);if(T=="string"||T=="number"||T=="atom")return k(Zn);if(T=="[")return k(Le("]"),nt(Ve,"]",","),K,Zn);if(T=="{")return k(Le("}"),Fe,K,Zn);if(T=="(")return k(nt(Lt,")"),oo,Zn);if(T=="<")return k(nt(Ve,">"),Ve);if(T=="quasi")return I(en,Zn)}function oo(T){if(T=="=>")return k(Ve)}function Fe(T){return T.match(/[\}\)\]]/)?k():T==","||T==";"?k(Fe):I(Gr,Fe)}function Gr(T,R){if(T=="variable"||H.style=="keyword")return H.marked="property",k(Gr);if(R=="?"||T=="number"||T=="string")return k(Gr);if(T==":")return k(Ve);if(T=="[")return k(ae("variable"),qn,ae("]"),Gr);if(T=="(")return I(yi,Gr);if(!T.match(/[;\}\)\],]/))return k()}function en(T,R){return T!="quasi"?I():R.slice(R.length-2)!="${"?k(en):k(Ve,Et)}function Et(T){if(T=="}")return H.marked="string-2",H.state.tokenize=W,k(en)}function Lt(T,R){return T=="variable"&&H.stream.match(/^\s*[?:]/,!1)||R=="?"?k(Lt):T==":"?k(Ve):T=="spread"?k(Lt):I(Ve)}function Zn(T,R){if(R=="<")return k(Le(">"),nt(Ve,">"),K,Zn);if(R=="|"||T=="."||R=="&")return k(Ve);if(T=="[")return k(Ve,ae("]"),Zn);if(R=="extends"||R=="implements")return H.marked="keyword",k(Ve);if(R=="?")return k(Ve,ae(":"),Ve)}function An(T,R){if(R=="<")return k(Le(">"),nt(Ve,">"),K,Zn)}function cr(){return I(Ve,tn)}function tn(T,R){if(R=="=")return k(Ve)}function Io(T,R){return R=="enum"?(H.marked="keyword",k(Oe)):I(pn,lr,ur,Vu)}function pn(T,R){if(v&&ye(R))return H.marked="keyword",k(pn);if(T=="variable")return U(R),k();if(T=="spread")return k(pn);if(T=="[")return Ft(Bs,"]");if(T=="{")return Ft(vi,"}")}function vi(T,R){return T=="variable"&&!H.stream.match(/^\s*:/,!1)?(U(R),k(ur)):(T=="variable"&&(H.marked="property"),T=="spread"?k(pn):T=="}"?I():T=="["?k(Ee,ae("]"),ae(":"),vi):k(ae(":"),pn,ur))}function Bs(){return I(pn,ur)}function ur(T,R){if(R=="=")return k(Ze)}function Vu(T){if(T==",")return k(Io)}function Fo(T,R){if(T=="keyword b"&&R=="else")return k(Le("form","else"),de,K)}function _a(T,R){if(R=="await")return k(_a);if(T=="(")return k(Le(")"),Ws,K)}function Ws(T){return T=="var"?k(Io,mi):T=="variable"?k(mi):I(mi)}function mi(T,R){return T==")"?k():T==";"?k(mi):R=="in"||R=="of"?(H.marked="keyword",k(Ee,mi)):I(Ee,mi)}function Jn(T,R){if(R=="*")return H.marked="keyword",k(Jn);if(T=="variable")return U(R),k(Jn);if(T=="(")return k(it,Le(")"),nt(fr,")"),K,ar,de,Je);if(v&&R=="<")return k(Le(">"),nt(cr,">"),K,Jn)}function yi(T,R){if(R=="*")return H.marked="keyword",k(yi);if(T=="variable")return U(R),k(yi);if(T=="(")return k(it,Le(")"),nt(fr,")"),K,ar,Je);if(v&&R=="<")return k(Le(">"),nt(cr,">"),K,yi)}function Sa(T,R){if(T=="keyword"||T=="variable")return H.marked="type",k(Sa);if(R=="<")return k(Le(">"),nt(cr,">"),K)}function fr(T,R){return R=="@"&&k(Ee,fr),T=="spread"?k(fr):v&&ye(R)?(H.marked="keyword",k(fr)):v&&T=="this"?k(lr,ur):I(pn,lr,ur)}function ju(T,R){return T=="variable"?Ho(T,R):dr(T,R)}function Ho(T,R){if(T=="variable")return U(R),k(dr)}function dr(T,R){if(R=="<")return k(Le(">"),nt(cr,">"),K,dr);if(R=="extends"||R=="implements"||v&&T==",")return R=="implements"&&(H.marked="keyword"),k(v?Ve:Ee,dr);if(T=="{")return k(Le("}"),hr,K)}function hr(T,R){if(T=="async"||T=="variable"&&(R=="static"||R=="get"||R=="set"||v&&ye(R))&&H.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return H.marked="keyword",k(hr);if(T=="variable"||H.style=="keyword")return H.marked="property",k(so,hr);if(T=="number"||T=="string")return k(so,hr);if(T=="[")return k(Ee,lr,ae("]"),so,hr);if(R=="*")return H.marked="keyword",k(hr);if(v&&T=="(")return I(yi,hr);if(T==";"||T==",")return k(hr);if(T=="}")return k();if(R=="@")return k(Ee,hr)}function so(T,R){if(R=="!"||R=="?")return k(so);if(T==":")return k(Ve,ur);if(R=="=")return k(Ze);var se=H.state.lexical.prev,ge=se&&se.info=="interface";return I(ge?yi:Jn)}function qo(T,R){return R=="*"?(H.marked="keyword",k(Uo,ae(";"))):R=="default"?(H.marked="keyword",k(Ee,ae(";"))):T=="{"?k(nt(Bo,"}"),Uo,ae(";")):I(de)}function Bo(T,R){if(R=="as")return H.marked="keyword",k(ae("variable"));if(T=="variable")return I(Ze,Bo)}function bi(T){return T=="string"?k():T=="("?I(Ee):T=="."?I(ue):I(Wo,Er,Uo)}function Wo(T,R){return T=="{"?Ft(Wo,"}"):(T=="variable"&&U(R),R=="*"&&(H.marked="keyword"),k(Us))}function Er(T){if(T==",")return k(Wo,Er)}function Us(T,R){if(R=="as")return H.marked="keyword",k(Wo)}function Uo(T,R){if(R=="from")return H.marked="keyword",k(Ee)}function At(T){return T=="]"?k():I(nt(Ze,"]"))}function Oe(){return I(Le("form"),pn,ae("{"),Le("}"),nt(Kr,"}"),K,K)}function Kr(){return I(pn,ur)}function Vs(T,R){return T.lastType=="operator"||T.lastType==","||x.test(R.charAt(0))||/[,.]/.test(R.charAt(0))}function Bn(T,R,se){return R.tokenize==P&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(R.lastType)||R.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(se||0)))}return{startState:function(T){var R={tokenize:P,lastType:"sof",cc:[],lexical:new j((T||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Ne(null,null,!1),indented:T||0};return s.globalVars&&typeof s.globalVars=="object"&&(R.globalVars=s.globalVars),R},token:function(T,R){if(T.sol()&&(R.lexical.hasOwnProperty("align")||(R.lexical.align=!1),R.indented=T.indentation(),ie(T,R)),R.tokenize!=q&&T.eatSpace())return null;var se=R.tokenize(T,R);return L=="comment"?se:(R.lastType=L=="operator"&&(N=="++"||N=="--")?"incdec":L,Z(R,se,L,N,T))},indent:function(T,R){if(T.tokenize==q||T.tokenize==W)return r.Pass;if(T.tokenize!=P)return 0;var se=R&&R.charAt(0),ge=T.lexical,Q;if(!/^\s*else\b/.test(R))for(var _e=T.cc.length-1;_e>=0;--_e){var dt=T.cc[_e];if(dt==K)ge=ge.prev;else if(dt!=Fo&&dt!=Je)break}for(;(ge.type=="stat"||ge.type=="form")&&(se=="}"||(Q=T.cc[T.cc.length-1])&&(Q==ue||Q==le)&&!/^[,\.=+\-*:?[\(]/.test(R));)ge=ge.prev;f&&ge.type==")"&&ge.prev.type=="stat"&&(ge=ge.prev);var qt=ge.type,gn=se==qt;return qt=="vardef"?ge.indented+(T.lastType=="operator"||T.lastType==","?ge.info.length+1:0):qt=="form"&&se=="{"?ge.indented:qt=="form"?ge.indented+c:qt=="stat"?ge.indented+(Vs(T,R)?f||c:0):ge.info=="switch"&&!gn&&s.doubleIndentSwitch!=!1?ge.indented+(/^(?:case|default)\b/.test(R)?c:2*c):ge.align?ge.column+(gn?0:1):ge.indented+(gn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Bn,skipExpression:function(T){Z(T,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var wfe=bfe.exports,xfe={exports:{}};(function(e,t){(function(r){r(qs)})(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(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var y,b;function x(k,B){function U(Ne){return B.tokenize=Ne,Ne(k,B)}var re=k.next();if(re=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?U(L("atom","]]>")):null:k.match("--")?U(L("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),U(N(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),B.tokenize=L("meta","?>"),"meta"):(y=k.eat("/")?"closeTag":"openTag",B.tokenize=E,"tag bracket");if(re=="&"){var ye;return k.eat("#")?k.eat("x")?ye=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):ye=k.eatWhile(/[\d]/)&&k.eat(";"):ye=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),ye?"atom":"error"}else return k.eatWhile(/[^&<]/),null}x.isInText=!0;function E(k,B){var U=k.next();if(U==">"||U=="/"&&k.eat(">"))return B.tokenize=x,y=U==">"?"endTag":"selfcloseTag","tag bracket";if(U=="=")return y="equals",null;if(U=="<"){B.tokenize=x,B.state=W,B.tagName=B.tagStart=null;var re=B.tokenize(k,B);return re?re+" tag error":"tag error"}else return/[\'\"]/.test(U)?(B.tokenize=C(U),B.stringStartCol=k.column(),B.tokenize(k,B)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function C(k){var B=function(U,re){for(;!U.eol();)if(U.next()==k){re.tokenize=E;break}return"string"};return B.isInAttribute=!0,B}function L(k,B){return function(U,re){for(;!U.eol();){if(U.match(B)){re.tokenize=x;break}U.next()}return k}}function N(k){return function(B,U){for(var re;(re=B.next())!=null;){if(re=="<")return U.tokenize=N(k+1),U.tokenize(B,U);if(re==">")if(k==1){U.tokenize=x;break}else return U.tokenize=N(k-1),U.tokenize(B,U)}return"meta"}}function A(k){return k&&k.toLowerCase()}function P(k,B,U){this.prev=k.context,this.tagName=B||"",this.indent=k.indented,this.startOfLine=U,(h.doNotIndent.hasOwnProperty(B)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function M(k){k.context&&(k.context=k.context.prev)}function q(k,B){for(var U;;){if(!k.context||(U=k.context.tagName,!h.contextGrabbers.hasOwnProperty(A(U))||!h.contextGrabbers[A(U)].hasOwnProperty(A(B))))return;M(k)}}function W(k,B,U){return k=="openTag"?(U.tagStart=B.column(),X):k=="closeTag"?ie:W}function X(k,B,U){return k=="word"?(U.tagName=B.current(),b="tag",te):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",te(k,B,U)):(b="error",X)}function ie(k,B,U){if(k=="word"){var re=B.current();return U.context&&U.context.tagName!=re&&h.implicitlyClosed.hasOwnProperty(A(U.context.tagName))&&M(U),U.context&&U.context.tagName==re||h.matchClosing===!1?(b="tag",ee):(b="tag error",j)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",ee(k,B,U)):(b="error",j)}function ee(k,B,U){return k!="endTag"?(b="error",ee):(M(U),W)}function j(k,B,U){return b="error",ee(k,B,U)}function te(k,B,U){if(k=="word")return b="attribute",Z;if(k=="endTag"||k=="selfcloseTag"){var re=U.tagName,ye=U.tagStart;return U.tagName=U.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(A(re))?q(U,re):(q(U,re),U.context=new P(U,re,ye==U.indented)),W}return b="error",te}function Z(k,B,U){return k=="equals"?H:(h.allowMissing||(b="error"),te(k,B,U))}function H(k,B,U){return k=="string"?I:k=="word"&&h.allowUnquoted?(b="string",te):(b="error",te(k,B,U))}function I(k,B,U){return k=="string"?I:te(k,B,U)}return{startState:function(k){var B={tokenize:x,state:W,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(B.baseIndent=k),B},token:function(k,B){if(!B.tagName&&k.sol()&&(B.indented=k.indentation()),k.eatSpace())return null;y=null;var U=B.tokenize(k,B);return(U||y)&&U!="comment"&&(b=null,B.state=B.state(y||U,k,B),b&&(U=b=="error"?U+" error":b)),U},indent:function(k,B,U){var re=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(re&&re.noIndent)return r.Pass;if(k.tokenize!=E&&k.tokenize!=x)return U?U.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(B))return 0;var ye=B&&/^<(\/)?([\w_:\.-]*)/.exec(B);if(ye&&ye[1])for(;re;)if(re.tagName==ye[2]){re=re.prev;break}else if(h.implicitlyClosed.hasOwnProperty(A(re.tagName)))re=re.prev;else break;else if(ye)for(;re;){var Ne=h.contextGrabbers[A(re.tagName)];if(Ne&&Ne.hasOwnProperty(A(ye[2])))re=re.prev;else break}for(;re&&re.prev&&!re.startOfLine;)re=re.prev;return re?re.indent+d:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==H&&(k.state=te)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var B=[],U=k.context;U;U=U.prev)B.push(U.tagName);return B.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 _fe=xfe.exports;(function(e,t){(function(r){r(qs,_fe,wfe)})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(x){var E=x.tagName;x.tagName=null;var C=d.indent(x,"","");return x.tagName=E,C}function v(x,E){return E.context.mode==d?y(x,E,E.context):b(x,E,E.context)}function y(x,E,C){if(C.depth==2)return x.match(/^.*?\*\//)?C.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(C.state);var L=p(C.state),N=C.state.context;if(N&&x.match(/^[^>]*>\s*$/,!1)){for(;N.prev&&!N.startOfLine;)N=N.prev;N.startOfLine?L-=c.indentUnit:C.prev.state.lexical&&(L=C.prev.state.lexical.indented)}else C.depth==1&&(L+=c.indentUnit);return E.context=new o(r.startState(h,L),h,0,E.context),null}if(C.depth==1){if(x.peek()=="<")return d.skipAttribute(C.state),E.context=new o(r.startState(d,p(C.state)),d,0,E.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return C.depth=2,v(x,E)}var A=d.token(x,C.state),P=x.current(),M;return/\btag\b/.test(A)?/>$/.test(P)?C.state.context?C.depth=0:E.context=E.context.prev:/^</.test(P)&&(C.depth=1):!A&&(M=P.indexOf("{"))>-1&&x.backUp(P.length-M),A}function b(x,E,C){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,C.state))return E.context=new o(r.startState(d,h.indent(C.state,"","")),d,0,E.context),h.skipExpression(C.state),null;var L=h.token(x,C.state);if(!L&&C.depth!=null){var N=x.current();N=="{"?C.depth++:N=="}"&&--C.depth==0&&(E.context=E.context.prev)}return L}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:v,indent:function(x,E,C){return x.context.mode.indent(x.context.state,E,C)},innerMode:function(x){return x.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(e,t){(function(r){r(qs)})(function(r){r.defineOption("placeholder","",function(p,v,y){var b=y&&y!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var x=p.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var y=p.getOption("placeholder");typeof y=="string"&&(y=document.createTextNode(y)),v.appendChild(y),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var y=p.getInputField();v=y.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(y.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),y=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(y?" CodeMirror-empty":""),y?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})();(function(e,t){(function(r){r(qs)})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(y){if(y.which!=1)return;r.e_preventDefault(y);var b=p.orientation=="horizontal"?"pageX":"pageY",x=y[b],E=p.pos;function C(){r.off(document,"mousemove",L),r.off(document,"mouseup",C)}function L(N){if(N.which!=1)return C();p.moveTo(E+(N[b]-x)*(p.total/p.size))}r.on(document,"mousemove",L),r.on(document,"mouseup",C)}),r.on(this.node,"click",function(y){r.e_preventDefault(y);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=y.clientX<b.left?-1:y.clientX>b.right?1:0:x=y.clientY<b.top?-1:y.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function v(y){var b=r.wheelEventPixels(y)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&r.e_preventDefault(y)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&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,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);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,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=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=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})();const er=Wr();function Sfe(e,t,r={}){const o=yfe.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),It(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),_u(()=>{er.value=void 0}),mh(o)}async function kfe(e){var t;Tw(e,((t=e.location)==null?void 0:t.line)??0)}const Cfe={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Kw=ft({__name:"CodeMirrorContainer",props:qc({mode:{},readOnly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:qc(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Eh(e,"modelValue"),s=XS(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Be();return Hs(async()=>{const d=Sfe(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){r("save",h.getValue())},"Ctrl-S":function(h){r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),er.value=d,setTimeout(()=>er.value.refresh(),100)}),(d,h)=>(oe(),me("div",Cfe,[Y("textarea",{ref_key:"el",ref:f},null,512)]))}}),Tfe=ft({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Be(""),c=Wr(void 0),f=Be(!1),d=Be(!0);It(()=>r.file,async()=>{var M;d.value=!0;try{if(!r.file||!((M=r.file)!=null&&M.filepath)){s.value="",c.value=s.value,f.value=!1;return}s.value=await bt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}finally{ln(()=>d.value=!1)}},{immediate:!0}),It(()=>[d.value,r.file,zd.value],([M,q,W])=>{M||(W!=null?ln(()=>{var ie;const X={line:W??0,ch:0};(ie=er.value)==null||ie.scrollIntoView(X,100),ln(()=>{var ee,j;(ee=er.value)==null||ee.focus(),(j=er.value)==null||j.setCursor(X)})}):ln(()=>{var X;(X=er.value)==null||X.focus()}))},{flush:"post"});const h=Ce(()=>{var M,q;return((q=(M=r.file)==null?void 0:M.filepath)==null?void 0:q.split(/\./g).pop())||"js"}),p=Be(),v=Ce(()=>{var M;return(M=p.value)==null?void 0:M.cm}),y=Ce(()=>{var M;return((M=r.file)==null?void 0:M.tasks.filter(q=>{var W;return((W=q.result)==null?void 0:W.state)==="fail"}))||[]}),b=[],x=[],E=[],C=Be(!1);function L(){E.forEach(([M,q,W])=>{M.removeEventListener("click",q),W()}),E.length=0}vce(p,()=>{var M;(M=er.value)==null||M.refresh()});function N(){f.value=c.value!==er.value.getValue()}It(f,M=>{o("draft",M)},{immediate:!0});function A(M){const q=((M==null?void 0:M.stacks)||[]).filter(te=>{var Z;return te.file&&te.file===((Z=r.file)==null?void 0:Z.filepath)}),W=q==null?void 0:q[0];if(!W)return;const X=document.createElement("div");X.className="op80 flex gap-x-2 items-center";const ie=document.createElement("pre");ie.className="c-red-600 dark:c-red-400",ie.textContent=`${" ".repeat(W.column)}^ ${(M==null?void 0:M.nameStr)||M.name}: ${(M==null?void 0:M.message)||""}`,X.appendChild(ie);const ee=document.createElement("span");ee.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",ee.tabIndex=0,ee.ariaLabel="Open in Editor",Lb(ee,{content:"Open in Editor",placement:"bottom"},!1);const j=async()=>{await dw(W.file,W.line,W.column)};X.appendChild(ee),E.push([ee,j,()=>zh(ee)]),x.push(er.value.addLineClass(W.line-1,"wrap","bg-red-500/10")),b.push(er.value.addLineWidget(W.line-1,X))}It([v,y],([M])=>{if(!M){L();return}setTimeout(()=>{L(),b.forEach(q=>q.clear()),x.forEach(q=>{var W;return(W=er.value)==null?void 0:W.removeLineClass(q,"wrap")}),b.length=0,x.length=0,M.on("changes",N),y.value.forEach(q=>{var W,X;(X=(W=q.result)==null?void 0:W.errors)==null||X.forEach(A)}),C.value||M.clearHistory()},100)},{flush:"post"});async function P(M){C.value=!0,await bt.rpc.saveTestFile(r.file.filepath,M),c.value=M,f.value=!1}return(M,q)=>{const W=Kw;return oe(),ot(W,ai({ref_key:"editor",ref:p,modelValue:z(s),"onUpdate:modelValue":q[0]||(q[0]=X=>Pt(s)?s.value=X:null),"h-full":""},{lineNumbers:!0,readOnly:z(Ir)},{mode:z(h),"data-testid":"code-mirror",onSave:P}),null,16,["modelValue","mode"])}}}),Efe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Lfe={"p-4":"",relative:""},Afe=Y("p",null,"Module Info",-1),Mfe={op50:"","font-mono":"","text-sm":""},Nfe={key:0,"p-5":""},$fe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Pfe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Ofe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),Rfe={key:0},Dfe={p:"x3 y-1","bg-overlay":"",border:"base b t"},zfe=ft({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=oce(()=>bt.rpc.getTransformResult(r.projectName,r.id,!!Ro)),c=Ce(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=Ce(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=Ce(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Ce(()=>{var p,v,y,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(y=s.value)==null?void 0:y.map)==null?void 0:b.version}});return ww("Escape",()=>{o("close")}),(p,v)=>{const y=gi,b=Kw;return oe(),me("div",Efe,[Y("div",Lfe,[Afe,Y("p",Mfe,qe(p.id),1),Pe(y,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=x=>o("close"))})]),z(s)?(oe(),me(ut,{key:1},[Y("div",$fe,[Pfe,Ofe,Pe(b,ai({"h-full":"","model-value":z(f),"read-only":""},{lineNumbers:!0},{mode:z(c)}),null,16,["model-value","mode"]),Pe(b,ai({"h-full":"","model-value":z(d),"read-only":""},{lineNumbers:!0},{mode:z(c)}),null,16,["model-value","mode"])]),z(h).mappings!==""?(oe(),me("div",Rfe,[Y("div",Dfe," Source map (v"+qe(z(h).version)+") ",1),Pe(b,ai({"model-value":z(h).mappings,"read-only":""},{lineNumbers:!0},{mode:z(c)}),null,16,["model-value","mode"])])):Ye("",!0)],64)):(oe(),me("div",Nfe," No transform result found for this module. "))])}}});function Ife(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Vd="http://www.w3.org/1999/xhtml";const o0={svg:"http://www.w3.org/2000/svg",xhtml:Vd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),o0.hasOwnProperty(t)?{space:o0[t],local:e}:e}function Ffe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Vd&&t.documentElement.namespaceURI===Vd?t.createElement(e):t.createElementNS(r,e)}}function Hfe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Xw(e){var t=qu(e);return(t.local?Hfe:Ffe)(t)}function qfe(){}function Zh(e){return e==null?qfe:function(){return this.querySelector(e)}}function Bfe(e){typeof e!="function"&&(e=Zh(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new Yn(o,this._parents)}function Wfe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ufe(){return[]}function Yw(e){return e==null?Ufe:function(){return this.querySelectorAll(e)}}function Vfe(e){return function(){return Wfe(e.apply(this,arguments))}}function jfe(e){typeof e=="function"?e=Vfe(e):e=Yw(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new Yn(o,s)}function Zw(e){return function(){return this.matches(e)}}function Jw(e){return function(t){return t.matches(e)}}var Gfe=Array.prototype.find;function Kfe(e){return function(){return Gfe.call(this.children,e)}}function Xfe(){return this.firstElementChild}function Yfe(e){return this.select(e==null?Xfe:Kfe(typeof e=="function"?e:Jw(e)))}var Zfe=Array.prototype.filter;function Jfe(){return Array.from(this.children)}function Qfe(e){return function(){return Zfe.call(this.children,e)}}function ede(e){return this.selectAll(e==null?Jfe:Qfe(typeof e=="function"?e:Jw(e)))}function tde(e){typeof e!="function"&&(e=Zw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new Yn(o,this._parents)}function Qw(e){return new Array(e.length)}function nde(){return new Yn(this._enter||this._groups.map(Qw),this._parents)}function su(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}su.prototype={constructor:su,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function rde(e){return function(){return e}}function ide(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new su(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function ode(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,y=c.length,b=new Array(v),x;for(d=0;d<v;++d)(h=t[d])&&(b[d]=x=f.call(h,h.__data__,d,t)+"",p.has(x)?s[d]=h:p.set(x,h));for(d=0;d<y;++d)x=f.call(e,c[d],d,c)+"",(h=p.get(x))?(o[d]=h,h.__data__=c[d],p.delete(x)):r[d]=new su(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function sde(e){return e.__data__}function lde(e,t){if(!arguments.length)return Array.from(this,sde);var r=t?ode:ide,o=this._parents,s=this._groups;typeof e!="function"&&(e=rde(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],y=s[p],b=y.length,x=ade(e.call(v,v&&v.__data__,p,o)),E=x.length,C=d[p]=new Array(E),L=f[p]=new Array(E),N=h[p]=new Array(b);r(v,y,C,L,N,x,t);for(var A=0,P=0,M,q;A<E;++A)if(M=C[A]){for(A>=P&&(P=A+1);!(q=L[P])&&++P<E;);M._next=q||null}}return f=new Yn(f,o),f._enter=d,f._exit=h,f}function ade(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cde(){return new Yn(this._exit||this._groups.map(Qw),this._parents)}function ude(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function fde(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],y=p.length,b=d[h]=new Array(y),x,E=0;E<y;++E)(x=p[E]||v[E])&&(b[E]=x);for(;h<s;++h)d[h]=r[h];return new Yn(d,this._parents)}function dde(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function hde(e){e||(e=pde);function t(y,b){return y&&b?e(y.__data__,b.__data__):!y-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new Yn(s,this._parents).order()}function pde(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function gde(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function vde(){return Array.from(this)}function mde(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function yde(){let e=0;for(const t of this)++e;return e}function bde(){return!this.node()}function wde(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function xde(e){return function(){this.removeAttribute(e)}}function _de(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Sde(e,t){return function(){this.setAttribute(e,t)}}function kde(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Cde(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Tde(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Ede(e,t){var r=qu(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?_de:xde:typeof t=="function"?r.local?Tde:Cde:r.local?kde:Sde)(r,t))}function e1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Lde(e){return function(){this.style.removeProperty(e)}}function Ade(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Mde(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Nde(e,t,r){return arguments.length>1?this.each((t==null?Lde:typeof t=="function"?Mde:Ade)(e,t,r??"")):Ds(this.node(),e)}function Ds(e,t){return e.style.getPropertyValue(t)||e1(e).getComputedStyle(e,null).getPropertyValue(t)}function $de(e){return function(){delete this[e]}}function Pde(e,t){return function(){this[e]=t}}function Ode(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Rde(e,t){return arguments.length>1?this.each((t==null?$de:typeof t=="function"?Ode:Pde)(e,t)):this.node()[e]}function t1(e){return e.trim().split(/^|\s+/)}function Jh(e){return e.classList||new n1(e)}function n1(e){this._node=e,this._names=t1(e.getAttribute("class")||"")}n1.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function r1(e,t){for(var r=Jh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function i1(e,t){for(var r=Jh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function Dde(e){return function(){r1(this,e)}}function zde(e){return function(){i1(this,e)}}function Ide(e,t){return function(){(t.apply(this,arguments)?r1:i1)(this,e)}}function Fde(e,t){var r=t1(e+"");if(arguments.length<2){for(var o=Jh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Ide:t?Dde:zde)(r,t))}function Hde(){this.textContent=""}function qde(e){return function(){this.textContent=e}}function Bde(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Wde(e){return arguments.length?this.each(e==null?Hde:(typeof e=="function"?Bde:qde)(e)):this.node().textContent}function Ude(){this.innerHTML=""}function Vde(e){return function(){this.innerHTML=e}}function jde(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Gde(e){return arguments.length?this.each(e==null?Ude:(typeof e=="function"?jde:Vde)(e)):this.node().innerHTML}function Kde(){this.nextSibling&&this.parentNode.appendChild(this)}function Xde(){return this.each(Kde)}function Yde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zde(){return this.each(Yde)}function Jde(e){var t=typeof e=="function"?e:Xw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Qde(){return null}function ehe(e,t){var r=typeof e=="function"?e:Xw(e),o=t==null?Qde:typeof t=="function"?t:Zh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function the(){var e=this.parentNode;e&&e.removeChild(this)}function nhe(){return this.each(the)}function rhe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ihe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ohe(e){return this.select(e?ihe:rhe)}function she(e){return arguments.length?this.property("__data__",e):this.node().__data__}function lhe(e){return function(t){e.call(this,t,this.__data__)}}function ahe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function che(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function uhe(e,t,r){return function(){var o=this.__on,s,c=lhe(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function fhe(e,t,r){var o=ahe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?uhe:che,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function o1(e,t,r){var o=e1(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function dhe(e,t){return function(){return o1(this,e,t)}}function hhe(e,t){return function(){return o1(this,e,t.apply(this,arguments))}}function phe(e,t){return this.each((typeof t=="function"?hhe:dhe)(e,t))}function*ghe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var s1=[null];function Yn(e,t){this._groups=e,this._parents=t}function ba(){return new Yn([[document.documentElement]],s1)}function vhe(){return this}Yn.prototype=ba.prototype={constructor:Yn,select:Bfe,selectAll:jfe,selectChild:Yfe,selectChildren:ede,filter:tde,data:lde,enter:nde,exit:cde,join:ude,merge:fde,selection:vhe,order:dde,sort:hde,call:gde,nodes:vde,node:mde,size:yde,empty:bde,each:wde,attr:Ede,style:Nde,property:Rde,classed:Fde,text:Wde,html:Gde,raise:Xde,lower:Zde,append:Jde,insert:ehe,remove:nhe,clone:ohe,datum:she,on:fhe,dispatch:phe,[Symbol.iterator]:ghe};function Dn(e){return typeof e=="string"?new Yn([[document.querySelector(e)]],[document.documentElement]):new Yn([[e]],s1)}function mhe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ii(e,t){if(e=mhe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}class Sn{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new Sn(t,r)}add(t){return new Sn(this.x+t.x,this.y+t.y)}subtract(t){return new Sn(this.x-t.x,this.y-t.y)}multiply(t){return new Sn(this.x*t,this.y*t)}divide(t){return new Sn(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new Sn(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new Sn(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new Sn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var yhe={value:()=>{}};function wa(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Nc(r)}function Nc(e){this._=e}function bhe(e,t){return e.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&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Nc.prototype=wa.prototype={constructor:Nc,on:function(e,t){var r=this._,o=bhe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=whe(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=s0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=s0(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Nc(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function whe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function s0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=yhe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const xhe={passive:!1},ia={capture:!0,passive:!1};function sd(e){e.stopImmediatePropagation()}function ks(e){e.preventDefault(),e.stopImmediatePropagation()}function l1(e){var t=e.document.documentElement,r=Dn(e).on("dragstart.drag",ks,ia);"onselectstart"in t?r.on("selectstart.drag",ks,ia):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function a1(e,t){var r=e.document.documentElement,o=Dn(e).on("dragstart.drag",null);t&&(o.on("click.drag",ks,ia),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 gc=e=>()=>e;function jd(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,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:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}jd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function _he(e){return!e.ctrlKey&&!e.button}function She(){return this.parentNode}function khe(e,t){return t??{x:e.x,y:e.y}}function Che(){return navigator.maxTouchPoints||"ontouchstart"in this}function The(){var e=_he,t=She,r=khe,o=Che,s={},c=wa("start","drag","end"),f=0,d,h,p,v,y=0;function b(M){M.on("mousedown.drag",x).filter(o).on("touchstart.drag",L).on("touchmove.drag",N,xhe).on("touchend.drag touchcancel.drag",A).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(M,q){if(!(v||!e.call(this,M,q))){var W=P(this,t.call(this,M,q),M,q,"mouse");W&&(Dn(M.view).on("mousemove.drag",E,ia).on("mouseup.drag",C,ia),l1(M.view),sd(M),p=!1,d=M.clientX,h=M.clientY,W("start",M))}}function E(M){if(ks(M),!p){var q=M.clientX-d,W=M.clientY-h;p=q*q+W*W>y}s.mouse("drag",M)}function C(M){Dn(M.view).on("mousemove.drag mouseup.drag",null),a1(M.view,p),ks(M),s.mouse("end",M)}function L(M,q){if(e.call(this,M,q)){var W=M.changedTouches,X=t.call(this,M,q),ie=W.length,ee,j;for(ee=0;ee<ie;++ee)(j=P(this,X,M,q,W[ee].identifier,W[ee]))&&(sd(M),j("start",M,W[ee]))}}function N(M){var q=M.changedTouches,W=q.length,X,ie;for(X=0;X<W;++X)(ie=s[q[X].identifier])&&(ks(M),ie("drag",M,q[X]))}function A(M){var q=M.changedTouches,W=q.length,X,ie;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),X=0;X<W;++X)(ie=s[q[X].identifier])&&(sd(M),ie("end",M,q[X]))}function P(M,q,W,X,ie,ee){var j=c.copy(),te=ii(ee||W,q),Z,H,I;if((I=r.call(M,new jd("beforestart",{sourceEvent:W,target:b,identifier:ie,active:f,x:te[0],y:te[1],dx:0,dy:0,dispatch:j}),X))!=null)return Z=I.x-te[0]||0,H=I.y-te[1]||0,function k(B,U,re){var ye=te,Ne;switch(B){case"start":s[ie]=k,Ne=f++;break;case"end":delete s[ie],--f;case"drag":te=ii(re||U,q),Ne=f;break}j.call(B,M,new jd(B,{sourceEvent:U,subject:I,target:b,identifier:ie,active:Ne,x:te[0]+Z,y:te[1]+H,dx:te[0]-ye[0],dy:te[1]-ye[1],dispatch:j}),X)}}return b.filter=function(M){return arguments.length?(e=typeof M=="function"?M:gc(!!M),b):e},b.container=function(M){return arguments.length?(t=typeof M=="function"?M:gc(M),b):t},b.subject=function(M){return arguments.length?(r=typeof M=="function"?M:gc(M),b):r},b.touchable=function(M){return arguments.length?(o=typeof M=="function"?M:gc(!!M),b):o},b.on=function(){var M=c.on.apply(c,arguments);return M===c?b:M},b.clickDistance=function(M){return arguments.length?(y=(M=+M)*M,b):Math.sqrt(y)},b}function Qh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function c1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function xa(){}var oa=.7,lu=1/oa,Cs="\\s*([+-]?\\d+)\\s*",sa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ehe=/^#([0-9a-f]{3,8})$/,Lhe=new RegExp(`^rgb\\(${Cs},${Cs},${Cs}\\)$`),Ahe=new RegExp(`^rgb\\(${Fr},${Fr},${Fr}\\)$`),Mhe=new RegExp(`^rgba\\(${Cs},${Cs},${Cs},${sa}\\)$`),Nhe=new RegExp(`^rgba\\(${Fr},${Fr},${Fr},${sa}\\)$`),$he=new RegExp(`^hsl\\(${sa},${Fr},${Fr}\\)$`),Phe=new RegExp(`^hsla\\(${sa},${Fr},${Fr},${sa}\\)$`),l0={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};Qh(xa,la,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:a0,formatHex:a0,formatHex8:Ohe,formatHsl:Rhe,formatRgb:c0,toString:c0});function a0(){return this.rgb().formatHex()}function Ohe(){return this.rgb().formatHex8()}function Rhe(){return u1(this).formatHsl()}function c0(){return this.rgb().formatRgb()}function la(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ehe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?u0(t):r===3?new In(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?vc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?vc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Lhe.exec(e))?new In(t[1],t[2],t[3],1):(t=Ahe.exec(e))?new In(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Mhe.exec(e))?vc(t[1],t[2],t[3],t[4]):(t=Nhe.exec(e))?vc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$he.exec(e))?h0(t[1],t[2]/100,t[3]/100,1):(t=Phe.exec(e))?h0(t[1],t[2]/100,t[3]/100,t[4]):l0.hasOwnProperty(e)?u0(l0[e]):e==="transparent"?new In(NaN,NaN,NaN,0):null}function u0(e){return new In(e>>16&255,e>>8&255,e&255,1)}function vc(e,t,r,o){return o<=0&&(e=t=r=NaN),new In(e,t,r,o)}function Dhe(e){return e instanceof xa||(e=la(e)),e?(e=e.rgb(),new In(e.r,e.g,e.b,e.opacity)):new In}function Gd(e,t,r,o){return arguments.length===1?Dhe(e):new In(e,t,r,o??1)}function In(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Qh(In,Gd,c1(xa,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new In(No(this.r),No(this.g),No(this.b),au(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:f0,formatHex:f0,formatHex8:zhe,formatRgb:d0,toString:d0}));function f0(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}`}function zhe(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}${Eo((isNaN(this.opacity)?1:this.opacity)*255)}`}function d0(){const e=au(this.opacity);return`${e===1?"rgb(":"rgba("}${No(this.r)}, ${No(this.g)}, ${No(this.b)}${e===1?")":`, ${e})`}`}function au(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function No(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Eo(e){return e=No(e),(e<16?"0":"")+e.toString(16)}function h0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new xr(e,t,r,o)}function u1(e){if(e instanceof xr)return new xr(e.h,e.s,e.l,e.opacity);if(e instanceof xa||(e=la(e)),!e)return new xr;if(e instanceof xr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new xr(f,d,h,e.opacity)}function Ihe(e,t,r,o){return arguments.length===1?u1(e):new xr(e,t,r,o??1)}function xr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Qh(xr,Ihe,c1(xa,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new xr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new xr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new In(ld(e>=240?e-240:e+120,s,o),ld(e,s,o),ld(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new xr(p0(this.h),mc(this.s),mc(this.l),au(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 e=au(this.opacity);return`${e===1?"hsl(":"hsla("}${p0(this.h)}, ${mc(this.s)*100}%, ${mc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function p0(e){return e=(e||0)%360,e<0?e+360:e}function mc(e){return Math.max(0,Math.min(1,e||0))}function ld(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const f1=e=>()=>e;function Fhe(e,t){return function(r){return e+r*t}}function Hhe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function qhe(e){return(e=+e)==1?d1:function(t,r){return r-t?Hhe(t,r,e):f1(isNaN(t)?r:t)}}function d1(e,t){var r=t-e;return r?Fhe(e,r):f1(isNaN(e)?t:e)}const g0=function e(t){var r=qhe(t);function o(s,c){var f=r((s=Gd(s)).r,(c=Gd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=d1(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function qi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Kd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ad=new RegExp(Kd.source,"g");function Bhe(e){return function(){return e}}function Whe(e){return function(t){return e(t)+""}}function Uhe(e,t){var r=Kd.lastIndex=ad.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Kd.exec(e))&&(s=ad.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:qi(o,s)})),r=ad.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?Whe(h[0].x):Bhe(t):(t=h.length,function(p){for(var v=0,y;v<t;++v)d[(y=h[v]).i]=y.x(p);return d.join("")})}var v0=180/Math.PI,Xd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function h1(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*v0,skewX:Math.atan(h)*v0,scaleX:f,scaleY:d}}var yc;function Vhe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Xd:h1(t.a,t.b,t.c,t.d,t.e,t.f)}function jhe(e){return e==null||(yc||(yc=document.createElementNS("http://www.w3.org/2000/svg","g")),yc.setAttribute("transform",e),!(e=yc.transform.baseVal.consolidate()))?Xd:(e=e.matrix,h1(e.a,e.b,e.c,e.d,e.e,e.f))}function p1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,y,b,x,E){if(p!==y||v!==b){var C=x.push("translate(",null,t,null,r);E.push({i:C-4,x:qi(p,y)},{i:C-2,x:qi(v,b)})}else(y||b)&&x.push("translate("+y+t+b+r)}function f(p,v,y,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:y.push(s(y)+"rotate(",null,o)-2,x:qi(p,v)})):v&&y.push(s(y)+"rotate("+v+o)}function d(p,v,y,b){p!==v?b.push({i:y.push(s(y)+"skewX(",null,o)-2,x:qi(p,v)}):v&&y.push(s(y)+"skewX("+v+o)}function h(p,v,y,b,x,E){if(p!==y||v!==b){var C=x.push(s(x)+"scale(",null,",",null,")");E.push({i:C-4,x:qi(p,y)},{i:C-2,x:qi(v,b)})}else(y!==1||b!==1)&&x.push(s(x)+"scale("+y+","+b+")")}return function(p,v){var y=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,y,b),f(p.rotate,v.rotate,y,b),d(p.skewX,v.skewX,y,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,y,b),p=v=null,function(x){for(var E=-1,C=b.length,L;++E<C;)y[(L=b[E]).i]=L.x(x);return y.join("")}}}var Ghe=p1(Vhe,"px, ","px)","deg)"),Khe=p1(jhe,", ",")",")"),Xhe=1e-12;function m0(e){return((e=Math.exp(e))+1/e)/2}function Yhe(e){return((e=Math.exp(e))-1/e)/2}function Zhe(e){return((e=Math.exp(2*e))-1)/(e+1)}const Jhe=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],y=f[1],b=f[2],x=v-d,E=y-h,C=x*x+E*E,L,N;if(C<Xhe)N=Math.log(b/p)/t,L=function(X){return[d+X*x,h+X*E,p*Math.exp(t*X*N)]};else{var A=Math.sqrt(C),P=(b*b-p*p+o*C)/(2*p*r*A),M=(b*b-p*p-o*C)/(2*b*r*A),q=Math.log(Math.sqrt(P*P+1)-P),W=Math.log(Math.sqrt(M*M+1)-M);N=(W-q)/t,L=function(X){var ie=X*N,ee=m0(q),j=p/(r*A)*(ee*Zhe(t*ie+q)-Yhe(q));return[d+j*x,h+j*E,p*ee/m0(t*ie+q)]}}return L.duration=N*1e3*t/Math.SQRT2,L}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s}(Math.SQRT2,2,4);var zs=0,Tl=0,Sl=0,g1=1e3,cu,El,uu=0,Do=0,Bu=0,aa=typeof performance=="object"&&performance.now?performance:Date,v1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ep(){return Do||(v1(Qhe),Do=aa.now()+Bu)}function Qhe(){Do=0}function fu(){this._call=this._time=this._next=null}fu.prototype=tp.prototype={constructor:fu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ep():+r)+(t==null?0:+t),!this._next&&El!==this&&(El?El._next=this:cu=this,El=this),this._call=e,this._time=r,Yd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yd())}};function tp(e,t,r){var o=new fu;return o.restart(e,t,r),o}function epe(){ep(),++zs;for(var e=cu,t;e;)(t=Do-e._time)>=0&&e._call.call(void 0,t),e=e._next;--zs}function y0(){Do=(uu=aa.now())+Bu,zs=Tl=0;try{epe()}finally{zs=0,npe(),Do=0}}function tpe(){var e=aa.now(),t=e-uu;t>g1&&(Bu-=t,uu=e)}function npe(){for(var e,t=cu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:cu=r);El=e,Yd(o)}function Yd(e){if(!zs){Tl&&(Tl=clearTimeout(Tl));var t=e-Do;t>24?(e<1/0&&(Tl=setTimeout(y0,e-aa.now()-Bu)),Sl&&(Sl=clearInterval(Sl))):(Sl||(uu=aa.now(),Sl=setInterval(tpe,g1)),zs=1,v1(y0))}}function b0(e,t,r){var o=new fu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var rpe=wa("start","end","cancel","interrupt"),ipe=[],m1=0,w0=1,Zd=2,$c=3,x0=4,Jd=5,Pc=6;function Wu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;ope(e,r,{name:t,index:o,group:s,on:rpe,tween:ipe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:m1})}function np(e,t){var r=Tr(e,t);if(r.state>m1)throw new Error("too late; already scheduled");return r}function jr(e,t){var r=Tr(e,t);if(r.state>$c)throw new Error("too late; already running");return r}function Tr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function ope(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=tp(c,0,r.time);function c(p){r.state=w0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,y,b,x;if(r.state!==w0)return h();for(v in o)if(x=o[v],x.name===r.name){if(x.state===$c)return b0(f);x.state===x0?(x.state=Pc,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[v]):+v<t&&(x.state=Pc,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[v])}if(b0(function(){r.state===$c&&(r.state=x0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Zd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Zd){for(r.state=$c,s=new Array(b=r.tween.length),v=0,y=-1;v<b;++v)(x=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++y]=x);s.length=y+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Jd,1),y=-1,b=s.length;++y<b;)s[y].call(e,v);r.state===Jd&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Pc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Oc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>Zd&&o.state<Jd,o.state=Pc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function spe(e){return this.each(function(){Oc(this,e)})}function lpe(e,t){var r,o;return function(){var s=jr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function ape(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=jr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function cpe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Tr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?lpe:ape)(r,e,t))}function rp(e,t,r){var o=e._id;return e.each(function(){var s=jr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Tr(s,o).value[t]}}function y1(e,t){var r;return(typeof t=="number"?qi:t instanceof la?g0:(r=la(t))?(t=r,g0):Uhe)(e,t)}function upe(e){return function(){this.removeAttribute(e)}}function fpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function dpe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function hpe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function ppe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function gpe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function vpe(e,t){var r=qu(e),o=r==="transform"?Khe:y1;return this.attrTween(e,typeof t=="function"?(r.local?gpe:ppe)(r,o,rp(this,"attr."+e,t)):t==null?(r.local?fpe:upe)(r):(r.local?hpe:dpe)(r,o,t))}function mpe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function ype(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function bpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&ype(e,c)),r}return s._value=t,s}function wpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&mpe(e,c)),r}return s._value=t,s}function xpe(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=qu(e);return this.tween(r,(o.local?bpe:wpe)(o,t))}function _pe(e,t){return function(){np(this,e).delay=+t.apply(this,arguments)}}function Spe(e,t){return t=+t,function(){np(this,e).delay=t}}function kpe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?_pe:Spe)(t,e)):Tr(this.node(),t).delay}function Cpe(e,t){return function(){jr(this,e).duration=+t.apply(this,arguments)}}function Tpe(e,t){return t=+t,function(){jr(this,e).duration=t}}function Epe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Cpe:Tpe)(t,e)):Tr(this.node(),t).duration}function Lpe(e,t){if(typeof t!="function")throw new Error;return function(){jr(this,e).ease=t}}function Ape(e){var t=this._id;return arguments.length?this.each(Lpe(t,e)):Tr(this.node(),t).ease}function Mpe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;jr(this,e).ease=r}}function Npe(e){if(typeof e!="function")throw new Error;return this.each(Mpe(this._id,e))}function $pe(e){typeof e!="function"&&(e=Zw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new di(o,this._parents,this._name,this._id)}function Ppe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,y=f[d]=new Array(v),b,x=0;x<v;++x)(b=h[x]||p[x])&&(y[x]=b);for(;d<o;++d)f[d]=t[d];return new di(f,this._parents,this._name,this._id)}function Ope(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Rpe(e,t,r){var o,s,c=Ope(t)?np:jr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function Dpe(e,t){var r=this._id;return arguments.length<2?Tr(this.node(),r).on.on(e):this.each(Rpe(r,e,t))}function zpe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Ipe(){return this.on("end.remove",zpe(this._id))}function Fpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Zh(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,y,b=0;b<h;++b)(v=d[b])&&(y=e.call(v,v.__data__,b,d))&&("__data__"in v&&(y.__data__=v.__data__),p[b]=y,Wu(p[b],t,r,b,p,Tr(v,r)));return new di(c,this._parents,t,r)}function Hpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Yw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,y=0;y<p;++y)if(v=h[y]){for(var b=e.call(v,v.__data__,y,h),x,E=Tr(v,r),C=0,L=b.length;C<L;++C)(x=b[C])&&Wu(x,t,r,C,b,E);c.push(b),f.push(v)}return new di(c,f,t,r)}var qpe=ba.prototype.constructor;function Bpe(){return new qpe(this._groups,this._parents)}function Wpe(e,t){var r,o,s;return function(){var c=Ds(this,e),f=(this.style.removeProperty(e),Ds(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function b1(e){return function(){this.style.removeProperty(e)}}function Upe(e,t,r){var o,s=r+"",c;return function(){var f=Ds(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Vpe(e,t,r){var o,s,c;return function(){var f=Ds(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ds(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function jpe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=jr(this,e),p=h.on,v=h.value[c]==null?d||(d=b1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function Gpe(e,t,r){var o=(e+="")=="transform"?Ghe:y1;return t==null?this.styleTween(e,Wpe(e,o)).on("end.style."+e,b1(e)):typeof t=="function"?this.styleTween(e,Vpe(e,o,rp(this,"style."+e,t))).each(jpe(this._id,e)):this.styleTween(e,Upe(e,o,t),r).on("end.style."+e,null)}function Kpe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Xpe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Kpe(e,f,r)),o}return c._value=t,c}function Ype(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,Xpe(e,t,r??""))}function Zpe(e){return function(){this.textContent=e}}function Jpe(e){return function(){var t=e(this);this.textContent=t??""}}function Qpe(e){return this.tween("text",typeof e=="function"?Jpe(rp(this,"text",e)):Zpe(e==null?"":e+""))}function ege(e){return function(t){this.textContent=e.call(this,t)}}function tge(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&ege(s)),t}return o._value=e,o}function nge(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,tge(e))}function rge(){for(var e=this._name,t=this._id,r=w1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=Tr(h,t);Wu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new di(o,this._parents,e,r)}function ige(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=jr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var oge=0;function di(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function w1(){return++oge}var ni=ba.prototype;di.prototype={constructor:di,select:Fpe,selectAll:Hpe,selectChild:ni.selectChild,selectChildren:ni.selectChildren,filter:$pe,merge:Ppe,selection:Bpe,transition:rge,call:ni.call,nodes:ni.nodes,node:ni.node,size:ni.size,empty:ni.empty,each:ni.each,on:Dpe,attr:vpe,attrTween:xpe,style:Gpe,styleTween:Ype,text:Qpe,textTween:nge,remove:Ipe,tween:cpe,delay:kpe,duration:Epe,ease:Ape,easeVarying:Npe,end:ige,[Symbol.iterator]:ni[Symbol.iterator]};function sge(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var lge={time:null,delay:0,duration:250,ease:sge};function age(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function cge(e){var t,r;e instanceof di?(t=e._id,e=e._name):(t=w1(),(r=lge).time=ep(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Wu(h,e,t,p,f,r||age(h,t));return new di(o,this._parents,e,t)}ba.prototype.interrupt=spe;ba.prototype.transition=cge;const bc=e=>()=>e;function uge(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function oi(e,t,r){this.k=e,this.x=t,this.y=r}oi.prototype={constructor:oi,scale:function(e){return e===1?this:new oi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new oi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ip=new oi(1,0,0);oi.prototype;function cd(e){e.stopImmediatePropagation()}function kl(e){e.preventDefault(),e.stopImmediatePropagation()}function fge(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function dge(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function _0(){return this.__zoom||ip}function hge(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function pge(){return navigator.maxTouchPoints||"ontouchstart"in this}function gge(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function vge(){var e=fge,t=dge,r=gge,o=hge,s=pge,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Jhe,p=wa("start","zoom","end"),v,y,b,x=500,E=150,C=0,L=10;function N(I){I.property("__zoom",_0).on("wheel.zoom",ie,{passive:!1}).on("mousedown.zoom",ee).on("dblclick.zoom",j).filter(s).on("touchstart.zoom",te).on("touchmove.zoom",Z).on("touchend.zoom touchcancel.zoom",H).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}N.transform=function(I,k,B,U){var re=I.selection?I.selection():I;re.property("__zoom",_0),I!==re?q(I,k,B,U):re.interrupt().each(function(){W(this,arguments).event(U).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},N.scaleBy=function(I,k,B,U){N.scaleTo(I,function(){var re=this.__zoom.k,ye=typeof k=="function"?k.apply(this,arguments):k;return re*ye},B,U)},N.scaleTo=function(I,k,B,U){N.transform(I,function(){var re=t.apply(this,arguments),ye=this.__zoom,Ne=B==null?M(re):typeof B=="function"?B.apply(this,arguments):B,We=ye.invert(Ne),je=typeof k=="function"?k.apply(this,arguments):k;return r(P(A(ye,je),Ne,We),re,f)},B,U)},N.translateBy=function(I,k,B,U){N.transform(I,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof B=="function"?B.apply(this,arguments):B),t.apply(this,arguments),f)},null,U)},N.translateTo=function(I,k,B,U,re){N.transform(I,function(){var ye=t.apply(this,arguments),Ne=this.__zoom,We=U==null?M(ye):typeof U=="function"?U.apply(this,arguments):U;return r(ip.translate(We[0],We[1]).scale(Ne.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof B=="function"?-B.apply(this,arguments):-B),ye,f)},U,re)};function A(I,k){return k=Math.max(c[0],Math.min(c[1],k)),k===I.k?I:new oi(k,I.x,I.y)}function P(I,k,B){var U=k[0]-B[0]*I.k,re=k[1]-B[1]*I.k;return U===I.x&&re===I.y?I:new oi(I.k,U,re)}function M(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function q(I,k,B,U){I.on("start.zoom",function(){W(this,arguments).event(U).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(U).end()}).tween("zoom",function(){var re=this,ye=arguments,Ne=W(re,ye).event(U),We=t.apply(re,ye),je=B==null?M(We):typeof B=="function"?B.apply(re,ye):B,it=Math.max(We[1][0]-We[0][0],We[1][1]-We[0][1]),rt=re.__zoom,Je=typeof k=="function"?k.apply(re,ye):k,Le=h(rt.invert(je).concat(it/rt.k),Je.invert(je).concat(it/Je.k));return function(K){if(K===1)K=Je;else{var ae=Le(K),de=it/ae[2];K=new oi(de,je[0]-ae[0]*de,je[1]-ae[1]*de)}Ne.zoom(null,K)}})}function W(I,k,B){return!B&&I.__zooming||new X(I,k)}function X(I,k){this.that=I,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(I,k),this.taps=0}X.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,k){return this.mouse&&I!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var k=Dn(this.that).datum();p.call(I,this.that,new uge(I,{sourceEvent:this.sourceEvent,target:N,type:I,transform:this.that.__zoom,dispatch:p}),k)}};function ie(I,...k){if(!e.apply(this,arguments))return;var B=W(this,k).event(I),U=this.__zoom,re=Math.max(c[0],Math.min(c[1],U.k*Math.pow(2,o.apply(this,arguments)))),ye=ii(I);if(B.wheel)(B.mouse[0][0]!==ye[0]||B.mouse[0][1]!==ye[1])&&(B.mouse[1]=U.invert(B.mouse[0]=ye)),clearTimeout(B.wheel);else{if(U.k===re)return;B.mouse=[ye,U.invert(ye)],Oc(this),B.start()}kl(I),B.wheel=setTimeout(Ne,E),B.zoom("mouse",r(P(A(U,re),B.mouse[0],B.mouse[1]),B.extent,f));function Ne(){B.wheel=null,B.end()}}function ee(I,...k){if(b||!e.apply(this,arguments))return;var B=I.currentTarget,U=W(this,k,!0).event(I),re=Dn(I.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",it,!0),ye=ii(I,B),Ne=I.clientX,We=I.clientY;l1(I.view),cd(I),U.mouse=[ye,this.__zoom.invert(ye)],Oc(this),U.start();function je(rt){if(kl(rt),!U.moved){var Je=rt.clientX-Ne,Le=rt.clientY-We;U.moved=Je*Je+Le*Le>C}U.event(rt).zoom("mouse",r(P(U.that.__zoom,U.mouse[0]=ii(rt,B),U.mouse[1]),U.extent,f))}function it(rt){re.on("mousemove.zoom mouseup.zoom",null),a1(rt.view,U.moved),kl(rt),U.event(rt).end()}}function j(I,...k){if(e.apply(this,arguments)){var B=this.__zoom,U=ii(I.changedTouches?I.changedTouches[0]:I,this),re=B.invert(U),ye=B.k*(I.shiftKey?.5:2),Ne=r(P(A(B,ye),U,re),t.apply(this,k),f);kl(I),d>0?Dn(this).transition().duration(d).call(q,Ne,U,I):Dn(this).call(N.transform,Ne,U,I)}}function te(I,...k){if(e.apply(this,arguments)){var B=I.touches,U=B.length,re=W(this,k,I.changedTouches.length===U).event(I),ye,Ne,We,je;for(cd(I),Ne=0;Ne<U;++Ne)We=B[Ne],je=ii(We,this),je=[je,this.__zoom.invert(je),We.identifier],re.touch0?!re.touch1&&re.touch0[2]!==je[2]&&(re.touch1=je,re.taps=0):(re.touch0=je,ye=!0,re.taps=1+!!v);v&&(v=clearTimeout(v)),ye&&(re.taps<2&&(y=je[0],v=setTimeout(function(){v=null},x)),Oc(this),re.start())}}function Z(I,...k){if(this.__zooming){var B=W(this,k).event(I),U=I.changedTouches,re=U.length,ye,Ne,We,je;for(kl(I),ye=0;ye<re;++ye)Ne=U[ye],We=ii(Ne,this),B.touch0&&B.touch0[2]===Ne.identifier?B.touch0[0]=We:B.touch1&&B.touch1[2]===Ne.identifier&&(B.touch1[0]=We);if(Ne=B.that.__zoom,B.touch1){var it=B.touch0[0],rt=B.touch0[1],Je=B.touch1[0],Le=B.touch1[1],K=(K=Je[0]-it[0])*K+(K=Je[1]-it[1])*K,ae=(ae=Le[0]-rt[0])*ae+(ae=Le[1]-rt[1])*ae;Ne=A(Ne,Math.sqrt(K/ae)),We=[(it[0]+Je[0])/2,(it[1]+Je[1])/2],je=[(rt[0]+Le[0])/2,(rt[1]+Le[1])/2]}else if(B.touch0)We=B.touch0[0],je=B.touch0[1];else return;B.zoom("touch",r(P(Ne,We,je),B.extent,f))}}function H(I,...k){if(this.__zooming){var B=W(this,k).event(I),U=I.changedTouches,re=U.length,ye,Ne;for(cd(I),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),ye=0;ye<re;++ye)Ne=U[ye],B.touch0&&B.touch0[2]===Ne.identifier?delete B.touch0:B.touch1&&B.touch1[2]===Ne.identifier&&delete B.touch1;if(B.touch1&&!B.touch0&&(B.touch0=B.touch1,delete B.touch1),B.touch0)B.touch0[1]=this.__zoom.invert(B.touch0[0]);else if(B.end(),B.taps===2&&(Ne=ii(Ne,this),Math.hypot(y[0]-Ne[0],y[1]-Ne[1])<L)){var We=Dn(this).on("dblclick.zoom");We&&We.apply(this,arguments)}}}return N.wheelDelta=function(I){return arguments.length?(o=typeof I=="function"?I:bc(+I),N):o},N.filter=function(I){return arguments.length?(e=typeof I=="function"?I:bc(!!I),N):e},N.touchable=function(I){return arguments.length?(s=typeof I=="function"?I:bc(!!I),N):s},N.extent=function(I){return arguments.length?(t=typeof I=="function"?I:bc([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),N):t},N.scaleExtent=function(I){return arguments.length?(c[0]=+I[0],c[1]=+I[1],N):[c[0],c[1]]},N.translateExtent=function(I){return arguments.length?(f[0][0]=+I[0][0],f[1][0]=+I[1][0],f[0][1]=+I[0][1],f[1][1]=+I[1][1],N):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},N.constrain=function(I){return arguments.length?(r=I,N):r},N.duration=function(I){return arguments.length?(d=+I,N):d},N.interpolate=function(I){return arguments.length?(h=I,N):h},N.on=function(){var I=p.on.apply(p,arguments);return I===p?N:I},N.clickDistance=function(I){return arguments.length?(C=(I=+I)*I,N):Math.sqrt(C)},N.tapDistance=function(I){return arguments.length?(L=+I,N):L},N}function mge(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return x1(this.cover(t,r),t,r,e)}function x1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,y,b,x,E,C,L,N,A;if(!c)return e._root=f,e;for(;c.length;)if((C=t>=(y=(d+p)/2))?d=y:p=y,(L=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[N=L<<1|C]))return s[N]=f,e;if(x=+e._x.call(null,c.data),E=+e._y.call(null,c.data),t===x&&r===E)return f.next=c,s?s[N]=f:e._root=f,e;do s=s?s[N]=new Array(4):e._root=new Array(4),(C=t>=(y=(d+p)/2))?d=y:p=y,(L=r>=(b=(h+v)/2))?h=b:v=b;while((N=L<<1|C)===(A=(E>=b)<<1|x>=y));return s[A]=c,s[N]=f,e}function yge(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,y=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>y&&(y=c));if(h>v||p>y)return this;for(this.cover(h,p).cover(v,y),r=0;r<o;++r)x1(this,f[r],d[r],e[r]);return this}function bge(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function wge(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function xge(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function kn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function _ge(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,y=this._y1,b=[],x=this._root,E,C;for(x&&b.push(new kn(x,s,c,v,y)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,y=t+r,r*=r);E=b.pop();)if(!(!(x=E.node)||(f=E.x0)>v||(d=E.y0)>y||(h=E.x1)<s||(p=E.y1)<c))if(x.length){var L=(f+h)/2,N=(d+p)/2;b.push(new kn(x[3],L,N,h,p),new kn(x[2],f,N,L,p),new kn(x[1],L,d,h,N),new kn(x[0],f,d,L,N)),(C=(t>=N)<<1|e>=L)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-C],b[b.length-1-C]=E)}else{var A=e-+this._x.call(null,x.data),P=t-+this._y.call(null,x.data),M=A*A+P*P;if(M<r){var q=Math.sqrt(r=M);s=e-q,c=t-q,v=e+q,y=t+q,o=x.data}}return o}function Sge(e){if(isNaN(v=+this._x.call(null,e))||isNaN(y=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,y,b,x,E,C,L,N;if(!r)return this;if(r.length)for(;;){if((E=v>=(b=(f+h)/2))?f=b:h=b,(C=y>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[L=C<<1|E]))return this;if(!r.length)break;(t[L+1&3]||t[L+2&3]||t[L+3&3])&&(o=t,N=L)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[L]=c:delete t[L],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[N]=r:this._root=r),this):(this._root=c,this)}function kge(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Cge(){return this._root}function Tge(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Ege(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new kn(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new kn(s,p,v,d,h)),(s=o[2])&&t.push(new kn(s,c,v,p,h)),(s=o[1])&&t.push(new kn(s,p,f,d,v)),(s=o[0])&&t.push(new kn(s,c,f,p,v))}return this}function Lge(e){var t=[],r=[],o;for(this._root&&t.push(new kn(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,y=(d+p)/2;(c=s[0])&&t.push(new kn(c,f,d,v,y)),(c=s[1])&&t.push(new kn(c,v,d,h,y)),(c=s[2])&&t.push(new kn(c,f,y,v,p)),(c=s[3])&&t.push(new kn(c,v,y,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Age(e){return e[0]}function Mge(e){return arguments.length?(this._x=e,this):this._x}function Nge(e){return e[1]}function $ge(e){return arguments.length?(this._y=e,this):this._y}function op(e,t,r){var o=new sp(t??Age,r??Nge,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function sp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function S0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var En=op.prototype=sp.prototype;En.copy=function(){var e=new sp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=S0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=S0(o));return e};En.add=mge;En.addAll=yge;En.cover=bge;En.data=wge;En.extent=xge;En.find=_ge;En.remove=Sge;En.removeAll=kge;En.root=Cge;En.size=Tge;En.visit=Ege;En.visitAfter=Lge;En.x=Mge;En.y=$ge;function Tn(e){return function(){return e}}function Vi(e){return(e()-.5)*1e-6}function Pge(e){return e.x+e.vx}function Oge(e){return e.y+e.vy}function Rge(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Tn(e==null?1:+e));function f(){for(var p,v=t.length,y,b,x,E,C,L,N=0;N<c;++N)for(y=op(t,Pge,Oge).visitAfter(d),p=0;p<v;++p)b=t[p],C=r[b.index],L=C*C,x=b.x+b.vx,E=b.y+b.vy,y.visit(A);function A(P,M,q,W,X){var ie=P.data,ee=P.r,j=C+ee;if(ie){if(ie.index>b.index){var te=x-ie.x-ie.vx,Z=E-ie.y-ie.vy,H=te*te+Z*Z;H<j*j&&(te===0&&(te=Vi(o),H+=te*te),Z===0&&(Z=Vi(o),H+=Z*Z),H=(j-(H=Math.sqrt(H)))/H*s,b.vx+=(te*=H)*(j=(ee*=ee)/(L+ee)),b.vy+=(Z*=H)*j,ie.vx-=te*(j=1-j),ie.vy-=Z*j)}return}return M>x+j||W<x-j||q>E+j||X<E-j}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,y;for(r=new Array(v),p=0;p<v;++p)y=t[p],r[y.index]=+e(y,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Tn(+p),h(),f):e},f}function Dge(e){return e.index}function k0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function zge(e){var t=Dge,r=y,o,s=Tn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function y(L){return 1/Math.min(d[L.source.index],d[L.target.index])}function b(L){for(var N=0,A=e.length;N<v;++N)for(var P=0,M,q,W,X,ie,ee,j;P<A;++P)M=e[P],q=M.source,W=M.target,X=W.x+W.vx-q.x-q.vx||Vi(p),ie=W.y+W.vy-q.y-q.vy||Vi(p),ee=Math.sqrt(X*X+ie*ie),ee=(ee-c[P])/ee*L*o[P],X*=ee,ie*=ee,W.vx-=X*(j=h[P]),W.vy-=ie*j,q.vx+=X*(j=1-j),q.vy+=ie*j}function x(){if(f){var L,N=f.length,A=e.length,P=new Map(f.map((q,W)=>[t(q,W,f),q])),M;for(L=0,d=new Array(N);L<A;++L)M=e[L],M.index=L,typeof M.source!="object"&&(M.source=k0(P,M.source)),typeof M.target!="object"&&(M.target=k0(P,M.target)),d[M.source.index]=(d[M.source.index]||0)+1,d[M.target.index]=(d[M.target.index]||0)+1;for(L=0,h=new Array(A);L<A;++L)M=e[L],h[L]=d[M.source.index]/(d[M.source.index]+d[M.target.index]);o=new Array(A),E(),c=new Array(A),C()}}function E(){if(f)for(var L=0,N=e.length;L<N;++L)o[L]=+r(e[L],L,e)}function C(){if(f)for(var L=0,N=e.length;L<N;++L)c[L]=+s(e[L],L,e)}return b.initialize=function(L,N){f=L,p=N,x()},b.links=function(L){return arguments.length?(e=L,x(),b):e},b.id=function(L){return arguments.length?(t=L,b):t},b.iterations=function(L){return arguments.length?(v=+L,b):v},b.strength=function(L){return arguments.length?(r=typeof L=="function"?L:Tn(+L),E(),b):r},b.distance=function(L){return arguments.length?(s=typeof L=="function"?L:Tn(+L),C(),b):s},b}const Ige=1664525,Fge=1013904223,C0=4294967296;function Hge(){let e=1;return()=>(e=(Ige*e+Fge)%C0)/C0}function qge(e){return e.x}function Bge(e){return e.y}var Wge=10,Uge=Math.PI*(3-Math.sqrt(5));function Vge(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=tp(y),p=wa("tick","end"),v=Hge();e==null&&(e=[]);function y(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(C){var L,N=e.length,A;C===void 0&&(C=1);for(var P=0;P<C;++P)for(r+=(c-r)*s,d.forEach(function(M){M(r)}),L=0;L<N;++L)A=e[L],A.fx==null?A.x+=A.vx*=f:(A.x=A.fx,A.vx=0),A.fy==null?A.y+=A.vy*=f:(A.y=A.fy,A.vy=0);return t}function x(){for(var C=0,L=e.length,N;C<L;++C){if(N=e[C],N.index=C,N.fx!=null&&(N.x=N.fx),N.fy!=null&&(N.y=N.fy),isNaN(N.x)||isNaN(N.y)){var A=Wge*Math.sqrt(.5+C),P=C*Uge;N.x=A*Math.cos(P),N.y=A*Math.sin(P)}(isNaN(N.vx)||isNaN(N.vy))&&(N.vx=N.vy=0)}}function E(C){return C.initialize&&C.initialize(e,v),C}return x(),t={tick:b,restart:function(){return h.restart(y),t},stop:function(){return h.stop(),t},nodes:function(C){return arguments.length?(e=C,x(),d.forEach(E),t):e},alpha:function(C){return arguments.length?(r=+C,t):r},alphaMin:function(C){return arguments.length?(o=+C,t):o},alphaDecay:function(C){return arguments.length?(s=+C,t):+s},alphaTarget:function(C){return arguments.length?(c=+C,t):c},velocityDecay:function(C){return arguments.length?(f=1-C,t):1-f},randomSource:function(C){return arguments.length?(v=C,d.forEach(E),t):v},force:function(C,L){return arguments.length>1?(L==null?d.delete(C):d.set(C,E(L)),t):d.get(C)},find:function(C,L,N){var A=0,P=e.length,M,q,W,X,ie;for(N==null?N=1/0:N*=N,A=0;A<P;++A)X=e[A],M=C-X.x,q=L-X.y,W=M*M+q*q,W<N&&(ie=X,N=W);return ie},on:function(C,L){return arguments.length>1?(p.on(C,L),t):p.on(C)}}}function jge(){var e,t,r,o,s=Tn(-30),c,f=1,d=1/0,h=.81;function p(x){var E,C=e.length,L=op(e,qge,Bge).visitAfter(y);for(o=x,E=0;E<C;++E)t=e[E],L.visit(b)}function v(){if(e){var x,E=e.length,C;for(c=new Array(E),x=0;x<E;++x)C=e[x],c[C.index]=+s(C,x,e)}}function y(x){var E=0,C,L,N=0,A,P,M;if(x.length){for(A=P=M=0;M<4;++M)(C=x[M])&&(L=Math.abs(C.value))&&(E+=C.value,N+=L,A+=L*C.x,P+=L*C.y);x.x=A/N,x.y=P/N}else{C=x,C.x=C.data.x,C.y=C.data.y;do E+=c[C.data.index];while(C=C.next)}x.value=E}function b(x,E,C,L){if(!x.value)return!0;var N=x.x-t.x,A=x.y-t.y,P=L-E,M=N*N+A*A;if(P*P/h<M)return M<d&&(N===0&&(N=Vi(r),M+=N*N),A===0&&(A=Vi(r),M+=A*A),M<f&&(M=Math.sqrt(f*M)),t.vx+=N*x.value*o/M,t.vy+=A*x.value*o/M),!0;if(x.length||M>=d)return;(x.data!==t||x.next)&&(N===0&&(N=Vi(r),M+=N*N),A===0&&(A=Vi(r),M+=A*A),M<f&&(M=Math.sqrt(f*M)));do x.data!==t&&(P=c[x.data.index]*o/M,t.vx+=N*P,t.vy+=A*P);while(x=x.next)}return p.initialize=function(x,E){e=x,r=E,v()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:Tn(+x),v(),p):s},p.distanceMin=function(x){return arguments.length?(f=x*x,p):Math.sqrt(f)},p.distanceMax=function(x){return arguments.length?(d=x*x,p):Math.sqrt(d)},p.theta=function(x){return arguments.length?(h=x*x,p):Math.sqrt(h)},p}function Gge(e){var t=Tn(.1),r,o,s;typeof e!="function"&&(e=Tn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Tn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Tn(+d),f(),c):e},c}function Kge(e){var t=Tn(.1),r,o,s;typeof e!="function"&&(e=Tn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Tn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Tn(+d),f(),c):e},c}var Xge=Object.defineProperty,Yge=(e,t,r)=>t in e?Xge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dt=(e,t,r)=>Yge(e,typeof t!="symbol"?t+"":t,r);function Zge(){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 T0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function ji(...e){return e.reduce((t,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(t[o])&&Array.isArray(r[o])?t[o]=ji.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:T0(t[o])&&T0(r[o])?t[o]=ji(t[o],r[o]):t[o]=r[o])}),t},{})}const _1={mergeArrays:!0};ji.options=_1;ji.withOptions=(e,...t)=>{ji.options={mergeArrays:!0,...e};const r=ji(...t);return ji.options=_1,r};function Jge(){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 Qge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function S1(e){e.preventDefault(),e.stopPropagation()}function k1(e){return typeof e=="number"}function no(e,t){return k1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function eve(e){return`${e.source.id}-${e.target.id}`}function C1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function tve(e){return`url(#${C1(e.color)})`}function nve(e){return{size:e,padding:(t,r)=>no(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const T1={Arrow:e=>nve(e)},rve=(e,t,r)=>[t/2,r/2],E1=(e,t,r)=>[E0(0,t),E0(0,r)];function E0(e,t){return Math.random()*(t-e)+e}function ive(e){const t=Object.fromEntries(e.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,s)=>{const[c,f]=t[r.id]??[];return!c||!f?E1(r,o,s):[c,f]}}const Qd={Centered:rve,Randomized:E1,Stable:ive};function ove(){return{autoResize:!1,callbacks:{},hooks:{},initial:Qge(),nodeRadius:16,marker:T1.Arrow(4),modifiers:{},positionInitializer:Qd.Centered,simulation:{alphas:Zge(),forces:Jge()},zoom:{initial:1,min:.1,max:2}}}function sve(e={}){return ji.withOptions({mergeArrays:!1},ove(),e)}function lve({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>S1(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 e&&p.call(h.transform,ip.translate(c,f).scale(d)),p.append("g")}function ave({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function cve({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=The().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),Dn(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),Dn(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,c),c}function uve({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:fve({nodes:d,links:c},r)}function fve(e,t){const r=[...dve(e,t),...hve(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function dve(e,t){return L1(e,t,(r,o)=>r.target.id===o.id)}function hve(e,t){return L1(e,t,(r,o)=>r.source.id===o.id)}function L1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function eh(e){return e.x??0}function th(e){return e.y??0}function lp({source:e,target:t}){const r=new Sn(eh(e),th(e)),o=new Sn(eh(t),th(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function A1({center:e,node:t}){const r=new Sn(eh(t),th(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new Sn(0,1))),{n:r,c:o}}function M1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=lp({config:e,source:t,target:r}),f=o.add(c.multiply(no(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function pve(e){const{start:t,end:r}=M1(e);return`M${t.x},${t.y}
48
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;v&&(D=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,D),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=V,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function G(){if(u.selectionStart!=null){var ce=a.somethingSelected(),ve="​"+(ce?u.value:"");u.value="⇚",u.value=ve,i.prevInput=ce?"":"​",u.selectionStart=1,u.selectionEnd=ve.length,l.selForContextMenu=a.doc.sel}}function V(){if(i.contextMenuPending==V&&(i.contextMenuPending=!1,i.wrapper.style.cssText=S,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=m),u.selectionStart!=null)){(!h||h&&p<9)&&G();var ce=0,ve=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?Wt(a,Lg)(a):ce++<10?l.detectingSelectAll=setTimeout(ve,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ve,200)}}if(h&&p>=9&&G(),j){vi(n);var ne=function(){en(window,"mouseup",ne),setTimeout(V,20)};Fe(window,"mouseup",ne)}else setTimeout(V,50)},Nt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Nt.prototype.setUneditable=function(){},Nt.prototype.needsContentAttribute=!1;function O_(n,i){if(i=i?ae(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=ye(Je(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=w.getValue()}var u;if(n.form&&(Fe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var m=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=m}}catch{}}i.finishInit=function(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(en(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=kt(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return w}function R_(n){n.off=en,n.on=Fe,n.wheelEventPixels=Bx,n.Doc=mn,n.splitLines=Jn,n.countColumn=de,n.findColumn=le,n.isWordChar=Ue,n.Pass=O,n.signal=Et,n.Line=jo,n.changeEnd=ki,n.scrollbarModel=ig,n.Pos=Q,n.cmpPos=_e,n.modes=Ho,n.mimeModes=dr,n.resolveMode=qo,n.getMode=Bo,n.modeExtensions=bi,n.extendMode=Wo,n.copyState=Er,n.startState=Uo,n.innerMode=Us,n.commands=pl,n.keyMap=Qr,n.keyName=Ug,n.isModifierKey=Bg,n.lookupKey=os,n.normalizeKeyMap=u_,n.StringStream=At,n.SharedTextMarker=fl,n.TextMarker=Ti,n.LineWidget=ul,n.e_preventDefault=tn,n.e_stopPropagation=Io,n.e_stop=vi,n.addClass=Ne,n.contains=re,n.rmClass=Z,n.keyNames=Ei}T_(kt),M_(kt);var D_="iter insert remove copy getEditor constructor".split(" ");for(var Qa in mn.prototype)mn.prototype.hasOwnProperty(Qa)&&Ee(D_,Qa)<0&&(kt.prototype[Qa]=function(n){return function(){return n.apply(this.doc,arguments)}}(mn.prototype[Qa]));return cr(mn),kt.inputStyles={textarea:Nt,contenteditable:yt},kt.defineMode=function(n){!kt.defaults.mode&&n!="null"&&(kt.defaults.mode=n),hr.apply(this,arguments)},kt.defineMIME=so,kt.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),kt.defineMIME("text/plain","null"),kt.defineExtension=function(n,i){kt.prototype[n]=i},kt.defineDocExtension=function(n,i){mn.prototype[n]=i},kt.fromTextArea=O_,R_(kt),kt.version="5.65.17",kt})})(Gw);var qs=Gw.exports;const yfe=Wb(qs);var bfe={exports:{}};(function(e,t){(function(r){r(qs)})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,y=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function C(qt){return{type:qt,style:"keyword"}}var R=C("keyword a"),se=C("keyword b"),ge=C("keyword c"),Q=C("keyword d"),_e=C("operator"),dt={type:"atom",style:"atom"};return{if:C("if"),while:R,with:R,else:se,do:se,try:se,finally:se,return:Q,break:Q,continue:Q,new:C("new"),delete:ge,void:ge,throw:ge,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:_e,typeof:_e,instanceof:_e,true:dt,false:dt,null:dt,undefined:dt,NaN:dt,Infinity:dt,this:C("this"),class:C("class"),super:C("atom"),yield:ge,export:C("export"),import:C("import"),extends:ge,await:ge}}(),x=/[+\-*&%=<>!?|~^@]/,A=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function T(C){for(var R=!1,se,ge=!1;(se=C.next())!=null;){if(!R){if(se=="/"&&!ge)return;se=="["?ge=!0:ge&&se=="]"&&(ge=!1)}R=!R&&se=="\\"}}var E,L;function M(C,R,se){return E=C,L=se,R}function P(C,R){var se=C.next();if(se=='"'||se=="'")return R.tokenize=N(se),R.tokenize(C,R);if(se=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return M("number","number");if(se=="."&&C.match(".."))return M("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(se))return M(se);if(se=="="&&C.eat(">"))return M("=>","operator");if(se=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return M("number","number");if(/\d/.test(se))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),M("number","number");if(se=="/")return C.eat("*")?(R.tokenize=q,q(C,R)):C.eat("/")?(C.skipToEnd(),M("comment","comment")):Bn(C,R,1)?(T(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),M("regexp","string-2")):(C.eat("="),M("operator","operator",C.current()));if(se=="`")return R.tokenize=W,W(C,R);if(se=="#"&&C.peek()=="!")return C.skipToEnd(),M("meta","meta");if(se=="#"&&C.eatWhile(y))return M("variable","property");if(se=="<"&&C.match("!--")||se=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),M("comment","comment");if(x.test(se))return(se!=">"||!R.lexical||R.lexical.type!=">")&&(C.eat("=")?(se=="!"||se=="=")&&C.eat("="):/[<>*+\-|&?]/.test(se)&&(C.eat(se),se==">"&&C.eat(se))),se=="?"&&C.eat(".")?M("."):M("operator","operator",C.current());if(y.test(se)){C.eatWhile(y);var ge=C.current();if(R.lastType!="."){if(b.propertyIsEnumerable(ge)){var Q=b[ge];return M(Q.type,Q.style,ge)}if(ge=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return M("async","keyword",ge)}return M("variable","variable",ge)}}function N(C){return function(R,se){var ge=!1,Q;if(d&&R.peek()=="@"&&R.match(A))return se.tokenize=P,M("jsonld-keyword","meta");for(;(Q=R.next())!=null&&!(Q==C&&!ge);)ge=!ge&&Q=="\\";return ge||(se.tokenize=P),M("string","string")}}function q(C,R){for(var se=!1,ge;ge=C.next();){if(ge=="/"&&se){R.tokenize=P;break}se=ge=="*"}return M("comment","comment")}function W(C,R){for(var se=!1,ge;(ge=C.next())!=null;){if(!se&&(ge=="`"||ge=="$"&&C.eat("{"))){R.tokenize=P;break}se=!se&&ge=="\\"}return M("quasi","string-2",C.current())}var X="([{}])";function ie(C,R){R.fatArrowAt&&(R.fatArrowAt=null);var se=C.string.indexOf("=>",C.start);if(!(se<0)){if(v){var ge=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,se));ge&&(se=ge.index)}for(var Q=0,_e=!1,dt=se-1;dt>=0;--dt){var qt=C.string.charAt(dt),gn=X.indexOf(qt);if(gn>=0&&gn<3){if(!Q){++dt;break}if(--Q==0){qt=="("&&(_e=!0);break}}else if(gn>=3&&gn<6)++Q;else if(y.test(qt))_e=!0;else if(/["'\/`]/.test(qt))for(;;--dt){if(dt==0)return;var Vo=C.string.charAt(dt-1);if(Vo==qt&&C.string.charAt(dt-2)!="\\"){dt--;break}}else if(_e&&!Q){++dt;break}}_e&&!Q&&(R.fatArrowAt=dt)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function j(C,R,se,ge,Q,_e){this.indented=C,this.column=R,this.type=se,this.prev=Q,this.info=_e,ge!=null&&(this.align=ge)}function te(C,R){if(!p)return!1;for(var se=C.localVars;se;se=se.next)if(se.name==R)return!0;for(var ge=C.context;ge;ge=ge.prev)for(var se=ge.vars;se;se=se.next)if(se.name==R)return!0}function Z(C,R,se,ge,Q){var _e=C.cc;for(H.state=C,H.stream=Q,H.marked=null,H.cc=_e,H.style=R,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var dt=_e.length?_e.pop():h?Ee:de;if(dt(se,ge)){for(;_e.length&&_e[_e.length-1].lex;)_e.pop()();return H.marked?H.marked:se=="variable"&&te(C,ge)?"variable-2":R}}}var H={state:null,column:null,marked:null,cc:null};function I(){for(var C=arguments.length-1;C>=0;C--)H.cc.push(arguments[C])}function k(){return I.apply(null,arguments),!0}function B(C,R){for(var se=R;se;se=se.next)if(se.name==C)return!0;return!1}function U(C){var R=H.state;if(H.marked="def",!!p){if(R.context){if(R.lexical.info=="var"&&R.context&&R.context.block){var se=re(C,R.context);if(se!=null){R.context=se;return}}else if(!B(C,R.localVars)){R.localVars=new We(C,R.localVars);return}}s.globalVars&&!B(C,R.globalVars)&&(R.globalVars=new We(C,R.globalVars))}}function re(C,R){if(R)if(R.block){var se=re(C,R.prev);return se?se==R.prev?R:new Ne(se,R.vars,!0):null}else return B(C,R.vars)?R:new Ne(R.prev,new We(C,R.vars),!1);else return null}function ye(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Ne(C,R,se){this.prev=C,this.vars=R,this.block=se}function We(C,R){this.name=C,this.next=R}var je=new We("this",new We("arguments",null));function it(){H.state.context=new Ne(H.state.context,H.state.localVars,!1),H.state.localVars=je}function rt(){H.state.context=new Ne(H.state.context,H.state.localVars,!0),H.state.localVars=null}it.lex=rt.lex=!0;function Je(){H.state.localVars=H.state.context.vars,H.state.context=H.state.context.prev}Je.lex=!0;function Le(C,R){var se=function(){var ge=H.state,Q=ge.indented;if(ge.lexical.type=="stat")Q=ge.lexical.indented;else for(var _e=ge.lexical;_e&&_e.type==")"&&_e.align;_e=_e.prev)Q=_e.indented;ge.lexical=new j(Q,H.stream.column(),C,null,ge.lexical,R)};return se.lex=!0,se}function K(){var C=H.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}K.lex=!0;function ae(C){function R(se){return se==C?k():C==";"||se=="}"||se==")"||se=="]"?I():k(R)}return R}function de(C,R){return C=="var"?k(Le("vardef",R),Io,ae(";"),K):C=="keyword a"?k(Le("form"),O,de,K):C=="keyword b"?k(Le("form"),de,K):C=="keyword d"?H.stream.match(/^\s*$/,!1)?k():k(Le("stat"),J,ae(";"),K):C=="debugger"?k(ae(";")):C=="{"?k(Le("}"),rt,Jt,K,Je):C==";"?k():C=="if"?(H.state.lexical.info=="else"&&H.state.cc[H.state.cc.length-1]==K&&H.state.cc.pop()(),k(Le("form"),O,de,K,Fo)):C=="function"?k(Jn):C=="for"?k(Le("form"),rt,_a,de,Je,K):C=="class"||v&&R=="interface"?(H.marked="keyword",k(Le("form",C=="class"?C:R),Ho,K)):C=="variable"?v&&R=="declare"?(H.marked="keyword",k(de)):v&&(R=="module"||R=="enum"||R=="type")&&H.stream.match(/^\s*\w/,!1)?(H.marked="keyword",R=="enum"?k(Oe):R=="type"?k(Sa,ae("operator"),Ve,ae(";")):k(Le("form"),pn,ae("{"),Le("}"),Jt,K,K)):v&&R=="namespace"?(H.marked="keyword",k(Le("form"),Ee,de,K)):v&&R=="abstract"?(H.marked="keyword",k(de)):k(Le("stat"),Re):C=="switch"?k(Le("form"),O,ae("{"),Le("}","switch"),rt,Jt,K,K,Je):C=="case"?k(Ee,ae(":")):C=="default"?k(ae(":")):C=="catch"?k(Le("form"),it,$e,de,K,Je):C=="export"?k(Le("stat"),qo,K):C=="import"?k(Le("stat"),bi,K):C=="async"?k(de):R=="@"?k(Ee,de):I(Le("stat"),Ee,ae(";"),K)}function $e(C){if(C=="(")return k(fr,ae(")"))}function Ee(C,R){return F(C,R,!1)}function Ze(C,R){return F(C,R,!0)}function O(C){return C!="("?I():k(Le(")"),J,ae(")"),K)}function F(C,R,se){if(H.state.fatArrowAt==H.stream.start){var ge=se?xe:fe;if(C=="(")return k(it,Le(")"),nt(fr,")"),K,ae("=>"),ge,Je);if(C=="variable")return I(it,pn,ae("=>"),ge,Je)}var Q=se?le:ue;return ee.hasOwnProperty(C)?k(Q):C=="function"?k(Jn,Q):C=="class"||v&&R=="interface"?(H.marked="keyword",k(Le("form"),ju,K)):C=="keyword c"||C=="async"?k(se?Ze:Ee):C=="("?k(Le(")"),J,ae(")"),K,Q):C=="operator"||C=="spread"?k(se?Ze:Ee):C=="["?k(Le("]"),At,K,Q):C=="{"?Ft(Ge,"}",null,Q):C=="quasi"?I(he,Q):C=="new"?k(pe(se)):k()}function J(C){return C.match(/[;\}\)\],]/)?I():I(Ee)}function ue(C,R){return C==","?k(J):le(C,R,!1)}function le(C,R,se){var ge=se==!1?ue:le,Q=se==!1?Ee:Ze;if(C=="=>")return k(it,se?xe:fe,Je);if(C=="operator")return/\+\+|--/.test(R)||v&&R=="!"?k(ge):v&&R=="<"&&H.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Le(">"),nt(Ve,">"),K,ge):R=="?"?k(Ee,ae(":"),Q):k(Q);if(C=="quasi")return I(he,ge);if(C!=";"){if(C=="(")return Ft(Ze,")","call",ge);if(C==".")return k(Ue,ge);if(C=="[")return k(Le("]"),J,ae("]"),K,ge);if(v&&R=="as")return H.marked="keyword",k(Ve,ge);if(C=="regexp")return H.state.lastType=H.marked="operator",H.stream.backUp(H.stream.pos-H.stream.start-1),k(Q)}}function he(C,R){return C!="quasi"?I():R.slice(R.length-2)!="${"?k(he):k(J,Se)}function Se(C){if(C=="}")return H.marked="string-2",H.state.tokenize=W,k(he)}function fe(C){return ie(H.stream,H.state),I(C=="{"?de:Ee)}function xe(C){return ie(H.stream,H.state),I(C=="{"?de:Ze)}function pe(C){return function(R){return R=="."?k(C?ze:Me):R=="variable"&&v?k(An,C?le:ue):I(C?Ze:Ee)}}function Me(C,R){if(R=="target")return H.marked="keyword",k(ue)}function ze(C,R){if(R=="target")return H.marked="keyword",k(le)}function Re(C){return C==":"?k(K,de):I(ue,ae(";"),K)}function Ue(C){if(C=="variable")return H.marked="property",k()}function Ge(C,R){if(C=="async")return H.marked="property",k(Ge);if(C=="variable"||H.style=="keyword"){if(H.marked="property",R=="get"||R=="set")return k(mt);var se;return v&&H.state.fatArrowAt==H.stream.start&&(se=H.stream.match(/^\s*:\s*/,!1))&&(H.state.fatArrowAt=H.stream.pos+se[0].length),k(tt)}else{if(C=="number"||C=="string")return H.marked=d?"property":H.style+" property",k(tt);if(C=="jsonld-keyword")return k(tt);if(v&&ye(R))return H.marked="keyword",k(Ge);if(C=="[")return k(Ee,lr,ae("]"),tt);if(C=="spread")return k(Ze,tt);if(R=="*")return H.marked="keyword",k(Ge);if(C==":")return I(tt)}}function mt(C){return C!="variable"?I(tt):(H.marked="property",k(Jn))}function tt(C){if(C==":")return k(Ze);if(C=="(")return I(Jn)}function nt(C,R,se){function ge(Q,_e){if(se?se.indexOf(Q)>-1:Q==","){var dt=H.state.lexical;return dt.info=="call"&&(dt.pos=(dt.pos||0)+1),k(function(qt,gn){return qt==R||gn==R?I():I(C)},ge)}return Q==R||_e==R?k():se&&se.indexOf(";")>-1?I(C):k(ae(R))}return function(Q,_e){return Q==R||_e==R?k():I(C,ge)}}function Ft(C,R,se){for(var ge=3;ge<arguments.length;ge++)H.cc.push(arguments[ge]);return k(Le(R,se),nt(C,R),K)}function Jt(C){return C=="}"?k():I(de,Jt)}function lr(C,R){if(v){if(C==":")return k(Ve);if(R=="?")return k(lr)}}function qn(C,R){if(v&&(C==":"||R=="in"))return k(Ve)}function ar(C){if(v&&C==":")return H.stream.match(/^\s*\w+\s+is\b/,!1)?k(Ee,Qt,Ve):k(Ve)}function Qt(C,R){if(R=="is")return H.marked="keyword",k()}function Ve(C,R){if(R=="keyof"||R=="typeof"||R=="infer"||R=="readonly")return H.marked="keyword",k(R=="typeof"?Ze:Ve);if(C=="variable"||R=="void")return H.marked="type",k(Zn);if(R=="|"||R=="&")return k(Ve);if(C=="string"||C=="number"||C=="atom")return k(Zn);if(C=="[")return k(Le("]"),nt(Ve,"]",","),K,Zn);if(C=="{")return k(Le("}"),Fe,K,Zn);if(C=="(")return k(nt(Lt,")"),oo,Zn);if(C=="<")return k(nt(Ve,">"),Ve);if(C=="quasi")return I(en,Zn)}function oo(C){if(C=="=>")return k(Ve)}function Fe(C){return C.match(/[\}\)\]]/)?k():C==","||C==";"?k(Fe):I(Gr,Fe)}function Gr(C,R){if(C=="variable"||H.style=="keyword")return H.marked="property",k(Gr);if(R=="?"||C=="number"||C=="string")return k(Gr);if(C==":")return k(Ve);if(C=="[")return k(ae("variable"),qn,ae("]"),Gr);if(C=="(")return I(yi,Gr);if(!C.match(/[;\}\)\],]/))return k()}function en(C,R){return C!="quasi"?I():R.slice(R.length-2)!="${"?k(en):k(Ve,Et)}function Et(C){if(C=="}")return H.marked="string-2",H.state.tokenize=W,k(en)}function Lt(C,R){return C=="variable"&&H.stream.match(/^\s*[?:]/,!1)||R=="?"?k(Lt):C==":"?k(Ve):C=="spread"?k(Lt):I(Ve)}function Zn(C,R){if(R=="<")return k(Le(">"),nt(Ve,">"),K,Zn);if(R=="|"||C=="."||R=="&")return k(Ve);if(C=="[")return k(Ve,ae("]"),Zn);if(R=="extends"||R=="implements")return H.marked="keyword",k(Ve);if(R=="?")return k(Ve,ae(":"),Ve)}function An(C,R){if(R=="<")return k(Le(">"),nt(Ve,">"),K,Zn)}function cr(){return I(Ve,tn)}function tn(C,R){if(R=="=")return k(Ve)}function Io(C,R){return R=="enum"?(H.marked="keyword",k(Oe)):I(pn,lr,ur,Vu)}function pn(C,R){if(v&&ye(R))return H.marked="keyword",k(pn);if(C=="variable")return U(R),k();if(C=="spread")return k(pn);if(C=="[")return Ft(Bs,"]");if(C=="{")return Ft(vi,"}")}function vi(C,R){return C=="variable"&&!H.stream.match(/^\s*:/,!1)?(U(R),k(ur)):(C=="variable"&&(H.marked="property"),C=="spread"?k(pn):C=="}"?I():C=="["?k(Ee,ae("]"),ae(":"),vi):k(ae(":"),pn,ur))}function Bs(){return I(pn,ur)}function ur(C,R){if(R=="=")return k(Ze)}function Vu(C){if(C==",")return k(Io)}function Fo(C,R){if(C=="keyword b"&&R=="else")return k(Le("form","else"),de,K)}function _a(C,R){if(R=="await")return k(_a);if(C=="(")return k(Le(")"),Ws,K)}function Ws(C){return C=="var"?k(Io,mi):C=="variable"?k(mi):I(mi)}function mi(C,R){return C==")"?k():C==";"?k(mi):R=="in"||R=="of"?(H.marked="keyword",k(Ee,mi)):I(Ee,mi)}function Jn(C,R){if(R=="*")return H.marked="keyword",k(Jn);if(C=="variable")return U(R),k(Jn);if(C=="(")return k(it,Le(")"),nt(fr,")"),K,ar,de,Je);if(v&&R=="<")return k(Le(">"),nt(cr,">"),K,Jn)}function yi(C,R){if(R=="*")return H.marked="keyword",k(yi);if(C=="variable")return U(R),k(yi);if(C=="(")return k(it,Le(")"),nt(fr,")"),K,ar,Je);if(v&&R=="<")return k(Le(">"),nt(cr,">"),K,yi)}function Sa(C,R){if(C=="keyword"||C=="variable")return H.marked="type",k(Sa);if(R=="<")return k(Le(">"),nt(cr,">"),K)}function fr(C,R){return R=="@"&&k(Ee,fr),C=="spread"?k(fr):v&&ye(R)?(H.marked="keyword",k(fr)):v&&C=="this"?k(lr,ur):I(pn,lr,ur)}function ju(C,R){return C=="variable"?Ho(C,R):dr(C,R)}function Ho(C,R){if(C=="variable")return U(R),k(dr)}function dr(C,R){if(R=="<")return k(Le(">"),nt(cr,">"),K,dr);if(R=="extends"||R=="implements"||v&&C==",")return R=="implements"&&(H.marked="keyword"),k(v?Ve:Ee,dr);if(C=="{")return k(Le("}"),hr,K)}function hr(C,R){if(C=="async"||C=="variable"&&(R=="static"||R=="get"||R=="set"||v&&ye(R))&&H.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return H.marked="keyword",k(hr);if(C=="variable"||H.style=="keyword")return H.marked="property",k(so,hr);if(C=="number"||C=="string")return k(so,hr);if(C=="[")return k(Ee,lr,ae("]"),so,hr);if(R=="*")return H.marked="keyword",k(hr);if(v&&C=="(")return I(yi,hr);if(C==";"||C==",")return k(hr);if(C=="}")return k();if(R=="@")return k(Ee,hr)}function so(C,R){if(R=="!"||R=="?")return k(so);if(C==":")return k(Ve,ur);if(R=="=")return k(Ze);var se=H.state.lexical.prev,ge=se&&se.info=="interface";return I(ge?yi:Jn)}function qo(C,R){return R=="*"?(H.marked="keyword",k(Uo,ae(";"))):R=="default"?(H.marked="keyword",k(Ee,ae(";"))):C=="{"?k(nt(Bo,"}"),Uo,ae(";")):I(de)}function Bo(C,R){if(R=="as")return H.marked="keyword",k(ae("variable"));if(C=="variable")return I(Ze,Bo)}function bi(C){return C=="string"?k():C=="("?I(Ee):C=="."?I(ue):I(Wo,Er,Uo)}function Wo(C,R){return C=="{"?Ft(Wo,"}"):(C=="variable"&&U(R),R=="*"&&(H.marked="keyword"),k(Us))}function Er(C){if(C==",")return k(Wo,Er)}function Us(C,R){if(R=="as")return H.marked="keyword",k(Wo)}function Uo(C,R){if(R=="from")return H.marked="keyword",k(Ee)}function At(C){return C=="]"?k():I(nt(Ze,"]"))}function Oe(){return I(Le("form"),pn,ae("{"),Le("}"),nt(Kr,"}"),K,K)}function Kr(){return I(pn,ur)}function Vs(C,R){return C.lastType=="operator"||C.lastType==","||x.test(R.charAt(0))||/[,.]/.test(R.charAt(0))}function Bn(C,R,se){return R.tokenize==P&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(R.lastType)||R.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(se||0)))}return{startState:function(C){var R={tokenize:P,lastType:"sof",cc:[],lexical:new j((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Ne(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(R.globalVars=s.globalVars),R},token:function(C,R){if(C.sol()&&(R.lexical.hasOwnProperty("align")||(R.lexical.align=!1),R.indented=C.indentation(),ie(C,R)),R.tokenize!=q&&C.eatSpace())return null;var se=R.tokenize(C,R);return E=="comment"?se:(R.lastType=E=="operator"&&(L=="++"||L=="--")?"incdec":E,Z(R,se,E,L,C))},indent:function(C,R){if(C.tokenize==q||C.tokenize==W)return r.Pass;if(C.tokenize!=P)return 0;var se=R&&R.charAt(0),ge=C.lexical,Q;if(!/^\s*else\b/.test(R))for(var _e=C.cc.length-1;_e>=0;--_e){var dt=C.cc[_e];if(dt==K)ge=ge.prev;else if(dt!=Fo&&dt!=Je)break}for(;(ge.type=="stat"||ge.type=="form")&&(se=="}"||(Q=C.cc[C.cc.length-1])&&(Q==ue||Q==le)&&!/^[,\.=+\-*:?[\(]/.test(R));)ge=ge.prev;f&&ge.type==")"&&ge.prev.type=="stat"&&(ge=ge.prev);var qt=ge.type,gn=se==qt;return qt=="vardef"?ge.indented+(C.lastType=="operator"||C.lastType==","?ge.info.length+1:0):qt=="form"&&se=="{"?ge.indented:qt=="form"?ge.indented+c:qt=="stat"?ge.indented+(Vs(C,R)?f||c:0):ge.info=="switch"&&!gn&&s.doubleIndentSwitch!=!1?ge.indented+(/^(?:case|default)\b/.test(R)?c:2*c):ge.align?ge.column+(gn?0:1):ge.indented+(gn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Bn,skipExpression:function(C){Z(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 wfe=bfe.exports,xfe={exports:{}};(function(e,t){(function(r){r(qs)})(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(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var y,b;function x(k,B){function U(Ne){return B.tokenize=Ne,Ne(k,B)}var re=k.next();if(re=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?U(E("atom","]]>")):null:k.match("--")?U(E("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),U(L(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),B.tokenize=E("meta","?>"),"meta"):(y=k.eat("/")?"closeTag":"openTag",B.tokenize=A,"tag bracket");if(re=="&"){var ye;return k.eat("#")?k.eat("x")?ye=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):ye=k.eatWhile(/[\d]/)&&k.eat(";"):ye=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),ye?"atom":"error"}else return k.eatWhile(/[^&<]/),null}x.isInText=!0;function A(k,B){var U=k.next();if(U==">"||U=="/"&&k.eat(">"))return B.tokenize=x,y=U==">"?"endTag":"selfcloseTag","tag bracket";if(U=="=")return y="equals",null;if(U=="<"){B.tokenize=x,B.state=W,B.tagName=B.tagStart=null;var re=B.tokenize(k,B);return re?re+" tag error":"tag error"}else return/[\'\"]/.test(U)?(B.tokenize=T(U),B.stringStartCol=k.column(),B.tokenize(k,B)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function T(k){var B=function(U,re){for(;!U.eol();)if(U.next()==k){re.tokenize=A;break}return"string"};return B.isInAttribute=!0,B}function E(k,B){return function(U,re){for(;!U.eol();){if(U.match(B)){re.tokenize=x;break}U.next()}return k}}function L(k){return function(B,U){for(var re;(re=B.next())!=null;){if(re=="<")return U.tokenize=L(k+1),U.tokenize(B,U);if(re==">")if(k==1){U.tokenize=x;break}else return U.tokenize=L(k-1),U.tokenize(B,U)}return"meta"}}function M(k){return k&&k.toLowerCase()}function P(k,B,U){this.prev=k.context,this.tagName=B||"",this.indent=k.indented,this.startOfLine=U,(h.doNotIndent.hasOwnProperty(B)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function N(k){k.context&&(k.context=k.context.prev)}function q(k,B){for(var U;;){if(!k.context||(U=k.context.tagName,!h.contextGrabbers.hasOwnProperty(M(U))||!h.contextGrabbers[M(U)].hasOwnProperty(M(B))))return;N(k)}}function W(k,B,U){return k=="openTag"?(U.tagStart=B.column(),X):k=="closeTag"?ie:W}function X(k,B,U){return k=="word"?(U.tagName=B.current(),b="tag",te):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",te(k,B,U)):(b="error",X)}function ie(k,B,U){if(k=="word"){var re=B.current();return U.context&&U.context.tagName!=re&&h.implicitlyClosed.hasOwnProperty(M(U.context.tagName))&&N(U),U.context&&U.context.tagName==re||h.matchClosing===!1?(b="tag",ee):(b="tag error",j)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",ee(k,B,U)):(b="error",j)}function ee(k,B,U){return k!="endTag"?(b="error",ee):(N(U),W)}function j(k,B,U){return b="error",ee(k,B,U)}function te(k,B,U){if(k=="word")return b="attribute",Z;if(k=="endTag"||k=="selfcloseTag"){var re=U.tagName,ye=U.tagStart;return U.tagName=U.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(M(re))?q(U,re):(q(U,re),U.context=new P(U,re,ye==U.indented)),W}return b="error",te}function Z(k,B,U){return k=="equals"?H:(h.allowMissing||(b="error"),te(k,B,U))}function H(k,B,U){return k=="string"?I:k=="word"&&h.allowUnquoted?(b="string",te):(b="error",te(k,B,U))}function I(k,B,U){return k=="string"?I:te(k,B,U)}return{startState:function(k){var B={tokenize:x,state:W,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(B.baseIndent=k),B},token:function(k,B){if(!B.tagName&&k.sol()&&(B.indented=k.indentation()),k.eatSpace())return null;y=null;var U=B.tokenize(k,B);return(U||y)&&U!="comment"&&(b=null,B.state=B.state(y||U,k,B),b&&(U=b=="error"?U+" error":b)),U},indent:function(k,B,U){var re=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(re&&re.noIndent)return r.Pass;if(k.tokenize!=A&&k.tokenize!=x)return U?U.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(B))return 0;var ye=B&&/^<(\/)?([\w_:\.-]*)/.exec(B);if(ye&&ye[1])for(;re;)if(re.tagName==ye[2]){re=re.prev;break}else if(h.implicitlyClosed.hasOwnProperty(M(re.tagName)))re=re.prev;else break;else if(ye)for(;re;){var Ne=h.contextGrabbers[M(re.tagName)];if(Ne&&Ne.hasOwnProperty(M(ye[2])))re=re.prev;else break}for(;re&&re.prev&&!re.startOfLine;)re=re.prev;return re?re.indent+d:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==H&&(k.state=te)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var B=[],U=k.context;U;U=U.prev)B.push(U.tagName);return B.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 _fe=xfe.exports;(function(e,t){(function(r){r(qs,_fe,wfe)})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(x){var A=x.tagName;x.tagName=null;var T=d.indent(x,"","");return x.tagName=A,T}function v(x,A){return A.context.mode==d?y(x,A,A.context):b(x,A,A.context)}function y(x,A,T){if(T.depth==2)return x.match(/^.*?\*\//)?T.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(T.state);var E=p(T.state),L=T.state.context;if(L&&x.match(/^[^>]*>\s*$/,!1)){for(;L.prev&&!L.startOfLine;)L=L.prev;L.startOfLine?E-=c.indentUnit:T.prev.state.lexical&&(E=T.prev.state.lexical.indented)}else T.depth==1&&(E+=c.indentUnit);return A.context=new o(r.startState(h,E),h,0,A.context),null}if(T.depth==1){if(x.peek()=="<")return d.skipAttribute(T.state),A.context=new o(r.startState(d,p(T.state)),d,0,A.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return T.depth=2,v(x,A)}var M=d.token(x,T.state),P=x.current(),N;return/\btag\b/.test(M)?/>$/.test(P)?T.state.context?T.depth=0:A.context=A.context.prev:/^</.test(P)&&(T.depth=1):!M&&(N=P.indexOf("{"))>-1&&x.backUp(P.length-N),M}function b(x,A,T){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,T.state))return A.context=new o(r.startState(d,h.indent(T.state,"","")),d,0,A.context),h.skipExpression(T.state),null;var E=h.token(x,T.state);if(!E&&T.depth!=null){var L=x.current();L=="{"?T.depth++:L=="}"&&--T.depth==0&&(A.context=A.context.prev)}return E}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:v,indent:function(x,A,T){return x.context.mode.indent(x.context.state,A,T)},innerMode:function(x){return x.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(e,t){(function(r){r(qs)})(function(r){r.defineOption("placeholder","",function(p,v,y){var b=y&&y!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var x=p.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var y=p.getOption("placeholder");typeof y=="string"&&(y=document.createTextNode(y)),v.appendChild(y),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var y=p.getInputField();v=y.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(y.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),y=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(y?" CodeMirror-empty":""),y?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})();(function(e,t){(function(r){r(qs)})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(y){if(y.which!=1)return;r.e_preventDefault(y);var b=p.orientation=="horizontal"?"pageX":"pageY",x=y[b],A=p.pos;function T(){r.off(document,"mousemove",E),r.off(document,"mouseup",T)}function E(L){if(L.which!=1)return T();p.moveTo(A+(L[b]-x)*(p.total/p.size))}r.on(document,"mousemove",E),r.on(document,"mouseup",T)}),r.on(this.node,"click",function(y){r.e_preventDefault(y);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=y.clientX<b.left?-1:y.clientX>b.right?1:0:x=y.clientY<b.top?-1:y.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function v(y){var b=r.wheelEventPixels(y)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&r.e_preventDefault(y)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&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,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);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,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=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=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})();const er=Wr();function Sfe(e,t,r={}){const o=yfe.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),It(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),_u(()=>{er.value=void 0}),mh(o)}async function kfe(e){var t;Tw(e,((t=e.location)==null?void 0:t.line)??0)}const Cfe={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Kw=ft({__name:"CodeMirrorContainer",props:qc({mode:{},readOnly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:qc(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Eh(e,"modelValue"),s=XS(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Be();return Hs(async()=>{const d=Sfe(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){r("save",h.getValue())},"Ctrl-S":function(h){r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),er.value=d,setTimeout(()=>er.value.refresh(),100)}),(d,h)=>(oe(),me("div",Cfe,[Y("textarea",{ref_key:"el",ref:f},null,512)]))}}),Tfe=ft({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Be(""),c=Wr(void 0),f=Be(!1),d=Be(!0);It(()=>r.file,async()=>{var N;d.value=!0;try{if(!r.file||!((N=r.file)!=null&&N.filepath)){s.value="",c.value=s.value,f.value=!1;return}s.value=await bt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}finally{ln(()=>d.value=!1)}},{immediate:!0}),It(()=>[d.value,r.file,zd.value],([N,q,W])=>{N||(W!=null?ln(()=>{var ie;const X={line:W??0,ch:0};(ie=er.value)==null||ie.scrollIntoView(X,100),ln(()=>{var ee,j;(ee=er.value)==null||ee.focus(),(j=er.value)==null||j.setCursor(X)})}):ln(()=>{var X;(X=er.value)==null||X.focus()}))},{flush:"post"});const h=Ce(()=>{var N,q;return((q=(N=r.file)==null?void 0:N.filepath)==null?void 0:q.split(/\./g).pop())||"js"}),p=Be(),v=Ce(()=>{var N;return(N=p.value)==null?void 0:N.cm}),y=Ce(()=>{var N;return((N=r.file)==null?void 0:N.tasks.filter(q=>{var W;return((W=q.result)==null?void 0:W.state)==="fail"}))||[]}),b=[],x=[],A=[],T=Be(!1);function E(){A.forEach(([N,q,W])=>{N.removeEventListener("click",q),W()}),A.length=0}vce(p,()=>{var N;(N=er.value)==null||N.refresh()});function L(){f.value=c.value!==er.value.getValue()}It(f,N=>{o("draft",N)},{immediate:!0});function M(N){const q=((N==null?void 0:N.stacks)||[]).filter(te=>{var Z;return te.file&&te.file===((Z=r.file)==null?void 0:Z.filepath)}),W=q==null?void 0:q[0];if(!W)return;const X=document.createElement("div");X.className="op80 flex gap-x-2 items-center";const ie=document.createElement("pre");ie.className="c-red-600 dark:c-red-400",ie.textContent=`${" ".repeat(W.column)}^ ${(N==null?void 0:N.nameStr)||N.name}: ${(N==null?void 0:N.message)||""}`,X.appendChild(ie);const ee=document.createElement("span");ee.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",ee.tabIndex=0,ee.ariaLabel="Open in Editor",Lb(ee,{content:"Open in Editor",placement:"bottom"},!1);const j=async()=>{await dw(W.file,W.line,W.column)};X.appendChild(ee),A.push([ee,j,()=>zh(ee)]),x.push(er.value.addLineClass(W.line-1,"wrap","bg-red-500/10")),b.push(er.value.addLineWidget(W.line-1,X))}It([v,y],([N])=>{if(!N){E();return}setTimeout(()=>{E(),b.forEach(q=>q.clear()),x.forEach(q=>{var W;return(W=er.value)==null?void 0:W.removeLineClass(q,"wrap")}),b.length=0,x.length=0,N.on("changes",L),y.value.forEach(q=>{var W,X;(X=(W=q.result)==null?void 0:W.errors)==null||X.forEach(M)}),T.value||N.clearHistory()},100)},{flush:"post"});async function P(N){T.value=!0,await bt.rpc.saveTestFile(r.file.filepath,N),c.value=N,f.value=!1}return(N,q)=>{const W=Kw;return oe(),ot(W,ai({ref_key:"editor",ref:p,modelValue:z(s),"onUpdate:modelValue":q[0]||(q[0]=X=>Pt(s)?s.value=X:null),"h-full":""},{lineNumbers:!0,readOnly:z(Ir)},{mode:z(h),"data-testid":"code-mirror",onSave:P}),null,16,["modelValue","mode"])}}}),Efe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Lfe={"p-4":"",relative:""},Afe=Y("p",null,"Module Info",-1),Mfe={op50:"","font-mono":"","text-sm":""},Nfe={key:0,"p-5":""},$fe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Pfe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Ofe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),Rfe={key:0},Dfe={p:"x3 y-1","bg-overlay":"",border:"base b t"},zfe=ft({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=oce(()=>bt.rpc.getTransformResult(r.projectName,r.id,!!Ro)),c=Ce(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=Ce(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=Ce(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Ce(()=>{var p,v,y,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(y=s.value)==null?void 0:y.map)==null?void 0:b.version}});return ww("Escape",()=>{o("close")}),(p,v)=>{const y=gi,b=Kw;return oe(),me("div",Efe,[Y("div",Lfe,[Afe,Y("p",Mfe,qe(p.id),1),Pe(y,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=x=>o("close"))})]),z(s)?(oe(),me(ut,{key:1},[Y("div",$fe,[Pfe,Ofe,Pe(b,ai({"h-full":"","model-value":z(f),"read-only":""},{lineNumbers:!0},{mode:z(c)}),null,16,["model-value","mode"]),Pe(b,ai({"h-full":"","model-value":z(d),"read-only":""},{lineNumbers:!0},{mode:z(c)}),null,16,["model-value","mode"])]),z(h).mappings!==""?(oe(),me("div",Rfe,[Y("div",Dfe," Source map (v"+qe(z(h).version)+") ",1),Pe(b,ai({"model-value":z(h).mappings,"read-only":""},{lineNumbers:!0},{mode:z(c)}),null,16,["model-value","mode"])])):Ye("",!0)],64)):(oe(),me("div",Nfe," No transform result found for this module. "))])}}});function Ife(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Vd="http://www.w3.org/1999/xhtml";const o0={svg:"http://www.w3.org/2000/svg",xhtml:Vd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),o0.hasOwnProperty(t)?{space:o0[t],local:e}:e}function Ffe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Vd&&t.documentElement.namespaceURI===Vd?t.createElement(e):t.createElementNS(r,e)}}function Hfe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Xw(e){var t=qu(e);return(t.local?Hfe:Ffe)(t)}function qfe(){}function Zh(e){return e==null?qfe:function(){return this.querySelector(e)}}function Bfe(e){typeof e!="function"&&(e=Zh(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new Yn(o,this._parents)}function Wfe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ufe(){return[]}function Yw(e){return e==null?Ufe:function(){return this.querySelectorAll(e)}}function Vfe(e){return function(){return Wfe(e.apply(this,arguments))}}function jfe(e){typeof e=="function"?e=Vfe(e):e=Yw(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new Yn(o,s)}function Zw(e){return function(){return this.matches(e)}}function Jw(e){return function(t){return t.matches(e)}}var Gfe=Array.prototype.find;function Kfe(e){return function(){return Gfe.call(this.children,e)}}function Xfe(){return this.firstElementChild}function Yfe(e){return this.select(e==null?Xfe:Kfe(typeof e=="function"?e:Jw(e)))}var Zfe=Array.prototype.filter;function Jfe(){return Array.from(this.children)}function Qfe(e){return function(){return Zfe.call(this.children,e)}}function ede(e){return this.selectAll(e==null?Jfe:Qfe(typeof e=="function"?e:Jw(e)))}function tde(e){typeof e!="function"&&(e=Zw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new Yn(o,this._parents)}function Qw(e){return new Array(e.length)}function nde(){return new Yn(this._enter||this._groups.map(Qw),this._parents)}function su(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}su.prototype={constructor:su,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function rde(e){return function(){return e}}function ide(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new su(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function ode(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,y=c.length,b=new Array(v),x;for(d=0;d<v;++d)(h=t[d])&&(b[d]=x=f.call(h,h.__data__,d,t)+"",p.has(x)?s[d]=h:p.set(x,h));for(d=0;d<y;++d)x=f.call(e,c[d],d,c)+"",(h=p.get(x))?(o[d]=h,h.__data__=c[d],p.delete(x)):r[d]=new su(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function sde(e){return e.__data__}function lde(e,t){if(!arguments.length)return Array.from(this,sde);var r=t?ode:ide,o=this._parents,s=this._groups;typeof e!="function"&&(e=rde(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],y=s[p],b=y.length,x=ade(e.call(v,v&&v.__data__,p,o)),A=x.length,T=d[p]=new Array(A),E=f[p]=new Array(A),L=h[p]=new Array(b);r(v,y,T,E,L,x,t);for(var M=0,P=0,N,q;M<A;++M)if(N=T[M]){for(M>=P&&(P=M+1);!(q=E[P])&&++P<A;);N._next=q||null}}return f=new Yn(f,o),f._enter=d,f._exit=h,f}function ade(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cde(){return new Yn(this._exit||this._groups.map(Qw),this._parents)}function ude(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function fde(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],y=p.length,b=d[h]=new Array(y),x,A=0;A<y;++A)(x=p[A]||v[A])&&(b[A]=x);for(;h<s;++h)d[h]=r[h];return new Yn(d,this._parents)}function dde(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function hde(e){e||(e=pde);function t(y,b){return y&&b?e(y.__data__,b.__data__):!y-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new Yn(s,this._parents).order()}function pde(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function gde(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function vde(){return Array.from(this)}function mde(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function yde(){let e=0;for(const t of this)++e;return e}function bde(){return!this.node()}function wde(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function xde(e){return function(){this.removeAttribute(e)}}function _de(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Sde(e,t){return function(){this.setAttribute(e,t)}}function kde(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Cde(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Tde(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Ede(e,t){var r=qu(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?_de:xde:typeof t=="function"?r.local?Tde:Cde:r.local?kde:Sde)(r,t))}function e1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Lde(e){return function(){this.style.removeProperty(e)}}function Ade(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Mde(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Nde(e,t,r){return arguments.length>1?this.each((t==null?Lde:typeof t=="function"?Mde:Ade)(e,t,r??"")):Ds(this.node(),e)}function Ds(e,t){return e.style.getPropertyValue(t)||e1(e).getComputedStyle(e,null).getPropertyValue(t)}function $de(e){return function(){delete this[e]}}function Pde(e,t){return function(){this[e]=t}}function Ode(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Rde(e,t){return arguments.length>1?this.each((t==null?$de:typeof t=="function"?Ode:Pde)(e,t)):this.node()[e]}function t1(e){return e.trim().split(/^|\s+/)}function Jh(e){return e.classList||new n1(e)}function n1(e){this._node=e,this._names=t1(e.getAttribute("class")||"")}n1.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function r1(e,t){for(var r=Jh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function i1(e,t){for(var r=Jh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function Dde(e){return function(){r1(this,e)}}function zde(e){return function(){i1(this,e)}}function Ide(e,t){return function(){(t.apply(this,arguments)?r1:i1)(this,e)}}function Fde(e,t){var r=t1(e+"");if(arguments.length<2){for(var o=Jh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Ide:t?Dde:zde)(r,t))}function Hde(){this.textContent=""}function qde(e){return function(){this.textContent=e}}function Bde(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Wde(e){return arguments.length?this.each(e==null?Hde:(typeof e=="function"?Bde:qde)(e)):this.node().textContent}function Ude(){this.innerHTML=""}function Vde(e){return function(){this.innerHTML=e}}function jde(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Gde(e){return arguments.length?this.each(e==null?Ude:(typeof e=="function"?jde:Vde)(e)):this.node().innerHTML}function Kde(){this.nextSibling&&this.parentNode.appendChild(this)}function Xde(){return this.each(Kde)}function Yde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zde(){return this.each(Yde)}function Jde(e){var t=typeof e=="function"?e:Xw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Qde(){return null}function ehe(e,t){var r=typeof e=="function"?e:Xw(e),o=t==null?Qde:typeof t=="function"?t:Zh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function the(){var e=this.parentNode;e&&e.removeChild(this)}function nhe(){return this.each(the)}function rhe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ihe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ohe(e){return this.select(e?ihe:rhe)}function she(e){return arguments.length?this.property("__data__",e):this.node().__data__}function lhe(e){return function(t){e.call(this,t,this.__data__)}}function ahe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function che(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function uhe(e,t,r){return function(){var o=this.__on,s,c=lhe(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function fhe(e,t,r){var o=ahe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?uhe:che,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function o1(e,t,r){var o=e1(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function dhe(e,t){return function(){return o1(this,e,t)}}function hhe(e,t){return function(){return o1(this,e,t.apply(this,arguments))}}function phe(e,t){return this.each((typeof t=="function"?hhe:dhe)(e,t))}function*ghe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var s1=[null];function Yn(e,t){this._groups=e,this._parents=t}function ba(){return new Yn([[document.documentElement]],s1)}function vhe(){return this}Yn.prototype=ba.prototype={constructor:Yn,select:Bfe,selectAll:jfe,selectChild:Yfe,selectChildren:ede,filter:tde,data:lde,enter:nde,exit:cde,join:ude,merge:fde,selection:vhe,order:dde,sort:hde,call:gde,nodes:vde,node:mde,size:yde,empty:bde,each:wde,attr:Ede,style:Nde,property:Rde,classed:Fde,text:Wde,html:Gde,raise:Xde,lower:Zde,append:Jde,insert:ehe,remove:nhe,clone:ohe,datum:she,on:fhe,dispatch:phe,[Symbol.iterator]:ghe};function Dn(e){return typeof e=="string"?new Yn([[document.querySelector(e)]],[document.documentElement]):new Yn([[e]],s1)}function mhe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ii(e,t){if(e=mhe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}class Sn{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new Sn(t,r)}add(t){return new Sn(this.x+t.x,this.y+t.y)}subtract(t){return new Sn(this.x-t.x,this.y-t.y)}multiply(t){return new Sn(this.x*t,this.y*t)}divide(t){return new Sn(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new Sn(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new Sn(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new Sn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var yhe={value:()=>{}};function wa(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Nc(r)}function Nc(e){this._=e}function bhe(e,t){return e.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&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Nc.prototype=wa.prototype={constructor:Nc,on:function(e,t){var r=this._,o=bhe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=whe(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=s0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=s0(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Nc(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function whe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function s0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=yhe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const xhe={passive:!1},ia={capture:!0,passive:!1};function sd(e){e.stopImmediatePropagation()}function ks(e){e.preventDefault(),e.stopImmediatePropagation()}function l1(e){var t=e.document.documentElement,r=Dn(e).on("dragstart.drag",ks,ia);"onselectstart"in t?r.on("selectstart.drag",ks,ia):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function a1(e,t){var r=e.document.documentElement,o=Dn(e).on("dragstart.drag",null);t&&(o.on("click.drag",ks,ia),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 gc=e=>()=>e;function jd(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,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:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}jd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function _he(e){return!e.ctrlKey&&!e.button}function She(){return this.parentNode}function khe(e,t){return t??{x:e.x,y:e.y}}function Che(){return navigator.maxTouchPoints||"ontouchstart"in this}function The(){var e=_he,t=She,r=khe,o=Che,s={},c=wa("start","drag","end"),f=0,d,h,p,v,y=0;function b(N){N.on("mousedown.drag",x).filter(o).on("touchstart.drag",E).on("touchmove.drag",L,xhe).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(N,q){if(!(v||!e.call(this,N,q))){var W=P(this,t.call(this,N,q),N,q,"mouse");W&&(Dn(N.view).on("mousemove.drag",A,ia).on("mouseup.drag",T,ia),l1(N.view),sd(N),p=!1,d=N.clientX,h=N.clientY,W("start",N))}}function A(N){if(ks(N),!p){var q=N.clientX-d,W=N.clientY-h;p=q*q+W*W>y}s.mouse("drag",N)}function T(N){Dn(N.view).on("mousemove.drag mouseup.drag",null),a1(N.view,p),ks(N),s.mouse("end",N)}function E(N,q){if(e.call(this,N,q)){var W=N.changedTouches,X=t.call(this,N,q),ie=W.length,ee,j;for(ee=0;ee<ie;++ee)(j=P(this,X,N,q,W[ee].identifier,W[ee]))&&(sd(N),j("start",N,W[ee]))}}function L(N){var q=N.changedTouches,W=q.length,X,ie;for(X=0;X<W;++X)(ie=s[q[X].identifier])&&(ks(N),ie("drag",N,q[X]))}function M(N){var q=N.changedTouches,W=q.length,X,ie;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),X=0;X<W;++X)(ie=s[q[X].identifier])&&(sd(N),ie("end",N,q[X]))}function P(N,q,W,X,ie,ee){var j=c.copy(),te=ii(ee||W,q),Z,H,I;if((I=r.call(N,new jd("beforestart",{sourceEvent:W,target:b,identifier:ie,active:f,x:te[0],y:te[1],dx:0,dy:0,dispatch:j}),X))!=null)return Z=I.x-te[0]||0,H=I.y-te[1]||0,function k(B,U,re){var ye=te,Ne;switch(B){case"start":s[ie]=k,Ne=f++;break;case"end":delete s[ie],--f;case"drag":te=ii(re||U,q),Ne=f;break}j.call(B,N,new jd(B,{sourceEvent:U,subject:I,target:b,identifier:ie,active:Ne,x:te[0]+Z,y:te[1]+H,dx:te[0]-ye[0],dy:te[1]-ye[1],dispatch:j}),X)}}return b.filter=function(N){return arguments.length?(e=typeof N=="function"?N:gc(!!N),b):e},b.container=function(N){return arguments.length?(t=typeof N=="function"?N:gc(N),b):t},b.subject=function(N){return arguments.length?(r=typeof N=="function"?N:gc(N),b):r},b.touchable=function(N){return arguments.length?(o=typeof N=="function"?N:gc(!!N),b):o},b.on=function(){var N=c.on.apply(c,arguments);return N===c?b:N},b.clickDistance=function(N){return arguments.length?(y=(N=+N)*N,b):Math.sqrt(y)},b}function Qh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function c1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function xa(){}var oa=.7,lu=1/oa,Cs="\\s*([+-]?\\d+)\\s*",sa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ehe=/^#([0-9a-f]{3,8})$/,Lhe=new RegExp(`^rgb\\(${Cs},${Cs},${Cs}\\)$`),Ahe=new RegExp(`^rgb\\(${Fr},${Fr},${Fr}\\)$`),Mhe=new RegExp(`^rgba\\(${Cs},${Cs},${Cs},${sa}\\)$`),Nhe=new RegExp(`^rgba\\(${Fr},${Fr},${Fr},${sa}\\)$`),$he=new RegExp(`^hsl\\(${sa},${Fr},${Fr}\\)$`),Phe=new RegExp(`^hsla\\(${sa},${Fr},${Fr},${sa}\\)$`),l0={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};Qh(xa,la,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:a0,formatHex:a0,formatHex8:Ohe,formatHsl:Rhe,formatRgb:c0,toString:c0});function a0(){return this.rgb().formatHex()}function Ohe(){return this.rgb().formatHex8()}function Rhe(){return u1(this).formatHsl()}function c0(){return this.rgb().formatRgb()}function la(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ehe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?u0(t):r===3?new In(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?vc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?vc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Lhe.exec(e))?new In(t[1],t[2],t[3],1):(t=Ahe.exec(e))?new In(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Mhe.exec(e))?vc(t[1],t[2],t[3],t[4]):(t=Nhe.exec(e))?vc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$he.exec(e))?h0(t[1],t[2]/100,t[3]/100,1):(t=Phe.exec(e))?h0(t[1],t[2]/100,t[3]/100,t[4]):l0.hasOwnProperty(e)?u0(l0[e]):e==="transparent"?new In(NaN,NaN,NaN,0):null}function u0(e){return new In(e>>16&255,e>>8&255,e&255,1)}function vc(e,t,r,o){return o<=0&&(e=t=r=NaN),new In(e,t,r,o)}function Dhe(e){return e instanceof xa||(e=la(e)),e?(e=e.rgb(),new In(e.r,e.g,e.b,e.opacity)):new In}function Gd(e,t,r,o){return arguments.length===1?Dhe(e):new In(e,t,r,o??1)}function In(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Qh(In,Gd,c1(xa,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new In(No(this.r),No(this.g),No(this.b),au(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:f0,formatHex:f0,formatHex8:zhe,formatRgb:d0,toString:d0}));function f0(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}`}function zhe(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}${Eo((isNaN(this.opacity)?1:this.opacity)*255)}`}function d0(){const e=au(this.opacity);return`${e===1?"rgb(":"rgba("}${No(this.r)}, ${No(this.g)}, ${No(this.b)}${e===1?")":`, ${e})`}`}function au(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function No(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Eo(e){return e=No(e),(e<16?"0":"")+e.toString(16)}function h0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new xr(e,t,r,o)}function u1(e){if(e instanceof xr)return new xr(e.h,e.s,e.l,e.opacity);if(e instanceof xa||(e=la(e)),!e)return new xr;if(e instanceof xr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new xr(f,d,h,e.opacity)}function Ihe(e,t,r,o){return arguments.length===1?u1(e):new xr(e,t,r,o??1)}function xr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Qh(xr,Ihe,c1(xa,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new xr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new xr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new In(ld(e>=240?e-240:e+120,s,o),ld(e,s,o),ld(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new xr(p0(this.h),mc(this.s),mc(this.l),au(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 e=au(this.opacity);return`${e===1?"hsl(":"hsla("}${p0(this.h)}, ${mc(this.s)*100}%, ${mc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function p0(e){return e=(e||0)%360,e<0?e+360:e}function mc(e){return Math.max(0,Math.min(1,e||0))}function ld(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const f1=e=>()=>e;function Fhe(e,t){return function(r){return e+r*t}}function Hhe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function qhe(e){return(e=+e)==1?d1:function(t,r){return r-t?Hhe(t,r,e):f1(isNaN(t)?r:t)}}function d1(e,t){var r=t-e;return r?Fhe(e,r):f1(isNaN(e)?t:e)}const g0=function e(t){var r=qhe(t);function o(s,c){var f=r((s=Gd(s)).r,(c=Gd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=d1(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function qi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Kd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ad=new RegExp(Kd.source,"g");function Bhe(e){return function(){return e}}function Whe(e){return function(t){return e(t)+""}}function Uhe(e,t){var r=Kd.lastIndex=ad.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Kd.exec(e))&&(s=ad.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:qi(o,s)})),r=ad.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?Whe(h[0].x):Bhe(t):(t=h.length,function(p){for(var v=0,y;v<t;++v)d[(y=h[v]).i]=y.x(p);return d.join("")})}var v0=180/Math.PI,Xd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function h1(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*v0,skewX:Math.atan(h)*v0,scaleX:f,scaleY:d}}var yc;function Vhe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Xd:h1(t.a,t.b,t.c,t.d,t.e,t.f)}function jhe(e){return e==null||(yc||(yc=document.createElementNS("http://www.w3.org/2000/svg","g")),yc.setAttribute("transform",e),!(e=yc.transform.baseVal.consolidate()))?Xd:(e=e.matrix,h1(e.a,e.b,e.c,e.d,e.e,e.f))}function p1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,y,b,x,A){if(p!==y||v!==b){var T=x.push("translate(",null,t,null,r);A.push({i:T-4,x:qi(p,y)},{i:T-2,x:qi(v,b)})}else(y||b)&&x.push("translate("+y+t+b+r)}function f(p,v,y,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:y.push(s(y)+"rotate(",null,o)-2,x:qi(p,v)})):v&&y.push(s(y)+"rotate("+v+o)}function d(p,v,y,b){p!==v?b.push({i:y.push(s(y)+"skewX(",null,o)-2,x:qi(p,v)}):v&&y.push(s(y)+"skewX("+v+o)}function h(p,v,y,b,x,A){if(p!==y||v!==b){var T=x.push(s(x)+"scale(",null,",",null,")");A.push({i:T-4,x:qi(p,y)},{i:T-2,x:qi(v,b)})}else(y!==1||b!==1)&&x.push(s(x)+"scale("+y+","+b+")")}return function(p,v){var y=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,y,b),f(p.rotate,v.rotate,y,b),d(p.skewX,v.skewX,y,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,y,b),p=v=null,function(x){for(var A=-1,T=b.length,E;++A<T;)y[(E=b[A]).i]=E.x(x);return y.join("")}}}var Ghe=p1(Vhe,"px, ","px)","deg)"),Khe=p1(jhe,", ",")",")"),Xhe=1e-12;function m0(e){return((e=Math.exp(e))+1/e)/2}function Yhe(e){return((e=Math.exp(e))-1/e)/2}function Zhe(e){return((e=Math.exp(2*e))-1)/(e+1)}const Jhe=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],y=f[1],b=f[2],x=v-d,A=y-h,T=x*x+A*A,E,L;if(T<Xhe)L=Math.log(b/p)/t,E=function(X){return[d+X*x,h+X*A,p*Math.exp(t*X*L)]};else{var M=Math.sqrt(T),P=(b*b-p*p+o*T)/(2*p*r*M),N=(b*b-p*p-o*T)/(2*b*r*M),q=Math.log(Math.sqrt(P*P+1)-P),W=Math.log(Math.sqrt(N*N+1)-N);L=(W-q)/t,E=function(X){var ie=X*L,ee=m0(q),j=p/(r*M)*(ee*Zhe(t*ie+q)-Yhe(q));return[d+j*x,h+j*A,p*ee/m0(t*ie+q)]}}return E.duration=L*1e3*t/Math.SQRT2,E}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s}(Math.SQRT2,2,4);var zs=0,Tl=0,Sl=0,g1=1e3,cu,El,uu=0,Do=0,Bu=0,aa=typeof performance=="object"&&performance.now?performance:Date,v1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ep(){return Do||(v1(Qhe),Do=aa.now()+Bu)}function Qhe(){Do=0}function fu(){this._call=this._time=this._next=null}fu.prototype=tp.prototype={constructor:fu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ep():+r)+(t==null?0:+t),!this._next&&El!==this&&(El?El._next=this:cu=this,El=this),this._call=e,this._time=r,Yd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yd())}};function tp(e,t,r){var o=new fu;return o.restart(e,t,r),o}function epe(){ep(),++zs;for(var e=cu,t;e;)(t=Do-e._time)>=0&&e._call.call(void 0,t),e=e._next;--zs}function y0(){Do=(uu=aa.now())+Bu,zs=Tl=0;try{epe()}finally{zs=0,npe(),Do=0}}function tpe(){var e=aa.now(),t=e-uu;t>g1&&(Bu-=t,uu=e)}function npe(){for(var e,t=cu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:cu=r);El=e,Yd(o)}function Yd(e){if(!zs){Tl&&(Tl=clearTimeout(Tl));var t=e-Do;t>24?(e<1/0&&(Tl=setTimeout(y0,e-aa.now()-Bu)),Sl&&(Sl=clearInterval(Sl))):(Sl||(uu=aa.now(),Sl=setInterval(tpe,g1)),zs=1,v1(y0))}}function b0(e,t,r){var o=new fu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var rpe=wa("start","end","cancel","interrupt"),ipe=[],m1=0,w0=1,Zd=2,$c=3,x0=4,Jd=5,Pc=6;function Wu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;ope(e,r,{name:t,index:o,group:s,on:rpe,tween:ipe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:m1})}function np(e,t){var r=Tr(e,t);if(r.state>m1)throw new Error("too late; already scheduled");return r}function jr(e,t){var r=Tr(e,t);if(r.state>$c)throw new Error("too late; already running");return r}function Tr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function ope(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=tp(c,0,r.time);function c(p){r.state=w0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,y,b,x;if(r.state!==w0)return h();for(v in o)if(x=o[v],x.name===r.name){if(x.state===$c)return b0(f);x.state===x0?(x.state=Pc,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[v]):+v<t&&(x.state=Pc,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[v])}if(b0(function(){r.state===$c&&(r.state=x0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Zd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Zd){for(r.state=$c,s=new Array(b=r.tween.length),v=0,y=-1;v<b;++v)(x=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++y]=x);s.length=y+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Jd,1),y=-1,b=s.length;++y<b;)s[y].call(e,v);r.state===Jd&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Pc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Oc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>Zd&&o.state<Jd,o.state=Pc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function spe(e){return this.each(function(){Oc(this,e)})}function lpe(e,t){var r,o;return function(){var s=jr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function ape(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=jr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function cpe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Tr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?lpe:ape)(r,e,t))}function rp(e,t,r){var o=e._id;return e.each(function(){var s=jr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Tr(s,o).value[t]}}function y1(e,t){var r;return(typeof t=="number"?qi:t instanceof la?g0:(r=la(t))?(t=r,g0):Uhe)(e,t)}function upe(e){return function(){this.removeAttribute(e)}}function fpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function dpe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function hpe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function ppe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function gpe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function vpe(e,t){var r=qu(e),o=r==="transform"?Khe:y1;return this.attrTween(e,typeof t=="function"?(r.local?gpe:ppe)(r,o,rp(this,"attr."+e,t)):t==null?(r.local?fpe:upe)(r):(r.local?hpe:dpe)(r,o,t))}function mpe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function ype(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function bpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&ype(e,c)),r}return s._value=t,s}function wpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&mpe(e,c)),r}return s._value=t,s}function xpe(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=qu(e);return this.tween(r,(o.local?bpe:wpe)(o,t))}function _pe(e,t){return function(){np(this,e).delay=+t.apply(this,arguments)}}function Spe(e,t){return t=+t,function(){np(this,e).delay=t}}function kpe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?_pe:Spe)(t,e)):Tr(this.node(),t).delay}function Cpe(e,t){return function(){jr(this,e).duration=+t.apply(this,arguments)}}function Tpe(e,t){return t=+t,function(){jr(this,e).duration=t}}function Epe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Cpe:Tpe)(t,e)):Tr(this.node(),t).duration}function Lpe(e,t){if(typeof t!="function")throw new Error;return function(){jr(this,e).ease=t}}function Ape(e){var t=this._id;return arguments.length?this.each(Lpe(t,e)):Tr(this.node(),t).ease}function Mpe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;jr(this,e).ease=r}}function Npe(e){if(typeof e!="function")throw new Error;return this.each(Mpe(this._id,e))}function $pe(e){typeof e!="function"&&(e=Zw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new di(o,this._parents,this._name,this._id)}function Ppe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,y=f[d]=new Array(v),b,x=0;x<v;++x)(b=h[x]||p[x])&&(y[x]=b);for(;d<o;++d)f[d]=t[d];return new di(f,this._parents,this._name,this._id)}function Ope(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Rpe(e,t,r){var o,s,c=Ope(t)?np:jr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function Dpe(e,t){var r=this._id;return arguments.length<2?Tr(this.node(),r).on.on(e):this.each(Rpe(r,e,t))}function zpe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Ipe(){return this.on("end.remove",zpe(this._id))}function Fpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Zh(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,y,b=0;b<h;++b)(v=d[b])&&(y=e.call(v,v.__data__,b,d))&&("__data__"in v&&(y.__data__=v.__data__),p[b]=y,Wu(p[b],t,r,b,p,Tr(v,r)));return new di(c,this._parents,t,r)}function Hpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Yw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,y=0;y<p;++y)if(v=h[y]){for(var b=e.call(v,v.__data__,y,h),x,A=Tr(v,r),T=0,E=b.length;T<E;++T)(x=b[T])&&Wu(x,t,r,T,b,A);c.push(b),f.push(v)}return new di(c,f,t,r)}var qpe=ba.prototype.constructor;function Bpe(){return new qpe(this._groups,this._parents)}function Wpe(e,t){var r,o,s;return function(){var c=Ds(this,e),f=(this.style.removeProperty(e),Ds(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function b1(e){return function(){this.style.removeProperty(e)}}function Upe(e,t,r){var o,s=r+"",c;return function(){var f=Ds(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Vpe(e,t,r){var o,s,c;return function(){var f=Ds(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ds(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function jpe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=jr(this,e),p=h.on,v=h.value[c]==null?d||(d=b1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function Gpe(e,t,r){var o=(e+="")=="transform"?Ghe:y1;return t==null?this.styleTween(e,Wpe(e,o)).on("end.style."+e,b1(e)):typeof t=="function"?this.styleTween(e,Vpe(e,o,rp(this,"style."+e,t))).each(jpe(this._id,e)):this.styleTween(e,Upe(e,o,t),r).on("end.style."+e,null)}function Kpe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Xpe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Kpe(e,f,r)),o}return c._value=t,c}function Ype(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,Xpe(e,t,r??""))}function Zpe(e){return function(){this.textContent=e}}function Jpe(e){return function(){var t=e(this);this.textContent=t??""}}function Qpe(e){return this.tween("text",typeof e=="function"?Jpe(rp(this,"text",e)):Zpe(e==null?"":e+""))}function ege(e){return function(t){this.textContent=e.call(this,t)}}function tge(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&ege(s)),t}return o._value=e,o}function nge(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,tge(e))}function rge(){for(var e=this._name,t=this._id,r=w1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=Tr(h,t);Wu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new di(o,this._parents,e,r)}function ige(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=jr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var oge=0;function di(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function w1(){return++oge}var ni=ba.prototype;di.prototype={constructor:di,select:Fpe,selectAll:Hpe,selectChild:ni.selectChild,selectChildren:ni.selectChildren,filter:$pe,merge:Ppe,selection:Bpe,transition:rge,call:ni.call,nodes:ni.nodes,node:ni.node,size:ni.size,empty:ni.empty,each:ni.each,on:Dpe,attr:vpe,attrTween:xpe,style:Gpe,styleTween:Ype,text:Qpe,textTween:nge,remove:Ipe,tween:cpe,delay:kpe,duration:Epe,ease:Ape,easeVarying:Npe,end:ige,[Symbol.iterator]:ni[Symbol.iterator]};function sge(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var lge={time:null,delay:0,duration:250,ease:sge};function age(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function cge(e){var t,r;e instanceof di?(t=e._id,e=e._name):(t=w1(),(r=lge).time=ep(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Wu(h,e,t,p,f,r||age(h,t));return new di(o,this._parents,e,t)}ba.prototype.interrupt=spe;ba.prototype.transition=cge;const bc=e=>()=>e;function uge(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function oi(e,t,r){this.k=e,this.x=t,this.y=r}oi.prototype={constructor:oi,scale:function(e){return e===1?this:new oi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new oi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ip=new oi(1,0,0);oi.prototype;function cd(e){e.stopImmediatePropagation()}function kl(e){e.preventDefault(),e.stopImmediatePropagation()}function fge(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function dge(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function _0(){return this.__zoom||ip}function hge(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function pge(){return navigator.maxTouchPoints||"ontouchstart"in this}function gge(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function vge(){var e=fge,t=dge,r=gge,o=hge,s=pge,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Jhe,p=wa("start","zoom","end"),v,y,b,x=500,A=150,T=0,E=10;function L(I){I.property("__zoom",_0).on("wheel.zoom",ie,{passive:!1}).on("mousedown.zoom",ee).on("dblclick.zoom",j).filter(s).on("touchstart.zoom",te).on("touchmove.zoom",Z).on("touchend.zoom touchcancel.zoom",H).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}L.transform=function(I,k,B,U){var re=I.selection?I.selection():I;re.property("__zoom",_0),I!==re?q(I,k,B,U):re.interrupt().each(function(){W(this,arguments).event(U).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},L.scaleBy=function(I,k,B,U){L.scaleTo(I,function(){var re=this.__zoom.k,ye=typeof k=="function"?k.apply(this,arguments):k;return re*ye},B,U)},L.scaleTo=function(I,k,B,U){L.transform(I,function(){var re=t.apply(this,arguments),ye=this.__zoom,Ne=B==null?N(re):typeof B=="function"?B.apply(this,arguments):B,We=ye.invert(Ne),je=typeof k=="function"?k.apply(this,arguments):k;return r(P(M(ye,je),Ne,We),re,f)},B,U)},L.translateBy=function(I,k,B,U){L.transform(I,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof B=="function"?B.apply(this,arguments):B),t.apply(this,arguments),f)},null,U)},L.translateTo=function(I,k,B,U,re){L.transform(I,function(){var ye=t.apply(this,arguments),Ne=this.__zoom,We=U==null?N(ye):typeof U=="function"?U.apply(this,arguments):U;return r(ip.translate(We[0],We[1]).scale(Ne.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof B=="function"?-B.apply(this,arguments):-B),ye,f)},U,re)};function M(I,k){return k=Math.max(c[0],Math.min(c[1],k)),k===I.k?I:new oi(k,I.x,I.y)}function P(I,k,B){var U=k[0]-B[0]*I.k,re=k[1]-B[1]*I.k;return U===I.x&&re===I.y?I:new oi(I.k,U,re)}function N(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function q(I,k,B,U){I.on("start.zoom",function(){W(this,arguments).event(U).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(U).end()}).tween("zoom",function(){var re=this,ye=arguments,Ne=W(re,ye).event(U),We=t.apply(re,ye),je=B==null?N(We):typeof B=="function"?B.apply(re,ye):B,it=Math.max(We[1][0]-We[0][0],We[1][1]-We[0][1]),rt=re.__zoom,Je=typeof k=="function"?k.apply(re,ye):k,Le=h(rt.invert(je).concat(it/rt.k),Je.invert(je).concat(it/Je.k));return function(K){if(K===1)K=Je;else{var ae=Le(K),de=it/ae[2];K=new oi(de,je[0]-ae[0]*de,je[1]-ae[1]*de)}Ne.zoom(null,K)}})}function W(I,k,B){return!B&&I.__zooming||new X(I,k)}function X(I,k){this.that=I,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(I,k),this.taps=0}X.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,k){return this.mouse&&I!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var k=Dn(this.that).datum();p.call(I,this.that,new uge(I,{sourceEvent:this.sourceEvent,target:L,type:I,transform:this.that.__zoom,dispatch:p}),k)}};function ie(I,...k){if(!e.apply(this,arguments))return;var B=W(this,k).event(I),U=this.__zoom,re=Math.max(c[0],Math.min(c[1],U.k*Math.pow(2,o.apply(this,arguments)))),ye=ii(I);if(B.wheel)(B.mouse[0][0]!==ye[0]||B.mouse[0][1]!==ye[1])&&(B.mouse[1]=U.invert(B.mouse[0]=ye)),clearTimeout(B.wheel);else{if(U.k===re)return;B.mouse=[ye,U.invert(ye)],Oc(this),B.start()}kl(I),B.wheel=setTimeout(Ne,A),B.zoom("mouse",r(P(M(U,re),B.mouse[0],B.mouse[1]),B.extent,f));function Ne(){B.wheel=null,B.end()}}function ee(I,...k){if(b||!e.apply(this,arguments))return;var B=I.currentTarget,U=W(this,k,!0).event(I),re=Dn(I.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",it,!0),ye=ii(I,B),Ne=I.clientX,We=I.clientY;l1(I.view),cd(I),U.mouse=[ye,this.__zoom.invert(ye)],Oc(this),U.start();function je(rt){if(kl(rt),!U.moved){var Je=rt.clientX-Ne,Le=rt.clientY-We;U.moved=Je*Je+Le*Le>T}U.event(rt).zoom("mouse",r(P(U.that.__zoom,U.mouse[0]=ii(rt,B),U.mouse[1]),U.extent,f))}function it(rt){re.on("mousemove.zoom mouseup.zoom",null),a1(rt.view,U.moved),kl(rt),U.event(rt).end()}}function j(I,...k){if(e.apply(this,arguments)){var B=this.__zoom,U=ii(I.changedTouches?I.changedTouches[0]:I,this),re=B.invert(U),ye=B.k*(I.shiftKey?.5:2),Ne=r(P(M(B,ye),U,re),t.apply(this,k),f);kl(I),d>0?Dn(this).transition().duration(d).call(q,Ne,U,I):Dn(this).call(L.transform,Ne,U,I)}}function te(I,...k){if(e.apply(this,arguments)){var B=I.touches,U=B.length,re=W(this,k,I.changedTouches.length===U).event(I),ye,Ne,We,je;for(cd(I),Ne=0;Ne<U;++Ne)We=B[Ne],je=ii(We,this),je=[je,this.__zoom.invert(je),We.identifier],re.touch0?!re.touch1&&re.touch0[2]!==je[2]&&(re.touch1=je,re.taps=0):(re.touch0=je,ye=!0,re.taps=1+!!v);v&&(v=clearTimeout(v)),ye&&(re.taps<2&&(y=je[0],v=setTimeout(function(){v=null},x)),Oc(this),re.start())}}function Z(I,...k){if(this.__zooming){var B=W(this,k).event(I),U=I.changedTouches,re=U.length,ye,Ne,We,je;for(kl(I),ye=0;ye<re;++ye)Ne=U[ye],We=ii(Ne,this),B.touch0&&B.touch0[2]===Ne.identifier?B.touch0[0]=We:B.touch1&&B.touch1[2]===Ne.identifier&&(B.touch1[0]=We);if(Ne=B.that.__zoom,B.touch1){var it=B.touch0[0],rt=B.touch0[1],Je=B.touch1[0],Le=B.touch1[1],K=(K=Je[0]-it[0])*K+(K=Je[1]-it[1])*K,ae=(ae=Le[0]-rt[0])*ae+(ae=Le[1]-rt[1])*ae;Ne=M(Ne,Math.sqrt(K/ae)),We=[(it[0]+Je[0])/2,(it[1]+Je[1])/2],je=[(rt[0]+Le[0])/2,(rt[1]+Le[1])/2]}else if(B.touch0)We=B.touch0[0],je=B.touch0[1];else return;B.zoom("touch",r(P(Ne,We,je),B.extent,f))}}function H(I,...k){if(this.__zooming){var B=W(this,k).event(I),U=I.changedTouches,re=U.length,ye,Ne;for(cd(I),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),ye=0;ye<re;++ye)Ne=U[ye],B.touch0&&B.touch0[2]===Ne.identifier?delete B.touch0:B.touch1&&B.touch1[2]===Ne.identifier&&delete B.touch1;if(B.touch1&&!B.touch0&&(B.touch0=B.touch1,delete B.touch1),B.touch0)B.touch0[1]=this.__zoom.invert(B.touch0[0]);else if(B.end(),B.taps===2&&(Ne=ii(Ne,this),Math.hypot(y[0]-Ne[0],y[1]-Ne[1])<E)){var We=Dn(this).on("dblclick.zoom");We&&We.apply(this,arguments)}}}return L.wheelDelta=function(I){return arguments.length?(o=typeof I=="function"?I:bc(+I),L):o},L.filter=function(I){return arguments.length?(e=typeof I=="function"?I:bc(!!I),L):e},L.touchable=function(I){return arguments.length?(s=typeof I=="function"?I:bc(!!I),L):s},L.extent=function(I){return arguments.length?(t=typeof I=="function"?I:bc([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),L):t},L.scaleExtent=function(I){return arguments.length?(c[0]=+I[0],c[1]=+I[1],L):[c[0],c[1]]},L.translateExtent=function(I){return arguments.length?(f[0][0]=+I[0][0],f[1][0]=+I[1][0],f[0][1]=+I[0][1],f[1][1]=+I[1][1],L):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},L.constrain=function(I){return arguments.length?(r=I,L):r},L.duration=function(I){return arguments.length?(d=+I,L):d},L.interpolate=function(I){return arguments.length?(h=I,L):h},L.on=function(){var I=p.on.apply(p,arguments);return I===p?L:I},L.clickDistance=function(I){return arguments.length?(T=(I=+I)*I,L):Math.sqrt(T)},L.tapDistance=function(I){return arguments.length?(E=+I,L):E},L}function mge(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return x1(this.cover(t,r),t,r,e)}function x1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,y,b,x,A,T,E,L,M;if(!c)return e._root=f,e;for(;c.length;)if((T=t>=(y=(d+p)/2))?d=y:p=y,(E=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[L=E<<1|T]))return s[L]=f,e;if(x=+e._x.call(null,c.data),A=+e._y.call(null,c.data),t===x&&r===A)return f.next=c,s?s[L]=f:e._root=f,e;do s=s?s[L]=new Array(4):e._root=new Array(4),(T=t>=(y=(d+p)/2))?d=y:p=y,(E=r>=(b=(h+v)/2))?h=b:v=b;while((L=E<<1|T)===(M=(A>=b)<<1|x>=y));return s[M]=c,s[L]=f,e}function yge(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,y=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>y&&(y=c));if(h>v||p>y)return this;for(this.cover(h,p).cover(v,y),r=0;r<o;++r)x1(this,f[r],d[r],e[r]);return this}function bge(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function wge(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function xge(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function kn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function _ge(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,y=this._y1,b=[],x=this._root,A,T;for(x&&b.push(new kn(x,s,c,v,y)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,y=t+r,r*=r);A=b.pop();)if(!(!(x=A.node)||(f=A.x0)>v||(d=A.y0)>y||(h=A.x1)<s||(p=A.y1)<c))if(x.length){var E=(f+h)/2,L=(d+p)/2;b.push(new kn(x[3],E,L,h,p),new kn(x[2],f,L,E,p),new kn(x[1],E,d,h,L),new kn(x[0],f,d,E,L)),(T=(t>=L)<<1|e>=E)&&(A=b[b.length-1],b[b.length-1]=b[b.length-1-T],b[b.length-1-T]=A)}else{var M=e-+this._x.call(null,x.data),P=t-+this._y.call(null,x.data),N=M*M+P*P;if(N<r){var q=Math.sqrt(r=N);s=e-q,c=t-q,v=e+q,y=t+q,o=x.data}}return o}function Sge(e){if(isNaN(v=+this._x.call(null,e))||isNaN(y=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,y,b,x,A,T,E,L;if(!r)return this;if(r.length)for(;;){if((A=v>=(b=(f+h)/2))?f=b:h=b,(T=y>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[E=T<<1|A]))return this;if(!r.length)break;(t[E+1&3]||t[E+2&3]||t[E+3&3])&&(o=t,L=E)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[E]=c:delete t[E],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[L]=r:this._root=r),this):(this._root=c,this)}function kge(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Cge(){return this._root}function Tge(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Ege(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new kn(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new kn(s,p,v,d,h)),(s=o[2])&&t.push(new kn(s,c,v,p,h)),(s=o[1])&&t.push(new kn(s,p,f,d,v)),(s=o[0])&&t.push(new kn(s,c,f,p,v))}return this}function Lge(e){var t=[],r=[],o;for(this._root&&t.push(new kn(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,y=(d+p)/2;(c=s[0])&&t.push(new kn(c,f,d,v,y)),(c=s[1])&&t.push(new kn(c,v,d,h,y)),(c=s[2])&&t.push(new kn(c,f,y,v,p)),(c=s[3])&&t.push(new kn(c,v,y,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Age(e){return e[0]}function Mge(e){return arguments.length?(this._x=e,this):this._x}function Nge(e){return e[1]}function $ge(e){return arguments.length?(this._y=e,this):this._y}function op(e,t,r){var o=new sp(t??Age,r??Nge,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function sp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function S0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var En=op.prototype=sp.prototype;En.copy=function(){var e=new sp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=S0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=S0(o));return e};En.add=mge;En.addAll=yge;En.cover=bge;En.data=wge;En.extent=xge;En.find=_ge;En.remove=Sge;En.removeAll=kge;En.root=Cge;En.size=Tge;En.visit=Ege;En.visitAfter=Lge;En.x=Mge;En.y=$ge;function Tn(e){return function(){return e}}function Vi(e){return(e()-.5)*1e-6}function Pge(e){return e.x+e.vx}function Oge(e){return e.y+e.vy}function Rge(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Tn(e==null?1:+e));function f(){for(var p,v=t.length,y,b,x,A,T,E,L=0;L<c;++L)for(y=op(t,Pge,Oge).visitAfter(d),p=0;p<v;++p)b=t[p],T=r[b.index],E=T*T,x=b.x+b.vx,A=b.y+b.vy,y.visit(M);function M(P,N,q,W,X){var ie=P.data,ee=P.r,j=T+ee;if(ie){if(ie.index>b.index){var te=x-ie.x-ie.vx,Z=A-ie.y-ie.vy,H=te*te+Z*Z;H<j*j&&(te===0&&(te=Vi(o),H+=te*te),Z===0&&(Z=Vi(o),H+=Z*Z),H=(j-(H=Math.sqrt(H)))/H*s,b.vx+=(te*=H)*(j=(ee*=ee)/(E+ee)),b.vy+=(Z*=H)*j,ie.vx-=te*(j=1-j),ie.vy-=Z*j)}return}return N>x+j||W<x-j||q>A+j||X<A-j}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,y;for(r=new Array(v),p=0;p<v;++p)y=t[p],r[y.index]=+e(y,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Tn(+p),h(),f):e},f}function Dge(e){return e.index}function k0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function zge(e){var t=Dge,r=y,o,s=Tn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function y(E){return 1/Math.min(d[E.source.index],d[E.target.index])}function b(E){for(var L=0,M=e.length;L<v;++L)for(var P=0,N,q,W,X,ie,ee,j;P<M;++P)N=e[P],q=N.source,W=N.target,X=W.x+W.vx-q.x-q.vx||Vi(p),ie=W.y+W.vy-q.y-q.vy||Vi(p),ee=Math.sqrt(X*X+ie*ie),ee=(ee-c[P])/ee*E*o[P],X*=ee,ie*=ee,W.vx-=X*(j=h[P]),W.vy-=ie*j,q.vx+=X*(j=1-j),q.vy+=ie*j}function x(){if(f){var E,L=f.length,M=e.length,P=new Map(f.map((q,W)=>[t(q,W,f),q])),N;for(E=0,d=new Array(L);E<M;++E)N=e[E],N.index=E,typeof N.source!="object"&&(N.source=k0(P,N.source)),typeof N.target!="object"&&(N.target=k0(P,N.target)),d[N.source.index]=(d[N.source.index]||0)+1,d[N.target.index]=(d[N.target.index]||0)+1;for(E=0,h=new Array(M);E<M;++E)N=e[E],h[E]=d[N.source.index]/(d[N.source.index]+d[N.target.index]);o=new Array(M),A(),c=new Array(M),T()}}function A(){if(f)for(var E=0,L=e.length;E<L;++E)o[E]=+r(e[E],E,e)}function T(){if(f)for(var E=0,L=e.length;E<L;++E)c[E]=+s(e[E],E,e)}return b.initialize=function(E,L){f=E,p=L,x()},b.links=function(E){return arguments.length?(e=E,x(),b):e},b.id=function(E){return arguments.length?(t=E,b):t},b.iterations=function(E){return arguments.length?(v=+E,b):v},b.strength=function(E){return arguments.length?(r=typeof E=="function"?E:Tn(+E),A(),b):r},b.distance=function(E){return arguments.length?(s=typeof E=="function"?E:Tn(+E),T(),b):s},b}const Ige=1664525,Fge=1013904223,C0=4294967296;function Hge(){let e=1;return()=>(e=(Ige*e+Fge)%C0)/C0}function qge(e){return e.x}function Bge(e){return e.y}var Wge=10,Uge=Math.PI*(3-Math.sqrt(5));function Vge(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=tp(y),p=wa("tick","end"),v=Hge();e==null&&(e=[]);function y(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(T){var E,L=e.length,M;T===void 0&&(T=1);for(var P=0;P<T;++P)for(r+=(c-r)*s,d.forEach(function(N){N(r)}),E=0;E<L;++E)M=e[E],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 t}function x(){for(var T=0,E=e.length,L;T<E;++T){if(L=e[T],L.index=T,L.fx!=null&&(L.x=L.fx),L.fy!=null&&(L.y=L.fy),isNaN(L.x)||isNaN(L.y)){var M=Wge*Math.sqrt(.5+T),P=T*Uge;L.x=M*Math.cos(P),L.y=M*Math.sin(P)}(isNaN(L.vx)||isNaN(L.vy))&&(L.vx=L.vy=0)}}function A(T){return T.initialize&&T.initialize(e,v),T}return x(),t={tick:b,restart:function(){return h.restart(y),t},stop:function(){return h.stop(),t},nodes:function(T){return arguments.length?(e=T,x(),d.forEach(A),t):e},alpha:function(T){return arguments.length?(r=+T,t):r},alphaMin:function(T){return arguments.length?(o=+T,t):o},alphaDecay:function(T){return arguments.length?(s=+T,t):+s},alphaTarget:function(T){return arguments.length?(c=+T,t):c},velocityDecay:function(T){return arguments.length?(f=1-T,t):1-f},randomSource:function(T){return arguments.length?(v=T,d.forEach(A),t):v},force:function(T,E){return arguments.length>1?(E==null?d.delete(T):d.set(T,A(E)),t):d.get(T)},find:function(T,E,L){var M=0,P=e.length,N,q,W,X,ie;for(L==null?L=1/0:L*=L,M=0;M<P;++M)X=e[M],N=T-X.x,q=E-X.y,W=N*N+q*q,W<L&&(ie=X,L=W);return ie},on:function(T,E){return arguments.length>1?(p.on(T,E),t):p.on(T)}}}function jge(){var e,t,r,o,s=Tn(-30),c,f=1,d=1/0,h=.81;function p(x){var A,T=e.length,E=op(e,qge,Bge).visitAfter(y);for(o=x,A=0;A<T;++A)t=e[A],E.visit(b)}function v(){if(e){var x,A=e.length,T;for(c=new Array(A),x=0;x<A;++x)T=e[x],c[T.index]=+s(T,x,e)}}function y(x){var A=0,T,E,L=0,M,P,N;if(x.length){for(M=P=N=0;N<4;++N)(T=x[N])&&(E=Math.abs(T.value))&&(A+=T.value,L+=E,M+=E*T.x,P+=E*T.y);x.x=M/L,x.y=P/L}else{T=x,T.x=T.data.x,T.y=T.data.y;do A+=c[T.data.index];while(T=T.next)}x.value=A}function b(x,A,T,E){if(!x.value)return!0;var L=x.x-t.x,M=x.y-t.y,P=E-A,N=L*L+M*M;if(P*P/h<N)return N<d&&(L===0&&(L=Vi(r),N+=L*L),M===0&&(M=Vi(r),N+=M*M),N<f&&(N=Math.sqrt(f*N)),t.vx+=L*x.value*o/N,t.vy+=M*x.value*o/N),!0;if(x.length||N>=d)return;(x.data!==t||x.next)&&(L===0&&(L=Vi(r),N+=L*L),M===0&&(M=Vi(r),N+=M*M),N<f&&(N=Math.sqrt(f*N)));do x.data!==t&&(P=c[x.data.index]*o/N,t.vx+=L*P,t.vy+=M*P);while(x=x.next)}return p.initialize=function(x,A){e=x,r=A,v()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:Tn(+x),v(),p):s},p.distanceMin=function(x){return arguments.length?(f=x*x,p):Math.sqrt(f)},p.distanceMax=function(x){return arguments.length?(d=x*x,p):Math.sqrt(d)},p.theta=function(x){return arguments.length?(h=x*x,p):Math.sqrt(h)},p}function Gge(e){var t=Tn(.1),r,o,s;typeof e!="function"&&(e=Tn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Tn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Tn(+d),f(),c):e},c}function Kge(e){var t=Tn(.1),r,o,s;typeof e!="function"&&(e=Tn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Tn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Tn(+d),f(),c):e},c}var Xge=Object.defineProperty,Yge=(e,t,r)=>t in e?Xge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dt=(e,t,r)=>Yge(e,typeof t!="symbol"?t+"":t,r);function Zge(){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 T0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function ji(...e){return e.reduce((t,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(t[o])&&Array.isArray(r[o])?t[o]=ji.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:T0(t[o])&&T0(r[o])?t[o]=ji(t[o],r[o]):t[o]=r[o])}),t},{})}const _1={mergeArrays:!0};ji.options=_1;ji.withOptions=(e,...t)=>{ji.options={mergeArrays:!0,...e};const r=ji(...t);return ji.options=_1,r};function Jge(){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 Qge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function S1(e){e.preventDefault(),e.stopPropagation()}function k1(e){return typeof e=="number"}function no(e,t){return k1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function eve(e){return`${e.source.id}-${e.target.id}`}function C1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function tve(e){return`url(#${C1(e.color)})`}function nve(e){return{size:e,padding:(t,r)=>no(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const T1={Arrow:e=>nve(e)},rve=(e,t,r)=>[t/2,r/2],E1=(e,t,r)=>[E0(0,t),E0(0,r)];function E0(e,t){return Math.random()*(t-e)+e}function ive(e){const t=Object.fromEntries(e.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,s)=>{const[c,f]=t[r.id]??[];return!c||!f?E1(r,o,s):[c,f]}}const Qd={Centered:rve,Randomized:E1,Stable:ive};function ove(){return{autoResize:!1,callbacks:{},hooks:{},initial:Qge(),nodeRadius:16,marker:T1.Arrow(4),modifiers:{},positionInitializer:Qd.Centered,simulation:{alphas:Zge(),forces:Jge()},zoom:{initial:1,min:.1,max:2}}}function sve(e={}){return ji.withOptions({mergeArrays:!1},ove(),e)}function lve({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>S1(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 e&&p.call(h.transform,ip.translate(c,f).scale(d)),p.append("g")}function ave({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function cve({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=The().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),Dn(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),Dn(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,c),c}function uve({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:fve({nodes:d,links:c},r)}function fve(e,t){const r=[...dve(e,t),...hve(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function dve(e,t){return L1(e,t,(r,o)=>r.target.id===o.id)}function hve(e,t){return L1(e,t,(r,o)=>r.source.id===o.id)}function L1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function eh(e){return e.x??0}function th(e){return e.y??0}function lp({source:e,target:t}){const r=new Sn(eh(e),th(e)),o=new Sn(eh(t),th(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function A1({center:e,node:t}){const r=new Sn(eh(t),th(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new Sn(0,1))),{n:r,c:o}}function M1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=lp({config:e,source:t,target:r}),f=o.add(c.multiply(no(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function pve(e){const{start:t,end:r}=M1(e);return`M${t.x},${t.y}
49
49
  L${r.x},${r.y}`}function gve(e){const{start:t,end:r}=M1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function vve({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=lp({config:e,source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(no(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(no(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),y=1.2*c;return`M${p.x},${p.y}
50
50
  A${y},${y},0,0,1,${v.x},${v.y}`}function mve({center:e,config:t,node:r}){const{n:o,c:s}=A1({center:e,config:t,node:r}),c=no(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),v=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
51
- A${c},${c},0,1,0,${v.x},${v.y}`}function yve({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=lp({config:e,source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function bve({center:e,config:t,node:r}){const{n:o,c:s}=A1({center:e,config:t,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*no(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Ts={line:{labelTransform:gve,path:pve},arc:{labelTransform:yve,path:vve},reflexive:{labelTransform:bve,path:mve}};function wve(e){return e.append("g").classed("links",!0).selectAll("path")}function xve({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>eve(c)).join(c=>{var f,d,h,p;const v=c.append("g"),y=v.append("path").classed("link",!0).style("marker-end",x=>tve(x)).style("stroke",x=>x.color);(d=(f=e.modifiers).link)==null||d.call(f,y);const b=v.append("text").classed("link__label",!0).style("fill",x=>x.label?x.label.color:null).style("font-size",x=>x.label?x.label.fontSize:null).text(x=>x.label?x.label.text:null);return(p=(h=e.modifiers).linkLabel)==null||p.call(h,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function _ve(e){Sve(e),kve(e)}function Sve({center:e,config:t,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?Ts.reflexive.path({config:t,node:s.source,center:e}):N1(r,s.source,s.target)?Ts.arc.path({config:t,source:s.source,target:s.target}):Ts.line.path({config:t,source:s.source,target:s.target}))}function kve({config:e,center:t,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?Ts.reflexive.labelTransform({config:e,node:s.source,center:t}):N1(r,s.source,s.target)?Ts.arc.labelTransform({config:e,source:s.source,target:s.target}):Ts.line.labelTransform({config:e,source:s.source,target:s.target}))}function N1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Cve(e){return e.append("defs").selectAll("marker")}function Tve({config:e,graph:t,selection:r}){return r==null?void 0:r.data(Eve(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>C1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",Lve(e.marker.path)),s})}function Eve(e){return[...new Set(e.links.map(t=>t.color))]}function Lve(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function Ave(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Mve({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,y,b;const x=h.append("g");t!==void 0&&x.call(t);const E=x.append("circle").classed("node",!0).attr("r",L=>no(e,L)).on("contextmenu",(L,N)=>{S1(L),o(N)}).on("pointerdown",(L,N)=>$ve(L,N,s??o)).style("fill",L=>L.color);(v=(p=e.modifiers).node)==null||v.call(p,E);const C=x.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(b=(y=e.modifiers).nodeLabel)==null||b.call(y,C),x});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const Nve=500;function $ve(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>Nve){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Pve(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Ove({center:e,config:t,graph:r,onTick:o}){var s,c;const f=Vge(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const y=d.strength;f.force("x",Gge(()=>e().x).strength(y)).force("y",Kge(()=>e().y).strength(y))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",jge().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",Rge().radius(y=>p.radiusMultiplier*no(t,y)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",zge(r.links).id(y=>y.id).distance(t.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=t.modifiers).simulation)==null||c.call(s,f),f}function Rve({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=vge().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class Dve{constructor(t,r,o){if(Dt(this,"nodeTypes"),Dt(this,"_nodeTypeFilter"),Dt(this,"_includeUnlinked",!0),Dt(this,"_linkFilter",()=>!0),Dt(this,"_showLinkLabels",!0),Dt(this,"_showNodeLabels",!0),Dt(this,"filteredGraph"),Dt(this,"width",0),Dt(this,"height",0),Dt(this,"simulation"),Dt(this,"canvas"),Dt(this,"linkSelection"),Dt(this,"nodeSelection"),Dt(this,"markerSelection"),Dt(this,"zoom"),Dt(this,"drag"),Dt(this,"xOffset",0),Dt(this,"yOffset",0),Dt(this,"scale"),Dt(this,"focusedNode"),Dt(this,"resizeObserver"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,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:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??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(Ife(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Sn.of([this.width,this.height]).divide(2).subtract(Sn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(k1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=Tve({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=xve({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Mve({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=Ove({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?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 t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=Rve({config:this.config,canvasContainer:()=>Dn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=lve({applyZoom:this.scale!==1,container:Dn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=wve(this.canvas),this.nodeSelection=Ave(this.canvas),this.markerSelection=Cve(this.canvas),this.drag=cve({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){Pve(this.nodeSelection),_ve({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Dn(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(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.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(){ave({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=uve({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function L0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function zve(e){return{...e}}function $1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const Ive={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Fve={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Hve=["id","checked","onChange"],qve=["for"],Bve=Y("div",{"flex-auto":""},null,-1),Wve=ft({__name:"ViewModuleGraph",props:{graph:{},projectName:{}},setup(e){const t=e,{graph:r}=CS(t),o=Be(),s=Be(!1),c=Be(),f=Be();Th(()=>{s.value===!1&&setTimeout(()=>c.value=void 0,300)},{flush:"post"}),Hs(()=>{p()}),_u(()=>{var b;(b=f.value)==null||b.shutdown()}),It(r,p);function d(b,x){var E;(E=f.value)==null||E.filterNodesByType(x,b)}function h(b){c.value=b,s.value=!0}function p(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new Dve(o.value,r.value,sve({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:x,newWidth:E})=>x===0&&E===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:T1.Arrow(2),modifiers:{node:y},positionInitializer:r.value.nodes.length>1?Qd.Randomized:Qd.Centered,zoom:{min:.5,max:2}})))}const v=b=>b.button===0;function y(b){if(Ir)return;let x=0,E=0,C=0;b.on("pointerdown",(L,N)=>{N.type!=="external"&&(!N.x||!N.y||!v(L)||(x=N.x,E=N.y,C=Date.now()))}).on("pointerup",(L,N)=>{if(N.type==="external"||!N.x||!N.y||!v(L)||Date.now()-C>500)return;const A=N.x-x,P=N.y-E;A**2+P**2<100&&h(N.id)})}return(b,x)=>{var A;const E=gi,C=zfe,L=jw,N=Ur("tooltip");return oe(),me("div",Ive,[Y("div",null,[Y("div",Fve,[(oe(!0),me(ut,null,ui((A=z(f))==null?void 0:A.nodeTypes.sort(),P=>{var M;return oe(),me("div",{key:P,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${P}`,type:"checkbox",checked:(M=z(f))==null?void 0:M.nodeTypeFilter.includes(P),onChange:q=>d(P,q.target.checked)},null,40,Hve),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${P}`,"border-b-2":"",style:Kt({"border-color":`var(--color-node-${P})`})},qe(P)+" Modules",13,qve)])}),128)),Bve,Y("div",null,[vt(Pe(E,{icon:"i-carbon-reset",onClick:p},null,512),[[N,"Reset",void 0,{bottom:!0}]])])])]),Y("div",{ref_key:"el",ref:o},null,512),Pe(L,{modelValue:z(s),"onUpdate:modelValue":x[1]||(x[1]=P=>Pt(s)?s.value=P:null),direction:"right"},{default:st(()=>[z(c)?(oe(),ot(Ry,{key:0},{default:st(()=>[Pe(C,{id:z(c),"project-name":b.projectName,onClose:x[0]||(x[0]=P=>s.value=!1)},null,8,["id","project-name"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])])}}}),Uve={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Vve={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},jve={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Gve={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Kve={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Xve={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},P1=ft({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Ur("tooltip");return t.state==="pass"?(oe(),me("div",Uve)):t.failedSnapshot?vt((oe(),me("div",Vve,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),me("div",jve)):t.mode==="todo"?vt((oe(),me("div",Gve,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?vt((oe(),me("div",Kve,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),me("div",Xve))}}});function Yve(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:y,candidate:b}=c;t.set(y,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function Zve(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function Jve(e){const t=e.map(o=>Zve(o)),r=Yve(t);return t.map(({raw:o,id:s})=>$1({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 Qve(e,t){return $1({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function eme(e,t){if(!e)return L0({});const r=Jve(e.externalized),o=e.inlined.map(d=>Qve(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],y=c[p];if(!(v===void 0||y===void 0))return zve({source:v,target:y,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return L0({nodes:s,links:f})}const tme={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},nme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},rme={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},ime={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},ome={class:"flex text-lg"},sme={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},lme=Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),ame={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},cme={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},ume=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1),fme=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1),dme={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},hme=["flex-1"],pme=ft({__name:"FileDetails",setup(e){const t=Be({nodes:[],links:[]}),r=Be(!1),o=Be(!1),s=Be(!1),c=Be(void 0),f=Ce(()=>{const E=Gt.value;if(!(!E||!E.filepath))return{filepath:E.filepath,projectName:E.file.projectName||""}}),d=Ce(()=>Gt.value&&Hh(Gt.value)),h=Ce(()=>{var E,C;return!!((C=(E=Gt.value)==null?void 0:E.meta)!=null&&C.typecheck)});function p(){var C;const E=(C=Gt.value)==null?void 0:C.filepath;E&&fetch(`/__open-in-editor?file=${encodeURIComponent(E)}`)}function v(E){E==="graph"&&(o.value=!0),Un.value=E}const y=Ce(()=>{var E;return((E=Uw.value)==null?void 0:E.reduce((C,{size:L})=>C+L,0))??0});function b(E){r.value=E}async function x(){var E;if(!(s.value||((E=f.value)==null?void 0:E.filepath)===c.value)){s.value=!0,await ln();try{const C=f.value;if(!C)return;(!c.value||C.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length)&&(t.value=eme(await bt.rpc.getModuleGraph(C.projectName,C.filepath,!!Ro),C.filepath),c.value=C.filepath),v("graph")}finally{await new Promise(C=>setTimeout(C,100)),s.value=!1}}}return bw(()=>[f.value,Un.value],([,E])=>{E==="graph"&&x()},{debounce:100,immediate:!0}),(E,C)=>{var X,ie,ee,j,te,Z;const L=P1,N=gi,A=Wve,P=Tfe,M=mfe,q=ufe,W=Ur("tooltip");return z(Gt)?(oe(),me("div",tme,[Y("div",null,[Y("div",nme,[Pe(L,{state:(X=z(Gt).result)==null?void 0:X.state,mode:z(Gt).mode,"failed-snapshot":z(d)},null,8,["state","mode","failed-snapshot"]),z(h)?vt((oe(),me("div",rme,null,512)),[[W,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),(ie=z(Gt))!=null&&ie.file.projectName?(oe(),me("div",{key:1,"font-light":"","op-50":"","text-sm":"",style:Kt({color:z(Dw)((ee=z(Gt))==null?void 0:ee.file.projectName)})}," ["+qe(((j=z(Gt))==null?void 0:j.file.projectName)||"")+"] ",5)):Ye("",!0),Y("div",ime,qe((te=z(Gt))==null?void 0:te.name),1),Y("div",ome,[z(Ir)?Ye("",!0):vt((oe(),ot(N,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((Z=z(Gt))!=null&&Z.filepath),onClick:p},null,8,["disabled"])),[[W,"Open in editor",void 0,{bottom:!0}]])])]),Y("div",sme,[Y("button",{"tab-button":"",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==null}]),"data-testid":"btn-report",onClick:C[0]||(C[0]=H=>v(null))},[lme,pt(" Report ")],2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==="graph"}]),onClick:C[1]||(C[1]=H=>v("graph"))},[z(s)?(oe(),me("span",ame)):(oe(),me("span",cme)),pt(" Module Graph ")],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==="editor"}]),onClick:C[2]||(C[2]=H=>v("editor"))},[ume,pt(" "+qe(z(r)?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==="console",op20:z(Un)!=="console"&&z(y)===0}]),onClick:C[3]||(C[3]=H=>v("console"))},[fme,pt(" Console ("+qe(z(y))+") ",1)],2)])]),Y("div",dme,[z(o)?(oe(),me("div",{key:0,"flex-1":z(Un)==="graph"&&""},[vt(Pe(A,{graph:z(t),"data-testid":"graph","project-name":z(Gt).file.projectName||""},null,8,["graph","project-name"]),[[Ui,z(Un)==="graph"&&!z(s)]])],8,hme)):Ye("",!0),z(Un)==="editor"?(oe(),ot(P,{key:z(Gt).filepath,file:z(Gt),"data-testid":"editor",onDraft:b},null,8,["file"])):z(Un)==="console"?(oe(),ot(M,{key:2,file:z(Gt),"data-testid":"console"},null,8,["file"])):z(Un)?Ye("",!0):(oe(),ot(q,{key:3,file:z(Gt),"data-testid":"report"},null,8,["file"]))])])):Ye("",!0)}}}),gme={h:"full",flex:"~ col"},vme=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon:folder-details-reference"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1),mme={"flex-auto":"","py-1":"","bg-white":""},yme=["src"],bme=ft({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),me("div",gme,[vme,Y("div",mme,[Y("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,yme)])]))}}),wme={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},xme={"font-bold":""},_me={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Sme=["font-bold"],kme={text:"red500/70"},Cme=Y("br",null,null,-1),Tme={key:1,text:"sm","mb-2":""},Eme={"font-bold":""},Lme={key:2,text:"sm","mb-2":""},Ame={"font-bold":""},Mme=Y("br",null,null,-1),Nme=Y("ul",null,[Y("li",null," The error was thrown, while Vitest was running this test. "),Y("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1),$me={key:3,text:"sm","font-thin":""},Pme=Y("br",null,null,-1),Ome=Y("ul",null,[Y("li",null," Cancel timeouts using clearTimeout and clearInterval. "),Y("li",null," Wait for promises to resolve using the await keyword. ")],-1),Rme=ft({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return oe(),me(ut,null,[Y("h4",wme,[Y("span",xme,[pt(qe(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),me(ut,{key:0},[pt(":")],64)):Ye("",!0)]),pt(" "+qe(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(oe(),me("p",_me,[(oe(!0),me(ut,null,ui(t.error.stacks,(s,c)=>(oe(),me("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+qe(s.method)+" "+qe(s.file)+":",1),Y("span",kme,qe(s.line)+":"+qe(s.column),1),Cme],8,Sme))),128))])):Ye("",!0),t.error.VITEST_TEST_PATH?(oe(),me("p",Tme,[pt(" This error originated in "),Y("span",Eme,qe(t.error.VITEST_TEST_PATH),1),pt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ")])):Ye("",!0),t.error.VITEST_TEST_NAME?(oe(),me("p",Lme,[pt(" The latest test that might've caused the error is "),Y("span",Ame,qe(t.error.VITEST_TEST_NAME),1),pt(". It might mean one of the following:"),Mme,Nme])):Ye("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),me("p",$me,[pt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),Pme,Ome])):Ye("",!0)],64)}}}),Ln=e=>(Is("data-v-0178ddee"),e=e(),Fs(),e),Dme={"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:""},zme=Ln(()=>Y("div",{"i-carbon-document":""},null,-1)),Ime=Ln(()=>Y("div",null,"Files",-1)),Fme={class:"number","data-testid":"num-files"},Hme=Ln(()=>Y("div",{"i-carbon-checkmark":""},null,-1)),qme=Ln(()=>Y("div",null,"Pass",-1)),Bme={class:"number"},Wme=Ln(()=>Y("div",{"i-carbon-close":""},null,-1)),Ume=Ln(()=>Y("div",null," Fail ",-1)),Vme={class:"number","text-red5":""},jme=Ln(()=>Y("div",{"i-carbon-compare":""},null,-1)),Gme=Ln(()=>Y("div",null," Snapshot Fail ",-1)),Kme={class:"number","text-red5":""},Xme=Ln(()=>Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),Yme=Ln(()=>Y("div",null," Errors ",-1)),Zme={class:"number","text-red5":""},Jme=Ln(()=>Y("div",{"i-carbon-timer":""},null,-1)),Qme=Ln(()=>Y("div",null,"Time",-1)),e0e={class:"number","data-testid":"run-time"},t0e={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},n0e=Ln(()=>Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),r0e={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},i0e=Ln(()=>Y("br",null,null,-1)),o0e={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},s0e=Ln(()=>Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),l0e=ft({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=Rme;return oe(),me(ut,null,[Y("div",Dme,[zme,Ime,Y("div",Fme,qe(z(Te).summary.files),1),z(Te).summary.filesSuccess?(oe(),me(ut,{key:0},[Hme,qme,Y("div",Bme,qe(z(Te).summary.filesSuccess),1)],64)):Ye("",!0),z(Te).summary.filesFailed?(oe(),me(ut,{key:1},[Wme,Ume,Y("div",Vme,qe(z(Te).summary.filesFailed),1)],64)):Ye("",!0),z(Te).summary.filesSnapshotFailed?(oe(),me(ut,{key:2},[jme,Gme,Y("div",Kme,qe(z(Te).summary.filesSnapshotFailed),1)],64)):Ye("",!0),z(Hi).length?(oe(),me(ut,{key:3},[Xme,Yme,Y("div",Zme,qe(z(Hi).length),1)],64)):Ye("",!0),Jme,Qme,Y("div",e0e,qe(z(Te).summary.time),1)]),z(Hi).length?(oe(),me("div",t0e,[n0e,Y("p",r0e,[pt(" Vitest caught "+qe(z(Hi).length)+" error"+qe(z(Hi).length>1?"s":"")+" during the test run.",1),i0e,pt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ")]),Y("details",o0e,[s0e,(oe(!0),me(ut,null,ui(z(Hi),(s,c)=>(oe(),ot(o,{key:c,error:s},null,8,["error"]))),128))])])):Ye("",!0)],64)}}}),a0e=Vr(l0e,[["__scopeId","data-v-0178ddee"]]),c0e={"p-2":"","text-center":"",flex:""},u0e={"text-4xl":"","min-w-2em":""},f0e={"text-md":""},d0e=ft({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),me("div",c0e,[Y("div",null,[Y("div",u0e,[hn(t.$slots,"body")]),Y("div",f0e,[hn(t.$slots,"header")])])]))}}),h0e={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},p0e=ft({__name:"TestsEntry",setup(e){return(t,r)=>{const o=d0e;return oe(),me("div",h0e,[Pe(o,{"text-green5":"","data-testid":"pass-entry"},{header:st(()=>[pt(" Pass ")]),body:st(()=>[pt(qe(z(Te).summary.testsSuccess),1)]),_:1}),Pe(o,{class:lt({"text-red5":z(Te).summary.testsFailed,op50:!z(Te).summary.testsFailed}),"data-testid":"fail-entry"},{header:st(()=>[pt(" Fail ")]),body:st(()=>[pt(qe(z(Te).summary.testsFailed),1)]),_:1},8,["class"]),z(Te).summary.testsSkipped?(oe(),ot(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:st(()=>[pt(" Skip ")]),body:st(()=>[pt(qe(z(Te).summary.testsSkipped),1)]),_:1})):Ye("",!0),z(Te).summary.testsTodo?(oe(),ot(o,{key:1,op50:"","data-testid":"todo-entry"},{header:st(()=>[pt(" Todo ")]),body:st(()=>[pt(qe(z(Te).summary.testsTodo),1)]),_:1})):Ye("",!0),Pe(o,{tail:!0,"data-testid":"total-entry"},{header:st(()=>[pt(" Total ")]),body:st(()=>[pt(qe(z(Te).summary.totalTests),1)]),_:1})])}}}),g0e={},v0e={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},m0e={"aria-labelledby":"tests",m:"y-4 x-2"};function y0e(e,t){const r=p0e,o=a0e;return oe(),me("div",v0e,[Y("section",m0e,[Pe(r)]),Pe(o)])}const b0e=Vr(g0e,[["render",y0e]]),w0e={},x0e={h:"full",flex:"~ col"},_0e=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon-dashboard"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),S0e={class:"scrolls","flex-auto":"","py-1":""};function k0e(e,t){const r=b0e;return oe(),me("div",x0e,[_0e,Y("div",S0e,[Pe(r)])])}const C0e=Vr(w0e,[["render",k0e]]),T0e=["open"],E0e=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),L0e=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),A0e=ft({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Be(!0);return(r,o)=>(oe(),me("div",{open:z(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[Y("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:lt(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[E0e,hn(r.$slots,"summary",{open:z(t)}),L0e],2),hn(r.$slots,"default")],40,T0e))}}),M0e={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},N0e={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),me("button",M0e,[Y("span",{block:"",class:lt([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},ap=e=>(Is("data-v-02b6b92e"),e=e(),Fs(),e),$0e=["aria-label","data-current"],P0e={key:1,"w-4":""},O0e={flex:"","items-end":"","gap-2":"","overflow-hidden":""},R0e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},D0e={"text-sm":"",truncate:"","font-light":""},z0e=["text","innerHTML"],I0e={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},F0e={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},H0e={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},q0e=ap(()=>Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),B0e=ap(()=>Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),W0e=ap(()=>Y("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1)),U0e={key:1},V0e=ft({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Ce(()=>bt.state.idMap.get(e.taskId)),r=Ce(()=>{if(Ir)return!1;const C=t.value;return C&&Hh(C)});function o(){e.expandable&&(e.opened?Te.collapseNode(e.taskId):Te.expandNode(e.taskId))}async function s(C){var L;(L=e.onItemClick)==null||L.call(e,C),ps.value&&(nu.value=!0,await ln()),await Yh([C.file])}function c(C){return bt.rpc.updateSnapshot(C.file)}const f=Ce(()=>e.indent<=0?[]:Array.from({length:e.indent},(C,L)=>`${e.taskId}-${L}`)),d=Ce(()=>{const C=f.value,L=[];return(e.type==="file"||e.type==="suite")&&L.push("min-content"),L.push("min-content"),e.type==="suite"&&e.typecheck&&L.push("min-content"),L.push("minmax(0, 1fr)"),L.push("min-content"),`grid-template-columns: ${C.map(()=>"1rem").join(" ")} ${L.join(" ")};`}),h=Ce(()=>Ow(e.name)),p=Ce(()=>{const C=Gce.value,L=h.value;return C?L.replace(C,N=>`<span class="highlight">${N}</span>`):L}),v=Ce(()=>e.type!=="file"&&e.disableTaskLocation),y=Ce(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),b=Ce(()=>v.value?"color-red5 dark:color-#f43f5e":null);function x(){var L;const C=t.value;e.type==="file"?(L=e.onItemClick)==null||L.call(e,C):kfe(C)}const E=Ce(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(C,L)=>{const N=P1,A=N0e,P=gi,M=Ur("tooltip");return z(t)?(oe(),me("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:Kt(z(d)),"aria-label":C.name,"data-current":C.current,onClick:L[2]||(L[2]=q=>o())},[C.indent>0?(oe(!0),me(ut,{key:0},ui(z(f),q=>(oe(),me("div",{key:q,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ye("",!0),C.type==="file"||C.type==="suite"?(oe(),me("div",P0e,[Y("div",{class:lt(C.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ye("",!0),Pe(N,{state:C.state,mode:z(t).mode,"failed-snapshot":z(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),Y("div",O0e,[C.type==="file"&&C.typecheck?vt((oe(),me("div",R0e,null,512)),[[M,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),Y("span",D0e,[C.type==="file"&&C.projectName?(oe(),me("span",{key:0,class:"rounded-full p-1 mr-1 text-xs",style:Kt({backgroundColor:C.projectNameColor,color:z(E)})},qe(C.projectName),5)):Ye("",!0),Y("span",{text:C.state==="fail"?"red-500":"",innerHTML:z(p)},null,8,z0e)]),typeof C.duration=="number"?(oe(),me("span",I0e,qe(C.duration>0?C.duration:"< 1")+"ms ",1)):Ye("",!0)]),Y("div",F0e,[!z(Ir)&&z(r)?vt((oe(),ot(A,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:L[0]||(L[0]=Tc(q=>c(z(t)),["prevent","stop"]))},null,512)),[[M,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),Pe(z(Pb),{placement:"bottom",class:lt(["w-1.4em h-1.4em op100 rounded flex",z(b)])},{popper:st(()=>[z(v)?(oe(),me("div",H0e,[q0e,Y("div",null,[pt(qe(z(y))+": this feature is not available, you have disabled ",1),B0e,pt(" in your configuration file.")]),W0e])):(oe(),me("div",U0e,qe(z(y)),1))]),default:st(()=>[Pe(P,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Tc(x,["prevent","stop"])})]),_:1},8,["class"]),z(Ir)?Ye("",!0):vt((oe(),ot(P,{key:1,"data-testid":"btn-run-test",title:"Run current test",icon:"i-carbon:play-filled-alt","text-green5":"",disabled:C.type!=="file",onClick:L[1]||(L[1]=Tc(q=>s(z(t)),["prevent","stop"]))},null,8,["disabled"])),[[M,"Run current test",void 0,{bottom:!0}]])])],12,$0e)):Ye("",!0)}}}),j0e=Vr(V0e,[["__scopeId","data-v-02b6b92e"]]),G0e={"flex-1":"","ms-2":"","select-none":""},K0e=ft({__name:"FilterStatus",props:qc({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Eh(e,"modelValue");return(r,o)=>(oe(),me("label",ai({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Tc(s=>t.value=!t.value,["prevent"]))}),[Y("span",{class:lt([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),vt(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[pC,t.value]]),Y("span",G0e,qe(r.label),1)],16))}});function X0e(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Rc;function nh(){nh.init||(nh.init=!0,Rc=X0e()!==-1)}var Uu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){nh(),ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Rc&&this.$el.appendChild(e),e.data="about:blank",Rc||this.$el.appendChild(e)},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&&(!Rc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Y0e=uy();Is("data-v-b329ee4c");const Z0e={class:"resize-observer",tabindex:"-1"};Fs();const J0e=Y0e((e,t,r,o,s,c)=>(oe(),ot("div",Z0e)));Uu.render=J0e;Uu.__scopeId="data-v-b329ee4c";Uu.__file="src/components/ResizeObserver.vue";function Dc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dc=function(t){return typeof t}:Dc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dc(e)}function Q0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eye(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tye(e,t,r){return t&&eye(e.prototype,t),e}function A0(e){return nye(e)||rye(e)||iye(e)||oye()}function nye(e){if(Array.isArray(e))return rh(e)}function rye(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function iye(e,t){if(e){if(typeof e=="string")return rh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rh(e,t)}}function rh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function oye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
52
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sye(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function lye(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),y=1;y<p;y++)v[y-1]=arguments[y];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(A0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(A0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function O1(e,t){if(e===t)return!0;if(Dc(e)==="object"){for(var r in e)if(!O1(e[r],t[r]))return!1;return!0}return!1}var aye=function(){function e(t,r,o){Q0e(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return tye(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=sye(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=lye(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(y){return y.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),ln(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function R1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new aye(e,o,r);e._vue_visibilityState=s}}function cye(e,t,r){var o=t.value,s=t.oldValue;if(!O1(o,s)){var c=e._vue_visibilityState;if(!o){D1(e);return}c?c.createObserver(o,r):R1(e,{value:o},r)}}function D1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var uye={beforeMount:R1,updated:cye,unmounted:D1},fye={itemsLimit:1e3},dye=/(auto|scroll)/;function z1(e,t){return e.parentNode===null?t:z1(e.parentNode,t.concat([e]))}var ud=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},hye=function(t){return ud(t,"overflow")+ud(t,"overflow-y")+ud(t,"overflow-x")},pye=function(t){return dye.test(hye(t))};function M0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=z1(e.parentNode,[]),r=0;r<t.length;r+=1)if(pye(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function ih(e){"@babel/helpers - typeof";return ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ih(e)}var gye={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function vye(){return this.items.length&&ih(this.items[0])!=="object"}var oh=!1;if(typeof window<"u"){oh=!1;try{var mye=Object.defineProperty({},"passive",{get:function(){oh=!0}});window.addEventListener("test",null,mye)}catch{}}let yye=0;var cp={name:"RecycleScroller",components:{ResizeObserver:Uu},directives:{ObserveVisibility:uye},props:{...gye,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:vye,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=mh({id:yye++,index:t,used:!0,key:o,type:s}),f=gh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,y=this.$_views,b=this.$_unusedViews,x=this.pool,E=this.itemIndexByKey;let C,L,N,A,P;if(!p)C=L=A=P=N=0;else if(this.$_prerender)C=A=0,L=P=Math.min(this.prerender,h.length),N=null;else{const j=this.getScroll();if(t){let H=j.start-this.$_lastUpdateScrollPosition;if(H<0&&(H=-H),r===null&&H<c||H<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=j.start;const te=this.buffer;j.start-=te,j.end+=te;let Z=0;if(this.$refs.before&&(Z=this.$refs.before.scrollHeight,j.start-=Z),this.$refs.after){const H=this.$refs.after.scrollHeight;j.end+=H}if(r===null){let H,I=0,k=p-1,B=~~(p/2),U;do U=B,H=v[B].accumulator,H<j.start?I=B:B<p-1&&v[B+1].accumulator>j.start&&(k=B),B=~~((I+k)/2);while(B!==U);for(B<0&&(B=0),C=B,N=v[p-1].accumulator,L=B;L<p&&v[L].accumulator<j.end;L++);for(L===-1?L=h.length-1:(L++,L>p&&(L=p)),A=C;A<p&&Z+v[A].accumulator<j.start;A++);for(P=A;P<p&&Z+v[P].accumulator<j.end;P++);}else{C=~~(j.start/r*o);const H=C%o;C-=H,L=Math.ceil(j.end/r*o),A=Math.max(0,Math.floor((j.start-Z)/r*o)),P=Math.floor((j.end-Z)/r*o),C<0&&(C=0),L>p&&(L=p),A<0&&(A=0),P>p&&(P=p),N=Math.ceil(p/o)*r}}L-C>fye.itemsLimit&&this.itemsLimitError(),this.totalSize=N;let M;const q=C<=this.$_endIndex&&L>=this.$_startIndex;if(q)for(let j=0,te=x.length;j<te;j++)M=x[j],M.nr.used&&(e&&(M.nr.index=E[M.item[d]]),(M.nr.index==null||M.nr.index<C||M.nr.index>=L)&&this.unuseView(M));const W=q?null:new Map;let X,ie,ee;for(let j=C;j<L;j++){X=h[j];const te=d?X[d]:X;if(te==null)throw new Error(`Key is ${te} on item (keyField is '${d}')`);if(M=y.get(te),!r&&!v[j].size){M&&this.unuseView(M);continue}ie=X[f];let Z=b.get(ie),H=!1;if(!M)q?Z&&Z.length?M=Z.pop():M=this.addView(x,j,X,te,ie):(ee=W.get(ie)||0,(!Z||ee>=Z.length)&&(M=this.addView(x,j,X,te,ie),this.unuseView(M,!0),Z=b.get(ie)),M=Z[ee],W.set(ie,ee+1)),y.delete(M.nr.key),M.nr.used=!0,M.nr.index=j,M.nr.key=te,M.nr.type=ie,y.set(te,M),H=!0;else if(!M.nr.used&&(M.nr.used=!0,H=!0,Z)){const I=Z.indexOf(M);I!==-1&&Z.splice(I,1)}M.item=X,H&&(j===h.length-1&&this.$emit("scroll-end"),j===0&&this.$emit("scroll-start")),r===null?(M.position=v[j-1].accumulator,M.offset=0):(M.position=Math.floor(j/o)*r,M.offset=j%o*s)}return this.$_startIndex=C,this.$_endIndex=L,this.emitUpdate&&this.$emit("update",C,L,A,P),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:q}},getListenerTarget(){let e=M0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,oh?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=M0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const bye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},wye={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function xye(e,t,r,o,s,c){const f=Po("ResizeObserver"),d=Ur("observe-visibility");return vt((oe(),me("div",{class:lt(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(oe(),me("div",bye,[hn(e.$slots,"before")],512)):Ye("v-if",!0),(oe(),ot(xv(r.listTag),{ref:"wrapper",style:Kt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:lt(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:st(()=>[(oe(!0),me(ut,null,ui(s.pool,h=>(oe(),ot(xv(r.itemTag),ai({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},GS(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:st(()=>[hn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),hn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(oe(),me("div",wye,[hn(e.$slots,"after")],512)):Ye("v-if",!0),Pe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}cp.render=xye;cp.__file="src/components/RecycleScroller.vue";function _ye(e){const t=Ce(()=>Bd.value?!1:!et.onlyTests),r=Ce(()=>On.value===""),o=Be(On.value);bw(On,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;On.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;et.failed=!1,et.success=!1,et.skipped=!1,et.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,y,b){Rs.value&&(on.value.search=(h==null?void 0:h.trim())??"",on.value.failed=p,on.value.success=v,on.value.skipped=y,on.value.onlyTests=b)}return It(()=>[o.value,et.failed,et.success,et.skipped,et.onlyTests],([h,p,v,y,b])=>{d(h,p,v,y,b),Te.filterNodes()},{flush:"post"}),It(()=>Cr.value.length,h=>{h&&(on.value.expandAll=void 0)},{flush:"post"}),{initialized:Rs,filter:et,search:On,disableFilter:t,isFiltered:Rw,isFilteredByStatus:Bd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Iu,testsTotal:Kce,uiEntries:Hn}}const Sye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},kye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Cye=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Tye=["op"],Eye=Y("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1),Lye=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1),Aye={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Mye={"text-red5":""},Nye=Y("span",null,"/",-1),$ye={"text-yellow5":""},Pye={"text-green5":""},Oye=Y("span",null,"/",-1),Rye={class:"text-purple5:50"},Dye={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},zye=Y("div",{op30:""}," No matched test ",-1),Iye=["disabled"],Fye=["disabled"],Hye={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},qye=Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Bye=Y("div",{op30:""}," Loading... ",-1),Wye=[qye,Bye],Uye=ft({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Ce(()=>Hu.value.includeTaskLocation),s=Be(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:y,clearAll:b,clearSearch:x,clearFilter:E,filteredFiles:C,testsTotal:L,uiEntries:N}=_ye(s),A=Be("grid-cols-2"),P=Be("grid-col-span-2"),M=Be(),{width:q}=Vh();return It(()=>q.value*(dn.navigation/100),W=>{W<420?(A.value="grid-cols-2",P.value="grid-col-span-2"):(A.value="grid-cols-4",P.value="grid-col-span-4")}),(W,X)=>{const ie=gi,ee=K0e,j=j0e,te=A0e,Z=Ur("tooltip");return oe(),me("div",{ref_key:"testExplorerRef",ref:M,h:"full",flex:"~ col"},[Y("div",null,[Y("div",Sye,[hn(W.$slots,"header",{filteredFiles:z(p)||z(v)?z(C):void 0})]),Y("div",kye,[Cye,vt(Y("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":X[0]||(X[0]=H=>Pt(d)?d.value=H:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:z(d).length?"100":"50",onKeydown:[X[1]||(X[1]=Td(H=>z(x)(!1),["esc"])),X[2]||(X[2]=Td(H=>r("run",z(p)||z(v)?z(C):void 0),["enter"]))]},null,40,Tye),[[hC,z(d)]]),vt(Pe(ie,{disabled:z(y),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:X[3]||(X[3]=H=>z(x)(!0))},null,8,["disabled"]),[[Z,"Clear search",void 0,{bottom:!0}]])]),Y("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:lt(z(A))},[Y("div",{class:lt(z(P)),flex:"~ gap-2 items-center"},[Eye,Lye,vt(Pe(ie,{disabled:z(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:X[4]||(X[4]=H=>z(E)(!1))},null,8,["disabled"]),[[Z,"Clear Filter",void 0,{bottom:!0}]])],2),Pe(ee,{modelValue:z(f).failed,"onUpdate:modelValue":X[5]||(X[5]=H=>z(f).failed=H),label:"Fail"},null,8,["modelValue"]),Pe(ee,{modelValue:z(f).success,"onUpdate:modelValue":X[6]||(X[6]=H=>z(f).success=H),label:"Pass"},null,8,["modelValue"]),Pe(ee,{modelValue:z(f).skipped,"onUpdate:modelValue":X[7]||(X[7]=H=>z(f).skipped=H),label:"Skip"},null,8,["modelValue"]),Pe(ee,{modelValue:z(f).onlyTests,"onUpdate:modelValue":X[8]||(X[8]=H=>z(f).onlyTests=H),label:"Only Tests"},null,8,["modelValue"])],2)]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:X[12]||(X[12]=(...H)=>z(Em)&&z(Em)(...H))},[Pe(te,null,jS({default:st(()=>[(z(p)||z(v))&&z(N).length===0?(oe(),me(ut,{key:0},[z(c)?(oe(),me("div",Dye,[zye,Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:lt(z(y)?null:"hover:op100"),disabled:z(y),onClickPassive:X[9]||(X[9]=H=>z(x)(!0))}," Clear Search ",42,Iye),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:lt(z(h)?null:"hover:op100"),disabled:z(h),onClickPassive:X[10]||(X[10]=H=>z(E)(!0))}," Clear Filter ",42,Fye),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:X[11]||(X[11]=(...H)=>z(b)&&z(b)(...H))}," Clear All ",32)])):(oe(),me("div",Hye,Wye))],64)):(oe(),ot(z(cp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:z(N),buffer:100},{default:st(({item:H})=>[Pe(j,{class:lt(["h-28px m-0 p-0",z(eo)===H.id?"bg-active":""]),"task-id":H.id,expandable:H.expandable,type:H.type,current:z(eo)===H.id,indent:H.indent,name:H.name,typecheck:H.typecheck===!0,"project-name":H.projectName??"","project-name-color":H.projectNameColor??"",state:H.state,duration:H.duration,opened:H.expanded,"disable-task-location":!z(o),"on-item-click":W.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[z(c)?{name:"summary",fn:st(()=>[Y("div",Aye,[Y("span",Mye," FAIL ("+qe(z(L).failed)+") ",1),Nye,Y("span",$ye," RUNNING ("+qe(z(L).running)+") ",1),Y("span",Pye," PASS ("+qe(z(L).success)+") ",1),Oye,Y("span",Rye," SKIP ("+qe(z(f).onlyTests?z(L).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Vye=""+new URL("../favicon.svg",import.meta.url).href,jye=Y("img",{"w-6":"","h-6":"",src:Vye,alt:"Vitest logo"},null,-1),Gye=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Kye={class:"flex text-lg"},Xye=Y("div",{class:"i-carbon:folder-off ma"},null,-1),Yye=Y("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Y("div",null,"Coverage enabled but missing html reporter."),Y("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1),Zye=ft({__name:"Navigation",setup(e){function t(){return bt.rpc.updateSnapshot()}const r=Ce(()=>ya.value?"light":"dark");async function o(f){ps.value&&(nu.value=!0,await ln(),to.value&&(ru(!0),await ln())),f!=null&&f.length?await Yh(f):await Sue()}function s(){Te.collapseAllNodes()}function c(){Te.expandAllNodes()}return(f,d)=>{const h=gi,p=Uye,v=Ur("tooltip");return oe(),ot(p,{border:"r base","on-item-click":z(Tw),nested:!0,onRun:o},{header:st(({filteredFiles:y})=>[jye,Gye,Y("div",Kye,[vt(Pe(h,{title:"Collapse tests",disabled:!z(Rs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[Ui,!z(e0)],[v,"Collapse tests",void 0,{bottom:!0}]]),vt(Pe(h,{disabled:!z(Rs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[Ui,z(e0)],[v,"Expand tests",void 0,{bottom:!0}]]),vt(Pe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>z(ru)(!0))},null,512),[[Ui,z(Id)&&!z(ps)||!z(Ss)],[v,"Dashboard",void 0,{bottom:!0}]]),z(Id)&&!z(ps)?(oe(),ot(z(Pb),{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:st(()=>[Yye]),default:st(()=>[Xye]),_:1})):Ye("",!0),z(ps)?vt((oe(),ot(h,{key:1,disabled:z(nu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>z(wce)())},null,8,["disabled"])),[[Ui,!z(to)],[v,"Coverage",void 0,{bottom:!0}]]):Ye("",!0),z(Te).summary.failedSnapshot&&!z(Ir)?vt((oe(),ot(h,{key:2,icon:"i-carbon:result-old",disabled:!z(Te).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>z(Te).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),z(Ir)?Ye("",!0):vt((oe(),ot(h,{key:3,disabled:(y==null?void 0:y.length)===0,icon:"i-carbon:play",onClick:b=>o(y)},null,8,["disabled","onClick"])),[[v,y?y.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),vt(Pe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>z(Jue)())},null,512),[[v,`Toggle to ${z(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Jye={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Qye=ft({__name:"ProgressBar",setup(e){const{width:t}=Vh(),r=Ce(()=>Te.summary.files===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":yce.value?null:"in-progress"),o=Ce(()=>{const d=Te.summary.files;return d>0?t.value*Te.summary.filesSuccess/d:0}),s=Ce(()=>{const d=Te.summary.files;return d>0?t.value*Te.summary.filesFailed/d:0}),c=Ce(()=>Te.summary.files-Te.summary.filesFailed-Te.summary.filesSuccess),f=Ce(()=>{const d=Te.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(oe(),me("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:lt(z(r))},[Y("div",Jye,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:lt(z(r)),style:Kt(`width: ${z(s)}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:lt(z(r)),style:Kt(`left: ${z(s)}px; width: ${z(o)}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:lt(z(r)),style:Kt(`left: ${z(o)+z(s)}px; width: ${z(f)}px;`)},"   ",6)])],2))}}),ebe=Vr(Qye,[["__scopeId","data-v-38451300"]]),N0={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((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.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(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===t?o.max:o.min,s!==t&&(r+=o.min),o)),this.panes[t].size-=r,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:r-t.left,y:o-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(e),s),o);let f=[t,t+1],d=this.panes[f[0]]||null,h=this.panes[f[1]]||null;const p=d.max<100&&c>=d.max+r.prevPanesSize,v=h.max<100&&c<=100-(h.max+this.sumNextPanesSize(t+1));if(p||v){p?(d.size=d.max,h.size=Math.max(100-d.max-r.prevPanesSize-r.nextPanesSize,0)):(d.size=Math.max(100-h.max-r.prevPanesSize-this.sumNextPanesSize(t+1),0),h.size=h.max);return}if(this.pushOtherPanes){const y=this.doPushOtherPanes(r,c);if(!y)return;({sums:r,panesToResize:f}=y),d=this.panes[f[0]]||null,h=this.panes[f[1]]||null}d!==null&&(d.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,d.min),d.max)),h!==null&&(h.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,h.min),h.max))},doPushOtherPanes(e,t){const r=this.touch.activeSplitter,o=[r,r+1];return t<e.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,e.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,c)=>{c>o[0]&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,e.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c<o[1]&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),e.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,c)=>{c<this.panesCount-1&&c>=r+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:o}},sumPrevPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o<e?r.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o>e+1?r.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),r=e.classList.contains("splitpanes__splitter");!t&&!r&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,r=!1){const o=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let t=0;e.forEach(r=>{r.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,r,!0):t&&this.addSplitter(t,r),t++)})},requestUpdate({target:e,...t}){const r=this.indexedPanes[e._.uid];Object.entries(t).forEach(([o,s])=>r[o]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const r=parseFloat(e.minSize),o=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(o=>o.id===e._.uid),r=this.panes.splice(t,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:t}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),t>.1&&this.readjustSizes(t,r,o)},initialPanesSizing(){let e=100;const t=[],r=[];let o=0;this.panes.forEach(c=>{e-=c.size,c.size!==null&&o++,c.size>=c.max&&t.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;e>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(e/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(e,t,r))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let r=100/this.panesCount,o=0;const s=[],c=[];e&&e.givenSize!==null&&(r=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{e&&e.givenSize!==null&&e.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&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(e,t,r){let o;e>0?o=e/(this.panesCount-t.length):o=e/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(e>0&&!t.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.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(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,r)=>{t.ondblclick=e?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 pa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},tbe=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},nbe={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(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function rbe(e,t,r,o,s,c){return oe(),me("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=f=>c.onPaneClick(f,e._.uid)),style:Kt(e.style)},[hn(e.$slots,"default")],4)}const wc=tbe(nbe,[["render",rbe]]),ibe={"h-screen":"","w-screen":"",overflow:"hidden"},obe=ft({__name:"index",setup(e){const t=bce(),r=dc(y=>{p(),h(y)},0),o=dc(y=>{y.forEach((b,x)=>{br.value[x]=b.size}),d(y)},0),s=dc(y=>{y.forEach((b,x)=>{Mo.value[x]=b.size}),h(y),v()},0),c=dc(y=>{d(y),p()},0);function f(){const y=window.innerWidth,b=Math.min(y/3,300);br.value[0]=100*b/y,br.value[1]=100-br.value[0],d([{size:br.value[0]},{size:br.value[1]}])}function d(y){dn.navigation=y[0].size,dn.details.size=y[1].size}function h(y){dn.details.browser=y[0].size,dn.details.main=y[1].size}function p(){const y=document.querySelector("#tester-ui");y&&(y.style.pointerEvents="none")}function v(){const y=document.querySelector("#tester-ui");y&&(y.style.pointerEvents="")}return(y,b)=>{const x=ebe,E=Zye,C=C0e,L=bme,N=pme,A=Hue,P=Eue;return oe(),me(ut,null,[Pe(x),Y("div",ibe,[Pe(z(N0),{class:"pt-4px",onResized:z(o),onResize:z(c),onReady:f},{default:st(()=>[Pe(z(wc),{size:z(br)[0]},{default:st(()=>[Pe(E)]),_:1},8,["size"]),Pe(z(wc),{size:z(br)[1]},{default:st(()=>[z(Ro)?(oe(),ot(z(N0),{id:"details-splitpanes",key:"browser-detail",onResize:z(r),onResized:z(s)},{default:st(()=>[Pe(z(wc),{size:z(Mo)[0],"min-size":"10"},{default:st(()=>[b[0]||(Wc(-1),(b[0]=Pe(A)).cacheIndex=0,Wc(1),b[0])]),_:1},8,["size"]),Pe(z(wc),{size:z(Mo)[1]},{default:st(()=>[z(t)?(oe(),ot(C,{key:"summary"})):z(to)?(oe(),ot(L,{key:"coverage",src:z(Qm)},null,8,["src"])):(oe(),ot(N,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(oe(),ot(Mh,{key:"ui-detail"},{default:st(()=>[z(t)?(oe(),ot(C,{key:"summary"})):z(to)?(oe(),ot(L,{key:"coverage",src:z(Qm)},null,8,["src"])):(oe(),ot(N,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Pe(P)],64)}}}),sbe=[{name:"index",path:"/",component:obe,props:!0}],lbe={tooltip:EE};Ob.options.instantMove=!0;Ob.options.distance=10;function abe(){return AT({history:rT(),routes:sbe})}const cbe=[abe],up=Gy(CC);cbe.forEach(e=>{up.use(e())});Object.entries(lbe).forEach(([e,t])=>{up.directive(e,t)});up.mount("#app");
51
+ A${c},${c},0,1,0,${v.x},${v.y}`}function yve({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=lp({config:e,source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function bve({center:e,config:t,node:r}){const{n:o,c:s}=A1({center:e,config:t,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*no(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Ts={line:{labelTransform:gve,path:pve},arc:{labelTransform:yve,path:vve},reflexive:{labelTransform:bve,path:mve}};function wve(e){return e.append("g").classed("links",!0).selectAll("path")}function xve({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>eve(c)).join(c=>{var f,d,h,p;const v=c.append("g"),y=v.append("path").classed("link",!0).style("marker-end",x=>tve(x)).style("stroke",x=>x.color);(d=(f=e.modifiers).link)==null||d.call(f,y);const b=v.append("text").classed("link__label",!0).style("fill",x=>x.label?x.label.color:null).style("font-size",x=>x.label?x.label.fontSize:null).text(x=>x.label?x.label.text:null);return(p=(h=e.modifiers).linkLabel)==null||p.call(h,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function _ve(e){Sve(e),kve(e)}function Sve({center:e,config:t,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?Ts.reflexive.path({config:t,node:s.source,center:e}):N1(r,s.source,s.target)?Ts.arc.path({config:t,source:s.source,target:s.target}):Ts.line.path({config:t,source:s.source,target:s.target}))}function kve({config:e,center:t,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?Ts.reflexive.labelTransform({config:e,node:s.source,center:t}):N1(r,s.source,s.target)?Ts.arc.labelTransform({config:e,source:s.source,target:s.target}):Ts.line.labelTransform({config:e,source:s.source,target:s.target}))}function N1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Cve(e){return e.append("defs").selectAll("marker")}function Tve({config:e,graph:t,selection:r}){return r==null?void 0:r.data(Eve(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>C1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",Lve(e.marker.path)),s})}function Eve(e){return[...new Set(e.links.map(t=>t.color))]}function Lve(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function Ave(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Mve({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,y,b;const x=h.append("g");t!==void 0&&x.call(t);const A=x.append("circle").classed("node",!0).attr("r",E=>no(e,E)).on("contextmenu",(E,L)=>{S1(E),o(L)}).on("pointerdown",(E,L)=>$ve(E,L,s??o)).style("fill",E=>E.color);(v=(p=e.modifiers).node)==null||v.call(p,A);const T=x.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",E=>E.label?E.label.color:null).style("font-size",E=>E.label?E.label.fontSize:null).style("stroke","none").text(E=>E.label?E.label.text:null);return(b=(y=e.modifiers).nodeLabel)==null||b.call(y,T),x});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const Nve=500;function $ve(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>Nve){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Pve(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Ove({center:e,config:t,graph:r,onTick:o}){var s,c;const f=Vge(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const y=d.strength;f.force("x",Gge(()=>e().x).strength(y)).force("y",Kge(()=>e().y).strength(y))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",jge().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",Rge().radius(y=>p.radiusMultiplier*no(t,y)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",zge(r.links).id(y=>y.id).distance(t.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=t.modifiers).simulation)==null||c.call(s,f),f}function Rve({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=vge().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class Dve{constructor(t,r,o){if(Dt(this,"nodeTypes"),Dt(this,"_nodeTypeFilter"),Dt(this,"_includeUnlinked",!0),Dt(this,"_linkFilter",()=>!0),Dt(this,"_showLinkLabels",!0),Dt(this,"_showNodeLabels",!0),Dt(this,"filteredGraph"),Dt(this,"width",0),Dt(this,"height",0),Dt(this,"simulation"),Dt(this,"canvas"),Dt(this,"linkSelection"),Dt(this,"nodeSelection"),Dt(this,"markerSelection"),Dt(this,"zoom"),Dt(this,"drag"),Dt(this,"xOffset",0),Dt(this,"yOffset",0),Dt(this,"scale"),Dt(this,"focusedNode"),Dt(this,"resizeObserver"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,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:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??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(Ife(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Sn.of([this.width,this.height]).divide(2).subtract(Sn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(k1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=Tve({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=xve({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Mve({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=Ove({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?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 t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=Rve({config:this.config,canvasContainer:()=>Dn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=lve({applyZoom:this.scale!==1,container:Dn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=wve(this.canvas),this.nodeSelection=Ave(this.canvas),this.markerSelection=Cve(this.canvas),this.drag=cve({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){Pve(this.nodeSelection),_ve({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Dn(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(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.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(){ave({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=uve({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function L0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function zve(e){return{...e}}function $1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const Ive={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Fve={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Hve=["id","checked","onChange"],qve=["for"],Bve=Y("div",{"flex-auto":""},null,-1),Wve=ft({__name:"ViewModuleGraph",props:{graph:{},projectName:{}},setup(e){const t=e,{graph:r}=CS(t),o=Be(),s=Be(!1),c=Be(),f=Be();Th(()=>{s.value===!1&&setTimeout(()=>c.value=void 0,300)},{flush:"post"}),Hs(()=>{p()}),_u(()=>{var b;(b=f.value)==null||b.shutdown()}),It(r,p);function d(b,x){var A;(A=f.value)==null||A.filterNodesByType(x,b)}function h(b){c.value=b,s.value=!0}function p(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new Dve(o.value,r.value,sve({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:x,newWidth:A})=>x===0&&A===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:T1.Arrow(2),modifiers:{node:y},positionInitializer:r.value.nodes.length>1?Qd.Randomized:Qd.Centered,zoom:{min:.5,max:2}})))}const v=b=>b.button===0;function y(b){if(Ir)return;let x=0,A=0,T=0;b.on("pointerdown",(E,L)=>{L.type!=="external"&&(!L.x||!L.y||!v(E)||(x=L.x,A=L.y,T=Date.now()))}).on("pointerup",(E,L)=>{if(L.type==="external"||!L.x||!L.y||!v(E)||Date.now()-T>500)return;const M=L.x-x,P=L.y-A;M**2+P**2<100&&h(L.id)})}return(b,x)=>{var M;const A=gi,T=zfe,E=jw,L=Ur("tooltip");return oe(),me("div",Ive,[Y("div",null,[Y("div",Fve,[(oe(!0),me(ut,null,ui((M=z(f))==null?void 0:M.nodeTypes.sort(),P=>{var N;return oe(),me("div",{key:P,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${P}`,type:"checkbox",checked:(N=z(f))==null?void 0:N.nodeTypeFilter.includes(P),onChange:q=>d(P,q.target.checked)},null,40,Hve),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${P}`,"border-b-2":"",style:Kt({"border-color":`var(--color-node-${P})`})},qe(P)+" Modules",13,qve)])}),128)),Bve,Y("div",null,[vt(Pe(A,{icon:"i-carbon-reset",onClick:p},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),Y("div",{ref_key:"el",ref:o},null,512),Pe(E,{modelValue:z(s),"onUpdate:modelValue":x[1]||(x[1]=P=>Pt(s)?s.value=P:null),direction:"right"},{default:st(()=>[z(c)?(oe(),ot(Ry,{key:0},{default:st(()=>[Pe(T,{id:z(c),"project-name":b.projectName,onClose:x[0]||(x[0]=P=>s.value=!1)},null,8,["id","project-name"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])])}}}),Uve={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Vve={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},jve={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Gve={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Kve={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Xve={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},P1=ft({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Ur("tooltip");return t.state==="pass"?(oe(),me("div",Uve)):t.failedSnapshot?vt((oe(),me("div",Vve,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),me("div",jve)):t.mode==="todo"?vt((oe(),me("div",Gve,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?vt((oe(),me("div",Kve,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),me("div",Xve))}}});function Yve(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:y,candidate:b}=c;t.set(y,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function Zve(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function Jve(e){const t=e.map(o=>Zve(o)),r=Yve(t);return t.map(({raw:o,id:s})=>$1({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 Qve(e,t){return $1({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function eme(e,t){if(!e)return L0({});const r=Jve(e.externalized),o=e.inlined.map(d=>Qve(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],y=c[p];if(!(v===void 0||y===void 0))return zve({source:v,target:y,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return L0({nodes:s,links:f})}const tme={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},nme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},rme={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},ime={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},ome={class:"flex text-lg"},sme={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},lme=Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),ame={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},cme={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},ume=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1),fme=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1),dme={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},hme=["flex-1"],pme=ft({__name:"FileDetails",setup(e){const t=Be({nodes:[],links:[]}),r=Be(!1),o=Be(!1),s=Be(!1),c=Be(void 0),f=Ce(()=>{const E=Gt.value;if(!(!E||!E.filepath))return{filepath:E.filepath,projectName:E.file.projectName||""}}),d=Ce(()=>Gt.value&&Hh(Gt.value)),h=Ce(()=>{var E,L;return!!((L=(E=Gt.value)==null?void 0:E.meta)!=null&&L.typecheck)});function p(){var L;const E=(L=Gt.value)==null?void 0:L.filepath;E&&fetch(`/__open-in-editor?file=${encodeURIComponent(E)}`)}function v(E){E==="graph"&&(o.value=!0),Un.value=E}const y=Ce(()=>{var E;return((E=Uw.value)==null?void 0:E.reduce((L,{size:M})=>L+M,0))??0});function b(E){r.value=E}async function x(){var E;if(!(s.value||((E=f.value)==null?void 0:E.filepath)===c.value)){s.value=!0,await ln();try{const L=f.value;if(!L)return;(!c.value||L.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length)&&(t.value=eme(await bt.rpc.getModuleGraph(L.projectName,L.filepath,!!Ro),L.filepath),c.value=L.filepath),v("graph")}finally{await new Promise(L=>setTimeout(L,100)),s.value=!1}}}bw(()=>[f.value,Un.value],([,E])=>{E==="graph"&&x()},{debounce:100,immediate:!0});const A=Ce(()=>{var E;return Dw((E=Gt.value)==null?void 0:E.file.projectName)}),T=Ce(()=>{switch(A.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(E,L)=>{var ee,j,te,Z;const M=P1,P=gi,N=Wve,q=Tfe,W=mfe,X=ufe,ie=Ur("tooltip");return z(Gt)?(oe(),me("div",tme,[Y("div",null,[Y("div",nme,[Pe(M,{state:(ee=z(Gt).result)==null?void 0:ee.state,mode:z(Gt).mode,"failed-snapshot":z(d)},null,8,["state","mode","failed-snapshot"]),z(h)?vt((oe(),me("div",rme,null,512)),[[ie,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),(j=z(Gt))!=null&&j.file.projectName?(oe(),me("span",{key:1,class:"rounded-full py-0.5 px-1 text-xs font-light",style:Kt({backgroundColor:z(A),color:z(T)})},qe(z(Gt).file.projectName),5)):Ye("",!0),Y("div",ime,qe((te=z(Gt))==null?void 0:te.name),1),Y("div",ome,[z(Ir)?Ye("",!0):vt((oe(),ot(P,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((Z=z(Gt))!=null&&Z.filepath),onClick:p},null,8,["disabled"])),[[ie,"Open in editor",void 0,{bottom:!0}]])])]),Y("div",sme,[Y("button",{"tab-button":"",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==null}]),"data-testid":"btn-report",onClick:L[0]||(L[0]=H=>v(null))},[lme,pt(" Report ")],2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==="graph"}]),onClick:L[1]||(L[1]=H=>v("graph"))},[z(s)?(oe(),me("span",ame)):(oe(),me("span",cme)),pt(" Module Graph ")],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==="editor"}]),onClick:L[2]||(L[2]=H=>v("editor"))},[ume,pt(" "+qe(z(r)?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==="console",op20:z(Un)!=="console"&&z(y)===0}]),onClick:L[3]||(L[3]=H=>v("console"))},[fme,pt(" Console ("+qe(z(y))+") ",1)],2)])]),Y("div",dme,[z(o)?(oe(),me("div",{key:0,"flex-1":z(Un)==="graph"&&""},[vt(Pe(N,{graph:z(t),"data-testid":"graph","project-name":z(Gt).file.projectName||""},null,8,["graph","project-name"]),[[Ui,z(Un)==="graph"&&!z(s)]])],8,hme)):Ye("",!0),z(Un)==="editor"?(oe(),ot(q,{key:z(Gt).filepath,file:z(Gt),"data-testid":"editor",onDraft:b},null,8,["file"])):z(Un)==="console"?(oe(),ot(W,{key:2,file:z(Gt),"data-testid":"console"},null,8,["file"])):z(Un)?Ye("",!0):(oe(),ot(X,{key:3,file:z(Gt),"data-testid":"report"},null,8,["file"]))])])):Ye("",!0)}}}),gme={h:"full",flex:"~ col"},vme=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon:folder-details-reference"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1),mme={"flex-auto":"","py-1":"","bg-white":""},yme=["src"],bme=ft({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),me("div",gme,[vme,Y("div",mme,[Y("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,yme)])]))}}),wme={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},xme={"font-bold":""},_me={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Sme=["font-bold"],kme={text:"red500/70"},Cme=Y("br",null,null,-1),Tme={key:1,text:"sm","mb-2":""},Eme={"font-bold":""},Lme={key:2,text:"sm","mb-2":""},Ame={"font-bold":""},Mme=Y("br",null,null,-1),Nme=Y("ul",null,[Y("li",null," The error was thrown, while Vitest was running this test. "),Y("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1),$me={key:3,text:"sm","font-thin":""},Pme=Y("br",null,null,-1),Ome=Y("ul",null,[Y("li",null," Cancel timeouts using clearTimeout and clearInterval. "),Y("li",null," Wait for promises to resolve using the await keyword. ")],-1),Rme=ft({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return oe(),me(ut,null,[Y("h4",wme,[Y("span",xme,[pt(qe(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),me(ut,{key:0},[pt(":")],64)):Ye("",!0)]),pt(" "+qe(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(oe(),me("p",_me,[(oe(!0),me(ut,null,ui(t.error.stacks,(s,c)=>(oe(),me("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+qe(s.method)+" "+qe(s.file)+":",1),Y("span",kme,qe(s.line)+":"+qe(s.column),1),Cme],8,Sme))),128))])):Ye("",!0),t.error.VITEST_TEST_PATH?(oe(),me("p",Tme,[pt(" This error originated in "),Y("span",Eme,qe(t.error.VITEST_TEST_PATH),1),pt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ")])):Ye("",!0),t.error.VITEST_TEST_NAME?(oe(),me("p",Lme,[pt(" The latest test that might've caused the error is "),Y("span",Ame,qe(t.error.VITEST_TEST_NAME),1),pt(". It might mean one of the following:"),Mme,Nme])):Ye("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),me("p",$me,[pt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),Pme,Ome])):Ye("",!0)],64)}}}),Ln=e=>(Is("data-v-0178ddee"),e=e(),Fs(),e),Dme={"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:""},zme=Ln(()=>Y("div",{"i-carbon-document":""},null,-1)),Ime=Ln(()=>Y("div",null,"Files",-1)),Fme={class:"number","data-testid":"num-files"},Hme=Ln(()=>Y("div",{"i-carbon-checkmark":""},null,-1)),qme=Ln(()=>Y("div",null,"Pass",-1)),Bme={class:"number"},Wme=Ln(()=>Y("div",{"i-carbon-close":""},null,-1)),Ume=Ln(()=>Y("div",null," Fail ",-1)),Vme={class:"number","text-red5":""},jme=Ln(()=>Y("div",{"i-carbon-compare":""},null,-1)),Gme=Ln(()=>Y("div",null," Snapshot Fail ",-1)),Kme={class:"number","text-red5":""},Xme=Ln(()=>Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),Yme=Ln(()=>Y("div",null," Errors ",-1)),Zme={class:"number","text-red5":""},Jme=Ln(()=>Y("div",{"i-carbon-timer":""},null,-1)),Qme=Ln(()=>Y("div",null,"Time",-1)),e0e={class:"number","data-testid":"run-time"},t0e={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},n0e=Ln(()=>Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),r0e={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},i0e=Ln(()=>Y("br",null,null,-1)),o0e={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},s0e=Ln(()=>Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),l0e=ft({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=Rme;return oe(),me(ut,null,[Y("div",Dme,[zme,Ime,Y("div",Fme,qe(z(Te).summary.files),1),z(Te).summary.filesSuccess?(oe(),me(ut,{key:0},[Hme,qme,Y("div",Bme,qe(z(Te).summary.filesSuccess),1)],64)):Ye("",!0),z(Te).summary.filesFailed?(oe(),me(ut,{key:1},[Wme,Ume,Y("div",Vme,qe(z(Te).summary.filesFailed),1)],64)):Ye("",!0),z(Te).summary.filesSnapshotFailed?(oe(),me(ut,{key:2},[jme,Gme,Y("div",Kme,qe(z(Te).summary.filesSnapshotFailed),1)],64)):Ye("",!0),z(Hi).length?(oe(),me(ut,{key:3},[Xme,Yme,Y("div",Zme,qe(z(Hi).length),1)],64)):Ye("",!0),Jme,Qme,Y("div",e0e,qe(z(Te).summary.time),1)]),z(Hi).length?(oe(),me("div",t0e,[n0e,Y("p",r0e,[pt(" Vitest caught "+qe(z(Hi).length)+" error"+qe(z(Hi).length>1?"s":"")+" during the test run.",1),i0e,pt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ")]),Y("details",o0e,[s0e,(oe(!0),me(ut,null,ui(z(Hi),(s,c)=>(oe(),ot(o,{key:c,error:s},null,8,["error"]))),128))])])):Ye("",!0)],64)}}}),a0e=Vr(l0e,[["__scopeId","data-v-0178ddee"]]),c0e={"p-2":"","text-center":"",flex:""},u0e={"text-4xl":"","min-w-2em":""},f0e={"text-md":""},d0e=ft({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),me("div",c0e,[Y("div",null,[Y("div",u0e,[hn(t.$slots,"body")]),Y("div",f0e,[hn(t.$slots,"header")])])]))}}),h0e={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},p0e=ft({__name:"TestsEntry",setup(e){return(t,r)=>{const o=d0e;return oe(),me("div",h0e,[Pe(o,{"text-green5":"","data-testid":"pass-entry"},{header:st(()=>[pt(" Pass ")]),body:st(()=>[pt(qe(z(Te).summary.testsSuccess),1)]),_:1}),Pe(o,{class:lt({"text-red5":z(Te).summary.testsFailed,op50:!z(Te).summary.testsFailed}),"data-testid":"fail-entry"},{header:st(()=>[pt(" Fail ")]),body:st(()=>[pt(qe(z(Te).summary.testsFailed),1)]),_:1},8,["class"]),z(Te).summary.testsSkipped?(oe(),ot(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:st(()=>[pt(" Skip ")]),body:st(()=>[pt(qe(z(Te).summary.testsSkipped),1)]),_:1})):Ye("",!0),z(Te).summary.testsTodo?(oe(),ot(o,{key:1,op50:"","data-testid":"todo-entry"},{header:st(()=>[pt(" Todo ")]),body:st(()=>[pt(qe(z(Te).summary.testsTodo),1)]),_:1})):Ye("",!0),Pe(o,{tail:!0,"data-testid":"total-entry"},{header:st(()=>[pt(" Total ")]),body:st(()=>[pt(qe(z(Te).summary.totalTests),1)]),_:1})])}}}),g0e={},v0e={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},m0e={"aria-labelledby":"tests",m:"y-4 x-2"};function y0e(e,t){const r=p0e,o=a0e;return oe(),me("div",v0e,[Y("section",m0e,[Pe(r)]),Pe(o)])}const b0e=Vr(g0e,[["render",y0e]]),w0e={},x0e={h:"full",flex:"~ col"},_0e=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon-dashboard"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),S0e={class:"scrolls","flex-auto":"","py-1":""};function k0e(e,t){const r=b0e;return oe(),me("div",x0e,[_0e,Y("div",S0e,[Pe(r)])])}const C0e=Vr(w0e,[["render",k0e]]),T0e=["open"],E0e=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),L0e=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),A0e=ft({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Be(!0);return(r,o)=>(oe(),me("div",{open:z(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[Y("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:lt(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[E0e,hn(r.$slots,"summary",{open:z(t)}),L0e],2),hn(r.$slots,"default")],40,T0e))}}),M0e={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},N0e={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),me("button",M0e,[Y("span",{block:"",class:lt([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},ap=e=>(Is("data-v-6e6c7df8"),e=e(),Fs(),e),$0e=["aria-label","data-current"],P0e={key:1,"w-4":""},O0e={flex:"","items-end":"","gap-2":"","overflow-hidden":""},R0e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},D0e={"text-sm":"",truncate:"","font-light":""},z0e=["text","innerHTML"],I0e={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},F0e={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},H0e={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},q0e=ap(()=>Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),B0e=ap(()=>Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),W0e=ap(()=>Y("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1)),U0e={key:1},V0e=ft({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Ce(()=>bt.state.idMap.get(e.taskId)),r=Ce(()=>{if(Ir)return!1;const T=t.value;return T&&Hh(T)});function o(){e.expandable&&(e.opened?Te.collapseNode(e.taskId):Te.expandNode(e.taskId))}async function s(T){var E;(E=e.onItemClick)==null||E.call(e,T),ps.value&&(nu.value=!0,await ln()),await Yh([T.file])}function c(T){return bt.rpc.updateSnapshot(T.file)}const f=Ce(()=>e.indent<=0?[]:Array.from({length:e.indent},(T,E)=>`${e.taskId}-${E}`)),d=Ce(()=>{const T=f.value,E=[];return(e.type==="file"||e.type==="suite")&&E.push("min-content"),E.push("min-content"),e.type==="suite"&&e.typecheck&&E.push("min-content"),E.push("minmax(0, 1fr)"),E.push("min-content"),`grid-template-columns: ${T.map(()=>"1rem").join(" ")} ${E.join(" ")};`}),h=Ce(()=>Ow(e.name)),p=Ce(()=>{const T=Gce.value,E=h.value;return T?E.replace(T,L=>`<span class="highlight">${L}</span>`):E}),v=Ce(()=>e.type!=="file"&&e.disableTaskLocation),y=Ce(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),b=Ce(()=>v.value?"color-red5 dark:color-#f43f5e":null);function x(){var E;const T=t.value;e.type==="file"?(E=e.onItemClick)==null||E.call(e,T):kfe(T)}const A=Ce(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(T,E)=>{const L=P1,M=N0e,P=gi,N=Ur("tooltip");return z(t)?(oe(),me("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:Kt(z(d)),"aria-label":T.name,"data-current":T.current,onClick:E[2]||(E[2]=q=>o())},[T.indent>0?(oe(!0),me(ut,{key:0},ui(z(f),q=>(oe(),me("div",{key:q,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ye("",!0),T.type==="file"||T.type==="suite"?(oe(),me("div",P0e,[Y("div",{class:lt(T.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ye("",!0),Pe(L,{state:T.state,mode:z(t).mode,"failed-snapshot":z(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),Y("div",O0e,[T.type==="file"&&T.typecheck?vt((oe(),me("div",R0e,null,512)),[[N,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),Y("span",D0e,[T.type==="file"&&T.projectName?(oe(),me("span",{key:0,class:"rounded-full py-0.5 px-1 mr-1 text-xs",style:Kt({backgroundColor:T.projectNameColor,color:z(A)})},qe(T.projectName),5)):Ye("",!0),Y("span",{text:T.state==="fail"?"red-500":"",innerHTML:z(p)},null,8,z0e)]),typeof T.duration=="number"?(oe(),me("span",I0e,qe(T.duration>0?T.duration:"< 1")+"ms ",1)):Ye("",!0)]),Y("div",F0e,[!z(Ir)&&z(r)?vt((oe(),ot(M,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:E[0]||(E[0]=Tc(q=>c(z(t)),["prevent","stop"]))},null,512)),[[N,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),Pe(z(Pb),{placement:"bottom",class:lt(["w-1.4em h-1.4em op100 rounded flex",z(b)])},{popper:st(()=>[z(v)?(oe(),me("div",H0e,[q0e,Y("div",null,[pt(qe(z(y))+": this feature is not available, you have disabled ",1),B0e,pt(" in your configuration file.")]),W0e])):(oe(),me("div",U0e,qe(z(y)),1))]),default:st(()=>[Pe(P,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Tc(x,["prevent","stop"])})]),_:1},8,["class"]),z(Ir)?Ye("",!0):vt((oe(),ot(P,{key:1,"data-testid":"btn-run-test",title:"Run current test",icon:"i-carbon:play-filled-alt","text-green5":"",disabled:T.type!=="file",onClick:E[1]||(E[1]=Tc(q=>s(z(t)),["prevent","stop"]))},null,8,["disabled"])),[[N,"Run current test",void 0,{bottom:!0}]])])],12,$0e)):Ye("",!0)}}}),j0e=Vr(V0e,[["__scopeId","data-v-6e6c7df8"]]),G0e={"flex-1":"","ms-2":"","select-none":""},K0e=ft({__name:"FilterStatus",props:qc({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Eh(e,"modelValue");return(r,o)=>(oe(),me("label",ai({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Tc(s=>t.value=!t.value,["prevent"]))}),[Y("span",{class:lt([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),vt(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[pC,t.value]]),Y("span",G0e,qe(r.label),1)],16))}});function X0e(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Rc;function nh(){nh.init||(nh.init=!0,Rc=X0e()!==-1)}var Uu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){nh(),ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Rc&&this.$el.appendChild(e),e.data="about:blank",Rc||this.$el.appendChild(e)},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&&(!Rc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Y0e=uy();Is("data-v-b329ee4c");const Z0e={class:"resize-observer",tabindex:"-1"};Fs();const J0e=Y0e((e,t,r,o,s,c)=>(oe(),ot("div",Z0e)));Uu.render=J0e;Uu.__scopeId="data-v-b329ee4c";Uu.__file="src/components/ResizeObserver.vue";function Dc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dc=function(t){return typeof t}:Dc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dc(e)}function Q0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eye(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tye(e,t,r){return t&&eye(e.prototype,t),e}function A0(e){return nye(e)||rye(e)||iye(e)||oye()}function nye(e){if(Array.isArray(e))return rh(e)}function rye(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function iye(e,t){if(e){if(typeof e=="string")return rh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rh(e,t)}}function rh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function oye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
52
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sye(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function lye(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),y=1;y<p;y++)v[y-1]=arguments[y];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(A0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(A0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function O1(e,t){if(e===t)return!0;if(Dc(e)==="object"){for(var r in e)if(!O1(e[r],t[r]))return!1;return!0}return!1}var aye=function(){function e(t,r,o){Q0e(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return tye(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=sye(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=lye(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(y){return y.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),ln(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function R1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new aye(e,o,r);e._vue_visibilityState=s}}function cye(e,t,r){var o=t.value,s=t.oldValue;if(!O1(o,s)){var c=e._vue_visibilityState;if(!o){D1(e);return}c?c.createObserver(o,r):R1(e,{value:o},r)}}function D1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var uye={beforeMount:R1,updated:cye,unmounted:D1},fye={itemsLimit:1e3},dye=/(auto|scroll)/;function z1(e,t){return e.parentNode===null?t:z1(e.parentNode,t.concat([e]))}var ud=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},hye=function(t){return ud(t,"overflow")+ud(t,"overflow-y")+ud(t,"overflow-x")},pye=function(t){return dye.test(hye(t))};function M0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=z1(e.parentNode,[]),r=0;r<t.length;r+=1)if(pye(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function ih(e){"@babel/helpers - typeof";return ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ih(e)}var gye={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function vye(){return this.items.length&&ih(this.items[0])!=="object"}var oh=!1;if(typeof window<"u"){oh=!1;try{var mye=Object.defineProperty({},"passive",{get:function(){oh=!0}});window.addEventListener("test",null,mye)}catch{}}let yye=0;var cp={name:"RecycleScroller",components:{ResizeObserver:Uu},directives:{ObserveVisibility:uye},props:{...gye,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:vye,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=mh({id:yye++,index:t,used:!0,key:o,type:s}),f=gh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,y=this.$_views,b=this.$_unusedViews,x=this.pool,A=this.itemIndexByKey;let T,E,L,M,P;if(!p)T=E=M=P=L=0;else if(this.$_prerender)T=M=0,E=P=Math.min(this.prerender,h.length),L=null;else{const j=this.getScroll();if(t){let H=j.start-this.$_lastUpdateScrollPosition;if(H<0&&(H=-H),r===null&&H<c||H<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=j.start;const te=this.buffer;j.start-=te,j.end+=te;let Z=0;if(this.$refs.before&&(Z=this.$refs.before.scrollHeight,j.start-=Z),this.$refs.after){const H=this.$refs.after.scrollHeight;j.end+=H}if(r===null){let H,I=0,k=p-1,B=~~(p/2),U;do U=B,H=v[B].accumulator,H<j.start?I=B:B<p-1&&v[B+1].accumulator>j.start&&(k=B),B=~~((I+k)/2);while(B!==U);for(B<0&&(B=0),T=B,L=v[p-1].accumulator,E=B;E<p&&v[E].accumulator<j.end;E++);for(E===-1?E=h.length-1:(E++,E>p&&(E=p)),M=T;M<p&&Z+v[M].accumulator<j.start;M++);for(P=M;P<p&&Z+v[P].accumulator<j.end;P++);}else{T=~~(j.start/r*o);const H=T%o;T-=H,E=Math.ceil(j.end/r*o),M=Math.max(0,Math.floor((j.start-Z)/r*o)),P=Math.floor((j.end-Z)/r*o),T<0&&(T=0),E>p&&(E=p),M<0&&(M=0),P>p&&(P=p),L=Math.ceil(p/o)*r}}E-T>fye.itemsLimit&&this.itemsLimitError(),this.totalSize=L;let N;const q=T<=this.$_endIndex&&E>=this.$_startIndex;if(q)for(let j=0,te=x.length;j<te;j++)N=x[j],N.nr.used&&(e&&(N.nr.index=A[N.item[d]]),(N.nr.index==null||N.nr.index<T||N.nr.index>=E)&&this.unuseView(N));const W=q?null:new Map;let X,ie,ee;for(let j=T;j<E;j++){X=h[j];const te=d?X[d]:X;if(te==null)throw new Error(`Key is ${te} on item (keyField is '${d}')`);if(N=y.get(te),!r&&!v[j].size){N&&this.unuseView(N);continue}ie=X[f];let Z=b.get(ie),H=!1;if(!N)q?Z&&Z.length?N=Z.pop():N=this.addView(x,j,X,te,ie):(ee=W.get(ie)||0,(!Z||ee>=Z.length)&&(N=this.addView(x,j,X,te,ie),this.unuseView(N,!0),Z=b.get(ie)),N=Z[ee],W.set(ie,ee+1)),y.delete(N.nr.key),N.nr.used=!0,N.nr.index=j,N.nr.key=te,N.nr.type=ie,y.set(te,N),H=!0;else if(!N.nr.used&&(N.nr.used=!0,H=!0,Z)){const I=Z.indexOf(N);I!==-1&&Z.splice(I,1)}N.item=X,H&&(j===h.length-1&&this.$emit("scroll-end"),j===0&&this.$emit("scroll-start")),r===null?(N.position=v[j-1].accumulator,N.offset=0):(N.position=Math.floor(j/o)*r,N.offset=j%o*s)}return this.$_startIndex=T,this.$_endIndex=E,this.emitUpdate&&this.$emit("update",T,E,M,P),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:q}},getListenerTarget(){let e=M0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,oh?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=M0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const bye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},wye={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function xye(e,t,r,o,s,c){const f=Po("ResizeObserver"),d=Ur("observe-visibility");return vt((oe(),me("div",{class:lt(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(oe(),me("div",bye,[hn(e.$slots,"before")],512)):Ye("v-if",!0),(oe(),ot(xv(r.listTag),{ref:"wrapper",style:Kt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:lt(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:st(()=>[(oe(!0),me(ut,null,ui(s.pool,h=>(oe(),ot(xv(r.itemTag),ai({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},GS(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:st(()=>[hn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),hn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(oe(),me("div",wye,[hn(e.$slots,"after")],512)):Ye("v-if",!0),Pe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}cp.render=xye;cp.__file="src/components/RecycleScroller.vue";function _ye(e){const t=Ce(()=>Bd.value?!1:!et.onlyTests),r=Ce(()=>On.value===""),o=Be(On.value);bw(On,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;On.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;et.failed=!1,et.success=!1,et.skipped=!1,et.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,y,b){Rs.value&&(on.value.search=(h==null?void 0:h.trim())??"",on.value.failed=p,on.value.success=v,on.value.skipped=y,on.value.onlyTests=b)}return It(()=>[o.value,et.failed,et.success,et.skipped,et.onlyTests],([h,p,v,y,b])=>{d(h,p,v,y,b),Te.filterNodes()},{flush:"post"}),It(()=>Cr.value.length,h=>{h&&(on.value.expandAll=void 0)},{flush:"post"}),{initialized:Rs,filter:et,search:On,disableFilter:t,isFiltered:Rw,isFilteredByStatus:Bd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Iu,testsTotal:Kce,uiEntries:Hn}}const Sye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},kye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Cye=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Tye=["op"],Eye=Y("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1),Lye=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1),Aye={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Mye={"text-red5":""},Nye=Y("span",null,"/",-1),$ye={"text-yellow5":""},Pye={"text-green5":""},Oye=Y("span",null,"/",-1),Rye={class:"text-purple5:50"},Dye={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},zye=Y("div",{op30:""}," No matched test ",-1),Iye=["disabled"],Fye=["disabled"],Hye={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},qye=Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Bye=Y("div",{op30:""}," Loading... ",-1),Wye=[qye,Bye],Uye=ft({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Ce(()=>Hu.value.includeTaskLocation),s=Be(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:y,clearAll:b,clearSearch:x,clearFilter:A,filteredFiles:T,testsTotal:E,uiEntries:L}=_ye(s),M=Be("grid-cols-2"),P=Be("grid-col-span-2"),N=Be(),{width:q}=Vh();return It(()=>q.value*(dn.navigation/100),W=>{W<420?(M.value="grid-cols-2",P.value="grid-col-span-2"):(M.value="grid-cols-4",P.value="grid-col-span-4")}),(W,X)=>{const ie=gi,ee=K0e,j=j0e,te=A0e,Z=Ur("tooltip");return oe(),me("div",{ref_key:"testExplorerRef",ref:N,h:"full",flex:"~ col"},[Y("div",null,[Y("div",Sye,[hn(W.$slots,"header",{filteredFiles:z(p)||z(v)?z(T):void 0})]),Y("div",kye,[Cye,vt(Y("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":X[0]||(X[0]=H=>Pt(d)?d.value=H:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:z(d).length?"100":"50",onKeydown:[X[1]||(X[1]=Td(H=>z(x)(!1),["esc"])),X[2]||(X[2]=Td(H=>r("run",z(p)||z(v)?z(T):void 0),["enter"]))]},null,40,Tye),[[hC,z(d)]]),vt(Pe(ie,{disabled:z(y),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:X[3]||(X[3]=H=>z(x)(!0))},null,8,["disabled"]),[[Z,"Clear search",void 0,{bottom:!0}]])]),Y("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:lt(z(M))},[Y("div",{class:lt(z(P)),flex:"~ gap-2 items-center"},[Eye,Lye,vt(Pe(ie,{disabled:z(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:X[4]||(X[4]=H=>z(A)(!1))},null,8,["disabled"]),[[Z,"Clear Filter",void 0,{bottom:!0}]])],2),Pe(ee,{modelValue:z(f).failed,"onUpdate:modelValue":X[5]||(X[5]=H=>z(f).failed=H),label:"Fail"},null,8,["modelValue"]),Pe(ee,{modelValue:z(f).success,"onUpdate:modelValue":X[6]||(X[6]=H=>z(f).success=H),label:"Pass"},null,8,["modelValue"]),Pe(ee,{modelValue:z(f).skipped,"onUpdate:modelValue":X[7]||(X[7]=H=>z(f).skipped=H),label:"Skip"},null,8,["modelValue"]),Pe(ee,{modelValue:z(f).onlyTests,"onUpdate:modelValue":X[8]||(X[8]=H=>z(f).onlyTests=H),label:"Only Tests"},null,8,["modelValue"])],2)]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:X[12]||(X[12]=(...H)=>z(Em)&&z(Em)(...H))},[Pe(te,null,jS({default:st(()=>[(z(p)||z(v))&&z(L).length===0?(oe(),me(ut,{key:0},[z(c)?(oe(),me("div",Dye,[zye,Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:lt(z(y)?null:"hover:op100"),disabled:z(y),onClickPassive:X[9]||(X[9]=H=>z(x)(!0))}," Clear Search ",42,Iye),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:lt(z(h)?null:"hover:op100"),disabled:z(h),onClickPassive:X[10]||(X[10]=H=>z(A)(!0))}," Clear Filter ",42,Fye),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:X[11]||(X[11]=(...H)=>z(b)&&z(b)(...H))}," Clear All ",32)])):(oe(),me("div",Hye,Wye))],64)):(oe(),ot(z(cp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:z(L),buffer:100},{default:st(({item:H})=>[Pe(j,{class:lt(["h-28px m-0 p-0",z(eo)===H.id?"bg-active":""]),"task-id":H.id,expandable:H.expandable,type:H.type,current:z(eo)===H.id,indent:H.indent,name:H.name,typecheck:H.typecheck===!0,"project-name":H.projectName??"","project-name-color":H.projectNameColor??"",state:H.state,duration:H.duration,opened:H.expanded,"disable-task-location":!z(o),"on-item-click":W.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[z(c)?{name:"summary",fn:st(()=>[Y("div",Aye,[Y("span",Mye," FAIL ("+qe(z(E).failed)+") ",1),Nye,Y("span",$ye," RUNNING ("+qe(z(E).running)+") ",1),Y("span",Pye," PASS ("+qe(z(E).success)+") ",1),Oye,Y("span",Rye," SKIP ("+qe(z(f).onlyTests?z(E).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Vye=""+new URL("../favicon.svg",import.meta.url).href,jye=Y("img",{"w-6":"","h-6":"",src:Vye,alt:"Vitest logo"},null,-1),Gye=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Kye={class:"flex text-lg"},Xye=Y("div",{class:"i-carbon:folder-off ma"},null,-1),Yye=Y("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Y("div",null,"Coverage enabled but missing html reporter."),Y("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1),Zye=ft({__name:"Navigation",setup(e){function t(){return bt.rpc.updateSnapshot()}const r=Ce(()=>ya.value?"light":"dark");async function o(f){ps.value&&(nu.value=!0,await ln(),to.value&&(ru(!0),await ln())),f!=null&&f.length?await Yh(f):await Sue()}function s(){Te.collapseAllNodes()}function c(){Te.expandAllNodes()}return(f,d)=>{const h=gi,p=Uye,v=Ur("tooltip");return oe(),ot(p,{border:"r base","on-item-click":z(Tw),nested:!0,onRun:o},{header:st(({filteredFiles:y})=>[jye,Gye,Y("div",Kye,[vt(Pe(h,{title:"Collapse tests",disabled:!z(Rs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[Ui,!z(e0)],[v,"Collapse tests",void 0,{bottom:!0}]]),vt(Pe(h,{disabled:!z(Rs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[Ui,z(e0)],[v,"Expand tests",void 0,{bottom:!0}]]),vt(Pe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>z(ru)(!0))},null,512),[[Ui,z(Id)&&!z(ps)||!z(Ss)],[v,"Dashboard",void 0,{bottom:!0}]]),z(Id)&&!z(ps)?(oe(),ot(z(Pb),{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:st(()=>[Yye]),default:st(()=>[Xye]),_:1})):Ye("",!0),z(ps)?vt((oe(),ot(h,{key:1,disabled:z(nu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>z(wce)())},null,8,["disabled"])),[[Ui,!z(to)],[v,"Coverage",void 0,{bottom:!0}]]):Ye("",!0),z(Te).summary.failedSnapshot&&!z(Ir)?vt((oe(),ot(h,{key:2,icon:"i-carbon:result-old",disabled:!z(Te).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>z(Te).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),z(Ir)?Ye("",!0):vt((oe(),ot(h,{key:3,disabled:(y==null?void 0:y.length)===0,icon:"i-carbon:play",onClick:b=>o(y)},null,8,["disabled","onClick"])),[[v,y?y.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),vt(Pe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>z(Jue)())},null,512),[[v,`Toggle to ${z(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Jye={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Qye=ft({__name:"ProgressBar",setup(e){const{width:t}=Vh(),r=Ce(()=>Te.summary.files===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":yce.value?null:"in-progress"),o=Ce(()=>{const d=Te.summary.files;return d>0?t.value*Te.summary.filesSuccess/d:0}),s=Ce(()=>{const d=Te.summary.files;return d>0?t.value*Te.summary.filesFailed/d:0}),c=Ce(()=>Te.summary.files-Te.summary.filesFailed-Te.summary.filesSuccess),f=Ce(()=>{const d=Te.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(oe(),me("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:lt(z(r))},[Y("div",Jye,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:lt(z(r)),style:Kt(`width: ${z(s)}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:lt(z(r)),style:Kt(`left: ${z(s)}px; width: ${z(o)}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:lt(z(r)),style:Kt(`left: ${z(o)+z(s)}px; width: ${z(f)}px;`)},"   ",6)])],2))}}),ebe=Vr(Qye,[["__scopeId","data-v-38451300"]]),N0={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((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.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(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===t?o.max:o.min,s!==t&&(r+=o.min),o)),this.panes[t].size-=r,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:r-t.left,y:o-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(e),s),o);let f=[t,t+1],d=this.panes[f[0]]||null,h=this.panes[f[1]]||null;const p=d.max<100&&c>=d.max+r.prevPanesSize,v=h.max<100&&c<=100-(h.max+this.sumNextPanesSize(t+1));if(p||v){p?(d.size=d.max,h.size=Math.max(100-d.max-r.prevPanesSize-r.nextPanesSize,0)):(d.size=Math.max(100-h.max-r.prevPanesSize-this.sumNextPanesSize(t+1),0),h.size=h.max);return}if(this.pushOtherPanes){const y=this.doPushOtherPanes(r,c);if(!y)return;({sums:r,panesToResize:f}=y),d=this.panes[f[0]]||null,h=this.panes[f[1]]||null}d!==null&&(d.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,d.min),d.max)),h!==null&&(h.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,h.min),h.max))},doPushOtherPanes(e,t){const r=this.touch.activeSplitter,o=[r,r+1];return t<e.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,e.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,c)=>{c>o[0]&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,e.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c<o[1]&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),e.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,c)=>{c<this.panesCount-1&&c>=r+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:o}},sumPrevPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o<e?r.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o>e+1?r.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),r=e.classList.contains("splitpanes__splitter");!t&&!r&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,r=!1){const o=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let t=0;e.forEach(r=>{r.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,r,!0):t&&this.addSplitter(t,r),t++)})},requestUpdate({target:e,...t}){const r=this.indexedPanes[e._.uid];Object.entries(t).forEach(([o,s])=>r[o]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const r=parseFloat(e.minSize),o=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(o=>o.id===e._.uid),r=this.panes.splice(t,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:t}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),t>.1&&this.readjustSizes(t,r,o)},initialPanesSizing(){let e=100;const t=[],r=[];let o=0;this.panes.forEach(c=>{e-=c.size,c.size!==null&&o++,c.size>=c.max&&t.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;e>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(e/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(e,t,r))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let r=100/this.panesCount,o=0;const s=[],c=[];e&&e.givenSize!==null&&(r=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{e&&e.givenSize!==null&&e.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&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(e,t,r){let o;e>0?o=e/(this.panesCount-t.length):o=e/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(e>0&&!t.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.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(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,r)=>{t.ondblclick=e?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 pa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},tbe=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},nbe={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(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function rbe(e,t,r,o,s,c){return oe(),me("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=f=>c.onPaneClick(f,e._.uid)),style:Kt(e.style)},[hn(e.$slots,"default")],4)}const wc=tbe(nbe,[["render",rbe]]),ibe={"h-screen":"","w-screen":"",overflow:"hidden"},obe=ft({__name:"index",setup(e){const t=bce(),r=dc(y=>{p(),h(y)},0),o=dc(y=>{y.forEach((b,x)=>{br.value[x]=b.size}),d(y)},0),s=dc(y=>{y.forEach((b,x)=>{Mo.value[x]=b.size}),h(y),v()},0),c=dc(y=>{d(y),p()},0);function f(){const y=window.innerWidth,b=Math.min(y/3,300);br.value[0]=100*b/y,br.value[1]=100-br.value[0],d([{size:br.value[0]},{size:br.value[1]}])}function d(y){dn.navigation=y[0].size,dn.details.size=y[1].size}function h(y){dn.details.browser=y[0].size,dn.details.main=y[1].size}function p(){const y=document.querySelector("#tester-ui");y&&(y.style.pointerEvents="none")}function v(){const y=document.querySelector("#tester-ui");y&&(y.style.pointerEvents="")}return(y,b)=>{const x=ebe,A=Zye,T=C0e,E=bme,L=pme,M=Hue,P=Eue;return oe(),me(ut,null,[Pe(x),Y("div",ibe,[Pe(z(N0),{class:"pt-4px",onResized:z(o),onResize:z(c),onReady:f},{default:st(()=>[Pe(z(wc),{size:z(br)[0]},{default:st(()=>[Pe(A)]),_:1},8,["size"]),Pe(z(wc),{size:z(br)[1]},{default:st(()=>[z(Ro)?(oe(),ot(z(N0),{id:"details-splitpanes",key:"browser-detail",onResize:z(r),onResized:z(s)},{default:st(()=>[Pe(z(wc),{size:z(Mo)[0],"min-size":"10"},{default:st(()=>[b[0]||(Wc(-1),(b[0]=Pe(M)).cacheIndex=0,Wc(1),b[0])]),_:1},8,["size"]),Pe(z(wc),{size:z(Mo)[1]},{default:st(()=>[z(t)?(oe(),ot(T,{key:"summary"})):z(to)?(oe(),ot(E,{key:"coverage",src:z(Qm)},null,8,["src"])):(oe(),ot(L,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(oe(),ot(Mh,{key:"ui-detail"},{default:st(()=>[z(t)?(oe(),ot(T,{key:"summary"})):z(to)?(oe(),ot(E,{key:"coverage",src:z(Qm)},null,8,["src"])):(oe(),ot(L,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Pe(P)],64)}}}),sbe=[{name:"index",path:"/",component:obe,props:!0}],lbe={tooltip:EE};Ob.options.instantMove=!0;Ob.options.distance=10;function abe(){return AT({history:rT(),routes:sbe})}const cbe=[abe],up=Gy(CC);cbe.forEach(e=>{up.use(e())});Object.entries(lbe).forEach(([e,t])=>{up.directive(e,t)});up.mount("#app");