@unocss/inspector 0.15.4 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,34 @@
1
+ function Ws(r,n){const l=Object.create(null),s=r.split(",");for(let u=0;u<s.length;u++)l[s[u]]=!0;return n?u=>!!l[u.toLowerCase()]:u=>!!l[u]}const Hg="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",Bg=Ws(Hg),Wg="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",jg=Ws(Wg);function Kc(r){return!!r||r===""}function To(r){if(Be(r)){const n={};for(let l=0;l<r.length;l++){const s=r[l],u=yt(s)?Gg(s):To(s);if(u)for(const c in u)n[c]=u[c]}return n}else{if(yt(r))return r;if(bt(r))return r}}const Kg=/;(?![^(]*\))/g,Ug=/:(.+)/;function Gg(r){const n={};return r.split(Kg).forEach(l=>{if(l){const s=l.split(Ug);s.length>1&&(n[s[0].trim()]=s[1].trim())}}),n}function Po(r){let n="";if(yt(r))n=r;else if(Be(r))for(let l=0;l<r.length;l++){const s=Po(r[l]);s&&(n+=s+" ")}else if(bt(r))for(const l in r)r[l]&&(n+=l+" ");return n.trim()}function $g(r){if(!r)return null;let{class:n,style:l}=r;return n&&!yt(n)&&(r.class=Po(n)),l&&(r.style=To(l)),r}function Yg(r,n){if(r.length!==n.length)return!1;let l=!0;for(let s=0;l&&s<r.length;s++)l=fn(r[s],n[s]);return l}function fn(r,n){if(r===n)return!0;let l=$c(r),s=$c(n);if(l||s)return l&&s?r.getTime()===n.getTime():!1;if(l=Be(r),s=Be(n),l||s)return l&&s?Yg(r,n):!1;if(l=bt(r),s=bt(n),l||s){if(!l||!s)return!1;const u=Object.keys(r).length,c=Object.keys(n).length;if(u!==c)return!1;for(const d in r){const v=r.hasOwnProperty(d),p=n.hasOwnProperty(d);if(v&&!p||!v&&p||!fn(r[d],n[d]))return!1}}return String(r)===String(n)}function js(r,n){return r.findIndex(l=>fn(l,n))}const Xg=r=>r==null?"":Be(r)||bt(r)&&(r.toString===Yc||!Ve(r.toString))?JSON.stringify(r,Uc,2):String(r),Uc=(r,n)=>n&&n.__v_isRef?Uc(r,n.value):Si(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((l,[s,u])=>(l[`${s} =>`]=u,l),{})}:Hn(n)?{[`Set(${n.size})`]:[...n.values()]}:bt(n)&&!Be(n)&&!Xc(n)?String(n):n,st={},wi=[],Sr=()=>{},Vg=()=>!1,Jg=/^on[^a-z]/,ko=r=>Jg.test(r),Cl=r=>r.startsWith("onUpdate:"),mt=Object.assign,Gc=(r,n)=>{const l=r.indexOf(n);l>-1&&r.splice(l,1)},Zg=Object.prototype.hasOwnProperty,nt=(r,n)=>Zg.call(r,n),Be=Array.isArray,Si=r=>Ks(r)==="[object Map]",Hn=r=>Ks(r)==="[object Set]",$c=r=>r instanceof Date,Ve=r=>typeof r=="function",yt=r=>typeof r=="string",Tl=r=>typeof r=="symbol",bt=r=>r!==null&&typeof r=="object",Pl=r=>bt(r)&&Ve(r.then)&&Ve(r.catch),Yc=Object.prototype.toString,Ks=r=>Yc.call(r),Qg=r=>Ks(r).slice(8,-1),Xc=r=>Ks(r)==="[object Object]",kl=r=>yt(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,Eo=Ws(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Us=r=>{const n=Object.create(null);return l=>n[l]||(n[l]=r(l))},qg=/-(\w)/g,lr=Us(r=>r.replace(qg,(n,l)=>l?l.toUpperCase():"")),_g=/\B([A-Z])/g,Nr=Us(r=>r.replace(_g,"-$1").toLowerCase()),Oo=Us(r=>r.charAt(0).toUpperCase()+r.slice(1)),Mo=Us(r=>r?`on${Oo(r)}`:""),Ao=(r,n)=>!Object.is(r,n),Ci=(r,n)=>{for(let l=0;l<r.length;l++)r[l](n)},Gs=(r,n,l)=>{Object.defineProperty(r,n,{configurable:!0,enumerable:!1,value:l})},cn=r=>{const n=parseFloat(r);return isNaN(n)?r:n};let Vc;const em=()=>Vc||(Vc=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Ir;const $s=[];class El{constructor(n=!1){this.active=!0,this.effects=[],this.cleanups=[],!n&&Ir&&(this.parent=Ir,this.index=(Ir.scopes||(Ir.scopes=[])).push(this)-1)}run(n){if(this.active)try{return this.on(),n()}finally{this.off()}}on(){this.active&&($s.push(this),Ir=this)}off(){this.active&&($s.pop(),Ir=$s[$s.length-1])}stop(n){if(this.active){if(this.effects.forEach(l=>l.stop()),this.cleanups.forEach(l=>l()),this.scopes&&this.scopes.forEach(l=>l.stop(!0)),this.parent&&!n){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.active=!1}}}function tm(r){return new El(r)}function Jc(r,n){n=n||Ir,n&&n.active&&n.effects.push(r)}function Zc(){return Ir}function Qc(r){Ir&&Ir.cleanups.push(r)}const Ol=r=>{const n=new Set(r);return n.w=0,n.n=0,n},qc=r=>(r.w&dn)>0,_c=r=>(r.n&dn)>0,rm=({deps:r})=>{if(r.length)for(let n=0;n<r.length;n++)r[n].w|=dn},nm=r=>{const{deps:n}=r;if(n.length){let l=0;for(let s=0;s<n.length;s++){const u=n[s];qc(u)&&!_c(u)?u.delete(r):n[l++]=u,u.w&=~dn,u.n&=~dn}n.length=l}},Ml=new WeakMap;let Lo=0,dn=1;const Al=30,No=[];let Bn;const Wn=Symbol(""),Ll=Symbol("");class Io{constructor(n,l=null,s){this.fn=n,this.scheduler=l,this.active=!0,this.deps=[],Jc(this,s)}run(){if(!this.active)return this.fn();if(!No.includes(this))try{return No.push(Bn=this),sm(),dn=1<<++Lo,Lo<=Al?rm(this):ed(this),this.fn()}finally{Lo<=Al&&nm(this),dn=1<<--Lo,hn(),No.pop();const n=No.length;Bn=n>0?No[n-1]:void 0}}stop(){this.active&&(ed(this),this.onStop&&this.onStop(),this.active=!1)}}function ed(r){const{deps:n}=r;if(n.length){for(let l=0;l<n.length;l++)n[l].delete(r);n.length=0}}function im(r,n){r.effect&&(r=r.effect.fn);const l=new Io(r);n&&(mt(l,n),n.scope&&Jc(l,n.scope)),(!n||!n.lazy)&&l.run();const s=l.run.bind(l);return s.effect=l,s}function om(r){r.effect.stop()}let Ti=!0;const Nl=[];function jn(){Nl.push(Ti),Ti=!1}function sm(){Nl.push(Ti),Ti=!0}function hn(){const r=Nl.pop();Ti=r===void 0?!0:r}function ur(r,n,l){if(!td())return;let s=Ml.get(r);s||Ml.set(r,s=new Map);let u=s.get(l);u||s.set(l,u=Ol()),rd(u)}function td(){return Ti&&Bn!==void 0}function rd(r,n){let l=!1;Lo<=Al?_c(r)||(r.n|=dn,l=!qc(r)):l=!r.has(Bn),l&&(r.add(Bn),Bn.deps.push(r))}function Yr(r,n,l,s,u,c){const d=Ml.get(r);if(!d)return;let v=[];if(n==="clear")v=[...d.values()];else if(l==="length"&&Be(r))d.forEach((p,m)=>{(m==="length"||m>=s)&&v.push(p)});else switch(l!==void 0&&v.push(d.get(l)),n){case"add":Be(r)?kl(l)&&v.push(d.get("length")):(v.push(d.get(Wn)),Si(r)&&v.push(d.get(Ll)));break;case"delete":Be(r)||(v.push(d.get(Wn)),Si(r)&&v.push(d.get(Ll)));break;case"set":Si(r)&&v.push(d.get(Wn));break}if(v.length===1)v[0]&&Il(v[0]);else{const p=[];for(const m of v)m&&p.push(...m);Il(Ol(p))}}function Il(r,n){for(const l of Be(r)?r:[...r])(l!==Bn||l.allowRecurse)&&(l.scheduler?l.scheduler():l.run())}const am=Ws("__proto__,__v_isRef,__isVue"),nd=new Set(Object.getOwnPropertyNames(Symbol).map(r=>Symbol[r]).filter(Tl)),lm=Ys(),um=Ys(!1,!0),fm=Ys(!0),cm=Ys(!0,!0),id=dm();function dm(){const r={};return["includes","indexOf","lastIndexOf"].forEach(n=>{r[n]=function(...l){const s=_e(this);for(let c=0,d=this.length;c<d;c++)ur(s,"get",c+"");const u=s[n](...l);return u===-1||u===!1?s[n](...l.map(_e)):u}}),["push","pop","shift","unshift","splice"].forEach(n=>{r[n]=function(...l){jn();const s=_e(this)[n].apply(this,l);return hn(),s}}),r}function Ys(r=!1,n=!1){return function(s,u,c){if(u==="__v_isReactive")return!r;if(u==="__v_isReadonly")return r;if(u==="__v_raw"&&c===(r?n?vd:pd:n?hd:dd).get(s))return s;const d=Be(s);if(!r&&d&&nt(id,u))return Reflect.get(id,u,c);const v=Reflect.get(s,u,c);return(Tl(u)?nd.has(u):am(u))||(r||ur(s,"get",u),n)?v:Tt(v)?!d||!kl(u)?v.value:v:bt(v)?r?Fl(v):Pi(v):v}}const hm=od(),pm=od(!0);function od(r=!1){return function(l,s,u,c){let d=l[s];if(!r&&!ta(u)&&(u=_e(u),d=_e(d),!Be(l)&&Tt(d)&&!Tt(u)))return d.value=u,!0;const v=Be(l)&&kl(s)?Number(s)<l.length:nt(l,s),p=Reflect.set(l,s,u,c);return l===_e(c)&&(v?Ao(u,d)&&Yr(l,"set",s,u):Yr(l,"add",s,u)),p}}function vm(r,n){const l=nt(r,n);r[n];const s=Reflect.deleteProperty(r,n);return s&&l&&Yr(r,"delete",n,void 0),s}function gm(r,n){const l=Reflect.has(r,n);return(!Tl(n)||!nd.has(n))&&ur(r,"has",n),l}function mm(r){return ur(r,"iterate",Be(r)?"length":Wn),Reflect.ownKeys(r)}const sd={get:lm,set:hm,deleteProperty:vm,has:gm,ownKeys:mm},ad={get:fm,set(r,n){return!0},deleteProperty(r,n){return!0}},ym=mt({},sd,{get:um,set:pm}),bm=mt({},ad,{get:cm}),Rl=r=>r,Xs=r=>Reflect.getPrototypeOf(r);function Vs(r,n,l=!1,s=!1){r=r.__v_raw;const u=_e(r),c=_e(n);n!==c&&!l&&ur(u,"get",n),!l&&ur(u,"get",c);const{has:d}=Xs(u),v=s?Rl:l?Hl:Ro;if(d.call(u,n))return v(r.get(n));if(d.call(u,c))return v(r.get(c));r!==u&&r.get(n)}function Js(r,n=!1){const l=this.__v_raw,s=_e(l),u=_e(r);return r!==u&&!n&&ur(s,"has",r),!n&&ur(s,"has",u),r===u?l.has(r):l.has(r)||l.has(u)}function Zs(r,n=!1){return r=r.__v_raw,!n&&ur(_e(r),"iterate",Wn),Reflect.get(r,"size",r)}function ld(r){r=_e(r);const n=_e(this);return Xs(n).has.call(n,r)||(n.add(r),Yr(n,"add",r,r)),this}function ud(r,n){n=_e(n);const l=_e(this),{has:s,get:u}=Xs(l);let c=s.call(l,r);c||(r=_e(r),c=s.call(l,r));const d=u.call(l,r);return l.set(r,n),c?Ao(n,d)&&Yr(l,"set",r,n):Yr(l,"add",r,n),this}function fd(r){const n=_e(this),{has:l,get:s}=Xs(n);let u=l.call(n,r);u||(r=_e(r),u=l.call(n,r)),s&&s.call(n,r);const c=n.delete(r);return u&&Yr(n,"delete",r,void 0),c}function cd(){const r=_e(this),n=r.size!==0,l=r.clear();return n&&Yr(r,"clear",void 0,void 0),l}function Qs(r,n){return function(s,u){const c=this,d=c.__v_raw,v=_e(d),p=n?Rl:r?Hl:Ro;return!r&&ur(v,"iterate",Wn),d.forEach((m,b)=>s.call(u,p(m),p(b),c))}}function qs(r,n,l){return function(...s){const u=this.__v_raw,c=_e(u),d=Si(c),v=r==="entries"||r===Symbol.iterator&&d,p=r==="keys"&&d,m=u[r](...s),b=l?Rl:n?Hl:Ro;return!n&&ur(c,"iterate",p?Ll:Wn),{next(){const{value:S,done:T}=m.next();return T?{value:S,done:T}:{value:v?[b(S[0]),b(S[1])]:b(S),done:T}},[Symbol.iterator](){return this}}}}function pn(r){return function(...n){return r==="delete"?!1:this}}function xm(){const r={get(c){return Vs(this,c)},get size(){return Zs(this)},has:Js,add:ld,set:ud,delete:fd,clear:cd,forEach:Qs(!1,!1)},n={get(c){return Vs(this,c,!1,!0)},get size(){return Zs(this)},has:Js,add:ld,set:ud,delete:fd,clear:cd,forEach:Qs(!1,!0)},l={get(c){return Vs(this,c,!0)},get size(){return Zs(this,!0)},has(c){return Js.call(this,c,!0)},add:pn("add"),set:pn("set"),delete:pn("delete"),clear:pn("clear"),forEach:Qs(!0,!1)},s={get(c){return Vs(this,c,!0,!0)},get size(){return Zs(this,!0)},has(c){return Js.call(this,c,!0)},add:pn("add"),set:pn("set"),delete:pn("delete"),clear:pn("clear"),forEach:Qs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(c=>{r[c]=qs(c,!1,!1),l[c]=qs(c,!0,!1),n[c]=qs(c,!1,!0),s[c]=qs(c,!0,!0)}),[r,l,n,s]}const[wm,Sm,Cm,Tm]=xm();function _s(r,n){const l=n?r?Tm:Cm:r?Sm:wm;return(s,u,c)=>u==="__v_isReactive"?!r:u==="__v_isReadonly"?r:u==="__v_raw"?s:Reflect.get(nt(l,u)&&u in s?l:s,u,c)}const Pm={get:_s(!1,!1)},km={get:_s(!1,!0)},Em={get:_s(!0,!1)},Om={get:_s(!0,!0)},dd=new WeakMap,hd=new WeakMap,pd=new WeakMap,vd=new WeakMap;function Mm(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Am(r){return r.__v_skip||!Object.isExtensible(r)?0:Mm(Qg(r))}function Pi(r){return r&&r.__v_isReadonly?r:ea(r,!1,sd,Pm,dd)}function gd(r){return ea(r,!1,ym,km,hd)}function Fl(r){return ea(r,!0,ad,Em,pd)}function Lm(r){return ea(r,!0,bm,Om,vd)}function ea(r,n,l,s,u){if(!bt(r)||r.__v_raw&&!(n&&r.__v_isReactive))return r;const c=u.get(r);if(c)return c;const d=Am(r);if(d===0)return r;const v=new Proxy(r,d===2?s:l);return u.set(r,v),v}function Kn(r){return ta(r)?Kn(r.__v_raw):!!(r&&r.__v_isReactive)}function ta(r){return!!(r&&r.__v_isReadonly)}function Dl(r){return Kn(r)||ta(r)}function _e(r){const n=r&&r.__v_raw;return n?_e(n):r}function zl(r){return Gs(r,"__v_skip",!0),r}const Ro=r=>bt(r)?Pi(r):r,Hl=r=>bt(r)?Fl(r):r;function Bl(r){td()&&(r=_e(r),r.dep||(r.dep=Ol()),rd(r.dep))}function ra(r,n){r=_e(r),r.dep&&Il(r.dep)}function Tt(r){return Boolean(r&&r.__v_isRef===!0)}function Lt(r){return md(r,!1)}function Fo(r){return md(r,!0)}function md(r,n){return Tt(r)?r:new Nm(r,n)}class Nm{constructor(n,l){this._shallow=l,this.dep=void 0,this.__v_isRef=!0,this._rawValue=l?n:_e(n),this._value=l?n:Ro(n)}get value(){return Bl(this),this._value}set value(n){n=this._shallow?n:_e(n),Ao(n,this._rawValue)&&(this._rawValue=n,this._value=this._shallow?n:Ro(n),ra(this))}}function Im(r){ra(r)}function xt(r){return Tt(r)?r.value:r}const Rm={get:(r,n,l)=>xt(Reflect.get(r,n,l)),set:(r,n,l,s)=>{const u=r[n];return Tt(u)&&!Tt(l)?(u.value=l,!0):Reflect.set(r,n,l,s)}};function Wl(r){return Kn(r)?r:new Proxy(r,Rm)}class Fm{constructor(n){this.dep=void 0,this.__v_isRef=!0;const{get:l,set:s}=n(()=>Bl(this),()=>ra(this));this._get=l,this._set=s}get value(){return this._get()}set value(n){this._set(n)}}function Dm(r){return new Fm(r)}function zm(r){const n=Be(r)?new Array(r.length):{};for(const l in r)n[l]=yd(r,l);return n}class Hm{constructor(n,l){this._object=n,this._key=l,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(n){this._object[this._key]=n}}function yd(r,n){const l=r[n];return Tt(l)?l:new Hm(r,n)}class Bm{constructor(n,l,s){this._setter=l,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new Io(n,()=>{this._dirty||(this._dirty=!0,ra(this))}),this.__v_isReadonly=s}get value(){const n=_e(this);return Bl(n),n._dirty&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}function Vt(r,n){let l,s;const u=Ve(r);return u?(l=r,s=Sr):(l=r.get,s=r.set),new Bm(l,s,u||!s)}Promise.resolve();let ki,na=[];function bd(r,n){var l,s;ki=r,ki?(ki.enabled=!0,na.forEach(({event:u,args:c})=>ki.emit(u,...c)),na=[]):typeof window!="undefined"&&window.HTMLElement&&!((s=(l=window.navigator)===null||l===void 0?void 0:l.userAgent)===null||s===void 0?void 0:s.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(c=>{bd(c,n)}),setTimeout(()=>{ki||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,na=[])},3e3)):na=[]}function Wm(r,n,...l){const s=r.vnode.props||st;let u=l;const c=n.startsWith("update:"),d=c&&n.slice(7);if(d&&d in s){const b=`${d==="modelValue"?"model":d}Modifiers`,{number:S,trim:T}=s[b]||st;T?u=l.map(P=>P.trim()):S&&(u=l.map(cn))}let v,p=s[v=Mo(n)]||s[v=Mo(lr(n))];!p&&c&&(p=s[v=Mo(Nr(n))]),p&&dr(p,r,6,u);const m=s[v+"Once"];if(m){if(!r.emitted)r.emitted={};else if(r.emitted[v])return;r.emitted[v]=!0,dr(m,r,6,u)}}function xd(r,n,l=!1){const s=n.emitsCache,u=s.get(r);if(u!==void 0)return u;const c=r.emits;let d={},v=!1;if(!Ve(r)){const p=m=>{const b=xd(m,n,!0);b&&(v=!0,mt(d,b))};!l&&n.mixins.length&&n.mixins.forEach(p),r.extends&&p(r.extends),r.mixins&&r.mixins.forEach(p)}return!c&&!v?(s.set(r,null),null):(Be(c)?c.forEach(p=>d[p]=null):mt(d,c),s.set(r,d),d)}function jl(r,n){return!r||!ko(n)?!1:(n=n.slice(2).replace(/Once$/,""),nt(r,n[0].toLowerCase()+n.slice(1))||nt(r,Nr(n))||nt(r,n))}let fr=null,ia=null;function Do(r){const n=fr;return fr=r,ia=r&&r.type.__scopeId||null,n}function jm(r){ia=r}function Km(){ia=null}const Um=r=>Kl;function Kl(r,n=fr,l){if(!n||r._n)return r;const s=(...u)=>{s._d&&su(-1);const c=Do(n),d=r(...u);return Do(c),s._d&&su(1),d};return s._n=!0,s._c=!0,s._d=!0,s}function oa(r){const{type:n,vnode:l,proxy:s,withProxy:u,props:c,propsOptions:[d],slots:v,attrs:p,emit:m,render:b,renderCache:S,data:T,setupState:P,ctx:A,inheritAttrs:Y}=r;let D,W;const M=Do(r);try{if(l.shapeFlag&4){const B=u||s;D=cr(b.call(B,B,S,c,P,T,A)),W=p}else{const B=n;D=cr(B.length>1?B(c,{attrs:p,slots:v,emit:m}):B(c,null)),W=n.props?p:$m(p)}}catch(B){Go.length=0,Yn(B,r,1),D=ft(Zt)}let F=D;if(W&&Y!==!1){const B=Object.keys(W),{shapeFlag:_}=F;B.length&&_&(1|6)&&(d&&B.some(Cl)&&(W=Ym(W,d)),F=mn(F,W))}return l.dirs&&(F.dirs=F.dirs?F.dirs.concat(l.dirs):l.dirs),l.transition&&(F.transition=l.transition),D=F,Do(M),D}function Gm(r){let n;for(let l=0;l<r.length;l++){const s=r[l];if(gn(s)){if(s.type!==Zt||s.children==="v-if"){if(n)return;n=s}}else return}return n}const $m=r=>{let n;for(const l in r)(l==="class"||l==="style"||ko(l))&&((n||(n={}))[l]=r[l]);return n},Ym=(r,n)=>{const l={};for(const s in r)(!Cl(s)||!(s.slice(9)in n))&&(l[s]=r[s]);return l};function Xm(r,n,l){const{props:s,children:u,component:c}=r,{props:d,children:v,patchFlag:p}=n,m=c.emitsOptions;if(n.dirs||n.transition)return!0;if(l&&p>=0){if(p&1024)return!0;if(p&16)return s?wd(s,d,m):!!d;if(p&8){const b=n.dynamicProps;for(let S=0;S<b.length;S++){const T=b[S];if(d[T]!==s[T]&&!jl(m,T))return!0}}}else return(u||v)&&(!v||!v.$stable)?!0:s===d?!1:s?d?wd(s,d,m):!0:!!d;return!1}function wd(r,n,l){const s=Object.keys(n);if(s.length!==Object.keys(r).length)return!0;for(let u=0;u<s.length;u++){const c=s[u];if(n[c]!==r[c]&&!jl(l,c))return!0}return!1}function Ul({vnode:r,parent:n},l){for(;n&&n.subTree===r;)(r=n.vnode).el=l,n=n.parent}const Vm=r=>r.__isSuspense,Jm={name:"Suspense",__isSuspense:!0,process(r,n,l,s,u,c,d,v,p,m){r==null?Qm(n,l,s,u,c,d,v,p,m):qm(r,n,l,s,u,d,v,p,m)},hydrate:_m,create:Gl,normalize:ey},Zm=Jm;function zo(r,n){const l=r.props&&r.props[n];Ve(l)&&l()}function Qm(r,n,l,s,u,c,d,v,p){const{p:m,o:{createElement:b}}=p,S=b("div"),T=r.suspense=Gl(r,u,s,n,S,l,c,d,v,p);m(null,T.pendingBranch=r.ssContent,S,null,s,T,c,d),T.deps>0?(zo(r,"onPending"),zo(r,"onFallback"),m(null,r.ssFallback,n,l,s,null,c,d),Ei(T,r.ssFallback)):T.resolve()}function qm(r,n,l,s,u,c,d,v,{p,um:m,o:{createElement:b}}){const S=n.suspense=r.suspense;S.vnode=n,n.el=r.el;const T=n.ssContent,P=n.ssFallback,{activeBranch:A,pendingBranch:Y,isInFallback:D,isHydrating:W}=S;if(Y)S.pendingBranch=T,Dr(T,Y)?(p(Y,T,S.hiddenContainer,null,u,S,c,d,v),S.deps<=0?S.resolve():D&&(p(A,P,l,s,u,null,c,d,v),Ei(S,P))):(S.pendingId++,W?(S.isHydrating=!1,S.activeBranch=Y):m(Y,u,S),S.deps=0,S.effects.length=0,S.hiddenContainer=b("div"),D?(p(null,T,S.hiddenContainer,null,u,S,c,d,v),S.deps<=0?S.resolve():(p(A,P,l,s,u,null,c,d,v),Ei(S,P))):A&&Dr(T,A)?(p(A,T,l,s,u,S,c,d,v),S.resolve(!0)):(p(null,T,S.hiddenContainer,null,u,S,c,d,v),S.deps<=0&&S.resolve()));else if(A&&Dr(T,A))p(A,T,l,s,u,S,c,d,v),Ei(S,T);else if(zo(n,"onPending"),S.pendingBranch=T,S.pendingId++,p(null,T,S.hiddenContainer,null,u,S,c,d,v),S.deps<=0)S.resolve();else{const{timeout:M,pendingId:F}=S;M>0?setTimeout(()=>{S.pendingId===F&&S.fallback(P)},M):M===0&&S.fallback(P)}}function Gl(r,n,l,s,u,c,d,v,p,m,b=!1){const{p:S,m:T,um:P,n:A,o:{parentNode:Y,remove:D}}=m,W=cn(r.props&&r.props.timeout),M={vnode:r,parent:n,parentComponent:l,isSVG:d,container:s,hiddenContainer:u,anchor:c,deps:0,pendingId:0,timeout:typeof W=="number"?W:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:b,isUnmounted:!1,effects:[],resolve(F=!1){const{vnode:B,activeBranch:_,pendingBranch:ee,pendingId:V,effects:J,parentComponent:te,container:ie}=M;if(M.isHydrating)M.isHydrating=!1;else if(!F){const k=_&&ee.transition&&ee.transition.mode==="out-in";k&&(_.transition.afterLeave=()=>{V===M.pendingId&&T(ee,ie,E,0)});let{anchor:E}=M;_&&(E=A(_),P(_,te,M,!0)),k||T(ee,ie,E,0)}Ei(M,ee),M.pendingBranch=null,M.isInFallback=!1;let Q=M.parent,q=!1;for(;Q;){if(Q.pendingBranch){Q.effects.push(...J),q=!0;break}Q=Q.parent}q||xu(J),M.effects=[],zo(B,"onResolve")},fallback(F){if(!M.pendingBranch)return;const{vnode:B,activeBranch:_,parentComponent:ee,container:V,isSVG:J}=M;zo(B,"onFallback");const te=A(_),ie=()=>{!M.isInFallback||(S(null,F,V,te,ee,null,J,v,p),Ei(M,F))},Q=F.transition&&F.transition.mode==="out-in";Q&&(_.transition.afterLeave=ie),M.isInFallback=!0,P(_,ee,null,!0),Q||ie()},move(F,B,_){M.activeBranch&&T(M.activeBranch,F,B,_),M.container=F},next(){return M.activeBranch&&A(M.activeBranch)},registerDep(F,B){const _=!!M.pendingBranch;_&&M.deps++;const ee=F.vnode.el;F.asyncDep.catch(V=>{Yn(V,F,0)}).then(V=>{if(F.isUnmounted||M.isUnmounted||M.pendingId!==F.suspenseId)return;F.asyncResolved=!0;const{vnode:J}=F;hu(F,V,!1),ee&&(J.el=ee);const te=!ee&&F.subTree.el;B(F,J,Y(ee||F.subTree.el),ee?null:A(F.subTree),M,d,p),te&&D(te),Ul(F,J.el),_&&--M.deps==0&&M.resolve()})},unmount(F,B){M.isUnmounted=!0,M.activeBranch&&P(M.activeBranch,l,F,B),M.pendingBranch&&P(M.pendingBranch,l,F,B)}};return M}function _m(r,n,l,s,u,c,d,v,p){const m=n.suspense=Gl(n,s,l,r.parentNode,document.createElement("div"),null,u,c,d,v,!0),b=p(r,m.pendingBranch=n.ssContent,l,m,c,d);return m.deps===0&&m.resolve(),b}function ey(r){const{shapeFlag:n,children:l}=r,s=n&32;r.ssContent=Sd(s?l.default:l),r.ssFallback=s?Sd(l.fallback):ft(Zt)}function Sd(r){let n;if(Ve(r)){const l=Li&&r._c;l&&(r._d=!1,va()),r=r(),l&&(r._d=!0,n=Fr,th())}return Be(r)&&(r=Gm(r)),r=cr(r),n&&!r.dynamicChildren&&(r.dynamicChildren=n.filter(l=>l!==r)),r}function Cd(r,n){n&&n.pendingBranch?Be(r)?n.effects.push(...r):n.effects.push(r):xu(r)}function Ei(r,n){r.activeBranch=n;const{vnode:l,parentComponent:s}=r,u=l.el=n.el;s&&s.subTree===l&&(s.vnode.el=u,Ul(s,u))}function Ho(r,n){if(Nt){let l=Nt.provides;const s=Nt.parent&&Nt.parent.provides;s===l&&(l=Nt.provides=Object.create(s)),l[r]=n}}function Cr(r,n,l=!1){const s=Nt||fr;if(s){const u=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(u&&r in u)return u[r];if(arguments.length>1)return l&&Ve(n)?n.call(s.proxy):n}}function $l(){const r={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mi(()=>{r.isMounted=!0}),ua(()=>{r.isUnmounting=!0}),r}const vr=[Function,Array],ty={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:vr,onEnter:vr,onAfterEnter:vr,onEnterCancelled:vr,onBeforeLeave:vr,onLeave:vr,onAfterLeave:vr,onLeaveCancelled:vr,onBeforeAppear:vr,onAppear:vr,onAfterAppear:vr,onAppearCancelled:vr},setup(r,{slots:n}){const l=zr(),s=$l();let u;return()=>{const c=n.default&&sa(n.default(),!0);if(!c||!c.length)return;const d=_e(r),{mode:v}=d,p=c[0];if(s.isLeaving)return Xl(p);const m=Pd(p);if(!m)return Xl(p);const b=Oi(m,d,s,l);Un(m,b);const S=l.subTree,T=S&&Pd(S);let P=!1;const{getTransitionKey:A}=m.type;if(A){const Y=A();u===void 0?u=Y:Y!==u&&(u=Y,P=!0)}if(T&&T.type!==Zt&&(!Dr(m,T)||P)){const Y=Oi(T,d,s,l);if(Un(T,Y),v==="out-in")return s.isLeaving=!0,Y.afterLeave=()=>{s.isLeaving=!1,l.update()},Xl(p);v==="in-out"&&m.type!==Zt&&(Y.delayLeave=(D,W,M)=>{const F=Td(s,T);F[String(T.key)]=T,D._leaveCb=()=>{W(),D._leaveCb=void 0,delete b.delayedLeave},b.delayedLeave=M})}return p}}},Yl=ty;function Td(r,n){const{leavingVNodes:l}=r;let s=l.get(n.type);return s||(s=Object.create(null),l.set(n.type,s)),s}function Oi(r,n,l,s){const{appear:u,mode:c,persisted:d=!1,onBeforeEnter:v,onEnter:p,onAfterEnter:m,onEnterCancelled:b,onBeforeLeave:S,onLeave:T,onAfterLeave:P,onLeaveCancelled:A,onBeforeAppear:Y,onAppear:D,onAfterAppear:W,onAppearCancelled:M}=n,F=String(r.key),B=Td(l,r),_=(V,J)=>{V&&dr(V,s,9,J)},ee={mode:c,persisted:d,beforeEnter(V){let J=v;if(!l.isMounted)if(u)J=Y||v;else return;V._leaveCb&&V._leaveCb(!0);const te=B[F];te&&Dr(r,te)&&te.el._leaveCb&&te.el._leaveCb(),_(J,[V])},enter(V){let J=p,te=m,ie=b;if(!l.isMounted)if(u)J=D||p,te=W||m,ie=M||b;else return;let Q=!1;const q=V._enterCb=k=>{Q||(Q=!0,k?_(ie,[V]):_(te,[V]),ee.delayedLeave&&ee.delayedLeave(),V._enterCb=void 0)};J?(J(V,q),J.length<=1&&q()):q()},leave(V,J){const te=String(r.key);if(V._enterCb&&V._enterCb(!0),l.isUnmounting)return J();_(S,[V]);let ie=!1;const Q=V._leaveCb=q=>{ie||(ie=!0,J(),q?_(A,[V]):_(P,[V]),V._leaveCb=void 0,B[te]===r&&delete B[te])};B[te]=r,T?(T(V,Q),T.length<=1&&Q()):Q()},clone(V){return Oi(V,n,l,s)}};return ee}function Xl(r){if(jo(r))return r=mn(r),r.children=null,r}function Pd(r){return jo(r)?r.children?r.children[0]:void 0:r}function Un(r,n){r.shapeFlag&6&&r.component?Un(r.component.subTree,n):r.shapeFlag&128?(r.ssContent.transition=n.clone(r.ssContent),r.ssFallback.transition=n.clone(r.ssFallback)):r.transition=n}function sa(r,n=!1){let l=[],s=0;for(let u=0;u<r.length;u++){const c=r[u];c.type===Ht?(c.patchFlag&128&&s++,l=l.concat(sa(c.children,n))):(n||c.type!==Zt)&&l.push(c)}if(s>1)for(let u=0;u<l.length;u++)l[u].patchFlag=-2;return l}function Bo(r){return Ve(r)?{setup:r,name:r.name}:r}const Wo=r=>!!r.type.__asyncLoader;function ry(r){Ve(r)&&(r={loader:r});const{loader:n,loadingComponent:l,errorComponent:s,delay:u=200,timeout:c,suspensible:d=!0,onError:v}=r;let p=null,m,b=0;const S=()=>(b++,p=null,T()),T=()=>{let P;return p||(P=p=n().catch(A=>{if(A=A instanceof Error?A:new Error(String(A)),v)return new Promise((Y,D)=>{v(A,()=>Y(S()),()=>D(A),b+1)});throw A}).then(A=>P!==p&&p?p:(A&&(A.__esModule||A[Symbol.toStringTag]==="Module")&&(A=A.default),m=A,A)))};return Bo({name:"AsyncComponentWrapper",__asyncLoader:T,get __asyncResolved(){return m},setup(){const P=Nt;if(m)return()=>Vl(m,P);const A=M=>{p=null,Yn(M,P,13,!s)};if(d&&P.suspense||$o)return T().then(M=>()=>Vl(M,P)).catch(M=>(A(M),()=>s?ft(s,{error:M}):null));const Y=Lt(!1),D=Lt(),W=Lt(!!u);return u&&setTimeout(()=>{W.value=!1},u),c!=null&&setTimeout(()=>{if(!Y.value&&!D.value){const M=new Error(`Async component timed out after ${c}ms.`);A(M),D.value=M}},c),T().then(()=>{Y.value=!0,P.parent&&jo(P.parent.vnode)&&bu(P.parent.update)}).catch(M=>{A(M),D.value=M}),()=>{if(Y.value&&m)return Vl(m,P);if(D.value&&s)return ft(s,{error:D.value});if(l&&!W.value)return ft(l)}}})}function Vl(r,{vnode:{ref:n,props:l,children:s}}){const u=ft(r,l,s);return u.ref=n,u}const jo=r=>r.type.__isKeepAlive,ny={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(r,{slots:n}){const l=zr(),s=l.ctx;if(!s.renderer)return n.default;const u=new Map,c=new Set;let d=null;const v=l.suspense,{renderer:{p,m,um:b,o:{createElement:S}}}=s,T=S("div");s.activate=(M,F,B,_,ee)=>{const V=M.component;m(M,F,B,0,v),p(V.vnode,M,F,B,V,v,_,M.slotScopeIds,ee),Rt(()=>{V.isDeactivated=!1,V.a&&Ci(V.a);const J=M.props&&M.props.onVnodeMounted;J&&tr(J,V.parent,M)},v)},s.deactivate=M=>{const F=M.component;m(M,T,null,1,v),Rt(()=>{F.da&&Ci(F.da);const B=M.props&&M.props.onVnodeUnmounted;B&&tr(B,F.parent,M),F.isDeactivated=!0},v)};function P(M){Jl(M),b(M,l,v)}function A(M){u.forEach((F,B)=>{const _=xa(F.type);_&&(!M||!M(_))&&Y(B)})}function Y(M){const F=u.get(M);!d||F.type!==d.type?P(F):d&&Jl(d),u.delete(M),c.delete(M)}rr(()=>[r.include,r.exclude],([M,F])=>{M&&A(B=>Ko(M,B)),F&&A(B=>!Ko(F,B))},{flush:"post",deep:!0});let D=null;const W=()=>{D!=null&&u.set(D,Zl(l.subTree))};return Mi(W),la(W),ua(()=>{u.forEach(M=>{const{subTree:F,suspense:B}=l,_=Zl(F);if(M.type===_.type){Jl(_);const ee=_.component.da;ee&&Rt(ee,B);return}P(M)})}),()=>{if(D=null,!n.default)return null;const M=n.default(),F=M[0];if(M.length>1)return d=null,M;if(!gn(F)||!(F.shapeFlag&4)&&!(F.shapeFlag&128))return d=null,F;let B=Zl(F);const _=B.type,ee=xa(Wo(B)?B.type.__asyncResolved||{}:_),{include:V,exclude:J,max:te}=r;if(V&&(!ee||!Ko(V,ee))||J&&ee&&Ko(J,ee))return d=B,F;const ie=B.key==null?_:B.key,Q=u.get(ie);return B.el&&(B=mn(B),F.shapeFlag&128&&(F.ssContent=B)),D=ie,Q?(B.el=Q.el,B.component=Q.component,B.transition&&Un(B,B.transition),B.shapeFlag|=512,c.delete(ie),c.add(ie)):(c.add(ie),te&&c.size>parseInt(te,10)&&Y(c.values().next().value)),B.shapeFlag|=256,d=B,F}}},iy=ny;function Ko(r,n){return Be(r)?r.some(l=>Ko(l,n)):yt(r)?r.split(",").indexOf(n)>-1:r.test?r.test(n):!1}function kd(r,n){Od(r,"a",n)}function Ed(r,n){Od(r,"da",n)}function Od(r,n,l=Nt){const s=r.__wdc||(r.__wdc=()=>{let u=l;for(;u;){if(u.isDeactivated)return;u=u.parent}return r()});if(aa(n,s,l),l){let u=l.parent;for(;u&&u.parent;)jo(u.parent.vnode)&&oy(s,n,l,u),u=u.parent}}function oy(r,n,l,s){const u=aa(n,r,s,!0);fa(()=>{Gc(s[n],u)},l)}function Jl(r){let n=r.shapeFlag;n&256&&(n-=256),n&512&&(n-=512),r.shapeFlag=n}function Zl(r){return r.shapeFlag&128?r.ssContent:r}function aa(r,n,l=Nt,s=!1){if(l){const u=l[r]||(l[r]=[]),c=n.__weh||(n.__weh=(...d)=>{if(l.isUnmounted)return;jn(),bn(l);const v=dr(n,l,r,d);return xn(),hn(),v});return s?u.unshift(c):u.push(c),c}}const Xr=r=>(n,l=Nt)=>(!$o||r==="sp")&&aa(r,n,l),Md=Xr("bm"),Mi=Xr("m"),Ad=Xr("bu"),la=Xr("u"),ua=Xr("bum"),fa=Xr("um"),Ld=Xr("sp"),Nd=Xr("rtg"),Id=Xr("rtc");function Rd(r,n=Nt){aa("ec",r,n)}let Ql=!0;function sy(r){const n=zd(r),l=r.proxy,s=r.ctx;Ql=!1,n.beforeCreate&&Fd(n.beforeCreate,r,"bc");const{data:u,computed:c,methods:d,watch:v,provide:p,inject:m,created:b,beforeMount:S,mounted:T,beforeUpdate:P,updated:A,activated:Y,deactivated:D,beforeDestroy:W,beforeUnmount:M,destroyed:F,unmounted:B,render:_,renderTracked:ee,renderTriggered:V,errorCaptured:J,serverPrefetch:te,expose:ie,inheritAttrs:Q,components:q,directives:k,filters:E}=n;if(m&&ay(m,s,null,r.appContext.config.unwrapInjectedRef),d)for(const z in d){const G=d[z];Ve(G)&&(s[z]=G.bind(l))}if(u){const z=u.call(l,l);bt(z)&&(r.data=Pi(z))}if(Ql=!0,c)for(const z in c){const G=c[z],ue=Ve(G)?G.bind(l,l):Ve(G.get)?G.get.bind(l,l):Sr,he=!Ve(G)&&Ve(G.set)?G.set.bind(l):Sr,je=Vt({get:ue,set:he});Object.defineProperty(s,z,{enumerable:!0,configurable:!0,get:()=>je.value,set:We=>je.value=We})}if(v)for(const z in v)Dd(v[z],s,l,z);if(p){const z=Ve(p)?p.call(l):p;Reflect.ownKeys(z).forEach(G=>{Ho(G,z[G])})}b&&Fd(b,r,"c");function H(z,G){Be(G)?G.forEach(ue=>z(ue.bind(l))):G&&z(G.bind(l))}if(H(Md,S),H(Mi,T),H(Ad,P),H(la,A),H(kd,Y),H(Ed,D),H(Rd,J),H(Id,ee),H(Nd,V),H(ua,M),H(fa,B),H(Ld,te),Be(ie))if(ie.length){const z=r.exposed||(r.exposed={});ie.forEach(G=>{Object.defineProperty(z,G,{get:()=>l[G],set:ue=>l[G]=ue})})}else r.exposed||(r.exposed={});_&&r.render===Sr&&(r.render=_),Q!=null&&(r.inheritAttrs=Q),q&&(r.components=q),k&&(r.directives=k)}function ay(r,n,l=Sr,s=!1){Be(r)&&(r=ql(r));for(const u in r){const c=r[u];let d;bt(c)?"default"in c?d=Cr(c.from||u,c.default,!0):d=Cr(c.from||u):d=Cr(c),Tt(d)&&s?Object.defineProperty(n,u,{enumerable:!0,configurable:!0,get:()=>d.value,set:v=>d.value=v}):n[u]=d}}function Fd(r,n,l){dr(Be(r)?r.map(s=>s.bind(n.proxy)):r.bind(n.proxy),n,l)}function Dd(r,n,l,s){const u=s.includes(".")?Sh(l,s):()=>l[s];if(yt(r)){const c=n[r];Ve(c)&&rr(u,c)}else if(Ve(r))rr(u,r.bind(l));else if(bt(r))if(Be(r))r.forEach(c=>Dd(c,n,l,s));else{const c=Ve(r.handler)?r.handler.bind(l):n[r.handler];Ve(c)&&rr(u,c,r)}}function zd(r){const n=r.type,{mixins:l,extends:s}=n,{mixins:u,optionsCache:c,config:{optionMergeStrategies:d}}=r.appContext,v=c.get(n);let p;return v?p=v:!u.length&&!l&&!s?p=n:(p={},u.length&&u.forEach(m=>ca(p,m,d,!0)),ca(p,n,d)),c.set(n,p),p}function ca(r,n,l,s=!1){const{mixins:u,extends:c}=n;c&&ca(r,c,l,!0),u&&u.forEach(d=>ca(r,d,l,!0));for(const d in n)if(!(s&&d==="expose")){const v=ly[d]||l&&l[d];r[d]=v?v(r[d],n[d]):n[d]}return r}const ly={data:Hd,props:Gn,emits:Gn,methods:Gn,computed:Gn,beforeCreate:Jt,created:Jt,beforeMount:Jt,mounted:Jt,beforeUpdate:Jt,updated:Jt,beforeDestroy:Jt,beforeUnmount:Jt,destroyed:Jt,unmounted:Jt,activated:Jt,deactivated:Jt,errorCaptured:Jt,serverPrefetch:Jt,components:Gn,directives:Gn,watch:fy,provide:Hd,inject:uy};function Hd(r,n){return n?r?function(){return mt(Ve(r)?r.call(this,this):r,Ve(n)?n.call(this,this):n)}:n:r}function uy(r,n){return Gn(ql(r),ql(n))}function ql(r){if(Be(r)){const n={};for(let l=0;l<r.length;l++)n[r[l]]=r[l];return n}return r}function Jt(r,n){return r?[...new Set([].concat(r,n))]:n}function Gn(r,n){return r?mt(mt(Object.create(null),r),n):n}function fy(r,n){if(!r)return n;if(!n)return r;const l=mt(Object.create(null),r);for(const s in n)l[s]=Jt(r[s],n[s]);return l}function cy(r,n,l,s=!1){const u={},c={};Gs(c,ga,1),r.propsDefaults=Object.create(null),Bd(r,n,u,c);for(const d in r.propsOptions[0])d in u||(u[d]=void 0);l?r.props=s?u:gd(u):r.type.props?r.props=u:r.props=c,r.attrs=c}function dy(r,n,l,s){const{props:u,attrs:c,vnode:{patchFlag:d}}=r,v=_e(u),[p]=r.propsOptions;let m=!1;if((s||d>0)&&!(d&16)){if(d&8){const b=r.vnode.dynamicProps;for(let S=0;S<b.length;S++){let T=b[S];const P=n[T];if(p)if(nt(c,T))P!==c[T]&&(c[T]=P,m=!0);else{const A=lr(T);u[A]=_l(p,v,A,P,r,!1)}else P!==c[T]&&(c[T]=P,m=!0)}}}else{Bd(r,n,u,c)&&(m=!0);let b;for(const S in v)(!n||!nt(n,S)&&((b=Nr(S))===S||!nt(n,b)))&&(p?l&&(l[S]!==void 0||l[b]!==void 0)&&(u[S]=_l(p,v,S,void 0,r,!0)):delete u[S]);if(c!==v)for(const S in c)(!n||!nt(n,S))&&(delete c[S],m=!0)}m&&Yr(r,"set","$attrs")}function Bd(r,n,l,s){const[u,c]=r.propsOptions;let d=!1,v;if(n)for(let p in n){if(Eo(p))continue;const m=n[p];let b;u&&nt(u,b=lr(p))?!c||!c.includes(b)?l[b]=m:(v||(v={}))[b]=m:jl(r.emitsOptions,p)||(!(p in s)||m!==s[p])&&(s[p]=m,d=!0)}if(c){const p=_e(l),m=v||st;for(let b=0;b<c.length;b++){const S=c[b];l[S]=_l(u,p,S,m[S],r,!nt(m,S))}}return d}function _l(r,n,l,s,u,c){const d=r[l];if(d!=null){const v=nt(d,"default");if(v&&s===void 0){const p=d.default;if(d.type!==Function&&Ve(p)){const{propsDefaults:m}=u;l in m?s=m[l]:(bn(u),s=m[l]=p.call(null,n),xn())}else s=p}d[0]&&(c&&!v?s=!1:d[1]&&(s===""||s===Nr(l))&&(s=!0))}return s}function Wd(r,n,l=!1){const s=n.propsCache,u=s.get(r);if(u)return u;const c=r.props,d={},v=[];let p=!1;if(!Ve(r)){const b=S=>{p=!0;const[T,P]=Wd(S,n,!0);mt(d,T),P&&v.push(...P)};!l&&n.mixins.length&&n.mixins.forEach(b),r.extends&&b(r.extends),r.mixins&&r.mixins.forEach(b)}if(!c&&!p)return s.set(r,wi),wi;if(Be(c))for(let b=0;b<c.length;b++){const S=lr(c[b]);jd(S)&&(d[S]=st)}else if(c)for(const b in c){const S=lr(b);if(jd(S)){const T=c[b],P=d[S]=Be(T)||Ve(T)?{type:T}:T;if(P){const A=Gd(Boolean,P.type),Y=Gd(String,P.type);P[0]=A>-1,P[1]=Y<0||A<Y,(A>-1||nt(P,"default"))&&v.push(S)}}}const m=[d,v];return s.set(r,m),m}function jd(r){return r[0]!=="$"}function Kd(r){const n=r&&r.toString().match(/^\s*function (\w+)/);return n?n[1]:r===null?"null":""}function Ud(r,n){return Kd(r)===Kd(n)}function Gd(r,n){return Be(n)?n.findIndex(l=>Ud(l,r)):Ve(n)&&Ud(n,r)?0:-1}const $d=r=>r[0]==="_"||r==="$stable",eu=r=>Be(r)?r.map(cr):[cr(r)],hy=(r,n,l)=>{const s=Kl((...u)=>eu(n(...u)),l);return s._c=!1,s},Yd=(r,n,l)=>{const s=r._ctx;for(const u in r){if($d(u))continue;const c=r[u];if(Ve(c))n[u]=hy(u,c,s);else if(c!=null){const d=eu(c);n[u]=()=>d}}},Xd=(r,n)=>{const l=eu(n);r.slots.default=()=>l},py=(r,n)=>{if(r.vnode.shapeFlag&32){const l=n._;l?(r.slots=_e(n),Gs(n,"_",l)):Yd(n,r.slots={})}else r.slots={},n&&Xd(r,n);Gs(r.slots,ga,1)},vy=(r,n,l)=>{const{vnode:s,slots:u}=r;let c=!0,d=st;if(s.shapeFlag&32){const v=n._;v?l&&v===1?c=!1:(mt(u,n),!l&&v===1&&delete u._):(c=!n.$stable,Yd(n,u)),d=n}else n&&(Xd(r,n),d={default:1});if(c)for(const v in u)!$d(v)&&!(v in d)&&delete u[v]};function gy(r,n){const l=fr;if(l===null)return r;const s=l.proxy,u=r.dirs||(r.dirs=[]);for(let c=0;c<n.length;c++){let[d,v,p,m=st]=n[c];Ve(d)&&(d={mounted:d,updated:d}),d.deep&&Xn(v),u.push({dir:d,instance:s,value:v,oldValue:void 0,arg:p,modifiers:m})}return r}function Rr(r,n,l,s){const u=r.dirs,c=n&&n.dirs;for(let d=0;d<u.length;d++){const v=u[d];c&&(v.oldValue=c[d].value);let p=v.dir[s];p&&(jn(),dr(p,l,8,[r.el,v,r,n]),hn())}}function Vd(){return{app:null,config:{isNativeTag:Vg,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 my=0;function yy(r,n){return function(s,u=null){u!=null&&!bt(u)&&(u=null);const c=Vd(),d=new Set;let v=!1;const p=c.app={_uid:my++,_component:s,_props:u,_container:null,_context:c,_instance:null,version:kh,get config(){return c.config},set config(m){},use(m,...b){return d.has(m)||(m&&Ve(m.install)?(d.add(m),m.install(p,...b)):Ve(m)&&(d.add(m),m(p,...b))),p},mixin(m){return c.mixins.includes(m)||c.mixins.push(m),p},component(m,b){return b?(c.components[m]=b,p):c.components[m]},directive(m,b){return b?(c.directives[m]=b,p):c.directives[m]},mount(m,b,S){if(!v){const T=ft(s,u);return T.appContext=c,b&&n?n(T,m):r(T,m,S),v=!0,p._container=m,m.__vue_app__=p,vu(T.component)||T.component.proxy}},unmount(){v&&(r(null,p._container),delete p._container.__vue_app__)},provide(m,b){return c.provides[m]=b,p}};return p}}let vn=!1;const da=r=>/svg/.test(r.namespaceURI)&&r.tagName!=="foreignObject",tu=r=>r.nodeType===8;function by(r){const{mt:n,p:l,o:{patchProp:s,nextSibling:u,parentNode:c,remove:d,insert:v,createComment:p}}=r,m=(D,W)=>{if(!W.hasChildNodes()){l(null,D,W),Sa();return}vn=!1,b(W.firstChild,D,null,null,null),Sa(),vn&&console.error("Hydration completed but contains mismatches.")},b=(D,W,M,F,B,_=!1)=>{const ee=tu(D)&&D.data==="[",V=()=>A(D,W,M,F,B,ee),{type:J,ref:te,shapeFlag:ie}=W,Q=D.nodeType;W.el=D;let q=null;switch(J){case Ai:Q!==3?q=V():(D.data!==W.children&&(vn=!0,D.data=W.children),q=u(D));break;case Zt:Q!==8||ee?q=V():q=u(D);break;case $n:if(Q!==1)q=V();else{q=D;const k=!W.children.length;for(let E=0;E<W.staticCount;E++)k&&(W.children+=q.outerHTML),E===W.staticCount-1&&(W.anchor=q),q=u(q);return q}break;case Ht:ee?q=P(D,W,M,F,B,_):q=V();break;default:if(ie&1)Q!==1||W.type.toLowerCase()!==D.tagName.toLowerCase()?q=V():q=S(D,W,M,F,B,_);else if(ie&6){W.slotScopeIds=B;const k=c(D);if(n(W,k,null,M,F,da(k),_),q=ee?Y(D):u(D),Wo(W)){let E;ee?(E=ft(Ht),E.anchor=q?q.previousSibling:k.lastChild):E=D.nodeType===3?uu(""):ft("div"),E.el=D,W.component.subTree=E}}else ie&64?Q!==8?q=V():q=W.type.hydrate(D,W,M,F,B,_,r,T):ie&128&&(q=W.type.hydrate(D,W,M,F,da(c(D)),B,_,r,b))}return te!=null&&ha(te,null,F,W),q},S=(D,W,M,F,B,_)=>{_=_||!!W.dynamicChildren;const{type:ee,props:V,patchFlag:J,shapeFlag:te,dirs:ie}=W,Q=ee==="input"&&ie||ee==="option";if(Q||J!==-1){if(ie&&Rr(W,null,M,"created"),V)if(Q||!_||J&(16|32))for(const k in V)(Q&&k.endsWith("value")||ko(k)&&!Eo(k))&&s(D,k,null,V[k],!1,void 0,M);else V.onClick&&s(D,"onClick",null,V.onClick,!1,void 0,M);let q;if((q=V&&V.onVnodeBeforeMount)&&tr(q,M,W),ie&&Rr(W,null,M,"beforeMount"),((q=V&&V.onVnodeMounted)||ie)&&Cd(()=>{q&&tr(q,M,W),ie&&Rr(W,null,M,"mounted")},F),te&16&&!(V&&(V.innerHTML||V.textContent))){let k=T(D.firstChild,W,D,M,F,B,_);for(;k;){vn=!0;const E=k;k=k.nextSibling,d(E)}}else te&8&&D.textContent!==W.children&&(vn=!0,D.textContent=W.children)}return D.nextSibling},T=(D,W,M,F,B,_,ee)=>{ee=ee||!!W.dynamicChildren;const V=W.children,J=V.length;for(let te=0;te<J;te++){const ie=ee?V[te]:V[te]=cr(V[te]);if(D)D=b(D,ie,F,B,_,ee);else{if(ie.type===Ai&&!ie.children)continue;vn=!0,l(null,ie,M,null,F,B,da(M),_)}}return D},P=(D,W,M,F,B,_)=>{const{slotScopeIds:ee}=W;ee&&(B=B?B.concat(ee):ee);const V=c(D),J=T(u(D),W,V,M,F,B,_);return J&&tu(J)&&J.data==="]"?u(W.anchor=J):(vn=!0,v(W.anchor=p("]"),V,J),J)},A=(D,W,M,F,B,_)=>{if(vn=!0,W.el=null,_){const J=Y(D);for(;;){const te=u(D);if(te&&te!==J)d(te);else break}}const ee=u(D),V=c(D);return d(D),l(null,W,V,ee,M,F,da(V),B),ee},Y=D=>{let W=0;for(;D;)if(D=u(D),D&&tu(D)&&(D.data==="["&&W++,D.data==="]")){if(W===0)return u(D);W--}return D};return[m,b]}const Rt=Cd;function Jd(r){return Qd(r)}function Zd(r){return Qd(r,by)}function Qd(r,n){const l=em();l.__VUE__=!0;const{insert:s,remove:u,patchProp:c,createElement:d,createText:v,createComment:p,setText:m,setElementText:b,parentNode:S,nextSibling:T,setScopeId:P=Sr,cloneNode:A,insertStaticContent:Y}=r,D=(R,j,X,oe=null,le=null,ge=null,Ce=!1,we=null,de=!!j.dynamicChildren)=>{if(R===j)return;R&&!Dr(R,j)&&(oe=be(R),Ke(R,le,ge,!0),R=null),j.patchFlag===-2&&(de=!1,j.dynamicChildren=null);const{type:L,ref:Z,shapeFlag:U}=j;switch(L){case Ai:W(R,j,X,oe);break;case Zt:M(R,j,X,oe);break;case $n:R==null&&F(j,X,oe,Ce);break;case Ht:k(R,j,X,oe,le,ge,Ce,we,de);break;default:U&1?ee(R,j,X,oe,le,ge,Ce,we,de):U&6?E(R,j,X,oe,le,ge,Ce,we,de):(U&64||U&128)&&L.process(R,j,X,oe,le,ge,Ce,we,de,Ee)}Z!=null&&le&&ha(Z,R&&R.ref,ge,j||R,!j)},W=(R,j,X,oe)=>{if(R==null)s(j.el=v(j.children),X,oe);else{const le=j.el=R.el;j.children!==R.children&&m(le,j.children)}},M=(R,j,X,oe)=>{R==null?s(j.el=p(j.children||""),X,oe):j.el=R.el},F=(R,j,X,oe)=>{[R.el,R.anchor]=Y(R.children,j,X,oe)},B=({el:R,anchor:j},X,oe)=>{let le;for(;R&&R!==j;)le=T(R),s(R,X,oe),R=le;s(j,X,oe)},_=({el:R,anchor:j})=>{let X;for(;R&&R!==j;)X=T(R),u(R),R=X;u(j)},ee=(R,j,X,oe,le,ge,Ce,we,de)=>{Ce=Ce||j.type==="svg",R==null?V(j,X,oe,le,ge,Ce,we,de):ie(R,j,le,ge,Ce,we,de)},V=(R,j,X,oe,le,ge,Ce,we)=>{let de,L;const{type:Z,props:U,shapeFlag:Se,transition:Re,patchFlag:$e,dirs:it}=R;if(R.el&&A!==void 0&&$e===-1)de=R.el=A(R.el);else{if(de=R.el=d(R.type,ge,U&&U.is,U),Se&8?b(de,R.children):Se&16&&te(R.children,de,null,oe,le,ge&&Z!=="foreignObject",Ce,we),it&&Rr(R,null,oe,"created"),U){for(const Ue in U)Ue!=="value"&&!Eo(Ue)&&c(de,Ue,null,U[Ue],ge,R.children,oe,le,ae);"value"in U&&c(de,"value",null,U.value),(L=U.onVnodeBeforeMount)&&tr(L,oe,R)}J(de,R,R.scopeId,Ce,oe)}it&&Rr(R,null,oe,"beforeMount");const Je=(!le||le&&!le.pendingBranch)&&Re&&!Re.persisted;Je&&Re.beforeEnter(de),s(de,j,X),((L=U&&U.onVnodeMounted)||Je||it)&&Rt(()=>{L&&tr(L,oe,R),Je&&Re.enter(de),it&&Rr(R,null,oe,"mounted")},le)},J=(R,j,X,oe,le)=>{if(X&&P(R,X),oe)for(let ge=0;ge<oe.length;ge++)P(R,oe[ge]);if(le){let ge=le.subTree;if(j===ge){const Ce=le.vnode;J(R,Ce,Ce.scopeId,Ce.slotScopeIds,le.parent)}}},te=(R,j,X,oe,le,ge,Ce,we,de=0)=>{for(let L=de;L<R.length;L++){const Z=R[L]=we?yn(R[L]):cr(R[L]);D(null,Z,j,X,oe,le,ge,Ce,we)}},ie=(R,j,X,oe,le,ge,Ce)=>{const we=j.el=R.el;let{patchFlag:de,dynamicChildren:L,dirs:Z}=j;de|=R.patchFlag&16;const U=R.props||st,Se=j.props||st;let Re;(Re=Se.onVnodeBeforeUpdate)&&tr(Re,X,j,R),Z&&Rr(j,R,X,"beforeUpdate");const $e=le&&j.type!=="foreignObject";if(L?Q(R.dynamicChildren,L,we,X,oe,$e,ge):Ce||ue(R,j,we,null,X,oe,$e,ge,!1),de>0){if(de&16)q(we,j,U,Se,X,oe,le);else if(de&2&&U.class!==Se.class&&c(we,"class",null,Se.class,le),de&4&&c(we,"style",U.style,Se.style,le),de&8){const it=j.dynamicProps;for(let Je=0;Je<it.length;Je++){const Ue=it[Je],vt=U[Ue],ct=Se[Ue];(ct!==vt||Ue==="value")&&c(we,Ue,vt,ct,le,R.children,X,oe,ae)}}de&1&&R.children!==j.children&&b(we,j.children)}else!Ce&&L==null&&q(we,j,U,Se,X,oe,le);((Re=Se.onVnodeUpdated)||Z)&&Rt(()=>{Re&&tr(Re,X,j,R),Z&&Rr(j,R,X,"updated")},oe)},Q=(R,j,X,oe,le,ge,Ce)=>{for(let we=0;we<j.length;we++){const de=R[we],L=j[we],Z=de.el&&(de.type===Ht||!Dr(de,L)||de.shapeFlag&(6|64))?S(de.el):X;D(de,L,Z,null,oe,le,ge,Ce,!0)}},q=(R,j,X,oe,le,ge,Ce)=>{if(X!==oe){for(const we in oe){if(Eo(we))continue;const de=oe[we],L=X[we];de!==L&&we!=="value"&&c(R,we,L,de,Ce,j.children,le,ge,ae)}if(X!==st)for(const we in X)!Eo(we)&&!(we in oe)&&c(R,we,X[we],null,Ce,j.children,le,ge,ae);"value"in oe&&c(R,"value",X.value,oe.value)}},k=(R,j,X,oe,le,ge,Ce,we,de)=>{const L=j.el=R?R.el:v(""),Z=j.anchor=R?R.anchor:v("");let{patchFlag:U,dynamicChildren:Se,slotScopeIds:Re}=j;Re&&(we=we?we.concat(Re):Re),R==null?(s(L,X,oe),s(Z,X,oe),te(j.children,X,Z,le,ge,Ce,we,de)):U>0&&U&64&&Se&&R.dynamicChildren?(Q(R.dynamicChildren,Se,X,le,ge,Ce,we),(j.key!=null||le&&j===le.subTree)&&ru(R,j,!0)):ue(R,j,X,Z,le,ge,Ce,we,de)},E=(R,j,X,oe,le,ge,Ce,we,de)=>{j.slotScopeIds=we,R==null?j.shapeFlag&512?le.ctx.activate(j,X,oe,Ce,de):x(j,X,oe,le,ge,Ce,de):H(R,j,de)},x=(R,j,X,oe,le,ge,Ce)=>{const we=R.component=ah(R,oe,le);if(jo(R)&&(we.ctx.renderer=Ee),uh(we),we.asyncDep){if(le&&le.registerDep(we,z),!R.el){const de=we.subTree=ft(Zt);M(null,de,j,X)}return}z(we,R,j,X,le,ge,Ce)},H=(R,j,X)=>{const oe=j.component=R.component;if(Xm(R,j,X))if(oe.asyncDep&&!oe.asyncResolved){G(oe,j,X);return}else oe.next=j,e0(oe.update),oe.update();else j.component=R.component,j.el=R.el,oe.vnode=j},z=(R,j,X,oe,le,ge,Ce)=>{const we=()=>{if(R.isMounted){let{next:Z,bu:U,u:Se,parent:Re,vnode:$e}=R,it=Z,Je;de.allowRecurse=!1,Z?(Z.el=$e.el,G(R,Z,Ce)):Z=$e,U&&Ci(U),(Je=Z.props&&Z.props.onVnodeBeforeUpdate)&&tr(Je,Re,Z,$e),de.allowRecurse=!0;const Ue=oa(R),vt=R.subTree;R.subTree=Ue,D(vt,Ue,S(vt.el),be(vt),R,le,ge),Z.el=Ue.el,it===null&&Ul(R,Ue.el),Se&&Rt(Se,le),(Je=Z.props&&Z.props.onVnodeUpdated)&&Rt(()=>tr(Je,Re,Z,$e),le)}else{let Z;const{el:U,props:Se}=j,{bm:Re,m:$e,parent:it}=R,Je=Wo(j);if(de.allowRecurse=!1,Re&&Ci(Re),!Je&&(Z=Se&&Se.onVnodeBeforeMount)&&tr(Z,it,j),de.allowRecurse=!0,U&&Le){const Ue=()=>{R.subTree=oa(R),Le(U,R.subTree,R,le,null)};Je?j.type.__asyncLoader().then(()=>!R.isUnmounted&&Ue()):Ue()}else{const Ue=R.subTree=oa(R);D(null,Ue,X,oe,R,le,ge),j.el=Ue.el}if($e&&Rt($e,le),!Je&&(Z=Se&&Se.onVnodeMounted)){const Ue=j;Rt(()=>tr(Z,it,Ue),le)}j.shapeFlag&256&&R.a&&Rt(R.a,le),R.isMounted=!0,j=X=oe=null}},de=new Io(we,()=>bu(R.update),R.scope),L=R.update=de.run.bind(de);L.id=R.uid,de.allowRecurse=L.allowRecurse=!0,L()},G=(R,j,X)=>{j.component=R;const oe=R.vnode.props;R.vnode=j,R.next=null,dy(R,j.props,oe,X),vy(R,j.children,X),jn(),wu(void 0,R.update),hn()},ue=(R,j,X,oe,le,ge,Ce,we,de=!1)=>{const L=R&&R.children,Z=R?R.shapeFlag:0,U=j.children,{patchFlag:Se,shapeFlag:Re}=j;if(Se>0){if(Se&128){je(L,U,X,oe,le,ge,Ce,we,de);return}else if(Se&256){he(L,U,X,oe,le,ge,Ce,we,de);return}}Re&8?(Z&16&&ae(L,le,ge),U!==L&&b(X,U)):Z&16?Re&16?je(L,U,X,oe,le,ge,Ce,we,de):ae(L,le,ge,!0):(Z&8&&b(X,""),Re&16&&te(U,X,oe,le,ge,Ce,we,de))},he=(R,j,X,oe,le,ge,Ce,we,de)=>{R=R||wi,j=j||wi;const L=R.length,Z=j.length,U=Math.min(L,Z);let Se;for(Se=0;Se<U;Se++){const Re=j[Se]=de?yn(j[Se]):cr(j[Se]);D(R[Se],Re,X,null,le,ge,Ce,we,de)}L>Z?ae(R,le,ge,!0,!1,U):te(j,X,oe,le,ge,Ce,we,de,U)},je=(R,j,X,oe,le,ge,Ce,we,de)=>{let L=0;const Z=j.length;let U=R.length-1,Se=Z-1;for(;L<=U&&L<=Se;){const Re=R[L],$e=j[L]=de?yn(j[L]):cr(j[L]);if(Dr(Re,$e))D(Re,$e,X,null,le,ge,Ce,we,de);else break;L++}for(;L<=U&&L<=Se;){const Re=R[U],$e=j[Se]=de?yn(j[Se]):cr(j[Se]);if(Dr(Re,$e))D(Re,$e,X,null,le,ge,Ce,we,de);else break;U--,Se--}if(L>U){if(L<=Se){const Re=Se+1,$e=Re<Z?j[Re].el:oe;for(;L<=Se;)D(null,j[L]=de?yn(j[L]):cr(j[L]),X,$e,le,ge,Ce,we,de),L++}}else if(L>Se)for(;L<=U;)Ke(R[L],le,ge,!0),L++;else{const Re=L,$e=L,it=new Map;for(L=$e;L<=Se;L++){const ke=j[L]=de?yn(j[L]):cr(j[L]);ke.key!=null&&it.set(ke.key,L)}let Je,Ue=0;const vt=Se-$e+1;let ct=!1,Bt=0;const Fe=new Array(vt);for(L=0;L<vt;L++)Fe[L]=0;for(L=Re;L<=U;L++){const ke=R[L];if(Ue>=vt){Ke(ke,le,ge,!0);continue}let ve;if(ke.key!=null)ve=it.get(ke.key);else for(Je=$e;Je<=Se;Je++)if(Fe[Je-$e]===0&&Dr(ke,j[Je])){ve=Je;break}ve===void 0?Ke(ke,le,ge,!0):(Fe[ve-$e]=L+1,ve>=Bt?Bt=ve:ct=!0,D(ke,j[ve],X,null,le,ge,Ce,we,de),Ue++)}const Ye=ct?xy(Fe):wi;for(Je=Ye.length-1,L=vt-1;L>=0;L--){const ke=$e+L,ve=j[ke],ze=ke+1<Z?j[ke+1].el:oe;Fe[L]===0?D(null,ve,X,ze,le,ge,Ce,we,de):ct&&(Je<0||L!==Ye[Je]?We(ve,X,ze,2):Je--)}}},We=(R,j,X,oe,le=null)=>{const{el:ge,type:Ce,transition:we,children:de,shapeFlag:L}=R;if(L&6){We(R.component.subTree,j,X,oe);return}if(L&128){R.suspense.move(j,X,oe);return}if(L&64){Ce.move(R,j,X,Ee);return}if(Ce===Ht){s(ge,j,X);for(let U=0;U<de.length;U++)We(de[U],j,X,oe);s(R.anchor,j,X);return}if(Ce===$n){B(R,j,X);return}if(oe!==2&&L&1&&we)if(oe===0)we.beforeEnter(ge),s(ge,j,X),Rt(()=>we.enter(ge),le);else{const{leave:U,delayLeave:Se,afterLeave:Re}=we,$e=()=>s(ge,j,X),it=()=>{U(ge,()=>{$e(),Re&&Re()})};Se?Se(ge,$e,it):it()}else s(ge,j,X)},Ke=(R,j,X,oe=!1,le=!1)=>{const{type:ge,props:Ce,ref:we,children:de,dynamicChildren:L,shapeFlag:Z,patchFlag:U,dirs:Se}=R;if(we!=null&&ha(we,null,X,R,!0),Z&256){j.ctx.deactivate(R);return}const Re=Z&1&&Se,$e=!Wo(R);let it;if($e&&(it=Ce&&Ce.onVnodeBeforeUnmount)&&tr(it,j,R),Z&6)se(R.component,X,oe);else{if(Z&128){R.suspense.unmount(X,oe);return}Re&&Rr(R,null,j,"beforeUnmount"),Z&64?R.type.remove(R,j,X,le,Ee,oe):L&&(ge!==Ht||U>0&&U&64)?ae(L,j,X,!1,!0):(ge===Ht&&U&(128|256)||!le&&Z&16)&&ae(de,j,X),oe&&Xe(R)}($e&&(it=Ce&&Ce.onVnodeUnmounted)||Re)&&Rt(()=>{it&&tr(it,j,R),Re&&Rr(R,null,j,"unmounted")},X)},Xe=R=>{const{type:j,el:X,anchor:oe,transition:le}=R;if(j===Ht){ne(X,oe);return}if(j===$n){_(R);return}const ge=()=>{u(X),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(R.shapeFlag&1&&le&&!le.persisted){const{leave:Ce,delayLeave:we}=le,de=()=>Ce(X,ge);we?we(R.el,ge,de):de()}else ge()},ne=(R,j)=>{let X;for(;R!==j;)X=T(R),u(R),R=X;u(j)},se=(R,j,X)=>{const{bum:oe,scope:le,update:ge,subTree:Ce,um:we}=R;oe&&Ci(oe),le.stop(),ge&&(ge.active=!1,Ke(Ce,R,j,X)),we&&Rt(we,j),Rt(()=>{R.isUnmounted=!0},j),j&&j.pendingBranch&&!j.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===j.pendingId&&(j.deps--,j.deps===0&&j.resolve())},ae=(R,j,X,oe=!1,le=!1,ge=0)=>{for(let Ce=ge;Ce<R.length;Ce++)Ke(R[Ce],j,X,oe,le)},be=R=>R.shapeFlag&6?be(R.component.subTree):R.shapeFlag&128?R.suspense.next():T(R.anchor||R.el),Ie=(R,j,X)=>{R==null?j._vnode&&Ke(j._vnode,null,null,!0):D(j._vnode||null,R,j,null,null,null,X),Sa(),j._vnode=R},Ee={p:D,um:Ke,m:We,r:Xe,mt:x,mc:te,pc:ue,pbc:Q,n:be,o:r};let me,Le;return n&&([me,Le]=n(Ee)),{render:Ie,hydrate:me,createApp:yy(Ie,me)}}function ha(r,n,l,s,u=!1){if(Be(r)){r.forEach((T,P)=>ha(T,n&&(Be(n)?n[P]:n),l,s,u));return}if(Wo(s)&&!u)return;const c=s.shapeFlag&4?vu(s.component)||s.component.proxy:s.el,d=u?null:c,{i:v,r:p}=r,m=n&&n.r,b=v.refs===st?v.refs={}:v.refs,S=v.setupState;if(m!=null&&m!==p&&(yt(m)?(b[m]=null,nt(S,m)&&(S[m]=null)):Tt(m)&&(m.value=null)),yt(p)){const T=()=>{b[p]=d,nt(S,p)&&(S[p]=d)};d?(T.id=-1,Rt(T,l)):T()}else if(Tt(p)){const T=()=>{p.value=d};d?(T.id=-1,Rt(T,l)):T()}else Ve(p)&&Hr(p,v,12,[d,b])}function tr(r,n,l,s=null){dr(r,n,7,[l,s])}function ru(r,n,l=!1){const s=r.children,u=n.children;if(Be(s)&&Be(u))for(let c=0;c<s.length;c++){const d=s[c];let v=u[c];v.shapeFlag&1&&!v.dynamicChildren&&((v.patchFlag<=0||v.patchFlag===32)&&(v=u[c]=yn(u[c]),v.el=d.el),l||ru(d,v))}}function xy(r){const n=r.slice(),l=[0];let s,u,c,d,v;const p=r.length;for(s=0;s<p;s++){const m=r[s];if(m!==0){if(u=l[l.length-1],r[u]<m){n[s]=u,l.push(s);continue}for(c=0,d=l.length-1;c<d;)v=c+d>>1,r[l[v]]<m?c=v+1:d=v;m<r[l[c]]&&(c>0&&(n[s]=l[c-1]),l[c]=s)}}for(c=l.length,d=l[c-1];c-- >0;)l[c]=d,d=n[d];return l}const wy=r=>r.__isTeleport,Uo=r=>r&&(r.disabled||r.disabled===""),qd=r=>typeof SVGElement!="undefined"&&r instanceof SVGElement,nu=(r,n)=>{const l=r&&r.to;return yt(l)?n?n(l):null:l},Sy={__isTeleport:!0,process(r,n,l,s,u,c,d,v,p,m){const{mc:b,pc:S,pbc:T,o:{insert:P,querySelector:A,createText:Y,createComment:D}}=m,W=Uo(n.props);let{shapeFlag:M,children:F,dynamicChildren:B}=n;if(r==null){const _=n.el=Y(""),ee=n.anchor=Y("");P(_,l,s),P(ee,l,s);const V=n.target=nu(n.props,A),J=n.targetAnchor=Y("");V&&(P(J,V),d=d||qd(V));const te=(ie,Q)=>{M&16&&b(F,ie,Q,u,c,d,v,p)};W?te(l,ee):V&&te(V,J)}else{n.el=r.el;const _=n.anchor=r.anchor,ee=n.target=r.target,V=n.targetAnchor=r.targetAnchor,J=Uo(r.props),te=J?l:ee,ie=J?_:V;if(d=d||qd(ee),B?(T(r.dynamicChildren,B,te,u,c,d,v),ru(r,n,!0)):p||S(r,n,te,ie,u,c,d,v,!1),W)J||pa(n,l,_,m,1);else if((n.props&&n.props.to)!==(r.props&&r.props.to)){const Q=n.target=nu(n.props,A);Q&&pa(n,Q,null,m,0)}else J&&pa(n,ee,V,m,1)}},remove(r,n,l,s,{um:u,o:{remove:c}},d){const{shapeFlag:v,children:p,anchor:m,targetAnchor:b,target:S,props:T}=r;if(S&&c(b),(d||!Uo(T))&&(c(m),v&16))for(let P=0;P<p.length;P++){const A=p[P];u(A,n,l,!0,!!A.dynamicChildren)}},move:pa,hydrate:Cy};function pa(r,n,l,{o:{insert:s},m:u},c=2){c===0&&s(r.targetAnchor,n,l);const{el:d,anchor:v,shapeFlag:p,children:m,props:b}=r,S=c===2;if(S&&s(d,n,l),(!S||Uo(b))&&p&16)for(let T=0;T<m.length;T++)u(m[T],n,l,2);S&&s(v,n,l)}function Cy(r,n,l,s,u,c,{o:{nextSibling:d,parentNode:v,querySelector:p}},m){const b=n.target=nu(n.props,p);if(b){const S=b._lpa||b.firstChild;n.shapeFlag&16&&(Uo(n.props)?(n.anchor=m(d(r),n,v(r),l,s,u,c),n.targetAnchor=S):(n.anchor=d(r),n.targetAnchor=m(S,n,b,l,s,u,c)),b._lpa=n.targetAnchor&&d(n.targetAnchor))}return n.anchor&&d(n.anchor)}const Ty=Sy,iu="components",Py="directives";function ky(r,n){return ou(iu,r,!0,n)||r}const _d=Symbol();function Ey(r){return yt(r)?ou(iu,r,!1)||r:r||_d}function Oy(r){return ou(Py,r)}function ou(r,n,l=!0,s=!1){const u=fr||Nt;if(u){const c=u.type;if(r===iu){const v=xa(c);if(v&&(v===n||v===lr(n)||v===Oo(lr(n))))return c}const d=eh(u[r]||c[r],n)||eh(u.appContext[r],n);return!d&&s?c:d}}function eh(r,n){return r&&(r[n]||r[lr(n)]||r[Oo(lr(n))])}const Ht=Symbol(void 0),Ai=Symbol(void 0),Zt=Symbol(void 0),$n=Symbol(void 0),Go=[];let Fr=null;function va(r=!1){Go.push(Fr=r?null:[])}function th(){Go.pop(),Fr=Go[Go.length-1]||null}let Li=1;function su(r){Li+=r}function rh(r){return r.dynamicChildren=Li>0?Fr||wi:null,th(),Li>0&&Fr&&Fr.push(r),r}function My(r,n,l,s,u,c){return rh(lu(r,n,l,s,u,c,!0))}function au(r,n,l,s,u){return rh(ft(r,n,l,s,u,!0))}function gn(r){return r?r.__v_isVNode===!0:!1}function Dr(r,n){return r.type===n.type&&r.key===n.key}function Ay(r){}const ga="__vInternal",nh=({key:r})=>r!=null?r:null,ma=({ref:r})=>r!=null?yt(r)||Tt(r)||Ve(r)?{i:fr,r}:r:null;function lu(r,n=null,l=null,s=0,u=null,c=r===Ht?0:1,d=!1,v=!1){const p={__v_isVNode:!0,__v_skip:!0,type:r,props:n,key:n&&nh(n),ref:n&&ma(n),scopeId:ia,slotScopeIds:null,children:l,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:s,dynamicProps:u,dynamicChildren:null,appContext:null};return v?(fu(p,l),c&128&&r.normalize(p)):l&&(p.shapeFlag|=yt(l)?8:16),Li>0&&!d&&Fr&&(p.patchFlag>0||c&6)&&p.patchFlag!==32&&Fr.push(p),p}const ft=Ly;function Ly(r,n=null,l=null,s=0,u=null,c=!1){if((!r||r===_d)&&(r=Zt),gn(r)){const v=mn(r,n,!0);return l&&fu(v,l),v}if(Xy(r)&&(r=r.__vccOpts),n){n=ih(n);let{class:v,style:p}=n;v&&!yt(v)&&(n.class=Po(v)),bt(p)&&(Dl(p)&&!Be(p)&&(p=mt({},p)),n.style=To(p))}const d=yt(r)?1:Vm(r)?128:wy(r)?64:bt(r)?4:Ve(r)?2:0;return lu(r,n,l,s,u,d,c,!0)}function ih(r){return r?Dl(r)||ga in r?mt({},r):r:null}function mn(r,n,l=!1){const{props:s,ref:u,patchFlag:c,children:d}=r,v=n?oh(s||{},n):s;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:v,key:v&&nh(v),ref:n&&n.ref?l&&u?Be(u)?u.concat(ma(n)):[u,ma(n)]:ma(n):u,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:d,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:n&&r.type!==Ht?c===-1?16:c|16:c,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:r.transition,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&mn(r.ssContent),ssFallback:r.ssFallback&&mn(r.ssFallback),el:r.el,anchor:r.anchor}}function uu(r=" ",n=0){return ft(Ai,null,r,n)}function Ny(r,n){const l=ft($n,null,r);return l.staticCount=n,l}function Iy(r="",n=!1){return n?(va(),au(Zt,null,r)):ft(Zt,null,r)}function cr(r){return r==null||typeof r=="boolean"?ft(Zt):Be(r)?ft(Ht,null,r.slice()):typeof r=="object"?yn(r):ft(Ai,null,String(r))}function yn(r){return r.el===null||r.memo?r:mn(r)}function fu(r,n){let l=0;const{shapeFlag:s}=r;if(n==null)n=null;else if(Be(n))l=16;else if(typeof n=="object")if(s&(1|64)){const u=n.default;u&&(u._c&&(u._d=!1),fu(r,u()),u._c&&(u._d=!0));return}else{l=32;const u=n._;!u&&!(ga in n)?n._ctx=fr:u===3&&fr&&(fr.slots._===1?n._=1:(n._=2,r.patchFlag|=1024))}else Ve(n)?(n={default:n,_ctx:fr},l=32):(n=String(n),s&64?(l=16,n=[uu(n)]):l=8);r.children=n,r.shapeFlag|=l}function oh(...r){const n={};for(let l=0;l<r.length;l++){const s=r[l];for(const u in s)if(u==="class")n.class!==s.class&&(n.class=Po([n.class,s.class]));else if(u==="style")n.style=To([n.style,s.style]);else if(ko(u)){const c=n[u],d=s[u];c!==d&&!(Be(c)&&c.includes(d))&&(n[u]=c?[].concat(c,d):d)}else u!==""&&(n[u]=s[u])}return n}function Ry(r,n,l,s){let u;const c=l&&l[s];if(Be(r)||yt(r)){u=new Array(r.length);for(let d=0,v=r.length;d<v;d++)u[d]=n(r[d],d,void 0,c&&c[d])}else if(typeof r=="number"){u=new Array(r);for(let d=0;d<r;d++)u[d]=n(d+1,d,void 0,c&&c[d])}else if(bt(r))if(r[Symbol.iterator])u=Array.from(r,(d,v)=>n(d,v,void 0,c&&c[v]));else{const d=Object.keys(r);u=new Array(d.length);for(let v=0,p=d.length;v<p;v++){const m=d[v];u[v]=n(r[m],m,v,c&&c[v])}}else u=[];return l&&(l[s]=u),u}function Fy(r,n){for(let l=0;l<n.length;l++){const s=n[l];if(Be(s))for(let u=0;u<s.length;u++)r[s[u].name]=s[u].fn;else s&&(r[s.name]=s.fn)}return r}function Dy(r,n,l={},s,u){if(fr.isCE)return ft("slot",n==="default"?null:{name:n},s&&s());let c=r[n];c&&c._c&&(c._d=!1),va();const d=c&&sh(c(l)),v=au(Ht,{key:l.key||`_${n}`},d||(s?s():[]),d&&r._===1?64:-2);return!u&&v.scopeId&&(v.slotScopeIds=[v.scopeId+"-s"]),c&&c._c&&(c._d=!0),v}function sh(r){return r.some(n=>gn(n)?!(n.type===Zt||n.type===Ht&&!sh(n.children)):!0)?r:null}function zy(r){const n={};for(const l in r)n[Mo(l)]=r[l];return n}const cu=r=>r?lh(r)?vu(r)||r.proxy:cu(r.parent):null,ya=mt(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>cu(r.parent),$root:r=>cu(r.root),$emit:r=>r.emit,$options:r=>zd(r),$forceUpdate:r=>()=>bu(r.update),$nextTick:r=>Zo.bind(r.proxy),$watch:r=>n0.bind(r)}),du={get({_:r},n){const{ctx:l,setupState:s,data:u,props:c,accessCache:d,type:v,appContext:p}=r;let m;if(n[0]!=="$"){const P=d[n];if(P!==void 0)switch(P){case 1:return s[n];case 2:return u[n];case 4:return l[n];case 3:return c[n]}else{if(s!==st&&nt(s,n))return d[n]=1,s[n];if(u!==st&&nt(u,n))return d[n]=2,u[n];if((m=r.propsOptions[0])&&nt(m,n))return d[n]=3,c[n];if(l!==st&&nt(l,n))return d[n]=4,l[n];Ql&&(d[n]=0)}}const b=ya[n];let S,T;if(b)return n==="$attrs"&&ur(r,"get",n),b(r);if((S=v.__cssModules)&&(S=S[n]))return S;if(l!==st&&nt(l,n))return d[n]=4,l[n];if(T=p.config.globalProperties,nt(T,n))return T[n]},set({_:r},n,l){const{data:s,setupState:u,ctx:c}=r;if(u!==st&&nt(u,n))u[n]=l;else if(s!==st&&nt(s,n))s[n]=l;else if(nt(r.props,n))return!1;return n[0]==="$"&&n.slice(1)in r?!1:(c[n]=l,!0)},has({_:{data:r,setupState:n,accessCache:l,ctx:s,appContext:u,propsOptions:c}},d){let v;return!!l[d]||r!==st&&nt(r,d)||n!==st&&nt(n,d)||(v=c[0])&&nt(v,d)||nt(s,d)||nt(ya,d)||nt(u.config.globalProperties,d)}},Hy=mt({},du,{get(r,n){if(n!==Symbol.unscopables)return du.get(r,n,r)},has(r,n){return n[0]!=="_"&&!Bg(n)}}),By=Vd();let Wy=0;function ah(r,n,l){const s=r.type,u=(n?n.appContext:r.appContext)||By,c={uid:Wy++,vnode:r,type:s,parent:n,appContext:u,root:null,next:null,subTree:null,update:null,scope:new El(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(u.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Wd(s,u),emitsOptions:xd(s,u),emit:null,emitted:null,propsDefaults:st,inheritAttrs:s.inheritAttrs,ctx:st,data:st,props:st,attrs:st,slots:st,refs:st,setupState:st,setupContext:null,suspense:l,suspenseId:l?l.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=n?n.root:c,c.emit=Wm.bind(null,c),r.ce&&r.ce(c),c}let Nt=null;const zr=()=>Nt||fr,bn=r=>{Nt=r,r.scope.on()},xn=()=>{Nt&&Nt.scope.off(),Nt=null};function lh(r){return r.vnode.shapeFlag&4}let $o=!1;function uh(r,n=!1){$o=n;const{props:l,children:s}=r.vnode,u=lh(r);cy(r,l,u,n),py(r,s);const c=u?jy(r,n):void 0;return $o=!1,c}function jy(r,n){const l=r.type;r.accessCache=Object.create(null),r.proxy=zl(new Proxy(r.ctx,du));const{setup:s}=l;if(s){const u=r.setupContext=s.length>1?ch(r):null;bn(r),jn();const c=Hr(s,r,0,[r.props,u]);if(hn(),xn(),Pl(c)){if(c.then(xn,xn),n)return c.then(d=>{hu(r,d,n)}).catch(d=>{Yn(d,r,0)});r.asyncDep=c}else hu(r,c,n)}else fh(r,n)}function hu(r,n,l){Ve(n)?r.type.__ssrInlineRender?r.ssrRender=n:r.render=n:bt(n)&&(r.setupState=Wl(n)),fh(r,l)}let ba,pu;function Ky(r){ba=r,pu=n=>{n.render._rc&&(n.withProxy=new Proxy(n.ctx,Hy))}}const Uy=()=>!ba;function fh(r,n,l){const s=r.type;if(!r.render){if(!n&&ba&&!s.render){const u=s.template;if(u){const{isCustomElement:c,compilerOptions:d}=r.appContext.config,{delimiters:v,compilerOptions:p}=s,m=mt(mt({isCustomElement:c,delimiters:v},d),p);s.render=ba(u,m)}}r.render=s.render||Sr,pu&&pu(r)}bn(r),jn(),sy(r),hn(),xn()}function Gy(r){return new Proxy(r.attrs,{get(n,l){return ur(r,"get","$attrs"),n[l]}})}function ch(r){const n=s=>{r.exposed=s||{}};let l;return{get attrs(){return l||(l=Gy(r))},slots:r.slots,emit:r.emit,expose:n}}function vu(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(Wl(zl(r.exposed)),{get(n,l){if(l in n)return n[l];if(l in ya)return ya[l](r)}}))}const $y=/(?:^|[-_])(\w)/g,Yy=r=>r.replace($y,n=>n.toUpperCase()).replace(/[-_]/g,"");function xa(r){return Ve(r)&&r.displayName||r.name}function dh(r,n,l=!1){let s=xa(n);if(!s&&n.__file){const u=n.__file.match(/([^/\\]+)\.\w+$/);u&&(s=u[1])}if(!s&&r&&r.parent){const u=c=>{for(const d in c)if(c[d]===n)return d};s=u(r.components||r.parent.type.components)||u(r.appContext.components)}return s?Yy(s):l?"App":"Anonymous"}function Xy(r){return Ve(r)&&"__vccOpts"in r}const Yo=[];function hh(r,...n){jn();const l=Yo.length?Yo[Yo.length-1].component:null,s=l&&l.appContext.config.warnHandler,u=Vy();if(s)Hr(s,l,11,[r+n.join(""),l&&l.proxy,u.map(({vnode:c})=>`at <${dh(l,c.type)}>`).join(`
2
+ `),u]);else{const c=[`[Vue warn]: ${r}`,...n];u.length&&c.push(`
3
+ `,...Jy(u)),console.warn(...c)}hn()}function Vy(){let r=Yo[Yo.length-1];if(!r)return[];const n=[];for(;r;){const l=n[0];l&&l.vnode===r?l.recurseCount++:n.push({vnode:r,recurseCount:0});const s=r.component&&r.component.parent;r=s&&s.vnode}return n}function Jy(r){const n=[];return r.forEach((l,s)=>{n.push(...s===0?[]:[`
4
+ `],...Zy(l))}),n}function Zy({vnode:r,recurseCount:n}){const l=n>0?`... (${n} recursive calls)`:"",s=r.component?r.component.parent==null:!1,u=` at <${dh(r.component,r.type,s)}`,c=">"+l;return r.props?[u,...Qy(r.props),c]:[u+c]}function Qy(r){const n=[],l=Object.keys(r);return l.slice(0,3).forEach(s=>{n.push(...ph(s,r[s]))}),l.length>3&&n.push(" ..."),n}function ph(r,n,l){return yt(n)?(n=JSON.stringify(n),l?n:[`${r}=${n}`]):typeof n=="number"||typeof n=="boolean"||n==null?l?n:[`${r}=${n}`]:Tt(n)?(n=ph(r,_e(n.value),!0),l?n:[`${r}=Ref<`,n,">"]):Ve(n)?[`${r}=fn${n.name?`<${n.name}>`:""}`]:(n=_e(n),l?n:[`${r}=`,n])}function Hr(r,n,l,s){let u;try{u=s?r(...s):r()}catch(c){Yn(c,n,l)}return u}function dr(r,n,l,s){if(Ve(r)){const c=Hr(r,n,l,s);return c&&Pl(c)&&c.catch(d=>{Yn(d,n,l)}),c}const u=[];for(let c=0;c<r.length;c++)u.push(dr(r[c],n,l,s));return u}function Yn(r,n,l,s=!0){const u=n?n.vnode:null;if(n){let c=n.parent;const d=n.proxy,v=l;for(;c;){const m=c.ec;if(m){for(let b=0;b<m.length;b++)if(m[b](r,d,v)===!1)return}c=c.parent}const p=n.appContext.config.errorHandler;if(p){Hr(p,null,10,[r,d,v]);return}}qy(r,l,u,s)}function qy(r,n,l,s=!0){console.error(r)}let wa=!1,gu=!1;const hr=[];let Vr=0;const Xo=[];let Vo=null,Ni=0;const Jo=[];let wn=null,Ii=0;const vh=Promise.resolve();let mu=null,yu=null;function Zo(r){const n=mu||vh;return r?n.then(this?r.bind(this):r):n}function _y(r){let n=Vr+1,l=hr.length;for(;n<l;){const s=n+l>>>1;Qo(hr[s])<r?n=s+1:l=s}return n}function bu(r){(!hr.length||!hr.includes(r,wa&&r.allowRecurse?Vr+1:Vr))&&r!==yu&&(r.id==null?hr.push(r):hr.splice(_y(r.id),0,r),gh())}function gh(){!wa&&!gu&&(gu=!0,mu=vh.then(yh))}function e0(r){const n=hr.indexOf(r);n>Vr&&hr.splice(n,1)}function mh(r,n,l,s){Be(r)?l.push(...r):(!n||!n.includes(r,r.allowRecurse?s+1:s))&&l.push(r),gh()}function t0(r){mh(r,Vo,Xo,Ni)}function xu(r){mh(r,wn,Jo,Ii)}function wu(r,n=null){if(Xo.length){for(yu=n,Vo=[...new Set(Xo)],Xo.length=0,Ni=0;Ni<Vo.length;Ni++)Vo[Ni]();Vo=null,Ni=0,yu=null,wu(r,n)}}function Sa(r){if(Jo.length){const n=[...new Set(Jo)];if(Jo.length=0,wn){wn.push(...n);return}for(wn=n,wn.sort((l,s)=>Qo(l)-Qo(s)),Ii=0;Ii<wn.length;Ii++)wn[Ii]();wn=null,Ii=0}}const Qo=r=>r.id==null?1/0:r.id;function yh(r){gu=!1,wa=!0,wu(r),hr.sort((l,s)=>Qo(l)-Qo(s));const n=Sr;try{for(Vr=0;Vr<hr.length;Vr++){const l=hr[Vr];l&&l.active!==!1&&Hr(l,null,14)}}finally{Vr=0,hr.length=0,Sa(),wa=!1,mu=null,(hr.length||Xo.length||Jo.length)&&yh(r)}}function bh(r,n){return qo(r,null,n)}function xh(r,n){return qo(r,null,{flush:"post"})}function r0(r,n){return qo(r,null,{flush:"sync"})}const wh={};function rr(r,n,l){return qo(r,n,l)}function qo(r,n,{immediate:l,deep:s,flush:u,onTrack:c,onTrigger:d}=st){const v=Nt;let p,m=!1,b=!1;if(Tt(r)?(p=()=>r.value,m=!!r._shallow):Kn(r)?(p=()=>r,s=!0):Be(r)?(b=!0,m=r.some(Kn),p=()=>r.map(W=>{if(Tt(W))return W.value;if(Kn(W))return Xn(W);if(Ve(W))return Hr(W,v,2)})):Ve(r)?n?p=()=>Hr(r,v,2):p=()=>{if(!(v&&v.isUnmounted))return S&&S(),dr(r,v,3,[T])}:p=Sr,n&&s){const W=p;p=()=>Xn(W())}let S,T=W=>{S=D.onStop=()=>{Hr(W,v,4)}};if($o)return T=Sr,n?l&&dr(n,v,3,[p(),b?[]:void 0,T]):p(),Sr;let P=b?[]:wh;const A=()=>{if(!!D.active)if(n){const W=D.run();(s||m||(b?W.some((M,F)=>Ao(M,P[F])):Ao(W,P)))&&(S&&S(),dr(n,v,3,[W,P===wh?void 0:P,T]),P=W)}else D.run()};A.allowRecurse=!!n;let Y;u==="sync"?Y=A:u==="post"?Y=()=>Rt(A,v&&v.suspense):Y=()=>{!v||v.isMounted?t0(A):A()};const D=new Io(p,Y);return n?l?A():P=D.run():u==="post"?Rt(D.run.bind(D),v&&v.suspense):D.run(),()=>{D.stop(),v&&v.scope&&Gc(v.scope.effects,D)}}function n0(r,n,l){const s=this.proxy,u=yt(r)?r.includes(".")?Sh(s,r):()=>s[r]:r.bind(s,s);let c;Ve(n)?c=n:(c=n.handler,l=n);const d=Nt;bn(this);const v=qo(u,c.bind(s),l);return d?bn(d):xn(),v}function Sh(r,n){const l=n.split(".");return()=>{let s=r;for(let u=0;u<l.length&&s;u++)s=s[l[u]];return s}}function Xn(r,n){if(!bt(r)||r.__v_skip||(n=n||new Set,n.has(r)))return r;if(n.add(r),Tt(r))Xn(r.value,n);else if(Be(r))for(let l=0;l<r.length;l++)Xn(r[l],n);else if(Hn(r)||Si(r))r.forEach(l=>{Xn(l,n)});else if(Xc(r))for(const l in r)Xn(r[l],n);return r}function i0(){return null}function o0(){return null}function s0(r){}function a0(r,n){return null}function l0(){return Ch().slots}function u0(){return Ch().attrs}function Ch(){const r=zr();return r.setupContext||(r.setupContext=ch(r))}function f0(r,n){const l=Be(r)?r.reduce((s,u)=>(s[u]={},s),{}):r;for(const s in n){const u=l[s];u?Be(u)||Ve(u)?l[s]={type:u,default:n[s]}:u.default=n[s]:u===null&&(l[s]={default:n[s]})}return l}function c0(r,n){const l={};for(const s in r)n.includes(s)||Object.defineProperty(l,s,{enumerable:!0,get:()=>r[s]});return l}function d0(r){const n=zr();let l=r();return xn(),Pl(l)&&(l=l.catch(s=>{throw bn(n),s})),[l,()=>bn(n)]}function Ca(r,n,l){const s=arguments.length;return s===2?bt(n)&&!Be(n)?gn(n)?ft(r,null,[n]):ft(r,n):ft(r,null,n):(s>3?l=Array.prototype.slice.call(arguments,2):s===3&&gn(l)&&(l=[l]),ft(r,n,l))}const Th=Symbol(""),h0=()=>{{const r=Cr(Th);return r||hh("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),r}};function p0(){}function v0(r,n,l,s){const u=l[s];if(u&&Ph(u,r))return u;const c=n();return c.memo=r.slice(),l[s]=c}function Ph(r,n){const l=r.memo;if(l.length!=n.length)return!1;for(let s=0;s<l.length;s++)if(l[s]!==n[s])return!1;return Li>0&&Fr&&Fr.push(r),!0}const kh="3.2.24",g0={createComponentInstance:ah,setupComponent:uh,renderComponentRoot:oa,setCurrentRenderingInstance:Do,isVNode:gn,normalizeVNode:cr},m0=g0,y0=null,b0=null,x0="http://www.w3.org/2000/svg",Ri=typeof document!="undefined"?document:null,Eh=new Map,w0={insert:(r,n,l)=>{n.insertBefore(r,l||null)},remove:r=>{const n=r.parentNode;n&&n.removeChild(r)},createElement:(r,n,l,s)=>{const u=n?Ri.createElementNS(x0,r):Ri.createElement(r,l?{is:l}:void 0);return r==="select"&&s&&s.multiple!=null&&u.setAttribute("multiple",s.multiple),u},createText:r=>Ri.createTextNode(r),createComment:r=>Ri.createComment(r),setText:(r,n)=>{r.nodeValue=n},setElementText:(r,n)=>{r.textContent=n},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Ri.querySelector(r),setScopeId(r,n){r.setAttribute(n,"")},cloneNode(r){const n=r.cloneNode(!0);return"_value"in r&&(n._value=r._value),n},insertStaticContent(r,n,l,s){const u=l?l.previousSibling:n.lastChild;let c=Eh.get(r);if(!c){const d=Ri.createElement("template");if(d.innerHTML=s?`<svg>${r}</svg>`:r,c=d.content,s){const v=c.firstChild;for(;v.firstChild;)c.appendChild(v.firstChild);c.removeChild(v)}Eh.set(r,c)}return n.insertBefore(c.cloneNode(!0),l),[u?u.nextSibling:n.firstChild,l?l.previousSibling:n.lastChild]}};function S0(r,n,l){const s=r._vtc;s&&(n=(n?[n,...s]:[...s]).join(" ")),n==null?r.removeAttribute("class"):l?r.setAttribute("class",n):r.className=n}function C0(r,n,l){const s=r.style,u=yt(l);if(l&&!u){for(const c in l)Su(s,c,l[c]);if(n&&!yt(n))for(const c in n)l[c]==null&&Su(s,c,"")}else{const c=s.display;u?n!==l&&(s.cssText=l):n&&r.removeAttribute("style"),"_vod"in r&&(s.display=c)}}const Oh=/\s*!important$/;function Su(r,n,l){if(Be(l))l.forEach(s=>Su(r,n,s));else if(n.startsWith("--"))r.setProperty(n,l);else{const s=T0(r,n);Oh.test(l)?r.setProperty(Nr(s),l.replace(Oh,""),"important"):r[s]=l}}const Mh=["Webkit","Moz","ms"],Cu={};function T0(r,n){const l=Cu[n];if(l)return l;let s=lr(n);if(s!=="filter"&&s in r)return Cu[n]=s;s=Oo(s);for(let u=0;u<Mh.length;u++){const c=Mh[u]+s;if(c in r)return Cu[n]=c}return n}const Ah="http://www.w3.org/1999/xlink";function P0(r,n,l,s,u){if(s&&n.startsWith("xlink:"))l==null?r.removeAttributeNS(Ah,n.slice(6,n.length)):r.setAttributeNS(Ah,n,l);else{const c=jg(n);l==null||c&&!Kc(l)?r.removeAttribute(n):r.setAttribute(n,c?"":l)}}function k0(r,n,l,s,u,c,d){if(n==="innerHTML"||n==="textContent"){s&&d(s,u,c),r[n]=l==null?"":l;return}if(n==="value"&&r.tagName!=="PROGRESS"&&!r.tagName.includes("-")){r._value=l;const v=l==null?"":l;(r.value!==v||r.tagName==="OPTION")&&(r.value=v),l==null&&r.removeAttribute(n);return}if(l===""||l==null){const v=typeof r[n];if(v==="boolean"){r[n]=Kc(l);return}else if(l==null&&v==="string"){r[n]="",r.removeAttribute(n);return}else if(v==="number"){try{r[n]=0}catch{}r.removeAttribute(n);return}}try{r[n]=l}catch{}}let Ta=Date.now,Lh=!1;if(typeof window!="undefined"){Ta()>document.createEvent("Event").timeStamp&&(Ta=()=>performance.now());const r=navigator.userAgent.match(/firefox\/(\d+)/i);Lh=!!(r&&Number(r[1])<=53)}let Tu=0;const E0=Promise.resolve(),O0=()=>{Tu=0},M0=()=>Tu||(E0.then(O0),Tu=Ta());function Jr(r,n,l,s){r.addEventListener(n,l,s)}function A0(r,n,l,s){r.removeEventListener(n,l,s)}function L0(r,n,l,s,u=null){const c=r._vei||(r._vei={}),d=c[n];if(s&&d)d.value=s;else{const[v,p]=N0(n);if(s){const m=c[n]=I0(s,u);Jr(r,v,m,p)}else d&&(A0(r,v,d,p),c[n]=void 0)}}const Nh=/(?:Once|Passive|Capture)$/;function N0(r){let n;if(Nh.test(r)){n={};let l;for(;l=r.match(Nh);)r=r.slice(0,r.length-l[0].length),n[l[0].toLowerCase()]=!0}return[Nr(r.slice(2)),n]}function I0(r,n){const l=s=>{const u=s.timeStamp||Ta();(Lh||u>=l.attached-1)&&dr(R0(s,l.value),n,5,[s])};return l.value=r,l.attached=M0(),l}function R0(r,n){if(Be(n)){const l=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{l.call(r),r._stopped=!0},n.map(s=>u=>!u._stopped&&s(u))}else return n}const Ih=/^on[a-z]/,F0=(r,n,l,s,u=!1,c,d,v,p)=>{n==="class"?S0(r,s,u):n==="style"?C0(r,l,s):ko(n)?Cl(n)||L0(r,n,l,s,d):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):D0(r,n,s,u))?k0(r,n,s,c,d,v,p):(n==="true-value"?r._trueValue=s:n==="false-value"&&(r._falseValue=s),P0(r,n,s,u))};function D0(r,n,l,s){return s?!!(n==="innerHTML"||n==="textContent"||n in r&&Ih.test(n)&&Ve(l)):n==="spellcheck"||n==="draggable"||n==="form"||n==="list"&&r.tagName==="INPUT"||n==="type"&&r.tagName==="TEXTAREA"||Ih.test(n)&&yt(l)?!1:n in r}function Rh(r,n){const l=Bo(r);class s extends Pa{constructor(c){super(l,c,n)}}return s.def=l,s}const z0=r=>Rh(r,np),H0=typeof HTMLElement!="undefined"?HTMLElement:class{};class Pa extends H0{constructor(n,l={},s){super();this._def=n,this._props=l,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,Zo(()=>{this._connected||(Au(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);new MutationObserver(s=>{for(const u of s)this._setAttr(u.attributeName)}).observe(this,{attributes:!0});const n=s=>{const{props:u,styles:c}=s,d=!Be(u),v=u?d?Object.keys(u):u:[];let p;if(d)for(const m in this._props){const b=u[m];(b===Number||b&&b.type===Number)&&(this._props[m]=cn(this._props[m]),(p||(p=Object.create(null)))[m]=!0)}this._numberProps=p;for(const m of Object.keys(this))m[0]!=="_"&&this._setProp(m,this[m],!0,!1);for(const m of v.map(lr))Object.defineProperty(this,m,{get(){return this._getProp(m)},set(b){this._setProp(m,b)}});this._applyStyles(c),this._update()},l=this._def.__asyncLoader;l?l().then(n):n(this._def)}_setAttr(n){let l=this.getAttribute(n);this._numberProps&&this._numberProps[n]&&(l=cn(l)),this._setProp(lr(n),l,!1)}_getProp(n){return this._props[n]}_setProp(n,l,s=!0,u=!0){l!==this._props[n]&&(this._props[n]=l,u&&this._instance&&this._update(),s&&(l===!0?this.setAttribute(Nr(n),""):typeof l=="string"||typeof l=="number"?this.setAttribute(Nr(n),l+""):l||this.removeAttribute(Nr(n))))}_update(){Au(this._createVNode(),this.shadowRoot)}_createVNode(){const n=ft(this._def,mt({},this._props));return this._instance||(n.ce=l=>{this._instance=l,l.isCE=!0,l.emit=(u,...c)=>{this.dispatchEvent(new CustomEvent(u,{detail:c}))};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof Pa){l.parent=s._instance;break}}),n}_applyStyles(n){n&&n.forEach(l=>{const s=document.createElement("style");s.textContent=l,this.shadowRoot.appendChild(s)})}}function B0(r="$style"){{const n=zr();if(!n)return st;const l=n.type.__cssModules;if(!l)return st;const s=l[r];return s||st}}function W0(r){const n=zr();if(!n)return;const l=()=>Pu(n.subTree,r(n.proxy));xh(l),Mi(()=>{const s=new MutationObserver(l);s.observe(n.subTree.el.parentNode,{childList:!0}),fa(()=>s.disconnect())})}function Pu(r,n){if(r.shapeFlag&128){const l=r.suspense;r=l.activeBranch,l.pendingBranch&&!l.isHydrating&&l.effects.push(()=>{Pu(l.activeBranch,n)})}for(;r.component;)r=r.component.subTree;if(r.shapeFlag&1&&r.el)Fh(r.el,n);else if(r.type===Ht)r.children.forEach(l=>Pu(l,n));else if(r.type===$n){let{el:l,anchor:s}=r;for(;l&&(Fh(l,n),l!==s);)l=l.nextSibling}}function Fh(r,n){if(r.nodeType===1){const l=r.style;for(const s in n)l.setProperty(`--${s}`,n[s])}}const Sn="transition",_o="animation",ku=(r,{slots:n})=>Ca(Yl,Hh(r),n);ku.displayName="Transition";const Dh={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},j0=ku.props=mt({},Yl.props,Dh),Vn=(r,n=[])=>{Be(r)?r.forEach(l=>l(...n)):r&&r(...n)},zh=r=>r?Be(r)?r.some(n=>n.length>1):r.length>1:!1;function Hh(r){const n={};for(const q in r)q in Dh||(n[q]=r[q]);if(r.css===!1)return n;const{name:l="v",type:s,duration:u,enterFromClass:c=`${l}-enter-from`,enterActiveClass:d=`${l}-enter-active`,enterToClass:v=`${l}-enter-to`,appearFromClass:p=c,appearActiveClass:m=d,appearToClass:b=v,leaveFromClass:S=`${l}-leave-from`,leaveActiveClass:T=`${l}-leave-active`,leaveToClass:P=`${l}-leave-to`}=r,A=K0(u),Y=A&&A[0],D=A&&A[1],{onBeforeEnter:W,onEnter:M,onEnterCancelled:F,onLeave:B,onLeaveCancelled:_,onBeforeAppear:ee=W,onAppear:V=M,onAppearCancelled:J=F}=n,te=(q,k,E)=>{Jn(q,k?b:v),Jn(q,k?m:d),E&&E()},ie=(q,k)=>{Jn(q,P),Jn(q,T),k&&k()},Q=q=>(k,E)=>{const x=q?V:M,H=()=>te(k,q,E);Vn(x,[k,H]),Bh(()=>{Jn(k,q?p:c),Zr(k,q?b:v),zh(x)||Wh(k,s,Y,H)})};return mt(n,{onBeforeEnter(q){Vn(W,[q]),Zr(q,c),Zr(q,d)},onBeforeAppear(q){Vn(ee,[q]),Zr(q,p),Zr(q,m)},onEnter:Q(!1),onAppear:Q(!0),onLeave(q,k){const E=()=>ie(q,k);Zr(q,S),Gh(),Zr(q,T),Bh(()=>{Jn(q,S),Zr(q,P),zh(B)||Wh(q,s,D,E)}),Vn(B,[q,E])},onEnterCancelled(q){te(q,!1),Vn(F,[q])},onAppearCancelled(q){te(q,!0),Vn(J,[q])},onLeaveCancelled(q){ie(q),Vn(_,[q])}})}function K0(r){if(r==null)return null;if(bt(r))return[Eu(r.enter),Eu(r.leave)];{const n=Eu(r);return[n,n]}}function Eu(r){return cn(r)}function Zr(r,n){n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),(r._vtc||(r._vtc=new Set)).add(n)}function Jn(r,n){n.split(/\s+/).forEach(s=>s&&r.classList.remove(s));const{_vtc:l}=r;l&&(l.delete(n),l.size||(r._vtc=void 0))}function Bh(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let U0=0;function Wh(r,n,l,s){const u=r._endId=++U0,c=()=>{u===r._endId&&s()};if(l)return setTimeout(c,l);const{type:d,timeout:v,propCount:p}=jh(r,n);if(!d)return s();const m=d+"end";let b=0;const S=()=>{r.removeEventListener(m,T),c()},T=P=>{P.target===r&&++b>=p&&S()};setTimeout(()=>{b<p&&S()},v+1),r.addEventListener(m,T)}function jh(r,n){const l=window.getComputedStyle(r),s=A=>(l[A]||"").split(", "),u=s(Sn+"Delay"),c=s(Sn+"Duration"),d=Kh(u,c),v=s(_o+"Delay"),p=s(_o+"Duration"),m=Kh(v,p);let b=null,S=0,T=0;n===Sn?d>0&&(b=Sn,S=d,T=c.length):n===_o?m>0&&(b=_o,S=m,T=p.length):(S=Math.max(d,m),b=S>0?d>m?Sn:_o:null,T=b?b===Sn?c.length:p.length:0);const P=b===Sn&&/\b(transform|all)(,|$)/.test(l[Sn+"Property"]);return{type:b,timeout:S,propCount:T,hasTransform:P}}function Kh(r,n){for(;r.length<n.length;)r=r.concat(r);return Math.max(...n.map((l,s)=>Uh(l)+Uh(r[s])))}function Uh(r){return Number(r.slice(0,-1).replace(",","."))*1e3}function Gh(){return document.body.offsetHeight}const $h=new WeakMap,Yh=new WeakMap,G0={name:"TransitionGroup",props:mt({},j0,{tag:String,moveClass:String}),setup(r,{slots:n}){const l=zr(),s=$l();let u,c;return la(()=>{if(!u.length)return;const d=r.moveClass||`${r.name||"v"}-move`;if(!J0(u[0].el,l.vnode.el,d))return;u.forEach(Y0),u.forEach(X0);const v=u.filter(V0);Gh(),v.forEach(p=>{const m=p.el,b=m.style;Zr(m,d),b.transform=b.webkitTransform=b.transitionDuration="";const S=m._moveCb=T=>{T&&T.target!==m||(!T||/transform$/.test(T.propertyName))&&(m.removeEventListener("transitionend",S),m._moveCb=null,Jn(m,d))};m.addEventListener("transitionend",S)})}),()=>{const d=_e(r),v=Hh(d);let p=d.tag||Ht;u=c,c=n.default?sa(n.default()):[];for(let m=0;m<c.length;m++){const b=c[m];b.key!=null&&Un(b,Oi(b,v,s,l))}if(u)for(let m=0;m<u.length;m++){const b=u[m];Un(b,Oi(b,v,s,l)),$h.set(b,b.el.getBoundingClientRect())}return ft(p,null,c)}}},$0=G0;function Y0(r){const n=r.el;n._moveCb&&n._moveCb(),n._enterCb&&n._enterCb()}function X0(r){Yh.set(r,r.el.getBoundingClientRect())}function V0(r){const n=$h.get(r),l=Yh.get(r),s=n.left-l.left,u=n.top-l.top;if(s||u){const c=r.el.style;return c.transform=c.webkitTransform=`translate(${s}px,${u}px)`,c.transitionDuration="0s",r}}function J0(r,n,l){const s=r.cloneNode();r._vtc&&r._vtc.forEach(d=>{d.split(/\s+/).forEach(v=>v&&s.classList.remove(v))}),l.split(/\s+/).forEach(d=>d&&s.classList.add(d)),s.style.display="none";const u=n.nodeType===1?n:n.parentNode;u.appendChild(s);const{hasTransform:c}=jh(s);return u.removeChild(s),c}const Cn=r=>{const n=r.props["onUpdate:modelValue"];return Be(n)?l=>Ci(n,l):n};function Z0(r){r.target.composing=!0}function Xh(r){const n=r.target;n.composing&&(n.composing=!1,Q0(n,"input"))}function Q0(r,n){const l=document.createEvent("HTMLEvents");l.initEvent(n,!0,!0),r.dispatchEvent(l)}const ka={created(r,{modifiers:{lazy:n,trim:l,number:s}},u){r._assign=Cn(u);const c=s||u.props&&u.props.type==="number";Jr(r,n?"change":"input",d=>{if(d.target.composing)return;let v=r.value;l?v=v.trim():c&&(v=cn(v)),r._assign(v)}),l&&Jr(r,"change",()=>{r.value=r.value.trim()}),n||(Jr(r,"compositionstart",Z0),Jr(r,"compositionend",Xh),Jr(r,"change",Xh))},mounted(r,{value:n}){r.value=n==null?"":n},beforeUpdate(r,{value:n,modifiers:{lazy:l,trim:s,number:u}},c){if(r._assign=Cn(c),r.composing||document.activeElement===r&&(l||s&&r.value.trim()===n||(u||r.type==="number")&&cn(r.value)===n))return;const d=n==null?"":n;r.value!==d&&(r.value=d)}},Ou={deep:!0,created(r,n,l){r._assign=Cn(l),Jr(r,"change",()=>{const s=r._modelValue,u=Fi(r),c=r.checked,d=r._assign;if(Be(s)){const v=js(s,u),p=v!==-1;if(c&&!p)d(s.concat(u));else if(!c&&p){const m=[...s];m.splice(v,1),d(m)}}else if(Hn(s)){const v=new Set(s);c?v.add(u):v.delete(u),d(v)}else d(Qh(r,c))})},mounted:Vh,beforeUpdate(r,n,l){r._assign=Cn(l),Vh(r,n,l)}};function Vh(r,{value:n,oldValue:l},s){r._modelValue=n,Be(n)?r.checked=js(n,s.props.value)>-1:Hn(n)?r.checked=n.has(s.props.value):n!==l&&(r.checked=fn(n,Qh(r,!0)))}const Mu={created(r,{value:n},l){r.checked=fn(n,l.props.value),r._assign=Cn(l),Jr(r,"change",()=>{r._assign(Fi(r))})},beforeUpdate(r,{value:n,oldValue:l},s){r._assign=Cn(s),n!==l&&(r.checked=fn(n,s.props.value))}},Jh={deep:!0,created(r,{value:n,modifiers:{number:l}},s){const u=Hn(n);Jr(r,"change",()=>{const c=Array.prototype.filter.call(r.options,d=>d.selected).map(d=>l?cn(Fi(d)):Fi(d));r._assign(r.multiple?u?new Set(c):c:c[0])}),r._assign=Cn(s)},mounted(r,{value:n}){Zh(r,n)},beforeUpdate(r,n,l){r._assign=Cn(l)},updated(r,{value:n}){Zh(r,n)}};function Zh(r,n){const l=r.multiple;if(!(l&&!Be(n)&&!Hn(n))){for(let s=0,u=r.options.length;s<u;s++){const c=r.options[s],d=Fi(c);if(l)Be(n)?c.selected=js(n,d)>-1:c.selected=n.has(d);else if(fn(Fi(c),n)){r.selectedIndex!==s&&(r.selectedIndex=s);return}}!l&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function Fi(r){return"_value"in r?r._value:r.value}function Qh(r,n){const l=n?"_trueValue":"_falseValue";return l in r?r[l]:n}const q0={created(r,n,l){Ea(r,n,l,null,"created")},mounted(r,n,l){Ea(r,n,l,null,"mounted")},beforeUpdate(r,n,l,s){Ea(r,n,l,s,"beforeUpdate")},updated(r,n,l,s){Ea(r,n,l,s,"updated")}};function Ea(r,n,l,s,u){let c;switch(r.tagName){case"SELECT":c=Jh;break;case"TEXTAREA":c=ka;break;default:switch(l.props&&l.props.type){case"checkbox":c=Ou;break;case"radio":c=Mu;break;default:c=ka}}const d=c[u];d&&d(r,n,l,s)}function _0(){ka.getSSRProps=({value:r})=>({value:r}),Mu.getSSRProps=({value:r},n)=>{if(n.props&&fn(n.props.value,r))return{checked:!0}},Ou.getSSRProps=({value:r},n)=>{if(Be(r)){if(n.props&&js(r,n.props.value)>-1)return{checked:!0}}else if(Hn(r)){if(n.props&&r.has(n.props.value))return{checked:!0}}else if(r)return{checked:!0}}}const eb=["ctrl","shift","alt","meta"],tb={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,n)=>eb.some(l=>r[`${l}Key`]&&!n.includes(l))},rb=(r,n)=>(l,...s)=>{for(let u=0;u<n.length;u++){const c=tb[n[u]];if(c&&c(l,n))return}return r(l,...s)},nb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ib=(r,n)=>l=>{if(!("key"in l))return;const s=Nr(l.key);if(n.some(u=>u===s||nb[u]===s))return r(l)},qh={beforeMount(r,{value:n},{transition:l}){r._vod=r.style.display==="none"?"":r.style.display,l&&n?l.beforeEnter(r):es(r,n)},mounted(r,{value:n},{transition:l}){l&&n&&l.enter(r)},updated(r,{value:n,oldValue:l},{transition:s}){!n!=!l&&(s?n?(s.beforeEnter(r),es(r,!0),s.enter(r)):s.leave(r,()=>{es(r,!1)}):es(r,n))},beforeUnmount(r,{value:n}){es(r,n)}};function es(r,n){r.style.display=n?r._vod:"none"}function ob(){qh.getSSRProps=({value:r})=>{if(!r)return{style:{display:"none"}}}}const _h=mt({patchProp:F0},w0);let ts,ep=!1;function tp(){return ts||(ts=Jd(_h))}function rp(){return ts=ep?ts:Zd(_h),ep=!0,ts}const Au=(...r)=>{tp().render(...r)},np=(...r)=>{rp().hydrate(...r)},sb=(...r)=>{const n=tp().createApp(...r),{mount:l}=n;return n.mount=s=>{const u=ip(s);if(!u)return;const c=n._component;!Ve(c)&&!c.render&&!c.template&&(c.template=u.innerHTML),u.innerHTML="";const d=l(u,!1,u instanceof SVGElement);return u instanceof Element&&(u.removeAttribute("v-cloak"),u.setAttribute("data-v-app","")),d},n},ab=(...r)=>{const n=rp().createApp(...r),{mount:l}=n;return n.mount=s=>{const u=ip(s);if(u)return l(u,!0,u instanceof SVGElement)},n};function ip(r){return yt(r)?document.querySelector(r):r}let op=!1;const lb=()=>{op||(op=!0,_0(),ob())},ub=()=>{};var fb=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",compile:ub,EffectScope:El,ReactiveEffect:Io,computed:Vt,customRef:Dm,effect:im,effectScope:tm,getCurrentScope:Zc,isProxy:Dl,isReactive:Kn,isReadonly:ta,isRef:Tt,markRaw:zl,onScopeDispose:Qc,proxyRefs:Wl,reactive:Pi,readonly:Fl,ref:Lt,shallowReactive:gd,shallowReadonly:Lm,shallowRef:Fo,stop:om,toRaw:_e,toRef:yd,toRefs:zm,triggerRef:Im,unref:xt,camelize:lr,capitalize:Oo,normalizeClass:Po,normalizeProps:$g,normalizeStyle:To,toDisplayString:Xg,toHandlerKey:Mo,BaseTransition:Yl,Comment:Zt,Fragment:Ht,KeepAlive:iy,Static:$n,Suspense:Zm,Teleport:Ty,Text:Ai,callWithAsyncErrorHandling:dr,callWithErrorHandling:Hr,cloneVNode:mn,compatUtils:b0,createBlock:au,createCommentVNode:Iy,createElementBlock:My,createElementVNode:lu,createHydrationRenderer:Zd,createPropsRestProxy:c0,createRenderer:Jd,createSlots:Fy,createStaticVNode:Ny,createTextVNode:uu,createVNode:ft,defineAsyncComponent:ry,defineComponent:Bo,defineEmits:o0,defineExpose:s0,defineProps:i0,get devtools(){return ki},getCurrentInstance:zr,getTransitionRawChildren:sa,guardReactiveProps:ih,h:Ca,handleError:Yn,initCustomFormatter:p0,inject:Cr,isMemoSame:Ph,isRuntimeOnly:Uy,isVNode:gn,mergeDefaults:f0,mergeProps:oh,nextTick:Zo,onActivated:kd,onBeforeMount:Md,onBeforeUnmount:ua,onBeforeUpdate:Ad,onDeactivated:Ed,onErrorCaptured:Rd,onMounted:Mi,onRenderTracked:Id,onRenderTriggered:Nd,onServerPrefetch:Ld,onUnmounted:fa,onUpdated:la,openBlock:va,popScopeId:Km,provide:Ho,pushScopeId:jm,queuePostFlushCb:xu,registerRuntimeCompiler:Ky,renderList:Ry,renderSlot:Dy,resolveComponent:ky,resolveDirective:Oy,resolveDynamicComponent:Ey,resolveFilter:y0,resolveTransitionHooks:Oi,setBlockTracking:su,setDevtoolsHook:bd,setTransitionHooks:Un,ssrContextKey:Th,ssrUtils:m0,toHandlers:zy,transformVNodeArgs:Ay,useAttrs:u0,useSSRContext:h0,useSlots:l0,useTransitionState:$l,version:kh,warn:hh,watch:rr,watchEffect:bh,watchPostEffect:xh,watchSyncEffect:r0,withAsyncContext:d0,withCtx:Kl,withDefaults:a0,withDirectives:gy,withMemo:v0,withScopeId:Um,Transition:ku,TransitionGroup:$0,VueElement:Pa,createApp:sb,createSSRApp:ab,defineCustomElement:Rh,defineSSRCustomElement:z0,hydrate:np,initDirectivesForSSR:lb,render:Au,useCssModule:B0,useCssVars:W0,vModelCheckbox:Ou,vModelDynamic:q0,vModelRadio:Mu,vModelSelect:Jh,vModelText:ka,vShow:qh,withKeys:ib,withModifiers:rb});function Lu(){const r=[],n=u=>{const c=r.indexOf(u);c!==-1&&r.splice(c,1)};return{on:u=>(r.push(u),{off:()=>n(u)}),off:n,trigger:u=>{r.forEach(c=>c(u))}}}function Nu(r){return Zc()?(Qc(r),!0):!1}const Di=typeof window!="undefined",cb=r=>typeof r=="string",Oa=()=>{};function sp(r,n){function l(...s){r(()=>n.apply(this,s),{fn:n,thisArg:this,args:s})}return l}const db=r=>r();function hb(r,n={}){let l,s;return c=>{const d=xt(r),v=xt(n.maxWait);if(l&&clearTimeout(l),d<=0||v!==void 0&&v<=0)return s&&(clearTimeout(s),s=null),c();v&&!s&&(s=setTimeout(()=>{l&&clearTimeout(l),s=null,c()},v)),l=setTimeout(()=>{s&&clearTimeout(s),s=null,c()},d)}}function pb(r,...n){return n.some(l=>l in r)}function vb(r,n=200,l={}){return sp(hb(n,l),r)}function Kx(r,n=200,l={}){if(n<=0)return r;const s=Lt(r.value),u=vb(()=>{s.value=r.value},n,l);return rr(r,()=>u()),s}var ap=Object.getOwnPropertySymbols,gb=Object.prototype.hasOwnProperty,mb=Object.prototype.propertyIsEnumerable,yb=(r,n)=>{var l={};for(var s in r)gb.call(r,s)&&n.indexOf(s)<0&&(l[s]=r[s]);if(r!=null&&ap)for(var s of ap(r))n.indexOf(s)<0&&mb.call(r,s)&&(l[s]=r[s]);return l};function bb(r,n,l={}){const s=l,{eventFilter:u=db}=s,c=yb(s,["eventFilter"]);return rr(r,sp(u,n),c)}function lp(r,n=!0){zr()?Mi(r):n?r():Zo(r)}function xb(r,n,l={}){const{immediate:s=!0}=l,u=Lt(!1);let c=null;function d(){c&&(clearTimeout(c),c=null)}function v(){u.value=!1,d()}function p(...m){d(),u.value=!0,c=setTimeout(()=>{u.value=!1,c=null,r(...m)},xt(n))}return s&&(u.value=!0,Di&&p()),Nu(v),{isPending:u,start:p,stop:v}}function Ux(r=!1){if(Tt(r))return n=>{r.value=typeof n=="boolean"?n:!r.value};{const n=Lt(r);return[n,s=>{n.value=typeof s=="boolean"?s:!n.value}]}}function Gx(r,n,l){let s;Tt(l)?s={evaluating:l}:s=l||{};const{lazy:u=!1,evaluating:c=void 0,onError:d=Oa}=s,v=Lt(!u),p=Lt(n);let m=0;return bh(async b=>{if(!v.value)return;m++;const S=m;let T=!1;try{c&&Promise.resolve().then(()=>{c.value=!0});const P=await r(A=>{b(()=>{c&&(c.value=!1),T||A()})});S===m&&(p.value=P)}catch(P){d(P)}finally{c&&(c.value=!1),T=!0}}),u?Vt(()=>(v.value=!0,p.value)):p}const Zn=Di?window:void 0;Di&&window.document;Di&&window.navigator;Di&&window.location;function wb(...r){let n,l,s,u;if(cb(r[0])?([l,s,u]=r,n=Zn):[n,l,s,u]=r,!n)return Oa;let c=Oa;const d=rr(()=>xt(n),p=>{c(),!!p&&(p.addEventListener(l,s,u),c=()=>{p.removeEventListener(l,s,u),c=Oa})},{immediate:!0,flush:"post"}),v=()=>{d(),c()};return Nu(v),v}function Sb(r,n={}){const{window:l=Zn}=n;let s;const u=Lt(!1),c=()=>{!l||(s||(s=l.matchMedia(r)),u.value=s.matches)};return lp(()=>{c(),!!s&&("addEventListener"in s?s.addEventListener("change",c):s.addListener(c),Nu(()=>{"removeEventListener"in c?s.removeEventListener("change",c):s.removeListener(c)}))}),u}const Cb={boolean:{read:r=>r==="true",write:r=>String(r)},object:{read:r=>JSON.parse(r),write:r=>JSON.stringify(r)},number:{read:r=>Number.parseFloat(r),write:r=>String(r)},any:{read:r=>r,write:r=>String(r)},string:{read:r=>r,write:r=>String(r)},map:{read:r=>new Map(JSON.parse(r)),write:r=>JSON.stringify(Array.from(r.entries()))},set:{read:r=>new Set(JSON.parse(r)),write:r=>JSON.stringify(Array.from(r.entries()))}};function Tb(r,n,l=(u=>(u=Zn)==null?void 0:u.localStorage)(),s={}){var u;const{flush:c="pre",deep:d=!0,listenToStorageChanges:v=!0,writeDefaults:p=!0,shallow:m,window:b=Zn,eventFilter:S,onError:T=M=>{console.error(M)}}=s,P=xt(n),A=P==null?"any":P instanceof Set?"set":P instanceof Map?"map":typeof P=="boolean"?"boolean":typeof P=="string"?"string":typeof P=="object"||Array.isArray(P)?"object":Number.isNaN(P)?"any":"number",Y=(m?Fo:Lt)(n),D=(u=s.serializer)!=null?u:Cb[A];function W(M){if(!(!l||M&&M.key!==r))try{const F=M?M.newValue:l.getItem(r);F==null?(Y.value=P,p&&P!==null&&l.setItem(r,D.write(P))):Y.value=D.read(F)}catch(F){T(F)}}return W(),b&&v&&wb(b,"storage",M=>setTimeout(()=>W(M),0)),l&&bb(Y,()=>{try{Y.value==null?l.removeItem(r):l.setItem(r,D.write(Y.value))}catch(M){T(M)}},{flush:c,deep:d,eventFilter:S}),Y}function Pb(r){return Sb("(prefers-color-scheme: dark)",r)}function $x(r={}){var n;const{selector:l="html",attribute:s="class",valueDark:u="dark",valueLight:c="",window:d=Zn,storage:v=(n=Zn)==null?void 0:n.localStorage,storageKey:p="vueuse-color-scheme",listenToStorageChanges:m=!0}=r,b=Pb({window:d}),S=p==null?Lt("auto"):Tb(p,"auto",v,{window:d,listenToStorageChanges:m}),T=Vt({get(){return S.value==="auto"?b.value:S.value==="dark"},set(A){A===b.value?S.value="auto":S.value=A?"dark":"light"}}),P=r.onChanged||(A=>{const Y=d==null?void 0:d.document.querySelector(l);s==="class"?(Y==null||Y.classList.toggle(u,A),c&&(Y==null||Y.classList.toggle(c,!A))):Y==null||Y.setAttribute(s,A?u:c)});return rr(T,P,{flush:"post"}),lp(()=>P(T.value)),T}var kb=Object.defineProperty,Eb=Object.defineProperties,Ob=Object.getOwnPropertyDescriptors,up=Object.getOwnPropertySymbols,Mb=Object.prototype.hasOwnProperty,Ab=Object.prototype.propertyIsEnumerable,fp=(r,n,l)=>n in r?kb(r,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[n]=l,Qr=(r,n)=>{for(var l in n||(n={}))Mb.call(n,l)&&fp(r,l,n[l]);if(up)for(var l of up(n))Ab.call(n,l)&&fp(r,l,n[l]);return r},cp=(r,n)=>Eb(r,Ob(n));const Lb={json:"application/json",text:"text/plain",formData:"multipart/form-data"};function dp(r){return pb(r,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError")}function Iu(r){return r instanceof Headers?Object.fromEntries([...r.entries()]):r}function Yx(r,...n){var l;const s=typeof AbortController=="function";let u={},c={immediate:!0,refetch:!1,timeout:0};const d={method:"get",type:"text",payload:void 0};n.length>0&&(dp(n[0])?c=Qr(Qr({},c),n[0]):u=n[0]),n.length>1&&dp(n[1])&&(c=Qr(Qr({},c),n[1]));const{fetch:v=(l=Zn)==null?void 0:l.fetch,initialData:p,timeout:m}=c,b=Lu(),S=Lu(),T=Lu(),P=Lt(!1),A=Lt(!1),Y=Lt(!1),D=Lt(null),W=Fo(null),M=Lt(null),F=Fo(p),B=Vt(()=>s&&A.value);let _,ee;const V=()=>{s&&_&&_.abort()},J=k=>{A.value=k,P.value=!k};m&&(ee=xb(V,m,{immediate:!1}));const te=async(k=!1)=>{var E;J(!0),M.value=null,D.value=null,Y.value=!1,_=void 0,s&&(_=new AbortController,_.signal.onabort=()=>Y.value=!0,u=cp(Qr({},u),{signal:_.signal}));const x={method:d.method,headers:{}};if(d.payload){const ue=Iu(x.headers);d.payloadType&&(ue["Content-Type"]=(E=Lb[d.payloadType])!=null?E:d.payloadType),x.body=d.payloadType==="json"?JSON.stringify(xt(d.payload)):xt(d.payload)}let H=!1;const z={url:xt(r),options:u,cancel:()=>{H=!0}};if(c.beforeFetch&&Object.assign(z,await c.beforeFetch(z)),H||!v)return J(!1),Promise.resolve();let G=null;return ee&&ee.start(),new Promise((ue,he)=>{var je;v(z.url,cp(Qr(Qr({},x),z.options),{headers:Qr(Qr({},Iu(x.headers)),Iu((je=z.options)==null?void 0:je.headers))})).then(async We=>{if(W.value=We,D.value=We.status,G=await We[d.type](),c.afterFetch&&({data:G}=await c.afterFetch({data:G,response:We})),F.value=G,!We.ok)throw new Error(We.statusText);b.trigger(We),ue(We)}).catch(async We=>{let Ke=We.message||We.name;c.onFetchError&&({data:G,error:Ke}=await c.onFetchError({data:G,error:We})),F.value=G,M.value=Ke,S.trigger(We),k?he(We):ue(void 0)}).finally(()=>{J(!1),ee&&ee.stop(),T.trigger(null)})})};rr(()=>[xt(r),xt(c.refetch)],()=>xt(c.refetch)&&te(),{deep:!0});const ie={isFinished:P,statusCode:D,response:W,error:M,data:F,isFetching:A,canAbort:B,aborted:Y,abort:V,execute:te,onFetchResponse:b.on,onFetchError:S.on,onFetchFinally:T.on,get:Q("get"),put:Q("put"),post:Q("post"),delete:Q("delete"),json:q("json"),text:q("text"),blob:q("blob"),arrayBuffer:q("arrayBuffer"),formData:q("formData")};function Q(k){return(E,x)=>{if(!A.value)return d.method=k,d.payload=E,d.payloadType=x,Tt(d.payload)&&rr(()=>[xt(d.payload),xt(c.refetch)],()=>xt(c.refetch)&&te(),{deep:!0}),!x&&xt(E)&&Object.getPrototypeOf(xt(E))===Object.prototype&&(d.payloadType="json"),ie}}function q(k){return()=>{if(!A.value)return d.type=k,ie}}return c.immediate&&setTimeout(te,0),ie}var hp;(function(r){r.UP="UP",r.RIGHT="RIGHT",r.DOWN="DOWN",r.LEFT="LEFT",r.NONE="NONE"})(hp||(hp={}));var pp,vp;Di&&(window==null?void 0:window.navigator)&&((pp=window==null?void 0:window.navigator)==null?void 0:pp.platform)&&/iP(ad|hone|od)/.test((vp=window==null?void 0:window.navigator)==null?void 0:vp.platform);function Xx(r,n,l,s={}){var u;const{passive:c=!1,eventName:d,deep:v=!1}=s,p=zr(),m=l||(p==null?void 0:p.emit)||((u=p==null?void 0:p.$emit)==null?void 0:u.bind(p));let b=d;if(n||(n="modelValue"),b=d||b||`update:${n}`,c){const S=Lt(r[n]);return rr(()=>r[n],T=>S.value=T),rr(S,T=>{(T!==r[n]||v)&&m(b,T)},{deep:v}),S}else return Vt({get(){return r[n]},set(S){m(b,S)}})}var Nb=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ib(r){if(r.__esModule)return r;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(l){var s=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(n,l,s.get?s:{enumerable:!0,get:function(){return r[l]}})}),n}var Qn={exports:{}};(function(r,n){(function(l,s){r.exports=s()})(Nb,function(){var l=navigator.userAgent,s=navigator.platform,u=/gecko\/\d/i.test(l),c=/MSIE \d/.test(l),d=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(l),v=/Edge\/(\d+)/.exec(l),p=c||d||v,m=p&&(c?document.documentMode||6:+(v||d)[1]),b=!v&&/WebKit\//.test(l),S=b&&/Qt\/\d+\.\d+/.test(l),T=!v&&/Chrome\//.test(l),P=/Opera\//.test(l),A=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(l),D=/PhantomJS/.test(l),W=A&&(/Mobile\/\w+/.test(l)||navigator.maxTouchPoints>2),M=/Android/.test(l),F=W||M||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(l),B=W||/Mac/.test(s),_=/\bCrOS\b/.test(l),ee=/win/i.test(s),V=P&&l.match(/Version\/(\d*\.\d*)/);V&&(V=Number(V[1])),V&&V>=15&&(P=!1,b=!0);var J=B&&(S||P&&(V==null||V<12.11)),te=u||p&&m>=9;function ie(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Q=function(e,t){var o=e.className,i=ie(t).exec(o);if(i){var a=o.slice(i.index+i[0].length);e.className=o.slice(0,i.index)+(a?i[1]+a:"")}};function q(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function k(e,t){return q(e).appendChild(t)}function E(e,t,o,i){var a=document.createElement(e);if(o&&(a.className=o),i&&(a.style.cssText=i),typeof t=="string")a.appendChild(document.createTextNode(t));else if(t)for(var f=0;f<t.length;++f)a.appendChild(t[f]);return a}function x(e,t,o,i){var a=E(e,t,o,i);return a.setAttribute("role","presentation"),a}var H;document.createRange?H=function(e,t,o,i){var a=document.createRange();return a.setEnd(i||e,o),a.setStart(e,t),a}:H=function(e,t,o){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch{return i}return i.collapse(!0),i.moveEnd("character",o),i.moveStart("character",t),i};function z(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function G(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function ue(e,t){var o=e.className;ie(t).test(o)||(e.className+=(o?" ":"")+t)}function he(e,t){for(var o=e.split(" "),i=0;i<o.length;i++)o[i]&&!ie(o[i]).test(t)&&(t+=" "+o[i]);return t}var je=function(e){e.select()};W?je=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:p&&(je=function(e){try{e.select()}catch{}});function We(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function Ke(e,t,o){t||(t={});for(var i in e)e.hasOwnProperty(i)&&(o!==!1||!t.hasOwnProperty(i))&&(t[i]=e[i]);return t}function Xe(e,t,o,i,a){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var f=i||0,h=a||0;;){var g=e.indexOf(" ",f);if(g<0||g>=t)return h+(t-f);h+=g-f,h+=o-h%o,f=g+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=We(this.onTimeout,this)};ne.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ne.prototype.set=function(e,t){this.f=t;var o=+new Date+e;(!this.id||o<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=o)};function se(e,t){for(var o=0;o<e.length;++o)if(e[o]==t)return o;return-1}var ae=50,be={toString:function(){return"CodeMirror.Pass"}},Ie={scroll:!1},Ee={origin:"*mouse"},me={origin:"+move"};function Le(e,t,o){for(var i=0,a=0;;){var f=e.indexOf(" ",i);f==-1&&(f=e.length);var h=f-i;if(f==e.length||a+h>=t)return i+Math.min(h,t-a);if(a+=f-i,a+=o-a%o,i=f+1,a>=t)return i}}var R=[""];function j(e){for(;R.length<=e;)R.push(X(R)+" ");return R[e]}function X(e){return e[e.length-1]}function oe(e,t){for(var o=[],i=0;i<e.length;i++)o[i]=t(e[i],i);return o}function le(e,t,o){for(var i=0,a=o(t);i<e.length&&o(e[i])<=a;)i++;e.splice(i,0,t)}function ge(){}function Ce(e,t){var o;return Object.create?o=Object.create(e):(ge.prototype=e,o=new ge),t&&Ke(t,o),o}var we=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function de(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||we.test(e))}function L(e,t){return t?t.source.indexOf("\\w")>-1&&de(e)?!0:t.test(e):de(e)}function Z(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var U=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Se(e){return e.charCodeAt(0)>=768&&U.test(e)}function Re(e,t,o){for(;(o<0?t>0:t<e.length)&&Se(e.charAt(t));)t+=o;return t}function $e(e,t,o){for(var i=t>o?-1:1;;){if(t==o)return t;var a=(t+o)/2,f=i<0?Math.ceil(a):Math.floor(a);if(f==t)return e(f)?t:o;e(f)?o=f:t=f+i}}function it(e,t,o,i){if(!e)return i(t,o,"ltr",0);for(var a=!1,f=0;f<e.length;++f){var h=e[f];(h.from<o&&h.to>t||t==o&&h.to==t)&&(i(Math.max(h.from,t),Math.min(h.to,o),h.level==1?"rtl":"ltr",f),a=!0)}a||i(t,o,"ltr")}var Je=null;function Ue(e,t,o){var i;Je=null;for(var a=0;a<e.length;++a){var f=e[a];if(f.from<t&&f.to>t)return a;f.to==t&&(f.from!=f.to&&o=="before"?i=a:Je=a),f.from==t&&(f.from!=f.to&&o!="before"?i=a:Je=a)}return i!=null?i:Je}var vt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function o(w){return w<=247?e.charAt(w):1424<=w&&w<=1524?"R":1536<=w&&w<=1785?t.charAt(w-1536):1774<=w&&w<=2220?"r":8192<=w&&w<=8203?"w":w==8204?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,a=/[stwN]/,f=/[LRr]/,h=/[Lb1n]/,g=/[1n]/;function y(w,O,N){this.level=w,this.from=O,this.to=N}return function(w,O){var N=O=="ltr"?"L":"R";if(w.length==0||O=="ltr"&&!i.test(w))return!1;for(var $=w.length,K=[],re=0;re<$;++re)K.push(o(w.charCodeAt(re)));for(var ce=0,xe=N;ce<$;++ce){var Te=K[ce];Te=="m"?K[ce]=xe:xe=Te}for(var Oe=0,Pe=N;Oe<$;++Oe){var Ae=K[Oe];Ae=="1"&&Pe=="r"?K[Oe]="n":f.test(Ae)&&(Pe=Ae,Ae=="r"&&(K[Oe]="R"))}for(var He=1,De=K[0];He<$-1;++He){var Ze=K[He];Ze=="+"&&De=="1"&&K[He+1]=="1"?K[He]="1":Ze==","&&De==K[He+1]&&(De=="1"||De=="n")&&(K[He]=De),De=Ze}for(var at=0;at<$;++at){var Mt=K[at];if(Mt==",")K[at]="N";else if(Mt=="%"){var dt=void 0;for(dt=at+1;dt<$&&K[dt]=="%";++dt);for(var er=at&&K[at-1]=="!"||dt<$&&K[dt]=="1"?"1":"N",$t=at;$t<dt;++$t)K[$t]=er;at=dt-1}}for(var wt=0,Yt=N;wt<$;++wt){var It=K[wt];Yt=="L"&&It=="1"?K[wt]="L":f.test(It)&&(Yt=It)}for(var Ct=0;Ct<$;++Ct)if(a.test(K[Ct])){var St=void 0;for(St=Ct+1;St<$&&a.test(K[St]);++St);for(var pt=(Ct?K[Ct-1]:N)=="L",Xt=(St<$?K[St]:N)=="L",bi=pt==Xt?pt?"L":"R":N,un=Ct;un<St;++un)K[un]=bi;Ct=St-1}for(var zt=[],Lr,At=0;At<$;)if(h.test(K[At])){var wl=At;for(++At;At<$&&h.test(K[At]);++At);zt.push(new y(0,wl,At))}else{var $r=At,Dn=zt.length,zn=O=="rtl"?1:0;for(++At;At<$&&K[At]!="L";++At);for(var jt=$r;jt<At;)if(g.test(K[jt])){$r<jt&&(zt.splice(Dn,0,new y(1,$r,jt)),Dn+=zn);var xi=jt;for(++jt;jt<At&&g.test(K[jt]);++jt);zt.splice(Dn,0,new y(2,xi,jt)),Dn+=zn,$r=jt}else++jt;$r<At&&zt.splice(Dn,0,new y(1,$r,At))}return O=="ltr"&&(zt[0].level==1&&(Lr=w.match(/^\s+/))&&(zt[0].from=Lr[0].length,zt.unshift(new y(0,0,Lr[0].length))),X(zt).level==1&&(Lr=w.match(/\s+$/))&&(X(zt).to-=Lr[0].length,zt.push(new y(0,$-Lr[0].length,$)))),O=="rtl"?zt.reverse():zt}}();function ct(e,t){var o=e.order;return o==null&&(o=e.order=vt(e.text,t)),o}var Bt=[],Fe=function(e,t,o){if(e.addEventListener)e.addEventListener(t,o,!1);else if(e.attachEvent)e.attachEvent("on"+t,o);else{var i=e._handlers||(e._handlers={});i[t]=(i[t]||Bt).concat(o)}};function Ye(e,t){return e._handlers&&e._handlers[t]||Bt}function ke(e,t,o){if(e.removeEventListener)e.removeEventListener(t,o,!1);else if(e.detachEvent)e.detachEvent("on"+t,o);else{var i=e._handlers,a=i&&i[t];if(a){var f=se(a,o);f>-1&&(i[t]=a.slice(0,f).concat(a.slice(f+1)))}}}function ve(e,t){var o=Ye(e,t);if(!!o.length)for(var i=Array.prototype.slice.call(arguments,2),a=0;a<o.length;++a)o[a].apply(null,i)}function ze(e,t,o){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ve(e,o||t.type,e,t),nr(t)||t.codemirrorIgnore}function qe(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var o=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),i=0;i<t.length;++i)se(o,t[i])==-1&&o.push(t[i])}function et(e,t){return Ye(e,t).length>0}function Qt(e){e.prototype.on=function(t,o){Fe(this,t,o)},e.prototype.off=function(t,o){ke(this,t,o)}}function Pt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function gr(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function nr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function kn(e){Pt(e),gr(e)}function qr(e){return e.target||e.srcElement}function ss(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),B&&e.ctrlKey&&t==1&&(t=3),t}var Ki=function(){if(p&&m<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}(),Kt;function as(e){if(Kt==null){var t=E("span","\u200B");k(e,E("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Kt=t.offsetWidth<=1&&t.offsetHeight>2&&!(p&&m<8))}var o=Kt?E("span","\u200B"):E("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return o.setAttribute("cm-text",""),o}var Ui;function Tr(e){if(Ui!=null)return Ui;var t=k(e,document.createTextNode("A\u062EA")),o=H(t,0,1).getBoundingClientRect(),i=H(t,1,2).getBoundingClientRect();return q(e),!o||o.left==o.right?!1:Ui=i.right-o.right<3}var Gi=`
5
+
6
+ b`.split(/\n/).length!=3?function(e){for(var t=0,o=[],i=e.length;t<=i;){var a=e.indexOf(`
7
+ `,t);a==-1&&(a=e.length);var f=e.slice(t,e.charAt(a-1)=="\r"?a-1:a),h=f.indexOf("\r");h!=-1?(o.push(f.slice(0,h)),t+=h+1):(o.push(f),t=a+1)}return o}:function(e){return e.split(/\r\n?|\n/)},ls=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},us=function(){var e=E("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),$i=null;function _r(e){if($i!=null)return $i;var t=k(e,E("span","x")),o=t.getBoundingClientRect(),i=H(t,0,1).getBoundingClientRect();return $i=Math.abs(o.left-i.left)>1}var pr={},ir={};function fs(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),pr[e]=t}function Br(e,t){ir[e]=t}function _n(e){if(typeof e=="string"&&ir.hasOwnProperty(e))e=ir[e];else if(e&&typeof e.name=="string"&&ir.hasOwnProperty(e.name)){var t=ir[e.name];typeof t=="string"&&(t={name:t}),e=Ce(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return _n("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return _n("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function ei(e,t){t=_n(t);var o=pr[t.name];if(!o)return ei(e,"text/plain");var i=o(e,t);if(mr.hasOwnProperty(t.name)){var a=mr[t.name];for(var f in a)!a.hasOwnProperty(f)||(i.hasOwnProperty(f)&&(i["_"+f]=i[f]),i[f]=a[f])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var h in t.modeProps)i[h]=t.modeProps[h];return i}var mr={};function yr(e,t){var o=mr.hasOwnProperty(e)?mr[e]:mr[e]={};Ke(t,o)}function or(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var o={};for(var i in t){var a=t[i];a instanceof Array&&(a=a.concat([])),o[i]=a}return o}function Yi(e,t){for(var o;e.innerMode&&(o=e.innerMode(t),!(!o||o.mode==e));)t=o.state,e=o.mode;return o||{mode:e,state:t}}function Xi(e,t,o){return e.startState?e.startState(t,o):!0}var ht=function(e,t,o){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=o};ht.prototype.eol=function(){return this.pos>=this.string.length},ht.prototype.sol=function(){return this.pos==this.lineStart},ht.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ht.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ht.prototype.eat=function(e){var t=this.string.charAt(this.pos),o;if(typeof e=="string"?o=t==e:o=t&&(e.test?e.test(t):e(t)),o)return++this.pos,t},ht.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},ht.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ht.prototype.skipToEnd=function(){this.pos=this.string.length},ht.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ht.prototype.backUp=function(e){this.pos-=e},ht.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},ht.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},ht.prototype.match=function(e,t,o){if(typeof e=="string"){var i=function(h){return o?h.toLowerCase():h},a=this.string.substr(this.pos,e.length);if(i(a)==i(e))return t!==!1&&(this.pos+=e.length),!0}else{var f=this.string.slice(this.pos).match(e);return f&&f.index>0?null:(f&&t!==!1&&(this.pos+=f[0].length),f)}},ht.prototype.current=function(){return this.string.slice(this.start,this.pos)},ht.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ht.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ht.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ne(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var o=e;!o.lines;)for(var i=0;;++i){var a=o.children[i],f=a.chunkSize();if(t<f){o=a;break}t-=f}return o.lines[t]}function Pr(e,t,o){var i=[],a=t.line;return e.iter(t.line,o.line+1,function(f){var h=f.text;a==o.line&&(h=h.slice(0,o.ch)),a==t.line&&(h=h.slice(t.ch)),i.push(h),++a}),i}function Vi(e,t,o){var i=[];return e.iter(t,o,function(a){i.push(a.text)}),i}function qt(e,t){var o=t-e.height;if(o)for(var i=e;i;i=i.parent)i.height+=o}function tt(e){if(e.parent==null)return null;for(var t=e.parent,o=se(t.lines,e),i=t.parent;i;t=i,i=i.parent)for(var a=0;i.children[a]!=t;++a)o+=i.children[a].chunkSize();return o+t.first}function kr(e,t){var o=e.first;e:do{for(var i=0;i<e.children.length;++i){var a=e.children[i],f=a.height;if(t<f){e=a;continue e}t-=f,o+=a.chunkSize()}return o}while(!e.lines);for(var h=0;h<e.lines.length;++h){var g=e.lines[h],y=g.height;if(t<y)break;t-=y}return o+h}function En(e,t){return t>=e.first&&t<e.first+e.size}function Ji(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function pe(e,t,o){if(o===void 0&&(o=null),!(this instanceof pe))return new pe(e,t,o);this.line=e,this.ch=t,this.sticky=o}function C(e,t){return e.line-t.line||e.ch-t.ch}function I(e,t){return e.sticky==t.sticky&&C(e,t)==0}function fe(e){return pe(e.line,e.ch)}function ye(e,t){return C(e,t)<0?t:e}function Ge(e,t){return C(e,t)<0?e:t}function Qe(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Me(e,t){if(t.line<e.first)return pe(e.first,0);var o=e.first+e.size-1;return t.line>o?pe(o,Ne(e,o).text.length):Ft(t,Ne(e,t.line).text.length)}function Ft(e,t){var o=e.ch;return o==null||o>t?pe(e.line,t):o<0?pe(e.line,0):e}function sr(e,t){for(var o=[],i=0;i<t.length;i++)o[i]=Me(e,t[i]);return o}var ti=function(e,t){this.state=e,this.lookAhead=t},Er=function(e,t,o,i){this.state=t,this.doc=e,this.line=o,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};Er.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Er.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Er.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Er.fromSaved=function(e,t,o){return t instanceof ti?new Er(e,or(e.mode,t.state),o,t.lookAhead):new Er(e,or(e.mode,t),o)},Er.prototype.save=function(e){var t=e!==!1?or(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ti(t,this.maxLookAhead):t};function Uu(e,t,o,i){var a=[e.state.modeGen],f={};Ju(e,t.text,e.doc.mode,o,function(w,O){return a.push(w,O)},f,i);for(var h=o.state,g=function(w){o.baseTokens=a;var O=e.state.overlays[w],N=1,$=0;o.state=!0,Ju(e,t.text,O.mode,o,function(K,re){for(var ce=N;$<K;){var xe=a[N];xe>K&&a.splice(N,1,K,a[N+1],xe),N+=2,$=Math.min(K,xe)}if(!!re)if(O.opaque)a.splice(ce,N-ce,K,"overlay "+re),N=ce+2;else for(;ce<N;ce+=2){var Te=a[ce+1];a[ce+1]=(Te?Te+" ":"")+"overlay "+re}},f),o.state=h,o.baseTokens=null,o.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)g(y);return{styles:a,classes:f.bgClass||f.textClass?f:null}}function Gu(e,t,o){if(!t.styles||t.styles[0]!=e.state.modeGen){var i=Zi(e,tt(t)),a=t.text.length>e.options.maxHighlightLength&&or(e.doc.mode,i.state),f=Uu(e,t,i);a&&(i.state=a),t.stateAfter=i.save(!a),t.styles=f.styles,f.classes?t.styleClasses=f.classes:t.styleClasses&&(t.styleClasses=null),o===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Zi(e,t,o){var i=e.doc,a=e.display;if(!i.mode.startState)return new Er(i,!0,t);var f=Wp(e,t,o),h=f>i.first&&Ne(i,f-1).stateAfter,g=h?Er.fromSaved(i,h,f):new Er(i,Xi(i.mode),f);return i.iter(f,t,function(y){La(e,y.text,g);var w=g.line;y.stateAfter=w==t-1||w%5==0||w>=a.viewFrom&&w<a.viewTo?g.save():null,g.nextLine()}),o&&(i.modeFrontier=g.line),g}function La(e,t,o,i){var a=e.doc.mode,f=new ht(t,e.options.tabSize,o);for(f.start=f.pos=i||0,t==""&&$u(a,o.state);!f.eol();)Na(a,f,o.state),f.start=f.pos}function $u(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var o=Yi(e,t);if(o.mode.blankLine)return o.mode.blankLine(o.state)}}function Na(e,t,o,i){for(var a=0;a<10;a++){i&&(i[0]=Yi(e,o).mode);var f=e.token(t,o);if(t.pos>t.start)return f}throw new Error("Mode "+e.name+" failed to advance stream.")}var Yu=function(e,t,o){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=o};function Xu(e,t,o,i){var a=e.doc,f=a.mode,h;t=Me(a,t);var g=Ne(a,t.line),y=Zi(e,t.line,o),w=new ht(g.text,e.options.tabSize,y),O;for(i&&(O=[]);(i||w.pos<t.ch)&&!w.eol();)w.start=w.pos,h=Na(f,w,y.state),i&&O.push(new Yu(w,h,or(a.mode,y.state)));return i?O:new Yu(w,h,y.state)}function Vu(e,t){if(e)for(;;){var o=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!o)break;e=e.slice(0,o.index)+e.slice(o.index+o[0].length);var i=o[1]?"bgClass":"textClass";t[i]==null?t[i]=o[2]:new RegExp("(?:^|\\s)"+o[2]+"(?:$|\\s)").test(t[i])||(t[i]+=" "+o[2])}return e}function Ju(e,t,o,i,a,f,h){var g=o.flattenSpans;g==null&&(g=e.options.flattenSpans);var y=0,w=null,O=new ht(t,e.options.tabSize,i),N,$=e.options.addModeClass&&[null];for(t==""&&Vu($u(o,i.state),f);!O.eol();){if(O.pos>e.options.maxHighlightLength?(g=!1,h&&La(e,t,i,O.pos),O.pos=t.length,N=null):N=Vu(Na(o,O,i.state,$),f),$){var K=$[0].name;K&&(N="m-"+(N?K+" "+N:K))}if(!g||w!=N){for(;y<O.start;)y=Math.min(O.start,y+5e3),a(y,w);w=N}O.start=O.pos}for(;y<O.pos;){var re=Math.min(O.pos,y+5e3);a(re,w),y=re}}function Wp(e,t,o){for(var i,a,f=e.doc,h=o?-1:t-(e.doc.mode.innerMode?1e3:100),g=t;g>h;--g){if(g<=f.first)return f.first;var y=Ne(f,g-1),w=y.stateAfter;if(w&&(!o||g+(w instanceof ti?w.lookAhead:0)<=f.modeFrontier))return g;var O=Xe(y.text,null,e.options.tabSize);(a==null||i>O)&&(a=g-1,i=O)}return a}function jp(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var o=e.first,i=t-1;i>o;i--){var a=Ne(e,i).stateAfter;if(a&&(!(a instanceof ti)||i+a.lookAhead<t)){o=i+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,o)}}var Zu=!1,Wr=!1;function Kp(){Zu=!0}function Up(){Wr=!0}function cs(e,t,o){this.marker=e,this.from=t,this.to=o}function Qi(e,t){if(e)for(var o=0;o<e.length;++o){var i=e[o];if(i.marker==t)return i}}function Gp(e,t){for(var o,i=0;i<e.length;++i)e[i]!=t&&(o||(o=[])).push(e[i]);return o}function $p(e,t,o){var i=o&&window.WeakSet&&(o.markedSpans||(o.markedSpans=new WeakSet));i&&i.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],i&&i.add(e.markedSpans)),t.marker.attachLine(e)}function Yp(e,t,o){var i;if(e)for(var a=0;a<e.length;++a){var f=e[a],h=f.marker,g=f.from==null||(h.inclusiveLeft?f.from<=t:f.from<t);if(g||f.from==t&&h.type=="bookmark"&&(!o||!f.marker.insertLeft)){var y=f.to==null||(h.inclusiveRight?f.to>=t:f.to>t);(i||(i=[])).push(new cs(h,f.from,y?null:f.to))}}return i}function Xp(e,t,o){var i;if(e)for(var a=0;a<e.length;++a){var f=e[a],h=f.marker,g=f.to==null||(h.inclusiveRight?f.to>=t:f.to>t);if(g||f.from==t&&h.type=="bookmark"&&(!o||f.marker.insertLeft)){var y=f.from==null||(h.inclusiveLeft?f.from<=t:f.from<t);(i||(i=[])).push(new cs(h,y?null:f.from-t,f.to==null?null:f.to-t))}}return i}function Ia(e,t){if(t.full)return null;var o=En(e,t.from.line)&&Ne(e,t.from.line).markedSpans,i=En(e,t.to.line)&&Ne(e,t.to.line).markedSpans;if(!o&&!i)return null;var a=t.from.ch,f=t.to.ch,h=C(t.from,t.to)==0,g=Yp(o,a,h),y=Xp(i,f,h),w=t.text.length==1,O=X(t.text).length+(w?a:0);if(g)for(var N=0;N<g.length;++N){var $=g[N];if($.to==null){var K=Qi(y,$.marker);K?w&&($.to=K.to==null?null:K.to+O):$.to=a}}if(y)for(var re=0;re<y.length;++re){var ce=y[re];if(ce.to!=null&&(ce.to+=O),ce.from==null){var xe=Qi(g,ce.marker);xe||(ce.from=O,w&&(g||(g=[])).push(ce))}else ce.from+=O,w&&(g||(g=[])).push(ce)}g&&(g=Qu(g)),y&&y!=g&&(y=Qu(y));var Te=[g];if(!w){var Oe=t.text.length-2,Pe;if(Oe>0&&g)for(var Ae=0;Ae<g.length;++Ae)g[Ae].to==null&&(Pe||(Pe=[])).push(new cs(g[Ae].marker,null,null));for(var He=0;He<Oe;++He)Te.push(Pe);Te.push(y)}return Te}function Qu(e){for(var t=0;t<e.length;++t){var o=e[t];o.from!=null&&o.from==o.to&&o.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Vp(e,t,o){var i=null;if(e.iter(t.line,o.line+1,function(K){if(K.markedSpans)for(var re=0;re<K.markedSpans.length;++re){var ce=K.markedSpans[re].marker;ce.readOnly&&(!i||se(i,ce)==-1)&&(i||(i=[])).push(ce)}}),!i)return null;for(var a=[{from:t,to:o}],f=0;f<i.length;++f)for(var h=i[f],g=h.find(0),y=0;y<a.length;++y){var w=a[y];if(!(C(w.to,g.from)<0||C(w.from,g.to)>0)){var O=[y,1],N=C(w.from,g.from),$=C(w.to,g.to);(N<0||!h.inclusiveLeft&&!N)&&O.push({from:w.from,to:g.from}),($>0||!h.inclusiveRight&&!$)&&O.push({from:g.to,to:w.to}),a.splice.apply(a,O),y+=O.length-3}}return a}function qu(e){var t=e.markedSpans;if(!!t){for(var o=0;o<t.length;++o)t[o].marker.detachLine(e);e.markedSpans=null}}function _u(e,t){if(!!t){for(var o=0;o<t.length;++o)t[o].marker.attachLine(e);e.markedSpans=t}}function ds(e){return e.inclusiveLeft?-1:0}function hs(e){return e.inclusiveRight?1:0}function Ra(e,t){var o=e.lines.length-t.lines.length;if(o!=0)return o;var i=e.find(),a=t.find(),f=C(i.from,a.from)||ds(e)-ds(t);if(f)return-f;var h=C(i.to,a.to)||hs(e)-hs(t);return h||t.id-e.id}function ef(e,t){var o=Wr&&e.markedSpans,i;if(o)for(var a=void 0,f=0;f<o.length;++f)a=o[f],a.marker.collapsed&&(t?a.from:a.to)==null&&(!i||Ra(i,a.marker)<0)&&(i=a.marker);return i}function tf(e){return ef(e,!0)}function ps(e){return ef(e,!1)}function Jp(e,t){var o=Wr&&e.markedSpans,i;if(o)for(var a=0;a<o.length;++a){var f=o[a];f.marker.collapsed&&(f.from==null||f.from<t)&&(f.to==null||f.to>t)&&(!i||Ra(i,f.marker)<0)&&(i=f.marker)}return i}function rf(e,t,o,i,a){var f=Ne(e,t),h=Wr&&f.markedSpans;if(h)for(var g=0;g<h.length;++g){var y=h[g];if(!!y.marker.collapsed){var w=y.marker.find(0),O=C(w.from,o)||ds(y.marker)-ds(a),N=C(w.to,i)||hs(y.marker)-hs(a);if(!(O>=0&&N<=0||O<=0&&N>=0)&&(O<=0&&(y.marker.inclusiveRight&&a.inclusiveLeft?C(w.to,o)>=0:C(w.to,o)>0)||O>=0&&(y.marker.inclusiveRight&&a.inclusiveLeft?C(w.from,i)<=0:C(w.from,i)<0)))return!0}}}function Or(e){for(var t;t=tf(e);)e=t.find(-1,!0).line;return e}function Zp(e){for(var t;t=ps(e);)e=t.find(1,!0).line;return e}function Qp(e){for(var t,o;t=ps(e);)e=t.find(1,!0).line,(o||(o=[])).push(e);return o}function Fa(e,t){var o=Ne(e,t),i=Or(o);return o==i?t:tt(i)}function nf(e,t){if(t>e.lastLine())return t;var o=Ne(e,t),i;if(!en(e,o))return t;for(;i=ps(o);)o=i.find(1,!0).line;return tt(o)+1}function en(e,t){var o=Wr&&t.markedSpans;if(o){for(var i=void 0,a=0;a<o.length;++a)if(i=o[a],!!i.marker.collapsed){if(i.from==null)return!0;if(!i.marker.widgetNode&&i.from==0&&i.marker.inclusiveLeft&&Da(e,t,i))return!0}}}function Da(e,t,o){if(o.to==null){var i=o.marker.find(1,!0);return Da(e,i.line,Qi(i.line.markedSpans,o.marker))}if(o.marker.inclusiveRight&&o.to==t.text.length)return!0;for(var a=void 0,f=0;f<t.markedSpans.length;++f)if(a=t.markedSpans[f],a.marker.collapsed&&!a.marker.widgetNode&&a.from==o.to&&(a.to==null||a.to!=o.from)&&(a.marker.inclusiveLeft||o.marker.inclusiveRight)&&Da(e,t,a))return!0}function jr(e){e=Or(e);for(var t=0,o=e.parent,i=0;i<o.lines.length;++i){var a=o.lines[i];if(a==e)break;t+=a.height}for(var f=o.parent;f;o=f,f=o.parent)for(var h=0;h<f.children.length;++h){var g=f.children[h];if(g==o)break;t+=g.height}return t}function vs(e){if(e.height==0)return 0;for(var t=e.text.length,o,i=e;o=tf(i);){var a=o.find(0,!0);i=a.from.line,t+=a.from.ch-a.to.ch}for(i=e;o=ps(i);){var f=o.find(0,!0);t-=i.text.length-f.from.ch,i=f.to.line,t+=i.text.length-f.to.ch}return t}function za(e){var t=e.display,o=e.doc;t.maxLine=Ne(o,o.first),t.maxLineLength=vs(t.maxLine),t.maxLineChanged=!0,o.iter(function(i){var a=vs(i);a>t.maxLineLength&&(t.maxLineLength=a,t.maxLine=i)})}var ri=function(e,t,o){this.text=e,_u(this,t),this.height=o?o(this):1};ri.prototype.lineNo=function(){return tt(this)},Qt(ri);function qp(e,t,o,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),qu(e),_u(e,o);var a=i?i(e):1;a!=e.height&&qt(e,a)}function _p(e){e.parent=null,qu(e)}var ev={},tv={};function of(e,t){if(!e||/^\s*$/.test(e))return null;var o=t.addModeClass?tv:ev;return o[e]||(o[e]=e.replace(/\S+/g,"cm-$&"))}function sf(e,t){var o=x("span",null,null,b?"padding-right: .1px":null),i={pre:x("pre",[o],"CodeMirror-line"),content:o,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var a=0;a<=(t.rest?t.rest.length:0);a++){var f=a?t.rest[a-1]:t.line,h=void 0;i.pos=0,i.addToken=nv,Tr(e.display.measure)&&(h=ct(f,e.doc.direction))&&(i.addToken=ov(i.addToken,h)),i.map=[];var g=t!=e.display.externalMeasured&&tt(f);sv(f,i,Gu(e,f,g)),f.styleClasses&&(f.styleClasses.bgClass&&(i.bgClass=he(f.styleClasses.bgClass,i.bgClass||"")),f.styleClasses.textClass&&(i.textClass=he(f.styleClasses.textClass,i.textClass||""))),i.map.length==0&&i.map.push(0,0,i.content.appendChild(as(e.display.measure))),a==0?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(b){var y=i.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=he(i.pre.className,i.textClass||"")),i}function rv(e){var t=E("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function nv(e,t,o,i,a,f,h){if(!!t){var g=e.splitSpaces?iv(t,e.trailingSpace):t,y=e.cm.state.specialChars,w=!1,O;if(!y.test(t))e.col+=t.length,O=document.createTextNode(g),e.map.push(e.pos,e.pos+t.length,O),p&&m<9&&(w=!0),e.pos+=t.length;else{O=document.createDocumentFragment();for(var N=0;;){y.lastIndex=N;var $=y.exec(t),K=$?$.index-N:t.length-N;if(K){var re=document.createTextNode(g.slice(N,N+K));p&&m<9?O.appendChild(E("span",[re])):O.appendChild(re),e.map.push(e.pos,e.pos+K,re),e.col+=K,e.pos+=K}if(!$)break;N+=K+1;var ce=void 0;if($[0]==" "){var xe=e.cm.options.tabSize,Te=xe-e.col%xe;ce=O.appendChild(E("span",j(Te),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),e.col+=Te}else $[0]=="\r"||$[0]==`
8
+ `?(ce=O.appendChild(E("span",$[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ce.setAttribute("cm-text",$[0]),e.col+=1):(ce=e.cm.options.specialCharPlaceholder($[0]),ce.setAttribute("cm-text",$[0]),p&&m<9?O.appendChild(E("span",[ce])):O.appendChild(ce),e.col+=1);e.map.push(e.pos,e.pos+1,ce),e.pos++}}if(e.trailingSpace=g.charCodeAt(t.length-1)==32,o||i||a||w||f||h){var Oe=o||"";i&&(Oe+=i),a&&(Oe+=a);var Pe=E("span",[O],Oe,f);if(h)for(var Ae in h)h.hasOwnProperty(Ae)&&Ae!="style"&&Ae!="class"&&Pe.setAttribute(Ae,h[Ae]);return e.content.appendChild(Pe)}e.content.appendChild(O)}}function iv(e,t){if(e.length>1&&!/ /.test(e))return e;for(var o=t,i="",a=0;a<e.length;a++){var f=e.charAt(a);f==" "&&o&&(a==e.length-1||e.charCodeAt(a+1)==32)&&(f="\xA0"),i+=f,o=f==" "}return i}function ov(e,t){return function(o,i,a,f,h,g,y){a=a?a+" cm-force-border":"cm-force-border";for(var w=o.pos,O=w+i.length;;){for(var N=void 0,$=0;$<t.length&&(N=t[$],!(N.to>w&&N.from<=w));$++);if(N.to>=O)return e(o,i,a,f,h,g,y);e(o,i.slice(0,N.to-w),a,f,null,g,y),f=null,i=i.slice(N.to-w),w=N.to}}}function af(e,t,o,i){var a=!i&&o.widgetNode;a&&e.map.push(e.pos,e.pos+t,a),!i&&e.cm.display.input.needsContentAttribute&&(a||(a=e.content.appendChild(document.createElement("span"))),a.setAttribute("cm-marker",o.id)),a&&(e.cm.display.input.setUneditable(a),e.content.appendChild(a)),e.pos+=t,e.trailingSpace=!1}function sv(e,t,o){var i=e.markedSpans,a=e.text,f=0;if(!i){for(var h=1;h<o.length;h+=2)t.addToken(t,a.slice(f,f=o[h]),of(o[h+1],t.cm.options));return}for(var g=a.length,y=0,w=1,O="",N,$,K=0,re,ce,xe,Te,Oe;;){if(K==y){re=ce=xe=$="",Oe=null,Te=null,K=1/0;for(var Pe=[],Ae=void 0,He=0;He<i.length;++He){var De=i[He],Ze=De.marker;if(Ze.type=="bookmark"&&De.from==y&&Ze.widgetNode)Pe.push(Ze);else if(De.from<=y&&(De.to==null||De.to>y||Ze.collapsed&&De.to==y&&De.from==y)){if(De.to!=null&&De.to!=y&&K>De.to&&(K=De.to,ce=""),Ze.className&&(re+=" "+Ze.className),Ze.css&&($=($?$+";":"")+Ze.css),Ze.startStyle&&De.from==y&&(xe+=" "+Ze.startStyle),Ze.endStyle&&De.to==K&&(Ae||(Ae=[])).push(Ze.endStyle,De.to),Ze.title&&((Oe||(Oe={})).title=Ze.title),Ze.attributes)for(var at in Ze.attributes)(Oe||(Oe={}))[at]=Ze.attributes[at];Ze.collapsed&&(!Te||Ra(Te.marker,Ze)<0)&&(Te=De)}else De.from>y&&K>De.from&&(K=De.from)}if(Ae)for(var Mt=0;Mt<Ae.length;Mt+=2)Ae[Mt+1]==K&&(ce+=" "+Ae[Mt]);if(!Te||Te.from==y)for(var dt=0;dt<Pe.length;++dt)af(t,0,Pe[dt]);if(Te&&(Te.from||0)==y){if(af(t,(Te.to==null?g+1:Te.to)-y,Te.marker,Te.from==null),Te.to==null)return;Te.to==y&&(Te=!1)}}if(y>=g)break;for(var er=Math.min(g,K);;){if(O){var $t=y+O.length;if(!Te){var wt=$t>er?O.slice(0,er-y):O;t.addToken(t,wt,N?N+re:re,xe,y+wt.length==K?ce:"",$,Oe)}if($t>=er){O=O.slice(er-y),y=er;break}y=$t,xe=""}O=a.slice(f,f=o[w++]),N=of(o[w++],t.cm.options)}}}function lf(e,t,o){this.line=t,this.rest=Qp(t),this.size=this.rest?tt(X(this.rest))-o+1:1,this.node=this.text=null,this.hidden=en(e,t)}function gs(e,t,o){for(var i=[],a,f=t;f<o;f=a){var h=new lf(e.doc,Ne(e.doc,f),f);a=f+h.size,i.push(h)}return i}var ni=null;function av(e){ni?ni.ops.push(e):e.ownsGroup=ni={ops:[e],delayedCallbacks:[]}}function lv(e){var t=e.delayedCallbacks,o=0;do{for(;o<t.length;o++)t[o].call(null);for(var i=0;i<e.ops.length;i++){var a=e.ops[i];if(a.cursorActivityHandlers)for(;a.cursorActivityCalled<a.cursorActivityHandlers.length;)a.cursorActivityHandlers[a.cursorActivityCalled++].call(null,a.cm)}}while(o<t.length)}function uv(e,t){var o=e.ownsGroup;if(!!o)try{lv(o)}finally{ni=null,t(o)}}var qi=null;function kt(e,t){var o=Ye(e,t);if(!!o.length){var i=Array.prototype.slice.call(arguments,2),a;ni?a=ni.delayedCallbacks:qi?a=qi:(a=qi=[],setTimeout(fv,0));for(var f=function(g){a.push(function(){return o[g].apply(null,i)})},h=0;h<o.length;++h)f(h)}}function fv(){var e=qi;qi=null;for(var t=0;t<e.length;++t)e[t]()}function uf(e,t,o,i){for(var a=0;a<t.changes.length;a++){var f=t.changes[a];f=="text"?dv(e,t):f=="gutter"?cf(e,t,o,i):f=="class"?Ha(e,t):f=="widget"&&hv(e,t,i)}t.changes=null}function _i(e){return e.node==e.text&&(e.node=E("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),p&&m<8&&(e.node.style.zIndex=2)),e.node}function cv(e,t){var o=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(o&&(o+=" CodeMirror-linebackground"),t.background)o?t.background.className=o:(t.background.parentNode.removeChild(t.background),t.background=null);else if(o){var i=_i(t);t.background=i.insertBefore(E("div",null,o),i.firstChild),e.display.input.setUneditable(t.background)}}function ff(e,t){var o=e.display.externalMeasured;return o&&o.line==t.line?(e.display.externalMeasured=null,t.measure=o.measure,o.built):sf(e,t)}function dv(e,t){var o=t.text.className,i=ff(e,t);t.text==t.node&&(t.node=i.pre),t.text.parentNode.replaceChild(i.pre,t.text),t.text=i.pre,i.bgClass!=t.bgClass||i.textClass!=t.textClass?(t.bgClass=i.bgClass,t.textClass=i.textClass,Ha(e,t)):o&&(t.text.className=o)}function Ha(e,t){cv(e,t),t.line.wrapClass?_i(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var o=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=o||""}function cf(e,t,o,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var a=_i(t);t.gutterBackground=E("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),a.insertBefore(t.gutterBackground,t.text)}var f=t.line.gutterMarkers;if(e.options.lineNumbers||f){var h=_i(t),g=t.gutter=E("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(g.setAttribute("aria-hidden","true"),e.display.input.setUneditable(g),h.insertBefore(g,t.text),t.line.gutterClass&&(g.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!f||!f["CodeMirror-linenumbers"])&&(t.lineNumber=g.appendChild(E("div",Ji(e.options,o),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),f)for(var y=0;y<e.display.gutterSpecs.length;++y){var w=e.display.gutterSpecs[y].className,O=f.hasOwnProperty(w)&&f[w];O&&g.appendChild(E("div",[O],"CodeMirror-gutter-elt","left: "+i.gutterLeft[w]+"px; width: "+i.gutterWidth[w]+"px"))}}}function hv(e,t,o){t.alignable&&(t.alignable=null);for(var i=ie("CodeMirror-linewidget"),a=t.node.firstChild,f=void 0;a;a=f)f=a.nextSibling,i.test(a.className)&&t.node.removeChild(a);df(e,t,o)}function pv(e,t,o,i){var a=ff(e,t);return t.text=t.node=a.pre,a.bgClass&&(t.bgClass=a.bgClass),a.textClass&&(t.textClass=a.textClass),Ha(e,t),cf(e,t,o,i),df(e,t,i),t.node}function df(e,t,o){if(hf(e,t.line,t,o,!0),t.rest)for(var i=0;i<t.rest.length;i++)hf(e,t.rest[i],t,o,!1)}function hf(e,t,o,i,a){if(!!t.widgets)for(var f=_i(o),h=0,g=t.widgets;h<g.length;++h){var y=g[h],w=E("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||w.setAttribute("cm-ignore-events","true"),vv(y,w,o,i),e.display.input.setUneditable(w),a&&y.above?f.insertBefore(w,o.gutter||o.text):f.appendChild(w),kt(y,"redraw")}}function vv(e,t,o,i){if(e.noHScroll){(o.alignable||(o.alignable=[])).push(t);var a=i.wrapperWidth;t.style.left=i.fixedPos+"px",e.coverGutter||(a-=i.gutterTotalWidth,t.style.paddingLeft=i.gutterTotalWidth+"px"),t.style.width=a+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-i.gutterTotalWidth+"px"))}function eo(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!z(document.body,e.node)){var o="position: relative;";e.coverGutter&&(o+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(o+="width: "+t.display.wrapper.clientWidth+"px;"),k(t.display.measure,E("div",[e.node],null,o))}return e.height=e.node.parentNode.offsetHeight}function Kr(e,t){for(var o=qr(t);o!=e.wrapper;o=o.parentNode)if(!o||o.nodeType==1&&o.getAttribute("cm-ignore-events")=="true"||o.parentNode==e.sizer&&o!=e.mover)return!0}function ms(e){return e.lineSpace.offsetTop}function Ba(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function pf(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=k(e.measure,E("pre","x","CodeMirror-line-like")),o=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,i={left:parseInt(o.paddingLeft),right:parseInt(o.paddingRight)};return!isNaN(i.left)&&!isNaN(i.right)&&(e.cachedPaddingH=i),i}function Mr(e){return ae-e.display.nativeBarWidth}function On(e){return e.display.scroller.clientWidth-Mr(e)-e.display.barWidth}function Wa(e){return e.display.scroller.clientHeight-Mr(e)-e.display.barHeight}function gv(e,t,o){var i=e.options.lineWrapping,a=i&&On(e);if(!t.measure.heights||i&&t.measure.width!=a){var f=t.measure.heights=[];if(i){t.measure.width=a;for(var h=t.text.firstChild.getClientRects(),g=0;g<h.length-1;g++){var y=h[g],w=h[g+1];Math.abs(y.bottom-w.bottom)>2&&f.push((y.bottom+w.top)/2-o.top)}}f.push(o.bottom-o.top)}}function vf(e,t,o){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var i=0;i<e.rest.length;i++)if(e.rest[i]==t)return{map:e.measure.maps[i],cache:e.measure.caches[i]};for(var a=0;a<e.rest.length;a++)if(tt(e.rest[a])>o)return{map:e.measure.maps[a],cache:e.measure.caches[a],before:!0}}}function mv(e,t){t=Or(t);var o=tt(t),i=e.display.externalMeasured=new lf(e.doc,t,o);i.lineN=o;var a=i.built=sf(e,i);return i.text=a.pre,k(e.display.lineMeasure,a.pre),i}function gf(e,t,o,i){return Ar(e,ii(e,t),o,i)}function ja(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Ln(e,t)];var o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size)return o}function ii(e,t){var o=tt(t),i=ja(e,o);i&&!i.text?i=null:i&&i.changes&&(uf(e,i,o,Ya(e)),e.curOp.forceUpdate=!0),i||(i=mv(e,t));var a=vf(i,t,o);return{line:t,view:i,rect:null,map:a.map,cache:a.cache,before:a.before,hasHeights:!1}}function Ar(e,t,o,i,a){t.before&&(o=-1);var f=o+(i||""),h;return t.cache.hasOwnProperty(f)?h=t.cache[f]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(gv(e,t.view,t.rect),t.hasHeights=!0),h=bv(e,t,o,i),h.bogus||(t.cache[f]=h)),{left:h.left,right:h.right,top:a?h.rtop:h.top,bottom:a?h.rbottom:h.bottom}}var mf={left:0,right:0,top:0,bottom:0};function yf(e,t,o){for(var i,a,f,h,g,y,w=0;w<e.length;w+=3)if(g=e[w],y=e[w+1],t<g?(a=0,f=1,h="left"):t<y?(a=t-g,f=a+1):(w==e.length-3||t==y&&e[w+3]>t)&&(f=y-g,a=f-1,t>=y&&(h="right")),a!=null){if(i=e[w+2],g==y&&o==(i.insertLeft?"left":"right")&&(h=o),o=="left"&&a==0)for(;w&&e[w-2]==e[w-3]&&e[w-1].insertLeft;)i=e[(w-=3)+2],h="left";if(o=="right"&&a==y-g)for(;w<e.length-3&&e[w+3]==e[w+4]&&!e[w+5].insertLeft;)i=e[(w+=3)+2],h="right";break}return{node:i,start:a,end:f,collapse:h,coverStart:g,coverEnd:y}}function yv(e,t){var o=mf;if(t=="left")for(var i=0;i<e.length&&(o=e[i]).left==o.right;i++);else for(var a=e.length-1;a>=0&&(o=e[a]).left==o.right;a--);return o}function bv(e,t,o,i){var a=yf(t.map,o,i),f=a.node,h=a.start,g=a.end,y=a.collapse,w;if(f.nodeType==3){for(var O=0;O<4;O++){for(;h&&Se(t.line.text.charAt(a.coverStart+h));)--h;for(;a.coverStart+g<a.coverEnd&&Se(t.line.text.charAt(a.coverStart+g));)++g;if(p&&m<9&&h==0&&g==a.coverEnd-a.coverStart?w=f.parentNode.getBoundingClientRect():w=yv(H(f,h,g).getClientRects(),i),w.left||w.right||h==0)break;g=h,h=h-1,y="right"}p&&m<11&&(w=xv(e.display.measure,w))}else{h>0&&(y=i="right");var N;e.options.lineWrapping&&(N=f.getClientRects()).length>1?w=N[i=="right"?N.length-1:0]:w=f.getBoundingClientRect()}if(p&&m<9&&!h&&(!w||!w.left&&!w.right)){var $=f.parentNode.getClientRects()[0];$?w={left:$.left,right:$.left+si(e.display),top:$.top,bottom:$.bottom}:w=mf}for(var K=w.top-t.rect.top,re=w.bottom-t.rect.top,ce=(K+re)/2,xe=t.view.measure.heights,Te=0;Te<xe.length-1&&!(ce<xe[Te]);Te++);var Oe=Te?xe[Te-1]:0,Pe=xe[Te],Ae={left:(y=="right"?w.right:w.left)-t.rect.left,right:(y=="left"?w.left:w.right)-t.rect.left,top:Oe,bottom:Pe};return!w.left&&!w.right&&(Ae.bogus=!0),e.options.singleCursorHeightPerLine||(Ae.rtop=K,Ae.rbottom=re),Ae}function xv(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!_r(e))return t;var o=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*o,right:t.right*o,top:t.top*i,bottom:t.bottom*i}}function bf(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function xf(e){e.display.externalMeasure=null,q(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)bf(e.display.view[t])}function to(e){xf(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function wf(){return T&&M?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sf(){return T&&M?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ka(e){var t=0;if(e.widgets)for(var o=0;o<e.widgets.length;++o)e.widgets[o].above&&(t+=eo(e.widgets[o]));return t}function ys(e,t,o,i,a){if(!a){var f=Ka(t);o.top+=f,o.bottom+=f}if(i=="line")return o;i||(i="local");var h=jr(t);if(i=="local"?h+=ms(e.display):h-=e.display.viewOffset,i=="page"||i=="window"){var g=e.display.lineSpace.getBoundingClientRect();h+=g.top+(i=="window"?0:Sf());var y=g.left+(i=="window"?0:wf());o.left+=y,o.right+=y}return o.top+=h,o.bottom+=h,o}function Cf(e,t,o){if(o=="div")return t;var i=t.left,a=t.top;if(o=="page")i-=wf(),a-=Sf();else if(o=="local"||!o){var f=e.display.sizer.getBoundingClientRect();i+=f.left,a+=f.top}var h=e.display.lineSpace.getBoundingClientRect();return{left:i-h.left,top:a-h.top}}function bs(e,t,o,i,a){return i||(i=Ne(e.doc,t.line)),ys(e,i,gf(e,i,t.ch,a),o)}function br(e,t,o,i,a,f){i=i||Ne(e.doc,t.line),a||(a=ii(e,i));function h(re,ce){var xe=Ar(e,a,re,ce?"right":"left",f);return ce?xe.left=xe.right:xe.right=xe.left,ys(e,i,xe,o)}var g=ct(i,e.doc.direction),y=t.ch,w=t.sticky;if(y>=i.text.length?(y=i.text.length,w="before"):y<=0&&(y=0,w="after"),!g)return h(w=="before"?y-1:y,w=="before");function O(re,ce,xe){var Te=g[ce],Oe=Te.level==1;return h(xe?re-1:re,Oe!=xe)}var N=Ue(g,y,w),$=Je,K=O(y,N,w=="before");return $!=null&&(K.other=O(y,$,w!="before")),K}function Tf(e,t){var o=0;t=Me(e.doc,t),e.options.lineWrapping||(o=si(e.display)*t.ch);var i=Ne(e.doc,t.line),a=jr(i)+ms(e.display);return{left:o,right:o,top:a,bottom:a+i.height}}function Ua(e,t,o,i,a){var f=pe(e,t,o);return f.xRel=a,i&&(f.outside=i),f}function Ga(e,t,o){var i=e.doc;if(o+=e.display.viewOffset,o<0)return Ua(i.first,0,null,-1,-1);var a=kr(i,o),f=i.first+i.size-1;if(a>f)return Ua(i.first+i.size-1,Ne(i,f).text.length,null,1,1);t<0&&(t=0);for(var h=Ne(i,a);;){var g=wv(e,h,a,t,o),y=Jp(h,g.ch+(g.xRel>0||g.outside>0?1:0));if(!y)return g;var w=y.find(1);if(w.line==a)return w;h=Ne(i,a=w.line)}}function Pf(e,t,o,i){i-=Ka(t);var a=t.text.length,f=$e(function(h){return Ar(e,o,h-1).bottom<=i},a,0);return a=$e(function(h){return Ar(e,o,h).top>i},f,a),{begin:f,end:a}}function kf(e,t,o,i){o||(o=ii(e,t));var a=ys(e,t,Ar(e,o,i),"line").top;return Pf(e,t,o,a)}function $a(e,t,o,i){return e.bottom<=o?!1:e.top>o?!0:(i?e.left:e.right)>t}function wv(e,t,o,i,a){a-=jr(t);var f=ii(e,t),h=Ka(t),g=0,y=t.text.length,w=!0,O=ct(t,e.doc.direction);if(O){var N=(e.options.lineWrapping?Cv:Sv)(e,t,o,f,O,i,a);w=N.level!=1,g=w?N.from:N.to-1,y=w?N.to:N.from-1}var $=null,K=null,re=$e(function(He){var De=Ar(e,f,He);return De.top+=h,De.bottom+=h,$a(De,i,a,!1)?(De.top<=a&&De.left<=i&&($=He,K=De),!0):!1},g,y),ce,xe,Te=!1;if(K){var Oe=i-K.left<K.right-i,Pe=Oe==w;re=$+(Pe?0:1),xe=Pe?"after":"before",ce=Oe?K.left:K.right}else{!w&&(re==y||re==g)&&re++,xe=re==0?"after":re==t.text.length?"before":Ar(e,f,re-(w?1:0)).bottom+h<=a==w?"after":"before";var Ae=br(e,pe(o,re,xe),"line",t,f);ce=Ae.left,Te=a<Ae.top?-1:a>=Ae.bottom?1:0}return re=Re(t.text,re,1),Ua(o,re,xe,Te,i-ce)}function Sv(e,t,o,i,a,f,h){var g=$e(function(N){var $=a[N],K=$.level!=1;return $a(br(e,pe(o,K?$.to:$.from,K?"before":"after"),"line",t,i),f,h,!0)},0,a.length-1),y=a[g];if(g>0){var w=y.level!=1,O=br(e,pe(o,w?y.from:y.to,w?"after":"before"),"line",t,i);$a(O,f,h,!0)&&O.top>h&&(y=a[g-1])}return y}function Cv(e,t,o,i,a,f,h){var g=Pf(e,t,i,h),y=g.begin,w=g.end;/\s/.test(t.text.charAt(w-1))&&w--;for(var O=null,N=null,$=0;$<a.length;$++){var K=a[$];if(!(K.from>=w||K.to<=y)){var re=K.level!=1,ce=Ar(e,i,re?Math.min(w,K.to)-1:Math.max(y,K.from)).right,xe=ce<f?f-ce+1e9:ce-f;(!O||N>xe)&&(O=K,N=xe)}}return O||(O=a[a.length-1]),O.from<y&&(O={from:y,to:O.to,level:O.level}),O.to>w&&(O={from:O.from,to:w,level:O.level}),O}var Mn;function oi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Mn==null){Mn=E("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Mn.appendChild(document.createTextNode("x")),Mn.appendChild(E("br"));Mn.appendChild(document.createTextNode("x"))}k(e.measure,Mn);var o=Mn.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),q(e.measure),o||1}function si(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=E("span","xxxxxxxxxx"),o=E("pre",[t],"CodeMirror-line-like");k(e.measure,o);var i=t.getBoundingClientRect(),a=(i.right-i.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function Ya(e){for(var t=e.display,o={},i={},a=t.gutters.clientLeft,f=t.gutters.firstChild,h=0;f;f=f.nextSibling,++h){var g=e.display.gutterSpecs[h].className;o[g]=f.offsetLeft+f.clientLeft+a,i[g]=f.clientWidth}return{fixedPos:Xa(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:o,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function Xa(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ef(e){var t=oi(e.display),o=e.options.lineWrapping,i=o&&Math.max(5,e.display.scroller.clientWidth/si(e.display)-3);return function(a){if(en(e.doc,a))return 0;var f=0;if(a.widgets)for(var h=0;h<a.widgets.length;h++)a.widgets[h].height&&(f+=a.widgets[h].height);return o?f+(Math.ceil(a.text.length/i)||1)*t:f+t}}function Va(e){var t=e.doc,o=Ef(e);t.iter(function(i){var a=o(i);a!=i.height&&qt(i,a)})}function An(e,t,o,i){var a=e.display;if(!o&&qr(t).getAttribute("cm-not-content")=="true")return null;var f,h,g=a.lineSpace.getBoundingClientRect();try{f=t.clientX-g.left,h=t.clientY-g.top}catch{return null}var y=Ga(e,f,h),w;if(i&&y.xRel>0&&(w=Ne(e.doc,y.line).text).length==y.ch){var O=Xe(w,w.length,e.options.tabSize)-w.length;y=pe(y.line,Math.max(0,Math.round((f-pf(e.display).left)/si(e.display))-O))}return y}function Ln(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var o=e.display.view,i=0;i<o.length;i++)if(t-=o[i].size,t<0)return i}function Ut(e,t,o,i){t==null&&(t=e.doc.first),o==null&&(o=e.doc.first+e.doc.size),i||(i=0);var a=e.display;if(i&&o<a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>t)&&(a.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=a.viewTo)Wr&&Fa(e.doc,t)<a.viewTo&&rn(e);else if(o<=a.viewFrom)Wr&&nf(e.doc,o+i)>a.viewFrom?rn(e):(a.viewFrom+=i,a.viewTo+=i);else if(t<=a.viewFrom&&o>=a.viewTo)rn(e);else if(t<=a.viewFrom){var f=xs(e,o,o+i,1);f?(a.view=a.view.slice(f.index),a.viewFrom=f.lineN,a.viewTo+=i):rn(e)}else if(o>=a.viewTo){var h=xs(e,t,t,-1);h?(a.view=a.view.slice(0,h.index),a.viewTo=h.lineN):rn(e)}else{var g=xs(e,t,t,-1),y=xs(e,o,o+i,1);g&&y?(a.view=a.view.slice(0,g.index).concat(gs(e,g.lineN,y.lineN)).concat(a.view.slice(y.index)),a.viewTo+=i):rn(e)}var w=a.externalMeasured;w&&(o<w.lineN?w.lineN+=i:t<w.lineN+w.size&&(a.externalMeasured=null))}function tn(e,t,o){e.curOp.viewChanged=!0;var i=e.display,a=e.display.externalMeasured;if(a&&t>=a.lineN&&t<a.lineN+a.size&&(i.externalMeasured=null),!(t<i.viewFrom||t>=i.viewTo)){var f=i.view[Ln(e,t)];if(f.node!=null){var h=f.changes||(f.changes=[]);se(h,o)==-1&&h.push(o)}}}function rn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function xs(e,t,o,i){var a=Ln(e,t),f,h=e.display.view;if(!Wr||o==e.doc.first+e.doc.size)return{index:a,lineN:o};for(var g=e.display.viewFrom,y=0;y<a;y++)g+=h[y].size;if(g!=t){if(i>0){if(a==h.length-1)return null;f=g+h[a].size-t,a++}else f=g-t;t+=f,o+=f}for(;Fa(e.doc,o)!=o;){if(a==(i<0?0:h.length-1))return null;o+=i*h[a-(i<0?1:0)].size,a+=i}return{index:a,lineN:o}}function Tv(e,t,o){var i=e.display,a=i.view;a.length==0||t>=i.viewTo||o<=i.viewFrom?(i.view=gs(e,t,o),i.viewFrom=t):(i.viewFrom>t?i.view=gs(e,t,i.viewFrom).concat(i.view):i.viewFrom<t&&(i.view=i.view.slice(Ln(e,t))),i.viewFrom=t,i.viewTo<o?i.view=i.view.concat(gs(e,i.viewTo,o)):i.viewTo>o&&(i.view=i.view.slice(0,Ln(e,o)))),i.viewTo=o}function Of(e){for(var t=e.display.view,o=0,i=0;i<t.length;i++){var a=t[i];!a.hidden&&(!a.node||a.changes)&&++o}return o}function ro(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Mf(e,t){t===void 0&&(t=!0);var o=e.doc,i={},a=i.cursors=document.createDocumentFragment(),f=i.selection=document.createDocumentFragment(),h=e.options.$customCursor;h&&(t=!0);for(var g=0;g<o.sel.ranges.length;g++)if(!(!t&&g==o.sel.primIndex)){var y=o.sel.ranges[g];if(!(y.from().line>=e.display.viewTo||y.to().line<e.display.viewFrom)){var w=y.empty();if(h){var O=h(e,y);O&&Ja(e,O,a)}else(w||e.options.showCursorWhenSelecting)&&Ja(e,y.head,a);w||Pv(e,y,f)}}return i}function Ja(e,t,o){var i=br(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),a=o.appendChild(E("div","\xA0","CodeMirror-cursor"));if(a.style.left=i.left+"px",a.style.top=i.top+"px",a.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var f=bs(e,t,"div",null,null),h=f.right-f.left;a.style.width=(h>0?h:e.defaultCharWidth())+"px"}if(i.other){var g=o.appendChild(E("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));g.style.display="",g.style.left=i.other.left+"px",g.style.top=i.other.top+"px",g.style.height=(i.other.bottom-i.other.top)*.85+"px"}}function ws(e,t){return e.top-t.top||e.left-t.left}function Pv(e,t,o){var i=e.display,a=e.doc,f=document.createDocumentFragment(),h=pf(e.display),g=h.left,y=Math.max(i.sizerWidth,On(e)-i.sizer.offsetLeft)-h.right,w=a.direction=="ltr";function O(Pe,Ae,He,De){Ae<0&&(Ae=0),Ae=Math.round(Ae),De=Math.round(De),f.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+Pe+`px;
9
+ top: `+Ae+"px; width: "+(He==null?y-Pe:He)+`px;
10
+ height: `+(De-Ae)+"px"))}function N(Pe,Ae,He){var De=Ne(a,Pe),Ze=De.text.length,at,Mt;function dt(wt,Yt){return bs(e,pe(Pe,wt),"div",De,Yt)}function er(wt,Yt,It){var Ct=kf(e,De,null,wt),St=Yt=="ltr"==(It=="after")?"left":"right",pt=It=="after"?Ct.begin:Ct.end-(/\s/.test(De.text.charAt(Ct.end-1))?2:1);return dt(pt,St)[St]}var $t=ct(De,a.direction);return it($t,Ae||0,He==null?Ze:He,function(wt,Yt,It,Ct){var St=It=="ltr",pt=dt(wt,St?"left":"right"),Xt=dt(Yt-1,St?"right":"left"),bi=Ae==null&&wt==0,un=He==null&&Yt==Ze,zt=Ct==0,Lr=!$t||Ct==$t.length-1;if(Xt.top-pt.top<=3){var At=(w?bi:un)&&zt,wl=(w?un:bi)&&Lr,$r=At?g:(St?pt:Xt).left,Dn=wl?y:(St?Xt:pt).right;O($r,pt.top,Dn-$r,pt.bottom)}else{var zn,jt,xi,Sl;St?(zn=w&&bi&&zt?g:pt.left,jt=w?y:er(wt,It,"before"),xi=w?g:er(Yt,It,"after"),Sl=w&&un&&Lr?y:Xt.right):(zn=w?er(wt,It,"before"):g,jt=!w&&bi&&zt?y:pt.right,xi=!w&&un&&Lr?g:Xt.left,Sl=w?er(Yt,It,"after"):y),O(zn,pt.top,jt-zn,pt.bottom),pt.bottom<Xt.top&&O(g,pt.bottom,null,Xt.top),O(xi,Xt.top,Sl-xi,Xt.bottom)}(!at||ws(pt,at)<0)&&(at=pt),ws(Xt,at)<0&&(at=Xt),(!Mt||ws(pt,Mt)<0)&&(Mt=pt),ws(Xt,Mt)<0&&(Mt=Xt)}),{start:at,end:Mt}}var $=t.from(),K=t.to();if($.line==K.line)N($.line,$.ch,K.ch);else{var re=Ne(a,$.line),ce=Ne(a,K.line),xe=Or(re)==Or(ce),Te=N($.line,$.ch,xe?re.text.length+1:null).end,Oe=N(K.line,xe?0:null,K.ch).start;xe&&(Te.top<Oe.top-2?(O(Te.right,Te.top,null,Te.bottom),O(g,Oe.top,Oe.left,Oe.bottom)):O(Te.right,Te.top,Oe.left-Te.right,Te.bottom)),Te.bottom<Oe.top&&O(g,Te.bottom,null,Oe.top)}o.appendChild(f)}function Za(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var o=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||ai(e),t.cursorDiv.style.visibility=(o=!o)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Af(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||qa(e))}function Qa(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ai(e))},100)}function qa(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,ue(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),b&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Za(e))}function ai(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,Q(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ss(e){for(var t=e.display,o=t.lineDiv.offsetTop,i=Math.max(0,t.scroller.getBoundingClientRect().top),a=t.lineDiv.getBoundingClientRect().top,f=0,h=0;h<t.view.length;h++){var g=t.view[h],y=e.options.lineWrapping,w=void 0,O=0;if(!g.hidden){if(a+=g.line.height,p&&m<8){var N=g.node.offsetTop+g.node.offsetHeight;w=N-o,o=N}else{var $=g.node.getBoundingClientRect();w=$.bottom-$.top,!y&&g.text.firstChild&&(O=g.text.firstChild.getBoundingClientRect().right-$.left-1)}var K=g.line.height-w;if((K>.005||K<-.005)&&(a<i&&(f-=K),qt(g.line,w),Lf(g.line),g.rest))for(var re=0;re<g.rest.length;re++)Lf(g.rest[re]);if(O>e.display.sizerWidth){var ce=Math.ceil(O/si(e.display));ce>e.display.maxLineLength&&(e.display.maxLineLength=ce,e.display.maxLine=g.line,e.display.maxLineChanged=!0)}}}Math.abs(f)>2&&(t.scroller.scrollTop+=f)}function Lf(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var o=e.widgets[t],i=o.node.parentNode;i&&(o.height=i.offsetHeight)}}function Cs(e,t,o){var i=o&&o.top!=null?Math.max(0,o.top):e.scroller.scrollTop;i=Math.floor(i-ms(e));var a=o&&o.bottom!=null?o.bottom:i+e.wrapper.clientHeight,f=kr(t,i),h=kr(t,a);if(o&&o.ensure){var g=o.ensure.from.line,y=o.ensure.to.line;g<f?(f=g,h=kr(t,jr(Ne(t,g))+e.wrapper.clientHeight)):Math.min(y,t.lastLine())>=h&&(f=kr(t,jr(Ne(t,y))-e.wrapper.clientHeight),h=y)}return{from:f,to:Math.max(h,f+1)}}function kv(e,t){if(!ze(e,"scrollCursorIntoView")){var o=e.display,i=o.sizer.getBoundingClientRect(),a=null;if(t.top+i.top<0?a=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(a=!1),a!=null&&!D){var f=E("div","\u200B",null,`position: absolute;
11
+ top: `+(t.top-o.viewOffset-ms(e.display))+`px;
12
+ height: `+(t.bottom-t.top+Mr(e)+o.barHeight)+`px;
13
+ left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(f),f.scrollIntoView(a),e.display.lineSpace.removeChild(f)}}}function Ev(e,t,o,i){i==null&&(i=0);var a;!e.options.lineWrapping&&t==o&&(o=t.sticky=="before"?pe(t.line,t.ch+1,"before"):t,t=t.ch?pe(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var f=0;f<5;f++){var h=!1,g=br(e,t),y=!o||o==t?g:br(e,o);a={left:Math.min(g.left,y.left),top:Math.min(g.top,y.top)-i,right:Math.max(g.left,y.left),bottom:Math.max(g.bottom,y.bottom)+i};var w=_a(e,a),O=e.doc.scrollTop,N=e.doc.scrollLeft;if(w.scrollTop!=null&&(io(e,w.scrollTop),Math.abs(e.doc.scrollTop-O)>1&&(h=!0)),w.scrollLeft!=null&&(Nn(e,w.scrollLeft),Math.abs(e.doc.scrollLeft-N)>1&&(h=!0)),!h)break}return a}function Ov(e,t){var o=_a(e,t);o.scrollTop!=null&&io(e,o.scrollTop),o.scrollLeft!=null&&Nn(e,o.scrollLeft)}function _a(e,t){var o=e.display,i=oi(e.display);t.top<0&&(t.top=0);var a=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:o.scroller.scrollTop,f=Wa(e),h={};t.bottom-t.top>f&&(t.bottom=t.top+f);var g=e.doc.height+Ba(o),y=t.top<i,w=t.bottom>g-i;if(t.top<a)h.scrollTop=y?0:t.top;else if(t.bottom>a+f){var O=Math.min(t.top,(w?g:t.bottom)-f);O!=a&&(h.scrollTop=O)}var N=e.options.fixedGutter?0:o.gutters.offsetWidth,$=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:o.scroller.scrollLeft-N,K=On(e)-o.gutters.offsetWidth,re=t.right-t.left>K;return re&&(t.right=t.left+K),t.left<10?h.scrollLeft=0:t.left<$?h.scrollLeft=Math.max(0,t.left+N-(re?0:10)):t.right>K+$-3&&(h.scrollLeft=t.right+(re?0:10)-K),h}function el(e,t){t!=null&&(Ts(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function li(e){Ts(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function no(e,t,o){(t!=null||o!=null)&&Ts(e),t!=null&&(e.curOp.scrollLeft=t),o!=null&&(e.curOp.scrollTop=o)}function Mv(e,t){Ts(e),e.curOp.scrollToPos=t}function Ts(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var o=Tf(e,t.from),i=Tf(e,t.to);Nf(e,o,i,t.margin)}}function Nf(e,t,o,i){var a=_a(e,{left:Math.min(t.left,o.left),top:Math.min(t.top,o.top)-i,right:Math.max(t.right,o.right),bottom:Math.max(t.bottom,o.bottom)+i});no(e,a.scrollLeft,a.scrollTop)}function io(e,t){Math.abs(e.doc.scrollTop-t)<2||(u||rl(e,{top:t}),If(e,t,!0),u&&rl(e),ao(e,100))}function If(e,t,o){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!o)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Nn(e,t,o,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((o?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i)&&(e.doc.scrollLeft=t,Hf(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function oo(e){var t=e.display,o=t.gutters.offsetWidth,i=Math.round(e.doc.height+Ba(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?o:0,docHeight:i,scrollHeight:i+Mr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:o}}var In=function(e,t,o){this.cm=o;var i=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),a=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=a.tabIndex=-1,e(i),e(a),Fe(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),Fe(a,"scroll",function(){a.clientWidth&&t(a.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};In.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,o=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(o){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var a=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+a)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=o?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var f=e.viewWidth-e.barLeft-(o?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+f)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(i==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:o?i:0,bottom:t?i:0}},In.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},In.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},In.prototype.zeroWidthHack=function(){var e=B&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ne,this.disableVert=new ne},In.prototype.enableZeroWidthBar=function(e,t,o){e.style.pointerEvents="auto";function i(){var a=e.getBoundingClientRect(),f=o=="vert"?document.elementFromPoint(a.right-1,(a.top+a.bottom)/2):document.elementFromPoint((a.right+a.left)/2,a.bottom-1);f!=e?e.style.pointerEvents="none":t.set(1e3,i)}t.set(1e3,i)},In.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var so=function(){};so.prototype.update=function(){return{bottom:0,right:0}},so.prototype.setScrollLeft=function(){},so.prototype.setScrollTop=function(){},so.prototype.clear=function(){};function ui(e,t){t||(t=oo(e));var o=e.display.barWidth,i=e.display.barHeight;Rf(e,t);for(var a=0;a<4&&o!=e.display.barWidth||i!=e.display.barHeight;a++)o!=e.display.barWidth&&e.options.lineWrapping&&Ss(e),Rf(e,oo(e)),o=e.display.barWidth,i=e.display.barHeight}function Rf(e,t){var o=e.display,i=o.scrollbars.update(t);o.sizer.style.paddingRight=(o.barWidth=i.right)+"px",o.sizer.style.paddingBottom=(o.barHeight=i.bottom)+"px",o.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(o.scrollbarFiller.style.display="block",o.scrollbarFiller.style.height=i.bottom+"px",o.scrollbarFiller.style.width=i.right+"px"):o.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(o.gutterFiller.style.display="block",o.gutterFiller.style.height=i.bottom+"px",o.gutterFiller.style.width=t.gutterWidth+"px"):o.gutterFiller.style.display=""}var Ff={native:In,null:so};function Df(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Q(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ff[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Fe(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,o){o=="horizontal"?Nn(e,t):io(e,t)},e),e.display.scrollbars.addClass&&ue(e.display.wrapper,e.display.scrollbars.addClass)}var Av=0;function Rn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Av,markArrays:null},av(e.curOp)}function Fn(e){var t=e.curOp;t&&uv(t,function(o){for(var i=0;i<o.ops.length;i++)o.ops[i].cm.curOp=null;Lv(o)})}function Lv(e){for(var t=e.ops,o=0;o<t.length;o++)Nv(t[o]);for(var i=0;i<t.length;i++)Iv(t[i]);for(var a=0;a<t.length;a++)Rv(t[a]);for(var f=0;f<t.length;f++)Fv(t[f]);for(var h=0;h<t.length;h++)Dv(t[h])}function Nv(e){var t=e.cm,o=t.display;Hv(t),e.updateMaxLine&&za(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<o.viewFrom||e.scrollToPos.to.line>=o.viewTo)||o.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ps(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Iv(e){e.updatedDisplay=e.mustUpdate&&tl(e.cm,e.update)}function Rv(e){var t=e.cm,o=t.display;e.updatedDisplay&&Ss(t),e.barMeasure=oo(t),o.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=gf(t,o.maxLine,o.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(o.scroller.clientWidth,o.sizer.offsetLeft+e.adjustWidthTo+Mr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,o.sizer.offsetLeft+e.adjustWidthTo-On(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=o.input.prepareSelection())}function Fv(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Nn(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var o=e.focus&&e.focus==G();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,o),(e.updatedDisplay||e.startHeight!=t.doc.height)&&ui(t,e.barMeasure),e.updatedDisplay&&il(t,e.barMeasure),e.selectionChanged&&Za(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),o&&Af(e.cm)}function Dv(e){var t=e.cm,o=t.display,i=t.doc;if(e.updatedDisplay&&zf(t,e.update),o.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(o.wheelStartX=o.wheelStartY=null),e.scrollTop!=null&&If(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Nn(t,e.scrollLeft,!0,!0),e.scrollToPos){var a=Ev(t,Me(i,e.scrollToPos.from),Me(i,e.scrollToPos.to),e.scrollToPos.margin);kv(t,a)}var f=e.maybeHiddenMarkers,h=e.maybeUnhiddenMarkers;if(f)for(var g=0;g<f.length;++g)f[g].lines.length||ve(f[g],"hide");if(h)for(var y=0;y<h.length;++y)h[y].lines.length&&ve(h[y],"unhide");o.wrapper.offsetHeight&&(i.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ve(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function _t(e,t){if(e.curOp)return t();Rn(e);try{return t()}finally{Fn(e)}}function Et(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Rn(e);try{return t.apply(e,arguments)}finally{Fn(e)}}}function Wt(e){return function(){if(this.curOp)return e.apply(this,arguments);Rn(this);try{return e.apply(this,arguments)}finally{Fn(this)}}}function Ot(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Rn(t);try{return e.apply(this,arguments)}finally{Fn(t)}}}function ao(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,We(zv,e))}function zv(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var o=+new Date+e.options.workTime,i=Zi(e,t.highlightFrontier),a=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),function(f){if(i.line>=e.display.viewFrom){var h=f.styles,g=f.text.length>e.options.maxHighlightLength?or(t.mode,i.state):null,y=Uu(e,f,i,!0);g&&(i.state=g),f.styles=y.styles;var w=f.styleClasses,O=y.classes;O?f.styleClasses=O:w&&(f.styleClasses=null);for(var N=!h||h.length!=f.styles.length||w!=O&&(!w||!O||w.bgClass!=O.bgClass||w.textClass!=O.textClass),$=0;!N&&$<h.length;++$)N=h[$]!=f.styles[$];N&&a.push(i.line),f.stateAfter=i.save(),i.nextLine()}else f.text.length<=e.options.maxHighlightLength&&La(e,f.text,i),f.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>o)return ao(e,e.options.workDelay),!0}),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),a.length&&_t(e,function(){for(var f=0;f<a.length;f++)tn(e,a[f],"text")})}}var Ps=function(e,t,o){var i=e.display;this.viewport=t,this.visible=Cs(i,e.doc,t),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=On(e),this.force=o,this.dims=Ya(e),this.events=[]};Ps.prototype.signal=function(e,t){et(e,t)&&this.events.push(arguments)},Ps.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ve.apply(null,this.events[e])};function Hv(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Mr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Mr(e)+"px",t.scrollbarsClipped=!0)}function Bv(e){if(e.hasFocus())return null;var t=G();if(!t||!z(e.display.lineDiv,t))return null;var o={activeElt:t};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&z(e.display.lineDiv,i.anchorNode)&&(o.anchorNode=i.anchorNode,o.anchorOffset=i.anchorOffset,o.focusNode=i.focusNode,o.focusOffset=i.focusOffset)}return o}function Wv(e){if(!(!e||!e.activeElt||e.activeElt==G())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&z(document.body,e.anchorNode)&&z(document.body,e.focusNode))){var t=window.getSelection(),o=document.createRange();o.setEnd(e.anchorNode,e.anchorOffset),o.collapse(!1),t.removeAllRanges(),t.addRange(o),t.extend(e.focusNode,e.focusOffset)}}function tl(e,t){var o=e.display,i=e.doc;if(t.editorIsHidden)return rn(e),!1;if(!t.force&&t.visible.from>=o.viewFrom&&t.visible.to<=o.viewTo&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo)&&o.renderedView==o.view&&Of(e)==0)return!1;Bf(e)&&(rn(e),t.dims=Ya(e));var a=i.first+i.size,f=Math.max(t.visible.from-e.options.viewportMargin,i.first),h=Math.min(a,t.visible.to+e.options.viewportMargin);o.viewFrom<f&&f-o.viewFrom<20&&(f=Math.max(i.first,o.viewFrom)),o.viewTo>h&&o.viewTo-h<20&&(h=Math.min(a,o.viewTo)),Wr&&(f=Fa(e.doc,f),h=nf(e.doc,h));var g=f!=o.viewFrom||h!=o.viewTo||o.lastWrapHeight!=t.wrapperHeight||o.lastWrapWidth!=t.wrapperWidth;Tv(e,f,h),o.viewOffset=jr(Ne(e.doc,o.viewFrom)),e.display.mover.style.top=o.viewOffset+"px";var y=Of(e);if(!g&&y==0&&!t.force&&o.renderedView==o.view&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo))return!1;var w=Bv(e);return y>4&&(o.lineDiv.style.display="none"),jv(e,o.updateLineNumbers,t.dims),y>4&&(o.lineDiv.style.display=""),o.renderedView=o.view,Wv(w),q(o.cursorDiv),q(o.selectionDiv),o.gutters.style.height=o.sizer.style.minHeight=0,g&&(o.lastWrapHeight=t.wrapperHeight,o.lastWrapWidth=t.wrapperWidth,ao(e,400)),o.updateLineNumbers=null,!0}function zf(e,t){for(var o=t.viewport,i=!0;;i=!1){if(!i||!e.options.lineWrapping||t.oldDisplayWidth==On(e)){if(o&&o.top!=null&&(o={top:Math.min(e.doc.height+Ba(e.display)-Wa(e),o.top)}),t.visible=Cs(e.display,e.doc,o),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else i&&(t.visible=Cs(e.display,e.doc,o));if(!tl(e,t))break;Ss(e);var a=oo(e);ro(e),ui(e,a),il(e,a),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function rl(e,t){var o=new Ps(e,t);if(tl(e,o)){Ss(e),zf(e,o);var i=oo(e);ro(e),ui(e,i),il(e,i),o.finish()}}function jv(e,t,o){var i=e.display,a=e.options.lineNumbers,f=i.lineDiv,h=f.firstChild;function g(re){var ce=re.nextSibling;return b&&B&&e.display.currentWheelTarget==re?re.style.display="none":re.parentNode.removeChild(re),ce}for(var y=i.view,w=i.viewFrom,O=0;O<y.length;O++){var N=y[O];if(!N.hidden)if(!N.node||N.node.parentNode!=f){var $=pv(e,N,w,o);f.insertBefore($,h)}else{for(;h!=N.node;)h=g(h);var K=a&&t!=null&&t<=w&&N.lineNumber;N.changes&&(se(N.changes,"gutter")>-1&&(K=!1),uf(e,N,w,o)),K&&(q(N.lineNumber),N.lineNumber.appendChild(document.createTextNode(Ji(e.options,w)))),h=N.node.nextSibling}w+=N.size}for(;h;)h=g(h)}function nl(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",kt(e,"gutterChanged",e)}function il(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Mr(e)+"px"}function Hf(e){var t=e.display,o=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var i=Xa(t)-t.scroller.scrollLeft+e.doc.scrollLeft,a=t.gutters.offsetWidth,f=i+"px",h=0;h<o.length;h++)if(!o[h].hidden){e.options.fixedGutter&&(o[h].gutter&&(o[h].gutter.style.left=f),o[h].gutterBackground&&(o[h].gutterBackground.style.left=f));var g=o[h].alignable;if(g)for(var y=0;y<g.length;y++)g[y].style.left=f}e.options.fixedGutter&&(t.gutters.style.left=i+a+"px")}}function Bf(e){if(!e.options.lineNumbers)return!1;var t=e.doc,o=Ji(e.options,t.first+t.size-1),i=e.display;if(o.length!=i.lineNumChars){var a=i.measure.appendChild(E("div",[E("div",o)],"CodeMirror-linenumber CodeMirror-gutter-elt")),f=a.firstChild.offsetWidth,h=a.offsetWidth-f;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(f,i.lineGutter.offsetWidth-h)+1,i.lineNumWidth=i.lineNumInnerWidth+h,i.lineNumChars=i.lineNumInnerWidth?o.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",nl(e.display),!0}return!1}function ol(e,t){for(var o=[],i=!1,a=0;a<e.length;a++){var f=e[a],h=null;if(typeof f!="string"&&(h=f.style,f=f.className),f=="CodeMirror-linenumbers")if(t)i=!0;else continue;o.push({className:f,style:h})}return t&&!i&&o.push({className:"CodeMirror-linenumbers",style:null}),o}function Wf(e){var t=e.gutters,o=e.gutterSpecs;q(t),e.lineGutter=null;for(var i=0;i<o.length;++i){var a=o[i],f=a.className,h=a.style,g=t.appendChild(E("div",null,"CodeMirror-gutter "+f));h&&(g.style.cssText=h),f=="CodeMirror-linenumbers"&&(e.lineGutter=g,g.style.width=(e.lineNumWidth||1)+"px")}t.style.display=o.length?"":"none",nl(e)}function lo(e){Wf(e.display),Ut(e),Hf(e)}function Kv(e,t,o,i){var a=this;this.input=o,a.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),a.scrollbarFiller.setAttribute("cm-not-content","true"),a.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),a.gutterFiller.setAttribute("cm-not-content","true"),a.lineDiv=x("div",null,"CodeMirror-code"),a.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),a.cursorDiv=E("div",null,"CodeMirror-cursors"),a.measure=E("div",null,"CodeMirror-measure"),a.lineMeasure=E("div",null,"CodeMirror-measure"),a.lineSpace=x("div",[a.measure,a.lineMeasure,a.selectionDiv,a.cursorDiv,a.lineDiv],null,"position: relative; outline: none");var f=x("div",[a.lineSpace],"CodeMirror-lines");a.mover=E("div",[f],null,"position: relative"),a.sizer=E("div",[a.mover],"CodeMirror-sizer"),a.sizerWidth=null,a.heightForcer=E("div",null,null,"position: absolute; height: "+ae+"px; width: 1px;"),a.gutters=E("div",null,"CodeMirror-gutters"),a.lineGutter=null,a.scroller=E("div",[a.sizer,a.heightForcer,a.gutters],"CodeMirror-scroll"),a.scroller.setAttribute("tabIndex","-1"),a.wrapper=E("div",[a.scrollbarFiller,a.gutterFiller,a.scroller],"CodeMirror"),a.wrapper.setAttribute("translate","no"),p&&m<8&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),!b&&!(u&&F)&&(a.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(a.wrapper):e(a.wrapper)),a.viewFrom=a.viewTo=t.first,a.reportedViewFrom=a.reportedViewTo=t.first,a.view=[],a.renderedView=null,a.externalMeasured=null,a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,a.shift=!1,a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=ol(i.gutters,i.lineNumbers),Wf(a),o.init(a)}var ks=0,Ur=null;p?Ur=-.53:u?Ur=15:T?Ur=-.7:A&&(Ur=-1/3);function jf(e){var t=e.wheelDeltaX,o=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),o==null&&e.detail&&e.axis==e.VERTICAL_AXIS?o=e.detail:o==null&&(o=e.wheelDelta),{x:t,y:o}}function Uv(e){var t=jf(e);return t.x*=Ur,t.y*=Ur,t}function Kf(e,t){var o=jf(t),i=o.x,a=o.y,f=Ur;t.deltaMode===0&&(i=t.deltaX,a=t.deltaY,f=1);var h=e.display,g=h.scroller,y=g.scrollWidth>g.clientWidth,w=g.scrollHeight>g.clientHeight;if(!!(i&&y||a&&w)){if(a&&B&&b){e:for(var O=t.target,N=h.view;O!=g;O=O.parentNode)for(var $=0;$<N.length;$++)if(N[$].node==O){e.display.currentWheelTarget=O;break e}}if(i&&!u&&!P&&f!=null){a&&w&&io(e,Math.max(0,g.scrollTop+a*f)),Nn(e,Math.max(0,g.scrollLeft+i*f)),(!a||a&&w)&&Pt(t),h.wheelStartX=null;return}if(a&&f!=null){var K=a*f,re=e.doc.scrollTop,ce=re+h.wrapper.clientHeight;K<0?re=Math.max(0,re+K-50):ce=Math.min(e.doc.height,ce+K+50),rl(e,{top:re,bottom:ce})}ks<20&&t.deltaMode!==0&&(h.wheelStartX==null?(h.wheelStartX=g.scrollLeft,h.wheelStartY=g.scrollTop,h.wheelDX=i,h.wheelDY=a,setTimeout(function(){if(h.wheelStartX!=null){var xe=g.scrollLeft-h.wheelStartX,Te=g.scrollTop-h.wheelStartY,Oe=Te&&h.wheelDY&&Te/h.wheelDY||xe&&h.wheelDX&&xe/h.wheelDX;h.wheelStartX=h.wheelStartY=null,!!Oe&&(Ur=(Ur*ks+Oe)/(ks+1),++ks)}},200)):(h.wheelDX+=i,h.wheelDY+=a))}}var ar=function(e,t){this.ranges=e,this.primIndex=t};ar.prototype.primary=function(){return this.ranges[this.primIndex]},ar.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var o=this.ranges[t],i=e.ranges[t];if(!I(o.anchor,i.anchor)||!I(o.head,i.head))return!1}return!0},ar.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new rt(fe(this.ranges[t].anchor),fe(this.ranges[t].head));return new ar(e,this.primIndex)},ar.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ar.prototype.contains=function(e,t){t||(t=e);for(var o=0;o<this.ranges.length;o++){var i=this.ranges[o];if(C(t,i.from())>=0&&C(e,i.to())<=0)return o}return-1};var rt=function(e,t){this.anchor=e,this.head=t};rt.prototype.from=function(){return Ge(this.anchor,this.head)},rt.prototype.to=function(){return ye(this.anchor,this.head)},rt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xr(e,t,o){var i=e&&e.options.selectionsMayTouch,a=t[o];t.sort(function($,K){return C($.from(),K.from())}),o=se(t,a);for(var f=1;f<t.length;f++){var h=t[f],g=t[f-1],y=C(g.to(),h.from());if(i&&!h.empty()?y>0:y>=0){var w=Ge(g.from(),h.from()),O=ye(g.to(),h.to()),N=g.empty()?h.from()==h.head:g.from()==g.head;f<=o&&--o,t.splice(--f,2,new rt(N?O:w,N?w:O))}}return new ar(t,o)}function nn(e,t){return new ar([new rt(e,t||e)],0)}function on(e){return e.text?pe(e.from.line+e.text.length-1,X(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Uf(e,t){if(C(e,t.from)<0)return e;if(C(e,t.to)<=0)return on(t);var o=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=on(t).ch-t.to.ch),pe(o,i)}function sl(e,t){for(var o=[],i=0;i<e.sel.ranges.length;i++){var a=e.sel.ranges[i];o.push(new rt(Uf(a.anchor,t),Uf(a.head,t)))}return xr(e.cm,o,e.sel.primIndex)}function Gf(e,t,o){return e.line==t.line?pe(o.line,e.ch-t.ch+o.ch):pe(o.line+(e.line-t.line),e.ch)}function Gv(e,t,o){for(var i=[],a=pe(e.first,0),f=a,h=0;h<t.length;h++){var g=t[h],y=Gf(g.from,a,f),w=Gf(on(g),a,f);if(a=g.to,f=w,o=="around"){var O=e.sel.ranges[h],N=C(O.head,O.anchor)<0;i[h]=new rt(N?w:y,N?y:w)}else i[h]=new rt(y,y)}return new ar(i,e.sel.primIndex)}function al(e){e.doc.mode=ei(e.options,e.doc.modeOption),uo(e)}function uo(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ao(e,100),e.state.modeGen++,e.curOp&&Ut(e)}function $f(e,t){return t.from.ch==0&&t.to.ch==0&&X(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ll(e,t,o,i){function a(Oe){return o?o[Oe]:null}function f(Oe,Pe,Ae){qp(Oe,Pe,Ae,i),kt(Oe,"change",Oe,t)}function h(Oe,Pe){for(var Ae=[],He=Oe;He<Pe;++He)Ae.push(new ri(w[He],a(He),i));return Ae}var g=t.from,y=t.to,w=t.text,O=Ne(e,g.line),N=Ne(e,y.line),$=X(w),K=a(w.length-1),re=y.line-g.line;if(t.full)e.insert(0,h(0,w.length)),e.remove(w.length,e.size-w.length);else if($f(e,t)){var ce=h(0,w.length-1);f(N,N.text,K),re&&e.remove(g.line,re),ce.length&&e.insert(g.line,ce)}else if(O==N)if(w.length==1)f(O,O.text.slice(0,g.ch)+$+O.text.slice(y.ch),K);else{var xe=h(1,w.length-1);xe.push(new ri($+O.text.slice(y.ch),K,i)),f(O,O.text.slice(0,g.ch)+w[0],a(0)),e.insert(g.line+1,xe)}else if(w.length==1)f(O,O.text.slice(0,g.ch)+w[0]+N.text.slice(y.ch),a(0)),e.remove(g.line+1,re);else{f(O,O.text.slice(0,g.ch)+w[0],a(0)),f(N,$+N.text.slice(y.ch),K);var Te=h(1,w.length-1);re>1&&e.remove(g.line+1,re-1),e.insert(g.line+1,Te)}kt(e,"change",e,t)}function sn(e,t,o){function i(a,f,h){if(a.linked)for(var g=0;g<a.linked.length;++g){var y=a.linked[g];if(y.doc!=f){var w=h&&y.sharedHist;o&&!w||(t(y.doc,w),i(y.doc,a,w))}}}i(e,null,!0)}function Yf(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Va(e),al(e),Xf(e),e.options.direction=t.direction,e.options.lineWrapping||za(e),e.options.mode=t.modeOption,Ut(e)}function Xf(e){(e.doc.direction=="rtl"?ue:Q)(e.display.lineDiv,"CodeMirror-rtl")}function $v(e){_t(e,function(){Xf(e),Ut(e)})}function Es(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ul(e,t){var o={from:fe(t.from),to:on(t),text:Pr(e,t.from,t.to)};return Zf(e,o,t.from.line,t.to.line+1),sn(e,function(i){return Zf(i,o,t.from.line,t.to.line+1)},!0),o}function Vf(e){for(;e.length;){var t=X(e);if(t.ranges)e.pop();else break}}function Yv(e,t){if(t)return Vf(e.done),X(e.done);if(e.done.length&&!X(e.done).ranges)return X(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),X(e.done)}function Jf(e,t,o,i){var a=e.history;a.undone.length=0;var f=+new Date,h,g;if((a.lastOp==i||a.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&a.lastModTime>f-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(h=Yv(a,a.lastOp==i)))g=X(h.changes),C(t.from,t.to)==0&&C(t.from,g.to)==0?g.to=on(t):h.changes.push(ul(e,t));else{var y=X(a.done);for((!y||!y.ranges)&&Os(e.sel,a.done),h={changes:[ul(e,t)],generation:a.generation},a.done.push(h);a.done.length>a.undoDepth;)a.done.shift(),a.done[0].ranges||a.done.shift()}a.done.push(o),a.generation=++a.maxGeneration,a.lastModTime=a.lastSelTime=f,a.lastOp=a.lastSelOp=i,a.lastOrigin=a.lastSelOrigin=t.origin,g||ve(e,"historyAdded")}function Xv(e,t,o,i){var a=t.charAt(0);return a=="*"||a=="+"&&o.ranges.length==i.ranges.length&&o.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Vv(e,t,o,i){var a=e.history,f=i&&i.origin;o==a.lastSelOp||f&&a.lastSelOrigin==f&&(a.lastModTime==a.lastSelTime&&a.lastOrigin==f||Xv(e,f,X(a.done),t))?a.done[a.done.length-1]=t:Os(t,a.done),a.lastSelTime=+new Date,a.lastSelOrigin=f,a.lastSelOp=o,i&&i.clearRedo!==!1&&Vf(a.undone)}function Os(e,t){var o=X(t);o&&o.ranges&&o.equals(e)||t.push(e)}function Zf(e,t,o,i){var a=t["spans_"+e.id],f=0;e.iter(Math.max(e.first,o),Math.min(e.first+e.size,i),function(h){h.markedSpans&&((a||(a=t["spans_"+e.id]={}))[f]=h.markedSpans),++f})}function Jv(e){if(!e)return null;for(var t,o=0;o<e.length;++o)e[o].marker.explicitlyCleared?t||(t=e.slice(0,o)):t&&t.push(e[o]);return t?t.length?t:null:e}function Zv(e,t){var o=t["spans_"+e.id];if(!o)return null;for(var i=[],a=0;a<t.text.length;++a)i.push(Jv(o[a]));return i}function Qf(e,t){var o=Zv(e,t),i=Ia(e,t);if(!o)return i;if(!i)return o;for(var a=0;a<o.length;++a){var f=o[a],h=i[a];if(f&&h){e:for(var g=0;g<h.length;++g){for(var y=h[g],w=0;w<f.length;++w)if(f[w].marker==y.marker)continue e;f.push(y)}}else h&&(o[a]=h)}return o}function fi(e,t,o){for(var i=[],a=0;a<e.length;++a){var f=e[a];if(f.ranges){i.push(o?ar.prototype.deepCopy.call(f):f);continue}var h=f.changes,g=[];i.push({changes:g});for(var y=0;y<h.length;++y){var w=h[y],O=void 0;if(g.push({from:w.from,to:w.to,text:w.text}),t)for(var N in w)(O=N.match(/^spans_(\d+)$/))&&se(t,Number(O[1]))>-1&&(X(g)[N]=w[N],delete w[N])}}return i}function fl(e,t,o,i){if(i){var a=e.anchor;if(o){var f=C(t,a)<0;f!=C(o,a)<0?(a=t,t=o):f!=C(t,o)<0&&(t=o)}return new rt(a,t)}else return new rt(o||t,t)}function Ms(e,t,o,i,a){a==null&&(a=e.cm&&(e.cm.display.shift||e.extend)),Dt(e,new ar([fl(e.sel.primary(),t,o,a)],0),i)}function qf(e,t,o){for(var i=[],a=e.cm&&(e.cm.display.shift||e.extend),f=0;f<e.sel.ranges.length;f++)i[f]=fl(e.sel.ranges[f],t[f],null,a);var h=xr(e.cm,i,e.sel.primIndex);Dt(e,h,o)}function cl(e,t,o,i){var a=e.sel.ranges.slice(0);a[t]=o,Dt(e,xr(e.cm,a,e.sel.primIndex),i)}function _f(e,t,o,i){Dt(e,nn(t,o),i)}function Qv(e,t,o){var i={ranges:t.ranges,update:function(a){this.ranges=[];for(var f=0;f<a.length;f++)this.ranges[f]=new rt(Me(e,a[f].anchor),Me(e,a[f].head))},origin:o&&o.origin};return ve(e,"beforeSelectionChange",e,i),e.cm&&ve(e.cm,"beforeSelectionChange",e.cm,i),i.ranges!=t.ranges?xr(e.cm,i.ranges,i.ranges.length-1):t}function ec(e,t,o){var i=e.history.done,a=X(i);a&&a.ranges?(i[i.length-1]=t,As(e,t,o)):Dt(e,t,o)}function Dt(e,t,o){As(e,t,o),Vv(e,e.sel,e.cm?e.cm.curOp.id:NaN,o)}function As(e,t,o){(et(e,"beforeSelectionChange")||e.cm&&et(e.cm,"beforeSelectionChange"))&&(t=Qv(e,t,o));var i=o&&o.bias||(C(t.primary().head,e.sel.primary().head)<0?-1:1);tc(e,nc(e,t,i,!0)),!(o&&o.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&li(e.cm)}function tc(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,qe(e.cm)),kt(e,"cursorActivity",e))}function rc(e){tc(e,nc(e,e.sel,null,!1))}function nc(e,t,o,i){for(var a,f=0;f<t.ranges.length;f++){var h=t.ranges[f],g=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[f],y=Ls(e,h.anchor,g&&g.anchor,o,i),w=Ls(e,h.head,g&&g.head,o,i);(a||y!=h.anchor||w!=h.head)&&(a||(a=t.ranges.slice(0,f)),a[f]=new rt(y,w))}return a?xr(e.cm,a,t.primIndex):t}function ci(e,t,o,i,a){var f=Ne(e,t.line);if(f.markedSpans)for(var h=0;h<f.markedSpans.length;++h){var g=f.markedSpans[h],y=g.marker,w="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,O="selectRight"in y?!y.selectRight:y.inclusiveRight;if((g.from==null||(w?g.from<=t.ch:g.from<t.ch))&&(g.to==null||(O?g.to>=t.ch:g.to>t.ch))){if(a&&(ve(y,"beforeCursorEnter"),y.explicitlyCleared))if(f.markedSpans){--h;continue}else break;if(!y.atomic)continue;if(o){var N=y.find(i<0?1:-1),$=void 0;if((i<0?O:w)&&(N=ic(e,N,-i,N&&N.line==t.line?f:null)),N&&N.line==t.line&&($=C(N,o))&&(i<0?$<0:$>0))return ci(e,N,t,i,a)}var K=y.find(i<0?-1:1);return(i<0?w:O)&&(K=ic(e,K,i,K.line==t.line?f:null)),K?ci(e,K,t,i,a):null}}return t}function Ls(e,t,o,i,a){var f=i||1,h=ci(e,t,o,f,a)||!a&&ci(e,t,o,f,!0)||ci(e,t,o,-f,a)||!a&&ci(e,t,o,-f,!0);return h||(e.cantEdit=!0,pe(e.first,0))}function ic(e,t,o,i){return o<0&&t.ch==0?t.line>e.first?Me(e,pe(t.line-1)):null:o>0&&t.ch==(i||Ne(e,t.line)).text.length?t.line<e.first+e.size-1?pe(t.line+1,0):null:new pe(t.line,t.ch+o)}function oc(e){e.setSelection(pe(e.firstLine(),0),pe(e.lastLine()),Ie)}function sc(e,t,o){var i={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return i.canceled=!0}};return o&&(i.update=function(a,f,h,g){a&&(i.from=Me(e,a)),f&&(i.to=Me(e,f)),h&&(i.text=h),g!==void 0&&(i.origin=g)}),ve(e,"beforeChange",e,i),e.cm&&ve(e.cm,"beforeChange",e.cm,i),i.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:i.from,to:i.to,text:i.text,origin:i.origin}}function di(e,t,o){if(e.cm){if(!e.cm.curOp)return Et(e.cm,di)(e,t,o);if(e.cm.state.suppressEdits)return}if(!((et(e,"beforeChange")||e.cm&&et(e.cm,"beforeChange"))&&(t=sc(e,t,!0),!t))){var i=Zu&&!o&&Vp(e,t.from,t.to);if(i)for(var a=i.length-1;a>=0;--a)ac(e,{from:i[a].from,to:i[a].to,text:a?[""]:t.text,origin:t.origin});else ac(e,t)}}function ac(e,t){if(!(t.text.length==1&&t.text[0]==""&&C(t.from,t.to)==0)){var o=sl(e,t);Jf(e,t,o,e.cm?e.cm.curOp.id:NaN),fo(e,t,o,Ia(e,t));var i=[];sn(e,function(a,f){!f&&se(i,a.history)==-1&&(cc(a.history,t),i.push(a.history)),fo(a,t,null,Ia(a,t))})}}function Ns(e,t,o){var i=e.cm&&e.cm.state.suppressEdits;if(!(i&&!o)){for(var a=e.history,f,h=e.sel,g=t=="undo"?a.done:a.undone,y=t=="undo"?a.undone:a.done,w=0;w<g.length&&(f=g[w],!(o?f.ranges&&!f.equals(e.sel):!f.ranges));w++);if(w!=g.length){for(a.lastOrigin=a.lastSelOrigin=null;;)if(f=g.pop(),f.ranges){if(Os(f,y),o&&!f.equals(e.sel)){Dt(e,f,{clearRedo:!1});return}h=f}else if(i){g.push(f);return}else break;var O=[];Os(h,y),y.push({changes:O,generation:a.generation}),a.generation=f.generation||++a.maxGeneration;for(var N=et(e,"beforeChange")||e.cm&&et(e.cm,"beforeChange"),$=function(ce){var xe=f.changes[ce];if(xe.origin=t,N&&!sc(e,xe,!1))return g.length=0,{};O.push(ul(e,xe));var Te=ce?sl(e,xe):X(g);fo(e,xe,Te,Qf(e,xe)),!ce&&e.cm&&e.cm.scrollIntoView({from:xe.from,to:on(xe)});var Oe=[];sn(e,function(Pe,Ae){!Ae&&se(Oe,Pe.history)==-1&&(cc(Pe.history,xe),Oe.push(Pe.history)),fo(Pe,xe,null,Qf(Pe,xe))})},K=f.changes.length-1;K>=0;--K){var re=$(K);if(re)return re.v}}}}function lc(e,t){if(t!=0&&(e.first+=t,e.sel=new ar(oe(e.sel.ranges,function(a){return new rt(pe(a.anchor.line+t,a.anchor.ch),pe(a.head.line+t,a.head.ch))}),e.sel.primIndex),e.cm)){Ut(e.cm,e.first,e.first-t,t);for(var o=e.cm.display,i=o.viewFrom;i<o.viewTo;i++)tn(e.cm,i,"gutter")}}function fo(e,t,o,i){if(e.cm&&!e.cm.curOp)return Et(e.cm,fo)(e,t,o,i);if(t.to.line<e.first){lc(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var a=t.text.length-1-(e.first-t.from.line);lc(e,a),t={from:pe(e.first,0),to:pe(t.to.line+a,t.to.ch),text:[X(t.text)],origin:t.origin}}var f=e.lastLine();t.to.line>f&&(t={from:t.from,to:pe(f,Ne(e,f).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Pr(e,t.from,t.to),o||(o=sl(e,t)),e.cm?qv(e.cm,t,i):ll(e,t,i),As(e,o,Ie),e.cantEdit&&Ls(e,pe(e.firstLine(),0))&&(e.cantEdit=!1)}}function qv(e,t,o){var i=e.doc,a=e.display,f=t.from,h=t.to,g=!1,y=f.line;e.options.lineWrapping||(y=tt(Or(Ne(i,f.line))),i.iter(y,h.line+1,function(K){if(K==a.maxLine)return g=!0,!0})),i.sel.contains(t.from,t.to)>-1&&qe(e),ll(i,t,o,Ef(e)),e.options.lineWrapping||(i.iter(y,f.line+t.text.length,function(K){var re=vs(K);re>a.maxLineLength&&(a.maxLine=K,a.maxLineLength=re,a.maxLineChanged=!0,g=!1)}),g&&(e.curOp.updateMaxLine=!0)),jp(i,f.line),ao(e,400);var w=t.text.length-(h.line-f.line)-1;t.full?Ut(e):f.line==h.line&&t.text.length==1&&!$f(e.doc,t)?tn(e,f.line,"text"):Ut(e,f.line,h.line+1,w);var O=et(e,"changes"),N=et(e,"change");if(N||O){var $={from:f,to:h,text:t.text,removed:t.removed,origin:t.origin};N&&kt(e,"change",e,$),O&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push($)}e.display.selForContextMenu=null}function hi(e,t,o,i,a){var f;i||(i=o),C(i,o)<0&&(f=[i,o],o=f[0],i=f[1]),typeof t=="string"&&(t=e.splitLines(t)),di(e,{from:o,to:i,text:t,origin:a})}function uc(e,t,o,i){o<e.line?e.line+=i:t<e.line&&(e.line=t,e.ch=0)}function fc(e,t,o,i){for(var a=0;a<e.length;++a){var f=e[a],h=!0;if(f.ranges){f.copied||(f=e[a]=f.deepCopy(),f.copied=!0);for(var g=0;g<f.ranges.length;g++)uc(f.ranges[g].anchor,t,o,i),uc(f.ranges[g].head,t,o,i);continue}for(var y=0;y<f.changes.length;++y){var w=f.changes[y];if(o<w.from.line)w.from=pe(w.from.line+i,w.from.ch),w.to=pe(w.to.line+i,w.to.ch);else if(t<=w.to.line){h=!1;break}}h||(e.splice(0,a+1),a=0)}}function cc(e,t){var o=t.from.line,i=t.to.line,a=t.text.length-(i-o)-1;fc(e.done,o,i,a),fc(e.undone,o,i,a)}function co(e,t,o,i){var a=t,f=t;return typeof t=="number"?f=Ne(e,Qe(e,t)):a=tt(t),a==null?null:(i(f,a)&&e.cm&&tn(e.cm,a,o),f)}function ho(e){this.lines=e,this.parent=null;for(var t=0,o=0;o<e.length;++o)e[o].parent=this,t+=e[o].height;this.height=t}ho.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var o=e,i=e+t;o<i;++o){var a=this.lines[o];this.height-=a.height,_p(a),kt(a,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,o){this.height+=o,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=this},iterN:function(e,t,o){for(var i=e+t;e<i;++e)if(o(this.lines[e]))return!0}};function po(e){this.children=e;for(var t=0,o=0,i=0;i<e.length;++i){var a=e[i];t+=a.chunkSize(),o+=a.height,a.parent=this}this.size=t,this.height=o,this.parent=null}po.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var o=0;o<this.children.length;++o){var i=this.children[o],a=i.chunkSize();if(e<a){var f=Math.min(t,a-e),h=i.height;if(i.removeInner(e,f),this.height-=h-i.height,a==f&&(this.children.splice(o--,1),i.parent=null),(t-=f)==0)break;e=0}else e-=a}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ho))){var g=[];this.collapse(g),this.children=[new ho(g)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,o){this.size+=t.length,this.height+=o;for(var i=0;i<this.children.length;++i){var a=this.children[i],f=a.chunkSize();if(e<=f){if(a.insertInner(e,t,o),a.lines&&a.lines.length>50){for(var h=a.lines.length%25+25,g=h;g<a.lines.length;){var y=new ho(a.lines.slice(g,g+=25));a.height-=y.height,this.children.splice(++i,0,y),y.parent=this}a.lines=a.lines.slice(0,h),this.maybeSpill()}break}e-=f}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),o=new po(t);if(e.parent){e.size-=o.size,e.height-=o.height;var a=se(e.parent.children,e);e.parent.children.splice(a+1,0,o)}else{var i=new po(e.children);i.parent=e,e.children=[i,o],e=i}o.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,o){for(var i=0;i<this.children.length;++i){var a=this.children[i],f=a.chunkSize();if(e<f){var h=Math.min(t,f-e);if(a.iterN(e,h,o))return!0;if((t-=h)==0)break;e=0}else e-=f}}};var vo=function(e,t,o){if(o)for(var i in o)o.hasOwnProperty(i)&&(this[i]=o[i]);this.doc=e,this.node=t};vo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,o=this.line,i=tt(o);if(!(i==null||!t)){for(var a=0;a<t.length;++a)t[a]==this&&t.splice(a--,1);t.length||(o.widgets=null);var f=eo(this);qt(o,Math.max(0,o.height-f)),e&&(_t(e,function(){dc(e,o,-f),tn(e,i,"widget")}),kt(e,"lineWidgetCleared",e,this,i))}},vo.prototype.changed=function(){var e=this,t=this.height,o=this.doc.cm,i=this.line;this.height=null;var a=eo(this)-t;!a||(en(this.doc,i)||qt(i,i.height+a),o&&_t(o,function(){o.curOp.forceUpdate=!0,dc(o,i,a),kt(o,"lineWidgetChanged",o,e,tt(i))}))},Qt(vo);function dc(e,t,o){jr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&el(e,o)}function _v(e,t,o,i){var a=new vo(e,o,i),f=e.cm;return f&&a.noHScroll&&(f.display.alignWidgets=!0),co(e,t,"widget",function(h){var g=h.widgets||(h.widgets=[]);if(a.insertAt==null?g.push(a):g.splice(Math.min(g.length,Math.max(0,a.insertAt)),0,a),a.line=h,f&&!en(e,h)){var y=jr(h)<e.scrollTop;qt(h,h.height+eo(a)),y&&el(f,a.height),f.curOp.forceUpdate=!0}return!0}),f&&kt(f,"lineWidgetAdded",f,a,typeof t=="number"?t:tt(t)),a}var hc=0,an=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++hc};an.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Rn(e),et(this,"clear")){var o=this.find();o&&kt(this,"clear",o.from,o.to)}for(var i=null,a=null,f=0;f<this.lines.length;++f){var h=this.lines[f],g=Qi(h.markedSpans,this);e&&!this.collapsed?tn(e,tt(h),"text"):e&&(g.to!=null&&(a=tt(h)),g.from!=null&&(i=tt(h))),h.markedSpans=Gp(h.markedSpans,g),g.from==null&&this.collapsed&&!en(this.doc,h)&&e&&qt(h,oi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var w=Or(this.lines[y]),O=vs(w);O>e.display.maxLineLength&&(e.display.maxLine=w,e.display.maxLineLength=O,e.display.maxLineChanged=!0)}i!=null&&e&&this.collapsed&&Ut(e,i,a+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&rc(e.doc)),e&&kt(e,"markerCleared",e,this,i,a),t&&Fn(e),this.parent&&this.parent.clear()}},an.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var o,i,a=0;a<this.lines.length;++a){var f=this.lines[a],h=Qi(f.markedSpans,this);if(h.from!=null&&(o=pe(t?f:tt(f),h.from),e==-1))return o;if(h.to!=null&&(i=pe(t?f:tt(f),h.to),e==1))return i}return o&&{from:o,to:i}},an.prototype.changed=function(){var e=this,t=this.find(-1,!0),o=this,i=this.doc.cm;!t||!i||_t(i,function(){var a=t.line,f=tt(t.line),h=ja(i,f);if(h&&(bf(h),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!en(o.doc,a)&&o.height!=null){var g=o.height;o.height=null;var y=eo(o)-g;y&&qt(a,a.height+y)}kt(i,"markerChanged",i,e)})},an.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||se(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},an.prototype.detachLine=function(e){if(this.lines.splice(se(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Qt(an);function pi(e,t,o,i,a){if(i&&i.shared)return eg(e,t,o,i,a);if(e.cm&&!e.cm.curOp)return Et(e.cm,pi)(e,t,o,i,a);var f=new an(e,a),h=C(t,o);if(i&&Ke(i,f,!1),h>0||h==0&&f.clearWhenEmpty!==!1)return f;if(f.replacedWith&&(f.collapsed=!0,f.widgetNode=x("span",[f.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||f.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(f.widgetNode.insertLeft=!0)),f.collapsed){if(rf(e,t.line,t,o,f)||t.line!=o.line&&rf(e,o.line,t,o,f))throw new Error("Inserting collapsed marker partially overlapping an existing one");Up()}f.addToHistory&&Jf(e,{from:t,to:o,origin:"markText"},e.sel,NaN);var g=t.line,y=e.cm,w;if(e.iter(g,o.line+1,function(N){y&&f.collapsed&&!y.options.lineWrapping&&Or(N)==y.display.maxLine&&(w=!0),f.collapsed&&g!=t.line&&qt(N,0),$p(N,new cs(f,g==t.line?t.ch:null,g==o.line?o.ch:null),e.cm&&e.cm.curOp),++g}),f.collapsed&&e.iter(t.line,o.line+1,function(N){en(e,N)&&qt(N,0)}),f.clearOnEnter&&Fe(f,"beforeCursorEnter",function(){return f.clear()}),f.readOnly&&(Kp(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),f.collapsed&&(f.id=++hc,f.atomic=!0),y){if(w&&(y.curOp.updateMaxLine=!0),f.collapsed)Ut(y,t.line,o.line+1);else if(f.className||f.startStyle||f.endStyle||f.css||f.attributes||f.title)for(var O=t.line;O<=o.line;O++)tn(y,O,"text");f.atomic&&rc(y.doc),kt(y,"markerAdded",y,f)}return f}var go=function(e,t){this.markers=e,this.primary=t;for(var o=0;o<e.length;++o)e[o].parent=this};go.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();kt(this,"clear")}},go.prototype.find=function(e,t){return this.primary.find(e,t)},Qt(go);function eg(e,t,o,i,a){i=Ke(i),i.shared=!1;var f=[pi(e,t,o,i,a)],h=f[0],g=i.widgetNode;return sn(e,function(y){g&&(i.widgetNode=g.cloneNode(!0)),f.push(pi(y,Me(y,t),Me(y,o),i,a));for(var w=0;w<y.linked.length;++w)if(y.linked[w].isParent)return;h=X(f)}),new go(f,h)}function pc(e){return e.findMarks(pe(e.first,0),e.clipPos(pe(e.lastLine())),function(t){return t.parent})}function tg(e,t){for(var o=0;o<t.length;o++){var i=t[o],a=i.find(),f=e.clipPos(a.from),h=e.clipPos(a.to);if(C(f,h)){var g=pi(e,f,h,i.primary,i.primary.type);i.markers.push(g),g.parent=i}}}function rg(e){for(var t=function(i){var a=e[i],f=[a.primary.doc];sn(a.primary.doc,function(y){return f.push(y)});for(var h=0;h<a.markers.length;h++){var g=a.markers[h];se(f,g.doc)==-1&&(g.parent=null,a.markers.splice(h--,1))}},o=0;o<e.length;o++)t(o)}var ng=0,Gt=function(e,t,o,i,a){if(!(this instanceof Gt))return new Gt(e,t,o,i,a);o==null&&(o=0),po.call(this,[new ho([new ri("",null)])]),this.first=o,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=o;var f=pe(o,0);this.sel=nn(f),this.history=new Es(null),this.id=++ng,this.modeOption=t,this.lineSep=i,this.direction=a=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ll(this,{from:f,to:f,text:e}),Dt(this,nn(f),Ie)};Gt.prototype=Ce(po.prototype,{constructor:Gt,iter:function(e,t,o){o?this.iterN(e-this.first,t-e,o):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var o=0,i=0;i<t.length;++i)o+=t[i].height;this.insertInner(e-this.first,t,o)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Vi(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:Ot(function(e){var t=pe(this.first,0),o=this.first+this.size-1;di(this,{from:t,to:pe(o,Ne(this,o).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&no(this.cm,0,0),Dt(this,nn(t),Ie)}),replaceRange:function(e,t,o,i){t=Me(this,t),o=o?Me(this,o):t,hi(this,e,t,o,i)},getRange:function(e,t,o){var i=Pr(this,Me(this,e),Me(this,t));return o===!1?i:o===""?i.join(""):i.join(o||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(En(this,e))return Ne(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ne(this,e)),Or(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Me(this,e)},getCursor:function(e){var t=this.sel.primary(),o;return e==null||e=="head"?o=t.head:e=="anchor"?o=t.anchor:e=="end"||e=="to"||e===!1?o=t.to():o=t.from(),o},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ot(function(e,t,o){_f(this,Me(this,typeof e=="number"?pe(e,t||0):e),null,o)}),setSelection:Ot(function(e,t,o){_f(this,Me(this,e),Me(this,t||e),o)}),extendSelection:Ot(function(e,t,o){Ms(this,Me(this,e),t&&Me(this,t),o)}),extendSelections:Ot(function(e,t){qf(this,sr(this,e),t)}),extendSelectionsBy:Ot(function(e,t){var o=oe(this.sel.ranges,e);qf(this,sr(this,o),t)}),setSelections:Ot(function(e,t,o){if(!!e.length){for(var i=[],a=0;a<e.length;a++)i[a]=new rt(Me(this,e[a].anchor),Me(this,e[a].head||e[a].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Dt(this,xr(this.cm,i,t),o)}}),addSelection:Ot(function(e,t,o){var i=this.sel.ranges.slice(0);i.push(new rt(Me(this,e),Me(this,t||e))),Dt(this,xr(this.cm,i,i.length-1),o)}),getSelection:function(e){for(var t=this.sel.ranges,o,i=0;i<t.length;i++){var a=Pr(this,t[i].from(),t[i].to());o=o?o.concat(a):a}return e===!1?o:o.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],o=this.sel.ranges,i=0;i<o.length;i++){var a=Pr(this,o[i].from(),o[i].to());e!==!1&&(a=a.join(e||this.lineSeparator())),t[i]=a}return t},replaceSelection:function(e,t,o){for(var i=[],a=0;a<this.sel.ranges.length;a++)i[a]=e;this.replaceSelections(i,t,o||"+input")},replaceSelections:Ot(function(e,t,o){for(var i=[],a=this.sel,f=0;f<a.ranges.length;f++){var h=a.ranges[f];i[f]={from:h.from(),to:h.to(),text:this.splitLines(e[f]),origin:o}}for(var g=t&&t!="end"&&Gv(this,i,t),y=i.length-1;y>=0;y--)di(this,i[y]);g?ec(this,g):this.cm&&li(this.cm)}),undo:Ot(function(){Ns(this,"undo")}),redo:Ot(function(){Ns(this,"redo")}),undoSelection:Ot(function(){Ns(this,"undo",!0)}),redoSelection:Ot(function(){Ns(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,o=0,i=0;i<e.done.length;i++)e.done[i].ranges||++t;for(var a=0;a<e.undone.length;a++)e.undone[a].ranges||++o;return{undo:t,redo:o}},clearHistory:function(){var e=this;this.history=new Es(this.history),sn(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:fi(this.history.done),undone:fi(this.history.undone)}},setHistory:function(e){var t=this.history=new Es(this.history);t.done=fi(e.done.slice(0),null,!0),t.undone=fi(e.undone.slice(0),null,!0)},setGutterMarker:Ot(function(e,t,o){return co(this,e,"gutter",function(i){var a=i.gutterMarkers||(i.gutterMarkers={});return a[t]=o,!o&&Z(a)&&(i.gutterMarkers=null),!0})}),clearGutter:Ot(function(e){var t=this;this.iter(function(o){o.gutterMarkers&&o.gutterMarkers[e]&&co(t,o,"gutter",function(){return o.gutterMarkers[e]=null,Z(o.gutterMarkers)&&(o.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!En(this,e)||(t=e,e=Ne(this,e),!e))return null}else if(t=tt(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Ot(function(e,t,o){return co(this,e,t=="gutter"?"gutter":"class",function(i){var a=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!i[a])i[a]=o;else{if(ie(o).test(i[a]))return!1;i[a]+=" "+o}return!0})}),removeLineClass:Ot(function(e,t,o){return co(this,e,t=="gutter"?"gutter":"class",function(i){var a=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",f=i[a];if(f)if(o==null)i[a]=null;else{var h=f.match(ie(o));if(!h)return!1;var g=h.index+h[0].length;i[a]=f.slice(0,h.index)+(!h.index||g==f.length?"":" ")+f.slice(g)||null}else return!1;return!0})}),addLineWidget:Ot(function(e,t,o){return _v(this,e,t,o)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,o){return pi(this,Me(this,e),Me(this,t),o,o&&o.type||"range")},setBookmark:function(e,t){var o={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=Me(this,e),pi(this,e,e,o,"bookmark")},findMarksAt:function(e){e=Me(this,e);var t=[],o=Ne(this,e.line).markedSpans;if(o)for(var i=0;i<o.length;++i){var a=o[i];(a.from==null||a.from<=e.ch)&&(a.to==null||a.to>=e.ch)&&t.push(a.marker.parent||a.marker)}return t},findMarks:function(e,t,o){e=Me(this,e),t=Me(this,t);var i=[],a=e.line;return this.iter(e.line,t.line+1,function(f){var h=f.markedSpans;if(h)for(var g=0;g<h.length;g++){var y=h[g];!(y.to!=null&&a==e.line&&e.ch>=y.to||y.from==null&&a!=e.line||y.from!=null&&a==t.line&&y.from>=t.ch)&&(!o||o(y.marker))&&i.push(y.marker.parent||y.marker)}++a}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var o=t.markedSpans;if(o)for(var i=0;i<o.length;++i)o[i].from!=null&&e.push(o[i].marker)}),e},posFromIndex:function(e){var t,o=this.first,i=this.lineSeparator().length;return this.iter(function(a){var f=a.text.length+i;if(f>e)return t=e,!0;e-=f,++o}),Me(this,pe(o,t))},indexFromPos:function(e){e=Me(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var o=this.lineSeparator().length;return this.iter(this.first,e.line,function(i){t+=i.text.length+o}),t},copy:function(e){var t=new Gt(Vi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,o=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<o&&(o=e.to);var i=new Gt(Vi(this,t,o),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:e.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],tg(i,pc(this)),i},unlinkDoc:function(e){if(e instanceof ut&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var o=this.linked[t];if(o.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),rg(pc(this));break}}if(e.history==this.history){var i=[e.id];sn(e,function(a){return i.push(a.id)},!0),e.history=new Es(null),e.history.done=fi(this.history.done,i),e.history.undone=fi(this.history.undone,i)}},iterLinkedDocs:function(e){sn(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Gi(e)},lineSeparator:function(){return this.lineSep||`
14
+ `},setDirection:Ot(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&$v(this.cm))})}),Gt.prototype.eachLine=Gt.prototype.iter;var vc=0;function ig(e){var t=this;if(gc(t),!(ze(t,e)||Kr(t.display,e))){Pt(e),p&&(vc=+new Date);var o=An(t,e,!0),i=e.dataTransfer.files;if(!(!o||t.isReadOnly()))if(i&&i.length&&window.FileReader&&window.File)for(var a=i.length,f=Array(a),h=0,g=function(){++h==a&&Et(t,function(){o=Me(t.doc,o);var K={from:o,to:o,text:t.doc.splitLines(f.filter(function(re){return re!=null}).join(t.doc.lineSeparator())),origin:"paste"};di(t.doc,K),ec(t.doc,nn(Me(t.doc,o),Me(t.doc,on(K))))})()},y=function(K,re){if(t.options.allowDropFileTypes&&se(t.options.allowDropFileTypes,K.type)==-1){g();return}var ce=new FileReader;ce.onerror=function(){return g()},ce.onload=function(){var xe=ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(xe)){g();return}f[re]=xe,g()},ce.readAsText(K)},w=0;w<i.length;w++)y(i[w],w);else{if(t.state.draggingText&&t.doc.sel.contains(o)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var O=e.dataTransfer.getData("Text");if(O){var N;if(t.state.draggingText&&!t.state.draggingText.copy&&(N=t.listSelections()),As(t.doc,nn(o,o)),N)for(var $=0;$<N.length;++$)hi(t.doc,"",N[$].anchor,N[$].head,"drag");t.replaceSelection(O,"around","paste"),t.display.input.focus()}}catch{}}}}function og(e,t){if(p&&(!e.state.draggingText||+new Date-vc<100)){kn(t);return}if(!(ze(e,t)||Kr(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!A)){var o=E("img",null,null,"position: fixed; left: 0; top: 0;");o.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",P&&(o.width=o.height=1,e.display.wrapper.appendChild(o),o._top=o.offsetTop),t.dataTransfer.setDragImage(o,0,0),P&&o.parentNode.removeChild(o)}}function sg(e,t){var o=An(e,t);if(!!o){var i=document.createDocumentFragment();Ja(e,o,i),e.display.dragCursor||(e.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),k(e.display.dragCursor,i)}}function gc(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function mc(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),o=[],i=0;i<t.length;i++){var a=t[i].CodeMirror;a&&o.push(a)}o.length&&o[0].operation(function(){for(var f=0;f<o.length;f++)e(o[f])})}}var yc=!1;function ag(){yc||(lg(),yc=!0)}function lg(){var e;Fe(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,mc(ug)},100))}),Fe(window,"blur",function(){return mc(ai)})}function ug(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var ln={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"},mo=0;mo<10;mo++)ln[mo+48]=ln[mo+96]=String(mo);for(var Is=65;Is<=90;Is++)ln[Is]=String.fromCharCode(Is);for(var yo=1;yo<=12;yo++)ln[yo+111]=ln[yo+63235]="F"+yo;var Gr={};Gr.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"},Gr.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"},Gr.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"},Gr.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"]},Gr.default=B?Gr.macDefault:Gr.pcDefault;function fg(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var o,i,a,f,h=0;h<t.length-1;h++){var g=t[h];if(/^(cmd|meta|m)$/i.test(g))f=!0;else if(/^a(lt)?$/i.test(g))o=!0;else if(/^(c|ctrl|control)$/i.test(g))i=!0;else if(/^s(hift)?$/i.test(g))a=!0;else throw new Error("Unrecognized modifier name: "+g)}return o&&(e="Alt-"+e),i&&(e="Ctrl-"+e),f&&(e="Cmd-"+e),a&&(e="Shift-"+e),e}function cg(e){var t={};for(var o in e)if(e.hasOwnProperty(o)){var i=e[o];if(/^(name|fallthrough|(de|at)tach)$/.test(o))continue;if(i=="..."){delete e[o];continue}for(var a=oe(o.split(" "),fg),f=0;f<a.length;f++){var h=void 0,g=void 0;f==a.length-1?(g=a.join(" "),h=i):(g=a.slice(0,f+1).join(" "),h="...");var y=t[g];if(!y)t[g]=h;else if(y!=h)throw new Error("Inconsistent bindings for "+g)}delete e[o]}for(var w in t)e[w]=t[w];return e}function vi(e,t,o,i){t=Rs(t);var a=t.call?t.call(e,i):t[e];if(a===!1)return"nothing";if(a==="...")return"multi";if(a!=null&&o(a))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return vi(e,t.fallthrough,o,i);for(var f=0;f<t.fallthrough.length;f++){var h=vi(e,t.fallthrough[f],o,i);if(h)return h}}}function bc(e){var t=typeof e=="string"?e:ln[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function xc(e,t,o){var i=e;return t.altKey&&i!="Alt"&&(e="Alt-"+e),(J?t.metaKey:t.ctrlKey)&&i!="Ctrl"&&(e="Ctrl-"+e),(J?t.ctrlKey:t.metaKey)&&i!="Mod"&&(e="Cmd-"+e),!o&&t.shiftKey&&i!="Shift"&&(e="Shift-"+e),e}function wc(e,t){if(P&&e.keyCode==34&&e.char)return!1;var o=ln[e.keyCode];return o==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(o=e.code),xc(o,e,t))}function Rs(e){return typeof e=="string"?Gr[e]:e}function gi(e,t){for(var o=e.doc.sel.ranges,i=[],a=0;a<o.length;a++){for(var f=t(o[a]);i.length&&C(f.from,X(i).to)<=0;){var h=i.pop();if(C(h.from,f.from)<0){f.from=h.from;break}}i.push(f)}_t(e,function(){for(var g=i.length-1;g>=0;g--)hi(e.doc,"",i[g].from,i[g].to,"+delete");li(e)})}function dl(e,t,o){var i=Re(e.text,t+o,o);return i<0||i>e.text.length?null:i}function hl(e,t,o){var i=dl(e,t.ch,o);return i==null?null:new pe(t.line,i,o<0?"after":"before")}function pl(e,t,o,i,a){if(e){t.doc.direction=="rtl"&&(a=-a);var f=ct(o,t.doc.direction);if(f){var h=a<0?X(f):f[0],g=a<0==(h.level==1),y=g?"after":"before",w;if(h.level>0||t.doc.direction=="rtl"){var O=ii(t,o);w=a<0?o.text.length-1:0;var N=Ar(t,O,w).top;w=$e(function($){return Ar(t,O,$).top==N},a<0==(h.level==1)?h.from:h.to-1,w),y=="before"&&(w=dl(o,w,1))}else w=a<0?h.to:h.from;return new pe(i,w,y)}}return new pe(i,a<0?o.text.length:0,a<0?"before":"after")}function dg(e,t,o,i){var a=ct(t,e.doc.direction);if(!a)return hl(t,o,i);o.ch>=t.text.length?(o.ch=t.text.length,o.sticky="before"):o.ch<=0&&(o.ch=0,o.sticky="after");var f=Ue(a,o.ch,o.sticky),h=a[f];if(e.doc.direction=="ltr"&&h.level%2==0&&(i>0?h.to>o.ch:h.from<o.ch))return hl(t,o,i);var g=function(Te,Oe){return dl(t,Te instanceof pe?Te.ch:Te,Oe)},y,w=function(Te){return e.options.lineWrapping?(y=y||ii(e,t),kf(e,t,y,Te)):{begin:0,end:t.text.length}},O=w(o.sticky=="before"?g(o,-1):o.ch);if(e.doc.direction=="rtl"||h.level==1){var N=h.level==1==i<0,$=g(o,N?1:-1);if($!=null&&(N?$<=h.to&&$<=O.end:$>=h.from&&$>=O.begin)){var K=N?"before":"after";return new pe(o.line,$,K)}}var re=function(Te,Oe,Pe){for(var Ae=function(at,Mt){return Mt?new pe(o.line,g(at,1),"before"):new pe(o.line,at,"after")};Te>=0&&Te<a.length;Te+=Oe){var He=a[Te],De=Oe>0==(He.level!=1),Ze=De?Pe.begin:g(Pe.end,-1);if(He.from<=Ze&&Ze<He.to||(Ze=De?He.from:g(He.to,-1),Pe.begin<=Ze&&Ze<Pe.end))return Ae(Ze,De)}},ce=re(f+i,i,O);if(ce)return ce;var xe=i>0?O.end:g(O.begin,-1);return xe!=null&&!(i>0&&xe==t.text.length)&&(ce=re(i>0?0:a.length-1,i,w(xe)),ce)?ce:null}var bo={selectAll:oc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ie)},killLine:function(e){return gi(e,function(t){if(t.empty()){var o=Ne(e.doc,t.head.line).text.length;return t.head.ch==o&&t.head.line<e.lastLine()?{from:t.head,to:pe(t.head.line+1,0)}:{from:t.head,to:pe(t.head.line,o)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return gi(e,function(t){return{from:pe(t.from().line,0),to:Me(e.doc,pe(t.to().line+1,0))}})},delLineLeft:function(e){return gi(e,function(t){return{from:pe(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return gi(e,function(t){var o=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:o},"div");return{from:i,to:t.from()}})},delWrappedLineRight:function(e){return gi(e,function(t){var o=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:o},"div");return{from:t.from(),to:i}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(pe(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(pe(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Sc(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Cc(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return hg(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:o},"div")},me)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:o},"div")},me)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:o},"div");return i.ch<e.getLine(i.line).search(/\S/)?Cc(e,t.head):i},me)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],o=e.listSelections(),i=e.options.tabSize,a=0;a<o.length;a++){var f=o[a].from(),h=Xe(e.getLine(f.line),f.ch,i);t.push(j(i-h%i))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return _t(e,function(){for(var t=e.listSelections(),o=[],i=0;i<t.length;i++)if(!!t[i].empty()){var a=t[i].head,f=Ne(e.doc,a.line).text;if(f){if(a.ch==f.length&&(a=new pe(a.line,a.ch-1)),a.ch>0)a=new pe(a.line,a.ch+1),e.replaceRange(f.charAt(a.ch-1)+f.charAt(a.ch-2),pe(a.line,a.ch-2),a,"+transpose");else if(a.line>e.doc.first){var h=Ne(e.doc,a.line-1).text;h&&(a=new pe(a.line,1),e.replaceRange(f.charAt(0)+e.doc.lineSeparator()+h.charAt(h.length-1),pe(a.line-1,h.length-1),a,"+transpose"))}}o.push(new rt(a,a))}e.setSelections(o)})},newlineAndIndent:function(e){return _t(e,function(){for(var t=e.listSelections(),o=t.length-1;o>=0;o--)e.replaceRange(e.doc.lineSeparator(),t[o].anchor,t[o].head,"+input");t=e.listSelections();for(var i=0;i<t.length;i++)e.indentLine(t[i].from().line,null,!0);li(e)})},openLine:function(e){return e.replaceSelection(`
15
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Sc(e,t){var o=Ne(e.doc,t),i=Or(o);return i!=o&&(t=tt(i)),pl(!0,e,i,t,1)}function hg(e,t){var o=Ne(e.doc,t),i=Zp(o);return i!=o&&(t=tt(i)),pl(!0,e,o,t,-1)}function Cc(e,t){var o=Sc(e,t.line),i=Ne(e.doc,o.line),a=ct(i,e.doc.direction);if(!a||a[0].level==0){var f=Math.max(o.ch,i.text.search(/\S/)),h=t.line==o.line&&t.ch<=f&&t.ch;return pe(o.line,h?0:f,o.sticky)}return o}function Fs(e,t,o){if(typeof t=="string"&&(t=bo[t],!t))return!1;e.display.input.ensurePolled();var i=e.display.shift,a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),o&&(e.display.shift=!1),a=t(e)!=be}finally{e.display.shift=i,e.state.suppressEdits=!1}return a}function pg(e,t,o){for(var i=0;i<e.state.keyMaps.length;i++){var a=vi(t,e.state.keyMaps[i],o,e);if(a)return a}return e.options.extraKeys&&vi(t,e.options.extraKeys,o,e)||vi(t,e.options.keyMap,o,e)}var vg=new ne;function xo(e,t,o,i){var a=e.state.keySeq;if(a){if(bc(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:vg.set(50,function(){e.state.keySeq==a&&(e.state.keySeq=null,e.display.input.reset())}),Tc(e,a+" "+t,o,i))return!0}return Tc(e,t,o,i)}function Tc(e,t,o,i){var a=pg(e,t,i);return a=="multi"&&(e.state.keySeq=t),a=="handled"&&kt(e,"keyHandled",e,t,o),(a=="handled"||a=="multi")&&(Pt(o),Za(e)),!!a}function Pc(e,t){var o=wc(t,!0);return o?t.shiftKey&&!e.state.keySeq?xo(e,"Shift-"+o,t,function(i){return Fs(e,i,!0)})||xo(e,o,t,function(i){if(typeof i=="string"?/^go[A-Z]/.test(i):i.motion)return Fs(e,i)}):xo(e,o,t,function(i){return Fs(e,i)}):!1}function gg(e,t,o){return xo(e,"'"+o+"'",t,function(i){return Fs(e,i,!0)})}var vl=null;function kc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=G(),!ze(t,e))){p&&m<11&&e.keyCode==27&&(e.returnValue=!1);var o=e.keyCode;t.display.shift=o==16||e.shiftKey;var i=Pc(t,e);P&&(vl=i?o:null,!i&&o==88&&!us&&(B?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),u&&!B&&!i&&o==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),o==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&mg(t)}}function mg(e){var t=e.display.lineDiv;ue(t,"CodeMirror-crosshair");function o(i){(i.keyCode==18||!i.altKey)&&(Q(t,"CodeMirror-crosshair"),ke(document,"keyup",o),ke(document,"mouseover",o))}Fe(document,"keyup",o),Fe(document,"mouseover",o)}function Ec(e){e.keyCode==16&&(this.doc.sel.shift=!1),ze(this,e)}function Oc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Kr(t.display,e)||ze(t,e)||e.ctrlKey&&!e.altKey||B&&e.metaKey)){var o=e.keyCode,i=e.charCode;if(P&&o==vl){vl=null,Pt(e);return}if(!(P&&(!e.which||e.which<10)&&Pc(t,e))){var a=String.fromCharCode(i==null?o:i);a!="\b"&&(gg(t,e,a)||t.display.input.onKeyPress(e))}}}var yg=400,gl=function(e,t,o){this.time=e,this.pos=t,this.button=o};gl.prototype.compare=function(e,t,o){return this.time+yg>e&&C(t,this.pos)==0&&o==this.button};var wo,So;function bg(e,t){var o=+new Date;return So&&So.compare(o,e,t)?(wo=So=null,"triple"):wo&&wo.compare(o,e,t)?(So=new gl(o,e,t),wo=null,"double"):(wo=new gl(o,e,t),So=null,"single")}function Mc(e){var t=this,o=t.display;if(!(ze(t,e)||o.activeTouch&&o.input.supportsTouch())){if(o.input.ensurePolled(),o.shift=e.shiftKey,Kr(o,e)){b||(o.scroller.draggable=!1,setTimeout(function(){return o.scroller.draggable=!0},100));return}if(!ml(t,e)){var i=An(t,e),a=ss(e),f=i?bg(i,a):"single";window.focus(),a==1&&t.state.selectingText&&t.state.selectingText(e),!(i&&xg(t,a,i,f,e))&&(a==1?i?Sg(t,i,f,e):qr(e)==o.scroller&&Pt(e):a==2?(i&&Ms(t.doc,i),setTimeout(function(){return o.input.focus()},20)):a==3&&(te?t.display.input.onContextMenu(e):Qa(t)))}}}function xg(e,t,o,i,a){var f="Click";return i=="double"?f="Double"+f:i=="triple"&&(f="Triple"+f),f=(t==1?"Left":t==2?"Middle":"Right")+f,xo(e,xc(f,a),a,function(h){if(typeof h=="string"&&(h=bo[h]),!h)return!1;var g=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),g=h(e,o)!=be}finally{e.state.suppressEdits=!1}return g})}function wg(e,t,o){var i=e.getOption("configureMouse"),a=i?i(e,t,o):{};if(a.unit==null){var f=_?o.shiftKey&&o.metaKey:o.altKey;a.unit=f?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(a.extend==null||e.doc.extend)&&(a.extend=e.doc.extend||o.shiftKey),a.addNew==null&&(a.addNew=B?o.metaKey:o.ctrlKey),a.moveOnDrag==null&&(a.moveOnDrag=!(B?o.altKey:o.ctrlKey)),a}function Sg(e,t,o,i){p?setTimeout(We(Af,e),0):e.curOp.focus=G();var a=wg(e,o,i),f=e.doc.sel,h;e.options.dragDrop&&Ki&&!e.isReadOnly()&&o=="single"&&(h=f.contains(t))>-1&&(C((h=f.ranges[h]).from(),t)<0||t.xRel>0)&&(C(h.to(),t)>0||t.xRel<0)?Cg(e,i,t,a):Tg(e,i,t,a)}function Cg(e,t,o,i){var a=e.display,f=!1,h=Et(e,function(w){b&&(a.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Qa(e)),ke(a.wrapper.ownerDocument,"mouseup",h),ke(a.wrapper.ownerDocument,"mousemove",g),ke(a.scroller,"dragstart",y),ke(a.scroller,"drop",h),f||(Pt(w),i.addNew||Ms(e.doc,o,null,null,i.extend),b&&!A||p&&m==9?setTimeout(function(){a.wrapper.ownerDocument.body.focus({preventScroll:!0}),a.input.focus()},20):a.input.focus())}),g=function(w){f=f||Math.abs(t.clientX-w.clientX)+Math.abs(t.clientY-w.clientY)>=10},y=function(){return f=!0};b&&(a.scroller.draggable=!0),e.state.draggingText=h,h.copy=!i.moveOnDrag,Fe(a.wrapper.ownerDocument,"mouseup",h),Fe(a.wrapper.ownerDocument,"mousemove",g),Fe(a.scroller,"dragstart",y),Fe(a.scroller,"drop",h),e.state.delayingBlurEvent=!0,setTimeout(function(){return a.input.focus()},20),a.scroller.dragDrop&&a.scroller.dragDrop()}function Ac(e,t,o){if(o=="char")return new rt(t,t);if(o=="word")return e.findWordAt(t);if(o=="line")return new rt(pe(t.line,0),Me(e.doc,pe(t.line+1,0)));var i=o(e,t);return new rt(i.from,i.to)}function Tg(e,t,o,i){p&&Qa(e);var a=e.display,f=e.doc;Pt(t);var h,g,y=f.sel,w=y.ranges;if(i.addNew&&!i.extend?(g=f.sel.contains(o),g>-1?h=w[g]:h=new rt(o,o)):(h=f.sel.primary(),g=f.sel.primIndex),i.unit=="rectangle")i.addNew||(h=new rt(o,o)),o=An(e,t,!0,!0),g=-1;else{var O=Ac(e,o,i.unit);i.extend?h=fl(h,O.anchor,O.head,i.extend):h=O}i.addNew?g==-1?(g=w.length,Dt(f,xr(e,w.concat([h]),g),{scroll:!1,origin:"*mouse"})):w.length>1&&w[g].empty()&&i.unit=="char"&&!i.extend?(Dt(f,xr(e,w.slice(0,g).concat(w.slice(g+1)),0),{scroll:!1,origin:"*mouse"}),y=f.sel):cl(f,g,h,Ee):(g=0,Dt(f,new ar([h],0),Ee),y=f.sel);var N=o;function $(Pe){if(C(N,Pe)!=0)if(N=Pe,i.unit=="rectangle"){for(var Ae=[],He=e.options.tabSize,De=Xe(Ne(f,o.line).text,o.ch,He),Ze=Xe(Ne(f,Pe.line).text,Pe.ch,He),at=Math.min(De,Ze),Mt=Math.max(De,Ze),dt=Math.min(o.line,Pe.line),er=Math.min(e.lastLine(),Math.max(o.line,Pe.line));dt<=er;dt++){var $t=Ne(f,dt).text,wt=Le($t,at,He);at==Mt?Ae.push(new rt(pe(dt,wt),pe(dt,wt))):$t.length>wt&&Ae.push(new rt(pe(dt,wt),pe(dt,Le($t,Mt,He))))}Ae.length||Ae.push(new rt(o,o)),Dt(f,xr(e,y.ranges.slice(0,g).concat(Ae),g),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Pe)}else{var Yt=h,It=Ac(e,Pe,i.unit),Ct=Yt.anchor,St;C(It.anchor,Ct)>0?(St=It.head,Ct=Ge(Yt.from(),It.anchor)):(St=It.anchor,Ct=ye(Yt.to(),It.head));var pt=y.ranges.slice(0);pt[g]=Pg(e,new rt(Me(f,Ct),St)),Dt(f,xr(e,pt,g),Ee)}}var K=a.wrapper.getBoundingClientRect(),re=0;function ce(Pe){var Ae=++re,He=An(e,Pe,!0,i.unit=="rectangle");if(!!He)if(C(He,N)!=0){e.curOp.focus=G(),$(He);var De=Cs(a,f);(He.line>=De.to||He.line<De.from)&&setTimeout(Et(e,function(){re==Ae&&ce(Pe)}),150)}else{var Ze=Pe.clientY<K.top?-20:Pe.clientY>K.bottom?20:0;Ze&&setTimeout(Et(e,function(){re==Ae&&(a.scroller.scrollTop+=Ze,ce(Pe))}),50)}}function xe(Pe){e.state.selectingText=!1,re=1/0,Pe&&(Pt(Pe),a.input.focus()),ke(a.wrapper.ownerDocument,"mousemove",Te),ke(a.wrapper.ownerDocument,"mouseup",Oe),f.history.lastSelOrigin=null}var Te=Et(e,function(Pe){Pe.buttons===0||!ss(Pe)?xe(Pe):ce(Pe)}),Oe=Et(e,xe);e.state.selectingText=Oe,Fe(a.wrapper.ownerDocument,"mousemove",Te),Fe(a.wrapper.ownerDocument,"mouseup",Oe)}function Pg(e,t){var o=t.anchor,i=t.head,a=Ne(e.doc,o.line);if(C(o,i)==0&&o.sticky==i.sticky)return t;var f=ct(a);if(!f)return t;var h=Ue(f,o.ch,o.sticky),g=f[h];if(g.from!=o.ch&&g.to!=o.ch)return t;var y=h+(g.from==o.ch==(g.level!=1)?0:1);if(y==0||y==f.length)return t;var w;if(i.line!=o.line)w=(i.line-o.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var O=Ue(f,i.ch,i.sticky),N=O-h||(i.ch-o.ch)*(g.level==1?-1:1);O==y-1||O==y?w=N<0:w=N>0}var $=f[y+(w?-1:0)],K=w==($.level==1),re=K?$.from:$.to,ce=K?"after":"before";return o.ch==re&&o.sticky==ce?t:new rt(new pe(o.line,re,ce),i)}function Lc(e,t,o,i){var a,f;if(t.touches)a=t.touches[0].clientX,f=t.touches[0].clientY;else try{a=t.clientX,f=t.clientY}catch{return!1}if(a>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&Pt(t);var h=e.display,g=h.lineDiv.getBoundingClientRect();if(f>g.bottom||!et(e,o))return nr(t);f-=g.top-h.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var w=h.gutters.childNodes[y];if(w&&w.getBoundingClientRect().right>=a){var O=kr(e.doc,f),N=e.display.gutterSpecs[y];return ve(e,o,e,O,N.className,t),nr(t)}}}function ml(e,t){return Lc(e,t,"gutterClick",!0)}function Nc(e,t){Kr(e.display,t)||kg(e,t)||ze(e,t,"contextmenu")||te||e.display.input.onContextMenu(t)}function kg(e,t){return et(e,"gutterContextMenu")?Lc(e,t,"gutterContextMenu",!1):!1}function Ic(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),to(e)}var mi={toString:function(){return"CodeMirror.Init"}},Rc={},Ds={};function Eg(e){var t=e.optionHandlers;function o(i,a,f,h){e.defaults[i]=a,f&&(t[i]=h?function(g,y,w){w!=mi&&f(g,y,w)}:f)}e.defineOption=o,e.Init=mi,o("value","",function(i,a){return i.setValue(a)},!0),o("mode",null,function(i,a){i.doc.modeOption=a,al(i)},!0),o("indentUnit",2,al,!0),o("indentWithTabs",!1),o("smartIndent",!0),o("tabSize",4,function(i){uo(i),to(i),Ut(i)},!0),o("lineSeparator",null,function(i,a){if(i.doc.lineSep=a,!!a){var f=[],h=i.doc.first;i.doc.iter(function(y){for(var w=0;;){var O=y.text.indexOf(a,w);if(O==-1)break;w=O+a.length,f.push(pe(h,O))}h++});for(var g=f.length-1;g>=0;g--)hi(i.doc,a,f[g],pe(f[g].line,f[g].ch+a.length))}}),o("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(i,a,f){i.state.specialChars=new RegExp(a.source+(a.test(" ")?"":"| "),"g"),f!=mi&&i.refresh()}),o("specialCharPlaceholder",rv,function(i){return i.refresh()},!0),o("electricChars",!0),o("inputStyle",F?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),o("spellcheck",!1,function(i,a){return i.getInputField().spellcheck=a},!0),o("autocorrect",!1,function(i,a){return i.getInputField().autocorrect=a},!0),o("autocapitalize",!1,function(i,a){return i.getInputField().autocapitalize=a},!0),o("rtlMoveVisually",!ee),o("wholeLineUpdateBefore",!0),o("theme","default",function(i){Ic(i),lo(i)},!0),o("keyMap","default",function(i,a,f){var h=Rs(a),g=f!=mi&&Rs(f);g&&g.detach&&g.detach(i,h),h.attach&&h.attach(i,g||null)}),o("extraKeys",null),o("configureMouse",null),o("lineWrapping",!1,Mg,!0),o("gutters",[],function(i,a){i.display.gutterSpecs=ol(a,i.options.lineNumbers),lo(i)},!0),o("fixedGutter",!0,function(i,a){i.display.gutters.style.left=a?Xa(i.display)+"px":"0",i.refresh()},!0),o("coverGutterNextToScrollbar",!1,function(i){return ui(i)},!0),o("scrollbarStyle","native",function(i){Df(i),ui(i),i.display.scrollbars.setScrollTop(i.doc.scrollTop),i.display.scrollbars.setScrollLeft(i.doc.scrollLeft)},!0),o("lineNumbers",!1,function(i,a){i.display.gutterSpecs=ol(i.options.gutters,a),lo(i)},!0),o("firstLineNumber",1,lo,!0),o("lineNumberFormatter",function(i){return i},lo,!0),o("showCursorWhenSelecting",!1,ro,!0),o("resetSelectionOnContextMenu",!0),o("lineWiseCopyCut",!0),o("pasteLinesPerSelection",!0),o("selectionsMayTouch",!1),o("readOnly",!1,function(i,a){a=="nocursor"&&(ai(i),i.display.input.blur()),i.display.input.readOnlyChanged(a)}),o("screenReaderLabel",null,function(i,a){a=a===""?null:a,i.display.input.screenReaderLabelChanged(a)}),o("disableInput",!1,function(i,a){a||i.display.input.reset()},!0),o("dragDrop",!0,Og),o("allowDropFileTypes",null),o("cursorBlinkRate",530),o("cursorScrollMargin",0),o("cursorHeight",1,ro,!0),o("singleCursorHeightPerLine",!0,ro,!0),o("workTime",100),o("workDelay",100),o("flattenSpans",!0,uo,!0),o("addModeClass",!1,uo,!0),o("pollInterval",100),o("undoDepth",200,function(i,a){return i.doc.history.undoDepth=a}),o("historyEventDelay",1250),o("viewportMargin",10,function(i){return i.refresh()},!0),o("maxHighlightLength",1e4,uo,!0),o("moveInputWithCursor",!0,function(i,a){a||i.display.input.resetPosition()}),o("tabindex",null,function(i,a){return i.display.input.getField().tabIndex=a||""}),o("autofocus",null),o("direction","ltr",function(i,a){return i.doc.setDirection(a)},!0),o("phrases",null)}function Og(e,t,o){var i=o&&o!=mi;if(!t!=!i){var a=e.display.dragFunctions,f=t?Fe:ke;f(e.display.scroller,"dragstart",a.start),f(e.display.scroller,"dragenter",a.enter),f(e.display.scroller,"dragover",a.over),f(e.display.scroller,"dragleave",a.leave),f(e.display.scroller,"drop",a.drop)}}function Mg(e){e.options.lineWrapping?(ue(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Q(e.display.wrapper,"CodeMirror-wrap"),za(e)),Va(e),Ut(e),to(e),setTimeout(function(){return ui(e)},100)}function ut(e,t){var o=this;if(!(this instanceof ut))return new ut(e,t);this.options=t=t?Ke(t):{},Ke(Rc,t,!1);var i=t.value;typeof i=="string"?i=new Gt(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var a=new ut.inputStyles[t.inputStyle](this),f=this.display=new Kv(e,i,a,t);f.wrapper.CodeMirror=this,Ic(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Df(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 ne,keySeq:null,specialChars:null},t.autofocus&&!F&&f.input.focus(),p&&m<11&&setTimeout(function(){return o.display.input.reset(!0)},20),Ag(this),ag(),Rn(this),this.curOp.forceUpdate=!0,Yf(this,i),t.autofocus&&!F||this.hasFocus()?setTimeout(function(){o.hasFocus()&&!o.state.focused&&qa(o)},20):ai(this);for(var h in Ds)Ds.hasOwnProperty(h)&&Ds[h](this,t[h],mi);Bf(this),t.finishInit&&t.finishInit(this);for(var g=0;g<yl.length;++g)yl[g](this);Fn(this),b&&t.lineWrapping&&getComputedStyle(f.lineDiv).textRendering=="optimizelegibility"&&(f.lineDiv.style.textRendering="auto")}ut.defaults=Rc,ut.optionHandlers=Ds;function Ag(e){var t=e.display;Fe(t.scroller,"mousedown",Et(e,Mc)),p&&m<11?Fe(t.scroller,"dblclick",Et(e,function(y){if(!ze(e,y)){var w=An(e,y);if(!(!w||ml(e,y)||Kr(e.display,y))){Pt(y);var O=e.findWordAt(w);Ms(e.doc,O.anchor,O.head)}}})):Fe(t.scroller,"dblclick",function(y){return ze(e,y)||Pt(y)}),Fe(t.scroller,"contextmenu",function(y){return Nc(e,y)}),Fe(t.input.getField(),"contextmenu",function(y){t.scroller.contains(y.target)||Nc(e,y)});var o,i={end:0};function a(){t.activeTouch&&(o=setTimeout(function(){return t.activeTouch=null},1e3),i=t.activeTouch,i.end=+new Date)}function f(y){if(y.touches.length!=1)return!1;var w=y.touches[0];return w.radiusX<=1&&w.radiusY<=1}function h(y,w){if(w.left==null)return!0;var O=w.left-y.left,N=w.top-y.top;return O*O+N*N>20*20}Fe(t.scroller,"touchstart",function(y){if(!ze(e,y)&&!f(y)&&!ml(e,y)){t.input.ensurePolled(),clearTimeout(o);var w=+new Date;t.activeTouch={start:w,moved:!1,prev:w-i.end<=300?i:null},y.touches.length==1&&(t.activeTouch.left=y.touches[0].pageX,t.activeTouch.top=y.touches[0].pageY)}}),Fe(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Fe(t.scroller,"touchend",function(y){var w=t.activeTouch;if(w&&!Kr(t,y)&&w.left!=null&&!w.moved&&new Date-w.start<300){var O=e.coordsChar(t.activeTouch,"page"),N;!w.prev||h(w,w.prev)?N=new rt(O,O):!w.prev.prev||h(w,w.prev.prev)?N=e.findWordAt(O):N=new rt(pe(O.line,0),Me(e.doc,pe(O.line+1,0))),e.setSelection(N.anchor,N.head),e.focus(),Pt(y)}a()}),Fe(t.scroller,"touchcancel",a),Fe(t.scroller,"scroll",function(){t.scroller.clientHeight&&(io(e,t.scroller.scrollTop),Nn(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))}),Fe(t.scroller,"mousewheel",function(y){return Kf(e,y)}),Fe(t.scroller,"DOMMouseScroll",function(y){return Kf(e,y)}),Fe(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(y){ze(e,y)||kn(y)},over:function(y){ze(e,y)||(sg(e,y),kn(y))},start:function(y){return og(e,y)},drop:Et(e,ig),leave:function(y){ze(e,y)||gc(e)}};var g=t.input.getField();Fe(g,"keyup",function(y){return Ec.call(e,y)}),Fe(g,"keydown",Et(e,kc)),Fe(g,"keypress",Et(e,Oc)),Fe(g,"focus",function(y){return qa(e,y)}),Fe(g,"blur",function(y){return ai(e,y)})}var yl=[];ut.defineInitHook=function(e){return yl.push(e)};function Co(e,t,o,i){var a=e.doc,f;o==null&&(o="add"),o=="smart"&&(a.mode.indent?f=Zi(e,t).state:o="prev");var h=e.options.tabSize,g=Ne(a,t),y=Xe(g.text,null,h);g.stateAfter&&(g.stateAfter=null);var w=g.text.match(/^\s*/)[0],O;if(!i&&!/\S/.test(g.text))O=0,o="not";else if(o=="smart"&&(O=a.mode.indent(f,g.text.slice(w.length),g.text),O==be||O>150)){if(!i)return;o="prev"}o=="prev"?t>a.first?O=Xe(Ne(a,t-1).text,null,h):O=0:o=="add"?O=y+e.options.indentUnit:o=="subtract"?O=y-e.options.indentUnit:typeof o=="number"&&(O=y+o),O=Math.max(0,O);var N="",$=0;if(e.options.indentWithTabs)for(var K=Math.floor(O/h);K;--K)$+=h,N+=" ";if($<O&&(N+=j(O-$)),N!=w)return hi(a,N,pe(t,0),pe(t,w.length),"+input"),g.stateAfter=null,!0;for(var re=0;re<a.sel.ranges.length;re++){var ce=a.sel.ranges[re];if(ce.head.line==t&&ce.head.ch<w.length){var xe=pe(t,w.length);cl(a,re,new rt(xe,xe));break}}}var wr=null;function zs(e){wr=e}function bl(e,t,o,i,a){var f=e.doc;e.display.shift=!1,i||(i=f.sel);var h=+new Date-200,g=a=="paste"||e.state.pasteIncoming>h,y=Gi(t),w=null;if(g&&i.ranges.length>1)if(wr&&wr.text.join(`
16
+ `)==t){if(i.ranges.length%wr.text.length==0){w=[];for(var O=0;O<wr.text.length;O++)w.push(f.splitLines(wr.text[O]))}}else y.length==i.ranges.length&&e.options.pasteLinesPerSelection&&(w=oe(y,function(Te){return[Te]}));for(var N=e.curOp.updateInput,$=i.ranges.length-1;$>=0;$--){var K=i.ranges[$],re=K.from(),ce=K.to();K.empty()&&(o&&o>0?re=pe(re.line,re.ch-o):e.state.overwrite&&!g?ce=pe(ce.line,Math.min(Ne(f,ce.line).text.length,ce.ch+X(y).length)):g&&wr&&wr.lineWise&&wr.text.join(`
17
+ `)==y.join(`
18
+ `)&&(re=ce=pe(re.line,0)));var xe={from:re,to:ce,text:w?w[$%w.length]:y,origin:a||(g?"paste":e.state.cutIncoming>h?"cut":"+input")};di(e.doc,xe),kt(e,"inputRead",e,xe)}t&&!g&&Dc(e,t),li(e),e.curOp.updateInput<2&&(e.curOp.updateInput=N),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Fc(e,t){var o=e.clipboardData&&e.clipboardData.getData("Text");if(o)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&_t(t,function(){return bl(t,o,0,null,"paste")}),!0}function Dc(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var o=e.doc.sel,i=o.ranges.length-1;i>=0;i--){var a=o.ranges[i];if(!(a.head.ch>100||i&&o.ranges[i-1].head.line==a.head.line)){var f=e.getModeAt(a.head),h=!1;if(f.electricChars){for(var g=0;g<f.electricChars.length;g++)if(t.indexOf(f.electricChars.charAt(g))>-1){h=Co(e,a.head.line,"smart");break}}else f.electricInput&&f.electricInput.test(Ne(e.doc,a.head.line).text.slice(0,a.head.ch))&&(h=Co(e,a.head.line,"smart"));h&&kt(e,"electricInput",e,a.head.line)}}}function zc(e){for(var t=[],o=[],i=0;i<e.doc.sel.ranges.length;i++){var a=e.doc.sel.ranges[i].head.line,f={anchor:pe(a,0),head:pe(a+1,0)};o.push(f),t.push(e.getRange(f.anchor,f.head))}return{text:t,ranges:o}}function Hc(e,t,o,i){e.setAttribute("autocorrect",o?"":"off"),e.setAttribute("autocapitalize",i?"":"off"),e.setAttribute("spellcheck",!!t)}function Bc(){var e=E("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=E("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return b?e.style.width="1000px":e.setAttribute("wrap","off"),W&&(e.style.border="1px solid black"),Hc(e),t}function Lg(e){var t=e.optionHandlers,o=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(i,a){var f=this.options,h=f[i];f[i]==a&&i!="mode"||(f[i]=a,t.hasOwnProperty(i)&&Et(this,t[i])(this,a,h),ve(this,"optionChange",this,i))},getOption:function(i){return this.options[i]},getDoc:function(){return this.doc},addKeyMap:function(i,a){this.state.keyMaps[a?"push":"unshift"](Rs(i))},removeKeyMap:function(i){for(var a=this.state.keyMaps,f=0;f<a.length;++f)if(a[f]==i||a[f].name==i)return a.splice(f,1),!0},addOverlay:Wt(function(i,a){var f=i.token?i:e.getMode(this.options,i);if(f.startState)throw new Error("Overlays may not be stateful.");le(this.state.overlays,{mode:f,modeSpec:i,opaque:a&&a.opaque,priority:a&&a.priority||0},function(h){return h.priority}),this.state.modeGen++,Ut(this)}),removeOverlay:Wt(function(i){for(var a=this.state.overlays,f=0;f<a.length;++f){var h=a[f].modeSpec;if(h==i||typeof i=="string"&&h.name==i){a.splice(f,1),this.state.modeGen++,Ut(this);return}}}),indentLine:Wt(function(i,a,f){typeof a!="string"&&typeof a!="number"&&(a==null?a=this.options.smartIndent?"smart":"prev":a=a?"add":"subtract"),En(this.doc,i)&&Co(this,i,a,f)}),indentSelection:Wt(function(i){for(var a=this.doc.sel.ranges,f=-1,h=0;h<a.length;h++){var g=a[h];if(g.empty())g.head.line>f&&(Co(this,g.head.line,i,!0),f=g.head.line,h==this.doc.sel.primIndex&&li(this));else{var y=g.from(),w=g.to(),O=Math.max(f,y.line);f=Math.min(this.lastLine(),w.line-(w.ch?0:1))+1;for(var N=O;N<f;++N)Co(this,N,i);var $=this.doc.sel.ranges;y.ch==0&&a.length==$.length&&$[h].from().ch>0&&cl(this.doc,h,new rt(y,$[h].to()),Ie)}}}),getTokenAt:function(i,a){return Xu(this,i,a)},getLineTokens:function(i,a){return Xu(this,pe(i),a,!0)},getTokenTypeAt:function(i){i=Me(this.doc,i);var a=Gu(this,Ne(this.doc,i.line)),f=0,h=(a.length-1)/2,g=i.ch,y;if(g==0)y=a[2];else for(;;){var w=f+h>>1;if((w?a[w*2-1]:0)>=g)h=w;else if(a[w*2+1]<g)f=w+1;else{y=a[w*2+2];break}}var O=y?y.indexOf("overlay "):-1;return O<0?y:O==0?null:y.slice(0,O-1)},getModeAt:function(i){var a=this.doc.mode;return a.innerMode?e.innerMode(a,this.getTokenAt(i).state).mode:a},getHelper:function(i,a){return this.getHelpers(i,a)[0]},getHelpers:function(i,a){var f=[];if(!o.hasOwnProperty(a))return f;var h=o[a],g=this.getModeAt(i);if(typeof g[a]=="string")h[g[a]]&&f.push(h[g[a]]);else if(g[a])for(var y=0;y<g[a].length;y++){var w=h[g[a][y]];w&&f.push(w)}else g.helperType&&h[g.helperType]?f.push(h[g.helperType]):h[g.name]&&f.push(h[g.name]);for(var O=0;O<h._global.length;O++){var N=h._global[O];N.pred(g,this)&&se(f,N.val)==-1&&f.push(N.val)}return f},getStateAfter:function(i,a){var f=this.doc;return i=Qe(f,i==null?f.first+f.size-1:i),Zi(this,i+1,a).state},cursorCoords:function(i,a){var f,h=this.doc.sel.primary();return i==null?f=h.head:typeof i=="object"?f=Me(this.doc,i):f=i?h.from():h.to(),br(this,f,a||"page")},charCoords:function(i,a){return bs(this,Me(this.doc,i),a||"page")},coordsChar:function(i,a){return i=Cf(this,i,a||"page"),Ga(this,i.left,i.top)},lineAtHeight:function(i,a){return i=Cf(this,{top:i,left:0},a||"page").top,kr(this.doc,i+this.display.viewOffset)},heightAtLine:function(i,a,f){var h=!1,g;if(typeof i=="number"){var y=this.doc.first+this.doc.size-1;i<this.doc.first?i=this.doc.first:i>y&&(i=y,h=!0),g=Ne(this.doc,i)}else g=i;return ys(this,g,{top:0,left:0},a||"page",f||h).top+(h?this.doc.height-jr(g):0)},defaultTextHeight:function(){return oi(this.display)},defaultCharWidth:function(){return si(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(i,a,f,h,g){var y=this.display;i=br(this,Me(this.doc,i));var w=i.bottom,O=i.left;if(a.style.position="absolute",a.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(a),y.sizer.appendChild(a),h=="over")w=i.top;else if(h=="above"||h=="near"){var N=Math.max(y.wrapper.clientHeight,this.doc.height),$=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(h=="above"||i.bottom+a.offsetHeight>N)&&i.top>a.offsetHeight?w=i.top-a.offsetHeight:i.bottom+a.offsetHeight<=N&&(w=i.bottom),O+a.offsetWidth>$&&(O=$-a.offsetWidth)}a.style.top=w+"px",a.style.left=a.style.right="",g=="right"?(O=y.sizer.clientWidth-a.offsetWidth,a.style.right="0px"):(g=="left"?O=0:g=="middle"&&(O=(y.sizer.clientWidth-a.offsetWidth)/2),a.style.left=O+"px"),f&&Ov(this,{left:O,top:w,right:O+a.offsetWidth,bottom:w+a.offsetHeight})},triggerOnKeyDown:Wt(kc),triggerOnKeyPress:Wt(Oc),triggerOnKeyUp:Ec,triggerOnMouseDown:Wt(Mc),execCommand:function(i){if(bo.hasOwnProperty(i))return bo[i].call(null,this)},triggerElectric:Wt(function(i){Dc(this,i)}),findPosH:function(i,a,f,h){var g=1;a<0&&(g=-1,a=-a);for(var y=Me(this.doc,i),w=0;w<a&&(y=xl(this.doc,y,g,f,h),!y.hitSide);++w);return y},moveH:Wt(function(i,a){var f=this;this.extendSelectionsBy(function(h){return f.display.shift||f.doc.extend||h.empty()?xl(f.doc,h.head,i,a,f.options.rtlMoveVisually):i<0?h.from():h.to()},me)}),deleteH:Wt(function(i,a){var f=this.doc.sel,h=this.doc;f.somethingSelected()?h.replaceSelection("",null,"+delete"):gi(this,function(g){var y=xl(h,g.head,i,a,!1);return i<0?{from:y,to:g.head}:{from:g.head,to:y}})}),findPosV:function(i,a,f,h){var g=1,y=h;a<0&&(g=-1,a=-a);for(var w=Me(this.doc,i),O=0;O<a;++O){var N=br(this,w,"div");if(y==null?y=N.left:N.left=y,w=Wc(this,N,g,f),w.hitSide)break}return w},moveV:Wt(function(i,a){var f=this,h=this.doc,g=[],y=!this.display.shift&&!h.extend&&h.sel.somethingSelected();if(h.extendSelectionsBy(function(O){if(y)return i<0?O.from():O.to();var N=br(f,O.head,"div");O.goalColumn!=null&&(N.left=O.goalColumn),g.push(N.left);var $=Wc(f,N,i,a);return a=="page"&&O==h.sel.primary()&&el(f,bs(f,$,"div").top-N.top),$},me),g.length)for(var w=0;w<h.sel.ranges.length;w++)h.sel.ranges[w].goalColumn=g[w]}),findWordAt:function(i){var a=this.doc,f=Ne(a,i.line).text,h=i.ch,g=i.ch;if(f){var y=this.getHelper(i,"wordChars");(i.sticky=="before"||g==f.length)&&h?--h:++g;for(var w=f.charAt(h),O=L(w,y)?function(N){return L(N,y)}:/\s/.test(w)?function(N){return/\s/.test(N)}:function(N){return!/\s/.test(N)&&!L(N)};h>0&&O(f.charAt(h-1));)--h;for(;g<f.length&&O(f.charAt(g));)++g}return new rt(pe(i.line,h),pe(i.line,g))},toggleOverwrite:function(i){i!=null&&i==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ue(this.display.cursorDiv,"CodeMirror-overwrite"):Q(this.display.cursorDiv,"CodeMirror-overwrite"),ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==G()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Wt(function(i,a){no(this,i,a)}),getScrollInfo:function(){var i=this.display.scroller;return{left:i.scrollLeft,top:i.scrollTop,height:i.scrollHeight-Mr(this)-this.display.barHeight,width:i.scrollWidth-Mr(this)-this.display.barWidth,clientHeight:Wa(this),clientWidth:On(this)}},scrollIntoView:Wt(function(i,a){i==null?(i={from:this.doc.sel.primary().head,to:null},a==null&&(a=this.options.cursorScrollMargin)):typeof i=="number"?i={from:pe(i,0),to:null}:i.from==null&&(i={from:i,to:null}),i.to||(i.to=i.from),i.margin=a||0,i.from.line!=null?Mv(this,i):Nf(this,i.from,i.to,i.margin)}),setSize:Wt(function(i,a){var f=this,h=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};i!=null&&(this.display.wrapper.style.width=h(i)),a!=null&&(this.display.wrapper.style.height=h(a)),this.options.lineWrapping&&xf(this);var g=this.display.viewFrom;this.doc.iter(g,this.display.viewTo,function(y){if(y.widgets){for(var w=0;w<y.widgets.length;w++)if(y.widgets[w].noHScroll){tn(f,g,"widget");break}}++g}),this.curOp.forceUpdate=!0,ve(this,"refresh",this)}),operation:function(i){return _t(this,i)},startOperation:function(){return Rn(this)},endOperation:function(){return Fn(this)},refresh:Wt(function(){var i=this.display.cachedTextHeight;Ut(this),this.curOp.forceUpdate=!0,to(this),no(this,this.doc.scrollLeft,this.doc.scrollTop),nl(this.display),(i==null||Math.abs(i-oi(this.display))>.5||this.options.lineWrapping)&&Va(this),ve(this,"refresh",this)}),swapDoc:Wt(function(i){var a=this.doc;return a.cm=null,this.state.selectingText&&this.state.selectingText(),Yf(this,i),to(this),this.display.input.reset(),no(this,i.scrollLeft,i.scrollTop),this.curOp.forceScroll=!0,kt(this,"swapDoc",this,a),a}),phrase:function(i){var a=this.options.phrases;return a&&Object.prototype.hasOwnProperty.call(a,i)?a[i]:i},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}},Qt(e),e.registerHelper=function(i,a,f){o.hasOwnProperty(i)||(o[i]=e[i]={_global:[]}),o[i][a]=f},e.registerGlobalHelper=function(i,a,f,h){e.registerHelper(i,a,h),o[i]._global.push({pred:f,val:h})}}function xl(e,t,o,i,a){var f=t,h=o,g=Ne(e,t.line),y=a&&e.direction=="rtl"?-o:o;function w(){var Oe=t.line+y;return Oe<e.first||Oe>=e.first+e.size?!1:(t=new pe(Oe,t.ch,t.sticky),g=Ne(e,Oe))}function O(Oe){var Pe;if(i=="codepoint"){var Ae=g.text.charCodeAt(t.ch+(o>0?0:-1));if(isNaN(Ae))Pe=null;else{var He=o>0?Ae>=55296&&Ae<56320:Ae>=56320&&Ae<57343;Pe=new pe(t.line,Math.max(0,Math.min(g.text.length,t.ch+o*(He?2:1))),-o)}}else a?Pe=dg(e.cm,g,t,o):Pe=hl(g,t,o);if(Pe==null)if(!Oe&&w())t=pl(a,e.cm,g,t.line,y);else return!1;else t=Pe;return!0}if(i=="char"||i=="codepoint")O();else if(i=="column")O(!0);else if(i=="word"||i=="group")for(var N=null,$=i=="group",K=e.cm&&e.cm.getHelper(t,"wordChars"),re=!0;!(o<0&&!O(!re));re=!1){var ce=g.text.charAt(t.ch)||`
19
+ `,xe=L(ce,K)?"w":$&&ce==`
20
+ `?"n":!$||/\s/.test(ce)?null:"p";if($&&!re&&!xe&&(xe="s"),N&&N!=xe){o<0&&(o=1,O(),t.sticky="after");break}if(xe&&(N=xe),o>0&&!O(!re))break}var Te=Ls(e,t,f,h,!0);return I(f,Te)&&(Te.hitSide=!0),Te}function Wc(e,t,o,i){var a=e.doc,f=t.left,h;if(i=="page"){var g=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(g-.5*oi(e.display),3);h=(o>0?t.bottom:t.top)+o*y}else i=="line"&&(h=o>0?t.bottom+3:t.top-3);for(var w;w=Ga(e,f,h),!!w.outside;){if(o<0?h<=0:h>=a.height){w.hitSide=!0;break}h+=o*5}return w}var ot=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ne,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ot.prototype.init=function(e){var t=this,o=this,i=o.cm,a=o.div=e.lineDiv;a.contentEditable=!0,Hc(a,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize);function f(g){for(var y=g.target;y;y=y.parentNode){if(y==a)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}Fe(a,"paste",function(g){!f(g)||ze(i,g)||Fc(g,i)||m<=11&&setTimeout(Et(i,function(){return t.updateFromDOM()}),20)}),Fe(a,"compositionstart",function(g){t.composing={data:g.data,done:!1}}),Fe(a,"compositionupdate",function(g){t.composing||(t.composing={data:g.data,done:!1})}),Fe(a,"compositionend",function(g){t.composing&&(g.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Fe(a,"touchstart",function(){return o.forceCompositionEnd()}),Fe(a,"input",function(){t.composing||t.readFromDOMSoon()});function h(g){if(!(!f(g)||ze(i,g))){if(i.somethingSelected())zs({lineWise:!1,text:i.getSelections()}),g.type=="cut"&&i.replaceSelection("",null,"cut");else if(i.options.lineWiseCopyCut){var y=zc(i);zs({lineWise:!0,text:y.text}),g.type=="cut"&&i.operation(function(){i.setSelections(y.ranges,0,Ie),i.replaceSelection("",null,"cut")})}else return;if(g.clipboardData){g.clipboardData.clearData();var w=wr.text.join(`
21
+ `);if(g.clipboardData.setData("Text",w),g.clipboardData.getData("Text")==w){g.preventDefault();return}}var O=Bc(),N=O.firstChild;i.display.lineSpace.insertBefore(O,i.display.lineSpace.firstChild),N.value=wr.text.join(`
22
+ `);var $=G();je(N),setTimeout(function(){i.display.lineSpace.removeChild(O),$.focus(),$==a&&o.showPrimarySelection()},50)}}Fe(a,"copy",h),Fe(a,"cut",h)},ot.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ot.prototype.prepareSelection=function(){var e=Mf(this.cm,!1);return e.focus=G()==this.div,e},ot.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ot.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ot.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,o=t.doc.sel.primary(),i=o.from(),a=o.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||a.line<t.display.viewFrom){e.removeAllRanges();return}var f=Hs(t,e.anchorNode,e.anchorOffset),h=Hs(t,e.focusNode,e.focusOffset);if(!(f&&!f.bad&&h&&!h.bad&&C(Ge(f,h),i)==0&&C(ye(f,h),a)==0)){var g=t.display.view,y=i.line>=t.display.viewFrom&&jc(t,i)||{node:g[0].measure.map[2],offset:0},w=a.line<t.display.viewTo&&jc(t,a);if(!w){var O=g[g.length-1].measure,N=O.maps?O.maps[O.maps.length-1]:O.map;w={node:N[N.length-1],offset:N[N.length-2]-N[N.length-3]}}if(!y||!w){e.removeAllRanges();return}var $=e.rangeCount&&e.getRangeAt(0),K;try{K=H(y.node,y.offset,w.offset,w.node)}catch{}K&&(!u&&t.state.focused?(e.collapse(y.node,y.offset),K.collapsed||(e.removeAllRanges(),e.addRange(K))):(e.removeAllRanges(),e.addRange(K)),$&&e.anchorNode==null?e.addRange($):u&&this.startGracePeriod()),this.rememberSelection()}},ot.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},ot.prototype.showMultipleSelections=function(e){k(this.cm.display.cursorDiv,e.cursors),k(this.cm.display.selectionDiv,e.selection)},ot.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ot.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return z(this.div,t)},ot.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||G()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ot.prototype.blur=function(){this.div.blur()},ot.prototype.getField=function(){return this.div},ot.prototype.supportsTouch=function(){return!0},ot.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):_t(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function o(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,o))}this.polling.set(this.cm.options.pollInterval,o)},ot.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},ot.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(M&&T&&this.cm.display.gutterSpecs.length&&Ng(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var o=Hs(t,e.anchorNode,e.anchorOffset),i=Hs(t,e.focusNode,e.focusOffset);o&&i&&_t(t,function(){Dt(t.doc,nn(o,i),Ie),(o.bad||i.bad)&&(t.curOp.selectionChanged=!0)})}}},ot.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,o=e.doc.sel.primary(),i=o.from(),a=o.to();if(i.ch==0&&i.line>e.firstLine()&&(i=pe(i.line-1,Ne(e.doc,i.line-1).length)),a.ch==Ne(e.doc,a.line).text.length&&a.line<e.lastLine()&&(a=pe(a.line+1,0)),i.line<t.viewFrom||a.line>t.viewTo-1)return!1;var f,h,g;i.line==t.viewFrom||(f=Ln(e,i.line))==0?(h=tt(t.view[0].line),g=t.view[0].node):(h=tt(t.view[f].line),g=t.view[f-1].node.nextSibling);var y=Ln(e,a.line),w,O;if(y==t.view.length-1?(w=t.viewTo-1,O=t.lineDiv.lastChild):(w=tt(t.view[y+1].line)-1,O=t.view[y+1].node.previousSibling),!g)return!1;for(var N=e.doc.splitLines(Ig(e,g,O,h,w)),$=Pr(e.doc,pe(h,0),pe(w,Ne(e.doc,w).text.length));N.length>1&&$.length>1;)if(X(N)==X($))N.pop(),$.pop(),w--;else if(N[0]==$[0])N.shift(),$.shift(),h++;else break;for(var K=0,re=0,ce=N[0],xe=$[0],Te=Math.min(ce.length,xe.length);K<Te&&ce.charCodeAt(K)==xe.charCodeAt(K);)++K;for(var Oe=X(N),Pe=X($),Ae=Math.min(Oe.length-(N.length==1?K:0),Pe.length-($.length==1?K:0));re<Ae&&Oe.charCodeAt(Oe.length-re-1)==Pe.charCodeAt(Pe.length-re-1);)++re;if(N.length==1&&$.length==1&&h==i.line)for(;K&&K>i.ch&&Oe.charCodeAt(Oe.length-re-1)==Pe.charCodeAt(Pe.length-re-1);)K--,re++;N[N.length-1]=Oe.slice(0,Oe.length-re).replace(/^\u200b+/,""),N[0]=N[0].slice(K).replace(/\u200b+$/,"");var He=pe(h,K),De=pe(w,$.length?X($).length-re:0);if(N.length>1||N[0]||C(He,De))return hi(e.doc,N,He,De,"+input"),!0},ot.prototype.ensurePolled=function(){this.forceCompositionEnd()},ot.prototype.reset=function(){this.forceCompositionEnd()},ot.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ot.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},ot.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&_t(this.cm,function(){return Ut(e.cm)})},ot.prototype.setUneditable=function(e){e.contentEditable="false"},ot.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Et(this.cm,bl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},ot.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ot.prototype.onContextMenu=function(){},ot.prototype.resetPosition=function(){},ot.prototype.needsContentAttribute=!0;function jc(e,t){var o=ja(e,t.line);if(!o||o.hidden)return null;var i=Ne(e.doc,t.line),a=vf(o,i,t.line),f=ct(i,e.doc.direction),h="left";if(f){var g=Ue(f,t.ch);h=g%2?"right":"left"}var y=yf(a.map,t.ch,h);return y.offset=y.collapse=="right"?y.end:y.start,y}function Ng(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function yi(e,t){return t&&(e.bad=!0),e}function Ig(e,t,o,i,a){var f="",h=!1,g=e.doc.lineSeparator(),y=!1;function w(K){return function(re){return re.id==K}}function O(){h&&(f+=g,y&&(f+=g),h=y=!1)}function N(K){K&&(O(),f+=K)}function $(K){if(K.nodeType==1){var re=K.getAttribute("cm-text");if(re){N(re);return}var ce=K.getAttribute("cm-marker"),xe;if(ce){var Te=e.findMarks(pe(i,0),pe(a+1,0),w(+ce));Te.length&&(xe=Te[0].find(0))&&N(Pr(e.doc,xe.from,xe.to).join(g));return}if(K.getAttribute("contenteditable")=="false")return;var Oe=/^(pre|div|p|li|table|br)$/i.test(K.nodeName);if(!/^br$/i.test(K.nodeName)&&K.textContent.length==0)return;Oe&&O();for(var Pe=0;Pe<K.childNodes.length;Pe++)$(K.childNodes[Pe]);/^(pre|p)$/i.test(K.nodeName)&&(y=!0),Oe&&(h=!0)}else K.nodeType==3&&N(K.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;$(t),t!=o;)t=t.nextSibling,y=!1;return f}function Hs(e,t,o){var i;if(t==e.display.lineDiv){if(i=e.display.lineDiv.childNodes[o],!i)return yi(e.clipPos(pe(e.display.viewTo-1)),!0);t=null,o=0}else for(i=t;;i=i.parentNode){if(!i||i==e.display.lineDiv)return null;if(i.parentNode&&i.parentNode==e.display.lineDiv)break}for(var a=0;a<e.display.view.length;a++){var f=e.display.view[a];if(f.node==i)return Rg(f,t,o)}}function Rg(e,t,o){var i=e.text.firstChild,a=!1;if(!t||!z(i,t))return yi(pe(tt(e.line),0),!0);if(t==i&&(a=!0,t=i.childNodes[o],o=0,!t)){var f=e.rest?X(e.rest):e.line;return yi(pe(tt(f),f.text.length),a)}var h=t.nodeType==3?t:null,g=t;for(!h&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(h=t.firstChild,o&&(o=h.nodeValue.length));g.parentNode!=i;)g=g.parentNode;var y=e.measure,w=y.maps;function O(xe,Te,Oe){for(var Pe=-1;Pe<(w?w.length:0);Pe++)for(var Ae=Pe<0?y.map:w[Pe],He=0;He<Ae.length;He+=3){var De=Ae[He+2];if(De==xe||De==Te){var Ze=tt(Pe<0?e.line:e.rest[Pe]),at=Ae[He]+Oe;return(Oe<0||De!=xe)&&(at=Ae[He+(Oe?1:0)]),pe(Ze,at)}}}var N=O(h,g,o);if(N)return yi(N,a);for(var $=g.nextSibling,K=h?h.nodeValue.length-o:0;$;$=$.nextSibling){if(N=O($,$.firstChild,0),N)return yi(pe(N.line,N.ch-K),a);K+=$.textContent.length}for(var re=g.previousSibling,ce=o;re;re=re.previousSibling){if(N=O(re,re.firstChild,-1),N)return yi(pe(N.line,N.ch+ce),a);ce+=re.textContent.length}}var gt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ne,this.hasSelection=!1,this.composing=null};gt.prototype.init=function(e){var t=this,o=this,i=this.cm;this.createField(e);var a=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),W&&(a.style.width="0px"),Fe(a,"input",function(){p&&m>=9&&t.hasSelection&&(t.hasSelection=null),o.poll()}),Fe(a,"paste",function(h){ze(i,h)||Fc(h,i)||(i.state.pasteIncoming=+new Date,o.fastPoll())});function f(h){if(!ze(i,h)){if(i.somethingSelected())zs({lineWise:!1,text:i.getSelections()});else if(i.options.lineWiseCopyCut){var g=zc(i);zs({lineWise:!0,text:g.text}),h.type=="cut"?i.setSelections(g.ranges,null,Ie):(o.prevInput="",a.value=g.text.join(`
23
+ `),je(a))}else return;h.type=="cut"&&(i.state.cutIncoming=+new Date)}}Fe(a,"cut",f),Fe(a,"copy",f),Fe(e.scroller,"paste",function(h){if(!(Kr(e,h)||ze(i,h))){if(!a.dispatchEvent){i.state.pasteIncoming=+new Date,o.focus();return}var g=new Event("paste");g.clipboardData=h.clipboardData,a.dispatchEvent(g)}}),Fe(e.lineSpace,"selectstart",function(h){Kr(e,h)||Pt(h)}),Fe(a,"compositionstart",function(){var h=i.getCursor("from");o.composing&&o.composing.range.clear(),o.composing={start:h,range:i.markText(h,i.getCursor("to"),{className:"CodeMirror-composing"})}}),Fe(a,"compositionend",function(){o.composing&&(o.poll(),o.composing.range.clear(),o.composing=null)})},gt.prototype.createField=function(e){this.wrapper=Bc(),this.textarea=this.wrapper.firstChild},gt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},gt.prototype.prepareSelection=function(){var e=this.cm,t=e.display,o=e.doc,i=Mf(e);if(e.options.moveInputWithCursor){var a=br(e,o.sel.primary().head,"div"),f=t.wrapper.getBoundingClientRect(),h=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,a.top+h.top-f.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,a.left+h.left-f.left))}return i},gt.prototype.showSelection=function(e){var t=this.cm,o=t.display;k(o.cursorDiv,e.cursors),k(o.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},gt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var o=t.getSelection();this.textarea.value=o,t.state.focused&&je(this.textarea),p&&m>=9&&(this.hasSelection=o)}else e||(this.prevInput=this.textarea.value="",p&&m>=9&&(this.hasSelection=null))}},gt.prototype.getField=function(){return this.textarea},gt.prototype.supportsTouch=function(){return!1},gt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!F||G()!=this.textarea))try{this.textarea.focus()}catch{}},gt.prototype.blur=function(){this.textarea.blur()},gt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},gt.prototype.receivedFocus=function(){this.slowPoll()},gt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},gt.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function o(){var i=t.poll();!i&&!e?(e=!0,t.polling.set(60,o)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,o)},gt.prototype.poll=function(){var e=this,t=this.cm,o=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||ls(o)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var a=o.value;if(a==i&&!t.somethingSelected())return!1;if(p&&m>=9&&this.hasSelection===a||B&&/[\uf700-\uf7ff]/.test(a))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var f=a.charCodeAt(0);if(f==8203&&!i&&(i="\u200B"),f==8666)return this.reset(),this.cm.execCommand("undo")}for(var h=0,g=Math.min(i.length,a.length);h<g&&i.charCodeAt(h)==a.charCodeAt(h);)++h;return _t(t,function(){bl(t,a.slice(h),i.length-h,null,e.composing?"*compose":null),a.length>1e3||a.indexOf(`
24
+ `)>-1?o.value=e.prevInput="":e.prevInput=a,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},gt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},gt.prototype.onKeyPress=function(){p&&m>=9&&(this.hasSelection=null),this.fastPoll()},gt.prototype.onContextMenu=function(e){var t=this,o=t.cm,i=o.display,a=t.textarea;t.contextMenuPending&&t.contextMenuPending();var f=An(o,e),h=i.scroller.scrollTop;if(!f||P)return;var g=o.options.resetSelectionOnContextMenu;g&&o.doc.sel.contains(f)==-1&&Et(o,Dt)(o.doc,nn(f),Ie);var y=a.style.cssText,w=t.wrapper.style.cssText,O=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",a.style.cssText=`position: absolute; width: 30px; height: 30px;
25
+ top: `+(e.clientY-O.top-5)+"px; left: "+(e.clientX-O.left-5)+`px;
26
+ z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`;
27
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var N;b&&(N=window.scrollY),i.input.focus(),b&&window.scrollTo(null,N),i.input.reset(),o.somethingSelected()||(a.value=t.prevInput=" "),t.contextMenuPending=K,i.selForContextMenu=o.doc.sel,clearTimeout(i.detectingSelectAll);function $(){if(a.selectionStart!=null){var ce=o.somethingSelected(),xe="\u200B"+(ce?a.value:"");a.value="\u21DA",a.value=xe,t.prevInput=ce?"":"\u200B",a.selectionStart=1,a.selectionEnd=xe.length,i.selForContextMenu=o.doc.sel}}function K(){if(t.contextMenuPending==K&&(t.contextMenuPending=!1,t.wrapper.style.cssText=w,a.style.cssText=y,p&&m<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=h),a.selectionStart!=null)){(!p||p&&m<9)&&$();var ce=0,xe=function(){i.selForContextMenu==o.doc.sel&&a.selectionStart==0&&a.selectionEnd>0&&t.prevInput=="\u200B"?Et(o,oc)(o):ce++<10?i.detectingSelectAll=setTimeout(xe,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(xe,200)}}if(p&&m>=9&&$(),te){kn(e);var re=function(){ke(window,"mouseup",re),setTimeout(K,20)};Fe(window,"mouseup",re)}else setTimeout(K,50)},gt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},gt.prototype.setUneditable=function(){},gt.prototype.needsContentAttribute=!1;function Fg(e,t){if(t=t?Ke(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var o=G();t.autofocus=o==e||e.getAttribute("autofocus")!=null&&o==document.body}function i(){e.value=g.getValue()}var a;if(e.form&&(Fe(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var f=e.form;a=f.submit;try{var h=f.submit=function(){i(),f.submit=a,f.submit(),f.submit=h}}catch{}}t.finishInit=function(y){y.save=i,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,i(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(ke(e.form,"submit",i),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=a))}},e.style.display="none";var g=ut(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},t);return g}function Dg(e){e.off=ke,e.on=Fe,e.wheelEventPixels=Uv,e.Doc=Gt,e.splitLines=Gi,e.countColumn=Xe,e.findColumn=Le,e.isWordChar=de,e.Pass=be,e.signal=ve,e.Line=ri,e.changeEnd=on,e.scrollbarModel=Ff,e.Pos=pe,e.cmpPos=C,e.modes=pr,e.mimeModes=ir,e.resolveMode=_n,e.getMode=ei,e.modeExtensions=mr,e.extendMode=yr,e.copyState=or,e.startState=Xi,e.innerMode=Yi,e.commands=bo,e.keyMap=Gr,e.keyName=wc,e.isModifierKey=bc,e.lookupKey=vi,e.normalizeKeyMap=cg,e.StringStream=ht,e.SharedTextMarker=go,e.TextMarker=an,e.LineWidget=vo,e.e_preventDefault=Pt,e.e_stopPropagation=gr,e.e_stop=kn,e.addClass=ue,e.contains=z,e.rmClass=Q,e.keyNames=ln}Eg(ut),Lg(ut);var zg="iter insert remove copy getEditor constructor".split(" ");for(var Bs in Gt.prototype)Gt.prototype.hasOwnProperty(Bs)&&se(zg,Bs)<0&&(ut.prototype[Bs]=function(e){return function(){return e.apply(this.doc,arguments)}}(Gt.prototype[Bs]));return Qt(Gt),ut.inputStyles={textarea:gt,contenteditable:ot},ut.defineMode=function(e){!ut.defaults.mode&&e!="null"&&(ut.defaults.mode=e),fs.apply(this,arguments)},ut.defineMIME=Br,ut.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ut.defineMIME("text/plain","null"),ut.defineExtension=function(e,t){ut.prototype[e]=t},ut.defineDocExtension=function(e,t){Gt.prototype[e]=t},ut.fromTextArea=Fg,Dg(ut),ut.version="5.64.0",ut})})(Qn);var Vx=Qn.exports,Rb={exports:{}};(function(r,n){(function(l){l(Qn.exports)})(function(l){l.defineMode("javascript",function(s,u){var c=s.indentUnit,d=u.statementIndent,v=u.jsonld,p=u.json||v,m=u.trackScope!==!1,b=u.typescript,S=u.wordCharacters||/[\w$\xa1-\uffff]/,T=function(){function C(Ft){return{type:Ft,style:"keyword"}}var I=C("keyword a"),fe=C("keyword b"),ye=C("keyword c"),Ge=C("keyword d"),Qe=C("operator"),Me={type:"atom",style:"atom"};return{if:C("if"),while:I,with:I,else:fe,do:fe,try:fe,finally:fe,return:Ge,break:Ge,continue:Ge,new:C("new"),delete:ye,void:ye,throw:ye,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:Qe,typeof:Qe,instanceof:Qe,true:Me,false:Me,null:Me,undefined:Me,NaN:Me,Infinity:Me,this:C("this"),class:C("class"),super:C("atom"),yield:ye,export:C("export"),import:C("import"),extends:ye,await:ye}}(),P=/[+\-*&%=<>!?|~^@]/,A=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Y(C){for(var I=!1,fe,ye=!1;(fe=C.next())!=null;){if(!I){if(fe=="/"&&!ye)return;fe=="["?ye=!0:ye&&fe=="]"&&(ye=!1)}I=!I&&fe=="\\"}}var D,W;function M(C,I,fe){return D=C,W=fe,I}function F(C,I){var fe=C.next();if(fe=='"'||fe=="'")return I.tokenize=B(fe),I.tokenize(C,I);if(fe=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return M("number","number");if(fe=="."&&C.match(".."))return M("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(fe))return M(fe);if(fe=="="&&C.eat(">"))return M("=>","operator");if(fe=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return M("number","number");if(/\d/.test(fe))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),M("number","number");if(fe=="/")return C.eat("*")?(I.tokenize=_,_(C,I)):C.eat("/")?(C.skipToEnd(),M("comment","comment")):pe(C,I,1)?(Y(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),M("regexp","string-2")):(C.eat("="),M("operator","operator",C.current()));if(fe=="`")return I.tokenize=ee,ee(C,I);if(fe=="#"&&C.peek()=="!")return C.skipToEnd(),M("meta","meta");if(fe=="#"&&C.eatWhile(S))return M("variable","property");if(fe=="<"&&C.match("!--")||fe=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),M("comment","comment");if(P.test(fe))return(fe!=">"||!I.lexical||I.lexical.type!=">")&&(C.eat("=")?(fe=="!"||fe=="=")&&C.eat("="):/[<>*+\-|&?]/.test(fe)&&(C.eat(fe),fe==">"&&C.eat(fe))),fe=="?"&&C.eat(".")?M("."):M("operator","operator",C.current());if(S.test(fe)){C.eatWhile(S);var ye=C.current();if(I.lastType!="."){if(T.propertyIsEnumerable(ye)){var Ge=T[ye];return M(Ge.type,Ge.style,ye)}if(ye=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return M("async","keyword",ye)}return M("variable","variable",ye)}}function B(C){return function(I,fe){var ye=!1,Ge;if(v&&I.peek()=="@"&&I.match(A))return fe.tokenize=F,M("jsonld-keyword","meta");for(;(Ge=I.next())!=null&&!(Ge==C&&!ye);)ye=!ye&&Ge=="\\";return ye||(fe.tokenize=F),M("string","string")}}function _(C,I){for(var fe=!1,ye;ye=C.next();){if(ye=="/"&&fe){I.tokenize=F;break}fe=ye=="*"}return M("comment","comment")}function ee(C,I){for(var fe=!1,ye;(ye=C.next())!=null;){if(!fe&&(ye=="`"||ye=="$"&&C.eat("{"))){I.tokenize=F;break}fe=!fe&&ye=="\\"}return M("quasi","string-2",C.current())}var V="([{}])";function J(C,I){I.fatArrowAt&&(I.fatArrowAt=null);var fe=C.string.indexOf("=>",C.start);if(!(fe<0)){if(b){var ye=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,fe));ye&&(fe=ye.index)}for(var Ge=0,Qe=!1,Me=fe-1;Me>=0;--Me){var Ft=C.string.charAt(Me),sr=V.indexOf(Ft);if(sr>=0&&sr<3){if(!Ge){++Me;break}if(--Ge==0){Ft=="("&&(Qe=!0);break}}else if(sr>=3&&sr<6)++Ge;else if(S.test(Ft))Qe=!0;else if(/["'\/`]/.test(Ft))for(;;--Me){if(Me==0)return;var ti=C.string.charAt(Me-1);if(ti==Ft&&C.string.charAt(Me-2)!="\\"){Me--;break}}else if(Qe&&!Ge){++Me;break}}Qe&&!Ge&&(I.fatArrowAt=Me)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(C,I,fe,ye,Ge,Qe){this.indented=C,this.column=I,this.type=fe,this.prev=Ge,this.info=Qe,ye!=null&&(this.align=ye)}function Q(C,I){if(!m)return!1;for(var fe=C.localVars;fe;fe=fe.next)if(fe.name==I)return!0;for(var ye=C.context;ye;ye=ye.prev)for(var fe=ye.vars;fe;fe=fe.next)if(fe.name==I)return!0}function q(C,I,fe,ye,Ge){var Qe=C.cc;for(k.state=C,k.stream=Ge,k.marked=null,k.cc=Qe,k.style=I,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var Me=Qe.length?Qe.pop():p?me:Ie;if(Me(fe,ye)){for(;Qe.length&&Qe[Qe.length-1].lex;)Qe.pop()();return k.marked?k.marked:fe=="variable"&&Q(C,ye)?"variable-2":I}}}var k={state:null,column:null,marked:null,cc:null};function E(){for(var C=arguments.length-1;C>=0;C--)k.cc.push(arguments[C])}function x(){return E.apply(null,arguments),!0}function H(C,I){for(var fe=I;fe;fe=fe.next)if(fe.name==C)return!0;return!1}function z(C){var I=k.state;if(k.marked="def",!!m){if(I.context){if(I.lexical.info=="var"&&I.context&&I.context.block){var fe=G(C,I.context);if(fe!=null){I.context=fe;return}}else if(!H(C,I.localVars)){I.localVars=new je(C,I.localVars);return}}u.globalVars&&!H(C,I.globalVars)&&(I.globalVars=new je(C,I.globalVars))}}function G(C,I){if(I)if(I.block){var fe=G(C,I.prev);return fe?fe==I.prev?I:new he(fe,I.vars,!0):null}else return H(C,I.vars)?I:new he(I.prev,new je(C,I.vars),!1);else return null}function ue(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function he(C,I,fe){this.prev=C,this.vars=I,this.block=fe}function je(C,I){this.name=C,this.next=I}var We=new je("this",new je("arguments",null));function Ke(){k.state.context=new he(k.state.context,k.state.localVars,!1),k.state.localVars=We}function Xe(){k.state.context=new he(k.state.context,k.state.localVars,!0),k.state.localVars=null}function ne(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}ne.lex=!0;function se(C,I){var fe=function(){var ye=k.state,Ge=ye.indented;if(ye.lexical.type=="stat")Ge=ye.lexical.indented;else for(var Qe=ye.lexical;Qe&&Qe.type==")"&&Qe.align;Qe=Qe.prev)Ge=Qe.indented;ye.lexical=new ie(Ge,k.stream.column(),C,null,ye.lexical,I)};return fe.lex=!0,fe}function ae(){var C=k.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}ae.lex=!0;function be(C){function I(fe){return fe==C?x():C==";"||fe=="}"||fe==")"||fe=="]"?E():x(I)}return I}function Ie(C,I){return C=="var"?x(se("vardef",I),Ki,be(";"),ae):C=="keyword a"?x(se("form"),R,Ie,ae):C=="keyword b"?x(se("form"),Ie,ae):C=="keyword d"?k.stream.match(/^\s*$/,!1)?x():x(se("stat"),X,be(";"),ae):C=="debugger"?x(be(";")):C=="{"?x(se("}"),Xe,ct,ae,ne):C==";"?x():C=="if"?(k.state.lexical.info=="else"&&k.state.cc[k.state.cc.length-1]==ae&&k.state.cc.pop()(),x(se("form"),R,Ie,ae,ls)):C=="function"?x(pr):C=="for"?x(se("form"),Xe,us,Ie,ne,ae):C=="class"||b&&I=="interface"?(k.marked="keyword",x(se("form",C=="class"?C:I),ei,ae)):C=="variable"?b&&I=="declare"?(k.marked="keyword",x(Ie)):b&&(I=="module"||I=="enum"||I=="type")&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword",I=="enum"?x(kr):I=="type"?x(fs,be("operator"),ve,be(";")):x(se("form"),Kt,be("{"),se("}"),ct,ae,ae)):b&&I=="namespace"?(k.marked="keyword",x(se("form"),me,Ie,ae)):b&&I=="abstract"?(k.marked="keyword",x(Ie)):x(se("stat"),Se):C=="switch"?x(se("form"),R,be("{"),se("}","switch"),Xe,ct,ae,ae,ne):C=="case"?x(me,be(":")):C=="default"?x(be(":")):C=="catch"?x(se("form"),Ke,Ee,Ie,ae,ne):C=="export"?x(se("stat"),Yi,ae):C=="import"?x(se("stat"),ht,ae):C=="async"?x(Ie):I=="@"?x(me,Ie):E(se("stat"),me,be(";"),ae)}function Ee(C){if(C=="(")return x(Br,be(")"))}function me(C,I){return j(C,I,!1)}function Le(C,I){return j(C,I,!0)}function R(C){return C!="("?E():x(se(")"),X,be(")"),ae)}function j(C,I,fe){if(k.state.fatArrowAt==k.stream.start){var ye=fe?de:we;if(C=="(")return x(Ke,se(")"),Ue(Br,")"),ae,be("=>"),ye,ne);if(C=="variable")return E(Ke,Kt,be("=>"),ye,ne)}var Ge=fe?le:oe;return te.hasOwnProperty(C)?x(Ge):C=="function"?x(pr,Ge):C=="class"||b&&I=="interface"?(k.marked="keyword",x(se("form"),_n,ae)):C=="keyword c"||C=="async"?x(fe?Le:me):C=="("?x(se(")"),X,be(")"),ae,Ge):C=="operator"||C=="spread"?x(fe?Le:me):C=="["?x(se("]"),tt,ae,Ge):C=="{"?vt($e,"}",null,Ge):C=="quasi"?E(ge,Ge):C=="new"?x(L(fe)):x()}function X(C){return C.match(/[;\}\)\],]/)?E():E(me)}function oe(C,I){return C==","?x(X):le(C,I,!1)}function le(C,I,fe){var ye=fe==!1?oe:le,Ge=fe==!1?me:Le;if(C=="=>")return x(Ke,fe?de:we,ne);if(C=="operator")return/\+\+|--/.test(I)||b&&I=="!"?x(ye):b&&I=="<"&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?x(se(">"),Ue(ve,">"),ae,ye):I=="?"?x(me,be(":"),Ge):x(Ge);if(C=="quasi")return E(ge,ye);if(C!=";"){if(C=="(")return vt(Le,")","call",ye);if(C==".")return x(Re,ye);if(C=="[")return x(se("]"),X,be("]"),ae,ye);if(b&&I=="as")return k.marked="keyword",x(ve,ye);if(C=="regexp")return k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),x(Ge)}}function ge(C,I){return C!="quasi"?E():I.slice(I.length-2)!="${"?x(ge):x(X,Ce)}function Ce(C){if(C=="}")return k.marked="string-2",k.state.tokenize=ee,x(ge)}function we(C){return J(k.stream,k.state),E(C=="{"?Ie:me)}function de(C){return J(k.stream,k.state),E(C=="{"?Ie:Le)}function L(C){return function(I){return I=="."?x(C?U:Z):I=="variable"&&b?x(kn,C?le:oe):E(C?Le:me)}}function Z(C,I){if(I=="target")return k.marked="keyword",x(oe)}function U(C,I){if(I=="target")return k.marked="keyword",x(le)}function Se(C){return C==":"?x(ae,Ie):E(oe,be(";"),ae)}function Re(C){if(C=="variable")return k.marked="property",x()}function $e(C,I){if(C=="async")return k.marked="property",x($e);if(C=="variable"||k.style=="keyword"){if(k.marked="property",I=="get"||I=="set")return x(it);var fe;return b&&k.state.fatArrowAt==k.stream.start&&(fe=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+fe[0].length),x(Je)}else{if(C=="number"||C=="string")return k.marked=v?"property":k.style+" property",x(Je);if(C=="jsonld-keyword")return x(Je);if(b&&ue(I))return k.marked="keyword",x($e);if(C=="[")return x(me,Bt,be("]"),Je);if(C=="spread")return x(Le,Je);if(I=="*")return k.marked="keyword",x($e);if(C==":")return E(Je)}}function it(C){return C!="variable"?E(Je):(k.marked="property",x(pr))}function Je(C){if(C==":")return x(Le);if(C=="(")return E(pr)}function Ue(C,I,fe){function ye(Ge,Qe){if(fe?fe.indexOf(Ge)>-1:Ge==","){var Me=k.state.lexical;return Me.info=="call"&&(Me.pos=(Me.pos||0)+1),x(function(Ft,sr){return Ft==I||sr==I?E():E(C)},ye)}return Ge==I||Qe==I?x():fe&&fe.indexOf(";")>-1?E(C):x(be(I))}return function(Ge,Qe){return Ge==I||Qe==I?x():E(C,ye)}}function vt(C,I,fe){for(var ye=3;ye<arguments.length;ye++)k.cc.push(arguments[ye]);return x(se(I,fe),Ue(C,I),ae)}function ct(C){return C=="}"?x():E(Ie,ct)}function Bt(C,I){if(b){if(C==":")return x(ve);if(I=="?")return x(Bt)}}function Fe(C,I){if(b&&(C==":"||I=="in"))return x(ve)}function Ye(C){if(b&&C==":")return k.stream.match(/^\s*\w+\s+is\b/,!1)?x(me,ke,ve):x(ve)}function ke(C,I){if(I=="is")return k.marked="keyword",x()}function ve(C,I){if(I=="keyof"||I=="typeof"||I=="infer"||I=="readonly")return k.marked="keyword",x(I=="typeof"?Le:ve);if(C=="variable"||I=="void")return k.marked="type",x(nr);if(I=="|"||I=="&")return x(ve);if(C=="string"||C=="number"||C=="atom")return x(nr);if(C=="[")return x(se("]"),Ue(ve,"]",","),ae,nr);if(C=="{")return x(se("}"),qe,ae,nr);if(C=="(")return x(Ue(gr,")"),ze,nr);if(C=="<")return x(Ue(ve,">"),ve);if(C=="quasi")return E(Qt,nr)}function ze(C){if(C=="=>")return x(ve)}function qe(C){return C.match(/[\}\)\]]/)?x():C==","||C==";"?x(qe):E(et,qe)}function et(C,I){if(C=="variable"||k.style=="keyword")return k.marked="property",x(et);if(I=="?"||C=="number"||C=="string")return x(et);if(C==":")return x(ve);if(C=="[")return x(be("variable"),Fe,be("]"),et);if(C=="(")return E(ir,et);if(!C.match(/[;\}\)\],]/))return x()}function Qt(C,I){return C!="quasi"?E():I.slice(I.length-2)!="${"?x(Qt):x(ve,Pt)}function Pt(C){if(C=="}")return k.marked="string-2",k.state.tokenize=ee,x(Qt)}function gr(C,I){return C=="variable"&&k.stream.match(/^\s*[?:]/,!1)||I=="?"?x(gr):C==":"?x(ve):C=="spread"?x(gr):E(ve)}function nr(C,I){if(I=="<")return x(se(">"),Ue(ve,">"),ae,nr);if(I=="|"||C=="."||I=="&")return x(ve);if(C=="[")return x(ve,be("]"),nr);if(I=="extends"||I=="implements")return k.marked="keyword",x(ve);if(I=="?")return x(ve,be(":"),ve)}function kn(C,I){if(I=="<")return x(se(">"),Ue(ve,">"),ae,nr)}function qr(){return E(ve,ss)}function ss(C,I){if(I=="=")return x(ve)}function Ki(C,I){return I=="enum"?(k.marked="keyword",x(kr)):E(Kt,Bt,Tr,Gi)}function Kt(C,I){if(b&&ue(I))return k.marked="keyword",x(Kt);if(C=="variable")return z(I),x();if(C=="spread")return x(Kt);if(C=="[")return vt(Ui,"]");if(C=="{")return vt(as,"}")}function as(C,I){return C=="variable"&&!k.stream.match(/^\s*:/,!1)?(z(I),x(Tr)):(C=="variable"&&(k.marked="property"),C=="spread"?x(Kt):C=="}"?E():C=="["?x(me,be("]"),be(":"),as):x(be(":"),Kt,Tr))}function Ui(){return E(Kt,Tr)}function Tr(C,I){if(I=="=")return x(Le)}function Gi(C){if(C==",")return x(Ki)}function ls(C,I){if(C=="keyword b"&&I=="else")return x(se("form","else"),Ie,ae)}function us(C,I){if(I=="await")return x(us);if(C=="(")return x(se(")"),$i,ae)}function $i(C){return C=="var"?x(Ki,_r):C=="variable"?x(_r):E(_r)}function _r(C,I){return C==")"?x():C==";"?x(_r):I=="in"||I=="of"?(k.marked="keyword",x(me,_r)):E(me,_r)}function pr(C,I){if(I=="*")return k.marked="keyword",x(pr);if(C=="variable")return z(I),x(pr);if(C=="(")return x(Ke,se(")"),Ue(Br,")"),ae,Ye,Ie,ne);if(b&&I=="<")return x(se(">"),Ue(qr,">"),ae,pr)}function ir(C,I){if(I=="*")return k.marked="keyword",x(ir);if(C=="variable")return z(I),x(ir);if(C=="(")return x(Ke,se(")"),Ue(Br,")"),ae,Ye,ne);if(b&&I=="<")return x(se(">"),Ue(qr,">"),ae,ir)}function fs(C,I){if(C=="keyword"||C=="variable")return k.marked="type",x(fs);if(I=="<")return x(se(">"),Ue(qr,">"),ae)}function Br(C,I){return I=="@"&&x(me,Br),C=="spread"?x(Br):b&&ue(I)?(k.marked="keyword",x(Br)):b&&C=="this"?x(Bt,Tr):E(Kt,Bt,Tr)}function _n(C,I){return C=="variable"?ei(C,I):mr(C,I)}function ei(C,I){if(C=="variable")return z(I),x(mr)}function mr(C,I){if(I=="<")return x(se(">"),Ue(qr,">"),ae,mr);if(I=="extends"||I=="implements"||b&&C==",")return I=="implements"&&(k.marked="keyword"),x(b?ve:me,mr);if(C=="{")return x(se("}"),yr,ae)}function yr(C,I){if(C=="async"||C=="variable"&&(I=="static"||I=="get"||I=="set"||b&&ue(I))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return k.marked="keyword",x(yr);if(C=="variable"||k.style=="keyword")return k.marked="property",x(or,yr);if(C=="number"||C=="string")return x(or,yr);if(C=="[")return x(me,Bt,be("]"),or,yr);if(I=="*")return k.marked="keyword",x(yr);if(b&&C=="(")return E(ir,yr);if(C==";"||C==",")return x(yr);if(C=="}")return x();if(I=="@")return x(me,yr)}function or(C,I){if(I=="!"||I=="?")return x(or);if(C==":")return x(ve,Tr);if(I=="=")return x(Le);var fe=k.state.lexical.prev,ye=fe&&fe.info=="interface";return E(ye?ir:pr)}function Yi(C,I){return I=="*"?(k.marked="keyword",x(qt,be(";"))):I=="default"?(k.marked="keyword",x(me,be(";"))):C=="{"?x(Ue(Xi,"}"),qt,be(";")):E(Ie)}function Xi(C,I){if(I=="as")return k.marked="keyword",x(be("variable"));if(C=="variable")return E(Le,Xi)}function ht(C){return C=="string"?x():C=="("?E(me):C=="."?E(oe):E(Ne,Pr,qt)}function Ne(C,I){return C=="{"?vt(Ne,"}"):(C=="variable"&&z(I),I=="*"&&(k.marked="keyword"),x(Vi))}function Pr(C){if(C==",")return x(Ne,Pr)}function Vi(C,I){if(I=="as")return k.marked="keyword",x(Ne)}function qt(C,I){if(I=="from")return k.marked="keyword",x(me)}function tt(C){return C=="]"?x():E(Ue(Le,"]"))}function kr(){return E(se("form"),Kt,be("{"),se("}"),Ue(En,"}"),ae,ae)}function En(){return E(Kt,Tr)}function Ji(C,I){return C.lastType=="operator"||C.lastType==","||P.test(I.charAt(0))||/[,.]/.test(I.charAt(0))}function pe(C,I,fe){return I.tokenize==F&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(I.lastType)||I.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(fe||0)))}return{startState:function(C){var I={tokenize:F,lastType:"sof",cc:[],lexical:new ie((C||0)-c,0,"block",!1),localVars:u.localVars,context:u.localVars&&new he(null,null,!1),indented:C||0};return u.globalVars&&typeof u.globalVars=="object"&&(I.globalVars=u.globalVars),I},token:function(C,I){if(C.sol()&&(I.lexical.hasOwnProperty("align")||(I.lexical.align=!1),I.indented=C.indentation(),J(C,I)),I.tokenize!=_&&C.eatSpace())return null;var fe=I.tokenize(C,I);return D=="comment"?fe:(I.lastType=D=="operator"&&(W=="++"||W=="--")?"incdec":D,q(I,fe,D,W,C))},indent:function(C,I){if(C.tokenize==_||C.tokenize==ee)return l.Pass;if(C.tokenize!=F)return 0;var fe=I&&I.charAt(0),ye=C.lexical,Ge;if(!/^\s*else\b/.test(I))for(var Qe=C.cc.length-1;Qe>=0;--Qe){var Me=C.cc[Qe];if(Me==ae)ye=ye.prev;else if(Me!=ls&&Me!=ne)break}for(;(ye.type=="stat"||ye.type=="form")&&(fe=="}"||(Ge=C.cc[C.cc.length-1])&&(Ge==oe||Ge==le)&&!/^[,\.=+\-*:?[\(]/.test(I));)ye=ye.prev;d&&ye.type==")"&&ye.prev.type=="stat"&&(ye=ye.prev);var Ft=ye.type,sr=fe==Ft;return Ft=="vardef"?ye.indented+(C.lastType=="operator"||C.lastType==","?ye.info.length+1:0):Ft=="form"&&fe=="{"?ye.indented:Ft=="form"?ye.indented+c:Ft=="stat"?ye.indented+(Ji(C,I)?d||c:0):ye.info=="switch"&&!sr&&u.doubleIndentSwitch!=!1?ye.indented+(/^(?:case|default)\b/.test(I)?c:2*c):ye.align?ye.column+(sr?0:1):ye.indented+(sr?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:p?null:"/*",blockCommentEnd:p?null:"*/",blockCommentContinue:p?null:" * ",lineComment:p?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:p?"json":"javascript",jsonldMode:v,jsonMode:p,expressionAllowed:pe,skipExpression:function(C){q(C,"atom","atom","true",new l.StringStream("",2,null))}}}),l.registerHelper("wordChars","javascript",/[\w$]/),l.defineMIME("text/javascript","javascript"),l.defineMIME("text/ecmascript","javascript"),l.defineMIME("application/javascript","javascript"),l.defineMIME("application/x-javascript","javascript"),l.defineMIME("application/ecmascript","javascript"),l.defineMIME("application/json",{name:"javascript",json:!0}),l.defineMIME("application/x-json",{name:"javascript",json:!0}),l.defineMIME("application/manifest+json",{name:"javascript",json:!0}),l.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),l.defineMIME("text/typescript",{name:"javascript",typescript:!0}),l.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var Fb={exports:{}};(function(r,n){(function(l){l(Qn.exports)})(function(l){l.defineMode("css",function(ie,Q){var q=Q.inline;Q.propertyKeywords||(Q=l.resolveMode("text/css"));var k=ie.indentUnit,E=Q.tokenHooks,x=Q.documentTypes||{},H=Q.mediaTypes||{},z=Q.mediaFeatures||{},G=Q.mediaValueKeywords||{},ue=Q.propertyKeywords||{},he=Q.nonStandardPropertyKeywords||{},je=Q.fontProperties||{},We=Q.counterDescriptors||{},Ke=Q.colorKeywords||{},Xe=Q.valueKeywords||{},ne=Q.allowNested,se=Q.lineComment,ae=Q.supportsAtComponent===!0,be=ie.highlightNonStandardPropertyKeywords!==!1,Ie,Ee;function me(L,Z){return Ie=Z,L}function Le(L,Z){var U=L.next();if(E[U]){var Se=E[U](L,Z);if(Se!==!1)return Se}if(U=="@")return L.eatWhile(/[\w\\\-]/),me("def",L.current());if(U=="="||(U=="~"||U=="|")&&L.eat("="))return me(null,"compare");if(U=='"'||U=="'")return Z.tokenize=R(U),Z.tokenize(L,Z);if(U=="#")return L.eatWhile(/[\w\\\-]/),me("atom","hash");if(U=="!")return L.match(/^\s*\w*/),me("keyword","important");if(/\d/.test(U)||U=="."&&L.eat(/\d/))return L.eatWhile(/[\w.%]/),me("number","unit");if(U==="-"){if(/[\d.]/.test(L.peek()))return L.eatWhile(/[\w.%]/),me("number","unit");if(L.match(/^-[\w\\\-]*/))return L.eatWhile(/[\w\\\-]/),L.match(/^\s*:/,!1)?me("variable-2","variable-definition"):me("variable-2","variable");if(L.match(/^\w+-/))return me("meta","meta")}else return/[,+>*\/]/.test(U)?me(null,"select-op"):U=="."&&L.match(/^-?[_a-z][_a-z0-9-]*/i)?me("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(U)?me(null,U):L.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(L.current())&&(Z.tokenize=j),me("variable callee","variable")):/[\w\\\-]/.test(U)?(L.eatWhile(/[\w\\\-]/),me("property","word")):me(null,null)}function R(L){return function(Z,U){for(var Se=!1,Re;(Re=Z.next())!=null;){if(Re==L&&!Se){L==")"&&Z.backUp(1);break}Se=!Se&&Re=="\\"}return(Re==L||!Se&&L!=")")&&(U.tokenize=null),me("string","string")}}function j(L,Z){return L.next(),L.match(/^\s*[\"\')]/,!1)?Z.tokenize=null:Z.tokenize=R(")"),me(null,"(")}function X(L,Z,U){this.type=L,this.indent=Z,this.prev=U}function oe(L,Z,U,Se){return L.context=new X(U,Z.indentation()+(Se===!1?0:k),L.context),U}function le(L){return L.context.prev&&(L.context=L.context.prev),L.context.type}function ge(L,Z,U){return de[U.context.type](L,Z,U)}function Ce(L,Z,U,Se){for(var Re=Se||1;Re>0;Re--)U.context=U.context.prev;return ge(L,Z,U)}function we(L){var Z=L.current().toLowerCase();Xe.hasOwnProperty(Z)?Ee="atom":Ke.hasOwnProperty(Z)?Ee="keyword":Ee="variable"}var de={};return de.top=function(L,Z,U){if(L=="{")return oe(U,Z,"block");if(L=="}"&&U.context.prev)return le(U);if(ae&&/@component/i.test(L))return oe(U,Z,"atComponentBlock");if(/^@(-moz-)?document$/i.test(L))return oe(U,Z,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(L))return oe(U,Z,"atBlock");if(/^@(font-face|counter-style)/i.test(L))return U.stateArg=L,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(L))return"keyframes";if(L&&L.charAt(0)=="@")return oe(U,Z,"at");if(L=="hash")Ee="builtin";else if(L=="word")Ee="tag";else{if(L=="variable-definition")return"maybeprop";if(L=="interpolation")return oe(U,Z,"interpolation");if(L==":")return"pseudo";if(ne&&L=="(")return oe(U,Z,"parens")}return U.context.type},de.block=function(L,Z,U){if(L=="word"){var Se=Z.current().toLowerCase();return ue.hasOwnProperty(Se)?(Ee="property","maybeprop"):he.hasOwnProperty(Se)?(Ee=be?"string-2":"property","maybeprop"):ne?(Ee=Z.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ee+=" error","maybeprop")}else return L=="meta"?"block":!ne&&(L=="hash"||L=="qualifier")?(Ee="error","block"):de.top(L,Z,U)},de.maybeprop=function(L,Z,U){return L==":"?oe(U,Z,"prop"):ge(L,Z,U)},de.prop=function(L,Z,U){if(L==";")return le(U);if(L=="{"&&ne)return oe(U,Z,"propBlock");if(L=="}"||L=="{")return Ce(L,Z,U);if(L=="(")return oe(U,Z,"parens");if(L=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(Z.current()))Ee+=" error";else if(L=="word")we(Z);else if(L=="interpolation")return oe(U,Z,"interpolation");return"prop"},de.propBlock=function(L,Z,U){return L=="}"?le(U):L=="word"?(Ee="property","maybeprop"):U.context.type},de.parens=function(L,Z,U){return L=="{"||L=="}"?Ce(L,Z,U):L==")"?le(U):L=="("?oe(U,Z,"parens"):L=="interpolation"?oe(U,Z,"interpolation"):(L=="word"&&we(Z),"parens")},de.pseudo=function(L,Z,U){return L=="meta"?"pseudo":L=="word"?(Ee="variable-3",U.context.type):ge(L,Z,U)},de.documentTypes=function(L,Z,U){return L=="word"&&x.hasOwnProperty(Z.current())?(Ee="tag",U.context.type):de.atBlock(L,Z,U)},de.atBlock=function(L,Z,U){if(L=="(")return oe(U,Z,"atBlock_parens");if(L=="}"||L==";")return Ce(L,Z,U);if(L=="{")return le(U)&&oe(U,Z,ne?"block":"top");if(L=="interpolation")return oe(U,Z,"interpolation");if(L=="word"){var Se=Z.current().toLowerCase();Se=="only"||Se=="not"||Se=="and"||Se=="or"?Ee="keyword":H.hasOwnProperty(Se)?Ee="attribute":z.hasOwnProperty(Se)?Ee="property":G.hasOwnProperty(Se)?Ee="keyword":ue.hasOwnProperty(Se)?Ee="property":he.hasOwnProperty(Se)?Ee=be?"string-2":"property":Xe.hasOwnProperty(Se)?Ee="atom":Ke.hasOwnProperty(Se)?Ee="keyword":Ee="error"}return U.context.type},de.atComponentBlock=function(L,Z,U){return L=="}"?Ce(L,Z,U):L=="{"?le(U)&&oe(U,Z,ne?"block":"top",!1):(L=="word"&&(Ee="error"),U.context.type)},de.atBlock_parens=function(L,Z,U){return L==")"?le(U):L=="{"||L=="}"?Ce(L,Z,U,2):de.atBlock(L,Z,U)},de.restricted_atBlock_before=function(L,Z,U){return L=="{"?oe(U,Z,"restricted_atBlock"):L=="word"&&U.stateArg=="@counter-style"?(Ee="variable","restricted_atBlock_before"):ge(L,Z,U)},de.restricted_atBlock=function(L,Z,U){return L=="}"?(U.stateArg=null,le(U)):L=="word"?(U.stateArg=="@font-face"&&!je.hasOwnProperty(Z.current().toLowerCase())||U.stateArg=="@counter-style"&&!We.hasOwnProperty(Z.current().toLowerCase())?Ee="error":Ee="property","maybeprop"):"restricted_atBlock"},de.keyframes=function(L,Z,U){return L=="word"?(Ee="variable","keyframes"):L=="{"?oe(U,Z,"top"):ge(L,Z,U)},de.at=function(L,Z,U){return L==";"?le(U):L=="{"||L=="}"?Ce(L,Z,U):(L=="word"?Ee="tag":L=="hash"&&(Ee="builtin"),"at")},de.interpolation=function(L,Z,U){return L=="}"?le(U):L=="{"||L==";"?Ce(L,Z,U):(L=="word"?Ee="variable":L!="variable"&&L!="("&&L!=")"&&(Ee="error"),"interpolation")},{startState:function(L){return{tokenize:null,state:q?"block":"top",stateArg:null,context:new X(q?"block":"top",L||0,null)}},token:function(L,Z){if(!Z.tokenize&&L.eatSpace())return null;var U=(Z.tokenize||Le)(L,Z);return U&&typeof U=="object"&&(Ie=U[1],U=U[0]),Ee=U,Ie!="comment"&&(Z.state=de[Z.state](Ie,L,Z)),Ee},indent:function(L,Z){var U=L.context,Se=Z&&Z.charAt(0),Re=U.indent;return U.type=="prop"&&(Se=="}"||Se==")")&&(U=U.prev),U.prev&&(Se=="}"&&(U.type=="block"||U.type=="top"||U.type=="interpolation"||U.type=="restricted_atBlock")?(U=U.prev,Re=U.indent):(Se==")"&&(U.type=="parens"||U.type=="atBlock_parens")||Se=="{"&&(U.type=="at"||U.type=="atBlock"))&&(Re=Math.max(0,U.indent-k))),Re},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:se,fold:"brace"}});function s(ie){for(var Q={},q=0;q<ie.length;++q)Q[ie[q].toLowerCase()]=!0;return Q}var u=["domain","regexp","url","url-prefix"],c=s(u),d=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=s(d),p=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],m=s(p),b=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],S=s(b),T=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],P=s(T),A=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],Y=s(A),D=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],W=s(D),M=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],F=s(M),B=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],_=s(B),ee=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],V=s(ee),J=u.concat(d).concat(p).concat(b).concat(T).concat(A).concat(B).concat(ee);l.registerHelper("hintWords","css",J);function te(ie,Q){for(var q=!1,k;(k=ie.next())!=null;){if(q&&k=="/"){Q.tokenize=null;break}q=k=="*"}return["comment","comment"]}l.defineMIME("text/css",{documentTypes:c,mediaTypes:v,mediaFeatures:m,mediaValueKeywords:S,propertyKeywords:P,nonStandardPropertyKeywords:Y,fontProperties:W,counterDescriptors:F,colorKeywords:_,valueKeywords:V,tokenHooks:{"/":function(ie,Q){return ie.eat("*")?(Q.tokenize=te,te(ie,Q)):!1}},name:"css"}),l.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:m,mediaValueKeywords:S,propertyKeywords:P,nonStandardPropertyKeywords:Y,colorKeywords:_,valueKeywords:V,fontProperties:W,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ie,Q){return ie.eat("/")?(ie.skipToEnd(),["comment","comment"]):ie.eat("*")?(Q.tokenize=te,te(ie,Q)):["operator","operator"]},":":function(ie){return ie.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ie){return ie.match(/^[\w-]+/),ie.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ie){return ie.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),l.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:m,mediaValueKeywords:S,propertyKeywords:P,nonStandardPropertyKeywords:Y,colorKeywords:_,valueKeywords:V,fontProperties:W,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ie,Q){return ie.eat("/")?(ie.skipToEnd(),["comment","comment"]):ie.eat("*")?(Q.tokenize=te,te(ie,Q)):["operator","operator"]},"@":function(ie){return ie.eat("{")?[null,"interpolation"]:ie.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ie.eatWhile(/[\w\\\-]/),ie.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),l.defineMIME("text/x-gss",{documentTypes:c,mediaTypes:v,mediaFeatures:m,propertyKeywords:P,nonStandardPropertyKeywords:Y,fontProperties:W,counterDescriptors:F,colorKeywords:_,valueKeywords:V,supportsAtComponent:!0,tokenHooks:{"/":function(ie,Q){return ie.eat("*")?(Q.tokenize=te,te(ie,Q)):!1}},name:"css",helperType:"gss"})})})();var Db={exports:{}};(function(r,n){(function(l){l(Qn.exports)})(function(l){var s={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},u={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};l.defineMode("xml",function(c,d){var v=c.indentUnit,p={},m=d.htmlMode?s:u;for(var b in m)p[b]=m[b];for(var b in d)p[b]=d[b];var S,T;function P(x,H){function z(he){return H.tokenize=he,he(x,H)}var G=x.next();if(G=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?z(D("atom","]]>")):null:x.match("--")?z(D("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),z(W(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),H.tokenize=D("meta","?>"),"meta"):(S=x.eat("/")?"closeTag":"openTag",H.tokenize=A,"tag bracket");if(G=="&"){var ue;return x.eat("#")?x.eat("x")?ue=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):ue=x.eatWhile(/[\d]/)&&x.eat(";"):ue=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),ue?"atom":"error"}else return x.eatWhile(/[^&<]/),null}P.isInText=!0;function A(x,H){var z=x.next();if(z==">"||z=="/"&&x.eat(">"))return H.tokenize=P,S=z==">"?"endTag":"selfcloseTag","tag bracket";if(z=="=")return S="equals",null;if(z=="<"){H.tokenize=P,H.state=ee,H.tagName=H.tagStart=null;var G=H.tokenize(x,H);return G?G+" tag error":"tag error"}else return/[\'\"]/.test(z)?(H.tokenize=Y(z),H.stringStartCol=x.column(),H.tokenize(x,H)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Y(x){var H=function(z,G){for(;!z.eol();)if(z.next()==x){G.tokenize=A;break}return"string"};return H.isInAttribute=!0,H}function D(x,H){return function(z,G){for(;!z.eol();){if(z.match(H)){G.tokenize=P;break}z.next()}return x}}function W(x){return function(H,z){for(var G;(G=H.next())!=null;){if(G=="<")return z.tokenize=W(x+1),z.tokenize(H,z);if(G==">")if(x==1){z.tokenize=P;break}else return z.tokenize=W(x-1),z.tokenize(H,z)}return"meta"}}function M(x){return x&&x.toLowerCase()}function F(x,H,z){this.prev=x.context,this.tagName=H||"",this.indent=x.indented,this.startOfLine=z,(p.doNotIndent.hasOwnProperty(H)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function B(x){x.context&&(x.context=x.context.prev)}function _(x,H){for(var z;;){if(!x.context||(z=x.context.tagName,!p.contextGrabbers.hasOwnProperty(M(z))||!p.contextGrabbers[M(z)].hasOwnProperty(M(H))))return;B(x)}}function ee(x,H,z){return x=="openTag"?(z.tagStart=H.column(),V):x=="closeTag"?J:ee}function V(x,H,z){return x=="word"?(z.tagName=H.current(),T="tag",Q):p.allowMissingTagName&&x=="endTag"?(T="tag bracket",Q(x,H,z)):(T="error",V)}function J(x,H,z){if(x=="word"){var G=H.current();return z.context&&z.context.tagName!=G&&p.implicitlyClosed.hasOwnProperty(M(z.context.tagName))&&B(z),z.context&&z.context.tagName==G||p.matchClosing===!1?(T="tag",te):(T="tag error",ie)}else return p.allowMissingTagName&&x=="endTag"?(T="tag bracket",te(x,H,z)):(T="error",ie)}function te(x,H,z){return x!="endTag"?(T="error",te):(B(z),ee)}function ie(x,H,z){return T="error",te(x,H,z)}function Q(x,H,z){if(x=="word")return T="attribute",q;if(x=="endTag"||x=="selfcloseTag"){var G=z.tagName,ue=z.tagStart;return z.tagName=z.tagStart=null,x=="selfcloseTag"||p.autoSelfClosers.hasOwnProperty(M(G))?_(z,G):(_(z,G),z.context=new F(z,G,ue==z.indented)),ee}return T="error",Q}function q(x,H,z){return x=="equals"?k:(p.allowMissing||(T="error"),Q(x,H,z))}function k(x,H,z){return x=="string"?E:x=="word"&&p.allowUnquoted?(T="string",Q):(T="error",Q(x,H,z))}function E(x,H,z){return x=="string"?E:Q(x,H,z)}return{startState:function(x){var H={tokenize:P,state:ee,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(H.baseIndent=x),H},token:function(x,H){if(!H.tagName&&x.sol()&&(H.indented=x.indentation()),x.eatSpace())return null;S=null;var z=H.tokenize(x,H);return(z||S)&&z!="comment"&&(T=null,H.state=H.state(S||z,x,H),T&&(z=T=="error"?z+" error":T)),z},indent:function(x,H,z){var G=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+v;if(G&&G.noIndent)return l.Pass;if(x.tokenize!=A&&x.tokenize!=P)return z?z.match(/^(\s*)/)[0].length:0;if(x.tagName)return p.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+v*(p.multilineTagIndentFactor||1);if(p.alignCDATA&&/<!\[CDATA\[/.test(H))return 0;var ue=H&&/^<(\/)?([\w_:\.-]*)/.exec(H);if(ue&&ue[1])for(;G;)if(G.tagName==ue[2]){G=G.prev;break}else if(p.implicitlyClosed.hasOwnProperty(M(G.tagName)))G=G.prev;else break;else if(ue)for(;G;){var he=p.contextGrabbers[M(G.tagName)];if(he&&he.hasOwnProperty(M(ue[2])))G=G.prev;else break}for(;G&&G.prev&&!G.startOfLine;)G=G.prev;return G?G.indent+v:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:p.htmlMode?"html":"xml",helperType:p.htmlMode?"html":"xml",skipAttribute:function(x){x.state==k&&(x.state=Q)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var H=[],z=x.context;z;z=z.prev)H.push(z.tagName);return H.reverse()}}}),l.defineMIME("text/xml","xml"),l.defineMIME("application/xml","xml"),l.mimeModes.hasOwnProperty("text/html")||l.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(r,n){(function(l){l(Qn.exports,Db.exports,Rb.exports,Fb.exports)})(function(l){var s={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function u(S,T,P){var A=S.current(),Y=A.search(T);return Y>-1?S.backUp(A.length-Y):A.match(/<\/?$/)&&(S.backUp(A.length),S.match(T,!1)||S.match(A)),P}var c={};function d(S){var T=c[S];return T||(c[S]=new RegExp("\\s+"+S+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function v(S,T){var P=S.match(d(T));return P?/^\s*(.*?)\s*$/.exec(P[2])[1]:""}function p(S,T){return new RegExp((T?"^":"")+"</s*"+S+"s*>","i")}function m(S,T){for(var P in S)for(var A=T[P]||(T[P]=[]),Y=S[P],D=Y.length-1;D>=0;D--)A.unshift(Y[D])}function b(S,T){for(var P=0;P<S.length;P++){var A=S[P];if(!A[0]||A[1].test(v(T,A[0])))return A[2]}}l.defineMode("htmlmixed",function(S,T){var P=l.getMode(S,{name:"xml",htmlMode:!0,multilineTagIndentFactor:T.multilineTagIndentFactor,multilineTagIndentPastTag:T.multilineTagIndentPastTag,allowMissingTagName:T.allowMissingTagName}),A={},Y=T&&T.tags,D=T&&T.scriptTypes;if(m(s,A),Y&&m(Y,A),D)for(var W=D.length-1;W>=0;W--)A.script.unshift(["type",D[W].matches,D[W].mode]);function M(F,B){var _=P.token(F,B.htmlState),ee=/\btag\b/.test(_),V;if(ee&&!/[<>\s\/]/.test(F.current())&&(V=B.htmlState.tagName&&B.htmlState.tagName.toLowerCase())&&A.hasOwnProperty(V))B.inTag=V+" ";else if(B.inTag&&ee&&/>$/.test(F.current())){var J=/^([\S]+) (.*)/.exec(B.inTag);B.inTag=null;var te=F.current()==">"&&b(A[J[1]],J[2]),ie=l.getMode(S,te),Q=p(J[1],!0),q=p(J[1],!1);B.token=function(k,E){return k.match(Q,!1)?(E.token=M,E.localState=E.localMode=null,null):u(k,q,E.localMode.token(k,E.localState))},B.localMode=ie,B.localState=l.startState(ie,P.indent(B.htmlState,"",""))}else B.inTag&&(B.inTag+=F.current(),F.eol()&&(B.inTag+=" "));return _}return{startState:function(){var F=l.startState(P);return{token:M,inTag:null,localMode:null,localState:null,htmlState:F}},copyState:function(F){var B;return F.localState&&(B=l.copyState(F.localMode,F.localState)),{token:F.token,inTag:F.inTag,localMode:F.localMode,localState:B,htmlState:l.copyState(P,F.htmlState)}},token:function(F,B){return B.token(F,B)},indent:function(F,B,_){return!F.localMode||/^\s*<\//.test(B)?P.indent(F.htmlState,B,_):F.localMode.indent?F.localMode.indent(F.localState,B,_):l.Pass},innerMode:function(F){return{state:F.localState||F.htmlState,mode:F.localMode||P}}}},"xml","javascript","css"),l.defineMIME("text/html","htmlmixed")})})();(function(r,n){(function(l){l(Qn.exports)})(function(l){l.defineOption("placeholder","",function(m,b,S){var T=S&&S!=l.Init;if(b&&!T)m.on("blur",d),m.on("change",v),m.on("swapDoc",v),l.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){c(m)}),v(m);else if(!b&&T){m.off("blur",d),m.off("change",v),m.off("swapDoc",v),l.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),s(m);var P=m.getWrapperElement();P.className=P.className.replace(" CodeMirror-empty","")}b&&!m.hasFocus()&&d(m)});function s(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function u(m){s(m);var b=m.state.placeholder=document.createElement("pre");b.style.cssText="height: 0; overflow: visible",b.style.direction=m.getOption("direction"),b.className="CodeMirror-placeholder CodeMirror-line-like";var S=m.getOption("placeholder");typeof S=="string"&&(S=document.createTextNode(S)),b.appendChild(S),m.display.lineSpace.insertBefore(b,m.display.lineSpace.firstChild)}function c(m){setTimeout(function(){var b=!1;if(m.lineCount()==1){var S=m.getInputField();b=S.nodeName=="TEXTAREA"?!m.getLine(0).length:!/[^\u200b]/.test(S.querySelector(".CodeMirror-line").textContent)}b?u(m):s(m)},20)}function d(m){p(m)&&u(m)}function v(m){var b=m.getWrapperElement(),S=p(m);b.className=b.className.replace(" CodeMirror-empty","")+(S?" CodeMirror-empty":""),S?u(m):s(m)}function p(m){return m.lineCount()===1&&m.getLine(0)===""}})})();/*!
28
+ * vue-router v4.0.12
29
+ * (c) 2021 Eduardo San Martin Morote
30
+ * @license MIT
31
+ */const gp=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",zi=r=>gp?Symbol(r):"_vr_"+r,zb=zi("rvlm"),mp=zi("rvd"),Ru=zi("r"),Fu=zi("rl"),Du=zi("rvl"),Hi=typeof window!="undefined";function Hb(r){return r.__esModule||gp&&r[Symbol.toStringTag]==="Module"}const lt=Object.assign;function zu(r,n){const l={};for(const s in n){const u=n[s];l[s]=Array.isArray(u)?u.map(r):r(u)}return l}const rs=()=>{},Bb=/\/$/,Wb=r=>r.replace(Bb,"");function Hu(r,n,l="/"){let s,u={},c="",d="";const v=n.indexOf("?"),p=n.indexOf("#",v>-1?v:0);return v>-1&&(s=n.slice(0,v),c=n.slice(v+1,p>-1?p:n.length),u=r(c)),p>-1&&(s=s||n.slice(0,p),d=n.slice(p,n.length)),s=Gb(s!=null?s:n,l),{fullPath:s+(c&&"?")+c+d,path:s,query:u,hash:d}}function jb(r,n){const l=n.query?r(n.query):"";return n.path+(l&&"?")+l+(n.hash||"")}function yp(r,n){return!n||!r.toLowerCase().startsWith(n.toLowerCase())?r:r.slice(n.length)||"/"}function Kb(r,n,l){const s=n.matched.length-1,u=l.matched.length-1;return s>-1&&s===u&&Bi(n.matched[s],l.matched[u])&&bp(n.params,l.params)&&r(n.query)===r(l.query)&&n.hash===l.hash}function Bi(r,n){return(r.aliasOf||r)===(n.aliasOf||n)}function bp(r,n){if(Object.keys(r).length!==Object.keys(n).length)return!1;for(const l in r)if(!Ub(r[l],n[l]))return!1;return!0}function Ub(r,n){return Array.isArray(r)?xp(r,n):Array.isArray(n)?xp(n,r):r===n}function xp(r,n){return Array.isArray(n)?r.length===n.length&&r.every((l,s)=>l===n[s]):r.length===1&&r[0]===n}function Gb(r,n){if(r.startsWith("/"))return r;if(!r)return n;const l=n.split("/"),s=r.split("/");let u=l.length-1,c,d;for(c=0;c<s.length;c++)if(d=s[c],!(u===1||d==="."))if(d==="..")u--;else break;return l.slice(0,u).join("/")+"/"+s.slice(c-(c===s.length?1:0)).join("/")}var ns;(function(r){r.pop="pop",r.push="push"})(ns||(ns={}));var is;(function(r){r.back="back",r.forward="forward",r.unknown=""})(is||(is={}));function $b(r){if(!r)if(Hi){const n=document.querySelector("base");r=n&&n.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),Wb(r)}const Yb=/^[^#]+#/;function Xb(r,n){return r.replace(Yb,"#")+n}function Vb(r,n){const l=document.documentElement.getBoundingClientRect(),s=r.getBoundingClientRect();return{behavior:n.behavior,left:s.left-l.left-(n.left||0),top:s.top-l.top-(n.top||0)}}const Ma=()=>({left:window.pageXOffset,top:window.pageYOffset});function Jb(r){let n;if("el"in r){const l=r.el,s=typeof l=="string"&&l.startsWith("#"),u=typeof l=="string"?s?document.getElementById(l.slice(1)):document.querySelector(l):l;if(!u)return;n=Vb(u,r)}else n=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(n.left!=null?n.left:window.pageXOffset,n.top!=null?n.top:window.pageYOffset)}function wp(r,n){return(history.state?history.state.position-n:-1)+r}const Bu=new Map;function Zb(r,n){Bu.set(r,n)}function Qb(r){const n=Bu.get(r);return Bu.delete(r),n}let qb=()=>location.protocol+"//"+location.host;function Sp(r,n){const{pathname:l,search:s,hash:u}=n,c=r.indexOf("#");if(c>-1){let v=u.includes(r.slice(c))?r.slice(c).length:1,p=u.slice(v);return p[0]!=="/"&&(p="/"+p),yp(p,"")}return yp(l,r)+s+u}function _b(r,n,l,s){let u=[],c=[],d=null;const v=({state:T})=>{const P=Sp(r,location),A=l.value,Y=n.value;let D=0;if(T){if(l.value=P,n.value=T,d&&d===A){d=null;return}D=Y?T.position-Y.position:0}else s(P);u.forEach(W=>{W(l.value,A,{delta:D,type:ns.pop,direction:D?D>0?is.forward:is.back:is.unknown})})};function p(){d=l.value}function m(T){u.push(T);const P=()=>{const A=u.indexOf(T);A>-1&&u.splice(A,1)};return c.push(P),P}function b(){const{history:T}=window;!T.state||T.replaceState(lt({},T.state,{scroll:Ma()}),"")}function S(){for(const T of c)T();c=[],window.removeEventListener("popstate",v),window.removeEventListener("beforeunload",b)}return window.addEventListener("popstate",v),window.addEventListener("beforeunload",b),{pauseListeners:p,listen:m,destroy:S}}function Cp(r,n,l,s=!1,u=!1){return{back:r,current:n,forward:l,replaced:s,position:window.history.length,scroll:u?Ma():null}}function ex(r){const{history:n,location:l}=window,s={value:Sp(r,l)},u={value:n.state};u.value||c(s.value,{back:null,current:s.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function c(p,m,b){const S=r.indexOf("#"),T=S>-1?(l.host&&document.querySelector("base")?r:r.slice(S))+p:qb()+r+p;try{n[b?"replaceState":"pushState"](m,"",T),u.value=m}catch(P){console.error(P),l[b?"replace":"assign"](T)}}function d(p,m){const b=lt({},n.state,Cp(u.value.back,p,u.value.forward,!0),m,{position:u.value.position});c(p,b,!0),s.value=p}function v(p,m){const b=lt({},u.value,n.state,{forward:p,scroll:Ma()});c(b.current,b,!0);const S=lt({},Cp(s.value,p,null),{position:b.position+1},m);c(p,S,!1),s.value=p}return{location:s,state:u,push:v,replace:d}}function tx(r){r=$b(r);const n=ex(r),l=_b(r,n.state,n.location,n.replace);function s(c,d=!0){d||l.pauseListeners(),history.go(c)}const u=lt({location:"",base:r,go:s,createHref:Xb.bind(null,r)},n,l);return Object.defineProperty(u,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(u,"state",{enumerable:!0,get:()=>n.state.value}),u}function Jx(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),tx(r)}function rx(r){return typeof r=="string"||r&&typeof r=="object"}function Tp(r){return typeof r=="string"||typeof r=="symbol"}const Tn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Pp=zi("nf");var kp;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(kp||(kp={}));function Wi(r,n){return lt(new Error,{type:r,[Pp]:!0},n)}function qn(r,n){return r instanceof Error&&Pp in r&&(n==null||!!(r.type&n))}const Ep="[^/]+?",nx={sensitive:!1,strict:!1,start:!0,end:!0},ix=/[.+*?^${}()[\]/\\]/g;function ox(r,n){const l=lt({},nx,n),s=[];let u=l.start?"^":"";const c=[];for(const m of r){const b=m.length?[]:[90];l.strict&&!m.length&&(u+="/");for(let S=0;S<m.length;S++){const T=m[S];let P=40+(l.sensitive?.25:0);if(T.type===0)S||(u+="/"),u+=T.value.replace(ix,"\\$&"),P+=40;else if(T.type===1){const{value:A,repeatable:Y,optional:D,regexp:W}=T;c.push({name:A,repeatable:Y,optional:D});const M=W||Ep;if(M!==Ep){P+=10;try{new RegExp(`(${M})`)}catch(B){throw new Error(`Invalid custom RegExp for param "${A}" (${M}): `+B.message)}}let F=Y?`((?:${M})(?:/(?:${M}))*)`:`(${M})`;S||(F=D&&m.length<2?`(?:/${F})`:"/"+F),D&&(F+="?"),u+=F,P+=20,D&&(P+=-8),Y&&(P+=-20),M===".*"&&(P+=-50)}b.push(P)}s.push(b)}if(l.strict&&l.end){const m=s.length-1;s[m][s[m].length-1]+=.7000000000000001}l.strict||(u+="/?"),l.end?u+="$":l.strict&&(u+="(?:/|$)");const d=new RegExp(u,l.sensitive?"":"i");function v(m){const b=m.match(d),S={};if(!b)return null;for(let T=1;T<b.length;T++){const P=b[T]||"",A=c[T-1];S[A.name]=P&&A.repeatable?P.split("/"):P}return S}function p(m){let b="",S=!1;for(const T of r){(!S||!b.endsWith("/"))&&(b+="/"),S=!1;for(const P of T)if(P.type===0)b+=P.value;else if(P.type===1){const{value:A,repeatable:Y,optional:D}=P,W=A in m?m[A]:"";if(Array.isArray(W)&&!Y)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const M=Array.isArray(W)?W.join("/"):W;if(!M)if(D)T.length<2&&(b.endsWith("/")?b=b.slice(0,-1):S=!0);else throw new Error(`Missing required param "${A}"`);b+=M}}return b}return{re:d,score:s,keys:c,parse:v,stringify:p}}function sx(r,n){let l=0;for(;l<r.length&&l<n.length;){const s=n[l]-r[l];if(s)return s;l++}return r.length<n.length?r.length===1&&r[0]===40+40?-1:1:r.length>n.length?n.length===1&&n[0]===40+40?1:-1:0}function ax(r,n){let l=0;const s=r.score,u=n.score;for(;l<s.length&&l<u.length;){const c=sx(s[l],u[l]);if(c)return c;l++}return u.length-s.length}const lx={type:0,value:""},ux=/[a-zA-Z0-9_]/;function fx(r){if(!r)return[[]];if(r==="/")return[[lx]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function n(P){throw new Error(`ERR (${l})/"${m}": ${P}`)}let l=0,s=l;const u=[];let c;function d(){c&&u.push(c),c=[]}let v=0,p,m="",b="";function S(){!m||(l===0?c.push({type:0,value:m}):l===1||l===2||l===3?(c.length>1&&(p==="*"||p==="+")&&n(`A repeatable param (${m}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:m,regexp:b,repeatable:p==="*"||p==="+",optional:p==="*"||p==="?"})):n("Invalid state to consume buffer"),m="")}function T(){m+=p}for(;v<r.length;){if(p=r[v++],p==="\\"&&l!==2){s=l,l=4;continue}switch(l){case 0:p==="/"?(m&&S(),d()):p===":"?(S(),l=1):T();break;case 4:T(),l=s;break;case 1:p==="("?l=2:ux.test(p)?T():(S(),l=0,p!=="*"&&p!=="?"&&p!=="+"&&v--);break;case 2:p===")"?b[b.length-1]=="\\"?b=b.slice(0,-1)+p:l=3:b+=p;break;case 3:S(),l=0,p!=="*"&&p!=="?"&&p!=="+"&&v--,b="";break;default:n("Unknown state");break}}return l===2&&n(`Unfinished custom RegExp for param "${m}"`),S(),d(),u}function cx(r,n,l){const s=ox(fx(r.path),l),u=lt(s,{record:r,parent:n,children:[],alias:[]});return n&&!u.record.aliasOf==!n.record.aliasOf&&n.children.push(u),u}function dx(r,n){const l=[],s=new Map;n=Mp({strict:!1,end:!0,sensitive:!1},n);function u(b){return s.get(b)}function c(b,S,T){const P=!T,A=px(b);A.aliasOf=T&&T.record;const Y=Mp(n,b),D=[A];if("alias"in b){const F=typeof b.alias=="string"?[b.alias]:b.alias;for(const B of F)D.push(lt({},A,{components:T?T.record.components:A.components,path:B,aliasOf:T?T.record:A}))}let W,M;for(const F of D){const{path:B}=F;if(S&&B[0]!=="/"){const _=S.record.path,ee=_[_.length-1]==="/"?"":"/";F.path=S.record.path+(B&&ee+B)}if(W=cx(F,S,Y),T?T.alias.push(W):(M=M||W,M!==W&&M.alias.push(W),P&&b.name&&!Op(W)&&d(b.name)),"children"in A){const _=A.children;for(let ee=0;ee<_.length;ee++)c(_[ee],W,T&&T.children[ee])}T=T||W,p(W)}return M?()=>{d(M)}:rs}function d(b){if(Tp(b)){const S=s.get(b);S&&(s.delete(b),l.splice(l.indexOf(S),1),S.children.forEach(d),S.alias.forEach(d))}else{const S=l.indexOf(b);S>-1&&(l.splice(S,1),b.record.name&&s.delete(b.record.name),b.children.forEach(d),b.alias.forEach(d))}}function v(){return l}function p(b){let S=0;for(;S<l.length&&ax(b,l[S])>=0;)S++;l.splice(S,0,b),b.record.name&&!Op(b)&&s.set(b.record.name,b)}function m(b,S){let T,P={},A,Y;if("name"in b&&b.name){if(T=s.get(b.name),!T)throw Wi(1,{location:b});Y=T.record.name,P=lt(hx(S.params,T.keys.filter(M=>!M.optional).map(M=>M.name)),b.params),A=T.stringify(P)}else if("path"in b)A=b.path,T=l.find(M=>M.re.test(A)),T&&(P=T.parse(A),Y=T.record.name);else{if(T=S.name?s.get(S.name):l.find(M=>M.re.test(S.path)),!T)throw Wi(1,{location:b,currentLocation:S});Y=T.record.name,P=lt({},S.params,b.params),A=T.stringify(P)}const D=[];let W=T;for(;W;)D.unshift(W.record),W=W.parent;return{name:Y,path:A,params:P,matched:D,meta:gx(D)}}return r.forEach(b=>c(b)),{addRoute:c,resolve:m,removeRoute:d,getRoutes:v,getRecordMatcher:u}}function hx(r,n){const l={};for(const s of n)s in r&&(l[s]=r[s]);return l}function px(r){return{path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:void 0,beforeEnter:r.beforeEnter,props:vx(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||{}:{default:r.component}}}function vx(r){const n={},l=r.props||!1;if("component"in r)n.default=l;else for(const s in r.components)n[s]=typeof l=="boolean"?l:l[s];return n}function Op(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function gx(r){return r.reduce((n,l)=>lt(n,l.meta),{})}function Mp(r,n){const l={};for(const s in r)l[s]=s in n?n[s]:r[s];return l}const Ap=/#/g,mx=/&/g,yx=/\//g,bx=/=/g,xx=/\?/g,Lp=/\+/g,wx=/%5B/g,Sx=/%5D/g,Np=/%5E/g,Cx=/%60/g,Ip=/%7B/g,Tx=/%7C/g,Rp=/%7D/g,Px=/%20/g;function Wu(r){return encodeURI(""+r).replace(Tx,"|").replace(wx,"[").replace(Sx,"]")}function kx(r){return Wu(r).replace(Ip,"{").replace(Rp,"}").replace(Np,"^")}function ju(r){return Wu(r).replace(Lp,"%2B").replace(Px,"+").replace(Ap,"%23").replace(mx,"%26").replace(Cx,"`").replace(Ip,"{").replace(Rp,"}").replace(Np,"^")}function Ex(r){return ju(r).replace(bx,"%3D")}function Ox(r){return Wu(r).replace(Ap,"%23").replace(xx,"%3F")}function Mx(r){return r==null?"":Ox(r).replace(yx,"%2F")}function Aa(r){try{return decodeURIComponent(""+r)}catch{}return""+r}function Ax(r){const n={};if(r===""||r==="?")return n;const s=(r[0]==="?"?r.slice(1):r).split("&");for(let u=0;u<s.length;++u){const c=s[u].replace(Lp," "),d=c.indexOf("="),v=Aa(d<0?c:c.slice(0,d)),p=d<0?null:Aa(c.slice(d+1));if(v in n){let m=n[v];Array.isArray(m)||(m=n[v]=[m]),m.push(p)}else n[v]=p}return n}function Fp(r){let n="";for(let l in r){const s=r[l];if(l=Ex(l),s==null){s!==void 0&&(n+=(n.length?"&":"")+l);continue}(Array.isArray(s)?s.map(c=>c&&ju(c)):[s&&ju(s)]).forEach(c=>{c!==void 0&&(n+=(n.length?"&":"")+l,c!=null&&(n+="="+c))})}return n}function Lx(r){const n={};for(const l in r){const s=r[l];s!==void 0&&(n[l]=Array.isArray(s)?s.map(u=>u==null?null:""+u):s==null?s:""+s)}return n}function os(){let r=[];function n(s){return r.push(s),()=>{const u=r.indexOf(s);u>-1&&r.splice(u,1)}}function l(){r=[]}return{add:n,list:()=>r,reset:l}}function Pn(r,n,l,s,u){const c=s&&(s.enterCallbacks[u]=s.enterCallbacks[u]||[]);return()=>new Promise((d,v)=>{const p=S=>{S===!1?v(Wi(4,{from:l,to:n})):S instanceof Error?v(S):rx(S)?v(Wi(2,{from:n,to:S})):(c&&s.enterCallbacks[u]===c&&typeof S=="function"&&c.push(S),d())},m=r.call(s&&s.instances[u],n,l,p);let b=Promise.resolve(m);r.length<3&&(b=b.then(p)),b.catch(S=>v(S))})}function Ku(r,n,l,s){const u=[];for(const c of r)for(const d in c.components){let v=c.components[d];if(!(n!=="beforeRouteEnter"&&!c.instances[d]))if(Nx(v)){const m=(v.__vccOpts||v)[n];m&&u.push(Pn(m,l,s,c,d))}else{let p=v();u.push(()=>p.then(m=>{if(!m)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${c.path}"`));const b=Hb(m)?m.default:m;c.components[d]=b;const T=(b.__vccOpts||b)[n];return T&&Pn(T,l,s,c,d)()}))}}return u}function Nx(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function Dp(r){const n=Cr(Ru),l=Cr(Fu),s=Vt(()=>n.resolve(xt(r.to))),u=Vt(()=>{const{matched:p}=s.value,{length:m}=p,b=p[m-1],S=l.matched;if(!b||!S.length)return-1;const T=S.findIndex(Bi.bind(null,b));if(T>-1)return T;const P=zp(p[m-2]);return m>1&&zp(b)===P&&S[S.length-1].path!==P?S.findIndex(Bi.bind(null,p[m-2])):T}),c=Vt(()=>u.value>-1&&Dx(l.params,s.value.params)),d=Vt(()=>u.value>-1&&u.value===l.matched.length-1&&bp(l.params,s.value.params));function v(p={}){return Fx(p)?n[xt(r.replace)?"replace":"push"](xt(r.to)).catch(rs):Promise.resolve()}return{route:s,href:Vt(()=>s.value.href),isActive:c,isExactActive:d,navigate:v}}const Ix=Bo({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Dp,setup(r,{slots:n}){const l=Pi(Dp(r)),{options:s}=Cr(Ru),u=Vt(()=>({[Hp(r.activeClass,s.linkActiveClass,"router-link-active")]:l.isActive,[Hp(r.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:l.isExactActive}));return()=>{const c=n.default&&n.default(l);return r.custom?c:Ca("a",{"aria-current":l.isExactActive?r.ariaCurrentValue:null,href:l.href,onClick:l.navigate,class:u.value},c)}}}),Rx=Ix;function Fx(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const n=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return r.preventDefault&&r.preventDefault(),!0}}function Dx(r,n){for(const l in n){const s=n[l],u=r[l];if(typeof s=="string"){if(s!==u)return!1}else if(!Array.isArray(u)||u.length!==s.length||s.some((c,d)=>c!==u[d]))return!1}return!0}function zp(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const Hp=(r,n,l)=>r!=null?r:n!=null?n:l,zx=Bo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(r,{attrs:n,slots:l}){const s=Cr(Du),u=Vt(()=>r.route||s.value),c=Cr(mp,0),d=Vt(()=>u.value.matched[c]);Ho(mp,c+1),Ho(zb,d),Ho(Du,u);const v=Lt();return rr(()=>[v.value,d.value,r.name],([p,m,b],[S,T,P])=>{m&&(m.instances[b]=p,T&&T!==m&&p&&p===S&&(m.leaveGuards.size||(m.leaveGuards=T.leaveGuards),m.updateGuards.size||(m.updateGuards=T.updateGuards))),p&&m&&(!T||!Bi(m,T)||!S)&&(m.enterCallbacks[b]||[]).forEach(A=>A(p))},{flush:"post"}),()=>{const p=u.value,m=d.value,b=m&&m.components[r.name],S=r.name;if(!b)return Bp(l.default,{Component:b,route:p});const T=m.props[r.name],P=T?T===!0?p.params:typeof T=="function"?T(p):T:null,Y=Ca(b,lt({},P,n,{onVnodeUnmounted:D=>{D.component.isUnmounted&&(m.instances[S]=null)},ref:v}));return Bp(l.default,{Component:Y,route:p})||Y}}});function Bp(r,n){if(!r)return null;const l=r(n);return l.length===1?l[0]:l}const Hx=zx;function Zx(r){const n=dx(r.routes,r),l=r.parseQuery||Ax,s=r.stringifyQuery||Fp,u=r.history,c=os(),d=os(),v=os(),p=Fo(Tn);let m=Tn;Hi&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const b=zu.bind(null,ne=>""+ne),S=zu.bind(null,Mx),T=zu.bind(null,Aa);function P(ne,se){let ae,be;return Tp(ne)?(ae=n.getRecordMatcher(ne),be=se):be=ne,n.addRoute(be,ae)}function A(ne){const se=n.getRecordMatcher(ne);se&&n.removeRoute(se)}function Y(){return n.getRoutes().map(ne=>ne.record)}function D(ne){return!!n.getRecordMatcher(ne)}function W(ne,se){if(se=lt({},se||p.value),typeof ne=="string"){const Le=Hu(l,ne,se.path),R=n.resolve({path:Le.path},se),j=u.createHref(Le.fullPath);return lt(Le,R,{params:T(R.params),hash:Aa(Le.hash),redirectedFrom:void 0,href:j})}let ae;if("path"in ne)ae=lt({},ne,{path:Hu(l,ne.path,se.path).path});else{const Le=lt({},ne.params);for(const R in Le)Le[R]==null&&delete Le[R];ae=lt({},ne,{params:S(ne.params)}),se.params=S(se.params)}const be=n.resolve(ae,se),Ie=ne.hash||"";be.params=b(T(be.params));const Ee=jb(s,lt({},ne,{hash:kx(Ie),path:be.path})),me=u.createHref(Ee);return lt({fullPath:Ee,hash:Ie,query:s===Fp?Lx(ne.query):ne.query||{}},be,{redirectedFrom:void 0,href:me})}function M(ne){return typeof ne=="string"?Hu(l,ne,p.value.path):lt({},ne)}function F(ne,se){if(m!==ne)return Wi(8,{from:se,to:ne})}function B(ne){return V(ne)}function _(ne){return B(lt(M(ne),{replace:!0}))}function ee(ne){const se=ne.matched[ne.matched.length-1];if(se&&se.redirect){const{redirect:ae}=se;let be=typeof ae=="function"?ae(ne):ae;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=M(be):{path:be},be.params={}),lt({query:ne.query,hash:ne.hash,params:ne.params},be)}}function V(ne,se){const ae=m=W(ne),be=p.value,Ie=ne.state,Ee=ne.force,me=ne.replace===!0,Le=ee(ae);if(Le)return V(lt(M(Le),{state:Ie,force:Ee,replace:me}),se||ae);const R=ae;R.redirectedFrom=se;let j;return!Ee&&Kb(s,be,ae)&&(j=Wi(16,{to:R,from:be}),he(be,be,!0,!1)),(j?Promise.resolve(j):te(R,be)).catch(X=>qn(X)?X:z(X,R,be)).then(X=>{if(X){if(qn(X,2))return V(lt(M(X.to),{state:Ie,force:Ee,replace:me}),se||R)}else X=Q(R,be,!0,me,Ie);return ie(R,be,X),X})}function J(ne,se){const ae=F(ne,se);return ae?Promise.reject(ae):Promise.resolve()}function te(ne,se){let ae;const[be,Ie,Ee]=Bx(ne,se);ae=Ku(be.reverse(),"beforeRouteLeave",ne,se);for(const Le of be)Le.leaveGuards.forEach(R=>{ae.push(Pn(R,ne,se))});const me=J.bind(null,ne,se);return ae.push(me),ji(ae).then(()=>{ae=[];for(const Le of c.list())ae.push(Pn(Le,ne,se));return ae.push(me),ji(ae)}).then(()=>{ae=Ku(Ie,"beforeRouteUpdate",ne,se);for(const Le of Ie)Le.updateGuards.forEach(R=>{ae.push(Pn(R,ne,se))});return ae.push(me),ji(ae)}).then(()=>{ae=[];for(const Le of ne.matched)if(Le.beforeEnter&&!se.matched.includes(Le))if(Array.isArray(Le.beforeEnter))for(const R of Le.beforeEnter)ae.push(Pn(R,ne,se));else ae.push(Pn(Le.beforeEnter,ne,se));return ae.push(me),ji(ae)}).then(()=>(ne.matched.forEach(Le=>Le.enterCallbacks={}),ae=Ku(Ee,"beforeRouteEnter",ne,se),ae.push(me),ji(ae))).then(()=>{ae=[];for(const Le of d.list())ae.push(Pn(Le,ne,se));return ae.push(me),ji(ae)}).catch(Le=>qn(Le,8)?Le:Promise.reject(Le))}function ie(ne,se,ae){for(const be of v.list())be(ne,se,ae)}function Q(ne,se,ae,be,Ie){const Ee=F(ne,se);if(Ee)return Ee;const me=se===Tn,Le=Hi?history.state:{};ae&&(be||me?u.replace(ne.fullPath,lt({scroll:me&&Le&&Le.scroll},Ie)):u.push(ne.fullPath,Ie)),p.value=ne,he(ne,se,ae,me),ue()}let q;function k(){q=u.listen((ne,se,ae)=>{const be=W(ne),Ie=ee(be);if(Ie){V(lt(Ie,{replace:!0}),be).catch(rs);return}m=be;const Ee=p.value;Hi&&Zb(wp(Ee.fullPath,ae.delta),Ma()),te(be,Ee).catch(me=>qn(me,4|8)?me:qn(me,2)?(V(me.to,be).then(Le=>{qn(Le,4|16)&&!ae.delta&&ae.type===ns.pop&&u.go(-1,!1)}).catch(rs),Promise.reject()):(ae.delta&&u.go(-ae.delta,!1),z(me,be,Ee))).then(me=>{me=me||Q(be,Ee,!1),me&&(ae.delta?u.go(-ae.delta,!1):ae.type===ns.pop&&qn(me,4|16)&&u.go(-1,!1)),ie(be,Ee,me)}).catch(rs)})}let E=os(),x=os(),H;function z(ne,se,ae){ue(ne);const be=x.list();return be.length?be.forEach(Ie=>Ie(ne,se,ae)):console.error(ne),Promise.reject(ne)}function G(){return H&&p.value!==Tn?Promise.resolve():new Promise((ne,se)=>{E.add([ne,se])})}function ue(ne){H||(H=!0,k(),E.list().forEach(([se,ae])=>ne?ae(ne):se()),E.reset())}function he(ne,se,ae,be){const{scrollBehavior:Ie}=r;if(!Hi||!Ie)return Promise.resolve();const Ee=!ae&&Qb(wp(ne.fullPath,0))||(be||!ae)&&history.state&&history.state.scroll||null;return Zo().then(()=>Ie(ne,se,Ee)).then(me=>me&&Jb(me)).catch(me=>z(me,ne,se))}const je=ne=>u.go(ne);let We;const Ke=new Set;return{currentRoute:p,addRoute:P,removeRoute:A,hasRoute:D,getRoutes:Y,resolve:W,options:r,push:B,replace:_,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:d.add,afterEach:v.add,onError:x.add,isReady:G,install(ne){const se=this;ne.component("RouterLink",Rx),ne.component("RouterView",Hx),ne.config.globalProperties.$router=se,Object.defineProperty(ne.config.globalProperties,"$route",{enumerable:!0,get:()=>xt(p)}),Hi&&!We&&p.value===Tn&&(We=!0,B(u.location).catch(Ie=>{}));const ae={};for(const Ie in Tn)ae[Ie]=Vt(()=>p.value[Ie]);ne.provide(Ru,se),ne.provide(Fu,Pi(ae)),ne.provide(Du,p);const be=ne.unmount;Ke.add(ne),ne.unmount=function(){Ke.delete(ne),Ke.size<1&&(m=Tn,q&&q(),p.value=Tn,We=!1,H=!1),be()}}}}function ji(r){return r.reduce((n,l)=>n.then(()=>l()),Promise.resolve())}function Bx(r,n){const l=[],s=[],u=[],c=Math.max(n.matched.length,r.matched.length);for(let d=0;d<c;d++){const v=n.matched[d];v&&(r.matched.find(m=>Bi(m,v))?s.push(v):l.push(v));const p=r.matched[d];p&&(n.matched.find(m=>Bi(m,p))||u.push(p))}return[l,s,u]}function Qx(){return Cr(Fu)}var Wx={exports:{}},jx=Ib(fb);(function(r){r.exports=function(n){var l={};function s(u){if(l[u])return l[u].exports;var c=l[u]={i:u,l:!1,exports:{}};return n[u].call(c.exports,c,c.exports,s),c.l=!0,c.exports}return s.m=n,s.c=l,s.d=function(u,c,d){s.o(u,c)||Object.defineProperty(u,c,{enumerable:!0,get:d})},s.r=function(u){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},s.t=function(u,c){if(c&1&&(u=s(u)),c&8||c&4&&typeof u=="object"&&u&&u.__esModule)return u;var d=Object.create(null);if(s.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:u}),c&2&&typeof u!="string")for(var v in u)s.d(d,v,function(p){return u[p]}.bind(null,v));return d},s.n=function(u){var c=u&&u.__esModule?function(){return u.default}:function(){return u};return s.d(c,"a",c),c},s.o=function(u,c){return Object.prototype.hasOwnProperty.call(u,c)},s.p="",s(s.s="fae3")}({"00ee":function(n,l,s){var u=s("b622"),c=u("toStringTag"),d={};d[c]="z",n.exports=String(d)==="[object z]"},"0366":function(n,l,s){var u=s("1c0b");n.exports=function(c,d,v){if(u(c),d===void 0)return c;switch(v){case 0:return function(){return c.call(d)};case 1:return function(p){return c.call(d,p)};case 2:return function(p,m){return c.call(d,p,m)};case 3:return function(p,m,b){return c.call(d,p,m,b)}}return function(){return c.apply(d,arguments)}}},"057f":function(n,l,s){var u=s("fc6a"),c=s("241c").f,d={}.toString,v=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(m){try{return c(m)}catch{return v.slice()}};n.exports.f=function(b){return v&&d.call(b)=="[object Window]"?p(b):c(u(b))}},"06cf":function(n,l,s){var u=s("83ab"),c=s("d1e7"),d=s("5c6c"),v=s("fc6a"),p=s("c04e"),m=s("5135"),b=s("0cfb"),S=Object.getOwnPropertyDescriptor;l.f=u?S:function(P,A){if(P=v(P),A=p(A,!0),b)try{return S(P,A)}catch{}if(m(P,A))return d(!c.f.call(P,A),P[A])}},"0cfb":function(n,l,s){var u=s("83ab"),c=s("d039"),d=s("cc12");n.exports=!u&&!c(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},"159b":function(n,l,s){var u=s("da84"),c=s("fdbc"),d=s("17c2"),v=s("9112");for(var p in c){var m=u[p],b=m&&m.prototype;if(b&&b.forEach!==d)try{v(b,"forEach",d)}catch{b.forEach=d}}},"17c2":function(n,l,s){var u=s("b727").forEach,c=s("a640"),d=c("forEach");n.exports=d?[].forEach:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}},"1be4":function(n,l,s){var u=s("d066");n.exports=u("document","documentElement")},"1c0b":function(n,l){n.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},"1c7e":function(n,l,s){var u=s("b622"),c=u("iterator"),d=!1;try{var v=0,p={next:function(){return{done:!!v++}},return:function(){d=!0}};p[c]=function(){return this},Array.from(p,function(){throw 2})}catch{}n.exports=function(m,b){if(!b&&!d)return!1;var S=!1;try{var T={};T[c]=function(){return{next:function(){return{done:S=!0}}}},m(T)}catch{}return S}},"1d80":function(n,l){n.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"1dde":function(n,l,s){var u=s("d039"),c=s("b622"),d=s("2d00"),v=c("species");n.exports=function(p){return d>=51||!u(function(){var m=[],b=m.constructor={};return b[v]=function(){return{foo:1}},m[p](Boolean).foo!==1})}},"23cb":function(n,l,s){var u=s("a691"),c=Math.max,d=Math.min;n.exports=function(v,p){var m=u(v);return m<0?c(m+p,0):d(m,p)}},"23e7":function(n,l,s){var u=s("da84"),c=s("06cf").f,d=s("9112"),v=s("6eeb"),p=s("ce4e"),m=s("e893"),b=s("94ca");n.exports=function(S,T){var P=S.target,A=S.global,Y=S.stat,D,W,M,F,B,_;if(A?W=u:Y?W=u[P]||p(P,{}):W=(u[P]||{}).prototype,W)for(M in T){if(B=T[M],S.noTargetGet?(_=c(W,M),F=_&&_.value):F=W[M],D=b(A?M:P+(Y?".":"#")+M,S.forced),!D&&F!==void 0){if(typeof B==typeof F)continue;m(B,F)}(S.sham||F&&F.sham)&&d(B,"sham",!0),v(W,M,B,S)}}},"241c":function(n,l,s){var u=s("ca84"),c=s("7839"),d=c.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(p){return u(p,d)}},"2532":function(n,l,s){var u=s("23e7"),c=s("5a34"),d=s("1d80"),v=s("ab13");u({target:"String",proto:!0,forced:!v("includes")},{includes:function(m){return!!~String(d(this)).indexOf(c(m),arguments.length>1?arguments[1]:void 0)}})},"2a62":function(n,l,s){var u=s("825a");n.exports=function(c){var d=c.return;if(d!==void 0)return u(d.call(c)).value}},"2d00":function(n,l,s){var u=s("da84"),c=s("342f"),d=u.process,v=d&&d.versions,p=v&&v.v8,m,b;p?(m=p.split("."),b=m[0]<4?1:m[0]+m[1]):c&&(m=c.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=c.match(/Chrome\/(\d+)/),m&&(b=m[1]))),n.exports=b&&+b},"342f":function(n,l,s){var u=s("d066");n.exports=u("navigator","userAgent")||""},"35a1":function(n,l,s){var u=s("f5df"),c=s("3f8c"),d=s("b622"),v=d("iterator");n.exports=function(p){if(p!=null)return p[v]||p["@@iterator"]||c[u(p)]}},"37e8":function(n,l,s){var u=s("83ab"),c=s("9bf2"),d=s("825a"),v=s("df75");n.exports=u?Object.defineProperties:function(m,b){d(m);for(var S=v(b),T=S.length,P=0,A;T>P;)c.f(m,A=S[P++],b[A]);return m}},"3bbe":function(n,l,s){var u=s("861d");n.exports=function(c){if(!u(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype");return c}},"3ca3":function(n,l,s){var u=s("6547").charAt,c=s("69f3"),d=s("7dd0"),v="String Iterator",p=c.set,m=c.getterFor(v);d(String,"String",function(b){p(this,{type:v,string:String(b),index:0})},function(){var S=m(this),T=S.string,P=S.index,A;return P>=T.length?{value:void 0,done:!0}:(A=u(T,P),S.index+=A.length,{value:A,done:!1})})},"3f8c":function(n,l){n.exports={}},"428f":function(n,l,s){var u=s("da84");n.exports=u},"44ad":function(n,l,s){var u=s("d039"),c=s("c6b6"),d="".split;n.exports=u(function(){return!Object("z").propertyIsEnumerable(0)})?function(v){return c(v)=="String"?d.call(v,""):Object(v)}:Object},"44d2":function(n,l,s){var u=s("b622"),c=s("7c73"),d=s("9bf2"),v=u("unscopables"),p=Array.prototype;p[v]==null&&d.f(p,v,{configurable:!0,value:c(null)}),n.exports=function(m){p[v][m]=!0}},"44e7":function(n,l,s){var u=s("861d"),c=s("c6b6"),d=s("b622"),v=d("match");n.exports=function(p){var m;return u(p)&&((m=p[v])!==void 0?!!m:c(p)=="RegExp")}},"4930":function(n,l,s){var u=s("2d00"),c=s("d039");n.exports=!!Object.getOwnPropertySymbols&&!c(function(){var d=Symbol();return!String(d)||!(Object(d)instanceof Symbol)||!Symbol.sham&&u&&u<41})},"4d64":function(n,l,s){var u=s("fc6a"),c=s("50c4"),d=s("23cb"),v=function(p){return function(m,b,S){var T=u(m),P=c(T.length),A=d(S,P),Y;if(p&&b!=b){for(;P>A;)if(Y=T[A++],Y!=Y)return!0}else for(;P>A;A++)if((p||A in T)&&T[A]===b)return p||A||0;return!p&&-1}};n.exports={includes:v(!0),indexOf:v(!1)}},"4de4":function(n,l,s){var u=s("23e7"),c=s("b727").filter,d=s("1dde"),v=d("filter");u({target:"Array",proto:!0,forced:!v},{filter:function(m){return c(this,m,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(n,l,s){var u=s("0366"),c=s("7b0b"),d=s("9bdd"),v=s("e95a"),p=s("50c4"),m=s("8418"),b=s("35a1");n.exports=function(T){var P=c(T),A=typeof this=="function"?this:Array,Y=arguments.length,D=Y>1?arguments[1]:void 0,W=D!==void 0,M=b(P),F=0,B,_,ee,V,J,te;if(W&&(D=u(D,Y>2?arguments[2]:void 0,2)),M!=null&&!(A==Array&&v(M)))for(V=M.call(P),J=V.next,_=new A;!(ee=J.call(V)).done;F++)te=W?d(V,D,[ee.value,F],!0):ee.value,m(_,F,te);else for(B=p(P.length),_=new A(B);B>F;F++)te=W?D(P[F],F):P[F],m(_,F,te);return _.length=F,_}},"4fad":function(n,l,s){var u=s("23e7"),c=s("6f53").entries;u({target:"Object",stat:!0},{entries:function(v){return c(v)}})},"50c4":function(n,l,s){var u=s("a691"),c=Math.min;n.exports=function(d){return d>0?c(u(d),9007199254740991):0}},"5135":function(n,l,s){var u=s("7b0b"),c={}.hasOwnProperty;n.exports=Object.hasOwn||function(v,p){return c.call(u(v),p)}},"5692":function(n,l,s){var u=s("c430"),c=s("c6cd");(n.exports=function(d,v){return c[d]||(c[d]=v!==void 0?v:{})})("versions",[]).push({version:"3.15.2",mode:u?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(n,l,s){var u=s("d066"),c=s("241c"),d=s("7418"),v=s("825a");n.exports=u("Reflect","ownKeys")||function(m){var b=c.f(v(m)),S=d.f;return S?b.concat(S(m)):b}},"5899":function(n,l){n.exports=`
32
+ \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"58a8":function(n,l,s){var u=s("1d80"),c=s("5899"),d="["+c+"]",v=RegExp("^"+d+d+"*"),p=RegExp(d+d+"*$"),m=function(b){return function(S){var T=String(u(S));return b&1&&(T=T.replace(v,"")),b&2&&(T=T.replace(p,"")),T}};n.exports={start:m(1),end:m(2),trim:m(3)}},"5a34":function(n,l,s){var u=s("44e7");n.exports=function(c){if(u(c))throw TypeError("The method doesn't accept regular expressions");return c}},"5c6c":function(n,l){n.exports=function(s,u){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:u}}},"6547":function(n,l,s){var u=s("a691"),c=s("1d80"),d=function(v){return function(p,m){var b=String(c(p)),S=u(m),T=b.length,P,A;return S<0||S>=T?v?"":void 0:(P=b.charCodeAt(S),P<55296||P>56319||S+1===T||(A=b.charCodeAt(S+1))<56320||A>57343?v?b.charAt(S):P:v?b.slice(S,S+2):(P-55296<<10)+(A-56320)+65536)}};n.exports={codeAt:d(!1),charAt:d(!0)}},"65f0":function(n,l,s){var u=s("861d"),c=s("e8b5"),d=s("b622"),v=d("species");n.exports=function(p,m){var b;return c(p)&&(b=p.constructor,typeof b=="function"&&(b===Array||c(b.prototype))?b=void 0:u(b)&&(b=b[v],b===null&&(b=void 0))),new(b===void 0?Array:b)(m===0?0:m)}},"69f3":function(n,l,s){var u=s("7f9a"),c=s("da84"),d=s("861d"),v=s("9112"),p=s("5135"),m=s("c6cd"),b=s("f772"),S=s("d012"),T="Object already initialized",P=c.WeakMap,A,Y,D,W=function(J){return D(J)?Y(J):A(J,{})},M=function(J){return function(te){var ie;if(!d(te)||(ie=Y(te)).type!==J)throw TypeError("Incompatible receiver, "+J+" required");return ie}};if(u||m.state){var F=m.state||(m.state=new P),B=F.get,_=F.has,ee=F.set;A=function(J,te){if(_.call(F,J))throw new TypeError(T);return te.facade=J,ee.call(F,J,te),te},Y=function(J){return B.call(F,J)||{}},D=function(J){return _.call(F,J)}}else{var V=b("state");S[V]=!0,A=function(J,te){if(p(J,V))throw new TypeError(T);return te.facade=J,v(J,V,te),te},Y=function(J){return p(J,V)?J[V]:{}},D=function(J){return p(J,V)}}n.exports={set:A,get:Y,has:D,enforce:W,getterFor:M}},"6eeb":function(n,l,s){var u=s("da84"),c=s("9112"),d=s("5135"),v=s("ce4e"),p=s("8925"),m=s("69f3"),b=m.get,S=m.enforce,T=String(String).split("String");(n.exports=function(P,A,Y,D){var W=D?!!D.unsafe:!1,M=D?!!D.enumerable:!1,F=D?!!D.noTargetGet:!1,B;if(typeof Y=="function"&&(typeof A=="string"&&!d(Y,"name")&&c(Y,"name",A),B=S(Y),B.source||(B.source=T.join(typeof A=="string"?A:""))),P===u){M?P[A]=Y:v(A,Y);return}else W?!F&&P[A]&&(M=!0):delete P[A];M?P[A]=Y:c(P,A,Y)})(Function.prototype,"toString",function(){return typeof this=="function"&&b(this).source||p(this)})},"6f53":function(n,l,s){var u=s("83ab"),c=s("df75"),d=s("fc6a"),v=s("d1e7").f,p=function(m){return function(b){for(var S=d(b),T=c(S),P=T.length,A=0,Y=[],D;P>A;)D=T[A++],(!u||v.call(S,D))&&Y.push(m?[D,S[D]]:S[D]);return Y}};n.exports={entries:p(!0),values:p(!1)}},"7156":function(n,l,s){var u=s("861d"),c=s("d2bb");n.exports=function(d,v,p){var m,b;return c&&typeof(m=v.constructor)=="function"&&m!==p&&u(b=m.prototype)&&b!==p.prototype&&c(d,b),d}},"7418":function(n,l){l.f=Object.getOwnPropertySymbols},"746f":function(n,l,s){var u=s("428f"),c=s("5135"),d=s("e538"),v=s("9bf2").f;n.exports=function(p){var m=u.Symbol||(u.Symbol={});c(m,p)||v(m,p,{value:d.f(p)})}},"7839":function(n,l){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(n,l,s){var u=s("1d80");n.exports=function(c){return Object(u(c))}},"7c73":function(n,l,s){var u=s("825a"),c=s("37e8"),d=s("7839"),v=s("d012"),p=s("1be4"),m=s("cc12"),b=s("f772"),S=">",T="<",P="prototype",A="script",Y=b("IE_PROTO"),D=function(){},W=function(ee){return T+A+S+ee+T+"/"+A+S},M=function(ee){ee.write(W("")),ee.close();var V=ee.parentWindow.Object;return ee=null,V},F=function(){var ee=m("iframe"),V="java"+A+":",J;return ee.style.display="none",p.appendChild(ee),ee.src=String(V),J=ee.contentWindow.document,J.open(),J.write(W("document.F=Object")),J.close(),J.F},B,_=function(){try{B=document.domain&&new ActiveXObject("htmlfile")}catch{}_=B?M(B):F();for(var ee=d.length;ee--;)delete _[P][d[ee]];return _()};v[Y]=!0,n.exports=Object.create||function(V,J){var te;return V!==null?(D[P]=u(V),te=new D,D[P]=null,te[Y]=V):te=_(),J===void 0?te:c(te,J)}},"7db0":function(n,l,s){var u=s("23e7"),c=s("b727").find,d=s("44d2"),v="find",p=!0;v in[]&&Array(1)[v](function(){p=!1}),u({target:"Array",proto:!0,forced:p},{find:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}}),d(v)},"7dd0":function(n,l,s){var u=s("23e7"),c=s("9ed3"),d=s("e163"),v=s("d2bb"),p=s("d44e"),m=s("9112"),b=s("6eeb"),S=s("b622"),T=s("c430"),P=s("3f8c"),A=s("ae93"),Y=A.IteratorPrototype,D=A.BUGGY_SAFARI_ITERATORS,W=S("iterator"),M="keys",F="values",B="entries",_=function(){return this};n.exports=function(ee,V,J,te,ie,Q,q){c(J,V,te);var k=function(Ke){if(Ke===ie&&G)return G;if(!D&&Ke in H)return H[Ke];switch(Ke){case M:return function(){return new J(this,Ke)};case F:return function(){return new J(this,Ke)};case B:return function(){return new J(this,Ke)}}return function(){return new J(this)}},E=V+" Iterator",x=!1,H=ee.prototype,z=H[W]||H["@@iterator"]||ie&&H[ie],G=!D&&z||k(ie),ue=V=="Array"&&H.entries||z,he,je,We;if(ue&&(he=d(ue.call(new ee)),Y!==Object.prototype&&he.next&&(!T&&d(he)!==Y&&(v?v(he,Y):typeof he[W]!="function"&&m(he,W,_)),p(he,E,!0,!0),T&&(P[E]=_))),ie==F&&z&&z.name!==F&&(x=!0,G=function(){return z.call(this)}),(!T||q)&&H[W]!==G&&m(H,W,G),P[V]=G,ie)if(je={values:k(F),keys:Q?G:k(M),entries:k(B)},q)for(We in je)(D||x||!(We in H))&&b(H,We,je[We]);else u({target:V,proto:!0,forced:D||x},je);return je}},"7f9a":function(n,l,s){var u=s("da84"),c=s("8925"),d=u.WeakMap;n.exports=typeof d=="function"&&/native code/.test(c(d))},"825a":function(n,l,s){var u=s("861d");n.exports=function(c){if(!u(c))throw TypeError(String(c)+" is not an object");return c}},"83ab":function(n,l,s){var u=s("d039");n.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"8418":function(n,l,s){var u=s("c04e"),c=s("9bf2"),d=s("5c6c");n.exports=function(v,p,m){var b=u(p);b in v?c.f(v,b,d(0,m)):v[b]=m}},"861d":function(n,l){n.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},"8875":function(n,l,s){var u,c,d;(function(v,p){c=[],u=p,d=typeof u=="function"?u.apply(l,c):u,d!==void 0&&(n.exports=d)})(typeof self!="undefined"?self:this,function(){function v(){var p=Object.getOwnPropertyDescriptor(document,"currentScript");if(!p&&"currentScript"in document&&document.currentScript||p&&p.get!==v&&document.currentScript)return document.currentScript;try{throw new Error}catch(B){var m=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,b=/@([^@]*):(\d+):(\d+)\s*$/ig,S=m.exec(B.stack)||b.exec(B.stack),T=S&&S[1]||!1,P=S&&S[2]||!1,A=document.location.href.replace(document.location.hash,""),Y,D,W,M=document.getElementsByTagName("script");T===A&&(Y=document.documentElement.outerHTML,D=new RegExp("(?:[^\\n]+?\\n){0,"+(P-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),W=Y.replace(D,"$1").trim());for(var F=0;F<M.length;F++)if(M[F].readyState==="interactive"||M[F].src===T||T===A&&M[F].innerHTML&&M[F].innerHTML.trim()===W)return M[F];return null}}return v})},"8925":function(n,l,s){var u=s("c6cd"),c=Function.toString;typeof u.inspectSource!="function"&&(u.inspectSource=function(d){return c.call(d)}),n.exports=u.inspectSource},"8bbf":function(n,l){n.exports=jx},"90e3":function(n,l){var s=0,u=Math.random();n.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++s+u).toString(36)}},"9112":function(n,l,s){var u=s("83ab"),c=s("9bf2"),d=s("5c6c");n.exports=u?function(v,p,m){return c.f(v,p,d(1,m))}:function(v,p,m){return v[p]=m,v}},"94ca":function(n,l,s){var u=s("d039"),c=/#|\.prototype\./,d=function(S,T){var P=p[v(S)];return P==b?!0:P==m?!1:typeof T=="function"?u(T):!!T},v=d.normalize=function(S){return String(S).replace(c,".").toLowerCase()},p=d.data={},m=d.NATIVE="N",b=d.POLYFILL="P";n.exports=d},"9bdd":function(n,l,s){var u=s("825a"),c=s("2a62");n.exports=function(d,v,p,m){try{return m?v(u(p)[0],p[1]):v(p)}catch(b){throw c(d),b}}},"9bf2":function(n,l,s){var u=s("83ab"),c=s("0cfb"),d=s("825a"),v=s("c04e"),p=Object.defineProperty;l.f=u?p:function(b,S,T){if(d(b),S=v(S,!0),d(T),c)try{return p(b,S,T)}catch{}if("get"in T||"set"in T)throw TypeError("Accessors not supported");return"value"in T&&(b[S]=T.value),b}},"9ed3":function(n,l,s){var u=s("ae93").IteratorPrototype,c=s("7c73"),d=s("5c6c"),v=s("d44e"),p=s("3f8c"),m=function(){return this};n.exports=function(b,S,T){var P=S+" Iterator";return b.prototype=c(u,{next:d(1,T)}),v(b,P,!1,!0),p[P]=m,b}},a434:function(n,l,s){var u=s("23e7"),c=s("23cb"),d=s("a691"),v=s("50c4"),p=s("7b0b"),m=s("65f0"),b=s("8418"),S=s("1dde"),T=S("splice"),P=Math.max,A=Math.min,Y=9007199254740991,D="Maximum allowed length exceeded";u({target:"Array",proto:!0,forced:!T},{splice:function(M,F){var B=p(this),_=v(B.length),ee=c(M,_),V=arguments.length,J,te,ie,Q,q,k;if(V===0?J=te=0:V===1?(J=0,te=_-ee):(J=V-2,te=A(P(d(F),0),_-ee)),_+J-te>Y)throw TypeError(D);for(ie=m(B,te),Q=0;Q<te;Q++)q=ee+Q,q in B&&b(ie,Q,B[q]);if(ie.length=te,J<te){for(Q=ee;Q<_-te;Q++)q=Q+te,k=Q+J,q in B?B[k]=B[q]:delete B[k];for(Q=_;Q>_-te+J;Q--)delete B[Q-1]}else if(J>te)for(Q=_-te;Q>ee;Q--)q=Q+te-1,k=Q+J-1,q in B?B[k]=B[q]:delete B[k];for(Q=0;Q<J;Q++)B[Q+ee]=arguments[Q+2];return B.length=_-te+J,ie}})},a4d3:function(n,l,s){var u=s("23e7"),c=s("da84"),d=s("d066"),v=s("c430"),p=s("83ab"),m=s("4930"),b=s("fdbf"),S=s("d039"),T=s("5135"),P=s("e8b5"),A=s("861d"),Y=s("825a"),D=s("7b0b"),W=s("fc6a"),M=s("c04e"),F=s("5c6c"),B=s("7c73"),_=s("df75"),ee=s("241c"),V=s("057f"),J=s("7418"),te=s("06cf"),ie=s("9bf2"),Q=s("d1e7"),q=s("9112"),k=s("6eeb"),E=s("5692"),x=s("f772"),H=s("d012"),z=s("90e3"),G=s("b622"),ue=s("e538"),he=s("746f"),je=s("d44e"),We=s("69f3"),Ke=s("b727").forEach,Xe=x("hidden"),ne="Symbol",se="prototype",ae=G("toPrimitive"),be=We.set,Ie=We.getterFor(ne),Ee=Object[se],me=c.Symbol,Le=d("JSON","stringify"),R=te.f,j=ie.f,X=V.f,oe=Q.f,le=E("symbols"),ge=E("op-symbols"),Ce=E("string-to-symbol-registry"),we=E("symbol-to-string-registry"),de=E("wks"),L=c.QObject,Z=!L||!L[se]||!L[se].findChild,U=p&&S(function(){return B(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a!=7})?function(Ye,ke,ve){var ze=R(Ee,ke);ze&&delete Ee[ke],j(Ye,ke,ve),ze&&Ye!==Ee&&j(Ee,ke,ze)}:j,Se=function(Ye,ke){var ve=le[Ye]=B(me[se]);return be(ve,{type:ne,tag:Ye,description:ke}),p||(ve.description=ke),ve},Re=b?function(Ye){return typeof Ye=="symbol"}:function(Ye){return Object(Ye)instanceof me},$e=function(ke,ve,ze){ke===Ee&&$e(ge,ve,ze),Y(ke);var qe=M(ve,!0);return Y(ze),T(le,qe)?(ze.enumerable?(T(ke,Xe)&&ke[Xe][qe]&&(ke[Xe][qe]=!1),ze=B(ze,{enumerable:F(0,!1)})):(T(ke,Xe)||j(ke,Xe,F(1,{})),ke[Xe][qe]=!0),U(ke,qe,ze)):j(ke,qe,ze)},it=function(ke,ve){Y(ke);var ze=W(ve),qe=_(ze).concat(Bt(ze));return Ke(qe,function(et){(!p||Ue.call(ze,et))&&$e(ke,et,ze[et])}),ke},Je=function(ke,ve){return ve===void 0?B(ke):it(B(ke),ve)},Ue=function(ke){var ve=M(ke,!0),ze=oe.call(this,ve);return this===Ee&&T(le,ve)&&!T(ge,ve)?!1:ze||!T(this,ve)||!T(le,ve)||T(this,Xe)&&this[Xe][ve]?ze:!0},vt=function(ke,ve){var ze=W(ke),qe=M(ve,!0);if(!(ze===Ee&&T(le,qe)&&!T(ge,qe))){var et=R(ze,qe);return et&&T(le,qe)&&!(T(ze,Xe)&&ze[Xe][qe])&&(et.enumerable=!0),et}},ct=function(ke){var ve=X(W(ke)),ze=[];return Ke(ve,function(qe){!T(le,qe)&&!T(H,qe)&&ze.push(qe)}),ze},Bt=function(ke){var ve=ke===Ee,ze=X(ve?ge:W(ke)),qe=[];return Ke(ze,function(et){T(le,et)&&(!ve||T(Ee,et))&&qe.push(le[et])}),qe};if(m||(me=function(){if(this instanceof me)throw TypeError("Symbol is not a constructor");var ke=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ve=z(ke),ze=function(qe){this===Ee&&ze.call(ge,qe),T(this,Xe)&&T(this[Xe],ve)&&(this[Xe][ve]=!1),U(this,ve,F(1,qe))};return p&&Z&&U(Ee,ve,{configurable:!0,set:ze}),Se(ve,ke)},k(me[se],"toString",function(){return Ie(this).tag}),k(me,"withoutSetter",function(Ye){return Se(z(Ye),Ye)}),Q.f=Ue,ie.f=$e,te.f=vt,ee.f=V.f=ct,J.f=Bt,ue.f=function(Ye){return Se(G(Ye),Ye)},p&&(j(me[se],"description",{configurable:!0,get:function(){return Ie(this).description}}),v||k(Ee,"propertyIsEnumerable",Ue,{unsafe:!0}))),u({global:!0,wrap:!0,forced:!m,sham:!m},{Symbol:me}),Ke(_(de),function(Ye){he(Ye)}),u({target:ne,stat:!0,forced:!m},{for:function(Ye){var ke=String(Ye);if(T(Ce,ke))return Ce[ke];var ve=me(ke);return Ce[ke]=ve,we[ve]=ke,ve},keyFor:function(ke){if(!Re(ke))throw TypeError(ke+" is not a symbol");if(T(we,ke))return we[ke]},useSetter:function(){Z=!0},useSimple:function(){Z=!1}}),u({target:"Object",stat:!0,forced:!m,sham:!p},{create:Je,defineProperty:$e,defineProperties:it,getOwnPropertyDescriptor:vt}),u({target:"Object",stat:!0,forced:!m},{getOwnPropertyNames:ct,getOwnPropertySymbols:Bt}),u({target:"Object",stat:!0,forced:S(function(){J.f(1)})},{getOwnPropertySymbols:function(ke){return J.f(D(ke))}}),Le){var Fe=!m||S(function(){var Ye=me();return Le([Ye])!="[null]"||Le({a:Ye})!="{}"||Le(Object(Ye))!="{}"});u({target:"JSON",stat:!0,forced:Fe},{stringify:function(ke,ve,ze){for(var qe=[ke],et=1,Qt;arguments.length>et;)qe.push(arguments[et++]);if(Qt=ve,!(!A(ve)&&ke===void 0||Re(ke)))return P(ve)||(ve=function(Pt,gr){if(typeof Qt=="function"&&(gr=Qt.call(this,Pt,gr)),!Re(gr))return gr}),qe[1]=ve,Le.apply(null,qe)}})}me[se][ae]||q(me[se],ae,me[se].valueOf),je(me,ne),H[Xe]=!0},a630:function(n,l,s){var u=s("23e7"),c=s("4df4"),d=s("1c7e"),v=!d(function(p){Array.from(p)});u({target:"Array",stat:!0,forced:v},{from:c})},a640:function(n,l,s){var u=s("d039");n.exports=function(c,d){var v=[][c];return!!v&&u(function(){v.call(null,d||function(){throw 1},1)})}},a691:function(n,l){var s=Math.ceil,u=Math.floor;n.exports=function(c){return isNaN(c=+c)?0:(c>0?u:s)(c)}},a9e3:function(n,l,s){var u=s("83ab"),c=s("da84"),d=s("94ca"),v=s("6eeb"),p=s("5135"),m=s("c6b6"),b=s("7156"),S=s("c04e"),T=s("d039"),P=s("7c73"),A=s("241c").f,Y=s("06cf").f,D=s("9bf2").f,W=s("58a8").trim,M="Number",F=c[M],B=F.prototype,_=m(P(B))==M,ee=function(Q){var q=S(Q,!1),k,E,x,H,z,G,ue,he;if(typeof q=="string"&&q.length>2){if(q=W(q),k=q.charCodeAt(0),k===43||k===45){if(E=q.charCodeAt(2),E===88||E===120)return NaN}else if(k===48){switch(q.charCodeAt(1)){case 66:case 98:x=2,H=49;break;case 79:case 111:x=8,H=55;break;default:return+q}for(z=q.slice(2),G=z.length,ue=0;ue<G;ue++)if(he=z.charCodeAt(ue),he<48||he>H)return NaN;return parseInt(z,x)}}return+q};if(d(M,!F(" 0o1")||!F("0b1")||F("+0x1"))){for(var V=function(q){var k=arguments.length<1?0:q,E=this;return E instanceof V&&(_?T(function(){B.valueOf.call(E)}):m(E)!=M)?b(new F(ee(k)),E,V):ee(k)},J=u?A(F):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),te=0,ie;J.length>te;te++)p(F,ie=J[te])&&!p(V,ie)&&D(V,ie,Y(F,ie));V.prototype=B,B.constructor=V,v(c,M,V)}},ab13:function(n,l,s){var u=s("b622"),c=u("match");n.exports=function(d){var v=/./;try{"/./"[d](v)}catch{try{return v[c]=!1,"/./"[d](v)}catch{}}return!1}},ae93:function(n,l,s){var u=s("d039"),c=s("e163"),d=s("9112"),v=s("5135"),p=s("b622"),m=s("c430"),b=p("iterator"),S=!1,T=function(){return this},P,A,Y;[].keys&&(Y=[].keys(),"next"in Y?(A=c(c(Y)),A!==Object.prototype&&(P=A)):S=!0);var D=P==null||u(function(){var W={};return P[b].call(W)!==W});D&&(P={}),(!m||D)&&!v(P,b)&&d(P,b,T),n.exports={IteratorPrototype:P,BUGGY_SAFARI_ITERATORS:S}},b041:function(n,l,s){var u=s("00ee"),c=s("f5df");n.exports=u?{}.toString:function(){return"[object "+c(this)+"]"}},b0c0:function(n,l,s){var u=s("83ab"),c=s("9bf2").f,d=Function.prototype,v=d.toString,p=/^\s*function ([^ (]*)/,m="name";u&&!(m in d)&&c(d,m,{configurable:!0,get:function(){try{return v.call(this).match(p)[1]}catch{return""}}})},b622:function(n,l,s){var u=s("da84"),c=s("5692"),d=s("5135"),v=s("90e3"),p=s("4930"),m=s("fdbf"),b=c("wks"),S=u.Symbol,T=m?S:S&&S.withoutSetter||v;n.exports=function(P){return(!d(b,P)||!(p||typeof b[P]=="string"))&&(p&&d(S,P)?b[P]=S[P]:b[P]=T("Symbol."+P)),b[P]}},b64b:function(n,l,s){var u=s("23e7"),c=s("7b0b"),d=s("df75"),v=s("d039"),p=v(function(){d(1)});u({target:"Object",stat:!0,forced:p},{keys:function(b){return d(c(b))}})},b727:function(n,l,s){var u=s("0366"),c=s("44ad"),d=s("7b0b"),v=s("50c4"),p=s("65f0"),m=[].push,b=function(S){var T=S==1,P=S==2,A=S==3,Y=S==4,D=S==6,W=S==7,M=S==5||D;return function(F,B,_,ee){for(var V=d(F),J=c(V),te=u(B,_,3),ie=v(J.length),Q=0,q=ee||p,k=T?q(F,ie):P||W?q(F,0):void 0,E,x;ie>Q;Q++)if((M||Q in J)&&(E=J[Q],x=te(E,Q,V),S))if(T)k[Q]=x;else if(x)switch(S){case 3:return!0;case 5:return E;case 6:return Q;case 2:m.call(k,E)}else switch(S){case 4:return!1;case 7:m.call(k,E)}return D?-1:A||Y?Y:k}};n.exports={forEach:b(0),map:b(1),filter:b(2),some:b(3),every:b(4),find:b(5),findIndex:b(6),filterOut:b(7)}},c04e:function(n,l,s){var u=s("861d");n.exports=function(c,d){if(!u(c))return c;var v,p;if(d&&typeof(v=c.toString)=="function"&&!u(p=v.call(c))||typeof(v=c.valueOf)=="function"&&!u(p=v.call(c))||!d&&typeof(v=c.toString)=="function"&&!u(p=v.call(c)))return p;throw TypeError("Can't convert object to primitive value")}},c14f:function(n,l,s){s("ce77")},c430:function(n,l){n.exports=!1},c6b6:function(n,l){var s={}.toString;n.exports=function(u){return s.call(u).slice(8,-1)}},c6cd:function(n,l,s){var u=s("da84"),c=s("ce4e"),d="__core-js_shared__",v=u[d]||c(d,{});n.exports=v},c740:function(n,l,s){var u=s("23e7"),c=s("b727").findIndex,d=s("44d2"),v="findIndex",p=!0;v in[]&&Array(1)[v](function(){p=!1}),u({target:"Array",proto:!0,forced:p},{findIndex:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}}),d(v)},c8ba:function(n,l){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch{typeof window=="object"&&(s=window)}n.exports=s},ca84:function(n,l,s){var u=s("5135"),c=s("fc6a"),d=s("4d64").indexOf,v=s("d012");n.exports=function(p,m){var b=c(p),S=0,T=[],P;for(P in b)!u(v,P)&&u(b,P)&&T.push(P);for(;m.length>S;)u(b,P=m[S++])&&(~d(T,P)||T.push(P));return T}},caad:function(n,l,s){var u=s("23e7"),c=s("4d64").includes,d=s("44d2");u({target:"Array",proto:!0},{includes:function(p){return c(this,p,arguments.length>1?arguments[1]:void 0)}}),d("includes")},cc12:function(n,l,s){var u=s("da84"),c=s("861d"),d=u.document,v=c(d)&&c(d.createElement);n.exports=function(p){return v?d.createElement(p):{}}},ce4e:function(n,l,s){var u=s("da84"),c=s("9112");n.exports=function(d,v){try{c(u,d,v)}catch{u[d]=v}return v}},ce77:function(n,l,s){},d012:function(n,l){n.exports={}},d039:function(n,l){n.exports=function(s){try{return!!s()}catch{return!0}}},d066:function(n,l,s){var u=s("428f"),c=s("da84"),d=function(v){return typeof v=="function"?v:void 0};n.exports=function(v,p){return arguments.length<2?d(u[v])||d(c[v]):u[v]&&u[v][p]||c[v]&&c[v][p]}},d1e7:function(n,l,s){var u={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,d=c&&!u.call({1:2},1);l.f=d?function(p){var m=c(this,p);return!!m&&m.enumerable}:u},d28b:function(n,l,s){var u=s("746f");u("iterator")},d2bb:function(n,l,s){var u=s("825a"),c=s("3bbe");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d=!1,v={},p;try{p=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,p.call(v,[]),d=v instanceof Array}catch{}return function(b,S){return u(b),c(S),d?p.call(b,S):b.__proto__=S,b}}():void 0)},d3b7:function(n,l,s){var u=s("00ee"),c=s("6eeb"),d=s("b041");u||c(Object.prototype,"toString",d,{unsafe:!0})},d44e:function(n,l,s){var u=s("9bf2").f,c=s("5135"),d=s("b622"),v=d("toStringTag");n.exports=function(p,m,b){p&&!c(p=b?p:p.prototype,v)&&u(p,v,{configurable:!0,value:m})}},d81d:function(n,l,s){var u=s("23e7"),c=s("b727").map,d=s("1dde"),v=d("map");u({target:"Array",proto:!0,forced:!v},{map:function(m){return c(this,m,arguments.length>1?arguments[1]:void 0)}})},da84:function(n,l,s){(function(u){var c=function(d){return d&&d.Math==Math&&d};n.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof u=="object"&&u)||function(){return this}()||Function("return this")()}).call(this,s("c8ba"))},dbb4:function(n,l,s){var u=s("23e7"),c=s("83ab"),d=s("56ef"),v=s("fc6a"),p=s("06cf"),m=s("8418");u({target:"Object",stat:!0,sham:!c},{getOwnPropertyDescriptors:function(S){for(var T=v(S),P=p.f,A=d(T),Y={},D=0,W,M;A.length>D;)M=P(T,W=A[D++]),M!==void 0&&m(Y,W,M);return Y}})},ddb0:function(n,l,s){var u=s("da84"),c=s("fdbc"),d=s("e260"),v=s("9112"),p=s("b622"),m=p("iterator"),b=p("toStringTag"),S=d.values;for(var T in c){var P=u[T],A=P&&P.prototype;if(A){if(A[m]!==S)try{v(A,m,S)}catch{A[m]=S}if(A[b]||v(A,b,T),c[T]){for(var Y in d)if(A[Y]!==d[Y])try{v(A,Y,d[Y])}catch{A[Y]=d[Y]}}}}},df75:function(n,l,s){var u=s("ca84"),c=s("7839");n.exports=Object.keys||function(v){return u(v,c)}},e01a:function(n,l,s){var u=s("23e7"),c=s("83ab"),d=s("da84"),v=s("5135"),p=s("861d"),m=s("9bf2").f,b=s("e893"),S=d.Symbol;if(c&&typeof S=="function"&&(!("description"in S.prototype)||S().description!==void 0)){var T={},P=function(){var F=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),B=this instanceof P?new S(F):F===void 0?S():S(F);return F===""&&(T[B]=!0),B};b(P,S);var A=P.prototype=S.prototype;A.constructor=P;var Y=A.toString,D=String(S("test"))=="Symbol(test)",W=/^Symbol\((.*)\)[^)]+$/;m(A,"description",{configurable:!0,get:function(){var F=p(this)?this.valueOf():this,B=Y.call(F);if(v(T,F))return"";var _=D?B.slice(7,-1):B.replace(W,"$1");return _===""?void 0:_}}),u({global:!0,forced:!0},{Symbol:P})}},e163:function(n,l,s){var u=s("5135"),c=s("7b0b"),d=s("f772"),v=s("e177"),p=d("IE_PROTO"),m=Object.prototype;n.exports=v?Object.getPrototypeOf:function(b){return b=c(b),u(b,p)?b[p]:typeof b.constructor=="function"&&b instanceof b.constructor?b.constructor.prototype:b instanceof Object?m:null}},e177:function(n,l,s){var u=s("d039");n.exports=!u(function(){function c(){}return c.prototype.constructor=null,Object.getPrototypeOf(new c)!==c.prototype})},e260:function(n,l,s){var u=s("fc6a"),c=s("44d2"),d=s("3f8c"),v=s("69f3"),p=s("7dd0"),m="Array Iterator",b=v.set,S=v.getterFor(m);n.exports=p(Array,"Array",function(T,P){b(this,{type:m,target:u(T),index:0,kind:P})},function(){var T=S(this),P=T.target,A=T.kind,Y=T.index++;return!P||Y>=P.length?(T.target=void 0,{value:void 0,done:!0}):A=="keys"?{value:Y,done:!1}:A=="values"?{value:P[Y],done:!1}:{value:[Y,P[Y]],done:!1}},"values"),d.Arguments=d.Array,c("keys"),c("values"),c("entries")},e439:function(n,l,s){var u=s("23e7"),c=s("d039"),d=s("fc6a"),v=s("06cf").f,p=s("83ab"),m=c(function(){v(1)}),b=!p||m;u({target:"Object",stat:!0,forced:b,sham:!p},{getOwnPropertyDescriptor:function(T,P){return v(d(T),P)}})},e538:function(n,l,s){var u=s("b622");l.f=u},e893:function(n,l,s){var u=s("5135"),c=s("56ef"),d=s("06cf"),v=s("9bf2");n.exports=function(p,m){for(var b=c(m),S=v.f,T=d.f,P=0;P<b.length;P++){var A=b[P];u(p,A)||S(p,A,T(m,A))}}},e8b5:function(n,l,s){var u=s("c6b6");n.exports=Array.isArray||function(d){return u(d)=="Array"}},e95a:function(n,l,s){var u=s("b622"),c=s("3f8c"),d=u("iterator"),v=Array.prototype;n.exports=function(p){return p!==void 0&&(c.Array===p||v[d]===p)}},f5df:function(n,l,s){var u=s("00ee"),c=s("c6b6"),d=s("b622"),v=d("toStringTag"),p=c(function(){return arguments}())=="Arguments",m=function(b,S){try{return b[S]}catch{}};n.exports=u?c:function(b){var S,T,P;return b===void 0?"Undefined":b===null?"Null":typeof(T=m(S=Object(b),v))=="string"?T:p?c(S):(P=c(S))=="Object"&&typeof S.callee=="function"?"Arguments":P}},f772:function(n,l,s){var u=s("5692"),c=s("90e3"),d=u("keys");n.exports=function(v){return d[v]||(d[v]=c(v))}},fae3:function(n,l,s){if(s.r(l),s.d(l,"Splitpanes",function(){return te}),s.d(l,"Pane",function(){return q}),typeof window!="undefined"){var u=window.document.currentScript;{var c=s("8875");u=c(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:c})}var d=u&&u.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);d&&(s.p=d[1])}s("b64b"),s("a4d3"),s("4de4"),s("e439"),s("159b"),s("dbb4");function v(k,E,x){return E in k?Object.defineProperty(k,E,{value:x,enumerable:!0,configurable:!0,writable:!0}):k[E]=x,k}function p(k,E){var x=Object.keys(k);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(k);E&&(H=H.filter(function(z){return Object.getOwnPropertyDescriptor(k,z).enumerable})),x.push.apply(x,H)}return x}function m(k){for(var E=1;E<arguments.length;E++){var x=arguments[E]!=null?arguments[E]:{};E%2?p(Object(x),!0).forEach(function(H){v(k,H,x[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(x)):p(Object(x)).forEach(function(H){Object.defineProperty(k,H,Object.getOwnPropertyDescriptor(x,H))})}return k}function b(k){if(Array.isArray(k))return k}s("e01a"),s("d3b7"),s("d28b"),s("e260"),s("3ca3"),s("ddb0");function S(k,E){var x=k==null?null:typeof Symbol!="undefined"&&k[Symbol.iterator]||k["@@iterator"];if(x!=null){var H=[],z=!0,G=!1,ue,he;try{for(x=x.call(k);!(z=(ue=x.next()).done)&&(H.push(ue.value),!(E&&H.length===E));z=!0);}catch(je){G=!0,he=je}finally{try{!z&&x.return!=null&&x.return()}finally{if(G)throw he}}return H}}s("fb6a"),s("b0c0"),s("a630");function T(k,E){(E==null||E>k.length)&&(E=k.length);for(var x=0,H=new Array(E);x<E;x++)H[x]=k[x];return H}function P(k,E){if(!!k){if(typeof k=="string")return T(k,E);var x=Object.prototype.toString.call(k).slice(8,-1);if(x==="Object"&&k.constructor&&(x=k.constructor.name),x==="Map"||x==="Set")return Array.from(k);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return T(k,E)}}function A(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y(k,E){return b(k)||S(k,E)||P(k,E)||A()}function D(k,E){if(k==null)return{};var x={},H=Object.keys(k),z,G;for(G=0;G<H.length;G++)z=H[G],!(E.indexOf(z)>=0)&&(x[z]=k[z]);return x}function W(k,E){if(k==null)return{};var x=D(k,E),H,z;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(k);for(z=0;z<G.length;z++)H=G[z],!(E.indexOf(H)>=0)&&(!Object.prototype.propertyIsEnumerable.call(k,H)||(x[H]=k[H]))}return x}function M(k){if(Array.isArray(k))return T(k)}function F(k){if(typeof Symbol!="undefined"&&k[Symbol.iterator]!=null||k["@@iterator"]!=null)return Array.from(k)}function B(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
34
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(k){return M(k)||F(k)||P(k)||B()}s("d81d"),s("7db0"),s("caad"),s("2532"),s("4fad"),s("a434"),s("c740");var ee=s("8bbf"),V=["target"],J={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:function(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:function(){return{container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}},computed:{panesCount:function(){return this.panes.length},indexedPanes:function(){return this.panes.reduce(function(E,x){return(E[x.id]=x)&&E},{})}},methods:{updatePaneComponents:function(){var E=this;this.panes.forEach(function(x){x.update&&x.update(v({},E.horizontal?"height":"width","".concat(E.indexedPanes[x.id].size,"%")))})},bindEvents:function(){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:function(){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:function(E,x){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=x},onMouseMove:function(E){this.touch.mouseDown&&(E.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(E)),this.$emit("resize",this.panes.map(function(x){return{min:x.min,max:x.max,size:x.size}})))},onMouseUp:function(){var E=this;this.touch.dragging&&this.$emit("resized",this.panes.map(function(x){return{min:x.min,max:x.max,size:x.size}})),this.touch.mouseDown=!1,setTimeout(function(){E.touch.dragging=!1,E.unbindEvents()},100)},onSplitterClick:function(E,x){var H=this;"ontouchstart"in window&&(E.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===x?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(E,x),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=x,this.splitterTaps.timeoutId=setTimeout(function(){H.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[x])},onSplitterDblClick:function(E,x){var H=0;this.panes=this.panes.map(function(z,G){return z.size=G===x?z.max:z.min,G!==x&&(H+=z.min),z}),this.panes[x].size-=H,this.$emit("pane-maximize",this.panes[x])},onPaneClick:function(E,x){this.$emit("pane-click",this.indexedPanes[x])},getCurrentMouseDrag:function(E){var x=this.container.getBoundingClientRect(),H="ontouchstart"in window&&E.touches?E.touches[0]:E,z=H.clientX,G=H.clientY;return{x:z-x.left,y:G-x.top}},getCurrentDragPercentage:function(E){E=E[this.horizontal?"y":"x"];var x=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(E=x-E),E*100/x},calculatePanesSize:function(E){var x=this.touch.activeSplitter,H={prevPanesSize:this.sumPrevPanesSize(x),nextPanesSize:this.sumNextPanesSize(x),prevReachedMinPanes:0,nextReachedMinPanes:0},z=0+(this.pushOtherPanes?0:H.prevPanesSize),G=100-(this.pushOtherPanes?0:H.nextPanesSize),ue=Math.max(Math.min(this.getCurrentDragPercentage(E),G),z),he=[x,x+1],je=this.panes[he[0]]||null,We=this.panes[he[1]]||null,Ke=je.max<100&&ue>=je.max+H.prevPanesSize,Xe=We.max<100&&ue<=100-(We.max+this.sumNextPanesSize(x+1));if(Ke||Xe){Ke?(je.size=je.max,We.size=Math.max(100-je.max-H.prevPanesSize-H.nextPanesSize,0)):(je.size=Math.max(100-We.max-H.prevPanesSize-this.sumNextPanesSize(x+1),0),We.size=We.max);return}if(this.pushOtherPanes){var ne=this.doPushOtherPanes(H,ue);if(!ne)return;H=ne.sums,he=ne.panesToResize,je=this.panes[he[0]]||null,We=this.panes[he[1]]||null}je!==null&&(je.size=Math.min(Math.max(ue-H.prevPanesSize-H.prevReachedMinPanes,je.min),je.max)),We!==null&&(We.size=Math.min(Math.max(100-ue-H.nextPanesSize-H.nextReachedMinPanes,We.min),We.max))},doPushOtherPanes:function(E,x){var H=this,z=this.touch.activeSplitter,G=[z,z+1];return x<E.prevPanesSize+this.panes[G[0]].min&&(G[0]=this.findPrevExpandedPane(z).index,E.prevReachedMinPanes=0,G[0]<z&&this.panes.forEach(function(ue,he){he>G[0]&&he<=z&&(ue.size=ue.min,E.prevReachedMinPanes+=ue.min)}),E.prevPanesSize=this.sumPrevPanesSize(G[0]),G[0]===void 0)?(E.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach(function(ue,he){he>0&&he<=z&&(ue.size=ue.min,E.prevReachedMinPanes+=ue.min)}),this.panes[G[1]].size=100-E.prevReachedMinPanes-this.panes[0].min-E.prevPanesSize-E.nextPanesSize,null):x>100-E.nextPanesSize-this.panes[G[1]].min&&(G[1]=this.findNextExpandedPane(z).index,E.nextReachedMinPanes=0,G[1]>z+1&&this.panes.forEach(function(ue,he){he>z&&he<G[1]&&(ue.size=ue.min,E.nextReachedMinPanes+=ue.min)}),E.nextPanesSize=this.sumNextPanesSize(G[1]-1),G[1]===void 0)?(E.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach(function(ue,he){he<H.panesCount-1&&he>=z+1&&(ue.size=ue.min,E.nextReachedMinPanes+=ue.min)}),this.panes[G[0]].size=100-E.prevPanesSize-E.nextReachedMinPanes-this.panes[this.panesCount-1].min-E.nextPanesSize,null):{sums:E,panesToResize:G}},sumPrevPanesSize:function(E){return this.panes.reduce(function(x,H,z){return x+(z<E?H.size:0)},0)},sumNextPanesSize:function(E){return this.panes.reduce(function(x,H,z){return x+(z>E+1?H.size:0)},0)},findPrevExpandedPane:function(E){var x=_(this.panes).reverse().find(function(H){return H.index<E&&H.size>H.min});return x||{}},findNextExpandedPane:function(E){var x=this.panes.find(function(H){return H.index>E+1&&H.size>H.min});return x||{}},checkSplitpanesNodes:function(){var E=Array.from(this.container.children);E.forEach(function(x){var H=x.classList.contains("splitpanes__pane"),z=x.classList.contains("splitpanes__splitter");if(!H&&!z){x.parentNode.removeChild(x),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.");return}})},addSplitter:function(E,x){var H=this,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,G=E-1,ue=document.createElement("div");ue.classList.add("splitpanes__splitter"),z||(ue.onmousedown=function(he){return H.onMouseDown(he,G)},typeof window!="undefined"&&"ontouchstart"in window&&(ue.ontouchstart=function(he){return H.onMouseDown(he,G)}),ue.onclick=function(he){return H.onSplitterClick(he,G+1)}),this.dblClickSplitter&&(ue.ondblclick=function(he){return H.onSplitterDblClick(he,G+1)}),x.parentNode.insertBefore(ue,x)},removeSplitter:function(E){E.onmousedown=void 0,E.onclick=void 0,E.ondblclick=void 0,E.parentNode.removeChild(E)},redoSplitters:function(){var E=this,x=Array.from(this.container.children);x.forEach(function(z){z.className.includes("splitpanes__splitter")&&E.removeSplitter(z)});var H=0;x.forEach(function(z){z.className.includes("splitpanes__pane")&&(!H&&E.firstSplitter?E.addSplitter(H,z,!0):H&&E.addSplitter(H,z),H++)})},requestUpdate:function(E){var x=E.target,H=W(E,V),z=this.indexedPanes[x._.uid];Object.entries(H).forEach(function(G){var ue=Y(G,2),he=ue[0],je=ue[1];return z[he]=je})},onPaneAdd:function(E){var x=this,H=-1;Array.from(E.$el.parentNode.children).some(function(ue){return ue.className.includes("splitpanes__pane")&&H++,ue===E.$el});var z=parseFloat(E.minSize),G=parseFloat(E.maxSize);this.panes.splice(H,0,{id:E._.uid,index:H,min:isNaN(z)?0:z,max:isNaN(G)?100:G,size:E.size===null?null:parseFloat(E.size),givenSize:E.size,update:E.update}),this.panes.forEach(function(ue,he){return ue.index=he}),this.ready&&this.$nextTick(function(){x.redoSplitters(),x.resetPaneSizes({addedPane:x.panes[H]}),x.$emit("pane-add",{index:H,panes:x.panes.map(function(ue){return{min:ue.min,max:ue.max,size:ue.size}})})})},onPaneRemove:function(E){var x=this,H=this.panes.findIndex(function(G){return G.id===E._.uid}),z=this.panes.splice(H,1)[0];this.panes.forEach(function(G,ue){return G.index=ue}),this.$nextTick(function(){x.redoSplitters(),x.resetPaneSizes({removedPane:m(m({},z),{},{index:H})}),x.$emit("pane-remove",{removed:z,panes:x.panes.map(function(G){return{min:G.min,max:G.max,size:G.size}})})})},resetPaneSizes:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};!E.addedPane&&!E.removedPane?this.initialPanesSizing():this.panes.some(function(x){return x.givenSize!==null||x.min||x.max<100})?this.equalizeAfterAddOrRemove(E):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(function(x){return{min:x.min,max:x.max,size:x.size}}))},equalize:function(){var E=100/this.panesCount,x=0,H=[],z=[];this.panes.forEach(function(G){G.size=Math.max(Math.min(E,G.max),G.min),x-=G.size,G.size>=G.max&&H.push(G.id),G.size<=G.min&&z.push(G.id)}),x>.1&&this.readjustSizes(x,H,z)},initialPanesSizing:function(){var E=this;100/this.panesCount;var x=100,H=[],z=[],G=0;this.panes.forEach(function(he){x-=he.size,he.size!==null&&G++,he.size>=he.max&&H.push(he.id),he.size<=he.min&&z.push(he.id)});var ue=100;x>.1&&(this.panes.forEach(function(he){he.size===null&&(he.size=Math.max(Math.min(x/(E.panesCount-G),he.max),he.min)),ue-=he.size}),ue>.1&&this.readjustSizes(x,H,z))},equalizeAfterAddOrRemove:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=E.addedPane;E.removedPane;var H=100/this.panesCount,z=0,G=[],ue=[];x&&x.givenSize!==null&&(H=(100-x.givenSize)/(this.panesCount-1)),this.panes.forEach(function(he){z-=he.size,he.size>=he.max&&G.push(he.id),he.size<=he.min&&ue.push(he.id)}),!(Math.abs(z)<.1)&&(this.panes.forEach(function(he){x&&x.givenSize!==null&&x.id===he.id||(he.size=Math.max(Math.min(H,he.max),he.min)),z-=he.size,he.size>=he.max&&G.push(he.id),he.size<=he.min&&ue.push(he.id)}),z>.1&&this.readjustSizes(z,G,ue))},readjustSizes:function(E,x,H){var z=this,G;E>0?G=E/(this.panesCount-x.length):G=E/(this.panesCount-H.length),this.panes.forEach(function(ue,he){if(E>0&&!x.includes(ue.id)){var je=Math.max(Math.min(ue.size+G,ue.max),ue.min),We=je-ue.size;E-=We,ue.size=je}else if(!H.includes(ue.id)){var Ke=Math.max(Math.min(ue.size+G,ue.max),ue.min),Xe=Ke-ue.size;E-=Xe,ue.size=Ke}ue.update(v({},z.horizontal?"height":"width","".concat(z.indexedPanes[ue.id].size,"%")))}),Math.abs(E)>.1&&this.$nextTick(function(){z.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler:function(){this.updatePaneComponents()}},horizontal:function(){this.updatePaneComponents()},firstSplitter:function(){this.redoSplitters()},dblClickSplitter:function(E){var x=this,H=_(this.container.querySelectorAll(".splitpanes__splitter"));H.forEach(function(z,G){z.ondblclick=E?function(ue){return x.onSplitterDblClick(ue,G)}:void 0})}},beforeUnmount:function(){this.ready=!1},mounted:function(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render:function(){return Object(ee.h)("div",{ref:"container",class:["splitpanes","splitpanes--".concat(this.horizontal?"horizontal":"vertical"),{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}};s("c14f");var te=J;function ie(k,E,x,H,z,G){return Object(ee.openBlock)(),Object(ee.createBlock)("div",{class:"splitpanes__pane",onClick:E[1]||(E[1]=function(ue){return G.onPaneClick(ue,k._.uid)}),style:k.style},[Object(ee.renderSlot)(k.$slots,"default")],4)}s("a9e3");var Q={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:function(){return{style:{}}},mounted:function(){this.onPaneAdd(this)},beforeUnmount:function(){this.onPaneRemove(this)},methods:{update:function(E){this.style=E}},computed:{sizeNumber:function(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber:function(){return parseFloat(this.minSize)},maxSizeNumber:function(){return parseFloat(this.maxSize)}},watch:{sizeNumber:function(E){this.requestUpdate({target:this,size:E})},minSizeNumber:function(E){this.requestUpdate({target:this,min:E})},maxSizeNumber:function(E){this.requestUpdate({target:this,max:E})}}};Q.render=ie;var q=Q},fb6a:function(n,l,s){var u=s("23e7"),c=s("861d"),d=s("e8b5"),v=s("23cb"),p=s("50c4"),m=s("fc6a"),b=s("8418"),S=s("b622"),T=s("1dde"),P=T("slice"),A=S("species"),Y=[].slice,D=Math.max;u({target:"Array",proto:!0,forced:!P},{slice:function(M,F){var B=m(this),_=p(B.length),ee=v(M,_),V=v(F===void 0?_:F,_),J,te,ie;if(d(B)&&(J=B.constructor,typeof J=="function"&&(J===Array||d(J.prototype))?J=void 0:c(J)&&(J=J[A],J===null&&(J=void 0)),J===Array||J===void 0))return Y.call(B,ee,V);for(te=new(J===void 0?Array:J)(D(V-ee,0)),ie=0;ee<V;ee++,ie++)ee in B&&b(te,ie,B[ee]);return te.length=ie,te}})},fc6a:function(n,l,s){var u=s("44ad"),c=s("1d80");n.exports=function(d){return u(c(d))}},fdbc:function(n,l){n.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(n,l,s){var u=s("4930");n.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}})})(Wx);export{Wx as A,sb as B,Vx as C,Zx as D,Jx as E,Ht as F,Tb as G,Tt as H,yd as I,Gx as J,va as a,lu as b,My as c,Bo as d,Dy as e,Lu as f,Yx as g,Vt as h,xt as i,Kx as j,Iy as k,ft as l,Kl as m,uu as n,Mi as o,au as p,Po as q,Lt as r,Qx as s,Xg as t,Xx as u,ky as v,rr as w,Ry as x,$x as y,Ux as z};