You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1902 lines
3.6 MiB
1902 lines
3.6 MiB
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dockerfile-P8izJOAf-CSgLXvLd.js","./simple-mode--HIzBxba-DiPDOxje.js","./factor-Uq0_GFro-BGcx0QMX.js","./nsis-gURxwqa7-BcAS7enX.js","./Design-Dd--99Jl.js","./dark-Bw0DsPx_.js","./Design-RX5q69De.css","./Form-ByDai518.js"])))=>i.map(i=>d[i]);
|
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();const QLe="modulepreload",ULe=function(e,t){return new URL(e,t).href},gte={},Tt=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=ULe(l,r),l in gte)return;gte[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let f=o.length-1;f>=0;f--){const g=o[f];if(g.href===l&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":QLe,u||(h.as="script"),h.crossOrigin="",h.href=l,s&&h.setAttribute("nonce",s),document.head.appendChild(h),u)return new Promise((f,g)=>{h.addEventListener("load",f),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(o=>{for(const a of o||[]){if(a.status!=="rejected")continue;const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a.reason,window.dispatchEvent(s),!s.defaultPrevented)throw a.reason}return t()})};/**
|
|
* @vue/shared v3.5.4
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**//*! #__NO_SIDE_EFFECTS__ */function HQ(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const io={},WC=[],Kd=()=>{},XLe=()=>!1,XM=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),zQ=e=>e.startsWith("onUpdate:"),Ga=Object.assign,ZQ=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},YLe=Object.prototype.hasOwnProperty,Fi=(e,t)=>YLe.call(e,t),er=Array.isArray,HC=e=>h_(e)==="[object Map]",YM=e=>h_(e)==="[object Set]",mte=e=>h_(e)==="[object Date]",Pr=e=>typeof e=="function",Zo=e=>typeof e=="string",Fp=e=>typeof e=="symbol",eo=e=>e!==null&&typeof e=="object",Mye=e=>(eo(e)||Pr(e))&&Pr(e.then)&&Pr(e.catch),Lye=Object.prototype.toString,h_=e=>Lye.call(e),KLe=e=>h_(e).slice(8,-1),Bye=e=>h_(e)==="[object Object]",GQ=e=>Zo(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bk=HQ(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),KM=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},qLe=/-(\w)/g,sh=KM(e=>e.replace(qLe,(t,n)=>n?n.toUpperCase():"")),JLe=/\B([A-Z])/g,E0=KM(e=>e.replace(JLe,"-$1").toLowerCase()),qM=KM(e=>e.charAt(0).toUpperCase()+e.slice(1)),r3=KM(e=>e?`on${qM(e)}`:""),i0=(e,t)=>!Object.is(e,t),i3=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Fye=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},L7=e=>{const t=parseFloat(e);return isNaN(t)?e:t},eBe=e=>{const t=Zo(e)?Number(e):NaN;return isNaN(t)?e:t};let vte;const Nye=()=>vte||(vte=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function En(e){if(er(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Zo(r)?iBe(r):En(r);if(i)for(const o in i)t[o]=i[o]}return t}else if(Zo(e)||eo(e))return e}const tBe=/;(?![^(]*\))/g,nBe=/:([^]+)/,rBe=/\/\*[^]*?\*\//g;function iBe(e){const t={};return e.replace(rBe,"").split(tBe).forEach(n=>{if(n){const r=n.split(nBe);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function De(e){let t="";if(Zo(e))t=e;else if(er(e))for(let n=0;n<e.length;n++){const r=De(e[n]);r&&(t+=r+" ")}else if(eo(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function k2(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Zo(t)&&(e.class=De(t)),n&&(e.style=En(n)),e}const oBe="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",aBe=HQ(oBe);function Vye(e){return!!e||e===""}function sBe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=bO(e[r],t[r]);return n}function bO(e,t){if(e===t)return!0;let n=mte(e),r=mte(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Fp(e),r=Fp(t),n||r)return e===t;if(n=er(e),r=er(t),n||r)return n&&r?sBe(e,t):!1;if(n=eo(e),r=eo(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const a in e){const s=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(s&&!l||!s&&l||!bO(e[a],t[a]))return!1}}return String(e)===String(t)}function jye(e,t){return e.findIndex(n=>bO(n,t))}const Wye=e=>!!(e&&e.__v_isRef===!0),en=e=>Zo(e)?e:e==null?"":er(e)||eo(e)&&(e.toString===Lye||!Pr(e.toString))?Wye(e)?en(e.value):JSON.stringify(e,Hye,2):String(e),Hye=(e,t)=>Wye(t)?Hye(e,t.value):HC(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[wF(r,o)+" =>"]=i,n),{})}:YM(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>wF(n))}:Fp(t)?wF(t):eo(t)&&!er(t)&&!Bye(t)?String(t):t,wF=(e,t="")=>{var n;return Fp(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
* @vue/reactivity v3.5.4
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let kl;class lBe{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=kl,!t&&kl&&(this.index=(kl.scopes||(kl.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=kl;try{return kl=this,t()}finally{kl=n}}}on(){kl=this}off(){kl=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function zye(){return kl}function Zye(e,t=!1){kl&&kl.cleanups.push(e)}let no;const CF=new WeakSet;class Gye{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,kl&&kl.active&&kl.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,CF.has(this)&&(CF.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||(this.flags|=8,this.nextEffect=wk,wk=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,yte(this),Uye(this);const t=no,n=qd;no=this,qd=!0;try{return this.fn()}finally{Xye(this),no=t,qd=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)XQ(t);this.deps=this.depsTail=void 0,yte(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?CF.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){B7(this)&&this.run()}get dirty(){return B7(this)}}let Qye=0,wk;function QQ(){Qye++}function UQ(){if(--Qye>0)return;let e;for(;wk;){let t=wk;for(wk=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Uye(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xye(e){let t,n=e.depsTail;for(let r=n;r;r=r.prevDep)r.version===-1?(r===n&&(n=r.prevDep),XQ(r),uBe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function B7(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&Yye(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function Yye(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===E2))return;e.globalVersion=E2;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!B7(e)){e.flags&=-3;return}const n=no,r=qd;no=e,qd=!0;try{Uye(e);const i=e.fn(e._value);(t.version===0||i0(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{no=n,qd=r,Xye(e),e.flags&=-3}}function XQ(e){const{dep:t,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)XQ(i)}}function uBe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let qd=!0;const Kye=[];function _0(){Kye.push(qd),qd=!1}function T0(){const e=Kye.pop();qd=e===void 0?!0:e}function yte(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=no;no=void 0;try{t()}finally{no=n}}}let E2=0;class JM{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!no||!qd||no===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==no)n=this.activeLink={dep:this,sub:no,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},no.deps?(n.prevDep=no.depsTail,no.depsTail.nextDep=n,no.depsTail=n):no.deps=no.depsTail=n,no.flags&4&&qye(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=no.depsTail,n.nextDep=void 0,no.depsTail.nextDep=n,no.depsTail=n,no.deps===n&&(no.deps=r)}return n}trigger(t){this.version++,E2++,this.notify(t)}notify(t){QQ();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{UQ()}}}function qye(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)qye(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const M$=new WeakMap,vb=Symbol(""),F7=Symbol(""),_2=Symbol("");function ll(e,t,n){if(qd&&no){let r=M$.get(e);r||M$.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new JM),i.track()}}function sg(e,t,n,r,i,o){const a=M$.get(e);if(!a){E2++;return}const s=l=>{l&&l.trigger()};if(QQ(),t==="clear")a.forEach(s);else{const l=er(e),u=l&&GQ(n);if(l&&n==="length"){const c=Number(r);a.forEach((d,h)=>{(h==="length"||h===_2||!Fp(h)&&h>=c)&&s(d)})}else switch(n!==void 0&&s(a.get(n)),u&&s(a.get(_2)),t){case"add":l?u&&s(a.get("length")):(s(a.get(vb)),HC(e)&&s(a.get(F7)));break;case"delete":l||(s(a.get(vb)),HC(e)&&s(a.get(F7)));break;case"set":HC(e)&&s(a.get(vb));break}}UQ()}function cBe(e,t){var n;return(n=M$.get(e))==null?void 0:n.get(t)}function _w(e){const t=qr(e);return t===e?t:(ll(t,"iterate",_2),Qc(e)?t:t.map(Js))}function eL(e){return ll(e=qr(e),"iterate",_2),e}const dBe={__proto__:null,[Symbol.iterator](){return OF(this,Symbol.iterator,Js)},concat(...e){return _w(this).concat(...e.map(t=>er(t)?_w(t):t))},entries(){return OF(this,"entries",e=>(e[1]=Js(e[1]),e))},every(e,t){return $f(this,"every",e,t,void 0,arguments)},filter(e,t){return $f(this,"filter",e,t,n=>n.map(Js),arguments)},find(e,t){return $f(this,"find",e,t,Js,arguments)},findIndex(e,t){return $f(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return $f(this,"findLast",e,t,Js,arguments)},findLastIndex(e,t){return $f(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return $f(this,"forEach",e,t,void 0,arguments)},includes(...e){return xF(this,"includes",e)},indexOf(...e){return xF(this,"indexOf",e)},join(e){return _w(this).join(e)},lastIndexOf(...e){return xF(this,"lastIndexOf",e)},map(e,t){return $f(this,"map",e,t,void 0,arguments)},pop(){return lA(this,"pop")},push(...e){return lA(this,"push",e)},reduce(e,...t){return bte(this,"reduce",e,t)},reduceRight(e,...t){return bte(this,"reduceRight",e,t)},shift(){return lA(this,"shift")},some(e,t){return $f(this,"some",e,t,void 0,arguments)},splice(...e){return lA(this,"splice",e)},toReversed(){return _w(this).toReversed()},toSorted(e){return _w(this).toSorted(e)},toSpliced(...e){return _w(this).toSpliced(...e)},unshift(...e){return lA(this,"unshift",e)},values(){return OF(this,"values",Js)}};function OF(e,t,n){const r=eL(e),i=r[t]();return r!==e&&!Qc(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const hBe=Array.prototype;function $f(e,t,n,r,i,o){const a=eL(e),s=a!==e&&!Qc(e),l=a[t];if(l!==hBe[t]){const d=l.apply(e,o);return s?Js(d):d}let u=n;a!==e&&(s?u=function(d,h){return n.call(this,Js(d),h,e)}:n.length>2&&(u=function(d,h){return n.call(this,d,h,e)}));const c=l.call(a,u,r);return s&&i?i(c):c}function bte(e,t,n,r){const i=eL(e);let o=n;return i!==e&&(Qc(e)?n.length>3&&(o=function(a,s,l){return n.call(this,a,s,l,e)}):o=function(a,s,l){return n.call(this,a,Js(s),l,e)}),i[t](o,...r)}function xF(e,t,n){const r=qr(e);ll(r,"iterate",_2);const i=r[t](...n);return(i===-1||i===!1)&&eU(n[0])?(n[0]=qr(n[0]),r[t](...n)):i}function lA(e,t,n=[]){_0(),QQ();const r=qr(e)[t].apply(e,n);return UQ(),T0(),r}const pBe=HQ("__proto__,__v_isRef,__isVue"),Jye=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Fp));function fBe(e){Fp(e)||(e=String(e));const t=qr(this);return ll(t,"has",e),t.hasOwnProperty(e)}class ebe{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(i?o?kBe:ibe:o?rbe:nbe).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=er(t);if(!i){let l;if(a&&(l=dBe[n]))return l;if(n==="hasOwnProperty")return fBe}const s=Reflect.get(t,n,ni(t)?t:r);return(Fp(n)?Jye.has(n):pBe(n))||(i||ll(t,"get",n),o)?s:ni(s)?a&&GQ(n)?s:s.value:eo(s)?i?p_(s):Br(s):s}}class tbe extends ebe{constructor(t=!1){super(!1,t)}set(t,n,r,i){let o=t[n];if(!this._isShallow){const l=Zb(o);if(!Qc(r)&&!Zb(r)&&(o=qr(o),r=qr(r)),!er(t)&&ni(o)&&!ni(r))return l?!1:(o.value=r,!0)}const a=er(t)&&GQ(n)?Number(n)<t.length:Fi(t,n),s=Reflect.set(t,n,r,ni(t)?t:i);return t===qr(i)&&(a?i0(r,o)&&sg(t,"set",n,r):sg(t,"add",n,r)),s}deleteProperty(t,n){const r=Fi(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&sg(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Fp(n)||!Jye.has(n))&&ll(t,"has",n),r}ownKeys(t){return ll(t,"iterate",er(t)?"length":vb),Reflect.ownKeys(t)}}class gBe extends ebe{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const mBe=new tbe,vBe=new gBe,yBe=new tbe(!0);const YQ=e=>e,tL=e=>Reflect.getPrototypeOf(e);function YP(e,t,n=!1,r=!1){e=e.__v_raw;const i=qr(e),o=qr(t);n||(i0(t,o)&&ll(i,"get",t),ll(i,"get",o));const{has:a}=tL(i),s=r?YQ:n?tU:Js;if(a.call(i,t))return s(e.get(t));if(a.call(i,o))return s(e.get(o));e!==i&&e.get(t)}function KP(e,t=!1){const n=this.__v_raw,r=qr(n),i=qr(e);return t||(i0(e,i)&&ll(r,"has",e),ll(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function qP(e,t=!1){return e=e.__v_raw,!t&&ll(qr(e),"iterate",vb),Reflect.get(e,"size",e)}function wte(e,t=!1){!t&&!Qc(e)&&!Zb(e)&&(e=qr(e));const n=qr(this);return tL(n).has.call(n,e)||(n.add(e),sg(n,"add",e,e)),this}function Cte(e,t,n=!1){!n&&!Qc(t)&&!Zb(t)&&(t=qr(t));const r=qr(this),{has:i,get:o}=tL(r);let a=i.call(r,e);a||(e=qr(e),a=i.call(r,e));const s=o.call(r,e);return r.set(e,t),a?i0(t,s)&&sg(r,"set",e,t):sg(r,"add",e,t),this}function Ote(e){const t=qr(this),{has:n,get:r}=tL(t);let i=n.call(t,e);i||(e=qr(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&sg(t,"delete",e,void 0),o}function xte(){const e=qr(this),t=e.size!==0,n=e.clear();return t&&sg(e,"clear",void 0,void 0),n}function JP(e,t){return function(r,i){const o=this,a=o.__v_raw,s=qr(a),l=t?YQ:e?tU:Js;return!e&&ll(s,"iterate",vb),a.forEach((u,c)=>r.call(i,l(u),l(c),o))}}function eD(e,t,n){return function(...r){const i=this.__v_raw,o=qr(i),a=HC(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=i[e](...r),c=n?YQ:t?tU:Js;return!t&&ll(o,"iterate",l?F7:vb),{next(){const{value:d,done:h}=u.next();return h?{value:d,done:h}:{value:s?[c(d[0]),c(d[1])]:c(d),done:h}},[Symbol.iterator](){return this}}}}function mm(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function bBe(){const e={get(o){return YP(this,o)},get size(){return qP(this)},has:KP,add:wte,set:Cte,delete:Ote,clear:xte,forEach:JP(!1,!1)},t={get(o){return YP(this,o,!1,!0)},get size(){return qP(this)},has:KP,add(o){return wte.call(this,o,!0)},set(o,a){return Cte.call(this,o,a,!0)},delete:Ote,clear:xte,forEach:JP(!1,!0)},n={get(o){return YP(this,o,!0)},get size(){return qP(this,!0)},has(o){return KP.call(this,o,!0)},add:mm("add"),set:mm("set"),delete:mm("delete"),clear:mm("clear"),forEach:JP(!0,!1)},r={get(o){return YP(this,o,!0,!0)},get size(){return qP(this,!0)},has(o){return KP.call(this,o,!0)},add:mm("add"),set:mm("set"),delete:mm("delete"),clear:mm("clear"),forEach:JP(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=eD(o,!1,!1),n[o]=eD(o,!0,!1),t[o]=eD(o,!1,!0),r[o]=eD(o,!0,!0)}),[e,n,t,r]}const[wBe,CBe,OBe,xBe]=bBe();function KQ(e,t){const n=t?e?xBe:OBe:e?CBe:wBe;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Fi(n,i)&&i in r?n:r,i,o)}const SBe={get:KQ(!1,!1)},ABe={get:KQ(!1,!0)},IBe={get:KQ(!0,!1)};const nbe=new WeakMap,rbe=new WeakMap,ibe=new WeakMap,kBe=new WeakMap;function EBe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _Be(e){return e.__v_skip||!Object.isExtensible(e)?0:EBe(KLe(e))}function Br(e){return Zb(e)?e:JQ(e,!1,mBe,SBe,nbe)}function qQ(e){return JQ(e,!1,yBe,ABe,rbe)}function p_(e){return JQ(e,!0,vBe,IBe,ibe)}function JQ(e,t,n,r,i){if(!eo(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=_Be(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function zC(e){return Zb(e)?zC(e.__v_raw):!!(e&&e.__v_isReactive)}function Zb(e){return!!(e&&e.__v_isReadonly)}function Qc(e){return!!(e&&e.__v_isShallow)}function eU(e){return e?!!e.__v_raw:!1}function qr(e){const t=e&&e.__v_raw;return t?qr(t):e}function yb(e){return!Fi(e,"__v_skip")&&Object.isExtensible(e)&&Fye(e,"__v_skip",!0),e}const Js=e=>eo(e)?Br(e):e,tU=e=>eo(e)?p_(e):e;function ni(e){return e?e.__v_isRef===!0:!1}function Re(e){return obe(e,!1)}function so(e){return obe(e,!0)}function obe(e,t){return ni(e)?e:new TBe(e,t)}class TBe{constructor(t,n){this.dep=new JM,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:qr(t),this._value=n?t:Js(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Qc(t)||Zb(t);t=r?t:qr(t),i0(t,n)&&(this._rawValue=t,this._value=r?t:Js(t),this.dep.trigger())}}function uA(e){e.dep.trigger()}function W(e){return ni(e)?e.value:e}const PBe={get:(e,t,n)=>t==="__v_raw"?e:W(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return ni(i)&&!ni(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function abe(e){return zC(e)?e:new Proxy(e,PBe)}class DBe{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new JM,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function L_n(e){return new DBe(e)}function rc(e){const t=er(e)?new Array(e.length):{};for(const n in e)t[n]=sbe(e,n);return t}class RBe{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return cBe(qr(this._object),this._key)}}class $Be{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function yo(e,t,n){return ni(e)?e:Pr(e)?new $Be(e):eo(e)&&arguments.length>1?sbe(e,t,n):Re(e)}function sbe(e,t,n){const r=e[t];return ni(r)?r:new RBe(e,t,n)}class MBe{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new JM(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=E2-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){this.flags|=16,no!==this&&this.dep.notify()}get value(){const t=this.dep.track();return Yye(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function LBe(e,t,n=!1){let r,i;return Pr(e)?r=e:(r=e.get,i=e.set),new MBe(r,i,n)}const tD={},L$=new WeakMap;let Vy;function BBe(e,t=!1,n=Vy){if(n){let r=L$.get(n);r||L$.set(n,r=[]),r.push(e)}}function FBe(e,t,n=io){const{immediate:r,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=n,u=T=>i?T:Qc(T)||i===!1||i===0?Jf(T,1):Jf(T);let c,d,h,f,g=!1,b=!1;if(ni(e)?(d=()=>e.value,g=Qc(e)):zC(e)?(d=()=>u(e),g=!0):er(e)?(b=!0,g=e.some(T=>zC(T)||Qc(T)),d=()=>e.map(T=>{if(ni(T))return T.value;if(zC(T))return u(T);if(Pr(T))return l?l(T,2):T()})):Pr(e)?t?d=l?()=>l(e,2):e:d=()=>{if(h){_0();try{h()}finally{T0()}}const T=Vy;Vy=c;try{return l?l(e,3,[f]):e(f)}finally{Vy=T}}:d=Kd,t&&i){const T=d,S=i===!0?1/0:i;d=()=>Jf(T(),S)}const v=zye(),m=()=>{c.stop(),v&&ZQ(v.effects,c)};if(o)if(t){const T=t;t=(...S)=>{T(...S),m()}}else{const T=d;d=()=>{T(),m()}}let w=b?new Array(e.length).fill(tD):tD;const k=T=>{if(!(!(c.flags&1)||!c.dirty&&!T))if(t){const S=c.run();if(i||g||(b?S.some((I,O)=>i0(I,w[O])):i0(S,w))){h&&h();const I=Vy;Vy=c;try{const O=[S,w===tD?void 0:b&&w[0]===tD?[]:w,f];l?l(t,3,O):t(...O),w=S}finally{Vy=I}}}else c.run()};return s&&s(k),c=new Gye(d),c.scheduler=a?()=>a(k,!1):k,f=T=>BBe(T,!1,c),h=c.onStop=()=>{const T=L$.get(c);if(T){if(l)l(T,4);else for(const S of T)S();L$.delete(c)}},t?r?k(!0):w=c.run():a?a(k.bind(null,!0),!0):c.run(),m.pause=c.pause.bind(c),m.resume=c.resume.bind(c),m.stop=m,m}function Jf(e,t=1/0,n){if(t<=0||!eo(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ni(e))Jf(e.value,t,n);else if(er(e))for(let r=0;r<e.length;r++)Jf(e[r],t,n);else if(YM(e)||HC(e))e.forEach(r=>{Jf(r,t,n)});else if(Bye(e)){for(const r in e)Jf(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Jf(e[r],t,n)}return e}/**
|
|
* @vue/runtime-core v3.5.4
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function f_(e,t,n,r){try{return r?e(...r):e()}catch(i){nL(i,t,n)}}function lh(e,t,n,r){if(Pr(e)){const i=f_(e,t,n,r);return i&&Mye(i)&&i.catch(o=>{nL(o,t,n)}),i}if(er(e)){const i=[];for(let o=0;o<e.length;o++)i.push(lh(e[o],t,n,r));return i}}function nL(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||io;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}s=s.parent}if(o){_0(),f_(o,null,10,[e,l,u]),T0();return}}NBe(e,n,i,r,a)}function NBe(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}let T2=!1,N7=!1;const _l=[];let ep=0;const ZC=[];let tv=null,vC=0;const lbe=Promise.resolve();let nU=null;function mn(e){const t=nU||lbe;return e?t.then(this?e.bind(this):e):t}function VBe(e){let t=T2?ep+1:0,n=_l.length;for(;t<n;){const r=t+n>>>1,i=_l[r],o=P2(i);o<e||o===e&&i.flags&2?t=r+1:n=r}return t}function rU(e){if(!(e.flags&1)){const t=P2(e),n=_l[_l.length-1];!n||!(e.flags&2)&&t>=P2(n)?_l.push(e):_l.splice(VBe(t),0,e),e.flags|=1,ube()}}function ube(){!T2&&!N7&&(N7=!0,nU=lbe.then(dbe))}function jBe(e){er(e)?ZC.push(...e):tv&&e.id===-1?tv.splice(vC+1,0,e):e.flags&1||(ZC.push(e),e.flags|=1),ube()}function Ste(e,t,n=T2?ep+1:0){for(;n<_l.length;n++){const r=_l[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;_l.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&=-2}}}function cbe(e){if(ZC.length){const t=[...new Set(ZC)].sort((n,r)=>P2(n)-P2(r));if(ZC.length=0,tv){tv.push(...t);return}for(tv=t,vC=0;vC<tv.length;vC++){const n=tv[vC];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}tv=null,vC=0}}const P2=e=>e.id==null?e.flags&2?-1:1/0:e.id;function dbe(e){N7=!1,T2=!0;try{for(ep=0;ep<_l.length;ep++){const t=_l[ep];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),f_(t,t.i,t.i?15:14),t.flags&=-2)}}finally{for(;ep<_l.length;ep++){const t=_l[ep];t&&(t.flags&=-2)}ep=0,_l.length=0,cbe(),T2=!1,nU=null,(_l.length||ZC.length)&&dbe()}}let ws=null,rL=null;function B$(e){const t=ws;return ws=e,rL=e&&e.type.__scopeId||null,t}function hbe(e){rL=e}function pbe(){rL=null}function ot(e,t=ws,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Lte(-1);const o=B$(t);let a;try{a=e(...i)}finally{B$(o),r._d&&Lte(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Kn(e,t){if(ws===null)return e;const n=cL(ws),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,a,s,l=io]=t[i];o&&(Pr(o)&&(o={mounted:o,updated:o}),o.deep&&Jf(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function yy(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let l=s.dir[r];l&&(_0(),lh(l,n,8,[e.el,s,e,t]),T0())}}const fbe=Symbol("_vte"),gbe=e=>e.__isTeleport,Ck=e=>e&&(e.disabled||e.disabled===""),WBe=e=>e&&(e.defer||e.defer===""),Ate=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ite=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,V7=(e,t)=>{const n=e&&e.to;return Zo(n)?t?t(n):null:n},HBe={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,u){const{mc:c,pc:d,pbc:h,o:{insert:f,querySelector:g,createText:b,createComment:v}}=u,m=Ck(t.props);let{shapeFlag:w,children:k,dynamicChildren:T}=t;if(e==null){const S=t.el=b(""),I=t.anchor=b("");f(S,n,r),f(I,n,r);const O=(_,A)=>{w&16&&c(k,_,A,i,o,a,s,l)},y=()=>{const _=t.target=V7(t.props,g),A=mbe(_,t,b,f);_&&(a!=="svg"&&Ate(_)?a="svg":a!=="mathml"&&Ite(_)&&(a="mathml"),m||(O(_,A),o3(t)))};m&&(O(n,I),o3(t)),WBe(t.props)?ql(y,o):y()}else{t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,I=t.target=e.target,O=t.targetAnchor=e.targetAnchor,y=Ck(e.props),_=y?n:I,A=y?S:O;if(a==="svg"||Ate(I)?a="svg":(a==="mathml"||Ite(I))&&(a="mathml"),T?(h(e.dynamicChildren,T,_,i,o,a,s),cU(e,t,!0)):l||d(e,t,_,A,i,o,a,s,!1),m)y?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):nD(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const R=t.target=V7(t.props,g);R&&nD(t,R,null,u,0)}else y&&nD(t,I,O,u,1);o3(t)}},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:u,targetAnchor:c,target:d,props:h}=e;if(d&&(i(u),i(c)),o&&i(l),a&16){const f=o||!Ck(h);for(let g=0;g<s.length;g++){const b=s[g];r(b,t,n,f,!!b.dynamicChildren)}}},move:nD,hydrate:zBe};function nD(e,t,n,{o:{insert:r},m:i},o=2){o===0&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:c}=e,d=o===2;if(d&&r(a,t,n),(!d||Ck(c))&&l&16)for(let h=0;h<u.length;h++)i(u[h],t,n,2);d&&r(s,t,n)}function zBe(e,t,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:u,createText:c}},d){const h=t.target=V7(t.props,l);if(h){const f=h._lpa||h.firstChild;if(t.shapeFlag&16)if(Ck(t.props))t.anchor=d(a(e),t,s(e),n,r,i,o),t.targetStart=f,t.targetAnchor=f&&a(f);else{t.anchor=a(e);let g=f;for(;g;){if(g&&g.nodeType===8){if(g.data==="teleport start anchor")t.targetStart=g;else if(g.data==="teleport anchor"){t.targetAnchor=g,h._lpa=t.targetAnchor&&a(t.targetAnchor);break}}g=a(g)}t.targetAnchor||mbe(h,t,c,u),d(f&&a(f),t,h,n,r,i,o)}o3(t)}return t.anchor&&a(t.anchor)}const iU=HBe;function o3(e){const t=e.ctx;if(t&&t.ut){let n=e.targetStart;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}function mbe(e,t,n,r){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[fbe]=o,e&&(r(i,e),r(o,e)),o}const nv=Symbol("_leaveCb"),rD=Symbol("_enterCb");function vbe(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return _n(()=>{e.isMounted=!0}),Mo(()=>{e.isUnmounting=!0}),e}const Ec=[Function,Array],ybe={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ec,onEnter:Ec,onAfterEnter:Ec,onEnterCancelled:Ec,onBeforeLeave:Ec,onLeave:Ec,onAfterLeave:Ec,onLeaveCancelled:Ec,onBeforeAppear:Ec,onAppear:Ec,onAfterAppear:Ec,onAppearCancelled:Ec},bbe=e=>{const t=e.subTree;return t.component?bbe(t.component):t},ZBe={name:"BaseTransition",props:ybe,setup(e,{slots:t}){const n=dr(),r=vbe();return()=>{const i=t.default&&oU(t.default(),!0);if(!i||!i.length)return;const o=wbe(i),a=qr(e),{mode:s}=a;if(r.isLeaving)return SF(o);const l=kte(o);if(!l)return SF(o);let u=D2(l,a,r,n,h=>u=h);l.type!==vs&&Gb(l,u);const c=n.subTree,d=c&&kte(c);if(d&&d.type!==vs&&!Yy(l,d)&&bbe(n).type!==vs){const h=D2(d,a,r,n);if(Gb(d,h),s==="out-in"&&l.type!==vs)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave},SF(o);s==="in-out"&&l.type!==vs&&(h.delayLeave=(f,g,b)=>{const v=Cbe(r,d);v[String(d.key)]=d,f[nv]=()=>{g(),f[nv]=void 0,delete u.delayedLeave},u.delayedLeave=b})}return o}}};function wbe(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==vs){t=n;break}}return t}const GBe=ZBe;function Cbe(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function D2(e,t,n,r,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:f,onAfterLeave:g,onLeaveCancelled:b,onBeforeAppear:v,onAppear:m,onAfterAppear:w,onAppearCancelled:k}=t,T=String(e.key),S=Cbe(n,e),I=(_,A)=>{_&&lh(_,r,9,A)},O=(_,A)=>{const R=A[1];I(_,A),er(_)?_.every(D=>D.length<=1)&&R():_.length<=1&&R()},y={mode:a,persisted:s,beforeEnter(_){let A=l;if(!n.isMounted)if(o)A=v||l;else return;_[nv]&&_[nv](!0);const R=S[T];R&&Yy(e,R)&&R.el[nv]&&R.el[nv](),I(A,[_])},enter(_){let A=u,R=c,D=d;if(!n.isMounted)if(o)A=m||u,R=w||c,D=k||d;else return;let C=!1;const x=_[rD]=P=>{C||(C=!0,P?I(D,[_]):I(R,[_]),y.delayedLeave&&y.delayedLeave(),_[rD]=void 0)};A?O(A,[_,x]):x()},leave(_,A){const R=String(e.key);if(_[rD]&&_[rD](!0),n.isUnmounting)return A();I(h,[_]);let D=!1;const C=_[nv]=x=>{D||(D=!0,A(),x?I(b,[_]):I(g,[_]),_[nv]=void 0,S[R]===e&&delete S[R])};S[R]=e,f?O(f,[_,C]):C()},clone(_){const A=D2(_,t,n,r,i);return i&&i(A),A}};return y}function SF(e){if(iL(e))return e=id(e),e.children=null,e}function kte(e){if(!iL(e))return gbe(e.type)&&e.children?wbe(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Pr(n.default))return n.default()}}function Gb(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Gb(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function oU(e,t=!1,n){let r=[],i=0;for(let o=0;o<e.length;o++){let a=e[o];const s=n==null?a.key:String(n)+String(a.key!=null?a.key:o);a.type===un?(a.patchFlag&128&&i++,r=r.concat(oU(a.children,t,s))):(t||a.type!==vs)&&r.push(s!=null?id(a,{key:s}):a)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function ft(e,t){return Pr(e)?Ga({name:e.name},t,{setup:e}):e}function Obe(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function j7(e,t,n,r,i=!1){if(er(e)){e.forEach((g,b)=>j7(g,t&&(er(t)?t[b]:t),n,r,i));return}if(GC(r)&&!i)return;const o=r.shapeFlag&4?cL(r.component):r.el,a=i?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===io?s.refs={}:s.refs,d=s.setupState,h=qr(d),f=d===io?()=>!1:g=>Fi(h,g);if(u!=null&&u!==l&&(Zo(u)?(c[u]=null,f(u)&&(d[u]=null)):ni(u)&&(u.value=null)),Pr(l))f_(l,s,12,[a,c]);else{const g=Zo(l),b=ni(l);if(g||b){const v=()=>{if(e.f){const m=g?f(l)?d[l]:c[l]:l.value;i?er(m)&&ZQ(m,o):er(m)?m.includes(o)||m.push(o):g?(c[l]=[o],f(l)&&(d[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else g?(c[l]=a,f(l)&&(d[l]=a)):b&&(l.value=a,e.k&&(c[e.k]=a))};a?(v.id=-1,ql(v,n)):v()}}}const GC=e=>!!e.type.__asyncLoader,iL=e=>e.type.__isKeepAlive;function QBe(e,t){Sbe(e,"a",t)}function xbe(e,t){Sbe(e,"da",t)}function Sbe(e,t,n=Ls){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(oL(t,r,n),n){let i=n.parent;for(;i&&i.parent;)iL(i.parent.vnode)&&UBe(r,t,n,i),i=i.parent}}function UBe(e,t,n,r){const i=oL(t,e,r,!0);qp(()=>{ZQ(r[t],i)},n)}function oL(e,t,n=Ls,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{_0();const s=m_(n),l=lh(t,n,e,a);return s(),T0(),l});return r?i.unshift(o):i.push(o),o}}const Tg=e=>(t,n=Ls)=>{(!uL||e==="sp")&&oL(e,(...r)=>t(...r),n)},Kp=Tg("bm"),_n=Tg("m"),Abe=Tg("bu"),C1=Tg("u"),Mo=Tg("bum"),qp=Tg("um"),XBe=Tg("sp"),YBe=Tg("rtg"),KBe=Tg("rtc");function qBe(e,t=Ls){oL("ec",e,t)}const aU="components",JBe="directives";function Ar(e,t){return sU(aU,e,!0,t)||e}const Ibe=Symbol.for("v-ndc");function ei(e){return Zo(e)?sU(aU,e,!1)||e:e||Ibe}function o0(e){return sU(JBe,e)}function sU(e,t,n=!0,r=!1){const i=ws||Ls;if(i){const o=i.type;if(e===aU){const s=F9e(o,!1);if(s&&(s===t||s===sh(t)||s===qM(sh(t))))return o}const a=Ete(i[e]||o[e],t)||Ete(i.appContext[e],t);return!a&&r?o:a}}function Ete(e,t){return e&&(e[t]||e[sh(t)]||e[qM(sh(t))])}function xr(e,t,n,r){let i;const o=n,a=er(e);if(a||Zo(e)){const s=a&&zC(e);let l=!1;s&&(l=!Qc(e),e=eL(e)),i=new Array(e.length);for(let u=0,c=e.length;u<c;u++)i[u]=t(l?Js(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,o)}else if(eo(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,o));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const c=s[l];i[l]=t(e[c],c,l,o)}}else i=[];return i}function a0(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(er(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return e}function rn(e,t,n={},r,i){if(ws.ce||ws.parent&&GC(ws.parent)&&ws.parent.ce)return t!=="default"&&(n.name=t),Ce(),mt(un,null,[xe("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),Ce();const a=o&&kbe(o(n)),s=mt(un,{key:(n.key||a&&a.key||`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function kbe(e){return e.some(t=>Ll(t)?!(t.type===vs||t.type===un&&!kbe(t.children)):!0)?e:null}function e9e(e,t){const n={};for(const r in e)n[r3(r)]=e[r];return n}const W7=e=>e?Gbe(e)?cL(e):W7(e.parent):null,Ok=Ga(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>W7(e.parent),$root:e=>W7(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>lU(e),$forceUpdate:e=>e.f||(e.f=()=>{rU(e.update)}),$nextTick:e=>e.n||(e.n=mn.bind(e.proxy)),$watch:e=>O9e.bind(e)}),AF=(e,t)=>e!==io&&!e.__isScriptSetup&&Fi(e,t),t9e={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const f=a[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(AF(r,t))return a[t]=1,r[t];if(i!==io&&Fi(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&Fi(u,t))return a[t]=3,o[t];if(n!==io&&Fi(n,t))return a[t]=4,n[t];H7&&(a[t]=0)}}const c=Ok[t];let d,h;if(c)return t==="$attrs"&&ll(e.attrs,"get",""),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==io&&Fi(n,t))return a[t]=4,n[t];if(h=l.config.globalProperties,Fi(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return AF(i,t)?(i[t]=n,!0):r!==io&&Fi(r,t)?(r[t]=n,!0):Fi(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},a){let s;return!!n[a]||e!==io&&Fi(e,a)||AF(t,a)||(s=o[0])&&Fi(s,a)||Fi(r,a)||Fi(Ok,a)||Fi(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Fi(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function yd(){return Ebe().slots}function g_(){return Ebe().attrs}function Ebe(){const e=dr();return e.setupContext||(e.setupContext=Ube(e))}function _te(e){return er(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let H7=!0;function n9e(e){const t=lU(e),n=e.proxy,r=e.ctx;H7=!1,t.beforeCreate&&Tte(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:h,beforeUpdate:f,updated:g,activated:b,deactivated:v,beforeDestroy:m,beforeUnmount:w,destroyed:k,unmounted:T,render:S,renderTracked:I,renderTriggered:O,errorCaptured:y,serverPrefetch:_,expose:A,inheritAttrs:R,components:D,directives:C,filters:x}=t;if(u&&r9e(u,r,null),a)for(const L in a){const V=a[L];Pr(V)&&(r[L]=V.bind(n))}if(i){const L=i.call(n,n);eo(L)&&(e.data=Br(L))}if(H7=!0,o)for(const L in o){const V=o[L],H=Pr(V)?V.bind(n,n):Pr(V.get)?V.get.bind(n,n):Kd,Q=!Pr(V)&&Pr(V.set)?V.set.bind(n):Kd,U=Oe({get:H,set:Q});Object.defineProperty(r,L,{enumerable:!0,configurable:!0,get:()=>U.value,set:K=>U.value=K})}if(s)for(const L in s)_be(s[L],r,n,L);if(l){const L=Pr(l)?l.call(n):l;Reflect.ownKeys(L).forEach(V=>{Or(V,L[V])})}c&&Tte(c,e,"c");function $(L,V){er(V)?V.forEach(H=>L(H.bind(n))):V&&L(V.bind(n))}if($(Kp,d),$(_n,h),$(Abe,f),$(C1,g),$(QBe,b),$(xbe,v),$(qBe,y),$(KBe,I),$(YBe,O),$(Mo,w),$(qp,T),$(XBe,_),er(A))if(A.length){const L=e.exposed||(e.exposed={});A.forEach(V=>{Object.defineProperty(L,V,{get:()=>n[V],set:H=>n[V]=H})})}else e.exposed||(e.exposed={});S&&e.render===Kd&&(e.render=S),R!=null&&(e.inheritAttrs=R),D&&(e.components=D),C&&(e.directives=C),_&&Obe(e)}function r9e(e,t,n=Kd){er(e)&&(e=z7(e));for(const r in e){const i=e[r];let o;eo(i)?"default"in i?o=Ht(i.from||r,i.default,!0):o=Ht(i.from||r):o=Ht(i),ni(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function Tte(e,t,n){lh(er(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function _be(e,t,n,r){let i=r.includes(".")?jbe(n,r):()=>n[r];if(Zo(e)){const o=t[e];Pr(o)&&Pt(i,o)}else if(Pr(e))Pt(i,e.bind(n));else if(eo(e))if(er(e))e.forEach(o=>_be(o,t,n,r));else{const o=Pr(e.handler)?e.handler.bind(n):t[e.handler];Pr(o)&&Pt(i,o,e)}}function lU(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>F$(l,u,a,!0)),F$(l,t,a)),eo(t)&&o.set(t,l),l}function F$(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&F$(e,o,n,!0),i&&i.forEach(a=>F$(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=i9e[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const i9e={data:Pte,props:Dte,emits:Dte,methods:QI,computed:QI,beforeCreate:Al,created:Al,beforeMount:Al,mounted:Al,beforeUpdate:Al,updated:Al,beforeDestroy:Al,beforeUnmount:Al,destroyed:Al,unmounted:Al,activated:Al,deactivated:Al,errorCaptured:Al,serverPrefetch:Al,components:QI,directives:QI,watch:a9e,provide:Pte,inject:o9e};function Pte(e,t){return t?e?function(){return Ga(Pr(e)?e.call(this,this):e,Pr(t)?t.call(this,this):t)}:t:e}function o9e(e,t){return QI(z7(e),z7(t))}function z7(e){if(er(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Al(e,t){return e?[...new Set([].concat(e,t))]:t}function QI(e,t){return e?Ga(Object.create(null),e,t):t}function Dte(e,t){return e?er(e)&&er(t)?[...new Set([...e,...t])]:Ga(Object.create(null),_te(e),_te(t??{})):t}function a9e(e,t){if(!e)return t;if(!t)return e;const n=Ga(Object.create(null),e);for(const r in t)n[r]=Al(e[r],t[r]);return n}function Tbe(){return{app:null,config:{isNativeTag:XLe,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 s9e=0;function l9e(e,t){return function(r,i=null){Pr(r)||(r=Ga({},r)),i!=null&&!eo(i)&&(i=null);const o=Tbe(),a=new WeakSet,s=[];let l=!1;const u=o.app={_uid:s9e++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:V9e,get config(){return o.config},set config(c){},use(c,...d){return a.has(c)||(c&&Pr(c.install)?(a.add(c),c.install(u,...d)):Pr(c)&&(a.add(c),c(u,...d))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,d){return d?(o.components[c]=d,u):o.components[c]},directive(c,d){return d?(o.directives[c]=d,u):o.directives[c]},mount(c,d,h){if(!l){const f=u._ceVNode||xe(r,i);return f.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),d&&t?t(f,c):e(f,c,h),l=!0,u._container=c,c.__vue_app__=u,cL(f.component)}},onUnmount(c){s.push(c)},unmount(){l&&(lh(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return o.provides[c]=d,u},runWithContext(c){const d=QC;QC=u;try{return c()}finally{QC=d}}};return u}}let QC=null;function Or(e,t){if(Ls){let n=Ls.provides;const r=Ls.parent&&Ls.parent.provides;r===n&&(n=Ls.provides=Object.create(r)),n[e]=t}}function Ht(e,t,n=!1){const r=Ls||ws;if(r||QC){const i=QC?QC._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Pr(t)?t.call(r&&r.proxy):t}}const Pbe={},Dbe=()=>Object.create(Pbe),Rbe=e=>Object.getPrototypeOf(e)===Pbe;function u9e(e,t,n,r=!1){const i={},o=Dbe();e.propsDefaults=Object.create(null),$be(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:qQ(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function c9e(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=qr(i),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let h=c[d];if(sL(e.emitsOptions,h))continue;const f=t[h];if(l)if(Fi(o,h))f!==o[h]&&(o[h]=f,u=!0);else{const g=sh(h);i[g]=Z7(l,s,g,f,e,!1)}else f!==o[h]&&(o[h]=f,u=!0)}}}else{$be(e,t,i,o)&&(u=!0);let c;for(const d in s)(!t||!Fi(t,d)&&((c=E0(d))===d||!Fi(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=Z7(l,s,d,void 0,e,!0)):delete i[d]);if(o!==s)for(const d in o)(!t||!Fi(t,d))&&(delete o[d],u=!0)}u&&sg(e.attrs,"set","")}function $be(e,t,n,r){const[i,o]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(bk(l))continue;const u=t[l];let c;i&&Fi(i,c=sh(l))?!o||!o.includes(c)?n[c]=u:(s||(s={}))[c]=u:sL(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,a=!0)}if(o){const l=qr(n),u=s||io;for(let c=0;c<o.length;c++){const d=o[c];n[d]=Z7(i,l,d,u[d],e,!Fi(u,d))}}return a}function Z7(e,t,n,r,i,o){const a=e[n];if(a!=null){const s=Fi(a,"default");if(s&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Pr(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=m_(i);r=u[n]=l.call(null,t),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}a[0]&&(o&&!s?r=!1:a[1]&&(r===""||r===E0(n))&&(r=!0))}return r}const d9e=new WeakMap;function Mbe(e,t,n=!1){const r=n?d9e:t.propsCache,i=r.get(e);if(i)return i;const o=e.props,a={},s=[];let l=!1;if(!Pr(e)){const c=d=>{l=!0;const[h,f]=Mbe(d,t,!0);Ga(a,h),f&&s.push(...f)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return eo(e)&&r.set(e,WC),WC;if(er(o))for(let c=0;c<o.length;c++){const d=sh(o[c]);Rte(d)&&(a[d]=io)}else if(o)for(const c in o){const d=sh(c);if(Rte(d)){const h=o[c],f=a[d]=er(h)||Pr(h)?{type:h}:Ga({},h),g=f.type;let b=!1,v=!0;if(er(g))for(let m=0;m<g.length;++m){const w=g[m],k=Pr(w)&&w.name;if(k==="Boolean"){b=!0;break}else k==="String"&&(v=!1)}else b=Pr(g)&&g.name==="Boolean";f[0]=b,f[1]=v,(b||Fi(f,"default"))&&s.push(d)}}const u=[a,s];return eo(e)&&r.set(e,u),u}function Rte(e){return e[0]!=="$"&&!bk(e)}const Lbe=e=>e[0]==="_"||e==="$stable",uU=e=>er(e)?e.map(sp):[sp(e)],h9e=(e,t,n)=>{if(t._n)return t;const r=ot((...i)=>uU(t(...i)),n);return r._c=!1,r},Bbe=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Lbe(i))continue;const o=e[i];if(Pr(o))t[i]=h9e(i,o,r);else if(o!=null){const a=uU(o);t[i]=()=>a}}},Fbe=(e,t)=>{const n=uU(t);e.slots.default=()=>n},Nbe=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},p9e=(e,t,n)=>{const r=e.slots=Dbe();if(e.vnode.shapeFlag&32){const i=t._;i?(Nbe(r,t,n),n&&Fye(r,"_",i,!0)):Bbe(t,r)}else t&&Fbe(e,t)},f9e=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=io;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:Nbe(i,t,n):(o=!t.$stable,Bbe(t,i)),a=t}else t&&(Fbe(e,t),a={default:1});if(o)for(const s in i)!Lbe(s)&&a[s]==null&&delete i[s]},ql=_9e;function g9e(e){return m9e(e)}function m9e(e,t){const n=Nye();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:h,setScopeId:f=Kd,insertStaticContent:g}=e,b=(de,ae,be,ie=null,ce=null,pe=null,X=void 0,Z=null,Y=!!ae.dynamicChildren)=>{if(de===ae)return;de&&!Yy(de,ae)&&(ie=q(de),K(de,ce,pe,!0),de=null),ae.patchFlag===-2&&(Y=!1,ae.dynamicChildren=null);const{type:se,ref:fe,shapeFlag:me}=ae;switch(se){case Ox:v(de,ae,be,ie);break;case vs:m(de,ae,be,ie);break;case a3:de==null&&w(ae,be,ie,X);break;case un:D(de,ae,be,ie,ce,pe,X,Z,Y);break;default:me&1?S(de,ae,be,ie,ce,pe,X,Z,Y):me&6?C(de,ae,be,ie,ce,pe,X,Z,Y):(me&64||me&128)&&se.process(de,ae,be,ie,ce,pe,X,Z,Y,le)}fe!=null&&ce&&j7(fe,de&&de.ref,pe,ae||de,!ae)},v=(de,ae,be,ie)=>{if(de==null)r(ae.el=s(ae.children),be,ie);else{const ce=ae.el=de.el;ae.children!==de.children&&u(ce,ae.children)}},m=(de,ae,be,ie)=>{de==null?r(ae.el=l(ae.children||""),be,ie):ae.el=de.el},w=(de,ae,be,ie)=>{[de.el,de.anchor]=g(de.children,ae,be,ie,de.el,de.anchor)},k=({el:de,anchor:ae},be,ie)=>{let ce;for(;de&&de!==ae;)ce=h(de),r(de,be,ie),de=ce;r(ae,be,ie)},T=({el:de,anchor:ae})=>{let be;for(;de&&de!==ae;)be=h(de),i(de),de=be;i(ae)},S=(de,ae,be,ie,ce,pe,X,Z,Y)=>{ae.type==="svg"?X="svg":ae.type==="math"&&(X="mathml"),de==null?I(ae,be,ie,ce,pe,X,Z,Y):_(de,ae,ce,pe,X,Z,Y)},I=(de,ae,be,ie,ce,pe,X,Z)=>{let Y,se;const{props:fe,shapeFlag:me,transition:Ae,dirs:Be}=de;if(Y=de.el=a(de.type,pe,fe&&fe.is,fe),me&8?c(Y,de.children):me&16&&y(de.children,Y,null,ie,ce,IF(de,pe),X,Z),Be&&yy(de,null,ie,"created"),O(Y,de,de.scopeId,X,ie),fe){for(const Qe in fe)Qe!=="value"&&!bk(Qe)&&o(Y,Qe,null,fe[Qe],pe,ie);"value"in fe&&o(Y,"value",null,fe.value,pe),(se=fe.onVnodeBeforeMount)&&Gh(se,ie,de)}Be&&yy(de,null,ie,"beforeMount");const Ye=v9e(ce,Ae);Ye&&Ae.beforeEnter(Y),r(Y,ae,be),((se=fe&&fe.onVnodeMounted)||Ye||Be)&&ql(()=>{se&&Gh(se,ie,de),Ye&&Ae.enter(Y),Be&&yy(de,null,ie,"mounted")},ce)},O=(de,ae,be,ie,ce)=>{if(be&&f(de,be),ie)for(let pe=0;pe<ie.length;pe++)f(de,ie[pe]);if(ce){let pe=ce.subTree;if(ae===pe||Hbe(pe.type)&&(pe.ssContent===ae||pe.ssFallback===ae)){const X=ce.vnode;O(de,X,X.scopeId,X.slotScopeIds,ce.parent)}}},y=(de,ae,be,ie,ce,pe,X,Z,Y=0)=>{for(let se=Y;se<de.length;se++){const fe=de[se]=Z?rv(de[se]):sp(de[se]);b(null,fe,ae,be,ie,ce,pe,X,Z)}},_=(de,ae,be,ie,ce,pe,X)=>{const Z=ae.el=de.el;let{patchFlag:Y,dynamicChildren:se,dirs:fe}=ae;Y|=de.patchFlag&16;const me=de.props||io,Ae=ae.props||io;let Be;if(be&&by(be,!1),(Be=Ae.onVnodeBeforeUpdate)&&Gh(Be,be,ae,de),fe&&yy(ae,de,be,"beforeUpdate"),be&&by(be,!0),(me.innerHTML&&Ae.innerHTML==null||me.textContent&&Ae.textContent==null)&&c(Z,""),se?A(de.dynamicChildren,se,Z,be,ie,IF(ae,ce),pe):X||V(de,ae,Z,null,be,ie,IF(ae,ce),pe,!1),Y>0){if(Y&16)R(Z,me,Ae,be,ce);else if(Y&2&&me.class!==Ae.class&&o(Z,"class",null,Ae.class,ce),Y&4&&o(Z,"style",me.style,Ae.style,ce),Y&8){const Ye=ae.dynamicProps;for(let Qe=0;Qe<Ye.length;Qe++){const nt=Ye[Qe],st=me[nt],Le=Ae[nt];(Le!==st||nt==="value")&&o(Z,nt,st,Le,ce,be)}}Y&1&&de.children!==ae.children&&c(Z,ae.children)}else!X&&se==null&&R(Z,me,Ae,be,ce);((Be=Ae.onVnodeUpdated)||fe)&&ql(()=>{Be&&Gh(Be,be,ae,de),fe&&yy(ae,de,be,"updated")},ie)},A=(de,ae,be,ie,ce,pe,X)=>{for(let Z=0;Z<ae.length;Z++){const Y=de[Z],se=ae[Z],fe=Y.el&&(Y.type===un||!Yy(Y,se)||Y.shapeFlag&70)?d(Y.el):be;b(Y,se,fe,null,ie,ce,pe,X,!0)}},R=(de,ae,be,ie,ce)=>{if(ae!==be){if(ae!==io)for(const pe in ae)!bk(pe)&&!(pe in be)&&o(de,pe,ae[pe],null,ce,ie);for(const pe in be){if(bk(pe))continue;const X=be[pe],Z=ae[pe];X!==Z&&pe!=="value"&&o(de,pe,Z,X,ce,ie)}"value"in be&&o(de,"value",ae.value,be.value,ce)}},D=(de,ae,be,ie,ce,pe,X,Z,Y)=>{const se=ae.el=de?de.el:s(""),fe=ae.anchor=de?de.anchor:s("");let{patchFlag:me,dynamicChildren:Ae,slotScopeIds:Be}=ae;Be&&(Z=Z?Z.concat(Be):Be),de==null?(r(se,be,ie),r(fe,be,ie),y(ae.children||[],be,fe,ce,pe,X,Z,Y)):me>0&&me&64&&Ae&&de.dynamicChildren?(A(de.dynamicChildren,Ae,be,ce,pe,X,Z),(ae.key!=null||ce&&ae===ce.subTree)&&cU(de,ae,!0)):V(de,ae,be,fe,ce,pe,X,Z,Y)},C=(de,ae,be,ie,ce,pe,X,Z,Y)=>{ae.slotScopeIds=Z,de==null?ae.shapeFlag&512?ce.ctx.activate(ae,be,ie,X,Y):x(ae,be,ie,ce,pe,X,Y):P(de,ae,Y)},x=(de,ae,be,ie,ce,pe,X)=>{const Z=de.component=$9e(de,ie,ce);if(iL(de)&&(Z.ctx.renderer=le),M9e(Z,!1,X),Z.asyncDep){if(ce&&ce.registerDep(Z,$,X),!de.el){const Y=Z.subTree=xe(vs);m(null,Y,ae,be)}}else $(Z,de,ae,be,ce,pe,X)},P=(de,ae,be)=>{const ie=ae.component=de.component;if(k9e(de,ae,be))if(ie.asyncDep&&!ie.asyncResolved){L(ie,ae,be);return}else ie.next=ae,ie.update();else ae.el=de.el,ie.vnode=ae},$=(de,ae,be,ie,ce,pe,X)=>{const Z=()=>{if(de.isMounted){let{next:me,bu:Ae,u:Be,parent:Ye,vnode:Qe}=de;{const je=Vbe(de);if(je){me&&(me.el=Qe.el,L(de,me,X)),je.asyncDep.then(()=>{de.isUnmounted||Z()});return}}let nt=me,st;by(de,!1),me?(me.el=Qe.el,L(de,me,X)):me=Qe,Ae&&i3(Ae),(st=me.props&&me.props.onVnodeBeforeUpdate)&&Gh(st,Ye,me,Qe),by(de,!0);const Le=kF(de),Me=de.subTree;de.subTree=Le,b(Me,Le,d(Me.el),q(Me),de,ce,pe),me.el=Le.el,nt===null&&E9e(de,Le.el),Be&&ql(Be,ce),(st=me.props&&me.props.onVnodeUpdated)&&ql(()=>Gh(st,Ye,me,Qe),ce)}else{let me;const{el:Ae,props:Be}=ae,{bm:Ye,m:Qe,parent:nt,root:st,type:Le}=de,Me=GC(ae);if(by(de,!1),Ye&&i3(Ye),!Me&&(me=Be&&Be.onVnodeBeforeMount)&&Gh(me,nt,ae),by(de,!0),Ae&&ve){const je=()=>{de.subTree=kF(de),ve(Ae,de.subTree,de,ce,null)};Me&&Le.__asyncHydrate?Le.__asyncHydrate(Ae,de,je):je()}else{st.ce&&st.ce._injectChildStyle(Le);const je=de.subTree=kF(de);b(null,je,be,ie,de,ce,pe),ae.el=je.el}if(Qe&&ql(Qe,ce),!Me&&(me=Be&&Be.onVnodeMounted)){const je=ae;ql(()=>Gh(me,nt,je),ce)}(ae.shapeFlag&256||nt&&GC(nt.vnode)&&nt.vnode.shapeFlag&256)&&de.a&&ql(de.a,ce),de.isMounted=!0,ae=be=ie=null}};de.scope.on();const Y=de.effect=new Gye(Z);de.scope.off();const se=de.update=Y.run.bind(Y),fe=de.job=Y.runIfDirty.bind(Y);fe.i=de,fe.id=de.uid,Y.scheduler=()=>rU(fe),by(de,!0),se()},L=(de,ae,be)=>{ae.component=de;const ie=de.vnode.props;de.vnode=ae,de.next=null,c9e(de,ae.props,ie,be),f9e(de,ae.children,be),_0(),Ste(de),T0()},V=(de,ae,be,ie,ce,pe,X,Z,Y=!1)=>{const se=de&&de.children,fe=de?de.shapeFlag:0,me=ae.children,{patchFlag:Ae,shapeFlag:Be}=ae;if(Ae>0){if(Ae&128){Q(se,me,be,ie,ce,pe,X,Z,Y);return}else if(Ae&256){H(se,me,be,ie,ce,pe,X,Z,Y);return}}Be&8?(fe&16&&N(se,ce,pe),me!==se&&c(be,me)):fe&16?Be&16?Q(se,me,be,ie,ce,pe,X,Z,Y):N(se,ce,pe,!0):(fe&8&&c(be,""),Be&16&&y(me,be,ie,ce,pe,X,Z,Y))},H=(de,ae,be,ie,ce,pe,X,Z,Y)=>{de=de||WC,ae=ae||WC;const se=de.length,fe=ae.length,me=Math.min(se,fe);let Ae;for(Ae=0;Ae<me;Ae++){const Be=ae[Ae]=Y?rv(ae[Ae]):sp(ae[Ae]);b(de[Ae],Be,be,null,ce,pe,X,Z,Y)}se>fe?N(de,ce,pe,!0,!1,me):y(ae,be,ie,ce,pe,X,Z,Y,me)},Q=(de,ae,be,ie,ce,pe,X,Z,Y)=>{let se=0;const fe=ae.length;let me=de.length-1,Ae=fe-1;for(;se<=me&&se<=Ae;){const Be=de[se],Ye=ae[se]=Y?rv(ae[se]):sp(ae[se]);if(Yy(Be,Ye))b(Be,Ye,be,null,ce,pe,X,Z,Y);else break;se++}for(;se<=me&&se<=Ae;){const Be=de[me],Ye=ae[Ae]=Y?rv(ae[Ae]):sp(ae[Ae]);if(Yy(Be,Ye))b(Be,Ye,be,null,ce,pe,X,Z,Y);else break;me--,Ae--}if(se>me){if(se<=Ae){const Be=Ae+1,Ye=Be<fe?ae[Be].el:ie;for(;se<=Ae;)b(null,ae[se]=Y?rv(ae[se]):sp(ae[se]),be,Ye,ce,pe,X,Z,Y),se++}}else if(se>Ae)for(;se<=me;)K(de[se],ce,pe,!0),se++;else{const Be=se,Ye=se,Qe=new Map;for(se=Ye;se<=Ae;se++){const bt=ae[se]=Y?rv(ae[se]):sp(ae[se]);bt.key!=null&&Qe.set(bt.key,se)}let nt,st=0;const Le=Ae-Ye+1;let Me=!1,je=0;const Ue=new Array(Le);for(se=0;se<Le;se++)Ue[se]=0;for(se=Be;se<=me;se++){const bt=de[se];if(st>=Le){K(bt,ce,pe,!0);continue}let At;if(bt.key!=null)At=Qe.get(bt.key);else for(nt=Ye;nt<=Ae;nt++)if(Ue[nt-Ye]===0&&Yy(bt,ae[nt])){At=nt;break}At===void 0?K(bt,ce,pe,!0):(Ue[At-Ye]=se+1,At>=je?je=At:Me=!0,b(bt,ae[At],be,null,ce,pe,X,Z,Y),st++)}const Te=Me?y9e(Ue):WC;for(nt=Te.length-1,se=Le-1;se>=0;se--){const bt=Ye+se,At=ae[bt],ht=bt+1<fe?ae[bt+1].el:ie;Ue[se]===0?b(null,At,be,ht,ce,pe,X,Z,Y):Me&&(nt<0||se!==Te[nt]?U(At,be,ht,2):nt--)}}},U=(de,ae,be,ie,ce=null)=>{const{el:pe,type:X,transition:Z,children:Y,shapeFlag:se}=de;if(se&6){U(de.component.subTree,ae,be,ie);return}if(se&128){de.suspense.move(ae,be,ie);return}if(se&64){X.move(de,ae,be,le);return}if(X===un){r(pe,ae,be);for(let me=0;me<Y.length;me++)U(Y[me],ae,be,ie);r(de.anchor,ae,be);return}if(X===a3){k(de,ae,be);return}if(ie!==2&&se&1&&Z)if(ie===0)Z.beforeEnter(pe),r(pe,ae,be),ql(()=>Z.enter(pe),ce);else{const{leave:me,delayLeave:Ae,afterLeave:Be}=Z,Ye=()=>r(pe,ae,be),Qe=()=>{me(pe,()=>{Ye(),Be&&Be()})};Ae?Ae(pe,Ye,Qe):Qe()}else r(pe,ae,be)},K=(de,ae,be,ie=!1,ce=!1)=>{const{type:pe,props:X,ref:Z,children:Y,dynamicChildren:se,shapeFlag:fe,patchFlag:me,dirs:Ae,cacheIndex:Be}=de;if(me===-2&&(ce=!1),Z!=null&&j7(Z,null,be,de,!0),Be!=null&&(ae.renderCache[Be]=void 0),fe&256){ae.ctx.deactivate(de);return}const Ye=fe&1&&Ae,Qe=!GC(de);let nt;if(Qe&&(nt=X&&X.onVnodeBeforeUnmount)&&Gh(nt,ae,de),fe&6)ee(de.component,be,ie);else{if(fe&128){de.suspense.unmount(be,ie);return}Ye&&yy(de,null,ae,"beforeUnmount"),fe&64?de.type.remove(de,ae,be,le,ie):se&&!se.hasOnce&&(pe!==un||me>0&&me&64)?N(se,ae,be,!1,!0):(pe===un&&me&384||!ce&&fe&16)&&N(Y,ae,be),ie&&J(de)}(Qe&&(nt=X&&X.onVnodeUnmounted)||Ye)&&ql(()=>{nt&&Gh(nt,ae,de),Ye&&yy(de,null,ae,"unmounted")},be)},J=de=>{const{type:ae,el:be,anchor:ie,transition:ce}=de;if(ae===un){ue(be,ie);return}if(ae===a3){T(de);return}const pe=()=>{i(be),ce&&!ce.persisted&&ce.afterLeave&&ce.afterLeave()};if(de.shapeFlag&1&&ce&&!ce.persisted){const{leave:X,delayLeave:Z}=ce,Y=()=>X(be,pe);Z?Z(de.el,pe,Y):Y()}else pe()},ue=(de,ae)=>{let be;for(;de!==ae;)be=h(de),i(de),de=be;i(ae)},ee=(de,ae,be)=>{const{bum:ie,scope:ce,job:pe,subTree:X,um:Z,m:Y,a:se}=de;$te(Y),$te(se),ie&&i3(ie),ce.stop(),pe&&(pe.flags|=8,K(X,de,ae,be)),Z&&ql(Z,ae),ql(()=>{de.isUnmounted=!0},ae),ae&&ae.pendingBranch&&!ae.isUnmounted&&de.asyncDep&&!de.asyncResolved&&de.suspenseId===ae.pendingId&&(ae.deps--,ae.deps===0&&ae.resolve())},N=(de,ae,be,ie=!1,ce=!1,pe=0)=>{for(let X=pe;X<de.length;X++)K(de[X],ae,be,ie,ce)},q=de=>{if(de.shapeFlag&6)return q(de.component.subTree);if(de.shapeFlag&128)return de.suspense.next();const ae=h(de.anchor||de.el),be=ae&&ae[fbe];return be?h(be):ae};let G=!1;const ne=(de,ae,be)=>{de==null?ae._vnode&&K(ae._vnode,null,null,!0):b(ae._vnode||null,de,ae,null,null,null,be),ae._vnode=de,G||(G=!0,Ste(),cbe(),G=!1)},le={p:b,um:K,m:U,r:J,mt:x,mc:y,pc:V,pbc:A,n:q,o:e};let oe,ve;return{render:ne,hydrate:oe,createApp:l9e(ne,oe)}}function IF({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function by({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function v9e(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function cU(e,t,n=!1){const r=e.children,i=t.children;if(er(r)&&er(i))for(let o=0;o<r.length;o++){const a=r[o];let s=i[o];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[o]=rv(i[o]),s.el=a.el),!n&&s.patchFlag!==-2&&cU(a,s)),s.type===Ox&&(s.el=a.el)}}function y9e(e){const t=e.slice(),n=[0];let r,i,o,a,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<u?o=s+1:a=s;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function Vbe(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vbe(t)}function $te(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const b9e=Symbol.for("v-scx"),w9e=()=>Ht(b9e);function Uc(e,t){return aL(e,null,t)}function C9e(e,t){return aL(e,null,{flush:"post"})}function Pt(e,t,n){return aL(e,t,n)}function aL(e,t,n=io){const{immediate:r,deep:i,flush:o,once:a}=n,s=Ga({},n);let l;if(uL)if(o==="sync"){const h=w9e();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!t||r)s.once=!0;else return{stop:Kd,resume:Kd,pause:Kd};const u=Ls;s.call=(h,f,g)=>lh(h,u,f,g);let c=!1;o==="post"?s.scheduler=h=>{ql(h,u&&u.suspense)}:o!=="sync"&&(c=!0,s.scheduler=(h,f)=>{f?h():rU(h)}),s.augmentJob=h=>{t&&(h.flags|=4),c&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const d=FBe(e,t,s);return l&&l.push(d),d}function O9e(e,t,n){const r=this.proxy,i=Zo(e)?e.includes(".")?jbe(r,e):()=>r[e]:e.bind(r,r);let o;Pr(t)?o=t:(o=t.handler,n=t);const a=m_(this),s=aL(i,o.bind(r),n);return a(),s}function jbe(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const x9e=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${sh(t)}Modifiers`]||e[`${E0(t)}Modifiers`];function S9e(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||io;let i=n;const o=t.startsWith("update:"),a=o&&x9e(r,t.slice(7));a&&(a.trim&&(i=n.map(c=>Zo(c)?c.trim():c)),a.number&&(i=n.map(L7)));let s,l=r[s=r3(t)]||r[s=r3(sh(t))];!l&&o&&(l=r[s=r3(E0(t))]),l&&lh(l,e,6,i);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,lh(u,e,6,i)}}function Wbe(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let a={},s=!1;if(!Pr(e)){const l=u=>{const c=Wbe(u,t,!0);c&&(s=!0,Ga(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(eo(e)&&r.set(e,null),null):(er(o)?o.forEach(l=>a[l]=null):Ga(a,o),eo(e)&&r.set(e,a),a)}function sL(e,t){return!e||!XM(t)?!1:(t=t.slice(2).replace(/Once$/,""),Fi(e,t[0].toLowerCase()+t.slice(1))||Fi(e,E0(t))||Fi(e,t))}function kF(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:a,attrs:s,emit:l,render:u,renderCache:c,props:d,data:h,setupState:f,ctx:g,inheritAttrs:b}=e,v=B$(e);let m,w;try{if(n.shapeFlag&4){const T=i||r,S=T;m=sp(u.call(S,T,c,d,f,h,g)),w=s}else{const T=t;m=sp(T.length>1?T(d,{attrs:s,slots:a,emit:l}):T(d,null)),w=t.props?s:A9e(s)}}catch(T){xk.length=0,nL(T,e,1),m=xe(vs)}let k=m;if(w&&b!==!1){const T=Object.keys(w),{shapeFlag:S}=k;T.length&&S&7&&(o&&T.some(zQ)&&(w=I9e(w,o)),k=id(k,w,!1,!0))}return n.dirs&&(k=id(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&Gb(k,n.transition),m=k,B$(v),m}const A9e=e=>{let t;for(const n in e)(n==="class"||n==="style"||XM(n))&&((t||(t={}))[n]=e[n]);return t},I9e=(e,t)=>{const n={};for(const r in e)(!zQ(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function k9e(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Mte(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const h=c[d];if(a[h]!==r[h]&&!sL(u,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?Mte(r,a,u):!0:!!a;return!1}function Mte(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!sL(n,o))return!0}return!1}function E9e({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Hbe=e=>e.__isSuspense;function _9e(e,t){t&&t.pendingBranch?er(e)?t.effects.push(...e):t.effects.push(e):jBe(e)}const un=Symbol.for("v-fgt"),Ox=Symbol.for("v-txt"),vs=Symbol.for("v-cmt"),a3=Symbol.for("v-stc"),xk=[];let Yu=null;function Ce(e=!1){xk.push(Yu=e?null:[])}function T9e(){xk.pop(),Yu=xk[xk.length-1]||null}let R2=1;function Lte(e){R2+=e,e<0&&Yu&&(Yu.hasOnce=!0)}function zbe(e){return e.dynamicChildren=R2>0?Yu||WC:null,T9e(),R2>0&&Yu&&Yu.push(e),e}function We(e,t,n,r,i,o){return zbe(at(e,t,n,r,i,o,!0))}function mt(e,t,n,r,i){return zbe(xe(e,t,n,r,i,!0))}function Ll(e){return e?e.__v_isVNode===!0:!1}function Yy(e,t){return e.type===t.type&&e.key===t.key}const Zbe=({key:e})=>e??null,s3=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Zo(e)||ni(e)||Pr(e)?{i:ws,r:e,k:t,f:!!n}:e:null);function at(e,t=null,n=null,r=0,i=null,o=e===un?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Zbe(t),ref:t&&s3(t),scopeId:rL,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ws};return s?(dU(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Zo(n)?8:16),R2>0&&!a&&Yu&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Yu.push(l),l}const xe=P9e;function P9e(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===Ibe)&&(e=vs),Ll(e)){const s=id(e,t,!0);return n&&dU(s,n),R2>0&&!o&&Yu&&(s.shapeFlag&6?Yu[Yu.indexOf(e)]=s:Yu.push(s)),s.patchFlag=-2,s}if(N9e(e)&&(e=e.__vccOpts),t){t=lL(t);let{class:s,style:l}=t;s&&!Zo(s)&&(t.class=De(s)),eo(l)&&(eU(l)&&!er(l)&&(l=Ga({},l)),t.style=En(l))}const a=Zo(e)?1:Hbe(e)?128:gbe(e)?64:eo(e)?4:Pr(e)?2:0;return at(e,t,n,r,i,a,o,!0)}function lL(e){return e?eU(e)||Rbe(e)?Ga({},e):e:null}function id(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?jr(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Zbe(u),ref:t&&t.ref?n&&o?er(o)?o.concat(s3(t)):[o,s3(t)]:s3(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==un?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&id(e.ssContent),ssFallback:e.ssFallback&&id(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Gb(c,l.clone(c)),c}function gr(e=" ",t=0){return xe(Ox,null,e,t)}function xt(e="",t=!1){return t?(Ce(),mt(vs,null,e)):xe(vs,null,e)}function sp(e){return e==null||typeof e=="boolean"?xe(vs):er(e)?xe(un,null,e.slice()):typeof e=="object"?rv(e):xe(Ox,null,String(e))}function rv(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:id(e)}function dU(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(er(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),dU(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Rbe(t)?t._ctx=ws:i===3&&ws&&(ws.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Pr(t)?(t={default:t,_ctx:ws},n=32):(t=String(t),r&64?(n=16,t=[gr(t)]):n=8);e.children=t,e.shapeFlag|=n}function jr(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=De([t.class,r.class]));else if(i==="style")t.style=En([t.style,r.style]);else if(XM(i)){const o=t[i],a=r[i];a&&o!==a&&!(er(o)&&o.includes(a))&&(t[i]=o?[].concat(o,a):a)}else i!==""&&(t[i]=r[i])}return t}function Gh(e,t,n,r=null){lh(e,t,7,[n,r])}const D9e=Tbe();let R9e=0;function $9e(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||D9e,o={uid:R9e++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new lBe(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Mbe(r,i),emitsOptions:Wbe(r,i),emit:null,emitted:null,propsDefaults:io,inheritAttrs:r.inheritAttrs,ctx:io,data:io,props:io,attrs:io,slots:io,refs:io,setupState:io,setupContext:null,suspense:n,suspenseId:n?n.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 o.ctx={_:o},o.root=t?t.root:o,o.emit=S9e.bind(null,o),e.ce&&e.ce(o),o}let Ls=null;const dr=()=>Ls||ws;let N$,G7;{const e=Nye(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};N$=t("__VUE_INSTANCE_SETTERS__",n=>Ls=n),G7=t("__VUE_SSR_SETTERS__",n=>uL=n)}const m_=e=>{const t=Ls;return N$(e),e.scope.on(),()=>{e.scope.off(),N$(t)}},Bte=()=>{Ls&&Ls.scope.off(),N$(null)};function Gbe(e){return e.vnode.shapeFlag&4}let uL=!1;function M9e(e,t=!1,n=!1){t&&G7(t);const{props:r,children:i}=e.vnode,o=Gbe(e);u9e(e,r,o,t),p9e(e,i,n);const a=o?L9e(e,t):void 0;return t&&G7(!1),a}function L9e(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,t9e);const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?Ube(e):null,o=m_(e);_0();const a=f_(r,e,0,[e.props,i]);if(T0(),o(),Mye(a)){if(GC(e)||Obe(e),a.then(Bte,Bte),t)return a.then(s=>{Fte(e,s,t)}).catch(s=>{nL(s,e,0)});e.asyncDep=a}else Fte(e,a,t)}else Qbe(e,t)}function Fte(e,t,n){Pr(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:eo(t)&&(e.setupState=abe(t)),Qbe(e,n)}let Nte;function Qbe(e,t,n){const r=e.type;if(!e.render){if(!t&&Nte&&!r.render){const i=r.template||lU(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Ga(Ga({isCustomElement:o,delimiters:s},a),l);r.render=Nte(i,u)}}e.render=r.render||Kd}{const i=m_(e);_0();try{n9e(e)}finally{T0(),i()}}}const B9e={get(e,t){return ll(e,"get",""),e[t]}};function Ube(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,B9e),slots:e.slots,emit:e.emit,expose:t}}function cL(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(abe(yb(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ok)return Ok[n](e)},has(t,n){return n in t||n in Ok}})):e.proxy}function F9e(e,t=!0){return Pr(e)?e.displayName||e.name:e.name||t&&e.__name}function N9e(e){return Pr(e)&&"__vccOpts"in e}const Oe=(e,t)=>LBe(e,t,uL);function Yn(e,t,n){const r=arguments.length;return r===2?eo(t)&&!er(t)?Ll(t)?xe(e,null,[t]):xe(e,t):xe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ll(n)&&(n=[n]),xe(e,t,n))}const V9e="3.5.4",j9e=Kd;/**
|
|
* @vue/runtime-dom v3.5.4
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let Q7;const Vte=typeof window<"u"&&window.trustedTypes;if(Vte)try{Q7=Vte.createPolicy("vue",{createHTML:e=>e})}catch{}const Xbe=Q7?e=>Q7.createHTML(e):e=>e,W9e="http://www.w3.org/2000/svg",H9e="http://www.w3.org/1998/Math/MathML",Zf=typeof document<"u"?document:null,jte=Zf&&Zf.createElement("template"),z9e={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?Zf.createElementNS(W9e,e):t==="mathml"?Zf.createElementNS(H9e,e):n?Zf.createElement(e,{is:n}):Zf.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Zf.createTextNode(e),createComment:e=>Zf.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Zf.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{jte.innerHTML=Xbe(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=jte.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},vm="transition",cA="animation",wO=Symbol("_vtc"),Ybe={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},Kbe=Ga({},ybe,Ybe),Z9e=e=>(e.displayName="Transition",e.props=Kbe,e),ic=Z9e((e,{slots:t})=>Yn(GBe,qbe(e),t)),wy=(e,t=[])=>{er(e)?e.forEach(n=>n(...t)):e&&e(...t)},Wte=e=>e?er(e)?e.some(t=>t.length>1):e.length>1:!1;function qbe(e){const t={};for(const D in e)D in Ybe||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=G9e(i),b=g&&g[0],v=g&&g[1],{onBeforeEnter:m,onEnter:w,onEnterCancelled:k,onLeave:T,onLeaveCancelled:S,onBeforeAppear:I=m,onAppear:O=w,onAppearCancelled:y=k}=t,_=(D,C,x)=>{Ym(D,C?c:s),Ym(D,C?u:a),x&&x()},A=(D,C)=>{D._isLeaving=!1,Ym(D,d),Ym(D,f),Ym(D,h),C&&C()},R=D=>(C,x)=>{const P=D?O:w,$=()=>_(C,D,x);wy(P,[C,$]),Hte(()=>{Ym(C,D?l:o),Wf(C,D?c:s),Wte(P)||zte(C,r,b,$)})};return Ga(t,{onBeforeEnter(D){wy(m,[D]),Wf(D,o),Wf(D,a)},onBeforeAppear(D){wy(I,[D]),Wf(D,l),Wf(D,u)},onEnter:R(!1),onAppear:R(!0),onLeave(D,C){D._isLeaving=!0;const x=()=>A(D,C);Wf(D,d),Wf(D,h),e1e(),Hte(()=>{D._isLeaving&&(Ym(D,d),Wf(D,f),Wte(T)||zte(D,r,v,x))}),wy(T,[D,x])},onEnterCancelled(D){_(D,!1),wy(k,[D])},onAppearCancelled(D){_(D,!0),wy(y,[D])},onLeaveCancelled(D){A(D),wy(S,[D])}})}function G9e(e){if(e==null)return null;if(eo(e))return[EF(e.enter),EF(e.leave)];{const t=EF(e);return[t,t]}}function EF(e){return eBe(e)}function Wf(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[wO]||(e[wO]=new Set)).add(t)}function Ym(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[wO];n&&(n.delete(t),n.size||(e[wO]=void 0))}function Hte(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Q9e=0;function zte(e,t,n,r){const i=e._endId=++Q9e,o=()=>{i===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=Jbe(e,t);if(!a)return r();const u=a+"end";let c=0;const d=()=>{e.removeEventListener(u,h),o()},h=f=>{f.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},s+1),e.addEventListener(u,h)}function Jbe(e,t){const n=window.getComputedStyle(e),r=g=>(n[g]||"").split(", "),i=r(`${vm}Delay`),o=r(`${vm}Duration`),a=Zte(i,o),s=r(`${cA}Delay`),l=r(`${cA}Duration`),u=Zte(s,l);let c=null,d=0,h=0;t===vm?a>0&&(c=vm,d=a,h=o.length):t===cA?u>0&&(c=cA,d=u,h=l.length):(d=Math.max(a,u),c=d>0?a>u?vm:cA:null,h=c?c===vm?o.length:l.length:0);const f=c===vm&&/\b(transform|all)(,|$)/.test(r(`${vm}Property`).toString());return{type:c,timeout:d,propCount:h,hasTransform:f}}function Zte(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Gte(n)+Gte(e[r])))}function Gte(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function e1e(){return document.body.offsetHeight}function U9e(e,t,n){const r=e[wO];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const V$=Symbol("_vod"),t1e=Symbol("_vsh"),Ni={beforeMount(e,{value:t},{transition:n}){e[V$]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):dA(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),dA(e,!0),r.enter(e)):r.leave(e,()=>{dA(e,!1)}):dA(e,t))},beforeUnmount(e,{value:t}){dA(e,t)}};function dA(e,t){e.style.display=t?e[V$]:"none",e[t1e]=!t}const n1e=Symbol("");function B_n(e){const t=dr();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>j$(o,i))},r=()=>{const i=e(t.proxy);t.ce?j$(t.ce,i):U7(t.subTree,i),n(i)};Kp(()=>{C9e(r)}),_n(()=>{const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),qp(()=>i.disconnect())})}function U7(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{U7(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)j$(e.el,t);else if(e.type===un)e.children.forEach(n=>U7(n,t));else if(e.type===a3){let{el:n,anchor:r}=e;for(;n&&(j$(n,t),n!==r);)n=n.nextSibling}}function j$(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t)n.setProperty(`--${i}`,t[i]),r+=`--${i}: ${t[i]};`;n[n1e]=r}}const X9e=/(^|;)\s*display\s*:/;function Y9e(e,t,n){const r=e.style,i=Zo(n);let o=!1;if(n&&!i){if(t)if(Zo(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&l3(r,s,"")}else for(const a in t)n[a]==null&&l3(r,a,"");for(const a in n)a==="display"&&(o=!0),l3(r,a,n[a])}else if(i){if(t!==n){const a=r[n1e];a&&(n+=";"+a),r.cssText=n,o=X9e.test(n)}}else t&&e.removeAttribute("style");V$ in e&&(e[V$]=o?r.display:"",e[t1e]&&(r.display="none"))}const Qte=/\s*!important$/;function l3(e,t,n){if(er(n))n.forEach(r=>l3(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=K9e(e,t);Qte.test(n)?e.setProperty(E0(r),n.replace(Qte,""),"important"):e[r]=n}}const Ute=["Webkit","Moz","ms"],_F={};function K9e(e,t){const n=_F[t];if(n)return n;let r=sh(t);if(r!=="filter"&&r in e)return _F[t]=r;r=qM(r);for(let i=0;i<Ute.length;i++){const o=Ute[i]+r;if(o in e)return _F[t]=o}return t}const Xte="http://www.w3.org/1999/xlink";function Yte(e,t,n,r,i,o=aBe(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Xte,t.slice(6,t.length)):e.setAttributeNS(Xte,t,n):n==null||o&&!Vye(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Fp(n)?String(n):n)}function q9e(e,t,n,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Xbe(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,s=n==null?e.type==="checkbox"?"on":"":String(n);(a!==s||!("_value"in e))&&(e.value=s),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Vye(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(t)}function pv(e,t,n,r){e.addEventListener(t,n,r)}function J9e(e,t,n,r){e.removeEventListener(t,n,r)}const Kte=Symbol("_vei");function eFe(e,t,n,r,i=null){const o=e[Kte]||(e[Kte]={}),a=o[t];if(r&&a)a.value=r;else{const[s,l]=tFe(t);if(r){const u=o[t]=iFe(r,i);pv(e,s,u,l)}else a&&(J9e(e,s,a,l),o[t]=void 0)}}const qte=/(?:Once|Passive|Capture)$/;function tFe(e){let t;if(qte.test(e)){t={};let r;for(;r=e.match(qte);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):E0(e.slice(2)),t]}let TF=0;const nFe=Promise.resolve(),rFe=()=>TF||(nFe.then(()=>TF=0),TF=Date.now());function iFe(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;lh(oFe(r,n.value),t,5,[r])};return n.value=e,n.attached=rFe(),n}function oFe(e,t){if(er(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Jte=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,aFe=(e,t,n,r,i,o)=>{const a=i==="svg";t==="class"?U9e(e,r,a):t==="style"?Y9e(e,n,r):XM(t)?zQ(t)||eFe(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):sFe(e,t,r,a))?(q9e(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Yte(e,t,r,a,o,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Yte(e,t,r,a))};function sFe(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Jte(t)&&Pr(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Jte(t)&&Zo(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Zo(n)))}const r1e=new WeakMap,i1e=new WeakMap,W$=Symbol("_moveCb"),ene=Symbol("_enterCb"),lFe=e=>(delete e.props.mode,e),uFe=lFe({name:"TransitionGroup",props:Ga({},Kbe,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=dr(),r=vbe();let i,o;return C1(()=>{if(!i.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!pFe(i[0].el,n.vnode.el,a))return;i.forEach(cFe),i.forEach(dFe);const s=i.filter(hFe);e1e(),s.forEach(l=>{const u=l.el,c=u.style;Wf(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[W$]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",d),u[W$]=null,Ym(u,a))};u.addEventListener("transitionend",d)})}),()=>{const a=qr(e),s=qbe(a);let l=a.tag||un;if(i=[],o)for(let u=0;u<o.length;u++){const c=o[u];c.el&&c.el instanceof Element&&(i.push(c),Gb(c,D2(c,s,r,n)),r1e.set(c,c.el.getBoundingClientRect()))}o=t.default?oU(t.default()):[];for(let u=0;u<o.length;u++){const c=o[u];c.key!=null&&Gb(c,D2(c,s,r,n))}return xe(l,null,o)}}}),hU=uFe;function cFe(e){const t=e.el;t[W$]&&t[W$](),t[ene]&&t[ene]()}function dFe(e){i1e.set(e,e.el.getBoundingClientRect())}function hFe(e){const t=r1e.get(e),n=i1e.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${i}px)`,o.transitionDuration="0s",e}}function pFe(e,t,n){const r=e.cloneNode(),i=e[wO];i&&i.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:a}=Jbe(r);return o.removeChild(r),a}const CO=e=>{const t=e.props["onUpdate:modelValue"]||!1;return er(t)?n=>i3(t,n):t};function fFe(e){e.target.composing=!0}function tne(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const lg=Symbol("_assign"),o1e={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[lg]=CO(i);const o=r||i.props&&i.props.type==="number";pv(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),o&&(s=L7(s)),e[lg](s)}),n&&pv(e,"change",()=>{e.value=e.value.trim()}),t||(pv(e,"compositionstart",fFe),pv(e,"compositionend",tne),pv(e,"change",tne))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},a){if(e[lg]=CO(a),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?L7(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l))}},H$={deep:!0,created(e,t,n){e[lg]=CO(n),pv(e,"change",()=>{const r=e._modelValue,i=s1e(e),o=e.checked,a=e[lg];if(er(r)){const s=jye(r,i),l=s!==-1;if(o&&!l)a(r.concat(i));else if(!o&&l){const u=[...r];u.splice(s,1),a(u)}}else if(YM(r)){const s=new Set(r);o?s.add(i):s.delete(i),a(s)}else a(l1e(e,o))})},mounted:nne,beforeUpdate(e,t,n){e[lg]=CO(n),nne(e,t,n)}};function nne(e,{value:t,oldValue:n},r){e._modelValue=t;let i;er(t)?i=jye(t,r.props.value)>-1:YM(t)?i=t.has(r.props.value):i=bO(t,l1e(e,!0)),e.checked!==i&&(e.checked=i)}const a1e={created(e,{value:t},n){e.checked=bO(t,n.props.value),e[lg]=CO(n),pv(e,"change",()=>{e[lg](s1e(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[lg]=CO(r),t!==n&&(e.checked=bO(t,r.props.value))}};function s1e(e){return"_value"in e?e._value:e.value}function l1e(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gFe=["ctrl","shift","alt","meta"],mFe={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>gFe.some(n=>e[`${n}Key`]&&!t.includes(n))},rr=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...o)=>{for(let a=0;a<t.length;a++){const s=mFe[t[a]];if(s&&s(i,t))return}return e(i,...o)})},vFe={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Zi=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const o=E0(i.key);if(t.some(a=>a===o||vFe[a]===o))return e(i)})},yFe=Ga({patchProp:aFe},z9e);let rne;function u1e(){return rne||(rne=g9e(yFe))}const ine=(...e)=>{u1e().render(...e)},c1e=(...e)=>{const t=u1e().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=wFe(r);if(!i)return;const o=t._component;!Pr(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=n(i,!1,bFe(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t};function bFe(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wFe(e){return Zo(e)?document.querySelector(e):e}var CFe=Object.defineProperty,OFe=(e,t,n)=>t in e?CFe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ps=(e,t,n)=>(OFe(e,typeof t!="symbol"?t+"":t,n),n),pU=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},it=(e,t,n)=>(pU(e,t,"read from private field"),n?n.call(e):t.get(e)),Yr=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},fr=(e,t,n,r)=>(pU(e,t,"write to private field"),t.set(e,n),n),X7=(e,t,n,r)=>({set _(i){fr(e,t,i)},get _(){return it(e,t,r)}}),Jn=(e,t,n)=>(pU(e,t,"access private method"),n);function d1e(e,t){return function(){return e.apply(t,arguments)}}const{toString:xFe}=Object.prototype,{getPrototypeOf:fU}=Object,dL=(e=>t=>{const n=xFe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Jp=e=>(e=e.toLowerCase(),t=>dL(t)===e),hL=e=>t=>typeof t===e,{isArray:xx}=Array,$2=hL("undefined");function SFe(e){return e!==null&&!$2(e)&&e.constructor!==null&&!$2(e.constructor)&&Xc(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const h1e=Jp("ArrayBuffer");function AFe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&h1e(e.buffer),t}const IFe=hL("string"),Xc=hL("function"),p1e=hL("number"),pL=e=>e!==null&&typeof e=="object",kFe=e=>e===!0||e===!1,u3=e=>{if(dL(e)!=="object")return!1;const t=fU(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},EFe=Jp("Date"),_Fe=Jp("File"),TFe=Jp("Blob"),PFe=Jp("FileList"),DFe=e=>pL(e)&&Xc(e.pipe),RFe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xc(e.append)&&((t=dL(e))==="formdata"||t==="object"&&Xc(e.toString)&&e.toString()==="[object FormData]"))},$Fe=Jp("URLSearchParams"),MFe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function v_(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),xx(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function f1e(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const g1e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,m1e=e=>!$2(e)&&e!==g1e;function Y7(){const{caseless:e}=m1e(this)&&this||{},t={},n=(r,i)=>{const o=e&&f1e(t,i)||i;u3(t[o])&&u3(r)?t[o]=Y7(t[o],r):u3(r)?t[o]=Y7({},r):xx(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&v_(arguments[r],n);return t}const LFe=(e,t,n,{allOwnKeys:r}={})=>(v_(t,(i,o)=>{n&&Xc(i)?e[o]=d1e(i,n):e[o]=i},{allOwnKeys:r}),e),BFe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),FFe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},NFe=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&fU(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},VFe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},jFe=e=>{if(!e)return null;if(xx(e))return e;let t=e.length;if(!p1e(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},WFe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fU(Uint8Array)),HFe=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},zFe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ZFe=Jp("HTMLFormElement"),GFe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),one=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),QFe=Jp("RegExp"),v1e=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};v_(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},UFe=e=>{v1e(e,(t,n)=>{if(Xc(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xc(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},XFe=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return xx(e)?r(e):r(String(e).split(t)),n},YFe=()=>{},KFe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),PF="abcdefghijklmnopqrstuvwxyz",ane="0123456789",y1e={DIGIT:ane,ALPHA:PF,ALPHA_DIGIT:PF+PF.toUpperCase()+ane},qFe=(e=16,t=y1e.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function JFe(e){return!!(e&&Xc(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const eNe=e=>{const t=new Array(10),n=(r,i)=>{if(pL(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=xx(r)?[]:{};return v_(r,(a,s)=>{const l=n(a,i+1);!$2(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},tNe=Jp("AsyncFunction"),nNe=e=>e&&(pL(e)||Xc(e))&&Xc(e.then)&&Xc(e.catch),qt={isArray:xx,isArrayBuffer:h1e,isBuffer:SFe,isFormData:RFe,isArrayBufferView:AFe,isString:IFe,isNumber:p1e,isBoolean:kFe,isObject:pL,isPlainObject:u3,isUndefined:$2,isDate:EFe,isFile:_Fe,isBlob:TFe,isRegExp:QFe,isFunction:Xc,isStream:DFe,isURLSearchParams:$Fe,isTypedArray:WFe,isFileList:PFe,forEach:v_,merge:Y7,extend:LFe,trim:MFe,stripBOM:BFe,inherits:FFe,toFlatObject:NFe,kindOf:dL,kindOfTest:Jp,endsWith:VFe,toArray:jFe,forEachEntry:HFe,matchAll:zFe,isHTMLForm:ZFe,hasOwnProperty:one,hasOwnProp:one,reduceDescriptors:v1e,freezeMethods:UFe,toObjectSet:XFe,toCamelCase:GFe,noop:YFe,toFiniteNumber:KFe,findKey:f1e,global:g1e,isContextDefined:m1e,ALPHABET:y1e,generateString:qFe,isSpecCompliantForm:JFe,toJSONObject:eNe,isAsyncFn:tNe,isThenable:nNe};function Ci(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}qt.inherits(Ci,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const b1e=Ci.prototype,w1e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{w1e[e]={value:e}});Object.defineProperties(Ci,w1e);Object.defineProperty(b1e,"isAxiosError",{value:!0});Ci.from=(e,t,n,r,i,o)=>{const a=Object.create(b1e);return qt.toFlatObject(e,a,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),Ci.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const rNe=null;function K7(e){return qt.isPlainObject(e)||qt.isArray(e)}function C1e(e){return qt.endsWith(e,"[]")?e.slice(0,-2):e}function sne(e,t,n){return e?e.concat(t).map(function(r,i){return r=C1e(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function iNe(e){return qt.isArray(e)&&!e.some(K7)}const oNe=qt.toFlatObject(qt,{},null,function(e){return/^is[A-Z]/.test(e)});function fL(e,t,n){if(!qt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=qt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,g){return!qt.isUndefined(g[f])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&qt.isSpecCompliantForm(t);if(!qt.isFunction(i))throw new TypeError("visitor must be a function");function l(f){if(f===null)return"";if(qt.isDate(f))return f.toISOString();if(!s&&qt.isBlob(f))throw new Ci("Blob is not supported. Use a Buffer instead.");return qt.isArrayBuffer(f)||qt.isTypedArray(f)?s&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,g,b){let v=f;if(f&&!b&&typeof f=="object"){if(qt.endsWith(g,"{}"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if(qt.isArray(f)&&iNe(f)||(qt.isFileList(f)||qt.endsWith(g,"[]"))&&(v=qt.toArray(f)))return g=C1e(g),v.forEach(function(m,w){!(qt.isUndefined(m)||m===null)&&t.append(a===!0?sne([g],w,o):a===null?g:g+"[]",l(m))}),!1}return K7(f)?!0:(t.append(sne(b,g,o),l(f)),!1)}const c=[],d=Object.assign(oNe,{defaultVisitor:u,convertValue:l,isVisitable:K7});function h(f,g){if(!qt.isUndefined(f)){if(c.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));c.push(f),qt.forEach(f,function(b,v){(!(qt.isUndefined(b)||b===null)&&i.call(t,b,qt.isString(v)?v.trim():v,g,d))===!0&&h(b,g?g.concat(v):[v])}),c.pop()}}if(!qt.isObject(e))throw new TypeError("data must be an object");return h(e),t}function lne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function gU(e,t){this._pairs=[],e&&fL(e,this,t)}const O1e=gU.prototype;O1e.append=function(e,t){this._pairs.push([e,t])};O1e.toString=function(e){const t=e?function(n){return e.call(this,n,lne)}:lne;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function aNe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function x1e(e,t,n){if(!t)return e;const r=n&&n.encode||aNe,i=n&&n.serialize;let o;if(i?o=i(t,n):o=qt.isURLSearchParams(t)?t.toString():new gU(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class sNe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){qt.forEach(this.handlers,function(n){n!==null&&t(n)})}}const une=sNe,S1e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lNe=typeof URLSearchParams<"u"?URLSearchParams:gU,uNe=typeof FormData<"u"?FormData:null,cNe=typeof Blob<"u"?Blob:null,dNe={isBrowser:!0,classes:{URLSearchParams:lNe,FormData:uNe,Blob:cNe},protocols:["http","https","file","blob","url","data"]},A1e=typeof window<"u"&&typeof document<"u",hNe=(e=>A1e&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),pNe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fNe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:A1e,hasStandardBrowserEnv:hNe,hasStandardBrowserWebWorkerEnv:pNe},Symbol.toStringTag,{value:"Module"})),vp={...fNe,...dNe};function gNe(e,t){return fL(e,new vp.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return vp.isNode&&qt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function mNe(e){return qt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vNe(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function I1e(e){function t(n,r,i,o){let a=n[o++];const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&qt.isArray(i)?i.length:a,l?(qt.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!qt.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&qt.isArray(i[a])&&(i[a]=vNe(i[a])),!s)}if(qt.isFormData(e)&&qt.isFunction(e.entries)){const n={};return qt.forEachEntry(e,(r,i)=>{t(mNe(r),i,n,0)}),n}return null}function yNe(e,t,n){if(qt.isString(e))try{return(t||JSON.parse)(e),qt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const mU={transitional:S1e,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=qt.isObject(e);if(i&&qt.isHTMLForm(e)&&(e=new FormData(e)),qt.isFormData(e))return r&&r?JSON.stringify(I1e(e)):e;if(qt.isArrayBuffer(e)||qt.isBuffer(e)||qt.isStream(e)||qt.isFile(e)||qt.isBlob(e))return e;if(qt.isArrayBufferView(e))return e.buffer;if(qt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return gNe(e,this.formSerializer).toString();if((o=qt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return fL(o?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),yNe(e)):e}],transformResponse:[function(e){const t=this.transitional||mU.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(e&&qt.isString(e)&&(n&&!this.responseType||r)){const i=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?Ci.from(o,Ci.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vp.classes.FormData,Blob:vp.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qt.forEach(["delete","get","head","post","put","patch"],e=>{mU.headers[e]={}});const vU=mU,bNe=qt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),wNe=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&bNe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},cne=Symbol("internals");function hA(e){return e&&String(e).trim().toLowerCase()}function c3(e){return e===!1||e==null?e:qt.isArray(e)?e.map(c3):String(e)}function CNe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const ONe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function DF(e,t,n,r,i){if(qt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!qt.isString(t)){if(qt.isString(r))return t.indexOf(r)!==-1;if(qt.isRegExp(r))return r.test(t)}}function xNe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function SNe(e,t){const n=qt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class gL{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=hA(l);if(!c)throw new Error("header name must be a non-empty string");const d=qt.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=c3(s))}const a=(s,l)=>qt.forEach(s,(u,c)=>o(u,c,l));return qt.isPlainObject(t)||t instanceof this.constructor?a(t,n):qt.isString(t)&&(t=t.trim())&&!ONe(t)?a(wNe(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=hA(t),t){const r=qt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return CNe(i);if(qt.isFunction(n))return n.call(this,i,r);if(qt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=hA(t),t){const r=qt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||DF(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=hA(a),a){const s=qt.findKey(r,a);s&&(!n||DF(r,r[s],s,n))&&(delete r[s],i=!0)}}return qt.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||DF(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return qt.forEach(this,(i,o)=>{const a=qt.findKey(r,o);if(a){n[a]=c3(i),delete n[o];return}const s=t?xNe(o):String(o).trim();s!==o&&delete n[o],n[s]=c3(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return qt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&qt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const n=(this[cne]=this[cne]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=hA(o);n[a]||(SNe(r,o),n[a]=!0)}return qt.isArray(t)?t.forEach(i):i(t),this}}gL.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);qt.reduceDescriptors(gL.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});qt.freezeMethods(gL);const ug=gL;function RF(e,t){const n=this||vU,r=t||n,i=ug.from(r.headers);let o=r.data;return qt.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function k1e(e){return!!(e&&e.__CANCEL__)}function y_(e,t,n){Ci.call(this,e??"canceled",Ci.ERR_CANCELED,t,n),this.name="CanceledError"}qt.inherits(y_,Ci,{__CANCEL__:!0});function ANe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ci("Request failed with status code "+n.status,[Ci.ERR_BAD_REQUEST,Ci.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const INe=vp.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];qt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),qt.isString(r)&&a.push("path="+r),qt.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function kNe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ENe(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function E1e(e,t){return e&&!kNe(t)?ENe(e,t):t}const _Ne=vp.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(i){let o=i;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(i){const o=qt.isString(i)?r(i):i;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function TNe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function PNe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(s){const l=Date.now(),u=r[o];a||(a=l),n[i]=s,r[i]=l;let c=o,d=0;for(;c!==i;)d+=n[c++],c=c%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-a<t)return;const h=u&&l-u;return h?Math.round(d*1e3/h):void 0}}function dne(e,t){let n=0;const r=PNe(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s),u=o<=a;n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const DNe=typeof XMLHttpRequest<"u",RNe=DNe&&function(e){return new Promise(function(t,n){let r=e.data;const i=ug.from(e.headers).normalize();let{responseType:o,withXSRFToken:a}=e,s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let u;if(qt.isFormData(r)){if(vp.hasStandardBrowserEnv||vp.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[g,...b]=u?u.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...b].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+b))}const d=E1e(e.baseURL,e.url);c.open(e.method.toUpperCase(),x1e(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function h(){if(!c)return;const g=ug.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:e,request:c};ANe(function(v){t(v),l()},function(v){n(v),l()},b),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(n(new Ci("Request aborted",Ci.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new Ci("Network Error",Ci.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||S1e;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),n(new Ci(g,b.clarifyTimeoutError?Ci.ETIMEDOUT:Ci.ECONNABORTED,e,c)),c=null},vp.hasStandardBrowserEnv&&(a&&qt.isFunction(a)&&(a=a(e)),a||a!==!1&&_Ne(d))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&INe.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}r===void 0&&i.setContentType(null),"setRequestHeader"in c&&qt.forEach(i.toJSON(),function(g,b){c.setRequestHeader(b,g)}),qt.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",dne(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",dne(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=g=>{c&&(n(!g||g.type?new y_(null,e,c):g),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const f=TNe(d);if(f&&vp.protocols.indexOf(f)===-1){n(new Ci("Unsupported protocol "+f+":",Ci.ERR_BAD_REQUEST,e));return}c.send(r||null)})},q7={http:rNe,xhr:RNe};qt.forEach(q7,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hne=e=>`- ${e}`,$Ne=e=>qt.isFunction(e)||e===null||e===!1,_1e={getAdapter:e=>{e=qt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!$Ne(n)&&(r=q7[(a=String(n)).toLowerCase()],r===void 0))throw new Ci(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
|
|
`+o.map(hne).join(`
|
|
`):" "+hne(o[0]):"as no adapter specified";throw new Ci("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:q7};function $F(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new y_(null,e)}function pne(e){return $F(e),e.headers=ug.from(e.headers),e.data=RF.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_1e.getAdapter(e.adapter||vU.adapter)(e).then(function(t){return $F(e),t.data=RF.call(e,e.transformResponse,t),t.headers=ug.from(t.headers),t},function(t){return k1e(t)||($F(e),t&&t.response&&(t.response.data=RF.call(e,e.transformResponse,t.response),t.response.headers=ug.from(t.response.headers))),Promise.reject(t)})}const fne=e=>e instanceof ug?e.toJSON():e;function OO(e,t){t=t||{};const n={};function r(u,c,d){return qt.isPlainObject(u)&&qt.isPlainObject(c)?qt.merge.call({caseless:d},u,c):qt.isPlainObject(c)?qt.merge({},c):qt.isArray(c)?c.slice():c}function i(u,c,d){if(qt.isUndefined(c)){if(!qt.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function o(u,c){if(!qt.isUndefined(c))return r(void 0,c)}function a(u,c){if(qt.isUndefined(c)){if(!qt.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(fne(u),fne(c),!0)};return qt.forEach(Object.keys(Object.assign({},e,t)),function(u){const c=l[u]||i,d=c(e[u],t[u],u);qt.isUndefined(d)&&c!==s||(n[u]=d)}),n}const T1e="1.6.2",yU={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yU[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const gne={};yU.transitional=function(e,t,n){function r(i,o){return"[Axios v"+T1e+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,a)=>{if(e===!1)throw new Ci(r(o," has been removed"+(t?" in "+t:"")),Ci.ERR_DEPRECATED);return t&&!gne[o]&&(gne[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,a):!0}};function MNe(e,t,n){if(typeof e!="object")throw new Ci("options must be an object",Ci.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new Ci("option "+o+" must be "+l,Ci.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ci("Unknown option "+o,Ci.ERR_BAD_OPTION)}}const J7={assertOptions:MNe,validators:yU},ym=J7.validators;class z${constructor(t){this.defaults=t,this.interceptors={request:new une,response:new une}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=OO(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&J7.assertOptions(r,{silentJSONParsing:ym.transitional(ym.boolean),forcedJSONParsing:ym.transitional(ym.boolean),clarifyTimeoutError:ym.transitional(ym.boolean)},!1),i!=null&&(qt.isFunction(i)?n.paramsSerializer={serialize:i}:J7.assertOptions(i,{encode:ym.function,serialize:ym.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&qt.merge(o.common,o[n.method]);o&&qt.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=ug.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,d=0,h;if(!l){const g=[pne.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),h=g.length,c=Promise.resolve(n);d<h;)c=c.then(g[d++],g[d++]);return c}h=s.length;let f=n;for(d=0;d<h;){const g=s[d++],b=s[d++];try{f=g(f)}catch(v){b.call(this,v);break}}try{c=pne.call(this,f)}catch(g){return Promise.reject(g)}for(d=0,h=u.length;d<h;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=OO(this.defaults,t);const n=E1e(t.baseURL,t.url);return x1e(n,t.params,t.paramsSerializer)}}qt.forEach(["delete","get","head","options"],function(e){z$.prototype[e]=function(t,n){return this.request(OO(n||{},{method:e,url:t,data:(n||{}).data}))}});qt.forEach(["post","put","patch"],function(e){function t(n){return function(r,i,o){return this.request(OO(o||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}z$.prototype[e]=t(),z$.prototype[e+"Form"]=t(!0)});const d3=z$;class bU{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(i,o,a){r.reason||(r.reason=new y_(i,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new bU(function(n){t=n}),cancel:t}}}const LNe=bU;function BNe(e){return function(t){return e.apply(null,t)}}function FNe(e){return qt.isObject(e)&&e.isAxiosError===!0}const eW={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(eW).forEach(([e,t])=>{eW[t]=e});const NNe=eW;function P1e(e){const t=new d3(e),n=d1e(d3.prototype.request,t);return qt.extend(n,d3.prototype,t,{allOwnKeys:!0}),qt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return P1e(OO(e,r))},n}const Qa=P1e(vU);Qa.Axios=d3;Qa.CanceledError=y_;Qa.CancelToken=LNe;Qa.isCancel=k1e;Qa.VERSION=T1e;Qa.toFormData=fL;Qa.AxiosError=Ci;Qa.Cancel=Qa.CanceledError;Qa.all=function(e){return Promise.all(e)};Qa.spread=BNe;Qa.isAxiosError=FNe;Qa.mergeConfig=OO;Qa.AxiosHeaders=ug;Qa.formToJSON=e=>I1e(qt.isHTMLForm(e)?new FormData(e):e);Qa.getAdapter=_1e.getAdapter;Qa.HttpStatusCode=NNe;Qa.default=Qa;const D1e=Qa,R1e=e=>!e.getAttribute("aria-owns"),$1e=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const i=r.querySelectorAll(n),o=Array.prototype.indexOf.call(i,e);return i[o+t]||null},h3=e=>{e&&(e.focus(),!R1e(e)&&e.click())},Gf=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const i=e==null?void 0:e(r);if(n===!1||!i)return t==null?void 0:t(r)};var VNe=Object.defineProperty,jNe=Object.defineProperties,WNe=Object.getOwnPropertyDescriptors,mne=Object.getOwnPropertySymbols,HNe=Object.prototype.hasOwnProperty,zNe=Object.prototype.propertyIsEnumerable,vne=(e,t,n)=>t in e?VNe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ZNe=(e,t)=>{for(var n in t||(t={}))HNe.call(t,n)&&vne(e,n,t[n]);if(mne)for(var n of mne(t))zNe.call(t,n)&&vne(e,n,t[n]);return e},GNe=(e,t)=>jNe(e,WNe(t));function yne(e,t){var n;const r=so();return Uc(()=>{r.value=e()},GNe(ZNe({},t),{flush:(n=void 0)!=null?n:"sync"})),p_(r)}var bne;const Ii=typeof window<"u",QNe=e=>typeof e<"u",UNe=e=>typeof e=="function",XNe=e=>typeof e=="string",Z$=()=>{},M1e=Ii&&((bne=window==null?void 0:window.navigator)==null?void 0:bne.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Qb(e){return typeof e=="function"?e():W(e)}function YNe(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}function KNe(e,t={}){let n,r,i=Z$;const o=a=>{clearTimeout(a),i(),i=Z$};return a=>{const s=Qb(e),l=Qb(t.maxWait);return n&&o(n),s<=0||l!==void 0&&l<=0?(r&&(o(r),r=null),Promise.resolve(a())):new Promise((u,c)=>{i=t.rejectOnCancel?c:u,l&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,u(a())},l)),n=setTimeout(()=>{r&&o(r),r=null,u(a())},s)})}}function qNe(e){return e}function mL(e){return zye()?(Zye(e),!0):!1}function JNe(e,t=200,n={}){return YNe(KNe(t,n),e)}function e6e(e,t=200,n={}){const r=Re(e.value),i=JNe(()=>{r.value=e.value},t,n);return Pt(e,()=>i()),r}function t6e(e,t=!0){dr()?_n(e):t?e():mn(e)}function tW(e,t,n={}){const{immediate:r=!0}=n,i=Re(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function l(...u){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,e(...u)},Qb(t))}return r&&(i.value=!0,Ii&&l()),mL(s),{isPending:p_(i),start:l,stop:s}}function rg(e){var t;const n=Qb(e);return(t=n==null?void 0:n.$el)!=null?t:n}const b_=Ii?window:void 0,n6e=Ii?window.document:void 0;function lu(...e){let t,n,r,i;if(XNe(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=b_):[t,n,r,i]=e,!t)return Z$;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(c=>c()),o.length=0},s=(c,d,h,f)=>(c.addEventListener(d,h,f),()=>c.removeEventListener(d,h,f)),l=Pt(()=>[rg(t),Qb(i)],([c,d])=>{a(),c&&o.push(...n.flatMap(h=>r.map(f=>s(c,h,f,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return mL(u),u}let wne=!1;function L1e(e,t,n={}){const{window:r=b_,ignore:i=[],capture:o=!0,detectIframe:a=!1}=n;if(!r)return;M1e&&!wne&&(wne=!0,Array.from(r.document.body.children).forEach(c=>c.addEventListener("click",Z$)));let s=!0;const l=c=>i.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(h=>h===c.target||c.composedPath().includes(h));{const h=rg(d);return h&&(c.target===h||c.composedPath().includes(h))}}),u=[lu(r,"click",c=>{const d=rg(e);if(!(!d||d===c.target||c.composedPath().includes(d))){if(c.detail===0&&(s=!l(c)),!s){s=!0;return}t(c)}},{passive:!0,capture:o}),lu(r,"pointerdown",c=>{const d=rg(e);d&&(s=!c.composedPath().includes(d)&&!l(c))},{passive:!0}),a&&lu(r,"blur",c=>{var d;const h=rg(e);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&t(c)})].filter(Boolean);return()=>u.forEach(c=>c())}function r6e(e,t=!1){const n=Re(),r=()=>n.value=!!e();return r(),t6e(r,t),n}function i6e(e){return JSON.parse(JSON.stringify(e))}const Cne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},One="__vueuse_ssr_handlers__";Cne[One]=Cne[One]||{};function o6e(e,t,{window:n=b_,initialValue:r=""}={}){const i=Re(r),o=Oe(()=>{var a;return rg(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return Pt([o,()=>Qb(e)],([a,s])=>{var l;if(a&&n){const u=(l=n.getComputedStyle(a).getPropertyValue(s))==null?void 0:l.trim();i.value=u||r}},{immediate:!0}),Pt(i,a=>{var s;(s=o.value)!=null&&s.style&&o.value.style.setProperty(Qb(e),a)}),i}function a6e({document:e=n6e}={}){if(!e)return Re("visible");const t=Re(e.visibilityState);return lu(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var xne=Object.getOwnPropertySymbols,s6e=Object.prototype.hasOwnProperty,l6e=Object.prototype.propertyIsEnumerable,u6e=(e,t)=>{var n={};for(var r in e)s6e.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&xne)for(var r of xne(e))t.indexOf(r)<0&&l6e.call(e,r)&&(n[r]=e[r]);return n};function uh(e,t,n={}){const r=n,{window:i=b_}=r,o=u6e(r,["window"]);let a;const s=r6e(()=>i&&"ResizeObserver"in i),l=()=>{a&&(a.disconnect(),a=void 0)},u=Pt(()=>rg(e),d=>{l(),s.value&&i&&d&&(a=new ResizeObserver(t),a.observe(d,o))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return mL(c),{isSupported:s,stop:c}}var Sne;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Sne||(Sne={}));var c6e=Object.defineProperty,Ane=Object.getOwnPropertySymbols,d6e=Object.prototype.hasOwnProperty,h6e=Object.prototype.propertyIsEnumerable,Ine=(e,t,n)=>t in e?c6e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p6e=(e,t)=>{for(var n in t||(t={}))d6e.call(t,n)&&Ine(e,n,t[n]);if(Ane)for(var n of Ane(t))h6e.call(t,n)&&Ine(e,n,t[n]);return e};const f6e={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};p6e({linear:qNe},f6e);function g6e(e,t,n,r={}){var i,o,a;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d}=r,h=dr(),f=(h==null?void 0:h.emit)||((i=h==null?void 0:h.$emit)==null?void 0:i.bind(h))||((a=(o=h==null?void 0:h.proxy)==null?void 0:o.$emit)==null?void 0:a.bind(h==null?void 0:h.proxy));let g=u;g=u||g||`update:${t.toString()}`;const b=m=>s?UNe(s)?s(m):i6e(m):m,v=()=>QNe(e[t])?b(e[t]):d;if(l){const m=v(),w=Re(m);return Pt(()=>e[t],k=>w.value=b(k)),Pt(w,k=>{(k!==e[t]||c)&&f(g,k)},{deep:c}),w}else return Oe({get(){return v()},set(m){f(g,m)}})}function m6e({window:e=b_}={}){if(!e)return Re(!1);const t=Re(e.document.hasFocus());return lu(e,"blur",()=>{t.value=!1}),lu(e,"focus",()=>{t.value=!0}),t}const v6e=()=>Ii&&/firefox/i.test(window.navigator.userAgent),wU=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},go=()=>{},y6e=Object.prototype.hasOwnProperty,vg=(e,t)=>y6e.call(e,t),Tr=Array.isArray,kne=e=>CU(e)==="[object Date]",_i=e=>typeof e=="function",vi=e=>typeof e=="string",b6e=e=>typeof e=="symbol",Ha=e=>e!==null&&typeof e=="object",nW=e=>(Ha(e)||_i(e))&&_i(e.then)&&_i(e.catch),w6e=Object.prototype.toString,CU=e=>w6e.call(e),MF=e=>CU(e).slice(8,-1),Ene=e=>CU(e)==="[object Object]",OU=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},C6e=/-(\w)/g,O6e=OU(e=>e.replace(C6e,(t,n)=>n?n.toUpperCase():"")),x6e=/\B([A-Z])/g,S6e=OU(e=>e.replace(x6e,"-$1").toLowerCase()),A6e=OU(e=>e.charAt(0).toUpperCase()+e.slice(1));var I6e=typeof global=="object"&&global&&global.Object===Object&&global;const B1e=I6e;var k6e=typeof self=="object"&&self&&self.Object===Object&&self,E6e=B1e||k6e||Function("return this")();const vh=E6e;var _6e=vh.Symbol;const od=_6e;var F1e=Object.prototype,T6e=F1e.hasOwnProperty,P6e=F1e.toString,pA=od?od.toStringTag:void 0;function D6e(e){var t=T6e.call(e,pA),n=e[pA];try{e[pA]=void 0;var r=!0}catch{}var i=P6e.call(e);return r&&(t?e[pA]=n:delete e[pA]),i}var R6e=Object.prototype,$6e=R6e.toString;function M6e(e){return $6e.call(e)}var L6e="[object Null]",B6e="[object Undefined]",_ne=od?od.toStringTag:void 0;function O1(e){return e==null?e===void 0?B6e:L6e:_ne&&_ne in Object(e)?D6e(e):M6e(e)}function Np(e){return e!=null&&typeof e=="object"}var F6e="[object Symbol]";function vL(e){return typeof e=="symbol"||Np(e)&&O1(e)==F6e}function N1e(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var N6e=Array.isArray;const Bl=N6e;var V6e=1/0,Tne=od?od.prototype:void 0,Pne=Tne?Tne.toString:void 0;function V1e(e){if(typeof e=="string")return e;if(Bl(e))return N1e(e,V1e)+"";if(vL(e))return Pne?Pne.call(e):"";var t=e+"";return t=="0"&&1/e==-V6e?"-0":t}var j6e=/\s/;function W6e(e){for(var t=e.length;t--&&j6e.test(e.charAt(t)););return t}var H6e=/^\s+/;function z6e(e){return e&&e.slice(0,W6e(e)+1).replace(H6e,"")}function gu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Dne=NaN,Z6e=/^[-+]0x[0-9a-f]+$/i,G6e=/^0b[01]+$/i,Q6e=/^0o[0-7]+$/i,U6e=parseInt;function Rne(e){if(typeof e=="number")return e;if(vL(e))return Dne;if(gu(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=gu(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=z6e(e);var n=G6e.test(e);return n||Q6e.test(e)?U6e(e.slice(2),n?2:8):Z6e.test(e)?Dne:+e}function xU(e){return e}var X6e="[object AsyncFunction]",Y6e="[object Function]",K6e="[object GeneratorFunction]",q6e="[object Proxy]";function SU(e){if(!gu(e))return!1;var t=O1(e);return t==Y6e||t==K6e||t==X6e||t==q6e}var J6e=vh["__core-js_shared__"];const LF=J6e;var $ne=function(){var e=/[^.]+$/.exec(LF&&LF.keys&&LF.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function e8e(e){return!!$ne&&$ne in e}var t8e=Function.prototype,n8e=t8e.toString;function x1(e){if(e!=null){try{return n8e.call(e)}catch{}try{return e+""}catch{}}return""}var r8e=/[\\^$.*+?()[\]{}|]/g,i8e=/^\[object .+?Constructor\]$/,o8e=Function.prototype,a8e=Object.prototype,s8e=o8e.toString,l8e=a8e.hasOwnProperty,u8e=RegExp("^"+s8e.call(l8e).replace(r8e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c8e(e){if(!gu(e)||e8e(e))return!1;var t=SU(e)?u8e:i8e;return t.test(x1(e))}function d8e(e,t){return e==null?void 0:e[t]}function S1(e,t){var n=d8e(e,t);return c8e(n)?n:void 0}var h8e=S1(vh,"WeakMap");const rW=h8e;var Mne=Object.create,p8e=function(){function e(){}return function(t){if(!gu(t))return{};if(Mne)return Mne(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const f8e=p8e;function g8e(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function j1e(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var m8e=800,v8e=16,y8e=Date.now;function b8e(e){var t=0,n=0;return function(){var r=y8e(),i=v8e-(r-n);if(n=r,i>0){if(++t>=m8e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function w8e(e){return function(){return e}}var C8e=function(){try{var e=S1(Object,"defineProperty");return e({},"",{}),e}catch{}}();const G$=C8e;var O8e=G$?function(e,t){return G$(e,"toString",{configurable:!0,enumerable:!1,value:w8e(t),writable:!0})}:xU;const x8e=O8e;var S8e=b8e(x8e);const W1e=S8e;function A8e(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function I8e(e,t,n,r){for(var i=e.length,o=n+1;o--;)if(t(e[o],o,e))return o;return-1}var k8e=9007199254740991,E8e=/^(?:0|[1-9]\d*)$/;function yL(e,t){var n=typeof e;return t=t??k8e,!!t&&(n=="number"||n!="symbol"&&E8e.test(e))&&e>-1&&e%1==0&&e<t}function AU(e,t,n){t=="__proto__"&&G$?G$(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function w_(e,t){return e===t||e!==e&&t!==t}var _8e=Object.prototype,T8e=_8e.hasOwnProperty;function IU(e,t,n){var r=e[t];(!(T8e.call(e,t)&&w_(r,n))||n===void 0&&!(t in e))&&AU(e,t,n)}function C_(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;l===void 0&&(l=e[s]),i?AU(n,s,l):IU(n,s,l)}return n}var Lne=Math.max;function H1e(e,t,n){return t=Lne(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Lne(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),g8e(e,this,s)}}function P8e(e,t){return W1e(H1e(e,t,xU),e+"")}var D8e=9007199254740991;function kU(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=D8e}function Sx(e){return e!=null&&kU(e.length)&&!SU(e)}function R8e(e,t,n){if(!gu(n))return!1;var r=typeof t;return(r=="number"?Sx(n)&&yL(t,n.length):r=="string"&&t in n)?w_(n[t],e):!1}function $8e(e){return P8e(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&R8e(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var M8e=Object.prototype;function EU(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||M8e;return e===n}function L8e(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var B8e="[object Arguments]";function Bne(e){return Np(e)&&O1(e)==B8e}var z1e=Object.prototype,F8e=z1e.hasOwnProperty,N8e=z1e.propertyIsEnumerable,V8e=Bne(function(){return arguments}())?Bne:function(e){return Np(e)&&F8e.call(e,"callee")&&!N8e.call(e,"callee")};const M2=V8e;function j8e(){return!1}var Z1e=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fne=Z1e&&typeof module=="object"&&module&&!module.nodeType&&module,W8e=Fne&&Fne.exports===Z1e,Nne=W8e?vh.Buffer:void 0,H8e=Nne?Nne.isBuffer:void 0,z8e=H8e||j8e;const L2=z8e;var Z8e="[object Arguments]",G8e="[object Array]",Q8e="[object Boolean]",U8e="[object Date]",X8e="[object Error]",Y8e="[object Function]",K8e="[object Map]",q8e="[object Number]",J8e="[object Object]",eVe="[object RegExp]",tVe="[object Set]",nVe="[object String]",rVe="[object WeakMap]",iVe="[object ArrayBuffer]",oVe="[object DataView]",aVe="[object Float32Array]",sVe="[object Float64Array]",lVe="[object Int8Array]",uVe="[object Int16Array]",cVe="[object Int32Array]",dVe="[object Uint8Array]",hVe="[object Uint8ClampedArray]",pVe="[object Uint16Array]",fVe="[object Uint32Array]",To={};To[aVe]=To[sVe]=To[lVe]=To[uVe]=To[cVe]=To[dVe]=To[hVe]=To[pVe]=To[fVe]=!0;To[Z8e]=To[G8e]=To[iVe]=To[Q8e]=To[oVe]=To[U8e]=To[X8e]=To[Y8e]=To[K8e]=To[q8e]=To[J8e]=To[eVe]=To[tVe]=To[nVe]=To[rVe]=!1;function gVe(e){return Np(e)&&kU(e.length)&&!!To[O1(e)]}function _U(e){return function(t){return e(t)}}var G1e=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sk=G1e&&typeof module=="object"&&module&&!module.nodeType&&module,mVe=Sk&&Sk.exports===G1e,BF=mVe&&B1e.process,vVe=function(){try{var e=Sk&&Sk.require&&Sk.require("util").types;return e||BF&&BF.binding&&BF.binding("util")}catch{}}();const xO=vVe;var Vne=xO&&xO.isTypedArray,yVe=Vne?_U(Vne):gVe;const TU=yVe;var bVe=Object.prototype,wVe=bVe.hasOwnProperty;function Q1e(e,t){var n=Bl(e),r=!n&&M2(e),i=!n&&!r&&L2(e),o=!n&&!r&&!i&&TU(e),a=n||r||i||o,s=a?L8e(e.length,String):[],l=s.length;for(var u in e)(t||wVe.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||yL(u,l)))&&s.push(u);return s}function U1e(e,t){return function(n){return e(t(n))}}var CVe=U1e(Object.keys,Object);const OVe=CVe;var xVe=Object.prototype,SVe=xVe.hasOwnProperty;function AVe(e){if(!EU(e))return OVe(e);var t=[];for(var n in Object(e))SVe.call(e,n)&&n!="constructor"&&t.push(n);return t}function O_(e){return Sx(e)?Q1e(e):AVe(e)}function IVe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var kVe=Object.prototype,EVe=kVe.hasOwnProperty;function _Ve(e){if(!gu(e))return IVe(e);var t=EU(e),n=[];for(var r in e)r=="constructor"&&(t||!EVe.call(e,r))||n.push(r);return n}function x_(e){return Sx(e)?Q1e(e,!0):_Ve(e)}var TVe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,PVe=/^\w*$/;function PU(e,t){if(Bl(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||vL(e)?!0:PVe.test(e)||!TVe.test(e)||t!=null&&e in Object(t)}var DVe=S1(Object,"create");const B2=DVe;function RVe(){this.__data__=B2?B2(null):{},this.size=0}function $Ve(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var MVe="__lodash_hash_undefined__",LVe=Object.prototype,BVe=LVe.hasOwnProperty;function FVe(e){var t=this.__data__;if(B2){var n=t[e];return n===MVe?void 0:n}return BVe.call(t,e)?t[e]:void 0}var NVe=Object.prototype,VVe=NVe.hasOwnProperty;function jVe(e){var t=this.__data__;return B2?t[e]!==void 0:VVe.call(t,e)}var WVe="__lodash_hash_undefined__";function HVe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=B2&&t===void 0?WVe:t,this}function Ub(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ub.prototype.clear=RVe;Ub.prototype.delete=$Ve;Ub.prototype.get=FVe;Ub.prototype.has=jVe;Ub.prototype.set=HVe;function zVe(){this.__data__=[],this.size=0}function bL(e,t){for(var n=e.length;n--;)if(w_(e[n][0],t))return n;return-1}var ZVe=Array.prototype,GVe=ZVe.splice;function QVe(e){var t=this.__data__,n=bL(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():GVe.call(t,n,1),--this.size,!0}function UVe(e){var t=this.__data__,n=bL(t,e);return n<0?void 0:t[n][1]}function XVe(e){return bL(this.__data__,e)>-1}function YVe(e,t){var n=this.__data__,r=bL(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Pg(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pg.prototype.clear=zVe;Pg.prototype.delete=QVe;Pg.prototype.get=UVe;Pg.prototype.has=XVe;Pg.prototype.set=YVe;var KVe=S1(vh,"Map");const F2=KVe;function qVe(){this.size=0,this.__data__={hash:new Ub,map:new(F2||Pg),string:new Ub}}function JVe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function wL(e,t){var n=e.__data__;return JVe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function eje(e){var t=wL(this,e).delete(e);return this.size-=t?1:0,t}function tje(e){return wL(this,e).get(e)}function nje(e){return wL(this,e).has(e)}function rje(e,t){var n=wL(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Dg(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Dg.prototype.clear=qVe;Dg.prototype.delete=eje;Dg.prototype.get=tje;Dg.prototype.has=nje;Dg.prototype.set=rje;var ije="Expected a function";function DU(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ije);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(DU.Cache||Dg),n}DU.Cache=Dg;var oje=500;function aje(e){var t=DU(e,function(r){return n.size===oje&&n.clear(),r}),n=t.cache;return t}var sje=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lje=/\\(\\)?/g,uje=aje(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(sje,function(n,r,i,o){t.push(i?o.replace(lje,"$1"):r||n)}),t});const cje=uje;function dje(e){return e==null?"":V1e(e)}function CL(e,t){return Bl(e)?e:PU(e,t)?[e]:cje(dje(e))}var hje=1/0;function S_(e){if(typeof e=="string"||vL(e))return e;var t=e+"";return t=="0"&&1/e==-hje?"-0":t}function RU(e,t){t=CL(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[S_(t[n++])];return n&&n==r?e:void 0}function Ys(e,t,n){var r=e==null?void 0:RU(e,t);return r===void 0?n:r}function $U(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var jne=od?od.isConcatSpreadable:void 0;function pje(e){return Bl(e)||M2(e)||!!(jne&&e&&e[jne])}function OL(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=pje),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?OL(s,t-1,n,r,i):$U(i,s):i[i.length]=s}return i}function X1e(e){var t=e==null?0:e.length;return t?OL(e,1):[]}function fje(e){return W1e(H1e(e,void 0,X1e),e+"")}var gje=U1e(Object.getPrototypeOf,Object);const MU=gje;var mje="[object Object]",vje=Function.prototype,yje=Object.prototype,Y1e=vje.toString,bje=yje.hasOwnProperty,wje=Y1e.call(Object);function Cje(e){if(!Np(e)||O1(e)!=mje)return!1;var t=MU(e);if(t===null)return!0;var n=bje.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Y1e.call(n)==wje}function N2(){if(!arguments.length)return[];var e=arguments[0];return Bl(e)?e:[e]}function Oje(){this.__data__=new Pg,this.size=0}function xje(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Sje(e){return this.__data__.get(e)}function Aje(e){return this.__data__.has(e)}var Ije=200;function kje(e,t){var n=this.__data__;if(n instanceof Pg){var r=n.__data__;if(!F2||r.length<Ije-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dg(r)}return n.set(e,t),this.size=n.size,this}function Jd(e){var t=this.__data__=new Pg(e);this.size=t.size}Jd.prototype.clear=Oje;Jd.prototype.delete=xje;Jd.prototype.get=Sje;Jd.prototype.has=Aje;Jd.prototype.set=kje;function Eje(e,t){return e&&C_(t,O_(t),e)}function _je(e,t){return e&&C_(t,x_(t),e)}var K1e=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wne=K1e&&typeof module=="object"&&module&&!module.nodeType&&module,Tje=Wne&&Wne.exports===K1e,Hne=Tje?vh.Buffer:void 0,zne=Hne?Hne.allocUnsafe:void 0;function q1e(e,t){if(t)return e.slice();var n=e.length,r=zne?zne(n):new e.constructor(n);return e.copy(r),r}function Pje(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function J1e(){return[]}var Dje=Object.prototype,Rje=Dje.propertyIsEnumerable,Zne=Object.getOwnPropertySymbols,$je=Zne?function(e){return e==null?[]:(e=Object(e),Pje(Zne(e),function(t){return Rje.call(e,t)}))}:J1e;const LU=$je;function Mje(e,t){return C_(e,LU(e),t)}var Lje=Object.getOwnPropertySymbols,Bje=Lje?function(e){for(var t=[];e;)$U(t,LU(e)),e=MU(e);return t}:J1e;const ewe=Bje;function Fje(e,t){return C_(e,ewe(e),t)}function twe(e,t,n){var r=t(e);return Bl(e)?r:$U(r,n(e))}function iW(e){return twe(e,O_,LU)}function Nje(e){return twe(e,x_,ewe)}var Vje=S1(vh,"DataView");const oW=Vje;var jje=S1(vh,"Promise");const aW=jje;var Wje=S1(vh,"Set");const sW=Wje;var Gne="[object Map]",Hje="[object Object]",Qne="[object Promise]",Une="[object Set]",Xne="[object WeakMap]",Yne="[object DataView]",zje=x1(oW),Zje=x1(F2),Gje=x1(aW),Qje=x1(sW),Uje=x1(rW),jy=O1;(oW&&jy(new oW(new ArrayBuffer(1)))!=Yne||F2&&jy(new F2)!=Gne||aW&&jy(aW.resolve())!=Qne||sW&&jy(new sW)!=Une||rW&&jy(new rW)!=Xne)&&(jy=function(e){var t=O1(e),n=t==Hje?e.constructor:void 0,r=n?x1(n):"";if(r)switch(r){case zje:return Yne;case Zje:return Gne;case Gje:return Qne;case Qje:return Une;case Uje:return Xne}return t});const V2=jy;var Xje=Object.prototype,Yje=Xje.hasOwnProperty;function Kje(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Yje.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var qje=vh.Uint8Array;const Q$=qje;function BU(e){var t=new e.constructor(e.byteLength);return new Q$(t).set(new Q$(e)),t}function Jje(e,t){var n=t?BU(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var e7e=/\w*$/;function t7e(e){var t=new e.constructor(e.source,e7e.exec(e));return t.lastIndex=e.lastIndex,t}var Kne=od?od.prototype:void 0,qne=Kne?Kne.valueOf:void 0;function n7e(e){return qne?Object(qne.call(e)):{}}function nwe(e,t){var n=t?BU(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var r7e="[object Boolean]",i7e="[object Date]",o7e="[object Map]",a7e="[object Number]",s7e="[object RegExp]",l7e="[object Set]",u7e="[object String]",c7e="[object Symbol]",d7e="[object ArrayBuffer]",h7e="[object DataView]",p7e="[object Float32Array]",f7e="[object Float64Array]",g7e="[object Int8Array]",m7e="[object Int16Array]",v7e="[object Int32Array]",y7e="[object Uint8Array]",b7e="[object Uint8ClampedArray]",w7e="[object Uint16Array]",C7e="[object Uint32Array]";function O7e(e,t,n){var r=e.constructor;switch(t){case d7e:return BU(e);case r7e:case i7e:return new r(+e);case h7e:return Jje(e,n);case p7e:case f7e:case g7e:case m7e:case v7e:case y7e:case b7e:case w7e:case C7e:return nwe(e,n);case o7e:return new r;case a7e:case u7e:return new r(e);case s7e:return t7e(e);case l7e:return new r;case c7e:return n7e(e)}}function rwe(e){return typeof e.constructor=="function"&&!EU(e)?f8e(MU(e)):{}}var x7e="[object Map]";function S7e(e){return Np(e)&&V2(e)==x7e}var Jne=xO&&xO.isMap,A7e=Jne?_U(Jne):S7e;const I7e=A7e;var k7e="[object Set]";function E7e(e){return Np(e)&&V2(e)==k7e}var ere=xO&&xO.isSet,_7e=ere?_U(ere):E7e;const T7e=_7e;var P7e=1,D7e=2,R7e=4,iwe="[object Arguments]",$7e="[object Array]",M7e="[object Boolean]",L7e="[object Date]",B7e="[object Error]",owe="[object Function]",F7e="[object GeneratorFunction]",N7e="[object Map]",V7e="[object Number]",awe="[object Object]",j7e="[object RegExp]",W7e="[object Set]",H7e="[object String]",z7e="[object Symbol]",Z7e="[object WeakMap]",G7e="[object ArrayBuffer]",Q7e="[object DataView]",U7e="[object Float32Array]",X7e="[object Float64Array]",Y7e="[object Int8Array]",K7e="[object Int16Array]",q7e="[object Int32Array]",J7e="[object Uint8Array]",eWe="[object Uint8ClampedArray]",tWe="[object Uint16Array]",nWe="[object Uint32Array]",fo={};fo[iwe]=fo[$7e]=fo[G7e]=fo[Q7e]=fo[M7e]=fo[L7e]=fo[U7e]=fo[X7e]=fo[Y7e]=fo[K7e]=fo[q7e]=fo[N7e]=fo[V7e]=fo[awe]=fo[j7e]=fo[W7e]=fo[H7e]=fo[z7e]=fo[J7e]=fo[eWe]=fo[tWe]=fo[nWe]=!0;fo[B7e]=fo[owe]=fo[Z7e]=!1;function Ak(e,t,n,r,i,o){var a,s=t&P7e,l=t&D7e,u=t&R7e;if(a!==void 0)return a;if(!gu(e))return e;var c=Bl(e);if(c){if(a=Kje(e),!s)return j1e(e,a)}else{var d=V2(e),h=d==owe||d==F7e;if(L2(e))return q1e(e,s);if(d==awe||d==iwe||h&&!i){if(a=l||h?{}:rwe(e),!s)return l?Fje(e,_je(a,e)):Mje(e,Eje(a,e))}else{if(!fo[d])return i?e:{};a=O7e(e,d,s)}}o||(o=new Jd);var f=o.get(e);if(f)return f;o.set(e,a),T7e(e)?e.forEach(function(v){a.add(Ak(v,t,n,v,e,o))}):I7e(e)&&e.forEach(function(v,m){a.set(m,Ak(v,t,n,m,e,o))});var g=u?l?Nje:iW:l?x_:O_,b=c?void 0:g(e);return A8e(b||e,function(v,m){b&&(m=v,v=e[m]),IU(a,m,Ak(v,t,n,m,e,o))}),a}var rWe=4;function tre(e){return Ak(e,rWe)}var iWe=1,oWe=4;function U$(e){return Ak(e,iWe|oWe)}var aWe="__lodash_hash_undefined__";function sWe(e){return this.__data__.set(e,aWe),this}function lWe(e){return this.__data__.has(e)}function X$(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Dg;++t<n;)this.add(e[t])}X$.prototype.add=X$.prototype.push=sWe;X$.prototype.has=lWe;function uWe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function cWe(e,t){return e.has(t)}var dWe=1,hWe=2;function swe(e,t,n,r,i,o){var a=n&dWe,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,h=!0,f=n&hWe?new X$:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var g=e[d],b=t[d];if(r)var v=a?r(b,g,d,t,e,o):r(g,b,d,e,t,o);if(v!==void 0){if(v)continue;h=!1;break}if(f){if(!uWe(t,function(m,w){if(!cWe(f,w)&&(g===m||i(g,m,n,r,o)))return f.push(w)})){h=!1;break}}else if(!(g===b||i(g,b,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function pWe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function fWe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var gWe=1,mWe=2,vWe="[object Boolean]",yWe="[object Date]",bWe="[object Error]",wWe="[object Map]",CWe="[object Number]",OWe="[object RegExp]",xWe="[object Set]",SWe="[object String]",AWe="[object Symbol]",IWe="[object ArrayBuffer]",kWe="[object DataView]",nre=od?od.prototype:void 0,FF=nre?nre.valueOf:void 0;function EWe(e,t,n,r,i,o,a){switch(n){case kWe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case IWe:return!(e.byteLength!=t.byteLength||!o(new Q$(e),new Q$(t)));case vWe:case yWe:case CWe:return w_(+e,+t);case bWe:return e.name==t.name&&e.message==t.message;case OWe:case SWe:return e==t+"";case wWe:var s=pWe;case xWe:var l=r&gWe;if(s||(s=fWe),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=mWe,a.set(e,t);var c=swe(s(e),s(t),r,i,o,a);return a.delete(e),c;case AWe:if(FF)return FF.call(e)==FF.call(t)}return!1}var _We=1,TWe=Object.prototype,PWe=TWe.hasOwnProperty;function DWe(e,t,n,r,i,o){var a=n&_We,s=iW(e),l=s.length,u=iW(t),c=u.length;if(l!=c&&!a)return!1;for(var d=l;d--;){var h=s[d];if(!(a?h in t:PWe.call(t,h)))return!1}var f=o.get(e),g=o.get(t);if(f&&g)return f==t&&g==e;var b=!0;o.set(e,t),o.set(t,e);for(var v=a;++d<l;){h=s[d];var m=e[h],w=t[h];if(r)var k=a?r(w,m,h,t,e,o):r(m,w,h,e,t,o);if(!(k===void 0?m===w||i(m,w,n,r,o):k)){b=!1;break}v||(v=h=="constructor")}if(b&&!v){var T=e.constructor,S=t.constructor;T!=S&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof S=="function"&&S instanceof S)&&(b=!1)}return o.delete(e),o.delete(t),b}var RWe=1,rre="[object Arguments]",ire="[object Array]",iD="[object Object]",$We=Object.prototype,ore=$We.hasOwnProperty;function MWe(e,t,n,r,i,o){var a=Bl(e),s=Bl(t),l=a?ire:V2(e),u=s?ire:V2(t);l=l==rre?iD:l,u=u==rre?iD:u;var c=l==iD,d=u==iD,h=l==u;if(h&&L2(e)){if(!L2(t))return!1;a=!0,c=!1}if(h&&!c)return o||(o=new Jd),a||TU(e)?swe(e,t,n,r,i,o):EWe(e,t,l,n,r,i,o);if(!(n&RWe)){var f=c&&ore.call(e,"__wrapped__"),g=d&&ore.call(t,"__wrapped__");if(f||g){var b=f?e.value():e,v=g?t.value():t;return o||(o=new Jd),i(b,v,n,r,o)}}return h?(o||(o=new Jd),DWe(e,t,n,r,i,o)):!1}function xL(e,t,n,r,i){return e===t?!0:e==null||t==null||!Np(e)&&!Np(t)?e!==e&&t!==t:MWe(e,t,n,r,xL,i)}var LWe=1,BWe=2;function FWe(e,t,n,r){var i=n.length,o=i;if(e==null)return!o;for(e=Object(e);i--;){var a=n[i];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){a=n[i];var s=a[0],l=e[s],u=a[1];if(a[2]){if(l===void 0&&!(s in e))return!1}else{var c=new Jd,d;if(!(d===void 0?xL(u,l,LWe|BWe,r,c):d))return!1}}return!0}function lwe(e){return e===e&&!gu(e)}function NWe(e){for(var t=O_(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,lwe(i)]}return t}function uwe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function VWe(e){var t=NWe(e);return t.length==1&&t[0][2]?uwe(t[0][0],t[0][1]):function(n){return n===e||FWe(n,e,t)}}function jWe(e,t){return e!=null&&t in Object(e)}function WWe(e,t,n){t=CL(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=S_(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&kU(i)&&yL(a,i)&&(Bl(e)||M2(e)))}function cwe(e,t){return e!=null&&WWe(e,t,jWe)}var HWe=1,zWe=2;function ZWe(e,t){return PU(e)&&lwe(t)?uwe(S_(e),t):function(n){var r=Ys(n,e);return r===void 0&&r===t?cwe(n,e):xL(t,r,HWe|zWe)}}function GWe(e){return function(t){return t==null?void 0:t[e]}}function QWe(e){return function(t){return RU(t,e)}}function UWe(e){return PU(e)?GWe(S_(e)):QWe(e)}function dwe(e){return typeof e=="function"?e:e==null?xU:typeof e=="object"?Bl(e)?ZWe(e[0],e[1]):VWe(e):UWe(e)}function XWe(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[++i];if(n(o[l],l,o)===!1)break}return t}}var YWe=XWe();const hwe=YWe;function KWe(e,t){return e&&hwe(e,t,O_)}function qWe(e,t){return function(n,r){if(n==null)return n;if(!Sx(n))return e(n,r);for(var i=n.length,o=-1,a=Object(n);++o<i&&r(a[o],o,a)!==!1;);return n}}var JWe=qWe(KWe);const eHe=JWe;var tHe=function(){return vh.Date.now()};const NF=tHe;var nHe="Expected a function",rHe=Math.max,iHe=Math.min;function ch(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(nHe);t=Rne(t)||0,gu(n)&&(c=!!n.leading,d="maxWait"in n,o=d?rHe(Rne(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function f(I){var O=r,y=i;return r=i=void 0,u=I,a=e.apply(y,O),a}function g(I){return u=I,s=setTimeout(m,t),c?f(I):a}function b(I){var O=I-l,y=I-u,_=t-O;return d?iHe(_,o-y):_}function v(I){var O=I-l,y=I-u;return l===void 0||O>=t||O<0||d&&y>=o}function m(){var I=NF();if(v(I))return w(I);s=setTimeout(m,b(I))}function w(I){return s=void 0,h&&r?f(I):(r=i=void 0,a)}function k(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function T(){return s===void 0?a:w(NF())}function S(){var I=NF(),O=v(I);if(r=arguments,i=this,l=I,O){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(m,t),f(l)}return s===void 0&&(s=setTimeout(m,t)),a}return S.cancel=k,S.flush=T,S}function lW(e,t,n){(n!==void 0&&!w_(e[t],n)||n===void 0&&!(t in e))&&AU(e,t,n)}function oHe(e){return Np(e)&&Sx(e)}function uW(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function aHe(e){return C_(e,x_(e))}function sHe(e,t,n,r,i,o,a){var s=uW(e,n),l=uW(t,n),u=a.get(l);if(u){lW(e,n,u);return}var c=o?o(s,l,n+"",e,t,a):void 0,d=c===void 0;if(d){var h=Bl(l),f=!h&&L2(l),g=!h&&!f&&TU(l);c=l,h||f||g?Bl(s)?c=s:oHe(s)?c=j1e(s):f?(d=!1,c=q1e(l,!0)):g?(d=!1,c=nwe(l,!0)):c=[]:Cje(l)||M2(l)?(c=s,M2(s)?c=aHe(s):(!gu(s)||SU(s))&&(c=rwe(l))):d=!1}d&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),lW(e,n,c)}function pwe(e,t,n,r,i){e!==t&&hwe(t,function(o,a){if(i||(i=new Jd),gu(o))sHe(e,t,a,n,pwe,r,i);else{var s=r?r(uW(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),lW(e,a,s)}},x_)}function lHe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=r-1;return I8e(e,dwe(t),i)}function uHe(e,t){var n=-1,r=Sx(e)?Array(e.length):[];return eHe(e,function(i,o,a){r[++n]=t(i,o,a)}),r}function cHe(e,t){var n=Bl(e)?N1e:uHe;return n(e,dwe(t))}function dHe(e,t){return OL(cHe(e,t),1)}var hHe=1/0;function pHe(e){var t=e==null?0:e.length;return t?OL(e,hHe):[]}function Y$(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function Ep(e,t){return xL(e,t)}function il(e){return e==null}function fwe(e){return e===void 0}var fHe=$8e(function(e,t,n){pwe(e,t,n)});const gwe=fHe;function mwe(e,t,n,r){if(!gu(e))return e;t=CL(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=S_(t[i]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=a){var c=s[l];u=void 0,u===void 0&&(u=gu(c)?c:yL(t[i+1])?[]:{})}IU(s,l,u),s=s[l]}return e}function gHe(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=RU(e,a);n(s,a)&&mwe(o,CL(a,e),s)}return o}function mHe(e,t){return gHe(e,t,function(n,r){return cwe(e,r)})}var vHe=fje(function(e,t){return e==null?{}:mHe(e,t)});const yHe=vHe;function bHe(e,t,n){return e==null?e:mwe(e,t,n)}const rl=e=>e===void 0,ol=e=>typeof e=="boolean",$r=e=>typeof e=="number",Vc=e=>!e&&e!==0||Tr(e)&&e.length===0||Ha(e)&&!Object.keys(e).length,Xb=e=>typeof Element>"u"?!1:e instanceof Element,wHe=e=>vi(e)?!Number.isNaN(Number(e)):!1,CHe=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),dp=e=>A6e(e),cW=e=>Object.keys(e),OHe=e=>Object.entries(e),p3=(e,t,n)=>({get value(){return Ys(e,t,n)},set value(r){bHe(e,t,r)}});class xHe extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function hc(e,t){throw new xHe(`[${e}] ${t}`)}const vwe=(e="")=>e.split(" ").filter(t=>!!t.trim()),_p=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},j2=(e,t)=>{!e||!t.trim()||e.classList.add(...vwe(t))},s0=(e,t)=>{!e||!t.trim()||e.classList.remove(...vwe(t))},Ky=(e,t)=>{var n;if(!Ii||!e||!t)return"";let r=O6e(t);r==="float"&&(r="cssFloat");try{const i=e.style[r];if(i)return i;const o=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return o?o[r]:""}catch{return e.style[r]}};function ad(e,t="px"){if(!e)return"";if($r(e)||wHe(e))return`${e}${t}`;if(vi(e))return e}let oD;const SHe=e=>{var t;if(!Ii)return 0;if(oD!==void 0)return oD;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const o=i.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),oD=r-o,oD};function ywe(e,t){if(!Ii)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const i=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),o=i+t.offsetHeight,a=e.scrollTop,s=a+e.clientHeight;i<a?e.scrollTop=i:o>s&&(e.scrollTop=o-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var AHe=ft({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),Ax=AHe,IHe=ft({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),W2=IHe,kHe=ft({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Tp=kHe,EHe=ft({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),FU=EHe,_He=ft({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),THe=_He,PHe=ft({name:"Check",__name:"check",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),SL=PHe,DHe=ft({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),at("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),NU=DHe,RHe=ft({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),bwe=RHe,$He=ft({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),at("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Ix=$He,MHe=ft({name:"Clock",__name:"clock",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),at("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),at("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),LHe=MHe,BHe=ft({name:"Close",__name:"close",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),yg=BHe,FHe=ft({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),H2=FHe,NHe=ft({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),z2=NHe,VHe=ft({name:"Delete",__name:"delete",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),jHe=VHe,WHe=ft({name:"Document",__name:"document",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),HHe=WHe,zHe=ft({name:"Hide",__name:"hide",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),at("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),ZHe=zHe,GHe=ft({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),wwe=GHe,QHe=ft({name:"Loading",__name:"loading",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),kx=QHe,UHe=ft({name:"Minus",__name:"minus",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),XHe=UHe,YHe=ft({name:"Plus",__name:"plus",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),Cwe=YHe,KHe=ft({name:"Search",__name:"search",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),qHe=KHe,JHe=ft({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),aD=JHe,eze=ft({name:"Star",__name:"star",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),tze=eze,nze=ft({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Owe=nze,rze=ft({name:"View",__name:"view",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),ize=rze,oze=ft({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),VU=oze,aze=ft({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(Ce(),We("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[at("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),sze=aze;const xwe="__epPropKey",jt=e=>e,lze=e=>Ha(e)&&!!e[xwe],AL=(e,t)=>{if(!Ha(e)||lze(e))return e;const{values:n,required:r,default:i,type:o,validator:a}=e,s={type:o,required:!!r,validator:n||a?l=>{let u=!1,c=[];if(n&&(c=Array.from(n),vg(e,"default")&&c.push(i),u||(u=c.includes(l))),a&&(u||(u=a(l))),!u&&c.length>0){const d=[...new Set(c)].map(h=>JSON.stringify(h)).join(", ");j9e(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(l)}.`)}return u}:void 0,[xwe]:!0};return vg(e,"default")&&(s.default=i),s},Tn=e=>Y$(Object.entries(e).map(([t,n])=>[t,AL(n,t)])),iu=jt([String,Object,Function]),uze={Close:yg},Swe={Close:yg,SuccessFilled:Owe,InfoFilled:wwe,WarningFilled:VU,CircleCloseFilled:bwe},K$={success:Owe,warning:VU,error:bwe,info:wwe},Awe={validating:kx,success:NU,error:Ix},Xi=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},cze=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),yh=e=>(e.install=go,e),dze=(...e)=>t=>{e.forEach(n=>{_i(n)?n(t):n.value=t})},nr={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},hze=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],ur="update:modelValue",Ua="change",Pp="input",Ex=["","default","small","large"],pze={large:40,default:32,small:24},fze=e=>pze[e||"default"],Iwe=e=>["",...Ex].includes(e);var $c=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))($c||{});function dW(e){return Ll(e)&&e.type===un}function gze(e){return Ll(e)&&e.type===vs}function mze(e){return Ll(e)&&!dW(e)&&!gze(e)}const f3=e=>{const t=Tr(e)?e:[e],n=[];return t.forEach(r=>{var i;Tr(r)?n.push(...f3(r)):Ll(r)&&Tr(r.children)?n.push(...f3(r.children)):(n.push(r),Ll(r)&&(i=r.component)!=null&&i.subTree&&n.push(...f3(r.component.subTree)))}),n},are=e=>[...new Set(e)],cg=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],jU=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),vze=e=>Ii?window.requestAnimationFrame(e):setTimeout(e,16),WU=()=>Math.floor(Math.random()*1e4),dh=e=>e,yze=["class","style"],bze=/^on[A-Z]/,wze=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=Oe(()=>((n==null?void 0:n.value)||[]).concat(yze)),i=dr();return Oe(i?()=>{var o;return Y$(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([a])=>!r.value.includes(a)&&!(t&&bze.test(a))))}:()=>({}))},l0=({from:e,replacement:t,scope:n,version:r,ref:i,type:o="API"},a)=>{Pt(()=>W(a),s=>{},{immediate:!0})},Cze=(e,t,n)=>{let r={offsetX:0,offsetY:0};const i=s=>{const l=s.clientX,u=s.clientY,{offsetX:c,offsetY:d}=r,h=e.value.getBoundingClientRect(),f=h.left,g=h.top,b=h.width,v=h.height,m=document.documentElement.clientWidth,w=document.documentElement.clientHeight,k=-f+c,T=-g+d,S=m-f-b+c,I=w-g-v+d,O=_=>{const A=Math.min(Math.max(c+_.clientX-l,k),S),R=Math.min(Math.max(d+_.clientY-u,T),I);r={offsetX:A,offsetY:R},e.value&&(e.value.style.transform=`translate(${ad(A)}, ${ad(R)})`)},y=()=>{document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",y)},o=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},a=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};_n(()=>{Uc(()=>{n.value?o():a()})}),Mo(()=>{a()})};var Oze={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const xze=e=>(t,n)=>Sze(t,n,W(e)),Sze=(e,t,n)=>Ys(n,e,e).replace(/\{(\w+)\}/g,(r,i)=>{var o;return`${(o=t==null?void 0:t[i])!=null?o:`{${i}}`}`}),Aze=e=>{const t=Oe(()=>W(e).name),n=ni(e)?e:Re(e);return{lang:t,locale:n,t:xze(e)}},kwe=Symbol("localeContextKey"),uo=e=>{const t=e||Ht(kwe,Re());return Aze(Oe(()=>t.value||Oze))};let Ize;function kze(e,t=Ize){t&&t.active&&t.effects.push(e)}const Eze=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ewe=e=>(e.w&u0)>0,_we=e=>(e.n&u0)>0,_ze=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=u0},Tze=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];Ewe(i)&&!_we(i)?i.delete(e):t[n++]=i,i.w&=~u0,i.n&=~u0}t.length=n}};let UI=0,u0=1;const hW=30;let hp;class Pze{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,kze(this,r)}run(){if(!this.active)return this.fn();let t=hp,n=g3;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=hp,hp=this,g3=!0,u0=1<<++UI,UI<=hW?_ze(this):sre(this),this.fn()}finally{UI<=hW&&Tze(this),u0=1<<--UI,hp=this.parent,g3=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){hp===this?this.deferStop=!0:this.active&&(sre(this),this.onStop&&this.onStop(),this.active=!1)}}function sre(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let g3=!0;function Dze(e,t){let n=!1;UI<=hW?_we(e)||(e.n|=u0,n=!Ewe(e)):n=!e.has(hp),n&&(e.add(hp),hp.deps.push(e))}function Rze(e,t){const n=Tr(e)?e:[...e];for(const r of n)r.computed&&lre(r);for(const r of n)r.computed||lre(r)}function lre(e,t){(e!==hp||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(b6e));function IL(e){const t=e&&e.__v_raw;return t?IL(t):e}function $ze(e){g3&&hp&&(e=IL(e),Dze(e.dep||(e.dep=Eze())))}function Mze(e,t){e=IL(e);const n=e.dep;n&&Rze(n)}class Lze{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Pze(t,()=>{this._dirty||(this._dirty=!0,Mze(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=IL(this);return $ze(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Bze(e,t,n=!1){let r,i;const o=_i(e);return o?(r=e,i=go):(r=e.get,i=e.set),new Lze(r,i,o||!i,n)}const Ik="el",Fze="is-",Cy=(e,t,n,r,i)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),i&&(o+=`--${i}`),o},Twe=Symbol("namespaceContextKey"),HU=e=>{const t=e||(dr()?Ht(Twe,Re(Ik)):Re(Ik));return Oe(()=>W(t)||Ik)},cn=(e,t)=>{const n=HU(t);return{namespace:n,b:(r="")=>Cy(n.value,e,r,"",""),e:r=>r?Cy(n.value,e,"",r,""):"",m:r=>r?Cy(n.value,e,"","",r):"",be:(r,i)=>r&&i?Cy(n.value,e,r,i,""):"",em:(r,i)=>r&&i?Cy(n.value,e,"",r,i):"",bm:(r,i)=>r&&i?Cy(n.value,e,r,"",i):"",bem:(r,i,o)=>r&&i&&o?Cy(n.value,e,r,i,o):"",is:(r,...i)=>{const o=i.length>=1?i[0]:!0;return r&&o?`${Fze}${r}`:""},cssVar:r=>{const i={};for(const o in r)r[o]&&(i[`--${n.value}-${o}`]=r[o]);return i},cssVarName:r=>`--${n.value}-${r}`,cssVarBlock:r=>{const i={};for(const o in r)r[o]&&(i[`--${n.value}-${e}-${o}`]=r[o]);return i},cssVarBlockName:r=>`--${n.value}-${e}-${r}`}},Nze=(e,t={})=>{ni(e)||hc("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||cn("popup"),r=Bze(()=>n.bm("parent","hidden"));if(!Ii||_p(document.body,r.value))return;let i=0,o=!1,a="0";const s=()=>{setTimeout(()=>{s0(document==null?void 0:document.body,r.value),o&&document&&(document.body.style.width=a)},200)};Pt(e,l=>{if(!l){s();return}o=!_p(document.body,r.value),o&&(a=document.body.style.width),i=SHe(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=Ky(document.body,"overflowY");i>0&&(u||c==="scroll")&&o&&(document.body.style.width=`calc(100% - ${i}px)`),j2(document.body,r.value)}),Zye(()=>s())},Vze=AL({type:jt(Boolean),default:null}),jze=AL({type:jt(Function)}),Wze=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],i={[e]:Vze,[n]:jze};return{useModelToggle:({indicator:o,toggleReason:a,shouldHideWhenRouteChanges:s,shouldProceed:l,onShow:u,onHide:c})=>{const d=dr(),{emit:h}=d,f=d.props,g=Oe(()=>_i(f[n])),b=Oe(()=>f[e]===null),v=I=>{o.value!==!0&&(o.value=!0,a&&(a.value=I),_i(u)&&u(I))},m=I=>{o.value!==!1&&(o.value=!1,a&&(a.value=I),_i(c)&&c(I))},w=I=>{if(f.disabled===!0||_i(l)&&!l())return;const O=g.value&&Ii;O&&h(t,!0),(b.value||!O)&&v(I)},k=I=>{if(f.disabled===!0||!Ii)return;const O=g.value&&Ii;O&&h(t,!1),(b.value||!O)&&m(I)},T=I=>{ol(I)&&(f.disabled&&I?g.value&&h(t,!1):o.value!==I&&(I?v():m()))},S=()=>{o.value?k():w()};return Pt(()=>f[e],T),s&&d.appContext.config.globalProperties.$route!==void 0&&Pt(()=>({...d.proxy.$route}),()=>{s.value&&o.value&&k()}),_n(()=>{T(f[e])}),{hide:k,show:w,toggle:S,hasUpdateHandler:g}},useModelToggleProps:i,useModelToggleEmits:r}},Pwe=e=>{const t=dr();return Oe(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var uu="top",sd="bottom",ld="right",cu="left",zU="auto",A_=[uu,sd,ld,cu],SO="start",Z2="end",Hze="clippingParents",Dwe="viewport",fA="popper",zze="reference",ure=A_.reduce(function(e,t){return e.concat([t+"-"+SO,t+"-"+Z2])},[]),_x=[].concat(A_,[zU]).reduce(function(e,t){return e.concat([t,t+"-"+SO,t+"-"+Z2])},[]),Zze="beforeRead",Gze="read",Qze="afterRead",Uze="beforeMain",Xze="main",Yze="afterMain",Kze="beforeWrite",qze="write",Jze="afterWrite",eZe=[Zze,Gze,Qze,Uze,Xze,Yze,Kze,qze,Jze];function Vp(e){return e?(e.nodeName||"").toLowerCase():null}function bh(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function AO(e){var t=bh(e).Element;return e instanceof t||e instanceof Element}function Yc(e){var t=bh(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ZU(e){if(typeof ShadowRoot>"u")return!1;var t=bh(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function tZe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Yc(o)||!Vp(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function nZe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Yc(i)||!Vp(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}var Rwe={name:"applyStyles",enabled:!0,phase:"write",fn:tZe,effect:nZe,requires:["computeStyles"]};function Dp(e){return e.split("-")[0]}var bb=Math.max,q$=Math.min,IO=Math.round;function kO(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(Yc(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=IO(n.width)/a||1),o>0&&(i=IO(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function GU(e){var t=kO(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function $we(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ZU(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function bg(e){return bh(e).getComputedStyle(e)}function rZe(e){return["table","td","th"].indexOf(Vp(e))>=0}function P0(e){return((AO(e)?e.ownerDocument:e.document)||window.document).documentElement}function kL(e){return Vp(e)==="html"?e:e.assignedSlot||e.parentNode||(ZU(e)?e.host:null)||P0(e)}function cre(e){return!Yc(e)||bg(e).position==="fixed"?null:e.offsetParent}function iZe(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Yc(e)){var r=bg(e);if(r.position==="fixed")return null}var i=kL(e);for(ZU(i)&&(i=i.host);Yc(i)&&["html","body"].indexOf(Vp(i))<0;){var o=bg(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function I_(e){for(var t=bh(e),n=cre(e);n&&rZe(n)&&bg(n).position==="static";)n=cre(n);return n&&(Vp(n)==="html"||Vp(n)==="body"&&bg(n).position==="static")?t:n||iZe(e)||t}function QU(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kk(e,t,n){return bb(e,q$(t,n))}function oZe(e,t,n){var r=kk(e,t,n);return r>n?n:r}function Mwe(){return{top:0,right:0,bottom:0,left:0}}function Lwe(e){return Object.assign({},Mwe(),e)}function Bwe(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var aZe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Lwe(typeof e!="number"?e:Bwe(e,A_))};function sZe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Dp(n.placement),l=QU(s),u=[cu,ld].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var d=aZe(i.padding,n),h=GU(o),f=l==="y"?uu:cu,g=l==="y"?sd:ld,b=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],v=a[l]-n.rects.reference[l],m=I_(o),w=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,k=b/2-v/2,T=d[f],S=w-h[c]-d[g],I=w/2-h[c]/2+k,O=kk(T,I,S),y=l;n.modifiersData[r]=(t={},t[y]=O,t.centerOffset=O-I,t)}}function lZe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!$we(t.elements.popper,i)||(t.elements.arrow=i))}var uZe={name:"arrow",enabled:!0,phase:"main",fn:sZe,effect:lZe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function EO(e){return e.split("-")[1]}var cZe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dZe(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:IO(t*i)/i||0,y:IO(n*i)/i||0}}function dre(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,h=a.x,f=h===void 0?0:h,g=a.y,b=g===void 0?0:g,v=typeof c=="function"?c({x:f,y:b}):{x:f,y:b};f=v.x,b=v.y;var m=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),k=cu,T=uu,S=window;if(u){var I=I_(n),O="clientHeight",y="clientWidth";if(I===bh(n)&&(I=P0(n),bg(I).position!=="static"&&s==="absolute"&&(O="scrollHeight",y="scrollWidth")),I=I,i===uu||(i===cu||i===ld)&&o===Z2){T=sd;var _=d&&I===S&&S.visualViewport?S.visualViewport.height:I[O];b-=_-r.height,b*=l?1:-1}if(i===cu||(i===uu||i===sd)&&o===Z2){k=ld;var A=d&&I===S&&S.visualViewport?S.visualViewport.width:I[y];f-=A-r.width,f*=l?1:-1}}var R=Object.assign({position:s},u&&cZe),D=c===!0?dZe({x:f,y:b}):{x:f,y:b};if(f=D.x,b=D.y,l){var C;return Object.assign({},R,(C={},C[T]=w?"0":"",C[k]=m?"0":"",C.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+b+"px)":"translate3d("+f+"px, "+b+"px, 0)",C))}return Object.assign({},R,(t={},t[T]=w?b+"px":"",t[k]=m?f+"px":"",t.transform="",t))}function hZe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Dp(t.placement),variation:EO(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,dre(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,dre(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Fwe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hZe,data:{}},sD={passive:!0};function pZe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=bh(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,sD)}),s&&l.addEventListener("resize",n.update,sD),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,sD)}),s&&l.removeEventListener("resize",n.update,sD)}}var Nwe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pZe,data:{}},fZe={left:"right",right:"left",bottom:"top",top:"bottom"};function m3(e){return e.replace(/left|right|bottom|top/g,function(t){return fZe[t]})}var gZe={start:"end",end:"start"};function hre(e){return e.replace(/start|end/g,function(t){return gZe[t]})}function UU(e){var t=bh(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function XU(e){return kO(P0(e)).left+UU(e).scrollLeft}function mZe(e){var t=bh(e),n=P0(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+XU(e),y:s}}function vZe(e){var t,n=P0(e),r=UU(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=bb(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=bb(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+XU(e),l=-r.scrollTop;return bg(i||n).direction==="rtl"&&(s+=bb(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function YU(e){var t=bg(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Vwe(e){return["html","body","#document"].indexOf(Vp(e))>=0?e.ownerDocument.body:Yc(e)&&YU(e)?e:Vwe(kL(e))}function Ek(e,t){var n;t===void 0&&(t=[]);var r=Vwe(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=bh(r),a=i?[o].concat(o.visualViewport||[],YU(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Ek(kL(a)))}function pW(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yZe(e){var t=kO(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function pre(e,t){return t===Dwe?pW(mZe(e)):AO(t)?yZe(t):pW(vZe(P0(e)))}function bZe(e){var t=Ek(kL(e)),n=["absolute","fixed"].indexOf(bg(e).position)>=0,r=n&&Yc(e)?I_(e):e;return AO(r)?t.filter(function(i){return AO(i)&&$we(i,r)&&Vp(i)!=="body"}):[]}function wZe(e,t,n){var r=t==="clippingParents"?bZe(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(s,l){var u=pre(e,l);return s.top=bb(u.top,s.top),s.right=q$(u.right,s.right),s.bottom=q$(u.bottom,s.bottom),s.left=bb(u.left,s.left),s},pre(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function jwe(e){var t=e.reference,n=e.element,r=e.placement,i=r?Dp(r):null,o=r?EO(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case uu:l={x:a,y:t.y-n.height};break;case sd:l={x:a,y:t.y+t.height};break;case ld:l={x:t.x+t.width,y:s};break;case cu:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?QU(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case SO:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Z2:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function G2(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.boundary,a=o===void 0?Hze:o,s=n.rootBoundary,l=s===void 0?Dwe:s,u=n.elementContext,c=u===void 0?fA:u,d=n.altBoundary,h=d===void 0?!1:d,f=n.padding,g=f===void 0?0:f,b=Lwe(typeof g!="number"?g:Bwe(g,A_)),v=c===fA?zze:fA,m=e.rects.popper,w=e.elements[h?v:c],k=wZe(AO(w)?w:w.contextElement||P0(e.elements.popper),a,l),T=kO(e.elements.reference),S=jwe({reference:T,element:m,strategy:"absolute",placement:i}),I=pW(Object.assign({},m,S)),O=c===fA?I:T,y={top:k.top-O.top+b.top,bottom:O.bottom-k.bottom+b.bottom,left:k.left-O.left+b.left,right:O.right-k.right+b.right},_=e.modifiersData.offset;if(c===fA&&_){var A=_[i];Object.keys(y).forEach(function(R){var D=[ld,sd].indexOf(R)>=0?1:-1,C=[uu,sd].indexOf(R)>=0?"y":"x";y[R]+=A[C]*D})}return y}function CZe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?_x:l,c=EO(r),d=c?s?ure:ure.filter(function(g){return EO(g)===c}):A_,h=d.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=d);var f=h.reduce(function(g,b){return g[b]=G2(e,{placement:b,boundary:i,rootBoundary:o,padding:a})[Dp(b)],g},{});return Object.keys(f).sort(function(g,b){return f[g]-f[b]})}function OZe(e){if(Dp(e)===zU)return[];var t=m3(e);return[hre(e),t,hre(t)]}function xZe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,g=f===void 0?!0:f,b=n.allowedAutoPlacements,v=t.options.placement,m=Dp(v),w=m===v,k=l||(w||!g?[m3(v)]:OZe(v)),T=[v].concat(k).reduce(function(ue,ee){return ue.concat(Dp(ee)===zU?CZe(t,{placement:ee,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:b}):ee)},[]),S=t.rects.reference,I=t.rects.popper,O=new Map,y=!0,_=T[0],A=0;A<T.length;A++){var R=T[A],D=Dp(R),C=EO(R)===SO,x=[uu,sd].indexOf(D)>=0,P=x?"width":"height",$=G2(t,{placement:R,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),L=x?C?ld:cu:C?sd:uu;S[P]>I[P]&&(L=m3(L));var V=m3(L),H=[];if(o&&H.push($[D]<=0),s&&H.push($[L]<=0,$[V]<=0),H.every(function(ue){return ue})){_=R,y=!1;break}O.set(R,H)}if(y)for(var Q=g?3:1,U=function(ue){var ee=T.find(function(N){var q=O.get(N);if(q)return q.slice(0,ue).every(function(G){return G})});if(ee)return _=ee,"break"},K=Q;K>0;K--){var J=U(K);if(J==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}var SZe={name:"flip",enabled:!0,phase:"main",fn:xZe,requiresIfExists:["offset"],data:{_skip:!1}};function fre(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function gre(e){return[uu,ld,sd,cu].some(function(t){return e[t]>=0})}function AZe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=G2(t,{elementContext:"reference"}),s=G2(t,{altBoundary:!0}),l=fre(a,r),u=fre(s,i,o),c=gre(l),d=gre(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}var IZe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:AZe};function kZe(e,t,n){var r=Dp(e),i=[cu,uu].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[cu,ld].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function EZe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=_x.reduce(function(c,d){return c[d]=kZe(d,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var _Ze={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:EZe};function TZe(e){var t=e.state,n=e.name;t.modifiersData[n]=jwe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Wwe={name:"popperOffsets",enabled:!0,phase:"read",fn:TZe,data:{}};function PZe(e){return e==="x"?"y":"x"}function DZe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,f=h===void 0?!0:h,g=n.tetherOffset,b=g===void 0?0:g,v=G2(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=Dp(t.placement),w=EO(t.placement),k=!w,T=QU(m),S=PZe(T),I=t.modifiersData.popperOffsets,O=t.rects.reference,y=t.rects.popper,_=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,A=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(I){if(o){var C,x=T==="y"?uu:cu,P=T==="y"?sd:ld,$=T==="y"?"height":"width",L=I[T],V=L+v[x],H=L-v[P],Q=f?-y[$]/2:0,U=w===SO?O[$]:y[$],K=w===SO?-y[$]:-O[$],J=t.elements.arrow,ue=f&&J?GU(J):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Mwe(),N=ee[x],q=ee[P],G=kk(0,O[$],ue[$]),ne=k?O[$]/2-Q-G-N-A.mainAxis:U-G-N-A.mainAxis,le=k?-O[$]/2+Q+G+q+A.mainAxis:K+G+q+A.mainAxis,oe=t.elements.arrow&&I_(t.elements.arrow),ve=oe?T==="y"?oe.clientTop||0:oe.clientLeft||0:0,de=(C=R==null?void 0:R[T])!=null?C:0,ae=L+ne-de-ve,be=L+le-de,ie=kk(f?q$(V,ae):V,L,f?bb(H,be):H);I[T]=ie,D[T]=ie-L}if(s){var ce,pe=T==="x"?uu:cu,X=T==="x"?sd:ld,Z=I[S],Y=S==="y"?"height":"width",se=Z+v[pe],fe=Z-v[X],me=[uu,cu].indexOf(m)!==-1,Ae=(ce=R==null?void 0:R[S])!=null?ce:0,Be=me?se:Z-O[Y]-y[Y]-Ae+A.altAxis,Ye=me?Z+O[Y]+y[Y]-Ae-A.altAxis:fe,Qe=f&&me?oZe(Be,Z,Ye):kk(f?Be:se,Z,f?Ye:fe);I[S]=Qe,D[S]=Qe-Z}t.modifiersData[r]=D}}var RZe={name:"preventOverflow",enabled:!0,phase:"main",fn:DZe,requiresIfExists:["offset"]};function $Ze(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function MZe(e){return e===bh(e)||!Yc(e)?UU(e):$Ze(e)}function LZe(e){var t=e.getBoundingClientRect(),n=IO(t.width)/e.offsetWidth||1,r=IO(t.height)/e.offsetHeight||1;return n!==1||r!==1}function BZe(e,t,n){n===void 0&&(n=!1);var r=Yc(t),i=Yc(t)&&LZe(t),o=P0(t),a=kO(e,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Vp(t)!=="body"||YU(o))&&(s=MZe(t)),Yc(t)?(l=kO(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=XU(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function FZe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function NZe(e){var t=FZe(e);return eZe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function VZe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function jZe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var mre={placement:"bottom",modifiers:[],strategy:"absolute"};function vre(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function KU(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?mre:i;return function(a,s,l){l===void 0&&(l=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},mre,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},c=[],d=!1,h={state:u,setOptions:function(b){var v=typeof b=="function"?b(u.options):b;g(),u.options=Object.assign({},o,u.options,v),u.scrollParents={reference:AO(a)?Ek(a):a.contextElement?Ek(a.contextElement):[],popper:Ek(s)};var m=NZe(jZe([].concat(r,u.options.modifiers)));return u.orderedModifiers=m.filter(function(w){return w.enabled}),f(),h.update()},forceUpdate:function(){if(!d){var b=u.elements,v=b.reference,m=b.popper;if(vre(v,m)){u.rects={reference:BZe(v,I_(m),u.options.strategy==="fixed"),popper:GU(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(y){return u.modifiersData[y.name]=Object.assign({},y.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var k=u.orderedModifiers[w],T=k.fn,S=k.options,I=S===void 0?{}:S,O=k.name;typeof T=="function"&&(u=T({state:u,options:I,name:O,instance:h})||u)}}}},update:VZe(function(){return new Promise(function(b){h.forceUpdate(),b(u)})}),destroy:function(){g(),d=!0}};if(!vre(a,s))return h;h.setOptions(l).then(function(b){!d&&l.onFirstUpdate&&l.onFirstUpdate(b)});function f(){u.orderedModifiers.forEach(function(b){var v=b.name,m=b.options,w=m===void 0?{}:m,k=b.effect;if(typeof k=="function"){var T=k({state:u,name:v,instance:h,options:w}),S=function(){};c.push(T||S)}})}function g(){c.forEach(function(b){return b()}),c=[]}return h}}KU();var WZe=[Nwe,Wwe,Fwe,Rwe];KU({defaultModifiers:WZe});var HZe=[Nwe,Wwe,Fwe,Rwe,_Ze,SZe,RZe,uZe,IZe],Hwe=KU({defaultModifiers:HZe});const zZe=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=ZZe(l);Object.assign(a.value,u)},requires:["computeStyles"]},i=Oe(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:d}=W(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),o=so(),a=Re({styles:{popper:{position:W(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return Pt(i,l=>{const u=W(o);u&&u.setOptions(l)},{deep:!0}),Pt([e,t],([l,u])=>{s(),!(!l||!u)&&(o.value=Hwe(l,u,W(i)))}),Mo(()=>{s()}),{state:Oe(()=>{var l;return{...((l=W(o))==null?void 0:l.state)||{}}}),styles:Oe(()=>W(a).styles),attributes:Oe(()=>W(a).attributes),update:()=>{var l;return(l=W(o))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=W(o))==null?void 0:l.forceUpdate()},instanceRef:Oe(()=>W(o))}};function ZZe(e){const t=Object.keys(e.elements),n=Y$(t.map(i=>[i,e.styles[i]||{}])),r=Y$(t.map(i=>[i,e.attributes[i]]));return{styles:n,attributes:r}}const zwe=e=>{if(!e)return{onClick:go,onMousedown:go,onMouseup:go};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}};function yre(){let e;const t=(r,i)=>{n(),e=window.setTimeout(r,i)},n=()=>window.clearTimeout(e);return mL(()=>n()),{registerTimeout:t,cancelTimeout:n}}const bre={prefix:Math.floor(Math.random()*1e4),current:0},GZe=Symbol("elIdInjection"),Zwe=()=>dr()?Ht(GZe,bre):bre,c0=e=>{const t=Zwe(),n=HU();return Oe(()=>W(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let yC=[];const wre=e=>{const t=e;t.key===nr.esc&&yC.forEach(n=>n(t))},QZe=e=>{_n(()=>{yC.length===0&&document.addEventListener("keydown",wre),Ii&&yC.push(e)}),Mo(()=>{yC=yC.filter(t=>t!==e),yC.length===0&&Ii&&document.removeEventListener("keydown",wre)})};let Cre;const Gwe=()=>{const e=HU(),t=Zwe(),n=Oe(()=>`${e.value}-popper-container-${t.prefix}`),r=Oe(()=>`#${n.value}`);return{id:n,selector:r}},UZe=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},XZe=()=>{const{id:e,selector:t}=Gwe();return Kp(()=>{Ii&&!Cre&&!document.body.querySelector(t.value)&&(Cre=UZe(e.value))}),{id:e,selector:t}},YZe=Tn({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Qwe=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:i})=>{const{registerTimeout:o}=yre(),{registerTimeout:a,cancelTimeout:s}=yre();return{onOpen:l=>{o(()=>{r(l);const u=W(n);$r(u)&&u>0&&a(()=>{i(l)},u)},W(e))},onClose:l=>{s(),o(()=>{i(l)},W(t))}}},Uwe=Symbol("elForwardRef"),KZe=e=>{Or(Uwe,{setForwardRef:t=>{e.value=t}})},qZe=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Ore=Re(0),Xwe=2e3,Ywe=Symbol("zIndexContextKey"),EL=e=>{const t=e||(dr()?Ht(Ywe,void 0):void 0),n=Oe(()=>{const i=W(t);return $r(i)?i:Xwe}),r=Oe(()=>n.value+Ore.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(Ore.value++,r.value)}};function JZe(e){const t=Re();function n(){if(e.value==null)return;const{selectionStart:i,selectionEnd:o,value:a}=e.value;if(i==null||o==null)return;const s=a.slice(0,Math.max(0,i)),l=a.slice(Math.max(0,o));t.value={selectionStart:i,selectionEnd:o,value:a,beforeTxt:s,afterTxt:l}}function r(){if(e.value==null||t.value==null)return;const{value:i}=e.value,{beforeTxt:o,afterTxt:a,selectionStart:s}=t.value;if(o==null||a==null||s==null)return;let l=i.length;if(i.endsWith(a))l=i.length-a.length;else if(i.startsWith(o))l=o.length;else{const u=o[s-1],c=i.indexOf(u,s-1);c!==-1&&(l=c+1)}e.value.setSelectionRange(l,l)}return[n,r]}const eGe=(e,t,n)=>f3(e.subTree).filter(r=>{var i;return Ll(r)&&((i=r.type)==null?void 0:i.name)===t&&!!r.component}).map(r=>r.component.uid).map(r=>n[r]).filter(r=>!!r),tGe=(e,t)=>{const n={},r=so([]);return{children:r,addChild:i=>{n[i.uid]=i,r.value=eGe(e,t,n)},removeChild:i=>{delete n[i],r.value=r.value.filter(o=>o.uid!==i)}}},Fl=AL({type:String,values:Ex,required:!1}),Kwe=Symbol("size"),nGe=()=>{const e=Ht(Kwe,{});return Oe(()=>W(e.size)||"")};function qwe(e,{afterFocus:t,beforeBlur:n,afterBlur:r}={}){const i=dr(),{emit:o}=i,a=so(),s=Re(!1),l=d=>{s.value||(s.value=!0,o("focus",d),t==null||t())},u=d=>{var h;_i(n)&&n(d)||d.relatedTarget&&(h=a.value)!=null&&h.contains(d.relatedTarget)||(s.value=!1,o("blur",d),r==null||r())},c=()=>{var d;(d=e.value)==null||d.focus()};return Pt(a,d=>{d&&d.setAttribute("tabindex","-1")}),lu(a,"click",c),{wrapperRef:a,isFocused:s,handleFocus:l,handleBlur:u}}const Jwe=Symbol(),J$=Re();function _L(e,t=void 0){const n=dr()?Ht(Jwe,J$):J$;return e?Oe(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[e])!=null?i:t}):n}function eCe(e,t){const n=_L(),r=cn(e,Oe(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||Ik})),i=uo(Oe(()=>{var s;return(s=n.value)==null?void 0:s.locale})),o=EL(Oe(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||Xwe})),a=Oe(()=>{var s;return W(t)||((s=n.value)==null?void 0:s.size)||""});return rGe(Oe(()=>W(n)||{})),{ns:r,locale:i,zIndex:o,size:a}}const rGe=(e,t,n=!1)=>{var r;const i=!!dr(),o=i?_L():void 0,a=(r=void 0)!=null?r:i?Or:void 0;if(!a)return;const s=Oe(()=>{const l=W(e);return o!=null&&o.value?iGe(o.value,l):l});return a(Jwe,s),a(kwe,Oe(()=>s.value.locale)),a(Twe,Oe(()=>s.value.namespace)),a(Ywe,Oe(()=>s.value.zIndex)),a(Kwe,{size:Oe(()=>s.value.size||"")}),(n||!J$.value)&&(J$.value=s.value),s},iGe=(e,t)=>{var n;const r=[...new Set([...cW(e),...cW(t)])],i={};for(const o of r)i[o]=(n=t[o])!=null?n:e[o];return i};Tn({a11y:{type:Boolean,default:!0},locale:{type:jt(Object)},size:Fl,button:{type:jt(Object)},experimentalFeatures:{type:jt(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:jt(Object)},zIndex:Number,namespace:{type:String,default:"el"}});const xre={};var Bn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const oGe=Tn({size:{type:jt([Number,String])},color:{type:String}}),aGe=ft({name:"ElIcon",inheritAttrs:!1}),sGe=ft({...aGe,props:oGe,setup(e){const t=e,n=cn("icon"),r=Oe(()=>{const{size:i,color:o}=t;return!i&&!o?{}:{fontSize:rl(i)?void 0:ad(i),"--color":o}});return(i,o)=>(Ce(),We("i",jr({class:W(n).b(),style:W(r)},i.$attrs),[rn(i.$slots,"default")],16))}});var lGe=Bn(sGe,[["__file","icon.vue"]]);const Ln=Xi(lGe),uGe=["light","dark"],cGe=Tn({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:cW(K$),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:uGe,default:"light"}}),dGe={close:e=>e instanceof MouseEvent},hGe=ft({name:"ElAlert"}),pGe=ft({...hGe,props:cGe,emits:dGe,setup(e,{emit:t}){const n=e,{Close:r}=Swe,i=yd(),o=cn("alert"),a=Re(!0),s=Oe(()=>K$[n.type]),l=Oe(()=>[o.e("icon"),{[o.is("big")]:!!n.description||!!i.default}]),u=Oe(()=>({[o.is("bold")]:n.description||i.default})),c=d=>{a.value=!1,t("close",d)};return(d,h)=>(Ce(),mt(ic,{name:W(o).b("fade"),persisted:""},{default:ot(()=>[Kn(at("div",{class:De([W(o).b(),W(o).m(d.type),W(o).is("center",d.center),W(o).is(d.effect)]),role:"alert"},[d.showIcon&&W(s)?(Ce(),mt(W(Ln),{key:0,class:De(W(l))},{default:ot(()=>[(Ce(),mt(ei(W(s))))]),_:1},8,["class"])):xt("v-if",!0),at("div",{class:De(W(o).e("content"))},[d.title||d.$slots.title?(Ce(),We("span",{key:0,class:De([W(o).e("title"),W(u)])},[rn(d.$slots,"title",{},()=>[gr(en(d.title),1)])],2)):xt("v-if",!0),d.$slots.default||d.description?(Ce(),We("p",{key:1,class:De(W(o).e("description"))},[rn(d.$slots,"default",{},()=>[gr(en(d.description),1)])],2)):xt("v-if",!0),d.closable?(Ce(),We(un,{key:2},[d.closeText?(Ce(),We("div",{key:0,class:De([W(o).e("close-btn"),W(o).is("customed")]),onClick:c},en(d.closeText),3)):(Ce(),mt(W(Ln),{key:1,class:De(W(o).e("close-btn")),onClick:c},{default:ot(()=>[xe(W(r))]),_:1},8,["class"]))],64)):xt("v-if",!0)],2)],2),[[Ni,a.value]])]),_:3},8,["name"]))}});var fGe=Bn(pGe,[["__file","alert.vue"]]);const gGe=Xi(fGe),A1=Symbol("formContextKey"),d0=Symbol("formItemContextKey"),js=(e,t={})=>{const n=Re(void 0),r=t.prop?n:Pwe("size"),i=t.global?n:nGe(),o=t.form?{size:void 0}:Ht(A1,void 0),a=t.formItem?{size:void 0}:Ht(d0,void 0);return Oe(()=>r.value||W(e)||(a==null?void 0:a.size)||(o==null?void 0:o.size)||i.value||"")},bd=e=>{const t=Pwe("disabled"),n=Ht(A1,void 0);return Oe(()=>t.value||W(e)||(n==null?void 0:n.disabled)||!1)},bu=()=>{const e=Ht(A1,void 0),t=Ht(d0,void 0);return{form:e,formItem:t}},D0=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=Re(!1)),r||(r=Re(!1));const i=Re();let o;const a=Oe(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return _n(()=>{o=Pt([yo(e,"id"),n],([s,l])=>{const u=s??(l?void 0:c0().value);u!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(r!=null&&r.value)&&!l&&u&&t.addInputId(u)),i.value=u)},{immediate:!0})}),qp(()=>{o&&o(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:a,inputId:i}},mGe=Tn({size:{type:String,values:Ex},disabled:Boolean}),vGe=Tn({...mGe,model:Object,rules:{type:jt(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),yGe={validate:(e,t,n)=>(Tr(e)||vi(e))&&ol(t)&&vi(n)};function bGe(){const e=Re([]),t=Oe(()=>{if(!e.value.length)return"0";const o=Math.max(...e.value);return o?`${o}px`:""});function n(o){const a=e.value.indexOf(o);return a===-1&&t.value==="0"&&void 0,a}function r(o,a){if(o&&a){const s=n(a);e.value.splice(s,1,o)}else o&&e.value.push(o)}function i(o){const a=n(o);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:i}}const lD=(e,t)=>{const n=N2(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},wGe="ElForm",CGe=ft({name:wGe}),OGe=ft({...CGe,props:vGe,emits:yGe,setup(e,{expose:t,emit:n}){const r=e,i=[],o=js(),a=cn("form"),s=Oe(()=>{const{labelPosition:w,inline:k}=r;return[a.b(),a.m(o.value||"default"),{[a.m(`label-${w}`)]:w,[a.m("inline")]:k}]}),l=w=>{i.push(w)},u=w=>{w.prop&&i.splice(i.indexOf(w),1)},c=(w=[])=>{r.model&&lD(i,w).forEach(k=>k.resetField())},d=(w=[])=>{lD(i,w).forEach(k=>k.clearValidate())},h=Oe(()=>!!r.model),f=w=>{if(i.length===0)return[];const k=lD(i,w);return k.length?k:[]},g=async w=>v(void 0,w),b=async(w=[])=>{if(!h.value)return!1;const k=f(w);if(k.length===0)return!0;let T={};for(const S of k)try{await S.validate("")}catch(I){T={...T,...I}}return Object.keys(T).length===0?!0:Promise.reject(T)},v=async(w=[],k)=>{const T=!_i(k);try{const S=await b(w);return S===!0&&(k==null||k(S)),S}catch(S){if(S instanceof Error)throw S;const I=S;return r.scrollToError&&m(Object.keys(I)[0]),k==null||k(!1,I),T&&Promise.reject(I)}},m=w=>{var k;const T=lD(i,w)[0];T&&((k=T.$el)==null||k.scrollIntoView(r.scrollIntoViewOptions))};return Pt(()=>r.rules,()=>{r.validateOnRuleChange&&g().catch(w=>void 0)},{deep:!0}),Or(A1,Br({...rc(r),emit:n,resetFields:c,clearValidate:d,validateField:v,addField:l,removeField:u,...bGe()})),t({validate:g,validateField:v,resetFields:c,clearValidate:d,scrollToField:m}),(w,k)=>(Ce(),We("form",{class:De(W(s))},[rn(w.$slots,"default")],2))}});var xGe=Bn(OGe,[["__file","form.vue"]]),Sre={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\0\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_10888_QPTCCULLXHJGEDNM",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"DESKTOP-U452U79",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GIT_ASKPASS:"c:\\Users\\0\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\0",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\0",INIT_CWD:"D:\\物管理\\组态大屏编辑器开发\\vue-form-craft",JAVA_HOME:"D:\\software\\jdk1.8",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\0\\AppData\\Local",LOGONSERVER:"\\\\DESKTOP-U452U79",MAVEN_HOME:"D:\\software\\apache-maven-3.6.3-bin\\apache-maven-3.6.3",NODE:"C:\\Program Files\\nodejs\\node.exe",NODE_ENV:"production",NODE_OPTIONS:"",NODE_PATH:"D:\\鐗╃鐞哱缁勬€佸ぇ灞忕紪杈戝櫒寮€鍙慭vue-form-craft\\node_modules\\.pnpm\\vite@5.0.10_@types+node@20.10.5_less@4.2.0\\node_modules\\vite\\bin\\node_modules;D:\\鐗╃鐞哱缁勬€佸ぇ灞忕紪杈戝櫒寮€鍙慭vue-form-craft\\node_modules\\.pnpm\\vite@5.0.10_@types+node@20.10.5_less@4.2.0\\node_modules\\vite\\node_modules;D:\\鐗╃鐞哱缁勬€佸ぇ灞忕紪杈戝櫒寮€鍙慭vue-form-craft\\node_modules\\.pnpm\\vite@5.0.10_@types+node@20.10.5_less@4.2.0\\node_modules;D:\\鐗╃鐞哱缁勬€佸ぇ灞忕紪杈戝櫒寮€鍙慭vue-form-craft\\node_modules\\.pnpm\\node_modules",npm_command:"run-script",npm_config_frozen_lockfile:"",npm_config_node_gyp:"C:\\Users\\0\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_registry:"https://registry.npmmirror.com/",npm_config_user_agent:"pnpm/8.15.4 npm/? node/v20.11.1 win32 x64",npm_execpath:"C:\\Users\\0\\AppData\\Roaming\\npm\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build",npm_lifecycle_script:'vite build "--mode" "release"',npm_node_execpath:"C:\\Program Files\\nodejs\\node.exe",npm_package_dependencies_axios:"^1.6.2",npm_package_dependencies_codemirror:"^5.65.16",npm_package_dependencies_codemirror_editor_vue3:"^2.4.1",npm_package_dependencies_element_plus:"^2.4.4",npm_package_dependencies_json_editor_vue3:"^1.0.9",npm_package_dependencies_less:"^4.2.0",npm_package_dependencies_lodash:"^4.17.21",npm_package_dependencies_md_editor_v3:"^4.10.0",npm_package_dependencies_vue:"^3.3.11",npm_package_dependencies_vuedraggable_es:"^4.1.1",npm_package_dependencies_vue_router:"^4.2.5",npm_package_dependencies__originjs_vite_plugin_commonjs:"^1.0.3",npm_package_dependencies__wangeditor_editor:"^5.1.23",npm_package_dependencies__wangeditor_editor_for_vue:"^5.1.12",npm_package_devDependencies_eslint:"^8.49.0",npm_package_devDependencies_eslint_plugin_vue:"^9.17.0",npm_package_devDependencies_npm_run_all2:"^6.1.1",npm_package_devDependencies_ora:"^5.1.0",npm_package_devDependencies_prettier:"^3.0.3",npm_package_devDependencies_scp2:"^0.5.0",npm_package_devDependencies_typescript:"~5.3.0",npm_package_devDependencies_vite:"^5.0.10",npm_package_devDependencies_vite_plugin_dts:"^3.7.3",npm_package_devDependencies_vite_plugin_libcss:"^1.1.1",npm_package_devDependencies_vue_tsc:"^1.8.27",npm_package_devDependencies__rushstack_eslint_patch:"^1.3.3",npm_package_devDependencies__tsconfig_node20:"^20.1.2",npm_package_devDependencies__types_lodash:"^4.14.202",npm_package_devDependencies__types_node:"^20.10.5",npm_package_devDependencies__vitejs_plugin_vue:"^4.5.2",npm_package_devDependencies__vitejs_plugin_vue_jsx:"^3.1.0",npm_package_devDependencies__vue_eslint_config_prettier:"^8.0.0",npm_package_devDependencies__vue_eslint_config_typescript:"^12.0.0",npm_package_devDependencies__vue_tsconfig:"^0.5.1",npm_package_files_0:"dist",npm_package_files_1:"global.d.ts",npm_package_keywords_0:"component",npm_package_keywords_1:"vue",npm_package_keywords_2:"form",npm_package_keywords_3:"element-ui",npm_package_main:"./dist/vue-form-craft.mjs",npm_package_module:"./dist/vue-form-craft.mjs",npm_package_name:"@dsmcase/vue-form-craft",npm_package_private:"false",npm_package_scripts_build:'vite build "--mode" "release"',npm_package_scripts_build_deploy:"pnpm build && node ./deploy.js",npm_package_scripts_build_release:"npm run release&& npm version patch && npm publish",npm_package_scripts_dev:"vite",npm_package_scripts_format:"prettier --write src/",npm_package_scripts_lint:"eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",npm_package_scripts_preview:"vite preview",npm_package_scripts_release:"pnpm build --mode release",npm_package_scripts_type_check:"vue-tsc --build --force",npm_package_type:"commonjs",npm_package_types:"./dist/types/src/release/index.d.ts",npm_package_version:"3.0.2",NUMBER_OF_PROCESSORS:"12",NVM_HOME:"C:\\Users\\0\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\Program Files\\nodejs",OneDrive:"C:\\Users\\0\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\物管理\\组态大屏编辑器开发\\vue-form-craft\\node_modules\\.bin;C:\\Users\\0\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\物管理\\组态大屏编辑器开发\\vue-form-craft\\node_modules\\.bin;C:\\Users\\0\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\node-gyp-bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;D:\\software\\jdk1.8\\bin;D:\\software\\apache-maven-3.6.3-bin\\apache-maven-3.6.3\\bin;C:\\Program Files\\MongoDB\\Server\\4.4\\bin;C:\\MinGW\\bin;C:\\Program Files\\dotnet\\;C:\\Users\\0\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Users\\0\\.windows-build-tools\\python27\\;C:\\Users\\0\\scoop\\shims;C:\\Users\\0\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\0\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\0\\AppData\\Roaming\\nvm;D:\\software\\apache-maven-3.6.3-bin\\apache-maven-3.6.3;C:\\Users\\0\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\0\\AppData\\Roaming\\npm;C:\\Users\\0\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_SCRIPT_SRC_DIR:"D:\\物管理\\组态大屏编辑器开发\\vue-form-craft",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 165 Stepping 3, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"a503",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\0\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\0\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.93.0",TMP:"C:\\Users\\0\\AppData\\Local\\Temp",USERDOMAIN:"DESKTOP-U452U79",USERDOMAIN_ROAMINGPROFILE:"DESKTOP-U452U79",USERNAME:"0",USERPROFILE:"C:\\Users\\0",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\0\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\0\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-378785486d-sock",VSCODE_INJECTION:"1",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1"};function ob(){return ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ob.apply(this,arguments)}function SGe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Q2(e,t)}function fW(e){return fW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fW(e)}function Q2(e,t){return Q2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Q2(e,t)}function AGe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function v3(e,t,n){return AGe()?v3=Reflect.construct.bind():v3=function(r,i,o){var a=[null];a.push.apply(a,i);var s=Function.bind.apply(r,a),l=new s;return o&&Q2(l,o.prototype),l},v3.apply(null,arguments)}function IGe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function gW(e){var t=typeof Map=="function"?new Map:void 0;return gW=function(n){if(n===null||!IGe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return v3(n,arguments,fW(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Q2(r,n)},gW(e)}var kGe=/%[sdj%]/g,tCe=function(){};typeof process<"u"&&Sre&&Sre.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(tCe=function(e,t){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&t.every(function(n){return typeof n=="string"})&&console.warn(e,t)});function mW(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Ku(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(kGe,function(s){if(s==="%%")return"%";if(i>=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function EGe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ls(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||EGe(t)&&typeof e=="string"&&!e)}function _Ge(e,t,n){var r=[],i=0,o=e.length;function a(s){r.push.apply(r,s||[]),i++,i===o&&n(r)}e.forEach(function(s){t(s,a)})}function Are(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<i?t(e[s],o):n([])}o([])}function TGe(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var Ire=function(e){SGe(t,e);function t(n,r){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return t}(gW(Error));function PGe(e,t,n,r,i){if(t.first){var o=new Promise(function(h,f){var g=function(v){return r(v),v.length?f(new Ire(v,mW(v))):h(i)},b=TGe(e);Are(b,n,g)});return o.catch(function(h){return h}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],d=new Promise(function(h,f){var g=function(b){if(c.push.apply(c,b),u++,u===l)return r(c),c.length?f(new Ire(c,mW(c))):h(i)};s.length||(r(c),h(i)),s.forEach(function(b){var v=e[b];a.indexOf(b)!==-1?Are(v,n,g):_Ge(v,n,g)})});return d.catch(function(h){return h}),d}function DGe(e){return!!(e&&e.message!==void 0)}function RGe(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function kre(e,t){return function(n){var r;return e.fullFields?r=RGe(t,e.fullFields):r=t[n.field||e.fullField],DGe(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Ere(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=ob({},e[n],r):e[n]=r}}return e}var nCe=function(e,t,n,r,i,o){e.required&&(!n.hasOwnProperty(e.field)||ls(t,o||e.type))&&r.push(Ku(i.messages.required,e.fullField))},$Ge=function(e,t,n,r,i){(/^\s+$/.test(t)||t==="")&&r.push(Ku(i.messages.whitespace,e.fullField))},uD,MGe=function(){if(uD)return uD;var e="[a-fA-F\\d:]",t=function(k){return k&&k.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(`
|
|
(?:
|
|
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),l=function(k){return k&&k.exact?o:new RegExp("(?:"+t(k)+n+t(k)+")|(?:"+t(k)+i+t(k)+")","g")};l.v4=function(k){return k&&k.exact?a:new RegExp(""+t(k)+n+t(k),"g")},l.v6=function(k){return k&&k.exact?s:new RegExp(""+t(k)+i+t(k),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,h=l.v6().source,f="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',w="(?:"+u+"|www\\.)"+c+"(?:localhost|"+d+"|"+h+"|"+f+g+b+")"+v+m;return uD=new RegExp("(?:^"+w+"$)","i"),uD},_re={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},XI={integer:function(e){return XI.number(e)&&parseInt(e,10)===e},float:function(e){return XI.number(e)&&!XI.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!XI.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(_re.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(MGe())},hex:function(e){return typeof e=="string"&&!!e.match(_re.hex)}},LGe=function(e,t,n,r,i){if(e.required&&t===void 0){nCe(e,t,n,r,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;o.indexOf(a)>-1?XI[a](t)||r.push(Ku(i.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(Ku(i.messages.types[a],e.fullField,e.type))},BGe=function(e,t,n,r,i){var o=typeof e.len=="number",a=typeof e.min=="number",s=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=t,c=null,d=typeof t=="number",h=typeof t=="string",f=Array.isArray(t);if(d?c="number":h?c="string":f&&(c="array"),!c)return!1;f&&(u=t.length),h&&(u=t.replace(l,"_").length),o?u!==e.len&&r.push(Ku(i.messages[c].len,e.fullField,e.len)):a&&!s&&u<e.min?r.push(Ku(i.messages[c].min,e.fullField,e.min)):s&&!a&&u>e.max?r.push(Ku(i.messages[c].max,e.fullField,e.max)):a&&s&&(u<e.min||u>e.max)&&r.push(Ku(i.messages[c].range,e.fullField,e.min,e.max))},Tw="enum",FGe=function(e,t,n,r,i){e[Tw]=Array.isArray(e[Tw])?e[Tw]:[],e[Tw].indexOf(t)===-1&&r.push(Ku(i.messages[Tw],e.fullField,e[Tw].join(", ")))},NGe=function(e,t,n,r,i){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Ku(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(t)||r.push(Ku(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},li={required:nCe,whitespace:$Ge,type:LGe,range:BGe,enum:FGe,pattern:NGe},VGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(ls(t,"string")&&!e.required)return n();li.required(e,t,r,o,i,"string"),ls(t,"string")||(li.type(e,t,r,o,i),li.range(e,t,r,o,i),li.pattern(e,t,r,o,i),e.whitespace===!0&&li.whitespace(e,t,r,o,i))}n(o)},jGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(ls(t)&&!e.required)return n();li.required(e,t,r,o,i),t!==void 0&&li.type(e,t,r,o,i)}n(o)},WGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(t===""&&(t=void 0),ls(t)&&!e.required)return n();li.required(e,t,r,o,i),t!==void 0&&(li.type(e,t,r,o,i),li.range(e,t,r,o,i))}n(o)},HGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(ls(t)&&!e.required)return n();li.required(e,t,r,o,i),t!==void 0&&li.type(e,t,r,o,i)}n(o)},zGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(ls(t)&&!e.required)return n();li.required(e,t,r,o,i),ls(t)||li.type(e,t,r,o,i)}n(o)},ZGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(ls(t)&&!e.required)return n();li.required(e,t,r,o,i),t!==void 0&&(li.type(e,t,r,o,i),li.range(e,t,r,o,i))}n(o)},GGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(ls(t)&&!e.required)return n();li.required(e,t,r,o,i),t!==void 0&&(li.type(e,t,r,o,i),li.range(e,t,r,o,i))}n(o)},QGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(t==null&&!e.required)return n();li.required(e,t,r,o,i,"array"),t!=null&&(li.type(e,t,r,o,i),li.range(e,t,r,o,i))}n(o)},UGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(ls(t)&&!e.required)return n();li.required(e,t,r,o,i),t!==void 0&&li.type(e,t,r,o,i)}n(o)},XGe="enum",YGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(ls(t)&&!e.required)return n();li.required(e,t,r,o,i),t!==void 0&&li[XGe](e,t,r,o,i)}n(o)},KGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(ls(t,"string")&&!e.required)return n();li.required(e,t,r,o,i),ls(t,"string")||li.pattern(e,t,r,o,i)}n(o)},qGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(ls(t,"date")&&!e.required)return n();if(li.required(e,t,r,o,i),!ls(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),li.type(e,s,r,o,i),s&&li.range(e,s.getTime(),r,o,i)}}n(o)},JGe=function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":typeof t;li.required(e,t,r,o,i,a),n(o)},VF=function(e,t,n,r,i){var o=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(ls(t,o)&&!e.required)return n();li.required(e,t,r,a,i,o),ls(t,o)||li.type(e,t,r,a,i)}n(a)},eQe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(ls(t)&&!e.required)return n();li.required(e,t,r,o,i)}n(o)},_k={string:VGe,method:jGe,number:WGe,boolean:HGe,regexp:zGe,integer:ZGe,float:GGe,array:QGe,object:UGe,enum:YGe,pattern:KGe,date:qGe,url:VF,hex:VF,email:VF,required:JGe,any:eQe};function vW(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var yW=vW(),k_=function(){function e(n){this.rules=null,this._messages=yW,this.define(n)}var t=e.prototype;return t.define=function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];r.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=Ere(vW(),n)),this._messages},t.validate=function(n,r,i){var o=this;r===void 0&&(r={}),i===void 0&&(i=function(){});var a=n,s=r,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function u(g){var b=[],v={};function m(k){if(Array.isArray(k)){var T;b=(T=b).concat.apply(T,k)}else b.push(k)}for(var w=0;w<g.length;w++)m(g[w]);b.length?(v=mW(b),l(b,v)):l(null,a)}if(s.messages){var c=this.messages();c===yW&&(c=vW()),Ere(c,s.messages),s.messages=c}else s.messages=this.messages();var d={},h=s.keys||Object.keys(this.rules);h.forEach(function(g){var b=o.rules[g],v=a[g];b.forEach(function(m){var w=m;typeof w.transform=="function"&&(a===n&&(a=ob({},a)),v=a[g]=w.transform(v)),typeof w=="function"?w={validator:w}:w=ob({},w),w.validator=o.getValidationMethod(w),w.validator&&(w.field=g,w.fullField=w.fullField||g,w.type=o.getType(w),d[g]=d[g]||[],d[g].push({rule:w,value:v,source:a,field:g}))})});var f={};return PGe(d,s,function(g,b){var v=g.rule,m=(v.type==="object"||v.type==="array")&&(typeof v.fields=="object"||typeof v.defaultField=="object");m=m&&(v.required||!v.required&&g.value),v.field=g.field;function w(S,I){return ob({},I,{fullField:v.fullField+"."+S,fullFields:v.fullFields?[].concat(v.fullFields,[S]):[S]})}function k(S){S===void 0&&(S=[]);var I=Array.isArray(S)?S:[S];!s.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&v.message!==void 0&&(I=[].concat(v.message));var O=I.map(kre(v,a));if(s.first&&O.length)return f[v.field]=1,b(O);if(!m)b(O);else{if(v.required&&!g.value)return v.message!==void 0?O=[].concat(v.message).map(kre(v,a)):s.error&&(O=[s.error(v,Ku(s.messages.required,v.field))]),b(O);var y={};v.defaultField&&Object.keys(g.value).map(function(R){y[R]=v.defaultField}),y=ob({},y,g.rule.fields);var _={};Object.keys(y).forEach(function(R){var D=y[R],C=Array.isArray(D)?D:[D];_[R]=C.map(w.bind(null,R))});var A=new e(_);A.messages(s.messages),g.rule.options&&(g.rule.options.messages=s.messages,g.rule.options.error=s.error),A.validate(g.value,g.rule.options||s,function(R){var D=[];O&&O.length&&D.push.apply(D,O),R&&R.length&&D.push.apply(D,R),b(D.length?D:null)})}}var T;if(v.asyncValidator)T=v.asyncValidator(v,g.value,k,g.source,s);else if(v.validator){try{T=v.validator(v,g.value,k,g.source,s)}catch(S){console.error==null||console.error(S),s.suppressValidatorError||setTimeout(function(){throw S},0),k(S.message)}T===!0?k():T===!1?k(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||(v.fullField||v.field)+" fails"):T instanceof Array?k(T):T instanceof Error&&k(T.message)}T&&T.then&&T.then(function(){return k()},function(S){return k(S)})},function(g){u(g)},a)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!_k.hasOwnProperty(n.type))throw new Error(Ku("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?_k.required:_k[this.getType(n)]||void 0},e}();k_.register=function(e,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");_k[e]=t};k_.warning=tCe;k_.messages=yW;k_.validators=_k;const tQe=["","error","validating","success"],nQe=Tn({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:jt([String,Array])},required:{type:Boolean,default:void 0},rules:{type:jt([Object,Array])},error:String,validateStatus:{type:String,values:tQe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Ex}}),Tre="ElLabelWrap";var rQe=ft({name:Tre,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Ht(A1,void 0),r=Ht(d0);r||hc(Tre,"usage: <el-form-item><label-wrap /></el-form-item>");const i=cn("form"),o=Re(),a=Re(0),s=()=>{var c;if((c=o.value)!=null&&c.firstElementChild){const d=window.getComputedStyle(o.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},l=(c="update")=>{mn(()=>{t.default&&e.isAutoWidth&&(c==="update"?a.value=s():c==="remove"&&(n==null||n.deregisterLabelWidth(a.value)))})},u=()=>l("update");return _n(()=>{u()}),Mo(()=>{l("remove")}),C1(()=>u()),Pt(a,(c,d)=>{e.updateAll&&(n==null||n.registerLabelWidth(c,d))}),uh(Oe(()=>{var c,d;return(d=(c=o.value)==null?void 0:c.firstElementChild)!=null?d:null}),u),()=>{var c,d;if(!t)return null;const{isAutoWidth:h}=e;if(h){const f=n==null?void 0:n.autoLabelWidth,g=r==null?void 0:r.hasLabel,b={};if(g&&f&&f!=="auto"){const v=Math.max(0,Number.parseInt(f,10)-a.value),m=n.labelPosition==="left"?"marginRight":"marginLeft";v&&(b[m]=`${v}px`)}return xe("div",{ref:o,class:[i.be("item","label-wrap")],style:b},[(c=t.default)==null?void 0:c.call(t)])}else return xe(un,{ref:o},[(d=t.default)==null?void 0:d.call(t)])}}});const iQe=["role","aria-labelledby"],oQe=ft({name:"ElFormItem"}),aQe=ft({...oQe,props:nQe,setup(e,{expose:t}){const n=e,r=yd(),i=Ht(A1,void 0),o=Ht(d0,void 0),a=js(void 0,{formItem:!1}),s=cn("form-item"),l=c0().value,u=Re([]),c=Re(""),d=e6e(c,100),h=Re(""),f=Re();let g,b=!1;const v=Oe(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const q=ad(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return q?{width:q}:{}}),m=Oe(()=>{if((i==null?void 0:i.labelPosition)==="top"||i!=null&&i.inline)return{};if(!n.label&&!n.labelWidth&&_)return{};const q=ad(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return!n.label&&!r.label?{marginLeft:q}:{}}),w=Oe(()=>[s.b(),s.m(a.value),s.is("error",c.value==="error"),s.is("validating",c.value==="validating"),s.is("success",c.value==="success"),s.is("required",x.value||n.required),s.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:i==null?void 0:i.statusIcon}]),k=Oe(()=>ol(n.inlineMessage)?n.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),T=Oe(()=>[s.e("error"),{[s.em("error","inline")]:k.value}]),S=Oe(()=>n.prop?vi(n.prop)?n.prop:n.prop.join("."):""),I=Oe(()=>!!(n.label||r.label)),O=Oe(()=>n.for||(u.value.length===1?u.value[0]:void 0)),y=Oe(()=>!O.value&&I.value),_=!!o,A=Oe(()=>{const q=i==null?void 0:i.model;if(!(!q||!n.prop))return p3(q,n.prop).value}),R=Oe(()=>{const{required:q}=n,G=[];n.rules&&G.push(...N2(n.rules));const ne=i==null?void 0:i.rules;if(ne&&n.prop){const le=p3(ne,n.prop).value;le&&G.push(...N2(le))}if(q!==void 0){const le=G.map((oe,ve)=>[oe,ve]).filter(([oe])=>Object.keys(oe).includes("required"));if(le.length>0)for(const[oe,ve]of le)oe.required!==q&&(G[ve]={...oe,required:q});else G.push({required:q})}return G}),D=Oe(()=>R.value.length>0),C=q=>R.value.filter(G=>!G.trigger||!q?!0:Array.isArray(G.trigger)?G.trigger.includes(q):G.trigger===q).map(({trigger:G,...ne})=>ne),x=Oe(()=>R.value.some(q=>q.required)),P=Oe(()=>{var q;return d.value==="error"&&n.showMessage&&((q=i==null?void 0:i.showMessage)!=null?q:!0)}),$=Oe(()=>`${n.label||""}${(i==null?void 0:i.labelSuffix)||""}`),L=q=>{c.value=q},V=q=>{var G,ne;const{errors:le,fields:oe}=q;(!le||!oe)&&console.error(q),L("error"),h.value=le?(ne=(G=le==null?void 0:le[0])==null?void 0:G.message)!=null?ne:`${n.prop} is required`:"",i==null||i.emit("validate",n.prop,!1,h.value)},H=()=>{L("success"),i==null||i.emit("validate",n.prop,!0,"")},Q=async q=>{const G=S.value;return new k_({[G]:q}).validate({[G]:A.value},{firstFields:!0}).then(()=>(H(),!0)).catch(ne=>(V(ne),Promise.reject(ne)))},U=async(q,G)=>{if(b||!n.prop)return!1;const ne=_i(G);if(!D.value)return G==null||G(!1),!1;const le=C(q);return le.length===0?(G==null||G(!0),!0):(L("validating"),Q(le).then(()=>(G==null||G(!0),!0)).catch(oe=>{const{fields:ve}=oe;return G==null||G(!1,ve),ne?!1:Promise.reject(ve)}))},K=()=>{L(""),h.value="",b=!1},J=async()=>{const q=i==null?void 0:i.model;if(!q||!n.prop)return;const G=p3(q,n.prop);b=!0,G.value=tre(g),await mn(),K(),b=!1},ue=q=>{u.value.includes(q)||u.value.push(q)},ee=q=>{u.value=u.value.filter(G=>G!==q)};Pt(()=>n.error,q=>{h.value=q||"",L(q?"error":"")},{immediate:!0}),Pt(()=>n.validateStatus,q=>L(q||""));const N=Br({...rc(n),$el:f,size:a,validateState:c,labelId:l,inputIds:u,isGroup:y,hasLabel:I,addInputId:ue,removeInputId:ee,resetField:J,clearValidate:K,validate:U});return Or(d0,N),_n(()=>{n.prop&&(i==null||i.addField(N),g=tre(A.value))}),Mo(()=>{i==null||i.removeField(N)}),t({size:a,validateMessage:h,validateState:c,validate:U,clearValidate:K,resetField:J}),(q,G)=>{var ne;return Ce(),We("div",{ref_key:"formItemRef",ref:f,class:De(W(w)),role:W(y)?"group":void 0,"aria-labelledby":W(y)?W(l):void 0},[xe(W(rQe),{"is-auto-width":W(v).width==="auto","update-all":((ne=W(i))==null?void 0:ne.labelWidth)==="auto"},{default:ot(()=>[W(I)?(Ce(),mt(ei(W(O)?"label":"div"),{key:0,id:W(l),for:W(O),class:De(W(s).e("label")),style:En(W(v))},{default:ot(()=>[rn(q.$slots,"label",{label:W($)},()=>[gr(en(W($)),1)])]),_:3},8,["id","for","class","style"])):xt("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),at("div",{class:De(W(s).e("content")),style:En(W(m))},[rn(q.$slots,"default"),xe(hU,{name:`${W(s).namespace.value}-zoom-in-top`},{default:ot(()=>[W(P)?rn(q.$slots,"error",{key:0,error:h.value},()=>[at("div",{class:De(W(T))},en(h.value),3)]):xt("v-if",!0)]),_:3},8,["name"])],6)],10,iQe)}}});var rCe=Bn(aQe,[["__file","form-item.vue"]]);const sQe=Xi(xGe,{FormItem:rCe}),iCe=yh(rCe);let Ld;const lQe=`
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
${v6e()?"":"overflow:hidden !important;"}
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important;
|
|
`,uQe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function cQe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:uQe.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function Pre(e,t=1,n){var r;Ld||(Ld=document.createElement("textarea"),document.body.appendChild(Ld));const{paddingSize:i,borderSize:o,boxSizing:a,contextStyle:s}=cQe(e);Ld.setAttribute("style",`${s};${lQe}`),Ld.value=e.value||e.placeholder||"";let l=Ld.scrollHeight;const u={};a==="border-box"?l=l+o:a==="content-box"&&(l=l-i),Ld.value="";const c=Ld.scrollHeight-i;if($r(t)){let d=c*t;a==="border-box"&&(d=d+i+o),l=Math.max(d,l),u.minHeight=`${d}px`}if($r(n)){let d=c*n;a==="border-box"&&(d=d+i+o),l=Math.min(d,l)}return u.height=`${l}px`,(r=Ld.parentNode)==null||r.removeChild(Ld),Ld=void 0,u}const dQe=Tn({id:{type:String,default:void 0},size:Fl,disabled:Boolean,modelValue:{type:jt([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:jt([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:iu},prefixIcon:{type:iu},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:jt([Object,Array,String]),default:()=>dh({})},autofocus:{type:Boolean,default:!1}}),hQe={[ur]:e=>vi(e),input:e=>vi(e),change:e=>vi(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},pQe=["role"],fQe=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],gQe=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],mQe=ft({name:"ElInput",inheritAttrs:!1}),vQe=ft({...mQe,props:dQe,emits:hQe,setup(e,{expose:t,emit:n}){const r=e,i=g_(),o=yd(),a=Oe(()=>{const me={};return r.containerRole==="combobox"&&(me["aria-haspopup"]=i["aria-haspopup"],me["aria-owns"]=i["aria-owns"],me["aria-expanded"]=i["aria-expanded"]),me}),s=Oe(()=>[r.type==="textarea"?v.b():b.b(),b.m(f.value),b.is("disabled",g.value),b.is("exceed",ue.value),{[b.b("group")]:o.prepend||o.append,[b.bm("group","append")]:o.append,[b.bm("group","prepend")]:o.prepend,[b.m("prefix")]:o.prefix||r.prefixIcon,[b.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[b.bm("suffix","password-clear")]:Q.value&&U.value},i.class]),l=Oe(()=>[b.e("wrapper"),b.is("focus",A.value)]),u=wze({excludeKeys:Oe(()=>Object.keys(a.value))}),{form:c,formItem:d}=bu(),{inputId:h}=D0(r,{formItemContext:d}),f=js(),g=bd(),b=cn("input"),v=cn("textarea"),m=so(),w=so(),k=Re(!1),T=Re(!1),S=Re(!1),I=Re(),O=so(r.inputStyle),y=Oe(()=>m.value||w.value),{wrapperRef:_,isFocused:A,handleFocus:R,handleBlur:D}=qwe(y,{afterBlur(){var me;r.validateEvent&&((me=d==null?void 0:d.validate)==null||me.call(d,"blur").catch(Ae=>void 0))}}),C=Oe(()=>{var me;return(me=c==null?void 0:c.statusIcon)!=null?me:!1}),x=Oe(()=>(d==null?void 0:d.validateState)||""),P=Oe(()=>x.value&&Awe[x.value]),$=Oe(()=>S.value?ize:ZHe),L=Oe(()=>[i.style,r.inputStyle]),V=Oe(()=>[r.inputStyle,O.value,{resize:r.resize}]),H=Oe(()=>il(r.modelValue)?"":String(r.modelValue)),Q=Oe(()=>r.clearable&&!g.value&&!r.readonly&&!!H.value&&(A.value||k.value)),U=Oe(()=>r.showPassword&&!g.value&&!r.readonly&&!!H.value&&(!!H.value||A.value)),K=Oe(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!g.value&&!r.readonly&&!r.showPassword),J=Oe(()=>H.value.length),ue=Oe(()=>!!K.value&&J.value>Number(u.value.maxlength)),ee=Oe(()=>!!o.suffix||!!r.suffixIcon||Q.value||r.showPassword||K.value||!!x.value&&C.value),[N,q]=JZe(m);uh(w,me=>{if(ne(),!K.value||r.resize!=="both")return;const Ae=me[0],{width:Be}=Ae.contentRect;I.value={right:`calc(100% - ${Be+15+6}px)`}});const G=()=>{const{type:me,autosize:Ae}=r;if(!(!Ii||me!=="textarea"||!w.value))if(Ae){const Be=Ha(Ae)?Ae.minRows:void 0,Ye=Ha(Ae)?Ae.maxRows:void 0,Qe=Pre(w.value,Be,Ye);O.value={overflowY:"hidden",...Qe},mn(()=>{w.value.offsetHeight,O.value=Qe})}else O.value={minHeight:Pre(w.value).minHeight}},ne=(me=>{let Ae=!1;return()=>{var Be;Ae||!r.autosize||((Be=w.value)==null?void 0:Be.offsetParent)===null||(me(),Ae=!0)}})(G),le=()=>{const me=y.value,Ae=r.formatter?r.formatter(H.value):H.value;!me||me.value===Ae||(me.value=Ae)},oe=async me=>{N();let{value:Ae}=me.target;if(r.formatter&&(Ae=r.parser?r.parser(Ae):Ae),!T.value){if(Ae===H.value){le();return}n(ur,Ae),n("input",Ae),await mn(),le(),q()}},ve=me=>{n("change",me.target.value)},de=me=>{n("compositionstart",me),T.value=!0},ae=me=>{var Ae;n("compositionupdate",me);const Be=(Ae=me.target)==null?void 0:Ae.value,Ye=Be[Be.length-1]||"";T.value=!jU(Ye)},be=me=>{n("compositionend",me),T.value&&(T.value=!1,oe(me))},ie=()=>{S.value=!S.value,ce()},ce=async()=>{var me;await mn(),(me=y.value)==null||me.focus()},pe=()=>{var me;return(me=y.value)==null?void 0:me.blur()},X=me=>{k.value=!1,n("mouseleave",me)},Z=me=>{k.value=!0,n("mouseenter",me)},Y=me=>{n("keydown",me)},se=()=>{var me;(me=y.value)==null||me.select()},fe=()=>{n(ur,""),n("change",""),n("clear"),n("input","")};return Pt(()=>r.modelValue,()=>{var me;mn(()=>G()),r.validateEvent&&((me=d==null?void 0:d.validate)==null||me.call(d,"change").catch(Ae=>void 0))}),Pt(H,()=>le()),Pt(()=>r.type,async()=>{await mn(),le(),G()}),_n(()=>{!r.formatter&&r.parser&&void 0,le(),mn(G)}),t({input:m,textarea:w,ref:y,textareaStyle:V,autosize:yo(r,"autosize"),focus:ce,blur:pe,select:se,clear:fe,resizeTextarea:G}),(me,Ae)=>Kn((Ce(),We("div",jr(W(a),{class:W(s),style:W(L),role:me.containerRole,onMouseenter:Z,onMouseleave:X}),[xt(" input "),me.type!=="textarea"?(Ce(),We(un,{key:0},[xt(" prepend slot "),me.$slots.prepend?(Ce(),We("div",{key:0,class:De(W(b).be("group","prepend"))},[rn(me.$slots,"prepend")],2)):xt("v-if",!0),at("div",{ref_key:"wrapperRef",ref:_,class:De(W(l))},[xt(" prefix slot "),me.$slots.prefix||me.prefixIcon?(Ce(),We("span",{key:0,class:De(W(b).e("prefix"))},[at("span",{class:De(W(b).e("prefix-inner"))},[rn(me.$slots,"prefix"),me.prefixIcon?(Ce(),mt(W(Ln),{key:0,class:De(W(b).e("icon"))},{default:ot(()=>[(Ce(),mt(ei(me.prefixIcon)))]),_:1},8,["class"])):xt("v-if",!0)],2)],2)):xt("v-if",!0),at("input",jr({id:W(h),ref_key:"input",ref:m,class:W(b).e("inner")},W(u),{type:me.showPassword?S.value?"text":"password":me.type,disabled:W(g),formatter:me.formatter,parser:me.parser,readonly:me.readonly,autocomplete:me.autocomplete,tabindex:me.tabindex,"aria-label":me.label,placeholder:me.placeholder,style:me.inputStyle,form:r.form,autofocus:r.autofocus,onCompositionstart:de,onCompositionupdate:ae,onCompositionend:be,onInput:oe,onFocus:Ae[0]||(Ae[0]=(...Be)=>W(R)&&W(R)(...Be)),onBlur:Ae[1]||(Ae[1]=(...Be)=>W(D)&&W(D)(...Be)),onChange:ve,onKeydown:Y}),null,16,fQe),xt(" suffix slot "),W(ee)?(Ce(),We("span",{key:1,class:De(W(b).e("suffix"))},[at("span",{class:De(W(b).e("suffix-inner"))},[!W(Q)||!W(U)||!W(K)?(Ce(),We(un,{key:0},[rn(me.$slots,"suffix"),me.suffixIcon?(Ce(),mt(W(Ln),{key:0,class:De(W(b).e("icon"))},{default:ot(()=>[(Ce(),mt(ei(me.suffixIcon)))]),_:1},8,["class"])):xt("v-if",!0)],64)):xt("v-if",!0),W(Q)?(Ce(),mt(W(Ln),{key:1,class:De([W(b).e("icon"),W(b).e("clear")]),onMousedown:rr(W(go),["prevent"]),onClick:fe},{default:ot(()=>[xe(W(Ix))]),_:1},8,["class","onMousedown"])):xt("v-if",!0),W(U)?(Ce(),mt(W(Ln),{key:2,class:De([W(b).e("icon"),W(b).e("password")]),onClick:ie},{default:ot(()=>[(Ce(),mt(ei(W($))))]),_:1},8,["class"])):xt("v-if",!0),W(K)?(Ce(),We("span",{key:3,class:De(W(b).e("count"))},[at("span",{class:De(W(b).e("count-inner"))},en(W(J))+" / "+en(W(u).maxlength),3)],2)):xt("v-if",!0),W(x)&&W(P)&&W(C)?(Ce(),mt(W(Ln),{key:4,class:De([W(b).e("icon"),W(b).e("validateIcon"),W(b).is("loading",W(x)==="validating")])},{default:ot(()=>[(Ce(),mt(ei(W(P))))]),_:1},8,["class"])):xt("v-if",!0)],2)],2)):xt("v-if",!0)],2),xt(" append slot "),me.$slots.append?(Ce(),We("div",{key:1,class:De(W(b).be("group","append"))},[rn(me.$slots,"append")],2)):xt("v-if",!0)],64)):(Ce(),We(un,{key:1},[xt(" textarea "),at("textarea",jr({id:W(h),ref_key:"textarea",ref:w,class:W(v).e("inner")},W(u),{tabindex:me.tabindex,disabled:W(g),readonly:me.readonly,autocomplete:me.autocomplete,style:W(V),"aria-label":me.label,placeholder:me.placeholder,form:r.form,autofocus:r.autofocus,onCompositionstart:de,onCompositionupdate:ae,onCompositionend:be,onInput:oe,onFocus:Ae[2]||(Ae[2]=(...Be)=>W(R)&&W(R)(...Be)),onBlur:Ae[3]||(Ae[3]=(...Be)=>W(D)&&W(D)(...Be)),onChange:ve,onKeydown:Y}),null,16,gQe),W(K)?(Ce(),We("span",{key:0,style:En(I.value),class:De(W(b).e("count"))},en(W(J))+" / "+en(W(u).maxlength),7)):xt("v-if",!0)],64))],16,pQe)),[[Ni,me.type!=="hidden"]])}});var yQe=Bn(vQe,[["__file","input.vue"]]);const Fs=Xi(yQe),PC=4,bQe={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},wQe=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),oCe=Symbol("scrollbarContextKey"),CQe=Tn({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),OQe="Thumb",xQe=ft({__name:"thumb",props:CQe,setup(e){const t=e,n=Ht(oCe),r=cn("scrollbar");n||hc(OQe,"can not inject scrollbar context");const i=Re(),o=Re(),a=Re({}),s=Re(!1);let l=!1,u=!1,c=Ii?document.onselectstart:null;const d=Oe(()=>bQe[t.vertical?"vertical":"horizontal"]),h=Oe(()=>wQe({size:t.size,move:t.move,bar:d.value})),f=Oe(()=>i.value[d.value.offset]**2/n.wrapElement[d.value.scrollSize]/t.ratio/o.value[d.value.offset]),g=I=>{var O;if(I.stopPropagation(),I.ctrlKey||[1,2].includes(I.button))return;(O=window.getSelection())==null||O.removeAllRanges(),v(I);const y=I.currentTarget;y&&(a.value[d.value.axis]=y[d.value.offset]-(I[d.value.client]-y.getBoundingClientRect()[d.value.direction]))},b=I=>{if(!o.value||!i.value||!n.wrapElement)return;const O=Math.abs(I.target.getBoundingClientRect()[d.value.direction]-I[d.value.client]),y=o.value[d.value.offset]/2,_=(O-y)*100*f.value/i.value[d.value.offset];n.wrapElement[d.value.scroll]=_*n.wrapElement[d.value.scrollSize]/100},v=I=>{I.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",w),c=document.onselectstart,document.onselectstart=()=>!1},m=I=>{if(!i.value||!o.value||l===!1)return;const O=a.value[d.value.axis];if(!O)return;const y=(i.value.getBoundingClientRect()[d.value.direction]-I[d.value.client])*-1,_=o.value[d.value.offset]-O,A=(y-_)*100*f.value/i.value[d.value.offset];n.wrapElement[d.value.scroll]=A*n.wrapElement[d.value.scrollSize]/100},w=()=>{l=!1,a.value[d.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",w),S(),u&&(s.value=!1)},k=()=>{u=!1,s.value=!!t.size},T=()=>{u=!0,s.value=l};Mo(()=>{S(),document.removeEventListener("mouseup",w)});const S=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return lu(yo(n,"scrollbarElement"),"mousemove",k),lu(yo(n,"scrollbarElement"),"mouseleave",T),(I,O)=>(Ce(),mt(ic,{name:W(r).b("fade"),persisted:""},{default:ot(()=>[Kn(at("div",{ref_key:"instance",ref:i,class:De([W(r).e("bar"),W(r).is(W(d).key)]),onMousedown:b},[at("div",{ref_key:"thumb",ref:o,class:De(W(r).e("thumb")),style:En(W(h)),onMousedown:g},null,38)],34),[[Ni,I.always||s.value]])]),_:1},8,["name"]))}});var Dre=Bn(xQe,[["__file","thumb.vue"]]);const SQe=Tn({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),AQe=ft({__name:"bar",props:SQe,setup(e,{expose:t}){const n=e,r=Re(0),i=Re(0);return t({handleScroll:o=>{if(o){const a=o.offsetHeight-PC,s=o.offsetWidth-PC;i.value=o.scrollTop*100/a*n.ratioY,r.value=o.scrollLeft*100/s*n.ratioX}}}),(o,a)=>(Ce(),We(un,null,[xe(Dre,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),xe(Dre,{move:i.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var IQe=Bn(AQe,[["__file","bar.vue"]]);const kQe=Tn({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:jt([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),EQe={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every($r)},_Qe="ElScrollbar",TQe=ft({name:_Qe}),PQe=ft({...TQe,props:kQe,emits:EQe,setup(e,{expose:t,emit:n}){const r=e,i=cn("scrollbar");let o,a;const s=Re(),l=Re(),u=Re(),c=Re("0"),d=Re("0"),h=Re(),f=Re(1),g=Re(1),b=Oe(()=>{const O={};return r.height&&(O.height=ad(r.height)),r.maxHeight&&(O.maxHeight=ad(r.maxHeight)),[r.wrapStyle,O]}),v=Oe(()=>[r.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!r.native}]),m=Oe(()=>[i.e("view"),r.viewClass]),w=()=>{var O;l.value&&((O=h.value)==null||O.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function k(O,y){Ha(O)?l.value.scrollTo(O):$r(O)&&$r(y)&&l.value.scrollTo(O,y)}const T=O=>{$r(O)&&(l.value.scrollTop=O)},S=O=>{$r(O)&&(l.value.scrollLeft=O)},I=()=>{if(!l.value)return;const O=l.value.offsetHeight-PC,y=l.value.offsetWidth-PC,_=O**2/l.value.scrollHeight,A=y**2/l.value.scrollWidth,R=Math.max(_,r.minSize),D=Math.max(A,r.minSize);f.value=_/(O-_)/(R/(O-R)),g.value=A/(y-A)/(D/(y-D)),d.value=R+PC<O?`${R}px`:"",c.value=D+PC<y?`${D}px`:""};return Pt(()=>r.noresize,O=>{O?(o==null||o(),a==null||a()):({stop:o}=uh(u,I),a=lu("resize",I))},{immediate:!0}),Pt(()=>[r.maxHeight,r.height],()=>{r.native||mn(()=>{var O;I(),l.value&&((O=h.value)==null||O.handleScroll(l.value))})}),Or(oCe,Br({scrollbarElement:s,wrapElement:l})),_n(()=>{r.native||mn(()=>{I()})}),C1(()=>I()),t({wrapRef:l,update:I,scrollTo:k,setScrollTop:T,setScrollLeft:S,handleScroll:w}),(O,y)=>(Ce(),We("div",{ref_key:"scrollbarRef",ref:s,class:De(W(i).b())},[at("div",{ref_key:"wrapRef",ref:l,class:De(W(v)),style:En(W(b)),onScroll:w},[(Ce(),mt(ei(O.tag),{id:O.id,ref_key:"resizeRef",ref:u,class:De(W(m)),style:En(O.viewStyle),role:O.role,"aria-label":O.ariaLabel,"aria-orientation":O.ariaOrientation},{default:ot(()=>[rn(O.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),O.native?xt("v-if",!0):(Ce(),mt(IQe,{key:0,ref_key:"barRef",ref:h,height:d.value,width:c.value,always:O.always,"ratio-x":g.value,"ratio-y":f.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var DQe=Bn(PQe,[["__file","scrollbar.vue"]]);const Tx=Xi(DQe),qU=Symbol("popper"),aCe=Symbol("popperContent"),RQe=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],sCe=Tn({role:{type:String,values:RQe,default:"tooltip"}}),$Qe=ft({name:"ElPopper",inheritAttrs:!1}),MQe=ft({...$Qe,props:sCe,setup(e,{expose:t}){const n=e,r=Re(),i=Re(),o=Re(),a=Re(),s=Oe(()=>n.role),l={triggerRef:r,popperInstanceRef:i,contentRef:o,referenceRef:a,role:s};return t(l),Or(qU,l),(u,c)=>rn(u.$slots,"default")}});var LQe=Bn(MQe,[["__file","popper.vue"]]);const lCe=Tn({arrowOffset:{type:Number,default:5}}),BQe=ft({name:"ElPopperArrow",inheritAttrs:!1}),FQe=ft({...BQe,props:lCe,setup(e,{expose:t}){const n=e,r=cn("popper"),{arrowOffset:i,arrowRef:o,arrowStyle:a}=Ht(aCe,void 0);return Pt(()=>n.arrowOffset,s=>{i.value=s}),Mo(()=>{o.value=void 0}),t({arrowRef:o}),(s,l)=>(Ce(),We("span",{ref_key:"arrowRef",ref:o,class:De(W(r).e("arrow")),style:En(W(a)),"data-popper-arrow":""},null,6))}});var NQe=Bn(FQe,[["__file","arrow.vue"]]);const VQe="ElOnlyChild",jQe=ft({name:VQe,setup(e,{slots:t,attrs:n}){var r;const i=Ht(Uwe),o=qZe((r=i==null?void 0:i.setForwardRef)!=null?r:go);return()=>{var a;const s=(a=t.default)==null?void 0:a.call(t,n);if(!s||s.length>1)return null;const l=uCe(s);return l?Kn(id(l,n),[[o]]):null}}});function uCe(e){if(!e)return null;const t=e;for(const n of t){if(Ha(n))switch(n.type){case vs:continue;case Ox:case"svg":return Rre(n);case un:return uCe(n.children);default:return n}return Rre(n)}return null}function Rre(e){const t=cn("only-child");return xe("span",{class:t.e("content")},[e])}const cCe=Tn({virtualRef:{type:jt(Object)},virtualTriggering:Boolean,onMouseenter:{type:jt(Function)},onMouseleave:{type:jt(Function)},onClick:{type:jt(Function)},onKeydown:{type:jt(Function)},onFocus:{type:jt(Function)},onBlur:{type:jt(Function)},onContextmenu:{type:jt(Function)},id:String,open:Boolean}),WQe=ft({name:"ElPopperTrigger",inheritAttrs:!1}),HQe=ft({...WQe,props:cCe,setup(e,{expose:t}){const n=e,{role:r,triggerRef:i}=Ht(qU,void 0);KZe(i);const o=Oe(()=>s.value?n.id:void 0),a=Oe(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=Oe(()=>{if(r&&r.value!=="tooltip")return r.value}),l=Oe(()=>s.value?`${n.open}`:void 0);let u;return _n(()=>{Pt(()=>n.virtualRef,c=>{c&&(i.value=rg(c))},{immediate:!0}),Pt(i,(c,d)=>{u==null||u(),u=void 0,Xb(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(h=>{var f;const g=n[h];g&&(c.addEventListener(h.slice(2).toLowerCase(),g),(f=d==null?void 0:d.removeEventListener)==null||f.call(d,h.slice(2).toLowerCase(),g))}),u=Pt([o,a,s,l],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((f,g)=>{il(h[g])?c.removeAttribute(f):c.setAttribute(f,h[g])})},{immediate:!0})),Xb(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>d.removeAttribute(h))},{immediate:!0})}),Mo(()=>{u==null||u(),u=void 0}),t({triggerRef:i}),(c,d)=>c.virtualTriggering?xt("v-if",!0):(Ce(),mt(W(jQe),jr({key:0},c.$attrs,{"aria-controls":W(o),"aria-describedby":W(a),"aria-expanded":W(l),"aria-haspopup":W(s)}),{default:ot(()=>[rn(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var zQe=Bn(HQe,[["__file","trigger.vue"]]);const jF="focus-trap.focus-after-trapped",WF="focus-trap.focus-after-released",ZQe="focus-trap.focusout-prevented",$re={cancelable:!0,bubbles:!1},GQe={cancelable:!0,bubbles:!1},Mre="focusAfterTrapped",Lre="focusAfterReleased",dCe=Symbol("elFocusTrap"),JU=Re(),TL=Re(0),eX=Re(0);let cD=0;const hCe=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Bre=(e,t)=>{for(const n of e)if(!QQe(n,t))return n},QQe=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},UQe=e=>{const t=hCe(e),n=Bre(t,e),r=Bre(t.reverse(),e);return[n,r]},XQe=e=>e instanceof HTMLInputElement&&"select"in e,Km=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),eX.value=window.performance.now(),e!==n&&XQe(e)&&t&&e.select()}};function Fre(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const YQe=()=>{let e=[];return{push:t=>{const n=e[0];n&&t!==n&&n.pause(),e=Fre(e,t),e.unshift(t)},remove:t=>{var n,r;e=Fre(e,t),(r=(n=e[0])==null?void 0:n.resume)==null||r.call(n)}}},KQe=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Km(r,t),document.activeElement!==n)return},Nre=YQe(),qQe=()=>TL.value>eX.value,dD=()=>{JU.value="pointer",TL.value=window.performance.now()},Vre=()=>{JU.value="keyboard",TL.value=window.performance.now()},JQe=()=>(_n(()=>{cD===0&&(document.addEventListener("mousedown",dD),document.addEventListener("touchstart",dD),document.addEventListener("keydown",Vre)),cD++}),Mo(()=>{cD--,cD<=0&&(document.removeEventListener("mousedown",dD),document.removeEventListener("touchstart",dD),document.removeEventListener("keydown",Vre))}),{focusReason:JU,lastUserFocusTimestamp:TL,lastAutomatedFocusTimestamp:eX}),hD=e=>new CustomEvent(ZQe,{...GQe,detail:e}),eUe=ft({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Mre,Lre,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=Re();let r,i;const{focusReason:o}=JQe();QZe(g=>{e.trapped&&!a.paused&&t("release-requested",g)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=g=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:b,altKey:v,ctrlKey:m,metaKey:w,currentTarget:k,shiftKey:T}=g,{loop:S}=e,I=b===nr.tab&&!v&&!m&&!w,O=document.activeElement;if(I&&O){const y=k,[_,A]=UQe(y);if(_&&A){if(!T&&O===A){const R=hD({focusReason:o.value});t("focusout-prevented",R),R.defaultPrevented||(g.preventDefault(),S&&Km(_,!0))}else if(T&&[_,y].includes(O)){const R=hD({focusReason:o.value});t("focusout-prevented",R),R.defaultPrevented||(g.preventDefault(),S&&Km(A,!0))}}else if(O===y){const R=hD({focusReason:o.value});t("focusout-prevented",R),R.defaultPrevented||g.preventDefault()}}};Or(dCe,{focusTrapRef:n,onKeydown:s}),Pt(()=>e.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),Pt([n],([g],[b])=>{g&&(g.addEventListener("keydown",s),g.addEventListener("focusin",c),g.addEventListener("focusout",d)),b&&(b.removeEventListener("keydown",s),b.removeEventListener("focusin",c),b.removeEventListener("focusout",d))});const l=g=>{t(Mre,g)},u=g=>t(Lre,g),c=g=>{const b=W(n);if(!b)return;const v=g.target,m=g.relatedTarget,w=v&&b.contains(v);e.trapped||m&&b.contains(m)||(r=m),w&&t("focusin",g),!a.paused&&e.trapped&&(w?i=v:Km(i,!0))},d=g=>{const b=W(n);if(!(a.paused||!b))if(e.trapped){const v=g.relatedTarget;!il(v)&&!b.contains(v)&&setTimeout(()=>{if(!a.paused&&e.trapped){const m=hD({focusReason:o.value});t("focusout-prevented",m),m.defaultPrevented||Km(i,!0)}},0)}else{const v=g.target;v&&b.contains(v)||t("focusout",g)}};async function h(){await mn();const g=W(n);if(g){Nre.push(a);const b=g.contains(document.activeElement)?r:document.activeElement;if(r=b,!g.contains(b)){const v=new Event(jF,$re);g.addEventListener(jF,l),g.dispatchEvent(v),v.defaultPrevented||mn(()=>{let m=e.focusStartEl;vi(m)||(Km(m),document.activeElement!==m&&(m="first")),m==="first"&&KQe(hCe(g),!0),(document.activeElement===b||m==="container")&&Km(g)})}}}function f(){const g=W(n);if(g){g.removeEventListener(jF,l);const b=new CustomEvent(WF,{...$re,detail:{focusReason:o.value}});g.addEventListener(WF,u),g.dispatchEvent(b),!b.defaultPrevented&&(o.value=="keyboard"||!qQe()||g.contains(document.activeElement))&&Km(r??document.body),g.removeEventListener(WF,u),Nre.remove(a)}}return _n(()=>{e.trapped&&h(),Pt(()=>e.trapped,g=>{g?h():f()})}),Mo(()=>{e.trapped&&f()}),{onKeydown:s}}});function tUe(e,t,n,r,i,o){return rn(e.$slots,"default",{handleKeydown:e.onKeydown})}var tX=Bn(eUe,[["render",tUe],["__file","focus-trap.vue"]]);const nUe=["fixed","absolute"],rUe=Tn({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:jt(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:_x,default:"bottom"},popperOptions:{type:jt(Object),default:()=>({})},strategy:{type:String,values:nUe,default:"absolute"}}),pCe=Tn({...rUe,id:String,style:{type:jt([String,Array,Object])},className:{type:jt([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:jt([String,Array,Object])},popperStyle:{type:jt([String,Array,Object])},referenceEl:{type:jt(Object)},triggerTargetEl:{type:jt(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),iUe={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},oUe=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:i}=e,o={placement:n,strategy:r,...i,modifiers:[...sUe(e),...t]};return lUe(o,i==null?void 0:i.modifiers),o},aUe=e=>{if(Ii)return rg(e)};function sUe(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function lUe(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const uUe=0,cUe=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:i}=Ht(qU,void 0),o=Re(),a=Re(),s=Oe(()=>({name:"eventListeners",enabled:!!e.visible})),l=Oe(()=>{var m;const w=W(o),k=(m=W(a))!=null?m:uUe;return{name:"arrow",enabled:!fwe(w),options:{element:w,padding:k}}}),u=Oe(()=>({onFirstUpdate:()=>{g()},...oUe(e,[W(l),W(s)])})),c=Oe(()=>aUe(e.referenceEl)||W(r)),{attributes:d,state:h,styles:f,update:g,forceUpdate:b,instanceRef:v}=zZe(c,n,u);return Pt(v,m=>t.value=m),_n(()=>{Pt(()=>{var m;return(m=W(c))==null?void 0:m.getBoundingClientRect()},()=>{g()})}),{attributes:d,arrowRef:o,contentRef:n,instanceRef:v,state:h,styles:f,role:i,forceUpdate:b,update:g}},dUe=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:i}=EL(),o=cn("popper"),a=Oe(()=>W(t).popper),s=Re($r(e.zIndex)?e.zIndex:i()),l=Oe(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),u=Oe(()=>[{zIndex:W(s)},W(n).popper,e.popperStyle||{}]),c=Oe(()=>r.value==="dialog"?"false":void 0),d=Oe(()=>W(n).arrow||{});return{ariaModal:c,arrowStyle:d,contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=$r(e.zIndex)?e.zIndex:i()}}},hUe=(e,t)=>{const n=Re(!1),r=Re();return{focusStartRef:r,trapped:n,onFocusAfterReleased:i=>{var o;((o=i.detail)==null?void 0:o.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:i=>{e.visible&&!n.value&&(i.target&&(r.value=i.target),n.value=!0)},onFocusoutPrevented:i=>{e.trapping||(i.detail.focusReason==="pointer"&&i.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},pUe=ft({name:"ElPopperContent"}),fUe=ft({...pUe,props:pCe,emits:iUe,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:i,trapped:o,onFocusAfterReleased:a,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=hUe(r,n),{attributes:d,arrowRef:h,contentRef:f,styles:g,instanceRef:b,role:v,update:m}=cUe(r),{ariaModal:w,arrowStyle:k,contentAttrs:T,contentClass:S,contentStyle:I,updateZIndex:O}=dUe(r,{styles:g,attributes:d,role:v}),y=Ht(d0,void 0),_=Re();Or(aCe,{arrowStyle:k,arrowRef:h,arrowOffset:_}),y&&(y.addInputId||y.removeInputId)&&Or(d0,{...y,addInputId:go,removeInputId:go});let A;const R=(C=!0)=>{m(),C&&O()},D=()=>{R(!1),r.visible&&r.focusOnShow?o.value=!0:r.visible===!1&&(o.value=!1)};return _n(()=>{Pt(()=>r.triggerTargetEl,(C,x)=>{A==null||A(),A=void 0;const P=W(C||f.value),$=W(x||f.value);Xb(P)&&(A=Pt([v,()=>r.ariaLabel,w,()=>r.id],L=>{["role","aria-label","aria-modal","id"].forEach((V,H)=>{il(L[H])?P.removeAttribute(V):P.setAttribute(V,L[H])})},{immediate:!0})),$!==P&&Xb($)&&["role","aria-label","aria-modal","id"].forEach(L=>{$.removeAttribute(L)})},{immediate:!0}),Pt(()=>r.visible,D,{immediate:!0})}),Mo(()=>{A==null||A(),A=void 0}),t({popperContentRef:f,popperInstanceRef:b,updatePopper:R,contentStyle:I}),(C,x)=>(Ce(),We("div",jr({ref_key:"contentRef",ref:f},W(T),{style:W(I),class:W(S),tabindex:"-1",onMouseenter:x[0]||(x[0]=P=>C.$emit("mouseenter",P)),onMouseleave:x[1]||(x[1]=P=>C.$emit("mouseleave",P))}),[xe(W(tX),{trapped:W(o),"trap-on-focus-in":!0,"focus-trap-el":W(f),"focus-start-el":W(i),onFocusAfterTrapped:W(s),onFocusAfterReleased:W(a),onFocusin:W(l),onFocusoutPrevented:W(u),onReleaseRequested:W(c)},{default:ot(()=>[rn(C.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var gUe=Bn(fUe,[["__file","content.vue"]]);const mUe=Xi(LQe),PL=Symbol("elTooltip"),DL=Tn({...YZe,...pCe,appendTo:{type:jt([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:jt(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),fCe=Tn({...cCe,disabled:Boolean,trigger:{type:jt([String,Array]),default:"hover"},triggerKeys:{type:jt(Array),default:()=>[nr.enter,nr.space]}}),{useModelToggleProps:vUe,useModelToggleEmits:yUe,useModelToggle:bUe}=Wze("visible"),wUe=Tn({...sCe,...vUe,...DL,...fCe,...lCe,showArrow:{type:Boolean,default:!0}}),CUe=[...yUe,"before-show","before-hide","show","hide","open","close"],OUe=(e,t)=>Tr(e)?e.includes(t):e===t,Pw=(e,t,n)=>r=>{OUe(W(e),t)&&n(r)},xUe=ft({name:"ElTooltipTrigger"}),SUe=ft({...xUe,props:fCe,setup(e,{expose:t}){const n=e,r=cn("tooltip"),{controlled:i,id:o,open:a,onOpen:s,onClose:l,onToggle:u}=Ht(PL,void 0),c=Re(null),d=()=>{if(W(i)||n.disabled)return!0},h=yo(n,"trigger"),f=Gf(d,Pw(h,"hover",s)),g=Gf(d,Pw(h,"hover",l)),b=Gf(d,Pw(h,"click",T=>{T.button===0&&u(T)})),v=Gf(d,Pw(h,"focus",s)),m=Gf(d,Pw(h,"focus",l)),w=Gf(d,Pw(h,"contextmenu",T=>{T.preventDefault(),u(T)})),k=Gf(d,T=>{const{code:S}=T;n.triggerKeys.includes(S)&&(T.preventDefault(),u(T))});return t({triggerRef:c}),(T,S)=>(Ce(),mt(W(zQe),{id:W(o),"virtual-ref":T.virtualRef,open:W(a),"virtual-triggering":T.virtualTriggering,class:De(W(r).e("trigger")),onBlur:W(m),onClick:W(b),onContextmenu:W(w),onFocus:W(v),onMouseenter:W(f),onMouseleave:W(g),onKeydown:W(k)},{default:ot(()=>[rn(T.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var AUe=Bn(SUe,[["__file","trigger.vue"]]);const IUe=ft({name:"ElTooltipContent",inheritAttrs:!1}),kUe=ft({...IUe,props:DL,setup(e,{expose:t}){const n=e,{selector:r}=Gwe(),i=cn("tooltip"),o=Re(null),a=Re(!1),{controlled:s,id:l,open:u,trigger:c,onClose:d,onOpen:h,onShow:f,onHide:g,onBeforeShow:b,onBeforeHide:v}=Ht(PL,void 0),m=Oe(()=>n.transition||`${i.namespace.value}-fade-in-linear`),w=Oe(()=>n.persistent);Mo(()=>{a.value=!0});const k=Oe(()=>W(w)?!0:W(u)),T=Oe(()=>n.disabled?!1:W(u)),S=Oe(()=>n.appendTo||r.value),I=Oe(()=>{var L;return(L=n.style)!=null?L:{}}),O=Oe(()=>!W(u)),y=()=>{g()},_=()=>{if(W(s))return!0},A=Gf(_,()=>{n.enterable&&W(c)==="hover"&&h()}),R=Gf(_,()=>{W(c)==="hover"&&d()}),D=()=>{var L,V;(V=(L=o.value)==null?void 0:L.updatePopper)==null||V.call(L),b==null||b()},C=()=>{v==null||v()},x=()=>{f(),$=L1e(Oe(()=>{var L;return(L=o.value)==null?void 0:L.popperContentRef}),()=>{W(s)||W(c)!=="hover"&&d()})},P=()=>{n.virtualTriggering||d()};let $;return Pt(()=>W(u),L=>{L||$==null||$()},{flush:"post"}),Pt(()=>n.content,()=>{var L,V;(V=(L=o.value)==null?void 0:L.updatePopper)==null||V.call(L)}),t({contentRef:o}),(L,V)=>(Ce(),mt(iU,{disabled:!L.teleported,to:W(S)},[xe(ic,{name:W(m),onAfterLeave:y,onBeforeEnter:D,onAfterEnter:x,onBeforeLeave:C},{default:ot(()=>[W(k)?Kn((Ce(),mt(W(gUe),jr({key:0,id:W(l),ref_key:"contentRef",ref:o},L.$attrs,{"aria-label":L.ariaLabel,"aria-hidden":W(O),"boundaries-padding":L.boundariesPadding,"fallback-placements":L.fallbackPlacements,"gpu-acceleration":L.gpuAcceleration,offset:L.offset,placement:L.placement,"popper-options":L.popperOptions,strategy:L.strategy,effect:L.effect,enterable:L.enterable,pure:L.pure,"popper-class":L.popperClass,"popper-style":[L.popperStyle,W(I)],"reference-el":L.referenceEl,"trigger-target-el":L.triggerTargetEl,visible:W(T),"z-index":L.zIndex,onMouseenter:W(A),onMouseleave:W(R),onBlur:P,onClose:W(d)}),{default:ot(()=>[a.value?xt("v-if",!0):rn(L.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Ni,W(T)]]):xt("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var EUe=Bn(kUe,[["__file","content.vue"]]);const _Ue=["innerHTML"],TUe={key:1},PUe=ft({name:"ElTooltip"}),DUe=ft({...PUe,props:wUe,emits:CUe,setup(e,{expose:t,emit:n}){const r=e;XZe();const i=c0(),o=Re(),a=Re(),s=()=>{var m;const w=W(o);w&&((m=w.popperInstanceRef)==null||m.update())},l=Re(!1),u=Re(),{show:c,hide:d,hasUpdateHandler:h}=bUe({indicator:l,toggleReason:u}),{onOpen:f,onClose:g}=Qwe({showAfter:yo(r,"showAfter"),hideAfter:yo(r,"hideAfter"),autoClose:yo(r,"autoClose"),open:c,close:d}),b=Oe(()=>ol(r.visible)&&!h.value);Or(PL,{controlled:b,id:i,open:p_(l),trigger:yo(r,"trigger"),onOpen:m=>{f(m)},onClose:m=>{g(m)},onToggle:m=>{W(l)?g(m):f(m)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),Pt(()=>r.disabled,m=>{m&&l.value&&(l.value=!1)});const v=m=>{var w,k;const T=(k=(w=a.value)==null?void 0:w.contentRef)==null?void 0:k.popperContentRef,S=(m==null?void 0:m.relatedTarget)||document.activeElement;return T&&T.contains(S)};return xbe(()=>l.value&&d()),t({popperRef:o,contentRef:a,isFocusInsideContent:v,updatePopper:s,onOpen:f,onClose:g,hide:d}),(m,w)=>(Ce(),mt(W(mUe),{ref_key:"popperRef",ref:o,role:m.role},{default:ot(()=>[xe(AUe,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:ot(()=>[m.$slots.default?rn(m.$slots,"default",{key:0}):xt("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),xe(EUe,{ref_key:"contentRef",ref:a,"aria-label":m.ariaLabel,"boundaries-padding":m.boundariesPadding,content:m.content,disabled:m.disabled,effect:m.effect,enterable:m.enterable,"fallback-placements":m.fallbackPlacements,"hide-after":m.hideAfter,"gpu-acceleration":m.gpuAcceleration,offset:m.offset,persistent:m.persistent,"popper-class":m.popperClass,"popper-style":m.popperStyle,placement:m.placement,"popper-options":m.popperOptions,pure:m.pure,"raw-content":m.rawContent,"reference-el":m.referenceEl,"trigger-target-el":m.triggerTargetEl,"show-after":m.showAfter,strategy:m.strategy,teleported:m.teleported,transition:m.transition,"virtual-triggering":m.virtualTriggering,"z-index":m.zIndex,"append-to":m.appendTo},{default:ot(()=>[rn(m.$slots,"content",{},()=>[m.rawContent?(Ce(),We("span",{key:0,innerHTML:m.content},null,8,_Ue)):(Ce(),We("span",TUe,en(m.content),1))]),m.showArrow?(Ce(),mt(W(NQe),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):xt("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var RUe=Bn(DUe,[["__file","tooltip.vue"]]);const wg=Xi(RUe),$Ue=Tn({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),MUe=["textContent"],LUe=ft({name:"ElBadge"}),BUe=ft({...LUe,props:$Ue,setup(e,{expose:t}){const n=e,r=cn("badge"),i=Oe(()=>n.isDot?"":$r(n.value)&&$r(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:i}),(o,a)=>(Ce(),We("div",{class:De(W(r).b())},[rn(o.$slots,"default"),xe(ic,{name:`${W(r).namespace.value}-zoom-in-center`,persisted:""},{default:ot(()=>[Kn(at("sup",{class:De([W(r).e("content"),W(r).em("content",o.type),W(r).is("fixed",!!o.$slots.default),W(r).is("dot",o.isDot)]),textContent:en(W(i))},null,10,MUe),[[Ni,!o.hidden&&(W(i)||o.isDot)]])]),_:1},8,["name"])],2))}});var FUe=Bn(BUe,[["__file","badge.vue"]]);const NUe=Xi(FUe),gCe=Symbol("buttonGroupContextKey"),VUe=(e,t)=>{l0({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},Oe(()=>e.type==="text"));const n=Ht(gCe,void 0),r=_L("button"),{form:i}=bu(),o=js(Oe(()=>n==null?void 0:n.size)),a=bd(),s=Re(),l=yd(),u=Oe(()=>e.type||(n==null?void 0:n.type)||""),c=Oe(()=>{var f,g,b;return(b=(g=e.autoInsertSpace)!=null?g:(f=r.value)==null?void 0:f.autoInsertSpace)!=null?b:!1}),d=Oe(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=Oe(()=>{var f;const g=(f=l.default)==null?void 0:f.call(l);if(c.value&&(g==null?void 0:g.length)===1){const b=g[0];if((b==null?void 0:b.type)===Ox){const v=b.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(v.trim())}}return!1});return{_disabled:a,_size:o,_type:u,_ref:s,_props:d,shouldAddSpace:h,handleClick:f=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",f)}}},jUe=["default","primary","success","warning","info","danger","text",""],WUe=["button","submit","reset"],bW=Tn({size:Fl,disabled:Boolean,type:{type:String,values:jUe,default:""},icon:{type:iu},nativeType:{type:String,values:WUe,default:"button"},loading:Boolean,loadingIcon:{type:iu,default:()=>kx},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:jt([String,Object]),default:"button"}}),HUe={click:e=>e instanceof MouseEvent};function Vs(e,t){zUe(e)&&(e="100%");var n=ZUe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function pD(e){return Math.min(1,Math.max(0,e))}function zUe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ZUe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function mCe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function fD(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ab(e){return e.length===1?"0"+e:String(e)}function GUe(e,t,n){return{r:Vs(e,255)*255,g:Vs(t,255)*255,b:Vs(n,255)*255}}function jre(e,t,n){e=Vs(e,255),t=Vs(t,255),n=Vs(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:a,l:s}}function HF(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function QUe(e,t,n){var r,i,o;if(e=Vs(e,360),t=Vs(t,100),n=Vs(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=HF(s,a,e+1/3),i=HF(s,a,e),o=HF(s,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function Wre(e,t,n){e=Vs(e,255),t=Vs(t,255),n=Vs(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:a}}function UUe(e,t,n){e=Vs(e,360)*6,t=Vs(t,100),n=Vs(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,u=[n,a,o,o,s,n][l],c=[s,n,n,a,o,o][l],d=[o,o,s,n,n,a][l];return{r:u*255,g:c*255,b:d*255}}function Hre(e,t,n,r){var i=[ab(Math.round(e).toString(16)),ab(Math.round(t).toString(16)),ab(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function XUe(e,t,n,r,i){var o=[ab(Math.round(e).toString(16)),ab(Math.round(t).toString(16)),ab(Math.round(n).toString(16)),ab(YUe(r))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function YUe(e){return Math.round(parseFloat(e)*255).toString(16)}function zre(e){return Fu(e)/255}function Fu(e){return parseInt(e,16)}function KUe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var wW={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function qUe(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=tXe(e)),typeof e=="object"&&(Mf(e.r)&&Mf(e.g)&&Mf(e.b)?(t=GUe(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Mf(e.h)&&Mf(e.s)&&Mf(e.v)?(r=fD(e.s),i=fD(e.v),t=UUe(e.h,r,i),a=!0,s="hsv"):Mf(e.h)&&Mf(e.s)&&Mf(e.l)&&(r=fD(e.s),o=fD(e.l),t=QUe(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=mCe(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var JUe="[-\\+]?\\d+%?",eXe="[-\\+]?\\d*\\.\\d+%?",Ov="(?:".concat(eXe,")|(?:").concat(JUe,")"),zF="[\\s|\\(]+(".concat(Ov,")[,|\\s]+(").concat(Ov,")[,|\\s]+(").concat(Ov,")\\s*\\)?"),ZF="[\\s|\\(]+(".concat(Ov,")[,|\\s]+(").concat(Ov,")[,|\\s]+(").concat(Ov,")[,|\\s]+(").concat(Ov,")\\s*\\)?"),Fd={CSS_UNIT:new RegExp(Ov),rgb:new RegExp("rgb"+zF),rgba:new RegExp("rgba"+ZF),hsl:new RegExp("hsl"+zF),hsla:new RegExp("hsla"+ZF),hsv:new RegExp("hsv"+zF),hsva:new RegExp("hsva"+ZF),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function tXe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(wW[e])e=wW[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Fd.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Fd.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Fd.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Fd.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Fd.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Fd.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Fd.hex8.exec(e),n?{r:Fu(n[1]),g:Fu(n[2]),b:Fu(n[3]),a:zre(n[4]),format:t?"name":"hex8"}:(n=Fd.hex6.exec(e),n?{r:Fu(n[1]),g:Fu(n[2]),b:Fu(n[3]),format:t?"name":"hex"}:(n=Fd.hex4.exec(e),n?{r:Fu(n[1]+n[1]),g:Fu(n[2]+n[2]),b:Fu(n[3]+n[3]),a:zre(n[4]+n[4]),format:t?"name":"hex8"}:(n=Fd.hex3.exec(e),n?{r:Fu(n[1]+n[1]),g:Fu(n[2]+n[2]),b:Fu(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Mf(e){return!!Fd.CSS_UNIT.exec(String(e))}var nXe=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=KUe(t)),this.originalInput=t;var i=qUe(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=mCe(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Wre(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Wre(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=jre(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=jre(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Hre(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),XUe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Vs(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Vs(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Hre(this.r,this.g,this.b,!1),n=0,r=Object.entries(wW);n<r.length;n++){var i=r[n],o=i[0],a=i[1];if(t===a)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,i=this.a<1&&this.a>=0,o=!n&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=pD(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=pD(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=pD(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=pD(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a<t;a++)i.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function bm(e,t=20){return e.mix("#141414",t).toString()}function rXe(e){const t=bd(),n=cn("button");return Oe(()=>{let r={};const i=e.color;if(i){const o=new nXe(i),a=e.dark?o.tint(20).toString():bm(o,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?bm(o,90):o.tint(90).toString(),"text-color":i,"border-color":e.dark?bm(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?bm(o,90):o.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?bm(o,50):o.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?bm(o,80):o.tint(80).toString());else{const s=e.dark?bm(o,30):o.tint(30).toString(),l=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":l,"border-color":i,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":a,"active-border-color":a}),t.value){const u=e.dark?bm(o,50):o.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const iXe=ft({name:"ElButton"}),oXe=ft({...iXe,props:bW,emits:HUe,setup(e,{expose:t,emit:n}){const r=e,i=rXe(r),o=cn("button"),{_ref:a,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:d,handleClick:h}=VUe(r,n);return t({ref:a,size:s,type:l,disabled:u,shouldAddSpace:d}),(f,g)=>(Ce(),mt(ei(f.tag),jr({ref_key:"_ref",ref:a},W(c),{class:[W(o).b(),W(o).m(W(l)),W(o).m(W(s)),W(o).is("disabled",W(u)),W(o).is("loading",f.loading),W(o).is("plain",f.plain),W(o).is("round",f.round),W(o).is("circle",f.circle),W(o).is("text",f.text),W(o).is("link",f.link),W(o).is("has-bg",f.bg)],style:W(i),onClick:W(h)}),{default:ot(()=>[f.loading?(Ce(),We(un,{key:0},[f.$slots.loading?rn(f.$slots,"loading",{key:0}):(Ce(),mt(W(Ln),{key:1,class:De(W(o).is("loading"))},{default:ot(()=>[(Ce(),mt(ei(f.loadingIcon)))]),_:1},8,["class"]))],64)):f.icon||f.$slots.icon?(Ce(),mt(W(Ln),{key:1},{default:ot(()=>[f.icon?(Ce(),mt(ei(f.icon),{key:0})):rn(f.$slots,"icon",{key:1})]),_:3})):xt("v-if",!0),f.$slots.default?(Ce(),We("span",{key:2,class:De({[W(o).em("text","expand")]:W(d)})},[rn(f.$slots,"default")],2)):xt("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var aXe=Bn(oXe,[["__file","button.vue"]]);const sXe={size:bW.size,type:bW.type},lXe=ft({name:"ElButtonGroup"}),uXe=ft({...lXe,props:sXe,setup(e){const t=e;Or(gCe,Br({size:yo(t,"size"),type:yo(t,"type")}));const n=cn("button");return(r,i)=>(Ce(),We("div",{class:De(`${W(n).b("group")}`)},[rn(r.$slots,"default")],2))}});var vCe=Bn(uXe,[["__file","button-group.vue"]]);const mo=Xi(aXe,{ButtonGroup:vCe});yh(vCe);var Dl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cXe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var yCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dl,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",d="month",h="quarter",f="year",g="date",b="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var P=["th","st","nd","rd"],$=x%100;return"["+x+(P[($-20)%10]||P[$]||P[0])+"]"}},k=function(x,P,$){var L=String(x);return!L||L.length>=P?x:""+Array(P+1-L.length).join($)+x},T={s:k,z:function(x){var P=-x.utcOffset(),$=Math.abs(P),L=Math.floor($/60),V=$%60;return(P<=0?"+":"-")+k(L,2,"0")+":"+k(V,2,"0")},m:function x(P,$){if(P.date()<$.date())return-x($,P);var L=12*($.year()-P.year())+($.month()-P.month()),V=P.clone().add(L,d),H=$-V<0,Q=P.clone().add(L+(H?-1:1),d);return+(-(L+($-V)/(H?V-Q:Q-V))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:d,y:f,w:c,d:u,D:g,h:l,m:s,s:a,ms:o,Q:h}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},S="en",I={};I[S]=w;var O="$isDayjsObject",y=function(x){return x instanceof D||!(!x||!x[O])},_=function x(P,$,L){var V;if(!P)return S;if(typeof P=="string"){var H=P.toLowerCase();I[H]&&(V=H),$&&(I[H]=$,V=H);var Q=P.split("-");if(!V&&Q.length>1)return x(Q[0])}else{var U=P.name;I[U]=P,V=U}return!L&&V&&(S=V),V||!L&&S},A=function(x,P){if(y(x))return x.clone();var $=typeof P=="object"?P:{};return $.date=x,$.args=arguments,new D($)},R=T;R.l=_,R.i=y,R.w=function(x,P){return A(x,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var D=function(){function x($){this.$L=_($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[O]=!0}var P=x.prototype;return P.parse=function($){this.$d=function(L){var V=L.date,H=L.utc;if(V===null)return new Date(NaN);if(R.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var Q=V.match(v);if(Q){var U=Q[2]-1||0,K=(Q[7]||"0").substring(0,3);return H?new Date(Date.UTC(Q[1],U,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,K)):new Date(Q[1],U,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,K)}}return new Date(V)}($),this.init()},P.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},P.$utils=function(){return R},P.isValid=function(){return this.$d.toString()!==b},P.isSame=function($,L){var V=A($);return this.startOf(L)<=V&&V<=this.endOf(L)},P.isAfter=function($,L){return A($)<this.startOf(L)},P.isBefore=function($,L){return this.endOf(L)<A($)},P.$g=function($,L,V){return R.u($)?this[L]:this.set(V,$)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function($,L){var V=this,H=!!R.u(L)||L,Q=R.p($),U=function(ne,le){var oe=R.w(V.$u?Date.UTC(V.$y,le,ne):new Date(V.$y,le,ne),V);return H?oe:oe.endOf(u)},K=function(ne,le){return R.w(V.toDate()[ne].apply(V.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(le)),V)},J=this.$W,ue=this.$M,ee=this.$D,N="set"+(this.$u?"UTC":"");switch(Q){case f:return H?U(1,0):U(31,11);case d:return H?U(1,ue):U(0,ue+1);case c:var q=this.$locale().weekStart||0,G=(J<q?J+7:J)-q;return U(H?ee-G:ee+(6-G),ue);case u:case g:return K(N+"Hours",0);case l:return K(N+"Minutes",1);case s:return K(N+"Seconds",2);case a:return K(N+"Milliseconds",3);default:return this.clone()}},P.endOf=function($){return this.startOf($,!1)},P.$set=function($,L){var V,H=R.p($),Q="set"+(this.$u?"UTC":""),U=(V={},V[u]=Q+"Date",V[g]=Q+"Date",V[d]=Q+"Month",V[f]=Q+"FullYear",V[l]=Q+"Hours",V[s]=Q+"Minutes",V[a]=Q+"Seconds",V[o]=Q+"Milliseconds",V)[H],K=H===u?this.$D+(L-this.$W):L;if(H===d||H===f){var J=this.clone().set(g,1);J.$d[U](K),J.init(),this.$d=J.set(g,Math.min(this.$D,J.daysInMonth())).$d}else U&&this.$d[U](K);return this.init(),this},P.set=function($,L){return this.clone().$set($,L)},P.get=function($){return this[R.p($)]()},P.add=function($,L){var V,H=this;$=Number($);var Q=R.p(L),U=function(ue){var ee=A(H);return R.w(ee.date(ee.date()+Math.round(ue*$)),H)};if(Q===d)return this.set(d,this.$M+$);if(Q===f)return this.set(f,this.$y+$);if(Q===u)return U(1);if(Q===c)return U(7);var K=(V={},V[s]=r,V[l]=i,V[a]=n,V)[Q]||1,J=this.$d.getTime()+$*K;return R.w(J,this)},P.subtract=function($,L){return this.add(-1*$,L)},P.format=function($){var L=this,V=this.$locale();if(!this.isValid())return V.invalidDate||b;var H=$||"YYYY-MM-DDTHH:mm:ssZ",Q=R.z(this),U=this.$H,K=this.$m,J=this.$M,ue=V.weekdays,ee=V.months,N=V.meridiem,q=function(le,oe,ve,de){return le&&(le[oe]||le(L,H))||ve[oe].slice(0,de)},G=function(le){return R.s(U%12||12,le,"0")},ne=N||function(le,oe,ve){var de=le<12?"AM":"PM";return ve?de.toLowerCase():de};return H.replace(m,function(le,oe){return oe||function(ve){switch(ve){case"YY":return String(L.$y).slice(-2);case"YYYY":return R.s(L.$y,4,"0");case"M":return J+1;case"MM":return R.s(J+1,2,"0");case"MMM":return q(V.monthsShort,J,ee,3);case"MMMM":return q(ee,J);case"D":return L.$D;case"DD":return R.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return q(V.weekdaysMin,L.$W,ue,2);case"ddd":return q(V.weekdaysShort,L.$W,ue,3);case"dddd":return ue[L.$W];case"H":return String(U);case"HH":return R.s(U,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return ne(U,K,!0);case"A":return ne(U,K,!1);case"m":return String(K);case"mm":return R.s(K,2,"0");case"s":return String(L.$s);case"ss":return R.s(L.$s,2,"0");case"SSS":return R.s(L.$ms,3,"0");case"Z":return Q}return null}(le)||Q.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function($,L,V){var H,Q=this,U=R.p(L),K=A($),J=(K.utcOffset()-this.utcOffset())*r,ue=this-K,ee=function(){return R.m(Q,K)};switch(U){case f:H=ee()/12;break;case d:H=ee();break;case h:H=ee()/3;break;case c:H=(ue-J)/6048e5;break;case u:H=(ue-J)/864e5;break;case l:H=ue/i;break;case s:H=ue/r;break;case a:H=ue/n;break;default:H=ue}return V?H:R.a(H)},P.daysInMonth=function(){return this.endOf(d).$D},P.$locale=function(){return I[this.$L]},P.locale=function($,L){if(!$)return this.$L;var V=this.clone(),H=_($,L,!0);return H&&(V.$L=H),V},P.clone=function(){return R.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},x}(),C=D.prototype;return A.prototype=C,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",u],["$M",d],["$y",f],["$D",g]].forEach(function(x){C[x[1]]=function(P){return this.$g(P,x[0],x[1])}}),A.extend=function(x,P){return x.$i||(x(P,D,A),x.$i=!0),A},A.locale=_,A.isDayjs=y,A.unix=function(x){return A(1e3*x)},A.en=I[S],A.Ls=I,A.p={},A})})(yCe);var dXe=yCe.exports;const or=pl(dXe);var bCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dl,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,o=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},l=function(b){return(b=+b)+(b>68?1900:2e3)},u=function(b){return function(v){this[b]=+v}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var m=v.match(/([+-]|\d\d)/g),w=60*m[1]+(+m[2]||0);return w===0?0:m[0]==="+"?-w:w}(b)}],d=function(b){var v=s[b];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(b,v){var m,w=s.meridiem;if(w){for(var k=1;k<=24;k+=1)if(b.indexOf(w(k,0,v))>-1){m=k>12;break}}else m=b===(v?"pm":"PM");return m},f={A:[a,function(b){this.afternoon=h(b,!1)}],a:[a,function(b){this.afternoon=h(b,!0)}],S:[/\d/,function(b){this.milliseconds=100*+b}],SS:[i,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[i,u("day")],Do:[a,function(b){var v=s.ordinal,m=b.match(/\d+/);if(this.day=m[0],v)for(var w=1;w<=31;w+=1)v(w).replace(/\[|\]/g,"")===b&&(this.day=w)}],M:[o,u("month")],MM:[i,u("month")],MMM:[a,function(b){var v=d("months"),m=(d("monthsShort")||v.map(function(w){return w.slice(0,3)})).indexOf(b)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[a,function(b){var v=d("months").indexOf(b)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(b){this.year=l(b)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function g(b){var v,m;v=b,m=s&&s.formats;for(var w=(b=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,A,R){var D=R&&R.toUpperCase();return A||m[R]||n[R]||m[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,x,P){return x||P.slice(1)})})).match(r),k=w.length,T=0;T<k;T+=1){var S=w[T],I=f[S],O=I&&I[0],y=I&&I[1];w[T]=y?{regex:O,parser:y}:S.replace(/^\[|\]$/g,"")}return function(_){for(var A={},R=0,D=0;R<k;R+=1){var C=w[R];if(typeof C=="string")D+=C.length;else{var x=C.regex,P=C.parser,$=_.slice(D),L=x.exec($)[0];P.call(A,L),_=_.replace(L,"")}}return function(V){var H=V.afternoon;if(H!==void 0){var Q=V.hours;H?Q<12&&(V.hours+=12):Q===12&&(V.hours=0),delete V.afternoon}}(A),A}}return function(b,v,m){m.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(l=b.parseTwoDigitYear);var w=v.prototype,k=w.parse;w.parse=function(T){var S=T.date,I=T.utc,O=T.args;this.$u=I;var y=O[1];if(typeof y=="string"){var _=O[2]===!0,A=O[3]===!0,R=_||A,D=O[2];A&&(D=O[2]),s=this.$locale(),!_&&D&&(s=m.Ls[D]),this.$d=function($,L,V){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*$);var H=g(L)($),Q=H.year,U=H.month,K=H.day,J=H.hours,ue=H.minutes,ee=H.seconds,N=H.milliseconds,q=H.zone,G=new Date,ne=K||(Q||U?1:G.getDate()),le=Q||G.getFullYear(),oe=0;Q&&!U||(oe=U>0?U-1:G.getMonth());var ve=J||0,de=ue||0,ae=ee||0,be=N||0;return q?new Date(Date.UTC(le,oe,ne,ve,de,ae,be+60*q.offset*1e3)):V?new Date(Date.UTC(le,oe,ne,ve,de,ae,be)):new Date(le,oe,ne,ve,de,ae,be)}catch{return new Date("")}}(S,y,I),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),R&&S!=this.format(y)&&(this.$d=new Date("")),s={}}else if(y instanceof Array)for(var C=y.length,x=1;x<=C;x+=1){O[1]=y[x-1];var P=m.apply(this,O);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}x===C&&(this.$d=new Date(""))}else k.call(this,T)}}})})(bCe);var hXe=bCe.exports;const pXe=pl(hXe),Zre=["hours","minutes","seconds"],Gre="HH:mm:ss",bC="YYYY-MM-DD",fXe={date:bC,dates:bC,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${bC} ${Gre}`,monthrange:"YYYY-MM",daterange:bC,datetimerange:`${bC} ${Gre}`},GF=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],wCe=e=>Array.from(Array.from({length:e}).keys()),CCe=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),OCe=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Qre=function(e,t){const n=kne(e),r=kne(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},Ure=function(e,t){const n=Tr(e),r=Tr(t);return n&&r?e.length!==t.length?!1:e.every((i,o)=>Qre(i,t[o])):!n&&!r?Qre(e,t):!1},Xre=function(e,t,n){const r=Vc(t)||t==="x"?or(e).locale(n):or(e,t).locale(n);return r.isValid()?r:void 0},Yre=function(e,t,n){return Vc(t)?e:t==="x"?+e:or(e).locale(n).format(t)},QF=(e,t)=>{var n;const r=[],i=t==null?void 0:t();for(let o=0;o<e;o++)r.push((n=i==null?void 0:i.includes(o))!=null?n:!1);return r},xCe=Tn({disabledHours:{type:jt(Function)},disabledMinutes:{type:jt(Function)},disabledSeconds:{type:jt(Function)}}),gXe=Tn({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),SCe=Tn({id:{type:jt([Array,String])},name:{type:jt([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:jt([String,Object]),default:Ix},editable:{type:Boolean,default:!0},prefixIcon:{type:jt([String,Object]),default:""},size:Fl,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:jt(Object),default:()=>({})},modelValue:{type:jt([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:jt([Date,Array])},defaultTime:{type:jt([Date,Array])},isRange:Boolean,...xCe,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,label:{type:String,default:void 0},tabindex:{type:jt([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),mXe=["id","name","placeholder","value","disabled","readonly"],vXe=["id","name","placeholder","value","disabled","readonly"],yXe=ft({name:"Picker"}),bXe=ft({...yXe,props:SCe,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,i=g_(),{lang:o}=uo(),a=cn("date"),s=cn("input"),l=cn("range"),{form:u,formItem:c}=bu(),d=Ht("ElPopperOptions",{}),h=Re(),f=Re(),g=Re(!1),b=Re(!1),v=Re(null);let m=!1,w=!1;const k=Oe(()=>[a.b("editor"),a.bm("editor",r.type),s.e("wrapper"),a.is("disabled",K.value),a.is("active",g.value),l.b("editor"),ce?l.bm("editor",ce.value):"",i.class]),T=Oe(()=>[s.e("icon"),l.e("close-icon"),ne.value?"":l.e("close-icon--hidden")]);Pt(g,Te=>{Te?mn(()=>{Te&&(v.value=r.modelValue)}):(Z.value=null,mn(()=>{S(r.modelValue)}))});const S=(Te,bt)=>{(bt||!Ure(Te,v.value))&&(n("change",Te),r.validateEvent&&(c==null||c.validate("change").catch(At=>void 0)))},I=Te=>{if(!Ure(r.modelValue,Te)){let bt;Tr(Te)?bt=Te.map(At=>Yre(At,r.valueFormat,o.value)):Te&&(bt=Yre(Te,r.valueFormat,o.value)),n("update:modelValue",Te&&bt,o.value)}},O=Te=>{n("keydown",Te)},y=Oe(()=>{if(f.value){const Te=ie.value?f.value:f.value.$el;return Array.from(Te.querySelectorAll("input"))}return[]}),_=(Te,bt,At)=>{const ht=y.value;ht.length&&(!At||At==="min"?(ht[0].setSelectionRange(Te,bt),ht[0].focus()):At==="max"&&(ht[1].setSelectionRange(Te,bt),ht[1].focus()))},A=()=>{V(!0,!0),mn(()=>{w=!1})},R=(Te="",bt=!1)=>{bt||(w=!0),g.value=bt;let At;Tr(Te)?At=Te.map(ht=>ht.toDate()):At=Te&&Te.toDate(),Z.value=null,I(At)},D=()=>{b.value=!0},C=()=>{n("visible-change",!0)},x=Te=>{(Te==null?void 0:Te.key)===nr.esc&&V(!0,!0)},P=()=>{b.value=!1,g.value=!1,w=!1,n("visible-change",!1)},$=()=>{g.value=!0},L=()=>{g.value=!1},V=(Te=!0,bt=!1)=>{w=bt;const[At,ht]=W(y);let Pe=At;!Te&&ie.value&&(Pe=ht),Pe&&Pe.focus()},H=Te=>{r.readonly||K.value||g.value||w||(g.value=!0,n("focus",Te))};let Q;const U=Te=>{const bt=async()=>{setTimeout(()=>{var At;Q===bt&&(!((At=h.value)!=null&&At.isFocusInsideContent()&&!m)&&y.value.filter(ht=>ht.contains(document.activeElement)).length===0&&(Y(),g.value=!1,n("blur",Te),r.validateEvent&&(c==null||c.validate("blur").catch(ht=>void 0))),m=!1)},0)};Q=bt,bt()},K=Oe(()=>r.disabled||(u==null?void 0:u.disabled)),J=Oe(()=>{let Te;if(oe.value?Le.value.getDefaultValue&&(Te=Le.value.getDefaultValue()):Tr(r.modelValue)?Te=r.modelValue.map(bt=>Xre(bt,r.valueFormat,o.value)):Te=Xre(r.modelValue,r.valueFormat,o.value),Le.value.getRangeAvailableTime){const bt=Le.value.getRangeAvailableTime(Te);Ep(bt,Te)||(Te=bt,I(Tr(Te)?Te.map(At=>At.toDate()):Te.toDate()))}return Tr(Te)&&Te.some(bt=>!bt)&&(Te=[]),Te}),ue=Oe(()=>{if(!Le.value.panelReady)return"";const Te=fe(J.value);return Tr(Z.value)?[Z.value[0]||Te&&Te[0]||"",Z.value[1]||Te&&Te[1]||""]:Z.value!==null?Z.value:!N.value&&oe.value||!g.value&&oe.value?"":Te?q.value?Te.join(", "):Te:""}),ee=Oe(()=>r.type.includes("time")),N=Oe(()=>r.type.startsWith("time")),q=Oe(()=>r.type==="dates"),G=Oe(()=>r.prefixIcon||(ee.value?LHe:THe)),ne=Re(!1),le=Te=>{r.readonly||K.value||ne.value&&(Te.stopPropagation(),A(),I(null),S(null,!0),ne.value=!1,g.value=!1,Le.value.handleClear&&Le.value.handleClear())},oe=Oe(()=>{const{modelValue:Te}=r;return!Te||Tr(Te)&&!Te.filter(Boolean).length}),ve=async Te=>{var bt;r.readonly||K.value||(((bt=Te.target)==null?void 0:bt.tagName)!=="INPUT"||y.value.includes(document.activeElement))&&(g.value=!0)},de=()=>{r.readonly||K.value||!oe.value&&r.clearable&&(ne.value=!0)},ae=()=>{ne.value=!1},be=Te=>{var bt;r.readonly||K.value||(((bt=Te.touches[0].target)==null?void 0:bt.tagName)!=="INPUT"||y.value.includes(document.activeElement))&&(g.value=!0)},ie=Oe(()=>r.type.includes("range")),ce=js(),pe=Oe(()=>{var Te,bt;return(bt=(Te=W(h))==null?void 0:Te.popperRef)==null?void 0:bt.contentRef}),X=Oe(()=>{var Te;return W(ie)?W(f):(Te=W(f))==null?void 0:Te.$el});L1e(X,Te=>{const bt=W(pe),At=W(X);bt&&(Te.target===bt||Te.composedPath().includes(bt))||Te.target===At||Te.composedPath().includes(At)||(g.value=!1)});const Z=Re(null),Y=()=>{if(Z.value){const Te=se(ue.value);Te&&me(Te)&&(I(Tr(Te)?Te.map(bt=>bt.toDate()):Te.toDate()),Z.value=null)}Z.value===""&&(I(null),S(null),Z.value=null)},se=Te=>Te?Le.value.parseUserInput(Te):null,fe=Te=>Te?Le.value.formatToString(Te):null,me=Te=>Le.value.isValidValue(Te),Ae=async Te=>{if(r.readonly||K.value)return;const{code:bt}=Te;if(O(Te),bt===nr.esc){g.value===!0&&(g.value=!1,Te.preventDefault(),Te.stopPropagation());return}if(bt===nr.down&&(Le.value.handleFocusPicker&&(Te.preventDefault(),Te.stopPropagation()),g.value===!1&&(g.value=!0,await mn()),Le.value.handleFocusPicker)){Le.value.handleFocusPicker();return}if(bt===nr.tab){m=!0;return}if(bt===nr.enter||bt===nr.numpadEnter){(Z.value===null||Z.value===""||me(se(ue.value)))&&(Y(),g.value=!1),Te.stopPropagation();return}if(Z.value){Te.stopPropagation();return}Le.value.handleKeydownInput&&Le.value.handleKeydownInput(Te)},Be=Te=>{Z.value=Te,g.value||(g.value=!0)},Ye=Te=>{const bt=Te.target;Z.value?Z.value=[bt.value,Z.value[1]]:Z.value=[bt.value,null]},Qe=Te=>{const bt=Te.target;Z.value?Z.value=[Z.value[0],bt.value]:Z.value=[null,bt.value]},nt=()=>{var Te;const bt=Z.value,At=se(bt&&bt[0]),ht=W(J);if(At&&At.isValid()){Z.value=[fe(At),((Te=ue.value)==null?void 0:Te[1])||null];const Pe=[At,ht&&(ht[1]||null)];me(Pe)&&(I(Pe),Z.value=null)}},st=()=>{var Te;const bt=W(Z),At=se(bt&&bt[1]),ht=W(J);if(At&&At.isValid()){Z.value=[((Te=W(ue))==null?void 0:Te[0])||null,fe(At)];const Pe=[ht&&ht[0],At];me(Pe)&&(I(Pe),Z.value=null)}},Le=Re({}),Me=Te=>{Le.value[Te[0]]=Te[1],Le.value.panelReady=!0},je=Te=>{n("calendar-change",Te)},Ue=(Te,bt,At)=>{n("panel-change",Te,bt,At)};return Or("EP_PICKER_BASE",{props:r}),t({focus:V,handleFocusInput:H,handleBlurInput:U,handleOpen:$,handleClose:L,onPick:R}),(Te,bt)=>(Ce(),mt(W(wg),jr({ref_key:"refPopper",ref:h,visible:g.value,effect:"light",pure:"",trigger:"click"},Te.$attrs,{role:"dialog",teleported:"",transition:`${W(a).namespace.value}-zoom-in-top`,"popper-class":[`${W(a).namespace.value}-picker__popper`,Te.popperClass],"popper-options":W(d),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:D,onShow:C,onHide:P}),{default:ot(()=>[W(ie)?(Ce(),We("div",{key:1,ref_key:"inputRef",ref:f,class:De(W(k)),style:En(Te.$attrs.style),onClick:H,onMouseenter:de,onMouseleave:ae,onTouchstart:be,onKeydown:Ae},[W(G)?(Ce(),mt(W(Ln),{key:0,class:De([W(s).e("icon"),W(l).e("icon")]),onMousedown:rr(ve,["prevent"]),onTouchstart:be},{default:ot(()=>[(Ce(),mt(ei(W(G))))]),_:1},8,["class","onMousedown"])):xt("v-if",!0),at("input",{id:Te.id&&Te.id[0],autocomplete:"off",name:Te.name&&Te.name[0],placeholder:Te.startPlaceholder,value:W(ue)&&W(ue)[0],disabled:W(K),readonly:!Te.editable||Te.readonly,class:De(W(l).b("input")),onMousedown:ve,onInput:Ye,onChange:nt,onFocus:H,onBlur:U},null,42,mXe),rn(Te.$slots,"range-separator",{},()=>[at("span",{class:De(W(l).b("separator"))},en(Te.rangeSeparator),3)]),at("input",{id:Te.id&&Te.id[1],autocomplete:"off",name:Te.name&&Te.name[1],placeholder:Te.endPlaceholder,value:W(ue)&&W(ue)[1],disabled:W(K),readonly:!Te.editable||Te.readonly,class:De(W(l).b("input")),onMousedown:ve,onFocus:H,onBlur:U,onInput:Qe,onChange:st},null,42,vXe),Te.clearIcon?(Ce(),mt(W(Ln),{key:1,class:De(W(T)),onClick:le},{default:ot(()=>[(Ce(),mt(ei(Te.clearIcon)))]),_:1},8,["class"])):xt("v-if",!0)],38)):(Ce(),mt(W(Fs),{key:0,id:Te.id,ref_key:"inputRef",ref:f,"container-role":"combobox","model-value":W(ue),name:Te.name,size:W(ce),disabled:W(K),placeholder:Te.placeholder,class:De([W(a).b("editor"),W(a).bm("editor",Te.type),Te.$attrs.class]),style:En(Te.$attrs.style),readonly:!Te.editable||Te.readonly||W(q)||Te.type==="week",label:Te.label,tabindex:Te.tabindex,"validate-event":!1,onInput:Be,onFocus:H,onBlur:U,onKeydown:Ae,onChange:Y,onMousedown:ve,onMouseenter:de,onMouseleave:ae,onTouchstart:be,onClick:bt[0]||(bt[0]=rr(()=>{},["stop"]))},{prefix:ot(()=>[W(G)?(Ce(),mt(W(Ln),{key:0,class:De(W(s).e("icon")),onMousedown:rr(ve,["prevent"]),onTouchstart:be},{default:ot(()=>[(Ce(),mt(ei(W(G))))]),_:1},8,["class","onMousedown"])):xt("v-if",!0)]),suffix:ot(()=>[ne.value&&Te.clearIcon?(Ce(),mt(W(Ln),{key:0,class:De(`${W(s).e("icon")} clear-icon`),onClick:rr(le,["stop"])},{default:ot(()=>[(Ce(),mt(ei(Te.clearIcon)))]),_:1},8,["class","onClick"])):xt("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:ot(()=>[rn(Te.$slots,"default",{visible:g.value,actualVisible:b.value,parsedValue:W(J),format:Te.format,dateFormat:Te.dateFormat,timeFormat:Te.timeFormat,unlinkPanels:Te.unlinkPanels,type:Te.type,defaultValue:Te.defaultValue,onPick:R,onSelectRange:_,onSetPickerOption:Me,onCalendarChange:je,onPanelChange:Ue,onKeydown:x,onMousedown:bt[1]||(bt[1]=rr(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var wXe=Bn(bXe,[["__file","picker.vue"]]);const CXe=Tn({...gXe,datetimeRole:String,parsedValue:{type:jt(Object)}}),OXe=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(o,a,s,l)=>{const u={hour:e,minute:t,second:n};let c=o;return["hour","minute","second"].forEach(d=>{if(u[d]){let h;const f=u[d];switch(d){case"minute":{h=f(c.hour(),a,l);break}case"second":{h=f(c.hour(),c.minute(),a,l);break}default:{h=f(a,l);break}}if(h!=null&&h.length&&!h.includes(c[d]())){const g=s?0:h.length-1;c=c[d](h[g])}}}),c},i={};return{timePickerOptions:i,getAvailableTime:r,onSetOption:([o,a])=>{i[o]=a}}},UF=e=>{const t=(r,i)=>r||i,n=r=>r!==!0;return e.map(t).filter(n)},ACe=(e,t,n)=>({getHoursList:(r,i)=>QF(24,e&&(()=>e==null?void 0:e(r,i))),getMinutesList:(r,i,o)=>QF(60,t&&(()=>t==null?void 0:t(r,i,o))),getSecondsList:(r,i,o,a)=>QF(60,n&&(()=>n==null?void 0:n(r,i,o,a)))}),xXe=(e,t,n)=>{const{getHoursList:r,getMinutesList:i,getSecondsList:o}=ACe(e,t,n);return{getAvailableHours:(a,s)=>UF(r(a,s)),getAvailableMinutes:(a,s,l)=>UF(i(a,s,l)),getAvailableSeconds:(a,s,l,u)=>UF(o(a,s,l,u))}},SXe=e=>{const t=Re(e.parsedValue);return Pt(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},qm=new Map;let Kre;Ii&&(document.addEventListener("mousedown",e=>Kre=e),document.addEventListener("mouseup",e=>{for(const t of qm.values())for(const{documentHandler:n}of t)n(e,Kre)}));function qre(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Xb(t.arg)&&n.push(t.arg),function(r,i){const o=t.instance.popperRef,a=r.target,s=i==null?void 0:i.target,l=!t||!t.instance,u=!a||!s,c=e.contains(a)||e.contains(s),d=e===a,h=n.length&&n.some(g=>g==null?void 0:g.contains(a))||n.length&&n.includes(s),f=o&&(o.contains(a)||o.contains(s));l||u||c||d||h||f||t.value(r,i)}}const Yb={beforeMount(e,t){qm.has(e)||qm.set(e,[]),qm.get(e).push({documentHandler:qre(e,t),bindingFn:t.value})},updated(e,t){qm.has(e)||qm.set(e,[]);const n=qm.get(e),r=n.findIndex(o=>o.bindingFn===t.oldValue),i={documentHandler:qre(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){qm.delete(e)}},AXe=100,IXe=600,e5={beforeMount(e,t){const n=t.value,{interval:r=AXe,delay:i=IXe}=_i(n)?{}:n;let o,a;const s=()=>_i(n)?n():n.handler(),l=()=>{a&&(clearTimeout(a),a=void 0),o&&(clearInterval(o),o=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),s(),document.addEventListener("mouseup",()=>l(),{once:!0}),a=setTimeout(()=>{o=setInterval(()=>{s()},r)},i))})}};var Jre=!1,qy,CW,OW,y3,b3,ICe,w3,xW,SW,AW,kCe,IW,kW,ECe,_Ce;function Xl(){if(!Jre){Jre=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(IW=/\b(iPhone|iP[ao]d)/.exec(e),kW=/\b(iP[ao]d)/.exec(e),AW=/Android/i.exec(e),ECe=/FBAN\/\w+;/i.exec(e),_Ce=/Mobile/i.exec(e),kCe=!!/Win64/.exec(e),t){qy=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,qy&&document&&document.documentMode&&(qy=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);ICe=r?parseFloat(r[1])+4:qy,CW=t[2]?parseFloat(t[2]):NaN,OW=t[3]?parseFloat(t[3]):NaN,y3=t[4]?parseFloat(t[4]):NaN,y3?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),b3=t&&t[1]?parseFloat(t[1]):NaN):b3=NaN}else qy=CW=OW=b3=y3=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);w3=i?parseFloat(i[1].replace("_",".")):!0}else w3=!1;xW=!!n[2],SW=!!n[3]}else w3=xW=SW=!1}}var EW={ie:function(){return Xl()||qy},ieCompatibilityMode:function(){return Xl()||ICe>qy},ie64:function(){return EW.ie()&&kCe},firefox:function(){return Xl()||CW},opera:function(){return Xl()||OW},webkit:function(){return Xl()||y3},safari:function(){return EW.webkit()},chrome:function(){return Xl()||b3},windows:function(){return Xl()||xW},osx:function(){return Xl()||w3},linux:function(){return Xl()||SW},iphone:function(){return Xl()||IW},mobile:function(){return Xl()||IW||kW||AW||_Ce},nativeApp:function(){return Xl()||ECe},android:function(){return Xl()||AW},ipad:function(){return Xl()||kW}},kXe=EW,gD=!!(typeof window<"u"&&window.document&&window.document.createElement),EXe={canUseDOM:gD,canUseWorkers:typeof Worker<"u",canUseEventListeners:gD&&!!(window.addEventListener||window.attachEvent),canUseViewport:gD&&!!window.screen,isInWorker:!gD},TCe=EXe,PCe;TCe.canUseDOM&&(PCe=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function _Xe(e,t){if(!TCe.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return!r&&PCe&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var TXe=_Xe,eie=10,tie=40,nie=800;function DCe(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*eie,i=n*eie,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(e.deltaMode==1?(r*=tie,i*=tie):(r*=nie,i*=nie)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}DCe.getEventType=function(){return kXe.firefox()?"DOMMouseScroll":TXe("wheel")?"wheel":"mousewheel"};var PXe=DCe;/**
|
|
* Checks if an event is supported in the current execution environment.
|
|
*
|
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
* `reset`, `load`, `error`, and `select`.
|
|
*
|
|
* Borrows from Modernizr.
|
|
*
|
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
* @param {?boolean} capture Check if the capture phase is supported.
|
|
* @return {boolean} True if the event is supported.
|
|
* @internal
|
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
*/const DXe=function(e,t){if(e&&e.addEventListener){const n=function(r){const i=PXe(r);t&&Reflect.apply(t,this,[r,i])};e.addEventListener("wheel",n,{passive:!0})}},RXe={beforeMount(e,t){DXe(e,t.value)}},$Xe=Tn({role:{type:String,required:!0},spinnerDate:{type:jt(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:jt(String),default:""},...xCe}),MXe=["onClick"],LXe=["onMouseenter"],BXe=ft({__name:"basic-time-spinner",props:$Xe,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=cn("time"),{getHoursList:i,getMinutesList:o,getSecondsList:a}=ACe(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=Re(),u=Re(),c=Re(),d=Re(),h={hours:u,minutes:c,seconds:d},f=Oe(()=>n.showSeconds?Zre:Zre.slice(0,2)),g=Oe(()=>{const{spinnerDate:H}=n,Q=H.hour(),U=H.minute(),K=H.second();return{hours:Q,minutes:U,seconds:K}}),b=Oe(()=>{const{hours:H,minutes:Q}=W(g);return{hours:i(n.role),minutes:o(H,n.role),seconds:a(H,Q,n.role)}}),v=Oe(()=>{const{hours:H,minutes:Q,seconds:U}=W(g);return{hours:GF(H,23),minutes:GF(Q,59),seconds:GF(U,59)}}),m=ch(H=>{s=!1,T(H)},200),w=H=>{if(!n.amPmMode)return"";const Q=n.amPmMode==="A";let U=H<12?" am":" pm";return Q&&(U=U.toUpperCase()),U},k=H=>{let Q;switch(H){case"hours":Q=[0,2];break;case"minutes":Q=[3,5];break;case"seconds":Q=[6,8];break}const[U,K]=Q;t("select-range",U,K),l.value=H},T=H=>{O(H,W(g)[H])},S=()=>{T("hours"),T("minutes"),T("seconds")},I=H=>H.querySelector(`.${r.namespace.value}-scrollbar__wrap`),O=(H,Q)=>{if(n.arrowControl)return;const U=W(h[H]);U&&U.$el&&(I(U.$el).scrollTop=Math.max(0,Q*y(H)))},y=H=>{const Q=W(h[H]),U=Q==null?void 0:Q.$el.querySelector("li");return U&&Number.parseFloat(Ky(U,"height"))||0},_=()=>{R(1)},A=()=>{R(-1)},R=H=>{l.value||k("hours");const Q=l.value,U=W(g)[Q],K=l.value==="hours"?24:60,J=D(Q,U,H,K);C(Q,J),O(Q,J),mn(()=>k(Q))},D=(H,Q,U,K)=>{let J=(Q+U+K)%K;const ue=W(b)[H];for(;ue[J]&&J!==Q;)J=(J+U+K)%K;return J},C=(H,Q)=>{if(W(b)[H][Q])return;const{hours:U,minutes:K,seconds:J}=W(g);let ue;switch(H){case"hours":ue=n.spinnerDate.hour(Q).minute(K).second(J);break;case"minutes":ue=n.spinnerDate.hour(U).minute(Q).second(J);break;case"seconds":ue=n.spinnerDate.hour(U).minute(K).second(Q);break}t("change",ue)},x=(H,{value:Q,disabled:U})=>{U||(C(H,Q),k(H),O(H,Q))},P=H=>{s=!0,m(H);const Q=Math.min(Math.round((I(W(h[H]).$el).scrollTop-($(H)*.5-10)/y(H)+3)/y(H)),H==="hours"?23:59);C(H,Q)},$=H=>W(h[H]).$el.offsetHeight,L=()=>{const H=Q=>{const U=W(h[Q]);U&&U.$el&&(I(U.$el).onscroll=()=>{P(Q)})};H("hours"),H("minutes"),H("seconds")};_n(()=>{mn(()=>{!n.arrowControl&&L(),S(),n.role==="start"&&k("hours")})});const V=(H,Q)=>{h[Q].value=H};return t("set-option",[`${n.role}_scrollDown`,R]),t("set-option",[`${n.role}_emitSelectRange`,k]),Pt(()=>n.spinnerDate,()=>{s||S()}),(H,Q)=>(Ce(),We("div",{class:De([W(r).b("spinner"),{"has-seconds":H.showSeconds}])},[H.arrowControl?xt("v-if",!0):(Ce(!0),We(un,{key:0},xr(W(f),U=>(Ce(),mt(W(Tx),{key:U,ref_for:!0,ref:K=>V(K,U),class:De(W(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":W(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:K=>k(U),onMousemove:K=>T(U)},{default:ot(()=>[(Ce(!0),We(un,null,xr(W(b)[U],(K,J)=>(Ce(),We("li",{key:J,class:De([W(r).be("spinner","item"),W(r).is("active",J===W(g)[U]),W(r).is("disabled",K)]),onClick:ue=>x(U,{value:J,disabled:K})},[U==="hours"?(Ce(),We(un,{key:0},[gr(en(("0"+(H.amPmMode?J%12||12:J)).slice(-2))+en(w(J)),1)],64)):(Ce(),We(un,{key:1},[gr(en(("0"+J).slice(-2)),1)],64))],10,MXe))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),H.arrowControl?(Ce(!0),We(un,{key:1},xr(W(f),U=>(Ce(),We("div",{key:U,class:De([W(r).be("spinner","wrapper"),W(r).is("arrow")]),onMouseenter:K=>k(U)},[Kn((Ce(),mt(W(Ln),{class:De(["arrow-up",W(r).be("spinner","arrow")])},{default:ot(()=>[xe(W(FU))]),_:1},8,["class"])),[[W(e5),A]]),Kn((Ce(),mt(W(Ln),{class:De(["arrow-down",W(r).be("spinner","arrow")])},{default:ot(()=>[xe(W(Ax))]),_:1},8,["class"])),[[W(e5),_]]),at("ul",{class:De(W(r).be("spinner","list"))},[(Ce(!0),We(un,null,xr(W(v)[U],(K,J)=>(Ce(),We("li",{key:J,class:De([W(r).be("spinner","item"),W(r).is("active",K===W(g)[U]),W(r).is("disabled",W(b)[U][K])])},[typeof K=="number"?(Ce(),We(un,{key:0},[U==="hours"?(Ce(),We(un,{key:0},[gr(en(("0"+(H.amPmMode?K%12||12:K)).slice(-2))+en(w(K)),1)],64)):(Ce(),We(un,{key:1},[gr(en(("0"+K).slice(-2)),1)],64))],64)):xt("v-if",!0)],2))),128))],2)],42,LXe))),128)):xt("v-if",!0)],2))}});var FXe=Bn(BXe,[["__file","basic-time-spinner.vue"]]);const NXe=ft({__name:"panel-time-pick",props:CXe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=Ht("EP_PICKER_BASE"),{arrowControl:i,disabledHours:o,disabledMinutes:a,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:d}=xXe(o,a,s),h=cn("time"),{t:f,lang:g}=uo(),b=Re([0,2]),v=SXe(n),m=Oe(()=>rl(n.actualVisible)?`${h.namespace.value}-zoom-in-top`:""),w=Oe(()=>n.format.includes("ss")),k=Oe(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),T=V=>{const H=or(V).locale(g.value),Q=x(H);return H.isSame(Q)},S=()=>{t("pick",v.value,!1)},I=(V=!1,H=!1)=>{H||t("pick",n.parsedValue,V)},O=V=>{if(!n.visible)return;const H=x(V).millisecond(0);t("pick",H,!0)},y=(V,H)=>{t("select-range",V,H),b.value=[V,H]},_=V=>{const H=[0,3].concat(w.value?[6]:[]),Q=["hours","minutes"].concat(w.value?["seconds"]:[]),U=(H.indexOf(b.value[0])+V+H.length)%H.length;R.start_emitSelectRange(Q[U])},A=V=>{const H=V.code,{left:Q,right:U,up:K,down:J}=nr;if([Q,U].includes(H)){_(H===Q?-1:1),V.preventDefault();return}if([K,J].includes(H)){const ue=H===K?-1:1;R.start_scrollDown(ue),V.preventDefault();return}},{timePickerOptions:R,onSetOption:D,getAvailableTime:C}=OXe({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:d}),x=V=>C(V,n.datetimeRole||"",!0),P=V=>V?or(V,n.format).locale(g.value):null,$=V=>V?V.format(n.format):null,L=()=>or(l).locale(g.value);return t("set-picker-option",["isValidValue",T]),t("set-picker-option",["formatToString",$]),t("set-picker-option",["parseUserInput",P]),t("set-picker-option",["handleKeydownInput",A]),t("set-picker-option",["getRangeAvailableTime",x]),t("set-picker-option",["getDefaultValue",L]),(V,H)=>(Ce(),mt(ic,{name:W(m)},{default:ot(()=>[V.actualVisible||V.visible?(Ce(),We("div",{key:0,class:De(W(h).b("panel"))},[at("div",{class:De([W(h).be("panel","content"),{"has-seconds":W(w)}])},[xe(FXe,{ref:"spinner",role:V.datetimeRole||"start","arrow-control":W(i),"show-seconds":W(w),"am-pm-mode":W(k),"spinner-date":V.parsedValue,"disabled-hours":W(o),"disabled-minutes":W(a),"disabled-seconds":W(s),onChange:O,onSetOption:W(D),onSelectRange:y},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),at("div",{class:De(W(h).be("panel","footer"))},[at("button",{type:"button",class:De([W(h).be("panel","btn"),"cancel"]),onClick:S},en(W(f)("el.datepicker.cancel")),3),at("button",{type:"button",class:De([W(h).be("panel","btn"),"confirm"]),onClick:H[0]||(H[0]=Q=>I())},en(W(f)("el.datepicker.confirm")),3)],2)],2)):xt("v-if",!0)]),_:1},8,["name"]))}});var _W=Bn(NXe,[["__file","panel-time-pick.vue"]]),RCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dl,function(){return function(n,r,i){var o=r.prototype,a=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,h,f,g,b){var v=d.name?d:d.$locale(),m=a(v[h]),w=a(v[f]),k=m||w.map(function(S){return S.slice(0,g)});if(!b)return k;var T=v.weekStart;return k.map(function(S,I){return k[(I+(T||0))%7]})},l=function(){return i.Ls[i.locale()]},u=function(d,h){return d.formats[h]||function(f){return f.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,b,v){return b||v.slice(1)})}(d.formats[h.toUpperCase()])},c=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):s(d,"months")},monthsShort:function(h){return h?h.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):s(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return u(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},i.localeData=function(){var d=l();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(h){return u(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},i.months=function(){return s(l(),"months")},i.monthsShort=function(){return s(l(),"monthsShort","months",3)},i.weekdays=function(d){return s(l(),"weekdays",null,null,d)},i.weekdaysShort=function(d){return s(l(),"weekdaysShort","weekdays",3,d)},i.weekdaysMin=function(d){return s(l(),"weekdaysMin","weekdays",2,d)}}})})(RCe);var VXe=RCe.exports;const jXe=pl(VXe),WXe=Tn({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:jt([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),HXe=ft({name:"ElCard"}),zXe=ft({...HXe,props:WXe,setup(e){const t=cn("card");return(n,r)=>(Ce(),We("div",{class:De([W(t).b(),W(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(Ce(),We("div",{key:0,class:De(W(t).e("header"))},[rn(n.$slots,"header",{},()=>[gr(en(n.header),1)])],2)):xt("v-if",!0),at("div",{class:De([W(t).e("body"),n.bodyClass]),style:En(n.bodyStyle)},[rn(n.$slots,"default")],6),n.$slots.footer||n.footer?(Ce(),We("div",{key:1,class:De(W(t).e("footer"))},[rn(n.$slots,"footer",{},()=>[gr(en(n.footer),1)])],2)):xt("v-if",!0)],2))}});var ZXe=Bn(zXe,[["__file","card.vue"]]);const $Ce=Xi(ZXe),MCe={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Fl,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},LCe={[ur]:e=>vi(e)||$r(e)||ol(e),change:e=>vi(e)||$r(e)||ol(e)},Px=Symbol("checkboxGroupContextKey"),GXe=({model:e,isChecked:t})=>{const n=Ht(Px,void 0),r=Oe(()=>{var i,o;const a=(i=n==null?void 0:n.max)==null?void 0:i.value,s=(o=n==null?void 0:n.min)==null?void 0:o.value;return!rl(a)&&e.value.length>=a&&!t.value||!rl(s)&&e.value.length<=s&&t.value});return{isDisabled:bd(Oe(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},QXe=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:i,isLabeledByFormItem:o})=>{const a=Ht(Px,void 0),{formItem:s}=bu(),{emit:l}=dr();function u(g){var b,v;return g===e.trueLabel||g===!0?(b=e.trueLabel)!=null?b:!0:(v=e.falseLabel)!=null?v:!1}function c(g,b){l("change",u(g),b)}function d(g){if(n.value)return;const b=g.target;l("change",u(b.checked),g)}async function h(g){n.value||!r.value&&!i.value&&o.value&&(g.composedPath().some(b=>b.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await mn(),c(t.value,g)))}const f=Oe(()=>(a==null?void 0:a.validateEvent)||e.validateEvent);return Pt(()=>e.modelValue,()=>{f.value&&(s==null||s.validate("change").catch(g=>void 0))}),{handleChange:d,onClickRoot:h}},UXe=e=>{const t=Re(!1),{emit:n}=dr(),r=Ht(Px,void 0),i=Oe(()=>rl(r)===!1),o=Re(!1);return{model:Oe({get(){var a,s;return i.value?(a=r==null?void 0:r.modelValue)==null?void 0:a.value:(s=e.modelValue)!=null?s:t.value},set(a){var s,l;i.value&&Tr(a)?(o.value=((s=r==null?void 0:r.max)==null?void 0:s.value)!==void 0&&a.length>(r==null?void 0:r.max.value),o.value===!1&&((l=r==null?void 0:r.changeEvent)==null||l.call(r,a))):(n(ur,a),t.value=a)}}),isGroup:i,isLimitExceeded:o}},XXe=(e,t,{model:n})=>{const r=Ht(Px,void 0),i=Re(!1),o=Oe(()=>{const u=n.value;return ol(u)?u:Tr(u)?Ha(e.label)?u.map(qr).some(c=>Ep(c,e.label)):u.map(qr).includes(e.label):u!=null?u===e.trueLabel:!!u}),a=js(Oe(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),s=js(Oe(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),l=Oe(()=>!!t.default||!il(e.label));return{checkboxButtonSize:a,isChecked:o,isFocused:i,checkboxSize:s,hasOwnLabel:l}},YXe=(e,{model:t})=>{function n(){Tr(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},BCe=(e,t)=>{const{formItem:n}=bu(),{model:r,isGroup:i,isLimitExceeded:o}=UXe(e),{isFocused:a,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=XXe(e,t,{model:r}),{isDisabled:d}=GXe({model:r,isChecked:s}),{inputId:h,isLabeledByFormItem:f}=D0(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:i}),{handleChange:g,onClickRoot:b}=QXe(e,{model:r,isLimitExceeded:o,hasOwnLabel:c,isDisabled:d,isLabeledByFormItem:f});return YXe(e,{model:r}),{inputId:h,isLabeledByFormItem:f,isChecked:s,isDisabled:d,isFocused:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:g,onClickRoot:b}},KXe=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],qXe=["id","indeterminate","disabled","value","name","tabindex"],JXe=ft({name:"ElCheckbox"}),eYe=ft({...JXe,props:MCe,emits:LCe,setup(e){const t=e,n=yd(),{inputId:r,isLabeledByFormItem:i,isChecked:o,isDisabled:a,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:d,onClickRoot:h}=BCe(t,n),f=cn("checkbox"),g=Oe(()=>[f.b(),f.m(l.value),f.is("disabled",a.value),f.is("bordered",t.border),f.is("checked",o.value)]),b=Oe(()=>[f.e("input"),f.is("disabled",a.value),f.is("checked",o.value),f.is("indeterminate",t.indeterminate),f.is("focus",s.value)]);return(v,m)=>(Ce(),mt(ei(!W(u)&&W(i)?"span":"label"),{class:De(W(g)),"aria-controls":v.indeterminate?v.controls:null,onClick:W(h)},{default:ot(()=>[at("span",{class:De(W(b))},[v.trueLabel||v.falseLabel?Kn((Ce(),We("input",{key:0,id:W(r),"onUpdate:modelValue":m[0]||(m[0]=w=>ni(c)?c.value=w:null),class:De(W(f).e("original")),type:"checkbox",indeterminate:v.indeterminate,name:v.name,tabindex:v.tabindex,disabled:W(a),"true-value":v.trueLabel,"false-value":v.falseLabel,onChange:m[1]||(m[1]=(...w)=>W(d)&&W(d)(...w)),onFocus:m[2]||(m[2]=w=>s.value=!0),onBlur:m[3]||(m[3]=w=>s.value=!1),onClick:m[4]||(m[4]=rr(()=>{},["stop"]))},null,42,KXe)),[[H$,W(c)]]):Kn((Ce(),We("input",{key:1,id:W(r),"onUpdate:modelValue":m[5]||(m[5]=w=>ni(c)?c.value=w:null),class:De(W(f).e("original")),type:"checkbox",indeterminate:v.indeterminate,disabled:W(a),value:v.label,name:v.name,tabindex:v.tabindex,onChange:m[6]||(m[6]=(...w)=>W(d)&&W(d)(...w)),onFocus:m[7]||(m[7]=w=>s.value=!0),onBlur:m[8]||(m[8]=w=>s.value=!1),onClick:m[9]||(m[9]=rr(()=>{},["stop"]))},null,42,qXe)),[[H$,W(c)]]),at("span",{class:De(W(f).e("inner"))},null,2)],2),W(u)?(Ce(),We("span",{key:0,class:De(W(f).e("label"))},[rn(v.$slots,"default"),v.$slots.default?xt("v-if",!0):(Ce(),We(un,{key:0},[gr(en(v.label),1)],64))],2)):xt("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var tYe=Bn(eYe,[["__file","checkbox.vue"]]);const nYe=["name","tabindex","disabled","true-value","false-value"],rYe=["name","tabindex","disabled","value"],iYe=ft({name:"ElCheckboxButton"}),oYe=ft({...iYe,props:MCe,emits:LCe,setup(e){const t=e,n=yd(),{isFocused:r,isChecked:i,isDisabled:o,checkboxButtonSize:a,model:s,handleChange:l}=BCe(t,n),u=Ht(Px,void 0),c=cn("checkbox"),d=Oe(()=>{var f,g,b,v;const m=(g=(f=u==null?void 0:u.fill)==null?void 0:f.value)!=null?g:"";return{backgroundColor:m,borderColor:m,color:(v=(b=u==null?void 0:u.textColor)==null?void 0:b.value)!=null?v:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),h=Oe(()=>[c.b("button"),c.bm("button",a.value),c.is("disabled",o.value),c.is("checked",i.value),c.is("focus",r.value)]);return(f,g)=>(Ce(),We("label",{class:De(W(h))},[f.trueLabel||f.falseLabel?Kn((Ce(),We("input",{key:0,"onUpdate:modelValue":g[0]||(g[0]=b=>ni(s)?s.value=b:null),class:De(W(c).be("button","original")),type:"checkbox",name:f.name,tabindex:f.tabindex,disabled:W(o),"true-value":f.trueLabel,"false-value":f.falseLabel,onChange:g[1]||(g[1]=(...b)=>W(l)&&W(l)(...b)),onFocus:g[2]||(g[2]=b=>r.value=!0),onBlur:g[3]||(g[3]=b=>r.value=!1),onClick:g[4]||(g[4]=rr(()=>{},["stop"]))},null,42,nYe)),[[H$,W(s)]]):Kn((Ce(),We("input",{key:1,"onUpdate:modelValue":g[5]||(g[5]=b=>ni(s)?s.value=b:null),class:De(W(c).be("button","original")),type:"checkbox",name:f.name,tabindex:f.tabindex,disabled:W(o),value:f.label,onChange:g[6]||(g[6]=(...b)=>W(l)&&W(l)(...b)),onFocus:g[7]||(g[7]=b=>r.value=!0),onBlur:g[8]||(g[8]=b=>r.value=!1),onClick:g[9]||(g[9]=rr(()=>{},["stop"]))},null,42,rYe)),[[H$,W(s)]]),f.$slots.default||f.label?(Ce(),We("span",{key:2,class:De(W(c).be("button","inner")),style:En(W(i)?W(d):void 0)},[rn(f.$slots,"default",{},()=>[gr(en(f.label),1)])],6)):xt("v-if",!0)],2))}});var FCe=Bn(oYe,[["__file","checkbox-button.vue"]]);const aYe=Tn({modelValue:{type:jt(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Fl,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),sYe={[ur]:e=>Tr(e),change:e=>Tr(e)},lYe=ft({name:"ElCheckboxGroup"}),uYe=ft({...lYe,props:aYe,emits:sYe,setup(e,{emit:t}){const n=e,r=cn("checkbox"),{formItem:i}=bu(),{inputId:o,isLabeledByFormItem:a}=D0(n,{formItemContext:i}),s=async u=>{t(ur,u),await mn(),t("change",u)},l=Oe({get(){return n.modelValue},set(u){s(u)}});return Or(Px,{...yHe(rc(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Pt(()=>n.modelValue,()=>{n.validateEvent&&(i==null||i.validate("change").catch(u=>void 0))}),(u,c)=>{var d;return Ce(),mt(ei(u.tag),{id:W(o),class:De(W(r).b("group")),role:"group","aria-label":W(a)?void 0:u.label||"checkbox-group","aria-labelledby":W(a)?(d=W(i))==null?void 0:d.labelId:void 0},{default:ot(()=>[rn(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var NCe=Bn(uYe,[["__file","checkbox-group.vue"]]);const jp=Xi(tYe,{CheckboxButton:FCe,CheckboxGroup:NCe}),cYe=yh(FCe),VCe=yh(NCe),jCe=Tn({size:Fl,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),dYe=Tn({...jCe,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),WCe={[ur]:e=>vi(e)||$r(e)||ol(e),[Ua]:e=>vi(e)||$r(e)||ol(e)},HCe=Symbol("radioGroupKey"),zCe=(e,t)=>{const n=Re(),r=Ht(HCe,void 0),i=Oe(()=>!!r),o=Oe({get(){return i.value?r.modelValue:e.modelValue},set(c){i.value?r.changeEvent(c):t&&t(ur,c),n.value.checked=e.modelValue===e.label}}),a=js(Oe(()=>r==null?void 0:r.size)),s=bd(Oe(()=>r==null?void 0:r.disabled)),l=Re(!1),u=Oe(()=>s.value||i.value&&o.value!==e.label?-1:0);return{radioRef:n,isGroup:i,radioGroup:r,focus:l,size:a,disabled:s,tabIndex:u,modelValue:o}},hYe=["value","name","disabled"],pYe=ft({name:"ElRadio"}),fYe=ft({...pYe,props:dYe,emits:WCe,setup(e,{emit:t}){const n=e,r=cn("radio"),{radioRef:i,radioGroup:o,focus:a,size:s,disabled:l,modelValue:u}=zCe(n,t);function c(){mn(()=>t("change",u.value))}return(d,h)=>{var f;return Ce(),We("label",{class:De([W(r).b(),W(r).is("disabled",W(l)),W(r).is("focus",W(a)),W(r).is("bordered",d.border),W(r).is("checked",W(u)===d.label),W(r).m(W(s))])},[at("span",{class:De([W(r).e("input"),W(r).is("disabled",W(l)),W(r).is("checked",W(u)===d.label)])},[Kn(at("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":h[0]||(h[0]=g=>ni(u)?u.value=g:null),class:De(W(r).e("original")),value:d.label,name:d.name||((f=W(o))==null?void 0:f.name),disabled:W(l),type:"radio",onFocus:h[1]||(h[1]=g=>a.value=!0),onBlur:h[2]||(h[2]=g=>a.value=!1),onChange:c,onClick:h[3]||(h[3]=rr(()=>{},["stop"]))},null,42,hYe),[[a1e,W(u)]]),at("span",{class:De(W(r).e("inner"))},null,2)],2),at("span",{class:De(W(r).e("label")),onKeydown:h[4]||(h[4]=rr(()=>{},["stop"]))},[rn(d.$slots,"default",{},()=>[gr(en(d.label),1)])],34)],2)}}});var gYe=Bn(fYe,[["__file","radio.vue"]]);const mYe=Tn({...jCe,name:{type:String,default:""}}),vYe=["value","name","disabled"],yYe=ft({name:"ElRadioButton"}),bYe=ft({...yYe,props:mYe,setup(e){const t=e,n=cn("radio"),{radioRef:r,focus:i,size:o,disabled:a,modelValue:s,radioGroup:l}=zCe(t),u=Oe(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(c,d)=>{var h;return Ce(),We("label",{class:De([W(n).b("button"),W(n).is("active",W(s)===c.label),W(n).is("disabled",W(a)),W(n).is("focus",W(i)),W(n).bm("button",W(o))])},[Kn(at("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":d[0]||(d[0]=f=>ni(s)?s.value=f:null),class:De(W(n).be("button","original-radio")),value:c.label,type:"radio",name:c.name||((h=W(l))==null?void 0:h.name),disabled:W(a),onFocus:d[1]||(d[1]=f=>i.value=!0),onBlur:d[2]||(d[2]=f=>i.value=!1),onClick:d[3]||(d[3]=rr(()=>{},["stop"]))},null,42,vYe),[[a1e,W(s)]]),at("span",{class:De(W(n).be("button","inner")),style:En(W(s)===c.label?W(u):{}),onKeydown:d[4]||(d[4]=rr(()=>{},["stop"]))},[rn(c.$slots,"default",{},()=>[gr(en(c.label),1)])],38)],2)}}});var ZCe=Bn(bYe,[["__file","radio-button.vue"]]);const wYe=Tn({id:{type:String,default:void 0},size:Fl,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),CYe=WCe,OYe=["id","aria-label","aria-labelledby"],xYe=ft({name:"ElRadioGroup"}),SYe=ft({...xYe,props:wYe,emits:CYe,setup(e,{emit:t}){const n=e,r=cn("radio"),i=c0(),o=Re(),{formItem:a}=bu(),{inputId:s,isLabeledByFormItem:l}=D0(n,{formItemContext:a}),u=d=>{t(ur,d),mn(()=>t("change",d))};_n(()=>{const d=o.value.querySelectorAll("[type=radio]"),h=d[0];!Array.from(d).some(f=>f.checked)&&h&&(h.tabIndex=0)});const c=Oe(()=>n.name||i.value);return Or(HCe,Br({...rc(n),changeEvent:u,name:c})),Pt(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(d=>void 0))}),(d,h)=>(Ce(),We("div",{id:W(s),ref_key:"radioGroupRef",ref:o,class:De(W(r).b("group")),role:"radiogroup","aria-label":W(l)?void 0:d.label||"radio-group","aria-labelledby":W(l)?W(a).labelId:void 0},[rn(d.$slots,"default")],10,OYe))}});var GCe=Bn(SYe,[["__file","radio-group.vue"]]);const QCe=Xi(gYe,{RadioButton:ZCe,RadioGroup:GCe}),AYe=yh(GCe),IYe=yh(ZCe);var kYe=ft({name:"NodeContent",setup(){return{ns:cn("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:i}=t,{renderLabelFn:o}=n;return Yn("span",{class:e.e("label")},o?o({node:t,data:r}):i)}});const nX=Symbol(),EYe=ft({name:"ElCascaderNode",components:{ElCheckbox:jp,ElRadio:QCe,NodeContent:kYe,ElIcon:Ln,Check:SL,Loading:kx,ArrowRight:Tp},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Ht(nX),r=cn("cascader-node"),i=Oe(()=>n.isHoverMenu),o=Oe(()=>n.config.multiple),a=Oe(()=>n.config.checkStrictly),s=Oe(()=>{var I;return(I=n.checkedNodes[0])==null?void 0:I.uid}),l=Oe(()=>e.node.isDisabled),u=Oe(()=>e.node.isLeaf),c=Oe(()=>a.value&&!u.value||!l.value),d=Oe(()=>f(n.expandingNode)),h=Oe(()=>a.value&&n.checkedNodes.some(f)),f=I=>{var O;const{level:y,uid:_}=e.node;return((O=I==null?void 0:I.pathNodes[y-1])==null?void 0:O.uid)===_},g=()=>{d.value||n.expandNode(e.node)},b=I=>{const{node:O}=e;I!==O.checked&&n.handleCheckChange(O,I)},v=()=>{n.lazyLoad(e.node,()=>{u.value||g()})},m=I=>{i.value&&(w(),!u.value&&t("expand",I))},w=()=>{const{node:I}=e;!c.value||I.loading||(I.loaded?g():v())},k=()=>{i.value&&!u.value||(u.value&&!l.value&&!a.value&&!o.value?S(!0):w())},T=I=>{a.value?(b(I),e.node.loaded&&g()):S(I)},S=I=>{e.node.loaded?(b(I),!a.value&&g()):v()};return{panel:n,isHoverMenu:i,multiple:o,checkStrictly:a,checkedNodeId:s,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:d,inCheckedPath:h,ns:r,handleHoverExpand:m,handleExpand:w,handleClick:k,handleCheck:S,handleSelectCheck:T}}}),_Ye=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],TYe=at("span",null,null,-1);function PYe(e,t,n,r,i,o){const a=Ar("el-checkbox"),s=Ar("el-radio"),l=Ar("check"),u=Ar("el-icon"),c=Ar("node-content"),d=Ar("loading"),h=Ar("arrow-right");return Ce(),We("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:De([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...f)=>e.handleHoverExpand&&e.handleHoverExpand(...f)),onFocus:t[3]||(t[3]=(...f)=>e.handleHoverExpand&&e.handleHoverExpand(...f)),onClick:t[4]||(t[4]=(...f)=>e.handleClick&&e.handleClick(...f))},[xt(" prefix "),e.multiple?(Ce(),mt(a,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=rr(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(Ce(),mt(s,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=rr(()=>{},["stop"]))},{default:ot(()=>[xt(`
|
|
Add an empty element to avoid render label,
|
|
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
|
`),TYe]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(Ce(),mt(u,{key:2,class:De(e.ns.e("prefix"))},{default:ot(()=>[xe(l)]),_:1},8,["class"])):xt("v-if",!0),xt(" content "),xe(c),xt(" postfix "),e.isLeaf?xt("v-if",!0):(Ce(),We(un,{key:3},[e.node.loading?(Ce(),mt(u,{key:0,class:De([e.ns.is("loading"),e.ns.e("postfix")])},{default:ot(()=>[xe(d)]),_:1},8,["class"])):(Ce(),mt(u,{key:1,class:De(["arrow-right",e.ns.e("postfix")])},{default:ot(()=>[xe(h)]),_:1},8,["class"]))],64))],42,_Ye)}var DYe=Bn(EYe,[["render",PYe],["__file","node.vue"]]);const RYe=ft({name:"ElCascaderMenu",components:{Loading:kx,ElIcon:Ln,ElScrollbar:Tx,ElCascaderNode:DYe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=dr(),n=cn("cascader-menu"),{t:r}=uo(),i=WU();let o=null,a=null;const s=Ht(nX),l=Re(null),u=Oe(()=>!e.nodes.length),c=Oe(()=>!s.initialLoaded),d=Oe(()=>`cascader-menu-${i}-${e.index}`),h=v=>{o=v.target},f=v=>{if(!(!s.isHoverMenu||!o||!l.value))if(o.contains(v.target)){g();const m=t.vnode.el,{left:w}=m.getBoundingClientRect(),{offsetWidth:k,offsetHeight:T}=m,S=v.clientX-w,I=o.offsetTop,O=I+o.offsetHeight;l.value.innerHTML=`
|
|
<path style="pointer-events: auto;" fill="transparent" d="M${S} ${I} L${k} 0 V${I} Z" />
|
|
<path style="pointer-events: auto;" fill="transparent" d="M${S} ${O} L${k} ${T} V${O} Z" />
|
|
`}else a||(a=window.setTimeout(b,s.config.hoverThreshold))},g=()=>{a&&(clearTimeout(a),a=null)},b=()=>{l.value&&(l.value.innerHTML="",g())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:d,t:r,handleExpand:h,handleMouseMove:f,clearHoverZone:b}}});function $Ye(e,t,n,r,i,o){const a=Ar("el-cascader-node"),s=Ar("loading"),l=Ar("el-icon"),u=Ar("el-scrollbar");return Ce(),mt(u,{key:e.menuId,tag:"ul",role:"menu",class:De(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:ot(()=>{var c;return[(Ce(!0),We(un,null,xr(e.nodes,d=>(Ce(),mt(a,{key:d.uid,node:d,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(Ce(),We("div",{key:0,class:De(e.ns.e("empty-text"))},[xe(l,{size:"14",class:De(e.ns.is("loading"))},{default:ot(()=>[xe(s)]),_:1},8,["class"]),gr(" "+en(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(Ce(),We("div",{key:1,class:De(e.ns.e("empty-text"))},en(e.t("el.cascader.noData")),3)):(c=e.panel)!=null&&c.isHoverMenu?(Ce(),We("svg",{key:2,ref:"hoverZone",class:De(e.ns.e("hover-zone"))},null,2)):xt("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var MYe=Bn(RYe,[["render",$Ye],["__file","menu.vue"]]);let LYe=0;const BYe=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let TW=class PW{constructor(t,n,r,i=!1){this.data=t,this.config=n,this.parent=r,this.root=i,this.uid=LYe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:a,children:s}=n,l=t[s],u=BYe(this);this.level=i?0:r?r.level+1:1,this.value=t[o],this.label=t[a],this.pathNodes=u,this.pathValues=u.map(c=>c.value),this.pathLabels=u.map(c=>c.label),this.childrenData=l,this.children=(l||[]).map(c=>new PW(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!Vc(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:i,checkStrictly:o}=r;return(_i(i)?i(t,this):!!t[i])||!o&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:i}=this,{lazy:o,leaf:a}=n,s=_i(a)?a(t,this):t[a];return rl(s)?o&&!i?!1:!(Array.isArray(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,i=new PW(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(i),i}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${dp(t)}`;this.children.forEach(i=>{i&&(i.broadcast(t,...n),i[r]&&i[r](...n))})}emit(t,...n){const{parent:r}=this,i=`onChild${dp(t)}`;r&&(r[i]&&r[i](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(i=>!i.isDisabled),r=n.length?n.every(i=>i.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((i,o)=>{const a=o.checked?1:o.indeterminate?.5:0;return i+a},0);this.checked=this.loaded&&this.children.filter(i=>!i.isDisabled).every(i=>i.loaded&&i.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const DW=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(DW(r.children,t))),n),[]);class rie{constructor(t,n){this.config=n;const r=(t||[]).map(i=>new TW(i,this.config));this.nodes=r,this.allNodes=DW(r,!1),this.leafNodes=DW(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new TW(t,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(r=>Ep(r.value,t)||Ep(r.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:n,level:r})=>Ep(t.value,n)&&t.level===r)||null}}const UCe=Tn({modelValue:{type:jt([Number,String,Array])},options:{type:jt(Array),default:()=>[]},props:{type:jt(Object),default:()=>({})}}),FYe={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:go,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},NYe=e=>Oe(()=>({...FYe,...e.props})),iie=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},VYe=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():R1e(e)&&e.click()},jYe=(e,t)=>{const n=t.slice(0),r=n.map(o=>o.uid),i=e.reduce((o,a)=>{const s=r.indexOf(a.uid);return s>-1&&(o.push(a),n.splice(s,1),r.splice(s,1)),o},[]);return i.push(...n),i},WYe=ft({name:"ElCascaderPanel",components:{ElCascaderMenu:MYe},props:{...UCe,border:{type:Boolean,default:!0},renderLabel:Function},emits:[ur,Ua,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const i=cn("cascader"),o=NYe(e);let a=null;const s=Re(!0),l=Re([]),u=Re(null),c=Re([]),d=Re(null),h=Re([]),f=Oe(()=>o.value.expandTrigger==="hover"),g=Oe(()=>e.renderLabel||n.default),b=()=>{const{options:D}=e,C=o.value;r=!1,a=new rie(D,C),c.value=[a.getNodes()],C.lazy&&Vc(e.options)?(s.value=!1,v(void 0,x=>{x&&(a=new rie(x,C),c.value=[a.getNodes()]),s.value=!0,y(!1,!0)})):y(!1,!0)},v=(D,C)=>{const x=o.value;D=D||new TW({},x,void 0,!0),D.loading=!0;const P=$=>{const L=D,V=L.root?null:L;$&&(a==null||a.appendNodes($,V)),L.loading=!1,L.loaded=!0,L.childrenData=L.childrenData||[],C&&C($)};x.lazyLoad(D,P)},m=(D,C)=>{var x;const{level:P}=D,$=c.value.slice(0,P);let L;D.isLeaf?L=D.pathNodes[P-2]:(L=D,$.push(D.children)),((x=d.value)==null?void 0:x.uid)!==(L==null?void 0:L.uid)&&(d.value=D,c.value=$,!C&&t("expand-change",(D==null?void 0:D.pathValues)||[]))},w=(D,C,x=!0)=>{const{checkStrictly:P,multiple:$}=o.value,L=h.value[0];r=!0,!$&&(L==null||L.doCheck(!1)),D.doCheck(C),O(),x&&!$&&!P&&t("close"),!x&&!$&&!P&&k(D)},k=D=>{D&&(D=D.parent,k(D),D&&m(D))},T=D=>a==null?void 0:a.getFlattedNodes(D),S=D=>{var C;return(C=T(D))==null?void 0:C.filter(x=>x.checked!==!1)},I=()=>{h.value.forEach(D=>D.doCheck(!1)),O(),c.value=c.value.slice(0,1),d.value=null,t("expand-change",[])},O=()=>{var D;const{checkStrictly:C,multiple:x}=o.value,P=h.value,$=S(!C),L=jYe(P,$),V=L.map(H=>H.valueByOption);h.value=L,u.value=x?V:(D=V[0])!=null?D:null},y=(D=!1,C=!1)=>{const{modelValue:x}=e,{lazy:P,multiple:$,checkStrictly:L}=o.value,V=!L;if(!(!s.value||r||!C&&Ep(x,u.value)))if(P&&!D){const H=are(pHe(cg(x))).map(Q=>a==null?void 0:a.getNodeByValue(Q)).filter(Q=>!!Q&&!Q.loaded&&!Q.loading);H.length?H.forEach(Q=>{v(Q,()=>y(!1,C))}):y(!0,C)}else{const H=$?cg(x):[x],Q=are(H.map(U=>a==null?void 0:a.getNodeByValue(U,V)));_(Q,C),u.value=U$(x)}},_=(D,C=!0)=>{const{checkStrictly:x}=o.value,P=h.value,$=D.filter(H=>!!H&&(x||H.isLeaf)),L=a==null?void 0:a.getSameNode(d.value),V=C&&L||$[0];V?V.pathNodes.forEach(H=>m(H,!0)):d.value=null,P.forEach(H=>H.doCheck(!1)),e.props.multiple?Br($).forEach(H=>H.doCheck(!0)):$.forEach(H=>H.doCheck(!0)),h.value=$,mn(A)},A=()=>{Ii&&l.value.forEach(D=>{const C=D==null?void 0:D.$el;if(C){const x=C.querySelector(`.${i.namespace.value}-scrollbar__wrap`),P=C.querySelector(`.${i.b("node")}.${i.is("active")}`)||C.querySelector(`.${i.b("node")}.in-active-path`);ywe(x,P)}})},R=D=>{const C=D.target,{code:x}=D;switch(x){case nr.up:case nr.down:{D.preventDefault();const P=x===nr.up?-1:1;h3($1e(C,P,`.${i.b("node")}[tabindex="-1"]`));break}case nr.left:{D.preventDefault();const P=l.value[iie(C)-1],$=P==null?void 0:P.$el.querySelector(`.${i.b("node")}[aria-expanded="true"]`);h3($);break}case nr.right:{D.preventDefault();const P=l.value[iie(C)+1],$=P==null?void 0:P.$el.querySelector(`.${i.b("node")}[tabindex="-1"]`);h3($);break}case nr.enter:VYe(C);break}};return Or(nX,Br({config:o,expandingNode:d,checkedNodes:h,isHoverMenu:f,initialLoaded:s,renderLabelFn:g,lazyLoad:v,expandNode:m,handleCheckChange:w})),Pt([o,()=>e.options],b,{deep:!0,immediate:!0}),Pt(()=>e.modelValue,()=>{r=!1,y()},{deep:!0}),Pt(()=>u.value,D=>{Ep(D,e.modelValue)||(t(ur,D),t(Ua,D))}),Abe(()=>l.value=[]),_n(()=>!Vc(e.modelValue)&&y()),{ns:i,menuList:l,menus:c,checkedNodes:h,handleKeyDown:R,handleCheckChange:w,getFlattedNodes:T,getCheckedNodes:S,clearCheckedNodes:I,calculateCheckedValue:O,scrollToExpandingNode:A}}});function HYe(e,t,n,r,i,o){const a=Ar("el-cascader-menu");return Ce(),We("div",{class:De([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...s)=>e.handleKeyDown&&e.handleKeyDown(...s))},[(Ce(!0),We(un,null,xr(e.menus,(s,l)=>(Ce(),mt(a,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],34)}var C3=Bn(WYe,[["render",HYe],["__file","index.vue"]]);C3.install=e=>{e.component(C3.name,C3)};const zYe=C3,rX=Tn({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:Ex,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),ZYe={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},GYe=ft({name:"ElTag"}),QYe=ft({...GYe,props:rX,emits:ZYe,setup(e,{emit:t}){const n=e,r=js(),i=cn("tag"),o=Oe(()=>{const{type:l,hit:u,effect:c,closable:d,round:h}=n;return[i.b(),i.is("closable",d),i.m(l),i.m(r.value),i.m(c),i.is("hit",u),i.is("round",h)]}),a=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(Ce(),We("span",{key:0,class:De(W(o)),style:En({backgroundColor:l.color}),onClick:s},[at("span",{class:De(W(i).e("content"))},[rn(l.$slots,"default")],2),l.closable?(Ce(),mt(W(Ln),{key:0,class:De(W(i).e("close")),onClick:rr(a,["stop"])},{default:ot(()=>[xe(W(yg))]),_:1},8,["class","onClick"])):xt("v-if",!0)],6)):(Ce(),mt(ic,{key:1,name:`${W(i).namespace.value}-zoom-in-center`,appear:""},{default:ot(()=>[at("span",{class:De(W(o)),style:En({backgroundColor:l.color}),onClick:s},[at("span",{class:De(W(i).e("content"))},[rn(l.$slots,"default")],2),l.closable?(Ce(),mt(W(Ln),{key:0,class:De(W(i).e("close")),onClick:rr(a,["stop"])},{default:ot(()=>[xe(W(yg))]),_:1},8,["class","onClick"])):xt("v-if",!0)],6)]),_:3},8,["name"]))}});var UYe=Bn(QYe,[["__file","tag.vue"]]);const t5=Xi(UYe),XYe=Tn({...UCe,size:Fl,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:jt(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:jt(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:DL.teleported,tagType:{...rX.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),YYe={[ur]:e=>!!e||e===null,[Ua]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>ol(e),expandChange:e=>!!e,removeTag:e=>!!e},KYe={key:0},qYe=["placeholder","onKeydown"],JYe=["onClick"],eKe="ElCascader",tKe=ft({name:eKe}),nKe=ft({...tKe,props:XYe,emits:YYe,setup(e,{expose:t,emit:n}){const r=e,i={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Me})=>{const{modifiersData:je,placement:Ue}=Me;["right","left","bottom","top"].includes(Ue)||(je.arrow.x=35)},requires:["arrow"]}]},o=g_();let a=0,s=0;const l=cn("cascader"),u=cn("input"),{t:c}=uo(),{form:d,formItem:h}=bu(),f=Re(null),g=Re(null),b=Re(null),v=Re(null),m=Re(null),w=Re(!1),k=Re(!1),T=Re(!1),S=Re(!1),I=Re(""),O=Re(""),y=Re([]),_=Re([]),A=Re([]),R=Re(!1),D=Oe(()=>o.style),C=Oe(()=>r.disabled||(d==null?void 0:d.disabled)),x=Oe(()=>r.placeholder||c("el.cascader.placeholder")),P=Oe(()=>O.value||y.value.length>0||R.value?"":x.value),$=js(),L=Oe(()=>["small"].includes($.value)?"small":"default"),V=Oe(()=>!!r.props.multiple),H=Oe(()=>!r.filterable||V.value),Q=Oe(()=>V.value?O.value:I.value),U=Oe(()=>{var Me;return((Me=v.value)==null?void 0:Me.checkedNodes)||[]}),K=Oe(()=>!r.clearable||C.value||T.value||!k.value?!1:!!U.value.length),J=Oe(()=>{const{showAllLevels:Me,separator:je}=r,Ue=U.value;return Ue.length?V.value?"":Ue[0].calcText(Me,je):""}),ue=Oe({get(){return U$(r.modelValue)},set(Me){n(ur,Me),n(Ua,Me),r.validateEvent&&(h==null||h.validate("change").catch(je=>void 0))}}),ee=Oe(()=>[l.b(),l.m($.value),l.is("disabled",C.value),o.class]),N=Oe(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",w.value)]),q=Oe(()=>l.is("focus",w.value||S.value)),G=Oe(()=>{var Me,je;return(je=(Me=f.value)==null?void 0:Me.popperRef)==null?void 0:je.contentRef}),ne=Me=>{var je,Ue,Te;C.value||(Me=Me??!w.value,Me!==w.value&&(w.value=Me,(Ue=(je=g.value)==null?void 0:je.input)==null||Ue.setAttribute("aria-expanded",`${Me}`),Me?(le(),mn((Te=v.value)==null?void 0:Te.scrollToExpandingNode)):r.filterable&&fe(),n("visibleChange",Me)))},le=()=>{mn(()=>{var Me;(Me=f.value)==null||Me.updatePopper()})},oe=()=>{T.value=!1},ve=Me=>{const{showAllLevels:je,separator:Ue}=r;return{node:Me,key:Me.uid,text:Me.calcText(je,Ue),hitState:!1,closable:!C.value&&!Me.isDisabled,isCollapseTag:!1}},de=Me=>{var je;const Ue=Me.node;Ue.doCheck(!1),(je=v.value)==null||je.calculateCheckedValue(),n("removeTag",Ue.valueByOption)},ae=()=>{if(!V.value)return;const Me=U.value,je=[],Ue=[];if(Me.forEach(Te=>Ue.push(ve(Te))),_.value=Ue,Me.length){Me.slice(0,r.maxCollapseTags).forEach(At=>je.push(ve(At)));const Te=Me.slice(r.maxCollapseTags),bt=Te.length;bt&&(r.collapseTags?je.push({key:-1,text:`+ ${bt}`,closable:!1,isCollapseTag:!0}):Te.forEach(At=>je.push(ve(At))))}y.value=je},be=()=>{var Me,je;const{filterMethod:Ue,showAllLevels:Te,separator:bt}=r,At=(je=(Me=v.value)==null?void 0:Me.getFlattedNodes(!r.props.checkStrictly))==null?void 0:je.filter(ht=>ht.isDisabled?!1:(ht.calcText(Te,bt),Ue(ht,Q.value)));V.value&&(y.value.forEach(ht=>{ht.hitState=!1}),_.value.forEach(ht=>{ht.hitState=!1})),T.value=!0,A.value=At,le()},ie=()=>{var Me;let je;T.value&&m.value?je=m.value.$el.querySelector(`.${l.e("suggestion-item")}`):je=(Me=v.value)==null?void 0:Me.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),je&&(je.focus(),!T.value&&je.click())},ce=()=>{var Me,je;const Ue=(Me=g.value)==null?void 0:Me.input,Te=b.value,bt=(je=m.value)==null?void 0:je.$el;if(!(!Ii||!Ue)){if(bt){const At=bt.querySelector(`.${l.e("suggestion-list")}`);At.style.minWidth=`${Ue.offsetWidth}px`}if(Te){const{offsetHeight:At}=Te,ht=y.value.length>0?`${Math.max(At+6,a)}px`:`${a}px`;Ue.style.height=ht,le()}}},pe=Me=>{var je;return(je=v.value)==null?void 0:je.getCheckedNodes(Me)},X=Me=>{le(),n("expandChange",Me)},Z=Me=>{var je;const Ue=(je=Me.target)==null?void 0:je.value;if(Me.type==="compositionend")R.value=!1,mn(()=>st(Ue));else{const Te=Ue[Ue.length-1]||"";R.value=!jU(Te)}},Y=Me=>{if(!R.value)switch(Me.code){case nr.enter:ne();break;case nr.down:ne(!0),mn(ie),Me.preventDefault();break;case nr.esc:w.value===!0&&(Me.preventDefault(),Me.stopPropagation(),ne(!1));break;case nr.tab:ne(!1);break}},se=()=>{var Me;(Me=v.value)==null||Me.clearCheckedNodes(),!w.value&&r.filterable&&fe(),ne(!1)},fe=()=>{const{value:Me}=J;I.value=Me,O.value=Me},me=Me=>{var je,Ue;const{checked:Te}=Me;V.value?(je=v.value)==null||je.handleCheckChange(Me,!Te,!1):(!Te&&((Ue=v.value)==null||Ue.handleCheckChange(Me,!0,!1)),ne(!1))},Ae=Me=>{const je=Me.target,{code:Ue}=Me;switch(Ue){case nr.up:case nr.down:{const Te=Ue===nr.up?-1:1;h3($1e(je,Te,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case nr.enter:je.click();break}},Be=()=>{const Me=y.value,je=Me[Me.length-1];s=O.value?0:s+1,!(!je||!s||r.collapseTags&&Me.length>1)&&(je.hitState?de(je):je.hitState=!0)},Ye=Me=>{const je=Me.target,Ue=l.e("search-input");je.className===Ue&&(S.value=!0),n("focus",Me)},Qe=Me=>{S.value=!1,n("blur",Me)},nt=ch(()=>{const{value:Me}=Q;if(!Me)return;const je=r.beforeFilter(Me);nW(je)?je.then(be).catch(()=>{}):je!==!1?be():oe()},r.debounce),st=(Me,je)=>{!w.value&&ne(!0),!(je!=null&&je.isComposing)&&(Me?nt():oe())},Le=Me=>Number.parseFloat(o6e(u.cssVarName("input-height"),Me).value)-2;return Pt(T,le),Pt([U,C],ae),Pt(y,()=>{mn(()=>ce())}),Pt($,async()=>{await mn();const Me=g.value.input;a=Le(Me)||a,ce()}),Pt(J,fe,{immediate:!0}),_n(()=>{const Me=g.value.input,je=Le(Me);a=Me.offsetHeight||je,uh(Me,ce)}),t({getCheckedNodes:pe,cascaderPanelRef:v,togglePopperVisible:ne,contentRef:G}),(Me,je)=>(Ce(),mt(W(wg),{ref_key:"tooltipRef",ref:f,visible:w.value,teleported:Me.teleported,"popper-class":[W(l).e("dropdown"),Me.popperClass],"popper-options":i,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${W(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:oe},{default:ot(()=>[Kn((Ce(),We("div",{class:De(W(ee)),style:En(W(D)),onClick:je[5]||(je[5]=()=>ne(W(H)?void 0:!0)),onKeydown:Y,onMouseenter:je[6]||(je[6]=Ue=>k.value=!0),onMouseleave:je[7]||(je[7]=Ue=>k.value=!1)},[xe(W(Fs),{ref_key:"input",ref:g,modelValue:I.value,"onUpdate:modelValue":je[1]||(je[1]=Ue=>I.value=Ue),placeholder:W(P),readonly:W(H),disabled:W(C),"validate-event":!1,size:W($),class:De(W(q)),tabindex:W(V)&&Me.filterable&&!W(C)?-1:void 0,onCompositionstart:Z,onCompositionupdate:Z,onCompositionend:Z,onFocus:Ye,onBlur:Qe,onInput:st},{suffix:ot(()=>[W(K)?(Ce(),mt(W(Ln),{key:"clear",class:De([W(u).e("icon"),"icon-circle-close"]),onClick:rr(se,["stop"])},{default:ot(()=>[xe(W(Ix))]),_:1},8,["class","onClick"])):(Ce(),mt(W(Ln),{key:"arrow-down",class:De(W(N)),onClick:je[0]||(je[0]=rr(Ue=>ne(),["stop"]))},{default:ot(()=>[xe(W(Ax))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),W(V)?(Ce(),We("div",{key:0,ref_key:"tagWrapper",ref:b,class:De(W(l).e("tags"))},[(Ce(!0),We(un,null,xr(y.value,Ue=>(Ce(),mt(W(t5),{key:Ue.key,type:Me.tagType,size:W(L),hit:Ue.hitState,closable:Ue.closable,"disable-transitions":"",onClose:Te=>de(Ue)},{default:ot(()=>[Ue.isCollapseTag===!1?(Ce(),We("span",KYe,en(Ue.text),1)):(Ce(),mt(W(wg),{key:1,disabled:w.value||!Me.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:ot(()=>[at("span",null,en(Ue.text),1)]),content:ot(()=>[at("div",{class:De(W(l).e("collapse-tags"))},[(Ce(!0),We(un,null,xr(_.value.slice(Me.maxCollapseTags),(Te,bt)=>(Ce(),We("div",{key:bt,class:De(W(l).e("collapse-tag"))},[(Ce(),mt(W(t5),{key:Te.key,class:"in-tooltip",type:Me.tagType,size:W(L),hit:Te.hitState,closable:Te.closable,"disable-transitions":"",onClose:At=>de(Te)},{default:ot(()=>[at("span",null,en(Te.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),Me.filterable&&!W(C)?Kn((Ce(),We("input",{key:0,"onUpdate:modelValue":je[2]||(je[2]=Ue=>O.value=Ue),type:"text",class:De(W(l).e("search-input")),placeholder:W(J)?"":W(x),onInput:je[3]||(je[3]=Ue=>st(O.value,Ue)),onClick:je[4]||(je[4]=rr(Ue=>ne(!0),["stop"])),onKeydown:Zi(Be,["delete"]),onCompositionstart:Z,onCompositionupdate:Z,onCompositionend:Z,onFocus:Ye,onBlur:Qe},null,42,qYe)),[[o1e,O.value]]):xt("v-if",!0)],2)):xt("v-if",!0)],38)),[[W(Yb),()=>ne(!1),W(G)]])]),content:ot(()=>[Kn(xe(W(zYe),{ref_key:"cascaderPanelRef",ref:v,modelValue:W(ue),"onUpdate:modelValue":je[8]||(je[8]=Ue=>ni(ue)?ue.value=Ue:null),options:Me.options,props:r.props,border:!1,"render-label":Me.$slots.default,onExpandChange:X,onClose:je[9]||(je[9]=Ue=>Me.$nextTick(()=>ne(!1)))},null,8,["modelValue","options","props","render-label"]),[[Ni,!T.value]]),Me.filterable?Kn((Ce(),mt(W(Tx),{key:0,ref_key:"suggestionPanel",ref:m,tag:"ul",class:De(W(l).e("suggestion-panel")),"view-class":W(l).e("suggestion-list"),onKeydown:Ae},{default:ot(()=>[A.value.length?(Ce(!0),We(un,{key:0},xr(A.value,Ue=>(Ce(),We("li",{key:Ue.uid,class:De([W(l).e("suggestion-item"),W(l).is("checked",Ue.checked)]),tabindex:-1,onClick:Te=>me(Ue)},[at("span",null,en(Ue.text),1),Ue.checked?(Ce(),mt(W(Ln),{key:0},{default:ot(()=>[xe(W(SL))]),_:1})):xt("v-if",!0)],10,JYe))),128)):rn(Me.$slots,"empty",{key:1},()=>[at("li",{class:De(W(l).e("empty-text"))},en(W(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Ni,T.value]]):xt("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var O3=Bn(nKe,[["__file","cascader.vue"]]);O3.install=e=>{e.component(O3.name,O3)};const rKe=O3,iKe=rKe,oie=e=>typeof $r(e),oKe=Tn({accordion:Boolean,modelValue:{type:jt([Array,String,Number]),default:()=>dh([])}}),aKe={[ur]:oie,[Ua]:oie},XCe=Symbol("collapseContextKey"),sKe=(e,t)=>{const n=Re(N2(e.modelValue)),r=o=>{n.value=o;const a=e.accordion?n.value[0]:n.value;t(ur,a),t(Ua,a)},i=o=>{if(e.accordion)r([n.value[0]===o?"":o]);else{const a=[...n.value],s=a.indexOf(o);s>-1?a.splice(s,1):a.push(o),r(a)}};return Pt(()=>e.modelValue,()=>n.value=N2(e.modelValue),{deep:!0}),Or(XCe,{activeNames:n,handleItemClick:i}),{activeNames:n,setActiveNames:r}},lKe=()=>{const e=cn("collapse");return{rootKls:Oe(()=>e.b())}},uKe=ft({name:"ElCollapse"}),cKe=ft({...uKe,props:oKe,emits:aKe,setup(e,{expose:t,emit:n}){const r=e,{activeNames:i,setActiveNames:o}=sKe(r,n),{rootKls:a}=lKe();return t({activeNames:i,setActiveNames:o}),(s,l)=>(Ce(),We("div",{class:De(W(a))},[rn(s.$slots,"default")],2))}});var dKe=Bn(cKe,[["__file","collapse.vue"]]);const hKe=ft({name:"ElCollapseTransition"}),pKe=ft({...hKe,setup(e){const t=cn("collapse-transition"),n=i=>{i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom},r={beforeEnter(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.style.height&&(i.dataset.elExistsHeight=i.style.height),i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0},enter(i){requestAnimationFrame(()=>{i.dataset.oldOverflow=i.style.overflow,i.dataset.elExistsHeight?i.style.maxHeight=i.dataset.elExistsHeight:i.scrollHeight!==0?i.style.maxHeight=`${i.scrollHeight}px`:i.style.maxHeight=0,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom,i.style.overflow="hidden"})},afterEnter(i){i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow},enterCancelled(i){n(i)},beforeLeave(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.dataset.oldOverflow=i.style.overflow,i.style.maxHeight=`${i.scrollHeight}px`,i.style.overflow="hidden"},leave(i){i.scrollHeight!==0&&(i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0)},afterLeave(i){n(i)},leaveCancelled(i){n(i)}};return(i,o)=>(Ce(),mt(ic,jr({name:W(t).b()},e9e(r)),{default:ot(()=>[rn(i.$slots,"default")]),_:3},16,["name"]))}});var x3=Bn(pKe,[["__file","collapse-transition.vue"]]);x3.install=e=>{e.component(x3.name,x3)};const fKe=x3,gKe=Tn({title:{type:String,default:""},name:{type:jt([String,Number]),default:()=>WU()},disabled:Boolean}),mKe=e=>{const t=Ht(XCe),n=Re(!1),r=Re(!1),i=Re(WU()),o=Oe(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:n,id:i,isActive:o,handleFocus:()=>{setTimeout(()=>{r.value?r.value=!1:n.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),n.value=!1,r.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},vKe=(e,{focusing:t,isActive:n,id:r})=>{const i=cn("collapse"),o=Oe(()=>[i.b("item"),i.is("active",W(n)),i.is("disabled",e.disabled)]),a=Oe(()=>[i.be("item","header"),i.is("active",W(n)),{focusing:W(t)&&!e.disabled}]),s=Oe(()=>[i.be("item","arrow"),i.is("active",W(n))]),l=Oe(()=>i.be("item","wrap")),u=Oe(()=>i.be("item","content")),c=Oe(()=>i.b(`content-${W(r)}`)),d=Oe(()=>i.b(`head-${W(r)}`));return{arrowKls:s,headKls:a,rootKls:o,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:d}},yKe=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],bKe=["id","aria-hidden","aria-labelledby"],wKe=ft({name:"ElCollapseItem"}),CKe=ft({...wKe,props:gKe,setup(e,{expose:t}){const n=e,{focusing:r,id:i,isActive:o,handleFocus:a,handleHeaderClick:s,handleEnterClick:l}=mKe(n),{arrowKls:u,headKls:c,rootKls:d,itemWrapperKls:h,itemContentKls:f,scopedContentId:g,scopedHeadId:b}=vKe(n,{focusing:r,isActive:o,id:i});return t({isActive:o}),(v,m)=>(Ce(),We("div",{class:De(W(d))},[at("button",{id:W(b),class:De(W(c)),"aria-expanded":W(o),"aria-controls":W(g),"aria-describedby":W(g),tabindex:v.disabled?-1:0,type:"button",onClick:m[0]||(m[0]=(...w)=>W(s)&&W(s)(...w)),onKeydown:m[1]||(m[1]=Zi(rr((...w)=>W(l)&&W(l)(...w),["stop","prevent"]),["space","enter"])),onFocus:m[2]||(m[2]=(...w)=>W(a)&&W(a)(...w)),onBlur:m[3]||(m[3]=w=>r.value=!1)},[rn(v.$slots,"title",{},()=>[gr(en(v.title),1)]),xe(W(Ln),{class:De(W(u))},{default:ot(()=>[xe(W(Tp))]),_:1},8,["class"])],42,yKe),xe(W(fKe),null,{default:ot(()=>[Kn(at("div",{id:W(g),role:"region",class:De(W(h)),"aria-hidden":!W(o),"aria-labelledby":W(b)},[at("div",{class:De(W(f))},[rn(v.$slots,"default")],2)],10,bKe),[[Ni,W(o)]])]),_:3})],2))}});var YCe=Bn(CKe,[["__file","collapse-item.vue"]]);const OKe=Xi(dKe,{CollapseItem:YCe}),xKe=yh(YCe),SKe=Tn({color:{type:jt(Object),required:!0},vertical:{type:Boolean,default:!1}});let XF=!1;function U2(e,t){if(!Ii)return;const n=function(o){var a;(a=t.drag)==null||a.call(t,o)},r=function(o){var a;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,XF=!1,(a=t.end)==null||a.call(t,o)},i=function(o){var a;XF||(o.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),XF=!0,(a=t.start)==null||a.call(t,o))};e.addEventListener("mousedown",i),e.addEventListener("touchstart",i)}const AKe=e=>{const t=dr(),n=so(),r=so();function i(a){a.target!==n.value&&o(a)}function o(a){if(!r.value||!n.value)return;const s=t.vnode.el.getBoundingClientRect(),{clientX:l,clientY:u}=wU(a);if(e.vertical){let c=u-s.top;c=Math.max(n.value.offsetHeight/2,c),c=Math.min(c,s.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((c-n.value.offsetHeight/2)/(s.height-n.value.offsetHeight)*100))}else{let c=l-s.left;c=Math.max(n.value.offsetWidth/2,c),c=Math.min(c,s.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((c-n.value.offsetWidth/2)/(s.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:o,handleClick:i}},IKe=(e,{bar:t,thumb:n,handleDrag:r})=>{const i=dr(),o=cn("color-alpha-slider"),a=Re(0),s=Re(0),l=Re();function u(){if(!n.value||e.vertical)return 0;const w=i.vnode.el,k=e.color.get("alpha");return w?Math.round(k*(w.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const w=i.vnode.el;if(!e.vertical)return 0;const k=e.color.get("alpha");return w?Math.round(k*(w.offsetHeight-n.value.offsetHeight/2)/100):0}function d(){if(e.color&&e.color.value){const{r:w,g:k,b:T}=e.color.toRgb();return`linear-gradient(to right, rgba(${w}, ${k}, ${T}, 0) 0%, rgba(${w}, ${k}, ${T}, 1) 100%)`}return""}function h(){a.value=u(),s.value=c(),l.value=d()}_n(()=>{if(!t.value||!n.value)return;const w={drag:k=>{r(k)},end:k=>{r(k)}};U2(t.value,w),U2(n.value,w),h()}),Pt(()=>e.color.get("alpha"),()=>h()),Pt(()=>e.color.value,()=>h());const f=Oe(()=>[o.b(),o.is("vertical",e.vertical)]),g=Oe(()=>o.e("bar")),b=Oe(()=>o.e("thumb")),v=Oe(()=>({background:l.value})),m=Oe(()=>({left:ad(a.value),top:ad(s.value)}));return{rootKls:f,barKls:g,barStyle:v,thumbKls:b,thumbStyle:m,update:h}},kKe="ElColorAlphaSlider",EKe=ft({name:kKe}),_Ke=ft({...EKe,props:SKe,setup(e,{expose:t}){const n=e,{bar:r,thumb:i,handleDrag:o,handleClick:a}=AKe(n),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:d,update:h}=IKe(n,{bar:r,thumb:i,handleDrag:o});return t({update:h,bar:r,thumb:i}),(f,g)=>(Ce(),We("div",{class:De(W(s))},[at("div",{ref_key:"bar",ref:r,class:De(W(l)),style:En(W(u)),onClick:g[0]||(g[0]=(...b)=>W(a)&&W(a)(...b))},null,6),at("div",{ref_key:"thumb",ref:i,class:De(W(c)),style:En(W(d))},null,6)],2))}});var TKe=Bn(_Ke,[["__file","alpha-slider.vue"]]);const PKe=ft({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=cn("color-hue-slider"),n=dr(),r=Re(),i=Re(),o=Re(0),a=Re(0),s=Oe(()=>e.color.get("hue"));Pt(()=>s.value,()=>{h()});function l(f){f.target!==r.value&&u(f)}function u(f){if(!i.value||!r.value)return;const g=n.vnode.el.getBoundingClientRect(),{clientX:b,clientY:v}=wU(f);let m;if(e.vertical){let w=v-g.top;w=Math.min(w,g.height-r.value.offsetHeight/2),w=Math.max(r.value.offsetHeight/2,w),m=Math.round((w-r.value.offsetHeight/2)/(g.height-r.value.offsetHeight)*360)}else{let w=b-g.left;w=Math.min(w,g.width-r.value.offsetWidth/2),w=Math.max(r.value.offsetWidth/2,w),m=Math.round((w-r.value.offsetWidth/2)/(g.width-r.value.offsetWidth)*360)}e.color.set("hue",m)}function c(){if(!r.value)return 0;const f=n.vnode.el;if(e.vertical)return 0;const g=e.color.get("hue");return f?Math.round(g*(f.offsetWidth-r.value.offsetWidth/2)/360):0}function d(){if(!r.value)return 0;const f=n.vnode.el;if(!e.vertical)return 0;const g=e.color.get("hue");return f?Math.round(g*(f.offsetHeight-r.value.offsetHeight/2)/360):0}function h(){o.value=c(),a.value=d()}return _n(()=>{if(!i.value||!r.value)return;const f={drag:g=>{u(g)},end:g=>{u(g)}};U2(i.value,f),U2(r.value,f),h()}),{bar:i,thumb:r,thumbLeft:o,thumbTop:a,hueValue:s,handleClick:l,update:h,ns:t}}});function DKe(e,t,n,r,i,o){return Ce(),We("div",{class:De([e.ns.b(),e.ns.is("vertical",e.vertical)])},[at("div",{ref:"bar",class:De(e.ns.e("bar")),onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},null,2),at("div",{ref:"thumb",class:De(e.ns.e("thumb")),style:En({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var RKe=Bn(PKe,[["render",DKe],["__file","hue-slider.vue"]]);const $Ke=Tn({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Fl,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:jt(Array)},validateEvent:{type:Boolean,default:!0}}),MKe={[ur]:e=>vi(e)||il(e),[Ua]:e=>vi(e)||il(e),activeChange:e=>vi(e)||il(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},KCe=Symbol("colorPickerContextKey"),aie=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},LKe=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},BKe=function(e){return typeof e=="string"&&e.includes("%")},UC=function(e,t){LKe(e)&&(e="100%");const n=BKe(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},sie={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},S3=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${sie[t]||t}${sie[n]||n}`},lie=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${S3(e)}${S3(t)}${S3(n)}`},YF={A:10,B:11,C:12,D:13,E:14,F:15},Oy=function(e){return e.length===2?(YF[e[0].toUpperCase()]||+e[0])*16+(YF[e[1].toUpperCase()]||+e[1]):YF[e[1].toUpperCase()]||+e[1]},FKe=function(e,t,n){t=t/100,n=n/100;let r=t;const i=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=i<=1?i:2-i;const o=(n+t)/2,a=n===0?2*r/(i+r):2*t/(n+t);return{h:e,s:a*100,v:o*100}},uie=(e,t,n)=>{e=UC(e,255),t=UC(t,255),n=UC(n,255);const r=Math.max(e,t,n),i=Math.min(e,t,n);let o;const a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case e:{o=(t-n)/s+(t<n?6:0);break}case t:{o=(n-e)/s+2;break}case n:{o=(e-t)/s+4;break}}o/=6}return{h:o*360,s:l*100,v:a*100}},gA=function(e,t,n){e=UC(e,360)*6,t=UC(t,100),n=UC(n,100);const r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,u=[n,a,o,o,s,n][l],c=[s,n,n,a,o,o][l],d=[o,o,s,n,n,a][l];return{r:Math.round(u*255),g:Math.round(c*255),b:Math.round(d*255)}};class Tk{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in t)vg(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const r in t)vg(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return gA(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,i,o)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,i)),this._value=Math.max(0,Math.min(100,o)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,o)=>o>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:o,v:a}=FKe(r[0],r[1],r[2]);n(i,o,a)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,o)=>o>2?Number.parseFloat(i):Number.parseInt(i,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(t.includes("rgb")){const r=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,o)=>o>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:o,v:a}=uie(r[0],r[1],r[2]);n(i,o,a)}}else if(t.includes("#")){const r=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let i,o,a;r.length===3?(i=Oy(r[0]+r[0]),o=Oy(r[1]+r[1]),a=Oy(r[2]+r[2])):(r.length===6||r.length===8)&&(i=Oy(r.slice(0,2)),o=Oy(r.slice(2,4)),a=Oy(r.slice(4,6))),r.length===8?this._alpha=Oy(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=uie(i,o,a);n(s,l,u)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:i,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const a=aie(t,n/100,r/100);this.value=`hsla(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${lie(gA(t,n,r))}${S3(i*255/100)}`;break}default:{const{r:a,g:s,b:l}=gA(t,n,r);this.value=`rgba(${a}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const a=aie(t,n/100,r/100);this.value=`hsl(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:a,g:s,b:l}=gA(t,n,r);this.value=`rgb(${a}, ${s}, ${l})`;break}default:this.value=lie(gA(t,n,r))}}}const NKe=ft({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=cn("color-predefine"),{currentColor:n}=Ht(KCe),r=Re(o(e.colors,e.color));Pt(()=>n.value,a=>{const s=new Tk;s.fromString(a),r.value.forEach(l=>{l.selected=s.compare(l)})}),Uc(()=>{r.value=o(e.colors,e.color)});function i(a){e.color.fromString(e.colors[a])}function o(a,s){return a.map(l=>{const u=new Tk;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:i,ns:t}}}),VKe=["onClick"];function jKe(e,t,n,r,i,o){return Ce(),We("div",{class:De(e.ns.b())},[at("div",{class:De(e.ns.e("colors"))},[(Ce(!0),We(un,null,xr(e.rgbaColors,(a,s)=>(Ce(),We("div",{key:e.colors[s],class:De([e.ns.e("color-selector"),e.ns.is("alpha",a._alpha<100),{selected:a.selected}]),onClick:l=>e.handleSelect(s)},[at("div",{style:En({backgroundColor:a.value})},null,4)],10,VKe))),128))],2)],2)}var WKe=Bn(NKe,[["render",jKe],["__file","predefine.vue"]]);const HKe=ft({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=cn("color-svpanel"),n=dr(),r=Re(0),i=Re(0),o=Re("hsl(0, 100%, 50%)"),a=Oe(()=>{const u=e.color.get("hue"),c=e.color.get("value");return{hue:u,value:c}});function s(){const u=e.color.get("saturation"),c=e.color.get("value"),d=n.vnode.el,{clientWidth:h,clientHeight:f}=d;i.value=u*h/100,r.value=(100-c)*f/100,o.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const c=n.vnode.el.getBoundingClientRect(),{clientX:d,clientY:h}=wU(u);let f=d-c.left,g=h-c.top;f=Math.max(0,f),f=Math.min(f,c.width),g=Math.max(0,g),g=Math.min(g,c.height),i.value=f,r.value=g,e.color.set({saturation:f/c.width*100,value:100-g/c.height*100})}return Pt(()=>a.value,()=>{s()}),_n(()=>{U2(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:r,cursorLeft:i,background:o,colorValue:a,handleDrag:l,update:s,ns:t}}}),zKe=at("div",null,null,-1),ZKe=[zKe];function GKe(e,t,n,r,i,o){return Ce(),We("div",{class:De(e.ns.b()),style:En({backgroundColor:e.background})},[at("div",{class:De(e.ns.e("white"))},null,2),at("div",{class:De(e.ns.e("black"))},null,2),at("div",{class:De(e.ns.e("cursor")),style:En({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},ZKe,6)],6)}var QKe=Bn(HKe,[["render",GKe],["__file","sv-panel.vue"]]);const UKe=["onKeydown"],XKe=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],YKe=ft({name:"ElColorPicker"}),KKe=ft({...YKe,props:$Ke,emits:MKe,setup(e,{expose:t,emit:n}){const r=e,{t:i}=uo(),o=cn("color"),{formItem:a}=bu(),s=js(),l=bd(),{inputId:u,isLabeledByFormItem:c}=D0(r,{formItemContext:a}),d=Re(),h=Re(),f=Re(),g=Re(),b=Re(),v=Re(),{isFocused:m,handleFocus:w,handleBlur:k}=qwe(b,{beforeBlur(le){var oe;return(oe=g.value)==null?void 0:oe.isFocusInsideContent(le)},afterBlur(){$(!1),Q()}}),T=le=>{if(l.value)return ne();w(le)};let S=!0;const I=Br(new Tk({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),O=Re(!1),y=Re(!1),_=Re(""),A=Oe(()=>!r.modelValue&&!y.value?"transparent":P(I,r.showAlpha)),R=Oe(()=>!r.modelValue&&!y.value?"":I.value),D=Oe(()=>c.value?void 0:r.label||i("el.colorpicker.defaultLabel")),C=Oe(()=>c.value?a==null?void 0:a.labelId:void 0),x=Oe(()=>[o.b("picker"),o.is("disabled",l.value),o.bm("picker",s.value),o.is("focused",m.value)]);function P(le,oe){if(!(le instanceof Tk))throw new TypeError("color should be instance of _color Class");const{r:ve,g:de,b:ae}=le.toRgb();return oe?`rgba(${ve}, ${de}, ${ae}, ${le.get("alpha")/100})`:`rgb(${ve}, ${de}, ${ae})`}function $(le){O.value=le}const L=ch($,100,{leading:!0});function V(){l.value||$(!0)}function H(){L(!1),Q()}function Q(){mn(()=>{r.modelValue?I.fromString(r.modelValue):(I.value="",mn(()=>{y.value=!1}))})}function U(){l.value||L(!O.value)}function K(){I.fromString(_.value)}function J(){const le=I.value;n(ur,le),n("change",le),r.validateEvent&&(a==null||a.validate("change").catch(oe=>void 0)),L(!1),mn(()=>{const oe=new Tk({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});I.compare(oe)||Q()})}function ue(){L(!1),n(ur,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(a==null||a.validate("change").catch(le=>void 0)),Q()}function ee(le){if(O.value&&(H(),m.value)){const oe=new FocusEvent("focus",le);k(oe)}}function N(le){le.preventDefault(),le.stopPropagation(),$(!1),Q()}function q(le){switch(le.code){case nr.enter:case nr.space:le.preventDefault(),le.stopPropagation(),V(),v.value.focus();break;case nr.esc:N(le);break}}function G(){b.value.focus()}function ne(){b.value.blur()}return _n(()=>{r.modelValue&&(_.value=R.value)}),Pt(()=>r.modelValue,le=>{le?le&&le!==I.value&&(S=!1,I.fromString(le)):y.value=!1}),Pt(()=>R.value,le=>{_.value=le,S&&n("activeChange",le),S=!0}),Pt(()=>I.value,()=>{!r.modelValue&&!y.value&&(y.value=!0)}),Pt(()=>O.value,()=>{mn(()=>{var le,oe,ve;(le=d.value)==null||le.update(),(oe=h.value)==null||oe.update(),(ve=f.value)==null||ve.update()})}),Or(KCe,{currentColor:R}),t({color:I,show:V,hide:H,focus:G,blur:ne}),(le,oe)=>(Ce(),mt(W(wg),{ref_key:"popper",ref:g,visible:O.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[W(o).be("picker","panel"),W(o).b("dropdown"),le.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${W(o).namespace.value}-zoom-in-top`,persistent:"",onHide:oe[2]||(oe[2]=ve=>$(!1))},{content:ot(()=>[Kn((Ce(),We("div",{onKeydown:Zi(N,["esc"])},[at("div",{class:De(W(o).be("dropdown","main-wrapper"))},[xe(RKe,{ref_key:"hue",ref:d,class:"hue-slider",color:W(I),vertical:""},null,8,["color"]),xe(QKe,{ref_key:"sv",ref:h,color:W(I)},null,8,["color"])],2),le.showAlpha?(Ce(),mt(TKe,{key:0,ref_key:"alpha",ref:f,color:W(I)},null,8,["color"])):xt("v-if",!0),le.predefine?(Ce(),mt(WKe,{key:1,ref:"predefine",color:W(I),colors:le.predefine},null,8,["color","colors"])):xt("v-if",!0),at("div",{class:De(W(o).be("dropdown","btns"))},[at("span",{class:De(W(o).be("dropdown","value"))},[xe(W(Fs),{ref_key:"inputRef",ref:v,modelValue:_.value,"onUpdate:modelValue":oe[0]||(oe[0]=ve=>_.value=ve),"validate-event":!1,size:"small",onKeyup:Zi(K,["enter"]),onBlur:K},null,8,["modelValue","onKeyup"])],2),xe(W(mo),{class:De(W(o).be("dropdown","link-btn")),text:"",size:"small",onClick:ue},{default:ot(()=>[gr(en(W(i)("el.colorpicker.clear")),1)]),_:1},8,["class"]),xe(W(mo),{plain:"",size:"small",class:De(W(o).be("dropdown","btn")),onClick:J},{default:ot(()=>[gr(en(W(i)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,UKe)),[[W(Yb),ee]])]),default:ot(()=>[at("div",{id:W(u),ref_key:"triggerRef",ref:b,class:De(W(x)),role:"button","aria-label":W(D),"aria-labelledby":W(C),"aria-description":W(i)("el.colorpicker.description",{color:le.modelValue||""}),"aria-disabled":W(l),tabindex:W(l)?-1:le.tabindex,onKeydown:q,onFocus:T,onBlur:oe[1]||(oe[1]=(...ve)=>W(k)&&W(k)(...ve))},[W(l)?(Ce(),We("div",{key:0,class:De(W(o).be("picker","mask"))},null,2)):xt("v-if",!0),at("div",{class:De(W(o).be("picker","trigger")),onClick:U},[at("span",{class:De([W(o).be("picker","color"),W(o).is("alpha",le.showAlpha)])},[at("span",{class:De(W(o).be("picker","color-inner")),style:En({backgroundColor:W(A)})},[Kn(xe(W(Ln),{class:De([W(o).be("picker","icon"),W(o).is("icon-arrow-down")])},{default:ot(()=>[xe(W(Ax))]),_:1},8,["class"]),[[Ni,le.modelValue||y.value]]),Kn(xe(W(Ln),{class:De([W(o).be("picker","empty"),W(o).is("icon-close")])},{default:ot(()=>[xe(W(yg))]),_:1},8,["class"]),[[Ni,!le.modelValue&&!y.value]])],6)],2)],2)],42,XKe)]),_:1},8,["visible","popper-class","transition"]))}});var qKe=Bn(KKe,[["__file","color-picker.vue"]]);const JKe=Xi(qKe);var qCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dl,function(){return function(n,r){var i=r.prototype,o=i.format;i.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return o.bind(this)(a);var u=this.$utils(),c=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}});return o.bind(this)(c)}}})})(qCe);var eqe=qCe.exports;const tqe=pl(eqe);var JCe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dl,function(){var n="week",r="year";return function(i,o,a){var s=o.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=a(this).startOf(r).add(1,r).date(u),d=a(this).endOf(n);if(c.isBefore(d))return 1}var h=a(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),f=this.diff(h,n,!0);return f<0?a(this).startOf("week").week():Math.ceil(f)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(JCe);var nqe=JCe.exports;const rqe=pl(nqe);var eOe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dl,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),o=this.week(),a=this.year();return o===1&&i===11?a+1:i===0&&o>=52?a-1:a}}})})(eOe);var iqe=eOe.exports;const oqe=pl(iqe);var tOe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dl,function(){return function(n,r,i){r.prototype.dayOfYear=function(o){var a=Math.round((i(this).startOf("day")-i(this).startOf("year"))/864e5)+1;return o==null?a:this.add(o-a,"day")}}})})(tOe);var aqe=tOe.exports;const sqe=pl(aqe);var nOe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dl,function(){return function(n,r){r.prototype.isSameOrAfter=function(i,o){return this.isSame(i,o)||this.isAfter(i,o)}}})})(nOe);var lqe=nOe.exports;const uqe=pl(lqe);var rOe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dl,function(){return function(n,r){r.prototype.isSameOrBefore=function(i,o){return this.isSame(i,o)||this.isBefore(i,o)}}})})(rOe);var cqe=rOe.exports;const dqe=pl(cqe),iX=Symbol(),hqe=Tn({...SCe,type:{type:jt(String),default:"date"}}),pqe=["date","dates","year","month","week","range"],oX=Tn({disabledDate:{type:jt(Function)},date:{type:jt(Object),required:!0},minDate:{type:jt(Object)},maxDate:{type:jt(Object)},parsedValue:{type:jt([Object,Array])},rangeState:{type:jt(Object),default:()=>({endDate:null,selecting:!1})}}),iOe=Tn({type:{type:jt(String),required:!0,values:hze},dateFormat:String,timeFormat:String}),oOe=Tn({unlinkPanels:Boolean,parsedValue:{type:jt(Array)}}),aOe=e=>({type:String,values:pqe,default:e}),fqe=Tn({...iOe,parsedValue:{type:jt([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),gqe=Tn({...oX,cellClassName:{type:jt(Function)},showWeekNumber:Boolean,selectionMode:aOe("date")}),mqe=["changerange","pick","select"],RW=e=>{if(!Tr(e))return!1;const[t,n]=e;return or.isDayjs(t)&&or.isDayjs(n)&&t.isSameOrBefore(n)},sOe=(e,{lang:t,unit:n,unlinkPanels:r})=>{let i;if(Tr(e)){let[o,a]=e.map(s=>or(s).locale(t));return r||(a=o.add(1,n)),[o,a]}else e?i=or(e):i=or();return i=i.locale(t),[i,i.add(1,n)]},vqe=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:i,now:o,unit:a,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let c=0;c<e.row;c++){const d=t[c];for(let h=0;h<e.column;h++){let f=d[h+n];f||(f={row:c,column:h,type:"normal",inRange:!1,start:!1,end:!1});const g=c*e.column+h,b=s(g);f.dayjs=b,f.date=b.toDate(),f.timestamp=b.valueOf(),f.type="normal",f.inRange=!!(r&&b.isSameOrAfter(r,a)&&i&&b.isSameOrBefore(i,a))||!!(r&&b.isSameOrBefore(r,a)&&i&&b.isSameOrAfter(i,a)),r!=null&&r.isSameOrAfter(i)?(f.start=!!i&&b.isSame(i,a),f.end=r&&b.isSame(r,a)):(f.start=!!r&&b.isSame(r,a),f.end=!!i&&b.isSame(i,a)),b.isSame(o,a)&&(f.type="today"),l==null||l(f,{rowIndex:c,columnIndex:h}),d[h+n]=f}u==null||u(d)}},$W=(e="")=>["normal","today"].includes(e),yqe=(e,t)=>{const{lang:n}=uo(),r=Re(),i=Re(),o=Re(),a=Re(),s=Re([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,c=e.date.locale("en").localeData().weekdaysShort().map(H=>H.toLowerCase()),d=Oe(()=>u>3?7-u:-u),h=Oe(()=>{const H=e.date.startOf("month");return H.subtract(H.day()||7,"day")}),f=Oe(()=>c.concat(c).slice(u,u+7)),g=Oe(()=>X1e(W(T)).some(H=>H.isCurrent)),b=Oe(()=>{const H=e.date.startOf("month"),Q=H.day()||7,U=H.daysInMonth(),K=H.subtract(1,"month").daysInMonth();return{startOfMonthDay:Q,dateCountOfMonth:U,dateCountOfLastMonth:K}}),v=Oe(()=>e.selectionMode==="dates"?cg(e.parsedValue):[]),m=(H,{count:Q,rowIndex:U,columnIndex:K})=>{const{startOfMonthDay:J,dateCountOfMonth:ue,dateCountOfLastMonth:ee}=W(b),N=W(d);if(U>=0&&U<=1){const q=J+N<0?7+J+N:J+N;if(K+U*7>=q)return H.text=Q,!0;H.text=ee-(q-K%7)+1+U*7,H.type="prev-month"}else return Q<=ue?H.text=Q:(H.text=Q-ue,H.type="next-month"),!0;return!1},w=(H,{columnIndex:Q,rowIndex:U},K)=>{const{disabledDate:J,cellClassName:ue}=e,ee=W(v),N=m(H,{count:K,rowIndex:U,columnIndex:Q}),q=H.dayjs.toDate();return H.selected=ee.find(G=>G.valueOf()===H.dayjs.valueOf()),H.isSelected=!!H.selected,H.isCurrent=I(H),H.disabled=J==null?void 0:J(q),H.customClass=ue==null?void 0:ue(q),N},k=H=>{if(e.selectionMode==="week"){const[Q,U]=e.showWeekNumber?[1,7]:[0,6],K=V(H[Q+1]);H[Q].inRange=K,H[Q].start=K,H[U].inRange=K,H[U].end=K}},T=Oe(()=>{const{minDate:H,maxDate:Q,rangeState:U,showWeekNumber:K}=e,J=W(d),ue=W(s),ee="day";let N=1;if(K)for(let q=0;q<6;q++)ue[q][0]||(ue[q][0]={type:"week",text:W(h).add(q*7+1,ee).week()});return vqe({row:6,column:7},ue,{startDate:H,columnIndexOffset:K?1:0,nextEndDate:U.endDate||Q||U.selecting&&H||null,now:or().locale(W(n)).startOf(ee),unit:ee,relativeDateGetter:q=>W(h).add(q-J,ee),setCellMetadata:(...q)=>{w(...q,N)&&(N+=1)},setRowMetadata:k}),ue});Pt(()=>e.date,async()=>{var H;(H=W(r))!=null&&H.contains(document.activeElement)&&(await mn(),await S())});const S=async()=>{var H;return(H=W(i))==null?void 0:H.focus()},I=H=>e.selectionMode==="date"&&$W(H.type)&&O(H,e.parsedValue),O=(H,Q)=>Q?or(Q).locale(W(n)).isSame(e.date.date(Number(H.text)),"day"):!1,y=(H,Q)=>{const U=H*7+(Q-(e.showWeekNumber?1:0))-W(d);return W(h).add(U,"day")},_=H=>{var Q;if(!e.rangeState.selecting)return;let U=H.target;if(U.tagName==="SPAN"&&(U=(Q=U.parentNode)==null?void 0:Q.parentNode),U.tagName==="DIV"&&(U=U.parentNode),U.tagName!=="TD")return;const K=U.parentNode.rowIndex-1,J=U.cellIndex;W(T)[K][J].disabled||(K!==W(o)||J!==W(a))&&(o.value=K,a.value=J,t("changerange",{selecting:!0,endDate:y(K,J)}))},A=H=>!W(g)&&(H==null?void 0:H.text)===1&&H.type==="normal"||H.isCurrent,R=H=>{l||W(g)||e.selectionMode!=="date"||L(H,!0)},D=H=>{H.target.closest("td")&&(l=!0)},C=H=>{H.target.closest("td")&&(l=!1)},x=H=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:H,maxDate:null}),t("select",!0)):(H>=e.minDate?t("pick",{minDate:e.minDate,maxDate:H}):t("pick",{minDate:H,maxDate:e.minDate}),t("select",!1))},P=H=>{const Q=H.week(),U=`${H.year()}w${Q}`;t("pick",{year:H.year(),week:Q,value:U,date:H.startOf("week")})},$=(H,Q)=>{const U=Q?cg(e.parsedValue).filter(K=>(K==null?void 0:K.valueOf())!==H.valueOf()):cg(e.parsedValue).concat([H]);t("pick",U)},L=(H,Q=!1)=>{const U=H.target.closest("td");if(!U)return;const K=U.parentNode.rowIndex-1,J=U.cellIndex,ue=W(T)[K][J];if(ue.disabled||ue.type==="week")return;const ee=y(K,J);switch(e.selectionMode){case"range":{x(ee);break}case"date":{t("pick",ee,Q);break}case"week":{P(ee);break}case"dates":{$(ee,!!ue.selected);break}}},V=H=>{if(e.selectionMode!=="week")return!1;let Q=e.date.startOf("day");if(H.type==="prev-month"&&(Q=Q.subtract(1,"month")),H.type==="next-month"&&(Q=Q.add(1,"month")),Q=Q.date(Number.parseInt(H.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const U=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(U,"day").isSame(Q,"day")}return!1};return{WEEKS:f,rows:T,tbodyRef:r,currentCellRef:i,focus:S,isCurrent:I,isWeekActive:V,isSelectedCell:A,handlePickDate:L,handleMouseUp:C,handleMouseDown:D,handleMouseMove:_,handleFocus:R}},bqe=(e,{isCurrent:t,isWeekActive:n})=>{const r=cn("date-table"),{t:i}=uo(),o=Oe(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"}]),a=Oe(()=>i("el.datepicker.dateTablePrompt")),s=Oe(()=>i("el.datepicker.week"));return{tableKls:o,tableLabel:a,weekLabel:s,getCellClasses:l=>{const u=[];return $W(l.type)&&!l.disabled?(u.push("available"),l.type==="today"&&u.push("today")):u.push(l.type),t(l)&&u.push("current"),l.inRange&&($W(l.type)||e.selectionMode==="week")&&(u.push("in-range"),l.start&&u.push("start-date"),l.end&&u.push("end-date")),l.disabled&&u.push("disabled"),l.selected&&u.push("selected"),l.customClass&&u.push(l.customClass),u.join(" ")},getRowKls:l=>[r.e("row"),{current:n(l)}],t:i}},wqe=Tn({cell:{type:jt(Object)}});var Cqe=ft({name:"ElDatePickerCell",props:wqe,setup(e){const t=cn("date-table-cell"),{slots:n}=Ht(iX);return()=>{const{cell:r}=e;return rn(n,"default",{...r},()=>[xe("div",{class:t.b()},[xe("span",{class:t.e("text")},[r==null?void 0:r.text])])])}}});const Oqe=["aria-label"],xqe={key:0,scope:"col"},Sqe=["aria-label"],Aqe=["aria-current","aria-selected","tabindex"],Iqe=ft({__name:"basic-date-table",props:gqe,emits:mqe,setup(e,{expose:t,emit:n}){const r=e,{WEEKS:i,rows:o,tbodyRef:a,currentCellRef:s,focus:l,isCurrent:u,isWeekActive:c,isSelectedCell:d,handlePickDate:h,handleMouseUp:f,handleMouseDown:g,handleMouseMove:b,handleFocus:v}=yqe(r,n),{tableLabel:m,tableKls:w,weekLabel:k,getCellClasses:T,getRowKls:S,t:I}=bqe(r,{isCurrent:u,isWeekActive:c});return t({focus:l}),(O,y)=>(Ce(),We("table",{"aria-label":W(m),class:De(W(w)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:y[1]||(y[1]=(..._)=>W(h)&&W(h)(..._)),onMousemove:y[2]||(y[2]=(..._)=>W(b)&&W(b)(..._)),onMousedown:y[3]||(y[3]=rr((..._)=>W(g)&&W(g)(..._),["prevent"])),onMouseup:y[4]||(y[4]=(..._)=>W(f)&&W(f)(..._))},[at("tbody",{ref_key:"tbodyRef",ref:a},[at("tr",null,[O.showWeekNumber?(Ce(),We("th",xqe,en(W(k)),1)):xt("v-if",!0),(Ce(!0),We(un,null,xr(W(i),(_,A)=>(Ce(),We("th",{key:A,"aria-label":W(I)("el.datepicker.weeksFull."+_),scope:"col"},en(W(I)("el.datepicker.weeks."+_)),9,Sqe))),128))]),(Ce(!0),We(un,null,xr(W(o),(_,A)=>(Ce(),We("tr",{key:A,class:De(W(S)(_[1]))},[(Ce(!0),We(un,null,xr(_,(R,D)=>(Ce(),We("td",{key:`${A}.${D}`,ref_for:!0,ref:C=>W(d)(R)&&(s.value=C),class:De(W(T)(R)),"aria-current":R.isCurrent?"date":void 0,"aria-selected":R.isCurrent,tabindex:W(d)(R)?0:-1,onFocus:y[0]||(y[0]=(...C)=>W(v)&&W(v)(...C))},[xe(W(Cqe),{cell:R},null,8,["cell"])],42,Aqe))),128))],2))),128))],512)],42,Oqe))}});var MW=Bn(Iqe,[["__file","basic-date-table.vue"]]);const kqe=Tn({...oX,selectionMode:aOe("month")}),Eqe=["aria-label"],_qe=["aria-selected","aria-label","tabindex","onKeydown"],Tqe={class:"cell"},Pqe=ft({__name:"basic-month-table",props:kqe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,i=(T,S,I)=>{const O=or().locale(I).startOf("month").month(S).year(T),y=O.daysInMonth();return wCe(y).map(_=>O.add(_,"day").toDate())},o=cn("month-table"),{t:a,lang:s}=uo(),l=Re(),u=Re(),c=Re(r.date.locale("en").localeData().monthsShort().map(T=>T.toLowerCase())),d=Re([[],[],[]]),h=Re(),f=Re(),g=Oe(()=>{var T,S;const I=d.value,O=or().locale(s.value).startOf("month");for(let y=0;y<3;y++){const _=I[y];for(let A=0;A<4;A++){const R=_[A]||(_[A]={row:y,column:A,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});R.type="normal";const D=y*4+A,C=r.date.startOf("year").month(D),x=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;R.inRange=!!(r.minDate&&C.isSameOrAfter(r.minDate,"month")&&x&&C.isSameOrBefore(x,"month"))||!!(r.minDate&&C.isSameOrBefore(r.minDate,"month")&&x&&C.isSameOrAfter(x,"month")),(T=r.minDate)!=null&&T.isSameOrAfter(x)?(R.start=!!(x&&C.isSame(x,"month")),R.end=r.minDate&&C.isSame(r.minDate,"month")):(R.start=!!(r.minDate&&C.isSame(r.minDate,"month")),R.end=!!(x&&C.isSame(x,"month"))),O.isSame(C)&&(R.type="today"),R.text=D,R.disabled=((S=r.disabledDate)==null?void 0:S.call(r,C.toDate()))||!1}}return I}),b=()=>{var T;(T=u.value)==null||T.focus()},v=T=>{const S={},I=r.date.year(),O=new Date,y=T.text;return S.disabled=r.disabledDate?i(I,y,s.value).every(r.disabledDate):!1,S.current=cg(r.parsedValue).findIndex(_=>or.isDayjs(_)&&_.year()===I&&_.month()===y)>=0,S.today=O.getFullYear()===I&&O.getMonth()===y,T.inRange&&(S["in-range"]=!0,T.start&&(S["start-date"]=!0),T.end&&(S["end-date"]=!0)),S},m=T=>{const S=r.date.year(),I=T.text;return cg(r.date).findIndex(O=>O.year()===S&&O.month()===I)>=0},w=T=>{var S;if(!r.rangeState.selecting)return;let I=T.target;if(I.tagName==="SPAN"&&(I=(S=I.parentNode)==null?void 0:S.parentNode),I.tagName==="DIV"&&(I=I.parentNode),I.tagName!=="TD")return;const O=I.parentNode.rowIndex,y=I.cellIndex;g.value[O][y].disabled||(O!==h.value||y!==f.value)&&(h.value=O,f.value=y,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(O*4+y)}))},k=T=>{var S;const I=(S=T.target)==null?void 0:S.closest("td");if((I==null?void 0:I.tagName)!=="TD"||_p(I,"disabled"))return;const O=I.cellIndex,y=I.parentNode.rowIndex*4+O,_=r.date.startOf("year").month(y);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&_>=r.minDate?n("pick",{minDate:r.minDate,maxDate:_}):n("pick",{minDate:_,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:_,maxDate:null}),n("select",!0)):n("pick",y)};return Pt(()=>r.date,async()=>{var T,S;(T=l.value)!=null&&T.contains(document.activeElement)&&(await mn(),(S=u.value)==null||S.focus())}),t({focus:b}),(T,S)=>(Ce(),We("table",{role:"grid","aria-label":W(a)("el.datepicker.monthTablePrompt"),class:De(W(o).b()),onClick:k,onMousemove:w},[at("tbody",{ref_key:"tbodyRef",ref:l},[(Ce(!0),We(un,null,xr(W(g),(I,O)=>(Ce(),We("tr",{key:O},[(Ce(!0),We(un,null,xr(I,(y,_)=>(Ce(),We("td",{key:_,ref_for:!0,ref:A=>m(y)&&(u.value=A),class:De(v(y)),"aria-selected":`${m(y)}`,"aria-label":W(a)(`el.datepicker.month${+y.text+1}`),tabindex:m(y)?0:-1,onKeydown:[Zi(rr(k,["prevent","stop"]),["space"]),Zi(rr(k,["prevent","stop"]),["enter"])]},[at("div",null,[at("span",Tqe,en(W(a)("el.datepicker.months."+c.value[y.text])),1)])],42,_qe))),128))]))),128))],512)],42,Eqe))}});var LW=Bn(Pqe,[["__file","basic-month-table.vue"]]);const{date:Dqe,disabledDate:Rqe,parsedValue:$qe}=oX,Mqe=Tn({date:Dqe,disabledDate:Rqe,parsedValue:$qe}),Lqe=["aria-label"],Bqe=["aria-selected","tabindex","onKeydown"],Fqe={class:"cell"},Nqe={key:1},Vqe=ft({__name:"basic-year-table",props:Mqe,emits:["pick"],setup(e,{expose:t,emit:n}){const r=e,i=(b,v)=>{const m=or(String(b)).locale(v).startOf("year"),w=m.endOf("year").dayOfYear();return wCe(w).map(k=>m.add(k,"day").toDate())},o=cn("year-table"),{t:a,lang:s}=uo(),l=Re(),u=Re(),c=Oe(()=>Math.floor(r.date.year()/10)*10),d=()=>{var b;(b=u.value)==null||b.focus()},h=b=>{const v={},m=or().locale(s.value);return v.disabled=r.disabledDate?i(b,s.value).every(r.disabledDate):!1,v.current=cg(r.parsedValue).findIndex(w=>w.year()===b)>=0,v.today=m.year()===b,v},f=b=>b===c.value&&r.date.year()<c.value&&r.date.year()>c.value+9||cg(r.date).findIndex(v=>v.year()===b)>=0,g=b=>{const v=b.target.closest("td");if(v&&v.textContent){if(_p(v,"disabled"))return;const m=v.textContent||v.innerText;n("pick",Number(m))}};return Pt(()=>r.date,async()=>{var b,v;(b=l.value)!=null&&b.contains(document.activeElement)&&(await mn(),(v=u.value)==null||v.focus())}),t({focus:d}),(b,v)=>(Ce(),We("table",{role:"grid","aria-label":W(a)("el.datepicker.yearTablePrompt"),class:De(W(o).b()),onClick:g},[at("tbody",{ref_key:"tbodyRef",ref:l},[(Ce(),We(un,null,xr(3,(m,w)=>at("tr",{key:w},[(Ce(),We(un,null,xr(4,(k,T)=>(Ce(),We(un,{key:w+"_"+T},[w*4+T<10?(Ce(),We("td",{key:0,ref_for:!0,ref:S=>f(W(c)+w*4+T)&&(u.value=S),class:De(["available",h(W(c)+w*4+T)]),"aria-selected":`${f(W(c)+w*4+T)}`,tabindex:f(W(c)+w*4+T)?0:-1,onKeydown:[Zi(rr(g,["prevent","stop"]),["space"]),Zi(rr(g,["prevent","stop"]),["enter"])]},[at("span",Fqe,en(W(c)+w*4+T),1)],42,Bqe)):(Ce(),We("td",Nqe))],64))),64))])),64))],512)],10,Lqe))}});var jqe=Bn(Vqe,[["__file","basic-year-table.vue"]]);const Wqe=["onClick"],Hqe=["aria-label"],zqe=["aria-label"],Zqe=["aria-label"],Gqe=["aria-label"],Qqe=ft({__name:"panel-date-pick",props:fqe,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(Le,Me,je)=>!0,i=cn("picker-panel"),o=cn("date-picker"),a=g_(),s=yd(),{t:l,lang:u}=uo(),c=Ht("EP_PICKER_BASE"),d=Ht(PL),{shortcuts:h,disabledDate:f,cellClassName:g,defaultTime:b}=c.props,v=yo(c.props,"defaultValue"),m=Re(),w=Re(or().locale(u.value)),k=Re(!1);let T=!1;const S=Oe(()=>or(b).locale(u.value)),I=Oe(()=>w.value.month()),O=Oe(()=>w.value.year()),y=Re([]),_=Re(null),A=Re(null),R=Le=>y.value.length>0?r(Le,y.value,n.format||"HH:mm:ss"):!0,D=Le=>b&&!ae.value&&!k.value&&!T?S.value.year(Le.year()).month(Le.month()).date(Le.date()):N.value?Le.millisecond(0):Le.startOf("day"),C=(Le,...Me)=>{if(!Le)t("pick",Le,...Me);else if(Tr(Le)){const je=Le.map(D);t("pick",je,...Me)}else t("pick",D(Le),...Me);_.value=null,A.value=null,k.value=!1,T=!1},x=(Le,Me)=>{if(Q.value==="date"){Le=Le;let je=n.parsedValue?n.parsedValue.year(Le.year()).month(Le.month()).date(Le.date()):Le;R(je)||(je=y.value[0][0].year(Le.year()).month(Le.month()).date(Le.date())),w.value=je,C(je,N.value||Me),n.type==="datetime"&&Ye()}else Q.value==="week"?C(Le.date):Q.value==="dates"&&C(Le,!0)},P=Le=>{const Me=Le?"add":"subtract";w.value=w.value[Me](1,"month"),st("month")},$=Le=>{const Me=w.value,je=Le?"add":"subtract";w.value=L.value==="year"?Me[je](10,"year"):Me[je](1,"year"),st("year")},L=Re("date"),V=Oe(()=>{const Le=l("el.datepicker.year");if(L.value==="year"){const Me=Math.floor(O.value/10)*10;return Le?`${Me} ${Le} - ${Me+9} ${Le}`:`${Me} - ${Me+9}`}return`${O.value} ${Le}`}),H=Le=>{const Me=_i(Le.value)?Le.value():Le.value;if(Me){T=!0,C(or(Me).locale(u.value));return}Le.onClick&&Le.onClick({attrs:a,slots:s,emit:t})},Q=Oe(()=>{const{type:Le}=n;return["week","month","year","dates"].includes(Le)?Le:"date"}),U=Oe(()=>Q.value==="date"?L.value:Q.value),K=Oe(()=>!!h.length),J=async Le=>{w.value=w.value.startOf("month").month(Le),Q.value==="month"?C(w.value,!1):(L.value="date",["month","year","date","week"].includes(Q.value)&&(C(w.value,!0),await mn(),Ye())),st("month")},ue=async Le=>{Q.value==="year"?(w.value=w.value.startOf("year").year(Le),C(w.value,!1)):(w.value=w.value.year(Le),L.value="month",["month","year","date","week"].includes(Q.value)&&(C(w.value,!0),await mn(),Ye())),st("year")},ee=async Le=>{L.value=Le,await mn(),Ye()},N=Oe(()=>n.type==="datetime"||n.type==="datetimerange"),q=Oe(()=>N.value||Q.value==="dates"),G=Oe(()=>f?n.parsedValue?Tr(n.parsedValue)?f(n.parsedValue[0].toDate()):f(n.parsedValue.toDate()):!0:!1),ne=()=>{if(Q.value==="dates")C(n.parsedValue);else{let Le=n.parsedValue;if(!Le){const Me=or(b).locale(u.value),je=Be();Le=Me.year(je.year()).month(je.month()).date(je.date())}w.value=Le,C(Le)}},le=Oe(()=>f?f(or().locale(u.value).toDate()):!1),oe=()=>{const Le=or().locale(u.value).toDate();k.value=!0,(!f||!f(Le))&&R(Le)&&(w.value=or().locale(u.value),C(w.value))},ve=Oe(()=>n.timeFormat||OCe(n.format)),de=Oe(()=>n.dateFormat||CCe(n.format)),ae=Oe(()=>{if(A.value)return A.value;if(!(!n.parsedValue&&!v.value))return(n.parsedValue||w.value).format(ve.value)}),be=Oe(()=>{if(_.value)return _.value;if(!(!n.parsedValue&&!v.value))return(n.parsedValue||w.value).format(de.value)}),ie=Re(!1),ce=()=>{ie.value=!0},pe=()=>{ie.value=!1},X=Le=>({hour:Le.hour(),minute:Le.minute(),second:Le.second(),year:Le.year(),month:Le.month(),date:Le.date()}),Z=(Le,Me,je)=>{const{hour:Ue,minute:Te,second:bt}=X(Le),At=n.parsedValue?n.parsedValue.hour(Ue).minute(Te).second(bt):Le;w.value=At,C(w.value,!0),je||(ie.value=Me)},Y=Le=>{const Me=or(Le,ve.value).locale(u.value);if(Me.isValid()&&R(Me)){const{year:je,month:Ue,date:Te}=X(w.value);w.value=Me.year(je).month(Ue).date(Te),A.value=null,ie.value=!1,C(w.value,!0)}},se=Le=>{const Me=or(Le,de.value).locale(u.value);if(Me.isValid()){if(f&&f(Me.toDate()))return;const{hour:je,minute:Ue,second:Te}=X(w.value);w.value=Me.hour(je).minute(Ue).second(Te),_.value=null,C(w.value,!0)}},fe=Le=>or.isDayjs(Le)&&Le.isValid()&&(f?!f(Le.toDate()):!0),me=Le=>Q.value==="dates"?Le.map(Me=>Me.format(n.format)):Le.format(n.format),Ae=Le=>or(Le,n.format).locale(u.value),Be=()=>{const Le=or(v.value).locale(u.value);if(!v.value){const Me=S.value;return or().hour(Me.hour()).minute(Me.minute()).second(Me.second()).locale(u.value)}return Le},Ye=async()=>{var Le;["week","month","year","date"].includes(Q.value)&&((Le=m.value)==null||Le.focus(),Q.value==="week"&&nt(nr.down))},Qe=Le=>{const{code:Me}=Le;[nr.up,nr.down,nr.left,nr.right,nr.home,nr.end,nr.pageUp,nr.pageDown].includes(Me)&&(nt(Me),Le.stopPropagation(),Le.preventDefault()),[nr.enter,nr.space,nr.numpadEnter].includes(Me)&&_.value===null&&A.value===null&&(Le.preventDefault(),C(w.value,!1))},nt=Le=>{var Me;const{up:je,down:Ue,left:Te,right:bt,home:At,end:ht,pageUp:Pe,pageDown:Ze}=nr,dt={year:{[je]:-4,[Ue]:4,[Te]:-1,[bt]:1,offset:(He,wt)=>He.setFullYear(He.getFullYear()+wt)},month:{[je]:-4,[Ue]:4,[Te]:-1,[bt]:1,offset:(He,wt)=>He.setMonth(He.getMonth()+wt)},week:{[je]:-1,[Ue]:1,[Te]:-1,[bt]:1,offset:(He,wt)=>He.setDate(He.getDate()+wt*7)},date:{[je]:-7,[Ue]:7,[Te]:-1,[bt]:1,[At]:He=>-He.getDay(),[ht]:He=>-He.getDay()+6,[Pe]:He=>-new Date(He.getFullYear(),He.getMonth(),0).getDate(),[Ze]:He=>new Date(He.getFullYear(),He.getMonth()+1,0).getDate(),offset:(He,wt)=>He.setDate(He.getDate()+wt)}},Mt=w.value.toDate();for(;Math.abs(w.value.diff(Mt,"year",!0))<1;){const He=dt[U.value];if(!He)return;if(He.offset(Mt,_i(He[Le])?He[Le](Mt):(Me=He[Le])!=null?Me:0),f&&f(Mt))break;const wt=or(Mt).locale(u.value);w.value=wt,t("pick",wt,!0);break}},st=Le=>{t("panel-change",w.value.toDate(),Le,L.value)};return Pt(()=>Q.value,Le=>{if(["month","year"].includes(Le)){L.value=Le;return}L.value="date"},{immediate:!0}),Pt(()=>L.value,()=>{d==null||d.updatePopper()}),Pt(()=>v.value,Le=>{Le&&(w.value=Be())},{immediate:!0}),Pt(()=>n.parsedValue,Le=>{if(Le){if(Q.value==="dates"||Array.isArray(Le))return;w.value=Le}else w.value=Be()},{immediate:!0}),t("set-picker-option",["isValidValue",fe]),t("set-picker-option",["formatToString",me]),t("set-picker-option",["parseUserInput",Ae]),t("set-picker-option",["handleFocusPicker",Ye]),(Le,Me)=>(Ce(),We("div",{class:De([W(i).b(),W(o).b(),{"has-sidebar":Le.$slots.sidebar||W(K),"has-time":W(N)}])},[at("div",{class:De(W(i).e("body-wrapper"))},[rn(Le.$slots,"sidebar",{class:De(W(i).e("sidebar"))}),W(K)?(Ce(),We("div",{key:0,class:De(W(i).e("sidebar"))},[(Ce(!0),We(un,null,xr(W(h),(je,Ue)=>(Ce(),We("button",{key:Ue,type:"button",class:De(W(i).e("shortcut")),onClick:Te=>H(je)},en(je.text),11,Wqe))),128))],2)):xt("v-if",!0),at("div",{class:De(W(i).e("body"))},[W(N)?(Ce(),We("div",{key:0,class:De(W(o).e("time-header"))},[at("span",{class:De(W(o).e("editor-wrap"))},[xe(W(Fs),{placeholder:W(l)("el.datepicker.selectDate"),"model-value":W(be),size:"small","validate-event":!1,onInput:Me[0]||(Me[0]=je=>_.value=je),onChange:se},null,8,["placeholder","model-value"])],2),Kn((Ce(),We("span",{class:De(W(o).e("editor-wrap"))},[xe(W(Fs),{placeholder:W(l)("el.datepicker.selectTime"),"model-value":W(ae),size:"small","validate-event":!1,onFocus:ce,onInput:Me[1]||(Me[1]=je=>A.value=je),onChange:Y},null,8,["placeholder","model-value"]),xe(W(_W),{visible:ie.value,format:W(ve),"parsed-value":w.value,onPick:Z},null,8,["visible","format","parsed-value"])],2)),[[W(Yb),pe]])],2)):xt("v-if",!0),Kn(at("div",{class:De([W(o).e("header"),(L.value==="year"||L.value==="month")&&W(o).e("header--bordered")])},[at("span",{class:De(W(o).e("prev-btn"))},[at("button",{type:"button","aria-label":W(l)("el.datepicker.prevYear"),class:De(["d-arrow-left",W(i).e("icon-btn")]),onClick:Me[2]||(Me[2]=je=>$(!1))},[xe(W(Ln),null,{default:ot(()=>[xe(W(H2))]),_:1})],10,Hqe),Kn(at("button",{type:"button","aria-label":W(l)("el.datepicker.prevMonth"),class:De([W(i).e("icon-btn"),"arrow-left"]),onClick:Me[3]||(Me[3]=je=>P(!1))},[xe(W(Ln),null,{default:ot(()=>[xe(W(W2))]),_:1})],10,zqe),[[Ni,L.value==="date"]])],2),at("span",{role:"button",class:De(W(o).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Me[4]||(Me[4]=Zi(je=>ee("year"),["enter"])),onClick:Me[5]||(Me[5]=je=>ee("year"))},en(W(V)),35),Kn(at("span",{role:"button","aria-live":"polite",tabindex:"0",class:De([W(o).e("header-label"),{active:L.value==="month"}]),onKeydown:Me[6]||(Me[6]=Zi(je=>ee("month"),["enter"])),onClick:Me[7]||(Me[7]=je=>ee("month"))},en(W(l)(`el.datepicker.month${W(I)+1}`)),35),[[Ni,L.value==="date"]]),at("span",{class:De(W(o).e("next-btn"))},[Kn(at("button",{type:"button","aria-label":W(l)("el.datepicker.nextMonth"),class:De([W(i).e("icon-btn"),"arrow-right"]),onClick:Me[8]||(Me[8]=je=>P(!0))},[xe(W(Ln),null,{default:ot(()=>[xe(W(Tp))]),_:1})],10,Zqe),[[Ni,L.value==="date"]]),at("button",{type:"button","aria-label":W(l)("el.datepicker.nextYear"),class:De([W(i).e("icon-btn"),"d-arrow-right"]),onClick:Me[9]||(Me[9]=je=>$(!0))},[xe(W(Ln),null,{default:ot(()=>[xe(W(z2))]),_:1})],10,Gqe)],2)],2),[[Ni,L.value!=="time"]]),at("div",{class:De(W(i).e("content")),onKeydown:Qe},[L.value==="date"?(Ce(),mt(MW,{key:0,ref_key:"currentViewRef",ref:m,"selection-mode":W(Q),date:w.value,"parsed-value":Le.parsedValue,"disabled-date":W(f),"cell-class-name":W(g),onPick:x},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):xt("v-if",!0),L.value==="year"?(Ce(),mt(jqe,{key:1,ref_key:"currentViewRef",ref:m,date:w.value,"disabled-date":W(f),"parsed-value":Le.parsedValue,onPick:ue},null,8,["date","disabled-date","parsed-value"])):xt("v-if",!0),L.value==="month"?(Ce(),mt(LW,{key:2,ref_key:"currentViewRef",ref:m,date:w.value,"parsed-value":Le.parsedValue,"disabled-date":W(f),onPick:J},null,8,["date","parsed-value","disabled-date"])):xt("v-if",!0)],34)],2)],2),Kn(at("div",{class:De(W(i).e("footer"))},[Kn(xe(W(mo),{text:"",size:"small",class:De(W(i).e("link-btn")),disabled:W(le),onClick:oe},{default:ot(()=>[gr(en(W(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Ni,W(Q)!=="dates"]]),xe(W(mo),{plain:"",size:"small",class:De(W(i).e("link-btn")),disabled:W(G),onClick:ne},{default:ot(()=>[gr(en(W(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[Ni,W(q)&&L.value==="date"]])],2))}});var Uqe=Bn(Qqe,[["__file","panel-date-pick.vue"]]);const Xqe=Tn({...iOe,...oOe}),Yqe=e=>{const{emit:t}=dr(),n=g_(),r=yd();return i=>{const o=_i(i.value)?i.value():i.value;if(o){t("pick",[or(o[0]).locale(e.value),or(o[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:t})}},lOe=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:i,onParsedValueChanged:o})=>{const{emit:a}=dr(),{pickerNs:s}=Ht(iX),l=cn("date-range-picker"),{t:u,lang:c}=uo(),d=Yqe(c),h=Re(),f=Re(),g=Re({endDate:null,selecting:!1}),b=k=>{g.value=k},v=(k=!1)=>{const T=W(h),S=W(f);RW([T,S])&&a("pick",[T,S],k)},m=k=>{g.value.selecting=k,k||(g.value.endDate=null)},w=()=>{const[k,T]=sOe(W(t),{lang:W(c),unit:i,unlinkPanels:e.unlinkPanels});h.value=void 0,f.value=void 0,n.value=k,r.value=T};return Pt(t,k=>{k&&w()},{immediate:!0}),Pt(()=>e.parsedValue,k=>{if(Tr(k)&&k.length===2){const[T,S]=k;h.value=T,n.value=T,f.value=S,o(W(h),W(f))}else w()},{immediate:!0}),{minDate:h,maxDate:f,rangeState:g,lang:c,ppNs:s,drpNs:l,handleChangeRange:b,handleRangeConfirm:v,handleShortcutClick:d,onSelect:m,t:u}},Kqe=["onClick"],qqe=["aria-label"],Jqe=["aria-label"],eJe=["disabled","aria-label"],tJe=["disabled","aria-label"],nJe=["disabled","aria-label"],rJe=["disabled","aria-label"],iJe=["aria-label"],oJe=["aria-label"],mD="month",aJe=ft({__name:"panel-date-range",props:Xqe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=Ht("EP_PICKER_BASE"),{disabledDate:i,cellClassName:o,format:a,defaultTime:s,clearable:l}=r.props,u=yo(r.props,"shortcuts"),c=yo(r.props,"defaultValue"),{lang:d}=uo(),h=Re(or().locale(d.value)),f=Re(or().locale(d.value).add(1,mD)),{minDate:g,maxDate:b,rangeState:v,ppNs:m,drpNs:w,handleChangeRange:k,handleRangeConfirm:T,handleShortcutClick:S,onSelect:I,t:O}=lOe(n,{defaultValue:c,leftDate:h,rightDate:f,unit:mD,onParsedValueChanged:Me}),y=Re({min:null,max:null}),_=Re({min:null,max:null}),A=Oe(()=>`${h.value.year()} ${O("el.datepicker.year")} ${O(`el.datepicker.month${h.value.month()+1}`)}`),R=Oe(()=>`${f.value.year()} ${O("el.datepicker.year")} ${O(`el.datepicker.month${f.value.month()+1}`)}`),D=Oe(()=>h.value.year()),C=Oe(()=>h.value.month()),x=Oe(()=>f.value.year()),P=Oe(()=>f.value.month()),$=Oe(()=>!!u.value.length),L=Oe(()=>y.value.min!==null?y.value.min:g.value?g.value.format(K.value):""),V=Oe(()=>y.value.max!==null?y.value.max:b.value||g.value?(b.value||g.value).format(K.value):""),H=Oe(()=>_.value.min!==null?_.value.min:g.value?g.value.format(U.value):""),Q=Oe(()=>_.value.max!==null?_.value.max:b.value||g.value?(b.value||g.value).format(U.value):""),U=Oe(()=>n.timeFormat||OCe(a)),K=Oe(()=>n.dateFormat||CCe(a)),J=je=>RW(je)&&(i?!i(je[0].toDate())&&!i(je[1].toDate()):!0),ue=()=>{h.value=h.value.subtract(1,"year"),n.unlinkPanels||(f.value=h.value.add(1,"month")),ve("year")},ee=()=>{h.value=h.value.subtract(1,"month"),n.unlinkPanels||(f.value=h.value.add(1,"month")),ve("month")},N=()=>{n.unlinkPanels?f.value=f.value.add(1,"year"):(h.value=h.value.add(1,"year"),f.value=h.value.add(1,"month")),ve("year")},q=()=>{n.unlinkPanels?f.value=f.value.add(1,"month"):(h.value=h.value.add(1,"month"),f.value=h.value.add(1,"month")),ve("month")},G=()=>{h.value=h.value.add(1,"year"),ve("year")},ne=()=>{h.value=h.value.add(1,"month"),ve("month")},le=()=>{f.value=f.value.subtract(1,"year"),ve("year")},oe=()=>{f.value=f.value.subtract(1,"month"),ve("month")},ve=je=>{t("panel-change",[h.value.toDate(),f.value.toDate()],je)},de=Oe(()=>{const je=(C.value+1)%12,Ue=C.value+1>=12?1:0;return n.unlinkPanels&&new Date(D.value+Ue,je)<new Date(x.value,P.value)}),ae=Oe(()=>n.unlinkPanels&&x.value*12+P.value-(D.value*12+C.value+1)>=12),be=Oe(()=>!(g.value&&b.value&&!v.value.selecting&&RW([g.value,b.value]))),ie=Oe(()=>n.type==="datetime"||n.type==="datetimerange"),ce=(je,Ue)=>{if(je)return s?or(s[Ue]||s).locale(d.value).year(je.year()).month(je.month()).date(je.date()):je},pe=(je,Ue=!0)=>{const Te=je.minDate,bt=je.maxDate,At=ce(Te,0),ht=ce(bt,1);b.value===ht&&g.value===At||(t("calendar-change",[Te.toDate(),bt&&bt.toDate()]),b.value=ht,g.value=At,!(!Ue||ie.value)&&T())},X=Re(!1),Z=Re(!1),Y=()=>{X.value=!1},se=()=>{Z.value=!1},fe=(je,Ue)=>{y.value[Ue]=je;const Te=or(je,K.value).locale(d.value);if(Te.isValid()){if(i&&i(Te.toDate()))return;Ue==="min"?(h.value=Te,g.value=(g.value||h.value).year(Te.year()).month(Te.month()).date(Te.date()),!n.unlinkPanels&&(!b.value||b.value.isBefore(g.value))&&(f.value=Te.add(1,"month"),b.value=g.value.add(1,"month"))):(f.value=Te,b.value=(b.value||f.value).year(Te.year()).month(Te.month()).date(Te.date()),!n.unlinkPanels&&(!g.value||g.value.isAfter(b.value))&&(h.value=Te.subtract(1,"month"),g.value=b.value.subtract(1,"month")))}},me=(je,Ue)=>{y.value[Ue]=null},Ae=(je,Ue)=>{_.value[Ue]=je;const Te=or(je,U.value).locale(d.value);Te.isValid()&&(Ue==="min"?(X.value=!0,g.value=(g.value||h.value).hour(Te.hour()).minute(Te.minute()).second(Te.second()),(!b.value||b.value.isBefore(g.value))&&(b.value=g.value)):(Z.value=!0,b.value=(b.value||f.value).hour(Te.hour()).minute(Te.minute()).second(Te.second()),f.value=b.value,b.value&&b.value.isBefore(g.value)&&(g.value=b.value)))},Be=(je,Ue)=>{_.value[Ue]=null,Ue==="min"?(h.value=g.value,X.value=!1):(f.value=b.value,Z.value=!1)},Ye=(je,Ue,Te)=>{_.value.min||(je&&(h.value=je,g.value=(g.value||h.value).hour(je.hour()).minute(je.minute()).second(je.second())),Te||(X.value=Ue),(!b.value||b.value.isBefore(g.value))&&(b.value=g.value,f.value=je))},Qe=(je,Ue,Te)=>{_.value.max||(je&&(f.value=je,b.value=(b.value||f.value).hour(je.hour()).minute(je.minute()).second(je.second())),Te||(Z.value=Ue),b.value&&b.value.isBefore(g.value)&&(g.value=b.value))},nt=()=>{h.value=sOe(W(c),{lang:W(d),unit:"month",unlinkPanels:n.unlinkPanels})[0],f.value=h.value.add(1,"month"),t("pick",null)},st=je=>Tr(je)?je.map(Ue=>Ue.format(a)):je.format(a),Le=je=>Tr(je)?je.map(Ue=>or(Ue,a).locale(d.value)):or(je,a).locale(d.value);function Me(je,Ue){if(n.unlinkPanels&&Ue){const Te=(je==null?void 0:je.year())||0,bt=(je==null?void 0:je.month())||0,At=Ue.year(),ht=Ue.month();f.value=Te===At&&bt===ht?Ue.add(1,mD):Ue}else f.value=h.value.add(1,mD),Ue&&(f.value=f.value.hour(Ue.hour()).minute(Ue.minute()).second(Ue.second()))}return t("set-picker-option",["isValidValue",J]),t("set-picker-option",["parseUserInput",Le]),t("set-picker-option",["formatToString",st]),t("set-picker-option",["handleClear",nt]),(je,Ue)=>(Ce(),We("div",{class:De([W(m).b(),W(w).b(),{"has-sidebar":je.$slots.sidebar||W($),"has-time":W(ie)}])},[at("div",{class:De(W(m).e("body-wrapper"))},[rn(je.$slots,"sidebar",{class:De(W(m).e("sidebar"))}),W($)?(Ce(),We("div",{key:0,class:De(W(m).e("sidebar"))},[(Ce(!0),We(un,null,xr(W(u),(Te,bt)=>(Ce(),We("button",{key:bt,type:"button",class:De(W(m).e("shortcut")),onClick:At=>W(S)(Te)},en(Te.text),11,Kqe))),128))],2)):xt("v-if",!0),at("div",{class:De(W(m).e("body"))},[W(ie)?(Ce(),We("div",{key:0,class:De(W(w).e("time-header"))},[at("span",{class:De(W(w).e("editors-wrap"))},[at("span",{class:De(W(w).e("time-picker-wrap"))},[xe(W(Fs),{size:"small",disabled:W(v).selecting,placeholder:W(O)("el.datepicker.startDate"),class:De(W(w).e("editor")),"model-value":W(L),"validate-event":!1,onInput:Ue[0]||(Ue[0]=Te=>fe(Te,"min")),onChange:Ue[1]||(Ue[1]=Te=>me(Te,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),Kn((Ce(),We("span",{class:De(W(w).e("time-picker-wrap"))},[xe(W(Fs),{size:"small",class:De(W(w).e("editor")),disabled:W(v).selecting,placeholder:W(O)("el.datepicker.startTime"),"model-value":W(H),"validate-event":!1,onFocus:Ue[2]||(Ue[2]=Te=>X.value=!0),onInput:Ue[3]||(Ue[3]=Te=>Ae(Te,"min")),onChange:Ue[4]||(Ue[4]=Te=>Be(Te,"min"))},null,8,["class","disabled","placeholder","model-value"]),xe(W(_W),{visible:X.value,format:W(U),"datetime-role":"start","parsed-value":h.value,onPick:Ye},null,8,["visible","format","parsed-value"])],2)),[[W(Yb),Y]])],2),at("span",null,[xe(W(Ln),null,{default:ot(()=>[xe(W(Tp))]),_:1})]),at("span",{class:De([W(w).e("editors-wrap"),"is-right"])},[at("span",{class:De(W(w).e("time-picker-wrap"))},[xe(W(Fs),{size:"small",class:De(W(w).e("editor")),disabled:W(v).selecting,placeholder:W(O)("el.datepicker.endDate"),"model-value":W(V),readonly:!W(g),"validate-event":!1,onInput:Ue[5]||(Ue[5]=Te=>fe(Te,"max")),onChange:Ue[6]||(Ue[6]=Te=>me(Te,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Kn((Ce(),We("span",{class:De(W(w).e("time-picker-wrap"))},[xe(W(Fs),{size:"small",class:De(W(w).e("editor")),disabled:W(v).selecting,placeholder:W(O)("el.datepicker.endTime"),"model-value":W(Q),readonly:!W(g),"validate-event":!1,onFocus:Ue[7]||(Ue[7]=Te=>W(g)&&(Z.value=!0)),onInput:Ue[8]||(Ue[8]=Te=>Ae(Te,"max")),onChange:Ue[9]||(Ue[9]=Te=>Be(Te,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),xe(W(_W),{"datetime-role":"end",visible:Z.value,format:W(U),"parsed-value":f.value,onPick:Qe},null,8,["visible","format","parsed-value"])],2)),[[W(Yb),se]])],2)],2)):xt("v-if",!0),at("div",{class:De([[W(m).e("content"),W(w).e("content")],"is-left"])},[at("div",{class:De(W(w).e("header"))},[at("button",{type:"button",class:De([W(m).e("icon-btn"),"d-arrow-left"]),"aria-label":W(O)("el.datepicker.prevYear"),onClick:ue},[xe(W(Ln),null,{default:ot(()=>[xe(W(H2))]),_:1})],10,qqe),at("button",{type:"button",class:De([W(m).e("icon-btn"),"arrow-left"]),"aria-label":W(O)("el.datepicker.prevMonth"),onClick:ee},[xe(W(Ln),null,{default:ot(()=>[xe(W(W2))]),_:1})],10,Jqe),je.unlinkPanels?(Ce(),We("button",{key:0,type:"button",disabled:!W(ae),class:De([[W(m).e("icon-btn"),{"is-disabled":!W(ae)}],"d-arrow-right"]),"aria-label":W(O)("el.datepicker.nextYear"),onClick:G},[xe(W(Ln),null,{default:ot(()=>[xe(W(z2))]),_:1})],10,eJe)):xt("v-if",!0),je.unlinkPanels?(Ce(),We("button",{key:1,type:"button",disabled:!W(de),class:De([[W(m).e("icon-btn"),{"is-disabled":!W(de)}],"arrow-right"]),"aria-label":W(O)("el.datepicker.nextMonth"),onClick:ne},[xe(W(Ln),null,{default:ot(()=>[xe(W(Tp))]),_:1})],10,tJe)):xt("v-if",!0),at("div",null,en(W(A)),1)],2),xe(MW,{"selection-mode":"range",date:h.value,"min-date":W(g),"max-date":W(b),"range-state":W(v),"disabled-date":W(i),"cell-class-name":W(o),onChangerange:W(k),onPick:pe,onSelect:W(I)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),at("div",{class:De([[W(m).e("content"),W(w).e("content")],"is-right"])},[at("div",{class:De(W(w).e("header"))},[je.unlinkPanels?(Ce(),We("button",{key:0,type:"button",disabled:!W(ae),class:De([[W(m).e("icon-btn"),{"is-disabled":!W(ae)}],"d-arrow-left"]),"aria-label":W(O)("el.datepicker.prevYear"),onClick:le},[xe(W(Ln),null,{default:ot(()=>[xe(W(H2))]),_:1})],10,nJe)):xt("v-if",!0),je.unlinkPanels?(Ce(),We("button",{key:1,type:"button",disabled:!W(de),class:De([[W(m).e("icon-btn"),{"is-disabled":!W(de)}],"arrow-left"]),"aria-label":W(O)("el.datepicker.prevMonth"),onClick:oe},[xe(W(Ln),null,{default:ot(()=>[xe(W(W2))]),_:1})],10,rJe)):xt("v-if",!0),at("button",{type:"button","aria-label":W(O)("el.datepicker.nextYear"),class:De([W(m).e("icon-btn"),"d-arrow-right"]),onClick:N},[xe(W(Ln),null,{default:ot(()=>[xe(W(z2))]),_:1})],10,iJe),at("button",{type:"button",class:De([W(m).e("icon-btn"),"arrow-right"]),"aria-label":W(O)("el.datepicker.nextMonth"),onClick:q},[xe(W(Ln),null,{default:ot(()=>[xe(W(Tp))]),_:1})],10,oJe),at("div",null,en(W(R)),1)],2),xe(MW,{"selection-mode":"range",date:f.value,"min-date":W(g),"max-date":W(b),"range-state":W(v),"disabled-date":W(i),"cell-class-name":W(o),onChangerange:W(k),onPick:pe,onSelect:W(I)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),W(ie)?(Ce(),We("div",{key:0,class:De(W(m).e("footer"))},[W(l)?(Ce(),mt(W(mo),{key:0,text:"",size:"small",class:De(W(m).e("link-btn")),onClick:nt},{default:ot(()=>[gr(en(W(O)("el.datepicker.clear")),1)]),_:1},8,["class"])):xt("v-if",!0),xe(W(mo),{plain:"",size:"small",class:De(W(m).e("link-btn")),disabled:W(be),onClick:Ue[10]||(Ue[10]=Te=>W(T)(!1))},{default:ot(()=>[gr(en(W(O)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):xt("v-if",!0)],2))}});var sJe=Bn(aJe,[["__file","panel-date-range.vue"]]);const lJe=Tn({...oOe}),uJe=["pick","set-picker-option","calendar-change"],cJe=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=uo(),i=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},o=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},a=()=>{t.value=t.value.add(1,"year")},s=()=>{n.value=n.value.subtract(1,"year")},l=Oe(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=Oe(()=>`${n.value.year()} ${r("el.datepicker.year")}`),c=Oe(()=>t.value.year()),d=Oe(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:i,rightNextYear:o,leftNextYear:a,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:c,rightYear:d}},dJe=["onClick"],hJe=["disabled"],pJe=["disabled"],vD="year",fJe=ft({name:"DatePickerMonthRange"}),gJe=ft({...fJe,props:lJe,emits:uJe,setup(e,{emit:t}){const n=e,{lang:r}=uo(),i=Ht("EP_PICKER_BASE"),{shortcuts:o,disabledDate:a,format:s}=i.props,l=yo(i.props,"defaultValue"),u=Re(or().locale(r.value)),c=Re(or().locale(r.value).add(1,vD)),{minDate:d,maxDate:h,rangeState:f,ppNs:g,drpNs:b,handleChangeRange:v,handleRangeConfirm:m,handleShortcutClick:w,onSelect:k}=lOe(n,{defaultValue:l,leftDate:u,rightDate:c,unit:vD,onParsedValueChanged:$}),T=Oe(()=>!!o.length),{leftPrevYear:S,rightNextYear:I,leftNextYear:O,rightPrevYear:y,leftLabel:_,rightLabel:A,leftYear:R,rightYear:D}=cJe({unlinkPanels:yo(n,"unlinkPanels"),leftDate:u,rightDate:c}),C=Oe(()=>n.unlinkPanels&&D.value>R.value+1),x=(L,V=!0)=>{const H=L.minDate,Q=L.maxDate;h.value===Q&&d.value===H||(t("calendar-change",[H.toDate(),Q&&Q.toDate()]),h.value=Q,d.value=H,V&&m())},P=L=>L.map(V=>V.format(s));function $(L,V){if(n.unlinkPanels&&V){const H=(L==null?void 0:L.year())||0,Q=V.year();c.value=H===Q?V.add(1,vD):V}else c.value=u.value.add(1,vD)}return t("set-picker-option",["formatToString",P]),(L,V)=>(Ce(),We("div",{class:De([W(g).b(),W(b).b(),{"has-sidebar":!!L.$slots.sidebar||W(T)}])},[at("div",{class:De(W(g).e("body-wrapper"))},[rn(L.$slots,"sidebar",{class:De(W(g).e("sidebar"))}),W(T)?(Ce(),We("div",{key:0,class:De(W(g).e("sidebar"))},[(Ce(!0),We(un,null,xr(W(o),(H,Q)=>(Ce(),We("button",{key:Q,type:"button",class:De(W(g).e("shortcut")),onClick:U=>W(w)(H)},en(H.text),11,dJe))),128))],2)):xt("v-if",!0),at("div",{class:De(W(g).e("body"))},[at("div",{class:De([[W(g).e("content"),W(b).e("content")],"is-left"])},[at("div",{class:De(W(b).e("header"))},[at("button",{type:"button",class:De([W(g).e("icon-btn"),"d-arrow-left"]),onClick:V[0]||(V[0]=(...H)=>W(S)&&W(S)(...H))},[xe(W(Ln),null,{default:ot(()=>[xe(W(H2))]),_:1})],2),L.unlinkPanels?(Ce(),We("button",{key:0,type:"button",disabled:!W(C),class:De([[W(g).e("icon-btn"),{[W(g).is("disabled")]:!W(C)}],"d-arrow-right"]),onClick:V[1]||(V[1]=(...H)=>W(O)&&W(O)(...H))},[xe(W(Ln),null,{default:ot(()=>[xe(W(z2))]),_:1})],10,hJe)):xt("v-if",!0),at("div",null,en(W(_)),1)],2),xe(LW,{"selection-mode":"range",date:u.value,"min-date":W(d),"max-date":W(h),"range-state":W(f),"disabled-date":W(a),onChangerange:W(v),onPick:x,onSelect:W(k)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),at("div",{class:De([[W(g).e("content"),W(b).e("content")],"is-right"])},[at("div",{class:De(W(b).e("header"))},[L.unlinkPanels?(Ce(),We("button",{key:0,type:"button",disabled:!W(C),class:De([[W(g).e("icon-btn"),{"is-disabled":!W(C)}],"d-arrow-left"]),onClick:V[2]||(V[2]=(...H)=>W(y)&&W(y)(...H))},[xe(W(Ln),null,{default:ot(()=>[xe(W(H2))]),_:1})],10,pJe)):xt("v-if",!0),at("button",{type:"button",class:De([W(g).e("icon-btn"),"d-arrow-right"]),onClick:V[3]||(V[3]=(...H)=>W(I)&&W(I)(...H))},[xe(W(Ln),null,{default:ot(()=>[xe(W(z2))]),_:1})],2),at("div",null,en(W(A)),1)],2),xe(LW,{"selection-mode":"range",date:c.value,"min-date":W(d),"max-date":W(h),"range-state":W(f),"disabled-date":W(a),onChangerange:W(v),onPick:x,onSelect:W(k)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var mJe=Bn(gJe,[["__file","panel-month-range.vue"]]);const vJe=function(e){switch(e){case"daterange":case"datetimerange":return sJe;case"monthrange":return mJe;default:return Uqe}};or.extend(jXe);or.extend(tqe);or.extend(pXe);or.extend(rqe);or.extend(oqe);or.extend(sqe);or.extend(uqe);or.extend(dqe);var yJe=ft({name:"ElDatePicker",install:null,props:hqe,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const i=cn("picker-panel");Or("ElPopperOptions",Br(yo(e,"popperOptions"))),Or(iX,{slots:r,pickerNs:i});const o=Re();t({focus:(s=!0)=>{var l;(l=o.value)==null||l.focus(s)},handleOpen:()=>{var s;(s=o.value)==null||s.handleOpen()},handleClose:()=>{var s;(s=o.value)==null||s.handleClose()}});const a=s=>{n("update:modelValue",s)};return()=>{var s;const l=(s=e.format)!=null?s:fXe[e.type]||bC,u=vJe(e.type);return xe(wXe,jr(e,{format:l,type:e.type,ref:o,"onUpdate:modelValue":a}),{default:c=>xe(u,c,null),"range-separator":r["range-separator"]})}}});const A3=yJe;A3.install=e=>{e.component(A3.name,A3)};const bJe=A3,wJe=Tn({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:jt([String,Array,Object])},zIndex:{type:jt([String,Number])}}),CJe={click:e=>e instanceof MouseEvent},OJe="overlay";var xJe=ft({name:"ElOverlay",props:wJe,emits:CJe,setup(e,{slots:t,emit:n}){const r=cn(OJe),i=l=>{n("click",l)},{onClick:o,onMousedown:a,onMouseup:s}=zwe(e.customMaskEvent?void 0:i);return()=>e.mask?xe("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:a,onMouseup:s},[rn(t,"default")],$c.STYLE|$c.CLASS|$c.PROPS,["onClick","onMouseup","onMousedown"]):Yn("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[rn(t,"default")])}});const uOe=xJe,cOe=Symbol("dialogInjectionKey"),dOe=Tn({center:Boolean,alignCenter:Boolean,closeIcon:{type:iu},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),SJe={close:()=>!0},AJe=["aria-level"],IJe=["aria-label"],kJe=["id"],EJe=ft({name:"ElDialogContent"}),_Je=ft({...EJe,props:dOe,emits:SJe,setup(e){const t=e,{t:n}=uo(),{Close:r}=uze,{dialogRef:i,headerRef:o,bodyId:a,ns:s,style:l}=Ht(cOe),{focusTrapRef:u}=Ht(dCe),c=Oe(()=>[s.b(),s.is("fullscreen",t.fullscreen),s.is("draggable",t.draggable),s.is("align-center",t.alignCenter),{[s.m("center")]:t.center},t.customClass]),d=dze(u,i),h=Oe(()=>t.draggable);return Cze(i,o,h),(f,g)=>(Ce(),We("div",{ref:W(d),class:De(W(c)),style:En(W(l)),tabindex:"-1"},[at("header",{ref_key:"headerRef",ref:o,class:De(W(s).e("header"))},[rn(f.$slots,"header",{},()=>[at("span",{role:"heading","aria-level":f.ariaLevel,class:De(W(s).e("title"))},en(f.title),11,AJe)]),f.showClose?(Ce(),We("button",{key:0,"aria-label":W(n)("el.dialog.close"),class:De(W(s).e("headerbtn")),type:"button",onClick:g[0]||(g[0]=b=>f.$emit("close"))},[xe(W(Ln),{class:De(W(s).e("close"))},{default:ot(()=>[(Ce(),mt(ei(f.closeIcon||W(r))))]),_:1},8,["class"])],10,IJe)):xt("v-if",!0)],2),at("div",{id:W(a),class:De(W(s).e("body"))},[rn(f.$slots,"default")],10,kJe),f.$slots.footer?(Ce(),We("footer",{key:0,class:De(W(s).e("footer"))},[rn(f.$slots,"footer")],2)):xt("v-if",!0)],6))}});var TJe=Bn(_Je,[["__file","dialog-content.vue"]]);const hOe=Tn({...dOe,appendToBody:Boolean,appendTo:{type:jt(String),default:"body"},beforeClose:{type:jt(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),pOe={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[ur]:e=>ol(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},fOe=(e,t)=>{var n;const r=dr().emit,{nextZIndex:i}=EL();let o="";const a=c0(),s=c0(),l=Re(!1),u=Re(!1),c=Re(!1),d=Re((n=e.zIndex)!=null?n:i());let h,f;const g=_L("namespace",Ik),b=Oe(()=>{const x={},P=`--${g.value}-dialog`;return e.fullscreen||(e.top&&(x[`${P}-margin-top`]=e.top),e.width&&(x[`${P}-width`]=ad(e.width))),x}),v=Oe(()=>e.alignCenter?{display:"flex"}:{});function m(){r("opened")}function w(){r("closed"),r(ur,!1),e.destroyOnClose&&(c.value=!1)}function k(){r("close")}function T(){f==null||f(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=tW(()=>y(),e.openDelay):y()}function S(){h==null||h(),f==null||f(),e.closeDelay&&e.closeDelay>0?{stop:f}=tW(()=>_(),e.closeDelay):_()}function I(){function x(P){P||(u.value=!0,l.value=!1)}e.beforeClose?e.beforeClose(x):S()}function O(){e.closeOnClickModal&&I()}function y(){Ii&&(l.value=!0)}function _(){l.value=!1}function A(){r("openAutoFocus")}function R(){r("closeAutoFocus")}function D(x){var P;((P=x.detail)==null?void 0:P.focusReason)==="pointer"&&x.preventDefault()}e.lockScroll&&Nze(l);function C(){e.closeOnPressEscape&&I()}return Pt(()=>e.modelValue,x=>{x?(u.value=!1,T(),c.value=!0,d.value=fwe(e.zIndex)?i():d.value++,mn(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):l.value&&S()}),Pt(()=>e.fullscreen,x=>{t.value&&(x?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)}),_n(()=>{e.modelValue&&(l.value=!0,c.value=!0,T())}),{afterEnter:m,afterLeave:w,beforeLeave:k,handleClose:I,onModalClick:O,close:S,doClose:_,onOpenAutoFocus:A,onCloseAutoFocus:R,onCloseRequested:C,onFocusoutPrevented:D,titleId:a,bodyId:s,closed:u,style:b,overlayDialogStyle:v,rendered:c,visible:l,zIndex:d}},PJe=["aria-label","aria-labelledby","aria-describedby"],DJe=ft({name:"ElDialog",inheritAttrs:!1}),RJe=ft({...DJe,props:hOe,emits:pOe,setup(e,{expose:t}){const n=e,r=yd();l0({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},Oe(()=>!!r.title)),l0({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},Oe(()=>!!n.customClass));const i=cn("dialog"),o=Re(),a=Re(),s=Re(),{visible:l,titleId:u,bodyId:c,style:d,overlayDialogStyle:h,rendered:f,zIndex:g,afterEnter:b,afterLeave:v,beforeLeave:m,handleClose:w,onModalClick:k,onOpenAutoFocus:T,onCloseAutoFocus:S,onCloseRequested:I,onFocusoutPrevented:O}=fOe(n,o);Or(cOe,{dialogRef:o,headerRef:a,bodyId:c,ns:i,rendered:f,style:d});const y=zwe(k),_=Oe(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:s}),(A,R)=>(Ce(),mt(iU,{to:A.appendTo,disabled:A.appendTo!=="body"?!1:!A.appendToBody},[xe(ic,{name:"dialog-fade",onAfterEnter:W(b),onAfterLeave:W(v),onBeforeLeave:W(m),persisted:""},{default:ot(()=>[Kn(xe(W(uOe),{"custom-mask-event":"",mask:A.modal,"overlay-class":A.modalClass,"z-index":W(g)},{default:ot(()=>[at("div",{role:"dialog","aria-modal":"true","aria-label":A.title||void 0,"aria-labelledby":A.title?void 0:W(u),"aria-describedby":W(c),class:De(`${W(i).namespace.value}-overlay-dialog`),style:En(W(h)),onClick:R[0]||(R[0]=(...D)=>W(y).onClick&&W(y).onClick(...D)),onMousedown:R[1]||(R[1]=(...D)=>W(y).onMousedown&&W(y).onMousedown(...D)),onMouseup:R[2]||(R[2]=(...D)=>W(y).onMouseup&&W(y).onMouseup(...D))},[xe(W(tX),{loop:"",trapped:W(l),"focus-start-el":"container",onFocusAfterTrapped:W(T),onFocusAfterReleased:W(S),onFocusoutPrevented:W(O),onReleaseRequested:W(I)},{default:ot(()=>[W(f)?(Ce(),mt(TJe,jr({key:0,ref_key:"dialogContentRef",ref:s},A.$attrs,{"custom-class":A.customClass,center:A.center,"align-center":A.alignCenter,"close-icon":A.closeIcon,draggable:W(_),fullscreen:A.fullscreen,"show-close":A.showClose,title:A.title,"aria-level":A.headerAriaLevel,onClose:W(w)}),a0({header:ot(()=>[A.$slots.title?rn(A.$slots,"title",{key:1}):rn(A.$slots,"header",{key:0,close:W(w),titleId:W(u),titleClass:W(i).e("title")})]),default:ot(()=>[rn(A.$slots,"default")]),_:2},[A.$slots.footer?{name:"footer",fn:ot(()=>[rn(A.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):xt("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,PJe)]),_:3},8,["mask","overlay-class","z-index"]),[[Ni,W(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var $Je=Bn(RJe,[["__file","dialog.vue"]]);const aX=Xi($Je),MJe=Tn({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:jt(String),default:"solid"}}),LJe=ft({name:"ElDivider"}),BJe=ft({...LJe,props:MJe,setup(e){const t=e,n=cn("divider"),r=Oe(()=>n.cssVar({"border-style":t.borderStyle}));return(i,o)=>(Ce(),We("div",{class:De([W(n).b(),W(n).m(i.direction)]),style:En(W(r)),role:"separator"},[i.$slots.default&&i.direction!=="vertical"?(Ce(),We("div",{key:0,class:De([W(n).e("text"),W(n).is(i.contentPosition)])},[rn(i.$slots,"default")],2)):xt("v-if",!0)],6))}});var FJe=Bn(BJe,[["__file","divider.vue"]]);const NJe=Xi(FJe),VJe=Tn({...hOe,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),jJe=pOe,WJe=ft({name:"ElDrawer",components:{ElOverlay:uOe,ElFocusTrap:tX,ElIcon:Ln,Close:yg},inheritAttrs:!1,props:VJe,emits:jJe,setup(e,{slots:t}){l0({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},Oe(()=>!!t.title)),l0({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},Oe(()=>!!e.customClass));const n=Re(),r=Re(),i=cn("drawer"),{t:o}=uo(),a=Oe(()=>e.direction==="rtl"||e.direction==="ltr"),s=Oe(()=>ad(e.size));return{...fOe(e,n),drawerRef:n,focusStartRef:r,isHorizontal:a,drawerSize:s,ns:i,t:o}}}),HJe=["aria-label","aria-labelledby","aria-describedby"],zJe=["id","aria-level"],ZJe=["aria-label"],GJe=["id"];function QJe(e,t,n,r,i,o){const a=Ar("close"),s=Ar("el-icon"),l=Ar("el-focus-trap"),u=Ar("el-overlay");return Ce(),mt(iU,{to:"body",disabled:!e.appendToBody},[xe(ic,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:ot(()=>[Kn(xe(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:ot(()=>[xe(l,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ot(()=>[at("div",jr({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=rr(()=>{},["stop"]))}),[at("span",{ref:"focusStartRef",class:De(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(Ce(),We("header",{key:0,class:De(e.ns.e("header"))},[e.$slots.title?rn(e.$slots,"title",{key:1},()=>[xt(" DEPRECATED SLOT ")]):rn(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?xt("v-if",!0):(Ce(),We("span",{key:0,id:e.titleId,role:"heading","aria-level":e.headerAriaLevel,class:De(e.ns.e("title"))},en(e.title),11,zJe))]),e.showClose?(Ce(),We("button",{key:2,"aria-label":e.t("el.drawer.close"),class:De(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...c)=>e.handleClose&&e.handleClose(...c))},[xe(s,{class:De(e.ns.e("close"))},{default:ot(()=>[xe(a)]),_:1},8,["class"])],10,ZJe)):xt("v-if",!0)],2)):xt("v-if",!0),e.rendered?(Ce(),We("div",{key:1,id:e.bodyId,class:De(e.ns.e("body"))},[rn(e.$slots,"default")],10,GJe)):xt("v-if",!0),e.$slots.footer?(Ce(),We("div",{key:2,class:De(e.ns.e("footer"))},[rn(e.$slots,"footer")],2)):xt("v-if",!0)],16,HJe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Ni,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var UJe=Bn(WJe,[["render",QJe],["__file","drawer.vue"]]);const gOe=Xi(UJe),XJe=Tn({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Fl,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||$r(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),YJe={[Ua]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Pp]:e=>$r(e)||il(e),[ur]:e=>$r(e)||il(e)},KJe=["aria-label","onKeydown"],qJe=["aria-label","onKeydown"],JJe=ft({name:"ElInputNumber"}),eet=ft({...JJe,props:XJe,emits:YJe,setup(e,{expose:t,emit:n}){const r=e,{t:i}=uo(),o=cn("input-number"),a=Re(),s=Br({currentValue:r.modelValue,userInput:null}),{formItem:l}=bu(),u=Oe(()=>$r(r.modelValue)&&r.modelValue<=r.min),c=Oe(()=>$r(r.modelValue)&&r.modelValue>=r.max),d=Oe(()=>{const C=m(r.step);return rl(r.precision)?Math.max(m(r.modelValue),C):(C>r.precision&&void 0,r.precision)}),h=Oe(()=>r.controls&&r.controlsPosition==="right"),f=js(),g=bd(),b=Oe(()=>{if(s.userInput!==null)return s.userInput;let C=s.currentValue;if(il(C))return"";if($r(C)){if(Number.isNaN(C))return"";rl(r.precision)||(C=C.toFixed(r.precision))}return C}),v=(C,x)=>{if(rl(x)&&(x=d.value),x===0)return Math.round(C);let P=String(C);const $=P.indexOf(".");if($===-1||!P.replace(".","").split("")[$+x])return C;const L=P.length;return P.charAt(L-1)==="5"&&(P=`${P.slice(0,Math.max(0,L-1))}6`),Number.parseFloat(Number(P).toFixed(x))},m=C=>{if(il(C))return 0;const x=C.toString(),P=x.indexOf(".");let $=0;return P!==-1&&($=x.length-P-1),$},w=(C,x=1)=>$r(C)?v(C+r.step*x):s.currentValue,k=()=>{if(r.readonly||g.value||c.value)return;const C=Number(b.value)||0,x=w(C);I(x),n(Pp,s.currentValue)},T=()=>{if(r.readonly||g.value||u.value)return;const C=Number(b.value)||0,x=w(C,-1);I(x),n(Pp,s.currentValue)},S=(C,x)=>{const{max:P,min:$,step:L,precision:V,stepStrictly:H,valueOnClear:Q}=r;P<$&&hc("InputNumber","min should not be greater than max.");let U=Number(C);if(il(C)||Number.isNaN(U))return null;if(C===""){if(Q===null)return null;U=vi(Q)?{min:$,max:P}[Q]:Q}return H&&(U=v(Math.round(U/L)*L,V)),rl(V)||(U=v(U,V)),(U>P||U<$)&&(U=U>P?P:$,x&&n(ur,U)),U},I=(C,x=!0)=>{var P;const $=s.currentValue,L=S(C);if(!x){n(ur,L);return}$!==L&&(s.userInput=null,n(ur,L),n(Ua,L,$),r.validateEvent&&((P=l==null?void 0:l.validate)==null||P.call(l,"change").catch(V=>void 0)),s.currentValue=L)},O=C=>{s.userInput=C;const x=C===""?null:Number(C);n(Pp,x),I(x,!1)},y=C=>{const x=C!==""?Number(C):"";($r(x)&&!Number.isNaN(x)||C==="")&&I(x),s.userInput=null},_=()=>{var C,x;(x=(C=a.value)==null?void 0:C.focus)==null||x.call(C)},A=()=>{var C,x;(x=(C=a.value)==null?void 0:C.blur)==null||x.call(C)},R=C=>{n("focus",C)},D=C=>{var x;s.userInput=null,n("blur",C),r.validateEvent&&((x=l==null?void 0:l.validate)==null||x.call(l,"blur").catch(P=>void 0))};return Pt(()=>r.modelValue,(C,x)=>{const P=S(C,!0);s.userInput===null&&P!==x&&(s.currentValue=P)},{immediate:!0}),_n(()=>{var C;const{min:x,max:P,modelValue:$}=r,L=(C=a.value)==null?void 0:C.input;if(L.setAttribute("role","spinbutton"),Number.isFinite(P)?L.setAttribute("aria-valuemax",String(P)):L.removeAttribute("aria-valuemax"),Number.isFinite(x)?L.setAttribute("aria-valuemin",String(x)):L.removeAttribute("aria-valuemin"),L.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),L.setAttribute("aria-disabled",String(g.value)),!$r($)&&$!=null){let V=Number($);Number.isNaN(V)&&(V=null),n(ur,V)}}),C1(()=>{var C,x;const P=(C=a.value)==null?void 0:C.input;P==null||P.setAttribute("aria-valuenow",`${(x=s.currentValue)!=null?x:""}`)}),t({focus:_,blur:A}),(C,x)=>(Ce(),We("div",{class:De([W(o).b(),W(o).m(W(f)),W(o).is("disabled",W(g)),W(o).is("without-controls",!C.controls),W(o).is("controls-right",W(h))]),onDragstart:x[1]||(x[1]=rr(()=>{},["prevent"]))},[C.controls?Kn((Ce(),We("span",{key:0,role:"button","aria-label":W(i)("el.inputNumber.decrease"),class:De([W(o).e("decrease"),W(o).is("disabled",W(u))]),onKeydown:Zi(T,["enter"])},[xe(W(Ln),null,{default:ot(()=>[W(h)?(Ce(),mt(W(Ax),{key:0})):(Ce(),mt(W(XHe),{key:1}))]),_:1})],42,KJe)),[[W(e5),T]]):xt("v-if",!0),C.controls?Kn((Ce(),We("span",{key:1,role:"button","aria-label":W(i)("el.inputNumber.increase"),class:De([W(o).e("increase"),W(o).is("disabled",W(c))]),onKeydown:Zi(k,["enter"])},[xe(W(Ln),null,{default:ot(()=>[W(h)?(Ce(),mt(W(FU),{key:0})):(Ce(),mt(W(Cwe),{key:1}))]),_:1})],42,qJe)),[[W(e5),k]]):xt("v-if",!0),xe(W(Fs),{id:C.id,ref_key:"input",ref:a,type:"number",step:C.step,"model-value":W(b),placeholder:C.placeholder,readonly:C.readonly,disabled:W(g),size:W(f),max:C.max,min:C.min,name:C.name,label:C.label,"validate-event":!1,onWheel:x[0]||(x[0]=rr(()=>{},["prevent"])),onKeydown:[Zi(rr(k,["prevent"]),["up"]),Zi(rr(T,["prevent"]),["down"])],onBlur:D,onFocus:R,onInput:O,onChange:y},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var tet=Bn(eet,[["__file","input-number.vue"]]);const mOe=Xi(tet),vOe=Symbol("ElSelectGroup"),RL=Symbol("ElSelect");function net(e,t){const n=Ht(RL),r=Ht(vOe,{disabled:!1}),i=Oe(()=>Ha(e.value)),o=Oe(()=>n.props.multiple?d(n.props.modelValue,e.value):h(e.value,n.props.modelValue)),a=Oe(()=>{if(n.props.multiple){const b=n.props.modelValue||[];return!o.value&&b.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=Oe(()=>e.label||(i.value?"":e.value)),l=Oe(()=>e.value||e.label||""),u=Oe(()=>e.disabled||t.groupDisabled||a.value),c=dr(),d=(b=[],v)=>{if(i.value){const m=n.props.valueKey;return b&&b.some(w=>qr(Ys(w,m))===Ys(v,m))}else return b&&b.includes(v)},h=(b,v)=>{if(i.value){const{valueKey:m}=n.props;return Ys(b,m)===Ys(v,m)}else return b===v},f=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(c.proxy))};Pt(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Pt(()=>e.value,(b,v)=>{const{remote:m,valueKey:w}=n.props;if(Object.is(b,v)||(n.onOptionDestroy(v,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!m){if(w&&Ha(b)&&Ha(v)&&b[w]===v[w])return;n.setSelected()}}),Pt(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:g}=qr(n);return Pt(g,b=>{const{query:v}=W(b),m=new RegExp(CHe(v),"i");t.visible=m.test(s.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:s,currentValue:l,itemSelected:o,isDisabled:u,hoverItem:f}}const ret=ft({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=cn("select"),n=c0(),r=Oe(()=>[t.be("dropdown","item"),t.is("disabled",W(s)),{selected:W(a),hover:W(d)}]),i=Br({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:o,itemSelected:a,isDisabled:s,select:l,hoverItem:u}=net(e,i),{visible:c,hover:d}=rc(i),h=dr().proxy;l.onOptionCreate(h),Mo(()=>{const g=h.value,{selected:b}=l,v=(l.props.multiple?b:[b]).some(m=>m.value===h.value);mn(()=>{l.cachedOptions.get(g)===h&&!v&&l.cachedOptions.delete(g)}),l.onOptionDestroy(g,h)});function f(){e.disabled!==!0&&i.groupDisabled!==!0&&l.handleOptionSelect(h)}return{ns:t,id:n,containerKls:r,currentLabel:o,itemSelected:a,isDisabled:s,select:l,hoverItem:u,visible:c,hover:d,selectOptionClick:f,states:i}}}),iet=["id","aria-disabled","aria-selected"];function oet(e,t,n,r,i,o){return Kn((Ce(),We("li",{id:e.id,class:De(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:t[1]||(t[1]=rr((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[rn(e.$slots,"default",{},()=>[at("span",null,en(e.currentLabel),1)])],42,iet)),[[Ni,e.visible]])}var sX=Bn(ret,[["render",oet],["__file","option.vue"]]);const aet=ft({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ht(RL),t=cn("select"),n=Oe(()=>e.props.popperClass),r=Oe(()=>e.props.multiple),i=Oe(()=>e.props.fitInputWidth),o=Re("");function a(){var s;o.value=`${(s=e.selectWrapper)==null?void 0:s.offsetWidth}px`}return _n(()=>{a(),uh(e.selectWrapper,a)}),{ns:t,minWidth:o,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function set(e,t,n,r,i,o){return Ce(),We("div",{class:De([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:En({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(Ce(),We("div",{key:0,class:De(e.ns.be("dropdown","header"))},[rn(e.$slots,"header")],2)):xt("v-if",!0),rn(e.$slots,"default"),e.$slots.footer?(Ce(),We("div",{key:1,class:De(e.ns.be("dropdown","footer"))},[rn(e.$slots,"footer")],2)):xt("v-if",!0)],6)}var uet=Bn(aet,[["render",set],["__file","select-dropdown.vue"]]);function cet(e){const{t}=uo();return Br({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const det=(e,t,n)=>{const{t:r}=uo(),i=cn("select");l0({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},Oe(()=>e.suffixTransition===!1));const o=Re(null),a=Re(null),s=Re(null),l=Re(null),u=Re(null),c=Re(null),d=Re(null),h=Re(null),f=Re(),g=so({query:""}),b=so(""),v=Re([]);let m=0;const{form:w,formItem:k}=bu(),T=Oe(()=>!e.filterable||e.multiple||!t.visible),S=Oe(()=>e.disabled||(w==null?void 0:w.disabled)),I=Oe(()=>{const He=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!S.value&&t.inputHovering&&He}),O=Oe(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),y=Oe(()=>i.is("reverse",O.value&&t.visible&&e.suffixTransition)),_=Oe(()=>(w==null?void 0:w.statusIcon)&&(k==null?void 0:k.validateState)&&Awe[k==null?void 0:k.validateState]),A=Oe(()=>e.remote?300:0),R=Oe(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),D=Oe(()=>{const He=Array.from(t.options.values()),wt=[];return v.value.forEach(Ee=>{const Xe=He.findIndex(ct=>ct.currentLabel===Ee);Xe>-1&&wt.push(He[Xe])}),wt.length>=He.length?wt:He}),C=Oe(()=>Array.from(t.cachedOptions.values())),x=Oe(()=>{const He=D.value.filter(wt=>!wt.created).some(wt=>wt.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!He}),P=js(),$=Oe(()=>["small"].includes(P.value)?"small":"default"),L=Oe({get(){return t.visible&&R.value!==!1},set(He){t.visible=He}});Pt([()=>S.value,()=>P.value,()=>w==null?void 0:w.size],()=>{mn(()=>{V()})}),Pt(()=>e.placeholder,He=>{t.cachedPlaceHolder=t.currentPlaceholder=He,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),Pt(()=>e.modelValue,(He,wt)=>{e.multiple&&(V(),He&&He.length>0||a.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",H(t.query))),K(),e.filterable&&!e.multiple&&(t.inputLength=20),!Ep(He,wt)&&e.validateEvent&&(k==null||k.validate("change").catch(Ee=>void 0))},{flush:"post",deep:!0}),Pt(()=>t.visible,He=>{var wt,Ee,Xe,ct,_t;He?((Ee=(wt=l.value)==null?void 0:wt.updatePopper)==null||Ee.call(wt),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(ct=(Xe=s.value)==null?void 0:Xe.focus)==null||ct.call(Xe),e.multiple?(_t=a.value)==null||_t.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),H(t.query),!e.multiple&&!e.remote&&(g.value.query="",uA(g),uA(b)))):(e.filterable&&(_i(e.filterMethod)&&e.filterMethod(""),_i(e.remoteMethod)&&e.remoteMethod("")),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,ue(),mn(()=>{a.value&&a.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",He)}),Pt(()=>t.options.entries(),()=>{var He,wt,Ee;if(!Ii)return;(wt=(He=l.value)==null?void 0:He.updatePopper)==null||wt.call(He),e.multiple&&V();const Xe=((Ee=d.value)==null?void 0:Ee.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!rl(e.modelValue)||!Array.from(Xe).includes(document.activeElement))&&K(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&U()},{flush:"post"}),Pt(()=>t.hoverIndex,He=>{$r(He)&&He>-1?f.value=D.value[He]||{}:f.value={},D.value.forEach(wt=>{wt.hover=f.value===wt})});const V=()=>{mn(()=>{var He,wt;if(!o.value)return;const Ee=o.value.$el.querySelector("input");m=m||(Ee.clientHeight>0?Ee.clientHeight+2:0);const Xe=c.value,ct=getComputedStyle(Ee).getPropertyValue(i.cssVarName("input-height")),_t=Number.parseFloat(ct)||fze(P.value||(w==null?void 0:w.size)),Qt=P.value||_t===m||m<=0?_t:m;Ee.offsetParent!==null&&(Ee.style.height=`${(t.selected.length===0?Qt:Math.max(Xe?Xe.clientHeight+(Xe.clientHeight>Qt?6:0):0,Qt))-2}px`),t.visible&&R.value!==!1&&((wt=(He=l.value)==null?void 0:He.updatePopper)==null||wt.call(He))})},H=async He=>{if(!(t.previousQuery===He||t.isOnComposition)){if(t.previousQuery===null&&(_i(e.filterMethod)||_i(e.remoteMethod))){t.previousQuery=He;return}t.previousQuery=He,mn(()=>{var wt,Ee;t.visible&&((Ee=(wt=l.value)==null?void 0:wt.updatePopper)==null||Ee.call(wt))}),t.hoverIndex=-1,e.multiple&&e.filterable&&mn(()=>{if(!S.value){const wt=a.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,wt):wt,Q()}V()}),e.remote&&_i(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(He)):_i(e.filterMethod)?(e.filterMethod(He),uA(b)):(t.filteredOptionsCount=t.optionsCount,g.value.query=He,uA(g),uA(b)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await mn(),U())}},Q=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=a.value.value?"":t.cachedPlaceHolder)},U=()=>{const He=D.value.filter(Xe=>Xe.visible&&!Xe.disabled&&!Xe.states.groupDisabled),wt=He.find(Xe=>Xe.created),Ee=He[0];t.hoverIndex=ie(D.value,wt||Ee)},K=()=>{var He;if(e.multiple)t.selectedLabel="";else{const Ee=J(e.modelValue);(He=Ee.props)!=null&&He.created?(t.createdLabel=Ee.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Ee.currentLabel,t.selected=Ee,e.filterable&&(t.query=t.selectedLabel);return}const wt=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Ee=>{wt.push(J(Ee))}),t.selected=wt,mn(()=>{V()})},J=He=>{let wt;const Ee=MF(He).toLowerCase()==="object",Xe=MF(He).toLowerCase()==="null",ct=MF(He).toLowerCase()==="undefined";for(let ln=t.cachedOptions.size-1;ln>=0;ln--){const kn=C.value[ln];if(Ee?Ys(kn.value,e.valueKey)===Ys(He,e.valueKey):kn.value===He){wt={value:He,currentLabel:kn.currentLabel,isDisabled:kn.isDisabled};break}}if(wt)return wt;const _t=Ee?He.label:!Xe&&!ct?He:"",Qt={value:He,currentLabel:_t};return e.multiple&&(Qt.hitState=!1),Qt},ue=()=>{setTimeout(()=>{const He=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(wt=>D.value.findIndex(Ee=>Ys(Ee,He)===Ys(wt,He)))):t.hoverIndex=-1:t.hoverIndex=D.value.findIndex(wt=>Ue(wt)===Ue(t.selected))},300)},ee=()=>{var He,wt;N(),(wt=(He=l.value)==null?void 0:He.updatePopper)==null||wt.call(He),e.multiple&&V()},N=()=>{var He;t.inputWidth=(He=o.value)==null?void 0:He.$el.offsetWidth},q=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,H(t.query))},G=ch(()=>{q()},A.value),ne=ch(He=>{H(He.target.value)},A.value),le=He=>{Ep(e.modelValue,He)||n.emit(Ua,He)},oe=He=>lHe(He,wt=>!t.disabledOptions.has(wt)),ve=He=>{if(He.code!==nr.delete){if(He.target.value.length<=0&&!se()){const wt=e.modelValue.slice(),Ee=oe(wt);if(Ee<0)return;wt.splice(Ee,1),n.emit(ur,wt),le(wt)}He.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},de=(He,wt)=>{const Ee=t.selected.indexOf(wt);if(Ee>-1&&!S.value){const Xe=e.modelValue.slice();Xe.splice(Ee,1),n.emit(ur,Xe),le(Xe),n.emit("remove-tag",wt.value)}He.stopPropagation(),Be()},ae=He=>{He.stopPropagation();const wt=e.multiple?[]:"";if(!vi(wt))for(const Ee of t.selected)Ee.isDisabled&&wt.push(Ee.value);n.emit(ur,wt),le(wt),t.hoverIndex=-1,t.visible=!1,n.emit("clear"),Be()},be=He=>{var wt;if(e.multiple){const Ee=(e.modelValue||[]).slice(),Xe=ie(Ee,He.value);Xe>-1?Ee.splice(Xe,1):(e.multipleLimit<=0||Ee.length<e.multipleLimit)&&Ee.push(He.value),n.emit(ur,Ee),le(Ee),He.created&&(t.query="",H(""),t.inputLength=20),e.filterable&&((wt=a.value)==null||wt.focus())}else n.emit(ur,He.value),le(He.value),t.visible=!1;ce(),!t.visible&&mn(()=>{pe(He)})},ie=(He=[],wt)=>{if(!Ha(wt))return He.indexOf(wt);const Ee=e.valueKey;let Xe=-1;return He.some((ct,_t)=>qr(Ys(ct,Ee))===Ys(wt,Ee)?(Xe=_t,!0):!1),Xe},ce=()=>{const He=a.value||o.value;He&&(He==null||He.focus())},pe=He=>{var wt,Ee,Xe,ct,_t;const Qt=Array.isArray(He)?He[0]:He;let ln=null;if(Qt!=null&&Qt.value){const kn=D.value.filter(hr=>hr.value===Qt.value);kn.length>0&&(ln=kn[0].$el)}if(l.value&&ln){const kn=(ct=(Xe=(Ee=(wt=l.value)==null?void 0:wt.popperRef)==null?void 0:Ee.contentRef)==null?void 0:Xe.querySelector)==null?void 0:ct.call(Xe,`.${i.be("dropdown","wrap")}`);kn&&ywe(kn,ln)}(_t=h.value)==null||_t.handleScroll()},X=He=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(He.value,He),t.cachedOptions.set(He.value,He),He.disabled&&t.disabledOptions.set(He.value,He)},Z=(He,wt)=>{t.options.get(He)===wt&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(He))},Y=He=>{He.code!==nr.backspace&&se(!1),t.inputLength=a.value.value.length*15+20,V()},se=He=>{if(!Array.isArray(t.selected))return;const wt=oe(t.selected.map(Xe=>Xe.value)),Ee=t.selected[wt];if(Ee)return He===!0||He===!1?(Ee.hitState=He,He):(Ee.hitState=!Ee.hitState,Ee.hitState)},fe=He=>{const wt=He.target.value;if(He.type==="compositionend")t.isOnComposition=!1,mn(()=>H(wt));else{const Ee=wt[wt.length-1]||"";t.isOnComposition=!jU(Ee)}},me=()=>{mn(()=>pe(t.selected))},Ae=He=>{t.focused||((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),t.focused=!0,n.emit("focus",He))},Be=()=>{var He,wt;t.visible?(He=a.value||o.value)==null||He.focus():(wt=o.value)==null||wt.focus()},Ye=()=>{var He,wt,Ee;t.visible=!1,(He=o.value)==null||He.blur(),(Ee=(wt=s.value)==null?void 0:wt.blur)==null||Ee.call(wt)},Qe=He=>{var wt,Ee,Xe;(wt=l.value)!=null&&wt.isFocusInsideContent(He)||(Ee=u.value)!=null&&Ee.isFocusInsideContent(He)||(Xe=d.value)!=null&&Xe.contains(He.relatedTarget)||(t.visible&&st(),t.focused=!1,n.emit("blur",He))},nt=He=>{ae(He)},st=()=>{t.visible=!1},Le=He=>{t.visible&&(He.preventDefault(),He.stopPropagation(),t.visible=!1)},Me=He=>{He&&!t.mouseEnter||S.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),Be())},je=()=>{t.visible?D.value[t.hoverIndex]&&be(D.value[t.hoverIndex]):Me()},Ue=He=>Ha(He.value)?Ys(He.value,e.valueKey):He.value,Te=Oe(()=>D.value.filter(He=>He.visible).every(He=>He.disabled)),bt=Oe(()=>e.multiple?t.selected.slice(0,e.maxCollapseTags):[]),At=Oe(()=>e.multiple?t.selected.slice(e.maxCollapseTags):[]),ht=He=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!Te.value){He==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):He==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const wt=D.value[t.hoverIndex];(wt.disabled===!0||wt.states.groupDisabled===!0||!wt.visible)&&ht(He),mn(()=>pe(f.value))}},Pe=()=>{t.mouseEnter=!0},Ze=()=>{t.mouseEnter=!1},dt=(He,wt)=>{var Ee,Xe;de(He,wt),(Xe=(Ee=u.value)==null?void 0:Ee.updatePopper)==null||Xe.call(Ee)},Mt=Oe(()=>({maxWidth:`${W(t.inputWidth)-32-(_.value?22:0)}px`,width:"100%"}));return{optionList:v,optionsArray:D,hoverOption:f,selectSize:P,handleResize:ee,debouncedOnInputChange:G,debouncedQueryChange:ne,deletePrevTag:ve,deleteTag:de,deleteSelected:ae,handleOptionSelect:be,scrollToOption:pe,readonly:T,resetInputHeight:V,showClose:I,iconComponent:O,iconReverse:y,showNewOption:x,collapseTagSize:$,setSelected:K,managePlaceholder:Q,selectDisabled:S,emptyText:R,toggleLastOptionHitState:se,resetInputState:Y,handleComposition:fe,onOptionCreate:X,onOptionDestroy:Z,handleMenuEnter:me,handleFocus:Ae,focus:Be,blur:Ye,handleBlur:Qe,handleClearClick:nt,handleClose:st,handleKeydownEscape:Le,toggleMenu:Me,selectOption:je,getValueKey:Ue,navigateOptions:ht,handleDeleteTooltipTag:dt,dropMenuVisible:L,queryChange:g,groupQueryChange:b,showTagList:bt,collapseTagList:At,selectTagsStyle:Mt,reference:o,input:a,iOSInput:s,tooltipRef:l,tagTooltipRef:u,tags:c,selectWrapper:d,scrollbar:h,handleMouseEnter:Pe,handleMouseLeave:Ze}};var het=ft({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];function i(o,a){if(o.length!==a.length)return!1;for(const[s]of o.entries())if(o[s]!=a[s])return!1;return!0}return()=>{var o,a;const s=(o=t.default)==null?void 0:o.call(t),l=[];function u(c){Array.isArray(c)&&c.forEach(d=>{var h,f,g,b;const v=(h=(d==null?void 0:d.type)||{})==null?void 0:h.name;v==="ElOptionGroup"?u(!vi(d.children)&&!Array.isArray(d.children)&&_i((f=d.children)==null?void 0:f.default)?(g=d.children)==null?void 0:g.default():d.children):v==="ElOption"?l.push((b=d.props)==null?void 0:b.label):Array.isArray(d.children)&&u(d.children)})}return s.length&&u((a=s[0])==null?void 0:a.children),i(l,r)||(r=l,n("update-options",l)),s}}});const cie="ElSelect",pet=ft({name:cie,componentName:cie,components:{ElInput:Fs,ElSelectMenu:uet,ElOption:sX,ElOptions:het,ElTag:t5,ElScrollbar:Tx,ElTooltip:wg,ElIcon:Ln},directives:{ClickOutside:Yb},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Iwe},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:DL.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:iu,default:Ix},fitInputWidth:Boolean,suffixIcon:{type:iu,default:Ax},tagType:{...rX.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:_x,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[ur,Ua,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=cn("select"),r=cn("input"),{t:i}=uo(),o=c0(),a=cet(e),{optionList:s,optionsArray:l,hoverOption:u,selectSize:c,readonly:d,handleResize:h,collapseTagSize:f,debouncedOnInputChange:g,debouncedQueryChange:b,deletePrevTag:v,deleteTag:m,deleteSelected:w,handleOptionSelect:k,scrollToOption:T,setSelected:S,resetInputHeight:I,managePlaceholder:O,showClose:y,selectDisabled:_,iconComponent:A,iconReverse:R,showNewOption:D,emptyText:C,toggleLastOptionHitState:x,resetInputState:P,handleComposition:$,onOptionCreate:L,onOptionDestroy:V,handleMenuEnter:H,handleFocus:Q,focus:U,blur:K,handleBlur:J,handleClearClick:ue,handleClose:ee,handleKeydownEscape:N,toggleMenu:q,selectOption:G,getValueKey:ne,navigateOptions:le,handleDeleteTooltipTag:oe,dropMenuVisible:ve,reference:de,input:ae,iOSInput:be,tooltipRef:ie,tagTooltipRef:ce,tags:pe,selectWrapper:X,scrollbar:Z,queryChange:Y,groupQueryChange:se,handleMouseEnter:fe,handleMouseLeave:me,showTagList:Ae,collapseTagList:Be,selectTagsStyle:Ye}=det(e,a,t),{inputWidth:Qe,selected:nt,inputLength:st,filteredOptionsCount:Le,visible:Me,selectedLabel:je,hoverIndex:Ue,query:Te,inputHovering:bt,currentPlaceholder:At,menuVisibleOnFocus:ht,isOnComposition:Pe,options:Ze,cachedOptions:dt,optionsCount:Mt,prefixWidth:He}=rc(a),wt=Oe(()=>{const pr=[n.b()],Wr=W(c);return Wr&&pr.push(n.m(Wr)),e.disabled&&pr.push(n.m("disabled")),pr}),Ee=Oe(()=>[n.e("tags"),n.is("disabled",W(_))]),Xe=Oe(()=>[n.b("tags-wrapper"),{"has-prefix":W(He)&&W(nt).length}]),ct=Oe(()=>[n.e("input"),n.is(W(c)),n.is("disabled",W(_))]),_t=Oe(()=>[n.e("input"),n.is(W(c)),n.em("input","iOS")]),Qt=Oe(()=>[n.is("empty",!e.allowCreate&&!!W(Te)&&W(Le)===0)]),ln=Oe(()=>({maxWidth:`${W(Qe)>123&&W(nt).length>e.maxCollapseTags?W(Qe)-123:W(Qe)-75}px`})),kn=Oe(()=>({marginLeft:`${W(He)}px`,flexGrow:1,width:`${W(st)/(W(Qe)-32)}%`,maxWidth:`${W(Qe)-42}px`}));Or(RL,Br({props:e,options:Ze,optionsArray:l,cachedOptions:dt,optionsCount:Mt,filteredOptionsCount:Le,hoverIndex:Ue,handleOptionSelect:k,onOptionCreate:L,onOptionDestroy:V,selectWrapper:X,selected:nt,setSelected:S,queryChange:Y,groupQueryChange:se})),_n(()=>{a.cachedPlaceHolder=At.value=e.placeholder||(()=>i("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(At.value=""),uh(X,h),e.remote&&e.multiple&&I(),mn(()=>{const pr=de.value&&de.value.$el;if(pr&&(Qe.value=pr.getBoundingClientRect().width,t.slots.prefix)){const Wr=pr.querySelector(`.${r.e("prefix")}`);He.value=Math.max(Wr.getBoundingClientRect().width+11,30)}}),S()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(ur,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(ur,"");const hr=Oe(()=>{var pr,Wr;return(Wr=(pr=ie.value)==null?void 0:pr.popperRef)==null?void 0:Wr.contentRef});return{isIOS:M1e,onOptionsRendered:pr=>{s.value=pr},prefixWidth:He,selectSize:c,readonly:d,handleResize:h,collapseTagSize:f,debouncedOnInputChange:g,debouncedQueryChange:b,deletePrevTag:v,deleteTag:m,handleDeleteTooltipTag:oe,deleteSelected:w,handleOptionSelect:k,scrollToOption:T,inputWidth:Qe,selected:nt,inputLength:st,filteredOptionsCount:Le,visible:Me,selectedLabel:je,hoverIndex:Ue,query:Te,inputHovering:bt,currentPlaceholder:At,menuVisibleOnFocus:ht,isOnComposition:Pe,options:Ze,resetInputHeight:I,managePlaceholder:O,showClose:y,selectDisabled:_,iconComponent:A,iconReverse:R,showNewOption:D,emptyText:C,toggleLastOptionHitState:x,resetInputState:P,handleComposition:$,handleMenuEnter:H,handleFocus:Q,focus:U,blur:K,handleBlur:J,handleClearClick:ue,handleClose:ee,handleKeydownEscape:N,toggleMenu:q,selectOption:G,getValueKey:ne,navigateOptions:le,dropMenuVisible:ve,reference:de,input:ae,iOSInput:be,tooltipRef:ie,popperPaneRef:hr,tags:pe,selectWrapper:X,scrollbar:Z,wrapperKls:wt,tagsKls:Ee,tagWrapperKls:Xe,inputKls:ct,iOSInputKls:_t,scrollbarKls:Qt,selectTagsStyle:Ye,nsSelect:n,tagTextStyle:ln,inputStyle:kn,handleMouseEnter:fe,handleMouseLeave:me,showTagList:Ae,collapseTagList:Be,tagTooltipRef:ce,contentId:o,hoverOption:u}}}),fet=["disabled","autocomplete","aria-activedescendant","aria-controls","aria-expanded","aria-label"],get=["disabled"],met={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function vet(e,t,n,r,i,o){const a=Ar("el-tag"),s=Ar("el-tooltip"),l=Ar("el-icon"),u=Ar("el-input"),c=Ar("el-option"),d=Ar("el-options"),h=Ar("el-scrollbar"),f=Ar("el-select-menu"),g=o0("click-outside");return Kn((Ce(),We("div",{ref:"selectWrapper",class:De(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...b)=>e.handleMouseEnter&&e.handleMouseEnter(...b)),onMouseleave:t[23]||(t[23]=(...b)=>e.handleMouseLeave&&e.handleMouseLeave(...b)),onClick:t[24]||(t[24]=rr((...b)=>e.toggleMenu&&e.toggleMenu(...b),["stop"]))},[xe(s,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:ot(()=>{var b,v;return[at("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=m=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=m=>e.inputHovering=!1)},[e.multiple?(Ce(),We("div",{key:0,ref:"tags",tabindex:"-1",class:De(e.tagsKls),style:En(e.selectTagsStyle),onClick:t[15]||(t[15]=(...m)=>e.focus&&e.focus(...m))},[e.collapseTags&&e.selected.length?(Ce(),mt(ic,{key:0,onAfterLeave:e.resetInputHeight},{default:ot(()=>[at("span",{class:De(e.tagWrapperKls)},[(Ce(!0),We(un,null,xr(e.showTagList,m=>(Ce(),mt(a,{key:e.getValueKey(m),closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",onClose:w=>e.deleteTag(w,m)},{default:ot(()=>[at("span",{class:De(e.nsSelect.e("tags-text")),style:En(e.tagTextStyle)},en(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(Ce(),mt(a,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:ot(()=>[e.collapseTagsTooltip?(Ce(),mt(s,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:ot(()=>[at("span",{class:De(e.nsSelect.e("tags-text"))},"+ "+en(e.selected.length-e.maxCollapseTags),3)]),content:ot(()=>[at("div",{class:De(e.nsSelect.e("collapse-tags"))},[(Ce(!0),We(un,null,xr(e.collapseTagList,m=>(Ce(),We("div",{key:e.getValueKey(m),class:De(e.nsSelect.e("collapse-tag"))},[xe(a,{class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:w=>e.handleDeleteTooltipTag(w,m)},{default:ot(()=>[at("span",{class:De(e.nsSelect.e("tags-text")),style:En({maxWidth:e.inputWidth-75+"px"})},en(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(Ce(),We("span",{key:1,class:De(e.nsSelect.e("tags-text"))},"+ "+en(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):xt("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):xt("v-if",!0),e.collapseTags?xt("v-if",!0):(Ce(),mt(ic,{key:1,onAfterLeave:e.resetInputHeight},{default:ot(()=>[at("span",{class:De(e.tagWrapperKls),style:En(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[(Ce(!0),We(un,null,xr(e.selected,m=>(Ce(),mt(a,{key:e.getValueKey(m),closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",onClose:w=>e.deleteTag(w,m)},{default:ot(()=>[at("span",{class:De(e.nsSelect.e("tags-text")),style:En({maxWidth:e.inputWidth-75+"px"})},en(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?Kn((Ce(),We("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=m=>e.query=m),type:"text",class:De(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:En(e.inputStyle),role:"combobox","aria-activedescendant":((b=e.hoverOption)==null?void 0:b.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...m)=>e.handleFocus&&e.handleFocus(...m)),onBlur:t[2]||(t[2]=(...m)=>e.handleBlur&&e.handleBlur(...m)),onKeyup:t[3]||(t[3]=(...m)=>e.managePlaceholder&&e.managePlaceholder(...m)),onKeydown:[t[4]||(t[4]=(...m)=>e.resetInputState&&e.resetInputState(...m)),t[5]||(t[5]=Zi(rr(m=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=Zi(rr(m=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=Zi((...m)=>e.handleKeydownEscape&&e.handleKeydownEscape(...m),["esc"])),t[8]||(t[8]=Zi(rr((...m)=>e.selectOption&&e.selectOption(...m),["stop","prevent"]),["enter"])),t[9]||(t[9]=Zi((...m)=>e.deletePrevTag&&e.deletePrevTag(...m),["delete"])),t[10]||(t[10]=Zi(m=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onCompositionupdate:t[12]||(t[12]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onCompositionend:t[13]||(t[13]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onInput:t[14]||(t[14]=(...m)=>e.debouncedQueryChange&&e.debouncedQueryChange(...m))},null,46,fet)),[[o1e,e.query]]):xt("v-if",!0)],6)):xt("v-if",!0),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(Ce(),We("input",{key:1,ref:"iOSInput",class:De(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,get)):xt("v-if",!0),xe(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=m=>e.selectedLabel=m),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:De([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,role:"combobox","aria-activedescendant":((v=e.hoverOption)==null?void 0:v.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropMenuVisible,label:e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=Zi(rr(m=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=Zi(rr(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Zi(rr(e.selectOption,["stop","prevent"]),["enter"]),Zi(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=Zi(m=>e.visible=!1,["tab"]))]},a0({suffix:ot(()=>[e.iconComponent&&!e.showClose?(Ce(),mt(l,{key:0,class:De([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ot(()=>[(Ce(),mt(ei(e.iconComponent)))]),_:1},8,["class"])):xt("v-if",!0),e.showClose&&e.clearIcon?(Ce(),mt(l,{key:1,class:De([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:ot(()=>[(Ce(),mt(ei(e.clearIcon)))]),_:1},8,["class","onClick"])):xt("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:ot(()=>[at("div",met,[rn(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","aria-activedescendant","aria-controls","aria-expanded","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]}),content:ot(()=>[xe(f,null,a0({default:ot(()=>[Kn(xe(h,{id:e.contentId,ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:De(e.scrollbarKls),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ot(()=>[e.showNewOption?(Ce(),mt(c,{key:0,value:e.query,created:!0},null,8,["value"])):xt("v-if",!0),xe(d,{onUpdateOptions:e.onOptionsRendered},{default:ot(()=>[rn(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[Ni,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(Ce(),We(un,{key:0},[e.$slots.empty?rn(e.$slots,"empty",{key:0}):(Ce(),We("p",{key:1,class:De(e.nsSelect.be("dropdown","empty"))},en(e.emptyText),3))],64)):xt("v-if",!0)]),_:2},[e.$slots.header?{name:"header",fn:ot(()=>[rn(e.$slots,"header")])}:void 0,e.$slots.footer?{name:"footer",fn:ot(()=>[rn(e.$slots,"footer")])}:void 0]),1024)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[g,e.handleClose,e.popperPaneRef]])}var yet=Bn(pet,[["render",vet],["__file","select.vue"]]);const bet=ft({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=cn("select"),n=Re(!0),r=dr(),i=Re([]);Or(vOe,Br({...rc(e)}));const o=Ht(RL);_n(()=>{i.value=a(r.subTree)});const a=l=>{const u=[];return Array.isArray(l.children)&&l.children.forEach(c=>{var d;c.type&&c.type.name==="ElOption"&&c.component&&c.component.proxy?u.push(c.component.proxy):(d=c.children)!=null&&d.length&&u.push(...a(c))}),u},{groupQueryChange:s}=qr(o);return Pt(s,()=>{n.value=i.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function wet(e,t,n,r,i,o){return Kn((Ce(),We("ul",{class:De(e.ns.be("group","wrap"))},[at("li",{class:De(e.ns.be("group","title"))},en(e.label),3),at("li",null,[at("ul",{class:De(e.ns.b("group"))},[rn(e.$slots,"default")],2)])],2)),[[Ni,e.visible]])}var yOe=Bn(bet,[["render",wet],["__file","option-group.vue"]]);const Cet=Xi(yet,{Option:sX,OptionGroup:yOe}),Oet=yh(sX);yh(yOe);const xet=Tn({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:jt(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:jt([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:jt(Function),default:e=>`${e}%`}}),Aet=["aria-valuenow"],Iet={viewBox:"0 0 100 100"},ket=["d","stroke","stroke-linecap","stroke-width"],Eet=["d","stroke","opacity","stroke-linecap","stroke-width"],_et={key:0},Tet=ft({name:"ElProgress"}),Pet=ft({...Tet,props:xet,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=cn("progress"),i=Oe(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:w(t.percentage)})),o=Oe(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=Oe(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(o.value)/2}`,10):0),s=Oe(()=>{const k=a.value,T=t.type==="dashboard";return`
|
|
M 50 50
|
|
m 0 ${T?"":"-"}${k}
|
|
a ${k} ${k} 0 1 1 0 ${T?"-":""}${k*2}
|
|
a ${k} ${k} 0 1 1 0 ${T?"":"-"}${k*2}
|
|
`}),l=Oe(()=>2*Math.PI*a.value),u=Oe(()=>t.type==="dashboard"?.75:1),c=Oe(()=>`${-1*l.value*(1-u.value)/2}px`),d=Oe(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),h=Oe(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),f=Oe(()=>{let k;return t.color?k=w(t.percentage):k=n[t.status]||n.default,k}),g=Oe(()=>t.status==="warning"?VU:t.type==="line"?t.status==="success"?NU:Ix:t.status==="success"?SL:yg),b=Oe(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),v=Oe(()=>t.format(t.percentage));function m(k){const T=100/k.length;return k.map((S,I)=>vi(S)?{color:S,percentage:(I+1)*T}:S).sort((S,I)=>S.percentage-I.percentage)}const w=k=>{var T;const{color:S}=t;if(_i(S))return S(k);if(vi(S))return S;{const I=m(S);for(const O of I)if(O.percentage>k)return O.color;return(T=I[I.length-1])==null?void 0:T.color}};return(k,T)=>(Ce(),We("div",{class:De([W(r).b(),W(r).m(k.type),W(r).is(k.status),{[W(r).m("without-text")]:!k.showText,[W(r).m("text-inside")]:k.textInside}]),role:"progressbar","aria-valuenow":k.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[k.type==="line"?(Ce(),We("div",{key:0,class:De(W(r).b("bar"))},[at("div",{class:De(W(r).be("bar","outer")),style:En({height:`${k.strokeWidth}px`})},[at("div",{class:De([W(r).be("bar","inner"),{[W(r).bem("bar","inner","indeterminate")]:k.indeterminate},{[W(r).bem("bar","inner","striped")]:k.striped},{[W(r).bem("bar","inner","striped-flow")]:k.stripedFlow}]),style:En(W(i))},[(k.showText||k.$slots.default)&&k.textInside?(Ce(),We("div",{key:0,class:De(W(r).be("bar","innerText"))},[rn(k.$slots,"default",{percentage:k.percentage},()=>[at("span",null,en(W(v)),1)])],2)):xt("v-if",!0)],6)],6)],2)):(Ce(),We("div",{key:1,class:De(W(r).b("circle")),style:En({height:`${k.width}px`,width:`${k.width}px`})},[(Ce(),We("svg",Iet,[at("path",{class:De(W(r).be("circle","track")),d:W(s),stroke:`var(${W(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":k.strokeLinecap,"stroke-width":W(o),fill:"none",style:En(W(d))},null,14,ket),at("path",{class:De(W(r).be("circle","path")),d:W(s),stroke:W(f),fill:"none",opacity:k.percentage?1:0,"stroke-linecap":k.strokeLinecap,"stroke-width":W(o),style:En(W(h))},null,14,Eet)]))],6)),(k.showText||k.$slots.default)&&!k.textInside?(Ce(),We("div",{key:2,class:De(W(r).e("text")),style:En({fontSize:`${W(b)}px`})},[rn(k.$slots,"default",{percentage:k.percentage},()=>[k.status?(Ce(),mt(W(Ln),{key:1},{default:ot(()=>[(Ce(),mt(ei(W(g))))]),_:1})):(Ce(),We("span",_et,en(W(v)),1))])],6)):xt("v-if",!0)],10,Aet))}});var Det=Bn(Pet,[["__file","progress.vue"]]);const Ret=Xi(Det),$et=Tn({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:jt([Array,Object]),default:()=>dh(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:jt([Array,Object]),default:()=>[aD,aD,aD]},voidIcon:{type:iu,default:()=>tze},disabledVoidIcon:{type:iu,default:()=>aD},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:jt(Array),default:()=>dh(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Fl,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),Met={[Ua]:e=>$r(e),[ur]:e=>$r(e)},Let=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],Bet=["onMousemove","onClick"],Fet=ft({name:"ElRate"}),Net=ft({...Fet,props:$et,emits:Met,setup(e,{expose:t,emit:n}){const r=e;function i($,L){const V=U=>Ha(U),H=Object.keys(L).map(U=>+U).filter(U=>{const K=L[U];return V(K)&&K.excluded?$<U:$<=U}).sort((U,K)=>U-K),Q=L[H[0]];return V(Q)&&Q.value||Q}const o=Ht(A1,void 0),a=Ht(d0,void 0),s=js(),l=cn("rate"),{inputId:u,isLabeledByFormItem:c}=D0(r,{formItemContext:a}),d=Re(r.modelValue),h=Re(-1),f=Re(!0),g=Oe(()=>[l.b(),l.m(s.value)]),b=Oe(()=>r.disabled||(o==null?void 0:o.disabled)),v=Oe(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":T.value})),m=Oe(()=>{let $="";return r.showScore?$=r.scoreTemplate.replace(/\{\s*value\s*\}/,b.value?`${r.modelValue}`:`${d.value}`):r.showText&&($=r.texts[Math.ceil(d.value)-1]),$}),w=Oe(()=>r.modelValue*100-Math.floor(r.modelValue)*100),k=Oe(()=>Tr(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),T=Oe(()=>{const $=i(d.value,k.value);return Ha($)?"":$}),S=Oe(()=>{let $="";return b.value?$=`${w.value}%`:r.allowHalf&&($="50%"),{color:T.value,width:$}}),I=Oe(()=>{let $=Tr(r.icons)?[...r.icons]:{...r.icons};return $=yb($),Tr($)?{[r.lowThreshold]:$[0],[r.highThreshold]:{value:$[1],excluded:!0},[r.max]:$[2]}:$}),O=Oe(()=>i(r.modelValue,I.value)),y=Oe(()=>b.value?vi(r.disabledVoidIcon)?r.disabledVoidIcon:yb(r.disabledVoidIcon):vi(r.voidIcon)?r.voidIcon:yb(r.voidIcon)),_=Oe(()=>i(d.value,I.value));function A($){const L=b.value&&w.value>0&&$-1<r.modelValue&&$>r.modelValue,V=r.allowHalf&&f.value&&$-.5<=d.value&&$>d.value;return L||V}function R($){r.clearable&&$===r.modelValue&&($=0),n(ur,$),r.modelValue!==$&&n("change",$)}function D($){b.value||(r.allowHalf&&f.value?R(d.value):R($))}function C($){if(b.value)return;let L=d.value;const V=$.code;return V===nr.up||V===nr.right?(r.allowHalf?L+=.5:L+=1,$.stopPropagation(),$.preventDefault()):(V===nr.left||V===nr.down)&&(r.allowHalf?L-=.5:L-=1,$.stopPropagation(),$.preventDefault()),L=L<0?0:L,L=L>r.max?r.max:L,n(ur,L),n("change",L),L}function x($,L){if(!b.value){if(r.allowHalf&&L){let V=L.target;_p(V,l.e("item"))&&(V=V.querySelector(`.${l.e("icon")}`)),(V.clientWidth===0||_p(V,l.e("decimal")))&&(V=V.parentNode),f.value=L.offsetX*2<=V.clientWidth,d.value=f.value?$-.5:$}else d.value=$;h.value=$}}function P(){b.value||(r.allowHalf&&(f.value=r.modelValue!==Math.floor(r.modelValue)),d.value=r.modelValue,h.value=-1)}return Pt(()=>r.modelValue,$=>{d.value=$,f.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(ur,0),t({setCurrentValue:x,resetCurrentValue:P}),($,L)=>{var V;return Ce(),We("div",{id:W(u),class:De([W(g),W(l).is("disabled",W(b))]),role:"slider","aria-label":W(c)?void 0:$.label||"rating","aria-labelledby":W(c)?(V=W(a))==null?void 0:V.labelId:void 0,"aria-valuenow":d.value,"aria-valuetext":W(m)||void 0,"aria-valuemin":"0","aria-valuemax":$.max,tabindex:"0",style:En(W(v)),onKeydown:C},[(Ce(!0),We(un,null,xr($.max,(H,Q)=>(Ce(),We("span",{key:Q,class:De(W(l).e("item")),onMousemove:U=>x(H,U),onMouseleave:P,onClick:U=>D(H)},[xe(W(Ln),{class:De([W(l).e("icon"),{hover:h.value===H},W(l).is("active",H<=d.value)])},{default:ot(()=>[A(H)?xt("v-if",!0):(Ce(),We(un,{key:0},[Kn((Ce(),mt(ei(W(_)),null,null,512)),[[Ni,H<=d.value]]),Kn((Ce(),mt(ei(W(y)),null,null,512)),[[Ni,!(H<=d.value)]])],64)),A(H)?(Ce(),We(un,{key:1},[(Ce(),mt(ei(W(y)),{class:De([W(l).em("decimal","box")])},null,8,["class"])),xe(W(Ln),{style:En(W(S)),class:De([W(l).e("icon"),W(l).e("decimal")])},{default:ot(()=>[(Ce(),mt(ei(W(O))))]),_:1},8,["style","class"])],64)):xt("v-if",!0)]),_:2},1032,["class"])],42,Bet))),128)),$.showText||$.showScore?(Ce(),We("span",{key:0,class:De(W(l).e("text")),style:En({color:$.textColor})},en(W(m)),7)):xt("v-if",!0)],46,Let)}}});var Vet=Bn(Net,[["__file","rate.vue"]]);const jet=Xi(Vet),bOe=Symbol("sliderContextKey"),Wet=Tn({modelValue:{type:jt([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Fl,inputSize:Fl,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:jt(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:jt(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:_x,default:"top"},marks:{type:jt(Object)},validateEvent:{type:Boolean,default:!0}}),KF=e=>$r(e)||Tr(e)&&e.every($r),Het={[ur]:KF,[Pp]:KF,[Ua]:KF},zet=(e,t,n)=>{const r=Re();return _n(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),lu(window,"resize",n),await mn(),n()}),{sliderWrapper:r}},Zet=e=>Oe(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((t,n)=>t-n).filter(t=>t<=e.max&&t>=e.min).map(t=>({point:t,position:(t-e.min)*100/(e.max-e.min),mark:e.marks[t]})):[]),Get=(e,t,n)=>{const{form:r,formItem:i}=bu(),o=so(),a=Re(),s=Re(),l={firstButton:a,secondButton:s},u=Oe(()=>e.disabled||(r==null?void 0:r.disabled)||!1),c=Oe(()=>Math.min(t.firstValue,t.secondValue)),d=Oe(()=>Math.max(t.firstValue,t.secondValue)),h=Oe(()=>e.range?`${100*(d.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),f=Oe(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),g=Oe(()=>e.vertical?{height:e.height}:{}),b=Oe(()=>e.vertical?{height:h.value,bottom:f.value}:{width:h.value,left:f.value}),v=()=>{o.value&&(t.sliderSize=o.value[`client${e.vertical?"Height":"Width"}`])},m=y=>{const _=e.min+y*(e.max-e.min)/100;if(!e.range)return a;let A;return Math.abs(c.value-_)<Math.abs(d.value-_)?A=t.firstValue<t.secondValue?"firstButton":"secondButton":A=t.firstValue>t.secondValue?"firstButton":"secondButton",l[A]},w=y=>{const _=m(y);return _.value.setPosition(y),_},k=y=>{t.firstValue=y,S(e.range?[c.value,d.value]:y)},T=y=>{t.secondValue=y,e.range&&S([c.value,d.value])},S=y=>{n(ur,y),n(Pp,y)},I=async()=>{await mn(),n(Ua,e.range?[c.value,d.value]:e.modelValue)},O=y=>{var _,A,R,D,C,x;if(u.value||t.dragging)return;v();let P=0;if(e.vertical){const $=(R=(A=(_=y.touches)==null?void 0:_.item(0))==null?void 0:A.clientY)!=null?R:y.clientY;P=(o.value.getBoundingClientRect().bottom-$)/t.sliderSize*100}else{const $=(x=(C=(D=y.touches)==null?void 0:D.item(0))==null?void 0:C.clientX)!=null?x:y.clientX,L=o.value.getBoundingClientRect().left;P=($-L)/t.sliderSize*100}if(!(P<0||P>100))return w(P)};return{elFormItem:i,slider:o,firstButton:a,secondButton:s,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:g,barStyle:b,resetSize:v,setPosition:w,emitChange:I,onSliderWrapperPrevent:y=>{var _,A;((_=l.firstButton.value)!=null&&_.dragging||(A=l.secondButton.value)!=null&&A.dragging)&&y.preventDefault()},onSliderClick:y=>{O(y)&&I()},onSliderDown:async y=>{const _=O(y);_&&(await mn(),_.value.onButtonDown(y))},setFirstValue:k,setSecondValue:T}},{left:Qet,down:Uet,right:Xet,up:Yet,home:Ket,end:qet,pageUp:Jet,pageDown:ett}=nr,ttt=(e,t,n)=>{const r=Re(),i=Re(!1),o=Oe(()=>t.value instanceof Function),a=Oe(()=>o.value&&t.value(e.modelValue)||e.modelValue),s=ch(()=>{n.value&&(i.value=!0)},50),l=ch(()=>{n.value&&(i.value=!1)},50);return{tooltip:r,tooltipVisible:i,formatValue:a,displayTooltip:s,hideTooltip:l}},ntt=(e,t,n)=>{const{disabled:r,min:i,max:o,step:a,showTooltip:s,precision:l,sliderSize:u,formatTooltip:c,emitChange:d,resetSize:h,updateDragging:f}=Ht(bOe),{tooltip:g,tooltipVisible:b,formatValue:v,displayTooltip:m,hideTooltip:w}=ttt(e,c,s),k=Re(),T=Oe(()=>`${(e.modelValue-i.value)/(o.value-i.value)*100}%`),S=Oe(()=>e.vertical?{bottom:T.value}:{left:T.value}),I=()=>{t.hovering=!0,m()},O=()=>{t.hovering=!1,t.dragging||w()},y=K=>{r.value||(K.preventDefault(),V(K),window.addEventListener("mousemove",H),window.addEventListener("touchmove",H),window.addEventListener("mouseup",Q),window.addEventListener("touchend",Q),window.addEventListener("contextmenu",Q),k.value.focus())},_=K=>{r.value||(t.newPosition=Number.parseFloat(T.value)+K/(o.value-i.value)*100,U(t.newPosition),d())},A=()=>{_(-a.value)},R=()=>{_(a.value)},D=()=>{_(-a.value*4)},C=()=>{_(a.value*4)},x=()=>{r.value||(U(0),d())},P=()=>{r.value||(U(100),d())},$=K=>{let J=!0;[Qet,Uet].includes(K.key)?A():[Xet,Yet].includes(K.key)?R():K.key===Ket?x():K.key===qet?P():K.key===ett?D():K.key===Jet?C():J=!1,J&&K.preventDefault()},L=K=>{let J,ue;return K.type.startsWith("touch")?(ue=K.touches[0].clientY,J=K.touches[0].clientX):(ue=K.clientY,J=K.clientX),{clientX:J,clientY:ue}},V=K=>{t.dragging=!0,t.isClick=!0;const{clientX:J,clientY:ue}=L(K);e.vertical?t.startY=ue:t.startX=J,t.startPosition=Number.parseFloat(T.value),t.newPosition=t.startPosition},H=K=>{if(t.dragging){t.isClick=!1,m(),h();let J;const{clientX:ue,clientY:ee}=L(K);e.vertical?(t.currentY=ee,J=(t.startY-t.currentY)/u.value*100):(t.currentX=ue,J=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+J,U(t.newPosition)}},Q=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||w(),t.isClick||U(t.newPosition),d()},0),window.removeEventListener("mousemove",H),window.removeEventListener("touchmove",H),window.removeEventListener("mouseup",Q),window.removeEventListener("touchend",Q),window.removeEventListener("contextmenu",Q))},U=async K=>{if(K===null||Number.isNaN(+K))return;K<0?K=0:K>100&&(K=100);const J=100/((o.value-i.value)/a.value);let ue=Math.round(K/J)*J*(o.value-i.value)*.01+i.value;ue=Number.parseFloat(ue.toFixed(l.value)),ue!==e.modelValue&&n(ur,ue),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await mn(),t.dragging&&m(),g.value.updatePopper()};return Pt(()=>t.dragging,K=>{f(K)}),{disabled:r,button:k,tooltip:g,tooltipVisible:b,showTooltip:s,wrapperStyle:S,formatValue:v,handleMouseEnter:I,handleMouseLeave:O,onButtonDown:y,onKeyDown:$,setPosition:U}},rtt=(e,t,n,r)=>({stops:Oe(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const i=(e.max-e.min)/e.step,o=100*e.step/(e.max-e.min),a=Array.from({length:i-1}).map((s,l)=>(l+1)*o);return e.range?a.filter(s=>s<100*(n.value-e.min)/(e.max-e.min)||s>100*(r.value-e.min)/(e.max-e.min)):a.filter(s=>s>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:i=>e.vertical?{bottom:`${i}%`}:{left:`${i}%`}}),itt=(e,t,n,r,i,o)=>{const a=u=>{i(ur,u),i(Pp,u)},s=()=>e.range?![n.value,r.value].every((u,c)=>u===t.oldValue[c]):e.modelValue!==t.oldValue,l=()=>{var u,c;e.min>e.max&&hc("Slider","min should not be greater than max.");const d=e.modelValue;e.range&&Array.isArray(d)?d[1]<e.min?a([e.min,e.min]):d[0]>e.max?a([e.max,e.max]):d[0]<e.min?a([e.min,d[1]]):d[1]>e.max?a([d[0],e.max]):(t.firstValue=d[0],t.secondValue=d[1],s()&&(e.validateEvent&&((u=o==null?void 0:o.validate)==null||u.call(o,"change").catch(h=>void 0)),t.oldValue=d.slice())):!e.range&&typeof d=="number"&&!Number.isNaN(d)&&(d<e.min?a(e.min):d>e.max?a(e.max):(t.firstValue=d,s()&&(e.validateEvent&&((c=o==null?void 0:o.validate)==null||c.call(o,"change").catch(h=>void 0)),t.oldValue=d)))};l(),Pt(()=>t.dragging,u=>{u||l()}),Pt(()=>e.modelValue,(u,c)=>{t.dragging||Array.isArray(u)&&Array.isArray(c)&&u.every((d,h)=>d===c[h])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),Pt(()=>[e.min,e.max],()=>{l()})},ott=Tn({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:_x,default:"top"}}),att={[ur]:e=>$r(e)},stt=["tabindex"],ltt=ft({name:"ElSliderButton"}),utt=ft({...ltt,props:ott,emits:att,setup(e,{expose:t,emit:n}){const r=e,i=cn("slider"),o=Br({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:a,button:s,tooltip:l,showTooltip:u,tooltipVisible:c,wrapperStyle:d,formatValue:h,handleMouseEnter:f,handleMouseLeave:g,onButtonDown:b,onKeyDown:v,setPosition:m}=ntt(r,o,n),{hovering:w,dragging:k}=rc(o);return t({onButtonDown:b,onKeyDown:v,setPosition:m,hovering:w,dragging:k}),(T,S)=>(Ce(),We("div",{ref_key:"button",ref:s,class:De([W(i).e("button-wrapper"),{hover:W(w),dragging:W(k)}]),style:En(W(d)),tabindex:W(a)?-1:0,onMouseenter:S[0]||(S[0]=(...I)=>W(f)&&W(f)(...I)),onMouseleave:S[1]||(S[1]=(...I)=>W(g)&&W(g)(...I)),onMousedown:S[2]||(S[2]=(...I)=>W(b)&&W(b)(...I)),onTouchstart:S[3]||(S[3]=(...I)=>W(b)&&W(b)(...I)),onFocus:S[4]||(S[4]=(...I)=>W(f)&&W(f)(...I)),onBlur:S[5]||(S[5]=(...I)=>W(g)&&W(g)(...I)),onKeydown:S[6]||(S[6]=(...I)=>W(v)&&W(v)(...I))},[xe(W(wg),{ref_key:"tooltip",ref:l,visible:W(c),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!W(u),persistent:""},{content:ot(()=>[at("span",null,en(W(h)),1)]),default:ot(()=>[at("div",{class:De([W(i).e("button"),{hover:W(w),dragging:W(k)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,stt))}});var die=Bn(utt,[["__file","button.vue"]]);const ctt=Tn({mark:{type:jt([String,Object]),default:void 0}});var dtt=ft({name:"ElSliderMarker",props:ctt,setup(e){const t=cn("slider"),n=Oe(()=>vi(e.mark)?e.mark:e.mark.label),r=Oe(()=>vi(e.mark)?void 0:e.mark.style);return()=>Yn("div",{class:t.e("marks-text"),style:r.value},n.value)}});const htt=["id","role","aria-label","aria-labelledby"],ptt={key:1},ftt=ft({name:"ElSlider"}),gtt=ft({...ftt,props:Wet,emits:Het,setup(e,{expose:t,emit:n}){const r=e,i=cn("slider"),{t:o}=uo(),a=Br({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:l,firstButton:u,secondButton:c,sliderDisabled:d,minValue:h,maxValue:f,runwayStyle:g,barStyle:b,resetSize:v,emitChange:m,onSliderWrapperPrevent:w,onSliderClick:k,onSliderDown:T,setFirstValue:S,setSecondValue:I}=Get(r,a,n),{stops:O,getStopStyle:y}=rtt(r,a,h,f),{inputId:_,isLabeledByFormItem:A}=D0(r,{formItemContext:s}),R=js(),D=Oe(()=>r.inputSize||R.value),C=Oe(()=>r.label||o("el.slider.defaultLabel",{min:r.min,max:r.max})),x=Oe(()=>r.range?r.rangeStartLabel||o("el.slider.defaultRangeStartLabel"):C.value),P=Oe(()=>r.formatValueText?r.formatValueText(K.value):`${K.value}`),$=Oe(()=>r.rangeEndLabel||o("el.slider.defaultRangeEndLabel")),L=Oe(()=>r.formatValueText?r.formatValueText(J.value):`${J.value}`),V=Oe(()=>[i.b(),i.m(R.value),i.is("vertical",r.vertical),{[i.m("with-input")]:r.showInput}]),H=Zet(r);itt(r,a,h,f,n,s);const Q=Oe(()=>{const N=[r.min,r.max,r.step].map(q=>{const G=`${q}`.split(".")[1];return G?G.length:0});return Math.max.apply(null,N)}),{sliderWrapper:U}=zet(r,a,v),{firstValue:K,secondValue:J,sliderSize:ue}=rc(a),ee=N=>{a.dragging=N};return Or(bOe,{...rc(r),sliderSize:ue,disabled:d,precision:Q,emitChange:m,resetSize:v,updateDragging:ee}),t({onSliderClick:k}),(N,q)=>{var G,ne;return Ce(),We("div",{id:N.range?W(_):void 0,ref_key:"sliderWrapper",ref:U,class:De(W(V)),role:N.range?"group":void 0,"aria-label":N.range&&!W(A)?W(C):void 0,"aria-labelledby":N.range&&W(A)?(G=W(s))==null?void 0:G.labelId:void 0,onTouchstart:q[2]||(q[2]=(...le)=>W(w)&&W(w)(...le)),onTouchmove:q[3]||(q[3]=(...le)=>W(w)&&W(w)(...le))},[at("div",{ref_key:"slider",ref:l,class:De([W(i).e("runway"),{"show-input":N.showInput&&!N.range},W(i).is("disabled",W(d))]),style:En(W(g)),onMousedown:q[0]||(q[0]=(...le)=>W(T)&&W(T)(...le)),onTouchstart:q[1]||(q[1]=(...le)=>W(T)&&W(T)(...le))},[at("div",{class:De(W(i).e("bar")),style:En(W(b))},null,6),xe(die,{id:N.range?void 0:W(_),ref_key:"firstButton",ref:u,"model-value":W(K),vertical:N.vertical,"tooltip-class":N.tooltipClass,placement:N.placement,role:"slider","aria-label":N.range||!W(A)?W(x):void 0,"aria-labelledby":!N.range&&W(A)?(ne=W(s))==null?void 0:ne.labelId:void 0,"aria-valuemin":N.min,"aria-valuemax":N.range?W(J):N.max,"aria-valuenow":W(K),"aria-valuetext":W(P),"aria-orientation":N.vertical?"vertical":"horizontal","aria-disabled":W(d),"onUpdate:modelValue":W(S)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),N.range?(Ce(),mt(die,{key:0,ref_key:"secondButton",ref:c,"model-value":W(J),vertical:N.vertical,"tooltip-class":N.tooltipClass,placement:N.placement,role:"slider","aria-label":W($),"aria-valuemin":W(K),"aria-valuemax":N.max,"aria-valuenow":W(J),"aria-valuetext":W(L),"aria-orientation":N.vertical?"vertical":"horizontal","aria-disabled":W(d),"onUpdate:modelValue":W(I)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):xt("v-if",!0),N.showStops?(Ce(),We("div",ptt,[(Ce(!0),We(un,null,xr(W(O),(le,oe)=>(Ce(),We("div",{key:oe,class:De(W(i).e("stop")),style:En(W(y)(le))},null,6))),128))])):xt("v-if",!0),W(H).length>0?(Ce(),We(un,{key:2},[at("div",null,[(Ce(!0),We(un,null,xr(W(H),(le,oe)=>(Ce(),We("div",{key:oe,style:En(W(y)(le.position)),class:De([W(i).e("stop"),W(i).e("marks-stop")])},null,6))),128))]),at("div",{class:De(W(i).e("marks"))},[(Ce(!0),We(un,null,xr(W(H),(le,oe)=>(Ce(),mt(W(dtt),{key:oe,mark:le.mark,style:En(W(y)(le.position))},null,8,["mark","style"]))),128))],2)],64)):xt("v-if",!0)],38),N.showInput&&!N.range?(Ce(),mt(W(mOe),{key:0,ref:"input","model-value":W(K),class:De(W(i).e("input")),step:N.step,disabled:W(d),controls:N.showInputControls,min:N.min,max:N.max,debounce:N.debounce,size:W(D),"onUpdate:modelValue":W(S),onChange:W(m)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):xt("v-if",!0)],42,htt)}}});var mtt=Bn(gtt,[["__file","slider.vue"]]);const vtt=Xi(mtt),ytt=Tn({prefixCls:{type:String}}),hie=ft({name:"ElSpaceItem",props:ytt,setup(e,{slots:t}){const n=cn("space"),r=Oe(()=>`${e.prefixCls||n.b()}__item`);return()=>Yn("div",{class:r.value},rn(t,"default"))}}),pie={small:8,default:12,large:16};function btt(e){const t=cn("space"),n=Oe(()=>[t.b(),t.m(e.direction),e.class]),r=Re(0),i=Re(0),o=Oe(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${i.value}px`}:{},l={alignItems:e.alignment};return[s,l,e.style]}),a=Oe(()=>{const s={paddingBottom:`${i.value}px`,marginRight:`${r.value}px`},l=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[s,l]});return Uc(()=>{const{size:s="small",wrap:l,direction:u,fill:c}=e;if(Tr(s)){const[d=0,h=0]=s;r.value=d,i.value=h}else{let d;$r(s)?d=s:d=pie[s||"small"]||pie.small,(l||c)&&u==="horizontal"?r.value=i.value=d:u==="horizontal"?(r.value=d,i.value=0):(i.value=d,r.value=0)}}),{classes:n,containerStyle:o,itemStyle:a}}const wtt=Tn({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:jt([String,Object,Array]),default:""},style:{type:jt([String,Array,Object]),default:""},alignment:{type:jt(String),default:"center"},prefixCls:{type:String},spacer:{type:jt([Object,String,Number,Array]),default:null,validator:e=>Ll(e)||$r(e)||vi(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Ex,validator:e=>$r(e)||Tr(e)&&e.length===2&&e.every($r)}}),Ctt=ft({name:"ElSpace",props:wtt,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:i}=btt(e);function o(a,s="",l=[]){const{prefixCls:u}=e;return a.forEach((c,d)=>{dW(c)?Tr(c.children)&&c.children.forEach((h,f)=>{dW(h)&&Tr(h.children)?o(h.children,`${s+f}-`,l):l.push(xe(hie,{style:i.value,prefixCls:u,key:`nested-${s+f}`},{default:()=>[h]},$c.PROPS|$c.STYLE,["style","prefixCls"]))}):mze(c)&&l.push(xe(hie,{style:i.value,prefixCls:u,key:`LoopKey${s+d}`},{default:()=>[c]},$c.PROPS|$c.STYLE,["style","prefixCls"]))}),l}return()=>{var a;const{spacer:s,direction:l}=e,u=rn(t,"default",{key:0},()=>[]);if(((a=u.children)!=null?a:[]).length===0)return null;if(Tr(u.children)){let c=o(u.children);if(s){const d=c.length-1;c=c.reduce((h,f,g)=>{const b=[...h,f];return g!==d&&b.push(xe("span",{style:[i.value,l==="vertical"?"width: 100%":null],key:g},[Ll(s)?s:gr(s,$c.TEXT)],$c.STYLE)),b},[])}return xe("div",{class:n.value,style:r.value},c,$c.STYLE|$c.CLASS)}return u.children}}}),$L=Xi(Ctt),Ott=Tn({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:Iwe},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:iu},activeActionIcon:{type:iu},activeIcon:{type:iu},inactiveIcon:{type:iu},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:jt(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1},label:{type:String,default:void 0}}),xtt={[ur]:e=>ol(e)||vi(e)||$r(e),[Ua]:e=>ol(e)||vi(e)||$r(e),[Pp]:e=>ol(e)||vi(e)||$r(e)},Stt=["onClick"],Att=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],Itt=["aria-hidden"],ktt=["aria-hidden"],Ett=["aria-hidden"],BW="ElSwitch",_tt=ft({name:BW}),Ttt=ft({..._tt,props:Ott,emits:xtt,setup(e,{expose:t,emit:n}){const r=e,i=dr(),{formItem:o}=bu(),a=js(),s=cn("switch");(O=>{O.forEach(y=>{l0({from:y[0],replacement:y[1],scope:BW,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},Oe(()=>{var _;return!!((_=i.vnode.props)!=null&&_[y[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:l}=D0(r,{formItemContext:o}),u=bd(Oe(()=>r.loading)),c=Re(r.modelValue!==!1),d=Re(),h=Re(),f=Oe(()=>[s.b(),s.m(a.value),s.is("disabled",u.value),s.is("checked",w.value)]),g=Oe(()=>[s.e("label"),s.em("label","left"),s.is("active",!w.value)]),b=Oe(()=>[s.e("label"),s.em("label","right"),s.is("active",w.value)]),v=Oe(()=>({width:ad(r.width)}));Pt(()=>r.modelValue,()=>{c.value=!0}),Pt(()=>r.value,()=>{c.value=!1});const m=Oe(()=>c.value?r.modelValue:r.value),w=Oe(()=>m.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(m.value)||(n(ur,r.inactiveValue),n(Ua,r.inactiveValue),n(Pp,r.inactiveValue)),Pt(w,O=>{var y;d.value.checked=O,r.validateEvent&&((y=o==null?void 0:o.validate)==null||y.call(o,"change").catch(_=>void 0))});const k=()=>{const O=w.value?r.inactiveValue:r.activeValue;n(ur,O),n(Ua,O),n(Pp,O),mn(()=>{d.value.checked=w.value})},T=()=>{if(u.value)return;const{beforeChange:O}=r;if(!O){k();return}const y=O();[nW(y),ol(y)].includes(!0)||hc(BW,"beforeChange must return type `Promise<boolean>` or `boolean`"),nW(y)?y.then(_=>{_&&k()}).catch(_=>{}):y&&k()},S=Oe(()=>s.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),I=()=>{var O,y;(y=(O=d.value)==null?void 0:O.focus)==null||y.call(O)};return _n(()=>{d.value.checked=w.value}),t({focus:I,checked:w}),(O,y)=>(Ce(),We("div",{class:De(W(f)),style:En(W(S)),onClick:rr(T,["prevent"])},[at("input",{id:W(l),ref_key:"input",ref:d,class:De(W(s).e("input")),type:"checkbox",role:"switch","aria-checked":W(w),"aria-disabled":W(u),"aria-label":O.label,name:O.name,"true-value":O.activeValue,"false-value":O.inactiveValue,disabled:W(u),tabindex:O.tabindex,onChange:k,onKeydown:Zi(T,["enter"])},null,42,Att),!O.inlinePrompt&&(O.inactiveIcon||O.inactiveText)?(Ce(),We("span",{key:0,class:De(W(g))},[O.inactiveIcon?(Ce(),mt(W(Ln),{key:0},{default:ot(()=>[(Ce(),mt(ei(O.inactiveIcon)))]),_:1})):xt("v-if",!0),!O.inactiveIcon&&O.inactiveText?(Ce(),We("span",{key:1,"aria-hidden":W(w)},en(O.inactiveText),9,Itt)):xt("v-if",!0)],2)):xt("v-if",!0),at("span",{ref_key:"core",ref:h,class:De(W(s).e("core")),style:En(W(v))},[O.inlinePrompt?(Ce(),We("div",{key:0,class:De(W(s).e("inner"))},[O.activeIcon||O.inactiveIcon?(Ce(),mt(W(Ln),{key:0,class:De(W(s).is("icon"))},{default:ot(()=>[(Ce(),mt(ei(W(w)?O.activeIcon:O.inactiveIcon)))]),_:1},8,["class"])):O.activeText||O.inactiveText?(Ce(),We("span",{key:1,class:De(W(s).is("text")),"aria-hidden":!W(w)},en(W(w)?O.activeText:O.inactiveText),11,ktt)):xt("v-if",!0)],2)):xt("v-if",!0),at("div",{class:De(W(s).e("action"))},[O.loading?(Ce(),mt(W(Ln),{key:0,class:De(W(s).is("loading"))},{default:ot(()=>[xe(W(kx))]),_:1},8,["class"])):W(w)?rn(O.$slots,"active-action",{key:1},()=>[O.activeActionIcon?(Ce(),mt(W(Ln),{key:0},{default:ot(()=>[(Ce(),mt(ei(O.activeActionIcon)))]),_:1})):xt("v-if",!0)]):W(w)?xt("v-if",!0):rn(O.$slots,"inactive-action",{key:2},()=>[O.inactiveActionIcon?(Ce(),mt(W(Ln),{key:0},{default:ot(()=>[(Ce(),mt(ei(O.inactiveActionIcon)))]),_:1})):xt("v-if",!0)])],2)],6),!O.inlinePrompt&&(O.activeIcon||O.activeText)?(Ce(),We("span",{key:1,class:De(W(b))},[O.activeIcon?(Ce(),mt(W(Ln),{key:0},{default:ot(()=>[(Ce(),mt(ei(O.activeIcon)))]),_:1})):xt("v-if",!0),!O.activeIcon&&O.activeText?(Ce(),We("span",{key:1,"aria-hidden":!W(w)},en(O.activeText),9,Ett)):xt("v-if",!0)],2)):xt("v-if",!0)],14,Stt))}});var Ptt=Bn(Ttt,[["__file","switch.vue"]]);const Dtt=Xi(Ptt);/*!
|
|
* escape-html
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
* MIT Licensed
|
|
*/var Rtt=/["'&<>]/,$tt=Mtt;function Mtt(e){var t=""+e,n=Rtt.exec(t);if(!n)return t;var r,i="",o=0,a=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}a!==o&&(i+=t.substring(a,o)),a=o+1,i+=r}return a!==o?i+t.substring(a,o):i}const Ltt=pl($tt),qF=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Btt=function(e,t,n,r,i){if(!t&&!r&&(!i||Array.isArray(i)&&!i.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const o=r?null:function(s,l){return i?(Array.isArray(i)||(i=[i]),i.map(u=>typeof u=="string"?Ys(s,u):u(s,l,e))):(t!=="$key"&&Ha(s)&&"$value"in s&&(s=s.$value),[Ha(s)?Ys(s,t):s])},a=function(s,l){if(r)return r(s.value,l.value);for(let u=0,c=s.key.length;u<c;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.key[u])return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:o?o(s,l):null})).sort((s,l)=>{let u=a(s,l);return u||(u=s.index-l.index),u*+n}).map(s=>s.value)},wOe=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},Ftt=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const i=e.columns[r];if(i.columnKey===t){n=i;break}}return n||hc("ElTable",`No column matching with column-key: ${t}`),n},fie=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?wOe(e,r[0]):null},Bs=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const i of n)r=r[i];return`${r}`}else if(typeof t=="function")return t.call(null,e)},sb=function(e,t){const n={};return(e||[]).forEach((r,i)=>{n[Bs(r,t)]={row:r,index:i}}),n};function Ntt(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(vg(t,r)){const i=t[r];typeof i<"u"&&(n[r]=i)}return n}function lX(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function COe(e){return e===""||e!==void 0&&(e=lX(e),Number.isNaN(e)&&(e=80)),e}function Vtt(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function jtt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Pk(e,t,n){let r=!1;const i=e.indexOf(t),o=i!==-1,a=s=>{s==="add"?e.push(t):e.splice(i,1),r=!0,Tr(t.children)&&t.children.forEach(l=>{Pk(e,l,n??!o)})};return ol(n)?n&&!o?a("add"):!n&&o&&a("remove"):a(o?"remove":"add"),r}function Wtt(e,t,n="children",r="hasChildren"){const i=a=>!(Array.isArray(a)&&a.length);function o(a,s,l){t(a,s,l),s.forEach(u=>{if(u[r]){t(u,null,l+1);return}const c=u[n];i(c)||o(u,c,l+1)})}e.forEach(a=>{if(a[r]){t(a,null,0);return}const s=a[n];i(s)||o(a,s,0)})}let Nd;function Htt(e,t,n,r,i){i=gwe({enterable:!0,showArrow:!0},i);const o=e==null?void 0:e.dataset.prefix,a=e==null?void 0:e.querySelector(`.${o}-scrollbar__wrap`);function s(){const w=i.effect==="light",k=document.createElement("div");return k.className=[`${o}-popper`,w?"is-light":"is-dark",i.popperClass||""].join(" "),n=Ltt(n),k.innerHTML=n,k.style.zIndex=String(r()),e==null||e.appendChild(k),k}function l(){const w=document.createElement("div");return w.className=`${o}-popper__arrow`,w}function u(w){return{name:"updateState",enabled:!0,phase:"beforeWrite",fn:({state:k})=>{k.styles.popper.display=w},requires:["computeStyles"]}}function c(){i.showAfter&&(h==null||h.setOptions({modifiers:[u("block")]})),h==null||h.update()}const d=(Nd==null?void 0:Nd.trigger)!==t;Nd==null||Nd(),Nd=()=>{try{h&&h.destroy(),b&&(e==null||e.removeChild(b)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",g),a==null||a.removeEventListener("scroll",Nd),Nd=void 0}catch{}},Nd.trigger=t;let h=null;const{onOpen:f,onClose:g}=Qwe({showAfter:i.showAfter,hideAfter:i.hideAfter,open:c,close:Nd}),b=s();i.enterable&&(b.onmouseenter=f,b.onmouseleave=g);const v=[];if(i.offset&&v.push({name:"offset",options:{offset:[0,i.offset]}}),i.showArrow){const w=b.appendChild(l());v.push({name:"arrow",options:{element:w,padding:10}})}i.showAfter&&d&&v.push(u("none"));const m=i.popperOptions||{};return h=Hwe(t,b,{placement:i.placement||"top",strategy:"fixed",...m,modifiers:m.modifiers?v.concat(m.modifiers):v}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",g),a==null||a.addEventListener("scroll",Nd),f(),h}function OOe(e){return e.children?dHe(e.children,OOe):[e]}function gie(e,t){return e+t.colSpan}const xOe=(e,t,n,r)=>{let i=0,o=e;const a=n.states.columns.value;if(r){const l=OOe(r[e]);i=a.slice(0,a.indexOf(l[0])).reduce(gie,0),o=i+l.reduce(gie,0)-1}else i=e;let s;switch(t){case"left":o<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":i>=a.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:o<n.states.fixedLeafColumnsLength.value?s="left":i>=a.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:i,after:o}:{}},uX=(e,t,n,r,i,o=0)=>{const a=[],{direction:s,start:l,after:u}=xOe(t,n,r,i);if(s){const c=s==="left";a.push(`${e}-fixed-column--${s}`),c&&u+o===r.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):!c&&l-o===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&a.push("is-first-column")}return a};function mie(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const cX=(e,t,n,r)=>{const{direction:i,start:o=0,after:a=0}=xOe(e,t,n,r);if(!i)return;const s={},l=i==="left",u=n.states.columns.value;return l?s.left=u.slice(0,o).reduce(mie,0):s.right=u.slice(a+1).reverse().reduce(mie,0),s},_O=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function ztt(e){const t=dr(),n=Re(!1),r=Re([]);return{updateExpandRows:()=>{const i=e.data.value||[],o=e.rowKey.value;if(n.value)r.value=i.slice();else if(o){const a=sb(r.value,o);r.value=i.reduce((s,l)=>{const u=Bs(l,o);return a[u]&&s.push(l),s},[])}else r.value=[]},toggleRowExpansion:(i,o)=>{Pk(r.value,i,o)&&t.emit("expand-change",i,r.value.slice())},setExpandRowKeys:i=>{t.store.assertRowKey();const o=e.data.value||[],a=e.rowKey.value,s=sb(o,a);r.value=i.reduce((l,u)=>{const c=s[u];return c&&l.push(c.row),l},[])},isRowExpanded:i=>{const o=e.rowKey.value;return o?!!sb(r.value,o)[Bs(i,o)]:r.value.includes(i)},states:{expandRows:r,defaultExpandAll:n}}}function Ztt(e){const t=dr(),n=Re(null),r=Re(null),i=s=>{t.store.assertRowKey(),n.value=s,a(s)},o=()=>{n.value=null},a=s=>{const{data:l,rowKey:u}=e;let c=null;u.value&&(c=(W(l)||[]).find(d=>Bs(d,u.value)===s)),r.value=c,t.emit("current-change",r.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:o,setCurrentRowByKey:a,updateCurrentRow:s=>{const l=r.value;if(s&&s!==l){r.value=s,t.emit("current-change",r.value,l);return}!s&&l&&(r.value=null,t.emit("current-change",null,l))},updateCurrentRowData:()=>{const s=e.rowKey.value,l=e.data.value||[],u=r.value;if(!l.includes(u)&&u){if(s){const c=Bs(u,s);a(c)}else r.value=null;r.value===null&&t.emit("current-change",null,u)}else n.value&&(a(n.value),o())},states:{_currentRowKey:n,currentRow:r}}}function Gtt(e){const t=Re([]),n=Re({}),r=Re(16),i=Re(!1),o=Re({}),a=Re("hasChildren"),s=Re("children"),l=dr(),u=Oe(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return d(m)}),c=Oe(()=>{const m=e.rowKey.value,w=Object.keys(o.value),k={};return w.length&&w.forEach(T=>{if(o.value[T].length){const S={children:[]};o.value[T].forEach(I=>{const O=Bs(I,m);S.children.push(O),I[a.value]&&!k[O]&&(k[O]={children:[]})}),k[T]=S}}),k}),d=m=>{const w=e.rowKey.value,k={};return Wtt(m,(T,S,I)=>{const O=Bs(T,w);Array.isArray(S)?k[O]={children:S.map(y=>Bs(y,w)),level:I}:i.value&&(k[O]={children:[],lazy:!0,level:I})},s.value,a.value),k},h=(m=!1,w=(k=>(k=l.store)==null?void 0:k.states.defaultExpandAll.value)())=>{var k;const T=u.value,S=c.value,I=Object.keys(T),O={};if(I.length){const y=W(n),_=[],A=(D,C)=>{if(m)return t.value?w||t.value.includes(C):!!(w||D!=null&&D.expanded);{const x=w||t.value&&t.value.includes(C);return!!(D!=null&&D.expanded||x)}};I.forEach(D=>{const C=y[D],x={...T[D]};if(x.expanded=A(C,D),x.lazy){const{loaded:P=!1,loading:$=!1}=C||{};x.loaded=!!P,x.loading=!!$,_.push(D)}O[D]=x});const R=Object.keys(S);i.value&&R.length&&_.length&&R.forEach(D=>{const C=y[D],x=S[D].children;if(_.includes(D)){if(O[D].children.length!==0)throw new Error("[ElTable]children must be an empty array.");O[D].children=x}else{const{loaded:P=!1,loading:$=!1}=C||{};O[D]={lazy:!0,loaded:!!P,loading:!!$,expanded:A(C,D),children:x,level:""}}})}n.value=O,(k=l.store)==null||k.updateTableScrollY()};Pt(()=>t.value,()=>{h(!0)}),Pt(()=>u.value,()=>{h()}),Pt(()=>c.value,()=>{h()});const f=m=>{t.value=m,h()},g=(m,w)=>{l.store.assertRowKey();const k=e.rowKey.value,T=Bs(m,k),S=T&&n.value[T];if(T&&S&&"expanded"in S){const I=S.expanded;w=typeof w>"u"?!S.expanded:w,n.value[T].expanded=w,I!==w&&l.emit("expand-change",m,w),l.store.updateTableScrollY()}},b=m=>{l.store.assertRowKey();const w=e.rowKey.value,k=Bs(m,w),T=n.value[k];i.value&&T&&"loaded"in T&&!T.loaded?v(m,k,T):g(m,void 0)},v=(m,w,k)=>{const{load:T}=l.props;T&&!n.value[w].loaded&&(n.value[w].loading=!0,T(m,k,S=>{if(!Array.isArray(S))throw new TypeError("[ElTable] data must be an array");n.value[w].loading=!1,n.value[w].loaded=!0,n.value[w].expanded=!0,S.length&&(o.value[w]=S),l.emit("expand-change",m,!0)}))};return{loadData:v,loadOrToggle:b,toggleTreeExpansion:g,updateTreeExpandKeys:f,updateTreeData:h,normalize:d,states:{expandRowKeys:t,treeData:n,indent:r,lazy:i,lazyTreeNodeMap:o,lazyColumnIdentifier:a,childrenColumnName:s}}}const Qtt=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:Btt(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},I3=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,I3(n.children)):t.push(n)}),t};function Utt(){var e;const t=dr(),{size:n}=rc((e=t.proxy)==null?void 0:e.$props),r=Re(null),i=Re([]),o=Re([]),a=Re(!1),s=Re([]),l=Re([]),u=Re([]),c=Re([]),d=Re([]),h=Re([]),f=Re([]),g=Re([]),b=[],v=Re(0),m=Re(0),w=Re(0),k=Re(!1),T=Re([]),S=Re(!1),I=Re(!1),O=Re(null),y=Re({}),_=Re(null),A=Re(null),R=Re(null),D=Re(null),C=Re(null);Pt(i,()=>t.state&&L(!1),{deep:!0});const x=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},P=Qe=>{var nt;(nt=Qe.children)==null||nt.forEach(st=>{st.fixed=Qe.fixed,P(st)})},$=()=>{s.value.forEach(Me=>{P(Me)}),c.value=s.value.filter(Me=>Me.fixed===!0||Me.fixed==="left"),d.value=s.value.filter(Me=>Me.fixed==="right"),c.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,c.value.unshift(s.value[0]));const Qe=s.value.filter(Me=>!Me.fixed);l.value=[].concat(c.value).concat(Qe).concat(d.value);const nt=I3(Qe),st=I3(c.value),Le=I3(d.value);v.value=nt.length,m.value=st.length,w.value=Le.length,u.value=[].concat(st).concat(nt).concat(Le),a.value=c.value.length>0||d.value.length>0},L=(Qe,nt=!1)=>{Qe&&$(),nt?t.state.doLayout():t.state.debouncedUpdateLayout()},V=Qe=>T.value.includes(Qe),H=()=>{k.value=!1,T.value.length&&(T.value=[],t.emit("selection-change",[]))},Q=()=>{let Qe;if(r.value){Qe=[];const nt=sb(T.value,r.value),st=sb(i.value,r.value);for(const Le in nt)vg(nt,Le)&&!st[Le]&&Qe.push(nt[Le].row)}else Qe=T.value.filter(nt=>!i.value.includes(nt));if(Qe.length){const nt=T.value.filter(st=>!Qe.includes(st));T.value=nt,t.emit("selection-change",nt.slice())}},U=()=>(T.value||[]).slice(),K=(Qe,nt=void 0,st=!0)=>{if(Pk(T.value,Qe,nt)){const Le=(T.value||[]).slice();st&&t.emit("select",Le,Qe),t.emit("selection-change",Le)}},J=()=>{var Qe,nt;const st=I.value?!k.value:!(k.value||T.value.length);k.value=st;let Le=!1,Me=0;const je=(nt=(Qe=t==null?void 0:t.store)==null?void 0:Qe.states)==null?void 0:nt.rowKey.value;i.value.forEach((Ue,Te)=>{const bt=Te+Me;O.value?O.value.call(null,Ue,bt)&&Pk(T.value,Ue,st)&&(Le=!0):Pk(T.value,Ue,st)&&(Le=!0),Me+=N(Bs(Ue,je))}),Le&&t.emit("selection-change",T.value?T.value.slice():[]),t.emit("select-all",T.value)},ue=()=>{const Qe=sb(T.value,r.value);i.value.forEach(nt=>{const st=Bs(nt,r.value),Le=Qe[st];Le&&(T.value[Le.index]=nt)})},ee=()=>{var Qe,nt,st;if(((Qe=i.value)==null?void 0:Qe.length)===0){k.value=!1;return}let Le;r.value&&(Le=sb(T.value,r.value));const Me=function(bt){return Le?!!Le[Bs(bt,r.value)]:T.value.includes(bt)};let je=!0,Ue=0,Te=0;for(let bt=0,At=(i.value||[]).length;bt<At;bt++){const ht=(st=(nt=t==null?void 0:t.store)==null?void 0:nt.states)==null?void 0:st.rowKey.value,Pe=bt+Te,Ze=i.value[bt],dt=O.value&&O.value.call(null,Ze,Pe);if(Me(Ze))Ue++;else if(!O.value||dt){je=!1;break}Te+=N(Bs(Ze,ht))}Ue===0&&(je=!1),k.value=je},N=Qe=>{var nt;if(!t||!t.store)return 0;const{treeData:st}=t.store.states;let Le=0;const Me=(nt=st.value[Qe])==null?void 0:nt.children;return Me&&(Le+=Me.length,Me.forEach(je=>{Le+=N(je)})),Le},q=(Qe,nt)=>{Array.isArray(Qe)||(Qe=[Qe]);const st={};return Qe.forEach(Le=>{y.value[Le.id]=nt,st[Le.columnKey||Le.id]=nt}),st},G=(Qe,nt,st)=>{A.value&&A.value!==Qe&&(A.value.order=null),A.value=Qe,R.value=nt,D.value=st},ne=()=>{let Qe=W(o);Object.keys(y.value).forEach(nt=>{const st=y.value[nt];if(!st||st.length===0)return;const Le=wOe({columns:u.value},nt);Le&&Le.filterMethod&&(Qe=Qe.filter(Me=>st.some(je=>Le.filterMethod.call(null,je,Me,Le))))}),_.value=Qe},le=()=>{i.value=Qtt(_.value,{sortingColumn:A.value,sortProp:R.value,sortOrder:D.value})},oe=(Qe=void 0)=>{Qe&&Qe.filter||ne(),le()},ve=Qe=>{const{tableHeaderRef:nt}=t.refs;if(!nt)return;const st=Object.assign({},nt.filterPanels),Le=Object.keys(st);if(Le.length)if(typeof Qe=="string"&&(Qe=[Qe]),Array.isArray(Qe)){const Me=Qe.map(je=>Ftt({columns:u.value},je));Le.forEach(je=>{const Ue=Me.find(Te=>Te.id===je);Ue&&(Ue.filteredValue=[])}),t.store.commit("filterChange",{column:Me,values:[],silent:!0,multi:!0})}else Le.forEach(Me=>{const je=u.value.find(Ue=>Ue.id===Me);je&&(je.filteredValue=[])}),y.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},de=()=>{A.value&&(G(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ae,toggleRowExpansion:be,updateExpandRows:ie,states:ce,isRowExpanded:pe}=ztt({data:i,rowKey:r}),{updateTreeExpandKeys:X,toggleTreeExpansion:Z,updateTreeData:Y,loadOrToggle:se,states:fe}=Gtt({data:i,rowKey:r}),{updateCurrentRowData:me,updateCurrentRow:Ae,setCurrentRowKey:Be,states:Ye}=Ztt({data:i,rowKey:r});return{assertRowKey:x,updateColumns:$,scheduleLayout:L,isSelected:V,clearSelection:H,cleanSelection:Q,getSelectionRows:U,toggleRowSelection:K,_toggleAllSelection:J,toggleAllSelection:null,updateSelectionByRowKey:ue,updateAllSelected:ee,updateFilters:q,updateCurrentRow:Ae,updateSort:G,execFilter:ne,execSort:le,execQuery:oe,clearFilter:ve,clearSort:de,toggleRowExpansion:be,setExpandRowKeysAdapter:Qe=>{ae(Qe),X(Qe)},setCurrentRowKey:Be,toggleRowExpansionAdapter:(Qe,nt)=>{u.value.some(({type:st})=>st==="expand")?be(Qe,nt):Z(Qe,nt)},isRowExpanded:pe,updateExpandRows:ie,updateCurrentRowData:me,loadOrToggle:se,updateTreeData:Y,states:{tableSize:n,rowKey:r,data:i,_data:o,isComplex:a,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:d,leafColumns:h,fixedLeafColumns:f,rightFixedLeafColumns:g,updateOrderFns:b,leafColumnsLength:v,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:w,isAllSelected:k,selection:T,reserveSelection:S,selectOnIndeterminate:I,selectable:O,filters:y,filteredData:_,sortingColumn:A,sortProp:R,sortOrder:D,hoverRow:C,...ce,...fe,...Ye}}}function FW(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=FW(n.children,t)),n)})}function NW(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&NW(t.children)}),e.sort((t,n)=>t.no-n.no)}function Xtt(){const e=dr(),t=Utt();return{ns:cn("table"),...t,mutations:{setData(n,r){const i=W(n._data)!==r;n.data.value=r,n._data.value=r,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),W(n.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):i?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(n,r,i,o){const a=W(n._columns);let s=[];i?(i&&!i.children&&(i.children=[]),i.children.push(r),s=FW(a,i)):(a.push(r),s=a),NW(s),n._columns.value=s,n.updateOrderFns.push(o),r.type==="selection"&&(n.selectable.value=r.selectable,n.reserveSelection.value=r.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(n,r){var i;((i=r.getColumnIndex)==null?void 0:i.call(r))!==r.no&&(NW(n._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(n,r,i,o){const a=W(n._columns)||[];if(i)i.children.splice(i.children.findIndex(l=>l.id===r.id),1),mn(()=>{var l;((l=i.children)==null?void 0:l.length)===0&&delete i.children}),n._columns.value=FW(a,i);else{const l=a.indexOf(r);l>-1&&(a.splice(l,1),n._columns.value=a)}const s=n.updateOrderFns.indexOf(o);s>-1&&n.updateOrderFns.splice(s,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(n,r){const{prop:i,order:o,init:a}=r;if(i){const s=W(n.columns).find(l=>l.property===i);s&&(s.order=o,e.store.updateSort(s,i,o),e.store.commit("changeSortCondition",{init:a}))}},changeSortCondition(n,r){const{sortingColumn:i,sortProp:o,sortOrder:a}=n,s=W(i),l=W(o),u=W(a);u===null&&(n.sortingColumn.value=null,n.sortProp.value=null);const c={filter:!0};e.store.execQuery(c),(!r||!(r.silent||r.init))&&e.emit("sort-change",{column:s,prop:l,order:u}),e.store.updateTableScrollY()},filterChange(n,r){const{column:i,values:o,silent:a}=r,s=e.store.updateFilters(i,o);e.store.execQuery(),a||e.emit("filter-change",s),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(n,r){e.store.toggleRowSelection(r),e.store.updateAllSelected()},setHoverRow(n,r){n.hoverRow.value=r},setCurrentRow(n,r){e.store.updateCurrentRow(r)}},commit:function(n,...r){const i=e.store.mutations;if(i[n])i[n].apply(e,[e.store.states].concat(r));else throw new Error(`Action not found: ${n}`)},updateTableScrollY:function(){mn(()=>e.layout.updateScrollY.apply(e.layout))}}}const Dk={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"}};function Ytt(e,t){if(!e)throw new Error("Table is required.");const n=Xtt();return n.toggleAllSelection=ch(n._toggleAllSelection,10),Object.keys(Dk).forEach(r=>{SOe(AOe(t,r),r,n)}),Ktt(n,t),n}function Ktt(e,t){Object.keys(Dk).forEach(n=>{Pt(()=>AOe(t,n),r=>{SOe(r,n,e)})})}function SOe(e,t,n){let r=e,i=Dk[t];typeof Dk[t]=="object"&&(i=i.key,r=r||Dk[t].default),n.states[i].value=r}function AOe(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(i=>{r=r[i]}),r}else return e[t]}class qtt{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=Re(null),this.scrollX=Re(!1),this.scrollY=Re(!1),this.bodyWidth=Re(null),this.fixedWidth=Re(null),this.rightFixedWidth=Re(null),this.gutterWidth=0;for(const n in t)vg(t,n)&&(ni(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const t=this.table.refs.scrollBarRef;if(this.table.vnode.el&&t!=null&&t.wrapRef){let n=!0;const r=this.scrollY.value;return n=t.wrapRef.scrollHeight>t.wrapRef.clientHeight,this.scrollY.value=n,r!==n}return!1}setHeight(t,n="height"){if(!Ii)return;const r=this.table.vnode.el;if(t=Vtt(t),this.height.value=Number(t),!r&&(t||t===0))return mn(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(n=>{n.isColumnGroup?t.push.apply(t,n.columns):t.push(n)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!Ii)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const i=this.getFlattenColumns(),o=i.filter(l=>typeof l.width!="number");if(i.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),o.length>0&&t){if(i.forEach(l=>{r+=Number(l.width||l.minWidth||80)}),r<=n){this.scrollX.value=!1;const l=n-r;if(o.length===1)o[0].realWidth=Number(o[0].minWidth||80)+l;else{const u=o.reduce((h,f)=>h+Number(f.minWidth||80),0),c=l/u;let d=0;o.forEach((h,f)=>{if(f===0)return;const g=Math.floor(Number(h.minWidth||80)*c);d+=g,h.realWidth=Number(h.minWidth||80)+g}),o[0].realWidth=Number(o[0].minWidth||80)+l-d}}else this.scrollX.value=!0,o.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),r+=l.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const a=this.store.states.fixedColumns.value;if(a.length>0){let l=0;a.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(n=>{var r,i;switch(t){case"columns":(r=n.state)==null||r.onColumnsChange(this);break;case"scrollable":(i=n.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:Jtt}=jp,ent=ft({name:"ElTableFilterPanel",components:{ElCheckbox:jp,ElCheckboxGroup:Jtt,ElScrollbar:Tx,ElTooltip:wg,ElIcon:Ln,ArrowDown:Ax,ArrowUp:FU},directives:{ClickOutside:Yb},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=dr(),{t:n}=uo(),r=cn("table-filter"),i=t==null?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const o=Re(!1),a=Re(null),s=Oe(()=>e.column&&e.column.filters),l=Oe({get:()=>{var T;return(((T=e.column)==null?void 0:T.filteredValue)||[])[0]},set:T=>{u.value&&(typeof T<"u"&&T!==null?u.value.splice(0,1,T):u.value.splice(0,1))}}),u=Oe({get(){return e.column?e.column.filteredValue||[]:[]},set(T){e.column&&e.upDataColumn("filteredValue",T)}}),c=Oe(()=>e.column?e.column.filterMultiple:!0),d=T=>T.value===l.value,h=()=>{o.value=!1},f=T=>{T.stopPropagation(),o.value=!o.value},g=()=>{o.value=!1},b=()=>{w(u.value),h()},v=()=>{u.value=[],w(u.value),h()},m=T=>{l.value=T,w(typeof T<"u"&&T!==null?u.value:[]),h()},w=T=>{e.store.commit("filterChange",{column:e.column,values:T}),e.store.updateAllSelected()};Pt(o,T=>{e.column&&e.upDataColumn("filterOpened",T)},{immediate:!0});const k=Oe(()=>{var T,S;return(S=(T=a.value)==null?void 0:T.popperRef)==null?void 0:S.contentRef});return{tooltipVisible:o,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:b,handleReset:v,handleSelect:m,isActive:d,t:n,ns:r,showFilterPanel:f,hideFilterPanel:g,popperPaneRef:k,tooltip:a}}}),tnt={key:0},nnt=["disabled"],rnt=["label","onClick"];function int(e,t,n,r,i,o){const a=Ar("el-checkbox"),s=Ar("el-checkbox-group"),l=Ar("el-scrollbar"),u=Ar("arrow-up"),c=Ar("arrow-down"),d=Ar("el-icon"),h=Ar("el-tooltip"),f=o0("click-outside");return Ce(),mt(h,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:ot(()=>[e.multiple?(Ce(),We("div",tnt,[at("div",{class:De(e.ns.e("content"))},[xe(l,{"wrap-class":e.ns.e("wrap")},{default:ot(()=>[xe(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=g=>e.filteredValue=g),class:De(e.ns.e("checkbox-group"))},{default:ot(()=>[(Ce(!0),We(un,null,xr(e.filters,g=>(Ce(),mt(a,{key:g.value,label:g.value},{default:ot(()=>[gr(en(g.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),at("div",{class:De(e.ns.e("bottom"))},[at("button",{class:De({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...g)=>e.handleConfirm&&e.handleConfirm(...g))},en(e.t("el.table.confirmFilter")),11,nnt),at("button",{type:"button",onClick:t[2]||(t[2]=(...g)=>e.handleReset&&e.handleReset(...g))},en(e.t("el.table.resetFilter")),1)],2)])):(Ce(),We("ul",{key:1,class:De(e.ns.e("list"))},[at("li",{class:De([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=g=>e.handleSelect(null))},en(e.t("el.table.clearFilter")),3),(Ce(!0),We(un,null,xr(e.filters,g=>(Ce(),We("li",{key:g.value,class:De([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),label:g.value,onClick:b=>e.handleSelect(g.value)},en(g.text),11,rnt))),128))],2))]),default:ot(()=>[Kn((Ce(),We("span",{class:De([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...g)=>e.showFilterPanel&&e.showFilterPanel(...g))},[xe(d,null,{default:ot(()=>[e.column.filterOpened?(Ce(),mt(u,{key:0})):(Ce(),mt(c,{key:1}))]),_:1})],2)),[[f,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var ont=Bn(ent,[["render",int],["__file","filter-panel.vue"]]);function IOe(e){const t=dr();Kp(()=>{n.value.addObserver(t)}),_n(()=>{r(n.value),i(n.value)}),C1(()=>{r(n.value),i(n.value)}),qp(()=>{n.value.removeObserver(t)});const n=Oe(()=>{const o=e.layout;if(!o)throw new Error("Can not find table layout.");return o}),r=o=>{var a;const s=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=o.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,d=s.length;c<d;c++){const h=s[c],f=h.getAttribute("name"),g=u[f];g&&h.setAttribute("width",g.realWidth||g.width)}},i=o=>{var a,s;const l=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,d=l.length;c<d;c++)l[c].setAttribute("width",o.scrollY.value?o.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let c=0,d=u.length;c<d;c++){const h=u[c];h.style.width=o.scrollY.value?`${o.gutterWidth}px`:"0",h.style.display=o.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:i}}const ef=Symbol("ElTable");function ant(e,t){const n=dr(),r=Ht(ef),i=b=>{b.stopPropagation()},o=(b,v)=>{!v.filters&&v.sortable?g(b,v,!1):v.filterable&&!v.sortable&&i(b),r==null||r.emit("header-click",v,b)},a=(b,v)=>{r==null||r.emit("header-contextmenu",v,b)},s=Re(null),l=Re(!1),u=Re({}),c=(b,v)=>{if(Ii&&!(v.children&&v.children.length>0)&&s.value&&e.border){l.value=!0;const m=r;t("set-drag-visible",!0);const w=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,k=n.vnode.el.querySelector(`th.${v.id}`),T=k.getBoundingClientRect(),S=T.left-w+30;j2(k,"noclick"),u.value={startMouseLeft:b.clientX,startLeft:T.right-w,startColumnLeft:T.left-w,tableLeft:w};const I=m==null?void 0:m.refs.resizeProxy;I.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const O=_=>{const A=_.clientX-u.value.startMouseLeft,R=u.value.startLeft+A;I.style.left=`${Math.max(S,R)}px`},y=()=>{if(l.value){const{startColumnLeft:_,startLeft:A}=u.value,R=Number.parseInt(I.style.left,10)-_;v.width=v.realWidth=R,m==null||m.emit("header-dragend",v.width,A-_,v,b),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",y),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{s0(k,"noclick")},0)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",y)}},d=(b,v)=>{if(v.children&&v.children.length>0)return;const m=b.target;if(!Xb(m))return;const w=m==null?void 0:m.closest("th");if(!(!v||!v.resizable)&&!l.value&&e.border){const k=w.getBoundingClientRect(),T=document.body.style;k.width>12&&k.right-b.pageX<8?(T.cursor="col-resize",_p(w,"is-sortable")&&(w.style.cursor="col-resize"),s.value=v):l.value||(T.cursor="",_p(w,"is-sortable")&&(w.style.cursor="pointer"),s.value=null)}},h=()=>{Ii&&(document.body.style.cursor="")},f=({order:b,sortOrders:v})=>{if(b==="")return v[0];const m=v.indexOf(b||null);return v[m>v.length-2?0:m+1]},g=(b,v,m)=>{var w;b.stopPropagation();const k=v.order===m?null:m||f(v),T=(w=b.target)==null?void 0:w.closest("th");if(T&&_p(T,"noclick")){s0(T,"noclick");return}if(!v.sortable)return;const S=e.store.states;let I=S.sortProp.value,O;const y=S.sortingColumn.value;(y!==v||y===v&&y.order===null)&&(y&&(y.order=null),S.sortingColumn.value=v,I=v.property),k?O=v.order=k:O=v.order=null,S.sortProp.value=I,S.sortOrder.value=O,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:o,handleHeaderContextMenu:a,handleMouseDown:c,handleMouseMove:d,handleMouseOut:h,handleSortClick:g,handleFilterClick:i}}function snt(e){const t=Ht(ef),n=cn("table");return{getHeaderRowStyle:r=>{const i=t==null?void 0:t.props.headerRowStyle;return typeof i=="function"?i.call(null,{rowIndex:r}):i},getHeaderRowClass:r=>{const i=[],o=t==null?void 0:t.props.headerRowClassName;return typeof o=="string"?i.push(o):typeof o=="function"&&i.push(o.call(null,{rowIndex:r})),i.join(" ")},getHeaderCellStyle:(r,i,o,a)=>{var s;let l=(s=t==null?void 0:t.props.headerCellStyle)!=null?s:{};typeof l=="function"&&(l=l.call(null,{rowIndex:r,columnIndex:i,row:o,column:a}));const u=cX(i,a.fixed,e.store,o);return _O(u,"left"),_O(u,"right"),Object.assign({},l,u)},getHeaderCellClass:(r,i,o,a)=>{const s=uX(n.b(),i,a.fixed,e.store,o),l=[a.id,a.order,a.headerAlign,a.className,a.labelClassName,...s];a.children||l.push("is-leaf"),a.sortable&&l.push("is-sortable");const u=t==null?void 0:t.props.headerCellClassName;return typeof u=="string"?l.push(u):typeof u=="function"&&l.push(u.call(null,{rowIndex:r,columnIndex:i,row:o,column:a})),l.push(n.e("cell")),l.filter(c=>!!c).join(" ")}}}const kOe=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,kOe(n.children))):t.push(n)}),t},lnt=e=>{let t=1;const n=(i,o)=>{if(o&&(i.level=o.level+1,t<i.level&&(t=i.level)),i.children){let a=0;i.children.forEach(s=>{n(s,i),a+=s.colSpan}),i.colSpan=a}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const r=[];for(let i=0;i<t;i++)r.push([]);return kOe(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(o=>o.isSubColumn=!0)):i.rowSpan=t-i.level+1,r[i.level-1].push(i)}),r};function unt(e){const t=Ht(ef),n=Oe(()=>lnt(e.store.states.originColumns.value));return{isGroup:Oe(()=>{const r=n.value.length>1;return r&&t&&(t.state.isGroup.value=!0),r}),toggleAllSelection:r=>{r.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var cnt=ft({name:"ElTableHeader",components:{ElCheckbox:jp},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=dr(),r=Ht(ef),i=cn("table"),o=Re({}),{onColumnsChange:a,onScrollableChange:s}=IOe(r);_n(async()=>{await mn(),await mn();const{prop:I,order:O}=e.defaultSort;r==null||r.store.commit("sort",{prop:I,order:O,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:d,handleMouseOut:h,handleSortClick:f,handleFilterClick:g}=ant(e,t),{getHeaderRowStyle:b,getHeaderRowClass:v,getHeaderCellStyle:m,getHeaderCellClass:w}=snt(e),{isGroup:k,toggleAllSelection:T,columnRows:S}=unt(e);return n.state={onColumnsChange:a,onScrollableChange:s},n.filterPanels=o,{ns:i,filterPanels:o,onColumnsChange:a,onScrollableChange:s,columnRows:S,getHeaderRowClass:v,getHeaderRowStyle:b,getHeaderCellClass:w,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:d,handleMouseOut:h,handleSortClick:f,handleFilterClick:g,isGroup:k,toggleAllSelection:T}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:i,getHeaderRowClass:o,getHeaderRowStyle:a,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:d,handleMouseOut:h,store:f,$parent:g}=this;let b=1;return Yn("thead",{class:{[e.is("group")]:t}},n.map((v,m)=>Yn("tr",{class:o(m),key:m,style:a(m)},v.map((w,k)=>(w.rowSpan>b&&(b=w.rowSpan),Yn("th",{class:i(m,k,v,w),colspan:w.colSpan,key:`${w.id}-thead`,rowspan:w.rowSpan,style:r(m,k,v,w),onClick:T=>s(T,w),onContextmenu:T=>l(T,w),onMousedown:T=>u(T,w),onMousemove:T=>c(T,w),onMouseout:h},[Yn("div",{class:["cell",w.filteredValue&&w.filteredValue.length>0?"highlight":""]},[w.renderHeader?w.renderHeader({column:w,$index:k,store:f,_self:g}):w.label,w.sortable&&Yn("span",{onClick:T=>d(T,w),class:"caret-wrapper"},[Yn("i",{onClick:T=>d(T,w,"ascending"),class:"sort-caret ascending"}),Yn("i",{onClick:T=>d(T,w,"descending"),class:"sort-caret descending"})]),w.filterable&&Yn(ont,{store:f,placement:w.filterPlacement||"bottom-start",column:w,upDataColumn:(T,S)=>{w[T]=S}})])]))))))}});function dnt(e){const t=Ht(ef),n=Re(""),r=Re(Yn("div")),{nextZIndex:i}=EL(),o=(h,f,g)=>{var b;const v=t,m=qF(h);let w;const k=(b=v==null?void 0:v.vnode.el)==null?void 0:b.dataset.prefix;m&&(w=fie({columns:e.store.states.columns.value},m,k),w&&(v==null||v.emit(`cell-${g}`,f,w,m,h))),v==null||v.emit(`row-${g}`,f,w,h)},a=(h,f)=>{o(h,f,"dblclick")},s=(h,f)=>{e.store.commit("setCurrentRow",f),o(h,f,"click")},l=(h,f)=>{o(h,f,"contextmenu")},u=ch(h=>{e.store.commit("setHoverRow",h)},30),c=ch(()=>{e.store.commit("setHoverRow",null)},30),d=h=>{const f=window.getComputedStyle(h,null),g=Number.parseInt(f.paddingLeft,10)||0,b=Number.parseInt(f.paddingRight,10)||0,v=Number.parseInt(f.paddingTop,10)||0,m=Number.parseInt(f.paddingBottom,10)||0;return{left:g,right:b,top:v,bottom:m}};return{handleDoubleClick:a,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(h,f,g)=>{var b;const v=t,m=qF(h),w=(b=v==null?void 0:v.vnode.el)==null?void 0:b.dataset.prefix;if(m){const C=fie({columns:e.store.states.columns.value},m,w),x=v.hoverState={cell:m,column:C,row:f};v==null||v.emit("cell-mouse-enter",x.row,x.column,x.cell,h)}if(!g)return;const k=h.target.querySelector(".cell");if(!(_p(k,`${w}-tooltip`)&&k.childNodes.length))return;const T=document.createRange();T.setStart(k,0),T.setEnd(k,k.childNodes.length);let S=T.getBoundingClientRect().width,I=T.getBoundingClientRect().height;S-Math.floor(S)<.001&&(S=Math.floor(S)),I-Math.floor(I)<.001&&(I=Math.floor(I));const{top:O,left:y,right:_,bottom:A}=d(k),R=y+_,D=O+A;(S+R>k.offsetWidth||I+D>k.offsetHeight||k.scrollWidth>k.offsetWidth)&&Htt(t==null?void 0:t.refs.tableWrapper,m,m.innerText||m.textContent,i,g)},handleCellMouseLeave:h=>{if(!qF(h))return;const f=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",f==null?void 0:f.row,f==null?void 0:f.column,f==null?void 0:f.cell,h)},tooltipContent:n,tooltipTrigger:r}}function hnt(e){const t=Ht(ef),n=cn("table");return{getRowStyle:(r,i)=>{const o=t==null?void 0:t.props.rowStyle;return typeof o=="function"?o.call(null,{row:r,rowIndex:i}):o||null},getRowClass:(r,i)=>{const o=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&r===e.store.states.currentRow.value&&o.push("current-row"),e.stripe&&i%2===1&&o.push(n.em("row","striped"));const a=t==null?void 0:t.props.rowClassName;return typeof a=="string"?o.push(a):typeof a=="function"&&o.push(a.call(null,{row:r,rowIndex:i})),o},getCellStyle:(r,i,o,a)=>{const s=t==null?void 0:t.props.cellStyle;let l=s??{};typeof s=="function"&&(l=s.call(null,{rowIndex:r,columnIndex:i,row:o,column:a}));const u=cX(i,e==null?void 0:e.fixed,e.store);return _O(u,"left"),_O(u,"right"),Object.assign({},l,u)},getCellClass:(r,i,o,a,s)=>{const l=uX(n.b(),i,e==null?void 0:e.fixed,e.store,void 0,s),u=[a.id,a.align,a.className,...l],c=t==null?void 0:t.props.cellClassName;return typeof c=="string"?u.push(c):typeof c=="function"&&u.push(c.call(null,{rowIndex:r,columnIndex:i,row:o,column:a})),u.push(n.e("cell")),u.filter(d=>!!d).join(" ")},getSpan:(r,i,o,a)=>{let s=1,l=1;const u=t==null?void 0:t.props.spanMethod;if(typeof u=="function"){const c=u({row:r,column:i,rowIndex:o,columnIndex:a});Array.isArray(c)?(s=c[0],l=c[1]):typeof c=="object"&&(s=c.rowspan,l=c.colspan)}return{rowspan:s,colspan:l}},getColspanRealWidth:(r,i,o)=>{if(i<1)return r[o].realWidth;const a=r.map(({realWidth:s,width:l})=>s||l).slice(o,o+i);return Number(a.reduce((s,l)=>Number(s)+Number(l),-1))}}}function pnt(e){const t=Ht(ef),n=cn("table"),{handleDoubleClick:r,handleClick:i,handleContextMenu:o,handleMouseEnter:a,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:d}=dnt(e),{getRowStyle:h,getRowClass:f,getCellStyle:g,getCellClass:b,getSpan:v,getColspanRealWidth:m}=hnt(e),w=Oe(()=>e.store.states.columns.value.findIndex(({type:I})=>I==="default")),k=(I,O)=>{const y=t.props.rowKey;return y?Bs(I,y):O},T=(I,O,y,_=!1)=>{const{tooltipEffect:A,tooltipOptions:R,store:D}=e,{indent:C,columns:x}=D.states,P=f(I,O);let $=!0;return y&&(P.push(n.em("row",`level-${y.level}`)),$=y.display),Yn("tr",{style:[$?null:{display:"none"},h(I,O)],class:P,key:k(I,O),onDblclick:L=>r(L,I),onClick:L=>i(L,I),onContextmenu:L=>o(L,I),onMouseenter:()=>a(O),onMouseleave:s},x.value.map((L,V)=>{const{rowspan:H,colspan:Q}=v(I,L,O,V);if(!H||!Q)return null;const U=Object.assign({},L);U.realWidth=m(x.value,Q,V);const K={store:e.store,_self:e.context||t,column:U,row:I,$index:O,cellIndex:V,expanded:_};V===w.value&&y&&(K.treeNode={indent:y.level*C.value,level:y.level},typeof y.expanded=="boolean"&&(K.treeNode.expanded=y.expanded,"loading"in y&&(K.treeNode.loading=y.loading),"noLazyChildren"in y&&(K.treeNode.noLazyChildren=y.noLazyChildren)));const J=`${O},${V}`,ue=U.columnKey||U.rawColumnKey||"",ee=S(V,L,K),N=L.showOverflowTooltip&&gwe({effect:A},R,L.showOverflowTooltip);return Yn("td",{style:g(O,V,I,L),class:b(O,V,I,L,Q-1),key:`${ue}${J}`,rowspan:H,colspan:Q,onMouseenter:q=>l(q,I,N),onMouseleave:u},[ee])}))},S=(I,O,y)=>O.renderCell(y);return{wrappedRowRender:(I,O)=>{const y=e.store,{isRowExpanded:_,assertRowKey:A}=y,{treeData:R,lazyTreeNodeMap:D,childrenColumnName:C,rowKey:x}=y.states,P=y.states.columns.value;if(P.some(({type:$})=>$==="expand")){const $=_(I),L=T(I,O,void 0,$),V=t.renderExpanded;return $?V?[[L,Yn("tr",{key:`expanded-row__${L.key}`},[Yn("td",{colspan:P.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[V({row:I,$index:O,store:y,expanded:$})])])]]:(console.error("[Element Error]renderExpanded is required."),L):[[L]]}else if(Object.keys(R.value).length){A();const $=Bs(I,x.value);let L=R.value[$],V=null;L&&(V={expanded:L.expanded,level:L.level,display:!0},typeof L.lazy=="boolean"&&(typeof L.loaded=="boolean"&&L.loaded&&(V.noLazyChildren=!(L.children&&L.children.length)),V.loading=L.loading));const H=[T(I,O,V)];if(L){let Q=0;const U=(J,ue)=>{J&&J.length&&ue&&J.forEach(ee=>{const N={display:ue.display&&ue.expanded,level:ue.level+1,expanded:!1,noLazyChildren:!1,loading:!1},q=Bs(ee,x.value);if(q==null)throw new Error("For nested data item, row-key is required.");if(L={...R.value[q]},L&&(N.expanded=L.expanded,L.level=L.level||N.level,L.display=!!(L.expanded&&N.display),typeof L.lazy=="boolean"&&(typeof L.loaded=="boolean"&&L.loaded&&(N.noLazyChildren=!(L.children&&L.children.length)),N.loading=L.loading)),Q++,H.push(T(ee,O+Q,N)),L){const G=D.value[q]||ee[C.value];U(G,L)}})};L.display=!0;const K=D.value[$]||I[C.value];U(K,L)}return H}else return T(I,O,void 0)},tooltipContent:c,tooltipTrigger:d}}const fnt={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var gnt=ft({name:"ElTableBody",props:fnt,setup(e){const t=dr(),n=Ht(ef),r=cn("table"),{wrappedRowRender:i,tooltipContent:o,tooltipTrigger:a}=pnt(e),{onColumnsChange:s,onScrollableChange:l}=IOe(n);return Pt(e.store.states.hoverRow,(u,c)=>{!e.store.states.isComplex.value||!Ii||vze(()=>{const d=t==null?void 0:t.vnode.el,h=Array.from((d==null?void 0:d.children)||[]).filter(b=>b==null?void 0:b.classList.contains(`${r.e("row")}`)),f=h[c],g=h[u];f&&s0(f,"hover-row"),g&&j2(g,"hover-row")})}),qp(()=>{var u;(u=Nd)==null||u()}),{ns:r,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:i,tooltipContent:o,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Yn("tbody",{tabIndex:-1},[n.reduce((r,i)=>r.concat(e(i,r.length)),[])])}});function mnt(){const e=Ht(ef),t=e==null?void 0:e.store,n=Oe(()=>t.states.fixedLeafColumnsLength.value),r=Oe(()=>t.states.rightFixedColumns.value.length),i=Oe(()=>t.states.columns.value.length),o=Oe(()=>t.states.fixedColumns.value.length),a=Oe(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:i,leftFixedCount:o,rightFixedCount:a,columns:t.states.columns}}function vnt(e){const{columns:t}=mnt(),n=cn("table");return{getCellClasses:(r,i)=>{const o=r[i],a=[n.e("cell"),o.id,o.align,o.labelClassName,...uX(n.b(),i,o.fixed,e.store)];return o.className&&a.push(o.className),o.children||a.push(n.is("leaf")),a},getCellStyles:(r,i)=>{const o=cX(i,r.fixed,e.store);return _O(o,"left"),_O(o,"right"),o},columns:t}}var ynt=ft({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:r}=vnt(e);return{ns:cn("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:i}=this,o=this.store.states.data.value;let a=[];return r?a=r({columns:e,data:o}):e.forEach((s,l)=>{if(l===0){a[l]=i;return}const u=o.map(f=>Number(f[s.property])),c=[];let d=!0;u.forEach(f=>{if(!Number.isNaN(+f)){d=!1;const g=`${f}`.split(".")[1];c.push(g?g.length:0)}});const h=Math.max.apply(null,c);d?a[l]="":a[l]=u.reduce((f,g)=>{const b=Number(g);return Number.isNaN(+b)?f:Number.parseFloat((f+g).toFixed(Math.min(h,20)))},0)}),Yn(Yn("tfoot",[Yn("tr",{},[...e.map((s,l)=>Yn("td",{key:l,colspan:s.colSpan,rowspan:s.rowSpan,class:n(e,l),style:t(s,l)},[Yn("div",{class:["cell",s.labelClassName]},[a[l]])]))])]))}});function bnt(e){return{setCurrentRow:t=>{e.commit("setCurrentRow",t)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(t,n)=>{e.toggleRowSelection(t,n,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:t=>{e.clearFilter(t)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(t,n)=>{e.toggleRowExpansionAdapter(t,n)},clearSort:()=>{e.clearSort()},sort:(t,n)=>{e.commit("sort",{prop:t,order:n})}}}function wnt(e,t,n,r){const i=Re(!1),o=Re(null),a=Re(!1),s=V=>{a.value=V},l=Re({width:null,height:null,headerHeight:null}),u=Re(!1),c={display:"inline-block",verticalAlign:"middle"},d=Re(),h=Re(0),f=Re(0),g=Re(0),b=Re(0),v=Re(0);Uc(()=>{t.setHeight(e.height)}),Uc(()=>{t.setMaxHeight(e.maxHeight)}),Pt(()=>[e.currentRowKey,n.states.rowKey],([V,H])=>{!W(H)||!W(V)||n.setCurrentRowKey(`${V}`)},{immediate:!0}),Pt(()=>e.data,V=>{r.store.commit("setData",V)},{immediate:!0,deep:!0}),Uc(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const m=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},w=(V,H)=>{const{pixelX:Q,pixelY:U}=H;Math.abs(Q)>=Math.abs(U)&&(r.refs.bodyWrapper.scrollLeft+=H.pixelX/5)},k=Oe(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),T=Oe(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{k.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(_)};_n(async()=>{await mn(),n.updateColumns(),A(),requestAnimationFrame(S);const V=r.vnode.el,H=r.refs.headerWrapper;e.flexible&&V&&V.parentElement&&(V.parentElement.style.minWidth="0"),l.value={width:d.value=V.offsetWidth,height:V.offsetHeight,headerHeight:e.showHeader&&H?H.offsetHeight:null},n.states.columns.value.forEach(Q=>{Q.filteredValue&&Q.filteredValue.length&&r.store.commit("filterChange",{column:Q,values:Q.filteredValue,silent:!0})}),r.$ready=!0});const I=(V,H)=>{if(!V)return;const Q=Array.from(V.classList).filter(U=>!U.startsWith("is-scrolling-"));Q.push(t.scrollX.value?H:"is-scrolling-none"),V.className=Q.join(" ")},O=V=>{const{tableWrapper:H}=r.refs;I(H,V)},y=V=>{const{tableWrapper:H}=r.refs;return!!(H&&H.classList.contains(V))},_=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const ee="is-scrolling-none";y(ee)||O(ee);return}const V=r.refs.scrollBarRef.wrapRef;if(!V)return;const{scrollLeft:H,offsetWidth:Q,scrollWidth:U}=V,{headerWrapper:K,footerWrapper:J}=r.refs;K&&(K.scrollLeft=H),J&&(J.scrollLeft=H);const ue=U-Q-1;H>=ue?O("is-scrolling-right"):O(H===0?"is-scrolling-left":"is-scrolling-middle")},A=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&lu(r.refs.scrollBarRef.wrapRef,"scroll",_,{passive:!0}),e.fit?uh(r.vnode.el,R):lu(window,"resize",R),uh(r.refs.bodyWrapper,()=>{var V,H;R(),(H=(V=r.refs)==null?void 0:V.scrollBarRef)==null||H.update()}))},R=()=>{var V,H,Q,U;const K=r.vnode.el;if(!r.$ready||!K)return;let J=!1;const{width:ue,height:ee,headerHeight:N}=l.value,q=d.value=K.offsetWidth;ue!==q&&(J=!0);const G=K.offsetHeight;(e.height||k.value)&&ee!==G&&(J=!0);const ne=e.tableLayout==="fixed"?r.refs.headerWrapper:(V=r.refs.tableHeaderRef)==null?void 0:V.$el;e.showHeader&&(ne==null?void 0:ne.offsetHeight)!==N&&(J=!0),h.value=((H=r.refs.tableWrapper)==null?void 0:H.scrollHeight)||0,g.value=(ne==null?void 0:ne.scrollHeight)||0,b.value=((Q=r.refs.footerWrapper)==null?void 0:Q.offsetHeight)||0,v.value=((U=r.refs.appendWrapper)==null?void 0:U.offsetHeight)||0,f.value=h.value-g.value-b.value-v.value,J&&(l.value={width:q,height:G,headerHeight:e.showHeader&&(ne==null?void 0:ne.offsetHeight)||0},S())},D=js(),C=Oe(()=>{const{bodyWidth:V,scrollY:H,gutterWidth:Q}=t;return V.value?`${V.value-(H.value?Q:0)}px`:""}),x=Oe(()=>e.maxHeight?"fixed":e.tableLayout),P=Oe(()=>{if(e.data&&e.data.length)return null;let V="100%";e.height&&f.value&&(V=`${f.value}px`);const H=d.value;return{width:H?`${H}px`:"",height:V}}),$=Oe(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),L=Oe(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${g.value+b.value}px)`}:{maxHeight:`${e.maxHeight-g.value-b.value}px`}:{});return{isHidden:i,renderExpanded:o,setDragVisible:s,isGroup:u,handleMouseLeave:m,handleHeaderFooterMousewheel:w,tableSize:D,emptyBlockStyle:P,handleFixedMousewheel:(V,H)=>{const Q=r.refs.bodyWrapper;if(Math.abs(H.spinY)>0){const U=Q.scrollTop;H.pixelY<0&&U!==0&&V.preventDefault(),H.pixelY>0&&Q.scrollHeight-Q.clientHeight>U&&V.preventDefault(),Q.scrollTop+=Math.ceil(H.pixelY/5)}else Q.scrollLeft+=Math.ceil(H.pixelX/5)},resizeProxyVisible:a,bodyWidth:C,resizeState:l,doLayout:S,tableBodyStyles:T,tableLayout:x,scrollbarViewStyle:c,tableInnerStyle:$,scrollbarStyle:L}}function Cnt(e){const t=Re(),n=()=>{const r=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(a=>a())}),t.value.observe(r,i)};_n(()=>{n()}),qp(()=>{var r;(r=t.value)==null||r.disconnect()})}var Ont={data:{type:Array,default:()=>[]},size:Fl,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean,showOverflowTooltip:[Boolean,Object]};function EOe(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(i=>i.width===void 0)&&(n=[]);const r=i=>{const o={key:`${e.tableLayout}_${i.id}`,style:{},name:void 0};return t?o.style={width:`${i.width}px`}:o.name=i.id,o};return Yn("colgroup",{},n.map(i=>Yn("col",r(i))))}EOe.props=["columns","tableLayout"];const xnt=()=>{const e=Re(),t=(r,i)=>{const o=e.value;o&&o.scrollTo(r,i)},n=(r,i)=>{const o=e.value;o&&$r(i)&&["Top","Left"].includes(r)&&o[`setScroll${r}`](i)};return{scrollBarRef:e,scrollTo:t,setScrollTop:r=>n("Top",r),setScrollLeft:r=>n("Left",r)}};let Snt=1;const Ant=ft({name:"ElTable",directives:{Mousewheel:RXe},components:{TableHeader:cnt,TableBody:gnt,TableFooter:ynt,ElScrollbar:Tx,hColgroup:EOe},props:Ont,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=uo(),n=cn("table"),r=dr();Or(ef,r);const i=Ytt(r,e);r.store=i;const o=new qtt({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=o;const a=Oe(()=>(i.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:f,clearSort:g,sort:b}=bnt(i),{isHidden:v,renderExpanded:m,setDragVisible:w,isGroup:k,handleMouseLeave:T,handleHeaderFooterMousewheel:S,tableSize:I,emptyBlockStyle:O,handleFixedMousewheel:y,resizeProxyVisible:_,bodyWidth:A,resizeState:R,doLayout:D,tableBodyStyles:C,tableLayout:x,scrollbarViewStyle:P,tableInnerStyle:$,scrollbarStyle:L}=wnt(e,o,i,r),{scrollBarRef:V,scrollTo:H,setScrollLeft:Q,setScrollTop:U}=xnt(),K=ch(D,50),J=`${n.namespace.value}-table_${Snt++}`;r.tableId=J,r.state={isGroup:k,resizeState:R,doLayout:D,debouncedUpdateLayout:K};const ue=Oe(()=>e.sumText||t("el.table.sumText")),ee=Oe(()=>e.emptyText||t("el.table.emptyText"));return Cnt(r),{ns:n,layout:o,store:i,handleHeaderFooterMousewheel:S,handleMouseLeave:T,tableId:J,tableSize:I,isHidden:v,isEmpty:a,renderExpanded:m,resizeProxyVisible:_,resizeState:R,isGroup:k,bodyWidth:A,tableBodyStyles:C,emptyBlockStyle:O,debouncedUpdateLayout:K,handleFixedMousewheel:y,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:f,clearSort:g,doLayout:D,sort:b,t,setDragVisible:w,context:r,computedSumText:ue,computedEmptyText:ee,tableLayout:x,scrollbarViewStyle:P,tableInnerStyle:$,scrollbarStyle:L,scrollBarRef:V,scrollTo:H,setScrollLeft:Q,setScrollTop:U}}}),Int=["data-prefix"],knt={ref:"hiddenColumns",class:"hidden-columns"};function Ent(e,t,n,r,i,o){const a=Ar("hColgroup"),s=Ar("table-header"),l=Ar("table-body"),u=Ar("table-footer"),c=Ar("el-scrollbar"),d=o0("mousewheel");return Ce(),We("div",{ref:"tableWrapper",class:De([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:En(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[at("div",{class:De(e.ns.e("inner-wrapper")),style:En(e.tableInnerStyle)},[at("div",knt,[rn(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Kn((Ce(),We("div",{key:0,ref:"headerWrapper",class:De(e.ns.e("header-wrapper"))},[at("table",{ref:"tableHeader",class:De(e.ns.e("header")),style:En(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[xe(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),xe(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):xt("v-if",!0),at("div",{ref:"bodyWrapper",class:De(e.ns.e("body-wrapper"))},[xe(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:ot(()=>[at("table",{ref:"tableBody",class:De(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:En({width:e.bodyWidth,tableLayout:e.tableLayout})},[xe(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(Ce(),mt(s,{key:0,ref:"tableHeaderRef",class:De(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):xt("v-if",!0),xe(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(Ce(),mt(u,{key:1,class:De(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):xt("v-if",!0)],6),e.isEmpty?(Ce(),We("div",{key:0,ref:"emptyBlock",style:En(e.emptyBlockStyle),class:De(e.ns.e("empty-block"))},[at("span",{class:De(e.ns.e("empty-text"))},[rn(e.$slots,"empty",{},()=>[gr(en(e.computedEmptyText),1)])],2)],6)):xt("v-if",!0),e.$slots.append?(Ce(),We("div",{key:1,ref:"appendWrapper",class:De(e.ns.e("append-wrapper"))},[rn(e.$slots,"append")],2)):xt("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?Kn((Ce(),We("div",{key:1,ref:"footerWrapper",class:De(e.ns.e("footer-wrapper"))},[at("table",{class:De(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:En(e.tableBodyStyles)},[xe(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),xe(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[Ni,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):xt("v-if",!0),e.border||e.isGroup?(Ce(),We("div",{key:2,class:De(e.ns.e("border-left-patch"))},null,2)):xt("v-if",!0)],6),Kn(at("div",{ref:"resizeProxy",class:De(e.ns.e("column-resize-proxy"))},null,2),[[Ni,e.resizeProxyVisible]])],46,Int)}var _nt=Bn(Ant,[["render",Ent],["__file","table.vue"]]);const Tnt={selection:"table-column--selection",expand:"table__expand-column"},Pnt={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Dnt=e=>Tnt[e]||"",Rnt={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return Yn(jp,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:r}){return Yn(jp,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:i=>i.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),Yn("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,i=[r.e("expand-icon")];return n&&i.push(r.em("expand-icon","expanded")),Yn("div",{class:i,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Yn(Ln,null,{default:()=>[Yn(Tp)]})]})},sortable:!1,resizable:!1}};function $nt({row:e,column:t,$index:n}){var r;const i=t.property,o=i&&p3(e,i).value;return t&&t.formatter?t.formatter(e,t,o,n):((r=o==null?void 0:o.toString)==null?void 0:r.call(o))||""}function Mnt({row:e,treeNode:t,store:n},r=!1){const{ns:i}=n;if(!t)return r?[Yn("span",{class:i.e("placeholder")})]:null;const o=[],a=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&o.push(Yn("span",{class:i.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const s=[i.e("expand-icon"),t.expanded?i.em("expand-icon","expanded"):""];let l=Tp;t.loading&&(l=kx),o.push(Yn("div",{class:s,onClick:a},{default:()=>[Yn(Ln,{class:{[i.is("loading")]:t.loading}},{default:()=>[Yn(l)]})]}))}else o.push(Yn("span",{class:i.e("placeholder")}));return o}function vie(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function Lnt(e,t){const n=dr();return{registerComplexWatchers:()=>{const r=["fixed"],i={realWidth:"width",realMinWidth:"minWidth"},o=vie(r,i);Object.keys(o).forEach(a=>{const s=i[a];vg(t,s)&&Pt(()=>t[s],l=>{let u=l;s==="width"&&a==="realWidth"&&(u=lX(l)),s==="minWidth"&&a==="realMinWidth"&&(u=COe(l)),n.columnConfig.value[s]=u,n.columnConfig.value[a]=u;const c=s==="fixed";e.value.store.scheduleLayout(c)})})},registerNormalWatchers:()=>{const r=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],i={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},o=vie(r,i);Object.keys(o).forEach(a=>{const s=i[a];vg(t,s)&&Pt(()=>t[s],l=>{n.columnConfig.value[a]=l})})}}}function Bnt(e,t,n){const r=dr(),i=Re(""),o=Re(!1),a=Re(),s=Re(),l=cn("table");Uc(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),Uc(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:a.value,s.value});const u=Oe(()=>{let v=r.vnode.vParent||r.parent;for(;v&&!v.tableId&&!v.columnId;)v=v.vnode.vParent||v.parent;return v}),c=Oe(()=>{const{store:v}=r.parent;if(!v)return!1;const{treeData:m}=v.states,w=m.value;return w&&Object.keys(w).length>0}),d=Re(lX(e.width)),h=Re(COe(e.minWidth)),f=v=>(d.value&&(v.width=d.value),h.value&&(v.minWidth=h.value),!d.value&&h.value&&(v.width=void 0),v.minWidth||(v.minWidth=80),v.realWidth=Number(v.width===void 0?v.minWidth:v.width),v),g=v=>{const m=v.type,w=Rnt[m]||{};Object.keys(w).forEach(T=>{const S=w[T];T!=="className"&&S!==void 0&&(v[T]=S)});const k=Dnt(m);if(k){const T=`${W(l.namespace)}-${k}`;v.className=v.className?`${v.className} ${T}`:T}return v},b=v=>{Array.isArray(v)?v.forEach(w=>m(w)):m(v);function m(w){var k;((k=w==null?void 0:w.type)==null?void 0:k.name)==="ElTableColumn"&&(w.vParent=r)}};return{columnId:i,realAlign:a,isSubColumn:o,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:f,setColumnForcedProps:g,setColumnRenders:v=>{e.renderHeader?void 0:v.type!=="selection"&&(v.renderHeader=w=>(r.columnConfig.value.label,rn(t,"header",w,()=>[v.label])));let m=v.renderCell;return v.type==="expand"?(v.renderCell=w=>Yn("div",{class:"cell"},[m(w)]),n.value.renderExpanded=w=>t.default?t.default(w):t.default):(m=m||$nt,v.renderCell=w=>{let k=null;if(t.default){const _=t.default(w);k=_.some(A=>A.type!==vs)?_:m(w)}else k=m(w);const{columns:T}=n.value.store.states,S=T.value.findIndex(_=>_.type==="default"),I=c.value&&w.cellIndex===S,O=Mnt(w,I),y={class:"cell",style:{}};return v.showOverflowTooltip&&(y.class=`${y.class} ${W(l.namespace)}-tooltip`,y.style={width:`${(w.column.realWidth||Number(w.column.width))-1}px`}),b(k),Yn("div",y,[O,k])}),v},getPropsData:(...v)=>v.reduce((m,w)=>(Array.isArray(w)&&w.forEach(k=>{m[k]=e[k]}),m),{}),getColumnElIndex:(v,m)=>Array.prototype.indexOf.call(v,m),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var Fnt={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Nnt=1;var _Oe=ft({name:"ElTableColumn",components:{ElCheckbox:jp},props:Fnt,setup(e,{slots:t}){const n=dr(),r=Re({}),i=Oe(()=>{let k=n.parent;for(;k&&!k.tableId;)k=k.parent;return k}),{registerNormalWatchers:o,registerComplexWatchers:a}=Lnt(i,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:d,setColumnForcedProps:h,setColumnRenders:f,getPropsData:g,getColumnElIndex:b,realAlign:v,updateColumnOrder:m}=Bnt(e,t,i),w=c.value;s.value=`${w.tableId||w.columnId}_column_${Nnt++}`,Kp(()=>{l.value=i.value!==w;const k=e.type||"default",T=e.sortable===""?!0:e.sortable,S=rl(e.showOverflowTooltip)?w.props.showOverflowTooltip:e.showOverflowTooltip,I={...Pnt[k],id:s.value,type:k,property:e.prop||e.property,align:v,headerAlign:u,showOverflowTooltip:S,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:T,index:e.index,rawColumnKey:n.vnode.key};let O=g(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);O=Ntt(I,O),O=jtt(f,d,h)(O),r.value=O,o(),a()}),_n(()=>{var k;const T=c.value,S=l.value?T.vnode.el.children:(k=T.refs.hiddenColumns)==null?void 0:k.children,I=()=>b(S||[],n.vnode.el);r.value.getColumnIndex=I,I()>-1&&i.value.store.commit("insertColumn",r.value,l.value?T.columnConfig.value:null,m)}),Mo(()=>{i.value.store.commit("removeColumn",r.value,l.value?w.columnConfig.value:null,m)}),n.columnId=s.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),i=[];if(Array.isArray(r))for(const o of r)((n=o.type)==null?void 0:n.name)==="ElTableColumn"||o.shapeFlag&2?i.push(o):o.type===un&&Array.isArray(o.children)&&o.children.forEach(a=>{(a==null?void 0:a.patchFlag)!==1024&&!vi(a==null?void 0:a.children)&&i.push(a)});return Yn("div",i)}catch{return Yn("div",[])}}});const Vnt=Xi(_nt,{TableColumn:_Oe}),yie=yh(_Oe),ML=Symbol("tabsRootContextKey"),jnt=Tn({tabs:{type:jt(Array),default:()=>dh([])}}),TOe="ElTabBar",Wnt=ft({name:TOe}),Hnt=ft({...Wnt,props:jnt,setup(e,{expose:t}){const n=e,r=dr(),i=Ht(ML);i||hc(TOe,"<el-tabs><el-tab-bar /></el-tabs>");const o=cn("tabs"),a=Re(),s=Re(),l=()=>{let c=0,d=0;const h=["top","bottom"].includes(i.props.tabPosition)?"width":"height",f=h==="width"?"x":"y",g=f==="x"?"left":"top";return n.tabs.every(b=>{var v,m;const w=(m=(v=r.parent)==null?void 0:v.refs)==null?void 0:m[`tab-${b.uid}`];if(!w)return!1;if(!b.active)return!0;c=w[`offset${dp(g)}`],d=w[`client${dp(h)}`];const k=window.getComputedStyle(w);return h==="width"&&(n.tabs.length>1&&(d-=Number.parseFloat(k.paddingLeft)+Number.parseFloat(k.paddingRight)),c+=Number.parseFloat(k.paddingLeft)),!1}),{[h]:`${d}px`,transform:`translate${dp(f)}(${c}px)`}},u=()=>s.value=l();return Pt(()=>n.tabs,async()=>{await mn(),u()},{immediate:!0}),uh(a,()=>u()),t({ref:a,update:u}),(c,d)=>(Ce(),We("div",{ref_key:"barRef",ref:a,class:De([W(o).e("active-bar"),W(o).is(W(i).props.tabPosition)]),style:En(s.value)},null,6))}});var znt=Bn(Hnt,[["__file","tab-bar.vue"]]);const Znt=Tn({panes:{type:jt(Array),default:()=>dh([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Gnt={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},bie="ElTabNav",Qnt=ft({name:bie,props:Znt,emits:Gnt,setup(e,{expose:t,emit:n}){const r=dr(),i=Ht(ML);i||hc(bie,"<el-tabs><tab-nav /></el-tabs>");const o=cn("tabs"),a=a6e(),s=m6e(),l=Re(),u=Re(),c=Re(),d=Re(),h=Re(!1),f=Re(0),g=Re(!1),b=Re(!0),v=Oe(()=>["top","bottom"].includes(i.props.tabPosition)?"width":"height"),m=Oe(()=>({transform:`translate${v.value==="width"?"X":"Y"}(-${f.value}px)`})),w=()=>{if(!l.value)return;const _=l.value[`offset${dp(v.value)}`],A=f.value;if(!A)return;const R=A>_?A-_:0;f.value=R},k=()=>{if(!l.value||!u.value)return;const _=u.value[`offset${dp(v.value)}`],A=l.value[`offset${dp(v.value)}`],R=f.value;if(_-R<=A)return;const D=_-R>A*2?R+A:_-A;f.value=D},T=async()=>{const _=u.value;if(!h.value||!c.value||!l.value||!_)return;await mn();const A=c.value.querySelector(".is-active");if(!A)return;const R=l.value,D=["top","bottom"].includes(i.props.tabPosition),C=A.getBoundingClientRect(),x=R.getBoundingClientRect(),P=D?_.offsetWidth-x.width:_.offsetHeight-x.height,$=f.value;let L=$;D?(C.left<x.left&&(L=$-(x.left-C.left)),C.right>x.right&&(L=$+C.right-x.right)):(C.top<x.top&&(L=$-(x.top-C.top)),C.bottom>x.bottom&&(L=$+(C.bottom-x.bottom))),L=Math.max(L,0),f.value=Math.min(L,P)},S=()=>{var _;if(!u.value||!l.value)return;e.stretch&&((_=d.value)==null||_.update());const A=u.value[`offset${dp(v.value)}`],R=l.value[`offset${dp(v.value)}`],D=f.value;R<A?(h.value=h.value||{},h.value.prev=D,h.value.next=D+R<A,A-D<R&&(f.value=A-R)):(h.value=!1,D>0&&(f.value=0))},I=_=>{const A=_.code,{up:R,down:D,left:C,right:x}=nr;if(![R,D,C,x].includes(A))return;const P=Array.from(_.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),$=P.indexOf(_.target);let L;A===C||A===R?$===0?L=P.length-1:L=$-1:$<P.length-1?L=$+1:L=0,P[L].focus({preventScroll:!0}),P[L].click(),O()},O=()=>{b.value&&(g.value=!0)},y=()=>g.value=!1;return Pt(a,_=>{_==="hidden"?b.value=!1:_==="visible"&&setTimeout(()=>b.value=!0,50)}),Pt(s,_=>{_?setTimeout(()=>b.value=!0,50):b.value=!1}),uh(c,S),_n(()=>setTimeout(()=>T(),0)),C1(()=>S()),t({scrollToActiveTab:T,removeFocus:y}),Pt(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const _=h.value?[xe("span",{class:[o.e("nav-prev"),o.is("disabled",!h.value.prev)],onClick:w},[xe(Ln,null,{default:()=>[xe(W2,null,null)]})]),xe("span",{class:[o.e("nav-next"),o.is("disabled",!h.value.next)],onClick:k},[xe(Ln,null,{default:()=>[xe(Tp,null,null)]})])]:null,A=e.panes.map((R,D)=>{var C,x,P,$;const L=R.uid,V=R.props.disabled,H=(x=(C=R.props.name)!=null?C:R.index)!=null?x:`${D}`,Q=!V&&(R.isClosable||e.editable);R.index=`${D}`;const U=Q?xe(Ln,{class:"is-icon-close",onClick:ue=>n("tabRemove",R,ue)},{default:()=>[xe(yg,null,null)]}):null,K=(($=(P=R.slots).label)==null?void 0:$.call(P))||R.props.label,J=!V&&R.active?0:-1;return xe("div",{ref:`tab-${L}`,class:[o.e("item"),o.is(i.props.tabPosition),o.is("active",R.active),o.is("disabled",V),o.is("closable",Q),o.is("focus",g.value)],id:`tab-${H}`,key:`tab-${L}`,"aria-controls":`pane-${H}`,role:"tab","aria-selected":R.active,tabindex:J,onFocus:()=>O(),onBlur:()=>y(),onClick:ue=>{y(),n("tabClick",R,H,ue)},onKeydown:ue=>{Q&&(ue.code===nr.delete||ue.code===nr.backspace)&&n("tabRemove",R,ue)}},[K,U])});return xe("div",{ref:c,class:[o.e("nav-wrap"),o.is("scrollable",!!h.value),o.is(i.props.tabPosition)]},[_,xe("div",{class:o.e("nav-scroll"),ref:l},[xe("div",{class:[o.e("nav"),o.is(i.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(i.props.tabPosition))],ref:u,style:m.value,role:"tablist",onKeydown:I},[e.type?null:xe(znt,{ref:d,tabs:[...e.panes]},null),A])])])}}}),Unt=Tn({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:jt(Function),default:()=>!0},stretch:Boolean}),JF=e=>vi(e)||$r(e),Xnt={[ur]:e=>JF(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>JF(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>JF(e),tabAdd:()=>!0},Ynt=ft({name:"ElTabs",props:Unt,emits:Xnt,setup(e,{emit:t,slots:n,expose:r}){var i,o;const a=cn("tabs"),{children:s,addChild:l,removeChild:u}=tGe(dr(),"ElTabPane"),c=Re(),d=Re((o=(i=e.modelValue)!=null?i:e.activeName)!=null?o:"0"),h=async(v,m=!1)=>{var w,k,T;if(!(d.value===v||rl(v)))try{await((w=e.beforeLeave)==null?void 0:w.call(e,v,d.value))!==!1&&(d.value=v,m&&(t(ur,v),t("tabChange",v)),(T=(k=c.value)==null?void 0:k.removeFocus)==null||T.call(k))}catch{}},f=(v,m,w)=>{v.props.disabled||(h(m,!0),t("tabClick",v,w))},g=(v,m)=>{v.props.disabled||rl(v.props.name)||(m.stopPropagation(),t("edit",v.props.name,"remove"),t("tabRemove",v.props.name))},b=()=>{t("edit",void 0,"add"),t("tabAdd")};return l0({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},Oe(()=>!!e.activeName)),Pt(()=>e.activeName,v=>h(v)),Pt(()=>e.modelValue,v=>h(v)),Pt(d,async()=>{var v;await mn(),(v=c.value)==null||v.scrollToActiveTab()}),Or(ML,{props:e,currentName:d,registerPane:l,unregisterPane:u}),r({currentName:d}),()=>{const v=n.addIcon,m=e.editable||e.addable?xe("span",{class:a.e("new-tab"),tabindex:"0",onClick:b,onKeydown:T=>{T.code===nr.enter&&b()}},[v?rn(n,"addIcon"):xe(Ln,{class:a.is("icon-plus")},{default:()=>[xe(Cwe,null,null)]})]):null,w=xe("div",{class:[a.e("header"),a.is(e.tabPosition)]},[m,xe(Qnt,{ref:c,currentName:d.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:f,onTabRemove:g},null)]),k=xe("div",{class:a.e("content")},[rn(n,"default")]);return xe("div",{class:[a.b(),a.m(e.tabPosition),{[a.m("card")]:e.type==="card",[a.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[w,k]:[k,w]])}}}),Knt=Tn({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),qnt=["id","aria-hidden","aria-labelledby"],POe="ElTabPane",Jnt=ft({name:POe}),ert=ft({...Jnt,props:Knt,setup(e){const t=e,n=dr(),r=yd(),i=Ht(ML);i||hc(POe,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const o=cn("tab-pane"),a=Re(),s=Oe(()=>t.closable||i.props.closable),l=yne(()=>{var f;return i.currentName.value===((f=t.name)!=null?f:a.value)}),u=Re(l.value),c=Oe(()=>{var f;return(f=t.name)!=null?f:a.value}),d=yne(()=>!t.lazy||u.value||l.value);Pt(l,f=>{f&&(u.value=!0)});const h=Br({uid:n.uid,slots:r,props:t,paneName:c,active:l,index:a,isClosable:s});return _n(()=>{i.registerPane(h)}),qp(()=>{i.unregisterPane(h.uid)}),(f,g)=>W(d)?Kn((Ce(),We("div",{key:0,id:`pane-${W(c)}`,class:De(W(o).b()),role:"tabpanel","aria-hidden":!W(l),"aria-labelledby":`tab-${W(c)}`},[rn(f.$slots,"default")],10,qnt)),[[Ni,W(l)]]):xt("v-if",!0)}});var DOe=Bn(ert,[["__file","tab-pane.vue"]]);const trt=Xi(Ynt,{TabPane:DOe}),wie=yh(DOe),ROe="left-check-change",$Oe="right-check-change",wC=Tn({data:{type:jt(Array),default:()=>[]},titles:{type:jt(Array),default:()=>[]},buttonTexts:{type:jt(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:jt(Function)},leftDefaultChecked:{type:jt(Array),default:()=>[]},rightDefaultChecked:{type:jt(Array),default:()=>[]},renderContent:{type:jt(Function)},modelValue:{type:jt(Array),default:()=>[]},format:{type:jt(Object),default:()=>({})},filterable:Boolean,props:{type:jt(Object),default:()=>dh({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),VW=(e,t)=>[e,t].every(Tr)||Tr(e)&&il(t),nrt={[Ua]:(e,t,n)=>[e,n].every(Tr)&&["left","right"].includes(t),[ur]:e=>Tr(e),[ROe]:VW,[$Oe]:VW},jW="checked-change",rrt=Tn({data:wC.data,optionRender:{type:jt(Function)},placeholder:String,title:String,filterable:Boolean,format:wC.format,filterMethod:wC.filterMethod,defaultChecked:wC.leftDefaultChecked,props:wC.props}),irt={[jW]:VW},E_=e=>{const t={label:"label",key:"key",disabled:"disabled"};return Oe(()=>({...t,...e.props}))},ort=(e,t,n)=>{const r=E_(e),i=Oe(()=>e.data.filter(c=>_i(e.filterMethod)?e.filterMethod(t.query,c):String(c[r.value.label]||c[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),o=Oe(()=>i.value.filter(c=>!c[r.value.disabled])),a=Oe(()=>{const c=t.checked.length,d=e.data.length,{noChecked:h,hasChecked:f}=e.format;return h&&f?c>0?f.replace(/\${checked}/g,c.toString()).replace(/\${total}/g,d.toString()):h.replace(/\${total}/g,d.toString()):`${c}/${d}`}),s=Oe(()=>{const c=t.checked.length;return c>0&&c<o.value.length}),l=()=>{const c=o.value.map(d=>d[r.value.key]);t.allChecked=c.length>0&&c.every(d=>t.checked.includes(d))},u=c=>{t.checked=c?o.value.map(d=>d[r.value.key]):[]};return Pt(()=>t.checked,(c,d)=>{if(l(),t.checkChangeByUser){const h=c.concat(d).filter(f=>!c.includes(f)||!d.includes(f));n(jW,c,h)}else n(jW,c),t.checkChangeByUser=!0}),Pt(o,()=>{l()}),Pt(()=>e.data,()=>{const c=[],d=i.value.map(h=>h[r.value.key]);t.checked.forEach(h=>{d.includes(h)&&c.push(h)}),t.checkChangeByUser=!1,t.checked=c}),Pt(()=>e.defaultChecked,(c,d)=>{if(d&&c.length===d.length&&c.every(g=>d.includes(g)))return;const h=[],f=o.value.map(g=>g[r.value.key]);c.forEach(g=>{f.includes(g)&&h.push(g)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:i,checkableData:o,checkedSummary:a,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},art=(e,t)=>({onSourceCheckedChange:(n,r)=>{e.leftChecked=n,r&&t(ROe,n,r)},onTargetCheckedChange:(n,r)=>{e.rightChecked=n,r&&t($Oe,n,r)}}),srt=e=>{const t=E_(e),n=Oe(()=>e.data.reduce((o,a)=>(o[a[t.value.key]]=a)&&o,{})),r=Oe(()=>e.data.filter(o=>!e.modelValue.includes(o[t.value.key]))),i=Oe(()=>e.targetOrder==="original"?e.data.filter(o=>e.modelValue.includes(o[t.value.key])):e.modelValue.reduce((o,a)=>{const s=n.value[a];return s&&o.push(s),o},[]));return{sourceData:r,targetData:i}},lrt=(e,t,n)=>{const r=E_(e),i=(o,a,s)=>{n(ur,o),n(Ua,o,a,s)};return{addToLeft:()=>{const o=e.modelValue.slice();t.rightChecked.forEach(a=>{const s=o.indexOf(a);s>-1&&o.splice(s,1)}),i(o,"left",t.rightChecked)},addToRight:()=>{let o=e.modelValue.slice();const a=e.data.filter(s=>{const l=s[r.value.key];return t.leftChecked.includes(l)&&!e.modelValue.includes(l)}).map(s=>s[r.value.key]);o=e.targetOrder==="unshift"?a.concat(o):o.concat(a),e.targetOrder==="original"&&(o=e.data.filter(s=>o.includes(s[r.value.key])).map(s=>s[r.value.key])),i(o,"right",t.leftChecked)}}},urt=ft({name:"ElTransferPanel"}),crt=ft({...urt,props:rrt,emits:irt,setup(e,{expose:t,emit:n}){const r=e,i=yd(),o=({option:k})=>k,{t:a}=uo(),s=cn("transfer"),l=Br({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=E_(r),{filteredData:c,checkedSummary:d,isIndeterminate:h,handleAllCheckedChange:f}=ort(r,l,n),g=Oe(()=>!Vc(l.query)&&Vc(c.value)),b=Oe(()=>!Vc(i.default()[0].children)),{checked:v,allChecked:m,query:w}=rc(l);return t({query:w}),(k,T)=>(Ce(),We("div",{class:De(W(s).b("panel"))},[at("p",{class:De(W(s).be("panel","header"))},[xe(W(jp),{modelValue:W(m),"onUpdate:modelValue":T[0]||(T[0]=S=>ni(m)?m.value=S:null),indeterminate:W(h),"validate-event":!1,onChange:W(f)},{default:ot(()=>[gr(en(k.title)+" ",1),at("span",null,en(W(d)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),at("div",{class:De([W(s).be("panel","body"),W(s).is("with-footer",W(b))])},[k.filterable?(Ce(),mt(W(Fs),{key:0,modelValue:W(w),"onUpdate:modelValue":T[1]||(T[1]=S=>ni(w)?w.value=S:null),class:De(W(s).be("panel","filter")),size:"default",placeholder:k.placeholder,"prefix-icon":W(qHe),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):xt("v-if",!0),Kn(xe(W(VCe),{modelValue:W(v),"onUpdate:modelValue":T[2]||(T[2]=S=>ni(v)?v.value=S:null),"validate-event":!1,class:De([W(s).is("filterable",k.filterable),W(s).be("panel","list")])},{default:ot(()=>[(Ce(!0),We(un,null,xr(W(c),S=>(Ce(),mt(W(jp),{key:S[W(u).key],class:De(W(s).be("panel","item")),label:S[W(u).key],disabled:S[W(u).disabled],"validate-event":!1},{default:ot(()=>{var I;return[xe(o,{option:(I=k.optionRender)==null?void 0:I.call(k,S)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Ni,!W(g)&&!W(Vc)(k.data)]]),Kn(at("p",{class:De(W(s).be("panel","empty"))},en(W(g)?W(a)("el.transfer.noMatch"):W(a)("el.transfer.noData")),3),[[Ni,W(g)||W(Vc)(k.data)]])],2),W(b)?(Ce(),We("p",{key:0,class:De(W(s).be("panel","footer"))},[rn(k.$slots,"default")],2)):xt("v-if",!0)],2))}});var Cie=Bn(crt,[["__file","transfer-panel.vue"]]);const drt={key:0},hrt={key:0},prt=ft({name:"ElTransfer"}),frt=ft({...prt,props:wC,emits:nrt,setup(e,{expose:t,emit:n}){const r=e,i=yd(),{t:o}=uo(),a=cn("transfer"),{formItem:s}=bu(),l=Br({leftChecked:[],rightChecked:[]}),u=E_(r),{sourceData:c,targetData:d}=srt(r),{onSourceCheckedChange:h,onTargetCheckedChange:f}=art(l,n),{addToLeft:g,addToRight:b}=lrt(r,l,n),v=Re(),m=Re(),w=y=>{switch(y){case"left":v.value.query="";break;case"right":m.value.query="";break}},k=Oe(()=>r.buttonTexts.length===2),T=Oe(()=>r.titles[0]||o("el.transfer.titles.0")),S=Oe(()=>r.titles[1]||o("el.transfer.titles.1")),I=Oe(()=>r.filterPlaceholder||o("el.transfer.filterPlaceholder"));Pt(()=>r.modelValue,()=>{var y;r.validateEvent&&((y=s==null?void 0:s.validate)==null||y.call(s,"change").catch(_=>void 0))});const O=Oe(()=>y=>r.renderContent?r.renderContent(Yn,y):i.default?i.default({option:y}):Yn("span",y[u.value.label]||y[u.value.key]));return t({clearQuery:w,leftPanel:v,rightPanel:m}),(y,_)=>(Ce(),We("div",{class:De(W(a).b())},[xe(Cie,{ref_key:"leftPanel",ref:v,data:W(c),"option-render":W(O),placeholder:W(I),title:W(T),filterable:y.filterable,format:y.format,"filter-method":y.filterMethod,"default-checked":y.leftDefaultChecked,props:r.props,onCheckedChange:W(h)},{default:ot(()=>[rn(y.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),at("div",{class:De(W(a).e("buttons"))},[xe(W(mo),{type:"primary",class:De([W(a).e("button"),W(a).is("with-texts",W(k))]),disabled:W(Vc)(l.rightChecked),onClick:W(g)},{default:ot(()=>[xe(W(Ln),null,{default:ot(()=>[xe(W(W2))]),_:1}),W(rl)(y.buttonTexts[0])?xt("v-if",!0):(Ce(),We("span",drt,en(y.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),xe(W(mo),{type:"primary",class:De([W(a).e("button"),W(a).is("with-texts",W(k))]),disabled:W(Vc)(l.leftChecked),onClick:W(b)},{default:ot(()=>[W(rl)(y.buttonTexts[1])?xt("v-if",!0):(Ce(),We("span",hrt,en(y.buttonTexts[1]),1)),xe(W(Ln),null,{default:ot(()=>[xe(W(Tp))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),xe(Cie,{ref_key:"rightPanel",ref:m,data:W(d),"option-render":W(O),placeholder:W(I),filterable:y.filterable,format:y.format,"filter-method":y.filterMethod,title:W(S),"default-checked":y.rightDefaultChecked,props:r.props,onCheckedChange:W(f)},{default:ot(()=>[rn(y.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var grt=Bn(frt,[["__file","transfer.vue"]]);const mrt=Xi(grt),MOe=Symbol("uploadContextKey"),vrt="ElUpload";class yrt extends Error{constructor(t,n,r,i){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=i}}function Oie(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new yrt(r,n.status,t.method,e)}function brt(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const wrt=e=>{typeof XMLHttpRequest>"u"&&hc(vrt,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",o=>{const a=o;a.percent=o.total>0?o.loaded/o.total*100:0,e.onProgress(a)});const r=new FormData;if(e.data)for(const[o,a]of Object.entries(e.data))Tr(a)&&a.length?r.append(o,...a):r.append(o,a);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Oie(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Oie(n,e,t));e.onSuccess(brt(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const i=e.headers||{};if(i instanceof Headers)i.forEach((o,a)=>t.setRequestHeader(a,o));else for(const[o,a]of Object.entries(i))il(a)||t.setRequestHeader(o,String(a));return t.send(r),t},LOe=["text","picture","picture-card"];let Crt=1;const WW=()=>Date.now()+Crt++,BOe=Tn({action:{type:String,default:"#"},headers:{type:jt(Object)},method:{type:String,default:"post"},data:{type:jt([Object,Function,Promise]),default:()=>dh({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:jt(Array),default:()=>dh([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:LOe,default:"text"},httpRequest:{type:jt(Function),default:wrt},disabled:Boolean,limit:Number}),Ort=Tn({...BOe,beforeUpload:{type:jt(Function),default:go},beforeRemove:{type:jt(Function)},onRemove:{type:jt(Function),default:go},onChange:{type:jt(Function),default:go},onPreview:{type:jt(Function),default:go},onSuccess:{type:jt(Function),default:go},onProgress:{type:jt(Function),default:go},onError:{type:jt(Function),default:go},onExceed:{type:jt(Function),default:go}}),xrt=Tn({files:{type:jt(Array),default:()=>dh([])},disabled:{type:Boolean,default:!1},handlePreview:{type:jt(Function),default:go},listType:{type:String,values:LOe,default:"text"}}),Srt={remove:e=>!!e},Art=["onKeydown"],Irt=["src"],krt=["onClick"],Ert=["title"],_rt=["onClick"],Trt=["onClick"],Prt=ft({name:"ElUploadList"}),Drt=ft({...Prt,props:xrt,emits:Srt,setup(e,{emit:t}){const n=e,{t:r}=uo(),i=cn("upload"),o=cn("icon"),a=cn("list"),s=bd(),l=Re(!1),u=Oe(()=>[i.b("list"),i.bm("list",n.listType),i.is("disabled",n.disabled)]),c=d=>{t("remove",d)};return(d,h)=>(Ce(),mt(hU,{tag:"ul",class:De(W(u)),name:W(a).b()},{default:ot(()=>[(Ce(!0),We(un,null,xr(d.files,f=>(Ce(),We("li",{key:f.uid||f.name,class:De([W(i).be("list","item"),W(i).is(f.status),{focusing:l.value}]),tabindex:"0",onKeydown:Zi(g=>!W(s)&&c(f),["delete"]),onFocus:h[0]||(h[0]=g=>l.value=!0),onBlur:h[1]||(h[1]=g=>l.value=!1),onClick:h[2]||(h[2]=g=>l.value=!1)},[rn(d.$slots,"default",{file:f},()=>[d.listType==="picture"||f.status!=="uploading"&&d.listType==="picture-card"?(Ce(),We("img",{key:0,class:De(W(i).be("list","item-thumbnail")),src:f.url,alt:""},null,10,Irt)):xt("v-if",!0),f.status==="uploading"||d.listType!=="picture-card"?(Ce(),We("div",{key:1,class:De(W(i).be("list","item-info"))},[at("a",{class:De(W(i).be("list","item-name")),onClick:rr(g=>d.handlePreview(f),["prevent"])},[xe(W(Ln),{class:De(W(o).m("document"))},{default:ot(()=>[xe(W(HHe))]),_:1},8,["class"]),at("span",{class:De(W(i).be("list","item-file-name")),title:f.name},en(f.name),11,Ert)],10,krt),f.status==="uploading"?(Ce(),mt(W(Ret),{key:0,type:d.listType==="picture-card"?"circle":"line","stroke-width":d.listType==="picture-card"?6:2,percentage:Number(f.percentage),style:En(d.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):xt("v-if",!0)],2)):xt("v-if",!0),at("label",{class:De(W(i).be("list","item-status-label"))},[d.listType==="text"?(Ce(),mt(W(Ln),{key:0,class:De([W(o).m("upload-success"),W(o).m("circle-check")])},{default:ot(()=>[xe(W(NU))]),_:1},8,["class"])):["picture-card","picture"].includes(d.listType)?(Ce(),mt(W(Ln),{key:1,class:De([W(o).m("upload-success"),W(o).m("check")])},{default:ot(()=>[xe(W(SL))]),_:1},8,["class"])):xt("v-if",!0)],2),W(s)?xt("v-if",!0):(Ce(),mt(W(Ln),{key:2,class:De(W(o).m("close")),onClick:g=>c(f)},{default:ot(()=>[xe(W(yg))]),_:2},1032,["class","onClick"])),xt(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),xt(" This is a bug which needs to be fixed "),xt(" TODO: Fix the incorrect navigation interaction "),W(s)?xt("v-if",!0):(Ce(),We("i",{key:3,class:De(W(o).m("close-tip"))},en(W(r)("el.upload.deleteTip")),3)),d.listType==="picture-card"?(Ce(),We("span",{key:4,class:De(W(i).be("list","item-actions"))},[at("span",{class:De(W(i).be("list","item-preview")),onClick:g=>d.handlePreview(f)},[xe(W(Ln),{class:De(W(o).m("zoom-in"))},{default:ot(()=>[xe(W(sze))]),_:1},8,["class"])],10,_rt),W(s)?xt("v-if",!0):(Ce(),We("span",{key:0,class:De(W(i).be("list","item-delete")),onClick:g=>c(f)},[xe(W(Ln),{class:De(W(o).m("delete"))},{default:ot(()=>[xe(W(jHe))]),_:1},8,["class"])],10,Trt))],2)):xt("v-if",!0)])],42,Art))),128)),rn(d.$slots,"append")]),_:3},8,["class","name"]))}});var xie=Bn(Drt,[["__file","upload-list.vue"]]);const Rrt=Tn({disabled:{type:Boolean,default:!1}}),$rt={file:e=>Tr(e)},Mrt=["onDrop","onDragover"],FOe="ElUploadDrag",Lrt=ft({name:FOe}),Brt=ft({...Lrt,props:Rrt,emits:$rt,setup(e,{emit:t}){const n=Ht(MOe);n||hc(FOe,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=cn("upload"),i=Re(!1),o=bd(),a=l=>{if(o.value)return;i.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files),c=n.accept.value;if(!c){t("file",u);return}const d=u.filter(h=>{const{type:f,name:g}=h,b=g.includes(".")?`.${g.split(".").pop()}`:"",v=f.replace(/\/.*$/,"");return c.split(",").map(m=>m.trim()).filter(m=>m).some(m=>m.startsWith(".")?b===m:/\/\*$/.test(m)?v===m.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(m)?f===m:!1)});t("file",d)},s=()=>{o.value||(i.value=!0)};return(l,u)=>(Ce(),We("div",{class:De([W(r).b("dragger"),W(r).is("dragover",i.value)]),onDrop:rr(a,["prevent"]),onDragover:rr(s,["prevent"]),onDragleave:u[0]||(u[0]=rr(c=>i.value=!1,["prevent"]))},[rn(l.$slots,"default")],42,Mrt))}});var Frt=Bn(Brt,[["__file","upload-dragger.vue"]]);const Nrt=Tn({...BOe,beforeUpload:{type:jt(Function),default:go},onRemove:{type:jt(Function),default:go},onStart:{type:jt(Function),default:go},onSuccess:{type:jt(Function),default:go},onProgress:{type:jt(Function),default:go},onError:{type:jt(Function),default:go},onExceed:{type:jt(Function),default:go}}),Vrt=["onKeydown"],jrt=["name","multiple","accept"],Wrt=ft({name:"ElUploadContent",inheritAttrs:!1}),Hrt=ft({...Wrt,props:Nrt,setup(e,{expose:t}){const n=e,r=cn("upload"),i=bd(),o=so({}),a=so(),s=g=>{if(g.length===0)return;const{autoUpload:b,limit:v,fileList:m,multiple:w,onStart:k,onExceed:T}=n;if(v&&m.length+g.length>v){T(g,m);return}w||(g=g.slice(0,1));for(const S of g){const I=S;I.uid=WW(),k(I),b&&l(I)}},l=async g=>{if(a.value.value="",!n.beforeUpload)return c(g);let b,v={};try{const w=n.data,k=n.beforeUpload(g);v=Ene(n.data)?U$(n.data):n.data,b=await k,Ene(n.data)&&Ep(w,v)&&(v=U$(n.data))}catch{b=!1}if(b===!1){n.onRemove(g);return}let m=g;b instanceof Blob&&(b instanceof File?m=b:m=new File([b],g.name,{type:g.type})),c(Object.assign(m,{uid:g.uid}),v)},u=async(g,b)=>_i(g)?g(b):g,c=async(g,b)=>{const{headers:v,data:m,method:w,withCredentials:k,name:T,action:S,onProgress:I,onSuccess:O,onError:y,httpRequest:_}=n;try{b=await u(b??m,g)}catch{n.onRemove(g);return}const{uid:A}=g,R={headers:v||{},withCredentials:k,file:g,data:b,method:w,filename:T,action:S,onProgress:C=>{I(C,g)},onSuccess:C=>{O(C,g),delete o.value[A]},onError:C=>{y(C,g),delete o.value[A]}},D=_(R);o.value[A]=D,D instanceof Promise&&D.then(R.onSuccess,R.onError)},d=g=>{const b=g.target.files;b&&s(Array.from(b))},h=()=>{i.value||(a.value.value="",a.value.click())},f=()=>{h()};return t({abort:g=>{OHe(o.value).filter(g?([b])=>String(g.uid)===b:()=>!0).forEach(([b,v])=>{v instanceof XMLHttpRequest&&v.abort(),delete o.value[b]})},upload:l}),(g,b)=>(Ce(),We("div",{class:De([W(r).b(),W(r).m(g.listType),W(r).is("drag",g.drag)]),tabindex:"0",onClick:h,onKeydown:Zi(rr(f,["self"]),["enter","space"])},[g.drag?(Ce(),mt(Frt,{key:0,disabled:W(i),onFile:s},{default:ot(()=>[rn(g.$slots,"default")]),_:3},8,["disabled"])):rn(g.$slots,"default",{key:1}),at("input",{ref_key:"inputRef",ref:a,class:De(W(r).e("input")),name:g.name,multiple:g.multiple,accept:g.accept,type:"file",onChange:d,onClick:b[0]||(b[0]=rr(()=>{},["stop"]))},null,42,jrt)],42,Vrt))}});var Sie=Bn(Hrt,[["__file","upload-content.vue"]]);const Aie="ElUpload",Iie=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},zrt=(e,t)=>{const n=g6e(e,"fileList",void 0,{passive:!0}),r=h=>n.value.find(f=>f.uid===h.uid);function i(h){var f;(f=t.value)==null||f.abort(h)}function o(h=["ready","uploading","success","fail"]){n.value=n.value.filter(f=>!h.includes(f.status))}const a=(h,f)=>{const g=r(f);g&&(console.error(h),g.status="fail",n.value.splice(n.value.indexOf(g),1),e.onError(h,g,n.value),e.onChange(g,n.value))},s=(h,f)=>{const g=r(f);g&&(e.onProgress(h,g,n.value),g.status="uploading",g.percentage=Math.round(h.percent))},l=(h,f)=>{const g=r(f);g&&(g.status="success",g.response=h,e.onSuccess(h,g,n.value),e.onChange(g,n.value))},u=h=>{il(h.uid)&&(h.uid=WW());const f={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{f.url=URL.createObjectURL(h)}catch(g){g.message,e.onError(g,f,n.value)}n.value=[...n.value,f],e.onChange(f,n.value)},c=async h=>{const f=h instanceof File?r(h):h;f||hc(Aie,"file to be removed not found");const g=b=>{i(b);const v=n.value;v.splice(v.indexOf(b),1),e.onRemove(b,v),Iie(b)};e.beforeRemove?await e.beforeRemove(f,n.value)!==!1&&g(f):g(f)};function d(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var f;return h&&((f=t.value)==null?void 0:f.upload(h))})}return Pt(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(f=>{const{raw:g,url:b}=f;if(!b&&g)try{f.url=URL.createObjectURL(g)}catch(v){e.onError(v,f,n.value)}return f}))}),Pt(n,h=>{for(const f of h)f.uid||(f.uid=WW()),f.status||(f.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:i,clearFiles:o,handleError:a,handleProgress:s,handleStart:u,handleSuccess:l,handleRemove:c,submit:d,revokeFileObjectURL:Iie}},Zrt=ft({name:"ElUpload"}),Grt=ft({...Zrt,props:Ort,setup(e,{expose:t}){const n=e,r=bd(),i=so(),{abort:o,submit:a,clearFiles:s,uploadFiles:l,handleStart:u,handleError:c,handleRemove:d,handleSuccess:h,handleProgress:f,revokeFileObjectURL:g}=zrt(n,i),b=Oe(()=>n.listType==="picture-card"),v=Oe(()=>({...n,fileList:l.value,onStart:u,onProgress:f,onSuccess:h,onError:c,onRemove:d}));return Mo(()=>{l.value.forEach(g)}),Or(MOe,{accept:yo(n,"accept")}),t({abort:o,submit:a,clearFiles:s,handleStart:u,handleRemove:d}),(m,w)=>(Ce(),We("div",null,[W(b)&&m.showFileList?(Ce(),mt(xie,{key:0,disabled:W(r),"list-type":m.listType,files:W(l),"handle-preview":m.onPreview,onRemove:W(d)},a0({append:ot(()=>[xe(Sie,jr({ref_key:"uploadRef",ref:i},W(v)),{default:ot(()=>[m.$slots.trigger?rn(m.$slots,"trigger",{key:0}):xt("v-if",!0),!m.$slots.trigger&&m.$slots.default?rn(m.$slots,"default",{key:1}):xt("v-if",!0)]),_:3},16)]),_:2},[m.$slots.file?{name:"default",fn:ot(({file:k})=>[rn(m.$slots,"file",{file:k})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):xt("v-if",!0),!W(b)||W(b)&&!m.showFileList?(Ce(),mt(Sie,jr({key:1,ref_key:"uploadRef",ref:i},W(v)),{default:ot(()=>[m.$slots.trigger?rn(m.$slots,"trigger",{key:0}):xt("v-if",!0),!m.$slots.trigger&&m.$slots.default?rn(m.$slots,"default",{key:1}):xt("v-if",!0)]),_:3},16)):xt("v-if",!0),m.$slots.trigger?rn(m.$slots,"default",{key:2}):xt("v-if",!0),rn(m.$slots,"tip"),!W(b)&&m.showFileList?(Ce(),mt(xie,{key:3,disabled:W(r),"list-type":m.listType,files:W(l),"handle-preview":m.onPreview,onRemove:W(d)},a0({_:2},[m.$slots.file?{name:"default",fn:ot(({file:k})=>[rn(m.$slots,"file",{file:k})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):xt("v-if",!0)]))}});var Qrt=Bn(Grt,[["__file","upload.vue"]]);const NOe=Xi(Qrt);function Urt(e){let t;const n=Re(!1),r=Br({...e,originalPosition:"",originalOverflow:"",visible:!1});function i(h){r.text=h}function o(){const h=r.parent,f=d.ns;if(!h.vLoadingAddClassList){let g=h.getAttribute("loading-number");g=Number.parseInt(g)-1,g?h.setAttribute("loading-number",g.toString()):(s0(h,f.bm("parent","relative")),h.removeAttribute("loading-number")),s0(h,f.bm("parent","hidden"))}a(),c.unmount()}function a(){var h,f;(f=(h=d.$el)==null?void 0:h.parentNode)==null||f.removeChild(d.$el)}function s(){var h;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(l,400),r.visible=!1,(h=e.closed)==null||h.call(e))}function l(){if(!n.value)return;const h=r.parent;n.value=!1,h.vLoadingAddClassList=void 0,o()}const u=ft({name:"ElLoading",setup(h,{expose:f}){const{ns:g,zIndex:b}=eCe("loading");return f({ns:g,zIndex:b}),()=>{const v=r.spinner||r.svg,m=Yn("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...v?{innerHTML:v}:{}},[Yn("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),w=r.text?Yn("p",{class:g.b("text")},[r.text]):void 0;return Yn(ic,{name:g.b("fade"),onAfterLeave:l},{default:ot(()=>[Kn(xe("div",{style:{backgroundColor:r.background||""},class:[g.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Yn("div",{class:g.b("spinner")},[m,w])]),[[Ni,r.visible]])])})}}}),c=c1e(u),d=c.mount(document.createElement("div"));return{...rc(r),setText:i,removeElLoadingChild:a,close:s,handleAfterLeave:l,vm:d,get $el(){return d.$el}}}let yD;const HW=function(e={}){if(!Ii)return;const t=Xrt(e);if(t.fullscreen&&yD)return yD;const n=Urt({...t,closed:()=>{var i;(i=t.closed)==null||i.call(t),t.fullscreen&&(yD=void 0)}});Yrt(t,t.parent,n),kie(t,t.parent,n),t.parent.vLoadingAddClassList=()=>kie(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),mn(()=>n.visible.value=t.visible),t.fullscreen&&(yD=n),n},Xrt=e=>{var t,n,r,i;let o;return vi(e.target)?o=(t=document.querySelector(e.target))!=null?t:document.body:o=e.target||document.body,{parent:o===document.body||e.body?document.body:o,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:o===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(i=e.visible)!=null?i:!0,target:o}},Yrt=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,i={};if(e.fullscreen)n.originalPosition.value=Ky(document.body,"position"),n.originalOverflow.value=Ky(document.body,"overflow"),i.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Ky(document.body,"position"),await mn();for(const o of["top","left"]){const a=o==="top"?"scrollTop":"scrollLeft";i[o]=`${e.target.getBoundingClientRect()[o]+document.body[a]+document.documentElement[a]-Number.parseInt(Ky(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])i[o]=`${e.target.getBoundingClientRect()[o]}px`}else n.originalPosition.value=Ky(t,"position");for(const[o,a]of Object.entries(i))n.$el.style[o]=a},kie=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?s0(t,r.bm("parent","relative")):j2(t,r.bm("parent","relative")),e.fullscreen&&e.lock?j2(t,r.bm("parent","hidden")):s0(t,r.bm("parent","hidden"))},zW=Symbol("ElLoading"),Eie=(e,t)=>{var n,r,i,o;const a=t.instance,s=h=>Ha(t.value)?t.value[h]:void 0,l=h=>{const f=vi(h)&&(a==null?void 0:a[h])||h;return f&&Re(f)},u=h=>l(s(h)||e.getAttribute(`element-loading-${S6e(h)}`)),c=(n=s("fullscreen"))!=null?n:t.modifiers.fullscreen,d={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(r=s("target"))!=null?r:c?void 0:e,body:(i=s("body"))!=null?i:t.modifiers.body,lock:(o=s("lock"))!=null?o:t.modifiers.lock};e[zW]={options:d,instance:HW(d)}},Krt=(e,t)=>{for(const n of Object.keys(t))ni(t[n])&&(t[n].value=e[n])},_ie={mounted(e,t){t.value&&Eie(e,t)},updated(e,t){const n=e[zW];t.oldValue!==t.value&&(t.value&&!t.oldValue?Eie(e,t):t.value&&t.oldValue?Ha(t.value)&&Krt(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[zW])==null||t.instance.close()}},qrt={install(e){e.directive("loading",_ie),e.config.globalProperties.$loading=HW},directive:_ie,service:HW},VOe=["success","info","warning","error"],Kl=dh({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Ii?document.body:void 0}),Jrt=Tn({customClass:{type:String,default:Kl.customClass},center:{type:Boolean,default:Kl.center},dangerouslyUseHTMLString:{type:Boolean,default:Kl.dangerouslyUseHTMLString},duration:{type:Number,default:Kl.duration},icon:{type:iu,default:Kl.icon},id:{type:String,default:Kl.id},message:{type:jt([String,Object,Function]),default:Kl.message},onClose:{type:jt(Function),required:!1},showClose:{type:Boolean,default:Kl.showClose},type:{type:String,values:VOe,default:Kl.type},offset:{type:Number,default:Kl.offset},zIndex:{type:Number,default:Kl.zIndex},grouping:{type:Boolean,default:Kl.grouping},repeatNum:{type:Number,default:Kl.repeatNum}}),eit={destroy:()=>!0},Zd=qQ([]),tit=e=>{const t=Zd.findIndex(i=>i.id===e),n=Zd[t];let r;return t>0&&(r=Zd[t-1]),{current:n,prev:r}},nit=e=>{const{prev:t}=tit(e);return t?t.vm.exposed.bottom.value:0},rit=(e,t)=>Zd.findIndex(n=>n.id===e)>0?20:t,iit=["id"],oit=["innerHTML"],ait=ft({name:"ElMessage"}),sit=ft({...ait,props:Jrt,emits:eit,setup(e,{expose:t}){const n=e,{Close:r}=Swe,{ns:i,zIndex:o}=eCe("message"),{currentZIndex:a,nextZIndex:s}=o,l=Re(),u=Re(!1),c=Re(0);let d;const h=Oe(()=>n.type?n.type==="error"?"danger":n.type:"info"),f=Oe(()=>{const O=n.type;return{[i.bm("icon",O)]:O&&K$[O]}}),g=Oe(()=>n.icon||K$[n.type]||""),b=Oe(()=>nit(n.id)),v=Oe(()=>rit(n.id,n.offset)+b.value),m=Oe(()=>c.value+v.value),w=Oe(()=>({top:`${v.value}px`,zIndex:a.value}));function k(){n.duration!==0&&({stop:d}=tW(()=>{S()},n.duration))}function T(){d==null||d()}function S(){u.value=!1}function I({code:O}){O===nr.esc&&S()}return _n(()=>{k(),s(),u.value=!0}),Pt(()=>n.repeatNum,()=>{T(),k()}),lu(document,"keydown",I),uh(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:m,close:S}),(O,y)=>(Ce(),mt(ic,{name:W(i).b("fade"),onBeforeLeave:O.onClose,onAfterLeave:y[0]||(y[0]=_=>O.$emit("destroy")),persisted:""},{default:ot(()=>[Kn(at("div",{id:O.id,ref_key:"messageRef",ref:l,class:De([W(i).b(),{[W(i).m(O.type)]:O.type&&!O.icon},W(i).is("center",O.center),W(i).is("closable",O.showClose),O.customClass]),style:En(W(w)),role:"alert",onMouseenter:T,onMouseleave:k},[O.repeatNum>1?(Ce(),mt(W(NUe),{key:0,value:O.repeatNum,type:W(h),class:De(W(i).e("badge"))},null,8,["value","type","class"])):xt("v-if",!0),W(g)?(Ce(),mt(W(Ln),{key:1,class:De([W(i).e("icon"),W(f)])},{default:ot(()=>[(Ce(),mt(ei(W(g))))]),_:1},8,["class"])):xt("v-if",!0),rn(O.$slots,"default",{},()=>[O.dangerouslyUseHTMLString?(Ce(),We(un,{key:1},[xt(" Caution here, message could've been compromised, never use user's input as message "),at("p",{class:De(W(i).e("content")),innerHTML:O.message},null,10,oit)],2112)):(Ce(),We("p",{key:0,class:De(W(i).e("content"))},en(O.message),3))]),O.showClose?(Ce(),mt(W(Ln),{key:2,class:De(W(i).e("closeBtn")),onClick:rr(S,["stop"])},{default:ot(()=>[xe(W(r))]),_:1},8,["class","onClick"])):xt("v-if",!0)],46,iit),[[Ni,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var lit=Bn(sit,[["__file","message.vue"]]);let uit=1;const jOe=e=>{const t=!e||vi(e)||Ll(e)||_i(e)?{message:e}:e,n={...Kl,...t};if(!n.appendTo)n.appendTo=document.body;else if(vi(n.appendTo)){let r=document.querySelector(n.appendTo);Xb(r)||(r=document.body),n.appendTo=r}return n},cit=e=>{const t=Zd.indexOf(e);if(t===-1)return;Zd.splice(t,1);const{handler:n}=e;n.close()},dit=({appendTo:e,...t},n)=>{const r=`message_${uit++}`,i=t.onClose,o=document.createElement("div"),a={...t,id:r,onClose:()=>{i==null||i(),cit(u)},onDestroy:()=>{ine(null,o)}},s=xe(lit,a,_i(a.message)||Ll(a.message)?{default:_i(a.message)?a.message:()=>a.message}:null);s.appContext=n||TO._context,ine(s,o),e.appendChild(o.firstElementChild);const l=s.component,u={id:r,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return u},TO=(e={},t)=>{if(!Ii)return{close:()=>{}};if($r(xre.max)&&Zd.length>=xre.max)return{close:()=>{}};const n=jOe(e);if(n.grouping&&Zd.length){const i=Zd.find(({vnode:o})=>{var a;return((a=o.props)==null?void 0:a.message)===n.message});if(i)return i.props.repeatNum+=1,i.props.type=n.type,i.handler}const r=dit(n,t);return Zd.push(r),r.handler};VOe.forEach(e=>{TO[e]=(t={},n)=>{const r=jOe(t);return TO({...r,type:e},n)}});function hit(e){for(const t of Zd)(!e||e===t.props.type)&&t.handler.close()}TO.closeAll=hit;TO._context=null;const n5=cze(TO,"$message");var r5={exports:{}};/**
|
|
* @license
|
|
* Lodash <https://lodash.com/>
|
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
* Released under MIT license <https://lodash.com/license>
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
*/r5.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",d=1,h=2,f=4,g=1,b=2,v=1,m=2,w=4,k=8,T=16,S=32,I=64,O=128,y=256,_=512,A=30,R="...",D=800,C=16,x=1,P=2,$=3,L=1/0,V=9007199254740991,H=17976931348623157e292,Q=NaN,U=4294967295,K=U-1,J=U>>>1,ue=[["ary",O],["bind",v],["bindKey",m],["curry",k],["curryRight",T],["flip",_],["partial",S],["partialRight",I],["rearg",y]],ee="[object Arguments]",N="[object Array]",q="[object AsyncFunction]",G="[object Boolean]",ne="[object Date]",le="[object DOMException]",oe="[object Error]",ve="[object Function]",de="[object GeneratorFunction]",ae="[object Map]",be="[object Number]",ie="[object Null]",ce="[object Object]",pe="[object Promise]",X="[object Proxy]",Z="[object RegExp]",Y="[object Set]",se="[object String]",fe="[object Symbol]",me="[object Undefined]",Ae="[object WeakMap]",Be="[object WeakSet]",Ye="[object ArrayBuffer]",Qe="[object DataView]",nt="[object Float32Array]",st="[object Float64Array]",Le="[object Int8Array]",Me="[object Int16Array]",je="[object Int32Array]",Ue="[object Uint8Array]",Te="[object Uint8ClampedArray]",bt="[object Uint16Array]",At="[object Uint32Array]",ht=/\b__p \+= '';/g,Pe=/\b(__p \+=) '' \+/g,Ze=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dt=/&(?:amp|lt|gt|quot|#39);/g,Mt=/[&<>"']/g,He=RegExp(dt.source),wt=RegExp(Mt.source),Ee=/<%-([\s\S]+?)%>/g,Xe=/<%([\s\S]+?)%>/g,ct=/<%=([\s\S]+?)%>/g,_t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qt=/^\w*$/,ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kn=/[\\^$.*+?()[\]{}|]/g,hr=RegExp(kn.source),pr=/^\s+/,Wr=/\s/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ke=/\{\n\/\* \[wrapped with (.+)\] \*/,et=/,? & /,$t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Lt=/[()=,{}\[\]\/\s]/,Mn=/\\(\\)?/g,qe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kt=/\w*$/,Ut=/^[-+]0x[0-9a-f]+$/i,nn=/^0b[01]+$/i,Cn=/^\[object .+?Constructor\]$/,Pn=/^0o[0-7]+$/i,lt=/^(?:0|[1-9]\d*)$/,It=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xt=/($^)/,on=/['\n\r\u2028\u2029\\]/g,Vn="\\ud800-\\udfff",Ur="\\u0300-\\u036f",yr="\\ufe20-\\ufe2f",Fn="\\u20d0-\\u20ff",dn=Ur+yr+Fn,ri="\\u2700-\\u27bf",ji="a-z\\xdf-\\xf6\\xf8-\\xff",ci="\\xac\\xb1\\xd7\\xf7",Ie="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Fe="\\u2000-\\u206f",Dt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zt="A-Z\\xc0-\\xd6\\xd8-\\xde",yt="\\ufe0e\\ufe0f",Zt=ci+Ie+Fe+Dt,An="['’]",Sr="["+Vn+"]",ii="["+Zt+"]",ki="["+dn+"]",ks="\\d+",Xn="["+ri+"]",Sh="["+ji+"]",Ah="[^"+Vn+Zt+ks+ri+ji+zt+"]",ml="\\ud83c[\\udffb-\\udfff]",Ra="(?:"+ki+"|"+ml+")",Ng="[^"+Vn+"]",xd="(?:\\ud83c[\\udde6-\\uddff]){2}",wu="[\\ud800-\\udbff][\\udc00-\\udfff]",vl="["+zt+"]",Ih="\\u200d",uf="(?:"+Sh+"|"+Ah+")",cf="(?:"+vl+"|"+Ah+")",kh="(?:"+An+"(?:d|ll|m|re|s|t|ve))?",uS="(?:"+An+"(?:D|LL|M|RE|S|T|VE))?",cS=Ra+"?",$T="["+yt+"]?",y9="(?:"+Ih+"(?:"+[Ng,xd,wu].join("|")+")"+$T+cS+")*",MT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",LT=$T+cS+y9,b9="(?:"+[Xn,xd,wu].join("|")+")"+LT,W1="(?:"+[Ng+ki+"?",ki,xd,wu,Sr].join("|")+")",H0=RegExp(An,"g"),w9=RegExp(ki,"g"),dS=RegExp(ml+"(?="+ml+")|"+W1+LT,"g"),C9=RegExp([vl+"?"+Sh+"+"+kh+"(?="+[ii,vl,"$"].join("|")+")",cf+"+"+uS+"(?="+[ii,vl+uf,"$"].join("|")+")",vl+"?"+uf+"+"+kh,vl+"+"+uS,Sd,MT,ks,b9].join("|"),"g"),O9=RegExp("["+Ih+Vn+dn+yt+"]"),hS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,BT=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],x9=-1,Yi={};Yi[nt]=Yi[st]=Yi[Le]=Yi[Me]=Yi[je]=Yi[Ue]=Yi[Te]=Yi[bt]=Yi[At]=!0,Yi[ee]=Yi[N]=Yi[Ye]=Yi[G]=Yi[Qe]=Yi[ne]=Yi[oe]=Yi[ve]=Yi[ae]=Yi[be]=Yi[ce]=Yi[Z]=Yi[Y]=Yi[se]=Yi[Ae]=!1;var Wi={};Wi[ee]=Wi[N]=Wi[Ye]=Wi[Qe]=Wi[G]=Wi[ne]=Wi[nt]=Wi[st]=Wi[Le]=Wi[Me]=Wi[je]=Wi[ae]=Wi[be]=Wi[ce]=Wi[Z]=Wi[Y]=Wi[se]=Wi[fe]=Wi[Ue]=Wi[Te]=Wi[bt]=Wi[At]=!0,Wi[oe]=Wi[ve]=Wi[Ae]=!1;var H1={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},z1={"&":"&","<":"<",">":">",'"':""","'":"'"},pS={"&":"&","<":"<",">":">",""":'"',"'":"'"},FT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},NT=parseFloat,Z1=parseInt,VT=typeof Dl=="object"&&Dl&&Dl.Object===Object&&Dl,jT=typeof self=="object"&&self&&self.Object===Object&&self,Hi=VT||jT||Function("return this")(),fS=t&&!t.nodeType&&t,df=fS&&!0&&e&&!e.nodeType&&e,G1=df&&df.exports===fS,Q1=G1&&VT.process,ma=function(){try{var St=df&&df.require&&df.require("util").types;return St||Q1&&Q1.binding&&Q1.binding("util")}catch{}}(),U1=ma&&ma.isArrayBuffer,gc=ma&&ma.isDate,z0=ma&&ma.isMap,X1=ma&&ma.isRegExp,hf=ma&&ma.isSet,WT=ma&&ma.isTypedArray;function yl(St,Wt,Bt){switch(Bt.length){case 0:return St.call(Wt);case 1:return St.call(Wt,Bt[0]);case 2:return St.call(Wt,Bt[0],Bt[1]);case 3:return St.call(Wt,Bt[0],Bt[1],Bt[2])}return St.apply(Wt,Bt)}function S9(St,Wt,Bt,Nn){for(var br=-1,di=St==null?0:St.length;++br<di;){var aa=St[br];Wt(Nn,aa,Bt(aa),St)}return Nn}function jl(St,Wt){for(var Bt=-1,Nn=St==null?0:St.length;++Bt<Nn&&Wt(St[Bt],Bt,St)!==!1;);return St}function HT(St,Wt){for(var Bt=St==null?0:St.length;Bt--&&Wt(St[Bt],Bt,St)!==!1;);return St}function gS(St,Wt){for(var Bt=-1,Nn=St==null?0:St.length;++Bt<Nn;)if(!Wt(St[Bt],Bt,St))return!1;return!0}function Eh(St,Wt){for(var Bt=-1,Nn=St==null?0:St.length,br=0,di=[];++Bt<Nn;){var aa=St[Bt];Wt(aa,Bt,St)&&(di[br++]=aa)}return di}function Y1(St,Wt){var Bt=St==null?0:St.length;return!!Bt&&ho(St,Wt,0)>-1}function mS(St,Wt,Bt){for(var Nn=-1,br=St==null?0:St.length;++Nn<br;)if(Bt(Wt,St[Nn]))return!0;return!1}function co(St,Wt){for(var Bt=-1,Nn=St==null?0:St.length,br=Array(Nn);++Bt<Nn;)br[Bt]=Wt(St[Bt],Bt,St);return br}function Ad(St,Wt){for(var Bt=-1,Nn=Wt.length,br=St.length;++Bt<Nn;)St[br+Bt]=Wt[Bt];return St}function vS(St,Wt,Bt,Nn){var br=-1,di=St==null?0:St.length;for(Nn&&di&&(Bt=St[++br]);++br<di;)Bt=Wt(Bt,St[br],br,St);return Bt}function zT(St,Wt,Bt,Nn){var br=St==null?0:St.length;for(Nn&&br&&(Bt=St[--br]);br--;)Bt=Wt(Bt,St[br],br,St);return Bt}function Vg(St,Wt){for(var Bt=-1,Nn=St==null?0:St.length;++Bt<Nn;)if(Wt(St[Bt],Bt,St))return!0;return!1}var jg=bS("length");function A9(St){return St.split("")}function I9(St){return St.match($t)||[]}function ZT(St,Wt,Bt){var Nn;return Bt(St,function(br,di,aa){if(Wt(br,di,aa))return Nn=di,!1}),Nn}function _h(St,Wt,Bt,Nn){for(var br=St.length,di=Bt+(Nn?1:-1);Nn?di--:++di<br;)if(Wt(St[di],di,St))return di;return-1}function ho(St,Wt,Bt){return Wt===Wt?YT(St,Wt,Bt):_h(St,yS,Bt)}function k9(St,Wt,Bt,Nn){for(var br=Bt-1,di=St.length;++br<di;)if(Nn(St[br],Wt))return br;return-1}function yS(St){return St!==St}function Wg(St,Wt){var Bt=St==null?0:St.length;return Bt?q1(St,Wt)/Bt:Q}function bS(St){return function(Wt){return Wt==null?n:Wt[St]}}function K1(St){return function(Wt){return St==null?n:St[Wt]}}function GT(St,Wt,Bt,Nn,br){return br(St,function(di,aa,Li){Bt=Nn?(Nn=!1,di):Wt(Bt,di,aa,Li)}),Bt}function wS(St,Wt){var Bt=St.length;for(St.sort(Wt);Bt--;)St[Bt]=St[Bt].value;return St}function q1(St,Wt){for(var Bt,Nn=-1,br=St.length;++Nn<br;){var di=Wt(St[Nn]);di!==n&&(Bt=Bt===n?di:Bt+di)}return Bt}function CS(St,Wt){for(var Bt=-1,Nn=Array(St);++Bt<St;)Nn[Bt]=Wt(Bt);return Nn}function E9(St,Wt){return co(Wt,function(Bt){return[Bt,St[Bt]]})}function OS(St){return St&&St.slice(0,IS(St)+1).replace(pr,"")}function zs(St){return function(Wt){return St(Wt)}}function xS(St,Wt){return co(Wt,function(Bt){return St[Bt]})}function Id(St,Wt){return St.has(Wt)}function mc(St,Wt){for(var Bt=-1,Nn=St.length;++Bt<Nn&&ho(Wt,St[Bt],0)>-1;);return Bt}function Z0(St,Wt){for(var Bt=St.length;Bt--&&ho(Wt,St[Bt],0)>-1;);return Bt}function SS(St,Wt){for(var Bt=St.length,Nn=0;Bt--;)St[Bt]===Wt&&++Nn;return Nn}var QT=K1(H1),vc=K1(z1);function pf(St){return"\\"+FT[St]}function AS(St,Wt){return St==null?n:St[Wt]}function Hg(St){return O9.test(St)}function UT(St){return hS.test(St)}function _9(St){for(var Wt,Bt=[];!(Wt=St.next()).done;)Bt.push(Wt.value);return Bt}function J1(St){var Wt=-1,Bt=Array(St.size);return St.forEach(function(Nn,br){Bt[++Wt]=[br,Nn]}),Bt}function ew(St,Wt){return function(Bt){return St(Wt(Bt))}}function bl(St,Wt){for(var Bt=-1,Nn=St.length,br=0,di=[];++Bt<Nn;){var aa=St[Bt];(aa===Wt||aa===c)&&(St[Bt]=c,di[br++]=Bt)}return di}function wl(St){var Wt=-1,Bt=Array(St.size);return St.forEach(function(Nn){Bt[++Wt]=Nn}),Bt}function XT(St){var Wt=-1,Bt=Array(St.size);return St.forEach(function(Nn){Bt[++Wt]=[Nn,Nn]}),Bt}function YT(St,Wt,Bt){for(var Nn=Bt-1,br=St.length;++Nn<br;)if(St[Nn]===Wt)return Nn;return-1}function T9(St,Wt,Bt){for(var Nn=Bt+1;Nn--;)if(St[Nn]===Wt)return Nn;return Nn}function zg(St){return Hg(St)?G0(St):jg(St)}function Cu(St){return Hg(St)?qT(St):A9(St)}function IS(St){for(var Wt=St.length;Wt--&&Wr.test(St.charAt(Wt)););return Wt}var KT=K1(pS);function G0(St){for(var Wt=dS.lastIndex=0;dS.test(St);)++Wt;return Wt}function qT(St){return St.match(dS)||[]}function JT(St){return St.match(C9)||[]}var kS=function St(Wt){Wt=Wt==null?Hi:kd.defaults(Hi.Object(),Wt,kd.pick(Hi,BT));var Bt=Wt.Array,Nn=Wt.Date,br=Wt.Error,di=Wt.Function,aa=Wt.Math,Li=Wt.Object,Q0=Wt.RegExp,P9=Wt.String,Wl=Wt.TypeError,tw=Bt.prototype,ff=di.prototype,Ou=Li.prototype,Ed=Wt["__core-js_shared__"],Zg=ff.toString,Oi=Ou.hasOwnProperty,eP=0,nw=function(){var M=/[^.]+$/.exec(Ed&&Ed.keys&&Ed.keys.IE_PROTO||"");return M?"Symbol(src)_1."+M:""}(),yc=Ou.toString,gf=Zg.call(Li),Es=Hi._,Th=Q0("^"+Zg.call(Oi).replace(kn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xu=G1?Wt.Buffer:n,Su=Wt.Symbol,rw=Wt.Uint8Array,ES=xu?xu.allocUnsafe:n,Ph=ew(Li.getPrototypeOf,Li),_S=Li.create,iw=Ou.propertyIsEnumerable,mf=tw.splice,tP=Su?Su.isConcatSpreadable:n,vf=Su?Su.iterator:n,Dh=Su?Su.toStringTag:n,Gg=function(){try{var M=jh(Li,"defineProperty");return M({},"",{}),M}catch{}}(),TS=Wt.clearTimeout!==Hi.clearTimeout&&Wt.clearTimeout,Qg=Nn&&Nn.now!==Hi.Date.now&&Nn.now,ow=Wt.setTimeout!==Hi.setTimeout&&Wt.setTimeout,U0=aa.ceil,yf=aa.floor,PS=Li.getOwnPropertySymbols,D9=xu?xu.isBuffer:n,nP=Wt.isFinite,DS=tw.join,RS=ew(Li.keys,Li),po=aa.max,sa=aa.min,R9=Nn.now,aw=Wt.parseInt,$S=aa.random,X0=tw.reverse,sw=jh(Wt,"DataView"),Au=jh(Wt,"Map"),bf=jh(Wt,"Promise"),Hl=jh(Wt,"Set"),_d=jh(Wt,"WeakMap"),bc=jh(Li,"create"),Y0=_d&&new _d,wf={},rP=Ko(sw),$9=Ko(Au),Cf=Ko(bf),Of=Ko(Hl),M9=Ko(_d),lw=Su?Su.prototype:n,K0=lw?lw.valueOf:n,iP=lw?lw.toString:n;function $e(M){if(ua(M)&&!Lr(M)&&!(M instanceof tr)){if(M instanceof Ei)return M;if(Oi.call(M,"__wrapped__"))return ds(M)}return new Ei(M)}var Ug=function(){function M(){}return function(j){if(!ea(j))return{};if(_S)return _S(j);M.prototype=j;var te=new M;return M.prototype=n,te}}();function qa(){}function Ei(M,j){this.__wrapped__=M,this.__actions__=[],this.__chain__=!!j,this.__index__=0,this.__values__=n}$e.templateSettings={escape:Ee,evaluate:Xe,interpolate:ct,variable:"",imports:{_:$e}},$e.prototype=qa.prototype,$e.prototype.constructor=$e,Ei.prototype=Ug(qa.prototype),Ei.prototype.constructor=Ei;function tr(M){this.__wrapped__=M,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function va(){var M=new tr(this.__wrapped__);return M.__actions__=Zs(this.__actions__),M.__dir__=this.__dir__,M.__filtered__=this.__filtered__,M.__iteratees__=Zs(this.__iteratees__),M.__takeCount__=this.__takeCount__,M.__views__=Zs(this.__views__),M}function q0(){if(this.__filtered__){var M=new tr(this);M.__dir__=-1,M.__filtered__=!0}else M=this.clone(),M.__dir__*=-1;return M}function L9(){var M=this.__wrapped__.value(),j=this.__dir__,te=Lr(M),ge=j<0,ke=te?M.length:0,Ve=rF(0,ke,this.__views__),rt=Ve.start,pt=Ve.end,Et=pt-rt,Yt=ge?pt:rt-1,Kt=this.__iteratees__,an=Kt.length,Rn=0,Qn=sa(Et,this.__takeCount__);if(!te||!ge&&ke==Et&&Qn==Et)return oy(M,this.__actions__);var sr=[];e:for(;Et--&&Rn<Qn;){Yt+=j;for(var Xr=-1,lr=M[Yt];++Xr<an;){var oi=Kt[Xr],pi=oi.iteratee,Ru=oi.type,Sl=pi(lr);if(Ru==P)lr=Sl;else if(!Sl){if(Ru==x)continue e;break e}}sr[Rn++]=lr}return sr}tr.prototype=Ug(qa.prototype),tr.prototype.constructor=tr;function wc(M){var j=-1,te=M==null?0:M.length;for(this.clear();++j<te;){var ge=M[j];this.set(ge[0],ge[1])}}function B9(){this.__data__=bc?bc(null):{},this.size=0}function F9(M){var j=this.has(M)&&delete this.__data__[M];return this.size-=j?1:0,j}function N9(M){var j=this.__data__;if(bc){var te=j[M];return te===l?n:te}return Oi.call(j,M)?j[M]:n}function MS(M){var j=this.__data__;return bc?j[M]!==n:Oi.call(j,M)}function oP(M,j){var te=this.__data__;return this.size+=this.has(M)?0:1,te[M]=bc&&j===n?l:j,this}wc.prototype.clear=B9,wc.prototype.delete=F9,wc.prototype.get=N9,wc.prototype.has=MS,wc.prototype.set=oP;function Iu(M){var j=-1,te=M==null?0:M.length;for(this.clear();++j<te;){var ge=M[j];this.set(ge[0],ge[1])}}function V9(){this.__data__=[],this.size=0}function LS(M){var j=this.__data__,te=Yg(j,M);if(te<0)return!1;var ge=j.length-1;return te==ge?j.pop():mf.call(j,te,1),--this.size,!0}function BS(M){var j=this.__data__,te=Yg(j,M);return te<0?n:j[te][1]}function aP(M){return Yg(this.__data__,M)>-1}function sP(M,j){var te=this.__data__,ge=Yg(te,M);return ge<0?(++this.size,te.push([M,j])):te[ge][1]=j,this}Iu.prototype.clear=V9,Iu.prototype.delete=LS,Iu.prototype.get=BS,Iu.prototype.has=aP,Iu.prototype.set=sP;function ku(M){var j=-1,te=M==null?0:M.length;for(this.clear();++j<te;){var ge=M[j];this.set(ge[0],ge[1])}}function lP(){this.size=0,this.__data__={hash:new wc,map:new(Au||Iu),string:new wc}}function J0(M){var j=my(this,M).delete(M);return this.size-=j?1:0,j}function j9(M){return my(this,M).get(M)}function uw(M){return my(this,M).has(M)}function Td(M,j){var te=my(this,M),ge=te.size;return te.set(M,j),this.size+=te.size==ge?0:1,this}ku.prototype.clear=lP,ku.prototype.delete=J0,ku.prototype.get=j9,ku.prototype.has=uw,ku.prototype.set=Td;function Rh(M){var j=-1,te=M==null?0:M.length;for(this.__data__=new ku;++j<te;)this.add(M[j])}function W9(M){return this.__data__.set(M,l),this}function uP(M){return this.__data__.has(M)}Rh.prototype.add=Rh.prototype.push=W9,Rh.prototype.has=uP;function xo(M){var j=this.__data__=new Iu(M);this.size=j.size}function yi(){this.__data__=new Iu,this.size=0}function Eu(M){var j=this.__data__,te=j.delete(M);return this.size=j.size,te}function $h(M){return this.__data__.get(M)}function Mh(M){return this.__data__.has(M)}function cP(M,j){var te=this.__data__;if(te instanceof Iu){var ge=te.__data__;if(!Au||ge.length<i-1)return ge.push([M,j]),this.size=++te.size,this;te=this.__data__=new ku(ge)}return te.set(M,j),this.size=te.size,this}xo.prototype.clear=yi,xo.prototype.delete=Eu,xo.prototype.get=$h,xo.prototype.has=Mh,xo.prototype.set=cP;function cw(M,j){var te=Lr(M),ge=!te&&vy(M),ke=!te&&!ge&&gm(M),Ve=!te&&!ge&&!ke&&kw(M),rt=te||ge||ke||Ve,pt=rt?CS(M.length,P9):[],Et=pt.length;for(var Yt in M)(j||Oi.call(M,Yt))&&!(rt&&(Yt=="length"||ke&&(Yt=="offset"||Yt=="parent")||Ve&&(Yt=="buffer"||Yt=="byteLength"||Yt=="byteOffset")||F(Yt,Et)))&&pt.push(Yt);return pt}function FS(M){var j=M.length;return j?M[gw(0,j-1)]:n}function H9(M,j){return Fo(Zs(M),Dd(j,0,M.length))}function NS(M){return Fo(Zs(M))}function xf(M,j,te){(te!==n&&!$d(M[j],te)||te===n&&!(j in M))&&Pd(M,j,te)}function Xg(M,j,te){var ge=M[j];(!(Oi.call(M,j)&&$d(ge,te))||te===n&&!(j in M))&&Pd(M,j,te)}function Yg(M,j){for(var te=M.length;te--;)if($d(M[te][0],j))return te;return-1}function Lh(M,j,te,ge){return _u(M,function(ke,Ve,rt){j(ge,ke,te(ke),rt)}),ge}function VS(M,j){return M&&Pu(j,ps(j),M)}function dP(M,j){return M&&Pu(j,Ql(j),M)}function Pd(M,j,te){j=="__proto__"&&Gg?Gg(M,j,{configurable:!0,enumerable:!0,value:te,writable:!0}):M[j]=te}function Kg(M,j){for(var te=-1,ge=j.length,ke=Bt(ge),Ve=M==null;++te<ge;)ke[te]=Ve?n:dF(M,j[te]);return ke}function Dd(M,j,te){return M===M&&(te!==n&&(M=M<=te?M:te),j!==n&&(M=M>=j?M:j)),M}function Cl(M,j,te,ge,ke,Ve){var rt,pt=j&d,Et=j&h,Yt=j&f;if(te&&(rt=ke?te(M,ge,ke,Ve):te(M)),rt!==n)return rt;if(!ea(M))return M;var Kt=Lr(M);if(Kt){if(rt=iF(M),!pt)return Zs(M,rt)}else{var an=wa(M),Rn=an==ve||an==de;if(gm(M))return KS(M,pt);if(an==ce||an==ee||Rn&&!ke){if(rt=Et||Rn?{}:jP(M),!pt)return Et?J9(M,dP(rt,M)):PP(M,VS(rt,M))}else{if(!Wi[an])return ke?M:{};rt=Iw(M,an,pt)}}Ve||(Ve=new xo);var Qn=Ve.get(M);if(Qn)return Qn;Ve.set(M,rt),ete(M)?M.forEach(function(lr){rt.add(Cl(lr,j,te,lr,M,Ve))}):qee(M)&&M.forEach(function(lr,oi){rt.set(oi,Cl(lr,j,te,oi,M,Ve))});var sr=Yt?Et?Aw:Sw:Et?Ql:ps,Xr=Kt?n:sr(M);return jl(Xr||M,function(lr,oi){Xr&&(oi=lr,lr=M[oi]),Xg(rt,oi,Cl(lr,j,te,oi,M,Ve))}),rt}function z9(M){var j=ps(M);return function(te){return jS(te,M,j)}}function jS(M,j,te){var ge=te.length;if(M==null)return!ge;for(M=Li(M);ge--;){var ke=te[ge],Ve=j[ke],rt=M[ke];if(rt===n&&!(ke in M)||!Ve(rt))return!1}return!0}function hP(M,j,te){if(typeof M!="function")throw new Wl(a);return Gn(function(){M.apply(n,te)},j)}function ey(M,j,te,ge){var ke=-1,Ve=Y1,rt=!0,pt=M.length,Et=[],Yt=j.length;if(!pt)return Et;te&&(j=co(j,zs(te))),ge?(Ve=mS,rt=!1):j.length>=i&&(Ve=Id,rt=!1,j=new Rh(j));e:for(;++ke<pt;){var Kt=M[ke],an=te==null?Kt:te(Kt);if(Kt=ge||Kt!==0?Kt:0,rt&&an===an){for(var Rn=Yt;Rn--;)if(j[Rn]===an)continue e;Et.push(Kt)}else Ve(j,an,ge)||Et.push(Kt)}return Et}var _u=um(zl),WS=um(hw,!0);function Z9(M,j){var te=!0;return _u(M,function(ge,ke,Ve){return te=!!j(ge,ke,Ve),te}),te}function dw(M,j,te){for(var ge=-1,ke=M.length;++ge<ke;){var Ve=M[ge],rt=j(Ve);if(rt!=null&&(pt===n?rt===rt&&!Du(rt):te(rt,pt)))var pt=rt,Et=Ve}return Et}function pP(M,j,te,ge){var ke=M.length;for(te=zr(te),te<0&&(te=-te>ke?0:ke+te),ge=ge===n||ge>ke?ke:zr(ge),ge<0&&(ge+=ke),ge=te>ge?0:nte(ge);te<ge;)M[te++]=j;return M}function Sf(M,j){var te=[];return _u(M,function(ge,ke,Ve){j(ge,ke,Ve)&&te.push(ge)}),te}function ya(M,j,te,ge,ke){var Ve=-1,rt=M.length;for(te||(te=E),ke||(ke=[]);++Ve<rt;){var pt=M[Ve];j>0&&te(pt)?j>1?ya(pt,j-1,te,ge,ke):Ad(ke,pt):ge||(ke[ke.length]=pt)}return ke}var qg=DP(),HS=DP(!0);function zl(M,j){return M&&qg(M,j,ps)}function hw(M,j){return M&&HS(M,j,ps)}function pw(M,j){return Eh(j,function(te){return Pf(M[te])})}function Bh(M,j){j=Vh(j,M);for(var te=0,ge=j.length;M!=null&&te<ge;)M=M[So(j[te++])];return te&&te==ge?M:n}function $a(M,j,te){var ge=j(M);return Lr(M)?ge:Ad(ge,te(M))}function Ma(M){return M==null?M===n?me:ie:Dh&&Dh in Li(M)?nF(M):Gt(M)}function fw(M,j){return M>j}function fP(M,j){return M!=null&&Oi.call(M,j)}function gP(M,j){return M!=null&&j in Li(M)}function Jg(M,j,te){return M>=sa(j,te)&&M<po(j,te)}function em(M,j,te){for(var ge=te?mS:Y1,ke=M[0].length,Ve=M.length,rt=Ve,pt=Bt(Ve),Et=1/0,Yt=[];rt--;){var Kt=M[rt];rt&&j&&(Kt=co(Kt,zs(j))),Et=sa(Kt.length,Et),pt[rt]=!te&&(j||ke>=120&&Kt.length>=120)?new Rh(rt&&Kt):n}Kt=M[0];var an=-1,Rn=pt[0];e:for(;++an<ke&&Yt.length<Et;){var Qn=Kt[an],sr=j?j(Qn):Qn;if(Qn=te||Qn!==0?Qn:0,!(Rn?Id(Rn,sr):ge(Yt,sr,te))){for(rt=Ve;--rt;){var Xr=pt[rt];if(!(Xr?Id(Xr,sr):ge(M[rt],sr,te)))continue e}Rn&&Rn.push(sr),Yt.push(Qn)}}return Yt}function mP(M,j,te,ge){return zl(M,function(ke,Ve,rt){j(ge,te(ke),Ve,rt)}),ge}function tm(M,j,te){j=Vh(j,M),M=fn(M,j);var ge=M==null?M:M[So(Ic(j))];return ge==null?n:yl(ge,M,te)}function zS(M){return ua(M)&&Ma(M)==ee}function nm(M){return ua(M)&&Ma(M)==Ye}function vP(M){return ua(M)&&Ma(M)==ne}function Fh(M,j,te,ge,ke){return M===j?!0:M==null||j==null||!ua(M)&&!ua(j)?M!==M&&j!==j:yP(M,j,te,ge,Fh,ke)}function yP(M,j,te,ge,ke,Ve){var rt=Lr(M),pt=Lr(j),Et=rt?N:wa(M),Yt=pt?N:wa(j);Et=Et==ee?ce:Et,Yt=Yt==ee?ce:Yt;var Kt=Et==ce,an=Yt==ce,Rn=Et==Yt;if(Rn&&gm(M)){if(!gm(j))return!1;rt=!0,Kt=!1}if(Rn&&!Kt)return Ve||(Ve=new xo),rt||kw(M)?Zl(M,j,te,ge,ke,Ve):xw(M,j,Et,te,ge,ke,Ve);if(!(te&g)){var Qn=Kt&&Oi.call(M,"__wrapped__"),sr=an&&Oi.call(j,"__wrapped__");if(Qn||sr){var Xr=Qn?M.value():M,lr=sr?j.value():j;return Ve||(Ve=new xo),ke(Xr,lr,te,ge,Ve)}}return Rn?(Ve||(Ve=new xo),iA(M,j,te,ge,ke,Ve)):!1}function ty(M){return ua(M)&&wa(M)==ae}function ZS(M,j,te,ge){var ke=te.length,Ve=ke,rt=!ge;if(M==null)return!Ve;for(M=Li(M);ke--;){var pt=te[ke];if(rt&&pt[2]?pt[1]!==M[pt[0]]:!(pt[0]in M))return!1}for(;++ke<Ve;){pt=te[ke];var Et=pt[0],Yt=M[Et],Kt=pt[1];if(rt&&pt[2]){if(Yt===n&&!(Et in M))return!1}else{var an=new xo;if(ge)var Rn=ge(Yt,Kt,Et,M,j,an);if(!(Rn===n?Fh(Kt,Yt,g|b,ge,an):Rn))return!1}}return!0}function Af(M){if(!ea(M)||ye(M))return!1;var j=Pf(M)?Th:Cn;return j.test(Ko(M))}function bP(M){return ua(M)&&Ma(M)==Z}function wP(M){return ua(M)&&wa(M)==Y}function CP(M){return ua(M)&&QP(M.length)&&!!Yi[Ma(M)]}function rm(M){return typeof M=="function"?M:M==null?Ul:typeof M=="object"?Lr(M)?QS(M[0],M[1]):OP(M):pte(M)}function If(M){if(!Se(M))return RS(M);var j=[];for(var te in Li(M))Oi.call(M,te)&&te!="constructor"&&j.push(te);return j}function ny(M){if(!ea(M))return Nt(M);var j=Se(M),te=[];for(var ge in M)ge=="constructor"&&(j||!Oi.call(M,ge))||te.push(ge);return te}function kf(M,j){return M<j}function GS(M,j){var te=-1,ge=Gl(M)?Bt(M.length):[];return _u(M,function(ke,Ve,rt){ge[++te]=j(ke,Ve,rt)}),ge}function OP(M){var j=bi(M);return j.length==1&&j[0][2]?Je(j[0][0],j[0][1]):function(te){return te===M||ZS(te,M,j)}}function QS(M,j){return z(M)&&Ge(j)?Je(So(M),j):function(te){var ge=dF(te,M);return ge===n&&ge===j?hF(te,M):Fh(j,ge,g|b)}}function Tu(M,j,te,ge,ke){M!==j&&qg(j,function(Ve,rt){if(ke||(ke=new xo),ea(Ve))im(M,j,rt,te,Tu,ge,ke);else{var pt=ge?ge(pn(M,rt),Ve,rt+"",M,j,ke):n;pt===n&&(pt=Ve),xf(M,rt,pt)}},Ql)}function im(M,j,te,ge,ke,Ve,rt){var pt=pn(M,te),Et=pn(j,te),Yt=rt.get(Et);if(Yt){xf(M,te,Yt);return}var Kt=Ve?Ve(pt,Et,te+"",M,j,rt):n,an=Kt===n;if(an){var Rn=Lr(Et),Qn=!Rn&&gm(Et),sr=!Rn&&!Qn&&kw(Et);Kt=Et,Rn||Qn||sr?Lr(pt)?Kt=pt:Oa(pt)?Kt=Zs(pt):Qn?(an=!1,Kt=KS(Et,!0)):sr?(an=!1,Kt=qS(Et,!0)):Kt=[]:sA(Et)||vy(Et)?(Kt=pt,vy(pt)?Kt=rte(pt):(!ea(pt)||Pf(pt))&&(Kt=jP(Et))):an=!1}an&&(rt.set(Et,Kt),ke(Kt,Et,ge,Ve,rt),rt.delete(Et)),xf(M,te,Kt)}function om(M,j){var te=M.length;if(te)return j+=j<0?te:0,F(j,te)?M[j]:n}function xP(M,j,te){j.length?j=co(j,function(Ve){return Lr(Ve)?function(rt){return Bh(rt,Ve.length===1?Ve[0]:Ve)}:Ve}):j=[Ul];var ge=-1;j=co(j,zs(qn()));var ke=GS(M,function(Ve,rt,pt){var Et=co(j,function(Yt){return Yt(Ve)});return{criteria:Et,index:++ge,value:Ve}});return wS(ke,function(Ve,rt){return q9(Ve,rt,te)})}function SP(M,j){return AP(M,j,function(te,ge){return hF(M,ge)})}function AP(M,j,te){for(var ge=-1,ke=j.length,Ve={};++ge<ke;){var rt=j[ge],pt=Bh(M,rt);te(pt,rt)&&am(Ve,Vh(rt,M),pt)}return Ve}function G9(M){return function(j){return Bh(j,M)}}function US(M,j,te,ge){var ke=ge?k9:ho,Ve=-1,rt=j.length,pt=M;for(M===j&&(j=Zs(j)),te&&(pt=co(M,zs(te)));++Ve<rt;)for(var Et=0,Yt=j[Ve],Kt=te?te(Yt):Yt;(Et=ke(pt,Kt,Et,ge))>-1;)pt!==M&&mf.call(pt,Et,1),mf.call(M,Et,1);return M}function cs(M,j){for(var te=M?j.length:0,ge=te-1;te--;){var ke=j[te];if(te==ge||ke!==Ve){var Ve=ke;F(ke)?mf.call(M,ke,1):mw(M,ke)}}return M}function gw(M,j){return M+yf($S()*(j-M+1))}function Q9(M,j,te,ge){for(var ke=-1,Ve=po(U0((j-M)/(te||1)),0),rt=Bt(Ve);Ve--;)rt[ge?Ve:++ke]=M,M+=te;return rt}function XS(M,j){var te="";if(!M||j<1||j>V)return te;do j%2&&(te+=M),j=yf(j/2),j&&(M+=M);while(j);return te}function Hr(M,j){return Wn(sn(M,j,Ul),M+"")}function IP(M){return FS(Ew(M))}function kP(M,j){var te=Ew(M);return Fo(te,Dd(j,0,te.length))}function am(M,j,te,ge){if(!ea(M))return M;j=Vh(j,M);for(var ke=-1,Ve=j.length,rt=Ve-1,pt=M;pt!=null&&++ke<Ve;){var Et=So(j[ke]),Yt=te;if(Et==="__proto__"||Et==="constructor"||Et==="prototype")return M;if(ke!=rt){var Kt=pt[Et];Yt=ge?ge(Kt,Et,pt):n,Yt===n&&(Yt=ea(Kt)?Kt:F(j[ke+1])?[]:{})}Xg(pt,Et,Yt),pt=pt[Et]}return M}var EP=Y0?function(M,j){return Y0.set(M,j),M}:Ul,U9=Gg?function(M,j){return Gg(M,"toString",{configurable:!0,enumerable:!1,value:fF(j),writable:!0})}:Ul;function X9(M){return Fo(Ew(M))}function ba(M,j,te){var ge=-1,ke=M.length;j<0&&(j=-j>ke?0:ke+j),te=te>ke?ke:te,te<0&&(te+=ke),ke=j>te?0:te-j>>>0,j>>>=0;for(var Ve=Bt(ke);++ge<ke;)Ve[ge]=M[ge+j];return Ve}function ry(M,j){var te;return _u(M,function(ge,ke,Ve){return te=j(ge,ke,Ve),!te}),!!te}function Ef(M,j,te){var ge=0,ke=M==null?ge:M.length;if(typeof j=="number"&&j===j&&ke<=J){for(;ge<ke;){var Ve=ge+ke>>>1,rt=M[Ve];rt!==null&&!Du(rt)&&(te?rt<=j:rt<j)?ge=Ve+1:ke=Ve}return ke}return _f(M,j,Ul,te)}function _f(M,j,te,ge){var ke=0,Ve=M==null?0:M.length;if(Ve===0)return 0;j=te(j);for(var rt=j!==j,pt=j===null,Et=Du(j),Yt=j===n;ke<Ve;){var Kt=yf((ke+Ve)/2),an=te(M[Kt]),Rn=an!==n,Qn=an===null,sr=an===an,Xr=Du(an);if(rt)var lr=ge||sr;else Yt?lr=sr&&(ge||Rn):pt?lr=sr&&Rn&&(ge||!Qn):Et?lr=sr&&Rn&&!Qn&&(ge||!Xr):Qn||Xr?lr=!1:lr=ge?an<=j:an<j;lr?ke=Kt+1:Ve=Kt}return sa(Ve,K)}function Cc(M,j){for(var te=-1,ge=M.length,ke=0,Ve=[];++te<ge;){var rt=M[te],pt=j?j(rt):rt;if(!te||!$d(pt,Et)){var Et=pt;Ve[ke++]=rt===0?0:rt}}return Ve}function _P(M){return typeof M=="number"?M:Du(M)?Q:+M}function Ol(M){if(typeof M=="string")return M;if(Lr(M))return co(M,Ol)+"";if(Du(M))return iP?iP.call(M):"";var j=M+"";return j=="0"&&1/M==-L?"-0":j}function xl(M,j,te){var ge=-1,ke=Y1,Ve=M.length,rt=!0,pt=[],Et=pt;if(te)rt=!1,ke=mS;else if(Ve>=i){var Yt=j?null:tF(M);if(Yt)return wl(Yt);rt=!1,ke=Id,Et=new Rh}else Et=j?[]:pt;e:for(;++ge<Ve;){var Kt=M[ge],an=j?j(Kt):Kt;if(Kt=te||Kt!==0?Kt:0,rt&&an===an){for(var Rn=Et.length;Rn--;)if(Et[Rn]===an)continue e;j&&Et.push(an),pt.push(Kt)}else ke(Et,an,te)||(Et!==pt&&Et.push(an),pt.push(Kt))}return pt}function mw(M,j){return j=Vh(j,M),M=fn(M,j),M==null||delete M[So(Ic(j))]}function YS(M,j,te,ge){return am(M,j,te(Bh(M,j)),ge)}function iy(M,j,te,ge){for(var ke=M.length,Ve=ge?ke:-1;(ge?Ve--:++Ve<ke)&&j(M[Ve],Ve,M););return te?ba(M,ge?0:Ve,ge?Ve+1:ke):ba(M,ge?Ve+1:0,ge?ke:Ve)}function oy(M,j){var te=M;return te instanceof tr&&(te=te.value()),vS(j,function(ge,ke){return ke.func.apply(ke.thisArg,Ad([ge],ke.args))},te)}function Nh(M,j,te){var ge=M.length;if(ge<2)return ge?xl(M[0]):[];for(var ke=-1,Ve=Bt(ge);++ke<ge;)for(var rt=M[ke],pt=-1;++pt<ge;)pt!=ke&&(Ve[ke]=ey(Ve[ke]||rt,M[pt],j,te));return xl(ya(Ve,1),j,te)}function vw(M,j,te){for(var ge=-1,ke=M.length,Ve=j.length,rt={};++ge<ke;){var pt=ge<Ve?j[ge]:n;te(rt,M[ge],pt)}return rt}function ay(M){return Oa(M)?M:[]}function sy(M){return typeof M=="function"?M:Ul}function Vh(M,j){return Lr(M)?M:z(M,j)?[M]:to(Bi(M))}var ly=Hr;function Rd(M,j,te){var ge=M.length;return te=te===n?ge:te,!j&&te>=ge?M:ba(M,j,te)}var TP=TS||function(M){return Hi.clearTimeout(M)};function KS(M,j){if(j)return M.slice();var te=M.length,ge=ES?ES(te):new M.constructor(te);return M.copy(ge),ge}function sm(M){var j=new M.constructor(M.byteLength);return new rw(j).set(new rw(M)),j}function Y9(M,j){var te=j?sm(M.buffer):M.buffer;return new M.constructor(te,M.byteOffset,M.byteLength)}function K9(M){var j=new M.constructor(M.source,kt.exec(M));return j.lastIndex=M.lastIndex,j}function uy(M){return K0?Li(K0.call(M)):{}}function qS(M,j){var te=j?sm(M.buffer):M.buffer;return new M.constructor(te,M.byteOffset,M.length)}function JS(M,j){if(M!==j){var te=M!==n,ge=M===null,ke=M===M,Ve=Du(M),rt=j!==n,pt=j===null,Et=j===j,Yt=Du(j);if(!pt&&!Yt&&!Ve&&M>j||Ve&&rt&&Et&&!pt&&!Yt||ge&&rt&&Et||!te&&Et||!ke)return 1;if(!ge&&!Ve&&!Yt&&M<j||Yt&&te&&ke&&!ge&&!Ve||pt&&te&&ke||!rt&&ke||!Et)return-1}return 0}function q9(M,j,te){for(var ge=-1,ke=M.criteria,Ve=j.criteria,rt=ke.length,pt=te.length;++ge<rt;){var Et=JS(ke[ge],Ve[ge]);if(Et){if(ge>=pt)return Et;var Yt=te[ge];return Et*(Yt=="desc"?-1:1)}}return M.index-j.index}function yw(M,j,te,ge){for(var ke=-1,Ve=M.length,rt=te.length,pt=-1,Et=j.length,Yt=po(Ve-rt,0),Kt=Bt(Et+Yt),an=!ge;++pt<Et;)Kt[pt]=j[pt];for(;++ke<rt;)(an||ke<Ve)&&(Kt[te[ke]]=M[ke]);for(;Yt--;)Kt[pt++]=M[ke++];return Kt}function eA(M,j,te,ge){for(var ke=-1,Ve=M.length,rt=-1,pt=te.length,Et=-1,Yt=j.length,Kt=po(Ve-pt,0),an=Bt(Kt+Yt),Rn=!ge;++ke<Kt;)an[ke]=M[ke];for(var Qn=ke;++Et<Yt;)an[Qn+Et]=j[Et];for(;++rt<pt;)(Rn||ke<Ve)&&(an[Qn+te[rt]]=M[ke++]);return an}function Zs(M,j){var te=-1,ge=M.length;for(j||(j=Bt(ge));++te<ge;)j[te]=M[te];return j}function Pu(M,j,te,ge){var ke=!te;te||(te={});for(var Ve=-1,rt=j.length;++Ve<rt;){var pt=j[Ve],Et=ge?ge(te[pt],M[pt],pt,te,M):n;Et===n&&(Et=M[pt]),ke?Pd(te,pt,Et):Xg(te,pt,Et)}return te}function PP(M,j){return Pu(M,Wh(M),j)}function J9(M,j){return Pu(M,NP(M),j)}function lm(M,j){return function(te,ge){var ke=Lr(te)?S9:Lh,Ve=j?j():{};return ke(te,M,qn(ge,2),Ve)}}function Oc(M){return Hr(function(j,te){var ge=-1,ke=te.length,Ve=ke>1?te[ke-1]:n,rt=ke>2?te[2]:n;for(Ve=M.length>3&&typeof Ve=="function"?(ke--,Ve):n,rt&&B(te[0],te[1],rt)&&(Ve=ke<3?n:Ve,ke=1),j=Li(j);++ge<ke;){var pt=te[ge];pt&&M(j,pt,ge,Ve)}return j})}function um(M,j){return function(te,ge){if(te==null)return te;if(!Gl(te))return M(te,ge);for(var ke=te.length,Ve=j?ke:-1,rt=Li(te);(j?Ve--:++Ve<ke)&&ge(rt[Ve],Ve,rt)!==!1;);return te}}function DP(M){return function(j,te,ge){for(var ke=-1,Ve=Li(j),rt=ge(j),pt=rt.length;pt--;){var Et=rt[M?pt:++ke];if(te(Ve[Et],Et,Ve)===!1)break}return j}}function RP(M,j,te){var ge=j&v,ke=cy(M);function Ve(){var rt=this&&this!==Hi&&this instanceof Ve?ke:M;return rt.apply(ge?te:this,arguments)}return Ve}function $P(M){return function(j){j=Bi(j);var te=Hg(j)?Cu(j):n,ge=te?te[0]:j.charAt(0),ke=te?Rd(te,1).join(""):j.slice(1);return ge[M]()+ke}}function cm(M){return function(j){return vS(dte(cte(j).replace(H0,"")),M,"")}}function cy(M){return function(){var j=arguments;switch(j.length){case 0:return new M;case 1:return new M(j[0]);case 2:return new M(j[0],j[1]);case 3:return new M(j[0],j[1],j[2]);case 4:return new M(j[0],j[1],j[2],j[3]);case 5:return new M(j[0],j[1],j[2],j[3],j[4]);case 6:return new M(j[0],j[1],j[2],j[3],j[4],j[5]);case 7:return new M(j[0],j[1],j[2],j[3],j[4],j[5],j[6])}var te=Ug(M.prototype),ge=M.apply(te,j);return ea(ge)?ge:te}}function eF(M,j,te){var ge=cy(M);function ke(){for(var Ve=arguments.length,rt=Bt(Ve),pt=Ve,Et=hm(ke);pt--;)rt[pt]=arguments[pt];var Yt=Ve<3&&rt[0]!==Et&&rt[Ve-1]!==Et?[]:bl(rt,Et);if(Ve-=Yt.length,Ve<te)return hy(M,j,bw,ke.placeholder,n,rt,Yt,n,n,te-Ve);var Kt=this&&this!==Hi&&this instanceof ke?ge:M;return yl(Kt,this,rt)}return ke}function tA(M){return function(j,te,ge){var ke=Li(j);if(!Gl(j)){var Ve=qn(te,3);j=ps(j),te=function(pt){return Ve(ke[pt],pt,ke)}}var rt=M(j,te,ge);return rt>-1?ke[Ve?j[rt]:rt]:n}}function MP(M){return xc(function(j){var te=j.length,ge=te,ke=Ei.prototype.thru;for(M&&j.reverse();ge--;){var Ve=j[ge];if(typeof Ve!="function")throw new Wl(a);if(ke&&!rt&&gy(Ve)=="wrapper")var rt=new Ei([],!0)}for(ge=rt?ge:te;++ge<te;){Ve=j[ge];var pt=gy(Ve),Et=pt=="wrapper"?fy(Ve):n;Et&&he(Et[0])&&Et[1]==(O|k|S|y)&&!Et[4].length&&Et[9]==1?rt=rt[gy(Et[0])].apply(rt,Et[3]):rt=Ve.length==1&&he(Ve)?rt[pt]():rt.thru(Ve)}return function(){var Yt=arguments,Kt=Yt[0];if(rt&&Yt.length==1&&Lr(Kt))return rt.plant(Kt).value();for(var an=0,Rn=te?j[an].apply(this,Yt):Kt;++an<te;)Rn=j[an].call(this,Rn);return Rn}})}function bw(M,j,te,ge,ke,Ve,rt,pt,Et,Yt){var Kt=j&O,an=j&v,Rn=j&m,Qn=j&(k|T),sr=j&_,Xr=Rn?n:cy(M);function lr(){for(var oi=arguments.length,pi=Bt(oi),Ru=oi;Ru--;)pi[Ru]=arguments[Ru];if(Qn)var Sl=hm(lr),$u=SS(pi,Sl);if(ge&&(pi=yw(pi,ge,ke,Qn)),Ve&&(pi=eA(pi,Ve,rt,Qn)),oi-=$u,Qn&&oi<Yt){var xa=bl(pi,Sl);return hy(M,j,bw,lr.placeholder,te,pi,xa,pt,Et,Yt-oi)}var Md=an?te:this,Rf=Rn?Md[M]:M;return oi=pi.length,pt?pi=On(pi,pt):sr&&oi>1&&pi.reverse(),Kt&&Et<oi&&(pi.length=Et),this&&this!==Hi&&this instanceof lr&&(Rf=Xr||cy(Rf)),Rf.apply(Md,pi)}return lr}function nA(M,j){return function(te,ge){return mP(te,M,j(ge),{})}}function dm(M,j){return function(te,ge){var ke;if(te===n&&ge===n)return j;if(te!==n&&(ke=te),ge!==n){if(ke===n)return ge;typeof te=="string"||typeof ge=="string"?(te=Ol(te),ge=Ol(ge)):(te=_P(te),ge=_P(ge)),ke=M(te,ge)}return ke}}function ww(M){return xc(function(j){return j=co(j,zs(qn())),Hr(function(te){var ge=this;return M(j,function(ke){return yl(ke,ge,te)})})})}function Cw(M,j){j=j===n?" ":Ol(j);var te=j.length;if(te<2)return te?XS(j,M):j;var ge=XS(j,U0(M/zg(j)));return Hg(j)?Rd(Cu(ge),0,M).join(""):ge.slice(0,M)}function LP(M,j,te,ge){var ke=j&v,Ve=cy(M);function rt(){for(var pt=-1,Et=arguments.length,Yt=-1,Kt=ge.length,an=Bt(Kt+Et),Rn=this&&this!==Hi&&this instanceof rt?Ve:M;++Yt<Kt;)an[Yt]=ge[Yt];for(;Et--;)an[Yt++]=arguments[++pt];return yl(Rn,ke?te:this,an)}return rt}function Tf(M){return function(j,te,ge){return ge&&typeof ge!="number"&&B(j,te,ge)&&(te=ge=n),j=Df(j),te===n?(te=j,j=0):te=Df(te),ge=ge===n?j<te?1:-1:Df(ge),Q9(j,te,ge,M)}}function dy(M){return function(j,te){return typeof j=="string"&&typeof te=="string"||(j=kc(j),te=kc(te)),M(j,te)}}function hy(M,j,te,ge,ke,Ve,rt,pt,Et,Yt){var Kt=j&k,an=Kt?rt:n,Rn=Kt?n:rt,Qn=Kt?Ve:n,sr=Kt?n:Ve;j|=Kt?S:I,j&=~(Kt?I:S),j&w||(j&=~(v|m));var Xr=[M,j,ke,Qn,an,sr,Rn,pt,Et,Yt],lr=te.apply(n,Xr);return he(M)&&Dn(lr,Xr),lr.placeholder=ge,Rr(lr,M,j)}function rA(M){var j=aa[M];return function(te,ge){if(te=kc(te),ge=ge==null?0:sa(zr(ge),292),ge&&nP(te)){var ke=(Bi(te)+"e").split("e"),Ve=j(ke[0]+"e"+(+ke[1]+ge));return ke=(Bi(Ve)+"e").split("e"),+(ke[0]+"e"+(+ke[1]-ge))}return j(te)}}var tF=Hl&&1/wl(new Hl([,-0]))[1]==L?function(M){return new Hl(M)}:vF;function BP(M){return function(j){var te=wa(j);return te==ae?J1(j):te==Y?XT(j):E9(j,M(j))}}function hi(M,j,te,ge,ke,Ve,rt,pt){var Et=j&m;if(!Et&&typeof M!="function")throw new Wl(a);var Yt=ge?ge.length:0;if(Yt||(j&=~(S|I),ge=ke=n),rt=rt===n?rt:po(zr(rt),0),pt=pt===n?pt:zr(pt),Yt-=ke?ke.length:0,j&I){var Kt=ge,an=ke;ge=ke=n}var Rn=Et?n:fy(M),Qn=[M,j,te,ge,ke,Kt,an,Ve,rt,pt];if(Rn&&vt(Qn,Rn),M=Qn[0],j=Qn[1],te=Qn[2],ge=Qn[3],ke=Qn[4],pt=Qn[9]=Qn[9]===n?Et?0:M.length:po(Qn[9]-Yt,0),!pt&&j&(k|T)&&(j&=~(k|T)),!j||j==v)var sr=RP(M,j,te);else j==k||j==T?sr=eF(M,j,pt):(j==S||j==(v|S))&&!ke.length?sr=LP(M,j,te,ge):sr=bw.apply(n,Qn);var Xr=Rn?EP:Dn;return Rr(Xr(sr,Qn),M,j)}function FP(M,j,te,ge){return M===n||$d(M,Ou[te])&&!Oi.call(ge,te)?j:M}function Ow(M,j,te,ge,ke,Ve){return ea(M)&&ea(j)&&(Ve.set(j,M),Tu(M,j,n,Ow,Ve),Ve.delete(j)),M}function py(M){return sA(M)?n:M}function Zl(M,j,te,ge,ke,Ve){var rt=te&g,pt=M.length,Et=j.length;if(pt!=Et&&!(rt&&Et>pt))return!1;var Yt=Ve.get(M),Kt=Ve.get(j);if(Yt&&Kt)return Yt==j&&Kt==M;var an=-1,Rn=!0,Qn=te&b?new Rh:n;for(Ve.set(M,j),Ve.set(j,M);++an<pt;){var sr=M[an],Xr=j[an];if(ge)var lr=rt?ge(Xr,sr,an,j,M,Ve):ge(sr,Xr,an,M,j,Ve);if(lr!==n){if(lr)continue;Rn=!1;break}if(Qn){if(!Vg(j,function(oi,pi){if(!Id(Qn,pi)&&(sr===oi||ke(sr,oi,te,ge,Ve)))return Qn.push(pi)})){Rn=!1;break}}else if(!(sr===Xr||ke(sr,Xr,te,ge,Ve))){Rn=!1;break}}return Ve.delete(M),Ve.delete(j),Rn}function xw(M,j,te,ge,ke,Ve,rt){switch(te){case Qe:if(M.byteLength!=j.byteLength||M.byteOffset!=j.byteOffset)return!1;M=M.buffer,j=j.buffer;case Ye:return!(M.byteLength!=j.byteLength||!Ve(new rw(M),new rw(j)));case G:case ne:case be:return $d(+M,+j);case oe:return M.name==j.name&&M.message==j.message;case Z:case se:return M==j+"";case ae:var pt=J1;case Y:var Et=ge&g;if(pt||(pt=wl),M.size!=j.size&&!Et)return!1;var Yt=rt.get(M);if(Yt)return Yt==j;ge|=b,rt.set(M,j);var Kt=Zl(pt(M),pt(j),ge,ke,Ve,rt);return rt.delete(M),Kt;case fe:if(K0)return K0.call(M)==K0.call(j)}return!1}function iA(M,j,te,ge,ke,Ve){var rt=te&g,pt=Sw(M),Et=pt.length,Yt=Sw(j),Kt=Yt.length;if(Et!=Kt&&!rt)return!1;for(var an=Et;an--;){var Rn=pt[an];if(!(rt?Rn in j:Oi.call(j,Rn)))return!1}var Qn=Ve.get(M),sr=Ve.get(j);if(Qn&&sr)return Qn==j&&sr==M;var Xr=!0;Ve.set(M,j),Ve.set(j,M);for(var lr=rt;++an<Et;){Rn=pt[an];var oi=M[Rn],pi=j[Rn];if(ge)var Ru=rt?ge(pi,oi,Rn,j,M,Ve):ge(oi,pi,Rn,M,j,Ve);if(!(Ru===n?oi===pi||ke(oi,pi,te,ge,Ve):Ru)){Xr=!1;break}lr||(lr=Rn=="constructor")}if(Xr&&!lr){var Sl=M.constructor,$u=j.constructor;Sl!=$u&&"constructor"in M&&"constructor"in j&&!(typeof Sl=="function"&&Sl instanceof Sl&&typeof $u=="function"&&$u instanceof $u)&&(Xr=!1)}return Ve.delete(M),Ve.delete(j),Xr}function xc(M){return Wn(sn(M,n,Zh),M+"")}function Sw(M){return $a(M,ps,Wh)}function Aw(M){return $a(M,Ql,NP)}var fy=Y0?function(M){return Y0.get(M)}:vF;function gy(M){for(var j=M.name+"",te=wf[j],ge=Oi.call(wf,j)?te.length:0;ge--;){var ke=te[ge],Ve=ke.func;if(Ve==null||Ve==M)return ke.name}return j}function hm(M){var j=Oi.call($e,"placeholder")?$e:M;return j.placeholder}function qn(){var M=$e.iteratee||gF;return M=M===gF?rm:M,arguments.length?M(arguments[0],arguments[1]):M}function my(M,j){var te=M.__data__;return re(j)?te[typeof j=="string"?"string":"hash"]:te.map}function bi(M){for(var j=ps(M),te=j.length;te--;){var ge=j[te],ke=M[ge];j[te]=[ge,ke,Ge(ke)]}return j}function jh(M,j){var te=AS(M,j);return Af(te)?te:n}function nF(M){var j=Oi.call(M,Dh),te=M[Dh];try{M[Dh]=n;var ge=!0}catch{}var ke=yc.call(M);return ge&&(j?M[Dh]=te:delete M[Dh]),ke}var Wh=PS?function(M){return M==null?[]:(M=Li(M),Eh(PS(M),function(j){return iw.call(M,j)}))}:yF,NP=PS?function(M){for(var j=[];M;)Ad(j,Wh(M)),M=Ph(M);return j}:yF,wa=Ma;(sw&&wa(new sw(new ArrayBuffer(1)))!=Qe||Au&&wa(new Au)!=ae||bf&&wa(bf.resolve())!=pe||Hl&&wa(new Hl)!=Y||_d&&wa(new _d)!=Ae)&&(wa=function(M){var j=Ma(M),te=j==ce?M.constructor:n,ge=te?Ko(te):"";if(ge)switch(ge){case rP:return Qe;case $9:return ae;case Cf:return pe;case Of:return Y;case M9:return Ae}return j});function rF(M,j,te){for(var ge=-1,ke=te.length;++ge<ke;){var Ve=te[ge],rt=Ve.size;switch(Ve.type){case"drop":M+=rt;break;case"dropRight":j-=rt;break;case"take":j=sa(j,M+rt);break;case"takeRight":M=po(M,j-rt);break}}return{start:M,end:j}}function Bo(M){var j=M.match(Ke);return j?j[1].split(et):[]}function VP(M,j,te){j=Vh(j,M);for(var ge=-1,ke=j.length,Ve=!1;++ge<ke;){var rt=So(j[ge]);if(!(Ve=M!=null&&te(M,rt)))break;M=M[rt]}return Ve||++ge!=ke?Ve:(ke=M==null?0:M.length,!!ke&&QP(ke)&&F(rt,ke)&&(Lr(M)||vy(M)))}function iF(M){var j=M.length,te=new M.constructor(j);return j&&typeof M[0]=="string"&&Oi.call(M,"index")&&(te.index=M.index,te.input=M.input),te}function jP(M){return typeof M.constructor=="function"&&!Se(M)?Ug(Ph(M)):{}}function Iw(M,j,te){var ge=M.constructor;switch(j){case Ye:return sm(M);case G:case ne:return new ge(+M);case Qe:return Y9(M,te);case nt:case st:case Le:case Me:case je:case Ue:case Te:case bt:case At:return qS(M,te);case ae:return new ge;case be:case se:return new ge(M);case Z:return K9(M);case Y:return new ge;case fe:return uy(M)}}function p(M,j){var te=j.length;if(!te)return M;var ge=te-1;return j[ge]=(te>1?"& ":"")+j[ge],j=j.join(te>2?", ":" "),M.replace(ze,`{
|
|
/* [wrapped with `+j+`] */
|
|
`)}function E(M){return Lr(M)||vy(M)||!!(tP&&M&&M[tP])}function F(M,j){var te=typeof M;return j=j??V,!!j&&(te=="number"||te!="symbol"&<.test(M))&&M>-1&&M%1==0&&M<j}function B(M,j,te){if(!ea(te))return!1;var ge=typeof j;return(ge=="number"?Gl(te)&&F(j,te.length):ge=="string"&&j in te)?$d(te[j],M):!1}function z(M,j){if(Lr(M))return!1;var te=typeof M;return te=="number"||te=="symbol"||te=="boolean"||M==null||Du(M)?!0:Qt.test(M)||!_t.test(M)||j!=null&&M in Li(j)}function re(M){var j=typeof M;return j=="string"||j=="number"||j=="symbol"||j=="boolean"?M!=="__proto__":M===null}function he(M){var j=gy(M),te=$e[j];if(typeof te!="function"||!(j in tr.prototype))return!1;if(M===te)return!0;var ge=fy(te);return!!ge&&M===ge[0]}function ye(M){return!!nw&&nw in M}var we=Ed?Pf:bF;function Se(M){var j=M&&M.constructor,te=typeof j=="function"&&j.prototype||Ou;return M===te}function Ge(M){return M===M&&!ea(M)}function Je(M,j){return function(te){return te==null?!1:te[M]===j&&(j!==n||M in Li(te))}}function Ct(M){var j=ZP(M,function(ge){return te.size===u&&te.clear(),ge}),te=j.cache;return j}function vt(M,j){var te=M[1],ge=j[1],ke=te|ge,Ve=ke<(v|m|O),rt=ge==O&&te==k||ge==O&&te==y&&M[7].length<=j[8]||ge==(O|y)&&j[7].length<=j[8]&&te==k;if(!(Ve||rt))return M;ge&v&&(M[2]=j[2],ke|=te&v?0:w);var pt=j[3];if(pt){var Et=M[3];M[3]=Et?yw(Et,pt,j[4]):pt,M[4]=Et?bl(M[3],c):j[4]}return pt=j[5],pt&&(Et=M[5],M[5]=Et?eA(Et,pt,j[6]):pt,M[6]=Et?bl(M[5],c):j[6]),pt=j[7],pt&&(M[7]=pt),ge&O&&(M[8]=M[8]==null?j[8]:sa(M[8],j[8])),M[9]==null&&(M[9]=j[9]),M[0]=j[0],M[1]=ke,M}function Nt(M){var j=[];if(M!=null)for(var te in Li(M))j.push(te);return j}function Gt(M){return yc.call(M)}function sn(M,j,te){return j=po(j===n?M.length-1:j,0),function(){for(var ge=arguments,ke=-1,Ve=po(ge.length-j,0),rt=Bt(Ve);++ke<Ve;)rt[ke]=ge[j+ke];ke=-1;for(var pt=Bt(j+1);++ke<j;)pt[ke]=ge[ke];return pt[j]=te(rt),yl(M,this,pt)}}function fn(M,j){return j.length<2?M:Bh(M,ba(j,0,-1))}function On(M,j){for(var te=M.length,ge=sa(j.length,te),ke=Zs(M);ge--;){var Ve=j[ge];M[ge]=F(Ve,te)?ke[Ve]:n}return M}function pn(M,j){if(!(j==="constructor"&&typeof M[j]=="function")&&j!="__proto__")return M[j]}var Dn=Di(EP),Gn=ow||function(M,j){return Hi.setTimeout(M,j)},Wn=Di(U9);function Rr(M,j,te){var ge=j+"";return Wn(M,p(ge,qo(Bo(ge),te)))}function Di(M){var j=0,te=0;return function(){var ge=R9(),ke=C-(ge-te);if(te=ge,ke>0){if(++j>=D)return arguments[0]}else j=0;return M.apply(n,arguments)}}function Fo(M,j){var te=-1,ge=M.length,ke=ge-1;for(j=j===n?ge:j;++te<j;){var Ve=gw(te,ke),rt=M[Ve];M[Ve]=M[te],M[te]=rt}return M.length=j,M}var to=Ct(function(M){var j=[];return M.charCodeAt(0)===46&&j.push(""),M.replace(ln,function(te,ge,ke,Ve){j.push(ke?Ve.replace(Mn,"$1"):ge||te)}),j});function So(M){if(typeof M=="string"||Du(M))return M;var j=M+"";return j=="0"&&1/M==-L?"-0":j}function Ko(M){if(M!=null){try{return Zg.call(M)}catch{}try{return M+""}catch{}}return""}function qo(M,j){return jl(ue,function(te){var ge="_."+te[0];j&te[1]&&!Y1(M,ge)&&M.push(ge)}),M.sort()}function ds(M){if(M instanceof tr)return M.clone();var j=new Ei(M.__wrapped__,M.__chain__);return j.__actions__=Zs(M.__actions__),j.__index__=M.__index__,j.__values__=M.__values__,j}function La(M,j,te){(te?B(M,j,te):j===n)?j=1:j=po(zr(j),0);var ge=M==null?0:M.length;if(!ge||j<1)return[];for(var ke=0,Ve=0,rt=Bt(U0(ge/j));ke<ge;)rt[Ve++]=ba(M,ke,ke+=j);return rt}function la(M){for(var j=-1,te=M==null?0:M.length,ge=0,ke=[];++j<te;){var Ve=M[j];Ve&&(ke[ge++]=Ve)}return ke}function Jo(){var M=arguments.length;if(!M)return[];for(var j=Bt(M-1),te=arguments[0],ge=M;ge--;)j[ge-1]=arguments[ge];return Ad(Lr(te)?Zs(te):[te],ya(j,1))}var Ao=Hr(function(M,j){return Oa(M)?ey(M,ya(j,1,Oa,!0)):[]}),_s=Hr(function(M,j){var te=Ic(j);return Oa(te)&&(te=n),Oa(M)?ey(M,ya(j,1,Oa,!0),qn(te,2)):[]}),pm=Hr(function(M,j){var te=Ic(j);return Oa(te)&&(te=n),Oa(M)?ey(M,ya(j,1,Oa,!0),n,te):[]});function Hh(M,j,te){var ge=M==null?0:M.length;return ge?(j=te||j===n?1:zr(j),ba(M,j<0?0:j,ge)):[]}function Ja(M,j,te){var ge=M==null?0:M.length;return ge?(j=te||j===n?1:zr(j),j=ge-j,ba(M,0,j<0?0:j)):[]}function Sc(M,j){return M&&M.length?iy(M,qn(j,3),!0,!0):[]}function Ca(M,j){return M&&M.length?iy(M,qn(j,3),!0):[]}function oA(M,j,te,ge){var ke=M==null?0:M.length;return ke?(te&&typeof te!="number"&&B(M,j,te)&&(te=0,ge=ke),pP(M,j,te,ge)):[]}function Ac(M,j,te){var ge=M==null?0:M.length;if(!ge)return-1;var ke=te==null?0:zr(te);return ke<0&&(ke=po(ge+ke,0)),_h(M,qn(j,3),ke)}function zh(M,j,te){var ge=M==null?0:M.length;if(!ge)return-1;var ke=ge-1;return te!==n&&(ke=zr(te),ke=te<0?po(ge+ke,0):sa(ke,ge-1)),_h(M,qn(j,3),ke,!0)}function Zh(M){var j=M==null?0:M.length;return j?ya(M,1):[]}function hs(M){var j=M==null?0:M.length;return j?ya(M,L):[]}function fm(M,j){var te=M==null?0:M.length;return te?(j=j===n?1:zr(j),ya(M,j)):[]}function aA(M){for(var j=-1,te=M==null?0:M.length,ge={};++j<te;){var ke=M[j];ge[ke[0]]=ke[1]}return ge}function Fee(M){return M&&M.length?M[0]:n}function X$e(M,j,te){var ge=M==null?0:M.length;if(!ge)return-1;var ke=te==null?0:zr(te);return ke<0&&(ke=po(ge+ke,0)),ho(M,j,ke)}function Y$e(M){var j=M==null?0:M.length;return j?ba(M,0,-1):[]}var K$e=Hr(function(M){var j=co(M,ay);return j.length&&j[0]===M[0]?em(j):[]}),q$e=Hr(function(M){var j=Ic(M),te=co(M,ay);return j===Ic(te)?j=n:te.pop(),te.length&&te[0]===M[0]?em(te,qn(j,2)):[]}),J$e=Hr(function(M){var j=Ic(M),te=co(M,ay);return j=typeof j=="function"?j:n,j&&te.pop(),te.length&&te[0]===M[0]?em(te,n,j):[]});function e5e(M,j){return M==null?"":DS.call(M,j)}function Ic(M){var j=M==null?0:M.length;return j?M[j-1]:n}function t5e(M,j,te){var ge=M==null?0:M.length;if(!ge)return-1;var ke=ge;return te!==n&&(ke=zr(te),ke=ke<0?po(ge+ke,0):sa(ke,ge-1)),j===j?T9(M,j,ke):_h(M,yS,ke,!0)}function n5e(M,j){return M&&M.length?om(M,zr(j)):n}var r5e=Hr(Nee);function Nee(M,j){return M&&M.length&&j&&j.length?US(M,j):M}function i5e(M,j,te){return M&&M.length&&j&&j.length?US(M,j,qn(te,2)):M}function o5e(M,j,te){return M&&M.length&&j&&j.length?US(M,j,n,te):M}var a5e=xc(function(M,j){var te=M==null?0:M.length,ge=Kg(M,j);return cs(M,co(j,function(ke){return F(ke,te)?+ke:ke}).sort(JS)),ge});function s5e(M,j){var te=[];if(!(M&&M.length))return te;var ge=-1,ke=[],Ve=M.length;for(j=qn(j,3);++ge<Ve;){var rt=M[ge];j(rt,ge,M)&&(te.push(rt),ke.push(ge))}return cs(M,ke),te}function oF(M){return M==null?M:X0.call(M)}function l5e(M,j,te){var ge=M==null?0:M.length;return ge?(te&&typeof te!="number"&&B(M,j,te)?(j=0,te=ge):(j=j==null?0:zr(j),te=te===n?ge:zr(te)),ba(M,j,te)):[]}function u5e(M,j){return Ef(M,j)}function c5e(M,j,te){return _f(M,j,qn(te,2))}function d5e(M,j){var te=M==null?0:M.length;if(te){var ge=Ef(M,j);if(ge<te&&$d(M[ge],j))return ge}return-1}function h5e(M,j){return Ef(M,j,!0)}function p5e(M,j,te){return _f(M,j,qn(te,2),!0)}function f5e(M,j){var te=M==null?0:M.length;if(te){var ge=Ef(M,j,!0)-1;if($d(M[ge],j))return ge}return-1}function g5e(M){return M&&M.length?Cc(M):[]}function m5e(M,j){return M&&M.length?Cc(M,qn(j,2)):[]}function v5e(M){var j=M==null?0:M.length;return j?ba(M,1,j):[]}function y5e(M,j,te){return M&&M.length?(j=te||j===n?1:zr(j),ba(M,0,j<0?0:j)):[]}function b5e(M,j,te){var ge=M==null?0:M.length;return ge?(j=te||j===n?1:zr(j),j=ge-j,ba(M,j<0?0:j,ge)):[]}function w5e(M,j){return M&&M.length?iy(M,qn(j,3),!1,!0):[]}function C5e(M,j){return M&&M.length?iy(M,qn(j,3)):[]}var O5e=Hr(function(M){return xl(ya(M,1,Oa,!0))}),x5e=Hr(function(M){var j=Ic(M);return Oa(j)&&(j=n),xl(ya(M,1,Oa,!0),qn(j,2))}),S5e=Hr(function(M){var j=Ic(M);return j=typeof j=="function"?j:n,xl(ya(M,1,Oa,!0),n,j)});function A5e(M){return M&&M.length?xl(M):[]}function I5e(M,j){return M&&M.length?xl(M,qn(j,2)):[]}function k5e(M,j){return j=typeof j=="function"?j:n,M&&M.length?xl(M,n,j):[]}function aF(M){if(!(M&&M.length))return[];var j=0;return M=Eh(M,function(te){if(Oa(te))return j=po(te.length,j),!0}),CS(j,function(te){return co(M,bS(te))})}function Vee(M,j){if(!(M&&M.length))return[];var te=aF(M);return j==null?te:co(te,function(ge){return yl(j,n,ge)})}var E5e=Hr(function(M,j){return Oa(M)?ey(M,j):[]}),_5e=Hr(function(M){return Nh(Eh(M,Oa))}),T5e=Hr(function(M){var j=Ic(M);return Oa(j)&&(j=n),Nh(Eh(M,Oa),qn(j,2))}),P5e=Hr(function(M){var j=Ic(M);return j=typeof j=="function"?j:n,Nh(Eh(M,Oa),n,j)}),D5e=Hr(aF);function R5e(M,j){return vw(M||[],j||[],Xg)}function $5e(M,j){return vw(M||[],j||[],am)}var M5e=Hr(function(M){var j=M.length,te=j>1?M[j-1]:n;return te=typeof te=="function"?(M.pop(),te):n,Vee(M,te)});function jee(M){var j=$e(M);return j.__chain__=!0,j}function L5e(M,j){return j(M),M}function WP(M,j){return j(M)}var B5e=xc(function(M){var j=M.length,te=j?M[0]:0,ge=this.__wrapped__,ke=function(Ve){return Kg(Ve,M)};return j>1||this.__actions__.length||!(ge instanceof tr)||!F(te)?this.thru(ke):(ge=ge.slice(te,+te+(j?1:0)),ge.__actions__.push({func:WP,args:[ke],thisArg:n}),new Ei(ge,this.__chain__).thru(function(Ve){return j&&!Ve.length&&Ve.push(n),Ve}))});function F5e(){return jee(this)}function N5e(){return new Ei(this.value(),this.__chain__)}function V5e(){this.__values__===n&&(this.__values__=tte(this.value()));var M=this.__index__>=this.__values__.length,j=M?n:this.__values__[this.__index__++];return{done:M,value:j}}function j5e(){return this}function W5e(M){for(var j,te=this;te instanceof qa;){var ge=ds(te);ge.__index__=0,ge.__values__=n,j?ke.__wrapped__=ge:j=ge;var ke=ge;te=te.__wrapped__}return ke.__wrapped__=M,j}function H5e(){var M=this.__wrapped__;if(M instanceof tr){var j=M;return this.__actions__.length&&(j=new tr(this)),j=j.reverse(),j.__actions__.push({func:WP,args:[oF],thisArg:n}),new Ei(j,this.__chain__)}return this.thru(oF)}function z5e(){return oy(this.__wrapped__,this.__actions__)}var Z5e=lm(function(M,j,te){Oi.call(M,te)?++M[te]:Pd(M,te,1)});function G5e(M,j,te){var ge=Lr(M)?gS:Z9;return te&&B(M,j,te)&&(j=n),ge(M,qn(j,3))}function Q5e(M,j){var te=Lr(M)?Eh:Sf;return te(M,qn(j,3))}var U5e=tA(Ac),X5e=tA(zh);function Y5e(M,j){return ya(HP(M,j),1)}function K5e(M,j){return ya(HP(M,j),L)}function q5e(M,j,te){return te=te===n?1:zr(te),ya(HP(M,j),te)}function Wee(M,j){var te=Lr(M)?jl:_u;return te(M,qn(j,3))}function Hee(M,j){var te=Lr(M)?HT:WS;return te(M,qn(j,3))}var J5e=lm(function(M,j,te){Oi.call(M,te)?M[te].push(j):Pd(M,te,[j])});function e4e(M,j,te,ge){M=Gl(M)?M:Ew(M),te=te&&!ge?zr(te):0;var ke=M.length;return te<0&&(te=po(ke+te,0)),UP(M)?te<=ke&&M.indexOf(j,te)>-1:!!ke&&ho(M,j,te)>-1}var t4e=Hr(function(M,j,te){var ge=-1,ke=typeof j=="function",Ve=Gl(M)?Bt(M.length):[];return _u(M,function(rt){Ve[++ge]=ke?yl(j,rt,te):tm(rt,j,te)}),Ve}),n4e=lm(function(M,j,te){Pd(M,te,j)});function HP(M,j){var te=Lr(M)?co:GS;return te(M,qn(j,3))}function r4e(M,j,te,ge){return M==null?[]:(Lr(j)||(j=j==null?[]:[j]),te=ge?n:te,Lr(te)||(te=te==null?[]:[te]),xP(M,j,te))}var i4e=lm(function(M,j,te){M[te?0:1].push(j)},function(){return[[],[]]});function o4e(M,j,te){var ge=Lr(M)?vS:GT,ke=arguments.length<3;return ge(M,qn(j,4),te,ke,_u)}function a4e(M,j,te){var ge=Lr(M)?zT:GT,ke=arguments.length<3;return ge(M,qn(j,4),te,ke,WS)}function s4e(M,j){var te=Lr(M)?Eh:Sf;return te(M,GP(qn(j,3)))}function l4e(M){var j=Lr(M)?FS:IP;return j(M)}function u4e(M,j,te){(te?B(M,j,te):j===n)?j=1:j=zr(j);var ge=Lr(M)?H9:kP;return ge(M,j)}function c4e(M){var j=Lr(M)?NS:X9;return j(M)}function d4e(M){if(M==null)return 0;if(Gl(M))return UP(M)?zg(M):M.length;var j=wa(M);return j==ae||j==Y?M.size:If(M).length}function h4e(M,j,te){var ge=Lr(M)?Vg:ry;return te&&B(M,j,te)&&(j=n),ge(M,qn(j,3))}var p4e=Hr(function(M,j){if(M==null)return[];var te=j.length;return te>1&&B(M,j[0],j[1])?j=[]:te>2&&B(j[0],j[1],j[2])&&(j=[j[0]]),xP(M,ya(j,1),[])}),zP=Qg||function(){return Hi.Date.now()};function f4e(M,j){if(typeof j!="function")throw new Wl(a);return M=zr(M),function(){if(--M<1)return j.apply(this,arguments)}}function zee(M,j,te){return j=te?n:j,j=M&&j==null?M.length:j,hi(M,O,n,n,n,n,j)}function Zee(M,j){var te;if(typeof j!="function")throw new Wl(a);return M=zr(M),function(){return--M>0&&(te=j.apply(this,arguments)),M<=1&&(j=n),te}}var sF=Hr(function(M,j,te){var ge=v;if(te.length){var ke=bl(te,hm(sF));ge|=S}return hi(M,ge,j,te,ke)}),Gee=Hr(function(M,j,te){var ge=v|m;if(te.length){var ke=bl(te,hm(Gee));ge|=S}return hi(j,ge,M,te,ke)});function Qee(M,j,te){j=te?n:j;var ge=hi(M,k,n,n,n,n,n,j);return ge.placeholder=Qee.placeholder,ge}function Uee(M,j,te){j=te?n:j;var ge=hi(M,T,n,n,n,n,n,j);return ge.placeholder=Uee.placeholder,ge}function Xee(M,j,te){var ge,ke,Ve,rt,pt,Et,Yt=0,Kt=!1,an=!1,Rn=!0;if(typeof M!="function")throw new Wl(a);j=kc(j)||0,ea(te)&&(Kt=!!te.leading,an="maxWait"in te,Ve=an?po(kc(te.maxWait)||0,j):Ve,Rn="trailing"in te?!!te.trailing:Rn);function Qn(xa){var Md=ge,Rf=ke;return ge=ke=n,Yt=xa,rt=M.apply(Rf,Md),rt}function sr(xa){return Yt=xa,pt=Gn(oi,j),Kt?Qn(xa):rt}function Xr(xa){var Md=xa-Et,Rf=xa-Yt,fte=j-Md;return an?sa(fte,Ve-Rf):fte}function lr(xa){var Md=xa-Et,Rf=xa-Yt;return Et===n||Md>=j||Md<0||an&&Rf>=Ve}function oi(){var xa=zP();if(lr(xa))return pi(xa);pt=Gn(oi,Xr(xa))}function pi(xa){return pt=n,Rn&&ge?Qn(xa):(ge=ke=n,rt)}function Ru(){pt!==n&&TP(pt),Yt=0,ge=Et=ke=pt=n}function Sl(){return pt===n?rt:pi(zP())}function $u(){var xa=zP(),Md=lr(xa);if(ge=arguments,ke=this,Et=xa,Md){if(pt===n)return sr(Et);if(an)return TP(pt),pt=Gn(oi,j),Qn(Et)}return pt===n&&(pt=Gn(oi,j)),rt}return $u.cancel=Ru,$u.flush=Sl,$u}var g4e=Hr(function(M,j){return hP(M,1,j)}),m4e=Hr(function(M,j,te){return hP(M,kc(j)||0,te)});function v4e(M){return hi(M,_)}function ZP(M,j){if(typeof M!="function"||j!=null&&typeof j!="function")throw new Wl(a);var te=function(){var ge=arguments,ke=j?j.apply(this,ge):ge[0],Ve=te.cache;if(Ve.has(ke))return Ve.get(ke);var rt=M.apply(this,ge);return te.cache=Ve.set(ke,rt)||Ve,rt};return te.cache=new(ZP.Cache||ku),te}ZP.Cache=ku;function GP(M){if(typeof M!="function")throw new Wl(a);return function(){var j=arguments;switch(j.length){case 0:return!M.call(this);case 1:return!M.call(this,j[0]);case 2:return!M.call(this,j[0],j[1]);case 3:return!M.call(this,j[0],j[1],j[2])}return!M.apply(this,j)}}function y4e(M){return Zee(2,M)}var b4e=ly(function(M,j){j=j.length==1&&Lr(j[0])?co(j[0],zs(qn())):co(ya(j,1),zs(qn()));var te=j.length;return Hr(function(ge){for(var ke=-1,Ve=sa(ge.length,te);++ke<Ve;)ge[ke]=j[ke].call(this,ge[ke]);return yl(M,this,ge)})}),lF=Hr(function(M,j){var te=bl(j,hm(lF));return hi(M,S,n,j,te)}),Yee=Hr(function(M,j){var te=bl(j,hm(Yee));return hi(M,I,n,j,te)}),w4e=xc(function(M,j){return hi(M,y,n,n,n,j)});function C4e(M,j){if(typeof M!="function")throw new Wl(a);return j=j===n?j:zr(j),Hr(M,j)}function O4e(M,j){if(typeof M!="function")throw new Wl(a);return j=j==null?0:po(zr(j),0),Hr(function(te){var ge=te[j],ke=Rd(te,0,j);return ge&&Ad(ke,ge),yl(M,this,ke)})}function x4e(M,j,te){var ge=!0,ke=!0;if(typeof M!="function")throw new Wl(a);return ea(te)&&(ge="leading"in te?!!te.leading:ge,ke="trailing"in te?!!te.trailing:ke),Xee(M,j,{leading:ge,maxWait:j,trailing:ke})}function S4e(M){return zee(M,1)}function A4e(M,j){return lF(sy(j),M)}function I4e(){if(!arguments.length)return[];var M=arguments[0];return Lr(M)?M:[M]}function k4e(M){return Cl(M,f)}function E4e(M,j){return j=typeof j=="function"?j:n,Cl(M,f,j)}function _4e(M){return Cl(M,d|f)}function T4e(M,j){return j=typeof j=="function"?j:n,Cl(M,d|f,j)}function P4e(M,j){return j==null||jS(M,j,ps(j))}function $d(M,j){return M===j||M!==M&&j!==j}var D4e=dy(fw),R4e=dy(function(M,j){return M>=j}),vy=zS(function(){return arguments}())?zS:function(M){return ua(M)&&Oi.call(M,"callee")&&!iw.call(M,"callee")},Lr=Bt.isArray,$4e=U1?zs(U1):nm;function Gl(M){return M!=null&&QP(M.length)&&!Pf(M)}function Oa(M){return ua(M)&&Gl(M)}function M4e(M){return M===!0||M===!1||ua(M)&&Ma(M)==G}var gm=D9||bF,L4e=gc?zs(gc):vP;function B4e(M){return ua(M)&&M.nodeType===1&&!sA(M)}function F4e(M){if(M==null)return!0;if(Gl(M)&&(Lr(M)||typeof M=="string"||typeof M.splice=="function"||gm(M)||kw(M)||vy(M)))return!M.length;var j=wa(M);if(j==ae||j==Y)return!M.size;if(Se(M))return!If(M).length;for(var te in M)if(Oi.call(M,te))return!1;return!0}function N4e(M,j){return Fh(M,j)}function V4e(M,j,te){te=typeof te=="function"?te:n;var ge=te?te(M,j):n;return ge===n?Fh(M,j,n,te):!!ge}function uF(M){if(!ua(M))return!1;var j=Ma(M);return j==oe||j==le||typeof M.message=="string"&&typeof M.name=="string"&&!sA(M)}function j4e(M){return typeof M=="number"&&nP(M)}function Pf(M){if(!ea(M))return!1;var j=Ma(M);return j==ve||j==de||j==q||j==X}function Kee(M){return typeof M=="number"&&M==zr(M)}function QP(M){return typeof M=="number"&&M>-1&&M%1==0&&M<=V}function ea(M){var j=typeof M;return M!=null&&(j=="object"||j=="function")}function ua(M){return M!=null&&typeof M=="object"}var qee=z0?zs(z0):ty;function W4e(M,j){return M===j||ZS(M,j,bi(j))}function H4e(M,j,te){return te=typeof te=="function"?te:n,ZS(M,j,bi(j),te)}function z4e(M){return Jee(M)&&M!=+M}function Z4e(M){if(we(M))throw new br(o);return Af(M)}function G4e(M){return M===null}function Q4e(M){return M==null}function Jee(M){return typeof M=="number"||ua(M)&&Ma(M)==be}function sA(M){if(!ua(M)||Ma(M)!=ce)return!1;var j=Ph(M);if(j===null)return!0;var te=Oi.call(j,"constructor")&&j.constructor;return typeof te=="function"&&te instanceof te&&Zg.call(te)==gf}var cF=X1?zs(X1):bP;function U4e(M){return Kee(M)&&M>=-V&&M<=V}var ete=hf?zs(hf):wP;function UP(M){return typeof M=="string"||!Lr(M)&&ua(M)&&Ma(M)==se}function Du(M){return typeof M=="symbol"||ua(M)&&Ma(M)==fe}var kw=WT?zs(WT):CP;function X4e(M){return M===n}function Y4e(M){return ua(M)&&wa(M)==Ae}function K4e(M){return ua(M)&&Ma(M)==Be}var q4e=dy(kf),J4e=dy(function(M,j){return M<=j});function tte(M){if(!M)return[];if(Gl(M))return UP(M)?Cu(M):Zs(M);if(vf&&M[vf])return _9(M[vf]());var j=wa(M),te=j==ae?J1:j==Y?wl:Ew;return te(M)}function Df(M){if(!M)return M===0?M:0;if(M=kc(M),M===L||M===-L){var j=M<0?-1:1;return j*H}return M===M?M:0}function zr(M){var j=Df(M),te=j%1;return j===j?te?j-te:j:0}function nte(M){return M?Dd(zr(M),0,U):0}function kc(M){if(typeof M=="number")return M;if(Du(M))return Q;if(ea(M)){var j=typeof M.valueOf=="function"?M.valueOf():M;M=ea(j)?j+"":j}if(typeof M!="string")return M===0?M:+M;M=OS(M);var te=nn.test(M);return te||Pn.test(M)?Z1(M.slice(2),te?2:8):Ut.test(M)?Q:+M}function rte(M){return Pu(M,Ql(M))}function eMe(M){return M?Dd(zr(M),-V,V):M===0?M:0}function Bi(M){return M==null?"":Ol(M)}var tMe=Oc(function(M,j){if(Se(j)||Gl(j)){Pu(j,ps(j),M);return}for(var te in j)Oi.call(j,te)&&Xg(M,te,j[te])}),ite=Oc(function(M,j){Pu(j,Ql(j),M)}),XP=Oc(function(M,j,te,ge){Pu(j,Ql(j),M,ge)}),nMe=Oc(function(M,j,te,ge){Pu(j,ps(j),M,ge)}),rMe=xc(Kg);function iMe(M,j){var te=Ug(M);return j==null?te:VS(te,j)}var oMe=Hr(function(M,j){M=Li(M);var te=-1,ge=j.length,ke=ge>2?j[2]:n;for(ke&&B(j[0],j[1],ke)&&(ge=1);++te<ge;)for(var Ve=j[te],rt=Ql(Ve),pt=-1,Et=rt.length;++pt<Et;){var Yt=rt[pt],Kt=M[Yt];(Kt===n||$d(Kt,Ou[Yt])&&!Oi.call(M,Yt))&&(M[Yt]=Ve[Yt])}return M}),aMe=Hr(function(M){return M.push(n,Ow),yl(ote,n,M)});function sMe(M,j){return ZT(M,qn(j,3),zl)}function lMe(M,j){return ZT(M,qn(j,3),hw)}function uMe(M,j){return M==null?M:qg(M,qn(j,3),Ql)}function cMe(M,j){return M==null?M:HS(M,qn(j,3),Ql)}function dMe(M,j){return M&&zl(M,qn(j,3))}function hMe(M,j){return M&&hw(M,qn(j,3))}function pMe(M){return M==null?[]:pw(M,ps(M))}function fMe(M){return M==null?[]:pw(M,Ql(M))}function dF(M,j,te){var ge=M==null?n:Bh(M,j);return ge===n?te:ge}function gMe(M,j){return M!=null&&VP(M,j,fP)}function hF(M,j){return M!=null&&VP(M,j,gP)}var mMe=nA(function(M,j,te){j!=null&&typeof j.toString!="function"&&(j=yc.call(j)),M[j]=te},fF(Ul)),vMe=nA(function(M,j,te){j!=null&&typeof j.toString!="function"&&(j=yc.call(j)),Oi.call(M,j)?M[j].push(te):M[j]=[te]},qn),yMe=Hr(tm);function ps(M){return Gl(M)?cw(M):If(M)}function Ql(M){return Gl(M)?cw(M,!0):ny(M)}function bMe(M,j){var te={};return j=qn(j,3),zl(M,function(ge,ke,Ve){Pd(te,j(ge,ke,Ve),ge)}),te}function wMe(M,j){var te={};return j=qn(j,3),zl(M,function(ge,ke,Ve){Pd(te,ke,j(ge,ke,Ve))}),te}var CMe=Oc(function(M,j,te){Tu(M,j,te)}),ote=Oc(function(M,j,te,ge){Tu(M,j,te,ge)}),OMe=xc(function(M,j){var te={};if(M==null)return te;var ge=!1;j=co(j,function(Ve){return Ve=Vh(Ve,M),ge||(ge=Ve.length>1),Ve}),Pu(M,Aw(M),te),ge&&(te=Cl(te,d|h|f,py));for(var ke=j.length;ke--;)mw(te,j[ke]);return te});function xMe(M,j){return ate(M,GP(qn(j)))}var SMe=xc(function(M,j){return M==null?{}:SP(M,j)});function ate(M,j){if(M==null)return{};var te=co(Aw(M),function(ge){return[ge]});return j=qn(j),AP(M,te,function(ge,ke){return j(ge,ke[0])})}function AMe(M,j,te){j=Vh(j,M);var ge=-1,ke=j.length;for(ke||(ke=1,M=n);++ge<ke;){var Ve=M==null?n:M[So(j[ge])];Ve===n&&(ge=ke,Ve=te),M=Pf(Ve)?Ve.call(M):Ve}return M}function IMe(M,j,te){return M==null?M:am(M,j,te)}function kMe(M,j,te,ge){return ge=typeof ge=="function"?ge:n,M==null?M:am(M,j,te,ge)}var ste=BP(ps),lte=BP(Ql);function EMe(M,j,te){var ge=Lr(M),ke=ge||gm(M)||kw(M);if(j=qn(j,4),te==null){var Ve=M&&M.constructor;ke?te=ge?new Ve:[]:ea(M)?te=Pf(Ve)?Ug(Ph(M)):{}:te={}}return(ke?jl:zl)(M,function(rt,pt,Et){return j(te,rt,pt,Et)}),te}function _Me(M,j){return M==null?!0:mw(M,j)}function TMe(M,j,te){return M==null?M:YS(M,j,sy(te))}function PMe(M,j,te,ge){return ge=typeof ge=="function"?ge:n,M==null?M:YS(M,j,sy(te),ge)}function Ew(M){return M==null?[]:xS(M,ps(M))}function DMe(M){return M==null?[]:xS(M,Ql(M))}function RMe(M,j,te){return te===n&&(te=j,j=n),te!==n&&(te=kc(te),te=te===te?te:0),j!==n&&(j=kc(j),j=j===j?j:0),Dd(kc(M),j,te)}function $Me(M,j,te){return j=Df(j),te===n?(te=j,j=0):te=Df(te),M=kc(M),Jg(M,j,te)}function MMe(M,j,te){if(te&&typeof te!="boolean"&&B(M,j,te)&&(j=te=n),te===n&&(typeof j=="boolean"?(te=j,j=n):typeof M=="boolean"&&(te=M,M=n)),M===n&&j===n?(M=0,j=1):(M=Df(M),j===n?(j=M,M=0):j=Df(j)),M>j){var ge=M;M=j,j=ge}if(te||M%1||j%1){var ke=$S();return sa(M+ke*(j-M+NT("1e-"+((ke+"").length-1))),j)}return gw(M,j)}var LMe=cm(function(M,j,te){return j=j.toLowerCase(),M+(te?ute(j):j)});function ute(M){return pF(Bi(M).toLowerCase())}function cte(M){return M=Bi(M),M&&M.replace(It,QT).replace(w9,"")}function BMe(M,j,te){M=Bi(M),j=Ol(j);var ge=M.length;te=te===n?ge:Dd(zr(te),0,ge);var ke=te;return te-=j.length,te>=0&&M.slice(te,ke)==j}function FMe(M){return M=Bi(M),M&&wt.test(M)?M.replace(Mt,vc):M}function NMe(M){return M=Bi(M),M&&hr.test(M)?M.replace(kn,"\\$&"):M}var VMe=cm(function(M,j,te){return M+(te?"-":"")+j.toLowerCase()}),jMe=cm(function(M,j,te){return M+(te?" ":"")+j.toLowerCase()}),WMe=$P("toLowerCase");function HMe(M,j,te){M=Bi(M),j=zr(j);var ge=j?zg(M):0;if(!j||ge>=j)return M;var ke=(j-ge)/2;return Cw(yf(ke),te)+M+Cw(U0(ke),te)}function zMe(M,j,te){M=Bi(M),j=zr(j);var ge=j?zg(M):0;return j&&ge<j?M+Cw(j-ge,te):M}function ZMe(M,j,te){M=Bi(M),j=zr(j);var ge=j?zg(M):0;return j&&ge<j?Cw(j-ge,te)+M:M}function GMe(M,j,te){return te||j==null?j=0:j&&(j=+j),aw(Bi(M).replace(pr,""),j||0)}function QMe(M,j,te){return(te?B(M,j,te):j===n)?j=1:j=zr(j),XS(Bi(M),j)}function UMe(){var M=arguments,j=Bi(M[0]);return M.length<3?j:j.replace(M[1],M[2])}var XMe=cm(function(M,j,te){return M+(te?"_":"")+j.toLowerCase()});function YMe(M,j,te){return te&&typeof te!="number"&&B(M,j,te)&&(j=te=n),te=te===n?U:te>>>0,te?(M=Bi(M),M&&(typeof j=="string"||j!=null&&!cF(j))&&(j=Ol(j),!j&&Hg(M))?Rd(Cu(M),0,te):M.split(j,te)):[]}var KMe=cm(function(M,j,te){return M+(te?" ":"")+pF(j)});function qMe(M,j,te){return M=Bi(M),te=te==null?0:Dd(zr(te),0,M.length),j=Ol(j),M.slice(te,te+j.length)==j}function JMe(M,j,te){var ge=$e.templateSettings;te&&B(M,j,te)&&(j=n),M=Bi(M),j=XP({},j,ge,FP);var ke=XP({},j.imports,ge.imports,FP),Ve=ps(ke),rt=xS(ke,Ve),pt,Et,Yt=0,Kt=j.interpolate||Xt,an="__p += '",Rn=Q0((j.escape||Xt).source+"|"+Kt.source+"|"+(Kt===ct?qe:Xt).source+"|"+(j.evaluate||Xt).source+"|$","g"),Qn="//# sourceURL="+(Oi.call(j,"sourceURL")?(j.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++x9+"]")+`
|
|
`;M.replace(Rn,function(lr,oi,pi,Ru,Sl,$u){return pi||(pi=Ru),an+=M.slice(Yt,$u).replace(on,pf),oi&&(pt=!0,an+=`' +
|
|
__e(`+oi+`) +
|
|
'`),Sl&&(Et=!0,an+=`';
|
|
`+Sl+`;
|
|
__p += '`),pi&&(an+=`' +
|
|
((__t = (`+pi+`)) == null ? '' : __t) +
|
|
'`),Yt=$u+lr.length,lr}),an+=`';
|
|
`;var sr=Oi.call(j,"variable")&&j.variable;if(!sr)an=`with (obj) {
|
|
`+an+`
|
|
}
|
|
`;else if(Lt.test(sr))throw new br(s);an=(Et?an.replace(ht,""):an).replace(Pe,"$1").replace(Ze,"$1;"),an="function("+(sr||"obj")+`) {
|
|
`+(sr?"":`obj || (obj = {});
|
|
`)+"var __t, __p = ''"+(pt?", __e = _.escape":"")+(Et?`, __j = Array.prototype.join;
|
|
function print() { __p += __j.call(arguments, '') }
|
|
`:`;
|
|
`)+an+`return __p
|
|
}`;var Xr=hte(function(){return di(Ve,Qn+"return "+an).apply(n,rt)});if(Xr.source=an,uF(Xr))throw Xr;return Xr}function eLe(M){return Bi(M).toLowerCase()}function tLe(M){return Bi(M).toUpperCase()}function nLe(M,j,te){if(M=Bi(M),M&&(te||j===n))return OS(M);if(!M||!(j=Ol(j)))return M;var ge=Cu(M),ke=Cu(j),Ve=mc(ge,ke),rt=Z0(ge,ke)+1;return Rd(ge,Ve,rt).join("")}function rLe(M,j,te){if(M=Bi(M),M&&(te||j===n))return M.slice(0,IS(M)+1);if(!M||!(j=Ol(j)))return M;var ge=Cu(M),ke=Z0(ge,Cu(j))+1;return Rd(ge,0,ke).join("")}function iLe(M,j,te){if(M=Bi(M),M&&(te||j===n))return M.replace(pr,"");if(!M||!(j=Ol(j)))return M;var ge=Cu(M),ke=mc(ge,Cu(j));return Rd(ge,ke).join("")}function oLe(M,j){var te=A,ge=R;if(ea(j)){var ke="separator"in j?j.separator:ke;te="length"in j?zr(j.length):te,ge="omission"in j?Ol(j.omission):ge}M=Bi(M);var Ve=M.length;if(Hg(M)){var rt=Cu(M);Ve=rt.length}if(te>=Ve)return M;var pt=te-zg(ge);if(pt<1)return ge;var Et=rt?Rd(rt,0,pt).join(""):M.slice(0,pt);if(ke===n)return Et+ge;if(rt&&(pt+=Et.length-pt),cF(ke)){if(M.slice(pt).search(ke)){var Yt,Kt=Et;for(ke.global||(ke=Q0(ke.source,Bi(kt.exec(ke))+"g")),ke.lastIndex=0;Yt=ke.exec(Kt);)var an=Yt.index;Et=Et.slice(0,an===n?pt:an)}}else if(M.indexOf(Ol(ke),pt)!=pt){var Rn=Et.lastIndexOf(ke);Rn>-1&&(Et=Et.slice(0,Rn))}return Et+ge}function aLe(M){return M=Bi(M),M&&He.test(M)?M.replace(dt,KT):M}var sLe=cm(function(M,j,te){return M+(te?" ":"")+j.toUpperCase()}),pF=$P("toUpperCase");function dte(M,j,te){return M=Bi(M),j=te?n:j,j===n?UT(M)?JT(M):I9(M):M.match(j)||[]}var hte=Hr(function(M,j){try{return yl(M,n,j)}catch(te){return uF(te)?te:new br(te)}}),lLe=xc(function(M,j){return jl(j,function(te){te=So(te),Pd(M,te,sF(M[te],M))}),M});function uLe(M){var j=M==null?0:M.length,te=qn();return M=j?co(M,function(ge){if(typeof ge[1]!="function")throw new Wl(a);return[te(ge[0]),ge[1]]}):[],Hr(function(ge){for(var ke=-1;++ke<j;){var Ve=M[ke];if(yl(Ve[0],this,ge))return yl(Ve[1],this,ge)}})}function cLe(M){return z9(Cl(M,d))}function fF(M){return function(){return M}}function dLe(M,j){return M==null||M!==M?j:M}var hLe=MP(),pLe=MP(!0);function Ul(M){return M}function gF(M){return rm(typeof M=="function"?M:Cl(M,d))}function fLe(M){return OP(Cl(M,d))}function gLe(M,j){return QS(M,Cl(j,d))}var mLe=Hr(function(M,j){return function(te){return tm(te,M,j)}}),vLe=Hr(function(M,j){return function(te){return tm(M,te,j)}});function mF(M,j,te){var ge=ps(j),ke=pw(j,ge);te==null&&!(ea(j)&&(ke.length||!ge.length))&&(te=j,j=M,M=this,ke=pw(j,ps(j)));var Ve=!(ea(te)&&"chain"in te)||!!te.chain,rt=Pf(M);return jl(ke,function(pt){var Et=j[pt];M[pt]=Et,rt&&(M.prototype[pt]=function(){var Yt=this.__chain__;if(Ve||Yt){var Kt=M(this.__wrapped__),an=Kt.__actions__=Zs(this.__actions__);return an.push({func:Et,args:arguments,thisArg:M}),Kt.__chain__=Yt,Kt}return Et.apply(M,Ad([this.value()],arguments))})}),M}function yLe(){return Hi._===this&&(Hi._=Es),this}function vF(){}function bLe(M){return M=zr(M),Hr(function(j){return om(j,M)})}var wLe=ww(co),CLe=ww(gS),OLe=ww(Vg);function pte(M){return z(M)?bS(So(M)):G9(M)}function xLe(M){return function(j){return M==null?n:Bh(M,j)}}var SLe=Tf(),ALe=Tf(!0);function yF(){return[]}function bF(){return!1}function ILe(){return{}}function kLe(){return""}function ELe(){return!0}function _Le(M,j){if(M=zr(M),M<1||M>V)return[];var te=U,ge=sa(M,U);j=qn(j),M-=U;for(var ke=CS(ge,j);++te<M;)j(te);return ke}function TLe(M){return Lr(M)?co(M,So):Du(M)?[M]:Zs(to(Bi(M)))}function PLe(M){var j=++eP;return Bi(M)+j}var DLe=dm(function(M,j){return M+j},0),RLe=rA("ceil"),$Le=dm(function(M,j){return M/j},1),MLe=rA("floor");function LLe(M){return M&&M.length?dw(M,Ul,fw):n}function BLe(M,j){return M&&M.length?dw(M,qn(j,2),fw):n}function FLe(M){return Wg(M,Ul)}function NLe(M,j){return Wg(M,qn(j,2))}function VLe(M){return M&&M.length?dw(M,Ul,kf):n}function jLe(M,j){return M&&M.length?dw(M,qn(j,2),kf):n}var WLe=dm(function(M,j){return M*j},1),HLe=rA("round"),zLe=dm(function(M,j){return M-j},0);function ZLe(M){return M&&M.length?q1(M,Ul):0}function GLe(M,j){return M&&M.length?q1(M,qn(j,2)):0}return $e.after=f4e,$e.ary=zee,$e.assign=tMe,$e.assignIn=ite,$e.assignInWith=XP,$e.assignWith=nMe,$e.at=rMe,$e.before=Zee,$e.bind=sF,$e.bindAll=lLe,$e.bindKey=Gee,$e.castArray=I4e,$e.chain=jee,$e.chunk=La,$e.compact=la,$e.concat=Jo,$e.cond=uLe,$e.conforms=cLe,$e.constant=fF,$e.countBy=Z5e,$e.create=iMe,$e.curry=Qee,$e.curryRight=Uee,$e.debounce=Xee,$e.defaults=oMe,$e.defaultsDeep=aMe,$e.defer=g4e,$e.delay=m4e,$e.difference=Ao,$e.differenceBy=_s,$e.differenceWith=pm,$e.drop=Hh,$e.dropRight=Ja,$e.dropRightWhile=Sc,$e.dropWhile=Ca,$e.fill=oA,$e.filter=Q5e,$e.flatMap=Y5e,$e.flatMapDeep=K5e,$e.flatMapDepth=q5e,$e.flatten=Zh,$e.flattenDeep=hs,$e.flattenDepth=fm,$e.flip=v4e,$e.flow=hLe,$e.flowRight=pLe,$e.fromPairs=aA,$e.functions=pMe,$e.functionsIn=fMe,$e.groupBy=J5e,$e.initial=Y$e,$e.intersection=K$e,$e.intersectionBy=q$e,$e.intersectionWith=J$e,$e.invert=mMe,$e.invertBy=vMe,$e.invokeMap=t4e,$e.iteratee=gF,$e.keyBy=n4e,$e.keys=ps,$e.keysIn=Ql,$e.map=HP,$e.mapKeys=bMe,$e.mapValues=wMe,$e.matches=fLe,$e.matchesProperty=gLe,$e.memoize=ZP,$e.merge=CMe,$e.mergeWith=ote,$e.method=mLe,$e.methodOf=vLe,$e.mixin=mF,$e.negate=GP,$e.nthArg=bLe,$e.omit=OMe,$e.omitBy=xMe,$e.once=y4e,$e.orderBy=r4e,$e.over=wLe,$e.overArgs=b4e,$e.overEvery=CLe,$e.overSome=OLe,$e.partial=lF,$e.partialRight=Yee,$e.partition=i4e,$e.pick=SMe,$e.pickBy=ate,$e.property=pte,$e.propertyOf=xLe,$e.pull=r5e,$e.pullAll=Nee,$e.pullAllBy=i5e,$e.pullAllWith=o5e,$e.pullAt=a5e,$e.range=SLe,$e.rangeRight=ALe,$e.rearg=w4e,$e.reject=s4e,$e.remove=s5e,$e.rest=C4e,$e.reverse=oF,$e.sampleSize=u4e,$e.set=IMe,$e.setWith=kMe,$e.shuffle=c4e,$e.slice=l5e,$e.sortBy=p4e,$e.sortedUniq=g5e,$e.sortedUniqBy=m5e,$e.split=YMe,$e.spread=O4e,$e.tail=v5e,$e.take=y5e,$e.takeRight=b5e,$e.takeRightWhile=w5e,$e.takeWhile=C5e,$e.tap=L5e,$e.throttle=x4e,$e.thru=WP,$e.toArray=tte,$e.toPairs=ste,$e.toPairsIn=lte,$e.toPath=TLe,$e.toPlainObject=rte,$e.transform=EMe,$e.unary=S4e,$e.union=O5e,$e.unionBy=x5e,$e.unionWith=S5e,$e.uniq=A5e,$e.uniqBy=I5e,$e.uniqWith=k5e,$e.unset=_Me,$e.unzip=aF,$e.unzipWith=Vee,$e.update=TMe,$e.updateWith=PMe,$e.values=Ew,$e.valuesIn=DMe,$e.without=E5e,$e.words=dte,$e.wrap=A4e,$e.xor=_5e,$e.xorBy=T5e,$e.xorWith=P5e,$e.zip=D5e,$e.zipObject=R5e,$e.zipObjectDeep=$5e,$e.zipWith=M5e,$e.entries=ste,$e.entriesIn=lte,$e.extend=ite,$e.extendWith=XP,mF($e,$e),$e.add=DLe,$e.attempt=hte,$e.camelCase=LMe,$e.capitalize=ute,$e.ceil=RLe,$e.clamp=RMe,$e.clone=k4e,$e.cloneDeep=_4e,$e.cloneDeepWith=T4e,$e.cloneWith=E4e,$e.conformsTo=P4e,$e.deburr=cte,$e.defaultTo=dLe,$e.divide=$Le,$e.endsWith=BMe,$e.eq=$d,$e.escape=FMe,$e.escapeRegExp=NMe,$e.every=G5e,$e.find=U5e,$e.findIndex=Ac,$e.findKey=sMe,$e.findLast=X5e,$e.findLastIndex=zh,$e.findLastKey=lMe,$e.floor=MLe,$e.forEach=Wee,$e.forEachRight=Hee,$e.forIn=uMe,$e.forInRight=cMe,$e.forOwn=dMe,$e.forOwnRight=hMe,$e.get=dF,$e.gt=D4e,$e.gte=R4e,$e.has=gMe,$e.hasIn=hF,$e.head=Fee,$e.identity=Ul,$e.includes=e4e,$e.indexOf=X$e,$e.inRange=$Me,$e.invoke=yMe,$e.isArguments=vy,$e.isArray=Lr,$e.isArrayBuffer=$4e,$e.isArrayLike=Gl,$e.isArrayLikeObject=Oa,$e.isBoolean=M4e,$e.isBuffer=gm,$e.isDate=L4e,$e.isElement=B4e,$e.isEmpty=F4e,$e.isEqual=N4e,$e.isEqualWith=V4e,$e.isError=uF,$e.isFinite=j4e,$e.isFunction=Pf,$e.isInteger=Kee,$e.isLength=QP,$e.isMap=qee,$e.isMatch=W4e,$e.isMatchWith=H4e,$e.isNaN=z4e,$e.isNative=Z4e,$e.isNil=Q4e,$e.isNull=G4e,$e.isNumber=Jee,$e.isObject=ea,$e.isObjectLike=ua,$e.isPlainObject=sA,$e.isRegExp=cF,$e.isSafeInteger=U4e,$e.isSet=ete,$e.isString=UP,$e.isSymbol=Du,$e.isTypedArray=kw,$e.isUndefined=X4e,$e.isWeakMap=Y4e,$e.isWeakSet=K4e,$e.join=e5e,$e.kebabCase=VMe,$e.last=Ic,$e.lastIndexOf=t5e,$e.lowerCase=jMe,$e.lowerFirst=WMe,$e.lt=q4e,$e.lte=J4e,$e.max=LLe,$e.maxBy=BLe,$e.mean=FLe,$e.meanBy=NLe,$e.min=VLe,$e.minBy=jLe,$e.stubArray=yF,$e.stubFalse=bF,$e.stubObject=ILe,$e.stubString=kLe,$e.stubTrue=ELe,$e.multiply=WLe,$e.nth=n5e,$e.noConflict=yLe,$e.noop=vF,$e.now=zP,$e.pad=HMe,$e.padEnd=zMe,$e.padStart=ZMe,$e.parseInt=GMe,$e.random=MMe,$e.reduce=o4e,$e.reduceRight=a4e,$e.repeat=QMe,$e.replace=UMe,$e.result=AMe,$e.round=HLe,$e.runInContext=St,$e.sample=l4e,$e.size=d4e,$e.snakeCase=XMe,$e.some=h4e,$e.sortedIndex=u5e,$e.sortedIndexBy=c5e,$e.sortedIndexOf=d5e,$e.sortedLastIndex=h5e,$e.sortedLastIndexBy=p5e,$e.sortedLastIndexOf=f5e,$e.startCase=KMe,$e.startsWith=qMe,$e.subtract=zLe,$e.sum=ZLe,$e.sumBy=GLe,$e.template=JMe,$e.times=_Le,$e.toFinite=Df,$e.toInteger=zr,$e.toLength=nte,$e.toLower=eLe,$e.toNumber=kc,$e.toSafeInteger=eMe,$e.toString=Bi,$e.toUpper=tLe,$e.trim=nLe,$e.trimEnd=rLe,$e.trimStart=iLe,$e.truncate=oLe,$e.unescape=aLe,$e.uniqueId=PLe,$e.upperCase=sLe,$e.upperFirst=pF,$e.each=Wee,$e.eachRight=Hee,$e.first=Fee,mF($e,function(){var M={};return zl($e,function(j,te){Oi.call($e.prototype,te)||(M[te]=j)}),M}(),{chain:!1}),$e.VERSION=r,jl(["bind","bindKey","curry","curryRight","partial","partialRight"],function(M){$e[M].placeholder=$e}),jl(["drop","take"],function(M,j){tr.prototype[M]=function(te){te=te===n?1:po(zr(te),0);var ge=this.__filtered__&&!j?new tr(this):this.clone();return ge.__filtered__?ge.__takeCount__=sa(te,ge.__takeCount__):ge.__views__.push({size:sa(te,U),type:M+(ge.__dir__<0?"Right":"")}),ge},tr.prototype[M+"Right"]=function(te){return this.reverse()[M](te).reverse()}}),jl(["filter","map","takeWhile"],function(M,j){var te=j+1,ge=te==x||te==$;tr.prototype[M]=function(ke){var Ve=this.clone();return Ve.__iteratees__.push({iteratee:qn(ke,3),type:te}),Ve.__filtered__=Ve.__filtered__||ge,Ve}}),jl(["head","last"],function(M,j){var te="take"+(j?"Right":"");tr.prototype[M]=function(){return this[te](1).value()[0]}}),jl(["initial","tail"],function(M,j){var te="drop"+(j?"":"Right");tr.prototype[M]=function(){return this.__filtered__?new tr(this):this[te](1)}}),tr.prototype.compact=function(){return this.filter(Ul)},tr.prototype.find=function(M){return this.filter(M).head()},tr.prototype.findLast=function(M){return this.reverse().find(M)},tr.prototype.invokeMap=Hr(function(M,j){return typeof M=="function"?new tr(this):this.map(function(te){return tm(te,M,j)})}),tr.prototype.reject=function(M){return this.filter(GP(qn(M)))},tr.prototype.slice=function(M,j){M=zr(M);var te=this;return te.__filtered__&&(M>0||j<0)?new tr(te):(M<0?te=te.takeRight(-M):M&&(te=te.drop(M)),j!==n&&(j=zr(j),te=j<0?te.dropRight(-j):te.take(j-M)),te)},tr.prototype.takeRightWhile=function(M){return this.reverse().takeWhile(M).reverse()},tr.prototype.toArray=function(){return this.take(U)},zl(tr.prototype,function(M,j){var te=/^(?:filter|find|map|reject)|While$/.test(j),ge=/^(?:head|last)$/.test(j),ke=$e[ge?"take"+(j=="last"?"Right":""):j],Ve=ge||/^find/.test(j);ke&&($e.prototype[j]=function(){var rt=this.__wrapped__,pt=ge?[1]:arguments,Et=rt instanceof tr,Yt=pt[0],Kt=Et||Lr(rt),an=function(oi){var pi=ke.apply($e,Ad([oi],pt));return ge&&Rn?pi[0]:pi};Kt&&te&&typeof Yt=="function"&&Yt.length!=1&&(Et=Kt=!1);var Rn=this.__chain__,Qn=!!this.__actions__.length,sr=Ve&&!Rn,Xr=Et&&!Qn;if(!Ve&&Kt){rt=Xr?rt:new tr(this);var lr=M.apply(rt,pt);return lr.__actions__.push({func:WP,args:[an],thisArg:n}),new Ei(lr,Rn)}return sr&&Xr?M.apply(this,pt):(lr=this.thru(an),sr?ge?lr.value()[0]:lr.value():lr)})}),jl(["pop","push","shift","sort","splice","unshift"],function(M){var j=tw[M],te=/^(?:push|sort|unshift)$/.test(M)?"tap":"thru",ge=/^(?:pop|shift)$/.test(M);$e.prototype[M]=function(){var ke=arguments;if(ge&&!this.__chain__){var Ve=this.value();return j.apply(Lr(Ve)?Ve:[],ke)}return this[te](function(rt){return j.apply(Lr(rt)?rt:[],ke)})}}),zl(tr.prototype,function(M,j){var te=$e[j];if(te){var ge=te.name+"";Oi.call(wf,ge)||(wf[ge]=[]),wf[ge].push({name:j,func:te})}}),wf[bw(n,m).name]=[{name:"wrapper",func:n}],tr.prototype.clone=va,tr.prototype.reverse=q0,tr.prototype.value=L9,$e.prototype.at=B5e,$e.prototype.chain=F5e,$e.prototype.commit=N5e,$e.prototype.next=V5e,$e.prototype.plant=W5e,$e.prototype.reverse=H5e,$e.prototype.toJSON=$e.prototype.valueOf=$e.prototype.value=z5e,$e.prototype.first=$e.prototype.head,vf&&($e.prototype[vf]=j5e),$e},kd=kS();df?((df.exports=kd)._=kd,fS._=kd):Hi._=kd}).call(Dl)})(r5,r5.exports);var al=r5.exports;const Kb=(e,t)=>{const n=t.split(".");let r=e;for(const i of n)if(r&&typeof r=="object"&&i in r)r=r[i];else return;return r},pit=(e,t)=>{if(!e||typeof e!="string")return e;const n=e.match(/{{(.+?)}}/);if(n)try{return new Function(Object.keys(t).join(","),"return "+n[1])(...Object.values(t))}catch{return e}else return e},X2=(e,t)=>{const n=t.$values;return al.isString(e)?pit(e,t):al.isPlainObject(e)?Object.keys(e).reduce((r,i)=>{const o={...t};return e.name&&n&&(o.$val=Kb(n,e.name),o.$select=t.$selectData[e.name]),{...r,[i]:X2(e[i],o)}},{}):al.isArray(e)?e.map(r=>X2(r,t)):e},i5=(e,t,n)=>{const r=al.cloneDeep(e),i=t.split(".");function o(a,s,l){if(s.length===1){a[s[0]]=l;return}const u=s.shift();u&&(a[u]||(a[u]={}),o(a[u],s,l))}return o(r,i,n),r},WOe=({newVal:e,oldVal:t,formValues:n,formItems:r})=>{for(const i of r){const o=Kb(e,i.name),a=Kb(t,i.name);if(i.change&&!al.isEqual(o,a)){let s=al.cloneDeep(n.value);i.change.forEach(({target:l,value:u})=>{s=i5(s,l,u)}),n.value=s}i.children&&i.component!=="FormList"&&WOe({newVal:e,oldVal:t,formValues:n,formItems:i.children})}},qb=e=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let r=0;r<e;r++){const i=Math.floor(Math.random()*t.length);n+=t.charAt(i)}return n},fit=D1e.create({baseURL:"https://hyl999.co/api",paramsSerializer:e=>Object.keys(e).map(t=>typeof e[t]!="object"?`${t}=${e[t]}`:`${t}=${encodeURI(JSON.stringify(e[t]))}`).join("&")});fit.interceptors.response.use(e=>e.data);function git(e){return/[.*+?^${}()|[\]\\]/.test(e)}const dX=(e,t)=>e.filter(t).map(n=>n.children?{...n,children:dX(n.children,t)}:n),R0=Symbol(),I1=Symbol(),HOe=Symbol(),zOe=Symbol(),ZOe=Symbol(),GOe=Symbol(),hX=Symbol(),__=Symbol(),QOe=Symbol(),mit={labelWidth:150,labelAlign:"right",size:"default",items:[]},vit=[{label:"唯一标识",component:"Input",name:"name"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"标题",component:"Input",name:"props.title"},{label:"描述",component:"Textarea",name:"props.description"},{label:"是否可关闭",component:"Switch",name:"props.closable"},{label:"显示图标",component:"Switch",name:"props.show-icon"},{label:"类型",component:"Radio",name:"props.type",props:{mode:"static",options:[{label:"成功",value:"success"},{label:"信息",value:"info"},{label:"警告",value:"warning"},{label:"错误",value:"error"}]}},{label:"主题",component:"Radio",name:"props.effect",props:{mode:"static",options:[{label:"浅色",value:"light"},{label:"深色",value:"dark"}]}}],yit={name:"提示框",component:gGe,icon:"alert",type:"assist",order:2,attr:vit,initialValues:{component:"Alert",props:{title:"提示信息",type:"info",effect:"light",description:"这是一个描述",closable:!0,"show-icon":!0}}},UOe=Object.freeze(Object.defineProperty({__proto__:null,default:yit},Symbol.toStringTag,{value:"Module"})),bit=[{label:"唯一标识",component:"Input",name:"name"},{label:"按钮名称",component:"Input",name:"props.name"},{label:"点击事件",component:"Select",name:"props.clickEvent",props:{mode:"static",options:[{label:"提交表单",value:"submitForm"},{label:"重置表单",value:"resetFieldsForm"},{label:"自定义",value:"custom"}]},initialValue:"submitForm"},{label:"自定义事件",component:"Input",name:"props.customEvent",hidden:'{{$values.props.clickEvent!=="custom"}}',help:"可以通过schemaContext注入自定义事件,然后通过插值获取。 例:{{ onTest }}"}],Is=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},wit={__name:"Button",props:{name:String,disabled:Boolean,type:{type:String,default:"primary"},clickEvent:String,customEvent:Function,color:String},setup(e){const t=Ht(ZOe),n=e,r=()=>{n.clickEvent==="submitForm"&&t.submit(),n.clickEvent==="resetForm"&&t.resetFields(),n.clickEvent==="custom"&&n.customEvent()};return(i,o)=>(Ce(),mt(W(mo),jr({class:"Button"},{...i.$attrs,...n},{onClick:r}),{default:ot(()=>[gr(en(e.name),1)]),_:1},16))}},Cit=Is(wit,[["__scopeId","data-v-0e3af495"]]),Oit={name:"按钮",component:Cit,icon:"button",type:"assist",order:1,initialValues:{component:"Button",props:{name:"提交",type:"primary"}},attr:bit},XOe=Object.freeze(Object.defineProperty({__proto__:null,default:Oit},Symbol.toStringTag,{value:"Module"})),xit={__name:"Card",props:{props:Object,children:Array,design:Boolean},setup(e){return(t,n)=>(Ce(),mt(W($Ce),k2(lL({...e.props,...t.$attrs})),{default:ot(()=>[e.design?(Ce(),mt(W(Ree),{key:0,children:e.children},null,8,["children"])):(Ce(),mt(W(PT),{key:1,formItems:e.children},null,8,["formItems"]))]),_:1},16))}},Sit={name:"卡片",component:xit,icon:"card",type:"layout",order:1,initialValues:{component:"Card",children:[],props:{header:"卡片"}},attr:[{label:"唯一标识",component:"Input",name:"name"},{label:"卡片标题",component:"Input",name:"props.header"}]},YOe=Object.freeze(Object.defineProperty({__proto__:null,default:Sit},Symbol.toStringTag,{value:"Module"})),T_=(e,t)=>{const n=Ht(zOe),{request:r}=Ht(R0),i=Oe({get(){return e.modelValue},set(d){t("update:modelValue",d)}}),o=Re([]),a=Re(!1),s=Re(!1),l=Br({pageNum:1,pageSize:10}),u=al.debounce(async()=>{if(s.value||!e.api)return;const{baseURL:d,url:h,method:f,params:g,data:b,dataPath:v}=e.api;a.value=!0;const m=await r({baseURL:d,url:h,method:f,params:{...g,...l},data:{...b,...l}}),w=Kb(m,v);w.length!==l.pageSize&&(s.value=!0);const k=w.map(T=>al.isPlainObject(T)?T:{label:T,value:T});o.value=[...o.value,...k],l.pageNum++,a.value=!1},300);_n(()=>{const{mode:d,options:h}=e;d==="static"&&(o.value=h,s.value=!0),d==="remote"&&u()}),Pt(()=>e.api,(d,h)=>{al.isEqual(d,h)||(o.value=[],s.value=!1,l.pageNum=1,u())}),Pt(o,d=>{const{autoSelectedFirst:h,modelValue:f,valueKey:g,multiple:b,sort:v}=e;if(h&&d.length&&!(f!=null&&f.length)){const m=b?[d[0][g]]:d[0][g];t("update:modelValue",m),c(m)}v&&(o.value=o.value.sort((m,w)=>m.value-w.value))}),Pt(()=>e.options,d=>{e.mode==="static"&&(o.value=d)}),Pt(()=>e.mode,d=>{d==="static"&&(o.value=e.options),d==="remote"&&(o.value=[],u())});const c=d=>{const{valueKey:h,multiple:f,name:g}=e;let b={};f?b=o.value.filter(v=>d.includes(v[h])):b=o.value.find(v=>v[h]===d),n&&(n[g]=b),t("onChangeSelect",n)};return{selectVal:i,selectChange:c,currentOptions:o,loading:a,fetchData:u,isMax:s}},Ait={__name:"Cascader",props:{modelValue:{},options:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},mode:{type:String,default:"static"},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},api:Object,name:String,takeLastLevel:{type:Boolean,default:!1}},emits:["update:modelValue","onChangeSelect"],setup(e,{emit:t}){const n=e,r=t,i=Oe({get(){return n.modelValue},set(s){n.takeLastLevel?r("update:modelValue",s[s.length-1]):r("update:modelValue",s)}}),{currentOptions:o,loading:a}=T_(n,r);return(s,l)=>(Ce(),mt(W(iKe),jr({modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=u=>i.value=u),options:W(o),loading:W(a),"show-all-levels":!e.takeLastLevel,props:{multiple:e.multiple}},s.$attrs),null,16,["modelValue","options","loading","show-all-levels","props"]))}},Qo=(e=[],t=[])=>[...dX([{label:"标签",component:"Input",name:"label"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"Textarea",name:"help"},{label:"占位提示",component:"Input",name:"props.placeholder",designKey:"form-ekRL"},{label:"初始值",component:"Input",name:"initialValue"},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否只读",component:"Switch",name:"props.readonly"},{label:"是否禁用",component:"Switch",name:"props.disabled"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"隐藏标签",component:"Switch",name:"hideLabel"}],props:{columns:3,"row-gap":0,"column-gap":20},designKey:"form-R003",name:"cNmCuu",style:{marginBottom:0}}],n=>!e.includes(n.name)),...t],Uo=(e=[])=>[{label:"自定义class",component:"Input",name:"props.class"},{label:"自定义style",component:"JsonEdit",name:"props.style",help:"与vue的style对象格式一样",props:{mode:"dialog"}}].filter(t=>!e.includes(t.name)),KOe=[{label:"url",component:"Input",name:"props.api.url",initialValue:"/current/query/article",designKey:"form-UrE8"},{label:"请求方式",component:"Radio",name:"props.api.method",props:{mode:"static",autoSelectedFirst:!0,options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"DELETE",value:"DELETE"}]},designKey:"form-nOpD"},{label:"请求参数",component:"JsonEdit",name:"props.api.params",hidden:'{{ ["POST","PUT"].includes($values.props.api.method) }}',initialValue:{},props:{mode:"dialog"}},{label:"请求参数",component:"JsonEdit",name:"props.api.data",hidden:'{{ ["GET","DELETE"].includes($values.props.api.method) }}',initialValue:{},props:{mode:"dialog"}},{label:"数据路径",component:"Input",name:"props.api.dataPath",initialValue:"data",designKey:"form-UrE8"}],Ta=[{component:"Alert",props:{type:"success",description:"对于配置级的联动,请直接点击下方按钮【编辑配置文本】,通过插值表达式实现",closable:!0,"show-icon":!0},designKey:"design-MQPU",name:"form-Oqi5"},{label:"值联动",help:"本字段值改变时,修改其他字段的值",name:"change",component:"FormList",children:[{label:"目标字段",name:"target",component:"Input",props:{}},{label:"值",name:"value",component:"Input",props:{}}],props:{mode:"card"}}],LL=[{component:"Divider",props:{title:"选项设置",contentPosition:"center"},designKey:"design-gSnX",name:"form-xDEe",style:{marginTop:"40px"}},{label:"标签key",component:"Input",name:"props.labelKey",designKey:"form-X6hs"},{label:"值Key",component:"Input",name:"props.valueKey",designKey:"form-STkl"},{label:"数据模式",component:"Radio",name:"props.mode",props:{mode:"static",options:[{label:"静态",value:"static"},{label:"远程",value:"remote"}],optionType:"button",space:0},designKey:"form-PLpj"},{label:"静态选项",name:"props.options",component:"FormList",hidden:'{{$values.props.mode!=="static"}}',children:[{label:"选项名",name:"{{$values.props.labelKey}}",component:"Input",props:{placeholder:"请输入..."},designKey:"form-LnGh"},{label:"选项值",name:"{{$values.props.valueKey}}",component:"Input",props:{},designKey:"form-HYtW"}],designKey:"form-Iwpd",props:{mode:"table",newItemDefaults:"{{ (index) => ({ [$values.props.labelKey]: `选项${index + 1}`, [$values.props.valueKey]: `value${index + 1}` }) }}"}},{component:"Card",props:{},designKey:"id-pGeN",name:"form-6vzT",hidden:'{{$values.props.mode==="static"}}',children:KOe}],Xo=e=>{const{basic:t=[],high:n=[],linkage:r=[]}=e;return[{component:"Collapse",name:"mergeAttr",children:[{title:"常用属性",name:"basic",checked:!0,children:t},{title:"高级属性",name:"high",children:n},{title:"联动规则",name:"linkage",children:r}]}]},Iit=Xo({basic:[...Qo(["initialValue","props.readonly"]),{label:"选择模式",component:"Switch",name:"props.multiple",props:{"active-text":"多选","inactive-text":"单选"},designKey:"form-eTxc"},{component:"Divider",props:{title:"选项设置",contentPosition:"center"},designKey:"design-gSnX",name:"form-xDEe",style:{marginTop:"40px"}},{label:"标签key",component:"Input",name:"props.labelKey",designKey:"form-X6hs"},{label:"值Key",component:"Input",name:"props.valueKey",designKey:"form-STkl"},{label:"数据模式",component:"Radio",name:"props.mode",props:{mode:"static",options:[{label:"静态",value:"static"},{label:"远程",value:"remote"}],optionType:"button"},designKey:"form-PLpj"},{label:"静态选项",name:"props.options",component:"JsonEdit",hidden:'{{$values.props.mode!=="static"}}',designKey:"form-Iwpd",props:{mode:"dialog"}},{component:"Card",designKey:"id-pGeN",name:"form-6vzT",hidden:'{{$values.props.mode==="static"}}',children:KOe}],high:[...Uo(),{label:"只取最后一级",component:"Switch",name:"props.takeLastLevel",designKey:"form-kJ7K222",hidden:"{{$values.props.multiple}}"}],linkage:Ta}),kit={name:"级联选择器",icon:"cascader",type:"basic",component:Ait,attr:Iit,order:7,initialValues:{label:"级联选择器",component:"cascader",props:{placeholder:"请选择...",mode:"static",labelKey:"label",valueKey:"value",options:[{label:"选项1",value:"value1",children:[{label:"选项1-1",value:"value1-1"},{label:"选项1-2",value:"value1-2"},{label:"选项1-3",value:"value1-2"}]},{label:"选项2",value:"value2",children:[{label:"选项2-1",value:"value2-1"},{label:"选项2-2",value:"value2-2"},{label:"选项2-3",value:"value2-2"}]},{label:"选项3",value:"value3"}]}}},qOe=Object.freeze(Object.defineProperty({__proto__:null,default:kit},Symbol.toStringTag,{value:"Module"})),Eit=Xo({basic:[...Qo(["props.readonly","props.placeholder","initialValue"]),{label:"初始值",component:"JsonEdit",name:"initialValue",props:{mode:"dialog",initVal:[]}},{label:"选项样式类型",component:"Radio",name:"props.optionType",props:{mode:"static",options:[{label:"无边框",value:"circle"},{label:"边框",value:"border"},{label:"按钮",value:"button"}]},initialValue:"circle"},...LL],high:[...Uo(),{label:"自动选中第一项",component:"Switch",name:"props.autoSelectedFirst",designKey:"form-LPpx"}],linkage:Ta}),_it={key:0,style:{"font-size":"12px"}},Tit={__name:"Checkbox",props:{modelValue:{},options:{type:Array,default:()=>[]},mode:{type:String,default:"static"},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},autoSelectedFirst:{type:Boolean,default:!1},api:Object,name:String,optionType:{type:String,default:"circle"},space:{type:Number,default:0},multiple:{type:Boolean,default:!0}},emits:["update:modelValue","onChangeSelect"],setup(e,{emit:t}){const n=e,r=t,{selectVal:i,currentOptions:o,selectChange:a,loading:s}=T_(n,r);return(l,u)=>{const c=o0("loading");return Ce(),We(un,null,[!W(o).length&&!W(s)?(Ce(),We("div",_it,"暂无选项")):xt("",!0),Kn((Ce(),mt(W(VCe),jr(l.$attrs,{modelValue:W(i),"onUpdate:modelValue":u[0]||(u[0]=d=>ni(i)?i.value=d:null),onChange:W(a)}),{default:ot(()=>[e.optionType==="circle"||e.optionType==="border"?(Ce(!0),We(un,{key:0},xr(W(o),d=>(Ce(),mt(W(jp),{key:d[e.valueKey],label:d[e.valueKey],border:e.optionType==="border"},{default:ot(()=>[gr(en(d[e.labelKey]),1)]),_:2},1032,["label","border"]))),128)):xt("",!0),e.optionType==="button"?(Ce(),mt(W($L),{key:1,wrap:"",size:[e.space,e.space]},{default:ot(()=>[(Ce(!0),We(un,null,xr(W(o),d=>(Ce(),mt(W(cYe),{key:d[e.valueKey],label:d[e.valueKey],size:"large"},{default:ot(()=>[gr(en(d[e.labelKey]),1)]),_:2},1032,["label"]))),128))]),_:1},8,["size"])):xt("",!0)]),_:1},16,["modelValue","onChange"])),[[c,W(s)]])],64)}}},Pit={name:"多选框组",icon:"checkbox",type:"basic",component:Tit,order:4,initialValues:{label:"多选框组",component:"Checkbox",props:{placeholder:"请选择...",mode:"static",options:[{label:"选项1",value:"value1"},{label:"选项2",value:"value2"},{label:"选项3",value:"value3"}],labelKey:"label",valueKey:"value"}},attr:Eit},JOe=Object.freeze(Object.defineProperty({__proto__:null,default:Pit},Symbol.toStringTag,{value:"Module"})),Dit=Xo({basic:[...Qo(["props.readonly","props.placeholder","initialValue"]),{label:"初始值",component:"Textarea",name:"initialValue"},{label:"高度",component:"InputNumber",name:"props.height",designKey:"form-cegd"}],high:Uo(),linkage:Ta});var Tie={exports:{}},Pie;function BL(){return Pie||(Pie=1,function(e,t){(function(n,r){e.exports=r()})(Dl,function(){var n=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(n),o=/MSIE \d/.test(n),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),s=/Edge\/(\d+)/.exec(n),l=o||a||s,u=l&&(o?document.documentMode||6:+(s||a)[1]),c=!s&&/WebKit\//.test(n),d=c&&/Qt\/\d+\.\d+/.test(n),h=!s&&/Chrome\/(\d+)/.exec(n),f=h&&+h[1],g=/Opera\//.test(n),b=/Apple Computer/.test(navigator.vendor),v=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),m=/PhantomJS/.test(n),w=b&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),k=/Android/.test(n),T=w||k||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),S=w||/Mac/.test(r),I=/\bCrOS\b/.test(n),O=/win/i.test(r),y=g&&n.match(/Version\/(\d*\.\d*)/);y&&(y=Number(y[1])),y&&y>=15&&(g=!1,c=!0);var _=S&&(d||g&&(y==null||y<12.11)),A=i||l&&u>=9;function R(p){return new RegExp("(^|\\s)"+p+"(?:$|\\s)\\s*")}var D=function(p,E){var F=p.className,B=R(E).exec(F);if(B){var z=F.slice(B.index+B[0].length);p.className=F.slice(0,B.index)+(z?B[1]+z:"")}};function C(p){for(var E=p.childNodes.length;E>0;--E)p.removeChild(p.firstChild);return p}function x(p,E){return C(p).appendChild(E)}function P(p,E,F,B){var z=document.createElement(p);if(F&&(z.className=F),B&&(z.style.cssText=B),typeof E=="string")z.appendChild(document.createTextNode(E));else if(E)for(var re=0;re<E.length;++re)z.appendChild(E[re]);return z}function $(p,E,F,B){var z=P(p,E,F,B);return z.setAttribute("role","presentation"),z}var L;document.createRange?L=function(p,E,F,B){var z=document.createRange();return z.setEnd(B||p,F),z.setStart(p,E),z}:L=function(p,E,F){var B=document.body.createTextRange();try{B.moveToElementText(p.parentNode)}catch{return B}return B.collapse(!0),B.moveEnd("character",F),B.moveStart("character",E),B};function V(p,E){if(E.nodeType==3&&(E=E.parentNode),p.contains)return p.contains(E);do if(E.nodeType==11&&(E=E.host),E==p)return!0;while(E=E.parentNode)}function H(p){var E=p.ownerDocument||p,F;try{F=p.activeElement}catch{F=E.body||null}for(;F&&F.shadowRoot&&F.shadowRoot.activeElement;)F=F.shadowRoot.activeElement;return F}function Q(p,E){var F=p.className;R(E).test(F)||(p.className+=(F?" ":"")+E)}function U(p,E){for(var F=p.split(" "),B=0;B<F.length;B++)F[B]&&!R(F[B]).test(E)&&(E+=" "+F[B]);return E}var K=function(p){p.select()};w?K=function(p){p.selectionStart=0,p.selectionEnd=p.value.length}:l&&(K=function(p){try{p.select()}catch{}});function J(p){return p.display.wrapper.ownerDocument}function ue(p){return ee(p.display.wrapper)}function ee(p){return p.getRootNode?p.getRootNode():p.ownerDocument}function N(p){return J(p).defaultView}function q(p){var E=Array.prototype.slice.call(arguments,1);return function(){return p.apply(null,E)}}function G(p,E,F){E||(E={});for(var B in p)p.hasOwnProperty(B)&&(F!==!1||!E.hasOwnProperty(B))&&(E[B]=p[B]);return E}function ne(p,E,F,B,z){E==null&&(E=p.search(/[^\s\u00a0]/),E==-1&&(E=p.length));for(var re=B||0,he=z||0;;){var ye=p.indexOf(" ",re);if(ye<0||ye>=E)return he+(E-re);he+=ye-re,he+=F-he%F,re=ye+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=q(this.onTimeout,this)};le.prototype.onTimeout=function(p){p.id=0,p.time<=+new Date?p.f():setTimeout(p.handler,p.time-+new Date)},le.prototype.set=function(p,E){this.f=E;var F=+new Date+p;(!this.id||F<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,p),this.time=F)};function oe(p,E){for(var F=0;F<p.length;++F)if(p[F]==E)return F;return-1}var ve=50,de={toString:function(){return"CodeMirror.Pass"}},ae={scroll:!1},be={origin:"*mouse"},ie={origin:"+move"};function ce(p,E,F){for(var B=0,z=0;;){var re=p.indexOf(" ",B);re==-1&&(re=p.length);var he=re-B;if(re==p.length||z+he>=E)return B+Math.min(he,E-z);if(z+=re-B,z+=F-z%F,B=re+1,z>=E)return B}}var pe=[""];function X(p){for(;pe.length<=p;)pe.push(Z(pe)+" ");return pe[p]}function Z(p){return p[p.length-1]}function Y(p,E){for(var F=[],B=0;B<p.length;B++)F[B]=E(p[B],B);return F}function se(p,E,F){for(var B=0,z=F(E);B<p.length&&F(p[B])<=z;)B++;p.splice(B,0,E)}function fe(){}function me(p,E){var F;return Object.create?F=Object.create(p):(fe.prototype=p,F=new fe),E&&G(E,F),F}var Ae=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Be(p){return/\w/.test(p)||p>""&&(p.toUpperCase()!=p.toLowerCase()||Ae.test(p))}function Ye(p,E){return E?E.source.indexOf("\\w")>-1&&Be(p)?!0:E.test(p):Be(p)}function Qe(p){for(var E in p)if(p.hasOwnProperty(E)&&p[E])return!1;return!0}var nt=/[\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 st(p){return p.charCodeAt(0)>=768&&nt.test(p)}function Le(p,E,F){for(;(F<0?E>0:E<p.length)&&st(p.charAt(E));)E+=F;return E}function Me(p,E,F){for(var B=E>F?-1:1;;){if(E==F)return E;var z=(E+F)/2,re=B<0?Math.ceil(z):Math.floor(z);if(re==E)return p(re)?E:F;p(re)?F=re:E=re+B}}function je(p,E,F,B){if(!p)return B(E,F,"ltr",0);for(var z=!1,re=0;re<p.length;++re){var he=p[re];(he.from<F&&he.to>E||E==F&&he.to==E)&&(B(Math.max(he.from,E),Math.min(he.to,F),he.level==1?"rtl":"ltr",re),z=!0)}z||B(E,F,"ltr")}var Ue=null;function Te(p,E,F){var B;Ue=null;for(var z=0;z<p.length;++z){var re=p[z];if(re.from<E&&re.to>E)return z;re.to==E&&(re.from!=re.to&&F=="before"?B=z:Ue=z),re.from==E&&(re.from!=re.to&&F!="before"?B=z:Ue=z)}return B??Ue}var bt=function(){var p="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",E="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function F(Se){return Se<=247?p.charAt(Se):1424<=Se&&Se<=1524?"R":1536<=Se&&Se<=1785?E.charAt(Se-1536):1774<=Se&&Se<=2220?"r":8192<=Se&&Se<=8203?"w":Se==8204?"b":"L"}var B=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,re=/[LRr]/,he=/[Lb1n]/,ye=/[1n]/;function we(Se,Ge,Je){this.level=Se,this.from=Ge,this.to=Je}return function(Se,Ge){var Je=Ge=="ltr"?"L":"R";if(Se.length==0||Ge=="ltr"&&!B.test(Se))return!1;for(var Ct=Se.length,vt=[],Nt=0;Nt<Ct;++Nt)vt.push(F(Se.charCodeAt(Nt)));for(var Gt=0,sn=Je;Gt<Ct;++Gt){var fn=vt[Gt];fn=="m"?vt[Gt]=sn:sn=fn}for(var On=0,pn=Je;On<Ct;++On){var Dn=vt[On];Dn=="1"&&pn=="r"?vt[On]="n":re.test(Dn)&&(pn=Dn,Dn=="r"&&(vt[On]="R"))}for(var Gn=1,Wn=vt[0];Gn<Ct-1;++Gn){var Rr=vt[Gn];Rr=="+"&&Wn=="1"&&vt[Gn+1]=="1"?vt[Gn]="1":Rr==","&&Wn==vt[Gn+1]&&(Wn=="1"||Wn=="n")&&(vt[Gn]=Wn),Wn=Rr}for(var Di=0;Di<Ct;++Di){var Fo=vt[Di];if(Fo==",")vt[Di]="N";else if(Fo=="%"){var to=void 0;for(to=Di+1;to<Ct&&vt[to]=="%";++to);for(var So=Di&&vt[Di-1]=="!"||to<Ct&&vt[to]=="1"?"1":"N",Ko=Di;Ko<to;++Ko)vt[Ko]=So;Di=to-1}}for(var qo=0,ds=Je;qo<Ct;++qo){var La=vt[qo];ds=="L"&&La=="1"?vt[qo]="L":re.test(La)&&(ds=La)}for(var la=0;la<Ct;++la)if(z.test(vt[la])){var Jo=void 0;for(Jo=la+1;Jo<Ct&&z.test(vt[Jo]);++Jo);for(var Ao=(la?vt[la-1]:Je)=="L",_s=(Jo<Ct?vt[Jo]:Je)=="L",pm=Ao==_s?Ao?"L":"R":Je,Hh=la;Hh<Jo;++Hh)vt[Hh]=pm;la=Jo-1}for(var Ja=[],Sc,Ca=0;Ca<Ct;)if(he.test(vt[Ca])){var oA=Ca;for(++Ca;Ca<Ct&&he.test(vt[Ca]);++Ca);Ja.push(new we(0,oA,Ca))}else{var Ac=Ca,zh=Ja.length,Zh=Ge=="rtl"?1:0;for(++Ca;Ca<Ct&&vt[Ca]!="L";++Ca);for(var hs=Ac;hs<Ca;)if(ye.test(vt[hs])){Ac<hs&&(Ja.splice(zh,0,new we(1,Ac,hs)),zh+=Zh);var fm=hs;for(++hs;hs<Ca&&ye.test(vt[hs]);++hs);Ja.splice(zh,0,new we(2,fm,hs)),zh+=Zh,Ac=hs}else++hs;Ac<Ca&&Ja.splice(zh,0,new we(1,Ac,Ca))}return Ge=="ltr"&&(Ja[0].level==1&&(Sc=Se.match(/^\s+/))&&(Ja[0].from=Sc[0].length,Ja.unshift(new we(0,0,Sc[0].length))),Z(Ja).level==1&&(Sc=Se.match(/\s+$/))&&(Z(Ja).to-=Sc[0].length,Ja.push(new we(0,Ct-Sc[0].length,Ct)))),Ge=="rtl"?Ja.reverse():Ja}}();function At(p,E){var F=p.order;return F==null&&(F=p.order=bt(p.text,E)),F}var ht=[],Pe=function(p,E,F){if(p.addEventListener)p.addEventListener(E,F,!1);else if(p.attachEvent)p.attachEvent("on"+E,F);else{var B=p._handlers||(p._handlers={});B[E]=(B[E]||ht).concat(F)}};function Ze(p,E){return p._handlers&&p._handlers[E]||ht}function dt(p,E,F){if(p.removeEventListener)p.removeEventListener(E,F,!1);else if(p.detachEvent)p.detachEvent("on"+E,F);else{var B=p._handlers,z=B&&B[E];if(z){var re=oe(z,F);re>-1&&(B[E]=z.slice(0,re).concat(z.slice(re+1)))}}}function Mt(p,E){var F=Ze(p,E);if(F.length)for(var B=Array.prototype.slice.call(arguments,2),z=0;z<F.length;++z)F[z].apply(null,B)}function He(p,E,F){return typeof E=="string"&&(E={type:E,preventDefault:function(){this.defaultPrevented=!0}}),Mt(p,F||E.type,p,E),Qt(E)||E.codemirrorIgnore}function wt(p){var E=p._handlers&&p._handlers.cursorActivity;if(E)for(var F=p.curOp.cursorActivityHandlers||(p.curOp.cursorActivityHandlers=[]),B=0;B<E.length;++B)oe(F,E[B])==-1&&F.push(E[B])}function Ee(p,E){return Ze(p,E).length>0}function Xe(p){p.prototype.on=function(E,F){Pe(this,E,F)},p.prototype.off=function(E,F){dt(this,E,F)}}function ct(p){p.preventDefault?p.preventDefault():p.returnValue=!1}function _t(p){p.stopPropagation?p.stopPropagation():p.cancelBubble=!0}function Qt(p){return p.defaultPrevented!=null?p.defaultPrevented:p.returnValue==!1}function ln(p){ct(p),_t(p)}function kn(p){return p.target||p.srcElement}function hr(p){var E=p.which;return E==null&&(p.button&1?E=1:p.button&2?E=3:p.button&4&&(E=2)),S&&p.ctrlKey&&E==1&&(E=3),E}var pr=function(){if(l&&u<9)return!1;var p=P("div");return"draggable"in p||"dragDrop"in p}(),Wr;function ze(p){if(Wr==null){var E=P("span","");x(p,P("span",[E,document.createTextNode("x")])),p.firstChild.offsetHeight!=0&&(Wr=E.offsetWidth<=1&&E.offsetHeight>2&&!(l&&u<8))}var F=Wr?P("span",""):P("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return F.setAttribute("cm-text",""),F}var Ke;function et(p){if(Ke!=null)return Ke;var E=x(p,document.createTextNode("AخA")),F=L(E,0,1).getBoundingClientRect(),B=L(E,1,2).getBoundingClientRect();return C(p),!F||F.left==F.right?!1:Ke=B.right-F.right<3}var $t=`
|
|
|
|
b`.split(/\n/).length!=3?function(p){for(var E=0,F=[],B=p.length;E<=B;){var z=p.indexOf(`
|
|
`,E);z==-1&&(z=p.length);var re=p.slice(E,p.charAt(z-1)=="\r"?z-1:z),he=re.indexOf("\r");he!=-1?(F.push(re.slice(0,he)),E+=he+1):(F.push(re),E=z+1)}return F}:function(p){return p.split(/\r\n?|\n/)},Lt=window.getSelection?function(p){try{return p.selectionStart!=p.selectionEnd}catch{return!1}}:function(p){var E;try{E=p.ownerDocument.selection.createRange()}catch{}return!E||E.parentElement()!=p?!1:E.compareEndPoints("StartToEnd",E)!=0},Mn=function(){var p=P("div");return"oncopy"in p?!0:(p.setAttribute("oncopy","return;"),typeof p.oncopy=="function")}(),qe=null;function kt(p){if(qe!=null)return qe;var E=x(p,P("span","x")),F=E.getBoundingClientRect(),B=L(E,0,1).getBoundingClientRect();return qe=Math.abs(F.left-B.left)>1}var Ut={},nn={};function Cn(p,E){arguments.length>2&&(E.dependencies=Array.prototype.slice.call(arguments,2)),Ut[p]=E}function Pn(p,E){nn[p]=E}function lt(p){if(typeof p=="string"&&nn.hasOwnProperty(p))p=nn[p];else if(p&&typeof p.name=="string"&&nn.hasOwnProperty(p.name)){var E=nn[p.name];typeof E=="string"&&(E={name:E}),p=me(E,p),p.name=E.name}else{if(typeof p=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(p))return lt("application/xml");if(typeof p=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(p))return lt("application/json")}return typeof p=="string"?{name:p}:p||{name:"null"}}function It(p,E){E=lt(E);var F=Ut[E.name];if(!F)return It(p,"text/plain");var B=F(p,E);if(Xt.hasOwnProperty(E.name)){var z=Xt[E.name];for(var re in z)z.hasOwnProperty(re)&&(B.hasOwnProperty(re)&&(B["_"+re]=B[re]),B[re]=z[re])}if(B.name=E.name,E.helperType&&(B.helperType=E.helperType),E.modeProps)for(var he in E.modeProps)B[he]=E.modeProps[he];return B}var Xt={};function on(p,E){var F=Xt.hasOwnProperty(p)?Xt[p]:Xt[p]={};G(E,F)}function Vn(p,E){if(E===!0)return E;if(p.copyState)return p.copyState(E);var F={};for(var B in E){var z=E[B];z instanceof Array&&(z=z.concat([])),F[B]=z}return F}function Ur(p,E){for(var F;p.innerMode&&(F=p.innerMode(E),!(!F||F.mode==p));)E=F.state,p=F.mode;return F||{mode:p,state:E}}function yr(p,E,F){return p.startState?p.startState(E,F):!0}var Fn=function(p,E,F){this.pos=this.start=0,this.string=p,this.tabSize=E||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=F};Fn.prototype.eol=function(){return this.pos>=this.string.length},Fn.prototype.sol=function(){return this.pos==this.lineStart},Fn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Fn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Fn.prototype.eat=function(p){var E=this.string.charAt(this.pos),F;if(typeof p=="string"?F=E==p:F=E&&(p.test?p.test(E):p(E)),F)return++this.pos,E},Fn.prototype.eatWhile=function(p){for(var E=this.pos;this.eat(p););return this.pos>E},Fn.prototype.eatSpace=function(){for(var p=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>p},Fn.prototype.skipToEnd=function(){this.pos=this.string.length},Fn.prototype.skipTo=function(p){var E=this.string.indexOf(p,this.pos);if(E>-1)return this.pos=E,!0},Fn.prototype.backUp=function(p){this.pos-=p},Fn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ne(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ne(this.string,this.lineStart,this.tabSize):0)},Fn.prototype.indentation=function(){return ne(this.string,null,this.tabSize)-(this.lineStart?ne(this.string,this.lineStart,this.tabSize):0)},Fn.prototype.match=function(p,E,F){if(typeof p=="string"){var B=function(he){return F?he.toLowerCase():he},z=this.string.substr(this.pos,p.length);if(B(z)==B(p))return E!==!1&&(this.pos+=p.length),!0}else{var re=this.string.slice(this.pos).match(p);return re&&re.index>0?null:(re&&E!==!1&&(this.pos+=re[0].length),re)}},Fn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Fn.prototype.hideFirstChars=function(p,E){this.lineStart+=p;try{return E()}finally{this.lineStart-=p}},Fn.prototype.lookAhead=function(p){var E=this.lineOracle;return E&&E.lookAhead(p)},Fn.prototype.baseToken=function(){var p=this.lineOracle;return p&&p.baseToken(this.pos)};function dn(p,E){if(E-=p.first,E<0||E>=p.size)throw new Error("There is no line "+(E+p.first)+" in the document.");for(var F=p;!F.lines;)for(var B=0;;++B){var z=F.children[B],re=z.chunkSize();if(E<re){F=z;break}E-=re}return F.lines[E]}function ri(p,E,F){var B=[],z=E.line;return p.iter(E.line,F.line+1,function(re){var he=re.text;z==F.line&&(he=he.slice(0,F.ch)),z==E.line&&(he=he.slice(E.ch)),B.push(he),++z}),B}function ji(p,E,F){var B=[];return p.iter(E,F,function(z){B.push(z.text)}),B}function ci(p,E){var F=E-p.height;if(F)for(var B=p;B;B=B.parent)B.height+=F}function Ie(p){if(p.parent==null)return null;for(var E=p.parent,F=oe(E.lines,p),B=E.parent;B;E=B,B=B.parent)for(var z=0;B.children[z]!=E;++z)F+=B.children[z].chunkSize();return F+E.first}function Fe(p,E){var F=p.first;e:do{for(var B=0;B<p.children.length;++B){var z=p.children[B],re=z.height;if(E<re){p=z;continue e}E-=re,F+=z.chunkSize()}return F}while(!p.lines);for(var he=0;he<p.lines.length;++he){var ye=p.lines[he],we=ye.height;if(E<we)break;E-=we}return F+he}function Dt(p,E){return E>=p.first&&E<p.first+p.size}function zt(p,E){return String(p.lineNumberFormatter(E+p.firstLineNumber))}function yt(p,E,F){if(F===void 0&&(F=null),!(this instanceof yt))return new yt(p,E,F);this.line=p,this.ch=E,this.sticky=F}function Zt(p,E){return p.line-E.line||p.ch-E.ch}function An(p,E){return p.sticky==E.sticky&&Zt(p,E)==0}function Sr(p){return yt(p.line,p.ch)}function ii(p,E){return Zt(p,E)<0?E:p}function ki(p,E){return Zt(p,E)<0?p:E}function ks(p,E){return Math.max(p.first,Math.min(E,p.first+p.size-1))}function Xn(p,E){if(E.line<p.first)return yt(p.first,0);var F=p.first+p.size-1;return E.line>F?yt(F,dn(p,F).text.length):Sh(E,dn(p,E.line).text.length)}function Sh(p,E){var F=p.ch;return F==null||F>E?yt(p.line,E):F<0?yt(p.line,0):p}function Ah(p,E){for(var F=[],B=0;B<E.length;B++)F[B]=Xn(p,E[B]);return F}var ml=function(p,E){this.state=p,this.lookAhead=E},Ra=function(p,E,F,B){this.state=E,this.doc=p,this.line=F,this.maxLookAhead=B||0,this.baseTokens=null,this.baseTokenPos=1};Ra.prototype.lookAhead=function(p){var E=this.doc.getLine(this.line+p);return E!=null&&p>this.maxLookAhead&&(this.maxLookAhead=p),E},Ra.prototype.baseToken=function(p){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=p;)this.baseTokenPos+=2;var E=this.baseTokens[this.baseTokenPos+1];return{type:E&&E.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-p}},Ra.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ra.fromSaved=function(p,E,F){return E instanceof ml?new Ra(p,Vn(p.mode,E.state),F,E.lookAhead):new Ra(p,Vn(p.mode,E),F)},Ra.prototype.save=function(p){var E=p!==!1?Vn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ml(E,this.maxLookAhead):E};function Ng(p,E,F,B){var z=[p.state.modeGen],re={};cS(p,E.text,p.doc.mode,F,function(Se,Ge){return z.push(Se,Ge)},re,B);for(var he=F.state,ye=function(Se){F.baseTokens=z;var Ge=p.state.overlays[Se],Je=1,Ct=0;F.state=!0,cS(p,E.text,Ge.mode,F,function(vt,Nt){for(var Gt=Je;Ct<vt;){var sn=z[Je];sn>vt&&z.splice(Je,1,vt,z[Je+1],sn),Je+=2,Ct=Math.min(vt,sn)}if(Nt)if(Ge.opaque)z.splice(Gt,Je-Gt,vt,"overlay "+Nt),Je=Gt+2;else for(;Gt<Je;Gt+=2){var fn=z[Gt+1];z[Gt+1]=(fn?fn+" ":"")+"overlay "+Nt}},re),F.state=he,F.baseTokens=null,F.baseTokenPos=1},we=0;we<p.state.overlays.length;++we)ye(we);return{styles:z,classes:re.bgClass||re.textClass?re:null}}function xd(p,E,F){if(!E.styles||E.styles[0]!=p.state.modeGen){var B=wu(p,Ie(E)),z=E.text.length>p.options.maxHighlightLength&&Vn(p.doc.mode,B.state),re=Ng(p,E,B);z&&(B.state=z),E.stateAfter=B.save(!z),E.styles=re.styles,re.classes?E.styleClasses=re.classes:E.styleClasses&&(E.styleClasses=null),F===p.doc.highlightFrontier&&(p.doc.modeFrontier=Math.max(p.doc.modeFrontier,++p.doc.highlightFrontier))}return E.styles}function wu(p,E,F){var B=p.doc,z=p.display;if(!B.mode.startState)return new Ra(B,!0,E);var re=$T(p,E,F),he=re>B.first&&dn(B,re-1).stateAfter,ye=he?Ra.fromSaved(B,he,re):new Ra(B,yr(B.mode),re);return B.iter(re,E,function(we){vl(p,we.text,ye);var Se=ye.line;we.stateAfter=Se==E-1||Se%5==0||Se>=z.viewFrom&&Se<z.viewTo?ye.save():null,ye.nextLine()}),F&&(B.modeFrontier=ye.line),ye}function vl(p,E,F,B){var z=p.doc.mode,re=new Fn(E,p.options.tabSize,F);for(re.start=re.pos=B||0,E==""&&Ih(z,F.state);!re.eol();)uf(z,re,F.state),re.start=re.pos}function Ih(p,E){if(p.blankLine)return p.blankLine(E);if(p.innerMode){var F=Ur(p,E);if(F.mode.blankLine)return F.mode.blankLine(F.state)}}function uf(p,E,F,B){for(var z=0;z<10;z++){B&&(B[0]=Ur(p,F).mode);var re=p.token(E,F);if(E.pos>E.start)return re}throw new Error("Mode "+p.name+" failed to advance stream.")}var cf=function(p,E,F){this.start=p.start,this.end=p.pos,this.string=p.current(),this.type=E||null,this.state=F};function kh(p,E,F,B){var z=p.doc,re=z.mode,he;E=Xn(z,E);var ye=dn(z,E.line),we=wu(p,E.line,F),Se=new Fn(ye.text,p.options.tabSize,we),Ge;for(B&&(Ge=[]);(B||Se.pos<E.ch)&&!Se.eol();)Se.start=Se.pos,he=uf(re,Se,we.state),B&&Ge.push(new cf(Se,he,Vn(z.mode,we.state)));return B?Ge:new cf(Se,he,we.state)}function uS(p,E){if(p)for(;;){var F=p.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!F)break;p=p.slice(0,F.index)+p.slice(F.index+F[0].length);var B=F[1]?"bgClass":"textClass";E[B]==null?E[B]=F[2]:new RegExp("(?:^|\\s)"+F[2]+"(?:$|\\s)").test(E[B])||(E[B]+=" "+F[2])}return p}function cS(p,E,F,B,z,re,he){var ye=F.flattenSpans;ye==null&&(ye=p.options.flattenSpans);var we=0,Se=null,Ge=new Fn(E,p.options.tabSize,B),Je,Ct=p.options.addModeClass&&[null];for(E==""&&uS(Ih(F,B.state),re);!Ge.eol();){if(Ge.pos>p.options.maxHighlightLength?(ye=!1,he&&vl(p,E,B,Ge.pos),Ge.pos=E.length,Je=null):Je=uS(uf(F,Ge,B.state,Ct),re),Ct){var vt=Ct[0].name;vt&&(Je="m-"+(Je?vt+" "+Je:vt))}if(!ye||Se!=Je){for(;we<Ge.start;)we=Math.min(Ge.start,we+5e3),z(we,Se);Se=Je}Ge.start=Ge.pos}for(;we<Ge.pos;){var Nt=Math.min(Ge.pos,we+5e3);z(Nt,Se),we=Nt}}function $T(p,E,F){for(var B,z,re=p.doc,he=F?-1:E-(p.doc.mode.innerMode?1e3:100),ye=E;ye>he;--ye){if(ye<=re.first)return re.first;var we=dn(re,ye-1),Se=we.stateAfter;if(Se&&(!F||ye+(Se instanceof ml?Se.lookAhead:0)<=re.modeFrontier))return ye;var Ge=ne(we.text,null,p.options.tabSize);(z==null||B>Ge)&&(z=ye-1,B=Ge)}return z}function y9(p,E){if(p.modeFrontier=Math.min(p.modeFrontier,E),!(p.highlightFrontier<E-10)){for(var F=p.first,B=E-1;B>F;B--){var z=dn(p,B).stateAfter;if(z&&(!(z instanceof ml)||B+z.lookAhead<E)){F=B+1;break}}p.highlightFrontier=Math.min(p.highlightFrontier,F)}}var MT=!1,Sd=!1;function LT(){MT=!0}function b9(){Sd=!0}function W1(p,E,F){this.marker=p,this.from=E,this.to=F}function H0(p,E){if(p)for(var F=0;F<p.length;++F){var B=p[F];if(B.marker==E)return B}}function w9(p,E){for(var F,B=0;B<p.length;++B)p[B]!=E&&(F||(F=[])).push(p[B]);return F}function dS(p,E,F){var B=F&&window.WeakSet&&(F.markedSpans||(F.markedSpans=new WeakSet));B&&p.markedSpans&&B.has(p.markedSpans)?p.markedSpans.push(E):(p.markedSpans=p.markedSpans?p.markedSpans.concat([E]):[E],B&&B.add(p.markedSpans)),E.marker.attachLine(p)}function C9(p,E,F){var B;if(p)for(var z=0;z<p.length;++z){var re=p[z],he=re.marker,ye=re.from==null||(he.inclusiveLeft?re.from<=E:re.from<E);if(ye||re.from==E&&he.type=="bookmark"&&(!F||!re.marker.insertLeft)){var we=re.to==null||(he.inclusiveRight?re.to>=E:re.to>E);(B||(B=[])).push(new W1(he,re.from,we?null:re.to))}}return B}function O9(p,E,F){var B;if(p)for(var z=0;z<p.length;++z){var re=p[z],he=re.marker,ye=re.to==null||(he.inclusiveRight?re.to>=E:re.to>E);if(ye||re.from==E&&he.type=="bookmark"&&(!F||re.marker.insertLeft)){var we=re.from==null||(he.inclusiveLeft?re.from<=E:re.from<E);(B||(B=[])).push(new W1(he,we?null:re.from-E,re.to==null?null:re.to-E))}}return B}function hS(p,E){if(E.full)return null;var F=Dt(p,E.from.line)&&dn(p,E.from.line).markedSpans,B=Dt(p,E.to.line)&&dn(p,E.to.line).markedSpans;if(!F&&!B)return null;var z=E.from.ch,re=E.to.ch,he=Zt(E.from,E.to)==0,ye=C9(F,z,he),we=O9(B,re,he),Se=E.text.length==1,Ge=Z(E.text).length+(Se?z:0);if(ye)for(var Je=0;Je<ye.length;++Je){var Ct=ye[Je];if(Ct.to==null){var vt=H0(we,Ct.marker);vt?Se&&(Ct.to=vt.to==null?null:vt.to+Ge):Ct.to=z}}if(we)for(var Nt=0;Nt<we.length;++Nt){var Gt=we[Nt];if(Gt.to!=null&&(Gt.to+=Ge),Gt.from==null){var sn=H0(ye,Gt.marker);sn||(Gt.from=Ge,Se&&(ye||(ye=[])).push(Gt))}else Gt.from+=Ge,Se&&(ye||(ye=[])).push(Gt)}ye&&(ye=BT(ye)),we&&we!=ye&&(we=BT(we));var fn=[ye];if(!Se){var On=E.text.length-2,pn;if(On>0&&ye)for(var Dn=0;Dn<ye.length;++Dn)ye[Dn].to==null&&(pn||(pn=[])).push(new W1(ye[Dn].marker,null,null));for(var Gn=0;Gn<On;++Gn)fn.push(pn);fn.push(we)}return fn}function BT(p){for(var E=0;E<p.length;++E){var F=p[E];F.from!=null&&F.from==F.to&&F.marker.clearWhenEmpty!==!1&&p.splice(E--,1)}return p.length?p:null}function x9(p,E,F){var B=null;if(p.iter(E.line,F.line+1,function(vt){if(vt.markedSpans)for(var Nt=0;Nt<vt.markedSpans.length;++Nt){var Gt=vt.markedSpans[Nt].marker;Gt.readOnly&&(!B||oe(B,Gt)==-1)&&(B||(B=[])).push(Gt)}}),!B)return null;for(var z=[{from:E,to:F}],re=0;re<B.length;++re)for(var he=B[re],ye=he.find(0),we=0;we<z.length;++we){var Se=z[we];if(!(Zt(Se.to,ye.from)<0||Zt(Se.from,ye.to)>0)){var Ge=[we,1],Je=Zt(Se.from,ye.from),Ct=Zt(Se.to,ye.to);(Je<0||!he.inclusiveLeft&&!Je)&&Ge.push({from:Se.from,to:ye.from}),(Ct>0||!he.inclusiveRight&&!Ct)&&Ge.push({from:ye.to,to:Se.to}),z.splice.apply(z,Ge),we+=Ge.length-3}}return z}function Yi(p){var E=p.markedSpans;if(E){for(var F=0;F<E.length;++F)E[F].marker.detachLine(p);p.markedSpans=null}}function Wi(p,E){if(E){for(var F=0;F<E.length;++F)E[F].marker.attachLine(p);p.markedSpans=E}}function H1(p){return p.inclusiveLeft?-1:0}function z1(p){return p.inclusiveRight?1:0}function pS(p,E){var F=p.lines.length-E.lines.length;if(F!=0)return F;var B=p.find(),z=E.find(),re=Zt(B.from,z.from)||H1(p)-H1(E);if(re)return-re;var he=Zt(B.to,z.to)||z1(p)-z1(E);return he||E.id-p.id}function FT(p,E){var F=Sd&&p.markedSpans,B;if(F)for(var z=void 0,re=0;re<F.length;++re)z=F[re],z.marker.collapsed&&(E?z.from:z.to)==null&&(!B||pS(B,z.marker)<0)&&(B=z.marker);return B}function NT(p){return FT(p,!0)}function Z1(p){return FT(p,!1)}function VT(p,E){var F=Sd&&p.markedSpans,B;if(F)for(var z=0;z<F.length;++z){var re=F[z];re.marker.collapsed&&(re.from==null||re.from<E)&&(re.to==null||re.to>E)&&(!B||pS(B,re.marker)<0)&&(B=re.marker)}return B}function jT(p,E,F,B,z){var re=dn(p,E),he=Sd&&re.markedSpans;if(he)for(var ye=0;ye<he.length;++ye){var we=he[ye];if(we.marker.collapsed){var Se=we.marker.find(0),Ge=Zt(Se.from,F)||H1(we.marker)-H1(z),Je=Zt(Se.to,B)||z1(we.marker)-z1(z);if(!(Ge>=0&&Je<=0||Ge<=0&&Je>=0)&&(Ge<=0&&(we.marker.inclusiveRight&&z.inclusiveLeft?Zt(Se.to,F)>=0:Zt(Se.to,F)>0)||Ge>=0&&(we.marker.inclusiveRight&&z.inclusiveLeft?Zt(Se.from,B)<=0:Zt(Se.from,B)<0)))return!0}}}function Hi(p){for(var E;E=NT(p);)p=E.find(-1,!0).line;return p}function fS(p){for(var E;E=Z1(p);)p=E.find(1,!0).line;return p}function df(p){for(var E,F;E=Z1(p);)p=E.find(1,!0).line,(F||(F=[])).push(p);return F}function G1(p,E){var F=dn(p,E),B=Hi(F);return F==B?E:Ie(B)}function Q1(p,E){if(E>p.lastLine())return E;var F=dn(p,E),B;if(!ma(p,F))return E;for(;B=Z1(F);)F=B.find(1,!0).line;return Ie(F)+1}function ma(p,E){var F=Sd&&E.markedSpans;if(F){for(var B=void 0,z=0;z<F.length;++z)if(B=F[z],!!B.marker.collapsed&&(B.from==null||!B.marker.widgetNode&&B.from==0&&B.marker.inclusiveLeft&&U1(p,E,B)))return!0}}function U1(p,E,F){if(F.to==null){var B=F.marker.find(1,!0);return U1(p,B.line,H0(B.line.markedSpans,F.marker))}if(F.marker.inclusiveRight&&F.to==E.text.length)return!0;for(var z=void 0,re=0;re<E.markedSpans.length;++re)if(z=E.markedSpans[re],z.marker.collapsed&&!z.marker.widgetNode&&z.from==F.to&&(z.to==null||z.to!=F.from)&&(z.marker.inclusiveLeft||F.marker.inclusiveRight)&&U1(p,E,z))return!0}function gc(p){p=Hi(p);for(var E=0,F=p.parent,B=0;B<F.lines.length;++B){var z=F.lines[B];if(z==p)break;E+=z.height}for(var re=F.parent;re;F=re,re=F.parent)for(var he=0;he<re.children.length;++he){var ye=re.children[he];if(ye==F)break;E+=ye.height}return E}function z0(p){if(p.height==0)return 0;for(var E=p.text.length,F,B=p;F=NT(B);){var z=F.find(0,!0);B=z.from.line,E+=z.from.ch-z.to.ch}for(B=p;F=Z1(B);){var re=F.find(0,!0);E-=B.text.length-re.from.ch,B=re.to.line,E+=B.text.length-re.to.ch}return E}function X1(p){var E=p.display,F=p.doc;E.maxLine=dn(F,F.first),E.maxLineLength=z0(E.maxLine),E.maxLineChanged=!0,F.iter(function(B){var z=z0(B);z>E.maxLineLength&&(E.maxLineLength=z,E.maxLine=B)})}var hf=function(p,E,F){this.text=p,Wi(this,E),this.height=F?F(this):1};hf.prototype.lineNo=function(){return Ie(this)},Xe(hf);function WT(p,E,F,B){p.text=E,p.stateAfter&&(p.stateAfter=null),p.styles&&(p.styles=null),p.order!=null&&(p.order=null),Yi(p),Wi(p,F);var z=B?B(p):1;z!=p.height&&ci(p,z)}function yl(p){p.parent=null,Yi(p)}var S9={},jl={};function HT(p,E){if(!p||/^\s*$/.test(p))return null;var F=E.addModeClass?jl:S9;return F[p]||(F[p]=p.replace(/\S+/g,"cm-$&"))}function gS(p,E){var F=$("span",null,null,c?"padding-right: .1px":null),B={pre:$("pre",[F],"CodeMirror-line"),content:F,col:0,pos:0,cm:p,trailingSpace:!1,splitSpaces:p.getOption("lineWrapping")};E.measure={};for(var z=0;z<=(E.rest?E.rest.length:0);z++){var re=z?E.rest[z-1]:E.line,he=void 0;B.pos=0,B.addToken=Y1,et(p.display.measure)&&(he=At(re,p.doc.direction))&&(B.addToken=co(B.addToken,he)),B.map=[];var ye=E!=p.display.externalMeasured&&Ie(re);vS(re,B,xd(p,re,ye)),re.styleClasses&&(re.styleClasses.bgClass&&(B.bgClass=U(re.styleClasses.bgClass,B.bgClass||"")),re.styleClasses.textClass&&(B.textClass=U(re.styleClasses.textClass,B.textClass||""))),B.map.length==0&&B.map.push(0,0,B.content.appendChild(ze(p.display.measure))),z==0?(E.measure.map=B.map,E.measure.cache={}):((E.measure.maps||(E.measure.maps=[])).push(B.map),(E.measure.caches||(E.measure.caches=[])).push({}))}if(c){var we=B.content.lastChild;(/\bcm-tab\b/.test(we.className)||we.querySelector&&we.querySelector(".cm-tab"))&&(B.content.className="cm-tab-wrap-hack")}return Mt(p,"renderLine",p,E.line,B.pre),B.pre.className&&(B.textClass=U(B.pre.className,B.textClass||"")),B}function Eh(p){var E=P("span","•","cm-invalidchar");return E.title="\\u"+p.charCodeAt(0).toString(16),E.setAttribute("aria-label",E.title),E}function Y1(p,E,F,B,z,re,he){if(E){var ye=p.splitSpaces?mS(E,p.trailingSpace):E,we=p.cm.state.specialChars,Se=!1,Ge;if(!we.test(E))p.col+=E.length,Ge=document.createTextNode(ye),p.map.push(p.pos,p.pos+E.length,Ge),l&&u<9&&(Se=!0),p.pos+=E.length;else{Ge=document.createDocumentFragment();for(var Je=0;;){we.lastIndex=Je;var Ct=we.exec(E),vt=Ct?Ct.index-Je:E.length-Je;if(vt){var Nt=document.createTextNode(ye.slice(Je,Je+vt));l&&u<9?Ge.appendChild(P("span",[Nt])):Ge.appendChild(Nt),p.map.push(p.pos,p.pos+vt,Nt),p.col+=vt,p.pos+=vt}if(!Ct)break;Je+=vt+1;var Gt=void 0;if(Ct[0]==" "){var sn=p.cm.options.tabSize,fn=sn-p.col%sn;Gt=Ge.appendChild(P("span",X(fn),"cm-tab")),Gt.setAttribute("role","presentation"),Gt.setAttribute("cm-text"," "),p.col+=fn}else Ct[0]=="\r"||Ct[0]==`
|
|
`?(Gt=Ge.appendChild(P("span",Ct[0]=="\r"?"␍":"","cm-invalidchar")),Gt.setAttribute("cm-text",Ct[0]),p.col+=1):(Gt=p.cm.options.specialCharPlaceholder(Ct[0]),Gt.setAttribute("cm-text",Ct[0]),l&&u<9?Ge.appendChild(P("span",[Gt])):Ge.appendChild(Gt),p.col+=1);p.map.push(p.pos,p.pos+1,Gt),p.pos++}}if(p.trailingSpace=ye.charCodeAt(E.length-1)==32,F||B||z||Se||re||he){var On=F||"";B&&(On+=B),z&&(On+=z);var pn=P("span",[Ge],On,re);if(he)for(var Dn in he)he.hasOwnProperty(Dn)&&Dn!="style"&&Dn!="class"&&pn.setAttribute(Dn,he[Dn]);return p.content.appendChild(pn)}p.content.appendChild(Ge)}}function mS(p,E){if(p.length>1&&!/ /.test(p))return p;for(var F=E,B="",z=0;z<p.length;z++){var re=p.charAt(z);re==" "&&F&&(z==p.length-1||p.charCodeAt(z+1)==32)&&(re=" "),B+=re,F=re==" "}return B}function co(p,E){return function(F,B,z,re,he,ye,we){z=z?z+" cm-force-border":"cm-force-border";for(var Se=F.pos,Ge=Se+B.length;;){for(var Je=void 0,Ct=0;Ct<E.length&&(Je=E[Ct],!(Je.to>Se&&Je.from<=Se));Ct++);if(Je.to>=Ge)return p(F,B,z,re,he,ye,we);p(F,B.slice(0,Je.to-Se),z,re,null,ye,we),re=null,B=B.slice(Je.to-Se),Se=Je.to}}}function Ad(p,E,F,B){var z=!B&&F.widgetNode;z&&p.map.push(p.pos,p.pos+E,z),!B&&p.cm.display.input.needsContentAttribute&&(z||(z=p.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",F.id)),z&&(p.cm.display.input.setUneditable(z),p.content.appendChild(z)),p.pos+=E,p.trailingSpace=!1}function vS(p,E,F){var B=p.markedSpans,z=p.text,re=0;if(!B){for(var he=1;he<F.length;he+=2)E.addToken(E,z.slice(re,re=F[he]),HT(F[he+1],E.cm.options));return}for(var ye=z.length,we=0,Se=1,Ge="",Je,Ct,vt=0,Nt,Gt,sn,fn,On;;){if(vt==we){Nt=Gt=sn=Ct="",On=null,fn=null,vt=1/0;for(var pn=[],Dn=void 0,Gn=0;Gn<B.length;++Gn){var Wn=B[Gn],Rr=Wn.marker;if(Rr.type=="bookmark"&&Wn.from==we&&Rr.widgetNode)pn.push(Rr);else if(Wn.from<=we&&(Wn.to==null||Wn.to>we||Rr.collapsed&&Wn.to==we&&Wn.from==we)){if(Wn.to!=null&&Wn.to!=we&&vt>Wn.to&&(vt=Wn.to,Gt=""),Rr.className&&(Nt+=" "+Rr.className),Rr.css&&(Ct=(Ct?Ct+";":"")+Rr.css),Rr.startStyle&&Wn.from==we&&(sn+=" "+Rr.startStyle),Rr.endStyle&&Wn.to==vt&&(Dn||(Dn=[])).push(Rr.endStyle,Wn.to),Rr.title&&((On||(On={})).title=Rr.title),Rr.attributes)for(var Di in Rr.attributes)(On||(On={}))[Di]=Rr.attributes[Di];Rr.collapsed&&(!fn||pS(fn.marker,Rr)<0)&&(fn=Wn)}else Wn.from>we&&vt>Wn.from&&(vt=Wn.from)}if(Dn)for(var Fo=0;Fo<Dn.length;Fo+=2)Dn[Fo+1]==vt&&(Gt+=" "+Dn[Fo]);if(!fn||fn.from==we)for(var to=0;to<pn.length;++to)Ad(E,0,pn[to]);if(fn&&(fn.from||0)==we){if(Ad(E,(fn.to==null?ye+1:fn.to)-we,fn.marker,fn.from==null),fn.to==null)return;fn.to==we&&(fn=!1)}}if(we>=ye)break;for(var So=Math.min(ye,vt);;){if(Ge){var Ko=we+Ge.length;if(!fn){var qo=Ko>So?Ge.slice(0,So-we):Ge;E.addToken(E,qo,Je?Je+Nt:Nt,sn,we+qo.length==vt?Gt:"",Ct,On)}if(Ko>=So){Ge=Ge.slice(So-we),we=So;break}we=Ko,sn=""}Ge=z.slice(re,re=F[Se++]),Je=HT(F[Se++],E.cm.options)}}}function zT(p,E,F){this.line=E,this.rest=df(E),this.size=this.rest?Ie(Z(this.rest))-F+1:1,this.node=this.text=null,this.hidden=ma(p,E)}function Vg(p,E,F){for(var B=[],z,re=E;re<F;re=z){var he=new zT(p.doc,dn(p.doc,re),re);z=re+he.size,B.push(he)}return B}var jg=null;function A9(p){jg?jg.ops.push(p):p.ownsGroup=jg={ops:[p],delayedCallbacks:[]}}function I9(p){var E=p.delayedCallbacks,F=0;do{for(;F<E.length;F++)E[F].call(null);for(var B=0;B<p.ops.length;B++){var z=p.ops[B];if(z.cursorActivityHandlers)for(;z.cursorActivityCalled<z.cursorActivityHandlers.length;)z.cursorActivityHandlers[z.cursorActivityCalled++].call(null,z.cm)}}while(F<E.length)}function ZT(p,E){var F=p.ownsGroup;if(F)try{I9(F)}finally{jg=null,E(F)}}var _h=null;function ho(p,E){var F=Ze(p,E);if(F.length){var B=Array.prototype.slice.call(arguments,2),z;jg?z=jg.delayedCallbacks:_h?z=_h:(z=_h=[],setTimeout(k9,0));for(var re=function(ye){z.push(function(){return F[ye].apply(null,B)})},he=0;he<F.length;++he)re(he)}}function k9(){var p=_h;_h=null;for(var E=0;E<p.length;++E)p[E]()}function yS(p,E,F,B){for(var z=0;z<E.changes.length;z++){var re=E.changes[z];re=="text"?GT(p,E):re=="gutter"?q1(p,E,F,B):re=="class"?wS(p,E):re=="widget"&&CS(p,E,B)}E.changes=null}function Wg(p){return p.node==p.text&&(p.node=P("div",null,null,"position: relative"),p.text.parentNode&&p.text.parentNode.replaceChild(p.node,p.text),p.node.appendChild(p.text),l&&u<8&&(p.node.style.zIndex=2)),p.node}function bS(p,E){var F=E.bgClass?E.bgClass+" "+(E.line.bgClass||""):E.line.bgClass;if(F&&(F+=" CodeMirror-linebackground"),E.background)F?E.background.className=F:(E.background.parentNode.removeChild(E.background),E.background=null);else if(F){var B=Wg(E);E.background=B.insertBefore(P("div",null,F),B.firstChild),p.display.input.setUneditable(E.background)}}function K1(p,E){var F=p.display.externalMeasured;return F&&F.line==E.line?(p.display.externalMeasured=null,E.measure=F.measure,F.built):gS(p,E)}function GT(p,E){var F=E.text.className,B=K1(p,E);E.text==E.node&&(E.node=B.pre),E.text.parentNode.replaceChild(B.pre,E.text),E.text=B.pre,B.bgClass!=E.bgClass||B.textClass!=E.textClass?(E.bgClass=B.bgClass,E.textClass=B.textClass,wS(p,E)):F&&(E.text.className=F)}function wS(p,E){bS(p,E),E.line.wrapClass?Wg(E).className=E.line.wrapClass:E.node!=E.text&&(E.node.className="");var F=E.textClass?E.textClass+" "+(E.line.textClass||""):E.line.textClass;E.text.className=F||""}function q1(p,E,F,B){if(E.gutter&&(E.node.removeChild(E.gutter),E.gutter=null),E.gutterBackground&&(E.node.removeChild(E.gutterBackground),E.gutterBackground=null),E.line.gutterClass){var z=Wg(E);E.gutterBackground=P("div",null,"CodeMirror-gutter-background "+E.line.gutterClass,"left: "+(p.options.fixedGutter?B.fixedPos:-B.gutterTotalWidth)+"px; width: "+B.gutterTotalWidth+"px"),p.display.input.setUneditable(E.gutterBackground),z.insertBefore(E.gutterBackground,E.text)}var re=E.line.gutterMarkers;if(p.options.lineNumbers||re){var he=Wg(E),ye=E.gutter=P("div",null,"CodeMirror-gutter-wrapper","left: "+(p.options.fixedGutter?B.fixedPos:-B.gutterTotalWidth)+"px");if(ye.setAttribute("aria-hidden","true"),p.display.input.setUneditable(ye),he.insertBefore(ye,E.text),E.line.gutterClass&&(ye.className+=" "+E.line.gutterClass),p.options.lineNumbers&&(!re||!re["CodeMirror-linenumbers"])&&(E.lineNumber=ye.appendChild(P("div",zt(p.options,F),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+B.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+p.display.lineNumInnerWidth+"px"))),re)for(var we=0;we<p.display.gutterSpecs.length;++we){var Se=p.display.gutterSpecs[we].className,Ge=re.hasOwnProperty(Se)&&re[Se];Ge&&ye.appendChild(P("div",[Ge],"CodeMirror-gutter-elt","left: "+B.gutterLeft[Se]+"px; width: "+B.gutterWidth[Se]+"px"))}}}function CS(p,E,F){E.alignable&&(E.alignable=null);for(var B=R("CodeMirror-linewidget"),z=E.node.firstChild,re=void 0;z;z=re)re=z.nextSibling,B.test(z.className)&&E.node.removeChild(z);OS(p,E,F)}function E9(p,E,F,B){var z=K1(p,E);return E.text=E.node=z.pre,z.bgClass&&(E.bgClass=z.bgClass),z.textClass&&(E.textClass=z.textClass),wS(p,E),q1(p,E,F,B),OS(p,E,B),E.node}function OS(p,E,F){if(zs(p,E.line,E,F,!0),E.rest)for(var B=0;B<E.rest.length;B++)zs(p,E.rest[B],E,F,!1)}function zs(p,E,F,B,z){if(E.widgets)for(var re=Wg(F),he=0,ye=E.widgets;he<ye.length;++he){var we=ye[he],Se=P("div",[we.node],"CodeMirror-linewidget"+(we.className?" "+we.className:""));we.handleMouseEvents||Se.setAttribute("cm-ignore-events","true"),xS(we,Se,F,B),p.display.input.setUneditable(Se),z&&we.above?re.insertBefore(Se,F.gutter||F.text):re.appendChild(Se),ho(we,"redraw")}}function xS(p,E,F,B){if(p.noHScroll){(F.alignable||(F.alignable=[])).push(E);var z=B.wrapperWidth;E.style.left=B.fixedPos+"px",p.coverGutter||(z-=B.gutterTotalWidth,E.style.paddingLeft=B.gutterTotalWidth+"px"),E.style.width=z+"px"}p.coverGutter&&(E.style.zIndex=5,E.style.position="relative",p.noHScroll||(E.style.marginLeft=-B.gutterTotalWidth+"px"))}function Id(p){if(p.height!=null)return p.height;var E=p.doc.cm;if(!E)return 0;if(!V(document.body,p.node)){var F="position: relative;";p.coverGutter&&(F+="margin-left: -"+E.display.gutters.offsetWidth+"px;"),p.noHScroll&&(F+="width: "+E.display.wrapper.clientWidth+"px;"),x(E.display.measure,P("div",[p.node],null,F))}return p.height=p.node.parentNode.offsetHeight}function mc(p,E){for(var F=kn(E);F!=p.wrapper;F=F.parentNode)if(!F||F.nodeType==1&&F.getAttribute("cm-ignore-events")=="true"||F.parentNode==p.sizer&&F!=p.mover)return!0}function Z0(p){return p.lineSpace.offsetTop}function SS(p){return p.mover.offsetHeight-p.lineSpace.offsetHeight}function QT(p){if(p.cachedPaddingH)return p.cachedPaddingH;var E=x(p.measure,P("pre","x","CodeMirror-line-like")),F=window.getComputedStyle?window.getComputedStyle(E):E.currentStyle,B={left:parseInt(F.paddingLeft),right:parseInt(F.paddingRight)};return!isNaN(B.left)&&!isNaN(B.right)&&(p.cachedPaddingH=B),B}function vc(p){return ve-p.display.nativeBarWidth}function pf(p){return p.display.scroller.clientWidth-vc(p)-p.display.barWidth}function AS(p){return p.display.scroller.clientHeight-vc(p)-p.display.barHeight}function Hg(p,E,F){var B=p.options.lineWrapping,z=B&&pf(p);if(!E.measure.heights||B&&E.measure.width!=z){var re=E.measure.heights=[];if(B){E.measure.width=z;for(var he=E.text.firstChild.getClientRects(),ye=0;ye<he.length-1;ye++){var we=he[ye],Se=he[ye+1];Math.abs(we.bottom-Se.bottom)>2&&re.push((we.bottom+Se.top)/2-F.top)}}re.push(F.bottom-F.top)}}function UT(p,E,F){if(p.line==E)return{map:p.measure.map,cache:p.measure.cache};if(p.rest){for(var B=0;B<p.rest.length;B++)if(p.rest[B]==E)return{map:p.measure.maps[B],cache:p.measure.caches[B]};for(var z=0;z<p.rest.length;z++)if(Ie(p.rest[z])>F)return{map:p.measure.maps[z],cache:p.measure.caches[z],before:!0}}}function _9(p,E){E=Hi(E);var F=Ie(E),B=p.display.externalMeasured=new zT(p.doc,E,F);B.lineN=F;var z=B.built=gS(p,B);return B.text=z.pre,x(p.display.lineMeasure,z.pre),B}function J1(p,E,F,B){return wl(p,bl(p,E),F,B)}function ew(p,E){if(E>=p.display.viewFrom&&E<p.display.viewTo)return p.display.view[gf(p,E)];var F=p.display.externalMeasured;if(F&&E>=F.lineN&&E<F.lineN+F.size)return F}function bl(p,E){var F=Ie(E),B=ew(p,F);B&&!B.text?B=null:B&&B.changes&&(yS(p,B,F,Zg(p)),p.curOp.forceUpdate=!0),B||(B=_9(p,E));var z=UT(B,E,F);return{line:E,view:B,rect:null,map:z.map,cache:z.cache,before:z.before,hasHeights:!1}}function wl(p,E,F,B,z){E.before&&(F=-1);var re=F+(B||""),he;return E.cache.hasOwnProperty(re)?he=E.cache[re]:(E.rect||(E.rect=E.view.text.getBoundingClientRect()),E.hasHeights||(Hg(p,E.view,E.rect),E.hasHeights=!0),he=zg(p,E,F,B),he.bogus||(E.cache[re]=he)),{left:he.left,right:he.right,top:z?he.rtop:he.top,bottom:z?he.rbottom:he.bottom}}var XT={left:0,right:0,top:0,bottom:0};function YT(p,E,F){for(var B,z,re,he,ye,we,Se=0;Se<p.length;Se+=3)if(ye=p[Se],we=p[Se+1],E<ye?(z=0,re=1,he="left"):E<we?(z=E-ye,re=z+1):(Se==p.length-3||E==we&&p[Se+3]>E)&&(re=we-ye,z=re-1,E>=we&&(he="right")),z!=null){if(B=p[Se+2],ye==we&&F==(B.insertLeft?"left":"right")&&(he=F),F=="left"&&z==0)for(;Se&&p[Se-2]==p[Se-3]&&p[Se-1].insertLeft;)B=p[(Se-=3)+2],he="left";if(F=="right"&&z==we-ye)for(;Se<p.length-3&&p[Se+3]==p[Se+4]&&!p[Se+5].insertLeft;)B=p[(Se+=3)+2],he="right";break}return{node:B,start:z,end:re,collapse:he,coverStart:ye,coverEnd:we}}function T9(p,E){var F=XT;if(E=="left")for(var B=0;B<p.length&&(F=p[B]).left==F.right;B++);else for(var z=p.length-1;z>=0&&(F=p[z]).left==F.right;z--);return F}function zg(p,E,F,B){var z=YT(E.map,F,B),re=z.node,he=z.start,ye=z.end,we=z.collapse,Se;if(re.nodeType==3){for(var Ge=0;Ge<4;Ge++){for(;he&&st(E.line.text.charAt(z.coverStart+he));)--he;for(;z.coverStart+ye<z.coverEnd&&st(E.line.text.charAt(z.coverStart+ye));)++ye;if(l&&u<9&&he==0&&ye==z.coverEnd-z.coverStart?Se=re.parentNode.getBoundingClientRect():Se=T9(L(re,he,ye).getClientRects(),B),Se.left||Se.right||he==0)break;ye=he,he=he-1,we="right"}l&&u<11&&(Se=Cu(p.display.measure,Se))}else{he>0&&(we=B="right");var Je;p.options.lineWrapping&&(Je=re.getClientRects()).length>1?Se=Je[B=="right"?Je.length-1:0]:Se=re.getBoundingClientRect()}if(l&&u<9&&!he&&(!Se||!Se.left&&!Se.right)){var Ct=re.parentNode.getClientRects()[0];Ct?Se={left:Ct.left,right:Ct.left+Ed(p.display),top:Ct.top,bottom:Ct.bottom}:Se=XT}for(var vt=Se.top-E.rect.top,Nt=Se.bottom-E.rect.top,Gt=(vt+Nt)/2,sn=E.view.measure.heights,fn=0;fn<sn.length-1&&!(Gt<sn[fn]);fn++);var On=fn?sn[fn-1]:0,pn=sn[fn],Dn={left:(we=="right"?Se.right:Se.left)-E.rect.left,right:(we=="left"?Se.left:Se.right)-E.rect.left,top:On,bottom:pn};return!Se.left&&!Se.right&&(Dn.bogus=!0),p.options.singleCursorHeightPerLine||(Dn.rtop=vt,Dn.rbottom=Nt),Dn}function Cu(p,E){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!kt(p))return E;var F=screen.logicalXDPI/screen.deviceXDPI,B=screen.logicalYDPI/screen.deviceYDPI;return{left:E.left*F,right:E.right*F,top:E.top*B,bottom:E.bottom*B}}function IS(p){if(p.measure&&(p.measure.cache={},p.measure.heights=null,p.rest))for(var E=0;E<p.rest.length;E++)p.measure.caches[E]={}}function KT(p){p.display.externalMeasure=null,C(p.display.lineMeasure);for(var E=0;E<p.display.view.length;E++)IS(p.display.view[E])}function G0(p){KT(p),p.display.cachedCharWidth=p.display.cachedTextHeight=p.display.cachedPaddingH=null,p.options.lineWrapping||(p.display.maxLineChanged=!0),p.display.lineNumChars=null}function qT(p){return h&&k?-(p.body.getBoundingClientRect().left-parseInt(getComputedStyle(p.body).marginLeft)):p.defaultView.pageXOffset||(p.documentElement||p.body).scrollLeft}function JT(p){return h&&k?-(p.body.getBoundingClientRect().top-parseInt(getComputedStyle(p.body).marginTop)):p.defaultView.pageYOffset||(p.documentElement||p.body).scrollTop}function kS(p){var E=Hi(p),F=E.widgets,B=0;if(F)for(var z=0;z<F.length;++z)F[z].above&&(B+=Id(F[z]));return B}function kd(p,E,F,B,z){if(!z){var re=kS(E);F.top+=re,F.bottom+=re}if(B=="line")return F;B||(B="local");var he=gc(E);if(B=="local"?he+=Z0(p.display):he-=p.display.viewOffset,B=="page"||B=="window"){var ye=p.display.lineSpace.getBoundingClientRect();he+=ye.top+(B=="window"?0:JT(J(p)));var we=ye.left+(B=="window"?0:qT(J(p)));F.left+=we,F.right+=we}return F.top+=he,F.bottom+=he,F}function St(p,E,F){if(F=="div")return E;var B=E.left,z=E.top;if(F=="page")B-=qT(J(p)),z-=JT(J(p));else if(F=="local"||!F){var re=p.display.sizer.getBoundingClientRect();B+=re.left,z+=re.top}var he=p.display.lineSpace.getBoundingClientRect();return{left:B-he.left,top:z-he.top}}function Wt(p,E,F,B,z){return B||(B=dn(p.doc,E.line)),kd(p,B,J1(p,B,E.ch,z),F)}function Bt(p,E,F,B,z,re){B=B||dn(p.doc,E.line),z||(z=bl(p,B));function he(Nt,Gt){var sn=wl(p,z,Nt,Gt?"right":"left",re);return Gt?sn.left=sn.right:sn.right=sn.left,kd(p,B,sn,F)}var ye=At(B,p.doc.direction),we=E.ch,Se=E.sticky;if(we>=B.text.length?(we=B.text.length,Se="before"):we<=0&&(we=0,Se="after"),!ye)return he(Se=="before"?we-1:we,Se=="before");function Ge(Nt,Gt,sn){var fn=ye[Gt],On=fn.level==1;return he(sn?Nt-1:Nt,On!=sn)}var Je=Te(ye,we,Se),Ct=Ue,vt=Ge(we,Je,Se=="before");return Ct!=null&&(vt.other=Ge(we,Ct,Se!="before")),vt}function Nn(p,E){var F=0;E=Xn(p.doc,E),p.options.lineWrapping||(F=Ed(p.display)*E.ch);var B=dn(p.doc,E.line),z=gc(B)+Z0(p.display);return{left:F,right:F,top:z,bottom:z+B.height}}function br(p,E,F,B,z){var re=yt(p,E,F);return re.xRel=z,B&&(re.outside=B),re}function di(p,E,F){var B=p.doc;if(F+=p.display.viewOffset,F<0)return br(B.first,0,null,-1,-1);var z=Fe(B,F),re=B.first+B.size-1;if(z>re)return br(B.first+B.size-1,dn(B,re).text.length,null,1,1);E<0&&(E=0);for(var he=dn(B,z);;){var ye=P9(p,he,z,E,F),we=VT(he,ye.ch+(ye.xRel>0||ye.outside>0?1:0));if(!we)return ye;var Se=we.find(1);if(Se.line==z)return Se;he=dn(B,z=Se.line)}}function aa(p,E,F,B){B-=kS(E);var z=E.text.length,re=Me(function(he){return wl(p,F,he-1).bottom<=B},z,0);return z=Me(function(he){return wl(p,F,he).top>B},re,z),{begin:re,end:z}}function Li(p,E,F,B){F||(F=bl(p,E));var z=kd(p,E,wl(p,F,B),"line").top;return aa(p,E,F,z)}function Q0(p,E,F,B){return p.bottom<=F?!1:p.top>F?!0:(B?p.left:p.right)>E}function P9(p,E,F,B,z){z-=gc(E);var re=bl(p,E),he=kS(E),ye=0,we=E.text.length,Se=!0,Ge=At(E,p.doc.direction);if(Ge){var Je=(p.options.lineWrapping?tw:Wl)(p,E,F,re,Ge,B,z);Se=Je.level!=1,ye=Se?Je.from:Je.to-1,we=Se?Je.to:Je.from-1}var Ct=null,vt=null,Nt=Me(function(Gn){var Wn=wl(p,re,Gn);return Wn.top+=he,Wn.bottom+=he,Q0(Wn,B,z,!1)?(Wn.top<=z&&Wn.left<=B&&(Ct=Gn,vt=Wn),!0):!1},ye,we),Gt,sn,fn=!1;if(vt){var On=B-vt.left<vt.right-B,pn=On==Se;Nt=Ct+(pn?0:1),sn=pn?"after":"before",Gt=On?vt.left:vt.right}else{!Se&&(Nt==we||Nt==ye)&&Nt++,sn=Nt==0?"after":Nt==E.text.length?"before":wl(p,re,Nt-(Se?1:0)).bottom+he<=z==Se?"after":"before";var Dn=Bt(p,yt(F,Nt,sn),"line",E,re);Gt=Dn.left,fn=z<Dn.top?-1:z>=Dn.bottom?1:0}return Nt=Le(E.text,Nt,1),br(F,Nt,sn,fn,B-Gt)}function Wl(p,E,F,B,z,re,he){var ye=Me(function(Je){var Ct=z[Je],vt=Ct.level!=1;return Q0(Bt(p,yt(F,vt?Ct.to:Ct.from,vt?"before":"after"),"line",E,B),re,he,!0)},0,z.length-1),we=z[ye];if(ye>0){var Se=we.level!=1,Ge=Bt(p,yt(F,Se?we.from:we.to,Se?"after":"before"),"line",E,B);Q0(Ge,re,he,!0)&&Ge.top>he&&(we=z[ye-1])}return we}function tw(p,E,F,B,z,re,he){var ye=aa(p,E,B,he),we=ye.begin,Se=ye.end;/\s/.test(E.text.charAt(Se-1))&&Se--;for(var Ge=null,Je=null,Ct=0;Ct<z.length;Ct++){var vt=z[Ct];if(!(vt.from>=Se||vt.to<=we)){var Nt=vt.level!=1,Gt=wl(p,B,Nt?Math.min(Se,vt.to)-1:Math.max(we,vt.from)).right,sn=Gt<re?re-Gt+1e9:Gt-re;(!Ge||Je>sn)&&(Ge=vt,Je=sn)}}return Ge||(Ge=z[z.length-1]),Ge.from<we&&(Ge={from:we,to:Ge.to,level:Ge.level}),Ge.to>Se&&(Ge={from:Ge.from,to:Se,level:Ge.level}),Ge}var ff;function Ou(p){if(p.cachedTextHeight!=null)return p.cachedTextHeight;if(ff==null){ff=P("pre",null,"CodeMirror-line-like");for(var E=0;E<49;++E)ff.appendChild(document.createTextNode("x")),ff.appendChild(P("br"));ff.appendChild(document.createTextNode("x"))}x(p.measure,ff);var F=ff.offsetHeight/50;return F>3&&(p.cachedTextHeight=F),C(p.measure),F||1}function Ed(p){if(p.cachedCharWidth!=null)return p.cachedCharWidth;var E=P("span","xxxxxxxxxx"),F=P("pre",[E],"CodeMirror-line-like");x(p.measure,F);var B=E.getBoundingClientRect(),z=(B.right-B.left)/10;return z>2&&(p.cachedCharWidth=z),z||10}function Zg(p){for(var E=p.display,F={},B={},z=E.gutters.clientLeft,re=E.gutters.firstChild,he=0;re;re=re.nextSibling,++he){var ye=p.display.gutterSpecs[he].className;F[ye]=re.offsetLeft+re.clientLeft+z,B[ye]=re.clientWidth}return{fixedPos:Oi(E),gutterTotalWidth:E.gutters.offsetWidth,gutterLeft:F,gutterWidth:B,wrapperWidth:E.wrapper.clientWidth}}function Oi(p){return p.scroller.getBoundingClientRect().left-p.sizer.getBoundingClientRect().left}function eP(p){var E=Ou(p.display),F=p.options.lineWrapping,B=F&&Math.max(5,p.display.scroller.clientWidth/Ed(p.display)-3);return function(z){if(ma(p.doc,z))return 0;var re=0;if(z.widgets)for(var he=0;he<z.widgets.length;he++)z.widgets[he].height&&(re+=z.widgets[he].height);return F?re+(Math.ceil(z.text.length/B)||1)*E:re+E}}function nw(p){var E=p.doc,F=eP(p);E.iter(function(B){var z=F(B);z!=B.height&&ci(B,z)})}function yc(p,E,F,B){var z=p.display;if(!F&&kn(E).getAttribute("cm-not-content")=="true")return null;var re,he,ye=z.lineSpace.getBoundingClientRect();try{re=E.clientX-ye.left,he=E.clientY-ye.top}catch{return null}var we=di(p,re,he),Se;if(B&&we.xRel>0&&(Se=dn(p.doc,we.line).text).length==we.ch){var Ge=ne(Se,Se.length,p.options.tabSize)-Se.length;we=yt(we.line,Math.max(0,Math.round((re-QT(p.display).left)/Ed(p.display))-Ge))}return we}function gf(p,E){if(E>=p.display.viewTo||(E-=p.display.viewFrom,E<0))return null;for(var F=p.display.view,B=0;B<F.length;B++)if(E-=F[B].size,E<0)return B}function Es(p,E,F,B){E==null&&(E=p.doc.first),F==null&&(F=p.doc.first+p.doc.size),B||(B=0);var z=p.display;if(B&&F<z.viewTo&&(z.updateLineNumbers==null||z.updateLineNumbers>E)&&(z.updateLineNumbers=E),p.curOp.viewChanged=!0,E>=z.viewTo)Sd&&G1(p.doc,E)<z.viewTo&&xu(p);else if(F<=z.viewFrom)Sd&&Q1(p.doc,F+B)>z.viewFrom?xu(p):(z.viewFrom+=B,z.viewTo+=B);else if(E<=z.viewFrom&&F>=z.viewTo)xu(p);else if(E<=z.viewFrom){var re=Su(p,F,F+B,1);re?(z.view=z.view.slice(re.index),z.viewFrom=re.lineN,z.viewTo+=B):xu(p)}else if(F>=z.viewTo){var he=Su(p,E,E,-1);he?(z.view=z.view.slice(0,he.index),z.viewTo=he.lineN):xu(p)}else{var ye=Su(p,E,E,-1),we=Su(p,F,F+B,1);ye&&we?(z.view=z.view.slice(0,ye.index).concat(Vg(p,ye.lineN,we.lineN)).concat(z.view.slice(we.index)),z.viewTo+=B):xu(p)}var Se=z.externalMeasured;Se&&(F<Se.lineN?Se.lineN+=B:E<Se.lineN+Se.size&&(z.externalMeasured=null))}function Th(p,E,F){p.curOp.viewChanged=!0;var B=p.display,z=p.display.externalMeasured;if(z&&E>=z.lineN&&E<z.lineN+z.size&&(B.externalMeasured=null),!(E<B.viewFrom||E>=B.viewTo)){var re=B.view[gf(p,E)];if(re.node!=null){var he=re.changes||(re.changes=[]);oe(he,F)==-1&&he.push(F)}}}function xu(p){p.display.viewFrom=p.display.viewTo=p.doc.first,p.display.view=[],p.display.viewOffset=0}function Su(p,E,F,B){var z=gf(p,E),re,he=p.display.view;if(!Sd||F==p.doc.first+p.doc.size)return{index:z,lineN:F};for(var ye=p.display.viewFrom,we=0;we<z;we++)ye+=he[we].size;if(ye!=E){if(B>0){if(z==he.length-1)return null;re=ye+he[z].size-E,z++}else re=ye-E;E+=re,F+=re}for(;G1(p.doc,F)!=F;){if(z==(B<0?0:he.length-1))return null;F+=B*he[z-(B<0?1:0)].size,z+=B}return{index:z,lineN:F}}function rw(p,E,F){var B=p.display,z=B.view;z.length==0||E>=B.viewTo||F<=B.viewFrom?(B.view=Vg(p,E,F),B.viewFrom=E):(B.viewFrom>E?B.view=Vg(p,E,B.viewFrom).concat(B.view):B.viewFrom<E&&(B.view=B.view.slice(gf(p,E))),B.viewFrom=E,B.viewTo<F?B.view=B.view.concat(Vg(p,B.viewTo,F)):B.viewTo>F&&(B.view=B.view.slice(0,gf(p,F)))),B.viewTo=F}function ES(p){for(var E=p.display.view,F=0,B=0;B<E.length;B++){var z=E[B];!z.hidden&&(!z.node||z.changes)&&++F}return F}function Ph(p){p.display.input.showSelection(p.display.input.prepareSelection())}function _S(p,E){E===void 0&&(E=!0);var F=p.doc,B={},z=B.cursors=document.createDocumentFragment(),re=B.selection=document.createDocumentFragment(),he=p.options.$customCursor;he&&(E=!0);for(var ye=0;ye<F.sel.ranges.length;ye++)if(!(!E&&ye==F.sel.primIndex)){var we=F.sel.ranges[ye];if(!(we.from().line>=p.display.viewTo||we.to().line<p.display.viewFrom)){var Se=we.empty();if(he){var Ge=he(p,we);Ge&&iw(p,Ge,z)}else(Se||p.options.showCursorWhenSelecting)&&iw(p,we.head,z);Se||tP(p,we,re)}}return B}function iw(p,E,F){var B=Bt(p,E,"div",null,null,!p.options.singleCursorHeightPerLine),z=F.appendChild(P("div"," ","CodeMirror-cursor"));if(z.style.left=B.left+"px",z.style.top=B.top+"px",z.style.height=Math.max(0,B.bottom-B.top)*p.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(p.getWrapperElement().className)){var re=Wt(p,E,"div",null,null),he=re.right-re.left;z.style.width=(he>0?he:p.defaultCharWidth())+"px"}if(B.other){var ye=F.appendChild(P("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));ye.style.display="",ye.style.left=B.other.left+"px",ye.style.top=B.other.top+"px",ye.style.height=(B.other.bottom-B.other.top)*.85+"px"}}function mf(p,E){return p.top-E.top||p.left-E.left}function tP(p,E,F){var B=p.display,z=p.doc,re=document.createDocumentFragment(),he=QT(p.display),ye=he.left,we=Math.max(B.sizerWidth,pf(p)-B.sizer.offsetLeft)-he.right,Se=z.direction=="ltr";function Ge(pn,Dn,Gn,Wn){Dn<0&&(Dn=0),Dn=Math.round(Dn),Wn=Math.round(Wn),re.appendChild(P("div",null,"CodeMirror-selected","position: absolute; left: "+pn+`px;
|
|
top: `+Dn+"px; width: "+(Gn??we-pn)+`px;
|
|
height: `+(Wn-Dn)+"px"))}function Je(pn,Dn,Gn){var Wn=dn(z,pn),Rr=Wn.text.length,Di,Fo;function to(qo,ds){return Wt(p,yt(pn,qo),"div",Wn,ds)}function So(qo,ds,La){var la=Li(p,Wn,null,qo),Jo=ds=="ltr"==(La=="after")?"left":"right",Ao=La=="after"?la.begin:la.end-(/\s/.test(Wn.text.charAt(la.end-1))?2:1);return to(Ao,Jo)[Jo]}var Ko=At(Wn,z.direction);return je(Ko,Dn||0,Gn??Rr,function(qo,ds,La,la){var Jo=La=="ltr",Ao=to(qo,Jo?"left":"right"),_s=to(ds-1,Jo?"right":"left"),pm=Dn==null&&qo==0,Hh=Gn==null&&ds==Rr,Ja=la==0,Sc=!Ko||la==Ko.length-1;if(_s.top-Ao.top<=3){var Ca=(Se?pm:Hh)&&Ja,oA=(Se?Hh:pm)&&Sc,Ac=Ca?ye:(Jo?Ao:_s).left,zh=oA?we:(Jo?_s:Ao).right;Ge(Ac,Ao.top,zh-Ac,Ao.bottom)}else{var Zh,hs,fm,aA;Jo?(Zh=Se&&pm&&Ja?ye:Ao.left,hs=Se?we:So(qo,La,"before"),fm=Se?ye:So(ds,La,"after"),aA=Se&&Hh&&Sc?we:_s.right):(Zh=Se?So(qo,La,"before"):ye,hs=!Se&&pm&&Ja?we:Ao.right,fm=!Se&&Hh&&Sc?ye:_s.left,aA=Se?So(ds,La,"after"):we),Ge(Zh,Ao.top,hs-Zh,Ao.bottom),Ao.bottom<_s.top&&Ge(ye,Ao.bottom,null,_s.top),Ge(fm,_s.top,aA-fm,_s.bottom)}(!Di||mf(Ao,Di)<0)&&(Di=Ao),mf(_s,Di)<0&&(Di=_s),(!Fo||mf(Ao,Fo)<0)&&(Fo=Ao),mf(_s,Fo)<0&&(Fo=_s)}),{start:Di,end:Fo}}var Ct=E.from(),vt=E.to();if(Ct.line==vt.line)Je(Ct.line,Ct.ch,vt.ch);else{var Nt=dn(z,Ct.line),Gt=dn(z,vt.line),sn=Hi(Nt)==Hi(Gt),fn=Je(Ct.line,Ct.ch,sn?Nt.text.length+1:null).end,On=Je(vt.line,sn?0:null,vt.ch).start;sn&&(fn.top<On.top-2?(Ge(fn.right,fn.top,null,fn.bottom),Ge(ye,On.top,On.left,On.bottom)):Ge(fn.right,fn.top,On.left-fn.right,fn.bottom)),fn.bottom<On.top&&Ge(ye,fn.bottom,null,On.top)}F.appendChild(re)}function vf(p){if(p.state.focused){var E=p.display;clearInterval(E.blinker);var F=!0;E.cursorDiv.style.visibility="",p.options.cursorBlinkRate>0?E.blinker=setInterval(function(){p.hasFocus()||Qg(p),E.cursorDiv.style.visibility=(F=!F)?"":"hidden"},p.options.cursorBlinkRate):p.options.cursorBlinkRate<0&&(E.cursorDiv.style.visibility="hidden")}}function Dh(p){p.hasFocus()||(p.display.input.focus(),p.state.focused||TS(p))}function Gg(p){p.state.delayingBlurEvent=!0,setTimeout(function(){p.state.delayingBlurEvent&&(p.state.delayingBlurEvent=!1,p.state.focused&&Qg(p))},100)}function TS(p,E){p.state.delayingBlurEvent&&!p.state.draggingText&&(p.state.delayingBlurEvent=!1),p.options.readOnly!="nocursor"&&(p.state.focused||(Mt(p,"focus",p,E),p.state.focused=!0,Q(p.display.wrapper,"CodeMirror-focused"),!p.curOp&&p.display.selForContextMenu!=p.doc.sel&&(p.display.input.reset(),c&&setTimeout(function(){return p.display.input.reset(!0)},20)),p.display.input.receivedFocus()),vf(p))}function Qg(p,E){p.state.delayingBlurEvent||(p.state.focused&&(Mt(p,"blur",p,E),p.state.focused=!1,D(p.display.wrapper,"CodeMirror-focused")),clearInterval(p.display.blinker),setTimeout(function(){p.state.focused||(p.display.shift=!1)},150))}function ow(p){for(var E=p.display,F=E.lineDiv.offsetTop,B=Math.max(0,E.scroller.getBoundingClientRect().top),z=E.lineDiv.getBoundingClientRect().top,re=0,he=0;he<E.view.length;he++){var ye=E.view[he],we=p.options.lineWrapping,Se=void 0,Ge=0;if(!ye.hidden){if(z+=ye.line.height,l&&u<8){var Je=ye.node.offsetTop+ye.node.offsetHeight;Se=Je-F,F=Je}else{var Ct=ye.node.getBoundingClientRect();Se=Ct.bottom-Ct.top,!we&&ye.text.firstChild&&(Ge=ye.text.firstChild.getBoundingClientRect().right-Ct.left-1)}var vt=ye.line.height-Se;if((vt>.005||vt<-.005)&&(z<B&&(re-=vt),ci(ye.line,Se),U0(ye.line),ye.rest))for(var Nt=0;Nt<ye.rest.length;Nt++)U0(ye.rest[Nt]);if(Ge>p.display.sizerWidth){var Gt=Math.ceil(Ge/Ed(p.display));Gt>p.display.maxLineLength&&(p.display.maxLineLength=Gt,p.display.maxLine=ye.line,p.display.maxLineChanged=!0)}}}Math.abs(re)>2&&(E.scroller.scrollTop+=re)}function U0(p){if(p.widgets)for(var E=0;E<p.widgets.length;++E){var F=p.widgets[E],B=F.node.parentNode;B&&(F.height=B.offsetHeight)}}function yf(p,E,F){var B=F&&F.top!=null?Math.max(0,F.top):p.scroller.scrollTop;B=Math.floor(B-Z0(p));var z=F&&F.bottom!=null?F.bottom:B+p.wrapper.clientHeight,re=Fe(E,B),he=Fe(E,z);if(F&&F.ensure){var ye=F.ensure.from.line,we=F.ensure.to.line;ye<re?(re=ye,he=Fe(E,gc(dn(E,ye))+p.wrapper.clientHeight)):Math.min(we,E.lastLine())>=he&&(re=Fe(E,gc(dn(E,we))-p.wrapper.clientHeight),he=we)}return{from:re,to:Math.max(he,re+1)}}function PS(p,E){if(!He(p,"scrollCursorIntoView")){var F=p.display,B=F.sizer.getBoundingClientRect(),z=null,re=F.wrapper.ownerDocument;if(E.top+B.top<0?z=!0:E.bottom+B.top>(re.defaultView.innerHeight||re.documentElement.clientHeight)&&(z=!1),z!=null&&!m){var he=P("div","",null,`position: absolute;
|
|
top: `+(E.top-F.viewOffset-Z0(p.display))+`px;
|
|
height: `+(E.bottom-E.top+vc(p)+F.barHeight)+`px;
|
|
left: `+E.left+"px; width: "+Math.max(2,E.right-E.left)+"px;");p.display.lineSpace.appendChild(he),he.scrollIntoView(z),p.display.lineSpace.removeChild(he)}}}function D9(p,E,F,B){B==null&&(B=0);var z;!p.options.lineWrapping&&E==F&&(F=E.sticky=="before"?yt(E.line,E.ch+1,"before"):E,E=E.ch?yt(E.line,E.sticky=="before"?E.ch-1:E.ch,"after"):E);for(var re=0;re<5;re++){var he=!1,ye=Bt(p,E),we=!F||F==E?ye:Bt(p,F);z={left:Math.min(ye.left,we.left),top:Math.min(ye.top,we.top)-B,right:Math.max(ye.left,we.left),bottom:Math.max(ye.bottom,we.bottom)+B};var Se=DS(p,z),Ge=p.doc.scrollTop,Je=p.doc.scrollLeft;if(Se.scrollTop!=null&&(X0(p,Se.scrollTop),Math.abs(p.doc.scrollTop-Ge)>1&&(he=!0)),Se.scrollLeft!=null&&(Au(p,Se.scrollLeft),Math.abs(p.doc.scrollLeft-Je)>1&&(he=!0)),!he)break}return z}function nP(p,E){var F=DS(p,E);F.scrollTop!=null&&X0(p,F.scrollTop),F.scrollLeft!=null&&Au(p,F.scrollLeft)}function DS(p,E){var F=p.display,B=Ou(p.display);E.top<0&&(E.top=0);var z=p.curOp&&p.curOp.scrollTop!=null?p.curOp.scrollTop:F.scroller.scrollTop,re=AS(p),he={};E.bottom-E.top>re&&(E.bottom=E.top+re);var ye=p.doc.height+SS(F),we=E.top<B,Se=E.bottom>ye-B;if(E.top<z)he.scrollTop=we?0:E.top;else if(E.bottom>z+re){var Ge=Math.min(E.top,(Se?ye:E.bottom)-re);Ge!=z&&(he.scrollTop=Ge)}var Je=p.options.fixedGutter?0:F.gutters.offsetWidth,Ct=p.curOp&&p.curOp.scrollLeft!=null?p.curOp.scrollLeft:F.scroller.scrollLeft-Je,vt=pf(p)-F.gutters.offsetWidth,Nt=E.right-E.left>vt;return Nt&&(E.right=E.left+vt),E.left<10?he.scrollLeft=0:E.left<Ct?he.scrollLeft=Math.max(0,E.left+Je-(Nt?0:10)):E.right>vt+Ct-3&&(he.scrollLeft=E.right+(Nt?0:10)-vt),he}function RS(p,E){E!=null&&(aw(p),p.curOp.scrollTop=(p.curOp.scrollTop==null?p.doc.scrollTop:p.curOp.scrollTop)+E)}function po(p){aw(p);var E=p.getCursor();p.curOp.scrollToPos={from:E,to:E,margin:p.options.cursorScrollMargin}}function sa(p,E,F){(E!=null||F!=null)&&aw(p),E!=null&&(p.curOp.scrollLeft=E),F!=null&&(p.curOp.scrollTop=F)}function R9(p,E){aw(p),p.curOp.scrollToPos=E}function aw(p){var E=p.curOp.scrollToPos;if(E){p.curOp.scrollToPos=null;var F=Nn(p,E.from),B=Nn(p,E.to);$S(p,F,B,E.margin)}}function $S(p,E,F,B){var z=DS(p,{left:Math.min(E.left,F.left),top:Math.min(E.top,F.top)-B,right:Math.max(E.right,F.right),bottom:Math.max(E.bottom,F.bottom)+B});sa(p,z.scrollLeft,z.scrollTop)}function X0(p,E){Math.abs(p.doc.scrollTop-E)<2||(i||Iu(p,{top:E}),sw(p,E,!0),i&&Iu(p),q0(p,100))}function sw(p,E,F){E=Math.max(0,Math.min(p.display.scroller.scrollHeight-p.display.scroller.clientHeight,E)),!(p.display.scroller.scrollTop==E&&!F)&&(p.doc.scrollTop=E,p.display.scrollbars.setScrollTop(E),p.display.scroller.scrollTop!=E&&(p.display.scroller.scrollTop=E))}function Au(p,E,F,B){E=Math.max(0,Math.min(E,p.display.scroller.scrollWidth-p.display.scroller.clientWidth)),!((F?E==p.doc.scrollLeft:Math.abs(p.doc.scrollLeft-E)<2)&&!B)&&(p.doc.scrollLeft=E,aP(p),p.display.scroller.scrollLeft!=E&&(p.display.scroller.scrollLeft=E),p.display.scrollbars.setScrollLeft(E))}function bf(p){var E=p.display,F=E.gutters.offsetWidth,B=Math.round(p.doc.height+SS(p.display));return{clientHeight:E.scroller.clientHeight,viewHeight:E.wrapper.clientHeight,scrollWidth:E.scroller.scrollWidth,clientWidth:E.scroller.clientWidth,viewWidth:E.wrapper.clientWidth,barLeft:p.options.fixedGutter?F:0,docHeight:B,scrollHeight:B+vc(p)+E.barHeight,nativeBarWidth:E.nativeBarWidth,gutterWidth:F}}var Hl=function(p,E,F){this.cm=F;var B=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");B.tabIndex=z.tabIndex=-1,p(B),p(z),Pe(B,"scroll",function(){B.clientHeight&&E(B.scrollTop,"vertical")}),Pe(z,"scroll",function(){z.clientWidth&&E(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,l&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Hl.prototype.update=function(p){var E=p.scrollWidth>p.clientWidth+1,F=p.scrollHeight>p.clientHeight+1,B=p.nativeBarWidth;if(F){this.vert.style.display="block",this.vert.style.bottom=E?B+"px":"0";var z=p.viewHeight-(E?B:0);this.vert.firstChild.style.height=Math.max(0,p.scrollHeight-p.clientHeight+z)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(E){this.horiz.style.display="block",this.horiz.style.right=F?B+"px":"0",this.horiz.style.left=p.barLeft+"px";var re=p.viewWidth-p.barLeft-(F?B:0);this.horiz.firstChild.style.width=Math.max(0,p.scrollWidth-p.clientWidth+re)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&p.clientHeight>0&&(B==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:F?B:0,bottom:E?B:0}},Hl.prototype.setScrollLeft=function(p){this.horiz.scrollLeft!=p&&(this.horiz.scrollLeft=p),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Hl.prototype.setScrollTop=function(p){this.vert.scrollTop!=p&&(this.vert.scrollTop=p),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Hl.prototype.zeroWidthHack=function(){var p=S&&!v?"12px":"18px";this.horiz.style.height=this.vert.style.width=p,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},Hl.prototype.enableZeroWidthBar=function(p,E,F){p.style.visibility="";function B(){var z=p.getBoundingClientRect(),re=F=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);re!=p?p.style.visibility="hidden":E.set(1e3,B)}E.set(1e3,B)},Hl.prototype.clear=function(){var p=this.horiz.parentNode;p.removeChild(this.horiz),p.removeChild(this.vert)};var _d=function(){};_d.prototype.update=function(){return{bottom:0,right:0}},_d.prototype.setScrollLeft=function(){},_d.prototype.setScrollTop=function(){},_d.prototype.clear=function(){};function bc(p,E){E||(E=bf(p));var F=p.display.barWidth,B=p.display.barHeight;Y0(p,E);for(var z=0;z<4&&F!=p.display.barWidth||B!=p.display.barHeight;z++)F!=p.display.barWidth&&p.options.lineWrapping&&ow(p),Y0(p,bf(p)),F=p.display.barWidth,B=p.display.barHeight}function Y0(p,E){var F=p.display,B=F.scrollbars.update(E);F.sizer.style.paddingRight=(F.barWidth=B.right)+"px",F.sizer.style.paddingBottom=(F.barHeight=B.bottom)+"px",F.heightForcer.style.borderBottom=B.bottom+"px solid transparent",B.right&&B.bottom?(F.scrollbarFiller.style.display="block",F.scrollbarFiller.style.height=B.bottom+"px",F.scrollbarFiller.style.width=B.right+"px"):F.scrollbarFiller.style.display="",B.bottom&&p.options.coverGutterNextToScrollbar&&p.options.fixedGutter?(F.gutterFiller.style.display="block",F.gutterFiller.style.height=B.bottom+"px",F.gutterFiller.style.width=E.gutterWidth+"px"):F.gutterFiller.style.display=""}var wf={native:Hl,null:_d};function rP(p){p.display.scrollbars&&(p.display.scrollbars.clear(),p.display.scrollbars.addClass&&D(p.display.wrapper,p.display.scrollbars.addClass)),p.display.scrollbars=new wf[p.options.scrollbarStyle](function(E){p.display.wrapper.insertBefore(E,p.display.scrollbarFiller),Pe(E,"mousedown",function(){p.state.focused&&setTimeout(function(){return p.display.input.focus()},0)}),E.setAttribute("cm-not-content","true")},function(E,F){F=="horizontal"?Au(p,E):X0(p,E)},p),p.display.scrollbars.addClass&&Q(p.display.wrapper,p.display.scrollbars.addClass)}var $9=0;function Cf(p){p.curOp={cm:p,viewChanged:!1,startHeight:p.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:++$9,markArrays:null},A9(p.curOp)}function Of(p){var E=p.curOp;E&&ZT(E,function(F){for(var B=0;B<F.ops.length;B++)F.ops[B].cm.curOp=null;M9(F)})}function M9(p){for(var E=p.ops,F=0;F<E.length;F++)lw(E[F]);for(var B=0;B<E.length;B++)K0(E[B]);for(var z=0;z<E.length;z++)iP(E[z]);for(var re=0;re<E.length;re++)$e(E[re]);for(var he=0;he<E.length;he++)Ug(E[he])}function lw(p){var E=p.cm,F=E.display;B9(E),p.updateMaxLine&&X1(E),p.mustUpdate=p.viewChanged||p.forceUpdate||p.scrollTop!=null||p.scrollToPos&&(p.scrollToPos.from.line<F.viewFrom||p.scrollToPos.to.line>=F.viewTo)||F.maxLineChanged&&E.options.lineWrapping,p.update=p.mustUpdate&&new wc(E,p.mustUpdate&&{top:p.scrollTop,ensure:p.scrollToPos},p.forceUpdate)}function K0(p){p.updatedDisplay=p.mustUpdate&&MS(p.cm,p.update)}function iP(p){var E=p.cm,F=E.display;p.updatedDisplay&&ow(E),p.barMeasure=bf(E),F.maxLineChanged&&!E.options.lineWrapping&&(p.adjustWidthTo=J1(E,F.maxLine,F.maxLine.text.length).left+3,E.display.sizerWidth=p.adjustWidthTo,p.barMeasure.scrollWidth=Math.max(F.scroller.clientWidth,F.sizer.offsetLeft+p.adjustWidthTo+vc(E)+E.display.barWidth),p.maxScrollLeft=Math.max(0,F.sizer.offsetLeft+p.adjustWidthTo-pf(E))),(p.updatedDisplay||p.selectionChanged)&&(p.preparedSelection=F.input.prepareSelection())}function $e(p){var E=p.cm;p.adjustWidthTo!=null&&(E.display.sizer.style.minWidth=p.adjustWidthTo+"px",p.maxScrollLeft<E.doc.scrollLeft&&Au(E,Math.min(E.display.scroller.scrollLeft,p.maxScrollLeft),!0),E.display.maxLineChanged=!1);var F=p.focus&&p.focus==H(ue(E));p.preparedSelection&&E.display.input.showSelection(p.preparedSelection,F),(p.updatedDisplay||p.startHeight!=E.doc.height)&&bc(E,p.barMeasure),p.updatedDisplay&&BS(E,p.barMeasure),p.selectionChanged&&vf(E),E.state.focused&&p.updateInput&&E.display.input.reset(p.typing),F&&Dh(p.cm)}function Ug(p){var E=p.cm,F=E.display,B=E.doc;if(p.updatedDisplay&&oP(E,p.update),F.wheelStartX!=null&&(p.scrollTop!=null||p.scrollLeft!=null||p.scrollToPos)&&(F.wheelStartX=F.wheelStartY=null),p.scrollTop!=null&&sw(E,p.scrollTop,p.forceScroll),p.scrollLeft!=null&&Au(E,p.scrollLeft,!0,!0),p.scrollToPos){var z=D9(E,Xn(B,p.scrollToPos.from),Xn(B,p.scrollToPos.to),p.scrollToPos.margin);PS(E,z)}var re=p.maybeHiddenMarkers,he=p.maybeUnhiddenMarkers;if(re)for(var ye=0;ye<re.length;++ye)re[ye].lines.length||Mt(re[ye],"hide");if(he)for(var we=0;we<he.length;++we)he[we].lines.length&&Mt(he[we],"unhide");F.wrapper.offsetHeight&&(B.scrollTop=E.display.scroller.scrollTop),p.changeObjs&&Mt(E,"changes",E,p.changeObjs),p.update&&p.update.finish()}function qa(p,E){if(p.curOp)return E();Cf(p);try{return E()}finally{Of(p)}}function Ei(p,E){return function(){if(p.curOp)return E.apply(p,arguments);Cf(p);try{return E.apply(p,arguments)}finally{Of(p)}}}function tr(p){return function(){if(this.curOp)return p.apply(this,arguments);Cf(this);try{return p.apply(this,arguments)}finally{Of(this)}}}function va(p){return function(){var E=this.cm;if(!E||E.curOp)return p.apply(this,arguments);Cf(E);try{return p.apply(this,arguments)}finally{Of(E)}}}function q0(p,E){p.doc.highlightFrontier<p.display.viewTo&&p.state.highlight.set(E,q(L9,p))}function L9(p){var E=p.doc;if(!(E.highlightFrontier>=p.display.viewTo)){var F=+new Date+p.options.workTime,B=wu(p,E.highlightFrontier),z=[];E.iter(B.line,Math.min(E.first+E.size,p.display.viewTo+500),function(re){if(B.line>=p.display.viewFrom){var he=re.styles,ye=re.text.length>p.options.maxHighlightLength?Vn(E.mode,B.state):null,we=Ng(p,re,B,!0);ye&&(B.state=ye),re.styles=we.styles;var Se=re.styleClasses,Ge=we.classes;Ge?re.styleClasses=Ge:Se&&(re.styleClasses=null);for(var Je=!he||he.length!=re.styles.length||Se!=Ge&&(!Se||!Ge||Se.bgClass!=Ge.bgClass||Se.textClass!=Ge.textClass),Ct=0;!Je&&Ct<he.length;++Ct)Je=he[Ct]!=re.styles[Ct];Je&&z.push(B.line),re.stateAfter=B.save(),B.nextLine()}else re.text.length<=p.options.maxHighlightLength&&vl(p,re.text,B),re.stateAfter=B.line%5==0?B.save():null,B.nextLine();if(+new Date>F)return q0(p,p.options.workDelay),!0}),E.highlightFrontier=B.line,E.modeFrontier=Math.max(E.modeFrontier,B.line),z.length&&qa(p,function(){for(var re=0;re<z.length;re++)Th(p,z[re],"text")})}}var wc=function(p,E,F){var B=p.display;this.viewport=E,this.visible=yf(B,p.doc,E),this.editorIsHidden=!B.wrapper.offsetWidth,this.wrapperHeight=B.wrapper.clientHeight,this.wrapperWidth=B.wrapper.clientWidth,this.oldDisplayWidth=pf(p),this.force=F,this.dims=Zg(p),this.events=[]};wc.prototype.signal=function(p,E){Ee(p,E)&&this.events.push(arguments)},wc.prototype.finish=function(){for(var p=0;p<this.events.length;p++)Mt.apply(null,this.events[p])};function B9(p){var E=p.display;!E.scrollbarsClipped&&E.scroller.offsetWidth&&(E.nativeBarWidth=E.scroller.offsetWidth-E.scroller.clientWidth,E.heightForcer.style.height=vc(p)+"px",E.sizer.style.marginBottom=-E.nativeBarWidth+"px",E.sizer.style.borderRightWidth=vc(p)+"px",E.scrollbarsClipped=!0)}function F9(p){if(p.hasFocus())return null;var E=H(ue(p));if(!E||!V(p.display.lineDiv,E))return null;var F={activeElt:E};if(window.getSelection){var B=N(p).getSelection();B.anchorNode&&B.extend&&V(p.display.lineDiv,B.anchorNode)&&(F.anchorNode=B.anchorNode,F.anchorOffset=B.anchorOffset,F.focusNode=B.focusNode,F.focusOffset=B.focusOffset)}return F}function N9(p){if(!(!p||!p.activeElt||p.activeElt==H(ee(p.activeElt)))&&(p.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(p.activeElt.nodeName)&&p.anchorNode&&V(document.body,p.anchorNode)&&V(document.body,p.focusNode))){var E=p.activeElt.ownerDocument,F=E.defaultView.getSelection(),B=E.createRange();B.setEnd(p.anchorNode,p.anchorOffset),B.collapse(!1),F.removeAllRanges(),F.addRange(B),F.extend(p.focusNode,p.focusOffset)}}function MS(p,E){var F=p.display,B=p.doc;if(E.editorIsHidden)return xu(p),!1;if(!E.force&&E.visible.from>=F.viewFrom&&E.visible.to<=F.viewTo&&(F.updateLineNumbers==null||F.updateLineNumbers>=F.viewTo)&&F.renderedView==F.view&&ES(p)==0)return!1;sP(p)&&(xu(p),E.dims=Zg(p));var z=B.first+B.size,re=Math.max(E.visible.from-p.options.viewportMargin,B.first),he=Math.min(z,E.visible.to+p.options.viewportMargin);F.viewFrom<re&&re-F.viewFrom<20&&(re=Math.max(B.first,F.viewFrom)),F.viewTo>he&&F.viewTo-he<20&&(he=Math.min(z,F.viewTo)),Sd&&(re=G1(p.doc,re),he=Q1(p.doc,he));var ye=re!=F.viewFrom||he!=F.viewTo||F.lastWrapHeight!=E.wrapperHeight||F.lastWrapWidth!=E.wrapperWidth;rw(p,re,he),F.viewOffset=gc(dn(p.doc,F.viewFrom)),p.display.mover.style.top=F.viewOffset+"px";var we=ES(p);if(!ye&&we==0&&!E.force&&F.renderedView==F.view&&(F.updateLineNumbers==null||F.updateLineNumbers>=F.viewTo))return!1;var Se=F9(p);return we>4&&(F.lineDiv.style.display="none"),V9(p,F.updateLineNumbers,E.dims),we>4&&(F.lineDiv.style.display=""),F.renderedView=F.view,N9(Se),C(F.cursorDiv),C(F.selectionDiv),F.gutters.style.height=F.sizer.style.minHeight=0,ye&&(F.lastWrapHeight=E.wrapperHeight,F.lastWrapWidth=E.wrapperWidth,q0(p,400)),F.updateLineNumbers=null,!0}function oP(p,E){for(var F=E.viewport,B=!0;;B=!1){if(!B||!p.options.lineWrapping||E.oldDisplayWidth==pf(p)){if(F&&F.top!=null&&(F={top:Math.min(p.doc.height+SS(p.display)-AS(p),F.top)}),E.visible=yf(p.display,p.doc,F),E.visible.from>=p.display.viewFrom&&E.visible.to<=p.display.viewTo)break}else B&&(E.visible=yf(p.display,p.doc,F));if(!MS(p,E))break;ow(p);var z=bf(p);Ph(p),bc(p,z),BS(p,z),E.force=!1}E.signal(p,"update",p),(p.display.viewFrom!=p.display.reportedViewFrom||p.display.viewTo!=p.display.reportedViewTo)&&(E.signal(p,"viewportChange",p,p.display.viewFrom,p.display.viewTo),p.display.reportedViewFrom=p.display.viewFrom,p.display.reportedViewTo=p.display.viewTo)}function Iu(p,E){var F=new wc(p,E);if(MS(p,F)){ow(p),oP(p,F);var B=bf(p);Ph(p),bc(p,B),BS(p,B),F.finish()}}function V9(p,E,F){var B=p.display,z=p.options.lineNumbers,re=B.lineDiv,he=re.firstChild;function ye(Nt){var Gt=Nt.nextSibling;return c&&S&&p.display.currentWheelTarget==Nt?Nt.style.display="none":Nt.parentNode.removeChild(Nt),Gt}for(var we=B.view,Se=B.viewFrom,Ge=0;Ge<we.length;Ge++){var Je=we[Ge];if(!Je.hidden)if(!Je.node||Je.node.parentNode!=re){var Ct=E9(p,Je,Se,F);re.insertBefore(Ct,he)}else{for(;he!=Je.node;)he=ye(he);var vt=z&&E!=null&&E<=Se&&Je.lineNumber;Je.changes&&(oe(Je.changes,"gutter")>-1&&(vt=!1),yS(p,Je,Se,F)),vt&&(C(Je.lineNumber),Je.lineNumber.appendChild(document.createTextNode(zt(p.options,Se)))),he=Je.node.nextSibling}Se+=Je.size}for(;he;)he=ye(he)}function LS(p){var E=p.gutters.offsetWidth;p.sizer.style.marginLeft=E+"px",ho(p,"gutterChanged",p)}function BS(p,E){p.display.sizer.style.minHeight=E.docHeight+"px",p.display.heightForcer.style.top=E.docHeight+"px",p.display.gutters.style.height=E.docHeight+p.display.barHeight+vc(p)+"px"}function aP(p){var E=p.display,F=E.view;if(!(!E.alignWidgets&&(!E.gutters.firstChild||!p.options.fixedGutter))){for(var B=Oi(E)-E.scroller.scrollLeft+p.doc.scrollLeft,z=E.gutters.offsetWidth,re=B+"px",he=0;he<F.length;he++)if(!F[he].hidden){p.options.fixedGutter&&(F[he].gutter&&(F[he].gutter.style.left=re),F[he].gutterBackground&&(F[he].gutterBackground.style.left=re));var ye=F[he].alignable;if(ye)for(var we=0;we<ye.length;we++)ye[we].style.left=re}p.options.fixedGutter&&(E.gutters.style.left=B+z+"px")}}function sP(p){if(!p.options.lineNumbers)return!1;var E=p.doc,F=zt(p.options,E.first+E.size-1),B=p.display;if(F.length!=B.lineNumChars){var z=B.measure.appendChild(P("div",[P("div",F)],"CodeMirror-linenumber CodeMirror-gutter-elt")),re=z.firstChild.offsetWidth,he=z.offsetWidth-re;return B.lineGutter.style.width="",B.lineNumInnerWidth=Math.max(re,B.lineGutter.offsetWidth-he)+1,B.lineNumWidth=B.lineNumInnerWidth+he,B.lineNumChars=B.lineNumInnerWidth?F.length:-1,B.lineGutter.style.width=B.lineNumWidth+"px",LS(p.display),!0}return!1}function ku(p,E){for(var F=[],B=!1,z=0;z<p.length;z++){var re=p[z],he=null;if(typeof re!="string"&&(he=re.style,re=re.className),re=="CodeMirror-linenumbers")if(E)B=!0;else continue;F.push({className:re,style:he})}return E&&!B&&F.push({className:"CodeMirror-linenumbers",style:null}),F}function lP(p){var E=p.gutters,F=p.gutterSpecs;C(E),p.lineGutter=null;for(var B=0;B<F.length;++B){var z=F[B],re=z.className,he=z.style,ye=E.appendChild(P("div",null,"CodeMirror-gutter "+re));he&&(ye.style.cssText=he),re=="CodeMirror-linenumbers"&&(p.lineGutter=ye,ye.style.width=(p.lineNumWidth||1)+"px")}E.style.display=F.length?"":"none",LS(p)}function J0(p){lP(p.display),Es(p),aP(p)}function j9(p,E,F,B){var z=this;this.input=F,z.scrollbarFiller=P("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=P("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=$("div",null,"CodeMirror-code"),z.selectionDiv=P("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=P("div",null,"CodeMirror-cursors"),z.measure=P("div",null,"CodeMirror-measure"),z.lineMeasure=P("div",null,"CodeMirror-measure"),z.lineSpace=$("div",[z.measure,z.lineMeasure,z.selectionDiv,z.cursorDiv,z.lineDiv],null,"position: relative; outline: none");var re=$("div",[z.lineSpace],"CodeMirror-lines");z.mover=P("div",[re],null,"position: relative"),z.sizer=P("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=P("div",null,null,"position: absolute; height: "+ve+"px; width: 1px;"),z.gutters=P("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=P("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=P("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),h&&f>=105&&(z.wrapper.style.clipPath="inset(0px)"),z.wrapper.setAttribute("translate","no"),l&&u<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!c&&!(i&&T)&&(z.scroller.draggable=!0),p&&(p.appendChild?p.appendChild(z.wrapper):p(z.wrapper)),z.viewFrom=z.viewTo=E.first,z.reportedViewFrom=z.reportedViewTo=E.first,z.view=[],z.renderedView=null,z.externalMeasured=null,z.viewOffset=0,z.lastWrapHeight=z.lastWrapWidth=0,z.updateLineNumbers=null,z.nativeBarWidth=z.barHeight=z.barWidth=0,z.scrollbarsClipped=!1,z.lineNumWidth=z.lineNumInnerWidth=z.lineNumChars=null,z.alignWidgets=!1,z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.maxLine=null,z.maxLineLength=0,z.maxLineChanged=!1,z.wheelDX=z.wheelDY=z.wheelStartX=z.wheelStartY=null,z.shift=!1,z.selForContextMenu=null,z.activeTouch=null,z.gutterSpecs=ku(B.gutters,B.lineNumbers),lP(z),F.init(z)}var uw=0,Td=null;l?Td=-.53:i?Td=15:h?Td=-.7:b&&(Td=-1/3);function Rh(p){var E=p.wheelDeltaX,F=p.wheelDeltaY;return E==null&&p.detail&&p.axis==p.HORIZONTAL_AXIS&&(E=p.detail),F==null&&p.detail&&p.axis==p.VERTICAL_AXIS?F=p.detail:F==null&&(F=p.wheelDelta),{x:E,y:F}}function W9(p){var E=Rh(p);return E.x*=Td,E.y*=Td,E}function uP(p,E){h&&f==102&&(p.display.chromeScrollHack==null?p.display.sizer.style.pointerEvents="none":clearTimeout(p.display.chromeScrollHack),p.display.chromeScrollHack=setTimeout(function(){p.display.chromeScrollHack=null,p.display.sizer.style.pointerEvents=""},100));var F=Rh(E),B=F.x,z=F.y,re=Td;E.deltaMode===0&&(B=E.deltaX,z=E.deltaY,re=1);var he=p.display,ye=he.scroller,we=ye.scrollWidth>ye.clientWidth,Se=ye.scrollHeight>ye.clientHeight;if(B&&we||z&&Se){if(z&&S&&c){e:for(var Ge=E.target,Je=he.view;Ge!=ye;Ge=Ge.parentNode)for(var Ct=0;Ct<Je.length;Ct++)if(Je[Ct].node==Ge){p.display.currentWheelTarget=Ge;break e}}if(B&&!i&&!g&&re!=null){z&&Se&&X0(p,Math.max(0,ye.scrollTop+z*re)),Au(p,Math.max(0,ye.scrollLeft+B*re)),(!z||z&&Se)&&ct(E),he.wheelStartX=null;return}if(z&&re!=null){var vt=z*re,Nt=p.doc.scrollTop,Gt=Nt+he.wrapper.clientHeight;vt<0?Nt=Math.max(0,Nt+vt-50):Gt=Math.min(p.doc.height,Gt+vt+50),Iu(p,{top:Nt,bottom:Gt})}uw<20&&E.deltaMode!==0&&(he.wheelStartX==null?(he.wheelStartX=ye.scrollLeft,he.wheelStartY=ye.scrollTop,he.wheelDX=B,he.wheelDY=z,setTimeout(function(){if(he.wheelStartX!=null){var sn=ye.scrollLeft-he.wheelStartX,fn=ye.scrollTop-he.wheelStartY,On=fn&&he.wheelDY&&fn/he.wheelDY||sn&&he.wheelDX&&sn/he.wheelDX;he.wheelStartX=he.wheelStartY=null,On&&(Td=(Td*uw+On)/(uw+1),++uw)}},200)):(he.wheelDX+=B,he.wheelDY+=z))}}var xo=function(p,E){this.ranges=p,this.primIndex=E};xo.prototype.primary=function(){return this.ranges[this.primIndex]},xo.prototype.equals=function(p){if(p==this)return!0;if(p.primIndex!=this.primIndex||p.ranges.length!=this.ranges.length)return!1;for(var E=0;E<this.ranges.length;E++){var F=this.ranges[E],B=p.ranges[E];if(!An(F.anchor,B.anchor)||!An(F.head,B.head))return!1}return!0},xo.prototype.deepCopy=function(){for(var p=[],E=0;E<this.ranges.length;E++)p[E]=new yi(Sr(this.ranges[E].anchor),Sr(this.ranges[E].head));return new xo(p,this.primIndex)},xo.prototype.somethingSelected=function(){for(var p=0;p<this.ranges.length;p++)if(!this.ranges[p].empty())return!0;return!1},xo.prototype.contains=function(p,E){E||(E=p);for(var F=0;F<this.ranges.length;F++){var B=this.ranges[F];if(Zt(E,B.from())>=0&&Zt(p,B.to())<=0)return F}return-1};var yi=function(p,E){this.anchor=p,this.head=E};yi.prototype.from=function(){return ki(this.anchor,this.head)},yi.prototype.to=function(){return ii(this.anchor,this.head)},yi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Eu(p,E,F){var B=p&&p.options.selectionsMayTouch,z=E[F];E.sort(function(Ct,vt){return Zt(Ct.from(),vt.from())}),F=oe(E,z);for(var re=1;re<E.length;re++){var he=E[re],ye=E[re-1],we=Zt(ye.to(),he.from());if(B&&!he.empty()?we>0:we>=0){var Se=ki(ye.from(),he.from()),Ge=ii(ye.to(),he.to()),Je=ye.empty()?he.from()==he.head:ye.from()==ye.head;re<=F&&--F,E.splice(--re,2,new yi(Je?Ge:Se,Je?Se:Ge))}}return new xo(E,F)}function $h(p,E){return new xo([new yi(p,E||p)],0)}function Mh(p){return p.text?yt(p.from.line+p.text.length-1,Z(p.text).length+(p.text.length==1?p.from.ch:0)):p.to}function cP(p,E){if(Zt(p,E.from)<0)return p;if(Zt(p,E.to)<=0)return Mh(E);var F=p.line+E.text.length-(E.to.line-E.from.line)-1,B=p.ch;return p.line==E.to.line&&(B+=Mh(E).ch-E.to.ch),yt(F,B)}function cw(p,E){for(var F=[],B=0;B<p.sel.ranges.length;B++){var z=p.sel.ranges[B];F.push(new yi(cP(z.anchor,E),cP(z.head,E)))}return Eu(p.cm,F,p.sel.primIndex)}function FS(p,E,F){return p.line==E.line?yt(F.line,p.ch-E.ch+F.ch):yt(F.line+(p.line-E.line),p.ch)}function H9(p,E,F){for(var B=[],z=yt(p.first,0),re=z,he=0;he<E.length;he++){var ye=E[he],we=FS(ye.from,z,re),Se=FS(Mh(ye),z,re);if(z=ye.to,re=Se,F=="around"){var Ge=p.sel.ranges[he],Je=Zt(Ge.head,Ge.anchor)<0;B[he]=new yi(Je?Se:we,Je?we:Se)}else B[he]=new yi(we,we)}return new xo(B,p.sel.primIndex)}function NS(p){p.doc.mode=It(p.options,p.doc.modeOption),xf(p)}function xf(p){p.doc.iter(function(E){E.stateAfter&&(E.stateAfter=null),E.styles&&(E.styles=null)}),p.doc.modeFrontier=p.doc.highlightFrontier=p.doc.first,q0(p,100),p.state.modeGen++,p.curOp&&Es(p)}function Xg(p,E){return E.from.ch==0&&E.to.ch==0&&Z(E.text)==""&&(!p.cm||p.cm.options.wholeLineUpdateBefore)}function Yg(p,E,F,B){function z(On){return F?F[On]:null}function re(On,pn,Dn){WT(On,pn,Dn,B),ho(On,"change",On,E)}function he(On,pn){for(var Dn=[],Gn=On;Gn<pn;++Gn)Dn.push(new hf(Se[Gn],z(Gn),B));return Dn}var ye=E.from,we=E.to,Se=E.text,Ge=dn(p,ye.line),Je=dn(p,we.line),Ct=Z(Se),vt=z(Se.length-1),Nt=we.line-ye.line;if(E.full)p.insert(0,he(0,Se.length)),p.remove(Se.length,p.size-Se.length);else if(Xg(p,E)){var Gt=he(0,Se.length-1);re(Je,Je.text,vt),Nt&&p.remove(ye.line,Nt),Gt.length&&p.insert(ye.line,Gt)}else if(Ge==Je)if(Se.length==1)re(Ge,Ge.text.slice(0,ye.ch)+Ct+Ge.text.slice(we.ch),vt);else{var sn=he(1,Se.length-1);sn.push(new hf(Ct+Ge.text.slice(we.ch),vt,B)),re(Ge,Ge.text.slice(0,ye.ch)+Se[0],z(0)),p.insert(ye.line+1,sn)}else if(Se.length==1)re(Ge,Ge.text.slice(0,ye.ch)+Se[0]+Je.text.slice(we.ch),z(0)),p.remove(ye.line+1,Nt);else{re(Ge,Ge.text.slice(0,ye.ch)+Se[0],z(0)),re(Je,Ct+Je.text.slice(we.ch),vt);var fn=he(1,Se.length-1);Nt>1&&p.remove(ye.line+1,Nt-1),p.insert(ye.line+1,fn)}ho(p,"change",p,E)}function Lh(p,E,F){function B(z,re,he){if(z.linked)for(var ye=0;ye<z.linked.length;++ye){var we=z.linked[ye];if(we.doc!=re){var Se=he&&we.sharedHist;F&&!Se||(E(we.doc,Se),B(we.doc,z,Se))}}}B(p,null,!0)}function VS(p,E){if(E.cm)throw new Error("This document is already in use.");p.doc=E,E.cm=p,nw(p),NS(p),dP(p),p.options.direction=E.direction,p.options.lineWrapping||X1(p),p.options.mode=E.modeOption,Es(p)}function dP(p){(p.doc.direction=="rtl"?Q:D)(p.display.lineDiv,"CodeMirror-rtl")}function Pd(p){qa(p,function(){dP(p),Es(p)})}function Kg(p){this.done=[],this.undone=[],this.undoDepth=p?p.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=p?p.maxGeneration:1}function Dd(p,E){var F={from:Sr(E.from),to:Mh(E),text:ri(p,E.from,E.to)};return WS(p,F,E.from.line,E.to.line+1),Lh(p,function(B){return WS(B,F,E.from.line,E.to.line+1)},!0),F}function Cl(p){for(;p.length;){var E=Z(p);if(E.ranges)p.pop();else break}}function z9(p,E){if(E)return Cl(p.done),Z(p.done);if(p.done.length&&!Z(p.done).ranges)return Z(p.done);if(p.done.length>1&&!p.done[p.done.length-2].ranges)return p.done.pop(),Z(p.done)}function jS(p,E,F,B){var z=p.history;z.undone.length=0;var re=+new Date,he,ye;if((z.lastOp==B||z.lastOrigin==E.origin&&E.origin&&(E.origin.charAt(0)=="+"&&z.lastModTime>re-(p.cm?p.cm.options.historyEventDelay:500)||E.origin.charAt(0)=="*"))&&(he=z9(z,z.lastOp==B)))ye=Z(he.changes),Zt(E.from,E.to)==0&&Zt(E.from,ye.to)==0?ye.to=Mh(E):he.changes.push(Dd(p,E));else{var we=Z(z.done);for((!we||!we.ranges)&&_u(p.sel,z.done),he={changes:[Dd(p,E)],generation:z.generation},z.done.push(he);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(F),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=re,z.lastOp=z.lastSelOp=B,z.lastOrigin=z.lastSelOrigin=E.origin,ye||Mt(p,"historyAdded")}function hP(p,E,F,B){var z=E.charAt(0);return z=="*"||z=="+"&&F.ranges.length==B.ranges.length&&F.somethingSelected()==B.somethingSelected()&&new Date-p.history.lastSelTime<=(p.cm?p.cm.options.historyEventDelay:500)}function ey(p,E,F,B){var z=p.history,re=B&&B.origin;F==z.lastSelOp||re&&z.lastSelOrigin==re&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==re||hP(p,re,Z(z.done),E))?z.done[z.done.length-1]=E:_u(E,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=re,z.lastSelOp=F,B&&B.clearRedo!==!1&&Cl(z.undone)}function _u(p,E){var F=Z(E);F&&F.ranges&&F.equals(p)||E.push(p)}function WS(p,E,F,B){var z=E["spans_"+p.id],re=0;p.iter(Math.max(p.first,F),Math.min(p.first+p.size,B),function(he){he.markedSpans&&((z||(z=E["spans_"+p.id]={}))[re]=he.markedSpans),++re})}function Z9(p){if(!p)return null;for(var E,F=0;F<p.length;++F)p[F].marker.explicitlyCleared?E||(E=p.slice(0,F)):E&&E.push(p[F]);return E?E.length?E:null:p}function dw(p,E){var F=E["spans_"+p.id];if(!F)return null;for(var B=[],z=0;z<E.text.length;++z)B.push(Z9(F[z]));return B}function pP(p,E){var F=dw(p,E),B=hS(p,E);if(!F)return B;if(!B)return F;for(var z=0;z<F.length;++z){var re=F[z],he=B[z];if(re&&he)e:for(var ye=0;ye<he.length;++ye){for(var we=he[ye],Se=0;Se<re.length;++Se)if(re[Se].marker==we.marker)continue e;re.push(we)}else he&&(F[z]=he)}return F}function Sf(p,E,F){for(var B=[],z=0;z<p.length;++z){var re=p[z];if(re.ranges){B.push(F?xo.prototype.deepCopy.call(re):re);continue}var he=re.changes,ye=[];B.push({changes:ye});for(var we=0;we<he.length;++we){var Se=he[we],Ge=void 0;if(ye.push({from:Se.from,to:Se.to,text:Se.text}),E)for(var Je in Se)(Ge=Je.match(/^spans_(\d+)$/))&&oe(E,Number(Ge[1]))>-1&&(Z(ye)[Je]=Se[Je],delete Se[Je])}}return B}function ya(p,E,F,B){if(B){var z=p.anchor;if(F){var re=Zt(E,z)<0;re!=Zt(F,z)<0?(z=E,E=F):re!=Zt(E,F)<0&&(E=F)}return new yi(z,E)}else return new yi(F||E,E)}function qg(p,E,F,B,z){z==null&&(z=p.cm&&(p.cm.display.shift||p.extend)),$a(p,new xo([ya(p.sel.primary(),E,F,z)],0),B)}function HS(p,E,F){for(var B=[],z=p.cm&&(p.cm.display.shift||p.extend),re=0;re<p.sel.ranges.length;re++)B[re]=ya(p.sel.ranges[re],E[re],null,z);var he=Eu(p.cm,B,p.sel.primIndex);$a(p,he,F)}function zl(p,E,F,B){var z=p.sel.ranges.slice(0);z[E]=F,$a(p,Eu(p.cm,z,p.sel.primIndex),B)}function hw(p,E,F,B){$a(p,$h(E,F),B)}function pw(p,E,F){var B={ranges:E.ranges,update:function(z){this.ranges=[];for(var re=0;re<z.length;re++)this.ranges[re]=new yi(Xn(p,z[re].anchor),Xn(p,z[re].head))},origin:F&&F.origin};return Mt(p,"beforeSelectionChange",p,B),p.cm&&Mt(p.cm,"beforeSelectionChange",p.cm,B),B.ranges!=E.ranges?Eu(p.cm,B.ranges,B.ranges.length-1):E}function Bh(p,E,F){var B=p.history.done,z=Z(B);z&&z.ranges?(B[B.length-1]=E,Ma(p,E,F)):$a(p,E,F)}function $a(p,E,F){Ma(p,E,F),ey(p,p.sel,p.cm?p.cm.curOp.id:NaN,F)}function Ma(p,E,F){(Ee(p,"beforeSelectionChange")||p.cm&&Ee(p.cm,"beforeSelectionChange"))&&(E=pw(p,E,F));var B=F&&F.bias||(Zt(E.primary().head,p.sel.primary().head)<0?-1:1);fw(p,gP(p,E,B,!0)),!(F&&F.scroll===!1)&&p.cm&&p.cm.getOption("readOnly")!="nocursor"&&po(p.cm)}function fw(p,E){E.equals(p.sel)||(p.sel=E,p.cm&&(p.cm.curOp.updateInput=1,p.cm.curOp.selectionChanged=!0,wt(p.cm)),ho(p,"cursorActivity",p))}function fP(p){fw(p,gP(p,p.sel,null,!1))}function gP(p,E,F,B){for(var z,re=0;re<E.ranges.length;re++){var he=E.ranges[re],ye=E.ranges.length==p.sel.ranges.length&&p.sel.ranges[re],we=em(p,he.anchor,ye&&ye.anchor,F,B),Se=he.head==he.anchor?we:em(p,he.head,ye&&ye.head,F,B);(z||we!=he.anchor||Se!=he.head)&&(z||(z=E.ranges.slice(0,re)),z[re]=new yi(we,Se))}return z?Eu(p.cm,z,E.primIndex):E}function Jg(p,E,F,B,z){var re=dn(p,E.line);if(re.markedSpans)for(var he=0;he<re.markedSpans.length;++he){var ye=re.markedSpans[he],we=ye.marker,Se="selectLeft"in we?!we.selectLeft:we.inclusiveLeft,Ge="selectRight"in we?!we.selectRight:we.inclusiveRight;if((ye.from==null||(Se?ye.from<=E.ch:ye.from<E.ch))&&(ye.to==null||(Ge?ye.to>=E.ch:ye.to>E.ch))){if(z&&(Mt(we,"beforeCursorEnter"),we.explicitlyCleared))if(re.markedSpans){--he;continue}else break;if(!we.atomic)continue;if(F){var Je=we.find(B<0?1:-1),Ct=void 0;if((B<0?Ge:Se)&&(Je=mP(p,Je,-B,Je&&Je.line==E.line?re:null)),Je&&Je.line==E.line&&(Ct=Zt(Je,F))&&(B<0?Ct<0:Ct>0))return Jg(p,Je,E,B,z)}var vt=we.find(B<0?-1:1);return(B<0?Se:Ge)&&(vt=mP(p,vt,B,vt.line==E.line?re:null)),vt?Jg(p,vt,E,B,z):null}}return E}function em(p,E,F,B,z){var re=B||1,he=Jg(p,E,F,re,z)||!z&&Jg(p,E,F,re,!0)||Jg(p,E,F,-re,z)||!z&&Jg(p,E,F,-re,!0);return he||(p.cantEdit=!0,yt(p.first,0))}function mP(p,E,F,B){return F<0&&E.ch==0?E.line>p.first?Xn(p,yt(E.line-1)):null:F>0&&E.ch==(B||dn(p,E.line)).text.length?E.line<p.first+p.size-1?yt(E.line+1,0):null:new yt(E.line,E.ch+F)}function tm(p){p.setSelection(yt(p.firstLine(),0),yt(p.lastLine()),ae)}function zS(p,E,F){var B={canceled:!1,from:E.from,to:E.to,text:E.text,origin:E.origin,cancel:function(){return B.canceled=!0}};return F&&(B.update=function(z,re,he,ye){z&&(B.from=Xn(p,z)),re&&(B.to=Xn(p,re)),he&&(B.text=he),ye!==void 0&&(B.origin=ye)}),Mt(p,"beforeChange",p,B),p.cm&&Mt(p.cm,"beforeChange",p.cm,B),B.canceled?(p.cm&&(p.cm.curOp.updateInput=2),null):{from:B.from,to:B.to,text:B.text,origin:B.origin}}function nm(p,E,F){if(p.cm){if(!p.cm.curOp)return Ei(p.cm,nm)(p,E,F);if(p.cm.state.suppressEdits)return}if(!((Ee(p,"beforeChange")||p.cm&&Ee(p.cm,"beforeChange"))&&(E=zS(p,E,!0),!E))){var B=MT&&!F&&x9(p,E.from,E.to);if(B)for(var z=B.length-1;z>=0;--z)vP(p,{from:B[z].from,to:B[z].to,text:z?[""]:E.text,origin:E.origin});else vP(p,E)}}function vP(p,E){if(!(E.text.length==1&&E.text[0]==""&&Zt(E.from,E.to)==0)){var F=cw(p,E);jS(p,E,F,p.cm?p.cm.curOp.id:NaN),ty(p,E,F,hS(p,E));var B=[];Lh(p,function(z,re){!re&&oe(B,z.history)==-1&&(CP(z.history,E),B.push(z.history)),ty(z,E,null,hS(z,E))})}}function Fh(p,E,F){var B=p.cm&&p.cm.state.suppressEdits;if(!(B&&!F)){for(var z=p.history,re,he=p.sel,ye=E=="undo"?z.done:z.undone,we=E=="undo"?z.undone:z.done,Se=0;Se<ye.length&&(re=ye[Se],!(F?re.ranges&&!re.equals(p.sel):!re.ranges));Se++);if(Se!=ye.length){for(z.lastOrigin=z.lastSelOrigin=null;;)if(re=ye.pop(),re.ranges){if(_u(re,we),F&&!re.equals(p.sel)){$a(p,re,{clearRedo:!1});return}he=re}else if(B){ye.push(re);return}else break;var Ge=[];_u(he,we),we.push({changes:Ge,generation:z.generation}),z.generation=re.generation||++z.maxGeneration;for(var Je=Ee(p,"beforeChange")||p.cm&&Ee(p.cm,"beforeChange"),Ct=function(Gt){var sn=re.changes[Gt];if(sn.origin=E,Je&&!zS(p,sn,!1))return ye.length=0,{};Ge.push(Dd(p,sn));var fn=Gt?cw(p,sn):Z(ye);ty(p,sn,fn,pP(p,sn)),!Gt&&p.cm&&p.cm.scrollIntoView({from:sn.from,to:Mh(sn)});var On=[];Lh(p,function(pn,Dn){!Dn&&oe(On,pn.history)==-1&&(CP(pn.history,sn),On.push(pn.history)),ty(pn,sn,null,pP(pn,sn))})},vt=re.changes.length-1;vt>=0;--vt){var Nt=Ct(vt);if(Nt)return Nt.v}}}}function yP(p,E){if(E!=0&&(p.first+=E,p.sel=new xo(Y(p.sel.ranges,function(z){return new yi(yt(z.anchor.line+E,z.anchor.ch),yt(z.head.line+E,z.head.ch))}),p.sel.primIndex),p.cm)){Es(p.cm,p.first,p.first-E,E);for(var F=p.cm.display,B=F.viewFrom;B<F.viewTo;B++)Th(p.cm,B,"gutter")}}function ty(p,E,F,B){if(p.cm&&!p.cm.curOp)return Ei(p.cm,ty)(p,E,F,B);if(E.to.line<p.first){yP(p,E.text.length-1-(E.to.line-E.from.line));return}if(!(E.from.line>p.lastLine())){if(E.from.line<p.first){var z=E.text.length-1-(p.first-E.from.line);yP(p,z),E={from:yt(p.first,0),to:yt(E.to.line+z,E.to.ch),text:[Z(E.text)],origin:E.origin}}var re=p.lastLine();E.to.line>re&&(E={from:E.from,to:yt(re,dn(p,re).text.length),text:[E.text[0]],origin:E.origin}),E.removed=ri(p,E.from,E.to),F||(F=cw(p,E)),p.cm?ZS(p.cm,E,B):Yg(p,E,B),Ma(p,F,ae),p.cantEdit&&em(p,yt(p.firstLine(),0))&&(p.cantEdit=!1)}}function ZS(p,E,F){var B=p.doc,z=p.display,re=E.from,he=E.to,ye=!1,we=re.line;p.options.lineWrapping||(we=Ie(Hi(dn(B,re.line))),B.iter(we,he.line+1,function(vt){if(vt==z.maxLine)return ye=!0,!0})),B.sel.contains(E.from,E.to)>-1&&wt(p),Yg(B,E,F,eP(p)),p.options.lineWrapping||(B.iter(we,re.line+E.text.length,function(vt){var Nt=z0(vt);Nt>z.maxLineLength&&(z.maxLine=vt,z.maxLineLength=Nt,z.maxLineChanged=!0,ye=!1)}),ye&&(p.curOp.updateMaxLine=!0)),y9(B,re.line),q0(p,400);var Se=E.text.length-(he.line-re.line)-1;E.full?Es(p):re.line==he.line&&E.text.length==1&&!Xg(p.doc,E)?Th(p,re.line,"text"):Es(p,re.line,he.line+1,Se);var Ge=Ee(p,"changes"),Je=Ee(p,"change");if(Je||Ge){var Ct={from:re,to:he,text:E.text,removed:E.removed,origin:E.origin};Je&&ho(p,"change",p,Ct),Ge&&(p.curOp.changeObjs||(p.curOp.changeObjs=[])).push(Ct)}p.display.selForContextMenu=null}function Af(p,E,F,B,z){var re;B||(B=F),Zt(B,F)<0&&(re=[B,F],F=re[0],B=re[1]),typeof E=="string"&&(E=p.splitLines(E)),nm(p,{from:F,to:B,text:E,origin:z})}function bP(p,E,F,B){F<p.line?p.line+=B:E<p.line&&(p.line=E,p.ch=0)}function wP(p,E,F,B){for(var z=0;z<p.length;++z){var re=p[z],he=!0;if(re.ranges){re.copied||(re=p[z]=re.deepCopy(),re.copied=!0);for(var ye=0;ye<re.ranges.length;ye++)bP(re.ranges[ye].anchor,E,F,B),bP(re.ranges[ye].head,E,F,B);continue}for(var we=0;we<re.changes.length;++we){var Se=re.changes[we];if(F<Se.from.line)Se.from=yt(Se.from.line+B,Se.from.ch),Se.to=yt(Se.to.line+B,Se.to.ch);else if(E<=Se.to.line){he=!1;break}}he||(p.splice(0,z+1),z=0)}}function CP(p,E){var F=E.from.line,B=E.to.line,z=E.text.length-(B-F)-1;wP(p.done,F,B,z),wP(p.undone,F,B,z)}function rm(p,E,F,B){var z=E,re=E;return typeof E=="number"?re=dn(p,ks(p,E)):z=Ie(E),z==null?null:(B(re,z)&&p.cm&&Th(p.cm,z,F),re)}function If(p){this.lines=p,this.parent=null;for(var E=0,F=0;F<p.length;++F)p[F].parent=this,E+=p[F].height;this.height=E}If.prototype={chunkSize:function(){return this.lines.length},removeInner:function(p,E){for(var F=p,B=p+E;F<B;++F){var z=this.lines[F];this.height-=z.height,yl(z),ho(z,"delete")}this.lines.splice(p,E)},collapse:function(p){p.push.apply(p,this.lines)},insertInner:function(p,E,F){this.height+=F,this.lines=this.lines.slice(0,p).concat(E).concat(this.lines.slice(p));for(var B=0;B<E.length;++B)E[B].parent=this},iterN:function(p,E,F){for(var B=p+E;p<B;++p)if(F(this.lines[p]))return!0}};function ny(p){this.children=p;for(var E=0,F=0,B=0;B<p.length;++B){var z=p[B];E+=z.chunkSize(),F+=z.height,z.parent=this}this.size=E,this.height=F,this.parent=null}ny.prototype={chunkSize:function(){return this.size},removeInner:function(p,E){this.size-=E;for(var F=0;F<this.children.length;++F){var B=this.children[F],z=B.chunkSize();if(p<z){var re=Math.min(E,z-p),he=B.height;if(B.removeInner(p,re),this.height-=he-B.height,z==re&&(this.children.splice(F--,1),B.parent=null),(E-=re)==0)break;p=0}else p-=z}if(this.size-E<25&&(this.children.length>1||!(this.children[0]instanceof If))){var ye=[];this.collapse(ye),this.children=[new If(ye)],this.children[0].parent=this}},collapse:function(p){for(var E=0;E<this.children.length;++E)this.children[E].collapse(p)},insertInner:function(p,E,F){this.size+=E.length,this.height+=F;for(var B=0;B<this.children.length;++B){var z=this.children[B],re=z.chunkSize();if(p<=re){if(z.insertInner(p,E,F),z.lines&&z.lines.length>50){for(var he=z.lines.length%25+25,ye=he;ye<z.lines.length;){var we=new If(z.lines.slice(ye,ye+=25));z.height-=we.height,this.children.splice(++B,0,we),we.parent=this}z.lines=z.lines.slice(0,he),this.maybeSpill()}break}p-=re}},maybeSpill:function(){if(!(this.children.length<=10)){var p=this;do{var E=p.children.splice(p.children.length-5,5),F=new ny(E);if(p.parent){p.size-=F.size,p.height-=F.height;var B=oe(p.parent.children,p);p.parent.children.splice(B+1,0,F)}else{var z=new ny(p.children);z.parent=p,p.children=[z,F],p=z}F.parent=p.parent}while(p.children.length>10);p.parent.maybeSpill()}},iterN:function(p,E,F){for(var B=0;B<this.children.length;++B){var z=this.children[B],re=z.chunkSize();if(p<re){var he=Math.min(E,re-p);if(z.iterN(p,he,F))return!0;if((E-=he)==0)break;p=0}else p-=re}}};var kf=function(p,E,F){if(F)for(var B in F)F.hasOwnProperty(B)&&(this[B]=F[B]);this.doc=p,this.node=E};kf.prototype.clear=function(){var p=this.doc.cm,E=this.line.widgets,F=this.line,B=Ie(F);if(!(B==null||!E)){for(var z=0;z<E.length;++z)E[z]==this&&E.splice(z--,1);E.length||(F.widgets=null);var re=Id(this);ci(F,Math.max(0,F.height-re)),p&&(qa(p,function(){GS(p,F,-re),Th(p,B,"widget")}),ho(p,"lineWidgetCleared",p,this,B))}},kf.prototype.changed=function(){var p=this,E=this.height,F=this.doc.cm,B=this.line;this.height=null;var z=Id(this)-E;z&&(ma(this.doc,B)||ci(B,B.height+z),F&&qa(F,function(){F.curOp.forceUpdate=!0,GS(F,B,z),ho(F,"lineWidgetChanged",F,p,Ie(B))}))},Xe(kf);function GS(p,E,F){gc(E)<(p.curOp&&p.curOp.scrollTop||p.doc.scrollTop)&&RS(p,F)}function OP(p,E,F,B){var z=new kf(p,F,B),re=p.cm;return re&&z.noHScroll&&(re.display.alignWidgets=!0),rm(p,E,"widget",function(he){var ye=he.widgets||(he.widgets=[]);if(z.insertAt==null?ye.push(z):ye.splice(Math.min(ye.length,Math.max(0,z.insertAt)),0,z),z.line=he,re&&!ma(p,he)){var we=gc(he)<p.scrollTop;ci(he,he.height+Id(z)),we&&RS(re,z.height),re.curOp.forceUpdate=!0}return!0}),re&&ho(re,"lineWidgetAdded",re,z,typeof E=="number"?E:Ie(E)),z}var QS=0,Tu=function(p,E){this.lines=[],this.type=E,this.doc=p,this.id=++QS};Tu.prototype.clear=function(){if(!this.explicitlyCleared){var p=this.doc.cm,E=p&&!p.curOp;if(E&&Cf(p),Ee(this,"clear")){var F=this.find();F&&ho(this,"clear",F.from,F.to)}for(var B=null,z=null,re=0;re<this.lines.length;++re){var he=this.lines[re],ye=H0(he.markedSpans,this);p&&!this.collapsed?Th(p,Ie(he),"text"):p&&(ye.to!=null&&(z=Ie(he)),ye.from!=null&&(B=Ie(he))),he.markedSpans=w9(he.markedSpans,ye),ye.from==null&&this.collapsed&&!ma(this.doc,he)&&p&&ci(he,Ou(p.display))}if(p&&this.collapsed&&!p.options.lineWrapping)for(var we=0;we<this.lines.length;++we){var Se=Hi(this.lines[we]),Ge=z0(Se);Ge>p.display.maxLineLength&&(p.display.maxLine=Se,p.display.maxLineLength=Ge,p.display.maxLineChanged=!0)}B!=null&&p&&this.collapsed&&Es(p,B,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,p&&fP(p.doc)),p&&ho(p,"markerCleared",p,this,B,z),E&&Of(p),this.parent&&this.parent.clear()}},Tu.prototype.find=function(p,E){p==null&&this.type=="bookmark"&&(p=1);for(var F,B,z=0;z<this.lines.length;++z){var re=this.lines[z],he=H0(re.markedSpans,this);if(he.from!=null&&(F=yt(E?re:Ie(re),he.from),p==-1))return F;if(he.to!=null&&(B=yt(E?re:Ie(re),he.to),p==1))return B}return F&&{from:F,to:B}},Tu.prototype.changed=function(){var p=this,E=this.find(-1,!0),F=this,B=this.doc.cm;!E||!B||qa(B,function(){var z=E.line,re=Ie(E.line),he=ew(B,re);if(he&&(IS(he),B.curOp.selectionChanged=B.curOp.forceUpdate=!0),B.curOp.updateMaxLine=!0,!ma(F.doc,z)&&F.height!=null){var ye=F.height;F.height=null;var we=Id(F)-ye;we&&ci(z,z.height+we)}ho(B,"markerChanged",B,p)})},Tu.prototype.attachLine=function(p){if(!this.lines.length&&this.doc.cm){var E=this.doc.cm.curOp;(!E.maybeHiddenMarkers||oe(E.maybeHiddenMarkers,this)==-1)&&(E.maybeUnhiddenMarkers||(E.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(p)},Tu.prototype.detachLine=function(p){if(this.lines.splice(oe(this.lines,p),1),!this.lines.length&&this.doc.cm){var E=this.doc.cm.curOp;(E.maybeHiddenMarkers||(E.maybeHiddenMarkers=[])).push(this)}},Xe(Tu);function im(p,E,F,B,z){if(B&&B.shared)return xP(p,E,F,B,z);if(p.cm&&!p.cm.curOp)return Ei(p.cm,im)(p,E,F,B,z);var re=new Tu(p,z),he=Zt(E,F);if(B&&G(B,re,!1),he>0||he==0&&re.clearWhenEmpty!==!1)return re;if(re.replacedWith&&(re.collapsed=!0,re.widgetNode=$("span",[re.replacedWith],"CodeMirror-widget"),B.handleMouseEvents||re.widgetNode.setAttribute("cm-ignore-events","true"),B.insertLeft&&(re.widgetNode.insertLeft=!0)),re.collapsed){if(jT(p,E.line,E,F,re)||E.line!=F.line&&jT(p,F.line,E,F,re))throw new Error("Inserting collapsed marker partially overlapping an existing one");b9()}re.addToHistory&&jS(p,{from:E,to:F,origin:"markText"},p.sel,NaN);var ye=E.line,we=p.cm,Se;if(p.iter(ye,F.line+1,function(Je){we&&re.collapsed&&!we.options.lineWrapping&&Hi(Je)==we.display.maxLine&&(Se=!0),re.collapsed&&ye!=E.line&&ci(Je,0),dS(Je,new W1(re,ye==E.line?E.ch:null,ye==F.line?F.ch:null),p.cm&&p.cm.curOp),++ye}),re.collapsed&&p.iter(E.line,F.line+1,function(Je){ma(p,Je)&&ci(Je,0)}),re.clearOnEnter&&Pe(re,"beforeCursorEnter",function(){return re.clear()}),re.readOnly&&(LT(),(p.history.done.length||p.history.undone.length)&&p.clearHistory()),re.collapsed&&(re.id=++QS,re.atomic=!0),we){if(Se&&(we.curOp.updateMaxLine=!0),re.collapsed)Es(we,E.line,F.line+1);else if(re.className||re.startStyle||re.endStyle||re.css||re.attributes||re.title)for(var Ge=E.line;Ge<=F.line;Ge++)Th(we,Ge,"text");re.atomic&&fP(we.doc),ho(we,"markerAdded",we,re)}return re}var om=function(p,E){this.markers=p,this.primary=E;for(var F=0;F<p.length;++F)p[F].parent=this};om.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var p=0;p<this.markers.length;++p)this.markers[p].clear();ho(this,"clear")}},om.prototype.find=function(p,E){return this.primary.find(p,E)},Xe(om);function xP(p,E,F,B,z){B=G(B),B.shared=!1;var re=[im(p,E,F,B,z)],he=re[0],ye=B.widgetNode;return Lh(p,function(we){ye&&(B.widgetNode=ye.cloneNode(!0)),re.push(im(we,Xn(we,E),Xn(we,F),B,z));for(var Se=0;Se<we.linked.length;++Se)if(we.linked[Se].isParent)return;he=Z(re)}),new om(re,he)}function SP(p){return p.findMarks(yt(p.first,0),p.clipPos(yt(p.lastLine())),function(E){return E.parent})}function AP(p,E){for(var F=0;F<E.length;F++){var B=E[F],z=B.find(),re=p.clipPos(z.from),he=p.clipPos(z.to);if(Zt(re,he)){var ye=im(p,re,he,B.primary,B.primary.type);B.markers.push(ye),ye.parent=B}}}function G9(p){for(var E=function(B){var z=p[B],re=[z.primary.doc];Lh(z.primary.doc,function(we){return re.push(we)});for(var he=0;he<z.markers.length;he++){var ye=z.markers[he];oe(re,ye.doc)==-1&&(ye.parent=null,z.markers.splice(he--,1))}},F=0;F<p.length;F++)E(F)}var US=0,cs=function(p,E,F,B,z){if(!(this instanceof cs))return new cs(p,E,F,B,z);F==null&&(F=0),ny.call(this,[new If([new hf("",null)])]),this.first=F,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=F;var re=yt(F,0);this.sel=$h(re),this.history=new Kg(null),this.id=++US,this.modeOption=E,this.lineSep=B,this.direction=z=="rtl"?"rtl":"ltr",this.extend=!1,typeof p=="string"&&(p=this.splitLines(p)),Yg(this,{from:re,to:re,text:p}),$a(this,$h(re),ae)};cs.prototype=me(ny.prototype,{constructor:cs,iter:function(p,E,F){F?this.iterN(p-this.first,E-p,F):this.iterN(this.first,this.first+this.size,p)},insert:function(p,E){for(var F=0,B=0;B<E.length;++B)F+=E[B].height;this.insertInner(p-this.first,E,F)},remove:function(p,E){this.removeInner(p-this.first,E)},getValue:function(p){var E=ji(this,this.first,this.first+this.size);return p===!1?E:E.join(p||this.lineSeparator())},setValue:va(function(p){var E=yt(this.first,0),F=this.first+this.size-1;nm(this,{from:E,to:yt(F,dn(this,F).text.length),text:this.splitLines(p),origin:"setValue",full:!0},!0),this.cm&&sa(this.cm,0,0),$a(this,$h(E),ae)}),replaceRange:function(p,E,F,B){E=Xn(this,E),F=F?Xn(this,F):E,Af(this,p,E,F,B)},getRange:function(p,E,F){var B=ri(this,Xn(this,p),Xn(this,E));return F===!1?B:F===""?B.join(""):B.join(F||this.lineSeparator())},getLine:function(p){var E=this.getLineHandle(p);return E&&E.text},getLineHandle:function(p){if(Dt(this,p))return dn(this,p)},getLineNumber:function(p){return Ie(p)},getLineHandleVisualStart:function(p){return typeof p=="number"&&(p=dn(this,p)),Hi(p)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(p){return Xn(this,p)},getCursor:function(p){var E=this.sel.primary(),F;return p==null||p=="head"?F=E.head:p=="anchor"?F=E.anchor:p=="end"||p=="to"||p===!1?F=E.to():F=E.from(),F},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:va(function(p,E,F){hw(this,Xn(this,typeof p=="number"?yt(p,E||0):p),null,F)}),setSelection:va(function(p,E,F){hw(this,Xn(this,p),Xn(this,E||p),F)}),extendSelection:va(function(p,E,F){qg(this,Xn(this,p),E&&Xn(this,E),F)}),extendSelections:va(function(p,E){HS(this,Ah(this,p),E)}),extendSelectionsBy:va(function(p,E){var F=Y(this.sel.ranges,p);HS(this,Ah(this,F),E)}),setSelections:va(function(p,E,F){if(p.length){for(var B=[],z=0;z<p.length;z++)B[z]=new yi(Xn(this,p[z].anchor),Xn(this,p[z].head||p[z].anchor));E==null&&(E=Math.min(p.length-1,this.sel.primIndex)),$a(this,Eu(this.cm,B,E),F)}}),addSelection:va(function(p,E,F){var B=this.sel.ranges.slice(0);B.push(new yi(Xn(this,p),Xn(this,E||p))),$a(this,Eu(this.cm,B,B.length-1),F)}),getSelection:function(p){for(var E=this.sel.ranges,F,B=0;B<E.length;B++){var z=ri(this,E[B].from(),E[B].to());F=F?F.concat(z):z}return p===!1?F:F.join(p||this.lineSeparator())},getSelections:function(p){for(var E=[],F=this.sel.ranges,B=0;B<F.length;B++){var z=ri(this,F[B].from(),F[B].to());p!==!1&&(z=z.join(p||this.lineSeparator())),E[B]=z}return E},replaceSelection:function(p,E,F){for(var B=[],z=0;z<this.sel.ranges.length;z++)B[z]=p;this.replaceSelections(B,E,F||"+input")},replaceSelections:va(function(p,E,F){for(var B=[],z=this.sel,re=0;re<z.ranges.length;re++){var he=z.ranges[re];B[re]={from:he.from(),to:he.to(),text:this.splitLines(p[re]),origin:F}}for(var ye=E&&E!="end"&&H9(this,B,E),we=B.length-1;we>=0;we--)nm(this,B[we]);ye?Bh(this,ye):this.cm&&po(this.cm)}),undo:va(function(){Fh(this,"undo")}),redo:va(function(){Fh(this,"redo")}),undoSelection:va(function(){Fh(this,"undo",!0)}),redoSelection:va(function(){Fh(this,"redo",!0)}),setExtending:function(p){this.extend=p},getExtending:function(){return this.extend},historySize:function(){for(var p=this.history,E=0,F=0,B=0;B<p.done.length;B++)p.done[B].ranges||++E;for(var z=0;z<p.undone.length;z++)p.undone[z].ranges||++F;return{undo:E,redo:F}},clearHistory:function(){var p=this;this.history=new Kg(this.history),Lh(this,function(E){return E.history=p.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(p){return p&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(p){return this.history.generation==(p||this.cleanGeneration)},getHistory:function(){return{done:Sf(this.history.done),undone:Sf(this.history.undone)}},setHistory:function(p){var E=this.history=new Kg(this.history);E.done=Sf(p.done.slice(0),null,!0),E.undone=Sf(p.undone.slice(0),null,!0)},setGutterMarker:va(function(p,E,F){return rm(this,p,"gutter",function(B){var z=B.gutterMarkers||(B.gutterMarkers={});return z[E]=F,!F&&Qe(z)&&(B.gutterMarkers=null),!0})}),clearGutter:va(function(p){var E=this;this.iter(function(F){F.gutterMarkers&&F.gutterMarkers[p]&&rm(E,F,"gutter",function(){return F.gutterMarkers[p]=null,Qe(F.gutterMarkers)&&(F.gutterMarkers=null),!0})})}),lineInfo:function(p){var E;if(typeof p=="number"){if(!Dt(this,p)||(E=p,p=dn(this,p),!p))return null}else if(E=Ie(p),E==null)return null;return{line:E,handle:p,text:p.text,gutterMarkers:p.gutterMarkers,textClass:p.textClass,bgClass:p.bgClass,wrapClass:p.wrapClass,widgets:p.widgets}},addLineClass:va(function(p,E,F){return rm(this,p,E=="gutter"?"gutter":"class",function(B){var z=E=="text"?"textClass":E=="background"?"bgClass":E=="gutter"?"gutterClass":"wrapClass";if(!B[z])B[z]=F;else{if(R(F).test(B[z]))return!1;B[z]+=" "+F}return!0})}),removeLineClass:va(function(p,E,F){return rm(this,p,E=="gutter"?"gutter":"class",function(B){var z=E=="text"?"textClass":E=="background"?"bgClass":E=="gutter"?"gutterClass":"wrapClass",re=B[z];if(re)if(F==null)B[z]=null;else{var he=re.match(R(F));if(!he)return!1;var ye=he.index+he[0].length;B[z]=re.slice(0,he.index)+(!he.index||ye==re.length?"":" ")+re.slice(ye)||null}else return!1;return!0})}),addLineWidget:va(function(p,E,F){return OP(this,p,E,F)}),removeLineWidget:function(p){p.clear()},markText:function(p,E,F){return im(this,Xn(this,p),Xn(this,E),F,F&&F.type||"range")},setBookmark:function(p,E){var F={replacedWith:E&&(E.nodeType==null?E.widget:E),insertLeft:E&&E.insertLeft,clearWhenEmpty:!1,shared:E&&E.shared,handleMouseEvents:E&&E.handleMouseEvents};return p=Xn(this,p),im(this,p,p,F,"bookmark")},findMarksAt:function(p){p=Xn(this,p);var E=[],F=dn(this,p.line).markedSpans;if(F)for(var B=0;B<F.length;++B){var z=F[B];(z.from==null||z.from<=p.ch)&&(z.to==null||z.to>=p.ch)&&E.push(z.marker.parent||z.marker)}return E},findMarks:function(p,E,F){p=Xn(this,p),E=Xn(this,E);var B=[],z=p.line;return this.iter(p.line,E.line+1,function(re){var he=re.markedSpans;if(he)for(var ye=0;ye<he.length;ye++){var we=he[ye];!(we.to!=null&&z==p.line&&p.ch>=we.to||we.from==null&&z!=p.line||we.from!=null&&z==E.line&&we.from>=E.ch)&&(!F||F(we.marker))&&B.push(we.marker.parent||we.marker)}++z}),B},getAllMarks:function(){var p=[];return this.iter(function(E){var F=E.markedSpans;if(F)for(var B=0;B<F.length;++B)F[B].from!=null&&p.push(F[B].marker)}),p},posFromIndex:function(p){var E,F=this.first,B=this.lineSeparator().length;return this.iter(function(z){var re=z.text.length+B;if(re>p)return E=p,!0;p-=re,++F}),Xn(this,yt(F,E))},indexFromPos:function(p){p=Xn(this,p);var E=p.ch;if(p.line<this.first||p.ch<0)return 0;var F=this.lineSeparator().length;return this.iter(this.first,p.line,function(B){E+=B.text.length+F}),E},copy:function(p){var E=new cs(ji(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return E.scrollTop=this.scrollTop,E.scrollLeft=this.scrollLeft,E.sel=this.sel,E.extend=!1,p&&(E.history.undoDepth=this.history.undoDepth,E.setHistory(this.getHistory())),E},linkedDoc:function(p){p||(p={});var E=this.first,F=this.first+this.size;p.from!=null&&p.from>E&&(E=p.from),p.to!=null&&p.to<F&&(F=p.to);var B=new cs(ji(this,E,F),p.mode||this.modeOption,E,this.lineSep,this.direction);return p.sharedHist&&(B.history=this.history),(this.linked||(this.linked=[])).push({doc:B,sharedHist:p.sharedHist}),B.linked=[{doc:this,isParent:!0,sharedHist:p.sharedHist}],AP(B,SP(this)),B},unlinkDoc:function(p){if(p instanceof hi&&(p=p.doc),this.linked)for(var E=0;E<this.linked.length;++E){var F=this.linked[E];if(F.doc==p){this.linked.splice(E,1),p.unlinkDoc(this),G9(SP(this));break}}if(p.history==this.history){var B=[p.id];Lh(p,function(z){return B.push(z.id)},!0),p.history=new Kg(null),p.history.done=Sf(this.history.done,B),p.history.undone=Sf(this.history.undone,B)}},iterLinkedDocs:function(p){Lh(this,p)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(p){return this.lineSep?p.split(this.lineSep):$t(p)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:va(function(p){p!="rtl"&&(p="ltr"),p!=this.direction&&(this.direction=p,this.iter(function(E){return E.order=null}),this.cm&&Pd(this.cm))})}),cs.prototype.eachLine=cs.prototype.iter;var gw=0;function Q9(p){var E=this;if(IP(E),!(He(E,p)||mc(E.display,p))){ct(p),l&&(gw=+new Date);var F=yc(E,p,!0),B=p.dataTransfer.files;if(!(!F||E.isReadOnly()))if(B&&B.length&&window.FileReader&&window.File)for(var z=B.length,re=Array(z),he=0,ye=function(){++he==z&&Ei(E,function(){F=Xn(E.doc,F);var vt={from:F,to:F,text:E.doc.splitLines(re.filter(function(Nt){return Nt!=null}).join(E.doc.lineSeparator())),origin:"paste"};nm(E.doc,vt),Bh(E.doc,$h(Xn(E.doc,F),Xn(E.doc,Mh(vt))))})()},we=function(vt,Nt){if(E.options.allowDropFileTypes&&oe(E.options.allowDropFileTypes,vt.type)==-1){ye();return}var Gt=new FileReader;Gt.onerror=function(){return ye()},Gt.onload=function(){var sn=Gt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(sn)){ye();return}re[Nt]=sn,ye()},Gt.readAsText(vt)},Se=0;Se<B.length;Se++)we(B[Se],Se);else{if(E.state.draggingText&&E.doc.sel.contains(F)>-1){E.state.draggingText(p),setTimeout(function(){return E.display.input.focus()},20);return}try{var Ge=p.dataTransfer.getData("Text");if(Ge){var Je;if(E.state.draggingText&&!E.state.draggingText.copy&&(Je=E.listSelections()),Ma(E.doc,$h(F,F)),Je)for(var Ct=0;Ct<Je.length;++Ct)Af(E.doc,"",Je[Ct].anchor,Je[Ct].head,"drag");E.replaceSelection(Ge,"around","paste"),E.display.input.focus()}}catch{}}}}function XS(p,E){if(l&&(!p.state.draggingText||+new Date-gw<100)){ln(E);return}if(!(He(p,E)||mc(p.display,E))&&(E.dataTransfer.setData("Text",p.getSelection()),E.dataTransfer.effectAllowed="copyMove",E.dataTransfer.setDragImage&&!b)){var F=P("img",null,null,"position: fixed; left: 0; top: 0;");F.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",g&&(F.width=F.height=1,p.display.wrapper.appendChild(F),F._top=F.offsetTop),E.dataTransfer.setDragImage(F,0,0),g&&F.parentNode.removeChild(F)}}function Hr(p,E){var F=yc(p,E);if(F){var B=document.createDocumentFragment();iw(p,F,B),p.display.dragCursor||(p.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),p.display.lineSpace.insertBefore(p.display.dragCursor,p.display.cursorDiv)),x(p.display.dragCursor,B)}}function IP(p){p.display.dragCursor&&(p.display.lineSpace.removeChild(p.display.dragCursor),p.display.dragCursor=null)}function kP(p){if(document.getElementsByClassName){for(var E=document.getElementsByClassName("CodeMirror"),F=[],B=0;B<E.length;B++){var z=E[B].CodeMirror;z&&F.push(z)}F.length&&F[0].operation(function(){for(var re=0;re<F.length;re++)p(F[re])})}}var am=!1;function EP(){am||(U9(),am=!0)}function U9(){var p;Pe(window,"resize",function(){p==null&&(p=setTimeout(function(){p=null,kP(X9)},100))}),Pe(window,"blur",function(){return kP(Qg)})}function X9(p){var E=p.display;E.cachedCharWidth=E.cachedTextHeight=E.cachedPaddingH=null,E.scrollbarsClipped=!1,p.setSize()}for(var ba={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"},ry=0;ry<10;ry++)ba[ry+48]=ba[ry+96]=String(ry);for(var Ef=65;Ef<=90;Ef++)ba[Ef]=String.fromCharCode(Ef);for(var _f=1;_f<=12;_f++)ba[_f+111]=ba[_f+63235]="F"+_f;var Cc={};Cc.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"},Cc.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"},Cc.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"},Cc.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"]},Cc.default=S?Cc.macDefault:Cc.pcDefault;function _P(p){var E=p.split(/-(?!$)/);p=E[E.length-1];for(var F,B,z,re,he=0;he<E.length-1;he++){var ye=E[he];if(/^(cmd|meta|m)$/i.test(ye))re=!0;else if(/^a(lt)?$/i.test(ye))F=!0;else if(/^(c|ctrl|control)$/i.test(ye))B=!0;else if(/^s(hift)?$/i.test(ye))z=!0;else throw new Error("Unrecognized modifier name: "+ye)}return F&&(p="Alt-"+p),B&&(p="Ctrl-"+p),re&&(p="Cmd-"+p),z&&(p="Shift-"+p),p}function Ol(p){var E={};for(var F in p)if(p.hasOwnProperty(F)){var B=p[F];if(/^(name|fallthrough|(de|at)tach)$/.test(F))continue;if(B=="..."){delete p[F];continue}for(var z=Y(F.split(" "),_P),re=0;re<z.length;re++){var he=void 0,ye=void 0;re==z.length-1?(ye=z.join(" "),he=B):(ye=z.slice(0,re+1).join(" "),he="...");var we=E[ye];if(!we)E[ye]=he;else if(we!=he)throw new Error("Inconsistent bindings for "+ye)}delete p[F]}for(var Se in E)p[Se]=E[Se];return p}function xl(p,E,F,B){E=oy(E);var z=E.call?E.call(p,B):E[p];if(z===!1)return"nothing";if(z==="...")return"multi";if(z!=null&&F(z))return"handled";if(E.fallthrough){if(Object.prototype.toString.call(E.fallthrough)!="[object Array]")return xl(p,E.fallthrough,F,B);for(var re=0;re<E.fallthrough.length;re++){var he=xl(p,E.fallthrough[re],F,B);if(he)return he}}}function mw(p){var E=typeof p=="string"?p:ba[p.keyCode];return E=="Ctrl"||E=="Alt"||E=="Shift"||E=="Mod"}function YS(p,E,F){var B=p;return E.altKey&&B!="Alt"&&(p="Alt-"+p),(_?E.metaKey:E.ctrlKey)&&B!="Ctrl"&&(p="Ctrl-"+p),(_?E.ctrlKey:E.metaKey)&&B!="Mod"&&(p="Cmd-"+p),!F&&E.shiftKey&&B!="Shift"&&(p="Shift-"+p),p}function iy(p,E){if(g&&p.keyCode==34&&p.char)return!1;var F=ba[p.keyCode];return F==null||p.altGraphKey?!1:(p.keyCode==3&&p.code&&(F=p.code),YS(F,p,E))}function oy(p){return typeof p=="string"?Cc[p]:p}function Nh(p,E){for(var F=p.doc.sel.ranges,B=[],z=0;z<F.length;z++){for(var re=E(F[z]);B.length&&Zt(re.from,Z(B).to)<=0;){var he=B.pop();if(Zt(he.from,re.from)<0){re.from=he.from;break}}B.push(re)}qa(p,function(){for(var ye=B.length-1;ye>=0;ye--)Af(p.doc,"",B[ye].from,B[ye].to,"+delete");po(p)})}function vw(p,E,F){var B=Le(p.text,E+F,F);return B<0||B>p.text.length?null:B}function ay(p,E,F){var B=vw(p,E.ch,F);return B==null?null:new yt(E.line,B,F<0?"after":"before")}function sy(p,E,F,B,z){if(p){E.doc.direction=="rtl"&&(z=-z);var re=At(F,E.doc.direction);if(re){var he=z<0?Z(re):re[0],ye=z<0==(he.level==1),we=ye?"after":"before",Se;if(he.level>0||E.doc.direction=="rtl"){var Ge=bl(E,F);Se=z<0?F.text.length-1:0;var Je=wl(E,Ge,Se).top;Se=Me(function(Ct){return wl(E,Ge,Ct).top==Je},z<0==(he.level==1)?he.from:he.to-1,Se),we=="before"&&(Se=vw(F,Se,1))}else Se=z<0?he.to:he.from;return new yt(B,Se,we)}}return new yt(B,z<0?F.text.length:0,z<0?"before":"after")}function Vh(p,E,F,B){var z=At(E,p.doc.direction);if(!z)return ay(E,F,B);F.ch>=E.text.length?(F.ch=E.text.length,F.sticky="before"):F.ch<=0&&(F.ch=0,F.sticky="after");var re=Te(z,F.ch,F.sticky),he=z[re];if(p.doc.direction=="ltr"&&he.level%2==0&&(B>0?he.to>F.ch:he.from<F.ch))return ay(E,F,B);var ye=function(fn,On){return vw(E,fn instanceof yt?fn.ch:fn,On)},we,Se=function(fn){return p.options.lineWrapping?(we=we||bl(p,E),Li(p,E,we,fn)):{begin:0,end:E.text.length}},Ge=Se(F.sticky=="before"?ye(F,-1):F.ch);if(p.doc.direction=="rtl"||he.level==1){var Je=he.level==1==B<0,Ct=ye(F,Je?1:-1);if(Ct!=null&&(Je?Ct<=he.to&&Ct<=Ge.end:Ct>=he.from&&Ct>=Ge.begin)){var vt=Je?"before":"after";return new yt(F.line,Ct,vt)}}var Nt=function(fn,On,pn){for(var Dn=function(Di,Fo){return Fo?new yt(F.line,ye(Di,1),"before"):new yt(F.line,Di,"after")};fn>=0&&fn<z.length;fn+=On){var Gn=z[fn],Wn=On>0==(Gn.level!=1),Rr=Wn?pn.begin:ye(pn.end,-1);if(Gn.from<=Rr&&Rr<Gn.to||(Rr=Wn?Gn.from:ye(Gn.to,-1),pn.begin<=Rr&&Rr<pn.end))return Dn(Rr,Wn)}},Gt=Nt(re+B,B,Ge);if(Gt)return Gt;var sn=B>0?Ge.end:ye(Ge.begin,-1);return sn!=null&&!(B>0&&sn==E.text.length)&&(Gt=Nt(B>0?0:z.length-1,B,Se(sn)),Gt)?Gt:null}var ly={selectAll:tm,singleSelection:function(p){return p.setSelection(p.getCursor("anchor"),p.getCursor("head"),ae)},killLine:function(p){return Nh(p,function(E){if(E.empty()){var F=dn(p.doc,E.head.line).text.length;return E.head.ch==F&&E.head.line<p.lastLine()?{from:E.head,to:yt(E.head.line+1,0)}:{from:E.head,to:yt(E.head.line,F)}}else return{from:E.from(),to:E.to()}})},deleteLine:function(p){return Nh(p,function(E){return{from:yt(E.from().line,0),to:Xn(p.doc,yt(E.to().line+1,0))}})},delLineLeft:function(p){return Nh(p,function(E){return{from:yt(E.from().line,0),to:E.from()}})},delWrappedLineLeft:function(p){return Nh(p,function(E){var F=p.charCoords(E.head,"div").top+5,B=p.coordsChar({left:0,top:F},"div");return{from:B,to:E.from()}})},delWrappedLineRight:function(p){return Nh(p,function(E){var F=p.charCoords(E.head,"div").top+5,B=p.coordsChar({left:p.display.lineDiv.offsetWidth+100,top:F},"div");return{from:E.from(),to:B}})},undo:function(p){return p.undo()},redo:function(p){return p.redo()},undoSelection:function(p){return p.undoSelection()},redoSelection:function(p){return p.redoSelection()},goDocStart:function(p){return p.extendSelection(yt(p.firstLine(),0))},goDocEnd:function(p){return p.extendSelection(yt(p.lastLine()))},goLineStart:function(p){return p.extendSelectionsBy(function(E){return Rd(p,E.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(p){return p.extendSelectionsBy(function(E){return KS(p,E.head)},{origin:"+move",bias:1})},goLineEnd:function(p){return p.extendSelectionsBy(function(E){return TP(p,E.head.line)},{origin:"+move",bias:-1})},goLineRight:function(p){return p.extendSelectionsBy(function(E){var F=p.cursorCoords(E.head,"div").top+5;return p.coordsChar({left:p.display.lineDiv.offsetWidth+100,top:F},"div")},ie)},goLineLeft:function(p){return p.extendSelectionsBy(function(E){var F=p.cursorCoords(E.head,"div").top+5;return p.coordsChar({left:0,top:F},"div")},ie)},goLineLeftSmart:function(p){return p.extendSelectionsBy(function(E){var F=p.cursorCoords(E.head,"div").top+5,B=p.coordsChar({left:0,top:F},"div");return B.ch<p.getLine(B.line).search(/\S/)?KS(p,E.head):B},ie)},goLineUp:function(p){return p.moveV(-1,"line")},goLineDown:function(p){return p.moveV(1,"line")},goPageUp:function(p){return p.moveV(-1,"page")},goPageDown:function(p){return p.moveV(1,"page")},goCharLeft:function(p){return p.moveH(-1,"char")},goCharRight:function(p){return p.moveH(1,"char")},goColumnLeft:function(p){return p.moveH(-1,"column")},goColumnRight:function(p){return p.moveH(1,"column")},goWordLeft:function(p){return p.moveH(-1,"word")},goGroupRight:function(p){return p.moveH(1,"group")},goGroupLeft:function(p){return p.moveH(-1,"group")},goWordRight:function(p){return p.moveH(1,"word")},delCharBefore:function(p){return p.deleteH(-1,"codepoint")},delCharAfter:function(p){return p.deleteH(1,"char")},delWordBefore:function(p){return p.deleteH(-1,"word")},delWordAfter:function(p){return p.deleteH(1,"word")},delGroupBefore:function(p){return p.deleteH(-1,"group")},delGroupAfter:function(p){return p.deleteH(1,"group")},indentAuto:function(p){return p.indentSelection("smart")},indentMore:function(p){return p.indentSelection("add")},indentLess:function(p){return p.indentSelection("subtract")},insertTab:function(p){return p.replaceSelection(" ")},insertSoftTab:function(p){for(var E=[],F=p.listSelections(),B=p.options.tabSize,z=0;z<F.length;z++){var re=F[z].from(),he=ne(p.getLine(re.line),re.ch,B);E.push(X(B-he%B))}p.replaceSelections(E)},defaultTab:function(p){p.somethingSelected()?p.indentSelection("add"):p.execCommand("insertTab")},transposeChars:function(p){return qa(p,function(){for(var E=p.listSelections(),F=[],B=0;B<E.length;B++)if(E[B].empty()){var z=E[B].head,re=dn(p.doc,z.line).text;if(re){if(z.ch==re.length&&(z=new yt(z.line,z.ch-1)),z.ch>0)z=new yt(z.line,z.ch+1),p.replaceRange(re.charAt(z.ch-1)+re.charAt(z.ch-2),yt(z.line,z.ch-2),z,"+transpose");else if(z.line>p.doc.first){var he=dn(p.doc,z.line-1).text;he&&(z=new yt(z.line,1),p.replaceRange(re.charAt(0)+p.doc.lineSeparator()+he.charAt(he.length-1),yt(z.line-1,he.length-1),z,"+transpose"))}}F.push(new yi(z,z))}p.setSelections(F)})},newlineAndIndent:function(p){return qa(p,function(){for(var E=p.listSelections(),F=E.length-1;F>=0;F--)p.replaceRange(p.doc.lineSeparator(),E[F].anchor,E[F].head,"+input");E=p.listSelections();for(var B=0;B<E.length;B++)p.indentLine(E[B].from().line,null,!0);po(p)})},openLine:function(p){return p.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(p){return p.toggleOverwrite()}};function Rd(p,E){var F=dn(p.doc,E),B=Hi(F);return B!=F&&(E=Ie(B)),sy(!0,p,B,E,1)}function TP(p,E){var F=dn(p.doc,E),B=fS(F);return B!=F&&(E=Ie(B)),sy(!0,p,F,E,-1)}function KS(p,E){var F=Rd(p,E.line),B=dn(p.doc,F.line),z=At(B,p.doc.direction);if(!z||z[0].level==0){var re=Math.max(F.ch,B.text.search(/\S/)),he=E.line==F.line&&E.ch<=re&&E.ch;return yt(F.line,he?0:re,F.sticky)}return F}function sm(p,E,F){if(typeof E=="string"&&(E=ly[E],!E))return!1;p.display.input.ensurePolled();var B=p.display.shift,z=!1;try{p.isReadOnly()&&(p.state.suppressEdits=!0),F&&(p.display.shift=!1),z=E(p)!=de}finally{p.display.shift=B,p.state.suppressEdits=!1}return z}function Y9(p,E,F){for(var B=0;B<p.state.keyMaps.length;B++){var z=xl(E,p.state.keyMaps[B],F,p);if(z)return z}return p.options.extraKeys&&xl(E,p.options.extraKeys,F,p)||xl(E,p.options.keyMap,F,p)}var K9=new le;function uy(p,E,F,B){var z=p.state.keySeq;if(z){if(mw(E))return"handled";if(/\'$/.test(E)?p.state.keySeq=null:K9.set(50,function(){p.state.keySeq==z&&(p.state.keySeq=null,p.display.input.reset())}),qS(p,z+" "+E,F,B))return!0}return qS(p,E,F,B)}function qS(p,E,F,B){var z=Y9(p,E,B);return z=="multi"&&(p.state.keySeq=E),z=="handled"&&ho(p,"keyHandled",p,E,F),(z=="handled"||z=="multi")&&(ct(F),vf(p)),!!z}function JS(p,E){var F=iy(E,!0);return F?E.shiftKey&&!p.state.keySeq?uy(p,"Shift-"+F,E,function(B){return sm(p,B,!0)})||uy(p,F,E,function(B){if(typeof B=="string"?/^go[A-Z]/.test(B):B.motion)return sm(p,B)}):uy(p,F,E,function(B){return sm(p,B)}):!1}function q9(p,E,F){return uy(p,"'"+F+"'",E,function(B){return sm(p,B,!0)})}var yw=null;function eA(p){var E=this;if(!(p.target&&p.target!=E.display.input.getField())&&(E.curOp.focus=H(ue(E)),!He(E,p))){l&&u<11&&p.keyCode==27&&(p.returnValue=!1);var F=p.keyCode;E.display.shift=F==16||p.shiftKey;var B=JS(E,p);g&&(yw=B?F:null,!B&&F==88&&!Mn&&(S?p.metaKey:p.ctrlKey)&&E.replaceSelection("",null,"cut")),i&&!S&&!B&&F==46&&p.shiftKey&&!p.ctrlKey&&document.execCommand&&document.execCommand("cut"),F==18&&!/\bCodeMirror-crosshair\b/.test(E.display.lineDiv.className)&&Zs(E)}}function Zs(p){var E=p.display.lineDiv;Q(E,"CodeMirror-crosshair");function F(B){(B.keyCode==18||!B.altKey)&&(D(E,"CodeMirror-crosshair"),dt(document,"keyup",F),dt(document,"mouseover",F))}Pe(document,"keyup",F),Pe(document,"mouseover",F)}function Pu(p){p.keyCode==16&&(this.doc.sel.shift=!1),He(this,p)}function PP(p){var E=this;if(!(p.target&&p.target!=E.display.input.getField())&&!(mc(E.display,p)||He(E,p)||p.ctrlKey&&!p.altKey||S&&p.metaKey)){var F=p.keyCode,B=p.charCode;if(g&&F==yw){yw=null,ct(p);return}if(!(g&&(!p.which||p.which<10)&&JS(E,p))){var z=String.fromCharCode(B??F);z!="\b"&&(q9(E,p,z)||E.display.input.onKeyPress(p))}}}var J9=400,lm=function(p,E,F){this.time=p,this.pos=E,this.button=F};lm.prototype.compare=function(p,E,F){return this.time+J9>p&&Zt(E,this.pos)==0&&F==this.button};var Oc,um;function DP(p,E){var F=+new Date;return um&&um.compare(F,p,E)?(Oc=um=null,"triple"):Oc&&Oc.compare(F,p,E)?(um=new lm(F,p,E),Oc=null,"double"):(Oc=new lm(F,p,E),um=null,"single")}function RP(p){var E=this,F=E.display;if(!(He(E,p)||F.activeTouch&&F.input.supportsTouch())){if(F.input.ensurePolled(),F.shift=p.shiftKey,mc(F,p)){c||(F.scroller.draggable=!1,setTimeout(function(){return F.scroller.draggable=!0},100));return}if(!dm(E,p)){var B=yc(E,p),z=hr(p),re=B?DP(B,z):"single";N(E).focus(),z==1&&E.state.selectingText&&E.state.selectingText(p),!(B&&$P(E,z,B,re,p))&&(z==1?B?cy(E,B,re,p):kn(p)==F.scroller&&ct(p):z==2?(B&&qg(E.doc,B),setTimeout(function(){return F.input.focus()},20)):z==3&&(A?E.display.input.onContextMenu(p):Gg(E)))}}}function $P(p,E,F,B,z){var re="Click";return B=="double"?re="Double"+re:B=="triple"&&(re="Triple"+re),re=(E==1?"Left":E==2?"Middle":"Right")+re,uy(p,YS(re,z),z,function(he){if(typeof he=="string"&&(he=ly[he]),!he)return!1;var ye=!1;try{p.isReadOnly()&&(p.state.suppressEdits=!0),ye=he(p,F)!=de}finally{p.state.suppressEdits=!1}return ye})}function cm(p,E,F){var B=p.getOption("configureMouse"),z=B?B(p,E,F):{};if(z.unit==null){var re=I?F.shiftKey&&F.metaKey:F.altKey;z.unit=re?"rectangle":E=="single"?"char":E=="double"?"word":"line"}return(z.extend==null||p.doc.extend)&&(z.extend=p.doc.extend||F.shiftKey),z.addNew==null&&(z.addNew=S?F.metaKey:F.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(S?F.altKey:F.ctrlKey)),z}function cy(p,E,F,B){l?setTimeout(q(Dh,p),0):p.curOp.focus=H(ue(p));var z=cm(p,F,B),re=p.doc.sel,he;p.options.dragDrop&&pr&&!p.isReadOnly()&&F=="single"&&(he=re.contains(E))>-1&&(Zt((he=re.ranges[he]).from(),E)<0||E.xRel>0)&&(Zt(he.to(),E)>0||E.xRel<0)?eF(p,B,E,z):MP(p,B,E,z)}function eF(p,E,F,B){var z=p.display,re=!1,he=Ei(p,function(Se){c&&(z.scroller.draggable=!1),p.state.draggingText=!1,p.state.delayingBlurEvent&&(p.hasFocus()?p.state.delayingBlurEvent=!1:Gg(p)),dt(z.wrapper.ownerDocument,"mouseup",he),dt(z.wrapper.ownerDocument,"mousemove",ye),dt(z.scroller,"dragstart",we),dt(z.scroller,"drop",he),re||(ct(Se),B.addNew||qg(p.doc,F,null,null,B.extend),c&&!b||l&&u==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),ye=function(Se){re=re||Math.abs(E.clientX-Se.clientX)+Math.abs(E.clientY-Se.clientY)>=10},we=function(){return re=!0};c&&(z.scroller.draggable=!0),p.state.draggingText=he,he.copy=!B.moveOnDrag,Pe(z.wrapper.ownerDocument,"mouseup",he),Pe(z.wrapper.ownerDocument,"mousemove",ye),Pe(z.scroller,"dragstart",we),Pe(z.scroller,"drop",he),p.state.delayingBlurEvent=!0,setTimeout(function(){return z.input.focus()},20),z.scroller.dragDrop&&z.scroller.dragDrop()}function tA(p,E,F){if(F=="char")return new yi(E,E);if(F=="word")return p.findWordAt(E);if(F=="line")return new yi(yt(E.line,0),Xn(p.doc,yt(E.line+1,0)));var B=F(p,E);return new yi(B.from,B.to)}function MP(p,E,F,B){l&&Gg(p);var z=p.display,re=p.doc;ct(E);var he,ye,we=re.sel,Se=we.ranges;if(B.addNew&&!B.extend?(ye=re.sel.contains(F),ye>-1?he=Se[ye]:he=new yi(F,F)):(he=re.sel.primary(),ye=re.sel.primIndex),B.unit=="rectangle")B.addNew||(he=new yi(F,F)),F=yc(p,E,!0,!0),ye=-1;else{var Ge=tA(p,F,B.unit);B.extend?he=ya(he,Ge.anchor,Ge.head,B.extend):he=Ge}B.addNew?ye==-1?(ye=Se.length,$a(re,Eu(p,Se.concat([he]),ye),{scroll:!1,origin:"*mouse"})):Se.length>1&&Se[ye].empty()&&B.unit=="char"&&!B.extend?($a(re,Eu(p,Se.slice(0,ye).concat(Se.slice(ye+1)),0),{scroll:!1,origin:"*mouse"}),we=re.sel):zl(re,ye,he,be):(ye=0,$a(re,new xo([he],0),be),we=re.sel);var Je=F;function Ct(pn){if(Zt(Je,pn)!=0)if(Je=pn,B.unit=="rectangle"){for(var Dn=[],Gn=p.options.tabSize,Wn=ne(dn(re,F.line).text,F.ch,Gn),Rr=ne(dn(re,pn.line).text,pn.ch,Gn),Di=Math.min(Wn,Rr),Fo=Math.max(Wn,Rr),to=Math.min(F.line,pn.line),So=Math.min(p.lastLine(),Math.max(F.line,pn.line));to<=So;to++){var Ko=dn(re,to).text,qo=ce(Ko,Di,Gn);Di==Fo?Dn.push(new yi(yt(to,qo),yt(to,qo))):Ko.length>qo&&Dn.push(new yi(yt(to,qo),yt(to,ce(Ko,Fo,Gn))))}Dn.length||Dn.push(new yi(F,F)),$a(re,Eu(p,we.ranges.slice(0,ye).concat(Dn),ye),{origin:"*mouse",scroll:!1}),p.scrollIntoView(pn)}else{var ds=he,La=tA(p,pn,B.unit),la=ds.anchor,Jo;Zt(La.anchor,la)>0?(Jo=La.head,la=ki(ds.from(),La.anchor)):(Jo=La.anchor,la=ii(ds.to(),La.head));var Ao=we.ranges.slice(0);Ao[ye]=bw(p,new yi(Xn(re,la),Jo)),$a(re,Eu(p,Ao,ye),be)}}var vt=z.wrapper.getBoundingClientRect(),Nt=0;function Gt(pn){var Dn=++Nt,Gn=yc(p,pn,!0,B.unit=="rectangle");if(Gn)if(Zt(Gn,Je)!=0){p.curOp.focus=H(ue(p)),Ct(Gn);var Wn=yf(z,re);(Gn.line>=Wn.to||Gn.line<Wn.from)&&setTimeout(Ei(p,function(){Nt==Dn&&Gt(pn)}),150)}else{var Rr=pn.clientY<vt.top?-20:pn.clientY>vt.bottom?20:0;Rr&&setTimeout(Ei(p,function(){Nt==Dn&&(z.scroller.scrollTop+=Rr,Gt(pn))}),50)}}function sn(pn){p.state.selectingText=!1,Nt=1/0,pn&&(ct(pn),z.input.focus()),dt(z.wrapper.ownerDocument,"mousemove",fn),dt(z.wrapper.ownerDocument,"mouseup",On),re.history.lastSelOrigin=null}var fn=Ei(p,function(pn){pn.buttons===0||!hr(pn)?sn(pn):Gt(pn)}),On=Ei(p,sn);p.state.selectingText=On,Pe(z.wrapper.ownerDocument,"mousemove",fn),Pe(z.wrapper.ownerDocument,"mouseup",On)}function bw(p,E){var F=E.anchor,B=E.head,z=dn(p.doc,F.line);if(Zt(F,B)==0&&F.sticky==B.sticky)return E;var re=At(z);if(!re)return E;var he=Te(re,F.ch,F.sticky),ye=re[he];if(ye.from!=F.ch&&ye.to!=F.ch)return E;var we=he+(ye.from==F.ch==(ye.level!=1)?0:1);if(we==0||we==re.length)return E;var Se;if(B.line!=F.line)Se=(B.line-F.line)*(p.doc.direction=="ltr"?1:-1)>0;else{var Ge=Te(re,B.ch,B.sticky),Je=Ge-he||(B.ch-F.ch)*(ye.level==1?-1:1);Ge==we-1||Ge==we?Se=Je<0:Se=Je>0}var Ct=re[we+(Se?-1:0)],vt=Se==(Ct.level==1),Nt=vt?Ct.from:Ct.to,Gt=vt?"after":"before";return F.ch==Nt&&F.sticky==Gt?E:new yi(new yt(F.line,Nt,Gt),B)}function nA(p,E,F,B){var z,re;if(E.touches)z=E.touches[0].clientX,re=E.touches[0].clientY;else try{z=E.clientX,re=E.clientY}catch{return!1}if(z>=Math.floor(p.display.gutters.getBoundingClientRect().right))return!1;B&&ct(E);var he=p.display,ye=he.lineDiv.getBoundingClientRect();if(re>ye.bottom||!Ee(p,F))return Qt(E);re-=ye.top-he.viewOffset;for(var we=0;we<p.display.gutterSpecs.length;++we){var Se=he.gutters.childNodes[we];if(Se&&Se.getBoundingClientRect().right>=z){var Ge=Fe(p.doc,re),Je=p.display.gutterSpecs[we];return Mt(p,F,p,Ge,Je.className,E),Qt(E)}}}function dm(p,E){return nA(p,E,"gutterClick",!0)}function ww(p,E){mc(p.display,E)||Cw(p,E)||He(p,E,"contextmenu")||A||p.display.input.onContextMenu(E)}function Cw(p,E){return Ee(p,"gutterContextMenu")?nA(p,E,"gutterContextMenu",!1):!1}function LP(p){p.display.wrapper.className=p.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+p.options.theme.replace(/(^|\s)\s*/g," cm-s-"),G0(p)}var Tf={toString:function(){return"CodeMirror.Init"}},dy={},hy={};function rA(p){var E=p.optionHandlers;function F(B,z,re,he){p.defaults[B]=z,re&&(E[B]=he?function(ye,we,Se){Se!=Tf&&re(ye,we,Se)}:re)}p.defineOption=F,p.Init=Tf,F("value","",function(B,z){return B.setValue(z)},!0),F("mode",null,function(B,z){B.doc.modeOption=z,NS(B)},!0),F("indentUnit",2,NS,!0),F("indentWithTabs",!1),F("smartIndent",!0),F("tabSize",4,function(B){xf(B),G0(B),Es(B)},!0),F("lineSeparator",null,function(B,z){if(B.doc.lineSep=z,!!z){var re=[],he=B.doc.first;B.doc.iter(function(we){for(var Se=0;;){var Ge=we.text.indexOf(z,Se);if(Ge==-1)break;Se=Ge+z.length,re.push(yt(he,Ge))}he++});for(var ye=re.length-1;ye>=0;ye--)Af(B.doc,z,re[ye],yt(re[ye].line,re[ye].ch+z.length))}}),F("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(B,z,re){B.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),re!=Tf&&B.refresh()}),F("specialCharPlaceholder",Eh,function(B){return B.refresh()},!0),F("electricChars",!0),F("inputStyle",T?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),F("spellcheck",!1,function(B,z){return B.getInputField().spellcheck=z},!0),F("autocorrect",!1,function(B,z){return B.getInputField().autocorrect=z},!0),F("autocapitalize",!1,function(B,z){return B.getInputField().autocapitalize=z},!0),F("rtlMoveVisually",!O),F("wholeLineUpdateBefore",!0),F("theme","default",function(B){LP(B),J0(B)},!0),F("keyMap","default",function(B,z,re){var he=oy(z),ye=re!=Tf&&oy(re);ye&&ye.detach&&ye.detach(B,he),he.attach&&he.attach(B,ye||null)}),F("extraKeys",null),F("configureMouse",null),F("lineWrapping",!1,BP,!0),F("gutters",[],function(B,z){B.display.gutterSpecs=ku(z,B.options.lineNumbers),J0(B)},!0),F("fixedGutter",!0,function(B,z){B.display.gutters.style.left=z?Oi(B.display)+"px":"0",B.refresh()},!0),F("coverGutterNextToScrollbar",!1,function(B){return bc(B)},!0),F("scrollbarStyle","native",function(B){rP(B),bc(B),B.display.scrollbars.setScrollTop(B.doc.scrollTop),B.display.scrollbars.setScrollLeft(B.doc.scrollLeft)},!0),F("lineNumbers",!1,function(B,z){B.display.gutterSpecs=ku(B.options.gutters,z),J0(B)},!0),F("firstLineNumber",1,J0,!0),F("lineNumberFormatter",function(B){return B},J0,!0),F("showCursorWhenSelecting",!1,Ph,!0),F("resetSelectionOnContextMenu",!0),F("lineWiseCopyCut",!0),F("pasteLinesPerSelection",!0),F("selectionsMayTouch",!1),F("readOnly",!1,function(B,z){z=="nocursor"&&(Qg(B),B.display.input.blur()),B.display.input.readOnlyChanged(z)}),F("screenReaderLabel",null,function(B,z){z=z===""?null:z,B.display.input.screenReaderLabelChanged(z)}),F("disableInput",!1,function(B,z){z||B.display.input.reset()},!0),F("dragDrop",!0,tF),F("allowDropFileTypes",null),F("cursorBlinkRate",530),F("cursorScrollMargin",0),F("cursorHeight",1,Ph,!0),F("singleCursorHeightPerLine",!0,Ph,!0),F("workTime",100),F("workDelay",100),F("flattenSpans",!0,xf,!0),F("addModeClass",!1,xf,!0),F("pollInterval",100),F("undoDepth",200,function(B,z){return B.doc.history.undoDepth=z}),F("historyEventDelay",1250),F("viewportMargin",10,function(B){return B.refresh()},!0),F("maxHighlightLength",1e4,xf,!0),F("moveInputWithCursor",!0,function(B,z){z||B.display.input.resetPosition()}),F("tabindex",null,function(B,z){return B.display.input.getField().tabIndex=z||""}),F("autofocus",null),F("direction","ltr",function(B,z){return B.doc.setDirection(z)},!0),F("phrases",null)}function tF(p,E,F){var B=F&&F!=Tf;if(!E!=!B){var z=p.display.dragFunctions,re=E?Pe:dt;re(p.display.scroller,"dragstart",z.start),re(p.display.scroller,"dragenter",z.enter),re(p.display.scroller,"dragover",z.over),re(p.display.scroller,"dragleave",z.leave),re(p.display.scroller,"drop",z.drop)}}function BP(p){p.options.lineWrapping?(Q(p.display.wrapper,"CodeMirror-wrap"),p.display.sizer.style.minWidth="",p.display.sizerWidth=null):(D(p.display.wrapper,"CodeMirror-wrap"),X1(p)),nw(p),Es(p),G0(p),setTimeout(function(){return bc(p)},100)}function hi(p,E){var F=this;if(!(this instanceof hi))return new hi(p,E);this.options=E=E?G(E):{},G(dy,E,!1);var B=E.value;typeof B=="string"?B=new cs(B,E.mode,null,E.lineSeparator,E.direction):E.mode&&(B.modeOption=E.mode),this.doc=B;var z=new hi.inputStyles[E.inputStyle](this),re=this.display=new j9(p,B,z,E);re.wrapper.CodeMirror=this,LP(this),E.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),rP(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 le,keySeq:null,specialChars:null},E.autofocus&&!T&&re.input.focus(),l&&u<11&&setTimeout(function(){return F.display.input.reset(!0)},20),FP(this),EP(),Cf(this),this.curOp.forceUpdate=!0,VS(this,B),E.autofocus&&!T||this.hasFocus()?setTimeout(function(){F.hasFocus()&&!F.state.focused&&TS(F)},20):Qg(this);for(var he in hy)hy.hasOwnProperty(he)&&hy[he](this,E[he],Tf);sP(this),E.finishInit&&E.finishInit(this);for(var ye=0;ye<Ow.length;++ye)Ow[ye](this);Of(this),c&&E.lineWrapping&&getComputedStyle(re.lineDiv).textRendering=="optimizelegibility"&&(re.lineDiv.style.textRendering="auto")}hi.defaults=dy,hi.optionHandlers=hy;function FP(p){var E=p.display;Pe(E.scroller,"mousedown",Ei(p,RP)),l&&u<11?Pe(E.scroller,"dblclick",Ei(p,function(we){if(!He(p,we)){var Se=yc(p,we);if(!(!Se||dm(p,we)||mc(p.display,we))){ct(we);var Ge=p.findWordAt(Se);qg(p.doc,Ge.anchor,Ge.head)}}})):Pe(E.scroller,"dblclick",function(we){return He(p,we)||ct(we)}),Pe(E.scroller,"contextmenu",function(we){return ww(p,we)}),Pe(E.input.getField(),"contextmenu",function(we){E.scroller.contains(we.target)||ww(p,we)});var F,B={end:0};function z(){E.activeTouch&&(F=setTimeout(function(){return E.activeTouch=null},1e3),B=E.activeTouch,B.end=+new Date)}function re(we){if(we.touches.length!=1)return!1;var Se=we.touches[0];return Se.radiusX<=1&&Se.radiusY<=1}function he(we,Se){if(Se.left==null)return!0;var Ge=Se.left-we.left,Je=Se.top-we.top;return Ge*Ge+Je*Je>20*20}Pe(E.scroller,"touchstart",function(we){if(!He(p,we)&&!re(we)&&!dm(p,we)){E.input.ensurePolled(),clearTimeout(F);var Se=+new Date;E.activeTouch={start:Se,moved:!1,prev:Se-B.end<=300?B:null},we.touches.length==1&&(E.activeTouch.left=we.touches[0].pageX,E.activeTouch.top=we.touches[0].pageY)}}),Pe(E.scroller,"touchmove",function(){E.activeTouch&&(E.activeTouch.moved=!0)}),Pe(E.scroller,"touchend",function(we){var Se=E.activeTouch;if(Se&&!mc(E,we)&&Se.left!=null&&!Se.moved&&new Date-Se.start<300){var Ge=p.coordsChar(E.activeTouch,"page"),Je;!Se.prev||he(Se,Se.prev)?Je=new yi(Ge,Ge):!Se.prev.prev||he(Se,Se.prev.prev)?Je=p.findWordAt(Ge):Je=new yi(yt(Ge.line,0),Xn(p.doc,yt(Ge.line+1,0))),p.setSelection(Je.anchor,Je.head),p.focus(),ct(we)}z()}),Pe(E.scroller,"touchcancel",z),Pe(E.scroller,"scroll",function(){E.scroller.clientHeight&&(X0(p,E.scroller.scrollTop),Au(p,E.scroller.scrollLeft,!0),Mt(p,"scroll",p))}),Pe(E.scroller,"mousewheel",function(we){return uP(p,we)}),Pe(E.scroller,"DOMMouseScroll",function(we){return uP(p,we)}),Pe(E.wrapper,"scroll",function(){return E.wrapper.scrollTop=E.wrapper.scrollLeft=0}),E.dragFunctions={enter:function(we){He(p,we)||ln(we)},over:function(we){He(p,we)||(Hr(p,we),ln(we))},start:function(we){return XS(p,we)},drop:Ei(p,Q9),leave:function(we){He(p,we)||IP(p)}};var ye=E.input.getField();Pe(ye,"keyup",function(we){return Pu.call(p,we)}),Pe(ye,"keydown",Ei(p,eA)),Pe(ye,"keypress",Ei(p,PP)),Pe(ye,"focus",function(we){return TS(p,we)}),Pe(ye,"blur",function(we){return Qg(p,we)})}var Ow=[];hi.defineInitHook=function(p){return Ow.push(p)};function py(p,E,F,B){var z=p.doc,re;F==null&&(F="add"),F=="smart"&&(z.mode.indent?re=wu(p,E).state:F="prev");var he=p.options.tabSize,ye=dn(z,E),we=ne(ye.text,null,he);ye.stateAfter&&(ye.stateAfter=null);var Se=ye.text.match(/^\s*/)[0],Ge;if(!B&&!/\S/.test(ye.text))Ge=0,F="not";else if(F=="smart"&&(Ge=z.mode.indent(re,ye.text.slice(Se.length),ye.text),Ge==de||Ge>150)){if(!B)return;F="prev"}F=="prev"?E>z.first?Ge=ne(dn(z,E-1).text,null,he):Ge=0:F=="add"?Ge=we+p.options.indentUnit:F=="subtract"?Ge=we-p.options.indentUnit:typeof F=="number"&&(Ge=we+F),Ge=Math.max(0,Ge);var Je="",Ct=0;if(p.options.indentWithTabs)for(var vt=Math.floor(Ge/he);vt;--vt)Ct+=he,Je+=" ";if(Ct<Ge&&(Je+=X(Ge-Ct)),Je!=Se)return Af(z,Je,yt(E,0),yt(E,Se.length),"+input"),ye.stateAfter=null,!0;for(var Nt=0;Nt<z.sel.ranges.length;Nt++){var Gt=z.sel.ranges[Nt];if(Gt.head.line==E&&Gt.head.ch<Se.length){var sn=yt(E,Se.length);zl(z,Nt,new yi(sn,sn));break}}}var Zl=null;function xw(p){Zl=p}function iA(p,E,F,B,z){var re=p.doc;p.display.shift=!1,B||(B=re.sel);var he=+new Date-200,ye=z=="paste"||p.state.pasteIncoming>he,we=$t(E),Se=null;if(ye&&B.ranges.length>1)if(Zl&&Zl.text.join(`
|
|
`)==E){if(B.ranges.length%Zl.text.length==0){Se=[];for(var Ge=0;Ge<Zl.text.length;Ge++)Se.push(re.splitLines(Zl.text[Ge]))}}else we.length==B.ranges.length&&p.options.pasteLinesPerSelection&&(Se=Y(we,function(fn){return[fn]}));for(var Je=p.curOp.updateInput,Ct=B.ranges.length-1;Ct>=0;Ct--){var vt=B.ranges[Ct],Nt=vt.from(),Gt=vt.to();vt.empty()&&(F&&F>0?Nt=yt(Nt.line,Nt.ch-F):p.state.overwrite&&!ye?Gt=yt(Gt.line,Math.min(dn(re,Gt.line).text.length,Gt.ch+Z(we).length)):ye&&Zl&&Zl.lineWise&&Zl.text.join(`
|
|
`)==we.join(`
|
|
`)&&(Nt=Gt=yt(Nt.line,0)));var sn={from:Nt,to:Gt,text:Se?Se[Ct%Se.length]:we,origin:z||(ye?"paste":p.state.cutIncoming>he?"cut":"+input")};nm(p.doc,sn),ho(p,"inputRead",p,sn)}E&&!ye&&Sw(p,E),po(p),p.curOp.updateInput<2&&(p.curOp.updateInput=Je),p.curOp.typing=!0,p.state.pasteIncoming=p.state.cutIncoming=-1}function xc(p,E){var F=p.clipboardData&&p.clipboardData.getData("Text");if(F)return p.preventDefault(),!E.isReadOnly()&&!E.options.disableInput&&E.hasFocus()&&qa(E,function(){return iA(E,F,0,null,"paste")}),!0}function Sw(p,E){if(!(!p.options.electricChars||!p.options.smartIndent))for(var F=p.doc.sel,B=F.ranges.length-1;B>=0;B--){var z=F.ranges[B];if(!(z.head.ch>100||B&&F.ranges[B-1].head.line==z.head.line)){var re=p.getModeAt(z.head),he=!1;if(re.electricChars){for(var ye=0;ye<re.electricChars.length;ye++)if(E.indexOf(re.electricChars.charAt(ye))>-1){he=py(p,z.head.line,"smart");break}}else re.electricInput&&re.electricInput.test(dn(p.doc,z.head.line).text.slice(0,z.head.ch))&&(he=py(p,z.head.line,"smart"));he&&ho(p,"electricInput",p,z.head.line)}}}function Aw(p){for(var E=[],F=[],B=0;B<p.doc.sel.ranges.length;B++){var z=p.doc.sel.ranges[B].head.line,re={anchor:yt(z,0),head:yt(z+1,0)};F.push(re),E.push(p.getRange(re.anchor,re.head))}return{text:E,ranges:F}}function fy(p,E,F,B){p.setAttribute("autocorrect",F?"on":"off"),p.setAttribute("autocapitalize",B?"on":"off"),p.setAttribute("spellcheck",!!E)}function gy(){var p=P("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),E=P("div",[p],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return c?p.style.width="1000px":p.setAttribute("wrap","off"),w&&(p.style.border="1px solid black"),E}function hm(p){var E=p.optionHandlers,F=p.helpers={};p.prototype={constructor:p,focus:function(){N(this).focus(),this.display.input.focus()},setOption:function(B,z){var re=this.options,he=re[B];re[B]==z&&B!="mode"||(re[B]=z,E.hasOwnProperty(B)&&Ei(this,E[B])(this,z,he),Mt(this,"optionChange",this,B))},getOption:function(B){return this.options[B]},getDoc:function(){return this.doc},addKeyMap:function(B,z){this.state.keyMaps[z?"push":"unshift"](oy(B))},removeKeyMap:function(B){for(var z=this.state.keyMaps,re=0;re<z.length;++re)if(z[re]==B||z[re].name==B)return z.splice(re,1),!0},addOverlay:tr(function(B,z){var re=B.token?B:p.getMode(this.options,B);if(re.startState)throw new Error("Overlays may not be stateful.");se(this.state.overlays,{mode:re,modeSpec:B,opaque:z&&z.opaque,priority:z&&z.priority||0},function(he){return he.priority}),this.state.modeGen++,Es(this)}),removeOverlay:tr(function(B){for(var z=this.state.overlays,re=0;re<z.length;++re){var he=z[re].modeSpec;if(he==B||typeof B=="string"&&he.name==B){z.splice(re,1),this.state.modeGen++,Es(this);return}}}),indentLine:tr(function(B,z,re){typeof z!="string"&&typeof z!="number"&&(z==null?z=this.options.smartIndent?"smart":"prev":z=z?"add":"subtract"),Dt(this.doc,B)&&py(this,B,z,re)}),indentSelection:tr(function(B){for(var z=this.doc.sel.ranges,re=-1,he=0;he<z.length;he++){var ye=z[he];if(ye.empty())ye.head.line>re&&(py(this,ye.head.line,B,!0),re=ye.head.line,he==this.doc.sel.primIndex&&po(this));else{var we=ye.from(),Se=ye.to(),Ge=Math.max(re,we.line);re=Math.min(this.lastLine(),Se.line-(Se.ch?0:1))+1;for(var Je=Ge;Je<re;++Je)py(this,Je,B);var Ct=this.doc.sel.ranges;we.ch==0&&z.length==Ct.length&&Ct[he].from().ch>0&&zl(this.doc,he,new yi(we,Ct[he].to()),ae)}}}),getTokenAt:function(B,z){return kh(this,B,z)},getLineTokens:function(B,z){return kh(this,yt(B),z,!0)},getTokenTypeAt:function(B){B=Xn(this.doc,B);var z=xd(this,dn(this.doc,B.line)),re=0,he=(z.length-1)/2,ye=B.ch,we;if(ye==0)we=z[2];else for(;;){var Se=re+he>>1;if((Se?z[Se*2-1]:0)>=ye)he=Se;else if(z[Se*2+1]<ye)re=Se+1;else{we=z[Se*2+2];break}}var Ge=we?we.indexOf("overlay "):-1;return Ge<0?we:Ge==0?null:we.slice(0,Ge-1)},getModeAt:function(B){var z=this.doc.mode;return z.innerMode?p.innerMode(z,this.getTokenAt(B).state).mode:z},getHelper:function(B,z){return this.getHelpers(B,z)[0]},getHelpers:function(B,z){var re=[];if(!F.hasOwnProperty(z))return re;var he=F[z],ye=this.getModeAt(B);if(typeof ye[z]=="string")he[ye[z]]&&re.push(he[ye[z]]);else if(ye[z])for(var we=0;we<ye[z].length;we++){var Se=he[ye[z][we]];Se&&re.push(Se)}else ye.helperType&&he[ye.helperType]?re.push(he[ye.helperType]):he[ye.name]&&re.push(he[ye.name]);for(var Ge=0;Ge<he._global.length;Ge++){var Je=he._global[Ge];Je.pred(ye,this)&&oe(re,Je.val)==-1&&re.push(Je.val)}return re},getStateAfter:function(B,z){var re=this.doc;return B=ks(re,B??re.first+re.size-1),wu(this,B+1,z).state},cursorCoords:function(B,z){var re,he=this.doc.sel.primary();return B==null?re=he.head:typeof B=="object"?re=Xn(this.doc,B):re=B?he.from():he.to(),Bt(this,re,z||"page")},charCoords:function(B,z){return Wt(this,Xn(this.doc,B),z||"page")},coordsChar:function(B,z){return B=St(this,B,z||"page"),di(this,B.left,B.top)},lineAtHeight:function(B,z){return B=St(this,{top:B,left:0},z||"page").top,Fe(this.doc,B+this.display.viewOffset)},heightAtLine:function(B,z,re){var he=!1,ye;if(typeof B=="number"){var we=this.doc.first+this.doc.size-1;B<this.doc.first?B=this.doc.first:B>we&&(B=we,he=!0),ye=dn(this.doc,B)}else ye=B;return kd(this,ye,{top:0,left:0},z||"page",re||he).top+(he?this.doc.height-gc(ye):0)},defaultTextHeight:function(){return Ou(this.display)},defaultCharWidth:function(){return Ed(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(B,z,re,he,ye){var we=this.display;B=Bt(this,Xn(this.doc,B));var Se=B.bottom,Ge=B.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),we.sizer.appendChild(z),he=="over")Se=B.top;else if(he=="above"||he=="near"){var Je=Math.max(we.wrapper.clientHeight,this.doc.height),Ct=Math.max(we.sizer.clientWidth,we.lineSpace.clientWidth);(he=="above"||B.bottom+z.offsetHeight>Je)&&B.top>z.offsetHeight?Se=B.top-z.offsetHeight:B.bottom+z.offsetHeight<=Je&&(Se=B.bottom),Ge+z.offsetWidth>Ct&&(Ge=Ct-z.offsetWidth)}z.style.top=Se+"px",z.style.left=z.style.right="",ye=="right"?(Ge=we.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(ye=="left"?Ge=0:ye=="middle"&&(Ge=(we.sizer.clientWidth-z.offsetWidth)/2),z.style.left=Ge+"px"),re&&nP(this,{left:Ge,top:Se,right:Ge+z.offsetWidth,bottom:Se+z.offsetHeight})},triggerOnKeyDown:tr(eA),triggerOnKeyPress:tr(PP),triggerOnKeyUp:Pu,triggerOnMouseDown:tr(RP),execCommand:function(B){if(ly.hasOwnProperty(B))return ly[B].call(null,this)},triggerElectric:tr(function(B){Sw(this,B)}),findPosH:function(B,z,re,he){var ye=1;z<0&&(ye=-1,z=-z);for(var we=Xn(this.doc,B),Se=0;Se<z&&(we=qn(this.doc,we,ye,re,he),!we.hitSide);++Se);return we},moveH:tr(function(B,z){var re=this;this.extendSelectionsBy(function(he){return re.display.shift||re.doc.extend||he.empty()?qn(re.doc,he.head,B,z,re.options.rtlMoveVisually):B<0?he.from():he.to()},ie)}),deleteH:tr(function(B,z){var re=this.doc.sel,he=this.doc;re.somethingSelected()?he.replaceSelection("",null,"+delete"):Nh(this,function(ye){var we=qn(he,ye.head,B,z,!1);return B<0?{from:we,to:ye.head}:{from:ye.head,to:we}})}),findPosV:function(B,z,re,he){var ye=1,we=he;z<0&&(ye=-1,z=-z);for(var Se=Xn(this.doc,B),Ge=0;Ge<z;++Ge){var Je=Bt(this,Se,"div");if(we==null?we=Je.left:Je.left=we,Se=my(this,Je,ye,re),Se.hitSide)break}return Se},moveV:tr(function(B,z){var re=this,he=this.doc,ye=[],we=!this.display.shift&&!he.extend&&he.sel.somethingSelected();if(he.extendSelectionsBy(function(Ge){if(we)return B<0?Ge.from():Ge.to();var Je=Bt(re,Ge.head,"div");Ge.goalColumn!=null&&(Je.left=Ge.goalColumn),ye.push(Je.left);var Ct=my(re,Je,B,z);return z=="page"&&Ge==he.sel.primary()&&RS(re,Wt(re,Ct,"div").top-Je.top),Ct},ie),ye.length)for(var Se=0;Se<he.sel.ranges.length;Se++)he.sel.ranges[Se].goalColumn=ye[Se]}),findWordAt:function(B){var z=this.doc,re=dn(z,B.line).text,he=B.ch,ye=B.ch;if(re){var we=this.getHelper(B,"wordChars");(B.sticky=="before"||ye==re.length)&&he?--he:++ye;for(var Se=re.charAt(he),Ge=Ye(Se,we)?function(Je){return Ye(Je,we)}:/\s/.test(Se)?function(Je){return/\s/.test(Je)}:function(Je){return!/\s/.test(Je)&&!Ye(Je)};he>0&&Ge(re.charAt(he-1));)--he;for(;ye<re.length&&Ge(re.charAt(ye));)++ye}return new yi(yt(B.line,he),yt(B.line,ye))},toggleOverwrite:function(B){B!=null&&B==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Q(this.display.cursorDiv,"CodeMirror-overwrite"):D(this.display.cursorDiv,"CodeMirror-overwrite"),Mt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==H(ue(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:tr(function(B,z){sa(this,B,z)}),getScrollInfo:function(){var B=this.display.scroller;return{left:B.scrollLeft,top:B.scrollTop,height:B.scrollHeight-vc(this)-this.display.barHeight,width:B.scrollWidth-vc(this)-this.display.barWidth,clientHeight:AS(this),clientWidth:pf(this)}},scrollIntoView:tr(function(B,z){B==null?(B={from:this.doc.sel.primary().head,to:null},z==null&&(z=this.options.cursorScrollMargin)):typeof B=="number"?B={from:yt(B,0),to:null}:B.from==null&&(B={from:B,to:null}),B.to||(B.to=B.from),B.margin=z||0,B.from.line!=null?R9(this,B):$S(this,B.from,B.to,B.margin)}),setSize:tr(function(B,z){var re=this,he=function(we){return typeof we=="number"||/^\d+$/.test(String(we))?we+"px":we};B!=null&&(this.display.wrapper.style.width=he(B)),z!=null&&(this.display.wrapper.style.height=he(z)),this.options.lineWrapping&&KT(this);var ye=this.display.viewFrom;this.doc.iter(ye,this.display.viewTo,function(we){if(we.widgets){for(var Se=0;Se<we.widgets.length;Se++)if(we.widgets[Se].noHScroll){Th(re,ye,"widget");break}}++ye}),this.curOp.forceUpdate=!0,Mt(this,"refresh",this)}),operation:function(B){return qa(this,B)},startOperation:function(){return Cf(this)},endOperation:function(){return Of(this)},refresh:tr(function(){var B=this.display.cachedTextHeight;Es(this),this.curOp.forceUpdate=!0,G0(this),sa(this,this.doc.scrollLeft,this.doc.scrollTop),LS(this.display),(B==null||Math.abs(B-Ou(this.display))>.5||this.options.lineWrapping)&&nw(this),Mt(this,"refresh",this)}),swapDoc:tr(function(B){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),VS(this,B),G0(this),this.display.input.reset(),sa(this,B.scrollLeft,B.scrollTop),this.curOp.forceScroll=!0,ho(this,"swapDoc",this,z),z}),phrase:function(B){var z=this.options.phrases;return z&&Object.prototype.hasOwnProperty.call(z,B)?z[B]:B},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}},Xe(p),p.registerHelper=function(B,z,re){F.hasOwnProperty(B)||(F[B]=p[B]={_global:[]}),F[B][z]=re},p.registerGlobalHelper=function(B,z,re,he){p.registerHelper(B,z,he),F[B]._global.push({pred:re,val:he})}}function qn(p,E,F,B,z){var re=E,he=F,ye=dn(p,E.line),we=z&&p.direction=="rtl"?-F:F;function Se(){var On=E.line+we;return On<p.first||On>=p.first+p.size?!1:(E=new yt(On,E.ch,E.sticky),ye=dn(p,On))}function Ge(On){var pn;if(B=="codepoint"){var Dn=ye.text.charCodeAt(E.ch+(F>0?0:-1));if(isNaN(Dn))pn=null;else{var Gn=F>0?Dn>=55296&&Dn<56320:Dn>=56320&&Dn<57343;pn=new yt(E.line,Math.max(0,Math.min(ye.text.length,E.ch+F*(Gn?2:1))),-F)}}else z?pn=Vh(p.cm,ye,E,F):pn=ay(ye,E,F);if(pn==null)if(!On&&Se())E=sy(z,p.cm,ye,E.line,we);else return!1;else E=pn;return!0}if(B=="char"||B=="codepoint")Ge();else if(B=="column")Ge(!0);else if(B=="word"||B=="group")for(var Je=null,Ct=B=="group",vt=p.cm&&p.cm.getHelper(E,"wordChars"),Nt=!0;!(F<0&&!Ge(!Nt));Nt=!1){var Gt=ye.text.charAt(E.ch)||`
|
|
`,sn=Ye(Gt,vt)?"w":Ct&&Gt==`
|
|
`?"n":!Ct||/\s/.test(Gt)?null:"p";if(Ct&&!Nt&&!sn&&(sn="s"),Je&&Je!=sn){F<0&&(F=1,Ge(),E.sticky="after");break}if(sn&&(Je=sn),F>0&&!Ge(!Nt))break}var fn=em(p,E,re,he,!0);return An(re,fn)&&(fn.hitSide=!0),fn}function my(p,E,F,B){var z=p.doc,re=E.left,he;if(B=="page"){var ye=Math.min(p.display.wrapper.clientHeight,N(p).innerHeight||z(p).documentElement.clientHeight),we=Math.max(ye-.5*Ou(p.display),3);he=(F>0?E.bottom:E.top)+F*we}else B=="line"&&(he=F>0?E.bottom+3:E.top-3);for(var Se;Se=di(p,re,he),!!Se.outside;){if(F<0?he<=0:he>=z.height){Se.hitSide=!0;break}he+=F*5}return Se}var bi=function(p){this.cm=p,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};bi.prototype.init=function(p){var E=this,F=this,B=F.cm,z=F.div=p.lineDiv;z.contentEditable=!0,fy(z,B.options.spellcheck,B.options.autocorrect,B.options.autocapitalize);function re(ye){for(var we=ye.target;we;we=we.parentNode){if(we==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(we.className))break}return!1}Pe(z,"paste",function(ye){!re(ye)||He(B,ye)||xc(ye,B)||u<=11&&setTimeout(Ei(B,function(){return E.updateFromDOM()}),20)}),Pe(z,"compositionstart",function(ye){E.composing={data:ye.data,done:!1}}),Pe(z,"compositionupdate",function(ye){E.composing||(E.composing={data:ye.data,done:!1})}),Pe(z,"compositionend",function(ye){E.composing&&(ye.data!=E.composing.data&&E.readFromDOMSoon(),E.composing.done=!0)}),Pe(z,"touchstart",function(){return F.forceCompositionEnd()}),Pe(z,"input",function(){E.composing||E.readFromDOMSoon()});function he(ye){if(!(!re(ye)||He(B,ye))){if(B.somethingSelected())xw({lineWise:!1,text:B.getSelections()}),ye.type=="cut"&&B.replaceSelection("",null,"cut");else if(B.options.lineWiseCopyCut){var we=Aw(B);xw({lineWise:!0,text:we.text}),ye.type=="cut"&&B.operation(function(){B.setSelections(we.ranges,0,ae),B.replaceSelection("",null,"cut")})}else return;if(ye.clipboardData){ye.clipboardData.clearData();var Se=Zl.text.join(`
|
|
`);if(ye.clipboardData.setData("Text",Se),ye.clipboardData.getData("Text")==Se){ye.preventDefault();return}}var Ge=gy(),Je=Ge.firstChild;fy(Je),B.display.lineSpace.insertBefore(Ge,B.display.lineSpace.firstChild),Je.value=Zl.text.join(`
|
|
`);var Ct=H(ee(z));K(Je),setTimeout(function(){B.display.lineSpace.removeChild(Ge),Ct.focus(),Ct==z&&F.showPrimarySelection()},50)}}Pe(z,"copy",he),Pe(z,"cut",he)},bi.prototype.screenReaderLabelChanged=function(p){p?this.div.setAttribute("aria-label",p):this.div.removeAttribute("aria-label")},bi.prototype.prepareSelection=function(){var p=_S(this.cm,!1);return p.focus=H(ee(this.div))==this.div,p},bi.prototype.showSelection=function(p,E){!p||!this.cm.display.view.length||((p.focus||E)&&this.showPrimarySelection(),this.showMultipleSelections(p))},bi.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},bi.prototype.showPrimarySelection=function(){var p=this.getSelection(),E=this.cm,F=E.doc.sel.primary(),B=F.from(),z=F.to();if(E.display.viewTo==E.display.viewFrom||B.line>=E.display.viewTo||z.line<E.display.viewFrom){p.removeAllRanges();return}var re=wa(E,p.anchorNode,p.anchorOffset),he=wa(E,p.focusNode,p.focusOffset);if(!(re&&!re.bad&&he&&!he.bad&&Zt(ki(re,he),B)==0&&Zt(ii(re,he),z)==0)){var ye=E.display.view,we=B.line>=E.display.viewFrom&&jh(E,B)||{node:ye[0].measure.map[2],offset:0},Se=z.line<E.display.viewTo&&jh(E,z);if(!Se){var Ge=ye[ye.length-1].measure,Je=Ge.maps?Ge.maps[Ge.maps.length-1]:Ge.map;Se={node:Je[Je.length-1],offset:Je[Je.length-2]-Je[Je.length-3]}}if(!we||!Se){p.removeAllRanges();return}var Ct=p.rangeCount&&p.getRangeAt(0),vt;try{vt=L(we.node,we.offset,Se.offset,Se.node)}catch{}vt&&(!i&&E.state.focused?(p.collapse(we.node,we.offset),vt.collapsed||(p.removeAllRanges(),p.addRange(vt))):(p.removeAllRanges(),p.addRange(vt)),Ct&&p.anchorNode==null?p.addRange(Ct):i&&this.startGracePeriod()),this.rememberSelection()}},bi.prototype.startGracePeriod=function(){var p=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){p.gracePeriod=!1,p.selectionChanged()&&p.cm.operation(function(){return p.cm.curOp.selectionChanged=!0})},20)},bi.prototype.showMultipleSelections=function(p){x(this.cm.display.cursorDiv,p.cursors),x(this.cm.display.selectionDiv,p.selection)},bi.prototype.rememberSelection=function(){var p=this.getSelection();this.lastAnchorNode=p.anchorNode,this.lastAnchorOffset=p.anchorOffset,this.lastFocusNode=p.focusNode,this.lastFocusOffset=p.focusOffset},bi.prototype.selectionInEditor=function(){var p=this.getSelection();if(!p.rangeCount)return!1;var E=p.getRangeAt(0).commonAncestorContainer;return V(this.div,E)},bi.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||H(ee(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},bi.prototype.blur=function(){this.div.blur()},bi.prototype.getField=function(){return this.div},bi.prototype.supportsTouch=function(){return!0},bi.prototype.receivedFocus=function(){var p=this,E=this;this.selectionInEditor()?setTimeout(function(){return p.pollSelection()},20):qa(this.cm,function(){return E.cm.curOp.selectionChanged=!0});function F(){E.cm.state.focused&&(E.pollSelection(),E.polling.set(E.cm.options.pollInterval,F))}this.polling.set(this.cm.options.pollInterval,F)},bi.prototype.selectionChanged=function(){var p=this.getSelection();return p.anchorNode!=this.lastAnchorNode||p.anchorOffset!=this.lastAnchorOffset||p.focusNode!=this.lastFocusNode||p.focusOffset!=this.lastFocusOffset},bi.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var p=this.getSelection(),E=this.cm;if(k&&h&&this.cm.display.gutterSpecs.length&&nF(p.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var F=wa(E,p.anchorNode,p.anchorOffset),B=wa(E,p.focusNode,p.focusOffset);F&&B&&qa(E,function(){$a(E.doc,$h(F,B),ae),(F.bad||B.bad)&&(E.curOp.selectionChanged=!0)})}}},bi.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var p=this.cm,E=p.display,F=p.doc.sel.primary(),B=F.from(),z=F.to();if(B.ch==0&&B.line>p.firstLine()&&(B=yt(B.line-1,dn(p.doc,B.line-1).length)),z.ch==dn(p.doc,z.line).text.length&&z.line<p.lastLine()&&(z=yt(z.line+1,0)),B.line<E.viewFrom||z.line>E.viewTo-1)return!1;var re,he,ye;B.line==E.viewFrom||(re=gf(p,B.line))==0?(he=Ie(E.view[0].line),ye=E.view[0].node):(he=Ie(E.view[re].line),ye=E.view[re-1].node.nextSibling);var we=gf(p,z.line),Se,Ge;if(we==E.view.length-1?(Se=E.viewTo-1,Ge=E.lineDiv.lastChild):(Se=Ie(E.view[we+1].line)-1,Ge=E.view[we+1].node.previousSibling),!ye)return!1;for(var Je=p.doc.splitLines(NP(p,ye,Ge,he,Se)),Ct=ri(p.doc,yt(he,0),yt(Se,dn(p.doc,Se).text.length));Je.length>1&&Ct.length>1;)if(Z(Je)==Z(Ct))Je.pop(),Ct.pop(),Se--;else if(Je[0]==Ct[0])Je.shift(),Ct.shift(),he++;else break;for(var vt=0,Nt=0,Gt=Je[0],sn=Ct[0],fn=Math.min(Gt.length,sn.length);vt<fn&&Gt.charCodeAt(vt)==sn.charCodeAt(vt);)++vt;for(var On=Z(Je),pn=Z(Ct),Dn=Math.min(On.length-(Je.length==1?vt:0),pn.length-(Ct.length==1?vt:0));Nt<Dn&&On.charCodeAt(On.length-Nt-1)==pn.charCodeAt(pn.length-Nt-1);)++Nt;if(Je.length==1&&Ct.length==1&&he==B.line)for(;vt&&vt>B.ch&&On.charCodeAt(On.length-Nt-1)==pn.charCodeAt(pn.length-Nt-1);)vt--,Nt++;Je[Je.length-1]=On.slice(0,On.length-Nt).replace(/^\u200b+/,""),Je[0]=Je[0].slice(vt).replace(/\u200b+$/,"");var Gn=yt(he,vt),Wn=yt(Se,Ct.length?Z(Ct).length-Nt:0);if(Je.length>1||Je[0]||Zt(Gn,Wn))return Af(p.doc,Je,Gn,Wn,"+input"),!0},bi.prototype.ensurePolled=function(){this.forceCompositionEnd()},bi.prototype.reset=function(){this.forceCompositionEnd()},bi.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},bi.prototype.readFromDOMSoon=function(){var p=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(p.readDOMTimeout=null,p.composing)if(p.composing.done)p.composing=null;else return;p.updateFromDOM()},80))},bi.prototype.updateFromDOM=function(){var p=this;(this.cm.isReadOnly()||!this.pollContent())&&qa(this.cm,function(){return Es(p.cm)})},bi.prototype.setUneditable=function(p){p.contentEditable="false"},bi.prototype.onKeyPress=function(p){p.charCode==0||this.composing||(p.preventDefault(),this.cm.isReadOnly()||Ei(this.cm,iA)(this.cm,String.fromCharCode(p.charCode==null?p.keyCode:p.charCode),0))},bi.prototype.readOnlyChanged=function(p){this.div.contentEditable=String(p!="nocursor")},bi.prototype.onContextMenu=function(){},bi.prototype.resetPosition=function(){},bi.prototype.needsContentAttribute=!0;function jh(p,E){var F=ew(p,E.line);if(!F||F.hidden)return null;var B=dn(p.doc,E.line),z=UT(F,B,E.line),re=At(B,p.doc.direction),he="left";if(re){var ye=Te(re,E.ch);he=ye%2?"right":"left"}var we=YT(z.map,E.ch,he);return we.offset=we.collapse=="right"?we.end:we.start,we}function nF(p){for(var E=p;E;E=E.parentNode)if(/CodeMirror-gutter-wrapper/.test(E.className))return!0;return!1}function Wh(p,E){return E&&(p.bad=!0),p}function NP(p,E,F,B,z){var re="",he=!1,ye=p.doc.lineSeparator(),we=!1;function Se(vt){return function(Nt){return Nt.id==vt}}function Ge(){he&&(re+=ye,we&&(re+=ye),he=we=!1)}function Je(vt){vt&&(Ge(),re+=vt)}function Ct(vt){if(vt.nodeType==1){var Nt=vt.getAttribute("cm-text");if(Nt){Je(Nt);return}var Gt=vt.getAttribute("cm-marker"),sn;if(Gt){var fn=p.findMarks(yt(B,0),yt(z+1,0),Se(+Gt));fn.length&&(sn=fn[0].find(0))&&Je(ri(p.doc,sn.from,sn.to).join(ye));return}if(vt.getAttribute("contenteditable")=="false")return;var On=/^(pre|div|p|li|table|br)$/i.test(vt.nodeName);if(!/^br$/i.test(vt.nodeName)&&vt.textContent.length==0)return;On&&Ge();for(var pn=0;pn<vt.childNodes.length;pn++)Ct(vt.childNodes[pn]);/^(pre|p)$/i.test(vt.nodeName)&&(we=!0),On&&(he=!0)}else vt.nodeType==3&&Je(vt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ct(E),E!=F;)E=E.nextSibling,we=!1;return re}function wa(p,E,F){var B;if(E==p.display.lineDiv){if(B=p.display.lineDiv.childNodes[F],!B)return Wh(p.clipPos(yt(p.display.viewTo-1)),!0);E=null,F=0}else for(B=E;;B=B.parentNode){if(!B||B==p.display.lineDiv)return null;if(B.parentNode&&B.parentNode==p.display.lineDiv)break}for(var z=0;z<p.display.view.length;z++){var re=p.display.view[z];if(re.node==B)return rF(re,E,F)}}function rF(p,E,F){var B=p.text.firstChild,z=!1;if(!E||!V(B,E))return Wh(yt(Ie(p.line),0),!0);if(E==B&&(z=!0,E=B.childNodes[F],F=0,!E)){var re=p.rest?Z(p.rest):p.line;return Wh(yt(Ie(re),re.text.length),z)}var he=E.nodeType==3?E:null,ye=E;for(!he&&E.childNodes.length==1&&E.firstChild.nodeType==3&&(he=E.firstChild,F&&(F=he.nodeValue.length));ye.parentNode!=B;)ye=ye.parentNode;var we=p.measure,Se=we.maps;function Ge(sn,fn,On){for(var pn=-1;pn<(Se?Se.length:0);pn++)for(var Dn=pn<0?we.map:Se[pn],Gn=0;Gn<Dn.length;Gn+=3){var Wn=Dn[Gn+2];if(Wn==sn||Wn==fn){var Rr=Ie(pn<0?p.line:p.rest[pn]),Di=Dn[Gn]+On;return(On<0||Wn!=sn)&&(Di=Dn[Gn+(On?1:0)]),yt(Rr,Di)}}}var Je=Ge(he,ye,F);if(Je)return Wh(Je,z);for(var Ct=ye.nextSibling,vt=he?he.nodeValue.length-F:0;Ct;Ct=Ct.nextSibling){if(Je=Ge(Ct,Ct.firstChild,0),Je)return Wh(yt(Je.line,Je.ch-vt),z);vt+=Ct.textContent.length}for(var Nt=ye.previousSibling,Gt=F;Nt;Nt=Nt.previousSibling){if(Je=Ge(Nt,Nt.firstChild,-1),Je)return Wh(yt(Je.line,Je.ch+Gt),z);Gt+=Nt.textContent.length}}var Bo=function(p){this.cm=p,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};Bo.prototype.init=function(p){var E=this,F=this,B=this.cm;this.createField(p);var z=this.textarea;p.wrapper.insertBefore(this.wrapper,p.wrapper.firstChild),w&&(z.style.width="0px"),Pe(z,"input",function(){l&&u>=9&&E.hasSelection&&(E.hasSelection=null),F.poll()}),Pe(z,"paste",function(he){He(B,he)||xc(he,B)||(B.state.pasteIncoming=+new Date,F.fastPoll())});function re(he){if(!He(B,he)){if(B.somethingSelected())xw({lineWise:!1,text:B.getSelections()});else if(B.options.lineWiseCopyCut){var ye=Aw(B);xw({lineWise:!0,text:ye.text}),he.type=="cut"?B.setSelections(ye.ranges,null,ae):(F.prevInput="",z.value=ye.text.join(`
|
|
`),K(z))}else return;he.type=="cut"&&(B.state.cutIncoming=+new Date)}}Pe(z,"cut",re),Pe(z,"copy",re),Pe(p.scroller,"paste",function(he){if(!(mc(p,he)||He(B,he))){if(!z.dispatchEvent){B.state.pasteIncoming=+new Date,F.focus();return}var ye=new Event("paste");ye.clipboardData=he.clipboardData,z.dispatchEvent(ye)}}),Pe(p.lineSpace,"selectstart",function(he){mc(p,he)||ct(he)}),Pe(z,"compositionstart",function(){var he=B.getCursor("from");F.composing&&F.composing.range.clear(),F.composing={start:he,range:B.markText(he,B.getCursor("to"),{className:"CodeMirror-composing"})}}),Pe(z,"compositionend",function(){F.composing&&(F.poll(),F.composing.range.clear(),F.composing=null)})},Bo.prototype.createField=function(p){this.wrapper=gy(),this.textarea=this.wrapper.firstChild;var E=this.cm.options;fy(this.textarea,E.spellcheck,E.autocorrect,E.autocapitalize)},Bo.prototype.screenReaderLabelChanged=function(p){p?this.textarea.setAttribute("aria-label",p):this.textarea.removeAttribute("aria-label")},Bo.prototype.prepareSelection=function(){var p=this.cm,E=p.display,F=p.doc,B=_S(p);if(p.options.moveInputWithCursor){var z=Bt(p,F.sel.primary().head,"div"),re=E.wrapper.getBoundingClientRect(),he=E.lineDiv.getBoundingClientRect();B.teTop=Math.max(0,Math.min(E.wrapper.clientHeight-10,z.top+he.top-re.top)),B.teLeft=Math.max(0,Math.min(E.wrapper.clientWidth-10,z.left+he.left-re.left))}return B},Bo.prototype.showSelection=function(p){var E=this.cm,F=E.display;x(F.cursorDiv,p.cursors),x(F.selectionDiv,p.selection),p.teTop!=null&&(this.wrapper.style.top=p.teTop+"px",this.wrapper.style.left=p.teLeft+"px")},Bo.prototype.reset=function(p){if(!(this.contextMenuPending||this.composing&&p)){var E=this.cm;if(this.resetting=!0,E.somethingSelected()){this.prevInput="";var F=E.getSelection();this.textarea.value=F,E.state.focused&&K(this.textarea),l&&u>=9&&(this.hasSelection=F)}else p||(this.prevInput=this.textarea.value="",l&&u>=9&&(this.hasSelection=null));this.resetting=!1}},Bo.prototype.getField=function(){return this.textarea},Bo.prototype.supportsTouch=function(){return!1},Bo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!T||H(ee(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Bo.prototype.blur=function(){this.textarea.blur()},Bo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Bo.prototype.receivedFocus=function(){this.slowPoll()},Bo.prototype.slowPoll=function(){var p=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){p.poll(),p.cm.state.focused&&p.slowPoll()})},Bo.prototype.fastPoll=function(){var p=!1,E=this;E.pollingFast=!0;function F(){var B=E.poll();!B&&!p?(p=!0,E.polling.set(60,F)):(E.pollingFast=!1,E.slowPoll())}E.polling.set(20,F)},Bo.prototype.poll=function(){var p=this,E=this.cm,F=this.textarea,B=this.prevInput;if(this.contextMenuPending||this.resetting||!E.state.focused||Lt(F)&&!B&&!this.composing||E.isReadOnly()||E.options.disableInput||E.state.keySeq)return!1;var z=F.value;if(z==B&&!E.somethingSelected())return!1;if(l&&u>=9&&this.hasSelection===z||S&&/[\uf700-\uf7ff]/.test(z))return E.display.input.reset(),!1;if(E.doc.sel==E.display.selForContextMenu){var re=z.charCodeAt(0);if(re==8203&&!B&&(B=""),re==8666)return this.reset(),this.cm.execCommand("undo")}for(var he=0,ye=Math.min(B.length,z.length);he<ye&&B.charCodeAt(he)==z.charCodeAt(he);)++he;return qa(E,function(){iA(E,z.slice(he),B.length-he,null,p.composing?"*compose":null),z.length>1e3||z.indexOf(`
|
|
`)>-1?F.value=p.prevInput="":p.prevInput=z,p.composing&&(p.composing.range.clear(),p.composing.range=E.markText(p.composing.start,E.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Bo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Bo.prototype.onKeyPress=function(){l&&u>=9&&(this.hasSelection=null),this.fastPoll()},Bo.prototype.onContextMenu=function(p){var E=this,F=E.cm,B=F.display,z=E.textarea;E.contextMenuPending&&E.contextMenuPending();var re=yc(F,p),he=B.scroller.scrollTop;if(!re||g)return;var ye=F.options.resetSelectionOnContextMenu;ye&&F.doc.sel.contains(re)==-1&&Ei(F,$a)(F.doc,$h(re),ae);var we=z.style.cssText,Se=E.wrapper.style.cssText,Ge=E.wrapper.offsetParent.getBoundingClientRect();E.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(p.clientY-Ge.top-5)+"px; left: "+(p.clientX-Ge.left-5)+`px;
|
|
z-index: 1000; background: `+(l?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Je;c&&(Je=z.ownerDocument.defaultView.scrollY),B.input.focus(),c&&z.ownerDocument.defaultView.scrollTo(null,Je),B.input.reset(),F.somethingSelected()||(z.value=E.prevInput=" "),E.contextMenuPending=vt,B.selForContextMenu=F.doc.sel,clearTimeout(B.detectingSelectAll);function Ct(){if(z.selectionStart!=null){var Gt=F.somethingSelected(),sn=""+(Gt?z.value:"");z.value="⇚",z.value=sn,E.prevInput=Gt?"":"",z.selectionStart=1,z.selectionEnd=sn.length,B.selForContextMenu=F.doc.sel}}function vt(){if(E.contextMenuPending==vt&&(E.contextMenuPending=!1,E.wrapper.style.cssText=Se,z.style.cssText=we,l&&u<9&&B.scrollbars.setScrollTop(B.scroller.scrollTop=he),z.selectionStart!=null)){(!l||l&&u<9)&&Ct();var Gt=0,sn=function(){B.selForContextMenu==F.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&E.prevInput==""?Ei(F,tm)(F):Gt++<10?B.detectingSelectAll=setTimeout(sn,500):(B.selForContextMenu=null,B.input.reset())};B.detectingSelectAll=setTimeout(sn,200)}}if(l&&u>=9&&Ct(),A){ln(p);var Nt=function(){dt(window,"mouseup",Nt),setTimeout(vt,20)};Pe(window,"mouseup",Nt)}else setTimeout(vt,50)},Bo.prototype.readOnlyChanged=function(p){p||this.reset(),this.textarea.disabled=p=="nocursor",this.textarea.readOnly=!!p},Bo.prototype.setUneditable=function(){},Bo.prototype.needsContentAttribute=!1;function VP(p,E){if(E=E?G(E):{},E.value=p.value,!E.tabindex&&p.tabIndex&&(E.tabindex=p.tabIndex),!E.placeholder&&p.placeholder&&(E.placeholder=p.placeholder),E.autofocus==null){var F=H(ee(p));E.autofocus=F==p||p.getAttribute("autofocus")!=null&&F==document.body}function B(){p.value=ye.getValue()}var z;if(p.form&&(Pe(p.form,"submit",B),!E.leaveSubmitMethodAlone)){var re=p.form;z=re.submit;try{var he=re.submit=function(){B(),re.submit=z,re.submit(),re.submit=he}}catch{}}E.finishInit=function(we){we.save=B,we.getTextArea=function(){return p},we.toTextArea=function(){we.toTextArea=isNaN,B(),p.parentNode.removeChild(we.getWrapperElement()),p.style.display="",p.form&&(dt(p.form,"submit",B),!E.leaveSubmitMethodAlone&&typeof p.form.submit=="function"&&(p.form.submit=z))}},p.style.display="none";var ye=hi(function(we){return p.parentNode.insertBefore(we,p.nextSibling)},E);return ye}function iF(p){p.off=dt,p.on=Pe,p.wheelEventPixels=W9,p.Doc=cs,p.splitLines=$t,p.countColumn=ne,p.findColumn=ce,p.isWordChar=Be,p.Pass=de,p.signal=Mt,p.Line=hf,p.changeEnd=Mh,p.scrollbarModel=wf,p.Pos=yt,p.cmpPos=Zt,p.modes=Ut,p.mimeModes=nn,p.resolveMode=lt,p.getMode=It,p.modeExtensions=Xt,p.extendMode=on,p.copyState=Vn,p.startState=yr,p.innerMode=Ur,p.commands=ly,p.keyMap=Cc,p.keyName=iy,p.isModifierKey=mw,p.lookupKey=xl,p.normalizeKeyMap=Ol,p.StringStream=Fn,p.SharedTextMarker=om,p.TextMarker=Tu,p.LineWidget=kf,p.e_preventDefault=ct,p.e_stopPropagation=_t,p.e_stop=ln,p.addClass=Q,p.contains=V,p.rmClass=D,p.keyNames=ba}rA(hi),hm(hi);var jP="iter insert remove copy getEditor constructor".split(" ");for(var Iw in cs.prototype)cs.prototype.hasOwnProperty(Iw)&&oe(jP,Iw)<0&&(hi.prototype[Iw]=function(p){return function(){return p.apply(this.doc,arguments)}}(cs.prototype[Iw]));return Xe(cs),hi.inputStyles={textarea:Bo,contenteditable:bi},hi.defineMode=function(p){!hi.defaults.mode&&p!="null"&&(hi.defaults.mode=p),Cn.apply(this,arguments)},hi.defineMIME=Pn,hi.defineMode("null",function(){return{token:function(p){return p.skipToEnd()}}}),hi.defineMIME("text/plain","null"),hi.defineExtension=function(p,E){hi.prototype[p]=E},hi.defineDocExtension=function(p,E){cs.prototype[p]=E},hi.fromTextArea=VP,iF(hi),hi.version="5.65.16",hi})}(Tie)),Tie.exports}(function(e,t){(function(n){n(BL())})(function(n){n.defineMode("javascript",function(r,i){var o=r.indentUnit,a=i.statementIndent,s=i.jsonld,l=i.json||s,u=i.trackScope!==!1,c=i.typescript,d=i.wordCharacters||/[\w$\xa1-\uffff]/,h=function(){function Ie(Sr){return{type:Sr,style:"keyword"}}var Fe=Ie("keyword a"),Dt=Ie("keyword b"),zt=Ie("keyword c"),yt=Ie("keyword d"),Zt=Ie("operator"),An={type:"atom",style:"atom"};return{if:Ie("if"),while:Fe,with:Fe,else:Dt,do:Dt,try:Dt,finally:Dt,return:yt,break:yt,continue:yt,new:Ie("new"),delete:zt,void:zt,throw:zt,debugger:Ie("debugger"),var:Ie("var"),const:Ie("var"),let:Ie("var"),function:Ie("function"),catch:Ie("catch"),for:Ie("for"),switch:Ie("switch"),case:Ie("case"),default:Ie("default"),in:Zt,typeof:Zt,instanceof:Zt,true:An,false:An,null:An,undefined:An,NaN:An,Infinity:An,this:Ie("this"),class:Ie("class"),super:Ie("atom"),yield:zt,export:Ie("export"),import:Ie("import"),extends:zt,await:zt}}(),f=/[+\-*&%=<>!?|~^@]/,g=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function b(Ie){for(var Fe=!1,Dt,zt=!1;(Dt=Ie.next())!=null;){if(!Fe){if(Dt=="/"&&!zt)return;Dt=="["?zt=!0:zt&&Dt=="]"&&(zt=!1)}Fe=!Fe&&Dt=="\\"}}var v,m;function w(Ie,Fe,Dt){return v=Ie,m=Dt,Fe}function k(Ie,Fe){var Dt=Ie.next();if(Dt=='"'||Dt=="'")return Fe.tokenize=T(Dt),Fe.tokenize(Ie,Fe);if(Dt=="."&&Ie.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return w("number","number");if(Dt=="."&&Ie.match(".."))return w("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Dt))return w(Dt);if(Dt=="="&&Ie.eat(">"))return w("=>","operator");if(Dt=="0"&&Ie.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return w("number","number");if(/\d/.test(Dt))return Ie.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),w("number","number");if(Dt=="/")return Ie.eat("*")?(Fe.tokenize=S,S(Ie,Fe)):Ie.eat("/")?(Ie.skipToEnd(),w("comment","comment")):ci(Ie,Fe,1)?(b(Ie),Ie.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),w("regexp","string-2")):(Ie.eat("="),w("operator","operator",Ie.current()));if(Dt=="`")return Fe.tokenize=I,I(Ie,Fe);if(Dt=="#"&&Ie.peek()=="!")return Ie.skipToEnd(),w("meta","meta");if(Dt=="#"&&Ie.eatWhile(d))return w("variable","property");if(Dt=="<"&&Ie.match("!--")||Dt=="-"&&Ie.match("->")&&!/\S/.test(Ie.string.slice(0,Ie.start)))return Ie.skipToEnd(),w("comment","comment");if(f.test(Dt))return(Dt!=">"||!Fe.lexical||Fe.lexical.type!=">")&&(Ie.eat("=")?(Dt=="!"||Dt=="=")&&Ie.eat("="):/[<>*+\-|&?]/.test(Dt)&&(Ie.eat(Dt),Dt==">"&&Ie.eat(Dt))),Dt=="?"&&Ie.eat(".")?w("."):w("operator","operator",Ie.current());if(d.test(Dt)){Ie.eatWhile(d);var zt=Ie.current();if(Fe.lastType!="."){if(h.propertyIsEnumerable(zt)){var yt=h[zt];return w(yt.type,yt.style,zt)}if(zt=="async"&&Ie.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return w("async","keyword",zt)}return w("variable","variable",zt)}}function T(Ie){return function(Fe,Dt){var zt=!1,yt;if(s&&Fe.peek()=="@"&&Fe.match(g))return Dt.tokenize=k,w("jsonld-keyword","meta");for(;(yt=Fe.next())!=null&&!(yt==Ie&&!zt);)zt=!zt&&yt=="\\";return zt||(Dt.tokenize=k),w("string","string")}}function S(Ie,Fe){for(var Dt=!1,zt;zt=Ie.next();){if(zt=="/"&&Dt){Fe.tokenize=k;break}Dt=zt=="*"}return w("comment","comment")}function I(Ie,Fe){for(var Dt=!1,zt;(zt=Ie.next())!=null;){if(!Dt&&(zt=="`"||zt=="$"&&Ie.eat("{"))){Fe.tokenize=k;break}Dt=!Dt&&zt=="\\"}return w("quasi","string-2",Ie.current())}var O="([{}])";function y(Ie,Fe){Fe.fatArrowAt&&(Fe.fatArrowAt=null);var Dt=Ie.string.indexOf("=>",Ie.start);if(!(Dt<0)){if(c){var zt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(Ie.string.slice(Ie.start,Dt));zt&&(Dt=zt.index)}for(var yt=0,Zt=!1,An=Dt-1;An>=0;--An){var Sr=Ie.string.charAt(An),ii=O.indexOf(Sr);if(ii>=0&&ii<3){if(!yt){++An;break}if(--yt==0){Sr=="("&&(Zt=!0);break}}else if(ii>=3&&ii<6)++yt;else if(d.test(Sr))Zt=!0;else if(/["'\/`]/.test(Sr))for(;;--An){if(An==0)return;var ki=Ie.string.charAt(An-1);if(ki==Sr&&Ie.string.charAt(An-2)!="\\"){An--;break}}else if(Zt&&!yt){++An;break}}Zt&&!yt&&(Fe.fatArrowAt=An)}}var _={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function A(Ie,Fe,Dt,zt,yt,Zt){this.indented=Ie,this.column=Fe,this.type=Dt,this.prev=yt,this.info=Zt,zt!=null&&(this.align=zt)}function R(Ie,Fe){if(!u)return!1;for(var Dt=Ie.localVars;Dt;Dt=Dt.next)if(Dt.name==Fe)return!0;for(var zt=Ie.context;zt;zt=zt.prev)for(var Dt=zt.vars;Dt;Dt=Dt.next)if(Dt.name==Fe)return!0}function D(Ie,Fe,Dt,zt,yt){var Zt=Ie.cc;for(C.state=Ie,C.stream=yt,C.marked=null,C.cc=Zt,C.style=Fe,Ie.lexical.hasOwnProperty("align")||(Ie.lexical.align=!0);;){var An=Zt.length?Zt.pop():l?oe:ne;if(An(Dt,zt)){for(;Zt.length&&Zt[Zt.length-1].lex;)Zt.pop()();return C.marked?C.marked:Dt=="variable"&&R(Ie,zt)?"variable-2":Fe}}}var C={state:null,column:null,marked:null,cc:null};function x(){for(var Ie=arguments.length-1;Ie>=0;Ie--)C.cc.push(arguments[Ie])}function P(){return x.apply(null,arguments),!0}function $(Ie,Fe){for(var Dt=Fe;Dt;Dt=Dt.next)if(Dt.name==Ie)return!0;return!1}function L(Ie){var Fe=C.state;if(C.marked="def",!!u){if(Fe.context){if(Fe.lexical.info=="var"&&Fe.context&&Fe.context.block){var Dt=V(Ie,Fe.context);if(Dt!=null){Fe.context=Dt;return}}else if(!$(Ie,Fe.localVars)){Fe.localVars=new U(Ie,Fe.localVars);return}}i.globalVars&&!$(Ie,Fe.globalVars)&&(Fe.globalVars=new U(Ie,Fe.globalVars))}}function V(Ie,Fe){if(Fe)if(Fe.block){var Dt=V(Ie,Fe.prev);return Dt?Dt==Fe.prev?Fe:new Q(Dt,Fe.vars,!0):null}else return $(Ie,Fe.vars)?Fe:new Q(Fe.prev,new U(Ie,Fe.vars),!1);else return null}function H(Ie){return Ie=="public"||Ie=="private"||Ie=="protected"||Ie=="abstract"||Ie=="readonly"}function Q(Ie,Fe,Dt){this.prev=Ie,this.vars=Fe,this.block=Dt}function U(Ie,Fe){this.name=Ie,this.next=Fe}var K=new U("this",new U("arguments",null));function J(){C.state.context=new Q(C.state.context,C.state.localVars,!1),C.state.localVars=K}function ue(){C.state.context=new Q(C.state.context,C.state.localVars,!0),C.state.localVars=null}J.lex=ue.lex=!0;function ee(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}ee.lex=!0;function N(Ie,Fe){var Dt=function(){var zt=C.state,yt=zt.indented;if(zt.lexical.type=="stat")yt=zt.lexical.indented;else for(var Zt=zt.lexical;Zt&&Zt.type==")"&&Zt.align;Zt=Zt.prev)yt=Zt.indented;zt.lexical=new A(yt,C.stream.column(),Ie,null,zt.lexical,Fe)};return Dt.lex=!0,Dt}function q(){var Ie=C.state;Ie.lexical.prev&&(Ie.lexical.type==")"&&(Ie.indented=Ie.lexical.indented),Ie.lexical=Ie.lexical.prev)}q.lex=!0;function G(Ie){function Fe(Dt){return Dt==Ie?P():Ie==";"||Dt=="}"||Dt==")"||Dt=="]"?x():P(Fe)}return Fe}function ne(Ie,Fe){return Ie=="var"?P(N("vardef",Fe),_t,G(";"),q):Ie=="keyword a"?P(N("form"),de,ne,q):Ie=="keyword b"?P(N("form"),ne,q):Ie=="keyword d"?C.stream.match(/^\s*$/,!1)?P():P(N("stat"),be,G(";"),q):Ie=="debugger"?P(G(";")):Ie=="{"?P(N("}"),ue,Me,q,ee):Ie==";"?P():Ie=="if"?(C.state.lexical.info=="else"&&C.state.cc[C.state.cc.length-1]==q&&C.state.cc.pop()(),P(N("form"),de,ne,q,Wr)):Ie=="function"?P($t):Ie=="for"?P(N("form"),ue,ze,ne,ee,q):Ie=="class"||c&&Fe=="interface"?(C.marked="keyword",P(N("form",Ie=="class"?Ie:Fe),Ut,q)):Ie=="variable"?c&&Fe=="declare"?(C.marked="keyword",P(ne)):c&&(Fe=="module"||Fe=="enum"||Fe=="type")&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword",Fe=="enum"?P(dn):Fe=="type"?P(Mn,G("operator"),At,G(";")):P(N("form"),Qt,G("{"),N("}"),Me,q,q)):c&&Fe=="namespace"?(C.marked="keyword",P(N("form"),oe,ne,q)):c&&Fe=="abstract"?(C.marked="keyword",P(ne)):P(N("stat"),Ae):Ie=="switch"?P(N("form"),de,G("{"),N("}","switch"),ue,Me,q,q,ee):Ie=="case"?P(oe,G(":")):Ie=="default"?P(G(":")):Ie=="catch"?P(N("form"),J,le,ne,q,ee):Ie=="export"?P(N("stat"),lt,q):Ie=="import"?P(N("stat"),Xt,q):Ie=="async"?P(ne):Fe=="@"?P(oe,ne):x(N("stat"),oe,G(";"),q)}function le(Ie){if(Ie=="(")return P(qe,G(")"))}function oe(Ie,Fe){return ae(Ie,Fe,!1)}function ve(Ie,Fe){return ae(Ie,Fe,!0)}function de(Ie){return Ie!="("?x():P(N(")"),be,G(")"),q)}function ae(Ie,Fe,Dt){if(C.state.fatArrowAt==C.stream.start){var zt=Dt?Y:Z;if(Ie=="(")return P(J,N(")"),st(qe,")"),q,G("=>"),zt,ee);if(Ie=="variable")return x(J,Qt,G("=>"),zt,ee)}var yt=Dt?ce:ie;return _.hasOwnProperty(Ie)?P(yt):Ie=="function"?P($t,yt):Ie=="class"||c&&Fe=="interface"?(C.marked="keyword",P(N("form"),kt,q)):Ie=="keyword c"||Ie=="async"?P(Dt?ve:oe):Ie=="("?P(N(")"),be,G(")"),q,yt):Ie=="operator"||Ie=="spread"?P(Dt?ve:oe):Ie=="["?P(N("]"),Fn,q,yt):Ie=="{"?Le(Ye,"}",null,yt):Ie=="quasi"?x(pe,yt):Ie=="new"?P(se(Dt)):P()}function be(Ie){return Ie.match(/[;\}\)\],]/)?x():x(oe)}function ie(Ie,Fe){return Ie==","?P(be):ce(Ie,Fe,!1)}function ce(Ie,Fe,Dt){var zt=Dt==!1?ie:ce,yt=Dt==!1?oe:ve;if(Ie=="=>")return P(J,Dt?Y:Z,ee);if(Ie=="operator")return/\+\+|--/.test(Fe)||c&&Fe=="!"?P(zt):c&&Fe=="<"&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?P(N(">"),st(At,">"),q,zt):Fe=="?"?P(oe,G(":"),yt):P(yt);if(Ie=="quasi")return x(pe,zt);if(Ie!=";"){if(Ie=="(")return Le(ve,")","call",zt);if(Ie==".")return P(Be,zt);if(Ie=="[")return P(N("]"),be,G("]"),q,zt);if(c&&Fe=="as")return C.marked="keyword",P(At,zt);if(Ie=="regexp")return C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),P(yt)}}function pe(Ie,Fe){return Ie!="quasi"?x():Fe.slice(Fe.length-2)!="${"?P(pe):P(be,X)}function X(Ie){if(Ie=="}")return C.marked="string-2",C.state.tokenize=I,P(pe)}function Z(Ie){return y(C.stream,C.state),x(Ie=="{"?ne:oe)}function Y(Ie){return y(C.stream,C.state),x(Ie=="{"?ne:ve)}function se(Ie){return function(Fe){return Fe=="."?P(Ie?me:fe):Fe=="variable"&&c?P(Ee,Ie?ce:ie):x(Ie?ve:oe)}}function fe(Ie,Fe){if(Fe=="target")return C.marked="keyword",P(ie)}function me(Ie,Fe){if(Fe=="target")return C.marked="keyword",P(ce)}function Ae(Ie){return Ie==":"?P(q,ne):x(ie,G(";"),q)}function Be(Ie){if(Ie=="variable")return C.marked="property",P()}function Ye(Ie,Fe){if(Ie=="async")return C.marked="property",P(Ye);if(Ie=="variable"||C.style=="keyword"){if(C.marked="property",Fe=="get"||Fe=="set")return P(Qe);var Dt;return c&&C.state.fatArrowAt==C.stream.start&&(Dt=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+Dt[0].length),P(nt)}else{if(Ie=="number"||Ie=="string")return C.marked=s?"property":C.style+" property",P(nt);if(Ie=="jsonld-keyword")return P(nt);if(c&&H(Fe))return C.marked="keyword",P(Ye);if(Ie=="[")return P(oe,je,G("]"),nt);if(Ie=="spread")return P(ve,nt);if(Fe=="*")return C.marked="keyword",P(Ye);if(Ie==":")return x(nt)}}function Qe(Ie){return Ie!="variable"?x(nt):(C.marked="property",P($t))}function nt(Ie){if(Ie==":")return P(ve);if(Ie=="(")return x($t)}function st(Ie,Fe,Dt){function zt(yt,Zt){if(Dt?Dt.indexOf(yt)>-1:yt==","){var An=C.state.lexical;return An.info=="call"&&(An.pos=(An.pos||0)+1),P(function(Sr,ii){return Sr==Fe||ii==Fe?x():x(Ie)},zt)}return yt==Fe||Zt==Fe?P():Dt&&Dt.indexOf(";")>-1?x(Ie):P(G(Fe))}return function(yt,Zt){return yt==Fe||Zt==Fe?P():x(Ie,zt)}}function Le(Ie,Fe,Dt){for(var zt=3;zt<arguments.length;zt++)C.cc.push(arguments[zt]);return P(N(Fe,Dt),st(Ie,Fe),q)}function Me(Ie){return Ie=="}"?P():x(ne,Me)}function je(Ie,Fe){if(c){if(Ie==":")return P(At);if(Fe=="?")return P(je)}}function Ue(Ie,Fe){if(c&&(Ie==":"||Fe=="in"))return P(At)}function Te(Ie){if(c&&Ie==":")return C.stream.match(/^\s*\w+\s+is\b/,!1)?P(oe,bt,At):P(At)}function bt(Ie,Fe){if(Fe=="is")return C.marked="keyword",P()}function At(Ie,Fe){if(Fe=="keyof"||Fe=="typeof"||Fe=="infer"||Fe=="readonly")return C.marked="keyword",P(Fe=="typeof"?ve:At);if(Ie=="variable"||Fe=="void")return C.marked="type",P(wt);if(Fe=="|"||Fe=="&")return P(At);if(Ie=="string"||Ie=="number"||Ie=="atom")return P(wt);if(Ie=="[")return P(N("]"),st(At,"]",","),q,wt);if(Ie=="{")return P(N("}"),Pe,q,wt);if(Ie=="(")return P(st(He,")"),ht,wt);if(Ie=="<")return P(st(At,">"),At);if(Ie=="quasi")return x(dt,wt)}function ht(Ie){if(Ie=="=>")return P(At)}function Pe(Ie){return Ie.match(/[\}\)\]]/)?P():Ie==","||Ie==";"?P(Pe):x(Ze,Pe)}function Ze(Ie,Fe){if(Ie=="variable"||C.style=="keyword")return C.marked="property",P(Ze);if(Fe=="?"||Ie=="number"||Ie=="string")return P(Ze);if(Ie==":")return P(At);if(Ie=="[")return P(G("variable"),Ue,G("]"),Ze);if(Ie=="(")return x(Lt,Ze);if(!Ie.match(/[;\}\)\],]/))return P()}function dt(Ie,Fe){return Ie!="quasi"?x():Fe.slice(Fe.length-2)!="${"?P(dt):P(At,Mt)}function Mt(Ie){if(Ie=="}")return C.marked="string-2",C.state.tokenize=I,P(dt)}function He(Ie,Fe){return Ie=="variable"&&C.stream.match(/^\s*[?:]/,!1)||Fe=="?"?P(He):Ie==":"?P(At):Ie=="spread"?P(He):x(At)}function wt(Ie,Fe){if(Fe=="<")return P(N(">"),st(At,">"),q,wt);if(Fe=="|"||Ie=="."||Fe=="&")return P(At);if(Ie=="[")return P(At,G("]"),wt);if(Fe=="extends"||Fe=="implements")return C.marked="keyword",P(At);if(Fe=="?")return P(At,G(":"),At)}function Ee(Ie,Fe){if(Fe=="<")return P(N(">"),st(At,">"),q,wt)}function Xe(){return x(At,ct)}function ct(Ie,Fe){if(Fe=="=")return P(At)}function _t(Ie,Fe){return Fe=="enum"?(C.marked="keyword",P(dn)):x(Qt,je,hr,pr)}function Qt(Ie,Fe){if(c&&H(Fe))return C.marked="keyword",P(Qt);if(Ie=="variable")return L(Fe),P();if(Ie=="spread")return P(Qt);if(Ie=="[")return Le(kn,"]");if(Ie=="{")return Le(ln,"}")}function ln(Ie,Fe){return Ie=="variable"&&!C.stream.match(/^\s*:/,!1)?(L(Fe),P(hr)):(Ie=="variable"&&(C.marked="property"),Ie=="spread"?P(Qt):Ie=="}"?x():Ie=="["?P(oe,G("]"),G(":"),ln):P(G(":"),Qt,hr))}function kn(){return x(Qt,hr)}function hr(Ie,Fe){if(Fe=="=")return P(ve)}function pr(Ie){if(Ie==",")return P(_t)}function Wr(Ie,Fe){if(Ie=="keyword b"&&Fe=="else")return P(N("form","else"),ne,q)}function ze(Ie,Fe){if(Fe=="await")return P(ze);if(Ie=="(")return P(N(")"),Ke,q)}function Ke(Ie){return Ie=="var"?P(_t,et):Ie=="variable"?P(et):x(et)}function et(Ie,Fe){return Ie==")"?P():Ie==";"?P(et):Fe=="in"||Fe=="of"?(C.marked="keyword",P(oe,et)):x(oe,et)}function $t(Ie,Fe){if(Fe=="*")return C.marked="keyword",P($t);if(Ie=="variable")return L(Fe),P($t);if(Ie=="(")return P(J,N(")"),st(qe,")"),q,Te,ne,ee);if(c&&Fe=="<")return P(N(">"),st(Xe,">"),q,$t)}function Lt(Ie,Fe){if(Fe=="*")return C.marked="keyword",P(Lt);if(Ie=="variable")return L(Fe),P(Lt);if(Ie=="(")return P(J,N(")"),st(qe,")"),q,Te,ee);if(c&&Fe=="<")return P(N(">"),st(Xe,">"),q,Lt)}function Mn(Ie,Fe){if(Ie=="keyword"||Ie=="variable")return C.marked="type",P(Mn);if(Fe=="<")return P(N(">"),st(Xe,">"),q)}function qe(Ie,Fe){return Fe=="@"&&P(oe,qe),Ie=="spread"?P(qe):c&&H(Fe)?(C.marked="keyword",P(qe)):c&&Ie=="this"?P(je,hr):x(Qt,je,hr)}function kt(Ie,Fe){return Ie=="variable"?Ut(Ie,Fe):nn(Ie,Fe)}function Ut(Ie,Fe){if(Ie=="variable")return L(Fe),P(nn)}function nn(Ie,Fe){if(Fe=="<")return P(N(">"),st(Xe,">"),q,nn);if(Fe=="extends"||Fe=="implements"||c&&Ie==",")return Fe=="implements"&&(C.marked="keyword"),P(c?At:oe,nn);if(Ie=="{")return P(N("}"),Cn,q)}function Cn(Ie,Fe){if(Ie=="async"||Ie=="variable"&&(Fe=="static"||Fe=="get"||Fe=="set"||c&&H(Fe))&&C.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return C.marked="keyword",P(Cn);if(Ie=="variable"||C.style=="keyword")return C.marked="property",P(Pn,Cn);if(Ie=="number"||Ie=="string")return P(Pn,Cn);if(Ie=="[")return P(oe,je,G("]"),Pn,Cn);if(Fe=="*")return C.marked="keyword",P(Cn);if(c&&Ie=="(")return x(Lt,Cn);if(Ie==";"||Ie==",")return P(Cn);if(Ie=="}")return P();if(Fe=="@")return P(oe,Cn)}function Pn(Ie,Fe){if(Fe=="!"||Fe=="?")return P(Pn);if(Ie==":")return P(At,hr);if(Fe=="=")return P(ve);var Dt=C.state.lexical.prev,zt=Dt&&Dt.info=="interface";return x(zt?Lt:$t)}function lt(Ie,Fe){return Fe=="*"?(C.marked="keyword",P(yr,G(";"))):Fe=="default"?(C.marked="keyword",P(oe,G(";"))):Ie=="{"?P(st(It,"}"),yr,G(";")):x(ne)}function It(Ie,Fe){if(Fe=="as")return C.marked="keyword",P(G("variable"));if(Ie=="variable")return x(ve,It)}function Xt(Ie){return Ie=="string"?P():Ie=="("?x(oe):Ie=="."?x(ie):x(on,Vn,yr)}function on(Ie,Fe){return Ie=="{"?Le(on,"}"):(Ie=="variable"&&L(Fe),Fe=="*"&&(C.marked="keyword"),P(Ur))}function Vn(Ie){if(Ie==",")return P(on,Vn)}function Ur(Ie,Fe){if(Fe=="as")return C.marked="keyword",P(on)}function yr(Ie,Fe){if(Fe=="from")return C.marked="keyword",P(oe)}function Fn(Ie){return Ie=="]"?P():x(st(ve,"]"))}function dn(){return x(N("form"),Qt,G("{"),N("}"),st(ri,"}"),q,q)}function ri(){return x(Qt,hr)}function ji(Ie,Fe){return Ie.lastType=="operator"||Ie.lastType==","||f.test(Fe.charAt(0))||/[,.]/.test(Fe.charAt(0))}function ci(Ie,Fe,Dt){return Fe.tokenize==k&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Fe.lastType)||Fe.lastType=="quasi"&&/\{\s*$/.test(Ie.string.slice(0,Ie.pos-(Dt||0)))}return{startState:function(Ie){var Fe={tokenize:k,lastType:"sof",cc:[],lexical:new A((Ie||0)-o,0,"block",!1),localVars:i.localVars,context:i.localVars&&new Q(null,null,!1),indented:Ie||0};return i.globalVars&&typeof i.globalVars=="object"&&(Fe.globalVars=i.globalVars),Fe},token:function(Ie,Fe){if(Ie.sol()&&(Fe.lexical.hasOwnProperty("align")||(Fe.lexical.align=!1),Fe.indented=Ie.indentation(),y(Ie,Fe)),Fe.tokenize!=S&&Ie.eatSpace())return null;var Dt=Fe.tokenize(Ie,Fe);return v=="comment"?Dt:(Fe.lastType=v=="operator"&&(m=="++"||m=="--")?"incdec":v,D(Fe,Dt,v,m,Ie))},indent:function(Ie,Fe){if(Ie.tokenize==S||Ie.tokenize==I)return n.Pass;if(Ie.tokenize!=k)return 0;var Dt=Fe&&Fe.charAt(0),zt=Ie.lexical,yt;if(!/^\s*else\b/.test(Fe))for(var Zt=Ie.cc.length-1;Zt>=0;--Zt){var An=Ie.cc[Zt];if(An==q)zt=zt.prev;else if(An!=Wr&&An!=ee)break}for(;(zt.type=="stat"||zt.type=="form")&&(Dt=="}"||(yt=Ie.cc[Ie.cc.length-1])&&(yt==ie||yt==ce)&&!/^[,\.=+\-*:?[\(]/.test(Fe));)zt=zt.prev;a&&zt.type==")"&&zt.prev.type=="stat"&&(zt=zt.prev);var Sr=zt.type,ii=Dt==Sr;return Sr=="vardef"?zt.indented+(Ie.lastType=="operator"||Ie.lastType==","?zt.info.length+1:0):Sr=="form"&&Dt=="{"?zt.indented:Sr=="form"?zt.indented+o:Sr=="stat"?zt.indented+(ji(Ie,Fe)?a||o:0):zt.info=="switch"&&!ii&&i.doubleIndentSwitch!=!1?zt.indented+(/^(?:case|default)\b/.test(Fe)?o:2*o):zt.align?zt.column+(ii?0:1):zt.indented+(ii?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:ci,skipExpression:function(Ie){D(Ie,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var Rit=BL();const exe=pl(Rit);(function(e,t){(function(n){n(BL())})(function(n){var r=n.Pos,i="http://www.w3.org/2000/svg";function o(Z,Y){this.mv=Z,this.type=Y,this.classes=Y=="left"?{chunk:"CodeMirror-merge-l-chunk",start:"CodeMirror-merge-l-chunk-start",end:"CodeMirror-merge-l-chunk-end",insert:"CodeMirror-merge-l-inserted",del:"CodeMirror-merge-l-deleted",connect:"CodeMirror-merge-l-connect"}:{chunk:"CodeMirror-merge-r-chunk",start:"CodeMirror-merge-r-chunk-start",end:"CodeMirror-merge-r-chunk-end",insert:"CodeMirror-merge-r-inserted",del:"CodeMirror-merge-r-deleted",connect:"CodeMirror-merge-r-connect"}}o.prototype={constructor:o,init:function(Z,Y,se){this.edit=this.mv.edit,(this.edit.state.diffViews||(this.edit.state.diffViews=[])).push(this),this.orig=n(Z,G({value:Y,readOnly:!this.mv.options.allowEditingOriginals},G(se))),this.mv.options.connect=="align"&&(this.edit.state.trackAlignable||(this.edit.state.trackAlignable=new de(this.edit)),this.orig.state.trackAlignable=new de(this.orig)),this.lockButton.title=this.edit.phrase("Toggle locked scrolling"),this.lockButton.setAttribute("aria-label",this.lockButton.title),this.orig.state.diffViews=[this];var fe=se.chunkClassLocation||"background";Object.prototype.toString.call(fe)!="[object Array]"&&(fe=[fe]),this.classes.classLocation=fe,this.diff=$(x(Y),x(se.value),this.mv.options.ignoreWhitespace),this.chunks=L(this.diff),this.diffOutOfDate=this.dealigned=!1,this.needsScrollSync=null,this.showDifferences=se.showDifferences!==!1},registerEvents:function(Z){this.forceUpdate=l(this),h(this,!0,!1),u(this,Z)},setShowDifferences:function(Z){Z=Z!==!1,Z!=this.showDifferences&&(this.showDifferences=Z,this.forceUpdate("full"))}};function a(Z){Z.diffOutOfDate&&(Z.diff=$(Z.orig.getValue(),Z.edit.getValue(),Z.mv.options.ignoreWhitespace),Z.chunks=L(Z.diff),Z.diffOutOfDate=!1,n.signal(Z.edit,"updateDiff",Z.diff))}var s=!1;function l(Z){var Y={from:0,to:0,marked:[]},se={from:0,to:0,marked:[]},fe,me=!1;function Ae(st){s=!0,me=!1,st=="full"&&(Z.svg&&N(Z.svg),Z.copyButtons&&N(Z.copyButtons),g(Z.edit,Y.marked,Z.classes),g(Z.orig,se.marked,Z.classes),Y.from=Y.to=se.from=se.to=0),a(Z),Z.showDifferences&&(b(Z.edit,Z.diff,Y,DIFF_INSERT,Z.classes),b(Z.orig,Z.diff,se,DIFF_DELETE,Z.classes)),Z.mv.options.connect=="align"&&O(Z),w(Z),Z.needsScrollSync!=null&&c(Z,Z.needsScrollSync),s=!1}function Be(st){s||(Z.dealigned=!0,Ye(st))}function Ye(st){s||me||(clearTimeout(fe),st===!0&&(me=!0),fe=setTimeout(Ae,st===!0?20:250))}function Qe(st,Le){Z.diffOutOfDate||(Z.diffOutOfDate=!0,Y.from=Y.to=se.from=se.to=0),Be(Le.text.length-1!=Le.to.line-Le.from.line)}function nt(){Z.diffOutOfDate=!0,Z.dealigned=!0,Ae("full")}return Z.edit.on("change",Qe),Z.orig.on("change",Qe),Z.edit.on("swapDoc",nt),Z.orig.on("swapDoc",nt),Z.mv.options.connect=="align"&&(n.on(Z.edit.state.trackAlignable,"realign",Be),n.on(Z.orig.state.trackAlignable,"realign",Be)),Z.edit.on("viewportChange",function(){Ye(!1)}),Z.orig.on("viewportChange",function(){Ye(!1)}),Ae(),Ae}function u(Z,Y){Z.edit.on("scroll",function(){c(Z,!0)&&w(Z)}),Z.orig.on("scroll",function(){c(Z,!1)&&w(Z),Y&&c(Y,!0)&&w(Y)})}function c(Z,Y){if(Z.diffOutOfDate)return Z.lockScroll&&Z.needsScrollSync==null&&(Z.needsScrollSync=Y),!1;if(Z.needsScrollSync=null,!Z.lockScroll)return!0;var se,fe,me=+new Date;if(Y?(se=Z.edit,fe=Z.orig):(se=Z.orig,fe=Z.edit),se.state.scrollSetBy==Z&&(se.state.scrollSetAt||0)+250>me)return!1;var Ae=se.getScrollInfo();if(Z.mv.options.connect=="align")je=Ae.top;else{var Be=.5*Ae.clientHeight,Ye=Ae.top+Be,Qe=se.lineAtHeight(Ye,"local"),nt=Q(Z.chunks,Qe,Y),st=d(se,Y?nt.edit:nt.orig),Le=d(fe,Y?nt.orig:nt.edit),Me=(Ye-st.top)/(st.bot-st.top),je=Le.top-Be+Me*(Le.bot-Le.top),Ue,Te;if(je>Ae.top&&(Te=Ae.top/Be)<1)je=je*Te+Ae.top*(1-Te);else if((Ue=Ae.height-Ae.clientHeight-Ae.top)<Be){var bt=fe.getScrollInfo(),At=bt.height-bt.clientHeight-je;At>Ue&&(Te=Ue/Be)<1&&(je=je*Te+(bt.height-bt.clientHeight-Ue)*(1-Te))}}return fe.scrollTo(Ae.left,je),fe.state.scrollSetAt=me,fe.state.scrollSetBy=Z,!0}function d(Z,Y){var se=Y.after;return se==null&&(se=Z.lastLine()+1),{top:Z.heightAtLine(Y.before||0,"local"),bot:Z.heightAtLine(se,"local")}}function h(Z,Y,se){Z.lockScroll=Y,Y&&se!=!1&&c(Z,DIFF_INSERT)&&w(Z),(Y?n.addClass:n.rmClass)(Z.lockButton,"CodeMirror-merge-scrolllock-enabled")}function f(Z,Y,se){for(var fe=se.classLocation,me=0;me<fe.length;me++)Z.removeLineClass(Y,fe[me],se.chunk),Z.removeLineClass(Y,fe[me],se.start),Z.removeLineClass(Y,fe[me],se.end)}function g(Z,Y,se){for(var fe=0;fe<Y.length;++fe){var me=Y[fe];me instanceof n.TextMarker?me.clear():me.parent&&f(Z,me,se)}Y.length=0}function b(Z,Y,se,fe,me){var Ae=Z.getViewport();Z.operation(function(){se.from==se.to||Ae.from-se.to>20||se.from-Ae.to>20?(g(Z,se.marked,me),m(Z,Y,fe,se.marked,Ae.from,Ae.to,me),se.from=Ae.from,se.to=Ae.to):(Ae.from<se.from&&(m(Z,Y,fe,se.marked,Ae.from,se.from,me),se.from=Ae.from),Ae.to>se.to&&(m(Z,Y,fe,se.marked,se.to,Ae.to,me),se.to=Ae.to))})}function v(Z,Y,se,fe,me,Ae){for(var Be=se.classLocation,Ye=Z.getLineHandle(Y),Qe=0;Qe<Be.length;Qe++)fe&&Z.addLineClass(Ye,Be[Qe],se.chunk),me&&Z.addLineClass(Ye,Be[Qe],se.start),Ae&&Z.addLineClass(Ye,Be[Qe],se.end);return Ye}function m(Z,Y,se,fe,me,Ae,Be){var Ye=r(0,0),Qe=r(me,0),nt=Z.clipPos(r(Ae-1)),st=se==DIFF_DELETE?Be.del:Be.insert;function Le(He,wt){for(var Ee=Math.max(me,He),Xe=Math.min(Ae,wt),ct=Ee;ct<Xe;++ct)fe.push(v(Z,ct,Be,!0,ct==He,ct==wt-1));He==wt&&Ee==wt&&Xe==wt&&(Ee?fe.push(v(Z,Ee-1,Be,!1,!1,!0)):fe.push(v(Z,Ee,Be,!1,!0,!1)))}for(var Me=0,je=!1,Ue=0;Ue<Y.length;++Ue){var Te=Y[Ue],bt=Te[0],At=Te[1];if(bt==DIFF_EQUAL){var ht=Ye.line+(H(Y,Ue)?0:1);ne(Ye,At);var Pe=Ye.line+(V(Y,Ue)?1:0);Pe>ht&&(je&&(Le(Me,ht),je=!1),Me=Pe)}else if(je=!0,bt==se){var Ze=ne(Ye,At,!0),dt=be(Qe,Ye),Mt=ae(nt,Ze);ie(dt,Mt)||fe.push(Z.markText(dt,Mt,{className:st})),Ye=Ze}}je&&Le(Me,Ye.line+1)}function w(Z){if(Z.showDifferences){if(Z.svg){N(Z.svg);var Y=Z.gap.offsetWidth;q(Z.svg,"width",Y,"height",Z.gap.offsetHeight)}Z.copyButtons&&N(Z.copyButtons);for(var se=Z.edit.getViewport(),fe=Z.orig.getViewport(),me=Z.mv.wrap.getBoundingClientRect().top,Ae=me-Z.edit.getScrollerElement().getBoundingClientRect().top+Z.edit.getScrollInfo().top,Be=me-Z.orig.getScrollerElement().getBoundingClientRect().top+Z.orig.getScrollInfo().top,Ye=0;Ye<Z.chunks.length;Ye++){var Qe=Z.chunks[Ye];Qe.editFrom<=se.to&&Qe.editTo>=se.from&&Qe.origFrom<=fe.to&&Qe.origTo>=fe.from&&A(Z,Qe,Be,Ae,Y)}}}function k(Z,Y){for(var se=0,fe=0,me=0;me<Y.length;me++){var Ae=Y[me];if(Ae.editTo>Z&&Ae.editFrom<=Z)return null;if(Ae.editFrom>Z)break;se=Ae.editTo,fe=Ae.origTo}return fe+(Z-se)}function T(Z,Y,se){for(var fe=Z.state.trackAlignable,me=Z.firstLine(),Ae=0,Be=[],Ye=0;;Ye++){for(var Qe=Y[Ye],nt=Qe?se?Qe.origFrom:Qe.editFrom:1e9;Ae<fe.alignable.length;Ae+=2){var st=fe.alignable[Ae]+1;if(!(st<=me))if(st<=nt)Be.push(st);else break}if(!Qe)break;Be.push(me=se?Qe.origTo:Qe.editTo)}return Be}function S(Z,Y,se,fe){var me=0,Ae=0,Be=0,Ye=0;e:for(;;me++){var Qe=Z[me],nt=Y[Ae];if(!Qe&&nt==null)break;for(var st=Qe?Qe[0]:1e9,Le=nt??1e9;Be<se.length;){var Me=se[Be];if(Me.origFrom<=Le&&Me.origTo>Le){Ae++,me--;continue e}if(Me.editTo>st){if(Me.editFrom<=st)continue e;break}Ye+=Me.origTo-Me.origFrom-(Me.editTo-Me.editFrom),Be++}if(st==Le-Ye)Qe[fe]=Le,Ae++;else if(st<Le-Ye)Qe[fe]=st+Ye;else{var je=[Le-Ye,null,null];je[fe]=Le,Z.splice(me,0,je),Ae++}}}function I(Z,Y){var se=T(Z.edit,Z.chunks,!1),fe=[];if(Y)for(var me=0,Ae=0;me<Y.chunks.length;me++){for(var Be=Y.chunks[me].editTo;Ae<se.length&&se[Ae]<Be;)Ae++;(Ae==se.length||se[Ae]!=Be)&&se.splice(Ae++,0,Be)}for(var me=0;me<se.length;me++)fe.push([se[me],null,null]);return S(fe,T(Z.orig,Z.chunks,!0),Z.chunks,1),Y&&S(fe,T(Y.orig,Y.chunks,!0),Y.chunks,2),fe}function O(Z,Y){if(!(!Z.dealigned&&!Y)){if(!Z.orig.curOp)return Z.orig.operation(function(){O(Z,Y)});Z.dealigned=!1;var se=Z.mv.left==Z?Z.mv.right:Z.mv.left;se&&(a(se),se.dealigned=!1);for(var fe=I(Z,se),me=Z.mv.aligners,Ae=0;Ae<me.length;Ae++)me[Ae].clear();me.length=0;var Be=[Z.edit,Z.orig],Ye=[],Qe=[];se&&Be.push(se.orig);for(var Ae=0;Ae<Be.length;Ae++)Ye.push(Be[Ae].getScrollInfo().top),Qe.push(-Be[Ae].getScrollerElement().getBoundingClientRect().top);(Qe[0]!=Qe[1]||Be.length==3&&Qe[1]!=Qe[2])&&y(Be,Qe,[0,0,0],me);for(var nt=0;nt<fe.length;nt++)y(Be,Qe,fe[nt],me);for(var Ae=0;Ae<Be.length;Ae++)Be[Ae].scrollTo(null,Ye[Ae])}}function y(Z,Y,se,fe){for(var me=-1e8,Ae=[],Be=0;Be<Z.length;Be++)if(se[Be]!=null){var Ye=Z[Be].heightAtLine(se[Be],"local")-Y[Be];Ae[Be]=Ye,me=Math.max(me,Ye)}for(var Be=0;Be<Z.length;Be++)if(se[Be]!=null){var Qe=me-Ae[Be];Qe>1&&fe.push(_(Z[Be],se[Be],Qe))}}function _(Z,Y,se){var fe=!0;Y>Z.lastLine()&&(Y--,fe=!1);var me=document.createElement("div");return me.className="CodeMirror-merge-spacer",me.style.height=se+"px",me.style.minWidth="1px",Z.addLineWidget(Y,me,{height:se,above:fe,mergeSpacer:!0,handleMouseEvents:!0})}function A(Z,Y,se,fe,me){var Ae=Z.type=="left",Be=Z.orig.heightAtLine(Y.origFrom,"local",!0)-se;if(Z.svg){var Ye=Be,Qe=Z.edit.heightAtLine(Y.editFrom,"local",!0)-fe;if(Ae){var nt=Ye;Ye=Qe,Qe=nt}var st=Z.orig.heightAtLine(Y.origTo,"local",!0)-se,Le=Z.edit.heightAtLine(Y.editTo,"local",!0)-fe;if(Ae){var nt=st;st=Le,Le=nt}var Me=" C "+me/2+" "+Qe+" "+me/2+" "+Ye+" "+(me+2)+" "+Ye,je=" C "+me/2+" "+st+" "+me/2+" "+Le+" -1 "+Le;q(Z.svg.appendChild(document.createElementNS(i,"path")),"d","M -1 "+Qe+Me+" L "+(me+2)+" "+st+je+" z","class",Z.classes.connect)}if(Z.copyButtons){var Ue=Z.copyButtons.appendChild(ee("div",Z.type=="left"?"⇝":"⇜","CodeMirror-merge-copy")),Te=Z.mv.options.allowEditingOriginals;if(Ue.title=Z.edit.phrase(Te?"Push to left":"Revert chunk"),Ue.chunk=Y,Ue.style.top=(Y.origTo>Y.origFrom?Be:Z.edit.heightAtLine(Y.editFrom,"local")-fe)+"px",Ue.setAttribute("role","button"),Ue.setAttribute("tabindex","0"),Ue.setAttribute("aria-label",Ue.title),Te){var bt=Z.edit.heightAtLine(Y.editFrom,"local")-fe,At=Z.copyButtons.appendChild(ee("div",Z.type=="right"?"⇝":"⇜","CodeMirror-merge-copy-reverse"));At.title="Push to right",At.chunk={editFrom:Y.origFrom,editTo:Y.origTo,origFrom:Y.editFrom,origTo:Y.editTo},At.style.top=bt+"px",Z.type=="right"?At.style.left="2px":At.style.right="2px",At.setAttribute("role","button"),At.setAttribute("tabindex","0"),At.setAttribute("aria-label",At.title)}}}function R(Z,Y,se,fe){if(!Z.diffOutOfDate){var me=fe.origTo>se.lastLine()?r(fe.origFrom-1):r(fe.origFrom,0),Ae=r(fe.origTo,0),Be=fe.editTo>Y.lastLine()?r(fe.editFrom-1):r(fe.editFrom,0),Ye=r(fe.editTo,0),Qe=Z.mv.options.revertChunk;Qe?Qe(Z.mv,se,me,Ae,Y,Be,Ye):Y.replaceRange(se.getRange(me,Ae),Be,Ye)}}var D=n.MergeView=function(Z,Y){if(!(this instanceof D))return new D(Z,Y);this.options=Y;var se=Y.origLeft,fe=Y.origRight==null?Y.orig:Y.origRight,me=se!=null,Ae=fe!=null,Be=1+(me?1:0)+(Ae?1:0),Ye=[],Qe=this.left=null,nt=this.right=null,st=this;if(me){Qe=this.left=new o(this,"left");var Le=ee("div",null,"CodeMirror-merge-pane CodeMirror-merge-left");Ye.push(Le),Ye.push(C(Qe))}var Me=ee("div",null,"CodeMirror-merge-pane CodeMirror-merge-editor");if(Ye.push(Me),Ae){nt=this.right=new o(this,"right"),Ye.push(C(nt));var je=ee("div",null,"CodeMirror-merge-pane CodeMirror-merge-right");Ye.push(je)}(Ae?je:Me).className+=" CodeMirror-merge-pane-rightmost",Ye.push(ee("div",null,null,"height: 0; clear: both;"));var Ue=this.wrap=Z.appendChild(ee("div",Ye,"CodeMirror-merge CodeMirror-merge-"+Be+"pane"));this.edit=n(Me,G(Y)),Qe&&Qe.init(Le,se,Y),nt&&nt.init(je,fe,Y),Y.collapseIdentical&&this.editor().operation(function(){ue(st,Y.collapseIdentical)}),Y.connect=="align"&&(this.aligners=[],O(this.left||this.right,!0)),Qe&&Qe.registerEvents(nt),nt&&nt.registerEvents(Qe);var Te=function(){Qe&&w(Qe),nt&&w(nt)};n.on(window,"resize",Te);var bt=setInterval(function(){for(var At=Ue.parentNode;At&&At!=document.body;At=At.parentNode);At||(clearInterval(bt),n.off(window,"resize",Te))},5e3)};function C(Z){var Y=Z.lockButton=ee("div",null,"CodeMirror-merge-scrolllock");Y.setAttribute("role","button"),Y.setAttribute("tabindex","0");var se=ee("div",[Y],"CodeMirror-merge-scrolllock-wrap");n.on(Y,"click",function(){h(Z,!Z.lockScroll)}),n.on(Y,"keyup",function(Be){(Be.key==="Enter"||Be.code==="Space")&&h(Z,!Z.lockScroll)});var fe=[se];if(Z.mv.options.revertButtons!==!1){Z.copyButtons=ee("div",null,"CodeMirror-merge-copybuttons-"+Z.type);var me=function(Be){var Ye=Be.target||Be.srcElement;if(Ye.chunk){if(Ye.className=="CodeMirror-merge-copy-reverse"){R(Z,Z.orig,Z.edit,Ye.chunk);return}R(Z,Z.edit,Z.orig,Ye.chunk)}};n.on(Z.copyButtons,"click",me),n.on(Z.copyButtons,"keyup",function(Be){(Be.key==="Enter"||Be.code==="Space")&&me(Be)}),fe.unshift(Z.copyButtons)}if(Z.mv.options.connect!="align"){var Ae=document.createElementNS&&document.createElementNS(i,"svg");Ae&&!Ae.createSVGRect&&(Ae=null),Z.svg=Ae,Ae&&fe.push(Ae)}return Z.gap=ee("div",fe,"CodeMirror-merge-gap")}D.prototype={constructor:D,editor:function(){return this.edit},rightOriginal:function(){return this.right&&this.right.orig},leftOriginal:function(){return this.left&&this.left.orig},setShowDifferences:function(Z){this.right&&this.right.setShowDifferences(Z),this.left&&this.left.setShowDifferences(Z)},rightChunks:function(){if(this.right)return a(this.right),this.right.chunks},leftChunks:function(){if(this.left)return a(this.left),this.left.chunks}};function x(Z){return typeof Z=="string"?Z:Z.getValue()}var P;function $(Z,Y,se){P||(P=new diff_match_patch);for(var fe=P.diff_main(Z,Y),me=0;me<fe.length;++me){var Ae=fe[me];(se?!/[^ \t]/.test(Ae[1]):!Ae[1])?fe.splice(me--,1):me&&fe[me-1][0]==Ae[0]&&(fe.splice(me--,1),fe[me][1]+=Ae[1])}return fe}function L(Z){var Y=[];if(!Z.length)return Y;for(var se=0,fe=0,me=r(0,0),Ae=r(0,0),Be=0;Be<Z.length;++Be){var Ye=Z[Be],Qe=Ye[0];if(Qe==DIFF_EQUAL){var nt=!H(Z,Be)||me.line<se||Ae.line<fe?1:0,st=me.line+nt,Le=Ae.line+nt;ne(me,Ye[1],null,Ae);var Me=V(Z,Be)?1:0,je=me.line+Me,Ue=Ae.line+Me;je>st&&(Be&&Y.push({origFrom:fe,origTo:Le,editFrom:se,editTo:st}),se=je,fe=Ue)}else ne(Qe==DIFF_INSERT?me:Ae,Ye[1])}return(se<=me.line||fe<=Ae.line)&&Y.push({origFrom:fe,origTo:Ae.line+1,editFrom:se,editTo:me.line+1}),Y}function V(Z,Y){if(Y==Z.length-1)return!0;var se=Z[Y+1][1];return se.length==1&&Y<Z.length-2||se.charCodeAt(0)!=10?!1:Y==Z.length-2?!0:(se=Z[Y+2][1],(se.length>1||Y==Z.length-3)&&se.charCodeAt(0)==10)}function H(Z,Y){if(Y==0)return!0;var se=Z[Y-1][1];return se.charCodeAt(se.length-1)!=10?!1:Y==1?!0:(se=Z[Y-2][1],se.charCodeAt(se.length-1)==10)}function Q(Z,Y,se){for(var fe,me,Ae,Be,Ye=0;Ye<Z.length;Ye++){var Qe=Z[Ye],nt=se?Qe.editFrom:Qe.origFrom,st=se?Qe.editTo:Qe.origTo;me==null&&(nt>Y?(me=Qe.editFrom,Be=Qe.origFrom):st>Y&&(me=Qe.editTo,Be=Qe.origTo)),st<=Y?(fe=Qe.editTo,Ae=Qe.origTo):nt<=Y&&(fe=Qe.editFrom,Ae=Qe.origFrom)}return{edit:{before:fe,after:me},orig:{before:Ae,after:Be}}}function U(Z,Y,se){Z.addLineClass(Y,"wrap","CodeMirror-merge-collapsed-line");var fe=document.createElement("span");fe.className="CodeMirror-merge-collapsed-widget",fe.title=Z.phrase("Identical text collapsed. Click to expand.");var me=Z.markText(r(Y,0),r(se-1),{inclusiveLeft:!0,inclusiveRight:!0,replacedWith:fe,clearOnEnter:!0});function Ae(){me.clear(),Z.removeLineClass(Y,"wrap","CodeMirror-merge-collapsed-line")}return me.explicitlyCleared&&Ae(),n.on(fe,"click",Ae),me.on("clear",Ae),n.on(fe,"click",Ae),{mark:me,clear:Ae}}function K(Z,Y){var se=[];function fe(){for(var Ye=0;Ye<se.length;Ye++)se[Ye].clear()}for(var me=0;me<Y.length;me++){var Ae=Y[me],Be=U(Ae.cm,Ae.line,Ae.line+Z);se.push(Be),Be.mark.on("clear",fe)}return se[0].mark}function J(Z,Y,se,fe){for(var me=0;me<Z.chunks.length;me++)for(var Ae=Z.chunks[me],Be=Ae.editFrom-Y;Be<Ae.editTo+Y;Be++){var Ye=Be+se;Ye>=0&&Ye<fe.length&&(fe[Ye]=!1)}}function ue(Z,Y){typeof Y!="number"&&(Y=2);for(var se=[],fe=Z.editor(),me=fe.firstLine(),Ae=me,Be=fe.lastLine();Ae<=Be;Ae++)se.push(!0);Z.left&&J(Z.left,Y,me,se),Z.right&&J(Z.right,Y,me,se);for(var Ye=0;Ye<se.length;Ye++)if(se[Ye]){for(var Qe=Ye+me,nt=1;Ye<se.length-1&&se[Ye+1];Ye++,nt++);if(nt>Y){var st=[{line:Qe,cm:fe}];Z.left&&st.push({line:k(Qe,Z.left.chunks),cm:Z.left.orig}),Z.right&&st.push({line:k(Qe,Z.right.chunks),cm:Z.right.orig});var Le=K(nt,st);Z.options.onCollapse&&Z.options.onCollapse(Z,Qe,nt,Le)}}}function ee(Z,Y,se,fe){var me=document.createElement(Z);if(se&&(me.className=se),fe&&(me.style.cssText=fe),typeof Y=="string")me.appendChild(document.createTextNode(Y));else if(Y)for(var Ae=0;Ae<Y.length;++Ae)me.appendChild(Y[Ae]);return me}function N(Z){for(var Y=Z.childNodes.length;Y>0;--Y)Z.removeChild(Z.firstChild)}function q(Z){for(var Y=1;Y<arguments.length;Y+=2)Z.setAttribute(arguments[Y],arguments[Y+1])}function G(Z,Y){Y||(Y={});for(var se in Z)Z.hasOwnProperty(se)&&(Y[se]=Z[se]);return Y}function ne(Z,Y,se,fe){for(var me=se?r(Z.line,Z.ch):Z,Ae=0;;){var Be=Y.indexOf(`
|
|
`,Ae);if(Be==-1)break;++me.line,fe&&++fe.line,Ae=Be+1}return me.ch=(Ae?0:me.ch)+(Y.length-Ae),fe&&(fe.ch=(Ae?0:fe.ch)+(Y.length-Ae)),me}var le=1,oe=2,ve=4;function de(Z){this.cm=Z,this.alignable=[],this.height=Z.doc.height;var Y=this;Z.on("markerAdded",function(se,fe){if(fe.collapsed){var me=fe.find(1);me!=null&&Y.set(me.line,ve)}}),Z.on("markerCleared",function(se,fe,me,Ae){Ae!=null&&fe.collapsed&&Y.check(Ae,ve,Y.hasMarker)}),Z.on("markerChanged",this.signal.bind(this)),Z.on("lineWidgetAdded",function(se,fe,me){fe.mergeSpacer||(fe.above?Y.set(me-1,oe):Y.set(me,le))}),Z.on("lineWidgetCleared",function(se,fe,me){fe.mergeSpacer||(fe.above?Y.check(me-1,oe,Y.hasWidgetBelow):Y.check(me,le,Y.hasWidget))}),Z.on("lineWidgetChanged",this.signal.bind(this)),Z.on("change",function(se,fe){var me=fe.from.line,Ae=fe.to.line-fe.from.line,Be=fe.text.length-1,Ye=me+Be;(Ae||Be)&&Y.map(me,Ae,Be),Y.check(Ye,ve,Y.hasMarker),(Ae||Be)&&Y.check(fe.from.line,ve,Y.hasMarker)}),Z.on("viewportChange",function(){Y.cm.doc.height!=Y.height&&Y.signal()})}de.prototype={signal:function(){n.signal(this,"realign"),this.height=this.cm.doc.height},set:function(Z,Y){for(var se=-1;se<this.alignable.length;se+=2){var fe=this.alignable[se]-Z;if(fe==0){if((this.alignable[se+1]&Y)==Y)return;this.alignable[se+1]|=Y,this.signal();return}if(fe>0)break}this.signal(),this.alignable.splice(se,0,Z,Y)},find:function(Z){for(var Y=0;Y<this.alignable.length;Y+=2)if(this.alignable[Y]==Z)return Y;return-1},check:function(Z,Y,se){var fe=this.find(Z);if(!(fe==-1||!(this.alignable[fe+1]&Y))&&!se.call(this,Z)){this.signal();var me=this.alignable[fe+1]&~Y;me?this.alignable[fe+1]=me:this.alignable.splice(fe,2)}},hasMarker:function(Z){var Y=this.cm.getLineHandle(Z);if(Y.markedSpans){for(var se=0;se<Y.markedSpans.length;se++)if(Y.markedSpans[se].marker.collapsed&&Y.markedSpans[se].to!=null)return!0}return!1},hasWidget:function(Z){var Y=this.cm.getLineHandle(Z);if(Y.widgets){for(var se=0;se<Y.widgets.length;se++)if(!Y.widgets[se].above&&!Y.widgets[se].mergeSpacer)return!0}return!1},hasWidgetBelow:function(Z){if(Z==this.cm.lastLine())return!1;var Y=this.cm.getLineHandle(Z+1);if(Y.widgets){for(var se=0;se<Y.widgets.length;se++)if(Y.widgets[se].above&&!Y.widgets[se].mergeSpacer)return!0}return!1},map:function(Z,Y,se){for(var fe=se-Y,me=Z+Y,Ae=-1,Be=-1,Ye=0;Ye<this.alignable.length;Ye+=2){var Qe=this.alignable[Ye];Qe==Z&&this.alignable[Ye+1]&oe&&(Ae=Ye),Qe==me&&this.alignable[Ye+1]&oe&&(Be=Ye),!(Qe<=Z)&&(Qe<me?this.alignable.splice(Ye--,2):this.alignable[Ye]+=fe)}if(Ae>-1){var nt=this.alignable[Ae+1];nt==oe?this.alignable.splice(Ae,2):this.alignable[Ae+1]=nt&~oe}Be>-1&&se&&this.set(Z+se,oe)}};function ae(Z,Y){return(Z.line-Y.line||Z.ch-Y.ch)<0?Z:Y}function be(Z,Y){return(Z.line-Y.line||Z.ch-Y.ch)>0?Z:Y}function ie(Z,Y){return Z.line==Y.line&&Z.ch==Y.ch}function ce(Z,Y,se){for(var fe=Z.length-1;fe>=0;fe--){var me=Z[fe],Ae=(se?me.origTo:me.editTo)-1;if(Ae<Y)return Ae}}function pe(Z,Y,se){for(var fe=0;fe<Z.length;fe++){var me=Z[fe],Ae=se?me.origFrom:me.editFrom;if(Ae>Y)return Ae}}function X(Z,Y){var se=null,fe=Z.state.diffViews,me=Z.getCursor().line;if(fe)for(var Ae=0;Ae<fe.length;Ae++){var Be=fe[Ae],Ye=Z==Be.orig;a(Be);var Qe=Y<0?ce(Be.chunks,me,Ye):pe(Be.chunks,me,Ye);Qe!=null&&(se==null||(Y<0?Qe>se:Qe<se))&&(se=Qe)}if(se!=null)Z.setCursor(se,0);else return n.Pass}n.commands.goNextDiff=function(Z){return X(Z,1)},n.commands.goPrevDiff=function(Z){return X(Z,-1)}})})();var txe={exports:{}};(function(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,i=0;t.Diff=function(o,a){return[o,a]},t.prototype.diff_main=function(o,a,s,l){typeof l>"u"&&(this.Diff_Timeout<=0?l=Number.MAX_VALUE:l=new Date().getTime()+this.Diff_Timeout*1e3);var u=l;if(o==null||a==null)throw new Error("Null input. (diff_main)");if(o==a)return o?[new t.Diff(i,o)]:[];typeof s>"u"&&(s=!0);var c=s,d=this.diff_commonPrefix(o,a),h=o.substring(0,d);o=o.substring(d),a=a.substring(d),d=this.diff_commonSuffix(o,a);var f=o.substring(o.length-d);o=o.substring(0,o.length-d),a=a.substring(0,a.length-d);var g=this.diff_compute_(o,a,c,u);return h&&g.unshift(new t.Diff(i,h)),f&&g.push(new t.Diff(i,f)),this.diff_cleanupMerge(g),g},t.prototype.diff_compute_=function(o,a,s,l){var u;if(!o)return[new t.Diff(r,a)];if(!a)return[new t.Diff(n,o)];var c=o.length>a.length?o:a,d=o.length>a.length?a:o,h=c.indexOf(d);if(h!=-1)return u=[new t.Diff(r,c.substring(0,h)),new t.Diff(i,d),new t.Diff(r,c.substring(h+d.length))],o.length>a.length&&(u[0][0]=u[2][0]=n),u;if(d.length==1)return[new t.Diff(n,o),new t.Diff(r,a)];var f=this.diff_halfMatch_(o,a);if(f){var g=f[0],b=f[1],v=f[2],m=f[3],w=f[4],k=this.diff_main(g,v,s,l),T=this.diff_main(b,m,s,l);return k.concat([new t.Diff(i,w)],T)}return s&&o.length>100&&a.length>100?this.diff_lineMode_(o,a,l):this.diff_bisect_(o,a,l)},t.prototype.diff_lineMode_=function(o,a,s){var l=this.diff_linesToChars_(o,a);o=l.chars1,a=l.chars2;var u=l.lineArray,c=this.diff_main(o,a,!1,s);this.diff_charsToLines_(c,u),this.diff_cleanupSemantic(c),c.push(new t.Diff(i,""));for(var d=0,h=0,f=0,g="",b="";d<c.length;){switch(c[d][0]){case r:f++,b+=c[d][1];break;case n:h++,g+=c[d][1];break;case i:if(h>=1&&f>=1){c.splice(d-h-f,h+f),d=d-h-f;for(var v=this.diff_main(g,b,!1,s),m=v.length-1;m>=0;m--)c.splice(d,0,v[m]);d=d+v.length}f=0,h=0,g="",b="";break}d++}return c.pop(),c},t.prototype.diff_bisect_=function(o,a,s){for(var l=o.length,u=a.length,c=Math.ceil((l+u)/2),d=c,h=2*c,f=new Array(h),g=new Array(h),b=0;b<h;b++)f[b]=-1,g[b]=-1;f[d+1]=0,g[d+1]=0;for(var v=l-u,m=v%2!=0,w=0,k=0,T=0,S=0,I=0;I<c&&!(new Date().getTime()>s);I++){for(var O=-I+w;O<=I-k;O+=2){var y=d+O,_;O==-I||O!=I&&f[y-1]<f[y+1]?_=f[y+1]:_=f[y-1]+1;for(var A=_-O;_<l&&A<u&&o.charAt(_)==a.charAt(A);)_++,A++;if(f[y]=_,_>l)k+=2;else if(A>u)w+=2;else if(m){var R=d+v-O;if(R>=0&&R<h&&g[R]!=-1){var D=l-g[R];if(_>=D)return this.diff_bisectSplit_(o,a,_,A,s)}}}for(var C=-I+T;C<=I-S;C+=2){var R=d+C,D;C==-I||C!=I&&g[R-1]<g[R+1]?D=g[R+1]:D=g[R-1]+1;for(var x=D-C;D<l&&x<u&&o.charAt(l-D-1)==a.charAt(u-x-1);)D++,x++;if(g[R]=D,D>l)S+=2;else if(x>u)T+=2;else if(!m){var y=d+v-C;if(y>=0&&y<h&&f[y]!=-1){var _=f[y],A=d+_-y;if(D=l-D,_>=D)return this.diff_bisectSplit_(o,a,_,A,s)}}}}return[new t.Diff(n,o),new t.Diff(r,a)]},t.prototype.diff_bisectSplit_=function(o,a,s,l,u){var c=o.substring(0,s),d=a.substring(0,l),h=o.substring(s),f=a.substring(l),g=this.diff_main(c,d,!1,u),b=this.diff_main(h,f,!1,u);return g.concat(b)},t.prototype.diff_linesToChars_=function(o,a){var s=[],l={};s[0]="";function u(f){for(var g="",b=0,v=-1,m=s.length;v<f.length-1;){v=f.indexOf(`
|
|
`,b),v==-1&&(v=f.length-1);var w=f.substring(b,v+1);(l.hasOwnProperty?l.hasOwnProperty(w):l[w]!==void 0)?g+=String.fromCharCode(l[w]):(m==c&&(w=f.substring(b),v=f.length),g+=String.fromCharCode(m),l[w]=m,s[m++]=w),b=v+1}return g}var c=4e4,d=u(o);c=65535;var h=u(a);return{chars1:d,chars2:h,lineArray:s}},t.prototype.diff_charsToLines_=function(o,a){for(var s=0;s<o.length;s++){for(var l=o[s][1],u=[],c=0;c<l.length;c++)u[c]=a[l.charCodeAt(c)];o[s][1]=u.join("")}},t.prototype.diff_commonPrefix=function(o,a){if(!o||!a||o.charAt(0)!=a.charAt(0))return 0;for(var s=0,l=Math.min(o.length,a.length),u=l,c=0;s<u;)o.substring(c,u)==a.substring(c,u)?(s=u,c=s):l=u,u=Math.floor((l-s)/2+s);return u},t.prototype.diff_commonSuffix=function(o,a){if(!o||!a||o.charAt(o.length-1)!=a.charAt(a.length-1))return 0;for(var s=0,l=Math.min(o.length,a.length),u=l,c=0;s<u;)o.substring(o.length-u,o.length-c)==a.substring(a.length-u,a.length-c)?(s=u,c=s):l=u,u=Math.floor((l-s)/2+s);return u},t.prototype.diff_commonOverlap_=function(o,a){var s=o.length,l=a.length;if(s==0||l==0)return 0;s>l?o=o.substring(s-l):s<l&&(a=a.substring(0,s));var u=Math.min(s,l);if(o==a)return u;for(var c=0,d=1;;){var h=o.substring(u-d),f=a.indexOf(h);if(f==-1)return c;d+=f,(f==0||o.substring(u-d)==a.substring(0,d))&&(c=d,d++)}},t.prototype.diff_halfMatch_=function(o,a){if(this.Diff_Timeout<=0)return null;var s=o.length>a.length?o:a,l=o.length>a.length?a:o;if(s.length<4||l.length*2<s.length)return null;var u=this;function c(k,T,S){for(var I=k.substring(S,S+Math.floor(k.length/4)),O=-1,y="",_,A,R,D;(O=T.indexOf(I,O+1))!=-1;){var C=u.diff_commonPrefix(k.substring(S),T.substring(O)),x=u.diff_commonSuffix(k.substring(0,S),T.substring(0,O));y.length<x+C&&(y=T.substring(O-x,O)+T.substring(O,O+C),_=k.substring(0,S-x),A=k.substring(S+C),R=T.substring(0,O-x),D=T.substring(O+C))}return y.length*2>=k.length?[_,A,R,D,y]:null}var d=c(s,l,Math.ceil(s.length/4)),h=c(s,l,Math.ceil(s.length/2)),f;if(!d&&!h)return null;h?d?f=d[4].length>h[4].length?d:h:f=h:f=d;var g,b,v,m;o.length>a.length?(g=f[0],b=f[1],v=f[2],m=f[3]):(v=f[0],m=f[1],g=f[2],b=f[3]);var w=f[4];return[g,b,v,m,w]},t.prototype.diff_cleanupSemantic=function(o){for(var a=!1,s=[],l=0,u=null,c=0,d=0,h=0,f=0,g=0;c<o.length;)o[c][0]==i?(s[l++]=c,d=f,h=g,f=0,g=0,u=o[c][1]):(o[c][0]==r?f+=o[c][1].length:g+=o[c][1].length,u&&u.length<=Math.max(d,h)&&u.length<=Math.max(f,g)&&(o.splice(s[l-1],0,new t.Diff(n,u)),o[s[l-1]+1][0]=r,l--,l--,c=l>0?s[l-1]:-1,d=0,h=0,f=0,g=0,u=null,a=!0)),c++;for(a&&this.diff_cleanupMerge(o),this.diff_cleanupSemanticLossless(o),c=1;c<o.length;){if(o[c-1][0]==n&&o[c][0]==r){var b=o[c-1][1],v=o[c][1],m=this.diff_commonOverlap_(b,v),w=this.diff_commonOverlap_(v,b);m>=w?(m>=b.length/2||m>=v.length/2)&&(o.splice(c,0,new t.Diff(i,v.substring(0,m))),o[c-1][1]=b.substring(0,b.length-m),o[c+1][1]=v.substring(m),c++):(w>=b.length/2||w>=v.length/2)&&(o.splice(c,0,new t.Diff(i,b.substring(0,w))),o[c-1][0]=r,o[c-1][1]=v.substring(0,v.length-w),o[c+1][0]=n,o[c+1][1]=b.substring(w),c++),c++}c++}},t.prototype.diff_cleanupSemanticLossless=function(o){function a(w,k){if(!w||!k)return 6;var T=w.charAt(w.length-1),S=k.charAt(0),I=T.match(t.nonAlphaNumericRegex_),O=S.match(t.nonAlphaNumericRegex_),y=I&&T.match(t.whitespaceRegex_),_=O&&S.match(t.whitespaceRegex_),A=y&&T.match(t.linebreakRegex_),R=_&&S.match(t.linebreakRegex_),D=A&&w.match(t.blanklineEndRegex_),C=R&&k.match(t.blanklineStartRegex_);return D||C?5:A||R?4:I&&!y&&_?3:y||_?2:I||O?1:0}for(var s=1;s<o.length-1;){if(o[s-1][0]==i&&o[s+1][0]==i){var l=o[s-1][1],u=o[s][1],c=o[s+1][1],d=this.diff_commonSuffix(l,u);if(d){var h=u.substring(u.length-d);l=l.substring(0,l.length-d),u=h+u.substring(0,u.length-d),c=h+c}for(var f=l,g=u,b=c,v=a(l,u)+a(u,c);u.charAt(0)===c.charAt(0);){l+=u.charAt(0),u=u.substring(1)+c.charAt(0),c=c.substring(1);var m=a(l,u)+a(u,c);m>=v&&(v=m,f=l,g=u,b=c)}o[s-1][1]!=f&&(f?o[s-1][1]=f:(o.splice(s-1,1),s--),o[s][1]=g,b?o[s+1][1]=b:(o.splice(s+1,1),s--))}s++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(o){for(var a=!1,s=[],l=0,u=null,c=0,d=!1,h=!1,f=!1,g=!1;c<o.length;)o[c][0]==i?(o[c][1].length<this.Diff_EditCost&&(f||g)?(s[l++]=c,d=f,h=g,u=o[c][1]):(l=0,u=null),f=g=!1):(o[c][0]==n?g=!0:f=!0,u&&(d&&h&&f&&g||u.length<this.Diff_EditCost/2&&d+h+f+g==3)&&(o.splice(s[l-1],0,new t.Diff(n,u)),o[s[l-1]+1][0]=r,l--,u=null,d&&h?(f=g=!0,l=0):(l--,c=l>0?s[l-1]:-1,f=g=!1),a=!0)),c++;a&&this.diff_cleanupMerge(o)},t.prototype.diff_cleanupMerge=function(o){o.push(new t.Diff(i,""));for(var a=0,s=0,l=0,u="",c="",d;a<o.length;)switch(o[a][0]){case r:l++,c+=o[a][1],a++;break;case n:s++,u+=o[a][1],a++;break;case i:s+l>1?(s!==0&&l!==0&&(d=this.diff_commonPrefix(c,u),d!==0&&(a-s-l>0&&o[a-s-l-1][0]==i?o[a-s-l-1][1]+=c.substring(0,d):(o.splice(0,0,new t.Diff(i,c.substring(0,d))),a++),c=c.substring(d),u=u.substring(d)),d=this.diff_commonSuffix(c,u),d!==0&&(o[a][1]=c.substring(c.length-d)+o[a][1],c=c.substring(0,c.length-d),u=u.substring(0,u.length-d))),a-=s+l,o.splice(a,s+l),u.length&&(o.splice(a,0,new t.Diff(n,u)),a++),c.length&&(o.splice(a,0,new t.Diff(r,c)),a++),a++):a!==0&&o[a-1][0]==i?(o[a-1][1]+=o[a][1],o.splice(a,1)):a++,l=0,s=0,u="",c="";break}o[o.length-1][1]===""&&o.pop();var h=!1;for(a=1;a<o.length-1;)o[a-1][0]==i&&o[a+1][0]==i&&(o[a][1].substring(o[a][1].length-o[a-1][1].length)==o[a-1][1]?(o[a][1]=o[a-1][1]+o[a][1].substring(0,o[a][1].length-o[a-1][1].length),o[a+1][1]=o[a-1][1]+o[a+1][1],o.splice(a-1,1),h=!0):o[a][1].substring(0,o[a+1][1].length)==o[a+1][1]&&(o[a-1][1]+=o[a+1][1],o[a][1]=o[a][1].substring(o[a+1][1].length)+o[a+1][1],o.splice(a+1,1),h=!0)),a++;h&&this.diff_cleanupMerge(o)},t.prototype.diff_xIndex=function(o,a){var s=0,l=0,u=0,c=0,d;for(d=0;d<o.length&&(o[d][0]!==r&&(s+=o[d][1].length),o[d][0]!==n&&(l+=o[d][1].length),!(s>a));d++)u=s,c=l;return o.length!=d&&o[d][0]===n?c:c+(a-u)},t.prototype.diff_prettyHtml=function(o){for(var a=[],s=/&/g,l=/</g,u=/>/g,c=/\n/g,d=0;d<o.length;d++){var h=o[d][0],f=o[d][1],g=f.replace(s,"&").replace(l,"<").replace(u,">").replace(c,"¶<br>");switch(h){case r:a[d]='<ins style="background:#e6ffe6;">'+g+"</ins>";break;case n:a[d]='<del style="background:#ffe6e6;">'+g+"</del>";break;case i:a[d]="<span>"+g+"</span>";break}}return a.join("")},t.prototype.diff_text1=function(o){for(var a=[],s=0;s<o.length;s++)o[s][0]!==r&&(a[s]=o[s][1]);return a.join("")},t.prototype.diff_text2=function(o){for(var a=[],s=0;s<o.length;s++)o[s][0]!==n&&(a[s]=o[s][1]);return a.join("")},t.prototype.diff_levenshtein=function(o){for(var a=0,s=0,l=0,u=0;u<o.length;u++){var c=o[u][0],d=o[u][1];switch(c){case r:s+=d.length;break;case n:l+=d.length;break;case i:a+=Math.max(s,l),s=0,l=0;break}}return a+=Math.max(s,l),a},t.prototype.diff_toDelta=function(o){for(var a=[],s=0;s<o.length;s++)switch(o[s][0]){case r:a[s]="+"+encodeURI(o[s][1]);break;case n:a[s]="-"+o[s][1].length;break;case i:a[s]="="+o[s][1].length;break}return a.join(" ").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(o,a){for(var s=[],l=0,u=0,c=a.split(/\t/g),d=0;d<c.length;d++){var h=c[d].substring(1);switch(c[d].charAt(0)){case"+":try{s[l++]=new t.Diff(r,decodeURI(h))}catch{throw new Error("Illegal escape in diff_fromDelta: "+h)}break;case"-":case"=":var f=parseInt(h,10);if(isNaN(f)||f<0)throw new Error("Invalid number in diff_fromDelta: "+h);var g=o.substring(u,u+=f);c[d].charAt(0)=="="?s[l++]=new t.Diff(i,g):s[l++]=new t.Diff(n,g);break;default:if(c[d])throw new Error("Invalid diff operation in diff_fromDelta: "+c[d])}}if(u!=o.length)throw new Error("Delta length ("+u+") does not equal source text length ("+o.length+").");return s},t.prototype.match_main=function(o,a,s){if(o==null||a==null||s==null)throw new Error("Null input. (match_main)");return s=Math.max(0,Math.min(s,o.length)),o==a?0:o.length?o.substring(s,s+a.length)==a?s:this.match_bitap_(o,a,s):-1},t.prototype.match_bitap_=function(o,a,s){if(a.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var l=this.match_alphabet_(a),u=this;function c(_,A){var R=_/a.length,D=Math.abs(s-A);return u.Match_Distance?R+D/u.Match_Distance:D?1:R}var d=this.Match_Threshold,h=o.indexOf(a,s);h!=-1&&(d=Math.min(c(0,h),d),h=o.lastIndexOf(a,s+a.length),h!=-1&&(d=Math.min(c(0,h),d)));var f=1<<a.length-1;h=-1;for(var g,b,v=a.length+o.length,m,w=0;w<a.length;w++){for(g=0,b=v;g<b;)c(w,s+b)<=d?g=b:v=b,b=Math.floor((v-g)/2+g);v=b;var k=Math.max(1,s-b+1),T=Math.min(s+b,o.length)+a.length,S=Array(T+2);S[T+1]=(1<<w)-1;for(var I=T;I>=k;I--){var O=l[o.charAt(I-1)];if(w===0?S[I]=(S[I+1]<<1|1)&O:S[I]=(S[I+1]<<1|1)&O|((m[I+1]|m[I])<<1|1)|m[I+1],S[I]&f){var y=c(w,I-1);if(y<=d)if(d=y,h=I-1,h>s)k=Math.max(1,2*s-h);else break}}if(c(w+1,s)>d)break;m=S}return h},t.prototype.match_alphabet_=function(o){for(var a={},s=0;s<o.length;s++)a[o.charAt(s)]=0;for(var s=0;s<o.length;s++)a[o.charAt(s)]|=1<<o.length-s-1;return a},t.prototype.patch_addContext_=function(o,a){if(a.length!=0){if(o.start2===null)throw Error("patch not initialized");for(var s=a.substring(o.start2,o.start2+o.length1),l=0;a.indexOf(s)!=a.lastIndexOf(s)&&s.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)l+=this.Patch_Margin,s=a.substring(o.start2-l,o.start2+o.length1+l);l+=this.Patch_Margin;var u=a.substring(o.start2-l,o.start2);u&&o.diffs.unshift(new t.Diff(i,u));var c=a.substring(o.start2+o.length1,o.start2+o.length1+l);c&&o.diffs.push(new t.Diff(i,c)),o.start1-=u.length,o.start2-=u.length,o.length1+=u.length+c.length,o.length2+=u.length+c.length}},t.prototype.patch_make=function(o,a,s){var l,u;if(typeof o=="string"&&typeof a=="string"&&typeof s>"u")l=o,u=this.diff_main(l,a,!0),u.length>2&&(this.diff_cleanupSemantic(u),this.diff_cleanupEfficiency(u));else if(o&&typeof o=="object"&&typeof a>"u"&&typeof s>"u")u=o,l=this.diff_text1(u);else if(typeof o=="string"&&a&&typeof a=="object"&&typeof s>"u")l=o,u=a;else if(typeof o=="string"&&typeof a=="string"&&s&&typeof s=="object")l=o,u=s;else throw new Error("Unknown call format to patch_make.");if(u.length===0)return[];for(var c=[],d=new t.patch_obj,h=0,f=0,g=0,b=l,v=l,m=0;m<u.length;m++){var w=u[m][0],k=u[m][1];switch(!h&&w!==i&&(d.start1=f,d.start2=g),w){case r:d.diffs[h++]=u[m],d.length2+=k.length,v=v.substring(0,g)+k+v.substring(g);break;case n:d.length1+=k.length,d.diffs[h++]=u[m],v=v.substring(0,g)+v.substring(g+k.length);break;case i:k.length<=2*this.Patch_Margin&&h&&u.length!=m+1?(d.diffs[h++]=u[m],d.length1+=k.length,d.length2+=k.length):k.length>=2*this.Patch_Margin&&h&&(this.patch_addContext_(d,b),c.push(d),d=new t.patch_obj,h=0,b=v,f=g);break}w!==r&&(f+=k.length),w!==n&&(g+=k.length)}return h&&(this.patch_addContext_(d,b),c.push(d)),c},t.prototype.patch_deepCopy=function(o){for(var a=[],s=0;s<o.length;s++){var l=o[s],u=new t.patch_obj;u.diffs=[];for(var c=0;c<l.diffs.length;c++)u.diffs[c]=new t.Diff(l.diffs[c][0],l.diffs[c][1]);u.start1=l.start1,u.start2=l.start2,u.length1=l.length1,u.length2=l.length2,a[s]=u}return a},t.prototype.patch_apply=function(o,a){if(o.length==0)return[a,[]];o=this.patch_deepCopy(o);var s=this.patch_addPadding(o);a=s+a+s,this.patch_splitMax(o);for(var l=0,u=[],c=0;c<o.length;c++){var d=o[c].start2+l,h=this.diff_text1(o[c].diffs),f,g=-1;if(h.length>this.Match_MaxBits?(f=this.match_main(a,h.substring(0,this.Match_MaxBits),d),f!=-1&&(g=this.match_main(a,h.substring(h.length-this.Match_MaxBits),d+h.length-this.Match_MaxBits),(g==-1||f>=g)&&(f=-1))):f=this.match_main(a,h,d),f==-1)u[c]=!1,l-=o[c].length2-o[c].length1;else{u[c]=!0,l=f-d;var b;if(g==-1?b=a.substring(f,f+h.length):b=a.substring(f,g+this.Match_MaxBits),h==b)a=a.substring(0,f)+this.diff_text2(o[c].diffs)+a.substring(f+h.length);else{var v=this.diff_main(h,b,!1);if(h.length>this.Match_MaxBits&&this.diff_levenshtein(v)/h.length>this.Patch_DeleteThreshold)u[c]=!1;else{this.diff_cleanupSemanticLossless(v);for(var m=0,w,k=0;k<o[c].diffs.length;k++){var T=o[c].diffs[k];T[0]!==i&&(w=this.diff_xIndex(v,m)),T[0]===r?a=a.substring(0,f+w)+T[1]+a.substring(f+w):T[0]===n&&(a=a.substring(0,f+w)+a.substring(f+this.diff_xIndex(v,m+T[1].length))),T[0]!==n&&(m+=T[1].length)}}}}}return a=a.substring(s.length,a.length-s.length),[a,u]},t.prototype.patch_addPadding=function(o){for(var a=this.Patch_Margin,s="",l=1;l<=a;l++)s+=String.fromCharCode(l);for(var l=0;l<o.length;l++)o[l].start1+=a,o[l].start2+=a;var u=o[0],c=u.diffs;if(c.length==0||c[0][0]!=i)c.unshift(new t.Diff(i,s)),u.start1-=a,u.start2-=a,u.length1+=a,u.length2+=a;else if(a>c[0][1].length){var d=a-c[0][1].length;c[0][1]=s.substring(c[0][1].length)+c[0][1],u.start1-=d,u.start2-=d,u.length1+=d,u.length2+=d}if(u=o[o.length-1],c=u.diffs,c.length==0||c[c.length-1][0]!=i)c.push(new t.Diff(i,s)),u.length1+=a,u.length2+=a;else if(a>c[c.length-1][1].length){var d=a-c[c.length-1][1].length;c[c.length-1][1]+=s.substring(0,d),u.length1+=d,u.length2+=d}return s},t.prototype.patch_splitMax=function(o){for(var a=this.Match_MaxBits,s=0;s<o.length;s++)if(!(o[s].length1<=a)){var l=o[s];o.splice(s--,1);for(var u=l.start1,c=l.start2,d="";l.diffs.length!==0;){var h=new t.patch_obj,f=!0;for(h.start1=u-d.length,h.start2=c-d.length,d!==""&&(h.length1=h.length2=d.length,h.diffs.push(new t.Diff(i,d)));l.diffs.length!==0&&h.length1<a-this.Patch_Margin;){var g=l.diffs[0][0],b=l.diffs[0][1];g===r?(h.length2+=b.length,c+=b.length,h.diffs.push(l.diffs.shift()),f=!1):g===n&&h.diffs.length==1&&h.diffs[0][0]==i&&b.length>2*a?(h.length1+=b.length,u+=b.length,f=!1,h.diffs.push(new t.Diff(g,b)),l.diffs.shift()):(b=b.substring(0,a-h.length1-this.Patch_Margin),h.length1+=b.length,u+=b.length,g===i?(h.length2+=b.length,c+=b.length):f=!1,h.diffs.push(new t.Diff(g,b)),b==l.diffs[0][1]?l.diffs.shift():l.diffs[0][1]=l.diffs[0][1].substring(b.length))}d=this.diff_text2(h.diffs),d=d.substring(d.length-this.Patch_Margin);var v=this.diff_text1(l.diffs).substring(0,this.Patch_Margin);v!==""&&(h.length1+=v.length,h.length2+=v.length,h.diffs.length!==0&&h.diffs[h.diffs.length-1][0]===i?h.diffs[h.diffs.length-1][1]+=v:h.diffs.push(new t.Diff(i,v))),f||o.splice(++s,0,h)}}},t.prototype.patch_toText=function(o){for(var a=[],s=0;s<o.length;s++)a[s]=o[s];return a.join("")},t.prototype.patch_fromText=function(o){var a=[];if(!o)return a;for(var s=o.split(`
|
|
`),l=0,u=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;l<s.length;){var c=s[l].match(u);if(!c)throw new Error("Invalid patch string: "+s[l]);var d=new t.patch_obj;for(a.push(d),d.start1=parseInt(c[1],10),c[2]===""?(d.start1--,d.length1=1):c[2]=="0"?d.length1=0:(d.start1--,d.length1=parseInt(c[2],10)),d.start2=parseInt(c[3],10),c[4]===""?(d.start2--,d.length2=1):c[4]=="0"?d.length2=0:(d.start2--,d.length2=parseInt(c[4],10)),l++;l<s.length;){var h=s[l].charAt(0);try{var f=decodeURI(s[l].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+f)}if(h=="-")d.diffs.push(new t.Diff(n,f));else if(h=="+")d.diffs.push(new t.Diff(r,f));else if(h==" ")d.diffs.push(new t.Diff(i,f));else{if(h=="@")break;if(h!=="")throw new Error('Invalid patch mode "'+h+'" in: '+f)}l++}}return a},t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},t.patch_obj.prototype.toString=function(){var o,a;this.length1===0?o=this.start1+",0":this.length1==1?o=this.start1+1:o=this.start1+1+","+this.length1,this.length2===0?a=this.start2+",0":this.length2==1?a=this.start2+1:a=this.start2+1+","+this.length2;for(var s=["@@ -"+o+" +"+a+` @@
|
|
`],l,u=0;u<this.diffs.length;u++){switch(this.diffs[u][0]){case r:l="+";break;case n:l="-";break;case i:l=" ";break}s[u+1]=l+encodeURI(this.diffs[u][1])+`
|
|
`}return s.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=n,e.exports.DIFF_INSERT=r,e.exports.DIFF_EQUAL=i})(txe);var $it=txe.exports;const Mit=pl($it);(function(e,t){(function(n){n(BL())})(function(n){n.defineSimpleMode=function(h,f){n.defineMode(h,function(g){return n.simpleMode(g,f)})},n.simpleMode=function(h,f){r(f,"start");var g={},b=f.meta||{},v=!1;for(var m in f)if(m!=b&&f.hasOwnProperty(m))for(var w=g[m]=[],k=f[m],T=0;T<k.length;T++){var S=k[T];w.push(new a(S,f)),(S.indent||S.dedent)&&(v=!0)}var I={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:v?[]:null}},copyState:function(y){var _={state:y.state,pending:y.pending,local:y.local,localState:null,indent:y.indent&&y.indent.slice(0)};y.localState&&(_.localState=n.copyState(y.local.mode,y.localState)),y.stack&&(_.stack=y.stack.slice(0));for(var A=y.persistentStates;A;A=A.next)_.persistentStates={mode:A.mode,spec:A.spec,state:A.state==y.localState?_.localState:n.copyState(A.mode,A.state),next:_.persistentStates};return _},token:s(g,h),innerMode:function(y){return y.local&&{mode:y.local.mode,state:y.localState}},indent:d(g,b)};if(b)for(var O in b)b.hasOwnProperty(O)&&(I[O]=b[O]);return I};function r(h,f){if(!h.hasOwnProperty(f))throw new Error("Undefined state "+f+" in simple mode")}function i(h,f){if(!h)return/(?:)/;var g="";return h instanceof RegExp?(h.ignoreCase&&(g="i"),h.unicode&&(g+="u"),h=h.source):h=String(h),new RegExp((f===!1?"":"^")+"(?:"+h+")",g)}function o(h){if(!h)return null;if(h.apply)return h;if(typeof h=="string")return h.replace(/\./g," ");for(var f=[],g=0;g<h.length;g++)f.push(h[g]&&h[g].replace(/\./g," "));return f}function a(h,f){(h.next||h.push)&&r(f,h.next||h.push),this.regex=i(h.regex),this.token=o(h.token),this.data=h}function s(h,f){return function(g,b){if(b.pending){var v=b.pending.shift();return b.pending.length==0&&(b.pending=null),g.pos+=v.text.length,v.token}if(b.local)if(b.local.end&&g.match(b.local.end)){var m=b.local.endToken||null;return b.local=b.localState=null,m}else{var m=b.local.mode.token(g,b.localState),w;return b.local.endScan&&(w=b.local.endScan.exec(g.current()))&&(g.pos=g.start+w.index),m}for(var k=h[b.state],T=0;T<k.length;T++){var S=k[T],I=(!S.data.sol||g.sol())&&g.match(S.regex);if(I){S.data.next?b.state=S.data.next:S.data.push?((b.stack||(b.stack=[])).push(b.state),b.state=S.data.push):S.data.pop&&b.stack&&b.stack.length&&(b.state=b.stack.pop()),S.data.mode&&u(f,b,S.data.mode,S.token),S.data.indent&&b.indent.push(g.indentation()+f.indentUnit),S.data.dedent&&b.indent.pop();var O=S.token;if(O&&O.apply&&(O=O(I)),I.length>2&&S.token&&typeof S.token!="string"){for(var y=2;y<I.length;y++)I[y]&&(b.pending||(b.pending=[])).push({text:I[y],token:S.token[y-1]});return g.backUp(I[0].length-(I[1]?I[1].length:0)),O[0]}else return O&&O.join?O[0]:O}}return g.next(),null}}function l(h,f){if(h===f)return!0;if(!h||typeof h!="object"||!f||typeof f!="object")return!1;var g=0;for(var b in h)if(h.hasOwnProperty(b)){if(!f.hasOwnProperty(b)||!l(h[b],f[b]))return!1;g++}for(var b in f)f.hasOwnProperty(b)&&g--;return g==0}function u(h,f,g,b){var v;if(g.persistent)for(var m=f.persistentStates;m&&!v;m=m.next)(g.spec?l(g.spec,m.spec):g.mode==m.mode)&&(v=m);var w=v?v.mode:g.mode||n.getMode(h,g.spec),k=v?v.state:n.startState(w);g.persistent&&!v&&(f.persistentStates={mode:w,spec:g.spec,state:k,next:f.persistentStates}),f.localState=k,f.local={mode:w,end:g.end&&i(g.end),endScan:g.end&&g.forceEnd!==!1&&i(g.end,!1),endToken:b&&b.join?b[b.length-1]:b}}function c(h,f){for(var g=0;g<f.length;g++)if(f[g]===h)return!0}function d(h,f){return function(g,b,v){if(g.local&&g.local.mode.indent)return g.local.mode.indent(g.localState,b,v);if(g.indent==null||g.local||f.dontIndentStates&&c(g.state,f.dontIndentStates)>-1)return n.Pass;var m=g.indent.length-1,w=h[g.state];e:for(;;){for(var k=0;k<w.length;k++){var T=w[k];if(T.data.dedent&&T.data.dedentIfLineStart!==!1){var S=T.regex.exec(b);if(S&&S[0]){m--,(T.next||T.push)&&(w=h[T.next||T.push]),b=b.slice(S[0].length);continue e}}}break}return m<0?0:g.indent[m]}}})})();!window.CodeMirror&&(window.CodeMirror=exe);const P_=window.CodeMirror||exe,Lit=ft({name:"DefaultMode",props:{name:{type:String,default:`cm-textarea-${+new Date}`},value:{type:String,default:""},content:{type:String,default:""},options:{type:Object,default:()=>({})},cminstance:{type:Object,default:()=>null},placeholder:{type:String,default:""}},emits:{ready:e=>e,"update:cminstance":e=>e},setup(e,{emit:t}){const n=Re(),r=Re(null),i=()=>{r.value=yb(P_.fromTextArea(n.value,e.options)),t("update:cminstance",r.value);const o=Pt(()=>e.cminstance,a=>{var s;a&&((s=e.cminstance)==null||s.setValue(e.value||e.content)),t("ready",W(r)),o==null||o()},{deep:!0})};return _n(()=>{i()}),{textarea:n,initialize:i}}}),pX=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Bit=["name","placeholder"];function Fit(e,t,n,r,i,o){return Ce(),We("textarea",{ref:"textarea",name:e.$props.name,placeholder:e.$props.placeholder},null,8,Bit)}const Die=pX(Lit,[["render",Fit]]);window.diff_match_patch=Mit;window.DIFF_DELETE=-1;window.DIFF_INSERT=1;window.DIFF_EQUAL=0;const Nit=ft({name:"MergeMode",props:{options:{type:Object,default:()=>({})},cminstance:{type:Object,default:()=>({})}},emits:["update:cminstance","ready"],setup(e,{emit:t}){const n=Re(),r=Re(),i=()=>{n.value=yb(P_.MergeView(r.value,e.options)),t("update:cminstance",n.value),t("ready",n)};return _n(()=>{i()}),{mergeView:r,initialize:i}}}),Vit={ref:"mergeView"};function jit(e,t,n,r,i,o){return Ce(),We("div",Vit,null,512)}const Wit=pX(Nit,[["render",jit]]);function Hit(e){const t=/#link#(.+)#link#/g,n=[];let r;for(r=t.exec(e);r;){const i=document.createElement("a"),o=JSON.parse(r[1]),a=Object.entries(o);for(const[s,l]of a)i.setAttribute(s,l);i.className="editor_custom_link",i.innerHTML="logDownload",n.push({start:r.index,end:r.index+r[0].length,node:i}),r=t.exec(e)}return n}function zit(e){const t=[];function n(){const r=/#log<(\w*)>log#((.|\r\n|\n)*?)#log<(\w*)>log#/g;let i;for(i=r.exec(e);i;){const o=i[0].replace(/\r\n/g,`
|
|
`).split(`
|
|
`),a=i[2].replace(/\r\n/g,`
|
|
`).split(`
|
|
`),s=document.createElement("span"),l=i[1];s.className=`c-editor--log__${l}`;let u=0;for(let c=0;c<o.length;c++){const d=o[c],h=a[c],f=s.cloneNode(!1);f.innerText=h,t.push({start:i.index+u,end:i.index+u+d.length,node:f}),u=u+d.length+1}i=r.exec(e)}}return n(),t}const bD=[{regex:/(\[.*?\])([ \t]*)(<error>[ \t])(.+)/,token:["tag","","error.strong","error.strong"],sol:!0},{regex:/(\[.*?\])([ \t]*)(<info>)(.+)(.?)/,token:["tag","","bracket","bracket","hr"],sol:!0},{regex:/(\[.*?\])([ \t]*)(<warning>)(.+)(.?)/,token:["tag","","comment","comment","hr"],sol:!0}];P_.defineSimpleMode("fclog",{start:[...bD,{regex:/.*/,token:"hr"}],error:[...bD,{regex:/.*/,token:"error.strong"}],info:[...bD,{regex:/.*/,token:"bracket"}],warning:[...bD,{regex:/.*\[/,token:"comment"}]});P_.defineSimpleMode("log",{start:[{regex:/^[=]+[^=]*[=]+/,token:"strong"},{regex:/([^\w])([A-Z][\w]*)/,token:["","string"]},{regex:/(^[A-Z][\w]*)/,token:"string"}]});const Zit=ft({name:"CodemirrorFclog",props:{value:{type:String,default:""},name:{type:String,default:`cm-textarea-${+new Date}`},options:{type:Object,default:()=>({})},cminstance:{type:Object,default:()=>({})},placeholder:{type:String,default:""}},emits:["update:cminstance","ready"],setup(e,{emit:t}){const n=Re(),r=Re(null),i=(a=e.cminstance)=>{a.getAllMarks().forEach(u=>u.clear());const s=a.getValue(),l=[].concat(Hit(s)).concat(zit(s));for(let u=0;u<l.length;u++){const c=l[u];a.markText(a.posFromIndex(c.start),a.posFromIndex(c.end),{replacedWith:c.node})}},o=()=>{var a;r.value=yb(P_.fromTextArea(n.value,e.options)),t("update:cminstance",W(r)),(a=r.value)==null||a.on("change",i)};return Pt(()=>e.cminstance,a=>{var s;a&&(i(e.cminstance),(s=e.cminstance)==null||s.setValue(e.value),t("ready",r))},{deep:!0,immediate:!0}),_n(()=>{o()}),{initialize:o,textarea:n}}}),Git=["name","placeholder"];function Qit(e,t,n,r,i,o){return Ce(),We("textarea",{ref:"textarea",name:e.$props.name,placeholder:e.$props.placeholder},null,8,Git)}const Uit=pX(Zit,[["render",Qit]]),nxe={"update:value":()=>!0,change:(e,t)=>({value:e,cm:t}),input:()=>!0,ready:e=>e},Xit=["changes","scroll","beforeChange","cursorActivity","keyHandled","inputRead","electricInput","beforeSelectionChange","viewportChange","swapDoc","gutterClick","gutterContextMenu","focus","blur","refresh","optionChange","scrollCursorIntoView","update"],Yit=()=>{const e={};return Xit.forEach(t=>{e[t]=(...n)=>n}),e},Kit={...nxe,...Yit()},eN={mode:"text",theme:"default",lineNumbers:!0,smartIndent:!0,indentUnit:2};function qit(e){Promise.resolve().then(()=>{const t=e.getScrollInfo();e.scrollTo(t.left,t.height)})}const Jit=({props:e,cminstance:t,emit:n,internalInstance:r,content:i})=>{const o=Oe(()=>{var s;return e.merge?(s=W(t))==null?void 0:s.editor():W(t)}),a=()=>{const s=[];return Object.keys(r==null?void 0:r.vnode.props).forEach(l=>{if(l.startsWith("on")){const u=l.replace(l[2],l[2].toLowerCase()).slice(2);!nxe[u]&&s.push(u)}}),s};return{listenerEvents:()=>{o.value.on("change",l=>{const u=l.getValue();u===i.value&&u!==""||(i.value=u,n("update:value",i.value||""),n("input",i.value||" "),Promise.resolve().then(()=>{n("change",i.value,l)}),e.keepCursorInEnd&&qit(l))});const s={};a().filter(l=>!s[l]&&(s[l]=!0)).forEach(l=>{o.value.on(l,(...u)=>{n(l,...u)})})}}};function eot({props:e,cminstance:t,presetRef:n}){const r=Re(null),i=Re(null),o=Oe(()=>{var d;return e.merge?(d=W(t))==null?void 0:d.editor():W(t)}),a=()=>{mn(()=>{var d;(d=o.value)==null||d.refresh()})},s=(d=e.width,h=e.height)=>{var f;r.value=String(d).replace("px",""),i.value=String(h).replace("px","");const g=i.value;(f=o.value)==null||f.setSize(r.value,g)},l=()=>{var d;const h=(d=o.value)==null?void 0:d.getWrapperElement();h==null||h.remove()},u=()=>{var d,h,f;const g=(d=o.value)==null?void 0:d.getDoc().getHistory();(h=n.value)==null||h.initialize(),l(),(f=o.value)==null||f.getDoc().setHistory(g)},c=()=>{const d=document.querySelector(".CodeMirror-gutters");return(d==null?void 0:d.style.left.replace("px",""))!=="0"};return{reload:u,refresh:a,resize:s,destroy:l,containerHeight:i,reviseStyle:()=>{if(a(),!c())return;const d=setInterval(()=>{c()?a():clearInterval(d)},60),h=setTimeout(()=>{clearInterval(d),clearTimeout(h)},400)}}}const rxe=ft({__name:"index",props:{value:{type:String,default:""},options:{type:Object,default:()=>eN},globalOptions:{type:Object,default:()=>eN},placeholder:{type:String,default:""},border:{type:Boolean,default:!1},width:{type:[String,Number],default:null},height:{type:[String,Number],default:null},originalStyle:{type:Boolean,default:!1},keepCursorInEnd:{type:Boolean,default:!1},merge:{type:Boolean,default:!1},name:{type:String,default:""},marker:{type:Function,default:()=>null},unseenLines:{type:Array,default:()=>[]}},emits:Kit,setup(e,{expose:t,emit:n}){var r,i;const o=e;typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value(y){if(y==null)throw new TypeError("Cannot convert undefined or null to object");const _=Object(y);for(let A=1;A<arguments.length;A++){const R=arguments[A];if(R!=null)for(const D in R)Object.prototype.hasOwnProperty.call(R,D)&&(_[D]=R[D])}return _},writable:!0,configurable:!0});const a=Re(null),s=Re(""),l=so(Die),u=Re({...eN,...o.globalOptions,...o.options}),c=dr(),d=o.name||((i=(r=c==null?void 0:c.parent)==null?void 0:r.type)==null?void 0:i.name)||void 0,h=Re(null),f=Oe(()=>{var y;return o.merge?(y=W(a))==null?void 0:y.editor():W(a)}),{refresh:g,resize:b,destroy:v,containerHeight:m,reviseStyle:w}=eot({props:o,cminstance:a,presetRef:h}),{listenerEvents:k}=Jit({props:o,cminstance:a,emit:n,internalInstance:c,content:s}),T=()=>{o.unseenLines!==void 0&&o.marker!==void 0&&o.unseenLines.forEach(y=>{var _,A;const R=(_=a.value)==null?void 0:_.lineInfo(y);(A=a.value)==null||A.setGutterMarker(y,"breakpoints",R!=null&&R.gutterMarkers?null:o.marker())})},S=y=>{var _,A;const R=(_=a.value)==null?void 0:_.getValue();y!==R&&((A=a.value)==null||A.setValue(y),s.value=y,w()),T()},I=()=>{k(),T(),b(o.width,o.height),n("ready",a.value),Pt([()=>o.width,()=>o.height],([y,_])=>{b(y,_)},{deep:!0})},O=()=>{if(o.options.mode==="fclog"||o.options.mode==="log"){l.value=Uit;return}if(o.merge){l.value=Wit;return}l.value=Die};return Pt(()=>o.options,y=>{var _;for(const A in o.options)(_=f.value)==null||_.setOption(A,W(y[A]))},{deep:!0}),Pt(()=>o.value,y=>{S(y)}),Pt(()=>o.merge,O,{immediate:!0}),Mo(()=>{v()}),t({cminstance:a,resize:b,refresh:g,destroy:v}),(y,_)=>(Ce(),We("div",{class:De(["codemirror-container",{merge:y.$props.merge,bordered:y.$props.border||y.$props.merge&&!o.originalStyle,"width-auto":!y.$props.width||y.$props.width=="100%","height-auto":!y.$props.height||y.$props.height=="100%","original-style":o.originalStyle}]),style:En({height:W(m)+"px"})},[(Ce(),mt(ei(W(l)),jr({ref_key:"presetRef",ref:h,cminstance:a.value,"onUpdate:cminstance":_[0]||(_[0]=A=>a.value=A),style:{height:"100%"}},{...y.$props,...y.$attrs,options:u.value,name:W(d),content:s.value},{onReady:I}),null,16,["cminstance"]))],6))}});function tot(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}tot(`.codemirror-container {
|
|
position: relative;
|
|
display: inline-block;
|
|
height: 100%;
|
|
width: fit-content;
|
|
font-size: 12px;
|
|
overflow: hidden;
|
|
}
|
|
.codemirror-container.bordered {
|
|
border-radius: 4px;
|
|
border: 1px solid #dddddd;
|
|
}
|
|
.codemirror-container.width-auto {
|
|
width: 100%;
|
|
}
|
|
.codemirror-container.height-auto {
|
|
height: 100%;
|
|
}
|
|
.codemirror-container.height-auto .CodeMirror,
|
|
.codemirror-container.height-auto .cm-s-default {
|
|
height: 100% !important;
|
|
}
|
|
.codemirror-container .editor_custom_link {
|
|
cursor: pointer;
|
|
color: #1474f1;
|
|
text-decoration: underline;
|
|
}
|
|
.codemirror-container .editor_custom_link:hover {
|
|
color: #04b4fa;
|
|
}
|
|
.codemirror-container:not(.original-style) .CodeMirror-lines .CodeMirror-placeholder.CodeMirror-line-like {
|
|
color: #666;
|
|
}
|
|
.codemirror-container:not(.original-style) .CodeMirror,
|
|
.codemirror-container:not(.original-style) .CodeMirror-merge-pane {
|
|
height: 100%;
|
|
font-family: consolas !important;
|
|
}
|
|
.codemirror-container:not(.original-style) .CodeMirror-merge,
|
|
.codemirror-container:not(.original-style) .CodeMirror-merge-right .CodeMirror {
|
|
height: 100%;
|
|
border: none !important;
|
|
}
|
|
.codemirror-container:not(.original-style) .c-editor--log__error {
|
|
color: #bb0606;
|
|
font-weight: bold;
|
|
}
|
|
.codemirror-container:not(.original-style) .c-editor--log__info {
|
|
color: #333333;
|
|
font-weight: bold;
|
|
}
|
|
.codemirror-container:not(.original-style) .c-editor--log__warning {
|
|
color: #ee9900;
|
|
}
|
|
.codemirror-container:not(.original-style) .c-editor--log__success {
|
|
color: #669600;
|
|
}
|
|
.codemirror-container:not(.original-style) .cm-header,
|
|
.codemirror-container:not(.original-style) .cm-strong {
|
|
font-weight: bold;
|
|
}
|
|
`);const not=ft({__name:"CodeEdit",props:{modelValue:{},height:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Oe({get(){return n.modelValue},set(s){r("update:modelValue",s)}}),o=Re(),a=Br({mode:"text/javascript",lineNumbers:!0,smartIndent:!0,indentUnit:4,foldGutter:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,readOnly:!1});return _n(()=>{o.value.refresh()}),qp(()=>{var s;(s=o.value)==null||s.destroy()}),(s,l)=>(Ce(),mt(W(rxe),{style:{"line-height":"16px"},value:i.value,"onUpdate:value":l[0]||(l[0]=u=>i.value=u),options:a,height:s.height,border:"",ref_key:"cmRef",ref:o},null,8,["value","options","height"]))}}),rot={name:"代码编辑器",component:not,icon:"rich",type:"basic",order:19.5,initialValues:{label:"代码编辑器",component:"CodeEdit",height:100},attr:Dit},ixe=Object.freeze(Object.defineProperty({__proto__:null,default:rot},Symbol.toStringTag,{value:"Module"})),oxe={__name:"Title",props:{title:{type:String,default:"这是一个标题"},type:{type:String,default:"h3"},italic:Boolean},setup(e){return(t,n)=>(Ce(),mt(ei(e.type),{class:"Title",style:En({fontStyle:e.italic?"italic":"normal"})},{default:ot(()=>[gr(en(e.title),1)]),_:1},8,["style"]))}},iot={__name:"Collapse",props:{props:Object,children:Array,design:Boolean},setup(e){const t=e,n=Re([]);return _n(()=>{n.value=t.children.filter(r=>r.checked).map(r=>r.name)}),(r,i)=>(Ce(),mt(W(OKe),jr({...e.props,...r.$attrs},{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=o=>n.value=o)}),{default:ot(()=>[(Ce(!0),We(un,null,xr(e.children,o=>(Ce(),mt(W(xKe),{key:o.name,name:o.name},{title:ot(()=>[xe(oxe,{title:o.title,italic:"",type:"h4"},null,8,["title"])]),default:ot(()=>[e.design?(Ce(),mt(W(Ree),{key:0,children:o.children},null,8,["children"])):(Ce(),mt(W(PT),{key:1,formItems:o.children},null,8,["formItems"]))]),_:2},1032,["name"]))),128))]),_:1},16,["modelValue"]))}},oot={name:"折叠面板",component:iot,icon:"collapse",type:"layout",order:4,initialValues:{component:"Collapse",children:[{title:"折叠面板1",name:"name1",children:[]}]},attr:[{label:"唯一标识",component:"Input",name:"name"},{label:"子面板设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},designKey:"id-l8cI",name:"title"},{label:"唯一标识",component:"Input",props:{placeholder:"请输入唯一标识"},designKey:"form-YE6U",name:"name"},{label:"默认展开",component:"Switch",designKey:"form-YE6U",name:"checked"}],props:{mode:"card",title:"子面板",newItemDefaults:"{{ (index) => ({ title: `折叠面板${index + 1}`, name: `name${index + 1}`,children: [] }) }}"},designKey:"id-RQ1a",name:"children"}]},axe=Object.freeze(Object.defineProperty({__proto__:null,default:oot},Symbol.toStringTag,{value:"Module"})),aot={name:"颜色选择器",component:JKe,icon:"colorPicker",type:"basic",order:9,initialValues:{label:"颜色选择器",component:"ColorPicker"},attr:Xo({basic:[...Qo(["props.readonly","props.placeholder"]),{label:"初始值",component:"ColorPicker",name:"initialValue"}],high:Uo(),linkage:Ta})},sxe=Object.freeze(Object.defineProperty({__proto__:null,default:aot},Symbol.toStringTag,{value:"Module"})),sot=Xo({basic:[...Qo(["initialValue","props.readonly","props.placeholder","props.disabled"]),{label:"初始值",component:"Input",name:"initialValue"},{label:"自定义组件名称",component:"Input",name:"props.componentName",props:{placeholder:"全局组件名称"}},{label:"props",component:"JsonEdit",name:"props",initialValue:{}}],high:Uo(),linkage:Ta}),lot={key:0,class:"empty"},uot={__name:"Custom",props:{componentName:String,modelValue:null},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Oe({get(){return n.modelValue},set(o){r("update:modelValue",o)}});return(o,a)=>e.componentName?(Ce(),mt(ei(e.componentName),jr({key:1,modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=s=>i.value=s)},o.$attrs),null,16,["modelValue"])):(Ce(),We("span",lot,"请输入全局注册得组件名"))}},cot=Is(uot,[["__scopeId","data-v-5b820091"]]),dot={name:"自定义组件",icon:"custom",type:"high",order:3,component:cot,initialValues:{label:"自定义组件",component:"Custom",props:{}},attr:sot},lxe=Object.freeze(Object.defineProperty({__proto__:null,default:dot},Symbol.toStringTag,{value:"Module"})),hot=Xo({basic:[...Qo(),{label:"类型",component:"Radio",name:"props.type",props:{mode:"static",options:[{label:"日期时间",value:"datetime"},{label:"日期",value:"date"},{label:"年月",value:"month"},{label:"日期范围",value:"daterange"},{label:"日期时间范围",value:"datetimerange"}]}}],high:[...Uo(),{label:"显示清除按钮",component:"Switch",name:"props.clearable"}],linkage:Ta}),pot={name:"日期选择器",component:bJe,icon:"datePicker",type:"basic",order:9,initialValues:{label:"日期选择器",component:"DatePicker",props:{type:"datetime",placeholder:"请选择日期",clearable:!1}},attr:hot},uxe=Object.freeze(Object.defineProperty({__proto__:null,default:pot},Symbol.toStringTag,{value:"Module"})),fot=[{label:"唯一标识",component:"Input",name:"name"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"标题",component:"Input",name:"props.title"},{label:"标题位置",component:"Radio",name:"props.contentPosition",props:{mode:"static",options:[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}]},initialValue:"center",designKey:"form-PLpj"}],got={__name:"Divider",props:{title:String},setup(e){return(t,n)=>(Ce(),mt(W(NJe),k2(lL(t.$attrs)),{default:ot(()=>[gr(en(e.title),1)]),_:1},16))}},mot={name:"分割线",component:got,icon:"divider",type:"assist",order:6,attr:fot,initialValues:{component:"Divider",props:{title:"分割线"}}},cxe=Object.freeze(Object.defineProperty({__proto__:null,default:mot},Symbol.toStringTag,{value:"Module"})),vot=Xo({basic:[{component:"Alert",props:{title:"说明",type:"info",effect:"light",description:"值是由【多个相同格式的对象】组成的数组,适用于收集多组数据",closable:!0,"show-icon":!0},designKey:"form-fVKS",name:"sv1sIQ",hidden:!1},...Qo(["initialValue","props.placeholder","props.readonly"]),{label:"显示模式",component:"Radio",name:"props.mode",props:{mode:"static",options:[{label:"表格",value:"table"},{label:"卡片",value:"card"},{label:"行内",value:"inline"}]}},{label:"卡片标题",component:"Input",name:"props.title",hidden:"{{$values.props.mode!=='card'}}"},{label:"初始值",component:"JsonEdit",name:"initialValue",props:{mode:"dialog",initVal:[]}}],high:Uo()}),yot={id:"formList"},bot={key:1},wot={class:"list-item-content"},Cot={class:"card-header"},Oot={__name:"FormList",props:{modelValue:Array,children:Array,allowAdd:{default:!0,type:Boolean},allowReduce:{default:!0,type:Boolean},defaultLineCount:{default:0,type:Number},maxLines:{default:999,type:Number},mode:{default:"table",type:String},title:{default:"卡片",type:String},newItemDefaults:{type:Function,default:()=>({})},name:String,design:Boolean,disabled:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Oe(()=>n.modelValue||[]),o=Oe(()=>c=>X2(n.children,{$item:i.value[c],$index:c})),a=Oe(()=>i.value.length>=n.maxLines),s=()=>{a.value||r("update:modelValue",[...i.value,n.newItemDefaults(i.value.length)])},l=c=>{const d=i.value.filter((h,f)=>f!==c);r("update:modelValue",d)},u=(c,d,h)=>Yn(vO,{...X2(c,{$item:i.value[h],$index:h}),hideLabel:!0,style:{marginBottom:0},name:`${n.name}.${h}.${c.name}`});return(c,d)=>{const h=Ar("icon-render");return Ce(),We("div",yot,[e.design?(Ce(),mt(W($ee),{key:0,children:e.children,title:"自增容器",name:e.name},null,8,["children","name"])):(Ce(),We("div",bot,[e.mode==="inline"?(Ce(!0),We(un,{key:0},xr(i.value,(f,g)=>(Ce(),mt(W(iCe),{key:f.key,class:"list-item"},{default:ot(()=>[at("div",wot,[xe(W($L),null,{default:ot(()=>[(Ce(!0),We(un,null,xr(o.value(g),b=>(Ce(),mt(W(vO),jr(b,{key:b.label,name:`${e.name}.${g}.${b.name}`,hideLabel:""}),null,16,["name"]))),128))]),_:2},1024),e.allowReduce?(Ce(),mt(W(mo),{key:0,onClick:b=>l(g),circle:"",type:"primary",class:"list-btn",disabled:e.disabled},{icon:ot(()=>[xe(h,{name:"reduce",color:"#fff"})]),_:2},1032,["onClick","disabled"])):xt("",!0)])]),_:2},1024))),128)):xt("",!0),e.mode==="card"?(Ce(!0),We(un,{key:1},xr(i.value,(f,g)=>(Ce(),mt(W($Ce),{key:f.key,class:"list-card"},{header:ot(()=>[at("div",Cot,[at("span",null,en(e.title+(g+1)),1),e.allowReduce?(Ce(),mt(W(mo),{key:0,onClick:b=>l(g),circle:"",type:"primary",class:"list-btn",disabled:e.disabled},{icon:ot(()=>[xe(h,{name:"reduce",color:"#fff"})]),_:2},1032,["onClick","disabled"])):xt("",!0)])]),default:ot(()=>[(Ce(!0),We(un,null,xr(o.value(g),b=>(Ce(),mt(W(vO),jr(b,{key:b.label,class:"list-card-item",name:`${e.name}.${g}.${b.name}`}),null,16,["name"]))),128))]),_:2},1024))),128)):xt("",!0),e.mode==="table"&&i.value.length?(Ce(),mt(W(Vnt),{key:2,data:i.value,style:{width:"100%"}},{default:ot(()=>[(Ce(!0),We(un,null,xr(e.children,f=>(Ce(),mt(W(yie),{prop:f.name,label:f.label,key:f.name,width:f.width,formatter:(g,b,v,m)=>u(f,g,m)},null,8,["prop","label","width","formatter"]))),128)),xe(W(yie),{fixed:"right","min-width":"60"},{default:ot(f=>[e.allowReduce?(Ce(),mt(W(mo),{key:0,onClick:g=>l(f.$index),circle:"",type:"primary",class:"list-btn",disabled:e.disabled},{icon:ot(()=>[xe(h,{name:"reduce",color:"#fff"})]),_:2},1032,["onClick","disabled"])):xt("",!0)]),_:1})]),_:1},8,["data"])):xt("",!0),at("div",null,[e.allowAdd&&!a.value?(Ce(),mt(W(mo),{key:0,onClick:s,circle:"",type:"primary",class:"list-btn addBtn",disabled:e.disabled},{icon:ot(()=>[xe(h,{name:"add",color:"#fff"})]),_:1},8,["disabled"])):xt("",!0)])]))])}}},xot={name:"自增容器",component:Oot,icon:"formList",type:"high",order:1,initialValues:{label:"自增容器",component:"FormList",children:[],props:{mode:"table"}},attr:vot},dxe=Object.freeze(Object.defineProperty({__proto__:null,default:xot},Symbol.toStringTag,{value:"Module"})),Sot=[{label:"唯一标识",component:"Input",name:"name"},{label:"列数",component:"InputNumber",name:"props.columns",initialValue:2},{label:"列间距",component:"InputNumber",name:"props.column-gap",props:{unit:"px"}},{label:"行间距",component:"InputNumber",name:"props.row-gap",props:{unit:"px"}}],Aot={class:"form-item-grid"},Iot={__name:"Grid",props:{name:String,props:Object,children:Array,design:Boolean},setup(e){const t=e,n=Oe(()=>({display:"grid","grid-template-columns":`repeat(${t.props.columns}, 1fr)`,"row-gap":t.props["row-gap"]+"px","column-gap":t.props["column-gap"]+"px"}));return(r,i)=>(Ce(),We("div",Aot,[e.design?(Ce(),mt(W($ee),{key:0,children:e.children,style:En(n.value),title:"栅格布局",name:e.name},null,8,["children","style","name"])):(Ce(),We("div",{key:1,style:En(n.value)},[xe(W(PT),{formItems:e.children},null,8,["formItems"])],4))]))}},kot=Is(Iot,[["__scopeId","data-v-f25241da"]]),Eot={name:"栅格布局",icon:"grid",type:"layout",component:kot,order:3,initialValues:{component:"Grid",children:[],props:{columns:2,"column-gap":20,"row-gap":20}},attr:Sot},hxe=Object.freeze(Object.defineProperty({__proto__:null,default:Eot},Symbol.toStringTag,{value:"Module"})),_ot={class:"icon-list"},Tot=["onClick"],Pot={__name:"IconSelect",props:{modelValue:String,disabled:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,{iconSelectConfig:{component:r,propKey:i,iconList:o}}=Ht(R0),a=Re(!1),s=Re(""),l=so([]),u=()=>{a.value=!0,s.value="",l.value=o},c=al.debounce(()=>{s.value||(l.value=o),l.value=o.filter(h=>h.includes(s.value))},700),d=h=>{n("update:modelValue",h),a.value=!1};return Kp(()=>{l.value=o}),(h,f)=>{const g=Ar("icon-render");return Ce(),We(un,null,[xe(W(kee),{disabled:e.disabled},{default:ot(()=>[at("div",{class:"container",onClick:u},[e.modelValue?(Ce(),mt(ei(W(r)),k2({key:0,class:"selected",[W(i)||""]:e.modelValue}),null,16)):(Ce(),mt(g,{key:1,class:"un-selected",name:"add"}))])]),_:1},8,["disabled"]),xe(W(aX),{modelValue:a.value,"onUpdate:modelValue":f[2]||(f[2]=b=>a.value=b),title:"图标选择"},{default:ot(()=>[at("div",{class:"searchBar",onClick:f[1]||(f[1]=(...b)=>W(c)&&W(c)(...b))},[xe(W(Fs),{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=b=>s.value=b),placeholder:"输入关键词搜索",onInput:W(c)},{append:ot(()=>[at("span",null,[xe(g,{class:"search-ico",name:"search"})])]),_:1},8,["modelValue","onInput"])]),at("ul",_ot,[(Ce(!0),We(un,null,xr(l.value,b=>(Ce(),mt(W(wg),{effect:"dark",content:b,placement:"top",key:b},{default:ot(()=>[at("li",{onClick:v=>d(b),class:De({active:e.modelValue===b})},[(Ce(),mt(ei(W(r)),k2({[W(i)||""]:b}),null,16))],10,Tot)]),_:2},1032,["content"]))),128))])]),_:1},8,["modelValue"])],64)}}},Dot=Is(Pot,[["__scopeId","data-v-d6fd9568"]]),Rot=Xo({basic:Qo(["props.readonly","props.placeholder"]),high:Uo(),linkage:Ta}),$ot={name:"图标选择器",icon:"icon",type:"basic",component:Dot,order:14,initialValues:{label:"图标选择器",component:"IconSelect",props:{}},attr:Rot},pxe=Object.freeze(Object.defineProperty({__proto__:null,default:$ot},Symbol.toStringTag,{value:"Module"})),Mot=[{label:"唯一标识",component:"Input",name:"name"},{label:"对齐方式",component:"Radio",name:"props.align",props:{mode:"static",options:[{label:"左对齐",value:"left"},{label:"居中",value:"center"},{label:"右对齐",value:"right"}]},initialValue:"left"},{label:"间距大小",component:"InputNumber",name:"props.gap",props:{unit:"px"}},{label:"自动换行",component:"Switch",name:"props.autoWrap"}],Lot={class:"form-item-inline"},Bot={__name:"Inline",props:{name:String,props:Object,children:Array,design:Boolean},setup(e){const t=e,n=Oe(()=>({width:"100%",display:"flex","justify-content":t.props.align,"flex-wrap":t.props.autoWrap?"wrap":"nowrap","overflow-x":"auto",gap:`${t.props.gap}px`}));return(r,i)=>(Ce(),We("div",Lot,[e.design?(Ce(),mt(W($ee),{key:0,children:e.children,style:En(n.value),title:"行内布局",name:e.name},null,8,["children","style","name"])):(Ce(),We("div",{key:1,style:En(n.value)},[xe(W(PT),{formItems:e.children},null,8,["formItems"])],4))]))}},Fot=Is(Bot,[["__scopeId","data-v-f27db587"]]),Not={name:"行内布局",icon:"inline",type:"layout",component:Fot,order:2,initialValues:{component:"Inline",children:[],props:{align:"left",gap:20}},attr:Mot},fxe=Object.freeze(Object.defineProperty({__proto__:null,default:Not},Symbol.toStringTag,{value:"Module"})),Vot=Xo({basic:[...Qo(),{label:"校验规则",component:"FormList",name:"rules",children:[{label:"类型",component:"Select",props:{mode:"static",options:[{label:"邮箱",value:"email"},{label:"字母+数字",value:"^(?=.*[a-zA-Z])(?=.*\\d)[a-zA-Z\\d]+$"},{label:"手机号码",value:"^1[3456789]\\d{9}$"},{label:"网址",value:"url"},{label:"自定义正则",value:"custom"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P",name:"type"},{label:"自定义正则",component:"Input",props:{placeholder:"请输入正则表达式"},designKey:"form-Wdb2Reg",name:"customReg",hidden:'{{$item.type!=="custom"}}'},{label:"提示语",component:"Input",props:{placeholder:"请输入..."},designKey:"form-Wdb2",name:"message"},{label:"校验时机",component:"Checkbox",props:{mode:"static",options:[{label:"失去焦点时",value:"blur"},{label:"输入时",value:"change"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P6666",name:"trigger"}],designKey:"form-89tI",props:{mode:"card",title:"校验规则"}}],high:[...Uo(),{label:"显示清除按钮",component:"Switch",name:"props.clearable"},{label:"最长字数",component:"InputNumber",name:"props.maxlength"}],linkage:Ta}),jot={name:"单行文本",component:Yn(Fs,{showWordLimit:!0,autocomplete:"off"}),icon:"input",type:"basic",order:1,initialValues:{label:"单行文本",component:"Input",props:{placeholder:"请输入文本"}},attr:Vot},gxe=Object.freeze(Object.defineProperty({__proto__:null,default:jot},Symbol.toStringTag,{value:"Module"})),Wot=Xo({basic:[...Qo(["initialValue"]),{label:"初始值",component:"InputNumber",name:"initialValue"},{label:"按钮位置",component:"Radio",name:"props.controlsPosition",props:{mode:"static",options:[{label:"两侧",value:""},{label:"内部",value:"right"}]},initialValue:""},{label:"最小值",component:"InputNumber",name:"props.min",initialValue:1},{label:"最大值",component:"InputNumber",name:"props.max",initialValue:9999},{label:"单位",component:"Input",name:"props.unit"},{label:"步长",component:"InputNumber",name:"props.step",initialValue:1}],high:Uo(),linkage:Ta}),Hot={id:"NumberInput"},zot={key:0,class:"unit"},Zot={__name:"InputNumber",props:{modelValue:Number,unit:String,min:{type:Number,default:0},max:Number,disabled:Boolean,step:{type:Number,default:1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Oe({get(){return n.modelValue},set(o){r("update:modelValue",o)}});return(o,a)=>(Ce(),We("span",Hot,[xe(W(mOe),jr({...o.$attrs,...n},{modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=s=>i.value=s)}),null,16,["modelValue"]),e.unit?(Ce(),We("span",zot,en(e.unit),1)):xt("",!0)]))}},Got=Is(Zot,[["__scopeId","data-v-b3d3ea88"]]),Qot={name:"计数器",icon:"inputNumber",type:"basic",order:5,component:Got,initialValues:{label:"计数器",component:"InputNumber"},attr:Wot},mxe=Object.freeze(Object.defineProperty({__proto__:null,default:Qot},Symbol.toStringTag,{value:"Module"}));var vxe={exports:{}};/*!
|
|
* jsoneditor.js
|
|
*
|
|
* @brief
|
|
* JSONEditor is a web-based tool to view, edit, format, and validate JSON.
|
|
* It has various modes such as a tree editor, a code editor, and a plain text
|
|
* editor.
|
|
*
|
|
* Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+
|
|
*
|
|
* @license
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
* use this file except in compliance with the License. You may obtain a copy
|
|
* of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
* License for the specific language governing permissions and limitations under
|
|
* the License.
|
|
*
|
|
* Copyright (c) 2011-2023 Jos de Jong, http://jsoneditoronline.org
|
|
*
|
|
* @author Jos de Jong, <wjosdejong@gmail.com>
|
|
* @version 9.10.5
|
|
* @date 2023-12-21
|
|
*/(function(e,t){(function(n,r){e.exports=r()})(self,function(){return r={897:function(o,a,s){s.d(a,{x:function(){return f}});var l=s(2602),u=s(9791),c=s(7907);function d(g){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(g)}function h(g,b){for(var v=0;v<b.length;v++){var m=b[v];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,function(w){return w=function(k,T){if(d(k)!=="object"||k===null)return k;var S=k[Symbol.toPrimitive];if(S===void 0)return(T==="string"?String:Number)(k);if(S=S.call(k,T||"default"),d(S)!=="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}(w,"string"),d(w)==="symbol"?w:String(w)}(m.key),m)}}var f=function(){function g(m,T){if(!(this instanceof g))throw new TypeError("Cannot call a class as a function");this.dom={};var k=this,I=this.dom,T=(this.anchor=void 0,this.items=m,this.eventListeners={},this.selection=void 0,this.onClose=T?T.close:void 0,this.limitHeight=!!T&&T.limitHeight,document.createElement("div")),S=(T.className="jsoneditor-contextmenu-root",I.root=T,document.createElement("div")),T=(S.className="jsoneditor-contextmenu",I.menu=S,T.appendChild(S),document.createElement("ul")),S=(T.className="jsoneditor-menu",S.appendChild(T),I.list=T,I.items=[],document.createElement("button")),I=(S.type="button",I.focusButton=S,document.createElement("li"));I.style.overflow="hidden",I.style.height="0",I.appendChild(S),T.appendChild(I),function O(y,_,A){A.forEach(function(R){var D,C,x,P,$,L;R.type==="separator"?(($=document.createElement("div")).className="jsoneditor-separator",(C=document.createElement("li")).appendChild($),y.appendChild(C)):(D={},$=document.createElement("li"),y.appendChild($),(C=document.createElement("button")).type="button",C.className=R.className,D.button=C,R.title&&(C.title=R.title),R.click&&(C.onclick=function(V){V.preventDefault(),k.hide(),R.click()}),$.appendChild(C),R.submenu?((P=document.createElement("div")).className="jsoneditor-icon",C.appendChild(P),(P=document.createElement("div")).className="jsoneditor-text"+(R.click?"":" jsoneditor-right-margin"),P.appendChild(document.createTextNode(R.text)),C.appendChild(P),(x=R.click?(C.className+=" jsoneditor-default",(P=document.createElement("button")).type="button",(D.buttonExpand=P).className="jsoneditor-expand",(L=document.createElement("div")).className="jsoneditor-expand",P.appendChild(L),$.appendChild(P),R.submenuTitle&&(P.title=R.submenuTitle),P):((L=document.createElement("div")).className="jsoneditor-expand",C.appendChild(L),C)).onclick=function(V){V.preventDefault(),k._onExpandItem(D),x.focus()},D.subItems=P=[],L=document.createElement("ul"),(D.ul=L).className="jsoneditor-menu",L.style.height="0",$.appendChild(L),O(L,P,R.submenu)):(($=document.createElement("div")).className="jsoneditor-icon",C.appendChild($),(L=document.createElement("div")).className="jsoneditor-text",L.appendChild(document.createTextNode((0,c.Iu)(R.text))),C.appendChild(L)),_.push(D))})}(T,this.dom.items,m),this.maxHeight=0,m.forEach(function(O){O=24*(m.length+(O.submenu?O.submenu.length:0)),k.maxHeight=Math.max(k.maxHeight,O)})}var b,v;return b=g,(v=[{key:"_getVisibleButtons",value:function(){var m=[],w=this;return this.dom.items.forEach(function(k){m.push(k.button),k.buttonExpand&&m.push(k.buttonExpand),k.subItems&&k===w.expandedItem&&k.subItems.forEach(function(T){m.push(T.button),T.buttonExpand&&m.push(T.buttonExpand)})}),m}},{key:"show",value:function(m,_,k){this.hide();var T=!0,I=m.parentNode,S=m.getBoundingClientRect(),I=I.getBoundingClientRect(),O=_.getBoundingClientRect(),y=this,_=(this.dom.absoluteAnchor=(0,l.w)(m,_,function(){y.hide()}),S.bottom+this.maxHeight<O.bottom||S.top-this.maxHeight>O.top&&(T=!1),k?0:S.top-I.top);T?(k=m.offsetHeight,this.dom.menu.style.left="0",this.dom.menu.style.top=_+k+"px",this.dom.menu.style.bottom=""):(this.dom.menu.style.left="0",this.dom.menu.style.top="",this.dom.menu.style.bottom="0px"),this.limitHeight&&(I=T?O.bottom-S.bottom-10:S.top-O.top-10,this.dom.list.style.maxHeight=I+"px",this.dom.list.style.overflowY="auto"),this.dom.absoluteAnchor.appendChild(this.dom.root),this.selection=(0,u.getSelection)(),this.anchor=m,setTimeout(function(){y.dom.focusButton.focus()},0),g.visibleMenu&&g.visibleMenu.hide(),g.visibleMenu=this}},{key:"hide",value:function(){this.dom.absoluteAnchor&&(this.dom.absoluteAnchor.destroy(),delete this.dom.absoluteAnchor),this.dom.root.parentNode&&(this.dom.root.parentNode.removeChild(this.dom.root),this.onClose)&&this.onClose(),g.visibleMenu===this&&(g.visibleMenu=void 0)}},{key:"_onExpandItem",value:function(m){var w,k=this,T=m===this.expandedItem,S=this.expandedItem;S&&(S.ul.style.height="0",S.ul.style.padding="",setTimeout(function(){k.expandedItem!==S&&(S.ul.style.display="",u.removeClassName)(S.ul.parentNode,"jsoneditor-selected")},300),this.expandedItem=void 0),T||((w=m.ul).style.display="block",w.clientHeight,setTimeout(function(){if(k.expandedItem===m){for(var I=0,O=0;O<w.childNodes.length;O++)I+=w.childNodes[O].clientHeight;w.style.height=I+"px",w.style.padding="5px 10px"}},0),(0,u.addClassName)(w.parentNode,"jsoneditor-selected"),this.expandedItem=m)}},{key:"_onKeyDown",value:function(m){var w,k,T,S,I=m.target,O=m.which,y=!1;O===27?(this.selection&&(0,u.setSelection)(this.selection),this.anchor&&this.anchor.focus(),this.hide(),y=!0):O===9?m.shiftKey?(k=(w=this._getVisibleButtons()).indexOf(I))===0&&(w[w.length-1].focus(),y=!0):(k=(w=this._getVisibleButtons()).indexOf(I))===w.length-1&&(w[0].focus(),y=!0):O===37?(I.className==="jsoneditor-expand"&&(k=(w=this._getVisibleButtons()).indexOf(I),T=w[k-1])&&T.focus(),y=!0):O===38?(k=(w=this._getVisibleButtons()).indexOf(I),(T=(T=(T=w[k-1])&&T.className==="jsoneditor-expand"?w[k-2]:T)||w[w.length-1])&&T.focus(),y=!0):O===39?(k=(w=this._getVisibleButtons()).indexOf(I),(S=w[k+1])&&S.className==="jsoneditor-expand"&&S.focus(),y=!0):O===40&&(k=(w=this._getVisibleButtons()).indexOf(I),(S=(S=(S=w[k+1])&&S.className==="jsoneditor-expand"?w[k+2]:S)||w[0])&&(S.focus(),y=!0),y=!0),y&&(m.stopPropagation(),m.preventDefault())}}])&&h(b.prototype,v),Object.defineProperty(b,"prototype",{writable:!1}),g}();f.visibleMenu=void 0},6436:function(o,a,s){function l(d){return(l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(d)}function u(d,h){for(var f=0;f<h.length;f++){var g=h[f];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,function(b){return b=function(v,m){if(l(v)!=="object"||v===null)return v;var w=v[Symbol.toPrimitive];if(w===void 0)return(m==="string"?String:Number)(v);if(w=w.call(v,m||"default"),l(w)!=="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}(b,"string"),l(b)==="symbol"?b:String(b)}(g.key),g)}}s.d(a,{Q:function(){return c}});var c=function(){function d(b){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");this.errorTableVisible=b.errorTableVisible,this.onToggleVisibility=b.onToggleVisibility,this.onFocusLine=b.onFocusLine||function(){},this.onChangeHeight=b.onChangeHeight,this.dom={};var b=document.createElement("div"),v=(b.className="jsoneditor-validation-errors-container",this.dom.validationErrorsContainer=b,document.createElement("div")),b=(v.style.display="none",v.className="jsoneditor-additional-errors fadein",v.textContent="Scroll for more ▿",this.dom.additionalErrorsIndication=v,b.appendChild(v),document.createElement("span")),v=(b.className="jsoneditor-validation-error-icon",b.style.display="none",this.dom.validationErrorIcon=b,document.createElement("span"));v.className="jsoneditor-validation-error-count",v.style.display="none",this.dom.validationErrorCount=v,this.dom.parseErrorIndication=document.createElement("span"),this.dom.parseErrorIndication.className="jsoneditor-parse-error-icon",this.dom.parseErrorIndication.style.display="none"}var h,f;return h=d,(f=[{key:"getErrorTable",value:function(){return this.dom.validationErrorsContainer}},{key:"getErrorCounter",value:function(){return this.dom.validationErrorCount}},{key:"getWarningIcon",value:function(){return this.dom.validationErrorIcon}},{key:"getErrorIcon",value:function(){return this.dom.parseErrorIndication}},{key:"toggleTableVisibility",value:function(){this.errorTableVisible=!this.errorTableVisible,this.onToggleVisibility(this.errorTableVisible)}},{key:"setErrors",value:function(g,b){var v,m,w=this,k=(this.dom.validationErrors&&(this.dom.validationErrors.parentNode.removeChild(this.dom.validationErrors),this.dom.validationErrors=null,this.dom.additionalErrorsIndication.style.display="none"),this.errorTableVisible&&0<g.length?((k=document.createElement("div")).className="jsoneditor-validation-errors",(m=document.createElement("table")).className="jsoneditor-text-errors",k.appendChild(m),v=document.createElement("tbody"),m.appendChild(v),g.forEach(function(T){isNaN(T.line)?T.dataPath&&(I=b.find(function(_){return _.path===T.dataPath}))&&(S=I.line+1):S=T.line;var S,I=document.createElement("tr"),O=(I.className=isNaN(S)?"":"jump-to-line",T.type==="error"?I.className+=" parse-error":I.className+=" validation-error",document.createElement("td")),y=document.createElement("button"),y=(y.className="jsoneditor-schema-error",O.appendChild(y),I.appendChild(O),document.createElement("td"));y.style="white-space: nowrap;",y.textContent=isNaN(S)?"":"Ln "+S,I.appendChild(y),typeof T=="string"?((O=document.createElement("td")).colSpan=2,(y=document.createElement("pre")).appendChild(document.createTextNode(T)),O.appendChild(y),I.appendChild(O)):((y=document.createElement("td")).appendChild(document.createTextNode(T.dataPath||"")),I.appendChild(y),O=document.createElement("td"),(y=document.createElement("pre")).appendChild(document.createTextNode(T.message.replace(/<br>/gi,`
|
|
`))),O.appendChild(y),I.appendChild(O)),I.onclick=function(){w.onFocusLine(S)},v.appendChild(I)}),this.dom.validationErrors=k,this.dom.validationErrorsContainer.appendChild(k),this.dom.additionalErrorsIndication.title=g.length+" errors total",this.dom.validationErrorsContainer.clientHeight<this.dom.validationErrorsContainer.scrollHeight?(this.dom.additionalErrorsIndication.style.display="block",this.dom.validationErrorsContainer.onscroll=function(){w.dom.additionalErrorsIndication.style.display=0<w.dom.validationErrorsContainer.clientHeight&&w.dom.validationErrorsContainer.scrollTop===0?"block":"none"}):this.dom.validationErrorsContainer.onscroll=void 0,m=this.dom.validationErrorsContainer.clientHeight+(this.dom.statusBar?this.dom.statusBar.clientHeight:0),this.onChangeHeight(m)):this.onChangeHeight(0),g.filter(function(T){return T.type!=="error"}).length);0<k?(this.dom.validationErrorCount.style.display="inline",this.dom.validationErrorCount.innerText=k,this.dom.validationErrorCount.onclick=this.toggleTableVisibility.bind(this),this.dom.validationErrorIcon.style.display="inline",this.dom.validationErrorIcon.title=k+" schema validation error(s) found",this.dom.validationErrorIcon.onclick=this.toggleTableVisibility.bind(this)):(this.dom.validationErrorCount.style.display="none",this.dom.validationErrorIcon.style.display="none"),g.some(function(T){return T.type==="error"})?(m=g[0].line,this.dom.parseErrorIndication.style.display="block",this.dom.parseErrorIndication.title=isNaN(m)?"parse error - check that the json is valid":"parse error on line "+m,this.dom.parseErrorIndication.onclick=this.toggleTableVisibility.bind(this)):this.dom.parseErrorIndication.style.display="none"}}])&&u(h.prototype,f),Object.defineProperty(h,"prototype",{writable:!1}),d}()},2474:function(o,a,s){function l(d){return(l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(d)}function u(d,h){for(var f=0;f<h.length;f++){var g=h[f];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,function(b){return b=function(v,m){if(l(v)!=="object"||v===null)return v;var w=v[Symbol.toPrimitive];if(w===void 0)return(m==="string"?String:Number)(v);if(w=w.call(v,m||"default"),l(w)!=="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}(b,"string"),l(b)==="symbol"?b:String(b)}(g.key),g)}}s.d(a,{R:function(){return c}});var c=function(){function d(g){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");if(this.target=g.target||null,!this.target)throw new Error('FocusTracker constructor called without a "target" to track.');this.onFocus=typeof g.onFocus=="function"?g.onFocus:null,this.onBlur=typeof g.onBlur=="function"?g.onBlur:null,this._onClick=this._onEvent.bind(this),this._onKeyUp=(function(b){b.which!==9&&b.keyCode!==9||this._onEvent(b)}).bind(this),this._onBlur=this._onEvent.bind(this),this.focusFlag=!1,this.firstEventFlag=!0,(this.onFocus||this.onBlur)&&(document.addEventListener("click",this._onClick),document.addEventListener("keyup",this._onKeyUp),document.addEventListener("blur",this._onBlur))}var h,f;return h=d,(f=[{key:"destroy",value:function(){document.removeEventListener("click",this._onClick),document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("blur",this._onBlur),this._onEvent({target:document.body})}},{key:"_onEvent",value:function(g){g=g.target,g=g===this.target||!(!this.target.contains(g)&&!this.target.contains(document.activeElement)),g?this.focusFlag||(this.onFocus&&this.onFocus({type:"focus",target:this.target}),this.focusFlag=!0):(this.focusFlag||this.firstEventFlag)&&(this.onBlur&&this.onBlur({type:"blur",target:this.target}),this.focusFlag=!1,this.firstEventFlag)&&(this.firstEventFlag=!1)}}])&&u(h.prototype,f),Object.defineProperty(h,"prototype",{writable:!1}),d}()},3161:function(o,a,s){var l=s(8170),u=s(8037),c=s(8038).treeModeMixins,d=s(8458).textModeMixins,h=s(341).previewModeMixins,w=s(9791),f=w.clear,g=w.extend,b=w.getInnerText,v=w.getInternetExplorerVersion,m=w.parse,w=s(2744).tryRequireAjv,k=s(2558).showTransformModal,T=s(6210).showSortModal,S=w();function I(O,y,_){if(!(this instanceof I))throw new Error('JSONEditor constructor called without "new".');var A=v();if(A!==-1&&A<9)throw new Error("Unsupported browser, IE9 or newer required. Please install the newest version of your browser.");y&&(y.error&&(console.warn('Option "error" has been renamed to "onError"'),y.onError=y.error,delete y.error),y.change&&(console.warn('Option "change" has been renamed to "onChange"'),y.onChange=y.change,delete y.change),y.editable&&(console.warn('Option "editable" has been renamed to "onEditable"'),y.onEditable=y.editable,delete y.editable),y.onChangeJSON&&(y.mode==="text"||y.mode==="code"||y.modes&&(y.modes.indexOf("text")!==-1||y.modes.indexOf("code")!==-1))&&console.warn('Option "onChangeJSON" is not applicable to modes "text" and "code". Use "onChangeText" or "onChange" instead.'),y)&&Object.keys(y).forEach(function(R){I.VALID_OPTIONS.indexOf(R)===-1&&console.warn('Unknown option "'+R+'". This option will be ignored')}),arguments.length&&this._create(O,y,_)}typeof Promise>"u"&&console.error("Promise undefined. Please load a Promise polyfill in the browser in order to use JSONEditor"),I.modes={},I.prototype.DEBOUNCE_INTERVAL=150,I.VALID_OPTIONS=["ajv","schema","schemaRefs","templates","ace","theme","autocomplete","onChange","onChangeJSON","onChangeText","onExpand","onEditable","onError","onEvent","onModeChange","onNodeName","onValidate","onCreateMenu","onSelectionChange","onTextSelectionChange","onClassName","onFocus","onBlur","colorPicker","onColorPicker","timestampTag","timestampFormat","escapeUnicode","history","search","mode","modes","name","indentation","sortObjectKeys","navigationBar","statusBar","mainMenuBar","languages","language","enableSort","enableTransform","limitDragging","maxVisibleChilds","onValidationError","modalAnchor","popupAnchor","createQuery","executeQuery","queryDescription","allowSchemaSuggestions","showErrorTable"],I.prototype._create=function(O,y,_){this.container=O,this.options=y||{},this.json=_||{},O=this.options.mode||this.options.modes&&this.options.modes[0]||"tree",this.setMode(O)},I.prototype.destroy=function(){},I.prototype.set=function(O){this.json=O},I.prototype.get=function(){return this.json},I.prototype.setText=function(O){this.json=m(O)},I.prototype.getText=function(){return JSON.stringify(this.json)},I.prototype.setName=function(O){this.options||(this.options={}),this.options.name=O},I.prototype.getName=function(){return this.options&&this.options.name},I.prototype.setMode=function(O){if(O!==this.options.mode||!this.create){var y=this.container,_=g({},this.options),A=_.mode,R=(_.mode=O,I.modes[O]);if(!R)throw new Error('Unknown mode "'+_.mode+'"');var D=R.data==="text",C=this.getName(),x=this[D?"getText":"get"]();if(this.destroy(),f(this),g(this,R.mixin),this.create(y,_),this.setName(C),this[D?"setText":"set"](x),typeof R.load=="function")try{R.load.call(this)}catch(P){console.error(P)}if(typeof _.onModeChange=="function"&&O!==A)try{_.onModeChange(O,A)}catch(P){console.error(P)}}},I.prototype.getMode=function(){return this.options.mode},I.prototype._onError=function(O){this.options&&typeof this.options.onError=="function"?this.options.onError(O):window.alert(O.toString())},I.prototype.setSchema=function(O,y){if(O){var _;try{this.options.ajv?_=this.options.ajv:((_=S({allErrors:!0,verbose:!0,schemaId:"auto",$data:!0})).addMetaSchema(s(7171)),_.addMetaSchema(s(6273)))}catch{console.warn("Failed to create an instance of Ajv, JSON Schema validation is not available. Please use a JSONEditor bundle including Ajv, or pass an instance of Ajv as via the configuration option `ajv`.")}if(_){if(y){for(var A in y)_.removeSchema(A),y[A]&&_.addSchema(y[A],A);this.options.schemaRefs=y}this.validateSchema=_.compile(O),this.options.schema=O,this.options.schemaRefs=y,this.validate()}}else this.validateSchema=null,this.options.schema=null,this.options.schemaRefs=null,this.validate();this.refresh(),typeof this._onSchemaChange=="function"&&this._onSchemaChange(O,y)},I.prototype.validate=function(){},I.prototype.refresh=function(){},(I.registerMode=function(O){var y;if(Array.isArray(O))for(R=0;R<O.length;R++)I.registerMode(O[R]);else{if(!("mode"in O))throw new Error('Property "mode" missing');if(!("mixin"in O))throw new Error('Property "mixin" missing');if(!("data"in O))throw new Error('Property "data" missing');var _=O.mode;if(_ in I.modes)throw new Error('Mode "'+_+'" already registered');if(typeof O.mixin.create!="function")throw new Error('Required function "create" missing on mixin');for(var A=["setMode","registerMode","modes"],R=0;R<A.length;R++)if((y=A[R])in O.mixin)throw new Error('Reserved property "'+y+'" not allowed in mixin');I.modes[_]=O}})(c),I.registerMode(d),I.registerMode(h),I.ace=l,I.Ajv=S,I.VanillaPicker=u,I.showTransformModal=k,I.showSortModal=T,I.getInnerText=b,o.exports=I.default=I},6617:function(o,a,s){s.d(a,{x:function(){return h}});var l=s(897),u=s(7907);function c(f){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(f)}function d(f,g){for(var b=0;b<g.length;b++){var v=g[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(f,function(m){return m=function(w,k){if(c(w)!=="object"||w===null)return w;var T=w[Symbol.toPrimitive];if(T===void 0)return(k==="string"?String:Number)(w);if(T=T.call(w,k||"default"),c(T)!=="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}(m,"string"),c(m)==="symbol"?m:String(m)}(v.key),v)}}var h=function(){function f(v,m,w,k){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");for(var T={code:{text:(0,u.Iu)("modeCodeText"),title:(0,u.Iu)("modeCodeTitle"),click:function(){k("code")}},form:{text:(0,u.Iu)("modeFormText"),title:(0,u.Iu)("modeFormTitle"),click:function(){k("form")}},text:{text:(0,u.Iu)("modeTextText"),title:(0,u.Iu)("modeTextTitle"),click:function(){k("text")}},tree:{text:(0,u.Iu)("modeTreeText"),title:(0,u.Iu)("modeTreeTitle"),click:function(){k("tree")}},view:{text:(0,u.Iu)("modeViewText"),title:(0,u.Iu)("modeViewTitle"),click:function(){k("view")}},preview:{text:(0,u.Iu)("modePreviewText"),title:(0,u.Iu)("modePreviewTitle"),click:function(){k("preview")}}},S=[],I=0;I<m.length;I++){var O=m[I],y=T[O];if(!y)throw new Error('Unknown mode "'+O+'"');y.className="jsoneditor-type-modes"+(w===O?" jsoneditor-selected":""),S.push(y)}var A=T[w];if(!A)throw new Error('Unknown mode "'+w+'"');var A=A.text,_=document.createElement("button"),A=(_.type="button",_.className="jsoneditor-modes jsoneditor-separator",_.textContent=A+" ▾",_.title=(0,u.Iu)("modeEditorTitle"),_.onclick=function(){new l.x(S).show(_,v)},document.createElement("div"));A.className="jsoneditor-modes",A.style.position="relative",A.appendChild(_),v.appendChild(A),this.dom={container:v,box:_,frame:A}}var g,b;return g=f,(b=[{key:"focus",value:function(){this.dom.box.focus()}},{key:"destroy",value:function(){this.dom&&this.dom.frame&&this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom=null}}])&&d(g.prototype,b),Object.defineProperty(g,"prototype",{writable:!1}),f}()},8170:function(o,a,s){var l;if(window.ace)l=window.ace;else try{l=s(6225),s(4091),s(3330),s(4317);var u=s(7923);l.config.setModuleUrl("ace/mode/json_worker",u)}catch{}o.exports=l},4864:function(){window.ace.define("ace/theme/jsoneditor",["require","exports","module","ace/lib/dom"],function(o,a,s){a.isDark=!1,a.cssClass="ace-jsoneditor",a.cssText=`.ace-jsoneditor .ace_gutter {
|
|
background: #ebebeb;
|
|
color: #333
|
|
}
|
|
|
|
.ace-jsoneditor.ace_editor {
|
|
line-height: 1.3;
|
|
background-color: #fff;
|
|
}
|
|
.ace-jsoneditor .ace_print-margin {
|
|
width: 1px;
|
|
background: #e8e8e8
|
|
}
|
|
.ace-jsoneditor .ace_scroller {
|
|
background-color: #FFFFFF
|
|
}
|
|
.ace-jsoneditor .ace_text-layer {
|
|
color: gray
|
|
}
|
|
.ace-jsoneditor .ace_variable {
|
|
color: #1a1a1a
|
|
}
|
|
.ace-jsoneditor .ace_cursor {
|
|
border-left: 2px solid #000000
|
|
}
|
|
.ace-jsoneditor .ace_overwrite-cursors .ace_cursor {
|
|
border-left: 0px;
|
|
border-bottom: 1px solid #000000
|
|
}
|
|
.ace-jsoneditor .ace_marker-layer .ace_selection {
|
|
background: lightgray
|
|
}
|
|
.ace-jsoneditor.ace_multiselect .ace_selection.ace_start {
|
|
box-shadow: 0 0 3px 0px #FFFFFF;
|
|
border-radius: 2px
|
|
}
|
|
.ace-jsoneditor .ace_marker-layer .ace_step {
|
|
background: rgb(255, 255, 0)
|
|
}
|
|
.ace-jsoneditor .ace_marker-layer .ace_bracket {
|
|
margin: -1px 0 0 -1px;
|
|
border: 1px solid #BFBFBF
|
|
}
|
|
.ace-jsoneditor .ace_marker-layer .ace_active-line {
|
|
background: #FFFBD1
|
|
}
|
|
.ace-jsoneditor .ace_gutter-active-line {
|
|
background-color : #dcdcdc
|
|
}
|
|
.ace-jsoneditor .ace_marker-layer .ace_selected-word {
|
|
border: 1px solid lightgray
|
|
}
|
|
.ace-jsoneditor .ace_invisible {
|
|
color: #BFBFBF
|
|
}
|
|
.ace-jsoneditor .ace_keyword,
|
|
.ace-jsoneditor .ace_meta,
|
|
.ace-jsoneditor .ace_support.ace_constant.ace_property-value {
|
|
color: #AF956F
|
|
}
|
|
.ace-jsoneditor .ace_keyword.ace_operator {
|
|
color: #484848
|
|
}
|
|
.ace-jsoneditor .ace_keyword.ace_other.ace_unit {
|
|
color: #96DC5F
|
|
}
|
|
.ace-jsoneditor .ace_constant.ace_language {
|
|
color: darkorange
|
|
}
|
|
.ace-jsoneditor .ace_constant.ace_numeric {
|
|
color: red
|
|
}
|
|
.ace-jsoneditor .ace_constant.ace_character.ace_entity {
|
|
color: #BF78CC
|
|
}
|
|
.ace-jsoneditor .ace_invalid {
|
|
color: #FFFFFF;
|
|
background-color: #FF002A;
|
|
}
|
|
.ace-jsoneditor .ace_fold {
|
|
background-color: #AF956F;
|
|
border-color: #000000
|
|
}
|
|
.ace-jsoneditor .ace_storage,
|
|
.ace-jsoneditor .ace_support.ace_class,
|
|
.ace-jsoneditor .ace_support.ace_function,
|
|
.ace-jsoneditor .ace_support.ace_other,
|
|
.ace-jsoneditor .ace_support.ace_type {
|
|
color: #C52727
|
|
}
|
|
.ace-jsoneditor .ace_string {
|
|
color: green
|
|
}
|
|
.ace-jsoneditor .ace_comment {
|
|
color: #BCC8BA
|
|
}
|
|
.ace-jsoneditor .ace_entity.ace_name.ace_tag,
|
|
.ace-jsoneditor .ace_entity.ace_other.ace_attribute-name {
|
|
color: #606060
|
|
}
|
|
.ace-jsoneditor .ace_markup.ace_underline {
|
|
text-decoration: underline
|
|
}
|
|
.ace-jsoneditor .ace_indent-guide {
|
|
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y
|
|
}`,o("../lib/dom").importCssString(a.cssText,a.cssClass)})},6589:function(o,a){(s={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(l,u,c,d,h,f,g){var b=f.length-1;switch(h){case 1:this.$=l.replace(/\\(\\|")/g,"$1").replace(/\\n/g,`
|
|
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(l);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=f[b-1];case 13:this.$={};break;case 14:this.$=f[b-1];break;case 15:this.$=[f[b-2],f[b]];break;case 16:this.$={},this.$[f[b][0]]=f[b][1];break;case 17:this.$=f[b-2],f[b-2][f[b][0]]=f[b][1];break;case 18:this.$=[];break;case 19:this.$=f[b-1];break;case 20:this.$=[f[b]];break;case 21:this.$=f[b-2],f[b-2].push(f[b])}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(l,u){throw new Error(l)},parse:function(l){var u=this,c=[0],d=[null],h=[],f=this.table,g="",b=0,v=0,m=0,w=(this.lexer.setInput(l),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.lexer.yylloc===void 0&&(this.lexer.yylloc={}),this.lexer.yylloc);function k(){var P=u.lexer.lex()||1;return P=typeof P!="number"&&u.symbols_[P]||P}h.push(w),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var T,S,I,O,y,_,A,R,D,C={};;){if(I=c[c.length-1],(O=this.defaultActions[I]||(T==null&&(T=k()),f[I]&&f[I][T]))===void 0||!O.length||!O[0]){if(!m){for(y in R=[],f[I])this.terminals_[y]&&2<y&&R.push("'"+this.terminals_[y]+"'");var x="",x=this.lexer.showPosition?"Parse error on line "+(b+1)+`:
|
|
`+this.lexer.showPosition()+`
|
|
Expecting `+R.join(", ")+", got '"+this.terminals_[T]+"'":"Parse error on line "+(b+1)+": Unexpected "+(T==1?"end of input":"'"+(this.terminals_[T]||T)+"'");this.parseError(x,{text:this.lexer.match,token:this.terminals_[T]||T,line:this.lexer.yylineno,loc:w,expected:R})}if(m==3){if(T==1)throw new Error(x||"Parsing halted.");v=this.lexer.yyleng,g=this.lexer.yytext,b=this.lexer.yylineno,w=this.lexer.yylloc,T=k()}for(;!("2"in f[I]);){if(I==0)throw new Error(x||"Parsing halted.");D=1,c.length=c.length-2*D,d.length=d.length-D,h.length=h.length-D,I=c[c.length-1]}S=T,T=2,O=f[I=c[c.length-1]]&&f[I][2],m=3}if(O[0]instanceof Array&&1<O.length)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+T);switch(O[0]){case 1:c.push(T),d.push(this.lexer.yytext),h.push(this.lexer.yylloc),c.push(O[1]),T=null,S?(T=S,S=null):(v=this.lexer.yyleng,g=this.lexer.yytext,b=this.lexer.yylineno,w=this.lexer.yylloc,0<m&&m--);break;case 2:if(_=this.productions_[O[1]][1],C.$=d[d.length-_],C._$={first_line:h[h.length-(_||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(_||1)].first_column,last_column:h[h.length-1].last_column},(A=this.performAction.call(C,g,v,b,this.yy,O[1],d,h))!==void 0)return A;_&&(c=c.slice(0,-1*_*2),d=d.slice(0,-1*_),h=h.slice(0,-1*_)),c.push(this.productions_[O[1]][0]),d.push(C.$),h.push(C._$),A=f[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0}}).lexer={EOF:1,parseError:function(l,u){if(!this.yy.parseError)throw new Error(l);this.yy.parseError(l,u)},setInput:function(l){return this._input=l,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var l=this._input[0];return this.yytext+=l,this.yyleng++,this.match+=l,this.matched+=l,l.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),l},unput:function(l){return this._input=l+this._input,this},more:function(){return this._more=!0,this},less:function(l){this._input=this.match.slice(l)+this._input},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(20<l.length?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(20<l.length?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),u=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
`+u+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var l,u,c,d,h=this._currentRules(),f=0;f<h.length&&(!(u=this._input.match(this.rules[h[f]]))||l&&!(u[0].length>l[0].length)||(l=u,c=f,this.options.flex));f++);return l?((d=l[0].match(/\n.*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-1:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],d=this.performAction.call(this,this.yy,this,h[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d||void 0):this._input===""?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var l=this.next();return l!==void 0?l:this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(l){this.begin(l)},options:{},performAction:function(l,u,c,d){switch(c){case 0:break;case 1:return 6;case 2:return u.yytext=u.yytext.substr(1,u.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};var s;a.parser=s,a.parse=s.parse.bind(s)},3879:function(o){function a(){}a.prototype={on:function(b,v){this._events=this._events||{},this._events[b]=this._events[b]||[],this._events[b].push(v)},off:function(b,v){this._events=this._events||{},b in this._events&&this._events[b].splice(this._events[b].indexOf(v),1)},emit:function(b){if(this._events=this._events||{},b in this._events)for(var v=0;v<this._events[b].length;v++)this._events[b][v].apply(this,Array.prototype.slice.call(arguments,1))}},a.mixin=function(b){for(var v=["on","off","emit"],m=0;m<v.length;m++)typeof b=="function"?b.prototype[v[m]]=a.prototype[v[m]]:b[v[m]]=a.prototype[v[m]];return b};var s={escapeRegExp:function(b){var v=/[\\^$.*+?()[\]{}|]/g,m=new RegExp(v.source);return b&&m.test(b)?b.replace(v,"\\$&"):b},extend:function(b,v){for(var m in v){var w;v.hasOwnProperty(m)&&((w=v[m])&&Object.prototype.toString.call(w)==="[object Object]"?(b[m]=b[m]||{},s.extend(b[m],w)):b[m]=w)}return b},each:function(b,v,m){if(Object.prototype.toString.call(b)==="[object Object]")for(var w in b)Object.prototype.hasOwnProperty.call(b,w)&&v.call(m,w,b[w],b);else for(var k=0,T=b.length;k<T;k++)v.call(m,k,b[k],b)},createElement:function(b,v){var m,w=document.createElement(b);if(v&&Object.prototype.toString.call(v)==="[object Object]")for(m in v)m in w?w[m]=v[m]:m==="html"?w.innerHTML=v[m]:w.setAttribute(m,v[m]);return w},hasClass:function(b,v){if(b)return b.classList?b.classList.contains(v):!!b.className&&!!b.className.match(new RegExp("(\\s|^)"+v+"(\\s|$)"))},addClass:function(b,v){s.hasClass(b,v)||(b.classList?b.classList.add(v):b.className=b.className.trim()+" "+v)},removeClass:function(b,v){s.hasClass(b,v)&&(b.classList?b.classList.remove(v):b.className=b.className.replace(new RegExp("(^|\\s)"+v.split(" ").join("|")+"(\\s|$)","gi")," "))},closest:function(b,v){return b&&b!==document.body&&(v(b)?b:s.closest(b.parentNode,v))},isInt:function(b){return typeof b=="number"&&isFinite(b)&&Math.floor(b)===b},debounce:function(b,v,m){var w;return function(){var k=this,T=arguments,S=m&&!w;clearTimeout(w),w=setTimeout(function(){w=null,m||b.apply(k,T)},v),S&&b.apply(k,T)}},rect:function(w,T){var m=window,w=w.getBoundingClientRect(),k=T?m.pageXOffset:0,T=T?m.pageYOffset:0;return{bottom:w.bottom+T,height:w.height,left:w.left+k,right:w.right+k,top:w.top+T,width:w.width}},includes:function(b,v){return-1<b.indexOf(v)},startsWith:function(b,v){return b.substr(0,v.length)===v},truncate:function(b){for(;b.firstChild;)b.removeChild(b.firstChild)}};function l(b,v){return b.hasOwnProperty(v)&&(b[v]===!0||b[v].length)}function u(b,v,m){b.parentNode?b.parentNode.parentNode||v.appendChild(b.parentNode):v.appendChild(b),s.removeClass(b,"excluded"),m||(b.textContent=b.textContent)}function c(){var b,v;this.items.length&&(b=document.createDocumentFragment(),this.config.pagination?(v=this.pages.slice(0,this.pageIndex),s.each(v,function(m,w){s.each(w,function(k,T){u(T,b,this.customOption)},this)},this)):s.each(this.items,function(m,w){u(w,b,this.customOption)},this),b.childElementCount&&(s.removeClass(this.items[this.navIndex],"active"),this.navIndex=(b.querySelector(".selectr-option.selected")||b.querySelector(".selectr-option")).idx,s.addClass(this.items[this.navIndex],"active")),this.tree.appendChild(b))}function d(b,v){v=v||b;var m={class:"selectr-option",role:"treeitem","aria-selected":!1};return this.customOption?m.html=this.config.renderOption(v):m.textContent=b.textContent,(v=s.createElement("li",m)).idx=b.idx,this.items.push(v),b.defaultSelected&&this.defaultSelected.push(b.idx),b.disabled&&(v.disabled=!0,s.addClass(v,"disabled")),v}function h(){var b,v=this.tree,m=v.scrollTop;v.scrollHeight-v.offsetHeight<=m&&this.pageIndex<this.pages.length&&(b=document.createDocumentFragment(),s.each(this.pages[this.pageIndex],function(w,k){u(k,b,this.customOption)},this),v.appendChild(b),this.pageIndex++,this.emit("selectr.paginate",{items:this.items.length,total:this.data.length,page:this.pageIndex,pages:this.pages.length}))}function f(){(this.config.searchable||this.config.taggable)&&(this.input.value=null,this.searching=!1,this.config.searchable&&s.removeClass(this.inputContainer,"active"),s.hasClass(this.container,"notice")&&(s.removeClass(this.container,"notice"),s.addClass(this.container,"open"),this.input.focus()),s.each(this.items,function(b,v){s.removeClass(v,"excluded"),this.customOption||(v.textContent=v.textContent)},this))}function g(b,v){if(!b)throw new Error("You must supply either a HTMLSelectElement or a CSS3 selector string.");if(typeof(this.el=b)=="string"&&(this.el=document.querySelector(b)),this.el===null)throw new Error("The element you passed to Selectr can not be found.");if(this.el.nodeName.toLowerCase()!=="select")throw new Error("The element you passed to Selectr is not a HTMLSelectElement.");this.render(v)}g.prototype.render=function(b){var v;this.rendered||((this.el.selectr=this).config=s.extend({defaultSelected:!0,width:"auto",disabled:!1,disabledMobile:!1,searchable:!0,clearable:!1,sortSelected:!1,allowDeselect:!1,closeOnScroll:!1,nativeDropdown:!1,nativeKeyboard:!1,placeholder:"Select an option...",taggable:!1,tagPlaceholder:"Enter a tag...",messages:{noResults:"No results.",noOptions:"No options available.",maxSelections:"A maximum of {max} items can be selected.",tagDuplicate:"That tag is already in use.",searchPlaceholder:"Search options..."}},b),this.originalType=this.el.type,this.originalIndex=this.el.tabIndex,this.defaultSelected=[],this.originalOptionCount=this.el.options.length,(this.config.multiple||this.config.taggable)&&(this.el.multiple=!0),this.disabled=l(this.config,"disabled"),this.opened=!1,this.config.taggable&&(this.config.searchable=!1),this.navigating=!1,this.mobileDevice=!1,!this.config.disabledMobile&&/Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(navigator.userAgent)&&(this.mobileDevice=!0),this.customOption=this.config.hasOwnProperty("renderOption")&&typeof this.config.renderOption=="function",this.customSelected=this.config.hasOwnProperty("renderSelection")&&typeof this.config.renderSelection=="function",this.supportsEventPassiveOption=this.detectEventPassiveOption(),a.mixin(this),(function(){this.requiresPagination=this.config.pagination&&0<this.config.pagination,l(this.config,"width")&&(s.isInt(this.config.width)?this.width=this.config.width+"px":this.config.width==="auto"?this.width="100%":s.includes(this.config.width,"%")&&(this.width=this.config.width)),this.container=s.createElement("div",{class:"selectr-container"}),this.config.customClass&&s.addClass(this.container,this.config.customClass),this.mobileDevice?s.addClass(this.container,"selectr-mobile"):s.addClass(this.container,"selectr-desktop"),this.el.tabIndex=-1,this.config.nativeDropdown||this.mobileDevice?s.addClass(this.el,"selectr-visible"):s.addClass(this.el,"selectr-hidden"),this.selected=s.createElement("div",{class:"selectr-selected",disabled:this.disabled,tabIndex:0,"aria-expanded":!1}),this.label=s.createElement(this.el.multiple?"ul":"span",{class:"selectr-label"});var m=s.createElement("div",{class:"selectr-options-container"});if(this.tree=s.createElement("ul",{class:"selectr-options",role:"tree","aria-hidden":!0,"aria-expanded":!1}),this.notice=s.createElement("div",{class:"selectr-notice"}),this.el.setAttribute("aria-hidden",!0),this.disabled&&(this.el.disabled=!0),this.el.multiple?(s.addClass(this.label,"selectr-tags"),s.addClass(this.container,"multiple"),this.tags=[],this.selectedValues=this.config.defaultSelected?this.getSelectedProperties("value"):[],this.selectedIndexes=this.getSelectedProperties("idx")):(this.selectedValue=null,this.selectedIndex=-1),this.selected.appendChild(this.label),this.config.clearable&&(this.selectClear=s.createElement("button",{class:"selectr-clear",type:"button"}),this.container.appendChild(this.selectClear),s.addClass(this.container,"clearable")),this.config.taggable){var w=s.createElement("li",{class:"input-tag"});if(this.input=s.createElement("input",{class:"selectr-tag-input",placeholder:this.config.tagPlaceholder,tagIndex:0,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"textbox",type:"search"}),w.appendChild(this.input),this.label.appendChild(w),s.addClass(this.container,"taggable"),this.tagSeperators=[","],this.config.tagSeperators){this.tagSeperators=this.tagSeperators.concat(this.config.tagSeperators);for(var k=[],T=0;T<this.tagSeperators.length;T++)k.push(s.escapeRegExp(this.tagSeperators[T]));this.tagSeperatorsRegex=new RegExp(k.join("|"),"i")}else this.tagSeperatorsRegex=new RegExp(",","i")}this.config.searchable&&(this.input=s.createElement("input",{class:"selectr-input",tagIndex:-1,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"textbox",type:"search",placeholder:this.config.messages.searchPlaceholder}),this.inputClear=s.createElement("button",{class:"selectr-input-clear",type:"button"}),this.inputContainer=s.createElement("div",{class:"selectr-input-container"}),this.inputContainer.appendChild(this.input),this.inputContainer.appendChild(this.inputClear),m.appendChild(this.inputContainer)),m.appendChild(this.notice),m.appendChild(this.tree),this.items=[],this.options=[],this.el.options.length&&(this.options=[].slice.call(this.el.options));var S,I,O,y=!1,_=0;this.el.children.length&&s.each(this.el.children,function(R,D){D.nodeName==="OPTGROUP"?(y=s.createElement("ul",{class:"selectr-optgroup",role:"group",html:"<li class='selectr-optgroup--label'>"+D.label+"</li>"}),s.each(D.children,function(C,x){x.idx=_,y.appendChild(d.call(this,x,y)),_++},this)):(D.idx=_,d.call(this,D),_++)},this),this.config.data&&Array.isArray(this.config.data)&&(S=!(this.data=[]),y=!1,_=0,s.each(this.config.data,function(R,D){l(D,"children")?(S=s.createElement("optgroup",{label:D.text}),y=s.createElement("ul",{class:"selectr-optgroup",role:"group",html:"<li class='selectr-optgroup--label'>"+D.text+"</li>"}),s.each(D.children,function(C,x){(I=new Option(x.text,x.value,!1,x.hasOwnProperty("selected")&&x.selected===!0)).disabled=l(x,"disabled"),this.options.push(I),S.appendChild(I),I.idx=_,y.appendChild(d.call(this,I,x)),this.data[_]=x,_++},this),this.el.appendChild(S)):((I=new Option(D.text,D.value,!1,D.hasOwnProperty("selected")&&D.selected===!0)).disabled=l(D,"disabled"),this.options.push(I),I.idx=_,d.call(this,I,D),this.data[_]=D,_++)},this)),this.setSelected(!0);for(var A=this.navIndex=0;A<this.items.length;A++)if(O=this.items[A],!s.hasClass(O,"disabled")){s.addClass(O,"active"),this.navIndex=A;break}this.requiresPagination&&(this.pageIndex=1,this.paginate()),this.container.appendChild(this.selected),this.container.appendChild(m),this.placeEl=s.createElement("div",{class:"selectr-placeholder"}),this.setPlaceholder(),this.selected.appendChild(this.placeEl),this.disabled&&this.disable(),this.el.parentNode.insertBefore(this.container,this.el),this.container.appendChild(this.el)}).call(this),this.bindEvents(),this.update(),this.optsRect=s.rect(this.tree),this.rendered=!0,this.el.multiple||(this.el.selectedIndex=this.selectedIndex),v=this,setTimeout(function(){v.emit("selectr.init")},20))},g.prototype.getSelected=function(){return this.el.querySelectorAll("option:checked")},g.prototype.getSelectedProperties=function(b){var v=this.getSelected();return[].slice.call(v).map(function(m){return m[b]}).filter(function(m){return m!=null})},g.prototype.detectEventPassiveOption=function(){var b=!1;try{var v=Object.defineProperty({},"passive",{get:function(){b=!0}});window.addEventListener("test",null,v)}catch{}return b},g.prototype.bindEvents=function(){var b,v=this;this.events={},this.events.dismiss=(function(m){m=m.target,this.container.contains(m)||!this.opened&&!s.hasClass(this.container,"notice")||this.close()}).bind(this),this.events.navigate=(function(m){if(m=m||window.event,this.items.length&&this.opened&&s.includes([13,38,40],m.which)){if(m.preventDefault(),m.which===13)return!(this.noResults||this.config.taggable&&0<this.input.value.length)&&this.change(this.navIndex);var w,k=this.items[this.navIndex],T=this.navIndex;switch(m.which){case 38:(w=0)<this.navIndex&&this.navIndex--;break;case 40:this.navIndex<this.items.length-(w=1)&&this.navIndex++}for(this.navigating=!0;s.hasClass(this.items[this.navIndex],"disabled")||s.hasClass(this.items[this.navIndex],"excluded");){if(!(0<this.navIndex&&this.navIndex<this.items.length-1)){this.navIndex=T;break}if(w?this.navIndex++:this.navIndex--,this.searching){if(this.navIndex>this.tree.lastElementChild.idx){this.navIndex=this.tree.lastElementChild.idx;break}if(this.navIndex<this.tree.firstElementChild.idx){this.navIndex=this.tree.firstElementChild.idx;break}}}m=s.rect(this.items[this.navIndex]),w?(this.navIndex===0?this.tree.scrollTop=0:m.top+m.height>this.optsRect.top+this.optsRect.height&&(this.tree.scrollTop=this.tree.scrollTop+(m.top+m.height-(this.optsRect.top+this.optsRect.height))),this.navIndex===this.tree.childElementCount-1&&this.requiresPagination&&h.call(this)):this.navIndex===0?this.tree.scrollTop=0:m.top-this.optsRect.top<0&&(this.tree.scrollTop=this.tree.scrollTop+(m.top-this.optsRect.top)),k&&s.removeClass(k,"active"),s.addClass(this.items[this.navIndex],"active")}else this.navigating=!1}).bind(this),this.events.reset=this.reset.bind(this),(this.config.nativeDropdown||this.mobileDevice)&&(this.container.addEventListener("touchstart",function(m){m.changedTouches[0].target===v.el&&v.toggle()},!!this.supportsEventPassiveOption&&{passive:!0}),this.container.addEventListener("click",function(m){m.target===v.el&&v.toggle()}),this.el.addEventListener("change",function(m){m.__selfTriggered||(v.el.multiple?(m=v.getSelectedProperties("idx"),m=function(w,k){for(var T,S=[],I=w.slice(0),O=0;O<k.length;O++)-1<(T=I.indexOf(k[O]))?I.splice(T,1):S.push(k[O]);return[S,I]}(v.selectedIndexes,m),s.each(m[0],function(w,k){v.select(k)},v),s.each(m[1],function(w,k){v.deselect(k)},v)):-1<v.el.selectedIndex&&v.select(v.el.selectedIndex))})),this.config.nativeDropdown&&this.container.addEventListener("keydown",function(m){m.key==="Enter"&&v.selected===document.activeElement&&(v.toggle(),setTimeout(function(){v.el.focus()},200))}),this.selected.addEventListener("click",function(m){v.disabled||v.toggle(),m.preventDefault()}),this.config.nativeKeyboard&&(b="",this.selected.addEventListener("keydown",function(m){var w;v.disabled||v.selected!==document.activeElement||m.altKey||m.ctrlKey||m.metaKey||(m.key===" "||!v.opened&&-1<["Enter","ArrowUp","ArrowDown"].indexOf(m.key)?(v.toggle(),m.preventDefault(),m.stopPropagation()):m.key.length<=2&&String[String.fromCodePoint?"fromCodePoint":"fromCharCode"](m.key[String.codePointAt?"codePointAt":"charCodeAt"](0))===m.key&&(v.config.multiple?(v.open(),v.config.searchable&&(v.input.value=m.key,v.input.focus(),v.search(null,!0))):(b+=m.key,(w=v.search(b,!0))&&w.length&&(v.clear(),v.setValue(w[0].value)),setTimeout(function(){b=""},1e3)),m.preventDefault(),m.stopPropagation()))}),this.container.addEventListener("keyup",function(m){v.opened&&m.key==="Escape"&&(v.close(),m.stopPropagation(),v.selected.focus())})),this.label.addEventListener("click",function(m){s.hasClass(m.target,"selectr-tag-remove")&&v.deselect(m.target.parentNode.idx)}),this.selectClear&&this.selectClear.addEventListener("click",this.clear.bind(this)),this.tree.addEventListener("mousedown",function(m){m.preventDefault()}),this.tree.addEventListener("click",function(m){var w=s.closest(m.target,function(k){return k&&s.hasClass(k,"selectr-option")});w&&!s.hasClass(w,"disabled")&&(s.hasClass(w,"selected")?(v.el.multiple||!v.el.multiple&&v.config.allowDeselect)&&v.deselect(w.idx):v.select(w.idx),v.opened&&!v.el.multiple)&&v.close(),m.preventDefault(),m.stopPropagation()}),this.tree.addEventListener("mouseover",function(m){!s.hasClass(m.target,"selectr-option")||s.hasClass(m.target,"disabled")||(s.removeClass(v.items[v.navIndex],"active"),s.addClass(m.target,"active"),v.navIndex=[].slice.call(v.items).indexOf(m.target))}),this.config.searchable&&(this.input.addEventListener("focus",function(m){v.searching=!0}),this.input.addEventListener("blur",function(m){v.searching=!1}),this.input.addEventListener("keyup",function(m){v.search(),v.config.taggable||(this.value.length?s.addClass(this.parentNode,"active"):s.removeClass(this.parentNode,"active"))}),this.inputClear.addEventListener("click",function(m){v.input.value=null,f.call(v),v.tree.childElementCount||c.call(v)})),this.config.taggable&&this.input.addEventListener("keyup",function(m){var w,k;v.search(),v.config.taggable&&this.value.length&&(w=this.value.trim()).length&&(m.which===13||v.tagSeperatorsRegex.test(w))&&(m=w.replace(v.tagSeperatorsRegex,""),(k=(m=(m=s.escapeRegExp(m)).trim()).length?v.add({value:m,textContent:m,selected:!0},!0):k)?(v.close(),f.call(v)):(this.value="",v.setMessage(v.config.messages.tagDuplicate)))}),this.update=s.debounce(function(){v.opened&&v.config.closeOnScroll&&v.close(),v.width&&(v.container.style.width=v.width),v.invert()},50),this.requiresPagination&&(this.paginateItems=s.debounce(function(){h.call(this)},50),this.tree.addEventListener("scroll",this.paginateItems.bind(this))),document.addEventListener("click",this.events.dismiss),window.addEventListener("keydown",this.events.navigate),window.addEventListener("resize",this.update),window.addEventListener("scroll",this.update),this.on("selectr.destroy",function(){document.removeEventListener("click",this.events.dismiss),window.removeEventListener("keydown",this.events.navigate),window.removeEventListener("resize",this.update),window.removeEventListener("scroll",this.update)}),this.el.form&&(this.el.form.addEventListener("reset",this.events.reset),this.on("selectr.destroy",function(){this.el.form.removeEventListener("reset",this.events.reset)}))},g.prototype.setSelected=function(b){var v;this.config.data||this.el.multiple||!this.el.options.length||(this.el.selectedIndex!==0||this.el.options[0].defaultSelected||this.config.defaultSelected||(this.el.selectedIndex=-1),this.selectedIndex=this.el.selectedIndex,-1<this.selectedIndex&&this.select(this.selectedIndex)),this.config.multiple&&this.originalType==="select-one"&&!this.config.data&&this.el.options[0].selected&&!this.el.options[0].defaultSelected&&(this.el.options[0].selected=!1),s.each(this.options,function(m,w){w.selected&&w.defaultSelected&&this.select(w.idx)},this),this.config.selectedValue&&this.setValue(this.config.selectedValue),this.config.data&&(!this.el.multiple&&this.config.defaultSelected&&this.el.selectedIndex<0&&0<this.config.data.length&&this.select(0),v=0,s.each(this.config.data,function(m,w){l(w,"children")?s.each(w.children,function(k,T){T.hasOwnProperty("selected")&&T.selected===!0&&this.select(v),v++},this):(w.hasOwnProperty("selected")&&w.selected===!0&&this.select(v),v++)},this))},g.prototype.destroy=function(){this.rendered&&(this.emit("selectr.destroy"),this.originalType==="select-one"&&(this.el.multiple=!1),this.config.data&&(this.el.innerHTML=""),s.removeClass(this.el,"selectr-hidden"),this.container.parentNode.replaceChild(this.el,this.container),this.rendered=!1,delete this.el.selectr)},g.prototype.change=function(b){var v=this.items[b],m=this.options[b];m.disabled||(m.selected&&s.hasClass(v,"selected")?this.deselect(b):this.select(b),this.opened&&!this.el.multiple&&this.close())},g.prototype.select=function(b){var v=this.items[b],m=[].slice.call(this.el.options),w=this.options[b];if(this.el.multiple){if(s.includes(this.selectedIndexes,b))return!1;if(this.config.maxSelections&&this.tags.length===this.config.maxSelections)return this.setMessage(this.config.messages.maxSelections.replace("{max}",this.config.maxSelections),!0),!1;this.selectedValues.push(w.value),this.selectedIndexes.push(b),(function(T){var S,I=this,O=document.createDocumentFragment(),y=this.options[T.idx],_=this.data?this.data[T.idx]:y,A={class:"selectr-tag"},_=(this.customSelected?A.html=this.config.renderSelection(_):A.textContent=y.textContent,s.createElement("li",A)),A=s.createElement("button",{class:"selectr-tag-remove",type:"button"});_.appendChild(A),_.idx=T.idx,_.tag=y.value,this.tags.push(_),this.config.sortSelected?(A=this.tags.slice(),S=function(R,D){R.replace(/(\d+)|(\D+)/g,function(C,x,P){D.push([x||1/0,P||""])})},A.sort(function(R,D){var C,x,P=[],$=[];for(I.config.sortSelected===!0?(C=R.tag,x=D.tag):I.config.sortSelected==="text"&&(C=R.textContent,x=D.textContent),S(C,P),S(x,$);P.length&&$.length;){var V=P.shift(),L=$.shift(),V=V[0]-L[0]||V[1].localeCompare(L[1]);if(V)return V}return P.length-$.length}),s.each(A,function(R,D){O.appendChild(D)}),this.label.innerHTML=""):O.appendChild(_),this.config.taggable?this.label.insertBefore(O,this.input.parentNode):this.label.appendChild(O)}).call(this,v)}else{var k=this.data?this.data[b]:w;this.customSelected?this.label.innerHTML=this.config.renderSelection(k):this.label.textContent=w.textContent,this.selectedValue=w.value,this.selectedIndex=b,s.each(this.options,function(T,S){var I=this.items[T];T!==b&&(I&&s.removeClass(I,"selected"),S.selected=!1,S.removeAttribute("selected"))},this)}s.includes(m,w)||this.el.add(w),v.setAttribute("aria-selected",!0),s.addClass(v,"selected"),s.addClass(this.container,"has-selected"),w.selected=!0,w.setAttribute("selected",""),this.emit("selectr.change",w),this.emit("selectr.select",w),"createEvent"in document?((k=document.createEvent("HTMLEvents")).initEvent("change",!0,!0),k.__selfTriggered=!0,this.el.dispatchEvent(k)):this.el.fireEvent("onchange")},g.prototype.deselect=function(b,v){var m=this.items[b],w=this.options[b];if(this.el.multiple){var k=this.selectedIndexes.indexOf(b),k=(this.selectedIndexes.splice(k,1),this.selectedValues.indexOf(w.value));this.selectedValues.splice(k,1),(function(T){var S=!1;s.each(this.tags,function(I,O){O.idx===T.idx&&(S=O)},this),S&&(this.label.removeChild(S),this.tags.splice(this.tags.indexOf(S),1))}).call(this,m),this.tags.length||s.removeClass(this.container,"has-selected")}else{if(!v&&!this.config.clearable&&!this.config.allowDeselect)return!1;this.label.innerHTML="",this.selectedValue=null,this.el.selectedIndex=this.selectedIndex=-1,s.removeClass(this.container,"has-selected")}this.items[b].setAttribute("aria-selected",!1),s.removeClass(this.items[b],"selected"),w.selected=!1,w.removeAttribute("selected"),this.emit("selectr.change",null),this.emit("selectr.deselect",w),"createEvent"in document?((k=document.createEvent("HTMLEvents")).initEvent("change",!0,!0),k.__selfTriggered=!0,this.el.dispatchEvent(k)):this.el.fireEvent("onchange")},g.prototype.setValue=function(b){var v=Array.isArray(b);if(v||(b=b.toString().trim()),!this.el.multiple&&v)return!1;s.each(this.options,function(m,w){(v&&-1<b.indexOf(w.value)||w.value===b)&&this.change(w.idx)},this)},g.prototype.getValue=function(b,v){var m,w;return this.el.multiple?b?this.selectedIndexes.length&&(w={values:[]},s.each(this.selectedIndexes,function(k,T){T=this.options[T],w.values[k]={value:T.value,text:T.textContent}},this)):w=this.selectedValues.slice():w=b?{value:(m=this.options[this.selectedIndex]).value,text:m.textContent}:this.selectedValue,w=b&&v?JSON.stringify(w):w},g.prototype.add=function(b,v){if(b){if(this.data=this.data||[],this.items=this.items||[],this.options=this.options||[],Array.isArray(b))s.each(b,function(k,T){this.add(T,v)},this);else if(Object.prototype.toString.call(b)==="[object Object]"){if(v){var m=!1;if(s.each(this.options,function(k,T){T.value.toLowerCase()===b.value.toLowerCase()&&(m=!0)}),m)return!1}var w=s.createElement("option",b);return this.data.push(b),this.mobileDevice&&this.el.add(w),this.options.push(w),w.idx=0<this.options.length?this.options.length-1:0,d.call(this,w),b.selected&&this.select(w.idx),this.setPlaceholder(),w}return this.config.pagination&&this.paginate(),!0}},g.prototype.remove=function(b){var v,m=[];Array.isArray(b)?s.each(b,function(w,k){s.isInt(k)?m.push(this.getOptionByIndex(k)):typeof k=="string"&&m.push(this.getOptionByValue(k))},this):s.isInt(b)?m.push(this.getOptionByIndex(b)):typeof b=="string"&&m.push(this.getOptionByValue(b)),m.length&&(s.each(m,function(w,k){v=k.idx,this.el.remove(k),this.options.splice(v,1),k=this.items[v].parentNode,k&&k.removeChild(this.items[v]),this.items.splice(v,1),s.each(this.options,function(T,S){S.idx=T,this.items[T].idx=T},this)},this),this.setPlaceholder(),this.config.pagination)&&this.paginate()},g.prototype.removeAll=function(){this.clear(!0),s.each(this.el.options,function(b,v){this.el.remove(v)},this),s.truncate(this.tree),this.items=[],this.options=[],this.data=[],this.navIndex=0,this.requiresPagination&&(this.requiresPagination=!1,this.pageIndex=1,this.pages=[]),this.setPlaceholder()},g.prototype.search=function(b,v){var m,w,k,T,S;if(!this.navigating)return m=!1,b||(b=this.input.value,m=!0,this.removeMessage(),s.truncate(this.tree)),w=[],k=document.createDocumentFragment(),0<(b=b.trim().toLowerCase()).length?(T=v?s.startsWith:s.includes,s.each(this.options,function(I,O){var y,_,A,R,D=this.items[O.idx];T(O.textContent.trim().toLowerCase(),b)&&!O.disabled?(w.push({text:O.textContent,value:O.value}),m&&(u(D,k,this.customOption),s.removeClass(D,"excluded"),!this.customOption)&&(y=b,A=(O=O).textContent,y=new RegExp(y,"ig"),R=y.exec(A))&&(O.innerHTML="",(_=document.createElement("span")).classList.add("selectr-match"),_.textContent=R[0],O.appendChild(document.createTextNode(A.substring(0,R.index))),O.appendChild(_),O.appendChild(document.createTextNode(A.substring(y.lastIndex))))):m&&s.addClass(D,"excluded")},this),m&&(k.childElementCount?(v=this.items[this.navIndex],S=k.querySelector(".selectr-option:not(.excluded)"),this.noResults=!1,s.removeClass(v,"active"),this.navIndex=S.idx,s.addClass(S,"active")):this.config.taggable||(this.noResults=!0,this.setMessage(this.config.messages.noResults)),this.tree.appendChild(k))):c.call(this),w},g.prototype.toggle=function(){this.disabled||(this.opened?this.close():this.open())},g.prototype.open=function(){var b=this;if(!this.options.length)return!1;this.opened||this.emit("selectr.open"),this.opened=!0,this.mobileDevice||this.config.nativeDropdown?(s.addClass(this.container,"native-open"),this.config.data&&s.each(this.options,function(v,m){this.el.add(m)},this)):(s.addClass(this.container,"open"),c.call(this),this.invert(),this.tree.scrollTop=0,s.removeClass(this.container,"notice"),this.selected.setAttribute("aria-expanded",!0),this.tree.setAttribute("aria-hidden",!1),this.tree.setAttribute("aria-expanded",!0),this.config.searchable&&!this.config.taggable&&setTimeout(function(){b.input.focus(),b.input.tabIndex=0},10))},g.prototype.close=function(){var b;this.opened&&this.emit("selectr.close"),this.opened=!1,this.navigating=!1,this.mobileDevice||this.config.nativeDropdown?s.removeClass(this.container,"native-open"):(b=s.hasClass(this.container,"notice"),this.config.searchable&&!b&&(this.input.blur(),this.input.tabIndex=-1,this.searching=!1),b&&(s.removeClass(this.container,"notice"),this.notice.textContent=""),s.removeClass(this.container,"open"),s.removeClass(this.container,"native-open"),this.selected.setAttribute("aria-expanded",!1),this.tree.setAttribute("aria-hidden",!0),this.tree.setAttribute("aria-expanded",!1),s.truncate(this.tree),f.call(this))},g.prototype.enable=function(){this.disabled=!1,this.el.disabled=!1,this.selected.tabIndex=this.originalIndex,this.el.multiple&&s.each(this.tags,function(b,v){v.lastElementChild.tabIndex=0}),s.removeClass(this.container,"selectr-disabled")},g.prototype.disable=function(b){b||(this.el.disabled=!0),this.selected.tabIndex=-1,this.el.multiple&&s.each(this.tags,function(v,m){m.lastElementChild.tabIndex=-1}),this.disabled=!0,s.addClass(this.container,"selectr-disabled")},g.prototype.reset=function(){this.disabled||(this.clear(),this.setSelected(!0),s.each(this.defaultSelected,function(b,v){this.select(v)},this),this.emit("selectr.reset"))},g.prototype.clear=function(b,v){var m;this.el.multiple?this.selectedIndexes.length&&(m=this.selectedIndexes.slice(),v?this.deselect(m.slice(-1)[0]):s.each(m,function(w,k){this.deselect(k)},this)):-1<this.selectedIndex&&this.deselect(this.selectedIndex,b),this.emit("selectr.clear")},g.prototype.serialise=function(b){var v=[];return s.each(this.options,function(m,w){var k={value:w.value,text:w.textContent};w.selected&&(k.selected=!0),w.disabled&&(k.disabled=!0),v[m]=k}),b?JSON.stringify(v):v},g.prototype.serialize=function(b){return this.serialise(b)},g.prototype.setPlaceholder=function(b){b=b||this.config.placeholder||this.el.getAttribute("placeholder"),this.options.length||(b=this.config.messages.noOptions),this.placeEl.innerHTML=b},g.prototype.paginate=function(){var b;if(this.items.length)return(b=this).pages=this.items.map(function(v,m){return m%b.config.pagination==0?b.items.slice(m,m+b.config.pagination):null}).filter(function(v){return v}),this.pages},g.prototype.setMessage=function(b,v){v&&this.close(),s.addClass(this.container,"notice"),this.notice.textContent=b},g.prototype.removeMessage=function(){s.removeClass(this.container,"notice"),this.notice.innerHTML=""},g.prototype.invert=function(){var b=s.rect(this.selected),v=this.tree.parentNode.offsetHeight,m=window.innerHeight;b.top+b.height+v>m?(s.addClass(this.container,"inverted"),this.isInverted=!0):(s.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=s.rect(this.tree)},g.prototype.getOptionByIndex=function(b){return this.options[b]},g.prototype.getOptionByValue=function(b){for(var v=!1,m=0,w=this.options.length;m<w;m++)if(this.options[m].value.trim()===b.toString().trim()){v=this.options[m];break}return v},o.exports=g},4188:function(o,a,s){s.d(a,{EX:function(){return u},WF:function(){return c},oW:function(){return d},qD:function(){return l}});var l=document.body,u=10485760,c=2e4,d=2147483648},2602:function(o,a,s){s.d(a,{w:function(){return u}});var l=s(9791);function u(c,d,h){var f,g=3<arguments.length&&arguments[3]!==void 0&&arguments[3],b=typeof(m=c).getRootNode=="function"?m.getRootNode():window,v={},m=c.getBoundingClientRect(),w=d.getBoundingClientRect(),k=document.createElement("div");function T(){if(k&&k.parentNode){for(var I in k.parentNode.removeChild(k),v)O=I,Object.prototype.hasOwnProperty.call(v,O)&&((O=v[I])&&(0,l.removeEventListener)(b,I,O),delete v[I]);typeof h=="function"&&h(c)}var O}function S(I){(I=I.target)===k||(0,l.isChildOf)(I,k)||T()}return k.className="jsoneditor-anchor",k.style.position="absolute",k.style.left=m.left-w.left+"px",k.style.top=m.top-w.top+"px",k.style.width=m.width-2+"px",k.style.height=m.height-2+"px",k.style.boxSizing="border-box",d.appendChild(k),v.mousedown=(0,l.addEventListener)(b,"mousedown",S),v.mousewheel=(0,l.addEventListener)(b,"mousewheel",S),g&&(f=null,k.onmouseover=function(){clearTimeout(f),f=null},k.onmouseout=function(){f=f||setTimeout(T,200)}),k.destroy=T,k}},7923:function(o){o.exports="data:application/javascript;base64,Im5vIHVzZSBzdHJpY3QiOwohKGZ1bmN0aW9uKHdpbmRvdykgewppZiAodHlwZW9mIHdpbmRvdy53aW5kb3cgIT0gInVuZGVmaW5lZCIgJiYgd2luZG93LmRvY3VtZW50KQogICAgcmV0dXJuOwppZiAod2luZG93LnJlcXVpcmUgJiYgd2luZG93LmRlZmluZSkKICAgIHJldHVybjsKCmlmICghd2luZG93LmNvbnNvbGUpIHsKICAgIHdpbmRvdy5jb25zb2xlID0gZnVuY3Rpb24oKSB7CiAgICAgICAgdmFyIG1zZ3MgPSBBcnJheS5wcm90b3R5cGUuc2xpY2UuY2FsbChhcmd1bWVudHMsIDApOwogICAgICAgIHBvc3RNZXNzYWdlKHt0eXBlOiAibG9nIiwgZGF0YTogbXNnc30pOwogICAgfTsKICAgIHdpbmRvdy5jb25zb2xlLmVycm9yID0KICAgIHdpbmRvdy5jb25zb2xlLndhcm4gPSAKICAgIHdpbmRvdy5jb25zb2xlLmxvZyA9CiAgICB3aW5kb3cuY29uc29sZS50cmFjZSA9IHdpbmRvdy5jb25zb2xlOwp9CndpbmRvdy53aW5kb3cgPSB3aW5kb3c7CndpbmRvdy5hY2UgPSB3aW5kb3c7Cgp3aW5kb3cub25lcnJvciA9IGZ1bmN0aW9uKG1lc3NhZ2UsIGZpbGUsIGxpbmUsIGNvbCwgZXJyKSB7CiAgICBwb3N0TWVzc2FnZSh7dHlwZTogImVycm9yIiwgZGF0YTogewogICAgICAgIG1lc3NhZ2U6IG1lc3NhZ2UsCiAgICAgICAgZGF0YTogZXJyICYmIGVyci5kYXRhLAogICAgICAgIGZpbGU6IGZpbGUsCiAgICAgICAgbGluZTogbGluZSwgCiAgICAgICAgY29sOiBjb2wsCiAgICAgICAgc3RhY2s6IGVyciAmJiBlcnIuc3RhY2sKICAgIH19KTsKfTsKCndpbmRvdy5ub3JtYWxpemVNb2R1bGUgPSBmdW5jdGlvbihwYXJlbnRJZCwgbW9kdWxlTmFtZSkgewogICAgLy8gbm9ybWFsaXplIHBsdWdpbiByZXF1aXJlcwogICAgaWYgKG1vZHVsZU5hbWUuaW5kZXhPZigiISIpICE9PSAtMSkgewogICAgICAgIHZhciBjaHVua3MgPSBtb2R1bGVOYW1lLnNwbGl0KCIhIik7CiAgICAgICAgcmV0dXJuIHdpbmRvdy5ub3JtYWxpemVNb2R1bGUocGFyZW50SWQsIGNodW5rc1swXSkgKyAiISIgKyB3aW5kb3cubm9ybWFsaXplTW9kdWxlKHBhcmVudElkLCBjaHVua3NbMV0pOwogICAgfQogICAgLy8gbm9ybWFsaXplIHJlbGF0aXZlIHJlcXVpcmVzCiAgICBpZiAobW9kdWxlTmFtZS5jaGFyQXQoMCkgPT0gIi4iKSB7CiAgICAgICAgdmFyIGJhc2UgPSBwYXJlbnRJZC5zcGxpdCgiLyIpLnNsaWNlKDAsIC0xKS5qb2luKCIvIik7CiAgICAgICAgbW9kdWxlTmFtZSA9IChiYXNlID8gYmFzZSArICIvIiA6ICIiKSArIG1vZHVsZU5hbWU7CiAgICAgICAgCiAgICAgICAgd2hpbGUgKG1vZHVsZU5hbWUuaW5kZXhPZigiLiIpICE9PSAtMSAmJiBwcmV2aW91cyAhPSBtb2R1bGVOYW1lKSB7CiAgICAgICAgICAgIHZhciBwcmV2aW91cyA9IG1vZHVsZU5hbWU7CiAgICAgICAgICAgIG1vZHVsZU5hbWUgPSBtb2R1bGVOYW1lLnJlcGxhY2UoL15cLlwvLywgIiIpLnJlcGxhY2UoL1wvXC5cLy8sICIvIikucmVwbGFjZSgvW15cL10rXC9cLlwuXC8vLCAiIik7CiAgICAgICAgfQogICAgfQogICAgCiAgICByZXR1cm4gbW9kdWxlTmFtZTsKfTsKCndpbmRvdy5yZXF1aXJlID0gZnVuY3Rpb24gcmVxdWlyZShwYXJlbnRJZCwgaWQpIHsKICAgIGlmICghaWQpIHsKICAgICAgICBpZCA9IHBhcmVudElkOwogICAgICAgIHBhcmVudElkID0gbnVsbDsKICAgIH0KICAgIGlmICghaWQuY2hhckF0KQogICAgICAgIHRocm93IG5ldyBFcnJvcigid29ya2VyLmpzIHJlcXVpcmUoKSBhY2NlcHRzIG9ubHkgKHBhcmVudElkLCBpZCkgYXMgYXJndW1lbnRzIik7CgogICAgaWQgPSB3aW5kb3cubm9ybWFsaXplTW9kdWxlKHBhcmVudElkLCBpZCk7CgogICAgdmFyIG1vZHVsZSA9IHdpbmRvdy5yZXF1aXJlLm1vZHVsZXNbaWRdOwogICAgaWYgKG1vZHVsZSkgewogICAgICAgIGlmICghbW9kdWxlLmluaXRpYWxpemVkKSB7CiAgICAgICAgICAgIG1vZHVsZS5pbml0aWFsaXplZCA9IHRydWU7CiAgICAgICAgICAgIG1vZHVsZS5leHBvcnRzID0gbW9kdWxlLmZhY3RvcnkoKS5leHBvcnRzOwogICAgICAgIH0KICAgICAgICByZXR1cm4gbW9kdWxlLmV4cG9ydHM7CiAgICB9CiAgIAogICAgaWYgKCF3aW5kb3cucmVxdWlyZS50bG5zKQogICAgICAgIHJldHVybiBjb25zb2xlLmxvZygidW5hYmxlIHRvIGxvYWQgIiArIGlkKTsKICAgIAogICAgdmFyIHBhdGggPSByZXNvbHZlTW9kdWxlSWQoaWQsIHdpbmRvdy5yZXF1aXJlLnRsbnMpOwogICAgaWYgKHBhdGguc2xpY2UoLTMpICE9ICIuanMiKSBwYXRoICs9ICIuanMiOwogICAgCiAgICB3aW5kb3cucmVxdWlyZS5pZCA9IGlkOwogICAgd2luZG93LnJlcXVpcmUubW9kdWxlc1tpZF0gPSB7fTsgLy8gcHJldmVudCBpbmZpbml0ZSBsb29wIG9uIGJyb2tlbiBtb2R1bGVzCiAgICBpbXBvcnRTY3JpcHRzKHBhdGgpOwogICAgcmV0dXJuIHdpbmRvdy5yZXF1aXJlKHBhcmVudElkLCBpZCk7Cn07CmZ1bmN0aW9uIHJlc29sdmVNb2R1bGVJZChpZCwgcGF0aHMpIHsKICAgIHZhciB0ZXN0UGF0aCA9IGlkLCB0YWlsID0gIiI7CiAgICB3aGlsZSAodGVzdFBhdGgpIHsKICAgICAgICB2YXIgYWxpYXMgPSBwYXRoc1t0ZXN0UGF0aF07CiAgICAgICAgaWYgKHR5cGVvZiBhbGlhcyA9PSAic3RyaW5nIikgewogICAgICAgICAgICByZXR1cm4gYWxpYXMgKyB0YWlsOwogICAgICAgIH0gZWxzZSBpZiAoYWxpYXMpIHsKICAgICAgICAgICAgcmV0dXJuICBhbGlhcy5sb2NhdGlvbi5yZXBsYWNlKC9cLyokLywgIi8iKSArICh0YWlsIHx8IGFsaWFzLm1haW4gfHwgYWxpYXMubmFtZSk7CiAgICAgICAgfSBlbHNlIGlmIChhbGlhcyA9PT0gZmFsc2UpIHsKICAgICAgICAgICAgcmV0dXJuICIiOwogICAgICAgIH0KICAgICAgICB2YXIgaSA9IHRlc3RQYXRoLmxhc3RJbmRleE9mKCIvIik7CiAgICAgICAgaWYgKGkgPT09IC0xKSBicmVhazsKICAgICAgICB0YWlsID0gdGVzdFBhdGguc3Vic3RyKGkpICsgdGFpbDsKICAgICAgICB0ZXN0UGF0aCA9IHRlc3RQYXRoLnNsaWNlKDAsIGkpOwogICAgfQogICAgcmV0dXJuIGlkOwp9CndpbmRvdy5yZXF1aXJlLm1vZHVsZXMgPSB7fTsKd2luZG93LnJlcXVpcmUudGxucyA9IHt9OwoKd2luZG93LmRlZmluZSA9IGZ1bmN0aW9uKGlkLCBkZXBzLCBmYWN0b3J5KSB7CiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCA9PSAyKSB7CiAgICAgICAgZmFjdG9yeSA9IGRlcHM7CiAgICAgICAgaWYgKHR5cGVvZiBpZCAhPSAic3RyaW5nIikgewogICAgICAgICAgICBkZXBzID0gaWQ7CiAgICAgICAgICAgIGlkID0gd2luZG93LnJlcXVpcmUuaWQ7CiAgICAgICAgfQogICAgfSBlbHNlIGlmIChhcmd1bWVudHMubGVuZ3RoID09IDEpIHsKICAgICAgICBmYWN0b3J5ID0gaWQ7CiAgICAgICAgZGVwcyA9IFtdOwogICAgICAgIGlkID0gd2luZG93LnJlcXVpcmUuaWQ7CiAgICB9CiAgICAKICAgIGlmICh0eXBlb2YgZmFjdG9yeSAhPSAiZnVuY3Rpb24iKSB7CiAgICAgICAgd2luZG93LnJlcXVpcmUubW9kdWxlc1tpZF0gPSB7CiAgICAgICAgICAgIGV4cG9ydHM6IGZhY3RvcnksCiAgICAgICAgICAgIGluaXRpYWxpemVkOiB0cnVlCiAgICAgICAgfTsKICAgICAgICByZXR1cm47CiAgICB9CgogICAgaWYgKCFkZXBzLmxlbmd0aCkKICAgICAgICAvLyBJZiB0aGVyZSBpcyBubyBkZXBlbmRlbmNpZXMsIHdlIGluamVjdCAicmVxdWlyZSIsICJleHBvcnRzIiBhbmQKICAgICAgICAvLyAibW9kdWxlIiBhcyBkZXBlbmRlbmNpZXMsIHRvIHByb3ZpZGUgQ29tbW9uSlMgY29tcGF0aWJpbGl0eS4KICAgICAgICBkZXBzID0gWyJyZXF1aXJlIiwgImV4cG9ydHMiLCAibW9kdWxlIl07CgogICAgdmFyIHJlcSA9IGZ1bmN0aW9uKGNoaWxkSWQpIHsKICAgICAgICByZXR1cm4gd2luZG93LnJlcXVpcmUoaWQsIGNoaWxkSWQpOwogICAgfTsKCiAgICB3aW5kb3cucmVxdWlyZS5tb2R1bGVzW2lkXSA9IHsKICAgICAgICBleHBvcnRzOiB7fSwKICAgICAgICBmYWN0b3J5OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgdmFyIG1vZHVsZSA9IHRoaXM7CiAgICAgICAgICAgIHZhciByZXR1cm5FeHBvcnRzID0gZmFjdG9yeS5hcHBseSh0aGlzLCBkZXBzLnNsaWNlKDAsIGZhY3RvcnkubGVuZ3RoKS5tYXAoZnVuY3Rpb24oZGVwKSB7CiAgICAgICAgICAgICAgICBzd2l0Y2ggKGRlcCkgewogICAgICAgICAgICAgICAgICAgIC8vIEJlY2F1c2UgInJlcXVpcmUiLCAiZXhwb3J0cyIgYW5kICJtb2R1bGUiIGFyZW4ndCBhY3R1YWwKICAgICAgICAgICAgICAgICAgICAvLyBkZXBlbmRlbmNpZXMsIHdlIG11c3QgaGFuZGxlIHRoZW0gc2VwZXJhdGVseS4KICAgICAgICAgICAgICAgICAgICBjYXNlICJyZXF1aXJlIjogcmV0dXJuIHJlcTsKICAgICAgICAgICAgICAgICAgICBjYXNlICJleHBvcnRzIjogcmV0dXJuIG1vZHVsZS5leHBvcnRzOwogICAgICAgICAgICAgICAgICAgIGNhc2UgIm1vZHVsZSI6ICByZXR1cm4gbW9kdWxlOwogICAgICAgICAgICAgICAgICAgIC8vIEJ1dCBmb3IgYWxsIG90aGVyIGRlcGVuZGVuY2llcywgd2UgY2FuIGp1c3QgZ28gYWhlYWQgYW5kCiAgICAgICAgICAgICAgICAgICAgLy8gcmVxdWlyZSB0aGVtLgogICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6ICAgICAgICByZXR1cm4gcmVxKGRlcCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pKTsKICAgICAgICAgICAgaWYgKHJldHVybkV4cG9ydHMpCiAgICAgICAgICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IHJldHVybkV4cG9ydHM7CiAgICAgICAgICAgIHJldHVybiBtb2R1bGU7CiAgICAgICAgfQogICAgfTsKfTsKd2luZG93LmRlZmluZS5hbWQgPSB7fTsKd2luZG93LnJlcXVpcmUudGxucyA9IHt9Owp3aW5kb3cuaW5pdEJhc2VVcmxzICA9IGZ1bmN0aW9uIGluaXRCYXNlVXJscyh0b3BMZXZlbE5hbWVzcGFjZXMpIHsKICAgIGZvciAodmFyIGkgaW4gdG9wTGV2ZWxOYW1lc3BhY2VzKQogICAgICAgIHRoaXMucmVxdWlyZS50bG5zW2ldID0gdG9wTGV2ZWxOYW1lc3BhY2VzW2ldOwp9OwoKd2luZG93LmluaXRTZW5kZXIgPSBmdW5jdGlvbiBpbml0U2VuZGVyKCkgewoKICAgIHZhciBFdmVudEVtaXR0ZXIgPSB3aW5kb3cucmVxdWlyZSgiYWNlL2xpYi9ldmVudF9lbWl0dGVyIikuRXZlbnRFbWl0dGVyOwogICAgdmFyIG9vcCA9IHdpbmRvdy5yZXF1aXJlKCJhY2UvbGliL29vcCIpOwogICAgCiAgICB2YXIgU2VuZGVyID0gZnVuY3Rpb24oKSB7fTsKICAgIAogICAgKGZ1bmN0aW9uKCkgewogICAgICAgIAogICAgICAgIG9vcC5pbXBsZW1lbnQodGhpcywgRXZlbnRFbWl0dGVyKTsKICAgICAgICAgICAgICAgIAogICAgICAgIHRoaXMuY2FsbGJhY2sgPSBmdW5jdGlvbihkYXRhLCBjYWxsYmFja0lkKSB7CiAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgIHR5cGU6ICJjYWxsIiwKICAgICAgICAgICAgICAgIGlkOiBjYWxsYmFja0lkLAogICAgICAgICAgICAgICAgZGF0YTogZGF0YQogICAgICAgICAgICB9KTsKICAgICAgICB9OwogICAgCiAgICAgICAgdGhpcy5lbWl0ID0gZnVuY3Rpb24obmFtZSwgZGF0YSkgewogICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICB0eXBlOiAiZXZlbnQiLAogICAgICAgICAgICAgICAgbmFtZTogbmFtZSwKICAgICAgICAgICAgICAgIGRhdGE6IGRhdGEKICAgICAgICAgICAgfSk7CiAgICAgICAgfTsKICAgICAgICAKICAgIH0pLmNhbGwoU2VuZGVyLnByb3RvdHlwZSk7CiAgICAKICAgIHJldHVybiBuZXcgU2VuZGVyKCk7Cn07Cgp2YXIgbWFpbiA9IHdpbmRvdy5tYWluID0gbnVsbDsKdmFyIHNlbmRlciA9IHdpbmRvdy5zZW5kZXIgPSBudWxsOwoKd2luZG93Lm9ubWVzc2FnZSA9IGZ1bmN0aW9uKGUpIHsKICAgIHZhciBtc2cgPSBlLmRhdGE7CiAgICBpZiAobXNnLmV2ZW50ICYmIHNlbmRlcikgewogICAgICAgIHNlbmRlci5fc2lnbmFsKG1zZy5ldmVudCwgbXNnLmRhdGEpOwogICAgfQogICAgZWxzZSBpZiAobXNnLmNvbW1hbmQpIHsKICAgICAgICBpZiAobWFpblttc2cuY29tbWFuZF0pCiAgICAgICAgICAgIG1haW5bbXNnLmNvbW1hbmRdLmFwcGx5KG1haW4sIG1zZy5hcmdzKTsKICAgICAgICBlbHNlIGlmICh3aW5kb3dbbXNnLmNvbW1hbmRdKQogICAgICAgICAgICB3aW5kb3dbbXNnLmNvbW1hbmRdLmFwcGx5KHdpbmRvdywgbXNnLmFyZ3MpOwogICAgICAgIGVsc2UKICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCJVbmtub3duIGNvbW1hbmQ6IiArIG1zZy5jb21tYW5kKTsKICAgIH0KICAgIGVsc2UgaWYgKG1zZy5pbml0KSB7CiAgICAgICAgd2luZG93LmluaXRCYXNlVXJscyhtc2cudGxucyk7CiAgICAgICAgc2VuZGVyID0gd2luZG93LnNlbmRlciA9IHdpbmRvdy5pbml0U2VuZGVyKCk7CiAgICAgICAgdmFyIGNsYXp6ID0gdGhpcy5yZXF1aXJlKG1zZy5tb2R1bGUpW21zZy5jbGFzc25hbWVdOwogICAgICAgIG1haW4gPSB3aW5kb3cubWFpbiA9IG5ldyBjbGF6eihzZW5kZXIpOwogICAgfQp9Owp9KSh0aGlzKTsKCmFjZS5kZWZpbmUoImFjZS9saWIvb29wIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKXsidXNlIHN0cmljdCI7CmV4cG9ydHMuaW5oZXJpdHMgPSBmdW5jdGlvbiAoY3Rvciwgc3VwZXJDdG9yKSB7CiAgICBjdG9yLnN1cGVyXyA9IHN1cGVyQ3RvcjsKICAgIGN0b3IucHJvdG90eXBlID0gT2JqZWN0LmNyZWF0ZShzdXBlckN0b3IucHJvdG90eXBlLCB7CiAgICAgICAgY29uc3RydWN0b3I6IHsKICAgICAgICAgICAgdmFsdWU6IGN0b3IsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfQogICAgfSk7Cn07CmV4cG9ydHMubWl4aW4gPSBmdW5jdGlvbiAob2JqLCBtaXhpbikgewogICAgZm9yICh2YXIga2V5IGluIG1peGluKSB7CiAgICAgICAgb2JqW2tleV0gPSBtaXhpbltrZXldOwogICAgfQogICAgcmV0dXJuIG9iajsKfTsKZXhwb3J0cy5pbXBsZW1lbnQgPSBmdW5jdGlvbiAocHJvdG8sIG1peGluKSB7CiAgICBleHBvcnRzLm1peGluKHByb3RvLCBtaXhpbik7Cn07Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9hcHBseV9kZWx0YSIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSl7InVzZSBzdHJpY3QiOwpmdW5jdGlvbiB0aHJvd0RlbHRhRXJyb3IoZGVsdGEsIGVycm9yVGV4dCkgewogICAgY29uc29sZS5sb2coIkludmFsaWQgRGVsdGE6IiwgZGVsdGEpOwogICAgdGhyb3cgIkludmFsaWQgRGVsdGE6ICIgKyBlcnJvclRleHQ7Cn0KZnVuY3Rpb24gcG9zaXRpb25JbkRvY3VtZW50KGRvY0xpbmVzLCBwb3NpdGlvbikgewogICAgcmV0dXJuIHBvc2l0aW9uLnJvdyA+PSAwICYmIHBvc2l0aW9uLnJvdyA8IGRvY0xpbmVzLmxlbmd0aCAmJgogICAgICAgIHBvc2l0aW9uLmNvbHVtbiA+PSAwICYmIHBvc2l0aW9uLmNvbHVtbiA8PSBkb2NMaW5lc1twb3NpdGlvbi5yb3ddLmxlbmd0aDsKfQpmdW5jdGlvbiB2YWxpZGF0ZURlbHRhKGRvY0xpbmVzLCBkZWx0YSkgewogICAgaWYgKGRlbHRhLmFjdGlvbiAhPSAiaW5zZXJ0IiAmJiBkZWx0YS5hY3Rpb24gIT0gInJlbW92ZSIpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEuYWN0aW9uIG11c3QgYmUgJ2luc2VydCcgb3IgJ3JlbW92ZSciKTsKICAgIGlmICghKGRlbHRhLmxpbmVzIGluc3RhbmNlb2YgQXJyYXkpKQogICAgICAgIHRocm93RGVsdGFFcnJvcihkZWx0YSwgImRlbHRhLmxpbmVzIG11c3QgYmUgYW4gQXJyYXkiKTsKICAgIGlmICghZGVsdGEuc3RhcnQgfHwgIWRlbHRhLmVuZCkKICAgICAgICB0aHJvd0RlbHRhRXJyb3IoZGVsdGEsICJkZWx0YS5zdGFydC9lbmQgbXVzdCBiZSBhbiBwcmVzZW50Iik7CiAgICB2YXIgc3RhcnQgPSBkZWx0YS5zdGFydDsKICAgIGlmICghcG9zaXRpb25JbkRvY3VtZW50KGRvY0xpbmVzLCBkZWx0YS5zdGFydCkpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEuc3RhcnQgbXVzdCBiZSBjb250YWluZWQgaW4gZG9jdW1lbnQiKTsKICAgIHZhciBlbmQgPSBkZWx0YS5lbmQ7CiAgICBpZiAoZGVsdGEuYWN0aW9uID09ICJyZW1vdmUiICYmICFwb3NpdGlvbkluRG9jdW1lbnQoZG9jTGluZXMsIGVuZCkpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEuZW5kIG11c3QgY29udGFpbmVkIGluIGRvY3VtZW50IGZvciAncmVtb3ZlJyBhY3Rpb25zIik7CiAgICB2YXIgbnVtUmFuZ2VSb3dzID0gZW5kLnJvdyAtIHN0YXJ0LnJvdzsKICAgIHZhciBudW1SYW5nZUxhc3RMaW5lQ2hhcnMgPSAoZW5kLmNvbHVtbiAtIChudW1SYW5nZVJvd3MgPT0gMCA/IHN0YXJ0LmNvbHVtbiA6IDApKTsKICAgIGlmIChudW1SYW5nZVJvd3MgIT0gZGVsdGEubGluZXMubGVuZ3RoIC0gMSB8fCBkZWx0YS5saW5lc1tudW1SYW5nZVJvd3NdLmxlbmd0aCAhPSBudW1SYW5nZUxhc3RMaW5lQ2hhcnMpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEucmFuZ2UgbXVzdCBtYXRjaCBkZWx0YSBsaW5lcyIpOwp9CmV4cG9ydHMuYXBwbHlEZWx0YSA9IGZ1bmN0aW9uIChkb2NMaW5lcywgZGVsdGEsIGRvTm90VmFsaWRhdGUpIHsKICAgIHZhciByb3cgPSBkZWx0YS5zdGFydC5yb3c7CiAgICB2YXIgc3RhcnRDb2x1bW4gPSBkZWx0YS5zdGFydC5jb2x1bW47CiAgICB2YXIgbGluZSA9IGRvY0xpbmVzW3Jvd10gfHwgIiI7CiAgICBzd2l0Y2ggKGRlbHRhLmFjdGlvbikgewogICAgICAgIGNhc2UgImluc2VydCI6CiAgICAgICAgICAgIHZhciBsaW5lcyA9IGRlbHRhLmxpbmVzOwogICAgICAgICAgICBpZiAobGluZXMubGVuZ3RoID09PSAxKSB7CiAgICAgICAgICAgICAgICBkb2NMaW5lc1tyb3ddID0gbGluZS5zdWJzdHJpbmcoMCwgc3RhcnRDb2x1bW4pICsgZGVsdGEubGluZXNbMF0gKyBsaW5lLnN1YnN0cmluZyhzdGFydENvbHVtbik7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgICAgICB2YXIgYXJncyA9IFtyb3csIDFdLmNvbmNhdChkZWx0YS5saW5lcyk7CiAgICAgICAgICAgICAgICBkb2NMaW5lcy5zcGxpY2UuYXBwbHkoZG9jTGluZXMsIGFyZ3MpOwogICAgICAgICAgICAgICAgZG9jTGluZXNbcm93XSA9IGxpbmUuc3Vic3RyaW5nKDAsIHN0YXJ0Q29sdW1uKSArIGRvY0xpbmVzW3Jvd107CiAgICAgICAgICAgICAgICBkb2NMaW5lc1tyb3cgKyBkZWx0YS5saW5lcy5sZW5ndGggLSAxXSArPSBsaW5lLnN1YnN0cmluZyhzdGFydENvbHVtbik7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgY2FzZSAicmVtb3ZlIjoKICAgICAgICAgICAgdmFyIGVuZENvbHVtbiA9IGRlbHRhLmVuZC5jb2x1bW47CiAgICAgICAgICAgIHZhciBlbmRSb3cgPSBkZWx0YS5lbmQucm93OwogICAgICAgICAgICBpZiAocm93ID09PSBlbmRSb3cpIHsKICAgICAgICAgICAgICAgIGRvY0xpbmVzW3Jvd10gPSBsaW5lLnN1YnN0cmluZygwLCBzdGFydENvbHVtbikgKyBsaW5lLnN1YnN0cmluZyhlbmRDb2x1bW4pOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgZG9jTGluZXMuc3BsaWNlKHJvdywgZW5kUm93IC0gcm93ICsgMSwgbGluZS5zdWJzdHJpbmcoMCwgc3RhcnRDb2x1bW4pICsgZG9jTGluZXNbZW5kUm93XS5zdWJzdHJpbmcoZW5kQ29sdW1uKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICB9Cn07Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9saWIvZXZlbnRfZW1pdHRlciIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSl7InVzZSBzdHJpY3QiOwp2YXIgRXZlbnRFbWl0dGVyID0ge307CnZhciBzdG9wUHJvcGFnYXRpb24gPSBmdW5jdGlvbiAoKSB7IHRoaXMucHJvcGFnYXRpb25TdG9wcGVkID0gdHJ1ZTsgfTsKdmFyIHByZXZlbnREZWZhdWx0ID0gZnVuY3Rpb24gKCkgeyB0aGlzLmRlZmF1bHRQcmV2ZW50ZWQgPSB0cnVlOyB9OwpFdmVudEVtaXR0ZXIuX2VtaXQgPQogICAgRXZlbnRFbWl0dGVyLl9kaXNwYXRjaEV2ZW50ID0gZnVuY3Rpb24gKGV2ZW50TmFtZSwgZSkgewogICAgICAgIHRoaXMuX2V2ZW50UmVnaXN0cnkgfHwgKHRoaXMuX2V2ZW50UmVnaXN0cnkgPSB7fSk7CiAgICAgICAgdGhpcy5fZGVmYXVsdEhhbmRsZXJzIHx8ICh0aGlzLl9kZWZhdWx0SGFuZGxlcnMgPSB7fSk7CiAgICAgICAgdmFyIGxpc3RlbmVycyA9IHRoaXMuX2V2ZW50UmVnaXN0cnlbZXZlbnROYW1lXSB8fCBbXTsKICAgICAgICB2YXIgZGVmYXVsdEhhbmRsZXIgPSB0aGlzLl9kZWZhdWx0SGFuZGxlcnNbZXZlbnROYW1lXTsKICAgICAgICBpZiAoIWxpc3RlbmVycy5sZW5ndGggJiYgIWRlZmF1bHRIYW5kbGVyKQogICAgICAgICAgICByZXR1cm47CiAgICAgICAgaWYgKHR5cGVvZiBlICE9ICJvYmplY3QiIHx8ICFlKQogICAgICAgICAgICBlID0ge307CiAgICAgICAgaWYgKCFlLnR5cGUpCiAgICAgICAgICAgIGUudHlwZSA9IGV2ZW50TmFtZTsKICAgICAgICBpZiAoIWUuc3RvcFByb3BhZ2F0aW9uKQogICAgICAgICAgICBlLnN0b3BQcm9wYWdhdGlvbiA9IHN0b3BQcm9wYWdhdGlvbjsKICAgICAgICBpZiAoIWUucHJldmVudERlZmF1bHQpCiAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQgPSBwcmV2ZW50RGVmYXVsdDsKICAgICAgICBsaXN0ZW5lcnMgPSBsaXN0ZW5lcnMuc2xpY2UoKTsKICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxpc3RlbmVycy5sZW5ndGg7IGkrKykgewogICAgICAgICAgICBsaXN0ZW5lcnNbaV0oZSwgdGhpcyk7CiAgICAgICAgICAgIGlmIChlLnByb3BhZ2F0aW9uU3RvcHBlZCkKICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgICAgICBpZiAoZGVmYXVsdEhhbmRsZXIgJiYgIWUuZGVmYXVsdFByZXZlbnRlZCkKICAgICAgICAgICAgcmV0dXJuIGRlZmF1bHRIYW5kbGVyKGUsIHRoaXMpOwogICAgfTsKRXZlbnRFbWl0dGVyLl9zaWduYWwgPSBmdW5jdGlvbiAoZXZlbnROYW1lLCBlKSB7CiAgICB2YXIgbGlzdGVuZXJzID0gKHRoaXMuX2V2ZW50UmVnaXN0cnkgfHwge30pW2V2ZW50TmFtZV07CiAgICBpZiAoIWxpc3RlbmVycykKICAgICAgICByZXR1cm47CiAgICBsaXN0ZW5lcnMgPSBsaXN0ZW5lcnMuc2xpY2UoKTsKICAgIGZvciAodmFyIGkgPSAwOyBpIDwgbGlzdGVuZXJzLmxlbmd0aDsgaSsrKQogICAgICAgIGxpc3RlbmVyc1tpXShlLCB0aGlzKTsKfTsKRXZlbnRFbWl0dGVyLm9uY2UgPSBmdW5jdGlvbiAoZXZlbnROYW1lLCBjYWxsYmFjaykgewogICAgdmFyIF9zZWxmID0gdGhpczsKICAgIHRoaXMub24oZXZlbnROYW1lLCBmdW5jdGlvbiBuZXdDYWxsYmFjaygpIHsKICAgICAgICBfc2VsZi5vZmYoZXZlbnROYW1lLCBuZXdDYWxsYmFjayk7CiAgICAgICAgY2FsbGJhY2suYXBwbHkobnVsbCwgYXJndW1lbnRzKTsKICAgIH0pOwogICAgaWYgKCFjYWxsYmFjaykgewogICAgICAgIHJldHVybiBuZXcgUHJvbWlzZShmdW5jdGlvbiAocmVzb2x2ZSkgewogICAgICAgICAgICBjYWxsYmFjayA9IHJlc29sdmU7CiAgICAgICAgfSk7CiAgICB9Cn07CkV2ZW50RW1pdHRlci5zZXREZWZhdWx0SGFuZGxlciA9IGZ1bmN0aW9uIChldmVudE5hbWUsIGNhbGxiYWNrKSB7CiAgICB2YXIgaGFuZGxlcnMgPSB0aGlzLl9kZWZhdWx0SGFuZGxlcnM7CiAgICBpZiAoIWhhbmRsZXJzKQogICAgICAgIGhhbmRsZXJzID0gdGhpcy5fZGVmYXVsdEhhbmRsZXJzID0geyBfZGlzYWJsZWRfOiB7fSB9OwogICAgaWYgKGhhbmRsZXJzW2V2ZW50TmFtZV0pIHsKICAgICAgICB2YXIgb2xkID0gaGFuZGxlcnNbZXZlbnROYW1lXTsKICAgICAgICB2YXIgZGlzYWJsZWQgPSBoYW5kbGVycy5fZGlzYWJsZWRfW2V2ZW50TmFtZV07CiAgICAgICAgaWYgKCFkaXNhYmxlZCkKICAgICAgICAgICAgaGFuZGxlcnMuX2Rpc2FibGVkX1tldmVudE5hbWVdID0gZGlzYWJsZWQgPSBbXTsKICAgICAgICBkaXNhYmxlZC5wdXNoKG9sZCk7CiAgICAgICAgdmFyIGkgPSBkaXNhYmxlZC5pbmRleE9mKGNhbGxiYWNrKTsKICAgICAgICBpZiAoaSAhPSAtMSkKICAgICAgICAgICAgZGlzYWJsZWQuc3BsaWNlKGksIDEpOwogICAgfQogICAgaGFuZGxlcnNbZXZlbnROYW1lXSA9IGNhbGxiYWNrOwp9OwpFdmVudEVtaXR0ZXIucmVtb3ZlRGVmYXVsdEhhbmRsZXIgPSBmdW5jdGlvbiAoZXZlbnROYW1lLCBjYWxsYmFjaykgewogICAgdmFyIGhhbmRsZXJzID0gdGhpcy5fZGVmYXVsdEhhbmRsZXJzOwogICAgaWYgKCFoYW5kbGVycykKICAgICAgICByZXR1cm47CiAgICB2YXIgZGlzYWJsZWQgPSBoYW5kbGVycy5fZGlzYWJsZWRfW2V2ZW50TmFtZV07CiAgICBpZiAoaGFuZGxlcnNbZXZlbnROYW1lXSA9PSBjYWxsYmFjaykgewogICAgICAgIGlmIChkaXNhYmxlZCkKICAgICAgICAgICAgdGhpcy5zZXREZWZhdWx0SGFuZGxlcihldmVudE5hbWUsIGRpc2FibGVkLnBvcCgpKTsKICAgIH0KICAgIGVsc2UgaWYgKGRpc2FibGVkKSB7CiAgICAgICAgdmFyIGkgPSBkaXNhYmxlZC5pbmRleE9mKGNhbGxiYWNrKTsKICAgICAgICBpZiAoaSAhPSAtMSkKICAgICAgICAgICAgZGlzYWJsZWQuc3BsaWNlKGksIDEpOwogICAgfQp9OwpFdmVudEVtaXR0ZXIub24gPQogICAgRXZlbnRFbWl0dGVyLmFkZEV2ZW50TGlzdGVuZXIgPSBmdW5jdGlvbiAoZXZlbnROYW1lLCBjYWxsYmFjaywgY2FwdHVyaW5nKSB7CiAgICAgICAgdGhpcy5fZXZlbnRSZWdpc3RyeSA9IHRoaXMuX2V2ZW50UmVnaXN0cnkgfHwge307CiAgICAgICAgdmFyIGxpc3RlbmVycyA9IHRoaXMuX2V2ZW50UmVnaXN0cnlbZXZlbnROYW1lXTsKICAgICAgICBpZiAoIWxpc3RlbmVycykKICAgICAgICAgICAgbGlzdGVuZXJzID0gdGhpcy5fZXZlbnRSZWdpc3RyeVtldmVudE5hbWVdID0gW107CiAgICAgICAgaWYgKGxpc3RlbmVycy5pbmRleE9mKGNhbGxiYWNrKSA9PSAtMSkKICAgICAgICAgICAgbGlzdGVuZXJzW2NhcHR1cmluZyA/ICJ1bnNoaWZ0IiA6ICJwdXNoIl0oY2FsbGJhY2spOwogICAgICAgIHJldHVybiBjYWxsYmFjazsKICAgIH07CkV2ZW50RW1pdHRlci5vZmYgPQogICAgRXZlbnRFbWl0dGVyLnJlbW92ZUxpc3RlbmVyID0KICAgICAgICBFdmVudEVtaXR0ZXIucmVtb3ZlRXZlbnRMaXN0ZW5lciA9IGZ1bmN0aW9uIChldmVudE5hbWUsIGNhbGxiYWNrKSB7CiAgICAgICAgICAgIHRoaXMuX2V2ZW50UmVnaXN0cnkgPSB0aGlzLl9ldmVudFJlZ2lzdHJ5IHx8IHt9OwogICAgICAgICAgICB2YXIgbGlzdGVuZXJzID0gdGhpcy5fZXZlbnRSZWdpc3RyeVtldmVudE5hbWVdOwogICAgICAgICAgICBpZiAoIWxpc3RlbmVycykKICAgICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgdmFyIGluZGV4ID0gbGlzdGVuZXJzLmluZGV4T2YoY2FsbGJhY2spOwogICAgICAgICAgICBpZiAoaW5kZXggIT09IC0xKQogICAgICAgICAgICAgICAgbGlzdGVuZXJzLnNwbGljZShpbmRleCwgMSk7CiAgICAgICAgfTsKRXZlbnRFbWl0dGVyLnJlbW92ZUFsbExpc3RlbmVycyA9IGZ1bmN0aW9uIChldmVudE5hbWUpIHsKICAgIGlmICghZXZlbnROYW1lKQogICAgICAgIHRoaXMuX2V2ZW50UmVnaXN0cnkgPSB0aGlzLl9kZWZhdWx0SGFuZGxlcnMgPSB1bmRlZmluZWQ7CiAgICBpZiAodGhpcy5fZXZlbnRSZWdpc3RyeSkKICAgICAgICB0aGlzLl9ldmVudFJlZ2lzdHJ5W2V2ZW50TmFtZV0gPSB1bmRlZmluZWQ7CiAgICBpZiAodGhpcy5fZGVmYXVsdEhhbmRsZXJzKQogICAgICAgIHRoaXMuX2RlZmF1bHRIYW5kbGVyc1tldmVudE5hbWVdID0gdW5kZWZpbmVkOwp9OwpleHBvcnRzLkV2ZW50RW1pdHRlciA9IEV2ZW50RW1pdHRlcjsKCn0pOwoKYWNlLmRlZmluZSgiYWNlL3JhbmdlIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKXsidXNlIHN0cmljdCI7CnZhciBjb21wYXJlUG9pbnRzID0gZnVuY3Rpb24gKHAxLCBwMikgewogICAgcmV0dXJuIHAxLnJvdyAtIHAyLnJvdyB8fCBwMS5jb2x1bW4gLSBwMi5jb2x1bW47Cn07CnZhciBSYW5nZSA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsKICAgIGZ1bmN0aW9uIFJhbmdlKHN0YXJ0Um93LCBzdGFydENvbHVtbiwgZW5kUm93LCBlbmRDb2x1bW4pIHsKICAgICAgICB0aGlzLnN0YXJ0ID0gewogICAgICAgICAgICByb3c6IHN0YXJ0Um93LAogICAgICAgICAgICBjb2x1bW46IHN0YXJ0Q29sdW1uCiAgICAgICAgfTsKICAgICAgICB0aGlzLmVuZCA9IHsKICAgICAgICAgICAgcm93OiBlbmRSb3csCiAgICAgICAgICAgIGNvbHVtbjogZW5kQ29sdW1uCiAgICAgICAgfTsKICAgIH0KICAgIFJhbmdlLnByb3RvdHlwZS5pc0VxdWFsID0gZnVuY3Rpb24gKHJhbmdlKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuc3RhcnQucm93ID09PSByYW5nZS5zdGFydC5yb3cgJiYKICAgICAgICAgICAgdGhpcy5lbmQucm93ID09PSByYW5nZS5lbmQucm93ICYmCiAgICAgICAgICAgIHRoaXMuc3RhcnQuY29sdW1uID09PSByYW5nZS5zdGFydC5jb2x1bW4gJiYKICAgICAgICAgICAgdGhpcy5lbmQuY29sdW1uID09PSByYW5nZS5lbmQuY29sdW1uOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS50b1N0cmluZyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICByZXR1cm4gKCJSYW5nZTogWyIgKyB0aGlzLnN0YXJ0LnJvdyArICIvIiArIHRoaXMuc3RhcnQuY29sdW1uICsKICAgICAgICAgICAgIl0gLT4gWyIgKyB0aGlzLmVuZC5yb3cgKyAiLyIgKyB0aGlzLmVuZC5jb2x1bW4gKyAiXSIpOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5jb250YWlucyA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHJldHVybiB0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pID09IDA7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmNvbXBhcmVSYW5nZSA9IGZ1bmN0aW9uIChyYW5nZSkgewogICAgICAgIHZhciBjbXAsIGVuZCA9IHJhbmdlLmVuZCwgc3RhcnQgPSByYW5nZS5zdGFydDsKICAgICAgICBjbXAgPSB0aGlzLmNvbXBhcmUoZW5kLnJvdywgZW5kLmNvbHVtbik7CiAgICAgICAgaWYgKGNtcCA9PSAxKSB7CiAgICAgICAgICAgIGNtcCA9IHRoaXMuY29tcGFyZShzdGFydC5yb3csIHN0YXJ0LmNvbHVtbik7CiAgICAgICAgICAgIGlmIChjbXAgPT0gMSkgewogICAgICAgICAgICAgICAgcmV0dXJuIDI7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSBpZiAoY21wID09IDApIHsKICAgICAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgZWxzZSBpZiAoY21wID09IC0xKSB7CiAgICAgICAgICAgIHJldHVybiAtMjsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIGNtcCA9IHRoaXMuY29tcGFyZShzdGFydC5yb3csIHN0YXJ0LmNvbHVtbik7CiAgICAgICAgICAgIGlmIChjbXAgPT0gLTEpIHsKICAgICAgICAgICAgICAgIHJldHVybiAtMTsKICAgICAgICAgICAgfQogICAgICAgICAgICBlbHNlIGlmIChjbXAgPT0gMSkgewogICAgICAgICAgICAgICAgcmV0dXJuIDQyOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmNvbXBhcmVQb2ludCA9IGZ1bmN0aW9uIChwKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZShwLnJvdywgcC5jb2x1bW4pOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5jb250YWluc1JhbmdlID0gZnVuY3Rpb24gKHJhbmdlKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZVBvaW50KHJhbmdlLnN0YXJ0KSA9PSAwICYmIHRoaXMuY29tcGFyZVBvaW50KHJhbmdlLmVuZCkgPT0gMDsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuaW50ZXJzZWN0cyA9IGZ1bmN0aW9uIChyYW5nZSkgewogICAgICAgIHZhciBjbXAgPSB0aGlzLmNvbXBhcmVSYW5nZShyYW5nZSk7CiAgICAgICAgcmV0dXJuIChjbXAgPT0gLTEgfHwgY21wID09IDAgfHwgY21wID09IDEpOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5pc0VuZCA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHJldHVybiB0aGlzLmVuZC5yb3cgPT0gcm93ICYmIHRoaXMuZW5kLmNvbHVtbiA9PSBjb2x1bW47CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmlzU3RhcnQgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICByZXR1cm4gdGhpcy5zdGFydC5yb3cgPT0gcm93ICYmIHRoaXMuc3RhcnQuY29sdW1uID09IGNvbHVtbjsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuc2V0U3RhcnQgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodHlwZW9mIHJvdyA9PSAib2JqZWN0IikgewogICAgICAgICAgICB0aGlzLnN0YXJ0LmNvbHVtbiA9IHJvdy5jb2x1bW47CiAgICAgICAgICAgIHRoaXMuc3RhcnQucm93ID0gcm93LnJvdzsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIHRoaXMuc3RhcnQucm93ID0gcm93OwogICAgICAgICAgICB0aGlzLnN0YXJ0LmNvbHVtbiA9IGNvbHVtbjsKICAgICAgICB9CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLnNldEVuZCA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIGlmICh0eXBlb2Ygcm93ID09ICJvYmplY3QiKSB7CiAgICAgICAgICAgIHRoaXMuZW5kLmNvbHVtbiA9IHJvdy5jb2x1bW47CiAgICAgICAgICAgIHRoaXMuZW5kLnJvdyA9IHJvdy5yb3c7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICB0aGlzLmVuZC5yb3cgPSByb3c7CiAgICAgICAgICAgIHRoaXMuZW5kLmNvbHVtbiA9IGNvbHVtbjsKICAgICAgICB9CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmluc2lkZSA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIGlmICh0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pID09IDApIHsKICAgICAgICAgICAgaWYgKHRoaXMuaXNFbmQocm93LCBjb2x1bW4pIHx8IHRoaXMuaXNTdGFydChyb3csIGNvbHVtbikpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgICAgICBlbHNlIHsKICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBmYWxzZTsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuaW5zaWRlU3RhcnQgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodGhpcy5jb21wYXJlKHJvdywgY29sdW1uKSA9PSAwKSB7CiAgICAgICAgICAgIGlmICh0aGlzLmlzRW5kKHJvdywgY29sdW1uKSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5pbnNpZGVFbmQgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodGhpcy5jb21wYXJlKHJvdywgY29sdW1uKSA9PSAwKSB7CiAgICAgICAgICAgIGlmICh0aGlzLmlzU3RhcnQocm93LCBjb2x1bW4pKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gZmFsc2U7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmNvbXBhcmUgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAoIXRoaXMuaXNNdWx0aUxpbmUoKSkgewogICAgICAgICAgICBpZiAocm93ID09PSB0aGlzLnN0YXJ0LnJvdykgewogICAgICAgICAgICAgICAgcmV0dXJuIGNvbHVtbiA8IHRoaXMuc3RhcnQuY29sdW1uID8gLTEgOiAoY29sdW1uID4gdGhpcy5lbmQuY29sdW1uID8gMSA6IDApOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGlmIChyb3cgPCB0aGlzLnN0YXJ0LnJvdykKICAgICAgICAgICAgcmV0dXJuIC0xOwogICAgICAgIGlmIChyb3cgPiB0aGlzLmVuZC5yb3cpCiAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgIGlmICh0aGlzLnN0YXJ0LnJvdyA9PT0gcm93KQogICAgICAgICAgICByZXR1cm4gY29sdW1uID49IHRoaXMuc3RhcnQuY29sdW1uID8gMCA6IC0xOwogICAgICAgIGlmICh0aGlzLmVuZC5yb3cgPT09IHJvdykKICAgICAgICAgICAgcmV0dXJuIGNvbHVtbiA8PSB0aGlzLmVuZC5jb2x1bW4gPyAwIDogMTsKICAgICAgICByZXR1cm4gMDsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuY29tcGFyZVN0YXJ0ID0gZnVuY3Rpb24gKHJvdywgY29sdW1uKSB7CiAgICAgICAgaWYgKHRoaXMuc3RhcnQucm93ID09IHJvdyAmJiB0aGlzLnN0YXJ0LmNvbHVtbiA9PSBjb2x1bW4pIHsKICAgICAgICAgICAgcmV0dXJuIC0xOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZShyb3csIGNvbHVtbik7CiAgICAgICAgfQogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5jb21wYXJlRW5kID0gZnVuY3Rpb24gKHJvdywgY29sdW1uKSB7CiAgICAgICAgaWYgKHRoaXMuZW5kLnJvdyA9PSByb3cgJiYgdGhpcy5lbmQuY29sdW1uID09IGNvbHVtbikgewogICAgICAgICAgICByZXR1cm4gMTsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIHJldHVybiB0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pOwogICAgICAgIH0KICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuY29tcGFyZUluc2lkZSA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIGlmICh0aGlzLmVuZC5yb3cgPT0gcm93ICYmIHRoaXMuZW5kLmNvbHVtbiA9PSBjb2x1bW4pIHsKICAgICAgICAgICAgcmV0dXJuIDE7CiAgICAgICAgfQogICAgICAgIGVsc2UgaWYgKHRoaXMuc3RhcnQucm93ID09IHJvdyAmJiB0aGlzLnN0YXJ0LmNvbHVtbiA9PSBjb2x1bW4pIHsKICAgICAgICAgICAgcmV0dXJuIC0xOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZShyb3csIGNvbHVtbik7CiAgICAgICAgfQogICAgfTsKICAgIFJhbmdlLnByb3RvdHlwZS5jbGlwUm93cyA9IGZ1bmN0aW9uIChmaXJzdFJvdywgbGFzdFJvdykgewogICAgICAgIGlmICh0aGlzLmVuZC5yb3cgPiBsYXN0Um93KQogICAgICAgICAgICB2YXIgZW5kID0geyByb3c6IGxhc3RSb3cgKyAxLCBjb2x1bW46IDAgfTsKICAgICAgICBlbHNlIGlmICh0aGlzLmVuZC5yb3cgPCBmaXJzdFJvdykKICAgICAgICAgICAgdmFyIGVuZCA9IHsgcm93OiBmaXJzdFJvdywgY29sdW1uOiAwIH07CiAgICAgICAgaWYgKHRoaXMuc3RhcnQucm93ID4gbGFzdFJvdykKICAgICAgICAgICAgdmFyIHN0YXJ0ID0geyByb3c6IGxhc3RSb3cgKyAxLCBjb2x1bW46IDAgfTsKICAgICAgICBlbHNlIGlmICh0aGlzLnN0YXJ0LnJvdyA8IGZpcnN0Um93KQogICAgICAgICAgICB2YXIgc3RhcnQgPSB7IHJvdzogZmlyc3RSb3csIGNvbHVtbjogMCB9OwogICAgICAgIHJldHVybiBSYW5nZS5mcm9tUG9pbnRzKHN0YXJ0IHx8IHRoaXMuc3RhcnQsIGVuZCB8fCB0aGlzLmVuZCk7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmV4dGVuZCA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHZhciBjbXAgPSB0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pOwogICAgICAgIGlmIChjbXAgPT0gMCkKICAgICAgICAgICAgcmV0dXJuIHRoaXM7CiAgICAgICAgZWxzZSBpZiAoY21wID09IC0xKQogICAgICAgICAgICB2YXIgc3RhcnQgPSB7IHJvdzogcm93LCBjb2x1bW46IGNvbHVtbiB9OwogICAgICAgIGVsc2UKICAgICAgICAgICAgdmFyIGVuZCA9IHsgcm93OiByb3csIGNvbHVtbjogY29sdW1uIH07CiAgICAgICAgcmV0dXJuIFJhbmdlLmZyb21Qb2ludHMoc3RhcnQgfHwgdGhpcy5zdGFydCwgZW5kIHx8IHRoaXMuZW5kKTsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuaXNFbXB0eSA9IGZ1bmN0aW9uICgpIHsKICAgICAgICByZXR1cm4gKHRoaXMuc3RhcnQucm93ID09PSB0aGlzLmVuZC5yb3cgJiYgdGhpcy5zdGFydC5jb2x1bW4gPT09IHRoaXMuZW5kLmNvbHVtbik7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmlzTXVsdGlMaW5lID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiAodGhpcy5zdGFydC5yb3cgIT09IHRoaXMuZW5kLnJvdyk7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLmNsb25lID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiBSYW5nZS5mcm9tUG9pbnRzKHRoaXMuc3RhcnQsIHRoaXMuZW5kKTsKICAgIH07CiAgICBSYW5nZS5wcm90b3R5cGUuY29sbGFwc2VSb3dzID0gZnVuY3Rpb24gKCkgewogICAgICAgIGlmICh0aGlzLmVuZC5jb2x1bW4gPT0gMCkKICAgICAgICAgICAgcmV0dXJuIG5ldyBSYW5nZSh0aGlzLnN0YXJ0LnJvdywgMCwgTWF0aC5tYXgodGhpcy5zdGFydC5yb3csIHRoaXMuZW5kLnJvdyAtIDEpLCAwKTsKICAgICAgICBlbHNlCiAgICAgICAgICAgIHJldHVybiBuZXcgUmFuZ2UodGhpcy5zdGFydC5yb3csIDAsIHRoaXMuZW5kLnJvdywgMCk7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLnRvU2NyZWVuUmFuZ2UgPSBmdW5jdGlvbiAoc2Vzc2lvbikgewogICAgICAgIHZhciBzY3JlZW5Qb3NTdGFydCA9IHNlc3Npb24uZG9jdW1lbnRUb1NjcmVlblBvc2l0aW9uKHRoaXMuc3RhcnQpOwogICAgICAgIHZhciBzY3JlZW5Qb3NFbmQgPSBzZXNzaW9uLmRvY3VtZW50VG9TY3JlZW5Qb3NpdGlvbih0aGlzLmVuZCk7CiAgICAgICAgcmV0dXJuIG5ldyBSYW5nZShzY3JlZW5Qb3NTdGFydC5yb3csIHNjcmVlblBvc1N0YXJ0LmNvbHVtbiwgc2NyZWVuUG9zRW5kLnJvdywgc2NyZWVuUG9zRW5kLmNvbHVtbik7CiAgICB9OwogICAgUmFuZ2UucHJvdG90eXBlLm1vdmVCeSA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHRoaXMuc3RhcnQucm93ICs9IHJvdzsKICAgICAgICB0aGlzLnN0YXJ0LmNvbHVtbiArPSBjb2x1bW47CiAgICAgICAgdGhpcy5lbmQucm93ICs9IHJvdzsKICAgICAgICB0aGlzLmVuZC5jb2x1bW4gKz0gY29sdW1uOwogICAgfTsKICAgIHJldHVybiBSYW5nZTsKfSgpKTsKUmFuZ2UuZnJvbVBvaW50cyA9IGZ1bmN0aW9uIChzdGFydCwgZW5kKSB7CiAgICByZXR1cm4gbmV3IFJhbmdlKHN0YXJ0LnJvdywgc3RhcnQuY29sdW1uLCBlbmQucm93LCBlbmQuY29sdW1uKTsKfTsKUmFuZ2UuY29tcGFyZVBvaW50cyA9IGNvbXBhcmVQb2ludHM7ClJhbmdlLmNvbXBhcmVQb2ludHMgPSBmdW5jdGlvbiAocDEsIHAyKSB7CiAgICByZXR1cm4gcDEucm93IC0gcDIucm93IHx8IHAxLmNvbHVtbiAtIHAyLmNvbHVtbjsKfTsKZXhwb3J0cy5SYW5nZSA9IFJhbmdlOwoKfSk7CgphY2UuZGVmaW5lKCJhY2UvYW5jaG9yIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKXsidXNlIHN0cmljdCI7CnZhciBvb3AgPSByZXF1aXJlKCIuL2xpYi9vb3AiKTsKdmFyIEV2ZW50RW1pdHRlciA9IHJlcXVpcmUoIi4vbGliL2V2ZW50X2VtaXR0ZXIiKS5FdmVudEVtaXR0ZXI7CnZhciBBbmNob3IgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7CiAgICBmdW5jdGlvbiBBbmNob3IoZG9jLCByb3csIGNvbHVtbikgewogICAgICAgIHRoaXMuJG9uQ2hhbmdlID0gdGhpcy5vbkNoYW5nZS5iaW5kKHRoaXMpOwogICAgICAgIHRoaXMuYXR0YWNoKGRvYyk7CiAgICAgICAgaWYgKHR5cGVvZiBjb2x1bW4gPT0gInVuZGVmaW5lZCIpCiAgICAgICAgICAgIHRoaXMuc2V0UG9zaXRpb24ocm93LnJvdywgcm93LmNvbHVtbik7CiAgICAgICAgZWxzZQogICAgICAgICAgICB0aGlzLnNldFBvc2l0aW9uKHJvdywgY29sdW1uKTsKICAgIH0KICAgIEFuY2hvci5wcm90b3R5cGUuZ2V0UG9zaXRpb24gPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJGNsaXBQb3NpdGlvblRvRG9jdW1lbnQodGhpcy5yb3csIHRoaXMuY29sdW1uKTsKICAgIH07CiAgICBBbmNob3IucHJvdG90eXBlLmdldERvY3VtZW50ID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiB0aGlzLmRvY3VtZW50OwogICAgfTsKICAgIEFuY2hvci5wcm90b3R5cGUub25DaGFuZ2UgPSBmdW5jdGlvbiAoZGVsdGEpIHsKICAgICAgICBpZiAoZGVsdGEuc3RhcnQucm93ID09IGRlbHRhLmVuZC5yb3cgJiYgZGVsdGEuc3RhcnQucm93ICE9IHRoaXMucm93KQogICAgICAgICAgICByZXR1cm47CiAgICAgICAgaWYgKGRlbHRhLnN0YXJ0LnJvdyA+IHRoaXMucm93KQogICAgICAgICAgICByZXR1cm47CiAgICAgICAgdmFyIHBvaW50ID0gJGdldFRyYW5zZm9ybWVkUG9pbnQoZGVsdGEsIHsgcm93OiB0aGlzLnJvdywgY29sdW1uOiB0aGlzLmNvbHVtbiB9LCB0aGlzLiRpbnNlcnRSaWdodCk7CiAgICAgICAgdGhpcy5zZXRQb3NpdGlvbihwb2ludC5yb3csIHBvaW50LmNvbHVtbiwgdHJ1ZSk7CiAgICB9OwogICAgQW5jaG9yLnByb3RvdHlwZS5zZXRQb3NpdGlvbiA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbiwgbm9DbGlwKSB7CiAgICAgICAgdmFyIHBvczsKICAgICAgICBpZiAobm9DbGlwKSB7CiAgICAgICAgICAgIHBvcyA9IHsKICAgICAgICAgICAgICAgIHJvdzogcm93LAogICAgICAgICAgICAgICAgY29sdW1uOiBjb2x1bW4KICAgICAgICAgICAgfTsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIHBvcyA9IHRoaXMuJGNsaXBQb3NpdGlvblRvRG9jdW1lbnQocm93LCBjb2x1bW4pOwogICAgICAgIH0KICAgICAgICBpZiAodGhpcy5yb3cgPT0gcG9zLnJvdyAmJiB0aGlzLmNvbHVtbiA9PSBwb3MuY29sdW1uKQogICAgICAgICAgICByZXR1cm47CiAgICAgICAgdmFyIG9sZCA9IHsKICAgICAgICAgICAgcm93OiB0aGlzLnJvdywKICAgICAgICAgICAgY29sdW1uOiB0aGlzLmNvbHVtbgogICAgICAgIH07CiAgICAgICAgdGhpcy5yb3cgPSBwb3Mucm93OwogICAgICAgIHRoaXMuY29sdW1uID0gcG9zLmNvbHVtbjsKICAgICAgICB0aGlzLl9zaWduYWwoImNoYW5nZSIsIHsKICAgICAgICAgICAgb2xkOiBvbGQsCiAgICAgICAgICAgIHZhbHVlOiBwb3MKICAgICAgICB9KTsKICAgIH07CiAgICBBbmNob3IucHJvdG90eXBlLmRldGFjaCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICB0aGlzLmRvY3VtZW50Lm9mZigiY2hhbmdlIiwgdGhpcy4kb25DaGFuZ2UpOwogICAgfTsKICAgIEFuY2hvci5wcm90b3R5cGUuYXR0YWNoID0gZnVuY3Rpb24gKGRvYykgewogICAgICAgIHRoaXMuZG9jdW1lbnQgPSBkb2MgfHwgdGhpcy5kb2N1bWVudDsKICAgICAgICB0aGlzLmRvY3VtZW50Lm9uKCJjaGFuZ2UiLCB0aGlzLiRvbkNoYW5nZSk7CiAgICB9OwogICAgQW5jaG9yLnByb3RvdHlwZS4kY2xpcFBvc2l0aW9uVG9Eb2N1bWVudCA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHZhciBwb3MgPSB7fTsKICAgICAgICBpZiAocm93ID49IHRoaXMuZG9jdW1lbnQuZ2V0TGVuZ3RoKCkpIHsKICAgICAgICAgICAgcG9zLnJvdyA9IE1hdGgubWF4KDAsIHRoaXMuZG9jdW1lbnQuZ2V0TGVuZ3RoKCkgLSAxKTsKICAgICAgICAgICAgcG9zLmNvbHVtbiA9IHRoaXMuZG9jdW1lbnQuZ2V0TGluZShwb3Mucm93KS5sZW5ndGg7CiAgICAgICAgfQogICAgICAgIGVsc2UgaWYgKHJvdyA8IDApIHsKICAgICAgICAgICAgcG9zLnJvdyA9IDA7CiAgICAgICAgICAgIHBvcy5jb2x1bW4gPSAwOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgcG9zLnJvdyA9IHJvdzsKICAgICAgICAgICAgcG9zLmNvbHVtbiA9IE1hdGgubWluKHRoaXMuZG9jdW1lbnQuZ2V0TGluZShwb3Mucm93KS5sZW5ndGgsIE1hdGgubWF4KDAsIGNvbHVtbikpOwogICAgICAgIH0KICAgICAgICBpZiAoY29sdW1uIDwgMCkKICAgICAgICAgICAgcG9zLmNvbHVtbiA9IDA7CiAgICAgICAgcmV0dXJuIHBvczsKICAgIH07CiAgICByZXR1cm4gQW5jaG9yOwp9KCkpOwpBbmNob3IucHJvdG90eXBlLiRpbnNlcnRSaWdodCA9IGZhbHNlOwpvb3AuaW1wbGVtZW50KEFuY2hvci5wcm90b3R5cGUsIEV2ZW50RW1pdHRlcik7CmZ1bmN0aW9uICRwb2ludHNJbk9yZGVyKHBvaW50MSwgcG9pbnQyLCBlcXVhbFBvaW50c0luT3JkZXIpIHsKICAgIHZhciBiQ29sSXNBZnRlciA9IGVxdWFsUG9pbnRzSW5PcmRlciA/IHBvaW50MS5jb2x1bW4gPD0gcG9pbnQyLmNvbHVtbiA6IHBvaW50MS5jb2x1bW4gPCBwb2ludDIuY29sdW1uOwogICAgcmV0dXJuIChwb2ludDEucm93IDwgcG9pbnQyLnJvdykgfHwgKHBvaW50MS5yb3cgPT0gcG9pbnQyLnJvdyAmJiBiQ29sSXNBZnRlcik7Cn0KZnVuY3Rpb24gJGdldFRyYW5zZm9ybWVkUG9pbnQoZGVsdGEsIHBvaW50LCBtb3ZlSWZFcXVhbCkgewogICAgdmFyIGRlbHRhSXNJbnNlcnQgPSBkZWx0YS5hY3Rpb24gPT0gImluc2VydCI7CiAgICB2YXIgZGVsdGFSb3dTaGlmdCA9IChkZWx0YUlzSW5zZXJ0ID8gMSA6IC0xKSAqIChkZWx0YS5lbmQucm93IC0gZGVsdGEuc3RhcnQucm93KTsKICAgIHZhciBkZWx0YUNvbFNoaWZ0ID0gKGRlbHRhSXNJbnNlcnQgPyAxIDogLTEpICogKGRlbHRhLmVuZC5jb2x1bW4gLSBkZWx0YS5zdGFydC5jb2x1bW4pOwogICAgdmFyIGRlbHRhU3RhcnQgPSBkZWx0YS5zdGFydDsKICAgIHZhciBkZWx0YUVuZCA9IGRlbHRhSXNJbnNlcnQgPyBkZWx0YVN0YXJ0IDogZGVsdGEuZW5kOyAvLyBDb2xsYXBzZSBpbnNlcnQgcmFuZ2UuCiAgICBpZiAoJHBvaW50c0luT3JkZXIocG9pbnQsIGRlbHRhU3RhcnQsIG1vdmVJZkVxdWFsKSkgewogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIHJvdzogcG9pbnQucm93LAogICAgICAgICAgICBjb2x1bW46IHBvaW50LmNvbHVtbgogICAgICAgIH07CiAgICB9CiAgICBpZiAoJHBvaW50c0luT3JkZXIoZGVsdGFFbmQsIHBvaW50LCAhbW92ZUlmRXF1YWwpKSB7CiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgcm93OiBwb2ludC5yb3cgKyBkZWx0YVJvd1NoaWZ0LAogICAgICAgICAgICBjb2x1bW46IHBvaW50LmNvbHVtbiArIChwb2ludC5yb3cgPT0gZGVsdGFFbmQucm93ID8gZGVsdGFDb2xTaGlmdCA6IDApCiAgICAgICAgfTsKICAgIH0KICAgIHJldHVybiB7CiAgICAgICAgcm93OiBkZWx0YVN0YXJ0LnJvdywKICAgICAgICBjb2x1bW46IGRlbHRhU3RhcnQuY29sdW1uCiAgICB9Owp9CmV4cG9ydHMuQW5jaG9yID0gQW5jaG9yOwoKfSk7CgphY2UuZGVmaW5lKCJhY2UvZG9jdW1lbnQiLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpeyJ1c2Ugc3RyaWN0IjsKdmFyIG9vcCA9IHJlcXVpcmUoIi4vbGliL29vcCIpOwp2YXIgYXBwbHlEZWx0YSA9IHJlcXVpcmUoIi4vYXBwbHlfZGVsdGEiKS5hcHBseURlbHRhOwp2YXIgRXZlbnRFbWl0dGVyID0gcmVxdWlyZSgiLi9saWIvZXZlbnRfZW1pdHRlciIpLkV2ZW50RW1pdHRlcjsKdmFyIFJhbmdlID0gcmVxdWlyZSgiLi9yYW5nZSIpLlJhbmdlOwp2YXIgQW5jaG9yID0gcmVxdWlyZSgiLi9hbmNob3IiKS5BbmNob3I7CnZhciBEb2N1bWVudCA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsKICAgIGZ1bmN0aW9uIERvY3VtZW50KHRleHRPckxpbmVzKSB7CiAgICAgICAgdGhpcy4kbGluZXMgPSBbIiJdOwogICAgICAgIGlmICh0ZXh0T3JMaW5lcy5sZW5ndGggPT09IDApIHsKICAgICAgICAgICAgdGhpcy4kbGluZXMgPSBbIiJdOwogICAgICAgIH0KICAgICAgICBlbHNlIGlmIChBcnJheS5pc0FycmF5KHRleHRPckxpbmVzKSkgewogICAgICAgICAgICB0aGlzLmluc2VydE1lcmdlZExpbmVzKHsgcm93OiAwLCBjb2x1bW46IDAgfSwgdGV4dE9yTGluZXMpOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgdGhpcy5pbnNlcnQoeyByb3c6IDAsIGNvbHVtbjogMCB9LCB0ZXh0T3JMaW5lcyk7CiAgICAgICAgfQogICAgfQogICAgRG9jdW1lbnQucHJvdG90eXBlLnNldFZhbHVlID0gZnVuY3Rpb24gKHRleHQpIHsKICAgICAgICB2YXIgbGVuID0gdGhpcy5nZXRMZW5ndGgoKSAtIDE7CiAgICAgICAgdGhpcy5yZW1vdmUobmV3IFJhbmdlKDAsIDAsIGxlbiwgdGhpcy5nZXRMaW5lKGxlbikubGVuZ3RoKSk7CiAgICAgICAgdGhpcy5pbnNlcnQoeyByb3c6IDAsIGNvbHVtbjogMCB9LCB0ZXh0IHx8ICIiKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuZ2V0VmFsdWUgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuZ2V0QWxsTGluZXMoKS5qb2luKHRoaXMuZ2V0TmV3TGluZUNoYXJhY3RlcigpKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuY3JlYXRlQW5jaG9yID0gZnVuY3Rpb24gKHJvdywgY29sdW1uKSB7CiAgICAgICAgcmV0dXJuIG5ldyBBbmNob3IodGhpcywgcm93LCBjb2x1bW4pOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS4kZGV0ZWN0TmV3TGluZSA9IGZ1bmN0aW9uICh0ZXh0KSB7CiAgICAgICAgdmFyIG1hdGNoID0gdGV4dC5tYXRjaCgvXi4qPyhcclxufFxyfFxuKS9tKTsKICAgICAgICB0aGlzLiRhdXRvTmV3TGluZSA9IG1hdGNoID8gbWF0Y2hbMV0gOiAiXG4iOwogICAgICAgIHRoaXMuX3NpZ25hbCgiY2hhbmdlTmV3TGluZU1vZGUiKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuZ2V0TmV3TGluZUNoYXJhY3RlciA9IGZ1bmN0aW9uICgpIHsKICAgICAgICBzd2l0Y2ggKHRoaXMuJG5ld0xpbmVNb2RlKSB7CiAgICAgICAgICAgIGNhc2UgIndpbmRvd3MiOgogICAgICAgICAgICAgICAgcmV0dXJuICJcclxuIjsKICAgICAgICAgICAgY2FzZSAidW5peCI6CiAgICAgICAgICAgICAgICByZXR1cm4gIlxuIjsKICAgICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLiRhdXRvTmV3TGluZSB8fCAiXG4iOwogICAgICAgIH0KICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuc2V0TmV3TGluZU1vZGUgPSBmdW5jdGlvbiAobmV3TGluZU1vZGUpIHsKICAgICAgICBpZiAodGhpcy4kbmV3TGluZU1vZGUgPT09IG5ld0xpbmVNb2RlKQogICAgICAgICAgICByZXR1cm47CiAgICAgICAgdGhpcy4kbmV3TGluZU1vZGUgPSBuZXdMaW5lTW9kZTsKICAgICAgICB0aGlzLl9zaWduYWwoImNoYW5nZU5ld0xpbmVNb2RlIik7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmdldE5ld0xpbmVNb2RlID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiB0aGlzLiRuZXdMaW5lTW9kZTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuaXNOZXdMaW5lID0gZnVuY3Rpb24gKHRleHQpIHsKICAgICAgICByZXR1cm4gKHRleHQgPT0gIlxyXG4iIHx8IHRleHQgPT0gIlxyIiB8fCB0ZXh0ID09ICJcbiIpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5nZXRMaW5lID0gZnVuY3Rpb24gKHJvdykgewogICAgICAgIHJldHVybiB0aGlzLiRsaW5lc1tyb3ddIHx8ICIiOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5nZXRMaW5lcyA9IGZ1bmN0aW9uIChmaXJzdFJvdywgbGFzdFJvdykgewogICAgICAgIHJldHVybiB0aGlzLiRsaW5lcy5zbGljZShmaXJzdFJvdywgbGFzdFJvdyArIDEpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5nZXRBbGxMaW5lcyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICByZXR1cm4gdGhpcy5nZXRMaW5lcygwLCB0aGlzLmdldExlbmd0aCgpKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuZ2V0TGVuZ3RoID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiB0aGlzLiRsaW5lcy5sZW5ndGg7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmdldFRleHRSYW5nZSA9IGZ1bmN0aW9uIChyYW5nZSkgewogICAgICAgIHJldHVybiB0aGlzLmdldExpbmVzRm9yUmFuZ2UocmFuZ2UpLmpvaW4odGhpcy5nZXROZXdMaW5lQ2hhcmFjdGVyKCkpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5nZXRMaW5lc0ZvclJhbmdlID0gZnVuY3Rpb24gKHJhbmdlKSB7CiAgICAgICAgdmFyIGxpbmVzOwogICAgICAgIGlmIChyYW5nZS5zdGFydC5yb3cgPT09IHJhbmdlLmVuZC5yb3cpIHsKICAgICAgICAgICAgbGluZXMgPSBbdGhpcy5nZXRMaW5lKHJhbmdlLnN0YXJ0LnJvdykuc3Vic3RyaW5nKHJhbmdlLnN0YXJ0LmNvbHVtbiwgcmFuZ2UuZW5kLmNvbHVtbildOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgbGluZXMgPSB0aGlzLmdldExpbmVzKHJhbmdlLnN0YXJ0LnJvdywgcmFuZ2UuZW5kLnJvdyk7CiAgICAgICAgICAgIGxpbmVzWzBdID0gKGxpbmVzWzBdIHx8ICIiKS5zdWJzdHJpbmcocmFuZ2Uuc3RhcnQuY29sdW1uKTsKICAgICAgICAgICAgdmFyIGwgPSBsaW5lcy5sZW5ndGggLSAxOwogICAgICAgICAgICBpZiAocmFuZ2UuZW5kLnJvdyAtIHJhbmdlLnN0YXJ0LnJvdyA9PSBsKQogICAgICAgICAgICAgICAgbGluZXNbbF0gPSBsaW5lc1tsXS5zdWJzdHJpbmcoMCwgcmFuZ2UuZW5kLmNvbHVtbik7CiAgICAgICAgfQogICAgICAgIHJldHVybiBsaW5lczsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuaW5zZXJ0TGluZXMgPSBmdW5jdGlvbiAocm93LCBsaW5lcykgewogICAgICAgIGNvbnNvbGUud2FybigiVXNlIG9mIGRvY3VtZW50Lmluc2VydExpbmVzIGlzIGRlcHJlY2F0ZWQuIFVzZSB0aGUgaW5zZXJ0RnVsbExpbmVzIG1ldGhvZCBpbnN0ZWFkLiIpOwogICAgICAgIHJldHVybiB0aGlzLmluc2VydEZ1bGxMaW5lcyhyb3csIGxpbmVzKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUucmVtb3ZlTGluZXMgPSBmdW5jdGlvbiAoZmlyc3RSb3csIGxhc3RSb3cpIHsKICAgICAgICBjb25zb2xlLndhcm4oIlVzZSBvZiBkb2N1bWVudC5yZW1vdmVMaW5lcyBpcyBkZXByZWNhdGVkLiBVc2UgdGhlIHJlbW92ZUZ1bGxMaW5lcyBtZXRob2QgaW5zdGVhZC4iKTsKICAgICAgICByZXR1cm4gdGhpcy5yZW1vdmVGdWxsTGluZXMoZmlyc3RSb3csIGxhc3RSb3cpOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5pbnNlcnROZXdMaW5lID0gZnVuY3Rpb24gKHBvc2l0aW9uKSB7CiAgICAgICAgY29uc29sZS53YXJuKCJVc2Ugb2YgZG9jdW1lbnQuaW5zZXJ0TmV3TGluZSBpcyBkZXByZWNhdGVkLiBVc2UgaW5zZXJ0TWVyZ2VkTGluZXMocG9zaXRpb24sIFsnJywgJyddKSBpbnN0ZWFkLiIpOwogICAgICAgIHJldHVybiB0aGlzLmluc2VydE1lcmdlZExpbmVzKHBvc2l0aW9uLCBbIiIsICIiXSk7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmluc2VydCA9IGZ1bmN0aW9uIChwb3NpdGlvbiwgdGV4dCkgewogICAgICAgIGlmICh0aGlzLmdldExlbmd0aCgpIDw9IDEpCiAgICAgICAgICAgIHRoaXMuJGRldGVjdE5ld0xpbmUodGV4dCk7CiAgICAgICAgcmV0dXJuIHRoaXMuaW5zZXJ0TWVyZ2VkTGluZXMocG9zaXRpb24sIHRoaXMuJHNwbGl0KHRleHQpKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuaW5zZXJ0SW5MaW5lID0gZnVuY3Rpb24gKHBvc2l0aW9uLCB0ZXh0KSB7CiAgICAgICAgdmFyIHN0YXJ0ID0gdGhpcy5jbGlwcGVkUG9zKHBvc2l0aW9uLnJvdywgcG9zaXRpb24uY29sdW1uKTsKICAgICAgICB2YXIgZW5kID0gdGhpcy5wb3MocG9zaXRpb24ucm93LCBwb3NpdGlvbi5jb2x1bW4gKyB0ZXh0Lmxlbmd0aCk7CiAgICAgICAgdGhpcy5hcHBseURlbHRhKHsKICAgICAgICAgICAgc3RhcnQ6IHN0YXJ0LAogICAgICAgICAgICBlbmQ6IGVuZCwKICAgICAgICAgICAgYWN0aW9uOiAiaW5zZXJ0IiwKICAgICAgICAgICAgbGluZXM6IFt0ZXh0XQogICAgICAgIH0sIHRydWUpOwogICAgICAgIHJldHVybiB0aGlzLmNsb25lUG9zKGVuZCk7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmNsaXBwZWRQb3MgPSBmdW5jdGlvbiAocm93LCBjb2x1bW4pIHsKICAgICAgICB2YXIgbGVuZ3RoID0gdGhpcy5nZXRMZW5ndGgoKTsKICAgICAgICBpZiAocm93ID09PSB1bmRlZmluZWQpIHsKICAgICAgICAgICAgcm93ID0gbGVuZ3RoOwogICAgICAgIH0KICAgICAgICBlbHNlIGlmIChyb3cgPCAwKSB7CiAgICAgICAgICAgIHJvdyA9IDA7CiAgICAgICAgfQogICAgICAgIGVsc2UgaWYgKHJvdyA+PSBsZW5ndGgpIHsKICAgICAgICAgICAgcm93ID0gbGVuZ3RoIC0gMTsKICAgICAgICAgICAgY29sdW1uID0gdW5kZWZpbmVkOwogICAgICAgIH0KICAgICAgICB2YXIgbGluZSA9IHRoaXMuZ2V0TGluZShyb3cpOwogICAgICAgIGlmIChjb2x1bW4gPT0gdW5kZWZpbmVkKQogICAgICAgICAgICBjb2x1bW4gPSBsaW5lLmxlbmd0aDsKICAgICAgICBjb2x1bW4gPSBNYXRoLm1pbihNYXRoLm1heChjb2x1bW4sIDApLCBsaW5lLmxlbmd0aCk7CiAgICAgICAgcmV0dXJuIHsgcm93OiByb3csIGNvbHVtbjogY29sdW1uIH07CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmNsb25lUG9zID0gZnVuY3Rpb24gKHBvcykgewogICAgICAgIHJldHVybiB7IHJvdzogcG9zLnJvdywgY29sdW1uOiBwb3MuY29sdW1uIH07CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLnBvcyA9IGZ1bmN0aW9uIChyb3csIGNvbHVtbikgewogICAgICAgIHJldHVybiB7IHJvdzogcm93LCBjb2x1bW46IGNvbHVtbiB9OwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS4kY2xpcFBvc2l0aW9uID0gZnVuY3Rpb24gKHBvc2l0aW9uKSB7CiAgICAgICAgdmFyIGxlbmd0aCA9IHRoaXMuZ2V0TGVuZ3RoKCk7CiAgICAgICAgaWYgKHBvc2l0aW9uLnJvdyA+PSBsZW5ndGgpIHsKICAgICAgICAgICAgcG9zaXRpb24ucm93ID0gTWF0aC5tYXgoMCwgbGVuZ3RoIC0gMSk7CiAgICAgICAgICAgIHBvc2l0aW9uLmNvbHVtbiA9IHRoaXMuZ2V0TGluZShsZW5ndGggLSAxKS5sZW5ndGg7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICBwb3NpdGlvbi5yb3cgPSBNYXRoLm1heCgwLCBwb3NpdGlvbi5yb3cpOwogICAgICAgICAgICBwb3NpdGlvbi5jb2x1bW4gPSBNYXRoLm1pbihNYXRoLm1heChwb3NpdGlvbi5jb2x1bW4sIDApLCB0aGlzLmdldExpbmUocG9zaXRpb24ucm93KS5sZW5ndGgpOwogICAgICAgIH0KICAgICAgICByZXR1cm4gcG9zaXRpb247CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmluc2VydEZ1bGxMaW5lcyA9IGZ1bmN0aW9uIChyb3csIGxpbmVzKSB7CiAgICAgICAgcm93ID0gTWF0aC5taW4oTWF0aC5tYXgocm93LCAwKSwgdGhpcy5nZXRMZW5ndGgoKSk7CiAgICAgICAgdmFyIGNvbHVtbiA9IDA7CiAgICAgICAgaWYgKHJvdyA8IHRoaXMuZ2V0TGVuZ3RoKCkpIHsKICAgICAgICAgICAgbGluZXMgPSBsaW5lcy5jb25jYXQoWyIiXSk7CiAgICAgICAgICAgIGNvbHVtbiA9IDA7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICBsaW5lcyA9IFsiIl0uY29uY2F0KGxpbmVzKTsKICAgICAgICAgICAgcm93LS07CiAgICAgICAgICAgIGNvbHVtbiA9IHRoaXMuJGxpbmVzW3Jvd10ubGVuZ3RoOwogICAgICAgIH0KICAgICAgICB0aGlzLmluc2VydE1lcmdlZExpbmVzKHsgcm93OiByb3csIGNvbHVtbjogY29sdW1uIH0sIGxpbmVzKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuaW5zZXJ0TWVyZ2VkTGluZXMgPSBmdW5jdGlvbiAocG9zaXRpb24sIGxpbmVzKSB7CiAgICAgICAgdmFyIHN0YXJ0ID0gdGhpcy5jbGlwcGVkUG9zKHBvc2l0aW9uLnJvdywgcG9zaXRpb24uY29sdW1uKTsKICAgICAgICB2YXIgZW5kID0gewogICAgICAgICAgICByb3c6IHN0YXJ0LnJvdyArIGxpbmVzLmxlbmd0aCAtIDEsCiAgICAgICAgICAgIGNvbHVtbjogKGxpbmVzLmxlbmd0aCA9PSAxID8gc3RhcnQuY29sdW1uIDogMCkgKyBsaW5lc1tsaW5lcy5sZW5ndGggLSAxXS5sZW5ndGgKICAgICAgICB9OwogICAgICAgIHRoaXMuYXBwbHlEZWx0YSh7CiAgICAgICAgICAgIHN0YXJ0OiBzdGFydCwKICAgICAgICAgICAgZW5kOiBlbmQsCiAgICAgICAgICAgIGFjdGlvbjogImluc2VydCIsCiAgICAgICAgICAgIGxpbmVzOiBsaW5lcwogICAgICAgIH0pOwogICAgICAgIHJldHVybiB0aGlzLmNsb25lUG9zKGVuZCk7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLnJlbW92ZSA9IGZ1bmN0aW9uIChyYW5nZSkgewogICAgICAgIHZhciBzdGFydCA9IHRoaXMuY2xpcHBlZFBvcyhyYW5nZS5zdGFydC5yb3csIHJhbmdlLnN0YXJ0LmNvbHVtbik7CiAgICAgICAgdmFyIGVuZCA9IHRoaXMuY2xpcHBlZFBvcyhyYW5nZS5lbmQucm93LCByYW5nZS5lbmQuY29sdW1uKTsKICAgICAgICB0aGlzLmFwcGx5RGVsdGEoewogICAgICAgICAgICBzdGFydDogc3RhcnQsCiAgICAgICAgICAgIGVuZDogZW5kLAogICAgICAgICAgICBhY3Rpb246ICJyZW1vdmUiLAogICAgICAgICAgICBsaW5lczogdGhpcy5nZXRMaW5lc0ZvclJhbmdlKHsgc3RhcnQ6IHN0YXJ0LCBlbmQ6IGVuZCB9KQogICAgICAgIH0pOwogICAgICAgIHJldHVybiB0aGlzLmNsb25lUG9zKHN0YXJ0KTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUucmVtb3ZlSW5MaW5lID0gZnVuY3Rpb24gKHJvdywgc3RhcnRDb2x1bW4sIGVuZENvbHVtbikgewogICAgICAgIHZhciBzdGFydCA9IHRoaXMuY2xpcHBlZFBvcyhyb3csIHN0YXJ0Q29sdW1uKTsKICAgICAgICB2YXIgZW5kID0gdGhpcy5jbGlwcGVkUG9zKHJvdywgZW5kQ29sdW1uKTsKICAgICAgICB0aGlzLmFwcGx5RGVsdGEoewogICAgICAgICAgICBzdGFydDogc3RhcnQsCiAgICAgICAgICAgIGVuZDogZW5kLAogICAgICAgICAgICBhY3Rpb246ICJyZW1vdmUiLAogICAgICAgICAgICBsaW5lczogdGhpcy5nZXRMaW5lc0ZvclJhbmdlKHsgc3RhcnQ6IHN0YXJ0LCBlbmQ6IGVuZCB9KQogICAgICAgIH0sIHRydWUpOwogICAgICAgIHJldHVybiB0aGlzLmNsb25lUG9zKHN0YXJ0KTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUucmVtb3ZlRnVsbExpbmVzID0gZnVuY3Rpb24gKGZpcnN0Um93LCBsYXN0Um93KSB7CiAgICAgICAgZmlyc3RSb3cgPSBNYXRoLm1pbihNYXRoLm1heCgwLCBmaXJzdFJvdyksIHRoaXMuZ2V0TGVuZ3RoKCkgLSAxKTsKICAgICAgICBsYXN0Um93ID0gTWF0aC5taW4oTWF0aC5tYXgoMCwgbGFzdFJvdyksIHRoaXMuZ2V0TGVuZ3RoKCkgLSAxKTsKICAgICAgICB2YXIgZGVsZXRlRmlyc3ROZXdMaW5lID0gbGFzdFJvdyA9PSB0aGlzLmdldExlbmd0aCgpIC0gMSAmJiBmaXJzdFJvdyA+IDA7CiAgICAgICAgdmFyIGRlbGV0ZUxhc3ROZXdMaW5lID0gbGFzdFJvdyA8IHRoaXMuZ2V0TGVuZ3RoKCkgLSAxOwogICAgICAgIHZhciBzdGFydFJvdyA9IChkZWxldGVGaXJzdE5ld0xpbmUgPyBmaXJzdFJvdyAtIDEgOiBmaXJzdFJvdyk7CiAgICAgICAgdmFyIHN0YXJ0Q29sID0gKGRlbGV0ZUZpcnN0TmV3TGluZSA/IHRoaXMuZ2V0TGluZShzdGFydFJvdykubGVuZ3RoIDogMCk7CiAgICAgICAgdmFyIGVuZFJvdyA9IChkZWxldGVMYXN0TmV3TGluZSA/IGxhc3RSb3cgKyAxIDogbGFzdFJvdyk7CiAgICAgICAgdmFyIGVuZENvbCA9IChkZWxldGVMYXN0TmV3TGluZSA/IDAgOiB0aGlzLmdldExpbmUoZW5kUm93KS5sZW5ndGgpOwogICAgICAgIHZhciByYW5nZSA9IG5ldyBSYW5nZShzdGFydFJvdywgc3RhcnRDb2wsIGVuZFJvdywgZW5kQ29sKTsKICAgICAgICB2YXIgZGVsZXRlZExpbmVzID0gdGhpcy4kbGluZXMuc2xpY2UoZmlyc3RSb3csIGxhc3RSb3cgKyAxKTsKICAgICAgICB0aGlzLmFwcGx5RGVsdGEoewogICAgICAgICAgICBzdGFydDogcmFuZ2Uuc3RhcnQsCiAgICAgICAgICAgIGVuZDogcmFuZ2UuZW5kLAogICAgICAgICAgICBhY3Rpb246ICJyZW1vdmUiLAogICAgICAgICAgICBsaW5lczogdGhpcy5nZXRMaW5lc0ZvclJhbmdlKHJhbmdlKQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkZWxldGVkTGluZXM7CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLnJlbW92ZU5ld0xpbmUgPSBmdW5jdGlvbiAocm93KSB7CiAgICAgICAgaWYgKHJvdyA8IHRoaXMuZ2V0TGVuZ3RoKCkgLSAxICYmIHJvdyA+PSAwKSB7CiAgICAgICAgICAgIHRoaXMuYXBwbHlEZWx0YSh7CiAgICAgICAgICAgICAgICBzdGFydDogdGhpcy5wb3Mocm93LCB0aGlzLmdldExpbmUocm93KS5sZW5ndGgpLAogICAgICAgICAgICAgICAgZW5kOiB0aGlzLnBvcyhyb3cgKyAxLCAwKSwKICAgICAgICAgICAgICAgIGFjdGlvbjogInJlbW92ZSIsCiAgICAgICAgICAgICAgICBsaW5lczogWyIiLCAiIl0KICAgICAgICAgICAgfSk7CiAgICAgICAgfQogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5yZXBsYWNlID0gZnVuY3Rpb24gKHJhbmdlLCB0ZXh0KSB7CiAgICAgICAgaWYgKCEocmFuZ2UgaW5zdGFuY2VvZiBSYW5nZSkpCiAgICAgICAgICAgIHJhbmdlID0gUmFuZ2UuZnJvbVBvaW50cyhyYW5nZS5zdGFydCwgcmFuZ2UuZW5kKTsKICAgICAgICBpZiAodGV4dC5sZW5ndGggPT09IDAgJiYgcmFuZ2UuaXNFbXB0eSgpKQogICAgICAgICAgICByZXR1cm4gcmFuZ2Uuc3RhcnQ7CiAgICAgICAgaWYgKHRleHQgPT0gdGhpcy5nZXRUZXh0UmFuZ2UocmFuZ2UpKQogICAgICAgICAgICByZXR1cm4gcmFuZ2UuZW5kOwogICAgICAgIHRoaXMucmVtb3ZlKHJhbmdlKTsKICAgICAgICB2YXIgZW5kOwogICAgICAgIGlmICh0ZXh0KSB7CiAgICAgICAgICAgIGVuZCA9IHRoaXMuaW5zZXJ0KHJhbmdlLnN0YXJ0LCB0ZXh0KTsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIGVuZCA9IHJhbmdlLnN0YXJ0OwogICAgICAgIH0KICAgICAgICByZXR1cm4gZW5kOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5hcHBseURlbHRhcyA9IGZ1bmN0aW9uIChkZWx0YXMpIHsKICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGRlbHRhcy5sZW5ndGg7IGkrKykgewogICAgICAgICAgICB0aGlzLmFwcGx5RGVsdGEoZGVsdGFzW2ldKTsKICAgICAgICB9CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLnJldmVydERlbHRhcyA9IGZ1bmN0aW9uIChkZWx0YXMpIHsKICAgICAgICBmb3IgKHZhciBpID0gZGVsdGFzLmxlbmd0aCAtIDE7IGkgPj0gMDsgaS0tKSB7CiAgICAgICAgICAgIHRoaXMucmV2ZXJ0RGVsdGEoZGVsdGFzW2ldKTsKICAgICAgICB9CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLmFwcGx5RGVsdGEgPSBmdW5jdGlvbiAoZGVsdGEsIGRvTm90VmFsaWRhdGUpIHsKICAgICAgICB2YXIgaXNJbnNlcnQgPSBkZWx0YS5hY3Rpb24gPT0gImluc2VydCI7CiAgICAgICAgaWYgKGlzSW5zZXJ0ID8gZGVsdGEubGluZXMubGVuZ3RoIDw9IDEgJiYgIWRlbHRhLmxpbmVzWzBdCiAgICAgICAgICAgIDogIVJhbmdlLmNvbXBhcmVQb2ludHMoZGVsdGEuc3RhcnQsIGRlbHRhLmVuZCkpIHsKICAgICAgICAgICAgcmV0dXJuOwogICAgICAgIH0KICAgICAgICBpZiAoaXNJbnNlcnQgJiYgZGVsdGEubGluZXMubGVuZ3RoID4gMjAwMDApIHsKICAgICAgICAgICAgdGhpcy4kc3BsaXRBbmRhcHBseUxhcmdlRGVsdGEoZGVsdGEsIDIwMDAwKTsKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIGFwcGx5RGVsdGEodGhpcy4kbGluZXMsIGRlbHRhLCBkb05vdFZhbGlkYXRlKTsKICAgICAgICAgICAgdGhpcy5fc2lnbmFsKCJjaGFuZ2UiLCBkZWx0YSk7CiAgICAgICAgfQogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS4kc2FmZUFwcGx5RGVsdGEgPSBmdW5jdGlvbiAoZGVsdGEpIHsKICAgICAgICB2YXIgZG9jTGVuZ3RoID0gdGhpcy4kbGluZXMubGVuZ3RoOwogICAgICAgIGlmIChkZWx0YS5hY3Rpb24gPT0gInJlbW92ZSIgJiYgZGVsdGEuc3RhcnQucm93IDwgZG9jTGVuZ3RoICYmIGRlbHRhLmVuZC5yb3cgPCBkb2NMZW5ndGgKICAgICAgICAgICAgfHwgZGVsdGEuYWN0aW9uID09ICJpbnNlcnQiICYmIGRlbHRhLnN0YXJ0LnJvdyA8PSBkb2NMZW5ndGgpIHsKICAgICAgICAgICAgdGhpcy5hcHBseURlbHRhKGRlbHRhKTsKICAgICAgICB9CiAgICB9OwogICAgRG9jdW1lbnQucHJvdG90eXBlLiRzcGxpdEFuZGFwcGx5TGFyZ2VEZWx0YSA9IGZ1bmN0aW9uIChkZWx0YSwgTUFYKSB7CiAgICAgICAgdmFyIGxpbmVzID0gZGVsdGEubGluZXM7CiAgICAgICAgdmFyIGwgPSBsaW5lcy5sZW5ndGggLSBNQVggKyAxOwogICAgICAgIHZhciByb3cgPSBkZWx0YS5zdGFydC5yb3c7CiAgICAgICAgdmFyIGNvbHVtbiA9IGRlbHRhLnN0YXJ0LmNvbHVtbjsKICAgICAgICBmb3IgKHZhciBmcm9tID0gMCwgdG8gPSAwOyBmcm9tIDwgbDsgZnJvbSA9IHRvKSB7CiAgICAgICAgICAgIHRvICs9IE1BWCAtIDE7CiAgICAgICAgICAgIHZhciBjaHVuayA9IGxpbmVzLnNsaWNlKGZyb20sIHRvKTsKICAgICAgICAgICAgY2h1bmsucHVzaCgiIik7CiAgICAgICAgICAgIHRoaXMuYXBwbHlEZWx0YSh7CiAgICAgICAgICAgICAgICBzdGFydDogdGhpcy5wb3Mocm93ICsgZnJvbSwgY29sdW1uKSwKICAgICAgICAgICAgICAgIGVuZDogdGhpcy5wb3Mocm93ICsgdG8sIGNvbHVtbiA9IDApLAogICAgICAgICAgICAgICAgYWN0aW9uOiBkZWx0YS5hY3Rpb24sCiAgICAgICAgICAgICAgICBsaW5lczogY2h1bmsKICAgICAgICAgICAgfSwgdHJ1ZSk7CiAgICAgICAgfQogICAgICAgIGRlbHRhLmxpbmVzID0gbGluZXMuc2xpY2UoZnJvbSk7CiAgICAgICAgZGVsdGEuc3RhcnQucm93ID0gcm93ICsgZnJvbTsKICAgICAgICBkZWx0YS5zdGFydC5jb2x1bW4gPSBjb2x1bW47CiAgICAgICAgdGhpcy5hcHBseURlbHRhKGRlbHRhLCB0cnVlKTsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUucmV2ZXJ0RGVsdGEgPSBmdW5jdGlvbiAoZGVsdGEpIHsKICAgICAgICB0aGlzLiRzYWZlQXBwbHlEZWx0YSh7CiAgICAgICAgICAgIHN0YXJ0OiB0aGlzLmNsb25lUG9zKGRlbHRhLnN0YXJ0KSwKICAgICAgICAgICAgZW5kOiB0aGlzLmNsb25lUG9zKGRlbHRhLmVuZCksCiAgICAgICAgICAgIGFjdGlvbjogKGRlbHRhLmFjdGlvbiA9PSAiaW5zZXJ0IiA/ICJyZW1vdmUiIDogImluc2VydCIpLAogICAgICAgICAgICBsaW5lczogZGVsdGEubGluZXMuc2xpY2UoKQogICAgICAgIH0pOwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5pbmRleFRvUG9zaXRpb24gPSBmdW5jdGlvbiAoaW5kZXgsIHN0YXJ0Um93KSB7CiAgICAgICAgdmFyIGxpbmVzID0gdGhpcy4kbGluZXMgfHwgdGhpcy5nZXRBbGxMaW5lcygpOwogICAgICAgIHZhciBuZXdsaW5lTGVuZ3RoID0gdGhpcy5nZXROZXdMaW5lQ2hhcmFjdGVyKCkubGVuZ3RoOwogICAgICAgIGZvciAodmFyIGkgPSBzdGFydFJvdyB8fCAwLCBsID0gbGluZXMubGVuZ3RoOyBpIDwgbDsgaSsrKSB7CiAgICAgICAgICAgIGluZGV4IC09IGxpbmVzW2ldLmxlbmd0aCArIG5ld2xpbmVMZW5ndGg7CiAgICAgICAgICAgIGlmIChpbmRleCA8IDApCiAgICAgICAgICAgICAgICByZXR1cm4geyByb3c6IGksIGNvbHVtbjogaW5kZXggKyBsaW5lc1tpXS5sZW5ndGggKyBuZXdsaW5lTGVuZ3RoIH07CiAgICAgICAgfQogICAgICAgIHJldHVybiB7IHJvdzogbCAtIDEsIGNvbHVtbjogaW5kZXggKyBsaW5lc1tsIC0gMV0ubGVuZ3RoICsgbmV3bGluZUxlbmd0aCB9OwogICAgfTsKICAgIERvY3VtZW50LnByb3RvdHlwZS5wb3NpdGlvblRvSW5kZXggPSBmdW5jdGlvbiAocG9zLCBzdGFydFJvdykgewogICAgICAgIHZhciBsaW5lcyA9IHRoaXMuJGxpbmVzIHx8IHRoaXMuZ2V0QWxsTGluZXMoKTsKICAgICAgICB2YXIgbmV3bGluZUxlbmd0aCA9IHRoaXMuZ2V0TmV3TGluZUNoYXJhY3RlcigpLmxlbmd0aDsKICAgICAgICB2YXIgaW5kZXggPSAwOwogICAgICAgIHZhciByb3cgPSBNYXRoLm1pbihwb3Mucm93LCBsaW5lcy5sZW5ndGgpOwogICAgICAgIGZvciAodmFyIGkgPSBzdGFydFJvdyB8fCAwOyBpIDwgcm93OyArK2kpCiAgICAgICAgICAgIGluZGV4ICs9IGxpbmVzW2ldLmxlbmd0aCArIG5ld2xpbmVMZW5ndGg7CiAgICAgICAgcmV0dXJuIGluZGV4ICsgcG9zLmNvbHVtbjsKICAgIH07CiAgICBEb2N1bWVudC5wcm90b3R5cGUuJHNwbGl0ID0gZnVuY3Rpb24gKHRleHQpIHsKICAgICAgICByZXR1cm4gdGV4dC5zcGxpdCgvXHJcbnxccnxcbi8pOwogICAgfTsKICAgIHJldHVybiBEb2N1bWVudDsKfSgpKTsKRG9jdW1lbnQucHJvdG90eXBlLiRhdXRvTmV3TGluZSA9ICIiOwpEb2N1bWVudC5wcm90b3R5cGUuJG5ld0xpbmVNb2RlID0gImF1dG8iOwpvb3AuaW1wbGVtZW50KERvY3VtZW50LnByb3RvdHlwZSwgRXZlbnRFbWl0dGVyKTsKZXhwb3J0cy5Eb2N1bWVudCA9IERvY3VtZW50OwoKfSk7CgphY2UuZGVmaW5lKCJhY2UvbGliL2RlZXBfY29weSIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSl7ZXhwb3J0cy5kZWVwQ29weSA9IGZ1bmN0aW9uIGRlZXBDb3B5KG9iaikgewogICAgaWYgKHR5cGVvZiBvYmogIT09ICJvYmplY3QiIHx8ICFvYmopCiAgICAgICAgcmV0dXJuIG9iajsKICAgIHZhciBjb3B5OwogICAgaWYgKEFycmF5LmlzQXJyYXkob2JqKSkgewogICAgICAgIGNvcHkgPSBbXTsKICAgICAgICBmb3IgKHZhciBrZXkgPSAwOyBrZXkgPCBvYmoubGVuZ3RoOyBrZXkrKykgewogICAgICAgICAgICBjb3B5W2tleV0gPSBkZWVwQ29weShvYmpba2V5XSk7CiAgICAgICAgfQogICAgICAgIHJldHVybiBjb3B5OwogICAgfQogICAgaWYgKE9iamVjdC5wcm90b3R5cGUudG9TdHJpbmcuY2FsbChvYmopICE9PSAiW29iamVjdCBPYmplY3RdIikKICAgICAgICByZXR1cm4gb2JqOwogICAgY29weSA9IHt9OwogICAgZm9yICh2YXIga2V5IGluIG9iaikKICAgICAgICBjb3B5W2tleV0gPSBkZWVwQ29weShvYmpba2V5XSk7CiAgICByZXR1cm4gY29weTsKfTsKCn0pOwoKYWNlLmRlZmluZSgiYWNlL2xpYi9sYW5nIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKXsidXNlIHN0cmljdCI7CmV4cG9ydHMubGFzdCA9IGZ1bmN0aW9uIChhKSB7CiAgICByZXR1cm4gYVthLmxlbmd0aCAtIDFdOwp9OwpleHBvcnRzLnN0cmluZ1JldmVyc2UgPSBmdW5jdGlvbiAoc3RyaW5nKSB7CiAgICByZXR1cm4gc3RyaW5nLnNwbGl0KCIiKS5yZXZlcnNlKCkuam9pbigiIik7Cn07CmV4cG9ydHMuc3RyaW5nUmVwZWF0ID0gZnVuY3Rpb24gKHN0cmluZywgY291bnQpIHsKICAgIHZhciByZXN1bHQgPSAnJzsKICAgIHdoaWxlIChjb3VudCA+IDApIHsKICAgICAgICBpZiAoY291bnQgJiAxKQogICAgICAgICAgICByZXN1bHQgKz0gc3RyaW5nOwogICAgICAgIGlmIChjb3VudCA+Pj0gMSkKICAgICAgICAgICAgc3RyaW5nICs9IHN0cmluZzsKICAgIH0KICAgIHJldHVybiByZXN1bHQ7Cn07CnZhciB0cmltQmVnaW5SZWdleHAgPSAvXlxzXHMqLzsKdmFyIHRyaW1FbmRSZWdleHAgPSAvXHNccyokLzsKZXhwb3J0cy5zdHJpbmdUcmltTGVmdCA9IGZ1bmN0aW9uIChzdHJpbmcpIHsKICAgIHJldHVybiBzdHJpbmcucmVwbGFjZSh0cmltQmVnaW5SZWdleHAsICcnKTsKfTsKZXhwb3J0cy5zdHJpbmdUcmltUmlnaHQgPSBmdW5jdGlvbiAoc3RyaW5nKSB7CiAgICByZXR1cm4gc3RyaW5nLnJlcGxhY2UodHJpbUVuZFJlZ2V4cCwgJycpOwp9OwpleHBvcnRzLmNvcHlPYmplY3QgPSBmdW5jdGlvbiAob2JqKSB7CiAgICB2YXIgY29weSA9IHt9OwogICAgZm9yICh2YXIga2V5IGluIG9iaikgewogICAgICAgIGNvcHlba2V5XSA9IG9ialtrZXldOwogICAgfQogICAgcmV0dXJuIGNvcHk7Cn07CmV4cG9ydHMuY29weUFycmF5ID0gZnVuY3Rpb24gKGFycmF5KSB7CiAgICB2YXIgY29weSA9IFtdOwogICAgZm9yICh2YXIgaSA9IDAsIGwgPSBhcnJheS5sZW5ndGg7IGkgPCBsOyBpKyspIHsKICAgICAgICBpZiAoYXJyYXlbaV0gJiYgdHlwZW9mIGFycmF5W2ldID09ICJvYmplY3QiKQogICAgICAgICAgICBjb3B5W2ldID0gdGhpcy5jb3B5T2JqZWN0KGFycmF5W2ldKTsKICAgICAgICBlbHNlCiAgICAgICAgICAgIGNvcHlbaV0gPSBhcnJheVtpXTsKICAgIH0KICAgIHJldHVybiBjb3B5Owp9OwpleHBvcnRzLmRlZXBDb3B5ID0gcmVxdWlyZSgiLi9kZWVwX2NvcHkiKS5kZWVwQ29weTsKZXhwb3J0cy5hcnJheVRvTWFwID0gZnVuY3Rpb24gKGFycikgewogICAgdmFyIG1hcCA9IHt9OwogICAgZm9yICh2YXIgaSA9IDA7IGkgPCBhcnIubGVuZ3RoOyBpKyspIHsKICAgICAgICBtYXBbYXJyW2ldXSA9IDE7CiAgICB9CiAgICByZXR1cm4gbWFwOwp9OwpleHBvcnRzLmNyZWF0ZU1hcCA9IGZ1bmN0aW9uIChwcm9wcykgewogICAgdmFyIG1hcCA9IE9iamVjdC5jcmVhdGUobnVsbCk7CiAgICBmb3IgKHZhciBpIGluIHByb3BzKSB7CiAgICAgICAgbWFwW2ldID0gcHJvcHNbaV07CiAgICB9CiAgICByZXR1cm4gbWFwOwp9OwpleHBvcnRzLmFycmF5UmVtb3ZlID0gZnVuY3Rpb24gKGFycmF5LCB2YWx1ZSkgewogICAgZm9yICh2YXIgaSA9IDA7IGkgPD0gYXJyYXkubGVuZ3RoOyBpKyspIHsKICAgICAgICBpZiAodmFsdWUgPT09IGFycmF5W2ldKSB7CiAgICAgICAgICAgIGFycmF5LnNwbGljZShpLCAxKTsKICAgICAgICB9CiAgICB9Cn07CmV4cG9ydHMuZXNjYXBlUmVnRXhwID0gZnVuY3Rpb24gKHN0cikgewogICAgcmV0dXJuIHN0ci5yZXBsYWNlKC8oWy4qKz9eJHt9KCl8W1xdXC9cXF0pL2csICdcXCQxJyk7Cn07CmV4cG9ydHMuZXNjYXBlSFRNTCA9IGZ1bmN0aW9uIChzdHIpIHsKICAgIHJldHVybiAoIiIgKyBzdHIpLnJlcGxhY2UoLyYvZywgIiYjMzg7IikucmVwbGFjZSgvIi9nLCAiJiMzNDsiKS5yZXBsYWNlKC8nL2csICImIzM5OyIpLnJlcGxhY2UoLzwvZywgIiYjNjA7Iik7Cn07CmV4cG9ydHMuZ2V0TWF0Y2hPZmZzZXRzID0gZnVuY3Rpb24gKHN0cmluZywgcmVnRXhwKSB7CiAgICB2YXIgbWF0Y2hlcyA9IFtdOwogICAgc3RyaW5nLnJlcGxhY2UocmVnRXhwLCBmdW5jdGlvbiAoc3RyKSB7CiAgICAgICAgbWF0Y2hlcy5wdXNoKHsKICAgICAgICAgICAgb2Zmc2V0OiBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDJdLAogICAgICAgICAgICBsZW5ndGg6IHN0ci5sZW5ndGgKICAgICAgICB9KTsKICAgIH0pOwogICAgcmV0dXJuIG1hdGNoZXM7Cn07CmV4cG9ydHMuZGVmZXJyZWRDYWxsID0gZnVuY3Rpb24gKGZjbikgewogICAgdmFyIHRpbWVyID0gbnVsbDsKICAgIHZhciBjYWxsYmFjayA9IGZ1bmN0aW9uICgpIHsKICAgICAgICB0aW1lciA9IG51bGw7CiAgICAgICAgZmNuKCk7CiAgICB9OwogICAgdmFyIGRlZmVycmVkID0gZnVuY3Rpb24gKHRpbWVvdXQpIHsKICAgICAgICBkZWZlcnJlZC5jYW5jZWwoKTsKICAgICAgICB0aW1lciA9IHNldFRpbWVvdXQoY2FsbGJhY2ssIHRpbWVvdXQgfHwgMCk7CiAgICAgICAgcmV0dXJuIGRlZmVycmVkOwogICAgfTsKICAgIGRlZmVycmVkLnNjaGVkdWxlID0gZGVmZXJyZWQ7CiAgICBkZWZlcnJlZC5jYWxsID0gZnVuY3Rpb24gKCkgewogICAgICAgIHRoaXMuY2FuY2VsKCk7CiAgICAgICAgZmNuKCk7CiAgICAgICAgcmV0dXJuIGRlZmVycmVkOwogICAgfTsKICAgIGRlZmVycmVkLmNhbmNlbCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICBjbGVhclRpbWVvdXQodGltZXIpOwogICAgICAgIHRpbWVyID0gbnVsbDsKICAgICAgICByZXR1cm4gZGVmZXJyZWQ7CiAgICB9OwogICAgZGVmZXJyZWQuaXNQZW5kaW5nID0gZnVuY3Rpb24gKCkgewogICAgICAgIHJldHVybiB0aW1lcjsKICAgIH07CiAgICByZXR1cm4gZGVmZXJyZWQ7Cn07CmV4cG9ydHMuZGVsYXllZENhbGwgPSBmdW5jdGlvbiAoZmNuLCBkZWZhdWx0VGltZW91dCkgewogICAgdmFyIHRpbWVyID0gbnVsbDsKICAgIHZhciBjYWxsYmFjayA9IGZ1bmN0aW9uICgpIHsKICAgICAgICB0aW1lciA9IG51bGw7CiAgICAgICAgZmNuKCk7CiAgICB9OwogICAgdmFyIF9zZWxmID0gZnVuY3Rpb24gKHRpbWVvdXQpIHsKICAgICAgICBpZiAodGltZXIgPT0gbnVsbCkKICAgICAgICAgICAgdGltZXIgPSBzZXRUaW1lb3V0KGNhbGxiYWNrLCB0aW1lb3V0IHx8IGRlZmF1bHRUaW1lb3V0KTsKICAgIH07CiAgICBfc2VsZi5kZWxheSA9IGZ1bmN0aW9uICh0aW1lb3V0KSB7CiAgICAgICAgdGltZXIgJiYgY2xlYXJUaW1lb3V0KHRpbWVyKTsKICAgICAgICB0aW1lciA9IHNldFRpbWVvdXQoY2FsbGJhY2ssIHRpbWVvdXQgfHwgZGVmYXVsdFRpbWVvdXQpOwogICAgfTsKICAgIF9zZWxmLnNjaGVkdWxlID0gX3NlbGY7CiAgICBfc2VsZi5jYWxsID0gZnVuY3Rpb24gKCkgewogICAgICAgIHRoaXMuY2FuY2VsKCk7CiAgICAgICAgZmNuKCk7CiAgICB9OwogICAgX3NlbGYuY2FuY2VsID0gZnVuY3Rpb24gKCkgewogICAgICAgIHRpbWVyICYmIGNsZWFyVGltZW91dCh0aW1lcik7CiAgICAgICAgdGltZXIgPSBudWxsOwogICAgfTsKICAgIF9zZWxmLmlzUGVuZGluZyA9IGZ1bmN0aW9uICgpIHsKICAgICAgICByZXR1cm4gdGltZXI7CiAgICB9OwogICAgcmV0dXJuIF9zZWxmOwp9OwpleHBvcnRzLnN1cHBvcnRzTG9va2JlaGluZCA9IGZ1bmN0aW9uICgpIHsKICAgIHRyeSB7CiAgICAgICAgbmV3IFJlZ0V4cCgnKD88PS4pJyk7CiAgICB9CiAgICBjYXRjaCAoZSkgewogICAgICAgIHJldHVybiBmYWxzZTsKICAgIH0KICAgIHJldHVybiB0cnVlOwp9OwpleHBvcnRzLnN1cHBvcnRzVW5pY29kZUZsYWcgPSBmdW5jdGlvbiAoKSB7CiAgICB0cnkgewogICAgICAgIG5ldyBSZWdFeHAoJ14uJCcsICd1Jyk7CiAgICB9CiAgICBjYXRjaCAoZXJyb3IpIHsKICAgICAgICByZXR1cm4gZmFsc2U7CiAgICB9CiAgICByZXR1cm4gdHJ1ZTsKfTsKCn0pOwoKYWNlLmRlZmluZSgiYWNlL3dvcmtlci9taXJyb3IiLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpIHsKInVzZSBzdHJpY3QiOwoKdmFyIERvY3VtZW50ID0gcmVxdWlyZSgiLi4vZG9jdW1lbnQiKS5Eb2N1bWVudDsKdmFyIGxhbmcgPSByZXF1aXJlKCIuLi9saWIvbGFuZyIpOwogICAgCnZhciBNaXJyb3IgPSBleHBvcnRzLk1pcnJvciA9IGZ1bmN0aW9uKHNlbmRlcikgewogICAgdGhpcy5zZW5kZXIgPSBzZW5kZXI7CiAgICB2YXIgZG9jID0gdGhpcy5kb2MgPSBuZXcgRG9jdW1lbnQoIiIpOwogICAgCiAgICB2YXIgZGVmZXJyZWRVcGRhdGUgPSB0aGlzLmRlZmVycmVkVXBkYXRlID0gbGFuZy5kZWxheWVkQ2FsbCh0aGlzLm9uVXBkYXRlLmJpbmQodGhpcykpOwogICAgCiAgICB2YXIgX3NlbGYgPSB0aGlzOwogICAgc2VuZGVyLm9uKCJjaGFuZ2UiLCBmdW5jdGlvbihlKSB7CiAgICAgICAgdmFyIGRhdGEgPSBlLmRhdGE7CiAgICAgICAgaWYgKGRhdGFbMF0uc3RhcnQpIHsKICAgICAgICAgICAgZG9jLmFwcGx5RGVsdGFzKGRhdGEpOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZGF0YS5sZW5ndGg7IGkgKz0gMikgewogICAgICAgICAgICAgICAgdmFyIGQsIGVycjsgCiAgICAgICAgICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShkYXRhW2krMV0pKSB7CiAgICAgICAgICAgICAgICAgICAgZCA9IHthY3Rpb246ICJpbnNlcnQiLCBzdGFydDogZGF0YVtpXSwgbGluZXM6IGRhdGFbaSsxXX07CiAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgIGQgPSB7YWN0aW9uOiAicmVtb3ZlIiwgc3RhcnQ6IGRhdGFbaV0sIGVuZDogZGF0YVtpKzFdfTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgaWYgKChkLmFjdGlvbiA9PSAiaW5zZXJ0IiA/IGQuc3RhcnQgOiBkLmVuZCkucm93ID49IGRvYy4kbGluZXMubGVuZ3RoKSB7CiAgICAgICAgICAgICAgICAgICAgZXJyID0gbmV3IEVycm9yKCJJbnZhbGlkIGRlbHRhIik7CiAgICAgICAgICAgICAgICAgICAgZXJyLmRhdGEgPSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHBhdGg6IF9zZWxmLiRwYXRoLAogICAgICAgICAgICAgICAgICAgICAgICBsaW5lc0xlbmd0aDogZG9jLiRsaW5lcy5sZW5ndGgsCiAgICAgICAgICAgICAgICAgICAgICAgIHN0YXJ0OiBkLnN0YXJ0LAogICAgICAgICAgICAgICAgICAgICAgICBlbmQ6IGQuZW5kCiAgICAgICAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgICAgICAgICB0aHJvdyBlcnI7CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICAgICAgZG9jLmFwcGx5RGVsdGEoZCwgdHJ1ZSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgaWYgKF9zZWxmLiR0aW1lb3V0KQogICAgICAgICAgICByZXR1cm4gZGVmZXJyZWRVcGRhdGUuc2NoZWR1bGUoX3NlbGYuJHRpbWVvdXQpOwogICAgICAgIF9zZWxmLm9uVXBkYXRlKCk7CiAgICB9KTsKfTsKCihmdW5jdGlvbigpIHsKICAgIAogICAgdGhpcy4kdGltZW91dCA9IDUwMDsKICAgIAogICAgdGhpcy5zZXRUaW1lb3V0ID0gZnVuY3Rpb24odGltZW91dCkgewogICAgICAgIHRoaXMuJHRpbWVvdXQgPSB0aW1lb3V0OwogICAgfTsKICAgIAogICAgdGhpcy5zZXRWYWx1ZSA9IGZ1bmN0aW9uKHZhbHVlKSB7CiAgICAgICAgdGhpcy5kb2Muc2V0VmFsdWUodmFsdWUpOwogICAgICAgIHRoaXMuZGVmZXJyZWRVcGRhdGUuc2NoZWR1bGUodGhpcy4kdGltZW91dCk7CiAgICB9OwogICAgCiAgICB0aGlzLmdldFZhbHVlID0gZnVuY3Rpb24oY2FsbGJhY2tJZCkgewogICAgICAgIHRoaXMuc2VuZGVyLmNhbGxiYWNrKHRoaXMuZG9jLmdldFZhbHVlKCksIGNhbGxiYWNrSWQpOwogICAgfTsKICAgIAogICAgdGhpcy5vblVwZGF0ZSA9IGZ1bmN0aW9uKCkgewogICAgfTsKICAgIAogICAgdGhpcy5pc1BlbmRpbmcgPSBmdW5jdGlvbigpIHsKICAgICAgICByZXR1cm4gdGhpcy5kZWZlcnJlZFVwZGF0ZS5pc1BlbmRpbmcoKTsKICAgIH07CiAgICAKfSkuY2FsbChNaXJyb3IucHJvdG90eXBlKTsKCn0pOwoKYWNlLmRlZmluZSgiYWNlL21vZGUvanNvbi9qc29uX3BhcnNlIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKSB7CiJ1c2Ugc3RyaWN0IjsKCiAgICB2YXIgYXQsICAgICAvLyBUaGUgaW5kZXggb2YgdGhlIGN1cnJlbnQgY2hhcmFjdGVyCiAgICAgICAgY2gsICAgICAvLyBUaGUgY3VycmVudCBjaGFyYWN0ZXIKICAgICAgICBlc2NhcGVlID0gewogICAgICAgICAgICAnIic6ICAnIicsCiAgICAgICAgICAgICdcXCc6ICdcXCcsCiAgICAgICAgICAgICcvJzogICcvJywKICAgICAgICAgICAgYjogICAgJ1xiJywKICAgICAgICAgICAgZjogICAgJ1xmJywKICAgICAgICAgICAgbjogICAgJ1xuJywKICAgICAgICAgICAgcjogICAgJ1xyJywKICAgICAgICAgICAgdDogICAgJ1x0JwogICAgICAgIH0sCiAgICAgICAgdGV4dCwKCiAgICAgICAgZXJyb3IgPSBmdW5jdGlvbiAobSkgewoKICAgICAgICAgICAgdGhyb3cgewogICAgICAgICAgICAgICAgbmFtZTogICAgJ1N5bnRheEVycm9yJywKICAgICAgICAgICAgICAgIG1lc3NhZ2U6IG0sCiAgICAgICAgICAgICAgICBhdDogICAgICBhdCwKICAgICAgICAgICAgICAgIHRleHQ6ICAgIHRleHQKICAgICAgICAgICAgfTsKICAgICAgICB9LAoKICAgICAgICBuZXh0ID0gZnVuY3Rpb24gKGMpIHsKCiAgICAgICAgICAgIGlmIChjICYmIGMgIT09IGNoKSB7CiAgICAgICAgICAgICAgICBlcnJvcigiRXhwZWN0ZWQgJyIgKyBjICsgIicgaW5zdGVhZCBvZiAnIiArIGNoICsgIiciKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgY2ggPSB0ZXh0LmNoYXJBdChhdCk7CiAgICAgICAgICAgIGF0ICs9IDE7CiAgICAgICAgICAgIHJldHVybiBjaDsKICAgICAgICB9LAoKICAgICAgICBudW1iZXIgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICB2YXIgbnVtYmVyLAogICAgICAgICAgICAgICAgc3RyaW5nID0gJyc7CgogICAgICAgICAgICBpZiAoY2ggPT09ICctJykgewogICAgICAgICAgICAgICAgc3RyaW5nID0gJy0nOwogICAgICAgICAgICAgICAgbmV4dCgnLScpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHdoaWxlIChjaCA+PSAnMCcgJiYgY2ggPD0gJzknKSB7CiAgICAgICAgICAgICAgICBzdHJpbmcgKz0gY2g7CiAgICAgICAgICAgICAgICBuZXh0KCk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgaWYgKGNoID09PSAnLicpIHsKICAgICAgICAgICAgICAgIHN0cmluZyArPSAnLic7CiAgICAgICAgICAgICAgICB3aGlsZSAobmV4dCgpICYmIGNoID49ICcwJyAmJiBjaCA8PSAnOScpIHsKICAgICAgICAgICAgICAgICAgICBzdHJpbmcgKz0gY2g7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgaWYgKGNoID09PSAnZScgfHwgY2ggPT09ICdFJykgewogICAgICAgICAgICAgICAgc3RyaW5nICs9IGNoOwogICAgICAgICAgICAgICAgbmV4dCgpOwogICAgICAgICAgICAgICAgaWYgKGNoID09PSAnLScgfHwgY2ggPT09ICcrJykgewogICAgICAgICAgICAgICAgICAgIHN0cmluZyArPSBjaDsKICAgICAgICAgICAgICAgICAgICBuZXh0KCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB3aGlsZSAoY2ggPj0gJzAnICYmIGNoIDw9ICc5JykgewogICAgICAgICAgICAgICAgICAgIHN0cmluZyArPSBjaDsKICAgICAgICAgICAgICAgICAgICBuZXh0KCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgbnVtYmVyID0gK3N0cmluZzsKICAgICAgICAgICAgaWYgKGlzTmFOKG51bWJlcikpIHsKICAgICAgICAgICAgICAgIGVycm9yKCJCYWQgbnVtYmVyIik7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICByZXR1cm4gbnVtYmVyOwogICAgICAgICAgICB9CiAgICAgICAgfSwKCiAgICAgICAgc3RyaW5nID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgdmFyIGhleCwKICAgICAgICAgICAgICAgIGksCiAgICAgICAgICAgICAgICBzdHJpbmcgPSAnJywKICAgICAgICAgICAgICAgIHVmZmZmOwoKICAgICAgICAgICAgaWYgKGNoID09PSAnIicpIHsKICAgICAgICAgICAgICAgIHdoaWxlIChuZXh0KCkpIHsKICAgICAgICAgICAgICAgICAgICBpZiAoY2ggPT09ICciJykgewogICAgICAgICAgICAgICAgICAgICAgICBuZXh0KCk7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBzdHJpbmc7CiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmIChjaCA9PT0gJ1xcJykgewogICAgICAgICAgICAgICAgICAgICAgICBuZXh0KCk7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJ3UnKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1ZmZmZiA9IDA7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGkgPSAwOyBpIDwgNDsgaSArPSAxKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGV4ID0gcGFyc2VJbnQobmV4dCgpLCAxNik7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFpc0Zpbml0ZShoZXgpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1ZmZmZiA9IHVmZmZmICogMTYgKyBoZXg7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHJpbmcgKz0gU3RyaW5nLmZyb21DaGFyQ29kZSh1ZmZmZik7CiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAodHlwZW9mIGVzY2FwZWVbY2hdID09PSAnc3RyaW5nJykgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RyaW5nICs9IGVzY2FwZWVbY2hdOwogICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGNoID09ICJcbiIgfHwgY2ggPT0gIlxyIikgewogICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICBzdHJpbmcgKz0gY2g7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIGVycm9yKCJCYWQgc3RyaW5nIik7CiAgICAgICAgfSwKCiAgICAgICAgd2hpdGUgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICB3aGlsZSAoY2ggJiYgY2ggPD0gJyAnKSB7CiAgICAgICAgICAgICAgICBuZXh0KCk7CiAgICAgICAgICAgIH0KICAgICAgICB9LAoKICAgICAgICB3b3JkID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgc3dpdGNoIChjaCkgewogICAgICAgICAgICBjYXNlICd0JzoKICAgICAgICAgICAgICAgIG5leHQoJ3QnKTsKICAgICAgICAgICAgICAgIG5leHQoJ3InKTsKICAgICAgICAgICAgICAgIG5leHQoJ3UnKTsKICAgICAgICAgICAgICAgIG5leHQoJ2UnKTsKICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgICAgICBjYXNlICdmJzoKICAgICAgICAgICAgICAgIG5leHQoJ2YnKTsKICAgICAgICAgICAgICAgIG5leHQoJ2EnKTsKICAgICAgICAgICAgICAgIG5leHQoJ2wnKTsKICAgICAgICAgICAgICAgIG5leHQoJ3MnKTsKICAgICAgICAgICAgICAgIG5leHQoJ2UnKTsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgY2FzZSAnbic6CiAgICAgICAgICAgICAgICBuZXh0KCduJyk7CiAgICAgICAgICAgICAgICBuZXh0KCd1Jyk7CiAgICAgICAgICAgICAgICBuZXh0KCdsJyk7CiAgICAgICAgICAgICAgICBuZXh0KCdsJyk7CiAgICAgICAgICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgICAgICAgfQogICAgICAgICAgICBlcnJvcigiVW5leHBlY3RlZCAnIiArIGNoICsgIiciKTsKICAgICAgICB9LAoKICAgICAgICB2YWx1ZSwgIC8vIFBsYWNlIGhvbGRlciBmb3IgdGhlIHZhbHVlIGZ1bmN0aW9uLgoKICAgICAgICBhcnJheSA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgIHZhciBhcnJheSA9IFtdOwoKICAgICAgICAgICAgaWYgKGNoID09PSAnWycpIHsKICAgICAgICAgICAgICAgIG5leHQoJ1snKTsKICAgICAgICAgICAgICAgIHdoaXRlKCk7CiAgICAgICAgICAgICAgICBpZiAoY2ggPT09ICddJykgewogICAgICAgICAgICAgICAgICAgIG5leHQoJ10nKTsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gYXJyYXk7ICAgLy8gZW1wdHkgYXJyYXkKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIHdoaWxlIChjaCkgewogICAgICAgICAgICAgICAgICAgIGFycmF5LnB1c2godmFsdWUoKSk7CiAgICAgICAgICAgICAgICAgICAgd2hpdGUoKTsKICAgICAgICAgICAgICAgICAgICBpZiAoY2ggPT09ICddJykgewogICAgICAgICAgICAgICAgICAgICAgICBuZXh0KCddJyk7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBhcnJheTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgbmV4dCgnLCcpOwogICAgICAgICAgICAgICAgICAgIHdoaXRlKCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZXJyb3IoIkJhZCBhcnJheSIpOwogICAgICAgIH0sCgogICAgICAgIG9iamVjdCA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgIHZhciBrZXksCiAgICAgICAgICAgICAgICBvYmplY3QgPSB7fTsKCiAgICAgICAgICAgIGlmIChjaCA9PT0gJ3snKSB7CiAgICAgICAgICAgICAgICBuZXh0KCd7Jyk7CiAgICAgICAgICAgICAgICB3aGl0ZSgpOwogICAgICAgICAgICAgICAgaWYgKGNoID09PSAnfScpIHsKICAgICAgICAgICAgICAgICAgICBuZXh0KCd9Jyk7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG9iamVjdDsgICAvLyBlbXB0eSBvYmplY3QKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIHdoaWxlIChjaCkgewogICAgICAgICAgICAgICAgICAgIGtleSA9IHN0cmluZygpOwogICAgICAgICAgICAgICAgICAgIHdoaXRlKCk7CiAgICAgICAgICAgICAgICAgICAgbmV4dCgnOicpOwogICAgICAgICAgICAgICAgICAgIGlmIChPYmplY3QuaGFzT3duUHJvcGVydHkuY2FsbChvYmplY3QsIGtleSkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgZXJyb3IoJ0R1cGxpY2F0ZSBrZXkgIicgKyBrZXkgKyAnIicpOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICBvYmplY3Rba2V5XSA9IHZhbHVlKCk7CiAgICAgICAgICAgICAgICAgICAgd2hpdGUoKTsKICAgICAgICAgICAgICAgICAgICBpZiAoY2ggPT09ICd9JykgewogICAgICAgICAgICAgICAgICAgICAgICBuZXh0KCd9Jyk7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBvYmplY3Q7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIG5leHQoJywnKTsKICAgICAgICAgICAgICAgICAgICB3aGl0ZSgpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIGVycm9yKCJCYWQgb2JqZWN0Iik7CiAgICAgICAgfTsKCiAgICB2YWx1ZSA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgd2hpdGUoKTsKICAgICAgICBzd2l0Y2ggKGNoKSB7CiAgICAgICAgY2FzZSAneyc6CiAgICAgICAgICAgIHJldHVybiBvYmplY3QoKTsKICAgICAgICBjYXNlICdbJzoKICAgICAgICAgICAgcmV0dXJuIGFycmF5KCk7CiAgICAgICAgY2FzZSAnIic6CiAgICAgICAgICAgIHJldHVybiBzdHJpbmcoKTsKICAgICAgICBjYXNlICctJzoKICAgICAgICAgICAgcmV0dXJuIG51bWJlcigpOwogICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgIHJldHVybiBjaCA+PSAnMCcgJiYgY2ggPD0gJzknID8gbnVtYmVyKCkgOiB3b3JkKCk7CiAgICAgICAgfQogICAgfTsKCiAgICByZXR1cm4gZnVuY3Rpb24gKHNvdXJjZSwgcmV2aXZlcikgewogICAgICAgIHZhciByZXN1bHQ7CgogICAgICAgIHRleHQgPSBzb3VyY2U7CiAgICAgICAgYXQgPSAwOwogICAgICAgIGNoID0gJyAnOwogICAgICAgIHJlc3VsdCA9IHZhbHVlKCk7CiAgICAgICAgd2hpdGUoKTsKICAgICAgICBpZiAoY2gpIHsKICAgICAgICAgICAgZXJyb3IoIlN5bnRheCBlcnJvciIpOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHR5cGVvZiByZXZpdmVyID09PSAnZnVuY3Rpb24nID8gZnVuY3Rpb24gd2Fsayhob2xkZXIsIGtleSkgewogICAgICAgICAgICB2YXIgaywgdiwgdmFsdWUgPSBob2xkZXJba2V5XTsKICAgICAgICAgICAgaWYgKHZhbHVlICYmIHR5cGVvZiB2YWx1ZSA9PT0gJ29iamVjdCcpIHsKICAgICAgICAgICAgICAgIGZvciAoayBpbiB2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgIGlmIChPYmplY3QuaGFzT3duUHJvcGVydHkuY2FsbCh2YWx1ZSwgaykpIHsKICAgICAgICAgICAgICAgICAgICAgICAgdiA9IHdhbGsodmFsdWUsIGspOwogICAgICAgICAgICAgICAgICAgICAgICBpZiAodiAhPT0gdW5kZWZpbmVkKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZVtrXSA9IHY7CiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWxldGUgdmFsdWVba107CiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuIHJldml2ZXIuY2FsbChob2xkZXIsIGtleSwgdmFsdWUpOwogICAgICAgIH0oeycnOiByZXN1bHR9LCAnJykgOiByZXN1bHQ7CiAgICB9Owp9KTsKCmFjZS5kZWZpbmUoImFjZS9tb2RlL2pzb25fd29ya2VyIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKSB7CiJ1c2Ugc3RyaWN0IjsKCnZhciBvb3AgPSByZXF1aXJlKCIuLi9saWIvb29wIik7CnZhciBNaXJyb3IgPSByZXF1aXJlKCIuLi93b3JrZXIvbWlycm9yIikuTWlycm9yOwp2YXIgcGFyc2UgPSByZXF1aXJlKCIuL2pzb24vanNvbl9wYXJzZSIpOwoKdmFyIEpzb25Xb3JrZXIgPSBleHBvcnRzLkpzb25Xb3JrZXIgPSBmdW5jdGlvbihzZW5kZXIpIHsKICAgIE1pcnJvci5jYWxsKHRoaXMsIHNlbmRlcik7CiAgICB0aGlzLnNldFRpbWVvdXQoMjAwKTsKfTsKCm9vcC5pbmhlcml0cyhKc29uV29ya2VyLCBNaXJyb3IpOwoKKGZ1bmN0aW9uKCkgewoKICAgIHRoaXMub25VcGRhdGUgPSBmdW5jdGlvbigpIHsKICAgICAgICB2YXIgdmFsdWUgPSB0aGlzLmRvYy5nZXRWYWx1ZSgpOwogICAgICAgIHZhciBlcnJvcnMgPSBbXTsKICAgICAgICB0cnkgewogICAgICAgICAgICBpZiAodmFsdWUpCiAgICAgICAgICAgICAgICBwYXJzZSh2YWx1ZSk7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgcG9zID0gdGhpcy5kb2MuaW5kZXhUb1Bvc2l0aW9uKGUuYXQtMSk7CiAgICAgICAgICAgIGVycm9ycy5wdXNoKHsKICAgICAgICAgICAgICAgIHJvdzogcG9zLnJvdywKICAgICAgICAgICAgICAgIGNvbHVtbjogcG9zLmNvbHVtbiwKICAgICAgICAgICAgICAgIHRleHQ6IGUubWVzc2FnZSwKICAgICAgICAgICAgICAgIHR5cGU6ICJlcnJvciIKICAgICAgICAgICAgfSk7CiAgICAgICAgfQogICAgICAgIHRoaXMuc2VuZGVyLmVtaXQoImFubm90YXRlIiwgZXJyb3JzKTsKICAgIH07Cgp9KS5jYWxsKEpzb25Xb3JrZXIucHJvdG90eXBlKTsKCn0pOwo="},7907:function(o,a,s){s.d(a,{Iu:function(){return b},cC:function(){return g},m0:function(){return f}}),s(4987);var l={en:{array:"Array",auto:"Auto",appendText:"Append",appendTitle:"Append a new field with type 'auto' after this field (Ctrl+Shift+Ins)",appendSubmenuTitle:"Select the type of the field to be appended",appendTitleAuto:"Append a new field with type 'auto' (Ctrl+Shift+Ins)",ascending:"Ascending",ascendingTitle:"Sort the childs of this ${type} in ascending order",actionsMenu:"Click to open the actions menu (Ctrl+M)",cannotParseFieldError:"Cannot parse field into JSON",cannotParseValueError:"Cannot parse value into JSON",collapseAll:"Collapse all fields",compactTitle:"Compact JSON data, remove all whitespaces (Ctrl+Shift+I)",descending:"Descending",descendingTitle:"Sort the childs of this ${type} in descending order",drag:"Drag to move this field (Alt+Shift+Arrows)",duplicateKey:"duplicate key",duplicateText:"Duplicate",duplicateTitle:"Duplicate selected fields (Ctrl+D)",duplicateField:"Duplicate this field (Ctrl+D)",duplicateFieldError:"Duplicate field name",empty:"empty",expandAll:"Expand all fields",expandTitle:`Click to expand/collapse this field (Ctrl+E).
|
|
Ctrl+Click to expand/collapse including all childs.`,formatTitle:"Format JSON data, with proper indentation and line feeds (Ctrl+I)",insert:"Insert",insertTitle:"Insert a new field with type 'auto' before this field (Ctrl+Ins)",insertSub:"Select the type of the field to be inserted",object:"Object",ok:"Ok",redo:"Redo (Ctrl+Shift+Z)",removeText:"Remove",removeTitle:"Remove selected fields (Ctrl+Del)",removeField:"Remove this field (Ctrl+Del)",repairTitle:"Repair JSON: fix quotes and escape characters, remove comments and JSONP notation, turn JavaScript objects into JSON.",searchTitle:"Search fields and values",searchNextResultTitle:"Next result (Enter)",searchPreviousResultTitle:"Previous result (Shift + Enter)",selectNode:"Select a node...",showAll:"show all",showMore:"show more",showMoreStatus:"displaying ${visibleChilds} of ${totalChilds} items.",sort:"Sort",sortTitle:"Sort the childs of this ${type}",sortTitleShort:"Sort contents",sortFieldLabel:"Field:",sortDirectionLabel:"Direction:",sortFieldTitle:"Select the nested field by which to sort the array or object",sortAscending:"Ascending",sortAscendingTitle:"Sort the selected field in ascending order",sortDescending:"Descending",sortDescendingTitle:"Sort the selected field in descending order",string:"String",transform:"Transform",transformTitle:"Filter, sort, or transform the childs of this ${type}",transformTitleShort:"Filter, sort, or transform contents",extract:"Extract",extractTitle:"Extract this ${type}",transformQueryTitle:"Enter a JMESPath query",transformWizardLabel:"Wizard",transformWizardFilter:"Filter",transformWizardSortBy:"Sort by",transformWizardSelectFields:"Select fields",transformQueryLabel:"Query",transformPreviewLabel:"Preview",type:"Type",typeTitle:"Change the type of this field",openUrl:"Ctrl+Click or Ctrl+Enter to open url in new window",undo:"Undo last action (Ctrl+Z)",validationCannotMove:"Cannot move a field into a child of itself",autoType:'Field type "auto". The field type is automatically determined from the value and can be a string, number, boolean, or null.',objectType:'Field type "object". An object contains an unordered set of key/value pairs.',arrayType:'Field type "array". An array contains an ordered collection of values.',stringType:'Field type "string". Field type is not determined from the value, but always returned as string.',modeEditorTitle:"Switch Editor Mode",modeCodeText:"Code",modeCodeTitle:"Switch to code highlighter",modeFormText:"Form",modeFormTitle:"Switch to form editor",modeTextText:"Text",modeTextTitle:"Switch to plain text editor",modeTreeText:"Tree",modeTreeTitle:"Switch to tree editor",modeViewText:"View",modeViewTitle:"Switch to tree view",modePreviewText:"Preview",modePreviewTitle:"Switch to preview mode",examples:"Examples",default:"Default",containsInvalidProperties:"Contains invalid properties",containsInvalidItems:"Contains invalid items"},es:{array:"Matriz",auto:"Auto",appendText:"Agregar",appendTitle:"Agregue un nuevo campo con el tipo 'auto' después de este campo (Ctrl + Shift + Ins)",appendSubmenuTitle:"Seleccione el tipo de campo que se agregará",appendTitleAuto:"Agregue un nuevo campo con el tipo 'auto' (Ctrl + Shift + Ins)",ascending:"Ascendente",ascendingTitle:"Ordene los elementos secundarios de este ${type} en orden ascendente",actionsMenu:"Haga clic para abrir el menú de acciones (Ctrl + M)",cannotParseFieldError:"No se puede parsear el campo en JSON",cannotParseValueError:"No se puede parsear el valor en JSON",collapseAll:"Contraer todos los campos",compactTitle:"Compactar datos JSON, eliminar todos los espacios en blanco (Ctrl + Shift + I)",descending:"Descendente",descendingTitle:"Ordene los hijos de este ${type} en orden descendente",drag:"Arrastre para mover este campo (Alt + Mayús + Flechas)",duplicateKey:"llave duplicada",duplicateText:"Duplicar",duplicateTitle:"Duplicar campos seleccionados (Ctrl + D)",duplicateField:"Duplicar este campo (Ctrl + D)",duplicateFieldError:"Nombre de campo duplicado",empty:"vacio",expandAll:"Expandir todos los campos",expandTitle:`Haga clic para expandir/contraer este campo (Ctrl + E).
|
|
Ctrl+Clic para expandir/contraer incluyendo todos los niños.`,formatTitle:"Formatee los datos JSON, con la sangría y los avances de línea adecuados (Ctrl + I)",insert:"Insertar",insertTitle:"Inserte un nuevo campo con el tipo 'auto' antes de este campo (Ctrl + Ins)",insertSub:"Seleccione el tipo de campo a insertar",object:"Objeto",ok:"Ok",redo:"Rehacer (Ctrl+Mayús+Z)",removeText:"Eliminar",removeTitle:"Eliminar campos seleccionados (Ctrl+Supr)",removeField:"Eliminar este campo (Ctrl+Supr)",repairTitle:"Reparar JSON: corrija comillas y caracteres de escape, elimine comentarios y notación JSONP, convierta objetos JavaScript en JSON.",searchTitle:"Campos de búsqueda y valores",searchNextResultTitle:"Siguiente resultado (Entrar)",searchPreviousResultTitle:"Resultado anterior (Shift + Enter)",selectNode:"Seleccione un nodo...",showAll:"mostrar todo",showMore:"mostrar más",showMoreStatus:"mostrando ${visibleChilds} de ${totalChilds} elementos.",sort:"Ordenar",sortTitle:"Ordene los hijos de este ${type}",sortTitleShort:"Ordenar contenidos",sortFieldLabel:"Campo:",sortDirectionLabel:"Dirección:",sortFieldTitle:"Seleccione el campo anidado por el cual ordenar la matriz u objeto",sortAscending:"Ascendente",sortAscendingTitle:"Ordenar el campo seleccionado en orden ascendente",sortDescending:"Descendente",sortDescendingTitle:"Ordenar por el campo seleccionado, en orden descendente",string:"Texto",transform:"Transformar",transformTitle:"Filtrar, ordenar o transformar los hijos de este ${type}",transformTitleShort:"Filtrar, ordenar o transformar contenidos",extract:"Extraer",extractTitle:"Extrae este ${type}",transformQueryTitle:"Ingrese una consulta JMESPath",transformWizardLabel:"Wizard",transformWizardFilter:"Filtro",transformWizardSortBy:"Ordenar por",transformWizardSelectFields:"Seleccione un campo",transformQueryLabel:"Consulta",transformPreviewLabel:"Vista Previa",type:"Tipo",typeTitle:"Cambiar el tipo de campo",openUrl:"Ctrl+Click o Ctrl+Enter para abrir la URL en una nueva ventana",undo:"Deshacer la última acción (Ctrl+Z)",validationCannotMove:"No se puede mover un campo a un hijo de sí mismo.",autoType:'Field type "auto". The field type is automatically determined from the value and can be a string, number, boolean, or null.',objectType:'Tipo de campo "objeto". Un objeto contiene un conjunto desordenado de pares clave/valor.',arrayType:'Tipo de campo "matriz". Una matriz contiene una colección ordenada de valores.',stringType:'Tipo de campo "cadena". El tipo de campo no se determina a partir del valor, pero siempre se devuelve como una cadena.',modeEditorTitle:"Cambiar modo de editor",modeCodeText:"Codigo",modeCodeTitle:"Cambiar al resaltador de código",modeFormText:"Formulario",modeFormTitle:"Cambiar al editor de formularios",modeTextText:"Texto",modeTextTitle:"Cambiar al editor de texto sin formato",modeTreeText:"Arbol",modeTreeTitle:"Cambiar al editor de árbol",modeViewText:"Vista",modeViewTitle:"Cambiar a la vista de árbol",modePreviewText:"Vista Previa",modePreviewTitle:"Cambiar al modo de vista previa",examples:"Ejemplos",default:"Predeterminado",containsInvalidProperties:"Contiene propiedades no validas",containsInvalidItems:"Contiene items no validos"},"zh-CN":{array:"数组",auto:"自动",appendText:"追加",appendTitle:"在此字段后追加一个类型为“auto”的新字段 (Ctrl+Shift+Ins)",appendSubmenuTitle:"选择要追加的字段类型",appendTitleAuto:"追加类型为“auto”的新字段 (Ctrl+Shift+Ins)",ascending:"升序",ascendingTitle:"升序排列${type}的子节点",actionsMenu:"点击打开动作菜单(Ctrl+M)",cannotParseFieldError:"无法将字段解析为JSON",cannotParseValueError:"无法将值解析为JSON",collapseAll:"缩进所有字段",compactTitle:"压缩JSON数据,删除所有空格 (Ctrl+Shift+I)",descending:"降序",descendingTitle:"降序排列${type}的子节点",drag:"拖拽移动该节点(Alt+Shift+Arrows)",duplicateKey:"重复键",duplicateText:"复制",duplicateTitle:"复制选中字段(Ctrl+D)",duplicateField:"复制该字段(Ctrl+D)",duplicateFieldError:"重复的字段名称",empty:"清空",expandAll:"展开所有字段",expandTitle:`点击 展开/收缩 该字段(Ctrl+E).
|
|
Ctrl+Click 展开/收缩 包含所有子节点.`,formatTitle:"使用适当的缩进和换行符格式化JSON数据 (Ctrl+I)",insert:"插入",insertTitle:"在此字段前插入类型为“auto”的新字段 (Ctrl+Ins)",insertSub:"选择要插入的字段类型",object:"对象",ok:"Ok",redo:"重做 (Ctrl+Shift+Z)",removeText:"移除",removeTitle:"移除选中字段 (Ctrl+Del)",removeField:"移除该字段 (Ctrl+Del)",repairTitle:"修复JSON:修复引号和转义符,删除注释和JSONP表示法,将JavaScript对象转换为JSON。",selectNode:"选择一个节点...",showAll:"展示全部",showMore:"展示更多",showMoreStatus:"显示${totalChilds}的${visibleChilds}项目.",sort:"排序",sortTitle:"排序${type}的子节点",sortTitleShort:"内容排序",sortFieldLabel:"字段:",sortDirectionLabel:"方向:",sortFieldTitle:"选择用于对数组或对象排序的嵌套字段",sortAscending:"升序排序",sortAscendingTitle:"按照该字段升序排序",sortDescending:"降序排序",sortDescendingTitle:"按照该字段降序排序",string:"字符串",transform:"变换",transformTitle:"筛选,排序,或者转换${type}的子节点",transformTitleShort:"筛选,排序,或者转换内容",extract:"提取",extractTitle:"提取这个 ${type}",transformQueryTitle:"输入JMESPath查询",transformWizardLabel:"向导",transformWizardFilter:"筛选",transformWizardSortBy:"排序",transformWizardSelectFields:"选择字段",transformQueryLabel:"查询",transformPreviewLabel:"预览",type:"类型",typeTitle:"更改字段类型",openUrl:"Ctrl+Click 或者 Ctrl+Enter 在新窗口打开链接",undo:"撤销上次动作 (Ctrl+Z)",validationCannotMove:"无法将字段移入其子节点",autoType:'字段类型 "auto". 字段类型由值自动确定 可以为 string,number,boolean,或者 null.',objectType:'字段类型 "object". 对象包含一组无序的键/值对.',arrayType:'字段类型 "array". 数组包含值的有序集合.',stringType:'字段类型 "string". 字段类型由值自动确定,但始终作为字符串返回.',modeCodeText:"代码",modeCodeTitle:"切换至代码高亮",modeFormText:"表单",modeFormTitle:"切换至表单编辑",modeTextText:"文本",modeTextTitle:"切换至文本编辑",modeTreeText:"树",modeTreeTitle:"切换至树编辑",modeViewText:"视图",modeViewTitle:"切换至树视图",modePreviewText:"预览",modePreviewTitle:"切换至预览模式",examples:"例子",default:"缺省",containsInvalidProperties:"包含无效的属性",containsInvalidItems:"包含无效项目"},"pt-BR":{array:"Lista",auto:"Automatico",appendText:"Adicionar",appendTitle:"Adicionar novo campo com tipo 'auto' depois deste campo (Ctrl+Shift+Ins)",appendSubmenuTitle:"Selecione o tipo do campo a ser adicionado",appendTitleAuto:"Adicionar novo campo com tipo 'auto' (Ctrl+Shift+Ins)",ascending:"Ascendente",ascendingTitle:"Organizar filhor do tipo ${type} em crescente",actionsMenu:"Clique para abrir o menu de ações (Ctrl+M)",cannotParseFieldError:"Não é possível analisar o campo no JSON",cannotParseValueError:"Não é possível analisar o valor em JSON",collapseAll:"Fechar todos campos",compactTitle:"Dados JSON compactos, remova todos os espaços em branco (Ctrl+Shift+I)",descending:"Descendente",descendingTitle:"Organizar o filhos do tipo ${type} em decrescente",duplicateKey:"chave duplicada",drag:"Arraste para mover este campo (Alt+Shift+Arrows)",duplicateText:"Duplicar",duplicateTitle:"Duplicar campos selecionados (Ctrl+D)",duplicateField:"Duplicar este campo (Ctrl+D)",duplicateFieldError:"Nome do campo duplicado",empty:"vazio",expandAll:"Expandir todos campos",expandTitle:`Clique para expandir/encolher este campo (Ctrl+E).
|
|
Ctrl+Click para expandir/encolher incluindo todos os filhos.`,formatTitle:"Formate dados JSON, com recuo e feeds de linha adequados (Ctrl+I)",insert:"Inserir",insertTitle:"Inserir um novo campo do tipo 'auto' antes deste campo (Ctrl+Ins)",insertSub:"Selecionar o tipo de campo a ser inserido",object:"Objeto",ok:"Ok",redo:"Refazer (Ctrl+Shift+Z)",removeText:"Remover",removeTitle:"Remover campos selecionados (Ctrl+Del)",removeField:"Remover este campo (Ctrl+Del)",repairTitle:"Repare JSON: corrija aspas e caracteres de escape, remova comentários e notação JSONP, transforme objetos JavaScript em JSON.",selectNode:"Selecione um nódulo...",showAll:"mostrar todos",showMore:"mostrar mais",showMoreStatus:"exibindo ${visibleChilds} de ${totalChilds} itens.",sort:"Organizar",sortTitle:"Organizar os filhos deste ${type}",sortTitleShort:"Organizar os filhos",sortFieldLabel:"Campo:",sortDirectionLabel:"Direção:",sortFieldTitle:"Selecione um campo filho pelo qual ordenar o array ou objeto",sortAscending:"Ascendente",sortAscendingTitle:"Ordenar o campo selecionado por ordem ascendente",sortDescending:"Descendente",sortDescendingTitle:"Ordenar o campo selecionado por ordem descendente",string:"Texto",transform:"Transformar",transformTitle:"Filtrar, ordenar ou transformar os filhos deste ${type}",transformTitleShort:"Filtrar, ordenar ou transformar conteúdos",transformQueryTitle:"Insira uma expressão JMESPath",transformWizardLabel:"Assistente",transformWizardFilter:"Filtro",transformWizardSortBy:"Ordenar por",transformWizardSelectFields:"Selecionar campos",transformQueryLabel:"Expressão",transformPreviewLabel:"Visualizar",type:"Tipo",typeTitle:"Mudar o tipo deste campo",openUrl:"Ctrl+Click ou Ctrl+Enter para abrir link em nova janela",undo:"Desfazer último ação (Ctrl+Z)",validationCannotMove:"Não pode mover um campo como filho dele mesmo",autoType:'Campo do tipo "auto". O tipo do campo é determinao automaticamente a partir do seu valor e pode ser texto, número, verdade/falso ou nulo.',objectType:'Campo do tipo "objeto". Um objeto contém uma lista de pares com chave e valor.',arrayType:'Campo do tipo "lista". Uma lista contem uma coleção de valores ordenados.',stringType:'Campo do tipo "string". Campo do tipo nao é determinado através do seu valor, mas sempre retornara um texto.',examples:"Exemplos",default:"Revelia",containsInvalidProperties:"Contém propriedades inválidas",containsInvalidItems:"Contém itens inválidos"},tr:{array:"Dizin",auto:"Otomatik",appendText:"Ekle",appendTitle:"Bu alanın altına 'otomatik' tipinde yeni bir alan ekle (Ctrl+Shift+Ins)",appendSubmenuTitle:"Eklenecek alanın tipini seç",appendTitleAuto:"'Otomatik' tipinde yeni bir alan ekle (Ctrl+Shift+Ins)",ascending:"Artan",ascendingTitle:"${type}'ın alt tiplerini artan düzende sırala",actionsMenu:"Aksiyon menüsünü açmak için tıklayın (Ctrl+M)",collapseAll:"Tüm alanları kapat",descending:"Azalan",descendingTitle:"${type}'ın alt tiplerini azalan düzende sırala",drag:"Bu alanı taşımak için sürükleyin (Alt+Shift+Arrows)",duplicateKey:"Var olan anahtar",duplicateText:"Aşağıya kopyala",duplicateTitle:"Seçili alanlardan bir daha oluştur (Ctrl+D)",duplicateField:"Bu alandan bir daha oluştur (Ctrl+D)",duplicateFieldError:"Duplicate field name",cannotParseFieldError:"Alan JSON'a ayrıştırılamıyor",cannotParseValueError:"JSON'a değer ayrıştırılamıyor",empty:"boş",expandAll:"Tüm alanları aç",expandTitle:`Bu alanı açmak/kapatmak için tıkla (Ctrl+E).
|
|
Alt alanlarda dahil tüm alanları açmak için Ctrl+Click `,insert:"Ekle",insertTitle:"Bu alanın üstüne 'otomatik' tipinde yeni bir alan ekle (Ctrl+Ins)",insertSub:"Araya eklenecek alanın tipini seç",object:"Nesne",ok:"Tamam",redo:"Yeniden yap (Ctrl+Shift+Z)",removeText:"Kaldır",removeTitle:"Seçilen alanları kaldır (Ctrl+Del)",removeField:"Bu alanı kaldır (Ctrl+Del)",selectNode:"Bir nesne seç...",showAll:"tümünü göster",showMore:"daha fazla göster",showMoreStatus:"${totalChilds} alanın ${visibleChilds} alt alanları gösteriliyor",sort:"Sırala",sortTitle:"${type}'ın alt alanlarını sırala",sortTitleShort:"İçerikleri sırala",sortFieldLabel:"Alan:",sortDirectionLabel:"Yön:",sortFieldTitle:"Diziyi veya nesneyi sıralamak için iç içe geçmiş alanı seçin",sortAscending:"Artan",sortAscendingTitle:"Seçili alanı artan düzende sırala",sortDescending:"Azalan",sortDescendingTitle:"Seçili alanı azalan düzende sırala",string:"Karakter Dizisi",transform:"Dönüştür",transformTitle:"${type}'ın alt alanlarını filtrele, sırala veya dönüştür",transformTitleShort:"İçerikleri filterele, sırala veya dönüştür",transformQueryTitle:"JMESPath sorgusu gir",transformWizardLabel:"Sihirbaz",transformWizardFilter:"Filtre",transformWizardSortBy:"Sırala",transformWizardSelectFields:"Alanları seç",transformQueryLabel:"Sorgu",transformPreviewLabel:"Önizleme",type:"Tip",typeTitle:"Bu alanın tipini değiştir",openUrl:"URL'i yeni bir pencerede açmak için Ctrl+Click veya Ctrl+Enter",undo:"Son değişikliği geri al (Ctrl+Z)",validationCannotMove:"Alt alan olarak taşınamıyor",autoType:'Alan tipi "otomatik". Alan türü otomatik olarak değerden belirlenirve bir dize, sayı, boolean veya null olabilir.',objectType:'Alan tipi "nesne". Bir nesne, sıralanmamış bir anahtar / değer çifti kümesi içerir.',arrayType:'Alan tipi "dizi". Bir dizi, düzenli değerler koleksiyonu içerir.',stringType:'Alan tipi "karakter dizisi". Alan türü değerden belirlenmez,ancak her zaman karakter dizisi olarak döndürülür.',modeCodeText:"Kod",modeCodeTitle:"Kod vurgulayıcıya geç",modeFormText:"Form",modeFormTitle:"Form düzenleyiciye geç",modeTextText:"Metin",modeTextTitle:"Düz metin düzenleyiciye geç",modeTreeText:"Ağaç",modeTreeTitle:"Ağaç düzenleyiciye geç",modeViewText:"Görünüm",modeViewTitle:"Ağaç görünümüne geç",examples:"Örnekler",default:"Varsayılan",containsInvalidProperties:"Geçersiz özellikler içeriyor",containsInvalidItems:"Geçersiz öğeler içeriyor"},ja:{array:"配列",auto:"オート",appendText:"追加",appendTitle:'次のフィールドに"オート"のフィールドを追加 (Ctrl+Shift+Ins)',appendSubmenuTitle:"追加するフィールドの型を選択してください",appendTitleAuto:'"オート"のフィールドを追加 (Ctrl+Shift+Ins)',ascending:"昇順",ascendingTitle:"${type}の子要素を昇順に並べ替え",actionsMenu:"クリックしてアクションメニューを開く (Ctrl+M)",collapseAll:"すべてを折りたたむ",descending:"降順",descendingTitle:"${type}の子要素を降順に並べ替え",drag:"ドラッグして選択中のフィールドを移動 (Alt+Shift+Arrows)",duplicateKey:"複製キー",duplicateText:"複製",duplicateTitle:"選択中のフィールドを複製 (Ctrl+D)",duplicateField:"選択中のフィールドを複製 (Ctrl+D)",duplicateFieldError:"フィールド名が重複しています",cannotParseFieldError:"JSONのフィールドを解析できません",cannotParseValueError:"JSONの値を解析できません",empty:"空",expandAll:"すべてを展開",expandTitle:`クリックしてフィールドを展開/折りたたむ (Ctrl+E).
|
|
Ctrl+Click ですべての子要素を展開/折りたたむ`,insert:"挿入",insertTitle:"選択中のフィールドの前に新しいフィールドを挿入 (Ctrl+Ins)",insertSub:"挿入するフィールドの型を選択",object:"オブジェクト",ok:"実行",redo:"やり直す (Ctrl+Shift+Z)",removeText:"削除",removeTitle:"選択中のフィールドを削除 (Ctrl+Del)",removeField:"選択中のフィールドを削除 (Ctrl+Del)",selectNode:"ノードを選択...",showAll:"すべてを表示",showMore:"もっと見る",showMoreStatus:"${totalChilds}個のアイテムのうち ${visibleChilds}個を表示しています。",sort:"並べ替え",sortTitle:"${type}の子要素を並べ替え",sortTitleShort:"並べ替え",sortFieldLabel:"フィールド:",sortDirectionLabel:"順序:",sortFieldTitle:"配列またはオブジェクトを並び替えるためのフィールドを選択",sortAscending:"昇順",sortAscendingTitle:"選択中のフィールドを昇順に並び替え",sortDescending:"降順",sortDescendingTitle:"選択中のフィールドを降順に並び替え",string:"文字列",transform:"変換",transformTitle:"${type}の子要素をフィルター・並び替え・変換する",transformTitleShort:"内容をフィルター・並び替え・変換する",extract:"抽出",extractTitle:"${type}を抽出",transformQueryTitle:"JMESPathクエリを入力",transformWizardLabel:"ウィザード",transformWizardFilter:"フィルター",transformWizardSortBy:"並び替え",transformWizardSelectFields:"フィールドを選択",transformQueryLabel:"クエリ",transformPreviewLabel:"プレビュー",type:"型",typeTitle:"選択中のフィールドの型を変更",openUrl:"Ctrl+Click または Ctrl+Enter で 新規ウィンドウでURLを開く",undo:"元に戻す (Ctrl+Z)",validationCannotMove:"子要素に移動できません ",autoType:"オート: フィールドの型は値から自動的に決定されます。 (文字列・数値・ブール・null)",objectType:"オブジェクト: オブジェクトは順序が決まっていないキーと値のペア組み合わせです。",arrayType:"配列: 配列は順序が決まっている値の集合体です。",stringType:"文字列: フィールド型は値から決定されませんが、常に文字列として返されます。",modeCodeText:"コードモード",modeCodeTitle:"ハイライトモードに切り替え",modeFormText:"フォームモード",modeFormTitle:"フォームモードに切り替え",modeTextText:"テキストモード",modeTextTitle:"テキストモードに切り替え",modeTreeText:"ツリーモード",modeTreeTitle:"ツリーモードに切り替え",modeViewText:"ビューモード",modeViewTitle:"ビューモードに切り替え",modePreviewText:"プレビュー",modePreviewTitle:"プレビューに切り替え",examples:"例",default:"デフォルト",containsInvalidProperties:"無効なプロパティが含まれています",containsInvalidItems:"無効なアイテムが含まれています"},"fr-FR":{array:"Liste",auto:"Auto",appendText:"Ajouter",appendTitle:"Ajouter un champ de type 'auto' après ce champ (Ctrl+Shift+Ins)",appendSubmenuTitle:"Sélectionner le type du champ à ajouter",appendTitleAuto:"Ajouter un champ de type 'auto' (Ctrl+Shift+Ins)",ascending:"Ascendant",ascendingTitle:"Trier les enfants de ce ${type} par ordre ascendant",actionsMenu:"Ouvrir le menu des actions (Ctrl+M)",collapseAll:"Regrouper",descending:"Descendant",descendingTitle:"Trier les enfants de ce ${type} par ordre descendant",drag:"Déplacer (Alt+Shift+Arrows)",duplicateKey:"Dupliquer la clé",duplicateText:"Dupliquer",duplicateTitle:"Dupliquer les champs sélectionnés (Ctrl+D)",duplicateField:"Dupliquer ce champ (Ctrl+D)",duplicateFieldError:"Dupliquer le nom de champ",cannotParseFieldError:"Champ impossible à parser en JSON",cannotParseValueError:"Valeur impossible à parser en JSON",empty:"vide",expandAll:"Étendre",expandTitle:`Étendre/regrouper ce champ (Ctrl+E).
|
|
Ctrl+Click pour étendre/regrouper avec tous les champs.`,insert:"Insérer",insertTitle:"Insérer un champ de type 'auto' avant ce champ (Ctrl+Ins)",insertSub:"Sélectionner le type de champ à insérer",object:"Objet",ok:"Ok",redo:"Rejouer (Ctrl+Shift+Z)",removeText:"Supprimer",removeTitle:"Supprimer les champs sélectionnés (Ctrl+Del)",removeField:"Supprimer ce champ (Ctrl+Del)",searchTitle:"Rechercher champs et valeurs",searchNextResultTitle:"Résultat suivant (Enter)",searchPreviousResultTitle:"Résultat précédent (Shift + Enter)",selectNode:"Sélectionner un nœud...",showAll:"voir tout",showMore:"voir plus",showMoreStatus:"${visibleChilds} éléments affichés de ${totalChilds}.",sort:"Trier",sortTitle:"Trier les champs de ce ${type}",sortTitleShort:"Trier",sortFieldLabel:"Champ:",sortDirectionLabel:"Direction:",sortFieldTitle:"Sélectionner les champs permettant de trier les listes et objet",sortAscending:"Ascendant",sortAscendingTitle:"Trier les champs sélectionnés par ordre ascendant",sortDescending:"Descendant",sortDescendingTitle:"Trier les champs sélectionnés par ordre descendant",string:"Chaîne",transform:"Transformer",transformTitle:"Filtrer, trier, or transformer les enfants de ce ${type}",transformTitleShort:"Filtrer, trier ou transformer le contenu",extract:"Extraire",extractTitle:"Extraire ce ${type}",transformQueryTitle:"Saisir une requête JMESPath",transformWizardLabel:"Assistant",transformWizardFilter:"Filtrer",transformWizardSortBy:"Trier par",transformWizardSelectFields:"Sélectionner les champs",transformQueryLabel:"Requête",transformPreviewLabel:"Prévisualisation",type:"Type",typeTitle:"Changer le type de ce champ",openUrl:"Ctrl+Click ou Ctrl+Enter pour ouvrir l'url dans une autre fenêtre",undo:"Annuler la dernière action (Ctrl+Z)",validationCannotMove:"Cannot move a field into a child of itself",autoType:'Champe de type "auto". Ce type de champ est automatiquement déterminé en fonction de la valeur et peut être de type "chaîne", "nombre", "booléen" ou null.',objectType:'Champ de type "objet". Un objet contient un ensemble non ordonné de paires clé/valeur.',arrayType:'Champ de type "liste". Une liste contient une collection ordonnée de valeurs.',stringType:`Champ de type "chaîne". Ce type de champ n'est pas déterminé en fonction de la valeur, mais retourne systématiquement une chaîne de caractères.`,modeEditorTitle:"Changer mode d'édition",modeCodeText:"Code",modeCodeTitle:"Activer surlignage code",modeFormText:"Formulaire",modeFormTitle:"Activer formulaire",modeTextText:"Texte",modeTextTitle:"Activer éditeur texte",modeTreeText:"Arbre",modeTreeTitle:"Activer éditeur arbre",modeViewText:"Lecture seule",modeViewTitle:"Activer vue arbre",modePreviewText:"Prévisualisation",modePreviewTitle:"Activer mode prévisualiser",examples:"Exemples",default:"Défaut",containsInvalidProperties:"Contient des propriétés non valides",containsInvalidItems:"Contient des éléments invalides"},de:{array:"Auflistung",auto:"Auto",appendText:"anhängen",appendTitle:"Fügen Sie nach diesem Feld ein neues Feld mit dem Typ 'auto' ein (Strg+Umschalt+Ein)",appendSubmenuTitle:"Wählen Sie den Typ des neuen Feldes",appendTitleAuto:"Ein neues Feld vom Typ 'auto' hinzufügen (Strg+Umschalt+Ein)",ascending:"Aufsteigend",ascendingTitle:"Sortieren Sie die Elemente dieses ${type} in aufsteigender Reihenfolge",actionsMenu:"Klicken Sie zum Öffnen des Aktionsmenüs (Strg+M)",cannotParseFieldError:"Feld kann nicht in JSON geparst werden",cannotParseValueError:"Wert kann nicht in JSON geparst werden",collapseAll:"Alle Felder zuklappen",compactTitle:"JSON-Daten verdichten, alle Leerzeichen entfernen (Strg+Umschalt+\\)",descending:"Absteigend",descendingTitle:"Sortieren Sie die Elemente dieses ${type} in absteigender Reihenfolge",drag:"Ziehen, um dieses Feld zu verschieben (Alt+Umschalt+Pfeile)",duplicateKey:"Doppelter Schlüssel",duplicateText:"Duplikat",duplicateTitle:"Ausgewählte Felder duplizieren (Strg+D)",duplicateField:"Dieses Feld duplizieren (Strg+D)",duplicateFieldError:"Doppelter Feldname",empty:"leer",expandAll:"Alle Felder anzeigen",expandTitle:`Klicken Sie, um dieses Feld zu erweitern/zu kollabieren (Strg+E).
|
|
Strg+Klicken Sie, um dieses Feld einschließlich aller Elemente zu erweitern/zu kollabieren.`,formatTitle:"JSON-Daten mit korrekter Einrückung und Zeilenvorschüben formatieren (Strg+\\)",insert:"einfügen",insertTitle:"Fügen Sie vor diesem Feld ein neues Feld mit dem Typ 'auto' ein (Strg+Einfg)",insertSub:"Wählen Sie den Typ des neuen Feldes",object:"Objekt",ok:"Ok",redo:"Wiederholen (Strg+Umschalt+Z)",removeText:"entfernen",removeTitle:"Ausgewählte Felder entfernen (Strg+Entf)",removeField:"Dieses Feld entfernen (Strg+Entf)",repairTitle:"JSON reparieren: Anführungszeichen und Escape-Zeichen korrigieren, Kommentare und JSONP-Notation entfernen, JavaScript-Objekte in JSON umwandeln.",searchTitle:"Suchfelder und Werte",searchNextResultTitle:"Nächstes Ergebnis (Enter)",searchPreviousResultTitle:"Vorheriges Ergebnis (Umschalt + Eingabe)",selectNode:"Wählen Sie einen Knoten aus...",showAll:"alle anzeigen",showMore:"mehr anzeigen",showMoreStatus:"Anzeige von ${visibleChilds} von ${totalChilds}-Elementen.",sort:"Sortieren",sortTitle:"Sortieren Sie die Elemente dieses ${type}",sortTitleShort:"Inhalt sortieren",sortFieldLabel:"Feld:",sortDirectionLabel:"Richtung:",sortFieldTitle:"Wählen Sie das verschachtelte Feld, nach dem das Array oder Objekt sortiert werden soll.",sortAscending:"Aufsteigend",sortAscendingTitle:"Sortieren Sie das ausgewählte Feld in aufsteigender Reihenfolge",sortDescending:"Absteigend",sortDescendingTitle:"Sortieren Sie das ausgewählte Feld in absteigender Reihenfolge",string:"Zeichenfolge",transform:"Verwandeln",transformTitle:"Die Elemente dieses ${type} filtern, sortieren oder transformieren",transformTitleShort:"Inhalte filtern, sortieren oder transformieren",extract:"Auszug",extractTitle:"Extrahieren Sie diesen ${type}",transformQueryTitle:"Eine JMESPath-Abfrage eingeben",transformWizardLabel:"Zauberer",transformWizardFilter:"Filter",transformWizardSortBy:"Sortieren nach",transformWizardSelectFields:"Felder auswählen",transformQueryLabel:"Anfrage",transformPreviewLabel:"Vorschau",type:"Geben Sie ein.",typeTitle:"Ändern Sie den Typ dieses Feldes",openUrl:"Strg+Klicken oder Strg+Eingabe, um die URL in einem neuen Fenster zu öffnen",undo:"Letzte Aktion rückgängig machen (Strg+Z)",validationCannotMove:"Kann ein Feld nicht in ein Kind seiner selbst verschieben",autoType:'Feldtyp "auto". Der Feldtyp wird automatisch aus dem Wert bestimmt und kann ein String, eine Zahl, boolesch oder null sein.',objectType:'Feldtyp "Objekt". Ein Objekt enthält eine ungeordnete Menge von Schlüssel/Wert-Paaren.',arrayType:'Feldtyp "Array". Ein Array enthält eine geordnete Sammlung von Werten.',stringType:'Feldtyp "Zeichenfolge". Der Feldtyp wird nicht aus dem Wert bestimmt, sondern immer als Zeichenfolge zurückgegeben.',modeEditorTitle:"Editor-Modus umschalten",modeCodeText:"Code",modeCodeTitle:"Umschalten auf Code-Highlighter",modeFormText:"Formular",modeFormTitle:"Zum Formular-Editor wechseln",modeTextText:"Text",modeTextTitle:"Zum Editor für einfachen Text wechseln",modeTreeText:"Baum",modeTreeTitle:"Zum Baum-Editor wechseln",modeViewText:"Siehe",modeViewTitle:"Zur Baumansicht wechseln",modePreviewText:"Vorschau",modePreviewTitle:"In den Vorschau-Modus wechseln",examples:"Beispiele",default:"Standardmäßig",containsInvalidProperties:"Enthält ungültige Eigenschaften",containsInvalidItems:"Enthält ungültige Elemente"},ru:{array:"Массив",auto:"Авто",appendText:"Добавить",appendTitle:"Добавить новое поле с типом 'авто' после этого поля (Ctrl+Shift+Ins)",appendSubmenuTitle:"Выбрать тип поля для добавления",appendTitleAuto:"Добавить новое поле с типом 'авто' (Ctrl+Shift+Ins)",ascending:"По возрастанию",ascendingTitle:"Сортировать ${type} по возрастанию",actionsMenu:"Нажмите для открытия меню действий (Ctrl+M)",cannotParseFieldError:"Невозможно преобразовать поле в JSON",cannotParseValueError:"Невозможно преобразовать значение в JSON",collapseAll:"Свернуть все",compactTitle:"Минификация JSON (Ctrl+Shift+I)",descending:"По убыванию",descendingTitle:"Сортировать ${type} по убыванию",drag:"Потяните для перемещения этого поля (Alt+Shift+Arrows)",duplicateKey:"повторяющийся ключ",duplicateText:"Дублировать",duplicateTitle:"Дублирование полей (Ctrl+D)",duplicateField:"Дублировать поле (Ctrl+D)",duplicateFieldError:"Дублирование названия поля",empty:"пустой",expandAll:"Развернуть все",expandTitle:`Нажмите для раскрытия/скрытия поля (Ctrl+E)
|
|
или Ctrl+Click для раскрытия/скрытия всех потомков.`,formatTitle:"Форматирование JSON (Ctrl+I)",insert:"Вставить",insertTitle:"Вставить новое поле с типом 'авто' перед этим полем (Ctrl+Ins)",insertSub:"Выбрать тип поля для вставки",object:"Объект",ok:"ОК",redo:"Повторить (Ctrl+Shift+Z)",removeText:"Удалить",removeTitle:"Удалить выбранные поля (Ctrl+Del)",removeField:"Удалить поле (Ctrl+Del)",repairTitle:"Восстановите JSON: исправьте кавычки и escape-символы, удалите комментарии и нотацию JSONP, модифицируйте объекты JavaScript в JSON.",searchTitle:"Поиск",searchNextResultTitle:"Следующий результат (Enter)",searchPreviousResultTitle:"Предыдущий результат (Shift + Enter)",selectNode:"Выбор узла...",showAll:"показать все",showMore:"больше",showMoreStatus:"${visibleChilds} из ${totalChilds}",sort:"Сортировка",sortTitle:"Сортировка потомков типа ${type}",sortTitleShort:"Сортировка содержимого",sortFieldLabel:"Поле:",sortDirectionLabel:"Направление:",sortFieldTitle:"Выберите поле для сортировки массива или объекта",sortAscending:"По возрастанию",sortAscendingTitle:"Сортировка выбранного поря по возрастанию",sortDescending:"По убыванию",sortDescendingTitle:"Сортировка выбранного поря по убыванию",string:"Строка",transform:"Модификация",transformTitle:"Фильтрация, сортировка или модификация данных типа ${type}",transformTitleShort:"Фильтрация, сортировка или модификация данных",extract:"Извлечение",extractTitle:"Извлечь тип ${type}",transformQueryTitle:"Введите JMESpath запрос",transformWizardLabel:"Мастер",transformWizardFilter:"Фильтр",transformWizardSortBy:"Сортировка",transformWizardSelectFields:"Поля",transformQueryLabel:"Запрос",transformPreviewLabel:"Просмотр",type:"Тип",typeTitle:"Изменить тип этого поля",openUrl:"Ctrl+Click или Ctrl+Enter для открытия url в новом окне",undo:"Отменить (Ctrl+Z)",validationCannotMove:"Поле не может быть перемещено в потомка",autoType:"Тип поля автоматически определяется по значению и может быть строкой, числом, логическим значением или null.",objectType:"Объект содержит неупорядоченный набор пар ключ/значение.",arrayType:"Массив содержит упорядоченный набор значений.",stringType:"Тип поля не определяется из значения, но всегда возвращается как строка.",modeEditorTitle:"Переключение режима редактора",modeCodeText:"Код",modeCodeTitle:"Переключить в режим редактора кода",modeFormText:"Форма",modeFormTitle:"Переключить в режим формы",modeTextText:"Текст",modeTextTitle:"Переключить в режим редактора текста",modeTreeText:"Дерево",modeTreeTitle:"Переключить в режим редактора дерева",modeViewText:"Просмотр дерева",modeViewTitle:"Переключить в режим просмотра дерева",modePreviewText:"Просмотр",modePreviewTitle:"Переключить в режим просмотра",examples:"Примеры",default:"По умолчанию",containsInvalidProperties:"Содержит недопустимые свойства",containsInvalidItems:"Содержит недопустимые элементы"},ko:{array:"배열",auto:"자동",appendText:"추가",appendTitle:'선택한 요소 아래에 "자동" 요소를 추가합니다. (Ctrl + Shift + Ins)',appendSubmenuTitle:"추가할 요소의 유형을 선택해주세요.",appendTitleAuto:'"자동" 요소를 추가합니다. (Ctrl + Shift + Ins)',ascending:"오름차순",ascendingTitle:"선택한 ${type}의 하위 요소를 오름차순 정렬합니다.",actionsMenu:"메뉴 열기 (Ctrl + M)",cannotParseFieldError:"JSON의 요소를 해석할 수 없습니다.",cannotParseValueError:"JSON의 값을 해석할 수 없습니다.",collapseAll:"모두 접기",compactTitle:"모든 공백을 제거하여 JSON 데이터를 작게 만듭니다. (Ctrl + Shift + I)",descending:"내림차순",descendingTitle:"선택한 ${type}의 하위 요소를 내림차순으로 정렬",drag:"드래그하여 요소를 이동합니다. (Alt + Shift + Arrows)",duplicateKey:"복제키",duplicateText:"복제",duplicateTitle:"선택한 요소를 복제합니다. (Ctrl + D)",duplicateField:"선택한 요소를 복제합니다. (Ctrl + D)",duplicateFieldError:"요소 이름이 중복되었습니다.",empty:"비어있음",expandAll:"모두 열기",expandTitle:`클릭하여 요소를 열거나 닫습니다. (Ctrl + E)
|
|
Ctrl + Click으로 모든 하위 요소를 열거나 닫습니다.`,formatTitle:"적절한 들여쓰기 및 줄바꿈으로 JSON 데이터를 정형화합니다. (Ctrl + I)",insert:"삽입",insertTitle:"선택한 요소 위에 새요소를 삽입합니다. (Ctrl + Ins)",insertSub:"삽입할 요소의 유형을 선택해주세요.",object:"객체",ok:"확인",redo:"다시 실행 (Ctrl + Shift + Z)",removeText:"삭제",removeTitle:"선택한 요소를 삭제합니다. (Ctrl + Del)",removeField:"선택한 요소를 삭제합니다. (Ctrl + Del)",repairTitle:"JSON 교정: JSON 내의 주석과 JSONP 표기법을 지우고 따옴표와 이스케이프 문자를 수정합니다.",searchTitle:"요소 또는 값 찾기",searchNextResultTitle:"다음으로 찾기 (Enter)",searchPreviousResultTitle:"이전으로 찾기 (Shift + Enter)",selectNode:"요소를 선택해주세요...",showAll:"모두보기",showMore:"더보기",showMoreStatus:"${totalChilds} 개의 항목 중 ${visibleChilds} 개를 표시합니다.",sort:"정렬",sortTitle:"선택한 ${type}의 하위 요소를 정렬합니다.",sortTitleShort:"정렬",sortFieldLabel:"요소:",sortDirectionLabel:"순서:",sortFieldTitle:"배열이나 객체를 정렬하는 요소를 선택해주세요.",sortAscending:"오름차순",sortAscendingTitle:"선택한 요소를 오름차순으로 정렬합니다.",sortDescending:"내림차순",sortDescendingTitle:"선택한 요소를 내림차순으로 정렬합니다.",string:"문자",transform:"변환",transformTitle:"선택한 ${type}의 하위 요소를 필터하거나 정렬 또는 변환합니다.",transformTitleShort:"내용을 필터하거나 정렬 또는 변환합니다.",extract:"추출",extractTitle:"선택한 ${type}의 값을 최상위에 위치시킵니다.",transformQueryTitle:"JMESPath 쿼리를 입력해주세요.",transformWizardLabel:"마법사",transformWizardFilter:"필터",transformWizardSortBy:"정렬",transformWizardSelectFields:"요소를 선택해주세요.",transformQueryLabel:"쿼리",transformPreviewLabel:"미리보기",type:"유형",typeTitle:"선택한 요소의 유형을 변경합니다.",openUrl:"Ctrl + Click 또는 Ctrl + Enter로 새 창에서 URL 열기",undo:"실행 취소 (Ctrl + Z)",validationCannotMove:"하위 요소로 이동할 수 없습니다.",autoType:"자동: 요소의 형식이 값의 유형으로 결정됩니다. 문자, 숫자, 부울, 또는 null만 허용됩니다.",objectType:"객체: 순서대로 나열되지 않은 이름/값 쌍으로 이루어진 집합입니다.",arrayType:"배열: 순서대로 나열된 값의 집합입니다.",stringType:"문자: 요소의 유형이 값에서 결정되지 않지만 항상 문자로 반환됩니다.",modeEditorTitle:"편집기 유형 변경",modeCodeText:"코드",modeCodeTitle:"형식 교정을 도와주는 기능이 포함된 문자 편집기",modeFormText:"입력 양식",modeFormTitle:"정해진 요소에 값을 입력하는 편집기",modeTextText:"문자",modeTextTitle:"단순 문자 편집기",modeTreeText:"트리",modeTreeTitle:"트리 구조로 표시되는 편집기",modeViewText:"보기",modeViewTitle:"읽기전용 트리 구조로 JSON을 표시",modePreviewText:"미리보기",modePreviewTitle:"읽기전용 문자로 JSON을 표시",examples:"예제",default:"기본값",containsInvalidProperties:"잘못된 속성이 포함되어 있습니다.",containsInvalidItems:"잘못된 항목이 포함되어 있습니다"}},u=Object.keys(l),c="en",d=typeof navigator<"u"?navigator.language||navigator.userLanguage:void 0,h=u.find(function(v){return v===d})||c;function f(v){var m;v&&((m=u.find(function(w){return w===v}))?h=m:console.error("Language not found"))}function g(v){if(v)for(var m in v)(function(w){u.find(function(k){return k===w})||u.push(w),l[w]=Object.assign({},l[c],l[w],v[w])})(m)}function b(v,m,w){var k=l[w=w||h][v]||l[c][v]||v;if(m)for(var T in m)k=k.replace("${"+T+"}",m[T]);return k}},6056:function(o,l,s){s.d(l,{J:function(){return h},r:function(){return d}});var l=s(5156),u=s.n(l),c=s(9791);function d(f,w){var b,v=w.sort,m=w.filter,w=w.projection,k="";return m?(b=m.field!=="@"?["0"].concat((0,c.parsePath)("."+m.field)):["0"],b=typeof(0,c.get)(f,b)=="string"?m.value:(0,c.parseString)(m.value),k+="[? "+m.field+" "+m.relation+" `"+JSON.stringify(b)+"`]"):k+=Array.isArray(f)?"[*]":"@",v&&(v.direction==="desc"?k+=" | reverse(sort_by(@, &"+v.field+"))":k+=" | sort_by(@, &"+v.field+")"),w&&(k[k.length-1]!=="]"&&(k+=" | [*]"),w.fields.length===1?k+="."+w.fields[0]:1<w.fields.length&&(k+=".{"+w.fields.map(function(T){var S=T.split(".");return S[S.length-1]+": "+T}).join(", ")+"}")),k}function h(f,g){return u().search(f,g)}},4987:function(){function o(a){a===void 0||"remove"in a||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode!==void 0&&this.parentNode.removeChild(this)}})}typeof Element<"u"&&(window.Element!==void 0&&o(window.Element.prototype),window.CharacterData!==void 0&&o(window.CharacterData.prototype),window.DocumentType!==void 0)&&o(window.DocumentType.prototype),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(a){for(var s=0;s<this.length;s++){var l=this[s];if(a.call(this,l,s,this))return s}return-1},configurable:!0,writable:!0}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(a){return a=this.findIndex(a),this[a]},configurable:!0,writable:!0}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")})},341:function(o,I,S){S.r(I),S.d(I,{previewModeMixins:function(){return O}});var l=S(1262),u=S(4188),c=S(6436),d=S(2474);function h(y){return(h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(y)}function f(y,_){for(var A=0;A<_.length;A++){var R=_[A];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(y,function(D){return D=function(C,x){if(h(C)!=="object"||C===null)return C;var P=C[Symbol.toPrimitive];if(P===void 0)return(x==="string"?String:Number)(C);if(P=P.call(C,x||"default"),h(P)!=="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}(D,"string"),h(D)==="symbol"?D:String(D)}(R.key),R)}}var g=function(){function y(R,D,C){if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");this.onChange=R,this.calculateItemSize=D||function(){return 1},this.limit=C,this.items=[],this.index=-1}var _,A;return _=y,(A=[{key:"add",value:function(R){for(;this._calculateHistorySize()>this.limit&&1<this.items.length;)this.items.shift(),this.index--;this.items=this.items.slice(0,this.index+1),this.items.push(R),this.index++,this.onChange()}},{key:"_calculateHistorySize",value:function(){var R=this.calculateItemSize,D=0;return this.items.forEach(function(C){D+=R(C)}),D}},{key:"undo",value:function(){if(this.canUndo())return this.index--,this.onChange(),this.items[this.index]}},{key:"redo",value:function(){if(this.canRedo())return this.index++,this.onChange(),this.items[this.index]}},{key:"canUndo",value:function(){return 0<this.index}},{key:"canRedo",value:function(){return this.index<this.items.length-1}},{key:"clear",value:function(){this.items=[],this.index=-1,this.onChange()}}])&&f(_.prototype,A),Object.defineProperty(_,"prototype",{writable:!1}),y}(),b=S(7907),v=S(6056),m=S(6617),w=S(6210),k=S(2558),I=S(8458),T=S(9791),S=I.textModeMixins[0].mixin,I={create:function(R){var _=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},A=(_.statusBar===void 0&&(_.statusBar=!0),_.mainMenuBar=_.mainMenuBar!==!1,_.enableSort=_.enableSort!==!1,_.enableTransform=_.enableTransform!==!1,_.createQuery=_.createQuery||v.r,_.executeQuery=_.executeQuery||v.J,typeof(this.options=_).indentation=="number"?this.indentation=Number(_.indentation):this.indentation=2,(0,b.cC)(this.options.languages),(0,b.m0)(this.options.language),this.mode="preview",this),R=(this.container=R,this.dom={},this.json=void 0,this.text="",this._debouncedValidate=(0,T.debounce)(this.validate.bind(this),this.DEBOUNCE_INTERVAL),this.width=R.clientWidth,this.height=R.clientHeight,this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-preview",this.frame.onclick=function(D){D.preventDefault()},{target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null}),R=(this.frameFocusTracker=new d.R(R),this.content=document.createElement("div"),this.content.className="jsoneditor-outer",this.dom.busy=document.createElement("div"),this.dom.busy.className="jsoneditor-busy",this.dom.busyContent=document.createElement("span"),this.dom.busyContent.textContent="busy...",this.dom.busy.appendChild(this.dom.busyContent),this.content.appendChild(this.dom.busy),this.dom.previewContent=document.createElement("pre"),this.dom.previewContent.className="jsoneditor-preview",this.dom.previewText=document.createTextNode(""),this.dom.previewContent.appendChild(this.dom.previewText),this.content.appendChild(this.dom.previewContent),this.options.mainMenuBar&&((0,T.addClassName)(this.content,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu),(R=document.createElement("button")).type="button",R.className="jsoneditor-format",R.title=(0,b.Iu)("formatTitle"),this.menu.appendChild(R),R.onclick=function(){A.executeWithBusyMessage(function(){try{A.format()}catch(D){A._onError(D)}},"formatting...")},(R=document.createElement("button")).type="button",R.className="jsoneditor-compact",R.title=(0,b.Iu)("compactTitle"),this.menu.appendChild(R),R.onclick=function(){A.executeWithBusyMessage(function(){try{A.compact()}catch(D){A._onError(D)}},"compacting...")},this.options.enableSort&&((R=document.createElement("button")).type="button",R.className="jsoneditor-sort",R.title=(0,b.Iu)("sortTitleShort"),R.onclick=function(){A._showSortModal()},this.menu.appendChild(R)),this.options.enableTransform&&((R=document.createElement("button")).type="button",R.title=(0,b.Iu)("transformTitleShort"),R.className="jsoneditor-transform",R.onclick=function(){A._showTransformModal()},this.dom.transform=R,this.menu.appendChild(R)),(R=document.createElement("button")).type="button",R.className="jsoneditor-repair",R.title=(0,b.Iu)("repairTitle"),this.menu.appendChild(R),!(R.onclick=function(){A.json===void 0&&A.executeWithBusyMessage(function(){try{A.repair()}catch(D){A._onError(D)}},"repairing...")})!==this.options.history&&(this.history=new g(function(){A.dom.undo.disabled=!A.history.canUndo(),A.dom.redo.disabled=!A.history.canRedo()},function(D){return 2*D.text.length},u.oW),(R=document.createElement("button")).type="button",R.className="jsoneditor-undo jsoneditor-separator",R.title=(0,b.Iu)("undo"),R.onclick=function(){var D=A.history.undo();D&&A._applyHistory(D)},this.menu.appendChild(R),this.dom.undo=R,(R=document.createElement("button")).type="button",R.className="jsoneditor-redo",R.title=(0,b.Iu)("redo"),R.onclick=function(){var D=A.history.redo();D&&A._applyHistory(D)},this.menu.appendChild(R),this.dom.redo=R,this.history.onChange()),this.options)&&this.options.modes&&this.options.modes.length&&(this.modeSwitcher=new m.x(this.menu,this.options.modes,this.options.mode,function(D){try{A.setMode(D),A.modeSwitcher.focus()}catch(C){A._onError(C)}})),Array.isArray(this.options.showErrorTable)?this.options.showErrorTable.includes(this.mode):this.options.showErrorTable===!0);this.errorTable=new c.Q({errorTableVisible:R,onToggleVisibility:function(){A.validate()},onFocusLine:null,onChangeHeight:function(D){D=D+(A.dom.statusBar?A.dom.statusBar.clientHeight:0)+1,A.content.style.marginBottom=-D+"px",A.content.style.paddingBottom=D+"px"}}),this.frame.appendChild(this.content),this.frame.appendChild(this.errorTable.getErrorTable()),this.container.appendChild(this.frame),_.statusBar&&((0,T.addClassName)(this.content,"has-status-bar"),R=document.createElement("div"),(this.dom.statusBar=R).className="jsoneditor-statusbar",this.frame.appendChild(R),this.dom.fileSizeInfo=document.createElement("span"),this.dom.fileSizeInfo.className="jsoneditor-size-info",this.dom.fileSizeInfo.innerText="",R.appendChild(this.dom.fileSizeInfo),this.dom.arrayInfo=document.createElement("span"),this.dom.arrayInfo.className="jsoneditor-size-info",this.dom.arrayInfo.innerText="",R.appendChild(this.dom.arrayInfo),R.appendChild(this.errorTable.getErrorCounter()),R.appendChild(this.errorTable.getWarningIcon()),R.appendChild(this.errorTable.getErrorIcon())),this._renderPreview(),this.setSchema(this.options.schema,this.options.schemaRefs)},_renderPreview:function(){var y=this.getText();this.dom.previewText.nodeValue=(0,T.limitCharacters)(y,u.WF),this.dom.fileSizeInfo&&(this.dom.fileSizeInfo.innerText="Size: "+(0,T.formatSize)(y.length)),this.dom.arrayInfo&&(Array.isArray(this.json)?this.dom.arrayInfo.innerText="Array: "+this.json.length+" items":this.dom.arrayInfo.innerText="")},_onChange:function(){if(this._debouncedValidate(),this.options.onChange)try{this.options.onChange()}catch(y){console.error("Error in onChange callback: ",y)}if(this.options.onChangeJSON)try{this.options.onChangeJSON(this.get())}catch(y){console.error("Error in onChangeJSON callback: ",y)}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch(y){console.error("Error in onChangeText callback: ",y)}}},O=(I._showSortModal=function(){var y=this;this.executeWithBusyMessage(function(){var _=y.options.modalAnchor||u.qD,A=y.get();y._renderPreview(),(0,w.showSortModal)(_,A,function(R){y.executeWithBusyMessage(function(){var D,C,x;D=A,C=R,Array.isArray(D)&&(x=(0,T.sort)(D,C.path,C.direction),y.sortedBy=C,y._setAndFireOnChange(x)),(0,T.isObject)(D)&&(x=(0,T.sortObjectKeys)(D,C.direction),y.sortedBy=C,y._setAndFireOnChange(x))},"sorting...")},y.sortedBy)},"parsing...")},I._showTransformModal=function(){var y=this;this.executeWithBusyMessage(function(){var D=y.options,_=D.createQuery,A=D.executeQuery,R=D.modalAnchor,D=D.queryDescription,C=y.get();y._renderPreview(),(0,k.showTransformModal)({container:R||u.qD,json:C,queryDescription:D,createQuery:_,executeQuery:A,onTransform:function(x){y.executeWithBusyMessage(function(){var P=A(C,x);y._setAndFireOnChange(P)},"transforming...")}})},"parsing...")},I.destroy=function(){this.frame&&this.container&&this.frame.parentNode===this.container&&this.container.removeChild(this.frame),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this._debouncedValidate=null,this.history&&(this.history.clear(),this.history=null),this.frameFocusTracker.destroy()},I.compact=function(){var y=this.get(),_=JSON.stringify(y);this._setTextAndFireOnChange(_,y)},I.format=function(){var y=this.get(),_=JSON.stringify(y,null,this.indentation);this._setTextAndFireOnChange(_,y)},I.repair=function(){var y=this.getText();try{var _=(0,l.K)(y);this._setTextAndFireOnChange(_)}catch{}},I.focus=function(){this.dom.transform.focus()},I.set=function(y){this.history&&this.history.clear(),this._set(y)},I.update=function(y){this._set(y)},I._set=function(y){this.text=void 0,this.json=y,this._renderPreview(),this._pushHistory(),this._debouncedValidate()},I._setAndFireOnChange=function(y){this._set(y),this._onChange()},I.get=function(){var y;return this.json===void 0&&(y=this.getText(),this.json=(0,T.parse)(y)),this.json},I.getText=function(){return this.text===void 0&&(this.text=JSON.stringify(this.json,null,this.indentation),this.options.escapeUnicode===!0)&&(this.text=(0,T.escapeUnicodeChars)(this.text)),this.text},I.setText=function(y){this.history&&this.history.clear(),this._setText(y)},I.updateText=function(y){this.getText()!==y&&this._setText(y)},I._setText=function(y,_){var A;this.options.escapeUnicode===!0?this.text=(0,T.escapeUnicodeChars)(y):this.text=y,this.json=_,this._renderPreview(),this.json===void 0?(A=this).executeWithBusyMessage(function(){try{A.json=A.get(),A._renderPreview(),A._pushHistory()}catch{}},"parsing..."):this._pushHistory(),this._debouncedValidate()},I._setTextAndFireOnChange=function(y,_){this._setText(y,_),this._onChange()},I._applyHistory=function(y){this.json=y.json,this.text=y.text,this._renderPreview(),this._debouncedValidate()},I._pushHistory=function(){var y;this.history&&(y={text:this.text,json:this.json},this.history.add(y))},I.executeWithBusyMessage=function(y,_){var A;this.getText().length>u.EX?((0,T.addClassName)((A=this).frame,"busy"),A.dom.busyContent.innerText=_,setTimeout(function(){y(),(0,T.removeClassName)(A.frame,"busy"),A.dom.busyContent.innerText=""},100)):y()},I.validate=S.validate,I._renderErrors=S._renderErrors,[{mode:"preview",mixin:I,data:"json"}])},6210:function(o,l,s){s.r(l),s.d(l,{showSortModal:function(){return h}});var l=s(483),u=s.n(l),c=s(7907),d=s(9791);function h(f,T,b,v){var m=Array.isArray(T)?(0,d.getChildPaths)(T):[""],w=v&&v.path&&(0,d.contains)(m,v.path)?v.path:m[0],k=v&&v.direction||"asc",T='<div class="pico-modal-contents"><div class="pico-modal-header">'+(0,c.Iu)("sort")+"</div><form><table><tbody><tr> <td>"+(0,c.Iu)("sortFieldLabel")+' </td> <td class="jsoneditor-modal-input"> <div class="jsoneditor-select-wrapper"> <select id="field" title="'+(0,c.Iu)("sortFieldTitle")+'"> </select> </div> </td></tr><tr> <td>'+(0,c.Iu)("sortDirectionLabel")+' </td> <td class="jsoneditor-modal-input"> <div id="direction" class="jsoneditor-button-group"><input type="button" value="'+(0,c.Iu)("sortAscending")+'" title="'+(0,c.Iu)("sortAscendingTitle")+'" data-value="asc" class="jsoneditor-button-first jsoneditor-button-asc"/><input type="button" value="'+(0,c.Iu)("sortDescending")+'" title="'+(0,c.Iu)("sortDescendingTitle")+'" data-value="desc" class="jsoneditor-button-last jsoneditor-button-desc"/> </div> </td></tr><tr><td colspan="2" class="jsoneditor-modal-input jsoneditor-modal-actions"> <input type="submit" id="ok" value="'+(0,c.Iu)("ok")+'" /></td></tr></tbody></table></form></div>';u()({parent:f,content:T,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-sort"}).afterCreate(function(S){var I=S.modalElem().querySelector("form"),O=S.modalElem().querySelector("#ok"),y=S.modalElem().querySelector("#field"),_=S.modalElem().querySelector("#direction");function A(R){_.value=R,_.className="jsoneditor-button-group jsoneditor-button-group-value-"+_.value}m.forEach(function(R){var D,C=document.createElement("option");C.text=(D=R)===""?"@":D[0]==="."?D.slice(1):D,C.value=R,y.appendChild(C)}),y.value=w||m[0],A(k||"asc"),_.onclick=function(R){A(R.target.getAttribute("data-value"))},O.onclick=function(R){R.preventDefault(),R.stopPropagation(),S.close(),b({path:y.value,direction:_.value})},I&&(I.onsubmit=O.onclick)}).afterClose(function(S){S.destroy()}).show()}},2558:function(o,u,s){s.r(u),s.d(u,{showTransformModal:function(){return w}});var u=s(483),l=s.n(u),u=s(3879),c=s.n(u),d=s(7907);function h(k){return(h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T})(k)}function f(k,T,S,I){if(typeof k=="boolean"||k instanceof Boolean||k===null||typeof k=="number"||k instanceof Number||typeof k=="string"||k instanceof String||k instanceof Date)return JSON.stringify(k);if(Array.isArray(k)){for(var O=k,y=T,_=S,A=I,R=y?_+y:void 0,D=y?`[
|
|
`:"[",C=0;C<O.length;C++){var x=O[C];if(y&&(D+=R),D+=x!==void 0&&typeof x!="function"?f(x,y,R,A):"null",C<O.length-1&&(D+=y?`,
|
|
`:","),D.length>A)return D+"..."}return D+=y?`
|
|
`+_+"]":"]"}if(k&&h(k)==="object"){var P,$=k,L=T,_=S,V=I,H=L?_+L:void 0,Q=!0,U=L?`{
|
|
`:"{";if(typeof $.toJSON=="function")return f($.toJSON(),L,_,V);for(P in $)if(function(ue,ee){return Object.prototype.hasOwnProperty.call(ue,ee)}($,P)){var K=$[P];if(Q?Q=!1:U+=L?`,
|
|
`:",",(U=(U+=L?H+'"'+P+'": ':'"'+P+'":')+f(K,L,H,V)).length>V)return U+"..."}return U+=L?`
|
|
`+_+"}":"}"}}function g(k,T){for(var S="";0<T--;)S+=k;return S}var b=s(9791),v=s(4188),m='Enter a <a href="http://jmespath.org" target="_blank">JMESPath</a> query to filter, sort, or transform the JSON data.<br/>To learn JMESPath, go to <a href="http://jmespath.org/tutorial.html" target="_blank">the interactive tutorial</a>.';function w(R){var T=R.container,S=R.json,I=R.queryDescription,I=I===void 0?m:I,O=R.createQuery,y=R.executeQuery,_=R.onTransform,A=S,R='<label class="pico-modal-contents"><div class="pico-modal-header">'+(0,d.Iu)("transform")+"</div><p>"+I+'</p><div class="jsoneditor-jmespath-label">'+(0,d.Iu)("transformWizardLabel")+' </div><div id="wizard" class="jsoneditor-jmespath-block jsoneditor-jmespath-wizard"> <table class="jsoneditor-jmespath-wizard-table"> <tbody> <tr> <th>'+(0,d.Iu)("transformWizardFilter")+'</th> <td class="jsoneditor-jmespath-filter"> <div class="jsoneditor-inline jsoneditor-jmespath-filter-field" > <select id="filterField"> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-filter-relation" > <select id="filterRelation"> <option value="==">==</option> <option value="!=">!=</option> <option value="<"><</option> <option value="<="><=</option> <option value=">">></option> <option value=">=">>=</option> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-filter-value" > <input type="text" class="value" placeholder="value..." id="filterValue" /> </div> </td> </tr> <tr> <th>'+(0,d.Iu)("transformWizardSortBy")+'</th> <td class="jsoneditor-jmespath-filter"> <div class="jsoneditor-inline jsoneditor-jmespath-sort-field"> <select id="sortField"> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-sort-order" > <select id="sortOrder"> <option value="asc">Ascending</option> <option value="desc">Descending</option> </select> </div> </td> </tr> <tr id="selectFieldsPart"> <th>'+(0,d.Iu)("transformWizardSelectFields")+'</th> <td class="jsoneditor-jmespath-filter"> <select class="jsoneditor-jmespath-select-fields" id="selectFields" multiple></select> </td> </tr> </tbody> </table></div><div class="jsoneditor-jmespath-label">'+(0,d.Iu)("transformQueryLabel")+' </div><div class="jsoneditor-jmespath-block"> <textarea id="query" rows="4" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" title="'+(0,d.Iu)("transformQueryTitle")+'">[*]</textarea></div><div class="jsoneditor-jmespath-label">'+(0,d.Iu)("transformPreviewLabel")+' </div><div class="jsoneditor-jmespath-block"> <textarea id="preview" class="jsoneditor-transform-preview" readonly> </textarea></div><div class="jsoneditor-jmespath-block jsoneditor-modal-actions"> <input type="submit" id="ok" value="'+(0,d.Iu)("ok")+'" autofocus /></div></div>';l()({parent:T,content:R,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-transform",focus:!1}).afterCreate(function(D){var C=D.modalElem(),J=C.querySelector("#wizard"),x=C.querySelector("#ok"),P=C.querySelector("#filterField"),$=C.querySelector("#filterRelation"),L=C.querySelector("#filterValue"),V=C.querySelector("#sortField"),H=C.querySelector("#sortOrder"),Q=C.querySelector("#selectFields"),U=C.querySelector("#query"),K=C.querySelector("#preview");Array.isArray(A)||(J.style.fontStyle="italic",J.textContent="(wizard not available for objects, only for arrays)"),(0,b.getChildPaths)(S).forEach(function(de){var de=G(de),ae=document.createElement("option"),ae=(ae.text=de,ae.value=de,P.appendChild(ae),document.createElement("option"));ae.text=de,ae.value=de,V.appendChild(ae)});var J=(0,b.getChildPaths)(S,!0).filter(function(ve){return ve!==""}),J=(0<J.length?J.forEach(function(de){var de=G(de),ae=document.createElement("option");ae.text=de,ae.value=de,Q.appendChild(ae)}):(J=C.querySelector("#selectFieldsPart"))&&(J.style.display="none"),new(c())(P,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"field..."})),ue=new(c())($,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"compare..."}),ee=new(c())(V,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"field..."}),N=new(c())(H,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"order..."}),q=new(c())(Q,{multiple:!0,clearable:!0,defaultSelected:!1,placeholder:"select fields..."});function G(ve){return ve===""?"@":ve[0]==="."?ve.slice(1):ve}J.on("selectr.change",oe),ue.on("selectr.change",oe),L.oninput=oe,ee.on("selectr.change",oe),N.on("selectr.change",oe),q.on("selectr.change",oe),C.querySelector(".pico-modal-contents").onclick=function(ve){ve.target.nodeName!=="A"&&ve.preventDefault()};var ne=(0,b.debounce)(function(){try{var ve=y(A,U.value);K.className="jsoneditor-transform-preview",K.value=(de=ve,ae=2,be=v.WF,typeof ae=="number"?10<ae?ie=g(" ",10):1<=ae&&(ie=g(" ",ae)):typeof ae=="string"&&ae!==""&&(ie=ae),(ae=f(de,ie,"",be)).length>be?(de=ae,(typeof(ie=be)=="number"?de.slice(0,ie):de)+"..."):ae),x.disabled=!1}catch(ce){K.className="jsoneditor-transform-preview jsoneditor-error",K.value=ce.toString(),x.disabled=!0}var de,ae,be,ie},300);function le(ve,de){try{U.value=O(ve,de),x.disabled=!1,ne()}catch(ae){ve='Error: an error happened when executing "createQuery": '+(ae.message||ae.toString()),U.value="",x.disabled=!0,K.className="jsoneditor-transform-preview jsoneditor-error",K.value=ve}}function oe(){var ve={};if(P.value&&$.value&&L.value&&(ve.filter={field:P.value,relation:$.value,value:L.value}),V.value&&H.value&&(ve.sort={field:V.value,direction:H.value}),Q.value){for(var de,ae=[],be=0;be<Q.options.length;be++)Q.options[be].selected&&(de=Q.options[be].value,ae.push(de));ve.projection={fields:ae}}le(S,ve)}U.oninput=ne,x.onclick=function(ve){ve.preventDefault(),ve.stopPropagation(),D.close(),_(U.value)},le(S,{}),setTimeout(function(){U.select(),U.focus(),U.selectionStart=3,U.selectionEnd=3})}).afterClose(function(D){D.destroy()}).show()}},8458:function(o,_,s){s.r(_),s.d(_,{textModeMixins:function(){return D}});var l=s(1262),_=s(8170),u=s.n(_),c=s(4188),d=s(6436),h=s(2474),f=s(7907),g=s(6056),b=s(6617),v=s(6210),m=s(2558),w=s(9125),k=s(7026),T=s(9791);function S(C){return(S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x})(C)}function I(C,x){for(var P=0;P<x.length;P++){var $=x[P];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(C,function(L){return L=function(V,H){if(S(V)!=="object"||V===null)return V;var Q=V[Symbol.toPrimitive];if(Q===void 0)return(H==="string"?String:Number)(V);if(Q=Q.call(V,H||"default"),S(Q)!=="object")return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}(L,"string"),S(L)==="symbol"?L:String(L)}($.key),$)}}var O=function(){function C($,L){if(!(this instanceof C))throw new TypeError("Cannot call a class as a function");this.schema=$,this.schemaRefs=L||{},this.suggestions={},this.suggestionsRefs={},this._buildSuggestions()}var x,P;return x=C,(P=[{key:"_buildSuggestions",value:function(){for(var $ in this._handleSchemaEntry("",this.schema,this.suggestions),this.schemaRefs)this.suggestionsRefs[$]={},this._handleSchemaEntry("",this.schemaRefs[$],this.suggestionsRefs[$])}},{key:"_handleRef",value:function($,L,V){V[$]=V[$]||{},V[$].refs=V[$].refs||[],V[$].refs=(0,T.uniqueMergeArrays)(V[$].refs,[L])}},{key:"_handleSchemaEntry",value:function($,L,V){if(L)if(L.$ref)this._handleRef($,L.$ref,V);else{var H=this._checkOfConditon(L);if(H)this._handleOfCondition($,L[H],V);else switch(L.type){case"object":this._handleObject($,L,V);break;case"string":case"number":case"integer":this._handlePrimitive($,L,V);break;case"boolean":this._handleBoolean($,L,V);break;case"array":this._handleArray($,L,V)}}else console.error("SchemaTextCompleter: schema node is missing for path",$)}},{key:"_handleObject",value:function($,L,V){var H,Q=this;(0,T.isObject)(L.properties)&&(H=Object.keys(L.properties),V[$]=V[$]||{},V[$].props=V[$].props||[],V[$].props=(0,T.uniqueMergeArrays)(V[$].props,H),H.forEach(function(U){(0,T.asyncExec)(function(){Q._handleSchemaEntry("".concat($,"/").concat(U),L.properties[U],V)})}))}},{key:"_handlePrimitive",value:function($,L,V){V[$]=V[$]||{},(0,T.isArray)(L.examples)&&(V[$].examples=V[$].examples||[],V[$].examples=(0,T.uniqueMergeArrays)(V[$].examples,L.examples)),(0,T.isArray)(L.enum)&&(V[$].enum=V[$].enum||[],V[$].enum=(0,T.uniqueMergeArrays)(V[$].enum,L.enum))}},{key:"_handleBoolean",value:function($,L,V){V[$]||(V[$]={bool:[!0,!1]})}},{key:"_handleArray",value:function($,L,V){var H=this;L.items&&(0,T.asyncExec)(function(){H._handleSchemaEntry("".concat($,"/\\d+"),L.items,V)})}},{key:"_handleOfCondition",value:function($,L,V){var H=this;L&&L.length&&L.forEach(function(Q){(0,T.asyncExec)(function(){H._handleSchemaEntry($,Q,V)})})}},{key:"_checkOfConditon",value:function($){if($)return $.oneOf?"oneOf":$.anyOf?"anyOf":$.allOf?"allOf":void 0}},{key:"getCompletions",value:function($,L,V,H,Q){var U=this;try{var K=k.parse(L.getValue()).pointers||{},J=function(ue){function ee(G){var ne,le={props:"property",enum:"enum",bool:"boolean",examples:"examples"};ue&&(ne=ue[G])!=null&&ne.length&&(N=N.concat(ue[G].map(function(oe){return{caption:oe+"",meta:"schema [".concat(le[G],"]"),score:q++,value:oe+""}})))}var N=[],q=0;ee("props"),ee("enum"),ee("bool"),ee("examples"),N.length&&Q(null,N)};Object.keys(K).forEach(function(ue){(0,T.asyncExec)(function(){function ee(G,ne,le){var oe,ve=Object.keys(ne).reduce(function(ie,ce){return new RegExp("^".concat(le).concat(ce)).test(G)&&(!ie||ie.length<ce.length)?ce:ie});if(typeof ve=="string"){if((oe=ne[ve])!=null&&(oe=oe.refs)!=null&&oe.length){var de,ae={};for(de in ne[ve].refs){var be=ne[ve].refs[de];U.suggestionsRefs[be]&&((be=ee(G,U.suggestionsRefs[be],"".concat(le).concat(ve)))!=null&&be.enum&&(ae.enum=(0,T.uniqueMergeArrays)(ae.enum,be.enum)),be!=null&&be.examples&&(ae.examples=(0,T.uniqueMergeArrays)(ae.examples,be.examples)),be!=null&&be.bool&&(ae.bool=(0,T.uniqueMergeArrays)(ae.bool,be.bool)),be!=null)&&be.props&&(ae.props=(0,T.uniqueMergeArrays)(ae.props,be.props))}return ae}if(new RegExp("^".concat(le).concat(ve,"$")).test(G))return ne[ve]}}var N,q;((q=K[ue].key)==null?void 0:q.line)===V.row&&V.column>=K[ue].key.column&&V.column<=K[ue].keyEnd.column&&(N=ue.slice(0,ue.lastIndexOf("/"))),(N=((q=K[ue].value)==null?void 0:q.line)===V.row&&((q=K[ue].value)==null?void 0:q.line)===((q=K[ue].valueEnd)==null?void 0:q.line)&&V.column>=K[ue].value.column&&V.column<=K[ue].valueEnd.column?ue:N)&&(q=ee(N,U.suggestions,""),J(q))})})}catch{}}}])&&I(x.prototype,P),Object.defineProperty(x,"prototype",{writable:!1}),C}();function y(C){return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x})(C)}var _={},A="ace/theme/jsoneditor";function R(){try{this.format()}catch{}}_.create=function(Q){var x,P,$,L=this,V=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},U=(V.statusBar===void 0&&(V.statusBar=!0),V.mainMenuBar=V.mainMenuBar!==!1,V.enableSort=V.enableSort!==!1,V.enableTransform=V.enableTransform!==!1,V.createQuery=V.createQuery||g.r,V.executeQuery=V.executeQuery||g.J,V.showErrorTable=V.showErrorTable!==void 0?V.showErrorTable:["text","preview"],typeof(this.options=V).indentation=="number"?this.indentation=Number(V.indentation):this.indentation=2,(0,f.cC)(this.options.languages),(0,f.m0)(this.options.language),V.ace||u()),H=(this.mode=V.mode==="code"?"code":"text",this.mode==="code"&&U===void 0&&(this.mode="text",console.warn("Failed to load Ace editor, falling back to plain text mode. Please use a JSONEditor bundle including Ace, or pass Ace as via the configuration option `ace`.")),this.theme=V.theme||A,this.theme===A&&U&&(0,w.O)(),V.onTextSelectionChange&&this.onTextSelectionChange(V.onTextSelectionChange),this),Q=(this.container=Q,this.dom={},this.aceEditor=void 0,this.textarea=void 0,this.validateSchema=null,this.annotations=[],this.lastSchemaErrors=void 0,this._debouncedValidate=(0,T.debounce)(this._validateAndCatch.bind(this),this.DEBOUNCE_INTERVAL),this.width=Q.clientWidth,this.height=Q.clientHeight,this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-"+this.options.mode,this.frame.onclick=function(K){K.preventDefault()},this.frame.onkeydown=function(K){H._onKeyDown(K)},{target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null}),Q=(this.frameFocusTracker=new h.R(Q),this.content=document.createElement("div"),this.content.className="jsoneditor-outer",this.options.mainMenuBar&&((0,T.addClassName)(this.content,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu),(Q=document.createElement("button")).type="button",Q.className="jsoneditor-format",Q.title=(0,f.Iu)("formatTitle"),this.menu.appendChild(Q),Q.onclick=function(){try{H.format(),H._onChange()}catch(K){H._onError(K)}},(Q=document.createElement("button")).type="button",Q.className="jsoneditor-compact",Q.title=(0,f.Iu)("compactTitle"),this.menu.appendChild(Q),Q.onclick=function(){try{H.compact(),H._onChange()}catch(K){H._onError(K)}},this.options.enableSort&&((Q=document.createElement("button")).type="button",Q.className="jsoneditor-sort",Q.title=(0,f.Iu)("sortTitleShort"),Q.onclick=function(){H._showSortModal()},this.menu.appendChild(Q)),this.options.enableTransform&&((Q=document.createElement("button")).type="button",Q.title=(0,f.Iu)("transformTitleShort"),Q.className="jsoneditor-transform",Q.onclick=function(){H._showTransformModal()},this.menu.appendChild(Q)),(Q=document.createElement("button")).type="button",Q.className="jsoneditor-repair",Q.title=(0,f.Iu)("repairTitle"),this.menu.appendChild(Q),Q.onclick=function(){try{H.repair(),H._onChange()}catch(K){H._onError(K)}},this.mode==="code"&&((Q=document.createElement("button")).type="button",Q.className="jsoneditor-undo jsoneditor-separator",Q.title=(0,f.Iu)("undo"),Q.onclick=function(){L.aceEditor.getSession().getUndoManager().undo()},this.menu.appendChild(Q),this.dom.undo=Q,(Q=document.createElement("button")).type="button",Q.className="jsoneditor-redo",Q.title=(0,f.Iu)("redo"),Q.onclick=function(){L.aceEditor.getSession().getUndoManager().redo()},this.menu.appendChild(Q),this.dom.redo=Q),this.options&&this.options.modes&&this.options.modes.length&&(this.modeSwitcher=new b.x(this.menu,this.options.modes,this.options.mode,function(K){try{H.setMode(K),H.modeSwitcher.focus()}catch(J){H._onError(J)}})),this.mode==="code")&&((x=document.createElement("a")).appendChild(document.createTextNode("powered by ace")),x.href="https://ace.c9.io/",x.target="_blank",x.className="jsoneditor-poweredBy",x.onclick=function(){window.open(x.href,x.target,"noreferrer")},this.menu.appendChild(x)),this.options.onEditable&&y(this.options.onEditable==="function")&&!this.options.onEditable({})),U=(this.frame.appendChild(this.content),this.container.appendChild(this.frame),this.mode==="code"?(this.editorDom=document.createElement("div"),this.editorDom.style.height="100%",this.editorDom.style.width="100%",this.content.appendChild(this.editorDom),$=(U=U.edit(this.editorDom)).getSession(),U.$blockScrolling=1/0,U.setTheme(this.theme),U.setOptions({readOnly:Q}),U.setShowPrintMargin(!1),U.setFontSize("14px"),$.setMode("ace/mode/json"),$.setTabSize(this.indentation),$.setUseSoftTabs(!0),$.setUseWrapMode(!0),P=$.setAnnotations,$.setAnnotations=function(K){P.call(this,K&&K.length?K:H.annotations)},U.commands.bindKey("Ctrl-L",null),U.commands.bindKey("Command-L",null),U.commands.bindKey("Ctrl-\\",null),U.commands.bindKey("Command-\\",null),U.commands.bindKey("Ctrl-Shift-\\",null),U.commands.bindKey("Command-Shift-\\",null),(this.aceEditor=U).on("change",this._onChange.bind(this)),U.on("changeSelection",this._onSelect.bind(this))):(($=document.createElement("textarea")).className="jsoneditor-text",$.spellcheck=!1,this.content.appendChild($),this.textarea=$,this.textarea.readOnly=Q,this.textarea.oninput===null?this.textarea.oninput=this._onChange.bind(this):this.textarea.onchange=this._onChange.bind(this),$.onselect=this._onSelect.bind(this),$.onmousedown=this._onMouseDown.bind(this),$.onblur=this._onBlur.bind(this)),this._updateHistoryButtons(),Array.isArray(this.options.showErrorTable)?this.options.showErrorTable.includes(this.mode):this.options.showErrorTable===!0);this.errorTable=new d.Q({errorTableVisible:U,onToggleVisibility:function(){H._validateAndCatch()},onFocusLine:function(K){H.isFocused=!0,isNaN(K)||H.setTextSelection({row:K,column:1},{row:K,column:1e3})},onChangeHeight:function(K){K=K+(H.dom.statusBar?H.dom.statusBar.clientHeight:0)+1,H.content.style.marginBottom=-K+"px",H.content.style.paddingBottom=K+"px"}}),this.frame.appendChild(this.errorTable.getErrorTable()),V.statusBar&&((0,T.addClassName)(this.content,"has-status-bar"),this.curserInfoElements={},Q=document.createElement("div"),(this.dom.statusBar=Q).className="jsoneditor-statusbar",this.frame.appendChild(Q),($=document.createElement("span")).className="jsoneditor-curserinfo-label",$.innerText="Ln:",(U=document.createElement("span")).className="jsoneditor-curserinfo-val",U.innerText="1",Q.appendChild($),Q.appendChild(U),(V=document.createElement("span")).className="jsoneditor-curserinfo-label",V.innerText="Col:",($=document.createElement("span")).className="jsoneditor-curserinfo-val",$.innerText="1",Q.appendChild(V),Q.appendChild($),this.curserInfoElements.colVal=$,this.curserInfoElements.lnVal=U,(V=document.createElement("span")).className="jsoneditor-curserinfo-label",V.innerText="characters selected",V.style.display="none",($=document.createElement("span")).className="jsoneditor-curserinfo-count",$.innerText="0",$.style.display="none",this.curserInfoElements.countLabel=V,this.curserInfoElements.countVal=$,Q.appendChild($),Q.appendChild(V),Q.appendChild(this.errorTable.getErrorCounter()),Q.appendChild(this.errorTable.getWarningIcon()),Q.appendChild(this.errorTable.getErrorIcon())),this.setSchema(this.options.schema,this.options.schemaRefs)},_._onSchemaChange=function(C,x){this.aceEditor&&(this.options.allowSchemaSuggestions&&C?(this.aceEditor.setOption("enableBasicAutocompletion",[new O(C,x)]),this.aceEditor.setOption("enableLiveAutocompletion",!0)):(this.aceEditor.setOption("enableBasicAutocompletion",void 0),this.aceEditor.setOption("enableLiveAutocompletion",!1)))},_._onChange=function(){var C=this;if(!this.onChangeDisabled){if(setTimeout(function(){C._updateHistoryButtons&&C._updateHistoryButtons()}),this._debouncedValidate(),this.options.onChange)try{this.options.onChange()}catch(x){console.error("Error in onChange callback: ",x)}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch(x){console.error("Error in onChangeText callback: ",x)}}},_._updateHistoryButtons=function(){var C;this.aceEditor&&this.dom.undo&&this.dom.redo&&(C=this.aceEditor.getSession().getUndoManager())&&C.hasUndo&&C.hasRedo&&(this.dom.undo.disabled=!C.hasUndo(),this.dom.redo.disabled=!C.hasRedo())},_._showSortModal=function(){try{var C=this,x=this.options.modalAnchor||c.qD,P=this.get();(0,v.showSortModal)(x,P,function($){var L;Array.isArray(P)&&(L=(0,T.sort)(P,$.path,$.direction),C.sortedBy=$,C.update(L)),(0,T.isObject)(P)&&(L=(0,T.sortObjectKeys)(P,$.direction),C.sortedBy=$,C.update(L))},C.sortedBy)}catch($){this._onError($)}},_._showTransformModal=function(){var C=this;try{var x=this.options,P=x.modalAnchor,$=x.createQuery,L=x.executeQuery,V=x.queryDescription,H=this.get();(0,m.showTransformModal)({container:P||c.qD,json:H,queryDescription:V,createQuery:$,executeQuery:L,onTransform:function(Q){Q=L(H,Q),C.update(Q)}})}catch(Q){this._onError(Q)}},_._onSelect=function(){this._updateCursorInfo(),this._emitSelectionChange()},_._onKeyDown=function(C){var x=!1;(C.which||C.keyCode)===73&&C.ctrlKey&&(C.shiftKey?this.compact():this.format(),this._onChange(),x=!0),x&&(C.preventDefault(),C.stopPropagation()),this._updateCursorInfo(),this._emitSelectionChange()},_._onMouseDown=function(){this._updateCursorInfo(),this._emitSelectionChange()},_._onBlur=function(){var C=this;setTimeout(function(){C.isFocused||(C._updateCursorInfo(),C._emitSelectionChange()),C.isFocused=!1})},_._updateCursorInfo=function(){var C,x,P,$,L,V=this;function H(){V.curserInfoElements.countVal.innerText!==L&&(V.curserInfoElements.countVal.innerText=L,V.curserInfoElements.countVal.style.display=L?"inline":"none",V.curserInfoElements.countLabel.style.display=L?"inline":"none"),V.curserInfoElements.lnVal.innerText=P,V.curserInfoElements.colVal.innerText=$}this.textarea?setTimeout(function(){var Q=(0,T.getInputSelection)(V.textarea);Q.startIndex!==Q.endIndex&&(L=Q.endIndex-Q.startIndex),$=(L&&V.cursorInfo&&V.cursorInfo.line===Q.end.row&&V.cursorInfo.column===Q.end.column?(P=Q.start.row,Q.start):(P=Q.end.row,Q.end)).column,V.cursorInfo={line:P,column:$,count:L},V.options.statusBar&&H()},0):this.aceEditor&&this.curserInfoElements&&(C=this.aceEditor.getCursorPosition(),x=this.aceEditor.getSelectedText(),P=C.row+1,$=C.column+1,L=x.length,V.cursorInfo={line:P,column:$,count:L},this.options.statusBar)&&H()},_._emitSelectionChange=function(){var C;this._selectionChangedHandler&&(C=this.getTextSelection(),this._selectionChangedHandler(C.start,C.end,C.text))},_._refreshAnnotations=function(){var C,x=this.aceEditor&&this.aceEditor.getSession();x&&(C=x.getAnnotations().filter(function(P){return P.type==="error"}),x.setAnnotations(C))},_.destroy=function(){this.aceEditor&&(this.aceEditor.destroy(),this.aceEditor=null),this.frame&&this.container&&this.frame.parentNode===this.container&&this.container.removeChild(this.frame),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this.textarea=null,this._debouncedValidate=null,this.frameFocusTracker.destroy()},_.compact=function(){var C=this.get(),C=JSON.stringify(C);this.updateText(C)},_.format=function(){var C=this.get(),C=JSON.stringify(C,null,this.indentation);this.updateText(C)},_.repair=function(){var C=this.getText();try{var x=(0,l.K)(C);this.updateText(x)}catch{}},_.focus=function(){this.textarea&&this.textarea.focus(),this.aceEditor&&this.aceEditor.focus()},_.resize=function(){this.aceEditor&&this.aceEditor.resize(!1)},_.set=function(C){this.setText(JSON.stringify(C,null,this.indentation))},_.update=function(C){this.updateText(JSON.stringify(C,null,this.indentation))},_.get=function(){var C=this.getText();return(0,T.parse)(C)},_.getText=function(){return this.textarea?this.textarea.value:this.aceEditor?this.aceEditor.getValue():""},_._setText=function(L,x){var P,$=this,L=this.options.escapeUnicode===!0?(0,T.escapeUnicodeChars)(L):L;this.textarea&&(this.textarea.value=L),this.aceEditor&&(this.onChangeDisabled=!0,this.aceEditor.setValue(L,-1),this.onChangeDisabled=!1,x&&(P=this,setTimeout(function(){P.aceEditor&&P.aceEditor.session.getUndoManager().reset()})),setTimeout(function(){$._updateHistoryButtons&&$._updateHistoryButtons()})),this._debouncedValidate()},_.setText=function(C){this._setText(C,!0)},_.updateText=function(C){this.getText()!==C&&this._setText(C,!1)},_.validate=function(){var C,x=this,P=[],$=[];try{var L=this.get(),V=(this.validateSchema&&!this.validateSchema(L)&&(P=this.validateSchema.errors.map(function(Q){return Q.type="validation",(0,T.improveSchemaError)(Q)})),this.validationSequence=(this.validationSequence||0)+1,this),H=this.validationSequence;return function(Q,U){if(!U)return Promise.resolve([]);try{var K=U(Q);return((0,T.isPromise)(K)?K:Promise.resolve(K)).then(function(J){return Array.isArray(J)?J.filter(function(ue){var ee=(0,T.isValidValidationError)(ue);return ee||console.warn('Ignoring a custom validation error with invalid structure. Expected structure: {path: [...], message: "..."}. Actual error:',ue),ee}).map(function(ue){return{dataPath:(0,T.stringifyPath)(ue.path),message:ue.message,type:"customValidation"}}):[]})}catch(J){return Promise.reject(J)}}(L,this.options.onValidate).then(function(Q){return H===V.validationSequence&&(Q=P.concat($).concat(Q),V._renderErrors(Q),typeof x.options.onValidationError=="function"&&(0,T.isValidationErrorChanged)(Q,x.lastSchemaErrors)&&x.options.onValidationError.call(x,Q),x.lastSchemaErrors=Q),x.lastSchemaErrors})}catch(Q){return this.getText()&&((L=/\w*line\s*(\d+)\w*/g.exec(Q.message))&&(C=+L[1]),$=[{type:"error",message:Q.message.replace(/\n/g,"<br>"),line:C}]),this._renderErrors($),typeof this.options.onValidationError=="function"&&(0,T.isValidationErrorChanged)($,this.lastSchemaErrors)&&this.options.onValidationError.call(this,$),this.lastSchemaErrors=$,Promise.resolve(this.lastSchemaErrors)}},_._validateAndCatch=function(){this.validate().catch(function(C){console.error("Error running validation:",C)})},_._renderErrors=function(C){var P=this.getText(),x=[],P=(C.reduce(function($,L){return typeof L.dataPath=="string"&&$.indexOf(L.dataPath)===-1&&$.push(L.dataPath),$},x),(0,T.getPositionForPath)(P,x));this.aceEditor&&(this.annotations=P.map(function($){var L=C.filter(function(H){return H.dataPath===$.path}),V=L.map(function(H){return H.message}).join(`
|
|
`);return V?{row:$.line,column:$.column,text:"Schema validation error"+(L.length!==1?"s":"")+`:
|
|
`+V,type:"warning",source:"jsoneditor"}:{}}),this._refreshAnnotations()),this.errorTable.setErrors(C,P),this.aceEditor&&this.aceEditor.resize(!1)},_.getTextSelection=function(){var C,x,P,$={};return this.textarea?(P=(0,T.getInputSelection)(this.textarea),this.cursorInfo&&this.cursorInfo.line===P.end.row&&this.cursorInfo.column===P.end.column?($.start=P.end,$.end=P.start):$=P,{start:$.start,end:$.end,text:this.textarea.value.substring(P.startIndex,P.endIndex)}):this.aceEditor?(P=this.aceEditor.getSelection(),C=this.aceEditor.getSelectedText(),x=P.getRange(),(P=P.getSelectionLead()).row===x.end.row&&P.column===x.end.column?$=x:($.start=x.end,$.end=x.start),{start:{row:$.start.row+1,column:$.start.column+1},end:{row:$.end.row+1,column:$.end.column+1},text:C}):void 0},_.onTextSelectionChange=function(C){typeof C=="function"&&(this._selectionChangedHandler=(0,T.debounce)(C,this.DEBOUNCE_INTERVAL))},_.setTextSelection=function(C,x){var P,$,L;C&&x&&(this.textarea?(P=(0,T.getIndexForPosition)(this.textarea,C.row,C.column),L=(0,T.getIndexForPosition)(this.textarea,x.row,x.column),-1<P&&-1<L&&(this.textarea.setSelectionRange?(this.textarea.focus(),this.textarea.setSelectionRange(P,L)):this.textarea.createTextRange&&(($=this.textarea.createTextRange()).collapse(!0),$.moveEnd("character",L),$.moveStart("character",P),$.select()),L=(this.textarea.value.match(/\n/g)||[]).length+1,P=this.textarea.scrollHeight/L,$=C.row*P,this.textarea.scrollTop=$>this.textarea.clientHeight?$-this.textarea.clientHeight/2:0)):this.aceEditor&&(L={start:{row:C.row-1,column:C.column-1},end:{row:x.row-1,column:x.column-1}},this.aceEditor.selection.setRange(L),this.aceEditor.scrollToLine(C.row-1,!0)))};var D=[{mode:"text",mixin:_,data:"text",load:R},{mode:"code",mixin:_,data:"text",load:R}]},8038:function(o,ve,ae){ae.r(ve),ae.d(ve,{treeModeMixins:function(){return be}});var l={start:function(ie,ce,pe){return ce.indexOf(ie)===0},contain:function(ie,ce,pe){return-1<ce.indexOf(ie)}},u=ae(897),c=ae(2474);function d(ie){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(ie)}function h(ie,ce){for(var pe=0;pe<ce.length;pe++){var X=ce[pe];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(ie,function(Z){return Z=function(Y,se){if(d(Y)!=="object"||Y===null)return Y;var fe=Y[Symbol.toPrimitive];if(fe===void 0)return(se==="string"?String:Number)(Y);if(fe=fe.call(Y,se||"default"),d(fe)!=="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}(Z,"string"),d(Z)==="symbol"?Z:String(Z)}(X.key),X)}}var f=function(){function ie(){if(!(this instanceof ie))throw new TypeError("Cannot call a class as a function");this.locked=!1}var ce,pe;return ce=ie,(pe=[{key:"highlight",value:function(X){this.locked||(this.node!==X&&(this.node&&this.node.setHighlight(!1),this.node=X,this.node.setHighlight(!0)),this._cancelUnhighlight())}},{key:"unhighlight",value:function(){var X;this.locked||(X=this).node&&(this._cancelUnhighlight(),this.unhighlightTimer=setTimeout(function(){X.node.setHighlight(!1),X.node=void 0,X.unhighlightTimer=void 0},0))}},{key:"_cancelUnhighlight",value:function(){this.unhighlightTimer&&(clearTimeout(this.unhighlightTimer),this.unhighlightTimer=void 0)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}}])&&h(ce.prototype,pe),Object.defineProperty(ce,"prototype",{writable:!1}),ie}(),g=ae(7907),b=ae(6056),v=ae(6617),ve=ae(233),m=ae.n(ve),w=ae(2602),k=ae(9791),T=ae(6210),S=ae(2558),I=ae(4188);function O(ie){return function(ce){if(Array.isArray(ce))return R(ce)}(ie)||function(ce){if(typeof Symbol<"u"&&ce[Symbol.iterator]!=null||ce["@@iterator"]!=null)return Array.from(ce)}(ie)||A(ie)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function y(ie,ce){return function(pe){if(Array.isArray(pe))return pe}(ie)||function(pe,X){var Z=pe==null?null:typeof Symbol<"u"&&pe[Symbol.iterator]||pe["@@iterator"];if(Z!=null){var Y,se,fe,me,Ae=[],Be=!0,Ye=!1;try{if(fe=(Z=Z.call(pe)).next,X!==0)for(;!(Be=(Y=fe.call(Z)).done)&&(Ae.push(Y.value),Ae.length!==X);Be=!0);}catch(Qe){Ye=!0,se=Qe}finally{try{if(!Be&&Z.return!=null&&(me=Z.return(),Object(me)!==me))return}finally{if(Ye)throw se}}return Ae}}(ie,ce)||A(ie,ce)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _(ie,ce){var pe,X,Z,Y,se=typeof Symbol<"u"&&ie[Symbol.iterator]||ie["@@iterator"];if(se)return X=!(pe=!0),{s:function(){se=se.call(ie)},n:function(){var fe=se.next();return pe=fe.done,fe},e:function(fe){X=!0,Z=fe},f:function(){try{pe||se.return==null||se.return()}finally{if(X)throw Z}}};if(Array.isArray(ie)||(se=A(ie))||ce&&ie&&typeof ie.length=="number")return se&&(ie=se),Y=0,{s:ce=function(){},n:function(){return Y>=ie.length?{done:!0}:{done:!1,value:ie[Y++]}},e:function(fe){throw fe},f:ce};throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(ie,ce){var pe;if(ie)return typeof ie=="string"?R(ie,ce):(pe=(pe=Object.prototype.toString.call(ie).slice(8,-1))==="Object"&&ie.constructor?ie.constructor.name:pe)==="Map"||pe==="Set"?Array.from(ie):pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe)?R(ie,ce):void 0}function R(ie,ce){(ce==null||ce>ie.length)&&(ce=ie.length);for(var pe=0,X=new Array(ce);pe<ce;pe++)X[pe]=ie[pe];return X}function D(ie){return(D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(ie)}function C(ie,ce){for(var pe=0;pe<ce.length;pe++){var X=ce[pe];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(ie,function(Z){return Z=function(Y,se){if(D(Y)!=="object"||Y===null)return Y;var fe=Y[Symbol.toPrimitive];if(fe===void 0)return(se==="string"?String:Number)(Y);if(fe=fe.call(Y,se||"default"),D(fe)!=="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}(Z,"string"),D(Z)==="symbol"?Z:String(Z)}(X.key),X)}}var x=function(){function ie(X,Z){if(!(this instanceof ie))throw new TypeError("Cannot call a class as a function");this.editor=X,this.dom={},this.expanded=!1,Z&&Z instanceof Object?(this.setField(Z.field,Z.fieldEditable),"value"in Z&&this.setValue(Z.value,Z.type),"internalValue"in Z&&this.setInternalValue(Z.internalValue)):(this.setField(""),this.setValue(null)),this._debouncedOnChangeValue=(0,k.debounce)(this._onChangeValue.bind(this),ie.prototype.DEBOUNCE_INTERVAL),this._debouncedOnChangeField=(0,k.debounce)(this._onChangeField.bind(this),ie.prototype.DEBOUNCE_INTERVAL),this.visibleChilds=this.getMaxVisibleChilds()}var ce,pe;return ce=ie,(pe=[{key:"getMaxVisibleChilds",value:function(){return this.editor&&this.editor.options&&this.editor.options.maxVisibleChilds?this.editor.options.maxVisibleChilds:P}},{key:"_updateEditability",value:function(){var X,Z;this.editable={field:!0,value:!0},this.editor&&(this.editable.field=this.editor.options.mode==="tree",this.editable.value=this.editor.options.mode!=="view",this.editor.options.mode!=="tree"&&this.editor.options.mode!=="form"||typeof this.editor.options.onEditable!="function"||(X=this.getValue.bind(this),typeof(Z=this.editor.options.onEditable({field:this.field,get value(){return X()},path:this.getPath()}))=="boolean"?(this.editable.field=Z,this.editable.value=Z):D(Z)==="object"&&Z!==null?(typeof Z.field=="boolean"&&(this.editable.field=Z.field),typeof Z.value=="boolean"&&(this.editable.value=Z.value)):(console.error("Invalid return value for function onEditable.","Actual value:",Z,".","Either a boolean or object { field: boolean, value: boolean } expected."),this.editable.field=!1,this.editable.value=!1)))}},{key:"getPath",value:function(){for(var X=this,Z=[];X;){var Y=X.getName();Y!==void 0&&Z.unshift(Y),X=X.parent}return Z}},{key:"getInternalPath",value:function(){for(var X=this,Z=[];X;)X.parent&&Z.unshift(X.getIndex()),X=X.parent;return Z}},{key:"getName",value:function(){return this.parent?this.parent.type!=="array"?this.field:this.index:void 0}},{key:"findNodeByPath",value:function(X){if(X){if(X.length===0)return this;if(X.length&&this.childs&&this.childs.length){for(var Z=0;Z<this.childs.length;++Z)if(""+X[0]==""+this.childs[Z].getName())return this.childs[Z].findNodeByPath(X.slice(1))}}}},{key:"findNodeByInternalPath",value:function(X){if(X){for(var se=this,Z=0;Z<X.length&&se;Z++)var Y=X[Z],se=se.childs[Y];return se}}},{key:"serialize",value:function(){return{value:this.getValue(),path:this.getPath()}}},{key:"findNode",value:function(X){for(var Z=(0,k.parsePath)(X),Y=this;Y&&0<Z.length;)(function(){var se=Z.shift();if(typeof se=="number"){if(Y.type!=="array")throw new Error("Cannot get child node at index "+se+": node is no array");Y=Y.childs[se]}else{if(Y.type!=="object")throw new Error("Cannot get child node "+se+": node is no object");Y=Y.childs.filter(function(fe){return fe.field===se})[0]}})();return Y}},{key:"findParents",value:function(){for(var X=[],Z=this.parent;Z;)X.unshift(Z),Z=Z.parent;return X}},{key:"setError",value:function(X,Z){this.error=X,this.errorChild=Z,this.dom&&this.dom.tr&&this.updateError()}},{key:"updateError",value:function(){var X=this,Z=this.fieldError||this.valueError||this.error,Y=this.dom.tdError;if(Z&&this.dom&&this.dom.tr){(0,k.addClassName)(this.dom.tr,"jsoneditor-validation-error"),Y||(Y=document.createElement("td"),this.dom.tdError=Y,this.dom.tdValue.parentNode.appendChild(Y));var se=document.createElement("button"),fe=(se.type="button",se.className="jsoneditor-button jsoneditor-schema-error",function(){X.dom.popupAnchor&&X.dom.popupAnchor.destroy()}),me=function(){delete X.dom.popupAnchor},Ae=function(nt){var Qe=X.editor.frame,nt=(X.dom.popupAnchor=(0,w.w)(se,X.editor.getPopupAnchor(),me,nt),se.getBoundingClientRect()),Qe=120<Qe.getBoundingClientRect().width-nt.x?"jsoneditor-above":"jsoneditor-left",nt=document.createElement("div");nt.className="jsoneditor-popover "+Qe,nt.appendChild(document.createTextNode(Z.message)),X.dom.popupAnchor.appendChild(nt)},Be=(se.onmouseover=function(){X.dom.popupAnchor||Ae(!0)},se.onfocus=function(){fe(),Ae(!1)},se.onblur=function(){fe()},this.errorChild);for(Be&&(se.onclick=function(){Be.findParents().forEach(function(Ye){Ye.expand(!1)}),Be.scrollTo(function(){Be.focus()})});Y.firstChild;)Y.removeChild(Y.firstChild);Y.appendChild(se)}else this.dom.tr&&(0,k.removeClassName)(this.dom.tr,"jsoneditor-validation-error"),Y&&(this.dom.tdError.parentNode.removeChild(this.dom.tdError),delete this.dom.tdError)}},{key:"getIndex",value:function(){var X;return this.parent?(X=this.parent.childs.indexOf(this))!==-1?X:null:-1}},{key:"setParent",value:function(X){this.parent=X}},{key:"setField",value:function(X,Z){this.field=X,this.previousField=X,this.fieldEditable=Z===!0}},{key:"getField",value:function(){return this.field===void 0&&this._getDomField(),this.field}},{key:"setValue",value:function(X,Z){var Y,se,fe,me,Ae,Be,Ye=this.childs;if(this.type=this._getType(X),Z&&Z!==this.type){if(Z!=="string"||this.type!=="auto")throw new Error('Type mismatch: cannot cast value of type "'+this.type+' to the specified type "'+Z+'"');this.type=Z}if(this.type==="array"){for(this.childs||(this.childs=[]),Y=0;Y<X.length;Y++)(Ae=X[Y])===void 0||Ae instanceof Function||(Y<this.childs.length?((fe=this.childs[Y]).fieldEditable=!1,fe.index=Y,fe.setValue(Ae)):(fe=new ie(this.editor,{value:Ae}),me=Y<this.getMaxVisibleChilds(),this.appendChild(fe,me,!1)));for(se=this.childs.length;se>=X.length;se--)this.removeChild(this.childs[se],!1)}else if(this.type==="object"){for(this.childs||(this.childs=[]),se=this.childs.length-1;0<=se;se--)V(X,this.childs[se].field)||this.removeChild(this.childs[se],!1);for(var Qe in Y=0,X)V(X,Qe)&&((Ae=X[Qe])===void 0||Ae instanceof Function||((Be=this.findChildByProperty(Qe))?(Be.setField(Qe,!0),Be.setValue(Ae)):(Be=new ie(this.editor,{field:Qe,value:Ae}),Qe=Y<this.getMaxVisibleChilds(),this.appendChild(Be,Qe,!1))),Y++);!(this.value="")===this.editor.options.sortObjectKeys&&this.sort([],"asc",!1)}else this.hideChilds(),delete this.append,delete this.showMore,delete this.expanded,delete this.childs,this.value=X;Array.isArray(Ye)!==Array.isArray(this.childs)&&this.recreateDom(),this.updateDom({updateIndexes:!0}),this.previousValue=this.value}},{key:"setInternalValue",value:function(X){var Z,Y,se,fe,me,Ae=this.childs;if(this.type=X.type,X.type==="array"){for(this.childs||(this.childs=[]),fe=0;fe<X.childs.length;fe++)(Z=X.childs[fe])===void 0||Z instanceof Function||(fe<this.childs.length?((Y=this.childs[fe]).fieldEditable=!1,Y.index=fe,Y.setInternalValue(Z)):(Y=new ie(this.editor,{internalValue:Z}),se=fe<this.getMaxVisibleChilds(),this.appendChild(Y,se,!1)));for(me=this.childs.length;me>=X.childs.length;me--)this.removeChild(this.childs[me],!1)}else if(X.type==="object"){for(this.childs||(this.childs=[]),fe=0;fe<X.childs.length;fe++)(Z=X.childs[fe])===void 0||Z instanceof Function||(fe<this.childs.length?(delete(Y=this.childs[fe]).index,Y.setField(Z.field,!0),Y.setInternalValue(Z.value)):(Y=new ie(this.editor,{field:Z.field,internalValue:Z.value}),se=fe<this.getMaxVisibleChilds(),this.appendChild(Y,se,!1)));for(me=this.childs.length;me>=X.childs.length;me--)this.removeChild(this.childs[me],!1)}else this.hideChilds(),delete this.append,delete this.showMore,delete this.expanded,delete this.childs,this.value=X.value;Array.isArray(Ae)!==Array.isArray(this.childs)&&this.recreateDom(),this.updateDom({updateIndexes:!0}),this.previousValue=this.value}},{key:"recreateDom",value:function(){var X;this.dom&&this.dom.tr&&this.dom.tr.parentNode?(X=this._detachFromDom(),this.clearDom(),this._attachToDom(X)):this.clearDom()}},{key:"getValue",value:function(){var X,Z;return this.type==="array"?(X=[],this.childs.forEach(function(Y){X.push(Y.getValue())}),X):this.type==="object"?(Z={},this.childs.forEach(function(Y){Z[Y.getField()]=Y.getValue()}),Z):(this.value===void 0&&this._getDomValue(),this.value)}},{key:"getInternalValue",value:function(){return this.type==="array"?{type:this.type,childs:this.childs.map(function(X){return X.getInternalValue()})}:this.type==="object"?{type:this.type,childs:this.childs.map(function(X){return{field:X.getField(),value:X.getInternalValue()}})}:(this.value===void 0&&this._getDomValue(),{type:this.type,value:this.value})}},{key:"getLevel",value:function(){return this.parent?this.parent.getLevel()+1:0}},{key:"getNodePath",value:function(){var X=this.parent?this.parent.getNodePath():[];return X.push(this),X}},{key:"clone",value:function(){var X,Z;return(X=new ie(this.editor)).type=this.type,X.field=this.field,X.fieldInnerText=this.fieldInnerText,X.fieldEditable=this.fieldEditable,X.previousField=this.previousField,X.value=this.value,X.valueInnerText=this.valueInnerText,X.previousValue=this.previousValue,X.expanded=this.expanded,X.visibleChilds=this.visibleChilds,this.childs?(Z=[],this.childs.forEach(function(Y){Y=Y.clone(),Y.setParent(X),Z.push(Y)}),X.childs=Z):X.childs=void 0,X}},{key:"expand",value:function(X){this.childs&&(this.expanded=!0,this.dom.expand&&(this.dom.expand.className="jsoneditor-button jsoneditor-expanded"),this.showChilds(),X!==!1&&this.childs.forEach(function(Z){Z.expand(X)}),this.updateDom({recurse:!1}))}},{key:"collapse",value:function(X){this.childs&&(this.hideChilds(),X!==!1&&this.childs.forEach(function(Z){Z.collapse(X)}),this.dom.expand&&(this.dom.expand.className="jsoneditor-button jsoneditor-collapsed"),this.expanded=!1,this.updateDom({recurse:!1}))}},{key:"showChilds",value:function(){var X=this.childs;if(X&&this.expanded){var X=this.dom.tr,Z=X?X.parentNode:void 0;if(Z){for(var Y=this.getAppendDom(),se=(Y.parentNode||((fe=X.nextSibling)?Z.insertBefore(Y,fe):Z.appendChild(Y)),Math.min(this.childs.length,this.visibleChilds)),fe=this._getNextTr(),me=0;me<se;me++){var Ae=this.childs[me];Ae.getDom().parentNode||Z.insertBefore(Ae.getDom(),fe),Ae.showChilds()}X=this.getShowMoreDom(),fe=this._getNextTr(),X.parentNode||Z.insertBefore(X,fe),this.showMore.updateDom()}}}},{key:"_getNextTr",value:function(){return this.showMore&&this.showMore.getDom().parentNode?this.showMore.getDom():this.append&&this.append.getDom().parentNode?this.append.getDom():void 0}},{key:"hide",value:function(X){var Z=this.dom.tr,Y=Z?Z.parentNode:void 0;Y&&Y.removeChild(Z),this.dom.popupAnchor&&this.dom.popupAnchor.destroy(),this.hideChilds(X)}},{key:"hideChilds",value:function(X){var Z;this.childs&&this.expanded&&((Z=this.getAppendDom()).parentNode&&Z.parentNode.removeChild(Z),this.childs.forEach(function(Y){Y.hide()}),(Z=this.getShowMoreDom()).parentNode&&Z.parentNode.removeChild(Z),X&&!X.resetVisibleChilds||(this.visibleChilds=this.getMaxVisibleChilds()))}},{key:"_updateCssClassName",value:function(){var X,Z;this.dom.field&&this.editor&&this.editor.options&&typeof this.editor.options.onClassName=="function"&&this.dom.tree&&((0,k.removeAllClassNames)(this.dom.tree),X=this.getValue.bind(this),Z=this.editor.options.onClassName({path:this.getPath(),field:this.field,get value(){return X()}})||"",(0,k.addClassName)(this.dom.tree,"jsoneditor-values "+Z))}},{key:"recursivelyUpdateCssClassesOnNodes",value:function(){if(this._updateCssClassName(),Array.isArray(this.childs))for(var X=0;X<this.childs.length;X++)this.childs[X].recursivelyUpdateCssClassesOnNodes()}},{key:"expandTo",value:function(){for(var X=this.parent;X;)X.expanded||X.expand(),X=X.parent}},{key:"appendChild",value:function(X,Z,Y){var se,fe;this._hasChilds()&&(X.setParent(this),X.fieldEditable=this.type==="object",this.type==="array"&&(X.index=this.childs.length),this.type==="object"&&X.field===void 0&&X.setField(""),this.childs.push(X),this.expanded&&Z!==!1&&(Z=X.getDom(),fe=(se=this._getNextTr())?se.parentNode:void 0,se&&fe&&fe.insertBefore(Z,se),X.showChilds(),this.visibleChilds++),Y!==!1)&&(this.updateDom({updateIndexes:!0}),X.updateDom({recurse:!0}))}},{key:"moveBefore",value:function(X,Z,Y){var se,fe,me;this._hasChilds()&&((se=this.dom.tr?this.dom.tr.parentNode:void 0)&&((fe=document.createElement("tr")).style.height=se.clientHeight+"px",se.appendChild(fe)),X.parent&&X.parent.removeChild(X),Z instanceof H||!Z?this.childs.length+1>this.visibleChilds?(me=this.childs[this.visibleChilds-1],this.insertBefore(X,me,Y)):this.appendChild(X,!0,Y):this.insertBefore(X,Z,Y),se)&&fe&&se.removeChild(fe)}},{key:"insertBefore",value:function(X,Z,Y){if(this._hasChilds()){if(this.visibleChilds++,this.type==="object"&&X.field===void 0&&X.setField(""),Z===this.append)X.setParent(this),X.fieldEditable=this.type==="object",this.childs.push(X);else{var se=this.childs.indexOf(Z);if(se===-1)throw new Error("Node not found");X.setParent(this),X.fieldEditable=this.type==="object",this.childs.splice(se,0,X)}var fe;this.expanded&&(se=X.getDom(),fe=(Z=Z.getDom())?Z.parentNode:void 0,Z&&fe&&fe.insertBefore(se,Z),X.showChilds(),this.showChilds()),Y!==!1&&(this.updateDom({updateIndexes:!0}),X.updateDom({recurse:!0}))}}},{key:"insertAfter",value:function(X,Z){this._hasChilds()&&(Z=this.childs.indexOf(Z),(Z=this.childs[Z+1])?this.insertBefore(X,Z):this.appendChild(X))}},{key:"search",value:function(X,Z){Array.isArray(Z)||(Z=[]);var Y=X?X.toLowerCase():void 0;return delete this.searchField,delete this.searchValue,this.field!==void 0&&Z.length<=this.MAX_SEARCH_RESULTS&&(String(this.field).toLowerCase().indexOf(Y)!==-1&&(this.searchField=!0,Z.push({node:this,elem:"field"})),this._updateDomField()),this._hasChilds()?this.childs&&this.childs.forEach(function(se){se.search(X,Z)}):this.value!==void 0&&Z.length<=this.MAX_SEARCH_RESULTS&&(String(this.value).toLowerCase().indexOf(Y)!==-1&&(this.searchValue=!0,Z.push({node:this,elem:"value"})),this._updateDomValue()),Z}},{key:"scrollTo",value:function(X){this.expandPathToNode(),this.dom.tr&&this.dom.tr.parentNode&&this.editor.scrollTo(this.dom.tr.offsetTop,X)}},{key:"expandPathToNode",value:function(){for(var X=this;X&&X.parent;){for(var Z=X.parent.type==="array"?X.index:X.parent.childs.indexOf(X);X.parent.visibleChilds<Z+1;)X.parent.visibleChilds+=this.getMaxVisibleChilds();X.parent.expand(!1),X=X.parent}}},{key:"focus",value:function(X){if(ie.focusElement=X,this.dom.tr&&this.dom.tr.parentNode){var Z=this.dom;switch(X){case"drag":(Z.drag||Z.menu).focus();break;case"menu":Z.menu.focus();break;case"expand":this._hasChilds()?Z.expand.focus():Z.field&&this.fieldEditable?(Z.field.focus(),(0,k.selectContentEditable)(Z.field)):Z.value&&!this._hasChilds()?(Z.value.focus(),(0,k.selectContentEditable)(Z.value)):Z.menu.focus();break;case"field":Z.field&&this.fieldEditable?(Z.field.focus(),(0,k.selectContentEditable)(Z.field)):Z.value&&!this._hasChilds()?(Z.value.focus(),(0,k.selectContentEditable)(Z.value)):(this._hasChilds()?Z.expand:Z.menu).focus();break;default:Z.select?Z.select.focus():Z.value&&!this._hasChilds()?(Z.value.focus(),(0,k.selectContentEditable)(Z.value)):Z.field&&this.fieldEditable?(Z.field.focus(),(0,k.selectContentEditable)(Z.field)):(this._hasChilds()?Z.expand:Z.menu).focus()}}}},{key:"containsNode",value:function(X){if(this===X)return!0;var Z=this.childs;if(Z){for(var Y=0,se=Z.length;Y<se;Y++)if(Z[Y].containsNode(X))return!0}return!1}},{key:"removeChild",value:function(X,Z){if(this.childs){var Y=this.childs.indexOf(X);if(Y!==-1)return Y<this.visibleChilds&&this.expanded&&this.visibleChilds--,X.hide(),delete X.searchField,delete X.searchValue,(X=this.childs.splice(Y,1)[0]).parent=null,Z!==!1&&this.updateDom({updateIndexes:!0}),X}}},{key:"_remove",value:function(X){this.removeChild(X)}},{key:"changeType",value:function(X){var Z,Y=this.type;Y!==X&&(X!=="string"&&X!=="auto"||Y!=="string"&&Y!=="auto"?(Z=this._detachFromDom(),this.clearDom(),(this.type=X)==="object"?(this.childs||(this.childs=[]),this.childs.forEach(function(se){se.clearDom(),delete se.index,se.fieldEditable=!0,se.field===void 0&&(se.field="")}),Y!=="string"&&Y!=="auto"||(this.expanded=!0)):X==="array"?(this.childs||(this.childs=[]),this.childs.forEach(function(se,fe){se.clearDom(),se.fieldEditable=!1,se.index=fe}),Y!=="string"&&Y!=="auto"||(this.expanded=!0)):this.expanded=!1,this._attachToDom(Z)):this.type=X,X!=="auto"&&X!=="string"||(this.value=X==="string"?String(this.value):(0,k.parseString)(String(this.value)),this.focus()),this.updateDom({updateIndexes:!0}))}},{key:"deepEqual",value:function(X){var Z;if(this.type==="array"){if(!Array.isArray(X)||this.childs.length!==X.length)return!1;for(Z=0;Z<this.childs.length;Z++)if(!this.childs[Z].deepEqual(X[Z]))return!1}else if(this.type==="object"){if(D(X)!=="object"||!X)return!1;var Y=Object.keys(X);if(this.childs.length!==Y.length)return!1;for(Z=0;Z<Y.length;Z++){var se=this.childs[Z];if(se.field!==Y[Z]||!se.deepEqual(X[se.field]))return!1}}else if(this.value!==X)return!1;return!0}},{key:"_getDomValue",value:function(){if(this._clearValueError(),this.dom.value&&this.type!=="array"&&this.type!=="object"&&(this.valueInnerText=(0,k.getInnerText)(this.dom.value),this.valueInnerText==="")&&this.dom.value.innerHTML!==""&&(this.dom.value.textContent=""),this.valueInnerText!==void 0)try{var X,Z;(Z=this.type==="string"?this._unescapeHTML(this.valueInnerText):(X=this._unescapeHTML(this.valueInnerText),(0,k.parseString)(X)))!==this.value&&(this.value=Z,this._debouncedOnChangeValue())}catch{this._setValueError((0,g.Iu)("cannotParseValueError"))}}},{key:"_setValueError",value:function(X){this.valueError={message:X},this.updateError()}},{key:"_clearValueError",value:function(){this.valueError&&(this.valueError=null,this.updateError())}},{key:"_setFieldError",value:function(X){this.fieldError={message:X},this.updateError()}},{key:"_clearFieldError",value:function(){this.fieldError&&(this.fieldError=null,this.updateError())}},{key:"_onChangeValue",value:function(){var X,Z=this.editor.getDomSelection(),Y=(Z.range&&(Y=(0,k.textDiff)(String(this.value),String(this.previousValue)),Z.range.startOffset=Y.start,Z.range.endOffset=Y.end),this.editor.getDomSelection());Y.range&&(X=(0,k.textDiff)(String(this.previousValue),String(this.value)),Y.range.startOffset=X.start,Y.range.endOffset=X.end),this.editor._onAction("editValue",{path:this.getInternalPath(),oldValue:this.previousValue,newValue:this.value,oldSelection:Z,newSelection:Y}),this.previousValue=this.value}},{key:"_onChangeField",value:function(){var X=this.editor.getDomSelection(),Z=this.previousField||"",Y=(X.range&&(Y=(0,k.textDiff)(this.field,Z),X.range.startOffset=Y.start,X.range.endOffset=Y.end),this.editor.getDomSelection());Y.range&&(Z=(0,k.textDiff)(Z,this.field),Y.range.startOffset=Z.start,Y.range.endOffset=Z.end),this.editor._onAction("editField",{parentPath:this.parent.getInternalPath(),index:this.getIndex(),oldValue:this.previousField,newValue:this.field,oldSelection:X,newSelection:Y}),this.previousField=this.field}},{key:"_updateDomValue",value:function(){var X=this.dom.value;if(X){var Z=["jsoneditor-value"],Y=this.value,se=this.type==="auto"?(0,k.getType)(Y):this.type,fe=se==="string"&&(0,k.isUrl)(Y);if(Z.push("jsoneditor-"+se),fe&&Z.push("jsoneditor-url"),String(this.value)===""&&this.type!=="array"&&this.type!=="object"&&Z.push("jsoneditor-empty"),this.searchValueActive&&Z.push("jsoneditor-highlight-active"),this.searchValue&&Z.push("jsoneditor-highlight"),X.className=Z.join(" "),se==="array"||se==="object"?(Z=this.childs?this.childs.length:0,X.title=this.type+" containing "+Z+" items"):fe&&this.editable.value?X.title=(0,g.Iu)("openUrl"):X.title="",se==="boolean"&&this.editable.value?(this.dom.checkbox||(this.dom.checkbox=document.createElement("input"),this.dom.checkbox.type="checkbox",this.dom.tdCheckbox=document.createElement("td"),this.dom.tdCheckbox.className="jsoneditor-tree",this.dom.tdCheckbox.appendChild(this.dom.checkbox),this.dom.tdValue.parentNode.insertBefore(this.dom.tdCheckbox,this.dom.tdValue)),this.dom.checkbox.checked=this.value):this.dom.tdCheckbox&&(this.dom.tdCheckbox.parentNode.removeChild(this.dom.tdCheckbox),delete this.dom.tdCheckbox,delete this.dom.checkbox),this.enum&&this.editable.value?(this.dom.select||(this.dom.select=document.createElement("select"),this.id=this.field+"_"+new Date().getUTCMilliseconds(),this.dom.select.id=this.id,this.dom.select.name=this.dom.select.id,(Z=document.createElement("option")).value="",Z.textContent="--",this.dom.select.appendChild(Z),this._updateEnumOptions(),this.dom.tdSelect=document.createElement("td"),this.dom.tdSelect.className="jsoneditor-tree",this.dom.tdSelect.appendChild(this.dom.select),this.dom.tdValue.parentNode.insertBefore(this.dom.tdSelect,this.dom.tdValue)),this.dom.select.value=this.enum.indexOf(this.value)!==-1?this.value:"",!this.schema||V(this.schema,"oneOf")||V(this.schema,"anyOf")||V(this.schema,"allOf")?delete this.valueFieldHTML:(this.valueFieldHTML=this.dom.tdValue.innerHTML,this.dom.tdValue.style.visibility="hidden",this.dom.tdValue.textContent="")):this.dom.tdSelect&&(this.dom.tdSelect.parentNode.removeChild(this.dom.tdSelect),delete this.dom.tdSelect,delete this.dom.select,this.dom.tdValue.innerHTML=this.valueFieldHTML,this.dom.tdValue.style.visibility="",delete this.valueFieldHTML,this.dom.tdValue.appendChild(this.dom.value)),this.editor.options.colorPicker&&typeof Y=="string"&&(0,k.isValidColor)(Y)?(this.dom.color||(this.dom.color=document.createElement("div"),this.dom.color.className="jsoneditor-color",this.dom.tdColor=document.createElement("td"),this.dom.tdColor.className="jsoneditor-tree",this.dom.tdColor.appendChild(this.dom.color),this.dom.tdValue.parentNode.insertBefore(this.dom.tdColor,this.dom.tdValue)),(0,k.addClassName)(this.dom.value,"jsoneditor-color-value"),(this.editable.value?k.removeClassName:k.addClassName)(this.dom.color,"jsoneditor-color-readonly"),this.dom.color.style.backgroundColor=Y):this._deleteDomColor(),this._showTimestampTag()){if(this.dom.date||(this.dom.date=document.createElement("div"),this.dom.date.className="jsoneditor-date",this.dom.value.parentNode.appendChild(this.dom.date)),fe=null,fe=typeof this.editor.options.timestampFormat=="function"?this.editor.options.timestampFormat({field:this.field,value:this.value,path:this.getPath()}):fe){for(;this.dom.date.firstChild;)this.dom.date.removeChild(this.dom.date.firstChild);this.dom.date.appendChild(document.createTextNode(fe))}else this.dom.date.textContent=new Date(Y).toISOString();this.dom.date.title=new Date(Y).toString()}else this.dom.date&&(this.dom.date.parentNode.removeChild(this.dom.date),delete this.dom.date);(0,k.stripFormatting)(X),this._updateDomDefault()}}},{key:"_updateEnumOptions",value:function(){if(this.enum&&this.dom.select){this.dom.select.innerHTML="";for(var X=0;X<this.enum.length;X++){var Z=document.createElement("option");Z.value=this.enum[X],Z.textContent=this.enum[X],this.dom.select.appendChild(Z)}}}},{key:"_deleteDomColor",value:function(){this.dom.color&&(this.dom.tdColor.parentNode.removeChild(this.dom.tdColor),delete this.dom.tdColor,delete this.dom.color,(0,k.removeClassName)(this.dom.value,"jsoneditor-color-value"))}},{key:"_updateDomField",value:function(){var X,Z=this.dom.field;Z&&((X=(0,k.makeFieldTooltip)(this.schema,this.editor.options.language))&&(Z.title=X),(String(this.field)===""&&this.parent&&this.parent.type!=="array"?k.addClassName:k.removeClassName)(Z,"jsoneditor-empty"),(this.searchFieldActive?k.addClassName:k.removeClassName)(Z,"jsoneditor-highlight-active"),(this.searchField?k.addClassName:k.removeClassName)(Z,"jsoneditor-highlight"),(0,k.stripFormatting)(Z))}},{key:"_getDomField",value:function(X){if(this._clearFieldError(),this.dom.field&&this.fieldEditable&&(this.fieldInnerText=(0,k.getInnerText)(this.dom.field),this.fieldInnerText==="")&&this.dom.field.innerHTML!==""&&(this.dom.field.textContent=""),this.fieldInnerText!==void 0)try{var Z=this._unescapeHTML(this.fieldInnerText),Y=this.parent.getFieldNames(this);Y.indexOf(Z)!==-1?X?(Z=(0,k.findUniqueName)(Z,Y))!==this.field&&(this.field=Z,this._debouncedOnChangeField()):this._setFieldError((0,g.Iu)("duplicateFieldError")):Z!==this.field&&(this.field=Z,this._debouncedOnChangeField())}catch{this._setFieldError((0,g.Iu)("cannotParseFieldError"))}}},{key:"_updateDomDefault",value:function(){var X;this.schema&&this.schema.default!==void 0&&!this._hasChilds()&&(X=this.dom.select||this.dom.value)&&(this.value===this.schema.default?(X.title=(0,g.Iu)("default"),(0,k.addClassName)(X,"jsoneditor-is-default"),k.removeClassName):(X.removeAttribute("title"),(0,k.removeClassName)(X,"jsoneditor-is-default"),k.addClassName))(X,"jsoneditor-is-not-default")}},{key:"_showTimestampTag",value:function(){var X,Z;return typeof this.value=="number"&&(typeof(X=this.editor.options.timestampTag)=="function"?typeof(Z=X({field:this.field,value:this.value,path:this.getPath()}))=="boolean"?Z:(0,k.isTimestamp)(this.field,this.value):X===!0&&(0,k.isTimestamp)(this.field,this.value))}},{key:"clearDom",value:function(){this.dom={}}},{key:"getDom",value:function(){var X,Z,Y=this.dom;return Y.tr||(this._updateEditability(),Y.tr=document.createElement("tr"),(Y.tr.node=this).editor.options.mode==="tree"&&(Z=document.createElement("td"),this.editable.field&&this.parent&&((X=document.createElement("button")).type="button",(Y.drag=X).className="jsoneditor-button jsoneditor-dragarea",X.title=(0,g.Iu)("drag"),Z.appendChild(X)),Y.tr.appendChild(Z),X=document.createElement("td"),(Z=document.createElement("button")).type="button",(Y.menu=Z).className="jsoneditor-button jsoneditor-contextmenu-button",Z.title=(0,g.Iu)("actionsMenu"),X.appendChild(Y.menu),Y.tr.appendChild(X)),Z=document.createElement("td"),Y.tr.appendChild(Z),Y.tree=this._createDomTree(),Z.appendChild(Y.tree),this.updateDom({updateIndexes:!0})),Y.tr}},{key:"isVisible",value:function(){return this.dom&&this.dom.tr&&this.dom.tr.parentNode||!1}},{key:"isDescendantOf",value:function(X){for(var Z=this.parent;Z;){if(Z===X)return!0;Z=Z.parent}return!1}},{key:"_createDomField",value:function(){return document.createElement("div")}},{key:"setHighlight",value:function(X){this.dom.tr&&((X?k.addClassName:k.removeClassName)(this.dom.tr,"jsoneditor-highlight"),this.append&&this.append.setHighlight(X),this.childs)&&this.childs.forEach(function(Z){Z.setHighlight(X)})}},{key:"setSelected",value:function(X,Z){this.selected=X,this.dom.tr&&((X?k.addClassName:k.removeClassName)(this.dom.tr,"jsoneditor-selected"),(Z?k.addClassName:k.removeClassName)(this.dom.tr,"jsoneditor-first"),this.append&&this.append.setSelected(X),this.showMore&&this.showMore.setSelected(X),this.childs)&&this.childs.forEach(function(Y){Y.setSelected(X)})}},{key:"updateValue",value:function(X){this.value=X,this.previousValue=X,this.valueError=void 0,this.updateDom()}},{key:"updateField",value:function(X){this.field=X,this.previousField=X,this.fieldError=void 0,this.updateDom()}},{key:"updateDom",value:function(X){var Z,Y=this.dom.tree,Y=(Y&&(Y.style.marginLeft=24*this.getLevel()+"px"),this.dom.field),Y=(Y&&(this.fieldEditable?(Y.contentEditable=this.editable.field,Y.spellcheck=!1,Y.className="jsoneditor-field"):(Y.contentEditable=!1,Y.className="jsoneditor-readonly"),Z=this.index!==void 0?this.index:this.field!==void 0?this.field:(Z=this.editor.options.schema?ie._findSchema(this.editor.options.schema,this.editor.options.schemaRefs||{},this.getPath()):void 0)&&Z.title?Z.title:this._hasChilds()?this.type:"",Z=this._escapeHTML(Z),document.activeElement!==Y&&Z!==this._unescapeHTML((0,k.getInnerText)(Y))&&(Y.innerHTML=Z),this._updateSchema(),this._updateEnumOptions()),this.dom.value),Y=(Y&&(this.type==="array"||this.type==="object"?this.updateNodeName():(Z=this._escapeHTML(this.value),document.activeElement!==Y&&Z!==this._unescapeHTML((0,k.getInnerText)(Y))&&(Y.innerHTML=Z))),this.dom.tr);Y&&(this.type==="array"||this.type==="object"?((0,k.addClassName)(Y,"jsoneditor-expandable"),this.expanded?((0,k.addClassName)(Y,"jsoneditor-expanded"),(0,k.removeClassName)(Y,"jsoneditor-collapsed")):((0,k.addClassName)(Y,"jsoneditor-collapsed"),(0,k.removeClassName)(Y,"jsoneditor-expanded"))):((0,k.removeClassName)(Y,"jsoneditor-expandable"),(0,k.removeClassName)(Y,"jsoneditor-expanded"),(0,k.removeClassName)(Y,"jsoneditor-collapsed"))),this._updateDomField(),this._updateDomValue(),X&&X.updateIndexes===!0&&this._updateDomIndexes(),X&&X.recurse===!0&&this.childs&&this.childs.forEach(function(se){se.updateDom(X)}),this.error&&this.updateError(),this.append&&this.append.updateDom(),this.showMore&&this.showMore.updateDom(),this._updateCssClassName()}},{key:"_updateSchema",value:function(){this.editor&&this.editor.options&&(this.schema=this.editor.options.schema?ie._findSchema(this.editor.options.schema,this.editor.options.schemaRefs||{},this.getPath()):null,this.schema?this.enum=ie._findEnum(this.schema):delete this.enum)}},{key:"_updateDomIndexes",value:function(){var X=this.dom.value,Z=this.childs;X&&Z&&(this.type==="array"?Z.forEach(function(Y,se){Y.index=se,Y=Y.dom.field,Y&&(Y.textContent=se)}):this.type==="object"&&Z.forEach(function(Y){Y.index!==void 0&&(delete Y.index,Y.field===void 0)&&(Y.field="")}))}},{key:"_createDomValue",value:function(){var X;return this.type==="array"?(X=document.createElement("div")).textContent="[...]":this.type==="object"?(X=document.createElement("div")).textContent="{...}":(!this.editable.value&&(0,k.isUrl)(this.value)?(X=document.createElement("a")).href=this.value:((X=document.createElement("div")).contentEditable=this.editable.value,X.spellcheck=!1),X.innerHTML=this._escapeHTML(this.value)),X}},{key:"_createDomExpandButton",value:function(){var X=document.createElement("button");return X.type="button",this._hasChilds()?(X.className=this.expanded?"jsoneditor-button jsoneditor-expanded":"jsoneditor-button jsoneditor-collapsed",X.title=(0,g.Iu)("expandTitle")):(X.className="jsoneditor-button jsoneditor-invisible",X.title=""),X}},{key:"_createDomTree",value:function(){var X=this.dom,Z=document.createElement("table"),se=document.createElement("tbody"),Y=(Z.style.borderCollapse="collapse",Z.className="jsoneditor-values",Z.appendChild(se),document.createElement("tr")),se=(se.appendChild(Y),document.createElement("td")),se=(se.className="jsoneditor-tree",Y.appendChild(se),X.expand=this._createDomExpandButton(),se.appendChild(X.expand),X.tdExpand=se,document.createElement("td")),se=(se.className="jsoneditor-tree",Y.appendChild(se),X.field=this._createDomField(),se.appendChild(X.field),X.tdField=se,document.createElement("td")),se=(se.className="jsoneditor-tree",Y.appendChild(se),this.type!=="object"&&this.type!=="array"&&(se.appendChild(document.createTextNode(":")),se.className="jsoneditor-separator"),X.tdSeparator=se,document.createElement("td"));return se.className="jsoneditor-tree",Y.appendChild(se),X.value=this._createDomValue(),se.appendChild(X.value),X.tdValue=se,Z}},{key:"onEvent",value:function(X){var Z,Y=X.type,se=X.target||X.srcElement,fe=this.dom,me=this,Ae=this._hasChilds(),Be=(se!==fe.drag&&se!==fe.menu||(Y==="mouseover"?this.editor.highlighter.highlight(this):Y==="mouseout"&&this.editor.highlighter.unhighlight()),Y==="click"&&se===fe.menu&&((Z=me.editor.highlighter).highlight(me),Z.lock(),(0,k.addClassName)(fe.menu,"jsoneditor-selected"),this.showContextMenu(fe.menu,function(){(0,k.removeClassName)(fe.menu,"jsoneditor-selected"),Z.unlock(),Z.unhighlight()})),Y==="click"&&se===fe.expand&&Ae&&(st=X.ctrlKey,this._onExpand(st)),Y!=="click"||X.target!==me.dom.tdColor&&X.target!==me.dom.color||!this.editable.value||this._showColorPicker(),Y==="change"&&se===fe.checkbox&&(this.dom.value.textContent=String(!this.value),this._getDomValue(),this._updateDomDefault()),Y==="change"&&se===fe.select&&(this.dom.value.innerHTML=this._escapeHTML(fe.select.value),this._getDomValue(),this._updateDomValue()),fe.value);if(se===Be)switch(Y){case"blur":case"change":this._getDomValue(),this._clearValueError(),this._updateDomValue();var Ye=this._escapeHTML(this.value);Ye!==this._unescapeHTML((0,k.getInnerText)(Be))&&(Be.innerHTML=Ye);break;case"input":this._getDomValue(),this._updateDomValue();break;case"keydown":case"mousedown":this.editor.selection=this.editor.getDomSelection();break;case"click":X.ctrlKey&&this.editable.value&&(0,k.isUrl)(this.value)&&(X.preventDefault(),window.open(this.value,"_blank","noreferrer"));break;case"keyup":this._getDomValue(),this._updateDomValue();break;case"cut":case"paste":setTimeout(function(){me._getDomValue(),me._updateDomValue()},1)}var Qe=fe.field;if(se===Qe)switch(Y){case"blur":this._getDomField(!0),this._updateDomField();var nt=this._escapeHTML(this.field);nt!==this._unescapeHTML((0,k.getInnerText)(Qe))&&(Qe.innerHTML=nt);break;case"input":this._getDomField(),this._updateSchema(),this._updateDomField(),this._updateDomValue();break;case"keydown":case"mousedown":this.editor.selection=this.editor.getDomSelection();break;case"keyup":this._getDomField(),this._updateDomField();break;case"cut":case"paste":setTimeout(function(){me._getDomField(),me._updateDomField()},1)}var st=fe.tree;st&&se===st.parentNode&&Y==="click"&&!X.hasMoved&&((X.offsetX!==void 0?X.offsetX<24*(this.getLevel()+1):X.pageX<(0,k.getAbsoluteLeft)(fe.tdSeparator))||Ae?Qe&&((0,k.setEndOfContentEditable)(Qe),Qe.focus()):Be&&!this.enum&&((0,k.setEndOfContentEditable)(Be),Be.focus())),(se!==fe.tdExpand||Ae)&&se!==fe.tdField&&se!==fe.tdSeparator||Y!=="click"||X.hasMoved||Qe&&((0,k.setEndOfContentEditable)(Qe),Qe.focus()),Y==="keydown"&&this.onKeyDown(X),typeof this.editor.options.onEvent=="function"&&this._onEvent(X)}},{key:"_onEvent",value:function(X){var Y=X.target,Z=Y===this.dom.field,Y=Y===this.dom.value||Y===this.dom.checkbox||Y===this.dom.select;(Z||Y)&&(Z={field:this.getField(),path:this.getPath()},Y&&!this._hasChilds()&&(Z.value=this.getValue()),this.editor.options.onEvent(Z,X))}},{key:"onKeyDown",value:function(X){var Z,Y,se,fe,me,Ae,Be,Ye,Qe,nt,st,Le,Me,je,Ue=X.which||X.keyCode,Te=X.target||X.srcElement,bt=X.ctrlKey,At=X.shiftKey,ht=X.altKey,Pe=!1,Ze=this.editor.options.mode==="tree",dt=0<this.editor.multiselection.nodes.length?this.editor.multiselection.nodes:[this],Mt=dt[0],He=dt[dt.length-1];Ue===13?Te===this.dom.value?this.editable.value&&!X.ctrlKey||(0,k.isUrl)(this.value)&&(window.open(this.value,"_blank","noreferrer"),Pe=!0):Te===this.dom.expand&&this._hasChilds()&&(Me=X.ctrlKey,this._onExpand(Me),Te.focus(),Pe=!0):Ue===68?bt&&Ze&&(ie.onDuplicate(dt),Pe=!0):Ue===69?bt&&(this._onExpand(At),Te.focus(),Pe=!0):Ue===77&&Ze?bt&&(this.showContextMenu(Te),Pe=!0):Ue===46&&Ze?bt&&(ie.onRemove(dt),Pe=!0):Ue===45&&Ze?bt&&!At?(this._onInsertBefore(),Pe=!0):bt&&At&&(this._onInsertAfter(),Pe=!0):Ue===35?ht&&((Me=this._lastNode())&&Me.focus(ie.focusElement||this._getElementName(Te)),Pe=!0):Ue===36?ht&&((Me=this._firstNode())&&Me.focus(ie.focusElement||this._getElementName(Te)),Pe=!0):Ue===37?ht&&!At?((Me=this._previousElement(Te))&&this.focus(this._getElementName(Me)),Pe=!0):ht&&At&&Ze&&(Me=He.expanded?(Me=He.getAppendDom())?Me.nextSibling:void 0:He.getDom().nextSibling)&&(st=ie.getNodeFromTarget(Me),Me=Me.nextSibling,Le=ie.getNodeFromTarget(Me),st)&&st instanceof H&&He.parent.childs.length!==1&&Le&&Le.parent&&(Y=this.editor.getDomSelection(),se=(fe=Mt.parent).childs[He.getIndex()+1]||fe.append,me=Mt.getIndex(),Ae=Le.getIndex(),Be=fe.getInternalPath(),Ye=Le.parent.getInternalPath(),dt.forEach(function(wt){Le.parent.moveBefore(wt,Le)}),this.focus(ie.focusElement||this._getElementName(Te)),this.editor._onAction("moveNodes",{count:dt.length,fieldNames:dt.map(L),oldParentPath:fe.getInternalPath(),newParentPath:Mt.parent.getInternalPath(),oldIndex:se.getIndex(),newIndex:Mt.getIndex(),oldIndexRedo:me,newIndexRedo:Ae,oldParentPathRedo:Be,newParentPathRedo:Ye,oldSelection:Y,newSelection:this.editor.getDomSelection()})):Ue===38?ht&&!At?((Z=this._previousNode())&&(this.editor.deselect(!0),Z.focus(ie.focusElement||this._getElementName(Te))),Pe=!0):!ht&&bt&&At&&Ze?((Z=this._previousNode())&&((nt=this.editor.multiselection).start=nt.start||this,nt.end=Z,Qe=this.editor._findTopLevelNodes(nt.start,nt.end),this.editor.select(Qe),Z.focus("field")),Pe=!0):ht&&At&&Ze&&((Z=Mt._previousNode())&&Z.parent&&(Y=this.editor.getDomSelection(),se=(fe=Mt.parent).childs[He.getIndex()+1]||fe.append,me=Mt.getIndex(),Ae=Z.getIndex(),Be=fe.getInternalPath(),Ye=Z.parent.getInternalPath(),dt.forEach(function(wt){Z.parent.moveBefore(wt,Z)}),this.focus(ie.focusElement||this._getElementName(Te)),this.editor._onAction("moveNodes",{count:dt.length,fieldNames:dt.map(L),oldParentPath:fe.getInternalPath(),newParentPath:Mt.parent.getInternalPath(),oldIndex:se.getIndex(),newIndex:Mt.getIndex(),oldIndexRedo:me,newIndexRedo:Ae,oldParentPathRedo:Be,newParentPathRedo:Ye,oldSelection:Y,newSelection:this.editor.getDomSelection()})),Pe=!0):Ue===39?ht&&!At?((Me=this._nextElement(Te))&&this.focus(this._getElementName(Me)),Pe=!0):ht&&At&&Ze&&(Me=Mt.getDom().previousSibling)&&(Z=ie.getNodeFromTarget(Me))&&Z.parent&&!Z.isVisible()&&(Y=this.editor.getDomSelection(),se=(fe=Mt.parent).childs[He.getIndex()+1]||fe.append,me=Mt.getIndex(),Ae=Z.getIndex(),Be=fe.getInternalPath(),Ye=Z.parent.getInternalPath(),dt.forEach(function(wt){Z.parent.moveBefore(wt,Z)}),this.focus(ie.focusElement||this._getElementName(Te)),this.editor._onAction("moveNodes",{count:dt.length,fieldNames:dt.map(L),oldParentPath:fe.getInternalPath(),newParentPath:Mt.parent.getInternalPath(),oldIndex:se.getIndex(),newIndex:Mt.getIndex(),oldIndexRedo:me,newIndexRedo:Ae,oldParentPathRedo:Be,newParentPathRedo:Ye,oldSelection:Y,newSelection:this.editor.getDomSelection()})):Ue===40&&(ht&&!At?((st=this._nextNode())&&(this.editor.deselect(!0),st.focus(ie.focusElement||this._getElementName(Te))),Pe=!0):!ht&&bt&&At&&Ze?((st=this._nextNode())&&((nt=this.editor.multiselection).start=nt.start||this,nt.end=st,Qe=this.editor._findTopLevelNodes(nt.start,nt.end),this.editor.select(Qe),st.focus("field")),Pe=!0):ht&&At&&Ze&&((je=(st=(st=(st=He.expanded?He.append?He.append._nextNode():void 0:He._nextNode())&&!st.isVisible()?st.parent.showMore:st)&&st instanceof H?He:st)&&(st._nextNode()||st.parent.append))&&je.parent&&(Y=this.editor.getDomSelection(),se=(fe=Mt.parent).childs[He.getIndex()+1]||fe.append,me=Mt.getIndex(),Ae=je.getIndex(),Be=fe.getInternalPath(),Ye=je.parent.getInternalPath(),dt.forEach(function(wt){je.parent.moveBefore(wt,je)}),this.focus(ie.focusElement||this._getElementName(Te)),this.editor._onAction("moveNodes",{count:dt.length,fieldNames:dt.map(L),oldParentPath:fe.getInternalPath(),newParentPath:Mt.parent.getInternalPath(),oldParentPathRedo:Be,newParentPathRedo:Ye,oldIndexRedo:me,newIndexRedo:Ae,oldIndex:se.getIndex(),newIndex:Mt.getIndex(),oldSelection:Y,newSelection:this.editor.getDomSelection()})),Pe=!0)),Pe&&(X.preventDefault(),X.stopPropagation())}},{key:"_onExpand",value:function(X){var Z,Y,se;X&&(se=(Y=(Z=this.dom.tr.parentNode).parentNode).scrollTop,Y.removeChild(Z)),this.expanded?this.collapse(X):this.expand(X),X&&(Y.appendChild(Z),Y.scrollTop=se),typeof this.editor.options.onExpand=="function"&&this.editor.options.onExpand({path:this.getPath(),isExpand:this.expanded,recursive:X})}},{key:"_showColorPicker",value:function(){var X,Z;typeof this.editor.options.onColorPicker=="function"&&this.dom.color&&((X=this)._deleteDomColor(),X.updateDom(),Z=(0,w.w)(this.dom.color,this.editor.getPopupAnchor()),this.editor.options.onColorPicker(Z,this.value,function(Y){typeof Y=="string"&&Y!==X.value&&(X._deleteDomColor(),X.value=Y,X.updateDom(),X._debouncedOnChangeValue())}))}},{key:"getFieldNames",value:function(X){return this.type==="object"?this.childs.filter(function(Z){return Z!==X}).map(function(Z){return Z.field}):[]}},{key:"_onInsertBefore",value:function(fe,me,Ae){var se=this.editor.getDomSelection(),fe=new ie(this.editor,{field:fe!==void 0?fe:"",value:me!==void 0?me:"",type:Ae}),me=(fe.expand(!0),this.getInternalPath()),Ae=(this.parent.insertBefore(fe,this),this.editor.highlighter.unhighlight(),fe.focus("field"),this.editor.getDomSelection());this.editor._onAction("insertBeforeNodes",{nodes:[fe],paths:[fe.getInternalPath()],beforePath:me,parentPath:this.parent.getInternalPath(),oldSelection:se,newSelection:Ae})}},{key:"_onInsertAfter",value:function(fe,me,Y){var se=this.editor.getDomSelection(),fe=new ie(this.editor,{field:fe!==void 0?fe:"",value:me!==void 0?me:"",type:Y}),me=(fe.expand(!0),this.parent.insertAfter(fe,this),this.editor.highlighter.unhighlight(),fe.focus("field"),this.editor.getDomSelection());this.editor._onAction("insertAfterNodes",{nodes:[fe],paths:[fe.getInternalPath()],afterPath:this.getInternalPath(),parentPath:this.parent.getInternalPath(),oldSelection:se,newSelection:me})}},{key:"_onAppend",value:function(fe,me,Y){var se=this.editor.getDomSelection(),fe=new ie(this.editor,{field:fe!==void 0?fe:"",value:me!==void 0?me:"",type:Y}),me=(fe.expand(!0),this.parent.appendChild(fe),this.editor.highlighter.unhighlight(),fe.focus("field"),this.editor.getDomSelection());this.editor._onAction("appendNodes",{nodes:[fe],paths:[fe.getInternalPath()],parentPath:this.parent.getInternalPath(),oldSelection:se,newSelection:me})}},{key:"_onChangeType",value:function(X){var Z,Y,se=this.type;X!==se&&(Z=this.editor.getDomSelection(),this.changeType(X),Y=this.editor.getDomSelection(),this.editor._onAction("changeType",{path:this.getInternalPath(),oldType:se,newType:X,oldSelection:Z,newSelection:Y}))}},{key:"sort",value:function(X,Z){var Y,se,fe=!(2<arguments.length&&arguments[2]!==void 0)||arguments[2];typeof X=="string"&&(X=(0,k.parsePath)(X)),this._hasChilds()&&(this.hideChilds(),Y=this.childs,this.childs=this.childs.concat(),se=Z==="desc"?-1:1,this.type==="object"?this.childs.sort(function(me,Ae){return se*m()(me.field,Ae.field)}):this.childs.sort(function(Be,Ye){var Be=Be.getNestedChild(X),Ye=Ye.getNestedChild(X);return Be?Ye?(Be=Be.value,Ye=Ye.value,typeof Be!="string"&&typeof Ye!="string"?Ye<Be?se:Be<Ye?-se:0:se*m()(Be,Ye)):-se:se}),this._updateDomIndexes(),this.showChilds(),fe===!0)&&this.editor._onAction("sort",{path:this.getInternalPath(),oldChilds:Y,newChilds:this.childs})}},{key:"update",value:function(X){var Z=this.getInternalValue();this.setValue(X),this.editor._onAction("transform",{path:this.getInternalPath(),oldValue:Z,newValue:this.getInternalValue()})}},{key:"_detachFromDom",value:function(){var X=this.dom.tr?this.dom.tr.parentNode:void 0,Z=this.expanded?this.getAppendDom():this.getDom(),Z=Z&&Z.parentNode?Z.nextSibling:void 0;return this.hide({resetVisibleChilds:!1}),{table:X,nextTr:Z}}},{key:"_attachToDom",value:function(X){X.table&&(X.nextTr?X.table.insertBefore(this.getDom(),X.nextTr):X.table.appendChild(this.getDom())),this.expanded&&this.showChilds()}},{key:"transform",value:function(X){if(this._hasChilds()){this.hideChilds();try{var Z=this.getInternalValue(),Y=this.getValue(),se=this.editor.options.executeQuery(Y,X),fe=(this.setValue(se),this.getInternalValue());this.editor._onAction("transform",{path:this.getInternalPath(),oldValue:Z,newValue:fe}),this.showChilds()}catch(me){this.showChilds(),this.editor._onError(me)}}}},{key:"extract",value:function(){this.editor.node.hideChilds(),this.hideChilds();try{var X=this.editor.node.getInternalValue(),Z=(this.editor._setRoot(this),this.editor.node.getInternalValue());this.editor._onAction("transform",{path:this.editor.node.getInternalPath(),oldValue:X,newValue:Z})}catch(Y){this.editor._onError(Y)}finally{this.updateDom({recurse:!0}),this.showChilds()}}},{key:"getNestedChild",value:function(X){for(var Z=0,Y=this;Y&&Z<X.length;)Y=Y.findChildByProperty(X[Z]),Z++;return Y}},{key:"findChildByProperty",value:function(X){if(this.type==="object")return this.childs.find(function(Z){return Z.field===X})}},{key:"getAppendDom",value:function(){return this.append||(this.append=new H(this.editor),this.append.setParent(this)),this.append.getDom()}},{key:"getShowMoreDom",value:function(){return this.showMore||(this.showMore=new U(this.editor,this)),this.showMore.getDom()}},{key:"nextSibling",value:function(){var X=this.parent.childs.indexOf(this);return this.parent.childs[X+1]||this.parent.append}},{key:"_previousNode",value:function(){var X=null,Z=this.getDom();if(Z&&Z.parentNode)for(var Y=Z;Y=Y.previousSibling,X=ie.getNodeFromTarget(Y),Y&&X&&X instanceof H&&!X.isVisible(););return X}},{key:"_nextNode",value:function(){var X=null,Z=this.getDom();if(Z&&Z.parentNode)for(var Y=Z;Y=Y.nextSibling,X=ie.getNodeFromTarget(Y),Y&&X&&X instanceof H&&!X.isVisible(););return X}},{key:"_firstNode",value:function(){var X=null,Z=this.getDom();return Z&&Z.parentNode&&(Z=Z.parentNode.firstChild,X=ie.getNodeFromTarget(Z)),X}},{key:"_lastNode",value:function(){var X=null,Z=this.getDom();if(Z&&Z.parentNode)for(var Y=Z.parentNode.lastChild,X=ie.getNodeFromTarget(Y);Y&&X&&!X.isVisible();)Y=Y.previousSibling,X=ie.getNodeFromTarget(Y);return X}},{key:"_previousElement",value:function(X){var Z=this.dom;switch(X){case Z.value:if(this.fieldEditable)return Z.field;case Z.field:if(this._hasChilds())return Z.expand;case Z.expand:return Z.menu;case Z.menu:if(Z.drag)return Z.drag;default:return null}}},{key:"_nextElement",value:function(X){var Z=this.dom;switch(X){case Z.drag:return Z.menu;case Z.menu:if(this._hasChilds())return Z.expand;case Z.expand:if(this.fieldEditable)return Z.field;case Z.field:if(!this._hasChilds())return Z.value;default:return null}}},{key:"_getElementName",value:function(X){var Z=this;return Object.keys(this.dom).find(function(Y){return Z.dom[Y]===X})}},{key:"_hasChilds",value:function(){return this.type==="array"||this.type==="object"}},{key:"addTemplates",value:function(X,Z){var Y=this,se=Y.editor.options.templates;se!=null&&(se.length&&X.push({type:"separator"}),se.forEach(function(fe){X.push({text:fe.text,className:fe.className||"jsoneditor-type-object",title:fe.title,click:(Z?function(me,Ae){Y._onAppend(me,Ae)}:function(me,Ae){Y._onInsertBefore(me,Ae)}).bind(this,fe.field,fe.value)})}))}},{key:"showContextMenu",value:function(X,Z){var Y,se=this,fe=[];this.editable.value&&fe.push({text:(0,g.Iu)("type"),title:(0,g.Iu)("typeTitle"),className:"jsoneditor-type-"+this.type,submenu:[{text:(0,g.Iu)("auto"),className:"jsoneditor-type-auto"+(this.type==="auto"?" jsoneditor-selected":""),title:(0,g.Iu)("autoType"),click:function(){se._onChangeType("auto")}},{text:(0,g.Iu)("array"),className:"jsoneditor-type-array"+(this.type==="array"?" jsoneditor-selected":""),title:(0,g.Iu)("arrayType"),click:function(){se._onChangeType("array")}},{text:(0,g.Iu)("object"),className:"jsoneditor-type-object"+(this.type==="object"?" jsoneditor-selected":""),title:(0,g.Iu)("objectType"),click:function(){se._onChangeType("object")}},{text:(0,g.Iu)("string"),className:"jsoneditor-type-string"+(this.type==="string"?" jsoneditor-selected":""),title:(0,g.Iu)("stringType"),click:function(){se._onChangeType("string")}}]}),this._hasChilds()&&(this.editor.options.enableSort&&fe.push({text:(0,g.Iu)("sort"),title:(0,g.Iu)("sortTitle",{type:this.type}),className:"jsoneditor-sort-asc",click:function(){se.showSortModal()}}),this.editor.options.enableTransform&&fe.push({text:(0,g.Iu)("transform"),title:(0,g.Iu)("transformTitle",{type:this.type}),className:"jsoneditor-transform",click:function(){se.showTransformModal()}}),this.parent)&&fe.push({text:(0,g.Iu)("extract"),title:(0,g.Iu)("extractTitle",{type:this.type}),className:"jsoneditor-extract",click:function(){se.extract()}}),this.parent&&this.parent._hasChilds()&&(fe.length&&fe.push({type:"separator"}),Y=se.parent.childs,se===Y[Y.length-1]&&(Y=[{text:(0,g.Iu)("auto"),className:"jsoneditor-type-auto",title:(0,g.Iu)("autoType"),click:function(){se._onAppend("","","auto")}},{text:(0,g.Iu)("array"),className:"jsoneditor-type-array",title:(0,g.Iu)("arrayType"),click:function(){se._onAppend("",[])}},{text:(0,g.Iu)("object"),className:"jsoneditor-type-object",title:(0,g.Iu)("objectType"),click:function(){se._onAppend("",{})}},{text:(0,g.Iu)("string"),className:"jsoneditor-type-string",title:(0,g.Iu)("stringType"),click:function(){se._onAppend("","","string")}}],se.addTemplates(Y,!0),fe.push({text:(0,g.Iu)("appendText"),title:(0,g.Iu)("appendTitle"),submenuTitle:(0,g.Iu)("appendSubmenuTitle"),className:"jsoneditor-append",click:function(){se._onAppend("","","auto")},submenu:Y})),Y=[{text:(0,g.Iu)("auto"),className:"jsoneditor-type-auto",title:(0,g.Iu)("autoType"),click:function(){se._onInsertBefore("","","auto")}},{text:(0,g.Iu)("array"),className:"jsoneditor-type-array",title:(0,g.Iu)("arrayType"),click:function(){se._onInsertBefore("",[])}},{text:(0,g.Iu)("object"),className:"jsoneditor-type-object",title:(0,g.Iu)("objectType"),click:function(){se._onInsertBefore("",{})}},{text:(0,g.Iu)("string"),className:"jsoneditor-type-string",title:(0,g.Iu)("stringType"),click:function(){se._onInsertBefore("","","string")}}],se.addTemplates(Y,!1),fe.push({text:(0,g.Iu)("insert"),title:(0,g.Iu)("insertTitle"),submenuTitle:(0,g.Iu)("insertSub"),className:"jsoneditor-insert",click:function(){se._onInsertBefore("","","auto")},submenu:Y}),this.editable.field)&&(fe.push({text:(0,g.Iu)("duplicateText"),title:(0,g.Iu)("duplicateField"),className:"jsoneditor-duplicate",click:function(){ie.onDuplicate(se)}}),fe.push({text:(0,g.Iu)("removeText"),title:(0,g.Iu)("removeField"),className:"jsoneditor-remove",click:function(){ie.onRemove(se)}})),this.editor.options.onCreateMenu&&(Y=se.getPath(),fe=this.editor.options.onCreateMenu(fe,{type:"single",path:Y,paths:[Y]})),new u.x(fe,{close:Z}).show(X,this.editor.getPopupAnchor())}},{key:"showSortModal",value:function(){var X=this,Z=this.editor.options.modalAnchor||I.qD,Y=this.getValue();(0,T.showSortModal)(Z,Y,function(se){var fe=se.path,fe=(0,k.parsePath)(fe);X.sortedBy=se,X.sort(fe,se.direction)},X.sortedBy)}},{key:"showTransformModal",value:function(){var X=this,fe=this.editor.options,Z=fe.modalAnchor,Y=fe.createQuery,se=fe.executeQuery,fe=fe.queryDescription,me=this.getValue();(0,S.showTransformModal)({container:Z||I.qD,json:me,queryDescription:fe,createQuery:Y,executeQuery:se,onTransform:function(Ae){X.transform(Ae)}})}},{key:"_getType",value:function(X){return X instanceof Array?"array":X instanceof Object?"object":typeof X=="string"&&typeof(0,k.parseString)(X)!="string"?"string":"auto"}},{key:"_escapeHTML",value:function(X){return typeof X!="string"?String(X):(X=String(X).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/ {2}/g," ").replace(/^ /," ").replace(/ $/," "),X=(X=JSON.stringify(X)).substring(1,X.length-1),this.editor.options.escapeUnicode===!0?(0,k.escapeUnicodeChars)(X):X)}},{key:"_unescapeHTML",value:function(X){return X='"'+this._escapeJSON(X)+'"',(0,k.parse)(X).replace(/</g,"<").replace(/>/g,">").replace(/ |\u00A0/g," ").replace(/&/g,"&")}},{key:"_escapeJSON",value:function(X){for(var Z="",Y=0;Y<X.length;){var se=X.charAt(Y);se===`
|
|
`?Z+="\\n":se==="\\"?(Z+=se,Y++,(se=X.charAt(Y))!==""&&'"\\/bfnrtu'.indexOf(se)!==-1||(Z+="\\"),Z+=se):Z+=se==='"'?'\\"':se,Y++}return Z}},{key:"updateNodeName",value:function(){var X=this.childs?this.childs.length:0;if(this.type==="object"||this.type==="array"){if(this.editor.options.onNodeName)try{var Z=this.getValue.bind(this),Y=this.editor.options.onNodeName({path:this.getPath(),size:X,type:this.type,get value(){return Z()}})}catch(se){console.error("Error in onNodeName callback: ",se)}this.dom.value.textContent=this.type==="object"?"{"+(Y||X)+"}":"["+(Y||X)+"]"}}},{key:"recursivelyUpdateNodeName",value:function(){if(this.expanded&&(this.updateNodeName(),this.childs!=="undefined"))for(var X in this.childs)this.childs[X].recursivelyUpdateNodeName()}}])&&C(ce.prototype,pe),Object.defineProperty(ce,"prototype",{writable:!1}),ie}(),P=(x.prototype.DEBOUNCE_INTERVAL=150,x.prototype.MAX_SEARCH_RESULTS=999,100);function $(ie){return ie.getInternalPath()}function L(ie){return ie.getField()}function V(ie,ce){return Object.prototype.hasOwnProperty.call(ie,ce)}x.focusElement=void 0,x.select=function(ie){setTimeout(function(){(0,k.selectContentEditable)(ie)},0)},x.onDragStart=function(ie,ce){if(!Array.isArray(ie))return x.onDragStart([ie],ce);var pe,X,Z,Y,se;ie.length!==0&&(pe=ie[0],X=ie[ie.length-1],Z=pe.parent,se=x.getNodeFromTarget(ce.target),Y=pe.editor,se=(0,k.getAbsoluteTop)(se.dom.tr)-(0,k.getAbsoluteTop)(pe.dom.tr),Y.mousemove||(Y.mousemove=(0,k.addEventListener)(ce.view,"mousemove",function(fe){x.onDrag(ie,fe)})),Y.mouseup||(Y.mouseup=(0,k.addEventListener)(ce.view,"mouseup",function(fe){x.onDragEnd(ie,fe)})),Y.highlighter.lock(),Y.drag={oldCursor:document.body.style.cursor,oldSelection:Y.getDomSelection(),oldPaths:ie.map($),oldParent:Z,oldNextNode:Z.childs[X.getIndex()+1]||Z.append,oldParentPathRedo:Z.getInternalPath(),oldIndexRedo:pe.getIndex(),mouseX:ce.pageX,offsetY:se,level:pe.getLevel()},document.body.style.cursor="move",ce.preventDefault())},x.onDrag=function(ie,ce){if(!Array.isArray(ie))return x.onDrag([ie],ce);if(ie.length!==0){var pe,X,Z,Y,se,fe=ie[0].editor,me=ce.pageY-fe.drag.offsetY,Ae=ce.pageX,Be=!1,Ye=ie[0],Qe=Ye.dom.tr,nt=(0,k.getAbsoluteTop)(Qe),st=Qe.offsetHeight;if(me<nt){for(Ue=Qe;Ue=Ue.previousSibling,Te=x.getNodeFromTarget(Ue),Z=Ue?(0,k.getAbsoluteTop)(Ue):0,Ue&&me<Z;);(Te=Te&&!Te.parent?void 0:Te)||(Ue=(Qe=Qe.parentNode.firstChild)?Qe.nextSibling:void 0,(Te=x.getNodeFromTarget(Ue))===Ye&&(Te=void 0)),!(Te=Te&&Te.isVisible()&&(Z=(Ue=Te.dom.tr)?(0,k.getAbsoluteTop)(Ue):0)+st<me?void 0:Te)||fe.options.limitDragging!==!1&&Te.parent!==ie[0].parent||(ie.forEach(function(At){Te.parent.moveBefore(At,Te)}),Be=!0)}else{var Le=ie[ie.length-1];if(st=(Qe=Le.expanded&&Le.append?Le.append.getDom():Le.dom.tr)?Qe.nextSibling:void 0){for(Y=(0,k.getAbsoluteTop)(st),pe=st;X=x.getNodeFromTarget(pe),pe&&(se=pe.nextSibling?(0,k.getAbsoluteTop)(pe.nextSibling):0,se=pe?se-Y:0,X&&X.parent.childs.length===ie.length&&X.parent.childs[ie.length-1]===Le&&(nt+=27),pe=pe.nextSibling),pe&&nt+se<me;);if(X&&X.parent){for(var st=Ae-fe.drag.mouseX,st=Math.round(st/24/2),Me=fe.drag.level+st,je=X.getLevel(),Ue=X.dom.tr&&X.dom.tr.previousSibling;je<Me&&Ue;){var Te=x.getNodeFromTarget(Ue),bt=ie.some(function(ht){return ht===Te||Te.isDescendantOf(ht)});if(!bt){if(!(Te instanceof H)||(bt=Te.parent.childs,bt.length===ie.length&&bt[ie.length-1]===Le))break;je=(X=x.getNodeFromTarget(Ue)).getLevel()}Ue=Ue.previousSibling}(X=X instanceof H&&!X.isVisible()&&X.parent.showMore.isVisible()?X._nextNode():X)&&(fe.options.limitDragging===!1||X.parent===ie[0].parent)&&X.dom.tr&&X.dom.tr!==Qe.nextSibling&&(ie.forEach(function(At){X.parent.moveBefore(At,X)}),Be=!0)}}}Be&&(fe.drag.mouseX=Ae,fe.drag.level=Ye.getLevel()),fe.startAutoScroll(me),ce.preventDefault()}},x.onDragEnd=function(ie,ce){if(!Array.isArray(ie))return x.onDrag([ie],ce);var pe,X,Z,Y,se,fe,me,Ae,Be;ie.length!==0&&(fe=ie[0],pe=fe.editor,fe&&fe.dom.menu&&fe.dom.menu.focus(),X=pe.drag.oldParent.getInternalPath(),Z=fe.parent.getInternalPath(),Y=pe.drag.oldParent===fe.parent,se=pe.drag.oldNextNode.getIndex(),fe=fe.getIndex(),me=pe.drag.oldParentPathRedo,Ae=pe.drag.oldIndexRedo,Be=Y&&Ae<fe?fe+ie.length:fe,Y&&Ae===fe||pe._onAction("moveNodes",{count:ie.length,fieldNames:ie.map(L),oldParentPath:X,newParentPath:Z,oldIndex:se,newIndex:fe,oldIndexRedo:Ae,newIndexRedo:Be,oldParentPathRedo:me,newParentPathRedo:null,oldSelection:pe.drag.oldSelection,newSelection:pe.getDomSelection()}),document.body.style.cursor=pe.drag.oldCursor,pe.highlighter.unlock(),ie.forEach(function(Ye){Ye.updateDom(),ce.target!==Ye.dom.drag&&ce.target!==Ye.dom.menu&&pe.highlighter.unhighlight()}),delete pe.drag,pe.mousemove&&((0,k.removeEventListener)(ce.view,"mousemove",pe.mousemove),delete pe.mousemove),pe.mouseup&&((0,k.removeEventListener)(ce.view,"mouseup",pe.mouseup),delete pe.mouseup),pe.stopAutoScroll(),ce.preventDefault())},x._findEnum=function(ie){return ie.enum?ie.enum:(ie=ie.oneOf||ie.anyOf||ie.allOf,ie&&(ie=ie.filter(function(ce){return ce.enum}),0<ie.length)?ie[0].enum:null)},x._findSchema=function(ie,ce,pe){for(var X=3<arguments.length&&arguments[3]!==void 0?arguments[3]:ie,Z=pe.slice(1,pe.length),Y=pe[0],se=[X],fe=0,me=[X.oneOf,X.anyOf,X.allOf];fe<me.length;fe++){var Ae=me[fe];Array.isArray(Ae)&&(se=se.concat(Ae))}var Be,Ye=_(se);try{for(Ye.s();!(Be=Ye.n()).done;){if("$ref"in(X=Be.value)&&typeof X.$ref=="string"){var Qe,nt=X.$ref;if(nt in ce)X=ce[nt];else{if(!nt.startsWith("#/")){if(((Qe=nt.match(/#\//g))==null?void 0:Qe.length)===1){var st,Le,Me,je=y(nt.split("#/"),2),Ue=je[0],Te=je[1];if(Ue in ce)return st=ce[Ue],Le={$ref:"#/".concat(Te)},(Me=[]).push(Y),0<Z.length&&Me.push.apply(Me,O(Z)),x._findSchema(st,ce,Me,Le)}throw Error("Unable to resolve reference ".concat(nt))}var bt,At=nt.substring(2).split("/"),X=ie,ht=_(At);try{for(ht.s();!(bt=ht.n()).done;){var Pe=bt.value;if(!(Pe in X))throw Error("Unable to resolve reference ".concat(nt));X=X[Pe]}}catch(Mt){ht.e(Mt)}finally{ht.f()}}}if(Y===void 0)return X;if(typeof Y=="string"){if(D(X.properties)==="object"&&X.properties!==null&&Y in X.properties)return X=X.properties[Y],x._findSchema(ie,ce,Z,X);if(D(X.patternProperties)==="object"&&X.patternProperties!==null){for(var Ze in X.patternProperties)if(Y.match(Ze))return X=X.patternProperties[Ze],x._findSchema(ie,ce,Z,X)}if(D(X.additionalProperties)==="object")return X=X.additionalProperties,x._findSchema(ie,ce,Z,X)}else if(typeof Y=="number"&&D(X.items)==="object"&&X.items!==null)return X=X.items,x._findSchema(ie,ce,Z,X)}}catch(dt){Ye.e(dt)}finally{Ye.f()}return null},x.onRemove=function(ie){if(!Array.isArray(ie))return x.onRemove([ie]);var ce,pe,X,Z,Y,se;ie&&0<ie.length&&(ce=(X=ie[0]).parent,pe=X.editor,X=X.getIndex(),pe.highlighter.unhighlight(),Z=pe.getDomSelection(),x.blurNodes(ie),Y=pe.getDomSelection(),se=ie.map($),ie.forEach(function(fe){fe.parent._remove(fe)}),pe._onAction("removeNodes",{nodes:ie,paths:se,parentPath:ce.getInternalPath(),index:X,oldSelection:Z,newSelection:Y}))},x.onDuplicate=function(ie){if(!Array.isArray(ie))return x.onDuplicate([ie]);var ce,pe,X,Z,Y,se,fe;ie&&0<ie.length&&(ce=ie[ie.length-1],pe=ce.parent,(X=ce.editor).deselect(X.multiselection.nodes),Z=X.getDomSelection(),Y=ce,se=ie.map(function(me){var Ae,Be=me.clone();return me.parent.type==="object"&&(Ae=me.parent.getFieldNames(),Be.field=(0,k.findUniqueName)(me.field,Ae)),pe.insertAfter(Be,Y),Y=Be}),ie.length===1?se[0].parent.type==="object"?(se[0].dom.field.innerHTML=ie[0]._escapeHTML(ie[0].field),se[0].focus("field")):se[0].focus():X.select(se),fe=X.getDomSelection(),X._onAction("duplicateNodes",{paths:ie.map($),clonePaths:se.map($),afterPath:ce.getInternalPath(),parentPath:pe.getInternalPath(),oldSelection:Z,newSelection:fe}))},x.getNodeFromTarget=function(ie){for(;ie;){if(ie.node)return ie.node;ie=ie.parentNode}},x.targetIsColorPicker=function(ie){var ce=x.getNodeFromTarget(ie);if(ce)for(var pe=ie&&ie.parentNode;pe;){if(pe===ce.dom.color)return!0;pe=pe.parentNode}return!1},x.blurNodes=function(ie){var ce,pe;Array.isArray(ie)?(ce=(pe=ie[0]).parent,pe=pe.getIndex(),(ce.childs[pe+ie.length]?ce.childs[pe+ie.length]:ce.childs[pe-1]||ce).focus()):x.blurNodes([ie])},(Q.prototype=new x).getDom=function(){var ie=this.dom;if(ie.tr)return ie.tr;this._updateEditability();var ce=document.createElement("tr"),pe=(ce.className="jsoneditor-append",ce.node=this,ie.tr=ce,this.editor.options.mode==="tree"&&(ie.tdDrag=document.createElement("td"),X=document.createElement("td"),ie.tdMenu=X,(pe=document.createElement("button")).type="button",pe.className="jsoneditor-button jsoneditor-contextmenu-button",pe.title="Click to open the actions menu (Ctrl+M)",ie.menu=pe,X.appendChild(ie.menu)),document.createElement("td")),X=document.createElement("div");return X.appendChild(document.createTextNode("("+(0,g.Iu)("empty")+")")),X.className="jsoneditor-readonly",pe.appendChild(X),ie.td=pe,ie.text=X,this.updateDom(),ce},Q.prototype.getPath=function(){return null},Q.prototype.getIndex=function(){return null},Q.prototype.updateDom=function(ie){var ce=this.dom,pe=ce.td,X=(pe&&(pe.style.paddingLeft=24*this.getLevel()+26+"px"),ce.text),X=(X&&(X.firstChild.nodeValue="("+(0,g.Iu)("empty")+" "+this.parent.type+")"),ce.tr);this.isVisible()?ce.tr.firstChild||(ce.tdDrag&&X.appendChild(ce.tdDrag),ce.tdMenu&&X.appendChild(ce.tdMenu),X.appendChild(pe)):ce.tr.firstChild&&(ce.tdDrag&&X.removeChild(ce.tdDrag),ce.tdMenu&&X.removeChild(ce.tdMenu),X.removeChild(pe))},Q.prototype.isVisible=function(){return this.parent.childs.length===0},Q.prototype.showContextMenu=function(ie,ce){var pe,X=this,Z=[{text:(0,g.Iu)("auto"),className:"jsoneditor-type-auto",title:(0,g.Iu)("autoType"),click:function(){X._onAppend("","","auto")}},{text:(0,g.Iu)("array"),className:"jsoneditor-type-array",title:(0,g.Iu)("arrayType"),click:function(){X._onAppend("",[])}},{text:(0,g.Iu)("object"),className:"jsoneditor-type-object",title:(0,g.Iu)("objectType"),click:function(){X._onAppend("",{})}},{text:(0,g.Iu)("string"),className:"jsoneditor-type-string",title:(0,g.Iu)("stringType"),click:function(){X._onAppend("","","string")}}],Z=(X.addTemplates(Z,!0),[{text:(0,g.Iu)("appendText"),title:(0,g.Iu)("appendTitleAuto"),submenuTitle:(0,g.Iu)("appendSubmenuTitle"),className:"jsoneditor-insert",click:function(){X._onAppend("","","auto")},submenu:Z}]);this.editor.options.onCreateMenu&&(pe=X.parent.getPath(),Z=this.editor.options.onCreateMenu(Z,{type:"append",path:pe,paths:[pe]})),new u.x(Z,{close:ce}).show(ie,this.editor.getPopupAnchor())},Q.prototype.onEvent=function(ie){var ce,pe=ie.type,X=ie.target||ie.srcElement,Z=this.dom;X===Z.menu&&(pe==="mouseover"?this.editor.highlighter.highlight(this.parent):pe==="mouseout"&&this.editor.highlighter.unhighlight()),pe==="click"&&X===Z.menu&&((ce=this.editor.highlighter).highlight(this.parent),ce.lock(),(0,k.addClassName)(Z.menu,"jsoneditor-selected"),this.showContextMenu(Z.menu,function(){(0,k.removeClassName)(Z.menu,"jsoneditor-selected"),ce.unlock(),ce.unhighlight()})),pe==="keydown"&&this.onKeyDown(ie)};var H=Q;function Q(ie){this.editor=ie,this.dom={}}(K.prototype=new x).getDom=function(){var ie,ce,pe,X,Z,Y;return this.dom.tr||(this._updateEditability(),this.dom.tr||(ce=(ie=this).parent,(Z=document.createElement("a")).appendChild(document.createTextNode((0,g.Iu)("showMore"))),Z.href="#",Z.onclick=function(se){return ce.visibleChilds=Math.floor(ce.visibleChilds/ce.getMaxVisibleChilds()+1)*ce.getMaxVisibleChilds(),ie.updateDom(),ce.showChilds(),se.preventDefault(),!1},(Y=document.createElement("a")).appendChild(document.createTextNode((0,g.Iu)("showAll"))),Y.href="#",Y.onclick=function(se){return ce.visibleChilds=1/0,ie.updateDom(),ce.showChilds(),se.preventDefault(),!1},pe=document.createElement("div"),X=document.createTextNode(this._getShowMoreText()),pe.className="jsoneditor-show-more",pe.appendChild(X),pe.appendChild(Z),pe.appendChild(document.createTextNode(". ")),pe.appendChild(Y),pe.appendChild(document.createTextNode(". ")),(Z=document.createElement("td")).appendChild(pe),Y=document.createElement("tr"),this.editor.options.mode==="tree"&&(Y.appendChild(document.createElement("td")),Y.appendChild(document.createElement("td"))),Y.appendChild(Z),Y.className="jsoneditor-show-more",this.dom.tr=Y,this.dom.moreContents=pe,this.dom.moreText=X),this.updateDom()),this.dom.tr},K.prototype.updateDom=function(ie){var ce;this.isVisible()?(this.dom.tr.node=this.parent.childs[this.parent.visibleChilds],this.dom.tr.parentNode||(ce=this.parent._getNextTr())&&ce.parentNode.insertBefore(this.dom.tr,ce),this.dom.moreText.nodeValue=this._getShowMoreText(),this.dom.moreContents.style.marginLeft=24*(this.getLevel()+1)+"px"):this.dom.tr&&this.dom.tr.parentNode&&this.dom.tr.parentNode.removeChild(this.dom.tr)},K.prototype._getShowMoreText=function(){return(0,g.Iu)("showMoreStatus",{visibleChilds:this.parent.visibleChilds,totalChilds:this.parent.childs.length})+" "},K.prototype.isVisible=function(){return this.parent.expanded&&this.parent.childs.length>this.parent.visibleChilds},K.prototype.onEvent=function(ie){ie.type==="keydown"&&this.onKeyDown(ie)};var U=K;function K(ie,ce){this.editor=ie,this.parent=ce,this.dom={}}function J(ie){return(J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(ie)}function ue(ie,ce){for(var pe=0;pe<ce.length;pe++){var X=ce[pe];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(ie,function(Z){return Z=function(Y,se){if(J(Y)!=="object"||Y===null)return Y;var fe=Y[Symbol.toPrimitive];if(fe===void 0)return(se==="string"?String:Number)(Y);if(fe=fe.call(Y,se||"default"),J(fe)!=="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}(Z,"string"),J(Z)==="symbol"?Z:String(Z)}(X.key),X)}}var ee=function(){function ie(X){if(!(this instanceof ie))throw new TypeError("Cannot call a class as a function");function Z(Y){return X.node.findNodeByInternalPath(Y)}this.editor=X,this.history=[],this.index=-1,this.clear(),this.actions={editField:{undo:function(Y){Z(Y.parentPath).childs[Y.index].updateField(Y.oldValue)},redo:function(Y){Z(Y.parentPath).childs[Y.index].updateField(Y.newValue)}},editValue:{undo:function(Y){Z(Y.path).updateValue(Y.oldValue)},redo:function(Y){Z(Y.path).updateValue(Y.newValue)}},changeType:{undo:function(Y){Z(Y.path).changeType(Y.oldType)},redo:function(Y){Z(Y.path).changeType(Y.newType)}},appendNodes:{undo:function(Y){var se=Z(Y.parentPath);Y.paths.map(Z).forEach(function(fe){se.removeChild(fe)})},redo:function(Y){var se=Z(Y.parentPath);Y.nodes.forEach(function(fe){se.appendChild(fe)})}},insertBeforeNodes:{undo:function(Y){var se=Z(Y.parentPath);Y.paths.map(Z).forEach(function(fe){se.removeChild(fe)})},redo:function(Y){var se=Z(Y.parentPath),fe=Z(Y.beforePath);Y.nodes.forEach(function(me){se.insertBefore(me,fe)})}},insertAfterNodes:{undo:function(Y){var se=Z(Y.parentPath);Y.paths.map(Z).forEach(function(fe){se.removeChild(fe)})},redo:function(Y){var se=Z(Y.parentPath),fe=Z(Y.afterPath);Y.nodes.forEach(function(me){se.insertAfter(me,fe),fe=me})}},removeNodes:{undo:function(Y){var se=Z(Y.parentPath),fe=se.childs[Y.index]||se.append;Y.nodes.forEach(function(me){se.insertBefore(me,fe)})},redo:function(Y){var se=Z(Y.parentPath);Y.paths.map(Z).forEach(function(fe){se.removeChild(fe)})}},duplicateNodes:{undo:function(Y){var se=Z(Y.parentPath);Y.clonePaths.map(Z).forEach(function(fe){se.removeChild(fe)})},redo:function(Y){var se=Z(Y.parentPath),fe=Z(Y.afterPath);Y.paths.map(Z).forEach(function(me){var Ae,Be=me.clone();se.type==="object"&&(Ae=se.getFieldNames(),Be.field=(0,k.findUniqueName)(me.field,Ae)),se.insertAfter(Be,fe),fe=Be})}},moveNodes:{undo:function(Y){var se=Z(Y.oldParentPath),fe=Z(Y.newParentPath),me=se.childs[Y.oldIndex]||se.append;fe.childs.slice(Y.newIndex,Y.newIndex+Y.count).forEach(function(Ae,Be){Ae.field=Y.fieldNames[Be],se.moveBefore(Ae,me)}),Y.newParentPathRedo===null&&(Y.newParentPathRedo=fe.getInternalPath())},redo:function(Y){var se=Z(Y.oldParentPathRedo),fe=Z(Y.newParentPathRedo),me=fe.childs[Y.newIndexRedo]||fe.append;se.childs.slice(Y.oldIndexRedo,Y.oldIndexRedo+Y.count).forEach(function(Ae,Be){Ae.field=Y.fieldNames[Be],fe.moveBefore(Ae,me)})}},sort:{undo:function(Y){var se=Z(Y.path);se.hideChilds(),se.childs=Y.oldChilds,se.updateDom({updateIndexes:!0}),se.showChilds()},redo:function(Y){var se=Z(Y.path);se.hideChilds(),se.childs=Y.newChilds,se.updateDom({updateIndexes:!0}),se.showChilds()}},transform:{undo:function(Y){Z(Y.path).setInternalValue(Y.oldValue)},redo:function(Y){Z(Y.path).setInternalValue(Y.newValue)}}}}var ce,pe;return ce=ie,(pe=[{key:"onChange",value:function(){}},{key:"add",value:function(X,Z){this.index++,this.history[this.index]={action:X,params:Z,timestamp:new Date},this.index<this.history.length-1&&this.history.splice(this.index+1,this.history.length-this.index-1),this.onChange()}},{key:"clear",value:function(){this.history=[],this.index=-1,this.onChange()}},{key:"canUndo",value:function(){return 0<=this.index}},{key:"canRedo",value:function(){return this.index<this.history.length-1}},{key:"undo",value:function(){if(this.canUndo()){var X=this.history[this.index];if(X){var Z=this.actions[X.action];if(Z&&Z.undo){if(Z.undo(X.params),X.params.oldSelection)try{this.editor.setDomSelection(X.params.oldSelection)}catch(Y){console.error(Y)}}else console.error(new Error('unknown action "'+X.action+'"'))}this.index--,this.onChange()}}},{key:"redo",value:function(){if(this.canRedo()){this.index++;var X=this.history[this.index];if(X){var Z=this.actions[X.action];if(Z&&Z.redo){if(Z.redo(X.params),X.params.newSelection)try{this.editor.setDomSelection(X.params.newSelection)}catch(Y){console.error(Y)}}else console.error(new Error('unknown action "'+X.action+'"'))}this.onChange()}}},{key:"destroy",value:function(){this.editor=null,this.history=[],this.index=-1}}])&&ue(ce.prototype,pe),Object.defineProperty(ce,"prototype",{writable:!1}),ie}();function N(ie){return(N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(ie)}function q(ie,ce){for(var pe=0;pe<ce.length;pe++){var X=ce[pe];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(ie,function(Z){return Z=function(Y,se){if(N(Y)!=="object"||Y===null)return Y;var fe=Y[Symbol.toPrimitive];if(fe===void 0)return(se==="string"?String:Number)(Y);if(fe=fe.call(Y,se||"default"),N(fe)!=="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}(Z,"string"),N(Z)==="symbol"?Z:String(Z)}(X.key),X)}}var G=function(){function ie(me,se){if(!(this instanceof ie))throw new TypeError("Cannot call a class as a function");var Y=this,me=(this.editor=me,this.timeout=void 0,this.delay=200,this.lastText=void 0,this.results=null,this.dom={},this.dom.container=se,document.createElement("div")),se=((this.dom.wrapper=me).className="jsoneditor-search",se.appendChild(me),document.createElement("div")),se=((this.dom.results=se).className="jsoneditor-results",me.appendChild(se),document.createElement("div")),me=((this.dom.input=se).className="jsoneditor-frame",se.title=(0,g.Iu)("searchTitle"),me.appendChild(se),document.createElement("button")),fe=(me.type="button",me.className="jsoneditor-refresh",se.appendChild(me),document.createElement("input")),me=(fe.type="text",(this.dom.search=fe).oninput=function(Ae){Y._onDelayedSearch(Ae)},fe.onchange=function(Ae){Y._onSearch()},fe.onkeydown=function(Ae){Y._onKeyDown(Ae)},fe.onkeyup=function(Ae){Y._onKeyUp(Ae)},me.onclick=function(Ae){fe.select()},se.appendChild(fe),document.createElement("button")),me=(me.type="button",me.title=(0,g.Iu)("searchNextResultTitle"),me.className="jsoneditor-next",me.onclick=function(){Y.next()},se.appendChild(me),document.createElement("button"));me.type="button",me.title=(0,g.Iu)("searchPreviousResultTitle"),me.className="jsoneditor-previous",me.onclick=function(){Y.previous()},se.appendChild(me)}var ce,pe;return ce=ie,(pe=[{key:"next",value:function(X){var Z;this.results&&((Z=this.resultIndex!==null?this.resultIndex+1:0)>this.results.length-1&&(Z=0),this._setActiveResult(Z,X))}},{key:"previous",value:function(X){var Z,Y;this.results&&(Z=this.results.length-1,Y=this.resultIndex!==null?this.resultIndex-1:Z,this._setActiveResult(Y=Y<0?Z:Y,X))}},{key:"_setActiveResult",value:function(X,Z){var Y,se,fe;this.activeResult&&(Y=this.activeResult.node,this.activeResult.elem==="field"?delete Y.searchFieldActive:delete Y.searchValueActive,Y.updateDom()),this.results&&this.results[X]?(this.resultIndex=X,se=this.results[this.resultIndex].node,(fe=this.results[this.resultIndex].elem)==="field"?se.searchFieldActive=!0:se.searchValueActive=!0,this.activeResult=this.results[this.resultIndex],se.updateDom(),se.scrollTo(function(){Z&&se.focus(fe)})):(this.resultIndex=void 0,this.activeResult=void 0)}},{key:"_clearDelay",value:function(){this.timeout!==void 0&&(clearTimeout(this.timeout),delete this.timeout)}},{key:"_onDelayedSearch",value:function(X){this._clearDelay();var Z=this;this.timeout=setTimeout(function(Y){Z._onSearch()},this.delay)}},{key:"_onSearch",value:function(X){this._clearDelay();var Z=this.dom.search.value,Z=0<Z.length?Z:void 0;if(Z!==this.lastText||X){this.lastText=Z,this.results=this.editor.search(Z);var X=this.results[0]?this.results[0].node.MAX_SEARCH_RESULTS:1/0,Y=0;if(this.activeResult){for(var se=0;se<this.results.length;se++)if(this.results[se].node===this.activeResult.node){Y=se;break}}this._setActiveResult(Y,!1),Z!==void 0?(Z=this.results.length,this.dom.results.textContent=Z===0?"no results":Z===1?"1 result":X<Z?X+"+ results":Z+" results"):this.dom.results.textContent=""}}},{key:"_onKeyDown",value:function(X){var Z=X.which;Z===27?(this.dom.search.value="",this._onSearch(),X.preventDefault(),X.stopPropagation()):Z===13&&(X.ctrlKey?this._onSearch(!0):X.shiftKey?this.previous():this.next(),X.preventDefault(),X.stopPropagation())}},{key:"_onKeyUp",value:function(X){var Z=X.keyCode;Z!==27&&Z!==13&&this._onDelayedSearch(X)}},{key:"clear",value:function(){this.dom.search.value="",this._onSearch()}},{key:"forceSearch",value:function(){this._onSearch(!0)}},{key:"isEmpty",value:function(){return this.dom.search.value===""}},{key:"destroy",value:function(){this.editor=null,this.dom.container.removeChild(this.dom.wrapper),this.dom=null,this.results=null,this.activeResult=null,this._clearDelay()}}])&&q(ce.prototype,pe),Object.defineProperty(ce,"prototype",{writable:!1}),ie}();function ne(ie){return(ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(ie)}function le(ie,ce){for(var pe=0;pe<ce.length;pe++){var X=ce[pe];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(ie,function(Z){return Z=function(Y,se){if(ne(Y)!=="object"||Y===null)return Y;var fe=Y[Symbol.toPrimitive];if(fe===void 0)return(se==="string"?String:Number)(Y);if(fe=fe.call(Y,se||"default"),ne(fe)!=="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}(Z,"string"),ne(Z)==="symbol"?Z:String(Z)}(X.key),X)}}var oe=function(){function ie(X,Z){if(!(this instanceof ie))throw new TypeError("Cannot call a class as a function");X&&(this.root=Z,this.path=document.createElement("div"),this.path.className="jsoneditor-treepath",this.path.setAttribute("tabindex",0),this.contentMenuClicked=!1,X.appendChild(this.path),this.reset())}var ce,pe;return ce=ie,(pe=[{key:"reset",value:function(){this.path.textContent=(0,g.Iu)("selectNode")}},{key:"setPath",value:function(X){var Z=this;this.path.textContent="",X&&X.length&&X.forEach(function(Y,se){var fe,me=document.createElement("span");me.className="jsoneditor-treepath-element",me.innerText=Y.name,me.onclick=(function(Ae){this.selectionCallback&&this.selectionCallback(Ae)}).bind(Z,Y),Z.path.appendChild(me),Y.children.length&&((fe=document.createElement("span")).className="jsoneditor-treepath-seperator",fe.textContent="►",fe.onclick=function(){Z.contentMenuClicked=!0;var Ae=[];Y.children.forEach(function(Be){Ae.push({text:Be.name,className:"jsoneditor-type-modes"+(X[se+1]+1&&X[se+1].name===Be.name?" jsoneditor-selected":""),click:(function(Ye,Qe){this.contextMenuCallback&&this.contextMenuCallback(Ye,Qe)}).bind(Z,Y,Be.name)})}),new u.x(Ae,{limitHeight:!0}).show(fe,Z.root,!0)},Z.path.appendChild(fe)),se===X.length-1&&(me=(fe||me).getBoundingClientRect().right,Z.path.offsetWidth<me&&(Z.path.scrollLeft=me),Z.path.scrollLeft)&&((me=document.createElement("span")).className="jsoneditor-treepath-show-all-btn",me.title="show all path",me.textContent="...",me.onclick=(function(Ae){(Z.contentMenuClicked=!1,k.addClassName)(Z.path,"show-all"),Z.path.style.width=Z.path.parentNode.getBoundingClientRect().width-10+"px",Z.path.onblur=function(){Z.contentMenuClicked?(Z.contentMenuClicked=!1,Z.path.focus()):((0,k.removeClassName)(Z.path,"show-all"),Z.path.onblur=void 0,Z.path.style.width="",Z.setPath(Ae))}}).bind(Z,X),Z.path.insertBefore(me,Z.path.firstChild))})}},{key:"onSectionSelected",value:function(X){typeof X=="function"&&(this.selectionCallback=X)}},{key:"onContextMenuItemSelected",value:function(X){typeof X=="function"&&(this.contextMenuCallback=X)}}])&&le(ce.prototype,pe),Object.defineProperty(ce,"prototype",{writable:!1}),ie}(),ve=ae(8037),de=ae.n(ve),ae={},be=(ae.create=function(ie,ce){if(!ie)throw new Error("No container element provided.");function pe(Pe){var Ze,dt;document.createRange?((Ze=document.createRange()).selectNodeContents(Pe),Ze.collapse(!1),(dt=window.getSelection()).removeAllRanges(),dt.addRange(Ze)):document.selection&&((Ze=document.body.createTextRange()).moveToElementText(Pe),Ze.collapse(!1),Ze.select())}function X(Pe){return me===void 0&&((me=document.createElement("span")).style.visibility="hidden",me.style.position="fixed",me.style.outline="0",me.style.margin="0",me.style.padding="0",me.style.border="0",me.style.left="0",me.style.whiteSpace="pre",me.style.fontSize=Be,me.style.fontFamily=Ye,me.style.fontWeight="normal",document.body.appendChild(me)),me.textContent=Pe,me.getBoundingClientRect().right}function Z(){this.style.backgroundColor="#ddd"}function Y(){this.style.backgroundColor=""}function se(){Ue.hide(),Ue.onmouseselection(this.__hint,Ue.rs)}var fe,me,Ae,Be,Ye,Qe,nt,st,Le,Me,je,Ue,Te,bt,At,ht;this.container=ie,this.dom={},this.highlighter=new f,this.selection=void 0,this.multiselection={nodes:[]},this.validateSchema=null,this.validationSequence=0,this.errorNodes=[],this.lastSchemaErrors=void 0,this.node=null,this.focusTarget=null,this._setOptions(ce),ce.autocomplete&&(this.autocomplete=((fe=(fe=ce.autocomplete)||{}).filter=fe.filter||"start",fe.trigger=fe.trigger||"keydown",fe.confirmKeys=fe.confirmKeys||[39,35,9],fe.caseSensitive=fe.caseSensitive||!1,Ye=Be="",(Qe=document.createElement("div")).style.position="relative",Qe.style.outline="0",Qe.style.border="0",Qe.style.margin="0",Qe.style.padding="0",(nt=document.createElement("div")).className="autocomplete dropdown",nt.style.position="absolute",nt.style.visibility="hidden",st=nt,Le=[],je=-1,bt=Ue={rs:Te={onArrowDown:function(){},onArrowUp:function(){},onEnter:function(){},onTab:function(){},startFrom:Me=0,options:[],element:null,elementHint:null,elementStyle:null,wrapper:Qe,show:function(Pe,Ze,dt){var Mt=this;this.startFrom=Ze,this.wrapper.remove(),this.elementHint&&(this.elementHint.remove(),this.elementHint=null),Be===""&&(Be=window.getComputedStyle(Pe).getPropertyValue("font-size")),Ye===""&&(Ye=window.getComputedStyle(Pe).getPropertyValue("font-family")),nt.style.marginLeft="0",nt.style.marginTop=Pe.getBoundingClientRect().height+"px",this.options=dt.map(String),this.element!==Pe&&(this.element=Pe,this.elementStyle={zIndex:this.element.style.zIndex,position:this.element.style.position,backgroundColor:this.element.style.backgroundColor,borderColor:this.element.style.borderColor}),this.element.style.zIndex=3,this.element.style.position="relative",this.element.style.backgroundColor="transparent",this.element.style.borderColor="transparent",this.elementHint=Pe.cloneNode(),this.elementHint.className="autocomplete hint",this.elementHint.style.zIndex=2,this.elementHint.style.position="absolute",this.elementHint.onfocus=function(){Mt.element.focus()},this.element.addEventListener&&(this.element.removeEventListener("keydown",At),this.element.addEventListener("keydown",At,!1),this.element.removeEventListener("blur",ht),this.element.addEventListener("blur",ht,!1)),Qe.appendChild(this.elementHint),Qe.appendChild(nt),Pe.parentElement.appendChild(Qe),this.repaint(Pe)},setText:function(Pe){this.element.innerText=Pe},getText:function(){return this.element.innerText},hideDropDown:function(){this.wrapper.remove(),this.elementHint&&(this.elementHint.remove(),this.elementHint=null,bt.hide(),this.element.style.zIndex=this.elementStyle.zIndex,this.element.style.position=this.elementStyle.position,this.element.style.backgroundColor=this.elementStyle.backgroundColor,this.element.style.borderColor=this.elementStyle.borderColor)},repaint:function(Ze){var Ze=(Ze=Ze.innerText).replace(`
|
|
`,""),dt=this.options.length,Mt=Ze.substring(this.startFrom);Ae=Ze.substring(0,this.startFrom);for(var He=0;He<dt;He++){var wt=this.options[He];if(!fe.caseSensitive&&wt.toLowerCase().indexOf(Mt.toLowerCase())===0||fe.caseSensitive&&wt.indexOf(Mt)===0){this.elementHint.innerText=Ae+Mt+wt.substring(Mt.length),this.elementHint.realInnerText=Ae+wt;break}}nt.style.left=X(Ae)+"px",bt.refresh(Mt,this.options),this.elementHint.style.width=X(this.elementHint.innerText)+10+"px",nt.style.visibility!=="hidden"&&(this.elementHint.style.width=X(this.elementHint.innerText)+nt.clientWidth+"px")}},hide:function(){st.style.visibility="hidden"},refresh:function(Pe,Ze){st.style.visibility="hidden",Me=0,st.textContent="";var Mt=window.innerHeight||document.documentElement.clientHeight,wt=st.parentNode.getBoundingClientRect(),dt=wt.top-6,Mt=Mt-wt.bottom-6,He=(Le=[],typeof fe.filter=="function"?fe.filter:l[fe.filter]),wt=He?Ze.filter(function(Ee){return He(fe.caseSensitive?Pe:Pe.toLowerCase(),fe.caseSensitive?Ee:Ee.toLowerCase(),fe)}):[];(Le=wt.map(function(Ee){var Xe=document.createElement("div"),ct=(Xe.className="item",Xe.onmouseover=Z,Xe.onmouseout=Y,Xe.onmousedown=se,Xe.__hint=Ee,Xe.textContent="",Xe.appendChild(document.createTextNode(Ee.substring(0,Pe.length))),document.createElement("b"));return ct.appendChild(document.createTextNode(Ee.substring(Pe.length))),Xe.appendChild(ct),st.appendChild(Xe),Xe})).length===0||Le.length===1&&(Pe.toLowerCase()===Le[0].__hint.toLowerCase()&&!fe.caseSensitive||Pe===Le[0].__hint&&fe.caseSensitive)||Le.length<2||(Ue.highlight(0),3*Mt<dt?(st.style.maxHeight=dt+"px",st.style.top="",st.style.bottom="100%"):(st.style.top="100%",st.style.bottom="",st.style.maxHeight=Mt+"px"),st.style.visibility="visible")},highlight:function(Pe){je!==-1&&Le[je]&&(Le[je].className="item"),Le[Pe].className="item hover",je=Pe},move:function(Pe){return st.style.visibility==="hidden"?"":(Me+Pe!==-1&&Me+Pe!==Le.length&&(Me+=Pe,Ue.highlight(Me)),Le[Me].__hint)},onmouseselection:function(){}},At=(function(Pe){var Ze=(Pe=Pe||window.event).keyCode;if(this.elementHint!=null&&Ze!==33&&Ze!==34)if(Ze===27)Te.hideDropDown(),Te.element.focus(),Pe.preventDefault(),Pe.stopPropagation();else{var dt,Mt=(Mt=this.element.innerText).replace(`
|
|
`,"");if(0<=fe.confirmKeys.indexOf(Ze))Ze===9&&this.elementHint.innerText.length===0&&Te.onTab(),0<this.elementHint.innerText.length&&this.element.innerText!==this.elementHint.realInnerText&&(this.element.innerText=this.elementHint.realInnerText,Te.hideDropDown(),pe(this.element),Ze===9)&&(Te.element.focus(),Pe.preventDefault(),Pe.stopPropagation());else if(Ze===13)if(this.elementHint.innerText.length===0)Te.onEnter();else{var He=nt.style.visibility==="hidden";if(bt.hide(),He)return Te.hideDropDown(),Te.element.focus(),void Te.onEnter();this.element.innerText=this.elementHint.realInnerText,Te.hideDropDown(),pe(this.element),Pe.preventDefault(),Pe.stopPropagation()}else Ze===40?(He=Mt.substring(this.startFrom),(dt=bt.move(1))===""&&Te.onArrowDown(),this.elementHint.innerText=Ae+He+dt.substring(He.length),this.elementHint.realInnerText=Ae+dt,Pe.preventDefault(),Pe.stopPropagation()):Ze===38&&(He=Mt.substring(this.startFrom),(dt=bt.move(-1))===""&&Te.onArrowUp(),this.elementHint.innerText=Ae+He+dt.substring(He.length),this.elementHint.realInnerText=Ae+dt,Pe.preventDefault(),Pe.stopPropagation())}}).bind(Te),ht=function(Pe){Te.hideDropDown()},bt.onmouseselection=function(Pe,Ze){Ze.element.innerText=Ze.elementHint.innerText=Ae+Pe,Ze.hideDropDown(),window.setTimeout(function(){Ze.element.focus(),pe(Ze.element)},1)},Te)),this.options.history&&this.options.mode!=="view"&&(this.history=new ee(this)),this._createFrame(),this._createTable()},ae.destroy=function(){this.frame&&this.container&&this.frame.parentNode===this.container&&(this.container.removeChild(this.frame),this.frame=null),this.container=null,this.dom=null,this.clear(),this.node=null,this.focusTarget=null,this.selection=null,this.multiselection=null,this.errorNodes=null,this.validateSchema=null,this._debouncedValidate=null,this.history&&(this.history.destroy(),this.history=null),this.searchBox&&(this.searchBox.destroy(),this.searchBox=null),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this.frameFocusTracker.destroy()},ae._setOptions=function(ie){var ce=this;this.options={search:!0,history:!0,mode:"tree",name:void 0,schema:null,schemaRefs:null,autocomplete:null,navigationBar:!0,mainMenuBar:!0,limitDragging:!1,onSelectionChange:null,colorPicker:!0,onColorPicker:function(pe,X,Z){var Y;de()?(Y=pe.getBoundingClientRect().top,Y=(0,k.getWindow)(pe).innerHeight-Y<300&&300<Y,new(de())({parent:pe,color:X,popup:Y?"top":"bottom",onDone:function(se){se=se.rgba[3]===1?se.hex.substr(0,7):se.hex,Z(se)}}).show()):console.warn("Cannot open color picker: the `vanilla-picker` library is not included in the bundle. Either use the full bundle or implement your own color picker using `onColorPicker`.")},timestampTag:!0,timestampFormat:null,createQuery:b.r,executeQuery:b.J,onEvent:null,enableSort:!0,enableTransform:!0},ie&&(Object.keys(ie).forEach(function(pe){ce.options[pe]=ie[pe]}),ie.limitDragging==null)&&ie.schema!=null&&(this.options.limitDragging=!0),this.setSchema(this.options.schema,this.options.schemaRefs),this._debouncedValidate=(0,k.debounce)(this._validateAndCatch.bind(this),this.DEBOUNCE_INTERVAL),ie.onSelectionChange&&this.onSelectionChange(ie.onSelectionChange),(0,g.cC)(this.options.languages),(0,g.m0)(this.options.language)},ae.set=function(ie){ie instanceof Function||ie===void 0?this.clear():(this.content.removeChild(this.table),ie={field:this.options.name,value:ie},ie=new x(this,ie),this._setRoot(ie),this._validateAndCatch(),this.node.expand(!1),this.content.appendChild(this.table)),this.history&&this.history.clear(),this.searchBox&&this.searchBox.clear()},ae.update=function(ie){var ce,pe;this.node.deepEqual(ie)||(ce=this.getSelection(),this.onChangeDisabled=!0,this.node.update(ie),this.onChangeDisabled=!1,this._validateAndCatch(),this.searchBox&&!this.searchBox.isEmpty()&&this.searchBox.forceSearch(),ce&&ce.start&&ce.end&&(ie=this.node.findNodeByPath(ce.start.path),pe=this.node.findNodeByPath(ce.end.path),ie)&&pe?this.setSelection(ce.start,ce.end):this.setSelection({},{}))},ae.get=function(){if(this.node)return this.node.getValue()},ae.getText=function(){return JSON.stringify(this.get())},ae.setText=function(ie){try{this.set((0,k.parse)(ie))}catch{ie=(0,k.tryJsonRepair)(ie),this.set((0,k.parse)(ie))}},ae.updateText=function(ie){try{this.update((0,k.parse)(ie))}catch{ie=(0,k.tryJsonRepair)(ie),this.update((0,k.parse)(ie))}},ae.setName=function(ie){this.options.name=ie,this.node&&this.node.updateField(this.options.name)},ae.getName=function(){return this.options.name},ae.focus=function(){var ie=this.scrollableContent.querySelector("[contenteditable=true]");ie?ie.focus():this.node.dom.expand?this.node.dom.expand.focus():this.node.dom.menu?this.node.dom.menu.focus():(ie=this.frame.querySelector("button"))&&ie.focus()},ae.clear=function(){this.node&&(this.node.hide(),delete this.node),this.treePath&&this.treePath.reset()},ae._setRoot=function(ie){this.clear(),(this.node=ie).setParent(null),ie.setField(this.getName(),!1),delete ie.index,this.tbody.appendChild(ie.getDom())},ae.search=function(ie){var ce;return this.node?(this.content.removeChild(this.table),ce=this.node.search(ie),this.content.appendChild(this.table)):ce=[],ce},ae.expandAll=function(){this.node&&(this.content.removeChild(this.table),this.node.expand(),this.content.appendChild(this.table))},ae.collapseAll=function(){this.node&&(this.content.removeChild(this.table),this.node.collapse(),this.content.appendChild(this.table))},ae.expand=function(ie){var ce;ie&&(ce=this.node?this.node.findNodeByPath(ie.path):null)&&(ie.isExpand?ce.expand(ie.recursive):ce.collapse(ie.recursive))},ae._onAction=function(ie,ce){this.history&&this.history.add(ie,ce),this._onChange()},ae._onChange=function(){if(!this.onChangeDisabled){var ie;if(this.selection=this.getDomSelection(),this._debouncedValidate(),this.treePath&&((ie=this.node&&this.selection?this.node.findNodeByInternalPath(this.selection.path):this.multiselection?this.multiselection.nodes[0]:void 0)?this._updateTreePath(ie.getNodePath()):this.treePath.reset()),this.options.onChange)try{this.options.onChange()}catch(ce){console.error("Error in onChange callback: ",ce)}if(this.options.onChangeJSON)try{this.options.onChangeJSON(this.get())}catch(ce){console.error("Error in onChangeJSON callback: ",ce)}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch(ce){console.error("Error in onChangeText callback: ",ce)}if(this.options.onClassName&&this.node.recursivelyUpdateCssClassesOnNodes(),this.options.onNodeName&&this.node.childs)try{this.node.recursivelyUpdateNodeName()}catch(ce){console.error("Error in onNodeName callback: ",ce)}}},ae.validate=function(){var ie=this,ce=this.node;if(ce){var pe=ce.getValue(),X=[];this.validateSchema&&!this.validateSchema(pe)&&(X=this.validateSchema.errors.map(function(se){return(0,k.improveSchemaError)(se)}).map(function(se){return{node:ce.findNode(se.dataPath),error:se,type:"validation"}}).filter(function(se){return se.node!=null}));try{this.validationSequence++;var Z=this,Y=this.validationSequence;return this._validateCustom(pe).then(function(se){return Y===Z.validationSequence&&(se=[].concat(X,se||[]),Z._renderValidationErrors(se),typeof ie.options.onValidationError=="function"&&(0,k.isValidationErrorChanged)(se,ie.lastSchemaErrors)&&ie.options.onValidationError.call(ie,se),ie.lastSchemaErrors=se),ie.lastSchemaErrors})}catch(se){return Promise.reject(se)}}},ae._validateAndCatch=function(){this.validate().catch(function(ie){console.error("Error running validation:",ie)})},ae._renderValidationErrors=function(ie){this.errorNodes&&this.errorNodes.forEach(function(pe){pe.setError(null)});var ce=ie.reduce(function(pe,X){return X.node.findParents().filter(function(Z){return!pe.some(function(Y){return Y[0]===Z})}).map(function(Z){return[Z,X.node]}).concat(pe)},[]);this.errorNodes=ce.map(function(pe){return{node:pe[0],child:pe[1],error:{message:pe[0].type==="object"?(0,g.Iu)("containsInvalidProperties"):(0,g.Iu)("containsInvalidItems")}}}).concat(ie).map(function(pe){return pe.node.setError(pe.error,pe.child),pe.node})},ae._validateCustom=function(ie){try{var ce,pe;if(this.options.onValidate)return ce=this.node,pe=this.options.onValidate(ie),((0,k.isPromise)(pe)?pe:Promise.resolve(pe)).then(function(X){return Array.isArray(X)?X.filter(function(Z){var Y=(0,k.isValidValidationError)(Z);return Y||console.warn('Ignoring a custom validation error with invalid structure. Expected structure: {path: [...], message: "..."}. Actual error:',Z),Y}).map(function(Z){var Y;try{Y=Z&&Z.path?ce.findNodeByPath(Z.path):null}catch{}return Y||console.warn("Ignoring validation error: node not found. Path:",Z.path,"Error:",Z),{node:Y,error:Z,type:"customValidation"}}).filter(function(Z){return Z&&Z.node&&Z.error&&Z.error.message}):null})}catch(X){return Promise.reject(X)}return Promise.resolve(null)},ae.refresh=function(){this.node&&this.node.updateDom({recurse:!0})},ae.startAutoScroll=function(ie){var ce=this,pe=this.scrollableContent,X=(0,k.getAbsoluteTop)(pe),Z=pe.clientHeight,Y=X+Z;ie<X+24&&0<pe.scrollTop?this.autoScrollStep=(X+24-ie)/3:Y-24<ie&&Z+pe.scrollTop<pe.scrollHeight?this.autoScrollStep=(Y-24-ie)/3:this.autoScrollStep=void 0,this.autoScrollStep?this.autoScrollTimer||(this.autoScrollTimer=setInterval(function(){ce.autoScrollStep?pe.scrollTop-=ce.autoScrollStep:ce.stopAutoScroll()},50)):this.stopAutoScroll()},ae.stopAutoScroll=function(){this.autoScrollTimer&&(clearTimeout(this.autoScrollTimer),delete this.autoScrollTimer),this.autoScrollStep&&delete this.autoScrollStep},ae.setDomSelection=function(ie){var ce,pe,X;ie&&("scrollTop"in ie&&this.scrollableContent&&(this.scrollableContent.scrollTop=ie.scrollTop),ie.paths?(ce=this,pe=ie.paths.map(function(Z){return ce.node.findNodeByInternalPath(Z)}),this.select(pe)):(X=(pe=ie.path?this.node.findNodeByInternalPath(ie.path):null)&&ie.domName?pe.dom[ie.domName]:null,ie.range&&X?(ie=Object.assign({},ie.range,{container:X}),(0,k.setSelectionOffset)(ie)):pe&&pe.focus()))},ae.getDomSelection=function(){var ie=x.getNodeFromTarget(this.focusTarget),ce=this.focusTarget,pe=ie?Object.keys(ie.dom).find(function(Z){return ie.dom[Z]===ce}):null,X=(0,k.getSelectionOffset)();return(X=(X=X&&X.container.nodeName!=="DIV"?null:X)&&X.container!==ce?null:X)&&delete X.container,{path:ie?ie.getInternalPath():null,domName:pe,range:X,paths:0<this.multiselection.length?this.multiselection.nodes.map(function(Z){return Z.getInternalPath()}):null,scrollTop:this.scrollableContent?this.scrollableContent.scrollTop:0}},ae.scrollTo=function(ie,ce){var pe,X,Z,Y,se=this.scrollableContent;se?((pe=this).animateTimeout&&(clearTimeout(pe.animateTimeout),delete pe.animateTimeout),pe.animateCallback&&(pe.animateCallback(!1),delete pe.animateCallback),X=se.clientHeight,Z=se.scrollHeight-X,Y=Math.min(Math.max(ie-X/4,0),Z),function fe(){var me=se.scrollTop,me=Y-me;3<Math.abs(me)?(se.scrollTop+=me/3,pe.animateCallback=ce,pe.animateTimeout=setTimeout(fe,50)):(ce&&ce(!0),se.scrollTop=Y,delete pe.animateTimeout,delete pe.animateCallback)}()):ce&&ce(!1)},ae._createFrame=function(){var ie=this,ce=(this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-"+this.options.mode,this.container.appendChild(this.frame),this.contentOuter=document.createElement("div"),this.contentOuter.className="jsoneditor-outer",this);function pe(fe){ce._onEvent&&ce._onEvent(fe)}var X,Z,Y,se={target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null};this.frameFocusTracker=new c.R(se),this.frame.onclick=function(fe){var me=fe.target;pe(fe),me.nodeName==="BUTTON"&&fe.preventDefault()},this.frame.oninput=pe,this.frame.onchange=pe,this.frame.onkeydown=pe,this.frame.onkeyup=pe,this.frame.oncut=pe,this.frame.onpaste=pe,this.frame.onmousedown=pe,this.frame.onmouseup=pe,this.frame.onmouseover=pe,this.frame.onmouseout=pe,(0,k.addEventListener)(this.frame,"focus",pe,!0),(0,k.addEventListener)(this.frame,"blur",pe,!0),this.frame.onfocusin=pe,this.frame.onfocusout=pe,this.options.mainMenuBar&&((0,k.addClassName)(this.contentOuter,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu),(se=document.createElement("button")).type="button",se.className="jsoneditor-expand-all",se.title=(0,g.Iu)("expandAll"),se.onclick=function(){ce.expandAll(),typeof ie.options.onExpand=="function"&&ie.options.onExpand({path:[],isExpand:!0,recursive:!0})},this.menu.appendChild(se),(se=document.createElement("button")).type="button",se.title=(0,g.Iu)("collapseAll"),se.className="jsoneditor-collapse-all",se.onclick=function(){ce.collapseAll(),typeof ie.options.onExpand=="function"&&ie.options.onExpand({path:[],isExpand:!1,recursive:!0})},this.menu.appendChild(se),this.options.enableSort&&((se=document.createElement("button")).type="button",se.className="jsoneditor-sort",se.title=(0,g.Iu)("sortTitleShort"),se.onclick=function(){ce.node.showSortModal()},this.menu.appendChild(se)),this.options.enableTransform&&((se=document.createElement("button")).type="button",se.title=(0,g.Iu)("transformTitleShort"),se.className="jsoneditor-transform",se.onclick=function(){ce.node.showTransformModal()},this.menu.appendChild(se)),this.history&&((X=document.createElement("button")).type="button",X.className="jsoneditor-undo jsoneditor-separator",X.title=(0,g.Iu)("undo"),X.onclick=function(){ce._onUndo()},this.menu.appendChild(X),this.dom.undo=X,(Z=document.createElement("button")).type="button",Z.className="jsoneditor-redo",Z.title=(0,g.Iu)("redo"),Z.onclick=function(){ce._onRedo()},this.menu.appendChild(Z),this.dom.redo=Z,this.history.onChange=function(){X.disabled=!ce.history.canUndo(),Z.disabled=!ce.history.canRedo()},this.history.onChange()),this.options&&this.options.modes&&this.options.modes.length&&((Y=this).modeSwitcher=new v.x(this.menu,this.options.modes,this.options.mode,function(fe){try{Y.setMode(fe),Y.modeSwitcher.focus()}catch(me){Y._onError(me)}})),this.options.search)&&(this.searchBox=new G(this,this.menu)),this.options.navigationBar&&(this.navBar=document.createElement("div"),this.navBar.className="jsoneditor-navigation-bar nav-bar-empty",this.frame.appendChild(this.navBar),this.treePath=new oe(this.navBar,this.getPopupAnchor()),this.treePath.onSectionSelected(this._onTreePathSectionSelected.bind(this)),this.treePath.onContextMenuItemSelected(this._onTreePathMenuItemSelected.bind(this)))},ae._onUndo=function(){this.history&&(this.history.undo(),this._onChange())},ae._onRedo=function(){this.history&&(this.history.redo(),this._onChange())},ae._onEvent=function(ie){if(!x.targetIsColorPicker(ie.target)){var ce,pe=x.getNodeFromTarget(ie.target);if(ie.type==="keydown"&&this._onKeyDown(ie),pe&&ie.type==="focus"&&(this.focusTarget=ie.target,this.options.autocomplete)&&this.options.autocomplete.trigger==="focus"&&this._showAutoComplete(ie.target),ie.type==="mousedown"&&this._startDragDistance(ie),ie.type!=="mousemove"&&ie.type!=="mouseup"&&ie.type!=="click"||this._updateDragDistance(ie),pe&&this.options&&this.options.navigationBar&&pe&&(ie.type==="keydown"||ie.type==="mousedown")&&(ce=this,setTimeout(function(){ce._updateTreePath(pe.getNodePath())})),pe&&pe.selected){if(ie.type==="click"){if(ie.target===pe.dom.menu)return void this.showContextMenu(ie.target);ie.hasMoved||this.deselect()}ie.type==="mousedown"&&x.onDragStart(this.multiselection.nodes,ie)}else ie.type==="mousedown"&&(0,k.hasParentNode)(ie.target,this.content)&&(this.deselect(),pe&&ie.target===pe.dom.drag?x.onDragStart(pe,ie):pe&&(ie.target===pe.dom.field||ie.target===pe.dom.value||ie.target===pe.dom.select)||this._onMultiSelectStart(ie));pe&&pe.onEvent(ie)}},ae._updateTreePath=function(ie){var ce;function pe(X){return X.parent?X.parent.type==="array"?X.index:X.field:X.field||X.type}ie&&ie.length?((0,k.removeClassName)(this.navBar,"nav-bar-empty"),ce=[],ie.forEach(function(X){var Z={name:pe(X),node:X,children:[]};X.childs&&X.childs.length&&X.childs.forEach(function(Y){Z.children.push({name:pe(Y),node:Y})}),ce.push(Z)}),this.treePath.setPath(ce)):(0,k.addClassName)(this.navBar,"nav-bar-empty")},ae._onTreePathSectionSelected=function(ie){ie&&ie.node&&(ie.node.expandTo(),ie.node.focus())},ae._onTreePathMenuItemSelected=function(ie,ce){ie&&ie.children.length&&(ie=ie.children.find(function(pe){return pe.name===ce}))&&ie.node&&(this._updateTreePath(ie.node.getNodePath()),ie.node.expandTo(),ie.node.focus())},ae._startDragDistance=function(ie){this.dragDistanceEvent={initialTarget:ie.target,initialPageX:ie.pageX,initialPageY:ie.pageY,dragDistance:0,hasMoved:!1}},ae._updateDragDistance=function(ie){this.dragDistanceEvent||this._startDragDistance(ie);var ce=ie.pageX-this.dragDistanceEvent.initialPageX,pe=ie.pageY-this.dragDistanceEvent.initialPageY;return this.dragDistanceEvent.dragDistance=Math.sqrt(ce*ce+pe*pe),this.dragDistanceEvent.hasMoved=this.dragDistanceEvent.hasMoved||10<this.dragDistanceEvent.dragDistance,ie.dragDistance=this.dragDistanceEvent.dragDistance,ie.hasMoved=this.dragDistanceEvent.hasMoved,ie.dragDistance},ae._onMultiSelectStart=function(ie){var ce,pe=x.getNodeFromTarget(ie.target);this.options.mode==="tree"&&this.options.onEditable===void 0&&(this.multiselection={start:pe||null,end:null,nodes:[]},this._startDragDistance(ie),(ce=this).mousemove||(this.mousemove=(0,k.addEventListener)(ie.view,"mousemove",function(X){ce._onMultiSelect(X)})),this.mouseup||(this.mouseup=(0,k.addEventListener)(ie.view,"mouseup",function(X){ce._onMultiSelectEnd(X)})),ie.preventDefault())},ae._onMultiSelect=function(ie){var ce;ie.preventDefault(),this._updateDragDistance(ie),ie.hasMoved&&((ie=x.getNodeFromTarget(ie.target))&&(this.multiselection.start==null&&(this.multiselection.start=ie),this.multiselection.end=ie),this.deselect(),ie=this.multiselection.start,ce=this.multiselection.end||this.multiselection.start,ie)&&ce&&(this.multiselection.nodes=this._findTopLevelNodes(ie,ce),this.multiselection.nodes&&this.multiselection.nodes.length&&(ie=this.multiselection.nodes[0],this.multiselection.start===ie||this.multiselection.start.isDescendantOf(ie)?this.multiselection.direction="down":this.multiselection.direction="up"),this.select(this.multiselection.nodes))},ae._onMultiSelectEnd=function(ie){var ce=this.multiselection.nodes[0];ce&&ce.dom.menu&&ce.dom.menu.focus(),this.multiselection.start=null,this.multiselection.end=null,this.mousemove&&((0,k.removeEventListener)(ie.view,"mousemove",this.mousemove),delete this.mousemove),this.mouseup&&((0,k.removeEventListener)(ie.view,"mouseup",this.mouseup),delete this.mouseup)},ae.deselect=function(ie){var ce=!!this.multiselection.nodes.length;this.multiselection.nodes.forEach(function(pe){pe.setSelected(!1)}),this.multiselection.nodes=[],ie&&(this.multiselection.start=null,this.multiselection.end=null),ce&&this._selectionChangedHandler&&this._selectionChangedHandler()},ae.select=function(ie){if(!Array.isArray(ie))return this.select([ie]);var ce;ie&&(this.deselect(),this.multiselection.nodes=ie.slice(0),ce=ie[0],ie.forEach(function(pe){pe.expandPathToNode(),pe.setSelected(!0,pe===ce)}),this._selectionChangedHandler)&&(ie=this.getSelection(),this._selectionChangedHandler(ie.start,ie.end))},ae._findTopLevelNodes=function(se,fe){for(var pe=se.getNodePath(),X=fe.getNodePath(),Z=0;Z<pe.length&&pe[Z]===X[Z];)Z++;var Y,se=pe[Z-1],fe=pe[Z],me=X[Z];return fe&&me||(se.parent?se=(me=fe=se).parent:(fe=se.childs[0],me=se.childs[se.childs.length-1])),se&&fe&&me?(fe=se.childs.indexOf(fe),me=se.childs.indexOf(me),Y=Math.min(fe,me),fe=Math.max(fe,me),se.childs.slice(Y,fe+1)):[]},ae._showAutoComplete=function(ie){var ce,pe=x.getNodeFromTarget(ie),X="";0<=ie.className.indexOf("jsoneditor-value")&&(X="value"),(X=0<=ie.className.indexOf("jsoneditor-field")?"field":X)!==""&&(ce=this,setTimeout(function(){var Z;!pe||!(ce.options.autocomplete.trigger==="focus"||0<ie.innerText.length)||(Z=ce.options.autocomplete.getOptions(ie.innerText,pe.getPath(),X,pe.editor))===null?ce.autocomplete.hideDropDown():typeof Z.then=="function"?Z.then(function(Y){Y===null?ce.autocomplete.hideDropDown():Y.options?ce.autocomplete.show(ie,Y.startFrom,Y.options):ce.autocomplete.show(ie,0,Y)}).catch(function(Y){console.error(Y)}):Z.options?ce.autocomplete.show(ie,Z.startFrom,Z.options):ce.autocomplete.show(ie,0,Z)},50))},ae._onKeyDown=function(ie){var ce,pe=ie.which||ie.keyCode,X=ie.altKey,Z=ie.ctrlKey,Y=ie.metaKey,se=ie.shiftKey,fe=!1,me=this.focusTarget;pe===9&&(ce=this,setTimeout(function(){ce.focusTarget!==me&&(0,k.selectContentEditable)(ce.focusTarget)},0)),this.searchBox&&(Z&&pe===70?(this.searchBox.dom.search.focus(),this.searchBox.dom.search.select(),fe=!0):(pe===114||Z&&pe===71)&&(se?this.searchBox.previous(!0):this.searchBox.next(!0),fe=!0)),this.history&&(Z&&!se&&pe===90?(this._onUndo(),fe=!0):Z&&se&&pe===90&&(this._onRedo(),fe=!0)),!this.options.autocomplete||fe||Z||X||Y||ie.key.length!==1&&pe!==8&&pe!==46||(fe=!1,this._showAutoComplete(ie.target)),fe&&(ie.preventDefault(),ie.stopPropagation())},ae._createTable=function(){var ie;this.options.navigationBar&&(0,k.addClassName)(this.contentOuter,"has-nav-bar"),this.scrollableContent=document.createElement("div"),this.scrollableContent.className="jsoneditor-tree",this.contentOuter.appendChild(this.scrollableContent),this.content=document.createElement("div"),this.content.className="jsoneditor-tree-inner",this.scrollableContent.appendChild(this.content),this.table=document.createElement("table"),this.table.className="jsoneditor-tree",this.content.appendChild(this.table),this.colgroupContent=document.createElement("colgroup"),this.options.mode==="tree"&&((ie=document.createElement("col")).width="24px",this.colgroupContent.appendChild(ie)),(ie=document.createElement("col")).width="24px",this.colgroupContent.appendChild(ie),ie=document.createElement("col"),this.colgroupContent.appendChild(ie),this.table.appendChild(this.colgroupContent),this.tbody=document.createElement("tbody"),this.table.appendChild(this.tbody),this.frame.appendChild(this.contentOuter)},ae.showContextMenu=function(ie,ce){var pe,X=[],Z=this.multiselection.nodes.slice();X.push({text:(0,g.Iu)("duplicateText"),title:(0,g.Iu)("duplicateTitle"),className:"jsoneditor-duplicate",click:function(){x.onDuplicate(Z)}}),X.push({text:(0,g.Iu)("remove"),title:(0,g.Iu)("removeTitle"),className:"jsoneditor-remove",click:function(){x.onRemove(Z)}}),this.options.onCreateMenu&&(pe=Z.map(function(Y){return Y.getPath()}),X=this.options.onCreateMenu(X,{type:"multiple",path:pe[0],paths:pe})),new u.x(X,{close:ce}).show(ie,this.getPopupAnchor())},ae.getPopupAnchor=function(){return this.options.popupAnchor||this.frame},ae.getSelection=function(){var ie,ce,pe={start:null,end:null};return this.multiselection.nodes&&this.multiselection.nodes.length&&this.multiselection.nodes.length&&(ie=this.multiselection.nodes[0],ce=this.multiselection.nodes[this.multiselection.nodes.length-1],this.multiselection.direction==="down"?(pe.start=ie.serialize(),pe.end=ce.serialize()):(pe.start=ce.serialize(),pe.end=ie.serialize())),pe},ae.onSelectionChange=function(ie){typeof ie=="function"&&(this._selectionChangedHandler=(0,k.debounce)(ie,this.DEBOUNCE_INTERVAL))},ae.setSelection=function(ie,ce){ie&&ie.dom&&ie.range&&(console.warn("setSelection/getSelection usage for text selection is deprecated and should not be used, see documentation for supported selection options"),this.setDomSelection(ie)),ie=this._getNodeInstancesByRange(ie,ce),ie.forEach(function(pe){pe.expandTo()}),this.select(ie)},ae._getNodeInstancesByRange=function(ie,ce){ie&&ie.path&&(pe=this.node.findNodeByPath(ie.path),ce)&&ce.path&&(X=this.node.findNodeByPath(ce.path));var pe,X,Z=[];if(pe instanceof x)if(X instanceof x&&X!==pe)if(pe.parent===X.parent){ce=pe.getIndex()<X.getIndex()?(ie=pe,X):(ie=X,pe);var Y=ie;for(Z.push(Y);Y=Y.nextSibling(),Z.push(Y),Y&&Y!==ce;);}else Z=this._findTopLevelNodes(pe,X);else Z.push(pe);return Z},ae.getNodesByRange=function(pe,ce){var pe=this._getNodeInstancesByRange(pe,ce),X=[];return pe.forEach(function(Z){X.push(Z.serialize())}),X},[{mode:"tree",mixin:ae,data:"json"},{mode:"view",mixin:ae,data:"json"},{mode:"form",mixin:ae,data:"json"}])},2744:function(o,a,s){a.tryRequireAjv=function(){try{return s(8903)}catch{}}},9125:function(o,a,s){a.O=function(){try{s(4864)}catch(l){console.error(l)}}},9791:function(o,l,s){s.r(l),s.d(l,{addClassName:function(){return $},addEventListener:function(){return ve},asyncExec:function(){return He},clear:function(){return y},compileJSONPointer:function(){return Be},contains:function(){return Ze},debounce:function(){return Y},escapeUnicodeChars:function(){return S},extend:function(){return O},findUniqueName:function(){return Le},formatSize:function(){return At},get:function(){return st},getAbsoluteLeft:function(){return x},getAbsoluteTop:function(){return P},getChildPaths:function(){return Me},getColorCSS:function(){return Ye},getIndexForPosition:function(){return me},getInnerText:function(){return N},getInputSelection:function(){return fe},getInternetExplorerVersion:function(){return ne},getPositionForPath:function(){return Ae},getSelection:function(){return K},getSelectionOffset:function(){return ue},getType:function(){return _},getWindow:function(){return C},hasParentNode:function(){return G},improveSchemaError:function(){return ce},insideRect:function(){return Z},isArray:function(){return D},isChildOf:function(){return ae},isFirefox:function(){return oe},isObject:function(){return Pe},isPromise:function(){return pe},isTimestamp:function(){return bt},isUrl:function(){return R},isValidColor:function(){return Qe},isValidValidationError:function(){return X},isValidationErrorChanged:function(){return dt},limitCharacters:function(){return ht},makeFieldTooltip:function(){return nt},parse:function(){return k},parsePath:function(){return be},parseString:function(){return Te},removeAllClassNames:function(){return L},removeClassName:function(){return V},removeEventListener:function(){return de},removeReturnsAndSurroundingWhitespace:function(){return q},selectContentEditable:function(){return U},setEndOfContentEditable:function(){return Q},setSelection:function(){return J},setSelectionOffset:function(){return ee},sort:function(){return je},sortObjectKeys:function(){return Ue},stringifyPath:function(){return ie},stripFormatting:function(){return H},textDiff:function(){return se},tryJsonRepair:function(){return T},uniqueMergeArrays:function(){return Mt},validate:function(){return I}}),s(4987);var l=s(233),u=s.n(l),c=s(1262),d=s(6589),h=s(7026),f=s(7907);function g(Ee){return function(Xe){if(Array.isArray(Xe))return b(Xe)}(Ee)||function(Xe){if(typeof Symbol<"u"&&Xe[Symbol.iterator]!=null||Xe["@@iterator"]!=null)return Array.from(Xe)}(Ee)||function(Xe,ct){var _t;if(Xe)return typeof Xe=="string"?b(Xe,ct):(_t=(_t=Object.prototype.toString.call(Xe).slice(8,-1))==="Object"&&Xe.constructor?Xe.constructor.name:_t)==="Map"||_t==="Set"?Array.from(Xe):_t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_t)?b(Xe,ct):void 0}(Ee)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function b(Ee,Xe){(Xe==null||Xe>Ee.length)&&(Xe=Ee.length);for(var ct=0,_t=new Array(Xe);ct<Xe;ct++)_t[ct]=Ee[ct];return _t}function v(Ee){return(v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Xe){return typeof Xe}:function(Xe){return Xe&&typeof Symbol=="function"&&Xe.constructor===Symbol&&Xe!==Symbol.prototype?"symbol":typeof Xe})(Ee)}var m=1e4,w=9466848e5;function k(Ee){try{return JSON.parse(Ee)}catch(Xe){throw I(Ee),Xe}}function T(Ee){try{return(0,c.K)(Ee)}catch{return Ee}}function S(Ee){return Ee.replace(/[\u007F-\uFFFF]/g,function(Xe){return"\\u"+("0000"+Xe.charCodeAt(0).toString(16)).slice(-4)})}function I(Ee){(d!==void 0?d:JSON).parse(Ee)}function O(Ee,Xe){for(var ct in Xe)wt(Xe,ct)&&(Ee[ct]=Xe[ct]);return Ee}function y(Ee){for(var Xe in Ee)wt(Ee,Xe)&&delete Ee[Xe];return Ee}function _(Ee){return Ee===null?"null":Ee===void 0?"undefined":Ee instanceof Number||typeof Ee=="number"?"number":Ee instanceof String||typeof Ee=="string"?"string":Ee instanceof Boolean||typeof Ee=="boolean"?"boolean":Ee instanceof RegExp?"regexp":D(Ee)?"array":"object"}var A=/^https?:\/\/\S+$/;function R(Ee){return(typeof Ee=="string"||Ee instanceof String)&&A.test(Ee)}function D(Ee){return Object.prototype.toString.call(Ee)==="[object Array]"}function C(Ee){return Ee.ownerDocument.defaultView}function x(Ee){return Ee.getBoundingClientRect().left+window.pageXOffset||document.scrollLeft||0}function P(Ee){return Ee.getBoundingClientRect().top+window.pageYOffset||document.scrollTop||0}function $(Ee,Xe){var ct=Ee.className.split(" ");ct.indexOf(Xe)===-1&&(ct.push(Xe),Ee.className=ct.join(" "))}function L(Ee){Ee.className=""}function V(Ee,_t){var ct=Ee.className.split(" "),_t=ct.indexOf(_t);_t!==-1&&(ct.splice(_t,1),Ee.className=ct.join(" "))}function H(Ee){for(var Xe=Ee.childNodes,ct=0,_t=Xe.length;ct<_t;ct++){var Qt=Xe[ct],ln=(Qt.style&&Qt.removeAttribute("style"),Qt.attributes);if(ln)for(var kn=ln.length-1;0<=kn;kn--){var hr=ln[kn];hr.specified===!0&&Qt.removeAttribute(hr.name)}H(Qt)}}function Q(Ee){var Xe;document.createRange&&((Xe=document.createRange()).selectNodeContents(Ee),Xe.collapse(!1),(Ee=window.getSelection()).removeAllRanges(),Ee.addRange(Xe))}function U(Ee){var Xe;Ee&&Ee.nodeName==="DIV"&&window.getSelection&&document.createRange&&((Xe=document.createRange()).selectNodeContents(Ee),(Ee=window.getSelection()).removeAllRanges(),Ee.addRange(Xe))}function K(){if(window.getSelection){var Ee=window.getSelection();if(Ee.getRangeAt&&Ee.rangeCount)return Ee.getRangeAt(0)}return null}function J(Ee){var Xe;Ee&&window.getSelection&&((Xe=window.getSelection()).removeAllRanges(),Xe.addRange(Ee))}function ue(){var Ee=K();return Ee&&"startOffset"in Ee&&"endOffset"in Ee&&Ee.startContainer&&Ee.startContainer===Ee.endContainer?{startOffset:Ee.startOffset,endOffset:Ee.endOffset,container:Ee.startContainer.parentNode}:null}function ee(Ee){var Xe;document.createRange&&window.getSelection&&window.getSelection()&&(Xe=document.createRange(),Ee.container.firstChild||Ee.container.appendChild(document.createTextNode("")),Xe.setStart(Ee.container.firstChild,Ee.startOffset),Xe.setEnd(Ee.container.firstChild,Ee.endOffset),J(Xe))}function N(Ee,Xe){var ct;if(Xe===void 0&&(Xe={_text:"",flush:function(){var Wr=this._text;return this._text="",Wr},set:function(Wr){this._text=Wr}}),Ee.nodeValue)return(ct=q(Ee.nodeValue))!==""?Xe.flush()+ct:"";if(Ee.hasChildNodes()){for(var _t=Ee.childNodes,Qt="",ln=0,kn=_t.length;ln<kn;ln++){var hr,pr=_t[ln];pr.nodeName==="DIV"||pr.nodeName==="P"?((hr=(hr=_t[ln-1])?hr.nodeName:void 0)&&hr!=="DIV"&&hr!=="P"&&hr!=="BR"&&(Qt!==""&&(Qt+=`
|
|
`),Xe.flush()),Qt+=N(pr,Xe),Xe.set(`
|
|
`)):pr.nodeName==="BR"?(Qt+=Xe.flush(),Xe.set(`
|
|
`)):Qt+=N(pr,Xe)}return Qt}return""}function q(Ee){return Ee.replace(/(\b|^)\s*(\b|$)/g,function(Xe){return/\n/.exec(Xe)?"":Xe})}function G(Ee,Xe){for(var ct=Ee?Ee.parentNode:void 0;ct;){if(ct===Xe)return!0;ct=ct.parentNode}return!1}function ne(){var Ee;return le===-1&&(Ee=-1,typeof navigator<"u"&&navigator.appName==="Microsoft Internet Explorer"&&/MSIE ([0-9]+[.0-9]+)/.exec(navigator.userAgent)!=null&&(Ee=parseFloat(RegExp.$1)),le=Ee),le}var le=-1;function oe(){return typeof navigator<"u"&&navigator.userAgent.indexOf("Firefox")!==-1}function ve(Ee,Xe,ct,_t){return Ee.addEventListener?(_t===void 0&&(_t=!1),Xe==="mousewheel"&&oe()&&(Xe="DOMMouseScroll"),Ee.addEventListener(Xe,ct,_t),ct):Ee.attachEvent?(Ee.attachEvent("on"+Xe,_t=function(){return ct.call(Ee,window.event)}),_t):void 0}function de(Ee,Xe,ct,_t){Ee.removeEventListener?(_t===void 0&&(_t=!1),Xe==="mousewheel"&&oe()&&(Xe="DOMMouseScroll"),Ee.removeEventListener(Xe,ct,_t)):Ee.detachEvent&&Ee.detachEvent("on"+Xe,ct)}function ae(Ee,Xe){for(var ct=Ee.parentNode;ct;){if(ct===Xe)return!0;ct=ct.parentNode}return!1}function be(Ee){var Xe=[],ct=0;function _t(ln){for(var kn="";Ee[ct]!==void 0&&Ee[ct]!==ln;)kn+=Ee[ct],ct++;if(Ee[ct]!==ln)throw new Error("Invalid JSON path: unexpected end, character "+ln+" expected");return kn}for(;Ee[ct]!==void 0;)if(Ee[ct]===".")ct++,Xe.push(function(){for(var ln="";Ee[ct]!==void 0&&/[\w$]/.test(Ee[ct]);)ln+=Ee[ct],ct++;if(ln==="")throw new Error("Invalid JSON path: property name expected at index "+ct);return ln}());else{if(Ee[ct]!=="[")throw new Error('Invalid JSON path: unexpected character "'+Ee[ct]+'" at index '+ct);if(Ee[++ct]==="'"||Ee[ct]==='"'){var Qt=Ee[ct];if(ct++,Xe.push(_t(Qt)),Ee[ct]!==Qt)throw new Error("Invalid JSON path: closing quote ' expected at index "+ct);ct++}else{if(Qt=_t("]").trim(),Qt.length===0)throw new Error("Invalid JSON path: array value expected at index "+ct);Qt=Qt==="*"?Qt:JSON.parse(Qt),Xe.push(Qt)}if(Ee[ct]!=="]")throw new Error("Invalid JSON path: closing bracket ] expected at index "+ct);ct++}return Xe}function ie(Ee){return Ee.map(function(Xe){return typeof Xe=="number"?"["+Xe+"]":typeof Xe=="string"&&Xe.match(/^[A-Za-z0-9_$]+$/)?"."+Xe:'["'+Xe+'"]'}).join("")}function ce(Ee){var Xe,ct;return Ee.keyword==="enum"&&Array.isArray(Ee.schema)&&(ct=Ee.schema)&&(5<(ct=ct.map(function(_t){return JSON.stringify(_t)})).length&&(Xe=["("+(ct.length-5)+" more...)"],(ct=ct.slice(0,5)).push(Xe)),Ee.message="should be equal to one of: "+ct.join(", ")),Ee.keyword==="additionalProperties"&&(Ee.message="should NOT have additional property: "+Ee.params.additionalProperty),Ee}function pe(Ee){return Ee&&typeof Ee.then=="function"&&typeof Ee.catch=="function"}function X(Ee){return v(Ee)==="object"&&Array.isArray(Ee.path)&&typeof Ee.message=="string"}function Z(Ee,Xe,ct){return ct=ct!==void 0?ct:0,Xe.left-ct>=Ee.left&&Xe.right+ct<=Ee.right&&Xe.top-ct>=Ee.top&&Xe.bottom+ct<=Ee.bottom}function Y(Ee,Xe,ct){var _t;return function(){var Qt=this,ln=arguments,kn=ct&&!_t;clearTimeout(_t),_t=setTimeout(function(){_t=null,ct||Ee.apply(Qt,ln)},Xe),kn&&Ee.apply(Qt,ln)}}function se(Ee,Xe){for(var ct=Xe.length,_t=0,Qt=Ee.length,ln=Xe.length;Xe.charAt(_t)===Ee.charAt(_t)&&_t<ct;)_t++;for(;Xe.charAt(ln-1)===Ee.charAt(Qt-1)&&_t<ln&&0<Qt;)ln--,Qt--;return{start:_t,end:ln}}function fe(Ee){var Xe,ct,_t,Qt,ln=0,kn=0;return typeof Ee.selectionStart=="number"&&typeof Ee.selectionEnd=="number"?(ln=Ee.selectionStart,kn=Ee.selectionEnd):(Qt=document.selection.createRange())&&Qt.parentElement()===Ee&&(_t=Ee.value.length,Xe=Ee.value.replace(/\r\n/g,`
|
|
`),(ct=Ee.createTextRange()).moveToBookmark(Qt.getBookmark()),(Qt=Ee.createTextRange()).collapse(!1),-1<ct.compareEndPoints("StartToEnd",Qt)?ln=kn=_t:(ln=-ct.moveStart("character",-_t),ln+=Xe.slice(0,ln).split(`
|
|
`).length-1,-1<ct.compareEndPoints("EndToEnd",Qt)?kn=_t:(kn=-ct.moveEnd("character",-_t),kn+=Xe.slice(0,kn).split(`
|
|
`).length-1))),{startIndex:ln,endIndex:kn,start:hr(ln),end:hr(kn)};function hr(pr){return pr=Ee.value.substring(0,pr),{row:(pr.match(/\n/g)||[]).length+1,column:pr.length-pr.lastIndexOf(`
|
|
`)}}}function me(_t,Xe,ct){var _t=_t.value||"";return 0<Xe&&0<ct?(_t=_t.split(`
|
|
`,Xe),Xe=Math.min(_t.length,Xe),ct=Math.min(_t[Xe-1].length,ct-1),ct=Xe===1?ct:ct+1,_t.slice(0,Xe-1).join(`
|
|
`).length+ct):-1}function Ae(Ee,Xe){var ct,_t=[];if(Xe&&Xe.length){try{ct=h.parse(Ee)}catch{return _t}Xe.forEach(function(Qt){var ln=Be(be(Qt)),ln=ct.pointers[ln];ln&&_t.push({path:Qt,line:ln.key?ln.key.line:ln.value?ln.value.line:0,column:ln.key?ln.key.column:ln.value?ln.value.column:0})})}return _t}function Be(Ee){return Ee.map(function(Xe){return"/"+String(Xe).replace(/~/g,"~0").replace(/\//g,"~1")}).join("")}function Ye(Ee){var Xe=document.createElement("div");return Xe.style.color=Ee,Xe.style.color.split(/\s+/).join("").toLowerCase()||null}function Qe(Ee){return!!Ye(Ee)}function nt(Ee,Xe){var ct;return Ee?(ct="",Ee.title&&(ct+=Ee.title),Ee.description&&(0<ct.length&&(ct+=`
|
|
`),ct+=Ee.description),Ee.default&&(0<ct.length&&(ct+=`
|
|
|
|
`),ct=(ct+=(0,f.Iu)("default",void 0,Xe)+`
|
|
`)+JSON.stringify(Ee.default,null,2)),Array.isArray(Ee.examples)&&0<Ee.examples.length&&(0<ct.length&&(ct+=`
|
|
|
|
`),ct+=(0,f.Iu)("examples",void 0,Xe)+`
|
|
`,Ee.examples.forEach(function(_t,Qt){ct+=JSON.stringify(_t,null,2),Qt!==Ee.examples.length-1&&(ct+=`
|
|
`)})),ct):""}function st(Ee,Xe){for(var ct=Ee,_t=0;_t<Xe.length&&ct!=null;_t++)ct=ct[Xe[_t]];return ct}function Le(Ee,Xe){for(var ct=Ee.replace(/ \(copy( \d+)?\)$/,""),_t=ct,Qt=1;Xe.indexOf(_t)!==-1;)_t=ct+" ("+("copy"+(1<Qt?" "+Qt:""))+")",Qt++;return _t}function Me(Ee,Xe){var ct={};if(Array.isArray(Ee))for(var _t=Math.min(Ee.length,m),Qt=0;Qt<_t;Qt++)(function ln(kn,hr,pr,Wr){(Array.isArray(kn)||Pe(kn))&&!Wr||(hr[pr||""]=!0),Pe(kn)&&Object.keys(kn).forEach(function(ze){ln(kn[ze],hr,pr+"."+ze,Wr)})})(Ee[Qt],ct,"",Xe);else ct[""]=!0;return Object.keys(ct).sort()}function je(Ee,ln,ct){var _t=ln&&ln!=="."?be(ln):[],Qt=ct==="desc"?-1:1,ln=Ee.slice();return ln.sort(function(kn,hr){return kn=st(kn,_t),hr=st(hr,_t),Qt*(hr<kn?1:kn<hr?-1:0)}),ln}function Ue(Ee,_t){var ct=_t==="desc"?-1:1,_t=Object.keys(Ee).sort(function(ln,kn){return ct*u()(ln,kn)}),Qt={};return _t.forEach(function(ln){Qt[ln]=Ee[ln]}),Qt}function Te(Ee){var Xe,ct;return Ee===""?"":(Xe=Ee.toLowerCase())==="null"?null:Xe==="true"||Xe!=="false"&&(/^0\d+$/.test(Ee)||(Xe=Number(Ee),ct=parseFloat(Ee),isNaN(Xe))||isNaN(ct)?Ee:Xe)}function bt(Ee,Xe){return typeof Xe=="number"&&w<Xe&&isFinite(Xe)&&Math.floor(Xe)===Xe&&!isNaN(new Date(Xe).valueOf())}function At(Ee){return Ee<900?Ee.toFixed()+" B":(Ee=Ee/1e3)<900?Ee.toFixed(1)+" KB":(Ee=Ee/1e3)<900?Ee.toFixed(1)+" MB":(Ee=Ee/1e3)<900?Ee.toFixed(1)+" GB":(Ee/1e3).toFixed(1)+" TB"}function ht(Ee,Xe){return Ee.length<=Xe?Ee:Ee.slice(0,Xe)+"..."}function Pe(Ee){return v(Ee)==="object"&&Ee!==null&&!Array.isArray(Ee)}function Ze(Ee,Xe){return Ee.indexOf(Xe)!==-1}function dt(Ee,Xe){if(Xe||Ee){if(Xe&&!Ee||!Xe&&Ee||Xe.length!==Ee.length)return!0;for(var ct,_t=0;_t<Ee.length;++_t)if(ct=function(Qt){var ln=Ee[Qt].type==="error"?Xe.find(function(kn){return kn.line===Ee[Qt].line}):Xe.find(function(kn){return kn.dataPath===Ee[Qt].dataPath&&kn.schemaPath===Ee[Qt].schemaPath});if(!ln)return{v:!0}}(_t))return ct.v}return!1}function Mt(Ee,Xe){return Ee=Ee!=null&&Ee.length?Ee:[],Xe=Xe!=null&&Xe.length?Xe:[],g(new Set(Ee.concat(Xe)))}function He(Ee){setTimeout(Ee)}function wt(Ee,Xe){return Object.prototype.hasOwnProperty.call(Ee,Xe)}},8037:function(o,a,s){var l;if(window.Picker)l=window.Picker;else try{l=s(4049)}catch{}o.exports=l},6225:function(o,a,s){function l(v,m){var w,k;return m=b(v,m),(v=h.modules[m])||(typeof(v=h.payloads[m])=="function"&&(w={id:m,uri:"",exports:k={},packaged:!0},k=v(function(T,S){return f(m,T,S)},k,w)||w.exports,h.modules[m]=k,delete h.payloads[m]),v=h.modules[m]=k||v),v}var u,c,d,h,f,g,b;o=s.nmd(o),(d=function(){return this}())||typeof window>"u"||(d=window),(h=function(v,m,w){typeof v!="string"?h.original?h.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace()):(arguments.length==2&&(w=m),h.modules[v]||(h.payloads[v]=w,h.modules[v]=null))}).modules={},h.payloads={},f=function(v,m,w){if(typeof m=="string"){var k=l(v,m);if(k!=null)return w&&w(),k}else if(Object.prototype.toString.call(m)==="[object Array]"){for(var T=[],S=0,I=m.length;S<I;++S){var O=l(v,m[S]);if(O==null&&g.original)return;T.push(O)}return w&&w.apply(null,T)||!0}},g=function(v,m){var w=f("",v,m);return w==null&&g.original?g.original.apply(this,arguments):w},b=function(v,m){var w;if(m.indexOf("!")!==-1)return w=m.split("!"),b(v,w[0])+"!"+b(v,w[1]);if(m.charAt(0)==".")for(m=v.split("/").slice(0,-1).join("/")+"/"+m;m.indexOf(".")!==-1&&k!=m;){var k=m;m=m.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return m},c=d,(u="ace")&&(d[u]||(d[u]={}),c=d[u]),c.define&&c.define.packaged||(h.original=c.define,c.define=h,c.define.packaged=!0),c.require&&c.require.packaged||(g.original=c.require,c.require=g,c.require.packaged=!0),ace.define("ace/lib/es6-shim",["require","exports","module"],function(v,m,w){function k(T,S,I){Object.defineProperty(T,S,{value:I,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||k(String.prototype,"startsWith",function(T,S){return this.lastIndexOf(T,S=S||0)===S}),String.prototype.endsWith||k(String.prototype,"endsWith",function(T,S){return(S===void 0||S>this.length)&&(S=this.length),S-=T.length,T=this.indexOf(T,S),T!==-1&&T===S}),String.prototype.repeat||k(String.prototype,"repeat",function(T){for(var S="",I=this;0<T;)1&T&&(S+=I),(T>>=1)&&(I+=I);return S}),String.prototype.includes||k(String.prototype,"includes",function(T,S){return this.indexOf(T,S)!=-1}),Object.assign||(Object.assign=function(T){if(T==null)throw new TypeError("Cannot convert undefined or null to object");for(var S=Object(T),I=1;I<arguments.length;I++){var O=arguments[I];O!=null&&Object.keys(O).forEach(function(y){S[y]=O[y]})}return S}),Object.values||(Object.values=function(T){return Object.keys(T).map(function(S){return T[S]})}),Array.prototype.find||k(Array.prototype,"find",function(T){for(var S=this.length,I=arguments[1],O=0;O<S;O++){var y=this[O];if(T.call(I,y,O,this))return y}}),Array.prototype.findIndex||k(Array.prototype,"findIndex",function(T){for(var S=this.length,I=arguments[1],O=0;O<S;O++){var y=this[O];if(T.call(I,y,O,this))return O}}),Array.prototype.includes||k(Array.prototype,"includes",function(T,S){return this.indexOf(T,S)!=-1}),Array.prototype.fill||k(Array.prototype,"fill",function(T){for(var S=this.length>>>0,O=arguments[1]>>0,I=O<0?Math.max(S+O,0):Math.min(O,S),O=arguments[2],O=O===void 0?S:O>>0,y=O<0?Math.max(S+O,0):Math.min(O,S);I<y;)this[I]=T,I++;return this}),Array.of||k(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(v,m,w){v("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(v,m,w){m.deepCopy=function k(T){if(typeof T!="object"||!T)return T;if(Array.isArray(T))for(var S=[],I=0;I<T.length;I++)S[I]=k(T[I]);else{if(Object.prototype.toString.call(T)!=="[object Object]")return T;for(var I in S={},T)S[I]=k(T[I])}return S}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(v,m,w){m.last=function(S){return S[S.length-1]},m.stringReverse=function(S){return S.split("").reverse().join("")},m.stringRepeat=function(S,I){for(var O="";0<I;)1&I&&(O+=S),(I>>=1)&&(S+=S);return O};var k=/^\s\s*/,T=/\s\s*$/;m.stringTrimLeft=function(S){return S.replace(k,"")},m.stringTrimRight=function(S){return S.replace(T,"")},m.copyObject=function(S){var I,O={};for(I in S)O[I]=S[I];return O},m.copyArray=function(S){for(var I=[],O=0,y=S.length;O<y;O++)S[O]&&typeof S[O]=="object"?I[O]=this.copyObject(S[O]):I[O]=S[O];return I},m.deepCopy=v("./deep_copy").deepCopy,m.arrayToMap=function(S){for(var I={},O=0;O<S.length;O++)I[S[O]]=1;return I},m.createMap=function(S){var I,O=Object.create(null);for(I in S)O[I]=S[I];return O},m.arrayRemove=function(S,I){for(var O=0;O<=S.length;O++)I===S[O]&&S.splice(O,1)},m.escapeRegExp=function(S){return S.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},m.escapeHTML=function(S){return(""+S).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},m.getMatchOffsets=function(S,I){var O=[];return S.replace(I,function(y){O.push({offset:arguments[arguments.length-2],length:y.length})}),O},m.deferredCall=function(S){function I(){y=null,S()}function O(_){return O.cancel(),y=setTimeout(I,_||0),O}var y=null;return(O.schedule=O).call=function(){return this.cancel(),S(),O},O.cancel=function(){return clearTimeout(y),y=null,O},O.isPending=function(){return y},O},m.delayedCall=function(S,I){function O(){_=null,S()}function y(A){_==null&&(_=setTimeout(O,A||I))}var _=null;return y.delay=function(A){_&&clearTimeout(_),_=setTimeout(O,A||I)},(y.schedule=y).call=function(){this.cancel(),S()},y.cancel=function(){_&&clearTimeout(_),_=null},y.isPending=function(){return _},y},m.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},m.supportsUnicodeFlag=function(){try{new RegExp("^.$","u")}catch{return!1}return!0}}),ace.define("ace/lib/useragent",["require","exports","module"],function(v,m,w){m.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},m.getOS=function(){return m.isMac?m.OS.MAC:m.isLinux?m.OS.LINUX:m.OS.WINDOWS};var S=typeof navigator=="object"?navigator:{},k=(/mac|win|linux/i.exec(S.platform)||["other"])[0].toLowerCase(),T=S.userAgent||"",S=S.appName||"";m.isWin=k=="win",m.isMac=k=="mac",m.isLinux=k=="linux",m.isIE=S=="Microsoft Internet Explorer"||0<=S.indexOf("MSAppHost")?parseFloat((T.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((T.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),m.isOldIE=m.isIE&&m.isIE<9,m.isGecko=m.isMozilla=T.match(/ Gecko\/\d+/),m.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",m.isWebKit=parseFloat(T.split("WebKit/")[1])||void 0,m.isChrome=parseFloat(T.split(" Chrome/")[1])||void 0,m.isEdge=parseFloat(T.split(" Edge/")[1])||void 0,m.isAIR=0<=T.indexOf("AdobeAIR"),m.isAndroid=0<=T.indexOf("Android"),m.isChromeOS=0<=T.indexOf(" CrOS "),m.isIOS=/iPad|iPhone|iPod/.test(T)&&!window.MSStream,m.isIOS&&(m.isMac=!0),m.isMobile=m.isIOS||m.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(S,m,w){var k,T,S=S("./useragent"),I=(m.buildDom=function _(A,R,D){if(typeof A=="string"&&A)return V=document.createTextNode(A),R&&R.appendChild(V),V;if(!Array.isArray(A))return A&&A.appendChild&&R&&R.appendChild(A),A;if(typeof A[0]!="string"||!A[0]){for(var C=[],x=0;x<A.length;x++){var P=_(A[x],R,D);P&&C.push(P)}return C}for(var $=document.createElement(A[0]),L=A[1],V=1,x=V=L&&typeof L=="object"&&!Array.isArray(L)?2:V;x<A.length;x++)_(A[x],$,D);return V==2&&Object.keys(L).forEach(function(H){var Q=L[H];H==="class"?$.className=Array.isArray(Q)?Q.join(" "):Q:typeof Q=="function"||H=="value"||H[0]=="$"?$[H]=Q:H==="ref"?D&&(D[Q]=$):H==="style"?typeof Q=="string"&&($.style.cssText=Q):Q!=null&&$.setAttribute(H,Q)}),R&&R.appendChild($),$},m.getDocumentHead=function(_){return(_=_||document).head||_.getElementsByTagName("head")[0]||_.documentElement},m.createElement=function(_,A){return document.createElementNS?document.createElementNS(A||"http://www.w3.org/1999/xhtml",_):document.createElement(_)},m.removeChildren=function(_){_.innerHTML=""},m.createTextNode=function(_,A){return(A?A.ownerDocument:document).createTextNode(_)},m.createFragment=function(_){return(_?_.ownerDocument:document).createDocumentFragment()},m.hasCssClass=function(_,A){return(_.className+"").split(/\s+/g).indexOf(A)!==-1},m.addCssClass=function(_,A){m.hasCssClass(_,A)||(_.className+=" "+A)},m.removeCssClass=function(_,A){for(var R=_.className.split(/\s+/g);;){var D=R.indexOf(A);if(D==-1)break;R.splice(D,1)}_.className=R.join(" ")},m.toggleCssClass=function(_,A){for(var R=_.className.split(/\s+/g),D=!0;;){var C=R.indexOf(A);if(C==-1)break;D=!1,R.splice(C,1)}return D&&R.push(A),_.className=R.join(" "),D},m.setCssClass=function(_,A,R){R?m.addCssClass(_,A):m.removeCssClass(_,A)},m.hasCssString=function(_,A){var R,D=0;if(R=(A=A||document).querySelectorAll("style")){for(;D<R.length;)if(R[D++].id===_)return!0}},m.removeElementById=function(_,A){(A=A||document).getElementById(_)&&A.getElementById(_).remove()},[]);function O(){var _=I;I=null,_&&_.forEach(function(A){y(A[0],A[1])})}function y(_,A,R){if(typeof document<"u"){if(I){if(R)O();else if(R===!1)return I.push([_,A])}if(!k){var D=R,R=(D=R&&R.getRootNode&&(D=R.getRootNode())&&D!=R?D:document).ownerDocument||D;if(A&&m.hasCssString(A,D))return null;A&&(_+=`
|
|
/*# sourceURL=ace/css/`+A+" */");var C=m.createElement("style");C.appendChild(R.createTextNode(_)),A&&(C.id=A),(D=D==R?m.getDocumentHead(R):D).insertBefore(C,D.firstChild)}}}m.useStrictCSP=function(_){(k=_)==0?O():I=I||[]},m.importCssString=y,m.importCssStylsheet=function(_,A){m.buildDom(["link",{rel:"stylesheet",href:_}],m.getDocumentHead(A))},m.scrollbarWidth=function(D){var A=m.createElement("ace_inner"),R=(A.style.width="100%",A.style.minWidth="0px",A.style.height="200px",A.style.display="block",m.createElement("ace_outer")),x=R.style,D=(x.position="absolute",x.left="-10000px",x.overflow="hidden",x.width="200px",x.minWidth="0px",x.height="150px",x.display="block",R.appendChild(A),D&&D.documentElement||document&&document.documentElement);if(!D)return 0;D.appendChild(R);var C=A.offsetWidth,x=(x.overflow="scroll",A.offsetWidth);return C===x&&(x=R.clientWidth),D.removeChild(R),C-x},m.computedStyle=function(_,A){return window.getComputedStyle(_,"")||{}},m.setStyle=function(_,A,R){_[A]!==R&&(_[A]=R)},m.HAS_CSS_ANIMATION=!1,m.HAS_CSS_TRANSFORMS=!1,m.HI_DPI=!S.isWin||typeof window<"u"&&1.5<=window.devicePixelRatio,S.isChromeOS&&(m.HI_DPI=!1),typeof document<"u"&&(T=document.createElement("div"),m.HI_DPI&&T.style.transform!==void 0&&(m.HAS_CSS_TRANSFORMS=!0),S.isEdge||T.style.animationName===void 0||(m.HAS_CSS_ANIMATION=!0),T=null),m.HAS_CSS_TRANSFORMS?m.translate=function(_,A,R){_.style.transform="translate("+Math.round(A)+"px, "+Math.round(R)+"px)"}:m.translate=function(_,A,R){_.style.top=Math.round(R)+"px",_.style.left=Math.round(A)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(v,m,w){var k=v("./dom");m.get=function(T,S){var I=new XMLHttpRequest;I.open("GET",T,!0),I.onreadystatechange=function(){I.readyState===4&&S(I.responseText)},I.send(null)},m.loadScript=function(T,S){var I=k.getDocumentHead(),O=document.createElement("script");O.src=T,I.appendChild(O),O.onload=O.onreadystatechange=function(y,_){!_&&O.readyState&&O.readyState!="loaded"&&O.readyState!="complete"||(O=O.onload=O.onreadystatechange=null,_)||S()}},m.qualifyURL=function(T){var S=document.createElement("a");return S.href=T,S.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(v,m,w){m.inherits=function(k,T){k.super_=T,k.prototype=Object.create(T.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}})},m.mixin=function(k,T){for(var S in T)k[S]=T[S];return k},m.implement=function(k,T){m.mixin(k,T)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(v,m,w){function k(){this.propagationStopped=!0}function T(){this.defaultPrevented=!0}var S={};S._emit=S._dispatchEvent=function(I,O){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var y=this._eventRegistry[I]||[],_=this._defaultHandlers[I];if(y.length||_){(O=typeof O=="object"&&O?O:{}).type||(O.type=I),O.stopPropagation||(O.stopPropagation=k),O.preventDefault||(O.preventDefault=T);for(var y=y.slice(),A=0;A<y.length&&(y[A](O,this),!O.propagationStopped);A++);return _&&!O.defaultPrevented?_(O,this):void 0}},S._signal=function(I,O){if(y=(this._eventRegistry||{})[I])for(var y=y.slice(),_=0;_<y.length;_++)y[_](O,this)},S.once=function(I,O){var y=this;if(this.on(I,function _(){y.off(I,_),O.apply(null,arguments)}),!O)return new Promise(function(_){O=_})},S.setDefaultHandler=function(I,O){var y,_,A=this._defaultHandlers;(A=A||(this._defaultHandlers={_disabled_:{}}))[I]&&(_=A[I],(y=A._disabled_[I])||(A._disabled_[I]=y=[]),y.push(_),(_=y.indexOf(O))!=-1)&&y.splice(_,1),A[I]=O},S.removeDefaultHandler=function(I,O){var y,_=this._defaultHandlers;_&&(y=_._disabled_[I],_[I]==O?y&&this.setDefaultHandler(I,y.pop()):y&&(_=y.indexOf(O))!=-1&&y.splice(_,1))},S.on=S.addEventListener=function(I,O,y){this._eventRegistry=this._eventRegistry||{};var _=this._eventRegistry[I];return(_=_||(this._eventRegistry[I]=[])).indexOf(O)==-1&&_[y?"unshift":"push"](O),O},S.off=S.removeListener=S.removeEventListener=function(I,O){this._eventRegistry=this._eventRegistry||{},I=this._eventRegistry[I],I&&(O=I.indexOf(O))!==-1&&I.splice(O,1)},S.removeAllListeners=function(I){I||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[I]=void 0),this._defaultHandlers&&(this._defaultHandlers[I]=void 0)},m.EventEmitter=S}),ace.define("ace/lib/report_error",["require","exports","module"],function(v,m,w){m.reportError=function(k,T){var S=new Error(k);S.data=T,typeof console=="object"&&console.error&&console.error(S),setTimeout(function(){throw S})}}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error"],function(I,m,w){var k,T=I("./oop"),S=I("./event_emitter").EventEmitter,I=I("./report_error").reportError,O={setOptions:function(R){Object.keys(R).forEach(function(D){this.setOption(D,R[D])},this)},getOptions:function(R){var D,C={};return R?Array.isArray(R)||(C=R,R=Object.keys(C)):(D=this.$options,R=Object.keys(D).filter(function(x){return!D[x].hidden})),R.forEach(function(x){C[x]=this.getOption(x)},this),C},setOption:function(R,D){var C;if(this["$"+R]!==D)return(C=this.$options[R])?C.forwardTo?this[C.forwardTo]&&this[C.forwardTo].setOption(R,D):(C.handlesSet||(this["$"+R]=D),void(C&&C.set&&C.set.call(this,D))):y('misspelled option "'+R+'"')},getOption:function(R){var D=this.$options[R];return D?D.forwardTo?this[D.forwardTo]&&this[D.forwardTo].getOption(R):D&&D.get?D.get.call(this):this["$"+R]:y('misspelled option "'+R+'"')}};function y(R){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}A.prototype.defineOptions=function(R,D,C){return R.$options||(this.$defaultOptions[D]=R.$options={}),Object.keys(C).forEach(function(x){var P=C[x];(P=typeof P=="string"?{forwardTo:P}:P).name||(P.name=x),"initialValue"in(R.$options[P.name]=P)&&(R["$"+P.name]=P.initialValue)}),T.implement(R,O),this},A.prototype.resetOptions=function(R){Object.keys(R.$options).forEach(function(D){var C=R.$options[D];"value"in C&&R.setOption(D,C.value)})},A.prototype.setDefaultValue=function(R,D,C){if(!R){for(R in this.$defaultOptions)if(this.$defaultOptions[R][D])break;if(!this.$defaultOptions[R][D])return!1}var x=this.$defaultOptions[R]||(this.$defaultOptions[R]={});x[D]&&(x.forwardTo?this.setDefaultValue(x.forwardTo,D,C):x[D].value=C)},A.prototype.setDefaultValues=function(R,D){Object.keys(D).forEach(function(C){this.setDefaultValue(R,C,D[C])},this)},A.prototype.setMessages=function(R){k=R},A.prototype.nls=function(R,D){return k&&!k[R]&&y("No message found for '"+R+"' in the provided messages, falling back to default English message."),R=k&&k[R]||R,R=D?R.replace(/\$(\$|[\d]+)/g,function(C,x){return x=="$"?"$":D[x]}):R};var _=A;function A(){this.$defaultOptions={}}_.prototype.warn=y,_.prototype.reportError=I,T.implement(_.prototype,S),m.AppConfig=_}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(v,m,w){w.exports=`.ace-tm .ace_gutter {
|
|
background: #f0f0f0;
|
|
color: #333;
|
|
}
|
|
|
|
.ace-tm .ace_print-margin {
|
|
width: 1px;
|
|
background: #e8e8e8;
|
|
}
|
|
|
|
.ace-tm .ace_fold {
|
|
background-color: #6B72E6;
|
|
}
|
|
|
|
.ace-tm {
|
|
background-color: #FFFFFF;
|
|
color: black;
|
|
}
|
|
|
|
.ace-tm .ace_cursor {
|
|
color: black;
|
|
}
|
|
|
|
.ace-tm .ace_invisible {
|
|
color: rgb(191, 191, 191);
|
|
}
|
|
|
|
.ace-tm .ace_storage,
|
|
.ace-tm .ace_keyword {
|
|
color: blue;
|
|
}
|
|
|
|
.ace-tm .ace_constant {
|
|
color: rgb(197, 6, 11);
|
|
}
|
|
|
|
.ace-tm .ace_constant.ace_buildin {
|
|
color: rgb(88, 72, 246);
|
|
}
|
|
|
|
.ace-tm .ace_constant.ace_language {
|
|
color: rgb(88, 92, 246);
|
|
}
|
|
|
|
.ace-tm .ace_constant.ace_library {
|
|
color: rgb(6, 150, 14);
|
|
}
|
|
|
|
.ace-tm .ace_invalid {
|
|
background-color: rgba(255, 0, 0, 0.1);
|
|
color: red;
|
|
}
|
|
|
|
.ace-tm .ace_support.ace_function {
|
|
color: rgb(60, 76, 114);
|
|
}
|
|
|
|
.ace-tm .ace_support.ace_constant {
|
|
color: rgb(6, 150, 14);
|
|
}
|
|
|
|
.ace-tm .ace_support.ace_type,
|
|
.ace-tm .ace_support.ace_class {
|
|
color: rgb(109, 121, 222);
|
|
}
|
|
|
|
.ace-tm .ace_keyword.ace_operator {
|
|
color: rgb(104, 118, 135);
|
|
}
|
|
|
|
.ace-tm .ace_string {
|
|
color: rgb(3, 106, 7);
|
|
}
|
|
|
|
.ace-tm .ace_comment {
|
|
color: rgb(76, 136, 107);
|
|
}
|
|
|
|
.ace-tm .ace_comment.ace_doc {
|
|
color: rgb(0, 102, 255);
|
|
}
|
|
|
|
.ace-tm .ace_comment.ace_doc.ace_tag {
|
|
color: rgb(128, 159, 191);
|
|
}
|
|
|
|
.ace-tm .ace_constant.ace_numeric {
|
|
color: rgb(0, 0, 205);
|
|
}
|
|
|
|
.ace-tm .ace_variable {
|
|
color: rgb(49, 132, 149);
|
|
}
|
|
|
|
.ace-tm .ace_xml-pe {
|
|
color: rgb(104, 104, 91);
|
|
}
|
|
|
|
.ace-tm .ace_entity.ace_name.ace_function {
|
|
color: #0000A2;
|
|
}
|
|
|
|
|
|
.ace-tm .ace_heading {
|
|
color: rgb(12, 7, 255);
|
|
}
|
|
|
|
.ace-tm .ace_list {
|
|
color:rgb(185, 6, 144);
|
|
}
|
|
|
|
.ace-tm .ace_meta.ace_tag {
|
|
color:rgb(0, 22, 142);
|
|
}
|
|
|
|
.ace-tm .ace_string.ace_regex {
|
|
color: rgb(255, 0, 0)
|
|
}
|
|
|
|
.ace-tm .ace_marker-layer .ace_selection {
|
|
background: rgb(181, 213, 255);
|
|
}
|
|
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
|
box-shadow: 0 0 3px 0px white;
|
|
}
|
|
.ace-tm .ace_marker-layer .ace_step {
|
|
background: rgb(252, 255, 0);
|
|
}
|
|
|
|
.ace-tm .ace_marker-layer .ace_stack {
|
|
background: rgb(164, 229, 101);
|
|
}
|
|
|
|
.ace-tm .ace_marker-layer .ace_bracket {
|
|
margin: -1px 0 0 -1px;
|
|
border: 1px solid rgb(192, 192, 192);
|
|
}
|
|
|
|
.ace-tm .ace_marker-layer .ace_active-line {
|
|
background: rgba(0, 0, 0, 0.07);
|
|
}
|
|
|
|
.ace-tm .ace_gutter-active-line {
|
|
background-color : #dcdcdc;
|
|
}
|
|
|
|
.ace-tm .ace_marker-layer .ace_selected-word {
|
|
background: rgb(250, 250, 255);
|
|
border: 1px solid rgb(200, 200, 250);
|
|
}
|
|
|
|
.ace-tm .ace_indent-guide {
|
|
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|
}
|
|
|
|
.ace-tm .ace_indent-guide-active {
|
|
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|
}
|
|
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(v,m,w){m.isDark=!1,m.cssClass="ace-tm",m.cssText=v("./textmate-css"),m.$id="ace/theme/textmate",v("../lib/dom").importCssString(m.cssText,m.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(v,m,w){var k,T=v("./lib/lang"),S=v("./lib/net"),I=v("./lib/dom"),O=v("./lib/app_config").AppConfig,y=(w.exports=m=new O,{packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null}),_=(m.get=function(A){if(y.hasOwnProperty(A))return y[A];throw new Error("Unknown config key: "+A)},m.set=function(A,R){if(y.hasOwnProperty(A))y[A]=R;else if(this.setDefaultValue("",A,R)==0)throw new Error("Unknown config key: "+A);A=="useStrictCSP"&&I.useStrictCSP(R)},m.all=function(){return T.copyObject(y)},m.$modes={},m.moduleUrl=function(A,R){var D,C,x;return y.$moduleUrls[A]||(A=A.split("/"),D=(R=R||A[A.length-2]||"")=="snippets"?"/":"-",C=A[A.length-1],R=="worker"&&D=="-"&&(x=new RegExp("^"+R+"[\\-_]|[\\-_]"+R+"$","g"),C=C.replace(x,"")),(!C||C==R)&&1<A.length&&(C=A[A.length-2]),(x=y[R+"Path"])==null?x=y.basePath:D=="/"&&(R=D=""),x&&x.slice(-1)!="/"&&(x+="/"),x+R+D+C+this.get("suffix"))},m.setModuleUrl=function(A,R){return y.$moduleUrls[A]=R},m.setLoader=function(A){k=A},m.dynamicModules=Object.create(null),m.$loading={},m.$loaded={},m.loadModule=function(A,R){function D(P){if(P&&!m.$loading[A])return R&&R(P);if(m.$loading[A]||(m.$loading[A]=[]),m.$loading[A].push(R),!(1<m.$loading[A].length)){let $=function(){var L,V;V=function(H,Q){Q&&(m.$loaded[A]=Q),m._emit("load.module",{name:A,module:Q});var U=m.$loading[A];m.$loading[A]=null,U.forEach(function(K){K&&K(Q)})},(L=A)==="ace/theme/textmate"||L==="./theme/textmate"?V(null,v("./theme/textmate")):k?k(L,V):console.error("loader is not configured")};if(!m.get("packaged"))return $();S.loadScript(m.moduleUrl(A,x),$),_()}}var C,x;if(Array.isArray(A)&&(x=A[0],A=A[1]),m.dynamicModules[A])m.dynamicModules[A]().then(function(P){P.default?D(P.default):D(P)});else{try{C=this.$require(A)}catch{}D(C||m.$loaded[A])}},m.$require=function(A){if(typeof w.require=="function")return w.require(A)},m.setModuleLoader=function(A,R){m.dynamicModules[A]=R},function(){y.basePath||y.workerPath||y.modePath||y.themePath||Object.keys(y.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),_=function(){})});m.version="1.31.1"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(v,m,w){v("./lib/fixoldbrowsers");var k=v("./config"),T=(k.setLoader(function(I,O){v([I],function(y){O(null,y)})}),function(){return this||typeof window<"u"&&window}());function S(I){if(T&&T.document){k.set("packaged",I||v.packaged||w.packaged||T.define&&s.amdD.packaged);for(var O,y={},_="",I=document.currentScript||document._currentScript,A=I&&I.ownerDocument||document,R=(I&&I.src&&(_=I.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||""),A.getElementsByTagName("script")),D=0;D<R.length;D++){var C=R[D],x=C.src||C.getAttribute("src");if(x){for(var P=C.attributes,$=0,L=P.length;$<L;$++){var V=P[$];V.name.indexOf("data-ace-")===0&&(y[V.name.replace(/^data-ace-/,"").replace(/-(.)/g,function(Q,U){return U.toUpperCase()})]=V.value)}C=x.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/),C&&(_=C[1])}}for(O in _&&(y.base=y.base||_,y.packaged=!0),y.basePath=y.base,y.workerPath=y.workerPath||y.base,y.modePath=y.modePath||y.base,y.themePath=y.themePath||y.base,delete y.base,y)y[O]!==void 0&&k.set(O,y[O])}}w.exports=function(I){k.init=S,k.$require=v,I.require=v,I.define=s.amdD},S(!0)}),ace.define("ace/range",["require","exports","module"],function(v,m,w){T.prototype.isEqual=function(S){return this.start.row===S.start.row&&this.end.row===S.end.row&&this.start.column===S.start.column&&this.end.column===S.end.column},T.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},T.prototype.contains=function(S,I){return this.compare(S,I)==0},T.prototype.compareRange=function(I){var O=I.end,I=I.start,O=this.compare(O.row,O.column);return O==1?(O=this.compare(I.row,I.column))==1?2:O==0?1:0:O==-1?-2:(O=this.compare(I.row,I.column))==-1?-1:O==1?42:0},T.prototype.comparePoint=function(S){return this.compare(S.row,S.column)},T.prototype.containsRange=function(S){return this.comparePoint(S.start)==0&&this.comparePoint(S.end)==0},T.prototype.intersects=function(S){return S=this.compareRange(S),S==-1||S==0||S==1},T.prototype.isEnd=function(S,I){return this.end.row==S&&this.end.column==I},T.prototype.isStart=function(S,I){return this.start.row==S&&this.start.column==I},T.prototype.setStart=function(S,I){typeof S=="object"?(this.start.column=S.column,this.start.row=S.row):(this.start.row=S,this.start.column=I)},T.prototype.setEnd=function(S,I){typeof S=="object"?(this.end.column=S.column,this.end.row=S.row):(this.end.row=S,this.end.column=I)},T.prototype.inside=function(S,I){return this.compare(S,I)==0&&!this.isEnd(S,I)&&!this.isStart(S,I)},T.prototype.insideStart=function(S,I){return this.compare(S,I)==0&&!this.isEnd(S,I)},T.prototype.insideEnd=function(S,I){return this.compare(S,I)==0&&!this.isStart(S,I)},T.prototype.compare=function(S,I){return this.isMultiLine()||S!==this.start.row?S<this.start.row?-1:S>this.end.row?1:this.start.row===S?I>=this.start.column?0:-1:this.end.row!==S||I<=this.end.column?0:1:I<this.start.column?-1:I>this.end.column?1:0},T.prototype.compareStart=function(S,I){return this.start.row==S&&this.start.column==I?-1:this.compare(S,I)},T.prototype.compareEnd=function(S,I){return this.end.row==S&&this.end.column==I?1:this.compare(S,I)},T.prototype.compareInside=function(S,I){return this.end.row==S&&this.end.column==I?1:this.start.row==S&&this.start.column==I?-1:this.compare(S,I)},T.prototype.clipRows=function(S,I){var O,y;return this.end.row>I?O={row:I+1,column:0}:this.end.row<S&&(O={row:S,column:0}),this.start.row>I?y={row:I+1,column:0}:this.start.row<S&&(y={row:S,column:0}),T.fromPoints(y||this.start,O||this.end)},T.prototype.extend=function(S,I){var O,y,_=this.compare(S,I);return _==0?this:(_==-1?O={row:S,column:I}:y={row:S,column:I},T.fromPoints(O||this.start,y||this.end))},T.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},T.prototype.isMultiLine=function(){return this.start.row!==this.end.row},T.prototype.clone=function(){return T.fromPoints(this.start,this.end)},T.prototype.collapseRows=function(){return this.end.column==0?new T(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new T(this.start.row,0,this.end.row,0)},T.prototype.toScreenRange=function(O){var I=O.documentToScreenPosition(this.start),O=O.documentToScreenPosition(this.end);return new T(I.row,I.column,O.row,O.column)},T.prototype.moveBy=function(S,I){this.start.row+=S,this.start.column+=I,this.end.row+=S,this.end.column+=I};var k=T;function T(S,I,O,y){this.start={row:S,column:I},this.end={row:O,column:y}}k.fromPoints=function(S,I){return new k(S.row,S.column,I.row,I.column)},k.comparePoints=function(S,I){return S.row-I.row||S.column-I.column},k.comparePoints=function(S,I){return S.row-I.row||S.column-I.column},m.Range=k}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(v,m,w){var k=v("./oop"),T=function(){var S,I,O={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(I in O.PRINTABLE_KEYS[173]="-",O.FUNCTION_KEYS)S=O.FUNCTION_KEYS[I].toLowerCase(),O[S]=parseInt(I,10);for(I in O.PRINTABLE_KEYS)S=O.PRINTABLE_KEYS[I].toLowerCase(),O[S]=parseInt(I,10);k.mixin(O,O.MODIFIER_KEYS),k.mixin(O,O.PRINTABLE_KEYS),k.mixin(O,O.FUNCTION_KEYS),O.enter=O.return,O.escape=O.esc,O.del=O.delete;for(var y=["cmd","ctrl","alt","shift"],_=Math.pow(2,y.length);_--;)O.KEY_MODS[_]=y.filter(function(A){return _&O.KEY_MODS[A]}).join("-")+"-";return O.KEY_MODS[0]="",O.KEY_MODS[-1]="input-",O}();k.mixin(m,T),(m.default=m).keyCodeToString=function(S){var I=T[S];return(I=typeof I!="string"?String.fromCharCode(S):I).toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(v,m,w){var k,T=v("./keys"),S=v("./useragent"),I=null,O=0;function y(){if(k==null){k=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){k={passive:!1}}})}catch{}}return k}function _($,L,V){this.elem=$,this.type=L,this.callback=V}_.prototype.destroy=function(){C(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};function A($){return 0|($.ctrlKey?1:0)|($.altKey?2:0)|($.shiftKey?4:0)|($.metaKey?8:0)}var R,D=m.addListener=function($,L,V,H){$.addEventListener(L,V,y()),H&&H.$toDestroy.push(new _($,L,V))},C=m.removeListener=function($,L,V){$.removeEventListener(L,V,y())};m.stopEvent=function($){return m.stopPropagation($),m.preventDefault($),!1},m.stopPropagation=function($){$.stopPropagation&&$.stopPropagation()},m.preventDefault=function($){$.preventDefault&&$.preventDefault()},m.getButton=function($){return $.type=="dblclick"?0:$.type=="contextmenu"||S.isMac&&$.ctrlKey&&!$.altKey&&!$.shiftKey?2:$.button},m.capture=function($,L,V){var H=$&&$.ownerDocument||document;function Q(U){L&&L(U),V&&V(U),C(H,"mousemove",L),C(H,"mouseup",Q),C(H,"dragstart",Q)}return D(H,"mousemove",L),D(H,"mouseup",Q),D(H,"dragstart",Q),Q},m.addMouseWheelListener=function($,L,V){D($,"wheel",function(H){var Q=H.deltaX||0,U=H.deltaY||0;switch(H.deltaMode){case H.DOM_DELTA_PIXEL:H.wheelX=.15*Q,H.wheelY=.15*U;break;case H.DOM_DELTA_LINE:H.wheelX=15*Q,H.wheelY=15*U;break;case H.DOM_DELTA_PAGE:H.wheelX=150*Q,H.wheelY=150*U}L(H)},V)},m.addMultiMouseDownListener=function($,L,V,H,Q){var U,K,J,ue=0,ee={2:"dblclick",3:"tripleclick",4:"quadclick"};function N(q){var G;if(m.getButton(q)!==0?ue=0:1<q.detail&&!(4<++ue)||(ue=1),S.isIE&&(G=5<Math.abs(q.clientX-U)||5<Math.abs(q.clientY-K),J&&!G||(ue=1),J&&clearTimeout(J),J=setTimeout(function(){J=null},L[ue-1]||600),ue==1)&&(U=q.clientX,K=q.clientY),q._clicks=ue,V[H]("mousedown",q),4<ue)ue=0;else if(1<ue)return V[H](ee[ue],q)}($=Array.isArray($)?$:[$]).forEach(function(q){D(q,"mousedown",N,Q)})};function x($,L,V){var H=A(L);if(!S.isMac&&I){if(L.getModifierState&&(L.getModifierState("OS")||L.getModifierState("Win"))&&(H|=8),I.altGr){if((3&H)==3)return;I.altGr=0}V!==18&&V!==17||(Q="location"in L?L.location:L.keyLocation,V===17&&Q===1?I[V]==1&&(O=L.timeStamp):V===18&&H===3&&Q===2&&L.timeStamp-O<50&&(I.altGr=!0))}if(V in T.MODIFIER_KEYS&&(V=-1),!H&&V===13){var Q="location"in L?L.location:L.keyLocation;if(Q===3&&($(L,H,-V),L.defaultPrevented))return}if(S.isChromeOS&&8&H){if($(L,H,V),L.defaultPrevented)return;H&=-9}return!!(H||V in T.FUNCTION_KEYS||V in T.PRINTABLE_KEYS)&&$(L,H,V)}function P(){I=Object.create(null)}m.getModifierString=function($){return T.KEY_MODS[A($)]},m.addCommandKeyListener=function($,L,V){var H,Q;S.isOldGecko||S.isOpera&&!("KeyboardEvent"in window)?(H=null,D($,"keydown",function(U){H=U.keyCode},V),D($,"keypress",function(U){return x(L,U,H)},V)):(Q=null,D($,"keydown",function(U){I[U.keyCode]=(I[U.keyCode]||0)+1;var K=x(L,U,U.keyCode);return Q=U.defaultPrevented,K},V),D($,"keypress",function(U){Q&&(U.ctrlKey||U.altKey||U.shiftKey||U.metaKey)&&(m.stopEvent(U),Q=null)},V),D($,"keyup",function(U){I[U.keyCode]=null},V),I||(P(),D(window,"focus",P)))},typeof window=="object"&&window.postMessage&&!S.isOldIE&&(R=1,m.nextTick=function($,L){L=L||window;function V(Q){Q.data==H&&(m.stopPropagation(Q),C(L,"message",V),$())}var H="zero-timeout-message-"+R++;D(L,"message",V),L.postMessage(H,"*")}),m.$idleBlocked=!1,m.onIdle=function($,L){return setTimeout(function V(){m.$idleBlocked?setTimeout(V,100):$()},L)},m.$idleBlockId=null,m.blockIdle=function($){m.$idleBlockId&&clearTimeout(m.$idleBlockId),m.$idleBlocked=!0,m.$idleBlockId=setTimeout(function(){m.$idleBlocked=!1},$||100)},m.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),m.nextFrame?m.nextFrame=m.nextFrame.bind(window):m.nextFrame=function($){setTimeout($,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(v,m,w){var k;w.exports={lineMode:!1,pasteCancelled:function(){return!!(k&&k>Date.now()-50)||(k=!1)},cancel:function(){k=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(v,m,w){var k=v("../lib/event"),T=v("../config").nls,S=v("../lib/useragent"),I=v("../lib/dom"),O=v("../lib/lang"),y=v("../clipboard"),_=S.isChrome<18,A=S.isIE,R=63<S.isChrome,D=v("../lib/keys"),C=D.KEY_MODS,x=S.isIOS,P=x?/\s/:/\n/,$=S.isMobile;m.TextInput=function(L,V){var H=I.createElement("textarea"),Q=(H.className="ace_text-input",H.setAttribute("wrap","off"),H.setAttribute("autocorrect","off"),H.setAttribute("autocapitalize","off"),H.setAttribute("spellcheck",!1),H.style.opacity="0",L.insertBefore(H,L.firstChild),!1),U=!1,K=!1,J=!1,ue="",ee=($||(H.style.fontSize="1px"),!1),N=!1,q="",G=0,ne=0,le=0,oe=Number.MAX_SAFE_INTEGER,ve=Number.MIN_SAFE_INTEGER,de=0;try{var ae=document.activeElement===H}catch{}this.setNumberOfExtraLines=function(ht){oe=Number.MAX_SAFE_INTEGER,ve=Number.MIN_SAFE_INTEGER,de=ht<0?0:ht},this.setAriaOptions=function(ht){ht.activeDescendant?(H.setAttribute("aria-haspopup","true"),H.setAttribute("aria-autocomplete",ht.inline?"both":"list"),H.setAttribute("aria-activedescendant",ht.activeDescendant)):(H.setAttribute("aria-haspopup","false"),H.setAttribute("aria-autocomplete","both"),H.removeAttribute("aria-activedescendant")),ht.role&&H.setAttribute("role",ht.role),ht.setLabel&&(H.setAttribute("aria-roledescription",T("editor")),V.session)&&(ht=V.session.selection.cursor.row,H.setAttribute("aria-label",T("Cursor at row $0",[ht+1])))},this.setAriaOptions({role:"textbox"}),k.addListener(H,"blur",function(ht){N||(V.onBlur(ht),ae=!1)},V),k.addListener(H,"focus",function(ht){if(!N){if(ae=!0,S.isEdge)try{if(!document.hasFocus())return}catch{}V.onFocus(ht),S.isEdge?setTimeout(X):X()}},V),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:V.renderer.enableKeyboardAccessibility}),ue||R||this.$focusScroll=="browser")return H.focus({preventScroll:!0});var ht=H.style.top;H.style.position="fixed",H.style.top="0px";try{var Pe=H.getBoundingClientRect().top!=0}catch{return}var Ze=[];if(Pe)for(var dt=H.parentElement;dt&&dt.nodeType==1;)Ze.push(dt),dt.setAttribute("ace_nocontext",!0),dt=!dt.parentElement&&dt.getRootNode?dt.getRootNode().host:dt.parentElement;H.focus({preventScroll:!0}),Pe&&Ze.forEach(function(Mt){Mt.removeAttribute("ace_nocontext")}),setTimeout(function(){H.style.position="",H.style.top=="0px"&&(H.style.top=ht)},0)},this.blur=function(){H.blur()},this.isFocused=function(){return ae},V.on("beforeEndOperation",function(){var ht=V.curOp,Pe=ht&&ht.command&&ht.command.name;Pe!="insertstring"&&(Pe=Pe&&(ht.docChanged||ht.selectionChanged),K&&Pe&&(q=H.value="",Qe()),X())});function be(ht,Pe){for(var Ze=Pe,dt=1;dt<=ht-oe&&dt<2*de+1;dt++)Ze+=V.session.getLine(ht-dt).length+1;return Ze}function ie(ht){Be(ht,!0)}function ce(ht){Be(ht,!1)}function pe(ht){var Pe=Ae(ht);y.pasteCancelled()||(typeof Pe=="string"?(Pe&&V.onPaste(Pe,ht),S.isIE&&setTimeout(X),k.preventDefault(ht)):(H.value="",U=!0))}var X=x?function(ht){var Pe;!ae||Q&&!ht||J||((Pe=`
|
|
ab`+(ht=ht||"")+`cde fg
|
|
`)!=H.value&&(H.value=q=Pe),Pe=4+(ht.length||(V.selection.isEmpty()?0:1)),G==4&&ne==Pe||H.setSelectionRange(4,Pe),G=4,ne=Pe)}:function(){if(!K&&!J&&(ae||se)){K=!0;var ht=0,Pe=0,Ze="";if(V.session){for(var dt,He=V.selection,Mt=He.getRange(),He=He.cursor.row,wt=(He===ve+1?ve=(oe=ve+1)+2*de:He===oe-1?oe=(ve=oe-1)-2*de:(He<oe-1||ve+1<He)&&(oe=de<He?He-de:0,ve=de<He?He+de:2*de),[]),Ee=oe;Ee<=ve;Ee++)wt.push(V.session.getLine(Ee));Ze=wt.join(`
|
|
`),ht=be(Mt.start.row,Mt.start.column),Pe=be(Mt.end.row,Mt.end.column),Mt.start.row<oe?(dt=V.session.getLine(oe-1),ht=Mt.start.row<oe-1?0:ht,Pe+=dt.length+1,Ze=dt+`
|
|
`+Ze):Mt.end.row>ve?(dt=V.session.getLine(ve+1),Pe=Mt.end.row>ve+1?dt.length:Mt.end.column,Pe+=Ze.length+1,Ze=Ze+`
|
|
`+dt):$&&0<He&&(Ze=`
|
|
`+Ze,Pe+=1,ht+=1),400<Ze.length&&(ht<400&&Pe<400?Ze=Ze.slice(0,400):(Ze=`
|
|
`,ht==Pe?ht=Pe=0:(ht=0,Pe=1))),Mt=Ze+`
|
|
|
|
`,Mt!=q&&(H.value=q=Mt,G=ne=Mt.length)}if(se&&(G=H.selectionStart,ne=H.selectionEnd),ne!=Pe||G!=ht||H.selectionEnd!=ne)try{H.setSelectionRange(ht,Pe),G=ht,ne=Pe}catch{}K=!1}},Z=(this.resetSelection=X,ae&&V.onFocus(),function(ht){return ht.selectionStart===0&&ht.selectionEnd>=q.length&&ht.value===q&&q&&ht.selectionEnd!==ne}),Y=null,se=(this.setInputHandler=function(ht){Y=ht},!(this.getInputHandler=function(){return Y})),fe=function(ht,Pe){if(se=se&&!1,U)return X(),ht&&V.onPaste(ht),U=!1,"";for(var Ze=H.selectionStart,dt=H.selectionEnd,Mt=G,He=q.length-ne,wt=ht,Ee=ht.length-Ze,Xe=ht.length-dt,ct=0;0<Mt&&q[ct]==ht[ct];)ct++,Mt--;for(wt=wt.slice(ct),ct=1;0<He&&q.length-ct>G-1&&q[q.length-ct]==ht[ht.length-ct];)ct++,He--;Ee-=ct-1,Xe-=ct-1;var _t=wt.length-ct+1;return _t<0&&(Mt=-_t,_t=0),wt=wt.slice(0,_t),Pe||wt||Ee||Mt||He||Xe?(_t=!(J=!0),S.isAndroid&&wt==". "&&(wt=" ",_t=!0),wt&&!Mt&&!He&&!Ee&&!Xe||ee?V.onTextInput(wt):V.onTextInput(wt,{extendLeft:Mt,extendRight:He,restoreStart:Ee,restoreEnd:Xe}),J=!1,q=ht,G=Ze,ne=dt,le=Xe,_t?`
|
|
`:wt):""},me=function(Pe){if(K)return Ye();if(Pe&&Pe.inputType){if(Pe.inputType=="historyUndo")return V.execCommand("undo");if(Pe.inputType=="historyRedo")return V.execCommand("redo")}var Pe=H.value,Ze=fe(Pe,!0);(500<Pe.length||P.test(Ze)||$&&G<1&&G==ne)&&X()},Ae=function(ht,Pe,Ze){var dt=ht.clipboardData||window.clipboardData;if(dt&&!_){var Mt=A||Ze?"Text":"text/plain";try{return Pe?dt.setData(Mt,Pe)!==!1:dt.getData(Mt)}catch(He){if(!Ze)return Ae(He,Pe,!0)}}},Be=function(ht,Pe){var Ze=V.getCopyText();if(!Ze)return k.preventDefault(ht);Ae(ht,Ze)?(x&&(X(Ze),Q=Ze,setTimeout(function(){Q=!1},10)),Pe?V.onCut():V.onCopy(),k.preventDefault(ht)):(Q=!0,H.value=Ze,H.select(),setTimeout(function(){Q=!1,X(),Pe?V.onCut():V.onCopy()}))},Ye=(k.addCommandKeyListener(H,V.onCommandKey.bind(V),V),k.addListener(H,"select",function(ht){K||(Q?Q=!1:Z(H)?(V.selectAll(),X()):$&&H.selectionStart!=G&&X())},V),k.addListener(H,"input",me,V),k.addListener(H,"cut",ie,V),k.addListener(H,"copy",ce,V),k.addListener(H,"paste",pe,V),"oncut"in H&&"oncopy"in H&&"onpaste"in H||k.addListener(L,"keydown",function(ht){if((!S.isMac||ht.metaKey)&&ht.ctrlKey)switch(ht.keyCode){case 67:ce(ht);break;case 86:pe(ht);break;case 88:ie(ht)}},V),function(){var ht;if(K&&V.onCompositionUpdate&&!V.$readOnly)return ee?nt():void(K.useTextareaForIME?V.onCompositionUpdate(H.value):(ht=H.value,fe(ht),K.markerRange&&(K.context&&(K.markerRange.start.column=K.selectionStart=K.context.compositionStartOffset),K.markerRange.end.column=K.markerRange.start.column+ne-K.selectionStart+le)))}),Qe=function(ht){V.onCompositionEnd&&!V.$readOnly&&(K=!1,V.onCompositionEnd(),V.off("mousedown",nt),ht)&&me()};function nt(){N=!0,H.blur(),H.focus(),N=!1}var st,Le=O.delayedCall(Ye,50).schedule.bind(null,null);function Me(){clearTimeout(st),st=setTimeout(function(){ue&&(H.style.cssText=ue,ue=""),V.renderer.$isMousePressed=!1,V.renderer.$keepTextAreaAtCursor&&V.renderer.$moveTextAreaToCursor()},0)}k.addListener(H,"compositionstart",function(ht){K||!V.onCompositionStart||V.$readOnly||(K={},ee)||(ht.data&&(K.useTextareaForIME=!1),setTimeout(Ye,0),V._signal("compositionStart"),V.on("mousedown",nt),(ht=V.getSelectionRange()).end.row=ht.start.row,ht.end.column=ht.start.column,K.markerRange=ht,K.selectionStart=G,V.onCompositionStart(K),K.useTextareaForIME?(q=H.value="",ne=G=0):(H.msGetInputContext&&(K.context=H.msGetInputContext()),H.getInputContext&&(K.context=H.getInputContext())))},V),k.addListener(H,"compositionupdate",Ye,V),k.addListener(H,"keyup",function(ht){ht.keyCode==27&&H.value.length<H.selectionStart&&(K||(q=H.value),G=ne=-1,X()),Le()},V),k.addListener(H,"keydown",Le,V),k.addListener(H,"compositionend",Qe,V),this.getElement=function(){return H},this.setCommandMode=function(ht){ee=ht,H.readOnly=!1},this.setReadOnly=function(ht){ee||(H.readOnly=ht)},this.setCopyWithEmptySelection=function(ht){},this.onContextMenu=function(ht){se=!0,X(),V._emit("nativecontextmenu",{target:V,domEvent:ht}),this.moveToMouse(ht,!0)},this.moveToMouse=function(ht,dt){ue=ue||H.style.cssText,H.style.cssText=(dt?"z-index:100000;":"")+(S.isIE?"opacity:0.1;":"")+"text-indent: -"+(G+ne)*V.renderer.characterWidth*.5+"px;";function Ze(Xe){I.translate(H,Xe.clientX-wt-2,Math.min(Xe.clientY-He-2,Ee))}var dt=V.container.getBoundingClientRect(),Mt=I.computedStyle(V.container),He=dt.top+(parseInt(Mt.borderTopWidth)||0),wt=dt.left+(parseInt(dt.borderLeftWidth)||0),Ee=dt.bottom-He-H.clientHeight-2;Ze(ht),ht.type=="mousedown"&&(V.renderer.$isMousePressed=!0,clearTimeout(st),S.isWin)&&k.capture(V.container,Ze,Me)},this.onContextMenuClose=Me;function je(ht){V.textInput.onContextMenu(ht),Me()}if(k.addListener(H,"mouseup",je,V),k.addListener(H,"mousedown",function(ht){ht.preventDefault(),Me()},V),k.addListener(V.renderer.scroller,"contextmenu",je,V),k.addListener(H,"contextmenu",je,V),x){let ht=function(Pe){var Ze,dt,Mt,He;document.activeElement!==Te||At||K||Ue.$mouseHandler.isMousePressed||Q||(Ze=Te.selectionStart,dt=Te.selectionEnd,Mt=null,(He=0)==Ze?Mt=D.up:Ze==1?Mt=D.home:ne<dt&&q[dt]==`
|
|
`?Mt=D.end:Ze<G&&q[Ze-1]==" "?(Mt=D.left,He=C.option):Ze<G||Ze==G&&ne!=G&&Ze==dt?Mt=D.left:ne<dt&&2<q.slice(0,dt).split(`
|
|
`).length?Mt=D.down:ne<dt&&q[dt-1]==" "?(Mt=D.right,He=C.option):(ne<dt||dt==ne&&ne!=G&&Ze==dt)&&(Mt=D.right),Ze!==dt&&(He|=C.shift),Mt&&(!Ue.onCommandKey({},He,Mt)&&Ue.commands&&(Mt=D.keyCodeToString(Mt),He=Ue.commands.findKeyCommand(He,Mt))&&Ue.execCommand(He),G=Ze,ne=dt,X("")))};var Ue=V,Te=H,bt=null,At=!1;Te.addEventListener("keydown",function(Pe){bt&&clearTimeout(bt),At=!0},!0),Te.addEventListener("keyup",function(Pe){bt=setTimeout(function(){At=!1},100)},!0),document.addEventListener("selectionchange",ht),Ue.on("destroy",function(){document.removeEventListener("selectionchange",ht)})}this.destroy=function(){H.parentElement&&H.parentElement.removeChild(H)}},m.$setUserAgentForTests=function(L,V){$=L,x=V}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(T,m,w){var k=T("../lib/useragent"),T=(S.prototype.onMouseDown=function(O){var y=O.inSelection(),_=O.getDocumentPosition(),A=(this.mousedownEvent=O,this.editor),R=O.getButton();if(R!==0)!A.getSelectionRange().isEmpty()&&R!=1||A.selection.moveToPosition(_),R==2&&(A.textInput.onContextMenu(O.domEvent),k.isMozilla||O.preventDefault());else{if(this.mousedownEvent.time=Date.now(),!y||A.isFocused()||(A.focus(),!this.$focusTimeout)||this.$clickSelection||A.inMultiSelectMode)return this.captureMouse(O),this.startSelect(_,1<O.domEvent._clicks),O.preventDefault();this.setState("focusWait"),this.captureMouse(O)}},S.prototype.startSelect=function(O,y){O=O||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var _=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?_.selection.selectToPosition(O):y||_.selection.moveToPosition(O),y||this.select(),_.setStyle("ace_selecting"),this.setState("select"))},S.prototype.select=function(){var O,y=this.editor,_=y.renderer.screenToTextCoordinates(this.x,this.y);this.$clickSelection&&(O=(O=this.$clickSelection.comparePoint(_))==-1?this.$clickSelection.end:O==1?this.$clickSelection.start:(_=(O=I(this.$clickSelection,_)).cursor,O.anchor),y.selection.setSelectionAnchor(O.row,O.column)),y.selection.selectToPosition(_),y.renderer.scrollCursorIntoView()},S.prototype.extendSelectionBy=function(C){var y,_,A,R=this.editor,D=R.renderer.screenToTextCoordinates(this.x,this.y),C=R.selection[C](D.row,D.column);this.$clickSelection&&(_=this.$clickSelection.comparePoint(C.start),y=this.$clickSelection.comparePoint(C.end),_==-1&&y<=0?(A=this.$clickSelection.end,C.end.row==D.row&&C.end.column==D.column||(D=C.start)):y==1&&0<=_?(A=this.$clickSelection.start,C.start.row==D.row&&C.start.column==D.column||(D=C.end)):A=_==-1&&y==1?(D=C.end,C.start):(D=(_=I(this.$clickSelection,D)).cursor,_.anchor),R.selection.setSelectionAnchor(A.row,A.column)),R.selection.selectToPosition(D),R.renderer.scrollCursorIntoView()},S.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},S.prototype.focusWait=function(){A=this.mousedownEvent.x,O=this.mousedownEvent.y,_=this.x,y=this.y;var O,y,_=Math.sqrt(Math.pow(_-A,2)+Math.pow(y-O,2)),A=Date.now();(0<_||A-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},S.prototype.onDoubleClick=function(y){var y=y.getDocumentPosition(),_=this.editor,A=_.session.getBracketRange(y);A?(A.isEmpty()&&(A.start.column--,A.end.column++),this.setState("select")):(A=_.selection.getWordRange(y.row,y.column),this.setState("selectByWords")),this.$clickSelection=A,this.select()},S.prototype.onTripleClick=function(y){var y=y.getDocumentPosition(),_=this.editor,A=(this.setState("selectByLines"),_.getSelectionRange());A.isMultiLine()&&A.contains(y.row,y.column)?(this.$clickSelection=_.selection.getLineRange(A.start.row),this.$clickSelection.end=_.selection.getLineRange(A.end.row).end):this.$clickSelection=_.selection.getLineRange(y.row),this.select()},S.prototype.onQuadClick=function(O){var y=this.editor;y.selectAll(),this.$clickSelection=y.getSelectionRange(),this.setState("selectAll")},S.prototype.onMouseWheel=function(O){var y,_,A,R,D,C,x;if(!O.getAccelKey())return O.getShiftKey()&&O.wheelY&&!O.wheelX&&(O.wheelX=O.wheelY,O.wheelY=0),y=this.editor,this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0}),_=this.$lastScroll,R=(x=(A=O.domEvent.timeStamp)-_.t)?O.wheelX/x:_.vx,D=x?O.wheelY/x:_.vy,x<550&&(R=(R+_.vx)/2,D=(D+_.vy)/2),x=!1,1<=(C=Math.abs(R/D))&&y.renderer.isScrollableBy(O.wheelX*O.speed,0)&&(x=!0),(x=C<=1&&y.renderer.isScrollableBy(0,O.wheelY*O.speed)?!0:x)?_.allowed=A:A-_.allowed<550&&(Math.abs(R)<=1.5*Math.abs(_.vx)&&Math.abs(D)<=1.5*Math.abs(_.vy)?(x=!0,_.allowed=A):_.allowed=0),_.t=A,_.vx=R,_.vy=D,x?(y.renderer.scrollBy(O.wheelX*O.speed,O.wheelY*O.speed),O.stop()):void 0},S);function S(O){O.$clickSelection=null;var y=O.editor;y.setDefaultHandler("mousedown",this.onMouseDown.bind(O)),y.setDefaultHandler("dblclick",this.onDoubleClick.bind(O)),y.setDefaultHandler("tripleclick",this.onTripleClick.bind(O)),y.setDefaultHandler("quadclick",this.onQuadClick.bind(O)),y.setDefaultHandler("mousewheel",this.onMouseWheel.bind(O)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(_){O[_]=this[_]},this),O.selectByLines=this.extendSelectionBy.bind(O,"getLineRange"),O.selectByWords=this.extendSelectionBy.bind(O,"getWordRange")}function I(O,y){return(O.start.row==O.end.row?2*y.column-O.start.column-O.end.column:O.start.row!=O.end.row-1||O.start.column||O.end.column?2*y.row-O.start.row-O.end.row:y.column-4)<0?{cursor:O.start,anchor:O.end}:{cursor:O.end,anchor:O.start}}T.prototype.selectEnd=T.prototype.selectByLinesEnd,T.prototype.selectAllEnd=T.prototype.selectByLinesEnd,T.prototype.selectByWordsEnd=T.prototype.selectByLinesEnd,m.DefaultHandlers=T}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/range"],function(y,m,w){var k,C=this&&this.__extends||(k=function(P,$){return(k=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(L,V){L.__proto__=V}:function(L,V){for(var H in V)Object.prototype.hasOwnProperty.call(V,H)&&(L[H]=V[H])}))(P,$)},function(P,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");function L(){this.constructor=P}k(P,$),P.prototype=$===null?Object.create($):(L.prototype=$.prototype,new L)}),T=this&&this.__values||function(P){var $=typeof Symbol=="function"&&Symbol.iterator,L=$&&P[$],V=0;if(L)return L.call(P);if(P&&typeof P.length=="number")return{next:function(){return{value:(P=P&&V>=P.length?void 0:P)&&P[V++],done:!P}}};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")},S=y("./lib/dom"),I=y("./range").Range,O="ace_tooltip",y=(_.prototype.$init=function(){return this.$element=S.createElement("div"),this.$element.className=O,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},_.prototype.getElement=function(){return this.$element||this.$init()},_.prototype.setText=function(P){this.getElement().textContent=P},_.prototype.setHtml=function(P){this.getElement().innerHTML=P},_.prototype.setPosition=function(P,$){this.getElement().style.left=P+"px",this.getElement().style.top=$+"px"},_.prototype.setClassName=function(P){S.addCssClass(this.getElement(),P)},_.prototype.setTheme=function(P){this.$element.className=O+" "+(P.isDark?"ace_dark ":"")+(P.cssClass||"")},_.prototype.show=function(P,$,L){P!=null&&this.setText(P),$!=null&&L!=null&&this.setPosition($,L),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},_.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=O,this.isOpen=!1)},_.prototype.getHeight=function(){return this.getElement().offsetHeight},_.prototype.getWidth=function(){return this.getElement().offsetWidth},_.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},_);function _(P){this.isOpen=!1,this.$element=null,this.$parentNode=P}function A(){this.popups=[]}A.prototype.addPopup=function(P){this.popups.push(P),this.updatePopups()},A.prototype.removePopup=function(P){P=this.popups.indexOf(P),P!==-1&&(this.popups.splice(P,1),this.updatePopups())},A.prototype.updatePopups=function(){this.popups.sort(function(q,G){return G.priority-q.priority});var P,$,L,V,H=[];try{for(var Q=T(this.popups),U=Q.next();!U.done;U=Q.next()){var K=U.value,J=!0;try{L=void 0;for(var ue=T(H),ee=ue.next();!ee.done;ee=ue.next()){var N=ee.value;if(this.doPopupsOverlap(N,K)){J=!1;break}}}catch(q){L={error:q}}finally{try{ee&&!ee.done&&(V=ue.return)&&V.call(ue)}finally{if(L)throw L.error}}J?H.push(K):K.hide()}}catch(q){P={error:q}}finally{try{U&&!U.done&&($=Q.return)&&$.call(Q)}finally{if(P)throw P.error}}},A.prototype.doPopupsOverlap=function(P,$){return P=P.getElement().getBoundingClientRect(),$=$.getElement().getBoundingClientRect(),P.left<$.right&&P.right>$.left&&P.top<$.bottom&&P.bottom>$.top};var R,D=new A,C=(m.popupManager=D,m.Tooltip=y,C(x,R=y),x.prototype.addToEditor=function(P){P.on("mousemove",this.onMouseMove),P.on("mousedown",this.hide),P.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},x.prototype.removeFromEditor=function(P){P.off("mousemove",this.onMouseMove),P.off("mousedown",this.hide),P.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},x.prototype.onMouseMove=function(P,V){this.lastEvent=P,this.lastT=Date.now();var L,V=V.$mouseHandler.isMousePressed;this.isOpen&&(L=this.lastEvent&&this.lastEvent.getDocumentPosition(),this.range&&this.range.contains(L.row,L.column)&&!V&&!this.isOutsideOfText(this.lastEvent)||this.hide()),this.timeout||V||(this.lastEvent=P,this.timeout=setTimeout(this.waitForHover,this.idleTime))},x.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var P=Date.now()-this.lastT;10<this.idleTime-P?this.timeout=setTimeout(this.waitForHover,this.idleTime-P):(this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor))},x.prototype.isOutsideOfText=function(P){var $=P.editor,L=P.getDocumentPosition(),V=$.session.getLine(L.row);return L.column==V.length&&(V=$.renderer.pixelToScreenCoordinates(P.clientX,P.clientY),P=$.session.documentToScreenPosition(L.row,L.column),P.column!=V.column||P.row!=V.row)},x.prototype.setDataProvider=function(P){this.$gatherData=P},x.prototype.showForRange=function(P,$,L,V){var H,Q;V&&V!=this.lastEvent||this.isOpen&&document.activeElement==this.getElement()||(V=P.renderer,this.isOpen||(D.addPopup(this),this.$registerCloseEvents(),this.setTheme(V.theme)),this.isOpen=!0,this.addMarker($,P.session),this.range=I.fromPoints($.start,$.end),(P=this.getElement()).innerHTML="",P.appendChild(L),P.style.display="block",L=V.textToScreenCoordinates($.start.row,$.start.column),$=P.clientHeight,H=V.scroller.getBoundingClientRect(),Q=!0,(Q=L.pageY-$<0?!1:Q)?L.pageY-=$:L.pageY+=V.lineHeight,P.style.maxWidth=H.width-(L.pageX-H.left)+"px",this.setPosition(L.pageX,L.pageY))},x.prototype.addMarker=function(P,$){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=$,this.marker=$&&$.addMarker(P,"ace_highlight-marker","text")},x.prototype.hide=function(P){!P&&document.activeElement==this.getElement()||P&&P.target&&(P.type!="keydown"||P.ctrlKey||P.metaKey)&&this.$element.contains(P.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,D.removePopup(this)))},x.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("mousewheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},x.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("mousewheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},x.prototype.onMouseOut=function(P){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,!this.isOpen||!P.relatedTarget||P.relatedTarget==this.getElement()||P&&P.currentTarget.contains(P.relatedTarget)||P.relatedTarget.classList.contains("ace_content")||this.hide()},x);function x($){$===void 0&&($=document.body);var $=R.call(this,$)||this,L=($.timeout=void 0,$.lastT=0,$.idleTime=350,$.lastEvent=void 0,$.onMouseOut=$.onMouseOut.bind($),$.onMouseMove=$.onMouseMove.bind($),$.waitForHover=$.waitForHover.bind($),$.hide=$.hide.bind($),$.getElement());return L.style.whiteSpace="pre-wrap",L.style.pointerEvents="auto",L.addEventListener("mouseout",$.onMouseOut),L.tabIndex=-1,L.addEventListener("blur",(function(){L.contains(document.activeElement)||this.hide()}).bind($)),$}m.HoverTooltip=C}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(v,m,w){var k,T=this&&this.__extends||(k=function(C,x){return(k=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(P,$){P.__proto__=$}:function(P,$){for(var L in $)Object.prototype.hasOwnProperty.call($,L)&&(P[L]=$[L])}))(C,x)},function(C,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function P(){this.constructor=C}k(C,x),C.prototype=x===null?Object.create(x):(P.prototype=x.prototype,new P)}),S=this&&this.__values||function(C){var x=typeof Symbol=="function"&&Symbol.iterator,P=x&&C[x],$=0;if(P)return P.call(C);if(C&&typeof C.length=="number")return{next:function(){return{value:(C=C&&$>=C.length?void 0:C)&&C[$++],done:!C}}};throw new TypeError(x?"Object is not iterable.":"Symbol.iterator is not defined.")},I=v("../lib/dom"),O=v("../lib/event"),y=v("../tooltip").Tooltip,_=v("../config").nls;m.GutterHandler=function(C){var x,P,$=C.editor,L=$.renderer.$gutterLayer,V=new R($);function H(){x=x&&clearTimeout(x),V.isOpen&&(V.hideTooltip(),$.off("mousewheel",H))}function Q(U){V.setPosition(U.x,U.y)}C.editor.setDefaultHandler("guttermousedown",function(U){if($.isFocused()&&U.getButton()==0){var K=L.getRegion(U);if(K!="foldWidgets"){var K=U.getDocumentPosition().row,J=$.session.selection;if(U.getShiftKey())J.selectTo(K,0);else{if(U.domEvent.detail==2)return $.selectAll(),U.preventDefault();C.$clickSelection=$.selection.getLineRange(K)}return C.setState("selectByLines"),C.captureMouse(U),U.preventDefault()}}}),C.editor.setDefaultHandler("guttermousemove",function(U){var K=U.domEvent.target||U.domEvent.srcElement;if(I.hasCssClass(K,"ace_fold-widget"))return H();V.isOpen&&C.$tooltipFollowsMouse&&Q(U),P=U,x=x||setTimeout(function(){if(x=null,P&&!C.isMousePressed){var J=P.getDocumentPosition().row;if(J==$.session.getLength()){var ue=$.renderer.pixelToScreenCoordinates(0,P.y).row,ee=P.$pos;if(ue>$.session.documentToScreenRow(ee.row,ee.column))return void H()}V.showTooltip(J),V.isOpen&&($.on("mousewheel",H),!C.$tooltipFollowsMouse&&(ue=P.getGutterRow(),ee=L.$lines.get(ue))?(J=ee.element.querySelector(".ace_gutter_annotation").getBoundingClientRect(),(ue=V.getElement().style).left=J.right+"px",ue.top=J.bottom+"px"):Q(P))}else H()},50)}),O.addListener($.renderer.$gutter,"mouseout",function(U){P=null,V.isOpen&&(x=x||setTimeout(function(){x=null,H()},50))},$),$.on("changeSession",H),$.on("input",H)},T(D,A=y),D.prototype.setPosition=function(C,x){var P=window.innerWidth||document.documentElement.clientWidth,$=window.innerHeight||document.documentElement.clientHeight,L=this.getWidth(),V=this.getHeight();P<(C+=15)+L&&(C-=C+L-P),$<(x+=15)+V&&(x-=20+V),y.prototype.setPosition.call(this,C,x)},Object.defineProperty(D,"annotationLabels",{get:function(){return{error:{singular:_("error"),plural:_("errors")},warning:{singular:_("warning"),plural:_("warnings")},info:{singular:_("information message"),plural:_("information messages")}}},enumerable:!1,configurable:!0}),D.prototype.showTooltip=function(C){var x=this.editor.renderer.$gutterLayer,P=x.$annotations[C],$=P?{text:Array.from(P.text),type:Array.from(P.type)}:{text:[],type:[]},L=x.session.getFoldLine(C);if(L&&x.$showFoldedAnnotations){for(var V,H={error:[],warning:[],info:[]},Q=C+1;Q<=L.end.row;Q++)if(x.$annotations[Q])for(var U=0;U<x.$annotations[Q].text.length;U++){var K=x.$annotations[Q].type[U];H[K].push(x.$annotations[Q].text[U]),K==="error"?V="error_fold":K==="warning"&&(V="warning_fold")}V!=="error_fold"&&V!=="warning_fold"||(P="".concat(D.annotationsToSummaryString(H)," in folded code."),$.text.push(P),$.type.push(V))}if($.text.length===0)return this.hide();for(var J={error:[],warning:[],info:[]},ue=x.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",Q=0;Q<$.text.length;Q++){var ee="<span class='ace_".concat($.type[Q]," ").concat(ue,"' aria-label='").concat(D.annotationLabels[$.type[Q].replace("_fold","")].singular,"' role=img> </span> ").concat($.text[Q]);J[$.type[Q].replace("_fold","")].push(ee)}C=[].concat(J.error,J.warning,J.info).join("<br>"),this.setHtml(C),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},D.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},D.annotationsToSummaryString=function(C){var x,P,$=[];try{for(var L=S(["error","warning","info"]),V=L.next();!V.done;V=L.next()){var H,Q=V.value;C[Q].length&&(H=C[Q].length===1?D.annotationLabels[Q].singular:D.annotationLabels[Q].plural,$.push("".concat(C[Q].length," ").concat(H)))}}catch(U){x={error:U}}finally{try{V&&!V.done&&(P=L.return)&&P.call(L)}finally{if(x)throw x.error}}return $.join(", ")};var A,R=D;function D(C){var x=A.call(this,C.container)||this;return x.editor=C,x}m.GutterTooltip=R}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(v,m,w){var k=v("../lib/event"),T=v("../lib/useragent");function S(I,O){this.domEvent=I,this.editor=O,this.x=this.clientX=I.clientX,this.y=this.clientY=I.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}S.prototype.stopPropagation=function(){k.stopPropagation(this.domEvent),this.propagationStopped=!0},S.prototype.preventDefault=function(){k.preventDefault(this.domEvent),this.defaultPrevented=!0},S.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},S.prototype.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},S.prototype.getGutterRow=function(){var I=this.getDocumentPosition().row;return this.editor.session.documentToScreenRow(I,0)-this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0)},S.prototype.inSelection=function(){var I,O;return this.$inSelection===null&&((I=this.editor.getSelectionRange()).isEmpty()?this.$inSelection=!1:(O=this.getDocumentPosition(),this.$inSelection=I.contains(O.row,O.column))),this.$inSelection},S.prototype.getButton=function(){return k.getButton(this.domEvent)},S.prototype.getShiftKey=function(){return this.domEvent.shiftKey},S.prototype.getAccelKey=function(){return T.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},m.MouseEvent=S}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(v,m,w){var k=v("../lib/dom"),T=v("../lib/event"),S=v("../lib/useragent");function I(y){var _,A,R,D,C,x,P,$,L,V,H,Q=y.editor,U=k.createElement("div"),K=(U.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",U.textContent=" ",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(oe){y[oe]=this[oe]},this),Q.on("mousedown",this.onMouseDown.bind(y)),Q.container),J=0;function ue(){var oe,ve,de,ae,be,ie,ce,pe,X=x;x=Q.renderer.screenToTextCoordinates(A,R),de=x,ve=X,ae=Date.now(),oe=!ve||de.row!=ve.row,ve=!ve||de.column!=ve.column,!V||oe||ve?(Q.moveCursorToPosition(de),V=ae,H={x:A,y:R}):5<O(H.x,H.y,A,R)?V=null:200<=ae-V&&(Q.renderer.scrollCursorIntoView(),V=null),oe=x,ve=X,de=Date.now(),ae=Q.renderer.layerConfig.lineHeight,X=Q.renderer.layerConfig.characterWidth,be=Q.renderer.scroller.getBoundingClientRect(),be={x:{left:A-be.left,right:be.right-A},y:{top:R-be.top,bottom:be.bottom-R}},ie=Math.min(be.x.left,be.x.right),ce=Math.min(be.y.top,be.y.bottom),pe={row:oe.row,column:oe.column},ie/X<=2&&(pe.column+=be.x.left<be.x.right?-3:2),ce/ae<=1&&(pe.row+=be.y.top<be.y.bottom?-1:1),ie=oe.row!=pe.row,X=oe.column!=pe.column,ce=!ve||oe.row!=ve.row,ie||X&&!ce?L?200<=de-L&&Q.renderer.scrollCursorIntoView(pe):L=de:L=null}function ee(){C=Q.selection.toOrientedRange(),_=Q.session.addMarker(C,"ace_selection",Q.getSelectionStyle()),Q.clearSelection(),Q.isFocused()&&Q.renderer.$cursorLayer.setBlinking(!1),clearInterval(D),ue(),D=setInterval(ue,20),J=0,T.addListener(document,"mousemove",G)}function N(){clearInterval(D),Q.session.removeMarker(_),_=null,Q.selection.fromOrientedRange(C),Q.isFocused()&&!$&&Q.$resetCursorStyle(),J=0,V=L=x=C=null,T.removeListener(document,"mousemove",G)}this.onDragStart=function(oe){var ve;if(this.cancelDrag||!K.draggable)return ve=this,setTimeout(function(){ve.startSelect(),ve.captureMouse(oe)},0),oe.preventDefault();C=Q.getSelectionRange();var de=oe.dataTransfer;de.effectAllowed=Q.getReadOnly()?"copy":"copyMove",Q.container.appendChild(U),de.setDragImage&&de.setDragImage(U,0,0),setTimeout(function(){Q.container.removeChild(U)}),de.clearData(),de.setData("Text",Q.session.getTextRange()),$=!0,this.setState("drag")},this.onDragEnd=function(oe){K.draggable=!1,$=!1,this.setState(null),Q.getReadOnly()||(oe=oe.dataTransfer.dropEffect,P||oe!="move"||Q.session.remove(Q.getSelectionRange()),Q.$resetCursorStyle()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(oe){if(!Q.getReadOnly()&&ne(oe.dataTransfer))return A=oe.clientX,R=oe.clientY,_||ee(),J++,oe.dataTransfer.dropEffect=P=le(oe),T.preventDefault(oe)},this.onDragOver=function(oe){if(!Q.getReadOnly()&&ne(oe.dataTransfer))return A=oe.clientX,R=oe.clientY,_||(ee(),J++),q!==null&&(q=null),oe.dataTransfer.dropEffect=P=le(oe),T.preventDefault(oe)},this.onDragLeave=function(oe){if(--J<=0&&_)return N(),P=null,T.preventDefault(oe)},this.onDrop=function(oe){if(x){var ve=oe.dataTransfer;if($)switch(P){case"move":C=C.contains(x.row,x.column)?{start:x,end:x}:Q.moveText(C,x);break;case"copy":C=Q.moveText(C,x,!0)}else ve=ve.getData("Text"),C={start:x,end:Q.session.insert(x,ve)},Q.focus(),P=null;return N(),T.preventDefault(oe)}},T.addListener(K,"dragstart",this.onDragStart.bind(y),Q),T.addListener(K,"dragend",this.onDragEnd.bind(y),Q),T.addListener(K,"dragenter",this.onDragEnter.bind(y),Q),T.addListener(K,"dragover",this.onDragOver.bind(y),Q),T.addListener(K,"dragleave",this.onDragLeave.bind(y),Q),T.addListener(K,"drop",this.onDrop.bind(y),Q);var q=null;function G(){q==null&&(q=setTimeout(function(){q!=null&&_&&N()},20))}function ne(oe){return oe=oe.types,!oe||Array.prototype.some.call(oe,function(ve){return ve=="text/plain"||ve=="Text"})}function le(oe){var ve=["copy","copymove","all","uninitialized"],de=S.isMac?oe.altKey:oe.ctrlKey,ae="uninitialized";try{ae=oe.dataTransfer.effectAllowed.toLowerCase()}catch{}var be="none";return de&&0<=ve.indexOf(ae)?be="copy":0<=["move","copymove","linkmove","all","uninitialized"].indexOf(ae)?be="move":0<=ve.indexOf(ae)&&(be="copy"),be}}function O(y,_,A,R){return Math.sqrt(Math.pow(A-y,2)+Math.pow(R-_,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(y){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var y=this.editor,_=(y.container.draggable=!0,y.renderer.$cursorLayer.setBlinking(!1),y.setStyle("ace_dragging"),S.isWin?"default":"move");y.renderer.setCursorStyle(_),this.setState("dragReady")},this.onMouseDrag=function(y){var _=this.editor.container;S.isIE&&this.state=="dragReady"&&3<O(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&_.dragDrop(),this.state==="dragWait"&&0<O(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&(_.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(y){var _,A,R;this.$dragEnabled&&(this.mousedownEvent=y,_=this.editor,A=y.inSelection(),R=y.getButton(),(y.domEvent.detail||1)!==1||R!==0||!A||y.editor.inMultiSelectMode&&(y.getAccelKey()||y.getShiftKey())||(this.mousedownEvent.time=Date.now(),"unselectable"in(R=y.domEvent.target||y.domEvent.srcElement)&&(R.unselectable="on"),_.getDragDelay()?(S.isWebKit&&(this.cancelDrag=!0,_.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(y,this.onMouseDrag.bind(this)),y.defaultPrevented=!0))}}).call(I.prototype),m.DragdropHandler=I}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(v,m,w){var k=v("./mouse_event").MouseEvent,T=v("../lib/event"),S=v("../lib/dom");m.addTouchListeners=function(I,O){var y,_,A,R,D,C,x,P,$,L="scroll",V=0,H=0,Q=0,U=0;function K(){function N(ne){var le,oe=ne.target.getAttribute("action");oe!="more"&&G?(oe=="paste"?q.readText().then(function(ve){O.execCommand(oe,ve)}):oe&&(oe!="cut"&&oe!="copy"||(q?q.writeText(O.getCopyText()):document.execCommand("copy")),O.execCommand(oe)),$.firstChild.style.display="none",G=!1,oe!="openCommandPalette"&&O.focus()):(G=!G,ne=O.getCopyText(),le=O.session.getUndoManager().hasUndo(),$.replaceChild(S.buildDom(G?["span",!ne&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],ne&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],ne&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],q&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],le&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),$.firstChild))}var q=window.navigator&&window.navigator.clipboard,G=!1;$=S.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(ne){L="menu",ne.stopPropagation(),ne.preventDefault(),O.textInput.focus()},ontouchend:function(ne){ne.stopPropagation(),ne.preventDefault(),N(ne)},onclick:N},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],O.container)}function J(){$||K();var N=O.selection.cursor,N=O.renderer.textToScreenCoordinates(N.row,N.column),q=O.renderer.textToScreenCoordinates(0,0).pageX,G=O.renderer.scrollLeft,ne=O.container.getBoundingClientRect();$.style.top=N.pageY-ne.top-3+"px",N.pageX-ne.left<ne.width-70?($.style.left="",$.style.right="10px"):($.style.right="",$.style.left=q+G-ne.left+"px"),$.style.display="",$.firstChild.style.display="none",O.on("input",ue)}function ue(N){$&&($.style.display="none"),O.off("input",ue)}function ee(){D=null,clearTimeout(D);var N=O.selection.getRange(),q=N.contains(x.row,x.column);!N.isEmpty()&&q||(O.selection.moveToPosition(x),O.selection.selectWord()),L="wait",J()}T.addListener(I,"contextmenu",function(N){P&&O.textInput.getElement().focus()},O),T.addListener(I,"touchstart",function(N){var q=N.touches;if(D||1<q.length)clearTimeout(D),D=null,A=-1,L="zoom";else{P=O.$mouseHandler.isMousePressed=!0;var G=O.renderer.layerConfig.lineHeight,ne=O.renderer.layerConfig.lineHeight,le=N.timeStamp,oe=(R=le,q[0]),ve=oe.clientX,oe=oe.clientY,ve=(Math.abs(y-ve)+Math.abs(_-oe)>G&&(A=-1),y=N.clientX=ve,_=N.clientY=oe,Q=U=0,new k(N,O));if(x=ve.getDocumentPosition(),le-A<500&&q.length==1&&!V)H++,N.preventDefault(),N.button=0,D=null,clearTimeout(D),O.selection.moveToPosition(x),(oe=2<=H?O.selection.getLineRange(x.row):O.session.getBracketRange(x))&&!oe.isEmpty()?O.selection.setRange(oe):O.selection.selectWord(),L="wait";else{H=0;var ve=O.selection.cursor,q=O.selection.isEmpty()?ve:O.selection.anchor,oe=O.renderer.$cursorLayer.getPixelPosition(ve,!0),ve=O.renderer.$cursorLayer.getPixelPosition(q,!0),q=O.renderer.scroller.getBoundingClientRect(),de=O.renderer.layerConfig.offset,ae=O.renderer.scrollLeft,be=function(X,Z){return(X/=ne)*X+(Z=Z/G-.75)*Z};if(N.clientX<q.left)return void(L="zoom");oe=be(N.clientX-q.left-oe.left+ae,N.clientY-q.top-oe.top+de),be=be(N.clientX-q.left-ve.left+ae,N.clientY-q.top-ve.top+de),oe<3.5&&be<3.5&&(L=be<oe?"cursor":"anchor"),L=be<3.5?"anchor":oe<3.5?"cursor":"scroll",D=setTimeout(ee,450)}A=le}},O),T.addListener(I,"touchend",function(N){P=O.$mouseHandler.isMousePressed=!1,C&&clearInterval(C),L=="zoom"?(L="",V=0):(D?(O.selection.moveToPosition(x),V=0,J):L=="scroll"?(V+=60,C=setInterval(function(){V--<=0&&(clearInterval(C),C=null),Math.abs(Q)<.01&&(Q=0),Math.abs(U)<.01&&(U=0),V<20&&(Q*=.9),V<20&&(U*=.9);var q=O.session.getScrollTop();O.renderer.scrollBy(10*Q,10*U),q==O.session.getScrollTop()&&(V=0)},10),ue):J)(),clearTimeout(D),D=null},O),T.addListener(I,"touchmove",function(N){D&&(clearTimeout(D),D=null);var q=N.touches;if(!(1<q.length||L=="zoom")){var q=q[0],G=y-q.clientX,ne=_-q.clientY;if(L=="wait"){if(!(4<G*G+ne*ne))return N.preventDefault();L="cursor"}y=q.clientX,_=q.clientY,N.clientX=q.clientX,N.clientY=q.clientY;var q=N.timeStamp,le=q-R;R=q,L=="scroll"?((q=new k(N,O)).speed=1,q.wheelX=G,q.wheelY=ne,10*Math.abs(G)<Math.abs(ne)&&(G=0),10*Math.abs(ne)<Math.abs(G)&&(ne=0),le!=0&&(Q=G/le,U=ne/le),O._emit("mousewheel",q),q.propagationStopped||(Q=U=0)):(G=new k(N,O).getDocumentPosition(),L=="cursor"?O.selection.moveCursorToPosition(G):L=="anchor"&&O.selection.setSelectionAnchor(G.row,G.column),O.renderer.scrollCursorIntoView(G),N.preventDefault())}},O)}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(A,m,w){var k=A("../lib/event"),T=A("../lib/useragent"),S=A("./default_handlers").DefaultHandlers,I=A("./default_gutter_handler").GutterHandler,O=A("./mouse_event").MouseEvent,y=A("./dragdrop_handler").DragdropHandler,_=A("./touch_handler").addTouchListeners,A=A("../config"),R=(D.prototype.onMouseEvent=function(C,x){this.editor.session&&this.editor._emit(C,new O(x,this.editor))},D.prototype.onMouseMove=function(C,x){var P=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;P&&P.length&&this.editor._emit(C,new O(x,this.editor))},D.prototype.onMouseWheel=function(C,x){var P=new O(x,this.editor);P.speed=2*this.$scrollSpeed,P.wheelX=x.wheelX,P.wheelY=x.wheelY,this.editor._emit(C,P)},D.prototype.setState=function(C){this.state=C},D.prototype.captureMouse=function(C,x){this.x=C.x,this.y=C.y,this.isMousePressed=!0;function P(J){if(J){if(T.isWebKit&&!J.which&&Q.releaseMouse)return Q.releaseMouse();Q.x=J.clientX,Q.y=J.clientY,x&&x(J),Q.mouseEvent=new O(J,Q.editor),Q.$mouseMoved=!0}}function $(J){V.off("beforeEndOperation",U),clearInterval(K),V.session&&L(),Q[Q.state+"End"]&&Q[Q.state+"End"](J),Q.state="",Q.isMousePressed=H.$isMousePressed=!1,H.$keepTextAreaAtCursor&&H.$moveTextAreaToCursor(),Q.$onCaptureMouseMove=Q.releaseMouse=null,J&&Q.onMouseEvent("mouseup",J),V.endOperation()}function L(){Q[Q.state]&&Q[Q.state](),Q.$mouseMoved=!1}var V=this.editor,H=this.editor.renderer,Q=(H.$isMousePressed=!0,this);if(T.isOldIE&&C.domEvent.type=="dblclick")return setTimeout(function(){$(C)});var U=function(J){Q.releaseMouse&&V.curOp.command.name&&V.curOp.selectionChanged&&(Q[Q.state+"End"]&&Q[Q.state+"End"](),Q.state="",Q.releaseMouse())},K=(V.on("beforeEndOperation",U),V.startOperation({command:{name:"mouse"}}),Q.$onCaptureMouseMove=P,Q.releaseMouse=k.capture(this.editor.container,P,$),setInterval(L,20))},D.prototype.cancelContextMenu=function(){var C=(function(x){x&&x.domEvent&&x.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",C),x&&x.domEvent&&k.stopEvent(x.domEvent))}).bind(this);setTimeout(C,10),this.editor.on("nativecontextmenu",C)},D.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},D);function D(C){function x(V){document.hasFocus&&document.hasFocus()&&(C.isFocused()||document.activeElement!=(C.textInput&&C.textInput.getElement()))||window.focus(),C.focus(),setTimeout(function(){C.isFocused()||C.focus()})}var P=this,$=(this.editor=C,new S(this),new I(this),new y(this),C.renderer.getMouseEventTarget()),L=(k.addListener($,"click",this.onMouseEvent.bind(this,"click"),C),k.addListener($,"mousemove",this.onMouseMove.bind(this,"mousemove"),C),k.addMultiMouseDownListener([$,C.renderer.scrollBarV&&C.renderer.scrollBarV.inner,C.renderer.scrollBarH&&C.renderer.scrollBarH.inner,C.textInput&&C.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",C),k.addMouseWheelListener(C.container,this.onMouseWheel.bind(this,"mousewheel"),C),_(C.container,C),C.renderer.$gutter);k.addListener(L,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),C),k.addListener(L,"click",this.onMouseEvent.bind(this,"gutterclick"),C),k.addListener(L,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),C),k.addListener(L,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),C),k.addListener($,"mousedown",x,C),k.addListener(L,"mousedown",x,C),T.isIE&&C.renderer.scrollBarV&&(k.addListener(C.renderer.scrollBarV.element,"mousedown",x,C),k.addListener(C.renderer.scrollBarH.element,"mousedown",x,C)),C.on("mousemove",function(V){var H,Q;P.state||P.$dragDelay||!P.$dragEnabled||(V=C.renderer.screenToTextCoordinates(V.x,V.y),H=C.session.selection.getRange(),Q=C.renderer,!H.isEmpty()&&H.insideStart(V.row,V.column)?Q.setCursorStyle("default"):Q.setCursorStyle(""))},C)}R.prototype.releaseMouse=null,A.defineOptions(R.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:T.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),m.MouseHandler=R}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(v,m,w){var k=v("../lib/dom");m.FoldHandler=function(T){T.on("click",function(S){var O=S.getDocumentPosition(),I=T.session,O=I.getFoldAt(O.row,O.column,1),O=(O&&(S.getAccelKey()?I.removeFold(O):I.expandFold(O),S.stop()),S.domEvent&&S.domEvent.target);O&&k.hasCssClass(O,"ace_inline_button")&&k.hasCssClass(O,"ace_toggle_wrap")&&(I.setOption("wrap",!I.getUseWrapMode()),T.renderer.scrollCursorIntoView())}),T.on("gutterclick",function(S){var I,O;T.renderer.$gutterLayer.getRegion(S)=="foldWidgets"&&(I=S.getDocumentPosition().row,(O=T.session).foldWidgets&&O.foldWidgets[I]&&T.session.onFoldWidgetClick(I,S),T.isFocused()||T.focus(),S.stop())}),T.on("gutterdblclick",function(S){var I,O,y;T.renderer.$gutterLayer.getRegion(S)=="foldWidgets"&&(y=S.getDocumentPosition().row,(O=(O=(I=T.session).getParentFoldRangeData(y,!0)).range||O.firstRange)&&(y=O.start.row,(y=I.getFoldAt(y,I.getLine(y).length,1))?I.removeFold(y):(I.addFold("...",O),T.renderer.scrollCursorIntoView({row:O.start.row,column:0}))),S.stop())})}}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(v,m,w){var k=v("../lib/keys"),T=v("../lib/event");function S(I){this.$editor=I,this.$data={editor:I},this.$handlers=[],this.setDefaultHandler(I.commands)}S.prototype.setDefaultHandler=function(I){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=I,this.addKeyboardHandler(I,0)},S.prototype.setKeyboardHandler=function(I){var O=this.$handlers;if(O[O.length-1]!=I){for(;O[O.length-1]&&O[O.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(O[O.length-1]);this.addKeyboardHandler(I,1)}},S.prototype.addKeyboardHandler=function(I,O){var y;I&&(typeof I!="function"||I.handleKeyboard||(I.handleKeyboard=I),(y=this.$handlers.indexOf(I))!=-1&&this.$handlers.splice(y,1),O==null?this.$handlers.push(I):this.$handlers.splice(O,0,I),y==-1)&&I.attach&&I.attach(this.$editor)},S.prototype.removeKeyboardHandler=function(I){var O=this.$handlers.indexOf(I);return O!=-1&&(this.$handlers.splice(O,1),I.detach&&I.detach(this.$editor),!0)},S.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},S.prototype.getStatusText=function(){var I=this.$data,O=I.editor;return this.$handlers.map(function(y){return y.getStatusText&&y.getStatusText(O,I)||""}).filter(Boolean).join(" ")},S.prototype.$callKeyboardHandlers=function(I,O,y,_){for(var A,R=!1,D=this.$editor.commands,C=this.$handlers.length;C--&&!((A=this.$handlers[C].handleKeyboard(this.$data,I,O,y,_))&&A.command&&((R=A.command=="null"||D.exec(A.command,this.$editor,A.args,_))&&_&&I!=-1&&A.passEvent!=1&&A.command.passEvent!=1&&T.stopEvent(_),R)););return R||I!=-1||(A={command:"insertstring"},R=D.exec("insertstring",this.$editor,O)),R&&this.$editor._signal&&this.$editor._signal("keyboardActivity",A),R},S.prototype.onCommandKey=function(I,O,y){var _=k.keyCodeToString(y);return this.$callKeyboardHandlers(O,_,y,I)},S.prototype.onTextInput=function(I){return this.$callKeyboardHandlers(-1,I)},m.KeyBinding=S}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(v,m,w){var k=0,T=0,S=!1,I=!1,O=!1,y=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],_=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],A=0,R=1,D=2,C=3,x=4,P=5,$=6,L=7,V=8,H=9,Q=10,U=11,K=12,J=13,ue=14,ee=15,N=16,q=17,G=18,ne=[G,G,G,G,G,G,G,G,G,$,P,$,V,P,G,G,G,G,G,G,G,G,G,G,G,G,G,G,P,P,P,$,V,x,x,U,U,U,x,x,x,x,x,Q,H,Q,H,H,D,D,D,D,D,D,D,D,D,D,H,x,x,x,x,x,x,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,x,x,x,x,x,x,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,x,x,x,x,G,G,G,G,G,G,P,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,H,x,U,U,U,U,x,x,x,x,A,x,x,G,x,x,U,U,D,D,x,A,x,x,x,D,A,x,x,x,x,x],le=[V,V,V,V,V,V,V,V,V,V,V,G,G,G,A,R,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,V,P,J,ue,ee,N,q,H,U,U,U,U,U,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,H,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,V];function oe(ae,be,ie,ce){var pe,X,Z,Y=k?_:y,se=0,fe=-1,me=null,Ae=null,Be=[];if(!ce)for(me=0,ce=[];me<ie;me++)ce[me]=de(ae[me]);for(T=k,O=I=S=!1,Ae=0;Ae<ie;Ae++){if(Z=se,Be[Ae]=pe=function(Qe,nt,st,Le){var Me,je,Ue,Te=nt[Le];switch(Te){case A:case R:S=!1;case x:case C:return Te;case D:return S?C:D;case L:return S=!0,R;case V:return x;case H:return Le<1||Le+1>=nt.length||(Me=st[Le-1])!=D&&Me!=C||(bt=nt[Le+1])!=D&&bt!=C?x:(bt=S?C:bt)==Me?bt:x;case Q:return(Me=0<Le?st[Le-1]:P)==D&&Le+1<nt.length&&nt[Le+1]==D?D:x;case U:if(0<Le&&st[Le-1]==D)return D;if(S)return x;for(Ue=Le+1,je=nt.length;Ue<je&&nt[Ue]==U;)Ue++;return Ue<je&&nt[Ue]==D?D:x;case K:for(je=nt.length,Ue=Le+1;Ue<je&&nt[Ue]==K;)Ue++;if(Ue<je){var bt=Qe[Le],bt=1425<=bt&&bt<=2303||bt==64286;if(Me=nt[Ue],bt&&(Me==R||Me==L))return R}return Le<1||(Me=nt[Le-1])==P?x:st[Le-1];case P:return I=!(S=!1),k;case $:return O=!0,x;case J:case ue:case N:case q:case ee:S=!1;case G:return x}}(ae,ce,Be,Ae),Z=240&(se=Y[Z][pe]),se&=15,be[Ae]=X=Y[se][5],0<Z){if(Z==16)for(me=fe;me<Ae;me++)be[me]=1;fe=-1}if(Y[se][6])fe==-1&&(fe=Ae);else if(-1<fe){for(me=fe;me<Ae;me++)be[me]=X;fe=-1}ce[Ae]==P&&(be[Ae]=0),T|=X}if(O){for(me=0;me<ie;me++)if(ce[me]==$){be[me]=k;for(var Ye=me-1;0<=Ye&&ce[Ye]==V;Ye--)be[Ye]=k}}}function ve(ae,be,ie){if(!(T<ae))if(ae!=1||k!=1||I)for(var ce,pe,X,Z,Y=ie.length,se=0;se<Y;){if(be[se]>=ae){for(ce=se+1;ce<Y&&be[ce]>=ae;)ce++;for(pe=se,X=ce-1;pe<X;pe++,X--)Z=ie[pe],ie[pe]=ie[X],ie[X]=Z;se=ce}se++}else ie.reverse()}function de(ae){var be=ae.charCodeAt(0),ie=be>>8;return ie==0?191<be?A:ne[be]:ie==5?/[\u0591-\u05f4]/.test(ae)?R:A:ie==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ae)?K:/[\u0660-\u0669\u066b-\u066c]/.test(ae)?C:be==1642?U:/[\u06f0-\u06f9]/.test(ae)?D:L:ie==32&&be<=8287?le[255&be]:ie==254&&65136<=be?L:x}m.L=A,m.R=R,m.EN=D,m.ON_R=3,m.AN=4,m.R_H=5,m.B=6,m.RLE=7,m.DOT="·",m.doBidiReorder=function(ae,be,ie){if(ae.length<2)return{};var ce=ae.split(""),pe=new Array(ce.length),X=new Array(ce.length),Z=[];k=ie?1:0,oe(ce,Z,ce.length,be);for(var Y=0;Y<pe.length;pe[Y]=Y,Y++);for(ve(2,Z,pe),ve(1,Z,pe),Y=0;Y<pe.length-1;Y++)be[Y]===C?Z[Y]=m.AN:Z[Y]===R&&(be[Y]>L&&be[Y]<J||be[Y]===x||be[Y]===G)?Z[Y]=m.ON_R:0<Y&&ce[Y-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(ce[Y])&&(Z[Y-1]=Z[Y]=m.R_H,Y++);for(ce[ce.length-1]===m.DOT&&(Z[ce.length-1]=m.B),ce[0]===""&&(Z[0]=m.RLE),Y=0;Y<pe.length;Y++)X[Y]=Z[pe[Y]];return{logicalFromVisual:pe,bidiLevels:X}},m.hasBidiCharacters=function(ae,be){for(var ie=!1,ce=0;ce<ae.length;ce++)be[ce]=de(ae.charAt(ce)),ie||be[ce]!=R&&be[ce]!=L&&be[ce]!=C||(ie=!0);return ie},m.getVisualFromLogicalIdx=function(ae,be){for(var ie=0;ie<be.logicalFromVisual.length;ie++)if(be.logicalFromVisual[ie]==ae)return ie;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(v,m,w){var k=v("./lib/bidiutil"),T=v("./lib/lang"),S=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/;function I(O){this.session=O,this.bidiMap={},this.currentRow=null,this.bidiUtil=k,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=S.test(O.getValue())}I.prototype.isBidiRow=function(O,y,_){return!!this.seenBidi&&(O!==this.currentRow&&(this.currentRow=O,this.updateRowLine(y,_),this.updateBidiMap()),this.bidiMap.bidiLevels)},I.prototype.onChange=function(O){this.seenBidi?this.currentRow=null:O.action=="insert"&&S.test(O.lines.join(`
|
|
`))&&(this.seenBidi=!0,this.currentRow=null)},I.prototype.getDocumentRow=function(){var O=0,y=this.session.$screenRowCache;return O=y.length&&0<=(y=this.session.$getRowCacheIndex(y,this.currentRow))?this.session.$docRowCache[y]:O},I.prototype.getSplitIndex=function(){var O=0,y=this.session.$screenRowCache;if(y.length)for(var _,A=this.session.$getRowCacheIndex(y,this.currentRow);0<this.currentRow-O&&(_=this.session.$getRowCacheIndex(y,this.currentRow-O-1))===A;)A=_,O++;else O=this.currentRow;return O},I.prototype.updateRowLine=function(O,y){var _,A=(O=O===void 0?this.getDocumentRow():O)===this.session.getLength()-1?this.EOF:this.EOL,R=(this.wrapIndent=0,this.line=this.session.getLine(O),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,(!this.session.$useWrapMode||(O=this.session.$wrapData[O])&&(0<(y=y===void 0?this.getSplitIndex():y)&&O.length?(this.wrapIndent=O.indent,this.wrapOffset=this.wrapIndent*this.charWidths[k.L],this.line=y<O.length?this.line.substring(O[y-1],O[y]):this.line.substring(O[O.length-1])):this.line=this.line.substring(0,O[y]),y==O.length))&&(this.line+=this.showInvisibles?A:k.DOT),this.session),D=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(C,x){return C===" "||R.isFullWidth(C.charCodeAt(0))?(_=C===" "?R.getScreenTabSize(x+D):2,D+=_-1,T.stringRepeat(k.DOT,_)):C}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==k.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},I.prototype.updateBidiMap=function(){var O=[];k.hasBidiCharacters(this.line,O)||this.isRtlDir?this.bidiMap=k.doBidiReorder(this.line,O,this.isRtlDir):this.bidiMap={}},I.prototype.markAsDirty=function(){this.currentRow=null},I.prototype.updateCharacterWidths=function(O){var y;this.characterWidth!==O.$characterSize.width&&(this.fontMetrics=O,y=this.characterWidth=O.$characterSize.width,O=O.$measureCharWidth("ה"),this.charWidths[k.L]=this.charWidths[k.EN]=this.charWidths[k.ON_R]=y,this.charWidths[k.R]=this.charWidths[k.AN]=O,this.charWidths[k.R_H]=.45*O,this.charWidths[k.B]=this.charWidths[k.RLE]=0,this.currentRow=null)},I.prototype.setShowInvisibles=function(O){this.showInvisibles=O,this.currentRow=null},I.prototype.setEolChar=function(O){this.EOL=O},I.prototype.setContentWidth=function(O){this.contentWidth=O},I.prototype.isRtlLine=function(O){return!!this.$isRtl||(O!=null?this.session.getLine(O).charAt(0)==this.RLE:this.isRtlDir)},I.prototype.setRtlDirection=function(O,y){for(var _=O.getCursorPosition(),A=O.selection.getSelectionAnchor().row;A<=_.row;A++)y||O.session.getLine(A).charAt(0)!==O.session.$bidiHandler.RLE?y&&O.session.getLine(A).charAt(0)!==O.session.$bidiHandler.RLE&&O.session.doc.insert({column:0,row:A},O.session.$bidiHandler.RLE):O.session.doc.removeInLine(A,0,1)},I.prototype.getPosLeft=function(O){O-=this.wrapIndent;var y=this.line.charAt(0)===this.RLE?1:0,_=y<O?this.session.getOverwrite()?O:O-1:y,A=k.getVisualFromLogicalIdx(_,this.bidiMap),R=this.bidiMap.bidiLevels,D=0;!this.session.getOverwrite()&&O<=y&&R[A]%2!=0&&A++;for(var C=0;C<A;C++)D+=this.charWidths[R[C]];return!this.session.getOverwrite()&&y<O&&R[A]%2==0&&(D+=this.charWidths[R[A]]),this.wrapIndent&&(D+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(D+=this.rtlLineOffset),D},I.prototype.getSelections=function(O,y){var _,A=this.bidiMap,R=A.bidiLevels,D=[],C=0,x=Math.min(O,y)-this.wrapIndent,P=Math.max(O,y)-this.wrapIndent,$=!1,L=!1,V=0;this.wrapIndent&&(C+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var H,Q=0;Q<R.length;Q++)H=A.logicalFromVisual[Q],_=R[Q],($=x<=H&&H<P)&&!L?V=C:!$&&L&&D.push({left:V,width:C-V}),C+=this.charWidths[_],L=$;if($&&Q===R.length&&D.push({left:V,width:C-V}),this.isRtlDir)for(var U=0;U<D.length;U++)D[U].left+=this.rtlLineOffset;return D},I.prototype.offsetToCol=function(_){this.isRtlDir&&(_-=this.rtlLineOffset);var y=0,_=Math.max(_,0),A=0,R=0,D=this.bidiMap.bidiLevels,C=this.charWidths[D[R]];for(this.wrapIndent&&(_-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);A+C/2<_;){if(A+=C,R===D.length-1){C=0;break}C=this.charWidths[D[++R]]}return(y=0<R&&D[R-1]%2!=0&&D[R]%2==0?(_<A&&R--,this.bidiMap.logicalFromVisual[R]):0<R&&D[R-1]%2==0&&D[R]%2!=0?1+(A<_?this.bidiMap.logicalFromVisual[R]:this.bidiMap.logicalFromVisual[R-1]):this.isRtlDir&&R===D.length-1&&C===0&&D[R-1]%2==0||!this.isRtlDir&&R===0&&D[R]%2!=0?1+this.bidiMap.logicalFromVisual[R]:(0<R&&D[R-1]%2!=0&&C!==0&&R--,this.bidiMap.logicalFromVisual[R]))===0&&this.isRtlDir&&y++,y+this.wrapIndent},m.BidiHandler=I}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(O,m,w){var k=O("./lib/oop"),T=O("./lib/lang"),S=O("./lib/event_emitter").EventEmitter,I=O("./range").Range,O=(y.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},y.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},y.prototype.getCursor=function(){return this.lead.getPosition()},y.prototype.setAnchor=function(_,A){this.$isEmpty=!1,this.anchor.setPosition(_,A)},y.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},y.prototype.getSelectionLead=function(){return this.lead.getPosition()},y.prototype.isBackwards=function(){var _=this.anchor,A=this.lead;return _.row>A.row||_.row==A.row&&_.column>A.column},y.prototype.getRange=function(){var _=this.anchor,A=this.lead;return this.$isEmpty?I.fromPoints(A,A):this.isBackwards()?I.fromPoints(A,_):I.fromPoints(_,A)},y.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},y.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},y.prototype.setRange=function(_,D){var R=D?_.end:_.start,D=D?_.start:_.end;this.$setSelection(R.row,R.column,D.row,D.column)},y.prototype.$setSelection=function(_,A,R,D){var C,x;!this.$silent&&(C=this.$isEmpty,x=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(_,A),this.cursor.setPosition(R,D),this.$isEmpty=!I.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),this.$cursorChanged||this.$anchorChanged||C!=this.$isEmpty||x)&&this._emit("changeSelection")},y.prototype.$moveSelection=function(_){var A=this.lead;this.$isEmpty&&this.setSelectionAnchor(A.row,A.column),_.call(this)},y.prototype.selectTo=function(_,A){this.$moveSelection(function(){this.moveCursorTo(_,A)})},y.prototype.selectToPosition=function(_){this.$moveSelection(function(){this.moveCursorToPosition(_)})},y.prototype.moveTo=function(_,A){this.clearSelection(),this.moveCursorTo(_,A)},y.prototype.moveToPosition=function(_){this.clearSelection(),this.moveCursorToPosition(_)},y.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},y.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},y.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},y.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},y.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},y.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},y.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},y.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},y.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},y.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},y.prototype.getWordRange=function(_,A){var R;return A===void 0&&(_=(R=_||this.lead).row,A=R.column),this.session.getWordRange(_,A)},y.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},y.prototype.selectAWord=function(){var _=this.getCursor(),_=this.session.getAWordRange(_.row,_.column);this.setSelectionRange(_)},y.prototype.getLineRange=function(R,A){var R=typeof R=="number"?R:this.lead.row,D=this.session.getFoldLine(R),D=D?(R=D.start.row,D.end.row):R;return A===!0?new I(R,0,D,this.session.getLine(D).length):new I(R,0,D+1,0)},y.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},y.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},y.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},y.prototype.wouldMoveIntoSoftTab=function(_,A,R){var D=_.column,C=_.column+A;return R<0&&(D=_.column-A,C=_.column),this.session.isTabStop(_)&&this.doc.getLine(_.row).slice(D,C).split(" ").length-1==A},y.prototype.moveCursorLeft=function(){var _,A=this.lead.getPosition();(_=this.session.getFoldAt(A.row,A.column,-1))?this.moveCursorTo(_.start.row,_.start.column):A.column===0?0<A.row&&this.moveCursorTo(A.row-1,this.doc.getLine(A.row-1).length):(_=this.session.getTabSize(),this.wouldMoveIntoSoftTab(A,_,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-_):this.moveCursorBy(0,-1))},y.prototype.moveCursorRight=function(){var _,A=this.lead.getPosition();(_=this.session.getFoldAt(A.row,A.column,1))?this.moveCursorTo(_.end.row,_.end.column):this.lead.column==this.doc.getLine(this.lead.row).length?this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0):(_=this.session.getTabSize(),A=this.lead,this.wouldMoveIntoSoftTab(A,_,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,_):this.moveCursorBy(0,1))},y.prototype.moveCursorLineStart=function(){var R=this.lead.row,_=this.lead.column,A=this.session.documentToScreenRow(R,_),A=this.session.screenToDocumentPosition(A,0),R=this.session.getDisplayLine(R,null,A.row,A.column).match(/^\s*/);R[0].length==_||this.session.$useEmacsStyleLineStart||(A.column+=R[0].length),this.moveCursorToPosition(A)},y.prototype.moveCursorLineEnd=function(){var _,A=this.lead,A=this.session.getDocumentLastRowColumnPosition(A.row,A.column);this.lead.column==A.column&&(_=this.session.getLine(A.row),A.column==_.length)&&0<(_=_.search(/\s+$/))&&(A.column=_),this.moveCursorTo(A.row,A.column)},y.prototype.moveCursorFileEnd=function(){var _=this.doc.getLength()-1,A=this.doc.getLine(_).length;this.moveCursorTo(_,A)},y.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},y.prototype.moveCursorLongWordRight=function(){var _=this.lead.row,A=this.lead.column,R=this.doc.getLine(_),D=R.substring(A),C=(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.getFoldAt(_,A,1));C?this.moveCursorTo(C.end.row,C.end.column):(this.session.nonTokenRe.exec(D)&&(A+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,D=R.substring(A)),A>=R.length?(this.moveCursorTo(_,R.length),this.moveCursorRight(),_<this.doc.getLength()-1&&this.moveCursorWordRight()):(this.session.tokenRe.exec(D)&&(A+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(_,A)))},y.prototype.moveCursorLongWordLeft=function(){var _,A=this.lead.row,R=this.lead.column;(_=this.session.getFoldAt(A,R,-1))?this.moveCursorTo(_.start.row,_.start.column):((_=this.session.getFoldStringAt(A,R,-1))==null&&(_=this.doc.getLine(A).substring(0,R)),_=T.stringReverse(_),this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(_)&&(R-=this.session.nonTokenRe.lastIndex,_=_.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),R<=0?(this.moveCursorTo(A,0),this.moveCursorLeft(),0<A&&this.moveCursorWordLeft()):(this.session.tokenRe.exec(_)&&(R-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(A,R)))},y.prototype.$shortWordEndIndex=function(_){var A,R=0,D=/\s/,C=this.session.tokenRe;if(C.lastIndex=0,this.session.tokenRe.exec(_))R=this.session.tokenRe.lastIndex;else{for(;(A=_[R])&&D.test(A);)R++;if(R<1){for(C.lastIndex=0;(A=_[R])&&!C.test(A);)if(C.lastIndex=0,R++,D.test(A)){if(2<R){R--;break}for(;(A=_[R])&&D.test(A);)R++;if(2<R)break}}}return C.lastIndex=0,R},y.prototype.moveCursorShortWordRight=function(){var _=this.lead.row,A=this.lead.column,R=this.doc.getLine(_),D=R.substring(A),C=this.session.getFoldAt(_,A,1);if(C)return this.moveCursorTo(C.end.row,C.end.column);if(A==R.length){for(var x=this.doc.getLength();D=this.doc.getLine(++_),_<x&&/^\s*$/.test(D););/^\s+/.test(D)||(D=""),A=0}C=this.$shortWordEndIndex(D),this.moveCursorTo(_,A+C)},y.prototype.moveCursorShortWordLeft=function(){var _=this.lead.row,A=this.lead.column;if(D=this.session.getFoldAt(_,A,-1))return this.moveCursorTo(D.start.row,D.start.column);var R=this.session.getLine(_).substring(0,A);if(A===0){for(;R=this.doc.getLine(--_),0<_&&/^\s*$/.test(R););A=R.length,/\s+$/.test(R)||(R="")}var D=T.stringReverse(R),D=this.$shortWordEndIndex(D);return this.moveCursorTo(_,A-D)},y.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},y.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},y.prototype.moveCursorBy=function(_,A){var R,D=this.session.documentToScreenPosition(this.lead.row,this.lead.column),C=(A===0&&(_!==0&&(this.session.$bidiHandler.isBidiRow(D.row,this.lead.row)?(R=this.session.$bidiHandler.getPosLeft(D.column),D.column=Math.round(R/this.session.$bidiHandler.charWidths[0])):R=D.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?D.column=this.$desiredColumn:this.$desiredColumn=D.column),_!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]&&(C=this.session.lineWidgets[this.lead.row],_<0?_-=C.rowsAbove||0:0<_&&(_+=C.rowCount-(C.rowsAbove||0))),this.session.screenToDocumentPosition(D.row+_,D.column,R));_!==0&&A===0&&C.row===this.lead.row&&(C.column,this.lead.column),this.moveCursorTo(C.row,C.column+A,A===0)},y.prototype.moveCursorToPosition=function(_){this.moveCursorTo(_.row,_.column)},y.prototype.moveCursorTo=function(_,A,R){var D=this.session.getFoldAt(_,A,1),D=(D&&(_=D.start.row,A=D.start.column),this.$keepDesiredColumnOnChange=!0,this.session.getLine(_));/[\uDC00-\uDFFF]/.test(D.charAt(A))&&D.charAt(A-1)&&(this.lead.row==_&&this.lead.column==A+1?A-=1:A+=1),this.lead.setPosition(_,A),this.$keepDesiredColumnOnChange=!1,R||(this.$desiredColumn=null)},y.prototype.moveCursorToScreen=function(_,A,R){_=this.session.screenToDocumentPosition(_,A),this.moveCursorTo(_.row,_.column,R)},y.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},y.prototype.fromOrientedRange=function(_){this.setSelectionRange(_,_.cursor==_.start),this.$desiredColumn=_.desiredColumn||this.$desiredColumn},y.prototype.toOrientedRange=function(_){var A=this.getRange();return _?(_.start.column=A.start.column,_.start.row=A.start.row,_.end.column=A.end.column,_.end.row=A.end.row):_=A,_.cursor=this.isBackwards()?_.start:_.end,_.desiredColumn=this.$desiredColumn,_},y.prototype.getRangeOfMovements=function(_){var A=this.getCursor();try{_(this);var R=this.getCursor();return I.fromPoints(A,R)}catch{return I.fromPoints(A,A)}finally{this.moveCursorToPosition(A)}},y.prototype.toJSON=function(){var _;return this.rangeCount?_=this.ranges.map(function(A){var R=A.clone();return R.isBackwards=A.cursor==A.start,R}):(_=this.getRange()).isBackwards=this.isBackwards(),_},y.prototype.fromJSON=function(_){if(_.start==null){if(this.rangeList&&1<_.length){this.toSingleRange(_[0]);for(var A=_.length;A--;){var R=I.fromPoints(_[A].start,_[A].end);_[A].isBackwards&&(R.cursor=R.start),this.addRange(R,!0)}return}_=_[0]}this.rangeList&&this.toSingleRange(_),this.setSelectionRange(_,_.isBackwards)},y.prototype.isEqual=function(_){if((_.length||this.rangeCount)&&_.length!=this.rangeCount)return!1;if(!_.length||!this.ranges)return this.getRange().isEqual(_);for(var A=this.ranges.length;A--;)if(!this.ranges[A].isEqual(_[A]))return!1;return!0},y);function y(_){this.session=_,this.doc=_.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var A=this;this.cursor.on("change",function(R){A.$cursorChanged=!0,A.$silent||A._emit("changeCursor"),A.$isEmpty||A.$silent||A._emit("changeSelection"),A.$keepDesiredColumnOnChange||R.old.column==R.value.column||(A.$desiredColumn=null)}),this.anchor.on("change",function(){A.$anchorChanged=!0,A.$isEmpty||A.$silent||A._emit("changeSelection")})}O.prototype.setSelectionAnchor=O.prototype.setAnchor,O.prototype.getSelectionAnchor=O.prototype.getAnchor,O.prototype.setSelectionRange=O.prototype.setRange,k.implement(O.prototype,S),m.Selection=O}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(k,m,w){var k=k("./lib/report_error").reportError,T=2e3,S=(I.prototype.$setMaxTokenCount=function(O){T=0|O},I.prototype.$applyToken=function(O){var y=this.splitRegex.exec(O).slice(1),_=this.token.apply(this,y);if(typeof _=="string")return[{type:_,value:O}];for(var A=[],R=0,D=_.length;R<D;R++)y[R]&&(A[A.length]={type:_[R],value:y[R]});return A},I.prototype.$arrayTokens=function(O){if(!O)return[];var y=this.splitRegex.exec(O);if(!y)return"text";for(var _=[],A=this.tokenArray,R=0,D=A.length;R<D;R++)y[R+1]&&(_[_.length]={type:A[R],value:y[R+1]});return _},I.prototype.removeCapturingGroups=function(O){return O.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(y,_){return _?"(?:":y})},I.prototype.createSplitterRegexp=function(O,y){var _,A,R;return(O=(O=O.indexOf("(?=")!=-1&&(_=0,A=!1,R={},O.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(D,C,x,P,$,L){return A?A=$!="]":$?A=!0:P?(_==R.stack&&(R.end=L+1,R.stack=-1),_--):x&&(_++,x.length!=1)&&(R.stack=_,R.start=L),D}),R.end!=null)&&/^\)*$/.test(O.substr(R.end))?O.substring(0,R.start)+O.substr(R.end):O).charAt(0)!="^"?"^"+O:O).charAt(O.length-1)!="$"&&(O+="$"),new RegExp(O,(y||"").replace("g",""))},I.prototype.getLineTokens=function(O,y){y&&typeof y!="string"?(y=(_=y.slice(0))[0])==="#tmp"&&(_.shift(),y=_.shift()):_=[];for(var _,A,R=y||"start",D=(D=this.states[R])||this.states[R="start"],C=this.matchMappings[R],x=this.regExps[R],P=[],$=x.lastIndex=0,L=0,V={type:null,value:""};A=x.exec(O);){var H,Q=C.defaultToken,U=null,K=A[0],J=x.lastIndex;J-K.length>$&&(H=O.substring($,J-K.length),V.type==Q?V.value+=H:(V.type&&P.push(V),V={type:Q,value:H}));for(var ue=0;ue<A.length-2;ue++)if(A[ue+1]!==void 0){Q=(U=D[C[ue]]).onMatch?U.onMatch(K,R,_,O):U.token,U.next&&(R=typeof U.next=="string"?U.next:U.next(R,_),(D=this.states[R])||(this.reportError("state doesn't exist",R),D=this.states[R="start"]),C=this.matchMappings[R],(x=this.regExps[R]).lastIndex=$=J),U.consumeLineEnd&&($=J);break}if(K){if(typeof Q=="string")U&&U.merge===!1||V.type!==Q?(V.type&&P.push(V),V={type:Q,value:K}):V.value+=K;else if(Q)for(V.type&&P.push(V),V={type:null,value:""},ue=0;ue<Q.length;ue++)P.push(Q[ue])}if($==O.length)break;if($=J,L++>T){for(L>2*O.length&&this.reportError("infinite loop with in ace tokenizer",{startState:y,line:O});$<O.length;)V.type&&P.push(V),V={value:O.substring($,$+=500),type:"overflow"};R="start",_=[];break}}return V.type&&P.push(V),1<_.length&&_[0]!==R&&_.unshift("#tmp",R),{tokens:P,state:_.length?_:R}},I);function I(O){for(var y in this.states=O,this.regExps={},this.matchMappings={},this.states){for(var _=this.states[y],A=[],R=0,D=this.matchMappings[y]={defaultToken:"text"},C="g",x=[],P=0;P<_.length;P++){var $,L,V=_[P];V.defaultToken&&(D.defaultToken=V.defaultToken),V.caseInsensitive&&C.indexOf("i")===-1&&(C+="i"),V.unicode&&C.indexOf("u")===-1&&(C+="u"),V.regex==null||(V.regex instanceof RegExp&&(V.regex=V.regex.toString().slice(1,-1)),$=V.regex,L=new RegExp("(?:("+$+")|(.))").exec("a").length-2,Array.isArray(V.token)?V.token.length==1||L==1?V.token=V.token[0]:L-1!=V.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:V,groupCount:L-1}),V.token=V.token[0]):(V.tokenArray=V.token,V.token=null,V.onMatch=this.$arrayTokens):typeof V.token!="function"||V.onMatch||(V.onMatch=1<L?this.$applyToken:V.token),1<L&&($=/\\\d/.test(V.regex)?V.regex.replace(/\\([0-9]+)/g,function(H,Q){return"\\"+(parseInt(Q,10)+R+1)}):(L=1,this.removeCapturingGroups(V.regex)),V.splitRegex||typeof V.token=="string"||x.push(V)),D[R]=P,R+=L,A.push($),V.onMatch)||(V.onMatch=null)}A.length||(D[0]=0,A.push("$")),x.forEach(function(H){H.splitRegex=this.createSplitterRegexp(H.regex,C)},this),this.regExps[y]=new RegExp("("+A.join(")|(")+")|($)",C)}}S.prototype.reportError=k,m.Tokenizer=S}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(v,m,w){function k(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}}var T=v("../lib/deep_copy").deepCopy;(function(){this.addRules=function(O,y){if(y)for(var _ in O){for(var A=O[_],R=0;R<A.length;R++){var D=A[R];(D.next||D.onMatch)&&(typeof D.next=="string"&&D.next.indexOf(y)!==0&&(D.next=y+D.next),D.nextState)&&D.nextState.indexOf(y)!==0&&(D.nextState=y+D.nextState)}this.$rules[y+_]=A}else for(var _ in O)this.$rules[_]=O[_]},this.getRules=function(){return this.$rules},this.embedRules=function(O,y,_,A,R){if(O=typeof O=="function"?new O().getRules():O,A)for(var D=0;D<A.length;D++)A[D]=y+A[D];else for(var C in A=[],O)A.push(y+C);if(this.addRules(O,y),_)for(var x=Array.prototype[R?"push":"unshift"],D=0;D<A.length;D++)x.apply(this.$rules[A[D]],T(_));this.$embeds||(this.$embeds=[]),this.$embeds.push(y)},this.getEmbeds=function(){return this.$embeds};function S(O,y){return O=="start"&&!y.length||y.unshift(this.nextState,O),this.nextState}function I(O,y){return y.shift(),y.shift()||"start"}this.normalizeRules=function(){var O=0,y=this.$rules;Object.keys(y).forEach(function _(A){var R=y[A];R.processed=!0;for(var D=0;D<R.length;D++){var C=R[D],x=null,P=(Array.isArray(C)&&(x=C,C={}),!C.regex&&C.start&&(C.regex=C.start,C.next||(C.next=[]),C.next.push({defaultToken:C.token},{token:C.token+".end",regex:C.end||C.start,next:"pop"}),C.token=C.token+".start",C.push=!0),C.next||C.push);if(P&&Array.isArray(P)?((L=C.stateName)||(typeof(L=C.token)!="string"&&(L=L[0]||""),y[L]&&(L+=O++)),y[L]=P,_(C.next=L)):P=="pop"&&(C.next=I),C.push&&(C.nextState=C.next||C.push,C.next=S,delete C.push),C.rules)for(var $ in C.rules)y[$]?y[$].push&&y[$].push.apply(y[$],C.rules[$]):y[$]=C.rules[$];var L=typeof C=="string"?C:C.include;L&&(L==="$self"&&(L="start"),x=Array.isArray(L)?L.map(function(V){return y[V]}):y[L]),x&&(P=[D,1].concat(x),C.noEscape&&(P=P.filter(function(V){return!V.next})),R.splice.apply(R,P),D--),C.keywordMap&&(C.token=this.createKeywordMapper(C.keywordMap,C.defaultToken||"text",C.caseInsensitive),delete C.defaultToken)}},this)},this.createKeywordMapper=function(O,y,_,A){var R=Object.create(null);return this.$keywordList=[],Object.keys(O).forEach(function(D){for(var C=O[D].split(A||"|"),x=C.length;x--;){var P=C[x];this.$keywordList.push(P),_&&(P=P.toLowerCase()),R[P]=D}},this),O=null,_?function(D){return R[D.toLowerCase()]||y}:function(D){return R[D]||y}},this.getKeywords=function(){return this.$keywords}}).call(k.prototype),m.TextHighlightRules=k}),ace.define("ace/mode/behaviour",["require","exports","module"],function(v,m,w){function k(){this.$behaviours={}}(function(){this.add=function(T,S,I){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[T]:this.$behaviours[T]={}}this.$behaviours[T][S]=I},this.addBehaviours=function(T){for(var S in T)for(var I in T[S])this.add(S,I,T[S][I])},this.remove=function(T){this.$behaviours&&this.$behaviours[T]&&delete this.$behaviours[T]},this.inherit=function(T,S){T=(typeof T=="function"?new T:T).getBehaviours(S),this.addBehaviours(T)},this.getBehaviours=function(T){if(T){for(var S={},I=0;I<T.length;I++)this.$behaviours[T[I]]&&(S[T[I]]=this.$behaviours[T[I]]);return S}return this.$behaviours}}).call(k.prototype),m.Behaviour=k}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(v,m,w){var k=v("./range").Range;function T(S,I,O){this.$session=S,this.$row=I,this.$rowTokens=S.getTokens(I),S=S.getTokenAt(I,O),this.$tokenIndex=S?S.index:-1}T.prototype.stepBackward=function(){for(--this.$tokenIndex;this.$tokenIndex<0;){if(--this.$row,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},T.prototype.stepForward=function(){var S;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,S=S||this.$session.getLength(),this.$row>=S)return this.$row=S-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},T.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},T.prototype.getCurrentTokenRow=function(){return this.$row},T.prototype.getCurrentTokenColumn=function(){var S=this.$rowTokens,I=this.$tokenIndex,O=S[I].start;if(O===void 0)for(O=0;0<I;)O+=S[--I].value.length;return O},T.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},T.prototype.getCurrentTokenRange=function(){var S=this.$rowTokens[this.$tokenIndex],I=this.getCurrentTokenColumn();return new k(this.$row,I,this.$row,I+S.value.length)},m.TokenIterator=T}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(v,m,w){function k(P){var $=-1;if((C=P.multiSelect&&($=P.selection.index,C.rangeCount!=P.multiSelect.rangeCount)?{rangeCount:P.multiSelect.rangeCount}:C)[$])return I=C[$];I=C[$]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}}function T(P,$,L,V){var H=P.end.row-P.start.row;return{text:L+$+V,selection:[0,P.start.column+1,H,P.end.column+(H?0:1)]}}function S(P){P=P||{},this.add("braces","insertion",function($,L,V,H,Q){var U=V.getCursorPosition(),K=H.doc.getLine(U.row);if(Q=="{")return k(V),ue=V.getSelectionRange(),(ee=H.doc.getTextRange(ue))!==""&&ee!=="{"&&V.getWrapBehavioursEnabled()?T(ue,ee,"{","}"):S.isSaneInsertion(V,H)?/[\]\}\)]/.test(K[U.column])||V.inMultiSelectMode||P.braces?(S.recordAutoInsert(V,H,"}"),{text:"{}",selection:[1,1]}):(S.recordMaybeInsert(V,H,"{"),{text:"{",selection:[1,1]}):void 0;if(Q=="}"){k(V);var J=K.substring(U.column,U.column+1);if(J=="}"&&H.$findOpeningBracket("}",{column:U.column+1,row:U.row})!==null&&S.isAutoInsertedClosing(U,K,Q))return S.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if(Q==`
|
|
`||Q==`\r
|
|
`){k(V);var ue="";if(S.isMaybeInsertedClosing(U,K)&&(ue=A.stringRepeat("}",I.maybeInsertedBrackets),S.clearMaybeInsertedClosing()),(J=K.substring(U.column,U.column+1))==="}"){var ee=H.findMatchingBracket({row:U.row,column:U.column+1},"}");if(!ee)return null;var N=this.$getIndent(H.getLine(ee.row))}else{if(!ue)return void S.clearMaybeInsertedClosing();N=this.$getIndent(K)}return Q=N+H.getTabString(),{text:`
|
|
`+Q+`
|
|
`+N+ue,selection:[1,Q.length,1,Q.length]}}S.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function($,L,V,H,Q){var U=H.doc.getTextRange(Q);if(!Q.isMultiLine()&&U=="{"){if(k(V),H.doc.getLine(Q.start.row).substring(Q.end.column,Q.end.column+1)=="}")return Q.end.column++,Q;I.maybeInsertedBrackets--}}),this.add("parens","insertion",function($,L,V,H,Q){if(Q=="(")return k(V),U=V.getSelectionRange(),(K=H.doc.getTextRange(U))!==""&&V.getWrapBehavioursEnabled()?T(U,K,"(",")"):S.isSaneInsertion(V,H)?(S.recordAutoInsert(V,H,")"),{text:"()",selection:[1,1]}):void 0;if(Q==")"){k(V);var U=V.getCursorPosition(),K=H.doc.getLine(U.row),V=K.substring(U.column,U.column+1);if(V==")"&&H.$findOpeningBracket(")",{column:U.column+1,row:U.row})!==null&&S.isAutoInsertedClosing(U,K,Q))return S.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function($,L,V,H,Q){var U=H.doc.getTextRange(Q);if(!Q.isMultiLine()&&U=="("&&(k(V),H.doc.getLine(Q.start.row).substring(Q.start.column+1,Q.start.column+2)==")"))return Q.end.column++,Q}),this.add("brackets","insertion",function($,L,V,H,Q){if(Q=="[")return k(V),U=V.getSelectionRange(),(K=H.doc.getTextRange(U))!==""&&V.getWrapBehavioursEnabled()?T(U,K,"[","]"):S.isSaneInsertion(V,H)?(S.recordAutoInsert(V,H,"]"),{text:"[]",selection:[1,1]}):void 0;if(Q=="]"){k(V);var U=V.getCursorPosition(),K=H.doc.getLine(U.row),V=K.substring(U.column,U.column+1);if(V=="]"&&H.$findOpeningBracket("]",{column:U.column+1,row:U.row})!==null&&S.isAutoInsertedClosing(U,K,Q))return S.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function($,L,V,H,Q){var U=H.doc.getTextRange(Q);if(!Q.isMultiLine()&&U=="["&&(k(V),H.doc.getLine(Q.start.row).substring(Q.start.column+1,Q.start.column+2)=="]"))return Q.end.column++,Q}),this.add("string_dquotes","insertion",function($,L,V,H,Q){var U=H.$mode.$quotes||x;if(Q.length==1&&U[Q]&&(!this.lineCommentStart||this.lineCommentStart.indexOf(Q)==-1)){k(V);var K=V.getSelectionRange(),J=H.doc.getTextRange(K);if(!(J===""||J.length==1&&U[J])&&V.getWrapBehavioursEnabled())return T(K,J,Q,Q);if(!J){var U=V.getCursorPosition(),K=H.doc.getLine(U.row),J=K.substring(U.column-1,U.column),V=K.substring(U.column,U.column+1),N=H.getTokenAt(U.row,U.column),ue=H.getTokenAt(U.row,U.column+1);if(J=="\\"&&N&&/escape/.test(N.type))return null;var ee,N=N&&/string|escape/.test(N.type),q=!ue||/string|escape/.test(ue.type);if(V==Q)(ee=N!==q)&&/string\.end/.test(ue.type)&&(ee=!1);else{if(N&&!q||N&&q||(ue=H.$mode.tokenRe,N=(ue.lastIndex=0,ue.test(J)),q=(ue.lastIndex=0,ue.test(V)),H=H.$mode.$pairQuotesAfter,!(H&&H[Q]&&H[Q].test(J))&&N||q)||V&&!/[\s;,.})\]\\]/.test(V)||(H=K[U.column-2],J==Q&&(H==Q||ue.test(H))))return null;ee=!0}return{text:ee?Q+Q:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function($,L,V,H,Q){var U=H.$mode.$quotes||x,K=H.doc.getTextRange(Q);if(!Q.isMultiLine()&&U.hasOwnProperty(K)&&(k(V),H.doc.getLine(Q.start.row).substring(Q.start.column+1,Q.start.column+2)==K))return Q.end.column++,Q}),P.closeDocComment!==!1&&this.add("doc comment end","insertion",function($,L,V,H,Q){var U;if($==="doc-start"&&(Q===`
|
|
`||Q===`\r
|
|
`)&&V.selection.isEmpty())return $=V.getCursorPosition(),V=H.doc.getLine($.row),H=H.doc.getLine($.row+1),U=this.$getIndent(V),/\s*\*/.test(H)?/^\s*\*/.test(V)?{text:Q+U+"* ",selection:[1,3+U.length,1,3+U.length]}:{text:Q+U+" * ",selection:[1,3+U.length,1,3+U.length]}:/\/\*\*/.test(V.substring(0,$.column))?{text:Q+U+" * "+Q+" "+U+"*/",selection:[1,4+U.length,1,4+U.length]}:void 0})}var I,O=v("../../lib/oop"),y=v("../behaviour").Behaviour,_=v("../../token_iterator").TokenIterator,A=v("../../lib/lang"),R=["text","paren.rparen","rparen","paren","punctuation.operator"],D=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],C={},x={'"':'"',"'":"'"};S.isSaneInsertion=function(P,$){var L=P.getCursorPosition(),V=new _($,L.row,L.column);if(!this.$matchTokenType(V.getCurrentToken()||"text",R)){if(/[)}\]]/.test(P.session.getLine(L.row)[L.column]))return!0;if(P=new _($,L.row,L.column+1),!this.$matchTokenType(P.getCurrentToken()||"text",R))return!1}return V.stepForward(),V.getCurrentTokenRow()!==L.row||this.$matchTokenType(V.getCurrentToken()||"text",D)},S.$matchTokenType=function(P,$){return-1<$.indexOf(P.type||P)},S.recordAutoInsert=function(P,$,L){P=P.getCursorPosition(),$=$.doc.getLine(P.row),this.isAutoInsertedClosing(P,$,I.autoInsertedLineEnd[0])||(I.autoInsertedBrackets=0),I.autoInsertedRow=P.row,I.autoInsertedLineEnd=L+$.substr(P.column),I.autoInsertedBrackets++},S.recordMaybeInsert=function(P,$,L){P=P.getCursorPosition(),$=$.doc.getLine(P.row),this.isMaybeInsertedClosing(P,$)||(I.maybeInsertedBrackets=0),I.maybeInsertedRow=P.row,I.maybeInsertedLineStart=$.substr(0,P.column)+L,I.maybeInsertedLineEnd=$.substr(P.column),I.maybeInsertedBrackets++},S.isAutoInsertedClosing=function(P,$,L){return 0<I.autoInsertedBrackets&&P.row===I.autoInsertedRow&&L===I.autoInsertedLineEnd[0]&&$.substr(P.column)===I.autoInsertedLineEnd},S.isMaybeInsertedClosing=function(P,$){return 0<I.maybeInsertedBrackets&&P.row===I.maybeInsertedRow&&$.substr(P.column)===I.maybeInsertedLineEnd&&$.substr(0,P.column)==I.maybeInsertedLineStart},S.popAutoInsertedClosing=function(){I.autoInsertedLineEnd=I.autoInsertedLineEnd.substr(1),I.autoInsertedBrackets--},S.clearMaybeInsertedClosing=function(){I&&(I.maybeInsertedBrackets=0,I.maybeInsertedRow=-1)},O.inherits(S,y),m.CstyleBehaviour=S}),ace.define("ace/unicode",["require","exports","module"],function(v,m,w){for(var k=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],T=0,S=[],I=0;I<k.length;I+=2)S.push(T+=k[I]),k[I+1]&&S.push(45,T+=k[I+1]);m.wordChars=String.fromCharCode.apply(null,S)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(v,m,w){function k(){this.HighlightRules=I}var T=v("../config"),S=v("../tokenizer").Tokenizer,I=v("./text_highlight_rules").TextHighlightRules,O=v("./behaviour/cstyle").CstyleBehaviour,y=v("../unicode"),_=v("../lib/lang"),A=v("../token_iterator").TokenIterator,R=v("../range").Range;(function(){this.$defaultBehaviour=new O,this.tokenRe=new RegExp("^["+y.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+y.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new S(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(D,C,x,P){var $=C.doc,L=!0,V=!0,H=1/0,Q=C.getTabSize(),U=!1;if(this.lineCommentStart){q=Array.isArray(this.lineCommentStart)?(ne=this.lineCommentStart.map(_.escapeRegExp).join("|"),this.lineCommentStart[0]):(ne=_.escapeRegExp(this.lineCommentStart),this.lineCommentStart),ne=new RegExp("^(\\s*)(?:"+ne+") ?"),U=C.getUseSoftTabs();var K=function(de,ae){var be,ie,ce=de.match(ne);ce&&(be=ce[1].length,ie=ce[0].length,N(de,be,ie)||ce[0][ie-1]!=" "||ie--,$.removeInLine(ae,be,ie))},J=q+" ",ue=function(de,ae){L&&!/\S/.test(de)||(N(de,H,H)?$.insertInLine({row:ae,column:H},J):$.insertInLine({row:ae,column:H},q))},ee=function(de,ae){return ne.test(de)},N=function(de,ae,be){for(var ie=0;ae--&&de.charAt(ae)==" ";)ie++;if(ie%Q!=0)return!1;for(ie=0;de.charAt(be++)==" ";)ie++;return 2<Q?ie%Q!=Q-1:ie%Q==0}}else{if(!this.blockComment)return!1;var q=this.blockComment.start,G=this.blockComment.end,ne=new RegExp("^(\\s*)(?:"+_.escapeRegExp(q)+")"),le=new RegExp("(?:"+_.escapeRegExp(G)+")\\s*$"),ue=function(ie,ce){ee(ie,ce)||L&&!/\S/.test(ie)||($.insertInLine({row:ce,column:ie.length},G),$.insertInLine({row:ce,column:H},q))},K=function(ie,ce){var pe;(pe=ie.match(le))&&$.removeInLine(ce,ie.length-pe[0].length,ie.length),(pe=ie.match(ne))&&$.removeInLine(ce,pe[1].length,pe[0].length)},ee=function(ie,ce){if(ne.test(ie))return!0;for(var pe=C.getTokens(ce),X=0;X<pe.length;X++)if(pe[X].type==="comment")return!0}}function oe(de){for(var ae=x;ae<=P;ae++)de($.getLine(ae),ae)}var ve=1/0;oe(function(de,ae){var be=de.search(/\S/);be!==-1?(be<H&&(H=be),V&&!ee(de,ae)&&(V=!1)):ve>de.length&&(ve=de.length)}),H==1/0&&(H=ve,V=L=!1),U&&H%Q!=0&&(H=Math.floor(H/Q)*Q),oe(V?K:ue)},this.toggleBlockComment=function(D,C,x,P){var $=this.blockComment;if($){!$.start&&$[0]&&($=$[0]);var L,V,H=(ue=new A(C,P.row,P.column)).getCurrentToken(),Q=(C.selection,C.selection.toOrientedRange());if(H&&/comment/.test(H.type)){for(;H&&/comment/.test(H.type);){if((ee=H.value.indexOf($.start))!=-1){var U=ue.getCurrentTokenRow(),K=ue.getCurrentTokenColumn()+ee,J=new R(U,K,U,K+$.start.length);break}H=ue.stepBackward()}for(var ue,ee,H=(ue=new A(C,P.row,P.column)).getCurrentToken();H&&/comment/.test(H.type);){if((ee=H.value.indexOf($.end))!=-1){var U=ue.getCurrentTokenRow(),K=ue.getCurrentTokenColumn()+ee,N=new R(U,K,U,K+$.end.length);break}H=ue.stepForward()}N&&C.remove(N),J&&(C.remove(J),L=J.start.row,V=-$.start.length)}else V=$.start.length,L=x.start.row,C.insert(x.end,$.end),C.insert(x.start,$.start);Q.start.row==L&&(Q.start.column+=V),Q.end.row==L&&(Q.end.column+=V),C.selection.fromOrientedRange(Q)}},this.getNextLineIndent=function(D,C,x){return this.$getIndent(C)},this.checkOutdent=function(D,C,x){return!1},this.autoOutdent=function(D,C,x){},this.$getIndent=function(D){return D.match(/^\s*/)[0]},this.createWorker=function(D){return null},this.createModeDelegates=function(D){for(var C in this.$embeds=[],this.$modes={},D){var x,P,$;D[C]&&(P=(x=D[C]).prototype.$id,($=T.$modes[P])||(T.$modes[P]=$=new x),T.$modes[C]||(T.$modes[C]=$),this.$embeds.push(C),this.$modes[C]=$)}for(var L=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],C=0;C<L.length;C++)(function(H){var Q=L[C],U=H[Q];H[L[C]]=function(){return this.$delegator(Q,arguments,U)}})(this)},this.$delegator=function(D,C,x){var P=C[0]||"start";if(typeof P!="string"){if(Array.isArray(P[2])){var $=P[2][P[2].length-1];if(V=this.$modes[$])return V[D].apply(V,[P[1]].concat([].slice.call(C,1)))}P=P[0]||"start"}for(var L=0;L<this.$embeds.length;L++)if(this.$modes[this.$embeds[L]]){var V,H=P.split(this.$embeds[L]);if(!H[0]&&H[1])return C[0]=H[1],(V=this.$modes[this.$embeds[L]])[D].apply(V,C)}return $=x.apply(this,C),x?$:void 0},this.transformAction=function(D,C,x,P,$){if(this.$behaviour){var L,V=this.$behaviour.getBehaviours();for(L in V)if(V[L][C]){var H=V[L][C].apply(this,arguments);if(H)return H}}},this.getKeywords=function(D){if(!this.completionKeywords){var C=this.$tokenizer.rules,x=[];for(V in C)for(var P=C[V],$=0,L=P.length;$<L;$++)if(typeof P[$].token=="string")/keyword|support|storage/.test(P[$].token)&&x.push(P[$].regex);else if(typeof P[$].token=="object")for(var V,H=0,Q=P[$].token.length;H<Q;H++)/keyword|support|storage/.test(P[$].token[H])&&(V=P[$].regex.match(/\(.+?\)/g)[H],x.push(V.substr(1,V.length-2)));this.completionKeywords=x}return D?x.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(D,C,x,P){return(this.$keywordList||this.$createKeywordList()).map(function($){return{name:$,value:$,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(k.prototype),m.Mode=k}),ace.define("ace/apply_delta",["require","exports","module"],function(v,m,w){m.applyDelta=function(k,T,S){var I=T.start.row,O=T.start.column,y=k[I]||"";switch(T.action){case"insert":T.lines.length===1?k[I]=y.substring(0,O)+T.lines[0]+y.substring(O):(_=[I,1].concat(T.lines),k.splice.apply(k,_),k[I]=y.substring(0,O)+k[I],k[I+T.lines.length-1]+=y.substring(O));break;case"remove":var _=T.end.column,A=T.end.row;I===A?k[I]=y.substring(0,O)+y.substring(_):k.splice(I,A-I+1,y.substring(0,O)+k[A].substring(_))}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(T,m,w){var k=T("./lib/oop"),T=T("./lib/event_emitter").EventEmitter,S=(I.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},I.prototype.getDocument=function(){return this.document},I.prototype.onChange=function(y){y.start.row==y.end.row&&y.start.row!=this.row||y.start.row>this.row||(y=function(_,A,R){var P=_.action=="insert",D=(P?1:-1)*(_.end.row-_.start.row),C=(P?1:-1)*(_.end.column-_.start.column),x=_.start,P=P?x:_.end;return O(A,x,R)?{row:A.row,column:A.column}:O(P,A,!R)?{row:A.row+D,column:A.column+(A.row==P.row?C:0)}:{row:x.row,column:x.column}}(y,{row:this.row,column:this.column},this.$insertRight),this.setPosition(y.row,y.column,!0))},I.prototype.setPosition=function(y,_,A){A=A?{row:y,column:_}:this.$clipPositionToDocument(y,_),this.row==A.row&&this.column==A.column||(y={row:this.row,column:this.column},this.row=A.row,this.column=A.column,this._signal("change",{old:y,value:A}))},I.prototype.detach=function(){this.document.off("change",this.$onChange)},I.prototype.attach=function(y){this.document=y||this.document,this.document.on("change",this.$onChange)},I.prototype.$clipPositionToDocument=function(y,_){var A={};return y>=this.document.getLength()?(A.row=Math.max(0,this.document.getLength()-1),A.column=this.document.getLine(A.row).length):y<0?(A.row=0,A.column=0):(A.row=y,A.column=Math.min(this.document.getLine(A.row).length,Math.max(0,_))),_<0&&(A.column=0),A},I);function I(y,_,A){this.$onChange=this.onChange.bind(this),this.attach(y),A===void 0?this.setPosition(_.row,_.column):this.setPosition(_,A)}function O(y,_,A){return A=A?y.column<=_.column:y.column<_.column,y.row<_.row||y.row==_.row&&A}S.prototype.$insertRight=!1,k.implement(S.prototype,T),m.Anchor=S}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(y,m,w){var k=y("./lib/oop"),T=y("./apply_delta").applyDelta,S=y("./lib/event_emitter").EventEmitter,I=y("./range").Range,O=y("./anchor").Anchor,y=(_.prototype.setValue=function(A){var R=this.getLength()-1;this.remove(new I(0,0,R,this.getLine(R).length)),this.insert({row:0,column:0},A||"")},_.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},_.prototype.createAnchor=function(A,R){return new O(this,A,R)},_.prototype.$detectNewLine=function(A){A=A.match(/^.*?(\r\n|\r|\n)/m),this.$autoNewLine=A?A[1]:`
|
|
`,this._signal("changeNewLineMode")},_.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
|
`;case"unix":return`
|
|
`;default:return this.$autoNewLine||`
|
|
`}},_.prototype.setNewLineMode=function(A){this.$newLineMode!==A&&(this.$newLineMode=A,this._signal("changeNewLineMode"))},_.prototype.getNewLineMode=function(){return this.$newLineMode},_.prototype.isNewLine=function(A){return A==`\r
|
|
`||A=="\r"||A==`
|
|
`},_.prototype.getLine=function(A){return this.$lines[A]||""},_.prototype.getLines=function(A,R){return this.$lines.slice(A,R+1)},_.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},_.prototype.getLength=function(){return this.$lines.length},_.prototype.getTextRange=function(A){return this.getLinesForRange(A).join(this.getNewLineCharacter())},_.prototype.getLinesForRange=function(A){var R,D;return A.start.row===A.end.row?R=[this.getLine(A.start.row).substring(A.start.column,A.end.column)]:((R=this.getLines(A.start.row,A.end.row))[0]=(R[0]||"").substring(A.start.column),D=R.length-1,A.end.row-A.start.row==D&&(R[D]=R[D].substring(0,A.end.column))),R},_.prototype.insertLines=function(A,R){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(A,R)},_.prototype.removeLines=function(A,R){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(A,R)},_.prototype.insertNewLine=function(A){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(A,["",""])},_.prototype.insert=function(A,R){return this.getLength()<=1&&this.$detectNewLine(R),this.insertMergedLines(A,this.$split(R))},_.prototype.insertInLine=function(C,R){var D=this.clippedPos(C.row,C.column),C=this.pos(C.row,C.column+R.length);return this.applyDelta({start:D,end:C,action:"insert",lines:[R]},!0),this.clonePos(C)},_.prototype.clippedPos=function(A,R){var D=this.getLength(),D=(A===void 0?A=D:A<0?A=0:D<=A&&(A=D-1,R=void 0),this.getLine(A));return R==null&&(R=D.length),{row:A,column:R=Math.min(Math.max(R,0),D.length)}},_.prototype.clonePos=function(A){return{row:A.row,column:A.column}},_.prototype.pos=function(A,R){return{row:A,column:R}},_.prototype.$clipPosition=function(A){var R=this.getLength();return A.row>=R?(A.row=Math.max(0,R-1),A.column=this.getLine(R-1).length):(A.row=Math.max(0,A.row),A.column=Math.min(Math.max(A.column,0),this.getLine(A.row).length)),A},_.prototype.insertFullLines=function(A,R){var D=0,D=(A=Math.min(Math.max(A,0),this.getLength()))<this.getLength()?(R=R.concat([""]),0):(R=[""].concat(R),this.$lines[--A].length);this.insertMergedLines({row:A,column:D},R)},_.prototype.insertMergedLines=function(D,R){var D=this.clippedPos(D.row,D.column),C={row:D.row+R.length-1,column:(R.length==1?D.column:0)+R[R.length-1].length};return this.applyDelta({start:D,end:C,action:"insert",lines:R}),this.clonePos(C)},_.prototype.remove=function(D){var R=this.clippedPos(D.start.row,D.start.column),D=this.clippedPos(D.end.row,D.end.column);return this.applyDelta({start:R,end:D,action:"remove",lines:this.getLinesForRange({start:R,end:D})}),this.clonePos(R)},_.prototype.removeInLine=function(A,R,D){return R=this.clippedPos(A,R),A=this.clippedPos(A,D),this.applyDelta({start:R,end:A,action:"remove",lines:this.getLinesForRange({start:R,end:A})},!0),this.clonePos(R)},_.prototype.removeFullLines=function(A,R){A=Math.min(Math.max(0,A),this.getLength()-1);var P=(R=Math.min(Math.max(0,R),this.getLength()-1))==this.getLength()-1&&0<A,C=R<this.getLength()-1,x=P?A-1:A,P=P?this.getLine(x).length:0,D=C?R+1:R,C=C?0:this.getLine(D).length,x=new I(x,P,D,C),P=this.$lines.slice(A,R+1);return this.applyDelta({start:x.start,end:x.end,action:"remove",lines:this.getLinesForRange(x)}),P},_.prototype.removeNewLine=function(A){A<this.getLength()-1&&0<=A&&this.applyDelta({start:this.pos(A,this.getLine(A).length),end:this.pos(A+1,0),action:"remove",lines:["",""]})},_.prototype.replace=function(A,R){return A instanceof I||(A=I.fromPoints(A.start,A.end)),R.length===0&&A.isEmpty()?A.start:R==this.getTextRange(A)?A.end:(this.remove(A),R?this.insert(A.start,R):A.start)},_.prototype.applyDeltas=function(A){for(var R=0;R<A.length;R++)this.applyDelta(A[R])},_.prototype.revertDeltas=function(A){for(var R=A.length-1;0<=R;R--)this.revertDelta(A[R])},_.prototype.applyDelta=function(A,R){var D=A.action=="insert";(D?A.lines.length<=1&&!A.lines[0]:!I.comparePoints(A.start,A.end))||(D&&2e4<A.lines.length?this.$splitAndapplyLargeDelta(A,2e4):(T(this.$lines,A,R),this._signal("change",A)))},_.prototype.$safeApplyDelta=function(A){var R=this.$lines.length;(A.action=="remove"&&A.start.row<R&&A.end.row<R||A.action=="insert"&&A.start.row<=R)&&this.applyDelta(A)},_.prototype.$splitAndapplyLargeDelta=function(A,R){for(var D=A.lines,C=D.length-R+1,x=A.start.row,P=A.start.column,$=0,L=0;$<C;$=L){L+=R-1;var V=D.slice($,L);V.push(""),this.applyDelta({start:this.pos(x+$,P),end:this.pos(x+L,P=0),action:A.action,lines:V},!0)}A.lines=D.slice($),A.start.row=x+$,A.start.column=P,this.applyDelta(A,!0)},_.prototype.revertDelta=function(A){this.$safeApplyDelta({start:this.clonePos(A.start),end:this.clonePos(A.end),action:A.action=="insert"?"remove":"insert",lines:A.lines.slice()})},_.prototype.indexToPosition=function(A,R){for(var D=this.$lines||this.getAllLines(),C=this.getNewLineCharacter().length,x=R||0,P=D.length;x<P;x++)if((A-=D[x].length+C)<0)return{row:x,column:A+D[x].length+C};return{row:P-1,column:A+D[P-1].length+C}},_.prototype.positionToIndex=function(A,R){for(var D=this.$lines||this.getAllLines(),C=this.getNewLineCharacter().length,x=0,P=Math.min(A.row,D.length),$=R||0;$<P;++$)x+=D[$].length+C;return x+A.column},_.prototype.$split=function(A){return A.split(/\r\n|\r|\n/)},_);function _(A){this.$lines=[""],A.length===0?this.$lines=[""]:Array.isArray(A)?this.insertMergedLines({row:0,column:0},A):this.insert({row:0,column:0},A)}y.prototype.$autoNewLine="",y.prototype.$newLineMode="auto",k.implement(y.prototype,S),m.Document=y}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(T,m,w){var k=T("./lib/oop"),T=T("./lib/event_emitter").EventEmitter,S=(I.prototype.setTokenizer=function(O){this.tokenizer=O,this.lines=[],this.states=[],this.start(0)},I.prototype.setDocument=function(O){this.doc=O,this.lines=[],this.states=[],this.stop()},I.prototype.fireUpdateEvent=function(O,y){this._signal("update",{data:{first:O,last:y}})},I.prototype.start=function(O){this.currentLine=Math.min(O||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},I.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},I.prototype.$updateOnChange=function(O){var y=O.start.row,_=O.end.row-y;_==0?this.lines[y]=null:O.action=="remove"?(this.lines.splice(y,1+_,null),this.states.splice(y,1+_,null)):((O=Array(1+_)).unshift(y,1),this.lines.splice.apply(this.lines,O),this.states.splice.apply(this.states,O)),this.currentLine=Math.min(y,this.currentLine,this.doc.getLength()),this.stop()},I.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},I.prototype.getTokens=function(O){return this.lines[O]||this.$tokenizeRow(O)},I.prototype.getState=function(O){return this.currentLine==O&&this.$tokenizeRow(O),this.states[O]||"start"},I.prototype.$tokenizeRow=function(O){var _=this.doc.getLine(O),y=this.states[O-1],_=this.tokenizer.getLineTokens(_,y,O);return this.states[O]+""!=_.state+""?(this.states[O]=_.state,this.lines[O+1]=null,this.currentLine>O+1&&(this.currentLine=O+1)):this.currentLine==O&&(this.currentLine=O+1),this.lines[O]=_.tokens},I.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},I);function I(O,y){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=O;var _=this;this.$worker=function(){if(_.running){for(var A=new Date,R=_.currentLine,D=-1,C=_.doc,x=R;_.lines[R];)R++;var P=C.getLength(),$=0;for(_.running=!1;R<P;){for(_.$tokenizeRow(R),D=R;R++,_.lines[R];);if(++$%5==0&&20<new Date-A){_.running=setTimeout(_.$worker,20);break}}_.currentLine=R,x<=(D=D==-1?R:D)&&_.fireUpdateEvent(x,D)}}}k.implement(S.prototype,T),m.BackgroundTokenizer=S}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(S,m,w){var k=S("./lib/lang"),T=S("./range").Range,S=(I.prototype.setRegexp=function(O){this.regExp+""!=O+""&&(this.regExp=O,this.cache=[])},I.prototype.update=function(O,y,_,A){if(this.regExp)for(var R=A.firstRow,D=A.lastRow,C={},x=R;x<=D;x++){var P=this.cache[x];P==null&&(P=(P=(P=k.getMatchOffsets(_.getLine(x),this.regExp)).length>this.MAX_RANGES?P.slice(0,this.MAX_RANGES):P).map(function(H){return new T(x,H.offset,x,H.offset+H.length)}),this.cache[x]=P.length?P:"");for(var $=P.length;$--;){var L=P[$].toScreenRange(_),V=L.toString();C[V]||(C[V]=!0,y.drawSingleLineMarker(O,L,this.clazz,A))}}},I);function I(O,y,_){_===void 0&&(_="text"),this.setRegexp(O),this.clazz=y,this.type=_}S.prototype.MAX_RANGES=500,m.SearchHighlight=S}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(v,m,w){T.prototype.addSession=function(x){this.$session=x},T.prototype.add=function(x,P,$){this.$fromUndo||x!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),P!==!1&&this.lastDeltas||(this.lastDeltas=[],(P=this.$undoStack.length)>this.$undoDepth-1&&this.$undoStack.splice(0,P-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),x.id=this.$rev=++this.$maxRev),x.action!="remove"&&x.action!="insert"||(this.$lastDelta=x),this.lastDeltas.push(x))},T.prototype.addSelection=function(x,P){this.selections.push({value:x,rev:P||this.$rev})},T.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},T.prototype.markIgnored=function(x,P){P==null&&(P=this.$rev+1);for(var $=this.$undoStack,L=$.length;L--;){var V=$[L][0];if(V.id<=x)break;V.id<P&&(V.ignore=!0)}this.lastDeltas=null},T.prototype.getSelection=function(x,P){for(var $=this.selections,L=$.length;L--;){var V=$[L];if(V.rev<x)return V=P?$[L+1]:V}},T.prototype.getRevision=function(){return this.$rev},T.prototype.getDeltas=function(x,P){P==null&&(P=this.$rev+1);for(var $=this.$undoStack,L=null,V=0,H=$.length;H--;){var Q=$[H][0];if(Q.id<P&&!L&&(L=H+1),Q.id<=x){V=H+1;break}}return $.slice(V,L)},T.prototype.getChangedRanges=function(x,P){P==null&&this.$rev},T.prototype.getChangedLines=function(x,P){P==null&&this.$rev},T.prototype.undo=function(x,P){this.lastDeltas=null;var $,L=this.$undoStack;if(function(V,H){for(var Q=H;Q--;){var U=V[Q];if(U&&!U[0].ignore){for(;Q<H-1;){var K=function(J,ue){for(var ee=J.length;ee--;)for(var N=0;N<ue.length;N++)if(!A(J[ee],ue[N])){for(;ee<J.length;){for(;N--;)A(ue[N],J[ee]);N=ue.length,ee++}return[J,ue]}return J.selectionBefore=ue.selectionBefore=J.selectionAfter=ue.selectionAfter=null,[ue,J]}(V[Q],V[Q+1]);V[Q]=K[0],V[Q+1]=K[1],Q++}return 1}}}(L,L.length))return x=x||this.$session,this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0,$=null,(L=L.pop())&&($=x.undoChanges(L,P),this.$redoStack.push(L),this.$syncRev()),this.$fromUndo=!1,$},T.prototype.redo=function(x,P){if(this.lastDeltas=null,x=x||this.$session,this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){for(var q=this.getDeltas(this.$redoStackBaseRev,this.$rev+1),$=this.$redoStack,L=q,V=0;V<L.length;V++)for(var H=L[V],Q=0;Q<H.length;Q++){U=void 0,K=void 0,J=void 0,ue=void 0,ee=void 0,N=void 0;var U=$,K=H[Q];K=function(le){return{start:O(le.start),end:O(le.end),action:le.action,lines:le.lines.slice()}}(K);for(var J=U.length;J--;){for(var ue=U[J],ee=0;ee<ue.length;ee++){var N=function(le,oe){var ve,de,ae=le.action=="insert",be=oe.action=="insert";if(ae&&be)I(le.start,oe.start)<0?R(oe,le,1):R(le,oe,1);else if(ae&&!be)0<=I(le.start,oe.end)?R(le,oe,-1):(I(le.start,oe.start)<=0||R(le,S.fromPoints(oe.start,le.start),-1),R(oe,le,1));else if(!ae&&be)0<=I(oe.start,le.end)?R(oe,le,-1):(I(oe.start,le.start)<=0||R(oe,S.fromPoints(le.start,oe.start),-1),R(le,oe,1));else if(!ae&&!be)if(0<=I(oe.start,le.end))R(oe,le,-1);else{if(!(I(oe.end,le.start)<=0))return I(le.start,oe.start)<0&&(le=C(ve=le,oe.start)),0<I(le.end,oe.end)&&(de=C(le,oe.end)),D(oe.end,le.start,le.end,-1),de&&!ve&&(le.lines=de.lines,le.start=de.start,le.end=de.end,de=le),[oe,ve,de].filter(Boolean);R(le,oe,-1)}return[oe,le]}(ue[ee],K);K=N[0],N.length!=2&&(N[2]?(ue.splice(ee+1,1,N[1],N[2]),ee++):N[1]||(ue.splice(ee,1),ee--))}ue.length||U.splice(J,1)}}this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(ne){ne[0].id=++this.$maxRev},this)}var q=this.$redoStack.pop(),G=null;return q&&(G=x.redoChanges(q,P),this.$undoStack.push(q),this.$syncRev()),this.$fromUndo=!1,G},T.prototype.$syncRev=function(){var x=this.$undoStack,x=x[x.length-1],x=x&&x[0].id||0;this.$redoStackBaseRev=x,this.$rev=x},T.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},T.prototype.canUndo=function(){return 0<this.$undoStack.length},T.prototype.canRedo=function(){return 0<this.$redoStack.length},T.prototype.bookmark=function(x){x==null&&(x=this.$rev),this.mark=x},T.prototype.isAtBookmark=function(){return this.$rev===this.mark},T.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},T.prototype.fromJSON=function(x){this.reset(),this.$undoStack=x.$undoStack,this.$redoStack=x.$redoStack},T.prototype.$prettyPrint=function(x){return x?y(x):y(this.$undoStack)+`
|
|
---
|
|
`+y(this.$redoStack)};var k=T;function T(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}k.prototype.hasUndo=k.prototype.canUndo,k.prototype.hasRedo=k.prototype.canRedo,k.prototype.isClean=k.prototype.isAtBookmark,k.prototype.markClean=k.prototype.bookmark;var S=v("./range").Range,I=S.comparePoints;S.comparePoints;function O(x){return{row:x.row,column:x.column}}function y(x){var P;return x=x||this,Array.isArray(x)?x.map(y).join(`
|
|
`):(P="",x.action?(P=x.action=="insert"?"+":"-",P+="["+x.lines+"]"):x.value&&(P=Array.isArray(x.value)?x.value.map(_).join(`
|
|
`):_(x.value)),x.start&&(P+=_(x)),(x.id||x.rev)&&(P+=" ("+(x.id||x.rev)+")"),P)}function _(x){return x.start.row+":"+x.start.column+"=>"+x.end.row+":"+x.end.column}function A(x,P){var $=x.action=="insert",L=P.action=="insert";if($&&L)if(0<=I(P.start,x.end))R(P,x,-1);else{if(!(I(P.start,x.start)<=0))return;R(x,P,1)}else if($&&!L)if(0<=I(P.start,x.end))R(P,x,-1);else{if(!(I(P.end,x.start)<=0))return;R(x,P,-1)}else if(!$&&L)if(0<=I(P.start,x.start))R(P,x,1);else{if(!(I(P.start,x.start)<=0))return;R(x,P,1)}else if(!$&&!L)if(0<=I(P.start,x.start))R(P,x,1);else{if(!(I(P.end,x.start)<=0))return;R(x,P,-1)}return 1}function R(x,P,$){D(x.start,P.start,P.end,$),D(x.end,P.start,P.end,$)}function D(x,P,$,L){x.row==(L==1?P:$).row&&(x.column+=L*($.column-P.column)),x.row+=L*($.row-P.row)}function C(x,P){var $=x.lines,L=x.end,H=(x.end=O(P),x.end.row-x.start.row),V=$.splice(H,$.length),H=H?P.column:P.column-x.start.column;return $.push(V[0].substring(0,H)),V[0]=V[0].substr(H),{start:O(P),end:L,lines:V,action:x.action}}m.UndoManager=k}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(v,m,w){var k=v("../range").Range;function T(S,I){this.foldData=S,Array.isArray(I)?this.folds=I:I=this.folds=[I],S=I[I.length-1],this.range=new k(I[0].start.row,I[0].start.column,S.end.row,S.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(O){O.setFoldLine(this)},this)}T.prototype.shiftRow=function(S){this.start.row+=S,this.end.row+=S,this.folds.forEach(function(I){I.start.row+=S,I.end.row+=S})},T.prototype.addFold=function(S){if(S.sameRow){if(S.start.row<this.startRow||S.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(S),this.folds.sort(function(I,O){return-I.range.compareEnd(O.start.row,O.start.column)}),0<this.range.compareEnd(S.start.row,S.start.column)?(this.end.row=S.end.row,this.end.column=S.end.column):this.range.compareStart(S.end.row,S.end.column)<0&&(this.start.row=S.start.row,this.start.column=S.start.column)}else if(S.start.row==this.end.row)this.folds.push(S),this.end.row=S.end.row,this.end.column=S.end.column;else{if(S.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(S),this.start.row=S.start.row,this.start.column=S.start.column}S.foldLine=this},T.prototype.containsRow=function(S){return S>=this.start.row&&S<=this.end.row},T.prototype.walk=function(S,I,O){var y,_,A=0,R=this.folds,D=!0;I==null&&(I=this.end.row,O=this.end.column);for(var C=0;C<R.length;C++){if((_=(y=R[C]).range.compareStart(I,O))==-1)return void S(null,I,O,A,D);if(!S(null,y.start.row,y.start.column,A,D)&&S(y.placeholder,y.start.row,y.start.column,A)||_===0)return;D=!y.sameRow,A=y.end.column}S(null,I,O,A,D)},T.prototype.getNextFoldTo=function(S,I){for(var O,y,_=0;_<this.folds.length;_++){if((y=(O=this.folds[_]).range.compareEnd(S,I))==-1)return{fold:O,kind:"after"};if(y===0)return{fold:O,kind:"inside"}}return null},T.prototype.addRemoveChars=function(S,I,O){var y,_=this.getNextFoldTo(S,I);if(_){if(y=_.fold,_.kind=="inside"&&y.start.column!=I&&y.start.row!=S)window.console&&window.console.log(S,I,y);else if(y.start.row==S){var A,R=(A=this.folds).indexOf(y);for(R===0&&(this.start.column+=O);R<A.length;R++){if((y=A[R]).start.column+=O,!y.sameRow)return;y.end.column+=O}this.end.column+=O}}},T.prototype.split=function(_,I){var O,y,_=this.getNextFoldTo(_,I);return _&&_.kind!="inside"?(I=_.fold,_=this.folds,O=this.foldData,I=_.indexOf(I),y=_[I-1],this.end.row=y.end.row,this.end.column=y.end.column,y=new T(O,_=_.splice(I,_.length-I)),O.splice(O.indexOf(this)+1,0,y),y):null},T.prototype.merge=function(S){for(var I=S.folds,O=0;O<I.length;O++)this.addFold(I[O]);var y=this.foldData;y.splice(y.indexOf(S),1)},T.prototype.toString=function(){var S=[this.range.toString()+": ["];return this.folds.forEach(function(I){S.push(" "+I.toString())}),S.push("]"),S.join(`
|
|
`)},T.prototype.idxToPosition=function(S){for(var I=0,O=0;O<this.folds.length;O++){var y=this.folds[O];if((S-=y.start.column-I)<0)return{row:y.start.row,column:y.start.column+S};if((S-=y.placeholder.length)<0)return y.start;I=y.end.column}return{row:this.end.row,column:this.end.column+S}},m.FoldLine=T}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(T,m,w){var k=T("./range").Range.comparePoints,T=(S.prototype.pointIndex=function(I,O,y){for(var _=this.ranges,A=y||0;A<_.length;A++){var R=_[A],D=k(I,R.end);if(!(0<D))return R=k(I,R.start),D===0?O&&R!==0?-A-2:A:0<R||R===0&&!O?A:-A-1}return-A-1},S.prototype.add=function(I){var y=!I.isEmpty(),O=this.pointIndex(I.start,y),y=this.pointIndex(I.end,y,O=O<0?-O-1:O);return y<0?y=-y-1:y++,this.ranges.splice(O,y-O,I)},S.prototype.addList=function(I){for(var O=[],y=I.length;y--;)O.push.apply(O,this.add(I[y]));return O},S.prototype.substractPoint=function(I){if(I=this.pointIndex(I),0<=I)return this.ranges.splice(I,1)},S.prototype.merge=function(){for(var I=[],O=this.ranges,y=(O=O.sort(function(D,C){return k(D.start,C.start)}))[0],_=1;_<O.length;_++){var A=y,y=O[_],R=k(A.end,y.start);R<0||(R!=0||A.isEmpty()||y.isEmpty())&&(k(A.end,y.end)<0&&(A.end.row=y.end.row,A.end.column=y.end.column),O.splice(_,1),I.push(y),y=A,_--)}return this.ranges=O,I},S.prototype.contains=function(I,O){return 0<=this.pointIndex({row:I,column:O})},S.prototype.containsPoint=function(I){return 0<=this.pointIndex(I)},S.prototype.rangeAtPoint=function(I){if(I=this.pointIndex(I),0<=I)return this.ranges[I]},S.prototype.clipRows=function(I,O){var y=this.ranges;if(y[0].start.row>O||y[y.length-1].start.row<I)return[];for(var I=this.pointIndex({row:I,column:0}),_=this.pointIndex({row:O,column:0},I=I<0?-I-1:I),A=(_<0&&(_=-_-1),[]),R=I;R<_;R++)A.push(y[R]);return A},S.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},S.prototype.attach=function(I){this.session&&this.detach(),this.session=I,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},S.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},S.prototype.$onChange=function(I){for(var O=I.start,y=I.end,_=O.row,A=y.row,R=this.ranges,D=0,C=R.length;D<C&&!(($=R[D]).end.row>=_);D++);if(I.action=="insert")for(var x=A-_,P=-O.column+y.column;D<C&&!(($=R[D]).start.row>_);D++)$.start.row==_&&$.start.column>=O.column&&($.start.column==O.column&&this.$bias<=0||($.start.column+=P,$.start.row+=x)),$.end.row==_&&$.end.column>=O.column&&($.end.column==O.column&&this.$bias<0||($.end.column==O.column&&0<P&&D<C-1&&$.end.column>$.start.column&&$.end.column==R[D+1].start.column&&($.end.column-=P),$.end.column+=P,$.end.row+=x));else for(var $,x=_-A,P=O.column-y.column;D<C&&!(($=R[D]).start.row>A);D++)$.end.row<A&&(_<$.end.row||_==$.end.row&&O.column<$.end.column)?($.end.row=_,$.end.column=O.column):$.end.row==A?$.end.column<=y.column?(x||$.end.column>O.column)&&($.end.column=O.column,$.end.row=O.row):($.end.column+=P,$.end.row+=x):$.end.row>A&&($.end.row+=x),$.start.row<A&&(_<$.start.row||_==$.start.row&&O.column<$.start.column)?($.start.row=_,$.start.column=O.column):$.start.row==A?$.start.column<=y.column?(x||$.start.column>O.column)&&($.start.column=O.column,$.start.row=O.row):($.start.column+=P,$.start.row+=x):$.start.row>A&&($.start.row+=x);if(x!=0&&D<C)for(;D<C;D++)($=R[D]).start.row+=x,$.end.row+=x},S);function S(){this.ranges=[],this.$bias=1}T.prototype.comparePoints=k,m.RangeList=T}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(S,m,w){var k,T,I=this&&this.__extends||(k=function(A,R){return(k=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(D,C){D.__proto__=C}:function(D,C){for(var x in C)Object.prototype.hasOwnProperty.call(C,x)&&(D[x]=C[x])}))(A,R)},function(A,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function D(){this.constructor=A}k(A,R),A.prototype=R===null?Object.create(R):(D.prototype=R.prototype,new D)}),S=S("../range_list").RangeList,I=(I(O,T=S),O.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},O.prototype.setFoldLine=function(A){this.foldLine=A,this.subFolds.forEach(function(R){R.setFoldLine(A)})},O.prototype.clone=function(){var A=new O(this.range.clone(),this.placeholder);return this.subFolds.forEach(function(R){A.subFolds.push(R.clone())}),A.collapseChildren=this.collapseChildren,A},O.prototype.addSubFold=function(A){if(!this.range.isEqual(A)){P=A,$=this.start,y(P.start,$),y(P.end,$);for(var R=A.start.row,D=A.start.column,C=0,x=-1;C<this.subFolds.length&&(x=this.subFolds[C].range.compare(R,D))==1;C++);var P=this.subFolds[C],$=0;if(x==0){if(P.range.containsRange(A))return P.addSubFold(A);$=1}for(var R=A.range.end.row,D=A.range.end.column,L=C,x=-1;L<this.subFolds.length&&(x=this.subFolds[L].range.compare(R,D))==1;L++);x==0&&L++;for(var V=this.subFolds.splice(C,L-C,A),H=x==0?V.length-1:V.length,Q=$;Q<H;Q++)A.addSubFold(V[Q]);return A.setFoldLine(this.foldLine),A}},O.prototype.restoreRange=function(A){return A=A,R=this.start,_(A.start,R),void _(A.end,R);var R},O);function O(A,R){var D=T.call(this)||this;return D.foldLine=null,D.placeholder=R,D.range=A,D.start=A.start,D.end=A.end,D.sameRow=A.start.row==A.end.row,D.subFolds=D.ranges=[],D}function y(A,R){A.row-=R.row,A.row==0&&(A.column-=R.column)}function _(A,R){A.row==0&&(A.column+=R.column),A.row+=R.row}m.Fold=I}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(v,m,w){var k=v("../range").Range,T=v("./fold_line").FoldLine,S=v("./fold").Fold,I=v("../token_iterator").TokenIterator,O=v("../mouse/mouse_event").MouseEvent;m.Folding=function(){this.getFoldAt=function(y,_,A){var R=this.getFoldLine(y);if(!R)return null;for(var D=R.folds,C=0;C<D.length;C++){var x=D[C].range;if(x.contains(y,_)&&(A!=1||!x.isEnd(y,_)||x.isEmpty())&&(A!=-1||!x.isStart(y,_)||x.isEmpty()))return D[C]}},this.getFoldsInRange=function(y){var _=y.start,A=y.end,R=this.$foldData,D=[];_.column+=1,--A.column;for(var C=0;C<R.length;C++){var x=R[C].range.compareRange(y);if(x!=2){if(x==-2)break;for(var P=R[C].folds,$=0;$<P.length;$++){var L=P[$];if((x=L.range.compareRange(y))==-2)break;if(x!=2){if(x==42)break;D.push(L)}}}}return--_.column,A.column+=1,D},this.getFoldsInRangeList=function(y){var _;return Array.isArray(y)?(_=[],y.forEach(function(A){_=_.concat(this.getFoldsInRange(A))},this)):_=this.getFoldsInRange(y),_},this.getAllFolds=function(){for(var y=[],_=this.$foldData,A=0;A<_.length;A++)for(var R=0;R<_[A].folds.length;R++)y.push(_[A].folds[R]);return y},this.getFoldStringAt=function(y,_,A,R){if(!(R=R||this.getFoldLine(y)))return null;for(var D,C={end:{column:0}},x=0;x<R.folds.length;x++){var P,$=(P=R.folds[x]).range.compareEnd(y,_);if($==-1){D=this.getLine(P.start.row).substring(C.end.column,P.start.column);break}if($===0)return null;C=P}return D=D||this.getLine(P.start.row).substring(C.end.column),A==-1?D.substring(0,_-C.end.column):A==1?D.substring(_-C.end.column):D},this.getFoldLine=function(y,_){var A=this.$foldData,R=0;for((R=_?A.indexOf(_):R)==-1&&(R=0);R<A.length;R++){var D=A[R];if(D.start.row<=y&&D.end.row>=y)return D;if(D.end.row>y)return null}return null},this.getNextFoldLine=function(y,_){var A=this.$foldData,R=0;for((R=_?A.indexOf(_):R)==-1&&(R=0);R<A.length;R++){var D=A[R];if(D.end.row>=y)return D}return null},this.getFoldedRowCount=function(y,_){for(var A=this.$foldData,R=_-y+1,D=0;D<A.length;D++){var x=A[D],C=x.end.row,x=x.start.row;if(_<=C){x<_&&(y<=x?R-=_-x:R=0);break}y<=C&&(R-=y<=x?C-x:C-y+1)}return R},this.$addFoldLine=function(y){return this.$foldData.push(y),this.$foldData.sort(function(_,A){return _.start.row-A.start.row}),y},this.addFold=function(x,$){var A,R=this.$foldData,D=!1,C=(x instanceof S?A=x:(A=new S($,x)).collapseChildren=$.collapseChildren,this.$clipRangeToDocument(A.range),A.start.row),x=A.start.column,P=A.end.row,$=A.end.column,L=this.getFoldAt(C,x,1),V=this.getFoldAt(P,$,-1);if(L&&V==L)return L.addSubFold(A);L&&!L.range.isStart(C,x)&&this.removeFold(L),V&&!V.range.isEnd(P,$)&&this.removeFold(V),x=this.getFoldsInRange(A.range),0<x.length&&(this.removeFolds(x),A.collapseChildren||x.forEach(function(K){A.addSubFold(K)}));for(var H=0;H<R.length;H++){var Q=R[H];if(P==Q.start.row){Q.addFold(A),D=!0;break}if(C==Q.end.row){if(Q.addFold(A),D=!0,!A.sameRow){var U=R[H+1];if(U&&U.start.row==P){Q.merge(U);break}}break}if(P<=Q.start.row)break}return D||(Q=this.$addFoldLine(new T(this.$foldData,A))),this.$useWrapMode?this.$updateWrapData(Q.start.row,Q.start.row):this.$updateRowLengthCache(Q.start.row,Q.start.row),this.$modified=!0,this._signal("changeFold",{data:A,action:"add"}),A},this.addFolds=function(y){y.forEach(function(_){this.addFold(_)},this)},this.removeFold=function(y){var _=y.foldLine,A=_.start.row,R=_.end.row,D=this.$foldData,C=_.folds;C.length==1?D.splice(D.indexOf(_),1):_.range.isEnd(y.end.row,y.end.column)?(C.pop(),_.end.row=C[C.length-1].end.row,_.end.column=C[C.length-1].end.column):_.range.isStart(y.start.row,y.start.column)?(C.shift(),_.start.row=C[0].start.row,_.start.column=C[0].start.column):y.sameRow?C.splice(C.indexOf(y),1):((C=(D=_.split(y.start.row,y.start.column)).folds).shift(),D.start.row=C[0].start.row,D.start.column=C[0].start.column),this.$updating||(this.$useWrapMode?this.$updateWrapData(A,R):this.$updateRowLengthCache(A,R)),this.$modified=!0,this._signal("changeFold",{data:y,action:"remove"})},this.removeFolds=function(y){for(var _=[],A=0;A<y.length;A++)_.push(y[A]);_.forEach(function(R){this.removeFold(R)},this),this.$modified=!0},this.expandFold=function(y){this.removeFold(y),y.subFolds.forEach(function(_){y.restoreRange(_),this.addFold(_)},this),0<y.collapseChildren&&this.foldAll(y.start.row+1,y.end.row,y.collapseChildren-1),y.subFolds=[]},this.expandFolds=function(y){y.forEach(function(_){this.expandFold(_)},this)},this.unfold=function(y,_){var A;if(y==null)A=new k(0,0,this.getLength(),0),_==null&&(_=!0);else if(typeof y=="number")A=new k(y,0,y,this.getLine(y).length);else if("row"in y)A=k.fromPoints(y,y);else{if(Array.isArray(y))return R=[],y.forEach(function(D){R=R.concat(this.unfold(D))},this),R;A=y}for(var R,y=R=this.getFoldsInRangeList(A);R.length==1&&k.comparePoints(R[0].start,A.start)<0&&0<k.comparePoints(R[0].end,A.end);)this.expandFolds(R),R=this.getFoldsInRangeList(A);if(_!=0?this.removeFolds(R):this.expandFolds(R),y.length)return y},this.isRowFolded=function(y,_){return!!this.getFoldLine(y,_)},this.getRowFoldEnd=function(y,_){return _=this.getFoldLine(y,_),_?_.end.row:y},this.getRowFoldStart=function(y,_){return _=this.getFoldLine(y,_),_?_.start.row:y},this.getFoldDisplayLine=function(y,_,A,R,D){R==null&&(R=y.start.row),D==null&&(D=0),_==null&&(_=y.end.row),A==null&&(A=this.getLine(_).length);var C=this.doc,x="";return y.walk(function(P,$,L,V){if(!($<R)){if($==R){if(L<D)return;V=Math.max(D,V)}x+=P??C.getLine($).substring(V,L)}},_,A),x},this.getDisplayLine=function(y,_,A,R){var D=this.getFoldLine(y);return D?this.getFoldDisplayLine(D,y,_,A,R):(D=this.doc.getLine(y)).substring(R||0,_||D.length)},this.$cloneFoldData=function(){var y=[];return y=this.$foldData.map(function(_){return _=_.folds.map(function(A){return A.clone()}),new T(y,_)})},this.toggleFold=function(y){var _=this.selection.getRange();if(_.isEmpty()){var A,R=_.start;if(A=this.getFoldAt(R.row,R.column))return void this.expandFold(A);(D=this.findMatchingBracket(R))?_.comparePoint(D)==1?_.end=D:(_.start=D,_.start.column++,_.end.column--):(D=this.findMatchingBracket({row:R.row,column:R.column+1}))?(_.comparePoint(D)==1?_.end=D:_.start=D,_.start.column++):_=this.getCommentFoldRange(R.row,R.column)||_}else{var D=this.getFoldsInRange(_);if(y&&D.length)return void this.expandFolds(D);D.length==1&&(A=D[0])}if((A=A||this.getFoldAt(_.start.row,_.start.column))&&A.range.toString()==_.toString())this.expandFold(A);else{if(R="...",!_.isMultiLine()){if((R=this.getTextRange(_)).length<4)return;R=R.trim().substring(0,2)+".."}this.addFold(R,_)}},this.getCommentFoldRange=function(y,_,A){var R=new I(this,y,_),D=R.getCurrentToken(),C=D&&D.type;if(D&&/^comment|string/.test(C)){(C=C.match(/comment|string/)[0])=="comment"&&(C+="|doc-start|\\.doc");var x=new RegExp(C),C=new k;if(A!=1){for(;(D=R.stepBackward())&&x.test(D.type)&&!/^comment.end/.test(D.type););D=R.stepForward()}if(C.start.row=R.getCurrentTokenRow(),C.start.column=R.getCurrentTokenColumn()+(/^comment.start/.test(D.type)?D.value.length:2),R=new I(this,y,_),A!=-1){var P=-1;do if(D=R.stepForward(),P==-1){var $=this.getState(R.$row);x.test($)||(P=R.$row)}else if(R.$row>P)break;while(D&&x.test(D.type)&&!/^comment.start/.test(D.type));D=R.stepBackward()}else D=R.getCurrentToken();return C.end.row=R.getCurrentTokenRow(),C.end.column=R.getCurrentTokenColumn(),/^comment.end/.test(D.type)||(C.end.column+=D.value.length-2),C}},this.foldAll=function(y,_,A,R){A==null&&(A=1e5);var D=this.foldWidgets;if(D){_=_||this.getLength();for(var C,x=y=y||0;x<_;x++)D[x]==null&&(D[x]=this.getFoldWidget(x)),D[x]!="start"||R&&!R(x)||(C=this.getFoldWidgetRange(x))&&C.isMultiLine()&&C.end.row<=_&&C.start.row>=y&&(x=C.end.row,C.collapseChildren=A,this.addFold("...",C))}},this.foldToLevel=function(y){for(this.foldAll();0<y--;)this.unfold(null,!1)},this.foldAllComments=function(){var y=this;this.foldAll(null,null,null,function(_){for(var A=y.getTokens(_),R=0;R<A.length;R++){var D=A[R];if(D.type!="text"||!/^\s+$/.test(D.value))return!!/comment/.test(D.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(y){if(!this.$foldStyles[y])throw new Error("invalid fold style: "+y+"["+Object.keys(this.$foldStyles).join(", ")+"]");this.$foldStyle!=y&&((this.$foldStyle=y)=="manual"&&this.unfold(),y=this.$foldMode,this.$setFolding(null),this.$setFolding(y))},this.$setFolding=function(y){this.$foldMode!=y&&(this.$foldMode=y,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),y&&this.$foldStyle!="manual"?(this.foldWidgets=[],this.getFoldWidget=y.getFoldWidget.bind(y,this,this.$foldStyle),this.getFoldWidgetRange=y.getFoldWidgetRange.bind(y,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(y,_){var A=this.foldWidgets;if(!A||_&&A[y])return{};for(var R=y-1;0<=R;){var D=A[R];if((D=D??(A[R]=this.getFoldWidget(R)))=="start"){var C=this.getFoldWidgetRange(R),x=x||C;if(C&&C.end.row>=y)break}R--}return{range:R!==-1&&C,firstRange:x}},this.onFoldWidgetClick=function(y,_){var A={children:(_=_ instanceof O?_.domEvent:_).shiftKey,all:_.ctrlKey||_.metaKey,siblings:_.altKey};this.$toggleFoldWidget(y,A)||(y=_.target||_.srcElement)&&/ace_fold-widget/.test(y.className)&&(y.className+=" ace_invalid")},this.$toggleFoldWidget=function(y,_){var A,R,D,C;if(this.getFoldWidget)return A=this.getFoldWidget(y),R=this.getLine(y),(R=this.getFoldAt(y,(A=A==="end"?-1:1)==-1?0:R.length,A))?(_.children||_.all?this.removeFold(R):this.expandFold(R),R):(A=this.getFoldWidgetRange(y,!0))&&!A.isMultiLine()&&(R=this.getFoldAt(A.start.row,A.start.column,1))&&A.isEqual(R.range)?(this.removeFold(R),R):(_.siblings?((R=this.getParentFoldRangeData(y)).range&&(D=R.range.start.row+1,C=R.range.end.row),this.foldAll(D,C,_.all?1e4:0)):_.children?(C=A?A.end.row:this.getLength(),this.foldAll(y+1,C,_.all?1e4:0)):A&&(_.all&&(A.collapseChildren=1e4),this.addFold("...",A)),A)},this.toggleFoldWidget=function(y){var _,A=this.selection.getCursor().row;A=this.getRowFoldStart(A),!this.$toggleFoldWidget(A,{})&&(_=(_=this.getParentFoldRangeData(A,!0)).range||_.firstRange)&&(A=_.start.row,(A=this.getFoldAt(A,this.getLine(A).length,1))?this.removeFold(A):this.addFold("...",_))},this.updateFoldWidgets=function(y){var _=y.start.row,A=y.end.row-_;A==0?this.foldWidgets[_]=null:y.action=="remove"?this.foldWidgets.splice(_,1+A,null):((y=Array(1+A)).unshift(_,1),this.foldWidgets.splice.apply(this.foldWidgets,y))},this.tokenizerUpdateFoldWidgets=function(y){y=y.data,y.first!=y.last&&this.foldWidgets.length>y.first&&this.foldWidgets.splice(y.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(v,m,w){var k=v("../token_iterator").TokenIterator,T=v("../range").Range;m.BracketMatch=function(){this.findMatchingBracket=function(S,I){return S.column!=0&&(I=I||this.getLine(S.row).charAt(S.column-1))!=""&&(I=I.match(/([\(\[\{])|([\)\]\}])/))?I[1]?this.$findClosingBracket(I[1],S):this.$findOpeningBracket(I[2],S):null},this.getBracketRange=function(S){var I,O,y=this.getLine(S.row),_=!0,A=y.charAt(S.column-1),R=A&&A.match(/([\(\[\{])|([\)\]\}])/);if(R||(A=y.charAt(S.column),S={row:S.row,column:S.column+1},R=A&&A.match(/([\(\[\{])|([\)\]\}])/),_=!1),!R)return null;if(R[1]){if(!(O=this.$findClosingBracket(R[1],S)))return null;I=T.fromPoints(S,O),_||(I.end.column++,I.start.column--),I.cursor=I.end}else{if(!(O=this.$findOpeningBracket(R[2],S)))return null;I=T.fromPoints(O,S),_||(I.start.column++,I.end.column--),I.cursor=I.start}return I},this.getMatchingBracketRanges=function(S,I){var O=this.getLine(S.row),y=/([\(\[\{])|([\)\]\}])/,_=!I&&O.charAt(S.column-1),A=_&&_.match(y);return A||(_=(I===void 0||I)&&O.charAt(S.column),S={row:S.row,column:S.column+1},A=_&&_.match(y)),A?(I=new T(S.row,S.column-1,S.row,S.column),(O=A[1]?this.$findClosingBracket(A[1],S):this.$findOpeningBracket(A[2],S))?[I,new T(O.row,O.column,O.row,O.column+1)]:[I]):null},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(S,I,O){var y=this.$brackets[S],_=1,A=new k(this,I.row,I.column),R=A.getCurrentToken();if(R=R||A.stepForward()){O=O||new RegExp("(\\.?"+R.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+");for(var D=I.column-A.getCurrentTokenColumn()-2,C=R.value;;){for(;0<=D;){var x=C.charAt(D);if(x==y){if(--_==0)return{row:A.getCurrentTokenRow(),column:D+A.getCurrentTokenColumn()}}else x==S&&(_+=1);--D}for(;(R=A.stepBackward())&&!O.test(R.type););if(R==null)break;D=(C=R.value).length-1}return null}},this.$findClosingBracket=function(S,I,O){var y=this.$brackets[S],_=1,A=new k(this,I.row,I.column),R=A.getCurrentToken();if(R=R||A.stepForward()){O=O||new RegExp("(\\.?"+R.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+");for(var D=I.column-A.getCurrentTokenColumn();;){for(var C=R.value,x=C.length;D<x;){var P=C.charAt(D);if(P==y){if(--_==0)return{row:A.getCurrentTokenRow(),column:D+A.getCurrentTokenColumn()}}else P==S&&(_+=1);D+=1}for(;(R=A.stepForward())&&!O.test(R.type););if(R==null)break;D=0}return null}},this.getMatchingTags=function(I){var I=new k(this,I.row,I.column),O=this.$findTagName(I);if(O)return I.stepBackward().value==="<"?this.$findClosingTag(I,O):this.$findOpeningTag(I,O)},this.$findTagName=function(S){var I=S.getCurrentToken(),O=!1,y=!1;if(I&&I.type.indexOf("tag-name")===-1)for(;(I=y?S.stepBackward():S.stepForward())&&(I.value==="/>"?y=!0:I.type.indexOf("tag-name")!==-1&&(O=!0)),I&&!O;);return I},this.$findClosingTag=function(S,I){var O=I.value,y=I.value,_=0,A=new T(S.getCurrentTokenRow(),S.getCurrentTokenColumn(),S.getCurrentTokenRow(),S.getCurrentTokenColumn()+1),R=(I=S.stepForward(),new T(S.getCurrentTokenRow(),S.getCurrentTokenColumn(),S.getCurrentTokenRow(),S.getCurrentTokenColumn()+I.value.length)),D=!1;do{var C,x=I;if(I=S.stepForward())if(I.value!==">"||D||(C=new T(S.getCurrentTokenRow(),S.getCurrentTokenColumn(),S.getCurrentTokenRow(),S.getCurrentTokenColumn()+1),D=!0),I.type.indexOf("tag-name")!==-1){if(y===(O=I.value)){if(x.value==="<")_++;else if(x.value==="</"&&--_<0){S.stepBackward();var P=new T(S.getCurrentTokenRow(),S.getCurrentTokenColumn(),S.getCurrentTokenRow(),S.getCurrentTokenColumn()+2),$=(I=S.stepForward(),new T(S.getCurrentTokenRow(),S.getCurrentTokenColumn(),S.getCurrentTokenRow(),S.getCurrentTokenColumn()+I.value.length));if(!(I=S.stepForward())||I.value!==">")return;var L=new T(S.getCurrentTokenRow(),S.getCurrentTokenColumn(),S.getCurrentTokenRow(),S.getCurrentTokenColumn()+1)}}}else y===O&&I.value==="/>"&&--_<0&&(L=$=P=new T(S.getCurrentTokenRow(),S.getCurrentTokenColumn(),S.getCurrentTokenRow(),S.getCurrentTokenColumn()+2),C=new T(R.end.row,R.end.column,R.end.row,R.end.column+1))}while(I&&0<=_);if(A&&C&&P&&L&&R&&$)return{openTag:new T(A.start.row,A.start.column,C.end.row,C.end.column),closeTag:new T(P.start.row,P.start.column,L.end.row,L.end.column),openTagName:R,closeTagName:$}},this.$findOpeningTag=function(S,I){var O,y=S.getCurrentToken(),_=I.value,A=0,R=S.getCurrentTokenRow(),D=S.getCurrentTokenColumn(),C=new T(R,D,R,D+2),x=(S.stepForward(),new T(S.getCurrentTokenRow(),S.getCurrentTokenColumn(),S.getCurrentTokenRow(),S.getCurrentTokenColumn()+I.value.length));if((I=S.stepForward())&&I.value===">"){var P=new T(S.getCurrentTokenRow(),S.getCurrentTokenColumn(),S.getCurrentTokenRow(),S.getCurrentTokenColumn()+1);S.stepBackward(),S.stepBackward();do if(I=y,R=S.getCurrentTokenRow(),O=(D=S.getCurrentTokenColumn())+I.value.length,y=S.stepBackward(),I){if(I.type.indexOf("tag-name")!==-1){if(_===I.value)if(y.value==="<"){if(0<++A){for(var $=new T(R,D,R,O),L=new T(S.getCurrentTokenRow(),S.getCurrentTokenColumn(),S.getCurrentTokenRow(),S.getCurrentTokenColumn()+1);(I=S.stepForward())&&I.value!==">";);var V=new T(S.getCurrentTokenRow(),S.getCurrentTokenColumn(),S.getCurrentTokenRow(),S.getCurrentTokenColumn()+1)}}else y.value==="</"&&A--}else if(I.value==="/>"){for(var H=0,Q=y;Q;){if(Q.type.indexOf("tag-name")!==-1&&Q.value===_){A--;break}if(Q.value==="<")break;Q=S.stepBackward(),H++}for(var U=0;U<H;U++)S.stepForward()}}while(y&&A<=0);return L&&V&&C&&P&&$&&x?{openTag:new T(L.start.row,L.start.column,V.end.row,V.end.column),closeTag:new T(C.start.row,C.start.column,P.end.row,P.end.column),openTagName:$,closeTagName:x}:void 0}}}}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(v,m,w){var k=v("./lib/oop"),T=v("./lib/lang"),S=v("./bidihandler").BidiHandler,I=v("./config"),O=v("./lib/event_emitter").EventEmitter,y=v("./selection").Selection,_=v("./mode/text").Mode,A=v("./range").Range,R=v("./document").Document,D=v("./background_tokenizer").BackgroundTokenizer,C=v("./search_highlight").SearchHighlight,x=v("./undomanager").UndoManager,P=($.prototype.setDocument=function(N){this.doc&&this.doc.off("change",this.$onChange),(this.doc=N).on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},$.prototype.getDocument=function(){return this.doc},$.prototype.$resetRowCache=function(N){var q;N?(q=this.$docRowCache.length,(N=this.$getRowCacheIndex(this.$docRowCache,N)+1)<q&&(this.$docRowCache.splice(N,q),this.$screenRowCache.splice(N,q))):(this.$docRowCache=[],this.$screenRowCache=[])},$.prototype.$getRowCacheIndex=function(N,q){for(var G=0,ne=N.length-1;G<=ne;){var le=G+ne>>1,oe=N[le];if(oe<q)G=1+le;else{if(!(q<oe))return le;ne=le-1}}return G-1},$.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},$.prototype.onChangeFold=function(N){N=N.data,this.$resetRowCache(N.start.row)},$.prototype.onChange=function(N){this.$modified=!0,this.$bidiHandler.onChange(N),this.$resetRowCache(N.start.row);var q=this.$updateInternalDataOnChange(N);!this.$fromUndo&&this.$undoManager&&(q&&q.length&&(this.$undoManager.add({action:"removeFolds",folds:q},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(N,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(N),this._signal("change",N)},$.prototype.setValue=function(N){this.doc.setValue(N),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},$.fromJSON=function(N){N=JSON.parse(N);var q=new x,G=(q.$undoStack=N.history.undo,q.$redoStack=N.history.redo,q.mark=N.history.mark,q.$rev=N.history.rev,new $(N.value));return N.folds.forEach(function(ne){G.addFold("...",A.fromPoints(ne.start,ne.end))}),G.setAnnotations(N.annotations),G.setBreakpoints(N.breakpoints),G.setMode(N.mode),G.setScrollLeft(N.scrollLeft),G.setScrollTop(N.scrollTop),G.setUndoManager(q),G.selection.fromJSON(N.selection),G},$.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(N){return N.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},$.prototype.toString=function(){return this.doc.getValue()},$.prototype.getSelection=function(){return this.selection},$.prototype.getState=function(N){return this.bgTokenizer.getState(N)},$.prototype.getTokens=function(N){return this.bgTokenizer.getTokens(N)},$.prototype.getTokenAt=function(N,q){var G=this.bgTokenizer.getTokens(N),le=0;if(q==null)var ne=G.length-1,le=this.getLine(N).length;else for(ne=0;ne<G.length&&!(q<=(le+=G[ne].value.length));ne++);return(N=G[ne])?(N.index=ne,N.start=le-N.value.length,N):null},$.prototype.setUndoManager=function(N){var q;this.$undoManager=N,this.$informUndoManager&&this.$informUndoManager.cancel(),N?(N.addSession(q=this),this.$syncInformUndoManager=function(){q.$informUndoManager.cancel(),q.mergeUndoDeltas=!1},this.$informUndoManager=T.delayedCall(this.$syncInformUndoManager)):this.$syncInformUndoManager=function(){}},$.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},$.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},$.prototype.getTabString=function(){return this.getUseSoftTabs()?T.stringRepeat(" ",this.getTabSize()):" "},$.prototype.setUseSoftTabs=function(N){this.setOption("useSoftTabs",N)},$.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},$.prototype.setTabSize=function(N){this.setOption("tabSize",N)},$.prototype.getTabSize=function(){return this.$tabSize},$.prototype.isTabStop=function(N){return this.$useSoftTabs&&N.column%this.$tabSize==0},$.prototype.setNavigateWithinSoftTabs=function(N){this.setOption("navigateWithinSoftTabs",N)},$.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},$.prototype.setOverwrite=function(N){this.setOption("overwrite",N)},$.prototype.getOverwrite=function(){return this.$overwrite},$.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},$.prototype.addGutterDecoration=function(N,q){this.$decorations[N]||(this.$decorations[N]=""),this.$decorations[N]+=" "+q,this._signal("changeBreakpoint",{})},$.prototype.removeGutterDecoration=function(N,q){this.$decorations[N]=(this.$decorations[N]||"").replace(" "+q,""),this._signal("changeBreakpoint",{})},$.prototype.getBreakpoints=function(){return this.$breakpoints},$.prototype.setBreakpoints=function(N){this.$breakpoints=[];for(var q=0;q<N.length;q++)this.$breakpoints[N[q]]="ace_breakpoint";this._signal("changeBreakpoint",{})},$.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},$.prototype.setBreakpoint=function(N,q){(q=q===void 0?"ace_breakpoint":q)?this.$breakpoints[N]=q:delete this.$breakpoints[N],this._signal("changeBreakpoint",{})},$.prototype.clearBreakpoint=function(N){delete this.$breakpoints[N],this._signal("changeBreakpoint",{})},$.prototype.addMarker=function(oe,q,G,ne){var le=this.$markerId++,oe={range:oe,type:G||"line",renderer:typeof G=="function"?G:null,clazz:q,inFront:!!ne,id:le};return ne?(this.$frontMarkers[le]=oe,this._signal("changeFrontMarker")):(this.$backMarkers[le]=oe,this._signal("changeBackMarker")),le},$.prototype.addDynamicMarker=function(N,q){var G;if(N.update)return G=this.$markerId++,N.id=G,N.inFront=!!q,q?(this.$frontMarkers[G]=N,this._signal("changeFrontMarker")):(this.$backMarkers[G]=N,this._signal("changeBackMarker")),N},$.prototype.removeMarker=function(N){var q=this.$frontMarkers[N]||this.$backMarkers[N];q&&(delete(q.inFront?this.$frontMarkers:this.$backMarkers)[N],this._signal(q.inFront?"changeFrontMarker":"changeBackMarker"))},$.prototype.getMarkers=function(N){return N?this.$frontMarkers:this.$backMarkers},$.prototype.highlight=function(N){var q;this.$searchHighlight||(q=new C(null,"ace_selected-word","text"),this.$searchHighlight=this.addDynamicMarker(q)),this.$searchHighlight.setRegexp(N)},$.prototype.highlightLines=function(N,q,G,ne){return typeof q!="number"&&(G=q,q=N),G=G||"ace_step",N=new A(N,0,q,1/0),N.id=this.addMarker(N,G,"fullLine",ne),N},$.prototype.setAnnotations=function(N){this.$annotations=N,this._signal("changeAnnotation",{})},$.prototype.getAnnotations=function(){return this.$annotations||[]},$.prototype.clearAnnotations=function(){this.setAnnotations([])},$.prototype.$detectNewLine=function(N){N=N.match(/^.*?(\r?\n)/m),this.$autoNewLine=N?N[1]:`
|
|
`},$.prototype.getWordRange=function(N,q){var G,ne=this.getLine(N),le=!1,oe=(G=(le=(le=0<q?!!ne.charAt(q-1).match(this.tokenRe):le)||!!ne.charAt(q).match(this.tokenRe))?this.tokenRe:/^\s+$/.test(ne.slice(q-1,q+1))?/\s/:this.nonTokenRe,q);if(0<oe){for(;0<=--oe&&ne.charAt(oe).match(G););oe++}for(var ve=q;ve<ne.length&&ne.charAt(ve).match(G);)ve++;return new A(N,oe,N,ve)},$.prototype.getAWordRange=function(N,q){for(var G=this.getWordRange(N,q),ne=this.getLine(G.end.row);ne.charAt(G.end.column).match(/[ \t]/);)G.end.column+=1;return G},$.prototype.setNewLineMode=function(N){this.doc.setNewLineMode(N)},$.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},$.prototype.setUseWorker=function(N){this.setOption("useWorker",N)},$.prototype.getUseWorker=function(){return this.$useWorker},$.prototype.onReloadTokenizer=function(N){var q=N.data;this.bgTokenizer.start(q.first),this._signal("tokenizerUpdate",N)},$.prototype.setMode=function(N,q){if(N&&typeof N=="object"){if(N.getTokenizer)return this.$onChangeMode(N);var G=N,ne=G.path}else ne=N||"ace/mode/text";this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new _),this.$modes[ne]&&!G?(this.$onChangeMode(this.$modes[ne]),q&&q()):(this.$modeId=ne,I.loadModule(["mode",ne],(function(le){if(this.$modeId!==ne)return q&&q();this.$modes[ne]&&!G?this.$onChangeMode(this.$modes[ne]):le&&le.Mode&&(le=new le.Mode(G),G||((this.$modes[ne]=le).$id=ne),this.$onChangeMode(le)),q&&q()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0))},$.prototype.$onChangeMode=function(N,q){var G,ne,le;q||(this.$modeId=N.$id),this.$mode===N||(G=this.$mode,this.$mode=N,this.$stopWorker(),this.$useWorker&&this.$startWorker(),(ne=N.getTokenizer()).on!==void 0&&(le=this.onReloadTokenizer.bind(this),ne.on("update",le)),this.bgTokenizer.setTokenizer(ne),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=N.tokenRe,this.nonTokenRe=N.nonTokenRe,q)||(N.attachToSession&&N.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(N.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:G,mode:N}))},$.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},$.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(N){I.warn("Could not load worker",N),this.$worker=null}},$.prototype.getMode=function(){return this.$mode},$.prototype.setScrollTop=function(N){this.$scrollTop===N||isNaN(N)||(this.$scrollTop=N,this._signal("changeScrollTop",N))},$.prototype.getScrollTop=function(){return this.$scrollTop},$.prototype.setScrollLeft=function(N){this.$scrollLeft===N||isNaN(N)||(this.$scrollLeft=N,this._signal("changeScrollLeft",N))},$.prototype.getScrollLeft=function(){return this.$scrollLeft},$.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},$.prototype.getLineWidgetMaxWidth=function(){var N;return this.lineWidgetsWidth!=null?this.lineWidgetsWidth:(N=0,this.lineWidgets.forEach(function(q){q&&q.screenWidth>N&&(N=q.screenWidth)}),this.lineWidgetWidth=N)},$.prototype.$computeWidth=function(N){if(this.$modified||N){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var q=this.doc.getAllLines(),G=this.$rowLengthCache,ne=0,le=0,oe=this.$foldData[le],ve=oe?oe.start.row:1/0,de=q.length,ae=0;ae<de;ae++){if(ve<ae){if(de<=(ae=oe.end.row+1))break;ve=(oe=this.$foldData[le++])?oe.start.row:1/0}G[ae]==null&&(G[ae]=this.$getStringScreenWidth(q[ae])[0]),G[ae]>ne&&(ne=G[ae])}this.screenWidth=ne}},$.prototype.getLine=function(N){return this.doc.getLine(N)},$.prototype.getLines=function(N,q){return this.doc.getLines(N,q)},$.prototype.getLength=function(){return this.doc.getLength()},$.prototype.getTextRange=function(N){return this.doc.getTextRange(N||this.selection.getRange())},$.prototype.insert=function(N,q){return this.doc.insert(N,q)},$.prototype.remove=function(N){return this.doc.remove(N)},$.prototype.removeFullLines=function(N,q){return this.doc.removeFullLines(N,q)},$.prototype.undoChanges=function(N,q){if(N.length){this.$fromUndo=!0;for(var G=N.length-1;G!=-1;G--){var ne=N[G];ne.action=="insert"||ne.action=="remove"?this.doc.revertDelta(ne):ne.folds&&this.addFolds(ne.folds)}!q&&this.$undoSelect&&(N.selectionBefore?this.selection.fromJSON(N.selectionBefore):this.selection.setRange(this.$getUndoSelection(N,!0))),this.$fromUndo=!1}},$.prototype.redoChanges=function(N,q){if(N.length){this.$fromUndo=!0;for(var G=0;G<N.length;G++){var ne=N[G];ne.action!="insert"&&ne.action!="remove"||this.doc.$safeApplyDelta(ne)}!q&&this.$undoSelect&&(N.selectionAfter?this.selection.fromJSON(N.selectionAfter):this.selection.setRange(this.$getUndoSelection(N,!1))),this.$fromUndo=!1}},$.prototype.setUndoSelect=function(N){this.$undoSelect=N},$.prototype.$getUndoSelection=function(N,q){function G(de){return q?de.action!=="insert":de.action==="insert"}for(var ne,le,oe=0;oe<N.length;oe++){var ve=N[oe];ve.start&&(ne?G(ve)?(le=ve.start,ne.compare(le.row,le.column)==-1&&ne.setStart(le),le=ve.end,ne.compare(le.row,le.column)==1&&ne.setEnd(le)):(le=ve.start,ne.compare(le.row,le.column)==-1&&(ne=A.fromPoints(ve.start,ve.start))):ne=G(ve)?A.fromPoints(ve.start,ve.end):A.fromPoints(ve.start,ve.start))}return ne},$.prototype.replace=function(N,q){return this.doc.replace(N,q)},$.prototype.moveText=function(N,ae,G){var ne,le,oe,ve=this.getTextRange(N),de=this.getFoldsInRange(N),ae=A.fromPoints(ae,ae);return G||(this.remove(N),le=N.start.row-N.end.row,(oe=le?-N.end.column:N.start.column-N.end.column)&&(ae.start.row==N.end.row&&ae.start.column>N.end.column&&(ae.start.column+=oe),ae.end.row==N.end.row)&&ae.end.column>N.end.column&&(ae.end.column+=oe),le&&ae.start.row>=N.end.row&&(ae.start.row+=le,ae.end.row+=le)),ae.end=this.insert(ae.start,ve),de.length&&(ne=N.start,G=ae.start,le=G.row-ne.row,oe=G.column-ne.column,this.addFolds(de.map(function(be){return(be=be.clone()).start.row==ne.row&&(be.start.column+=oe),be.end.row==ne.row&&(be.end.column+=oe),be.start.row+=le,be.end.row+=le,be}))),ae},$.prototype.indentRows=function(N,q,G){G=G.replace(/\t/g,this.getTabString());for(var ne=N;ne<=q;ne++)this.doc.insertInLine({row:ne,column:0},G)},$.prototype.outdentRows=function(N){for(var q=N.collapseRows(),G=new A(0,0,0,0),ne=this.getTabSize(),le=q.start.row;le<=q.end.row;++le){var oe=this.getLine(le);G.start.row=le,G.end.row=le;for(var ve=0;ve<ne&&oe.charAt(ve)==" ";++ve);ve<ne&&oe.charAt(ve)==" "?(G.start.column=ve,G.end.column=ve+1):(G.start.column=0,G.end.column=ve),this.remove(G)}},$.prototype.$moveLines=function(N,q,oe){if(N=this.getRowFoldStart(N),q=this.getRowFoldEnd(q),oe<0){if((le=this.getRowFoldStart(N+oe))<0)return 0;var ne=le-N}else if(0<oe){if((le=this.getRowFoldEnd(q+oe))>this.doc.getLength()-1)return 0;ne=le-q}else N=this.$clipRowToDocument(N),ne=(q=this.$clipRowToDocument(q))-N+1;var le=new A(N,0,q,Number.MAX_VALUE),le=this.getFoldsInRange(le).map(function(ve){return(ve=ve.clone()).start.row+=ne,ve.end.row+=ne,ve}),oe=oe==0?this.doc.getLines(N,q):this.doc.removeFullLines(N,q);return this.doc.insertFullLines(N+ne,oe),le.length&&this.addFolds(le),ne},$.prototype.moveLinesUp=function(N,q){return this.$moveLines(N,q,-1)},$.prototype.moveLinesDown=function(N,q){return this.$moveLines(N,q,1)},$.prototype.duplicateLines=function(N,q){return this.$moveLines(N,q,0)},$.prototype.$clipRowToDocument=function(N){return Math.max(0,Math.min(N,this.doc.getLength()-1))},$.prototype.$clipColumnToRow=function(N,q){return q<0?0:Math.min(this.doc.getLine(N).length,q)},$.prototype.$clipPositionToDocument=function(N,q){var G;return q=Math.max(0,q),q=N<0?N=0:(G=this.doc.getLength())<=N?this.doc.getLine(N=G-1).length:Math.min(this.doc.getLine(N).length,q),{row:N,column:q}},$.prototype.$clipRangeToDocument=function(N){N.start.row<0?(N.start.row=0,N.start.column=0):N.start.column=this.$clipColumnToRow(N.start.row,N.start.column);var q=this.doc.getLength()-1;return N.end.row>q?(N.end.row=q,N.end.column=this.doc.getLine(q).length):N.end.column=this.$clipColumnToRow(N.end.row,N.end.column),N},$.prototype.setUseWrapMode=function(N){N!=this.$useWrapMode&&(this.$useWrapMode=N,this.$modified=!0,this.$resetRowCache(0),N&&(N=this.getLength(),this.$wrapData=Array(N),this.$updateWrapData(0,N-1)),this._signal("changeWrapMode"))},$.prototype.getUseWrapMode=function(){return this.$useWrapMode},$.prototype.setWrapLimitRange=function(N,q){this.$wrapLimitRange.min===N&&this.$wrapLimitRange.max===q||(this.$wrapLimitRange={min:N,max:q},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},$.prototype.adjustWrapLimit=function(N,ne){var G=this.$wrapLimitRange,ne=(G.max<0&&(G={min:ne,max:ne}),this.$constrainWrapLimit(N,G.min,G.max));return ne!=this.$wrapLimit&&1<ne&&(this.$wrapLimit=ne,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},$.prototype.$constrainWrapLimit=function(N,q,G){return q&&(N=Math.max(q,N)),N=G?Math.min(G,N):N},$.prototype.getWrapLimit=function(){return this.$wrapLimit},$.prototype.setWrapLimit=function(N){this.setWrapLimitRange(N,N)},$.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},$.prototype.$updateInternalDataOnChange=function(N){var q=this.$useWrapMode,G=N.action,ne=N.start,le=N.end,oe=ne.row,ve=le.row,de=ve-oe,ae=null;if(this.$updating=!0,de!=0)if(G==="remove"){this[q?"$wrapData":"$rowLengthCache"].splice(oe,de);var be=this.$foldData,ae=this.getFoldsInRange(N);this.removeFolds(ae);var ie=0;for((X=this.getFoldLine(le.row))&&(X.addRemoveChars(le.row,le.column,ne.column-le.column),X.shiftRow(-de),(ce=this.getFoldLine(oe))&&ce!==X&&(ce.merge(X),X=ce),ie=be.indexOf(X)+1);ie<be.length;ie++)(X=be[ie]).start.row>=le.row&&X.shiftRow(-de);ve=oe}else{var ce=Array(de),pe=(ce.unshift(oe,0),q?this.$wrapData:this.$rowLengthCache),be=(pe.splice.apply(pe,ce),this.$foldData),ie=0;for((X=this.getFoldLine(oe))&&((pe=X.range.compareInside(ne.row,ne.column))==0?(X=X.split(ne.row,ne.column))&&(X.shiftRow(de),X.addRemoveChars(ve,0,le.column-ne.column)):pe==-1&&(X.addRemoveChars(oe,0,le.column-ne.column),X.shiftRow(de)),ie=be.indexOf(X)+1);ie<be.length;ie++)(X=be[ie]).start.row>=oe&&X.shiftRow(de)}else{var X,de=Math.abs(N.start.column-N.end.column);G==="remove"&&(ae=this.getFoldsInRange(N),this.removeFolds(ae),de=-de),(X=this.getFoldLine(oe))&&X.addRemoveChars(oe,ne.column,de)}return q&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,q?this.$updateWrapData(oe,ve):this.$updateRowLengthCache(oe,ve),ae},$.prototype.$updateRowLengthCache=function(N,q,G){this.$rowLengthCache[N]=null,this.$rowLengthCache[q]=null},$.prototype.$updateWrapData=function(N,q){var G,ne,le=this.doc.getAllLines(),oe=this.getTabSize(),ve=this.$wrapData,de=this.$wrapLimit,ae=N;for(q=Math.min(q,le.length-1);ae<=q;)(ne=this.getFoldLine(ae,ne))?(G=[],ne.walk((function(be,ie,ce,pe){var X;if(be!=null){(X=this.$getDisplayTokens(be,G.length))[0]=H;for(var Z=1;Z<X.length;Z++)X[Z]=Q}else X=this.$getDisplayTokens(le[ie].substring(pe,ce),G.length);G=G.concat(X)}).bind(this),ne.end.row,le[ne.end.row].length+1),ve[ne.start.row]=this.$computeWrapSplits(G,de,oe),ae=ne.end.row+1):(G=this.$getDisplayTokens(le[ae]),ve[ae]=this.$computeWrapSplits(G,de,oe),ae++)},$.prototype.$computeWrapSplits=function(N,q,G){if(N.length==0)return[];var ne=[],le=N.length,oe=0,ve=0,de=this.$wrapAsCode,ae=this.$indentedSoftWrap,be=q<=Math.max(2*G,8)||ae===!1?0:Math.floor(q/2);function ie(Z){for(var Y=Z-oe,se=oe;se<Z;se++){var fe=N[se];fe!==12&&fe!==2||--Y}ne.length||(ce=function(){var me=0;if(be===0)return me;if(ae)for(var Ae=0;Ae<N.length;Ae++){var Be=N[Ae];if(Be==K)me+=1;else if(Be==J)me+=G;else if(Be!=ue)break}return de&&ae!==!1&&(me+=G),Math.min(me,be)}(),ne.indent=ce),ve+=Y,ne.push(ve),oe=Z}for(var ce=0;q-ce<le-oe;){var pe=oe+q-ce;if(N[pe-1]>=K&&N[pe]>=K)ie(pe);else if(N[pe]==H||N[pe]==Q){for(;pe!=oe-1&&N[pe]!=H;pe--);if(!(oe<pe)){for(pe=oe+q;pe<N.length&&N[pe]==Q;pe++);if(pe==N.length)break}ie(pe)}else{for(var X=Math.max(pe-(q-(q>>2)),oe-1);X<pe&&N[pe]<H;)pe--;if(de){for(;X<pe&&N[pe]<H;)pe--;for(;X<pe&&N[pe]==U;)pe--}else for(;X<pe&&N[pe]<K;)pe--;X<pe?ie(++pe):(N[pe=oe+q]==V&&pe--,ie(pe-ce))}}return ne},$.prototype.$getDisplayTokens=function(N,q){var G,ne=[];q=q||0;for(var le=0;le<N.length;le++){var oe=N.charCodeAt(le);if(oe==9){G=this.getScreenTabSize(ne.length+q),ne.push(J);for(var ve=1;ve<G;ve++)ne.push(ue)}else oe==32?ne.push(K):39<oe&&oe<48||57<oe&&oe<64?ne.push(U):4352<=oe&&ee(oe)?ne.push(L,V):ne.push(L)}return ne},$.prototype.$getStringScreenWidth=function(N,q,G){if(q==0)return[0,0];var ne,le;for(q==null&&(q=1/0),G=G||0,le=0;le<N.length&&((ne=N.charCodeAt(le))==9?G+=this.getScreenTabSize(G):4352<=ne&&ee(ne)?G+=2:G+=1,!(q<G));le++);return[G,le]},$.prototype.getRowLength=function(N){var q=1;return this.lineWidgets&&(q+=this.lineWidgets[N]&&this.lineWidgets[N].rowCount||0),this.$useWrapMode&&this.$wrapData[N]?this.$wrapData[N].length+q:q},$.prototype.getRowLineCount=function(N){return this.$useWrapMode&&this.$wrapData[N]?this.$wrapData[N].length+1:1},$.prototype.getRowWrapIndent=function(N){var q;return this.$useWrapMode&&(N=this.screenToDocumentPosition(N,Number.MAX_VALUE),(q=this.$wrapData[N.row]).length)&&q[0]<N.column?q.indent:0},$.prototype.getScreenLastRowColumn=function(N){return N=this.screenToDocumentPosition(N,Number.MAX_VALUE),this.documentToScreenColumn(N.row,N.column)},$.prototype.getDocumentLastRowColumn=function(N,q){return N=this.documentToScreenRow(N,q),this.getScreenLastRowColumn(N)},$.prototype.getDocumentLastRowColumnPosition=function(N,q){return N=this.documentToScreenRow(N,q),this.screenToDocumentPosition(N,Number.MAX_VALUE/10)},$.prototype.getRowSplitData=function(N){if(this.$useWrapMode)return this.$wrapData[N]},$.prototype.getScreenTabSize=function(N){return this.$tabSize-(N%this.$tabSize|0)},$.prototype.screenToDocumentRow=function(N,q){return this.screenToDocumentPosition(N,q).row},$.prototype.screenToDocumentColumn=function(N,q){return this.screenToDocumentPosition(N,q).column},$.prototype.screenToDocumentPosition=function(N,q,G){if(N<0)return{row:0,column:0};for(var ne,le,oe,ve=0,de=0,ae=0,be=0,ie=this.$screenRowCache,ce=this.$getRowCacheIndex(ie,N),pe=ie.length,X=(oe=pe&&0<=ce?(ae=ie[ce],ve=this.$docRowCache[ce],N>ie[pe-1]):!pe,this.getLength()-1),Z=this.getNextFoldLine(ve),Y=Z?Z.start.row:1/0;ae<=N&&!(N<ae+(be=this.getRowLength(ve))||X<=ve);)ae+=be,Y<++ve&&(ve=Z.end.row+1,Y=(Z=this.getNextFoldLine(ve,Z))?Z.start.row:1/0),oe&&(this.$docRowCache.push(ve),this.$screenRowCache.push(ae));if(Z&&Z.start.row<=ve)ne=this.getFoldDisplayLine(Z),ve=Z.start.row;else{if(ae+be<=N||X<ve)return{row:X,column:this.getLine(X).length};ne=this.getLine(ve),Z=null}return ce=0,ie=Math.floor(N-ae),this.$useWrapMode&&(pe=this.$wrapData[ve])&&(le=pe[ie],0<ie)&&pe.length&&(ce=pe.indent,de=pe[ie-1]||pe[pe.length-1],ne=ne.substring(de)),G!==void 0&&this.$bidiHandler.isBidiRow(ae+ie,ve,ie)&&(q=this.$bidiHandler.offsetToCol(G)),de+=this.$getStringScreenWidth(ne,q-ce)[1],this.$useWrapMode&&le<=de&&(de=le-1),Z?Z.idxToPosition(de):{row:ve,column:de}},$.prototype.documentToScreenPosition=function(N,q){var ce=q===void 0?this.$clipPositionToDocument(N.row,N.column):this.$clipPositionToDocument(N,q),G=(N=ce.row,q=ce.column,0),ce=null;(ve=this.getFoldAt(N,q,1))&&(N=ve.start.row,q=ve.start.column);for(var ne,le,oe=0,ve=this.$docRowCache,pe=this.$getRowCacheIndex(ve,N),de=ve.length,ae=(le=de&&0<=pe?(oe=ve[pe],G=this.$screenRowCache[pe],N>ve[de-1]):!de,this.getNextFoldLine(oe)),be=ae?ae.start.row:1/0;oe<N;){if(be<=oe){if(N<(ne=ae.end.row+1))break;be=(ae=this.getNextFoldLine(ne,ae))?ae.start.row:1/0}else ne=oe+1;G+=this.getRowLength(oe),oe=ne,le&&(this.$docRowCache.push(oe),this.$screenRowCache.push(G))}var ie="",ce=ae&&be<=oe?(ie=this.getFoldDisplayLine(ae,N,q),ae.start.row):(ie=this.getLine(N).substring(0,q),N),pe=0;if(this.$useWrapMode){var X=this.$wrapData[ce];if(X){for(var Z=0;ie.length>=X[Z];)G++,Z++;ie=ie.substring(X[Z-1]||0,ie.length),pe=0<Z?X.indent:0}}return this.lineWidgets&&this.lineWidgets[oe]&&this.lineWidgets[oe].rowsAbove&&(G+=this.lineWidgets[oe].rowsAbove),{row:G,column:pe+this.$getStringScreenWidth(ie)[0]}},$.prototype.documentToScreenColumn=function(N,q){return this.documentToScreenPosition(N,q).column},$.prototype.documentToScreenRow=function(N,q){return this.documentToScreenPosition(N,q).row},$.prototype.getScreenLength=function(){var N=0,q=null;if(this.$useWrapMode)for(var G=this.$wrapData.length,ne=0,le=0,oe=(q=this.$foldData[le++])?q.start.row:1/0;ne<G;){var ve=this.$wrapData[ne];N+=ve?ve.length+1:1,oe<++ne&&(ne=q.end.row+1,oe=(q=this.$foldData[le++])?q.start.row:1/0)}else for(var N=this.getLength(),de=this.$foldData,le=0;le<de.length;le++)N-=(q=de[le]).end.row-q.start.row;return this.lineWidgets&&(N+=this.$getWidgetScreenLength()),N},$.prototype.$setFontMetrics=function(N){this.$enableVarChar&&(this.$getStringScreenWidth=function(q,G,ne){if(G===0)return[0,0];var le,oe;for(G=G||1/0,ne=ne||0,oe=0;oe<q.length&&!(G<(ne+=(le=q.charAt(oe))===" "?this.getScreenTabSize(ne):N.getCharacterWidth(le)));oe++);return[ne,oe]})},$.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},$);function $(N,q){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++$.$uid,this.$foldData.toString=function(){return this.join(`
|
|
`)},this.bgTokenizer=new D(new _().getTokenizer(),this);var G=this;this.bgTokenizer.on("update",function(ne){G._signal("tokenizerUpdate",ne)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),typeof N=="object"&&N.getLine||(N=new R(N)),this.setDocument(N),this.selection=new y(this),this.$bidiHandler=new S(this),I.resetOptions(this),this.setMode(q),I._signal("session",this),this.destroyed=!1}P.$uid=0,P.prototype.$modes=I.$modes,P.prototype.getValue=P.prototype.toString,P.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},P.prototype.$overwrite=!1,P.prototype.$mode=null,P.prototype.$modeId=null,P.prototype.$scrollTop=0,P.prototype.$scrollLeft=0,P.prototype.$wrapLimit=80,P.prototype.$useWrapMode=!1,P.prototype.$wrapLimitRange={min:null,max:null},P.prototype.lineWidgets=null,P.prototype.isFullWidth=ee,k.implement(P.prototype,O);var L=1,V=2,H=3,Q=4,U=9,K=10,J=11,ue=12;function ee(N){return!(N<4352)&&(4352<=N&&N<=4447||4515<=N&&N<=4519||4602<=N&&N<=4607||9001<=N&&N<=9002||11904<=N&&N<=11929||11931<=N&&N<=12019||12032<=N&&N<=12245||12272<=N&&N<=12283||12288<=N&&N<=12350||12353<=N&&N<=12438||12441<=N&&N<=12543||12549<=N&&N<=12589||12593<=N&&N<=12686||12688<=N&&N<=12730||12736<=N&&N<=12771||12784<=N&&N<=12830||12832<=N&&N<=12871||12880<=N&&N<=13054||13056<=N&&N<=19903||19968<=N&&N<=42124||42128<=N&&N<=42182||43360<=N&&N<=43388||44032<=N&&N<=55203||55216<=N&&N<=55238||55243<=N&&N<=55291||63744<=N&&N<=64255||65040<=N&&N<=65049||65072<=N&&N<=65106||65108<=N&&N<=65126||65128<=N&&N<=65131||65281<=N&&N<=65376||65504<=N&&N<=65510)}v("./edit_session/folding").Folding.call(P.prototype),v("./edit_session/bracket_match").BracketMatch.call(P.prototype),I.defineOptions(P.prototype,"session",{wrap:{set:function(N){N&&N!="off"?N=="free"?N=!0:N=="printMargin"?N=-1:typeof N=="string"&&(N=parseInt(N,10)||!1):N=!1,this.$wrap!=N&&((this.$wrap=N)?(this.setWrapLimitRange(N=typeof N=="number"?N:null,N),this.setUseWrapMode(!0)):this.setUseWrapMode(!1))},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(N){(N=N=="auto"?this.$mode.type!="text":N!="text")!=this.$wrapAsCode&&(this.$wrapAsCode=N,this.$useWrapMode)&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(N){this.$useWorker=N,this.$stopWorker(),N&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(N){0<(N=parseInt(N))&&this.$tabSize!==N&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=N,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(N){this.setFoldStyle(N)},handlesSet:!0},overwrite:{set:function(N){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(N){this.doc.setNewLineMode(N)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(N){this.setMode(N)},get:function(){return this.$modeId},handlesSet:!0}}),m.EditSession=P}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(v,m,w){var k=v("./lib/lang"),T=v("./lib/oop"),S=v("./range").Range;function I(){this.$options={}}I.prototype.set=function(O){return T.mixin(this.$options,O),this},I.prototype.getOptions=function(){return k.copyObject(this.$options)},I.prototype.setOptions=function(O){this.$options=O},I.prototype.find=function(A){var y,_=this.$options,A=this.$matchIterator(A,_);return!!A&&(y=null,A.forEach(function(R,D,C,x){return y=new S(R,D,C,x),!(D==x&&_.start&&_.start.start&&_.skipCurrent!=0&&y.isEqual(_.start)&&(y=null,1))}),y)},I.prototype.findAll=function(O){var y=this.$options;if(!y.needle)return[];this.$assembleRegExp(y);var _=y.range,A=_?O.getLines(_.start.row,_.end.row):O.doc.getAllLines(),R=[],D=y.re;if(y.$isMultiLine){var C,x=D.length,P=A.length-x;e:for(var $=D.offset||0;$<=P;$++){for(var L=0;L<x;L++)if(A[$+L].search(D[L])==-1)continue e;var V=A[$],H=A[$+x-1],V=V.length-V.match(D[0])[0].length,H=H.match(D[x-1])[0].length;C&&C.end.row===$&&C.end.column>V||(R.push(C=new S($,V,$+x-1,H)),2<x&&($=$+x-2))}}else for(var Q=0;Q<A.length;Q++)for(var U=k.getMatchOffsets(A[Q],D),L=0;L<U.length;L++){var K=U[L];R.push(new S(Q,K.offset,Q,K.offset+K.length))}if(_){for(var J=_.start.column,ue=_.end.column,Q=0,L=R.length-1;Q<L&&R[Q].start.column<J&&R[Q].start.row==0;)Q++;for(var ee=_.end.row-_.start.row;Q<L&&R[L].end.column>ue&&R[L].end.row==ee;)L--;for(R=R.slice(Q,L+1),Q=0,L=R.length;Q<L;Q++)R[Q].start.row+=_.start.row,R[Q].end.row+=_.start.row}return R},I.prototype.replace=function(O,y){var _=this.$options,A=this.$assembleRegExp(_);if(_.$isMultiLine)return y;if(A){var R=A.exec(O);if(!R||R[0].length!=O.length)return null;if(y=O.replace(A,y),_.preserveCase){y=y.split("");for(var D=Math.min(O.length,O.length);D--;){var C=O[D];C&&C.toLowerCase()!=C?y[D]=y[D].toUpperCase():y[D]=y[D].toLowerCase()}y=y.join("")}return y}},I.prototype.$assembleRegExp=function(O,y){if(O.needle instanceof RegExp)return O.re=O.needle;var _,A,R,D,C=O.needle;if(!O.needle)return O.re=!1;O.$supportsUnicodeFlag===void 0&&(O.$supportsUnicodeFlag=k.supportsUnicodeFlag());try{new RegExp(C,"u")}catch{O.$supportsUnicodeFlag=!1}function x(L,V){return V===void 0&&(V=!0),(R&&A.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w")).test(L)||A.regExp?R&&A.$supportsUnicodeFlag?V?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}O.regExp||(C=k.escapeRegExp(C)),O.wholeWord&&(_=C,A=O,R=k.supportsLookbehind(),D=Array.from(_),P=D[0],D=D[D.length-1],C=x(P)+_+x(D,!1));var P=O.caseSensitive?"gm":"gmi";if(O.$supportsUnicodeFlag&&(P+="u"),O.$isMultiLine=!y&&/[\n\r]/.test(C),O.$isMultiLine)return O.re=this.$assembleMultilineRegExp(C,P);try{var $=new RegExp(C,P)}catch{$=!1}return O.re=$},I.prototype.$assembleMultilineRegExp=function(O,y){for(var _=O.replace(/\r\n|\r|\n/g,`$
|
|
^`).split(`
|
|
`),A=[],R=0;R<_.length;R++)try{A.push(new RegExp(_[R],y))}catch{return!1}return A},I.prototype.$matchIterator=function(O,y){var _,A,R,D,C,x,P,$,L=this.$assembleRegExp(y);return!!L&&(_=y.backwards==1,A=y.skipCurrent!=0,R=y.range,(D=(D=y.start)||(R?R[_?"end":"start"]:O.selection.getRange())).start&&(D=D[A!=_?"end":"start"]),C=R?R.start.row:0,x=R?R.end.row:O.getLength()-1,$=y.$isMultiLine?(P=L.length,function(V,H,Q){var U=_?V-P+1:V;if(!(U<0||U+P>O.getLength())){var K=O.getLine(U),V=K.search(L[0]);if(!(!_&&V<H||V===-1)){for(var J=1;J<P;J++)if((K=O.getLine(U+J)).search(L[J])==-1)return;var ue=K.match(L[P-1])[0].length;if(!(_&&H<ue))return!!Q(U,V,U+P-1,ue)||void 0}}}):_?function(V,H,Q){var U,K=O.getLine(V),J=[];for(L.lastIndex=0;U=L.exec(K);){var ue=U[0].length,ee=U.index;if(!ue){if(ee>=K.length)break;L.lastIndex=ee+=1}if(U.index+ue>H)break;J.push(U.index,ue)}for(var N=J.length-1;0<=N;N-=2){var q=J[N-1];if(Q(V,q,V,q+(ue=J[N])))return!0}}:function(V,H,Q){var U=O.getLine(V);for(L.lastIndex=H;K=L.exec(U);){var K,J=K[0].length;if(Q(V,K=K.index,V,K+J))return!0;if(!J&&(L.lastIndex=K+=1,K>=U.length))return!1}},{forEach:_?function(V){var H=D.row;if(!$(H,D.column,V)){for(H--;C<=H;H--)if($(H,Number.MAX_VALUE,V))return;if(y.wrap!=0){for(H=x,C=D.row;C<=H;H--)if($(H,Number.MAX_VALUE,V))return}}}:function(V){var H=D.row;if(!$(H,D.column,V)){for(H+=1;H<=x;H++)if($(H,0,V))return;if(y.wrap!=0){for(H=C,x=D.row;H<=x;H++)if($(H,0,V))return}}}})},m.Search=I}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(D,m,w){var k,T=this&&this.__extends||(k=function(x,P){return(k=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function($,L){$.__proto__=L}:function($,L){for(var V in L)Object.prototype.hasOwnProperty.call(L,V)&&($[V]=L[V])}))(x,P)},function(x,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function $(){this.constructor=x}k(x,P),x.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}),S=D("../lib/keys"),I=D("../lib/useragent"),O=S.KEY_MODS,y=(_.prototype.$init=function(x,P,$){this.platform=P||(I.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(x),this.$singleCommand=$},_.prototype.addCommand=function(x){this.commands[x.name]&&this.removeCommand(x),(this.commands[x.name]=x).bindKey&&this._buildKeyHash(x)},_.prototype.removeCommand=function(x,P){var $,L=x&&(typeof x=="string"?x:x.name),V=(x=this.commands[L],P||delete this.commands[L],this.commandKeyBinding);for($ in V){var H,Q=V[$];Q==x?delete V[$]:Array.isArray(Q)&&(H=Q.indexOf(x))!=-1&&(Q.splice(H,1),Q.length==1)&&(V[$]=Q[0])}},_.prototype.bindKey=function(x,P,$){if(typeof x=="object"&&x&&($==null&&($=x.position),x=x[this.platform]),x)return typeof P=="function"?this.addCommand({exec:P,bindKey:x,name:P.name||x}):void x.split("|").forEach(function(Q){var V="",H=(Q.indexOf(" ")!=-1&&(Q=(H=Q.split(/\s+/)).pop(),H.forEach(function(U){U=this.parseKeys(U),U=O[U.hashId]+U.key,V+=(V?" ":"")+U,this._addCommandToBinding(V,"chainKeys")},this),V+=" "),this.parseKeys(Q)),Q=O[H.hashId]+H.key;this._addCommandToBinding(V+Q,P,$)},this)},_.prototype._addCommandToBinding=function(x,P,$){var L=this.commandKeyBinding;if(P)if(!L[x]||this.$singleCommand)L[x]=P;else{Array.isArray(L[x])?(H=L[x].indexOf(P))!=-1&&L[x].splice(H,1):L[x]=[L[x]],typeof $!="number"&&($=A(P));for(var V=L[x],H=0;H<V.length&&!($<A(V[H]));H++);V.splice(H,0,P)}else delete L[x]},_.prototype.addCommands=function(x){x&&Object.keys(x).forEach(function(P){var $=x[P];if($){if(typeof $=="string")return this.bindKey($,P);typeof($=typeof $=="function"?{exec:$}:$)=="object"&&($.name||($.name=P),this.addCommand($))}},this)},_.prototype.removeCommands=function(x){Object.keys(x).forEach(function(P){this.removeCommand(x[P])},this)},_.prototype.bindKeys=function(x){Object.keys(x).forEach(function(P){this.bindKey(P,x[P])},this)},_.prototype._buildKeyHash=function(x){this.bindKey(x.bindKey,x)},_.prototype.parseKeys=function(x){var P=x.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(U){return U}),$=P.pop(),L=S[$];if(S.FUNCTION_KEYS[L])$=S.FUNCTION_KEYS[L].toLowerCase();else{if(!P.length)return{key:$,hashId:-1};if(P.length==1&&P[0]=="shift")return{key:$.toUpperCase(),hashId:-1}}for(var V=0,H=P.length;H--;){var Q=S.KEY_MODS[P[H]];if(Q==null)return typeof console<"u"&&console.error("invalid modifier "+P[H]+" in "+x),!1;V|=Q}return{key:$,hashId:V}},_.prototype.findKeyCommand=function(x,P){return x=O[x]+P,this.commandKeyBinding[x]},_.prototype.handleKeyboard=function(x,P,$,L){var V,H;if(!(L<0))return V=O[P]+$,H=this.commandKeyBinding[V],x.$keyChain&&(x.$keyChain+=" "+V,H=this.commandKeyBinding[x.$keyChain]||H),!H||H!="chainKeys"&&H[H.length-1]!="chainKeys"?(x.$keyChain&&(P&&P!=4||$.length!=1?(P==-1||0<L)&&(x.$keyChain=""):x.$keyChain=x.$keyChain.slice(0,-V.length-1)),{command:H}):(x.$keyChain=x.$keyChain||V,{command:"null"})},_.prototype.getStatusText=function(x,P){return P.$keyChain||""},_);function _(x,P){this.$init(x,P,!1)}function A(x){return typeof x=="object"&&x.bindKey&&x.bindKey.position||(x.isDefault?-100:0)}T(C,R=y);var R,D=C;function C(x,P){return x=R.call(this,x,P)||this,x.$singleCommand=!0,x}D.call=function(x,P,$){y.prototype.$init.call(x,P,$,!0)},y.call=function(x,P,$){y.prototype.$init.call(x,P,$,!1)},m.HashHandler=D,m.MultiHashHandler=y}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(O,m,w){var k,T,y=this&&this.__extends||(k=function(A,R){return(k=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(D,C){D.__proto__=C}:function(D,C){for(var x in C)Object.prototype.hasOwnProperty.call(C,x)&&(D[x]=C[x])}))(A,R)},function(A,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function D(){this.constructor=A}k(A,R),A.prototype=R===null?Object.create(R):(D.prototype=R.prototype,new D)}),S=O("../lib/oop"),I=O("../keyboard/hash_handler").MultiHashHandler,O=O("../lib/event_emitter").EventEmitter,y=(y(_,T=I),_.prototype.exec=function(A,R,D){if(Array.isArray(A)){for(var C=A.length;C--;)if(this.exec(A[C],R,D))return!0;return!1}var x;return!!(A=typeof A=="string"?this.commands[A]:A)&&!(R&&R.$readOnly&&!A.readOnly||this.$checkCommandState!=0&&A.isAvailable&&!A.isAvailable(R)||((x={editor:R,command:A,args:D}).returnValue=this._emit("exec",x),this._signal("afterExec",x),x.returnValue===!1))},_.prototype.toggleRecording=function(A){if(!this.$inReplay)return A&&A._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(R){this.macro.push([R.command,R.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},_.prototype.replay=function(A){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(A);try{this.$inReplay=!0,this.macro.forEach(function(R){typeof R=="string"?this.exec(R,A):this.exec(R[0],A,R[1])},this)}finally{this.$inReplay=!1}}},_.prototype.trimMacro=function(A){return A.map(function(R){return typeof R[0]!="string"&&(R[0]=R[0].name),R=R[1]?R:R[0]})},_);function _(A,R){return R=T.call(this,R,A)||this,R.byName=R.commands,R.setDefaultHandler("exec",function(D){return D.args?D.command.exec(D.editor,D.args,D.event,!1):D.command.exec(D.editor,{},D.event,!0)}),R}S.implement(y.prototype,O),m.CommandManager=y}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(v,m,w){var k=v("../lib/lang"),T=v("../config"),S=v("../range").Range;function I(y,_){return{win:y,mac:_}}m.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:I("Ctrl-,","Command-,"),exec:function(y){T.loadModule("ace/ext/settings_menu",function(_){_.init(y),y.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:I("Alt-E","F4"),exec:function(y){T.loadModule("ace/ext/error_marker",function(_){_.showErrorMarker(y,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:I("Alt-Shift-E","Shift-F4"),exec:function(y){T.loadModule("ace/ext/error_marker",function(_){_.showErrorMarker(y,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:I("Ctrl-A","Command-A"),exec:function(y){y.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:I(null,"Ctrl-L"),exec:function(y){y.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:I("Ctrl-L","Command-L"),exec:function(y,_){typeof _!="number"||isNaN(_)||y.gotoLine(_),y.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:I("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(y){y.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:I("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(y){y.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:I("F2","F2"),exec:function(y){y.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:I("Alt-F2","Alt-F2"),exec:function(y){y.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:I(null,"Ctrl-Command-Option-0"),exec:function(y){y.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:I(null,"Ctrl-Command-Option-0"),exec:function(y){y.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:I("Alt-0","Command-Option-0"),exec:function(y){y.session.foldAll(),y.session.unfold(y.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:I("Alt-Shift-0","Command-Option-Shift-0"),exec:function(y){y.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:I("Ctrl-K","Command-G"),exec:function(y){y.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:I("Ctrl-Shift-K","Command-Shift-G"),exec:function(y){y.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:I("Alt-K","Ctrl-G"),exec:function(y){y.selection.isEmpty()?y.selection.selectWord():y.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:I("Alt-Shift-K","Ctrl-Shift-G"),exec:function(y){y.selection.isEmpty()?y.selection.selectWord():y.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:I("Ctrl-F","Command-F"),exec:function(y){T.loadModule("ace/ext/searchbox",function(_){_.Search(y)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(y){y.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:I("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(y){y.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:I("Ctrl-Home","Command-Home|Command-Up"),exec:function(y){y.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:I("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(y){y.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:I("Up","Up|Ctrl-P"),exec:function(y,_){y.navigateUp(_.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:I("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(y){y.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:I("Ctrl-End","Command-End|Command-Down"),exec:function(y){y.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:I("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(y){y.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:I("Down","Down|Ctrl-N"),exec:function(y,_){y.navigateDown(_.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:I("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(y){y.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:I("Ctrl-Left","Option-Left"),exec:function(y){y.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:I("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(y){y.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:I("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(y){y.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:I("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(y){y.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:I("Left","Left|Ctrl-B"),exec:function(y,_){y.navigateLeft(_.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:I("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(y){y.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:I("Ctrl-Right","Option-Right"),exec:function(y){y.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:I("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(y){y.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:I("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(y){y.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:I("Shift-Right","Shift-Right"),exec:function(y){y.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:I("Right","Right|Ctrl-F"),exec:function(y,_){y.navigateRight(_.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(y){y.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:I(null,"Option-PageDown"),exec:function(y){y.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:I("PageDown","PageDown|Ctrl-V"),exec:function(y){y.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(y){y.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:I(null,"Option-PageUp"),exec:function(y){y.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(y){y.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:I("Ctrl-Up",null),exec:function(y){y.renderer.scrollBy(0,-2*y.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:I("Ctrl-Down",null),exec:function(y){y.renderer.scrollBy(0,2*y.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(y){y.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(y){y.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:I("Ctrl-Alt-E","Command-Option-E"),exec:function(y){y.commands.toggleRecording(y)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:I("Ctrl-Shift-E","Command-Shift-E"),exec:function(y){y.commands.replay(y)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:I("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(y){y.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:I("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(y){y.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:I("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(y){y.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:I(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(y){},readOnly:!0},{name:"cut",description:"Cut",exec:function(y){var _=y.$copyWithEmptySelection&&y.selection.isEmpty()?y.selection.getLineRange():y.selection.getRange();y._emit("cut",_),_.isEmpty()||y.session.remove(_),y.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(y,_){y.$handlePaste(_)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:I("Ctrl-D","Command-D"),exec:function(y){y.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:I("Ctrl-Shift-D","Command-Shift-D"),exec:function(y){y.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:I("Ctrl-Alt-S","Command-Alt-S"),exec:function(y){y.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:I("Ctrl-/","Command-/"),exec:function(y){y.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:I("Ctrl-Shift-/","Command-Shift-/"),exec:function(y){y.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:I("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(y){y.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:I("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(y){y.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:I("Ctrl-H","Command-Option-F"),exec:function(y){T.loadModule("ace/ext/searchbox",function(_){_.Search(y,!0)})}},{name:"undo",description:"Undo",bindKey:I("Ctrl-Z","Command-Z"),exec:function(y){y.undo()}},{name:"redo",description:"Redo",bindKey:I("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(y){y.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:I("Alt-Shift-Up","Command-Option-Up"),exec:function(y){y.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:I("Alt-Up","Option-Up"),exec:function(y){y.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:I("Alt-Shift-Down","Command-Option-Down"),exec:function(y){y.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:I("Alt-Down","Option-Down"),exec:function(y){y.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:I("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(y){y.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:I("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(y){y.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:I("Shift-Delete",null),exec:function(y){if(!y.selection.isEmpty())return!1;y.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:I("Alt-Backspace","Command-Backspace"),exec:function(y){y.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:I("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(y){y.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:I("Ctrl-Shift-Backspace",null),exec:function(y){var _=y.selection.getRange();_.start.column=0,y.session.remove(_)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:I("Ctrl-Shift-Delete",null),exec:function(y){var _=y.selection.getRange();_.end.column=Number.MAX_VALUE,y.session.remove(_)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:I("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(y){y.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:I("Ctrl-Delete","Alt-Delete"),exec:function(y){y.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:I("Shift-Tab","Shift-Tab"),exec:function(y){y.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:I("Tab","Tab"),exec:function(y){y.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:I("Ctrl-[","Ctrl-["),exec:function(y){y.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:I("Ctrl-]","Ctrl-]"),exec:function(y){y.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(y,_){y.insert(_)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(y,_){y.insert(k.stringRepeat(_.text||"",_.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:I(null,"Ctrl-O"),exec:function(y){y.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:I("Alt-Shift-X","Ctrl-T"),exec:function(y){y.transposeLetters()},multiSelectAction:function(y){y.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:I("Ctrl-U","Ctrl-U"),exec:function(y){y.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:I("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(y){y.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:I(null,null),exec:function(y){y.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:I("Ctrl-Shift-L","Command-Shift-L"),exec:function(y){var _=y.selection.getRange();_.start.column=_.end.column=0,_.end.row++,y.selection.setRange(_,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:I("Ctrl+F3","F3"),exec:function(y){y.openLink()}},{name:"joinlines",description:"Join lines",bindKey:I(null,null),exec:function(y){for(var R=y.selection.isBackwards(),_=R?y.selection.getSelectionLead():y.selection.getSelectionAnchor(),A=R?y.selection.getSelectionAnchor():y.selection.getSelectionLead(),R=y.session.doc.getLine(_.row).length,D=y.session.doc.getTextRange(y.selection.getRange()).replace(/\n\s*/," ").length,C=y.session.doc.getLine(_.row),x=_.row+1;x<=A.row+1;x++){var P=k.stringTrimLeft(k.stringTrimRight(y.session.doc.getLine(x)));C+=P=P.length!==0?" "+P:P}A.row+1<y.session.doc.getLength()-1&&(C+=y.session.doc.getNewLineCharacter()),y.clearSelection(),y.session.doc.replace(new S(_.row,0,A.row+2,0),C),0<D?(y.selection.moveCursorTo(_.row,_.column),y.selection.selectTo(_.row,_.column+D)):(R=y.session.doc.getLine(_.row).length>R?R+1:R,y.selection.moveCursorTo(_.row,R))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:I(null,null),exec:function(y){var _=y.session.doc.getLength()-1,A=y.session.doc.getLine(_).length,R=y.selection.rangeList.ranges,D=[];R.length<1&&(R=[y.selection.getRange()]);for(var C=0;C<R.length;C++)C!=R.length-1||R[C].end.row===_&&R[C].end.column===A||D.push(new S(R[C].end.row,R[C].end.column,_,A)),C===0?R[C].start.row===0&&R[C].start.column===0||D.push(new S(0,0,R[C].start.row,R[C].start.column)):D.push(new S(R[C-1].end.row,R[C-1].end.column,R[C].start.row,R[C].start.column));for(y.exitMultiSelectMode(),y.clearSelection(),C=0;C<D.length;C++)y.selection.addRange(D[C],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(y){y.selection.clearSelection(),y.navigateLineEnd(),y.insert(`
|
|
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(y){y.selection.clearSelection();var _=y.getCursorPosition();y.selection.moveTo(_.row-1,Number.MAX_VALUE),y.insert(`
|
|
`),_.row===0&&y.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(y){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),y.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:I("F1","F1"),exec:function(y){y.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:I(null,null),exec:function(y){y.prompt({$type:"modes"})},readOnly:!0}];for(var O=1;O<9;O++)m.commands.push({name:"foldToLevel"+O,description:"Fold To Level "+O,level:O,exec:function(y){y.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(v,m,w){var k=v("./lib/dom");function T(S){this.session=S,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}T.prototype.getRowLength=function(S){var I=this.lineWidgets&&this.lineWidgets[S]&&this.lineWidgets[S].rowCount||0;return this.$useWrapMode&&this.$wrapData[S]?this.$wrapData[S].length+1+I:1+I},T.prototype.$getWidgetScreenLength=function(){var S=0;return this.lineWidgets.forEach(function(I){I&&I.rowCount&&!I.hidden&&(S+=I.rowCount)}),S},T.prototype.$onChangeEditor=function(S){this.attach(S.editor)},T.prototype.attach=function(S){S&&S.widgetManager&&S.widgetManager!=this&&S.widgetManager.detach(),this.editor!=S&&(this.detach(),this.editor=S)&&(S.widgetManager=this,S.renderer.on("beforeRender",this.measureWidgets),S.renderer.on("afterRender",this.renderWidgets))},T.prototype.detach=function(S){var I=this.editor;I&&(this.editor=null,I.widgetManager=null,I.renderer.off("beforeRender",this.measureWidgets),I.renderer.off("afterRender",this.renderWidgets),I=this.session.lineWidgets)&&I.forEach(function(O){O&&O.el&&O.el.parentNode&&(O._inDocument=!1,O.el.parentNode.removeChild(O.el))})},T.prototype.updateOnFold=function(S,I){var O=I.lineWidgets;if(O&&S.action){for(var I=S.data,y=I.start.row,_=I.end.row,A=S.action=="add",R=y+1;R<_;R++)O[R]&&(O[R].hidden=A);O[_]&&(A?O[y]?O[_].hidden=A:O[y]=O[_]:(O[y]==O[_]&&(O[y]=void 0),O[_].hidden=A))}},T.prototype.updateOnChange=function(S){var I,O,y,_=this.session.lineWidgets;_&&(I=S.start.row,(O=S.end.row-I)!=0)&&(S.action=="remove"?(y=_.splice(I+1,O),!_[I]&&y[y.length-1]&&(_[I]=y.pop()),y.forEach(function(A){A&&this.removeLineWidget(A)},this)):(y=new Array(O),_[I]&&_[I].column!=null&&S.start.column>_[I].column&&I++,y.unshift(I,0),_.splice.apply(_,y)),this.$updateRows())},T.prototype.$updateRows=function(){var S,I=this.session.lineWidgets;I&&(S=!0,I.forEach(function(O,y){if(O)for(S=!1,O.row=y;O.$oldWidget;)O.$oldWidget.row=y,O=O.$oldWidget}),S)&&(this.session.lineWidgets=null)},T.prototype.$registerLineWidget=function(S){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var I=this.session.lineWidgets[S.row];return I&&(S.$oldWidget=I).el&&I.el.parentNode&&(I.el.parentNode.removeChild(I.el),I._inDocument=!1),this.session.lineWidgets[S.row]=S},T.prototype.addLineWidget=function(S){var I,O,y;return this.$registerLineWidget(S),S.session=this.session,this.editor&&(I=this.editor.renderer,S.html&&!S.el&&(S.el=k.createElement("div"),S.el.innerHTML=S.html),S.text&&!S.el&&(S.el=k.createElement("div"),S.el.textContent=S.text),S.el&&(k.addCssClass(S.el,"ace_lineWidgetContainer"),S.className&&k.addCssClass(S.el,S.className),S.el.style.position="absolute",S.el.style.zIndex=5,I.container.appendChild(S.el),S._inDocument=!0,S.coverGutter||(S.el.style.zIndex=3),S.pixelHeight==null)&&(S.pixelHeight=S.el.offsetHeight),S.rowCount==null&&(S.rowCount=S.pixelHeight/I.layerConfig.lineHeight),O=this.session.getFoldAt(S.row,0),(S.$fold=O)&&(y=this.session.lineWidgets,S.row!=O.end.row||y[O.start.row]?S.hidden=!0:y[O.start.row]=S),this.session._emit("changeFold",{data:{start:{row:S.row}}}),this.$updateRows(),this.renderWidgets(null,I),this.onWidgetChanged(S)),S},T.prototype.removeLineWidget=function(S){if(S._inDocument=!1,S.session=null,S.el&&S.el.parentNode&&S.el.parentNode.removeChild(S.el),S.editor&&S.editor.destroy)try{S.editor.destroy()}catch{}if(this.session.lineWidgets){var I=this.session.lineWidgets[S.row];if(I==S)this.session.lineWidgets[S.row]=S.$oldWidget,S.$oldWidget&&this.onWidgetChanged(S.$oldWidget);else for(;I;){if(I.$oldWidget==S){I.$oldWidget=S.$oldWidget;break}I=I.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:S.row}}}),this.$updateRows()},T.prototype.getWidgetsAtRow=function(S){for(var I=this.session.lineWidgets,O=I&&I[S],y=[];O;)y.push(O),O=O.$oldWidget;return y},T.prototype.onWidgetChanged=function(S){this.session._changedWidgets.push(S),this.editor&&this.editor.renderer.updateFull()},T.prototype.measureWidgets=function(S,I){var O=this.session._changedWidgets,y=I.layerConfig;if(O&&O.length){for(var _=1/0,A=0;A<O.length;A++){var R=O[A];if(R&&R.el&&R.session==this.session){if(!R._inDocument){if(this.session.lineWidgets[R.row]!=R)continue;R._inDocument=!0,I.container.appendChild(R.el)}R.h=R.el.offsetHeight,R.fixedWidth||(R.w=R.el.offsetWidth,R.screenWidth=Math.ceil(R.w/y.characterWidth));var D=R.h/y.lineHeight;R.coverLine&&(D-=this.session.getRowLineCount(R.row))<0&&(D=0),R.rowCount!=D&&(R.rowCount=D,R.row<_)&&(_=R.row)}}_!=1/0&&(this.session._emit("changeFold",{data:{start:{row:_}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},T.prototype.renderWidgets=function(S,I){var O=I.layerConfig,y=this.session.lineWidgets;if(y){for(var _=Math.min(this.firstRow,O.firstRow),A=Math.max(this.lastRow,O.lastRow,y.length);0<_&&!y[_];)_--;this.firstRow=O.firstRow,this.lastRow=O.lastRow,I.$cursorLayer.config=O;for(var R=_;R<=A;R++){var D,C=y[R];C&&C.el&&(C.hidden?C.el.style.top=-100-(C.pixelHeight||0)+"px":(C._inDocument||(C._inDocument=!0,I.container.appendChild(C.el)),D=I.$cursorLayer.getPixelPosition({row:R,column:0},!0).top,C.coverLine||(D+=O.lineHeight*this.session.getRowLineCount(C.row)),C.el.style.top=D-O.offset+"px",D=C.coverGutter?0:I.gutterWidth,C.fixedWidth||(D-=I.scrollLeft),C.el.style.left=D+"px",C.fullWidth&&C.screenWidth&&(C.el.style.minWidth=O.width+2*O.padding+"px"),C.fixedWidth?C.el.style.right=I.scrollBar.getWidth()+"px":C.el.style.right=""))}}},m.LineWidgets=T}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(v,m,w){var k=v("../lib/keys"),T=v("../mouse/default_gutter_handler").GutterTooltip;function S(y){this.editor=y,this.gutterLayer=y.renderer.$gutterLayer,this.element=y.renderer.$gutter,this.lines=y.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new T(this.editor)}S.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},S.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},S.prototype.$onGutterKeyDown=function(y){var _;this.annotationTooltip.isOpen?(y.preventDefault(),y.keyCode===k.escape&&this.annotationTooltip.hideTooltip()):y.target===this.element?y.keyCode==k.enter&&(y.preventDefault(),_=this.editor.getCursorPosition().row,this.editor.isRowVisible(_)||this.editor.scrollToLine(_,!0,!0),setTimeout((function(){var A=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),R=this.$findNearestFoldWidget(A),D=this.$findNearestAnnotation(A);R===null&&D===null||(R===null&&D!==null||(R===null||D!==null)&&Math.abs(D-A)<Math.abs(R-A)?(this.activeRowIndex=D,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex)):(this.activeRowIndex=R,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex)))}).bind(this),10)):(this.$handleGutterKeyboardInteraction(y),setTimeout((function(){this.editor._signal("gutterkeydown",new I(y,this))}).bind(this),10))},S.prototype.$handleGutterKeyboardInteraction=function(y){if(y.keyCode===k.tab)y.preventDefault();else if(y.keyCode===k.escape)y.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;else if(y.keyCode===k.up)switch(y.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp()}else if(y.keyCode===k.down)switch(y.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown()}else if(y.keyCode===k.left)y.preventDefault(),this.$switchLane("annotation");else if(y.keyCode===k.right)y.preventDefault(),this.$switchLane("fold");else if(y.keyCode===k.enter||y.keyCode===k.space)switch(y.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var _=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),y),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==_&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(_),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var A=this.lines.cells[this.activeRowIndex].element.childNodes[2].getBoundingClientRect(),R=this.annotationTooltip.getElement().style;R.left=A.right+"px",R.top=A.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex))}},S.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex)}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},S.prototype.$isFoldWidgetVisible=function(A){var _=this.editor.isRowFullyVisible(this.$rowIndexToRow(A)),A=this.$getFoldWidget(A).style.display!=="none";return _&&A},S.prototype.$isAnnotationVisible=function(A){var _=this.editor.isRowFullyVisible(this.$rowIndexToRow(A)),A=this.$getAnnotation(A).style.display!=="none";return _&&A},S.prototype.$getFoldWidget=function(y){return this.lines.get(y).element.childNodes[1]},S.prototype.$getAnnotation=function(y){return this.lines.get(y).element.childNodes[2]},S.prototype.$findNearestFoldWidget=function(y){if(this.$isFoldWidgetVisible(y))return y;for(var _=0;0<y-_||y+_<this.lines.getLength()-1;){if(0<=y-++_&&this.$isFoldWidgetVisible(y-_))return y-_;if(y+_<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(y+_))return y+_}return null},S.prototype.$findNearestAnnotation=function(y){if(this.$isAnnotationVisible(y))return y;for(var _=0;0<y-_||y+_<this.lines.getLength()-1;){if(0<=y-++_&&this.$isAnnotationVisible(y-_))return y-_;if(y+_<=this.lines.getLength()-1&&this.$isAnnotationVisible(y+_))return y+_}return null},S.prototype.$focusFoldWidget=function(y){y!=null&&((y=this.$getFoldWidget(y)).classList.add(this.editor.renderer.keyboardFocusClassName),y.focus())},S.prototype.$focusAnnotation=function(y){y!=null&&((y=this.$getAnnotation(y)).classList.add(this.editor.renderer.keyboardFocusClassName),y.focus())},S.prototype.$blurFoldWidget=function(y){y=this.$getFoldWidget(y),y.classList.remove(this.editor.renderer.keyboardFocusClassName),y.blur()},S.prototype.$blurAnnotation=function(y){y=this.$getAnnotation(y),y.classList.remove(this.editor.renderer.keyboardFocusClassName),y.blur()},S.prototype.$moveFoldWidgetUp=function(){for(var y=this.activeRowIndex;0<y;)if(this.$isFoldWidgetVisible(--y))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=y,void this.$focusFoldWidget(this.activeRowIndex)},S.prototype.$moveFoldWidgetDown=function(){for(var y=this.activeRowIndex;y<this.lines.getLength()-1;)if(this.$isFoldWidgetVisible(++y))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=y,void this.$focusFoldWidget(this.activeRowIndex)},S.prototype.$moveAnnotationUp=function(){for(var y=this.activeRowIndex;0<y;)if(this.$isAnnotationVisible(--y))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=y,void this.$focusAnnotation(this.activeRowIndex)},S.prototype.$moveAnnotationDown=function(){for(var y=this.activeRowIndex;y<this.lines.getLength()-1;)if(this.$isAnnotationVisible(++y))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=y,void this.$focusAnnotation(this.activeRowIndex)},S.prototype.$switchLane=function(y){switch(y){case"annotation":this.activeLane!=="annotation"&&(_=this.$findNearestAnnotation(this.activeRowIndex))!=null&&(this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=_,this.$focusAnnotation(this.activeRowIndex));break;case"fold":var _;this.activeLane!=="fold"&&(_=this.$findNearestFoldWidget(this.activeRowIndex))!=null&&(this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=_,this.$focusFoldWidget(this.activeRowIndex))}},S.prototype.$rowIndexToRow=function(y){return y=this.lines.get(y),y?y.row:null},S.prototype.$rowToRowIndex=function(y){for(var _=0;_<this.lines.getLength();_++)if(this.lines.get(_).row==y)return _;return null},m.GutterKeyboardHandler=S,O.prototype.getKey=function(){return k.keyCodeToString(this.domEvent.keyCode)},O.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},O.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},O.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"};var I=O;function O(y,_){this.gutterKeyboardHandler=_,this.domEvent=y}m.GutterKeyboardEvent=I}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/line_widgets","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(ee,m,w){var k=this&&this.__values||function(G){var ne=typeof Symbol=="function"&&Symbol.iterator,le=ne&&G[ne],oe=0;if(le)return le.call(G);if(G&&typeof G.length=="number")return{next:function(){return{value:(G=G&&oe>=G.length?void 0:G)&&G[oe++],done:!G}}};throw new TypeError(ne?"Object is not iterable.":"Symbol.iterator is not defined.")},T=ee("./lib/oop"),S=ee("./lib/dom"),I=ee("./lib/lang"),O=ee("./lib/useragent"),y=ee("./keyboard/textinput").TextInput,_=ee("./mouse/mouse_handler").MouseHandler,A=ee("./mouse/fold_handler").FoldHandler,R=ee("./keyboard/keybinding").KeyBinding,D=ee("./edit_session").EditSession,C=ee("./search").Search,x=ee("./range").Range,P=ee("./lib/event_emitter").EventEmitter,$=ee("./commands/command_manager").CommandManager,L=ee("./commands/default_commands").commands,V=ee("./config"),H=ee("./token_iterator").TokenIterator,Q=ee("./line_widgets").LineWidgets,U=ee("./keyboard/gutter_handler").GutterKeyboardHandler,K=ee("./config").nls,J=ee("./clipboard"),ue=ee("./lib/keys"),ee=(N.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=I.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},N.prototype.startOperation=function(G){if(this.curOp){if(!G||this.curOp.command)return;this.prevOp=this.curOp}G||(this.previousCommand=null,G={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:G.command||{},args:G.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},N.prototype.endOperation=function(G){if(this.curOp&&this.session){if(G&&G.returnValue===!1||!this.session)return this.curOp=null;if((G!=1||!this.curOp.command||this.curOp.command.name!="mouse")&&(this._signal("beforeEndOperation"),this.curOp)){var G=this.curOp.command,ne=G&&G.scrollIntoView;if(ne){switch(ne){case"center-animate":ne="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var le=this.selection.getRange(),oe=this.renderer.layerConfig;(le.start.row>=oe.lastRow||le.end.row<=oe.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}ne=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}G=this.selection.toJSON(),this.curOp.selectionAfter=G,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(G),this.prevOp=this.curOp,this.curOp=null}}},N.prototype.$historyTracker=function(G){var ne,le,oe,ve;this.$mergeUndoDeltas&&(ne=this.prevOp,le=this.$mergeableCommands,oe=ne.command&&G.command.name==ne.command.name,G.command.name=="insertstring"?(ve=G.args,this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),oe=oe&&this.mergeNextCommand&&(!/\s/.test(ve)||/\s/.test(ne.args)),this.mergeNextCommand=!0):oe=oe&&le.indexOf(G.command.name)!==-1,(oe=this.$mergeUndoDeltas!="always"&&2e3<Date.now()-this.sequenceStartTime?!1:oe)?this.session.mergeUndoDeltas=!0:le.indexOf(G.command.name)!==-1&&(this.sequenceStartTime=Date.now()))},N.prototype.setKeyboardHandler=function(G,ne){var le;G&&typeof G=="string"&&G!="ace"?(this.$keybindingId=G,le=this,V.loadModule(["keybinding",G],function(oe){le.$keybindingId==G&&le.keyBinding.setKeyboardHandler(oe&&oe.handler),ne&&ne()})):(this.$keybindingId=null,this.keyBinding.setKeyboardHandler(G),ne&&ne())},N.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},N.prototype.setSession=function(G){var ne,le;this.session!=G&&(this.curOp&&this.endOperation(),this.curOp={},(ne=this.session)&&(this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),(le=this.session.getSelection()).off("changeCursor",this.$onCursorChange),le.off("changeSelection",this.$onSelectionChange)),(this.session=G)?(this.$onDocumentChange=this.onDocumentChange.bind(this),G.on("change",this.$onDocumentChange),this.renderer.setSession(G),this.$onChangeMode=this.onChangeMode.bind(this),G.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),G.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),G.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),G.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),G.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),G.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=G.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(G)),this._signal("changeSession",{session:G,oldSession:ne}),this.curOp=null,ne&&ne._signal("changeEditor",{oldEditor:this}),G&&G._signal("changeEditor",{editor:this}),G)&&!G.destroyed&&G.bgTokenizer.scheduleStart()},N.prototype.getSession=function(){return this.session},N.prototype.setValue=function(G,ne){return this.session.doc.setValue(G),ne?ne==1?this.navigateFileEnd():ne==-1&&this.navigateFileStart():this.selectAll(),G},N.prototype.getValue=function(){return this.session.getValue()},N.prototype.getSelection=function(){return this.selection},N.prototype.resize=function(G){this.renderer.onResize(G)},N.prototype.setTheme=function(G,ne){this.renderer.setTheme(G,ne)},N.prototype.getTheme=function(){return this.renderer.getTheme()},N.prototype.setStyle=function(G){this.renderer.setStyle(G)},N.prototype.unsetStyle=function(G){this.renderer.unsetStyle(G)},N.prototype.getFontSize=function(){return this.getOption("fontSize")||S.computedStyle(this.container).fontSize},N.prototype.setFontSize=function(G){this.setOption("fontSize",G)},N.prototype.$highlightBrackets=function(){var G;this.$highlightPending||((G=this).$highlightPending=!0,setTimeout(function(){G.$highlightPending=!1;var ne,le,oe,ve,de=G.session;de&&!de.destroyed&&(de.$bracketHighlight&&(de.$bracketHighlight.markerIds.forEach(function(ae){de.removeMarker(ae)}),de.$bracketHighlight=null),ne=G.getCursorPosition(),le=(le=G.getKeyboardHandler())&&le.$getDirectionForHighlight&&le.$getDirectionForHighlight(G),(le=de.getMatchingBracketRanges(ne,le))||(oe=new H(de,ne.row,ne.column).getCurrentToken())&&/\b(?:tag-open|tag-name)/.test(oe.type)&&(oe=de.getMatchingTags(ne))&&(le=[oe.openTagName,oe.closeTagName]),(le=!le&&de.$mode.getMatching?de.$mode.getMatching(G.session):le)&&(ve="ace_bracket",Array.isArray(le)?le.length==1&&(ve="ace_error_bracket"):le=[le],le.length==2&&(x.comparePoints(le[0].end,le[1].start)==0?le=[x.fromPoints(le[0].start,le[1].end)]:x.comparePoints(le[0].start,le[1].end)==0&&(le=[x.fromPoints(le[1].start,le[0].end)])),de.$bracketHighlight={ranges:le,markerIds:le.map(function(ae){return de.addMarker(ae,ve,"text")})}),G.getHighlightIndentGuides())&&G.renderer.$textLayer.$highlightIndentGuide()},50))},N.prototype.focus=function(){this.textInput.focus()},N.prototype.isFocused=function(){return this.textInput.isFocused()},N.prototype.blur=function(){this.textInput.blur()},N.prototype.onFocus=function(G){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",G))},N.prototype.onBlur=function(G){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",G))},N.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},N.prototype.onDocumentChange=function(G){var ne=this.session.$useWrapMode,le=G.start.row==G.end.row?G.end.row:1/0;this.renderer.updateLines(G.start.row,le,ne),this._signal("change",G),this.$cursorChange()},N.prototype.onTokenizerUpdate=function(G){G=G.data,this.renderer.updateLines(G.first,G.last)},N.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},N.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},N.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},N.prototype.$updateHighlightActiveLine=function(){var G,ne,le=this.getSession();this.$highlightActiveLine&&(this.$selectionStyle=="line"&&this.selection.isMultiLine()||(G=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(G=!1),!this.renderer.$maxLines||this.session.getLength()!==1||1<this.renderer.$minLines||(G=!1)),le.$highlightLineMarker&&!G?(le.removeMarker(le.$highlightLineMarker.id),le.$highlightLineMarker=null):!le.$highlightLineMarker&&G?((ne=new x(G.row,G.column,G.row,1/0)).id=le.addMarker(ne,"ace_active-line","screenLine"),le.$highlightLineMarker=ne):G&&(le.$highlightLineMarker.start.row=G.row,le.$highlightLineMarker.end.row=G.row,le.$highlightLineMarker.start.column=G.column,le._signal("changeBackMarker"))},N.prototype.onSelectionChange=function(G){var ne,le,oe=this.session,oe=(oe.$selectionMarker&&oe.removeMarker(oe.$selectionMarker),oe.$selectionMarker=null,this.selection.isEmpty()?this.$updateHighlightActiveLine():(ne=this.selection.getRange(),le=this.getSelectionStyle(),oe.$selectionMarker=oe.addMarker(ne,"ace_selection",le)),this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp());this.session.highlight(oe),this._signal("changeSelection")},N.prototype.$getSelectionHighLightRegexp=function(){var G=this.session,ne=this.getSelectionRange();if(!ne.isEmpty()&&!ne.isMultiLine()){var le=ne.start.column,oe=ne.end.column,G=G.getLine(ne.start.row),ne=G.substring(le,oe);if(!(5e3<ne.length)&&/[\w\d]/.test(ne)&&(ne=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:ne}),G=G.substring(le-1,oe+1),ne.test(G)))return ne}},N.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},N.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},N.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},N.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},N.prototype.onChangeMode=function(G){this.renderer.updateText(),this._emit("changeMode",G)},N.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},N.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},N.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},N.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},N.prototype.getCopyText=function(){var G=this.getSelectedText(),ne=this.session.doc.getNewLineCharacter(),le=!1;if(!G&&this.$copyWithEmptySelection)for(var le=!0,oe=this.selection.getAllRanges(),ve=0;ve<oe.length;ve++){var de=oe[ve];ve&&oe[ve-1].start.row==de.start.row||(G+=this.session.getLine(de.start.row)+ne)}var ae={text:G};return this._signal("copy",ae),J.lineMode=!!le&&ae.text,ae.text},N.prototype.onCopy=function(){this.commands.exec("copy",this)},N.prototype.onCut=function(){this.commands.exec("cut",this)},N.prototype.onPaste=function(G,ne){this.commands.exec("paste",this,{text:G,event:ne})},N.prototype.$handlePaste=function(le){this._signal("paste",le=typeof le=="string"?{text:le}:le);var ne=le.text,le=ne===J.lineMode,oe=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)le?oe.insert({row:this.selection.lead.row,column:0},ne):this.insert(ne);else if(le)this.selection.rangeList.ranges.forEach(function(ie){oe.insert({row:ie.start.row,column:0},ne)});else{var ve=ne.split(/\r\n|\r|\n/),de=this.selection.rangeList.ranges,le=!(ve.length!=2||ve[0]&&ve[1]);if(ve.length!=de.length||le)return this.commands.exec("insertstring",this,ne);for(var ae=de.length;ae--;){var be=de[ae];be.isEmpty()||oe.remove(be),oe.insert(be.start,ve[ae])}}},N.prototype.execCommand=function(G,ne){return this.commands.exec(G,this,ne)},N.prototype.insert=function(G,be){var le,oe=this.session,ve=oe.getMode(),de=this.getCursorPosition(),ae=(this.getBehavioursEnabled()&&!be&&(le=ve.transformAction(oe.getState(de.row),"insertion",this,oe,G))&&(G===le.text||this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1),G=le.text),G==" "&&(G=this.session.getTabString()),this.selection.isEmpty()?this.session.getOverwrite()&&G.indexOf(`
|
|
`)==-1&&((ae=new x.fromPoints(de,de)).end.column+=G.length,this.session.remove(ae)):(ae=this.getSelectionRange(),de=this.session.remove(ae),this.clearSelection()),G!=`
|
|
`&&G!=`\r
|
|
`||(ie=oe.getLine(de.row),de.column>ie.search(/\S|$/)&&(be=ie.substr(de.column).search(/\S|$/),oe.doc.removeInLine(de.row,de.column,de.column+be))),this.clearSelection(),de.column),be=oe.getState(de.row),ie=oe.getLine(de.row),ce=ve.checkOutdent(be,ie,G);oe.insert(de,G),le&&le.selection&&(le.selection.length==2?this.selection.setSelectionRange(new x(de.row,ae+le.selection[0],de.row,ae+le.selection[1])):this.selection.setSelectionRange(new x(de.row+le.selection[0],le.selection[1],de.row+le.selection[2],le.selection[3]))),this.$enableAutoIndent&&(oe.getDocument().isNewLine(G)&&(ae=ve.getNextLineIndent(be,ie.slice(0,de.column),oe.getTabString()),oe.insert({row:de.row+1,column:0},ae)),ce)&&ve.autoOutdent(be,oe,de.row)},N.prototype.autoIndent=function(){for(var G,ne,le,oe,ve,de=this.session,ae=de.getMode(),be=(le=this.selection.isEmpty()?(ne=0,de.doc.getLength()-1):(ne=(G=this.getSelectionRange()).start.row,G.end.row),""),ie="",ce=de.getTabString(),pe=ne;pe<=le;pe++)0<pe&&(be=de.getState(pe-1),oe=de.getLine(pe-1),ie=ae.getNextLineIndent(be,oe,ce)),oe=de.getLine(pe),ie!==(ve=ae.$getIndent(oe))&&(0<ve.length&&(ve=new x(pe,0,pe,ve.length),de.remove(ve)),0<ie.length)&&de.insert({row:pe,column:0},ie),ae.autoOutdent(be,de,pe)},N.prototype.onTextInput=function(G,ne){if(!ne)return this.keyBinding.onTextInput(G);this.startOperation({command:{name:"insertstring"}}),G=this.applyComposition.bind(this,G,ne),this.selection.rangeCount?this.forEachSelection(G):G(),this.endOperation()},N.prototype.applyComposition=function(G,ne){var le;(ne.extendLeft||ne.extendRight)&&((le=this.selection.getRange()).start.column-=ne.extendLeft,le.end.column+=ne.extendRight,le.start.column<0&&(le.start.row--,le.start.column+=this.session.getLine(le.start.row).length+1),this.selection.setRange(le),G||le.isEmpty()||this.remove()),!G&&this.selection.isEmpty()||this.insert(G,!0),(ne.restoreStart||ne.restoreEnd)&&((le=this.selection.getRange()).start.column-=ne.restoreStart,le.end.column-=ne.restoreEnd,this.selection.setRange(le))},N.prototype.onCommandKey=function(G,ne,le){return this.keyBinding.onCommandKey(G,ne,le)},N.prototype.setOverwrite=function(G){this.session.setOverwrite(G)},N.prototype.getOverwrite=function(){return this.session.getOverwrite()},N.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},N.prototype.setScrollSpeed=function(G){this.setOption("scrollSpeed",G)},N.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},N.prototype.setDragDelay=function(G){this.setOption("dragDelay",G)},N.prototype.getDragDelay=function(){return this.getOption("dragDelay")},N.prototype.setSelectionStyle=function(G){this.setOption("selectionStyle",G)},N.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},N.prototype.setHighlightActiveLine=function(G){this.setOption("highlightActiveLine",G)},N.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},N.prototype.setHighlightGutterLine=function(G){this.setOption("highlightGutterLine",G)},N.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},N.prototype.setHighlightSelectedWord=function(G){this.setOption("highlightSelectedWord",G)},N.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},N.prototype.setAnimatedScroll=function(G){this.renderer.setAnimatedScroll(G)},N.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},N.prototype.setShowInvisibles=function(G){this.renderer.setShowInvisibles(G)},N.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},N.prototype.setDisplayIndentGuides=function(G){this.renderer.setDisplayIndentGuides(G)},N.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},N.prototype.setHighlightIndentGuides=function(G){this.renderer.setHighlightIndentGuides(G)},N.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},N.prototype.setShowPrintMargin=function(G){this.renderer.setShowPrintMargin(G)},N.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},N.prototype.setPrintMarginColumn=function(G){this.renderer.setPrintMarginColumn(G)},N.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},N.prototype.setReadOnly=function(G){this.setOption("readOnly",G)},N.prototype.getReadOnly=function(){return this.getOption("readOnly")},N.prototype.setBehavioursEnabled=function(G){this.setOption("behavioursEnabled",G)},N.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},N.prototype.setWrapBehavioursEnabled=function(G){this.setOption("wrapBehavioursEnabled",G)},N.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},N.prototype.setShowFoldWidgets=function(G){this.setOption("showFoldWidgets",G)},N.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},N.prototype.setFadeFoldWidgets=function(G){this.setOption("fadeFoldWidgets",G)},N.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},N.prototype.remove=function(ve){this.selection.isEmpty()&&(ve=="left"?this.selection.selectLeft():this.selection.selectRight());var ne,le,oe,ve=this.getSelectionRange();this.getBehavioursEnabled()&&(le=(ne=this.session).getState(ve.start.row),le=ne.getMode().transformAction(le,"deletion",this,ne,ve),ve.end.column===0&&(oe=ne.getTextRange(ve))[oe.length-1]==`
|
|
`&&(oe=ne.getLine(ve.end.row),/^\s+$/.test(oe))&&(ve.end.column=oe.length),le)&&(ve=le),this.session.remove(ve),this.clearSelection()},N.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},N.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},N.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},N.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var G=this.getSelectionRange();G.start.column==G.end.column&&G.start.row==G.end.row&&(G.end.column=0,G.end.row++),this.session.remove(G),this.clearSelection()},N.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var G=this.getCursorPosition();this.insert(`
|
|
`),this.moveCursorToPosition(G)},N.prototype.setGhostText=function(G,ne){this.session.widgetManager||(this.session.widgetManager=new Q(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(G,ne)},N.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},N.prototype.transposeLetters=function(){var G,ne,le,oe;this.selection.isEmpty()&&(ne=(G=this.getCursorPosition()).column)!==0&&(oe=ne<(oe=this.session.getLine(G.row)).length?(le=oe.charAt(ne)+oe.charAt(ne-1),new x(G.row,ne-1,G.row,ne+1)):(le=oe.charAt(ne-1)+oe.charAt(ne-2),new x(G.row,ne-2,G.row,ne)),this.session.replace(oe,le),this.session.selection.moveToPosition(oe.end))},N.prototype.toLowerCase=function(){var G=this.getSelectionRange(),ne=(this.selection.isEmpty()&&this.selection.selectWord(),this.getSelectionRange()),le=this.session.getTextRange(ne);this.session.replace(ne,le.toLowerCase()),this.selection.setSelectionRange(G)},N.prototype.toUpperCase=function(){var G=this.getSelectionRange(),ne=(this.selection.isEmpty()&&this.selection.selectWord(),this.getSelectionRange()),le=this.session.getTextRange(ne);this.session.replace(ne,le.toUpperCase()),this.selection.setSelectionRange(G)},N.prototype.indent=function(){var G=this.session,ne=this.getSelectionRange();if(!(ne.start.row<ne.end.row)){if(ne.start.column<ne.end.column){var le,de=G.getTextRange(ne);if(!/^\s+$/.test(de))return le=this.$getSelectedRows(),void G.indentRows(le.first,le.last," ")}var oe=G.getLine(ne.start.row),de=ne.start,ve=G.getTabSize(),de=G.documentToScreenColumn(de.row,de.column);if(this.session.getUseSoftTabs())var ae=ve-de%ve,be=I.stringRepeat(" ",ae);else{for(ae=de%ve;oe[ne.start.column-1]==" "&&ae;)ne.start.column--,ae--;this.selection.setSelectionRange(ne),be=" "}return this.insert(be)}le=this.$getSelectedRows(),G.indentRows(le.first,le.last," ")},N.prototype.blockIndent=function(){var G=this.$getSelectedRows();this.session.indentRows(G.first,G.last," ")},N.prototype.blockOutdent=function(){var G=this.session.getSelection();this.session.outdentRows(G.getRange())},N.prototype.sortLines=function(){for(var G=this.$getSelectedRows(),ne=this.session,le=[],oe=G.first;oe<=G.last;oe++)le.push(ne.getLine(oe));le.sort(function(ae,be){return ae.toLowerCase()<be.toLowerCase()?-1:ae.toLowerCase()>be.toLowerCase()?1:0});for(var ve=new x(0,0,0,0),oe=G.first;oe<=G.last;oe++){var de=ne.getLine(oe);ve.start.row=oe,ve.end.row=oe,ve.end.column=de.length,ne.replace(ve,le[oe-G.first])}},N.prototype.toggleCommentLines=function(){var G=this.session.getState(this.getCursorPosition().row),ne=this.$getSelectedRows();this.session.getMode().toggleCommentLines(G,this.session,ne.first,ne.last)},N.prototype.toggleBlockComment=function(){var G=this.getCursorPosition(),ne=this.session.getState(G.row),le=this.getSelectionRange();this.session.getMode().toggleBlockComment(ne,this.session,le,G)},N.prototype.getNumberAt=function(G,ne){for(var le=/[\-]?[0-9]+(?:\.[0-9]+)?/g,oe=(le.lastIndex=0,this.session.getLine(G));le.lastIndex<ne;){var ve=le.exec(oe);if(ve.index<=ne&&ve.index+ve[0].length>=ne)return{value:ve[0],start:ve.index,end:ve.index+ve[0].length}}return null},N.prototype.modifyNumber=function(G){var ne,le,oe,ve=this.selection.getCursor().row,de=this.selection.getCursor().column,ae=new x(ve,de-1,ve,de),ae=this.session.getTextRange(ae);!isNaN(parseFloat(ae))&&isFinite(ae)?(ae=this.getNumberAt(ve,de))&&(oe=0<=ae.value.indexOf(".")?ae.start+ae.value.indexOf(".")+1:ae.end,ne=ae.start+ae.value.length-oe,le=parseFloat(ae.value),le*=Math.pow(10,ne),oe!==ae.end&&de<oe?G*=Math.pow(10,ae.end-de-1):G*=Math.pow(10,ae.end-de),oe=(le=(le+=G)/Math.pow(10,ne)).toFixed(ne),G=new x(ve,ae.start,ve,ae.end),this.session.replace(G,oe),this.moveCursorTo(ve,Math.max(ae.start+1,de+oe.length-ae.value.length))):this.toggleWord()},N.prototype.toggleWord=function(){for(var G,ne=this.selection.getCursor().row,le=this.selection.getCursor().column,oe=(this.selection.selectWord(),this.getSelectedText()),ve=this.selection.getWordRange().start.column,de=oe.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),ae=le-ve-1,be=(ae<0&&(ae=0),0),ie=this,ce=(oe.match(/[A-Za-z0-9_]+/)&&de.forEach(function(fe,me){G=be+fe.length,be<=ae&&ae<=G&&(oe=fe,ie.selection.clearSelection(),ie.moveCursorTo(ne,be+ve),ie.selection.selectTo(ne,G+ve)),be=G}),this.$toggleWordPairs),pe=0;pe<ce.length;pe++)for(var X=ce[pe],Z=0;Z<=1;Z++){var Y=+!Z,se=oe.match(new RegExp("^\\s?_?("+I.escapeRegExp(X[Z])+")\\s?$","i"));se&&oe.match(new RegExp("([_]|^|\\s)("+I.escapeRegExp(se[1])+")($|\\s)","g"))&&(se=oe.replace(new RegExp(I.escapeRegExp(X[Z]),"i"),function(fe){var me=X[Y];return fe.toUpperCase()==fe?me=me.toUpperCase():fe.charAt(0).toUpperCase()==fe.charAt(0)&&(me=me.substr(0,0)+X[Y].charAt(0).toUpperCase()+me.substr(1)),me}),this.insert(se))}},N.prototype.findLinkAt=function(de,ne){var le,oe,ve,de=this.session.getLine(de).split(/((?:https?|ftp):\/\/[\S]+)/),ae=ne,be=(ae<0&&(ae=0),0);try{for(var ie=k(de),ce=ie.next();!ce.done;ce=ie.next()){var pe=ce.value,X=be+pe.length;if(be<=ae&&ae<=X&&pe.match(/((?:https?|ftp):\/\/[\S]+)/)){ve=pe.replace(/[\s:.,'";}\]]+$/,"");break}be=X}}catch(Z){le={error:Z}}finally{try{ce&&!ce.done&&(oe=ie.return)&&oe.call(ie)}finally{if(le)throw le.error}}return ve},N.prototype.openLink=function(){var G=this.selection.getCursor(),G=this.findLinkAt(G.row,G.column);return G&&window.open(G,"_blank"),G!=null},N.prototype.removeLines=function(){var G=this.$getSelectedRows();this.session.removeFullLines(G.first,G.last),this.clearSelection()},N.prototype.duplicateSelection=function(){var G,ne=this.selection,le=this.session,oe=ne.getRange(),ve=ne.isBackwards();oe.isEmpty()?(G=oe.start.row,le.duplicateLines(G,G)):(G=ve?oe.start:oe.end,le=le.insert(G,le.getTextRange(oe),!1),oe.start=G,oe.end=le,ne.setSelectionRange(oe,ve))},N.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},N.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},N.prototype.moveText=function(G,ne,le){return this.session.moveText(G,ne,le)},N.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},N.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},N.prototype.$moveLines=function(G,ne){var le=this.selection;if(!le.inMultiSelectMode||this.inVirtualSelectionMode){var oe=le.toOrientedRange(),ve=this.$getSelectedRows(oe),de=this.session.$moveLines(ve.first,ve.last,ne?0:G);oe.moveBy(de=ne&&G==-1?0:de,0),le.fromOrientedRange(oe)}else{for(var ae=le.rangeList.ranges,be=(le.rangeList.detach(this.session),this.inVirtualSelectionMode=!0,0),ie=0,ce=ae.length,pe=0;pe<ce;pe++){for(var X=pe,Z=(ae[pe].moveBy(be,0),(ve=this.$getSelectedRows(ae[pe])).first),Y=ve.last;++pe<ce;){ie&&ae[pe].moveBy(ie,0);var se=this.$getSelectedRows(ae[pe]);if(ne&&se.first!=Y||!ne&&se.first>Y+1)break;Y=se.last}for(pe--,be=this.session.$moveLines(Z,Y,ne?0:G),ne&&G==-1&&(X=pe+1);X<=pe;)ae[X].moveBy(be,0),X++;ie+=be=ne?be:0}le.fromOrientedRange(le.ranges[0]),le.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},N.prototype.$getSelectedRows=function(G){return G=(G||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(G.start.row),last:this.session.getRowFoldEnd(G.end.row)}},N.prototype.onCompositionStart=function(G){this.renderer.showComposition(G)},N.prototype.onCompositionUpdate=function(G){this.renderer.setCompositionText(G)},N.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},N.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},N.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},N.prototype.isRowVisible=function(G){return G>=this.getFirstVisibleRow()&&G<=this.getLastVisibleRow()},N.prototype.isRowFullyVisible=function(G){return G>=this.renderer.getFirstFullyVisibleRow()&&G<=this.renderer.getLastFullyVisibleRow()},N.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},N.prototype.$moveByPage=function(de,ne){var le=this.renderer,oe=this.renderer.layerConfig,ve=de*Math.floor(oe.height/oe.lineHeight),de=(ne===!0?this.selection.$moveSelection(function(){this.moveCursorBy(ve,0)}):ne===!1&&(this.selection.moveCursorBy(ve,0),this.selection.clearSelection()),le.scrollTop);le.scrollBy(0,ve*oe.lineHeight),ne!=null&&le.scrollCursorIntoView(null,.5),le.animateScrolling(de)},N.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},N.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},N.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},N.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},N.prototype.scrollPageDown=function(){this.$moveByPage(1)},N.prototype.scrollPageUp=function(){this.$moveByPage(-1)},N.prototype.scrollToRow=function(G){this.renderer.scrollToRow(G)},N.prototype.scrollToLine=function(G,ne,le,oe){this.renderer.scrollToLine(G,ne,le,oe)},N.prototype.centerSelection=function(){var G=this.getSelectionRange(),G={row:Math.floor(G.start.row+(G.end.row-G.start.row)/2),column:Math.floor(G.start.column+(G.end.column-G.start.column)/2)};this.renderer.alignCursor(G,.5)},N.prototype.getCursorPosition=function(){return this.selection.getCursor()},N.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},N.prototype.getSelectionRange=function(){return this.selection.getRange()},N.prototype.selectAll=function(){this.selection.selectAll()},N.prototype.clearSelection=function(){this.selection.clearSelection()},N.prototype.moveCursorTo=function(G,ne){this.selection.moveCursorTo(G,ne)},N.prototype.moveCursorToPosition=function(G){this.selection.moveCursorToPosition(G)},N.prototype.jumpToMatching=function(G,ne){var le=this.getCursorPosition(),oe=new H(this.session,le.row,le.column),ve=oe.getCurrentToken(),de=0,ae=(ve=ve&&ve.type.indexOf("tag-name")!==-1?oe.stepBackward():ve)||oe.stepForward();if(ae){var be,ie,ce=!1,pe={},X=le.column-ae.start,Z={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do if(ae.value.match(/[{}()\[\]]/g)){for(;X<ae.value.length&&!ce;X++)if(Z[ae.value[X]])switch(ie=Z[ae.value[X]]+"."+ae.type.replace("rparen","lparen"),isNaN(pe[ie])&&(pe[ie]=0),ae.value[X]){case"(":case"[":case"{":pe[ie]++;break;case")":case"]":case"}":pe[ie]--,pe[ie]===-1&&(be="bracket",ce=!0)}}else ae.type.indexOf("tag-name")!==-1&&(isNaN(pe[ae.value])&&(pe[ae.value]=0),ve.value==="<"&&1<de?pe[ae.value]++:ve.value==="</"&&pe[ae.value]--,pe[ae.value]===-1)&&(be="tag",ce=!0);while(ce||(ve=ae,de++,ae=oe.stepForward(),X=0),ae&&!ce);if(be){if(be==="bracket")!(se=this.session.getBracketRange(le))&&(fe=(se=new x(oe.getCurrentTokenRow(),oe.getCurrentTokenColumn()+X-1,oe.getCurrentTokenRow(),oe.getCurrentTokenColumn()+X-1)).start,ne||fe.row===le.row&&Math.abs(fe.column-le.column)<2)&&(se=this.session.getBracketRange(fe));else if(be==="tag"){if(!ae||ae.type.indexOf("tag-name")===-1)return;var Y,se,fe=(fe=(se=new x(oe.getCurrentTokenRow(),oe.getCurrentTokenColumn()-2,oe.getCurrentTokenRow(),oe.getCurrentTokenColumn()-2)).compare(le.row,le.column)===0&&(Y=this.session.getMatchingTags(le))?Y.openTag.contains(le.row,le.column)?(se=Y.closeTag).start:(se=Y.openTag,Y.closeTag.start.row===le.row&&Y.closeTag.start.column===le.column?se.end:se.start):fe)||se.start}(fe=se&&se.cursor||fe)&&(G?se&&ne?this.selection.setRange(se):se&&se.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(fe.row,fe.column):this.selection.moveTo(fe.row,fe.column))}}},N.prototype.gotoLine=function(G,ne,le){this.selection.clearSelection(),this.session.unfold({row:G-1,column:ne||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(G-1,ne||0),this.isRowFullyVisible(G-1)||this.scrollToLine(G-1,!0,le)},N.prototype.navigateTo=function(G,ne){this.selection.moveTo(G,ne)},N.prototype.navigateUp=function(G){var ne;if(this.selection.isMultiLine()&&!this.selection.isBackwards())return ne=this.selection.anchor.getPosition(),this.moveCursorToPosition(ne);this.selection.clearSelection(),this.selection.moveCursorBy(-G||-1,0)},N.prototype.navigateDown=function(G){var ne;if(this.selection.isMultiLine()&&this.selection.isBackwards())return ne=this.selection.anchor.getPosition(),this.moveCursorToPosition(ne);this.selection.clearSelection(),this.selection.moveCursorBy(G||1,0)},N.prototype.navigateLeft=function(G){if(this.selection.isEmpty())for(G=G||1;G--;)this.selection.moveCursorLeft();else{var ne=this.getSelectionRange().start;this.moveCursorToPosition(ne)}this.clearSelection()},N.prototype.navigateRight=function(G){if(this.selection.isEmpty())for(G=G||1;G--;)this.selection.moveCursorRight();else{var ne=this.getSelectionRange().end;this.moveCursorToPosition(ne)}this.clearSelection()},N.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},N.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},N.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},N.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},N.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},N.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},N.prototype.replace=function(G,le){le&&this.$search.set(le);var le=this.$search.find(this.session),oe=0;return le&&(this.$tryReplace(le,G)&&(oe=1),this.selection.setSelectionRange(le),this.renderer.scrollSelectionIntoView(le.start,le.end)),oe},N.prototype.replaceAll=function(G,ne){ne&&this.$search.set(ne);var le=this.$search.findAll(this.session),oe=0;if(le.length){ne=this.getSelectionRange(),this.selection.moveTo(0,0);for(var ve=le.length-1;0<=ve;--ve)this.$tryReplace(le[ve],G)&&oe++;this.selection.setSelectionRange(ne)}return oe},N.prototype.$tryReplace=function(G,ne){var le=this.session.getTextRange(G);return(ne=this.$search.replace(le,ne))!==null?(G.end=this.session.replace(G,ne),G):null},N.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},N.prototype.find=function(ve,ne,le){ne=ne||{},typeof ve=="string"||ve instanceof RegExp?ne.needle=ve:typeof ve=="object"&&T.mixin(ne,ve);var oe=this.selection.getRange(),ve=(ne.needle==null&&((ve=this.session.getTextRange(oe)||this.$search.$options.needle)||(oe=this.session.getWordRange(oe.start.row,oe.start.column),ve=this.session.getTextRange(oe)),this.$search.set({needle:ve})),this.$search.set(ne),ne.start||this.$search.set({start:oe}),this.$search.find(this.session));return ne.preventScroll?ve:ve?(this.revealRange(ve,le),ve):(ne.backwards?oe.start=oe.end:oe.end=oe.start,void this.selection.setRange(oe))},N.prototype.findNext=function(G,ne){this.find({skipCurrent:!0,backwards:!1},G,ne)},N.prototype.findPrevious=function(G,ne){this.find(G,{skipCurrent:!0,backwards:!0},ne)},N.prototype.revealRange=function(G,ne){this.session.unfold(G),this.selection.setSelectionRange(G);var le=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(G.start,G.end,.5),ne!==!1&&this.renderer.animateScrolling(le)},N.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},N.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},N.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(G){G.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},N.prototype.setAutoScrollEditorIntoView=function(G){var ne,le,oe,ve,de,ae,be;G&&(oe=!1,(le=this).$scrollAnchor||(this.$scrollAnchor=document.createElement("div")),(ve=this.$scrollAnchor).style.cssText="position:absolute",this.container.insertBefore(ve,this.container.firstChild),de=this.on("changeSelection",function(){oe=!0}),ae=this.renderer.on("beforeRender",function(){oe&&(ne=le.renderer.container.getBoundingClientRect())}),be=this.renderer.on("afterRender",function(){var ie,ce,pe;oe&&ne&&(le.isFocused()||le.searchBox&&le.searchBox.isFocused())&&(ie=(ce=le.renderer).$cursorLayer.$pixelPos,ce=ce.layerConfig,pe=ie.top-ce.offset,(oe=0<=ie.top&&pe+ne.top<0||!(ie.top<ce.height&&ie.top+ne.top+ce.lineHeight>window.innerHeight)&&null)!=null&&(ve.style.top=pe+"px",ve.style.left=ie.left+"px",ve.style.height=ce.lineHeight+"px",ve.scrollIntoView(oe)),oe=ne=null)}),this.setAutoScrollEditorIntoView=function(ie){ie||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",de),this.renderer.off("afterRender",be),this.renderer.off("beforeRender",ae))})},N.prototype.$resetCursorStyle=function(){var G=this.$cursorStyle||"ace",ne=this.renderer.$cursorLayer;ne&&(ne.setSmoothBlinking(/smooth/.test(G)),ne.isBlinking=!this.$readOnly&&G!="wide",S.setCssClass(ne.element,"ace_slim-cursors",/slim/.test(G)))},N.prototype.prompt=function(G,ne,le){var oe=this;V.loadModule("ace/ext/prompt",function(ve){ve.prompt(oe,G,ne,le)})},N);function N(G,ne,le){this.$toDestroy=[];var oe=G.getContainerElement();this.container=oe,this.renderer=G,this.id="editor"+ ++N.$uid,this.commands=new $(O.isMac?"mac":"win",L),typeof document=="object"&&(this.textInput=new y(G.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new _(this),new A(this)),this.keyBinding=new R(this),this.$search=new C().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=I.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(ve,de){de._$emitInputEvent.schedule(31)}),this.setSession(ne||le&&le.session||new D("")),V.resetOptions(this),le&&this.setOptions(le),V._signal("editor",this)}ee.$uid=0,ee.prototype.curOp=null,ee.prototype.prevOp={},ee.prototype.$mergeableCommands=["backspace","del","insertstring"],ee.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],T.implement(ee.prototype,P),V.defineOptions(ee.prototype,"editor",{selectionStyle:{set:function(G){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:G})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(G){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(G){this.textInput.setReadOnly(G),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(G){this.textInput.setCopyWithEmptySelection(G)},initialValue:!1},cursorStyle:{set:function(G){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(G){this.setAutoScrollEditorIntoView(G)}},keyboardHandler:{set:function(G){this.setKeyboardHandler(G)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(G){this.session.setValue(G)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(G){this.setSession(G)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(G){this.renderer.$gutterLayer.setShowLineNumbers(G),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),G&&this.$relativeLineNumbers?q.attach(this):q.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(G){this.$showLineNumbers&&G?q.attach(this):q.detach(this)}},placeholder:{set:function(G){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var ne=this.session&&(this.renderer.$composition||1<this.session.getLength()||0<this.session.getLine(0).length);ne&&this.renderer.placeholderNode?(this.renderer.off("afterRender",this.$updatePlaceholder),S.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null):ne||this.renderer.placeholderNode?!ne&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||""):(this.renderer.on("afterRender",this.$updatePlaceholder),S.addCssClass(this.container,"ace_hasPlaceholder"),(ne=S.createElement("div")).className="ace_placeholder",ne.textContent=this.$placeholder||"",this.renderer.placeholderNode=ne,this.renderer.content.appendChild(this.renderer.placeholderNode))}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(G){function ne(ve){ve.target==this.renderer.scroller&&ve.keyCode===ue.enter&&(ve.preventDefault(),ve=this.getCursorPosition().row,this.isRowVisible(ve)||this.scrollToLine(ve,!0,!0),this.focus())}var le,oe={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(ve){ve.blur(),ve.renderer.scroller.focus()},readOnly:!0};G?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(O.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",K("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",K("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",ne.bind(this)),this.commands.addCommand(oe),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",K("editor")),this.renderer.$gutter.setAttribute("aria-label",K("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),(le=le||new U(this)).addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",ne.bind(this)),this.commands.removeCommand(oe),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),le&&le.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var q={getText:function(G,ne){return(Math.abs(G.selection.lead.row-ne)||ne+1+(ne<9?"·":""))+""},getWidth:function(G,ne,le){return Math.max(ne.toString().length,(le.lastRow+1).toString().length,2)*le.characterWidth},update:function(G,ne){ne.renderer.$loop.schedule(ne.renderer.CHANGE_GUTTER)},attach:function(G){G.renderer.$gutterLayer.$renderer=this,G.on("changeSelection",this.update),this.update(null,G)},detach:function(G){G.renderer.$gutterLayer.$renderer==this&&(G.renderer.$gutterLayer.$renderer=null),G.off("changeSelection",this.update),this.update(null,G)}};m.Editor=ee}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(v,m,w){var k=v("../lib/dom");function T(S,I){this.element=S,this.canvasHeight=I||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}T.prototype.moveContainer=function(S){k.translate(this.element,0,-(S.firstRowScreen*S.lineHeight%this.canvasHeight)-S.offset*this.$offsetCoefficient)},T.prototype.pageChanged=function(S,I){return Math.floor(S.firstRowScreen*S.lineHeight/this.canvasHeight)!==Math.floor(I.firstRowScreen*I.lineHeight/this.canvasHeight)},T.prototype.computeLineTop=function(S,I,O){var y=I.firstRowScreen*I.lineHeight,y=Math.floor(y/this.canvasHeight);return O.documentToScreenRow(S,0)*I.lineHeight-y*this.canvasHeight},T.prototype.computeLineHeight=function(S,I,O){return I.lineHeight*O.getRowLineCount(S)},T.prototype.getLength=function(){return this.cells.length},T.prototype.get=function(S){return this.cells[S]},T.prototype.shift=function(){this.$cacheCell(this.cells.shift())},T.prototype.pop=function(){this.$cacheCell(this.cells.pop())},T.prototype.push=function(S){if(Array.isArray(S)){this.cells.push.apply(this.cells,S);for(var I=k.createFragment(this.element),O=0;O<S.length;O++)I.appendChild(S[O].element);this.element.appendChild(I)}else this.cells.push(S),this.element.appendChild(S.element)},T.prototype.unshift=function(S){if(Array.isArray(S)){this.cells.unshift.apply(this.cells,S);for(var I=k.createFragment(this.element),O=0;O<S.length;O++)I.appendChild(S[O].element);this.element.firstChild?this.element.insertBefore(I,this.element.firstChild):this.element.appendChild(I)}else this.cells.unshift(S),this.element.insertAdjacentElement("afterbegin",S.element)},T.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},T.prototype.$cacheCell=function(S){S&&(S.element.remove(),this.cellCache.push(S))},T.prototype.createCell=function(S,I,O,y){var _,A=this.cellCache.pop();return A||(_=k.createElement("div"),y&&y(_),this.element.appendChild(_),A={element:_,text:"",row:S}),A.row=S,A},m.Lines=T}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(_,m,w){var k=_("../lib/dom"),T=_("../lib/oop"),S=_("../lib/lang"),I=_("../lib/event_emitter").EventEmitter,O=_("./lines").Lines,y=_("../config").nls,_=(A.prototype.setSession=function(D){this.session&&this.session.off("change",this.$updateAnnotations),(this.session=D)&&D.on("change",this.$updateAnnotations)},A.prototype.addGutterDecoration=function(D,C){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(D,C)},A.prototype.removeGutterDecoration=function(D,C){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(D,C)},A.prototype.setAnnotations=function(D){this.$annotations=[];for(var C=0;C<D.length;C++){var x=D[C],L=x.row,P=(P=this.$annotations[L])||(this.$annotations[L]={text:[],type:[]}),L=x.text,$=x.type,L=L?S.escapeHTML(L):x.html||"",L=(P.text.indexOf(L)===-1&&(P.text.push(L),P.type.push($)),x.className);L?P.className=L:$=="error"?P.className=" ace_error":$=="warning"&&P.className!=" ace_error"?P.className=" ace_warning":$!="info"||P.className||(P.className=" ace_info")}},A.prototype.$updateAnnotations=function(D){var C,x;this.$annotations.length&&(C=D.start.row,(x=D.end.row-C)!=0)&&(D.action=="remove"?this.$annotations.splice(C,1+x,null):((D=new Array(1+x)).unshift(C,1),this.$annotations.splice.apply(this.$annotations,D)))},A.prototype.update=function(D){this.config=D;for(var C=this.session,x=D.firstRow,P=Math.min(D.lastRow+D.gutterOffset,C.getLength()-1),$=(this.oldLastRow=P,this.config=D,this.$lines.moveContainer(D),this.$updateCursorRow(),C.getNextFoldLine(x)),L=$?$.start.row:1/0,V=null,H=-1,Q=x;;){if(L<Q&&(Q=$.end.row+1,L=($=C.getNextFoldLine(Q,$))?$.start.row:1/0),P<Q){for(;this.$lines.getLength()>H+1;)this.$lines.pop();break}(V=this.$lines.get(++H))?V.row=Q:(V=this.$lines.createCell(Q,D,this.session,R),this.$lines.push(V)),this.$renderCell(V,D,$,Q),Q++}this._signal("afterRender"),this.$updateGutterWidth(D)},A.prototype.$updateGutterWidth=function(D){var C=this.session,$=C.gutterRenderer||this.$renderer,P=C.$firstLineNumber,x=this.$lines.last()?this.$lines.last().text:"",P=((this.$fixedWidth||C.$useWrapMode)&&(x=C.getLength()+P-1),$?$.getWidth(C,x,D):x.toString().length*D.characterWidth),$=this.$padding||this.$computePadding();(P+=$.left+$.right)===this.gutterWidth||isNaN(P)||(this.gutterWidth=P,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",P))},A.prototype.$updateCursorRow=function(){var D;this.$highlightGutterLine&&(D=this.session.selection.getCursor(),this.$cursorRow!==D.row)&&(this.$cursorRow=D.row)},A.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var D=this.session.selection.cursor.row;if(this.$cursorRow=D,!this.$cursorCell||this.$cursorCell.row!=D){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var C=this.$lines.cells;this.$cursorCell=null;for(var x=0;x<C.length;x++){var P=C[x];if(P.row>=this.$cursorRow){if(P.row>this.$cursorRow){var $=this.session.getFoldLine(this.$cursorRow);if(!(0<x&&$&&$.start.row==C[x-1].row))break;P=C[x-1]}P.element.className="ace_gutter-active-line "+P.element.className,this.$cursorCell=P;break}}}}},A.prototype.scrollLines=function(D){var C=this.config;if(this.config=D,this.$updateCursorRow(),this.$lines.pageChanged(C,D))return this.update(D);this.$lines.moveContainer(D);var x=Math.min(D.lastRow+D.gutterOffset,this.session.getLength()-1),P=this.oldLastRow;if(this.oldLastRow=x,!C||P<D.firstRow)return this.update(D);if(x<C.firstRow)return this.update(D);if(C.firstRow<D.firstRow)for(var $=this.session.getFoldedRowCount(C.firstRow,D.firstRow-1);0<$;$--)this.$lines.shift();if(x<P)for($=this.session.getFoldedRowCount(x+1,P);0<$;$--)this.$lines.pop();D.firstRow<C.firstRow&&this.$lines.unshift(this.$renderLines(D,D.firstRow,C.firstRow-1)),P<x&&this.$lines.push(this.$renderLines(D,P+1,x)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(D)},A.prototype.$renderLines=function(D,C,x){for(var P=[],$=C,L=this.session.getNextFoldLine($),V=L?L.start.row:1/0;V<$&&($=L.end.row+1,V=(L=this.session.getNextFoldLine($,L))?L.start.row:1/0),!(x<$);){var H=this.$lines.createCell($,D,this.session,R);this.$renderCell(H,D,L,$),P.push(H),$++}return P},A.prototype.$renderCell=function(D,C,x,P){var $,L=D.element,V=this.session,H=L.childNodes[0],Q=L.childNodes[1],U=L.childNodes[2],K=U.firstChild,J=V.$firstLineNumber,ue=V.$breakpoints,ee=V.$decorations,oe=V.gutterRenderer||this.$renderer,N=this.$showFoldWidgets&&V.foldWidgets,q=x?x.start.row:Number.MAX_VALUE,G=C.lineHeight+"px",ne=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",le=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",oe=(oe?oe.getText(V,P):P+J).toString();if(this.$highlightGutterLine&&(P==this.$cursorRow||x&&P<this.$cursorRow&&q<=P&&this.$cursorRow<=x.end.row)&&(ne+="ace_gutter-active-line ",this.$cursorCell!=D)&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=D),ue[P]&&(ne+=ue[P]),ee[P]&&(ne+=ee[P]),this.$annotations[P]&&P!==q&&(ne+=this.$annotations[P].className),$=N&&($=N[P])==null?N[P]=V.getFoldWidget(P):$){if(J="ace_fold-widget ace_"+$,ue=$=="start"&&P==q&&P<x.end.row,ue){J+=" ace_closed";for(var ve="",de=!1,ae=P+1;ae<=x.end.row;ae++)if(this.$annotations[ae]){if(this.$annotations[ae].className===" ace_error"){de=!0,ve=" ace_error_fold";break}this.$annotations[ae].className===" ace_warning"&&(de=!0,ve=" ace_warning_fold")}ne+=ve}else J+=" ace_open";Q.className!=J&&(Q.className=J),k.setStyle(Q.style,"height",G),k.setStyle(Q.style,"display","inline-block"),Q.setAttribute("role","button"),Q.setAttribute("tabindex","-1"),ee=V.getFoldWidgetRange(P),ee?Q.setAttribute("aria-label",y("Toggle code folding, rows $0 through $1",[ee.start.row+1,ee.end.row+1])):x?Q.setAttribute("aria-label",y("Toggle code folding, rows $0 through $1",[x.start.row+1,x.end.row+1])):Q.setAttribute("aria-label",y("Toggle code folding, row $0",[P+1])),ue?(Q.setAttribute("aria-expanded","false"),Q.setAttribute("title",y("Unfold code"))):(Q.setAttribute("aria-expanded","true"),Q.setAttribute("title",y("Fold code")))}else Q&&(k.setStyle(Q.style,"display","none"),Q.setAttribute("tabindex","0"),Q.removeAttribute("role"),Q.removeAttribute("aria-label"));return de&&this.$showFoldedAnnotations?(U.className="ace_gutter_annotation",K.className=le,K.className+=ve,k.setStyle(K.style,"height",G),k.setStyle(U.style,"display","block"),k.setStyle(U.style,"height",G),U.setAttribute("aria-label",y("Read annotations row $0",[oe])),U.setAttribute("tabindex","-1"),U.setAttribute("role","button")):this.$annotations[P]?(U.className="ace_gutter_annotation",K.className=le,this.$useSvgGutterIcons?K.className+=this.$annotations[P].className:L.classList.add(this.$annotations[P].className.replace(" ","")),k.setStyle(K.style,"height",G),k.setStyle(U.style,"display","block"),k.setStyle(U.style,"height",G),U.setAttribute("aria-label",y("Read annotations row $0",[oe])),U.setAttribute("tabindex","-1"),U.setAttribute("role","button")):(k.setStyle(U.style,"display","none"),U.removeAttribute("aria-label"),U.removeAttribute("role"),U.setAttribute("tabindex","0")),oe!==H.data&&(H.data=oe),L.className!=ne&&(L.className=ne),k.setStyle(D.element.style,"height",this.$lines.computeLineHeight(P,C,V)+"px"),k.setStyle(D.element.style,"top",this.$lines.computeLineTop(P,C,V)+"px"),D.text=oe,U.style.display==="none"&&Q.style.display==="none"?D.element.setAttribute("aria-hidden",!0):D.element.setAttribute("aria-hidden",!1),D},A.prototype.setHighlightGutterLine=function(D){this.$highlightGutterLine=D},A.prototype.setShowLineNumbers=function(D){this.$renderer=!D&&{getWidth:function(){return 0},getText:function(){return""}}},A.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},A.prototype.setShowFoldWidgets=function(D){D?k.addCssClass(this.element,"ace_folding-enabled"):k.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=D,this.$padding=null},A.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},A.prototype.$computePadding=function(){var D;return this.element.firstChild?(D=k.computedStyle(this.element.firstChild),this.$padding={},this.$padding.left=(parseInt(D.borderLeftWidth)||0)+(parseInt(D.paddingLeft)||0)+1,this.$padding.right=(parseInt(D.borderRightWidth)||0)+(parseInt(D.paddingRight)||0),this.$padding):{left:0,right:0}},A.prototype.getRegion=function(D){var C=this.$padding||this.$computePadding(),x=this.element.getBoundingClientRect();return D.x<C.left+x.left?"markers":this.$showFoldWidgets&&D.x>x.right-C.right?"foldWidgets":void 0},A);function A(D){this.element=k.createElement("div"),this.element.className="ace_layer ace_gutter-layer",D.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new O(this.element),this.$lines.$offsetCoefficient=1}function R(D){var C=document.createTextNode(""),C=(D.appendChild(C),k.createElement("span")),C=(D.appendChild(C),k.createElement("span")),x=(D.appendChild(C),k.createElement("span"));return C.appendChild(x),D}_.prototype.$fixedWidth=!1,_.prototype.$highlightGutterLine=!0,_.prototype.$renderer="",_.prototype.$showLineNumbers=!0,_.prototype.$showFoldWidgets=!0,T.implement(_.prototype,I),m.Gutter=_}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(S,m,w){var k=S("../range").Range,T=S("../lib/dom"),S=(I.prototype.setPadding=function(O){this.$padding=O},I.prototype.setSession=function(O){this.session=O},I.prototype.setMarkers=function(O){this.markers=O},I.prototype.elt=function(O,y){var _=this.i!=-1&&this.element.childNodes[this.i];_?this.i++:(_=document.createElement("div"),this.element.appendChild(_),this.i=-1),_.style.cssText=y,_.className=O},I.prototype.update=function(O){if(O){var y,_;for(_ in this.config=O,this.i=0,this.markers){var A,R,D,C=this.markers[_];C.range?(D=C.range.clipRows(O.firstRow,O.lastRow)).isEmpty()||(D=D.toScreenRange(this.session),C.renderer?(A=this.$getTop(D.start.row,O),R=this.$padding+D.start.column*O.characterWidth,C.renderer(y,D,R,A,O)):C.type=="fullLine"?this.drawFullLineMarker(y,D,C.clazz,O):C.type=="screenLine"?this.drawScreenLineMarker(y,D,C.clazz,O):D.isMultiLine()?C.type=="text"?this.drawTextMarker(y,D,C.clazz,O):this.drawMultiLineMarker(y,D,C.clazz,O):this.drawSingleLineMarker(y,D,C.clazz+" ace_start ace_br15",O)):C.update(y,this,this.session,O)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},I.prototype.$getTop=function(O,y){return(O-y.firstRowScreen)*y.lineHeight},I.prototype.drawTextMarker=function(O,y,_,A,R){for(var D,C=this.session,x=y.start.row,P=y.end.row,$=x,L=0,V=C.getScreenLastRowColumn($),H=new k($,y.start.column,$,L);$<=P;$++)H.start.row=H.end.row=$,H.start.column=$==x?y.start.column:C.getRowWrapIndent($),H.end.column=V,D=L,L=V,V=$+1<P?C.getScreenLastRowColumn($+1):$==P?0:y.end.column,this.drawSingleLineMarker(O,H,_+($==x?" ace_start":"")+" ace_br"+(($==x||$==x+1&&y.start.column?1:0)|(D<L?2:0)|(V<L?4:0)|($==P?8:0)),A,$==P?0:1,R)},I.prototype.drawMultiLineMarker=function(O,y,_,A,R){var D,C=this.$padding,x=A.lineHeight,P=this.$getTop(y.start.row,A),$=C+y.start.column*A.characterWidth;R=R||"",this.session.$bidiHandler.isBidiRow(y.start.row)?((D=y.clone()).end.row=D.start.row,D.end.column=this.session.getLine(D.start.row).length,this.drawBidiSingleLineMarker(O,D,_+" ace_br1 ace_start",A,null,R)):this.elt(_+" ace_br1 ace_start","height:"+x+"px;right:0;top:"+P+"px;left:"+$+"px;"+(R||"")),this.session.$bidiHandler.isBidiRow(y.end.row)?((D=y.clone()).start.row=D.end.row,D.start.column=0,this.drawBidiSingleLineMarker(O,D,_+" ace_br12",A,null,R)):(P=this.$getTop(y.end.row,A),$=y.end.column*A.characterWidth,this.elt(_+" ace_br12","height:"+x+"px;width:"+$+"px;top:"+P+"px;left:"+C+"px;"+(R||""))),(x=(y.end.row-y.start.row-1)*A.lineHeight)<=0||(P=this.$getTop(y.start.row+1,A),O=(y.start.column?1:0)|(y.end.column?0:8),this.elt(_+(O?" ace_br"+O:""),"height:"+x+"px;right:0;top:"+P+"px;left:"+C+"px;"+(R||"")))},I.prototype.drawSingleLineMarker=function(C,$,_,A,x,D){if(this.session.$bidiHandler.isBidiRow($.start.row))return this.drawBidiSingleLineMarker(C,$,_,A,x,D);var C=A.lineHeight,x=($.end.column+(x||0)-$.start.column)*A.characterWidth,P=this.$getTop($.start.row,A),$=this.$padding+$.start.column*A.characterWidth;this.elt(_,"height:"+C+"px;width:"+x+"px;top:"+P+"px;left:"+$+"px;"+(D||""))},I.prototype.drawBidiSingleLineMarker=function(O,y,_,A,R,D){var C=A.lineHeight,x=this.$getTop(y.start.row,A),P=this.$padding;this.session.$bidiHandler.getSelections(y.start.column,y.end.column).forEach(function($){this.elt(_,"height:"+C+"px;width:"+($.width+(R||0))+"px;top:"+x+"px;left:"+(P+$.left)+"px;"+(D||""))},this)},I.prototype.drawFullLineMarker=function(O,y,_,A,R){var D=this.$getTop(y.start.row,A),C=A.lineHeight;y.start.row!=y.end.row&&(C+=this.$getTop(y.end.row,A)-D),this.elt(_,"height:"+C+"px;top:"+D+"px;left:0;right:0;"+(R||""))},I.prototype.drawScreenLineMarker=function(O,y,_,A,R){y=this.$getTop(y.start.row,A),A=A.lineHeight,this.elt(_,"height:"+A+"px;top:"+y+"px;left:0;right:0;"+(R||""))},I);function I(O){this.element=T.createElement("div"),this.element.className="ace_layer ace_marker-layer",O.appendChild(this.element)}S.prototype.$padding=0,m.Marker=S}),ace.define("ace/layer/text_util",["require","exports","module"],function(v,m,w){var k=new Set(["text","rparen","lparen"]);m.isTextToken=function(T){return k.has(T)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(A,m,w){var k=A("../lib/oop"),T=A("../lib/dom"),S=A("../lib/lang"),I=A("./lines").Lines,O=A("../lib/event_emitter").EventEmitter,y=A("../config").nls,_=A("./text_util").isTextToken,A=(R.prototype.$updateEolChar=function(){var D=this.session.doc,D=D.getNewLineCharacter()==`
|
|
`&&D.getNewLineMode()!="windows"?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=D)return this.EOL_CHAR=D,!0},R.prototype.setPadding=function(D){this.$padding=D,this.element.style.margin="0 "+D+"px"},R.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},R.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},R.prototype.$setFontMetrics=function(D){this.$fontMetrics=D,this.$fontMetrics.on("changeCharacterSize",(function(C){this._signal("changeCharacterSize",C)}).bind(this)),this.$pollSizeChanges()},R.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},R.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},R.prototype.setSession=function(D){(this.session=D)&&this.$computeTabString()},R.prototype.setShowInvisibles=function(D){return this.showInvisibles!=D&&(typeof(this.showInvisibles=D)=="string"?(this.showSpaces=/tab/i.test(D),this.showTabs=/space/i.test(D),this.showEOL=/eol/i.test(D)):this.showSpaces=this.showTabs=this.showEOL=D,this.$computeTabString(),!0)},R.prototype.setDisplayIndentGuides=function(D){return this.displayIndentGuides!=D&&(this.displayIndentGuides=D,this.$computeTabString(),!0)},R.prototype.setHighlightIndentGuides=function(D){return this.$highlightIndentGuides!==D&&(this.$highlightIndentGuides=D)},R.prototype.$computeTabString=function(){for(var D,C,x,P,$,L,V=this.session.getTabSize(),H=(this.tabSize=V,this.$tabStrings=[0]),Q=1;Q<V+1;Q++)this.showTabs?((L=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",L.textContent=S.stringRepeat(this.TAB_CHAR,Q),H.push(L)):H.push(this.dom.createTextNode(S.stringRepeat(" ",Q),this.element));this.displayIndentGuides&&(this.$indentGuideRe=/\s\S| \t|\t |\s$/,D="ace_indent-guide",C=this.showSpaces?" ace_invisible ace_invisible_space":"",x=this.showSpaces?S.stringRepeat(this.SPACE_CHAR,this.tabSize):S.stringRepeat(" ",this.tabSize),P=this.showTabs?" ace_invisible ace_invisible_tab":"",$=this.showTabs?S.stringRepeat(this.TAB_CHAR,this.tabSize):x,(L=this.dom.createElement("span")).className=D+C,L.textContent=x,this.$tabStrings[" "]=L,(L=this.dom.createElement("span")).className=D+P,L.textContent=$,this.$tabStrings[" "]=L)},R.prototype.updateLines=function(D,C,x){if(this.config.lastRow!=D.lastRow||this.config.firstRow!=D.firstRow)return this.update(D);this.config=D;for(var P=Math.max(C,D.firstRow),$=Math.min(x,D.lastRow),L=this.element.childNodes,V=0,H=D.firstRow;H<P;H++){if(Q=this.session.getFoldLine(H)){if(Q.containsRow(P)){P=Q.start.row;break}H=Q.end.row}V++}for(var Q,U=!1,H=P,K=(Q=this.session.getNextFoldLine(H))?Q.start.row:1/0;K<H&&(H=Q.end.row+1,K=(Q=this.session.getNextFoldLine(H,Q))?Q.start.row:1/0),!($<H);){var J,ue=L[V++];ue&&(this.dom.removeChildren(ue),this.$renderLine(ue,H,H==K&&Q),U&&(ue.style.top=this.$lines.computeLineTop(H,D,this.session)+"px"),J=D.lineHeight*this.session.getRowLength(H)+"px",ue.style.height!=J)&&(U=!0,ue.style.height=J),H++}if(U)for(;V<this.$lines.cells.length;){var ee=this.$lines.cells[V++];ee.element.style.top=this.$lines.computeLineTop(ee.row,D,this.session)+"px"}},R.prototype.scrollLines=function(D){var C=this.config;if(this.config=D,this.$lines.pageChanged(C,D))return this.update(D);this.$lines.moveContainer(D);var x=D.lastRow,P=C?C.lastRow:-1;if(!C||P<D.firstRow)return this.update(D);if(x<C.firstRow)return this.update(D);if(!C||C.lastRow<D.firstRow)return this.update(D);if(D.lastRow<C.firstRow)return this.update(D);if(C.firstRow<D.firstRow)for(var $=this.session.getFoldedRowCount(C.firstRow,D.firstRow-1);0<$;$--)this.$lines.shift();if(C.lastRow>D.lastRow)for($=this.session.getFoldedRowCount(D.lastRow+1,C.lastRow);0<$;$--)this.$lines.pop();D.firstRow<C.firstRow&&this.$lines.unshift(this.$renderLinesFragment(D,D.firstRow,C.firstRow-1)),D.lastRow>C.lastRow&&this.$lines.push(this.$renderLinesFragment(D,C.lastRow+1,D.lastRow)),this.$highlightIndentGuide()},R.prototype.$renderLinesFragment=function(D,C,x){for(var P=[],$=C,L=this.session.getNextFoldLine($),V=L?L.start.row:1/0;V<$&&($=L.end.row+1,V=(L=this.session.getNextFoldLine($,L))?L.start.row:1/0),!(x<$);){var H=this.$lines.createCell($,D,this.session),Q=H.element;this.dom.removeChildren(Q),T.setStyle(Q.style,"height",this.$lines.computeLineHeight($,D,this.session)+"px"),T.setStyle(Q.style,"top",this.$lines.computeLineTop($,D,this.session)+"px"),this.$renderLine(Q,$,$==V&&L),this.$useLineGroups()?Q.className="ace_line_group":Q.className="ace_line",P.push(H),$++}return P},R.prototype.update=function(D){this.$lines.moveContainer(D);for(var C=(this.config=D).firstRow,x=D.lastRow,P=this.$lines;P.getLength();)P.pop();P.push(this.$renderLinesFragment(D,C,x))},R.prototype.$renderToken=function(D,C,x,P){for(var $,L,V=this,H=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,Q=this.dom.createFragment(this.element),U=0;$=H.exec(P);){var K,J,ue=$[1],ee=$[2],N=$[3],q=$[4],G=$[5];!V.showSpaces&&ee||(K=U!=$.index?P.slice(U,$.index):"",U=$.index+$[0].length,K&&Q.appendChild(this.dom.createTextNode(K,this.element)),ue?(K=V.session.getScreenTabSize(C+$.index),Q.appendChild(V.$tabStrings[K].cloneNode(!0)),C+=K-1):ee?V.showSpaces?((J=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",J.textContent=S.stringRepeat(V.SPACE_CHAR,ee.length),Q.appendChild(J)):Q.appendChild(this.dom.createTextNode(ee,this.element)):N?((J=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",J.textContent=S.stringRepeat(V.SPACE_CHAR,N.length),Q.appendChild(J)):q?(C+=1,(J=this.dom.createElement("span")).style.width=2*V.config.characterWidth+"px",J.className=V.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",J.textContent=V.showSpaces?V.SPACE_CHAR:q,Q.appendChild(J)):G&&(C+=1,(J=this.dom.createElement("span")).style.width=2*V.config.characterWidth+"px",J.className="ace_cjk",J.textContent=G,Q.appendChild(J)))}return Q.appendChild(this.dom.createTextNode(U?P.slice(U):P,this.element)),_(x.type)?D.appendChild(Q):(L="ace_"+x.type.replace(/\./g," ace_"),J=this.dom.createElement("span"),x.type=="fold"&&(J.style.width=x.value.length*this.config.characterWidth+"px",J.setAttribute("title",y("Unfold code"))),J.className=L,J.appendChild(Q),D.appendChild(J)),C+P.length},R.prototype.renderIndentGuide=function(D,C,x){var P=C.search(this.$indentGuideRe);if(!(P<=0||x<=P)){if(C[0]==" "){for(var $=(P-=P%this.tabSize)/this.tabSize,L=0;L<$;L++)D.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),C.substr(P)}if(C[0]==" "){for(L=0;L<P;L++)D.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),C.substr(P)}this.$highlightIndentGuide()}return C},R.prototype.$highlightIndentGuide=function(){if(this.$highlightIndentGuides&&this.displayIndentGuides){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var D=this.session.doc.$lines;if(D){var C=this.session.selection.getCursor(),x=/^\s*/.exec(this.session.doc.getLine(C.row))[0].length,P=Math.floor(x/this.tabSize);if(this.$highlightIndentGuideMarker={indentLevel:P,start:C.row},this.session.$bracketHighlight){for(var $=this.session.$bracketHighlight.ranges,L=0;L<$.length;L++)if(C.row!==$[L].start.row){this.$highlightIndentGuideMarker.end=$[L].start.row,C.row>$[L].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&D[C.row]!==""&&C.column===D[C.row].length)for(this.$highlightIndentGuideMarker.dir=1,L=C.row+1;L<D.length;L++){var V=D[L],H=/^\s*/.exec(V)[0].length;if(V!==""&&(this.$highlightIndentGuideMarker.end=L,H<=x))break}this.$renderHighlightIndentGuide()}}},R.prototype.$clearActiveIndentGuide=function(){for(var D=this.$lines.cells,C=0;C<D.length;C++){var x=D[C].element.childNodes;if(0<x.length){for(var P=0;P<x.length;P++)if(x[P].classList&&x[P].classList.contains("ace_indent-guide-active")){x[P].classList.remove("ace_indent-guide-active");break}}}},R.prototype.$setIndentGuideActive=function(D,C){this.session.doc.getLine(D.row)!==""&&(D=D.element.childNodes)&&(D=D[C-1])&&D.classList&&D.classList.contains("ace_indent-guide")&&D.classList.add("ace_indent-guide-active")},R.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var D=this.$lines.cells,C=(this.$clearActiveIndentGuide(),this.$highlightIndentGuideMarker.indentLevel);if(C!==0){if(this.$highlightIndentGuideMarker.dir===1)for(var x=0;x<D.length;x++){var P=D[x];if(this.$highlightIndentGuideMarker.end&&P.row>=this.$highlightIndentGuideMarker.start+1){if(P.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(P,C)}}else for(x=D.length-1;0<=x;x--)if(P=D[x],this.$highlightIndentGuideMarker.end&&P.row<this.$highlightIndentGuideMarker.start){if(P.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(P,C)}}}},R.prototype.$createLineElement=function(D){var C=this.dom.createElement("div");return C.className="ace_line",C.style.height=this.config.lineHeight+"px",C},R.prototype.$renderWrappedLine=function(D,C,x){var P=0,$=0,L=x[0],V=0,H=this.$createLineElement();D.appendChild(H);for(var Q=0;Q<C.length;Q++){var U=C[Q],K=U.value;if(Q==0&&this.displayIndentGuides){if(P=K.length,!(K=this.renderIndentGuide(H,K,L)))continue;P-=K.length}if(P+K.length<L)V=this.$renderToken(H,V,U,K),P+=K.length;else{for(;P+K.length>=L;)V=this.$renderToken(H,V,U,K.substring(0,L-P)),K=K.substring(L-P),P=L,H=this.$createLineElement(),D.appendChild(H),H.appendChild(this.dom.createTextNode(S.stringRepeat(" ",x.indent),this.element)),V=0,L=x[++$]||Number.MAX_VALUE;K.length!=0&&(P+=K.length,V=this.$renderToken(H,V,U,K))}}x[x.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(H,V,null,"",!0)},R.prototype.$renderSimpleLine=function(D,C){for(var x=0,P=0;P<C.length;P++){var $=C[P],L=$.value;if(P!=0||!this.displayIndentGuides||(L=this.renderIndentGuide(D,L))){if(x+L.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(D,x,$,L);x=this.$renderToken(D,x,$,L)}}},R.prototype.$renderOverflowMessage=function(D,C,x,P,$){x&&this.$renderToken(D,C,x,P.slice(0,this.MAX_LINE_LENGTH-C)),x=this.dom.createElement("span"),x.className="ace_inline_button ace_keyword ace_toggle_wrap",x.textContent=$?"<hide>":"<click to see more...>",D.appendChild(x)},R.prototype.$renderLine=function(D,C,x){var P,$,L=D;(P=(x=x||x==0?x:this.session.getFoldLine(C))?this.$getFoldLineTokens(C,x):this.session.getTokens(C)).length?($=this.session.getRowSplitData(C))&&$.length?(this.$renderWrappedLine(D,P,$),L=D.lastChild):(L=D,this.$useLineGroups()&&(L=this.$createLineElement(),D.appendChild(L)),this.$renderSimpleLine(L,P)):this.$useLineGroups()&&(L=this.$createLineElement(),D.appendChild(L)),this.showEOL&&L&&(x&&(C=x.end.row),($=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",$.textContent=C==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,L.appendChild($))},R.prototype.$getFoldLineTokens=function(D,C){var x=this.session,P=[],$=x.getTokens(D);return C.walk(function(L,V,H,Q,U){if(L!=null)P.push({type:"fold",value:L});else if(($=U?x.getTokens(V):$).length){for(var K,J=$,ue=Q,ee=H,N=0,q=0;q+J[N].value.length<ue;)if(q+=J[N].value.length,++N==J.length)return;for(q!=ue&&((K=J[N].value.substring(ue-q)).length>ee-ue&&(K=K.substring(0,ee-ue)),P.push({type:J[N].type,value:K}),q=ue+K.length,N+=1);q<ee&&N<J.length;)(K=J[N].value).length+q>ee?P.push({type:J[N].type,value:K.substring(0,ee-q)}):P.push(J[N]),q+=K.length,N+=1}},C.end.row,this.session.getLine(C.end.row).length),P},R.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},R);function R(D){this.dom=T,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",D.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new I(this.element)}A.prototype.EOF_CHAR="¶",A.prototype.EOL_CHAR_LF="¬",A.prototype.EOL_CHAR_CRLF="¤",A.prototype.EOL_CHAR=A.prototype.EOL_CHAR_LF,A.prototype.TAB_CHAR="—",A.prototype.SPACE_CHAR="·",A.prototype.$padding=0,A.prototype.MAX_LINE_LENGTH=1e4,A.prototype.showInvisibles=!1,A.prototype.showSpaces=!1,A.prototype.showTabs=!1,A.prototype.showEOL=!1,A.prototype.displayIndentGuides=!0,A.prototype.$highlightIndentGuides=!0,A.prototype.$tabStrings=[],A.prototype.destroy={},A.prototype.onChangeTabSize=A.prototype.$computeTabString,k.implement(A.prototype,O),m.Text=A}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(T,m,w){var k=T("../lib/dom"),T=(S.prototype.$updateOpacity=function(I){for(var O=this.cursors,y=O.length;y--;)k.setStyle(O[y].style,"opacity",I?"":"0")},S.prototype.$startCssAnimation=function(){for(var I=this.cursors,O=I.length;O--;)I[O].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&k.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},S.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,k.removeCssClass(this.element,"ace_animate-blinking")},S.prototype.setPadding=function(I){this.$padding=I},S.prototype.setSession=function(I){this.session=I},S.prototype.setBlinking=function(I){I!=this.isBlinking&&(this.isBlinking=I,this.restartTimer())},S.prototype.setBlinkInterval=function(I){I!=this.blinkInterval&&(this.blinkInterval=I,this.restartTimer())},S.prototype.setSmoothBlinking=function(I){I!=this.smoothBlinking&&(this.smoothBlinking=I,k.setCssClass(this.element,"ace_smooth-blinking",I),this.$updateCursors(!0),this.restartTimer())},S.prototype.addCursor=function(){var I=k.createElement("div");return I.className="ace_cursor",this.element.appendChild(I),this.cursors.push(I),I},S.prototype.removeCursor=function(){var I;if(1<this.cursors.length)return(I=this.cursors.pop()).parentNode.removeChild(I),I},S.prototype.hideCursor=function(){this.isVisible=!1,k.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},S.prototype.showCursor=function(){this.isVisible=!0,k.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},S.prototype.restartTimer=function(){var I,O=this.$updateCursors;clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,k.removeCssClass(this.element,"ace_smooth-blinking")),O(!0),this.isBlinking&&this.blinkInterval&&this.isVisible?(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&k.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),k.HAS_CSS_ANIMATION?this.$startCssAnimation():(I=(function(){this.timeoutId=setTimeout(function(){O(!1)},.6*this.blinkInterval)}).bind(this),this.intervalId=setInterval(function(){O(!0),I()},this.blinkInterval),I())):this.$stopCssAnimation()},S.prototype.getPixelPosition=function(I,O){if(!this.config||!this.session)return{left:0,top:0};I=I||this.session.selection.getCursor();var y=this.session.documentToScreenPosition(I);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(y.row,I.row)?this.session.$bidiHandler.getPosLeft(y.column):y.column*this.config.characterWidth),top:(y.row-(O?this.config.firstRowScreen:0))*this.config.lineHeight}},S.prototype.isCursorInView=function(I,O){return 0<=I.top&&I.top<O.maxHeight},S.prototype.update=function(I){this.config=I;for(var O=this.session.$selectionMarkers,_=0,y=0,_=0,A=(O=O!==void 0&&O.length!==0?O:[{cursor:null}]).length;_<A;_++){var R,D,C=this.getPixelPosition(O[_].cursor,!0);(C.top>I.height+I.offset||C.top<0)&&1<_||(D=(R=this.cursors[y++]||this.addCursor()).style,this.drawCursor?this.drawCursor(R,C,I,O[_],this.session):this.isCursorInView(C,I)?(k.setStyle(D,"display","block"),k.translate(R,C.left,C.top),k.setStyle(D,"width",Math.round(I.characterWidth)+"px"),k.setStyle(D,"height",I.lineHeight+"px")):k.setStyle(D,"display","none"))}for(;this.cursors.length>y;)this.removeCursor();var x=this.session.getOverwrite();this.$setOverwrite(x),this.$pixelPos=C,this.restartTimer()},S.prototype.$setOverwrite=function(I){I!=this.overwrite&&((this.overwrite=I)?k.addCssClass(this.element,"ace_overwrite-cursors"):k.removeCssClass(this.element,"ace_overwrite-cursors"))},S.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},S);function S(I){this.element=k.createElement("div"),this.element.className="ace_layer ace_cursor-layer",I.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),k.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}T.prototype.$padding=0,T.prototype.drawCursor=null,m.Cursor=T}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(C,m,w){var k,T=this&&this.__extends||(k=function(P,$){return(k=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(L,V){L.__proto__=V}:function(L,V){for(var H in V)Object.prototype.hasOwnProperty.call(V,H)&&(L[H]=V[H])}))(P,$)},function(P,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");function L(){this.constructor=P}k(P,$),P.prototype=$===null?Object.create($):(L.prototype=$.prototype,new L)}),A=C("./lib/oop"),S=C("./lib/dom"),I=C("./lib/event"),C=C("./lib/event_emitter").EventEmitter,O=(y.prototype.setVisible=function(P){this.element.style.display=P?"":"none",this.isVisible=P,this.coeff=1},y);function y(P,$){this.element=S.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+$,this.inner=S.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),P.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,I.addListener(this.element,"scroll",this.onScroll.bind(this)),I.addListener(this.element,"mousedown",I.preventDefault)}A.implement(O.prototype,C),T(R,_=O),R.prototype.onScroll=function(){var P;this.skipEvent||(this.scrollTop=this.element.scrollTop,this.coeff!=1&&(P=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-P)/(this.coeff-P)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},R.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},R.prototype.setHeight=function(P){this.element.style.height=P+"px"},R.prototype.setScrollHeight=function(P){32768<(this.scrollHeight=P)?(this.coeff=32768/P,P=32768):this.coeff!=1&&(this.coeff=1),this.inner.style.height=P+"px"},R.prototype.setScrollTop=function(P){this.scrollTop!=P&&(this.skipEvent=!0,this.scrollTop=P,this.element.scrollTop=P*this.coeff)};var _,A=R;function R(P,$){var L=_.call(this,P,"-v")||this;return L.scrollTop=0,L.scrollHeight=0,$.$scrollbarWidth=L.width=S.scrollbarWidth(P.ownerDocument),L.inner.style.width=L.element.style.width=(L.width||15)+5+"px",L.$minWidth=0,L}A.prototype.setInnerHeight=A.prototype.setScrollHeight,T(x,D=O),x.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},x.prototype.getHeight=function(){return this.isVisible?this.height:0},x.prototype.setWidth=function(P){this.element.style.width=P+"px"},x.prototype.setInnerWidth=function(P){this.inner.style.width=P+"px"},x.prototype.setScrollWidth=function(P){this.inner.style.width=P+"px"},x.prototype.setScrollLeft=function(P){this.scrollLeft!=P&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=P)};var D,C=x;function x(P,$){return P=D.call(this,P,"-h")||this,P.scrollLeft=0,P.height=$.$scrollbarWidth,P.inner.style.height=P.element.style.height=(P.height||15)+5+"px",P}m.ScrollBar=A,m.ScrollBarV=A,m.ScrollBarH=C,m.VScrollBar=A,m.HScrollBar=C}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(C,m,w){var k,T=this&&this.__extends||(k=function(P,$){return(k=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(L,V){L.__proto__=V}:function(L,V){for(var H in V)Object.prototype.hasOwnProperty.call(V,H)&&(L[H]=V[H])}))(P,$)},function(P,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");function L(){this.constructor=P}k(P,$),P.prototype=$===null?Object.create($):(L.prototype=$.prototype,new L)}),A=C("./lib/oop"),S=C("./lib/dom"),I=C("./lib/event"),C=C("./lib/event_emitter").EventEmitter,O=(S.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
|
position: absolute;
|
|
background: rgba(128, 128, 128, 0.6);
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
border: 1px solid #bbb;
|
|
border-radius: 2px;
|
|
z-index: 8;
|
|
}
|
|
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
|
position: absolute;
|
|
z-index: 6;
|
|
background: none;
|
|
overflow: hidden!important;
|
|
}
|
|
.ace_editor>.ace_sb-v {
|
|
z-index: 6;
|
|
right: 0;
|
|
top: 0;
|
|
width: 12px;
|
|
}
|
|
.ace_editor>.ace_sb-v div {
|
|
z-index: 8;
|
|
right: 0;
|
|
width: 100%;
|
|
}
|
|
.ace_editor>.ace_sb-h {
|
|
bottom: 0;
|
|
left: 0;
|
|
height: 12px;
|
|
}
|
|
.ace_editor>.ace_sb-h div {
|
|
bottom: 0;
|
|
height: 100%;
|
|
}
|
|
.ace_editor>.ace_sb_grabbed {
|
|
z-index: 8;
|
|
background: #000;
|
|
}`,"ace_scrollbar.css",!1),y.prototype.setVisible=function(P){this.element.style.display=P?"":"none",this.isVisible=P,this.coeff=1},y);function y(P,$){this.element=S.createElement("div"),this.element.className="ace_sb"+$,this.inner=S.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,P.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,I.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}A.implement(O.prototype,C),T(R,_=O),R.prototype.onMouseDown=function(P,$){var L,V,H,Q,U;if(P==="mousedown"&&I.getButton($)===0&&$.detail!==2)return $.target===this.inner?(L=this,V=$.clientY,H=$.clientY,Q=this.thumbTop,I.capture(this.inner,function(K){V=K.clientY},function(){clearInterval(U)}),U=setInterval(function(){var K;V!==void 0&&(K=L.scrollTopFromThumbTop(Q+V-H))!==L.scrollTop&&L._emit("scroll",{data:K})},20)):(P=$.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2,this._emit("scroll",{data:this.scrollTopFromThumbTop(P)})),I.preventDefault($)},R.prototype.getHeight=function(){return this.height},R.prototype.scrollTopFromThumbTop=function(P){return P=P*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight),(P>>=0)<0?P=0:P>this.pageHeight-this.viewHeight&&(P=this.pageHeight-this.viewHeight),P},R.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},R.prototype.setHeight=function(P){this.height=Math.max(0,P),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},R.prototype.setScrollHeight=function(P,$){(this.pageHeight!==P||$)&&(this.pageHeight=P,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight)&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop}))},R.prototype.setScrollTop=function(P){this.scrollTop=P,this.thumbTop=(P=P<0?0:P)*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"};var _,A=R;function R(P,$){var L=_.call(this,P,"-v")||this;return L.scrollTop=0,L.scrollHeight=0,L.parent=P,L.width=L.VScrollWidth,L.renderer=$,L.inner.style.width=L.element.style.width=(L.width||15)+"px",L.$minWidth=0,L}A.prototype.setInnerHeight=A.prototype.setScrollHeight,T(x,D=O),x.prototype.onMouseDown=function(P,$){var L,V,H,Q,U;if(P==="mousedown"&&I.getButton($)===0&&$.detail!==2)return $.target===this.inner?(L=this,V=$.clientX,H=$.clientX,Q=this.thumbLeft,I.capture(this.inner,function(K){V=K.clientX},function(){clearInterval(U)}),U=setInterval(function(){var K;V!==void 0&&(K=L.scrollLeftFromThumbLeft(Q+V-H))!==L.scrollLeft&&L._emit("scroll",{data:K})},20)):(P=$.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2,this._emit("scroll",{data:this.scrollLeftFromThumbLeft(P)})),I.preventDefault($)},x.prototype.getHeight=function(){return this.isVisible?this.height:0},x.prototype.scrollLeftFromThumbLeft=function(P){return P=P*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth),(P>>=0)<0?P=0:P>this.pageWidth-this.viewWidth&&(P=this.pageWidth-this.viewWidth),P},x.prototype.setWidth=function(P){this.width=Math.max(0,P),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},x.prototype.setScrollWidth=function(P,$){(this.pageWidth!==P||$)&&(this.pageWidth=P,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth)&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft}))},x.prototype.setScrollLeft=function(P){this.scrollLeft=P,this.thumbLeft=(P=P<0?0:P)*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"};var D,C=x;function x(P,$){return P=D.call(this,P,"-h")||this,P.scrollLeft=0,P.scrollWidth=0,P.height=P.HScrollHeight,P.inner.style.height=P.element.style.height=(P.height||12)+"px",P.renderer=$,P}C.prototype.setInnerWidth=C.prototype.setScrollWidth,m.ScrollBar=A,m.ScrollBarV=A,m.ScrollBarH=C,m.VScrollBar=A,m.HScrollBar=C}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(v,m,w){var k=v("./lib/event");function T(S,I){this.onRender=S,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=I||window;var O=this;this._flush=function(y){O.pending=!1;var _=O.changes;_&&(k.blockIdle(100),O.changes=0,O.onRender(_)),O.changes?O.$recursionLimit--<0||O.schedule():O.$recursionLimit=2}}T.prototype.schedule=function(S){this.changes=this.changes|S,this.changes&&!this.pending&&(k.nextFrame(this._flush),this.pending=!0)},T.prototype.clear=function(S){var I=this.changes;return this.changes=0,I},m.RenderLoop=T}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(y,m,w){var k=y("../lib/oop"),T=y("../lib/dom"),S=y("../lib/lang"),I=y("../lib/event"),O=y("../lib/useragent"),y=y("../lib/event_emitter").EventEmitter,_=typeof ResizeObserver=="function",A=(R.prototype.$setMeasureNodeStyles=function(D,C){D.width=D.height="auto",D.left=D.top="0px",D.visibility="hidden",D.position="absolute",D.whiteSpace="pre",O.isIE<8?D["font-family"]="inherit":D.font="inherit",D.overflow=C?"hidden":"visible"},R.prototype.checkForSizeChanges=function(D){var C;!(D=D===void 0?this.$measureSizes():D)||this.$characterSize.width===D.width&&this.$characterSize.height===D.height||(this.$measureNode.style.fontWeight="bold",C=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=D,this.charSizes=Object.create(null),this.allowBoldFonts=C&&C.width===D.width&&C.height===D.height,this._emit("changeCharacterSize",{data:D}))},R.prototype.$addObserver=function(){var D=this;this.$observer=new window.ResizeObserver(function(C){D.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},R.prototype.$pollSizeChanges=function(){var D;return this.$pollSizeChangesTimer||this.$observer?this.$pollSizeChangesTimer:(D=this).$pollSizeChangesTimer=I.onIdle(function C(){D.checkForSizeChanges(),I.onIdle(C,500)},500)},R.prototype.setPolling=function(D){D?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},R.prototype.$measureSizes=function(D){return D={height:(D||this.$measureNode).clientHeight,width:(D||this.$measureNode).clientWidth/512},D.width===0||D.height===0?null:D},R.prototype.$measureCharWidth=function(D){return this.$main.textContent=S.stringRepeat(D,512),this.$main.getBoundingClientRect().width/512},R.prototype.getCharacterWidth=function(D){var C=this.charSizes[D];return C=C===void 0?this.charSizes[D]=this.$measureCharWidth(D)/this.$characterSize.width:C},R.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},R.prototype.$getZoom=function(D){return D&&D.parentElement?(window.getComputedStyle(D).zoom||1)*this.$getZoom(D.parentElement):1},R.prototype.$initTransformMeasureNodes=function(){function D(C,x){return["div",{style:"position: absolute;top:"+C+"px;left:"+x+"px;"}]}this.els=T.buildDom([D(0,0),D(200,0),D(0,200),D(200,200)],this.el)},R.prototype.transformCoordinates=function(D,C){function x(ue,ee,N){var q=ue[1]*ee[0]-ue[0]*ee[1];return[(-ee[1]*N[0]+ee[0]*N[1])/q,(+ue[1]*N[0]-ue[0]*N[1])/q]}function P(ue,ee){return[ue[0]-ee[0],ue[1]-ee[1]]}function $(ue,ee){return[ue[0]+ee[0],ue[1]+ee[1]]}function L(ue,ee){return[ue*ee[0],ue*ee[1]]}function V(ue){return ue=ue.getBoundingClientRect(),[ue.left,ue.top]}D=D&&L(1/this.$getZoom(this.el),D),this.els||this.$initTransformMeasureNodes();var H,Q=V(this.els[0]),K=V(this.els[1]),J=V(this.els[2]),U=V(this.els[3]),U=x(P(U,K),P(U,J),P($(K,J),$(U,Q))),K=L(1+U[0],P(K,Q)),J=L(1+U[1],P(J,Q));return C?(H=U[0]*C[0]/200+U[1]*C[1]/200+1,C=$(L(C[0],K),L(C[1],J)),$(L(1/H/200,C),Q)):(H=P(D,Q),C=x(P(K,L(U[0],H)),P(J,L(U[1],H)),H),L(200,C))},R);function R(D){this.el=T.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=T.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=T.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),D.appendChild(this.el),this.$measureNode.textContent=S.stringRepeat("X",512),this.$characterSize={width:0,height:0},_?this.$addObserver():this.checkForSizeChanges()}A.prototype.$characterSize={width:0,height:0},k.implement(A.prototype,y),m.FontMetrics=A}),ace.define("ace/css/editor-css",["require","exports","module"],function(v,m,w){w.exports=`
|
|
.ace_br1 {border-top-left-radius : 3px;}
|
|
.ace_br2 {border-top-right-radius : 3px;}
|
|
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
|
.ace_br4 {border-bottom-right-radius: 3px;}
|
|
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
|
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
|
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
|
.ace_br8 {border-bottom-left-radius : 3px;}
|
|
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
|
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
|
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
|
|
|
|
.ace_editor {
|
|
position: relative;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
|
direction: ltr;
|
|
text-align: left;
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
}
|
|
|
|
.ace_scroller {
|
|
position: absolute;
|
|
overflow: hidden;
|
|
top: 0;
|
|
bottom: 0;
|
|
background-color: inherit;
|
|
-ms-user-select: none;
|
|
-moz-user-select: none;
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
cursor: text;
|
|
}
|
|
|
|
.ace_content {
|
|
position: absolute;
|
|
box-sizing: border-box;
|
|
min-width: 100%;
|
|
contain: style size layout;
|
|
font-variant-ligatures: no-common-ligatures;
|
|
}
|
|
|
|
.ace_keyboard-focus:focus {
|
|
box-shadow: inset 0 0 0 2px #5E9ED6;
|
|
outline: none;
|
|
}
|
|
|
|
.ace_dragging .ace_scroller:before{
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
content: '';
|
|
background: rgba(250, 250, 250, 0.01);
|
|
z-index: 1000;
|
|
}
|
|
.ace_dragging.ace_dark .ace_scroller:before{
|
|
background: rgba(0, 0, 0, 0.01);
|
|
}
|
|
|
|
.ace_gutter {
|
|
position: absolute;
|
|
overflow : hidden;
|
|
width: auto;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
cursor: default;
|
|
z-index: 4;
|
|
-ms-user-select: none;
|
|
-moz-user-select: none;
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
contain: style size layout;
|
|
}
|
|
|
|
.ace_gutter-active-line {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.ace_scroller.ace_scroll-left:after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding-left: 19px;
|
|
padding-right: 6px;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
|
margin-left: -14px;
|
|
float: left;
|
|
}
|
|
|
|
.ace_gutter-cell .ace_gutter_annotation {
|
|
margin-left: -19px;
|
|
float: left;
|
|
}
|
|
|
|
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
|
|
background-repeat: no-repeat;
|
|
background-position: 2px center;
|
|
}
|
|
|
|
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
|
|
background-repeat: no-repeat;
|
|
background-position: 2px center;
|
|
}
|
|
|
|
.ace_gutter-cell.ace_info, .ace_icon.ace_info {
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
|
background-repeat: no-repeat;
|
|
background-position: 2px center;
|
|
}
|
|
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
|
}
|
|
|
|
.ace_icon_svg.ace_error {
|
|
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
|
background-color: crimson;
|
|
}
|
|
.ace_icon_svg.ace_warning {
|
|
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
|
background-color: darkorange;
|
|
}
|
|
.ace_icon_svg.ace_info {
|
|
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
|
background-color: royalblue;
|
|
}
|
|
|
|
.ace_icon_svg.ace_error_fold {
|
|
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
background-color: crimson;
|
|
}
|
|
.ace_icon_svg.ace_warning_fold {
|
|
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
|
background-color: darkorange;
|
|
}
|
|
|
|
.ace_scrollbar {
|
|
contain: strict;
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 6;
|
|
}
|
|
|
|
.ace_scrollbar-inner {
|
|
position: absolute;
|
|
cursor: text;
|
|
left: 0;
|
|
top: 0;
|
|
}
|
|
|
|
.ace_scrollbar-v{
|
|
overflow-x: hidden;
|
|
overflow-y: scroll;
|
|
top: 0;
|
|
}
|
|
|
|
.ace_scrollbar-h {
|
|
overflow-x: scroll;
|
|
overflow-y: hidden;
|
|
left: 0;
|
|
}
|
|
|
|
.ace_print-margin {
|
|
position: absolute;
|
|
height: 100%;
|
|
}
|
|
|
|
.ace_text-input {
|
|
position: absolute;
|
|
z-index: 0;
|
|
width: 0.5em;
|
|
height: 1em;
|
|
opacity: 0;
|
|
background: transparent;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
border: none;
|
|
resize: none;
|
|
outline: none;
|
|
overflow: hidden;
|
|
font: inherit;
|
|
padding: 0 1px;
|
|
margin: 0 -1px;
|
|
contain: strict;
|
|
-ms-user-select: text;
|
|
-moz-user-select: text;
|
|
-webkit-user-select: text;
|
|
user-select: text;
|
|
/*with \`pre-line\` chrome inserts instead of space*/
|
|
white-space: pre!important;
|
|
}
|
|
.ace_text-input.ace_composition {
|
|
background: transparent;
|
|
color: inherit;
|
|
z-index: 1000;
|
|
opacity: 1;
|
|
}
|
|
.ace_composition_placeholder { color: transparent }
|
|
.ace_composition_marker {
|
|
border-bottom: 1px solid;
|
|
position: absolute;
|
|
border-radius: 0;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
[ace_nocontext=true] {
|
|
transform: none!important;
|
|
filter: none!important;
|
|
clip-path: none!important;
|
|
mask : none!important;
|
|
contain: none!important;
|
|
perspective: none!important;
|
|
mix-blend-mode: initial!important;
|
|
z-index: auto;
|
|
}
|
|
|
|
.ace_layer {
|
|
z-index: 1;
|
|
position: absolute;
|
|
overflow: hidden;
|
|
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
|
word-wrap: normal;
|
|
white-space: pre;
|
|
height: 100%;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
/* setting pointer-events: auto; on node under the mouse, which changes
|
|
during scroll, will break mouse wheel scrolling in Safari */
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ace_gutter-layer {
|
|
position: relative;
|
|
width: auto;
|
|
text-align: right;
|
|
pointer-events: auto;
|
|
height: 1000000px;
|
|
contain: style size layout;
|
|
}
|
|
|
|
.ace_text-layer {
|
|
font: inherit !important;
|
|
position: absolute;
|
|
height: 1000000px;
|
|
width: 1000000px;
|
|
contain: style size layout;
|
|
}
|
|
|
|
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
|
contain: style size layout;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.ace_hidpi .ace_text-layer,
|
|
.ace_hidpi .ace_gutter-layer,
|
|
.ace_hidpi .ace_content,
|
|
.ace_hidpi .ace_gutter {
|
|
contain: strict;
|
|
}
|
|
.ace_hidpi .ace_text-layer > .ace_line,
|
|
.ace_hidpi .ace_text-layer > .ace_line_group {
|
|
contain: strict;
|
|
}
|
|
|
|
.ace_cjk {
|
|
display: inline-block;
|
|
text-align: center;
|
|
}
|
|
|
|
.ace_cursor-layer {
|
|
z-index: 4;
|
|
}
|
|
|
|
.ace_cursor {
|
|
z-index: 4;
|
|
position: absolute;
|
|
box-sizing: border-box;
|
|
border-left: 2px solid;
|
|
/* workaround for smooth cursor repaintng whole screen in chrome */
|
|
transform: translatez(0);
|
|
}
|
|
|
|
.ace_multiselect .ace_cursor {
|
|
border-left-width: 1px;
|
|
}
|
|
|
|
.ace_slim-cursors .ace_cursor {
|
|
border-left-width: 1px;
|
|
}
|
|
|
|
.ace_overwrite-cursors .ace_cursor {
|
|
border-left-width: 0;
|
|
border-bottom: 1px solid;
|
|
}
|
|
|
|
.ace_hidden-cursors .ace_cursor {
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
|
opacity: 0;
|
|
}
|
|
|
|
.ace_smooth-blinking .ace_cursor {
|
|
transition: opacity 0.18s;
|
|
}
|
|
|
|
.ace_animate-blinking .ace_cursor {
|
|
animation-duration: 1000ms;
|
|
animation-timing-function: step-end;
|
|
animation-name: blink-ace-animate;
|
|
animation-iteration-count: infinite;
|
|
}
|
|
|
|
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
|
animation-duration: 1000ms;
|
|
animation-timing-function: ease-in-out;
|
|
animation-name: blink-ace-animate-smooth;
|
|
}
|
|
|
|
@keyframes blink-ace-animate {
|
|
from, to { opacity: 1; }
|
|
60% { opacity: 0; }
|
|
}
|
|
|
|
@keyframes blink-ace-animate-smooth {
|
|
from, to { opacity: 1; }
|
|
45% { opacity: 1; }
|
|
60% { opacity: 0; }
|
|
85% { opacity: 0; }
|
|
}
|
|
|
|
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
|
position: absolute;
|
|
z-index: 3;
|
|
}
|
|
|
|
.ace_marker-layer .ace_selection {
|
|
position: absolute;
|
|
z-index: 5;
|
|
}
|
|
|
|
.ace_marker-layer .ace_bracket {
|
|
position: absolute;
|
|
z-index: 6;
|
|
}
|
|
|
|
.ace_marker-layer .ace_error_bracket {
|
|
position: absolute;
|
|
border-bottom: 1px solid #DE5555;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.ace_marker-layer .ace_active-line {
|
|
position: absolute;
|
|
z-index: 2;
|
|
}
|
|
|
|
.ace_marker-layer .ace_selected-word {
|
|
position: absolute;
|
|
z-index: 4;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.ace_line .ace_fold {
|
|
box-sizing: border-box;
|
|
|
|
display: inline-block;
|
|
height: 11px;
|
|
margin-top: -2px;
|
|
vertical-align: middle;
|
|
|
|
background-image:
|
|
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
|
background-repeat: no-repeat, repeat-x;
|
|
background-position: center center, top left;
|
|
color: transparent;
|
|
|
|
border: 1px solid black;
|
|
border-radius: 2px;
|
|
|
|
cursor: pointer;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.ace_dark .ace_fold {
|
|
}
|
|
|
|
.ace_fold:hover{
|
|
background-image:
|
|
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
|
}
|
|
|
|
.ace_tooltip {
|
|
background-color: #f5f5f5;
|
|
border: 1px solid gray;
|
|
border-radius: 1px;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
color: black;
|
|
max-width: 100%;
|
|
padding: 3px 4px;
|
|
position: fixed;
|
|
z-index: 999999;
|
|
box-sizing: border-box;
|
|
cursor: default;
|
|
white-space: pre;
|
|
word-wrap: break-word;
|
|
line-height: normal;
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
letter-spacing: normal;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ace_tooltip.ace_dark {
|
|
background-color: #636363;
|
|
color: #fff;
|
|
}
|
|
|
|
.ace_tooltip:focus {
|
|
outline: 1px solid #5E9ED6;
|
|
}
|
|
|
|
.ace_icon {
|
|
display: inline-block;
|
|
width: 18px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.ace_icon_svg {
|
|
display: inline-block;
|
|
width: 12px;
|
|
vertical-align: top;
|
|
-webkit-mask-repeat: no-repeat;
|
|
-webkit-mask-size: 12px;
|
|
-webkit-mask-position: center;
|
|
}
|
|
|
|
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
|
padding-right: 13px;
|
|
}
|
|
|
|
.ace_fold-widget {
|
|
box-sizing: border-box;
|
|
|
|
margin: 0 -12px 0 1px;
|
|
display: none;
|
|
width: 11px;
|
|
vertical-align: top;
|
|
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ace_folding-enabled .ace_fold-widget {
|
|
display: inline-block;
|
|
}
|
|
|
|
.ace_fold-widget.ace_end {
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
|
}
|
|
|
|
.ace_fold-widget.ace_closed {
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
|
}
|
|
|
|
.ace_fold-widget:hover {
|
|
border: 1px solid rgba(0, 0, 0, 0.3);
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.ace_fold-widget:active {
|
|
border: 1px solid rgba(0, 0, 0, 0.4);
|
|
background-color: rgba(0, 0, 0, 0.05);
|
|
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
|
}
|
|
/**
|
|
* Dark version for fold widgets
|
|
*/
|
|
.ace_dark .ace_fold-widget {
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
|
}
|
|
.ace_dark .ace_fold-widget.ace_end {
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
|
}
|
|
.ace_dark .ace_fold-widget.ace_closed {
|
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
|
}
|
|
.ace_dark .ace_fold-widget:hover {
|
|
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
.ace_dark .ace_fold-widget:active {
|
|
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.ace_inline_button {
|
|
border: 1px solid lightgray;
|
|
display: inline-block;
|
|
margin: -1px 8px;
|
|
padding: 0 5px;
|
|
pointer-events: auto;
|
|
cursor: pointer;
|
|
}
|
|
.ace_inline_button:hover {
|
|
border-color: gray;
|
|
background: rgba(200,200,200,0.2);
|
|
display: inline-block;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.ace_fold-widget.ace_invalid {
|
|
background-color: #FFB4B4;
|
|
border-color: #DE5555;
|
|
}
|
|
|
|
.ace_fade-fold-widgets .ace_fold-widget {
|
|
transition: opacity 0.4s ease 0.05s;
|
|
opacity: 0;
|
|
}
|
|
|
|
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
|
transition: opacity 0.05s ease 0.05s;
|
|
opacity:1;
|
|
}
|
|
|
|
.ace_underline {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.ace_bold {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ace_nobold .ace_bold {
|
|
font-weight: normal;
|
|
}
|
|
|
|
.ace_italic {
|
|
font-style: italic;
|
|
}
|
|
|
|
|
|
.ace_error-marker {
|
|
background-color: rgba(255, 0, 0,0.2);
|
|
position: absolute;
|
|
z-index: 9;
|
|
}
|
|
|
|
.ace_highlight-marker {
|
|
background-color: rgba(255, 255, 0,0.2);
|
|
position: absolute;
|
|
z-index: 8;
|
|
}
|
|
|
|
.ace_mobile-menu {
|
|
position: absolute;
|
|
line-height: 1.5;
|
|
border-radius: 4px;
|
|
-ms-user-select: none;
|
|
-moz-user-select: none;
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
background: white;
|
|
box-shadow: 1px 3px 2px grey;
|
|
border: 1px solid #dcdcdc;
|
|
color: black;
|
|
}
|
|
.ace_dark > .ace_mobile-menu {
|
|
background: #333;
|
|
color: #ccc;
|
|
box-shadow: 1px 3px 2px grey;
|
|
border: 1px solid #444;
|
|
|
|
}
|
|
.ace_mobile-button {
|
|
padding: 2px;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
}
|
|
.ace_mobile-button:hover {
|
|
background-color: #eee;
|
|
opacity:1;
|
|
}
|
|
.ace_mobile-button:active {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
.ace_placeholder {
|
|
font-family: arial;
|
|
transform: scale(0.9);
|
|
transform-origin: left;
|
|
white-space: pre;
|
|
opacity: 0.7;
|
|
margin: 0 10px;
|
|
}
|
|
|
|
.ace_ghost_text {
|
|
opacity: 0.5;
|
|
font-style: italic;
|
|
white-space: pre;
|
|
}
|
|
|
|
.ace_screenreader-only {
|
|
position:absolute;
|
|
left:-10000px;
|
|
top:auto;
|
|
width:1px;
|
|
height:1px;
|
|
overflow:hidden;
|
|
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(S,m,w){var k=S("../lib/dom"),T=S("../lib/oop"),S=S("../lib/event_emitter").EventEmitter,I=(O.prototype.$updateDecorators=function(y){var _=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light,A=(y&&(this.maxHeight=y.maxHeight,this.lineHeight=y.lineHeight,this.canvasHeight=y.height,(y.lastRow+1)*this.lineHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight),this.canvas.getContext("2d")),R=this.renderer.session.$annotations;if(A.clearRect(0,0,this.canvas.width,this.canvas.height),R)for(var D={info:1,warning:2,error:3},C=(R.forEach(function(Q){Q.priority=D[Q.type]||null}),R=R.sort(function(Q,U){return Q.priority<U.priority?-1:Q.priority>U.priority?1:0}),this.renderer.session.$foldData),x=0;x<R.length;x++){var P,H=R[x].row,$=this.compensateFoldRows(H,C),L=Math.round((H-$)*this.lineHeight*this.heightRatio),V=Math.round((H-$)*this.lineHeight*this.heightRatio),H=Math.round(((H-$)*this.lineHeight+this.lineHeight)*this.heightRatio);H-V<this.minDecorationHeight&&((P=(V+H)/2|0)<this.halfMinDecorationHeight?P=this.halfMinDecorationHeight:P+this.halfMinDecorationHeight>this.canvasHeight&&(P=this.canvasHeight-this.halfMinDecorationHeight),V=Math.round(P-this.halfMinDecorationHeight),H=Math.round(P+this.halfMinDecorationHeight)),A.fillStyle=_[R[x].type]||null,A.fillRect(0,L,this.canvasWidth,H-V)}y=this.renderer.session.selection.getCursor(),y&&($=this.compensateFoldRows(y.row,C),L=Math.round((y.row-$)*this.lineHeight*this.heightRatio),A.fillStyle="rgba(0, 0, 0, 0.5)",A.fillRect(0,L,this.canvasWidth,2))},O.prototype.compensateFoldRows=function(y,_){var A=0;if(_&&0<_.length)for(var R=0;R<_.length;R++)y>_[R].start.row&&y<_[R].end.row?A+=y-_[R].start.row:y>=_[R].end.row&&(A+=_[R].end.row-_[R].start.row);return A},O);function O(y,_){this.canvas=k.createElement("canvas"),this.renderer=_,this.pixelRatio=1,this.maxHeight=_.layerConfig.maxHeight,this.lineHeight=_.layerConfig.lineHeight,this.canvasHeight=y.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=y.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},y.element.appendChild(this.canvas)}T.implement(I.prototype,S),m.Decorator=I}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(U,m,w){var k=U("./lib/oop"),T=U("./lib/dom"),S=U("./lib/lang"),I=U("./config"),O=U("./layer/gutter").Gutter,y=U("./layer/marker").Marker,_=U("./layer/text").Text,A=U("./layer/cursor").Cursor,R=U("./scrollbar").HScrollBar,D=U("./scrollbar").VScrollBar,C=U("./scrollbar_custom").HScrollBar,x=U("./scrollbar_custom").VScrollBar,P=U("./renderloop").RenderLoop,$=U("./layer/font_metrics").FontMetrics,L=U("./lib/event_emitter").EventEmitter,V=U("./css/editor-css"),H=U("./layer/decorators").Decorator,Q=U("./lib/useragent"),U=(T.importCssString(V,"ace_editor.css",!1),K.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),T.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},K.prototype.setSession=function(J){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=J)&&this.scrollMargin.top&&J.getScrollTop()<=0&&J.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(J),this.$markerBack.setSession(J),this.$markerFront.setSession(J),this.$gutterLayer.setSession(J),this.$textLayer.setSession(J),J&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},K.prototype.updateLines=function(J,ue,ee){if(ue===void 0&&(ue=1/0),this.$changedLines?(this.$changedLines.firstRow>J&&(this.$changedLines.firstRow=J),this.$changedLines.lastRow<ue&&(this.$changedLines.lastRow=ue)):this.$changedLines={firstRow:J,lastRow:ue},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!ee)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},K.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},K.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},K.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},K.prototype.updateFull=function(J){J?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},K.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},K.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},K.prototype.onResize=function(J,ue,ee,N){if(!(2<this.resizing)){0<this.resizing?this.resizing++:this.resizing=J?1:0;var q=this.container,q=(N=N||q.clientHeight||q.scrollHeight,ee=ee||q.clientWidth||q.scrollWidth,this.$updateCachedSize(J,ue,ee,N));if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!ee&&!N)return this.resizing=0;J&&(this.$gutterLayer.$padding=null),J?this.$renderChanges(q|this.$changes,!0):this.$loop.schedule(q|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},K.prototype.$updateCachedSize=function(J,ue,ee,N){N-=this.$extraHeight||0;var q=0,G=this.$size,ne={width:G.width,height:G.height,scrollerHeight:G.scrollerHeight,scrollerWidth:G.scrollerWidth};return N&&(J||G.height!=N)&&(G.height=N,q|=this.CHANGE_SIZE,G.scrollerHeight=G.height,this.$horizScroll&&(G.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(G.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",q|=this.CHANGE_SCROLL),ee&&(J||G.width!=ee)&&(q|=this.CHANGE_SIZE,G.width=ee,ue==null&&(ue=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=ue,T.setStyle(this.scrollBarH.element.style,"left",ue+"px"),T.setStyle(this.scroller.style,"left",ue+this.margin.left+"px"),G.scrollerWidth=Math.max(0,ee-ue-this.scrollBarV.getWidth()-this.margin.h),T.setStyle(this.$gutter.style,"left",this.margin.left+"px"),ue=this.scrollBarV.getWidth()+"px",T.setStyle(this.scrollBarH.element.style,"right",ue),T.setStyle(this.scroller.style,"right",ue),T.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(G.scrollerWidth),this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||J)&&(q|=this.CHANGE_FULL),G.$dirty=!ee||!N,q&&this._signal("resize",ne),q},K.prototype.onGutterResize=function(J){J=this.$showGutter?J:0,J!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,J,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},K.prototype.adjustWrapLimit=function(){var J=this.$size.scrollerWidth-2*this.$padding,J=Math.floor(J/this.characterWidth);return this.session.adjustWrapLimit(J,this.$showPrintMargin&&this.$printMarginColumn)},K.prototype.setAnimatedScroll=function(J){this.setOption("animatedScroll",J)},K.prototype.getAnimatedScroll=function(){return this.$animatedScroll},K.prototype.setShowInvisibles=function(J){this.setOption("showInvisibles",J),this.session.$bidiHandler.setShowInvisibles(J)},K.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},K.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},K.prototype.setDisplayIndentGuides=function(J){this.setOption("displayIndentGuides",J)},K.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},K.prototype.setHighlightIndentGuides=function(J){this.setOption("highlightIndentGuides",J)},K.prototype.setShowPrintMargin=function(J){this.setOption("showPrintMargin",J)},K.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},K.prototype.setPrintMarginColumn=function(J){this.setOption("printMarginColumn",J)},K.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},K.prototype.getShowGutter=function(){return this.getOption("showGutter")},K.prototype.setShowGutter=function(J){return this.setOption("showGutter",J)},K.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},K.prototype.setFadeFoldWidgets=function(J){this.setOption("fadeFoldWidgets",J)},K.prototype.setHighlightGutterLine=function(J){this.setOption("highlightGutterLine",J)},K.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},K.prototype.$updatePrintMargin=function(){var J;(this.$showPrintMargin||this.$printMarginEl)&&(this.$printMarginEl||((J=T.createElement("div")).className="ace_layer ace_print-margin-layer",this.$printMarginEl=T.createElement("div"),this.$printMarginEl.className="ace_print-margin",J.appendChild(this.$printMarginEl),this.content.insertBefore(J,this.content.firstChild)),(J=this.$printMarginEl.style).left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",J.visibility=this.$showPrintMargin?"visible":"hidden",this.session)&&this.session.$wrap==-1&&this.adjustWrapLimit()},K.prototype.getContainerElement=function(){return this.container},K.prototype.getMouseEventTarget=function(){return this.scroller},K.prototype.getTextAreaContainer=function(){return this.container},K.prototype.$moveTextAreaToCursor=function(){var J,ue,ee,N,q,G,ne;this.$isMousePressed||(J=this.textarea.style,G=this.$composition,this.$keepTextAreaAtCursor||G?(ee=this.$cursorLayer.$pixelPos)&&(G&&G.markerRange&&(ee=this.$cursorLayer.getPixelPosition(G.markerRange.start,!0)),ne=this.layerConfig,ue=ee.top,ee=ee.left,ue-=ne.offset,N=G&&G.useTextareaForIME||Q.isMobile?this.lineHeight:1,ue<0||ue>ne.height-N?T.translate(this.textarea,0,0):(ne=1,q=this.$size.height-N,G?G.useTextareaForIME?(G=this.textarea.value,ne=this.characterWidth*this.session.$getStringScreenWidth(G)[0]):ue+=this.lineHeight+2:ue+=this.lineHeight,(ee-=this.scrollLeft)>this.$size.scrollerWidth-ne&&(ee=this.$size.scrollerWidth-ne),ee+=this.gutterWidth+this.margin.left,T.setStyle(J,"height",N+"px"),T.setStyle(J,"width",ne+"px"),T.translate(this.textarea,Math.min(ee,this.$size.scrollerWidth-ne),Math.min(ue,q)))):T.translate(this.textarea,-100,0))},K.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},K.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},K.prototype.getLastFullyVisibleRow=function(){var J=this.layerConfig,ue=J.lastRow;return this.session.documentToScreenRow(ue,0)*J.lineHeight-this.session.getScrollTop()>J.height-J.lineHeight?ue-1:ue},K.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},K.prototype.setPadding=function(J){this.$padding=J,this.$textLayer.setPadding(J),this.$cursorLayer.setPadding(J),this.$markerFront.setPadding(J),this.$markerBack.setPadding(J),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},K.prototype.setScrollMargin=function(J,ue,ee,N){var q=this.scrollMargin;q.top=0|J,q.bottom=0|ue,q.right=0|N,q.left=0|ee,q.v=q.top+q.bottom,q.h=q.left+q.right,q.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-q.top),this.updateFull()},K.prototype.setMargin=function(J,ue,ee,N){var q=this.margin;q.top=0|J,q.bottom=0|ue,q.right=0|N,q.left=0|ee,q.v=q.top+q.bottom,q.h=q.left+q.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},K.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},K.prototype.setHScrollBarAlwaysVisible=function(J){this.setOption("hScrollBarAlwaysVisible",J)},K.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},K.prototype.setVScrollBarAlwaysVisible=function(J){this.setOption("vScrollBarAlwaysVisible",J)},K.prototype.$updateScrollBarV=function(){var J=this.layerConfig.maxHeight,ue=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(J-=(ue-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>J-ue)&&(J=this.scrollTop+ue,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(J+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},K.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},K.prototype.freeze=function(){this.$frozen=!0},K.prototype.unfreeze=function(){this.$frozen=!1},K.prototype.$renderChanges=function(J,ue){if(this.$changes&&(J|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(J||ue)){if(this.$size.$dirty)return this.$changes|=J,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",J),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var ee,N,ue=this.layerConfig;(J&this.CHANGE_FULL||J&this.CHANGE_SIZE||J&this.CHANGE_TEXT||J&this.CHANGE_LINES||J&this.CHANGE_SCROLL||J&this.CHANGE_H_SCROLL)&&(J|=this.$computeLayerConfig()|this.$loop.clear(),ue.firstRow!=this.layerConfig.firstRow&&ue.firstRowScreen==this.layerConfig.firstRowScreen&&0<(ee=this.scrollTop+(ue.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight)&&(this.scrollTop=ee,J=(J|=this.CHANGE_SCROLL)|(this.$computeLayerConfig()|this.$loop.clear())),ue=this.layerConfig,this.$updateScrollBarV(),J&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),T.translate(this.content,-this.scrollLeft,-ue.offset),ee=ue.width+2*this.$padding+"px",N=ue.minHeight+"px",T.setStyle(this.content.style,"width",ee),T.setStyle(this.content.style,"height",N)),J&this.CHANGE_H_SCROLL&&(T.translate(this.content,-this.scrollLeft,-ue.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility)&&(this.scroller.className+=this.keyboardFocusClassName),J&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(ue),this.$showGutter&&this.$gutterLayer.update(ue),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ue),this.$markerBack.update(ue),this.$markerFront.update(ue),this.$cursorLayer.update(ue),this.$moveTextAreaToCursor()):J&this.CHANGE_SCROLL?(this.$changedLines=null,J&this.CHANGE_TEXT||J&this.CHANGE_LINES?this.$textLayer.update(ue):this.$textLayer.scrollLines(ue),this.$showGutter&&(J&this.CHANGE_GUTTER||J&this.CHANGE_LINES?this.$gutterLayer.update(ue):this.$gutterLayer.scrollLines(ue)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ue),this.$markerBack.update(ue),this.$markerFront.update(ue),this.$cursorLayer.update(ue),this.$moveTextAreaToCursor()):(J&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(ue),this.$showGutter&&this.$gutterLayer.update(ue),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ue)):J&this.CHANGE_LINES?((this.$updateLines()||J&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(ue),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ue)):J&this.CHANGE_TEXT||J&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(ue),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ue)):J&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(ue),this.$customScrollbar)&&this.$scrollDecorator.$updateDecorators(ue),J&this.CHANGE_CURSOR&&(this.$cursorLayer.update(ue),this.$moveTextAreaToCursor()),J&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(ue),J&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(ue)),this._signal("afterRender",J)}else this.$changes|=J},K.prototype.$autosize=function(){var J=this.session.getScreenLength()*this.lineHeight,ue=this.$maxLines*this.lineHeight,ee=Math.min(ue,Math.max((this.$minLines||1)*this.lineHeight,J))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(ee+=this.scrollBarH.getHeight()),ue=!((ee=this.$maxPixelHeight&&ee>this.$maxPixelHeight?this.$maxPixelHeight:ee)<=2*this.lineHeight)&&ue<J,ee==this.desiredHeight&&this.$size.height==this.desiredHeight&&ue==this.$vScroll||(ue!=this.$vScroll&&(this.$vScroll=ue,this.scrollBarV.setVisible(ue)),J=this.container.clientWidth,this.container.style.height=ee+"px",this.$updateCachedSize(!0,this.$gutterWidth,J,ee),this.desiredHeight=ee,this._signal("autosize"))},K.prototype.$computeLayerConfig=function(){var J,be=this.session,ue=this.$size,de=ue.height<=2*this.lineHeight,ee=this.session.getScreenLength()*this.lineHeight,N=this.$getLongestLine(),oe=!de&&(this.$hScrollBarAlwaysVisible||ue.scrollerWidth-N-2*this.$padding<0),q=this.$horizScroll!==oe,oe=(q&&(this.$horizScroll=oe,this.scrollBarH.setVisible(oe)),this.$vScroll),G=(this.$maxLines&&1<this.lineHeight&&this.$autosize(),ue.scrollerHeight+this.lineHeight),ne=!this.$maxLines&&this.$scrollPastEnd?(ue.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0,le=(ee+=ne,this.scrollMargin),de=(this.session.setScrollTop(Math.max(-le.top,Math.min(this.scrollTop,ee-ue.scrollerHeight+le.bottom))),this.session.setScrollLeft(Math.max(-le.left,Math.min(this.scrollLeft,N+2*this.$padding-ue.scrollerWidth+le.right))),!de&&(this.$vScrollBarAlwaysVisible||ue.scrollerHeight-ee+ne<0||this.scrollTop>le.top)),ne=oe!==de,le=(ne&&(this.$vScroll=de,this.scrollBarV.setVisible(de)),this.scrollTop%this.lineHeight),oe=Math.ceil(G/this.lineHeight)-1,oe=(de=Math.max(0,Math.round((this.scrollTop-le)/this.lineHeight)))+oe,ve=this.lineHeight,de=be.screenToDocumentRow(de,0),ae=be.getFoldLine(de),be=(ae&&(de=ae.start.row),ae=be.documentToScreenRow(de,0),J=be.getRowLength(de)*ve,oe=Math.min(be.screenToDocumentRow(oe,0),be.getLength()-1),G=ue.scrollerHeight+be.getRowLength(oe)*ve+J,le=this.scrollTop-ae*ve,0);return this.layerConfig.width==N&&!q||(be=this.CHANGE_H_SCROLL),(q||ne)&&(be|=this.$updateCachedSize(!0,this.gutterWidth,ue.width,ue.height),this._signal("scrollbarVisibilityChanged"),ne)&&(N=this.$getLongestLine()),this.layerConfig={width:N,padding:this.$padding,firstRow:de,firstRowScreen:ae,lastRow:oe,lineHeight:ve,characterWidth:this.characterWidth,minHeight:G,maxHeight:ee,offset:le,gutterOffset:ve?Math.max(0,Math.ceil((le+ue.height-ue.scrollerHeight)/ve)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(N-this.$padding),be},K.prototype.$updateLines=function(){if(this.$changedLines){var J=this.$changedLines.firstRow,ue=this.$changedLines.lastRow,ee=(this.$changedLines=null,this.layerConfig);if(!(J>ee.lastRow+1||ue<ee.firstRow)){if(ue!==1/0)return this.$textLayer.updateLines(ee,J,ue),!0;this.$showGutter&&this.$gutterLayer.update(ee),this.$textLayer.update(ee)}}},K.prototype.$getLongestLine=function(){var J=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(J+=1),this.$textLayer&&J>this.$textLayer.MAX_LINE_LENGTH&&(J=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(J*this.characterWidth))},K.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},K.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},K.prototype.addGutterDecoration=function(J,ue){this.$gutterLayer.addGutterDecoration(J,ue)},K.prototype.removeGutterDecoration=function(J,ue){this.$gutterLayer.removeGutterDecoration(J,ue)},K.prototype.updateBreakpoints=function(J){this.$loop.schedule(this.CHANGE_GUTTER)},K.prototype.setAnnotations=function(J){this.$gutterLayer.setAnnotations(J),this.$loop.schedule(this.CHANGE_GUTTER)},K.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},K.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},K.prototype.showCursor=function(){this.$cursorLayer.showCursor()},K.prototype.scrollSelectionIntoView=function(J,ue,ee){this.scrollCursorIntoView(J,ee),this.scrollCursorIntoView(ue,ee)},K.prototype.scrollCursorIntoView=function(J,ue,ee){var N,q,G;this.$size.scrollerHeight!==0&&(N=(J=this.$cursorLayer.getPixelPosition(J)).left,J=J.top,q=ee&&ee.top||0,ee=ee&&ee.bottom||0,this.$scrollAnimation&&(this.$stopAnimation=!0),J<(G=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+q?(ue&&G+q>J+this.lineHeight&&(J-=ue*this.$size.scrollerHeight),J===0&&(J=-this.scrollMargin.top),this.session.setScrollTop(J)):G+this.$size.scrollerHeight-ee<J+this.lineHeight&&(ue&&G+this.$size.scrollerHeight-ee<J-this.lineHeight&&(J+=ue*this.$size.scrollerHeight),this.session.setScrollTop(J+this.lineHeight+ee-this.$size.scrollerHeight)),q=this.scrollLeft,N-(G=2*this.layerConfig.characterWidth)<q?((N-=G)<this.$padding+G&&(N=-this.scrollMargin.left),this.session.setScrollLeft(N)):q+this.$size.scrollerWidth<(N+=G)+this.characterWidth?this.session.setScrollLeft(Math.round(N+this.characterWidth-this.$size.scrollerWidth)):q<=this.$padding&&N-q<this.characterWidth&&this.session.setScrollLeft(0))},K.prototype.getScrollTop=function(){return this.session.getScrollTop()},K.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},K.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},K.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},K.prototype.scrollToRow=function(J){this.session.setScrollTop(J*this.lineHeight)},K.prototype.alignCursor=function(N,ue){var N=this.$cursorLayer.getPixelPosition(N=typeof N=="number"?{row:N,column:0}:N),ee=this.$size.scrollerHeight-this.lineHeight,N=N.top-ee*(ue||0);return this.session.setScrollTop(N),N},K.prototype.$calcSteps=function(J,ue){for(var ee,N,ne=0,q=this.STEPS,G=[],ne=0;ne<q;++ne)G.push((ee=ne/this.STEPS,(ue-(N=J))*(Math.pow(ee-1,3)+1)+N));return G},K.prototype.scrollToLine=function(J,ue,ee,N){J=this.$cursorLayer.getPixelPosition({row:J,column:0}).top,ue&&(J-=this.$size.scrollerHeight/2),ue=this.scrollTop,this.session.setScrollTop(J),ee!==!1&&this.animateScrolling(ue,N)},K.prototype.animateScrolling=function(J,ue){var ee=this.scrollTop;if(this.$animatedScroll){var N=this;if(J!=ee){if(this.$scrollAnimation){var q=this.$scrollAnimation.steps;if(q.length&&(J=q[0])==ee)return}var G=N.$calcSteps(J,ee);this.$scrollAnimation={from:J,to:ee,steps:G},clearInterval(this.$timer),N.session.setScrollTop(G.shift()),N.session.$scrollTop=ee,this.$timer=setInterval(function(){if(!N.$stopAnimation)return N.session?void(G.length?(N.session.setScrollTop(G.shift()),N.session.$scrollTop=ee):ee!=null?(N.session.$scrollTop=-1,N.session.setScrollTop(ee),ee=null):ne()):clearInterval(N.$timer);ne()},10)}}function ne(){N.$timer=clearInterval(N.$timer),N.$scrollAnimation=null,N.$stopAnimation=!1,ue&&ue()}},K.prototype.scrollToY=function(J){this.scrollTop!==J&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=J)},K.prototype.scrollToX=function(J){this.scrollLeft!==J&&(this.scrollLeft=J),this.$loop.schedule(this.CHANGE_H_SCROLL)},K.prototype.scrollTo=function(J,ue){this.session.setScrollTop(ue),this.session.setScrollLeft(J)},K.prototype.scrollBy=function(J,ue){ue&&this.session.setScrollTop(this.session.getScrollTop()+ue),J&&this.session.setScrollLeft(this.session.getScrollLeft()+J)},K.prototype.isScrollableBy=function(J,ue){return ue<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||0<ue&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||J<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||0<J&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},K.prototype.pixelToScreenCoordinates=function(N,q){this.$hasCssTransforms?(G={top:0,left:0},N=(ee=this.$fontMetrics.transformCoordinates([N,q]))[1]-this.gutterWidth-this.margin.left,q=ee[0]):G=this.scroller.getBoundingClientRect();var ee=N+this.scrollLeft-G.left-this.$padding,N=ee/this.characterWidth,q=Math.floor((q+this.scrollTop-G.top)/this.lineHeight),G=this.$blockCursor?Math.floor(N):Math.round(N);return{row:q,column:G,side:0<N-G?1:-1,offsetX:ee}},K.prototype.screenToTextCoordinates=function(q,G){this.$hasCssTransforms?(ee={top:0,left:0},q=(N=this.$fontMetrics.transformCoordinates([q,G]))[1]-this.gutterWidth-this.margin.left,G=N[0]):ee=this.scroller.getBoundingClientRect();var ee,N=q+this.scrollLeft-ee.left-this.$padding,q=N/this.characterWidth,q=this.$blockCursor?Math.floor(q):Math.round(q),G=Math.floor((G+this.scrollTop-ee.top)/this.lineHeight);return this.session.screenToDocumentPosition(G,Math.max(q,0),N)},K.prototype.textToScreenCoordinates=function(N,q){var ee=this.scroller.getBoundingClientRect(),q=this.session.documentToScreenPosition(N,q),N=this.$padding+(this.session.$bidiHandler.isBidiRow(q.row,N)?this.session.$bidiHandler.getPosLeft(q.column):Math.round(q.column*this.characterWidth)),q=q.row*this.lineHeight;return{pageX:ee.left+N-this.scrollLeft,pageY:ee.top+q-this.scrollTop}},K.prototype.visualizeFocus=function(){T.addCssClass(this.container,"ace_focus")},K.prototype.visualizeBlur=function(){T.removeCssClass(this.container,"ace_focus")},K.prototype.showComposition=function(J){(this.$composition=J).cssText||(J.cssText=this.textarea.style.cssText),J.useTextareaForIME==null&&(J.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(T.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):J.markerId=this.session.addMarker(J.markerRange,"ace_composition_marker","text")},K.prototype.setCompositionText=function(J){var ue=this.session.selection.cursor;this.addToken(J,"composition_placeholder",ue.row,ue.column),this.$moveTextAreaToCursor()},K.prototype.hideComposition=function(){var J;this.$composition&&(this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),T.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText,J=this.session.selection.cursor,this.removeExtraToken(J.row,J.column),this.$composition=null,this.$cursorLayer.element.style.display="")},K.prototype.setGhostText=function(J,ee){var N=this.session.selection.cursor,ee=ee||{row:N.row,column:N.column},N=(this.removeGhostText(),J.split(`
|
|
`));this.addToken(N[0],"ghost_text",ee.row,ee.column),this.$ghostText={text:J,position:{row:ee.row,column:ee.column}},1<N.length&&(this.$ghostTextWidget={text:N.slice(1).join(`
|
|
`),row:ee.row,column:ee.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},K.prototype.removeGhostText=function(){var J;this.$ghostText&&(J=this.$ghostText.position,this.removeExtraToken(J.row,J.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null)},K.prototype.addToken=function(J,ue,ee,N){var q=this.session,G=(q.bgTokenizer.lines[ee]=null,{type:ue,value:J}),ne=q.getTokens(ee);if(N!=null&&ne.length)for(var le=0,oe=0;oe<ne.length;oe++){var ve=ne[oe];if(N<=(le+=ve.value.length)){var ae=ve.value.length-(le-N),de=ve.value.slice(0,ae),ae=ve.value.slice(ae);ne.splice(oe,1,{type:ve.type,value:de},G,{type:ve.type,value:ae});break}}else ne.push(G);this.updateLines(ee,ee)},K.prototype.removeExtraToken=function(J,ue){this.session.bgTokenizer.lines[J]=null,this.updateLines(J,J)},K.prototype.setTheme=function(J,ue){var ee,N=this;function q(G){if(N.$themeId!=J)return ue&&ue();if(!G||!G.cssClass)throw new Error("couldn't load module "+J+" or it didn't call define");G.$id&&(N.$themeId=G.$id),T.importCssString(G.cssText,G.cssClass,N.container),N.theme&&T.removeCssClass(N.container,N.theme.cssClass);var ne="padding"in G?G.padding:"padding"in(N.theme||{})?4:N.$padding;N.$padding&&ne!=N.$padding&&N.setPadding(ne),N.$theme=G.cssClass,N.theme=G,T.addCssClass(N.container,G.cssClass),T.setCssClass(N.container,"ace_dark",G.isDark),N.$size&&(N.$size.width=0,N.$updateSizeAsync()),N._dispatchEvent("themeLoaded",{theme:G}),ue&&ue()}this.$themeId=J,N._dispatchEvent("themeChange",{theme:J}),J&&typeof J!="string"?q(J):(ee=J||this.$options.theme.initialValue,I.loadModule(["theme",ee],q))},K.prototype.getTheme=function(){return this.$themeId},K.prototype.setStyle=function(J,ue){T.setCssClass(this.container,J,ue!==!1)},K.prototype.unsetStyle=function(J){T.removeCssClass(this.container,J)},K.prototype.setCursorStyle=function(J){T.setStyle(this.scroller.style,"cursor",J)},K.prototype.setMouseCursor=function(J){T.setStyle(this.scroller.style,"cursor",J)},K.prototype.attachToShadowRoot=function(){T.importCssString(V,"ace_editor.css",this.container)},K.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},K.prototype.$updateCustomScrollbar=function(J){var ue=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,J===!0?(this.scrollBarV=new x(this.container,this),this.scrollBarH=new C(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(ee){ue.$scrollAnimation||ue.session.setScrollTop(ee.data-ue.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(ee){ue.$scrollAnimation||ue.session.setScrollLeft(ee.data-ue.scrollMargin.left)}),this.$scrollDecorator=new H(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new D(this.container,this),this.scrollBarH=new R(this.container,this),this.scrollBarV.addEventListener("scroll",function(ee){ue.$scrollAnimation||ue.session.setScrollTop(ee.data-ue.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(ee){ue.$scrollAnimation||ue.session.setScrollLeft(ee.data-ue.scrollMargin.left)}))},K.prototype.$addResizeObserver=function(){var J;window.ResizeObserver&&!this.$resizeObserver&&((J=this).$resizeTimer=S.delayedCall(function(){J.destroyed||J.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var ee=N[0].contentRect.width,N=N[0].contentRect.height;1<Math.abs(J.$size.width-ee)||1<Math.abs(J.$size.height-N)?J.$resizeTimer.delay():J.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container))},K);function K(N,ue){var ee=this,N=(this.container=N||T.createElement("div"),T.addCssClass(this.container,"ace_editor"),T.HI_DPI&&T.addCssClass(this.container,"ace_hidpi"),this.setTheme(ue),I.get("useStrictCSP")==null&&I.set("useStrictCSP",!1),this.$gutter=T.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=T.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=T.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new O(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new y(this.content),this.$textLayer=new _(this.content));this.canvas=N.element,this.$markerFront=new y(this.content),this.$cursorLayer=new A(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new D(this.container,this),this.scrollBarH=new R(this.container,this),this.scrollBarV.on("scroll",function(q){ee.$scrollAnimation||ee.session.setScrollTop(q.data-ee.scrollMargin.top)}),this.scrollBarH.on("scroll",function(q){ee.$scrollAnimation||ee.session.setScrollLeft(q.data-ee.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new $(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(q){ee.updateCharacterSize(),ee.onResize(!0,ee.gutterWidth,ee.$size.width,ee.$size.height),ee._signal("changeCharacterSize",q)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!Q.isIOS,this.$loop=new P(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),I.resetOptions(this),I._signal("renderer",this)}U.prototype.CHANGE_CURSOR=1,U.prototype.CHANGE_MARKER=2,U.prototype.CHANGE_GUTTER=4,U.prototype.CHANGE_SCROLL=8,U.prototype.CHANGE_LINES=16,U.prototype.CHANGE_TEXT=32,U.prototype.CHANGE_SIZE=64,U.prototype.CHANGE_MARKER_BACK=128,U.prototype.CHANGE_MARKER_FRONT=256,U.prototype.CHANGE_FULL=512,U.prototype.CHANGE_H_SCROLL=1024,U.prototype.$changes=0,U.prototype.$padding=null,U.prototype.$frozen=!1,U.prototype.STEPS=8,k.implement(U.prototype,L),I.defineOptions(U.prototype,"renderer",{useResizeObserver:{set:function(J){!J&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):J&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(J){this.$textLayer.setShowInvisibles(J)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(J){typeof J=="number"&&(this.$printMarginColumn=J),this.$showPrintMargin=!!J,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(J){this.$gutter.style.display=J?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(J){this.$gutterLayer.$useSvgGutterIcons=J},initialValue:!1},showFoldedAnnotations:{set:function(J){this.$gutterLayer.$showFoldedAnnotations=J},initialValue:!1},fadeFoldWidgets:{set:function(J){T.setCssClass(this.$gutter,"ace_fade-fold-widgets",J)},initialValue:!1},showFoldWidgets:{set:function(J){this.$gutterLayer.setShowFoldWidgets(J),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(J){this.$textLayer.setDisplayIndentGuides(J)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(J){this.$textLayer.setHighlightIndentGuides(J)==1?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(J){this.$gutterLayer.setHighlightGutterLine(J),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(J){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(J){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(J){typeof J=="number"&&(J+="px"),this.container.style.fontSize=J,this.updateFontSize()},initialValue:12},fontFamily:{set:function(J){this.container.style.fontFamily=J,this.updateFontSize()}},maxLines:{set:function(J){this.updateFull()}},minLines:{set:function(J){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(J){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(J){this.$scrollPastEnd!=(J=+J||0)&&(this.$scrollPastEnd=J,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(J){this.$gutterLayer.$fixedWidth=!!J,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(J){this.$updateCustomScrollbar(J)},initialValue:!1},theme:{set:function(J){this.setTheme(J)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!Q.isMobile&&!Q.isIE}}),m.VirtualRenderer=U}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(v,m,w){var k=v("../lib/oop"),T=v("../lib/net"),S=v("../lib/event_emitter").EventEmitter,I=v("../config");function O(_){var A;return typeof Worker>"u"?{postMessage:function(){},terminate:function(){}}:I.get("loadWorkerFromBlob")?(A=function(R){R="importScripts('"+T.qualifyURL(R)+"');";try{return new Blob([R],{type:"application/javascript"})}catch{var D=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return D.append(R),D.getBlob("application/javascript")}}(_),A=(window.URL||window.webkitURL).createObjectURL(A),new Worker(A)):new Worker(_)}function y(_){_.postMessage||(_=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=_,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage}(function(){k.implement(this,S),this.$createWorkerFromOldConfig=function(_,A,R,D,C){var x,P;return v.nameToUrl&&!v.toUrl&&(v.toUrl=v.nameToUrl),I.get("packaged")||!v.toUrl?D=D||I.moduleUrl(A,"worker"):(x=this.$normalizePath,D=D||x(v.toUrl("ace/worker/worker.js",null,"_")),P={},_.forEach(function($){P[$]=x(v.toUrl($,null,"_").replace(/(\.js)?(\?.*)?$/,""))})),this.$worker=O(D),C&&this.send("importScripts",C),this.$worker.postMessage({init:!0,tlns:P,module:A,classname:R}),this.$worker},this.onMessage=function(_){var A=_.data;switch(A.type){case"event":this._signal(A.name,{data:A.data});break;case"call":var R=this.callbacks[A.id];R&&(R(A.data),delete this.callbacks[A.id]);break;case"error":this.reportError(A.data);break;case"log":window.console&&console.log&&console.log.apply(console,A.data)}},this.reportError=function(_){window.console&&console.error&&console.error(_)},this.$normalizePath=function(_){return T.qualifyURL(_)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(_){_.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(_,A){this.$worker.postMessage({command:_,args:A})},this.call=function(_,A,R){var D;R&&(D=this.callbackId++,this.callbacks[D]=R,A.push(D)),this.send(_,A)},this.emit=function(_,A){try{A.data&&A.data.err&&(A.data.err={message:A.data.err.message,stack:A.data.err.stack,code:A.data.err.code}),this.$worker&&this.$worker.postMessage({event:_,data:{data:A.data}})}catch(R){console.error(R.stack)}},this.attachToDocument=function(_){this.$doc&&this.terminate(),this.$doc=_,this.call("setValue",[_.getValue()]),_.on("change",this.changeListener,!0)},this.changeListener=function(_){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),_.action=="insert"?this.deltaQueue.push(_.start,_.lines):this.deltaQueue.push(_.start,_.end)},this.$sendDeltaQueue=function(){var _=this.deltaQueue;_&&(this.deltaQueue=null,50<_.length&&_.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:_}))}}).call(y.prototype),m.UIWorkerClient=function(_,A,R){var D=null,C=!1,x=Object.create(S),P=[],$=new y({messageBuffer:P,terminate:function(){},postMessage:function(V){P.push(V),D&&(C?setTimeout(L):L())}}),L=($.setEmitSync=function(V){C=V},function(){var V=P.shift();V.command?D[V.command].apply(D,V.args):V.event&&x._signal(V.event,V.data)});return x.postMessage=function(V){$.onMessage({data:V})},x.callback=function(V,H){this.postMessage({type:"call",id:H,data:V})},x.emit=function(V,H){this.postMessage({type:"event",name:V,data:H})},I.loadModule(["worker",A],function(V){for(D=new V[R](x);P.length;)L()}),$},m.WorkerClient=y,m.createWorker=O}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(S,m,w){var k=S("./range").Range,T=S("./lib/event_emitter").EventEmitter,S=S("./lib/oop"),I=(O.prototype.setup=function(){var y=this,_=this.doc,A=this.session,R=(this.selectionBefore=A.selection.toJSON(),A.selection.inMultiSelectMode&&A.selection.toSingleRange(),this.pos=_.createAnchor(this.$pos.row,this.$pos.column),this.pos);R.$insertRight=!0,R.detach(),R.markerId=A.addMarker(new k(R.row,R.column,R.row,R.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(D){D=_.createAnchor(D.row,D.column),D.$insertRight=!0,D.detach(),y.others.push(D)}),A.setUndoSelect(!1)},O.prototype.showOtherMarkers=function(){var y,_;this.othersActive||(y=this.session,(_=this).othersActive=!0,this.others.forEach(function(A){A.markerId=y.addMarker(new k(A.row,A.column,A.row,A.column+_.length),_.othersClass,null,!1)}))},O.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var y=0;y<this.others.length;y++)this.session.removeMarker(this.others[y].markerId)}},O.prototype.onUpdate=function(y){if(this.$updating)return this.updateAnchors(y);var _=y;if(_.start.row===_.end.row&&_.start.row===this.pos.row){this.$updating=!0;var A=y.action==="insert"?_.end.column-_.start.column:_.start.column-_.end.column,R=_.start.column>=this.pos.column&&_.start.column<=this.pos.column+this.length+1,D=_.start.column-this.pos.column;if(this.updateAnchors(y),R&&(this.length+=A),R&&!this.session.$fromUndo){if(y.action==="insert")for(var C=this.others.length-1;0<=C;C--){var x={row:(P=this.others[C]).row,column:P.column+D};this.doc.insertMergedLines(x,y.lines)}else if(y.action==="remove")for(C=this.others.length-1;0<=C;C--){var P,x={row:(P=this.others[C]).row,column:P.column+D};this.doc.remove(new k(x.row,x.column,x.row,x.column-A))}}this.$updating=!1,this.updateMarkers()}},O.prototype.updateAnchors=function(y){this.pos.onChange(y);for(var _=this.others.length;_--;)this.others[_].onChange(y);this.updateMarkers()},O.prototype.updateMarkers=function(){if(!this.$updating){var y=this,_=this.session,A=function(D,C){_.removeMarker(D.markerId),D.markerId=_.addMarker(new k(D.row,D.column,D.row,D.column+y.length),C,null,!1)};A(this.pos,this.mainClass);for(var R=this.others.length;R--;)A(this.others[R],this.othersClass)}},O.prototype.onCursorChange=function(y){var _;!this.$updating&&this.session&&((_=this.session.selection.getCursor()).row===this.pos.row&&_.column>=this.pos.column&&_.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",y)):(this.hideOtherMarkers(),this._emit("cursorLeave",y)))},O.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},O.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var y=this.session.getUndoManager(),_=(y.$undoStack||y.$undostack).length-this.$undoStackDepth,A=0;A<_;A++)y.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},O);function O(y,P,A,R,D,C){var x=this,P=(this.length=P,this.session=y,this.doc=y.getDocument(),this.mainClass=D,this.othersClass=C,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=R,this.$onCursorChange=function(){setTimeout(function(){x.onCursorChange()})},this.$pos=A,y.getUndoManager().$undoStack||y.getUndoManager().$undostack||{length:-1});this.$undoStackDepth=P.length,this.setup(),y.selection.on("changeCursor",this.$onCursorChange)}S.implement(I.prototype,T),m.PlaceHolder=I}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(v,m,w){var k=v("../lib/event"),T=v("../lib/useragent");function S(I,O){return I.row==O.row&&I.column==O.column}m.onMouseDown=function(I){var O=I.domEvent,y=O.altKey,_=O.shiftKey,A=O.ctrlKey,R=I.getAccelKey(),D=I.getButton();if(A&&T.isMac&&(D=O.button),I.editor.inMultiSelectMode&&D==2)I.editor.textInput.onContextMenu(I.domEvent);else if(A||y||R){if(D===0){var C,x,P,$,L,V,H,Q,U=I.editor,K=U.selection,J=U.inMultiSelectMode,ue=I.getDocumentPosition(),ee=K.getCursor(),ee=I.inSelection()||K.isEmpty()&&S(ue,ee),N=I.x,q=I.y,G=U.session,ne=U.renderer.pixelToScreenCoordinates(N,q),le=ne;if(U.$mouseHandler.$enableJumpToDef)A&&y||R&&y?C=_?"block":"add":y&&U.$blockSelectEnabled&&(C="block");else if(R&&!y){if(C="add",!J&&_)return}else y&&U.$blockSelectEnabled&&(C="block");if(C&&T.isMac&&O.ctrlKey&&U.$mouseHandler.cancelContextMenu(),C=="add")!J&&ee||(J||(x=K.toOrientedRange(),U.addSelectionMarker(x)),P=K.rangeList.rangeAtPoint(ue),U.inVirtualSelectionMode=!0,_&&(P=null,x=K.ranges[0]||x,U.removeSelectionMarker(x)),U.once("mouseup",function(){var oe=K.toOrientedRange();P&&oe.isEmpty()&&S(P.cursor,oe.cursor)?K.substractPoint(oe.cursor):(_?K.substractPoint(x.cursor):x&&(U.removeSelectionMarker(x),K.addRange(x)),K.addRange(oe)),U.inVirtualSelectionMode=!1}));else if(C=="block")return I.stop(),U.inVirtualSelectionMode=!0,L=[],V=function(){var oe=U.renderer.pixelToScreenCoordinates(N,q),ve=G.screenToDocumentPosition(oe.row,oe.column,oe.offsetX);S(le,oe)&&S(ve,K.lead)||(le=oe,U.selection.moveToPosition(ve),U.renderer.scrollCursorIntoView(),U.removeSelectionMarkers(L),L=K.rectangularRangeBlock(le,ne),U.$mouseHandler.$clickSelection&&L.length==1&&L[0].isEmpty()&&(L[0]=U.$mouseHandler.$clickSelection.clone()),L.forEach(U.addSelectionMarker,U),U.updateSelectionMarkers())},J&&!R?K.toSingleRange():!J&&R&&($=K.toOrientedRange(),U.addSelectionMarker($)),_?ne=G.documentToScreenPosition(K.lead):K.moveToPosition(ue),le={row:-1,column:-1},H=V,k.capture(U.container,function(oe){N=oe.clientX,q=oe.clientY},function(oe){V(),clearInterval(Q),U.removeSelectionMarkers(L),L.length||(L=[K.toOrientedRange()]),$&&(U.removeSelectionMarker($),K.toSingleRange($));for(var ve=0;ve<L.length;ve++)K.addRange(L[ve]);U.inVirtualSelectionMode=!1,U.$mouseHandler.$clickSelection=null}),Q=setInterval(function(){H()},20),I.preventDefault()}}else D===0&&I.editor.inMultiSelectMode&&I.editor.exitMultiSelectMode()}}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(v,m,w){m.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(k){k.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(k){k.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(k){k.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(k){k.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(k){k.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(k){k.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(k){k.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(k){k.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(k){1<k.multiSelect.rangeCount?k.multiSelect.joinSelections():k.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(k){k.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(k){k.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(k){k.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],m.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(k){k.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(k){return k&&k.inMultiSelectMode}}],v=v("../keyboard/hash_handler").HashHandler,m.keyboardHandler=new v(m.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(v,m,w){var k=v("./range_list").RangeList,T=v("./range").Range,S=v("./selection").Selection,I=v("./mouse/multi_select_handler").onMouseDown,O=v("./lib/event"),y=v("./lib/lang"),_=v("./commands/multi_select_commands");m.commands=_.defaultCommands.concat(_.multiSelectCommands);var A=new(v("./search")).Search,R=v("./edit_session").EditSession,R=((function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(R.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(C,x){if(C){if(!this.inMultiSelectMode&&this.rangeCount===0){var P=this.toOrientedRange();if(this.rangeList.add(P),this.rangeList.add(C),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),x||this.fromOrientedRange(C);this.rangeList.removeAll(),this.rangeList.add(P),this.$onAddRange(P)}return C.cursor||(C.cursor=C.end),P=this.rangeList.add(C),this.$onAddRange(C),P.length&&this.$onRemoveRange(P),1<this.rangeCount&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),x||this.fromOrientedRange(C)}},this.toSingleRange=function(C){C=C||this.ranges[0];var x=this.rangeList.removeAll();x.length&&this.$onRemoveRange(x),C&&this.fromOrientedRange(C)},this.substractPoint=function(C){if(C=this.rangeList.substractPoint(C),C)return this.$onRemoveRange(C),C[0]},this.mergeOverlappingRanges=function(){var C=this.rangeList.merge();C.length&&this.$onRemoveRange(C)},this.$onAddRange=function(C){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(C),this._signal("addRange",{range:C})},this.$onRemoveRange=function(C){var x;this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode&&(x=this.rangeList.ranges.pop(),C.push(x),this.rangeCount=0);for(var P=C.length;P--;){var $=this.ranges.indexOf(C[P]);this.ranges.splice($,1)}this._signal("removeRange",{ranges:C}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(x=x||this.ranges[0])&&!x.isEqual(this.getRange())&&this.fromOrientedRange(x)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new k,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var C=this.ranges.length?this.ranges:[this.getRange()],x=[],P=0;P<C.length;P++){var $=C[P],L=$.start.row,V=$.end.row;if(L===V)x.push($.clone());else{for(x.push(new T(L,$.start.column,L,this.session.getLine(L).length));++L<V;)x.push(this.getLineRange(L,!0));x.push(new T(V,0,V,$.end.column))}P!=0||this.isBackwards()||(x=x.reverse())}for(this.toSingleRange(),P=x.length;P--;)this.addRange(x[P])},this.joinSelections=function(){var x=this.rangeList.ranges,C=x[x.length-1],x=T.fromPoints(x[0].start,C.end);this.toSingleRange(),this.setSelectionRange(x,C.cursor==C.start)},this.toggleBlockSelection=function(){var C,x;1<this.rangeCount?(x=(C=this.rangeList.ranges)[C.length-1],C=T.fromPoints(C[0].start,x.end),this.toSingleRange(),this.setSelectionRange(C,x.cursor==x.start)):(C=this.session.documentToScreenPosition(this.cursor),x=this.session.documentToScreenPosition(this.anchor),this.rectangularRangeBlock(C,x).forEach(this.addRange,this))},this.rectangularRangeBlock=function(C,x,P){var $,L,V,H,Q,U,K,J=[],ue=C.column<x.column,ee=(H=(ue?($=C.column,L=x.column,V=C.offsetX,x):($=x.column,L=C.column,V=x.offsetX,C)).offsetX,C.row<x.row);U=(ee?(Q=C.row,x):(Q=x.row,C)).row,$<0&&($=0),(Q=Q<0?0:Q)==U&&(P=!0);for(var N,q,G=Q;G<=U;G++){var ne=T.fromPoints(this.session.screenToDocumentPosition(G,$,V),this.session.screenToDocumentPosition(G,L,H));if(ne.isEmpty()){if(K&&(N=ne.end,q=K,N.row==q.row)&&N.column==q.column)break;K=ne.end}ne.cursor=ue?ne.start:ne.end,J.push(ne)}if(ee&&J.reverse(),!P){for(var le=J.length-1;J[le].isEmpty()&&0<le;)le--;if(0<le)for(var oe=0;J[oe].isEmpty();)oe++;for(var ve=le;oe<=ve;ve--)J[ve].isEmpty()&&J.splice(ve,1)}return J}}).call(S.prototype),v("./editor").Editor);function D(C){var x,P;function $(L){P&&(x.renderer.setMouseCursor(""),P=!1)}C.$multiselectOnSessionChange||(C.$onAddRange=C.$onAddRange.bind(C),C.$onRemoveRange=C.$onRemoveRange.bind(C),C.$onMultiSelect=C.$onMultiSelect.bind(C),C.$onSingleSelect=C.$onSingleSelect.bind(C),C.$multiselectOnSessionChange=m.onSessionChange.bind(C),C.$checkMultiselectChange=C.$checkMultiselectChange.bind(C),C.$multiselectOnSessionChange(C),C.on("changeSession",C.$multiselectOnSessionChange),C.on("mousedown",I),C.commands.addCommands(_.defaultCommands),(x=C).textInput&&(C=x.textInput.getElement(),P=!1,O.addListener(C,"keydown",function(L){L=L.keyCode==18&&!(L.ctrlKey||L.shiftKey||L.metaKey),x.$blockSelectEnabled&&L?P||(x.renderer.setMouseCursor("crosshair"),P=!0):P&&$()},x),O.addListener(C,"keyup",$,x),O.addListener(C,"blur",$,x)))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(C){C.cursor||(C.cursor=C.end);var x=this.getSelectionStyle();return C.marker=this.session.addMarker(C,"ace_selection",x),this.session.$selectionMarkers.push(C),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,C},this.removeSelectionMarker=function(C){C.marker&&(this.session.removeMarker(C.marker),(C=this.session.$selectionMarkers.indexOf(C))!=-1&&this.session.$selectionMarkers.splice(C,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length)},this.removeSelectionMarkers=function(C){for(var x=this.session.$selectionMarkers,P=C.length;P--;){var $=C[P];$.marker&&(this.session.removeMarker($.marker),($=x.indexOf($))!=-1)&&x.splice($,1)}this.session.selectionMarkerCount=x.length},this.$onAddRange=function(C){this.addSelectionMarker(C.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(C){this.removeSelectionMarkers(C.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(C){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(_.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(C){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(_.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(C){var x,P=C.command,$=C.editor;if($.multiSelect)return P.multiSelectAction?x=P.multiSelectAction=="forEach"?$.forEachSelection(P,C.args):P.multiSelectAction=="forEachLine"?$.forEachSelection(P,C.args,!0):P.multiSelectAction=="single"?($.exitMultiSelectMode(),P.exec($,C.args||{})):P.multiSelectAction($,C.args||{}):(x=P.exec($,C.args||{}),$.multiSelect.addRange($.multiSelect.toOrientedRange()),$.multiSelect.mergeOverlappingRanges()),x},this.forEachSelection=function(C,x,P){if(!this.inVirtualSelectionMode){var $,U=P&&P.keepOrder,L=P==1||P&&P.$byLines,V=this.session,P=this.selection,H=P.rangeList,Q=(U?P:H).ranges;if(!Q.length)return C.exec?C.exec(this,x||{}):C(this,x||{});var U=P._eventRegistry,K=(P._eventRegistry={},new S(V));this.inVirtualSelectionMode=!0;for(var J=Q.length;J--;){if(L)for(;0<J&&Q[J].start.row==Q[J-1].end.row;)J--;K.fromOrientedRange(Q[J]),K.index=J,this.selection=V.selection=K;var ue=C.exec?C.exec(this,x||{}):C(this,x||{});$||ue===void 0||($=ue),K.toOrientedRange(Q[J])}return K.detach(),this.selection=V.selection=P,this.inVirtualSelectionMode=!1,P._eventRegistry=U,P.mergeOverlappingRanges(),P.ranges[0]&&P.fromOrientedRange(P.ranges[0]),H=this.renderer.$scrollAnimation,this.onCursorChange(),this.onSelectionChange(),H&&H.from==H.to&&this.renderer.animateScrolling(H.from),$}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var C="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var x=this.multiSelect.rangeList.ranges,P=[],$=0;$<x.length;$++)P.push(this.session.getTextRange(x[$]));var L=this.session.getDocument().getNewLineCharacter();(C=P.join(L)).length==(P.length-1)*L.length&&(C="")}else this.selection.isEmpty()||(C=this.session.getTextRange(this.getSelectionRange()));return C},this.$checkMultiselectChange=function(C,x){var P;this.inMultiSelectMode&&!this.inVirtualSelectionMode&&(P=this.multiSelect.ranges[0],this.multiSelect.isEmpty()&&x==this.multiSelect.anchor||((P=x==this.multiSelect.anchor?P.cursor==P.start?P.end:P.start:P.cursor).row!=x.row||this.session.$clipPositionToDocument(P.row,P.column).column!=x.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()))},this.findAll=function(C,x,P){(x=x||{}).needle=C||x.needle,x.needle==null&&($=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange(),x.needle=this.session.getTextRange($)),this.$search.set(x);var $,L=this.$search.findAll(this.session);if(!L.length)return 0;var V=this.multiSelect;P||V.toSingleRange(L[0]);for(var H=L.length;H--;)V.addRange(L[H],!0);return $&&V.rangeList.rangeAtPoint($.start)&&V.addRange($,!0),L.length},this.selectMoreLines=function(C,x){var P,$,L,V=this.selection.toOrientedRange(),H=V.cursor==V.end,Q=this.session.documentToScreenPosition(V.cursor),U=(this.selection.$desiredColumn&&(Q.column=this.selection.$desiredColumn),this.session.screenToDocumentPosition(Q.row+C,Q.column));C=V.isEmpty()?U:(P=this.session.documentToScreenPosition(H?V.end:V.start),this.session.screenToDocumentPosition(P.row+C,P.column)),H?($=T.fromPoints(U,C)).cursor=$.start:($=T.fromPoints(C,U)).cursor=$.end,$.desiredColumn=Q.column,this.selection.inMultiSelectMode?x&&(L=V.cursor):this.selection.addRange(V),this.selection.addRange($),L&&this.selection.substractPoint(L)},this.transposeSelections=function(C){for(var x=this.session,P=x.multiSelect,$=P.ranges,L=$.length;L--;)(H=$[L]).isEmpty()&&(Q=x.getWordRange(H.start.row,H.start.column),H.start.row=Q.start.row,H.start.column=Q.start.column,H.end.row=Q.end.row,H.end.column=Q.end.column);P.mergeOverlappingRanges();for(var V=[],L=$.length;L--;){var H=$[L];V.unshift(x.getTextRange(H))}for(C<0?V.unshift(V.pop()):V.push(V.shift()),L=$.length;L--;){var Q=(H=$[L]).clone();x.replace(H,V[L]),H.start.row=Q.start.row,H.start.column=Q.start.column}P.fromOrientedRange(P.ranges[0])},this.selectMore=function(C,x,P){var $,L=this.session,V=L.multiSelect.toOrientedRange();V.isEmpty()&&((V=L.getWordRange(V.start.row,V.start.column)).cursor=C==-1?V.start:V.end,this.multiSelect.addRange(V),P)||(P=L.getTextRange(V),L=L,P=P,$=C,A.$options.wrap=!0,A.$options.needle=P,A.$options.backwards=$==-1,(P=A.find(L))&&(P.cursor=C==-1?P.start:P.end,this.session.unfold(P),this.multiSelect.addRange(P),this.renderer.scrollCursorIntoView(null,.5)),x&&this.multiSelect.substractPoint(V.cursor))},this.alignCursors=function(){var C=this.session,x=C.multiSelect,P=x.ranges,$=-1,L=P.filter(function(N){if(N.cursor.row==$)return!0;$=N.cursor.row});if(P.length&&L.length!=P.length-1){L.forEach(function(N){x.substractPoint(N.cursor)});var V=0,H=1/0,Q=P.map(function(q){var q=q.cursor,G=C.getLine(q.row).substr(q.column).search(/\S/g);return q.column>V&&(V=q.column),(G=G==-1?0:G)<H&&(H=G),G});P.forEach(function(N,le){var G=N.cursor,ne=V-G.column,le=Q[le]-H;le<ne?C.insert(G,y.stringRepeat(" ",ne-le)):C.remove(new T(G.row,G.column,G.row,G.column-ne+le)),N.start.column=N.end.column=V,N.start.row=N.end.row=G.row,N.cursor=N.end}),x.fromOrientedRange(P[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var L=this.selection.getRange(),U=L.start.row,K=L.end.row,P=U==K;if(P){for(var J,ue=this.session.getLength();J=this.session.getLine(K),/[=:]/.test(J)&&++K<ue;);for(;J=this.session.getLine(U),/[=:]/.test(J)&&0<--U;);U<0&&(U=0),ue<=K&&(K=ue-1)}var ee=this.session.removeFullLines(U,K),ee=this.$reAlignText(ee,P);this.session.insert({row:U,column:0},ee.join(`
|
|
`)+`
|
|
`),P||(L.start.column=0,L.end.column=ee[ee.length-1].length),this.selection.setRange(L)}},this.$reAlignText=function(C,x){var P,$,L,V=!0,H=!0;return C.map(function(K){var J=K.match(/(\s*)(.*?)(\s*)([=:].*)/);return J?(P==null?(P=J[1].length,$=J[2].length,L=J[3].length):(P+$+L!=J[1].length+J[2].length+J[3].length&&(H=!1),P!=J[1].length&&(V=!1),P>J[1].length&&(P=J[1].length),$<J[2].length&&($=J[2].length),L>J[3].length&&(L=J[3].length)),J):[K]}).map(x?U:V?H?function(K){return K[2]?Q(P+$-K[2].length)+K[2]+Q(L)+K[4].replace(/^([=:])\s+/,"$1 "):K[0]}:U:function(K){return K[2]?Q(P)+K[2]+Q(L)+K[4].replace(/^([=:])\s+/,"$1 "):K[0]});function Q(K){return y.stringRepeat(" ",K)}function U(K){return K[2]?Q(P)+K[2]+Q($-K[2].length+L)+K[4].replace(/^([=:])\s+/,"$1 "):K[0]}}}).call(R.prototype),m.onSessionChange=function(P){var x=P.session,P=(x&&!x.multiSelect&&(x.$selectionMarkers=[],x.selection.$initRangeList(),x.multiSelect=x.selection),this.multiSelect=x&&x.multiSelect,P.oldSession);P&&(P.multiSelect.off("addRange",this.$onAddRange),P.multiSelect.off("removeRange",this.$onRemoveRange),P.multiSelect.off("multiSelect",this.$onMultiSelect),P.multiSelect.off("singleSelect",this.$onSingleSelect),P.multiSelect.lead.off("change",this.$checkMultiselectChange),P.multiSelect.anchor.off("change",this.$checkMultiselectChange)),x&&(x.multiSelect.on("addRange",this.$onAddRange),x.multiSelect.on("removeRange",this.$onRemoveRange),x.multiSelect.on("multiSelect",this.$onMultiSelect),x.multiSelect.on("singleSelect",this.$onSingleSelect),x.multiSelect.lead.on("change",this.$checkMultiselectChange),x.multiSelect.anchor.on("change",this.$checkMultiselectChange)),x&&this.inMultiSelectMode!=x.selection.inMultiSelectMode&&(x.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},m.MultiSelect=D,v("./config").defineOptions(R.prototype,"editor",{enableMultiselect:{set:function(C){D(this),C?this.on("mousedown",I):this.off("mousedown",I)},value:!0},enableBlockSelect:{set:function(C){this.$blockSelectEnabled=C},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(T,m,w){var k=T("../../range").Range,T=m.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(S,I,O){return S=S.getLine(O),this.foldingStartMarker.test(S)?"start":I=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(S)?"end":""},this.getFoldWidgetRange=function(S,I,O){return null},this.indentationBlock=function(S,I,O){var y=/\S/,_=S.getLine(I),A=_.search(y);if(A!=-1){for(var R,O=O||_.length,D=S.getLength(),_=I,C=I;++I<D;){var x=S.getLine(I).search(y);if(x!=-1){if(x<=A&&(x=S.getTokenAt(I,0),!x||x.type!=="string"))break;C=I}}return _<C?(R=S.getLine(C).length,new k(_,O,C,R)):void 0}},this.openingBracketBlock=function(S,I,O,y,_){if(O={row:O,column:y+1},y=S.$findClosingBracket(I,O,_),y)return(I=(I=S.foldWidgets[y.row])==null?S.getFoldWidget(y.row):I)=="start"&&y.row>O.row&&(y.row--,y.column=S.getLine(y.row).length),k.fromPoints(O,y)},this.closingBracketBlock=function(S,I,O,y,_){if(O={row:O,column:y},y=S.$findOpeningBracket(I,O),y)return y.column++,O.column--,k.fromPoints(y,O)}}).call(T.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(v,m,w){var k=v("../line_widgets").LineWidgets,T=v("../lib/dom"),S=v("../range").Range,I=v("../config").nls;function O(y,_,A){var R=y.getAnnotations().sort(S.comparePoints);if(R.length){var D=function(P,$,L){for(var V=0,H=P.length-1;V<=H;){var Q=V+H>>1,U=L($,P[Q]);if(0<U)V=1+Q;else{if(!(U<0))return Q;H=Q-1}}return-(V+1)}(R,{row:_,column:-1},S.comparePoints),C=((D=D<0?-D-1:D)>=R.length?D=0<A?0:R.length-1:D===0&&A<0&&(D=R.length-1),R[D]);if(C&&A){if(C.row===_){for(;(C=R[D+=A])&&C.row===_;);if(!C)return R.slice()}var x=[];for(_=C.row;x[A<0?"unshift":"push"](C),(C=R[D+=A])&&C.row==_;);return x.length&&x}}}m.showErrorMarker=function(y,$){var A,R=y.session,D=(R.widgetManager||(R.widgetManager=new k(R),R.widgetManager.attach(y)),y.getCursorPosition()),P=D.row,L=R.widgetManager.getWidgetsAtRow(P).filter(function(V){return V.type=="errorMarker"})[0],P=(L?L.destroy():P-=$,O(R,P,$));if(P)$=P[0],D.column=($.pos&&typeof $.column!="number"?$.pos.sc:$.column)||0,D.row=$.row,A=y.renderer.$gutterLayer.$annotations[D.row];else{if(L)return;A={text:[I("Looks good!")],className:"ace_ok"}}y.session.unfold(D.row),y.selection.moveToPosition(D);function C(V,H,Q){if(H===0&&(Q==="esc"||Q==="return"))return x.destroy(),{command:"null"}}var x={row:D.row,fixedWidth:!0,coverGutter:!0,el:T.createElement("div"),type:"errorMarker"},P=x.el.appendChild(T.createElement("div")),$=x.el.appendChild(T.createElement("div")),L=($.className="error_widget_arrow "+A.className,y.renderer.$cursorLayer.getPixelPosition(D).left);$.style.left=L+y.renderer.gutterWidth-5+"px",x.el.className="error_widget_wrapper",P.className="error_widget "+A.className,P.innerHTML=A.text.join("<br>"),P.appendChild(T.createElement("div")),x.destroy=function(){y.$mouseHandler.isMousePressed||(y.keyBinding.removeKeyboardHandler(C),R.widgetManager.removeLineWidget(x),y.off("changeSelection",x.destroy),y.off("changeSession",x.destroy),y.off("mouseup",x.destroy),y.off("change",x.destroy))},y.keyBinding.addKeyboardHandler(C),y.on("changeSelection",x.destroy),y.on("changeSession",x.destroy),y.on("mouseup",x.destroy),y.on("change",x.destroy),y.session.widgetManager.addLineWidget(x),x.el.onmousedown=y.focus.bind(y),y.renderer.scrollCursorIntoView(null,.5,{bottom:x.el.offsetHeight})},T.importCssString(`
|
|
.error_widget_wrapper {
|
|
background: inherit;
|
|
color: inherit;
|
|
border:none
|
|
}
|
|
.error_widget {
|
|
border-top: solid 2px;
|
|
border-bottom: solid 2px;
|
|
margin: 5px 0;
|
|
padding: 10px 40px;
|
|
white-space: pre-wrap;
|
|
}
|
|
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
|
border-color: #ff5a5a
|
|
}
|
|
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
|
border-color: #F1D817
|
|
}
|
|
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
|
border-color: #5a5a5a
|
|
}
|
|
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
|
border-color: #5aaa5a
|
|
}
|
|
.error_widget_arrow {
|
|
position: absolute;
|
|
border: solid 5px;
|
|
border-top-color: transparent!important;
|
|
border-right-color: transparent!important;
|
|
border-left-color: transparent!important;
|
|
top: -5px;
|
|
}
|
|
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(v,m,w){v("./loader_build")(m);var k=v("./lib/dom"),T=v("./range").Range,S=v("./editor").Editor,I=v("./edit_session").EditSession,O=v("./undomanager").UndoManager,y=v("./virtual_renderer").VirtualRenderer;v("./worker/worker_client"),v("./keyboard/hash_handler"),v("./placeholder"),v("./multi_select"),v("./mode/folding/fold_mode"),v("./theme/textmate"),v("./ext/error_marker"),m.config=v("./config"),m.edit=function(_,A){if(typeof _=="string"){var R=_;if(!(_=document.getElementById(R)))throw new Error("ace.edit can't find div #"+R)}var D,C;return _&&_.env&&_.env.editor instanceof S?_.env.editor:(R="",_&&/input|textarea/i.test(_.tagName)?(R=(D=_).value,_=k.createElement("pre"),D.parentNode.replaceChild(_,D)):_&&(R=_.textContent,_.innerHTML=""),R=m.createEditSession(R),_=new S(new y(_),R,A),C={document:R,editor:_,onResize:_.resize.bind(_,null)},D&&(C.textarea=D),_.on("destroy",function(){C.editor.container.env=null}),_.container.env=_.env=C,_)},m.createEditSession=function(_,A){return _=new I(_,A),_.setUndoManager(new O),_},m.Range=T,m.Editor=S,m.EditSession=I,m.UndoManager=O,m.VirtualRenderer=y,m.version=m.config.version}),ace.require(["ace/ace"],function(v){v&&(v.config.init(!0),v.define=ace.define);var m,w=function(){return this}();for(m in(w=(w=w||typeof window>"u"?w:window)||typeof self>"u"?w:self).ace||(w.ace=v),v)v.hasOwnProperty(m)&&(w.ace[m]=v[m]);w.ace.default=w.ace,o&&(o.exports=w.ace)})},4317:function(o,a,s){o=s.nmd(o),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(l,u,c){var d=l("./lib/dom"),D=l("./lib/oop"),h=l("./lib/event_emitter").EventEmitter,f=l("./lib/lang"),g=l("./range").Range,b=l("./range_list").RangeList,v=l("./keyboard/hash_handler").HashHandler,m=l("./tokenizer").Tokenizer,w=l("./clipboard"),k={CURRENT_WORD:function(C){return C.session.getTextRange(C.session.getWordRange())},SELECTION:function(C,x,P){return C=C.session.getTextRange(),P?C.replace(/\n\r?([ \t]*\S)/g,`
|
|
`+P+"$1"):C},CURRENT_LINE:function(C){return C.session.getLine(C.getCursorPosition().row)},PREV_LINE:function(C){return C.session.getLine(C.getCursorPosition().row-1)},LINE_INDEX:function(C){return C.getCursorPosition().row},LINE_NUMBER:function(C){return C.getCursorPosition().row+1},SOFT_TABS:function(C){return C.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(C){return C.session.getTabSize()},CLIPBOARD:function(C){return w.getText&&w.getText()},FILENAME:function(C){return/[^/\\]*$/.exec(this.FILEPATH(C))[0]},FILENAME_BASE:function(C){return/[^/\\]*$/.exec(this.FILEPATH(C))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(C){return this.FILEPATH(C).replace(/[^/\\]*$/,"")},FILEPATH:function(C){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(C){return C=C.session.$mode||{},C.blockComment&&C.blockComment.start||""},BLOCK_COMMENT_END:function(C){return C=C.session.$mode||{},C.blockComment&&C.blockComment.end||""},LINE_COMMENT:function(C){return(C.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:T.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:T.bind(null,{year:"2-digit"}),CURRENT_MONTH:T.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:T.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:T.bind(null,{month:"short"}),CURRENT_DATE:T.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:T.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:T.bind(null,{weekday:"short"}),CURRENT_HOUR:T.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:T.bind(null,{minute:"2-digit"}),CURRENT_SECOND:T.bind(null,{second:"2-digit"})};function T(C){return C=new Date().toLocaleString("en-us",C),C.length==1?"0"+C:C}k.SELECTED_TEXT=k.SELECTION,I.prototype.getTokenizer=function(){return I.$tokenizer||this.createTokenizer()},I.prototype.createTokenizer=function(){function C($){return $=$.substr(1),/^\d+$/.test($)?[{tabstopId:parseInt($,10)}]:[{text:$}]}function x($){return"(?:[^\\\\"+$+"]|\\\\.)"}var P={regex:"/("+x("/")+"+)/",onMatch:function($,L,V){return V=V[0],V.fmtString=!0,V.guard=$.slice(1,-1),V.flag=""},next:"formatString"};return I.$tokenizer=new m({start:[{regex:/\\./,onMatch:function($,L,V){var H=$[1];return[$=H=="}"&&V.length||"`$\\".indexOf(H)!=-1?H:$]}},{regex:/}/,onMatch:function($,L,V){return[V.length?V.shift():$]}},{regex:/\$(?:\d+|\w+)/,onMatch:C},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function($,L,V){return $=C($.substr(1)),V.unshift($[0]),$},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+x("\\|")+"*\\|",onMatch:function($,L,V){return $=$.slice(1,-1).replace(/\\[,|\\]|,/g,function(H){return H.length==2?H[1]:"\0"}).split("\0").map(function(H){return{value:H}}),[(V[0].choices=$)[0]]},next:"start"},P,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function($,L,V){return V.length&&V[0].expectElse?(V[0].expectElse=!1,V[0].ifEnd={elseEnd:V[0]},[V[0].ifEnd]):":"}},{regex:/\\./,onMatch:function($,L,V){var H=$[1];return H=="}"&&V.length||"`$\\".indexOf(H)!=-1?$=H:H=="n"?$=`
|
|
`:H=="t"?$=" ":"ulULE".indexOf(H)!=-1&&($={changeCase:H,local:"a"<H}),[$]}},{regex:"/\\w*}",onMatch:function($,L,V){return V=V.shift(),V&&(V.flag=$.slice(1,-1)),this.next=V&&V.tabstopId?"start":"",[V||$]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function($,L,V){return[{text:$.slice(1)}]}},{regex:/\${\w+/,onMatch:function($,L,V){return $={text:$.slice(2)},V.unshift($),[$]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function($,L,V){return V=V.shift(),this.next=V&&V.tabstopId?"start":"",[V||$]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function($,L,V){return V[0].formatFunction=$.slice(2,-1),[V.shift()]},next:"formatString"},P,{regex:/:[\?\-+]?/,onMatch:function($,L,V){$[1]=="+"&&(V[0].ifEnd=V[0]),$[1]=="?"&&(V[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]})},I.prototype.tokenizeTmSnippet=function(C,x){return this.getTokenizer().getLineTokens(C,x).tokens.map(function(P){return P.value||P})},I.prototype.getVariableValue=function(C,x,P){var $;return/^\d+$/.test(x)?(this.variables.__||{})[x]||"":/^[A-Z]\d+$/.test(x)?(this.variables[x[0]+"__"]||{})[x.substr(1)]||"":(x=x.replace(/^TM_/,""),!this.variables.hasOwnProperty(x)||($=typeof($=this.variables[x])=="function"?this.variables[x](C,x,P):$)==null?"":$)},I.prototype.tmStrFormat=function(C,x,P){var $,L,V,H;return x.fmt?($=x.flag||"",L=x.guard,L=new RegExp(L,$.replace(/[^gim]/g,"")),V=typeof x.fmt=="string"?this.tokenizeTmSnippet(x.fmt,"formatString"):x.fmt,H=this,C.replace(L,function(){for(var Q=H.variables.__,U=(H.variables.__=[].slice.call(arguments),H.resolveVariables(V,P)),K="E",J=0;J<U.length;J++){var ue,ee=U[J];typeof ee=="object"?(U[J]="",ee.changeCase&&ee.local?(ue=U[J+1])&&typeof ue=="string"&&(ee.changeCase=="u"?U[J]=ue[0].toUpperCase():U[J]=ue[0].toLowerCase(),U[J+1]=ue.substr(1)):ee.changeCase&&(K=ee.changeCase)):K=="U"?U[J]=ee.toUpperCase():K=="L"&&(U[J]=ee.toLowerCase())}return H.variables.__=Q,U.join("")})):C},I.prototype.tmFormatFunction=function(C,x,P){return x.formatFunction=="upcase"?C.toUpperCase():x.formatFunction=="downcase"?C.toLowerCase():C},I.prototype.resolveVariables=function(C,x){for(var P=[],$="",L=!0,V=0;V<C.length;V++){var H,Q=C[V];typeof Q=="string"?(P.push(Q),Q==`
|
|
`?(L=!0,$=""):L&&($=/^\t*/.exec(Q)[0],L=/\S/.test(Q))):Q&&(L=!1,Q.fmtString&&((H=C.indexOf(Q,V+1))==-1&&(H=C.length),Q.fmt=C.slice(V+1,H),V=H),Q.text?(H=this.getVariableValue(x,Q.text,$)+"",Q.fmtString&&(H=this.tmStrFormat(H,Q,x)),(H=Q.formatFunction?this.tmFormatFunction(H,Q,x):H)&&!Q.ifEnd?(P.push(H),U(Q)):!H&&Q.ifEnd&&U(Q.ifEnd)):Q.elseEnd?U(Q.elseEnd):Q.tabstopId==null&&Q.changeCase==null||P.push(Q))}function U(K){K=C.indexOf(K,V+1),K!=-1&&(V=K)}return P},I.prototype.getDisplayTextForSnippet=function(C,x){return O.call(this,C,x).text},I.prototype.insertSnippetForSelection=function(Q,$,L){var $=O.call(this,Q,$,L=L===void 0?{}:L),L=Q.getSelectionRange(),V=Q.session.replace(L,$.text),H=new y(Q),Q=Q.inVirtualSelectionMode&&Q.selection.index;H.addTabstops($.tabstops,L.start,V,Q)},I.prototype.insertSnippet=function(C,x,P){P===void 0&&(P={});var $=this;if(C.inVirtualSelectionMode)return $.insertSnippetForSelection(C,x,P);C.forEachSelection(function(){$.insertSnippetForSelection(C,x,P)},null,{keepOrder:!0}),C.tabstopManager&&C.tabstopManager.tabNext()},I.prototype.$getScope=function(C){var x,P=C.session.$mode.$id||"";return(P=P.split("/").pop())!=="html"&&P!=="php"||(P!=="php"||C.session.$mode.inlinePhp||(P="html"),x=C.getCursorPosition(),(C=typeof(C=C.session.getState(x.row))=="object"?C[0]:C).substring&&(C.substring(0,3)=="js-"?P="javascript":C.substring(0,4)=="css-"?P="css":C.substring(0,4)=="php-"&&(P="php"))),P},I.prototype.getActiveScopes=function(x){var x=this.$getScope(x),P=[x],$=this.snippetMap;return $[x]&&$[x].includeScopes&&P.push.apply(P,$[x].includeScopes),P.push("_"),P},I.prototype.expandWithTab=function(C,x){var P=this,$=C.forEachSelection(function(){return P.expandSnippetForSelection(C,x)},null,{keepOrder:!0});return $&&C.tabstopManager&&C.tabstopManager.tabNext(),$},I.prototype.expandSnippetForSelection=function(C,x){var P,$=C.getCursorPosition(),L=C.session.getLine($.row),V=L.substring(0,$.column),H=L.substr($.column),Q=this.snippetMap;return this.getActiveScopes(C).some(function(U){return U=Q[U],!!(P=U?this.findMatchingSnippet(U,V,H):P)},this),!!P&&(x&&x.dryRun||(C.session.doc.removeInLine($.row,$.column-P.replaceBefore.length,$.column+P.replaceAfter.length),this.variables.M__=P.matchBefore,this.variables.T__=P.matchAfter,this.insertSnippetForSelection(C,P.content),this.variables.M__=this.variables.T__=null),!0)},I.prototype.findMatchingSnippet=function(C,x,P){for(var $=C.length;$--;){var L=C[$];if((!L.startRe||L.startRe.test(x))&&(!L.endRe||L.endRe.test(P))&&(L.startRe||L.endRe))return L.matchBefore=L.startRe?L.startRe.exec(x):[""],L.matchAfter=L.endRe?L.endRe.exec(P):[""],L.replaceBefore=L.triggerRe?L.triggerRe.exec(x)[0]:"",L.replaceAfter=L.endTriggerRe?L.endTriggerRe.exec(P)[0]:"",L}},I.prototype.register=function(C,x){var P=this.snippetMap,$=this.snippetNameMap,L=this;function V(U){return(U=U&&!/^\^?\(.*\)\$?$|^\\b$/.test(U)?"(?:"+U+")":U)||""}function H(U,K,J){return U=V(U),K=V(K),(U=K+U)&&U[U.length-1]!="$"&&(U+="$"),new RegExp(U)}function Q(U){U.scope||(U.scope=x||"_"),x=U.scope,P[x]||(P[x]=[],$[x]={});var K,J=$[x];U.name&&((K=J[U.name])&&L.unregister(K),J[U.name]=U),P[x].push(U),U.prefix&&(U.tabTrigger=U.prefix),!U.content&&U.body&&(U.content=Array.isArray(U.body)?U.body.join(`
|
|
`):U.body),U.tabTrigger&&!U.trigger&&(!U.guard&&/^\w/.test(U.tabTrigger)&&(U.guard="\\b"),U.trigger=f.escapeRegExp(U.tabTrigger)),(U.trigger||U.guard||U.endTrigger||U.endGuard)&&(U.startRe=H(U.trigger,U.guard),U.triggerRe=new RegExp(U.trigger),U.endRe=H(U.endTrigger,U.endGuard),U.endTriggerRe=new RegExp(U.endTrigger))}C=C||[],Array.isArray(C)?C.forEach(Q):Object.keys(C).forEach(function(U){Q(C[U])}),this._signal("registerSnippets",{scope:x})},I.prototype.unregister=function(C,x){var P=this.snippetMap,$=this.snippetNameMap;function L(V){var H=$[V.scope||x];H&&H[V.name]&&(delete H[V.name],0<=(V=(H=P[V.scope||x])&&H.indexOf(V)))&&H.splice(V,1)}C.content?L(C):Array.isArray(C)&&C.forEach(L)},I.prototype.parseSnippetFile=function(C){C=C.replace(/\r/g,"");for(var x,P,$,L=[],V={},H=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;P=H.exec(C);){if(P[1])try{V=JSON.parse(P[1]),L.push(V)}catch{}P[4]?(V.content=P[4].replace(/^\t/gm,""),L.push(V),V={}):(x=P[2],P=P[3],x=="regex"?(V.guard=($=/\/((?:[^\/\\]|\\.)*)|$/g).exec(P)[1],V.trigger=$.exec(P)[1],V.endTrigger=$.exec(P)[1],V.endGuard=$.exec(P)[1]):x=="snippet"?(V.tabTrigger=P.match(/^\S*/)[0],V.name||(V.name=P)):x&&(V[x]=P))}return L},I.prototype.getSnippetByName=function(C,x){var P,$=this.snippetNameMap;return this.getActiveScopes(x).some(function(L){return L=$[L],!!(P=L?L[C]:P)},this),P};var S=I;function I(){this.snippetMap={},this.snippetNameMap={},this.variables=k}D.implement(S.prototype,h);var O=function(C,x,P){P===void 0&&(P={});for(var $=C.getCursorPosition(),L=C.session.getLine($.row),V=C.session.getTabString(),H=L.match(/^\s*/)[0],Q=($.column<H.length&&(H=H.slice(0,$.column)),x=x.replace(/\r/g,""),this.tokenizeTmSnippet(x)),U=(Q=(Q=this.resolveVariables(Q,C)).map(function(oe){return oe!=`
|
|
`||P.excludeExtraIndent?typeof oe=="string"?oe.replace(/\t/g,V):oe:oe+H}),[]),K=(Q.forEach(function(oe,ve){var de,ae,be;typeof oe=="object"&&(be=oe.tabstopId,(de=U[be])||((de=U[be]=[]).index=be,de.value="",de.parents={}),de.indexOf(oe)===-1)&&(oe.choices&&!de.choices&&(de.choices=oe.choices),de.push(oe),(ae=Q.indexOf(oe,ve+1))!==-1)&&((be=Q.slice(ve+1,ae)).some(function(ie){return typeof ie=="object"})&&!de.value?de.value=be:!be.length||de.value&&typeof de.value=="string"||(de.value=be.join("")))}),U.forEach(function(oe){oe.length=0}),{}),J=0;J<Q.length;J++){var ue,ee,N,q=Q[J];typeof q=="object"&&(N=q.tabstopId,ue=U[N],ee=Q.indexOf(q,J+1),K[N]?K[N]===q&&(delete K[N],Object.keys(K).forEach(function(oe){ue.parents[oe]=!0})):(K[N]=q,typeof(N=ue.value)!="string"?N=function(oe){for(var ve=[],de=0;de<oe.length;de++){if(typeof(ae=oe[de])=="object"){if(K[ae.tabstopId])continue;var ae=ve[oe.lastIndexOf(ae,de-1)]||{tabstopId:ae.tabstopId}}ve[de]=ae}return ve}(N):q.fmt&&(N=this.tmStrFormat(N,q,C)),Q.splice.apply(Q,[J+1,Math.max(0,ee-J)].concat(N,q)),ue.indexOf(q)===-1&&ue.push(q)))}var G=0,ne=0,le="";return Q.forEach(function(oe){var ve;typeof oe=="string"?(1<(ve=oe.split(`
|
|
`)).length?(ne=ve[ve.length-1].length,G+=ve.length-1):ne+=oe.length,le+=oe):oe&&(oe.start?oe.end={row:G,column:ne}:oe.start={row:G,column:ne})}),{text:le,tabstops:U,tokens:Q}},y=(_.prototype.attach=function(C){this.$openTabstops=null,this.selectedTabstop=null,this.editor=C,this.session=C.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},_.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},_.prototype.onChange=function(C){for(var x=C.action[0]=="r",P=this.selectedTabstop||{},$=P.parents||{},L=this.tabstops.slice(),V=0;V<L.length;V++){var H=L[V],Q=H==P||$[H.index];if(H.rangeList.$bias=Q?0:1,C.action=="remove"&&H!==P)for(var Q=H.parents&&H.parents[P.index],U=(U=H.rangeList.pointIndex(C.start,Q))<0?-U-1:U+1,Q=H.rangeList.pointIndex(C.end,Q),K=H.rangeList.ranges.slice(U,Q<0?-Q-1:Q-1),J=0;J<K.length;J++)this.removeRange(K[J]);H.rangeList.$onChange(C)}var ue=this.session;this.$inChange||!x||ue.getLength()!=1||ue.getValue()||this.detach()},_.prototype.updateLinkedFields=function(){var C=this.selectedTabstop;if(C&&C.hasLinkedRanges&&C.firstNonLinked){this.$inChange=!0;for(var x=this.session,P=x.getTextRange(C.firstNonLinked),$=0;$<C.length;$++){var L,V=C[$];V.linked&&(L=V.original,L=u.snippetManager.tmStrFormat(P,L,this.editor),x.replace(V,L))}this.$inChange=!1}},_.prototype.onAfterExec=function(C){C.command&&!C.command.readOnly&&this.updateLinkedFields()},_.prototype.onChangeSelection=function(){if(this.editor){for(var C=this.editor.selection.lead,x=this.editor.selection.anchor,P=this.editor.selection.isEmpty(),$=0;$<this.ranges.length;$++)if(!this.ranges[$].linked){var L=this.ranges[$].contains(C.row,C.column),V=P||this.ranges[$].contains(x.row,x.column);if(L&&V)return}this.detach()}},_.prototype.onChangeSession=function(){this.detach()},_.prototype.tabNext=function(P){var x=this.tabstops.length,P=this.index+(P||1),P=Math.min(Math.max(P,1),x);this.selectTabstop(P=P==x?0:P),P===0&&this.detach()},_.prototype.selectTabstop=function(C){this.$openTabstops=null;var x=this.tabstops[this.index];if(x&&this.addTabstopMarkers(x),this.index=C,(x=this.tabstops[this.index])&&x.length){if(C=(this.selectedTabstop=x).firstNonLinked||x,x.choices&&(C.cursor=C.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(C);else{var P=this.editor.multiSelect;P.toSingleRange(C);for(var $=0;$<x.length;$++)x.hasLinkedRanges&&x[$].linked||P.addRange(x[$].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},_.prototype.addTabstops=function(C,x,P){var $=this.useLink||!this.editor.getOption("enableMultiselect");this.$openTabstops||(this.$openTabstops=[]),C[0]||(P=g.fromPoints(P,P),R(P.start,x),R(P.end,x),C[0]=[P],C[0].index=0);var L=[this.index+1,0],V=this.ranges;C.forEach(function(H,Q){for(var U=this.$openTabstops[Q]||H,K=0;K<H.length;K++){var J=H[K],ue=g.fromPoints(J.start,J.end||J.start);A(ue.start,x),A(ue.end,x),ue.original=J,ue.tabstop=U,V.push(ue),U!=H?U.unshift(ue):U[K]=ue,J.fmtString||U.firstNonLinked&&$?(ue.linked=!0,U.hasLinkedRanges=!0):U.firstNonLinked||(U.firstNonLinked=ue)}U.firstNonLinked||(U.hasLinkedRanges=!1),U===H&&(L.push(U),this.$openTabstops[Q]=U),this.addTabstopMarkers(U),U.rangeList=U.rangeList||new b,U.rangeList.$bias=0,U.rangeList.addList(U)},this),2<L.length&&(this.tabstops.length&&L.push(L.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,L))},_.prototype.addTabstopMarkers=function(C){var x=this.session;C.forEach(function(P){P.markerId||(P.markerId=x.addMarker(P,"ace_snippet-marker","text"))})},_.prototype.removeTabstopMarkers=function(C){var x=this.session;C.forEach(function(P){x.removeMarker(P.markerId),P.markerId=null})},_.prototype.removeRange=function(C){var x=C.tabstop.indexOf(C);x!=-1&&C.tabstop.splice(x,1),(x=this.ranges.indexOf(C))!=-1&&this.ranges.splice(x,1),(x=C.tabstop.rangeList.ranges.indexOf(C))!=-1&&C.tabstop.splice(x,1),this.session.removeMarker(C.markerId),C.tabstop.length||((x=this.tabstops.indexOf(C.tabstop))!=-1&&this.tabstops.splice(x,1),this.tabstops.length)||this.detach()},_);function _(C){if(this.index=0,this.ranges=[],this.tabstops=[],C.tabstopManager)return C.tabstopManager;(C.tabstopManager=this).$onChange=this.onChange.bind(this),this.$onChangeSelection=f.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(C)}y.prototype.keyboardHandler=new v,y.prototype.keyboardHandler.bindKeys({Tab:function(C){u.snippetManager&&u.snippetManager.expandWithTab(C)||(C.tabstopManager.tabNext(1),C.renderer.scrollCursorIntoView())},"Shift-Tab":function(C){C.tabstopManager.tabNext(-1),C.renderer.scrollCursorIntoView()},Esc:function(C){C.tabstopManager.detach()}});var A=function(C,x){C.row==0&&(C.column+=x.column),C.row+=x.row},R=function(C,x){C.row==x.row&&(C.column-=x.column),C.row-=x.row},D=(d.importCssString(`
|
|
.ace_snippet-marker {
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
background: rgba(194, 193, 208, 0.09);
|
|
border: 1px dotted rgba(211, 208, 235, 0.62);
|
|
position: absolute;
|
|
}`,"snippets.css",!1),u.snippetManager=new S,l("./editor").Editor);(function(){this.insertSnippet=function(C,x){return u.snippetManager.insertSnippet(this,C,x)},this.expandSnippet=function(C){return u.snippetManager.expandWithTab(this,C)}}).call(D.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config"],function(l,u,c){function d(S){return"suggest-aria-id:".concat(S)}function h(S){return(S=new g(S)).$maxLines=4,(S=new b(S)).setHighlightActiveLine(!1),S.setShowPrintMargin(!1),S.renderer.setShowGutter(!1),S.renderer.setHighlightGutterLine(!1),S.$mouseHandler.$focusTimeout=0,S.$highlightTagPending=!0,S}function f(S){function I(){}function O(){C(-1)}var y,_=k.createElement("div"),A=new h(_),R=(S&&S.appendChild(_),_.style.display="none",A.renderer.content.style.cursor="default",A.renderer.setStyle("ace_autocomplete"),A.renderer.$textLayer.element.setAttribute("role","listbox"),A.renderer.$textLayer.element.setAttribute("aria-label",T("Autocomplete suggestions")),A.renderer.textarea.setAttribute("aria-hidden","true"),A.setOption("displayIndentGuides",!1),A.setOption("dragDelay",150),A.focus=I,A.$isFocused=!0,A.renderer.$cursorLayer.restartTimer=I,A.renderer.$cursorLayer.element.style.opacity=0,A.renderer.$maxLines=8,A.renderer.$keepTextAreaAtCursor=!1,A.setHighlightActiveLine(!1),A.session.highlight(""),A.session.$searchHighlight.clazz="ace_highlight-marker",A.on("mousedown",function(x){var P=x.getDocumentPosition();A.selection.moveToPosition(P),D.start.row=D.end.row=P.row,x.stop()}),new v(-1,0,-1,1/0)),D=new v(-1,0,-1,1/0),C=(D.id=A.session.addMarker(D,"ace_active-line","fullLine"),A.setSelectOnHover=function(x){x?R.id&&(A.session.removeMarker(R.id),R.id=null):R.id=A.session.addMarker(R,"ace_line-hover","fullLine")},A.setSelectOnHover(!1),A.on("mousemove",function(x){var P;y?y.x==x.x&&y.y==x.y||((y=x).scrollTop=A.renderer.scrollTop,A.isMouseOver=!0,P=y.getDocumentPosition().row,R.start.row!=P&&(R.id||A.setRow(P),C(P))):y=x}),A.renderer.on("beforeRender",function(){var x;y&&R.start.row!=-1&&(y.$pos=null,x=y.getDocumentPosition().row,R.id||A.setRow(x),C(x,!0))}),A.renderer.on("afterRender",function(){var x,P=A.getRow(),$=A.renderer.$textLayer,L=$.element.childNodes[P-$.config.firstRow],V=document.activeElement;L!==$.selectedNode&&$.selectedNode&&(k.removeCssClass($.selectedNode,"ace_selected"),V.removeAttribute("aria-activedescendant"),$.selectedNode.removeAttribute("id")),($.selectedNode=L)&&(k.addCssClass(L,"ace_selected"),x=d(P),L.id=x,$.element.setAttribute("aria-activedescendant",x),V.setAttribute("aria-activedescendant",x),L.setAttribute("role","option"),L.setAttribute("aria-label",A.getData(P).value),L.setAttribute("aria-setsize",A.data.length),L.setAttribute("aria-posinset",P+1),L.setAttribute("aria-describedby","doc-tooltip"))}),function(x,P){x!==R.start.row&&(R.start.row=R.end.row=x,P||A.session._emit("changeBackMarker"),A._emit("changeHoverMarker"))});return A.getHoveredRow=function(){return R.start.row},m.addListener(A.container,"mouseout",function(){A.isMouseOver=!1,O()}),A.on("hide",O),A.on("changeSelection",O),A.session.doc.getLength=function(){return A.data.length},A.session.doc.getLine=function(x){return x=A.data[x],typeof x=="string"?x:x&&x.value||""},(S=A.session.bgTokenizer).$tokenizeRow=function(x){var P=A.data[x],$=[];if(P){for(var L,V,H=(P=typeof P=="string"?{value:P}:P).caption||P.value||P.name,Q=H.toLowerCase(),U=(A.filterText||"").toLowerCase(),K=0,J=0,ue=0;ue<=U.length;ue++)ue!=J&&(P.matchMask&1<<ue||ue==U.length)&&(L=U.slice(J,ue),J=ue,(V=Q.indexOf(L,K))!=-1)&&(ee(H.slice(K,V),""),K=V+L.length,ee(H.slice(V,K),"completion-highlight"));ee(H.slice(K,H.length),""),$.push({type:"completion-spacer",value:" "}),P.meta&&$.push({type:"completion-meta",value:P.meta}),P.message&&$.push({type:"completion-message",value:P.message})}return $;function ee(N,q){N&&$.push({type:(P.className||"")+(q||""),value:N})}},S.$updateOnChange=I,S.start=I,A.session.$computeWidth=function(){return this.screenWidth=0},A.isOpen=!1,A.isTopdown=!1,A.autoSelect=!0,A.filterText="",A.isMouseOver=!1,A.data=[],A.setData=function(x,P){A.filterText=P||"",A.setValue(w.stringRepeat(`
|
|
`,x.length),-1),A.data=x||[],A.setRow(0)},A.getData=function(x){return A.data[x]},A.getRow=function(){return D.start.row},A.setRow=function(x){x=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,x)),D.start.row!=x&&(A.selection.clearSelection(),D.start.row=D.end.row=x||0,A.session._emit("changeBackMarker"),A.moveCursorTo(x||0,0),A.isOpen)&&A._signal("select")},A.on("changeSelection",function(){A.isOpen&&A.setRow(A.selection.lead.row),A.renderer.scrollCursorIntoView()}),A.hide=function(){this.container.style.display="none",A.anchorPos=null,A.anchor=null,A.isOpen&&(A.isOpen=!1,this._signal("hide"))},A.tryShow=function(x,P,$,L){if(L||!A.isOpen||!A.anchorPos||!A.anchor||A.anchorPos.top!==x.top||A.anchorPos.left!==x.left||A.anchor!==$){var V=this.container,H=window.innerHeight,Q=window.innerWidth,U=this.renderer,K=U.$maxLines*P*1.4,J={top:0,bottom:0,left:0},ue=H-x.top-3*this.$borderSize-P,ee=x.top-3*this.$borderSize,P=(($=$||(ee<=ue||K<=ue?"bottom":"top"))==="top"?(J.bottom=x.top-this.$borderSize,J.top=J.bottom-K):$==="bottom"&&(J.top=x.top+P+this.$borderSize,J.bottom=J.top+K),0<=J.top&&J.bottom<=H);if(!L&&!P)return!1;U.$maxPixelHeight=P?null:$==="top"?ee:ue,$==="top"?(V.style.top="",V.style.bottom=H-J.bottom+"px",A.isTopdown=!1):(V.style.top=J.top+"px",V.style.bottom="",A.isTopdown=!0),V.style.display="",K=x.left,K+V.offsetWidth>Q&&(K=Q-V.offsetWidth),V.style.left=K+"px",V.style.right="",A.isOpen||(A.isOpen=!0,this._signal("show"),y=null),A.anchorPos=x,A.anchor=$}return!0},A.show=function(x,P,$){this.tryShow(x,P,$?"bottom":void 0,!0)},A.goTo=function(x){var P=this.getRow(),$=this.session.getLength()-1;switch(x){case"up":P=P<=0?$:P-1;break;case"down":P=$<=P?-1:P+1;break;case"start":P=0;break;case"end":P=$}this.setRow(P)},A.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},A.$imageSize=0,A.$borderSize=1,A}var g=l("../virtual_renderer").VirtualRenderer,b=l("../editor").Editor,v=l("../range").Range,m=l("../lib/event"),w=l("../lib/lang"),k=l("../lib/dom"),T=l("../config").nls;k.importCssString(`
|
|
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
background-color: #CAD6FA;
|
|
z-index: 1;
|
|
}
|
|
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
background-color: #3a674e;
|
|
}
|
|
.ace_editor.ace_autocomplete .ace_line-hover {
|
|
border: 1px solid #abbffe;
|
|
margin-top: -1px;
|
|
background: rgba(233,233,253,0.4);
|
|
position: absolute;
|
|
z-index: 2;
|
|
}
|
|
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
|
|
border: 1px solid rgba(109, 150, 13, 0.8);
|
|
background: rgba(58, 103, 78, 0.62);
|
|
}
|
|
.ace_completion-meta {
|
|
opacity: 0.5;
|
|
margin-left: 0.9em;
|
|
}
|
|
.ace_completion-message {
|
|
margin-left: 0.9em;
|
|
color: blue;
|
|
}
|
|
.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|
color: #2d69c7;
|
|
}
|
|
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|
color: #93ca12;
|
|
}
|
|
.ace_editor.ace_autocomplete {
|
|
width: 300px;
|
|
z-index: 200000;
|
|
border: 1px lightgray solid;
|
|
position: fixed;
|
|
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
|
line-height: 1.4;
|
|
background: #fefefe;
|
|
color: #111;
|
|
}
|
|
.ace_dark.ace_editor.ace_autocomplete {
|
|
border: 1px #484747 solid;
|
|
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
|
|
line-height: 1.4;
|
|
background: #25282c;
|
|
color: #c1c1c1;
|
|
}
|
|
.ace_autocomplete .ace_text-layer {
|
|
width: calc(100% - 8px);
|
|
}
|
|
.ace_autocomplete .ace_line {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.ace_autocomplete .ace_line > * {
|
|
min-width: 0;
|
|
flex: 0 0 auto;
|
|
}
|
|
.ace_autocomplete .ace_line .ace_ {
|
|
flex: 0 1 auto;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.ace_autocomplete .ace_completion-spacer {
|
|
flex: 1;
|
|
}
|
|
.ace_autocomplete.ace_loading:after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0px;
|
|
height: 2px;
|
|
width: 8%;
|
|
background: blue;
|
|
z-index: 100;
|
|
animation: ace_progress 3s infinite linear;
|
|
animation-delay: 300ms;
|
|
transform: translateX(-100%) scaleX(1);
|
|
}
|
|
@keyframes ace_progress {
|
|
0% { transform: translateX(-100%) scaleX(1) }
|
|
50% { transform: translateX(625%) scaleX(2) }
|
|
100% { transform: translateX(1500%) scaleX(3) }
|
|
}
|
|
@media (prefers-reduced-motion) {
|
|
.ace_autocomplete.ace_loading:after {
|
|
transform: translateX(625%) scaleX(2);
|
|
animation: none;
|
|
}
|
|
}
|
|
`,"autocompletion.css",!1),u.AcePopup=f,u.$singleLineEditor=h,u.getAriaId=d}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(l,u,c){function d(h){this.editor=h,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}d.prototype.setScreenReaderContent=function(h){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var g=this.popup.getRow(),f=this.popup.renderer.$textLayer,g=f.element.childNodes[g-f.config.firstRow];if(g){for(var b="doc-tooltip ",v=0;v<this._lines.length;v++)b+="ace-inline-screenreader-line-".concat(v," ");g.setAttribute("aria-describedby",b)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=h.split(/\r\n|\r|\n/),h=this.createCodeBlock(),this.screenReaderDiv.appendChild(h)},d.prototype.destroy=function(){this.screenReaderDiv.remove()},d.prototype.createCodeBlock=function(){var h=document.createElement("pre");h.setAttribute("id","ace-inline-screenreader");for(var f=0;f<this._lines.length;f++){var g=document.createElement("code"),b=(g.setAttribute("id","ace-inline-screenreader-line-".concat(f)),document.createTextNode(this._lines[f]));g.appendChild(b),h.appendChild(g)}return h},u.AceInlineScreenReader=d}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(l,u,c){var d=l("../snippets").snippetManager,h=l("./inline_screenreader").AceInlineScreenReader;function f(){this.editor=null}f.prototype.show=function(g,b,v){if(v=v||"",g&&this.editor&&this.editor!==g&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!g||!b)return!1;this.inlineScreenReader||(this.inlineScreenReader=new h(g));var m=b.snippet?d.getDisplayTextForSnippet(g,b.snippet):b.value;return!(b.hideInlinePreview||!m||!m.startsWith(v)||(this.editor=g,this.inlineScreenReader.setScreenReaderContent(m),(m=m.slice(v.length))===""?g.removeGhostText():g.setGhostText(m),0))},f.prototype.isOpen=function(){return!!this.editor&&!!this.editor.renderer.$ghostText},f.prototype.hide=function(){return!!this.editor&&(this.editor.removeGhostText(),!0)},f.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},u.AceInline=f}),ace.define("ace/autocomplete/util",["require","exports","module"],function(l,u,c){u.parForEach=function(h,f,g){var b=0,v=h.length;v===0&&g();for(var m=0;m<v;m++)f(h[m],function(w,k){++b===v&&g(w,k)})};var d=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;u.retrievePrecedingIdentifier=function(h,f,g){g=g||d;for(var b=[],v=f-1;0<=v&&g.test(h[v]);v--)b.push(h[v]);return b.reverse().join("")},u.retrieveFollowingIdentifier=function(h,f,g){g=g||d;for(var b=[],v=f;v<h.length&&g.test(h[v]);v++)b.push(h[v]);return b},u.getCompletionPrefix=function(h){var f,g=h.getCursorPosition(),b=h.session.getLine(g.row);return h.completers.forEach((function(v){v.identifierRegexps&&v.identifierRegexps.forEach((function(m){!f&&m&&(f=this.retrievePrecedingIdentifier(b,g.column,m))}).bind(this))}).bind(this)),f||this.retrievePrecedingIdentifier(b,g.column)},u.triggerAutocomplete=function(h){var f=h.getCursorPosition(),g=h.session.getLine(f.row)[f.column===0?0:f.column-1];return h.completers.some(function(b){if(b.triggerCharacters&&Array.isArray(b.triggerCharacters))return b.triggerCharacters.includes(g)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event"],function(l,u,c){function d(D,C){C.completer&&C.completer.destroy()}var h=l("./keyboard/hash_handler").HashHandler,f=l("./autocomplete/popup").AcePopup,g=l("./autocomplete/inline").AceInline,b=l("./autocomplete/popup").getAriaId,v=l("./autocomplete/util"),m=l("./lib/lang"),w=l("./lib/dom"),k=l("./snippets").snippetManager,T=l("./config"),S=l("./lib/event"),I=(O.prototype.$init=function(){return this.popup=new f(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(D){this.insertMatch(),D.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),S.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},O.prototype.$initInline=function(){if(this.inlineEnabled&&!this.inlineRenderer)return this.inlineRenderer=new g,this.inlineRenderer},O.prototype.getPopup=function(){return this.popup||this.$init()},O.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.stickySelection=!1},O.prototype.$onPopupChange=function(D){if(this.inlineRenderer&&this.inlineEnabled){var D=D?null:this.popup.getData(this.popup.getRow()),C=v.getCompletionPrefix(this.editor);if(this.inlineRenderer.show(this.editor,D,C)||this.inlineRenderer.hide(),this.popup.isMouseOver&&this.setSelectOnHover)return void this.tooltipTimer.call(null,null)}this.$updatePopupPosition(),this.tooltipTimer.call(null,null)},O.prototype.$onPopupShow=function(D){this.$onPopupChange(D),this.stickySelection=!1,0<=this.stickySelectionDelay&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},O.prototype.observeLayoutChanges=function(){if(!this.$elements&&this.editor){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var D=this.editor.container.parentNode,C=[];D;)C.push(D),D.addEventListener("scroll",this.onLayoutChange,{passive:!0}),D=D.parentNode;this.$elements=C}},O.prototype.unObserveLayoutChanges=function(){var D=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(C){C.removeEventListener("scroll",D.onLayoutChange,{passive:!0})}),this.$elements=null},O.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},O.prototype.$updatePopupPosition=function(){var D=this.editor,C=D.renderer,x=C.layerConfig.lineHeight,P=C.$cursorLayer.getPixelPosition(this.base,!0),$=(P.left-=this.popup.getTextLeftOffset(),D.container.getBoundingClientRect()),$=(P.top+=$.top-C.layerConfig.offset,P.left+=$.left-D.renderer.scrollLeft,P.left+=C.gutterWidth,{top:P.top,left:P.left});C.$ghostText&&C.$ghostTextWidget&&this.base.row===C.$ghostText.position.row&&($.top+=C.$ghostTextWidget.el.offsetHeight),this.popup.tryShow($,x,"bottom")||this.popup.tryShow(P,x,"top")||this.popup.show(P,x)},O.prototype.openPopup=function(D,C,x){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var P=this.popup.data[this.popup.getRow()],P=(this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:b(this.popup.getRow()),inline:this.inlineEnabled}),D.keyBinding.addKeyboardHandler(this.keyboardHandler),this.popup.data.indexOf(P));P&&this.stickySelection?this.popup.setRow(this.autoSelect?P:-1):this.popup.setRow(this.autoSelect?0:-1),x?C||this.detach():(this.popup.setTheme(D.getTheme()),this.popup.setFontSize(D.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},O.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},O.prototype.changeListener=function(D){var C=this.editor.selection.lead;(C.row!=this.base.row||C.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},O.prototype.blurListener=function(D){var C=document.activeElement,x=this.editor.textInput.getElement(),P=D.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(D.relatedTarget),$=this.popup&&this.popup.container;C==x||C.parentNode==$||P||C==this.tooltipNode||D.relatedTarget==x||this.detach()},O.prototype.mousedownListener=function(D){this.detach()},O.prototype.mousewheelListener=function(D){this.popup.isMouseOver||this.detach()},O.prototype.mouseOutListener=function(D){this.popup.isOpen&&this.$updatePopupPosition()},O.prototype.goTo=function(D){this.popup.goTo(D)},O.prototype.insertMatch=function(D,C){var x;return!!(D=D||this.popup.getData(this.popup.getRow()))&&(D.value===""?this.detach():(x=this.completions,D=this.getCompletionProvider().insertMatch(this.editor,D,x.filterText,C),this.completions==x&&this.detach(),D))},O.prototype.showPopup=function(D,C){this.editor&&this.detach(),this.activated=!0,(this.editor=D).completer!=this&&(D.completer&&D.completer.detach(),D.completer=this),D.on("changeSelection",this.changeListener),D.on("blur",this.blurListener),D.on("mousedown",this.mousedownListener),D.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,C)},O.prototype.getCompletionProvider=function(D){return this.completionProvider||(this.completionProvider=new y(D)),this.completionProvider},O.prototype.gatherCompletions=function(D,C){return this.getCompletionProvider().gatherCompletions(D,C)},O.prototype.updateCompletions=function(D,C){var x,P;return D&&this.base&&this.completions?(x=this.editor.getCursorPosition(),(P=this.editor.session.getTextRange({start:this.base,end:x}))==this.completions.filterText?void 0:(this.completions.setFilter(P),this.completions.filtered.length&&(this.completions.filtered.length!=1||this.completions.filtered[0].value!=P||this.completions.filtered[0].snippet)?void this.openPopup(this.editor,P,D):this.detach())):C&&C.matches?(x=this.editor.getSelectionRange().start,this.base=this.editor.session.doc.createAnchor(x.row,x.column),this.base.$insertRight=!0,this.completions=new A(C.matches),this.openPopup(this.editor,"",D)):(C=this.editor.getSession(),x=this.editor.getCursorPosition(),P=v.getCompletionPrefix(this.editor),this.base=C.doc.createAnchor(x.row,x.column-P.length),this.base.$insertRight=!0,C={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption},this.getCompletionProvider({prefix:P,pos:x}).provideCompletions(this.editor,C,(function($,L,V){var H,Q=L.filtered,U=v.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),V){if(!Q.length)return(H=typeof(H=!this.autoShown&&this.emptyMessage)=="function"?this.emptyMessage(U):H)?(this.completions=new A([{caption:H,value:""}]),void this.openPopup(this.editor,U,D)):this.detach();if(Q.length==1&&Q[0].value==U&&!Q[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&Q.length==1)return this.insertMatch(Q[0])}this.completions=L,this.openPopup(this.editor,U,D),this.popup.renderer.setStyle("ace_loading",!V)}).bind(this)),void(this.autoShown||this.popup&&this.popup.isOpen||this.$firstOpenTimer.delay(this.stickySelectionDelay/2)))},O.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},O.prototype.updateDocTooltip=function(){var D=this.popup,C=this.completions.filtered,x=C&&(C[D.getHoveredRow()]||C[D.getRow()]),P=null;if(!x||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var $=this.editor.completers.length,L=0;L<$;L++){var V=this.editor.completers[L];if(V.getDocTooltip&&x.completerId===V.id){P=V.getDocTooltip(x);break}}if(!(P=typeof(P=P||typeof x=="string"?P:x)=="string"?{docText:P}:P)||!P.docHTML&&!P.docText)return this.hideDocTooltip();this.showDocTooltip(P)},O.prototype.showDocTooltip=function(x){this.tooltipNode||(this.tooltipNode=w.createElement("div"),this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"));var C=this.editor.renderer.theme,C=(this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(C.isDark?"ace_dark ":"")+(C.cssClass||""),this.tooltipNode),x=(x.docHTML?C.innerHTML=x.docHTML:x.docText&&(C.textContent=x.docText),C.parentNode||this.popup.container.appendChild(this.tooltipNode),this.popup),P=x.container.getBoundingClientRect();C.style.top=x.container.style.top,C.style.bottom=x.container.style.bottom,C.style.display="block",window.innerWidth-P.right<320?P.left<320?(x.isTopdown?C.style.top=P.bottom+"px":C.style.top=x.container.offsetTop-C.offsetHeight+"px",C.style.left=P.left+"px",C.style.right="",C.style.bottom=""):(C.style.right=window.innerWidth-P.left+"px",C.style.left=""):(C.style.left=P.right+1+"px",C.style.right="")},O.prototype.hideDocTooltip=function(){var D;this.tooltipTimer.cancel(),this.tooltipNode&&(D=this.tooltipNode,this.editor.isFocused()||document.activeElement!=D||this.editor.focus(),this.tooltipNode=null,D.parentNode)&&D.parentNode.removeChild(D)},O.prototype.onTooltipClick=function(D){for(var C=D.target;C&&C!=this.tooltipNode;){if(C.nodeName=="A"&&C.href){C.rel="noreferrer",C.target="_blank";break}C=C.parentNode}},O.prototype.destroy=function(){var D;this.detach(),this.popup&&(this.popup.destroy(),D=this.popup.container)&&D.parentNode&&D.parentNode.removeChild(D),this.editor&&this.editor.completer==this&&(this.editor.off("destroy",d),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},O);function O(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new h,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=m.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=m.delayedCall(this.updateDocTooltip.bind(this),50),this.stickySelectionTimer=m.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=m.delayedCall((function(){var D,C=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!C||(D=[{caption:T.nls("Loading..."),value:""}],this.completions=new A(D),this.openPopup(this.editor,C.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}I.prototype.commands={Up:function(D){D.completer.goTo("up")},Down:function(D){D.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(D){D.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(D){D.completer.goTo("end")},Esc:function(D){D.completer.detach()},Return:function(D){return D.completer.insertMatch()},"Shift-Return":function(D){D.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(D){var C=D.completer.insertMatch();if(C||D.tabstopManager)return C;D.completer.goTo("down")},PageUp:function(D){D.completer.popup.gotoPageUp()},PageDown:function(D){D.completer.popup.gotoPageDown()}},I.for=function(D){return D.completer instanceof I||(D.completer&&(D.completer.destroy(),D.completer=null),T.get("sharedPopups")?(I.$sharedInstance||(I.$sharedInstance=new I),D.completer=I.$sharedInstance):(D.completer=new I,D.once("destroy",d))),D.completer},I.startCommand={name:"startAutocomplete",exec:function(D,C){var x=I.for(D);x.autoInsert=!1,x.autoSelect=!0,x.autoShown=!1,x.showPopup(D,C),x.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"},_.prototype.insertByIndex=function(D,C,x){return!(!this.completions||!this.completions.filtered)&&this.insertMatch(D,this.completions.filtered[C],x)},_.prototype.insertMatch=function(D,C,x){if(!C)return!1;if(D.startOperation({command:{name:"insertMatch"}}),C.completer&&C.completer.insertMatch)C.completer.insertMatch(D,C);else{if(!this.completions)return!1;var P=this.completions.filterText.length,$=0;if(C.range&&C.range.start.row===C.range.end.row&&(P=(P-=this.initialPosition.prefix.length)+(this.initialPosition.pos.column-C.range.start.column),$+=C.range.end.column-this.initialPosition.pos.column),P||$)for(var L,V=D.selection.getAllRanges?D.selection.getAllRanges():[D.getSelectionRange()],H=0;L=V[H];H++)L.start.column-=P,L.end.column+=$,D.session.remove(L);C.snippet?k.insertSnippet(D,C.snippet):this.$insertString(D,C),C.command&&C.command==="startAutocomplete"&&D.execCommand(C.command)}return D.endOperation(),!0},_.prototype.$insertString=function(D,C){C=C.value||C,D.execCommand("insertstring",C)},_.prototype.gatherCompletions=function(D,C){var x=D.getSession(),P=D.getCursorPosition(),$=v.getCompletionPrefix(D),L=[],V=(this.completers=D.completers,D.completers.length);return D.completers.forEach(function(H,Q){H.getCompletions(D,x,P,$,function(U,K){H.hideInlinePreview&&(K=K.map(function(J){return Object.assign(J,{hideInlinePreview:H.hideInlinePreview})})),!U&&K&&(L=L.concat(K)),C(null,{prefix:v.getCompletionPrefix(D),matches:L,finished:--V==0})})}),!0},_.prototype.provideCompletions=function(D,C,x){var P=(function(V){var H=V.prefix,Q=V.matches;this.completions=new A(Q),C.exactMatch&&(this.completions.exactMatch=!0),C.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(H),(V.finished||this.completions.filtered.length)&&x(null,this.completions,V.finished)}).bind(this),$=!0,L=null;this.gatherCompletions(D,(function(V,H){this.active&&(V&&(x(V,[],!0),this.detach()),H.prefix.indexOf(H.prefix)===0)&&($?L=H:P(H))}).bind(this)),$=!1,L&&(D=L,L=null,P(D))},_.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(D){typeof D.cancel=="function"&&D.cancel()})};var y=_;function _(D){this.initialPosition=D,this.active=!0}R.prototype.setFilter=function(D){C=D.length>this.filterText&&D.lastIndexOf(this.filterText,0)===0?this.filtered:this.all,this.filterText=D,C=(C=this.filterCompletions(C,this.filterText)).sort(function(P,$){return $.exactMatch-P.exactMatch||$.$score-P.$score||(P.caption||P.value).localeCompare($.caption||$.value)});var C,x=null;C=C.filter(function(P){return P=P.snippet||P.caption||P.value,P!==x&&(x=P,!0)}),this.filtered=C},R.prototype.filterCompletions=function(D,C){var x=[],P=C.toUpperCase(),$=C.toLowerCase();e:for(var L,V=0;L=D[V];V++){var H=!this.ignoreCaption&&L.caption||L.value||L.snippet;if(H){var Q=-1,U=0,K=0;if(this.exactMatch){if(C!==H.substr(0,C.length))continue}else{var J=H.toLowerCase().indexOf($);if(-1<J)K=J;else for(var ue=0;ue<C.length;ue++){var ee=H.indexOf($[ue],Q+1),N=H.indexOf(P[ue],Q+1);if((ee=0<=ee&&(N<0||ee<N)?ee:N)<0)continue e;0<(N=ee-Q-1)&&(Q===-1&&(K+=10),K+=N,U|=1<<ue),Q=ee}}L.matchMask=U,L.exactMatch=K?0:1,L.$score=(L.score||0)-K,x.push(L)}}return x};var A=R;function R(D,C){this.all=D,this.filtered=D,this.filterText=C||"",this.exactMatch=!1,this.ignoreCaption=!1}u.Autocomplete=I,u.CompletionProvider=y,u.FilteredList=A}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(l,u,c){var d=l("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function f(g,b){var v=g.getTextRange(d.fromPoints({row:0,column:0},b)).split(h).length-1,m=g.getValue().split(h),w=Object.create(null),k=m[v];return m.forEach(function(T,S){T&&T!==k&&(S=Math.abs(v-S),S=m.length-S,w[T]?w[T]=Math.max(S,w[T]):w[T]=S)}),w}u.getCompletions=function(g,b,v,m,w){var k=f(b,v);w(null,Object.keys(k).map(function(T){return{caption:T,value:T,score:k[T],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(l,u,c){function d(D,C){O(C.session.$mode)}function h(D){var C=D.editor,x=C.completer&&C.completer.activated;D.command.name==="backspace"?x&&!w.getCompletionPrefix(C)&&C.completer.detach():D.command.name!=="insertstring"||x||((C=(f=D).editor.$liveAutocompletionDelay)?_.delay(C):A(D))}var f,g=l("../snippets").snippetManager,b=l("../autocomplete").Autocomplete,v=l("../config"),m=l("../lib/lang"),w=l("../autocomplete/util"),R=l("../autocomplete/text_completer"),k={getCompletions:function(D,C,x,P,$){if(C.$mode.completer)return C.$mode.completer.getCompletions(D,C,x,P,$);D=D.session.getState(x.row),$(null,C.$mode.getCompletions(D,C,x,P).map(function(L){return L.completerId=k.id,L}))},id:"keywordCompleter"},T={getCompletions:function(D,V,x,P,$){var L=[],V=V.getTokenAt(x.row,x.column),H=(V&&V.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?L.push("html-tag"):L=g.getActiveScopes(D),g.snippetMap),Q=[];L.forEach(function(U){for(var K=H[U]||[],J=K.length;J--;){var ue=K[J],ee=ue.name||ue.tabTrigger;ee&&Q.push({caption:ee,snippet:ue.content,meta:ue.tabTrigger&&!ue.name?ue.tabTrigger+"⇥ ":"snippet",completerId:T.id})}},this),$(null,Q)},getDocTooltip:function(D){var C;D.snippet&&!D.docHTML&&(D.docHTML=["<b>",m.escapeHTML(D.caption),"</b>","<hr></hr>",m.escapeHTML((D=D.snippet,C={},D.replace(/\${(\d+)(:(.*?))?}/g,function(x,P,$,L){return C[P]=L||""}).replace(/\$(\d+?)/g,function(x,P){return C[P]})))].join(""))},id:"snippetCompleter"},S=[T,R,k],I=(u.setCompleters=function(D){S.length=0,D&&S.push.apply(S,D)},u.addCompleter=function(D){S.push(D)},u.textCompleter=R,u.keyWordCompleter=k,u.snippetCompleter=T,{name:"expandSnippet",exec:function(D){return g.expandWithTab(D)},bindKey:"Tab"}),O=function(D){(D=typeof D=="string"?v.$modes[D]:D)&&(g.files||(g.files={}),y(D.$id,D.snippetFileId),D.modes)&&D.modes.forEach(O)},y=function(D,C){C&&D&&!g.files[D]&&(g.files[D]={},v.loadModule(C,function(x){x&&(!(g.files[D]=x).snippets&&x.snippetText&&(x.snippets=g.parseSnippetFile(x.snippetText)),g.register(x.snippets||[],x.scope),x.includeScopes)&&(g.snippetMap[x.scope].includeScopes=x.includeScopes,x.includeScopes.forEach(function(P){O("ace/mode/"+P)}))}))},_=m.delayedCall(function(){A(f)},0),A=function(C){var C=C.editor,x=w.getCompletionPrefix(C),P=w.triggerAutocomplete(C);(x&&x.length>=C.$liveAutocompletionThreshold||P)&&((x=b.for(C)).autoShown=!0,x.showPopup(C))},R=l("../editor").Editor;l("../config").defineOptions(R.prototype,"editor",{enableBasicAutocompletion:{set:function(D){D?(this.completers||(this.completers=Array.isArray(D)?D:S),this.commands.addCommand(b.startCommand)):this.commands.removeCommand(b.startCommand)},value:!1},enableLiveAutocompletion:{set:function(D){D?(this.completers||(this.completers=Array.isArray(D)?D:S),this.commands.on("afterExec",h)):this.commands.off("afterExec",h)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(D){D?(this.commands.addCommand(I),this.on("changeMode",d),d(0,this)):(this.commands.removeCommand(I),this.off("changeMode",d))},value:!1}})}),ace.require(["ace/ext/language_tools"],function(l){o&&(o.exports=l)})},3330:function(o,a,s){o=s.nmd(o),ace.define("ace/ext/searchbox-css",["require","exports","module"],function(l,u,c){c.exports=`
|
|
|
|
/* ------------------------------------------------------------------------------------------
|
|
* Editor Search Form
|
|
* --------------------------------------------------------------------------------------- */
|
|
.ace_search {
|
|
background-color: #ddd;
|
|
color: #666;
|
|
border: 1px solid #cbcbcb;
|
|
border-top: 0 none;
|
|
overflow: hidden;
|
|
margin: 0;
|
|
padding: 4px 6px 0 4px;
|
|
position: absolute;
|
|
top: 0;
|
|
z-index: 99;
|
|
white-space: normal;
|
|
}
|
|
.ace_search.left {
|
|
border-left: 0 none;
|
|
border-radius: 0px 0px 5px 0px;
|
|
left: 0;
|
|
}
|
|
.ace_search.right {
|
|
border-radius: 0px 0px 0px 5px;
|
|
border-right: 0 none;
|
|
right: 0;
|
|
}
|
|
|
|
.ace_search_form, .ace_replace_form {
|
|
margin: 0 20px 4px 0;
|
|
overflow: hidden;
|
|
line-height: 1.9;
|
|
}
|
|
.ace_replace_form {
|
|
margin-right: 0;
|
|
}
|
|
.ace_search_form.ace_nomatch {
|
|
outline: 1px solid red;
|
|
}
|
|
|
|
.ace_search_field {
|
|
border-radius: 3px 0 0 3px;
|
|
background-color: white;
|
|
color: black;
|
|
border: 1px solid #cbcbcb;
|
|
border-right: 0 none;
|
|
outline: 0;
|
|
padding: 0;
|
|
font-size: inherit;
|
|
margin: 0;
|
|
line-height: inherit;
|
|
padding: 0 6px;
|
|
min-width: 17em;
|
|
vertical-align: top;
|
|
min-height: 1.8em;
|
|
box-sizing: content-box;
|
|
}
|
|
.ace_searchbtn {
|
|
border: 1px solid #cbcbcb;
|
|
line-height: inherit;
|
|
display: inline-block;
|
|
padding: 0 6px;
|
|
background: #fff;
|
|
border-right: 0 none;
|
|
border-left: 1px solid #dcdcdc;
|
|
cursor: pointer;
|
|
margin: 0;
|
|
position: relative;
|
|
color: #666;
|
|
}
|
|
.ace_searchbtn:last-child {
|
|
border-radius: 0 3px 3px 0;
|
|
border-right: 1px solid #cbcbcb;
|
|
}
|
|
.ace_searchbtn:disabled {
|
|
background: none;
|
|
cursor: default;
|
|
}
|
|
.ace_searchbtn:hover {
|
|
background-color: #eef1f6;
|
|
}
|
|
.ace_searchbtn.prev, .ace_searchbtn.next {
|
|
padding: 0px 0.7em
|
|
}
|
|
.ace_searchbtn.prev:after, .ace_searchbtn.next:after {
|
|
content: "";
|
|
border: solid 2px #888;
|
|
width: 0.5em;
|
|
height: 0.5em;
|
|
border-width: 2px 0 0 2px;
|
|
display:inline-block;
|
|
transform: rotate(-45deg);
|
|
}
|
|
.ace_searchbtn.next:after {
|
|
border-width: 0 2px 2px 0 ;
|
|
}
|
|
.ace_searchbtn_close {
|
|
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
|
|
border-radius: 50%;
|
|
border: 0 none;
|
|
color: #656565;
|
|
cursor: pointer;
|
|
font: 16px/16px Arial;
|
|
padding: 0;
|
|
height: 14px;
|
|
width: 14px;
|
|
top: 9px;
|
|
right: 7px;
|
|
position: absolute;
|
|
}
|
|
.ace_searchbtn_close:hover {
|
|
background-color: #656565;
|
|
background-position: 50% 100%;
|
|
color: white;
|
|
}
|
|
|
|
.ace_button {
|
|
margin-left: 2px;
|
|
cursor: pointer;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-o-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
overflow: hidden;
|
|
opacity: 0.7;
|
|
border: 1px solid rgba(100,100,100,0.23);
|
|
padding: 1px;
|
|
box-sizing: border-box!important;
|
|
color: black;
|
|
}
|
|
|
|
.ace_button:hover {
|
|
background-color: #eee;
|
|
opacity:1;
|
|
}
|
|
.ace_button:active {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
.ace_button.checked {
|
|
border-color: #3399ff;
|
|
opacity:1;
|
|
}
|
|
|
|
.ace_search_options{
|
|
margin-bottom: 3px;
|
|
text-align: right;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-o-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
clear: both;
|
|
}
|
|
|
|
.ace_search_counter {
|
|
float: left;
|
|
font-family: arial;
|
|
padding: 0 8px;
|
|
}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(l,u,c){var d=l("../lib/dom"),h=l("../lib/lang"),f=l("../lib/event"),g=l("./searchbox-css"),b=l("../keyboard/hash_handler").HashHandler,v=l("../lib/keys"),m=l("../config").nls,w=(d.importCssString(g,"ace_searchbox",!1),k.prototype.setEditor=function(T){T.searchBox=this,T.renderer.scroller.appendChild(this.element),this.editor=T},k.prototype.setSession=function(T){this.searchRange=null,this.$syncOptions(!0)},k.prototype.$initElements=function(T){this.searchBox=T.querySelector(".ace_search_form"),this.replaceBox=T.querySelector(".ace_replace_form"),this.searchOption=T.querySelector("[action=searchInSelection]"),this.replaceOption=T.querySelector("[action=toggleReplace]"),this.regExpOption=T.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=T.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=T.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=T.querySelector(".ace_search_counter")},k.prototype.$init=function(){var T=this.element,S=(this.$initElements(T),this);f.addListener(T,"mousedown",function(I){setTimeout(function(){S.activeInput.focus()},0),f.stopPropagation(I)}),f.addListener(T,"click",function(I){var O=(I.target||I.srcElement).getAttribute("action");O&&S[O]?S[O]():S.$searchBarKb.commands[O]&&S.$searchBarKb.commands[O].exec(S),f.stopPropagation(I)}),f.addCommandKeyListener(T,function(I,O,y){y=v.keyCodeToString(y),O=S.$searchBarKb.findKeyCommand(O,y),O&&O.exec&&(O.exec(S),f.stopEvent(I))}),this.$onChange=h.delayedCall(function(){S.find(!1,!1)}),f.addListener(this.searchInput,"input",function(){S.$onChange.schedule(20)}),f.addListener(this.searchInput,"focus",function(){S.activeInput=S.searchInput,S.searchInput.value&&S.highlight()}),f.addListener(this.replaceInput,"focus",function(){S.activeInput=S.replaceInput,S.searchInput.value&&S.highlight()})},k.prototype.setSearchRange=function(T){(this.searchRange=T)?this.searchRangeMarker=this.editor.session.addMarker(T,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},k.prototype.$syncOptions=function(T){d.setCssClass(this.replaceOption,"checked",this.searchRange),d.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",d.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),d.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),d.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var S=this.editor.getReadOnly();this.replaceOption.style.display=S?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!S?"":"none",this.find(!1,!1,T)},k.prototype.highlight=function(T){this.editor.session.highlight(T||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},k.prototype.find=function(T,S,I){T=!this.editor.find(this.searchInput.value,{skipCurrent:T,backwards:S,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:I,range:this.searchRange})&&this.searchInput.value,d.setCssClass(this.searchBox,"ace_nomatch",T),this.editor._emit("findSearchBox",{match:!T}),this.highlight(),this.updateCounter()},k.prototype.updateCounter=function(){var T=this.editor,S=T.$search.$options.re,I=0,O=0;if(S){var y,_,A=this.searchRange?T.session.getTextRange(this.searchRange):T.getValue(),R=T.session.doc.positionToIndex(T.selection.anchor);for(this.searchRange&&(R-=T.session.doc.positionToIndex(this.searchRange.start)),S.lastIndex=0;(_=S.exec(A))&&((y=_.index)<=R&&O++,!(999<++I))&&(_[0]||(S.lastIndex=y+=1,!(y>=A.length))););}this.searchCounter.textContent=m("$0 of $1",[O,999<I?"999+":I])},k.prototype.findNext=function(){this.find(!0,!1)},k.prototype.findPrev=function(){this.find(!0,!0)},k.prototype.findAll=function(){var T=!this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked})&&this.searchInput.value;d.setCssClass(this.searchBox,"ace_nomatch",T),this.editor._emit("findSearchBox",{match:!T}),this.highlight(),this.hide()},k.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},k.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},k.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},k.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},k.prototype.show=function(T,S){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=S,T&&(this.searchInput.value=T),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},k.prototype.isFocused=function(){var T=document.activeElement;return T==this.searchInput||T==this.replaceInput},k);function k(T,S,I){var O=d.createElement("div");d.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:m("Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},""],["span",{action:"findNext",class:"ace_searchbtn next"},""],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},m("All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:m("Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},m("Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},m("All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:m("Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:m("RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:m("CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:m("Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:m("Search In Selection")},"S"]]],O),this.element=O.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(T),d.importCssString(g,"ace_searchbox",T.container)}l=new b,l.bindKeys({"Ctrl-f|Command-f":function(T){var S=T.isReplace=!T.isReplace;T.replaceBox.style.display=S?"":"none",T.replaceOption.checked=!1,T.$syncOptions(),T.searchInput.focus()},"Ctrl-H|Command-Option-F":function(T){T.editor.getReadOnly()||(T.replaceOption.checked=!0,T.$syncOptions(),T.replaceInput.focus())},"Ctrl-G|Command-G":function(T){T.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(T){T.findPrev()},esc:function(T){setTimeout(function(){T.hide()})},Return:function(T){T.activeInput==T.replaceInput&&T.replace(),T.findNext()},"Shift-Return":function(T){T.activeInput==T.replaceInput&&T.replace(),T.findPrev()},"Alt-Return":function(T){T.activeInput==T.replaceInput&&T.replaceAll(),T.findAll()},Tab:function(T){(T.activeInput==T.replaceInput?T.searchInput:T.replaceInput).focus()}}),l.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(T){T.regExpOption.checked=!T.regExpOption.checked,T.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(T){T.caseSensitiveOption.checked=!T.caseSensitiveOption.checked,T.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(T){T.wholeWordOption.checked=!T.wholeWordOption.checked,T.$syncOptions()}},{name:"toggleReplace",exec:function(T){T.replaceOption.checked=!T.replaceOption.checked,T.$syncOptions()}},{name:"searchInSelection",exec:function(T){T.searchOption.checked=!T.searchRange,T.setSearchRange(T.searchOption.checked&&T.editor.getSelectionRange()),T.$syncOptions()}}]),b=new b([{bindKey:"Esc",name:"closeSearchBar",exec:function(T){T.searchBox.hide()}}]),w.prototype.$searchBarKb=l,w.prototype.$closeSearchBarKb=b,u.SearchBox=w,u.Search=function(T,S){(T.searchBox||new w(T)).show(T.session.getTextRange(),S)}}),ace.require(["ace/ext/searchbox"],function(l){o&&(o.exports=l)})},4091:function(o,a,s){o=s.nmd(o),ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(f,u,c){function d(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}}var h=f("../lib/oop"),f=f("./text_highlight_rules").TextHighlightRules;h.inherits(d,f),u.JsonHighlightRules=d}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(l,u,c){function d(){}var h=l("../range").Range;(function(){this.checkOutdent=function(f,g){return!!/^\s+$/.test(f)&&/^\s*\}/.test(g)},this.autoOutdent=function(f,g){var b,v=f.getLine(g).match(/^(\s*\})/);return v&&(v=v[1].length,b=f.findMatchingBracket({row:g,column:v}))&&b.row!=g?(b=this.$getIndent(f.getLine(b.row)),void f.replace(new h(g,0,g,v-1),b)):0},this.$getIndent=function(f){return f.match(/^\s*/)[0]}}).call(d.prototype),u.MatchingBraceOutdent=d}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(f,g,c){var d=f("../../lib/oop"),h=f("../../range").Range,f=f("./fold_mode").FoldMode,g=g.FoldMode=function(b){b&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+b.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+b.end)))};d.inherits(g,f),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(b,v,m){var w=b.getLine(m);return!this.singleLineBlockCommentRe.test(w)||this.startRegionRe.test(w)||this.tripleStarBlockCommentRe.test(w)?!(b=this._getFoldWidgetBase(b,v,m))&&this.startRegionRe.test(w)?"start":b:""},this.getFoldWidgetRange=function(b,v,m,w){var k,T,S,I=b.getLine(m);return this.startRegionRe.test(I)?this.getCommentRegionBlock(b,I,m):(T=I.match(this.foldingStartMarker))?(S=T.index,T[1]?this.openingBracketBlock(b,T[1],m,S):((k=b.getCommentFoldRange(m,S+T[0].length,1))&&!k.isMultiLine()&&(w?k=this.getSectionRange(b,m):v!="all"&&(k=null)),k)):v!=="markbegin"&&(T=I.match(this.foldingStopMarker))?(S=T.index+T[0].length,T[1]?this.closingBracketBlock(b,T[1],m,S):b.getCommentFoldRange(m,S,-1)):void 0},this.getSectionRange=function(b,v){for(var m=(I=b.getLine(v)).search(/\S/),w=v,k=I.length,T=v+=1,S=b.getLength();++v<S;){var I,O=(I=b.getLine(v)).search(/\S/);if(O!==-1){if(O<m)break;var y=this.getFoldWidgetRange(b,"all",v);if(y){if(y.start.row<=w)break;if(y.isMultiLine())v=y.end.row;else if(m==O)break}T=v}}return new h(w,k,T,b.getLine(T).length)},this.getCommentRegionBlock=function(b,v,m){for(var w=v.search(/\s*$/),k=b.getLength(),T=m,S=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,I=1;++m<k;){v=b.getLine(m);var O=S.exec(v);if(O&&(O[1]?I--:I++,!I))break}if(T<m)return new h(T,w,m,v.length)}}).call(g.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(l,u,c){function d(){this.HighlightRules=g,this.$outdent=new b,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new v}var h=l("../lib/oop"),f=l("./text").Mode,g=l("./json_highlight_rules").JsonHighlightRules,b=l("./matching_brace_outdent").MatchingBraceOutdent,v=l("./folding/cstyle").FoldMode,m=l("../worker/worker_client").WorkerClient;h.inherits(d,f),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(w,k,T){var S=this.$getIndent(k);return w=="start"&&k.match(/^.*[\{\(\[]\s*$/)&&(S+=T),S},this.checkOutdent=function(w,k,T){return this.$outdent.checkOutdent(k,T)},this.autoOutdent=function(w,k,T){this.$outdent.autoOutdent(k,T)},this.createWorker=function(w){var k=new m(["ace"],"ace/mode/json_worker","JsonWorker");return k.attachToDocument(w.getDocument()),k.on("annotate",function(T){w.setAnnotations(T.data)}),k.on("terminate",function(){w.clearAnnotations()}),k},this.$id="ace/mode/json"}).call(d.prototype),u.Mode=d}),ace.require(["ace/mode/json"],function(l){o&&(o.exports=l)})},8903:function(m,a,s){var l=s(5689),u=s(3969),c=s(5255),d=s(4293),h=s(3508),f=s(3368),g=s(742),b=s(9394),v=s(3724),m=((m.exports=S).prototype.validate=function(C,x){var P;if(typeof C=="string"){if(!(P=this.getSchema(C)))throw new Error('no schema with key or ref "'+C+'"')}else C=this._addSchema(C),P=C.validate||this._compile(C);return C=P(x),P.$async!==!0&&(this.errors=P.errors),C},S.prototype.compile=function(C,x){return C=this._addSchema(C,void 0,x),C.validate||this._compile(C)},S.prototype.addSchema=function(C,x,P,$){if(Array.isArray(C))for(var L=0;L<C.length;L++)this.addSchema(C[L],void 0,P,$);else{var V=this._getId(C);if(V!==void 0&&typeof V!="string")throw new Error("schema id must be string");R(this,x=u.normalizeId(x||V)),this._schemas[x]=this._addSchema(C,P,$,!0)}return this},S.prototype.addMetaSchema=function(C,x,P){return this.addSchema(C,x,P,!0),this},S.prototype.validateSchema=function(C,x){var P=C.$schema;if(P!==void 0&&typeof P!="string")throw new Error("$schema must be a string");if(!(P=P||this._opts.defaultMeta||function($){var L=$._opts.meta;return $._opts.defaultMeta=typeof L=="object"?$._getId(L)||L:$.getSchema(w)?w:void 0,$._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),!(this.errors=null);if(P=this.validate(P,C),!P&&x){if(C="schema is invalid: "+this.errorsText(),this._opts.validateSchema!="log")throw new Error(C);this.logger.error(C)}return P},S.prototype.getSchema=function(C){var x=I(this,C);switch(typeof x){case"object":return x.validate||this._compile(x);case"string":return this.getSchema(x);case"undefined":return function(P,$){var L=u.schema.call(P,{schema:{}},$);{var V,H,Q;if(L)return V=L.schema,H=L.root,L=L.baseId,Q=l.call(P,V,H,void 0,L),P._fragments[$]=new d({ref:$,fragment:!0,schema:V,root:H,baseId:L,validate:Q}),Q}}(this,C)}},S.prototype.removeSchema=function(C){if(C instanceof RegExp)O(this,this._schemas,C),O(this,this._refs,C);else switch(typeof C){case"undefined":return O(this,this._schemas),O(this,this._refs),this._cache.clear(),this;case"string":var x=I(this,C);return x&&this._cache.del(x.cacheKey),delete this._schemas[C],delete this._refs[C],this;case"object":x=this._opts.serialize,x=x?x(C):C,x=(this._cache.del(x),this._getId(C)),x&&(x=u.normalizeId(x),delete this._schemas[x],delete this._refs[x])}return this},S.prototype.addFormat=function(C,x){return typeof x=="string"&&(x=new RegExp(x)),this._formats[C]=x,this},S.prototype.errorsText=function(C,x){if(!(C=C||this.errors))return"No errors";for(var P=(x=x||{}).separator===void 0?", ":x.separator,$=x.dataVar===void 0?"data":x.dataVar,L="",V=0;V<C.length;V++){var H=C[V];H&&(L+=$+H.dataPath+" "+H.message+P)}return L.slice(0,-P.length)},S.prototype._addSchema=function(C,Q,P,$){if(typeof C!="object"&&typeof C!="boolean")throw new Error("schema should be object or boolean");var L=this._opts.serialize,L=L?L(C):C,V=this._cache.get(L);if(V)return V;$=$||this._opts.addUsedSchema!==!1,V=u.normalizeId(this._getId(C)),V&&$&&R(this,V);var H,Q=this._opts.validateSchema!==!1&&!Q;Q&&!(H=V&&V==u.normalizeId(C.$schema))&&this.validateSchema(C,!0);var U=u.ids.call(this,C),U=new d({id:V,schema:C,localRefs:U,cacheKey:L,meta:P});return V[0]!="#"&&$&&(this._refs[V]=U),this._cache.put(L,U),Q&&H&&this.validateSchema(C,!0),U},S.prototype._compile=function(C,x){if(C.compiling)return(C.validate=L).schema=C.schema,L.errors=null,L.root=x||L,C.schema.$async===!0&&(L.$async=!0),L;var P,$;C.compiling=!0,C.meta&&(P=this._opts,this._opts=this._metaOpts);try{$=l.call(this,C.schema,x,C.localRefs)}catch(V){throw delete C.validate,V}finally{C.compiling=!1,C.meta&&(this._opts=P)}return C.validate=$,C.refs=$.refs,C.refVal=$.refVal,C.root=$.root,$;function L(){var V=C.validate,H=V.apply(this,arguments);return L.errors=V.errors,H}},S.prototype.compileAsync=s(9677),s(7931)),m=(S.prototype.addKeyword=m.add,S.prototype.getKeyword=m.get,S.prototype.removeKeyword=m.remove,S.prototype.validateKeyword=m.validate,s(5359)),w=(S.ValidationError=m.Validation,S.MissingRefError=m.MissingRef,S.$dataMetaSchema=b,"http://json-schema.org/draft-07/schema"),k=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],T=["/properties"];function S(C){if(!(this instanceof S))return new S(C);C=this._opts=v.copy(C)||{};var K=this,x=K._opts.logger;if(x===!1)K.logger={log:D,warn:D,error:D};else{if(!(typeof(x=x===void 0?console:x)=="object"&&x.log&&x.warn&&x.error))throw new Error("logger must implement log, warn and error methods");K.logger=x}if(this._schemas={},this._refs={},this._fragments={},this._formats=f(C.format),this._cache=C.cache||new c,this._loadingSchemas={},this._compilations=[],this.RULES=g(),this._getId=function(N){switch(N.schemaId){case"auto":return A;case"id":return y;default:return _}}(C),C.loopRequired=C.loopRequired||1/0,C.errorDataPath=="property"&&(C._errorDataPathProperty=!0),C.serialize===void 0&&(C.serialize=h),this._metaOpts=function(N){for(var q=v.copy(N._opts),G=0;G<k.length;G++)delete q[k[G]];return q}(this),C.formats){var P,$=this;for(P in $._opts.formats){var L=$._opts.formats[P];$.addFormat(P,L)}}if(C.keywords){var V,H=this;for(V in H._opts.keywords){var Q=H._opts.keywords[V];H.addKeyword(V,Q)}}var U,K=this,J=(K._opts.$data&&(U=s(894),K.addMetaSchema(U,U.$id,!0)),K._opts.meta!==!1&&(U=s(6680),K._opts.$data&&(U=b(U,T)),K.addMetaSchema(U,w,!0),K._refs["http://json-schema.org/schema"]=w),typeof C.meta=="object"&&this.addMetaSchema(C.meta),C.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),this),ue=J._opts.schemas;if(ue)if(Array.isArray(ue))J.addSchema(ue);else for(var ee in ue)J.addSchema(ue[ee],ee)}function I(C,x){return x=u.normalizeId(x),C._schemas[x]||C._refs[x]||C._fragments[x]}function O(C,x,P){for(var $ in x){var L=x[$];L.meta||P&&!P.test($)||(C._cache.del(L.cacheKey),delete x[$])}}function y(C){return C.$id&&this.logger.warn("schema $id ignored",C.$id),C.id}function _(C){return C.id&&this.logger.warn("schema id ignored",C.id),C.$id}function A(C){if(C.$id&&C.id&&C.$id!=C.id)throw new Error("schema $id is different from id");return C.$id||C.id}function R(C,x){if(C._schemas[x]||C._refs[x])throw new Error('schema with key or id "'+x+'" already exists')}function D(){}},5255:function(o){o=o.exports=function(){this._cache={}},o.prototype.put=function(a,s){this._cache[a]=s},o.prototype.get=function(a){return this._cache[a]},o.prototype.del=function(a){delete this._cache[a]},o.prototype.clear=function(){this._cache={}}},9677:function(o,a,s){var l=s(5359).MissingRef;function u(c,d,h){var f=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof d=="function"&&(h=d,d=void 0);var g=b(c).then(function(){var v=f._addSchema(c,void 0,d);return v.validate||function m(w){try{return f._compile(w)}catch(T){if(T instanceof l)return k(T);throw T}function k(T){var S=T.missingSchema;if(O(S))throw new Error("Schema "+S+" is loaded but "+T.missingRef+" cannot be resolved");return T=f._loadingSchemas[S],T||(T=f._loadingSchemas[S]=f._opts.loadSchema(S)).then(I,I),T.then(function(y){if(!O(S))return b(y).then(function(){O(S)||f.addSchema(y,S,void 0,d)})}).then(function(){return m(w)});function I(){delete f._loadingSchemas[S]}function O(y){return f._refs[y]||f._schemas[y]}}}(v)});return h&&g.then(function(v){h(null,v)},h),g;function b(v){return v=v.$schema,v&&!f.getSchema(v)?u.call(f,{$ref:v},!0):Promise.resolve()}}o.exports=u},5359:function(o,a,s){var l=s(3969);function u(d,h,f){this.message=f||u.message(d,h),this.missingRef=l.url(d,h),this.missingSchema=l.normalizeId(l.fullPath(this.missingRef))}function c(d){return d.prototype=Object.create(Error.prototype),d.prototype.constructor=d}o.exports={Validation:c(function(d){this.message="validation failed",this.errors=d,this.ajv=this.validation=!0}),MissingRef:c(u)},u.message=function(d,h){return"can't resolve reference "+h+" from id "+d}},3368:function(o,a,h){var l=h(3724),u=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,c=[0,31,28,31,30,31,30,31,31,30,31,30,31],d=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,h=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,f=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,g=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,b=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,v=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,m=/^(?:\/(?:[^~/]|~0|~1)*)*$/,w=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,k=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function T(R){return l.copy(T[R=R=="full"?"full":"fast"])}function S(x){var D,C,x=x.match(u);return!!x&&(D=+x[1],C=+x[2],x=+x[3],1<=C)&&C<=12&&1<=x&&x<=(C!=2||(x=D)%4!=0||x%100==0&&x%400!=0?c[C]:29)}function I($,D){var C,x,P,$=$.match(d);return!!$&&(C=$[1],x=$[2],P=$[3],$=$[5],C<=23&&x<=59&&P<=59||C==23&&x==59&&P==60)&&(!D||$)}(o.exports=T).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":g,url:b,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:h,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:A,uuid:v,"json-pointer":m,"json-pointer-uri-fragment":w,"relative-json-pointer":k},T.full={date:S,time:I,"date-time":function(R){return R=R.split(O),R.length==2&&S(R[0])&&I(R[1],!0)},uri:function(R){return y.test(R)&&f.test(R)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":g,url:b,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:h,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:A,uuid:v,"json-pointer":m,"json-pointer-uri-fragment":w,"relative-json-pointer":k};var O=/t|\s/i,y=/\/|:/,_=/[^\\]\\Z/;function A(R){if(_.test(R))return!1;try{return new RegExp(R),!0}catch{return!1}}},5689:function(o,a,s){var l=s(3969),u=s(3724),c=s(5359),d=s(3508),h=s(1869),f=u.ucs2length,g=s(2303),b=c.Validation;function v(O,y,_,A){var R=this,D=this._opts,C=[void 0],x={},P=[],$={},L=[],V={},H=[],Q=(y=y||{schema:O,refVal:C,refs:x},(function(ae,be,ie){var ce=m.call(this,ae,be,ie);return 0<=ce?{index:ce,compiling:!0}:(ce=this._compilations.length,this._compilations[ce]={schema:ae,root:be,baseId:ie},{index:ce,compiling:!1})}).call(this,O,y,A)),U=this._compilations[Q.index];if(Q.compiling)return U.callValidate=N;var K=this._formats,J=this.RULES;try{var ue=q(O,y,_,A),ee=(U.validate=ue,U.callValidate);return ee&&(ee.schema=ue.schema,ee.errors=null,ee.refs=ue.refs,ee.refVal=ue.refVal,ee.root=ue.root,ee.$async=ue.$async,D.sourceCode)&&(ee.source=ue.source),ue}finally{(function(ae,be,ie){ae=m.call(this,ae,be,ie),0<=ae&&this._compilations.splice(ae,1)}).call(this,O,y,A)}function N(){var ae=U.validate,be=ae.apply(this,arguments);return N.errors=ae.errors,be}function q(ae,be,ie,ce){var pe=!be||be.schema==ae;if(be.schema!=y.schema)return v.call(R,ae,be,ie,ce);ie=ae.$async===!0,ce=h({isTop:!0,schema:ae,isRoot:pe,baseId:ce,root:be,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:c.MissingRef,RULES:J,validate:h,util:u,resolve:l,resolveRef:G,usePattern:oe,useDefault:ve,useCustomRule:de,opts:D,formats:K,logger:R.logger,self:R}),ce=I(C,T)+I(P,w)+I(L,k)+I(H,S)+ce,D.processCode&&(ce=D.processCode(ce,ae));try{var X=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",ce)(R,J,K,y,C,L,H,g,f,b);C[0]=X}catch(Z){throw R.logger.error("Error compiling schema, function code:",ce),Z}return X.schema=ae,X.errors=null,X.refs=x,X.refVal=C,X.root=pe?X:be,ie&&(X.$async=!0),D.sourceCode===!0&&(X.source={code:ce,patterns:P,defaults:L}),X}function G(ae,be,Z){be=l.url(ae,be);var ce=x[be];if(ce!==void 0)return le(pe=C[ce],X="refVal["+ce+"]");if(!Z&&y.refs&&(ce=y.refs[be],ce!==void 0))return le(pe=y.refVal[ce],X=ne(be,pe));var pe,X=ne(be),Z=l.call(R,q,y,be);if((Z=Z===void 0&&(ce=_&&_[be])?l.inlineRef(ce,D.inlineRefs)?ce:v.call(R,ce,y,_,ae):Z)!==void 0)return pe=Z,ce=x[ce=be],C[ce]=pe,le(Z,X);delete x[be]}function ne(ae,be){var ie=C.length;return C[ie]=be,"refVal"+(x[ae]=ie)}function le(ae,be){return typeof ae=="object"||typeof ae=="boolean"?{code:be,schema:ae,inline:!0}:{code:be,$async:ae&&!!ae.$async}}function oe(ae){var be=$[ae];return be===void 0&&(be=$[ae]=P.length,P[be]=ae),"pattern"+be}function ve(ae){switch(typeof ae){case"boolean":case"number":return""+ae;case"string":return u.toQuotedString(ae);case"object":var be,ie;return ae===null?"null":(be=d(ae),(ie=V[be])===void 0&&(ie=V[be]=L.length,L[ie]=ae),"default"+ie)}}function de(ae,be,ie,ce){if(R._opts.validateSchema!==!1){var X=ae.definition.dependencies;if(X&&!X.every(function(fe){return Object.prototype.hasOwnProperty.call(ie,fe)}))throw new Error("parent schema must have all required keywords: "+X.join(","));if(X=ae.definition.validateSchema,X&&!X(be)){if(X="keyword schema is invalid: "+R.errorsText(X.errors),R._opts.validateSchema!="log")throw new Error(X);R.logger.error(X)}}var pe,X=ae.definition.compile,Z=ae.definition.inline,Y=ae.definition.macro;if(X)pe=X.call(R,be,ie,ce);else if(Y)pe=Y.call(R,be,ie,ce),D.validateSchema!==!1&&R.validateSchema(pe,!0);else if(Z)pe=Z.call(R,ce,ae.keyword,be,ie);else if(!(pe=ae.definition.validate))return;if(pe===void 0)throw new Error('custom keyword "'+ae.keyword+'"failed to compile');return X=H.length,{code:"customRule"+X,validate:H[X]=pe}}}function m(O,y,_){for(var A=0;A<this._compilations.length;A++){var R=this._compilations[A];if(R.schema==O&&R.root==y&&R.baseId==_)return A}return-1}function w(O,y){return"var pattern"+O+" = new RegExp("+u.toQuotedString(y[O])+");"}function k(O){return"var default"+O+" = defaults["+O+"];"}function T(O,y){return y[O]===void 0?"":"var refVal"+O+" = refVal["+O+"];"}function S(O){return"var customRule"+O+" = customRules["+O+"];"}function I(O,y){if(!O.length)return"";for(var _="",A=0;A<O.length;A++)_+=y(A,O);return _}o.exports=v},3969:function(o,a,s){var l=s(7533),u=s(2303),c=s(3724),d=s(4293),h=s(500);function f(y,_,A){var R,D,C,x=this._refs[A];if(typeof x=="string"){if(!this._refs[x])return f.call(this,y,_,x);x=this._refs[x]}return(x=x||this._schemas[A])instanceof d?w(x.schema,this._opts.inlineRefs)?x.schema:x.validate||this._compile(x):((x=g.call(this,_,A))&&(R=x.schema,_=x.root,C=x.baseId),R instanceof d?D=R.validate||y.call(this,R.schema,_,void 0,C):R!==void 0&&(D=w(R,this._opts.inlineRefs)?R:y.call(this,R,_,void 0,C)),D)}function g(y,_){var A=l.parse(_),R=T(A),D=k(this._getId(y.schema));if(Object.keys(y.schema).length===0||R!==D){var R=I(R),C=this._refs[R];if(typeof C=="string")return(function(P,$,L){$=g.call(this,P,$);{var V,H;if($)return V=$.schema,H=$.baseId,P=$.root,($=this._getId(V))&&(H=O(H,$)),v.call(this,L,H,V,P)}}).call(this,y,C,A);if(C instanceof d)C.validate||this._compile(C);else{if(!((C=this._schemas[R])instanceof d))return;if(C.validate||this._compile(C),R==I(_))return{schema:C,root:y,baseId:D}}if(!(y=C).schema)return;D=k(this._getId(y.schema))}return v.call(this,A,D,y.schema,y)}(o.exports=f).normalizeId=I,f.fullPath=k,f.url=O,f.ids=function(y){var _=I(this._getId(y)),A={"":_},R={"":k(_,!1)},D={},C=this;return h(y,{allKeys:!0},function(x,P,$,L,V,H,Q){if(P!==""){var U=C._getId(x),K=A[L],L=R[L]+"/"+V;if(Q!==void 0&&(L+="/"+(typeof Q=="number"?Q:c.escapeFragment(Q))),typeof U=="string"){if(U=K=I(K?l.resolve(K,U):U),V=C._refs[U],(V=typeof V=="string"?C._refs[V]:V)&&V.schema){if(!u(x,V.schema))throw new Error('id "'+U+'" resolves to more than one schema')}else if(U!=I(L))if(U[0]=="#"){if(D[U]&&!u(x,D[U]))throw new Error('id "'+U+'" resolves to more than one schema');D[U]=x}else C._refs[U]=L}A[P]=K,R[P]=L}}),D},f.inlineRef=w,f.schema=g;var b=c.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function v(y,_,A,R){if(y.fragment=y.fragment||"",y.fragment.slice(0,1)=="/"){for(var D=y.fragment.split("/"),C=1;C<D.length;C++){var x=D[C];if(x){if((A=A[x=c.unescapeFragment(x)])===void 0)break;b[x]||((x=this._getId(A))&&(_=O(_,x)),A.$ref&&(x=O(_,A.$ref),x=g.call(this,R,x))&&(A=x.schema,R=x.root,_=x.baseId))}}return A!==void 0&&A!==R.schema?{schema:A,root:R,baseId:_}:void 0}}var m=c.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function w(y,_){return _!==!1&&(_===void 0||_===!0?function A(R){var D;if(Array.isArray(R)){for(var C=0;C<R.length;C++)if(typeof(D=R[C])=="object"&&!A(D))return!1}else for(var x in R)if(x=="$ref"||typeof(D=R[x])=="object"&&!A(D))return!1;return!0}(y):_?function A(R){var D,C=0;if(Array.isArray(R)){for(var x=0;x<R.length;x++)if(typeof(D=R[x])=="object"&&(C+=A(D)),C==1/0)return 1/0}else for(var P in R){if(P=="$ref")return 1/0;if(m[P])C++;else if(typeof(D=R[P])=="object"&&(C+=A(D)+1),C==1/0)return 1/0}return C}(y)<=_:void 0)}function k(y,_){return _!==!1&&(y=I(y)),T(l.parse(y))}function T(y){return l.serialize(y).split("#")[0]+"#"}var S=/#\/?$/;function I(y){return y?y.replace(S,""):""}function O(y,_){return _=I(_),l.resolve(y,_)}},742:function(o,a,s){var l=s(9646),u=s(3724).toHash;o.exports=function(){var c=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],d=["type","$comment"];return c.all=u(d),c.types=u(["number","integer","string","array","object","boolean","null"]),c.forEach(function(h){h.rules=h.rules.map(function(f){var g,b;return typeof f=="object"&&(b=f[g=Object.keys(f)[0]],f=g,b.forEach(function(v){d.push(v),c.all[v]=!0})),d.push(f),c.all[f]={keyword:f,code:l[f],implements:b}}),c.all.$comment={keyword:"$comment",code:l.$comment},h.type&&(c.types[h.type]=h)}),c.keywords=u(d.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),c.custom={},c}},4293:function(o,a,s){var l=s(3724);o.exports=function(u){l.copy(u,this)}},6887:function(o){o.exports=function(a){for(var s,l=0,u=a.length,c=0;c<u;)l++,55296<=(s=a.charCodeAt(c++))&&s<=56319&&c<u&&(64512&a.charCodeAt(c))==56320&&c++;return l}},3724:function(o,a,s){function l(S,I,O,y){var _=y?" !== ":" === ",A=y?" || ":" && ",R=y?"!":"",D=y?"":"!";switch(S){case"null":return I+_+"null";case"array":return R+"Array.isArray("+I+")";case"object":return"("+R+I+A+"typeof "+I+_+'"object"'+A+D+"Array.isArray("+I+"))";case"integer":return"(typeof "+I+_+'"number"'+A+D+"("+I+" % 1)"+A+I+_+I+(O?A+R+"isFinite("+I+")":"")+")";case"number":return"(typeof "+I+_+'"'+S+'"'+(O?A+R+"isFinite("+I+")":"")+")";default:return"typeof "+I+_+'"'+S+'"'}}o.exports={copy:function(S,I){for(var O in I=I||{},S)I[O]=S[O];return I},checkDataType:l,checkDataTypes:function(S,I,O){{if(S.length===1)return l(S[0],I,O,!0);var y,_="",S=c(S);for(y in S.array&&S.object&&(_=S.null?"(":"(!"+I+" || ",_+="typeof "+I+' !== "object")',delete S.null,delete S.array,delete S.object),S.number&&delete S.integer,S)_+=(_?" && ":"")+l(y,I,O,!0);return _}},coerceToTypes:function(S,I){{if(!Array.isArray(I))return u[I]?[I]:S==="array"&&I==="array"?["array"]:void 0;for(var O=[],y=0;y<I.length;y++){var _=I[y];(u[_]||S==="array"&&_==="array")&&(O[O.length]=_)}return O.length?O:void 0}},toHash:c,getProperty:f,escapeQuotes:g,equal:s(2303),ucs2length:s(6887),varOccurences:function(S,I){return I+="[^0-9]",S=S.match(new RegExp(I,"g")),S?S.length:0},varReplace:function(S,I,O){return I+="([^0-9])",O=O.replace(/\$/g,"$$$$"),S.replace(new RegExp(I,"g"),O+"$1")},schemaHasRules:function(S,I){if(typeof S=="boolean")return!S;for(var O in S)if(I[O])return!0},schemaHasRulesExcept:function(S,I,O){if(typeof S=="boolean")return!S&&O!="not";for(var y in S)if(y!=O&&I[y])return!0},schemaUnknownRules:function(S,I){if(typeof S!="boolean"){for(var O in S)if(!I[O])return O}},toQuotedString:b,getPathExpr:function(S,I,O,y){return w(S,O?"'/' + "+I+(y?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):y?"'[' + "+I+" + ']'":"'[\\'' + "+I+" + '\\']'")},getPath:function(S,I,O){return O=b(O?"/"+k(I):f(I)),w(S,O)},getData:function(S,I,O){var y,_,A;if(S==="")return"rootData";if(S[0]=="/"){if(!v.test(S))throw new Error("Invalid JSON-pointer: "+S);y=S,_="rootData"}else{if(!(A=S.match(m)))throw new Error("Invalid JSON-pointer: "+S);if(S=+A[1],(y=A[2])=="#"){if(I<=S)throw new Error("Cannot access property/index "+S+" levels up, current level is "+I);return O[I-S]}if(I<S)throw new Error("Cannot access data "+S+" levels up, current level is "+I);if(_="data"+(I-S||""),!y)return _}for(var R=_,D=y.split("/"),C=0;C<D.length;C++){var x=D[C];x&&(_+=f(T(x)),R+=" && "+_)}return R},unescapeFragment:function(S){return T(decodeURIComponent(S))},unescapeJsonPointer:T,escapeFragment:function(S){return encodeURIComponent(k(S))},escapeJsonPointer:k};var u=c(["string","number","integer","boolean","null"]);function c(S){for(var I={},O=0;O<S.length;O++)I[S[O]]=!0;return I}var d=/^[a-z$_][a-z$_0-9]*$/i,h=/'|\\/g;function f(S){return typeof S=="number"?"["+S+"]":d.test(S)?"."+S:"['"+g(S)+"']"}function g(S){return S.replace(h,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function b(S){return"'"+g(S)+"'"}var v=/^\/(?:[^~]|~0|~1)*$/,m=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function w(S,I){return S=='""'?I:(S+" + "+I).replace(/([^\\])' \+ '/g,"$1")}function k(S){return S.replace(/~/g,"~0").replace(/\//g,"~1")}function T(S){return S.replace(/~1/g,"/").replace(/~0/g,"~")}},9394:function(o){var a=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];o.exports=function(s,l){for(var u=0;u<l.length;u++){s=JSON.parse(JSON.stringify(s));for(var c=l[u].split("/"),d=s,h=1;h<c.length;h++)d=d[c[h]];for(h=0;h<a.length;h++){var f=a[h],g=d[f];g&&(d[f]={anyOf:[g,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return s}},5868:function(o,a,s){s=s(6680),o.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:s.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:s.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},1796:function(o){o.exports=function(a,s,l){var u,c,d,h,f,g=" ",b=a.level,v=a.dataLevel,m=a.schema[s],w=a.schemaPath+a.util.getProperty(s),k=a.errSchemaPath+"/"+s,T=!a.opts.allErrors,S="data"+(v||""),I=a.opts.$data&&m&&m.$data,O=I?(g+=" var schema"+b+" = "+a.util.getData(m.$data,v,a.dataPathArr)+"; ","schema"+b):m,y=s=="maximum",_=y?"exclusiveMaximum":"exclusiveMinimum",A=a.schema[_],R=a.opts.$data&&A&&A.$data,D=y?"<":">",C=y?">":"<",x=void 0;if(!I&&typeof m!="number"&&m!==void 0)throw new Error(s+" must be number");if(!R&&A!==void 0&&typeof A!="number"&&typeof A!="boolean")throw new Error(_+" must be number or boolean");R?(v=a.util.getData(A.$data,v,a.dataPathArr),d="exclIsNumber"+b,h="' + "+(f="op"+b)+" + '",x=_,(P=P||[]).push(g=g+(" var schemaExcl"+b+" = "+v+"; ")+(" var "+(u="exclusive"+b)+"; var "+(c="exclType"+b)+" = typeof "+(v="schemaExcl"+b)+"; if ("+c+" != 'boolean' && "+c+" != 'undefined' && "+c+" != 'number') { ")),g="",a.createErrors!==!1?(g+=" { keyword: '"+(x||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(k)+" , params: {} ",a.opts.messages!==!1&&(g+=" , message: '"+_+" should be boolean' "),a.opts.verbose&&(g+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+S+" "),g+=" } "):g+=" {} ",$=g,g=P.pop(),!a.compositeRule&&T?a.async?g+=" throw new ValidationError(["+$+"]); ":g+=" validate.errors = ["+$+"]; return false; ":g+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",g+=" } else if ( ",I&&(g+=" ("+O+" !== undefined && typeof "+O+" != 'number') || "),g+=" "+c+" == 'number' ? ( ("+u+" = "+O+" === undefined || "+v+" "+D+"= "+O+") ? "+S+" "+C+"= "+v+" : "+S+" "+C+" "+O+" ) : ( ("+u+" = "+v+" === true) ? "+S+" "+C+"= "+O+" : "+S+" "+C+" "+O+" ) || "+S+" !== "+S+") { var op"+b+" = "+u+" ? '"+D+"' : '"+D+"='; ",m===void 0&&(k=a.errSchemaPath+"/"+(x=_),O=v,I=R)):(h=D,(d=typeof A=="number")&&I?(f="'"+h+"'",g+=" if ( ",I&&(g+=" ("+O+" !== undefined && typeof "+O+" != 'number') || "),g+=" ( "+O+" === undefined || "+A+" "+D+"= "+O+" ? "+S+" "+C+"= "+A+" : "+S+" "+C+" "+O+" ) || "+S+" !== "+S+") { "):(d&&m===void 0?(u=!0,k=a.errSchemaPath+"/"+(x=_),O=A,C+="="):(d&&(O=Math[y?"min":"max"](A,m)),A===(!d||O)?(u=!0,k=a.errSchemaPath+"/"+(x=_),C+="="):(u=!1,h+="=")),f="'"+h+"'",g+=" if ( ",I&&(g+=" ("+O+" !== undefined && typeof "+O+" != 'number') || "),g+=" "+S+" "+C+" "+O+" || "+S+" !== "+S+") { ")),x=x||s,(P=P||[]).push(g),g="",a.createErrors!==!1?(g+=" { keyword: '"+(x||"_limit")+"' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(k)+" , params: { comparison: "+f+", limit: "+O+", exclusive: "+u+" } ",a.opts.messages!==!1&&(g=g+" , message: 'should be "+h+" "+(I?"' + "+O:O+"'")),a.opts.verbose&&(g=(g+=" , schema: ")+(I?"validate.schema"+w:""+m)+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+S+" "),g+=" } "):g+=" {} ";var P,$=g;return g=P.pop(),!a.compositeRule&&T?a.async?g+=" throw new ValidationError(["+$+"]); ":g+=" validate.errors = ["+$+"]; return false; ":g+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",g+=" } ",T&&(g+=" else { "),g}},2407:function(o){o.exports=function(a,s,l){var u,c=" ",d=a.level,w=a.dataLevel,h=a.schema[s],f=a.schemaPath+a.util.getProperty(s),g=a.errSchemaPath+"/"+s,b=!a.opts.allErrors,v="data"+(w||""),m=a.opts.$data&&h&&h.$data,w=m?(c+=" var schema"+d+" = "+a.util.getData(h.$data,w,a.dataPathArr)+"; ","schema"+d):h;if(m||typeof h=="number")return c+="if ( ",m&&(c+=" ("+w+" !== undefined && typeof "+w+" != 'number') || "),(d=[]).push(c+=" "+v+".length "+((u=s)=="maxItems"?">":"<")+" "+w+") { "),c="",a.createErrors!==!1?(c+=" { keyword: '"+(u||"_limitItems")+"' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(g)+" , params: { limit: "+w+" } ",a.opts.messages!==!1&&(c=(c=(c+=" , message: 'should NOT have ")+(s=="maxItems"?"more":"fewer")+" than ")+(m?"' + "+w+" + '":""+h)+" items' "),a.opts.verbose&&(c=(c+=" , schema: ")+(m?"validate.schema"+f:""+h)+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+v+" "),c+=" } "):c+=" {} ",u=c,c=d.pop(),!a.compositeRule&&b?a.async?c+=" throw new ValidationError(["+u+"]); ":c+=" validate.errors = ["+u+"]; return false; ":c+=" var err = "+u+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c+="} ",b&&(c+=" else { "),c;throw new Error(s+" must be number")}},1250:function(o){o.exports=function(a,s,l){var u,c=" ",d=a.level,w=a.dataLevel,h=a.schema[s],f=a.schemaPath+a.util.getProperty(s),g=a.errSchemaPath+"/"+s,b=!a.opts.allErrors,v="data"+(w||""),m=a.opts.$data&&h&&h.$data,w=m?(c+=" var schema"+d+" = "+a.util.getData(h.$data,w,a.dataPathArr)+"; ","schema"+d):h;if(m||typeof h=="number")return c+="if ( ",m&&(c+=" ("+w+" !== undefined && typeof "+w+" != 'number') || "),a.opts.unicode===!1?c+=" "+v+".length ":c+=" ucs2length("+v+") ",(d=[]).push(c+=" "+((u=s)=="maxLength"?">":"<")+" "+w+") { "),c="",a.createErrors!==!1?(c+=" { keyword: '"+(u||"_limitLength")+"' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(g)+" , params: { limit: "+w+" } ",a.opts.messages!==!1&&(c=(c=(c+=" , message: 'should NOT be ")+(s=="maxLength"?"longer":"shorter")+" than ")+(m?"' + "+w+" + '":""+h)+" characters' "),a.opts.verbose&&(c=(c+=" , schema: ")+(m?"validate.schema"+f:""+h)+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+v+" "),c+=" } "):c+=" {} ",u=c,c=d.pop(),!a.compositeRule&&b?a.async?c+=" throw new ValidationError(["+u+"]); ":c+=" validate.errors = ["+u+"]; return false; ":c+=" var err = "+u+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c+="} ",b&&(c+=" else { "),c;throw new Error(s+" must be number")}},2596:function(o){o.exports=function(a,s,l){var u,c=" ",d=a.level,w=a.dataLevel,h=a.schema[s],f=a.schemaPath+a.util.getProperty(s),g=a.errSchemaPath+"/"+s,b=!a.opts.allErrors,v="data"+(w||""),m=a.opts.$data&&h&&h.$data,w=m?(c+=" var schema"+d+" = "+a.util.getData(h.$data,w,a.dataPathArr)+"; ","schema"+d):h;if(m||typeof h=="number")return c+="if ( ",m&&(c+=" ("+w+" !== undefined && typeof "+w+" != 'number') || "),(d=[]).push(c+=" Object.keys("+v+").length "+((u=s)=="maxProperties"?">":"<")+" "+w+") { "),c="",a.createErrors!==!1?(c+=" { keyword: '"+(u||"_limitProperties")+"' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(g)+" , params: { limit: "+w+" } ",a.opts.messages!==!1&&(c=(c=(c+=" , message: 'should NOT have ")+(s=="maxProperties"?"more":"fewer")+" than ")+(m?"' + "+w+" + '":""+h)+" properties' "),a.opts.verbose&&(c=(c+=" , schema: ")+(m?"validate.schema"+f:""+h)+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+v+" "),c+=" } "):c+=" {} ",u=c,c=d.pop(),!a.compositeRule&&b?a.async?c+=" throw new ValidationError(["+u+"]); ":c+=" validate.errors = ["+u+"]; return false; ":c+=" var err = "+u+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c+="} ",b&&(c+=" else { "),c;throw new Error(s+" must be number")}},9486:function(o){o.exports=function(a,s,l){var u=" ",c=a.schema[s],d=a.schemaPath+a.util.getProperty(s),h=a.errSchemaPath+"/"+s,f=!a.opts.allErrors,g=a.util.copy(a),b="",v=(g.level++,"valid"+g.level),m=g.baseId,w=!0,k=c;if(k)for(var T,S=-1,I=k.length-1;S<I;)T=k[S+=1],(a.opts.strictKeywords?typeof T=="object"&&0<Object.keys(T).length||T===!1:a.util.schemaHasRules(T,a.RULES.all))&&(w=!1,g.schema=T,g.schemaPath=d+"["+S+"]",g.errSchemaPath=h+"/"+S,u+=" "+a.validate(g)+" ",g.baseId=m,f)&&(u+=" if ("+v+") { ",b+="}");return f&&(u+=w?" if (true) { ":" "+b.slice(0,-1)+" "),u}},5347:function(o){o.exports=function(a,f,l){var u=" ",v=a.level,g=a.dataLevel,c=a.schema[f],d=a.schemaPath+a.util.getProperty(f),h=a.errSchemaPath+"/"+f,f=!a.opts.allErrors,g="data"+(g||""),b="valid"+v,v="errs__"+v,m=a.util.copy(a),w="",k=(m.level++,"valid"+m.level);if(c.every(function(A){return a.opts.strictKeywords?typeof A=="object"&&0<Object.keys(A).length||A===!1:a.util.schemaHasRules(A,a.RULES.all)})){var T=m.baseId,S=(u+=" var "+v+" = errors; var "+b+" = false; ",a.compositeRule),I=(a.compositeRule=m.compositeRule=!0,c);if(I)for(var O,y=-1,_=I.length-1;y<_;)O=I[y+=1],m.schema=O,m.schemaPath=d+"["+y+"]",m.errSchemaPath=h+"/"+y,u+=" "+a.validate(m)+" ",m.baseId=T,u+=" "+b+" = "+b+" || "+k+"; if (!"+b+") { ",w+="}";a.compositeRule=m.compositeRule=S,u+=" "+w+" if (!"+b+") { var err = ",a.createErrors!==!1?(u+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(h)+" , params: {} ",a.opts.messages!==!1&&(u+=" , message: 'should match some schema in anyOf' "),a.opts.verbose&&(u+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+g+" "),u+=" } "):u+=" {} ",u+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!a.compositeRule&&f&&(a.async?u+=" throw new ValidationError(vErrors); ":u+=" validate.errors = vErrors; return false; "),u+=" } else { errors = "+v+"; if (vErrors !== null) { if ("+v+") vErrors.length = "+v+"; else vErrors = null; } ",a.opts.allErrors&&(u+=" } ")}else f&&(u+=" if (true) { ");return u}},923:function(o){o.exports=function(a,c,l){var u=" ",d=a.schema[c],c=a.errSchemaPath+"/"+c,d=(a.opts.allErrors,a.util.toQuotedString(d));return a.opts.$comment===!0?u+=" console.log("+d+");":typeof a.opts.$comment=="function"&&(u+=" self._opts.$comment("+d+", "+a.util.toQuotedString(c)+", validate.root.schema);"),u}},2617:function(o){o.exports=function(a,d,l){var w=" ",u=a.level,m=a.dataLevel,v=a.schema[d],c=a.schemaPath+a.util.getProperty(d),d=a.errSchemaPath+"/"+d,h=!a.opts.allErrors,f="data"+(m||""),g="valid"+u,b=a.opts.$data&&v&&v.$data,v=(b&&(w+=" var schema"+u+" = "+a.util.getData(v.$data,m,a.dataPathArr)+"; "),b||(w+=" var schema"+u+" = validate.schema"+c+";"),[]),m=(v.push(w+="var "+g+" = equal("+f+", schema"+u+"); if (!"+g+") { "),w="",a.createErrors!==!1?(w+=" { keyword: 'const' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(d)+" , params: { allowedValue: schema"+u+" } ",a.opts.messages!==!1&&(w+=" , message: 'should be equal to constant' "),a.opts.verbose&&(w+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+f+" "),w+=" } "):w+=" {} ",w),w=v.pop();return!a.compositeRule&&h?a.async?w+=" throw new ValidationError(["+m+"]); ":w+=" validate.errors = ["+m+"]; return false; ":w+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",w+=" }",h&&(w+=" else { "),w}},2119:function(o){o.exports=function(a,d,l){var O=" ",S=a.level,f=a.dataLevel,u=a.schema[d],c=a.schemaPath+a.util.getProperty(d),d=a.errSchemaPath+"/"+d,h=!a.opts.allErrors,f="data"+(f||""),g="valid"+S,b="errs__"+S,v=a.util.copy(a),m=(v.level++,"valid"+v.level),S="i"+S,w=v.dataLevel=a.dataLevel+1,k="data"+w,I=a.baseId,T=a.opts.strictKeywords?typeof u=="object"&&0<Object.keys(u).length||u===!1:a.util.schemaHasRules(u,a.RULES.all),S=(O+="var "+b+" = errors;var "+g+";",T?(g=a.compositeRule,a.compositeRule=v.compositeRule=!0,v.schema=u,v.schemaPath=c,v.errSchemaPath=d,O+=" var "+m+" = false; for (var "+S+" = 0; "+S+" < "+f+".length; "+S+"++) { ",v.errorPath=a.util.getPathExpr(a.errorPath,S,a.opts.jsonPointers,!0),u=f+"["+S+"]",v.dataPathArr[w]=S,w=a.validate(v),v.baseId=I,a.util.varOccurences(w,k)<2?O+=" "+a.util.varReplace(w,k,u)+" ":O+=" var "+k+" = "+u+"; "+w+" ",O+=" if ("+m+") break; } ",a.compositeRule=v.compositeRule=g,O+=" if (!"+m+") {"):O+=" if ("+f+".length == 0) {",[]),I=(S.push(O),O="",a.createErrors!==!1?(O+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(d)+" , params: {} ",a.opts.messages!==!1&&(O+=" , message: 'should contain a valid item' "),a.opts.verbose&&(O+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+f+" "),O+=" } "):O+=" {} ",O),O=S.pop();return!a.compositeRule&&h?a.async?O+=" throw new ValidationError(["+I+"]); ":O+=" validate.errors = ["+I+"]; return false; ":O+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",O+=" } else { ",T&&(O+=" errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } "),a.opts.allErrors&&(O+=" } "),O}},1793:function(o){o.exports=function(a,L,l){var u,c,d,h=" ",f=a.level,g=a.dataLevel,V=a.schema[L],b=a.schemaPath+a.util.getProperty(L),v=a.errSchemaPath+"/"+L,m=!a.opts.allErrors,w="data"+(g||""),k="valid"+f,T="errs__"+f,S=a.opts.$data&&V&&V.$data,I=S?(h+=" var schema"+f+" = "+a.util.getData(V.$data,g,a.dataPathArr)+"; ","schema"+f):V,O="definition"+f,y=this.definition,_="";if(S&&y.$data){var A="keywordValidate"+f,R=y.validateSchema;h+=" var "+O+" = RULES.custom['"+L+"'].definition; var "+A+" = "+O+".validate;"}else{if(!(P=a.useCustomRule(this,V,a.schema,a)))return;I="validate.schema"+b,A=P.code,u=y.compile,c=y.inline,d=y.macro}var D,C,x,P,$,L=A+".errors",V="i"+f,H="ruleErr"+f,Q=y.async;if(Q&&!a.async)throw new Error("async keyword in sync schema");return c||d||(h+=L+" = null;"),h+="var "+T+" = errors;var "+k+";",S&&y.$data&&(_+="}",h+=" if ("+I+" === undefined) { "+k+" = true; } else { ",R)&&(_+="}",h+=" "+k+" = "+O+".validateSchema("+I+"); if ("+k+") { "),c?y.statements?h+=" "+P.validate+" ":h+=" "+k+" = "+P.validate+"; ":d?(_="",(S=a.util.copy(a)).level++,D="valid"+S.level,S.schema=P.validate,S.schemaPath="",R=a.compositeRule,a.compositeRule=S.compositeRule=!0,O=a.validate(S).replace(/validate\.schema/g,A),a.compositeRule=S.compositeRule=R,h+=" "+O):(($=$||[]).push(h),h="",h+=" "+A+".call( ",a.opts.passContext?h+="this":h+="self",u||y.schema===!1?h+=" , "+w+" ":h+=" , "+I+" , "+w+" , validate.schema"+a.schemaPath+" ",h+=" , (dataPath || '')",a.errorPath!='""'&&(h+=" + "+a.errorPath),P=h+=" , "+(C=g?"data"+(g-1||""):"parentData")+" , "+(x=g?a.dataPathArr[g]:"parentDataProperty")+" , rootData ) ",h=$.pop(),y.errors===!1?(h+=" "+k+" = ",Q&&(h+="await "),h+=P+"; "):h+=Q?" var "+(L="customErrors"+f)+" = null; try { "+k+" = await "+P+"; } catch (e) { "+k+" = false; if (e instanceof ValidationError) "+L+" = e.errors; else throw e; } ":" "+L+" = null; "+k+" = "+P+"; "),y.modifying&&(h+=" if ("+C+") "+w+" = "+C+"["+x+"];"),h+=""+_,y.valid?m&&(h+=" if (true) { "):(h+=" if ( ",y.valid===void 0?h=h+" !"+(d?""+D:k):h+=" "+!y.valid+" ",S=this.keyword,($=$||[]).push(h+=") { "),($=$||[]).push(h=""),h="",a.createErrors!==!1?(h+=" { keyword: '"+(S||"custom")+"' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(v)+" , params: { keyword: '"+this.keyword+"' } ",a.opts.messages!==!1&&(h+=` , message: 'should pass "`+this.keyword+`" keyword validation' `),a.opts.verbose&&(h+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+w+" "),h+=" } "):h+=" {} ",R=h,h=$.pop(),!a.compositeRule&&m?a.async?h+=" throw new ValidationError(["+R+"]); ":h+=" validate.errors = ["+R+"]; return false; ":h+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",O=h,h=$.pop(),c?y.errors?y.errors!="full"&&(h+=" for (var "+V+"="+T+"; "+V+"<errors; "+V+"++) { var "+H+" = vErrors["+V+"]; if ("+H+".dataPath === undefined) "+H+".dataPath = (dataPath || '') + "+a.errorPath+"; if ("+H+".schemaPath === undefined) { "+H+'.schemaPath = "'+v+'"; } ',a.opts.verbose&&(h+=" "+H+".schema = "+I+"; "+H+".data = "+w+"; "),h+=" } "):y.errors===!1?h+=" "+O+" ":(h+=" if ("+T+" == errors) { "+O+" } else { for (var "+V+"="+T+"; "+V+"<errors; "+V+"++) { var "+H+" = vErrors["+V+"]; if ("+H+".dataPath === undefined) "+H+".dataPath = (dataPath || '') + "+a.errorPath+"; if ("+H+".schemaPath === undefined) { "+H+'.schemaPath = "'+v+'"; } ',a.opts.verbose&&(h+=" "+H+".schema = "+I+"; "+H+".data = "+w+"; "),h+=" } } "):d?(h+=" var err = ",a.createErrors!==!1?(h+=" { keyword: '"+(S||"custom")+"' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(v)+" , params: { keyword: '"+this.keyword+"' } ",a.opts.messages!==!1&&(h+=` , message: 'should pass "`+this.keyword+`" keyword validation' `),a.opts.verbose&&(h+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+w+" "),h+=" } "):h+=" {} ",h+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!a.compositeRule&&m&&(a.async?h+=" throw new ValidationError(vErrors); ":h+=" validate.errors = vErrors; return false; ")):y.errors===!1?h+=" "+O+" ":(h+=" if (Array.isArray("+L+")) { if (vErrors === null) vErrors = "+L+"; else vErrors = vErrors.concat("+L+"); errors = vErrors.length; for (var "+V+"="+T+"; "+V+"<errors; "+V+"++) { var "+H+" = vErrors["+V+"]; if ("+H+".dataPath === undefined) "+H+".dataPath = (dataPath || '') + "+a.errorPath+"; "+H+'.schemaPath = "'+v+'"; ',a.opts.verbose&&(h+=" "+H+".schema = "+I+"; "+H+".data = "+w+"; "),h+=" } } else { "+O+" } "),h+=" } ",m&&(h+=" else { ")),h}},9115:function(o){o.exports=function(a,w,l){var u,c=" ",d=a.level,h=a.dataLevel,f=a.schema[w],g=a.schemaPath+a.util.getProperty(w),b=a.errSchemaPath+"/"+w,v=!a.opts.allErrors,m="data"+(h||""),w="errs__"+d,k=a.util.copy(a),T="",S=(k.level++,"valid"+k.level),I={},O={},y=a.opts.ownProperties;for(K in f)K!="__proto__"&&(ue=f[K],(u=Array.isArray(ue)?O:I)[K]=ue);var _=a.errorPath;for(K in c=c+("var "+w+" = errors;")+("var missing"+d+";"),O)if((u=O[K]).length){if(c+=" if ( "+m+a.util.getProperty(K)+" !== undefined ",y&&(c+=" && Object.prototype.hasOwnProperty.call("+m+", '"+a.util.escapeQuotes(K)+"') "),v){c+=" && ( ";var A=u;if(A)for(var R=-1,D=A.length-1;R<D;)L=A[R+=1],R&&(c+=" || "),c+=" ( ( "+(U=m+(Q=a.util.getProperty(L)))+" === undefined ",y&&(c+=" || ! Object.prototype.hasOwnProperty.call("+m+", '"+a.util.escapeQuotes(L)+"') "),c+=") && (missing"+d+" = "+a.util.toQuotedString(a.opts.jsonPointers?L:Q)+") ) ";c+=")) { ";var P="missing"+d,C="' + "+P+" + '",x=(a.opts._errorDataPathProperty&&(a.errorPath=a.opts.jsonPointers?a.util.getPathExpr(_,P,!0):_+" + "+P),x||[]),P=(x.push(c),c="",a.createErrors!==!1?(c+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(b)+" , params: { property: '"+a.util.escapeQuotes(K)+"', missingProperty: '"+C+"', depsCount: "+u.length+", deps: '"+a.util.escapeQuotes(u.length==1?u[0]:u.join(", "))+"' } ",a.opts.messages!==!1&&(c+=" , message: 'should have ",u.length==1?c+="property "+a.util.escapeQuotes(u[0]):c+="properties "+a.util.escapeQuotes(u.join(", ")),c+=" when property "+a.util.escapeQuotes(K)+" is present' "),a.opts.verbose&&(c+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+m+" "),c+=" } "):c+=" {} ",c),c=x.pop();!a.compositeRule&&v?a.async?c+=" throw new ValidationError(["+P+"]); ":c+=" validate.errors = ["+P+"]; return false; ":c+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{c+=" ) { ";var $=u;if($)for(var L,V=-1,H=$.length-1;V<H;){L=$[V+=1];var Q=a.util.getProperty(L),C=a.util.escapeQuotes(L),U=m+Q;a.opts._errorDataPathProperty&&(a.errorPath=a.util.getPath(_,L,a.opts.jsonPointers)),c+=" if ( "+U+" === undefined ",y&&(c+=" || ! Object.prototype.hasOwnProperty.call("+m+", '"+a.util.escapeQuotes(L)+"') "),c+=") { var err = ",a.createErrors!==!1?(c+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(b)+" , params: { property: '"+a.util.escapeQuotes(K)+"', missingProperty: '"+C+"', depsCount: "+u.length+", deps: '"+a.util.escapeQuotes(u.length==1?u[0]:u.join(", "))+"' } ",a.opts.messages!==!1&&(c+=" , message: 'should have ",u.length==1?c+="property "+a.util.escapeQuotes(u[0]):c+="properties "+a.util.escapeQuotes(u.join(", ")),c+=" when property "+a.util.escapeQuotes(K)+" is present' "),a.opts.verbose&&(c+=" , schema: validate.schema"+g+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+m+" "),c+=" } "):c+=" {} ",c+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}c+=" } ",v&&(T+="}",c+=" else { ")}a.errorPath=_;var K,J=k.baseId;for(K in I){var ue=I[K];(a.opts.strictKeywords?typeof ue=="object"&&0<Object.keys(ue).length||ue===!1:a.util.schemaHasRules(ue,a.RULES.all))&&(c+=" "+S+" = true; if ( "+m+a.util.getProperty(K)+" !== undefined ",y&&(c+=" && Object.prototype.hasOwnProperty.call("+m+", '"+a.util.escapeQuotes(K)+"') "),c+=") { ",k.schema=ue,k.schemaPath=g+a.util.getProperty(K),k.errSchemaPath=b+"/"+a.util.escapeFragment(K),c+=" "+a.validate(k)+" ",k.baseId=J,c+=" } ",v)&&(c+=" if ("+S+") { ",T+="}")}return v&&(c+=" "+T+" if ("+w+" == errors) {"),c}},9317:function(o){o.exports=function(a,d,l){var w=" ",u=a.level,v=a.dataLevel,m=a.schema[d],c=a.schemaPath+a.util.getProperty(d),d=a.errSchemaPath+"/"+d,h=!a.opts.allErrors,f="data"+(v||""),g="valid"+u,b=a.opts.$data&&m&&m.$data,m=(b&&(w+=" var schema"+u+" = "+a.util.getData(m.$data,v,a.dataPathArr)+"; "),"i"+u),v="schema"+u,v=(b||(w+=" var "+v+" = validate.schema"+c+";"),w+="var "+g+";",b&&(w+=" if (schema"+u+" === undefined) "+g+" = true; else if (!Array.isArray(schema"+u+")) "+g+" = false; else {"),w+=g+" = false;for (var "+m+"=0; "+m+"<"+v+".length; "+m+"++) if (equal("+f+", "+v+"["+m+"])) { "+g+" = true; break; }",b&&(w+=" } "),[]),m=(v.push(w+=" if (!"+g+") { "),w="",a.createErrors!==!1?(w+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(d)+" , params: { allowedValues: schema"+u+" } ",a.opts.messages!==!1&&(w+=" , message: 'should be equal to one of the allowed values' "),a.opts.verbose&&(w+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+f+" "),w+=" } "):w+=" {} ",w),w=v.pop();return!a.compositeRule&&h?a.async?w+=" throw new ValidationError(["+m+"]); ":w+=" validate.errors = ["+m+"]; return false; ":w+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",w+=" }",h&&(w+=" else { "),w}},8327:function(o){o.exports=function(a,g,l){var u=" ",c=a.level,d=a.dataLevel,h=a.schema[g],f=a.schemaPath+a.util.getProperty(g),g=a.errSchemaPath+"/"+g,b=!a.opts.allErrors,v="data"+(d||"");if(a.opts.format===!1)b&&(u+=" if (true) { ");else{var m,w=a.opts.$data&&h&&h.$data,d=w?(u+=" var schema"+c+" = "+a.util.getData(h.$data,d,a.dataPathArr)+"; ","schema"+c):h,k=a.opts.unknownFormats,T=Array.isArray(k);if(w)u+=" var "+(m="format"+c)+" = formats["+d+"]; var "+(S="isObject"+c)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(O="formatType"+c)+" = "+S+" && "+m+".type || 'string'; if ("+S+") { ",a.async&&(u+=" var async"+c+" = "+m+".async; "),u+=" "+m+" = "+m+".validate; } if ( ",w&&(u+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "),u+=" (",k!="ignore"&&(u+=" ("+d+" && !"+m+" ",T&&(u+=" && self._opts.unknownFormats.indexOf("+d+") == -1 "),u+=") || "),u+=" ("+m+" && "+O+" == '"+l+"' && !(typeof "+m+" == 'function' ? ",a.async?u+=" (async"+c+" ? await "+m+"("+v+") : "+m+"("+v+")) ":u+=" "+m+"("+v+") ",u+=" : "+m+".test("+v+"))))) {";else{if(!(m=a.formats[h])){if(k=="ignore")return a.logger.warn('unknown format "'+h+'" ignored in schema at path "'+a.errSchemaPath+'"'),b&&(u+=" if (true) { "),u;if(T&&0<=k.indexOf(h))return b&&(u+=" if (true) { "),u;throw new Error('unknown format "'+h+'" is used in schema at path "'+a.errSchemaPath+'"')}var S,I,O=(S=typeof m=="object"&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(S&&(I=m.async===!0,m=m.validate),O!=l)return b&&(u+=" if (true) { "),u;if(I){if(!a.async)throw new Error("async format in sync schema");u+=" if (!(await "+(y="formats"+a.util.getProperty(h)+".validate")+"("+v+"))) { "}else{u+=" if (! ";var y="formats"+a.util.getProperty(h);S&&(y+=".validate"),u=u+(typeof m=="function"?" "+y+"("+v+") ":" "+y+".test("+v+") ")+") { "}}c=[],T=(c.push(u),u="",a.createErrors!==!1?(u=(u+=" { keyword: 'format' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(g)+" , params: { format: ")+(w?""+d:""+a.util.toQuotedString(h))+" } ",a.opts.messages!==!1&&(u=(u+=` , message: 'should match format "`)+(w?"' + "+d+" + '":""+a.util.escapeQuotes(h))+`"' `),a.opts.verbose&&(u=(u=(u+=" , schema: ")+(w?"validate.schema"+f:""+a.util.toQuotedString(h)))+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+v+" "),u+=" } "):u+=" {} ",u),u=c.pop(),!a.compositeRule&&b?a.async?u+=" throw new ValidationError(["+T+"]); ":u+=" validate.errors = ["+T+"]; return false; ":u+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u+=" } ",b&&(u+=" else { ")}return u}},5926:function(o){o.exports=function(a,g,l){var u,c=" ",d=a.level,v=a.dataLevel,h=a.schema[g],f=a.schemaPath+a.util.getProperty(g),g=a.errSchemaPath+"/"+g,b=!a.opts.allErrors,v="data"+(v||""),m="valid"+d,w="errs__"+d,k=a.util.copy(a),T=(k.level++,"valid"+k.level),S=a.schema.then,I=a.schema.else,S=S!==void 0&&(a.opts.strictKeywords?typeof S=="object"&&0<Object.keys(S).length||S===!1:a.util.schemaHasRules(S,a.RULES.all)),I=I!==void 0&&(a.opts.strictKeywords?typeof I=="object"&&0<Object.keys(I).length||I===!1:a.util.schemaHasRules(I,a.RULES.all)),O=k.baseId;return S||I?(k.createErrors=!1,k.schema=h,k.schemaPath=f,k.errSchemaPath=g,c+=" var "+w+" = errors; var "+m+" = true; ",h=a.compositeRule,a.compositeRule=k.compositeRule=!0,c+=" "+a.validate(k)+" ",k.baseId=O,k.createErrors=!0,c+=" errors = "+w+"; if (vErrors !== null) { if ("+w+") vErrors.length = "+w+"; else vErrors = null; } ",a.compositeRule=k.compositeRule=h,S?(c+=" if ("+T+") { ",k.schema=a.schema.then,k.schemaPath=a.schemaPath+".then",k.errSchemaPath=a.errSchemaPath+"/then",c+=" "+a.validate(k)+" ",k.baseId=O,c+=" "+m+" = "+T+"; ",S&&I?c+=" var "+(u="ifClause"+d)+" = 'then'; ":u="'then'",c+=" } ",I&&(c+=" else { ")):c+=" if (!"+T+") { ",I&&(k.schema=a.schema.else,k.schemaPath=a.schemaPath+".else",k.errSchemaPath=a.errSchemaPath+"/else",c+=" "+a.validate(k)+" ",k.baseId=O,c+=" "+m+" = "+T+"; ",S&&I?c+=" var "+(u="ifClause"+d)+" = 'else'; ":u="'else'",c+=" } "),c+=" if (!"+m+") { var err = ",a.createErrors!==!1?(c+=" { keyword: 'if' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(g)+" , params: { failingKeyword: "+u+" } ",a.opts.messages!==!1&&(c+=` , message: 'should match "' + `+u+` + '" schema' `),a.opts.verbose&&(c+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+v+" "),c+=" } "):c+=" {} ",c+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!a.compositeRule&&b&&(a.async?c+=" throw new ValidationError(vErrors); ":c+=" validate.errors = vErrors; return false; "),c+=" } ",b&&(c+=" else { ")):b&&(c+=" if (true) { "),c}},9646:function(o,a,s){o.exports={$ref:s(2331),allOf:s(9486),anyOf:s(5347),$comment:s(923),const:s(2617),contains:s(2119),dependencies:s(9115),enum:s(9317),format:s(8327),if:s(5926),items:s(392),maximum:s(1796),minimum:s(1796),maxItems:s(2407),minItems:s(2407),maxLength:s(1250),minLength:s(1250),maxProperties:s(2596),minProperties:s(2596),multipleOf:s(6039),not:s(7946),oneOf:s(9344),pattern:s(9737),properties:s(2537),propertyNames:s(2127),required:s(1204),uniqueItems:s(1985),validate:s(1869)}},392:function(o){o.exports=function(a,b,l){var u=" ",T=a.level,v=a.dataLevel,c=a.schema[b],d=a.schemaPath+a.util.getProperty(b),h=a.errSchemaPath+"/"+b,f=!a.opts.allErrors,g="data"+(v||""),b="valid"+T,v="errs__"+T,m=a.util.copy(a),w="",k=(m.level++,"valid"+m.level),T="i"+T,S=m.dataLevel=a.dataLevel+1,I="data"+S,O=a.baseId;if(u+="var "+v+" = errors;var "+b+";",Array.isArray(c)){var y,_,A=a.schema.additionalItems,R=(A===!1&&(u+=" "+b+" = "+g+".length <= "+c.length+"; ",y=h,h=a.errSchemaPath+"/additionalItems",(_=_||[]).push(u+=" if (!"+b+") { "),u="",a.createErrors!==!1?(u+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(h)+" , params: { limit: "+c.length+" } ",a.opts.messages!==!1&&(u+=" , message: 'should NOT have more than "+c.length+" items' "),a.opts.verbose&&(u+=" , schema: false , parentSchema: validate.schema"+a.schemaPath+" , data: "+g+" "),u+=" } "):u+=" {} ",b=u,u=_.pop(),!a.compositeRule&&f?a.async?u+=" throw new ValidationError(["+b+"]); ":u+=" validate.errors = ["+b+"]; return false; ":u+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u+=" } ",h=y,f)&&(w+="}",u+=" else { "),c);if(R)for(var D=-1,C=R.length-1;D<C;){var x,P,$=R[D+=1];(a.opts.strictKeywords?typeof $=="object"&&0<Object.keys($).length||$===!1:a.util.schemaHasRules($,a.RULES.all))&&(u+=" "+k+" = true; if ("+g+".length > "+D+") { ",x=g+"["+D+"]",m.schema=$,m.schemaPath=d+"["+D+"]",m.errSchemaPath=h+"/"+D,m.errorPath=a.util.getPathExpr(a.errorPath,D,a.opts.jsonPointers,!0),m.dataPathArr[S]=D,P=a.validate(m),m.baseId=O,a.util.varOccurences(P,I)<2?u+=" "+a.util.varReplace(P,I,x)+" ":u+=" var "+I+" = "+x+"; "+P+" ",u+=" } ",f)&&(u+=" if ("+k+") { ",w+="}")}typeof A=="object"&&(a.opts.strictKeywords?typeof A=="object"&&0<Object.keys(A).length||A===!1:a.util.schemaHasRules(A,a.RULES.all))&&(m.schema=A,m.schemaPath=a.schemaPath+".additionalItems",m.errSchemaPath=a.errSchemaPath+"/additionalItems",u+=" "+k+" = true; if ("+g+".length > "+c.length+") { for (var "+T+" = "+c.length+"; "+T+" < "+g+".length; "+T+"++) { ",m.errorPath=a.util.getPathExpr(a.errorPath,T,a.opts.jsonPointers,!0),x=g+"["+T+"]",m.dataPathArr[S]=T,P=a.validate(m),m.baseId=O,a.util.varOccurences(P,I)<2?u+=" "+a.util.varReplace(P,I,x)+" ":u+=" var "+I+" = "+x+"; "+P+" ",f&&(u+=" if (!"+k+") break; "),u+=" } } ",f)&&(u+=" if ("+k+") { ",w+="}")}else(a.opts.strictKeywords?typeof c=="object"&&0<Object.keys(c).length||c===!1:a.util.schemaHasRules(c,a.RULES.all))&&(m.schema=c,m.schemaPath=d,m.errSchemaPath=h,u+=" for (var "+T+" = 0; "+T+" < "+g+".length; "+T+"++) { ",m.errorPath=a.util.getPathExpr(a.errorPath,T,a.opts.jsonPointers,!0),x=g+"["+T+"]",m.dataPathArr[S]=T,P=a.validate(m),m.baseId=O,a.util.varOccurences(P,I)<2?u+=" "+a.util.varReplace(P,I,x)+" ":u+=" var "+I+" = "+x+"; "+P+" ",f&&(u+=" if (!"+k+") break; "),u+=" }");return f&&(u+=" "+w+" if ("+v+" == errors) {"),u}},6039:function(o){o.exports=function(a,s,l){var u=" ",c=a.level,m=a.dataLevel,d=a.schema[s],h=a.schemaPath+a.util.getProperty(s),f=a.errSchemaPath+"/"+s,g=!a.opts.allErrors,b="data"+(m||""),v=a.opts.$data&&d&&d.$data,m=v?(u+=" var schema"+c+" = "+a.util.getData(d.$data,m,a.dataPathArr)+"; ","schema"+c):d;if(!v&&typeof d!="number")throw new Error(s+" must be number");return u+="var division"+c+";if (",v&&(u+=" "+m+" !== undefined && ( typeof "+m+" != 'number' || "),u+=" (division"+c+" = "+b+" / "+m+", ",a.opts.multipleOfPrecision?u+=" Math.abs(Math.round(division"+c+") - division"+c+") > 1e-"+a.opts.multipleOfPrecision+" ":u+=" division"+c+" !== parseInt(division"+c+") ",u+=" ) ",v&&(u+=" ) "),s=[],s.push(u+=" ) { "),u="",a.createErrors!==!1?(u+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(f)+" , params: { multipleOf: "+m+" } ",a.opts.messages!==!1&&(u=u+" , message: 'should be multiple of "+(v?"' + "+m:m+"'")),a.opts.verbose&&(u=(u+=" , schema: ")+(v?"validate.schema"+h:""+d)+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+b+" "),u+=" } "):u+=" {} ",c=u,u=s.pop(),!a.compositeRule&&g?a.async?u+=" throw new ValidationError(["+c+"]); ":u+=" validate.errors = ["+c+"]; return false; ":u+=" var err = "+c+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u+="} ",g&&(u+=" else { "),u}},7946:function(o){o.exports=function(a,g,l){var u,c,d=" ",m=a.level,v=a.dataLevel,h=a.schema[g],f=a.schemaPath+a.util.getProperty(g),g=a.errSchemaPath+"/"+g,b=!a.opts.allErrors,v="data"+(v||""),m="errs__"+m,w=a.util.copy(a),k=(w.level++,"valid"+w.level);return(a.opts.strictKeywords?typeof h=="object"&&0<Object.keys(h).length||h===!1:a.util.schemaHasRules(h,a.RULES.all))?(w.schema=h,w.schemaPath=f,w.errSchemaPath=g,d+=" var "+m+" = errors; ",h=a.compositeRule,a.compositeRule=w.compositeRule=!0,w.createErrors=!1,w.opts.allErrors&&(c=w.opts.allErrors,w.opts.allErrors=!1),d+=" "+a.validate(w)+" ",w.createErrors=!0,c&&(w.opts.allErrors=c),a.compositeRule=w.compositeRule=h,(u=u||[]).push(d+=" if ("+k+") { "),d="",a.createErrors!==!1?(d+=" { keyword: 'not' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(g)+" , params: {} ",a.opts.messages!==!1&&(d+=" , message: 'should NOT be valid' "),a.opts.verbose&&(d+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+v+" "),d+=" } "):d+=" {} ",c=d,d=u.pop(),!a.compositeRule&&b?a.async?d+=" throw new ValidationError(["+c+"]); ":d+=" validate.errors = ["+c+"]; return false; ":d+=" var err = "+c+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d+=" } else { errors = "+m+"; if (vErrors !== null) { if ("+m+") vErrors.length = "+m+"; else vErrors = null; } ",a.opts.allErrors&&(d+=" } ")):(d+=" var err = ",a.createErrors!==!1?(d+=" { keyword: 'not' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(g)+" , params: {} ",a.opts.messages!==!1&&(d+=" , message: 'should NOT be valid' "),a.opts.verbose&&(d+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+v+" "),d+=" } "):d+=" {} ",d+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",b&&(d+=" if (false) { ")),d}},9344:function(o){o.exports=function(a,f,l){var u=" ",O=a.level,g=a.dataLevel,c=a.schema[f],d=a.schemaPath+a.util.getProperty(f),h=a.errSchemaPath+"/"+f,f=!a.opts.allErrors,g="data"+(g||""),b="valid"+O,v="errs__"+O,m=a.util.copy(a),w="",k=(m.level++,"valid"+m.level),T=m.baseId,S="prevValid"+O,I="passingSchemas"+O,O=(u+="var "+v+" = errors , "+S+" = false , "+b+" = false , "+I+" = null; ",a.compositeRule),y=(a.compositeRule=m.compositeRule=!0,c);if(y)for(var _,A=-1,R=y.length-1;A<R;)_=y[A+=1],(a.opts.strictKeywords?typeof _=="object"&&0<Object.keys(_).length||_===!1:a.util.schemaHasRules(_,a.RULES.all))?(m.schema=_,m.schemaPath=d+"["+A+"]",m.errSchemaPath=h+"/"+A,u+=" "+a.validate(m)+" ",m.baseId=T):u+=" var "+k+" = true; ",A&&(u+=" if ("+k+" && "+S+") { "+b+" = false; "+I+" = ["+I+", "+A+"]; } else { ",w+="}"),u+=" if ("+k+") { "+b+" = "+S+" = true; "+I+" = "+A+"; }";return a.compositeRule=m.compositeRule=O,u+=w+"if (!"+b+") { var err = ",a.createErrors!==!1?(u+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(h)+" , params: { passingSchemas: "+I+" } ",a.opts.messages!==!1&&(u+=" , message: 'should match exactly one schema in oneOf' "),a.opts.verbose&&(u+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+g+" "),u+=" } "):u+=" {} ",u+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!a.compositeRule&&f&&(a.async?u+=" throw new ValidationError(vErrors); ":u+=" validate.errors = vErrors; return false; "),u+="} else { errors = "+v+"; if (vErrors !== null) { if ("+v+") vErrors.length = "+v+"; else vErrors = null; }",a.opts.allErrors&&(u+=" } "),u}},9737:function(o){o.exports=function(a,d,l){var w=" ",m=a.level,b=a.dataLevel,u=a.schema[d],c=a.schemaPath+a.util.getProperty(d),d=a.errSchemaPath+"/"+d,h=!a.opts.allErrors,f="data"+(b||""),g=a.opts.$data&&u&&u.$data,b=g?(w+=" var schema"+m+" = "+a.util.getData(u.$data,b,a.dataPathArr)+"; ","schema"+m):u,m=g?"(new RegExp("+b+"))":a.usePattern(u),v=(w+="if ( ",g&&(w+=" ("+b+" !== undefined && typeof "+b+" != 'string') || "),[]),m=(v.push(w+=" !"+m+".test("+f+") ) { "),w="",a.createErrors!==!1?(w=(w+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(d)+" , params: { pattern: ")+(g?""+b:""+a.util.toQuotedString(u))+" } ",a.opts.messages!==!1&&(w=(w+=` , message: 'should match pattern "`)+(g?"' + "+b+" + '":""+a.util.escapeQuotes(u))+`"' `),a.opts.verbose&&(w=(w=(w+=" , schema: ")+(g?"validate.schema"+c:""+a.util.toQuotedString(u)))+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+f+" "),w+=" } "):w+=" {} ",w),w=v.pop();return!a.compositeRule&&h?a.async?w+=" throw new ValidationError(["+m+"]); ":w+=" validate.errors = ["+m+"]; return false; ":w+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",w+="} ",h&&(w+=" else { "),w}},2537:function(o){o.exports=function(a,m,l){var u,c=" ",d=a.level,A=a.dataLevel,h=a.schema[m],f=a.schemaPath+a.util.getProperty(m),g=a.errSchemaPath+"/"+m,b=!a.opts.allErrors,v="data"+(A||""),m="errs__"+d,w=a.util.copy(a),k="",T=(w.level++,"valid"+w.level),S="key"+d,I="idx"+d,O=w.dataLevel=a.dataLevel+1,y="data"+O,_="dataProperties"+d,A=Object.keys(h||{}).filter(K),R=a.schema.patternProperties||{},D=Object.keys(R).filter(K),C=a.schema.additionalProperties,x=A.length||D.length,P=C===!1,$=typeof C=="object"&&Object.keys(C).length,L=a.opts.removeAdditional,V=P||$||L,H=a.opts.ownProperties,Q=a.baseId,U=a.schema.required;function K(Qe){return Qe!=="__proto__"}if(U&&(!a.opts.$data||!U.$data)&&U.length<a.opts.loopRequired&&(u=a.util.toHash(U)),c+="var "+m+" = errors;var "+T+" = true;",H&&(c+=" var "+_+" = undefined;"),V){if(c+=H?" "+_+" = "+_+" || Object.keys("+v+"); for (var "+I+"=0; "+I+"<"+_+".length; "+I+"++) { var "+S+" = "+_+"["+I+"]; ":" for (var "+S+" in "+v+") { ",x){if(c+=" var isAdditional"+d+" = !(false ",A.length)if(8<A.length)c+=" || validate.schema"+f+".hasOwnProperty("+S+") ";else{var J=A;if(J)for(var ue=-1,ee=J.length-1;ue<ee;)oe=J[ue+=1],c+=" || "+S+" == "+a.util.toQuotedString(oe)+" "}if(D.length){var N=D;if(N)for(var q=-1,G=N.length-1;q<G;)fe=N[q+=1],c+=" || "+a.usePattern(fe)+".test("+S+") "}c+=" ); if (isAdditional"+d+") { "}L=="all"?c+=" delete "+v+"["+S+"]; ":(ie=a.errorPath,U="' + "+S+" + '",a.opts._errorDataPathProperty&&(a.errorPath=a.util.getPathExpr(a.errorPath,S,a.opts.jsonPointers)),P?L?c+=" delete "+v+"["+S+"]; ":(ce=g,g=a.errSchemaPath+"/additionalProperties",(X=X||[]).push(c+=" "+T+" = false; "),c="",a.createErrors!==!1?(c+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(g)+" , params: { additionalProperty: '"+U+"' } ",a.opts.messages!==!1&&(c+=" , message: '",a.opts._errorDataPathProperty?c+="is an invalid additional property":c+="should NOT have additional properties",c+="' "),a.opts.verbose&&(c+=" , schema: false , parentSchema: validate.schema"+a.schemaPath+" , data: "+v+" "),c+=" } "):c+=" {} ",Z=c,c=X.pop(),!a.compositeRule&&b?a.async?c+=" throw new ValidationError(["+Z+"]); ":c+=" validate.errors = ["+Z+"]; return false; ":c+=" var err = "+Z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",g=ce,b&&(c+=" break; ")):$&&(L=="failing"?(c+=" var "+m+" = errors; ",V=a.compositeRule,a.compositeRule=w.compositeRule=!0,w.schema=C,w.schemaPath=a.schemaPath+".additionalProperties",w.errSchemaPath=a.errSchemaPath+"/additionalProperties",w.errorPath=a.opts._errorDataPathProperty?a.errorPath:a.util.getPathExpr(a.errorPath,S,a.opts.jsonPointers),Be=v+"["+S+"]",w.dataPathArr[O]=S,Ye=a.validate(w),w.baseId=Q,a.util.varOccurences(Ye,y)<2?c+=" "+a.util.varReplace(Ye,y,Be)+" ":c+=" var "+y+" = "+Be+"; "+Ye+" ",c+=" if (!"+T+") { errors = "+m+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+v+"["+S+"]; } ",a.compositeRule=w.compositeRule=V):(w.schema=C,w.schemaPath=a.schemaPath+".additionalProperties",w.errSchemaPath=a.errSchemaPath+"/additionalProperties",w.errorPath=a.opts._errorDataPathProperty?a.errorPath:a.util.getPathExpr(a.errorPath,S,a.opts.jsonPointers),Be=v+"["+S+"]",w.dataPathArr[O]=S,Ye=a.validate(w),w.baseId=Q,a.util.varOccurences(Ye,y)<2?c+=" "+a.util.varReplace(Ye,y,Be)+" ":c+=" var "+y+" = "+Be+"; "+Ye+" ",b&&(c+=" if (!"+T+") break; "))),a.errorPath=ie),x&&(c+=" } "),c+=" } ",b&&(c+=" if ("+T+") { ",k+="}")}var ne=a.opts.useDefaults&&!a.compositeRule;if(A.length){var le=A;if(le)for(var oe,ve=-1,de=le.length-1;ve<de;){var ae,be,ie,ce,pe,X,Z,Y=h[oe=le[ve+=1]];(a.opts.strictKeywords?typeof Y=="object"&&0<Object.keys(Y).length||Y===!1:a.util.schemaHasRules(Y,a.RULES.all))&&(Be=v+(pe=a.util.getProperty(oe)),ae=ne&&Y.default!==void 0,w.schema=Y,w.schemaPath=f+pe,w.errSchemaPath=g+"/"+a.util.escapeFragment(oe),w.errorPath=a.util.getPath(a.errorPath,oe,a.opts.jsonPointers),w.dataPathArr[O]=a.util.toQuotedString(oe),Ye=a.validate(w),w.baseId=Q,a.util.varOccurences(Ye,y)<2?(Ye=a.util.varReplace(Ye,y,Be),be=Be):c+=" var "+(be=y)+" = "+Be+"; ",ae?c+=" "+Ye+" ":(u&&u[oe]?(c+=" if ( "+be+" === undefined ",H&&(c+=" || ! Object.prototype.hasOwnProperty.call("+v+", '"+a.util.escapeQuotes(oe)+"') "),c+=") { "+T+" = false; ",ie=a.errorPath,ce=g,pe=a.util.escapeQuotes(oe),a.opts._errorDataPathProperty&&(a.errorPath=a.util.getPath(ie,oe,a.opts.jsonPointers)),g=a.errSchemaPath+"/required",(X=X||[]).push(c),c="",a.createErrors!==!1?(c+=" { keyword: 'required' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(g)+" , params: { missingProperty: '"+pe+"' } ",a.opts.messages!==!1&&(c+=" , message: '",a.opts._errorDataPathProperty?c+="is a required property":c+="should have required property \\'"+pe+"\\'",c+="' "),a.opts.verbose&&(c+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+v+" "),c+=" } "):c+=" {} ",Z=c,c=X.pop(),!a.compositeRule&&b?a.async?c+=" throw new ValidationError(["+Z+"]); ":c+=" validate.errors = ["+Z+"]; return false; ":c+=" var err = "+Z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",g=ce,a.errorPath=ie,c+=" } else { "):b?(c+=" if ( "+be+" === undefined ",H&&(c+=" || ! Object.prototype.hasOwnProperty.call("+v+", '"+a.util.escapeQuotes(oe)+"') "),c+=") { "+T+" = true; } else { "):(c+=" if ("+be+" !== undefined ",H&&(c+=" && Object.prototype.hasOwnProperty.call("+v+", '"+a.util.escapeQuotes(oe)+"') "),c+=" ) { "),c+=" "+Ye+" } ")),b&&(c+=" if ("+T+") { ",k+="}")}}if(D.length){var se=D;if(se)for(var fe,me=-1,Ae=se.length-1;me<Ae;){var Be,Ye,Y=R[fe=se[me+=1]];(a.opts.strictKeywords?typeof Y=="object"&&0<Object.keys(Y).length||Y===!1:a.util.schemaHasRules(Y,a.RULES.all))&&(w.schema=Y,w.schemaPath=a.schemaPath+".patternProperties"+a.util.getProperty(fe),w.errSchemaPath=a.errSchemaPath+"/patternProperties/"+a.util.escapeFragment(fe),c=(c+=H?" "+_+" = "+_+" || Object.keys("+v+"); for (var "+I+"=0; "+I+"<"+_+".length; "+I+"++) { var "+S+" = "+_+"["+I+"]; ":" for (var "+S+" in "+v+") { ")+" if ("+a.usePattern(fe)+".test("+S+")) { ",w.errorPath=a.util.getPathExpr(a.errorPath,S,a.opts.jsonPointers),Be=v+"["+S+"]",w.dataPathArr[O]=S,Ye=a.validate(w),w.baseId=Q,a.util.varOccurences(Ye,y)<2?c+=" "+a.util.varReplace(Ye,y,Be)+" ":c+=" var "+y+" = "+Be+"; "+Ye+" ",b&&(c+=" if (!"+T+") break; "),c+=" } ",b&&(c+=" else "+T+" = true; "),c+=" } ",b)&&(c+=" if ("+T+") { ",k+="}")}}return b&&(c+=" "+k+" if ("+m+" == errors) {"),c}},2127:function(o){o.exports=function(a,T,l){var u,c,d,h,f,g,b,v=" ",m=a.level,I=a.dataLevel,w=a.schema[T],k=a.schemaPath+a.util.getProperty(T),T=a.errSchemaPath+"/"+T,S=!a.opts.allErrors,I="data"+(I||""),O="errs__"+m,y=a.util.copy(a),_=(y.level++,"valid"+y.level);return v+="var "+O+" = errors;",(a.opts.strictKeywords?typeof w=="object"&&0<Object.keys(w).length||w===!1:a.util.schemaHasRules(w,a.RULES.all))&&(y.schema=w,y.schemaPath=k,y.errSchemaPath=T,w="idx"+m,c="i"+m,d="' + "+(u="key"+m)+" + '",h="data"+(y.dataLevel=a.dataLevel+1),b="dataProperties"+m,g=a.opts.ownProperties,f=a.baseId,g&&(v+=" var "+b+" = undefined; "),v=v+(g?" "+b+" = "+b+" || Object.keys("+I+"); for (var "+w+"=0; "+w+"<"+b+".length; "+w+"++) { var "+u+" = "+b+"["+w+"]; ":" for (var "+u+" in "+I+") { ")+" var startErrs"+m+" = errors; ",g=u,b=a.compositeRule,a.compositeRule=y.compositeRule=!0,w=a.validate(y),y.baseId=f,a.util.varOccurences(w,h)<2?v+=" "+a.util.varReplace(w,h,g)+" ":v+=" var "+h+" = "+g+"; "+w+" ",a.compositeRule=y.compositeRule=b,v+=" if (!"+_+") { for (var "+c+"=startErrs"+m+"; "+c+"<errors; "+c+"++) { vErrors["+c+"].propertyName = "+u+"; } var err = ",a.createErrors!==!1?(v+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(T)+" , params: { propertyName: '"+d+"' } ",a.opts.messages!==!1&&(v+=" , message: 'property name \\'"+d+"\\' is invalid' "),a.opts.verbose&&(v+=" , schema: validate.schema"+k+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+I+" "),v+=" } "):v+=" {} ",v+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!a.compositeRule&&S&&(a.async?v+=" throw new ValidationError(vErrors); ":v+=" validate.errors = vErrors; return false; "),S&&(v+=" break; "),v+=" } }"),S&&(v+=" if ("+O+" == errors) {"),v}},2331:function(o){o.exports=function(a,g,l){var u,c,d=" ",m=a.level,h=a.dataLevel,f=a.schema[g],g=a.errSchemaPath+"/"+g,b=!a.opts.allErrors,v="data"+(h||""),m="valid"+m;if(f=="#"||f=="#/")c=a.isRoot?(u=a.async,"validate"):(u=a.root.schema.$async===!0,"root.refVal[0]");else{var w=a.resolveRef(a.baseId,f,a.isRoot);if(w===void 0){var k=a.MissingRefError.message(a.baseId,f);if(a.opts.missingRefs=="fail")a.logger.error(k),(T=T||[]).push(d),d="",a.createErrors!==!1?(d+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(g)+" , params: { ref: '"+a.util.escapeQuotes(f)+"' } ",a.opts.messages!==!1&&(d+=" , message: 'can\\'t resolve reference "+a.util.escapeQuotes(f)+"' "),a.opts.verbose&&(d+=" , schema: "+a.util.toQuotedString(f)+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+v+" "),d+=" } "):d+=" {} ",g=d,d=T.pop(),!a.compositeRule&&b?a.async?d+=" throw new ValidationError(["+g+"]); ":d+=" validate.errors = ["+g+"]; return false; ":d+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",b&&(d+=" if (false) { ");else{if(a.opts.missingRefs!="ignore")throw new a.MissingRefError(a.baseId,f,k);a.logger.warn(k),b&&(d+=" if (true) { ")}}else w.inline?((g=a.util.copy(a)).level++,k="valid"+g.level,g.schema=w.schema,g.schemaPath="",g.errSchemaPath=f,d+=" "+a.validate(g).replace(/validate\.schema/g,w.code)+" ",b&&(d+=" if ("+k+") { ")):(u=w.$async===!0||a.async&&w.$async!==!1,c=w.code)}if(c){(T=T||[]).push(d),d="",a.opts.passContext?d+=" "+c+".call(this, ":d+=" "+c+"( ",d+=" "+v+", (dataPath || '')",a.errorPath!='""'&&(d+=" + "+a.errorPath);var T,f=h?"data"+(h-1||""):"parentData",g=d+=" , "+f+" , "+(h?a.dataPathArr[h]:"parentDataProperty")+", rootData) ";if(d=T.pop(),u){if(!a.async)throw new Error("async schema referenced by sync schema");b&&(d+=" var "+m+"; "),d+=" try { await "+g+"; ",b&&(d+=" "+m+" = true; "),d+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",b&&(d+=" "+m+" = false; "),d+=" } ",b&&(d+=" if ("+m+") { ")}else d+=" if (!"+g+") { if (vErrors === null) vErrors = "+c+".errors; else vErrors = vErrors.concat("+c+".errors); errors = vErrors.length; } ",b&&(d+=" else { ")}return d}},1204:function(o){o.exports=function(a,g,l){var u=" ",c=a.level,w=a.dataLevel,d=a.schema[g],h=a.schemaPath+a.util.getProperty(g),f=a.errSchemaPath+"/"+g,g=!a.opts.allErrors,b="data"+(w||""),v="valid"+c,m=a.opts.$data&&d&&d.$data,w=(m&&(u+=" var schema"+c+" = "+a.util.getData(d.$data,w,a.dataPathArr)+"; "),"schema"+c);if(!m)if(d.length<a.opts.loopRequired&&a.schema.properties&&Object.keys(a.schema.properties).length){var k=[],T=d;if(T)for(var S=-1,I=T.length-1;S<I;){var O=T[S+=1],y=a.schema.properties[O];y&&(a.opts.strictKeywords?typeof y=="object"&&0<Object.keys(y).length||y===!1:a.util.schemaHasRules(y,a.RULES.all))||(k[k.length]=O)}}else k=d;if(m||k.length){var _=a.errorPath,d=m||k.length>=a.opts.loopRequired,A=a.opts.ownProperties;if(g){if(u+=" var missing"+c+"; ",d){m||(u+=" var "+w+" = validate.schema"+h+"; ");var R="' + "+(L="schema"+c+"["+(x="i"+c)+"]")+" + '";a.opts._errorDataPathProperty&&(a.errorPath=a.util.getPathExpr(_,L,a.opts.jsonPointers)),u+=" var "+v+" = true; ",m&&(u+=" if (schema"+c+" === undefined) "+v+" = true; else if (!Array.isArray(schema"+c+")) "+v+" = false; else {"),u+=" for (var "+x+" = 0; "+x+" < "+w+".length; "+x+"++) { "+v+" = "+b+"["+w+"["+x+"]] !== undefined ",A&&(u+=" && Object.prototype.hasOwnProperty.call("+b+", "+w+"["+x+"]) "),u+="; if (!"+v+") break; } ",m&&(u+=" } "),($=$||[]).push(u+=" if (!"+v+") { "),u="",a.createErrors!==!1?(u+=" { keyword: 'required' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(f)+" , params: { missingProperty: '"+R+"' } ",a.opts.messages!==!1&&(u+=" , message: '",a.opts._errorDataPathProperty?u+="is a required property":u+="should have required property \\'"+R+"\\'",u+="' "),a.opts.verbose&&(u+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+b+" "),u+=" } "):u+=" {} ";var D=u,u=$.pop()}else{u+=" if ( ";var C=k;if(C)for(var x=-1,P=C.length-1;x<P;)H=C[x+=1],x&&(u+=" || "),u+=" ( ( "+(J=b+(K=a.util.getProperty(H)))+" === undefined ",A&&(u+=" || ! Object.prototype.hasOwnProperty.call("+b+", '"+a.util.escapeQuotes(H)+"') "),u+=") && (missing"+c+" = "+a.util.toQuotedString(a.opts.jsonPointers?H:K)+") ) ";u+=") { ",R="' + "+(L="missing"+c)+" + '",a.opts._errorDataPathProperty&&(a.errorPath=a.opts.jsonPointers?a.util.getPathExpr(_,L,!0):_+" + "+L),($=$||[]).push(u),u="",a.createErrors!==!1?(u+=" { keyword: 'required' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(f)+" , params: { missingProperty: '"+R+"' } ",a.opts.messages!==!1&&(u+=" , message: '",a.opts._errorDataPathProperty?u+="is a required property":u+="should have required property \\'"+R+"\\'",u+="' "),a.opts.verbose&&(u+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+b+" "),u+=" } "):u+=" {} ";var $,D=u;u=$.pop()}!a.compositeRule&&g?a.async?u+=" throw new ValidationError(["+D+"]); ":u+=" validate.errors = ["+D+"]; return false; ":u+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u+=" } else { "}else if(d){m||(u+=" var "+w+" = validate.schema"+h+"; ");var L,R="' + "+(L="schema"+c+"["+(x="i"+c)+"]")+" + '";a.opts._errorDataPathProperty&&(a.errorPath=a.util.getPathExpr(_,L,a.opts.jsonPointers)),m&&(u+=" if ("+w+" && !Array.isArray("+w+")) { var err = ",a.createErrors!==!1?(u+=" { keyword: 'required' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(f)+" , params: { missingProperty: '"+R+"' } ",a.opts.messages!==!1&&(u+=" , message: '",a.opts._errorDataPathProperty?u+="is a required property":u+="should have required property \\'"+R+"\\'",u+="' "),a.opts.verbose&&(u+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+b+" "),u+=" } "):u+=" {} ",u+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+w+" !== undefined) { "),u+=" for (var "+x+" = 0; "+x+" < "+w+".length; "+x+"++) { if ("+b+"["+w+"["+x+"]] === undefined ",A&&(u+=" || ! Object.prototype.hasOwnProperty.call("+b+", "+w+"["+x+"]) "),u+=") { var err = ",a.createErrors!==!1?(u+=" { keyword: 'required' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(f)+" , params: { missingProperty: '"+R+"' } ",a.opts.messages!==!1&&(u+=" , message: '",a.opts._errorDataPathProperty?u+="is a required property":u+="should have required property \\'"+R+"\\'",u+="' "),a.opts.verbose&&(u+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+b+" "),u+=" } "):u+=" {} ",u+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",m&&(u+=" } ")}else{var V=k;if(V)for(var H,Q=-1,U=V.length-1;Q<U;){H=V[Q+=1];var K=a.util.getProperty(H),R=a.util.escapeQuotes(H),J=b+K;a.opts._errorDataPathProperty&&(a.errorPath=a.util.getPath(_,H,a.opts.jsonPointers)),u+=" if ( "+J+" === undefined ",A&&(u+=" || ! Object.prototype.hasOwnProperty.call("+b+", '"+a.util.escapeQuotes(H)+"') "),u+=") { var err = ",a.createErrors!==!1?(u+=" { keyword: 'required' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(f)+" , params: { missingProperty: '"+R+"' } ",a.opts.messages!==!1&&(u+=" , message: '",a.opts._errorDataPathProperty?u+="is a required property":u+="should have required property \\'"+R+"\\'",u+="' "),a.opts.verbose&&(u+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+b+" "),u+=" } "):u+=" {} ",u+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}a.errorPath=_}else g&&(u+=" if (true) {");return u}},1985:function(o){o.exports=function(a,g,l){var u,c=" ",d=a.level,k=a.dataLevel,h=a.schema[g],f=a.schemaPath+a.util.getProperty(g),g=a.errSchemaPath+"/"+g,b=!a.opts.allErrors,v="data"+(k||""),m="valid"+d,w=a.opts.$data&&h&&h.$data,k=w?(c+=" var schema"+d+" = "+a.util.getData(h.$data,k,a.dataPathArr)+"; ","schema"+d):h;return(h||w)&&a.opts.uniqueItems!==!1?(w&&(c+=" var "+m+"; if ("+k+" === false || "+k+" === undefined) "+m+" = true; else if (typeof "+k+" != 'boolean') "+m+" = false; else { "),c+=" var i = "+v+".length , "+m+" = true , j; if (i > 1) { ",d=a.schema.items&&a.schema.items.type,k=Array.isArray(d),!d||d=="object"||d=="array"||k&&(0<=d.indexOf("object")||0<=d.indexOf("array"))?c+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+v+"[i], "+v+"[j])) { "+m+" = false; break outer; } } } ":(c=(c+=" var itemIndices = {}, item; for (;i--;) { var item = "+v+"[i]; ")+" if ("+a.util["checkDataType"+(k?"s":"")](d,"item",a.opts.strictNumbers,!0)+") continue; ",k&&(c+=` if (typeof item == 'string') item = '"' + item; `),c+=" if (typeof itemIndices[item] == 'number') { "+m+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "),c+=" } ",w&&(c+=" } "),(u=u||[]).push(c+=" if (!"+m+") { "),c="",a.createErrors!==!1?(c+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(g)+" , params: { i: i, j: j } ",a.opts.messages!==!1&&(c+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),a.opts.verbose&&(c=(c+=" , schema: ")+(w?"validate.schema"+f:""+h)+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+v+" "),c+=" } "):c+=" {} ",d=c,c=u.pop(),!a.compositeRule&&b?a.async?c+=" throw new ValidationError(["+d+"]); ":c+=" validate.errors = ["+d+"]; return false; ":c+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c+=" } ",b&&(c+=" else { ")):b&&(c+=" if (true) { "),c}},1869:function(o){o.exports=function(a,s,l){var u="",c=a.schema.$async===!0,d=a.util.schemaHasRulesExcept(a.schema,a.RULES.all,"$ref"),h=a.self._getId(a.schema);if(a.opts.strictKeywords){var f=a.util.schemaUnknownRules(a.schema,a.RULES.keywords);if(f){if(f="unknown keyword: "+f,a.opts.strictKeywords!=="log")throw new Error(f);a.logger.warn(f)}}if(a.isTop&&(u+=" var validate = ",c&&(a.async=!0,u+="async "),u+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",h)&&(a.opts.sourceCode||a.opts.processCode)&&(u+=" /*# sourceURL="+h+" */ "),typeof a.schema=="boolean"||!d&&!a.schema.$ref)b=a.level,v=a.dataLevel,J=a.schema[s="false schema"],R=a.schemaPath+a.util.getProperty(s),D=a.errSchemaPath+"/"+s,T=!a.opts.allErrors,m="data"+(v||""),k="valid"+b,a.schema===!1?(a.isTop?T=!0:u+=" var "+k+" = false; ",(ve=ve||[]).push(u),u="",a.createErrors!==!1?(u+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(D)+" , params: {} ",a.opts.messages!==!1&&(u+=" , message: 'boolean schema is false' "),a.opts.verbose&&(u+=" , schema: false , parentSchema: validate.schema"+a.schemaPath+" , data: "+m+" "),u+=" } "):u+=" {} ",H=u,u=ve.pop(),!a.compositeRule&&T?a.async?u+=" throw new ValidationError(["+H+"]); ":u+=" validate.errors = ["+H+"]; return false; ":u+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "):a.isTop?u+=c?" return data; ":" validate.errors = null; return true; ":u+=" var "+k+" = true; ",a.isTop&&(u+=" }; return validate; ");else{if(a.isTop){var g=a.isTop,b=a.level=0,v=a.dataLevel=0,m="data";if(a.rootId=a.resolve.fullPath(a.self._getId(a.root.schema)),a.baseId=a.baseId||a.rootId,delete a.isTop,a.dataPathArr=[""],a.schema.default!==void 0&&a.opts.useDefaults&&a.opts.strictDefaults){var w="default is ignored in the schema root";if(a.opts.strictDefaults!=="log")throw new Error(w);a.logger.warn(w)}u=(u+=" var vErrors = null; ")+" var errors = 0; if (rootData === undefined) rootData = data; "}else{if(b=a.level,m="data"+((v=a.dataLevel)||""),h&&(a.baseId=a.resolve.url(a.baseId,h)),c&&!a.async)throw new Error("async schema in sync schema");u+=" var errs_"+b+" = errors;"}var k="valid"+b,T=!a.opts.allErrors,S="",I="",O=a.schema.type,y=Array.isArray(O);if(O&&a.opts.nullable&&a.schema.nullable===!0&&(y?O.indexOf("null")==-1&&(O=O.concat("null")):O!="null"&&(O=[O,"null"],y=!0)),y&&O.length==1&&(O=O[0],y=!1),a.schema.$ref&&d){if(a.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+a.errSchemaPath+'" (see option extendRefs)');a.opts.extendRefs!==!0&&(d=!1,a.logger.warn('$ref: keywords ignored in schema at path "'+a.errSchemaPath+'"'))}if(a.schema.$comment&&a.opts.$comment&&(u+=" "+a.RULES.all.$comment.code(a,"$comment")),O){a.opts.coerceTypes&&(_=a.util.coerceToTypes(a.opts.coerceTypes,O));var _,A=a.RULES.types[O];if(_||y||A===!0||A&&!ce(A)){var R=a.schemaPath+".type",D=a.errSchemaPath+"/type",R=a.schemaPath+".type",D=a.errSchemaPath+"/type";if(u+=" if ("+a.util[y?"checkDataTypes":"checkDataType"](O,m,a.opts.strictNumbers,!0)+") { ",_){var C="dataType"+b,x="coerced"+b,P=(u+=" var "+C+" = typeof "+m+"; var "+x+" = undefined; ",a.opts.coerceTypes=="array"&&(u+=" if ("+C+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+C+" = typeof "+m+"; if ("+a.util.checkDataType(a.schema.type,m,a.opts.strictNumbers)+") "+x+" = "+m+"; } "),u+=" if ("+x+" !== undefined) ; ",_);if(P)for(var $,L=-1,V=P.length-1;L<V;)($=P[L+=1])=="string"?u+=" else if ("+C+" == 'number' || "+C+" == 'boolean') "+x+" = '' + "+m+"; else if ("+m+" === null) "+x+" = ''; ":$=="number"||$=="integer"?(u+=" else if ("+C+" == 'boolean' || "+m+" === null || ("+C+" == 'string' && "+m+" && "+m+" == +"+m+" ",$=="integer"&&(u+=" && !("+m+" % 1)"),u+=")) "+x+" = +"+m+"; "):$=="boolean"?u+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+x+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+x+" = true; ":$=="null"?u+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+x+" = null; ":a.opts.coerceTypes=="array"&&$=="array"&&(u+=" else if ("+C+" == 'string' || "+C+" == 'number' || "+C+" == 'boolean' || "+m+" == null) "+x+" = ["+m+"]; ");(ve=ve||[]).push(u+=" else { "),u="",a.createErrors!==!1?(u=(u+=" { keyword: 'type' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(D)+" , params: { type: '")+(y?""+O.join(","):""+O)+"' } ",a.opts.messages!==!1&&(u=(u+=" , message: 'should be ")+(y?""+O.join(","):""+O)+"' "),a.opts.verbose&&(u+=" , schema: validate.schema"+R+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+m+" "),u+=" } "):u+=" {} ";var H=u,f=(u=ve.pop(),!a.compositeRule&&T?a.async?u+=" throw new ValidationError(["+H+"]); ":u+=" validate.errors = ["+H+"]; return false; ":u+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",v?"data"+(v-1||""):"parentData");u=u+(" } if ("+x+" !== undefined) { ")+(" "+m+" = "+x+"; "),v||(u+="if ("+f+" !== undefined)"),u+=" "+f+"["+(v?a.dataPathArr[v]:"parentDataProperty")+"] = "+x+"; } "}else H=((ve=ve||[]).push(u),u="",a.createErrors!==!1?(u=(u+=" { keyword: 'type' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(D)+" , params: { type: '")+(y?""+O.join(","):""+O)+"' } ",a.opts.messages!==!1&&(u=(u+=" , message: 'should be ")+(y?""+O.join(","):""+O)+"' "),a.opts.verbose&&(u+=" , schema: validate.schema"+R+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+m+" "),u+=" } "):u+=" {} ",u),u=ve.pop(),!a.compositeRule&&T?a.async?u+=" throw new ValidationError(["+H+"]); ":u+=" validate.errors = ["+H+"]; return false; ":u+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";u+=" } "}}if(a.schema.$ref&&!d)u+=" "+a.RULES.all.$ref.code(a,"$ref")+" ",T&&(u=(u+=" } if (errors === ")+(g?"0":"errs_"+b)+") { ",I+="}");else{var Q=a.RULES;if(Q){for(var U=-1,K=Q.length-1;U<K;)if(ce(A=Q[U+=1])){if(A.type&&(u+=" if ("+a.util.checkDataType(A.type,m,a.opts.strictNumbers)+") { "),a.opts.useDefaults){if(A.type=="object"&&a.schema.properties){var J=a.schema.properties,ue=Object.keys(J);if(ue){for(var ee,N=-1,q=ue.length-1;N<q;)if((le=J[ee=ue[N+=1]]).default!==void 0){var G=m+a.util.getProperty(ee);if(a.compositeRule){if(a.opts.strictDefaults){if(w="default is ignored for: "+G,a.opts.strictDefaults!=="log")throw new Error(w);a.logger.warn(w)}}else u+=" if ("+G+" === undefined ",a.opts.useDefaults=="empty"&&(u+=" || "+G+" === null || "+G+" === '' "),u+=" ) "+G+" = ",a.opts.useDefaults=="shared"?u+=" "+a.useDefault(le.default)+" ":u+=" "+JSON.stringify(le.default)+" ",u+="; "}}}else if(A.type=="array"&&Array.isArray(a.schema.items)){var ne=a.schema.items;if(ne){for(var le,L=-1,oe=ne.length-1;L<oe;)if((le=ne[L+=1]).default!==void 0)if(G=m+"["+L+"]",a.compositeRule){if(a.opts.strictDefaults){if(w="default is ignored for: "+G,a.opts.strictDefaults!=="log")throw new Error(w);a.logger.warn(w)}}else u+=" if ("+G+" === undefined ",a.opts.useDefaults=="empty"&&(u+=" || "+G+" === null || "+G+" === '' "),u+=" ) "+G+" = ",a.opts.useDefaults=="shared"?u+=" "+a.useDefault(le.default)+" ":u+=" "+JSON.stringify(le.default)+" ",u+="; "}}}var ve,de=A.rules;if(de)for(var ae,be=-1,ie=de.length-1;be<ie;)pe(ae=de[be+=1])&&(ae=ae.code(a,ae.keyword,A.type))&&(u+=" "+ae+" ",T)&&(S+="}");T&&(u+=" "+S+" ",S=""),A.type&&(u+=" } ",O)&&O===A.type&&!_&&(u+=" else { ",R=a.schemaPath+".type",D=a.errSchemaPath+"/type",(ve=ve||[]).push(u),u="",a.createErrors!==!1?(u=(u+=" { keyword: 'type' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(D)+" , params: { type: '")+(y?""+O.join(","):""+O)+"' } ",a.opts.messages!==!1&&(u=(u+=" , message: 'should be ")+(y?""+O.join(","):""+O)+"' "),a.opts.verbose&&(u+=" , schema: validate.schema"+R+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+m+" "),u+=" } "):u+=" {} ",H=u,u=ve.pop(),!a.compositeRule&&T?a.async?u+=" throw new ValidationError(["+H+"]); ":u+=" validate.errors = ["+H+"]; return false; ":u+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u+=" } "),T&&(u=(u+=" if (errors === ")+(g?"0":"errs_"+b)+") { ",I+="}")}}}T&&(u+=" "+I+" "),g?u=u+(c?" if (errors === 0) return data; else throw new ValidationError(vErrors); ":" validate.errors = vErrors; return errors === 0; ")+" }; return validate;":u+=" var "+k+" = errors === errs_"+b+";"}return u;function ce(X){for(var Z=X.rules,Y=0;Y<Z.length;Y++)if(pe(Z[Y]))return 1}function pe(X){return a.schema[X.keyword]!==void 0||X.implements&&function(Z){for(var Y=Z.implements,se=0;se<Y.length;se++)if(a.schema[Y[se]]!==void 0)return 1}(X)}}},7931:function(o,a,s){var l=/^[a-z_$][a-z0-9_$-]*$/i,u=s(1793),c=s(5868);function d(h,f){d.errors=null;var g=this._validateKeyword=this._validateKeyword||this.compile(c,!0);if(g(h))return!0;if(d.errors=g.errors,f)throw new Error("custom keyword definition is invalid: "+this.errorsText(g.errors));return!1}o.exports={add:function(h,f){var g=this.RULES;if(g.keywords[h])throw new Error("Keyword "+h+" is already defined");if(!l.test(h))throw new Error("Keyword "+h+" is not a valid identifier");if(f){this.validateKeyword(f,!0);var b=f.type;if(Array.isArray(b))for(var v=0;v<b.length;v++)w(h,b[v],f);else w(h,b,f);var m=f.metaSchema;m&&(f.$data&&this._opts.$data&&(m={anyOf:[m,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),f.validateSchema=this.compile(m,!0))}function w(k,T,S){for(var I,O=0;O<g.length;O++){var y=g[O];if(y.type==T){I=y;break}}I||g.push(I={type:T,rules:[]}),S={keyword:k,definition:S,custom:!0,code:u,implements:S.implements},I.rules.push(S),g.custom[k]=S}return g.keywords[h]=g.all[h]=!0,this},get:function(h){var f=this.RULES.custom[h];return f?f.definition:this.RULES.keywords[h]||!1},remove:function(h){var f=this.RULES;delete f.keywords[h],delete f.all[h],delete f.custom[h];for(var g=0;g<f.length;g++)for(var b=f[g].rules,v=0;v<b.length;v++)if(b[v].keyword==h){b.splice(v,1);break}return this},validate:d}},2303:function(o){o.exports=function a(s,l){if(s===l)return!0;if(s&&l&&typeof s=="object"&&typeof l=="object"){if(s.constructor!==l.constructor)return!1;var u,c,d;if(Array.isArray(s)){if((u=s.length)!=l.length)return!1;for(c=u;c--!=0;)if(!a(s[c],l[c]))return!1}else{if(s.constructor===RegExp)return s.source===l.source&&s.flags===l.flags;if(s.valueOf!==Object.prototype.valueOf)return s.valueOf()===l.valueOf();if(s.toString!==Object.prototype.toString)return s.toString()===l.toString();if((u=(d=Object.keys(s)).length)!==Object.keys(l).length)return!1;for(c=u;c--!=0;)if(!Object.prototype.hasOwnProperty.call(l,d[c]))return!1;for(c=u;c--!=0;){var h=d[c];if(!a(s[h],l[h]))return!1}}return!0}return s!=s&&l!=l}},3508:function(o){o.exports=function(a,s){var l,u=typeof(s=typeof(s=s||{})=="function"?{cmp:s}:s).cycles=="boolean"&&s.cycles,c=s.cmp&&(l=s.cmp,function(h){return function(f,g){return f={key:f,value:h[f]},g={key:g,value:h[g]},l(f,g)}}),d=[];return function h(f){if((f=f&&f.toJSON&&typeof f.toJSON=="function"?f.toJSON():f)!==void 0){if(typeof f=="number")return isFinite(f)?""+f:"null";if(typeof f!="object")return JSON.stringify(f);if(Array.isArray(f)){for(v="[",m=0;m<f.length;m++)m&&(v+=","),v+=h(f[m])||"null";return v+"]"}if(f===null)return"null";if(d.indexOf(f)!==-1){if(u)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}for(var g=d.push(f)-1,b=Object.keys(f).sort(c&&c(f)),v="",m=0;m<b.length;m++){var w=b[m],k=h(f[w]);k&&(v&&(v+=","),v+=JSON.stringify(w)+":"+k)}return d.splice(g,1),"{"+v+"}"}}(a)}},233:function(o){o.exports=function a(b,v){function u(O){return a.insensitive&&(""+O).toLowerCase()||""+O}var c,d,T=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,k=/(^[ ]*|[ ]*$)/g,h=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,f=/^0x[0-9a-f]+$/i,g=/^0/,b=u(b).replace(k,"")||"",v=u(v).replace(k,"")||"",m=b.replace(T,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),w=v.replace(T,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),k=parseInt(b.match(f),16)||m.length!==1&&b.match(h)&&Date.parse(b),T=parseInt(v.match(f),16)||k&&v.match(h)&&Date.parse(v)||null;if(T){if(k<T)return-1;if(T<k)return 1}for(var S=0,I=Math.max(m.length,w.length);S<I;S++){if(c=!(m[S]||"").match(g)&&parseFloat(m[S])||m[S]||0,d=!(w[S]||"").match(g)&&parseFloat(w[S])||w[S]||0,isNaN(c)!==isNaN(d))return isNaN(c)?1:-1;if(typeof c!=typeof d&&(c+="",d+=""),c<d)return-1;if(d<c)return 1}return 0}},5156:function(o,a){(function(s){function l(ee){return ee!==null&&Object.prototype.toString.call(ee)==="[object Array]"}function u(ee){return ee!==null&&Object.prototype.toString.call(ee)==="[object Object]"}function c(ee,N){if(ee!==N){if(Object.prototype.toString.call(ee)!==Object.prototype.toString.call(N))return!1;if(l(ee)===!0){if(ee.length!==N.length)return!1;for(var q=0;q<ee.length;q++)if(c(ee[q],N[q])===!1)return!1}else{if(u(ee)!==!0)return!1;var G,ne,le={};for(G in ee)if(hasOwnProperty.call(ee,G)){if(c(ee[G],N[G])===!1)return!1;le[G]=!0}for(ne in N)if(hasOwnProperty.call(N,ne)&&le[ne]!==!0)return!1}}return!0}function d(ee){if(ee===""||ee===!1||ee===null||l(ee)&&ee.length===0)return!0;if(u(ee)){for(var N in ee)if(ee.hasOwnProperty(N))return!1;return!0}return!1}var h=typeof String.prototype.trimLeft=="function"?function(ee){return ee.trimLeft()}:function(ee){return ee.match(/^\s*(.*)/)[1]},f={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},g="UnquotedIdentifier",b="QuotedIdentifier",v="Rbracket",m="Rparen",w="Comma",k="Colon",T="Rbrace",S="Number",I="Current",O="Expref",y="Pipe",_="Flatten",A="Star",R="Filter",D="Lbrace",C="Lbracket",x="Lparen",P="Literal",$={".":"Dot","*":A,",":w,":":k,"{":D,"}":T,"]":v,"(":x,")":m,"@":I},L={"<":!0,">":!0,"=":!0,"!":!0},V={" ":!0," ":!0,"\n":!0};function H(ee){return"0"<=ee&&ee<="9"||ee==="-"}function Q(){}Q.prototype={tokenize:function(ee){var N,q,G=[];for(this._current=0;this._current<ee.length;)if("a"<=(le=ee[this._current])&&le<="z"||"A"<=le&&le<="Z"||le==="_")ne=this._current,N=this._consumeUnquotedIdentifier(ee),G.push({type:g,value:N,start:ne});else if($[ee[this._current]]!==void 0)G.push({type:$[ee[this._current]],value:ee[this._current],start:this._current}),this._current++;else if(H(ee[this._current]))q=this._consumeNumber(ee),G.push(q);else if(ee[this._current]==="[")q=this._consumeLBracket(ee),G.push(q);else if(ee[this._current]==='"')ne=this._current,N=this._consumeQuotedIdentifier(ee),G.push({type:b,value:N,start:ne});else if(ee[this._current]==="'")ne=this._current,N=this._consumeRawStringLiteral(ee),G.push({type:P,value:N,start:ne});else if(ee[this._current]==="`"){var ne=this._current,le=this._consumeLiteral(ee);G.push({type:P,value:le,start:ne})}else if(L[ee[this._current]]!==void 0)G.push(this._consumeOperator(ee));else if(V[ee[this._current]]!==void 0)this._current++;else if(ee[this._current]==="&")ne=this._current,this._current++,ee[this._current]==="&"?(this._current++,G.push({type:"And",value:"&&",start:ne})):G.push({type:O,value:"&",start:ne});else{if(ee[this._current]!=="|")throw(le=new Error("Unknown character:"+ee[this._current])).name="LexerError",le;ne=this._current,this._current++,ee[this._current]==="|"?(this._current++,G.push({type:"Or",value:"||",start:ne})):G.push({type:y,value:"|",start:ne})}return G},_consumeUnquotedIdentifier:function(ee){var N,q=this._current;for(this._current++;this._current<ee.length&&("a"<=(N=ee[this._current])&&N<="z"||"A"<=N&&N<="Z"||"0"<=N&&N<="9"||N==="_");)this._current++;return ee.slice(q,this._current)},_consumeQuotedIdentifier:function(ee){for(var N=this._current,q=(this._current++,ee.length);ee[this._current]!=='"'&&this._current<q;){var G=this._current;ee[G]!=="\\"||ee[G+1]!=="\\"&&ee[G+1]!=='"'?G++:G+=2,this._current=G}return this._current++,JSON.parse(ee.slice(N,this._current))},_consumeRawStringLiteral:function(ee){for(var N=this._current,q=(this._current++,ee.length);ee[this._current]!=="'"&&this._current<q;){var G=this._current;ee[G]!=="\\"||ee[G+1]!=="\\"&&ee[G+1]!=="'"?G++:G+=2,this._current=G}return this._current++,ee.slice(N+1,this._current-1).replace("\\'","'")},_consumeNumber:function(ee){for(var N=this._current,q=(this._current++,ee.length);H(ee[this._current])&&this._current<q;)this._current++;var G=parseInt(ee.slice(N,this._current));return{type:S,value:G,start:N}},_consumeLBracket:function(ee){var N=this._current;return this._current++,ee[this._current]==="?"?(this._current++,{type:R,value:"[?",start:N}):ee[this._current]==="]"?(this._current++,{type:_,value:"[]",start:N}):{type:C,value:"[",start:N}},_consumeOperator:function(ee){var N=this._current,q=ee[N];return this._current++,q==="!"?ee[this._current]==="="?(this._current++,{type:"NE",value:"!=",start:N}):{type:"Not",value:"!",start:N}:q==="<"?ee[this._current]==="="?(this._current++,{type:"LTE",value:"<=",start:N}):{type:"LT",value:"<",start:N}:q===">"?ee[this._current]==="="?(this._current++,{type:"GTE",value:">=",start:N}):{type:"GT",value:">",start:N}:q==="="&&ee[this._current]==="="?(this._current++,{type:"EQ",value:"==",start:N}):void 0},_consumeLiteral:function(ee){this._current++;for(var N=this._current,q=ee.length;ee[this._current]!=="`"&&this._current<q;){var G=this._current;ee[G]!=="\\"||ee[G+1]!=="\\"&&ee[G+1]!=="`"?G++:G+=2,this._current=G}return N=(N=h(ee.slice(N,this._current))).replace("\\`","`"),N=this._looksLikeJSON(N)?JSON.parse(N):JSON.parse('"'+N+'"'),this._current++,N},_looksLikeJSON:function(ee){if(ee==="")return!1;if(0<='[{"'.indexOf(ee[0])||0<=["true","false","null"].indexOf(ee))return!0;if(!(0<="-0123456789".indexOf(ee[0])))return!1;try{return JSON.parse(ee),!0}catch{return!1}}};var U={};function K(){}function J(ee){this.runtime=ee}function ue(ee){this._interpreter=ee,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[0]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[0]}]},contains:{_func:this._functionContains,_signature:[{types:[2,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[2]},{types:[2]}]},floor:{_func:this._functionFloor,_signature:[{types:[0]}]},length:{_func:this._functionLength,_signature:[{types:[2,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[2]},{types:[2]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[2]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[2,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}U.EOF=0,U[g]=0,U[b]=0,U[v]=0,U[m]=0,U[w]=0,U[T]=0,U[S]=0,U[I]=0,U[O]=0,U.Pipe=1,U.Or=2,U.And=3,U.EQ=5,U.GT=5,U.LT=5,U.GTE=5,U.LTE=5,U.NE=5,U[_]=9,U.Star=20,U[R]=21,U.Dot=40,U.Not=45,U[D]=50,U[C]=55,U[x]=60,K.prototype={parse:function(q){this._loadTokens(q),this.index=0;var N,q=this.expression(0);if(this._lookahead(0)!=="EOF")throw N=this._lookaheadToken(0),(N=new Error("Unexpected token type: "+N.type+", value: "+N.value)).name="ParserError",N;return q},_loadTokens:function(ee){var N=new Q().tokenize(ee);N.push({type:"EOF",value:"",start:ee.length}),this.tokens=N},expression:function(ee){for(var N=this._lookaheadToken(0),q=(this._advance(),this.nud(N)),G=this._lookahead(0);ee<U[G];)this._advance(),q=this.led(G,q),G=this._lookahead(0);return q},_lookahead:function(ee){return this.tokens[this.index+ee].type},_lookaheadToken:function(ee){return this.tokens[this.index+ee]},_advance:function(){this.index++},nud:function(ee){var N,q;switch(ee.type){case P:return{type:"Literal",value:ee.value};case g:return{type:"Field",name:ee.value};case b:var G={type:"Field",name:ee.value};if(this._lookahead(0)===x)throw new Error("Quoted identifier not allowed for function names.");return G;case"Not":return{type:"NotExpression",children:[N=this.expression(U.Not)]};case A:return N=null,{type:"ValueProjection",children:[{type:"Identity"},N=this._lookahead(0)===v?{type:"Identity"}:this._parseProjectionRHS(U.Star)]};case R:return this.led(ee.type,{type:"Identity"});case D:return this._parseMultiselectHash();case _:return{type:"Projection",children:[{type:_,children:[{type:"Identity"}]},N=this._parseProjectionRHS(U.Flatten)]};case C:return this._lookahead(0)===S||this._lookahead(0)===k?(N=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},N)):this._lookahead(0)===A&&this._lookahead(1)===v?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},N=this._parseProjectionRHS(U.Star)]}):this._parseMultiselectList();case I:return{type:I};case O:return{type:"ExpressionReference",children:[q=this.expression(U.Expref)]};case x:for(var ne=[];this._lookahead(0)!==m;)this._lookahead(0)===I?(q={type:I},this._advance()):q=this.expression(0),ne.push(q);return this._match(m),ne[0];default:this._errorToken(ee)}},led:function(ee,N){var q;switch(ee){case"Dot":var G=U.Dot;return this._lookahead(0)!==A?{type:"Subexpression",children:[N,q=this._parseDotRHS(G)]}:(this._advance(),{type:"ValueProjection",children:[N,q=this._parseProjectionRHS(G)]});case y:return q=this.expression(U.Pipe),{type:y,children:[N,q]};case"Or":return{type:"OrExpression",children:[N,q=this.expression(U.Or)]};case"And":return{type:"AndExpression",children:[N,q=this.expression(U.And)]};case x:for(var ne,G=N.name,le=[];this._lookahead(0)!==m;)this._lookahead(0)===I?(ne={type:I},this._advance()):ne=this.expression(0),this._lookahead(0)===w&&this._match(w),le.push(ne);return this._match(m),{type:"Function",name:G,children:le};case R:return G=this.expression(0),this._match(v),{type:"FilterProjection",children:[N,q=this._lookahead(0)===_?{type:"Identity"}:this._parseProjectionRHS(U.Filter),G]};case _:return{type:"Projection",children:[{type:_,children:[N]},this._parseProjectionRHS(U.Flatten)]};case"EQ":case"NE":case"GT":case"GTE":case"LT":case"LTE":return this._parseComparator(N,ee);case C:return G=this._lookaheadToken(0),G.type===S||G.type===k?(q=this._parseIndexExpression(),this._projectIfSlice(N,q)):(this._match(A),this._match(v),{type:"Projection",children:[N,q=this._parseProjectionRHS(U.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(ee){var N;if(this._lookahead(0)!==ee)throw N=this._lookaheadToken(0),(ee=new Error("Expected "+ee+", got: "+N.type)).name="ParserError",ee;this._advance()},_errorToken:function(ee){throw ee=new Error("Invalid token ("+ee.type+'): "'+ee.value+'"'),ee.name="ParserError",ee},_parseIndexExpression:function(){var ee;return this._lookahead(0)===k||this._lookahead(1)===k?this._parseSliceExpression():(ee={type:"Index",value:this._lookaheadToken(0).value},this._advance(),this._match(v),ee)},_projectIfSlice:function(ee,N){return ee={type:"IndexExpression",children:[ee,N]},N.type==="Slice"?{type:"Projection",children:[ee,this._parseProjectionRHS(U.Star)]}:ee},_parseSliceExpression:function(){for(var ee,N=[null,null,null],q=0,G=this._lookahead(0);G!==v&&q<3;){if(G===k)q++;else{if(G!==S)throw ee=this._lookahead(0),(ee=new Error("Syntax error, unexpected token: "+ee.value+"("+ee.type+")")).name="Parsererror",ee;N[q]=this._lookaheadToken(0).value}this._advance(),G=this._lookahead(0)}return this._match(v),{type:"Slice",children:N}},_parseComparator:function(ee,N){return{type:"Comparator",name:N,children:[ee,this.expression(U[N])]}},_parseDotRHS:function(ee){var N=this._lookahead(0);return 0<=[g,b,A].indexOf(N)?this.expression(ee):N===C?(this._match(C),this._parseMultiselectList()):N===D?(this._match(D),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(ee){var N,q;if(U[this._lookahead(0)]<10)N={type:"Identity"};else if(this._lookahead(0)===C)N=this.expression(ee);else if(this._lookahead(0)===R)N=this.expression(ee);else{if(this._lookahead(0)!=="Dot")throw q=this._lookaheadToken(0),(q=new Error("Sytanx error, unexpected token: "+q.value+"("+q.type+")")).name="ParserError",q;this._match("Dot"),N=this._parseDotRHS(ee)}return N},_parseMultiselectList:function(){for(var ee=[];this._lookahead(0)!==v;){var N=this.expression(0);if(ee.push(N),this._lookahead(0)===w&&(this._match(w),this._lookahead(0)===v))throw new Error("Unexpected token Rbracket")}return this._match(v),{type:"MultiSelectList",children:ee}},_parseMultiselectHash:function(){for(var ee,N,q=[],G=[g,b];;){if(ee=this._lookaheadToken(0),G.indexOf(ee.type)<0)throw new Error("Expecting an identifier token, got: "+ee.type);if(ee=ee.value,this._advance(),this._match(k),N=this.expression(0),q.push({type:"KeyValuePair",name:ee,value:N}),this._lookahead(0)===w)this._match(w);else if(this._lookahead(0)===T){this._match(T);break}}return{type:"MultiSelectHash",children:q}}},J.prototype={search:function(ee,N){return this.visit(ee,N)},visit:function(ee,N){var q,G,ne,le,oe,ve;switch(ee.type){case"Field":return N!==null&&u(N)?(de=N[ee.name])===void 0?null:de:null;case"Subexpression":for(ce=this.visit(ee.children[0],N),Y=1;Y<ee.children.length;Y++)if((ce=this.visit(ee.children[1],ce))===null)return null;return ce;case"IndexExpression":return oe=this.visit(ee.children[0],N),this.visit(ee.children[1],oe);case"Index":return l(N)?(ce=N[de=(de=ee.value)<0?N.length+de:de])===void 0?null:ce:null;case"Slice":if(!l(N))return null;var de=ee.children.slice(0),de=this.computeSliceParams(N.length,de),ae=de[0],be=de[1],ie=de[2],ce=[];if(0<ie)for(Y=ae;Y<be;Y+=ie)ce.push(N[Y]);else for(Y=ae;be<Y;Y+=ie)ce.push(N[Y]);return ce;case"Projection":var pe=this.visit(ee.children[0],N);if(!l(pe))return null;for(X=[],Y=0;Y<pe.length;Y++)(G=this.visit(ee.children[1],pe[Y]))!==null&&X.push(G);return X;case"ValueProjection":if(!u(pe=this.visit(ee.children[0],N)))return null;for(var X=[],Z=function(Qe){for(var nt=Object.keys(Qe),st=[],Le=0;Le<nt.length;Le++)st.push(Qe[nt[Le]]);return st}(pe),Y=0;Y<Z.length;Y++)(G=this.visit(ee.children[1],Z[Y]))!==null&&X.push(G);return X;case"FilterProjection":if(!l(pe=this.visit(ee.children[0],N)))return null;var se=[],fe=[];for(Y=0;Y<pe.length;Y++)d(q=this.visit(ee.children[2],pe[Y]))||se.push(pe[Y]);for(var me=0;me<se.length;me++)(G=this.visit(ee.children[1],se[me]))!==null&&fe.push(G);return fe;case"Comparator":switch(ne=this.visit(ee.children[0],N),le=this.visit(ee.children[1],N),ee.name){case"EQ":ce=c(ne,le);break;case"NE":ce=!c(ne,le);break;case"GT":ce=le<ne;break;case"GTE":ce=le<=ne;break;case"LT":ce=ne<le;break;case"LTE":ce=ne<=le;break;default:throw new Error("Unknown comparator: "+ee.name)}return ce;case _:var Ae=this.visit(ee.children[0],N);if(!l(Ae))return null;var Be=[];for(Y=0;Y<Ae.length;Y++)l(G=Ae[Y])?Be.push.apply(Be,G):Be.push(G);return Be;case"Identity":return N;case"MultiSelectList":if(N===null)return null;for(X=[],Y=0;Y<ee.children.length;Y++)X.push(this.visit(ee.children[Y],N));return X;case"MultiSelectHash":if(N===null)return null;for(X={},Y=0;Y<ee.children.length;Y++)X[(ve=ee.children[Y]).name]=this.visit(ve.value,N);return X;case"OrExpression":return q=d(q=this.visit(ee.children[0],N))?this.visit(ee.children[1],N):q;case"AndExpression":return d(ne=this.visit(ee.children[0],N))===!0?ne:this.visit(ee.children[1],N);case"NotExpression":return d(ne=this.visit(ee.children[0],N));case"Literal":return ee.value;case y:return oe=this.visit(ee.children[0],N),this.visit(ee.children[1],oe);case I:return N;case"Function":var Ye=[];for(Y=0;Y<ee.children.length;Y++)Ye.push(this.visit(ee.children[Y],N));return this.runtime.callFunction(ee.name,Ye);case"ExpressionReference":return de=ee.children[0],de.jmespathType=O,de;default:throw new Error("Unknown node type: "+ee.type)}},computeSliceParams:function(ee,q){var le=q[0],oe=q[1],q=q[2],G=[null,null,null];if(q===null)q=1;else if(q===0)throw(ne=new Error("Invalid slice, step cannot be 0")).name="RuntimeError",ne;var ne=q<0,le=le===null?ne?ee-1:0:this.capSliceRange(ee,le,q),oe=oe===null?ne?-1:ee:this.capSliceRange(ee,oe,q);return G[0]=le,G[1]=oe,G[2]=q,G},capSliceRange:function(ee,N,q){return N<0?(N+=ee)<0&&(N=q<0?-1:0):ee<=N&&(N=q<0?ee-1:ee),N}},ue.prototype={callFunction:function(ee,N){var q=this.functionTable[ee];if(q===void 0)throw new Error("Unknown function: "+ee+"()");return this._validateArgs(ee,N,q._signature),q._func.call(this,N)},_validateArgs:function(ee,N,q){var G;if(q[q.length-1].variadic){if(N.length<q.length)throw G=q.length===1?" argument":" arguments",new Error("ArgumentError: "+ee+"() takes at least"+q.length+G+" but received "+N.length)}else if(N.length!==q.length)throw G=q.length===1?" argument":" arguments",new Error("ArgumentError: "+ee+"() takes "+q.length+G+" but received "+N.length);for(var ne=0;ne<q.length;ne++){for(var le,oe=!1,ve=q[ne].types,de=this._getTypeName(N[ne]),ae=0;ae<ve.length;ae++)if(this._typeMatches(de,ve[ae],N[ne])){oe=!0;break}if(!oe)throw le=ve.map(function(be){return f[be]}).join(","),new Error("TypeError: "+ee+"() expected argument "+(ne+1)+" to be type "+le+" but received type "+f[de]+" instead.")}},_typeMatches:function(ee,N,q){if(N===1)return!0;if(N!==9&&N!==8&&N!==3)return ee===N;if(N===3)return ee===3;if(ee===3){var G;N===8?G=0:N===9&&(G=2);for(var ne=0;ne<q.length;ne++)if(!this._typeMatches(this._getTypeName(q[ne]),G,q[ne]))return!1;return!0}},_getTypeName:function(ee){switch(Object.prototype.toString.call(ee)){case"[object String]":return 2;case"[object Number]":return 0;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return ee.jmespathType===O?6:4}},_functionStartsWith:function(ee){return ee[0].lastIndexOf(ee[1])===0},_functionEndsWith:function(q){var N=q[0],q=q[1];return N.indexOf(q,N.length-q.length)!==-1},_functionReverse:function(ee){var N;if(this._getTypeName(ee[0])!==2)return(N=ee[0].slice(0)).reverse(),N;for(var q=ee[0],G="",ne=q.length-1;0<=ne;ne--)G+=q[ne];return G},_functionAbs:function(ee){return Math.abs(ee[0])},_functionCeil:function(ee){return Math.ceil(ee[0])},_functionAvg:function(ee){for(var N=0,q=ee[0],G=0;G<q.length;G++)N+=q[G];return N/q.length},_functionContains:function(ee){return 0<=ee[0].indexOf(ee[1])},_functionFloor:function(ee){return Math.floor(ee[0])},_functionLength:function(ee){return(u(ee[0])?Object.keys(ee[0]):ee[0]).length},_functionMap:function(ee){for(var N=[],q=this._interpreter,G=ee[0],ne=ee[1],le=0;le<ne.length;le++)N.push(q.visit(G,ne[le]));return N},_functionMerge:function(ee){for(var N={},q=0;q<ee.length;q++){var G,ne=ee[q];for(G in ne)N[G]=ne[G]}return N},_functionMax:function(ee){if(0<ee[0].length){if(this._getTypeName(ee[0][0])===0)return Math.max.apply(Math,ee[0]);for(var N=ee[0],q=N[0],G=1;G<N.length;G++)q.localeCompare(N[G])<0&&(q=N[G]);return q}return null},_functionMin:function(ee){if(0<ee[0].length){if(this._getTypeName(ee[0][0])===0)return Math.min.apply(Math,ee[0]);for(var N=ee[0],q=N[0],G=1;G<N.length;G++)N[G].localeCompare(q)<0&&(q=N[G]);return q}return null},_functionSum:function(ee){for(var N=0,q=ee[0],G=0;G<q.length;G++)N+=q[G];return N},_functionType:function(ee){switch(this._getTypeName(ee[0])){case 0:return"number";case 2:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(ee){return Object.keys(ee[0])},_functionValues:function(ee){for(var N=ee[0],q=Object.keys(N),G=[],ne=0;ne<q.length;ne++)G.push(N[q[ne]]);return G},_functionJoin:function(ee){var N=ee[0];return ee[1].join(N)},_functionToArray:function(ee){return this._getTypeName(ee[0])===3?ee[0]:[ee[0]]},_functionToString:function(ee){return this._getTypeName(ee[0])===2?ee[0]:JSON.stringify(ee[0])},_functionToNumber:function(ee){var N=this._getTypeName(ee[0]);return N===0?ee[0]:N!==2||(N=+ee[0],isNaN(N))?null:N},_functionNotNull:function(ee){for(var N=0;N<ee.length;N++)if(this._getTypeName(ee[N])!==7)return ee[N];return null},_functionSort:function(ee){return ee=ee[0].slice(0),ee.sort(),ee},_functionSortBy:function(ee){var N=ee[0].slice(0);if(N.length!==0){var q=this._interpreter,G=ee[1],ne=this._getTypeName(q.visit(G,N[0]));if([0,2].indexOf(ne)<0)throw new Error("TypeError");for(var le=this,oe=[],ve=0;ve<N.length;ve++)oe.push([ve,N[ve]]);oe.sort(function(ae,be){var ie=q.visit(G,ae[1]),ce=q.visit(G,be[1]);if(le._getTypeName(ie)!==ne)throw new Error("TypeError: expected "+ne+", received "+le._getTypeName(ie));if(le._getTypeName(ce)!==ne)throw new Error("TypeError: expected "+ne+", received "+le._getTypeName(ce));return ce<ie?1:ie<ce?-1:ae[0]-be[0]});for(var de=0;de<oe.length;de++)N[de]=oe[de][1]}return N},_functionMaxBy:function(ee){for(var N,q,G=ee[1],ne=ee[0],le=this.createKeyFunction(G,[0,2]),oe=-1/0,ve=0;ve<ne.length;ve++)oe<(q=le(ne[ve]))&&(oe=q,N=ne[ve]);return N},_functionMinBy:function(ee){for(var N,q,G=ee[1],ne=ee[0],le=this.createKeyFunction(G,[0,2]),oe=1/0,ve=0;ve<ne.length;ve++)(q=le(ne[ve]))<oe&&(oe=q,N=ne[ve]);return N},createKeyFunction:function(ee,N){var q=this,G=this._interpreter;return function(oe){var le,oe=G.visit(ee,oe);if(N.indexOf(q._getTypeName(oe))<0)throw le="TypeError: expected one of "+N+", received "+q._getTypeName(oe),new Error(le);return oe}}},s.tokenize=function(ee){return new Q().tokenize(ee)},s.compile=function(ee){return new K().parse(ee)},s.search=function(ee,N){var q=new K,G=new J(ne=new ue),ne=(ne._interpreter=G,q.parse(N));return G.search(ne,ee)},s.strictDeepEqual=c})(a)},500:function(o){var a=o.exports=function(l,u,c){typeof u=="function"&&(c=u,u={}),function d(h,f,g,b,v,m,w,k,T,S){if(b&&typeof b=="object"&&!Array.isArray(b)){for(var I in f(b,v,m,w,k,T,S),b){var O=b[I];if(Array.isArray(O)){if(I in a.arrayKeywords)for(var y=0;y<O.length;y++)d(h,f,g,O[y],v+"/"+I+"/"+y,m,v,I,b,y)}else if(I in a.propsKeywords){if(O&&typeof O=="object")for(var _ in O)d(h,f,g,O[_],v+"/"+I+"/"+s(_),m,v,I,b,_)}else(I in a.keywords||h.allKeys&&!(I in a.skipKeywords))&&d(h,f,g,O,v+"/"+I,m,v,I,b)}g(b,v,m,w,k,T,S)}}(u,typeof(c=u.cb||c)=="function"?c:c.pre||function(){},c.post||function(){},l,"",l)};function s(l){return l.replace(/~/g,"~0").replace(/\//g,"~1")}a.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},a.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},a.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},a.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},7026:function(o,a){var s={b:"\b",f:"\f",n:`
|
|
`,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},l=97,u=(a.parse=function(S,I,O){var y={},_=0,A=0,R=0,D=O&&O.bigint&&typeof BigInt<"u";return{data:C("",!0),pointers:y};function C(N,q){x(),Q(N,"value");var G,ne=L();switch(ne){case"t":$("rue"),G=!0;break;case"f":$("alse"),G=!1;break;case"n":$("ull"),G=null;break;case'"':G=P();break;case"[":G=function(le){x();var oe=[],ve=0;if(L()!="]")for(V();;){oe.push(C(le+"/"+ve)),x();var de=L();if(de=="]")break;de!=","&&ue(),x(),ve++}return oe}(N);break;case"{":G=function(le){x();var oe={};if(L()!="}")for(V();;){var ae=K(),ve=(L()!='"'&&ue(),P()),de=le+"/"+T(ve),ae=(U(de,"key",ae),Q(de,"keyEnd"),x(),L()!=":"&&ue(),x(),oe[ve]=C(de),x(),L());if(ae=="}")break;ae!=","&&ue(),x()}return oe}(N);break;default:V(),0<="-0123456789".indexOf(ne)?G=function(){var le="",oe=!0;S[R]=="-"&&(le+=L()),le+=(S[R]=="0"?L:H)(),S[R]=="."&&(le+=L()+H(),oe=!1),S[R]!="e"&&S[R]!="E"||(le+=L(),S[R]!="+"&&S[R]!="-"||(le+=L()),le+=H(),oe=!1);var ve=+le;return D&&oe&&(ve>Number.MAX_SAFE_INTEGER||ve<Number.MIN_SAFE_INTEGER)?BigInt(le):ve}():J()}return Q(N,"valueEnd"),x(),q&&R<S.length&&J(),G}function x(){e:for(;R<S.length;){switch(S[R]){case" ":A++;break;case" ":A+=4;break;case"\r":A=0;break;case`
|
|
`:A=0,_++;break;default:break e}R++}}function P(){for(var N,q="";(N=L())!='"';)N=="\\"?(N=L())in s?q+=s[N]:N=="u"?q+=function(){for(var G=4,ne=0;G--;){ne<<=4;var le=L().toLowerCase();"a"<=le&&le<="f"?ne+=le.charCodeAt()-l+10:"0"<=le&&le<="9"?ne+=+le:ue()}return String.fromCharCode(ne)}():ue():q+=N;return q}function $(N){for(var q=0;q<N.length;q++)L()!==N[q]&&ue()}function L(){ee();var N=S[R];return R++,A++,N}function V(){R--,A--}function H(){for(var N="";"0"<=S[R]&&S[R]<="9";)N+=L();if(N.length)return N;ee(),J()}function Q(N,q){U(N,q,K())}function U(N,q,G){y[N]=y[N]||{},y[N][q]=G}function K(){return{line:_,column:A,pos:R}}function J(){throw new SyntaxError("Unexpected token "+S[R]+" in JSON at position "+R)}function ue(){V(),J()}function ee(){if(R>=S.length)throw new SyntaxError("Unexpected end of JSON input")}},a.stringify=function(S,I,O){if(c(S)){var y=0;switch(typeof(A=typeof O=="object"?O.space:O)){case"number":var _=10<A?10:A<0?0:Math.floor(A),A=_&&J(_," "),R=_,D=_;break;case"string":A=A.slice(0,10);for(var C=D=R=0;C<A.length;C++){switch(A[C]){case" ":D++;break;case" ":D+=4;break;case"\r":D=0;break;case`
|
|
`:D=0,y++;break;default:throw new Error("whitespace characters not allowed in JSON")}R++}break;default:A=void 0}var x="",P={},$=0,L=0,V=0,H=O&&O.es6&&typeof Map=="function";return function ue(ee,N,q){switch(K(q,"value"),typeof ee){case"number":case"bigint":case"boolean":Q(""+ee);break;case"string":Q(m(ee));break;case"object":ee===null?Q("null"):typeof ee.toJSON=="function"?Q(m(ee.toJSON())):Array.isArray(ee)?G():H?ee.constructor.BYTES_PER_ELEMENT?G():ee instanceof Map?le():ee instanceof Set?le(!0):ne():ne()}K(q,"valueEnd");function G(){if(ee.length){Q("[");for(var oe=N+1,ve=0;ve<ee.length;ve++){ve&&Q(","),U(oe);var de=c(ee[ve])?ee[ve]:null,ae=q+"/"+ve;ue(de,oe,ae)}U(N),Q("]")}else Q("[]")}function ne(){var oe=Object.keys(ee);if(oe.length){Q("{");for(var ve=N+1,de=0;de<oe.length;de++){var ae,be=oe[de],ie=ee[be];c(ie)&&(de&&Q(","),ae=q+"/"+T(be),U(ve),K(ae,"key"),Q(m(be)),K(ae,"keyEnd"),Q(":"),A&&Q(" "),ue(ie,ve,ae))}U(N),Q("}")}else Q("{}")}function le(oe){if(ee.size){Q("{");for(var ve=N+1,de=!0,ae=ee.entries(),be=ae.next();!be.done;){var ie,pe=be.value,ce=pe[0],pe=!!oe||pe[1];c(pe)&&(de||Q(","),de=!1,ie=q+"/"+T(ce),U(ve),K(ie,"key"),Q(m(ce)),K(ie,"keyEnd"),Q(":"),A&&Q(" "),ue(pe,ve,ie)),be=ae.next()}U(N),Q("}")}else Q("{}")}}(S,0,""),{json:x,pointers:P}}function Q(ue){L+=ue.length,V+=ue.length,x+=ue}function U(ue){if(A){for(x+=`
|
|
`+J(ue,A),$++,L=0;ue--;)y?($+=y,L=D):L+=D,V+=R;V+=1}}function K(ue,ee){P[ue]=P[ue]||{},P[ue][ee]={line:$,column:L,pos:V}}function J(ue,ee){return Array(ue+1).join(ee)}},["number","bigint","boolean","string","object"]);function c(S){return 0<=u.indexOf(typeof S)}var d=/"|\\/g,h=/[\b]/g,f=/\f/g,g=/\n/g,b=/\r/g,v=/\t/g;function m(S){return'"'+(S=S.replace(d,"\\$&").replace(f,"\\f").replace(h,"\\b").replace(g,"\\n").replace(b,"\\r").replace(v,"\\t"))+'"'}var w=/~/g,k=/\//g;function T(S){return S.replace(w,"~0").replace(k,"~1")}},483:function(o,a){var s,l;(function(){l=[],(l=typeof(s=function(){function u(O){return typeof Node=="object"?O instanceof Node:O&&typeof O=="object"&&typeof O.nodeType=="number"}function c(O){return typeof O=="string"}function d(){var O=[];return{watch:O.push.bind(O),trigger:function(y,_){for(var A=!0,R={detail:_,preventDefault:function(){A=!1}},D=0;D<O.length;D++)O[D](y,R);return A}}}function h(O){return window.getComputedStyle(O).display==="none"}function f(O){this.elem=O}function g(O,y){return f.make(O("parent")).clazz("pico-overlay").clazz(O("overlayClass","")).stylize({display:"none",position:"fixed",top:"0px",left:"0px",height:"100%",width:"100%",zIndex:1e4}).stylize(O("overlayStyles",{opacity:.5,background:"#000"})).onClick(function(){O("overlayClose",!0)&&y()})}f.make=function(O,y){typeof O=="string"&&(O=document.querySelector(O));var _=document.createElement(y||"div");return(O||document.body).appendChild(_),new f(_)},f.prototype={child:function(O){return f.make(this.elem,O)},stylize:function(O){O=O||{},typeof O.opacity<"u"&&(O.filter="alpha(opacity="+O.opacity*100+")");for(var y in O)O.hasOwnProperty(y)&&(this.elem.style[y]=O[y]);return this},clazz:function(O){return this.elem.className+=" "+O,this},html:function(O){return u(O)?this.elem.appendChild(O):this.elem.innerHTML=O,this},onClick:function(O){return this.elem.addEventListener("click",O),this},destroy:function(){this.elem.parentNode.removeChild(this.elem)},hide:function(){this.elem.style.display="none"},show:function(){this.elem.style.display="block"},attr:function(O,y){return y!==void 0&&this.elem.setAttribute(O,y),this},anyAncestor:function(O){for(var y=this.elem;y;){if(O(new f(y)))return!0;y=y.parentNode}return!1},isVisible:function(){return!h(this.elem)}};var b=1;function v(O,y){var _=O("width","auto");typeof _=="number"&&(_=""+_+"px");var A=O("modalId","pico-"+b++),R=f.make(O("parent")).clazz("pico-content").clazz(O("modalClass","")).stylize({display:"none",position:"fixed",zIndex:10001,left:"50%",top:"38.1966%",maxHeight:"90%",boxSizing:"border-box",width:_,"-ms-transform":"translate(-50%,-38.1966%)","-moz-transform":"translate(-50%,-38.1966%)","-webkit-transform":"translate(-50%,-38.1966%)","-o-transform":"translate(-50%,-38.1966%)",transform:"translate(-50%,-38.1966%)"}).stylize(O("modalStyles",{overflow:"auto",backgroundColor:"white",padding:"20px",borderRadius:"5px"})).html(O("content")).attr("id",A).attr("role","dialog").attr("aria-labelledby",O("ariaLabelledBy")).attr("aria-describedby",O("ariaDescribedBy",A)).onClick(function(D){var C=new f(D.target).anyAncestor(function(x){return/\bpico-close\b/.test(x.elem.className)});C&&y()});return R}function m(O,y){if(y("closeButton",!0))return O.child("button").html(y("closeHtml","×")).clazz("pico-close").clazz(y("closeClass","")).stylize(y("closeStyles",{borderRadius:"2px",border:0,padding:0,cursor:"pointer",height:"15px",width:"15px",position:"absolute",top:"5px",right:"5px",fontSize:"16px",textAlign:"center",lineHeight:"15px",background:"#CCC"})).attr("aria-label",y("close-label","Close"))}function w(O){return function(){return O().elem}}var k=d(),T=d();function S(O,y){function _(x,P){var $=x.msMatchesSelector||x.webkitMatchesSelector||x.matches;return $.call(x,P)}function A(x){return h(x)||_(x,":disabled")||x.hasAttribute("contenteditable")?!1:x.hasAttribute("tabindex")||_(x,"input,select,textarea,button,a[href],area[href],iframe")}function R(x){for(var P=x.getElementsByTagName("*"),$=0;$<P.length;$++)if(A(P[$]))return P[$]}function D(x){for(var P=x.getElementsByTagName("*"),$=P.length;$--;)if(A(P[$]))return P[$]}var C;O.beforeShow(function(){C=document.activeElement}),O.afterShow(function(){if(y()){var x=R(O.modalElem());x&&x.focus()}}),O.afterClose(function(){y()&&C&&C.focus(),C=null}),T.watch(function(x){if(y()&&O.isVisible()){var P=R(O.modalElem()),$=D(O.modalElem()),L=x.shiftKey?P:$;L===document.activeElement&&((x.shiftKey?$:P).focus(),x.preventDefault())}})}function I(O,y){var _,A=new f(document.body);O.beforeShow(function(){_=A.elem.style.overflow,y()&&A.stylize({overflow:"hidden"})}),O.afterClose(function(){A.stylize({overflow:_})})}return document.documentElement.addEventListener("keydown",function(O){var y=O.which||O.keyCode;y===27?k.trigger():y===9&&T.trigger(O)}),function(O){(c(O)||u(O))&&(O={content:O});var y=d(),_=d(),A=d(),R=d(),D=d();function C(J,ue){var ee=O[J];return typeof ee=="function"&&(ee=ee(ue)),ee===void 0?ue:ee}var x=K.bind(window,"modal"),P=K.bind(window,"overlay"),$=K.bind(window,"close"),L;function V(J){P().hide(),x().hide(),D.trigger(L,J)}function H(J){R.trigger(L,J)&&V(J)}function Q(J){return function(){return J.apply(this,arguments),L}}var U;function K(J,ue){if(!U){var ee=v(C,H);U={modal:ee,overlay:g(C,H),close:m(ee,C)},y.trigger(L,ue)}return U[J]}return L={modalElem:w(x),closeElem:w($),overlayElem:w(P),buildDom:Q(K.bind(null,null)),isVisible:function(){return!!(U&&x&&x().isVisible())},show:function(J){return _.trigger(L,J)&&(P().show(),$(),x().show(),A.trigger(L,J)),this},close:Q(H),forceClose:Q(V),destroy:function(){x().destroy(),P().destroy(),P=x=$=void 0},options:function(J){Object.keys(J).map(function(ue){O[ue]=J[ue]})},afterCreate:Q(y.watch),beforeShow:Q(_.watch),afterShow:Q(A.watch),beforeClose:Q(R.watch),afterClose:Q(D.watch)},S(L,C.bind(null,"focus",!0)),I(L,C.bind(null,"bodyOverflow",!0)),k.watch(function(){C("escCloses",!0)&&L.isVisible()&&L.close()}),L}})=="function"?s.apply(a,l):s)!==void 0&&(o.exports=l)})()},7533:function(o,a){/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(s){function l(){for(var ze=arguments.length,Ke=Array(ze),et=0;et<ze;et++)Ke[et]=arguments[et];if(Ke.length>1){Ke[0]=Ke[0].slice(0,-1);for(var $t=Ke.length-1,Lt=1;Lt<$t;++Lt)Ke[Lt]=Ke[Lt].slice(1,-1);return Ke[$t]=Ke[$t].slice(1),Ke.join("")}else return Ke[0]}function u(ze){return"(?:"+ze+")"}function c(ze){return ze===void 0?"undefined":ze===null?"null":Object.prototype.toString.call(ze).split(" ").pop().split("]").shift().toLowerCase()}function d(ze){return ze.toUpperCase()}function h(ze){return ze!=null?ze instanceof Array?ze:typeof ze.length!="number"||ze.split||ze.setInterval||ze.call?[ze]:Array.prototype.slice.call(ze):[]}function f(ze,Ke){var et=ze;if(Ke)for(var $t in Ke)et[$t]=Ke[$t];return et}function g(ze){var Ke="[A-Za-z]",et="[0-9]",$t=l(et,"[A-Fa-f]"),Lt=u(u("%[EFef]"+$t+"%"+$t+$t+"%"+$t+$t)+"|"+u("%[89A-Fa-f]"+$t+"%"+$t+$t)+"|"+u("%"+$t+$t)),Mn="[\\:\\/\\?\\#\\[\\]\\@]",qe="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",kt=l(Mn,qe),Ut=ze?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",nn=ze?"[\\uE000-\\uF8FF]":"[]",Cn=l(Ke,et,"[\\-\\.\\_\\~]",Ut);u(Ke+l(Ke,et,"[\\+\\-\\.]")+"*"),u(u(Lt+"|"+l(Cn,qe,"[\\:]"))+"*");var Pn=u(u("25[0-5]")+"|"+u("2[0-4]"+et)+"|"+u("1"+et+et)+"|"+u("0?[1-9]"+et)+"|0?0?"+et),lt=u(Pn+"\\."+Pn+"\\."+Pn+"\\."+Pn),It=u($t+"{1,4}"),Xt=u(u(It+"\\:"+It)+"|"+lt),on=u(u(It+"\\:")+"{6}"+Xt),Vn=u("\\:\\:"+u(It+"\\:")+"{5}"+Xt),Ur=u(u(It)+"?\\:\\:"+u(It+"\\:")+"{4}"+Xt),yr=u(u(u(It+"\\:")+"{0,1}"+It)+"?\\:\\:"+u(It+"\\:")+"{3}"+Xt),Fn=u(u(u(It+"\\:")+"{0,2}"+It)+"?\\:\\:"+u(It+"\\:")+"{2}"+Xt),dn=u(u(u(It+"\\:")+"{0,3}"+It)+"?\\:\\:"+It+"\\:"+Xt),ri=u(u(u(It+"\\:")+"{0,4}"+It)+"?\\:\\:"+Xt),ji=u(u(u(It+"\\:")+"{0,5}"+It)+"?\\:\\:"+It),ci=u(u(u(It+"\\:")+"{0,6}"+It)+"?\\:\\:"),Ie=u([on,Vn,Ur,yr,Fn,dn,ri,ji,ci].join("|")),Fe=u(u(Cn+"|"+Lt)+"+");u("[vV]"+$t+"+\\."+l(Cn,qe,"[\\:]")+"+"),u(u(Lt+"|"+l(Cn,qe))+"*");var Dt=u(Lt+"|"+l(Cn,qe,"[\\:\\@]"));return u(u(Lt+"|"+l(Cn,qe,"[\\@]"))+"+"),u(u(Dt+"|"+l("[\\/\\?]",nn))+"*"),{NOT_SCHEME:new RegExp(l("[^]",Ke,et,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(l("[^\\%\\:]",Cn,qe),"g"),NOT_HOST:new RegExp(l("[^\\%\\[\\]\\:]",Cn,qe),"g"),NOT_PATH:new RegExp(l("[^\\%\\/\\:\\@]",Cn,qe),"g"),NOT_PATH_NOSCHEME:new RegExp(l("[^\\%\\/\\@]",Cn,qe),"g"),NOT_QUERY:new RegExp(l("[^\\%]",Cn,qe,"[\\:\\@\\/\\?]",nn),"g"),NOT_FRAGMENT:new RegExp(l("[^\\%]",Cn,qe,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(l("[^]",Cn,qe),"g"),UNRESERVED:new RegExp(Cn,"g"),OTHER_CHARS:new RegExp(l("[^\\%]",Cn,kt),"g"),PCT_ENCODED:new RegExp(Lt,"g"),IPV4ADDRESS:new RegExp("^("+lt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Ie+")"+u(u("\\%25|\\%(?!"+$t+"{2})")+"("+Fe+")")+"?\\]?$")}}var b=g(!1),v=g(!0),m=function(){function ze(Ke,et){var $t=[],Lt=!0,Mn=!1,qe=void 0;try{for(var kt=Ke[Symbol.iterator](),Ut;!(Lt=(Ut=kt.next()).done)&&($t.push(Ut.value),!(et&&$t.length===et));Lt=!0);}catch(nn){Mn=!0,qe=nn}finally{try{!Lt&&kt.return&&kt.return()}finally{if(Mn)throw qe}}return $t}return function(Ke,et){if(Array.isArray(Ke))return Ke;if(Symbol.iterator in Object(Ke))return ze(Ke,et);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(ze){if(Array.isArray(ze)){for(var Ke=0,et=Array(ze.length);Ke<ze.length;Ke++)et[Ke]=ze[Ke];return et}else return Array.from(ze)},k=2147483647,T=36,S=1,I=26,O=38,y=700,_=72,A=128,R="-",D=/^xn--/,C=/[^\0-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=T-S,L=Math.floor,V=String.fromCharCode;function H(ze){throw new RangeError(P[ze])}function Q(ze,Ke){for(var et=[],$t=ze.length;$t--;)et[$t]=Ke(ze[$t]);return et}function U(ze,Ke){var et=ze.split("@"),$t="";et.length>1&&($t=et[0]+"@",ze=et[1]),ze=ze.replace(x,".");var Lt=ze.split("."),Mn=Q(Lt,Ke).join(".");return $t+Mn}function K(ze){for(var Ke=[],et=0,$t=ze.length;et<$t;){var Lt=ze.charCodeAt(et++);if(Lt>=55296&&Lt<=56319&&et<$t){var Mn=ze.charCodeAt(et++);(Mn&64512)==56320?Ke.push(((Lt&1023)<<10)+(Mn&1023)+65536):(Ke.push(Lt),et--)}else Ke.push(Lt)}return Ke}var J=function(ze){return ze-48<10?ze-22:ze-65<26?ze-65:ze-97<26?ze-97:T},ue=function(ze,Ke){return ze+22+75*(ze<26)-((Ke!=0)<<5)},ee=function(ze,Ke,et){var $t=0;for(ze=et?L(ze/y):ze>>1,ze+=L(ze/Ke);ze>$*I>>1;$t+=T)ze=L(ze/$);return L($t+($+1)*ze/(ze+O))},N=function(ze){var Ke=[],et=ze.length,$t=0,Lt=A,Mn=_,qe=ze.lastIndexOf(R);qe<0&&(qe=0);for(var kt=0;kt<qe;++kt)ze.charCodeAt(kt)>=128&&H("not-basic"),Ke.push(ze.charCodeAt(kt));for(var Ut=qe>0?qe+1:0;Ut<et;){for(var nn=$t,Cn=1,Pn=T;;Pn+=T){Ut>=et&&H("invalid-input");var lt=J(ze.charCodeAt(Ut++));(lt>=T||lt>L((k-$t)/Cn))&&H("overflow"),$t+=lt*Cn;var It=Pn<=Mn?S:Pn>=Mn+I?I:Pn-Mn;if(lt<It)break;var Xt=T-It;Cn>L(k/Xt)&&H("overflow"),Cn*=Xt}var on=Ke.length+1;Mn=ee($t-nn,on,nn==0),L($t/on)>k-Lt&&H("overflow"),Lt+=L($t/on),$t%=on,Ke.splice($t++,0,Lt)}return String.fromCodePoint.apply(String,Ke)},q=function(ze){var Ke=[];ze=K(ze);var et=ze.length,$t=A,Lt=0,Mn=_,qe=!0,kt=!1,Ut=void 0;try{for(var nn=ze[Symbol.iterator](),Cn;!(qe=(Cn=nn.next()).done);qe=!0){var Pn=Cn.value;Pn<128&&Ke.push(V(Pn))}}catch(ki){kt=!0,Ut=ki}finally{try{!qe&&nn.return&&nn.return()}finally{if(kt)throw Ut}}var lt=Ke.length,It=lt;for(lt&&Ke.push(R);It<et;){var Xt=k,on=!0,Vn=!1,Ur=void 0;try{for(var yr=ze[Symbol.iterator](),Fn;!(on=(Fn=yr.next()).done);on=!0){var dn=Fn.value;dn>=$t&&dn<Xt&&(Xt=dn)}}catch(ki){Vn=!0,Ur=ki}finally{try{!on&&yr.return&&yr.return()}finally{if(Vn)throw Ur}}var ri=It+1;Xt-$t>L((k-Lt)/ri)&&H("overflow"),Lt+=(Xt-$t)*ri,$t=Xt;var ji=!0,ci=!1,Ie=void 0;try{for(var Fe=ze[Symbol.iterator](),Dt;!(ji=(Dt=Fe.next()).done);ji=!0){var zt=Dt.value;if(zt<$t&&++Lt>k&&H("overflow"),zt==$t){for(var yt=Lt,Zt=T;;Zt+=T){var An=Zt<=Mn?S:Zt>=Mn+I?I:Zt-Mn;if(yt<An)break;var Sr=yt-An,ii=T-An;Ke.push(V(ue(An+Sr%ii,0))),yt=L(Sr/ii)}Ke.push(V(ue(yt,0))),Mn=ee(Lt,ri,It==lt),Lt=0,++It}}}catch(ki){ci=!0,Ie=ki}finally{try{!ji&&Fe.return&&Fe.return()}finally{if(ci)throw Ie}}++Lt,++$t}return Ke.join("")},G={version:"2.1.0",ucs2:{decode:K,encode:function(ze){return String.fromCodePoint.apply(String,w(ze))}},decode:N,encode:q,toASCII:function(ze){return U(ze,function(Ke){return C.test(Ke)?"xn--"+q(Ke):Ke})},toUnicode:function(ze){return U(ze,function(Ke){return D.test(Ke)?N(Ke.slice(4).toLowerCase()):Ke})}},ne={};function le(ze){var Ke=ze.charCodeAt(0),et=void 0;return Ke<16?et="%0"+Ke.toString(16).toUpperCase():Ke<128?et="%"+Ke.toString(16).toUpperCase():Ke<2048?et="%"+(Ke>>6|192).toString(16).toUpperCase()+"%"+(Ke&63|128).toString(16).toUpperCase():et="%"+(Ke>>12|224).toString(16).toUpperCase()+"%"+(Ke>>6&63|128).toString(16).toUpperCase()+"%"+(Ke&63|128).toString(16).toUpperCase(),et}function oe(ze){for(var Ke="",et=0,$t=ze.length;et<$t;){var Lt=parseInt(ze.substr(et+1,2),16);if(Lt<128)Ke+=String.fromCharCode(Lt),et+=3;else if(Lt>=194&&Lt<224){if($t-et>=6){var Mn=parseInt(ze.substr(et+4,2),16);Ke+=String.fromCharCode((Lt&31)<<6|Mn&63)}else Ke+=ze.substr(et,6);et+=6}else if(Lt>=224){if($t-et>=9){var qe=parseInt(ze.substr(et+4,2),16),kt=parseInt(ze.substr(et+7,2),16);Ke+=String.fromCharCode((Lt&15)<<12|(qe&63)<<6|kt&63)}else Ke+=ze.substr(et,9);et+=9}else Ke+=ze.substr(et,3),et+=3}return Ke}function ve(ze,Ke){function et($t){var Lt=oe($t);return Lt.match(Ke.UNRESERVED)?Lt:$t}return ze.scheme&&(ze.scheme=String(ze.scheme).replace(Ke.PCT_ENCODED,et).toLowerCase().replace(Ke.NOT_SCHEME,"")),ze.userinfo!==void 0&&(ze.userinfo=String(ze.userinfo).replace(Ke.PCT_ENCODED,et).replace(Ke.NOT_USERINFO,le).replace(Ke.PCT_ENCODED,d)),ze.host!==void 0&&(ze.host=String(ze.host).replace(Ke.PCT_ENCODED,et).toLowerCase().replace(Ke.NOT_HOST,le).replace(Ke.PCT_ENCODED,d)),ze.path!==void 0&&(ze.path=String(ze.path).replace(Ke.PCT_ENCODED,et).replace(ze.scheme?Ke.NOT_PATH:Ke.NOT_PATH_NOSCHEME,le).replace(Ke.PCT_ENCODED,d)),ze.query!==void 0&&(ze.query=String(ze.query).replace(Ke.PCT_ENCODED,et).replace(Ke.NOT_QUERY,le).replace(Ke.PCT_ENCODED,d)),ze.fragment!==void 0&&(ze.fragment=String(ze.fragment).replace(Ke.PCT_ENCODED,et).replace(Ke.NOT_FRAGMENT,le).replace(Ke.PCT_ENCODED,d)),ze}function de(ze){return ze.replace(/^0*(.*)/,"$1")||"0"}function ae(ze,Ke){var et=ze.match(Ke.IPV4ADDRESS)||[],$t=m(et,2),Lt=$t[1];return Lt?Lt.split(".").map(de).join("."):ze}function be(ze,Ke){var et=ze.match(Ke.IPV6ADDRESS)||[],$t=m(et,3),Lt=$t[1],Mn=$t[2];if(Lt){for(var qe=Lt.toLowerCase().split("::").reverse(),kt=m(qe,2),Ut=kt[0],nn=kt[1],Cn=nn?nn.split(":").map(de):[],Pn=Ut.split(":").map(de),lt=Ke.IPV4ADDRESS.test(Pn[Pn.length-1]),It=lt?7:8,Xt=Pn.length-It,on=Array(It),Vn=0;Vn<It;++Vn)on[Vn]=Cn[Vn]||Pn[Xt+Vn]||"";lt&&(on[It-1]=ae(on[It-1],Ke));var Ur=on.reduce(function(ji,ci,Ie){if(!ci||ci==="0"){var Fe=ji[ji.length-1];Fe&&Fe.index+Fe.length===Ie?Fe.length++:ji.push({index:Ie,length:1})}return ji},[]),yr=Ur.sort(function(ji,ci){return ci.length-ji.length})[0],Fn=void 0;if(yr&&yr.length>1){var dn=on.slice(0,yr.index),ri=on.slice(yr.index+yr.length);Fn=dn.join(":")+"::"+ri.join(":")}else Fn=on.join(":");return Mn&&(Fn+="%"+Mn),Fn}else return ze}var ie=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ce="".match(/(){0}/)[1]===void 0;function pe(ze){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},et={},$t=Ke.iri!==!1?v:b;Ke.reference==="suffix"&&(ze=(Ke.scheme?Ke.scheme+":":"")+"//"+ze);var Lt=ze.match(ie);if(Lt){ce?(et.scheme=Lt[1],et.userinfo=Lt[3],et.host=Lt[4],et.port=parseInt(Lt[5],10),et.path=Lt[6]||"",et.query=Lt[7],et.fragment=Lt[8],isNaN(et.port)&&(et.port=Lt[5])):(et.scheme=Lt[1]||void 0,et.userinfo=ze.indexOf("@")!==-1?Lt[3]:void 0,et.host=ze.indexOf("//")!==-1?Lt[4]:void 0,et.port=parseInt(Lt[5],10),et.path=Lt[6]||"",et.query=ze.indexOf("?")!==-1?Lt[7]:void 0,et.fragment=ze.indexOf("#")!==-1?Lt[8]:void 0,isNaN(et.port)&&(et.port=ze.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Lt[4]:void 0)),et.host&&(et.host=be(ae(et.host,$t),$t)),et.scheme===void 0&&et.userinfo===void 0&&et.host===void 0&&et.port===void 0&&!et.path&&et.query===void 0?et.reference="same-document":et.scheme===void 0?et.reference="relative":et.fragment===void 0?et.reference="absolute":et.reference="uri",Ke.reference&&Ke.reference!=="suffix"&&Ke.reference!==et.reference&&(et.error=et.error||"URI is not a "+Ke.reference+" reference.");var Mn=ne[(Ke.scheme||et.scheme||"").toLowerCase()];if(!Ke.unicodeSupport&&(!Mn||!Mn.unicodeSupport)){if(et.host&&(Ke.domainHost||Mn&&Mn.domainHost))try{et.host=G.toASCII(et.host.replace($t.PCT_ENCODED,oe).toLowerCase())}catch(qe){et.error=et.error||"Host's domain name can not be converted to ASCII via punycode: "+qe}ve(et,b)}else ve(et,$t);Mn&&Mn.parse&&Mn.parse(et,Ke)}else et.error=et.error||"URI can not be parsed.";return et}function X(ze,Ke){var et=Ke.iri!==!1?v:b,$t=[];return ze.userinfo!==void 0&&($t.push(ze.userinfo),$t.push("@")),ze.host!==void 0&&$t.push(be(ae(String(ze.host),et),et).replace(et.IPV6ADDRESS,function(Lt,Mn,qe){return"["+Mn+(qe?"%25"+qe:"")+"]"})),(typeof ze.port=="number"||typeof ze.port=="string")&&($t.push(":"),$t.push(String(ze.port))),$t.length?$t.join(""):void 0}var Z=/^\.\.?\//,Y=/^\/\.(\/|$)/,se=/^\/\.\.(\/|$)/,fe=/^\/?(?:.|\n)*?(?=\/|$)/;function me(ze){for(var Ke=[];ze.length;)if(ze.match(Z))ze=ze.replace(Z,"");else if(ze.match(Y))ze=ze.replace(Y,"/");else if(ze.match(se))ze=ze.replace(se,"/"),Ke.pop();else if(ze==="."||ze==="..")ze="";else{var et=ze.match(fe);if(et){var $t=et[0];ze=ze.slice($t.length),Ke.push($t)}else throw new Error("Unexpected dot segment condition")}return Ke.join("")}function Ae(ze){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},et=Ke.iri?v:b,$t=[],Lt=ne[(Ke.scheme||ze.scheme||"").toLowerCase()];if(Lt&&Lt.serialize&&Lt.serialize(ze,Ke),ze.host&&!et.IPV6ADDRESS.test(ze.host)&&(Ke.domainHost||Lt&&Lt.domainHost))try{ze.host=Ke.iri?G.toUnicode(ze.host):G.toASCII(ze.host.replace(et.PCT_ENCODED,oe).toLowerCase())}catch(kt){ze.error=ze.error||"Host's domain name can not be converted to "+(Ke.iri?"Unicode":"ASCII")+" via punycode: "+kt}ve(ze,et),Ke.reference!=="suffix"&&ze.scheme&&($t.push(ze.scheme),$t.push(":"));var Mn=X(ze,Ke);if(Mn!==void 0&&(Ke.reference!=="suffix"&&$t.push("//"),$t.push(Mn),ze.path&&ze.path.charAt(0)!=="/"&&$t.push("/")),ze.path!==void 0){var qe=ze.path;!Ke.absolutePath&&(!Lt||!Lt.absolutePath)&&(qe=me(qe)),Mn===void 0&&(qe=qe.replace(/^\/\//,"/%2F")),$t.push(qe)}return ze.query!==void 0&&($t.push("?"),$t.push(ze.query)),ze.fragment!==void 0&&($t.push("#"),$t.push(ze.fragment)),$t.join("")}function Be(ze,Ke){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$t=arguments[3],Lt={};return $t||(ze=pe(Ae(ze,et),et),Ke=pe(Ae(Ke,et),et)),et=et||{},!et.tolerant&&Ke.scheme?(Lt.scheme=Ke.scheme,Lt.userinfo=Ke.userinfo,Lt.host=Ke.host,Lt.port=Ke.port,Lt.path=me(Ke.path||""),Lt.query=Ke.query):(Ke.userinfo!==void 0||Ke.host!==void 0||Ke.port!==void 0?(Lt.userinfo=Ke.userinfo,Lt.host=Ke.host,Lt.port=Ke.port,Lt.path=me(Ke.path||""),Lt.query=Ke.query):(Ke.path?(Ke.path.charAt(0)==="/"?Lt.path=me(Ke.path):((ze.userinfo!==void 0||ze.host!==void 0||ze.port!==void 0)&&!ze.path?Lt.path="/"+Ke.path:ze.path?Lt.path=ze.path.slice(0,ze.path.lastIndexOf("/")+1)+Ke.path:Lt.path=Ke.path,Lt.path=me(Lt.path)),Lt.query=Ke.query):(Lt.path=ze.path,Ke.query!==void 0?Lt.query=Ke.query:Lt.query=ze.query),Lt.userinfo=ze.userinfo,Lt.host=ze.host,Lt.port=ze.port),Lt.scheme=ze.scheme),Lt.fragment=Ke.fragment,Lt}function Ye(ze,Ke,et){var $t=f({scheme:"null"},et);return Ae(Be(pe(ze,$t),pe(Ke,$t),$t,!0),$t)}function Qe(ze,Ke){return typeof ze=="string"?ze=Ae(pe(ze,Ke),Ke):c(ze)==="object"&&(ze=pe(Ae(ze,Ke),Ke)),ze}function nt(ze,Ke,et){return typeof ze=="string"?ze=Ae(pe(ze,et),et):c(ze)==="object"&&(ze=Ae(ze,et)),typeof Ke=="string"?Ke=Ae(pe(Ke,et),et):c(Ke)==="object"&&(Ke=Ae(Ke,et)),ze===Ke}function st(ze,Ke){return ze&&ze.toString().replace(!Ke||!Ke.iri?b.ESCAPE:v.ESCAPE,le)}function Le(ze,Ke){return ze&&ze.toString().replace(!Ke||!Ke.iri?b.PCT_ENCODED:v.PCT_ENCODED,oe)}var Me={scheme:"http",domainHost:!0,parse:function(ze,Ke){return ze.host||(ze.error=ze.error||"HTTP URIs must have a host."),ze},serialize:function(ze,Ke){var et=String(ze.scheme).toLowerCase()==="https";return(ze.port===(et?443:80)||ze.port==="")&&(ze.port=void 0),ze.path||(ze.path="/"),ze}},je={scheme:"https",domainHost:Me.domainHost,parse:Me.parse,serialize:Me.serialize};function Ue(ze){return typeof ze.secure=="boolean"?ze.secure:String(ze.scheme).toLowerCase()==="wss"}var Te={scheme:"ws",domainHost:!0,parse:function(ze,Ke){var et=ze;return et.secure=Ue(et),et.resourceName=(et.path||"/")+(et.query?"?"+et.query:""),et.path=void 0,et.query=void 0,et},serialize:function(ze,Ke){if((ze.port===(Ue(ze)?443:80)||ze.port==="")&&(ze.port=void 0),typeof ze.secure=="boolean"&&(ze.scheme=ze.secure?"wss":"ws",ze.secure=void 0),ze.resourceName){var et=ze.resourceName.split("?"),$t=m(et,2),Lt=$t[0],Mn=$t[1];ze.path=Lt&&Lt!=="/"?Lt:void 0,ze.query=Mn,ze.resourceName=void 0}return ze.fragment=void 0,ze}},bt={scheme:"wss",domainHost:Te.domainHost,parse:Te.parse,serialize:Te.serialize},At={},ht="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Pe="[0-9A-Fa-f]",Ze=u(u("%[EFef]"+Pe+"%"+Pe+Pe+"%"+Pe+Pe)+"|"+u("%[89A-Fa-f]"+Pe+"%"+Pe+Pe)+"|"+u("%"+Pe+Pe)),dt="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Mt=l("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),He="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",wt=new RegExp(ht,"g"),Ee=new RegExp(Ze,"g"),Xe=new RegExp(l("[^]",dt,"[\\.]",'[\\"]',Mt),"g"),ct=new RegExp(l("[^]",ht,He),"g"),_t=ct;function Qt(ze){var Ke=oe(ze);return Ke.match(wt)?Ke:ze}var ln={scheme:"mailto",parse:function(ze,Ke){var et=ze,$t=et.to=et.path?et.path.split(","):[];if(et.path=void 0,et.query){for(var Lt=!1,Mn={},qe=et.query.split("&"),kt=0,Ut=qe.length;kt<Ut;++kt){var nn=qe[kt].split("=");switch(nn[0]){case"to":for(var Cn=nn[1].split(","),Pn=0,lt=Cn.length;Pn<lt;++Pn)$t.push(Cn[Pn]);break;case"subject":et.subject=Le(nn[1],Ke);break;case"body":et.body=Le(nn[1],Ke);break;default:Lt=!0,Mn[Le(nn[0],Ke)]=Le(nn[1],Ke);break}}Lt&&(et.headers=Mn)}et.query=void 0;for(var It=0,Xt=$t.length;It<Xt;++It){var on=$t[It].split("@");if(on[0]=Le(on[0]),Ke.unicodeSupport)on[1]=Le(on[1],Ke).toLowerCase();else try{on[1]=G.toASCII(Le(on[1],Ke).toLowerCase())}catch(Vn){et.error=et.error||"Email address's domain name can not be converted to ASCII via punycode: "+Vn}$t[It]=on.join("@")}return et},serialize:function(ze,Ke){var et=ze,$t=h(ze.to);if($t){for(var Lt=0,Mn=$t.length;Lt<Mn;++Lt){var qe=String($t[Lt]),kt=qe.lastIndexOf("@"),Ut=qe.slice(0,kt).replace(Ee,Qt).replace(Ee,d).replace(Xe,le),nn=qe.slice(kt+1);try{nn=Ke.iri?G.toUnicode(nn):G.toASCII(Le(nn,Ke).toLowerCase())}catch(It){et.error=et.error||"Email address's domain name can not be converted to "+(Ke.iri?"Unicode":"ASCII")+" via punycode: "+It}$t[Lt]=Ut+"@"+nn}et.path=$t.join(",")}var Cn=ze.headers=ze.headers||{};ze.subject&&(Cn.subject=ze.subject),ze.body&&(Cn.body=ze.body);var Pn=[];for(var lt in Cn)Cn[lt]!==At[lt]&&Pn.push(lt.replace(Ee,Qt).replace(Ee,d).replace(ct,le)+"="+Cn[lt].replace(Ee,Qt).replace(Ee,d).replace(_t,le));return Pn.length&&(et.query=Pn.join("&")),et}},kn=/^([^\:]+)\:(.*)/,hr={scheme:"urn",parse:function(ze,Ke){var et=ze.path&&ze.path.match(kn),$t=ze;if(et){var Lt=Ke.scheme||$t.scheme||"urn",Mn=et[1].toLowerCase(),qe=et[2],kt=Lt+":"+(Ke.nid||Mn),Ut=ne[kt];$t.nid=Mn,$t.nss=qe,$t.path=void 0,Ut&&($t=Ut.parse($t,Ke))}else $t.error=$t.error||"URN can not be parsed.";return $t},serialize:function(ze,Ke){var et=Ke.scheme||ze.scheme||"urn",$t=ze.nid,Lt=et+":"+(Ke.nid||$t),Mn=ne[Lt];Mn&&(ze=Mn.serialize(ze,Ke));var qe=ze,kt=ze.nss;return qe.path=($t||Ke.nid)+":"+kt,qe}},pr=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Wr={scheme:"urn:uuid",parse:function(ze,Ke){var et=ze;return et.uuid=et.nss,et.nss=void 0,!Ke.tolerant&&(!et.uuid||!et.uuid.match(pr))&&(et.error=et.error||"UUID is not valid."),et},serialize:function(ze,Ke){var et=ze;return et.nss=(ze.uuid||"").toLowerCase(),et}};ne[Me.scheme]=Me,ne[je.scheme]=je,ne[Te.scheme]=Te,ne[bt.scheme]=bt,ne[ln.scheme]=ln,ne[hr.scheme]=hr,ne[Wr.scheme]=Wr,s.SCHEMES=ne,s.pctEncChar=le,s.pctDecChars=oe,s.parse=pe,s.removeDotSegments=me,s.serialize=Ae,s.resolveComponents=Be,s.resolve=Ye,s.normalize=Qe,s.equal=nt,s.escapeComponent=st,s.unescapeComponent=Le,Object.defineProperty(s,"__esModule",{value:!0})})(a)},4049:function(o){o.exports=function(){var a=function(_,A){if(!(_ instanceof A))throw new TypeError("Cannot call a class as a function")},s=function(){function _(A,R){for(var D=0;D<R.length;D++){var C=R[D];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(A,C.key,C)}}return function(A,R,D){return R&&_(A.prototype,R),D&&_(A,D),A}}(),l=function(){function _(A,R){var D=[],C=!0,x=!1,P=void 0;try{for(var $=A[Symbol.iterator](),L;!(C=(L=$.next()).done)&&(D.push(L.value),!(R&&D.length===R));C=!0);}catch(V){x=!0,P=V}finally{try{!C&&$.return&&$.return()}finally{if(x)throw P}}return D}return function(A,R){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return _(A,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=(String.prototype.startsWith=String.prototype.startsWith||function(_){return this.indexOf(_)===0},String.prototype.padStart=String.prototype.padStart||function(_,A){for(var R=this;R.length<_;)R=A+R;return R},{cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"});function c(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,R=A>0?_.toFixed(A).replace(/0+$/,"").replace(/\.$/,""):_.toString();return R||"0"}var d=function(){function _(A,R,D,C){a(this,_);var x=this;function P(L){if(L.startsWith("hsl")){var V=L.match(/([\-\d\.e]+)/g).map(Number),H=l(V,4),Q=H[0],U=H[1],K=H[2],J=H[3];J===void 0&&(J=1),Q/=360,U/=100,K/=100,x.hsla=[Q,U,K,J]}else if(L.startsWith("rgb")){var ue=L.match(/([\-\d\.e]+)/g).map(Number),ee=l(ue,4),N=ee[0],q=ee[1],G=ee[2],ne=ee[3];ne===void 0&&(ne=1),x.rgba=[N,q,G,ne]}else L.startsWith("#")?x.rgba=_.hexToRgb(L):x.rgba=_.nameToRgb(L)||_.hexToRgb(L)}if(A!==void 0)if(Array.isArray(A))this.rgba=A;else if(D===void 0){var $=A&&""+A;$&&P($.toLowerCase())}else this.rgba=[A,R,D,C===void 0?1:C]}return s(_,[{key:"printRGB",value:function(A){var R=A?this.rgba:this.rgba.slice(0,3),D=R.map(function(C,x){return c(C,x===3?3:0)});return A?"rgba("+D+")":"rgb("+D+")"}},{key:"printHSL",value:function(A){var R=[360,100,100,1],D=["","%","%",""],C=A?this.hsla:this.hsla.slice(0,3),x=C.map(function(P,$){return c(P*R[$],$===3?3:1)+D[$]});return A?"hsla("+x+")":"hsl("+x+")"}},{key:"printHex",value:function(A){var R=this.hex;return A?R:R.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=_.hslToRgb(this._hsla)},set:function(A){A.length===3&&(A[3]=1),this._rgba=A,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=_.rgbToHsl(this._rgba)},set:function(A){A.length===3&&(A[3]=1),this._hsla=A,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var A=this.rgba,R=A.map(function(D,C){return C<3?D.toString(16):Math.round(D*255).toString(16)});return"#"+R.map(function(D){return D.padStart(2,"0")}).join("")},set:function(A){this.rgba=_.hexToRgb(A)}}],[{key:"hexToRgb",value:function(A){var R=(A.startsWith("#")?A.slice(1):A).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!R.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+A);var D=R.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(C){return parseInt(C,16)});return D[3]=D[3]/255,D}},{key:"nameToRgb",value:function(A){var R=A.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),D=u[R];return D===void 0?D:_.hexToRgb(D.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(A){var R=l(A,4),D=R[0],C=R[1],x=R[2],P=R[3];D/=255,C/=255,x/=255;var $=Math.max(D,C,x),L=Math.min(D,C,x),V=void 0,H=void 0,Q=($+L)/2;if($===L)V=H=0;else{var U=$-L;switch(H=Q>.5?U/(2-$-L):U/($+L),$){case D:V=(C-x)/U+(C<x?6:0);break;case C:V=(x-D)/U+2;break;case x:V=(D-C)/U+4;break}V/=6}return[V,H,Q,P]}},{key:"hslToRgb",value:function(A){var R=l(A,4),D=R[0],C=R[1],x=R[2],P=R[3],$=void 0,L=void 0,V=void 0;if(C===0)$=L=V=x;else{var H=function(J,ue,ee){return ee<0&&(ee+=1),ee>1&&(ee-=1),ee<.16666666666666666?J+(ue-J)*6*ee:ee<.5?ue:ee<.6666666666666666?J+(ue-J)*(.6666666666666666-ee)*6:J},Q=x<.5?x*(1+C):x+C-x*C,U=2*x-Q;$=H(U,Q,D+1/3),L=H(U,Q,D),V=H(U,Q,D-1/3)}var K=[$*255,L*255,V*255].map(Math.round);return K[3]=P,K}}]),_}(),h=function(){function _(){a(this,_),this._events=[]}return s(_,[{key:"add",value:function(A,R,D){A.addEventListener(R,D,!1),this._events.push({target:A,type:R,handler:D})}},{key:"remove",value:function(A,R,D){this._events=this._events.filter(function(C){var x=!0;return A&&A!==C.target&&(x=!1),R&&R!==C.type&&(x=!1),D&&D!==C.handler&&(x=!1),x&&_._doRemove(C.target,C.type,C.handler),!x})}},{key:"destroy",value:function(){this._events.forEach(function(A){return _._doRemove(A.target,A.type,A.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(A,R,D){A.removeEventListener(R,D,!1)}}]),_}();function f(_){var A=document.createElement("div");return A.innerHTML=_,A.firstElementChild}function g(_,A,R){var D=!1;function C(L,V,H){return Math.max(V,Math.min(L,H))}function x(L,V,H){if(H&&(D=!0),!!D){L.preventDefault();var Q=A.getBoundingClientRect(),U=Q.width,K=Q.height,J=V.clientX,ue=V.clientY,ee=C(J-Q.left,0,U),N=C(ue-Q.top,0,K);R(ee/U,N/K)}}function P(L,V){var H=L.buttons===void 0?L.which:L.buttons;H===1?x(L,L,V):D=!1}function $(L,V){L.touches.length===1?x(L,L.touches[0],V):D=!1}_.add(A,"mousedown",function(L){P(L,!0)}),_.add(A,"touchstart",function(L){$(L,!0)}),_.add(window,"mousemove",P),_.add(A,"touchmove",$),_.add(window,"mouseup",function(L){D=!1}),_.add(A,"touchend",function(L){D=!1}),_.add(A,"touchcancel",function(L){D=!1})}var b=`linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
|
|
linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,v=360,m="keydown",w="mousedown",k="focusin";function T(_,A){return(A||document).querySelector(_)}function S(_){_.preventDefault(),_.stopPropagation()}function I(_,A,R,D,C){_.add(A,m,function(x){R.indexOf(x.key)>=0&&D(x)})}var O=function(){function _(A){a(this,_),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new h,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(A)}return s(_,[{key:"setOptions",value:function(A){var R=this;if(!A)return;var D=this.settings;function C(L,V,H){for(var Q in L)V[Q]=L[Q]}if(A instanceof HTMLElement)D.parent=A;else{D.parent&&A.parent&&D.parent!==A.parent&&(this._events.remove(D.parent),this._popupInited=!1),C(A,D),A.onChange&&(this.onChange=A.onChange),A.onDone&&(this.onDone=A.onDone),A.onOpen&&(this.onOpen=A.onOpen),A.onClose&&(this.onClose=A.onClose);var x=A.color||A.colour;x&&this._setColor(x)}var P=D.parent;if(P&&D.popup&&!this._popupInited){var $=function(L){return R.openHandler(L)};this._events.add(P,"click",$),I(this._events,P,[" ","Spacebar","Enter"],$),this._popupInited=!0}else A.parent&&!D.popup&&this.show()}},{key:"openHandler",value:function(A){if(this.show()){A&&A.preventDefault(),this.settings.parent.style.pointerEvents="none";var R=A&&A.type===m?this._domEdit:this.domElement;setTimeout(function(){return R.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(A){var R=A&&A.type,D=!1;if(!A)D=!0;else if(R===w||R===k){var C=(this.__containedEvent||0)+100;A.timeStamp>C&&(D=!0)}else S(A),D=!0;D&&this.hide()&&(this.settings.parent.style.pointerEvents="",R!==w&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(A,R){this.closeHandler(),this.setOptions(A),R&&this.openHandler()}},{key:"setColor",value:function(A,R){this._setColor(A,{silent:R})}},{key:"_setColor",value:function(A,R){if(typeof A=="string"&&(A=A.trim()),!!A){R=R||{};var D=void 0;try{D=new d(A)}catch(x){if(R.failSilently)return;throw x}if(!this.settings.alpha){var C=D.hsla;C[3]=1,D.hsla=C}this.colour=this.color=D,this._setHSLA(null,null,null,null,R)}}},{key:"setColour",value:function(A,R){this.setColor(A,R)}},{key:"show",value:function(){var A=this.settings.parent;if(!A)return!1;if(this.domElement){var R=this._toggleDOM(!0);return this._setPosition(),R}var D=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',C=f(D);return this.domElement=C,this._domH=T(".picker_hue",C),this._domSL=T(".picker_sl",C),this._domA=T(".picker_alpha",C),this._domEdit=T(".picker_editor input",C),this._domSample=T(".picker_sample",C),this._domOkay=T(".picker_done button",C),this._domCancel=T(".picker_cancel button",C),C.classList.add("layout_"+this.settings.layout),this.settings.alpha||C.classList.add("no_alpha"),this.settings.editor||C.classList.add("no_editor"),this.settings.cancelButton||C.classList.add("no_cancel"),this._ifPopup(function(){return C.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var A=this,R=this,D=this.domElement,C=this._events;function x(L,V,H){C.add(L,V,H)}x(D,"click",function(L){return L.preventDefault()}),g(C,this._domH,function(L,V){return R._setHSLA(L)}),g(C,this._domSL,function(L,V){return R._setHSLA(null,L,1-V)}),this.settings.alpha&&g(C,this._domA,function(L,V){return R._setHSLA(null,null,null,1-V)});var P=this._domEdit;x(P,"input",function(L){R._setColor(this.value,{fromEditor:!0,failSilently:!0})}),x(P,"focus",function(L){var V=this;V.selectionStart===V.selectionEnd&&V.select()}),this._ifPopup(function(){var L=function(H){return A.closeHandler(H)};x(window,w,L),x(window,k,L),I(C,D,["Esc","Escape"],L);var V=function(H){A.__containedEvent=H.timeStamp};x(D,w,V),x(D,k,V),x(A._domCancel,"click",L)});var $=function(L){A._ifPopup(function(){return A.closeHandler(L)}),A.onDone&&A.onDone(A.colour)};x(this._domOkay,"click",$),I(C,D,["Enter"],$)}},{key:"_setPosition",value:function(){var A=this.settings.parent,R=this.domElement;A!==R.parentNode&&A.appendChild(R),this._ifPopup(function(D){getComputedStyle(A).position==="static"&&(A.style.position="relative");var C=D===!0?"popup_right":"popup_"+D;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(x){x===C?R.classList.add(x):R.classList.remove(x)}),R.classList.add(C)})}},{key:"_setHSLA",value:function(A,R,D,C,x){x=x||{};var P=this.colour,$=P.hsla;[A,R,D,C].forEach(function(L,V){(L||L===0)&&($[V]=L)}),P.hsla=$,this._updateUI(x),this.onChange&&!x.silent&&this.onChange(P)}},{key:"_updateUI",value:function(A){if(!this.domElement)return;A=A||{};var R=this.colour,D=R.hsla,C="hsl("+D[0]*v+", 100%, 50%)",x=R.hslString,P=R.hslaString,$=this._domH,L=this._domSL,V=this._domA,H=T(".picker_selector",$),Q=T(".picker_selector",L),U=T(".picker_selector",V);function K(le,oe,ve){oe.style.left=ve*100+"%"}function J(le,oe,ve){oe.style.top=ve*100+"%"}K($,H,D[0]),this._domSL.style.backgroundColor=this._domH.style.color=C,K(L,Q,D[1]),J(L,Q,1-D[2]),L.style.color=x,J(V,U,1-D[3]);var ue=x,ee=ue.replace("hsl","hsla").replace(")",", 0)"),N="linear-gradient("+[ue,ee]+")";if(this._domA.style.background=N+", "+b,!A.fromEditor){var q=this.settings.editorFormat,G=this.settings.alpha,ne=void 0;switch(q){case"rgb":ne=R.printRGB(G);break;case"hsl":ne=R.printHSL(G);break;default:ne=R.printHex(G)}this._domEdit.value=ne}this._domSample.style.color=P}},{key:"_ifPopup",value:function(A,R){this.settings.parent&&this.settings.popup?A&&A(this.settings.popup):R&&R()}},{key:"_toggleDOM",value:function(A){var R=this.domElement;if(!R)return!1;var D=A?"":"none",C=R.style.display!==D;return C&&(R.style.display=D),C}}]),_}(),y=document.createElement("style");return y.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(y),O.StyleElement=y,O}()},1262:function(o,a,s){function l(Pe){return(l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ze){return typeof Ze}:function(Ze){return Ze&&typeof Symbol=="function"&&Ze.constructor===Symbol&&Ze!==Symbol.prototype?"symbol":typeof Ze})(Pe)}function u(Pe){var Ze=h();return function(){var dt,Mt=g(Pe),Mt=(dt=Ze?(dt=g(this).constructor,Reflect.construct(Mt,arguments,dt)):Mt.apply(this,arguments),this);if(dt&&(l(dt)==="object"||typeof dt=="function"))return dt;if(dt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");if(Mt!==void 0)return Mt;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(Pe){var Ze=typeof Map=="function"?new Map:void 0;return function(dt){if(dt===null||Function.toString.call(dt).indexOf("[native code]")===-1)return dt;if(typeof dt!="function")throw new TypeError("Super expression must either be null or a function");if(Ze!==void 0){if(Ze.has(dt))return Ze.get(dt);Ze.set(dt,Mt)}function Mt(){return d(dt,arguments,g(this).constructor)}return Mt.prototype=Object.create(dt.prototype,{constructor:{value:Mt,enumerable:!1,writable:!0,configurable:!0}}),f(Mt,dt)}(Pe)}function d(Pe,Ze,dt){return(d=h()?Reflect.construct.bind():function(Mt,He,wt){var Ee=[null];return Ee.push.apply(Ee,He),He=new(Function.bind.apply(Mt,Ee)),wt&&f(He,wt.prototype),He}).apply(null,arguments)}function h(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(Pe,Ze){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(dt,Mt){return dt.__proto__=Mt,dt})(Pe,Ze)}function g(Pe){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ze){return Ze.__proto__||Object.getPrototypeOf(Ze)})(Pe)}s.d(a,{K:function(){return ht}});var b=function(Pe){var Ze=Mt;if(typeof Pe!="function"&&Pe!==null)throw new TypeError("Super expression must either be null or a function");Ze.prototype=Object.create(Pe&&Pe.prototype,{constructor:{value:Ze,writable:!0,configurable:!0}}),Object.defineProperty(Ze,"prototype",{writable:!1}),Pe&&f(Ze,Pe);var dt=u(Mt);function Mt(He,wt){if(this instanceof Mt)return(He=dt.call(this,He+" at position "+wt)).position=wt,He;throw new TypeError("Cannot call a class as a function")}return Ze=Mt,Object.defineProperty(Ze,"prototype",{writable:!1}),Ze}(c(Error)),v=92,m=47,w=42,k=123,T=125,S=91,I=93,O=40,y=41,_=32,A=10,R=9,D=13,C=8,x=12,P=34,$=43,L=45,V=39,H=48,Q=49,U=57,K=44,J=46,ue=58,ee=59,N=65,q=97,G=69,ne=101,le=70,oe=102,ve=160,de=8192,ae=8202,be=8239,ie=8287,ce=12288,pe=8220,X=8221,Z=8216,Y=8217,se=96,fe=180;function me(Pe){return H<=Pe&&Pe<=U||N<=Pe&&Pe<=le||q<=Pe&&Pe<=oe}function Ae(Pe){return H<=Pe&&Pe<=U}var Be=/^[,:[\]{}()\n]$/;function Ye(Pe){return Qe.test(Pe)||Pe&&st(Pe.charCodeAt(0))}var Qe=/^[[{\w-]$/;function nt(Pe){return Pe===_||Pe===A||Pe===R||Pe===D}function st(Pe){return Le(Pe)||je(Pe)}function Le(Pe){return Pe===P||Pe===pe||Pe===X}function Me(Pe){return Pe===P}function je(Pe){return Pe===V||Pe===Z||Pe===Y||Pe===se||Pe===fe}function Ue(Pe,Ze,dt){return dt=2<arguments.length&&dt!==void 0&&dt,Ze=Pe.lastIndexOf(Ze),Ze!==-1?Pe.substring(0,Ze)+(dt?"":Pe.substring(Ze+1)):Pe}function Te(Pe,Ze){var dt=Pe.length;if(!nt(Pe.charCodeAt(dt-1)))return Pe+Ze;for(;nt(Pe.charCodeAt(dt-1));)dt--;return Pe.substring(0,dt)+Ze+Pe.substring(dt)}var bt={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},At={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
`,r:"\r",t:" "};function ht(Pe){var Ze=0,dt="";if(!Ee())throw new b("Unexpected end of json string",Pe.length);var Mt=_t(K);if(Mt&&Xe(),Ye(Pe[Ze])&&/[,\n][ \t\r]*$/.test(dt)){Mt||(dt=Te(dt,","));for(var He=!0,wt=!0;wt;)He?He=!1:_t(K)||(dt=Te(dt,",")),wt=Ee();wt||(dt=Ue(dt,",")),dt=`[
|
|
`.concat(dt,`
|
|
]`)}else Mt&&(dt=Ue(dt,","));if(Ze>=Pe.length)return dt;throw new b("Unexpected character "+JSON.stringify(Pe[Ze]),Ze);function Ee(){Xe();var Ke=function(){if(Pe.charCodeAt(Ze)!==k)return!1;dt+="{",Ze++,Xe();for(var et=!0;Ze<Pe.length&&Pe.charCodeAt(Ze)!==T;){if(et?et=!1:(_t(K)||(dt=Te(dt,",")),Xe()),!(ln()||hr())){Pe.charCodeAt(Ze)===T||Pe.charCodeAt(Ze)===k||Pe.charCodeAt(Ze)===I||Pe.charCodeAt(Ze)===S||Pe[Ze]===void 0?dt=Ue(dt,","):function(){throw new b("Object key expected",Ze)}();break}Xe();var $t=_t(ue);$t||(Ye(Pe[Ze])?dt=Te(dt,":"):ze()),Ee()||($t?function(){throw new b("Object value expected",Ze)}:ze)()}return Pe.charCodeAt(Ze)===T?(dt+="}",Ze++):dt=Te(dt,"}"),!0}()||function(){if(Pe.charCodeAt(Ze)!==S)return!1;dt+="[",Ze++,Xe();for(var et=!0;Ze<Pe.length&&Pe.charCodeAt(Ze)!==I;)if(et?et=!1:_t(K)||(dt=Te(dt,",")),!Ee()){dt=Ue(dt,",");break}return Pe.charCodeAt(Ze)===I?(dt+="]",Ze++):dt=Te(dt,"]"),!0}()||ln()||function(){var et=Ze;if(Pe.charCodeAt(Ze)===L&&(Ze++,Wr(et)))return!0;if(Pe.charCodeAt(Ze)===H)Ze++;else if(function($t){return Q<=$t&&$t<=U}(Pe.charCodeAt(Ze)))for(Ze++;Ae(Pe.charCodeAt(Ze));)Ze++;if(Pe.charCodeAt(Ze)===J){if(Ze++,Wr(et))return!0;for(;Ae(Pe.charCodeAt(Ze));)Ze++}if(Pe.charCodeAt(Ze)===ne||Pe.charCodeAt(Ze)===G){if(Ze++,Pe.charCodeAt(Ze)!==L&&Pe.charCodeAt(Ze)!==$||Ze++,Wr(et))return!0;for(;Ae(Pe.charCodeAt(Ze));)Ze++}return et<Ze?(dt+=Pe.slice(et,Ze),!0):!1}()||kn("true","true")||kn("false","false")||kn("null","null")||kn("True","true")||kn("False","false")||kn("None","null")||hr();return Xe(),Ke}function Xe(){for(ct();function(){if(Pe.charCodeAt(Ze)===m&&Pe.charCodeAt(Ze+1)===w){for(;Ze<Pe.length&&!function(Ke,et){return Ke[et]==="*"&&Ke[et+1]==="/"}(Pe,Ze);)Ze++;Ze+=2}else{if(Pe.charCodeAt(Ze)!==m||Pe.charCodeAt(Ze+1)!==m)return!1;for(;Ze<Pe.length&&Pe.charCodeAt(Ze)!==A;)Ze++}return!0}()&&ct(););}function ct(){for(var Ke,et,$t="";(Ke=nt(Pe.charCodeAt(Ze)))||(et=Pe.charCodeAt(Ze))===ve||de<=et&&et<=ae||et===be||et===ie||et===ce;)$t+=Ke?Pe[Ze]:" ",Ze++;return 0<$t.length&&(dt+=$t,!0)}function _t(Ke){return Pe.charCodeAt(Ze)===Ke&&(dt+=Pe[Ze],Ze++,!0)}function Qt(){return Ke=v,Pe.charCodeAt(Ze)===Ke&&(Ze++,!0);var Ke}function ln(){var Ke,et=Pe.charCodeAt(Ze)===v;if(et&&(Ze++,et=!0),st(Pe.charCodeAt(Ze))){var $t=je(Pe.charCodeAt(Ze))?je:Me(Pe.charCodeAt(Ze))?Me:Le;for(dt+='"',Ze++;Ze<Pe.length&&!$t(Pe.charCodeAt(Ze));){if(Pe.charCodeAt(Ze)===v){var Lt=Pe[Ze+1];if(At[Lt]!==void 0)dt+=Pe.slice(Ze,Ze+2),Ze+=2;else if(Lt==="u"){if(!(me(Pe.charCodeAt(Ze+2))&&me(Pe.charCodeAt(Ze+3))&&me(Pe.charCodeAt(Ze+4))&&me(Pe.charCodeAt(Ze+5)))){qe=Mn=void 0;for(var Mn=Ze,qe=Mn+2;/\w/.test(Pe[qe]);)qe++;throw Mn=Pe.slice(Mn,qe),new b('Invalid unicode character "'.concat(Mn,'"'),Ze)}dt+=Pe.slice(Ze,Ze+6),Ze+=6}else dt+=Lt,Ze+=2}else{if(Mn=Pe[Ze],Lt=Pe.charCodeAt(Ze),Lt===P&&Pe.charCodeAt(Ze-1)!==v)dt+="\\"+Mn;else if((Ke=Lt)===A||Ke===D||Ke===R||Ke===C||Ke===x)dt+=bt[Mn];else{if(!(32<=(Ke=Lt)&&Ke<=1114111))throw new b("Invalid character "+JSON.stringify(Mn),Ze);dt+=Mn}Ze++}et&&Qt()}for(st(Pe.charCodeAt(Ze))?(Pe.charCodeAt(Ze),dt+='"',Ze++):dt+='"',Xe();Pe.charCodeAt(Ze)===$;){Ze++,Xe();var kt=(dt=Ue(dt,'"',!0)).length;ln(),dt=function(Ut,nn,Cn){return Ut.substring(0,nn)+Ut.substring(nn+Cn)}(dt,kt,1)}return!0}return!1}function kn(Ke,et){return Pe.slice(Ze,Ze+Ke.length)===Ke&&(dt+=et,Ze+=Ke.length,!0)}function hr(){for(var Ke,et=Ze;Ze<Pe.length&&(Ke=Pe[Ze],!(Be.test(Ke)||Ke&&st(Ke.charCodeAt(0))));)Ze++;if(et<Ze){if(Pe.charCodeAt(Ze)===O)Ze++,Ee(),Pe.charCodeAt(Ze)===y&&(Ze++,Pe.charCodeAt(Ze)===ee)&&Ze++;else{for(;nt(Pe.charCodeAt(Ze-1))&&0<Ze;)Ze--;et=Pe.slice(et,Ze),dt+=JSON.stringify(et)}return!0}}function pr(Ke){if(!Ae(Pe.charCodeAt(Ze)))throw Ke=Pe.slice(Ke,Ze),new b("Invalid number '".concat(Ke,"', expecting a digit ").concat(Pe[Ze]?"but got '".concat(Pe[Ze],"'"):"but reached end of input"),2)}function Wr(Ke){if(Ze>=Pe.length)return dt+=Pe.slice(Ke,Ze)+"0",1;pr(Ke)}function ze(){throw new b("Colon expected",Ze)}}},894:function(o){o.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},7171:function(o){o.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')},6273:function(o){o.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},6680:function(o){o.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},i={},n.amdD=function(){throw new Error("define cannot be used indirect")},n.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(a,{a}),a},n.d=function(o,a){for(var s in a)n.o(a,s)&&!n.o(o,s)&&Object.defineProperty(o,s,{enumerable:!0,get:a[s]})},n.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},n.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},n.nmd=function(o){return o.paths=[],o.children||(o.children=[]),o},n(3161);function n(o){var a=i[o];return a!==void 0||(a=i[o]={id:o,loaded:!1,exports:{}},r[o].call(a.exports,a,a.exports,n),a.loaded=!0),a.exports}var r,i})})(vxe);var Uot=vxe.exports;const Xot=pl(Uot),Yot={editor:null,name:"json-editor-vue",internalChange:!1,props:{modelValue:Object,options:Object,currentMode:{type:String,default:"code"},modeList:{type:Array,default:()=>["tree","code","form","text","view"]},language:{type:String,default:"en"}},data(){return{json:this.modelValue,expandedModes:["tree","view","form"],isFullScreen:!1,hasLogo:!0,showFullScreen:!1}},watch:{modelValue:{immediate:!0,deep:!0,handler(e){this.internalChange||(this.setEditorContent(e),this.$nextTick(()=>{this.expandAll()}))}}},mounted(){this.init();const e=document.querySelector(".jsoneditor-menu .jsoneditor-poweredBy");this.hasLogo=e&&window.getComputedStyle(e).display!=="none",this.showFullScreen=!0},unmounted(){var e;(e=this.editor)==null||e.destroy(),this.editor=null},methods:{toggleFullScreen(){this.isFullScreen=!this.isFullScreen,this.$nextTick(()=>{const e=new Event("resize");window.dispatchEvent(e)})},init(){const{currentMode:e,modeList:t,options:n}=this,r=()=>{const h=f=>{this.json=f,this.$emit("update:modelValue",f),this.$emit("change",f),this.internalChange=!0,this.$nextTick(()=>{this.internalChange=!1})};if(!this.editor.getText()){h({});return}try{const f=this.editor.get();h(f)}catch{}},i=()=>{this.expandAll()},o=(h,f,g)=>{this.$emit("textSelectionChange",this.editor,h,f,g)},a=(h,f)=>{this.$emit("selectionChange",this.editor,h,f)},s=(h,f,g)=>{this.$emit("colorPicker",this.editor,h,f,g)},l=({target:h})=>{this.$emit("focus",this.editor,h)},u=({target:h})=>{this.$emit("blur",this.editor,h)},c=h=>{this.$emit("validationError",this.editor,h)},d={...n,indentation:2,language:this.language,mode:e,modes:t,onChange:r,onModeChange:i,onTextSelectionChange:o,onSelectionChange:a,onColorPicker:s,onFocus:l,onBlur:u,onValidationError:c};this.editor=new Xot(this.$refs.jsonEditorVue,d,this.json)},expandAll(){var e,t;this.expandedModes.includes((e=this.editor)==null?void 0:e.getMode())&&((t=this.editor)==null||t.expandAll())},setEditorContent(e){var t;(t=this.editor)==null||t.set(e)}}},Kot={ref:"jsonEditorVue",class:"json-editor-vue"};function qot(e,t,n,r,i,o){return Ce(),We("div",{class:De(["container",{"full-screen-container":i.isFullScreen}])},[at("div",Kot,null,512),at("div",{class:De(["full-screen",{show:i.showFullScreen,right:!i.hasLogo}]),onClick:t[0]||(t[0]=(...a)=>o.toggleFullScreen&&o.toggleFullScreen(...a))},null,2)],2)}const wb=Is(Yot,[["render",qot],["__scopeId","data-v-4645e1b0"]]);wb.install=function(e){e.component(wb.name,wb)};const Jot=Object.assign({inheritAttrs:!1},{__name:"JsonEdit",props:{modelValue:{},name:String,title:{type:String,default:"编辑"},mode:{type:String,default:"direct"},height:null,description:String,disabled:Boolean,size:String,initVal:null},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Oe({get(){return n.modelValue||n.initVal},set(l){r("update:modelValue",l)}}),o=Re(!1),a=Re(null),s=()=>{o.value=!0};return _n(()=>{a.value="initialValue"}),(l,u)=>(Ce(),We(un,null,[e.mode==="dialog"?(Ce(),We(un,{key:0},[xe(W(mo),{onClick:s,disabled:e.disabled,type:"primary"},{default:ot(()=>[gr(en(e.title),1)]),_:1},8,["disabled"]),xe(W(aX),{modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=c=>o.value=c),title:e.title,width:"70%",center:"","destroy-on-close":""},{default:ot(()=>[at("div",null,en(e.description),1),xe(W(wb),jr({class:"editor-dialog",modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=c=>i.value=c),currentMode:"code",modeList:["text","view","tree","code","form"],options:{search:!1,history:!1}},l.$attrs),null,16,["modelValue"])]),_:1},8,["modelValue","title"])],64)):xt("",!0),e.mode==="direct"?(Ce(),mt(W(kee),{key:1,disabled:e.disabled,class:"jsonEdit-disabled"},{default:ot(()=>[(Ce(),mt(W(wb),jr({class:"editor-direct",modelValue:i.value,"onUpdate:modelValue":u[2]||(u[2]=c=>i.value=c),key:a.value,currentMode:"code",modeList:["text","view","tree","code","form"],options:{search:!1,history:!1},style:{height:e.height}},l.$attrs),null,16,["modelValue","style"]))]),_:1},8,["disabled"])):xt("",!0)],64))}}),eat=Xo({basic:[...Qo(["initialValue","props.readonly","props.placeholder"]),{label:"初始值",component:"JsonEdit",name:"initialValue"},{label:"显示模式",component:"Radio",name:"props.mode",props:{mode:"static",options:[{label:"直接显示",value:"direct"},{label:"弹窗",value:"dialog"}]}}],high:Uo(),linkage:Ta}),tat={name:"JSON编辑器",component:Jot,icon:"jsonEdit",type:"basic",order:14,attr:eat,initialValues:{label:"JSON编辑器",component:"JsonEdit",props:{mode:"direct"}}},yxe=Object.freeze(Object.defineProperty({__proto__:null,default:tat},Symbol.toStringTag,{value:"Module"})),nat=Xo({basic:[...Qo(["props.readonly","props.placeholder","initialValue"]),{label:"初始值",component:"Textarea",name:"initialValue"}],high:Uo(),linkage:Ta}),gt="md-editor",rat="md-editor-v3",iat="https://at.alicdn.com/t/c/font_2605852_prouiefeic.js",oat="https://at.alicdn.com/t/c/font_2605852_prouiefeic.css",_o="https://cdnjs.cloudflare.com/ajax/libs",aat=`${_o}/highlight.js/11.9.0/highlight.min.js`,Rie={main:`${_o}/prettier/2.8.0/standalone.js`,markdown:`${_o}/prettier/2.8.0/parser-markdown.js`},$ie={css:`${_o}/cropperjs/1.5.13/cropper.min.css`,js:`${_o}/cropperjs/1.5.13/cropper.min.js`},sat=`${_o}/screenfull.js/5.2.0/screenfull.min.js`,bxe=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","task","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","htmlPreview","catalog","github"],wxe=["markdownTotal","=","scrollSwitch"],Mie={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Img Link",upload:"Upload Img",clip2upload:"Clip Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Word Count",scrollAuto:"Scroll Auto"}}},lat=`${_o}/mermaid/10.6.1/mermaid.esm.min.mjs`,Lie={js:`${_o}/KaTeX/0.16.9/katex.min.js`,css:`${_o}/KaTeX/0.16.9/katex.min.css`},Bie={a11y:{light:`${_o}/highlight.js/11.9.0/styles/a11y-light.min.css`,dark:`${_o}/highlight.js/11.9.0/styles/a11y-dark.min.css`},atom:{light:`${_o}/highlight.js/11.9.0/styles/atom-one-light.min.css`,dark:`${_o}/highlight.js/11.9.0/styles/atom-one-dark.min.css`},github:{light:`${_o}/highlight.js/11.9.0/styles/github.min.css`,dark:`${_o}/highlight.js/11.9.0/styles/github-dark.min.css`},gradient:{light:`${_o}/highlight.js/11.9.0/styles/gradient-light.min.css`,dark:`${_o}/highlight.js/11.9.0/styles/gradient-dark.min.css`},kimbie:{light:`${_o}/highlight.js/11.9.0/styles/kimbie-light.min.css`,dark:`${_o}/highlight.js/11.9.0/styles/kimbie-dark.min.css`},paraiso:{light:`${_o}/highlight.js/11.9.0/styles/paraiso-light.min.css`,dark:`${_o}/highlight.js/11.9.0/styles/paraiso-dark.min.css`},qtcreator:{light:`${_o}/highlight.js/11.9.0/styles/qtcreator-light.min.css`,dark:`${_o}/highlight.js/11.9.0/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${_o}/highlight.js/11.9.0/styles/stackoverflow-light.min.css`,dark:`${_o}/highlight.js/11.9.0/styles/stackoverflow-dark.min.css`}},ha={editorExtensions:{},editorConfig:{},codeMirrorExtensions:(e,t)=>t,markdownItConfig:()=>{},markdownItPlugins:e=>e,iconfontType:"svg",mermaidConfig:e=>e},wD=170,FL=(e,t=200)=>{let n=0;return(...r)=>new Promise(i=>{n&&(clearTimeout(n),i("cancel")),n=window.setTimeout(()=>{e.apply(void 0,r),n=0,i("done")},t)})},uat=(e,t={_blank:!0,nofollow:!0})=>{const n=document.createElement("a");n.href=e,t._blank&&(n.target="_blank"),t.nofollow&&(n.rel="noopener noreferrer"),n.click()},cat=()=>{let e=-1;return(t,n,r,i=100)=>{const o=()=>{r&&(typeof i=="number"?setTimeout(r,i):r())};e!==-1&&(cancelAnimationFrame(e),o());let a=t.scrollTop;const s=()=>{e=-1;const l=n-a;a=a+l/5,Math.abs(l)<1?(t.scrollTo(0,n),o()):(t.scrollTo(0,a),e=requestAnimationFrame(s))};e=requestAnimationFrame(s)}},dat=(e,t=200)=>{let n=0,r=null;return(...i)=>{const o=a=>{n===0&&(n=a),a-n>=t?(e.apply(void 0,r),r=null,n=0):window.requestAnimationFrame(o)};r===null&&window.requestAnimationFrame(o),r=i}},hat=e=>{const t=n=>{const{scrollHeight:r,scrollWidth:i,offsetHeight:o,offsetWidth:a,scrollLeft:s,scrollTop:l}=e,u=n.x,c=n.y,d=f=>{const g=l+c-f.y,b=s+u-f.x,v=r-o,m=i-a,w={};b>=0&&b<=m&&(w.left=b),g>=0&&g<=v&&(w.top=g),e.scroll(w)};document.addEventListener("mousemove",d);const h=()=>{document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",h)};document.addEventListener("mouseup",h)};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}},Kc=({instance:e,ctx:t,props:n={}},r="default")=>{const i=(e==null?void 0:e.$slots[r])||(t==null?void 0:t.slots[r]);return(i?i(e):"")||n[r]},pat={overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>{}},relative:{type:String,default:"html"}},CC=ft({props:pat,setup(e,t){const n=`${gt}-dropdown-hidden`,r=Br({overlayClass:[n],overlayStyle:{},triggerHover:!1,overlayHover:!1}),i=Re(),o=Re(),a=()=>{var c;r.triggerHover=!0;const d=i.value,h=o.value;if(!d||!h)return;const f=d.getBoundingClientRect(),g=d.offsetTop,b=d.offsetLeft,v=f.height,m=f.width,w=((c=document.querySelector(e.relative))==null?void 0:c.scrollLeft)||0;r.overlayStyle={...r.overlayStyle,top:g+v+"px",left:b-h.offsetWidth/2+m/2-w+"px"},e.onChange(!0)},s=()=>{r.overlayHover=!0};Pt(()=>e.visible,c=>{c?r.overlayClass=r.overlayClass.filter(d=>d!==n):r.overlayClass.push(n)});let l=-1;const u=c=>{i.value===c.target?r.triggerHover=!1:r.overlayHover=!1,clearTimeout(l),l=window.setTimeout(()=>{!r.overlayHover&&!r.triggerHover&&e.onChange(!1)},10)};return _n(()=>{i.value.addEventListener("mouseenter",a),i.value.addEventListener("mouseleave",u),o.value.addEventListener("mouseenter",s),o.value.addEventListener("mouseleave",u)}),Mo(()=>{i.value.removeEventListener("mouseenter",a),i.value.removeEventListener("mouseleave",u),o.value.removeEventListener("mouseenter",s),o.value.removeEventListener("mouseleave",u)}),()=>{const c=Kc({ctx:t}),d=Kc({props:e,ctx:t},"overlay"),h=id(c instanceof Array?c[0]:c,{ref:i}),f=xe("div",{class:[`${gt}-dropdown`,r.overlayClass],style:r.overlayStyle,ref:o},[xe("div",{class:`${gt}-dropdown-overlay`},[d instanceof Array?d[0]:d])]);return[h,f]}}}),fat={title:{type:String,default:""},visible:{type:Boolean},trigger:{type:[String,Object]},onChange:{type:Function},overlay:{type:[String,Object]},insert:{type:Function},language:{type:String},theme:{type:String},default:{type:[String,Object]}},k3=ft({name:"DropdownToolbar",props:fat,emits:["onChange"],setup(e,t){const n=Ht("editorId");return()=>{const r=Kc({props:e,ctx:t},"trigger"),i=Kc({props:e,ctx:t},"overlay"),o=Kc({props:e,ctx:t});return xe(CC,{relative:`#${n}-toolbar-wrapper`,visible:e.visible,onChange:a=>{e.onChange instanceof Function?e.onChange(a):t.emit("onChange",a)},overlay:i},{default:()=>[xe("div",{class:`${gt}-toolbar-item`,title:e.title||""},[r,o])]})}}});k3.install=e=>(e.component(k3.name,k3),e);var gat=Object.defineProperty,mat=(e,t,n)=>t in e?gat(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vat=(e,t,n)=>(mat(e,t+"",n),n);let yat=class{constructor(){vat(this,"pools",{})}remove(e,t,n){const r=this.pools[e]&&this.pools[e][t];r&&(this.pools[e][t]=r.filter(i=>i!==n))}clear(e){this.pools[e]={}}on(e,t){return this.pools[e]||(this.pools[e]={}),this.pools[e][t.name]||(this.pools[e][t.name]=[]),this.pools[e][t.name].push(t.callback),this.pools[e][t.name].includes(t.callback)}emit(e,t,...n){this.pools[e]||(this.pools[e]={});const r=this.pools[e][t];r&&r.forEach(i=>{try{i(...n)}catch(o){console.error(`${t} monitor event exception!`,o)}})}};const $n=new yat,NL="onSave",fX="changeCatalogVisible",Cxe="changeFullscreen",Fie="pageFullscreenChanged",Nie="fullscreenChanged",Vie="previewChanged",jie="htmlPreviewChanged",Wie="catalogVisibleChanged",Oxe="textareaFocus",E3="buildFinished",k1="errorCatcher",Eo="replace",VL="uploadImage",ZW="openModals",xxe="ctrlZ",Sxe="ctrlShiftZ",GW="catalogChanged",Axe="pushCatalog",bat=(e,t="image.png")=>{const n=e.split(","),r=n[0].match(/:(.*?);/);if(r){const i=r[1],o=atob(n[1]);let a=o.length;const s=new Uint8Array(a);for(;a--;)s[a]=o.charCodeAt(a);return new File([s],t,{type:i})}return null},wat=e=>{if(!e)return e;const t=e.split(`
|
|
`),n=['<span rn-wrapper aria-hidden="true">'];return t.forEach(()=>{n.push("<span></span>")}),n.push("</span>"),`<span class="code-block">${e}</span>${n.join("")}`},Cat=(e,t)=>{if(!e||!t)return 0;const n=e==null?void 0:e.getBoundingClientRect();if(t===document.documentElement)return n.top-t.clientTop;const r=t==null?void 0:t.getBoundingClientRect();return n.top-r.top},Oat=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,Hie=(e,t)=>{const n=r=>{const i=e.parentElement||document.body,o=i.offsetWidth,a=i.offsetHeight,{clientWidth:s}=document.documentElement,{clientHeight:l}=document.documentElement,u=r.offsetX,c=r.offsetY,d=f=>{let g=f.x+document.body.scrollLeft-document.body.clientLeft-u,b=f.y+document.body.scrollTop-document.body.clientTop-c;g=g<1?1:g<s-o-1?g:s-o-1,b=b<1?1:b<l-a-1?b:l-a-1,t?t(g,b):(i.style.left=`${g}px`,i.style.top=`${b}px`)};document.addEventListener("mousemove",d);const h=()=>{document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",h)};document.addEventListener("mouseup",h)};return e.addEventListener("mousedown",n),()=>{e.removeEventListener("mousedown",n)}},Hc=(e,t="")=>{const n=document.getElementById(e.id),r=e.onload;e.onload=null;const i=function(o){typeof r=="function"&&r.bind(this)(o),e.removeEventListener("load",i)};n?t!==""&&(n.addEventListener("load",i),Reflect.get(window,t)&&n.dispatchEvent(new Event("load"))):(e.addEventListener("load",i),document.head.appendChild(e))},xat=FL((e,t,n)=>{const r=document.getElementById(e);r&&r.setAttribute(t,n)},10),Sat=ft({props:{name:{type:String,default:""}},setup(e){return()=>ha.iconfontType==="svg"?xe("svg",{class:`${gt}-icon`,"aria-hidden":"true"},[xe("use",{"xlink:href":`#${gt}-icon-${e.name}`},null)]):xe("i",{class:`${gt}-iconfont ${gt}-icon-${e.name}`},null)}}),xi=ft({props:{name:{type:String,default:""}},setup(e){const t=Ht("customIcon");return()=>{const n=t.value[e.name];return typeof n=="object"?typeof n.component=="object"?Yn(n.component,n.props):xe("span",{innerHTML:n.component},null):xe(Sat,{name:e.name},null)}}}),Aat={title:{type:String,default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClose:{type:Function},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>{}}},XC=ft({name:"MdModal",props:Aat,emits:["onClose"],setup(e,t){const n=Re(e.visible),r=Re([`${gt}-modal`]),i=Re(),o=Re();let a=()=>{};const s=Br({initPos:{left:"0px",top:"0px"},historyPos:{left:"0px",top:"0px"}}),l=Oe(()=>e.isFullscreen?{width:"100%",height:"100%"}:{width:e.width,height:e.height});return _n(()=>{a=Hie(o.value,(u,c)=>{s.initPos.left=u+"px",s.initPos.top=c+"px"})}),Mo(()=>{a()}),Pt(()=>e.isFullscreen,u=>{u?a():a=Hie(o.value,(c,d)=>{s.initPos.left=c+"px",s.initPos.top=d+"px"})}),Pt(()=>e.visible,u=>{u?(r.value.push("zoom-in"),n.value=u,mn(()=>{const c=i.value.offsetWidth/2,d=i.value.offsetHeight/2,h=document.documentElement.clientWidth/2,f=document.documentElement.clientHeight/2;s.initPos.left=h-c+"px",s.initPos.top=f-d+"px"}),setTimeout(()=>{r.value=r.value.filter(c=>c!=="zoom-in")},140)):(r.value.push("zoom-out"),setTimeout(()=>{r.value=r.value.filter(c=>c!=="zoom-out"),n.value=u},130))}),()=>{const u=Kc({ctx:t}),c=Kc({props:e,ctx:t},"title");return xe("div",{style:{display:n.value?"block":"none"}},[xe("div",{class:`${gt}-modal-mask`,onClick:()=>{e.onClose?e.onClose():t.emit("onClose")}},null),xe("div",{class:r.value,style:{...s.initPos,...l.value},ref:i},[xe("div",{class:`${gt}-modal-header`,ref:o},[c||""]),xe("div",{class:`${gt}-modal-body`},[u]),xe("div",{class:`${gt}-modal-func`},[e.showAdjust&&xe("div",{class:`${gt}-modal-adjust`,onClick:d=>{d.stopPropagation(),e.isFullscreen?s.initPos=s.historyPos:(s.historyPos=s.initPos,s.initPos={left:"0",top:"0"}),e.onAdjust(!e.isFullscreen)}},[xe(xi,{name:e.isFullscreen?"suoxiao":"fangda"},null)]),xe("div",{class:`${gt}-modal-close`,onClick:d=>{d.stopPropagation(),e.onClose?e.onClose():t.emit("onClose")}},[xe(xi,{name:"close"},null)])])])])}}});XC.install=e=>(e.component(XC.name,XC),e);class Ti{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=PO(this,t,n);let i=[];return this.decompose(0,t,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),pp.from(i,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=PO(this,t,n);let r=[];return this.decompose(t,n,r,0),pp.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),i=new Rk(this),o=new Rk(t);for(let a=n,s=n;;){if(i.next(a),o.next(a),a=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(s+=i.value.length,i.done||s>=r)return!0}}iter(t=1){return new Rk(this,t)}iterRange(t,n=this.length){return new Ixe(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(t).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new kxe(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?Ti.empty:t.length<=32?new Ia(t):pp.from(Ia.split(t,[]))}}class Ia extends Ti{constructor(t,n=Iat(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let o=0;;o++){let a=this.text[o],s=i+a.length;if((n?r:s)>=t)return new kat(i,s,r,a);i=s+1,r++}}decompose(t,n,r,i){let o=t<=0&&n>=this.length?this:new Ia(zie(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let a=r.pop(),s=_3(o.text,a.text.slice(),0,o.length);if(s.length<=32)r.push(new Ia(s,a.length+o.length));else{let l=s.length>>1;r.push(new Ia(s.slice(0,l)),new Ia(s.slice(l)))}}else r.push(o)}replace(t,n,r){if(!(r instanceof Ia))return super.replace(t,n,r);[t,n]=PO(this,t,n);let i=_3(this.text,_3(r.text,zie(this.text,0,t)),n),o=this.length+r.length-(n-t);return i.length<=32?new Ia(i,o):pp.from(Ia.split(i,[]),o)}sliceString(t,n=this.length,r=`
|
|
`){[t,n]=PO(this,t,n);let i="";for(let o=0,a=0;o<=n&&a<this.text.length;a++){let s=this.text[a],l=o+s.length;o>t&&a&&(i+=r),t<l&&n>o&&(i+=s.slice(Math.max(0,t-o),n-o)),o=l+1}return i}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let o of t)r.push(o),i+=o.length+1,r.length==32&&(n.push(new Ia(r,i)),r=[],i=-1);return i>-1&&n.push(new Ia(r,i)),n}}class pp extends Ti{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,i){for(let o=0;;o++){let a=this.children[o],s=i+a.length,l=r+a.lines-1;if((n?l:s)>=t)return a.lineInner(t,n,r,i);i=s+1,r=l+1}}decompose(t,n,r,i){for(let o=0,a=0;a<=n&&o<this.children.length;o++){let s=this.children[o],l=a+s.length;if(t<=l&&n>=a){let u=i&((a<=t?1:0)|(l>=n?2:0));a>=t&&l<=n&&!u?r.push(s):s.decompose(t-a,n-a,r,u)}a=l+1}}replace(t,n,r){if([t,n]=PO(this,t,n),r.lines<this.lines)for(let i=0,o=0;i<this.children.length;i++){let a=this.children[i],s=o+a.length;if(t>=o&&n<=s){let l=a.replace(t-o,n-o,r),u=this.lines-a.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let c=this.children.slice();return c[i]=l,new pp(c,this.length-(n-t)+r.length)}return super.replace(o,s,l)}o=s+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=`
|
|
`){[t,n]=PO(this,t,n);let i="";for(let o=0,a=0;o<this.children.length&&a<=n;o++){let s=this.children[o],l=a+s.length;a>t&&o&&(i+=r),t<l&&n>a&&(i+=s.sliceString(t-a,n-a,r)),a=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof pp))return 0;let r=0,[i,o,a,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,o+=n){if(i==a||o==s)return r;let l=this.children[i],u=t.children[o];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(t,n=t.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let f of t)r+=f.lines;if(r<32){let f=[];for(let g of t)g.flatten(f);return new Ia(f,n)}let i=Math.max(32,r>>5),o=i<<1,a=i>>1,s=[],l=0,u=-1,c=[];function d(f){let g;if(f.lines>o&&f instanceof pp)for(let b of f.children)d(b);else f.lines>a&&(l>a||!l)?(h(),s.push(f)):f instanceof Ia&&l&&(g=c[c.length-1])instanceof Ia&&f.lines+g.lines<=32?(l+=f.lines,u+=f.length+1,c[c.length-1]=new Ia(g.text.concat(f.text),g.length+1+f.length)):(l+f.lines>i&&h(),l+=f.lines,u+=f.length+1,c.push(f))}function h(){l!=0&&(s.push(c.length==1?c[0]:pp.from(c,u)),u=-1,l=c.length=0)}for(let f of t)d(f);return h(),s.length==1?s[0]:new pp(s,n)}}Ti.empty=new Ia([""],0);function Iat(e){let t=-1;for(let n of e)t+=n.length+1;return t}function _3(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o<e.length&&i<=r;o++){let s=e[o],l=i+s.length;l>=n&&(l>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),a?(t[t.length-1]+=s,a=!1):t.push(s)),i=l+1}return t}function zie(e,t,n){return _3(e,[""],t,n)}class Rk{constructor(t,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[n>0?1:(t instanceof Ia?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],o=this.offsets[r],a=o>>1,s=i instanceof Ia?i.text.length:i.children.length;if(a==(n>0?s:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=`
|
|
`,this;t--}else if(i instanceof Ia){let l=i.text[a+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[a+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof Ia?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class Ixe{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new Rk(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;let{value:i}=this.cursor.next(t);return this.pos+=(i.length+t)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class kxe{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:n,lineBreak:r,value:i}=this.inner.next(t);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Ti.prototype[Symbol.iterator]=function(){return this.iter()},Rk.prototype[Symbol.iterator]=Ixe.prototype[Symbol.iterator]=kxe.prototype[Symbol.iterator]=function(){return this});let kat=class{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}};function PO(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let YC="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=1;e<YC.length;e++)YC[e]+=YC[e-1];function Eat(e){for(let t=1;t<YC.length;t+=2)if(YC[t]>e)return YC[t-1]<=e;return!1}function Zie(e){return e>=127462&&e<=127487}const Gie=8205;function $l(e,t,n=!0,r=!0){return(n?Exe:_at)(e,t,r)}function Exe(e,t,n){if(t==e.length)return t;t&&_xe(e.charCodeAt(t))&&Txe(e.charCodeAt(t-1))&&t--;let r=jd(e,t);for(t+=fv(r);t<e.length;){let i=jd(e,t);if(r==Gie||i==Gie||n&&Eat(i))t+=fv(i),r=i;else if(Zie(i)){let o=0,a=t-2;for(;a>=0&&Zie(jd(e,a));)o++,a-=2;if(o%2==0)break;t+=2}else break}return t}function _at(e,t,n){for(;t>0;){let r=Exe(e,t-2,n);if(r<t)return r;t--}return 0}function _xe(e){return e>=56320&&e<57344}function Txe(e){return e>=55296&&e<56320}function jd(e,t){let n=e.charCodeAt(t);if(!Txe(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return _xe(r)?(n-55296<<10)+(r-56320)+65536:n}function Tat(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function fv(e){return e<65536?1:2}const QW=/\r\n?|\n/;var Rl=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Rl||(Rl={}));class Rp{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;n<this.sections.length;n+=2)t+=this.sections[n];return t}get newLength(){let t=0;for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n+1];t+=r<0?this.sections[n]:r}return t}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(t){for(let n=0,r=0,i=0;n<this.sections.length;){let o=this.sections[n++],a=this.sections[n++];a<0?(t(r,i,o),i+=o):i+=a,r+=o}}iterChangedRanges(t,n=!1){UW(this,t,n)}get invertedDesc(){let t=[];for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];i<0?t.push(r,i):t.push(i,r)}return new Rp(t)}composeDesc(t){return this.empty?t:t.empty?this:Pxe(this,t)}mapDesc(t,n=!1){return t.empty?this:XW(this,t,n)}mapPos(t,n=-1,r=Rl.Simple){let i=0,o=0;for(let a=0;a<this.sections.length;){let s=this.sections[a++],l=this.sections[a++],u=i+s;if(l<0){if(u>t)return o+(t-i);o+=s}else{if(r!=Rl.Simple&&u>=t&&(r==Rl.TrackDel&&i<t&&u>t||r==Rl.TrackBefore&&i<t||r==Rl.TrackAfter&&u>t))return null;if(u>t||u==t&&n<0&&!s)return t==i||n<0?o:o+l;o+=l}i=u}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return o}touchesRange(t,n=t){for(let r=0,i=0;r<this.sections.length&&i<=n;){let o=this.sections[r++],a=this.sections[r++],s=i+o;if(a>=0&&i<=n&&s>=t)return i<t&&s>n?"cover":!0;i=s}return!1}toString(){let t="";for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];t+=(t?" ":"")+r+(i>=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Rp(t)}static create(t){return new Rp(t)}}class ns extends Rp{constructor(t,n){super(t),this.inserted=n}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return UW(this,(n,r,i,o,a)=>t=t.replace(i,i+(r-n),a),!1),t}mapDesc(t,n=!1){return XW(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,o=0;i<n.length;i+=2){let a=n[i],s=n[i+1];if(s>=0){n[i]=s,n[i+1]=a;let l=i>>1;for(;r.length<l;)r.push(Ti.empty);r.push(a?t.slice(o,o+a):Ti.empty)}o+=a}return new ns(n,r)}compose(t){return this.empty?t:t.empty?this:Pxe(this,t,!0)}map(t,n=!1){return t.empty?this:XW(this,t,n,!0)}iterChanges(t,n=!1){UW(this,t,n)}get desc(){return Rp.create(this.sections)}filter(t){let n=[],r=[],i=[],o=new Y2(this);e:for(let a=0,s=0;;){let l=a==t.length?1e9:t[a++];for(;s<l||s==l&&o.len==0;){if(o.done)break e;let c=Math.min(o.len,l-s);Ks(i,c,-1);let d=o.ins==-1?-1:o.off==0?o.ins:0;Ks(n,c,d),d>0&&xv(r,n,o.text),o.forward(c),s+=c}let u=t[a++];for(;s<u;){if(o.done)break e;let c=Math.min(o.len,u-s);Ks(n,c,-1),Ks(i,c,o.ins==-1?-1:o.off==0?o.ins:0),o.forward(c),s+=c}}return{changes:new ns(n,r),filtered:Rp.create(i)}}toJSON(){let t=[];for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n],i=this.sections[n+1];i<0?t.push(r):i==0?t.push([r]):t.push([r].concat(this.inserted[n>>1].toJSON()))}return t}static of(t,n,r){let i=[],o=[],a=0,s=null;function l(c=!1){if(!c&&!i.length)return;a<n&&Ks(i,n-a,-1);let d=new ns(i,o);s=s?s.compose(d.map(s)):d,i=[],o=[],a=0}function u(c){if(Array.isArray(c))for(let d of c)u(d);else if(c instanceof ns){if(c.length!=n)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${n})`);l(),s=s?s.compose(c.map(s)):c}else{let{from:d,to:h=d,insert:f}=c;if(d>h||d<0||h>n)throw new RangeError(`Invalid change range ${d} to ${h} (in doc of length ${n})`);let g=f?typeof f=="string"?Ti.of(f.split(r||QW)):f:Ti.empty,b=g.length;if(d==h&&b==0)return;d<a&&l(),d>a&&Ks(i,d-a,-1),Ks(i,h-d,b),xv(o,i,g),a=h}}return u(t),l(!s),s}static empty(t){return new ns(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;i<t.length;i++){let o=t[i];if(typeof o=="number")n.push(o,-1);else{if(!Array.isArray(o)||typeof o[0]!="number"||o.some((a,s)=>s&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)n.push(o[0],0);else{for(;r.length<i;)r.push(Ti.empty);r[i]=Ti.of(o.slice(1)),n.push(o[0],r[i].length)}}}return new ns(n,r)}static createSet(t,n){return new ns(t,n)}}function Ks(e,t,n,r=!1){if(t==0&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function xv(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(Ti.empty);e.push(n)}}function UW(e,t,n){let r=e.inserted;for(let i=0,o=0,a=0;a<e.sections.length;){let s=e.sections[a++],l=e.sections[a++];if(l<0)i+=s,o+=s;else{let u=i,c=o,d=Ti.empty;for(;u+=s,c+=l,l&&r&&(d=d.append(r[a-2>>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],l=e.sections[a++];t(i,u,o,c,d),i=u,o=c}}}function XW(e,t,n,r=!1){let i=[],o=r?[]:null,a=new Y2(e),s=new Y2(t);for(let l=-1;;)if(a.ins==-1&&s.ins==-1){let u=Math.min(a.len,s.len);Ks(i,u,-1),a.forward(u),s.forward(u)}else if(s.ins>=0&&(a.ins<0||l==a.i||a.off==0&&(s.len<a.len||s.len==a.len&&!n))){let u=s.len;for(Ks(i,s.ins,-1);u;){let c=Math.min(a.len,u);a.ins>=0&&l<a.i&&a.len<=c&&(Ks(i,0,a.ins),o&&xv(o,i,a.text),l=a.i),a.forward(c),u-=c}s.next()}else if(a.ins>=0){let u=0,c=a.len;for(;c;)if(s.ins==-1){let d=Math.min(c,s.len);u+=d,c-=d,s.forward(d)}else if(s.ins==0&&s.len<c)c-=s.len,s.next();else break;Ks(i,u,l<a.i?a.ins:0),o&&l<a.i&&xv(o,i,a.text),l=a.i,a.forward(a.len-c)}else{if(a.done&&s.done)return o?ns.createSet(i,o):Rp.create(i);throw new Error("Mismatched change set lengths")}}function Pxe(e,t,n=!1){let r=[],i=n?[]:null,o=new Y2(e),a=new Y2(t);for(let s=!1;;){if(o.done&&a.done)return i?ns.createSet(r,i):Rp.create(r);if(o.ins==0)Ks(r,o.len,0,s),o.next();else if(a.len==0&&!a.done)Ks(r,0,a.ins,s),i&&xv(i,r,a.text),a.next();else{if(o.done||a.done)throw new Error("Mismatched change set lengths");{let l=Math.min(o.len2,a.len),u=r.length;if(o.ins==-1){let c=a.ins==-1?-1:a.off?0:a.ins;Ks(r,l,c,s),i&&c&&xv(i,r,a.text)}else a.ins==-1?(Ks(r,o.off?0:o.len,l,s),i&&xv(i,r,o.textBit(l))):(Ks(r,o.off?0:o.len,a.off?0:a.ins,s),i&&!a.off&&xv(i,r,a.text));s=(o.ins>l||a.ins>=0&&a.len>l)&&(s||r.length>u),o.forward2(l),a.forward(l)}}}}class Y2{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length?Ti.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?Ti.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class lb{constructor(t,n,r){this.from=t,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,n=-1){let r,i;return this.empty?r=i=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new lb(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return tn.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return tn.range(this.anchor,r)}eq(t,n=!1){return this.anchor==t.anchor&&this.head==t.head&&(!n||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return tn.range(t.anchor,t.head)}static create(t,n,r){return new lb(t,n,r)}}class tn{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:tn.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t,n=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(t.ranges[r],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new tn([this.main],0)}addRange(t,n=!0){return tn.create([t].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(t,n=this.mainIndex){let r=this.ranges.slice();return r[n]=t,tn.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new tn(t.ranges.map(n=>lb.fromJSON(n)),t.main)}static single(t,n=t){return new tn([tn.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;i<t.length;i++){let o=t[i];if(o.empty?o.from<=r:o.from<r)return tn.normalized(t.slice(),n);r=o.to}return new tn(t,n)}static cursor(t,n=0,r,i){return lb.create(t,t,(n==0?0:n<0?8:16)|(r==null?7:Math.min(6,r))|(i??16777215)<<6)}static range(t,n,r,i){let o=(r??16777215)<<6|(i==null?7:Math.min(6,i));return n<t?lb.create(n,t,48|o):lb.create(t,n,(n>t?8:0)|o)}static normalized(t,n=0){let r=t[n];t.sort((i,o)=>i.from-o.from),n=t.indexOf(r);for(let i=1;i<t.length;i++){let o=t[i],a=t[i-1];if(o.empty?o.from<=a.to:o.from<a.to){let s=a.from,l=Math.max(o.to,a.to);i<=n&&n--,t.splice(--i,2,o.anchor>o.head?tn.range(l,s):tn.range(s,l))}}return new tn(t,n)}}function Dxe(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let gX=0;class ir{constructor(t,n,r,i,o){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=gX++,this.default=t([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(t={}){return new ir(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:mX),!!t.static,t.enables)}of(t){return new T3([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new T3(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new T3(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function mX(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class T3{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=gX++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,o=this.id,a=t[o]>>1,s=this.type==2,l=!1,u=!1,c=[];for(let d of this.dependencies)d=="doc"?l=!0:d=="selection"?u=!0:((n=t[d.id])!==null&&n!==void 0?n:1)&1||c.push(t[d.id]);return{create(d){return d.values[a]=r(d),1},update(d,h){if(l&&h.docChanged||u&&(h.docChanged||h.selection)||YW(d,c)){let f=r(d);if(s?!Qie(f,d.values[a],i):!i(f,d.values[a]))return d.values[a]=f,1}return 0},reconfigure:(d,h)=>{let f,g=h.config.address[o];if(g!=null){let b=a5(h,g);if(this.dependencies.every(v=>v instanceof ir?h.facet(v)===d.facet(v):v instanceof tf?h.field(v,!1)==d.field(v,!1):!0)||(s?Qie(f=r(d),b,i):i(f=r(d),b)))return d.values[a]=b,0}else f=r(d);return d.values[a]=f,1}}}}function Qie(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function YW(e,t){let n=!1;for(let r of t)$k(e,r)&1&&(n=!0);return n}function Pat(e,t,n){let r=n.map(l=>e[l.id]),i=n.map(l=>l.type),o=r.filter(l=>!(l&1)),a=e[t.id]>>1;function s(l){let u=[];for(let c=0;c<r.length;c++){let d=a5(l,r[c]);if(i[c]==2)for(let h of d)u.push(h);else u.push(d)}return t.combine(u)}return{create(l){for(let u of r)$k(l,u);return l.values[a]=s(l),1},update(l,u){if(!YW(l,o))return 0;let c=s(l);return t.compare(c,l.values[a])?0:(l.values[a]=c,1)},reconfigure(l,u){let c=YW(l,r),d=u.config.facets[t.id],h=u.facet(t);if(d&&!c&&mX(n,d))return l.values[a]=h,0;let f=s(l);return t.compare(f,h)?(l.values[a]=h,0):(l.values[a]=f,1)}}}const Uie=ir.define({static:!0});class tf{constructor(t,n,r,i,o){this.id=t,this.createF=n,this.updateF=r,this.compareF=i,this.spec=o,this.provides=void 0}static define(t){let n=new tf(gX++,t.create,t.update,t.compare||((r,i)=>r===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(Uie).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let o=r.values[n],a=this.updateF(o,i);return this.compareF(o,a)?0:(r.values[n]=a,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}init(t){return[this,Uie.of({field:this,create:t})]}get extension(){return this}}const Jy={lowest:4,low:3,default:2,high:1,highest:0};function mA(e){return t=>new Rxe(t,e)}const E1={highest:mA(Jy.highest),high:mA(Jy.high),default:mA(Jy.default),low:mA(Jy.low),lowest:mA(Jy.lowest)};class Rxe{constructor(t,n){this.inner=t,this.prec=n}}class $v{of(t){return new KW(this,t)}reconfigure(t){return $v.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class KW{constructor(t,n){this.compartment=t,this.inner=n}}class o5{constructor(t,n,r,i,o,a){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(t){let n=this.address[t.id];return n==null?t.default:this.staticValues[n>>1]}static resolve(t,n,r){let i=[],o=Object.create(null),a=new Map;for(let h of Dat(t,n,a))h instanceof tf?i.push(h):(o[h.facet.id]||(o[h.facet.id]=[])).push(h);let s=Object.create(null),l=[],u=[];for(let h of i)s[h.id]=u.length<<1,u.push(f=>h.slot(f));let c=r==null?void 0:r.config.facets;for(let h in o){let f=o[h],g=f[0].facet,b=c&&c[h]||[];if(f.every(v=>v.type==0))if(s[g.id]=l.length<<1|1,mX(b,f))l.push(r.facet(g));else{let v=g.combine(f.map(m=>m.value));l.push(r&&g.compare(v,r.facet(g))?r.facet(g):v)}else{for(let v of f)v.type==0?(s[v.id]=l.length<<1|1,l.push(v.value)):(s[v.id]=u.length<<1,u.push(m=>v.dynamicSlot(m)));s[g.id]=u.length<<1,u.push(v=>Pat(v,g,f))}}let d=u.map(h=>h(s));return new o5(t,a,d,s,l,o)}}function Dat(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(a,s){let l=i.get(a);if(l!=null){if(l<=s)return;let u=r[l].indexOf(a);u>-1&&r[l].splice(u,1),a instanceof KW&&n.delete(a.compartment)}if(i.set(a,s),Array.isArray(a))for(let u of a)o(u,s);else if(a instanceof KW){if(n.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(a.compartment)||a.inner;n.set(a.compartment,u),o(u,s)}else if(a instanceof Rxe)o(a.inner,a.prec);else if(a instanceof tf)r[s].push(a),a.provides&&o(a.provides,s);else if(a instanceof T3)r[s].push(a),a.facet.extensions&&o(a.facet.extensions,Jy.default);else{let u=a.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(u,s)}}return o(e,Jy.default),r.reduce((a,s)=>a.concat(s))}function $k(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function a5(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const $xe=ir.define(),qW=ir.define({combine:e=>e.some(t=>t),static:!0}),Mxe=ir.define({combine:e=>e.length?e[0]:void 0,static:!0}),Lxe=ir.define(),Bxe=ir.define(),Fxe=ir.define(),Nxe=ir.define({combine:e=>e.length?e[0]:!1});class Rg{constructor(t,n){this.type=t,this.value=n}static define(){return new Rat}}class Rat{of(t){return new Rg(this,t)}}class $at{constructor(t){this.map=t}of(t){return new oo(this,t)}}class oo{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new oo(this.type,n)}is(t){return this.type==t}static define(t={}){return new $at(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let o=i.map(n);o&&r.push(o)}return r}}oo.reconfigure=oo.define();oo.appendConfig=oo.define();class os{constructor(t,n,r,i,o,a){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=a,this._doc=null,this._state=null,r&&Dxe(r,n.newLength),o.some(s=>s.type==os.time)||(this.annotations=o.concat(os.time.of(Date.now())))}static create(t,n,r,i,o,a){return new os(t,n,r,i,o,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(os.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}os.time=Rg.define();os.userEvent=Rg.define();os.addToHistory=Rg.define();os.remote=Rg.define();function Mat(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r<e.length&&(i==t.length||t[i]>=e[r]))o=e[r++],a=e[r++];else if(i<t.length)o=t[i++],a=t[i++];else return n;!n.length||n[n.length-1]<o?n.push(o,a):n[n.length-1]<a&&(n[n.length-1]=a)}}function Vxe(e,t,n){var r;let i,o,a;return n?(i=t.changes,o=ns.empty(t.changes.length),a=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(i)),{changes:a,selection:t.selection?t.selection.map(o):(r=e.selection)===null||r===void 0?void 0:r.map(i),effects:oo.mapEffects(e.effects,i).concat(oo.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function JW(e,t,n){let r=t.selection,i=KC(t.annotations);return t.userEvent&&(i=i.concat(os.userEvent.of(t.userEvent))),{changes:t.changes instanceof ns?t.changes:ns.of(t.changes||[],n,e.facet(Mxe)),selection:r&&(r instanceof tn?r:tn.single(r.anchor,r.head)),effects:KC(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function jxe(e,t,n){let r=JW(e,t.length?t[0]:{},e.doc.length);t.length&&t[0].filter===!1&&(n=!1);for(let o=1;o<t.length;o++){t[o].filter===!1&&(n=!1);let a=!!t[o].sequential;r=Vxe(r,JW(e,t[o],a?r.changes.newLength:e.doc.length),a)}let i=os.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return Bat(n?Lat(i):i)}function Lat(e){let t=e.startState,n=!0;for(let i of t.facet(Lxe)){let o=i(e);if(o===!1){n=!1;break}Array.isArray(o)&&(n=n===!0?o:Mat(n,o))}if(n!==!0){let i,o;if(n===!1)o=e.changes.invertedDesc,i=ns.empty(t.doc.length);else{let a=e.changes.filter(n);i=a.changes,o=a.filtered.mapDesc(a.changes).invertedDesc}e=os.create(t,i,e.selection&&e.selection.map(o),oo.mapEffects(e.effects,o),e.annotations,e.scrollIntoView)}let r=t.facet(Bxe);for(let i=r.length-1;i>=0;i--){let o=r[i](e);o instanceof os?e=o:Array.isArray(o)&&o.length==1&&o[0]instanceof os?e=o[0]:e=jxe(t,KC(o),!1)}return e}function Bat(e){let t=e.startState,n=t.facet(Fxe),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=Vxe(r,JW(t,o,e.changes.newLength),!0))}return r==e?e:os.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const Fat=[];function KC(e){return e==null?Fat:Array.isArray(e)?e:[e]}var ig=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ig||(ig={}));const Nat=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let eH;try{eH=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Vat(e){if(eH)return eH.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Nat.test(n)))return!0}return!1}function jat(e){return t=>{if(!/\S/.test(t))return ig.Space;if(Vat(t))return ig.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return ig.Word;return ig.Other}}class Ai{constructor(t,n,r,i,o,a){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=o,a&&(a._state=this);for(let s=0;s<this.config.dynamicSlots.length;s++)$k(this,s<<1);this.computeSlot=null}field(t,n=!0){let r=this.config.address[t.id];if(r==null){if(n)throw new RangeError("Field is not present in this state");return}return $k(this,r),a5(this,r)}update(...t){return jxe(this,t,!0)}applyTransaction(t){let n=this.config,{base:r,compartments:i}=n;for(let s of t.effects)s.is($v.reconfigure)?(n&&(i=new Map,n.compartments.forEach((l,u)=>i.set(u,l)),n=null),i.set(s.value.compartment,s.value.extension)):s.is(oo.reconfigure)?(n=null,r=s.value):s.is(oo.appendConfig)&&(n=null,r=KC(r).concat(s.value));let o;n?o=t.startState.values.slice():(n=o5.resolve(r,i,this),o=new Ai(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(s,l)=>l.reconfigure(s,this),null).values);let a=t.startState.facet(qW)?t.newSelection:t.newSelection.asSingle();new Ai(n,t.newDoc,a,o,(s,l)=>l.update(s,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:tn.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),o=[r.range],a=KC(r.effects);for(let s=1;s<n.ranges.length;s++){let l=t(n.ranges[s]),u=this.changes(l.changes),c=u.map(i);for(let h=0;h<s;h++)o[h]=o[h].map(c);let d=i.mapDesc(u,!0);o.push(l.range.map(d)),i=i.compose(c),a=oo.mapEffects(a,c).concat(oo.mapEffects(KC(l.effects),d))}return{changes:i,selection:tn.create(o,n.mainIndex),effects:a}}changes(t=[]){return t instanceof ns?t:ns.of(t,this.doc.length,this.facet(Ai.lineSeparator))}toText(t){return Ti.of(t.split(this.facet(Ai.lineSeparator)||QW))}sliceDoc(t=0,n=this.doc.length){return this.doc.sliceString(t,n,this.lineBreak)}facet(t){let n=this.config.address[t.id];return n==null?t.default:($k(this,n),a5(this,n))}toJSON(t){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let r in t){let i=t[r];i instanceof tf&&this.config.address[i.id]!=null&&(n[r]=i.spec.toJSON(this.field(t[r]),this))}return n}static fromJSON(t,n={},r){if(!t||typeof t.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(r){for(let o in r)if(Object.prototype.hasOwnProperty.call(t,o)){let a=r[o],s=t[o];i.push(a.init(l=>a.spec.fromJSON(s,l)))}}return Ai.create({doc:t.doc,selection:tn.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=o5.resolve(t.extensions||[],new Map),r=t.doc instanceof Ti?t.doc:Ti.of((t.doc||"").split(n.staticFacet(Ai.lineSeparator)||QW)),i=t.selection?t.selection instanceof tn?t.selection:tn.single(t.selection.anchor,t.selection.head):tn.single(0);return Dxe(i,r.length),n.staticFacet(qW)||(i=i.asSingle()),new Ai(n,r,i,n.dynamicSlots.map(()=>null),(o,a)=>a.create(o),null)}get tabSize(){return this.facet(Ai.tabSize)}get lineBreak(){return this.facet(Ai.lineSeparator)||`
|
|
`}get readOnly(){return this.facet(Nxe)}phrase(t,...n){for(let r of this.facet(Ai.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let o=+(i||1);return!o||o>n.length?r:n[o-1]})),t}languageDataAt(t,n,r=-1){let i=[];for(let o of this.facet($xe))for(let a of o(this,n,r))Object.prototype.hasOwnProperty.call(a,t)&&i.push(a[t]);return i}charCategorizer(t){return jat(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:i}=this.doc.lineAt(t),o=this.charCategorizer(t),a=t-r,s=t-r;for(;a>0;){let l=$l(n,a,!1);if(o(n.slice(l,a))!=ig.Word)break;a=l}for(;s<i;){let l=$l(n,s);if(o(n.slice(s,l))!=ig.Word)break;s=l}return a==s?null:tn.range(a+r,s+r)}}Ai.allowMultipleSelections=qW;Ai.tabSize=ir.define({combine:e=>e.length?e[0]:4});Ai.lineSeparator=Mxe;Ai.readOnly=Nxe;Ai.phrases=ir.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(i=>e[i]==t[i])}});Ai.languageData=$xe;Ai.changeFilter=Lxe;Ai.transactionFilter=Bxe;Ai.transactionExtender=Fxe;$v.reconfigure=oo.define();function jL(e,t,n={}){let r={};for(let i of e)for(let o of Object.keys(i)){let a=i[o],s=r[o];if(s===void 0)r[o]=a;else if(!(s===a||a===void 0))if(Object.hasOwnProperty.call(n,o))r[o]=n[o](s,a);else throw new Error("Config merge conflict for field "+o)}for(let i in t)r[i]===void 0&&(r[i]=t[i]);return r}class Jb{eq(t){return this==t}range(t,n=t){return tH.create(t,n,this)}}Jb.prototype.startSide=Jb.prototype.endSide=0;Jb.prototype.point=!1;Jb.prototype.mapMode=Rl.TrackDel;let tH=class Wxe{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new Wxe(t,n,r)}};function nH(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class vX{constructor(t,n,r,i){this.from=t,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,n,r,i=0){let o=r?this.to:this.from;for(let a=i,s=o.length;;){if(a==s)return a;let l=a+s>>1,u=o[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==a)return u>=0?a:s;u>=0?s=l:a=l+1}}between(t,n,r,i){for(let o=this.findIndex(n,-1e9,!0),a=this.findIndex(r,1e9,!1,o);o<a;o++)if(i(this.from[o]+t,this.to[o]+t,this.value[o])===!1)return!1}map(t,n){let r=[],i=[],o=[],a=-1,s=-1;for(let l=0;l<this.value.length;l++){let u=this.value[l],c=this.from[l]+t,d=this.to[l]+t,h,f;if(c==d){let g=n.mapPos(c,u.startSide,u.mapMode);if(g==null||(h=f=g,u.startSide!=u.endSide&&(f=n.mapPos(c,u.endSide),f<h)))continue}else if(h=n.mapPos(c,u.startSide),f=n.mapPos(d,u.endSide),h>f||h==f&&u.startSide>0&&u.endSide<=0)continue;(f-h||u.endSide-u.startSide)<0||(a<0&&(a=h),u.point&&(s=Math.max(s,f-h)),r.push(u),i.push(h-a),o.push(f-a))}return{mapped:r.length?new vX(i,o,r,s):null,pos:a}}}class Do{constructor(t,n,r,i){this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=i}static create(t,n,r,i){return new Do(t,n,r,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:o=this.length}=t,a=t.filter;if(n.length==0&&!a)return this;if(r&&(n=n.slice().sort(nH)),this.isEmpty)return n.length?Do.of(n):this;let s=new Hxe(this,null,-1).goto(0),l=0,u=[],c=new DO;for(;s.value||l<n.length;)if(l<n.length&&(s.from-n[l].from||s.startSide-n[l].value.startSide)>=0){let d=n[l++];c.addInner(d.from,d.to,d.value)||u.push(d)}else s.rangeIndex==1&&s.chunkIndex<this.chunk.length&&(l==n.length||this.chunkEnd(s.chunkIndex)<n[l].from)&&(!a||i>this.chunkEnd(s.chunkIndex)||o<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!a||i>s.to||o<s.from||a(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value)||u.push(tH.create(s.from,s.to,s.value))),s.next());return c.finishInner(this.nextLayer.isEmpty&&!u.length?Do.empty:this.nextLayer.update({add:u,filter:a,filterFrom:i,filterTo:o}))}map(t){if(t.empty||this.isEmpty)return this;let n=[],r=[],i=-1;for(let a=0;a<this.chunk.length;a++){let s=this.chunkPos[a],l=this.chunk[a],u=t.touchesRange(s,s+l.length);if(u===!1)i=Math.max(i,l.maxPoint),n.push(l),r.push(t.mapPos(s));else if(u===!0){let{mapped:c,pos:d}=l.map(s,t);c&&(i=Math.max(i,c.maxPoint),n.push(c),r.push(d))}}let o=this.nextLayer.map(t);return n.length==0?o:new Do(r,n,o||Do.empty,i)}between(t,n,r){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let o=this.chunkPos[i],a=this.chunk[i];if(n>=o&&t<=o+a.length&&a.between(o,t-o,n-o,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return K2.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return K2.from(t).goto(n)}static compare(t,n,r,i,o=-1){let a=t.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o),s=n.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o),l=Xie(a,s,r),u=new vA(a,l,o),c=new vA(s,l,o);r.iterGaps((d,h,f)=>Yie(u,d,c,h,f,i)),r.empty&&r.length==0&&Yie(u,0,c,0,0,i)}static eq(t,n,r=0,i){i==null&&(i=999999999);let o=t.filter(c=>!c.isEmpty&&n.indexOf(c)<0),a=n.filter(c=>!c.isEmpty&&t.indexOf(c)<0);if(o.length!=a.length)return!1;if(!o.length)return!0;let s=Xie(o,a),l=new vA(o,s,0).goto(r),u=new vA(a,s,0).goto(r);for(;;){if(l.to!=u.to||!rH(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>i)return!0;l.next(),u.next()}}static spans(t,n,r,i,o=-1){let a=new vA(t,null,o).goto(n),s=n,l=a.openStart;for(;;){let u=Math.min(a.to,r);if(a.point){let c=a.activeForPoint(a.to),d=a.pointFrom<n?c.length+1:Math.min(c.length,l);i.point(s,u,a.point,c,d,a.pointRank),l=Math.min(a.openEnd(u),c.length)}else u>s&&(i.span(s,u,a.active,l),l=a.openEnd(u));if(a.to>r)return l+(a.point&&a.to>r?1:0);s=a.to,a.next()}}static of(t,n=!1){let r=new DO;for(let i of t instanceof tH?[t]:n?Wat(t):t)r.add(i.from,i.to,i.value);return r.finish()}static join(t){if(!t.length)return Do.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=Do.empty;i=i.nextLayer)n=new Do(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}Do.empty=new Do([],[],null,-1);function Wat(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(nH(t,r)>0)return e.slice().sort(nH);t=r}return e}Do.empty.nextLayer=Do.empty;class DO{finishChunk(t){this.chunks.push(new vX(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,n,r){this.addInner(t,n,r)||(this.nextLayer||(this.nextLayer=new DO)).add(t,n,r)}addInner(t,n,r){let i=t-this.lastTo||r.startSide-this.last.endSide;if(i<=0&&(t-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=t,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-t)),!0)}addChunk(t,n){if((t-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(t);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+t,this.lastTo=n.to[r]+t,!0}finish(){return this.finishInner(Do.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=Do.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function Xie(e,t,n){let r=new Map;for(let o of e)for(let a=0;a<o.chunk.length;a++)o.chunk[a].maxPoint<=0&&r.set(o.chunk[a],o.chunkPos[a]);let i=new Set;for(let o of t)for(let a=0;a<o.chunk.length;a++){let s=r.get(o.chunk[a]);s!=null&&(n?n.mapPos(s):s)==o.chunkPos[a]&&!(n!=null&&n.touchesRange(s,s+o.chunk[a].length))&&i.add(o.chunk[a])}return i}class Hxe{constructor(t,n,r,i=0){this.layer=t,this.skip=n,this.minPoint=r,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(t,n=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,n,!1),this}gotoInner(t,n,r){for(;this.chunkIndex<this.layer.chunk.length;){let i=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(i)||this.layer.chunkEnd(this.chunkIndex)<t||i.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(t-this.layer.chunkPos[this.chunkIndex],n,!0);(!r||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(t,n){(this.to-t||this.endSide-n)<0&&this.gotoInner(t,n,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let t=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],r=t+n.from[this.rangeIndex];if(this.from=r,this.to=t+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=t}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(t){return this.from-t.from||this.startSide-t.startSide||this.rank-t.rank||this.to-t.to||this.endSide-t.endSide}}class K2{constructor(t){this.heap=t}static from(t,n=null,r=-1){let i=[];for(let o=0;o<t.length;o++)for(let a=t[o];!a.isEmpty;a=a.nextLayer)a.maxPoint>=r&&i.push(new Hxe(a,n,r,o));return i.length==1?i[0]:new K2(i)}get startSide(){return this.value?this.value.startSide:0}goto(t,n=-1e9){for(let r of this.heap)r.goto(t,n);for(let r=this.heap.length>>1;r>=0;r--)tN(this.heap,r);return this.next(),this}forward(t,n){for(let r of this.heap)r.forward(t,n);for(let r=this.heap.length>>1;r>=0;r--)tN(this.heap,r);(this.to-t||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),tN(this.heap,0)}}}function tN(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let i=e[r];if(r+1<e.length&&i.compare(e[r+1])>=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class vA{constructor(t,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=K2.from(t,n,r)}goto(t,n=-1e9){return this.cursor.goto(t,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=n,this.openStart=-1,this.next(),this}forward(t,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(t,n)}removeActive(t){CD(this.active,t),CD(this.activeTo,t),CD(this.activeRank,t),this.minActive=Kie(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:o}=this.cursor;for(;n<this.activeRank.length&&(o-this.activeRank[n]||i-this.activeTo[n])>0;)n++;OD(this.active,n,r),OD(this.activeTo,n,i),OD(this.activeRank,n,o),t&&OD(t,n,this.cursor.from),this.minActive=Kie(this.active,this.activeTo)}next(){let t=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>t){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),r&&CD(r,i)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let o=this.cursor.value;if(!o.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=o,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=o.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(r){this.openStart=0;for(let i=r.length-1;i>=0&&r[i]<t;i--)this.openStart++}}activeForPoint(t){if(!this.active.length)return this.active;let n=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(t){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}function Yie(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,s=r,l=r-t;for(;;){let u=e.to+l-n.to||e.endSide-n.endSide,c=u<0?e.to+l:n.to,d=Math.min(c,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&rH(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,d,e.point,n.point):d>s&&!rH(e.active,n.active)&&o.compareRange(s,d,e.active,n.active),c>a)break;s=c,u<=0&&e.next(),u>=0&&n.next()}}function rH(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function CD(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function OD(e,t,n){for(let r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=n}function Kie(e,t){let n=-1,r=1e9;for(let i=0;i<t.length;i++)(t[i]-r||e[i].endSide-e[n].endSide)<0&&(n=i,r=t[i]);return n}function Wp(e,t,n=e.length){let r=0;for(let i=0;i<n;)e.charCodeAt(i)==9?(r+=t-r%t,i++):(r++,i=$l(e,i));return r}function Hat(e,t,n,r){for(let i=0,o=0;;){if(o>=t)return i;if(i==e.length)break;o+=e.charCodeAt(i)==9?n-o%n:1,i=$l(e,i)}return r===!0?-1:e.length}const iH="ͼ",qie=typeof Symbol>"u"?"__"+iH:Symbol.for(iH),oH=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Jie=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class h0{constructor(t,n){this.rules=[];let{finish:r}=n||{};function i(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,s,l,u){let c=[],d=/^@(\w+)\b/.exec(a[0]),h=d&&d[1]=="keyframes";if(d&&s==null)return l.push(a[0]+";");for(let f in s){let g=s[f];if(/&/.test(f))o(f.split(/,\s*/).map(b=>a.map(v=>b.replace(/&/,v))).reduce((b,v)=>b.concat(v)),g,l);else if(g&&typeof g=="object"){if(!d)throw new RangeError("The value of a property ("+f+") should be a primitive value.");o(i(f),g,c,h)}else g!=null&&c.push(f.replace(/_.*/,"").replace(/[A-Z]/g,b=>"-"+b.toLowerCase())+": "+g+";")}(c.length||h)&&l.push((r&&!d&&!u?a.map(r):a).join(", ")+" {"+c.join(" ")+"}")}for(let a in t)o(i(a),t[a],this.rules)}getRules(){return this.rules.join(`
|
|
`)}static newName(){let t=Jie[qie]||1;return Jie[qie]=t+1,iH+t.toString(36)}static mount(t,n,r){let i=t[oH],o=r&&r.nonce;i?o&&i.setNonce(o):i=new zat(t,o),i.mount(Array.isArray(n)?n:[n])}}let eoe=new Map;class zat{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let o=eoe.get(r);if(o)return t.adoptedStyleSheets=[o.sheet,...t.adoptedStyleSheets],t[oH]=o;this.sheet=new i.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],eoe.set(r,this)}else{this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);let o=t.head||t;o.insertBefore(this.styleTag,o.firstChild)}this.modules=[],t[oH]=this}mount(t){let n=this.sheet,r=0,i=0;for(let o=0;o<t.length;o++){let a=t[o],s=this.modules.indexOf(a);if(s<i&&s>-1&&(this.modules.splice(s,1),i--,s=-1),s==-1){if(this.modules.splice(i++,0,a),n)for(let l=0;l<a.rules.length;l++)n.insertRule(a.rules[l],r++)}else{for(;i<s;)r+=this.modules[i++].rules.length;r+=a.rules.length,i++}}if(!n){let o="";for(let a=0;a<this.modules.length;a++)o+=this.modules[a].getRules()+`
|
|
`;this.styleTag.textContent=o}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}var p0={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},q2={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Zat=typeof navigator<"u"&&/Mac/.test(navigator.platform),Gat=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ms=0;Ms<10;Ms++)p0[48+Ms]=p0[96+Ms]=String(Ms);for(var Ms=1;Ms<=24;Ms++)p0[Ms+111]="F"+Ms;for(var Ms=65;Ms<=90;Ms++)p0[Ms]=String.fromCharCode(Ms+32),q2[Ms]=String.fromCharCode(Ms);for(var nN in p0)q2.hasOwnProperty(nN)||(q2[nN]=p0[nN]);function Qat(e){var t=Zat&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Gat&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?q2:p0)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function s5(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function aH(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function Uat(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function P3(e,t){if(!t.anchorNode)return!1;try{return aH(e,t.anchorNode)}catch{return!1}}function RO(e){return e.nodeType==3?e1(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function Mk(e,t,n,r){return n?toe(e,t,n,r,-1)||toe(e,t,n,r,1):!1}function J2(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function toe(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Cg(e))){if(e.nodeName=="DIV")return!1;let o=e.parentNode;if(!o||o.nodeType!=1)return!1;t=J2(e)+(i<0?0:1),e=o}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=i<0?Cg(e):0}else return!1}}function Cg(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function WL(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function Xat(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function zxe(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function Yat(e,t,n,r,i,o,a,s){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,d=!1;c&&!d;)if(c.nodeType==1){let h,f=c==l.body,g=1,b=1;if(f)h=Xat(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(d=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let w=c.getBoundingClientRect();({scaleX:g,scaleY:b}=zxe(c,w)),h={left:w.left,right:w.left+c.clientWidth*g,top:w.top,bottom:w.top+c.clientHeight*b}}let v=0,m=0;if(i=="nearest")t.top<h.top?(m=-(h.top-t.top+a),n>0&&t.bottom>h.bottom+m&&(m=t.bottom-h.bottom+m+a)):t.bottom>h.bottom&&(m=t.bottom-h.bottom+a,n<0&&t.top-m<h.top&&(m=-(h.top+m-t.top+a)));else{let w=t.bottom-t.top,k=h.bottom-h.top;m=(i=="center"&&w<=k?t.top+w/2-k/2:i=="start"||i=="center"&&n<0?t.top-a:t.bottom-k+a)-h.top}if(r=="nearest"?t.left<h.left?(v=-(h.left-t.left+o),n>0&&t.right>h.right+v&&(v=t.right-h.right+v+o)):t.right>h.right&&(v=t.right-h.right+o,n<0&&t.left<h.left+v&&(v=-(h.left+v-t.left+o))):v=(r=="center"?t.left+(t.right-t.left)/2-(h.right-h.left)/2:r=="start"==s?t.left-o:t.right-(h.right-h.left)+o)-h.left,v||m)if(f)u.scrollBy(v,m);else{let w=0,k=0;if(m){let T=c.scrollTop;c.scrollTop+=m/b,k=(c.scrollTop-T)*b}if(v){let T=c.scrollLeft;c.scrollLeft+=v/g,w=(c.scrollLeft-T)*g}t={left:t.left-w,top:t.top-k,right:t.right-w,bottom:t.bottom-k},w&&Math.abs(w-v)<1&&(r="nearest"),k&&Math.abs(k-m)<1&&(i="nearest")}if(f)break;c=c.assignedSlot||c.parentNode}else if(c.nodeType==11)c=c.host;else break}function Kat(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(n.nodeType==1){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class qat{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:n,focusNode:r}=t;this.set(n,Math.min(t.anchorOffset,n?Cg(n):0),r,Math.min(t.focusOffset,r?Cg(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let Dw=null;function Zxe(e){if(e.setActive)return e.setActive();if(Dw)return e.focus(Dw);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(Dw==null?{get preventScroll(){return Dw={preventScroll:!0},!0}}:void 0),!Dw){Dw=!1;for(let n=0;n<t.length;){let r=t[n++],i=t[n++],o=t[n++];r.scrollTop!=i&&(r.scrollTop=i),r.scrollLeft!=o&&(r.scrollLeft=o)}}}let noe;function e1(e,t,n=t){let r=noe||(noe=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function qC(e,t,n){let r={key:t,code:t,keyCode:n,which:n,cancelable:!0},i=new KeyboardEvent("keydown",r);i.synthetic=!0,e.dispatchEvent(i);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,e.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}function Jat(e){for(;e;){if(e&&(e.nodeType==9||e.nodeType==11&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}function Gxe(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function est(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,Cg(n));;)if(r){if(n.nodeType!=1)return!1;let i=n.childNodes[r-1];i.contentEditable=="false"?r--:(n=i,r=Cg(n))}else{if(n==e)return!0;r=J2(n),n=n.parentNode}}function Qxe(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}class tl{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new tl(t.parentNode,J2(t),n)}static after(t,n){return new tl(t.parentNode,J2(t)+1,n)}}const yX=[];class Ro{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let n=this.posAtStart;for(let r of this.children){if(r==t)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,n){if(this.flags&2){let r=this.dom,i=null,o;for(let a of this.children){if(a.flags&7){if(!a.dom&&(o=i?i.nextSibling:r.firstChild)){let s=Ro.get(o);(!s||!s.parent&&s.canReuseDOM(a))&&a.reuseDOM(o)}a.sync(t,n),a.flags&=-8}if(o=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&o!=a.dom&&(n.written=!0),a.dom.parentNode==r)for(;o&&o!=a.dom;)o=roe(o);else r.insertBefore(a.dom,o);i=a.dom}for(o=i?i.nextSibling:r.firstChild,o&&n&&n.node==r&&(n.written=!0);o;)o=roe(o)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(t,n),r.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,n){let r;if(t==this.dom)r=this.dom.childNodes[n];else{let i=Cg(t)==0?0:n==0?-1:1;for(;;){let o=t.parentNode;if(o==this.dom)break;i==0&&o.firstChild!=o.lastChild&&(t==o.firstChild?i=-1:i=1),t=o}i<0?r=t:r=t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!Ro.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,o=0;;i++){let a=this.children[i];if(a.dom==r)return o;o+=a.length+a.breakAfter}}domBoundsAround(t,n,r=0){let i=-1,o=-1,a=-1,s=-1;for(let l=0,u=r,c=r;l<this.children.length;l++){let d=this.children[l],h=u+d.length;if(u<t&&h>n)return d.domBoundsAround(t,n,u);if(h>=t&&i==-1&&(i=l,o=u),u>n&&d.dom.parentNode==this.dom){a=l,s=c;break}c=h,u=h+d.breakAfter}return{from:o,to:s<0?r+this.length:s,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a<this.children.length&&a>=0?this.children[a].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),n.flags&1)return;n.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let n=t.parent;if(!n)return t;t=n}}replaceChildren(t,n,r=yX){this.markDirty();for(let i=t;i<n;i++){let o=this.children[i];o.parent==this&&r.indexOf(o)<0&&o.destroy()}this.children.splice(t,n-t,...r);for(let i=0;i<r.length;i++)r[i].setParent(this)}ignoreMutation(t){return!1}ignoreEvent(t){return!1}childCursor(t=this.length){return new Uxe(this.children,t,this.children.length)}childPos(t,n=1){return this.childCursor().findPos(t,n)}toString(){let t=this.constructor.name.replace("View","");return t+(this.children.length?"("+this.children.join()+")":this.length?"["+(t=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(t){return t.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(t,n,r,i,o,a){return!1}become(t){return!1}canReuseDOM(t){return t.constructor==this.constructor&&!((this.flags|t.flags)&8)}getSide(){return 0}destroy(){for(let t of this.children)t.parent==this&&t.destroy();this.parent=null}}Ro.prototype.breakAfter=0;function roe(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class Uxe{constructor(t,n,r){this.children=t,this.pos=n,this.i=r,this.off=0}findPos(t,n=1){for(;;){if(t>this.pos||t==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function Xxe(e,t,n,r,i,o,a,s,l){let{children:u}=e,c=u.length?u[t]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:a;if(!(t==r&&c&&!a&&!h&&o.length<2&&c.merge(n,i,o.length?d:null,n==0,s,l))){if(r<u.length){let f=u[r];f&&(i<f.length||f.breakAfter&&d!=null&&d.breakAfter)?(t==r&&(f=f.split(i),i=0),!h&&d&&f.merge(0,i,d,!0,0,l)?o[o.length-1]=f:((i||f.children.length&&!f.children[0].length)&&f.merge(0,i,null,!1,0,l),o.push(f))):f!=null&&f.breakAfter&&(d?d.breakAfter=1:a=1),r++}for(c&&(c.breakAfter=a,n>0&&(!a&&o.length&&c.merge(n,c.length,o[0],!1,s,0)?c.breakAfter=o.shift().breakAfter:(n<c.length||c.children.length&&c.children[c.children.length-1].length==0)&&c.merge(n,c.length,null,!1,s,0),t++));t<r&&o.length;)if(u[r-1].become(o[o.length-1]))r--,o.pop(),l=o.length?0:s;else if(u[t].become(o[0]))t++,o.shift(),s=o.length?0:l;else break;!o.length&&t&&r<u.length&&!u[t-1].breakAfter&&u[r].merge(0,0,u[t-1],!1,s,l)&&t--,(t<r||o.length)&&e.replaceChildren(t,r,o)}}function Yxe(e,t,n,r,i,o){let a=e.childCursor(),{i:s,off:l}=a.findPos(n,1),{i:u,off:c}=a.findPos(t,-1),d=t-n;for(let h of r)d+=h.length;e.length+=d,Xxe(e,u,c,s,l,r,0,i,o)}let Qu=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},sH=typeof document<"u"?document:{documentElement:{style:{}}};const lH=/Edge\/(\d+)/.exec(Qu.userAgent),Kxe=/MSIE \d/.test(Qu.userAgent),uH=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Qu.userAgent),HL=!!(Kxe||uH||lH),ioe=!HL&&/gecko\/(\d+)/i.test(Qu.userAgent),rN=!HL&&/Chrome\/(\d+)/.exec(Qu.userAgent),ooe="webkitFontSmoothing"in sH.documentElement.style,qxe=!HL&&/Apple Computer/.test(Qu.vendor),aoe=qxe&&(/Mobile\/\w+/.test(Qu.userAgent)||Qu.maxTouchPoints>2);var zn={mac:aoe||/Mac/.test(Qu.platform),windows:/Win/.test(Qu.platform),linux:/Linux|X11/.test(Qu.platform),ie:HL,ie_version:Kxe?sH.documentMode||6:uH?+uH[1]:lH?+lH[1]:0,gecko:ioe,gecko_version:ioe?+(/Firefox\/(\d+)/.exec(Qu.userAgent)||[0,0])[1]:0,chrome:!!rN,chrome_version:rN?+rN[1]:0,ios:aoe,android:/Android\b/.test(Qu.userAgent),webkit:ooe,safari:qxe,webkit_version:ooe?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:sH.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const tst=256;class Og extends Ro{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){t.nodeType==3&&this.createDOM(t)}merge(t,n,r){return this.flags&8||r&&(!(r instanceof Og)||this.length-(n-t)+r.length>tst||r.flags&8)?!1:(this.text=this.text.slice(0,t)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(t){let n=new Og(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(t,n){return t==this.dom?n:n?this.text.length:0}domAtPos(t){return new tl(this.dom,t)}domBoundsAround(t,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,n){return nst(this.dom,t,n)}}class xg extends Ro{constructor(t,n=[],r=0){super(),this.mark=t,this.children=n,this.length=r;for(let i of n)i.setParent(this)}setAttrs(t){if(Gxe(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)t.setAttribute(n,this.mark.attrs[n]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,n)}merge(t,n,r,i,o,a){return r&&(!(r instanceof xg&&r.mark.eq(this.mark))||t&&o<=0||n<this.length&&a<=0)?!1:(Yxe(this,t,n,r?r.children.slice():[],o-1,a-1),this.markDirty(),!0)}split(t){let n=[],r=0,i=-1,o=0;for(let s of this.children){let l=r+s.length;l>t&&n.push(r<t?s.split(t-r):s),i<0&&r>=t&&(i=o),r=l,o++}let a=this.length-t;return this.length=t,i>-1&&(this.children.length=i,this.markDirty()),new xg(this.mark,n,a)}domAtPos(t){return Jxe(this,t)}coordsAt(t,n){return tSe(this,t,n)}}function nst(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,a=0;t==0&&n<0||t==r&&n>=0?zn.chrome||zn.gecko||(t?(i--,a=1):o<r&&(o++,a=-1)):n<0?i--:o<r&&o++;let s=e1(e,i,o).getClientRects();if(!s.length)return null;let l=s[(a?a<0:n>=0)?0:s.length-1];return zn.safari&&!a&&l.width==0&&(l=Array.prototype.find.call(s,u=>u.width)||l),a?WL(l,a<0):l||null}class ub extends Ro{static create(t,n,r){return new ub(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=ub.create(this.widget,this.length-t,this.side);return this.length-=t,n}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,n,r,i,o,a){return r&&(!(r instanceof ub)||!this.widget.compare(r.widget)||t>0&&o<=0||n<this.length&&a<=0)?!1:(this.length=t+(r?r.length:0)+(this.length-n),!0)}become(t){return t instanceof ub&&t.side==this.side&&this.widget.constructor==t.widget.constructor?(this.widget.compare(t.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=t.widget,this.length=t.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(t){return this.widget.ignoreEvent(t)}get overrideDOMText(){if(this.length==0)return Ti.empty;let t=this;for(;t.parent;)t=t.parent;let{view:n}=t,r=n&&n.state.doc,i=this.posAtStart;return r?r.slice(i,i+this.length):Ti.empty}domAtPos(t){return(this.length?t==0:this.side>0)?tl.before(this.dom):tl.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,n){let r=this.widget.coordsAt(this.dom,t,n);if(r)return r;let i=this.dom.getClientRects(),o=null;if(!i.length)return null;let a=this.side?this.side<0:t>0;for(let s=a?i.length-1:0;o=i[s],!(t>0?s==0:s==i.length-1||o.top<o.bottom);s+=a?-1:1);return WL(o,!a)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class $O extends Ro{constructor(t){super(),this.side=t}get length(){return 0}merge(){return!1}become(t){return t instanceof $O&&t.side==this.side}split(){return new $O(this.side)}sync(){if(!this.dom){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),this.setDOM(t)}}getSide(){return this.side}domAtPos(t){return this.side>0?tl.before(this.dom):tl.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Ti.empty}get isHidden(){return!0}}Og.prototype.children=ub.prototype.children=$O.prototype.children=yX;function Jxe(e,t){let n=e.dom,{children:r}=e,i=0;for(let o=0;i<r.length;i++){let a=r[i],s=o+a.length;if(!(s==o&&a.getSide()<=0)){if(t>o&&t<s&&a.dom.parentNode==n)return a.domAtPos(t-o);if(t<=o)break;o=s}}for(let o=i;o>0;o--){let a=r[o-1];if(a.dom.parentNode==n)return a.domAtPos(a.length)}for(let o=i;o<r.length;o++){let a=r[o];if(a.dom.parentNode==n)return a.domAtPos(0)}return new tl(n,0)}function eSe(e,t,n){let r,{children:i}=e;n>0&&t instanceof xg&&i.length&&(r=i[i.length-1])instanceof xg&&r.mark.eq(t.mark)?eSe(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function tSe(e,t,n){let r=null,i=-1,o=null,a=-1;function s(u,c){for(let d=0,h=0;d<u.children.length&&h<=c;d++){let f=u.children[d],g=h+f.length;g>=c&&(f.children.length?s(f,c-h):(!o||o.isHidden&&n>0)&&(g>c||h==g&&f.getSide()>0)?(o=f,a=c-h):(h<c||h==g&&f.getSide()<0&&!f.isHidden)&&(r=f,i=c-h)),h=g}}s(e,t);let l=(n<0?r:o)||r||o;return l?l.coordsAt(Math.max(0,l==r?i:a),n):rst(e)}function rst(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=RO(t);return n[n.length-1]||null}function cH(e,t){for(let n in e)n=="class"&&t.class?t.class+=" "+e.class:n=="style"&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}const soe=Object.create(null);function bX(e,t,n){if(e==t)return!0;e||(e=soe),t||(t=soe);let r=Object.keys(e),i=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(i.indexOf(o)==-1||e[o]!==t[o]))return!1;return!0}function dH(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,i=="style"?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,i=="style"?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function ist(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}class es extends Ro{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,n,r,i,o,a){if(r){if(!(r instanceof es))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),Yxe(this,t,n,r?r.children.slice():[],o,a),!0}split(t){let n=new es;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i:r,off:i}=this.childPos(t);i&&(n.append(this.children[r].split(i),0),this.children[r].merge(i,this.children[r].length,null,!1,0,0),r++);for(let o=r;o<this.children.length;o++)n.append(this.children[o],0);for(;r>0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=t,n}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){bX(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){eSe(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=cH(n,this.attrs||{})),r&&(this.attrs=cH({class:r},this.attrs||{}))}domAtPos(t){return Jxe(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(Gxe(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(dH(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,n);let i=this.dom.lastChild;for(;i&&Ro.get(i)instanceof xg;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=Ro.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!zn.ios||!this.children.some(o=>o instanceof Og))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof Og)||/[^ -~]/.test(r.text))return null;let i=RO(r.dom);if(i.length!=1)return null;t+=i[0].width,n=i[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:n}:null}coordsAt(t,n){let r=tSe(this,t,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,o=r.bottom-r.top;if(Math.abs(o-i.lineHeight)<2&&i.textHeight<o){let a=(o-i.textHeight)/2;return{top:r.top+a,bottom:r.bottom-a,left:r.left,right:r.left}}}return r}become(t){return!1}covers(){return!0}static find(t,n){for(let r=0,i=0;r<t.children.length;r++){let o=t.children[r],a=i+o.length;if(a>=n){if(o instanceof es)return o;if(a>n)break}i=a+o.breakAfter}return null}}class Mv extends Ro{constructor(t,n,r){super(),this.widget=t,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(t,n,r,i,o,a){return r&&(!(r instanceof Mv)||!this.widget.compare(r.widget)||t>0&&o<=0||n<this.length&&a<=0)?!1:(this.length=t+(r?r.length:0)+(this.length-n),!0)}domAtPos(t){return t==0?tl.before(this.dom):tl.after(this.dom,t==this.length)}split(t){let n=this.length-t;this.length=t;let r=new Mv(this.widget,n,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return yX}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):Ti.empty}domBoundsAround(){return null}become(t){return t instanceof Mv&&t.widget.constructor==this.widget.constructor?(t.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=t.widget,this.length=t.length,this.deco=t.deco,this.breakAfter=t.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(t){return this.widget.ignoreEvent(t)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(t,n){return this.widget.coordsAt(this.dom,t,n)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(t){let{startSide:n,endSide:r}=this.deco;return n==r?!1:t<0?n<0:r>0}}class _1{eq(t){return!1}updateDOM(t,n){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}}var Ju=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(Ju||(Ju={}));class na extends Jb{constructor(t,n,r,i){super(),this.startSide=t,this.endSide=n,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(t){return new D_(t)}static widget(t){let n=Math.max(-1e4,Math.min(1e4,t.side||0)),r=!!t.block;return n+=r&&!t.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new f0(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,i;if(t.isBlockGap)r=-5e8,i=4e8;else{let{start:o,end:a}=nSe(t,n);r=(o?n?-3e8:-1:5e8)-1,i=(a?n?2e8:1:-6e8)+1}return new f0(t,r,i,n,t.widget||null,!0)}static line(t){return new R_(t)}static set(t,n=!1){return Do.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}na.none=Do.empty;class D_ extends na{constructor(t){let{start:n,end:r}=nSe(t);super(n?-1:5e8,r?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var n,r;return this==t||t instanceof D_&&this.tagName==t.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(t.class||((r=t.attrs)===null||r===void 0?void 0:r.class))&&bX(this.attrs,t.attrs,"class")}range(t,n=t){if(t>=n)throw new RangeError("Mark decorations may not be empty");return super.range(t,n)}}D_.prototype.point=!1;class R_ extends na{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof R_&&this.spec.class==t.spec.class&&bX(this.spec.attributes,t.spec.attributes)}range(t,n=t){if(n!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,n)}}R_.prototype.mapMode=Rl.TrackBefore;R_.prototype.point=!0;class f0 extends na{constructor(t,n,r,i,o,a){super(n,r,o,t),this.block=i,this.isReplace=a,this.mapMode=i?n<=0?Rl.TrackBefore:Rl.TrackAfter:Rl.TrackDel}get type(){return this.startSide!=this.endSide?Ju.WidgetRange:this.startSide<=0?Ju.WidgetBefore:Ju.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof f0&&ost(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,n=t){if(this.isReplace&&(t>n||t==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,n)}}f0.prototype.point=!0;function nSe(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return n==null&&(n=e.inclusive),r==null&&(r=e.inclusive),{start:n??t,end:r??t}}function ost(e,t){return e==t||!!(e&&t&&e.compare(t))}function hH(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}class Lk{constructor(t,n,r,i){this.doc=t,this.pos=n,this.end=r,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof Mv&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new es),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(xD(new $O(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof Mv)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:a,done:s}=this.cursor.next(this.skip);if(this.skip=0,s)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=o,this.textOff=0}let i=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(xD(new Og(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,t-=i,r=0}}span(t,n,r,i){this.buildText(n-t,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(t,n,r,i,o,a){if(this.disallowBlockEffectsFor[a]&&r instanceof f0){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=n-t;if(r instanceof f0)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Mv(r.widget||new loe("div"),s,r));else{let l=ub.create(r.widget||new loe("span"),s,s?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&o<=i.length&&(t<n||r.startSide>0),c=!l.isEditable&&(t<n||o>i.length||r.startSide<=0),d=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(d.append(xD(new $O(1),i),o),o=i.length+Math.max(0,o-i.length)),d.append(xD(l,i),o),this.atCursorPos=c,this.pendingBuffer=c?t<n||o>i.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=o)}static build(t,n,r,i,o){let a=new Lk(t,n,r,o);return a.openEnd=Do.spans(i,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function xD(e,t){for(let n of t)e=new xg(n,[e],e.length);return e}class loe extends _1{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}var ra=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(ra||(ra={}));const t1=ra.LTR,wX=ra.RTL;function rSe(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const ast=rSe("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),sst=rSe("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),pH=Object.create(null),Qh=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),n=e.charCodeAt(1);pH[t]=n,pH[n]=-t}function iSe(e){return e<=247?ast[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?sst[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}const lst=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Sv{get dir(){return this.level%2?wX:t1}constructor(t,n,r){this.from=t,this.to=n,this.level=r}side(t,n){return this.dir==n==t?this.to:this.from}forward(t,n){return t==(this.dir==n)}static find(t,n,r,i){let o=-1;for(let a=0;a<t.length;a++){let s=t[a];if(s.from<=n&&s.to>=n){if(s.level==r)return a;(o<0||(i!=0?i<0?s.from<n:s.to>n:t[o].level>s.level))&&(o=a)}}if(o<0)throw new RangeError("Index out of range");return o}}function oSe(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.direction!=i.direction||!oSe(r.inner,i.inner))return!1}return!0}const ro=[];function ust(e,t,n,r,i){for(let o=0;o<=r.length;o++){let a=o?r[o-1].to:t,s=o<r.length?r[o].from:n,l=o?256:i;for(let u=a,c=l,d=l;u<s;u++){let h=iSe(e.charCodeAt(u));h==512?h=c:h==8&&d==4&&(h=16),ro[u]=h==4?2:h,h&7&&(d=h),c=h}for(let u=a,c=l,d=l;u<s;u++){let h=ro[u];if(h==128)u<s-1&&c==ro[u+1]&&c&24?h=ro[u]=c:ro[u]=256;else if(h==64){let f=u+1;for(;f<s&&ro[f]==64;)f++;let g=u&&c==8||f<n&&ro[f]==8?d==1?1:8:256;for(let b=u;b<f;b++)ro[b]=g;u=f-1}else h==8&&d==1&&(ro[u]=1);c=h,h&7&&(d=h)}}}function cst(e,t,n,r,i){let o=i==1?2:1;for(let a=0,s=0,l=0;a<=r.length;a++){let u=a?r[a-1].to:t,c=a<r.length?r[a].from:n;for(let d=u,h,f,g;d<c;d++)if(f=pH[h=e.charCodeAt(d)])if(f<0){for(let b=s-3;b>=0;b-=3)if(Qh[b+1]==-f){let v=Qh[b+2],m=v&2?i:v&4?v&1?o:i:0;m&&(ro[d]=ro[Qh[b]]=m),s=b;break}}else{if(Qh.length==189)break;Qh[s++]=d,Qh[s++]=h,Qh[s++]=l}else if((g=ro[d])==2||g==1){let b=g==i;l=b?0:1;for(let v=s-3;v>=0;v-=3){let m=Qh[v+2];if(m&2)break;if(b)Qh[v+2]|=2;else{if(m&4)break;Qh[v+2]|=4}}}}}function dst(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:e,s=i<n.length?n[i].from:t;for(let l=a;l<s;){let u=ro[l];if(u==256){let c=l+1;for(;;)if(c==s){if(i==n.length)break;c=n[i++].to,s=i<n.length?n[i].from:t}else if(ro[c]==256)c++;else break;let d=o==1,h=(c<t?ro[c]:r)==1,f=d==h?d?1:2:r;for(let g=c,b=i,v=b?n[b-1].to:e;g>l;)g==v&&(g=n[--b].from,v=b?n[b-1].to:e),ro[--g]=f;l=c}else o=u,l++}}}function fH(e,t,n,r,i,o,a){let s=r%2?2:1;if(r%2==i%2)for(let l=t,u=0;l<n;){let c=!0,d=!1;if(u==o.length||l<o[u].from){let b=ro[l];b!=s&&(c=!1,d=b==16)}let h=!c&&s==1?[]:null,f=c?r:r+1,g=l;e:for(;;)if(u<o.length&&g==o[u].from){if(d)break e;let b=o[u];if(!c)for(let v=b.to,m=u+1;;){if(v==n)break e;if(m<o.length&&o[m].from==v)v=o[m++].to;else{if(ro[v]==s)break e;break}}if(u++,h)h.push(b);else{b.from>l&&a.push(new Sv(l,b.from,f));let v=b.direction==t1!=!(f%2);gH(e,v?r+1:r,i,b.inner,b.from,b.to,a),l=b.to}g=b.to}else{if(g==n||(c?ro[g]!=s:ro[g]==s))break;g++}h?fH(e,l,g,r+1,i,h,a):l<g&&a.push(new Sv(l,g,f)),l=g}else for(let l=n,u=o.length;l>t;){let c=!0,d=!1;if(!u||l>o[u-1].to){let b=ro[l-1];b!=s&&(c=!1,d=b==16)}let h=!c&&s==1?[]:null,f=c?r:r+1,g=l;e:for(;;)if(u&&g==o[u-1].to){if(d)break e;let b=o[--u];if(!c)for(let v=b.from,m=u;;){if(v==t)break e;if(m&&o[m-1].to==v)v=o[--m].from;else{if(ro[v-1]==s)break e;break}}if(h)h.push(b);else{b.to<l&&a.push(new Sv(b.to,l,f));let v=b.direction==t1!=!(f%2);gH(e,v?r+1:r,i,b.inner,b.from,b.to,a),l=b.from}g=b.from}else{if(g==t||(c?ro[g-1]!=s:ro[g-1]==s))break;g--}h?fH(e,g,l,r+1,i,h,a):g<l&&a.push(new Sv(g,l,f)),l=g}}function gH(e,t,n,r,i,o,a){let s=t%2?2:1;ust(e,i,o,r,s),cst(e,i,o,r,s),dst(i,o,r,s),fH(e,i,o,t,n,r,a)}function hst(e,t,n){if(!e)return[new Sv(0,0,t==wX?1:0)];if(t==t1&&!n.length&&!lst.test(e))return aSe(e.length);if(n.length)for(;e.length>ro.length;)ro[ro.length]=256;let r=[],i=t==t1?0:1;return gH(e,i,i,n,0,e.length,r),r}function aSe(e){return[new Sv(0,e,0)]}let sSe="";function pst(e,t,n,r,i){var o;let a=r.head-e.from,s=Sv.find(t,a,(o=r.bidiLevel)!==null&&o!==void 0?o:-1,r.assoc),l=t[s],u=l.side(i,n);if(a==u){let h=s+=i?1:-1;if(h<0||h>=t.length)return null;l=t[s=h],a=l.side(!i,n),u=l.side(i,n)}let c=$l(e.text,a,l.forward(i,n));(c<l.from||c>l.to)&&(c=u),sSe=e.text.slice(Math.min(a,c),Math.max(a,c));let d=s==(i?t.length-1:0)?null:t[s+(i?1:-1)];return d&&c==u&&d.level+(i?0:1)<l.level?tn.cursor(d.side(!i,n)+e.from,d.forward(i,n)?1:-1,d.level):tn.cursor(c+e.from,l.forward(i,n)?-1:1,l.level)}function fst(e,t,n){for(let r=t;r<n;r++){let i=iSe(e.charCodeAt(r));if(i==1)return t1;if(i==2||i==4)return wX}return t1}const lSe=ir.define(),uSe=ir.define(),cSe=ir.define(),dSe=ir.define(),mH=ir.define(),hSe=ir.define(),pSe=ir.define(),fSe=ir.define({combine:e=>e.some(t=>t)}),gSe=ir.define({combine:e=>e.some(t=>t)});class JC{constructor(t,n="nearest",r="nearest",i=5,o=5,a=!1){this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=o,this.isSnapshot=a}map(t){return t.empty?this:new JC(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new JC(tn.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const SD=oo.define({map:(e,t)=>e.map(t)});function eh(e,t,n){let r=e.facet(dSe);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const zL=ir.define({combine:e=>e.length?e[0]:!0});let gst=0;const YI=ir.define();class ud{constructor(t,n,r,i,o){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=o(this)}static define(t,n){const{eventHandlers:r,eventObservers:i,provide:o,decorations:a}=n||{};return new ud(gst++,t,r,i,s=>{let l=[YI.of(s)];return a&&l.push(eE.of(u=>{let c=u.plugin(s);return c?a(c):na.none})),o&&l.push(o(s)),l})}static fromClass(t,n){return ud.define(r=>new t(r),n)}}class iN{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(eh(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(n){eh(t.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){eh(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const mSe=ir.define(),CX=ir.define(),eE=ir.define(),vSe=ir.define(),OX=ir.define(),ySe=ir.define();function uoe(e,t){let n=e.state.facet(ySe);if(!n.length)return n;let r=n.map(o=>o instanceof Function?o(e):o),i=[];return Do.spans(r,t.from,t.to,{point(){},span(o,a,s,l){let u=o-t.from,c=a-t.from,d=i;for(let h=s.length-1;h>=0;h--,l--){let f=s[h].spec.bidiIsolate,g;if(f==null&&(f=fst(t.text,u,c)),l>0&&d.length&&(g=d[d.length-1]).to==u&&g.direction==f)g.to=c,d=g.inner;else{let b={from:u,to:c,direction:f,inner:[]};d.push(b),d=b.inner}}}}),i}const bSe=ir.define();function wSe(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(bSe)){let a=o(e);a&&(a.left!=null&&(t=Math.max(t,a.left)),a.right!=null&&(n=Math.max(n,a.right)),a.top!=null&&(r=Math.max(r,a.top)),a.bottom!=null&&(i=Math.max(i,a.bottom)))}return{left:t,right:n,top:r,bottom:i}}const KI=ir.define();class qc{constructor(t,n,r,i){this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}join(t){return new qc(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let n=t.length,r=this;for(;n>0;n--){let i=t[n-1];if(!(i.fromA>r.toA)){if(i.toA<r.fromA)break;r=r.join(i),t.splice(n-1,1)}}return t.splice(n,0,r),t}static extendWithRanges(t,n){if(n.length==0)return t;let r=[];for(let i=0,o=0,a=0,s=0;;i++){let l=i==t.length?null:t[i],u=a-s,c=l?l.fromB:1e9;for(;o<n.length&&n[o]<c;){let d=n[o],h=n[o+1],f=Math.max(s,d),g=Math.min(c,h);if(f<=g&&new qc(f+u,g+u,f,g).addToSet(r),h>c)break;o+=2}if(!l)return r;new qc(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),a=l.toA,s=l.toB}}}class l5{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=ns.empty(this.startState.doc.length);for(let o of r)this.changes=this.changes.compose(o.changes);let i=[];this.changes.iterChangedRanges((o,a,s,l)=>i.push(new qc(o,a,s,l))),this.changedRanges=i}static create(t,n,r){return new l5(t,n,r)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class coe extends Ro{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new es],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new qc(0,0,0,t.state.doc.length)],0,null)}update(t){var n;let r=t.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:u,toA:c})=>c<this.minWidthFrom||u>this.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!Ost(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let o=i>-1?vst(this.view,t.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;r=new qc(u,c,t.changes.mapPos(u,-1),t.changes.mapPos(c,1)).addToSet(r.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(zn.ie||zn.chrome)&&!o&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,s=this.updateDeco(),l=wst(a,s,t.changes);return r=qc.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,o),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=zn.chrome||zn.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||i.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let a of this.children)a instanceof Mv&&a.widget instanceof doe&&o.push(a.dom);i.updateGaps(o)}updateChildren(t,n,r){let i=r?r.range.addToSet(t.slice()):t,o=this.childCursor(n);for(let a=i.length-1;;a--){let s=a>=0?i[a]:null;if(!s)break;let{fromA:l,toA:u,fromB:c,toB:d}=s,h,f,g,b;if(r&&r.range.fromB<d&&r.range.toB>c){let T=Lk.build(this.view.state.doc,c,r.range.fromB,this.decorations,this.dynamicDecorationMap),S=Lk.build(this.view.state.doc,r.range.toB,d,this.decorations,this.dynamicDecorationMap);f=T.breakAtStart,g=T.openStart,b=S.openEnd;let I=this.compositionView(r);S.breakAtStart?I.breakAfter=1:S.content.length&&I.merge(I.length,I.length,S.content[0],!1,S.openStart,0)&&(I.breakAfter=S.content[0].breakAfter,S.content.shift()),T.content.length&&I.merge(0,0,T.content[T.content.length-1],!0,0,T.openEnd)&&T.content.pop(),h=T.content.concat(I).concat(S.content)}else({content:h,breakAtStart:f,openStart:g,openEnd:b}=Lk.build(this.view.state.doc,c,d,this.decorations,this.dynamicDecorationMap));let{i:v,off:m}=o.findPos(u,1),{i:w,off:k}=o.findPos(l,-1);Xxe(this,w,k,v,m,h,f,g,b)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new Og(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new xg(i,[n],n.length);let r=new es;return r.append(n,0),r}fixCompositionDOM(t){let n=(o,a)=>{a.flags|=8|(a.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(a);let s=Ro.get(o);s&&s!=a&&(s.dom=null),a.setDOM(o)},r=this.childPos(t.range.fromB,1),i=this.children[r.i];n(t.line,i);for(let o=t.marks.length-1;o>=-1;o--)r=i.childPos(r.off,1),i=i.children[r.i],n(o>=0?t.marks[o].node:t.text,i)}updateSelection(t=!1,n=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,o=!i&&P3(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||o))return;let a=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(s.anchor)),u=s.empty?l:this.moveToLine(this.domAtPos(s.head));if(zn.gecko&&s.empty&&!this.hasComposition&&mst(l)){let d=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(d,l.node.childNodes[l.offset]||null)),l=u=new tl(d,0),a=!0}let c=this.view.observer.selectionRange;(a||!c.focusNode||(!Mk(l.node,l.offset,c.anchorNode,c.anchorOffset)||!Mk(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,s))&&(this.view.observer.ignore(()=>{zn.android&&zn.chrome&&this.dom.contains(c.focusNode)&&Cst(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let d=s5(this.view.root);if(d)if(s.empty){if(zn.gecko){let h=yst(l.node,l.offset);if(h&&h!=3){let f=OSe(l.node,l.offset,h==1?1:-1);f&&(l=new tl(f.node,f.offset))}}d.collapse(l.node,l.offset),s.bidiLevel!=null&&d.caretBidiLevel!==void 0&&(d.caretBidiLevel=s.bidiLevel)}else if(d.extend){d.collapse(l.node,l.offset);try{d.extend(u.node,u.offset)}catch{}}else{let h=document.createRange();s.anchor>s.head&&([l,u]=[u,l]),h.setEnd(u.node,u.offset),h.setStart(l.node,l.offset),d.removeAllRanges(),d.addRange(h)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new tl(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new tl(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&Mk(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,n=t.state.selection.main,r=s5(t.root),{anchorNode:i,anchorOffset:o}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let a=es.find(this,n.head);if(!a)return;let s=a.posAtStart;if(n.head==s||n.head==s+a.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let c=this.domAtPos(n.head+n.assoc);r.collapse(c.node,c.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let d=t.observer.selectionRange;t.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=n.from&&r.collapse(i,o)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let i=t.offset;!r&&i<n.childNodes.length;i++){let o=Ro.get(n.childNodes[i]);o instanceof es&&(r=o.domAtPos(0))}for(let i=t.offset-1;!r&&i>=0;i--){let o=Ro.get(n.childNodes[i]);o instanceof es&&(r=o.domAtPos(o.length))}return r?new tl(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=Ro.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(t,n){let r=this.nearest(t);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(t,n)+r.posAtStart}domAtPos(t){let{i:n,off:r}=this.childCursor().findPos(t,-1);for(;n<this.children.length-1;){let i=this.children[n];if(r<i.length||i instanceof es)break;n++,r=0}return this.children[n].domAtPos(r)}coordsAt(t,n){let r=null,i=0;for(let o=this.length,a=this.children.length-1;a>=0;a--){let s=this.children[a],l=o-s.breakAfter,u=l-s.length;if(l<t)break;u<=t&&(u<t||s.covers(-1))&&(l>t||s.covers(1))&&(!r||s instanceof es&&!(r instanceof es&&n>=0))&&(r=s,i=u),o=u}return r?r.coordsAt(t-i,n):null}coordsForChar(t){let{i:n,off:r}=this.childPos(t,1),i=this.children[n];if(!(i instanceof es))return null;for(;i.children.length;){let{i:s,off:l}=i.childPos(r,1);for(;;s++){if(s==i.children.length)return null;if((i=i.children[s]).length)break}r=l}if(!(i instanceof Og))return null;let o=$l(i.text,r);if(o==r)return null;let a=e1(i.dom,r,o).getClientRects();for(let s=0;s<a.length;s++){let l=a[s];if(s==a.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(t){let n=[],{from:r,to:i}=t,o=this.view.contentDOM.clientWidth,a=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==ra.LTR;for(let u=0,c=0;c<this.children.length;c++){let d=this.children[c],h=u+d.length;if(h>i)break;if(u>=r){let f=d.dom.getBoundingClientRect();if(n.push(f.height),a){let g=d.dom.lastChild,b=g?RO(g):[];if(b.length){let v=b[b.length-1],m=l?v.right-f.left:f.right-v.left;m>s&&(s=m,this.minWidth=o,this.minWidthFrom=u,this.minWidthTo=h)}}}u=h+d.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?ra.RTL:ra.LTR}measureTextSize(){for(let o of this.children)if(o instanceof es){let a=o.measureTextSize();if(a)return a}let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let o=RO(t.firstChild)[0];n=t.getBoundingClientRect().height,r=o?o.width/27:7,i=o?o.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(t=this.length){let n=this.children.length;return n&&(t-=this.children[--n].length),new Uxe(this.children,t,n)}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,i=0;;i++){let o=i==n.viewports.length?null:n.viewports[i],a=o?o.from-1:this.length;if(a>r){let s=(n.lineBlockAt(a).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(na.replace({widget:new doe(s),block:!0,inclusive:!0,isBlockGap:!0}).range(r,a))}if(!o)break;r=o.to+1}return na.set(t)}updateDeco(){let t=this.view.state.facet(eE).map((i,o)=>(this.dynamicDecorationMap[o]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(vSe).map((i,o)=>{let a=typeof i=="function";return a&&(n=!0),a?i(this.view):i});r.length&&(this.dynamicDecorationMap[t.length]=n,t.push(Do.join(r)));for(let i=t.length;i<t.length+3;i++)this.dynamicDecorationMap[i]=!1;return this.decorations=[...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(t){if(t.isSnapshot){let u=this.view.viewState.lineBlockAt(t.range.head);this.view.scrollDOM.scrollTop=u.top-t.yMargin,this.view.scrollDOM.scrollLeft=t.xMargin;return}let{range:n}=t,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let o=wSe(this.view),a={left:r.left-o.left,top:r.top-o.top,right:r.right+o.right,bottom:r.bottom+o.bottom},{offsetWidth:s,offsetHeight:l}=this.view.scrollDOM;Yat(this.view.scrollDOM,a,n.head<n.anchor?-1:1,t.x,t.y,Math.max(Math.min(t.xMargin,s),-s),Math.max(Math.min(t.yMargin,l),-l),this.view.textDirection==ra.LTR)}}function mst(e){return e.node.nodeType==1&&e.node.firstChild&&(e.offset==0||e.node.childNodes[e.offset-1].contentEditable=="false")&&(e.offset==e.node.childNodes.length||e.node.childNodes[e.offset].contentEditable=="false")}class doe extends _1{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return t.className="cm-gap",this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}}function CSe(e,t){let n=e.observer.selectionRange,r=n.focusNode&&OSe(n.focusNode,n.focusOffset,0);if(!r)return null;let i=t-r.offset;return{from:i,to:i+r.node.nodeValue.length,node:r.node}}function vst(e,t,n){let r=CSe(e,n);if(!r)return null;let{node:i,from:o,to:a}=r,s=i.nodeValue;if(/[\n\r]/.test(s)||e.state.doc.sliceString(r.from,r.to)!=s)return null;let l=t.invertedDesc,u=new qc(l.mapPos(o),l.mapPos(a),o,a),c=[];for(let d=i.parentNode;;d=d.parentNode){let h=Ro.get(d);if(h instanceof xg)c.push({node:d,deco:h.mark});else{if(h instanceof es||d.nodeName=="DIV"&&d.parentNode==e.contentDOM)return{range:u,text:i,marks:c,line:d};if(d!=e.contentDOM)c.push({node:d,deco:new D_({inclusive:!0,attributes:ist(d),tagName:d.tagName.toLowerCase()})});else return null}}}function OSe(e,t,n){if(n<=0)for(let r=e,i=t;;){if(r.nodeType==3)return{node:r,offset:i};if(r.nodeType==1&&i>0)r=r.childNodes[i-1],i=Cg(r);else break}if(n>=0)for(let r=e,i=t;;){if(r.nodeType==3)return{node:r,offset:i};if(r.nodeType==1&&i<r.childNodes.length&&n>=0)r=r.childNodes[i],i=0;else break}return null}function yst(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t<e.childNodes.length&&e.childNodes[t].contentEditable=="false"?2:0)}let bst=class{constructor(){this.changes=[]}compareRange(e,t){hH(e,t,this.changes)}comparePoint(e,t){hH(e,t,this.changes)}};function wst(e,t,n){let r=new bst;return Do.compare(e,t,n,r),r.changes}function Cst(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function Ost(e,t){let n=!1;return t&&e.iterChangedRanges((r,i)=>{r<t.to&&i>t.from&&(n=!0)}),n}function xst(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),o=t-i.from;if(i.length==0)return tn.cursor(t);o==0?n=1:o==i.length&&(n=-1);let a=o,s=o;n<0?a=$l(i.text,o,!1):s=$l(i.text,o);let l=r(i.text.slice(a,s));for(;a>0;){let u=$l(i.text,a,!1);if(r(i.text.slice(u,a))!=l)break;a=u}for(;s<i.length;){let u=$l(i.text,s);if(r(i.text.slice(s,u))!=l)break;s=u}return tn.range(a+i.from,s+i.from)}function Sst(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function Ast(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function oN(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function hoe(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function poe(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function vH(e,t,n){let r,i,o,a,s=!1,l,u,c,d;for(let g=e.firstChild;g;g=g.nextSibling){let b=RO(g);for(let v=0;v<b.length;v++){let m=b[v];i&&oN(i,m)&&(m=hoe(poe(m,i.bottom),i.top));let w=Sst(t,m),k=Ast(n,m);if(w==0&&k==0)return g.nodeType==3?foe(g,t,n):vH(g,t,n);if(!r||a>k||a==k&&o>w){r=g,i=m,o=w,a=k;let T=k?n<m.top?-1:1:w?t<m.left?-1:1:0;s=!T||(T>0?v<b.length-1:v>0)}w==0?n>m.bottom&&(!c||c.bottom<m.bottom)?(l=g,c=m):n<m.top&&(!d||d.top>m.top)&&(u=g,d=m):c&&oN(c,m)?c=poe(c,m.bottom):d&&oN(d,m)&&(d=hoe(d,m.top))}}if(c&&c.bottom>=n?(r=l,i=c):d&&d.top<=n&&(r=u,i=d),!r)return{node:e,offset:0};let h=Math.max(i.left,Math.min(i.right,t));if(r.nodeType==3)return foe(r,h,n);if(s&&r.contentEditable!="false")return vH(r,h,n);let f=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0);return{node:e,offset:f}}function foe(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,a=0;for(let s=0;s<r;s++){let l=e1(e,s,s+1).getClientRects();for(let u=0;u<l.length;u++){let c=l[u];if(c.top==c.bottom)continue;a||(a=t-c.left);let d=(c.top>n?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&d<o){let h=t>=(c.left+c.right)/2,f=h;if((zn.chrome||zn.gecko)&&e1(e,s).getBoundingClientRect().left==c.right&&(f=!h),d<=0)return{node:e,offset:s+(f?1:0)};i=s+(f?1:0),o=d}}}return{node:e,offset:i>-1?i:a>0?e.nodeValue.length:0}}function xSe(e,t,n,r=-1){var i,o;let a=e.contentDOM.getBoundingClientRect(),s=a.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:c,y:d}=t,h=d-s;if(h<0)return 0;if(h>u)return e.state.doc.length;for(let T=e.viewState.heightOracle.textHeight/2,S=!1;l=e.elementAtHeight(h),l.type!=Ju.Text;)for(;h=r>0?l.bottom+T:l.top-T,!(h>=0&&h<=u);){if(S)return n?null:0;S=!0,r=-r}d=s+h;let f=l.from;if(f<e.viewport.from)return e.viewport.from==0?0:n?null:goe(e,a,l,c,d);if(f>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:goe(e,a,l,c,d);let g=e.dom.ownerDocument,b=e.root.elementFromPoint?e.root:g,v=b.elementFromPoint(c,d);v&&!e.contentDOM.contains(v)&&(v=null),v||(c=Math.max(a.left+1,Math.min(a.right-1,c)),v=b.elementFromPoint(c,d),v&&!e.contentDOM.contains(v)&&(v=null));let m,w=-1;if(v&&((i=e.docView.nearest(v))===null||i===void 0?void 0:i.isEditable)!=!1){if(g.caretPositionFromPoint){let T=g.caretPositionFromPoint(c,d);T&&({offsetNode:m,offset:w}=T)}else if(g.caretRangeFromPoint){let T=g.caretRangeFromPoint(c,d);T&&({startContainer:m,startOffset:w}=T,(!e.contentDOM.contains(m)||zn.safari&&Ist(m,w,c)||zn.chrome&&kst(m,w,c))&&(m=void 0))}}if(!m||!e.docView.dom.contains(m)){let T=es.find(e.docView,f);if(!T)return h>l.top+l.height/2?l.to:l.from;({node:m,offset:w}=vH(T.dom,c,d))}let k=e.docView.nearest(m);if(!k)return null;if(k.isWidget&&((o=k.dom)===null||o===void 0?void 0:o.nodeType)==1){let T=k.dom.getBoundingClientRect();return t.y<T.top||t.y<=T.bottom&&t.x<=(T.left+T.right)/2?k.posAtStart:k.posAtEnd}else return k.localPosFromDOM(m,w)+k.posAtStart}function goe(e,t,n,r,i){let o=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>e.defaultLineHeight*1.5){let s=e.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(e.defaultLineHeight-s)*.5)/s);o+=l*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+Hat(a,o,e.state.tabSize)}function Ist(e,t,n){let r;if(e.nodeType!=3||t!=(r=e.nodeValue.length))return!1;for(let i=e.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return e1(e,r-1,r).getBoundingClientRect().left>n}function kst(e,t,n){if(t!=0)return!1;for(let i=e;;){let o=i.parentNode;if(!o||o.nodeType!=1||o.firstChild!=i)return!1;if(o.classList.contains("cm-line"))break;i=o}let r=e.nodeType==1?e.getBoundingClientRect():e1(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function yH(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>t||r.to==t&&(r.to==n.to||r.type==Ju.Text))return r}return n}function Est(e,t,n,r){let i=yH(e,t.head),o=!r||i.type!=Ju.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(o){let a=e.dom.getBoundingClientRect(),s=e.textDirectionAt(i.from),l=e.posAtCoords({x:n==(s==ra.LTR)?a.right-1:a.left+1,y:(o.top+o.bottom)/2});if(l!=null)return tn.cursor(l,n?-1:1)}return tn.cursor(n?i.to:i.from,n?-1:1)}function moe(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),a=e.textDirectionAt(i.from);for(let s=t,l=null;;){let u=pst(i,o,a,s,n),c=sSe;if(!u){if(i.number==(n?e.state.doc.lines:1))return s;c=`
|
|
`,i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),u=e.visualLineSide(i,!n)}if(l){if(!l(c))return s}else{if(!r)return u;l=r(c)}s=u}}function _st(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return o=>{let a=r(o);return i==ig.Space&&(i=a),i==a}}function Tst(e,t,n,r){let i=t.head,o=n?1:-1;if(i==(n?e.state.doc.length:0))return tn.cursor(i,t.assoc);let a=t.goalColumn,s,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i,t.assoc||-1),c=e.documentTop;if(u)a==null&&(a=u.left-l.left),s=o<0?u.top:u.bottom;else{let f=e.viewState.lineBlockAt(i);a==null&&(a=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-f.from))),s=(o<0?f.top:f.bottom)+c}let d=l.left+a,h=r??e.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let g=s+(h+f)*o,b=xSe(e,{x:d,y:g},!1,o);if(g<l.top||g>l.bottom||(o<0?b<i:b>i)){let v=e.docView.coordsForChar(b),m=!v||g<v.top?-1:1;return tn.cursor(b,m,void 0,a)}}}function D3(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(o,a,s)=>{if(t>o&&t<a){let l=r||n||(t-o<a-t?-1:1);t=l<0?o:a,r=l}});if(!r)return t}}function aN(e,t,n){let r=D3(e.state.facet(OX).map(i=>i(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:tn.cursor(r,r<n.from?1:-1)}class Pst{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,zn.safari&&t.contentDOM.addEventListener("input",()=>null),zn.gecko&&Qst(t.contentDOM.ownerDocument)}handleEvent(t){!Nst(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,n){let r=this.handlers[t];if(r){for(let i of r.observers)i(this.view,n);for(let i of r.handlers){if(n.defaultPrevented)break;if(i(this.view,n)){n.preventDefault();break}}}}ensureHandlers(t){let n=Dst(t),r=this.handlers,i=this.view.contentDOM;for(let o in n)if(o!="scroll"){let a=!n[o].handlers.length,s=r[o];s&&a!=!s.handlers.length&&(i.removeEventListener(o,this.handleEvent),s=null),s||i.addEventListener(o,this.handleEvent,{passive:a})}for(let o in r)o!="scroll"&&!n[o]&&i.removeEventListener(o,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(t.keyCode!=27&&ASe.indexOf(t.keyCode)<0&&(this.view.inputState.lastEscPress=0),zn.android&&zn.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let n;return zn.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((n=SSe.find(r=>r.keyCode==t.keyCode))&&!t.ctrlKey||Rst.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=n||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let t=this.pendingIOSKey;return t?(this.pendingIOSKey=void 0,qC(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:zn.safari&&!zn.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function voe(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){eh(n.state,i)}}}function Dst(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let i=r.spec;if(i&&i.domEventHandlers)for(let o in i.domEventHandlers){let a=i.domEventHandlers[o];a&&n(o).handlers.push(voe(r.value,a))}if(i&&i.domEventObservers)for(let o in i.domEventObservers){let a=i.domEventObservers[o];a&&n(o).observers.push(voe(r.value,a))}}for(let r in hh)n(r).handlers.push(hh[r]);for(let r in ph)n(r).observers.push(ph[r]);return t}const SSe=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Rst="dthko",ASe=[16,17,18,20,91,92,224,225],AD=6;function ID(e){return Math.max(0,e)*.7+8}function $st(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class Mst{constructor(t,n,r,i){this.view=t,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=Kat(t.contentDOM),this.atoms=t.state.facet(OX).map(a=>a(t));let o=t.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(Ai.allowMultipleSelections)&&Lst(t,n),this.dragging=Fst(t,n)&&_Se(n)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){var n;if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&$st(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let r=0,i=0,o=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=wSe(this.view);t.clientX-a.left<=o.left+AD?r=-ID(o.left-t.clientX):t.clientX+a.right>=o.right-AD&&(r=ID(t.clientX-o.right)),t.clientY-a.top<=o.top+AD?i=-ID(o.top-t.clientY):t.clientY+a.bottom>=o.bottom-AD&&(i=ID(t.clientY-o.bottom)),this.setScrollSpeed(r,i)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,n){this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let n=null;for(let r=0;r<t.ranges.length;r++){let i=t.ranges[r],o=null;if(i.empty){let a=D3(this.atoms,i.from,0);a!=i.from&&(o=tn.cursor(a,-1))}else{let a=D3(this.atoms,i.from,-1),s=D3(this.atoms,i.to,1);(a!=i.from||s!=i.to)&&(o=tn.range(i.from==i.anchor?a:s,i.from==i.head?a:s))}o&&(n||(n=t.ranges.slice()),n[r]=o)}return n?tn.create(n,t.mainIndex):t}select(t){let{view:n}=this,r=this.skipAtoms(this.style.get(t,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Lst(e,t){let n=e.state.facet(lSe);return n.length?n[0](t):zn.mac?t.metaKey:t.ctrlKey}function Bst(e,t){let n=e.state.facet(uSe);return n.length?n[0](t):zn.mac?!t.altKey:!t.ctrlKey}function Fst(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=s5(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let o=0;o<i.length;o++){let a=i[o];if(a.left<=t.clientX&&a.right>=t.clientX&&a.top<=t.clientY&&a.bottom>=t.clientY)return!0}return!1}function Nst(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=Ro.get(n))&&r.ignoreEvent(t))return!1;return!0}const hh=Object.create(null),ph=Object.create(null),ISe=zn.ie&&zn.ie_version<15||zn.ios&&zn.webkit_version<604;function Vst(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),kSe(e,n.value)},50)}function kSe(e,t){let{state:n}=e,r,i=1,o=n.toText(t),a=o.lines==n.selection.ranges.length;if(bH!=null&&n.selection.ranges.every(s=>s.empty)&&bH==o.toString()){let s=-1;r=n.changeByRange(l=>{let u=n.doc.lineAt(l.from);if(u.from==s)return{range:l};s=u.from;let c=n.toText((a?o.line(i++).text:t)+n.lineBreak);return{changes:{from:u.from,insert:c},range:tn.cursor(l.from+c.length)}})}else a?r=n.changeByRange(s=>{let l=o.line(i++);return{changes:{from:s.from,to:s.to,insert:l.text},range:tn.cursor(s.from+l.length)}}):r=n.replaceSelection(o);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}ph.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};hh.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);ph.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};ph.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};hh.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(cSe))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=Hst(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new Mst(e,t,n,r)),r&&e.observer.ignore(()=>Zxe(e.contentDOM));let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function yoe(e,t,n,r){if(r==1)return tn.cursor(t,n);if(r==2)return xst(e.state,t,n);{let i=es.find(e.docView,t),o=e.state.doc.lineAt(i?i.posAtEnd:t),a=i?i.posAtStart:o.from,s=i?i.posAtEnd:o.to;return s<e.state.doc.length&&s==o.to&&s++,tn.range(a,s)}}let ESe=(e,t)=>e>=t.top&&e<=t.bottom,boe=(e,t,n)=>ESe(t,n)&&e>=n.left&&e<=n.right;function jst(e,t,n,r){let i=es.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(o==0)return 1;if(o==i.length)return-1;let a=i.coordsAt(o,-1);if(a&&boe(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&boe(n,r,s)?1:a&&ESe(r,a)?-1:1}function woe(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:jst(e,n,t.clientX,t.clientY)}}const Wst=zn.ie&&zn.ie_version<=11;let Coe=null,Ooe=0,xoe=0;function _Se(e){if(!Wst)return e.detail;let t=Coe,n=xoe;return Coe=e,xoe=Date.now(),Ooe=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Ooe+1)%3:1}function Hst(e,t){let n=woe(e,t),r=_Se(t),i=e.state.selection;return{update(o){o.docChanged&&(n.pos=o.changes.mapPos(n.pos),i=i.map(o.changes))},get(o,a,s){let l=woe(e,o),u,c=yoe(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!a){let d=yoe(e,n.pos,n.bias,r),h=Math.min(d.from,c.from),f=Math.max(d.to,c.to);c=h<c.from?tn.range(h,f):tn.range(f,h)}return a?i.replaceRange(i.main.extend(c.from,c.to)):s&&r==1&&i.ranges.length>1&&(u=zst(i,l.pos))?u:s?i.addRange(c):tn.create([c])}}}function zst(e,t){for(let n=0;n<e.ranges.length;n++){let{from:r,to:i}=e.ranges[n];if(r<=t&&i>=t)return tn.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}hh.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let o=i.posAtStart,a=o+i.length;(o>=n.to||a<=n.from)&&(n=tn.range(o,a))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1};hh.dragend=e=>(e.inputState.draggedContent=null,!1);function Soe(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=e.inputState,a=r&&o&&Bst(e,t)?{from:o.from,to:o.to}:null,s={from:i,insert:n},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"}),e.inputState.draggedContent=null}hh.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&Soe(e,t,r.filter(a=>a!=null).join(e.state.lineBreak),!1)};for(let a=0;a<n.length;a++){let s=new FileReader;s.onerror=o,s.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(r[a]=s.result),o()},s.readAsText(n[a])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return Soe(e,t,r,!0),!0}return!1};hh.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=ISe?null:t.clipboardData;return n?(kSe(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(Vst(e),!1)};function Zst(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}function Gst(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:o}of e.selection.ranges){let a=e.doc.lineAt(o);a.number>i&&(t.push(a.text),n.push({from:a.from,to:Math.min(e.doc.length,a.to+1)})),i=a.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let bH=null;hh.copy=hh.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=Gst(e.state);if(!n&&!i)return!1;bH=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=ISe?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(Zst(e,n),!1)};const TSe=Rg.define();function PSe(e,t){let n=[];for(let r of e.facet(pSe)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:TSe.of(!0)}):null}function DSe(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=PSe(e.state,t);n?e.dispatch(n):e.update([])}},10)}ph.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),DSe(e)};ph.blur=e=>{e.observer.clearSelectionRange(),DSe(e)};ph.compositionstart=ph.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};ph.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,zn.chrome&&zn.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)};ph.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};hh.beforeinput=(e,t)=>{var n;let r;if(zn.chrome&&zn.android&&(r=SSe.find(i=>i.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>i+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return!1};const Aoe=new Set;function Qst(e){Aoe.has(e)||(Aoe.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const Ioe=["pre-wrap","normal","pre-line","break-spaces"];class Ust{constructor(t){this.lineWrapping=t,this.doc=Ti.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-t-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return Ioe.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r<t.length;r++){let i=t[r];i<0?r++:this.heightSamples[Math.floor(i*10)]||(n=!0,this.heightSamples[Math.floor(i*10)]=!0)}return n}refresh(t,n,r,i,o,a){let s=Ioe.indexOf(t)>-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=o,l){this.heightSamples={};for(let u=0;u<a.length;u++){let c=a[u];c<0?u++:this.heightSamples[Math.floor(c*10)]=!0}}return l}}class Xst{constructor(t,n){this.from=t,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class fp{constructor(t,n,r,i,o){this.from=t,this.length=n,this.top=r,this.height=i,this._content=o}get type(){return typeof this._content=="number"?Ju.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof f0?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(t){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(t._content)?t._content:[t]);return new fp(this.from,this.length+t.length,this.top,this.height+t.height,n)}}var Po=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(Po||(Po={}));const R3=.001;class Ml{constructor(t,n,r=2){this.length=t,this.height=n,this.flags=r}get outdated(){return(this.flags&2)>0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,n){this.height!=n&&(Math.abs(this.height-n)>R3&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return Ml.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,i){let o=this,a=r.doc;for(let s=i.length-1;s>=0;s--){let{fromA:l,toA:u,fromB:c,toB:d}=i[s],h=o.lineAt(l,Po.ByPosNoHeight,r.setDoc(n),0,0),f=h.to>=u?h:o.lineAt(u,Po.ByPosNoHeight,r,0,0);for(d+=f.to-u,u=f.to;s>0&&h.from<=i[s-1].toA;)l=i[s-1].fromA,c=i[s-1].fromB,s--,l<h.from&&(h=o.lineAt(l,Po.ByPosNoHeight,r,0,0));c+=h.from-l,l=h.from;let g=xX.build(r.setDoc(a),t,c,d);o=o.replace(l,u,g)}return o.updateHeight(r,0)}static empty(){return new Wu(0,0)}static of(t){if(t.length==1)return t[0];let n=0,r=t.length,i=0,o=0;for(;;)if(n==r)if(i>o*2){let s=t[n-1];s.break?t.splice(--n,1,s.left,null,s.right):t.splice(--n,1,s.left,s.right),r+=1+s.break,i-=s.size}else if(o>i*2){let s=t[r];s.break?t.splice(r,1,s.left,null,s.right):t.splice(r,1,s.left,s.right),r+=2+s.break,o-=s.size}else break;else if(i<o){let s=t[n++];s&&(i+=s.size)}else{let s=t[--r];s&&(o+=s.size)}let a=0;return t[n-1]==null?(a=1,n--):t[n]==null&&(a=1,r++),new Yst(Ml.of(t.slice(0,n)),a,Ml.of(t.slice(r)))}}Ml.prototype.size=1;class RSe extends Ml{constructor(t,n,r){super(t,n),this.deco=r}blockAt(t,n,r,i){return new fp(i,this.length,r,this.height,this.deco||0)}lineAt(t,n,r,i,o){return this.blockAt(0,r,i,o)}forEachLine(t,n,r,i,o,a){t<=o+this.length&&n>=o&&a(this.blockAt(0,r,i,o))}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(t,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Wu extends RSe{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,i){return new fp(i,this.length,r,this.height,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof Wu||i instanceof Rs&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Rs?i=new Wu(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Ml.of(r)}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(t,i.heights[i.index++]):(r||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Rs extends Ml{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,i=t.doc.lineAt(n+this.length).number,o=i-r+1,a,s=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*o);a=l/o,this.length>o+1&&(s=(this.height-l)/(this.length-o-1))}else a=this.height/o;return{firstLine:r,lastLine:i,perLine:a,perChar:s}}blockAt(t,n,r,i){let{firstLine:o,lastLine:a,perLine:s,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let u=i+Math.round(Math.max(0,Math.min(1,(t-r)/this.height))*this.length),c=n.doc.lineAt(u),d=s+c.length*l,h=Math.max(r,t-d/2);return new fp(c.from,c.length,h,d,0)}else{let u=Math.max(0,Math.min(a-o,Math.floor((t-r)/s))),{from:c,length:d}=n.doc.line(o+u);return new fp(c,d,r+s*u,s,0)}}lineAt(t,n,r,i,o){if(n==Po.ByHeight)return this.blockAt(t,r,i,o);if(n==Po.ByPosNoHeight){let{from:f,to:g}=r.doc.lineAt(t);return new fp(f,g-f,0,0,0)}let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(r,o),u=r.doc.lineAt(t),c=s+u.length*l,d=u.number-a,h=i+s*d+l*(u.from-o-d);return new fp(u.from,u.length,Math.max(i,Math.min(h,i+this.height-c)),c,0)}forEachLine(t,n,r,i,o,a){t=Math.max(t,o),n=Math.min(n,o+this.length);let{firstLine:s,perLine:l,perChar:u}=this.heightMetrics(r,o);for(let c=t,d=i;c<=n;){let h=r.doc.lineAt(c);if(c==t){let g=h.number-s;d+=l*g+u*(t-o-g)}let f=l+u*h.length;a(new fp(h.from,h.length,d,f,0)),d+=f,c=h.to+1}}replace(t,n,r){let i=this.length-n;if(i>0){let o=r[r.length-1];o instanceof Rs?r[r.length-1]=new Rs(o.length+i):r.push(null,new Rs(i-1))}if(t>0){let o=r[0];o instanceof Rs?r[0]=new Rs(t+o.length):r.unshift(new Rs(t-1),null)}return Ml.of(r)}decomposeLeft(t,n){n.push(new Rs(t-1),null)}decomposeRight(t,n){n.push(null,new Rs(this.length-t-1))}updateHeight(t,n=0,r=!1,i){let o=n+this.length;if(i&&i.from<=n+this.length&&i.more){let a=[],s=Math.max(n,i.from),l=-1;for(i.from>n&&a.push(new Rs(i.from-n-1).updateHeight(t,n));s<=o&&i.more;){let c=t.doc.lineAt(s).length;a.length&&a.push(null);let d=i.heights[i.index++];l==-1?l=d:Math.abs(d-l)>=R3&&(l=-2);let h=new Wu(c,d);h.outdated=!1,a.push(h),s+=c+1}s<=o&&a.push(null,new Rs(o-s).updateHeight(t,s));let u=Ml.of(a);return(l<0||Math.abs(u.height-this.height)>=R3||Math.abs(l-this.heightMetrics(t,n).perLine)>=R3)&&(t.heightChanged=!0),u}else(r||this.outdated)&&(this.setHeight(t,t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Yst extends Ml{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,i){let o=r+this.left.height;return t<o?this.left.blockAt(t,n,r,i):this.right.blockAt(t,n,o,i+this.left.length+this.break)}lineAt(t,n,r,i,o){let a=i+this.left.height,s=o+this.left.length+this.break,l=n==Po.ByHeight?t<a:t<s,u=l?this.left.lineAt(t,n,r,i,o):this.right.lineAt(t,n,r,a,s);if(this.break||(l?u.to<s:u.from>s))return u;let c=n==Po.ByPosNoHeight?Po.ByPosNoHeight:Po.ByPos;return l?u.join(this.right.lineAt(s,c,r,a,s)):this.left.lineAt(s,c,r,i,o).join(u)}forEachLine(t,n,r,i,o,a){let s=i+this.left.height,l=o+this.left.length+this.break;if(this.break)t<l&&this.left.forEachLine(t,n,r,i,o,a),n>=l&&this.right.forEachLine(t,n,r,s,l,a);else{let u=this.lineAt(l,Po.ByPos,r,i,o);t<u.from&&this.left.forEachLine(t,u.from-1,r,i,o,a),u.to>=t&&u.from<=n&&a(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,s,l,a)}}replace(t,n,r){let i=this.left.length+this.break;if(n<i)return this.balanced(this.left.replace(t,n,r),this.right);if(t>this.left.length)return this.balanced(this.left,this.right.replace(t-i,n-i,r));let o=[];t>0&&this.decomposeLeft(t,o);let a=o.length;for(let s of r)o.push(s);if(t>0&&koe(o,a-1),n<this.length){let s=o.length;this.decomposeRight(n,o),koe(o,s)}return Ml.of(o)}decomposeLeft(t,n){let r=this.left.length;if(t<=r)return this.left.decomposeLeft(t,n);n.push(this.left),this.break&&(r++,t>=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,i=r+this.break;if(t>=i)return this.right.decomposeRight(t-i,n);t<r&&this.left.decomposeRight(t,n),this.break&&t<i&&n.push(null),n.push(this.right)}balanced(t,n){return t.size>2*n.size||n.size>2*t.size?Ml.of(this.break?[t,null,n]:[t,n]):(this.left=t,this.right=n,this.height=t.height+n.height,this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,i){let{left:o,right:a}=this,s=n+o.length+this.break,l=null;return i&&i.from<=n+o.length&&i.more?l=o=o.updateHeight(t,n,r,i):o.updateHeight(t,n,r),i&&i.from<=s+a.length&&i.more?l=a=a.updateHeight(t,s,r,i):a.updateHeight(t,s,r),l?this.balanced(o,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function koe(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Rs&&(r=e[t+1])instanceof Rs&&e.splice(t-1,3,new Rs(n.length+1+r.length))}const Kst=5;class xX{constructor(t,n){this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof Wu?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Wu(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(t,n,r){if(t<n||r.heightRelevant){let i=r.widget?r.widget.estimatedHeight:0,o=r.widget?r.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let a=n-t;r.block?this.addBlock(new RSe(a,i,r)):(a||o||i>=Kst)&&this.addLineDeco(i,o,a)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTo<t&&((this.writtenTo<t-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,t-1)),this.nodes.push(null)),this.pos>t&&this.nodes.push(new Wu(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new Rs(n-t);return this.oracle.doc.lineAt(t).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Wu)return t;let n=new Wu(0,-1);return this.nodes.push(n),n}addBlock(t){this.enterLine();let n=t.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,n&&n.endSide>0&&(this.covering=t)}addLineDeco(t,n,r){let i=this.ensureLine();i.length+=r,i.collapsed+=r,i.widgetHeight=Math.max(i.widgetHeight,t),i.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(t){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof Wu)&&!this.isCovered?this.nodes.push(new Wu(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let r=t;for(let i of this.nodes)i instanceof Wu&&i.updateHeight(this.oracle,r),r+=i?i.length:1;return this.nodes}static build(t,n,r,i){let o=new xX(r,t);return Do.spans(n,r,i,o,0),o.finish(r)}}function qst(e,t,n){let r=new Jst;return Do.compare(e,t,n,r,0),r.changes}class Jst{constructor(){this.changes=[]}compareRange(){}comparePoint(t,n,r,i){(t<n||r&&r.heightRelevant||i&&i.heightRelevant)&&hH(t,n,this.changes,5)}}function elt(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,i=r.defaultView||window,o=Math.max(0,n.left),a=Math.min(i.innerWidth,n.right),s=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let u=e.parentNode;u&&u!=r.body;)if(u.nodeType==1){let c=u,d=window.getComputedStyle(c);if((c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth)&&d.overflow!="visible"){let h=c.getBoundingClientRect();o=Math.max(o,h.left),a=Math.min(a,h.right),s=Math.max(s,h.top),l=u==e.parentNode?h.bottom:Math.min(l,h.bottom)}u=d.position=="absolute"||d.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function tlt(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class sN{constructor(t,n,r){this.from=t,this.to=n,this.size=r}static same(t,n){if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i.from!=o.from||i.to!=o.to||i.size!=o.size)return!1}return!0}draw(t,n){return na.replace({widget:new nlt(this.size*(n?t.scaleY:t.scaleX),n)}).range(this.from,this.to)}}class nlt extends _1{constructor(t,n){super(),this.size=t,this.vertical=n}eq(t){return t.size==this.size&&t.vertical==this.vertical}toDOM(){let t=document.createElement("div");return this.vertical?t.style.height=this.size+"px":(t.style.width=this.size+"px",t.style.height="2px",t.style.display="inline-block"),t}get estimatedHeight(){return this.vertical?this.size:-1}}class Eoe{constructor(t){this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=_oe,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=ra.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=t.facet(CX).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new Ust(n),this.stateDeco=t.facet(eE).filter(r=>typeof r!="function"),this.heightMap=Ml.empty().applyChanges(this.stateDeco,Ti.empty,this.heightOracle.setDoc(t.doc),[new qc(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=na.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!t.some(({from:o,to:a})=>i>=o&&i<=a)){let{from:o,to:a}=this.lineBlockAt(i);t.push(new kD(o,a))}}this.viewports=t.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?_oe:new olt(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(this.scaler.scale==1?t:qI(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(eE).filter(c=>typeof c!="function");let i=t.changedRanges,o=qc.extendWithRanges(i,qst(r,this.stateDeco,t?t.changes:ns.empty(this.state.doc.length))),a=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=a&&(t.flags|=2),s?(this.scrollAnchorPos=t.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.head<l.from||n.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(gSe)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,o=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?ra.RTL:ra.LTR;let a=this.heightOracle.mustRefreshForWrapping(o),s=n.getBoundingClientRect(),l=a||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let u=0,c=0;if(s.width&&s.height){let{scaleX:T,scaleY:S}=zxe(n,s);(this.scaleX!=T||this.scaleY!=S)&&(this.scaleX=T,this.scaleY=S,u|=8,a=l=!0)}let d=(parseInt(r.paddingTop)||0)*this.scaleY,h=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=d||this.paddingBottom!=h)&&(this.paddingTop=d,this.paddingBottom=h,u|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,u|=8);let f=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=Qxe(t.scrollDOM);let g=(this.printing?tlt:elt)(n,this.paddingTop),b=g.top-this.pixelViewport.top,v=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let w=s.width;if((this.contentDOMWidth!=w||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),l){let T=t.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(T)&&(a=!0),a||i.lineWrapping&&Math.abs(w-this.contentDOMWidth)>i.charWidth){let{lineHeight:S,charWidth:I,textHeight:O}=t.docView.measureTextSize();a=S>0&&i.refresh(o,S,I,O,w/I,T),a&&(t.docView.minWidth=0,u|=8)}b>0&&v>0?c=Math.max(b,v):b<0&&v<0&&(c=Math.min(b,v)),i.heightChanged=!1;for(let S of this.viewports){let I=S.from==this.viewport.from?T:t.docView.measureVisibleLineHeights(S);this.heightMap=(a?Ml.empty().applyChanges(this.stateDeco,Ti.empty,this.heightOracle,[new qc(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,a,new Xst(S.from,I))}i.heightChanged&&(u|=2)}let k=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return k&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(u&2||k)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,t)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),i=this.heightMap,o=this.heightOracle,{visibleTop:a,visibleBottom:s}=this,l=new kD(i.lineAt(a-r*1e3,Po.ByHeight,o,0,0).from,i.lineAt(s+(1-r)*1e3,Po.ByHeight,o,0,0).to);if(n){let{head:u}=n.range;if(u<l.from||u>l.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=i.lineAt(u,Po.ByPos,o,0,0),h;n.y=="center"?h=(d.top+d.bottom)/2-c/2:n.y=="start"||n.y=="nearest"&&u<l.from?h=d.top:h=d.bottom-c,l=new kD(i.lineAt(h-1e3/2,Po.ByHeight,o,0,0).from,i.lineAt(h+c+1e3/2,Po.ByHeight,o,0,0).to)}}return l}mapViewport(t,n){let r=n.mapPos(t.from,-1),i=n.mapPos(t.to,1);return new kD(this.heightMap.lineAt(r,Po.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,Po.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:t,to:n},r=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(t,Po.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(n,Po.ByPos,this.heightOracle,0,0),{visibleTop:a,visibleBottom:s}=this;return(t==0||i<=a-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||o>=s+Math.max(10,Math.min(r,250)))&&i>a-2*1e3&&o<s+2*1e3}mapLineGaps(t,n){if(!t.length||n.empty)return t;let r=[];for(let i of t)n.touchesRange(i.from,i.to)||r.push(new sN(n.mapPos(i.from),n.mapPos(i.to),i.size));return r}ensureLineGaps(t,n){let r=this.heightOracle.lineWrapping,i=r?1e4:2e3,o=i>>1,a=i<<1;if(this.defaultTextDirection!=ra.LTR&&!r)return[];let s=[],l=(u,c,d,h)=>{if(c-u<o)return;let f=this.state.selection.main,g=[f.from];f.empty||g.push(f.to);for(let v of g)if(v>u&&v<c){l(u,v-10,d,h),l(v+10,c,d,h);return}let b=ilt(t,v=>v.from>=d.from&&v.to<=d.to&&Math.abs(v.from-u)<o&&Math.abs(v.to-c)<o&&!g.some(m=>v.from<m&&v.to>m));if(!b){if(c<d.to&&n&&r&&n.visibleRanges.some(v=>v.from<=c&&v.to>=c)){let v=n.moveToLineBoundary(tn.cursor(c),!1,!0).head;v>u&&(c=v)}b=new sN(u,c,this.gapSize(d,u,c,h))}s.push(b)};for(let u of this.viewportLines){if(u.length<a)continue;let c=rlt(u.from,u.to,this.stateDeco);if(c.total<a)continue;let d=this.scrollTarget?this.scrollTarget.range.head:null,h,f;if(r){let g=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,b,v;if(d!=null){let m=_D(c,d),w=((this.visibleBottom-this.visibleTop)/2+g)/u.height;b=m-w,v=m+w}else b=(this.visibleTop-u.top-g)/u.height,v=(this.visibleBottom-u.top+g)/u.height;h=ED(c,b),f=ED(c,v)}else{let g=c.total*this.heightOracle.charWidth,b=i*this.heightOracle.charWidth,v,m;if(d!=null){let w=_D(c,d),k=((this.pixelViewport.right-this.pixelViewport.left)/2+b)/g;v=w-k,m=w+k}else v=(this.pixelViewport.left-b)/g,m=(this.pixelViewport.right+b)/g;h=ED(c,v),f=ED(c,m)}h>u.from&&l(u.from,h,u,c),f<u.to&&l(f,u.to,u,c)}return s}gapSize(t,n,r,i){let o=_D(i,r)-_D(i,n);return this.heightOracle.lineWrapping?t.height*o:i.total*this.heightOracle.charWidth*o}updateLineGaps(t){sN.same(t,this.lineGaps)||(this.lineGaps=t,this.lineGapDeco=na.set(t.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];Do.spans(t,this.viewport.from,this.viewport.to,{span(i,o){n.push({from:i,to:o})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,o)=>i.from!=n[o].from||i.to!=n[o].to);return this.visibleRanges=n,r?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||qI(this.heightMap.lineAt(t,Po.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return qI(this.heightMap.lineAt(this.scaler.fromDOM(t),Po.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let n=this.lineBlockAtHeight(t+8);return n.from>=this.viewport.from||this.viewportLines[0].top-t>200?n:this.viewportLines[0]}elementAtHeight(t){return qI(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class kD{constructor(t,n){this.from=t,this.to=n}}function rlt(e,t,n){let r=[],i=e,o=0;return Do.spans(n,e,t,{span(){},point(a,s){a>i&&(r.push({from:i,to:a}),o+=a-i),i=s}},20),i<t&&(r.push({from:i,to:t}),o+=t-i),{total:o,ranges:r}}function ED({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:o,to:a}=t[i],s=a-o;if(r<=s)return o+r;r-=s}}function _D(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}function ilt(e,t){for(let n of e)if(t(n))return n}const _oe={toDOM(e){return e},fromDOM(e){return e},scale:1};class olt{constructor(t,n,r){let i=0,o=0,a=0;this.viewports=r.map(({from:s,to:l})=>{let u=n.lineAt(s,Po.ByPos,t,0,0).top,c=n.lineAt(l,Po.ByPos,t,0,0).bottom;return i+=c-u,{from:s,to:l,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let s of this.viewports)s.domTop=a+(s.top-o)*this.scale,a=s.domBottom=s.domTop+(s.bottom-s.top),o=s.bottom}toDOM(t){for(let n=0,r=0,i=0;;n++){let o=n<this.viewports.length?this.viewports[n]:null;if(!o||t<o.top)return i+(t-r)*this.scale;if(t<=o.bottom)return o.domTop+(t-o.top);r=o.bottom,i=o.domBottom}}fromDOM(t){for(let n=0,r=0,i=0;;n++){let o=n<this.viewports.length?this.viewports[n]:null;if(!o||t<o.domTop)return r+(t-i)/this.scale;if(t<=o.domBottom)return o.top+(t-o.domTop);r=o.bottom,i=o.domBottom}}}function qI(e,t){if(t.scale==1)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new fp(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(i=>qI(i,t)):e._content)}const TD=ir.define({combine:e=>e.join(" ")}),wH=ir.define({combine:e=>e.indexOf(!0)>-1}),CH=h0.newName(),$Se=h0.newName(),MSe=h0.newName(),LSe={"&light":"."+$Se,"&dark":"."+MSe};function OH(e,t,n){return new h0(t,{finish(r){return/&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return e;if(!n||!n[i])throw new RangeError(`Unsupported selector: ${i}`);return n[i]}):e+" "+r}})}const alt=OH("."+CH,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},LSe),JI="";class slt{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(Ai.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=JI}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let i=t;;){this.findPointBefore(r,i);let o=this.text.length;this.readNode(i);let a=i.nextSibling;if(a==n)break;let s=Ro.get(i),l=Ro.get(a);(s&&l?s.breakAfter:(s?s.breakAfter:Toe(i))||Toe(a)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>o)&&this.lineBreak(),i=a}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,a=1,s;if(this.lineSeparator?(o=n.indexOf(this.lineSeparator,r),a=this.lineSeparator.length):(s=i.exec(n))&&(o=s.index,a=s[0].length),this.append(n.slice(r,o<0?n.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=a-1);r=o+a}}readNode(t){if(t.cmIgnore)return;let n=Ro.get(t),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(t,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,n){for(let r of this.points)r.node==t&&t.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(t,n){for(let r of this.points)(t.nodeType==3?r.node==t:t.contains(r.node))&&(r.pos=this.text.length+(llt(t,r.node,r.offset)?n:0))}}function llt(e,t,n){for(;;){if(!t||n<Cg(t))return!1;if(t==e)return!0;n=J2(t)+1,t=t.parentNode}}function Toe(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class Poe{constructor(t,n){this.node=t,this.offset=n,this.pos=-1}}class ult{constructor(t,n,r,i){this.typeOver=i,this.bounds=null,this.text="";let{impreciseHead:o,impreciseAnchor:a}=t.docView;if(t.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let s=o||a?[]:hlt(t),l=new slt(s,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=plt(s,this.bounds.from)}else{let s=t.observer.selectionRange,l=o&&o.node==s.focusNode&&o.offset==s.focusOffset||!aH(t.contentDOM,s.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(s.focusNode,s.focusOffset),u=a&&a.node==s.anchorNode&&a.offset==s.anchorOffset||!aH(t.contentDOM,s.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(s.anchorNode,s.anchorOffset),c=t.viewport;if(zn.ios&&t.state.selection.main.empty&&l!=u&&(c.from>0||c.to<t.state.doc.length)){let d=c.from-Math.min(l,u),h=c.to-Math.max(l,u);(d==0||d==1)&&(h==0||h==-1)&&(l=0,u=t.state.doc.length)}this.newSel=tn.single(u,l)}}}function BSe(e,t){let n,{newSel:r}=t,i=e.state.selection.main,o=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:a,to:s}=t.bounds,l=i.from,u=null;(o===8||zn.android&&t.text.length<s-a)&&(l=i.to,u="end");let c=dlt(e.state.doc.sliceString(a,s,JI),t.text,l-a,u);c&&(zn.chrome&&o==13&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==JI+JI&&c.toB--,n={from:a+c.from,to:a+c.toA,insert:Ti.of(t.text.slice(c.from,c.toB).split(JI))})}else r&&(!e.hasFocus&&e.state.facet(zL)||r.main.eq(i))&&(r=null);if(!n&&!r)return!1;if(!n&&t.typeOver&&!i.empty&&r&&r.main.empty?n={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,i.to)}:n&&n.from>=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,i.to))}:(zn.mac||zn.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=tn.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Ti.of([" "])}):zn.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==`
|
|
`&&e.lineWrapping&&(r&&(r=tn.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Ti.of([" "])}),n){if(zn.ios&&e.inputState.flushIOSKey()||zn.android&&(n.from==i.from&&n.to==i.to&&n.insert.length==1&&n.insert.lines==2&&qC(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||o==8&&n.insert.length<n.to-n.from&&n.to>i.head)&&qC(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&qC(e.contentDOM,"Delete",46)))return!0;let a=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s,l=()=>s||(s=clt(e,n,r));return e.state.facet(hSe).some(u=>u(e,n.from,n.to,a,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(i)){let a=!1,s="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(a=!0),s=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:a,userEvent:s}),!0}else return!1}function clt(e,t,n){let r,i=e.state,o=i.selection.main;if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let s=o.from<t.from?i.sliceDoc(o.from,t.from):"",l=o.to>t.to?i.sliceDoc(t.to,o.to):"";r=i.replaceSelection(e.state.toText(s+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let s=i.changes(t),l=n&&n.main.to<=s.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=o.to&&t.to>=o.to-10){let u=e.state.sliceDoc(t.from,t.to),c,d=n&&CSe(e,n.main.head);if(d){let g=t.insert.length-(t.to-t.from);c={from:d.from,to:d.to-g}}else c=e.state.doc.lineAt(o.head);let h=o.to-t.to,f=o.to-o.from;r=i.changeByRange(g=>{if(g.from==o.from&&g.to==o.to)return{changes:s,range:l||g.map(s)};let b=g.to-h,v=b-u.length;if(g.to-g.from!=f||e.state.sliceDoc(v,b)!=u||g.to>=c.from&&g.from<=c.to)return{range:g};let m=i.changes({from:v,to:b,insert:t.insert}),w=g.to-o.to;return{changes:m,range:l?tn.range(Math.max(0,l.anchor+w),Math.max(0,l.head+w)):g.map(m)}})}else r={changes:s,selection:l&&i.selection.replaceRange(l)}}let a="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:a,scrollIntoView:!0})}function dlt(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o<i&&e.charCodeAt(o)==t.charCodeAt(o);)o++;if(o==i&&e.length==t.length)return null;let a=e.length,s=t.length;for(;a>0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if(r=="end"){let l=Math.max(0,o-Math.min(a,s));n-=a+l-o}if(a<o&&e.length<t.length){let l=n<=o&&n>=a?o-n:0;o-=l,s=o+(s-a),a=o}else if(s<o){let l=n<=o&&n>=s?o-n:0;o-=l,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}function hlt(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;return n&&(t.push(new Poe(n,r)),(i!=n||o!=r)&&t.push(new Poe(i,o))),t}function plt(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?tn.single(n+t,r+t):null}const flt={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},lN=zn.ie&&zn.ie_version<=11;class glt{constructor(t){this.view=t,this.active=!1,this.selectionRange=new qat,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(zn.ie&&zn.ie_version<=11||zn.ios&&t.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),lN&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(t.scrollDOM)),this.addWindowListeners(this.win=t.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((n,r)=>n!=t[r]))){this.gapIntersection.disconnect();for(let n of t)this.gapIntersection.observe(n);this.gaps=t}}onSelectionChange(t){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(zL)?r.root.activeElement!=this.dom:!P3(r.dom,i))return;let o=i.anchorNode&&r.docView.nearest(i.anchorNode);if(o&&o.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(zn.ie&&zn.ie_version<=11||zn.android&&zn.chrome)&&!r.state.selection.main.empty&&i.focusNode&&Mk(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=zn.safari&&t.root.nodeType==11&&Uat(this.dom.ownerDocument)==this.dom&&mlt(this.view)||s5(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=P3(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime<Date.now()-300&&est(this.dom,n)?(this.view.inputState.lastFocusTime=0,t.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(t,n){this.selectionRange.set(t.node,t.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let t=0,n=null;for(let r=this.dom;r;)if(r.nodeType==1)!n&&t<this.scrollTargets.length&&this.scrollTargets[t]==r?t++:n||(n=this.scrollTargets.slice(0,t)),n&&n.push(r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;if(t<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,t)),n){for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);for(let r of this.scrollTargets=n)r.addEventListener("scroll",this.onScroll)}}ignore(t){if(!this.active)return t();try{return this.stop(),t()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,flt),lN&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),lN&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(t,n){var r;if(!this.delayedAndroidKey){let i=()=>{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&qC(this.dom,o.key,o.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let o of t){let a=this.readMutation(o);a&&(a.typeOver&&(i=!0),n==-1?{from:n,to:r}=a:(n=Math.min(a.from,n),r=Math.max(a.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&P3(this.dom,this.selectionRange);if(t<0&&!i)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new ult(this.view,t,n,r);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=BSe(this.view,n);return this.view.state==r&&this.view.update([]),i}readMutation(t){let n=this.view.docView.nearest(t.target);if(!n||n.ignoreMutation(t))return null;if(n.markDirty(t.type=="attributes"),t.type=="attributes"&&(n.flags|=4),t.type=="childList"){let r=Doe(n,t.previousSibling||t.target.previousSibling,-1),i=Doe(n,t.nextSibling||t.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,n,r;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Doe(e,t,n){for(;t;){let r=Ro.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function mlt(e){let t=null;function n(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return Mk(s.node,s.offset,o,a)&&([r,i,o,a]=[o,a,r,i]),{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:a}}class ar{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:n}=t;this.dispatchTransactions=t.dispatchTransactions||n&&(r=>r.forEach(i=>n(i,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=t.root||Jat(t.parent)||document,this.viewState=new Eoe(t.state||Ai.create(t)),t.scrollTo&&t.scrollTo.is(SD)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(YI).map(r=>new iN(r));for(let r of this.plugins)r.update(this);this.observer=new glt(this),this.inputState=new Pst(this),this.inputState.ensureHandlers(this.plugins),this.docView=new coe(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=t.length==1&&t[0]instanceof os?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,o=this.state;for(let h of t){if(h.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=h.state}if(this.destroyed){this.viewState.state=o;return}let a=this.hasFocus,s=0,l=null;t.some(h=>h.annotation(TSe))?(this.inputState.notifiedFocused=a,s=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=PSe(o,a),l||(s=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(Ai.phrases)!=this.state.facet(Ai.phrases))return this.setState(o);i=l5.create(this,o,t),i.flags|=s;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let h of t){if(d&&(d=d.map(h.changes)),h.scrollIntoView){let{main:f}=h.state.selection;d=new JC(f.empty?f:tn.cursor(f.head,f.head>f.anchor?-1:1))}for(let f of h.effects)f.is(SD)&&(d=f.value.clip(this.state))}this.viewState.update(i,d),this.bidiCache=u5.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(KI)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some(h=>h.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(TD)!=i.state.facet(TD)&&(this.viewState.mustMeasureContent=!0),(n||r||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let h of this.state.facet(mH))try{h(i)}catch(f){eh(this.state,f,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!BSe(this,c)&&u.force&&qC(this.contentDOM,u.key,u.keyCode)})}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new Eoe(t),this.plugins=t.facet(YI).map(r=>new iN(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new coe(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(t){let n=t.startState.facet(YI),r=t.state.facet(YI);if(n!=r){let i=[];for(let o of r){let a=n.indexOf(o);if(a<0)i.push(new iN(o));else{let s=this.plugins[a];s.mustUpdate=t,i.push(s)}}for(let o of this.plugins)o.mustUpdate!=t&&o.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=t;for(let i=0;i<this.plugins.length;i++)this.plugins[i].update(this);n!=r&&this.inputState.ensureHandlers(this.plugins)}measure(t=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:a}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let s=0;;s++){if(a<0)if(Qxe(r))o=-1,a=this.viewState.heightMap.height;else{let f=this.viewState.scrollAnchorAt(i);o=f.from,a=f.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(s>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let c=u.map(f=>{try{return f.read(this)}catch(g){return eh(this.state,g),Roe}}),d=l5.create(this,this.state,[]),h=!1;d.flags|=l,n?n.flags|=l:n=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),h=this.docView.update(d));for(let f=0;f<u.length;f++)if(c[f]!=Roe)try{let g=u[f];g.write&&g.write(c[f],this)}catch(g){eh(this.state,g)}if(h&&this.docView.updateSelection(!0),!d.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,a=-1;continue}else{let f=(o<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(o).top)-a;if(f>1||f<-1){i=i+f,r.scrollTop=i/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let s of this.state.facet(mH))s(n)}get themeClasses(){return CH+" "+(this.state.facet(wH)?MSe:$Se)+" "+this.state.facet(TD)}updateAttrs(){let t=$oe(this,mSe,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(zL)?"true":"false",class:"cm-content",style:`${zn.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),$oe(this,CX,n);let r=this.observer.ignore(()=>{let i=dH(this.contentDOM,this.contentAttrs,n),o=dH(this.dom,this.editorAttrs,t);return i||o});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let i of r.effects)if(i.is(ar.announce)){n&&(this.announceDOM.textContent=""),n=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(KI);let t=this.state.facet(ar.cspNonce);h0.mount(this.root,this.styleModules.concat(alt).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===t.key){this.measureRequests[n]=t;return}}this.measureRequests.push(t)}}plugin(t){let n=this.pluginMap.get(t);return(n===void 0||n&&n.spec!=t)&&this.pluginMap.set(t,n=this.plugins.find(r=>r.spec==t)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,n,r){return aN(this,t,moe(this,t,n,r))}moveByGroup(t,n){return aN(this,t,moe(this,t,n,r=>_st(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),i=this.textDirectionAt(t.from),o=r[n?r.length-1:0];return tn.cursor(o.side(n,i)+t.from,o.forward(!n,i)?1:-1)}moveToLineBoundary(t,n,r=!0){return Est(this,t,n,r)}moveVertically(t,n,r){return aN(this,t,Tst(this,t,n,r))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,n=0){return this.docView.posFromDOM(t,n)}posAtCoords(t,n=!0){return this.readMeasured(),xSe(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(t),o=this.bidiSpans(i),a=o[Sv.find(o,t-i.from,-1,n)];return WL(r,a.dir==ra.LTR==n>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(fSe)||t<this.viewport.from||t>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>vlt)return aSe(t.length);let n=this.textDirectionAt(t.from),r;for(let o of this.bidiCache)if(o.from==t.from&&o.dir==n&&(o.fresh||oSe(o.isolates,r=uoe(this,t))))return o.order;r||(r=uoe(this,t));let i=hst(t.text,n,r);return this.bidiCache.push(new u5(t.from,t.to,n,r,!0,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||zn.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Zxe(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,n={}){return SD.of(new JC(typeof t=="number"?tn.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(t);return SD.of(new JC(tn.cursor(r.from),"start","start",r.top-t,n,!0))}static domEventHandlers(t){return ud.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return ud.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=h0.newName(),i=[TD.of(r),KI.of(OH(`.${r}`,t))];return n&&n.dark&&i.push(wH.of(!0)),i}static baseTheme(t){return E1.lowest(KI.of(OH("."+CH,t,LSe)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&Ro.get(r)||Ro.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}ar.styleModule=KI;ar.inputHandler=hSe;ar.focusChangeEffect=pSe;ar.perLineTextDirection=fSe;ar.exceptionSink=dSe;ar.updateListener=mH;ar.editable=zL;ar.mouseSelectionStyle=cSe;ar.dragMovesSelection=uSe;ar.clickAddsSelectionRange=lSe;ar.decorations=eE;ar.outerDecorations=vSe;ar.atomicRanges=OX;ar.bidiIsolatedRanges=ySe;ar.scrollMargins=bSe;ar.darkTheme=wH;ar.cspNonce=ir.define({combine:e=>e.length?e[0]:""});ar.contentAttributes=CX;ar.editorAttributes=mSe;ar.lineWrapping=ar.contentAttributes.of({class:"cm-lineWrapping"});ar.announce=oo.define();const vlt=4096,Roe={};class u5{constructor(t,n,r,i,o,a){this.from=t,this.to=n,this.dir=r,this.isolates=i,this.fresh=o,this.order=a}static update(t,n){if(n.empty&&!t.some(o=>o.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:ra.LTR;for(let o=Math.max(0,t.length-10);o<t.length;o++){let a=t[o];a.dir==i&&!n.touchesRange(a.from,a.to)&&r.push(new u5(n.mapPos(a.from,1),n.mapPos(a.to,-1),a.dir,a.isolates,!1,a.order))}return r}}function $oe(e,t,n){for(let r=e.state.facet(t),i=r.length-1;i>=0;i--){let o=r[i],a=typeof o=="function"?o(e):o;a&&cH(a,n)}return n}const ylt=zn.mac?"mac":zn.windows?"win":zn.linux?"linux":"key";function blt(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,o,a,s;for(let l=0;l<n.length-1;++l){const u=n[l];if(/^(cmd|meta|m)$/i.test(u))s=!0;else if(/^a(lt)?$/i.test(u))i=!0;else if(/^(c|ctrl|control)$/i.test(u))o=!0;else if(/^s(hift)?$/i.test(u))a=!0;else if(/^mod$/i.test(u))t=="mac"?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+u)}return i&&(r="Alt-"+r),o&&(r="Ctrl-"+r),s&&(r="Meta-"+r),a&&(r="Shift-"+r),r}function PD(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n!==!1&&t.shiftKey&&(e="Shift-"+e),e}const wlt=E1.default(ar.domEventHandlers({keydown(e,t){return Slt(Clt(t.state),e,t,"editor")}})),Dx=ir.define({enables:wlt}),Moe=new WeakMap;function Clt(e){let t=e.facet(Dx),n=Moe.get(t);return n||Moe.set(t,n=xlt(t.reduce((r,i)=>r.concat(i),[]))),n}let gv=null;const Olt=4e3;function xlt(e,t=ylt){let n=Object.create(null),r=Object.create(null),i=(a,s)=>{let l=r[a];if(l==null)r[a]=s;else if(l!=s)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},o=(a,s,l,u,c)=>{var d,h;let f=n[a]||(n[a]=Object.create(null)),g=s.split(/ (?!$)/).map(m=>blt(m,t));for(let m=1;m<g.length;m++){let w=g.slice(0,m).join(" ");i(w,!0),f[w]||(f[w]={preventDefault:!0,stopPropagation:!1,run:[k=>{let T=gv={view:k,prefix:w,scope:a};return setTimeout(()=>{gv==T&&(gv=null)},Olt),!0}]})}let b=g.join(" ");i(b,!1);let v=f[b]||(f[b]={preventDefault:!1,stopPropagation:!1,run:((h=(d=f._any)===null||d===void 0?void 0:d.run)===null||h===void 0?void 0:h.slice())||[]});l&&v.run.push(l),u&&(v.preventDefault=!0),c&&(v.stopPropagation=!0)};for(let a of e){let s=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let u of s){let c=n[u]||(n[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let d in c)c[d].run.push(a.any)}let l=a[t]||a.key;if(l)for(let u of s)o(u,l,a.run,a.preventDefault,a.stopPropagation),a.shift&&o(u,"Shift-"+l,a.shift,a.preventDefault,a.stopPropagation)}return n}function Slt(e,t,n,r){let i=Qat(t),o=jd(i,0),a=fv(o)==i.length&&i!=" ",s="",l=!1,u=!1,c=!1;gv&&gv.view==n&&gv.scope==r&&(s=gv.prefix+" ",ASe.indexOf(t.keyCode)<0&&(u=!0,gv=null));let d=new Set,h=v=>{if(v){for(let m of v.run)if(!d.has(m)&&(d.add(m),m(n,t)))return v.stopPropagation&&(c=!0),!0;v.preventDefault&&(v.stopPropagation&&(c=!0),u=!0)}return!1},f=e[r],g,b;return f&&(h(f[s+PD(i,t,!a)])?l=!0:a&&(t.altKey||t.metaKey||t.ctrlKey)&&!(zn.windows&&t.ctrlKey&&t.altKey)&&(g=p0[t.keyCode])&&g!=i?(h(f[s+PD(g,t,!0)])||t.shiftKey&&(b=q2[t.keyCode])!=i&&b!=g&&h(f[s+PD(b,t,!1)]))&&(l=!0):a&&t.shiftKey&&h(f[s+PD(i,t,!0)])&&(l=!0),!l&&h(f._any)&&(l=!0)),u&&(l=!0),l&&c&&t.stopPropagation(),l}class $_{constructor(t,n,r,i,o){this.className=t,this.left=n,this.top=r,this.width=i,this.height=o}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,n){return n.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,n,r){if(r.empty){let i=t.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let o=FSe(t);return[new $_(n,i.left-o.left,i.top-o.top,null,i.bottom-i.top)]}else return Alt(t,n,r)}}function FSe(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==ra.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function Loe(e,t,n){let r=tn.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(r,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(r,!0,!0).from),type:Ju.Text}}function Alt(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==ra.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),l=FSe(e),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),d=s.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),h=s.right-(c?parseInt(c.paddingRight):0),f=yH(e,r),g=yH(e,i),b=f.type==Ju.Text?f:null,v=g.type==Ju.Text?g:null;if(b&&(e.lineWrapping||f.widgetLineBreaks)&&(b=Loe(e,r,b)),v&&(e.lineWrapping||g.widgetLineBreaks)&&(v=Loe(e,i,v)),b&&v&&b.from==v.from)return w(k(n.from,n.to,b));{let S=b?k(n.from,null,b):T(f,!1),I=v?k(null,n.to,v):T(g,!0),O=[];return(b||f).to<(v||g).from-(b&&v?1:0)||f.widgetLineBreaks>1&&S.bottom+e.defaultLineHeight/2<I.top?O.push(m(d,S.bottom,h,I.top)):S.bottom<I.top&&e.elementAtHeight((S.bottom+I.top)/2).type==Ju.Text&&(S.bottom=I.top=(S.bottom+I.top)/2),w(S).concat(O).concat(w(I))}function m(S,I,O,y){return new $_(t,S-l.left,I-l.top-.01,O-S,y-I+.01)}function w({top:S,bottom:I,horizontal:O}){let y=[];for(let _=0;_<O.length;_+=2)y.push(m(O[_],S,O[_+1],I));return y}function k(S,I,O){let y=1e9,_=-1e9,A=[];function R(x,P,$,L,V){let H=e.coordsAtPos(x,x==O.to?-2:2),Q=e.coordsAtPos($,$==O.from?2:-2);!H||!Q||(y=Math.min(H.top,Q.top,y),_=Math.max(H.bottom,Q.bottom,_),V==ra.LTR?A.push(o&&P?d:H.left,o&&L?h:Q.right):A.push(!o&&L?d:Q.left,!o&&P?h:H.right))}let D=S??O.from,C=I??O.to;for(let x of e.visibleRanges)if(x.to>D&&x.from<C)for(let P=Math.max(x.from,D),$=Math.min(x.to,C);;){let L=e.state.doc.lineAt(P);for(let V of e.bidiSpans(L)){let H=V.from+L.from,Q=V.to+L.from;if(H>=$)break;Q>P&&R(Math.max(H,P),S==null&&H<=D,Math.min(Q,$),I==null&&Q>=C,V.dir)}if(P=L.to+1,P>=$)break}return A.length==0&&R(D,S==null,C,I==null,e.textDirection),{top:y,bottom:_,horizontal:A}}function T(S,I){let O=s.top+(I?S.top:S.bottom);return{top:O,bottom:O,horizontal:[]}}}function Ilt(e,t){return e.constructor==t.constructor&&e.eq(t)}class klt{constructor(t,n){this.view=t,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,t)}update(t){t.startState.facet($3)!=t.state.facet($3)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}setOrder(t){let n=0,r=t.facet($3);for(;n<r.length&&r[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:t,scaleY:n}=this.view;(t!=this.scaleX||n!=this.scaleY)&&(this.scaleX=t,this.scaleY=n,this.dom.style.transform=`scale(${1/t}, ${1/n})`)}draw(t){if(t.length!=this.drawn.length||t.some((n,r)=>!Ilt(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let i of t)i.update&&n&&i.constructor&&this.drawn[r].constructor&&i.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(i.draw(),n);for(;n;){let i=n.nextSibling;n.remove(),n=i}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const $3=ir.define();function NSe(e){return[ud.define(t=>new klt(t,e)),$3.of(e)]}const VSe=!zn.ios,tE=ir.define({combine(e){return jL(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function Elt(e={}){return[tE.of(e),_lt,Tlt,Plt,gSe.of(!0)]}function jSe(e){return e.startState.facet(tE)!=e.state.facet(tE)}const _lt=NSe({above:!0,markers(e){let{state:t}=e,n=t.facet(tE),r=[];for(let i of t.selection.ranges){let o=i==t.selection.main;if(i.empty?!o||VSe:n.drawRangeCursor){let a=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=i.empty?i:tn.cursor(i.head,i.head>i.anchor?-1:1);for(let l of $_.forRange(e,a,s))r.push(l)}}return r},update(e,t){e.transactions.some(r=>r.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=jSe(e);return n&&Boe(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){Boe(t.state,e)},class:"cm-cursorLayer"});function Boe(e,t){t.style.animationDuration=e.facet(tE).cursorBlinkRate+"ms"}const Tlt=NSe({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:$_.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||jSe(e)},class:"cm-selectionLayer"}),xH={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};VSe&&(xH[".cm-line"].caretColor="transparent !important",xH[".cm-content"]={caretColor:"transparent !important"});const Plt=E1.highest(ar.theme(xH));function Foe(e,t,n,r,i){t.lastIndex=0;for(let o=e.iterRange(n,r),a=n,s;!o.next().done;a+=o.value.length)if(!o.lineBreak)for(;s=t.exec(o.value);)i(a+s.index,s)}function Dlt(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}class Rlt{constructor(t){const{regexp:n,decoration:r,decorate:i,boundary:o,maxLength:a=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(s,l,u,c)=>i(c,u,u+s[0].length,s,l);else if(typeof r=="function")this.addMatch=(s,l,u,c)=>{let d=r(s,l,u);d&&c(u,u+s[0].length,d)};else if(r)this.addMatch=(s,l,u,c)=>c(u,u+s[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=a}createDeco(t){let n=new DO,r=n.add.bind(n);for(let{from:i,to:o}of Dlt(t,this.maxLength))Foe(t.state.doc,this.regexp,i,o,(a,s)=>this.addMatch(s,t,a,r));return n.finish()}updateDeco(t,n){let r=1e9,i=-1;return t.docChanged&&t.changes.iterChanges((o,a,s,l)=>{l>t.view.viewport.from&&s<t.view.viewport.to&&(r=Math.min(s,r),i=Math.max(l,i))}),t.viewportChanged||i-r>1e3?this.createDeco(t.view):i>-1?this.updateRange(t.view,n.map(t.changes),r,i):n}updateRange(t,n,r,i){for(let o of t.visibleRanges){let a=Math.max(o.from,r),s=Math.min(o.to,i);if(s>a){let l=t.state.doc.lineAt(a),u=l.to<s?t.state.doc.lineAt(s):l,c=Math.max(o.from,l.from),d=Math.min(o.to,u.to);if(this.boundary){for(;a>l.from;a--)if(this.boundary.test(l.text[a-1-l.from])){c=a;break}for(;s<u.to;s++)if(this.boundary.test(u.text[s-u.from])){d=s;break}}let h=[],f,g=(b,v,m)=>h.push(m.range(b,v));if(l==u)for(this.regexp.lastIndex=c-l.from;(f=this.regexp.exec(l.text))&&f.index<d-l.from;)this.addMatch(f,t,f.index+l.from,g);else Foe(t.state.doc,this.regexp,c,d,(b,v)=>this.addMatch(v,t,b,g));n=n.update({filterFrom:c,filterTo:d,filter:(b,v)=>b<c||v>d,add:h})}}return n}}const SH=/x/.unicode!=null?"gu":"g",$lt=new RegExp(`[\0-\b
|
|
--\u2028\u2029\uFEFF-]`,SH),Mlt={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let uN=null;function Llt(){var e;if(uN==null&&typeof document<"u"&&document.body){let t=document.body.style;uN=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return uN||!1}const M3=ir.define({combine(e){let t=jL(e,{render:null,specialChars:$lt,addSpecialChars:null});return(t.replaceTabs=!Llt())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,SH)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,SH)),t}});function Blt(e={}){return[M3.of(e),Flt()]}let Noe=null;function Flt(){return Noe||(Noe=ud.fromClass(class{constructor(e){this.view=e,this.decorations=na.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(M3)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Rlt({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,o=jd(t[0],0);if(o==9){let a=i.lineAt(r),s=n.state.tabSize,l=Wp(a.text,s,r-a.from);return na.replace({widget:new Wlt((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=na.replace({widget:new jlt(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(M3);e.startState.facet(M3)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const Nlt="•";function Vlt(e){return e>=32?Nlt:e==10?"":String.fromCharCode(9216+e)}class jlt extends _1{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=Vlt(this.code),r=t.state.phrase("Control character")+" "+(Mlt[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let o=document.createElement("span");return o.textContent=n,o.title=r,o.setAttribute("aria-label",r),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class Wlt extends _1{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}class Hlt extends _1{constructor(t){super(),this.content=t}toDOM(){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?t.setAttribute("aria-label","placeholder "+this.content):t.setAttribute("aria-hidden","true"),t}coordsAt(t){let n=t.firstChild?RO(t.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(t.parentNode),i=WL(n[0],r.direction!="rtl"),o=parseInt(r.lineHeight);return i.bottom-i.top>o*1.5?{left:i.left,right:i.right,top:i.top,bottom:i.top+o}:i}ignoreEvent(){return!1}}function zlt(e){return ud.fromClass(class{constructor(t){this.view=t,this.placeholder=e?na.set([na.widget({widget:new Hlt(e),side:1}).range(0)]):na.none}get decorations(){return this.view.state.doc.length?na.none:this.placeholder}},{decorations:t=>t.decorations})}const yA="-10000px";class Zlt{constructor(t,n,r){this.facet=n,this.createTooltipView=r,this.input=t.state.facet(n),this.tooltips=this.input.filter(i=>i),this.tooltipViews=this.tooltips.map(r)}update(t,n){var r;let i=t.state.facet(this.facet),o=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let a=[],s=n?[]:null;for(let l=0;l<o.length;l++){let u=o[l],c=-1;if(u){for(let d=0;d<this.tooltips.length;d++){let h=this.tooltips[d];h&&h.create==u.create&&(c=d)}if(c<0)a[l]=this.createTooltipView(u),s&&(s[l]=!!u.above);else{let d=a[l]=this.tooltipViews[c];s&&(s[l]=n[c]),d.update&&d.update(t)}}}for(let l of this.tooltipViews)a.indexOf(l)<0&&(l.dom.remove(),(r=l.destroy)===null||r===void 0||r.call(l));return n&&(s.forEach((l,u)=>n[u]=l),n.length=s.length),this.input=i,this.tooltips=o,this.tooltipViews=a,!0}}function Glt(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const cN=ir.define({combine:e=>{var t,n,r;return{position:zn.ios?"absolute":((t=e.find(i=>i.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||Glt}}}),Voe=new WeakMap,WSe=ud.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(cN);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new Zlt(e,HSe,n=>this.createTooltip(n)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(cN);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",t.dom.appendChild(n)}return t.dom.style.position=this.position,t.dom.style.top=yA,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),(e=n.destroy)===null||e===void 0||e.call(n);this.parent&&this.container.remove(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(zn.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==yA&&i.style.left=="0px"){let o=i.getBoundingClientRect();r=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(t=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((i,o)=>{let a=this.manager.tooltipViews[o];return a.getCoords?a.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(cN).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let s of this.manager.tooltipViews)s.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:o}=e,a=[];for(let s=0;s<this.manager.tooltips.length;s++){let l=this.manager.tooltips[s],u=this.manager.tooltipViews[s],{dom:c}=u,d=e.pos[s],h=e.size[s];if(!d||d.bottom<=Math.max(n.top,r.top)||d.top>=Math.min(n.bottom,r.bottom)||d.right<Math.max(n.left,r.left)-.1||d.left>Math.min(n.right,r.right)+.1){c.style.top=yA;continue}let f=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,g=f?7:0,b=h.right-h.left,v=(t=Voe.get(u))!==null&&t!==void 0?t:h.bottom-h.top,m=u.offset||Ult,w=this.view.textDirection==ra.LTR,k=h.width>r.right-r.left?w?r.left:r.right-h.width:w?Math.min(d.left-(f?14:0)+m.x,r.right-b):Math.max(r.left,d.left-b+(f?14:0)-m.x),T=this.above[s];!l.strictSide&&(T?d.top-(h.bottom-h.top)-m.y<r.top:d.bottom+(h.bottom-h.top)+m.y>r.bottom)&&T==r.bottom-d.bottom>d.top-r.top&&(T=this.above[s]=!T);let S=(T?d.top-r.top:r.bottom-d.bottom)-g;if(S<v&&u.resize!==!1){if(S<this.view.defaultLineHeight){c.style.top=yA;continue}Voe.set(u,v),c.style.height=(v=S)/o+"px"}else c.style.height&&(c.style.height="");let I=T?d.top-v-g-m.y:d.bottom+g+m.y,O=k+b;if(u.overlap!==!0)for(let y of a)y.left<O&&y.right>k&&y.top<I+v&&y.bottom>I&&(I=T?y.top-v-2-g:y.bottom+g+2);if(this.position=="absolute"?(c.style.top=(I-e.parent.top)/o+"px",c.style.left=(k-e.parent.left)/i+"px"):(c.style.top=I/o+"px",c.style.left=k/i+"px"),f){let y=d.left+(w?m.x:-m.x)-(k+14-7);f.style.left=y/i+"px"}u.overlap!==!0&&a.push({left:k,top:I,right:O,bottom:I+v}),c.classList.toggle("cm-tooltip-above",T),c.classList.toggle("cm-tooltip-below",!T),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=yA}},{eventObservers:{scroll(){this.maybeMeasure()}}}),Qlt=ar.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Ult={x:0,y:0},HSe=ir.define({enables:[WSe,Qlt]});function zSe(e,t){let n=e.plugin(WSe);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}class MO extends Jb{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}MO.prototype.elementClass="";MO.prototype.toDOM=void 0;MO.prototype.mapMode=Rl.TrackBefore;MO.prototype.startSide=MO.prototype.endSide=-1;MO.prototype.point=!0;const ZSe=1024;let Xlt=0;class zc{constructor(t,n){this.from=t,this.to=n}}class Ir{constructor(t={}){this.id=Xlt++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=Xa.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}Ir.closedBy=new Ir({deserialize:e=>e.split(" ")});Ir.openedBy=new Ir({deserialize:e=>e.split(" ")});Ir.group=new Ir({deserialize:e=>e.split(" ")});Ir.isolate=new Ir({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});Ir.contextHash=new Ir({perNode:!0});Ir.lookAhead=new Ir({perNode:!0});Ir.mounted=new Ir({perNode:!0});class nE{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[Ir.mounted.id]}}const Ylt=Object.create(null);class Xa{constructor(t,n,r,i=0){this.name=t,this.props=n,this.id=r,this.flags=i}static define(t){let n=t.props&&t.props.length?Object.create(null):Ylt,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new Xa(t.name||"",n,t.id,r);if(t.props){for(let o of t.props)if(Array.isArray(o)||(o=o(i)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[o[0].id]=o[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(Ir.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let i of r.split(" "))n[i]=t[r];return r=>{for(let i=r.prop(Ir.group),o=-1;o<(i?i.length:0);o++){let a=n[o<0?r.name:i[o]];if(a)return a}}}}Xa.none=new Xa("",Object.create(null),0,8);class Rx{constructor(t){this.types=t;for(let n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let n=[];for(let r of this.types){let i=null;for(let o of t){let a=o(r);a&&(i||(i=Object.assign({},r.props)),i[a[0].id]=a[1])}n.push(i?new Xa(r.name,i,r.id,r.flags):r)}return new Rx(n)}}const DD=new WeakMap,joe=new WeakMap;var vo;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(vo||(vo={}));class ai{constructor(t,n,r,i,o){if(this.type=t,this.children=n,this.positions=r,this.length=i,this.props=null,o&&o.length){this.props=Object.create(null);for(let[a,s]of o)this.props[typeof a=="number"?a:a.id]=s}}toString(){let t=nE.get(this);if(t&&!t.overlay)return t.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(t=0){return new c5(this.topNode,t)}cursorAt(t,n=0,r=0){let i=DD.get(this)||this.topNode,o=new c5(i);return o.moveTo(t,n),DD.set(this,o._tree),o}get topNode(){return new sl(this,0,0,null)}resolve(t,n=0){let r=rE(DD.get(this)||this.topNode,t,n,!1);return DD.set(this,r),r}resolveInner(t,n=0){let r=rE(joe.get(this)||this.topNode,t,n,!0);return joe.set(this,r),r}resolveStack(t,n=0){return Jlt(this,t,n)}iterate(t){let{enter:n,leave:r,from:i=0,to:o=this.length}=t,a=t.mode||0,s=(a&vo.IncludeAnonymous)>0;for(let l=this.cursor(a|vo.IncludeAnonymous);;){let u=!1;if(l.from<=o&&l.to>=i&&(!s&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(s||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:IX(Xa.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new ai(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new ai(Xa.none,n,r,i)))}static build(t){return eut(t)}}ai.empty=new ai(Xa.none,[],[],0);class SX{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new SX(this.buffer,this.index)}}class g0{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return Xa.none}toString(){let t=[];for(let n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}childString(t){let n=this.buffer[t],r=this.buffer[t+3],i=this.set.types[n],o=i.name;if(/\W/.test(o)&&!i.isError&&(o=JSON.stringify(o)),t+=4,r==t)return o;let a=[];for(;t<r;)a.push(this.childString(t)),t=this.buffer[t+3];return o+"("+a.join(",")+")"}findChild(t,n,r,i,o){let{buffer:a}=this,s=-1;for(let l=t;l!=n&&!(GSe(o,i,a[l+1],a[l+2])&&(s=l,r>0));l=a[l+3]);return s}slice(t,n,r){let i=this.buffer,o=new Uint16Array(n-t),a=0;for(let s=t,l=0;s<n;){o[l++]=i[s++],o[l++]=i[s++]-r;let u=o[l++]=i[s++]-r;o[l++]=i[s++]-t,a=Math.max(a,u)}return new g0(o,a,this.set)}}function GSe(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function rE(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let a=!r&&e instanceof sl&&e.index<0?null:e.parent;if(!a)return e;e=a}let o=r?0:vo.IgnoreOverlays;if(r)for(let a=e,s=a.parent;s;a=s,s=a.parent)a instanceof sl&&a.index<0&&((i=s.enter(t,n,o))===null||i===void 0?void 0:i.from)!=a.from&&(e=s);for(;;){let a=e.enter(t,n,o);if(!a)return e;e=a}}class QSe{cursor(t=0){return new c5(this,t)}getChild(t,n=null,r=null){let i=Woe(this,t,n,r);return i.length?i[0]:null}getChildren(t,n=null,r=null){return Woe(this,t,n,r)}resolve(t,n=0){return rE(this,t,n,!1)}resolveInner(t,n=0){return rE(this,t,n,!0)}matchContext(t){return AH(this,t)}enterUnfinishedNodesBefore(t){let n=this.childBefore(t),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i}return r}get node(){return this}get next(){return this.parent}}class sl extends QSe{constructor(t,n,r,i){super(),this._tree=t,this.from=n,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,n,r,i,o=0){for(let a=this;;){for(let{children:s,positions:l}=a._tree,u=n>0?s.length:-1;t!=u;t+=n){let c=s[t],d=l[t]+a.from;if(GSe(i,r,d,d+c.length)){if(c instanceof g0){if(o&vo.ExcludeBuffers)continue;let h=c.findChild(0,c.buffer.length,n,r-d,i);if(h>-1)return new yp(new Klt(a,c,t,d),null,h)}else if(o&vo.IncludeAnonymous||!c.type.isAnonymous||AX(c)){let h;if(!(o&vo.IgnoreMounts)&&(h=nE.get(c))&&!h.overlay)return new sl(h.tree,d,t,a);let f=new sl(c,d,t,a);return o&vo.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(o&vo.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?t=a.index+n:t=n<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&vo.IgnoreOverlays)&&(i=nE.get(this._tree))&&i.overlay){let o=t-this.from;for(let{from:a,to:s}of i.overlay)if((n>0?a<=o:a<o)&&(n<0?s>=o:s>o))return new sl(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Woe(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(n!=null){for(;!i.type.is(n);)if(!i.nextSibling())return o}for(;;){if(r!=null&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return r==null?o:[]}}function AH(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class Klt{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class yp extends QSe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return o<0?null:new yp(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&vo.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return o<0?null:new yp(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new yp(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new yp(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,o=r.buffer[this.index+3];if(o>i){let a=r.buffer[this.index+1];t.push(r.slice(i,o,a)),n.push(0)}return new ai(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function USe(e){if(!e.length)return null;let t=0,n=e[0];for(let o=1;o<e.length;o++){let a=e[o];(a.from>n.from||a.to<n.to)&&(n=a,t=o)}let r=n instanceof sl&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new qlt(i,n)}class qlt{constructor(t,n){this.heads=t,this.node=n}get next(){return USe(this.heads)}}function Jlt(e,t,n){let r=e.resolveInner(t,n),i=null;for(let o=r instanceof sl?r:r.context.parent;o;o=o.parent)if(o.index<0){let a=o.parent;(i||(i=[r])).push(a.resolve(t,n)),o=a}else{let a=nE.get(o.tree);if(a&&a.overlay&&a.overlay[0].from<=t&&a.overlay[a.overlay.length-1].to>=t){let s=new sl(a.tree,a.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(rE(s,t,n,!1))}}return i?USe(i):r}class c5{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof sl)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}yield(t){return t?t instanceof sl?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,o=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&vo.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&vo.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&vo.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index<i.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(i.buffer.buffer[o+3]<this.index)return!1;({index:n,parent:r}=i)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let o=n+t,a=t<0?-1:r._tree.children.length;o!=a;o+=t){let s=r._tree.children[o];if(this.mode&vo.IncludeAnonymous||s instanceof g0||!s.type.isAnonymous||AX(s))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer)e:for(let i=this.index,o=this.stack.length;o>=0;){for(let a=t;a;a=a._parent)if(a.index==i){if(i==this.index)return a;n=a,r=o+1;break e}i=this.stack[--o]}for(let i=r;i<this.stack.length;i++)n=new yp(this.buffer,n,this.stack[i]);return this.bufferNode=new yp(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,n){for(let r=0;;){let i=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;i&&n&&n(this),i=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,i=!0}}}matchContext(t){if(!this.buffer)return AH(this.node,t);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=t.length-1,o=this.stack.length-1;i>=0;o--){if(o<0)return AH(this.node,t,i);let a=r[n.buffer[this.stack[o]]];if(!a.isAnonymous){if(t[i]&&t[i]!=a.name)return!1;i--}}return!0}}function AX(e){return e.children.some(t=>t instanceof g0||!t.type.isAnonymous||AX(t))}function eut(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=ZSe,reused:o=[],minRepeatType:a=r.types.length}=e,s=Array.isArray(n)?new SX(n,n.length):n,l=r.types,u=0,c=0;function d(S,I,O,y,_,A){let{id:R,start:D,end:C,size:x}=s,P=c;for(;x<0;)if(s.next(),x==-1){let Q=o[R];O.push(Q),y.push(D-S);return}else if(x==-3){u=R;return}else if(x==-4){c=R;return}else throw new RangeError(`Unrecognized record size: ${x}`);let $=l[R],L,V,H=D-S;if(C-D<=i&&(V=v(s.pos-I,_))){let Q=new Uint16Array(V.size-V.skip),U=s.pos-V.size,K=Q.length;for(;s.pos>U;)K=m(V.start,Q,K);L=new g0(Q,C-V.start,r),H=V.start-S}else{let Q=s.pos-x;s.next();let U=[],K=[],J=R>=a?R:-1,ue=0,ee=C;for(;s.pos>Q;)J>=0&&s.id==J&&s.size>=0?(s.end<=ee-i&&(g(U,K,D,ue,s.end,ee,J,P),ue=U.length,ee=s.end),s.next()):A>2500?h(D,Q,U,K):d(D,Q,U,K,J,A+1);if(J>=0&&ue>0&&ue<U.length&&g(U,K,D,ue,D,ee,J,P),U.reverse(),K.reverse(),J>-1&&ue>0){let N=f($);L=IX($,U,K,0,U.length,0,C-D,N,N)}else L=b($,U,K,C-D,P-C)}O.push(L),y.push(H)}function h(S,I,O,y){let _=[],A=0,R=-1;for(;s.pos>I;){let{id:D,start:C,end:x,size:P}=s;if(P>4)s.next();else{if(R>-1&&C<R)break;R<0&&(R=x-i),_.push(D,C,x),A++,s.next()}}if(A){let D=new Uint16Array(A*4),C=_[_.length-2];for(let x=_.length-3,P=0;x>=0;x-=3)D[P++]=_[x],D[P++]=_[x+1]-C,D[P++]=_[x+2]-C,D[P++]=P;O.push(new g0(D,_[2]-C,r)),y.push(C-S)}}function f(S){return(I,O,y)=>{let _=0,A=I.length-1,R,D;if(A>=0&&(R=I[A])instanceof ai){if(!A&&R.type==S&&R.length==y)return R;(D=R.prop(Ir.lookAhead))&&(_=O[A]+R.length+D)}return b(S,I,O,y,_)}}function g(S,I,O,y,_,A,R,D){let C=[],x=[];for(;S.length>y;)C.push(S.pop()),x.push(I.pop()+O-_);S.push(b(r.types[R],C,x,A-_,D-A)),I.push(_-O)}function b(S,I,O,y,_=0,A){if(u){let R=[Ir.contextHash,u];A=A?[R].concat(A):[R]}if(_>25){let R=[Ir.lookAhead,_];A=A?[R].concat(A):[R]}return new ai(S,I,O,y,A)}function v(S,I){let O=s.fork(),y=0,_=0,A=0,R=O.end-i,D={size:0,start:0,skip:0};e:for(let C=O.pos-S;O.pos>C;){let x=O.size;if(O.id==I&&x>=0){D.size=y,D.start=_,D.skip=A,A+=4,y+=4,O.next();continue}let P=O.pos-x;if(x<0||P<C||O.start<R)break;let $=O.id>=a?4:0,L=O.start;for(O.next();O.pos>P;){if(O.size<0)if(O.size==-3)$+=4;else break e;else O.id>=a&&($+=4);O.next()}_=L,y+=x,A+=$}return(I<0||y==S)&&(D.size=y,D.start=_,D.skip=A),D.size>4?D:void 0}function m(S,I,O){let{id:y,start:_,end:A,size:R}=s;if(s.next(),R>=0&&y<a){let D=O;if(R>4){let C=s.pos-(R-4);for(;s.pos>C;)O=m(S,I,O)}I[--O]=D,I[--O]=A-S,I[--O]=_-S,I[--O]=y}else R==-3?u=y:R==-4&&(c=y);return O}let w=[],k=[];for(;s.pos>0;)d(e.start||0,e.bufferStart||0,w,k,-1,0);let T=(t=e.length)!==null&&t!==void 0?t:w.length?k[0]+w[0].length:0;return new ai(l[e.topID],w.reverse(),k.reverse(),T)}const Hoe=new WeakMap;function L3(e,t){if(!e.isAnonymous||t instanceof g0||t.type!=e)return 1;let n=Hoe.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof ai)){n=1;break}n+=L3(e,r)}Hoe.set(t,n)}return n}function IX(e,t,n,r,i,o,a,s,l){let u=0;for(let g=r;g<i;g++)u+=L3(e,t[g]);let c=Math.ceil(u*1.5/8),d=[],h=[];function f(g,b,v,m,w){for(let k=v;k<m;){let T=k,S=b[k],I=L3(e,g[k]);for(k++;k<m;k++){let O=L3(e,g[k]);if(I+O>=c)break;I+=O}if(k==T+1){if(I>c){let O=g[T];f(O.children,O.positions,0,O.children.length,b[T]+w);continue}d.push(g[T])}else{let O=b[k-1]+g[k-1].length-S;d.push(IX(e,g,b,T,k,S,O,null,l))}h.push(S+w-o)}}return f(t,n,r,i,0),(s||l)(d,h,a)}class XSe{constructor(){this.map=new WeakMap}setBuffer(t,n,r){let i=this.map.get(t);i||this.map.set(t,i=new Map),i.set(n,r)}getBuffer(t,n){let r=this.map.get(t);return r&&r.get(n)}set(t,n){t instanceof yp?this.setBuffer(t.context.buffer,t.index,n):t instanceof sl&&this.map.set(t.tree,n)}get(t){return t instanceof yp?this.getBuffer(t.context.buffer,t.index):t instanceof sl?this.map.get(t.tree):void 0}cursorSet(t,n){t.buffer?this.setBuffer(t.buffer.buffer,t.index,n):this.map.set(t.tree,n)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class dg{constructor(t,n,r,i,o=!1,a=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(o?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new dg(0,t.length,t,0,!1,r)];for(let o of n)o.to>t.length&&i.push(o);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],o=1,a=t.length?t[0]:null;for(let s=0,l=0,u=0;;s++){let c=s<n.length?n[s]:null,d=c?c.fromA:1e9;if(d-l>=r)for(;a&&a.from<d;){let h=a;if(l>=h.from||d<=h.to||u){let f=Math.max(h.from,l)-u,g=Math.min(h.to,d)-u;h=f>=g?null:new dg(f,g,h.tree,h.offset+u,s>0,!!c)}if(h&&i.push(h),a.to>d)break;a=o<t.length?t[o++]:null}if(!c)break;l=c.toA,u=c.toA-c.toB}return i}}class ZL{startParse(t,n,r){return typeof t=="string"&&(t=new tut(t)),r=r?r.length?r.map(i=>new zc(i.from,i.to)):[new zc(0,0)]:[new zc(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let o=i.advance();if(o)return o}}}class tut{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}function YSe(e){return(t,n,r,i)=>new rut(t,e,n,r,i)}class zoe{constructor(t,n,r,i,o){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=o}}function Zoe(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class nut{constructor(t,n,r,i,o,a,s){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=o,this.target=a,this.prev=s,this.depth=0,this.ranges=[]}}const IH=new Ir({perNode:!0});class rut{constructor(t,n,r,i,o){this.nest=n,this.input=r,this.fragments=i,this.ranges=o,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new ai(r.type,r.children,r.positions,r.length,r.propValues.concat([[IH,this.stoppedAt]]))),r}let t=this.inner[this.innerDone],n=t.parse.advance();if(n){this.innerDone++;let r=Object.assign(Object.create(null),t.target.props);r[Ir.mounted.id]=new nE(n,t.overlay,t.parser),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].from<t&&(t=Math.min(t,this.inner[n].parse.parsedPos));return t}stopAt(t){if(this.stoppedAt=t,this.baseParse)this.baseParse.stopAt(t);else for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].parse.stopAt(t)}startInner(){let t=new aut(this.fragments),n=null,r=null,i=new c5(new sl(this.baseTree,this.ranges[0].from,0,null),vo.IncludeAnonymous|vo.IgnoreMounts);e:for(let o,a;;){let s=!0,l;if(this.stoppedAt!=null&&i.from>=this.stoppedAt)s=!1;else if(t.hasNode(i)){if(n){let u=n.mounts.find(c=>c.frag.from<=i.from&&c.frag.to>=i.to&&c.mount.overlay);if(u)for(let c of u.mount.overlay){let d=c.from+u.pos,h=c.to+u.pos;d>=i.from&&h<=i.to&&!n.ranges.some(f=>f.from<h&&f.to>d)&&n.ranges.push({from:d,to:h})}}s=!1}else if(r&&(a=iut(r.ranges,i.from,i.to)))s=a!=2;else if(!i.type.isAnonymous&&(o=this.nest(i,this.input))&&(i.from<i.to||!o.overlay)){i.tree||out(i);let u=t.findMounts(i.from,o.parser);if(typeof o.overlay=="function")n=new nut(o.parser,o.overlay,u,this.inner.length,i.from,i.tree,n);else{let c=Uoe(this.ranges,o.overlay||(i.from<i.to?[new zc(i.from,i.to)]:[]));c.length&&Zoe(c),(c.length||!o.overlay)&&this.inner.push(new zoe(o.parser,c.length?o.parser.startParse(this.input,Xoe(u,c),c):o.parser.startParse(""),o.overlay?o.overlay.map(d=>new zc(d.from-i.from,d.to-i.from)):null,i.tree,c.length?c[0].from:i.from)),o.overlay?c.length&&(r={ranges:c,depth:0,prev:r}):s=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new zc(i.from,i.to)),l.from<l.to&&n.ranges.push(l));if(s&&i.firstChild())n&&n.depth++,r&&r.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(n&&!--n.depth){let u=Uoe(this.ranges,n.ranges);u.length&&(Zoe(u),this.inner.splice(n.index,0,new zoe(n.parser,n.parser.startParse(this.input,Xoe(n.mounts,u),u),n.ranges.map(c=>new zc(c.from-n.start,c.to-n.start)),n.target,u[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function iut(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function Goe(e,t,n,r,i,o){if(t<n){let a=e.buffer[t+1];r.push(e.slice(t,n,a)),i.push(a-o)}}function out(e){let{node:t}=e,n=[],r=t.context.buffer;do n.push(e.index),e.parent();while(!e.tree);let i=e.tree,o=i.children.indexOf(r),a=i.children[o],s=a.buffer,l=[o];function u(c,d,h,f,g,b){let v=n[b],m=[],w=[];Goe(a,c,v,m,w,f);let k=s[v+1],T=s[v+2];l.push(m.length);let S=b?u(v+4,s[v+3],a.set.types[s[v]],k,T-k,b-1):t.toTree();return m.push(S),w.push(k-f),Goe(a,s[v+3],d,m,w,f),new ai(h,m,w,g)}i.children[o]=u(0,s.length,Xa.none,0,a.length,n.length-1);for(let c of l){let d=e.tree.children[c],h=e.tree.positions[c];e.yield(new sl(d,h+e.from,c,e._tree))}}class Qoe{constructor(t,n){this.offset=n,this.done=!1,this.cursor=t.cursor(vo.IncludeAnonymous|vo.IgnoreMounts)}moveTo(t){let{cursor:n}=this,r=t-this.offset;for(;!this.done&&n.from<r;)n.to>=t&&n.enter(r,1,vo.IgnoreOverlays|vo.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==t.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof ai)n=n.children[0];else break}return!1}}let aut=class{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(t=n.tree.prop(IH))!==null&&t!==void 0?t:n.to,this.inner=new Qoe(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(IH))!==null&&e!==void 0?e:t.to,this.inner=new Qoe(t.tree,-t.offset)}}findMounts(e,t){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let i=this.inner.cursor.node;i;i=i.parent){let o=(n=i.tree)===null||n===void 0?void 0:n.prop(Ir.mounted);if(o&&o.parser==t)for(let a=this.fragI;a<this.fragments.length;a++){let s=this.fragments[a];if(s.from>=i.to)break;s.tree==this.curFrag.tree&&r.push({frag:s,pos:i.from-s.offset,mount:o})}}}return r}};function Uoe(e,t){let n=null,r=t;for(let i=1,o=0;i<e.length;i++){let a=e[i-1].to,s=e[i].from;for(;o<r.length;o++){let l=r[o];if(l.from>=s)break;l.to<=a||(n||(r=n=t.slice()),l.from<a?(n[o]=new zc(l.from,a),l.to>s&&n.splice(o+1,0,new zc(s,l.to))):l.to>s?n[o--]=new zc(s,l.to):n.splice(o--,1))}}return r}function sut(e,t,n,r){let i=0,o=0,a=!1,s=!1,l=-1e9,u=[];for(;;){let c=i==e.length?1e9:a?e[i].to:e[i].from,d=o==t.length?1e9:s?t[o].to:t[o].from;if(a!=s){let h=Math.max(l,n),f=Math.min(c,d,r);h<f&&u.push(new zc(h,f))}if(l=Math.min(c,d),l==1e9)break;c==l&&(a?(a=!1,i++):a=!0),d==l&&(s?(s=!1,o++):s=!0)}return u}function Xoe(e,t){let n=[];for(let{pos:r,mount:i,frag:o}of e){let a=r+(i.overlay?i.overlay[0].from:0),s=a+i.tree.length,l=Math.max(o.from,a),u=Math.min(o.to,s);if(i.overlay){let c=i.overlay.map(h=>new zc(h.from+r,h.to+r)),d=sut(t,c,l,u);for(let h=0,f=l;;h++){let g=h==d.length,b=g?u:d[h].from;if(b>f&&n.push(new dg(f,b,i.tree,-a,o.from>=f||o.openStart,o.to<=b||o.openEnd)),g)break;f=d[h].to}}else n.push(new dg(l,u,i.tree,-a,o.from>=a||o.openStart,o.to<=s||o.openEnd))}return n}let lut=0,Uf=class KSe{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=lut++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new KSe([],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(){let t=new d5;return n=>n.modified.indexOf(t)>-1?n:d5.get(n.base||n,n.modified.concat(t).sort((r,i)=>r.id-i.id))}},uut=0;class d5{constructor(){this.instances=[],this.id=uut++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(s=>s.base==t&&cut(n,s.modified));if(r)return r;let i=[],o=new Uf(i,t,n);for(let s of n)s.instances.push(o);let a=dut(n);for(let s of t.set)if(!s.modified.length)for(let l of a)i.push(d5.get(s,l));return o}}function cut(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function dut(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((n,r)=>r.length-n.length)}function $x(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let o=[],a=2,s=i;for(let d=0;;){if(s=="..."&&d>0&&d+3==i.length){a=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!h)throw new RangeError("Invalid path: "+i);if(o.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),d+=h[0].length,d==i.length)break;let f=i[d++];if(d==i.length&&f=="!"){a=0;break}if(f!="/")throw new RangeError("Invalid path: "+i);s=i.slice(d)}let l=o.length-1,u=o[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new h5(r,a,l>0?o.slice(0,l):null);t[u]=c.sort(t[u])}}return qSe.add(t)}const qSe=new Ir;class h5{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}h5.empty=new h5([],2,null);function JSe(e,t){let n=Object.create(null);for(let o of e)if(!Array.isArray(o.tag))n[o.tag.id]=o.class;else for(let a of o.tag)n[a.id]=o.class;let{scope:r,all:i=null}=t||{};return{style:o=>{let a=i;for(let s of o)for(let l of s.set){let u=n[l.id];if(u){a=a?a+" "+u:u;break}}return a},scope:r}}function hut(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function put(e,t,n,r=0,i=e.length){let o=new fut(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}class fut{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,o){let{type:a,from:s,to:l}=t;if(s>=r||l<=n)return;a.isTop&&(o=this.highlighters.filter(f=>!f.scope||f.scope(a)));let u=i,c=gut(t)||h5.empty,d=hut(o,c.tags);if(d&&(u&&(u+=" "),u+=d,c.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(n,s),u),c.opaque)return;let h=t.tree&&t.tree.prop(Ir.mounted);if(h&&h.overlay){let f=t.node.enter(h.overlay[0].from+s,1),g=this.highlighters.filter(v=>!v.scope||v.scope(h.tree.type)),b=t.firstChild();for(let v=0,m=s;;v++){let w=v<h.overlay.length?h.overlay[v]:null,k=w?w.from+s:l,T=Math.max(n,m),S=Math.min(r,k);if(T<S&&b)for(;t.from<S&&(this.highlightRange(t,T,S,i,o),this.startSpan(Math.min(S,t.to),u),!(t.to>=k||!t.nextSibling())););if(!w||k>r)break;m=w.to+s,m>n&&(this.highlightRange(f.cursor(),Math.max(n,w.from+s),Math.min(r,m),"",g),this.startSpan(Math.min(r,m),u))}b&&t.parent()}else if(t.firstChild()){h&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,o),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}function gut(e){let t=e.type.prop(qSe);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const Sn=Uf.define,RD=Sn(),iv=Sn(),Yoe=Sn(iv),Koe=Sn(iv),ov=Sn(),$D=Sn(ov),dN=Sn(ov),Kh=Sn(),xy=Sn(Kh),Uh=Sn(),Xh=Sn(),kH=Sn(),bA=Sn(kH),MD=Sn(),Ne={comment:RD,lineComment:Sn(RD),blockComment:Sn(RD),docComment:Sn(RD),name:iv,variableName:Sn(iv),typeName:Yoe,tagName:Sn(Yoe),propertyName:Koe,attributeName:Sn(Koe),className:Sn(iv),labelName:Sn(iv),namespace:Sn(iv),macroName:Sn(iv),literal:ov,string:$D,docString:Sn($D),character:Sn($D),attributeValue:Sn($D),number:dN,integer:Sn(dN),float:Sn(dN),bool:Sn(ov),regexp:Sn(ov),escape:Sn(ov),color:Sn(ov),url:Sn(ov),keyword:Uh,self:Sn(Uh),null:Sn(Uh),atom:Sn(Uh),unit:Sn(Uh),modifier:Sn(Uh),operatorKeyword:Sn(Uh),controlKeyword:Sn(Uh),definitionKeyword:Sn(Uh),moduleKeyword:Sn(Uh),operator:Xh,derefOperator:Sn(Xh),arithmeticOperator:Sn(Xh),logicOperator:Sn(Xh),bitwiseOperator:Sn(Xh),compareOperator:Sn(Xh),updateOperator:Sn(Xh),definitionOperator:Sn(Xh),typeOperator:Sn(Xh),controlOperator:Sn(Xh),punctuation:kH,separator:Sn(kH),bracket:bA,angleBracket:Sn(bA),squareBracket:Sn(bA),paren:Sn(bA),brace:Sn(bA),content:Kh,heading:xy,heading1:Sn(xy),heading2:Sn(xy),heading3:Sn(xy),heading4:Sn(xy),heading5:Sn(xy),heading6:Sn(xy),contentSeparator:Sn(Kh),list:Sn(Kh),quote:Sn(Kh),emphasis:Sn(Kh),strong:Sn(Kh),link:Sn(Kh),monospace:Sn(Kh),strikethrough:Sn(Kh),inserted:Sn(),deleted:Sn(),changed:Sn(),invalid:Sn(),meta:MD,documentMeta:Sn(MD),annotation:Sn(MD),processingInstruction:Sn(MD),definition:Uf.defineModifier(),constant:Uf.defineModifier(),function:Uf.defineModifier(),standard:Uf.defineModifier(),local:Uf.defineModifier(),special:Uf.defineModifier()};JSe([{tag:Ne.link,class:"tok-link"},{tag:Ne.heading,class:"tok-heading"},{tag:Ne.emphasis,class:"tok-emphasis"},{tag:Ne.strong,class:"tok-strong"},{tag:Ne.keyword,class:"tok-keyword"},{tag:Ne.atom,class:"tok-atom"},{tag:Ne.bool,class:"tok-bool"},{tag:Ne.url,class:"tok-url"},{tag:Ne.labelName,class:"tok-labelName"},{tag:Ne.inserted,class:"tok-inserted"},{tag:Ne.deleted,class:"tok-deleted"},{tag:Ne.literal,class:"tok-literal"},{tag:Ne.string,class:"tok-string"},{tag:Ne.number,class:"tok-number"},{tag:[Ne.regexp,Ne.escape,Ne.special(Ne.string)],class:"tok-string2"},{tag:Ne.variableName,class:"tok-variableName"},{tag:Ne.local(Ne.variableName),class:"tok-variableName tok-local"},{tag:Ne.definition(Ne.variableName),class:"tok-variableName tok-definition"},{tag:Ne.special(Ne.variableName),class:"tok-variableName2"},{tag:Ne.definition(Ne.propertyName),class:"tok-propertyName tok-definition"},{tag:Ne.typeName,class:"tok-typeName"},{tag:Ne.namespace,class:"tok-namespace"},{tag:Ne.className,class:"tok-className"},{tag:Ne.macroName,class:"tok-macroName"},{tag:Ne.propertyName,class:"tok-propertyName"},{tag:Ne.operator,class:"tok-operator"},{tag:Ne.comment,class:"tok-comment"},{tag:Ne.meta,class:"tok-meta"},{tag:Ne.invalid,class:"tok-invalid"},{tag:Ne.punctuation,class:"tok-punctuation"}]);var hN;const Av=new Ir;function GL(e){return ir.define({combine:e?t=>t.concat(e):void 0})}const kX=new Ir;class qu{constructor(t,n,r=[],i=""){this.data=t,this.name=i,Ai.prototype.hasOwnProperty("tree")||Object.defineProperty(Ai.prototype,"tree",{get(){return oa(this)}}),this.parser=n,this.extension=[FO.of(this),Ai.languageData.of((o,a,s)=>{let l=qoe(o,a,s),u=l.type.prop(Av);if(!u)return[];let c=o.facet(u),d=l.type.prop(kX);if(d){let h=l.resolve(a-l.from,s);for(let f of d)if(f.test(h,o)){let g=o.facet(f.facet);return f.type=="replace"?g:g.concat(c)}}return c})].concat(r)}isActiveAt(t,n,r=-1){return qoe(t,n,r).type.prop(Av)==this.data}findRegions(t){let n=t.facet(FO);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(o,a)=>{if(o.prop(Av)==this.data){r.push({from:a,to:a+o.length});return}let s=o.prop(Ir.mounted);if(s){if(s.tree.prop(Av)==this.data){if(s.overlay)for(let l of s.overlay)r.push({from:l.from+a,to:l.to+a});else r.push({from:a,to:a+o.length});return}else if(s.overlay){let l=r.length;if(i(s.tree,s.overlay[0].from+a),r.length>l)return}}for(let l=0;l<o.children.length;l++){let u=o.children[l];u instanceof ai&&i(u,o.positions[l]+a)}};return i(oa(t),0),r}get allowsNesting(){return!0}}qu.setState=oo.define();function qoe(e,t,n){let r=e.facet(FO),i=oa(e).topNode;if(!r||r.allowsNesting)for(let o=i;o;o=o.enter(t,n,vo.ExcludeBuffers))o.type.isTop&&(i=o);return i}class LO extends qu{constructor(t,n,r){super(t,n,[],r),this.parser=n}static define(t){let n=GL(t.languageData);return new LO(n,t.parser.configure({props:[Av.add(r=>r.isTop?n:void 0)]}),t.name)}configure(t,n){return new LO(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function oa(e){let t=e.field(qu.state,!1);return t?t.tree:ai.empty}class mut{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,n){let r=this.cursorPos-this.string.length;return t<r||n>=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}let wA=null;class n1{constructor(t,n,r=[],i,o,a,s,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=o,this.viewport=a,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new n1(t,n,[],ai.empty,0,r,[],null)}startParse(){return this.parser.startParse(new mut(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=ai.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof t=="number"){let i=Date.now()+t;t=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(dg.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(t())return!1}})}takeTree(){let t,n;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(dg.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=wA;wA=this;try{return t()}finally{wA=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=Joe(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:o,viewport:a,skipped:s}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((u,c,d,h)=>l.push({fromA:u,toA:c,fromB:d,toB:h})),r=dg.applyChanges(r,l),i=ai.empty,o=0,a={from:t.mapPos(a.from,-1),to:t.mapPos(a.to,1)},this.skipped.length){s=[];for(let u of this.skipped){let c=t.mapPos(u.from,1),d=t.mapPos(u.to,-1);c<d&&s.push({from:c,to:d})}}}return new n1(this.parser,n,r,i,o,a,s,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let n=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:o}=this.skipped[r];i<t.to&&o>t.from&&(this.fragments=Joe(this.fragments,i,o),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends ZL{createParse(n,r,i){let o=i[0].from,a=i[i.length-1].to;return{parsedPos:o,advance(){let s=wA;if(s){for(let l of i)s.tempSkipped.push(l);t&&(s.scheduleOn=s.scheduleOn?Promise.all([s.scheduleOn,t]):t)}return this.parsedPos=a,new ai(Xa.none,[],[],a-o)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return wA}}function Joe(e,t,n){return dg.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class BO{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new BO(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=n1.create(t.facet(FO).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new BO(r)}}qu.state=tf.define({create:BO.init,update(e,t){for(let n of t.effects)if(n.is(qu.setState))return n.value;return t.startState.facet(FO)!=t.state.facet(FO)?BO.init(t.state):e.apply(t)}});let eAe=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(eAe=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const pN=typeof navigator<"u"&&!((hN=navigator.scheduling)===null||hN===void 0)&&hN.isInputPending?()=>navigator.scheduling.isInputPending():null,vut=ud.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(qu.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(qu.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=eAe(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(qu.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!pN?Math.max(25,e.timeRemaining()-5):1e9),a=i.context.treeLen<r&&n.doc.length>r+1e3,s=i.context.work(()=>pN&&pN()||Date.now()>o,r+(a?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:qu.setState.of(new BO(i.context))})),this.chunkBudget>0&&!(s&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>eh(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),FO=ir.define({combine(e){return e.length?e[0]:null},enables:e=>[qu.state,vut,ar.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class NO{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class Ft{constructor(t,n,r,i,o,a=void 0){this.name=t,this.alias=n,this.extensions=r,this.filename=i,this.loadFunc=o,this.support=a,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:n,support:r}=t;if(!n){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");n=()=>Promise.resolve(r)}return new Ft(t.name,(t.alias||[]).concat(t.name).map(i=>i.toLowerCase()),t.extensions||[],t.filename,n,r)}static matchFilename(t,n){for(let i of t)if(i.filename&&i.filename.test(n))return i;let r=/\.([^.]+)$/.exec(n);if(r){for(let i of t)if(i.extensions.indexOf(r[1])>-1)return i}return null}static matchLanguageName(t,n,r=!0){n=n.toLowerCase();for(let i of t)if(i.alias.some(o=>o==n))return i;if(r)for(let i of t)for(let o of i.alias){let a=n.indexOf(o);if(a>-1&&(o.length>2||!/\w/.test(n[a-1])&&!/\w/.test(n[a+o.length])))return i}return null}}const tAe=ir.define(),Mx=ir.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(n=>n!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function r1(e){let t=e.facet(Mx);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function p5(e,t){let n="",r=e.tabSize,i=e.facet(Mx)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let o=0;o<t;o++)n+=i;return n}function nAe(e,t){e instanceof Ai&&(e=new QL(e));for(let r of e.state.facet(tAe)){let i=r(e,t);if(i!==void 0)return i}let n=oa(e.state);return n.length>=t?yut(e,n,t):null}class QL{constructor(t,n={}){this.state=t,this.options=n,this.unit=r1(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:o}=this.options;return i!=null&&i>=r.from&&i<=r.to?o&&i==t?{text:"",from:t}:(n<0?i<t:i<=t)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(t,n=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:r,from:i}=this.lineAt(t,n);return r.slice(t-i,Math.min(r.length,t+100-i))}column(t,n=1){let{text:r,from:i}=this.lineAt(t,n),o=this.countColumn(r,t-i),a=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return a>-1&&(o+=a-this.countColumn(r,r.search(/\S|$/))),o}countColumn(t,n=t.length){return Wp(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,n),o=this.options.overrideIndentation;if(o){let a=o(i);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const M_=new Ir;function yut(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let o=[];for(let a=i;a!=r.node;a=a.parent)o.push(a);for(let a=o.length-1;a>=0;a--)r={node:o[a],next:r}}return rAe(r,e,n)}function rAe(e,t,n){for(let r=e;r;r=r.next){let i=wut(r.node);if(i)return i(EX.create(t,n,r))}return 0}function but(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function wut(e){let t=e.type.prop(M_);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(Ir.closedBy))){let i=e.lastChild,o=i&&r.indexOf(i.name)>-1;return a=>iAe(a,!0,1,void 0,o&&!but(a)?i.from:void 0)}return e.parent==null?Cut:null}function Cut(){return 0}class EX extends QL{constructor(t,n,r){super(t.state,t.options),this.base=t,this.pos=n,this.context=r}get node(){return this.context.node}static create(t,n,r){return new EX(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let n=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(Out(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return rAe(this.context.next,this.base,this.pos)}}function Out(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function xut(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),a=i==null||i<=o.from?o.to:Math.min(o.to,i);for(let s=n.to;;){let l=t.childAfter(s);if(!l||l==r)return null;if(!l.type.isSkipped)return l.from<a?n:null;s=l.to}}function Sut({closing:e,align:t=!0,units:n=1}){return r=>iAe(r,t,n,e)}function iAe(e,t,n,r,i){let o=e.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==e.pos+a,l=t?xut(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}const Aut=e=>e.baseIndent;function B3({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const Iut=ir.define(),L_=new Ir;function oAe(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}class Lx{constructor(t,n){this.specs=t;let r;function i(s){let l=h0.newName();return(r||(r=Object.create(null)))["."+l]=s,l}const o=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,a=n.scope;this.scope=a instanceof qu?s=>s.prop(Av)==a.data:a?s=>s==a:void 0,this.style=JSe(t.map(s=>({tag:s.tag,class:s.class||i(Object.assign({},s,{tag:null}))})),{all:o}).style,this.module=r?new h0(r):null,this.themeType=n.themeType}static define(t,n){return new Lx(t,n||{})}}const EH=ir.define(),aAe=ir.define({combine(e){return e.length?[e[0]]:null}});function fN(e){let t=e.facet(EH);return t.length?t:e.facet(aAe)}function _X(e,t){let n=[Eut],r;return e instanceof Lx&&(e.module&&n.push(ar.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(aAe.of(e)):r?n.push(EH.computeN([ar.darkTheme],i=>i.facet(ar.darkTheme)==(r=="dark")?[e]:[])):n.push(EH.of(e)),n}class kut{constructor(t){this.markCache=Object.create(null),this.tree=oa(t.state),this.decorations=this.buildDeco(t,fN(t.state))}update(t){let n=oa(t.state),r=fN(t.state),i=r!=fN(t.startState);n.length<t.view.viewport.to&&!i&&n.type==this.tree.type?this.decorations=this.decorations.map(t.changes):(n!=this.tree||t.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r))}buildDeco(t,n){if(!n||!this.tree.length)return na.none;let r=new DO;for(let{from:i,to:o}of t.visibleRanges)put(this.tree,n,(a,s,l)=>{r.add(a,s,this.markCache[l]||(this.markCache[l]=na.mark({class:l})))},i,o);return r.finish()}}const Eut=E1.high(ud.fromClass(kut,{decorations:e=>e.decorations})),_ut=Lx.define([{tag:Ne.meta,color:"#404740"},{tag:Ne.link,textDecoration:"underline"},{tag:Ne.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Ne.emphasis,fontStyle:"italic"},{tag:Ne.strong,fontWeight:"bold"},{tag:Ne.strikethrough,textDecoration:"line-through"},{tag:Ne.keyword,color:"#708"},{tag:[Ne.atom,Ne.bool,Ne.url,Ne.contentSeparator,Ne.labelName],color:"#219"},{tag:[Ne.literal,Ne.inserted],color:"#164"},{tag:[Ne.string,Ne.deleted],color:"#a11"},{tag:[Ne.regexp,Ne.escape,Ne.special(Ne.string)],color:"#e40"},{tag:Ne.definition(Ne.variableName),color:"#00f"},{tag:Ne.local(Ne.variableName),color:"#30a"},{tag:[Ne.typeName,Ne.namespace],color:"#085"},{tag:Ne.className,color:"#167"},{tag:[Ne.special(Ne.variableName),Ne.macroName],color:"#256"},{tag:Ne.definition(Ne.propertyName),color:"#00c"},{tag:Ne.comment,color:"#940"},{tag:Ne.invalid,color:"#f00"}]),Tut=1e4,Put="()[]{}",sAe=new Ir;function _H(e,t,n){let r=e.prop(t<0?Ir.openedBy:Ir.closedBy);if(r)return r;if(e.name.length==1){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function TH(e){let t=e.type.prop(sAe);return t?t(e.node):e}function DC(e,t,n,r={}){let i=r.maxScanDistance||Tut,o=r.brackets||Put,a=oa(e),s=a.resolveInner(t,n);for(let l=s;l;l=l.parent){let u=_H(l.type,n,o);if(u&&l.from<l.to){let c=TH(l);if(c&&(n>0?t>=c.from&&t<c.to:t>c.from&&t<=c.to))return Dut(e,t,n,l,c,u,o)}}return Rut(e,t,n,a,s.type,i,o)}function Dut(e,t,n,r,i,o,a){let s=r.parent,l={from:i.from,to:i.to},u=0,c=s==null?void 0:s.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do if(n<0?c.to<=r.from:c.from>=r.to){if(u==0&&o.indexOf(c.type.name)>-1&&c.from<c.to){let d=TH(c);return{start:l,end:d?{from:d.from,to:d.to}:void 0,matched:!0}}else if(_H(c.type,n,a))u++;else if(_H(c.type,-n,a)){if(u==0){let d=TH(c);return{start:l,end:d&&d.from<d.to?{from:d.from,to:d.to}:void 0,matched:!1}}u--}}while(n<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}function Rut(e,t,n,r,i,o,a){let s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=a.indexOf(s);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let h=0;!c.next().done&&h<=o;){let f=c.value;n<0&&(h+=f.length);let g=t+h*n;for(let b=n>0?0:f.length-1,v=n>0?f.length:-1;b!=v;b+=n){let m=a.indexOf(f[b]);if(!(m<0||r.resolveInner(g+b,1).type!=i))if(m%2==0==n>0)d++;else{if(d==1)return{start:u,end:{from:g+b,to:g+b+1},matched:m>>1==l>>1};d--}}n>0&&(h+=f.length)}return c.done?{start:u,matched:!1}:null}function eae(e,t,n,r=0,i=0){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));let o=i;for(let a=r;a<t;a++)e.charCodeAt(a)==9?o+=n-o%n:o++;return o}class lAe{constructor(t,n,r,i){this.string=t,this.tabSize=n,this.indentUnit=r,this.overrideIndent=i,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(t){let n=this.string.charAt(this.pos),r;if(typeof t=="string"?r=n==t:r=n&&(t instanceof RegExp?t.test(n):t(n)),r)return++this.pos,n}eatWhile(t){let n=this.pos;for(;this.eat(t););return this.pos>n}eatSpace(){let t=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let n=this.string.indexOf(t,this.pos);if(n>-1)return this.pos=n,!0}backUp(t){this.pos-=t}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=eae(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var t;return(t=this.overrideIndent)!==null&&t!==void 0?t:eae(this.string,null,this.tabSize)}match(t,n,r){if(typeof t=="string"){let i=a=>r?a.toLowerCase():a,o=this.string.substr(this.pos,t.length);return i(o)==i(t)?(n!==!1&&(this.pos+=t.length),!0):null}else{let i=this.string.slice(this.pos).match(t);return i&&i.index>0?null:(i&&n!==!1&&(this.pos+=i[0].length),i)}}current(){return this.string.slice(this.start,this.pos)}}function $ut(e){return{name:e.name||"",token:e.token,blankLine:e.blankLine||(()=>{}),startState:e.startState||(()=>!0),copyState:e.copyState||Mut,indent:e.indent||(()=>null),languageData:e.languageData||{},tokenTable:e.tokenTable||DX}}function Mut(e){if(typeof e!="object")return e;let t={};for(let n in e){let r=e[n];t[n]=r instanceof Array?r.slice():r}return t}const tae=new WeakMap;class TX extends qu{constructor(t){let n=GL(t.languageData),r=$ut(t),i,o=new class extends ZL{createParse(a,s,l){return new But(i,a,s,l)}};super(n,o,[tAe.of((a,s)=>this.getIndent(a,s))],t.name),this.topNode=Vut(n),i=this,this.streamParser=r,this.stateAfter=new Ir({perNode:!0}),this.tokenTable=t.tokenTable?new hAe(r.tokenTable):Nut}static define(t){return new TX(t)}getIndent(t,n){let r=oa(t.state),i=r.resolve(n);for(;i&&i.type!=this.topNode;)i=i.parent;if(!i)return null;let o,{overrideIndentation:a}=t.options;a&&(o=tae.get(t.state),o!=null&&o<n-1e4&&(o=void 0));let s=PX(this,r,0,i.from,o??n),l,u;if(s?(u=s.state,l=s.pos+1):(u=this.streamParser.startState(t.unit),l=0),n-l>1e4)return null;for(;l<n;){let d=t.state.doc.lineAt(l),h=Math.min(n,d.to);if(d.length){let f=a?a(d.from):-1,g=new lAe(d.text,t.state.tabSize,t.unit,f<0?void 0:f);for(;g.pos<h-d.from;)cAe(this.streamParser.token,g,u)}else this.streamParser.blankLine(u,t.unit);if(h==n)break;l=d.to+1}let c=t.lineAt(n);return a&&o==null&&tae.set(t.state,c.from),this.streamParser.indent(u,/^\s*(.*)/.exec(c.text)[1],t)}get allowsNesting(){return!1}}function PX(e,t,n,r,i){let o=n>=r&&n+t.length<=i&&t.prop(e.stateAfter);if(o)return{state:e.streamParser.copyState(o),pos:n+t.length};for(let a=t.children.length-1;a>=0;a--){let s=t.children[a],l=n+t.positions[a],u=s instanceof ai&&l<i&&PX(e,s,l,r,i);if(u)return u}return null}function uAe(e,t,n,r,i){if(i&&n<=0&&r>=t.length)return t;!i&&t.type==e.topNode&&(i=!0);for(let o=t.children.length-1;o>=0;o--){let a=t.positions[o],s=t.children[o],l;if(a<r&&s instanceof ai){if(!(l=uAe(e,s,n-a,r-a,i)))break;return i?new ai(t.type,t.children.slice(0,o).concat(l),t.positions.slice(0,o+1),a+l.length):l}}return null}function Lut(e,t,n,r){for(let i of t){let o=i.from+(i.openStart?25:0),a=i.to-(i.openEnd?25:0),s=o<=n&&a>n&&PX(e,i.tree,0-i.offset,n,a),l;if(s&&(l=uAe(e,i.tree,n+i.offset,s.pos+i.offset,!1)))return{state:s.state,tree:l}}return{state:e.streamParser.startState(r?r1(r):4),tree:ai.empty}}let But=class{constructor(e,t,n,r){this.lang=e,this.input=t,this.fragments=n,this.ranges=r,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=r[r.length-1].to;let i=n1.get(),o=r[0].from,{state:a,tree:s}=Lut(e,n,o,i==null?void 0:i.state);this.state=a,this.parsedPos=this.chunkStart=o+s.length;for(let l=0;l<s.children.length;l++)this.chunks.push(s.children[l]),this.chunkPos.push(s.positions[l]);i&&this.parsedPos<i.viewport.from-1e5&&(this.state=this.lang.streamParser.startState(r1(i.state)),i.skipUntilInView(this.parsedPos,i.viewport.from),this.parsedPos=i.viewport.from),this.moveRangeIndex()}advance(){let e=n1.get(),t=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),n=Math.min(t,this.chunkStart+2048);for(e&&(n=Math.min(n,e.viewport.to));this.parsedPos<n;)this.parseLine(e);return this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)t==`
|
|
`&&(t="");else{let n=t.indexOf(`
|
|
`);n>-1&&(t=t.slice(0,n))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),n=e+t.length;for(let r=this.rangeIndex;;){let i=this.ranges[r].to;if(i>=n||(t=t.slice(0,i-(n-t.length)),r++,r==this.ranges.length))break;let o=this.ranges[r].from,a=this.lineAfter(o);t+=a,n=o+a.length}return{line:t,end:n}}skipGapsTo(e,t,n){for(;;){let r=this.ranges[this.rangeIndex].to,i=e+t;if(n>0?r>i:r>=i)break;let o=this.ranges[++this.rangeIndex].from;t+=o-r}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(e,t,n,r,i){if(this.ranges.length>1){i=this.skipGapsTo(t,i,1),t+=i;let o=this.chunk.length;i=this.skipGapsTo(n,i,-1),n+=i,r+=this.chunk.length-o}return this.chunk.push(e,t,n,r),i}parseLine(e){let{line:t,end:n}=this.nextLine(),r=0,{streamParser:i}=this.lang,o=new lAe(t,e?e.state.tabSize:4,e?r1(e.state):2);if(o.eol())i.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let a=cAe(i.token,o,this.state);if(a&&(r=this.emitToken(this.lang.tokenTable.resolve(a),this.parsedPos+o.start,this.parsedPos+o.pos,4,r)),o.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let e=ai.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:Fut,topID:0,maxBufferLength:2048,reused:this.chunkReused});e=new ai(e.type,e.children,e.positions,e.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(e),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new ai(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}};function cAe(e,t,n){t.start=t.pos;for(let r=0;r<10;r++){let i=e(t,n);if(t.pos>t.start)return i}throw new Error("Stream parser failed to advance stream.")}const DX=Object.create(null),iE=[Xa.none],Fut=new Rx(iE),nae=[],rae=Object.create(null),dAe=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])dAe[e]=pAe(DX,t);class hAe{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),dAe)}resolve(t){return t?this.table[t]||(this.table[t]=pAe(this.extra,t)):0}}const Nut=new hAe(DX);function gN(e,t){nae.indexOf(e)>-1||(nae.push(e),console.warn(t))}function pAe(e,t){let n=[];for(let s of t.split(" ")){let l=[];for(let u of s.split(".")){let c=e[u]||Ne[u];c?typeof c=="function"?l.length?l=l.map(c):gN(u,`Modifier ${u} used at start of tag`):l.length?gN(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:gN(u,`Unknown highlighting tag ${u}`)}for(let u of l)n.push(u)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(s=>s.id),o=rae[i];if(o)return o.id;let a=rae[i]=Xa.define({id:iE.length,name:r,props:[$x({[r]:n})]});return iE.push(a),a.id}function Vut(e){let t=Xa.define({id:iE.length,name:"Document",props:[Av.add(()=>e)],top:!0});return iE.push(t),t}ra.RTL,ra.LTR;const jut=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=$X(e.state,n.from);return r.line?Wut(e):r.block?zut(e):!1};function RX(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}const Wut=RX(Qut,0),Hut=RX(fAe,0),zut=RX((e,t)=>fAe(e,t,Gut(t)),0);function $X(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const CA=50;function Zut(e,{open:t,close:n},r,i){let o=e.sliceDoc(r-CA,r),a=e.sliceDoc(i,i+CA),s=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(a)[0].length,u=o.length-s;if(o.slice(u-t.length,u)==t&&a.slice(l,l+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+l,margin:l&&1}};let c,d;i-r<=2*CA?c=d=e.sliceDoc(r,i):(c=e.sliceDoc(r,r+CA),d=e.sliceDoc(i-CA,i));let h=/^\s*/.exec(c)[0].length,f=/\s*$/.exec(d)[0].length,g=d.length-f-n.length;return c.slice(h,h+t.length)==t&&d.slice(g,g+n.length)==n?{open:{pos:r+h+t.length,margin:/\s/.test(c.charAt(h+t.length))?1:0},close:{pos:i-f-n.length,margin:/\s/.test(d.charAt(g-1))?1:0}}:null}function Gut(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function fAe(e,t,n=t.selection.ranges){let r=n.map(o=>$X(t,o.from).block);if(!r.every(o=>o))return null;let i=n.map((o,a)=>Zut(t,r[a],o.from,o.to));if(e!=2&&!i.every(o=>o))return{changes:t.changes(n.map((o,a)=>i[a]?[]:[{from:o.from,insert:r[a].open+" "},{from:o.to,insert:" "+r[a].close}]))};if(e!=1&&i.some(o=>o)){let o=[];for(let a=0,s;a<i.length;a++)if(s=i[a]){let l=r[a],{open:u,close:c}=s;o.push({from:u.pos-l.open.length,to:u.pos+u.margin},{from:c.pos-c.margin,to:c.pos+l.close.length})}return{changes:o}}return null}function Qut(e,t,n=t.selection.ranges){let r=[],i=-1;for(let{from:o,to:a}of n){let s=r.length,l=1e9,u=$X(t,o).line;if(u){for(let c=o;c<=a;){let d=t.doc.lineAt(c);if(d.from>i&&(o==a||a>d.from)){i=d.from;let h=/^\s*/.exec(d.text)[0].length,f=h==d.length,g=d.text.slice(h,h+u.length)==u?h:-1;h<d.text.length&&h<l&&(l=h),r.push({line:d,comment:g,token:u,indent:h,empty:f,single:!1})}c=d.to+1}if(l<1e9)for(let c=s;c<r.length;c++)r[c].indent<r[c].line.text.length&&(r[c].indent=l);r.length==s+1&&(r[s].single=!0)}}if(e!=2&&r.some(o=>o.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:s,token:l,indent:u,empty:c,single:d}of r)(d||!c)&&o.push({from:s.from+u,insert:l+" "});let a=t.changes(o);return{changes:a,selection:t.selection.map(a,1)}}else if(e!=1&&r.some(o=>o.comment>=0)){let o=[];for(let{line:a,comment:s,token:l}of r)if(s>=0){let u=a.from+s,c=u+l.length;a.text[c-a.from]==" "&&c++,o.push({from:u,to:c})}return{changes:o}}return null}const PH=Rg.define(),Uut=Rg.define(),Xut=ir.define(),gAe=ir.define({combine(e){return jL(e,{minDepth:100,newGroupDelay:500,joinToEvent:(t,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,n)=>(r,i)=>t(r,i)||n(r,i)})}}),mAe=tf.define({create(){return bp.empty},update(e,t){let n=t.state.facet(gAe),r=t.annotation(PH);if(r){let l=ou.fromTransaction(t,r.selection),u=r.side,c=u==0?e.undone:e.done;return l?c=g5(c,c.length,n.minDepth,l):c=yAe(c,t.startState.selection),new bp(u==0?r.rest:c,u==0?c:r.rest)}let i=t.annotation(Uut);if((i=="full"||i=="before")&&(e=e.isolate()),t.annotation(os.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let o=ou.fromTransaction(t),a=t.annotation(os.time),s=t.annotation(os.userEvent);return o?e=e.addChanges(o,a,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,s,n.newGroupDelay)),(i=="full"||i=="after")&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(t=>t.toJSON()),undone:e.undone.map(t=>t.toJSON())}},fromJSON(e){return new bp(e.done.map(ou.fromJSON),e.undone.map(ou.fromJSON))}});function Yut(e={}){return[mAe,gAe.of(e),ar.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?MX:t.inputType=="historyRedo"?f5:null;return r?(t.preventDefault(),r(n)):!1}})]}function UL(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(mAe,!1);if(!i)return!1;let o=i.pop(e,n,t);return o?(r(o),!0):!1}}const MX=UL(0,!1),f5=UL(1,!1),Kut=UL(0,!0),qut=UL(1,!0);class ou{constructor(t,n,r,i,o){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=o}setSelAfter(t){return new ou(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,n,r;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(t){return new ou(t.changes&&ns.fromJSON(t.changes),[],t.mapped&&Rp.fromJSON(t.mapped),t.startSelection&&tn.fromJSON(t.startSelection),t.selectionsAfter.map(tn.fromJSON))}static fromTransaction(t,n){let r=Zc;for(let i of t.startState.facet(Xut)){let o=i(t);o.length&&(r=r.concat(o))}return!r.length&&t.changes.empty?null:new ou(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,Zc)}static selection(t){return new ou(void 0,Zc,void 0,void 0,t)}}function g5(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function Jut(e,t){let n=[],r=!1;return e.iterChangedRanges((i,o)=>n.push(i,o)),t.iterChangedRanges((i,o,a,s)=>{for(let l=0;l<n.length;){let u=n[l++],c=n[l++];s>=u&&a<=c&&(r=!0)}}),r}function ect(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function vAe(e,t){return e.length?t.length?e.concat(t):e:t}const Zc=[],tct=200;function yAe(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-tct));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),g5(e,e.length-1,1e9,n.setSelAfter(r)))}else return[ou.selection([t])]}function nct(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function mN(e,t){if(!e.length)return e;let n=e.length,r=Zc;for(;n;){let i=rct(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let o=e.slice(0,n);return o[n-1]=i,o}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[ou.selection(r)]:Zc}function rct(e,t,n){let r=vAe(e.selectionsAfter.length?e.selectionsAfter.map(s=>s.map(t)):Zc,n);if(!e.changes)return ou.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new ou(i,oo.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}const ict=/^(input\.type|delete)($|\.)/;class bp{constructor(t,n,r=0,i=void 0){this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=i}isolate(){return this.prevTime?new bp(this.done,this.undone):this}addChanges(t,n,r,i,o){let a=this.done,s=a[a.length-1];return s&&s.changes&&!s.changes.empty&&t.changes&&(!r||ict.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(o,Jut(s.changes,t.changes))||r=="input.type.compose")?a=g5(a,a.length-1,i.minDepth,new ou(t.changes.compose(s.changes),vAe(t.effects,s.effects),s.mapped,s.startSelection,Zc)):a=g5(a,a.length,i.minDepth,t),new bp(a,Zc,n,r)}addSelection(t,n,r,i){let o=this.done.length?this.done[this.done.length-1].selectionsAfter:Zc;return o.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&ect(o[o.length-1],t)?this:new bp(yAe(this.done,t),this.undone,n,r)}addMapping(t){return new bp(mN(this.done,t),mN(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,n,r){let i=t==0?this.done:this.undone;if(i.length==0)return null;let o=i[i.length-1],a=o.selectionsAfter[0]||n.selection;if(r&&o.selectionsAfter.length)return n.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:PH.of({side:t,rest:nct(i),selection:a}),userEvent:t==0?"select.undo":"select.redo",scrollIntoView:!0});if(o.changes){let s=i.length==1?Zc:i.slice(0,i.length-1);return o.mapped&&(s=mN(s,o.mapped)),n.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:PH.of({side:t,rest:s,selection:a}),filter:!1,userEvent:t==0?"undo":"redo",scrollIntoView:!0})}else return null}}bp.empty=new bp(Zc,Zc);const oct=[{key:"Mod-z",run:MX,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:f5,preventDefault:!0},{linux:"Ctrl-Shift-z",run:f5,preventDefault:!0},{key:"Mod-u",run:Kut,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:qut,preventDefault:!0}];function Bx(e,t){return tn.create(e.ranges.map(t),e.mainIndex)}function nf(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function wh({state:e,dispatch:t},n){let r=Bx(e.selection,n);return r.eq(e.selection,!0)?!1:(t(nf(e,r)),!0)}function XL(e,t){return tn.cursor(t?e.to:e.from)}function bAe(e,t){return wh(e,n=>n.empty?e.moveByChar(n,t):XL(n,t))}function fl(e){return e.textDirectionAt(e.state.selection.main.head)==ra.LTR}const wAe=e=>bAe(e,!fl(e)),CAe=e=>bAe(e,fl(e));function OAe(e,t){return wh(e,n=>n.empty?e.moveByGroup(n,t):XL(n,t))}const act=e=>OAe(e,!fl(e)),sct=e=>OAe(e,fl(e));function lct(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function YL(e,t,n){let r=oa(e).resolveInner(t.head),i=n?Ir.closedBy:Ir.openedBy;for(let l=t.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;lct(e,u,i)?r=u:l=n?u.to:u.from}let o=r.type.prop(i),a,s;return o&&(a=n?DC(e,r.from,1):DC(e,r.to,-1))&&a.matched?s=n?a.end.to:a.end.from:s=n?r.to:r.from,tn.cursor(s,n?-1:1)}const uct=e=>wh(e,t=>YL(e.state,t,!fl(e))),cct=e=>wh(e,t=>YL(e.state,t,fl(e)));function xAe(e,t){return wh(e,n=>{if(!n.empty)return XL(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const SAe=e=>xAe(e,!1),AAe=e=>xAe(e,!0);function IAe(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,i;if(t){for(let o of e.state.facet(ar.scrollMargins)){let a=o(e);a!=null&&a.top&&(n=Math.max(a==null?void 0:a.top,n)),a!=null&&a.bottom&&(r=Math.max(a==null?void 0:a.bottom,r))}i=e.scrollDOM.clientHeight-n-r}else i=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,i-5)}}function kAe(e,t){let n=IAe(e),{state:r}=e,i=Bx(r.selection,a=>a.empty?e.moveVertically(a,t,n.height):XL(a,t));if(i.eq(r.selection))return!1;let o;if(n.selfScroll){let a=e.coordsAtPos(r.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),l=s.top+n.marginTop,u=s.bottom-n.marginBottom;a&&a.top>l&&a.bottom<u&&(o=ar.scrollIntoView(i.main.head,{y:"start",yMargin:a.top-l}))}return e.dispatch(nf(r,i),{effects:o}),!0}const iae=e=>kAe(e,!1),DH=e=>kAe(e,!0);function $0(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let o=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;o&&t.head!=r.from+o&&(i=tn.cursor(r.from+o))}return i}const dct=e=>wh(e,t=>$0(e,t,!0)),hct=e=>wh(e,t=>$0(e,t,!1)),pct=e=>wh(e,t=>$0(e,t,!fl(e))),fct=e=>wh(e,t=>$0(e,t,fl(e))),gct=e=>wh(e,t=>tn.cursor(e.lineBlockAt(t.head).from,1)),mct=e=>wh(e,t=>tn.cursor(e.lineBlockAt(t.head).to,-1));function vct(e,t,n){let r=!1,i=Bx(e.selection,o=>{let a=DC(e,o.head,-1)||DC(e,o.head,1)||o.head>0&&DC(e,o.head-1,1)||o.head<e.doc.length&&DC(e,o.head+1,-1);if(!a||!a.end)return o;r=!0;let s=a.start.from==o.head?a.end.to:a.end.from;return tn.cursor(s)});return r?(t(nf(e,i)),!0):!1}const yct=({state:e,dispatch:t})=>vct(e,t);function wd(e,t){let n=Bx(e.state.selection,r=>{let i=t(r);return tn.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch(nf(e.state,n)),!0)}function EAe(e,t){return wd(e,n=>e.moveByChar(n,t))}const _Ae=e=>EAe(e,!fl(e)),TAe=e=>EAe(e,fl(e));function PAe(e,t){return wd(e,n=>e.moveByGroup(n,t))}const bct=e=>PAe(e,!fl(e)),wct=e=>PAe(e,fl(e)),Cct=e=>wd(e,t=>YL(e.state,t,!fl(e))),Oct=e=>wd(e,t=>YL(e.state,t,fl(e)));function DAe(e,t){return wd(e,n=>e.moveVertically(n,t))}const RAe=e=>DAe(e,!1),$Ae=e=>DAe(e,!0);function MAe(e,t){return wd(e,n=>e.moveVertically(n,t,IAe(e).height))}const oae=e=>MAe(e,!1),aae=e=>MAe(e,!0),xct=e=>wd(e,t=>$0(e,t,!0)),Sct=e=>wd(e,t=>$0(e,t,!1)),Act=e=>wd(e,t=>$0(e,t,!fl(e))),Ict=e=>wd(e,t=>$0(e,t,fl(e))),kct=e=>wd(e,t=>tn.cursor(e.lineBlockAt(t.head).from)),Ect=e=>wd(e,t=>tn.cursor(e.lineBlockAt(t.head).to)),sae=({state:e,dispatch:t})=>(t(nf(e,{anchor:0})),!0),lae=({state:e,dispatch:t})=>(t(nf(e,{anchor:e.doc.length})),!0),uae=({state:e,dispatch:t})=>(t(nf(e,{anchor:e.selection.main.anchor,head:0})),!0),cae=({state:e,dispatch:t})=>(t(nf(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),_ct=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),Tct=({state:e,dispatch:t})=>{let n=KL(e).map(({from:r,to:i})=>tn.range(r,Math.min(i+1,e.doc.length)));return t(e.update({selection:tn.create(n),userEvent:"select"})),!0},Pct=({state:e,dispatch:t})=>{let n=Bx(e.selection,r=>{var i;let o=oa(e).resolveStack(r.from,1);for(let a=o;a;a=a.next){let{node:s}=a;if((s.from<r.from&&s.to>=r.to||s.to>r.to&&s.from<=r.from)&&!((i=s.parent)===null||i===void 0)&&i.parent)return tn.range(s.to,s.from)}return r});return t(nf(e,n)),!0},Dct=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=tn.create([n.main]):n.main.empty||(r=tn.create([tn.cursor(n.main.head)])),r?(t(nf(e,r)),!0):!1};function B_(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(o=>{let{from:a,to:s}=o;if(a==s){let l=t(o);l<a?(n="delete.backward",l=LD(e,l,!1)):l>a&&(n="delete.forward",l=LD(e,l,!0)),a=Math.min(a,l),s=Math.max(s,l)}else a=LD(e,a,!1),s=LD(e,s,!0);return a==s?{range:o}:{changes:{from:a,to:s},range:tn.cursor(a,a<o.head?-1:1)}});return i.changes.empty?!1:(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?ar.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function LD(e,t,n){if(e instanceof ar)for(let r of e.state.facet(ar.atomicRanges).map(i=>i(e)))r.between(t,t,(i,o)=>{i<t&&o>t&&(t=n?o:i)});return t}const LAe=(e,t)=>B_(e,n=>{let r=n.from,{state:i}=e,o=i.doc.lineAt(r),a,s;if(!t&&r>o.from&&r<o.from+200&&!/[^ \t]/.test(a=o.text.slice(0,r-o.from))){if(a[a.length-1]==" ")return r-1;let l=Wp(a,i.tabSize),u=l%r1(i)||r1(i);for(let c=0;c<u&&a[a.length-1-c]==" ";c++)r--;s=r}else s=$l(o.text,r-o.from,t,t)+o.from,s==r&&o.number!=(t?i.doc.lines:1)?s+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(o.text.slice(s-o.from,r-o.from))&&(s=$l(o.text,s-o.from,!1,!1)+o.from);return s}),RH=e=>LAe(e,!1),BAe=e=>LAe(e,!0),FAe=(e,t)=>B_(e,n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let s=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let l=$l(o.text,r-o.from,t)+o.from,u=o.text.slice(Math.min(r,l)-o.from,Math.max(r,l)-o.from),c=a(u);if(s!=null&&c!=s)break;(u!=" "||r!=n.head)&&(s=c),r=l}return r}),NAe=e=>FAe(e,!1),Rct=e=>FAe(e,!0),$ct=e=>B_(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),Mct=e=>B_(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),Lct=e=>B_(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),Bct=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:Ti.of(["",""])},range:tn.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},Fct=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{if(!r.empty||r.from==0||r.from==e.doc.length)return{range:r};let i=r.from,o=e.doc.lineAt(i),a=i==o.from?i-1:$l(o.text,i-o.from,!1)+o.from,s=i==o.to?i+1:$l(o.text,i-o.from,!0)+o.from;return{changes:{from:a,to:s,insert:e.doc.slice(i,s).append(e.doc.slice(a,i))},range:tn.cursor(s)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function KL(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(!r.empty&&r.to==o.from&&(o=e.doc.lineAt(r.to-1)),n>=i.number){let a=t[t.length-1];a.to=o.to,a.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function VAe(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let o of KL(e)){if(n?o.to==e.doc.length:o.from==0)continue;let a=e.doc.lineAt(n?o.to+1:o.from-1),s=a.length+1;if(n){r.push({from:o.to,to:a.to},{from:o.from,insert:a.text+e.lineBreak});for(let l of o.ranges)i.push(tn.range(Math.min(e.doc.length,l.anchor+s),Math.min(e.doc.length,l.head+s)))}else{r.push({from:a.from,to:o.from},{from:o.to,insert:e.lineBreak+a.text});for(let l of o.ranges)i.push(tn.range(l.anchor-s,l.head-s))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:tn.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const Nct=({state:e,dispatch:t})=>VAe(e,t,!1),Vct=({state:e,dispatch:t})=>VAe(e,t,!0);function jAe(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of KL(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const jct=({state:e,dispatch:t})=>jAe(e,t,!1),Wct=({state:e,dispatch:t})=>jAe(e,t,!0),WAe=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(KL(t).map(({from:i,to:o})=>(i>0?i--:o<t.doc.length&&o++,{from:i,to:o}))),r=Bx(t.selection,i=>e.moveVertically(i,!0)).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Hct(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=oa(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),o;return r&&i&&r.to<=t&&i.from>=t&&(o=r.type.prop(Ir.closedBy))&&o.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}const zct=HAe(!1),Zct=HAe(!0);function HAe(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(i=>{let{from:o,to:a}=i,s=t.doc.lineAt(o),l=!e&&o==a&&Hct(t,o);e&&(o=a=(a<=s.to?s:t.doc.lineAt(a)).to);let u=new QL(t,{simulateBreak:o,simulateDoubleBreak:!!l}),c=nAe(u,o);for(c==null&&(c=Wp(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize));a<s.to&&/\s/.test(s.text[a-s.from]);)a++;l?{from:o,to:a}=l:o>s.from&&o<s.from+100&&!/\S/.test(s.text.slice(0,o))&&(o=s.from);let d=["",p5(t,c)];return l&&d.push(p5(t,u.lineIndent(s.from,-1))),{changes:{from:o,to:a,insert:Ti.of(d)},range:tn.cursor(o+1+d[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function LX(e,t){let n=-1;return e.changeByRange(r=>{let i=[];for(let a=r.from;a<=r.to;){let s=e.doc.lineAt(a);s.number>n&&(r.empty||r.to>s.from)&&(t(s,i,r),n=s.number),a=s.to+1}let o=e.changes(i);return{changes:i,range:tn.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}const Gct=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new QL(e,{overrideIndentation:o=>n[o]??-1}),i=LX(e,(o,a,s)=>{let l=nAe(r,o.from);if(l==null)return;/\S/.test(o.text)||(l=0);let u=/^\s*/.exec(o.text)[0],c=p5(e,l);(u!=c||s.from<o.from+u.length)&&(n[o.from]=l,a.push({from:o.from,to:o.from+u.length,insert:c}))});return i.changes.empty||t(e.update(i,{userEvent:"indent"})),!0},zAe=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(LX(e,(n,r)=>{r.push({from:n.from,insert:e.facet(Mx)})}),{userEvent:"input.indent"})),!0),ZAe=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(LX(e,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let o=Wp(i,e.tabSize),a=0,s=p5(e,Math.max(0,o-r1(e)));for(;a<i.length&&a<s.length&&i.charCodeAt(a)==s.charCodeAt(a);)a++;r.push({from:n.from+a,to:n.from+i.length,insert:s.slice(a)})}),{userEvent:"delete.dedent"})),!0),Qct=[{key:"Ctrl-b",run:wAe,shift:_Ae,preventDefault:!0},{key:"Ctrl-f",run:CAe,shift:TAe},{key:"Ctrl-p",run:SAe,shift:RAe},{key:"Ctrl-n",run:AAe,shift:$Ae},{key:"Ctrl-a",run:gct,shift:kct},{key:"Ctrl-e",run:mct,shift:Ect},{key:"Ctrl-d",run:BAe},{key:"Ctrl-h",run:RH},{key:"Ctrl-k",run:$ct},{key:"Ctrl-Alt-h",run:NAe},{key:"Ctrl-o",run:Bct},{key:"Ctrl-t",run:Fct},{key:"Ctrl-v",run:DH}],Uct=[{key:"ArrowLeft",run:wAe,shift:_Ae,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:act,shift:bct,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:pct,shift:Act,preventDefault:!0},{key:"ArrowRight",run:CAe,shift:TAe,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:sct,shift:wct,preventDefault:!0},{mac:"Cmd-ArrowRight",run:fct,shift:Ict,preventDefault:!0},{key:"ArrowUp",run:SAe,shift:RAe,preventDefault:!0},{mac:"Cmd-ArrowUp",run:sae,shift:uae},{mac:"Ctrl-ArrowUp",run:iae,shift:oae},{key:"ArrowDown",run:AAe,shift:$Ae,preventDefault:!0},{mac:"Cmd-ArrowDown",run:lae,shift:cae},{mac:"Ctrl-ArrowDown",run:DH,shift:aae},{key:"PageUp",run:iae,shift:oae},{key:"PageDown",run:DH,shift:aae},{key:"Home",run:hct,shift:Sct,preventDefault:!0},{key:"Mod-Home",run:sae,shift:uae},{key:"End",run:dct,shift:xct,preventDefault:!0},{key:"Mod-End",run:lae,shift:cae},{key:"Enter",run:zct},{key:"Mod-a",run:_ct},{key:"Backspace",run:RH,shift:RH},{key:"Delete",run:BAe},{key:"Mod-Backspace",mac:"Alt-Backspace",run:NAe},{key:"Mod-Delete",mac:"Alt-Delete",run:Rct},{mac:"Mod-Backspace",run:Mct},{mac:"Mod-Delete",run:Lct}].concat(Qct.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),Xct=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:uct,shift:Cct},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:cct,shift:Oct},{key:"Alt-ArrowUp",run:Nct},{key:"Shift-Alt-ArrowUp",run:jct},{key:"Alt-ArrowDown",run:Vct},{key:"Shift-Alt-ArrowDown",run:Wct},{key:"Escape",run:Dct},{key:"Mod-Enter",run:Zct},{key:"Alt-l",mac:"Ctrl-l",run:Tct},{key:"Mod-i",run:Pct,preventDefault:!0},{key:"Mod-[",run:ZAe},{key:"Mod-]",run:zAe},{key:"Mod-Alt-\\",run:Gct},{key:"Shift-Mod-k",run:WAe},{key:"Shift-Mod-\\",run:yct},{key:"Mod-/",run:jut},{key:"Alt-A",run:Hut}].concat(Uct),Yct={key:"Tab",run:zAe,shift:ZAe};class BX{constructor(t,n,r){this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}tokenBefore(t){let n=oa(this.state).resolveInner(this.pos,-1);for(;n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(t){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),o=i.search(QAe(t,!1));return o<0?null:{from:r+o,to:this.pos,text:i.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(t,n){t=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function dae(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function Kct(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let o=1;o<i.length;o++)n[i[o]]=!0}let r=dae(t)+dae(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function GAe(e){let t=e.map(i=>typeof i=="string"?{label:i}:i),[n,r]=t.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:Kct(t);return i=>{let o=i.matchBefore(r);return o||i.explicit?{from:o?o.from:i.pos,options:t,validFor:n}:null}}function qct(e,t){return n=>{for(let r=oa(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(e.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return t(n)}}let hae=class{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}};function Lv(e){return e.selection.main.from}function QAe(e,t){var n;let{source:r}=e,i=t&&r[0]!="^",o=r[r.length-1]!="$";return!i&&!o?e:new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const UAe=Rg.define();function Jct(e,t,n,r){let{main:i}=e.selection,o=n-i.from,a=r-i.from;return Object.assign(Object.assign({},e.changeByRange(s=>s!=i&&n!=r&&e.sliceDoc(s.from+o,s.from+a)!=e.sliceDoc(n,r)?{range:s}:{changes:{from:s.from+o,to:r==i.from?s.to:s.from+a,insert:t},range:tn.cursor(s.from+o+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const pae=new WeakMap;function edt(e){if(!Array.isArray(e))return e;let t=pae.get(e);return t||pae.set(e,t=GAe(e)),t}const FX=oo.define(),oE=oo.define();class tdt{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n<t.length;){let r=jd(t,n),i=fv(r);this.chars.push(r);let o=t.slice(n,n+i),a=o.toUpperCase();this.folded.push(jd(a==o?o.toLowerCase():a,0)),n+=i}this.astral=t.length!=this.chars.length}ret(t,n){return this.score=t,this.matched=n,!0}match(t){if(this.pattern.length==0)return this.ret(-100,[]);if(t.length<this.pattern.length)return!1;let{chars:n,folded:r,any:i,precise:o,byWord:a}=this;if(n.length==1){let w=jd(t,0),k=fv(w),T=k==t.length?0:-100;if(w!=n[0])if(w==r[0])T+=-200;else return!1;return this.ret(T,[0,k])}let s=t.indexOf(this.pattern);if(s==0)return this.ret(t.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=n.length,u=0;if(s<0){for(let w=0,k=Math.min(t.length,200);w<k&&u<l;){let T=jd(t,w);(T==n[u]||T==r[u])&&(i[u++]=w),w+=fv(T)}if(u<l)return!1}let c=0,d=0,h=!1,f=0,g=-1,b=-1,v=/[a-z]/.test(t),m=!0;for(let w=0,k=Math.min(t.length,200),T=0;w<k&&d<l;){let S=jd(t,w);s<0&&(c<l&&S==n[c]&&(o[c++]=w),f<l&&(S==n[f]||S==r[f]?(f==0&&(g=w),b=w+1,f++):f=0));let I,O=S<255?S>=48&&S<=57||S>=97&&S<=122?2:S>=65&&S<=90?1:0:(I=Tat(S))!=I.toLowerCase()?1:I!=I.toUpperCase()?2:0;(!w||O==1&&v||T==0&&O!=0)&&(n[d]==S||r[d]==S&&(h=!0)?a[d++]=w:a.length&&(m=!1)),T=O,w+=fv(S)}return d==l&&a[0]==0&&m?this.result(-100+(h?-200:0),a,t):f==l&&g==0?this.ret(-200-t.length+(b==t.length?0:-100),[0,b]):s>-1?this.ret(-700-t.length,[s,s+this.pattern.length]):f==l?this.ret(-900-t.length,[g,b]):d==l?this.result(-100+(h?-200:0)+-700+(m?0:-1100),a,t):n.length==2?!1:this.result((i[0]?-700:0)+-200+-1100,i,t)}result(t,n,r){let i=[],o=0;for(let a of n){let s=a+(this.astral?fv(jd(r,a)):1);o&&i[o-1]==a?i[o-1]=s:(i[o++]=a,i[o++]=s)}return this.ret(t-r.length,i)}}const nl=ir.define({combine(e){return jL(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:ndt,compareCompletions:(t,n)=>t.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,n)=>t&&n,closeOnBlur:(t,n)=>t&&n,icons:(t,n)=>t&&n,tooltipClass:(t,n)=>r=>fae(t(r),n(r)),optionClass:(t,n)=>r=>fae(t(r),n(r)),addToOptions:(t,n)=>t.concat(n)})}});function fae(e,t){return e?t?e+" "+t:e:t}function ndt(e,t,n,r,i,o){let a=e.textDirection==ra.RTL,s=a,l=!1,u="top",c,d,h=t.left-i.left,f=i.right-t.right,g=r.right-r.left,b=r.bottom-r.top;if(s&&h<Math.min(g,f)?s=!1:!s&&f<Math.min(g,h)&&(s=!0),g<=(s?h:f))c=Math.max(i.top,Math.min(n.top,i.bottom-b))-t.top,d=Math.min(400,s?h:f);else{l=!0,d=Math.min(400,(a?t.right:i.right-t.left)-30);let w=i.bottom-t.bottom;w>=b||w>t.top?c=n.bottom-t.top:(u="bottom",c=t.bottom-n.top)}let v=(t.bottom-t.top)/o.offsetHeight,m=(t.right-t.left)/o.offsetWidth;return{style:`${u}: ${c/v}px; max-width: ${d/m}px`,class:"cm-completionInfo-"+(l?a?"left-narrow":"right-narrow":s?"left":"right")}}function rdt(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),t.push({render(n,r,i,o){let a=document.createElement("span");a.className="cm-completionLabel";let s=n.displayLabel||n.label,l=0;for(let u=0;u<o.length;){let c=o[u++],d=o[u++];c>l&&a.appendChild(document.createTextNode(s.slice(l,c)));let h=a.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(s.slice(c,d))),h.className="cm-completionMatchedText",l=d}return l<s.length&&a.appendChild(document.createTextNode(s.slice(l))),a},position:50},{render(n){if(!n.detail)return null;let r=document.createElement("span");return r.className="cm-completionDetail",r.textContent=n.detail,r},position:80}),t.sort((n,r)=>n.position-r.position).map(n=>n.render)}function vN(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let i=Math.floor(t/n);return{from:i*n,to:(i+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class idt{constructor(t,n,r){this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=t.state.field(n),{options:o,selected:a}=i.open,s=t.state.facet(nl);this.optionContent=rdt(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=vN(o.length,a,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=t.state.field(n).open;for(let c=l.target,d;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(d=/-(\d+)$/.exec(c.id))&&+d[1]<u.length){this.applyCompletion(t,u[+d[1]]),l.preventDefault();return}}),this.dom.addEventListener("focusout",l=>{let u=t.state.field(this.stateField,!1);u&&u.tooltip&&t.state.facet(nl).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:oE.of(null)})}),this.showOptions(o,i.id)}mount(){this.updateSel()}showOptions(t,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var n;let r=t.state.field(this.stateField),i=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),r!=i){let{options:o,selected:a,disabled:s}=r.open;(!i.open||i.open.options!=o)&&(this.range=vN(o.length,a,t.state.facet(nl).maxRenderedOptions),this.showOptions(o,r.id)),this.updateSel(),s!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(t){let n=this.tooltipClass(t);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),n=t.open;if((n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=vN(n.options.length,n.selected,this.view.state.facet(nl).maxRenderedOptions),this.showOptions(n.options,t.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let o=typeof i=="string"?document.createTextNode(i):i(r);if(!o)return;"then"in o?o.then(a=>{a&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(a,r)}).catch(a=>eh(this.view.state,a,"completion info")):this.addInfoPane(o,r)}}addInfoPane(t,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{let{dom:i,destroy:o}=t;r.appendChild(i),this.infoDestroy=o||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&adt(this.list,n),n}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=t.getBoundingClientRect(),o=this.space;if(!o){let a=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return i.top>Math.min(o.bottom,n.bottom)-10||i.bottom<Math.max(o.top,n.top)+10?null:this.view.state.facet(nl).positionInfo(this.view,n,i,r,o,this.dom)}placeInfo(t){this.info&&(t?(t.style&&(this.info.style.cssText=t.style),this.info.className="cm-tooltip cm-completionInfo "+(t.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(t,n,r){const i=document.createElement("ul");i.id=n,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions"));let o=null;for(let a=r.from;a<r.to;a++){let{completion:s,match:l}=t[a],{section:u}=s;if(u){let h=typeof u=="string"?u:u.name;if(h!=o&&(a>r.from||r.from==0))if(o=h,typeof u!="string"&&u.header)i.appendChild(u.header(u));else{let f=i.appendChild(document.createElement("completion-section"));f.textContent=h}}const c=i.appendChild(document.createElement("li"));c.id=n+"-"+a,c.setAttribute("role","option");let d=this.optionClass(s);d&&(c.className=d);for(let h of this.optionContent){let f=h(s,this.view.state,this.view,l);f&&c.appendChild(f)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.to<t.length&&i.classList.add("cm-completionListIncompleteBottom"),i}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function odt(e,t){return n=>new idt(n,e,t)}function adt(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}function gae(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function sdt(e,t){let n=[],r=null,i=l=>{n.push(l);let{section:u}=l.completion;if(u){r||(r=[]);let c=typeof u=="string"?u:u.name;r.some(d=>d.name==c)||r.push(typeof u=="string"?{name:c}:u)}};for(let l of e)if(l.hasResult()){let u=l.result.getMatch;if(l.result.filter===!1)for(let c of l.result.options)i(new hae(c,l.source,u?u(c):[],1e9-n.length));else{let c=new tdt(t.sliceDoc(l.from,l.to));for(let d of l.result.options)if(c.match(d.label)){let h=d.displayLabel?u?u(d,c.matched):[]:c.matched;i(new hae(d,l.source,h,c.score+(d.boost||0)))}}}if(r){let l=Object.create(null),u=0,c=(d,h)=>{var f,g;return((f=d.rank)!==null&&f!==void 0?f:1e9)-((g=h.rank)!==null&&g!==void 0?g:1e9)||(d.name<h.name?-1:1)};for(let d of r.sort(c))u-=1e5,l[d.name]=u;for(let d of n){let{section:h}=d.completion;h&&(d.score+=l[typeof h=="string"?h:h.name])}}let o=[],a=null,s=t.facet(nl).compareCompletions;for(let l of n.sort((u,c)=>c.score-u.score||s(u.completion,c.completion))){let u=l.completion;!a||a.label!=u.label||a.detail!=u.detail||a.type!=null&&u.type!=null&&a.type!=u.type||a.apply!=u.apply||a.boost!=u.boost?o.push(l):gae(l.completion)>gae(a)&&(o[o.length-1]=l),a=l.completion}return o}class RC{constructor(t,n,r,i,o,a){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=o,this.disabled=a}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new RC(this.options,mae(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,o){let a=sdt(t,n);if(!a.length)return i&&t.some(l=>l.state==1)?new RC(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let s=n.facet(nl).selectOnOpen?0:-1;if(i&&i.selected!=s&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;u<a.length;u++)if(a[u].completion==l){s=u;break}}return new RC(a,mae(r,s),{pos:t.reduce((l,u)=>u.hasResult()?Math.min(l,u.from):l,1e8),create:hdt,above:o.aboveCursor},i?i.timestamp:Date.now(),s,!1)}map(t){return new RC(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class m5{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new m5(cdt,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(nl),i=(r.override||n.languageDataAt("autocomplete",Lv(n)).map(edt)).map(a=>(this.active.find(s=>s.source==a)||new tu(a,this.active.some(s=>s.state!=0)?1:0)).update(t,r));i.length==this.active.length&&i.every((a,s)=>a==this.active[s])&&(i=this.active);let o=this.open;o&&t.docChanged&&(o=o.map(t.changes)),t.selection||i.some(a=>a.hasResult()&&t.changes.touchesRange(a.from,a.to))||!ldt(i,this.active)?o=RC.build(i,n,this.id,o,r):o&&o.disabled&&!i.some(a=>a.state==1)&&(o=null),!o&&i.every(a=>a.state!=1)&&i.some(a=>a.hasResult())&&(i=i.map(a=>a.hasResult()?new tu(a.source,0):a));for(let a of t.effects)a.is(YAe)&&(o=o&&o.setSelected(a.value,this.id));return i==this.active&&o==this.open?this:new m5(i,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:udt}}function ldt(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult;)n++;for(;r<t.length&&!t[r].hasResult;)r++;let i=n==e.length,o=r==t.length;if(i||o)return i==o;if(e[n++].result!=t[r++].result)return!1}}const udt={"aria-autocomplete":"list"};function mae(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const cdt=[];function $H(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class tu{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=$H(t),i=this;r?i=i.handleUserEvent(t,r,n):t.docChanged?i=i.handleChange(t):t.selection&&i.state!=0&&(i=new tu(i.source,0));for(let o of t.effects)if(o.is(FX))i=new tu(i.source,1,o.value?Lv(t.state):-1);else if(o.is(oE))i=new tu(i.source,0);else if(o.is(XAe))for(let a of o.value)a.source==i.source&&(i=a);return i}handleUserEvent(t,n,r){return n=="delete"||!r.activateOnTyping?this.map(t.changes):new tu(this.source,1)}handleChange(t){return t.changes.touchesRange(Lv(t.startState))?new tu(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new tu(this.source,this.state,t.mapPos(this.explicitPos))}}class eO extends tu{constructor(t,n,r,i,o){super(t,2,n),this.result=r,this.from=i,this.to=o}hasResult(){return!0}handleUserEvent(t,n,r){var i;let o=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),s=Lv(t.state);if((this.explicitPos<0?s<=o:s<this.from)||s>a||n=="delete"&&Lv(t.startState)==this.from)return new tu(this.source,n=="input"&&r.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),u;return ddt(this.result.validFor,t.state,o,a)?new eO(this.source,l,this.result,o,a):this.result.update&&(u=this.result.update(this.result,o,a,new BX(t.state,s,l>=0)))?new eO(this.source,l,u,u.from,(i=u.to)!==null&&i!==void 0?i:Lv(t.state)):new tu(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new tu(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new eO(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function ddt(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e=="function"?e(i,n,r,t):QAe(e,!0).test(i)}const XAe=oo.define({map(e,t){return e.map(n=>n.map(t))}}),YAe=oo.define(),Zu=tf.define({create(){return m5.start()},update(e,t){return e.update(t)},provide:e=>[HSe.from(e,t=>t.tooltip),ar.contentAttributes.from(e,t=>t.attrs)]});function KAe(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(Zu).active.find(i=>i.source==t.source);return r instanceof eO?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},Jct(e.state,n,r.from,r.to)),{annotations:UAe.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const hdt=odt(Zu,KAe);function BD(e,t="option"){return n=>{let r=n.state.field(Zu,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(nl).interactionDelay)return!1;let i=1,o;t=="page"&&(o=zSe(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));let{length:a}=r.open.options,s=r.open.selected>-1?r.open.selected+i*(e?1:-1):e?0:a-1;return s<0?s=t=="page"?0:a-1:s>=a&&(s=t=="page"?a-1:0),n.dispatch({effects:YAe.of(s)}),!0}}const pdt=e=>{let t=e.state.field(Zu,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(nl).interactionDelay?!1:KAe(e,t.open.options[t.open.selected])},fdt=e=>e.state.field(Zu,!1)?(e.dispatch({effects:FX.of(!0)}),!0):!1,gdt=e=>{let t=e.state.field(Zu,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:oE.of(null)}),!0)};class mdt{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const vdt=50,ydt=1e3,bdt=ud.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(Zu).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(Zu);if(!e.selectionSet&&!e.docChanged&&e.startState.field(Zu)==t)return;let n=e.transactions.some(r=>(r.selection||r.docChanged)&&!$H(r));for(let r=0;r<this.running.length;r++){let i=this.running[r];if(n||i.updates.length+e.transactions.length>vdt&&Date.now()-i.time>ydt){for(let o of i.context.abortListeners)try{o()}catch(a){eh(this.view.state,a)}i.context.abortListeners=null,this.running.splice(r--,1)}else i.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some(r=>r.state==1&&!this.running.some(i=>i.active.source==r.source))?setTimeout(()=>this.startUpdate(),50):-1,this.composing!=0)for(let r of e.transactions)$H(r)=="input"?this.composing=2:this.composing==2&&r.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(Zu);for(let n of t.active)n.state==1&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=Lv(t),r=new BX(t,n,e.explicitPos==n),i=new mdt(e,r);this.running.push(i),Promise.resolve(e.source(r)).then(o=>{i.context.aborted||(i.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:oE.of(null)}),eh(this.view.state,o)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(nl).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(nl);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(i.done===void 0)continue;if(this.running.splice(r--,1),i.done){let a=new eO(i.active.source,i.active.explicitPos,i.done,i.done.from,(e=i.done.to)!==null&&e!==void 0?e:Lv(i.updates.length?i.updates[0].startState:this.view.state));for(let s of i.updates)a=a.update(s,n);if(a.hasResult()){t.push(a);continue}}let o=this.view.state.field(Zu).active.find(a=>a.source==i.active.source);if(o&&o.state==1)if(i.done==null){let a=new tu(i.active.source,0);for(let s of i.updates)a=a.update(s,n);a.state!=1&&t.push(a)}else this.startQuery(o)}t.length&&this.view.dispatch({effects:XAe.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(Zu,!1);if(t&&t.tooltip&&this.view.state.facet(nl).closeOnBlur){let n=t.open&&zSe(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&this.view.dispatch({effects:oE.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:FX.of(!1)}),20),this.composing=0}}}),qAe=ar.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class wdt{constructor(t,n,r,i){this.field=t,this.line=n,this.from=r,this.to=i}}class NX{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,Rl.TrackDel),r=t.mapPos(this.to,1,Rl.TrackDel);return n==null||r==null?null:new NX(this.field,n,r)}}class VX{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],i=[n],o=t.doc.lineAt(n),a=/^\s*/.exec(o.text)[0];for(let l of this.lines){if(r.length){let u=a,c=/^\t*/.exec(l)[0].length;for(let d=0;d<c;d++)u+=t.facet(Mx);i.push(n+u.length-c),l=u+l.slice(c)}r.push(l),n+=l.length+1}let s=this.fieldPositions.map(l=>new NX(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:s}}static parse(t){let n=[],r=[],i=[],o;for(let a of t.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(a);){let s=o[1]?+o[1]:null,l=o[2]||o[3]||"",u=-1;for(let c=0;c<n.length;c++)(s!=null?n[c].seq==s:l&&n[c].name==l)&&(u=c);if(u<0){let c=0;for(;c<n.length&&(s==null||n[c].seq!=null&&n[c].seq<s);)c++;n.splice(c,0,{seq:s,name:l}),u=c;for(let d of i)d.field>=u&&d.field++}i.push(new wdt(u,r.length,o.index,o.index+l.length)),a=a.slice(0,o.index)+l+a.slice(o.index+o[0].length)}for(let s;s=/\\([{}])/.exec(a);){a=a.slice(0,s.index)+s[1]+a.slice(s.index+s[0].length);for(let l of i)l.line==r.length&&l.from>s.index&&(l.from--,l.to--)}r.push(a)}return new VX(r,i)}}let Cdt=na.widget({widget:new class extends _1{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),Odt=na.mark({class:"cm-snippetField"});class Fx{constructor(t,n){this.ranges=t,this.active=n,this.deco=na.set(t.map(r=>(r.from==r.to?Cdt:Odt).range(r.from,r.to)))}map(t){let n=[];for(let r of this.ranges){let i=r.map(t);if(!i)return null;n.push(i)}return new Fx(n,this.active)}selectionInsideField(t){return t.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const F_=oo.define({map(e,t){return e&&e.map(t)}}),xdt=oo.define(),aE=tf.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(F_))return n.value;if(n.is(xdt)&&e)return new Fx(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>ar.decorations.from(e,t=>t?t.deco:na.none)});function jX(e,t){return tn.create(e.filter(n=>n.field==t).map(n=>tn.range(n.from,n.to)))}function Sdt(e){let t=VX.parse(e);return(n,r,i,o)=>{let{text:a,ranges:s}=t.instantiate(n.state,i),l={changes:{from:i,to:o,insert:Ti.of(a)},scrollIntoView:!0,annotations:r?UAe.of(r):void 0};if(s.length&&(l.selection=jX(s,0)),s.length>1){let u=new Fx(s,0),c=l.effects=[F_.of(u)];n.state.field(aE,!1)===void 0&&c.push(oo.appendConfig.of([aE,_dt,Tdt,qAe]))}n.dispatch(n.state.update(l))}}function JAe(e){return({state:t,dispatch:n})=>{let r=t.field(aE,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,o=e>0&&!r.ranges.some(a=>a.field==i+e);return n(t.update({selection:jX(r.ranges,i),effects:F_.of(o?null:new Fx(r.ranges,i)),scrollIntoView:!0})),!0}}const Adt=({state:e,dispatch:t})=>e.field(aE,!1)?(t(e.update({effects:F_.of(null)})),!0):!1,Idt=JAe(1),kdt=JAe(-1),Edt=[{key:"Tab",run:Idt,shift:kdt},{key:"Escape",run:Adt}],vae=ir.define({combine(e){return e.length?e[0]:Edt}}),_dt=E1.highest(Dx.compute([vae],e=>e.facet(vae)));function Jl(e,t){return Object.assign(Object.assign({},t),{apply:Sdt(e)})}const Tdt=ar.domEventHandlers({mousedown(e,t){let n=t.state.field(aE,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(o=>o.from<=r&&o.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:jX(n.ranges,i.field),effects:F_.of(n.ranges.some(o=>o.field>i.field)?new Fx(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),eIe=new class extends Jb{};eIe.startSide=1;eIe.endSide=-1;function Pdt(e={}){return[Zu,nl.of(e),bdt,Rdt,qAe]}const Ddt=[{key:"Ctrl-Space",run:fdt},{key:"Escape",run:gdt},{key:"ArrowDown",run:BD(!0)},{key:"ArrowUp",run:BD(!1)},{key:"PageDown",run:BD(!0,"page")},{key:"PageUp",run:BD(!1,"page")},{key:"Enter",run:pdt}],Rdt=E1.highest(Dx.computeN([nl],e=>e.facet(nl).defaultKeymap?[Ddt]:[])),$dt=[Blt(),Yut(),Elt(),_X(_ut,{fallback:!0}),Dx.of([...Xct,...oct])];function Jt(e){return new NO(TX.define(e))}function wm(e){return Tt(()=>import("./index-X5s1zgkx-CNNaS3pV.js"),[],import.meta.url).then(t=>t.sql({dialect:t[e]}))}const Mdt=[Ft.of({name:"C",extensions:["c","h","ino"],load(){return Tt(()=>import("./index-54-LAWar-By1varpM.js"),[],import.meta.url).then(e=>e.cpp())}}),Ft.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return Tt(()=>import("./index-54-LAWar-By1varpM.js"),[],import.meta.url).then(e=>e.cpp())}}),Ft.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return wm("Cassandra")}}),Ft.of({name:"CSS",extensions:["css"],load(){return Promise.resolve().then(()=>Ept).then(e=>e.css())}}),Ft.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return Promise.resolve().then(()=>fft).then(e=>e.html())}}),Ft.of({name:"Java",extensions:["java"],load(){return Tt(()=>import("./index-EntIzdg8-BdEit1d4.js"),[],import.meta.url).then(e=>e.java())}}),Ft.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return Promise.resolve().then(()=>VD).then(e=>e.javascript())}}),Ft.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return Tt(()=>import("./index-UjwOST8i-D9WS3_HI.js"),[],import.meta.url).then(e=>e.json())}}),Ft.of({name:"JSX",extensions:["jsx"],load(){return Promise.resolve().then(()=>VD).then(e=>e.javascript({jsx:!0}))}}),Ft.of({name:"LESS",extensions:["less"],load(){return Tt(()=>import("./index-Mch4YCSM-DY-DzNPX.js"),[],import.meta.url).then(e=>e.less())}}),Ft.of({name:"MariaDB SQL",load(){return wm("MariaSQL")}}),Ft.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return Promise.resolve().then(()=>Oft).then(e=>e.markdown())}}),Ft.of({name:"MS SQL",load(){return wm("MSSQL")}}),Ft.of({name:"MySQL",load(){return wm("MySQL")}}),Ft.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return Tt(()=>import("./index-ZJpSZet7-BtunRnMC.js"),[],import.meta.url).then(e=>e.php())}}),Ft.of({name:"PLSQL",extensions:["pls"],load(){return wm("PLSQL")}}),Ft.of({name:"PostgreSQL",load(){return wm("PostgreSQL")}}),Ft.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return Tt(()=>import("./index-3bCq0sqp-D_-K2uFx.js"),[],import.meta.url).then(e=>e.python())}}),Ft.of({name:"Rust",extensions:["rs"],load(){return Tt(()=>import("./index-FWeHFBga-Cybnys2D.js"),[],import.meta.url).then(e=>e.rust())}}),Ft.of({name:"Sass",extensions:["sass"],load(){return Tt(()=>import("./index-gGXXHnt2-D-19jcA-.js"),[],import.meta.url).then(e=>e.sass({indented:!0}))}}),Ft.of({name:"SCSS",extensions:["scss"],load(){return Tt(()=>import("./index-gGXXHnt2-D-19jcA-.js"),[],import.meta.url).then(e=>e.sass())}}),Ft.of({name:"SQL",extensions:["sql"],load(){return wm("StandardSQL")}}),Ft.of({name:"SQLite",load(){return wm("SQLite")}}),Ft.of({name:"TSX",extensions:["tsx"],load(){return Promise.resolve().then(()=>VD).then(e=>e.javascript({jsx:!0,typescript:!0}))}}),Ft.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load(){return Promise.resolve().then(()=>VD).then(e=>e.javascript({typescript:!0}))}}),Ft.of({name:"WebAssembly",extensions:["wat","wast"],load(){return Tt(()=>import("./index-O5ryak9O-aAascXGl.js"),[],import.meta.url).then(e=>e.wast())}}),Ft.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return Tt(()=>import("./index-So--KDbv-BrBvv01G.js"),[],import.meta.url).then(e=>e.xml())}}),Ft.of({name:"APL",extensions:["dyalog","apl"],load(){return Tt(()=>import("./apl-p0IPP13W-D7WArCXz.js"),[],import.meta.url).then(e=>Jt(e.apl))}}),Ft.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return Tt(()=>import("./asciiarmor-lJsBxlJJ-D6TdO8TD.js"),[],import.meta.url).then(e=>Jt(e.asciiArmor))}}),Ft.of({name:"ASN.1",extensions:["asn","asn1"],load(){return Tt(()=>import("./asn1-Q9v1zIy5-B5OgQM8O.js"),[],import.meta.url).then(e=>Jt(e.asn1({})))}}),Ft.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return Tt(()=>import("./asterisk-foNkeTjy-B1wugOFz.js"),[],import.meta.url).then(e=>Jt(e.asterisk))}}),Ft.of({name:"Brainfuck",extensions:["b","bf"],load(){return Tt(()=>import("./brainfuck-0XqyXpNS-Wl53svdS.js"),[],import.meta.url).then(e=>Jt(e.brainfuck))}}),Ft.of({name:"Cobol",extensions:["cob","cpy"],load(){return Tt(()=>import("./cobol-APHEnAOX-CIbP12iC.js"),[],import.meta.url).then(e=>Jt(e.cobol))}}),Ft.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return Tt(()=>import("./clike-ak6Z6Yhe-DQ5b7hgF.js"),[],import.meta.url).then(e=>Jt(e.csharp))}}),Ft.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return Tt(()=>import("./clojure-iYO8U8Sg-3LvxNQMc.js"),[],import.meta.url).then(e=>Jt(e.clojure))}}),Ft.of({name:"ClojureScript",extensions:["cljs"],load(){return Tt(()=>import("./clojure-iYO8U8Sg-3LvxNQMc.js"),[],import.meta.url).then(e=>Jt(e.clojure))}}),Ft.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return Tt(()=>import("./css-KHXHXfXg-of5rIwF-.js"),[],import.meta.url).then(e=>Jt(e.gss))}}),Ft.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return Tt(()=>import("./cmake-SVzjkxV_-Cw2cGuRF.js"),[],import.meta.url).then(e=>Jt(e.cmake))}}),Ft.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return Tt(()=>import("./coffeescript-KqQa0SYG-CRWnxrpL.js"),[],import.meta.url).then(e=>Jt(e.coffeeScript))}}),Ft.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return Tt(()=>import("./commonlisp-bwqNqR5V-CJekznK9.js"),[],import.meta.url).then(e=>Jt(e.commonLisp))}}),Ft.of({name:"Cypher",extensions:["cyp","cypher"],load(){return Tt(()=>import("./cypher-XpTt4zQ3-C35K8NKB.js"),[],import.meta.url).then(e=>Jt(e.cypher))}}),Ft.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return Tt(()=>import("./python-sKdHg3Ka-D0q8PM06.js"),[],import.meta.url).then(e=>Jt(e.cython))}}),Ft.of({name:"Crystal",extensions:["cr"],load(){return Tt(()=>import("./crystal-BViWuDpA-Crmlnehi.js"),[],import.meta.url).then(e=>Jt(e.crystal))}}),Ft.of({name:"D",extensions:["d"],load(){return Tt(()=>import("./d-fLig6yqY-BAIXAf6O.js"),[],import.meta.url).then(e=>Jt(e.d))}}),Ft.of({name:"Dart",extensions:["dart"],load(){return Tt(()=>import("./clike-ak6Z6Yhe-DQ5b7hgF.js"),[],import.meta.url).then(e=>Jt(e.dart))}}),Ft.of({name:"diff",extensions:["diff","patch"],load(){return Tt(()=>import("./diff-WoKGLpy6-0m1IdyU6.js"),[],import.meta.url).then(e=>Jt(e.diff))}}),Ft.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return Tt(()=>import("./dockerfile-P8izJOAf-CSgLXvLd.js"),__vite__mapDeps([0,1]),import.meta.url).then(e=>Jt(e.dockerFile))}}),Ft.of({name:"DTD",extensions:["dtd"],load(){return Tt(()=>import("./dtd-SIJRUW6K-DhxpPjFo.js"),[],import.meta.url).then(e=>Jt(e.dtd))}}),Ft.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return Tt(()=>import("./dylan-4HCLhpWP-9FlC0g5l.js"),[],import.meta.url).then(e=>Jt(e.dylan))}}),Ft.of({name:"EBNF",load(){return Tt(()=>import("./ebnf-h_0lged5-CNOsRbxa.js"),[],import.meta.url).then(e=>Jt(e.ebnf))}}),Ft.of({name:"ECL",extensions:["ecl"],load(){return Tt(()=>import("./ecl-Lf4FF0lf-wqKQqXv9.js"),[],import.meta.url).then(e=>Jt(e.ecl))}}),Ft.of({name:"edn",extensions:["edn"],load(){return Tt(()=>import("./clojure-iYO8U8Sg-3LvxNQMc.js"),[],import.meta.url).then(e=>Jt(e.clojure))}}),Ft.of({name:"Eiffel",extensions:["e"],load(){return Tt(()=>import("./eiffel-qlw8KUyf-cnBwAhut.js"),[],import.meta.url).then(e=>Jt(e.eiffel))}}),Ft.of({name:"Elm",extensions:["elm"],load(){return Tt(()=>import("./elm-QRnB3zXs-731feCY3.js"),[],import.meta.url).then(e=>Jt(e.elm))}}),Ft.of({name:"Erlang",extensions:["erl"],load(){return Tt(()=>import("./erlang-fyVKb7eK-855_5tXK.js"),[],import.meta.url).then(e=>Jt(e.erlang))}}),Ft.of({name:"Esper",load(){return Tt(()=>import("./sql-tebLBzN0-CQUYZiZH.js"),[],import.meta.url).then(e=>Jt(e.esper))}}),Ft.of({name:"Factor",extensions:["factor"],load(){return Tt(()=>import("./factor-Uq0_GFro-BGcx0QMX.js"),__vite__mapDeps([2,1]),import.meta.url).then(e=>Jt(e.factor))}}),Ft.of({name:"FCL",load(){return Tt(()=>import("./fcl-lRek3hEb-C8-MVIK4.js"),[],import.meta.url).then(e=>Jt(e.fcl))}}),Ft.of({name:"Forth",extensions:["forth","fth","4th"],load(){return Tt(()=>import("./forth-ua2bRd8T-DbDZvwuH.js"),[],import.meta.url).then(e=>Jt(e.forth))}}),Ft.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return Tt(()=>import("./fortran-WnF7znuN-C2bV8tzR.js"),[],import.meta.url).then(e=>Jt(e.fortran))}}),Ft.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return Tt(()=>import("./mllike-Dy551fZW-DRLIlAAs.js"),[],import.meta.url).then(e=>Jt(e.fSharp))}}),Ft.of({name:"Gas",extensions:["s"],load(){return Tt(()=>import("./gas-wowve1o7-DzvEurQP.js"),[],import.meta.url).then(e=>Jt(e.gas))}}),Ft.of({name:"Gherkin",extensions:["feature"],load(){return Tt(()=>import("./gherkin-m7GIChu3-BJRWJmSe.js"),[],import.meta.url).then(e=>Jt(e.gherkin))}}),Ft.of({name:"Go",extensions:["go"],load(){return Tt(()=>import("./go-th443Dhb-CMeeduhc.js"),[],import.meta.url).then(e=>Jt(e.go))}}),Ft.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return Tt(()=>import("./groovy-tR4RiZnc-CmCu52Cq.js"),[],import.meta.url).then(e=>Jt(e.groovy))}}),Ft.of({name:"Haskell",extensions:["hs"],load(){return Tt(()=>import("./haskell-jxVBofv5-B-XCkE_e.js"),[],import.meta.url).then(e=>Jt(e.haskell))}}),Ft.of({name:"Haxe",extensions:["hx"],load(){return Tt(()=>import("./haxe-kWPI2tq3-yHkYfTpp.js"),[],import.meta.url).then(e=>Jt(e.haxe))}}),Ft.of({name:"HXML",extensions:["hxml"],load(){return Tt(()=>import("./haxe-kWPI2tq3-yHkYfTpp.js"),[],import.meta.url).then(e=>Jt(e.hxml))}}),Ft.of({name:"HTTP",load(){return Tt(()=>import("./http-3GIFWUlG-BRoOXsOT.js"),[],import.meta.url).then(e=>Jt(e.http))}}),Ft.of({name:"IDL",extensions:["pro"],load(){return Tt(()=>import("./idl-PvpMZg-l-BEugSyMb.js"),[],import.meta.url).then(e=>Jt(e.idl))}}),Ft.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return Tt(()=>import("./javascript-8ZHqHagw-CHCd-tf1.js"),[],import.meta.url).then(e=>Jt(e.jsonld))}}),Ft.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load(){return Tt(()=>import("./jinja2-vsOFe0qD-DJ8awFBQ.js"),[],import.meta.url).then(e=>Jt(e.jinja2))}}),Ft.of({name:"Julia",extensions:["jl"],load(){return Tt(()=>import("./julia-dlp_pbN1-BILsQ82t.js"),[],import.meta.url).then(e=>Jt(e.julia))}}),Ft.of({name:"Kotlin",extensions:["kt"],load(){return Tt(()=>import("./clike-ak6Z6Yhe-DQ5b7hgF.js"),[],import.meta.url).then(e=>Jt(e.kotlin))}}),Ft.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return Tt(()=>import("./livescript-Gf5R-LT6-CZX1hJZG.js"),[],import.meta.url).then(e=>Jt(e.liveScript))}}),Ft.of({name:"Lua",extensions:["lua"],load(){return Tt(()=>import("./lua-c5Y_JsBp-B5yOUOto.js"),[],import.meta.url).then(e=>Jt(e.lua))}}),Ft.of({name:"mIRC",extensions:["mrc"],load(){return Tt(()=>import("./mirc-i0qkCa0y-BZJEXc_W.js"),[],import.meta.url).then(e=>Jt(e.mirc))}}),Ft.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return Tt(()=>import("./mathematica-iiGTGmUs-DqXyap6c.js"),[],import.meta.url).then(e=>Jt(e.mathematica))}}),Ft.of({name:"Modelica",extensions:["mo"],load(){return Tt(()=>import("./modelica-n6tGqUT9-n9rh7Ftj.js"),[],import.meta.url).then(e=>Jt(e.modelica))}}),Ft.of({name:"MUMPS",extensions:["mps"],load(){return Tt(()=>import("./mumps-lNiKA6sp-BdTKDTnc.js"),[],import.meta.url).then(e=>Jt(e.mumps))}}),Ft.of({name:"Mbox",extensions:["mbox"],load(){return Tt(()=>import("./mbox-ZJh86H8B-LlmIMV94.js"),[],import.meta.url).then(e=>Jt(e.mbox))}}),Ft.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return Tt(()=>import("./nginx--YmuCfDj-Bb2cpS42.js"),[],import.meta.url).then(e=>Jt(e.nginx))}}),Ft.of({name:"NSIS",extensions:["nsh","nsi"],load(){return Tt(()=>import("./nsis-gURxwqa7-BcAS7enX.js"),__vite__mapDeps([3,1]),import.meta.url).then(e=>Jt(e.nsis))}}),Ft.of({name:"NTriples",extensions:["nt","nq"],load(){return Tt(()=>import("./ntriples-E3jQl3MC-DXBIMKTh.js"),[],import.meta.url).then(e=>Jt(e.ntriples))}}),Ft.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return Tt(()=>import("./clike-ak6Z6Yhe-DQ5b7hgF.js"),[],import.meta.url).then(e=>Jt(e.objectiveC))}}),Ft.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return Tt(()=>import("./clike-ak6Z6Yhe-DQ5b7hgF.js"),[],import.meta.url).then(e=>Jt(e.objectiveCpp))}}),Ft.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return Tt(()=>import("./mllike-Dy551fZW-DRLIlAAs.js"),[],import.meta.url).then(e=>Jt(e.oCaml))}}),Ft.of({name:"Octave",extensions:["m"],load(){return Tt(()=>import("./octave-EQvkGIeG-DPdn8BXl.js"),[],import.meta.url).then(e=>Jt(e.octave))}}),Ft.of({name:"Oz",extensions:["oz"],load(){return Tt(()=>import("./oz-W2cpqFf6-mvQ0n2ip.js"),[],import.meta.url).then(e=>Jt(e.oz))}}),Ft.of({name:"Pascal",extensions:["p","pas"],load(){return Tt(()=>import("./pascal-lCh6ouNZ-CYAhTEwy.js"),[],import.meta.url).then(e=>Jt(e.pascal))}}),Ft.of({name:"Perl",extensions:["pl","pm"],load(){return Tt(()=>import("./perl-PxEQBX0B-J_OvAbst.js"),[],import.meta.url).then(e=>Jt(e.perl))}}),Ft.of({name:"Pig",extensions:["pig"],load(){return Tt(()=>import("./pig-Y_bNcrzS-D1YyGuOE.js"),[],import.meta.url).then(e=>Jt(e.pig))}}),Ft.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return Tt(()=>import("./powershell-GaQP-TZr-BxzhhpH2.js"),[],import.meta.url).then(e=>Jt(e.powerShell))}}),Ft.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return Tt(()=>import("./properties-mbRyn54L-BVvrAmjE.js"),[],import.meta.url).then(e=>Jt(e.properties))}}),Ft.of({name:"ProtoBuf",extensions:["proto"],load(){return Tt(()=>import("./protobuf-8CJideyJ-BEWyzqFh.js"),[],import.meta.url).then(e=>Jt(e.protobuf))}}),Ft.of({name:"Puppet",extensions:["pp"],load(){return Tt(()=>import("./puppet-ABBaChNZ-QHdR7mmE.js"),[],import.meta.url).then(e=>Jt(e.puppet))}}),Ft.of({name:"Q",extensions:["q"],load(){return Tt(()=>import("./q-_1yG40Nm-peKwfeIO.js"),[],import.meta.url).then(e=>Jt(e.q))}}),Ft.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return Tt(()=>import("./r-Ziz56bHT-CrAh6M-F.js"),[],import.meta.url).then(e=>Jt(e.r))}}),Ft.of({name:"RPM Changes",load(){return Tt(()=>import("./rpm-ORjGOHaQ-BjpS_sNl.js"),[],import.meta.url).then(e=>Jt(e.rpmChanges))}}),Ft.of({name:"RPM Spec",extensions:["spec"],load(){return Tt(()=>import("./rpm-ORjGOHaQ-BjpS_sNl.js"),[],import.meta.url).then(e=>Jt(e.rpmSpec))}}),Ft.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return Tt(()=>import("./ruby-jlbYq0dT-DC8iB0cn.js"),[],import.meta.url).then(e=>Jt(e.ruby))}}),Ft.of({name:"SAS",extensions:["sas"],load(){return Tt(()=>import("./sas-2n7xeUuO-BZp3VvI1.js"),[],import.meta.url).then(e=>Jt(e.sas))}}),Ft.of({name:"Scala",extensions:["scala"],load(){return Tt(()=>import("./clike-ak6Z6Yhe-DQ5b7hgF.js"),[],import.meta.url).then(e=>Jt(e.scala))}}),Ft.of({name:"Scheme",extensions:["scm","ss"],load(){return Tt(()=>import("./scheme-XCs-NPeU-DYodrSPv.js"),[],import.meta.url).then(e=>Jt(e.scheme))}}),Ft.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return Tt(()=>import("./shell-0_1Um7Dq-B4KgRGVw.js"),[],import.meta.url).then(e=>Jt(e.shell))}}),Ft.of({name:"Sieve",extensions:["siv","sieve"],load(){return Tt(()=>import("./sieve-7uyJD1x1-CSsdXFZa.js"),[],import.meta.url).then(e=>Jt(e.sieve))}}),Ft.of({name:"Smalltalk",extensions:["st"],load(){return Tt(()=>import("./smalltalk-PEFzrlQ--Cv5PAYTd.js"),[],import.meta.url).then(e=>Jt(e.smalltalk))}}),Ft.of({name:"Solr",load(){return Tt(()=>import("./solr-BLBaHahN-CTb3vFn-.js"),[],import.meta.url).then(e=>Jt(e.solr))}}),Ft.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return Tt(()=>import("./mllike-Dy551fZW-DRLIlAAs.js"),[],import.meta.url).then(e=>Jt(e.sml))}}),Ft.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return Tt(()=>import("./sparql-4F9ZWf1b-CVHfzWfo.js"),[],import.meta.url).then(e=>Jt(e.sparql))}}),Ft.of({name:"Spreadsheet",alias:["excel","formula"],load(){return Tt(()=>import("./spreadsheet-SGSo6blj-tPaP8SYl.js"),[],import.meta.url).then(e=>Jt(e.spreadsheet))}}),Ft.of({name:"Squirrel",extensions:["nut"],load(){return Tt(()=>import("./clike-ak6Z6Yhe-DQ5b7hgF.js"),[],import.meta.url).then(e=>Jt(e.squirrel))}}),Ft.of({name:"Stylus",extensions:["styl"],load(){return Tt(()=>import("./stylus-rwwWYWFm-BKedK6t3.js"),[],import.meta.url).then(e=>Jt(e.stylus))}}),Ft.of({name:"Swift",extensions:["swift"],load(){return Tt(()=>import("./swift-eorJ0tCv-CxZ8Z43O.js"),[],import.meta.url).then(e=>Jt(e.swift))}}),Ft.of({name:"sTeX",load(){return Tt(()=>import("./stex-SFJcFGOO-Cy-XoIq4.js"),[],import.meta.url).then(e=>Jt(e.stex))}}),Ft.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return Tt(()=>import("./stex-SFJcFGOO-Cy-XoIq4.js"),[],import.meta.url).then(e=>Jt(e.stex))}}),Ft.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return Tt(()=>import("./verilog-KlcACt6C-8faKhw2d.js"),[],import.meta.url).then(e=>Jt(e.verilog))}}),Ft.of({name:"Tcl",extensions:["tcl"],load(){return Tt(()=>import("./tcl-IwXMB8U4-D2jPJ77M.js"),[],import.meta.url).then(e=>Jt(e.tcl))}}),Ft.of({name:"Textile",extensions:["textile"],load(){return Tt(()=>import("./textile-ok2VyjwC-B8VlRYgD.js"),[],import.meta.url).then(e=>Jt(e.textile))}}),Ft.of({name:"TiddlyWiki",load(){return Tt(()=>import("./tiddlywiki-DLhz8_pc-C9oW0DQP.js"),[],import.meta.url).then(e=>Jt(e.tiddlyWiki))}}),Ft.of({name:"Tiki wiki",load(){return Tt(()=>import("./tiki-DFAqFElY-CWLkmvND.js"),[],import.meta.url).then(e=>Jt(e.tiki))}}),Ft.of({name:"TOML",extensions:["toml"],load(){return Tt(()=>import("./toml-ryxpTZEV-DelOH-K5.js"),[],import.meta.url).then(e=>Jt(e.toml))}}),Ft.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return Tt(()=>import("./troff-ZzZyvNct-Bpv0B5Yc.js"),[],import.meta.url).then(e=>Jt(e.troff))}}),Ft.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return Tt(()=>import("./ttcn-6gvkqqpW-DswiyUou.js"),[],import.meta.url).then(e=>Jt(e.ttcn))}}),Ft.of({name:"TTCN_CFG",extensions:["cfg"],load(){return Tt(()=>import("./ttcn-cfg-oSu-Dq5C-BtA-Pioy.js"),[],import.meta.url).then(e=>Jt(e.ttcnCfg))}}),Ft.of({name:"Turtle",extensions:["ttl"],load(){return Tt(()=>import("./turtle-10ofr5au-P7hf7J5Z.js"),[],import.meta.url).then(e=>Jt(e.turtle))}}),Ft.of({name:"Web IDL",extensions:["webidl"],load(){return Tt(()=>import("./webidl-z1UE5DN_-DGCXNNRE.js"),[],import.meta.url).then(e=>Jt(e.webIDL))}}),Ft.of({name:"VB.NET",extensions:["vb"],load(){return Tt(()=>import("./vb-a6n6fzrD-D0410C-R.js"),[],import.meta.url).then(e=>Jt(e.vb))}}),Ft.of({name:"VBScript",extensions:["vbs"],load(){return Tt(()=>import("./vbscript-dgvo8jPt-B_zKLuKM.js"),[],import.meta.url).then(e=>Jt(e.vbScript))}}),Ft.of({name:"Velocity",extensions:["vtl"],load(){return Tt(()=>import("./velocity-CBncCrwO-D9gEfii1.js"),[],import.meta.url).then(e=>Jt(e.velocity))}}),Ft.of({name:"Verilog",extensions:["v"],load(){return Tt(()=>import("./verilog-KlcACt6C-8faKhw2d.js"),[],import.meta.url).then(e=>Jt(e.verilog))}}),Ft.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return Tt(()=>import("./vhdl-NMd7Gf35-C8gANnyM.js"),[],import.meta.url).then(e=>Jt(e.vhdl))}}),Ft.of({name:"XQuery",extensions:["xy","xquery"],load(){return Tt(()=>import("./xquery-hDt5jWTp-CGyeqCRo.js"),[],import.meta.url).then(e=>Jt(e.xQuery))}}),Ft.of({name:"Yacas",extensions:["ys"],load(){return Tt(()=>import("./yacas-ftgh_qwr-BXuGzsDd.js"),[],import.meta.url).then(e=>Jt(e.yacas))}}),Ft.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return Tt(()=>import("./yaml-DnNTfjXK-CmesbjN8.js"),[],import.meta.url).then(e=>Jt(e.yaml))}}),Ft.of({name:"Z80",extensions:["z80"],load(){return Tt(()=>import("./z80-dA1PqWe1-CG4NjWR9.js"),[],import.meta.url).then(e=>Jt(e.z80))}}),Ft.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return Tt(()=>import("./mscgen-aKSbB7D9-BrtCRZu9.js"),[],import.meta.url).then(e=>Jt(e.mscgen))}}),Ft.of({name:"Xù",extensions:["xu"],load(){return Tt(()=>import("./mscgen-aKSbB7D9-BrtCRZu9.js"),[],import.meta.url).then(e=>Jt(e.xu))}}),Ft.of({name:"MsGenny",extensions:["msgenny"],load(){return Tt(()=>import("./mscgen-aKSbB7D9-BrtCRZu9.js"),[],import.meta.url).then(e=>Jt(e.msgenny))}}),Ft.of({name:"Vue",extensions:["vue"],load(){return Tt(()=>import("./index-RzqRpdpO-D0gc0mvA.js"),[],import.meta.url).then(e=>e.vue())}}),Ft.of({name:"Angular Template",load(){return Tt(()=>import("./index-Q9CZoHZ5-DazznxDv.js"),[],import.meta.url).then(e=>e.angular())}})];class v5{static create(t,n,r,i,o){let a=i+(i<<8)+t+(n<<4)|0;return new v5(t,n,r,a,o,[],[])}constructor(t,n,r,i,o,a,s){this.type=t,this.value=n,this.from=r,this.hash=i,this.end=o,this.children=a,this.positions=s,this.hashProp=[[Ir.contextHash,i]]}addChild(t,n){t.prop(Ir.contextHash)!=this.hash&&(t=new ai(t.type,t.children,t.positions,t.length,this.hashProp)),this.children.push(t),this.positions.push(n)}toTree(t,n=this.end){let r=this.children.length-1;return r>=0&&(n=Math.max(n,this.positions[r]+this.children[r].length+this.from)),new ai(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(i,o,a)=>new ai(Xa.none,i,o,a,this.hashProp)})}}var gn;(function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"})(gn||(gn={}));class Ldt{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class Bdt{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let t=this.skipSpace(this.basePos);this.indent=this.countIndent(t,this.pos,this.indent),this.pos=t,this.next=t==this.text.length?-1:this.text.charCodeAt(t)}skipSpace(t){return Bk(this.text,t)}reset(t){for(this.text=t,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(t){this.basePos=t,this.baseIndent=this.countIndent(t,this.pos,this.indent)}moveBaseColumn(t){this.baseIndent=t,this.basePos=this.findColumn(t)}addMarker(t){this.markers.push(t)}countIndent(t,n=0,r=0){for(let i=n;i<t;i++)r+=this.text.charCodeAt(i)==9?4-r%4:1;return r}findColumn(t){let n=0;for(let r=0;n<this.text.length&&r<t;n++)r+=this.text.charCodeAt(n)==9?4-r%4:1;return n}scrub(){if(!this.baseIndent)return this.text;let t="";for(let n=0;n<this.basePos;n++)t+=" ";return t+this.text.slice(this.basePos)}}function yae(e,t,n){if(n.pos==n.text.length||e!=t.block&&n.indent>=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==gn.OrderedList?zX:HX)(n,t,!1);return r>0&&(e.type!=gn.BulletList||WX(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const tIe={[gn.Blockquote](e,t,n){return n.next!=62?!1:(n.markers.push(wi(gn.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(Cd(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[gn.ListItem](e,t,n){return n.indent<n.baseIndent+e.value&&n.next>-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[gn.OrderedList]:yae,[gn.BulletList]:yae,[gn.Document](){return!0}};function Cd(e){return e==32||e==9||e==10||e==13}function Bk(e,t=0){for(;t<e.length&&Cd(e.charCodeAt(t));)t++;return t}function bae(e,t,n){for(;t>n&&Cd(e.charCodeAt(t-1));)t--;return t}function nIe(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;if(t<e.pos+3)return-1;if(e.next==96){for(let n=t;n<e.text.length;n++)if(e.text.charCodeAt(n)==96)return-1}return t}function rIe(e){return e.next!=62?-1:e.text.charCodeAt(e.pos+1)==32?2:1}function WX(e,t,n){if(e.next!=42&&e.next!=45&&e.next!=95)return-1;let r=1;for(let i=e.pos+1;i<e.text.length;i++){let o=e.text.charCodeAt(i);if(o==e.next)r++;else if(!Cd(o))return-1}return n&&e.next==45&&aIe(e)>-1&&e.depth==t.stack.length||r<3?-1:1}function iIe(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function HX(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||Cd(e.text.charCodeAt(e.pos+1)))&&(!n||iIe(t,gn.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?1:-1}function zX(e,t,n){let r=e.pos,i=e.next;for(;i>=48&&i<=57;){if(r++,r==e.text.length)return-1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||i!=46&&i!=41||r<e.text.length-1&&!Cd(e.text.charCodeAt(r+1))||n&&!iIe(t,gn.OrderedList)&&(e.skipSpace(r+1)==e.text.length||r>e.pos+1||e.next!=49)?-1:r+1-e.pos}function oIe(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==35;)t++;if(t<e.text.length&&e.text.charCodeAt(t)!=32)return-1;let n=t-e.pos;return n>6?-1:n}function aIe(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;let n=t;for(;t<e.text.length&&Cd(e.text.charCodeAt(t));)t++;return t==e.text.length?n:-1}const MH=/^[ \t]*$/,sIe=/-->/,lIe=/\?>/,LH=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,sIe],[/^\s*<\?/,lIe],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,MH],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,MH]];function uIe(e,t,n){if(e.next!=60)return-1;let r=e.text.slice(e.pos);for(let i=0,o=LH.length-(n?1:0);i<o;i++)if(LH[i][0].test(r))return i;return-1}function wae(e,t){let n=e.countIndent(t,e.pos,e.indent),r=e.countIndent(e.skipSpace(t),t,n);return r>=n+5?n+1:r}function Sy(e,t,n){let r=e.length-1;r>=0&&e[r].to==t&&e[r].type==gn.CodeText?e[r].to=n:e.push(wi(gn.CodeText,t,n))}const FD={LinkReference:void 0,IndentedCode(e,t){let n=t.baseIndent+4;if(t.indent<n)return!1;let r=t.findColumn(n),i=e.lineStart+r,o=e.lineStart+t.text.length,a=[],s=[];for(Sy(a,i,o);e.nextLine()&&t.depth>=e.stack.length;)if(t.pos==t.text.length){Sy(s,e.lineStart-1,e.lineStart);for(let l of t.markers)s.push(l)}else{if(t.indent<n)break;{if(s.length){for(let u of s)u.type==gn.CodeText?Sy(a,u.from,u.to):a.push(u);s=[]}Sy(a,e.lineStart-1,e.lineStart);for(let u of t.markers)a.push(u);o=e.lineStart+t.text.length;let l=e.lineStart+t.findColumn(t.baseIndent+4);l<o&&Sy(a,l,o)}}return s.length&&(s=s.filter(l=>l.type!=gn.CodeText),s.length&&(t.markers=s.concat(t.markers))),e.addNode(e.buffer.writeElements(a,-i).finish(gn.CodeBlock,o-i),i),!0},FencedCode(e,t){let n=nIe(t);if(n<0)return!1;let r=e.lineStart+t.pos,i=t.next,o=n-t.pos,a=t.skipSpace(n),s=bae(t.text,t.text.length,a),l=[wi(gn.CodeMark,r,r+o)];a<s&&l.push(wi(gn.CodeInfo,e.lineStart+a,e.lineStart+s));for(let u=!0;e.nextLine()&&t.depth>=e.stack.length;u=!1){let c=t.pos;if(t.indent-t.baseIndent<4)for(;c<t.text.length&&t.text.charCodeAt(c)==i;)c++;if(c-t.pos>=o&&t.skipSpace(c)==t.text.length){for(let d of t.markers)l.push(d);l.push(wi(gn.CodeMark,e.lineStart+t.pos,e.lineStart+c)),e.nextLine();break}else{u||Sy(l,e.lineStart-1,e.lineStart);for(let f of t.markers)l.push(f);let d=e.lineStart+t.basePos,h=e.lineStart+t.text.length;d<h&&Sy(l,d,h)}}return e.addNode(e.buffer.writeElements(l,-r).finish(gn.FencedCode,e.prevLineEnd()-r),r),!0},Blockquote(e,t){let n=rIe(t);return n<0?!1:(e.startContext(gn.Blockquote,t.pos),e.addNode(gn.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1),t.moveBase(t.pos+n),null)},HorizontalRule(e,t){if(WX(t,e,!1)<0)return!1;let n=e.lineStart+t.pos;return e.nextLine(),e.addNode(gn.HorizontalRule,n),!0},BulletList(e,t){let n=HX(t,e,!1);if(n<0)return!1;e.block.type!=gn.BulletList&&e.startContext(gn.BulletList,t.basePos,t.next);let r=wae(t,t.pos+1);return e.startContext(gn.ListItem,t.basePos,r-t.baseIndent),e.addNode(gn.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),null},OrderedList(e,t){let n=zX(t,e,!1);if(n<0)return!1;e.block.type!=gn.OrderedList&&e.startContext(gn.OrderedList,t.basePos,t.text.charCodeAt(t.pos+n-1));let r=wae(t,t.pos+n);return e.startContext(gn.ListItem,t.basePos,r-t.baseIndent),e.addNode(gn.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),null},ATXHeading(e,t){let n=oIe(t);if(n<0)return!1;let r=t.pos,i=e.lineStart+r,o=bae(t.text,t.text.length,r),a=o;for(;a>r&&t.text.charCodeAt(a-1)==t.next;)a--;(a==o||a==r||!Cd(t.text.charCodeAt(a-1)))&&(a=t.text.length);let s=e.buffer.write(gn.HeaderMark,0,n).writeElements(e.parser.parseInline(t.text.slice(r+n+1,a),i+n+1),-i);a<t.text.length&&s.write(gn.HeaderMark,a-r,o-r);let l=s.finish(gn.ATXHeading1-1+n,t.text.length-r);return e.nextLine(),e.addNode(l,i),!0},HTMLBlock(e,t){let n=uIe(t,e,!1);if(n<0)return!1;let r=e.lineStart+t.pos,i=LH[n][1],o=[],a=i!=MH;for(;!i.test(t.text)&&e.nextLine();){if(t.depth<e.stack.length){a=!1;break}for(let u of t.markers)o.push(u)}a&&e.nextLine();let s=i==sIe?gn.CommentBlock:i==lIe?gn.ProcessingInstructionBlock:gn.HTMLBlock,l=e.prevLineEnd();return e.addNode(e.buffer.writeElements(o,-r).finish(s,l-r),r),!0},SetextHeading:void 0};class Fdt{constructor(t){this.stage=0,this.elts=[],this.pos=0,this.start=t.start,this.advance(t.content)}nextLine(t,n,r){if(this.stage==-1)return!1;let i=r.content+`
|
|
`+n.scrub(),o=this.advance(i);return o>-1&&o<i.length?this.complete(t,r,o):!1}finish(t,n){return(this.stage==2||this.stage==3)&&Bk(n.content,this.pos)==n.content.length?this.complete(t,n,n.content.length):!1}complete(t,n,r){return t.addLeafElement(n,wi(gn.LinkReference,this.start,this.start+r,this.elts)),!0}nextStage(t){return t?(this.pos=t.to-this.start,this.elts.push(t),this.stage++,!0):(t===!1&&(this.stage=-1),!1)}advance(t){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(yIe(t,this.pos,this.start,!0)))return-1;if(t.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(wi(gn.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(mIe(t,Bk(t,this.pos),this.start)))return-1}else if(this.stage==2){let n=Bk(t,this.pos),r=0;if(n>this.pos){let i=vIe(t,n,this.start);if(i){let o=yN(t,i.to-this.start);o>0&&(this.nextStage(i),r=o)}}return r||(r=yN(t,this.pos)),r>0&&r<t.length?r:-1}else return yN(t,this.pos)}}}function yN(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n==10)break;if(!Cd(n))return-1}return t}class Ndt{nextLine(t,n,r){let i=n.depth<t.stack.length?-1:aIe(n),o=n.next;if(i<0)return!1;let a=wi(gn.HeaderMark,t.lineStart+n.pos,t.lineStart+i);return t.nextLine(),t.addLeafElement(r,wi(o==61?gn.SetextHeading1:gn.SetextHeading2,r.start,t.prevLineEnd(),[...t.parser.parseInline(r.content,r.start),a])),!0}finish(){return!1}}const Vdt={LinkReference(e,t){return t.content.charCodeAt(0)==91?new Fdt(t):null},SetextHeading(){return new Ndt}},jdt=[(e,t)=>oIe(t)>=0,(e,t)=>nIe(t)>=0,(e,t)=>rIe(t)>=0,(e,t)=>HX(t,e,!0)>=0,(e,t)=>zX(t,e,!0)>=0,(e,t)=>WX(t,e,!0)>=0,(e,t)=>uIe(t,e,!0)>=0],Wdt={text:"",end:0};class Hdt{constructor(t,n,r,i){this.parser=t,this.input=n,this.ranges=i,this.line=new Bdt,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=i[i.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=i[0].from,this.block=v5.create(gn.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=r.length?new Qdt(r,n):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:t}=this;for(;;){for(let r=0;;){let i=t.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;r<t.markers.length&&(!i||t.markers[r].from<i.end);){let o=t.markers[r++];this.addNode(o.type,o.from,o.to)}if(!i)break;this.finishContext()}if(t.pos<t.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(t.basePos))return null;e:for(;;){for(let r of this.parser.blockParsers)if(r){let i=r(this,t);if(i!=!1){if(i==!0)return null;t.forward();continue e}}break}let n=new Ldt(this.lineStart+t.pos,t.text.slice(t.pos));for(let r of this.parser.leafBlockParsers)if(r){let i=r(this,n);i&&n.parsers.push(i)}e:for(;this.nextLine()&&t.pos!=t.text.length;){if(t.indent<t.baseIndent+4){for(let r of this.parser.endLeafBlock)if(r(this,t,n))break e}for(let r of n.parsers)if(r.nextLine(this,t,n))return null;n.content+=`
|
|
`+t.scrub();for(let r of t.markers)n.marks.push(r)}return this.finishLeaf(n),null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}reuseFragment(t){if(!this.fragments.moveTo(this.absoluteLineStart+t,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let n=this.fragments.takeNodes(this);return n?(this.absoluteLineStart+=n,this.lineStart=bIe(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(t=this.depth-1){return this.parser.nodeSet.types[this.stack[t].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(t){let n=Wdt;if(n.end=t,t>=this.to)n.text="";else if(n.text=this.lineChunkAt(t),n.end+=n.text.length,this.ranges.length>1){let r=this.absoluteLineStart,i=this.rangeI;for(;this.ranges[i].to<n.end;){i++;let o=this.ranges[i].from,a=this.lineChunkAt(o);n.end=o+a.length,n.text=n.text.slice(0,this.ranges[i-1].to-r)+a,r=n.end-n.text.length}}return n}readLine(){let{line:t}=this,{text:n,end:r}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=r,t.reset(n);t.depth<this.stack.length;t.depth++){let i=this.stack[t.depth],o=this.parser.skipContextMarkup[i.type];if(!o)throw new Error("Unhandled block context "+gn[i.type]);if(!o(i,this,t))break;t.forward()}}lineChunkAt(t){let n=this.input.chunk(t),r;if(this.input.lineChunks)r=n==`
|
|
`?"":n;else{let i=n.indexOf(`
|
|
`);r=i<0?n:n.slice(0,i)}return t+r.length>this.to?r.slice(0,this.to-t):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(t,n,r=0){this.block=v5.create(t,r,this.lineStart+n,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(t,n,r=0){this.startContext(this.parser.getNodeType(t),n,r)}addNode(t,n,r){typeof t=="number"&&(t=new ai(this.parser.nodeSet.types[t],VO,VO,(r??this.prevLineEnd())-n)),this.block.addChild(t,n-this.block.from)}addElement(t){this.block.addChild(t.toTree(this.parser.nodeSet),t.from-this.block.from)}addLeafElement(t,n){this.addNode(this.buffer.writeElements(FH(n.children,t.marks),-n.from).finish(n.type,n.to-n.from),n.from)}finishContext(){let t=this.stack.pop(),n=this.stack[this.stack.length-1];n.addChild(t.toTree(this.parser.nodeSet),t.from-n.from),this.block=n}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(t){return this.ranges.length>1?cIe(this.ranges,0,t.topNode,this.ranges[0].from,this.reusePlaceholders):t}finishLeaf(t){for(let r of t.parsers)if(r.finish(this,t))return;let n=FH(this.parser.parseInline(t.content,t.start),t.marks);this.addNode(this.buffer.writeElements(n,-t.start).finish(gn.Paragraph,t.content.length),t.start)}elt(t,n,r,i){return typeof t=="string"?wi(this.parser.getNodeType(t),n,r,i):new pIe(t,n)}get buffer(){return new hIe(this.parser.nodeSet)}}function cIe(e,t,n,r,i){let o=e[t].to,a=[],s=[],l=n.from+r;function u(c,d){for(;d?c>=o:c>o;){let h=e[t+1].from-o;r+=h,c+=h,t++,o=e[t].to}}for(let c=n.firstChild;c;c=c.nextSibling){u(c.from+r,!0);let d=c.from+r,h,f=i.get(c.tree);f?h=f:c.to+r>o?(h=cIe(e,t,c,r,i),u(c.to+r,!1)):h=c.toTree(),a.push(h),s.push(d-l)}return u(n.to+r,!1),new ai(n.type,a,s,n.to+r-l,n.tree?n.tree.propValues:void 0)}class qL extends ZL{constructor(t,n,r,i,o,a,s,l,u){super(),this.nodeSet=t,this.blockParsers=n,this.leafBlockParsers=r,this.blockNames=i,this.endLeafBlock=o,this.skipContextMarkup=a,this.inlineParsers=s,this.inlineNames=l,this.wrappers=u,this.nodeTypes=Object.create(null);for(let c of t.types)this.nodeTypes[c.name]=c.id}createParse(t,n,r){let i=new Hdt(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}configure(t){let n=BH(t);if(!n)return this;let{nodeSet:r,skipContextMarkup:i}=this,o=this.blockParsers.slice(),a=this.leafBlockParsers.slice(),s=this.blockNames.slice(),l=this.inlineParsers.slice(),u=this.inlineNames.slice(),c=this.endLeafBlock.slice(),d=this.wrappers;if(OA(n.defineNodes)){i=Object.assign({},i);let h=r.types.slice(),f;for(let g of n.defineNodes){let{name:b,block:v,composite:m,style:w}=typeof g=="string"?{name:g}:g;if(h.some(S=>S.name==b))continue;m&&(i[h.length]=(S,I,O)=>m(I,O,S.value));let k=h.length,T=m?["Block","BlockContext"]:v?k>=gn.ATXHeading1&&k<=gn.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;h.push(Xa.define({id:k,name:b,props:T&&[[Ir.group,T]]})),w&&(f||(f={}),Array.isArray(w)||w instanceof Uf?f[b]=w:Object.assign(f,w))}r=new Rx(h),f&&(r=r.extend($x(f)))}if(OA(n.props)&&(r=r.extend(...n.props)),OA(n.remove))for(let h of n.remove){let f=this.blockNames.indexOf(h),g=this.inlineNames.indexOf(h);f>-1&&(o[f]=a[f]=void 0),g>-1&&(l[g]=void 0)}if(OA(n.parseBlock))for(let h of n.parseBlock){let f=s.indexOf(h.name);if(f>-1)o[f]=h.parse,a[f]=h.leaf;else{let g=h.before?ND(s,h.before):h.after?ND(s,h.after)+1:s.length-1;o.splice(g,0,h.parse),a.splice(g,0,h.leaf),s.splice(g,0,h.name)}h.endLeaf&&c.push(h.endLeaf)}if(OA(n.parseInline))for(let h of n.parseInline){let f=u.indexOf(h.name);if(f>-1)l[f]=h.parse;else{let g=h.before?ND(u,h.before):h.after?ND(u,h.after)+1:u.length-1;l.splice(g,0,h.parse),u.splice(g,0,h.name)}}return n.wrap&&(d=d.concat(n.wrap)),new qL(r,o,a,s,c,i,l,u,d)}getNodeType(t){let n=this.nodeTypes[t];if(n==null)throw new RangeError(`Unknown node type '${t}'`);return n}parseInline(t,n){let r=new Zdt(this,t,n);e:for(let i=n;i<r.end;){let o=r.char(i);for(let a of this.inlineParsers)if(a){let s=a(r,o,i);if(s>=0){i=s;continue e}}i++}return r.resolveMarkers(0)}}function OA(e){return e!=null&&e.length>0}function BH(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=BH(e[0]);if(e.length==1)return t;let n=BH(e.slice(1));if(!n||!t)return t||n;let r=(a,s)=>(a||VO).concat(s||VO),i=t.wrap,o=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?o?(a,s,l,u)=>i(o(a,s,l,u),s,l,u):i:o}}function ND(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let dIe=[Xa.none];for(let e=1,t;t=gn[e];e++)dIe[e]=Xa.define({id:e,name:t,props:e>=gn.Escape?[]:[[Ir.group,e in tIe?["Block","BlockContext"]:["Block","LeafBlock"]]],top:t=="Document"});const VO=[];let hIe=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,n,r=0){return this.content.push(e,t,n,4+r*4),this}writeElements(e,t=0){for(let n of e)n.writeTo(this,t);return this}finish(e,t){return ai.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}},sE=class{constructor(e,t,n,r=VO){this.type=e,this.from=t,this.to=n,this.children=r}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new hIe(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class pIe{constructor(t,n){this.tree=t,this.from=n}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return VO}writeTo(t,n){t.nodes.push(this.tree),t.content.push(t.nodes.length-1,this.from+n,this.to+n,-1)}toTree(){return this.tree}}function wi(e,t,n,r){return new sE(e,t,n,r)}const fIe={resolve:"Emphasis",mark:"EmphasisMark"},gIe={resolve:"Emphasis",mark:"EmphasisMark"},xA={},Cae={};class Wd{constructor(t,n,r,i){this.type=t,this.from=n,this.to=r,this.side=i}}const Oae="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let lE=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{lE=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const bN={Escape(e,t,n){if(t!=92||n==e.end-1)return-1;let r=e.char(n+1);for(let i=0;i<Oae.length;i++)if(Oae.charCodeAt(i)==r)return e.append(wi(gn.Escape,n,n+2));return-1},Entity(e,t,n){if(t!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n+1,n+31));return r?e.append(wi(gn.Entity,n,n+1+r[0].length)):-1},InlineCode(e,t,n){if(t!=96||n&&e.char(n-1)==96)return-1;let r=n+1;for(;r<e.end&&e.char(r)==96;)r++;let i=r-n,o=0;for(;r<e.end;r++)if(e.char(r)==96){if(o++,o==i&&e.char(r+1)!=96)return e.append(wi(gn.InlineCode,n,r+1,[wi(gn.CodeMark,n,n+i),wi(gn.CodeMark,r+1-i,r+1)]))}else o=0;return-1},HTMLTag(e,t,n){if(t!=60||n==e.end-1)return-1;let r=e.slice(n+1,e.end),i=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(i)return e.append(wi(gn.Autolink,n,n+1+i[0].length,[wi(gn.LinkMark,n,n+1),wi(gn.URL,n+1,n+i[0].length),wi(gn.LinkMark,n+i[0].length,n+1+i[0].length)]));let o=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(o)return e.append(wi(gn.Comment,n,n+1+o[0].length));let a=/^\?[^]*?\?>/.exec(r);if(a)return e.append(wi(gn.ProcessingInstruction,n,n+1+a[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return s?e.append(wi(gn.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),o=e.slice(r,r+1),a=lE.test(i),s=lE.test(o),l=/\s|^$/.test(i),u=/\s|^$/.test(o),c=!u&&(!s||l||a),d=!l&&(!a||u||s),h=c&&(t==42||!d||a),f=d&&(t==42||!c||s);return e.append(new Wd(t==95?fIe:gIe,n,r,(h?1:0)|(f?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(wi(gn.HardBreak,n,n+2));if(t==32){let r=n+1;for(;e.char(r)==32;)r++;if(e.char(r)==10&&r>=n+2)return e.append(wi(gn.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new Wd(xA,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new Wd(Cae,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let i=e.parts[r];if(i instanceof Wd&&(i.type==xA||i.type==Cae)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let o=e.takeContent(r),a=e.parts[r]=zdt(e,o,i.type==xA?gn.Link:gn.Image,i.from,n+1);if(i.type==xA)for(let s=0;s<r;s++){let l=e.parts[s];l instanceof Wd&&l.type==xA&&(l.side=0)}return a.to}}return-1}};function zdt(e,t,n,r,i){let{text:o}=e,a=e.char(i),s=i;if(t.unshift(wi(gn.LinkMark,r,r+(n==gn.Image?2:1))),t.push(wi(gn.LinkMark,i-1,i)),a==40){let l=e.skipSpace(i+1),u=mIe(o,l-e.offset,e.offset),c;u&&(l=e.skipSpace(u.to),l!=u.to&&(c=vIe(o,l-e.offset,e.offset),c&&(l=e.skipSpace(c.to)))),e.char(l)==41&&(t.push(wi(gn.LinkMark,i,i+1)),s=l+1,u&&t.push(u),c&&t.push(c),t.push(wi(gn.LinkMark,l,s)))}else if(a==91){let l=yIe(o,i-e.offset,e.offset,!1);l&&(t.push(l),s=l.to)}return wi(n,r,s,t)}function mIe(e,t,n){if(e.charCodeAt(t)==60){for(let r=t+1;r<e.length;r++){let i=e.charCodeAt(r);if(i==62)return wi(gn.URL,t+n,r+1+n);if(i==60||i==10)return!1}return null}else{let r=0,i=t;for(let o=!1;i<e.length;i++){let a=e.charCodeAt(i);if(Cd(a))break;if(o)o=!1;else if(a==40)r++;else if(a==41){if(!r)break;r--}else a==92&&(o=!0)}return i>t?wi(gn.URL,t+n,i+n):i==e.length?null:!1}}function vIe(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let o=t+1,a=!1;o<e.length;o++){let s=e.charCodeAt(o);if(a)a=!1;else{if(s==i)return wi(gn.LinkTitle,t+n,o+1+n);s==92&&(a=!0)}}return null}function yIe(e,t,n,r){for(let i=!1,o=t+1,a=Math.min(e.length,o+999);o<a;o++){let s=e.charCodeAt(o);if(i)i=!1;else{if(s==93)return r?!1:wi(gn.LinkLabel,t+n,o+1+n);if(r&&!Cd(s)&&(r=!1),s==91)return!1;s==92&&(i=!0)}}return null}class Zdt{constructor(t,n,r){this.parser=t,this.text=n,this.offset=r,this.parts=[]}char(t){return t>=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,i,o){return this.append(new Wd(t,n,r,(i?1:0)|(o?2:0)))}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r<this.parts.length;r++){let i=this.parts[r];if(!(i instanceof Wd&&i.type.resolve&&i.side&2))continue;let o=i.type==fIe||i.type==gIe,a=i.to-i.from,s,l=r-1;for(;l>=t;l--){let g=this.parts[l];if(g instanceof Wd&&g.side&1&&g.type==i.type&&!(o&&(i.side&1||g.side&2)&&(g.to-g.from+a)%3==0&&((g.to-g.from)%3||a%3))){s=g;break}}if(!s)continue;let u=i.type.resolve,c=[],d=s.from,h=i.to;if(o){let g=Math.min(2,s.to-s.from,a);d=s.to-g,h=i.from+g,u=g==1?"Emphasis":"StrongEmphasis"}s.type.mark&&c.push(this.elt(s.type.mark,d,s.to));for(let g=l+1;g<r;g++)this.parts[g]instanceof sE&&c.push(this.parts[g]),this.parts[g]=null;i.type.mark&&c.push(this.elt(i.type.mark,i.from,h));let f=this.elt(u,d,h,c);this.parts[l]=o&&s.from!=d?new Wd(s.type,s.from,d,s.side):null,(this.parts[r]=o&&i.to!=h?new Wd(i.type,h,i.to,i.side):null)?this.parts.splice(r,0,f):this.parts[r]=f}let n=[];for(let r=t;r<this.parts.length;r++){let i=this.parts[r];i instanceof sE&&n.push(i)}return n}findOpeningDelimiter(t){for(let n=this.parts.length-1;n>=0;n--){let r=this.parts[n];if(r instanceof Wd&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return Bk(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?wi(this.parser.getNodeType(t),n,r,i):new pIe(t,n)}}function FH(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r<n.length&&n[r].to<i.to;)r++;if(r<n.length&&n[r].from<i.from){let o=n[r];o instanceof sE&&(n[r]=new sE(o.type,o.from,o.to,FH(o.children,[i])))}else n.splice(r++,0,i)}return n}const Gdt=[gn.CodeBlock,gn.ListItem,gn.OrderedList,gn.BulletList];let Qdt=class{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let i=this.fragment.to;for(;i>0&&this.input.read(i-1,i)!=`
|
|
`;)i--;this.fragmentEnd=i?i-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(Ir.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),i=e.absoluteLineStart,o=i,a=e.block.children.length,s=o,l=a;for(;;){if(t.to-n>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let u=bIe(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,u);else{let c=new ai(e.parser.nodeSet.types[gn.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(c,t.tree),e.addNode(c,u)}if(t.type.is("Block")&&(Gdt.indexOf(t.type.id)<0?(o=t.to-n,a=e.block.children.length):(o=s,a=l,s=t.to-n,l=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>a;)e.block.children.pop(),e.block.positions.pop();return o-i}};function bIe(e,t){let n=e;for(let r=1;r<t.length;r++){let i=t[r-1].to,o=t[r].from;i<e&&(n-=o-i)}return n}const Udt=$x({"Blockquote/...":Ne.quote,HorizontalRule:Ne.contentSeparator,"ATXHeading1/... SetextHeading1/...":Ne.heading1,"ATXHeading2/... SetextHeading2/...":Ne.heading2,"ATXHeading3/...":Ne.heading3,"ATXHeading4/...":Ne.heading4,"ATXHeading5/...":Ne.heading5,"ATXHeading6/...":Ne.heading6,"Comment CommentBlock":Ne.comment,Escape:Ne.escape,Entity:Ne.character,"Emphasis/...":Ne.emphasis,"StrongEmphasis/...":Ne.strong,"Link/... Image/...":Ne.link,"OrderedList/... BulletList/...":Ne.list,"BlockQuote/...":Ne.quote,"InlineCode CodeText":Ne.monospace,"URL Autolink":Ne.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":Ne.processingInstruction,"CodeInfo LinkLabel":Ne.labelName,LinkTitle:Ne.string,Paragraph:Ne.content}),Xdt=new qL(new Rx(dIe).extend(Udt),Object.keys(FD).map(e=>FD[e]),Object.keys(FD).map(e=>Vdt[e]),Object.keys(FD),jdt,tIe,Object.keys(bN).map(e=>bN[e]),Object.keys(bN),[]);function Ydt(e,t,n){let r=[];for(let i=e.firstChild,o=t;;i=i.nextSibling){let a=i?i.from:n;if(a>o&&r.push({from:o,to:a}),!i)break;o=i.to}return r}function Kdt(e){let{codeParser:t,htmlParser:n}=e;return{wrap:YSe((r,i)=>{let o=r.type.id;if(t&&(o==gn.CodeBlock||o==gn.FencedCode)){let a="";if(o==gn.FencedCode){let l=r.node.getChild(gn.CodeInfo);l&&(a=i.read(l.from,l.to))}let s=t(a);if(s)return{parser:s,overlay:l=>l.type.id==gn.CodeText}}else if(n&&(o==gn.HTMLBlock||o==gn.HTMLTag))return{parser:n,overlay:Ydt(r.node,r.from,r.to)};return null})}}const qdt={resolve:"Strikethrough",mark:"StrikethroughMark"},Jdt={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Ne.strikethrough}},{name:"StrikethroughMark",style:Ne.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),o=/\s|^$/.test(r),a=/\s|^$/.test(i),s=lE.test(r),l=lE.test(i);return e.addDelimiter(qdt,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function Fk(e,t,n=0,r,i=0){let o=0,a=!0,s=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+s,i+l,e.parser.parseInline(t.slice(s,l),i+s)))};for(let d=n;d<t.length;d++){let h=t.charCodeAt(d);h==124&&!u?((!a||s>-1)&&o++,a=!1,r&&(s>-1&&c(),r.push(e.elt("TableDelimiter",d+i,d+i+1))),s=l=-1):(u||h!=32&&h!=9)&&(s<0&&(s=d),l=d+1),u=!u&&h==92}return s>-1&&(o++,r&&c()),o}function xae(e,t){for(let n=t;n<e.length;n++){let r=e.charCodeAt(n);if(r==124)return!0;r==92&&n++}return!1}const wIe=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class Sae{constructor(){this.rows=null}nextLine(t,n,r){if(this.rows==null){this.rows=!1;let i;if((n.next==45||n.next==58||n.next==124)&&wIe.test(i=n.text.slice(n.pos))){let o=[];Fk(t,r.content,0,o,r.start)==Fk(t,i,n.pos)&&(this.rows=[t.elt("TableHeader",r.start,r.start+r.content.length,o),t.elt("TableDelimiter",t.lineStart+n.pos,t.lineStart+n.text.length)])}}else if(this.rows){let i=[];Fk(t,n.text,n.pos,i,t.lineStart),this.rows.push(t.elt("TableRow",t.lineStart+n.pos,t.lineStart+n.text.length,i))}return!1}finish(t,n){return this.rows?(t.addLeafElement(n,t.elt("Table",n.start,n.start+n.content.length,this.rows)),!0):!1}}const eht={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":Ne.heading}},"TableRow",{name:"TableCell",style:Ne.content},{name:"TableDelimiter",style:Ne.processingInstruction}],parseBlock:[{name:"Table",leaf(e,t){return xae(t.content,0)?new Sae:null},endLeaf(e,t,n){if(n.parsers.some(i=>i instanceof Sae)||!xae(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return wIe.test(r)&&Fk(e,t.text,t.basePos)==Fk(e,r,t.basePos)},before:"SetextHeading"}]};class tht{nextLine(){return!1}finish(t,n){return t.addLeafElement(n,t.elt("Task",n.start,n.start+n.content.length,[t.elt("TaskMarker",n.start,n.start+3),...t.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const nht={defineNodes:[{name:"Task",block:!0,style:Ne.list},{name:"TaskMarker",style:Ne.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new tht:null},after:"SetextHeading"}]},Aae=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,Iae=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,rht=/[\w-]+\.[\w-]+($|\/)/,kae=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Eae=/\/[a-zA-Z\d@.]+/gy;function _ae(e,t,n,r){let i=0;for(let o=t;o<n;o++)e[o]==r&&i++;return i}function iht(e,t){Iae.lastIndex=t;let n=Iae.exec(e);if(!n||rht.exec(n[0])[0].indexOf("_")>-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],o;if(/[?!.,:*_~]/.test(i)||i==")"&&_ae(e,t,r,")")>_ae(e,t,r,"("))r--;else if(i==";"&&(o=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+o.index;else break}return r}function Tae(e,t){kae.lastIndex=t;let n=kae.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r=="_"||r=="-"?-1:t+n[0].length-(r=="."?1:0)}const oht={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;Aae.lastIndex=r;let i=Aae.exec(e.text),o=-1;return!i||(i[1]||i[2]?o=iht(e.text,r+i[0].length):i[3]?o=Tae(e.text,r):(o=Tae(e.text,r+i[0].length),o>-1&&i[0]=="xmpp:"&&(Eae.lastIndex=o,i=Eae.exec(e.text),i&&(o=i.index+i[0].length))),o<0)?-1:(e.addElement(e.elt("URL",n,o+e.offset)),o+e.offset)}}]},aht=[eht,nht,Jdt,oht];function CIe(e,t,n){return(r,i,o)=>{if(i!=e||r.char(o+1)==e)return-1;let a=[r.elt(n,o,o+1)];for(let s=o+1;s<r.end;s++){let l=r.char(s);if(l==e)return r.addElement(r.elt(t,o,s+1,a.concat(r.elt(n,s,s+1))));if(l==92&&a.push(r.elt("Escape",s,s+++2)),Cd(l))break}return-1}}const sht={defineNodes:[{name:"Superscript",style:Ne.special(Ne.content)},{name:"SuperscriptMark",style:Ne.processingInstruction}],parseInline:[{name:"Superscript",parse:CIe(94,"Superscript","SuperscriptMark")}]},lht={defineNodes:[{name:"Subscript",style:Ne.special(Ne.content)},{name:"SubscriptMark",style:Ne.processingInstruction}],parseInline:[{name:"Subscript",parse:CIe(126,"Subscript","SubscriptMark")}]},uht={defineNodes:[{name:"Emoji",style:Ne.character}],parseInline:[{name:"Emoji",parse(e,t,n){let r;return t!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(e.slice(n+1,e.end)))?-1:e.addElement(e.elt("Emoji",n,n+1+r[0].length))}}]};var Pae={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\0\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_10888_QPTCCULLXHJGEDNM",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"DESKTOP-U452U79",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",FPS_BROWSER_APP_PROFILE_STRING:"Internet Explorer",FPS_BROWSER_USER_PROFILE_STRING:"Default",GIT_ASKPASS:"c:\\Users\\0\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\0",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\0",INIT_CWD:"D:\\物管理\\组态大屏编辑器开发\\vue-form-craft",JAVA_HOME:"D:\\software\\jdk1.8",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\0\\AppData\\Local",LOGONSERVER:"\\\\DESKTOP-U452U79",MAVEN_HOME:"D:\\software\\apache-maven-3.6.3-bin\\apache-maven-3.6.3",NODE:"C:\\Program Files\\nodejs\\node.exe",NODE_ENV:"production",NODE_OPTIONS:"",NODE_PATH:"D:\\鐗╃鐞哱缁勬€佸ぇ灞忕紪杈戝櫒寮€鍙慭vue-form-craft\\node_modules\\.pnpm\\vite@5.0.10_@types+node@20.10.5_less@4.2.0\\node_modules\\vite\\bin\\node_modules;D:\\鐗╃鐞哱缁勬€佸ぇ灞忕紪杈戝櫒寮€鍙慭vue-form-craft\\node_modules\\.pnpm\\vite@5.0.10_@types+node@20.10.5_less@4.2.0\\node_modules\\vite\\node_modules;D:\\鐗╃鐞哱缁勬€佸ぇ灞忕紪杈戝櫒寮€鍙慭vue-form-craft\\node_modules\\.pnpm\\vite@5.0.10_@types+node@20.10.5_less@4.2.0\\node_modules;D:\\鐗╃鐞哱缁勬€佸ぇ灞忕紪杈戝櫒寮€鍙慭vue-form-craft\\node_modules\\.pnpm\\node_modules",npm_command:"run-script",npm_config_frozen_lockfile:"",npm_config_node_gyp:"C:\\Users\\0\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_registry:"https://registry.npmmirror.com/",npm_config_user_agent:"pnpm/8.15.4 npm/? node/v20.11.1 win32 x64",npm_execpath:"C:\\Users\\0\\AppData\\Roaming\\npm\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build",npm_lifecycle_script:'vite build "--mode" "release"',npm_node_execpath:"C:\\Program Files\\nodejs\\node.exe",npm_package_dependencies_axios:"^1.6.2",npm_package_dependencies_codemirror:"^5.65.16",npm_package_dependencies_codemirror_editor_vue3:"^2.4.1",npm_package_dependencies_element_plus:"^2.4.4",npm_package_dependencies_json_editor_vue3:"^1.0.9",npm_package_dependencies_less:"^4.2.0",npm_package_dependencies_lodash:"^4.17.21",npm_package_dependencies_md_editor_v3:"^4.10.0",npm_package_dependencies_vue:"^3.3.11",npm_package_dependencies_vuedraggable_es:"^4.1.1",npm_package_dependencies_vue_router:"^4.2.5",npm_package_dependencies__originjs_vite_plugin_commonjs:"^1.0.3",npm_package_dependencies__wangeditor_editor:"^5.1.23",npm_package_dependencies__wangeditor_editor_for_vue:"^5.1.12",npm_package_devDependencies_eslint:"^8.49.0",npm_package_devDependencies_eslint_plugin_vue:"^9.17.0",npm_package_devDependencies_npm_run_all2:"^6.1.1",npm_package_devDependencies_ora:"^5.1.0",npm_package_devDependencies_prettier:"^3.0.3",npm_package_devDependencies_scp2:"^0.5.0",npm_package_devDependencies_typescript:"~5.3.0",npm_package_devDependencies_vite:"^5.0.10",npm_package_devDependencies_vite_plugin_dts:"^3.7.3",npm_package_devDependencies_vite_plugin_libcss:"^1.1.1",npm_package_devDependencies_vue_tsc:"^1.8.27",npm_package_devDependencies__rushstack_eslint_patch:"^1.3.3",npm_package_devDependencies__tsconfig_node20:"^20.1.2",npm_package_devDependencies__types_lodash:"^4.14.202",npm_package_devDependencies__types_node:"^20.10.5",npm_package_devDependencies__vitejs_plugin_vue:"^4.5.2",npm_package_devDependencies__vitejs_plugin_vue_jsx:"^3.1.0",npm_package_devDependencies__vue_eslint_config_prettier:"^8.0.0",npm_package_devDependencies__vue_eslint_config_typescript:"^12.0.0",npm_package_devDependencies__vue_tsconfig:"^0.5.1",npm_package_files_0:"dist",npm_package_files_1:"global.d.ts",npm_package_keywords_0:"component",npm_package_keywords_1:"vue",npm_package_keywords_2:"form",npm_package_keywords_3:"element-ui",npm_package_main:"./dist/vue-form-craft.mjs",npm_package_module:"./dist/vue-form-craft.mjs",npm_package_name:"@dsmcase/vue-form-craft",npm_package_private:"false",npm_package_scripts_build:'vite build "--mode" "release"',npm_package_scripts_build_deploy:"pnpm build && node ./deploy.js",npm_package_scripts_build_release:"npm run release&& npm version patch && npm publish",npm_package_scripts_dev:"vite",npm_package_scripts_format:"prettier --write src/",npm_package_scripts_lint:"eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",npm_package_scripts_preview:"vite preview",npm_package_scripts_release:"pnpm build --mode release",npm_package_scripts_type_check:"vue-tsc --build --force",npm_package_type:"commonjs",npm_package_types:"./dist/types/src/release/index.d.ts",npm_package_version:"3.0.2",NUMBER_OF_PROCESSORS:"12",NVM_HOME:"C:\\Users\\0\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\Program Files\\nodejs",OneDrive:"C:\\Users\\0\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\物管理\\组态大屏编辑器开发\\vue-form-craft\\node_modules\\.bin;C:\\Users\\0\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\物管理\\组态大屏编辑器开发\\vue-form-craft\\node_modules\\.bin;C:\\Users\\0\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\node-gyp-bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;D:\\software\\jdk1.8\\bin;D:\\software\\apache-maven-3.6.3-bin\\apache-maven-3.6.3\\bin;C:\\Program Files\\MongoDB\\Server\\4.4\\bin;C:\\MinGW\\bin;C:\\Program Files\\dotnet\\;C:\\Users\\0\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Users\\0\\.windows-build-tools\\python27\\;C:\\Users\\0\\scoop\\shims;C:\\Users\\0\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\0\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\0\\AppData\\Roaming\\nvm;D:\\software\\apache-maven-3.6.3-bin\\apache-maven-3.6.3;C:\\Users\\0\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\0\\AppData\\Roaming\\npm;C:\\Users\\0\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_SCRIPT_SRC_DIR:"D:\\物管理\\组态大屏编辑器开发\\vue-form-craft",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 165 Stepping 3, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"a503",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\0\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\0\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.93.0",TMP:"C:\\Users\\0\\AppData\\Local\\Temp",USERDOMAIN:"DESKTOP-U452U79",USERDOMAIN_ROAMINGPROFILE:"DESKTOP-U452U79",USERNAME:"0",USERPROFILE:"C:\\Users\\0",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\0\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\0\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-378785486d-sock",VSCODE_INJECTION:"1",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1"};let cht=class NH{constructor(t,n,r,i,o,a,s,l,u,c=0,d){this.p=t,this.stack=n,this.state=r,this.reducePos=i,this.pos=o,this.score=a,this.buffer=s,this.bufferBase=l,this.curContext=u,this.lookAhead=c,this.parent=d}toString(){return`[${this.stack.filter((t,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new NH(t,[],n,r,r,0,[],0,i?new Dae(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:o}=this.p,a=o.dynamicPrecedence(i);if(a&&(this.score+=a),r==0){this.pushState(o.getGoto(this.state,i,!0),this.reducePos),i<o.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,4,!0),this.reduceContext(i,this.reducePos);return}let s=this.stack.length-(r-1)*3-(t&262144?6:0),l=s?this.stack[s-2]:this.p.ranges[0].from,u=this.reducePos-l;u>=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=u));let c=s?this.stack[s-1]:0,d=this.bufferBase+this.buffer.length-c;if(i<o.minRepeatTerm||t&131072){let h=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,l,h,d+4,!0)}if(t&262144)this.state=this.stack[s];else{let h=this.stack[s-3];this.state=o.getGoto(h,i,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,n,r,i=4,o=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let a=this,s=this.buffer.length;if(s==0&&a.parent&&(s=a.bufferBase-a.parent.bufferBase,a=a.parent),s>0&&a.buffer[s-4]==0&&a.buffer[s-1]>-1){if(n==r)return;if(a.buffer[s-2]>=n){a.buffer[s-2]=r;return}}}if(!o||this.pos==r)this.buffer.push(t,n,r,i);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,i>4&&(i-=4);this.buffer[a]=t,this.buffer[a+1]=n,this.buffer[a+2]=r,this.buffer[a+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let o=t,{parser:a}=this.p;(i>this.pos||n<=a.maxNode)&&(this.pos=i,a.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(n,r),n<=a.maxNode&&this.buffer.push(n,r,i,4)}}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new NH(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new dht(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let o=0,a;o<n.length;o+=2)(a=n[o+1])!=this.state&&this.p.parser.hasAction(a,t)&&i.push(n[o],a);if(this.stack.length<120)for(let o=0;i.length<8&&o<n.length;o+=2){let a=n[o+1];i.some((s,l)=>l&1&&s==a)||i.push(n[o],a)}n=i}let r=[];for(let i=0;i<n.length&&r.length<4;i+=2){let o=n[i+1];if(o==this.state)continue;let a=this.split();a.pushState(o,this.pos),a.storeNode(0,a.pos,a.pos,4,!0),a.shiftContext(n[i],this.pos),a.reducePos=this.pos,a.score-=200,r.push(a)}return r}forceReduce(){let{parser:t}=this.p,n=t.stateSlot(this.state,5);if(!(n&65536))return!1;if(!t.validAction(this.state,n)){let r=n>>19,i=n&65535,o=this.stack.length-r*3;if(o<0||t.getGoto(this.stack[o],i,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;n=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,o)=>{if(!n.includes(i))return n.push(i),t.allActions(i,a=>{if(!(a&393216))if(a&65536){let s=(a>>19)-o;if(s>1){let l=a&65535,u=this.stack.length-s*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return s<<19|65536|l}}else{let s=r(a,o+1);if(s!=null)return s}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=t.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(n)))}reduceContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(n)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let n=new Dae(this.curContext.tracker,t);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(t){t>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}};class Dae{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class dht{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class y5{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new y5(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new y5(this.stack,this.pos,this.index)}}function ek(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r<e.length;){let o=0;for(;;){let a=e.charCodeAt(r++),s=!1;if(a==126){o=65535;break}a>=92&&a--,a>=34&&a--;let l=a-32;if(l>=46&&(l-=46,s=!0),o+=l,s)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class F3{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Rae=new F3;class hht{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Rae,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,o=this.pos+t;for(;o<r.from;){if(!i)return null;let a=this.ranges[--i];o-=r.from-a.to,r=a}for(;n<0?o>r.to:o>=r.to;){if(i==this.ranges.length-1)return null;let a=this.ranges[++i];o+=a.from-r.to,r=a}return o}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let n of this.ranges)if(n.to>t)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n<this.chunk.length)r=this.pos+t,i=this.chunk.charCodeAt(n);else{let o=this.resolveOffset(t,1);if(o==null)return-1;if(r=o,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let a=this.rangeIndex,s=this.range;for(;s.to<=r;)s=this.ranges[++a];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>s.to&&(this.chunk2=this.chunk2.slice(0,s.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=r}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),n=this.pos+t.length;this.chunk=n>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=Rae,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,n){if(t>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>t&&(r+=this.input.read(Math.max(i.from,t),Math.min(i.to,n)))}return r}}class tO{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;OIe(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}tO.prototype.contextual=tO.prototype.fallback=tO.prototype.extend=!1;class b5{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?ek(t):t}token(t,n){let r=t.pos,i=0;for(;;){let o=t.next<0,a=t.resolveOffset(1,1);if(OIe(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(o||i++,a==null)break;t.reset(a,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}b5.prototype.contextual=tO.prototype.fallback=tO.prototype.extend=!1;class Ch{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function OIe(e,t,n,r,i,o){let a=0,s=1<<r,{dialect:l}=n.p.parser;e:for(;s&e[a];){let u=e[a+1];for(let f=a+3;f<u;f+=2)if((e[f+1]&s)>0){let g=e[f];if(l.allows(g)&&(t.token.value==-1||t.token.value==g||pht(g,t.token.value,i,o))){t.acceptToken(g);break}}let c=t.next,d=0,h=e[a+2];if(t.next<0&&h>d&&e[u+h*3-3]==65535){a=e[u+h*3-1];continue e}for(;d<h;){let f=d+h>>1,g=u+f+(f<<1),b=e[g],v=e[g+1]||65536;if(c<b)h=f;else if(c>=v)d=f+1;else{a=e[g+2],t.advance();continue e}}break}}function $ae(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function pht(e,t,n,r){let i=$ae(n,r,t);return i<0||$ae(n,r,e)<i}const Mu=typeof process<"u"&&Pae&&/\bparse\b/.test(Pae.LOG);let wN=null;function Mae(e,t,n){let r=e.cursor(vo.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class fht{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?Mae(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?Mae(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],i=this.index[n];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=r.children[i],a=this.start[n]+r.positions[i];if(a>t)return this.nextStart=a,null;if(o instanceof ai){if(a==t){if(a<this.safeFrom)return null;let s=a+o.length;if(s<=this.safeTo){let l=o.prop(Ir.lookAhead);if(!l||s+l<this.fragment.to)return o}}this.index[n]++,a+o.length>=Math.max(this.safeFrom,t)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+o.length}}}class ght{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new F3)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:o}=i,a=i.stateSlot(t.state,3),s=t.curContext?t.curContext.hash:0,l=0;for(let u=0;u<o.length;u++){if(!(1<<u&a))continue;let c=o[u],d=this.tokens[u];if(!(r&&!c.fallback)&&((c.contextual||d.start!=t.pos||d.mask!=a||d.context!=s)&&(this.updateCachedToken(d,c,t),d.mask=a,d.context=s),d.lookAhead>d.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let h=n;if(d.extended>-1&&(n=this.addActions(t,d.extended,d.end,n)),n=this.addActions(t,d.value,d.end,n),!c.extend&&(r=d,n>h))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new F3,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new F3,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:o}=r.p;for(let a=0;a<o.specialized.length;a++)if(o.specialized[a]==t.value){let s=o.specializers[a](this.stream.read(t.start,t.end),r);if(s>=0&&r.p.parser.dialect.allows(s>>1)){s&1?t.extended=s>>1:t.value=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let o=0;o<i;o+=3)if(this.actions[o]==t)return i;return this.actions[i++]=t,this.actions[i++]=n,this.actions[i++]=r,i}addActions(t,n,r,i){let{state:o}=t,{parser:a}=t.p,{data:s}=a;for(let l=0;l<2;l++)for(let u=a.stateSlot(o,l?2:1);;u+=3){if(s[u]==65535)if(s[u+1]==1)u=Xf(s,u+2);else{i==0&&s[u+1]==2&&(i=this.putAction(Xf(s,u+2),n,r,i));break}s[u]==n&&(i=this.putAction(Xf(s,u+1),n,r,i))}return i}}class mht{constructor(t,n,r,i){this.parser=t,this.input=n,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new hht(n,i),this.tokens=new ght(t,this.stream),this.topTerm=t.top[1];let{from:o}=i[0];this.stacks=[cht.start(this,t.top[0],o)],this.fragments=r.length&&this.stream.end-o>t.bufferLength*4?new fht(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,o;if(this.bigReductionCount>300&&t.length==1){let[a]=t;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<t.length;a++){let s=t[a];for(;;){if(this.tokens.mainToken=null,s.pos>n)r.push(s);else{if(this.advanceStack(s,r,t))continue;{i||(i=[],o=[]),i.push(s);let l=this.tokens.getMainToken(s);o.push(l.value,l.end)}}break}}if(!r.length){let a=i&&yht(i);if(a)return Mu&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Mu&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let a=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,r);if(a)return Mu&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(r.length>a)for(r.sort((s,l)=>l.score-s.score);r.length>a;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let a=0;a<r.length-1;a++){let s=r[a];for(let l=a+1;l<r.length;l++){let u=r[l];if(s.sameState(u)||s.buffer.length>500&&u.buffer.length>500)if((s.score-u.score||s.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(a--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let a=1;a<r.length;a++)r[a].pos<this.minStackPos&&(this.minStackPos=r[a].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,n,r){let i=t.pos,{parser:o}=this,a=Mu?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,c=u?t.curContext.hash:0;for(let d=this.fragments.nodeAt(i);d;){let h=this.parser.nodeSet.types[d.type.id]==d.type?o.getGoto(t.state,d.type.id):-1;if(h>-1&&d.length&&(!u||(d.prop(Ir.contextHash)||0)==c))return t.useNode(d,h),Mu&&console.log(a+this.stackID(t)+` (via reuse of ${o.getName(d.type.id)})`),!0;if(!(d instanceof ai)||d.children.length==0||d.positions[0]>0)break;let f=d.children[0];if(f instanceof ai&&d.positions[0]==0)d=f;else break}}let s=o.stateSlot(t.state,4);if(s>0)return t.reduce(s),Mu&&console.log(a+this.stackID(t)+` (via always-reduce ${o.getName(s&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;u<l.length;){let c=l[u++],d=l[u++],h=l[u++],f=u==l.length||!r,g=f?t:t.split(),b=this.tokens.mainToken;if(g.apply(c,d,b?b.start:g.pos,h),Mu&&console.log(a+this.stackID(g)+` (via ${c&65536?`reduce of ${o.getName(c&65535)}`:"shift"} for ${o.getName(d)} @ ${i}${g==t?"":", split"})`),f)return!0;g.pos>i?n.push(g):r.push(g)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return Lae(t,n),!0}}runRecovery(t,n,r){let i=null,o=!1;for(let a=0;a<t.length;a++){let s=t[a],l=n[a<<1],u=n[(a<<1)+1],c=Mu?this.stackID(s)+" -> ":"";if(s.deadEnd&&(o||(o=!0,s.restart(),Mu&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let d=s.split(),h=c;for(let f=0;d.forceReduce()&&f<10&&(Mu&&console.log(h+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));f++)Mu&&(h=this.stackID(d)+" -> ");for(let f of s.recoverByInsert(l))Mu&&console.log(c+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),Mu&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),Lae(s,r)):(!i||i.score<s.score)&&(i=s)}return i}stackToTree(t){return t.close(),ai.build({buffer:y5.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let n=(wN||(wN=new WeakMap)).get(t);return n||wN.set(t,n=String.fromCodePoint(this.nextStackID++)),n+t}}function Lae(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}class vht{constructor(t,n,r){this.source=t,this.flags=n,this.disabled=r}allows(t){return!this.disabled||this.disabled[t]==0}}const CN=e=>e;class xIe{constructor(t){this.start=t.start,this.shift=t.shift||CN,this.reduce=t.reduce||CN,this.reuse=t.reuse||CN,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class jO extends ZL{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let s=0;s<t.repeatNodeCount;s++)n.push("");let r=Object.keys(t.topRules).map(s=>t.topRules[s][1]),i=[];for(let s=0;s<n.length;s++)i.push([]);function o(s,l,u){i[s].push([l,l.deserialize(String(u))])}if(t.nodeProps)for(let s of t.nodeProps){let l=s[0];typeof l=="string"&&(l=Ir[l]);for(let u=1;u<s.length;){let c=s[u++];if(c>=0)o(c,l,s[u++]);else{let d=s[u+-c];for(let h=-c;h>0;h--)o(s[u++],l,d);u++}}}this.nodeSet=new Rx(n.map((s,l)=>Xa.define({name:l>=this.minRepeatTerm?void 0:s,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=ZSe;let a=ek(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;s<this.specializerSpecs.length;s++)this.specialized[s]=this.specializerSpecs[s].term;this.specializers=this.specializerSpecs.map(Bae),this.states=ek(t.states,Uint32Array),this.data=ek(t.stateData),this.goto=ek(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(s=>typeof s=="number"?new tO(a,s):s),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new mht(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let o=i[n+1];;){let a=i[o++],s=a&1,l=i[o++];if(s&&r)return l;for(let u=o+(a>>1);o<u;o++)if(i[o]==t)return l;if(s)return-1}}hasAction(t,n){let r=this.data;for(let i=0;i<2;i++)for(let o=this.stateSlot(t,i?2:1),a;;o+=3){if((a=r[o])==65535)if(r[o+1]==1)a=r[o=Xf(r,o+2)];else{if(r[o+1]==2)return Xf(r,o+2);break}if(a==n||a==0)return Xf(r,o+1)}return 0}stateSlot(t,n){return this.states[t*6+n]}stateFlag(t,n){return(this.stateSlot(t,0)&n)>0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let o=this.stateSlot(t,1);i==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=Xf(this.data,o+2);else break;i=n(Xf(this.data,o+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Xf(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((o,a)=>a&1&&o==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(jO.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(o=>o.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let o=t.specializers.find(s=>s.from==r.external);if(!o)return r;let a=Object.assign(Object.assign({},r),{external:o.to});return n.specializers[i]=Bae(a),a})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let o of t.split(" ")){let a=n.indexOf(o);a>=0&&(r[a]=!0)}let i=null;for(let o=0;o<n.length;o++)if(!r[o])for(let a=this.dialects[n[o]],s;(s=this.data[a++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[s]=1;return new vht(t,r,i)}static deserialize(t){return new jO(t)}}function Xf(e,t){return e[t]|e[t+1]<<16}function yht(e){let t=null;for(let n of e){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function Bae(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}const bht=54,wht=1,Cht=55,Oht=2,xht=56,Sht=3,Fae=4,Aht=5,w5=6,SIe=7,AIe=8,IIe=9,kIe=10,Iht=11,kht=12,Eht=13,ON=57,_ht=14,Nae=58,EIe=20,Tht=22,_Ie=23,Pht=24,VH=26,TIe=27,Dht=28,Rht=31,$ht=34,Mht=36,Lht=37,Bht=0,Fht=1,Nht={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},Vht={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Vae={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}};function jht(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function PIe(e){return e==9||e==10||e==13||e==32}let jae=null,Wae=null,Hae=0;function jH(e,t){let n=e.pos+t;if(Hae==n&&Wae==e)return jae;let r=e.peek(t);for(;PIe(r);)r=e.peek(++t);let i="";for(;jht(r);)i+=String.fromCharCode(r),r=e.peek(++t);return Wae=e,Hae=n,jae=i?i.toLowerCase():r==Wht||r==Hht?void 0:null}const DIe=60,C5=62,ZX=47,Wht=63,Hht=33,zht=45;function zae(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n<e.length;n++)this.hash+=(this.hash<<4)+e.charCodeAt(n)+(e.charCodeAt(n)<<8)}const Zht=[w5,kIe,SIe,AIe,IIe],Ght=new xIe({start:null,shift(e,t,n,r){return Zht.indexOf(t)>-1?new zae(jH(r,1)||"",e):e},reduce(e,t){return t==EIe&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==w5||i==Mht?new zae(jH(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),Qht=new Ch((e,t)=>{if(e.next!=DIe){e.next<0&&t.context&&e.acceptToken(ON);return}e.advance();let n=e.next==ZX;n&&e.advance();let r=jH(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?_ht:w5);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(Iht);if(i&&Vht[i])return e.acceptToken(ON,-2);if(t.dialectEnabled(Bht))return e.acceptToken(kht);for(let o=t.context;o;o=o.parent)if(o.name==r)return;e.acceptToken(Eht)}else{if(r=="script")return e.acceptToken(SIe);if(r=="style")return e.acceptToken(AIe);if(r=="textarea")return e.acceptToken(IIe);if(Nht.hasOwnProperty(r))return e.acceptToken(kIe);i&&Vae[i]&&Vae[i][r]?e.acceptToken(ON,-1):e.acceptToken(w5)}},{contextual:!0}),Uht=new Ch(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(Nae);break}if(e.next==zht)t++;else if(e.next==C5&&t>=2){n>=3&&e.acceptToken(Nae,-2);break}else t=0;e.advance()}});function Xht(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const Yht=new Ch((e,t)=>{if(e.next==ZX&&e.peek(1)==C5){let n=t.dialectEnabled(Fht)||Xht(t.context);e.acceptToken(n?Aht:Fae,2)}else e.next==C5&&e.acceptToken(Fae,1)});function GX(e,t,n){let r=2+e.length;return new Ch(i=>{for(let o=0,a=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(o==0&&i.next==DIe||o==1&&i.next==ZX||o>=2&&o<r&&i.next==e.charCodeAt(o-2))o++,a++;else if((o==2||o==r)&&PIe(i.next))a++;else if(o==r&&i.next==C5){s>a?i.acceptToken(t,-a):i.acceptToken(n,-(a-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else o=a=0;i.advance()}})}const Kht=GX("script",bht,wht),qht=GX("style",Cht,Oht),Jht=GX("textarea",xht,Sht),ept=$x({"Text RawText":Ne.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Ne.angleBracket,TagName:Ne.tagName,"MismatchedCloseTag/TagName":[Ne.tagName,Ne.invalid],AttributeName:Ne.attributeName,"AttributeValue UnquotedAttributeValue":Ne.attributeValue,Is:Ne.definitionOperator,"EntityReference CharacterReference":Ne.character,Comment:Ne.blockComment,ProcessingInst:Ne.processingInstruction,DoctypeDecl:Ne.documentMeta}),tpt=jO.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:Ght,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[ept],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!a`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`!cpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYkWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]``P!a`!cp!^^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebhSkWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXhSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vchS`P!a`!cpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!`h`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WihSkWc!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QchSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[Kht,qht,Jht,Yht,Qht,Uht,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:485},tokenPrec:487});function RIe(e,t){let n=Object.create(null);for(let r of e.getChildren(_Ie)){let i=r.getChild(Pht),o=r.getChild(VH)||r.getChild(TIe);i&&(n[t.read(i.from,i.to)]=o?o.type.id==VH?t.read(o.from+1,o.to-1):t.read(o.from,o.to):"")}return n}function Zae(e,t){let n=e.getChild(Tht);return n?t.read(n.from,n.to):" "}function xN(e,t,n){let r;for(let i of n)if(!i.attrs||i.attrs(r||(r=RIe(e.node.parent.firstChild,t))))return{parser:i.parser};return null}function $Ie(e=[],t=[]){let n=[],r=[],i=[],o=[];for(let s of e)(s.tag=="script"?n:s.tag=="style"?r:s.tag=="textarea"?i:o).push(s);let a=t.length?Object.create(null):null;for(let s of t)(a[s.name]||(a[s.name]=[])).push(s);return YSe((s,l)=>{let u=s.type.id;if(u==Dht)return xN(s,l,n);if(u==Rht)return xN(s,l,r);if(u==$ht)return xN(s,l,i);if(u==EIe&&o.length){let c=s.node,d=c.firstChild,h=d&&Zae(d,l),f;if(h){for(let g of o)if(g.tag==h&&(!g.attrs||g.attrs(f||(f=RIe(c,l))))){let b=c.lastChild,v=b.type.id==Lht?b.from:c.to;if(v>d.to)return{parser:g.parser,overlay:[{from:d.to,to:v}]}}}}if(a&&u==_Ie){let c=s.node,d;if(d=c.firstChild){let h=a[l.read(d.from,d.to)];if(h)for(let f of h){if(f.tagName&&f.tagName!=Zae(c.parent,l))continue;let g=c.lastChild;if(g.type.id==VH){let b=g.from+1,v=g.lastChild,m=g.to-(v&&v.isError?0:1);if(m>b)return{parser:f.parser,overlay:[{from:b,to:m}]}}else if(g.type.id==TIe)return{parser:f.parser,overlay:[{from:g.from,to:g.to}]}}}}return null})}const npt=99,Gae=1,rpt=100,ipt=101,Qae=2,MIe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],opt=58,apt=40,LIe=95,spt=91,N3=45,lpt=46,upt=35,cpt=37,dpt=38,hpt=92,ppt=10;function O5(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function fpt(e){return e>=48&&e<=57}const gpt=new Ch((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:o}=e;if(O5(o)||o==N3||o==LIe||n&&fpt(o))!n&&(o!=N3||i>0)&&(n=!0),r===i&&o==N3&&r++,e.advance();else if(o==hpt&&e.peek(1)!=ppt)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(o==apt?rpt:r==2&&t.canShift(Qae)?Qae:ipt);break}}}),mpt=new Ch(e=>{if(MIe.includes(e.peek(-1))){let{next:t}=e;(O5(t)||t==LIe||t==upt||t==lpt||t==spt||t==opt||t==N3||t==dpt)&&e.acceptToken(npt)}}),vpt=new Ch(e=>{if(!MIe.includes(e.peek(-1))){let{next:t}=e;if(t==cpt&&(e.advance(),e.acceptToken(Gae)),O5(t)){do e.advance();while(O5(e.next));e.acceptToken(Gae)}}}),ypt=$x({"AtKeyword import charset namespace keyframes media supports":Ne.definitionKeyword,"from to selector":Ne.keyword,NamespaceName:Ne.namespace,KeyframeName:Ne.labelName,KeyframeRangeName:Ne.operatorKeyword,TagName:Ne.tagName,ClassName:Ne.className,PseudoClassName:Ne.constant(Ne.className),IdName:Ne.labelName,"FeatureName PropertyName":Ne.propertyName,AttributeName:Ne.attributeName,NumberLiteral:Ne.number,KeywordQuery:Ne.keyword,UnaryQueryOp:Ne.operatorKeyword,"CallTag ValueName":Ne.atom,VariableName:Ne.variableName,Callee:Ne.operatorKeyword,Unit:Ne.unit,"UniversalSelector NestingSelector":Ne.definitionOperator,MatchOp:Ne.compareOperator,"ChildOp SiblingOp, LogicOp":Ne.logicOperator,BinOp:Ne.arithmeticOperator,Important:Ne.modifier,Comment:Ne.blockComment,ColorLiteral:Ne.color,"ParenthesizedContent StringLiteral":Ne.string,":":Ne.punctuation,"PseudoOp #":Ne.derefOperator,"; ,":Ne.separator,"( )":Ne.paren,"[ ]":Ne.squareBracket,"{ }":Ne.brace}),bpt={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},wpt={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},Cpt={__proto__:null,not:132,only:132},Opt=jO.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_O-xQWO,5;_POOO'#EV'#EVP.TO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.zQXO,5:vOOQO-E8Y-E8YOOQS1G.g1G.gOOQP1G.n1G.nO)gQWO1G.nO)lQWO1G.nOOQP1G/Z1G/ZO/XQ`O1G/^O/rQXO1G/aO0YQXO1G/cO0pQXO1G/dO1WQWO,59|O1]Q[O'#DSO1dQdO'#CoOOQP1G/^1G/^O${QdO1G/^O1kQpO,59]OOQS,59_,59_O${QdO,59aO1sQWO1G/mOOQS,59c,59cO1xQ!bO,59eOOQS'#DP'#DPOOQS'#EY'#EYO2QQ[O,59jOOQS,59j,59jO2YQWO'#DjO2eQWO,5:VO2jQWO,5:]O&`Q[O,5:XO&`Q[O'#E_O2rQWO,5;`O2}QWO,5:ZO(aQ[O,5:^OOQS1G/z1G/zOOQS1G/|1G/|OOQS1G0O1G0OO3`QWO1G0OO3eQdO'#EOOOQS1G0R1G0ROOQS1G0X1G0XOOQS1G0Z1G0ZO3pQtO1G/iOOQO,5:x,5:xO4WQ[O,5:xOOQO-E8[-E8[O4eQWO1G0yPOOO-E8T-E8TPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$x7+$xO${QdO7+$xOOQS1G/h1G/hO4pQXO'#ErO4wQWO,59nO4|QtO'#EXO5tQdO'#EoO6OQWO,59ZO6TQpO7+$xOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%X7+%XO6]QWO1G/POOQS-E8W-E8WOOQS1G/U1G/UO${QdO1G/qOOQO1G/w1G/wOOQO1G/s1G/sO6bQWO,5:yOOQO-E8]-E8]O6pQXO1G/xOOQS7+%j7+%jO6wQYO'#CsOOQO'#EQ'#EQO7SQ`O'#EPOOQO'#EP'#EPO7_QWO'#E`O7gQdO,5:jOOQS,5:j,5:jO7rQtO'#E]O${QdO'#E]O8sQdO7+%TOOQO7+%T7+%TOOQO1G0d1G0dO9WQpO<<HdO9`QWO,5;^OOQP1G/Y1G/YOOQS-E8V-E8VO${QdO'#EZO9hQWO,5;ZOOQT1G.u1G.uOOQP<<Hd<<HdOOQS7+$k7+$kO9pQdO7+%]OOQO7+%d7+%dOOQO,5:k,5:kO3hQdO'#EaO7_QWO,5:zOOQS,5:z,5:zOOQS-E8^-E8^OOQS1G0U1G0UO9wQtO,5:wOOQS-E8Z-E8ZOOQO<<Ho<<HoOOQPAN>OAN>OO:xQdO,5:uOOQO-E8X-E8XOOQO<<Hw<<HwOOQO,5:{,5:{OOQO-E8_-E8_OOQS1G0f1G0f",stateData:";[~O#ZOS#[QQ~OUYOXYO]VO^VOqXOxWO![aO!]ZO!i[O!k]O!m^O!p_O!v`O#XRO#bTO~OQfOUYOXYO]VO^VOqXOxWO![aO!]ZO!i[O!k]O!m^O!p_O!v`O#XeO#bTO~O#U#gP~P!ZO#[jO~O#XlO~O]qO^qOqsOtoOxrO!OtO!RvO#VuO#bnO~O!TwO~P#pO`}O#WzO#XyO~O#X!OO~O#X!QO~OQ![Ob!TOf![Oh![On!YOq!ZO#W!WO#X!SO#e!UO~Ob!^O!d!`O!g!aO#X!]O!T#hP~Oh!fOn!YO#X!eO~Oh!hO#X!hO~Ob!^O!d!`O!g!aO#X!]O~O!Y#hP~P%jO]WX]!WX^WXqWXtWXxWX!OWX!RWX!TWX#VWX#bWX~O]!mO~O!Y!nO#U#gX!S#gX~O#U#gX!S#gX~P!ZO#]!qO#^!qO#_!sO~OUYOXYO]VO^VOqXOxWO#XRO#bTO~OtoO!TwO~O`!zO#WzO#XyO~O!S#gP~P!ZOb#RO~Ob#SO~Op#TO|#UO~OP#WObgXjgX!YgX!dgX!ggX#XgXagXQgXfgXhgXngXqgXtgX!XgX#UgX#WgX#egXpgX!SgX~Ob!^Oj#XO!d!`O!g!aO#X!]O!Y#hP~Ob#[O~Op#`O#X#]O~Ob!^O!d!`O!g!aO#X#aO~Ot#eO!b#dO!T#hX!Y#hX~Ob#hO~Oj#XO!Y#jO~O!Y#kO~Oh#lOn!YO~O!T#mO~O!TwO!b#dO~O!TwO!Y#pO~O!Y#QX#U#QX!S#QX~P!ZO!Y!nO#U#ga!S#ga~O#]!qO#^!qO#_#wO~O]qO^qOqsOxrO!OtO!RvO#VuO#bnO~Ot#Oa!T#Oaa#Oa~P.`Op#yO|#zO~O]qO^qOqsOxrO#bnO~Ot}i!O}i!R}i!T}i#V}ia}i~P/aOt!Pi!O!Pi!R!Pi!T!Pi#V!Pia!Pi~P/aOt!Qi!O!Qi!R!Qi!T!Qi#V!Qia!Qi~P/aO!S#{O~Oa#fP~P(aOa#cP~P${Oa$SOj#XO~O!Y$UO~Oh$VOo$VO~Op$XO#X#]O~O]!`Xa!^X!b!^X~O]$YO~Oa$ZO!b#dO~Ot#eO!T#ha!Y#ha~O!b#dOt!ca!T!ca!Y!caa!ca~O!Y$`O~O!S$gO#X$bO#e$aO~Oj#XOt$iO!X$kO!Y!Vi#U!Vi!S!Vi~P${O!Y#Qa#U#Qa!S#Qa~P!ZO!Y!nO#U#gi!S#gi~Oa#fX~P#pOa$oO~Oj#XOQ!{Xa!{Xb!{Xf!{Xh!{Xn!{Xq!{Xt!{X#W!{X#X!{X#e!{X~Ot$qOa#cX~P${Oa$sO~Oj#XOp$tO~Oa$uO~O!b#dOt#Ra!T#Ra!Y#Ra~Oa$wO~P.`OP#WOtgX!TgX~O#e$aOt!sX!T!sX~Ot$yO!TwO~O!S$}O#X$bO#e$aO~Oj#XOQ#PXb#PXf#PXh#PXn#PXq#PXt#PX!X#PX!Y#PX#U#PX#W#PX#X#PX#e#PX!S#PX~Ot$iO!X%QO!Y!Vq#U!Vq!S!Vq~P${Oj#XOp%RO~OtoOa#fa~Ot$qOa#ca~Oa%UO~P${Oj#XOQ#Pab#Paf#Pah#Pan#Paq#Pat#Pa!X#Pa!Y#Pa#U#Pa#W#Pa#X#Pa#e#Pa!S#Pa~Oa!}at!}a~P${O#Zo#[#ej!R#e~",goto:"-g#jPPP#kP#nP#w$WP#w$g#wPP$mPPP$s$|$|P%`P$|P$|%z&^PPPP$|&vP&z'Q#wP'W#w'^P#wP#w#wPPP'd'y(WPP#nPP(_(_(i(_P(_P(_(_P#nP#nP#nP(l#nP(o(r(u(|#nP#nP)R)X)h)v)|*S*^*d*n*t*zPPPPPPPPPP+Q+ZP+v+yP,o,r,x-RRkQ_bOPdhw!n#skYOPdhotuvw!n#R#h#skSOPdhotuvw!n#R#h#sQmTR!tnQ{VR!xqQ!x}Q#Z!XR#x!zq![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SU$d#m$f$yR$x$cq!XZ]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SQ!f^R#l!gT#^!Z#_Q|VR!yqQ!x|R#x!yQ!PWR!{rQ!RXR!|sQxUQ!wpQ#i!cQ#o!jQ#p!kQ${$eR%X$zSgPwQ!phQ#r!nR$l#sZfPhw!n#sa!b[`a!V!^!`#d#eR#b!^R!g^R!i_R#n!iS$e#m$fR%V$yV$c#m$f$yQ!rjR#v!rQdOShPwU!ldh#sR#s!nQ$P#SU$p$P$v%SQ$v$YR%S$qQ#_!ZR$W#_Q$r$PR%T$rQpUS!vp$nR$n#|Q$j#qR%P$jQ!ogS#t!o#uR#u!pQ#f!_R$^#fQ$f#mR$|$fQ$z$eR%W$z_cOPdhw!n#s^UOPdhw!n#sQ!uoQ!}tQ#OuQ#PvQ#|#RR$_#hR$Q#SQ!VZQ!d]Q#V!TQ#q!m[$O#S$P$Y$q$v%SQ$R#UQ$T#XS$h#q$jQ$m#zR%O$iR#}#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$[#dR$]#e",nodeNames:"⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",maxTerm:117,nodeProps:[["isolate",-2,3,24,""],["openedBy",17,"(",32,"[",50,"{"],["closedBy",18,")",33,"]",51,"}"]],propSources:[ypt],skippedNodes:[0,3,87],repeatNodeCount:11,tokenData:"J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_$}!_!`Cj!`!aC{!a!b$}!b!cDw!c!}$}!}#OFa#O#P$}#P#QFr#Q#R6d#R#T$}#T#UGT#U#c$}#c#dHf#d#o$}#o#pH{#p#q6d#q#rI^#r#sIo#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`JW<%lO$}`%QSOy%^z;'S%^;'S;=`%o<%lO%^`%cSo`Oy%^z;'S%^;'S;=`%o<%lO%^`%rP;=`<%l%^~%zh#Z~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^~'mh#Z~o`OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^l)[UOy%^z#]%^#]#^)n#^;'S%^;'S;=`%o<%lO%^l)sUo`Oy%^z#a%^#a#b*V#b;'S%^;'S;=`%o<%lO%^l*[Uo`Oy%^z#d%^#d#e*n#e;'S%^;'S;=`%o<%lO%^l*sUo`Oy%^z#c%^#c#d+V#d;'S%^;'S;=`%o<%lO%^l+[Uo`Oy%^z#f%^#f#g+n#g;'S%^;'S;=`%o<%lO%^l+sUo`Oy%^z#h%^#h#i,V#i;'S%^;'S;=`%o<%lO%^l,[Uo`Oy%^z#T%^#T#U,n#U;'S%^;'S;=`%o<%lO%^l,sUo`Oy%^z#b%^#b#c-V#c;'S%^;'S;=`%o<%lO%^l-[Uo`Oy%^z#h%^#h#i-n#i;'S%^;'S;=`%o<%lO%^l-uS!X[o`Oy%^z;'S%^;'S;=`%o<%lO%^~.UWOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o<%lO.R~.sOh~~.vRO;'S.R;'S;=`/P;=`O.R~/SXOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o;=`<%l.R<%lO.R~/rP;=`<%l.Rn/zYxQOy%^z!Q%^!Q![0j![!c%^!c!i0j!i#T%^#T#Z0j#Z;'S%^;'S;=`%o<%lO%^l0oYo`Oy%^z!Q%^!Q![1_![!c%^!c!i1_!i#T%^#T#Z1_#Z;'S%^;'S;=`%o<%lO%^l1dYo`Oy%^z!Q%^!Q![2S![!c%^!c!i2S!i#T%^#T#Z2S#Z;'S%^;'S;=`%o<%lO%^l2ZYf[o`Oy%^z!Q%^!Q![2y![!c%^!c!i2y!i#T%^#T#Z2y#Z;'S%^;'S;=`%o<%lO%^l3QYf[o`Oy%^z!Q%^!Q![3p![!c%^!c!i3p!i#T%^#T#Z3p#Z;'S%^;'S;=`%o<%lO%^l3uYo`Oy%^z!Q%^!Q![4e![!c%^!c!i4e!i#T%^#T#Z4e#Z;'S%^;'S;=`%o<%lO%^l4lYf[o`Oy%^z!Q%^!Q![5[![!c%^!c!i5[!i#T%^#T#Z5[#Z;'S%^;'S;=`%o<%lO%^l5aYo`Oy%^z!Q%^!Q![6P![!c%^!c!i6P!i#T%^#T#Z6P#Z;'S%^;'S;=`%o<%lO%^l6WSf[o`Oy%^z;'S%^;'S;=`%o<%lO%^d6gUOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^d7QS|So`Oy%^z;'S%^;'S;=`%o<%lO%^b7cSXQOy%^z;'S%^;'S;=`%o<%lO%^~7rWOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W<%lO7o~8_RO;'S7o;'S;=`8h;=`O7o~8kXOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W;=`<%l7o<%lO7o~9ZP;=`<%l7on9cSb^Oy%^z;'S%^;'S;=`%o<%lO%^~9tOa~n9{UUQjWOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^n:fWjW!RQOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l<cYo`Oy%^z{%^{|=R|}%^}!O=R!O!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=WUo`Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=qUo`#e[Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l>[[o`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSt^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#bQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#[~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[mpt,vpt,gpt,1,2,3,4,new b5("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>bpt[e]||-1},{term:58,get:e=>wpt[e]||-1},{term:101,get:e=>Cpt[e]||-1}],tokenPrec:1200});let SN=null;function AN(){if(!SN&&typeof document=="object"&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!="cssText"&&r!="cssFloat"&&typeof e[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));SN=t.sort().map(r=>({type:"property",label:r}))}return SN||[]}const Uae=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),Xae=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","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","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","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","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","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","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","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","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","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","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","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","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","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","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","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"].map(e=>({type:"keyword",label:e})).concat(["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","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","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","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),xpt=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),Cm=/^(\w[\w-]*|-\w[\w-]*|)$/,Spt=/^-(-[\w-]*)?$/;function Apt(e,t){var n;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let r=(n=e.parent)===null||n===void 0?void 0:n.firstChild;return(r==null?void 0:r.name)!="Callee"?!1:t.sliceString(r.from,r.to)=="var"}const Yae=new XSe,Ipt=["Declaration"];function kpt(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function BIe(e,t,n){if(t.to-t.from>4096){let r=Yae.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(vo.IncludeAnonymous);if(a.firstChild())do for(let s of BIe(e,a.node,n))o.has(s.label)||(o.add(s.label),i.push(s));while(a.nextSibling());return Yae.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(o=>{var a;if(n(o)&&o.matchContext(Ipt)&&((a=o.node.nextSibling)===null||a===void 0?void 0:a.name)==":"){let s=e.sliceString(o.from,o.to);i.has(s)||(i.add(s),r.push({label:s,type:"variable"}))}}),r}}const FIe=e=>t=>{let{state:n,pos:r}=t,i=oa(n).resolveInner(r,-1),o=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(o||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:AN(),validFor:Cm};if(i.name=="ValueName")return{from:i.from,options:Xae,validFor:Cm};if(i.name=="PseudoClassName")return{from:i.from,options:Uae,validFor:Cm};if(e(i)||(t.explicit||o)&&Apt(i,n.doc))return{from:e(i)||o?i.from:r,options:BIe(n.doc,kpt(i),e),validFor:Spt};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:AN(),validFor:Cm};return{from:i.from,options:xpt,validFor:Cm}}if(!t.explicit)return null;let a=i.resolve(r),s=a.childBefore(r);return s&&s.name==":"&&a.name=="PseudoClassSelector"?{from:r,options:Uae,validFor:Cm}:s&&s.name==":"&&a.name=="Declaration"||a.name=="ArgList"?{from:r,options:Xae,validFor:Cm}:a.name=="Block"||a.name=="Styles"?{from:r,options:AN(),validFor:Cm}:null},NIe=FIe(e=>e.name=="VariableName"),uE=LO.define({name:"css",parser:Opt.configure({props:[M_.add({Declaration:B3()}),L_.add({"Block KeyframeList":oAe})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function VIe(){return new NO(uE,uE.data.of({autocomplete:NIe}))}const Ept=Object.freeze(Object.defineProperty({__proto__:null,css:VIe,cssCompletionSource:NIe,cssLanguage:uE,defineCSSCompletionSource:FIe},Symbol.toStringTag,{value:"Module"})),_pt=309,Kae=1,Tpt=2,Ppt=3,Dpt=310,Rpt=312,$pt=313,Mpt=4,Lpt=5,Bpt=0,WH=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],jIe=125,Fpt=59,HH=47,Npt=42,Vpt=43,jpt=45,Wpt=60,Hpt=44,zpt=new xIe({start:!1,shift(e,t){return t==Mpt||t==Lpt||t==Rpt?e:t==$pt},strict:!1}),Zpt=new Ch((e,t)=>{let{next:n}=e;(n==jIe||n==-1||t.context)&&e.acceptToken(Dpt)},{contextual:!0,fallback:!0}),Gpt=new Ch((e,t)=>{let{next:n}=e,r;WH.indexOf(n)>-1||n==HH&&((r=e.peek(1))==HH||r==Npt)||n!=jIe&&n!=Fpt&&n!=-1&&!t.context&&e.acceptToken(_pt)},{contextual:!0}),Qpt=new Ch((e,t)=>{let{next:n}=e;if((n==Vpt||n==jpt)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(Kae);e.acceptToken(r?Kae:Tpt)}},{contextual:!0});function IN(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const Upt=new Ch((e,t)=>{if(e.next!=Wpt||!t.dialectEnabled(Bpt)||(e.advance(),e.next==HH))return;let n=0;for(;WH.indexOf(e.next)>-1;)e.advance(),n++;if(IN(e.next,!0)){for(e.advance(),n++;IN(e.next,!1);)e.advance(),n++;for(;WH.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==Hpt)return;for(let r=0;;r++){if(r==7){if(!IN(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(Ppt,-n)}),Xpt=$x({"get set async static":Ne.modifier,"for while do if else switch try catch finally return throw break continue default case":Ne.controlKeyword,"in of await yield void typeof delete instanceof":Ne.operatorKeyword,"let var const using function class extends":Ne.definitionKeyword,"import export from":Ne.moduleKeyword,"with debugger as new":Ne.keyword,TemplateString:Ne.special(Ne.string),super:Ne.atom,BooleanLiteral:Ne.bool,this:Ne.self,null:Ne.null,Star:Ne.modifier,VariableName:Ne.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Ne.function(Ne.variableName),VariableDefinition:Ne.definition(Ne.variableName),Label:Ne.labelName,PropertyName:Ne.propertyName,PrivatePropertyName:Ne.special(Ne.propertyName),"CallExpression/MemberExpression/PropertyName":Ne.function(Ne.propertyName),"FunctionDeclaration/VariableDefinition":Ne.function(Ne.definition(Ne.variableName)),"ClassDeclaration/VariableDefinition":Ne.definition(Ne.className),PropertyDefinition:Ne.definition(Ne.propertyName),PrivatePropertyDefinition:Ne.definition(Ne.special(Ne.propertyName)),UpdateOp:Ne.updateOperator,"LineComment Hashbang":Ne.lineComment,BlockComment:Ne.blockComment,Number:Ne.number,String:Ne.string,Escape:Ne.escape,ArithOp:Ne.arithmeticOperator,LogicOp:Ne.logicOperator,BitOp:Ne.bitwiseOperator,CompareOp:Ne.compareOperator,RegExp:Ne.regexp,Equals:Ne.definitionOperator,Arrow:Ne.function(Ne.punctuation),": Spread":Ne.punctuation,"( )":Ne.paren,"[ ]":Ne.squareBracket,"{ }":Ne.brace,"InterpolationStart InterpolationEnd":Ne.special(Ne.brace),".":Ne.derefOperator,", ;":Ne.separator,"@":Ne.meta,TypeName:Ne.typeName,TypeDefinition:Ne.definition(Ne.typeName),"type enum interface implements namespace module declare":Ne.definitionKeyword,"abstract global Privacy readonly override":Ne.modifier,"is keyof unique infer":Ne.operatorKeyword,JSXAttributeValue:Ne.attributeValue,JSXText:Ne.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Ne.angleBracket,"JSXIdentifier JSXNameSpacedName":Ne.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Ne.attributeName,"JSXBuiltin/JSXIdentifier":Ne.standard(Ne.tagName)}),Ypt={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},Kpt={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},qpt={__proto__:null,"<":143},Jpt=jO.deserialize({version:14,states:"$<UO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ08SO'#ChO+RO!bO'#CiO+aO#tO'#CiO+oO?MpO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DyO0fQ^O'#EROOQ07b'#EZ'#EZO1PQWO'#EWOOQO'#El'#ElOOQO'#Ie'#IeO1XQWO'#GmO1dQWO'#EkO1iQWO'#EkO3kQ08SO'#JiO6[Q08SO'#JjO6xQWO'#FZO6}Q&jO'#FqOOQ07b'#Fc'#FcO7YO,YO'#FcO7hQ7[O'#FxO9UQWO'#FwOOQ07b'#Jj'#JjOOQ07`'#Ji'#JiO9ZQWO'#GqOOQU'#KU'#KUO9fQWO'#IRO9kQ07hO'#ISOOQU'#JW'#JWOOQU'#IW'#IWQ`Q^OOO`Q^OOO%[Q^O'#DqO9sQ^O'#D}O9zQ^O'#EPO9aQWO'#GmO:RQ7[O'#CnO:aQWO'#EjO:lQWO'#EuO:qQ7[O'#FbO;`QWO'#GmOOQO'#KV'#KVO;eQWO'#KVO;sQWO'#GuO;sQWO'#GvO;sQWO'#GxO9aQWO'#G{O<jQWO'#HOO>RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-E<c-E<cO9aQWO,5=XO!$[QWO,5=XO!$aQ^O,5;VO!&dQ7[O'#EgO!'}QWO,5;VO!)mQ7[O'#DsO!)tQ^O'#DxO!*OQ`O,5;`O!*WQ`O,5;`O%[Q^O,5;`OOQU'#FR'#FROOQU'#FT'#FTO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aOOQU'#FX'#FXO!*fQ^O,5;rOOQ07b,5;w,5;wOOQ07b,5;x,5;xO!,iQWO,5;xOOQ07b,5;y,5;yO%[Q^O'#IiO!,qQ07hO,5<eO!&dQ7[O,5;aO!-`Q7[O,5;aO%[Q^O,5;uO!-gQ&jO'#FgO!.dQ&jO'#J}O!.OQ&jO'#J}O!.kQ&jO'#J}OOQO'#J}'#J}O!/PQ&jO,5<POOOS,5<],5<]O!/bQ^O'#FsOOOS'#Ih'#IhO7YO,YO,5;}O!/iQ&jO'#FuOOQ07b,5;},5;}O!0YQMhO'#CuOOQ07b'#Cy'#CyO!0mQWO'#CyO!0rO?MpO'#C}O!1`Q7[O,5<bO!1gQWO,5<dO!3SQ!LQO'#GSO!3aQWO'#GTO!3fQWO'#GTO!3kQ!LQO'#GXO!4jQ`O'#G]OOQO'#Gh'#GhO!(SQ7[O'#GgOOQO'#Gj'#GjO!(SQ7[O'#GiO!5]QMhO'#JdOOQ07b'#Jd'#JdO!5gQWO'#JcO!5uQWO'#JbO!5}QWO'#CtOOQ07b'#Cw'#CwOOQ07b'#DR'#DROOQ07b'#DT'#DTO1SQWO'#DVO!(SQ7[O'#FzO!(SQ7[O'#F|O!6VQWO'#GOO!6[QWO'#GPO!3fQWO'#GVO!(SQ7[O'#G[O!6aQWO'#EmO!7OQWO,5<cOOQ07`'#Cq'#CqO!7WQWO'#EnO!8QQ`O'#EoOOQ07`'#Jw'#JwO!8XQ07hO'#KWO9kQ07hO,5=]O`Q^O,5>mOOQU'#J`'#J`OOQU,5>n,5>nOOQU-E<U-E<UO!:ZQ08SO,5:]O!<wQ08SO,5:iO%[Q^O,5:iO!?bQ08SO,5:kOOQO,5@q,5@qO!@RQ7[O,5=XO!@aQ07hO'#JaO9UQWO'#JaO!@rQ07hO,59YO!@}Q`O,59YO!AVQ7[O,59YO:RQ7[O,59YO!AbQWO,5;VO!AjQWO'#HZO!BOQWO'#KZO%[Q^O,5;zO!7{Q`O,5;|O!BWQWO,5=tO!B]QWO,5=tO!BbQWO,5=tO9kQ07hO,5=tO;sQWO,5=dOOQO'#Cu'#CuO!BpQ`O,5=aO!BxQ7[O,5=bO!CTQWO,5=dO!CYQpO,5=gO!CbQWO'#KVO>pQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-E<V-E<VOOQ07b1G.o1G.oOOOO-E<W-E<WO#(vQpO,59zOOOO-E<Y-E<YOOQ07b1G/d1G/dO#({QrO,5>wO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-E<Z-E<ZO#)dQWO,5@VO#)lQrO,5@VO#)sQWO,5@dOOQ07b1G/j1G/jO%[Q^O,5@eO#){QWO'#IcOOQO-E<a-E<aO#)sQWO,5@dOOQ07`1G0t1G0tOOQ07f1G/u1G/uOOQ07f1G0X1G0XO%[Q^O,5@bO#*aQ07hO,5@bO#*rQ07hO,5@bO#*yQWO,5@aO9ZQWO,5@aO#+RQWO,5@aO#+aQWO'#IfO#*yQWO,5@aOOQ07`1G0s1G0sO!*OQ`O,5:tO!*ZQ`O,5:tOOQO,5:v,5:vO#,RQWO,5:vO#,ZQ7[O1G2sO9aQWO1G2sOOQ07b1G0q1G0qO#,iQ08SO1G0qO#-nQ08QO,5;ROOQ07b'#GR'#GRO#.[Q08SO'#JdO!$aQ^O1G0qO#0dQ7[O'#JnO#0nQWO,5:_O#0sQrO'#JoO%[Q^O'#JoO#0}QWO,5:dOOQ07b'#D['#D[OOQ07b1G0z1G0zO%[Q^O1G0zOOQ07b1G1d1G1dO#1SQWO1G0zO#3kQ08SO1G0{O#3rQ08SO1G0{O#6]Q08SO1G0{O#6dQ08SO1G0{O#8nQ08SO1G0{O#9UQ08SO1G0{O#<OQ08SO1G0{O#<VQ08SO1G0{O#>pQ08SO1G0{O#>wQ08SO1G0{O#@oQ08SO1G0{O#CoQ(CYO'#ChO#EmQ(CYO1G1^O#EtQ(CYO'#JjO!,lQWO1G1dO#FUQ08SO,5?TOOQ07`-E<g-E<gO#FxQ08SO1G0{OOQ07b1G0{1G0{O#ITQ08SO1G1aO#IwQ&jO,5<TO#JPQ&jO,5<UO#JXQ&jO'#FlO#JpQWO'#FkOOQO'#KO'#KOOOQO'#Ig'#IgO#JuQ&jO1G1kOOQ07b1G1k1G1kOOOS1G1v1G1vO#KWQ(CYO'#JiO#KbQWO,5<_O!*fQ^O,5<_OOOS-E<f-E<fOOQ07b1G1i1G1iO#KgQ`O'#J}OOQ07b,5<a,5<aO#KoQ`O,5<aOOQ07b,59e,59eO!&dQ7[O'#DPOOOO'#IZ'#IZO#KtO?MpO,59iOOQ07b,59i,59iO%[Q^O1G1|O!6[QWO'#IkO#LPQ7[O,5<uOOQ07b,5<r,5<rO!(SQ7[O'#InO#LoQ7[O,5=RO!(SQ7[O'#IpO#MbQ7[O,5=TO!&dQ7[O,5=VOOQO1G2O1G2OO#MlQpO'#CqO#NPQpO,5<nO#NWQWO'#KRO9aQWO'#KRO#NfQWO,5<pO!(SQ7[O,5<oO#NkQWO'#GUO#NvQWO,5<oO#N{QpO'#GRO$ YQpO'#KSO$ dQWO'#KSO!&dQ7[O'#KSO$ iQWO,5<sO$ nQ`O'#G^O!4eQ`O'#G^O$!PQWO'#G`O$!UQWO'#GbO!3fQWO'#GeO$!ZQ07hO'#ImO$!fQ`O,5<wOOQ07f,5<w,5<wO$!mQ`O'#G^O$!{Q`O'#G_O$#TQ`O'#G_O$#YQ7[O,5=RO$#jQ7[O,5=TOOQ07b,5=W,5=WO!(SQ7[O,5?}O!(SQ7[O,5?}O$#zQWO'#IrO$$VQWO,5?|O$$_QWO,59`O$%OQ7[O,59qOOQ07b,59q,59qO$%qQ7[O,5<fO$&dQ7[O,5<hO@bQWO,5<jOOQ07b,5<k,5<kO$&nQWO,5<qO$&sQ7[O,5<vO$'TQWO'#JuO!$aQ^O1G1}O$'YQWO1G1}O9ZQWO'#JxO9ZQWO'#EpO%[Q^O'#EpO9ZQWO'#ItO$'_Q07hO,5@rOOQU1G2w1G2wOOQU1G4X1G4XOOQ07b1G/w1G/wO!,iQWO1G/wO$)dQ08SO1G0TOOQU1G2s1G2sO!&dQ7[O1G2sO%[Q^O1G2sO#,^QWO1G2sO$+hQ7[O'#EgOOQ07`,5?{,5?{O$+rQ07hO,5?{OOQU1G.t1G.tO!@rQ07hO1G.tO!@}Q`O1G.tO!AVQ7[O1G.tO$,TQWO1G0qO$,YQWO'#ChO$,eQWO'#K[O$,mQWO,5=uO$,rQWO'#K[O$,wQWO'#K[O$-VQWO'#IzO$-eQWO,5@uO$-mQrO1G1fOOQ07b1G1h1G1hO9aQWO1G3`O@bQWO1G3`O$-tQWO1G3`O$-yQWO1G3`OOQU1G3`1G3`O!CTQWO1G3OO!&dQ7[O1G2{O$.OQWO1G2{OOQU1G2|1G2|O!&dQ7[O1G2|O$.TQWO1G2|O$.]Q`O'#GzOOQU1G3O1G3OO!4eQ`O'#IvO!CYQpO1G3ROOQU1G3R1G3ROOQU,5=l,5=lO$.eQ7[O,5=nO9aQWO,5=nO$!UQWO,5=pO9UQWO,5=pO!@}Q`O,5=pO!AVQ7[O,5=pO:RQ7[O,5=pO$.sQWO'#KYO$/OQWO,5=qOOQU1G.j1G.jO$/TQ07hO1G.jO@bQWO1G.jO$/`QWO1G.jO9kQ07hO1G.jO$1eQrO,5@wO$1uQWO,5@wO9ZQWO,5@wO$2QQ^O,5=xO$2XQWO,5=xOOQU1G3b1G3bO`Q^O1G3bOOQU1G3h1G3hOOQU1G3j1G3jO>kQWO1G3lO$2^Q^O1G3nO$6bQ^O'#HmOOQU1G3q1G3qO$6oQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6wQ^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;OQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;TQ(CYO,5:UOOQO,5;[,5;[O$;_Q`O'#I^O$;uQWO,5@WOOQ07b1G/o1G/oO$;}Q`O'#IdO$<XQWO,5@fOOQ07`1G0u1G0uO# xQ`O,5:UOOQO'#Ia'#IaO$<aQ`O,5:pOOQ07f,5:p,5:pO#%sQWO1G0YOOQ07b1G0Y1G0YO%[Q^O1G0YOOQ07b1G0p1G0pO>pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$<hQ07hO1G0iO$<sQ07hO1G0iO!@}Q`O1G0]OCnQ`O1G0]O$=RQ07hO1G0iOOQO1G0]1G0]O$=gQ08SO1G0iPOOO-E<T-E<TPOOO1G.g1G.gOOOO1G/f1G/fO$=qQpO,5<eO$=yQrO1G4cOOQO1G4i1G4iO%[Q^O,5>wO$>TQWO1G5qO$>]QWO1G6OO$>eQrO1G6PO9ZQWO,5>}O$>oQ08SO1G5|O%[Q^O1G5|O$?PQ07hO1G5|O$?bQWO1G5{O$?bQWO1G5{O9ZQWO1G5{O$?jQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@OQWO,5?QO$'TQWO,5?QOOQO-E<d-E<dOOQO1G0`1G0`OOQO1G0b1G0bO!,lQWO1G0bOOQU7+(_7+(_O!&dQ7[O7+(_O%[Q^O7+(_O$@^QWO7+(_O$@iQ7[O7+(_O$@wQ08SO,5=RO$CSQ08SO,5=TO$E_Q08SO,5=RO$GpQ08SO,5=TO$JRQ08SO,59qO$LZQ08SO,5<fO$NfQ08SO,5<hO%!qQ08SO,5<vOOQ07b7+&]7+&]O%%SQ08SO7+&]O%%vQ7[O'#I_O%&QQWO,5@YOOQ07b1G/y1G/yO%&YQ^O'#I`O%&gQWO,5@ZO%&oQrO,5@ZOOQ07b1G0O1G0OO%&yQWO7+&fOOQ07b7+&f7+&fO%'OQ(CYO,5:eO%[Q^O7+&xO%'YQ(CYO,5:]O%'gQ(CYO,5:iO%'qQ(CYO,5:kOOQ07b7+'O7+'OOOQO1G1o1G1oOOQO1G1p1G1pO%'{QtO,5<WO!*fQ^O,5<VOOQO-E<e-E<eOOQ07b7+'V7+'VOOOS7+'b7+'bOOOS1G1y1G1yO%(WQWO1G1yOOQ07b1G1{1G1{O%(]QpO,59kOOOO-E<X-E<XOOQ07b1G/T1G/TO%(dQ08SO7+'hOOQ07b,5?V,5?VO%)WQpO,5?VOOQ07b1G2a1G2aP!&dQ7[O'#IkPOQ07b-E<i-E<iO%)vQ7[O,5?YOOQ07b-E<l-E<lO%*iQ7[O,5?[OOQ07b-E<n-E<nO%*sQpO1G2qOOQ07b1G2Y1G2YO%*zQWO'#IjO%+YQWO,5@mO%+YQWO,5@mO%+bQWO,5@mO%+mQWO,5@mOOQO1G2[1G2[O%+{Q7[O1G2ZO!(SQ7[O1G2ZO%,]Q!LQO'#IlO%,mQWO,5@nO!&dQ7[O,5@nO%,uQpO,5@nOOQ07b1G2_1G2_OOQ07`,5<x,5<xOOQ07`,5<y,5<yO$'TQWO,5<yOC_QWO,5<yO!@}Q`O,5<xOOQO'#Ga'#GaO%-PQWO,5<zOOQ07`,5<|,5<|O$'TQWO,5=POOQO,5?X,5?XOOQO-E<k-E<kOOQ07f1G2c1G2cO!4eQ`O,5<xO%-XQWO,5<yO$!PQWO,5<zO!4eQ`O,5<yO!(SQ7[O'#InO%-{Q7[O1G2mO!(SQ7[O'#IpO%.nQ7[O1G2oO%.xQ7[O1G5iO%/SQ7[O1G5iOOQO,5?^,5?^OOQO-E<p-E<pOOQO1G.z1G.zO!7{Q`O,59sO%[Q^O,59sO%/aQWO1G2UO!(SQ7[O1G2]O%/fQ08SO7+'iOOQ07b7+'i7+'iO!$aQ^O7+'iO%0YQWO,5;[OOQ07`,5?`,5?`OOQ07`-E<r-E<rOOQ07b7+%c7+%cO%0_QpO'#KTO#%sQWO7+(_O%0iQrO7+(_O$@aQWO7+(_O%0pQ08QO'#ChO%1TQ08QO,5<}O%1uQWO,5<}OOQ07`1G5g1G5gOOQU7+$`7+$`O!@rQ07hO7+$`O!@}Q`O7+$`O!$aQ^O7+&]O%1zQWO'#IyO%2cQWO,5@vOOQO1G3a1G3aO9aQWO,5@vO%2cQWO,5@vO%2kQWO,5@vOOQO,5?f,5?fOOQO-E<x-E<xOOQ07b7+'Q7+'QO%2pQWO7+(zO9kQ07hO7+(zO9aQWO7+(zO@bQWO7+(zOOQU7+(j7+(jO%2uQ08QO7+(gO!&dQ7[O7+(gO%3PQpO7+(hOOQU7+(h7+(hO!&dQ7[O7+(hO%3WQWO'#KXO%3cQWO,5=fOOQO,5?b,5?bOOQO-E<t-E<tOOQU7+(m7+(mO%4rQ`O'#HTOOQU1G3Y1G3YO!&dQ7[O1G3YO%[Q^O1G3YO%4yQWO1G3YO%5UQ7[O1G3YO9kQ07hO1G3[O$!UQWO1G3[O9UQWO1G3[O!@}Q`O1G3[O!AVQ7[O1G3[O%5dQWO'#IxO%5xQWO,5@tO%6QQ`O,5@tOOQ07`1G3]1G3]OOQU7+$U7+$UO@bQWO7+$UO9kQ07hO7+$UO%6]QWO7+$UO%[Q^O1G6cO%[Q^O1G6dO%6bQ07hO1G6cO%6lQ^O1G3dO%6sQWO1G3dO%6xQ^O1G3dOOQU7+(|7+(|O9kQ07hO7+)WO`Q^O7+)YOOQU'#K_'#K_OOQU'#I{'#I{O%7PQ^O,5>XOOQU,5>X,5>XO%[Q^O'#HnO%7^QWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7cQ`O1G5sO%7wQ(CYO1G0vO%8RQWO1G0vOOQO1G/p1G/pO%8^Q(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-E<b-E<bO!@}Q`O1G/pOOQO-E<_-E<_OOQ07f1G0[1G0[OOQ07b7+%t7+%tO#%sQWO7+%tOOQ07b7+&[7+&[O>pQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=gQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8hQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8sQ07hO7+&TO%9RQ08SO7++hO%[Q^O7++hO%9cQWO7++gO%9cQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9kQWO1G4lOOQO7+%|7+%|O#%sQWO<<KyO%0iQrO<<KyO%9yQWO<<KyOOQU<<Ky<<KyO!&dQ7[O<<KyO%[Q^O<<KyO%:RQWO<<KyO%:^Q08SO,5?YO%<iQ08SO,5?[O%>tQ08SO1G2ZO%AVQ08SO1G2mO%CbQ08SO1G2oO%EmQ7[O,5>yOOQO-E<]-E<]O%EwQrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FRQWO1G5uOOQ07b<<JQ<<JQO%FZQ(CYO1G0qO%HeQ(CYO1G0{O%HlQ(CYO1G0{O%JpQ(CYO1G0{O%JwQ(CYO1G0{O%LlQ(CYO1G0{O%MSQ(CYO1G0{O& gQ(CYO1G0{O& nQ(CYO1G0{O&#rQ(CYO1G0{O&#yQ(CYO1G0{O&%qQ(CYO1G0{O&&UQ08SO<<JdO&'ZQ(CYO1G0{O&)PQ(CYO'#JdO&+SQ(CYO1G1aO&+aQ(CYO1G0TO!*fQ^O'#FnOOQO'#KP'#KPOOQO1G1r1G1rO&+kQWO1G1qO&+pQ(CYO,5?TOOOS7+'e7+'eOOOO1G/V1G/VOOQ07b1G4q1G4qO!(SQ7[O7+(]O&+zQWO,5?UO9aQWO,5?UOOQO-E<h-E<hO&,YQWO1G6XO&,YQWO1G6XO&,bQWO1G6XO&,mQ7[O7+'uO&,}QpO,5?WO&-XQWO,5?WO!&dQ7[O,5?WOOQO-E<j-E<jO&-^QpO1G6YO&-hQWO1G6YOOQ07`1G2e1G2eO$'TQWO1G2eOOQ07`1G2d1G2dO&-pQWO1G2fO!&dQ7[O1G2fOOQ07`1G2k1G2kO!@}Q`O1G2dOC_QWO1G2eO&-uQWO1G2fO&-}QWO1G2eO&.qQ7[O,5?YOOQ07b-E<m-E<mO&/dQ7[O,5?[OOQ07b-E<o-E<oO!(SQ7[O7++TOOQ07b1G/_1G/_O&/nQWO1G/_OOQ07b7+'p7+'pO&/sQ7[O7+'wO&0TQ08SO<<KTOOQ07b<<KT<<KTO&0wQWO1G0vO!&dQ7[O'#IsO&0|QWO,5@oO!&dQ7[O1G2iOOQU<<Gz<<GzO!@rQ07hO<<GzO&1UQ08SO<<IwOOQ07b<<Iw<<IwOOQO,5?e,5?eO&1xQWO,5?eO&1}QWO,5?eOOQO-E<w-E<wO&2]QWO1G6bO&2]QWO1G6bO9aQWO1G6bO@bQWO<<LfOOQU<<Lf<<LfO&2eQWO<<LfO9kQ07hO<<LfOOQU<<LR<<LRO%2uQ08QO<<LROOQU<<LS<<LSO%3PQpO<<LSO&2jQ`O'#IuO&2uQWO,5@sO!*fQ^O,5@sOOQU1G3Q1G3QO&2}Q^O'#JmOOQO'#Iw'#IwO9kQ07hO'#IwO&3XQ`O,5=oOOQU,5=o,5=oO&3`Q`O'#EcO&3tQWO7+(tO&3yQWO7+(tOOQU7+(t7+(tO!&dQ7[O7+(tO%[Q^O7+(tO&4RQWO7+(tOOQU7+(v7+(vO9kQ07hO7+(vO$!UQWO7+(vO9UQWO7+(vO!@}Q`O7+(vO&4^QWO,5?dOOQO-E<v-E<vOOQO'#HW'#HWO&4iQWO1G6`O9kQ07hO<<GpOOQU<<Gp<<GpO@bQWO<<GpO&4qQWO7++}O&4vQWO7+,OO%[Q^O7++}O%[Q^O7+,OOOQU7+)O7+)OO&4{QWO7+)OO&5QQ^O7+)OO&5XQWO7+)OOOQU<<Lr<<LrOOQU<<Lt<<LtOOQU-E<y-E<yOOQU1G3s1G3sO&5^QWO,5>YOOQU,5>[,5>[O&5cQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5hQ(CYO1G6PO>pQWO7+%[OOQ07b<<I`<<I`OOQ07b<<Iv<<IvO>pQWO<<IvOOQO<<Io<<IoO$=gQ08SO<<IoO%[Q^O<<IoOOQO<<Ic<<IcO!@rQ07hO<<IcO&5rQ07hO<<IoO&5}Q08SO<= SO&6_QWO<= ROOQO7+*W7+*WO9ZQWO7+*WOOQUANAeANAeO&6gQWOANAeO!&dQ7[OANAeO#%sQWOANAeO%0iQrOANAeO%[Q^OANAeO&6oQ08SO7+'uO&9QQ08SO,5?YO&;]Q08SO,5?[O&=hQ08SO7+'wO&?yQrO1G4fO&@TQ(CYO7+&]O&BXQ(CYO,5=RO&D`Q(CYO,5=TO&DpQ(CYO,5=RO&EQQ(CYO,5=TO&EbQ(CYO,59qO&GeQ(CYO,5<fO&IhQ(CYO,5<hO&KkQ(CYO,5<vO&MaQ(CYO7+'hO&MnQ(CYO7+'iO&M{QWO,5<YOOQO7+']7+']O&NQQ7[O<<KwOOQO1G4p1G4pO&NXQWO1G4pO&NdQWO1G4pO&NrQWO7++sO&NrQWO7++sO!&dQ7[O1G4rO&NzQpO1G4rO' UQWO7++tOOQ07`7+(P7+(PO$'TQWO7+(QO' ^QpO7+(QOOQ07`7+(O7+(OO$'TQWO7+(PO' eQWO7+(QO!&dQ7[O7+(QOC_QWO7+(PO' jQ7[O<<NoOOQ07b7+$y7+$yO' tQpO,5?_OOQO-E<q-E<qO'!OQ08QO7+(TOOQUAN=fAN=fO9aQWO1G5POOQO1G5P1G5PO'!`QWO1G5PO'!eQWO7++|O'!eQWO7++|O9kQ07hOANBQO@bQWOANBQOOQUANBQANBQOOQUANAmANAmOOQUANAnANAnO'!mQWO,5?aOOQO-E<s-E<sO'!xQ(CYO1G6_O'%YQrO'#ChOOQO,5?c,5?cOOQO-E<u-E<uOOQU1G3Z1G3ZO&2}Q^O,5<zOOQU<<L`<<L`O!&dQ7[O<<L`O&3tQWO<<L`O'%dQWO<<L`O%[Q^O<<L`OOQU<<Lb<<LbO9kQ07hO<<LbO$!UQWO<<LbO9UQWO<<LbO'%lQ`O1G5OO'%wQWO7++zOOQUAN=[AN=[O9kQ07hOAN=[OOQU<= i<= iOOQU<= j<= jO'&PQWO<= iO'&UQWO<= jOOQU<<Lj<<LjO'&ZQWO<<LjO'&`Q^O<<LjOOQU1G3t1G3tO>pQWO7+)eO'&gQWO<<I|O'&rQ(CYO<<I|OOQO<<Hv<<HvOOQ07bAN?bAN?bOOQOAN?ZAN?ZO$=gQ08SOAN?ZOOQOAN>}AN>}O%[Q^OAN?ZOOQO<<Mr<<MrOOQUG27PG27PO!&dQ7[OG27PO#%sQWOG27PO'&|QWOG27PO%0iQrOG27PO''UQ(CYO<<JdO''cQ(CYO1G2ZO')XQ(CYO,5?YO'+[Q(CYO,5?[O'-_Q(CYO1G2mO'/bQ(CYO1G2oO'1eQ(CYO<<KTO'1rQ(CYO<<IwOOQO1G1t1G1tO!(SQ7[OANAcOOQO7+*[7+*[O'2PQWO7+*[O'2[QWO<= _O'2dQpO7+*^OOQ07`<<Kl<<KlO$'TQWO<<KlOOQ07`<<Kk<<KkO'2nQpO<<KlO$'TQWO<<KkOOQO7+*k7+*kO9aQWO7+*kO'2uQWO<= hOOQUG27lG27lO9kQ07hOG27lO!*fQ^O1G4{O'2}QWO7++yO&3tQWOANAzOOQUANAzANAzO!&dQ7[OANAzO'3VQWOANAzOOQUANA|ANA|O9kQ07hOANA|O$!UQWOANA|OOQO'#HX'#HXOOQO7+*j7+*jOOQUG22vG22vOOQUANETANETOOQUANEUANEUOOQUANBUANBUO'3_QWOANBUOOQU<<MP<<MPO!*fQ^OAN?hOOQOG24uG24uO$=gQ08SOG24uO#%sQWOLD,kOOQULD,kLD,kO!&dQ7[OLD,kO'3dQWOLD,kO'3lQ(CYO7+'uO'5bQ(CYO,5?YO'7eQ(CYO,5?[O'9hQ(CYO7+'wO';^Q7[OG26}OOQO<<Mv<<MvOOQ07`ANAWANAWO$'TQWOANAWOOQ07`ANAVANAVOOQO<<NV<<NVOOQULD-WLD-WO';nQ(CYO7+*gOOQUG27fG27fO&3tQWOG27fO!&dQ7[OG27fOOQUG27hG27hO9kQ07hOG27hOOQUG27pG27pO';xQ(CYOG25SOOQOLD*aLD*aOOQU!$(!V!$(!VO#%sQWO!$(!VO!&dQ7[O!$(!VO'<SQ08SOG26}OOQ07`G26rG26rOOQULD-QLD-QO&3tQWOLD-QOOQULD-SLD-SOOQU!)9Eq!)9EqO#%sQWO!)9EqOOQU!$(!l!$(!lOOQU!.K;]!.K;]O'>eQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@ZQrO'#JiO!*fQ^O'#DqO'@bQ^O'#D}O'@iQrO'#ChO'CPQrO'#ChO!*fQ^O'#EPO'CaQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EdQWO,5<eO'ElQ7[O,5;aO'GVQ7[O,5;aO!*fQ^O,5;uO!&dQ7[O'#GgO'ElQ7[O'#GgO!&dQ7[O'#GiO'ElQ7[O'#GiO1SQWO'#DVO1SQWO'#DVO!&dQ7[O'#FzO'ElQ7[O'#FzO!&dQ7[O'#F|O'ElQ7[O'#F|O!&dQ7[O'#G[O'ElQ7[O'#G[O!*fQ^O,5:iO!*fQ^O,5@eO'CaQ^O1G0qO'G^Q(CYO'#ChO!*fQ^O1G1|O!&dQ7[O'#InO'ElQ7[O'#InO!&dQ7[O'#IpO'ElQ7[O'#IpO!&dQ7[O,5<oO'ElQ7[O,5<oO'CaQ^O1G1}O!*fQ^O7+&xO!&dQ7[O1G2ZO'ElQ7[O1G2ZO!&dQ7[O'#InO'ElQ7[O'#InO!&dQ7[O'#IpO'ElQ7[O'#IpO!&dQ7[O1G2]O'ElQ7[O1G2]O'CaQ^O7+'iO'CaQ^O7+&]O!&dQ7[OANAcO'ElQ7[OANAcO'GhQWO'#EkO'GmQWO'#EkO'GuQWO'#FZO'GzQWO'#EuO'HPQWO'#JyO'H[QWO'#JwO'HgQWO,5;VO'HlQ7[O,5<bO'HsQWO'#GTO'HxQWO'#GTO'H}QWO,5<cO'IVQWO,5;VO'I_Q(CYO1G1^O'IfQWO,5<oO'IkQWO,5<oO'IpQWO,5<qO'IuQWO,5<qO'IzQWO1G1}O'JPQWO1G0qO'JUQ7[O<<KwO'J]Q7[O<<KwO7hQ7[O'#FxO9UQWO'#FwOA]QWO'#EjO!*fQ^O,5;rO!3fQWO'#GTO!3fQWO'#GTO!3fQWO'#GVO!3fQWO'#GVO!(SQ7[O7+(]O!(SQ7[O7+(]O%*sQpO1G2qO%*sQpO1G2qO!&dQ7[O,5=VO!&dQ7[O,5=V",stateData:"'Ka~O'tOS'uOSSOS'vRQ~OPYOQYORfOX!VO`qOczOdyOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![XO!fuO!kZO!nYO!oYO!pYO!rvO!twO!wxO!{]O#s!PO$T|O%b}O%d!QO%f!OO%g!OO%h!OO%k!RO%m!SO%p!TO%q!TO%s!UO&P!WO&V!XO&X!YO&Z!ZO&]![O&`!]O&f!^O&l!_O&n!`O&p!aO&r!bO&t!cO'{SO'}TO(QUO(XVO(g[O(tiO~OVtO~P`OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'{!dO'}TO(QUO(XVO(g[O(tiO~O`!vOo!nO!P!oO!_!xO!`!uO!a!uO!{:dO#P!pO#Q!pO#R!wO#S!pO#T!pO#W!yO#X!yO'|!lO'}TO(QUO([!mO(g!sO~O'v!zO~OP[XZ[X`[Xn[X|[X}[X!P[X!Y[X!h[X!i[X!k[X!o[X#[[X#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X'r[X(X[X(h[X(o[X(p[X~O!d$|X~P(qO^!|O'}#OO(O!|O(P#OO~O^#PO(P#OO(Q#OO(R#PO~Ot#RO!R#SO(Y#SO(Z#UO~OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'{:hO'}TO(QUO(XVO(g[O(tiO~O!X#YO!Y#VO!V(_P!V(lP~P+}O!Z#bO~P`OPYOQYORfOc!jOd!iOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'}TO(QUO(XVO(g[O(tiO~Ol#lO!X#hO!{]O#e#kO#f#hO'{:iO!j(iP~P.iO!k#nO'{#mO~O!w#rO!{]O%b#sO~O#g#tO~O!d#uO#g#tO~OP$]OZ$dOn$QO|#yO}#zO!P#{O!Y$aO!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO#y$YO(XVO(h$ZO(o#|O(p#}O~O`(]X'r(]X'p(]X!j(]X!V(]X![(]X%c(]X!d(]X~P1qO#[$eO$O$eOP(^XZ(^Xn(^X|(^X}(^X!P(^X!Y(^X!h(^X!k(^X!o(^X#j(^X#k(^X#l(^X#m(^X#n(^X#o(^X#p(^X#q(^X#r(^X#t(^X#v(^X#x(^X#y(^X(X(^X(h(^X(o(^X(p(^X![(^X%c(^X~O`(^X!i(^X'r(^X'p(^X!V(^X!j(^Xr(^X!d(^X~P4XO#[$eO~O$Y$gO$[$fO$c$lO~ORfO![$mO$f$nO$h$pO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz%ZO!P${O![$|O!f%`O!k$xO#f%aO$T%^O$o%[O$q%]O$t%_O'{$rO'}TO(QUO(X$uO(o$}O(p%POf(UP~O!k%bO~O!P%eO![%fO'{%dO~O!d%jO~O`%kO'r%kO~O'|!lO~P%[O%h%rO~P%[Og%VO!k%bO'{%dO'|!lO~Od%yO!k%bO'{%dO~O#r$SO~O|&OO![%{O!k%}O%d&RO'{%dO'|!lO'}TO(QUO_(}P~O!w#rO~O%m&TO!P(yX![(yX'{(yX~O'{&UO~O!t&ZO#s!PO%d!QO%f!OO%g!OO%h!OO%k!RO%m!SO%p!TO%q!TO~Oc&`Od&_O!w&]O%b&^O%u&[O~P;xOc&cOdyO![&bO!t&ZO!wxO!{]O#s!PO%b}O%f!OO%g!OO%h!OO%k!RO%m!SO%p!TO%q!TO%s!UO~Oa&fO#[&iO%d&dO'|!lO~P<}O!k&jO!t&nO~O!k#nO~O![XO~O`%kO'q&vO'r%kO~O`%kO'q&yO'r%kO~O`%kO'q&{O'r%kO~O'p[X!V[Xr[X!j[X&T[X![[X%c[X!d[X~P(qO!_'YO!`'RO!a'RO'|!lO'}TO(QUO~Oo'PO!P'OO!X'SO([&}O!Z(`P!Z(nP~P@UOj']O!['ZO'{%dO~Od'bO!k%bO'{%dO~O|&OO!k%}O~Oo!nO!P!oO!{:dO#P!pO#Q!pO#S!pO#T!pO'|!lO'}TO(QUO([!mO(g!sO~O!_'hO!`'gO!a'gO#R!pO#W'iO#X'iO~PApO`%kOg%VO!d#uO!k%bO'r%kO(h'kO~O!o'oO#['mO~PCOOo!nO!P!oO'}TO(QUO([!mO(g!sO~O![XOo(eX!P(eX!_(eX!`(eX!a(eX!{(eX#P(eX#Q(eX#R(eX#S(eX#T(eX#W(eX#X(eX'|(eX'}(eX(Q(eX([(eX(g(eX~O!`'gO!a'gO'|!lO~PCnO'w'sO'x'sO'y'uO~O^!|O'}'wO(O!|O(P'wO~O^#PO(P'wO(Q'wO(R#PO~Ot#RO!R#SO(Y#SO(Z'{O~O!X'}O!V'PX!V'VX!Y'PX!Y'VX~P+}O!Y(PO!V(_X~OP$]OZ$dOn$QO|#yO}#zO!P#{O!Y(PO!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO#y$YO(XVO(h$ZO(o#|O(p#}O~O!V(_X~PGbO!V(UO~O!V(kX!Y(kX!d(kX!j(kX(h(kX~O#[(kX#g#`X!Z(kX~PIhO#[(VO!V(mX!Y(mX~O!Y(WO!V(lX~O!V(ZO~O#[$eO~PIhO!Z([O~P`O|#yO}#zO!P#{O!i#wO!k#xO(XVOP!maZ!man!ma!Y!ma!h!ma!o!ma#j!ma#k!ma#l!ma#m!ma#n!ma#o!ma#p!ma#q!ma#r!ma#t!ma#v!ma#x!ma#y!ma(h!ma(o!ma(p!ma~O`!ma'r!ma'p!ma!V!ma!j!mar!ma![!ma%c!ma!d!ma~PKOO!j(]O~O!d#uO#[(^O(h'kO!Y(jX`(jX'r(jX~O!j(jX~PMnO!P%eO![%fO!{]O#e(cO#f(bO'{%dO~O!Y(dO!j(iX~O!j(fO~O!P%eO![%fO#f(bO'{%dO~OP(^XZ(^Xn(^X|(^X}(^X!P(^X!Y(^X!h(^X!i(^X!k(^X!o(^X#j(^X#k(^X#l(^X#m(^X#n(^X#o(^X#p(^X#q(^X#r(^X#t(^X#v(^X#x(^X#y(^X(X(^X(h(^X(o(^X(p(^X~O!d#uO!j(^X~P! [O|(gO}(hO!i#wO!k#xO!{!za!P!za~O!w!za%b!za![!za#e!za#f!za'{!za~P!#`O!w(lO~OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![XO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'{!dO'}TO(QUO(XVO(g[O(tiO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz;QO!P${O![$|O!f<`O!k$xO#f;WO$T%^O$o;SO$q;UO$t%_O'{(pO'}TO(QUO(X$uO(o$}O(p%PO~O#g(rO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz%ZO!P${O![$|O!f%`O!k$xO#f%aO$T%^O$o%[O$q%]O$t%_O'{(pO'}TO(QUO(X$uO(o$}O(p%PO~Of(bP~P!(SO!X(vO!j(cP~P%[O([(xO(g[O~O!P(zO!k#xO([(xO(g[O~OP:cOQ:cORfOc<[Od!iOlkOn:cOokOpkOvkOx:cOz:cO!PWO!TkO!UkO![!eO!f:fO!kZO!n:cO!o:cO!p:cO!r:gO!t:jO!w!hO$T!kO'{)YO'}TO(QUO(XVO(g[O(t<YO~O})]O!k#xO~O!Y$aO`$ma'r$ma'p$ma!j$ma!V$ma![$ma%c$ma!d$ma~O#s)aO~P!&dO|)dO!d)cO![$ZX$W$ZX$Y$ZX$[$ZX$c$ZX~O!d)cO![(qX$W(qX$Y(qX$[(qX$c(qX~O|)dO~P!.OO|)dO![(qX$W(qX$Y(qX$[(qX$c(qX~O![)fO$W)jO$Y)eO$[)eO$c)kO~O!X)nO~P!*fO$Y$gO$[$fO$c)rO~Oj$uX|$uX!P$uX!i$uX(o$uX(p$uX~OfiXf$uXjiX!YiX#[iX~P!/tOo)tO~Ot)uO(Y)vO(Z)xO~Oj*RO|)zO!P){O(o$}O(p%PO~Of)yO~P!0}Of*SO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz;QO!P${O![$|O!f<`O!k$xO#f;WO$T%^O$o;SO$q;UO$t%_O'}TO(QUO(X$uO(o$}O(p%PO~O!X*WO'{*TO!j(uP~P!1lO#g*YO~O!k*ZO~O!X*`O'{*]O!V(vP~P!1lOn*lO!P*dO!_*jO!`*cO!a*cO!k*ZO#W*kO%Y*fO'|!lO([!mO~O!Z*iO~P!3xO!i#wOj(WX|(WX!P(WX(o(WX(p(WX!Y(WX#[(WX~Of(WX#|(WX~P!4qOj*qO#[*pOf(VX!Y(VX~O!Y*rOf(UX~O'{&UOf(UP~O!k*yO~O'{(pO~Ol*}O!P%eO!X#hO![%fO!{]O#e#kO#f#hO'{%dO!j(iP~O!d#uO#g+OO~O!P%eO!X+QO!Y(WO![%fO'{%dO!V(lP~Oo'VO!P+SO!X+RO'}TO(QUO([(xO~O!Z(nP~P!7lO!Y+TO`(zX'r(zX~OP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO#y$YO(XVO(h$ZO(o#|O(p#}O~O`!ea!Y!ea'r!ea'p!ea!V!ea!j!ear!ea![!ea%c!ea!d!ea~P!8dO|#yO}#zO!P#{O!i#wO!k#xO(XVOP!qaZ!qan!qa!Y!qa!h!qa!o!qa#j!qa#k!qa#l!qa#m!qa#n!qa#o!qa#p!qa#q!qa#r!qa#t!qa#v!qa#x!qa#y!qa(h!qa(o!qa(p!qa~O`!qa'r!qa'p!qa!V!qa!j!qar!qa![!qa%c!qa!d!qa~P!:}O|#yO}#zO!P#{O!i#wO!k#xO(XVOP!saZ!san!sa!Y!sa!h!sa!o!sa#j!sa#k!sa#l!sa#m!sa#n!sa#o!sa#p!sa#q!sa#r!sa#t!sa#v!sa#x!sa#y!sa(h!sa(o!sa(p!sa~O`!sa'r!sa'p!sa!V!sa!j!sar!sa![!sa%c!sa!d!sa~P!=hOg%VOj+^O!['ZO%c+]O~O!d+`O`(TX![(TX'r(TX!Y(TX~O`%kO![XO'r%kO~Og%VO!k%bO~Og%VO!k%bO'{%dO~O!d#uO#g(rO~Oa+kO%d+lO'{+hO'}TO(QUO!Z)OP~O!Y+mO_(}X~OZ+qO~O_+rO~O![%{O'{%dO'|!lO_(}P~Og%VO#[+wO~Og%VOj+zO![$|O~O![+|O~O|,OO![XO~O%h%rO~O!w,TO~Od,YO~Oa,ZO'{#mO'}TO(QUO!Z(|P~Od%yO~O%d!QO'{&UO~P<}OZ,`O_,_O~OPYOQYORfOczOdyOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO!fuO!kZO!nYO!oYO!pYO!rvO!wxO!{]O%b}O'}TO(QUO(XVO(g[O(tiO~O![!eO!t!gO$T!kO'{!dO~P!DkO_,_O`%kO'r%kO~OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!w!hO$T!kO'{!dO'}TO(QUO(XVO(g[O(tiO~O`,eO!twO#s!OO%f!OO%g!OO%h!OO~P!GTO!k&jO~O&V,kO~O![,mO~O&h,oO&j,pOP&eaQ&eaR&eaX&ea`&eac&ead&eal&ean&eao&eap&eav&eax&eaz&ea!P&ea!T&ea!U&ea![&ea!f&ea!k&ea!n&ea!o&ea!p&ea!r&ea!t&ea!w&ea!{&ea#s&ea$T&ea%b&ea%d&ea%f&ea%g&ea%h&ea%k&ea%m&ea%p&ea%q&ea%s&ea&P&ea&V&ea&X&ea&Z&ea&]&ea&`&ea&f&ea&l&ea&n&ea&p&ea&r&ea&t&ea'p&ea'{&ea'}&ea(Q&ea(X&ea(g&ea(t&ea!Z&ea&^&eaa&ea&c&ea~O'{,uO~Og!bX!Y!OX!Y!bX!Z!OX!Z!bX!d!OX!d!bX!k!bX#[!OX~O!d,zO#[,yOg(aX!Y#dX!Y(aX!Z#dX!Z(aX!d(aX!k(aX~Og%VO!d,|O!k%bO!Y!^X!Z!^X~Oo!nO!P!oO'}TO(QUO([!mO~OP:cOQ:cORfOc<[Od!iOlkOn:cOokOpkOvkOx:cOz:cO!PWO!TkO!UkO![!eO!f:fO!kZO!n:cO!o:cO!p:cO!r:gO!t:jO!w!hO$T!kO'}TO(QUO(XVO(g[O(t<YO~O'{;]O~P#!ZO!Y-QO!Z(`X~O!Z-SO~O!d,zO#[,yO!Y#dX!Z#dX~O!Y-TO!Z(nX~O!Z-VO~O!`-WO!a-WO'|!lO~P# xO!Z-ZO~P'_Oj-^O!['ZO~O!V-cO~Oo!za!_!za!`!za!a!za#P!za#Q!za#R!za#S!za#T!za#W!za#X!za'|!za'}!za(Q!za([!za(g!za~P!#`O!o-hO#[-fO~PCOO!`-jO!a-jO'|!lO~PCnO`%kO#[-fO'r%kO~O`%kO!d#uO#[-fO'r%kO~O`%kO!d#uO!o-hO#[-fO'r%kO(h'kO~O'w'sO'x'sO'y-oO~Or-pO~O!V'Pa!Y'Pa~P!8dO!X-tO!V'PX!Y'PX~P%[O!Y(PO!V(_a~O!V(_a~PGbO!Y(WO!V(la~O!P%eO!X-xO![%fO'{%dO!V'VX!Y'VX~O#[-zO!Y(ja!j(ja`(ja'r(ja~O!d#uO~P#*aO!Y(dO!j(ia~O!P%eO![%fO#f.OO'{%dO~Ol.TO!P%eO!X.QO![%fO!{]O#e.SO#f.QO'{%dO!Y'YX!j'YX~O}.XO!k#xO~Og%VOj.[O!['ZO%c.ZO~O`#_i!Y#_i'r#_i'p#_i!V#_i!j#_ir#_i![#_i%c#_i!d#_i~P!8dOj<fO|)zO!P){O(o$}O(p%PO~O#g#Za`#Za#[#Za'r#Za!Y#Za!j#Za![#Za!V#Za~P#-]O#g(WXP(WXZ(WX`(WXn(WX}(WX!h(WX!k(WX!o(WX#j(WX#k(WX#l(WX#m(WX#n(WX#o(WX#p(WX#q(WX#r(WX#t(WX#v(WX#x(WX#y(WX'r(WX(X(WX(h(WX!j(WX!V(WX'p(WXr(WX![(WX%c(WX!d(WX~P!4qO!Y.iOf(bX~P!0}Of.kO~O!Y.lO!j(cX~P!8dO!j.oO~O!V.qO~OP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O(XVOZ#ii`#iin#ii!Y#ii!h#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii'r#ii(h#ii(o#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~O#j#ii~P#1XO#j$OO~P#1XOP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO(XVOZ#ii`#ii!Y#ii!h#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii'r#ii(h#ii(o#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~On#ii~P#3yOn$QO~P#3yOP$]On$QO|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO(XVO`#ii!Y#ii#t#ii#v#ii#x#ii#y#ii'r#ii(h#ii(o#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~OZ#ii!h#ii#o#ii#p#ii#q#ii#r#ii~P#6kOZ$dO!h$SO#o$SO#p$SO#q$cO#r$SO~P#6kOP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO(XVO`#ii!Y#ii#v#ii#x#ii#y#ii'r#ii(h#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~O(o#ii~P#9lO(o#|O~P#9lOP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO(XVO(o#|O`#ii!Y#ii#x#ii#y#ii'r#ii(h#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~O(p#ii~P#<^O(p#}O~P#<^OP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO(XVO(o#|O(p#}O~O`#ii!Y#ii#y#ii'r#ii(h#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~P#?OOP[XZ[Xn[X|[X}[X!P[X!h[X!i[X!k[X!o[X#[[X#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X(X[X(h[X(o[X(p[X!Y[X!Z[X~O#|[X~P#AiOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO#v:sO#x:uO#y:vO(XVO(h$ZO(o#|O(p#}O~O#|.sO~P#CvO#[:{O$O:{O#|(^X!Z(^X~P! [O`']a!Y']a'r']a'p']a!j']a!V']ar']a![']a%c']a!d']a~P!8dOP#iiZ#ii`#iin#ii}#ii!Y#ii!h#ii!i#ii!k#ii!o#ii#j#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii'r#ii(X#ii(h#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~P#-]O`#}i!Y#}i'r#}i'p#}i!V#}i!j#}ir#}i![#}i%c#}i!d#}i~P!8dO$Y.xO$[.xO~O$Y.yO$[.yO~O!d)cO#[.zO![$`X$W$`X$Y$`X$[$`X$c$`X~O!X.{O~O![)fO$W.}O$Y)eO$[)eO$c/OO~O!Y:wO!Z(]X~P#CvO!Z/PO~O!d)cO$c(qX~O$c/RO~Ot)uO(Y)vO(Z/UO~O!V/YO~P!&dO(o$}Oj%Za|%Za!P%Za(p%Za!Y%Za#[%Za~Of%Za#|%Za~P#LWO(p%POj%]a|%]a!P%]a(o%]a!Y%]a#[%]a~Of%]a#|%]a~P#LyO!YeX!deX!jeX!j$uX(heX~P!/tO!j/bO~P#-]O!Y/cO!d#uO(h'kO!j(uX~O!j/hO~O!X*WO'{%dO!j(uP~O#g/jO~O!V$uX!Y$uX!d$|X~P!/tO!Y/kO!V(vX~P#-]O!d/mO~O!V/oO~Og%VOn/sO!d#uO!k%bO(h'kO~O'{/uO~O!d+`O~O`%kO!Y/yO'r%kO~O!Z/{O~P!3xO!`/|O!a/|O'|!lO([!mO~O!P0OO([!mO~O#W0PO~Of%Za!Y%Za#[%Za#|%Za~P!0}Of%]a!Y%]a#[%]a#|%]a~P!0}O'{&UOf'fX!Y'fX~O!Y*rOf(Ua~Of0YO~O|0ZO}0ZO!P0[Ojya(oya(pya!Yya#[ya~Ofya#|ya~P$$dO|)zO!P){Oj$na(o$na(p$na!Y$na#[$na~Of$na#|$na~P$%YO|)zO!P){Oj$pa(o$pa(p$pa!Y$pa#[$pa~Of$pa#|$pa~P$%{O#g0^O~Of%Oa!Y%Oa#[%Oa#|%Oa~P!0}O!d#uO~O#g0aO~O!Y+TO`(za'r(za~O|#yO}#zO!P#{O!i#wO!k#xO(XVOP!qiZ!qin!qi!Y!qi!h!qi!o!qi#j!qi#k!qi#l!qi#m!qi#n!qi#o!qi#p!qi#q!qi#r!qi#t!qi#v!qi#x!qi#y!qi(h!qi(o!qi(p!qi~O`!qi'r!qi'p!qi!V!qi!j!qir!qi![!qi%c!qi!d!qi~P$'jOg%VOn$tOo$sOp$sOv%XOx%YOz;QO!P${O![$|O!f<`O!k$xO#f;WO$T%^O$o;SO$q;UO$t%_O'}TO(QUO(X$uO(o$}O(p%PO~Ol0kO'{0jO~P$*TO!d+`O`(Ta![(Ta'r(Ta!Y(Ta~O#g0qO~OZ[X!YeX!ZeX~O!Y0rO!Z)OX~O!Z0tO~OZ0uO~Oa0wO'{+hO'}TO(QUO~O![%{O'{%dO_'nX!Y'nX~O!Y+mO_(}a~O!j0zO~P!8dOZ0}O~O_1OO~O#[1RO~Oj1UO![$|O~O([(xO!Z({P~Og%VOj1_O![1[O%c1^O~OZ1iO!Y1gO!Z(|X~O!Z1jO~O_1lO`%kO'r%kO~O'{#mO'}TO(QUO~O#[$eO$O$eOP(^XZ(^Xn(^X|(^X}(^X!P(^X!Y(^X!h(^X!k(^X!o(^X#j(^X#k(^X#l(^X#m(^X#n(^X#o(^X#p(^X#q(^X#t(^X#v(^X#x(^X#y(^X(X(^X(h(^X(o(^X(p(^X~O#r1oO&T1pO`(^X!i(^X~P$/kO#[$eO#r1oO&T1pO~O`1rO~P%[O`1tO~O&^1wOP&[iQ&[iR&[iX&[i`&[ic&[id&[il&[in&[io&[ip&[iv&[ix&[iz&[i!P&[i!T&[i!U&[i![&[i!f&[i!k&[i!n&[i!o&[i!p&[i!r&[i!t&[i!w&[i!{&[i#s&[i$T&[i%b&[i%d&[i%f&[i%g&[i%h&[i%k&[i%m&[i%p&[i%q&[i%s&[i&P&[i&V&[i&X&[i&Z&[i&]&[i&`&[i&f&[i&l&[i&n&[i&p&[i&r&[i&t&[i'p&[i'{&[i'}&[i(Q&[i(X&[i(g&[i(t&[i!Z&[ia&[i&c&[i~Oa1}O!Z1{O&c1|O~P`O![XO!k2PO~O&j,pOP&eiQ&eiR&eiX&ei`&eic&eid&eil&ein&eio&eip&eiv&eix&eiz&ei!P&ei!T&ei!U&ei![&ei!f&ei!k&ei!n&ei!o&ei!p&ei!r&ei!t&ei!w&ei!{&ei#s&ei$T&ei%b&ei%d&ei%f&ei%g&ei%h&ei%k&ei%m&ei%p&ei%q&ei%s&ei&P&ei&V&ei&X&ei&Z&ei&]&ei&`&ei&f&ei&l&ei&n&ei&p&ei&r&ei&t&ei'p&ei'{&ei'}&ei(Q&ei(X&ei(g&ei(t&ei!Z&ei&^&eia&ei&c&ei~O!V2VO~O!Y!^a!Z!^a~P#CvOo!nO!P!oO!X2]O([!mO!Y'QX!Z'QX~P@UO!Y-QO!Z(`a~O!Y'WX!Z'WX~P!7lO!Y-TO!Z(na~O!Z2dO~P'_O`%kO#[2mO'r%kO~O`%kO!d#uO#[2mO'r%kO~O`%kO!d#uO!o2qO#[2mO'r%kO(h'kO~O`%kO'r%kO~P!8dO!Y$aOr$ma~O!V'Pi!Y'Pi~P!8dO!Y(PO!V(_i~O!Y(WO!V(li~O!V(mi!Y(mi~P!8dO!Y(ji!j(ji`(ji'r(ji~P!8dO#[2sO!Y(ji!j(ji`(ji'r(ji~O!Y(dO!j(ii~O!P%eO![%fO!{]O#e2xO#f2wO'{%dO~O!P%eO![%fO#f2wO'{%dO~Oj3PO!['ZO%c3OO~Og%VOj3PO!['ZO%c3OO~O#g%ZaP%ZaZ%Za`%Zan%Za}%Za!h%Za!i%Za!k%Za!o%Za#j%Za#k%Za#l%Za#m%Za#n%Za#o%Za#p%Za#q%Za#r%Za#t%Za#v%Za#x%Za#y%Za'r%Za(X%Za(h%Za!j%Za!V%Za'p%Zar%Za![%Za%c%Za!d%Za~P#LWO#g%]aP%]aZ%]a`%]an%]a}%]a!h%]a!i%]a!k%]a!o%]a#j%]a#k%]a#l%]a#m%]a#n%]a#o%]a#p%]a#q%]a#r%]a#t%]a#v%]a#x%]a#y%]a'r%]a(X%]a(h%]a!j%]a!V%]a'p%]ar%]a![%]a%c%]a!d%]a~P#LyO#g%ZaP%ZaZ%Za`%Zan%Za}%Za!Y%Za!h%Za!i%Za!k%Za!o%Za#j%Za#k%Za#l%Za#m%Za#n%Za#o%Za#p%Za#q%Za#r%Za#t%Za#v%Za#x%Za#y%Za'r%Za(X%Za(h%Za!j%Za!V%Za'p%Za#[%Zar%Za![%Za%c%Za!d%Za~P#-]O#g%]aP%]aZ%]a`%]an%]a}%]a!Y%]a!h%]a!i%]a!k%]a!o%]a#j%]a#k%]a#l%]a#m%]a#n%]a#o%]a#p%]a#q%]a#r%]a#t%]a#v%]a#x%]a#y%]a'r%]a(X%]a(h%]a!j%]a!V%]a'p%]a#[%]ar%]a![%]a%c%]a!d%]a~P#-]O#gyaPyaZya`yanya!hya!iya!kya!oya#jya#kya#lya#mya#nya#oya#pya#qya#rya#tya#vya#xya#yya'rya(Xya(hya!jya!Vya'pyarya![ya%cya!dya~P$$dO#g$naP$naZ$na`$nan$na}$na!h$na!i$na!k$na!o$na#j$na#k$na#l$na#m$na#n$na#o$na#p$na#q$na#r$na#t$na#v$na#x$na#y$na'r$na(X$na(h$na!j$na!V$na'p$nar$na![$na%c$na!d$na~P$%YO#g$paP$paZ$pa`$pan$pa}$pa!h$pa!i$pa!k$pa!o$pa#j$pa#k$pa#l$pa#m$pa#n$pa#o$pa#p$pa#q$pa#r$pa#t$pa#v$pa#x$pa#y$pa'r$pa(X$pa(h$pa!j$pa!V$pa'p$par$pa![$pa%c$pa!d$pa~P$%{O#g%OaP%OaZ%Oa`%Oan%Oa}%Oa!Y%Oa!h%Oa!i%Oa!k%Oa!o%Oa#j%Oa#k%Oa#l%Oa#m%Oa#n%Oa#o%Oa#p%Oa#q%Oa#r%Oa#t%Oa#v%Oa#x%Oa#y%Oa'r%Oa(X%Oa(h%Oa!j%Oa!V%Oa'p%Oa#[%Oar%Oa![%Oa%c%Oa!d%Oa~P#-]O`#_q!Y#_q'r#_q'p#_q!V#_q!j#_qr#_q![#_q%c#_q!d#_q~P!8dOf'RX!Y'RX~P!(SO!Y.iOf(ba~O!X3ZO!Y'SX!j'SX~P%[O!Y.lO!j(ca~O!Y.lO!j(ca~P!8dO!V3^O~O#|!ma!Z!ma~PKOO#|!ea!Y!ea!Z!ea~P#CvO#|!qa!Z!qa~P!:}O#|!sa!Z!sa~P!=hORfO![3pO$a3qO~O!Z3uO~Or3vO~P#-]O`$jq!Y$jq'r$jq'p$jq!V$jq!j$jqr$jq![$jq%c$jq!d$jq~P!8dO!V3wO~P#-]O|)zO!P){O(p%POj'ba(o'ba!Y'ba#['ba~Of'ba#|'ba~P%)_O|)zO!P){Oj'da(o'da(p'da!Y'da#['da~Of'da#|'da~P%*QO(h$ZO~P#-]O!X3zO'{%dO!Y'^X!j'^X~O!Y/cO!j(ua~O!Y/cO!d#uO!j(ua~O!Y/cO!d#uO(h'kO!j(ua~Of$wi!Y$wi#[$wi#|$wi~P!0}O!X4SO'{*]O!V'`X!Y'`X~P!1lO!Y/kO!V(va~O!Y/kO!V(va~P#-]O!d#uO#r4[O~On4_O!d#uO(h'kO~O(o$}Oj%Zi|%Zi!P%Zi(p%Zi!Y%Zi#[%Zi~Of%Zi#|%Zi~P%-dO(p%POj%]i|%]i!P%]i(o%]i!Y%]i#[%]i~Of%]i#|%]i~P%.VOf(Vi!Y(Vi~P!0}O#[4fOf(Vi!Y(Vi~P!0}O!j4iO~O`$kq!Y$kq'r$kq'p$kq!V$kq!j$kqr$kq![$kq%c$kq!d$kq~P!8dO!V4mO~O!Y4nO![(wX~P#-]O!i#wO~P4XO`$uX![$uX%W[X'r$uX!Y$uX~P!/tO%W4pO`kXjkX|kX!PkX![kX'rkX(okX(pkX!YkX~O%W4pO~Oa4vO%d4wO'{+hO'}TO(QUO!Y'mX!Z'mX~O!Y0rO!Z)Oa~OZ4{O~O_4|O~O`%kO'r%kO~P#-]O![$|O~P#-]O!Y5UO#[5WO!Z({X~O!Z5XO~Oo!nO!P5YO!_!xO!`!uO!a!uO!{:dO#P!pO#Q!pO#R!pO#S!pO#T!pO#W5_O#X!yO'|!lO'}TO(QUO([!mO(g!sO~O!Z5^O~P%3hOj5dO![1[O%c5cO~Og%VOj5dO![1[O%c5cO~Oa5kO'{#mO'}TO(QUO!Y'lX!Z'lX~O!Y1gO!Z(|a~O'}TO(QUO([5mO~O_5qO~O#r5tO&T5uO~PMnO!j5vO~P%[O`5xO~O`5xO~P%[Oa1}O!Z5}O&c1|O~P`O!d6PO~O!d6ROg(ai!Y(ai!Z(ai!d(ai!k(ai~O!Y#di!Z#di~P#CvO#[6SO!Y#di!Z#di~O!Y!^i!Z!^i~P#CvO`%kO#[6]O'r%kO~O`%kO!d#uO#[6]O'r%kO~O!Y(jq!j(jq`(jq'r(jq~P!8dO!Y(dO!j(iq~O!P%eO![%fO#f6dO'{%dO~O!['ZO%c6gO~Oj6jO!['ZO%c6gO~O#g'baP'baZ'ba`'ban'ba}'ba!h'ba!i'ba!k'ba!o'ba#j'ba#k'ba#l'ba#m'ba#n'ba#o'ba#p'ba#q'ba#r'ba#t'ba#v'ba#x'ba#y'ba'r'ba(X'ba(h'ba!j'ba!V'ba'p'bar'ba!['ba%c'ba!d'ba~P%)_O#g'daP'daZ'da`'dan'da}'da!h'da!i'da!k'da!o'da#j'da#k'da#l'da#m'da#n'da#o'da#p'da#q'da#r'da#t'da#v'da#x'da#y'da'r'da(X'da(h'da!j'da!V'da'p'dar'da!['da%c'da!d'da~P%*QO#g$wiP$wiZ$wi`$win$wi}$wi!Y$wi!h$wi!i$wi!k$wi!o$wi#j$wi#k$wi#l$wi#m$wi#n$wi#o$wi#p$wi#q$wi#r$wi#t$wi#v$wi#x$wi#y$wi'r$wi(X$wi(h$wi!j$wi!V$wi'p$wi#[$wir$wi![$wi%c$wi!d$wi~P#-]O#g%ZiP%ZiZ%Zi`%Zin%Zi}%Zi!h%Zi!i%Zi!k%Zi!o%Zi#j%Zi#k%Zi#l%Zi#m%Zi#n%Zi#o%Zi#p%Zi#q%Zi#r%Zi#t%Zi#v%Zi#x%Zi#y%Zi'r%Zi(X%Zi(h%Zi!j%Zi!V%Zi'p%Zir%Zi![%Zi%c%Zi!d%Zi~P%-dO#g%]iP%]iZ%]i`%]in%]i}%]i!h%]i!i%]i!k%]i!o%]i#j%]i#k%]i#l%]i#m%]i#n%]i#o%]i#p%]i#q%]i#r%]i#t%]i#v%]i#x%]i#y%]i'r%]i(X%]i(h%]i!j%]i!V%]i'p%]ir%]i![%]i%c%]i!d%]i~P%.VOf'Ra!Y'Ra~P!0}O!Y'Sa!j'Sa~P!8dO!Y.lO!j(ci~O#|#_i!Y#_i!Z#_i~P#CvOP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O(XVOZ#iin#ii!h#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii#|#ii(h#ii(o#ii(p#ii!Y#ii!Z#ii~O#j#ii~P%FhO#j:lO~P%FhOP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO(XVOZ#ii!h#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii#|#ii(h#ii(o#ii(p#ii!Y#ii!Z#ii~On#ii~P%HsOn:nO~P%HsOP$]On:nO|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO(XVO#t#ii#v#ii#x#ii#y#ii#|#ii(h#ii(o#ii(p#ii!Y#ii!Z#ii~OZ#ii!h#ii#o#ii#p#ii#q#ii#r#ii~P%KOOZ:zO!h:pO#o:pO#p:pO#q:yO#r:pO~P%KOOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO(XVO#v#ii#x#ii#y#ii#|#ii(h#ii(p#ii!Y#ii!Z#ii~O(o#ii~P%MjO(o#|O~P%MjOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO#v:sO(XVO(o#|O#x#ii#y#ii#|#ii(h#ii!Y#ii!Z#ii~O(p#ii~P& uO(p#}O~P& uOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO#v:sO#x:uO(XVO(o#|O(p#}O~O#y#ii#|#ii(h#ii!Y#ii!Z#ii~P&$QO`#zy!Y#zy'r#zy'p#zy!V#zy!j#zyr#zy![#zy%c#zy!d#zy~P!8dOj<gO|)zO!P){O(o$}O(p%PO~OP#iiZ#iin#ii}#ii!h#ii!i#ii!k#ii!o#ii#j#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii#|#ii(X#ii(h#ii!Y#ii!Z#ii~P&&xO!i#wOP(WXZ(WXj(WXn(WX|(WX}(WX!P(WX!h(WX!k(WX!o(WX#j(WX#k(WX#l(WX#m(WX#n(WX#o(WX#p(WX#q(WX#r(WX#t(WX#v(WX#x(WX#y(WX#|(WX(X(WX(h(WX(o(WX(p(WX!Y(WX!Z(WX~O#|#}i!Y#}i!Z#}i~P#CvO#|!qi!Z!qi~P$'jO!Z6|O~O!Y']a!Z']a~P#CvO!d#uO(h'kO!Y'^a!j'^a~O!Y/cO!j(ui~O!Y/cO!d#uO!j(ui~Of$wq!Y$wq#[$wq#|$wq~P!0}O!V'`a!Y'`a~P#-]O!d7TO~O!Y/kO!V(vi~P#-]O!Y/kO!V(vi~O!V7XO~O!d#uO#r7^O~On7_O!d#uO(h'kO~O|)zO!P){O(p%POj'ca(o'ca!Y'ca#['ca~Of'ca#|'ca~P&.YO|)zO!P){Oj'ea(o'ea(p'ea!Y'ea#['ea~Of'ea#|'ea~P&.{O!V7aO~Of$yq!Y$yq#[$yq#|$yq~P!0}O`$ky!Y$ky'r$ky'p$ky!V$ky!j$kyr$ky![$ky%c$ky!d$ky~P!8dO!d6RO~O!Y4nO![(wa~O`#_y!Y#_y'r#_y'p#_y!V#_y!j#_yr#_y![#_y%c#_y!d#_y~P!8dOZ7fO~Oa7hO'{+hO'}TO(QUO~O!Y0rO!Z)Oi~O_7lO~O([(xO!Y'iX!Z'iX~O!Y5UO!Z({a~OlkO'{7sO~P.iO!Z7vO~P%3hOo!nO!P7wO'}TO(QUO([!mO(g!sO~O![1[O~O![1[O%c7yO~Oj7|O![1[O%c7yO~OZ8RO!Y'la!Z'la~O!Y1gO!Z(|i~O!j8VO~O!j8WO~O!j8ZO~O!j8ZO~P%[O`8]O~O!d8^O~O!j8_O~O!Y(mi!Z(mi~P#CvO`%kO#[8gO'r%kO~O!Y(jy!j(jy`(jy'r(jy~P!8dO!Y(dO!j(iy~O!['ZO%c8jO~O#g$wqP$wqZ$wq`$wqn$wq}$wq!Y$wq!h$wq!i$wq!k$wq!o$wq#j$wq#k$wq#l$wq#m$wq#n$wq#o$wq#p$wq#q$wq#r$wq#t$wq#v$wq#x$wq#y$wq'r$wq(X$wq(h$wq!j$wq!V$wq'p$wq#[$wqr$wq![$wq%c$wq!d$wq~P#-]O#g'caP'caZ'ca`'can'ca}'ca!h'ca!i'ca!k'ca!o'ca#j'ca#k'ca#l'ca#m'ca#n'ca#o'ca#p'ca#q'ca#r'ca#t'ca#v'ca#x'ca#y'ca'r'ca(X'ca(h'ca!j'ca!V'ca'p'car'ca!['ca%c'ca!d'ca~P&.YO#g'eaP'eaZ'ea`'ean'ea}'ea!h'ea!i'ea!k'ea!o'ea#j'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#t'ea#v'ea#x'ea#y'ea'r'ea(X'ea(h'ea!j'ea!V'ea'p'ear'ea!['ea%c'ea!d'ea~P&.{O#g$yqP$yqZ$yq`$yqn$yq}$yq!Y$yq!h$yq!i$yq!k$yq!o$yq#j$yq#k$yq#l$yq#m$yq#n$yq#o$yq#p$yq#q$yq#r$yq#t$yq#v$yq#x$yq#y$yq'r$yq(X$yq(h$yq!j$yq!V$yq'p$yq#[$yqr$yq![$yq%c$yq!d$yq~P#-]O!Y'Si!j'Si~P!8dO#|#_q!Y#_q!Z#_q~P#CvO(o$}OP%ZaZ%Zan%Za}%Za!h%Za!i%Za!k%Za!o%Za#j%Za#k%Za#l%Za#m%Za#n%Za#o%Za#p%Za#q%Za#r%Za#t%Za#v%Za#x%Za#y%Za#|%Za(X%Za(h%Za!Y%Za!Z%Za~Oj%Za|%Za!P%Za(p%Za~P&@bO(p%POP%]aZ%]an%]a}%]a!h%]a!i%]a!k%]a!o%]a#j%]a#k%]a#l%]a#m%]a#n%]a#o%]a#p%]a#q%]a#r%]a#t%]a#v%]a#x%]a#y%]a#|%]a(X%]a(h%]a!Y%]a!Z%]a~Oj%]a|%]a!P%]a(o%]a~P&BiOj<gO|)zO!P){O(p%PO~P&@bOj<gO|)zO!P){O(o$}O~P&BiO|0ZO}0ZO!P0[OPyaZyajyanya!hya!iya!kya!oya#jya#kya#lya#mya#nya#oya#pya#qya#rya#tya#vya#xya#yya#|ya(Xya(hya(oya(pya!Yya!Zya~O|)zO!P){OP$naZ$naj$nan$na}$na!h$na!i$na!k$na!o$na#j$na#k$na#l$na#m$na#n$na#o$na#p$na#q$na#r$na#t$na#v$na#x$na#y$na#|$na(X$na(h$na(o$na(p$na!Y$na!Z$na~O|)zO!P){OP$paZ$paj$pan$pa}$pa!h$pa!i$pa!k$pa!o$pa#j$pa#k$pa#l$pa#m$pa#n$pa#o$pa#p$pa#q$pa#r$pa#t$pa#v$pa#x$pa#y$pa#|$pa(X$pa(h$pa(o$pa(p$pa!Y$pa!Z$pa~OP%OaZ%Oan%Oa}%Oa!h%Oa!i%Oa!k%Oa!o%Oa#j%Oa#k%Oa#l%Oa#m%Oa#n%Oa#o%Oa#p%Oa#q%Oa#r%Oa#t%Oa#v%Oa#x%Oa#y%Oa#|%Oa(X%Oa(h%Oa!Y%Oa!Z%Oa~P&&xO#|$jq!Y$jq!Z$jq~P#CvO#|$kq!Y$kq!Z$kq~P#CvO!Z8vO~O#|8wO~P!0}O!d#uO!Y'^i!j'^i~O!d#uO(h'kO!Y'^i!j'^i~O!Y/cO!j(uq~O!V'`i!Y'`i~P#-]O!Y/kO!V(vq~O!V8}O~P#-]O!V8}O~Of(Vy!Y(Vy~P!0}O!Y'ga!['ga~P#-]O`%Vq![%Vq'r%Vq!Y%Vq~P#-]OZ9SO~O!Y0rO!Z)Oq~O#[9WO!Y'ia!Z'ia~O!Y5UO!Z({i~P#CvOP[XZ[Xn[X|[X}[X!P[X!V[X!Y[X!h[X!i[X!k[X!o[X#[[X#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X(X[X(h[X(o[X(p[X~O!d%TX#r%TX~P'#SO![1[O%c9[O~O'}TO(QUO([9aO~O!Y1gO!Z(|q~O!j9dO~O!j9eO~O!j9fO~O!j9fO~P%[O#[9iO!Y#dy!Z#dy~O!Y#dy!Z#dy~P#CvO!['ZO%c9nO~O#|#zy!Y#zy!Z#zy~P#CvOP$wiZ$win$wi}$wi!h$wi!i$wi!k$wi!o$wi#j$wi#k$wi#l$wi#m$wi#n$wi#o$wi#p$wi#q$wi#r$wi#t$wi#v$wi#x$wi#y$wi#|$wi(X$wi(h$wi!Y$wi!Z$wi~P&&xO|)zO!P){O(p%POP'baZ'baj'ban'ba}'ba!h'ba!i'ba!k'ba!o'ba#j'ba#k'ba#l'ba#m'ba#n'ba#o'ba#p'ba#q'ba#r'ba#t'ba#v'ba#x'ba#y'ba#|'ba(X'ba(h'ba(o'ba!Y'ba!Z'ba~O|)zO!P){OP'daZ'daj'dan'da}'da!h'da!i'da!k'da!o'da#j'da#k'da#l'da#m'da#n'da#o'da#p'da#q'da#r'da#t'da#v'da#x'da#y'da#|'da(X'da(h'da(o'da(p'da!Y'da!Z'da~O(o$}OP%ZiZ%Zij%Zin%Zi|%Zi}%Zi!P%Zi!h%Zi!i%Zi!k%Zi!o%Zi#j%Zi#k%Zi#l%Zi#m%Zi#n%Zi#o%Zi#p%Zi#q%Zi#r%Zi#t%Zi#v%Zi#x%Zi#y%Zi#|%Zi(X%Zi(h%Zi(p%Zi!Y%Zi!Z%Zi~O(p%POP%]iZ%]ij%]in%]i|%]i}%]i!P%]i!h%]i!i%]i!k%]i!o%]i#j%]i#k%]i#l%]i#m%]i#n%]i#o%]i#p%]i#q%]i#r%]i#t%]i#v%]i#x%]i#y%]i#|%]i(X%]i(h%]i(o%]i!Y%]i!Z%]i~O#|$ky!Y$ky!Z$ky~P#CvO#|#_y!Y#_y!Z#_y~P#CvO!d#uO!Y'^q!j'^q~O!Y/cO!j(uy~O!V'`q!Y'`q~P#-]O!V9wO~P#-]O!Y0rO!Z)Oy~O!Y5UO!Z({q~O![1[O%c:OO~O!j:RO~O!['ZO%c:WO~OP$wqZ$wqn$wq}$wq!h$wq!i$wq!k$wq!o$wq#j$wq#k$wq#l$wq#m$wq#n$wq#o$wq#p$wq#q$wq#r$wq#t$wq#v$wq#x$wq#y$wq#|$wq(X$wq(h$wq!Y$wq!Z$wq~P&&xO|)zO!P){O(p%POP'caZ'caj'can'ca}'ca!h'ca!i'ca!k'ca!o'ca#j'ca#k'ca#l'ca#m'ca#n'ca#o'ca#p'ca#q'ca#r'ca#t'ca#v'ca#x'ca#y'ca#|'ca(X'ca(h'ca(o'ca!Y'ca!Z'ca~O|)zO!P){OP'eaZ'eaj'ean'ea}'ea!h'ea!i'ea!k'ea!o'ea#j'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#t'ea#v'ea#x'ea#y'ea#|'ea(X'ea(h'ea(o'ea(p'ea!Y'ea!Z'ea~OP$yqZ$yqn$yq}$yq!h$yq!i$yq!k$yq!o$yq#j$yq#k$yq#l$yq#m$yq#n$yq#o$yq#p$yq#q$yq#r$yq#t$yq#v$yq#x$yq#y$yq#|$yq(X$yq(h$yq!Y$yq!Z$yq~P&&xOf%_!Z!Y%_!Z#[%_!Z#|%_!Z~P!0}O!Y'iq!Z'iq~P#CvO!Y#d!Z!Z#d!Z~P#CvO#g%_!ZP%_!ZZ%_!Z`%_!Zn%_!Z}%_!Z!Y%_!Z!h%_!Z!i%_!Z!k%_!Z!o%_!Z#j%_!Z#k%_!Z#l%_!Z#m%_!Z#n%_!Z#o%_!Z#p%_!Z#q%_!Z#r%_!Z#t%_!Z#v%_!Z#x%_!Z#y%_!Z'r%_!Z(X%_!Z(h%_!Z!j%_!Z!V%_!Z'p%_!Z#[%_!Zr%_!Z![%_!Z%c%_!Z!d%_!Z~P#-]OP%_!ZZ%_!Zn%_!Z}%_!Z!h%_!Z!i%_!Z!k%_!Z!o%_!Z#j%_!Z#k%_!Z#l%_!Z#m%_!Z#n%_!Z#o%_!Z#p%_!Z#q%_!Z#r%_!Z#t%_!Z#v%_!Z#x%_!Z#y%_!Z#|%_!Z(X%_!Z(h%_!Z!Y%_!Z!Z%_!Z~P&&xOr(]X~P1qO'|!lO~P!*fO!VeX!YeX#[eX~P'#SOP[XZ[Xn[X|[X}[X!P[X!Y[X!YeX!h[X!i[X!k[X!o[X#[[X#[eX#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X(X[X(h[X(o[X(p[X~O!deX!j[X!jeX(heX~P'@vOP:cOQ:cORfOc<[Od!iOlkOn:cOokOpkOvkOx:cOz:cO!PWO!TkO!UkO![XO!f:fO!kZO!n:cO!o:cO!p:cO!r:gO!t:jO!w!hO$T!kO'{)YO'}TO(QUO(XVO(g[O(t<YO~O!Y:wO!Z$ma~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz;RO!P${O![$|O!f<aO!k$xO#f;XO$T%^O$o;TO$q;VO$t%_O'{(pO'}TO(QUO(X$uO(o$}O(p%PO~O#s)aO~P'ElO!Z[X!ZeX~P'@vO#g:kO~O!d#uO#g:kO~O#[:{O~O#r:pO~O#[;ZO!Y(mX!Z(mX~O#[:{O!Y(kX!Z(kX~O#g;[O~Of;^O~P!0}O#g;cO~O#g;dO~O!d#uO#g;eO~O!d#uO#g;[O~O#|;fO~P#CvO#g;gO~O#g;hO~O#g;mO~O#g;nO~O#g;oO~O#g;pO~O#|;qO~P!0}O#|;rO~P!0}O!i#P#Q#S#T#W#e#f#q(t$o$q$t%W%b%c%d%k%m%p%q%s%u~'vS#k!U't'|#lo#j#mn|'u$Y'u'{$[([~",goto:"$2p)SPPPPP)TPP)WP)iP*x.|PPPP5pPP6WPP<S?gP?zP?zPPP?zPAxP?zP?zP?zPA|PPBRPBlPGdPPPGhPPPPGhJiPPPJoKjPGhPMxPPPP!!WGhPPPGhPGhP!$fGhP!'z!(|!)VP!)y!)}!)yPPPPP!-Y!(|PP!-v!.pP!1dGhGh!1i!4s!9Y!9Y!=OPPP!=VGhPPPPPPPPPPP!@dP!AuPPGh!CSPGhPGhGhGhGhPGh!DfP!GnP!JrP!Jv!KQ!KU!KUP!GkP!KY!KYP!N^P!NbGhGh!Nh##k?zP?zP?z?zP#$v?z?z#'O?z#)k?z#+m?z?z#,[#.f#.f#.j#.r#.f#.zP#.fP?z#/d?z#3R?z?z5pPPP#6vPPP#7a#7aP#7aP#7w#7aPP#7}P#7tP#7t#8b#7t#8|#9S5m)W#9V)WP#9^#9^#9^P)WP)WP)WP)WPP)WP#9d#9gP#9g)WP#9kP#9nP)WP)WP)WP)WP)WP)W)WPP#9t#9z#:V#:]#:c#:i#:o#:}#;T#;Z#;e#;k#;u#<U#<[#<|#=`#=f#=l#=z#>a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r<Y<b<c<f<gQ&S|Q'P!eS'V%f-TQ+k%{Q,Z&bQ0]*yQ0w+lQ0|+rQ1m,_Q1n,`Q4v0rQ5P1OQ5k1gQ5n1iQ5o1lQ7h4wQ7k4|Q8U5qQ9V7lR9b8RrnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zR,]&f&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O']'m(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<[<][#[WZ#V#Y'S'}!S%gm#g#h#k%b%e(W(b(c(d+Q+R+T,d,z-x.O.P.Q.S2P2w2x6R6dQ%sxQ%wyS%||&RQ&Y!TQ'^!hQ'`!iQ(k#rS*V$x*ZS+e%x%yQ+i%{Q,S&]Q,W&_S-a'a'bQ.^(lQ/g*WQ0p+fQ0v+lQ0x+mQ0{+qQ1a,TS1e,X,YQ2i-bQ3y/cQ4u0rQ4y0uQ5O0}Q5j1fQ7Q3zQ7g4wQ7j4{Q9R7fR9y9S!O$zi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<c!S%uy!i!t%w%x%y'Q'`'a'b'f'p*b+e+f,}-a-b-i/t0p2b2i2p4^Q+_%sQ+x&VQ+{&WQ,V&_Q.](kQ1`,SU1d,W,X,YQ3Q.^Q5e1aS5i1e1fQ8Q5j#W<^#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<go<_:y:z:};P;T;V;X;`;b;d;h;j;l;n;rW%Ti%V*r<YS&V!Q&dQ&W!RQ&X!SR+v&T$w%Si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r<Y<b<c<f<gT)v$u)wV*v%Z;Q;RU'V!e%f-TS(y#y#zQ+p&OS.V(g(hQ1V+|Q4g0ZR7p5U&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]$i$`c#X#d%n%o%q'|(S(n(u(})O)P)Q)R)S)T)U)V)W)X)Z)^)b)l+Z+o-O-m-r-w-y.h.n.r.t.u.v/V0_2W2Z2k2r3Y3_3`3a3b3c3d3e3f3g3h3i3j3k3n3o3t4k4s6U6[6a6o6p6y6z7r8a8e8n8t8u9k9{:S:e<PT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q'T!eR2^-Qv!nQ!e!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_S*b$|*hS/t*c*jQ/}*kQ1X,OQ4^/|R4a0PnqOXst!Z#c%j&m&o&p&r,h,m1w1zQ&t!^Q'q!wS(m#t:kQ+c%vQ,Q&YQ,R&[Q-_'_Q-l'jS.g(r;[S0`+O;eQ0n+dQ1Z,PQ2O,oQ2Q,pQ2Y,{Q2g-`Q2j-dS4l0a;oQ4q0oS4t0q;pQ6T2[Q6X2hQ6^2oQ7e4rQ8b6VQ8c6YQ8f6_R9h8_$d$_c#X#d%o%q'|(S(n(u(})O)P)Q)R)S)T)U)V)W)X)Z)^)b)l+Z+o-O-m-r-w-y.h.n.r.u.v/V0_2W2Z2k2r3Y3_3`3a3b3c3d3e3f3g3h3i3j3k3n3o3t4k4s6U6[6a6o6p6y6z7r8a8e8n8t8u9k9{:S:e<PS(j#o'dU*o%R(q3mS+Y%n.tQ2|0hQ6f2{Q8l6iR9o8m$d$^c#X#d%o%q'|(S(n(u(})O)P)Q)R)S)T)U)V)W)X)Z)^)b)l+Z+o-O-m-r-w-y.h.n.r.u.v/V0_2W2Z2k2r3Y3_3`3a3b3c3d3e3f3g3h3i3j3k3n3o3t4k4s6U6[6a6o6p6y6z7r8a8e8n8t8u9k9{:S:e<PS(i#o'dS({#z$_S+X%n.tS.W(h(jQ.w)]Q0e+YR2y.X&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]S#p]:dQ&o!XQ&p!YQ&r![Q&s!]R1v,kQ'[!hQ+[%sQ-]'^S.Y(k+_Q2e-[W2}.].^0g0iQ6W2fU6e2z2|3QS8i6f6hS9m8k8lS:U9l9oQ:^:VR:a:_U!vQ'Z-YT5Z1[5]!Q_OXZ`st!V!Z#c#g%b%j&d&f&m&o&p&r(d,h,m.P1w1z]!pQ!r'Z-Y1[5]T#p]:d%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&j&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gS(y#y#zS.V(g(h!s;v$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Y!tQ'Z-Y1[5]Q'f!rS'p!u!xS'r!y5_S-i'g'hQ-k'iR2p-jQ'o!tS(`#f1qS-h'f'rQ/f*VQ/r*bQ2q-kQ4O/gS4X/s/}Q7P3yS7[4_4aQ8y7QR9Q7_Q#vbQ'n!tS(_#f1qS(a#l*}Q+P%cQ+a%tQ+g%zU-g'f'o'rQ-{(`Q/e*VQ/q*bQ/w*eQ0m+bQ1b,US2n-h-kQ2v.TS3}/f/gS4W/r/}Q4Z/vQ4]/xQ5g1cQ6`2qQ7O3yQ7S4OS7W4X4aQ7]4`Q8O5hS8x7P7QQ8|7XQ9O7[Q9_8PQ9u8yQ9v8}Q9x9QQ:Q9`Q:Y9wQ;y;tQ<U;}R<V<OV!vQ'Z-Y%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&j&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gS#vz!j!r;s$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]R;y<[%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&j&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gQ%cj!S%ty!i!t%w%x%y'Q'`'a'b'f'p*b+e+f,}-a-b-i/t0p2b2i2p4^S%zz!jQ+b%uQ,U&_W1c,V,W,X,YU5h1d1e1fS8P5i5jQ9`8Q!r;t$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q;}<ZR<O<[$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gY#aWZ#V#Y'}!S%gm#g#h#k%b%e(W(b(c(d+Q+R+T,d,z-x.O.P.Q.S2P2w2x6R6dQ,c&j!p;u$[$m)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]R;x'SS'W!e%fR2`-T%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8g!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q,b&jQ0h+^Q2{.[Q6i3PR8m6j!f$Uc#X%n'|(S(n(u)U)V)W)X)^)b+o-m-r-w-y.h.n/V0_2k2r3Y3k4k4s6[6a6o8e9k:e!T:r)Z)l-O.t2W2Z3_3g3h3i3j3n3t6U6p6y6z7r8a8n8t8u9{:S<P!b$Wc#X%n'|(S(n(u)W)X)^)b+o-m-r-w-y.h.n/V0_2k2r3Y3k4k4s6[6a6o8e9k:e!P:t)Z)l-O.t2W2Z3_3i3j3n3t6U6p6y6z7r8a8n8t8u9{:S<P!^$[c#X%n'|(S(n(u)^)b+o-m-r-w-y.h.n/V0_2k2r3Y3k4k4s6[6a6o8e9k:eQ3x/az<])Z)l-O.t2W2Z3_3n3t6U6p6y6z7r8a8n8t8u9{:S<PQ<b<dR<c<e&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]S$nh$oR3q.z'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.z.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]T$jf$pQ$hfS)e$k)iR)q$pT$if$pT)g$k)i'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.z.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]T$nh$oQ$qhR)p$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&j&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8g!s<Z$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]#clOPXZst!Z!`!o#R#c#n#{$m%j&f&i&j&m&o&p&r&v'O'](z)n+S+^,e,h,m-^.[.{0[1_1o1p1r1t1w1z1|3P3p5Y5d5t5u5x6j7w7|8]!O%Ri#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<c#W(q#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gQ*z%_Q/W)zo3m:y:z:};P;T;V;X;`;b;d;h;j;l;n;r!O$yi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<cQ*[$zS*e$|*hQ*{%`Q/x*f#W;{#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gn;|:y:z:};P;T;V;X;`;b;d;h;j;l;n;rQ<Q<^Q<R<_Q<S<`R<T<a!O%Ri#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<c#W(q#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<go3m:y:z:};P;T;V;X;`;b;d;h;j;l;n;rnoOXst!Z#c%j&m&o&p&r,h,m1w1zQ*_${Q,v&yQ,w&{R4R/k$v%Si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r<Y<b<c<f<gQ+y&WQ1T+{Q5S1SR7o5TT*g$|*hS*g$|*hT5[1[5]S/v*d5YT4`0O7wQ+a%tQ/w*eQ0m+bQ1b,UQ5g1cQ8O5hQ9_8PR:Q9`!O%Oi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<cr)}$v(s*O*n*|/i0U0V3W4P4j6}7`9t;z<W<XS0Q*m0R#W:|#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gn:}:y:z:};P;T;V;X;`;b;d;h;j;l;n;r!^;_(o)`*U*^._.b.f/S/X/a/n0f1Q1S3T4Q4U5R5T6k6n7U7Y7b7d8{9P:X<d<e`;`3l6q6t6x8o9p9s:bS;i.a3UT;j6s8r!O%Qi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<cv*P$v(s*Q*m*|/]/i0U0V3W4P4b4j6}7`9t;z<W<XS0S*n0T#W;O#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gn;P:y:z:};P;T;V;X;`;b;d;h;j;l;n;r!b;a(o)`*U*^.`.a.f/S/X/a/n0f1Q1S3R3T4Q4U5R5T6k6l6n7U7Y7b7d8{9P:X<d<ed;b3l6r6s6x8o8p9p9q9s:bS;k.b3VT;l6t8srnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zQ&a!UR,e&jrnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zR&a!UQ+}&XR1P+vsnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zQ1],SS5b1`1aU7x5`5a5eS9Z7z7{S9|9Y9]Q:Z9}R:`:[Q&h!VR,^&dR5n1iS%||&RR0x+mQ&m!WR,h&nR,n&sT1x,m1zR,r&tQ,q&tR2R,rQ't!zR-n'tSsOtQ#cXT%ms#cQ!}TR'v!}Q#QUR'x#QQ)w$uR/T)wQ#TVR'z#TQ#WWU(Q#W(R-uQ(R#XR-u(SQ-R'TR2_-RQ.j(sR3X.jQ.m(uS3[.m3]R3].nQ-Y'ZR2c-YY!rQ'Z-Y1[5]R'e!rS#^W%eU(X#^(Y-vQ(Y#_R-v(TQ-U'WR2a-Ut`OXst!V!Z#c%j&d&f&m&o&p&r,h,m1w1zS#gZ%bU#q`#g.PR.P(dQ(e#iQ-|(aW.U(e-|2t6bQ2t-}R6b2uQ)i$kR.|)iQ$ohR)o$oQ$bcU)_$b-q:xQ-q:eR:x)lQ/d*VW3{/d3|7R8zU3|/e/f/gS7R3}4OR8z7S$X)|$v(o(s)`*U*^*m*n*w*x*|.a.b.d.e.f/S/X/]/_/a/i/n0U0V0f1Q1S3R3S3T3W3l4P4Q4U4b4d4j5R5T6k6l6m6n6s6t6v6w6x6}7U7Y7`7b7d8o8p8q8{9P9p9q9r9s9t:X:b;z<W<X<d<eQ/l*^U4T/l4V7VQ4V/nR7V4UQ*h$|R/z*hr*O$v(s*m*n*|/i0U0V3W4P4j6}7`9t;z<W<X!^._(o)`*U*^.a.b.f/S/X/a/n0f1Q1S3T4Q4U5R5T6k6n7U7Y7b7d8{9P:X<d<eU/^*O._6qa6q3l6s6t6x8o9p9s:bQ0R*mQ3U.aU4c0R3U8rR8r6sv*Q$v(s*m*n*|/]/i0U0V3W4P4b4j6}7`9t;z<W<X!b.`(o)`*U*^.a.b.f/S/X/a/n0f1Q1S3R3T4Q4U5R5T6k6l6n7U7Y7b7d8{9P:X<d<eU/`*Q.`6re6r3l6s6t6x8o8p9p9q9s:bQ0T*nQ3V.bU4e0T3V8sR8s6tQ*s%UR0X*sQ4o0fR7c4oQ+U%hR0d+UQ5V1VS7q5V9XR9X7rQ,P&YR1Y,PQ5]1[R7u5]Q1h,ZS5l1h8SR8S5nQ0s+iW4x0s4z7i9TQ4z0vQ7i4yR9T7jQ+n%|R0y+nQ1z,mR5|1zYrOXst#cQ&q!ZQ+W%jQ,g&mQ,i&oQ,j&pQ,l&rQ1u,hS1x,m1zR5{1wQ%lpQ&u!_Q&x!aQ&z!bQ&|!cQ'l!tQ+V%iQ+c%vQ+u&SQ,]&hQ,t&wW-e'f'n'o'rQ-l'jQ/y*gQ0n+dS1k,^,aQ2S,sQ2T,vQ2U,wQ2j-dW2l-g-h-k-mQ4q0oQ4}0|Q5Q1QQ5f1bQ5p1mQ5z1vU6Z2k2n2qQ6^2oQ7e4rQ7m5PQ7n5RQ7t5[Q7}5gQ8T5oS8d6[6`Q8f6_Q9U7kQ9^8OQ9c8UQ9j8eQ9z9VQ:P9_Q:T9kR:]:QQ%vyQ'_!iQ'j!tU+d%w%x%yQ,{'QU-`'`'a'bS-d'f'pQ/p*bS0o+e+fQ2[,}S2h-a-bQ2o-iQ4Y/tQ4r0pQ6V2bQ6Y2iQ6_2pR7Z4^S$wi<YR*t%VU%Ui%V<YR0W*rQ$viS(o#u+`Q(s#wS)`$c$dQ*U$xQ*^${Q*m%OQ*n%QQ*w%[Q*x%]Q*|%aQ.a:|Q.b;OQ.d;SQ.e;UQ.f;WQ/S)uS/X){/ZQ/])}Q/_*PQ/a*RQ/i*YQ/n*`Q0U*pQ0V*qh0f+].Z1^3O5c6g7y8j9[9n:O:WQ1Q+wQ1S+zQ3R;_Q3S;aQ3T;cQ3W.iS3l:y:zQ4P/jQ4Q/kQ4U/mQ4b0QQ4d0SQ4j0^Q5R1RQ5T1UQ6k;gQ6l;iQ6m;kQ6n;mQ6s:}Q6t;PQ6v;TQ6w;VQ6x;XQ6}3xQ7U4SQ7Y4[Q7`4fQ7b4nQ7d4pQ8o;dQ8p;`Q8q;bQ8{7TQ9P7^Q9p;hQ9q;jQ9r;lQ9s;nQ9t8wQ:X;qQ:b;rQ;z<YQ<W<bQ<X<cQ<d<fR<e<gnpOXst!Z#c%j&m&o&p&r,h,m1w1zQ!fPS#eZ#nQ&w!`U'c!o5Y7wQ'y#RQ(|#{Q)m$mS,a&f&iQ,f&jQ,s&vQ,x'OQ-[']Q.p(zQ/Q)nQ0b+SQ0i+^Q1s,eQ2f-^Q2|.[Q3s.{Q4h0[Q5a1_Q5r1oQ5s1pQ5w1rQ5y1tQ6O1|Q6f3PQ6{3pQ7{5dQ8X5tQ8Y5uQ8[5xQ8l6jQ9]7|R9g8]#WcOPXZst!Z!`!o#c#n#{%j&f&i&j&m&o&p&r&v'O'](z+S+^,e,h,m-^.[0[1_1o1p1r1t1w1z1|3P5Y5d5t5u5x6j7w7|8]Q#XWQ#dYQ%nuQ%ovS%qw!gS'|#V(PQ(S#YQ(n#tQ(u#xQ(}$OQ)O$PQ)P$QQ)Q$RQ)R$SQ)S$TQ)T$UQ)U$VQ)V$WQ)W$XQ)X$YQ)Z$[Q)^$aQ)b$eW)l$m)n.{3pQ+Z%pQ+o%}S-O'S2]Q-m'mS-r'}-tQ-w(VQ-y(^Q.h(rQ.n(vQ.r:cQ.t:fQ.u:gQ.v:jQ/V)yQ0_+OQ2W,yQ2Z,|Q2k-fQ2r-zQ3Y.lQ3_:kQ3`:lQ3a:mQ3b:nQ3c:oQ3d:pQ3e:qQ3f:rQ3g:sQ3h:tQ3i:uQ3j:vQ3k.sQ3n:{Q3o;YQ3t:wQ4k0aQ4s0qQ6U;ZQ6[2mQ6a2sQ6o3ZQ6p;[Q6y;^Q6z;eQ7r5WQ8a6SQ8e6]Q8n;fQ8t;oQ8u;pQ9k8gQ9{9WQ:S9iQ:e#RR<P<]R#ZWR'U!eY!tQ'Z-Y1[5]S'Q!e-QQ'f!rS'p!u!xS'r!y5_S,}'R'YS-i'g'hQ-k'iQ2b-WR2p-jR(t#wR(w#xQ!fQT-X'Z-Y]!qQ!r'Z-Y1[5]Q#o]R'd:dT#jZ%bS#iZ%bS%hm,dU(a#g#h#kS-}(b(cQ.R(dQ0c+TQ2u.OU2v.P.Q.SS6c2w2xR8h6d`#]W#V#Y%e'}(W+Q-xr#fZm#g#h#k%b(b(c(d+T.O.P.Q.S2w2x6dQ1q,dQ2X,zQ6Q2PQ8`6RT;w'S+RT#`W%eS#_W%eS(O#V(WS(T#Y+QS-P'S+RT-s'}-xT'X!e%fQ$kfR)s$pT)h$k)iR3r.zT*X$x*ZR*a${Q0g+]Q2z.ZQ5`1^Q6h3OQ7z5cQ8k6gQ9Y7yQ9l8jQ9}9[Q:V9nQ:[:OR:_:WnqOXst!Z#c%j&m&o&p&r,h,m1w1zQ&g!VR,]&dtmOXst!U!V!Z#c%j&d&m&o&p&r,h,m1w1zR,d&jT%im,dR1W+|R,[&bQ&Q|R+t&RR+j%{T&k!W&nT&l!W&nT1y,m1z",nodeNames:"⚠ ArithOp ArithOp JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:zpt,nodeProps:[["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[Xpt],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$<k#p#q$=a#q#r$>q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$f&j!o$Ip(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__VS$f&j(Op(R!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]VS$f&j(R!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S#%|C}i$f&j(g!L^(Op(R!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr#%|EoP;=`<%lCr(CSFRk$f&j(Op(R!b$Y#t'{&;d([!LYOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$f&j(Op(R!b$Y#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv(CSJPP;=`<%lEr%#SJ_`$f&j(Op(R!b#l$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#SKl_$f&j$O$Id(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&COLva(p&;`$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#SNW`$f&j#x$Id(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|! c_(Q$)`$f&j(OpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$f&j(OpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$f&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$a`$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(OpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$a`(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b(*Q!'t_!k(!b$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'l!)O_!jM|$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+h!*[b$f&j(Op(R!b'|#)d#m$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S!+o`$f&j(Op(R!b#j$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&-O!,|`$f&j(Op(R!bn&%`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&C[!.Z_!Y&;l$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS!/ec$f&j(Op(R!b|'<nOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'d!0ya$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'d!2Z_!XMt$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!3eg$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!5Vg$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!6wc$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!8_c$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS!9uf$f&j(Op(R!b#k$IdOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpxz!;Zz{#,f{!P!;Z!P!Q#-{!Q!^!;Z!^!_#'Z!_!`#5k!`!a#7Q!a!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(r!;fb$f&j(Op(R!b!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(Q!<w`$f&j(R!b!USOY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eb!Q!^!<n!^!_!GY!_!}!<n!}#O!Ja#O#P!Dj#P#o!<n#o#p!GY#p;'S!<n;'S;=`!Kj<%lO!<n&n!>Q^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!<n#Q#o!Ja#o#p!Ic#p;'S!Ja;'S;=`!Kd<%lO!Ja(Q!KgP;=`<%l!Ja(Q!KmP;=`<%l!<n'`!Ky`$f&j(Op!USOY!KpYZ&cZr!Kprs!=ys!P!Kp!P!Q!L{!Q!^!Kp!^!_!Ns!_!}!Kp!}#O##z#O#P!Dj#P#o!Kp#o#p!Ns#p;'S!Kp;'S;=`#%T<%lO!Kp'`!MUi$f&j(Op!USOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#Z(r#Z#[!L{#[#](r#]#^!L{#^#a(r#a#b!L{#b#g(r#g#h!L{#h#i(r#i#j!L{#j#m(r#m#n!L{#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rt!NzZ(Op!USOY!NsZr!Nsrs!@Ys!P!Ns!P!Q# m!Q!}!Ns!}#O#!|#O#P!Bb#P;'S!Ns;'S;=`##t<%lO!Nst# tb(Op!USOY)rZr)rs#O)r#P#Z)r#Z#[# m#[#])r#]#^# m#^#a)r#a#b# m#b#g)r#g#h# m#h#i)r#i#j# m#j#m)r#m#n# m#n;'S)r;'S;=`*Z<%lO)rt##RX(OpOY#!|Zr#!|rs!Acs#O#!|#O#P!A{#P#Q!Ns#Q;'S#!|;'S;=`##n<%lO#!|t##qP;=`<%l#!|t##wP;=`<%l!Ns'`#$R^$f&j(OpOY##zYZ&cZr##zrs!Bws!^##z!^!_#!|!_#O##z#O#P!Cr#P#Q!Kp#Q#o##z#o#p#!|#p;'S##z;'S;=`#$}<%lO##z'`#%QP;=`<%l##z'`#%WP;=`<%l!Kp(r#%fk$f&j(Op(R!b!USOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#Z%Z#Z#[#%Z#[#]%Z#]#^#%Z#^#a%Z#a#b#%Z#b#g%Z#g#h#%Z#h#i%Z#i#j#%Z#j#m%Z#m#n#%Z#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#W#'d](Op(R!b!USOY#'ZZr#'Zrs!GYsw#'Zwx!Nsx!P#'Z!P!Q#(]!Q!}#'Z!}#O#)w#O#P!Bb#P;'S#'Z;'S;=`#*w<%lO#'Z#W#(fe(Op(R!b!USOY*gZr*grs'}sw*gwx)rx#O*g#P#Z*g#Z#[#(]#[#]*g#]#^#(]#^#a*g#a#b#(]#b#g*g#g#h#(]#h#i*g#i#j#(]#j#m*g#m#n#(]#n;'S*g;'S;=`+Z<%lO*g#W#*OZ(Op(R!bOY#)wZr#)wrs!Icsw#)wwx#!|x#O#)w#O#P!A{#P#Q#'Z#Q;'S#)w;'S;=`#*q<%lO#)w#W#*tP;=`<%l#)w#W#*zP;=`<%l#'Z(r#+W`$f&j(Op(R!bOY#*}YZ&cZr#*}rs!Jasw#*}wx##zx!^#*}!^!_#)w!_#O#*}#O#P!Cr#P#Q!;Z#Q#o#*}#o#p#)w#p;'S#*};'S;=`#,Y<%lO#*}(r#,]P;=`<%l#*}(r#,cP;=`<%l!;Z(CS#,sb$f&j(Op(R!b'v(;d!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(CS#.W_$f&j(Op(R!bS(;dOY#-{YZ&cZr#-{rs#/Vsw#-{wx#2gx!^#-{!^!_#4f!_#O#-{#O#P#0X#P#o#-{#o#p#4f#p;'S#-{;'S;=`#5e<%lO#-{(Bb#/`]$f&j(R!bS(;dOY#/VYZ&cZw#/Vwx#0Xx!^#/V!^!_#1j!_#O#/V#O#P#0X#P#o#/V#o#p#1j#p;'S#/V;'S;=`#2a<%lO#/V(AO#0`X$f&jS(;dOY#0XYZ&cZ!^#0X!^!_#0{!_#o#0X#o#p#0{#p;'S#0X;'S;=`#1d<%lO#0X(;d#1QSS(;dOY#0{Z;'S#0{;'S;=`#1^<%lO#0{(;d#1aP;=`<%l#0{(AO#1gP;=`<%l#0X(<v#1qW(R!bS(;dOY#1jZw#1jwx#0{x#O#1j#O#P#0{#P;'S#1j;'S;=`#2Z<%lO#1j(<v#2^P;=`<%l#1j(Bb#2dP;=`<%l#/V(Ap#2p]$f&j(OpS(;dOY#2gYZ&cZr#2grs#0Xs!^#2g!^!_#3i!_#O#2g#O#P#0X#P#o#2g#o#p#3i#p;'S#2g;'S;=`#4`<%lO#2g(<U#3pW(OpS(;dOY#3iZr#3irs#0{s#O#3i#O#P#0{#P;'S#3i;'S;=`#4Y<%lO#3i(<U#4]P;=`<%l#3i(Ap#4cP;=`<%l#2g(=h#4oY(Op(R!bS(;dOY#4fZr#4frs#1jsw#4fwx#3ix#O#4f#O#P#0{#P;'S#4f;'S;=`#5_<%lO#4f(=h#5bP;=`<%l#4f(CS#5hP;=`<%l#-{%#W#5xb$f&j$O$Id(Op(R!b!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z+h#7_b$W#t$f&j(Op(R!b!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z$/l#8rp$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#:v![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#:v#S#U%Z#U#V#>Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#<v#c#d#AY#d#l%Z#l#m#D[#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#;Rk$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#:v![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#:v#S#X%Z#X#Y!4|#Y#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#=R_$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#>Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Acc$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#Bn!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#Bn#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Bye$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#Bn!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#Bn#S#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Deg$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#E|![!^%Z!^!_*g!_!c%Z!c!i#E|!i#O%Z#O#P&c#P#R%Z#R#S#E|#S#T%Z#T#Z#E|#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#FXi$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#E|![!^%Z!^!_*g!_!c%Z!c!i#E|!i#O%Z#O#P&c#P#R%Z#R#S#E|#S#T%Z#T#Z#E|#Z#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%Gh#HT_!d$b$f&j#|%<f(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#I__`l$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(@^#Jk^g!*v!h'.r(Op(R!b(tSOY*gZr*grs'}sw*gwx)rx!P*g!P!Q#Kg!Q!^*g!^!_#L]!_!`#M}!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#KpX$h&j(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#LfZ#n$Id(Op(R!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#MX!`#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#MbX$O$Id(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#NWX#o$Id(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g%Gh$ Oa#[%?x$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$!T!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#W$!`_#g$Ih$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%Gh$#nafBf#o$Id$c#|$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$$s!`!a$%}!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$%O_#o$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$&Ya#n$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$'_!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$'j`#n$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+h$(wc(h$Ip$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P$*S!P!^%Z!^!_*g!_!a%Z!a!b$+^!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+`$*__}'#p$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$+i`$f&j#y$Id(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&^$,v_!{!Ln$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(@^$.Q_!P(8n$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/UZ$f&jO!^$/w!^!_$0_!_#i$/w#i#j$0d#j#l$/w#l#m$2V#m#o$/w#o#p$0_#p;'S$/w;'S;=`$4b<%lO$/w(n$0OT^#S$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0dO^#S(n$0i[$f&jO!Q&c!Q![$1_![!^&c!_!c&c!c!i$1_!i#T&c#T#Z$1_#Z#o&c#o#p$3u#p;'S&c;'S;=`&w<%lO&c(n$1dZ$f&jO!Q&c!Q![$2V![!^&c!_!c&c!c!i$2V!i#T&c#T#Z$2V#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2[Z$f&jO!Q&c!Q![$2}![!^&c!_!c&c!c!i$2}!i#T&c#T#Z$2}#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3SZ$f&jO!Q&c!Q![$/w![!^&c!_!c&c!c!i$/w!i#T&c#T#Z$/w#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$3xR!Q![$4R!c!i$4R#T#Z$4R#S$4US!Q![$4R!c!i$4R#T#Z$4R#q#r$0_(n$4eP;=`<%l$/w!2r$4s_!V!+S$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$5}`#v$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&,v$7[_$f&j(Op(R!b(X&%WOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS$8jk$f&j(Op(R!b'{&;d$[#t([!LYOY%ZYZ&cZr%Zrs&}st%Ztu$8Zuw%Zwx(rx}%Z}!O$:_!O!Q%Z!Q![$8Z![!^%Z!^!_*g!_!c%Z!c!}$8Z!}#O%Z#O#P&c#P#R%Z#R#S$8Z#S#T%Z#T#o$8Z#o#p*g#p$g%Z$g;'S$8Z;'S;=`$<e<%lO$8Z+d$:jk$f&j(Op(R!b$[#tOY%ZYZ&cZr%Zrs&}st%Ztu$:_uw%Zwx(rx}%Z}!O$:_!O!Q%Z!Q![$:_![!^%Z!^!_*g!_!c%Z!c!}$:_!}#O%Z#O#P&c#P#R%Z#R#S$:_#S#T%Z#T#o$:_#o#p*g#p$g%Z$g;'S$:_;'S;=`$<_<%lO$:_+d$<bP;=`<%l$:_(CS$<hP;=`<%l$8Z!5p$<tX![!3l(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g&CO$=la(o&;`$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+^#q;'S%Z;'S;=`+a<%lO%Z%#`$?O_!Z$I`r`$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(r$@Y_!pS$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS$Aj|$f&j(Op(R!b't(;d$Y#t'{&;d([!LYOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(CS$Duk$f&j(Op(R!b'u(;d$Y#t'{&;d([!LYOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[Gpt,Qpt,Upt,2,3,4,5,6,7,8,9,10,11,12,13,Zpt,new b5("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOt~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(Z~~",141,332),new b5("j~RQYZXz{^~^O'x~~aP!P!Qd~iO'y~~",25,315)],topRules:{Script:[0,6],SingleExpression:[1,269],SingleClassItem:[2,270]},dialects:{jsx:0,ts:14602},dynamicPrecedences:{69:1,79:1,81:1,165:1,193:1},specialized:[{term:319,get:e=>Ypt[e]||-1},{term:334,get:e=>Kpt[e]||-1},{term:70,get:e=>qpt[e]||-1}],tokenPrec:14626}),QX=[Jl("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Jl("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Jl("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Jl("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Jl("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Jl(`try {
|
|
\${}
|
|
} catch (\${error}) {
|
|
\${}
|
|
}`,{label:"try",detail:"/ catch block",type:"keyword"}),Jl("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Jl(`if (\${}) {
|
|
\${}
|
|
} else {
|
|
\${}
|
|
}`,{label:"if",detail:"/ else block",type:"keyword"}),Jl(`class \${name} {
|
|
constructor(\${params}) {
|
|
\${}
|
|
}
|
|
}`,{label:"class",detail:"definition",type:"keyword"}),Jl('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Jl('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],WIe=QX.concat([Jl("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Jl("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Jl("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),qae=new XSe,HIe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function SA(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const eft=["FunctionDeclaration"],tft={FunctionDeclaration:SA("function"),ClassDeclaration:SA("class"),ClassExpression:()=>!0,EnumDeclaration:SA("constant"),TypeAliasDeclaration:SA("type"),NamespaceDeclaration:SA("namespace"),VariableDefinition(e,t){e.matchContext(eft)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function zIe(e,t){let n=qae.get(t);if(n)return n;let r=[],i=!0;function o(a,s){let l=e.sliceString(a.from,a.to);r.push({label:l,type:s})}return t.cursor(vo.IncludeAnonymous).iterate(a=>{if(i)i=!1;else if(a.name){let s=tft[a.name];if(s&&s(a,o)||HIe.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of zIe(e,a.node))r.push(s);return!1}}),qae.set(t,r),r}const x5=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,UX=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function ZIe(e){let t=oa(e.state).resolveInner(e.pos,-1);if(UX.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&x5.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)HIe.has(i.name)&&(r=r.concat(zIe(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:x5}}function kN(e,t,n){var r;let i=[];for(;;){let o=t.firstChild,a;if((o==null?void 0:o.name)=="VariableName")return i.push(e(o)),{path:i.reverse(),name:n};if((o==null?void 0:o.name)=="MemberExpression"&&((r=a=o.lastChild)===null||r===void 0?void 0:r.name)=="PropertyName")i.push(e(a)),t=o;else return null}}function GIe(e){let t=r=>e.state.doc.sliceString(r.from,r.to),n=oa(e.state).resolveInner(e.pos,-1);return n.name=="PropertyName"?kN(t,n.parent,t(n)):(n.name=="."||n.name=="?.")&&n.parent.name=="MemberExpression"?kN(t,n.parent,""):UX.indexOf(n.name)>-1?null:n.name=="VariableName"||n.to-n.from<20&&x5.test(t(n))?{path:[],name:t(n)}:n.name=="MemberExpression"?kN(t,n,""):e.explicit?{path:[],name:""}:null}function nft(e,t){let n=[],r=new Set;for(let i=0;;i++){for(let a of(Object.getOwnPropertyNames||Object.keys)(e)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(a)||r.has(a))continue;r.add(a);let s;try{s=e[a]}catch{continue}n.push({label:a,type:typeof s=="function"?/^[A-Z]/.test(a)?"class":t?"function":"method":t?"variable":"property",boost:-i})}let o=Object.getPrototypeOf(e);if(!o)return n;e=o}}function rft(e){let t=new Map;return n=>{let r=GIe(n);if(!r)return null;let i=e;for(let a of r.path)if(i=i[a],!i)return null;let o=t.get(i);return o||t.set(i,o=nft(i,!r.path.length)),{from:n.pos-r.name.length,options:o,validFor:x5}}}const Jc=LO.define({name:"javascript",parser:Jpt.configure({props:[M_.add({IfStatement:B3({except:/^\s*({|else\b)/}),TryStatement:B3({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Aut,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:Sut({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":B3({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),L_.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":oAe,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),QIe={test:e=>/^JSX/.test(e.name),facet:GL({commentTokens:{block:{open:"{/*",close:"*/}"}}})},XX=Jc.configure({dialect:"ts"},"typescript"),YX=Jc.configure({dialect:"jsx",props:[kX.add(e=>e.isTop?[QIe]:void 0)]}),KX=Jc.configure({dialect:"jsx ts",props:[kX.add(e=>e.isTop?[QIe]:void 0)]},"typescript");let UIe=e=>({label:e,type:"keyword"});const XIe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(UIe),ift=XIe.concat(["declare","implements","private","protected","public"].map(UIe));function YIe(e={}){let t=e.jsx?e.typescript?KX:YX:e.typescript?XX:Jc,n=e.typescript?WIe.concat(ift):QX.concat(XIe);return new NO(t,[Jc.data.of({autocomplete:qct(UX,GAe(n))}),Jc.data.of({autocomplete:ZIe}),e.jsx?KIe:[]])}function oft(e){for(;;){if(e.name=="JSXOpenTag"||e.name=="JSXSelfClosingTag"||e.name=="JSXFragmentTag")return e;if(e.name=="JSXEscape"||!e.parent)return null;e=e.parent}}function Jae(e,t,n=e.length){for(let r=t==null?void 0:t.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return e.sliceString(r.from,Math.min(r.to,n));return""}const aft=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),KIe=ar.inputHandler.of((e,t,n,r,i)=>{if((aft?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Jc.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u;let{head:c}=l,d=oa(a).resolveInner(c-1,-1),h;if(d.name=="JSXStartTag"&&(d=d.parent),!(a.doc.sliceString(c-1,c)!=r||d.name=="JSXAttributeValue"&&d.to>c)){if(r==">"&&d.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:"</>"}};if(r=="/"&&d.name=="JSXStartCloseTag"){let f=d.parent,g=f.parent;if(g&&f.from==c-2&&((h=Jae(a.doc,g.firstChild,c))||((u=g.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let b=`${h}>`;return{range:tn.cursor(c+b.length,-1),changes:{from:c,insert:b}}}}else if(r==">"){let f=oft(d);if(f&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(h=Jae(a.doc,f,c)))return{range:l,changes:{from:c,insert:`</${h}>`}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function sft(e,t){return t||(t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},e.getRules().forEach((n,r)=>{n.meta.docs.recommended&&(t.rules[r]=2)})),n=>{let{state:r}=n,i=[];for(let{from:o,to:a}of Jc.findRegions(r)){let s=r.doc.lineAt(o),l={line:s.number-1,col:o-s.from,pos:o};for(let u of e.verify(r.sliceDoc(o,a),t))i.push(lft(u,r.doc,l))}return i}}function ese(e,t,n,r){return n.line(e+r.line).from+t+(e==1?r.col-1:-1)}function lft(e,t,n){let r=ese(e.line,e.column,t,n),i={from:r,to:e.endLine!=null&&e.endColumn!=1?ese(e.endLine,e.endColumn,t,n):r,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:e.severity==1?"warning":"error"};if(e.fix){let{range:o,text:a}=e.fix,s=o[0]+n.pos-r,l=o[1]+n.pos-r;i.actions=[{name:"fix",apply(u,c){u.dispatch({changes:{from:c+s,to:c+l,insert:a},scrollIntoView:!0})}}]}return i}const VD=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:KIe,completionPath:GIe,esLint:sft,javascript:YIe,javascriptLanguage:Jc,jsxLanguage:YX,localCompletionSource:ZIe,scopeCompletionSource:rft,snippets:QX,tsxLanguage:KX,typescriptLanguage:XX,typescriptSnippets:WIe},Symbol.toStringTag,{value:"Module"})),AA=["_blank","_self","_top","_parent"],EN=["ascii","utf-8","utf-16","latin1","latin1"],_N=["get","post","put","delete"],TN=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Lu=["true","false"],Un={},uft={a:{attrs:{href:null,ping:null,type:null,media:null,target:AA,hreflang:null}},abbr:Un,address:Un,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Un,aside:Un,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Un,base:{attrs:{href:null,target:AA}},bdi:Un,bdo:Un,blockquote:{attrs:{cite:null}},body:Un,br:Un,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:TN,formmethod:_N,formnovalidate:["novalidate"],formtarget:AA,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Un,center:Un,cite:Un,code:Un,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Un,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Un,div:Un,dl:Un,dt:Un,em:Un,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Un,figure:Un,footer:Un,form:{attrs:{action:null,name:null,"accept-charset":EN,autocomplete:["on","off"],enctype:TN,method:_N,novalidate:["novalidate"],target:AA}},h1:Un,h2:Un,h3:Un,h4:Un,h5:Un,h6:Un,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Un,hgroup:Un,hr:Un,html:{attrs:{manifest:null}},i:Un,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:TN,formmethod:_N,formnovalidate:["novalidate"],formtarget:AA,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Un,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Un,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Un,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:EN,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Un,noscript:Un,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Un,param:{attrs:{name:null,value:null}},pre:Un,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Un,rt:Un,ruby:Un,samp:Un,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:EN}},section:Un,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Un,source:{attrs:{src:null,type:null,media:null}},span:Un,strong:Un,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Un,summary:Un,sup:Un,table:Un,tbody:Un,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Un,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Un,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Un,time:{attrs:{datetime:null}},title:Un,tr:Un,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Un,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Un},qIe={accesskey:null,class:null,contenteditable:Lu,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Lu,autocorrect:Lu,autocapitalize:Lu,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Lu,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Lu,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Lu,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Lu,"aria-hidden":Lu,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Lu,"aria-multiselectable":Lu,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Lu,"aria-relevant":null,"aria-required":Lu,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},JIe="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of JIe)qIe[e]=null;class cE{constructor(t,n){this.tags=Object.assign(Object.assign({},uft),t),this.globalAttrs=Object.assign(Object.assign({},qIe),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}cE.default=new cE;function WO(e,t,n=e.length){if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function HO(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function eke(e,t,n){let r=n.tags[WO(e,HO(t))];return(r==null?void 0:r.children)||n.allTags}function qX(e,t){let n=[];for(let r=HO(t);r&&!r.type.isTop;r=HO(r.parent)){let i=WO(e,r);if(i&&r.lastChild.name=="CloseTag")break;i&&n.indexOf(i)<0&&(t.name=="EndTag"||t.from>=r.firstChild.to)&&n.push(i)}return n}const tke=/^[:\-\.\w\u00b7-\uffff]*$/;function tse(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=HO(n,!0);return{from:r,to:i,options:eke(e.doc,a,t).map(s=>({label:s,type:"type"})).concat(qX(e.doc,n).map((s,l)=>({label:"/"+s,apply:"/"+s+o,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function nse(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:qX(e.doc,t).map((o,a)=>({label:o,apply:o+i,type:"type",boost:99-a})),validFor:tke}}function cft(e,t,n,r){let i=[],o=0;for(let a of eke(e.doc,n,t))i.push({label:"<"+a,type:"type"});for(let a of qX(e.doc,n))i.push({label:"</"+a+">",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function dft(e,t,n,r,i){let o=HO(n),a=o?t.tags[WO(e.doc,o)]:null,s=a&&a.attrs?Object.keys(a.attrs):[],l=a&&a.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:tke}}function hft(e,t,n,r,i){var o;let a=(o=n.parent)===null||o===void 0?void 0:o.getChild("AttributeName"),s=[],l;if(a){let u=e.sliceDoc(a.from,a.to),c=t.globalAttrs[u];if(!c){let d=HO(n),h=d?t.tags[WO(e.doc,d)]:null;c=(h==null?void 0:h.attrs)&&h.attrs[u]}if(c){let d=e.sliceDoc(r,i).toLowerCase(),h='"',f='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,h="",f=e.sliceDoc(i,i+1)==d[0]?"":d[0],d=d.slice(1),r++):l=/^[^\s<>='"]*$/;for(let g of c)s.push({label:g,apply:h+g+f,type:"constant"})}}return{from:r,to:i,options:s,validFor:l}}function nke(e,t){let{state:n,pos:r}=t,i=oa(n).resolveInner(r,-1),o=i.resolve(r);for(let a=r,s;o==i&&(s=i.childBefore(a));){let l=s.lastChild;if(!l||!l.type.isError||l.from<l.to)break;o=i=s,a=l.from}return i.name=="TagName"?i.parent&&/CloseTag$/.test(i.parent.name)?nse(n,i,i.from,r):tse(n,e,i,i.from,r):i.name=="StartTag"?tse(n,e,i,r,r):i.name=="StartCloseTag"||i.name=="IncompleteCloseTag"?nse(n,i,r,r):t.explicit&&(i.name=="OpenTag"||i.name=="SelfClosingTag")||i.name=="AttributeName"?dft(n,e,i,i.name=="AttributeName"?i.from:r,r):i.name=="Is"||i.name=="AttributeValue"||i.name=="UnquotedAttributeValue"?hft(n,e,i,i.name=="Is"?r:i.from,r):t.explicit&&(o.name=="Element"||o.name=="Text"||o.name=="Document")?cft(n,e,i,r):null}function rke(e){return nke(cE.default,e)}function ike(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new cE(t,n):cE.default;return i=>nke(r,i)}const pft=Jc.parser.configure({top:"SingleExpression"}),oke=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:XX.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:YX.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:KX.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:pft},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Jc.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:uE.parser}],ake=[{name:"style",parser:uE.parser.configure({top:"Styles"})}].concat(JIe.map(e=>({name:e,parser:Jc.parser}))),JX=LO.define({name:"html",parser:tpt.configure({props:[M_.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t=null,n;for(let r=e.node;;){let i=r.lastChild;if(!i||i.name!="Element"||i.to!=r.to)break;t=r=i}return t&&!((n=t.lastChild)&&(n.name=="CloseTag"||n.name=="SelfClosingTag"))?e.lineIndent(t.from)+e.unit:null}}),L_.add({Element(e){let t=e.firstChild,n=e.lastChild;return!t||t.name!="OpenTag"?null:{from:t.to,to:n.name=="CloseTag"?n.from:e.to}}}),sAe.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),Nk=JX.configure({wrap:$Ie(oke,ake)});function ske(e={}){let t="",n;e.matchClosingTags===!1&&(t="noMatch"),e.selfClosingTags===!0&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=$Ie((e.nestedLanguages||[]).concat(oke),(e.nestedAttributes||[]).concat(ake)));let r=n?JX.configure({wrap:n,dialect:t}):t?Nk.configure({dialect:t}):Nk;return new NO(r,[Nk.data.of({autocomplete:ike(e)}),e.autoCloseTags!==!1?lke:[],YIe().support,VIe().support])}const rse=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),lke=ar.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Nk.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u,c,d;let h=a.doc.sliceString(l.from-1,l.to)==r,{head:f}=l,g=oa(a).resolveInner(f-1,-1),b;if((g.name=="TagName"||g.name=="StartTag")&&(g=g.parent),h&&r==">"&&g.name=="OpenTag"){if(((c=(u=g.parent)===null||u===void 0?void 0:u.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(b=WO(a.doc,g.parent,f))&&!rse.has(b)){let v=f+(a.doc.sliceString(f,f+1)===">"?1:0),m=`</${b}>`;return{range:l,changes:{from:f,to:v,insert:m}}}}else if(h&&r=="/"&&g.name=="IncompleteCloseTag"){let v=g.parent;if(g.from==f-2&&((d=v.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(b=WO(a.doc,v,f))&&!rse.has(b)){let m=f+(a.doc.sliceString(f,f+1)===">"?1:0),w=`${b}>`;return{range:tn.cursor(f+w.length,-1),changes:{from:f,to:m,insert:w}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),fft=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:lke,html:ske,htmlCompletionSource:rke,htmlCompletionSourceWith:ike,htmlLanguage:Nk,htmlPlain:JX},Symbol.toStringTag,{value:"Module"})),uke=GL({commentTokens:{block:{open:"<!--",close:"-->"}}}),cke=new Ir,dke=Xdt.configure({props:[L_.add(e=>!e.is("Block")||e.is("Document")||zH(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),cke.add(zH),M_.add({Document:()=>null}),Av.add({Document:uke})]});function zH(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function gft(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=zH(r.type))!=null&&i<=t)break;n=r}return n.to}const mft=Iut.of((e,t,n)=>{for(let r=oa(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let i=r.type.prop(cke);if(i==null)continue;let o=gft(r,i);if(o>n)return{from:n,to:o}}return null});function eY(e){return new qu(uke,e,[mft],"markdown")}const hke=eY(dke),vft=dke.configure([aht,lht,sht,uht,{props:[L_.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),tY=eY(vft);function yft(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=Ft.matchLanguageName(e,n,!0),r instanceof Ft)return r.support?r.support.language.parser:n1.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class jD{constructor(t,n,r,i,o,a,s){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=o,this.type=a,this.item=s}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length<t;)r+=" ";return r}else{for(let i=this.to-this.from-r.length-this.spaceAfter.length;i>0;i--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+fke(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function pke(e,t){let n=[];for(let i=e;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&n.push(i);let r=[];for(let i=n.length-1;i>=0;i--){let o=n[i],a,s=t.lineAt(o.from),l=o.from-s.from;if(o.name=="FencedCode")r.push(new jD(o,l,l,"","","",null));else if(o.name=="Blockquote"&&(a=/^ *>( ?)/.exec(s.text.slice(l))))r.push(new jD(o,l,l+a[0].length,"",a[1],">",null));else if(o.name=="ListItem"&&o.parent.name=="OrderedList"&&(a=/^( *)\d+([.)])( *)/.exec(s.text.slice(l)))){let u=a[3],c=a[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),r.push(new jD(o.parent,l,l+c,a[1],u,a[2],o))}else if(o.name=="ListItem"&&o.parent.name=="BulletList"&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(s.text.slice(l)))){let u=a[4],c=a[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let d=a[2];a[3]&&(d+=a[3].replace(/[xX]/," ")),r.push(new jD(o.parent,l,l+c,a[1],u,d,o))}}return r}function fke(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function PN(e,t,n,r=0){for(let i=-1,o=e;;){if(o.name=="ListItem"){let s=fke(o,t),l=+s[2];if(i>=0){if(l!=i+1)return;n.push({from:o.from+s[1].length,to:o.from+s[0].length,insert:String(i+2+r)})}i=l}let a=o.nextSibling;if(!a)break;o=a}}function ZH(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(Mx)!=" ")return e;let r=Wp(e,4,n),i="";for(let o=r;o>0;)o>=4?(i+=" ",o-=4):(i+=" ",o--);return i+e.slice(n)}const gke=({state:e,dispatch:t})=>{let n=oa(e),{doc:r}=e,i=null,o=e.changeByRange(a=>{if(!a.empty||!tY.isActiveAt(e,a.from))return i={range:a};let s=a.from,l=r.lineAt(s),u=pke(n.resolveInner(s,-1),r);for(;u.length&&u[u.length-1].from>s-l.from;)u.pop();if(!u.length)return i={range:a};let c=u[u.length-1];if(c.to-c.spaceAfter.length>s-l.from)return i={range:a};let d=s>=c.to-c.spaceAfter.length&&!/\S/.test(l.text.slice(c.to));if(c.item&&d)if(c.node.firstChild.to>=s||l.from>0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let v=u.length>1?u[u.length-2]:null,m,w="";v&&v.item?(m=l.from+v.from,w=v.marker(r,1)):m=l.from+(v?v.to:0);let k=[{from:m,to:s,insert:w}];return c.node.name=="OrderedList"&&PN(c.item,r,k,-2),v&&v.node.name=="OrderedList"&&PN(v.item,r,k),{range:tn.cursor(m+w.length),changes:k}}else{let v="";for(let m=0,w=u.length-2;m<=w;m++)v+=u[m].blank(m<w?Wp(l.text,4,u[m+1].from)-v.length:null,m<w);return v=ZH(v,e),{range:tn.cursor(s+v.length+1),changes:{from:l.from,insert:v+e.lineBreak}}}if(c.node.name=="Blockquote"&&d&&l.from){let v=r.lineAt(l.from-1),m=/>\s*$/.exec(v.text);if(m&&m.index==c.from){let w=e.changes([{from:v.from+m.index,to:v.to},{from:l.from+c.from,to:l.to}]);return{range:a.map(w),changes:w}}}let h=[];c.node.name=="OrderedList"&&PN(c.item,r,h);let f=c.item&&c.item.from<l.from,g="";if(!f||/^[\s\d.)\-+*>]*/.exec(l.text)[0].length>=c.to)for(let v=0,m=u.length-1;v<=m;v++)g+=v==m&&!f?u[v].marker(r,1):u[v].blank(v<m?Wp(l.text,4,u[v+1].from)-g.length:null);let b=s;for(;b>l.from&&/\s/.test(l.text.charAt(b-l.from-1));)b--;return g=ZH(g,e),h.push({from:b,to:s,insert:e.lineBreak+g}),{range:tn.cursor(b+g.length+1),changes:h}});return i?!1:(t(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)};function ise(e){return e.name=="QuoteMark"||e.name=="ListMark"}function bft(e,t){let n=e.resolveInner(t,-1),r=t;ise(n)&&(r=n.from,n=n.parent);for(let i;i=n.childBefore(r);)if(ise(i))r=i.from;else if(i.name=="OrderedList"||i.name=="BulletList")n=i.lastChild,r=n.to;else break;return n}const mke=({state:e,dispatch:t})=>{let n=oa(e),r=null,i=e.changeByRange(o=>{let a=o.from,{doc:s}=e;if(o.empty&&tY.isActiveAt(e,o.from)){let l=s.lineAt(a),u=pke(bft(n,a),s);if(u.length){let c=u[u.length-1],d=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(a-l.from>d&&!/\S/.test(l.text.slice(d,a-l.from)))return{range:tn.cursor(l.from+d),changes:{from:l.from+d,to:a}};if(a-l.from==d&&(!c.item||l.from<=c.item.from||!/\S/.test(l.text.slice(0,c.to)))){let h=l.from+c.from;if(c.item&&c.node.from<c.item.from&&/\S/.test(l.text.slice(c.from,c.to))){let f=c.blank(Wp(l.text,4,c.to)-Wp(l.text,4,c.from));return h==l.from&&(f=ZH(f,e)),{range:tn.cursor(h+f.length),changes:{from:h,to:l.from+c.to,insert:f}}}if(h<a)return{range:tn.cursor(h),changes:{from:h,to:a}}}}}return r={range:o}});return r?!1:(t(e.update(i,{scrollIntoView:!0,userEvent:"delete"})),!0)},vke=[{key:"Enter",run:gke},{key:"Backspace",run:mke}],GH=ske({matchClosingTags:!1});function yke(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=hke,completeHTMLTags:o=!0}=e;if(!(i instanceof qL))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let a=e.extensions?[e.extensions]:[],s=[GH.support],l;n instanceof NO?(s.push(n.support),l=n.language):n&&(l=n);let u=t||l?yft(t,l):void 0;a.push(Kdt({codeParser:u,htmlParser:GH.language.parser})),r&&s.push(E1.high(Dx.of(vke)));let c=eY(i.configure(a));return o&&s.push(c.data.of({autocomplete:wft})),new NO(c,s)}function wft(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=oa(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if(i.name=="CodeBlock"||i.name=="FencedCode"||i.name=="ProcessingInstructionBlock"||i.name=="CommentBlock"||i.name=="Link"||i.name=="Image")return null;i=i.parent}return{from:n-r[0].length,to:n,options:Cft(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let DN=null;function Cft(){if(DN)return DN;let e=rke(new BX(Ai.create({extensions:GH}),0,!0));return DN=e?e.options:[]}const Oft=Object.freeze(Object.defineProperty({__proto__:null,commonmarkLanguage:hke,deleteMarkupBackward:mke,insertNewlineContinueMarkup:gke,markdown:yke,markdownKeymap:vke,markdownLanguage:tY},Symbol.toStringTag,{value:"Module"}));/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var Wy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WD=function(e){return e.tagName==="IMG"},xft=function(e){return NodeList.prototype.isPrototypeOf(e)},V3=function(e){return e&&e.nodeType===1},ose=function(e){var t=e.currentSrc||e.src;return t.substr(-4).toLowerCase()===".svg"},ase=function(e){try{return Array.isArray(e)?e.filter(WD):xft(e)?[].slice.call(e).filter(WD):V3(e)?[e].filter(WD):typeof e=="string"?[].slice.call(document.querySelectorAll(e)).filter(WD):[]}catch{throw new TypeError(`The provided selector is invalid.
|
|
Expects a CSS selector, a Node element, a NodeList or an array.
|
|
See: https://github.com/francoischalifour/medium-zoom`)}},Sft=function(e){var t=document.createElement("div");return t.classList.add("medium-zoom-overlay"),t.style.background=e,t},Aft=function(e){var t=e.getBoundingClientRect(),n=t.top,r=t.left,i=t.width,o=t.height,a=e.cloneNode(),s=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,l=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return a.removeAttribute("id"),a.style.position="absolute",a.style.top=n+s+"px",a.style.left=r+l+"px",a.style.width=i+"px",a.style.height=o+"px",a.style.transform="",a},Rw=function(e,t){var n=Wy({bubbles:!1,cancelable:!1,detail:void 0},t);if(typeof window.CustomEvent=="function")return new CustomEvent(e,n);var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r},Ift=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(R){function D(){}R(D,D)},i=function(R){var D=R.target;if(D===_){g();return}k.indexOf(D)!==-1&&b({target:D})},o=function(){if(!(S||!y.original)){var R=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(I-R)>O.scrollOffset&&setTimeout(g,150)}},a=function(R){var D=R.key||R.keyCode;(D==="Escape"||D==="Esc"||D===27)&&g()},s=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=R;if(R.background&&(_.style.background=R.background),R.container&&R.container instanceof Object&&(D.container=Wy({},O.container,R.container)),R.template){var C=V3(R.template)?R.template:document.querySelector(R.template);D.template=C}return O=Wy({},O,D),k.forEach(function(x){x.dispatchEvent(Rw("medium-zoom:update",{detail:{zoom:A}}))}),A},l=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(Wy({},O,R))},u=function(){for(var R=arguments.length,D=Array(R),C=0;C<R;C++)D[C]=arguments[C];var x=D.reduce(function(P,$){return[].concat(P,ase($))},[]);return x.filter(function(P){return k.indexOf(P)===-1}).forEach(function(P){k.push(P),P.classList.add("medium-zoom-image")}),T.forEach(function(P){var $=P.type,L=P.listener,V=P.options;x.forEach(function(H){H.addEventListener($,L,V)})}),A},c=function(){for(var R=arguments.length,D=Array(R),C=0;C<R;C++)D[C]=arguments[C];y.zoomed&&g();var x=D.length>0?D.reduce(function(P,$){return[].concat(P,ase($))},[]):k;return x.forEach(function(P){P.classList.remove("medium-zoom-image"),P.dispatchEvent(Rw("medium-zoom:detach",{detail:{zoom:A}}))}),k=k.filter(function(P){return x.indexOf(P)===-1}),A},d=function(R,D){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return k.forEach(function(x){x.addEventListener("medium-zoom:"+R,D,C)}),T.push({type:"medium-zoom:"+R,listener:D,options:C}),A},h=function(R,D){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return k.forEach(function(x){x.removeEventListener("medium-zoom:"+R,D,C)}),T=T.filter(function(x){return!(x.type==="medium-zoom:"+R&&x.listener.toString()===D.toString())}),A},f=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=R.target,C=function(){var x={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},P=void 0,$=void 0;if(O.container)if(O.container instanceof Object)x=Wy({},x,O.container),P=x.width-x.left-x.right-O.margin*2,$=x.height-x.top-x.bottom-O.margin*2;else{var L=V3(O.container)?O.container:document.querySelector(O.container),V=L.getBoundingClientRect(),H=V.width,Q=V.height,U=V.left,K=V.top;x=Wy({},x,{width:H,height:Q,left:U,top:K})}P=P||x.width-O.margin*2,$=$||x.height-O.margin*2;var J=y.zoomedHd||y.original,ue=ose(J)?P:J.naturalWidth||P,ee=ose(J)?$:J.naturalHeight||$,N=J.getBoundingClientRect(),q=N.top,G=N.left,ne=N.width,le=N.height,oe=Math.min(Math.max(ne,ue),P)/ne,ve=Math.min(Math.max(le,ee),$)/le,de=Math.min(oe,ve),ae=(-G+(P-ne)/2+O.margin+x.left)/de,be=(-q+($-le)/2+O.margin+x.top)/de,ie="scale("+de+") translate3d("+ae+"px, "+be+"px, 0)";y.zoomed.style.transform=ie,y.zoomedHd&&(y.zoomedHd.style.transform=ie)};return new r(function(x){if(D&&k.indexOf(D)===-1){x(A);return}var P=function Q(){S=!1,y.zoomed.removeEventListener("transitionend",Q),y.original.dispatchEvent(Rw("medium-zoom:opened",{detail:{zoom:A}})),x(A)};if(y.zoomed){x(A);return}if(D)y.original=D;else if(k.length>0){var $=k;y.original=$[0]}else{x(A);return}if(y.original.dispatchEvent(Rw("medium-zoom:open",{detail:{zoom:A}})),I=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,S=!0,y.zoomed=Aft(y.original),document.body.appendChild(_),O.template){var L=V3(O.template)?O.template:document.querySelector(O.template);y.template=document.createElement("div"),y.template.appendChild(L.content.cloneNode(!0)),document.body.appendChild(y.template)}if(y.original.parentElement&&y.original.parentElement.tagName==="PICTURE"&&y.original.currentSrc&&(y.zoomed.src=y.original.currentSrc),document.body.appendChild(y.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),y.original.classList.add("medium-zoom-image--hidden"),y.zoomed.classList.add("medium-zoom-image--opened"),y.zoomed.addEventListener("click",g),y.zoomed.addEventListener("transitionend",P),y.original.getAttribute("data-zoom-src")){y.zoomedHd=y.zoomed.cloneNode(),y.zoomedHd.removeAttribute("srcset"),y.zoomedHd.removeAttribute("sizes"),y.zoomedHd.removeAttribute("loading"),y.zoomedHd.src=y.zoomed.getAttribute("data-zoom-src"),y.zoomedHd.onerror=function(){clearInterval(V),console.warn("Unable to reach the zoom image target "+y.zoomedHd.src),y.zoomedHd=null,C()};var V=setInterval(function(){y.zoomedHd.complete&&(clearInterval(V),y.zoomedHd.classList.add("medium-zoom-image--opened"),y.zoomedHd.addEventListener("click",g),document.body.appendChild(y.zoomedHd),C())},10)}else if(y.original.hasAttribute("srcset")){y.zoomedHd=y.zoomed.cloneNode(),y.zoomedHd.removeAttribute("sizes"),y.zoomedHd.removeAttribute("loading");var H=y.zoomedHd.addEventListener("load",function(){y.zoomedHd.removeEventListener("load",H),y.zoomedHd.classList.add("medium-zoom-image--opened"),y.zoomedHd.addEventListener("click",g),document.body.appendChild(y.zoomedHd),C()})}else C()})},g=function(){return new r(function(R){if(S||!y.original){R(A);return}var D=function C(){y.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(y.zoomed),y.zoomedHd&&document.body.removeChild(y.zoomedHd),document.body.removeChild(_),y.zoomed.classList.remove("medium-zoom-image--opened"),y.template&&document.body.removeChild(y.template),S=!1,y.zoomed.removeEventListener("transitionend",C),y.original.dispatchEvent(Rw("medium-zoom:closed",{detail:{zoom:A}})),y.original=null,y.zoomed=null,y.zoomedHd=null,y.template=null,R(A)};S=!0,document.body.classList.remove("medium-zoom--opened"),y.zoomed.style.transform="",y.zoomedHd&&(y.zoomedHd.style.transform=""),y.template&&(y.template.style.transition="opacity 150ms",y.template.style.opacity=0),y.original.dispatchEvent(Rw("medium-zoom:close",{detail:{zoom:A}})),y.zoomed.addEventListener("transitionend",D)})},b=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=R.target;return y.original?g():f({target:D})},v=function(){return O},m=function(){return k},w=function(){return y.original},k=[],T=[],S=!1,I=0,O=n,y={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?O=t:(t||typeof t=="string")&&u(t),O=Wy({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},O);var _=Sft(O.background);document.addEventListener("click",i),document.addEventListener("keyup",a),document.addEventListener("scroll",o),window.addEventListener("resize",g);var A={open:f,close:g,toggle:b,update:s,clone:l,attach:u,detach:c,on:d,off:h,getOptions:v,getImages:m,getZoomedImage:w};return A};function kft(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var Eft=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";kft(Eft);const _ft=Ift;var Tft=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},Pft=Tft,sse={"text/plain":"Text","text/html":"Url",default:"Text"},Dft="Copy to clipboard: #{key}, Enter";function Rft(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function $ft(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=Pft(),o=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(c){if(c.stopPropagation(),t.format)if(c.preventDefault(),typeof c.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=sse[t.format]||sse.default;window.clipboardData.setData(d,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(c){n&&console.error("unable to copy using execCommand: ",c),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=Rft("message"in t?t.message:Dft),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var Mft=$ft;const Lft=pl(Mft);var Mi={};const Bft="Á",Fft="á",Nft="Ă",Vft="ă",jft="∾",Wft="∿",Hft="∾̳",zft="Â",Zft="â",Gft="´",Qft="А",Uft="а",Xft="Æ",Yft="æ",Kft="",qft="𝔄",Jft="𝔞",egt="À",tgt="à",ngt="ℵ",rgt="ℵ",igt="Α",ogt="α",agt="Ā",sgt="ā",lgt="⨿",ugt="&",cgt="&",dgt="⩕",hgt="⩓",pgt="∧",fgt="⩜",ggt="⩘",mgt="⩚",vgt="∠",ygt="⦤",bgt="∠",wgt="⦨",Cgt="⦩",Ogt="⦪",xgt="⦫",Sgt="⦬",Agt="⦭",Igt="⦮",kgt="⦯",Egt="∡",_gt="∟",Tgt="⊾",Pgt="⦝",Dgt="∢",Rgt="Å",$gt="⍼",Mgt="Ą",Lgt="ą",Bgt="𝔸",Fgt="𝕒",Ngt="⩯",Vgt="≈",jgt="⩰",Wgt="≊",Hgt="≋",zgt="'",Zgt="",Ggt="≈",Qgt="≊",Ugt="Å",Xgt="å",Ygt="𝒜",Kgt="𝒶",qgt="≔",Jgt="*",emt="≈",tmt="≍",nmt="Ã",rmt="ã",imt="Ä",omt="ä",amt="∳",smt="⨑",lmt="≌",umt="϶",cmt="‵",dmt="∽",hmt="⋍",pmt="∖",fmt="⫧",gmt="⊽",mmt="⌅",vmt="⌆",ymt="⌅",bmt="⎵",wmt="⎶",Cmt="≌",Omt="Б",xmt="б",Smt="„",Amt="∵",Imt="∵",kmt="∵",Emt="⦰",_mt="϶",Tmt="ℬ",Pmt="ℬ",Dmt="Β",Rmt="β",$mt="ℶ",Mmt="≬",Lmt="𝔅",Bmt="𝔟",Fmt="⋂",Nmt="◯",Vmt="⋃",jmt="⨀",Wmt="⨁",Hmt="⨂",zmt="⨆",Zmt="★",Gmt="▽",Qmt="△",Umt="⨄",Xmt="⋁",Ymt="⋀",Kmt="⤍",qmt="⧫",Jmt="▪",evt="▴",tvt="▾",nvt="◂",rvt="▸",ivt="␣",ovt="▒",avt="░",svt="▓",lvt="█",uvt="=⃥",cvt="≡⃥",dvt="⫭",hvt="⌐",pvt="𝔹",fvt="𝕓",gvt="⊥",mvt="⊥",vvt="⋈",yvt="⧉",bvt="┐",wvt="╕",Cvt="╖",Ovt="╗",xvt="┌",Svt="╒",Avt="╓",Ivt="╔",kvt="─",Evt="═",_vt="┬",Tvt="╤",Pvt="╥",Dvt="╦",Rvt="┴",$vt="╧",Mvt="╨",Lvt="╩",Bvt="⊟",Fvt="⊞",Nvt="⊠",Vvt="┘",jvt="╛",Wvt="╜",Hvt="╝",zvt="└",Zvt="╘",Gvt="╙",Qvt="╚",Uvt="│",Xvt="║",Yvt="┼",Kvt="╪",qvt="╫",Jvt="╬",e0t="┤",t0t="╡",n0t="╢",r0t="╣",i0t="├",o0t="╞",a0t="╟",s0t="╠",l0t="‵",u0t="˘",c0t="˘",d0t="¦",h0t="𝒷",p0t="ℬ",f0t="⁏",g0t="∽",m0t="⋍",v0t="⧅",y0t="\\",b0t="⟈",w0t="•",C0t="•",O0t="≎",x0t="⪮",S0t="≏",A0t="≎",I0t="≏",k0t="Ć",E0t="ć",_0t="⩄",T0t="⩉",P0t="⩋",D0t="∩",R0t="⋒",$0t="⩇",M0t="⩀",L0t="ⅅ",B0t="∩︀",F0t="⁁",N0t="ˇ",V0t="ℭ",j0t="⩍",W0t="Č",H0t="č",z0t="Ç",Z0t="ç",G0t="Ĉ",Q0t="ĉ",U0t="∰",X0t="⩌",Y0t="⩐",K0t="Ċ",q0t="ċ",J0t="¸",eyt="¸",tyt="⦲",nyt="¢",ryt="·",iyt="·",oyt="𝔠",ayt="ℭ",syt="Ч",lyt="ч",uyt="✓",cyt="✓",dyt="Χ",hyt="χ",pyt="ˆ",fyt="≗",gyt="↺",myt="↻",vyt="⊛",yyt="⊚",byt="⊝",wyt="⊙",Cyt="®",Oyt="Ⓢ",xyt="⊖",Syt="⊕",Ayt="⊗",Iyt="○",kyt="⧃",Eyt="≗",_yt="⨐",Tyt="⫯",Pyt="⧂",Dyt="∲",Ryt="”",$yt="’",Myt="♣",Lyt="♣",Byt=":",Fyt="∷",Nyt="⩴",Vyt="≔",jyt="≔",Wyt=",",Hyt="@",zyt="∁",Zyt="∘",Gyt="∁",Qyt="ℂ",Uyt="≅",Xyt="⩭",Yyt="≡",Kyt="∮",qyt="∯",Jyt="∮",ebt="𝕔",tbt="ℂ",nbt="∐",rbt="∐",ibt="©",obt="©",abt="℗",sbt="∳",lbt="↵",ubt="✗",cbt="⨯",dbt="𝒞",hbt="𝒸",pbt="⫏",fbt="⫑",gbt="⫐",mbt="⫒",vbt="⋯",ybt="⤸",bbt="⤵",wbt="⋞",Cbt="⋟",Obt="↶",xbt="⤽",Sbt="⩈",Abt="⩆",Ibt="≍",kbt="∪",Ebt="⋓",_bt="⩊",Tbt="⊍",Pbt="⩅",Dbt="∪︀",Rbt="↷",$bt="⤼",Mbt="⋞",Lbt="⋟",Bbt="⋎",Fbt="⋏",Nbt="¤",Vbt="↶",jbt="↷",Wbt="⋎",Hbt="⋏",zbt="∲",Zbt="∱",Gbt="⌭",Qbt="†",Ubt="‡",Xbt="ℸ",Ybt="↓",Kbt="↡",qbt="⇓",Jbt="‐",e1t="⫤",t1t="⊣",n1t="⤏",r1t="˝",i1t="Ď",o1t="ď",a1t="Д",s1t="д",l1t="‡",u1t="⇊",c1t="ⅅ",d1t="ⅆ",h1t="⤑",p1t="⩷",f1t="°",g1t="∇",m1t="Δ",v1t="δ",y1t="⦱",b1t="⥿",w1t="𝔇",C1t="𝔡",O1t="⥥",x1t="⇃",S1t="⇂",A1t="´",I1t="˙",k1t="˝",E1t="`",_1t="˜",T1t="⋄",P1t="⋄",D1t="⋄",R1t="♦",$1t="♦",M1t="¨",L1t="ⅆ",B1t="ϝ",F1t="⋲",N1t="÷",V1t="÷",j1t="⋇",W1t="⋇",H1t="Ђ",z1t="ђ",Z1t="⌞",G1t="⌍",Q1t="$",U1t="𝔻",X1t="𝕕",Y1t="¨",K1t="˙",q1t="⃜",J1t="≐",ewt="≑",twt="≐",nwt="∸",rwt="∔",iwt="⊡",owt="⌆",awt="∯",swt="¨",lwt="⇓",uwt="⇐",cwt="⇔",dwt="⫤",hwt="⟸",pwt="⟺",fwt="⟹",gwt="⇒",mwt="⊨",vwt="⇑",ywt="⇕",bwt="∥",wwt="⤓",Cwt="↓",Owt="↓",xwt="⇓",Swt="⇵",Awt="̑",Iwt="⇊",kwt="⇃",Ewt="⇂",_wt="⥐",Twt="⥞",Pwt="⥖",Dwt="↽",Rwt="⥟",$wt="⥗",Mwt="⇁",Lwt="↧",Bwt="⊤",Fwt="⤐",Nwt="⌟",Vwt="⌌",jwt="𝒟",Wwt="𝒹",Hwt="Ѕ",zwt="ѕ",Zwt="⧶",Gwt="Đ",Qwt="đ",Uwt="⋱",Xwt="▿",Ywt="▾",Kwt="⇵",qwt="⥯",Jwt="⦦",eCt="Џ",tCt="џ",nCt="⟿",rCt="É",iCt="é",oCt="⩮",aCt="Ě",sCt="ě",lCt="Ê",uCt="ê",cCt="≖",dCt="≕",hCt="Э",pCt="э",fCt="⩷",gCt="Ė",mCt="ė",vCt="≑",yCt="ⅇ",bCt="≒",wCt="𝔈",CCt="𝔢",OCt="⪚",xCt="È",SCt="è",ACt="⪖",ICt="⪘",kCt="⪙",ECt="∈",_Ct="⏧",TCt="ℓ",PCt="⪕",DCt="⪗",RCt="Ē",$Ct="ē",MCt="∅",LCt="∅",BCt="◻",FCt="∅",NCt="▫",VCt=" ",jCt=" ",WCt=" ",HCt="Ŋ",zCt="ŋ",ZCt=" ",GCt="Ę",QCt="ę",UCt="𝔼",XCt="𝕖",YCt="⋕",KCt="⧣",qCt="⩱",JCt="ε",eOt="Ε",tOt="ε",nOt="ϵ",rOt="≖",iOt="≕",oOt="≂",aOt="⪖",sOt="⪕",lOt="⩵",uOt="=",cOt="≂",dOt="≟",hOt="⇌",pOt="≡",fOt="⩸",gOt="⧥",mOt="⥱",vOt="≓",yOt="ℯ",bOt="ℰ",wOt="≐",COt="⩳",OOt="≂",xOt="Η",SOt="η",AOt="Ð",IOt="ð",kOt="Ë",EOt="ë",_Ot="€",TOt="!",POt="∃",DOt="∃",ROt="ℰ",$Ot="ⅇ",MOt="ⅇ",LOt="≒",BOt="Ф",FOt="ф",NOt="♀",VOt="ffi",jOt="ff",WOt="ffl",HOt="𝔉",zOt="𝔣",ZOt="fi",GOt="◼",QOt="▪",UOt="fj",XOt="♭",YOt="fl",KOt="▱",qOt="ƒ",JOt="𝔽",ext="𝕗",txt="∀",nxt="∀",rxt="⋔",ixt="⫙",oxt="ℱ",axt="⨍",sxt="½",lxt="⅓",uxt="¼",cxt="⅕",dxt="⅙",hxt="⅛",pxt="⅔",fxt="⅖",gxt="¾",mxt="⅗",vxt="⅜",yxt="⅘",bxt="⅚",wxt="⅝",Cxt="⅞",Oxt="⁄",xxt="⌢",Sxt="𝒻",Axt="ℱ",Ixt="ǵ",kxt="Γ",Ext="γ",_xt="Ϝ",Txt="ϝ",Pxt="⪆",Dxt="Ğ",Rxt="ğ",$xt="Ģ",Mxt="Ĝ",Lxt="ĝ",Bxt="Г",Fxt="г",Nxt="Ġ",Vxt="ġ",jxt="≥",Wxt="≧",Hxt="⪌",zxt="⋛",Zxt="≥",Gxt="≧",Qxt="⩾",Uxt="⪩",Xxt="⩾",Yxt="⪀",Kxt="⪂",qxt="⪄",Jxt="⋛︀",eSt="⪔",tSt="𝔊",nSt="𝔤",rSt="≫",iSt="⋙",oSt="⋙",aSt="ℷ",sSt="Ѓ",lSt="ѓ",uSt="⪥",cSt="≷",dSt="⪒",hSt="⪤",pSt="⪊",fSt="⪊",gSt="⪈",mSt="≩",vSt="⪈",ySt="≩",bSt="⋧",wSt="𝔾",CSt="𝕘",OSt="`",xSt="≥",SSt="⋛",ASt="≧",ISt="⪢",kSt="≷",ESt="⩾",_St="≳",TSt="𝒢",PSt="ℊ",DSt="≳",RSt="⪎",$St="⪐",MSt="⪧",LSt="⩺",BSt=">",FSt=">",NSt="≫",VSt="⋗",jSt="⦕",WSt="⩼",HSt="⪆",zSt="⥸",ZSt="⋗",GSt="⋛",QSt="⪌",USt="≷",XSt="≳",YSt="≩︀",KSt="≩︀",qSt="ˇ",JSt=" ",eAt="½",tAt="ℋ",nAt="Ъ",rAt="ъ",iAt="⥈",oAt="↔",aAt="⇔",sAt="↭",lAt="^",uAt="ℏ",cAt="Ĥ",dAt="ĥ",hAt="♥",pAt="♥",fAt="…",gAt="⊹",mAt="𝔥",vAt="ℌ",yAt="ℋ",bAt="⤥",wAt="⤦",CAt="⇿",OAt="∻",xAt="↩",SAt="↪",AAt="𝕙",IAt="ℍ",kAt="―",EAt="─",_At="𝒽",TAt="ℋ",PAt="ℏ",DAt="Ħ",RAt="ħ",$At="≎",MAt="≏",LAt="⁃",BAt="‐",FAt="Í",NAt="í",VAt="",jAt="Î",WAt="î",HAt="И",zAt="и",ZAt="İ",GAt="Е",QAt="е",UAt="¡",XAt="⇔",YAt="𝔦",KAt="ℑ",qAt="Ì",JAt="ì",eIt="ⅈ",tIt="⨌",nIt="∭",rIt="⧜",iIt="℩",oIt="IJ",aIt="ij",sIt="Ī",lIt="ī",uIt="ℑ",cIt="ⅈ",dIt="ℐ",hIt="ℑ",pIt="ı",fIt="ℑ",gIt="⊷",mIt="Ƶ",vIt="⇒",yIt="℅",bIt="∞",wIt="⧝",CIt="ı",OIt="⊺",xIt="∫",SIt="∬",AIt="ℤ",IIt="∫",kIt="⊺",EIt="⋂",_It="⨗",TIt="⨼",PIt="",DIt="",RIt="Ё",$It="ё",MIt="Į",LIt="į",BIt="𝕀",FIt="𝕚",NIt="Ι",VIt="ι",jIt="⨼",WIt="¿",HIt="𝒾",zIt="ℐ",ZIt="∈",GIt="⋵",QIt="⋹",UIt="⋴",XIt="⋳",YIt="∈",KIt="",qIt="Ĩ",JIt="ĩ",ekt="І",tkt="і",nkt="Ï",rkt="ï",ikt="Ĵ",okt="ĵ",akt="Й",skt="й",lkt="𝔍",ukt="𝔧",ckt="ȷ",dkt="𝕁",hkt="𝕛",pkt="𝒥",fkt="𝒿",gkt="Ј",mkt="ј",vkt="Є",ykt="є",bkt="Κ",wkt="κ",Ckt="ϰ",Okt="Ķ",xkt="ķ",Skt="К",Akt="к",Ikt="𝔎",kkt="𝔨",Ekt="ĸ",_kt="Х",Tkt="х",Pkt="Ќ",Dkt="ќ",Rkt="𝕂",$kt="𝕜",Mkt="𝒦",Lkt="𝓀",Bkt="⇚",Fkt="Ĺ",Nkt="ĺ",Vkt="⦴",jkt="ℒ",Wkt="Λ",Hkt="λ",zkt="⟨",Zkt="⟪",Gkt="⦑",Qkt="⟨",Ukt="⪅",Xkt="ℒ",Ykt="«",Kkt="⇤",qkt="⤟",Jkt="←",e2t="↞",t2t="⇐",n2t="⤝",r2t="↩",i2t="↫",o2t="⤹",a2t="⥳",s2t="↢",l2t="⤙",u2t="⤛",c2t="⪫",d2t="⪭",h2t="⪭︀",p2t="⤌",f2t="⤎",g2t="❲",m2t="{",v2t="[",y2t="⦋",b2t="⦏",w2t="⦍",C2t="Ľ",O2t="ľ",x2t="Ļ",S2t="ļ",A2t="⌈",I2t="{",k2t="Л",E2t="л",_2t="⤶",T2t="“",P2t="„",D2t="⥧",R2t="⥋",$2t="↲",M2t="≤",L2t="≦",B2t="⟨",F2t="⇤",N2t="←",V2t="←",j2t="⇐",W2t="⇆",H2t="↢",z2t="⌈",Z2t="⟦",G2t="⥡",Q2t="⥙",U2t="⇃",X2t="⌊",Y2t="↽",K2t="↼",q2t="⇇",J2t="↔",eEt="↔",tEt="⇔",nEt="⇆",rEt="⇋",iEt="↭",oEt="⥎",aEt="↤",sEt="⊣",lEt="⥚",uEt="⋋",cEt="⧏",dEt="⊲",hEt="⊴",pEt="⥑",fEt="⥠",gEt="⥘",mEt="↿",vEt="⥒",yEt="↼",bEt="⪋",wEt="⋚",CEt="≤",OEt="≦",xEt="⩽",SEt="⪨",AEt="⩽",IEt="⩿",kEt="⪁",EEt="⪃",_Et="⋚︀",TEt="⪓",PEt="⪅",DEt="⋖",REt="⋚",$Et="⪋",MEt="⋚",LEt="≦",BEt="≶",FEt="≶",NEt="⪡",VEt="≲",jEt="⩽",WEt="≲",HEt="⥼",zEt="⌊",ZEt="𝔏",GEt="𝔩",QEt="≶",UEt="⪑",XEt="⥢",YEt="↽",KEt="↼",qEt="⥪",JEt="▄",e_t="Љ",t_t="љ",n_t="⇇",r_t="≪",i_t="⋘",o_t="⌞",a_t="⇚",s_t="⥫",l_t="◺",u_t="Ŀ",c_t="ŀ",d_t="⎰",h_t="⎰",p_t="⪉",f_t="⪉",g_t="⪇",m_t="≨",v_t="⪇",y_t="≨",b_t="⋦",w_t="⟬",C_t="⇽",O_t="⟦",x_t="⟵",S_t="⟵",A_t="⟸",I_t="⟷",k_t="⟷",E_t="⟺",__t="⟼",T_t="⟶",P_t="⟶",D_t="⟹",R_t="↫",$_t="↬",M_t="⦅",L_t="𝕃",B_t="𝕝",F_t="⨭",N_t="⨴",V_t="∗",j_t="_",W_t="↙",H_t="↘",z_t="◊",Z_t="◊",G_t="⧫",Q_t="(",U_t="⦓",X_t="⇆",Y_t="⌟",K_t="⇋",q_t="⥭",J_t="",eTt="⊿",tTt="‹",nTt="𝓁",rTt="ℒ",iTt="↰",oTt="↰",aTt="≲",sTt="⪍",lTt="⪏",uTt="[",cTt="‘",dTt="‚",hTt="Ł",pTt="ł",fTt="⪦",gTt="⩹",mTt="<",vTt="<",yTt="≪",bTt="⋖",wTt="⋋",CTt="⋉",OTt="⥶",xTt="⩻",STt="◃",ATt="⊴",ITt="◂",kTt="⦖",ETt="⥊",_Tt="⥦",TTt="≨︀",PTt="≨︀",DTt="¯",RTt="♂",$Tt="✠",MTt="✠",LTt="↦",BTt="↦",FTt="↧",NTt="↤",VTt="↥",jTt="▮",WTt="⨩",HTt="М",zTt="м",ZTt="—",GTt="∺",QTt="∡",UTt=" ",XTt="ℳ",YTt="𝔐",KTt="𝔪",qTt="℧",JTt="µ",ePt="*",tPt="⫰",nPt="∣",rPt="·",iPt="⊟",oPt="−",aPt="∸",sPt="⨪",lPt="∓",uPt="⫛",cPt="…",dPt="∓",hPt="⊧",pPt="𝕄",fPt="𝕞",gPt="∓",mPt="𝓂",vPt="ℳ",yPt="∾",bPt="Μ",wPt="μ",CPt="⊸",OPt="⊸",xPt="∇",SPt="Ń",APt="ń",IPt="∠⃒",kPt="≉",EPt="⩰̸",_Pt="≋̸",TPt="ʼn",PPt="≉",DPt="♮",RPt="ℕ",$Pt="♮",MPt=" ",LPt="≎̸",BPt="≏̸",FPt="⩃",NPt="Ň",VPt="ň",jPt="Ņ",WPt="ņ",HPt="≇",zPt="⩭̸",ZPt="⩂",GPt="Н",QPt="н",UPt="–",XPt="⤤",YPt="↗",KPt="⇗",qPt="↗",JPt="≠",eDt="≐̸",tDt="",nDt="",rDt="",iDt="",oDt="≢",aDt="⤨",sDt="≂̸",lDt="≫",uDt="≪",cDt=`
|
|
`,dDt="∄",hDt="∄",pDt="𝔑",fDt="𝔫",gDt="≧̸",mDt="≱",vDt="≱",yDt="≧̸",bDt="⩾̸",wDt="⩾̸",CDt="⋙̸",ODt="≵",xDt="≫⃒",SDt="≯",ADt="≯",IDt="≫̸",kDt="↮",EDt="⇎",_Dt="⫲",TDt="∋",PDt="⋼",DDt="⋺",RDt="∋",$Dt="Њ",MDt="њ",LDt="↚",BDt="⇍",FDt="‥",NDt="≦̸",VDt="≰",jDt="↚",WDt="⇍",HDt="↮",zDt="⇎",ZDt="≰",GDt="≦̸",QDt="⩽̸",UDt="⩽̸",XDt="≮",YDt="⋘̸",KDt="≴",qDt="≪⃒",JDt="≮",eRt="⋪",tRt="⋬",nRt="≪̸",rRt="∤",iRt="",oRt=" ",aRt="𝕟",sRt="ℕ",lRt="⫬",uRt="¬",cRt="≢",dRt="≭",hRt="∦",pRt="∉",fRt="≠",gRt="≂̸",mRt="∄",vRt="≯",yRt="≱",bRt="≧̸",wRt="≫̸",CRt="≹",ORt="⩾̸",xRt="≵",SRt="≎̸",ARt="≏̸",IRt="∉",kRt="⋵̸",ERt="⋹̸",_Rt="∉",TRt="⋷",PRt="⋶",DRt="⧏̸",RRt="⋪",$Rt="⋬",MRt="≮",LRt="≰",BRt="≸",FRt="≪̸",NRt="⩽̸",VRt="≴",jRt="⪢̸",WRt="⪡̸",HRt="∌",zRt="∌",ZRt="⋾",GRt="⋽",QRt="⊀",URt="⪯̸",XRt="⋠",YRt="∌",KRt="⧐̸",qRt="⋫",JRt="⋭",e3t="⊏̸",t3t="⋢",n3t="⊐̸",r3t="⋣",i3t="⊂⃒",o3t="⊈",a3t="⊁",s3t="⪰̸",l3t="⋡",u3t="≿̸",c3t="⊃⃒",d3t="⊉",h3t="≁",p3t="≄",f3t="≇",g3t="≉",m3t="∤",v3t="∦",y3t="∦",b3t="⫽⃥",w3t="∂̸",C3t="⨔",O3t="⊀",x3t="⋠",S3t="⊀",A3t="⪯̸",I3t="⪯̸",k3t="⤳̸",E3t="↛",_3t="⇏",T3t="↝̸",P3t="↛",D3t="⇏",R3t="⋫",$3t="⋭",M3t="⊁",L3t="⋡",B3t="⪰̸",F3t="𝒩",N3t="𝓃",V3t="∤",j3t="∦",W3t="≁",H3t="≄",z3t="≄",Z3t="∤",G3t="∦",Q3t="⋢",U3t="⋣",X3t="⊄",Y3t="⫅̸",K3t="⊈",q3t="⊂⃒",J3t="⊈",e$t="⫅̸",t$t="⊁",n$t="⪰̸",r$t="⊅",i$t="⫆̸",o$t="⊉",a$t="⊃⃒",s$t="⊉",l$t="⫆̸",u$t="≹",c$t="Ñ",d$t="ñ",h$t="≸",p$t="⋪",f$t="⋬",g$t="⋫",m$t="⋭",v$t="Ν",y$t="ν",b$t="#",w$t="№",C$t=" ",O$t="≍⃒",x$t="⊬",S$t="⊭",A$t="⊮",I$t="⊯",k$t="≥⃒",E$t=">⃒",_$t="⤄",T$t="⧞",P$t="⤂",D$t="≤⃒",R$t="<⃒",$$t="⊴⃒",M$t="⤃",L$t="⊵⃒",B$t="∼⃒",F$t="⤣",N$t="↖",V$t="⇖",j$t="↖",W$t="⤧",H$t="Ó",z$t="ó",Z$t="⊛",G$t="Ô",Q$t="ô",U$t="⊚",X$t="О",Y$t="о",K$t="⊝",q$t="Ő",J$t="ő",e5t="⨸",t5t="⊙",n5t="⦼",r5t="Œ",i5t="œ",o5t="⦿",a5t="𝔒",s5t="𝔬",l5t="˛",u5t="Ò",c5t="ò",d5t="⧁",h5t="⦵",p5t="Ω",f5t="∮",g5t="↺",m5t="⦾",v5t="⦻",y5t="‾",b5t="⧀",w5t="Ō",C5t="ō",O5t="Ω",x5t="ω",S5t="Ο",A5t="ο",I5t="⦶",k5t="⊖",E5t="𝕆",_5t="𝕠",T5t="⦷",P5t="“",D5t="‘",R5t="⦹",$5t="⊕",M5t="↻",L5t="⩔",B5t="∨",F5t="⩝",N5t="ℴ",V5t="ℴ",j5t="ª",W5t="º",H5t="⊶",z5t="⩖",Z5t="⩗",G5t="⩛",Q5t="Ⓢ",U5t="𝒪",X5t="ℴ",Y5t="Ø",K5t="ø",q5t="⊘",J5t="Õ",e4t="õ",t4t="⨶",n4t="⨷",r4t="⊗",i4t="Ö",o4t="ö",a4t="⌽",s4t="‾",l4t="⏞",u4t="⎴",c4t="⏜",d4t="¶",h4t="∥",p4t="∥",f4t="⫳",g4t="⫽",m4t="∂",v4t="∂",y4t="П",b4t="п",w4t="%",C4t=".",O4t="‰",x4t="⊥",S4t="‱",A4t="𝔓",I4t="𝔭",k4t="Φ",E4t="φ",_4t="ϕ",T4t="ℳ",P4t="☎",D4t="Π",R4t="π",$4t="⋔",M4t="ϖ",L4t="ℏ",B4t="ℎ",F4t="ℏ",N4t="⨣",V4t="⊞",j4t="⨢",W4t="+",H4t="∔",z4t="⨥",Z4t="⩲",G4t="±",Q4t="±",U4t="⨦",X4t="⨧",Y4t="±",K4t="ℌ",q4t="⨕",J4t="𝕡",eMt="ℙ",tMt="£",nMt="⪷",rMt="⪻",iMt="≺",oMt="≼",aMt="⪷",sMt="≺",lMt="≼",uMt="≺",cMt="⪯",dMt="≼",hMt="≾",pMt="⪯",fMt="⪹",gMt="⪵",mMt="⋨",vMt="⪯",yMt="⪳",bMt="≾",wMt="′",CMt="″",OMt="ℙ",xMt="⪹",SMt="⪵",AMt="⋨",IMt="∏",kMt="∏",EMt="⌮",_Mt="⌒",TMt="⌓",PMt="∝",DMt="∝",RMt="∷",$Mt="∝",MMt="≾",LMt="⊰",BMt="𝒫",FMt="𝓅",NMt="Ψ",VMt="ψ",jMt=" ",WMt="𝔔",HMt="𝔮",zMt="⨌",ZMt="𝕢",GMt="ℚ",QMt="⁗",UMt="𝒬",XMt="𝓆",YMt="ℍ",KMt="⨖",qMt="?",JMt="≟",eLt='"',tLt='"',nLt="⇛",rLt="∽̱",iLt="Ŕ",oLt="ŕ",aLt="√",sLt="⦳",lLt="⟩",uLt="⟫",cLt="⦒",dLt="⦥",hLt="⟩",pLt="»",fLt="⥵",gLt="⇥",mLt="⤠",vLt="⤳",yLt="→",bLt="↠",wLt="⇒",CLt="⤞",OLt="↪",xLt="↬",SLt="⥅",ALt="⥴",ILt="⤖",kLt="↣",ELt="↝",_Lt="⤚",TLt="⤜",PLt="∶",DLt="ℚ",RLt="⤍",$Lt="⤏",MLt="⤐",LLt="❳",BLt="}",FLt="]",NLt="⦌",VLt="⦎",jLt="⦐",WLt="Ř",HLt="ř",zLt="Ŗ",ZLt="ŗ",GLt="⌉",QLt="}",ULt="Р",XLt="р",YLt="⤷",KLt="⥩",qLt="”",JLt="”",eBt="↳",tBt="ℜ",nBt="ℛ",rBt="ℜ",iBt="ℝ",oBt="ℜ",aBt="▭",sBt="®",lBt="®",uBt="∋",cBt="⇋",dBt="⥯",hBt="⥽",pBt="⌋",fBt="𝔯",gBt="ℜ",mBt="⥤",vBt="⇁",yBt="⇀",bBt="⥬",wBt="Ρ",CBt="ρ",OBt="ϱ",xBt="⟩",SBt="⇥",ABt="→",IBt="→",kBt="⇒",EBt="⇄",_Bt="↣",TBt="⌉",PBt="⟧",DBt="⥝",RBt="⥕",$Bt="⇂",MBt="⌋",LBt="⇁",BBt="⇀",FBt="⇄",NBt="⇌",VBt="⇉",jBt="↝",WBt="↦",HBt="⊢",zBt="⥛",ZBt="⋌",GBt="⧐",QBt="⊳",UBt="⊵",XBt="⥏",YBt="⥜",KBt="⥔",qBt="↾",JBt="⥓",e9t="⇀",t9t="˚",n9t="≓",r9t="⇄",i9t="⇌",o9t="",a9t="⎱",s9t="⎱",l9t="⫮",u9t="⟭",c9t="⇾",d9t="⟧",h9t="⦆",p9t="𝕣",f9t="ℝ",g9t="⨮",m9t="⨵",v9t="⥰",y9t=")",b9t="⦔",w9t="⨒",C9t="⇉",O9t="⇛",x9t="›",S9t="𝓇",A9t="ℛ",I9t="↱",k9t="↱",E9t="]",_9t="’",T9t="’",P9t="⋌",D9t="⋊",R9t="▹",$9t="⊵",M9t="▸",L9t="⧎",B9t="⧴",F9t="⥨",N9t="℞",V9t="Ś",j9t="ś",W9t="‚",H9t="⪸",z9t="Š",Z9t="š",G9t="⪼",Q9t="≻",U9t="≽",X9t="⪰",Y9t="⪴",K9t="Ş",q9t="ş",J9t="Ŝ",eFt="ŝ",tFt="⪺",nFt="⪶",rFt="⋩",iFt="⨓",oFt="≿",aFt="С",sFt="с",lFt="⊡",uFt="⋅",cFt="⩦",dFt="⤥",hFt="↘",pFt="⇘",fFt="↘",gFt="§",mFt=";",vFt="⤩",yFt="∖",bFt="∖",wFt="✶",CFt="𝔖",OFt="𝔰",xFt="⌢",SFt="♯",AFt="Щ",IFt="щ",kFt="Ш",EFt="ш",_Ft="↓",TFt="←",PFt="∣",DFt="∥",RFt="→",$Ft="↑",MFt="",LFt="Σ",BFt="σ",FFt="ς",NFt="ς",VFt="∼",jFt="⩪",WFt="≃",HFt="≃",zFt="⪞",ZFt="⪠",GFt="⪝",QFt="⪟",UFt="≆",XFt="⨤",YFt="⥲",KFt="←",qFt="∘",JFt="∖",eNt="⨳",tNt="⧤",nNt="∣",rNt="⌣",iNt="⪪",oNt="⪬",aNt="⪬︀",sNt="Ь",lNt="ь",uNt="⌿",cNt="⧄",dNt="/",hNt="𝕊",pNt="𝕤",fNt="♠",gNt="♠",mNt="∥",vNt="⊓",yNt="⊓︀",bNt="⊔",wNt="⊔︀",CNt="√",ONt="⊏",xNt="⊑",SNt="⊏",ANt="⊑",INt="⊐",kNt="⊒",ENt="⊐",_Nt="⊒",TNt="□",PNt="□",DNt="⊓",RNt="⊏",$Nt="⊑",MNt="⊐",LNt="⊒",BNt="⊔",FNt="▪",NNt="□",VNt="▪",jNt="→",WNt="𝒮",HNt="𝓈",zNt="∖",ZNt="⌣",GNt="⋆",QNt="⋆",UNt="☆",XNt="★",YNt="ϵ",KNt="ϕ",qNt="¯",JNt="⊂",e6t="⋐",t6t="⪽",n6t="⫅",r6t="⊆",i6t="⫃",o6t="⫁",a6t="⫋",s6t="⊊",l6t="⪿",u6t="⥹",c6t="⊂",d6t="⋐",h6t="⊆",p6t="⫅",f6t="⊆",g6t="⊊",m6t="⫋",v6t="⫇",y6t="⫕",b6t="⫓",w6t="⪸",C6t="≻",O6t="≽",x6t="≻",S6t="⪰",A6t="≽",I6t="≿",k6t="⪰",E6t="⪺",_6t="⪶",T6t="⋩",P6t="≿",D6t="∋",R6t="∑",$6t="∑",M6t="♪",L6t="¹",B6t="²",F6t="³",N6t="⊃",V6t="⋑",j6t="⪾",W6t="⫘",H6t="⫆",z6t="⊇",Z6t="⫄",G6t="⊃",Q6t="⊇",U6t="⟉",X6t="⫗",Y6t="⥻",K6t="⫂",q6t="⫌",J6t="⊋",e8t="⫀",t8t="⊃",n8t="⋑",r8t="⊇",i8t="⫆",o8t="⊋",a8t="⫌",s8t="⫈",l8t="⫔",u8t="⫖",c8t="⤦",d8t="↙",h8t="⇙",p8t="↙",f8t="⤪",g8t="ß",m8t=" ",v8t="⌖",y8t="Τ",b8t="τ",w8t="⎴",C8t="Ť",O8t="ť",x8t="Ţ",S8t="ţ",A8t="Т",I8t="т",k8t="⃛",E8t="⌕",_8t="𝔗",T8t="𝔱",P8t="∴",D8t="∴",R8t="∴",$8t="Θ",M8t="θ",L8t="ϑ",B8t="ϑ",F8t="≈",N8t="∼",V8t=" ",j8t=" ",W8t=" ",H8t="≈",z8t="∼",Z8t="Þ",G8t="þ",Q8t="˜",U8t="∼",X8t="≃",Y8t="≅",K8t="≈",q8t="⨱",J8t="⊠",eVt="×",tVt="⨰",nVt="∭",rVt="⤨",iVt="⌶",oVt="⫱",aVt="⊤",sVt="𝕋",lVt="𝕥",uVt="⫚",cVt="⤩",dVt="‴",hVt="™",pVt="™",fVt="▵",gVt="▿",mVt="◃",vVt="⊴",yVt="≜",bVt="▹",wVt="⊵",CVt="◬",OVt="≜",xVt="⨺",SVt="⃛",AVt="⨹",IVt="⧍",kVt="⨻",EVt="⏢",_Vt="𝒯",TVt="𝓉",PVt="Ц",DVt="ц",RVt="Ћ",$Vt="ћ",MVt="Ŧ",LVt="ŧ",BVt="≬",FVt="↞",NVt="↠",VVt="Ú",jVt="ú",WVt="↑",HVt="↟",zVt="⇑",ZVt="⥉",GVt="Ў",QVt="ў",UVt="Ŭ",XVt="ŭ",YVt="Û",KVt="û",qVt="У",JVt="у",ejt="⇅",tjt="Ű",njt="ű",rjt="⥮",ijt="⥾",ojt="𝔘",ajt="𝔲",sjt="Ù",ljt="ù",ujt="⥣",cjt="↿",djt="↾",hjt="▀",pjt="⌜",fjt="⌜",gjt="⌏",mjt="◸",vjt="Ū",yjt="ū",bjt="¨",wjt="_",Cjt="⏟",Ojt="⎵",xjt="⏝",Sjt="⋃",Ajt="⊎",Ijt="Ų",kjt="ų",Ejt="𝕌",_jt="𝕦",Tjt="⤒",Pjt="↑",Djt="↑",Rjt="⇑",$jt="⇅",Mjt="↕",Ljt="↕",Bjt="⇕",Fjt="⥮",Njt="↿",Vjt="↾",jjt="⊎",Wjt="↖",Hjt="↗",zjt="υ",Zjt="ϒ",Gjt="ϒ",Qjt="Υ",Ujt="υ",Xjt="↥",Yjt="⊥",Kjt="⇈",qjt="⌝",Jjt="⌝",e7t="⌎",t7t="Ů",n7t="ů",r7t="◹",i7t="𝒰",o7t="𝓊",a7t="⋰",s7t="Ũ",l7t="ũ",u7t="▵",c7t="▴",d7t="⇈",h7t="Ü",p7t="ü",f7t="⦧",g7t="⦜",m7t="ϵ",v7t="ϰ",y7t="∅",b7t="ϕ",w7t="ϖ",C7t="∝",O7t="↕",x7t="⇕",S7t="ϱ",A7t="ς",I7t="⊊︀",k7t="⫋︀",E7t="⊋︀",_7t="⫌︀",T7t="ϑ",P7t="⊲",D7t="⊳",R7t="⫨",$7t="⫫",M7t="⫩",L7t="В",B7t="в",F7t="⊢",N7t="⊨",V7t="⊩",j7t="⊫",W7t="⫦",H7t="⊻",z7t="∨",Z7t="⋁",G7t="≚",Q7t="⋮",U7t="|",X7t="‖",Y7t="|",K7t="‖",q7t="∣",J7t="|",eWt="❘",tWt="≀",nWt=" ",rWt="𝔙",iWt="𝔳",oWt="⊲",aWt="⊂⃒",sWt="⊃⃒",lWt="𝕍",uWt="𝕧",cWt="∝",dWt="⊳",hWt="𝒱",pWt="𝓋",fWt="⫋︀",gWt="⊊︀",mWt="⫌︀",vWt="⊋︀",yWt="⊪",bWt="⦚",wWt="Ŵ",CWt="ŵ",OWt="⩟",xWt="∧",SWt="⋀",AWt="≙",IWt="℘",kWt="𝔚",EWt="𝔴",_Wt="𝕎",TWt="𝕨",PWt="℘",DWt="≀",RWt="≀",$Wt="𝒲",MWt="𝓌",LWt="⋂",BWt="◯",FWt="⋃",NWt="▽",VWt="𝔛",jWt="𝔵",WWt="⟷",HWt="⟺",zWt="Ξ",ZWt="ξ",GWt="⟵",QWt="⟸",UWt="⟼",XWt="⋻",YWt="⨀",KWt="𝕏",qWt="𝕩",JWt="⨁",eHt="⨂",tHt="⟶",nHt="⟹",rHt="𝒳",iHt="𝓍",oHt="⨆",aHt="⨄",sHt="△",lHt="⋁",uHt="⋀",cHt="Ý",dHt="ý",hHt="Я",pHt="я",fHt="Ŷ",gHt="ŷ",mHt="Ы",vHt="ы",yHt="¥",bHt="𝔜",wHt="𝔶",CHt="Ї",OHt="ї",xHt="𝕐",SHt="𝕪",AHt="𝒴",IHt="𝓎",kHt="Ю",EHt="ю",_Ht="ÿ",THt="Ÿ",PHt="Ź",DHt="ź",RHt="Ž",$Ht="ž",MHt="З",LHt="з",BHt="Ż",FHt="ż",NHt="ℨ",VHt="",jHt="Ζ",WHt="ζ",HHt="𝔷",zHt="ℨ",ZHt="Ж",GHt="ж",QHt="⇝",UHt="𝕫",XHt="ℤ",YHt="𝒵",KHt="𝓏",qHt="",JHt="",ezt={Aacute:Bft,aacute:Fft,Abreve:Nft,abreve:Vft,ac:jft,acd:Wft,acE:Hft,Acirc:zft,acirc:Zft,acute:Gft,Acy:Qft,acy:Uft,AElig:Xft,aelig:Yft,af:Kft,Afr:qft,afr:Jft,Agrave:egt,agrave:tgt,alefsym:ngt,aleph:rgt,Alpha:igt,alpha:ogt,Amacr:agt,amacr:sgt,amalg:lgt,amp:ugt,AMP:cgt,andand:dgt,And:hgt,and:pgt,andd:fgt,andslope:ggt,andv:mgt,ang:vgt,ange:ygt,angle:bgt,angmsdaa:wgt,angmsdab:Cgt,angmsdac:Ogt,angmsdad:xgt,angmsdae:Sgt,angmsdaf:Agt,angmsdag:Igt,angmsdah:kgt,angmsd:Egt,angrt:_gt,angrtvb:Tgt,angrtvbd:Pgt,angsph:Dgt,angst:Rgt,angzarr:$gt,Aogon:Mgt,aogon:Lgt,Aopf:Bgt,aopf:Fgt,apacir:Ngt,ap:Vgt,apE:jgt,ape:Wgt,apid:Hgt,apos:zgt,ApplyFunction:Zgt,approx:Ggt,approxeq:Qgt,Aring:Ugt,aring:Xgt,Ascr:Ygt,ascr:Kgt,Assign:qgt,ast:Jgt,asymp:emt,asympeq:tmt,Atilde:nmt,atilde:rmt,Auml:imt,auml:omt,awconint:amt,awint:smt,backcong:lmt,backepsilon:umt,backprime:cmt,backsim:dmt,backsimeq:hmt,Backslash:pmt,Barv:fmt,barvee:gmt,barwed:mmt,Barwed:vmt,barwedge:ymt,bbrk:bmt,bbrktbrk:wmt,bcong:Cmt,Bcy:Omt,bcy:xmt,bdquo:Smt,becaus:Amt,because:Imt,Because:kmt,bemptyv:Emt,bepsi:_mt,bernou:Tmt,Bernoullis:Pmt,Beta:Dmt,beta:Rmt,beth:$mt,between:Mmt,Bfr:Lmt,bfr:Bmt,bigcap:Fmt,bigcirc:Nmt,bigcup:Vmt,bigodot:jmt,bigoplus:Wmt,bigotimes:Hmt,bigsqcup:zmt,bigstar:Zmt,bigtriangledown:Gmt,bigtriangleup:Qmt,biguplus:Umt,bigvee:Xmt,bigwedge:Ymt,bkarow:Kmt,blacklozenge:qmt,blacksquare:Jmt,blacktriangle:evt,blacktriangledown:tvt,blacktriangleleft:nvt,blacktriangleright:rvt,blank:ivt,blk12:ovt,blk14:avt,blk34:svt,block:lvt,bne:uvt,bnequiv:cvt,bNot:dvt,bnot:hvt,Bopf:pvt,bopf:fvt,bot:gvt,bottom:mvt,bowtie:vvt,boxbox:yvt,boxdl:bvt,boxdL:wvt,boxDl:Cvt,boxDL:Ovt,boxdr:xvt,boxdR:Svt,boxDr:Avt,boxDR:Ivt,boxh:kvt,boxH:Evt,boxhd:_vt,boxHd:Tvt,boxhD:Pvt,boxHD:Dvt,boxhu:Rvt,boxHu:$vt,boxhU:Mvt,boxHU:Lvt,boxminus:Bvt,boxplus:Fvt,boxtimes:Nvt,boxul:Vvt,boxuL:jvt,boxUl:Wvt,boxUL:Hvt,boxur:zvt,boxuR:Zvt,boxUr:Gvt,boxUR:Qvt,boxv:Uvt,boxV:Xvt,boxvh:Yvt,boxvH:Kvt,boxVh:qvt,boxVH:Jvt,boxvl:e0t,boxvL:t0t,boxVl:n0t,boxVL:r0t,boxvr:i0t,boxvR:o0t,boxVr:a0t,boxVR:s0t,bprime:l0t,breve:u0t,Breve:c0t,brvbar:d0t,bscr:h0t,Bscr:p0t,bsemi:f0t,bsim:g0t,bsime:m0t,bsolb:v0t,bsol:y0t,bsolhsub:b0t,bull:w0t,bullet:C0t,bump:O0t,bumpE:x0t,bumpe:S0t,Bumpeq:A0t,bumpeq:I0t,Cacute:k0t,cacute:E0t,capand:_0t,capbrcup:T0t,capcap:P0t,cap:D0t,Cap:R0t,capcup:$0t,capdot:M0t,CapitalDifferentialD:L0t,caps:B0t,caret:F0t,caron:N0t,Cayleys:V0t,ccaps:j0t,Ccaron:W0t,ccaron:H0t,Ccedil:z0t,ccedil:Z0t,Ccirc:G0t,ccirc:Q0t,Cconint:U0t,ccups:X0t,ccupssm:Y0t,Cdot:K0t,cdot:q0t,cedil:J0t,Cedilla:eyt,cemptyv:tyt,cent:nyt,centerdot:ryt,CenterDot:iyt,cfr:oyt,Cfr:ayt,CHcy:syt,chcy:lyt,check:uyt,checkmark:cyt,Chi:dyt,chi:hyt,circ:pyt,circeq:fyt,circlearrowleft:gyt,circlearrowright:myt,circledast:vyt,circledcirc:yyt,circleddash:byt,CircleDot:wyt,circledR:Cyt,circledS:Oyt,CircleMinus:xyt,CirclePlus:Syt,CircleTimes:Ayt,cir:Iyt,cirE:kyt,cire:Eyt,cirfnint:_yt,cirmid:Tyt,cirscir:Pyt,ClockwiseContourIntegral:Dyt,CloseCurlyDoubleQuote:Ryt,CloseCurlyQuote:$yt,clubs:Myt,clubsuit:Lyt,colon:Byt,Colon:Fyt,Colone:Nyt,colone:Vyt,coloneq:jyt,comma:Wyt,commat:Hyt,comp:zyt,compfn:Zyt,complement:Gyt,complexes:Qyt,cong:Uyt,congdot:Xyt,Congruent:Yyt,conint:Kyt,Conint:qyt,ContourIntegral:Jyt,copf:ebt,Copf:tbt,coprod:nbt,Coproduct:rbt,copy:ibt,COPY:obt,copysr:abt,CounterClockwiseContourIntegral:sbt,crarr:lbt,cross:ubt,Cross:cbt,Cscr:dbt,cscr:hbt,csub:pbt,csube:fbt,csup:gbt,csupe:mbt,ctdot:vbt,cudarrl:ybt,cudarrr:bbt,cuepr:wbt,cuesc:Cbt,cularr:Obt,cularrp:xbt,cupbrcap:Sbt,cupcap:Abt,CupCap:Ibt,cup:kbt,Cup:Ebt,cupcup:_bt,cupdot:Tbt,cupor:Pbt,cups:Dbt,curarr:Rbt,curarrm:$bt,curlyeqprec:Mbt,curlyeqsucc:Lbt,curlyvee:Bbt,curlywedge:Fbt,curren:Nbt,curvearrowleft:Vbt,curvearrowright:jbt,cuvee:Wbt,cuwed:Hbt,cwconint:zbt,cwint:Zbt,cylcty:Gbt,dagger:Qbt,Dagger:Ubt,daleth:Xbt,darr:Ybt,Darr:Kbt,dArr:qbt,dash:Jbt,Dashv:e1t,dashv:t1t,dbkarow:n1t,dblac:r1t,Dcaron:i1t,dcaron:o1t,Dcy:a1t,dcy:s1t,ddagger:l1t,ddarr:u1t,DD:c1t,dd:d1t,DDotrahd:h1t,ddotseq:p1t,deg:f1t,Del:g1t,Delta:m1t,delta:v1t,demptyv:y1t,dfisht:b1t,Dfr:w1t,dfr:C1t,dHar:O1t,dharl:x1t,dharr:S1t,DiacriticalAcute:A1t,DiacriticalDot:I1t,DiacriticalDoubleAcute:k1t,DiacriticalGrave:E1t,DiacriticalTilde:_1t,diam:T1t,diamond:P1t,Diamond:D1t,diamondsuit:R1t,diams:$1t,die:M1t,DifferentialD:L1t,digamma:B1t,disin:F1t,div:N1t,divide:V1t,divideontimes:j1t,divonx:W1t,DJcy:H1t,djcy:z1t,dlcorn:Z1t,dlcrop:G1t,dollar:Q1t,Dopf:U1t,dopf:X1t,Dot:Y1t,dot:K1t,DotDot:q1t,doteq:J1t,doteqdot:ewt,DotEqual:twt,dotminus:nwt,dotplus:rwt,dotsquare:iwt,doublebarwedge:owt,DoubleContourIntegral:awt,DoubleDot:swt,DoubleDownArrow:lwt,DoubleLeftArrow:uwt,DoubleLeftRightArrow:cwt,DoubleLeftTee:dwt,DoubleLongLeftArrow:hwt,DoubleLongLeftRightArrow:pwt,DoubleLongRightArrow:fwt,DoubleRightArrow:gwt,DoubleRightTee:mwt,DoubleUpArrow:vwt,DoubleUpDownArrow:ywt,DoubleVerticalBar:bwt,DownArrowBar:wwt,downarrow:Cwt,DownArrow:Owt,Downarrow:xwt,DownArrowUpArrow:Swt,DownBreve:Awt,downdownarrows:Iwt,downharpoonleft:kwt,downharpoonright:Ewt,DownLeftRightVector:_wt,DownLeftTeeVector:Twt,DownLeftVectorBar:Pwt,DownLeftVector:Dwt,DownRightTeeVector:Rwt,DownRightVectorBar:$wt,DownRightVector:Mwt,DownTeeArrow:Lwt,DownTee:Bwt,drbkarow:Fwt,drcorn:Nwt,drcrop:Vwt,Dscr:jwt,dscr:Wwt,DScy:Hwt,dscy:zwt,dsol:Zwt,Dstrok:Gwt,dstrok:Qwt,dtdot:Uwt,dtri:Xwt,dtrif:Ywt,duarr:Kwt,duhar:qwt,dwangle:Jwt,DZcy:eCt,dzcy:tCt,dzigrarr:nCt,Eacute:rCt,eacute:iCt,easter:oCt,Ecaron:aCt,ecaron:sCt,Ecirc:lCt,ecirc:uCt,ecir:cCt,ecolon:dCt,Ecy:hCt,ecy:pCt,eDDot:fCt,Edot:gCt,edot:mCt,eDot:vCt,ee:yCt,efDot:bCt,Efr:wCt,efr:CCt,eg:OCt,Egrave:xCt,egrave:SCt,egs:ACt,egsdot:ICt,el:kCt,Element:ECt,elinters:_Ct,ell:TCt,els:PCt,elsdot:DCt,Emacr:RCt,emacr:$Ct,empty:MCt,emptyset:LCt,EmptySmallSquare:BCt,emptyv:FCt,EmptyVerySmallSquare:NCt,emsp13:VCt,emsp14:jCt,emsp:WCt,ENG:HCt,eng:zCt,ensp:ZCt,Eogon:GCt,eogon:QCt,Eopf:UCt,eopf:XCt,epar:YCt,eparsl:KCt,eplus:qCt,epsi:JCt,Epsilon:eOt,epsilon:tOt,epsiv:nOt,eqcirc:rOt,eqcolon:iOt,eqsim:oOt,eqslantgtr:aOt,eqslantless:sOt,Equal:lOt,equals:uOt,EqualTilde:cOt,equest:dOt,Equilibrium:hOt,equiv:pOt,equivDD:fOt,eqvparsl:gOt,erarr:mOt,erDot:vOt,escr:yOt,Escr:bOt,esdot:wOt,Esim:COt,esim:OOt,Eta:xOt,eta:SOt,ETH:AOt,eth:IOt,Euml:kOt,euml:EOt,euro:_Ot,excl:TOt,exist:POt,Exists:DOt,expectation:ROt,exponentiale:$Ot,ExponentialE:MOt,fallingdotseq:LOt,Fcy:BOt,fcy:FOt,female:NOt,ffilig:VOt,fflig:jOt,ffllig:WOt,Ffr:HOt,ffr:zOt,filig:ZOt,FilledSmallSquare:GOt,FilledVerySmallSquare:QOt,fjlig:UOt,flat:XOt,fllig:YOt,fltns:KOt,fnof:qOt,Fopf:JOt,fopf:ext,forall:txt,ForAll:nxt,fork:rxt,forkv:ixt,Fouriertrf:oxt,fpartint:axt,frac12:sxt,frac13:lxt,frac14:uxt,frac15:cxt,frac16:dxt,frac18:hxt,frac23:pxt,frac25:fxt,frac34:gxt,frac35:mxt,frac38:vxt,frac45:yxt,frac56:bxt,frac58:wxt,frac78:Cxt,frasl:Oxt,frown:xxt,fscr:Sxt,Fscr:Axt,gacute:Ixt,Gamma:kxt,gamma:Ext,Gammad:_xt,gammad:Txt,gap:Pxt,Gbreve:Dxt,gbreve:Rxt,Gcedil:$xt,Gcirc:Mxt,gcirc:Lxt,Gcy:Bxt,gcy:Fxt,Gdot:Nxt,gdot:Vxt,ge:jxt,gE:Wxt,gEl:Hxt,gel:zxt,geq:Zxt,geqq:Gxt,geqslant:Qxt,gescc:Uxt,ges:Xxt,gesdot:Yxt,gesdoto:Kxt,gesdotol:qxt,gesl:Jxt,gesles:eSt,Gfr:tSt,gfr:nSt,gg:rSt,Gg:iSt,ggg:oSt,gimel:aSt,GJcy:sSt,gjcy:lSt,gla:uSt,gl:cSt,glE:dSt,glj:hSt,gnap:pSt,gnapprox:fSt,gne:gSt,gnE:mSt,gneq:vSt,gneqq:ySt,gnsim:bSt,Gopf:wSt,gopf:CSt,grave:OSt,GreaterEqual:xSt,GreaterEqualLess:SSt,GreaterFullEqual:ASt,GreaterGreater:ISt,GreaterLess:kSt,GreaterSlantEqual:ESt,GreaterTilde:_St,Gscr:TSt,gscr:PSt,gsim:DSt,gsime:RSt,gsiml:$St,gtcc:MSt,gtcir:LSt,gt:BSt,GT:FSt,Gt:NSt,gtdot:VSt,gtlPar:jSt,gtquest:WSt,gtrapprox:HSt,gtrarr:zSt,gtrdot:ZSt,gtreqless:GSt,gtreqqless:QSt,gtrless:USt,gtrsim:XSt,gvertneqq:YSt,gvnE:KSt,Hacek:qSt,hairsp:JSt,half:eAt,hamilt:tAt,HARDcy:nAt,hardcy:rAt,harrcir:iAt,harr:oAt,hArr:aAt,harrw:sAt,Hat:lAt,hbar:uAt,Hcirc:cAt,hcirc:dAt,hearts:hAt,heartsuit:pAt,hellip:fAt,hercon:gAt,hfr:mAt,Hfr:vAt,HilbertSpace:yAt,hksearow:bAt,hkswarow:wAt,hoarr:CAt,homtht:OAt,hookleftarrow:xAt,hookrightarrow:SAt,hopf:AAt,Hopf:IAt,horbar:kAt,HorizontalLine:EAt,hscr:_At,Hscr:TAt,hslash:PAt,Hstrok:DAt,hstrok:RAt,HumpDownHump:$At,HumpEqual:MAt,hybull:LAt,hyphen:BAt,Iacute:FAt,iacute:NAt,ic:VAt,Icirc:jAt,icirc:WAt,Icy:HAt,icy:zAt,Idot:ZAt,IEcy:GAt,iecy:QAt,iexcl:UAt,iff:XAt,ifr:YAt,Ifr:KAt,Igrave:qAt,igrave:JAt,ii:eIt,iiiint:tIt,iiint:nIt,iinfin:rIt,iiota:iIt,IJlig:oIt,ijlig:aIt,Imacr:sIt,imacr:lIt,image:uIt,ImaginaryI:cIt,imagline:dIt,imagpart:hIt,imath:pIt,Im:fIt,imof:gIt,imped:mIt,Implies:vIt,incare:yIt,in:"∈",infin:bIt,infintie:wIt,inodot:CIt,intcal:OIt,int:xIt,Int:SIt,integers:AIt,Integral:IIt,intercal:kIt,Intersection:EIt,intlarhk:_It,intprod:TIt,InvisibleComma:PIt,InvisibleTimes:DIt,IOcy:RIt,iocy:$It,Iogon:MIt,iogon:LIt,Iopf:BIt,iopf:FIt,Iota:NIt,iota:VIt,iprod:jIt,iquest:WIt,iscr:HIt,Iscr:zIt,isin:ZIt,isindot:GIt,isinE:QIt,isins:UIt,isinsv:XIt,isinv:YIt,it:KIt,Itilde:qIt,itilde:JIt,Iukcy:ekt,iukcy:tkt,Iuml:nkt,iuml:rkt,Jcirc:ikt,jcirc:okt,Jcy:akt,jcy:skt,Jfr:lkt,jfr:ukt,jmath:ckt,Jopf:dkt,jopf:hkt,Jscr:pkt,jscr:fkt,Jsercy:gkt,jsercy:mkt,Jukcy:vkt,jukcy:ykt,Kappa:bkt,kappa:wkt,kappav:Ckt,Kcedil:Okt,kcedil:xkt,Kcy:Skt,kcy:Akt,Kfr:Ikt,kfr:kkt,kgreen:Ekt,KHcy:_kt,khcy:Tkt,KJcy:Pkt,kjcy:Dkt,Kopf:Rkt,kopf:$kt,Kscr:Mkt,kscr:Lkt,lAarr:Bkt,Lacute:Fkt,lacute:Nkt,laemptyv:Vkt,lagran:jkt,Lambda:Wkt,lambda:Hkt,lang:zkt,Lang:Zkt,langd:Gkt,langle:Qkt,lap:Ukt,Laplacetrf:Xkt,laquo:Ykt,larrb:Kkt,larrbfs:qkt,larr:Jkt,Larr:e2t,lArr:t2t,larrfs:n2t,larrhk:r2t,larrlp:i2t,larrpl:o2t,larrsim:a2t,larrtl:s2t,latail:l2t,lAtail:u2t,lat:c2t,late:d2t,lates:h2t,lbarr:p2t,lBarr:f2t,lbbrk:g2t,lbrace:m2t,lbrack:v2t,lbrke:y2t,lbrksld:b2t,lbrkslu:w2t,Lcaron:C2t,lcaron:O2t,Lcedil:x2t,lcedil:S2t,lceil:A2t,lcub:I2t,Lcy:k2t,lcy:E2t,ldca:_2t,ldquo:T2t,ldquor:P2t,ldrdhar:D2t,ldrushar:R2t,ldsh:$2t,le:M2t,lE:L2t,LeftAngleBracket:B2t,LeftArrowBar:F2t,leftarrow:N2t,LeftArrow:V2t,Leftarrow:j2t,LeftArrowRightArrow:W2t,leftarrowtail:H2t,LeftCeiling:z2t,LeftDoubleBracket:Z2t,LeftDownTeeVector:G2t,LeftDownVectorBar:Q2t,LeftDownVector:U2t,LeftFloor:X2t,leftharpoondown:Y2t,leftharpoonup:K2t,leftleftarrows:q2t,leftrightarrow:J2t,LeftRightArrow:eEt,Leftrightarrow:tEt,leftrightarrows:nEt,leftrightharpoons:rEt,leftrightsquigarrow:iEt,LeftRightVector:oEt,LeftTeeArrow:aEt,LeftTee:sEt,LeftTeeVector:lEt,leftthreetimes:uEt,LeftTriangleBar:cEt,LeftTriangle:dEt,LeftTriangleEqual:hEt,LeftUpDownVector:pEt,LeftUpTeeVector:fEt,LeftUpVectorBar:gEt,LeftUpVector:mEt,LeftVectorBar:vEt,LeftVector:yEt,lEg:bEt,leg:wEt,leq:CEt,leqq:OEt,leqslant:xEt,lescc:SEt,les:AEt,lesdot:IEt,lesdoto:kEt,lesdotor:EEt,lesg:_Et,lesges:TEt,lessapprox:PEt,lessdot:DEt,lesseqgtr:REt,lesseqqgtr:$Et,LessEqualGreater:MEt,LessFullEqual:LEt,LessGreater:BEt,lessgtr:FEt,LessLess:NEt,lesssim:VEt,LessSlantEqual:jEt,LessTilde:WEt,lfisht:HEt,lfloor:zEt,Lfr:ZEt,lfr:GEt,lg:QEt,lgE:UEt,lHar:XEt,lhard:YEt,lharu:KEt,lharul:qEt,lhblk:JEt,LJcy:e_t,ljcy:t_t,llarr:n_t,ll:r_t,Ll:i_t,llcorner:o_t,Lleftarrow:a_t,llhard:s_t,lltri:l_t,Lmidot:u_t,lmidot:c_t,lmoustache:d_t,lmoust:h_t,lnap:p_t,lnapprox:f_t,lne:g_t,lnE:m_t,lneq:v_t,lneqq:y_t,lnsim:b_t,loang:w_t,loarr:C_t,lobrk:O_t,longleftarrow:x_t,LongLeftArrow:S_t,Longleftarrow:A_t,longleftrightarrow:I_t,LongLeftRightArrow:k_t,Longleftrightarrow:E_t,longmapsto:__t,longrightarrow:T_t,LongRightArrow:P_t,Longrightarrow:D_t,looparrowleft:R_t,looparrowright:$_t,lopar:M_t,Lopf:L_t,lopf:B_t,loplus:F_t,lotimes:N_t,lowast:V_t,lowbar:j_t,LowerLeftArrow:W_t,LowerRightArrow:H_t,loz:z_t,lozenge:Z_t,lozf:G_t,lpar:Q_t,lparlt:U_t,lrarr:X_t,lrcorner:Y_t,lrhar:K_t,lrhard:q_t,lrm:J_t,lrtri:eTt,lsaquo:tTt,lscr:nTt,Lscr:rTt,lsh:iTt,Lsh:oTt,lsim:aTt,lsime:sTt,lsimg:lTt,lsqb:uTt,lsquo:cTt,lsquor:dTt,Lstrok:hTt,lstrok:pTt,ltcc:fTt,ltcir:gTt,lt:mTt,LT:vTt,Lt:yTt,ltdot:bTt,lthree:wTt,ltimes:CTt,ltlarr:OTt,ltquest:xTt,ltri:STt,ltrie:ATt,ltrif:ITt,ltrPar:kTt,lurdshar:ETt,luruhar:_Tt,lvertneqq:TTt,lvnE:PTt,macr:DTt,male:RTt,malt:$Tt,maltese:MTt,Map:"⤅",map:LTt,mapsto:BTt,mapstodown:FTt,mapstoleft:NTt,mapstoup:VTt,marker:jTt,mcomma:WTt,Mcy:HTt,mcy:zTt,mdash:ZTt,mDDot:GTt,measuredangle:QTt,MediumSpace:UTt,Mellintrf:XTt,Mfr:YTt,mfr:KTt,mho:qTt,micro:JTt,midast:ePt,midcir:tPt,mid:nPt,middot:rPt,minusb:iPt,minus:oPt,minusd:aPt,minusdu:sPt,MinusPlus:lPt,mlcp:uPt,mldr:cPt,mnplus:dPt,models:hPt,Mopf:pPt,mopf:fPt,mp:gPt,mscr:mPt,Mscr:vPt,mstpos:yPt,Mu:bPt,mu:wPt,multimap:CPt,mumap:OPt,nabla:xPt,Nacute:SPt,nacute:APt,nang:IPt,nap:kPt,napE:EPt,napid:_Pt,napos:TPt,napprox:PPt,natural:DPt,naturals:RPt,natur:$Pt,nbsp:MPt,nbump:LPt,nbumpe:BPt,ncap:FPt,Ncaron:NPt,ncaron:VPt,Ncedil:jPt,ncedil:WPt,ncong:HPt,ncongdot:zPt,ncup:ZPt,Ncy:GPt,ncy:QPt,ndash:UPt,nearhk:XPt,nearr:YPt,neArr:KPt,nearrow:qPt,ne:JPt,nedot:eDt,NegativeMediumSpace:tDt,NegativeThickSpace:nDt,NegativeThinSpace:rDt,NegativeVeryThinSpace:iDt,nequiv:oDt,nesear:aDt,nesim:sDt,NestedGreaterGreater:lDt,NestedLessLess:uDt,NewLine:cDt,nexist:dDt,nexists:hDt,Nfr:pDt,nfr:fDt,ngE:gDt,nge:mDt,ngeq:vDt,ngeqq:yDt,ngeqslant:bDt,nges:wDt,nGg:CDt,ngsim:ODt,nGt:xDt,ngt:SDt,ngtr:ADt,nGtv:IDt,nharr:kDt,nhArr:EDt,nhpar:_Dt,ni:TDt,nis:PDt,nisd:DDt,niv:RDt,NJcy:$Dt,njcy:MDt,nlarr:LDt,nlArr:BDt,nldr:FDt,nlE:NDt,nle:VDt,nleftarrow:jDt,nLeftarrow:WDt,nleftrightarrow:HDt,nLeftrightarrow:zDt,nleq:ZDt,nleqq:GDt,nleqslant:QDt,nles:UDt,nless:XDt,nLl:YDt,nlsim:KDt,nLt:qDt,nlt:JDt,nltri:eRt,nltrie:tRt,nLtv:nRt,nmid:rRt,NoBreak:iRt,NonBreakingSpace:oRt,nopf:aRt,Nopf:sRt,Not:lRt,not:uRt,NotCongruent:cRt,NotCupCap:dRt,NotDoubleVerticalBar:hRt,NotElement:pRt,NotEqual:fRt,NotEqualTilde:gRt,NotExists:mRt,NotGreater:vRt,NotGreaterEqual:yRt,NotGreaterFullEqual:bRt,NotGreaterGreater:wRt,NotGreaterLess:CRt,NotGreaterSlantEqual:ORt,NotGreaterTilde:xRt,NotHumpDownHump:SRt,NotHumpEqual:ARt,notin:IRt,notindot:kRt,notinE:ERt,notinva:_Rt,notinvb:TRt,notinvc:PRt,NotLeftTriangleBar:DRt,NotLeftTriangle:RRt,NotLeftTriangleEqual:$Rt,NotLess:MRt,NotLessEqual:LRt,NotLessGreater:BRt,NotLessLess:FRt,NotLessSlantEqual:NRt,NotLessTilde:VRt,NotNestedGreaterGreater:jRt,NotNestedLessLess:WRt,notni:HRt,notniva:zRt,notnivb:ZRt,notnivc:GRt,NotPrecedes:QRt,NotPrecedesEqual:URt,NotPrecedesSlantEqual:XRt,NotReverseElement:YRt,NotRightTriangleBar:KRt,NotRightTriangle:qRt,NotRightTriangleEqual:JRt,NotSquareSubset:e3t,NotSquareSubsetEqual:t3t,NotSquareSuperset:n3t,NotSquareSupersetEqual:r3t,NotSubset:i3t,NotSubsetEqual:o3t,NotSucceeds:a3t,NotSucceedsEqual:s3t,NotSucceedsSlantEqual:l3t,NotSucceedsTilde:u3t,NotSuperset:c3t,NotSupersetEqual:d3t,NotTilde:h3t,NotTildeEqual:p3t,NotTildeFullEqual:f3t,NotTildeTilde:g3t,NotVerticalBar:m3t,nparallel:v3t,npar:y3t,nparsl:b3t,npart:w3t,npolint:C3t,npr:O3t,nprcue:x3t,nprec:S3t,npreceq:A3t,npre:I3t,nrarrc:k3t,nrarr:E3t,nrArr:_3t,nrarrw:T3t,nrightarrow:P3t,nRightarrow:D3t,nrtri:R3t,nrtrie:$3t,nsc:M3t,nsccue:L3t,nsce:B3t,Nscr:F3t,nscr:N3t,nshortmid:V3t,nshortparallel:j3t,nsim:W3t,nsime:H3t,nsimeq:z3t,nsmid:Z3t,nspar:G3t,nsqsube:Q3t,nsqsupe:U3t,nsub:X3t,nsubE:Y3t,nsube:K3t,nsubset:q3t,nsubseteq:J3t,nsubseteqq:e$t,nsucc:t$t,nsucceq:n$t,nsup:r$t,nsupE:i$t,nsupe:o$t,nsupset:a$t,nsupseteq:s$t,nsupseteqq:l$t,ntgl:u$t,Ntilde:c$t,ntilde:d$t,ntlg:h$t,ntriangleleft:p$t,ntrianglelefteq:f$t,ntriangleright:g$t,ntrianglerighteq:m$t,Nu:v$t,nu:y$t,num:b$t,numero:w$t,numsp:C$t,nvap:O$t,nvdash:x$t,nvDash:S$t,nVdash:A$t,nVDash:I$t,nvge:k$t,nvgt:E$t,nvHarr:_$t,nvinfin:T$t,nvlArr:P$t,nvle:D$t,nvlt:R$t,nvltrie:$$t,nvrArr:M$t,nvrtrie:L$t,nvsim:B$t,nwarhk:F$t,nwarr:N$t,nwArr:V$t,nwarrow:j$t,nwnear:W$t,Oacute:H$t,oacute:z$t,oast:Z$t,Ocirc:G$t,ocirc:Q$t,ocir:U$t,Ocy:X$t,ocy:Y$t,odash:K$t,Odblac:q$t,odblac:J$t,odiv:e5t,odot:t5t,odsold:n5t,OElig:r5t,oelig:i5t,ofcir:o5t,Ofr:a5t,ofr:s5t,ogon:l5t,Ograve:u5t,ograve:c5t,ogt:d5t,ohbar:h5t,ohm:p5t,oint:f5t,olarr:g5t,olcir:m5t,olcross:v5t,oline:y5t,olt:b5t,Omacr:w5t,omacr:C5t,Omega:O5t,omega:x5t,Omicron:S5t,omicron:A5t,omid:I5t,ominus:k5t,Oopf:E5t,oopf:_5t,opar:T5t,OpenCurlyDoubleQuote:P5t,OpenCurlyQuote:D5t,operp:R5t,oplus:$5t,orarr:M5t,Or:L5t,or:B5t,ord:F5t,order:N5t,orderof:V5t,ordf:j5t,ordm:W5t,origof:H5t,oror:z5t,orslope:Z5t,orv:G5t,oS:Q5t,Oscr:U5t,oscr:X5t,Oslash:Y5t,oslash:K5t,osol:q5t,Otilde:J5t,otilde:e4t,otimesas:t4t,Otimes:n4t,otimes:r4t,Ouml:i4t,ouml:o4t,ovbar:a4t,OverBar:s4t,OverBrace:l4t,OverBracket:u4t,OverParenthesis:c4t,para:d4t,parallel:h4t,par:p4t,parsim:f4t,parsl:g4t,part:m4t,PartialD:v4t,Pcy:y4t,pcy:b4t,percnt:w4t,period:C4t,permil:O4t,perp:x4t,pertenk:S4t,Pfr:A4t,pfr:I4t,Phi:k4t,phi:E4t,phiv:_4t,phmmat:T4t,phone:P4t,Pi:D4t,pi:R4t,pitchfork:$4t,piv:M4t,planck:L4t,planckh:B4t,plankv:F4t,plusacir:N4t,plusb:V4t,pluscir:j4t,plus:W4t,plusdo:H4t,plusdu:z4t,pluse:Z4t,PlusMinus:G4t,plusmn:Q4t,plussim:U4t,plustwo:X4t,pm:Y4t,Poincareplane:K4t,pointint:q4t,popf:J4t,Popf:eMt,pound:tMt,prap:nMt,Pr:rMt,pr:iMt,prcue:oMt,precapprox:aMt,prec:sMt,preccurlyeq:lMt,Precedes:uMt,PrecedesEqual:cMt,PrecedesSlantEqual:dMt,PrecedesTilde:hMt,preceq:pMt,precnapprox:fMt,precneqq:gMt,precnsim:mMt,pre:vMt,prE:yMt,precsim:bMt,prime:wMt,Prime:CMt,primes:OMt,prnap:xMt,prnE:SMt,prnsim:AMt,prod:IMt,Product:kMt,profalar:EMt,profline:_Mt,profsurf:TMt,prop:PMt,Proportional:DMt,Proportion:RMt,propto:$Mt,prsim:MMt,prurel:LMt,Pscr:BMt,pscr:FMt,Psi:NMt,psi:VMt,puncsp:jMt,Qfr:WMt,qfr:HMt,qint:zMt,qopf:ZMt,Qopf:GMt,qprime:QMt,Qscr:UMt,qscr:XMt,quaternions:YMt,quatint:KMt,quest:qMt,questeq:JMt,quot:eLt,QUOT:tLt,rAarr:nLt,race:rLt,Racute:iLt,racute:oLt,radic:aLt,raemptyv:sLt,rang:lLt,Rang:uLt,rangd:cLt,range:dLt,rangle:hLt,raquo:pLt,rarrap:fLt,rarrb:gLt,rarrbfs:mLt,rarrc:vLt,rarr:yLt,Rarr:bLt,rArr:wLt,rarrfs:CLt,rarrhk:OLt,rarrlp:xLt,rarrpl:SLt,rarrsim:ALt,Rarrtl:ILt,rarrtl:kLt,rarrw:ELt,ratail:_Lt,rAtail:TLt,ratio:PLt,rationals:DLt,rbarr:RLt,rBarr:$Lt,RBarr:MLt,rbbrk:LLt,rbrace:BLt,rbrack:FLt,rbrke:NLt,rbrksld:VLt,rbrkslu:jLt,Rcaron:WLt,rcaron:HLt,Rcedil:zLt,rcedil:ZLt,rceil:GLt,rcub:QLt,Rcy:ULt,rcy:XLt,rdca:YLt,rdldhar:KLt,rdquo:qLt,rdquor:JLt,rdsh:eBt,real:tBt,realine:nBt,realpart:rBt,reals:iBt,Re:oBt,rect:aBt,reg:sBt,REG:lBt,ReverseElement:uBt,ReverseEquilibrium:cBt,ReverseUpEquilibrium:dBt,rfisht:hBt,rfloor:pBt,rfr:fBt,Rfr:gBt,rHar:mBt,rhard:vBt,rharu:yBt,rharul:bBt,Rho:wBt,rho:CBt,rhov:OBt,RightAngleBracket:xBt,RightArrowBar:SBt,rightarrow:ABt,RightArrow:IBt,Rightarrow:kBt,RightArrowLeftArrow:EBt,rightarrowtail:_Bt,RightCeiling:TBt,RightDoubleBracket:PBt,RightDownTeeVector:DBt,RightDownVectorBar:RBt,RightDownVector:$Bt,RightFloor:MBt,rightharpoondown:LBt,rightharpoonup:BBt,rightleftarrows:FBt,rightleftharpoons:NBt,rightrightarrows:VBt,rightsquigarrow:jBt,RightTeeArrow:WBt,RightTee:HBt,RightTeeVector:zBt,rightthreetimes:ZBt,RightTriangleBar:GBt,RightTriangle:QBt,RightTriangleEqual:UBt,RightUpDownVector:XBt,RightUpTeeVector:YBt,RightUpVectorBar:KBt,RightUpVector:qBt,RightVectorBar:JBt,RightVector:e9t,ring:t9t,risingdotseq:n9t,rlarr:r9t,rlhar:i9t,rlm:o9t,rmoustache:a9t,rmoust:s9t,rnmid:l9t,roang:u9t,roarr:c9t,robrk:d9t,ropar:h9t,ropf:p9t,Ropf:f9t,roplus:g9t,rotimes:m9t,RoundImplies:v9t,rpar:y9t,rpargt:b9t,rppolint:w9t,rrarr:C9t,Rrightarrow:O9t,rsaquo:x9t,rscr:S9t,Rscr:A9t,rsh:I9t,Rsh:k9t,rsqb:E9t,rsquo:_9t,rsquor:T9t,rthree:P9t,rtimes:D9t,rtri:R9t,rtrie:$9t,rtrif:M9t,rtriltri:L9t,RuleDelayed:B9t,ruluhar:F9t,rx:N9t,Sacute:V9t,sacute:j9t,sbquo:W9t,scap:H9t,Scaron:z9t,scaron:Z9t,Sc:G9t,sc:Q9t,sccue:U9t,sce:X9t,scE:Y9t,Scedil:K9t,scedil:q9t,Scirc:J9t,scirc:eFt,scnap:tFt,scnE:nFt,scnsim:rFt,scpolint:iFt,scsim:oFt,Scy:aFt,scy:sFt,sdotb:lFt,sdot:uFt,sdote:cFt,searhk:dFt,searr:hFt,seArr:pFt,searrow:fFt,sect:gFt,semi:mFt,seswar:vFt,setminus:yFt,setmn:bFt,sext:wFt,Sfr:CFt,sfr:OFt,sfrown:xFt,sharp:SFt,SHCHcy:AFt,shchcy:IFt,SHcy:kFt,shcy:EFt,ShortDownArrow:_Ft,ShortLeftArrow:TFt,shortmid:PFt,shortparallel:DFt,ShortRightArrow:RFt,ShortUpArrow:$Ft,shy:MFt,Sigma:LFt,sigma:BFt,sigmaf:FFt,sigmav:NFt,sim:VFt,simdot:jFt,sime:WFt,simeq:HFt,simg:zFt,simgE:ZFt,siml:GFt,simlE:QFt,simne:UFt,simplus:XFt,simrarr:YFt,slarr:KFt,SmallCircle:qFt,smallsetminus:JFt,smashp:eNt,smeparsl:tNt,smid:nNt,smile:rNt,smt:iNt,smte:oNt,smtes:aNt,SOFTcy:sNt,softcy:lNt,solbar:uNt,solb:cNt,sol:dNt,Sopf:hNt,sopf:pNt,spades:fNt,spadesuit:gNt,spar:mNt,sqcap:vNt,sqcaps:yNt,sqcup:bNt,sqcups:wNt,Sqrt:CNt,sqsub:ONt,sqsube:xNt,sqsubset:SNt,sqsubseteq:ANt,sqsup:INt,sqsupe:kNt,sqsupset:ENt,sqsupseteq:_Nt,square:TNt,Square:PNt,SquareIntersection:DNt,SquareSubset:RNt,SquareSubsetEqual:$Nt,SquareSuperset:MNt,SquareSupersetEqual:LNt,SquareUnion:BNt,squarf:FNt,squ:NNt,squf:VNt,srarr:jNt,Sscr:WNt,sscr:HNt,ssetmn:zNt,ssmile:ZNt,sstarf:GNt,Star:QNt,star:UNt,starf:XNt,straightepsilon:YNt,straightphi:KNt,strns:qNt,sub:JNt,Sub:e6t,subdot:t6t,subE:n6t,sube:r6t,subedot:i6t,submult:o6t,subnE:a6t,subne:s6t,subplus:l6t,subrarr:u6t,subset:c6t,Subset:d6t,subseteq:h6t,subseteqq:p6t,SubsetEqual:f6t,subsetneq:g6t,subsetneqq:m6t,subsim:v6t,subsub:y6t,subsup:b6t,succapprox:w6t,succ:C6t,succcurlyeq:O6t,Succeeds:x6t,SucceedsEqual:S6t,SucceedsSlantEqual:A6t,SucceedsTilde:I6t,succeq:k6t,succnapprox:E6t,succneqq:_6t,succnsim:T6t,succsim:P6t,SuchThat:D6t,sum:R6t,Sum:$6t,sung:M6t,sup1:L6t,sup2:B6t,sup3:F6t,sup:N6t,Sup:V6t,supdot:j6t,supdsub:W6t,supE:H6t,supe:z6t,supedot:Z6t,Superset:G6t,SupersetEqual:Q6t,suphsol:U6t,suphsub:X6t,suplarr:Y6t,supmult:K6t,supnE:q6t,supne:J6t,supplus:e8t,supset:t8t,Supset:n8t,supseteq:r8t,supseteqq:i8t,supsetneq:o8t,supsetneqq:a8t,supsim:s8t,supsub:l8t,supsup:u8t,swarhk:c8t,swarr:d8t,swArr:h8t,swarrow:p8t,swnwar:f8t,szlig:g8t,Tab:m8t,target:v8t,Tau:y8t,tau:b8t,tbrk:w8t,Tcaron:C8t,tcaron:O8t,Tcedil:x8t,tcedil:S8t,Tcy:A8t,tcy:I8t,tdot:k8t,telrec:E8t,Tfr:_8t,tfr:T8t,there4:P8t,therefore:D8t,Therefore:R8t,Theta:$8t,theta:M8t,thetasym:L8t,thetav:B8t,thickapprox:F8t,thicksim:N8t,ThickSpace:V8t,ThinSpace:j8t,thinsp:W8t,thkap:H8t,thksim:z8t,THORN:Z8t,thorn:G8t,tilde:Q8t,Tilde:U8t,TildeEqual:X8t,TildeFullEqual:Y8t,TildeTilde:K8t,timesbar:q8t,timesb:J8t,times:eVt,timesd:tVt,tint:nVt,toea:rVt,topbot:iVt,topcir:oVt,top:aVt,Topf:sVt,topf:lVt,topfork:uVt,tosa:cVt,tprime:dVt,trade:hVt,TRADE:pVt,triangle:fVt,triangledown:gVt,triangleleft:mVt,trianglelefteq:vVt,triangleq:yVt,triangleright:bVt,trianglerighteq:wVt,tridot:CVt,trie:OVt,triminus:xVt,TripleDot:SVt,triplus:AVt,trisb:IVt,tritime:kVt,trpezium:EVt,Tscr:_Vt,tscr:TVt,TScy:PVt,tscy:DVt,TSHcy:RVt,tshcy:$Vt,Tstrok:MVt,tstrok:LVt,twixt:BVt,twoheadleftarrow:FVt,twoheadrightarrow:NVt,Uacute:VVt,uacute:jVt,uarr:WVt,Uarr:HVt,uArr:zVt,Uarrocir:ZVt,Ubrcy:GVt,ubrcy:QVt,Ubreve:UVt,ubreve:XVt,Ucirc:YVt,ucirc:KVt,Ucy:qVt,ucy:JVt,udarr:ejt,Udblac:tjt,udblac:njt,udhar:rjt,ufisht:ijt,Ufr:ojt,ufr:ajt,Ugrave:sjt,ugrave:ljt,uHar:ujt,uharl:cjt,uharr:djt,uhblk:hjt,ulcorn:pjt,ulcorner:fjt,ulcrop:gjt,ultri:mjt,Umacr:vjt,umacr:yjt,uml:bjt,UnderBar:wjt,UnderBrace:Cjt,UnderBracket:Ojt,UnderParenthesis:xjt,Union:Sjt,UnionPlus:Ajt,Uogon:Ijt,uogon:kjt,Uopf:Ejt,uopf:_jt,UpArrowBar:Tjt,uparrow:Pjt,UpArrow:Djt,Uparrow:Rjt,UpArrowDownArrow:$jt,updownarrow:Mjt,UpDownArrow:Ljt,Updownarrow:Bjt,UpEquilibrium:Fjt,upharpoonleft:Njt,upharpoonright:Vjt,uplus:jjt,UpperLeftArrow:Wjt,UpperRightArrow:Hjt,upsi:zjt,Upsi:Zjt,upsih:Gjt,Upsilon:Qjt,upsilon:Ujt,UpTeeArrow:Xjt,UpTee:Yjt,upuparrows:Kjt,urcorn:qjt,urcorner:Jjt,urcrop:e7t,Uring:t7t,uring:n7t,urtri:r7t,Uscr:i7t,uscr:o7t,utdot:a7t,Utilde:s7t,utilde:l7t,utri:u7t,utrif:c7t,uuarr:d7t,Uuml:h7t,uuml:p7t,uwangle:f7t,vangrt:g7t,varepsilon:m7t,varkappa:v7t,varnothing:y7t,varphi:b7t,varpi:w7t,varpropto:C7t,varr:O7t,vArr:x7t,varrho:S7t,varsigma:A7t,varsubsetneq:I7t,varsubsetneqq:k7t,varsupsetneq:E7t,varsupsetneqq:_7t,vartheta:T7t,vartriangleleft:P7t,vartriangleright:D7t,vBar:R7t,Vbar:$7t,vBarv:M7t,Vcy:L7t,vcy:B7t,vdash:F7t,vDash:N7t,Vdash:V7t,VDash:j7t,Vdashl:W7t,veebar:H7t,vee:z7t,Vee:Z7t,veeeq:G7t,vellip:Q7t,verbar:U7t,Verbar:X7t,vert:Y7t,Vert:K7t,VerticalBar:q7t,VerticalLine:J7t,VerticalSeparator:eWt,VerticalTilde:tWt,VeryThinSpace:nWt,Vfr:rWt,vfr:iWt,vltri:oWt,vnsub:aWt,vnsup:sWt,Vopf:lWt,vopf:uWt,vprop:cWt,vrtri:dWt,Vscr:hWt,vscr:pWt,vsubnE:fWt,vsubne:gWt,vsupnE:mWt,vsupne:vWt,Vvdash:yWt,vzigzag:bWt,Wcirc:wWt,wcirc:CWt,wedbar:OWt,wedge:xWt,Wedge:SWt,wedgeq:AWt,weierp:IWt,Wfr:kWt,wfr:EWt,Wopf:_Wt,wopf:TWt,wp:PWt,wr:DWt,wreath:RWt,Wscr:$Wt,wscr:MWt,xcap:LWt,xcirc:BWt,xcup:FWt,xdtri:NWt,Xfr:VWt,xfr:jWt,xharr:WWt,xhArr:HWt,Xi:zWt,xi:ZWt,xlarr:GWt,xlArr:QWt,xmap:UWt,xnis:XWt,xodot:YWt,Xopf:KWt,xopf:qWt,xoplus:JWt,xotime:eHt,xrarr:tHt,xrArr:nHt,Xscr:rHt,xscr:iHt,xsqcup:oHt,xuplus:aHt,xutri:sHt,xvee:lHt,xwedge:uHt,Yacute:cHt,yacute:dHt,YAcy:hHt,yacy:pHt,Ycirc:fHt,ycirc:gHt,Ycy:mHt,ycy:vHt,yen:yHt,Yfr:bHt,yfr:wHt,YIcy:CHt,yicy:OHt,Yopf:xHt,yopf:SHt,Yscr:AHt,yscr:IHt,YUcy:kHt,yucy:EHt,yuml:_Ht,Yuml:THt,Zacute:PHt,zacute:DHt,Zcaron:RHt,zcaron:$Ht,Zcy:MHt,zcy:LHt,Zdot:BHt,zdot:FHt,zeetrf:NHt,ZeroWidthSpace:VHt,Zeta:jHt,zeta:WHt,zfr:HHt,Zfr:zHt,ZHcy:ZHt,zhcy:GHt,zigrarr:QHt,zopf:UHt,Zopf:XHt,Zscr:YHt,zscr:KHt,zwj:qHt,zwnj:JHt};var bke=ezt,nY=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Nx={},lse={};function tzt(e){var t,n,r=lse[e];if(r)return r;for(r=lse[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function JL(e,t,n){var r,i,o,a,s,l="";for(typeof t!="string"&&(n=t,t=JL.defaultChars),typeof n>"u"&&(n=!0),s=tzt(t),r=0,i=e.length;r<i;r++){if(o=e.charCodeAt(r),n&&o===37&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){l+=e.slice(r,r+3),r+=2;continue}if(o<128){l+=s[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)){l+=encodeURIComponent(e[r]+e[r+1]),r++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(e[r])}return l}JL.defaultChars=";/?:@&=+$,-_.!~*'()#";JL.componentChars="-_.!~*'()";var nzt=JL,use={};function rzt(e){var t,n,r=use[e];if(r)return r;for(r=use[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)n=e.charCodeAt(t),r[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function eB(e,t){var n;return typeof t!="string"&&(t=eB.defaultChars),n=rzt(t),e.replace(/(%[a-f0-9]{2})+/gi,function(r){var i,o,a,s,l,u,c,d="";for(i=0,o=r.length;i<o;i+=3){if(a=parseInt(r.slice(i+1,i+3),16),a<128){d+=n[a];continue}if((a&224)===192&&i+3<o&&(s=parseInt(r.slice(i+4,i+6),16),(s&192)===128)){c=a<<6&1984|s&63,c<128?d+="��":d+=String.fromCharCode(c),i+=3;continue}if((a&240)===224&&i+6<o&&(s=parseInt(r.slice(i+4,i+6),16),l=parseInt(r.slice(i+7,i+9),16),(s&192)===128&&(l&192)===128)){c=a<<12&61440|s<<6&4032|l&63,c<2048||c>=55296&&c<=57343?d+="���":d+=String.fromCharCode(c),i+=6;continue}if((a&248)===240&&i+9<o&&(s=parseInt(r.slice(i+4,i+6),16),l=parseInt(r.slice(i+7,i+9),16),u=parseInt(r.slice(i+10,i+12),16),(s&192)===128&&(l&192)===128&&(u&192)===128)){c=a<<18&1835008|s<<12&258048|l<<6&4032|u&63,c<65536||c>1114111?d+="����":(c-=65536,d+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),i+=9;continue}d+="�"}return d})}eB.defaultChars=";/?:@&=+$,#";eB.componentChars="";var izt=eB,ozt=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t};function S5(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var azt=/^([a-z0-9.+-]+:)/i,szt=/:[0-9]*$/,lzt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,uzt=["<",">",'"',"`"," ","\r",`
|
|
`," "],czt=["{","}","|","\\","^","`"].concat(uzt),dzt=["'"].concat(czt),cse=["%","/","?",";","#"].concat(dzt),dse=["/","?","#"],hzt=255,hse=/^[+a-z0-9A-Z_-]{0,63}$/,pzt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,pse={javascript:!0,"javascript:":!0},fse={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function fzt(e,t){if(e&&e instanceof S5)return e;var n=new S5;return n.parse(e,t),n}S5.prototype.parse=function(e,t){var n,r,i,o,a,s=e;if(s=s.trim(),!t&&e.split("#").length===1){var l=lzt.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var u=azt.exec(s);if(u&&(u=u[0],i=u.toLowerCase(),this.protocol=u,s=s.substr(u.length)),(t||u||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=s.substr(0,2)==="//",a&&!(u&&pse[u])&&(s=s.substr(2),this.slashes=!0)),!pse[u]&&(a||u&&!fse[u])){var c=-1;for(n=0;n<dse.length;n++)o=s.indexOf(dse[n]),o!==-1&&(c===-1||o<c)&&(c=o);var d,h;for(c===-1?h=s.lastIndexOf("@"):h=s.lastIndexOf("@",c),h!==-1&&(d=s.slice(0,h),s=s.slice(h+1),this.auth=d),c=-1,n=0;n<cse.length;n++)o=s.indexOf(cse[n]),o!==-1&&(c===-1||o<c)&&(c=o);c===-1&&(c=s.length),s[c-1]===":"&&c--;var f=s.slice(0,c);s=s.slice(c),this.parseHost(f),this.hostname=this.hostname||"";var g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){var b=this.hostname.split(/\./);for(n=0,r=b.length;n<r;n++){var v=b[n];if(v&&!v.match(hse)){for(var m="",w=0,k=v.length;w<k;w++)v.charCodeAt(w)>127?m+="x":m+=v[w];if(!m.match(hse)){var T=b.slice(0,n),S=b.slice(n+1),I=v.match(pzt);I&&(T.push(I[1]),S.unshift(I[2])),S.length&&(s=S.join(".")+s),this.hostname=T.join(".");break}}}}this.hostname.length>hzt&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var O=s.indexOf("#");O!==-1&&(this.hash=s.substr(O),s=s.slice(0,O));var y=s.indexOf("?");return y!==-1&&(this.search=s.substr(y),s=s.slice(0,y)),s&&(this.pathname=s),fse[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};S5.prototype.parseHost=function(e){var t=szt.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var gzt=fzt;Nx.encode=nzt;Nx.decode=izt;Nx.format=ozt;Nx.parse=gzt;var $w={},gse,mse;function wke(){return mse||(mse=1,gse=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),gse}var vse,yse;function Cke(){return yse||(yse=1,vse=/[\0-\x1F\x7F-\x9F]/),vse}var bse,wse;function mzt(){return wse||(wse=1,bse=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),bse}var Cse,Ose;function Oke(){return Ose||(Ose=1,Cse=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Cse}var xse;function vzt(){return xse||(xse=1,$w.Any=wke(),$w.Cc=Cke(),$w.Cf=mzt(),$w.P=nY,$w.Z=Oke()),$w}(function(e){function t(x){return Object.prototype.toString.call(x)}function n(x){return t(x)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(x,P){return r.call(x,P)}function o(x){var P=Array.prototype.slice.call(arguments,1);return P.forEach(function($){if($){if(typeof $!="object")throw new TypeError($+"must be object");Object.keys($).forEach(function(L){x[L]=$[L]})}}),x}function a(x,P,$){return[].concat(x.slice(0,P),$,x.slice(P+1))}function s(x){return!(x>=55296&&x<=57343||x>=64976&&x<=65007||(x&65535)===65535||(x&65535)===65534||x>=0&&x<=8||x===11||x>=14&&x<=31||x>=127&&x<=159||x>1114111)}function l(x){if(x>65535){x-=65536;var P=55296+(x>>10),$=56320+(x&1023);return String.fromCharCode(P,$)}return String.fromCharCode(x)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(u.source+"|"+c.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,f=bke;function g(x,P){var $;return i(f,P)?f[P]:P.charCodeAt(0)===35&&h.test(P)&&($=P[1].toLowerCase()==="x"?parseInt(P.slice(2),16):parseInt(P.slice(1),10),s($))?l($):x}function b(x){return x.indexOf("\\")<0?x:x.replace(u,"$1")}function v(x){return x.indexOf("\\")<0&&x.indexOf("&")<0?x:x.replace(d,function(P,$,L){return $||g(P,L)})}var m=/[&<>"]/,w=/[&<>"]/g,k={"&":"&","<":"<",">":">",'"':"""};function T(x){return k[x]}function S(x){return m.test(x)?x.replace(w,T):x}var I=/[.?*+^$[\]\\(){}|-]/g;function O(x){return x.replace(I,"\\$&")}function y(x){switch(x){case 9:case 32:return!0}return!1}function _(x){if(x>=8192&&x<=8202)return!0;switch(x){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var A=nY;function R(x){return A.test(x)}function D(x){switch(x){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function C(x){return x=x.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(x=x.replace(/ẞ/g,"ß")),x.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=Nx,e.lib.ucmicro=vzt(),e.assign=o,e.isString=n,e.has=i,e.unescapeMd=b,e.unescapeAll=v,e.isValidEntityCode=s,e.fromCodePoint=l,e.escapeHtml=S,e.arrayReplaceAt=a,e.isSpace=y,e.isWhiteSpace=_,e.isMdAsciiPunct=D,e.isPunctChar=R,e.escapeRE=O,e.normalizeReference=C})(Mi);var tB={},yzt=function(e,t,n){var r,i,o,a,s=-1,l=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)r++;else if(n)return e.pos=u,-1}}return i&&(s=e.pos),e.pos=u,s},Sse=Mi.unescapeAll,bzt=function(e,t,n){var r,i,o=t,a={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<n;){if(r=e.charCodeAt(o),r===10||r===60)return a;if(r===62)return a.pos=o+1,a.str=Sse(e.slice(t+1,o)),a.ok=!0,a;if(r===92&&o+1<n){o+=2;continue}o++}return a}for(i=0;o<n&&(r=e.charCodeAt(o),!(r===32||r<32||r===127));){if(r===92&&o+1<n){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(r===40&&(i++,i>32))return a;if(r===41){if(i===0)break;i--}o++}return t===o||i!==0||(a.str=Sse(e.slice(t,o)),a.pos=o,a.ok=!0),a},wzt=Mi.unescapeAll,Czt=function(e,t,n){var r,i,o=0,a=t,s={ok:!1,pos:0,lines:0,str:""};if(a>=n||(i=e.charCodeAt(a),i!==34&&i!==39&&i!==40))return s;for(a++,i===40&&(i=41);a<n;){if(r=e.charCodeAt(a),r===i)return s.pos=a+1,s.lines=o,s.str=wzt(e.slice(t+1,a)),s.ok=!0,s;if(r===40&&i===41)return s;r===10?o++:r===92&&a+1<n&&(a++,e.charCodeAt(a)===10&&o++),a++}return s};tB.parseLinkLabel=yzt;tB.parseLinkDestination=bzt;tB.parseLinkTitle=Czt;var Ozt=Mi.assign,xzt=Mi.unescapeAll,i1=Mi.escapeHtml,rf={};rf.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+i1(o.content)+"</code>"};rf.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+i1(e[t].content)+`</code></pre>
|
|
`};rf.fence=function(e,t,n,r,i){var o=e[t],a=o.info?xzt(o.info).trim():"",s="",l="",u,c,d,h,f;return a&&(d=a.split(/(\s+)/g),s=d[0],l=d.slice(2).join("")),n.highlight?u=n.highlight(o.content,s,l)||i1(o.content):u=i1(o.content),u.indexOf("<pre")===0?u+`
|
|
`:a?(c=o.attrIndex("class"),h=o.attrs?o.attrs.slice():[],c<0?h.push(["class",n.langPrefix+s]):(h[c]=h[c].slice(),h[c][1]+=" "+n.langPrefix+s),f={attrs:h},"<pre><code"+i.renderAttrs(f)+">"+u+`</code></pre>
|
|
`):"<pre><code"+i.renderAttrs(o)+">"+u+`</code></pre>
|
|
`};rf.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)};rf.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
`:`<br>
|
|
`};rf.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
`:`<br>
|
|
`:`
|
|
`};rf.text=function(e,t){return i1(e[t].content)};rf.html_block=function(e,t){return e[t].content};rf.html_inline=function(e,t){return e[t].content};function Vx(){this.rules=Ozt({},rf)}Vx.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+i1(e.attrs[t][0])+'="'+i1(e.attrs[t][1])+'"';return r};Vx.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&a.nesting!==-1&&t&&e[t-1].hidden&&(i+=`
|
|
`),i+=(a.nesting===-1?"</":"<")+a.tag,i+=this.renderAttrs(a),a.nesting===0&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,a.nesting===1&&t+1<e.length&&(r=e[t+1],(r.type==="inline"||r.hidden||r.nesting===-1&&r.tag===a.tag)&&(o=!1))),i+=o?`>
|
|
`:">",i)};Vx.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)r=e[a].type,typeof o[r]<"u"?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i};Vx.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)e[i].type==="text"?r+=e[i].content:e[i].type==="image"?r+=this.renderInlineAsText(e[i].children,t,n):e[i].type==="softbreak"&&(r+=`
|
|
`);return r};Vx.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)o=e[r].type,o==="inline"?a+=this.renderInline(e[r].children,t,n):typeof s[o]<"u"?a+=s[o](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a};var Szt=Vx;function Oh(){this.__rules__=[],this.__cache__=null}Oh.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Oh.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};Oh.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null};Oh.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};Oh.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};Oh.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};Oh.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(r){var i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n};Oh.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Oh.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(r){var i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n};Oh.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};var rY=Oh,Azt=/\r\n?|\n/g,Izt=/\0/g,kzt=function(e){var t;t=e.src.replace(Azt,`
|
|
`),t=t.replace(Izt,"�"),e.src=t},Ezt=function(e){var t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},_zt=function(e){var t=e.tokens,n,r,i;for(r=0,i=t.length;r<i;r++)n=t[r],n.type==="inline"&&e.md.inline.parse(n.content,e.md,e.env,n.children)},Tzt=Mi.arrayReplaceAt;function Pzt(e){return/^<a[>\s]/i.test(e)}function Dzt(e){return/^<\/a\s*>/i.test(e)}var Rzt=function(e){var t,n,r,i,o,a,s,l,u,c,d,h,f,g,b,v,m=e.tokens,w;if(e.md.options.linkify){for(n=0,r=m.length;n<r;n++)if(!(m[n].type!=="inline"||!e.md.linkify.pretest(m[n].content)))for(i=m[n].children,f=0,t=i.length-1;t>=0;t--){if(a=i[t],a.type==="link_close"){for(t--;i[t].level!==a.level&&i[t].type!=="link_open";)t--;continue}if(a.type==="html_inline"&&(Pzt(a.content)&&f>0&&f--,Dzt(a.content)&&f++),!(f>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(u=a.content,w=e.md.linkify.match(u),s=[],h=a.level,d=0,w.length>0&&w[0].index===0&&t>0&&i[t-1].type==="text_special"&&(w=w.slice(1)),l=0;l<w.length;l++)g=w[l].url,b=e.md.normalizeLink(g),e.md.validateLink(b)&&(v=w[l].text,w[l].schema?w[l].schema==="mailto:"&&!/^mailto:/i.test(v)?v=e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):v=e.md.normalizeLinkText(v):v=e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),c=w[l].index,c>d&&(o=new e.Token("text","",0),o.content=u.slice(d,c),o.level=h,s.push(o)),o=new e.Token("link_open","a",1),o.attrs=[["href",b]],o.level=h++,o.markup="linkify",o.info="auto",s.push(o),o=new e.Token("text","",0),o.content=v,o.level=h,s.push(o),o=new e.Token("link_close","a",-1),o.level=--h,o.markup="linkify",o.info="auto",s.push(o),d=w[l].lastIndex);d<u.length&&(o=new e.Token("text","",0),o.content=u.slice(d),o.level=h,s.push(o)),m[n].children=i=Tzt(i,t,s)}}}},xke=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,$zt=/\((c|tm|r)\)/i,Mzt=/\((c|tm|r)\)/ig,Lzt={c:"©",r:"®",tm:"™"};function Bzt(e,t){return Lzt[t.toLowerCase()]}function Fzt(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)n=e[t],n.type==="text"&&!r&&(n.content=n.content.replace(Mzt,Bzt)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function Nzt(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)n=e[t],n.type==="text"&&!r&&xke.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}var Vzt=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&($zt.test(e.tokens[t].content)&&Fzt(e.tokens[t].children),xke.test(e.tokens[t].content)&&Nzt(e.tokens[t].children))},Ase=Mi.isWhiteSpace,Ise=Mi.isPunctChar,kse=Mi.isMdAsciiPunct,jzt=/['"]/,Ese=/['"]/g,_se="’";function HD(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Wzt(e,t){var n,r,i,o,a,s,l,u,c,d,h,f,g,b,v,m,w,k,T,S,I;for(T=[],n=0;n<e.length;n++){for(r=e[n],l=e[n].level,w=T.length-1;w>=0&&!(T[w].level<=l);w--);if(T.length=w+1,r.type==="text"){i=r.content,a=0,s=i.length;e:for(;a<s&&(Ese.lastIndex=a,o=Ese.exec(i),!!o);){if(v=m=!0,a=o.index+1,k=o[0]==="'",c=32,o.index-1>=0)c=i.charCodeAt(o.index-1);else for(w=n-1;w>=0&&!(e[w].type==="softbreak"||e[w].type==="hardbreak");w--)if(e[w].content){c=e[w].content.charCodeAt(e[w].content.length-1);break}if(d=32,a<s)d=i.charCodeAt(a);else for(w=n+1;w<e.length&&!(e[w].type==="softbreak"||e[w].type==="hardbreak");w++)if(e[w].content){d=e[w].content.charCodeAt(0);break}if(h=kse(c)||Ise(String.fromCharCode(c)),f=kse(d)||Ise(String.fromCharCode(d)),g=Ase(c),b=Ase(d),b?v=!1:f&&(g||h||(v=!1)),g?m=!1:h&&(b||f||(m=!1)),d===34&&o[0]==='"'&&c>=48&&c<=57&&(m=v=!1),v&&m&&(v=h,m=f),!v&&!m){k&&(r.content=HD(r.content,o.index,_se));continue}if(m){for(w=T.length-1;w>=0&&(u=T[w],!(T[w].level<l));w--)if(u.single===k&&T[w].level===l){u=T[w],k?(S=t.md.options.quotes[2],I=t.md.options.quotes[3]):(S=t.md.options.quotes[0],I=t.md.options.quotes[1]),r.content=HD(r.content,o.index,I),e[u.token].content=HD(e[u.token].content,u.pos,S),a+=I.length-1,u.token===n&&(a+=S.length-1),i=r.content,s=i.length,T.length=w;continue e}}v?T.push({token:n,pos:o.index,single:k,level:l}):m&&k&&(r.content=HD(r.content,o.index,_se))}}}}var Hzt=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!jzt.test(e.tokens[t].content)||Wzt(e.tokens[t].children,e)},zzt=function(e){var t,n,r,i,o,a,s=e.tokens;for(t=0,n=s.length;t<n;t++)if(s[t].type==="inline"){for(r=s[t].children,o=r.length,i=0;i<o;i++)r[i].type==="text_special"&&(r[i].type="text");for(i=a=0;i<o;i++)r[i].type==="text"&&i+1<o&&r[i+1].type==="text"?r[i+1].content=r[i].content+r[i+1].content:(i!==a&&(r[a]=r[i]),a++);i!==a&&(r.length=a)}};function jx(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}jx.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(t=this.attrs,n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1};jx.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};jx.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r};jx.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n};jx.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};var iY=jx,Zzt=iY;function Ske(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Ske.prototype.Token=Zzt;var Gzt=Ske,Qzt=rY,RN=[["normalize",kzt],["block",Ezt],["inline",_zt],["linkify",Rzt],["replacements",Vzt],["smartquotes",Hzt],["text_join",zzt]];function oY(){this.ruler=new Qzt;for(var e=0;e<RN.length;e++)this.ruler.push(RN[e][0],RN[e][1])}oY.prototype.process=function(e){var t,n,r;for(r=this.ruler.getRules(""),t=0,n=r.length;t<n;t++)r[t](e)};oY.prototype.State=Gzt;var Uzt=oY,$N=Mi.isSpace;function MN(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Tse(e){var t=[],n=0,r=e.length,i,o=!1,a=0,s="";for(i=e.charCodeAt(n);n<r;)i===124&&(o?(s+=e.substring(a,n-1),a=n):(t.push(s+e.substring(a,n)),s="",a=n+1)),o=i===92,n++,i=e.charCodeAt(n);return t.push(s+e.substring(a)),t}var Xzt=function(e,t,n,r){var i,o,a,s,l,u,c,d,h,f,g,b,v,m,w,k,T,S;if(t+2>n||(u=t+1,e.sCount[u]<e.blkIndent)||e.sCount[u]-e.blkIndent>=4||(a=e.bMarks[u]+e.tShift[u],a>=e.eMarks[u])||(T=e.src.charCodeAt(a++),T!==124&&T!==45&&T!==58)||a>=e.eMarks[u]||(S=e.src.charCodeAt(a++),S!==124&&S!==45&&S!==58&&!$N(S))||T===45&&$N(S))return!1;for(;a<e.eMarks[u];){if(i=e.src.charCodeAt(a),i!==124&&i!==45&&i!==58&&!$N(i))return!1;a++}for(o=MN(e,t+1),c=o.split("|"),f=[],s=0;s<c.length;s++){if(g=c[s].trim(),!g){if(s===0||s===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;g.charCodeAt(g.length-1)===58?f.push(g.charCodeAt(0)===58?"center":"right"):g.charCodeAt(0)===58?f.push("left"):f.push("")}if(o=MN(e,t).trim(),o.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4||(c=Tse(o),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),d=c.length,d===0||d!==f.length))return!1;if(r)return!0;for(m=e.parentType,e.parentType="table",k=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),h.map=b=[t,0],h=e.push("thead_open","thead",1),h.map=[t,t+1],h=e.push("tr_open","tr",1),h.map=[t,t+1],s=0;s<c.length;s++)h=e.push("th_open","th",1),f[s]&&(h.attrs=[["style","text-align:"+f[s]]]),h=e.push("inline","",0),h.content=c[s].trim(),h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){for(w=!1,s=0,l=k.length;s<l;s++)if(k[s](e,u,n,!0)){w=!0;break}if(w||(o=MN(e,u).trim(),!o)||e.sCount[u]-e.blkIndent>=4)break;for(c=Tse(o),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),u===t+2&&(h=e.push("tbody_open","tbody",1),h.map=v=[t+2,0]),h=e.push("tr_open","tr",1),h.map=[u,u+1],s=0;s<d;s++)h=e.push("td_open","td",1),f[s]&&(h.attrs=[["style","text-align:"+f[s]]]),h=e.push("inline","",0),h.content=c[s]?c[s].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return v&&(h=e.push("tbody_close","tbody",-1),v[1]=u),h=e.push("table_close","table",-1),b[1]=u,e.parentType=m,e.line=u,!0},Yzt=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}return e.line=i,o=e.push("code_block","code",0),o.content=e.getLines(t,i,4+e.blkIndent,!1)+`
|
|
`,o.map=[t,e.line],!0},Kzt=function(e,t,n,r){var i,o,a,s,l,u,c,d=!1,h=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||h+3>f||(i=e.src.charCodeAt(h),i!==126&&i!==96)||(l=h,h=e.skipChars(h,i),o=h-l,o<3)||(c=e.src.slice(l,h),a=e.src.slice(h,f),i===96&&a.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(s=t;s++,!(s>=n||(h=l=e.bMarks[s]+e.tShift[s],f=e.eMarks[s],h<f&&e.sCount[s]<e.blkIndent));)if(e.src.charCodeAt(h)===i&&!(e.sCount[s]-e.blkIndent>=4)&&(h=e.skipChars(h,i),!(h-l<o)&&(h=e.skipSpaces(h),!(h<f)))){d=!0;break}return o=e.sCount[t],e.line=s+(d?1:0),u=e.push("fence","code",0),u.info=a,u.content=e.getLines(t+1,s,o,!0),u.markup=c,u.map=[t,e.line],!0},qzt=Mi.isSpace,Jzt=function(e,t,n,r){var i,o,a,s,l,u,c,d,h,f,g,b,v,m,w,k,T,S,I,O,y=e.lineMax,_=e.bMarks[t]+e.tShift[t],A=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(_)!==62)return!1;if(r)return!0;for(f=[],g=[],m=[],w=[],S=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",d=t;d<n&&(O=e.sCount[d]<e.blkIndent,_=e.bMarks[d]+e.tShift[d],A=e.eMarks[d],!(_>=A));d++){if(e.src.charCodeAt(_++)===62&&!O){for(s=e.sCount[d]+1,e.src.charCodeAt(_)===32?(_++,s++,i=!1,k=!0):e.src.charCodeAt(_)===9?(k=!0,(e.bsCount[d]+s)%4===3?(_++,s++,i=!1):i=!0):k=!1,h=s,f.push(e.bMarks[d]),e.bMarks[d]=_;_<A&&(o=e.src.charCodeAt(_),qzt(o));)o===9?h+=4-(h+e.bsCount[d]+(i?1:0))%4:h++,_++;u=_>=A,g.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(k?1:0),m.push(e.sCount[d]),e.sCount[d]=h-s,w.push(e.tShift[d]),e.tShift[d]=_-e.bMarks[d];continue}if(u)break;for(T=!1,a=0,l=S.length;a<l;a++)if(S[a](e,d,n,!0)){T=!0;break}if(T){e.lineMax=d,e.blkIndent!==0&&(f.push(e.bMarks[d]),g.push(e.bsCount[d]),w.push(e.tShift[d]),m.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}f.push(e.bMarks[d]),g.push(e.bsCount[d]),w.push(e.tShift[d]),m.push(e.sCount[d]),e.sCount[d]=-1}for(b=e.blkIndent,e.blkIndent=0,I=e.push("blockquote_open","blockquote",1),I.markup=">",I.map=c=[t,0],e.md.block.tokenize(e,t,d),I=e.push("blockquote_close","blockquote",-1),I.markup=">",e.lineMax=y,e.parentType=v,c[1]=e.line,a=0;a<w.length;a++)e.bMarks[a+t]=f[a],e.tShift[a+t]=w[a],e.sCount[a+t]=m[a],e.bsCount[a+t]=g[a];return e.blkIndent=b,!0},eZt=Mi.isSpace,tZt=function(e,t,n,r){var i,o,a,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(i=e.src.charCodeAt(l++),i!==42&&i!==45&&i!==95))return!1;for(o=1;l<u;){if(a=e.src.charCodeAt(l++),a!==i&&!eZt(a))return!1;a===i&&o++}return o<3?!1:(r||(e.line=t+1,s=e.push("hr","hr",0),s.map=[t,e.line],s.markup=Array(o+1).join(String.fromCharCode(i))),!0)},Ake=Mi.isSpace;function Pse(e,t){var n,r,i,o;return r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],n=e.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<i&&(o=e.src.charCodeAt(r),!Ake(o))?-1:r}function Dse(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=r,o=e.eMarks[t];if(i+1>=o||(n=e.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=o)return-1;if(n=e.src.charCodeAt(i++),n>=48&&n<=57){if(i-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<o&&(n=e.src.charCodeAt(i),!Ake(n))?-1:i}function nZt(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}var rZt=function(e,t,n,r){var i,o,a,s,l,u,c,d,h,f,g,b,v,m,w,k,T,S,I,O,y,_,A,R,D,C,x,P=t,$=!1,L=!0;if(e.sCount[P]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[P]-e.listIndent>=4&&e.sCount[P]<e.blkIndent)return!1;if(r&&e.parentType==="paragraph"&&e.sCount[P]>=e.blkIndent&&($=!0),(_=Dse(e,P))>=0){if(c=!0,R=e.bMarks[P]+e.tShift[P],v=Number(e.src.slice(R,_-1)),$&&v!==1)return!1}else if((_=Pse(e,P))>=0)c=!1;else return!1;if($&&e.skipSpaces(_)>=e.eMarks[P])return!1;if(r)return!0;for(b=e.src.charCodeAt(_-1),g=e.tokens.length,c?(x=e.push("ordered_list_open","ol",1),v!==1&&(x.attrs=[["start",v]])):x=e.push("bullet_list_open","ul",1),x.map=f=[P,0],x.markup=String.fromCharCode(b),A=!1,C=e.md.block.ruler.getRules("list"),T=e.parentType,e.parentType="list";P<n;){for(y=_,m=e.eMarks[P],u=w=e.sCount[P]+_-(e.bMarks[P]+e.tShift[P]);y<m;){if(i=e.src.charCodeAt(y),i===9)w+=4-(w+e.bsCount[P])%4;else if(i===32)w++;else break;y++}if(o=y,o>=m?l=1:l=w-u,l>4&&(l=1),s=u+l,x=e.push("list_item_open","li",1),x.markup=String.fromCharCode(b),x.map=d=[P,0],c&&(x.info=e.src.slice(R,_-1)),O=e.tight,I=e.tShift[P],S=e.sCount[P],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=s,e.tight=!0,e.tShift[P]=o-e.bMarks[P],e.sCount[P]=w,o>=m&&e.isEmpty(P+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,P,n,!0),(!e.tight||A)&&(L=!1),A=e.line-P>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[P]=I,e.sCount[P]=S,e.tight=O,x=e.push("list_item_close","li",-1),x.markup=String.fromCharCode(b),P=e.line,d[1]=P,P>=n||e.sCount[P]<e.blkIndent||e.sCount[P]-e.blkIndent>=4)break;for(D=!1,a=0,h=C.length;a<h;a++)if(C[a](e,P,n,!0)){D=!0;break}if(D)break;if(c){if(_=Dse(e,P),_<0)break;R=e.bMarks[P]+e.tShift[P]}else if(_=Pse(e,P),_<0)break;if(b!==e.src.charCodeAt(_-1))break}return c?x=e.push("ordered_list_close","ol",-1):x=e.push("bullet_list_close","ul",-1),x.markup=String.fromCharCode(b),f[1]=P,e.line=P,e.parentType=T,L&&nZt(e,g),!0},iZt=Mi.normalizeReference,zD=Mi.isSpace,oZt=function(e,t,n,r){var i,o,a,s,l,u,c,d,h,f,g,b,v,m,w,k,T=0,S=e.bMarks[t]+e.tShift[t],I=e.eMarks[t],O=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(S)!==91)return!1;for(;++S<I;)if(e.src.charCodeAt(S)===93&&e.src.charCodeAt(S-1)!==92){if(S+1===I||e.src.charCodeAt(S+1)!==58)return!1;break}for(s=e.lineMax,w=e.md.block.ruler.getRules("reference"),f=e.parentType,e.parentType="reference";O<s&&!e.isEmpty(O);O++)if(!(e.sCount[O]-e.blkIndent>3)&&!(e.sCount[O]<0)){for(m=!1,u=0,c=w.length;u<c;u++)if(w[u](e,O,s,!0)){m=!0;break}if(m)break}for(v=e.getLines(t,O,e.blkIndent,!1).trim(),I=v.length,S=1;S<I;S++){if(i=v.charCodeAt(S),i===91)return!1;if(i===93){h=S;break}else i===10?T++:i===92&&(S++,S<I&&v.charCodeAt(S)===10&&T++)}if(h<0||v.charCodeAt(h+1)!==58)return!1;for(S=h+2;S<I;S++)if(i=v.charCodeAt(S),i===10)T++;else if(!zD(i))break;if(g=e.md.helpers.parseLinkDestination(v,S,I),!g.ok||(l=e.md.normalizeLink(g.str),!e.md.validateLink(l)))return!1;for(S=g.pos,T+=g.lines,o=S,a=T,b=S;S<I;S++)if(i=v.charCodeAt(S),i===10)T++;else if(!zD(i))break;for(g=e.md.helpers.parseLinkTitle(v,S,I),S<I&&b!==S&&g.ok?(k=g.str,S=g.pos,T+=g.lines):(k="",S=o,T=a);S<I&&(i=v.charCodeAt(S),!!zD(i));)S++;if(S<I&&v.charCodeAt(S)!==10&&k)for(k="",S=o,T=a;S<I&&(i=v.charCodeAt(S),!!zD(i));)S++;return S<I&&v.charCodeAt(S)!==10||(d=iZt(v.slice(1,h)),!d)?!1:(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[d]>"u"&&(e.env.references[d]={title:k,href:l}),e.parentType=f,e.line=t+T+1),!0)},aZt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],nB={},sZt="[a-zA-Z_:][a-zA-Z0-9:._-]*",lZt="[^\"'=<>`\\x00-\\x20]+",uZt="'[^']*'",cZt='"[^"]*"',dZt="(?:"+lZt+"|"+uZt+"|"+cZt+")",hZt="(?:\\s+"+sZt+"(?:\\s*=\\s*"+dZt+")?)",Ike="<[A-Za-z][A-Za-z0-9\\-]*"+hZt+"*\\s*\\/?>",kke="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",pZt="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",fZt="<[?][\\s\\S]*?[?]>",gZt="<![A-Z]+\\s+[^>]*>",mZt="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",vZt=new RegExp("^(?:"+Ike+"|"+kke+"|"+pZt+"|"+fZt+"|"+gZt+"|"+mZt+")"),yZt=new RegExp("^(?:"+Ike+"|"+kke+")");nB.HTML_TAG_RE=vZt;nB.HTML_OPEN_CLOSE_TAG_RE=yZt;var bZt=aZt,wZt=nB.HTML_OPEN_CLOSE_TAG_RE,Mw=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+bZt.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(wZt.source+"\\s*$"),/^$/,!1]],CZt=function(e,t,n,r){var i,o,a,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(l)!==60)return!1;for(s=e.src.slice(l,u),i=0;i<Mw.length&&!Mw[i][0].test(s);i++);if(i===Mw.length)return!1;if(r)return Mw[i][2];if(o=t+1,!Mw[i][1].test(s)){for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(l=e.bMarks[o]+e.tShift[o],u=e.eMarks[o],s=e.src.slice(l,u),Mw[i][1].test(s)){s.length!==0&&o++;break}}return e.line=o,a=e.push("html_block","",0),a.map=[t,o],a.content=e.getLines(t,o,e.blkIndent,!0),!0},Rse=Mi.isSpace,OZt=function(e,t,n,r){var i,o,a,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(i=e.src.charCodeAt(l),i!==35||l>=u))return!1;for(o=1,i=e.src.charCodeAt(++l);i===35&&l<u&&o<=6;)o++,i=e.src.charCodeAt(++l);return o>6||l<u&&!Rse(i)?!1:(r||(u=e.skipSpacesBack(u,l),a=e.skipCharsBack(u,35,l),a>l&&Rse(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,s=e.push("heading_open","h"+String(o),1),s.markup="########".slice(0,o),s.map=[t,e.line],s=e.push("inline","",0),s.content=e.src.slice(l,u).trim(),s.map=[t,e.line],s.children=[],s=e.push("heading_close","h"+String(o),-1),s.markup="########".slice(0,o)),!0)},xZt=function(e,t,n){var r,i,o,a,s,l,u,c,d,h=t+1,f,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(f=e.parentType,e.parentType="paragraph";h<n&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(l=e.bMarks[h]+e.tShift[h],u=e.eMarks[h],l<u&&(d=e.src.charCodeAt(l),(d===45||d===61)&&(l=e.skipChars(l,d),l=e.skipSpaces(l),l>=u)))){c=d===61?1:2;break}if(!(e.sCount[h]<0)){for(i=!1,o=0,a=g.length;o<a;o++)if(g[o](e,h,n,!0)){i=!0;break}if(i)break}}return c?(r=e.getLines(t,h,e.blkIndent,!1).trim(),e.line=h+1,s=e.push("heading_open","h"+String(c),1),s.markup=String.fromCharCode(d),s.map=[t,e.line],s=e.push("inline","",0),s.content=r,s.map=[t,e.line-1],s.children=[],s=e.push("heading_close","h"+String(c),-1),s.markup=String.fromCharCode(d),e.parentType=f,!0):!1},SZt=function(e,t,n){var r,i,o,a,s,l,u=t+1,c=e.md.block.ruler.getRules("paragraph");for(l=e.parentType,e.parentType="paragraph";u<n&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3)&&!(e.sCount[u]<0)){for(i=!1,o=0,a=c.length;o<a;o++)if(c[o](e,u,n,!0)){i=!0;break}if(i)break}return r=e.getLines(t,u,e.blkIndent,!1).trim(),e.line=u,s=e.push("paragraph_open","p",1),s.map=[t,e.line],s=e.push("inline","",0),s.content=r,s.map=[t,e.line],s.children=[],s=e.push("paragraph_close","p",-1),e.parentType=l,!0},Eke=iY,rB=Mi.isSpace;function of(e,t,n,r){var i,o,a,s,l,u,c,d;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",o=this.src,d=!1,a=s=u=c=0,l=o.length;s<l;s++){if(i=o.charCodeAt(s),!d)if(rB(i)){u++,i===9?c+=4-c%4:c++;continue}else d=!0;(i===10||s===l-1)&&(i!==10&&s++,this.bMarks.push(a),this.eMarks.push(s),this.tShift.push(u),this.sCount.push(c),this.bsCount.push(0),d=!1,u=0,c=0,a=s+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}of.prototype.push=function(e,t,n){var r=new Eke(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};of.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};of.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};of.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),!!rB(t));e++);return e};of.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!rB(this.src.charCodeAt(--e)))return e+1;return e};of.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e};of.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e};of.prototype.getLines=function(e,t,n,r){var i,o,a,s,l,u,c,d=e;if(e>=t)return"";for(u=new Array(t-e),i=0;d<t;d++,i++){for(o=0,c=s=this.bMarks[d],d+1<t||r?l=this.eMarks[d]+1:l=this.eMarks[d];s<l&&o<n;){if(a=this.src.charCodeAt(s),rB(a))a===9?o+=4-(o+this.bsCount[d])%4:o++;else if(s-c<this.tShift[d])o++;else break;s++}o>n?u[i]=new Array(o-n+1).join(" ")+this.src.slice(s,l):u[i]=this.src.slice(s,l)}return u.join("")};of.prototype.Token=Eke;var AZt=of,IZt=rY,ZD=[["table",Xzt,["paragraph","reference"]],["code",Yzt],["fence",Kzt,["paragraph","reference","blockquote","list"]],["blockquote",Jzt,["paragraph","reference","blockquote","list"]],["hr",tZt,["paragraph","reference","blockquote","list"]],["list",rZt,["paragraph","reference","blockquote"]],["reference",oZt],["html_block",CZt,["paragraph","reference","blockquote"]],["heading",OZt,["paragraph","reference","blockquote"]],["lheading",xZt],["paragraph",SZt]];function iB(){this.ruler=new IZt;for(var e=0;e<ZD.length;e++)this.ruler.push(ZD[e][0],ZD[e][1],{alt:(ZD[e][2]||[]).slice()})}iB.prototype.tokenize=function(e,t,n){for(var r,i,o,a=this.ruler.getRules(""),s=a.length,l=t,u=!1,c=e.md.options.maxNesting;l<n&&(e.line=l=e.skipEmptyLines(l),!(l>=n||e.sCount[l]<e.blkIndent));){if(e.level>=c){e.line=n;break}for(o=e.line,i=0;i<s;i++)if(r=a[i](e,l,n,!1),r){if(o>=e.line)throw new Error("block rule didn't increment state.line");break}if(!r)throw new Error("none of the block rules matched");e.tight=!u,e.isEmpty(e.line-1)&&(u=!0),l=e.line,l<n&&e.isEmpty(l)&&(u=!0,l++,e.line=l)}};iB.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))};iB.prototype.State=AZt;var kZt=iB;function EZt(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var _Zt=function(e,t){for(var n=e.pos;n<e.posMax&&!EZt(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)},TZt=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,PZt=function(e,t){var n,r,i,o,a,s,l,u;return!e.md.options.linkify||e.linkLevel>0||(n=e.pos,r=e.posMax,n+3>r)||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47||(i=e.pending.match(TZt),!i)||(o=i[1],a=e.md.linkify.matchAtStart(e.src.slice(n-o.length)),!a)||(s=a.url,s.length<=o.length)||(s=s.replace(/\*+$/,""),l=e.md.normalizeLink(s),!e.md.validateLink(l))?!1:(t||(e.pending=e.pending.slice(0,-o.length),u=e.push("link_open","a",1),u.attrs=[["href",l]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(s),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=s.length-o.length,!0)},DZt=Mi.isSpace,RZt=function(e,t){var n,r,i,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(n=e.pending.length-1,r=e.posMax,!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){for(i=n-1;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o<r&&DZt(e.src.charCodeAt(o));)o++;return e.pos=o,!0},$Zt=Mi.isSpace,aY=[];for(var $se=0;$se<256;$se++)aY.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){aY[e.charCodeAt(0)]=1});var MZt=function(e,t){var n,r,i,o,a,s=e.pos,l=e.posMax;if(e.src.charCodeAt(s)!==92||(s++,s>=l))return!1;if(n=e.src.charCodeAt(s),n===10){for(t||e.push("hardbreak","br",0),s++;s<l&&(n=e.src.charCodeAt(s),!!$Zt(n));)s++;return e.pos=s,!0}return o=e.src[s],n>=55296&&n<=56319&&s+1<l&&(r=e.src.charCodeAt(s+1),r>=56320&&r<=57343&&(o+=e.src[s+1],s++)),i="\\"+o,t||(a=e.push("text_special","",0),n<256&&aY[n]!==0?a.content=o:a.content=i,a.markup=i,a.info="escape"),e.pos=s+1,!0},LZt=function(e,t){var n,r,i,o,a,s,l,u,c=e.pos,d=e.src.charCodeAt(c);if(d!==96)return!1;for(n=c,c++,r=e.posMax;c<r&&e.src.charCodeAt(c)===96;)c++;if(i=e.src.slice(n,c),l=i.length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=i),e.pos+=l,!0;for(s=c;(a=e.src.indexOf("`",s))!==-1;){for(s=a+1;s<r&&e.src.charCodeAt(s)===96;)s++;if(u=s-a,u===l)return t||(o=e.push("code_inline","code",0),o.markup=i,o.content=e.src.slice(c,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[u]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0},oB={};oB.tokenize=function(e,t){var n,r,i,o,a,s=e.pos,l=e.src.charCodeAt(s);if(t||l!==126||(r=e.scanDelims(e.pos,!0),o=r.length,a=String.fromCharCode(l),o<2))return!1;for(o%2&&(i=e.push("text","",0),i.content=a,o--),n=0;n<o;n+=2)i=e.push("text","",0),i.content=a+a,e.delimiters.push({marker:l,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function Mse(e,t){var n,r,i,o,a,s=[],l=t.length;for(n=0;n<l;n++)i=t[n],i.marker===126&&i.end!==-1&&(o=t[i.end],a=e.tokens[i.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=e.tokens[o.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",e.tokens[o.token-1].type==="text"&&e.tokens[o.token-1].content==="~"&&s.push(o.token-1));for(;s.length;){for(n=s.pop(),r=n+1;r<e.tokens.length&&e.tokens[r].type==="s_close";)r++;r--,n!==r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}oB.postProcess=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(Mse(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&Mse(e,n[t].delimiters)};var aB={};aB.tokenize=function(e,t){var n,r,i,o=e.pos,a=e.src.charCodeAt(o);if(t||a!==95&&a!==42)return!1;for(r=e.scanDelims(e.pos,a===42),n=0;n<r.length;n++)i=e.push("text","",0),i.content=String.fromCharCode(a),e.delimiters.push({marker:a,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0};function Lse(e,t){var n,r,i,o,a,s,l=t.length;for(n=l-1;n>=0;n--)r=t[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),o=e.tokens[r.token],o.type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",o=e.tokens[i.token],o.type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}aB.postProcess=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(Lse(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&Lse(e,n[t].delimiters)};var BZt=Mi.normalizeReference,LN=Mi.isSpace,FZt=function(e,t){var n,r,i,o,a,s,l,u,c,d="",h="",f=e.pos,g=e.posMax,b=e.pos,v=!0;if(e.src.charCodeAt(e.pos)!==91||(a=e.pos+1,o=e.md.helpers.parseLinkLabel(e,e.pos,!0),o<0))return!1;if(s=o+1,s<g&&e.src.charCodeAt(s)===40){for(v=!1,s++;s<g&&(r=e.src.charCodeAt(s),!(!LN(r)&&r!==10));s++);if(s>=g)return!1;if(b=s,l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),l.ok){for(d=e.md.normalizeLink(l.str),e.md.validateLink(d)?s=l.pos:d="",b=s;s<g&&(r=e.src.charCodeAt(s),!(!LN(r)&&r!==10));s++);if(l=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<g&&b!==s&&l.ok)for(h=l.str,s=l.pos;s<g&&(r=e.src.charCodeAt(s),!(!LN(r)&&r!==10));s++);}(s>=g||e.src.charCodeAt(s)!==41)&&(v=!0),s++}if(v){if(typeof e.env.references>"u")return!1;if(s<g&&e.src.charCodeAt(s)===91?(b=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?i=e.src.slice(b,s++):s=o+1):s=o+1,i||(i=e.src.slice(a,o)),u=e.env.references[BZt(i)],!u)return e.pos=f,!1;d=u.href,h=u.title}return t||(e.pos=a,e.posMax=o,c=e.push("link_open","a",1),c.attrs=n=[["href",d]],h&&n.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,c=e.push("link_close","a",-1)),e.pos=s,e.posMax=g,!0},NZt=Mi.normalizeReference,BN=Mi.isSpace,VZt=function(e,t){var n,r,i,o,a,s,l,u,c,d,h,f,g,b="",v=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(s=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(l=a+1,l<m&&e.src.charCodeAt(l)===40){for(l++;l<m&&(r=e.src.charCodeAt(l),!(!BN(r)&&r!==10));l++);if(l>=m)return!1;for(g=l,c=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),c.ok&&(b=e.md.normalizeLink(c.str),e.md.validateLink(b)?l=c.pos:b=""),g=l;l<m&&(r=e.src.charCodeAt(l),!(!BN(r)&&r!==10));l++);if(c=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<m&&g!==l&&c.ok)for(d=c.str,l=c.pos;l<m&&(r=e.src.charCodeAt(l),!(!BN(r)&&r!==10));l++);else d="";if(l>=m||e.src.charCodeAt(l)!==41)return e.pos=v,!1;l++}else{if(typeof e.env.references>"u")return!1;if(l<m&&e.src.charCodeAt(l)===91?(g=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?o=e.src.slice(g,l++):l=a+1):l=a+1,o||(o=e.src.slice(s,a)),u=e.env.references[NZt(o)],!u)return e.pos=v,!1;b=u.href,d=u.title}return t||(i=e.src.slice(s,a),e.md.inline.parse(i,e.md,e.env,f=[]),h=e.push("image","img",0),h.attrs=n=[["src",b],["alt",""]],h.children=f,h.content=i,d&&n.push(["title",d])),e.pos=l,e.posMax=m,!0},jZt=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,WZt=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,HZt=function(e,t){var n,r,i,o,a,s,l=e.pos;if(e.src.charCodeAt(l)!==60)return!1;for(a=e.pos,s=e.posMax;;){if(++l>=s||(o=e.src.charCodeAt(l),o===60))return!1;if(o===62)break}return n=e.src.slice(a+1,l),WZt.test(n)?(r=e.md.normalizeLink(n),e.md.validateLink(r)?(t||(i=e.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(n),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=n.length+2,!0):!1):jZt.test(n)?(r=e.md.normalizeLink("mailto:"+n),e.md.validateLink(r)?(t||(i=e.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(n),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=n.length+2,!0):!1):!1},zZt=nB.HTML_TAG_RE;function ZZt(e){return/^<a[>\s]/i.test(e)}function GZt(e){return/^<\/a\s*>/i.test(e)}function QZt(e){var t=e|32;return t>=97&&t<=122}var UZt=function(e,t){var n,r,i,o,a=e.pos;return!e.md.options.html||(i=e.posMax,e.src.charCodeAt(a)!==60||a+2>=i)||(n=e.src.charCodeAt(a+1),n!==33&&n!==63&&n!==47&&!QZt(n))||(r=e.src.slice(a).match(zZt),!r)?!1:(t||(o=e.push("html_inline","",0),o.content=r[0],ZZt(o.content)&&e.linkLevel++,GZt(o.content)&&e.linkLevel--),e.pos+=r[0].length,!0)},Bse=bke,XZt=Mi.has,YZt=Mi.isValidEntityCode,Fse=Mi.fromCodePoint,KZt=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,qZt=/^&([a-z][a-z0-9]{1,31});/i,JZt=function(e,t){var n,r,i,o,a=e.pos,s=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=s)return!1;if(n=e.src.charCodeAt(a+1),n===35){if(i=e.src.slice(a).match(KZt),i)return t||(r=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),o=e.push("text_special","",0),o.content=YZt(r)?Fse(r):Fse(65533),o.markup=i[0],o.info="entity"),e.pos+=i[0].length,!0}else if(i=e.src.slice(a).match(qZt),i&&XZt(Bse,i[1]))return t||(o=e.push("text_special","",0),o.content=Bse[i[1]],o.markup=i[0],o.info="entity"),e.pos+=i[0].length,!0;return!1};function Nse(e){var t,n,r,i,o,a,s,l,u={},c=e.length;if(c){var d=0,h=-2,f=[];for(t=0;t<c;t++)if(r=e[t],f.push(0),(e[d].marker!==r.marker||h!==r.token-1)&&(d=t),h=r.token,r.length=r.length||0,!!r.close){for(u.hasOwnProperty(r.marker)||(u[r.marker]=[-1,-1,-1,-1,-1,-1]),o=u[r.marker][(r.open?3:0)+r.length%3],n=d-f[d]-1,a=n;n>o;n-=f[n]+1)if(i=e[n],i.marker===r.marker&&i.open&&i.end<0&&(s=!1,(i.close||r.open)&&(i.length+r.length)%3===0&&(i.length%3!==0||r.length%3!==0)&&(s=!0),!s)){l=n>0&&!e[n-1].open?f[n-1]+1:0,f[t]=t-n+l,f[n]=l,r.open=!1,i.end=t,i.close=!1,a=-1,h=-2;break}a!==-1&&(u[r.marker][(r.open?3:0)+(r.length||0)%3]=a)}}}var eGt=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(Nse(e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&Nse(n[t].delimiters)},tGt=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type==="text"&&t+1<o&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)},sY=iY,Vse=Mi.isWhiteSpace,jse=Mi.isPunctChar,Wse=Mi.isMdAsciiPunct;function N_(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}N_.prototype.pushPending=function(){var e=new sY("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};N_.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new sY(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};N_.prototype.scanDelims=function(e,t){var n=e,r,i,o,a,s,l,u,c,d,h=!0,f=!0,g=this.posMax,b=this.src.charCodeAt(e);for(r=e>0?this.src.charCodeAt(e-1):32;n<g&&this.src.charCodeAt(n)===b;)n++;return o=n-e,i=n<g?this.src.charCodeAt(n):32,u=Wse(r)||jse(String.fromCharCode(r)),d=Wse(i)||jse(String.fromCharCode(i)),l=Vse(r),c=Vse(i),c?h=!1:d&&(l||u||(h=!1)),l?f=!1:u&&(c||d||(f=!1)),t?(a=h,s=f):(a=h&&(!f||u),s=f&&(!h||d)),{can_open:a,can_close:s,length:o}};N_.prototype.Token=sY;var nGt=N_,Hse=rY,FN=[["text",_Zt],["linkify",PZt],["newline",RZt],["escape",MZt],["backticks",LZt],["strikethrough",oB.tokenize],["emphasis",aB.tokenize],["link",FZt],["image",VZt],["autolink",HZt],["html_inline",UZt],["entity",JZt]],NN=[["balance_pairs",eGt],["strikethrough",oB.postProcess],["emphasis",aB.postProcess],["fragments_join",tGt]];function V_(){var e;for(this.ruler=new Hse,e=0;e<FN.length;e++)this.ruler.push(FN[e][0],FN[e][1]);for(this.ruler2=new Hse,e=0;e<NN.length;e++)this.ruler2.push(NN[e][0],NN[e][1])}V_.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if(typeof s[r]<"u"){e.pos=s[r];return}if(e.level<a){for(n=0;n<o;n++)if(e.level++,t=i[n](e,!0),e.level--,t){if(r>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;t||e.pos++,s[r]=e.pos};V_.prototype.tokenize=function(e){for(var t,n,r,i=this.ruler.getRules(""),o=i.length,a=e.posMax,s=e.md.options.maxNesting;e.pos<a;){if(r=e.pos,e.level<s){for(n=0;n<o;n++)if(t=i[n](e,!1),t){if(r>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(t){if(e.pos>=a)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};V_.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),o=this.ruler2.getRules(""),a=o.length,i=0;i<a;i++)o[i](s)};V_.prototype.State=nGt;var rGt=V_,zse,Zse;function iGt(){return Zse||(Zse=1,zse=function(e){var t={};e=e||{},t.src_Any=wke().source,t.src_Cc=Cke().source,t.src_Z=Oke().source,t.src_P=nY.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),zse}function QH(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function sB(e){return Object.prototype.toString.call(e)}function oGt(e){return sB(e)==="[object String]"}function aGt(e){return sB(e)==="[object Object]"}function sGt(e){return sB(e)==="[object RegExp]"}function Gse(e){return sB(e)==="[object Function]"}function lGt(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var _ke={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function uGt(e){return Object.keys(e||{}).reduce(function(t,n){return t||_ke.hasOwnProperty(n)},!1)}var cGt={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},dGt="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",hGt="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function pGt(e){e.__index__=-1,e.__text_cache__=""}function fGt(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Qse(){return function(e,t){t.normalize(e)}}function A5(e){var t=e.re=iGt()(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(dGt),n.push(t.src_xn),t.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];e.__compiled__={};function o(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){var l=e.__schemas__[s];if(l!==null){var u={validate:null,link:null};if(e.__compiled__[s]=u,aGt(l)){sGt(l.validate)?u.validate=fGt(l.validate):Gse(l.validate)?u.validate=l.validate:o(s,l),Gse(l.normalize)?u.normalize=l.normalize:l.normalize?o(s,l):u.normalize=Qse();return}if(oGt(l)){i.push(s);return}o(s,l)}}),i.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:Qse()};var a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(lGt).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),pGt(e)}function gGt(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function UH(e,t){var n=new gGt(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function oc(e,t){if(!(this instanceof oc))return new oc(e,t);t||uGt(e)&&(t=e,e={}),this.__opts__=QH({},_ke,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=QH({},cGt,e),this.__compiled__={},this.__tlds__=hGt,this.__tlds_replaced__=!1,this.re={},A5(this)}oc.prototype.add=function(e,t){return this.__schemas__[e]=t,A5(this),this};oc.prototype.set=function(e){return this.__opts__=QH(this.__opts__,e),this};oc.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,l,u;if(this.re.schema_test.test(e)){for(s=this.re.schema_search,s.lastIndex=0;(t=s.exec(e))!==null;)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=e.indexOf("@"),u>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};oc.prototype.pretest=function(e){return this.re.pretest.test(e)};oc.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0};oc.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(UH(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(UH(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null};oc.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,UH(this,0)):null};oc.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,r,i){return n!==i[r-1]}).reverse(),A5(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,A5(this),this)};oc.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};oc.prototype.onCompile=function(){};var mGt=oc;const nO=2147483647,wp=36,lY=1,dE=26,vGt=38,yGt=700,Tke=72,Pke=128,Dke="-",bGt=/^xn--/,wGt=/[^\0-\x7F]/,CGt=/[\x2E\u3002\uFF0E\uFF61]/g,OGt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},VN=wp-lY,Cp=Math.floor,jN=String.fromCharCode;function av(e){throw new RangeError(OGt[e])}function xGt(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Rke(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(CGt,".");const i=e.split("."),o=xGt(i,t).join(".");return r+o}function uY(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}const $ke=e=>String.fromCodePoint(...e),SGt=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:wp},Use=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Mke=function(e,t,n){let r=0;for(e=n?Cp(e/yGt):e>>1,e+=Cp(e/t);e>VN*dE>>1;r+=wp)e=Cp(e/VN);return Cp(r+(VN+1)*e/(e+vGt))},cY=function(e){const t=[],n=e.length;let r=0,i=Pke,o=Tke,a=e.lastIndexOf(Dke);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&av("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const l=r;for(let c=1,d=wp;;d+=wp){s>=n&&av("invalid-input");const h=SGt(e.charCodeAt(s++));h>=wp&&av("invalid-input"),h>Cp((nO-r)/c)&&av("overflow"),r+=h*c;const f=d<=o?lY:d>=o+dE?dE:d-o;if(h<f)break;const g=wp-f;c>Cp(nO/g)&&av("overflow"),c*=g}const u=t.length+1;o=Mke(r-l,u,l==0),Cp(r/u)>nO-i&&av("overflow"),i+=Cp(r/u),r%=u,t.splice(r++,0,i)}return String.fromCodePoint(...t)},dY=function(e){const t=[];e=uY(e);const n=e.length;let r=Pke,i=0,o=Tke;for(const l of e)l<128&&t.push(jN(l));const a=t.length;let s=a;for(a&&t.push(Dke);s<n;){let l=nO;for(const c of e)c>=r&&c<l&&(l=c);const u=s+1;l-r>Cp((nO-i)/u)&&av("overflow"),i+=(l-r)*u,r=l;for(const c of e)if(c<r&&++i>nO&&av("overflow"),c===r){let d=i;for(let h=wp;;h+=wp){const f=h<=o?lY:h>=o+dE?dE:h-o;if(d<f)break;const g=d-f,b=wp-f;t.push(jN(Use(f+g%b,0))),d=Cp(g/b)}t.push(jN(Use(d,0))),o=Mke(i,u,s===a),i=0,++s}++i,++r}return t.join("")},Lke=function(e){return Rke(e,function(t){return bGt.test(t)?cY(t.slice(4).toLowerCase()):t})},Bke=function(e){return Rke(e,function(t){return wGt.test(t)?"xn--"+dY(t):t})},AGt={version:"2.3.1",ucs2:{decode:uY,encode:$ke},decode:cY,encode:dY,toASCII:Bke,toUnicode:Lke},IGt=Object.freeze(Object.defineProperty({__proto__:null,decode:cY,default:AGt,encode:dY,toASCII:Bke,toUnicode:Lke,ucs2decode:uY,ucs2encode:$ke},Symbol.toStringTag,{value:"Module"})),kGt=cXe(IGt);var EGt={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},_Gt={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},TGt={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Vk=Mi,PGt=tB,DGt=Szt,RGt=Uzt,$Gt=kZt,MGt=rGt,LGt=mGt,cb=Nx,Fke=kGt,BGt={default:EGt,zero:_Gt,commonmark:TGt},FGt=/^(vbscript|javascript|file|data):/,NGt=/^data:image\/(gif|png|jpeg|webp);/;function VGt(e){var t=e.trim().toLowerCase();return FGt.test(t)?!!NGt.test(t):!0}var Nke=["http:","https:","mailto:"];function jGt(e){var t=cb.parse(e,!0);if(t.hostname&&(!t.protocol||Nke.indexOf(t.protocol)>=0))try{t.hostname=Fke.toASCII(t.hostname)}catch{}return cb.encode(cb.format(t))}function WGt(e){var t=cb.parse(e,!0);if(t.hostname&&(!t.protocol||Nke.indexOf(t.protocol)>=0))try{t.hostname=Fke.toUnicode(t.hostname)}catch{}return cb.decode(cb.format(t),cb.decode.defaultChars+"%")}function cd(e,t){if(!(this instanceof cd))return new cd(e,t);t||Vk.isString(e)||(t=e||{},e="default"),this.inline=new MGt,this.block=new $Gt,this.core=new RGt,this.renderer=new DGt,this.linkify=new LGt,this.validateLink=VGt,this.normalizeLink=jGt,this.normalizeLinkText=WGt,this.utils=Vk,this.helpers=Vk.assign({},PGt),this.options={},this.configure(e),t&&this.set(t)}cd.prototype.set=function(e){return Vk.assign(this.options,e),this};cd.prototype.configure=function(e){var t=this,n;if(Vk.isString(e)&&(n=e,e=BGt[n],!e))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this};cd.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};cd.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};cd.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};cd.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};cd.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};cd.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};cd.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var HGt=cd,zGt=HGt;const ZGt=pl(zGt),Xse=new Set([!0,!1,"alt","title"]);function Vke(e,t){return(Array.isArray(e)?e:[]).filter(([n])=>n!==t)}function jke(e,t){e&&e.attrs&&(e.attrs=Vke(e.attrs,t))}function GGt(e,t){if(!Xse.has(e))throw new TypeError(`figcaption must be one of: ${[...Xse]}.`);if(e==="alt")return t.content;const n=t.attrs.find(([r])=>r==="title");return Array.isArray(n)&&n[1]?(jke(t,"title"),n[1]):void 0}function QGt(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(n){let r=1;for(let i=1,o=n.tokens.length;i<o-1;++i){const a=n.tokens[i];if(a.type!=="inline"||!a.children||a.children.length!==1&&a.children.length!==3||a.children.length===1&&a.children[0].type!=="image")continue;if(a.children.length===3){const[u,c,d]=a.children;if(u.type!=="link_open"||c.type!=="image"||d.type!=="link_close")continue}if(i!==0&&n.tokens[i-1].type!=="paragraph_open"||i!==o-1&&n.tokens[i+1].type!=="paragraph_close")continue;const s=n.tokens[i-1];let l;if(s.type="figure_open",s.tag="figure",n.tokens[i+1].type="figure_close",n.tokens[i+1].tag="figure",t.dataType&&n.tokens[i-1].attrPush(["data-type","image"]),t.link&&a.children.length===1){[l]=a.children;const u=new n.Token("link_open","a",1);u.attrPush(["href",l.attrGet("src")]),a.children.unshift(u),a.children.push(new n.Token("link_close","a",-1))}if(l=a.children.length===1?a.children[0]:a.children[1],t.figcaption){const u=GGt(t.figcaption,l);if(u){const[c]=e.parseInline(u,n.env);a.children.push(new n.Token("figcaption_open","figcaption",1)),a.children.push(...c.children),a.children.push(new n.Token("figcaption_close","figcaption",-1)),l.attrs&&(l.attrs=Vke(l.attrs,"title"))}}if(t.copyAttrs&&l.attrs){const u=t.copyAttrs===!0?"":t.copyAttrs;s.attrs=l.attrs.filter(([c])=>c.match(u)).map(c=>Array.from(c))}if(t.tabindex&&(n.tokens[i-1].attrPush(["tabindex",r]),r++),t.lazy&&(l.attrs.some(([u])=>u==="loading")||l.attrs.push(["loading","lazy"])),t.async&&(l.attrs.some(([u])=>u==="decoding")||l.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let u=!1;for(let c=0,d=l.attrs.length;c<d&&!u;c++){const h=l.attrs[c];h[0]==="class"&&(h[1]=`${h[1]} ${t.classes}`,u=!0)}u||l.attrs.push(["class",t.classes])}if(t.removeSrc){const u=l.attrs.find(([c])=>c==="src");l.attrs.push(["data-src",u[1]]),jke(l,"src")}}})}var XH=!0,Wke=!1,Hke=!1,UGt=function(e,t){t&&(XH=!t.enabled,Wke=!!t.label,Hke=!!t.labelAfter),e.core.ruler.after("inline","github-task-lists",function(n){for(var r=n.tokens,i=2;i<r.length;i++)YGt(r,i)&&(KGt(r[i],n.Token),Yse(r[i-2],"class","task-list-item"+(XH?"":" enabled")),Yse(r[XGt(r,i-2)],"class","contains-task-list"))})};function Yse(e,t,n){var r=e.attrIndex(t),i=[t,n];r<0?e.attrPush(i):e.attrs[r]=i}function XGt(e,t){for(var n=e[t].level-1,r=t-1;r>=0;r--)if(e[r].level===n)return r;return-1}function YGt(e,t){return nQt(e[t])&&rQt(e[t-1])&&iQt(e[t-2])&&oQt(e[t])}function KGt(e,t){if(e.children.unshift(qGt(e,t)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),Wke)if(Hke){e.children.pop();var n="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+n+'">',e.children.push(tQt(e.content,n,t))}else e.children.unshift(JGt(t)),e.children.push(eQt(t))}function qGt(e,t){var n=new t("html_inline","",0),r=XH?' disabled="" ':"";return e.content.indexOf("[ ] ")===0?n.content='<input class="task-list-item-checkbox"'+r+'type="checkbox">':(e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0)&&(n.content='<input class="task-list-item-checkbox" checked=""'+r+'type="checkbox">'),n}function JGt(e){var t=new e("html_inline","",0);return t.content="<label>",t}function eQt(e){var t=new e("html_inline","",0);return t.content="</label>",t}function tQt(e,t,n){var r=new n("html_inline","",0);return r.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",r.attrs=[{for:t}],r}function nQt(e){return e.type==="inline"}function rQt(e){return e.type==="paragraph_open"}function iQt(e){return e.type==="list_item_open"}function oQt(e){return e.content.indexOf("[ ] ")===0||e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0}const aQt=pl(UGt),jk=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,zke=new Set,sQt=(e,t,n,r)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},lQt=e=>!zke.has(e),mv=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Zke=e=>mv(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?j3:null:null;class j3 extends Array{constructor(t){super(t),this.fill(0)}}var Wk;const Gke=class tk{constructor(t,n){if(Ps(this,"heap"),Ps(this,"length"),!it(tk,Wk))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}static create(t){const n=Zke(t);if(!n)return[];fr(tk,Wk,!0);const r=new tk(t,n);return fr(tk,Wk,!1),r}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}};Wk=new WeakMap,Yr(Gke,Wk,!1);let uQt=Gke;var lp,Dc,Qf,qh,Hk,fs,Mc,gs,Wo,Nr,eu,Lc,El,$s,rp,Xs,sv,lv,tp,Yf,db,ju,W3,YH,$C,uv,I5,Bc,KH,Qke,rO,zk,k5,Hf,Jm,zf,ev,H3,WN,Zk,E5,nk,z3,ko,jo,Z3,HN,OC,rk;const cQt=class Uke{constructor(t){Yr(this,W3),Yr(this,KH),Yr(this,Hf),Yr(this,zf),Yr(this,H3),Yr(this,Zk),Yr(this,nk),Yr(this,ko),Yr(this,Z3),Yr(this,OC),Yr(this,lp,void 0),Yr(this,Dc,void 0),Yr(this,Qf,void 0),Yr(this,qh,void 0),Yr(this,Hk,void 0),Ps(this,"ttl"),Ps(this,"ttlResolution"),Ps(this,"ttlAutopurge"),Ps(this,"updateAgeOnGet"),Ps(this,"updateAgeOnHas"),Ps(this,"allowStale"),Ps(this,"noDisposeOnSet"),Ps(this,"noUpdateTTL"),Ps(this,"maxEntrySize"),Ps(this,"sizeCalculation"),Ps(this,"noDeleteOnFetchRejection"),Ps(this,"noDeleteOnStaleGet"),Ps(this,"allowStaleOnFetchAbort"),Ps(this,"allowStaleOnFetchRejection"),Ps(this,"ignoreFetchAbort"),Yr(this,fs,void 0),Yr(this,Mc,void 0),Yr(this,gs,void 0),Yr(this,Wo,void 0),Yr(this,Nr,void 0),Yr(this,eu,void 0),Yr(this,Lc,void 0),Yr(this,El,void 0),Yr(this,$s,void 0),Yr(this,rp,void 0),Yr(this,Xs,void 0),Yr(this,sv,void 0),Yr(this,lv,void 0),Yr(this,tp,void 0),Yr(this,Yf,void 0),Yr(this,db,void 0),Yr(this,ju,void 0),Yr(this,$C,()=>{}),Yr(this,uv,()=>{}),Yr(this,I5,()=>{}),Yr(this,Bc,()=>!1),Yr(this,rO,O=>{}),Yr(this,zk,(O,y,_)=>{}),Yr(this,k5,(O,y,_,A)=>{if(_||A)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:u,disposeAfter:c,noDisposeOnSet:d,noUpdateTTL:h,maxSize:f=0,maxEntrySize:g=0,sizeCalculation:b,fetchMethod:v,noDeleteOnFetchRejection:m,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:T,ignoreFetchAbort:S}=t;if(n!==0&&!mv(n))throw new TypeError("max option must be a nonnegative integer");const I=n?Zke(n):Array;if(!I)throw new Error("invalid max value: "+n);if(fr(this,lp,n),fr(this,Dc,f),this.maxEntrySize=g||it(this,Dc),this.sizeCalculation=b,this.sizeCalculation){if(!it(this,Dc)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(v!==void 0&&typeof v!="function")throw new TypeError("fetchMethod must be a function if specified");if(fr(this,Hk,v),fr(this,db,!!v),fr(this,gs,new Map),fr(this,Wo,new Array(n).fill(void 0)),fr(this,Nr,new Array(n).fill(void 0)),fr(this,eu,new I(n)),fr(this,Lc,new I(n)),fr(this,El,0),fr(this,$s,0),fr(this,rp,uQt.create(n)),fr(this,fs,0),fr(this,Mc,0),typeof u=="function"&&fr(this,Qf,u),typeof c=="function"?(fr(this,qh,c),fr(this,Xs,[])):(fr(this,qh,void 0),fr(this,Xs,void 0)),fr(this,Yf,!!it(this,Qf)),fr(this,ju,!!it(this,qh)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!m,this.allowStaleOnFetchRejection=!!k,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!S,this.maxEntrySize!==0){if(it(this,Dc)!==0&&!mv(it(this,Dc)))throw new TypeError("maxSize must be a positive integer if specified");if(!mv(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Jn(this,KH,Qke).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=mv(i)||i===0?i:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!mv(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Jn(this,W3,YH).call(this)}if(it(this,lp)===0&&this.ttl===0&&it(this,Dc)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!it(this,lp)&&!it(this,Dc)){const O="LRU_CACHE_UNBOUNDED";lQt(O)&&(zke.add(O),sQt("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",O,Uke))}}static unsafeExposeInternals(t){return{starts:it(t,lv),ttls:it(t,tp),sizes:it(t,sv),keyMap:it(t,gs),keyList:it(t,Wo),valList:it(t,Nr),next:it(t,eu),prev:it(t,Lc),get head(){return it(t,El)},get tail(){return it(t,$s)},free:it(t,rp),isBackgroundFetch:n=>{var r;return Jn(r=t,ko,jo).call(r,n)},backgroundFetch:(n,r,i,o)=>{var a;return Jn(a=t,nk,z3).call(a,n,r,i,o)},moveToTail:n=>{var r;return Jn(r=t,OC,rk).call(r,n)},indexes:n=>{var r;return Jn(r=t,Hf,Jm).call(r,n)},rindexes:n=>{var r;return Jn(r=t,zf,ev).call(r,n)},isStale:n=>{var r;return it(r=t,Bc).call(r,n)}}}get max(){return it(this,lp)}get maxSize(){return it(this,Dc)}get calculatedSize(){return it(this,Mc)}get size(){return it(this,fs)}get fetchMethod(){return it(this,Hk)}get dispose(){return it(this,Qf)}get disposeAfter(){return it(this,qh)}getRemainingTTL(t){return it(this,gs).has(t)?1/0:0}*entries(){for(const t of Jn(this,Hf,Jm).call(this))it(this,Nr)[t]!==void 0&&it(this,Wo)[t]!==void 0&&!Jn(this,ko,jo).call(this,it(this,Nr)[t])&&(yield[it(this,Wo)[t],it(this,Nr)[t]])}*rentries(){for(const t of Jn(this,zf,ev).call(this))it(this,Nr)[t]!==void 0&&it(this,Wo)[t]!==void 0&&!Jn(this,ko,jo).call(this,it(this,Nr)[t])&&(yield[it(this,Wo)[t],it(this,Nr)[t]])}*keys(){for(const t of Jn(this,Hf,Jm).call(this)){const n=it(this,Wo)[t];n!==void 0&&!Jn(this,ko,jo).call(this,it(this,Nr)[t])&&(yield n)}}*rkeys(){for(const t of Jn(this,zf,ev).call(this)){const n=it(this,Wo)[t];n!==void 0&&!Jn(this,ko,jo).call(this,it(this,Nr)[t])&&(yield n)}}*values(){for(const t of Jn(this,Hf,Jm).call(this))it(this,Nr)[t]!==void 0&&!Jn(this,ko,jo).call(this,it(this,Nr)[t])&&(yield it(this,Nr)[t])}*rvalues(){for(const t of Jn(this,zf,ev).call(this))it(this,Nr)[t]!==void 0&&!Jn(this,ko,jo).call(this,it(this,Nr)[t])&&(yield it(this,Nr)[t])}[Symbol.iterator](){return this.entries()}find(t,n={}){for(const r of Jn(this,Hf,Jm).call(this)){const i=it(this,Nr)[r],o=Jn(this,ko,jo).call(this,i)?i.__staleWhileFetching:i;if(o!==void 0&&t(o,it(this,Wo)[r],this))return this.get(it(this,Wo)[r],n)}}forEach(t,n=this){for(const r of Jn(this,Hf,Jm).call(this)){const i=it(this,Nr)[r],o=Jn(this,ko,jo).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(n,o,it(this,Wo)[r],this)}}rforEach(t,n=this){for(const r of Jn(this,zf,ev).call(this)){const i=it(this,Nr)[r],o=Jn(this,ko,jo).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(n,o,it(this,Wo)[r],this)}}purgeStale(){let t=!1;for(const n of Jn(this,zf,ev).call(this,{allowStale:!0}))it(this,Bc).call(this,n)&&(this.delete(it(this,Wo)[n]),t=!0);return t}dump(){const t=[];for(const n of Jn(this,Hf,Jm).call(this,{allowStale:!0})){const r=it(this,Wo)[n],i=it(this,Nr)[n],o=Jn(this,ko,jo).call(this,i)?i.__staleWhileFetching:i;if(o===void 0||r===void 0)continue;const a={value:o};if(it(this,tp)&&it(this,lv)){a.ttl=it(this,tp)[n];const s=jk.now()-it(this,lv)[n];a.start=Math.floor(Date.now()-s)}it(this,sv)&&(a.size=it(this,sv)[n]),t.unshift([r,a])}return t}load(t){this.clear();for(const[n,r]of t){if(r.start){const i=Date.now()-r.start;r.start=jk.now()-i}this.set(n,r.value,r)}}set(t,n,r={}){var i,o,a;const{ttl:s=this.ttl,start:l,noDisposeOnSet:u=this.noDisposeOnSet,sizeCalculation:c=this.sizeCalculation,status:d}=r;let{noUpdateTTL:h=this.noUpdateTTL}=r;const f=it(this,k5).call(this,t,n,r.size||0,c);if(this.maxEntrySize&&f>this.maxEntrySize)return d&&(d.set="miss",d.maxEntrySizeExceeded=!0),this.delete(t),this;let g=it(this,fs)===0?void 0:it(this,gs).get(t);if(g===void 0)g=it(this,fs)===0?it(this,$s):it(this,rp).length!==0?it(this,rp).pop():it(this,fs)===it(this,lp)?Jn(this,Zk,E5).call(this,!1):it(this,fs),it(this,Wo)[g]=t,it(this,Nr)[g]=n,it(this,gs).set(t,g),it(this,eu)[it(this,$s)]=g,it(this,Lc)[g]=it(this,$s),fr(this,$s,g),X7(this,fs)._++,it(this,zk).call(this,g,f,d),d&&(d.set="add"),h=!1;else{Jn(this,OC,rk).call(this,g);const b=it(this,Nr)[g];if(n!==b){if(it(this,db)&&Jn(this,ko,jo).call(this,b)?b.__abortController.abort(new Error("replaced")):u||(it(this,Yf)&&((i=it(this,Qf))==null||i.call(this,b,t,"set")),it(this,ju)&&((o=it(this,Xs))==null||o.push([b,t,"set"]))),it(this,rO).call(this,g),it(this,zk).call(this,g,f,d),it(this,Nr)[g]=n,d){d.set="replace";const v=b&&Jn(this,ko,jo).call(this,b)?b.__staleWhileFetching:b;v!==void 0&&(d.oldValue=v)}}else d&&(d.set="update")}if(s!==0&&!it(this,tp)&&Jn(this,W3,YH).call(this),it(this,tp)&&(h||it(this,I5).call(this,g,s,l),d&&it(this,uv).call(this,d,g)),!u&&it(this,ju)&&it(this,Xs)){const b=it(this,Xs);let v;for(;v=b==null?void 0:b.shift();)(a=it(this,qh))==null||a.call(this,...v)}return this}pop(){var t;try{for(;it(this,fs);){const n=it(this,Nr)[it(this,El)];if(Jn(this,Zk,E5).call(this,!0),Jn(this,ko,jo).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(it(this,ju)&&it(this,Xs)){const n=it(this,Xs);let r;for(;r=n==null?void 0:n.shift();)(t=it(this,qh))==null||t.call(this,...r)}}}has(t,n={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=n,o=it(this,gs).get(t);if(o!==void 0){const a=it(this,Nr)[o];if(Jn(this,ko,jo).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(it(this,Bc).call(this,o))i&&(i.has="stale",it(this,uv).call(this,i,o));else return r&&it(this,$C).call(this,o),i&&(i.has="hit",it(this,uv).call(this,i,o)),!0}else i&&(i.has="miss");return!1}peek(t,n={}){const{allowStale:r=this.allowStale}=n,i=it(this,gs).get(t);if(i!==void 0&&(r||!it(this,Bc).call(this,i))){const o=it(this,Nr)[i];return Jn(this,ko,jo).call(this,o)?o.__staleWhileFetching:o}}async fetch(t,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:g=this.allowStaleOnFetchAbort,context:b,forceRefresh:v=!1,status:m,signal:w}=n;if(!it(this,db))return m&&(m.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:o,status:m});const k={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:o,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:u,noUpdateTTL:c,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:g,ignoreFetchAbort:f,status:m,signal:w};let T=it(this,gs).get(t);if(T===void 0){m&&(m.fetch="miss");const S=Jn(this,nk,z3).call(this,t,T,k,b);return S.__returned=S}else{const S=it(this,Nr)[T];if(Jn(this,ko,jo).call(this,S)){const _=r&&S.__staleWhileFetching!==void 0;return m&&(m.fetch="inflight",_&&(m.returnedStale=!0)),_?S.__staleWhileFetching:S.__returned=S}const I=it(this,Bc).call(this,T);if(!v&&!I)return m&&(m.fetch="hit"),Jn(this,OC,rk).call(this,T),i&&it(this,$C).call(this,T),m&&it(this,uv).call(this,m,T),S;const O=Jn(this,nk,z3).call(this,t,T,k,b),y=O.__staleWhileFetching!==void 0&&r;return m&&(m.fetch=I?"stale":"refresh",y&&I&&(m.returnedStale=!0)),y?O.__staleWhileFetching:O.__returned=O}}get(t,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=n,s=it(this,gs).get(t);if(s!==void 0){const l=it(this,Nr)[s],u=Jn(this,ko,jo).call(this,l);return a&&it(this,uv).call(this,a,s),it(this,Bc).call(this,s)?(a&&(a.get="stale"),u?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(o||this.delete(t),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),u?l.__staleWhileFetching:(Jn(this,OC,rk).call(this,s),i&&it(this,$C).call(this,s),l))}else a&&(a.get="miss")}delete(t){var n,r,i,o;let a=!1;if(it(this,fs)!==0){const s=it(this,gs).get(t);if(s!==void 0)if(a=!0,it(this,fs)===1)this.clear();else{it(this,rO).call(this,s);const l=it(this,Nr)[s];Jn(this,ko,jo).call(this,l)?l.__abortController.abort(new Error("deleted")):(it(this,Yf)||it(this,ju))&&(it(this,Yf)&&((n=it(this,Qf))==null||n.call(this,l,t,"delete")),it(this,ju)&&((r=it(this,Xs))==null||r.push([l,t,"delete"]))),it(this,gs).delete(t),it(this,Wo)[s]=void 0,it(this,Nr)[s]=void 0,s===it(this,$s)?fr(this,$s,it(this,Lc)[s]):s===it(this,El)?fr(this,El,it(this,eu)[s]):(it(this,eu)[it(this,Lc)[s]]=it(this,eu)[s],it(this,Lc)[it(this,eu)[s]]=it(this,Lc)[s]),X7(this,fs)._--,it(this,rp).push(s)}}if(it(this,ju)&&(i=it(this,Xs))!=null&&i.length){const s=it(this,Xs);let l;for(;l=s==null?void 0:s.shift();)(o=it(this,qh))==null||o.call(this,...l)}return a}clear(){var t,n,r;for(const i of Jn(this,zf,ev).call(this,{allowStale:!0})){const o=it(this,Nr)[i];if(Jn(this,ko,jo).call(this,o))o.__abortController.abort(new Error("deleted"));else{const a=it(this,Wo)[i];it(this,Yf)&&((t=it(this,Qf))==null||t.call(this,o,a,"delete")),it(this,ju)&&((n=it(this,Xs))==null||n.push([o,a,"delete"]))}}if(it(this,gs).clear(),it(this,Nr).fill(void 0),it(this,Wo).fill(void 0),it(this,tp)&&it(this,lv)&&(it(this,tp).fill(0),it(this,lv).fill(0)),it(this,sv)&&it(this,sv).fill(0),fr(this,El,0),fr(this,$s,0),it(this,rp).length=0,fr(this,Mc,0),fr(this,fs,0),it(this,ju)&&it(this,Xs)){const i=it(this,Xs);let o;for(;o=i==null?void 0:i.shift();)(r=it(this,qh))==null||r.call(this,...o)}}};lp=new WeakMap,Dc=new WeakMap,Qf=new WeakMap,qh=new WeakMap,Hk=new WeakMap,fs=new WeakMap,Mc=new WeakMap,gs=new WeakMap,Wo=new WeakMap,Nr=new WeakMap,eu=new WeakMap,Lc=new WeakMap,El=new WeakMap,$s=new WeakMap,rp=new WeakMap,Xs=new WeakMap,sv=new WeakMap,lv=new WeakMap,tp=new WeakMap,Yf=new WeakMap,db=new WeakMap,ju=new WeakMap,W3=new WeakSet,YH=function(){const e=new j3(it(this,lp)),t=new j3(it(this,lp));fr(this,tp,e),fr(this,lv,t),fr(this,I5,(i,o,a=jk.now())=>{if(t[i]=o!==0?a:0,e[i]=o,o!==0&&this.ttlAutopurge){const s=setTimeout(()=>{it(this,Bc).call(this,i)&&this.delete(it(this,Wo)[i])},o+1);s.unref&&s.unref()}}),fr(this,$C,i=>{t[i]=e[i]!==0?jk.now():0}),fr(this,uv,(i,o)=>{if(e[o]){const a=e[o],s=t[o];i.ttl=a,i.start=s,i.now=n||r(),i.remainingTTL=i.now+a-s}});let n=0;const r=()=>{const i=jk.now();if(this.ttlResolution>0){n=i;const o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return i};this.getRemainingTTL=i=>{const o=it(this,gs).get(i);return o===void 0?0:e[o]===0||t[o]===0?1/0:t[o]+e[o]-(n||r())},fr(this,Bc,i=>e[i]!==0&&t[i]!==0&&(n||r())-t[i]>e[i])},$C=new WeakMap,uv=new WeakMap,I5=new WeakMap,Bc=new WeakMap,KH=new WeakSet,Qke=function(){const e=new j3(it(this,lp));fr(this,Mc,0),fr(this,sv,e),fr(this,rO,t=>{fr(this,Mc,it(this,Mc)-e[t]),e[t]=0}),fr(this,k5,(t,n,r,i)=>{if(Jn(this,ko,jo).call(this,n))return 0;if(!mv(r))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(r=i(n,t),!mv(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return r}),fr(this,zk,(t,n,r)=>{if(e[t]=n,it(this,Dc)){const i=it(this,Dc)-e[t];for(;it(this,Mc)>i;)Jn(this,Zk,E5).call(this,!0)}fr(this,Mc,it(this,Mc)+e[t]),r&&(r.entrySize=n,r.totalCalculatedSize=it(this,Mc))})},rO=new WeakMap,zk=new WeakMap,k5=new WeakMap,Hf=new WeakSet,Jm=function*({allowStale:e=this.allowStale}={}){if(it(this,fs))for(let t=it(this,$s);!(!Jn(this,H3,WN).call(this,t)||((e||!it(this,Bc).call(this,t))&&(yield t),t===it(this,El)));)t=it(this,Lc)[t]},zf=new WeakSet,ev=function*({allowStale:e=this.allowStale}={}){if(it(this,fs))for(let t=it(this,El);!(!Jn(this,H3,WN).call(this,t)||((e||!it(this,Bc).call(this,t))&&(yield t),t===it(this,$s)));)t=it(this,eu)[t]},H3=new WeakSet,WN=function(e){return e!==void 0&&it(this,gs).get(it(this,Wo)[e])===e},Zk=new WeakSet,E5=function(e){var t,n;const r=it(this,El),i=it(this,Wo)[r],o=it(this,Nr)[r];return it(this,db)&&Jn(this,ko,jo).call(this,o)?o.__abortController.abort(new Error("evicted")):(it(this,Yf)||it(this,ju))&&(it(this,Yf)&&((t=it(this,Qf))==null||t.call(this,o,i,"evict")),it(this,ju)&&((n=it(this,Xs))==null||n.push([o,i,"evict"]))),it(this,rO).call(this,r),e&&(it(this,Wo)[r]=void 0,it(this,Nr)[r]=void 0,it(this,rp).push(r)),it(this,fs)===1?(fr(this,El,fr(this,$s,0)),it(this,rp).length=0):fr(this,El,it(this,eu)[r]),it(this,gs).delete(i),X7(this,fs)._--,r},nk=new WeakSet,z3=function(e,t,n,r){const i=t===void 0?void 0:it(this,Nr)[t];if(Jn(this,ko,jo).call(this,i))return i;const o=new AbortController,{signal:a}=n;a==null||a.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});const s={signal:o.signal,options:n,context:r},l=(g,b=!1)=>{const{aborted:v}=o.signal,m=n.ignoreFetchAbort&&g!==void 0;if(n.status&&(v&&!b?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,m&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),v&&!m&&!b)return c(o.signal.reason);const w=h;return it(this,Nr)[t]===h&&(g===void 0?w.__staleWhileFetching?it(this,Nr)[t]=w.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,g,s.options))),g},u=g=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=g),c(g)),c=g=>{const{aborted:b}=o.signal,v=b&&n.allowStaleOnFetchAbort,m=v||n.allowStaleOnFetchRejection,w=m||n.noDeleteOnFetchRejection,k=h;if(it(this,Nr)[t]===h&&(!w||k.__staleWhileFetching===void 0?this.delete(e):v||(it(this,Nr)[t]=k.__staleWhileFetching)),m)return n.status&&k.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),k.__staleWhileFetching;if(k.__returned===k)throw g},d=(g,b)=>{var v;const m=(v=it(this,Hk))==null?void 0:v.call(this,e,i,s);m&&m instanceof Promise&&m.then(w=>g(w),b),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(g(),n.allowStaleOnFetchAbort&&(g=w=>l(w,!0)))})};n.status&&(n.status.fetchDispatched=!0);const h=new Promise(d).then(l,u),f=Object.assign(h,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return t===void 0?(this.set(e,f,{...s.options,status:void 0}),t=it(this,gs).get(e)):it(this,Nr)[t]=f,f},ko=new WeakSet,jo=function(e){if(!it(this,db))return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof AbortController},Z3=new WeakSet,HN=function(e,t){it(this,Lc)[t]=e,it(this,eu)[e]=t},OC=new WeakSet,rk=function(e){e!==it(this,$s)&&(e===it(this,El)?fr(this,El,it(this,eu)[e]):Jn(this,Z3,HN).call(this,it(this,Lc)[e],it(this,eu)[e]),Jn(this,Z3,HN).call(this,it(this,$s),e),fr(this,$s,e))};let dQt=cQt;const hQt=dQt,pQt=(e,t)=>{const n=Ht("editorId"),{noImgZoomIn:r}=e,i=FL(()=>{const o=document.querySelectorAll(`#${n}-preview img`);o.length!==0&&_ft(o,{background:"#00000073"})});_n(()=>{!r&&i()}),Pt([t,yo(e.setting,"preview")],()=>{!r&&i()})},fQt=pQt,gQt=(e,t)=>{if(typeof t[e]=="string")return t[e];const n=`<i class="${gt}-iconfont ${gt}-icon-${e}"></i>`;switch(ha.iconfontType){case"svg":return`<svg class="${gt}-icon" aria-hidden="true"><use xlink:href="#${gt}-icon-${e}"></use></svg>`;default:return n}},mQt=(e,t)=>{const n=Ht("editorId"),r=Ht("usedLanguageText"),i=Ht("customIcon"),o=()=>{document.querySelectorAll(`#${n}-preview pre`).forEach(l=>{var u,c;let d=-1;(u=l.querySelector(".copy-button"))==null||u.remove();const h=((c=r.value.copyCode)==null?void 0:c.text)||"复制代码",f=document.createElement("span");f.setAttribute("class","copy-button"),f.dataset.tips=h,f.innerHTML=gQt("copy",i.value),f.addEventListener("click",()=>{var g,b;clearTimeout(d);const v=l.querySelector("code").innerText,m=Lft(e.formatCopiedText(v)),w=((g=r.value.copyCode)==null?void 0:g.successTips)||"已复制!",k=((b=r.value.copyCode)==null?void 0:b.failTips)||"已复制!";f.dataset.tips=m?w:k,d=window.setTimeout(()=>{f.dataset.tips=h},1500)}),l.appendChild(f)})},a=()=>{mn(o)},s=l=>{l&&mn(o)};Pt(()=>t.value,a),Pt(()=>e.setting.preview,s),Pt(()=>e.setting.htmlPreview,s),Pt(()=>r.value,o),_n(o)},vQt=mQt,yQt=e=>{var t;const n=(t=ha.editorExtensions)==null?void 0:t.highlight,r=n==null?void 0:n.instance,i=Ht("highlight"),o=so(r);return _n(()=>{if(!e.noHighlight&&!o.value){const a=document.createElement("script");a.src=i.value.js,a.onload=()=>{o.value=window.hljs},a.id=`${gt}-hljs`,Hc(a,"hljs");const s=document.createElement("link");s.rel="stylesheet",s.href=i.value.css,s.id=`${gt}-hlCss`,Hc(s)}}),Pt(()=>i.value.css,a=>{xat(`${gt}-hlCss`,"href",a)}),o},bQt=yQt,wQt=e=>{const t=Ht("theme"),{editorExtensions:n,mermaidConfig:r}=ha,i=n==null?void 0:n.mermaid,o=so(i==null?void 0:i.instance),a=so(-1),s=new hQt({max:1e3,ttl:6e5}),l=()=>{const u=o.value;!e.noMermaid&&u&&(u.initialize(r({startOnLoad:!1,theme:t.value==="dark"?"dark":"default"})),a.value=a.value+1)};return Pt(()=>t.value,()=>{s.clear(),l()}),_n(()=>{if(!e.noMermaid&&!(i!=null&&i.instance)){const u=(i==null?void 0:i.js)||lat;if(/\.mjs/.test(u))import(u).then(c=>{o.value=c.default,l()});else{const c=document.createElement("script");c.id=`${gt}-mermaid`,c.src=u,c.onload=()=>{o.value=window.mermaid,l()},Hc(c,"mermaid")}}}),{mermaidRef:o,reRenderRef:a,replaceMermaid:()=>{mn(()=>{if(!e.noMermaid&&o.value){const u=document.querySelectorAll(`div.${gt}-mermaid`),c=document.createElement("div");c.style.width=document.body.offsetWidth+"px",c.style.height=document.body.offsetHeight+"px",c.style.position="fixed",c.style.zIndex="-10000",c.style.top="-10000";let d=u.length;d>0&&document.body.appendChild(c),u.forEach(async h=>{let f=s.get(h.innerText);if(!f){const b=Oat(),v=o.value.renderAsync||o.value.render;let m="";try{m=await v(b,h.innerText,c)}catch{}f=await e.sanitizeMermaid(typeof m=="string"?m:m.svg),s.set(h.innerText,f)}const g=document.createElement("p");g.className=`${gt}-mermaid`,g.setAttribute("data-processed",""),g.innerHTML=f,h.dataset.line!==void 0&&(g.dataset.line=h.dataset.line),h.replaceWith(g),--d===0&&c.remove()})}})}}},CQt=wQt,OQt=e=>{var t;const n=(t=ha.editorExtensions)==null?void 0:t.katex,r=n==null?void 0:n.instance,i=so(r);return _n(()=>{if(!e.noKatex&&!i.value){const o=document.createElement("script");o.src=(n==null?void 0:n.js)||Lie.js,o.onload=()=>{i.value=window.katex},o.id=`${gt}-katex`;const a=document.createElement("link");a.rel="stylesheet",a.href=(n==null?void 0:n.css)||Lie.css,a.id=`${gt}-katexCss`,Hc(o,"katex"),Hc(a)}}),i},xQt=OQt,SQt=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(r,i,o,a,s)=>{const l=r[i],u=l.content.trim();if(l.info==="mermaid"){let c;return r[i].map&&r[i].level===0&&(c=r[i].map[0],r[i].attrSet("data-line",String(c))),`<div class="${gt}-mermaid" ${c!==void 0?"data-line="+c:""} data-mermaid-theme=${t.themeRef.value}>${u}</div>`}return n(r,i,o,a,s)}},AQt=SQt,Kse=(e,t)=>{let n=!0,r=!0;const i=e.posMax,o=t>0?e.src.charCodeAt(t-1):-1,a=t+1<=i?e.src.charCodeAt(t+1):-1;return(o===32||o===9||a>=48&&a<=57)&&(r=!1),(a===32||a===9)&&(n=!1),{can_open:n,can_close:r}},IQt=(e,t)=>{let n,r,i,o;if(e.src[e.pos]!=="$")return!1;if(i=Kse(e,e.pos),!i.can_open)return t||(e.pending+="$"),e.pos+=1,!0;const a=e.pos+1;for(n=a;(n=e.src.indexOf("$",n))!==-1;){for(o=n-1;e.src[o]==="\\";)o-=1;if((n-o)%2==1)break;n+=1}return n===-1?(t||(e.pending+="$"),e.pos=a,!0):n-a===0?(t||(e.pending+="$$"),e.pos=a+1,!0):(i=Kse(e,n),i.can_close?(t||(r=e.push("math_inline","math",0),r.markup="$",r.content=e.src.slice(a,n)),e.pos=n+1,!0):(t||(e.pending+="$"),e.pos=a,!0))},kQt=(e,t,n,r)=>{let i,o,a,s,l=!1,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(u+2>c||e.src.slice(u,u+2)!=="$$")return!1;if(u+=2,i=e.src.slice(u,c),r)return!0;for(i.trim().slice(-2)==="$$"&&(i=i.trim().slice(0,-2),l=!0),a=t;!l&&(a++,!(a>=n||(u=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],u<c&&e.tShift[a]<e.blkIndent)));)e.src.slice(u,c).trim().slice(-2)==="$$"&&(s=e.src.slice(0,c).lastIndexOf("$$"),o=e.src.slice(u,s),l=!0);e.line=a+1;const d=e.push("math_block","math",0);return d.block=!0,d.content=(i&&i.trim()?i+`
|
|
`:"")+e.getLines(t+1,a,e.tShift[t],!0)+(o&&o.trim()?o:""),d.map=[t,e.line],d.markup="$$",!0},EQt=(e,t)=>{const n=i=>{if(t.katexRef.value){const o=t.katexRef.value.renderToString(i,{throwOnError:!1});return`<span class="${gt}-katex-inline" data-processed>${o}</span>`}else return`<span class="${gt}-katex-inline">${i}</span>`},r=(i,o)=>{if(t.katexRef.value){const a=t.katexRef.value.renderToString(i,{throwOnError:!1,displayMode:!0});return`<p class="${gt}-katex-block" data-line=${o} data-processed>${a}</p>`}else return`<p class="${gt}-katex-block" data-line=${o}>${i}</p>`};e.inline.ruler.after("escape","math_inline",IQt),e.block.ruler.after("blockquote","math_block",kQt,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=(i,o)=>n(i[o].content),e.renderer.rules.math_block=(i,o)=>r(i[o].content,i[o].map[0])+`
|
|
`},_Qt=EQt,TQt=(e,t)=>{t=t||{};const n=3,r=t.marker||"!",i=r.charCodeAt(0),o=r.length;let a="",s="";const l=(c,d,h,f,g)=>{const b=c[d];return b.type==="admonition_open"?(c[d].attrPush(["class",`${gt}-admonition ${gt}-admonition-${b.info}`]),c[d].attrSet("data-line",String(c[d].map[0]))):b.type==="admonition_title_open"&&c[d].attrPush(["class",`${gt}-admonition-title`]),g.renderToken(c,d,h)},u=c=>{const d=c.trim().split(" ",2);s="",a=d[0],d.length>1&&(s=c.substring(a.length+2)),(s===""||!s)&&(s=a)};e.block.ruler.before("code","admonition",(c,d,h,f)=>{let g,b,v,m=!1,w=c.bMarks[d]+c.tShift[d],k=c.eMarks[d];if(i!==c.src.charCodeAt(w))return!1;for(g=w+1;g<=k&&r[(g-w)%o]===c.src[g];g++);const T=Math.floor((g-w)/o);if(T!==n)return!1;g-=(g-w)%o;const S=c.src.slice(w,g),I=c.src.slice(g,k);if(u(I),f)return!0;for(b=d;b++,!(b>=h||(w=c.bMarks[b]+c.tShift[b],k=c.eMarks[b],w<k&&c.sCount[b]<c.blkIndent));)if(i===c.src.charCodeAt(w)&&!(c.sCount[b]-c.blkIndent>=4)){for(g=w+1;g<=k&&r[(g-w)%o]===c.src[g];g++);if(!(Math.floor((g-w)/o)<T)&&(g-=(g-w)%o,g=c.skipSpaces(g),!(g<k))){m=!0;break}}const O=c.parentType,y=c.lineMax;return c.parentType="root",c.lineMax=b,v=c.push("admonition_open","div",1),v.markup=S,v.block=!0,v.info=a,v.map=[d,b],v=c.push("admonition_title_open","p",1),v.markup=S+" "+a,v.map=[d,b],v=c.push("inline","",0),v.content=s,v.map=[d,c.line-1],v.children=[],v=c.push("admonition_title_close","p",-1),v.markup=S+" "+a,c.md.block.tokenize(c,d+1,b),v=c.push("admonition_close","div",-1),v.markup=c.src.slice(w,g),v.block=!0,c.parentType=O,c.lineMax=y,c.line=b+(m?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.admonition_open=l,e.renderer.rules.admonition_title_open=l,e.renderer.rules.admonition_title_close=l,e.renderer.rules.admonition_close=l},PQt=TQt,DQt=(e,t)=>{e.renderer.rules.heading_open=(n,r)=>{var i;const o=n[r],a=((i=n[r+1].children)==null?void 0:i.reduce((l,u)=>l+(u.content||""),""))||"",s=o.markup.length;return t.headsRef.value.push({text:a,level:s}),o.map&&o.level===0&&(o.attrSet("data-line",String(o.map[0])),o.attrSet("id",t.mdHeadingId(a,s,t.headsRef.value.length))),e.renderer.renderToken(n,r,t)},e.renderer.rules.heading_close=(n,r,i,o,a)=>a.renderToken(n,r,i)},RQt=DQt,$Qt=(e,t)=>{const n=e.renderer.rules.fence,r=e.utils.unescapeAll,i=/\[(\w*)(?::([\w ]*))?\]/;function o(u){return u.info?r(u.info).trim():""}function a(u){const c=o(u),[d=null,h=""]=(i.exec(c)||[]).slice(1);return[d,h]}function s(u){const c=o(u);return c?c.split(/(\s+)/g)[0]:""}const l=(u,c,d,h,f)=>{if(u[c].hidden)return"";const[g,b]=a(u[c]);if(g===null)return n(u,c,d,h,f);let v,m,w,k,T="",S="";for(let I=c;I<u.length&&(v=u[I],[m,w]=a(v),m===g);I++)v.info=v.info.replace(i,""),v.hidden=!0,k=I-c>0?"":" checked",T+=`<li><input type="radio" name="label-group-${t.editorId}-${c}"${k}><label for="group-${t.editorId}-${c}-tab-${I-c}" onclick="this.previousElementSibling.click()">${w||s(v)}</label></li>
|
|
`,S+=`<input type="radio" id="group-${t.editorId}-${c}-tab-${I-c}" name="group-${t.editorId}-${c}"${k}>
|
|
`+n(u,I,d,h,f);return`<div class="code-tabs">
|
|
<ul>
|
|
`+T+`</ul>
|
|
`+S+"</div>"};e.renderer.rules.fence=l},MQt=$Qt,LQt=e=>{["paragraph_open","table_open","ordered_list_open","bullet_list_open","blockquote_open","hr","html_block","fence"].forEach(t=>{const n=e.renderer.rules[t];n?e.renderer.rules[t]=(r,i,o,a,s)=>{let l;const u=n(r,i,o,a,s);return r[i].map&&r[i].level===0&&!/^<!--/.test(u)?(l=r[i].map[0],u.replace(/^(<[^>]*)/,`$1 data-line="${l}"`)):u}:e.renderer.rules[t]=(r,i,o,a,s)=>{let l;return r[i].map&&r[i].level===0&&(l=r[i].map[0],r[i].attrSet("data-line",String(l))),s.renderToken(r,i,o)}})},BQt=(e,t)=>{const{editorConfig:n,markdownItConfig:r,markdownItPlugins:i}=ha,o=Ht("editorId"),a=Ht("showCodeRowNumber"),s=Ht("theme"),l=Re([]),u=bQt(e),c=xQt(e),{reRenderRef:d,replaceMermaid:h}=CQt(e),f=ZGt({html:!0,breaks:!0});r(f,{editorId:o});const g=[{type:"katex",plugin:_Qt,options:{katexRef:c}},{type:"image",plugin:QGt,options:{figcaption:!0,classes:"md-zoom"}},{type:"admonition",plugin:PQt,options:{}},{type:"taskList",plugin:aQt,options:{}},{type:"heading",plugin:RQt,options:{mdHeadingId:e.mdHeadingId,headsRef:l}},{type:"codeTabs",plugin:MQt,options:{editorId:o}}];e.noMermaid||g.push({type:"mermaid",plugin:AQt,options:{themeRef:s}}),i(g,{editorId:o}).forEach(T=>{f.use(T.plugin,T.options)});const b=f.options.highlight;f.set({highlight:(T,S,I)=>{if(b){const _=b(T,S,I);if(_)return _}let O;!e.noHighlight&&u.value?u.value.getLanguage(S)?O=u.value.highlight(T,{language:S,ignoreIllegals:!0}).value:O=u.value.highlightAuto(T).value:O=f.utils.escapeHtml(T);const y=a?wat(O.replace(/^\n+|\n+$/g,"")):`<span class="code-block">${O.replace(/^\n+|\n+$/g,"")}</span>`;return`<pre><code class="language-${S}" language=${S}>${y}</code></pre>`}}),LQt(f);const v=Re(e.sanitize(f.render(e.modelValue))),m=()=>{$n.emit(o,E3,v.value),e.onHtmlChanged(v.value),e.onGetCatalog(l.value),$n.emit(o,GW,l.value),h()};_n(m);const w=FL(async()=>{l.value=[],v.value=e.sanitize(f.render(e.modelValue)),m()},(n==null?void 0:n.renderDelay)!==void 0?n==null?void 0:n.renderDelay:t?0:500),k=Oe(()=>(e.noKatex||c.value)&&(e.noHighlight||u.value));return Pt([yo(e,"modelValue"),k,d],w),_n(()=>{$n.on(o,{name:Axe,callback(){$n.emit(o,GW,l.value)}})}),{html:v}},FQt=BQt,Xke={modelValue:{type:String,default:""},setting:{type:Object,default:()=>({})},onHtmlChanged:{type:Function,default:()=>{}},onGetCatalog:{type:Function,default:()=>{}},mdHeadingId:{type:Function,default:()=>""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:e=>e},noKatex:{type:Boolean,default:!1},formatCopiedText:{type:Function,default:e=>e},noHighlight:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean},sanitizeMermaid:{type:Function}},NQt={...Xke,onChange:{type:Function,default:()=>{}},placeholder:{type:String,default:""},scrollAuto:{type:Boolean},autofocus:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},maxlength:{type:Number},autoDetectCode:{type:Boolean},onBlur:{type:Function,default:()=>{}},onFocus:{type:Function,default:()=>{}},noPrettier:{type:Boolean},completions:{type:Array},catalogVisible:{type:Boolean},theme:{type:String,default:"light"},onInput:{type:Function},onDrop:{type:Function,default:()=>{}},inputBoxWitdh:{type:String},onInputBoxWitdhChange:{type:Function}},Yke=ft({name:"ContentPreview",props:Xke,setup(e){const t=Ht("editorId"),n=Ht("previewTheme"),r=Ht("showCodeRowNumber"),{html:i}=FQt(e,e.previewOnly);return vQt(e,i),fQt(e,i),()=>xe(un,null,[xe("div",{id:`${t}-preview-wrapper`,class:`${gt}-preview-wrapper`,"data-show":e.setting.preview,key:"content-preview-wrapper"},[xe("article",{id:`${t}-preview`,class:[`${gt}-preview`,`${n==null?void 0:n.value}-theme`,r&&`${gt}-scrn`],innerHTML:i.value},null)]),!e.previewOnly&&xe("div",{id:`${t}-html-wrapper`,class:`${gt}-preview-wrapper`,"data-show":e.setting.htmlPreview,key:"html-preview-wrapper"},[xe("div",{class:`${gt}-html`},[i.value])])])}}),VQt=(e,t)=>{const{editorId:n}=e,r=Br({buildFinished:!1,html:""});Pt(()=>e.modelValue,()=>{r.buildFinished=!1}),_n(()=>{$n.on(n,{name:E3,callback(i){r.buildFinished=!0,r.html=i}}),$n.on(n,{name:NL,callback(){const i=new Promise(o=>{if(r.buildFinished)o(r.html);else{const a=s=>{o(s),$n.remove(n,E3,a)};$n.on(n,{name:E3,callback:a})}});e.onSave?e.onSave(e.modelValue,i):t.emit("onSave",e.modelValue,i)}})})},Kke=e=>{var t,n;const{editorId:r}=e,i=(n=(t=ha)==null?void 0:t.editorExtensions)==null?void 0:n.highlight;Or("editorId",r),Or("theme",Oe(()=>e.theme)),Or("language",Oe(()=>e.language)),Or("highlight",Oe(()=>{const a={...Bie,...i==null?void 0:i.css},s=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme;return{js:(i==null?void 0:i.js)||aat,css:a[e.codeTheme]?a[e.codeTheme][s]:Bie.atom[s]}})),Or("showCodeRowNumber",e.showCodeRowNumber);const o=Oe(()=>{var a,s;const l={...Mie,...(s=(a=ha)==null?void 0:a.editorConfig)==null?void 0:s.languageUserDefined};return l[e.language]?l[e.language]:Mie["zh-CN"]});Or("usedLanguageText",o),Or("previewTheme",Oe(()=>e.previewTheme)),Or("customIcon",Oe(()=>e.customIcon))},jQt=e=>{Kke(e),Or("tabWidth",e.tabWidth)},qke=e=>{_n(()=>{var t,n;if(!e.noIconfont)if(ha.iconfontType==="svg"){const r=document.createElement("script");r.src=((t=ha.editorExtensions)==null?void 0:t.iconfont)||iat,r.id=`${gt}-icon`,Hc(r)}else{const r=document.createElement("link");r.rel="stylesheet",r.href=((n=ha.editorExtensions)==null?void 0:n.iconfontClass)||oat,r.id=`${gt}-icon-class`,Hc(r)}})},WQt=e=>{var t,n,r,i,o,a;const{noPrettier:s,noUploadImg:l}=e,{editorExtensions:u}=ha,c=s||!!((n=(t=ha.editorExtensions)==null?void 0:t.prettier)!=null&&n.prettierInstance),d=s||!!((i=(r=ha.editorExtensions)==null?void 0:r.prettier)!=null&&i.parserMarkdownInstance),h=l||!!((a=(o=ha.editorExtensions)==null?void 0:o.cropper)!=null&&a.instance);_n(()=>{var f,g,b,v;const m=document.createElement("script"),w=document.createElement("script");m.src=((f=u==null?void 0:u.prettier)==null?void 0:f.standaloneJs)||Rie.main,m.id=`${gt}-prettier`,w.src=((g=u==null?void 0:u.prettier)==null?void 0:g.parserMarkdownJs)||Rie.markdown,w.id=`${gt}-prettierMD`;const k=document.createElement("link");k.rel="stylesheet",k.href=((b=u==null?void 0:u.cropper)==null?void 0:b.css)||$ie.css,k.id=`${gt}-cropperCss`;const T=document.createElement("script");T.src=((v=u==null?void 0:u.cropper)==null?void 0:v.js)||$ie.js,T.id=`${gt}-cropper`,h||(Hc(k),Hc(T)),c||Hc(m),d||Hc(w)}),qke(e)},HQt=(e,t)=>{const{editorId:n}=e;_n(()=>{$n.on(n,{name:k1,callback:r=>{e.onError instanceof Function?e.onError(r):t.emit("onError",r)}})})},zQt=(e,t)=>{const{editorId:n}=e,r=Br({pageFullscreen:e.pageFullscreen,fullscreen:!1,preview:e.preview,htmlPreview:e.preview?!1:e.htmlPreview}),i=(s,l)=>{r[s]=l===void 0?!r[s]:l,s==="preview"&&r.preview?r.htmlPreview=!1:s==="htmlPreview"&&r.htmlPreview&&(r.preview=!1)};let o="";const a=()=>{r.pageFullscreen||r.fullscreen?document.body.style.overflow="hidden":document.body.style.overflow=o};return Pt(()=>[r.pageFullscreen,r.fullscreen],a),_n(()=>{$n.on(n,{name:VL,callback(s,l){const u=c=>{$n.emit(n,Eo,"image",{desc:"",urls:c}),l&&l()};e.onUploadImg?e.onUploadImg(s,u):t.emit("onUploadImg",s,u)}}),o=document.body.style.overflow,a()}),[r,i]},ZQt=e=>{const{editorId:t}=e,n=Re(!1);return _n(()=>{$n.on(t,{name:fX,callback:r=>{r===void 0?n.value=!n.value:n.value=r}})}),Oe(()=>!e.toolbarsExclude.includes("catalog")&&e.toolbars.includes("catalog")&&n.value)},GQt=(e,t,n,r,i)=>{const{editorId:o}=e;Pt(()=>r.pageFullscreen,s=>{$n.emit(o,Fie,s)}),Pt(()=>r.fullscreen,s=>{$n.emit(o,Nie,s)}),Pt(()=>r.preview,s=>{$n.emit(o,Vie,s)}),Pt(()=>r.htmlPreview,s=>{$n.emit(o,jie,s)}),Pt(n,s=>{$n.emit(o,Wie,s)});const a={on(s,l){switch(s){case"pageFullscreen":{$n.on(o,{name:Fie,callback(u){l(u)}});break}case"fullscreen":{$n.on(o,{name:Nie,callback(u){l(u)}});break}case"preview":{$n.on(o,{name:Vie,callback(u){l(u)}});break}case"htmlPreview":{$n.on(o,{name:jie,callback(u){l(u)}});break}case"catalog":{$n.on(o,{name:Wie,callback(u){l(u)}});break}}},togglePageFullscreen(s){i("pageFullscreen",s)},toggleFullscreen(s){$n.emit(o,Cxe,s)},togglePreview(s){i("preview",s)},toggleHtmlPreview(s){i("htmlPreview",s)},toggleCatalog(s){$n.emit(o,fX,s)},triggerSave(){$n.emit(o,NL)},insert(s){$n.emit(o,Eo,"universal",{generate:s})},focus(s){$n.emit(o,Oxe,s)}};t.expose(a)},QQt=e=>e,Jke={modelValue:{type:String,default:""},theme:{type:String,default:"light"},class:{type:String,default:""},language:{type:String,default:"zh-CN"},onHtmlChanged:{type:Function},onGetCatalog:{type:Function},editorId:{type:String,default:rat},showCodeRowNumber:{type:Boolean,default:!1},previewTheme:{type:String,default:"default"},style:{type:Object,default:()=>({})},mdHeadingId:{type:Function,default:QQt},sanitize:{type:Function,default:e=>e},noMermaid:{type:Boolean,default:!1},noKatex:{type:Boolean,default:!1},codeTheme:{type:String,default:"atom"},noIconfont:{type:Boolean},formatCopiedText:{type:Function,default:e=>e},codeStyleReverse:{type:Boolean,default:!0},codeStyleReverseList:{type:Array,default:["default","mk-cute"]},noHighlight:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean,default:!1},customIcon:{type:Object,default:{}},sanitizeMermaid:{type:Function,default:e=>Promise.resolve(e)}},UQt={...Jke,onChange:{type:Function},onSave:{type:Function},onUploadImg:{type:Function},pageFullscreen:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},htmlPreview:{type:Boolean,default:!1},toolbars:{type:Array,default:bxe},toolbarsExclude:{type:Array,default:[]},noPrettier:{type:Boolean,default:!1},tabWidth:{type:Number,default:2},tableShape:{type:Array,default:()=>[6,4]},placeholder:{type:String,default:""},defToolbars:{type:[String,Object]},onError:{type:Function},footers:{type:Array,default:wxe},scrollAuto:{type:Boolean,default:!0},defFooters:{type:[String,Object]},noUploadImg:{type:Boolean},autoFocus:{type:Boolean},disabled:{type:Boolean},readOnly:{type:Boolean},maxLength:{type:Number},autoDetectCode:{type:Boolean},onBlur:{type:Function},onFocus:{type:Function},completions:{type:Array},showToolbarName:{type:Boolean,default:!1},onInput:{type:Function},onDrop:{type:Function},inputBoxWitdh:{type:String,default:"50%"},onInputBoxWitdhChange:{type:Function}},e2e=["onHtmlChanged","onGetCatalog"],XQt=[...e2e,"onChange","onSave","onUploadImg","onError","update:modelValue","onBlur","onFocus","onInput","onDrop","onInputBoxWitdhChange"],YQt=ft({name:"MdPreview",props:Jke,emits:e2e,setup(e,t){const{editorId:n,noKatex:r,noMermaid:i,noHighlight:o}=e;return Kke(e),qke(e),Mo(()=>{$n.clear(n)}),()=>xe("div",{id:n,class:[gt,e.class,e.theme==="dark"&&`${gt}-dark`,`${gt}-previewOnly`],style:e.style},[xe(Yke,{modelValue:e.modelValue,onHtmlChanged:a=>{e.onHtmlChanged?e.onHtmlChanged(a):t.emit("onHtmlChanged",a)},onGetCatalog:a=>{e.onGetCatalog?e.onGetCatalog(a):t.emit("onGetCatalog",a)},mdHeadingId:e.mdHeadingId,noMermaid:i,sanitize:e.sanitize,noKatex:r,formatCopiedText:e.formatCopiedText,noHighlight:o,noImgZoomIn:e.noImgZoomIn,previewOnly:!0,sanitizeMermaid:e.sanitizeMermaid},null)])}}),G3=YQt;G3.install=e=>(e.component(G3.name,G3),e);const KQt={tocItem:{type:Object,default:()=>({})},mdHeadingId:{type:Function,default:()=>{}},scrollElement:{type:[String,Object],default:""},onClick:{type:Function,default:()=>{}},scrollElementOffsetTop:{type:Number,default:0}},t2e=ft({props:KQt,setup(e){return()=>{const{tocItem:t,mdHeadingId:n,scrollElement:r,onClick:i,scrollElementOffsetTop:o}=e;return xe("div",{class:[`${gt}-catalog-link`,t.active&&`${gt}-catalog-active`],onClick:a=>{i(a,t),a.stopPropagation();const s=n(t.text,t.level,t.index),l=document.getElementById(s),u=r instanceof Element?r:document.querySelector(r);if(l&&u){let c=l.offsetParent,d=l.offsetTop;if(u.contains(c))for(;c&&u!=c;)d+=c==null?void 0:c.offsetTop,c=c==null?void 0:c.offsetParent;u==null||u.scrollTo({top:d-o,behavior:"smooth"})}}},[xe("span",{title:t.text},[t.text]),xe("div",{class:`${gt}-catalog-wrapper`},[t.children&&t.children.map(a=>xe(t2e,{mdHeadingId:n,key:`${t.text}-link-${a.level}-${a.text}`,tocItem:a,scrollElement:r,onClick:i,scrollElementOffsetTop:o},null))])])}}}),qQt=t2e,JQt={editorId:{type:String},class:{type:String,default:""},mdHeadingId:{type:Function,default:e=>e},scrollElement:{type:[String,Object]},theme:{type:String,default:"light"},offsetTop:{type:Number,default:20},scrollElementOffsetTop:{type:Number,default:0},onClick:{type:Function},onActive:{type:Function}},eUt=ft({name:"MdCatalog",props:JQt,emits:["onClick","onActive"],setup(e,t){const n=e.editorId,r=Br({list:[],show:!1,scrollElement:e.scrollElement||`#${n}-preview-wrapper`}),i=so(),o=Oe(()=>{const u=[];return r.list.forEach((c,d)=>{const{text:h,level:f}=c,g={level:f,text:h,index:d+1,active:i.value===c};if(u.length===0)u.push(g);else{let b=u[u.length-1];if(g.level>b.level)for(let v=b.level+1;v<=6;v++){const{children:m}=b;if(!m){b.children=[g];break}if(b=m[m.length-1],g.level<=b.level){m.push(g);break}}else u.push(g)}}),u}),a=()=>r.scrollElement instanceof HTMLElement?r.scrollElement:document.querySelector(r.scrollElement),s=u=>{if(u.length===0)return r.list=[],!1;const{activeHead:c}=u.reduce((d,h,f)=>{const g=document.getElementById(e.mdHeadingId(h.text,h.level,f+1));if(g instanceof HTMLElement){const b=a(),v=Cat(g,b);if(v<e.offsetTop&&v>d.minTop)return{activeHead:h,minTop:v}}return d},{activeHead:u[0],minTop:Number.MIN_SAFE_INTEGER});i.value=c,r.list=u},l=()=>{s(r.list)};return Pt(()=>i.value,u=>{const c=u?{...u}:void 0;e.onActive?e.onActive(c):t.emit("onActive",c)}),_n(()=>{const u=a(),c=u===document.documentElement?window:u;c==null||c.addEventListener("scroll",l),$n.on(n,{name:GW,callback:d=>{c==null||c.removeEventListener("scroll",l),s(d),c==null||c.addEventListener("scroll",l)}}),$n.emit(n,Axe)}),Mo(()=>{var u;const c=a();(u=c===document.documentElement?window:c)==null||u.removeEventListener("scroll",l)}),()=>xe("div",{class:`${gt}-catalog${e.theme==="dark"?"-dark":""} ${e.class}`},[o.value.map(u=>xe(qQt,{mdHeadingId:e.mdHeadingId,tocItem:u,key:`link-${u.level}-${u.text}`,scrollElement:r.scrollElement,onClick:(c,d)=>{e.onClick?e.onClick(c,d):t.emit("onClick",c,d)},scrollElementOffsetTop:e.scrollElementOffsetTop},null))])}}),Gk=eUt;Gk.install=e=>(e.component(Gk.name,Gk),e);const tUt={title:{type:String,default:""},trigger:{type:[String,Object]},onClick:{type:Function},insert:{type:Function},language:{type:String},theme:{type:String}},Q3=ft({name:"NormalToolbar",props:tUt,emits:["onClick"],setup(e,t){return()=>{const n=Kc({props:e,ctx:t},"trigger");return xe("div",{class:`${gt}-toolbar-item`,title:e.title,onClick:r=>{e.onClick instanceof Function?e.onClick(r):t.emit("onClick",r)}},[n])}}});Q3.install=e=>(e.component(Q3.name,Q3),e);function nUt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ll(e)}const rUt={title:{type:String,default:""},modalTitle:{type:String,default:""},visible:{type:Boolean},width:{type:String,default:"auto"},height:{type:String,default:"auto"},trigger:{type:[String,Object]},onClick:{type:Function},onClose:{type:Function},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function},insert:{type:Function},language:{type:String},theme:{type:String}},U3=ft({name:"ModalToolbar",props:rUt,emits:["onClick","onClose","onAdjust"],setup(e,t){return()=>{const n=Kc({props:e,ctx:t},"trigger"),r=Kc({props:e,ctx:t},"default");return xe(un,null,[xe("div",{class:`${gt}-toolbar-item`,title:e.title,onClick:()=>{e.onClick instanceof Function?e.onClick():t.emit("onClick")}},[n]),xe(XC,{width:e.width,height:e.height,title:e.modalTitle,visible:e.visible,onClose:()=>{e.onClose instanceof Function?e.onClose():t.emit("onClose")},showAdjust:e.showAdjust,isFullscreen:e.isFullscreen,onAdjust:i=>{e.onAdjust instanceof Function?e.onAdjust(i):t.emit("onAdjust",i)}},nUt(r)?r:{default:()=>[r]})])}}});U3.install=e=>(e.component(U3.name,U3),e);var iUt=Object.defineProperty,oUt=(e,t,n)=>t in e?iUt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Om=(e,t,n)=>(oUt(e,typeof t!="symbol"?t+"":t,n),n);const aUt=ft({setup(){return()=>xe("div",{class:`${gt}-divider`},null)}}),sUt={noPrettier:{type:Boolean},toolbars:{type:Array,default:()=>[]},toolbarsExclude:{type:Array,default:()=>[]},setting:{type:Object,default:()=>({})},screenfull:{type:Object,default:null},screenfullJs:{type:String,default:""},updateSetting:{type:Function,default:()=>{}},tableShape:{type:Array,default:()=>[6,4]},defToolbars:{type:Object},noUploadImg:{type:Boolean},showToolbarName:{type:Boolean}},lUt=e=>{var t,n,r,i;const o=Ht("editorId");let a=(n=(t=ha.editorExtensions)==null?void 0:t.screenfull)==null?void 0:n.instance;const s=(i=(r=ha.editorExtensions)==null?void 0:r.screenfull)==null?void 0:i.js,l=Re(!1),u=h=>{if(!a){$n.emit(o,k1,{name:"fullscreen",message:"fullscreen is undefined"});return}a.isEnabled?(l.value=!0,(h===void 0?!a.isFullscreen:h)?a.request():a.exit()):console.error("browser does not support screenfull!")},c=()=>{a&&a.isEnabled&&a.on("change",()=>{(l.value||e.setting.fullscreen)&&(l.value=!1,e.updateSetting("fullscreen"))})},d=()=>{a=window.screenfull,c()};return _n(()=>{if(c(),!a){const h=document.createElement("script");h.src=s||sat,h.onload=d,h.id=`${gt}-screenfull`,Hc(h,"screenfull")}}),_n(()=>{$n.on(o,{name:Cxe,callback:u})}),{fullscreenHandler:u}},uUt={tableShape:{type:Array,default:()=>[6,4]},onSelected:{type:Function,default:()=>{}}},cUt=ft({name:"TableShape",props:uUt,setup(e){const t=Br({x:-1,y:-1});return()=>xe("div",{class:`${gt}-table-shape`,onMouseleave:()=>{t.x=-1,t.y=-1}},[new Array(e.tableShape[1]).fill("").map((n,r)=>xe("div",{class:`${gt}-table-shape-row`,key:`table-shape-row-${r}`},[new Array(e.tableShape[0]).fill("").map((i,o)=>xe("div",{class:`${gt}-table-shape-col`,key:`table-shape-col-${o}`,onMouseenter:()=>{t.x=r,t.y=o},onClick:()=>{e.onSelected(t)}},[xe("div",{class:[`${gt}-table-shape-col-default`,r<=t.x&&o<=t.y&&`${gt}-table-shape-col-include`]},null)]))]))])}}),dUt=cUt,hUt={type:{type:String,default:"link"},visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}},onOk:{type:Function,default:()=>{}}},pUt=ft({props:hUt,setup(e){const t=Ht("usedLanguageText"),n=Ht("editorId"),r=Oe(()=>{var o,a;switch(e.type){case"link":return(o=t.value.linkModalTips)==null?void 0:o.linkTitle;case"image":return(a=t.value.linkModalTips)==null?void 0:a.imageTitle;default:return""}}),i=Br({desc:"",url:""});return Pt(()=>e.visible,o=>{o||setTimeout(()=>{i.desc="",i.url=""},200)}),()=>xe(XC,{title:r.value,visible:e.visible,onClose:e.onCancel},{default:()=>{var o,a,s,l,u;return[xe("div",{class:`${gt}-form-item`},[xe("label",{class:`${gt}-label`,for:`link-desc-${n}`},[(o=t.value.linkModalTips)==null?void 0:o.descLabel]),xe("input",{placeholder:(a=t.value.linkModalTips)==null?void 0:a.descLabelPlaceHolder,class:`${gt}-input`,id:`link-desc-${n}`,type:"text",value:i.desc,onChange:c=>{i.desc=c.target.value},autocomplete:"off"},null)]),xe("div",{class:`${gt}-form-item`},[xe("label",{class:`${gt}-label`,for:`link-url-${n}`},[(s=t.value.linkModalTips)==null?void 0:s.urlLabel]),xe("input",{placeholder:(l=t.value.linkModalTips)==null?void 0:l.urlLabelPlaceHolder,class:`${gt}-input`,id:`link-url-${n}`,type:"text",value:i.url,onChange:c=>{i.url=c.target.value},autocomplete:"off"},null)]),xe("div",{class:`${gt}-form-item`},[xe("button",{class:[`${gt}-btn`,`${gt}-btn-row`],type:"button",onClick:()=>{e.onOk(i),i.desc="",i.url=""}},[(u=t.value.linkModalTips)==null?void 0:u.buttonOK])])]}})}}),fUt={visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}},onOk:{type:Function,default:()=>{}}},gUt=ft({props:fUt,setup(e){var t,n,r;const i=Ht("usedLanguageText"),o=Ht("editorId");let a=(r=(n=(t=ha)==null?void 0:t.editorExtensions)==null?void 0:n.cropper)==null?void 0:r.instance;const s=Re(),l=Re(),u=Re(),c=Br({cropperInited:!1,imgSelected:!1,imgSrc:"",isFullscreen:!1});let d=null;Pt(()=>e.visible,()=>{e.visible&&!c.cropperInited&&(a=a||window.Cropper,s.value.onchange=()=>{if(!a){$n.emit(o,k1,{name:"Cropper",message:"Cropper is undefined"});return}const f=s.value.files||[];if(c.imgSelected=!0,(f==null?void 0:f.length)>0){const g=new FileReader;g.onload=b=>{c.imgSrc=b.target.result,mn(()=>{d=new a(l.value,{viewMode:2,preview:`.${gt}-clip-preview-target`})})},g.readAsDataURL(f[0])}})}),Pt(()=>[c.imgSelected],()=>{u.value.style=""}),Pt(()=>c.isFullscreen,()=>{mn(()=>{d==null||d.destroy(),u.value.style="",l.value&&(d=new a(l.value,{viewMode:2,preview:`.${gt}-clip-preview-target`}))})});const h=()=>{d.clear(),d.destroy(),d=null,s.value.value="",c.imgSelected=!1};return()=>{var f;return xe(XC,{class:`${gt}-modal-clip`,title:(f=i.value.clipModalTips)==null?void 0:f.title,visible:e.visible,onClose:e.onCancel,showAdjust:!0,isFullscreen:c.isFullscreen,onAdjust:g=>{c.isFullscreen=g},width:"668px",height:"421px"},{default:()=>{var g,b;return[xe("div",{class:`${gt}-form-item ${gt}-clip`},[xe("div",{class:`${gt}-clip-main`},[c.imgSelected?xe("div",{class:`${gt}-clip-cropper`},[xe("img",{src:c.imgSrc,ref:l,style:{display:"none"},alt:""},null),xe("div",{class:`${gt}-clip-delete`,onClick:h},[xe(xi,{name:"delete"},null)])]):xe("div",{class:`${gt}-clip-upload`,onClick:()=>{s.value.click()}},[xe(xi,{name:"upload"},null)])]),xe("div",{class:`${gt}-clip-preview`},[xe("div",{class:`${gt}-clip-preview-target`,ref:u},null)])]),xe("div",{class:`${gt}-form-item`},[xe("button",{class:`${gt}-btn`,type:"button",onClick:()=>{if(d){const v=d.getCroppedCanvas();$n.emit(o,VL,[bat(v.toDataURL("image/png"))],e.onOk),h()}}},[((g=i.value.clipModalTips)==null?void 0:g.buttonUpload)||((b=i.value.linkModalTips)==null?void 0:b.buttonOK)])]),xe("input",{ref:s,accept:"image/*",type:"file",multiple:!1,style:{display:"none"}},null)]}})}}}),mUt={type:{type:String,default:"link"},linkVisible:{type:Boolean,default:!1},clipVisible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}},onOk:{type:Function,default:()=>{}}},vUt=ft({props:mUt,setup(e){return()=>xe(un,null,[xe(pUt,{type:e.type,visible:e.linkVisible,onOk:e.onOk,onCancel:e.onCancel},null),xe(gUt,{visible:e.clipVisible,onOk:e.onOk,onCancel:e.onCancel},null)])}}),yUt=ft({name:"MDEditorToolbar",props:sUt,setup(e){const t=Ht("editorId"),n=Ht("usedLanguageText"),r=Ht("theme"),i=Ht("language"),{fullscreenHandler:o}=lUt(e),a=`${t}-toolbar-wrapper`,s=Re(),l=Br({title:!1,catalog:!1,image:!1,table:!1,mermaid:!1,katex:!1}),u=(v,m)=>{$n.emit(t,Eo,v,m)},c=Br({type:"link",linkVisible:!1,clipVisible:!1}),d=Re();_n(()=>{$n.on(t,{name:ZW,callback(v){c.type=v,c.linkVisible=!0}})});const h=Oe(()=>{const v=e.toolbars.filter(T=>!e.toolbarsExclude.includes(T)),m=v.indexOf("="),w=m===-1?v:v.slice(0,m+1),k=m===-1?[]:v.slice(m,Number.MAX_SAFE_INTEGER);return[w,k]}),f=Re(),g=()=>{$n.emit(t,VL,Array.from(f.value.files||[])),f.value.value=""};_n(()=>{f.value.addEventListener("change",g)});const b=v=>{var m,w,k,T,S,I,O,y,_,A,R,D,C,x,P,$,L,V,H,Q,U,K,J,ue,ee,N,q,G,ne,le,oe,ve,de,ae,be,ie,ce,pe,X,Z,Y,se,fe,me,Ae,Be,Ye,Qe,nt,st,Le,Me,je,Ue,Te,bt,At,ht,Pe,Ze,dt,Mt,He,wt,Ee,Xe,ct;if(bxe.includes(v))switch(v){case"-":return xe(aUt,null,null);case"bold":return xe("div",{class:`${gt}-toolbar-item`,title:(m=n.value.toolbarTips)==null?void 0:m.bold,onClick:()=>{u("bold")}},[xe(xi,{name:"bold"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(w=n.value.toolbarTips)==null?void 0:w.bold])]);case"underline":return xe("div",{class:`${gt}-toolbar-item`,title:(k=n.value.toolbarTips)==null?void 0:k.underline,onClick:()=>{u("underline")}},[xe(xi,{name:"underline"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(T=n.value.toolbarTips)==null?void 0:T.underline])]);case"italic":return xe("div",{class:`${gt}-toolbar-item`,title:(S=n.value.toolbarTips)==null?void 0:S.italic,onClick:()=>{u("italic")}},[xe(xi,{name:"italic"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(I=n.value.toolbarTips)==null?void 0:I.italic])]);case"strikeThrough":return xe("div",{class:`${gt}-toolbar-item`,title:(O=n.value.toolbarTips)==null?void 0:O.strikeThrough,onClick:()=>{u("strikeThrough")}},[xe(xi,{name:"strike-through"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(y=n.value.toolbarTips)==null?void 0:y.strikeThrough])]);case"title":return xe(CC,{relative:`#${a}`,visible:l.title,onChange:_t=>{l.title=_t},overlay:xe("ul",{class:`${gt}-menu`,onClick:()=>{l.title=!1}},[xe("li",{class:`${gt}-menu-item ${gt}-menu-item-title`,onClick:()=>{u("h1")}},[(_=n.value.titleItem)==null?void 0:_.h1]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-title`,onClick:()=>{u("h2")}},[(A=n.value.titleItem)==null?void 0:A.h2]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-title`,onClick:()=>{u("h3")}},[(R=n.value.titleItem)==null?void 0:R.h3]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-title`,onClick:()=>{u("h4")}},[(D=n.value.titleItem)==null?void 0:D.h4]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-title`,onClick:()=>{u("h5")}},[(C=n.value.titleItem)==null?void 0:C.h5]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-title`,onClick:()=>{u("h6")}},[(x=n.value.titleItem)==null?void 0:x.h6])])},{default:()=>{var _t,Qt;return[xe("div",{class:`${gt}-toolbar-item`,title:(_t=n.value.toolbarTips)==null?void 0:_t.title},[xe(xi,{name:"title"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(Qt=n.value.toolbarTips)==null?void 0:Qt.title])])]}});case"sub":return xe("div",{class:`${gt}-toolbar-item`,title:(P=n.value.toolbarTips)==null?void 0:P.sub,onClick:()=>{u("sub")}},[xe(xi,{name:"sub"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[($=n.value.toolbarTips)==null?void 0:$.sub])]);case"sup":return xe("div",{class:`${gt}-toolbar-item`,title:(L=n.value.toolbarTips)==null?void 0:L.sup,onClick:()=>{u("sup")}},[xe(xi,{name:"sup"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(V=n.value.toolbarTips)==null?void 0:V.sup])]);case"quote":return xe("div",{class:`${gt}-toolbar-item`,title:(H=n.value.toolbarTips)==null?void 0:H.quote,onClick:()=>{u("quote")}},[xe(xi,{name:"quote"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(Q=n.value.toolbarTips)==null?void 0:Q.quote])]);case"unorderedList":return xe("div",{class:`${gt}-toolbar-item`,title:(U=n.value.toolbarTips)==null?void 0:U.unorderedList,onClick:()=>{u("unorderedList")}},[xe(xi,{name:"unordered-list"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(K=n.value.toolbarTips)==null?void 0:K.unorderedList])]);case"orderedList":return xe("div",{class:`${gt}-toolbar-item`,title:(J=n.value.toolbarTips)==null?void 0:J.orderedList,onClick:()=>{u("orderedList")}},[xe(xi,{name:"ordered-list"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(ue=n.value.toolbarTips)==null?void 0:ue.orderedList])]);case"task":return xe("div",{class:`${gt}-toolbar-item`,title:(ee=n.value.toolbarTips)==null?void 0:ee.task,onClick:()=>{u("task")}},[xe(xi,{name:"task"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(N=n.value.toolbarTips)==null?void 0:N.task])]);case"codeRow":return xe("div",{class:`${gt}-toolbar-item`,title:(q=n.value.toolbarTips)==null?void 0:q.codeRow,onClick:()=>{u("codeRow")}},[xe(xi,{name:"code-row"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(G=n.value.toolbarTips)==null?void 0:G.codeRow])]);case"code":return xe("div",{class:`${gt}-toolbar-item`,title:(ne=n.value.toolbarTips)==null?void 0:ne.code,onClick:()=>{u("code")}},[xe(xi,{name:"code"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(le=n.value.toolbarTips)==null?void 0:le.code])]);case"link":return xe("div",{class:`${gt}-toolbar-item`,title:(oe=n.value.toolbarTips)==null?void 0:oe.link,onClick:()=>{c.type="link",c.linkVisible=!0}},[xe(xi,{name:"link"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(ve=n.value.toolbarTips)==null?void 0:ve.link])]);case"image":return e.noUploadImg?xe("div",{class:`${gt}-toolbar-item`,title:(de=n.value.toolbarTips)==null?void 0:de.image,onClick:()=>{c.type="image",c.linkVisible=!0}},[xe(xi,{name:"image"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(ae=n.value.toolbarTips)==null?void 0:ae.image])]):xe(CC,{relative:`#${a}`,visible:l.image,onChange:_t=>{l.image=_t},overlay:xe("ul",{class:`${gt}-menu`,onClick:()=>{l.title=!1}},[xe("li",{class:`${gt}-menu-item ${gt}-menu-item-image`,onClick:()=>{c.type="image",c.linkVisible=!0}},[(be=n.value.imgTitleItem)==null?void 0:be.link]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-image`,onClick:()=>{f.value.click()}},[(ie=n.value.imgTitleItem)==null?void 0:ie.upload]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-image`,onClick:()=>{c.clipVisible=!0}},[(ce=n.value.imgTitleItem)==null?void 0:ce.clip2upload])])},{default:()=>{var _t,Qt;return[xe("div",{class:`${gt}-toolbar-item`,title:(_t=n.value.toolbarTips)==null?void 0:_t.image},[xe(xi,{name:"image"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(Qt=n.value.toolbarTips)==null?void 0:Qt.image])])]}});case"table":return xe(CC,{relative:`#${a}`,visible:l.table,onChange:_t=>{l.table=_t},key:"bar-table",overlay:xe(dUt,{tableShape:e.tableShape,onSelected:_t=>{u("table",{selectedShape:_t})}},null)},{default:()=>{var _t,Qt;return[xe("div",{class:`${gt}-toolbar-item`,title:(_t=n.value.toolbarTips)==null?void 0:_t.table},[xe(xi,{name:"table"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(Qt=n.value.toolbarTips)==null?void 0:Qt.table])])]}});case"revoke":return xe("div",{class:`${gt}-toolbar-item`,title:(pe=n.value.toolbarTips)==null?void 0:pe.revoke,onClick:()=>{$n.emit(t,xxe)}},[xe(xi,{name:"revoke"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(X=n.value.toolbarTips)==null?void 0:X.revoke])]);case"next":return xe("div",{class:`${gt}-toolbar-item`,title:(Z=n.value.toolbarTips)==null?void 0:Z.next,onClick:()=>{$n.emit(t,Sxe)}},[xe(xi,{name:"next"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(Y=n.value.toolbarTips)==null?void 0:Y.next])]);case"save":return xe("div",{class:`${gt}-toolbar-item`,title:(se=n.value.toolbarTips)==null?void 0:se.save,onClick:()=>{$n.emit(t,NL)}},[xe(xi,{name:"baocun"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(fe=n.value.toolbarTips)==null?void 0:fe.save])]);case"prettier":return e.noPrettier?"":xe("div",{class:`${gt}-toolbar-item`,title:(me=n.value.toolbarTips)==null?void 0:me.prettier,onClick:()=>{u("prettier")}},[xe(xi,{name:"prettier"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(Ae=n.value.toolbarTips)==null?void 0:Ae.prettier])]);case"pageFullscreen":return!e.setting.fullscreen&&xe("div",{class:`${gt}-toolbar-item`,title:(Be=n.value.toolbarTips)==null?void 0:Be.pageFullscreen,onClick:()=>{e.updateSetting("pageFullscreen")}},[xe(xi,{name:e.setting.pageFullscreen?"suoxiao":"fangda"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(Ye=n.value.toolbarTips)==null?void 0:Ye.pageFullscreen])]);case"fullscreen":return xe("div",{class:`${gt}-toolbar-item`,title:(Qe=n.value.toolbarTips)==null?void 0:Qe.fullscreen,onClick:()=>{o()}},[xe(xi,{name:e.setting.fullscreen?"fullscreen-exit":"fullscreen"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(nt=n.value.toolbarTips)==null?void 0:nt.fullscreen])]);case"preview":return xe("div",{class:`${gt}-toolbar-item`,title:(st=n.value.toolbarTips)==null?void 0:st.preview,onClick:()=>{e.updateSetting("preview")}},[xe(xi,{name:"preview"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(Le=n.value.toolbarTips)==null?void 0:Le.preview])]);case"htmlPreview":return xe("div",{class:`${gt}-toolbar-item`,title:(Me=n.value.toolbarTips)==null?void 0:Me.htmlPreview,onClick:()=>{e.updateSetting("htmlPreview")}},[xe(xi,{name:"coding"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(je=n.value.toolbarTips)==null?void 0:je.htmlPreview])]);case"catalog":return xe("div",{class:`${gt}-toolbar-item`,title:(Ue=n.value.toolbarTips)==null?void 0:Ue.catalog,onClick:()=>{$n.emit(t,fX)},key:"bar-catalog"},[xe(xi,{name:"catalog"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(Te=n.value.toolbarTips)==null?void 0:Te.catalog])]);case"github":return xe("div",{class:`${gt}-toolbar-item`,title:(bt=n.value.toolbarTips)==null?void 0:bt.github,onClick:()=>uat("https://github.com/imzbf/md-editor-v3")},[xe(xi,{name:"github"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(At=n.value.toolbarTips)==null?void 0:At.github])]);case"mermaid":return xe(CC,{relative:`#${a}`,visible:l.mermaid,onChange:_t=>{l.mermaid=_t},overlay:xe("ul",{class:`${gt}-menu`,onClick:()=>{l.mermaid=!1}},[xe("li",{class:`${gt}-menu-item ${gt}-menu-item-mermaid`,onClick:()=>{u("flow")}},[(ht=n.value.mermaid)==null?void 0:ht.flow]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-mermaid`,onClick:()=>{u("sequence")}},[(Pe=n.value.mermaid)==null?void 0:Pe.sequence]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-mermaid`,onClick:()=>{u("gantt")}},[(Ze=n.value.mermaid)==null?void 0:Ze.gantt]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-mermaid`,onClick:()=>{u("class")}},[(dt=n.value.mermaid)==null?void 0:dt.class]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-mermaid`,onClick:()=>{u("state")}},[(Mt=n.value.mermaid)==null?void 0:Mt.state]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-mermaid`,onClick:()=>{u("pie")}},[(He=n.value.mermaid)==null?void 0:He.pie]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-mermaid`,onClick:()=>{u("relationship")}},[(wt=n.value.mermaid)==null?void 0:wt.relationship]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-mermaid`,onClick:()=>{u("journey")}},[(Ee=n.value.mermaid)==null?void 0:Ee.journey])]),key:"bar-mermaid"},{default:()=>{var _t,Qt;return[xe("div",{class:`${gt}-toolbar-item`,title:(_t=n.value.toolbarTips)==null?void 0:_t.mermaid},[xe(xi,{name:"mermaid"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(Qt=n.value.toolbarTips)==null?void 0:Qt.mermaid])])]}});case"katex":return xe(CC,{relative:`#${a}`,visible:l.katex,onChange:_t=>{l.katex=_t},overlay:xe("ul",{class:`${gt}-menu`,onClick:()=>{l.katex=!1}},[xe("li",{class:`${gt}-menu-item ${gt}-menu-item-katex`,onClick:()=>{u("katexInline")}},[(Xe=n.value.katex)==null?void 0:Xe.inline]),xe("li",{class:`${gt}-menu-item ${gt}-menu-item-katex`,onClick:()=>{u("katexBlock")}},[(ct=n.value.katex)==null?void 0:ct.block])]),key:"bar-katex"},{default:()=>{var _t,Qt;return[xe("div",{class:`${gt}-toolbar-item`,title:(_t=n.value.toolbarTips)==null?void 0:_t.katex},[xe(xi,{name:"formula"},null),e.showToolbarName&&xe("div",{class:`${gt}-toolbar-item-name`},[(Qt=n.value.toolbarTips)==null?void 0:Qt.katex])])]}})}else if(e.defToolbars instanceof Array){const _t=e.defToolbars[v];return _t?id(_t,{theme:r.value,language:i.value,insert(Qt){$n.emit(t,Eo,"universal",{generate:Qt})}}):""}else if(e.defToolbars&&e.defToolbars.children instanceof Array){const _t=e.defToolbars.children[v];return _t?id(_t,{theme:r.value,language:i.value,insert(Qt){$n.emit(t,Eo,"universal",{generate:Qt})}}):""}else return""};return Pt(()=>e.toolbars,()=>{mn(()=>{s.value&&hat(s.value)})},{immediate:!0}),()=>{const v=h.value[0].map(w=>b(w)),m=h.value[1].map(w=>b(w));return xe(un,null,[e.toolbars.length>0&&xe("div",{class:`${gt}-toolbar-wrapper`,ref:s,id:a},[xe("div",{class:[`${gt}-toolbar`,e.showToolbarName&&`${gt}-stn`]},[xe("div",{class:`${gt}-toolbar-left`,ref:d},[v]),xe("div",{class:`${gt}-toolbar-right`},[m])])]),xe("input",{ref:f,accept:"image/*",type:"file",multiple:!0,style:{display:"none"}},null),xe(vUt,{linkVisible:c.linkVisible,clipVisible:c.clipVisible,type:c.type,onCancel:()=>{c.linkVisible=!1,c.clipVisible=!1},onOk:w=>{w&&u(c.type,{desc:w.desc,url:w.url}),c.linkVisible=!1,c.clipVisible=!1}},null)])}}}),bUt=(e,t)=>{const n=FL(()=>{e.removeEventListener("scroll",r),e.addEventListener("scroll",r),t.removeEventListener("scroll",r),t.addEventListener("scroll",r)},50),r=i=>{const o=e.clientHeight,a=t.clientHeight,s=e.scrollHeight,l=t.scrollHeight,u=(s-o)/(l-a);i.target===e?(t.removeEventListener("scroll",r),t.scrollTo({top:e.scrollTop/u}),n()):(e.removeEventListener("scroll",r),e.scrollTo({top:t.scrollTop*u}),n())};return[()=>{n().finally(()=>{e.dispatchEvent(new Event("scroll"))})},()=>{e.removeEventListener("scroll",r),t.removeEventListener("scroll",r)}]},wUt=(e,t,n)=>{const{view:r}=n,i=cat(),o=h=>r.lineBlockAt(r.state.doc.line(h).from).top,a=h=>r.lineBlockAt(r.state.doc.line(h).from).height;let s=[];const l=()=>{s=[];const h=Array.from(t.querySelectorAll("[data-line]")).map(v=>Number(v.dataset.line)+1),{lines:f}=r.state.doc;let g=1,b=h.shift()??f;for(let v=1;v<=f;v++)v===b&&(g=v,b=h.shift()||f+1),s.push({start:g,end:b-1})};let u=0,c=0;const d=dat(h=>{var f,g,b,v,m,w,k;if(!((f=t.firstElementChild)!=null&&f.firstElementChild))return;const T=r.lineBlockAtHeight(r.scrollDOM.scrollTop),{number:S}=r.state.doc.lineAt(T.from);if(S>s.length||r.state.doc.lines<s[s.length-1].end)return;let I=+getComputedStyle(t).paddingTop.replace("px","");const O=+getComputedStyle(t).paddingBottom.replace("px","");if(h.target===e){if(c!==0)return;u++;const y=s[S-1];let _=o(y.end)+a(y.end),A=0;const R=o(y.start),D=t.querySelector(`[data-line="${y.start-1}"]`)||((g=t.firstElementChild)==null?void 0:g.firstElementChild),C=t.querySelector(`[data-line="${y.end}"]`)||((b=t.lastElementChild)==null?void 0:b.lastElementChild);let x=0,P=0;R===0?D===C?(I=0,_=r.contentDOM.offsetHeight-r.scrollDOM.offsetHeight,A=r.scrollDOM.scrollTop/_,x=C.offsetTop+C.offsetHeight-t.clientHeight):(A=r.scrollDOM.scrollTop/_,x=C.offsetTop):_>r.scrollDOM.scrollHeight-r.scrollDOM.clientHeight?(A=(r.scrollDOM.scrollTop-R)/(r.scrollDOM.scrollHeight-r.scrollDOM.clientHeight-R),P=D.offsetTop,x=t.scrollHeight-t.clientHeight-P+10):(A=(r.scrollDOM.scrollTop-R)/(_-R),P=D.offsetTop,x=C.offsetTop-P);const $=P-I+x*A;i(t,$,()=>{u--})}else{if(u!==0)return;c++;const y=Array.from(t.querySelectorAll("[data-line]")),_=t.scrollTop,A=t.scrollHeight;let R=y.length===0?1:Math.ceil(Number(y[y.length-1].dataset.line)*(_/A)),D=(v=t.firstElementChild)==null?void 0:v.firstElementChild;for(let ue=R;ue>=0;ue--){const ee=t.querySelector(`[data-line="${ue}"]`);if(ee&&ee.offsetTop<=_){D=ee,R=ue;break}}let C=(m=t.firstElementChild)==null?void 0:m.firstElementChild,x=(w=t.firstElementChild)==null?void 0:w.lastElementChild;for(;y.length>0;){const ue=y.indexOf(D);if(ue+1>=y.length)break;const ee=y[ue+1];if(ue===-1){x=ee;break}const N=D.offsetTop;if(N>_){if(ue===0){C=D,x=ee;break}D=y[ue-1];continue}const q=ee.offsetTop;if(N<=_&&q>_){C=D,x=ee;break}D=ee}const P=C.offsetTop;let $=x.offsetTop,L=0;const{start:V,end:H}=s[Number(C.dataset.line||0)],Q=o(V);let U=o(H);const K=a(H);let J=0;C===((k=t.firstElementChild)==null?void 0:k.firstElementChild)?(C===x?($=x.offsetHeight-t.offsetHeight+I+O,J=r.contentDOM.offsetHeight-r.scrollDOM.offsetHeight):J=U+K-Q,L=Math.max(_/$,0)):U>r.scrollDOM.scrollHeight-r.scrollDOM.clientHeight?(L=Math.max((_-P)/(t.scrollHeight-P-t.clientHeight),0),U=o(r.state.doc.lines)+a(r.state.doc.lines),J=8+U-Q-e.clientHeight):(L=Math.max((_-P)/($-P),0),J=U+K-Q),i(e,Q+J*L,()=>{c--})}},10);return[()=>{l(),e.addEventListener("scroll",d),t.addEventListener("scroll",d),e.dispatchEvent(new Event("scroll"))},()=>{s=[],e.removeEventListener("scroll",d),t.removeEventListener("scroll",d)}]},CUt=(e,t,n)=>{const r=Ht("editorId");let i=()=>{},o=()=>{};const a=()=>{i();const s=document.querySelector(`#${r} .cm-scroller`),l=document.querySelector(`[id="${r}-preview-wrapper"][data-show="true"]`),u=document.querySelector(`[id="${r}-html-wrapper"][data-show="true"]`);(l||u)&&([o,i]=(l?wUt:bUt)(s,l||u,n.value)),e.scrollAuto&&o()};Pt([t,yo(e.setting,"preview"),yo(e.setting,"htmlPreview"),yo(e.setting,"fullscreen"),yo(e.setting,"pageFullscreen")],()=>{mn(a)}),Pt(()=>e.scrollAuto,s=>{s?o():i()}),_n(a)},OUt=CUt,xUt=(e,t,n)=>{var r,i,o,a,s,l;let u="",c=0,d=0,h=!0,f=!1;const g=t.getSelectedText(),b=(r=ha.editorConfig)==null?void 0:r.mermaidTemplate;if(/^h[1-6]{1}$/.test(e)){const v=e.replace(/^h(\d)/,(m,w)=>new Array(Number(w)).fill("#",0,w).join(""));u=`${v} ${g}`,c=v.length+1}else if(e==="prettier"){const v=window.prettier||((o=(i=ha.editorExtensions)==null?void 0:i.prettier)==null?void 0:o.prettierInstance),m=[((a=window.prettierPlugins)==null?void 0:a.markdown)||((l=(s=ha.editorExtensions)==null?void 0:s.prettier)==null?void 0:l.parserMarkdownInstance)];!v||m[0]===void 0?($n.emit(n.editorId,k1,{name:"prettier",message:"prettier is undefined"}),u=t.getValue()):u=v.format(t.getValue(),{parser:"markdown",plugins:m}),h=!1,f=!0}else switch(e){case"bold":{u=`**${g}**`,c=2,d=-2;break}case"underline":{u=`<u>${g}</u>`,c=3,d=-4;break}case"italic":{u=`*${g}*`,c=1,d=-1;break}case"strikeThrough":{u=`~~${g}~~`,c=2,d=-2;break}case"sub":{u=`<sub>${g}</sub>`,c=5,d=-6;break}case"sup":{u=`<sup>${g}</sup>`,c=5,d=-6;break}case"codeRow":{u="`"+g+"`",c=1,d=-1;break}case"quote":{u=`> ${g}`,c=2;break}case"orderedList":{u=`1. ${g}`,c=3;break}case"unorderedList":{u=`- ${g}`,c=2;break}case"task":{u=`- [ ] ${g}`,c=6;break}case"code":{const v=n.text||g||"",m=n.mode||"language";u=`\`\`\`${m}
|
|
${v}
|
|
\`\`\`
|
|
`,c=3,d=3+m.length-u.length;break}case"table":{u="|";const{selectedShape:v={x:1,y:1}}=n,{x:m,y:w}=v;for(let k=0;k<=w;k++)u+=" col |";u+=`
|
|
|`;for(let k=0;k<=w;k++)u+=" - |";for(let k=0;k<=m;k++){u+=`
|
|
|`;for(let T=0;T<=w;T++)u+=" content |"}c=2,d=5-u.length;break}case"link":{const{desc:v,url:m}=n;u=`[${v}](${m})`,h=!1;break}case"image":{const{desc:v,url:m,urls:w}=n;w instanceof Array?u=w.reduce((k,T)=>k+`
|
|
`,""):u=`
|
|
`,h=!1;break}case"flow":{u=`\`\`\`mermaid
|
|
${(b==null?void 0:b.flow)||`flowchart TD
|
|
Start --> Stop`}
|
|
\`\`\`
|
|
`,c=3,d=10-u.length;break}case"sequence":{u=`\`\`\`mermaid
|
|
${(b==null?void 0:b.sequence)||`sequenceDiagram
|
|
A->>B: hello!
|
|
B-->>A: hi!
|
|
A-)B: bye!`}
|
|
\`\`\`
|
|
`,c=3,d=10-u.length;break}case"gantt":{u=`\`\`\`mermaid
|
|
${(b==null?void 0:b.gantt)||`gantt
|
|
title A Gantt Diagram
|
|
dateFormat YYYY-MM-DD
|
|
section Section
|
|
A task :a1, 2014-01-01, 30d
|
|
Another task :after a1, 20d`}
|
|
\`\`\`
|
|
`,c=3,d=10-u.length;break}case"class":{u=`\`\`\`mermaid
|
|
${(b==null?void 0:b.class)||`classDiagram
|
|
class Animal
|
|
Vehicle <|-- Car`}
|
|
\`\`\`
|
|
`,c=3,d=10-u.length;break}case"state":{u=`\`\`\`mermaid
|
|
${(b==null?void 0:b.state)||`stateDiagram-v2
|
|
s1 --> s2`}
|
|
\`\`\`
|
|
`,c=3,d=10-u.length;break}case"pie":{u=`\`\`\`mermaid
|
|
${(b==null?void 0:b.pie)||`pie title Pets adopted by volunteers
|
|
"Dogs" : 386
|
|
"Cats" : 85
|
|
"Rats" : 15`}
|
|
\`\`\`
|
|
`,c=3,d=10-u.length;break}case"relationship":{u=`\`\`\`mermaid
|
|
${(b==null?void 0:b.relationship)||`erDiagram
|
|
CAR ||--o{ NAMED-DRIVER : allows
|
|
PERSON ||--o{ NAMED-DRIVER : is`}
|
|
\`\`\`
|
|
`,c=3,d=10-u.length;break}case"journey":{u=`\`\`\`mermaid
|
|
${(b==null?void 0:b.journey)||`journey
|
|
title My working day
|
|
section Go to work
|
|
Make tea: 5: Me
|
|
Go upstairs: 3: Me
|
|
Do work: 1: Me, Cat
|
|
section Go home
|
|
Go downstairs: 5: Me
|
|
Sit down: 5: Me`}
|
|
\`\`\`
|
|
`,c=3,d=10-u.length;break}case"katexInline":{u="$$",c=1,d=-1;break}case"katexBlock":{u=`$$
|
|
|
|
$$
|
|
`,c=3,d=-4;break}case"universal":{const{generate:v}=n,m=v(g);u=m.targetValue,h=m.select||!0,c=m.deviationStart||0,d=m.deviationEnd||0}}return{text:u,options:{select:h,deviationStart:c,deviationEnd:d,replaceAll:f}}},SUt="#e5c07b",qse="var(--md-color)",AUt="#56b6c2",IUt="#ffffff",ik="var(--md-color)",Jse="#e5c07b",kUt="#e5c07b",EUt="var(--md-color)",ele="#d19a66",_Ut="#c678dd",TUt="#21252b",PUt="#2c313a",tle="var(--md-bk-color)",zN="var(--md-bk-color)",DUt="#ceedfa33",nle="#528bff",RUt=ar.theme({"&":{color:ik,backgroundColor:tle},".cm-content":{caretColor:nle},".cm-cursor, .cm-dropCursor":{borderLeftColor:nle},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:DUt},".cm-panels":{backgroundColor:TUt,color:ik},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#ceedfa33"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:tle,color:ik,borderRight:"1px solid",borderColor:"var(--md-border-color)"},".cm-activeLineGutter":{backgroundColor:PUt},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"1px solid var(--md-border-color)",backgroundColor:zN},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:zN,borderBottomColor:zN},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{color:ik}}},{dark:!0}),$Ut=Lx.define([{tag:Ne.keyword,color:_Ut},{tag:[Ne.name,Ne.deleted,Ne.character,Ne.propertyName,Ne.macroName],color:qse},{tag:[Ne.function(Ne.variableName),Ne.labelName],color:kUt},{tag:[Ne.color,Ne.constant(Ne.name),Ne.standard(Ne.name)],color:ele},{tag:[Ne.definition(Ne.name),Ne.separator],color:ik},{tag:[Ne.typeName,Ne.className,Ne.number,Ne.changed,Ne.annotation,Ne.modifier,Ne.self,Ne.namespace],color:SUt},{tag:[Ne.operator,Ne.operatorKeyword,Ne.url,Ne.escape,Ne.regexp,Ne.link,Ne.special(Ne.string)],color:AUt},{tag:[Ne.meta,Ne.comment],color:Jse},{tag:Ne.strong,fontWeight:"bold"},{tag:Ne.emphasis,fontStyle:"italic"},{tag:Ne.strikethrough,textDecoration:"line-through"},{tag:Ne.link,color:Jse,textDecoration:"underline"},{tag:Ne.heading,fontWeight:"bold",color:qse},{tag:[Ne.atom,Ne.bool,Ne.special(Ne.variableName)],color:ele},{tag:[Ne.processingInstruction,Ne.string,Ne.inserted],color:EUt},{tag:Ne.invalid,color:IUt}]),rle=[RUt,_X($Ut)],MUt="#e5c07b",ile="#3f4a54",LUt="#56b6c2",BUt="#fff",ok="#3f4a54",ole="#2d8cf0",FUt="#2d8cf0",NUt="#3f4a54",ale="#d19a66",VUt="#c678dd",jUt="#21252b",WUt="#ceedfa33",sle="var(--md-bk-color)",ZN="var(--md-bk-color)",HUt="#bad5fa",lle="#3f4a54",zUt=ar.theme({"&":{color:ok,backgroundColor:sle},".cm-content":{caretColor:lle},".cm-cursor, .cm-dropCursor":{borderLeftColor:lle},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:HUt},".cm-panels":{backgroundColor:jUt,color:ok},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#ceedfa33"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:sle,color:ok,borderRight:"1px solid",borderColor:"var(--md-border-color)"},".cm-activeLineGutter":{backgroundColor:WUt},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"1px solid var(--md-border-color)",backgroundColor:ZN},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:ZN,borderBottomColor:ZN},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{color:ok}}}),ZUt=Lx.define([{tag:Ne.keyword,color:VUt},{tag:[Ne.name,Ne.deleted,Ne.character,Ne.propertyName,Ne.macroName],color:ile},{tag:[Ne.function(Ne.variableName),Ne.labelName],color:FUt},{tag:[Ne.color,Ne.constant(Ne.name),Ne.standard(Ne.name)],color:ale},{tag:[Ne.definition(Ne.name),Ne.separator],color:ok},{tag:[Ne.typeName,Ne.className,Ne.number,Ne.changed,Ne.annotation,Ne.modifier,Ne.self,Ne.namespace],color:MUt},{tag:[Ne.operator,Ne.operatorKeyword,Ne.url,Ne.escape,Ne.regexp,Ne.link,Ne.special(Ne.string)],color:LUt},{tag:[Ne.meta,Ne.comment],color:ole},{tag:Ne.strong,fontWeight:"bold"},{tag:Ne.emphasis,fontStyle:"italic"},{tag:Ne.strikethrough,textDecoration:"line-through"},{tag:Ne.link,color:ole,textDecoration:"underline"},{tag:Ne.heading,fontWeight:"bold",color:ile},{tag:[Ne.atom,Ne.bool,Ne.special(Ne.variableName)],color:ale},{tag:[Ne.processingInstruction,Ne.string,Ne.inserted],color:NUt},{tag:Ne.invalid,color:BUt}]),ule=[zUt,_X(ZUt)],GD=(e,t,n,r,i)=>(o,a,s,l)=>{const u=`${e}${t}`.slice(l-s);o.dispatch(o.state.replaceSelection(`${u}${n}${r}`));const c=s+a.label.length+(i==="title"?n.length:0);o.dispatch({selection:tn.create([tn.range(s+a.label.length+(i==="title"?1:-t.length),c),tn.cursor(c)],1)}),o.focus()},cle=e=>(t,n,r,i)=>{const o=e.slice(i-r);t.dispatch(t.state.replaceSelection(`${o} `))},GUt=e=>{const t=n=>{const r=n.matchBefore(/^#+|^-\s*\[*\s*\]*|`+|\[|!\[*|^\|\s?\|?|^\$\$?|!+\s*\w*/);return r===null||r.from==r.to&&n.explicit?null:{from:r.from,options:[...["h1","h2","h3","h4","h5","h6"].map((i,o)=>{const a=new Array(o+1).fill("#").join("");return{label:a,type:"text",apply:cle(a)}}),...["unchecked","checked"].map(i=>{const o=i==="checked"?"- [x]":"- [ ]";return{label:o,type:"text",apply:cle(o)}}),...[["`",""],["```","language"],["```mermaid\n",""]].map(i=>({label:`${i[0]}${i[1]}`,type:"text",apply:GD(i[0],i[1],"",i[0]==="`"?"`":"\n```","type")})),{label:"[]()",type:"text"},{label:"![]()",type:"text"},{label:"| |",type:"text",detail:"table",apply:`| col | col | col |
|
|
| - | - | - |
|
|
| content | content | content |
|
|
| content | content | content |`},{label:"$",type:"text",apply:GD("$","","","$","type")},{label:"$$",type:"text",apply:GD("$$","",`
|
|
`,`
|
|
$$`,"title")},...["note","abstract","info","tip","success","question","warning","failure","danger","bug","example","quote","hint","caution","error","attention"].map(i=>({label:`!!! ${i}`,type:"text",apply:GD("!!!",` ${i}`," Title",`
|
|
|
|
!!!`,"title")}))]}};return Pdt({override:e?[t,...e]:[t]})},dle=GUt,Lw=e=>{const t=new $v;return n=>(t.get(e.state)?e.dispatch({effects:t.reconfigure(n)}):e.dispatch({effects:oo.appendConfig.of(t.of(n))}),!0)};let QUt=class{constructor(e){Om(this,"view"),Om(this,"maxLength",Number.MAX_SAFE_INTEGER),Om(this,"toggleTabSize"),Om(this,"togglePlaceholder"),Om(this,"setExtensions"),Om(this,"toggleDisabled"),Om(this,"toggleReadOnly"),Om(this,"toggleMaxlength"),this.view=e,this.toggleTabSize=Lw(this.view),this.togglePlaceholder=Lw(this.view),this.setExtensions=Lw(this.view),this.toggleDisabled=Lw(this.view),this.toggleReadOnly=Lw(this.view),this.toggleMaxlength=Lw(this.view)}getValue(){return this.view.state.doc.toString()}setValue(e,t=0,n=this.view.state.doc.length){this.view.dispatch({changes:{from:t,to:n,insert:e}})}getSelectedText(){const{from:e,to:t}=this.view.state.selection.main;return this.view.state.sliceDoc(e,t)}replaceSelectedText(e,t={select:!0,deviationStart:0,deviationEnd:0,replaceAll:!1},n){try{if(t.replaceAll){if(this.setValue(e),e.length>this.maxLength)throw new Error("The input text is too long");return}if(this.view.state.doc.length-this.getSelectedText().length+e.length>this.maxLength)throw new Error("The input text is too long");const{from:r}=this.view.state.selection.main;if(this.view.dispatch(this.view.state.replaceSelection(e)),t.select){const i=r+e.length+t.deviationEnd;this.view.dispatch({selection:tn.create([tn.range(r+t.deviationStart,i),tn.cursor(i)],1)})}this.view.focus()}catch(r){if(r.message==="The input text is too long")$n.emit(n,k1,{name:"overlength",message:r.message,data:e});else throw r}}setTabSize(e){this.toggleTabSize([Ai.tabSize.of(e),Mx.of(" ".repeat(e))])}setPlaceholder(e){this.togglePlaceholder(zlt(e))}focus(e){if(this.view.focus(),!e)return;let t=0,n=0,r=0;switch(e){case"start":break;case"end":{t=n=r=this.getValue().length;break}default:t=e.rangeAnchor||e.cursorPos,n=e.rangeHead||e.cursorPos,r=e.cursorPos}this.view.dispatch({scrollIntoView:!0,selection:tn.create([tn.range(t,n),tn.cursor(r)],1)})}setDisabled(e){this.toggleDisabled([ar.editable.of(!e)])}setReadOnly(e){this.toggleReadOnly([Ai.readOnly.of(e)])}setMaxLength(e){this.maxLength=e,this.toggleMaxlength([Ai.changeFilter.of(t=>t.newDoc.length<=e)])}};const UUt=e=>{const t=Ht("editorId");return n=>{if(!n.clipboardData)return;if(n.clipboardData.files.length>0){const{files:i}=n.clipboardData;$n.emit(t,VL,Array.from(i).filter(o=>/image\/.*/.test(o.type))),n.preventDefault();return}if(e.autoDetectCode&&n.clipboardData.types.includes("vscode-editor-data")){const i=JSON.parse(n.clipboardData.getData("vscode-editor-data"));$n.emit(t,Eo,"code",{mode:i.mode,text:n.clipboardData.getData("text/plain")}),n.preventDefault();return}const r=n.clipboardData.getData("text/plain");e.maxlength&&r.length+e.modelValue.length>e.maxlength&&$n.emit(t,k1,{name:"overlength",message:"The input text is too long",data:r})}},XUt=UUt,YUt=e=>{const t=Ht("editorId");_n(()=>{$n.on(t,{name:Oxe,callback(n){var r;(r=e.value)==null||r.focus(n)}})})},KUt=YUt,qUt=(e,t)=>[{key:"Ctrl-b",mac:"Cmd-b",run:()=>($n.emit(e,Eo,"bold"),!0)},{key:"Ctrl-d",mac:"Cmd-d",run:WAe,preventDefault:!0},{key:"Ctrl-s",mac:"Cmd-s",run:n=>($n.emit(e,NL,n.state.doc.toString()),!0),shift:()=>($n.emit(e,Eo,"strikeThrough"),!0)},{key:"Ctrl-u",mac:"Cmd-u",run:()=>($n.emit(e,Eo,"underline"),!0),shift:()=>($n.emit(e,Eo,"unorderedList"),!0)},{key:"Ctrl-i",mac:"Cmd-i",run:()=>($n.emit(e,Eo,"italic"),!0),shift:()=>($n.emit(e,ZW,"image"),!0)},{key:"Ctrl-1",mac:"Cmd-1",run:()=>($n.emit(e,Eo,"h1"),!0)},{key:"Ctrl-2",mac:"Cmd-2",run:()=>($n.emit(e,Eo,"h2"),!0)},{key:"Ctrl-3",mac:"Cmd-3",run:()=>($n.emit(e,Eo,"h3"),!0)},{key:"Ctrl-4",mac:"Cmd-4",run:()=>($n.emit(e,Eo,"h4"),!0)},{key:"Ctrl-5",mac:"Cmd-5",run:()=>($n.emit(e,Eo,"h5"),!0)},{key:"Ctrl-6",mac:"Cmd-6",run:()=>($n.emit(e,Eo,"h6"),!0)},{key:"Ctrl-ArrowUp",mac:"Cmd-ArrowUp",run:()=>($n.emit(e,Eo,"sup"),!0)},{key:"Ctrl-ArrowDown",mac:"Cmd-ArrowDown",run:()=>($n.emit(e,Eo,"sub"),!0)},{key:"Ctrl-o",mac:"Cmd-o",run:()=>($n.emit(e,Eo,"orderedList"),!0)},{key:"Ctrl-c",mac:"Cmd-c",shift:()=>($n.emit(e,Eo,"code"),!0),any(n,r){return(r.ctrlKey||r.metaKey)&&r.altKey&&r.code==="KeyC"?($n.emit(e,Eo,"codeRow"),!0):!1}},{key:"Ctrl-l",mac:"Cmd-l",run:()=>($n.emit(e,ZW,"link"),!0)},{key:"Ctrl-f",mac:"Cmd-f",shift:()=>t.noPrettier?!1:($n.emit(e,Eo,"prettier"),!0)},{any:(n,r)=>(r.ctrlKey||r.metaKey)&&r.altKey&&r.shiftKey&&r.code==="KeyT"?($n.emit(e,Eo,"table"),!0):!1}],JUt=qUt,eXt=e=>{const t=Ht("tabWidth"),n=Ht("editorId"),r=Ht("theme"),i=Re(),o=so(),a=new $v,s=new $v,l=new $v,u=JUt(n,e),c=XUt(e),d=[Dx.of([...u,Yct]),$dt,a.of(yke({codeLanguages:Mdt})),ar.lineWrapping,ar.updateListener.of(f=>{f.docChanged&&e.onChange(f.state.doc.toString())}),ar.domEventHandlers({paste:c,blur:e.onBlur,focus:e.onFocus,drop:e.onDrop,input:f=>{e.onInput&&e.onInput(f);const{data:g}=f;e.maxlength&&e.modelValue.length+g.length>e.maxlength&&$n.emit(n,k1,{name:"overlength",message:"The input text is too long",data:g})}})],h=()=>{const f=[...d,s.of(r.value==="light"?ule:rle),l.of(dle(e.completions))];return ha.codeMirrorExtensions(r.value,f,[...u])};return _n(()=>{const f=new ar({doc:e.modelValue,parent:i.value,extensions:[h()]}),g=new QUt(f);o.value=g,setTimeout(()=>{g.setTabSize(t),g.setDisabled(e.disabled),g.setReadOnly(e.readonly),e.placeholder&&g.setPlaceholder(e.placeholder),typeof e.maxlength=="number"&&g.setMaxLength(e.maxlength),e.autofocus&&f.focus()},0),$n.on(n,{name:xxe,callback(){MX(f)}}),$n.on(n,{name:Sxe,callback(){f5(f)}}),$n.on(n,{name:Eo,callback(b,v={}){var m;const{text:w,options:k}=xUt(b,o.value,v);(m=o.value)==null||m.replaceSelectedText(w,k,n)}})}),Pt(r,()=>{var f;(f=o.value)==null||f.view.dispatch({effects:s.reconfigure(r.value==="light"?ule:rle)})},{deep:!0}),Pt(()=>e.completions,()=>{var f;(f=o.value)==null||f.view.dispatch({effects:l.reconfigure(dle(e.completions))})},{deep:!0}),Pt(()=>e.modelValue,()=>{var f,g;((f=o.value)==null?void 0:f.getValue())!==e.modelValue&&((g=o.value)==null||g.setValue(e.modelValue))}),Pt(()=>e.placeholder,()=>{var f;(f=o.value)==null||f.setPlaceholder(e.placeholder)}),Pt(()=>e.disabled,()=>{var f;(f=o.value)==null||f.setDisabled(e.disabled)}),Pt(()=>e.readonly,()=>{var f;(f=o.value)==null||f.setDisabled(e.readonly)}),Pt(()=>e.maxlength,()=>{var f;e.maxlength&&((f=o.value)==null||f.setMaxLength(e.maxlength))}),KUt(o),{inputWrapperRef:i,codeMirrorUt:o}},tXt=eXt,nXt=(e,t,n)=>{const r=Br({resizedWidth:e.inputBoxWitdh}),i=Br({width:e.inputBoxWitdh}),o=Br({left:e.inputBoxWitdh,display:"initial"}),a=u=>{var c,d,h;const f=((c=t.value)==null?void 0:c.offsetWidth)||0,g=((d=t.value)==null?void 0:d.getBoundingClientRect().x)||0;let b=u.x-g;b<wD?b=wD:b>f-wD&&(b=f-wD);const v=`${b}px`;i.width=v,o.left=v,r.resizedWidth=v,(h=e.onInputBoxWitdhChange)==null||h.call(e,v)},s=()=>{document.addEventListener("mousemove",a)},l=()=>{document.removeEventListener("mousemove",a)};return _n(()=>{var u;(u=n.value)==null||u.addEventListener("mousedown",s),document.addEventListener("mouseup",l)}),Mo(()=>{var u,c;(u=n.value)==null||u.removeEventListener("mousedown",s),(c=n.value)==null||c.removeEventListener("mouseup",l)}),Pt(()=>e.inputBoxWitdh,u=>{u&&(i.width=u,o.left=u)}),Pt([yo(e.setting,"htmlPreview"),yo(e.setting,"preview")],()=>{!e.setting.htmlPreview&&!e.setting.preview?(i.width="100%",o.display="none"):(i.width=r.resizedWidth,o.display="initial")},{immediate:!0}),{inputWrapperStyle:i,resizeOperateStyle:o}},rXt=nXt,iXt=ft({name:"MDEditorContent",props:NQt,setup(e){const t=Ht("editorId"),n=Re(""),r=Re(),i=Re(),{inputWrapperRef:o,codeMirrorUt:a}=tXt(e),{inputWrapperStyle:s,resizeOperateStyle:l}=rXt(e,r,i);return OUt(e,n,a),()=>xe("div",{class:`${gt}-content${e.setting.htmlPreview||e.setting.preview?" has-preview":""}`,ref:r},[xe("div",{class:`${gt}-input-wrapper`,style:s,ref:o},null),(e.setting.htmlPreview||e.setting.preview)&&xe("div",{class:`${gt}-resize-operate`,style:l,ref:i},null),xe(Yke,{modelValue:e.modelValue,setting:e.setting,onHtmlChanged:u=>{n.value=u,e.onHtmlChanged(u)},onGetCatalog:e.onGetCatalog,mdHeadingId:e.mdHeadingId,noMermaid:e.noMermaid,sanitize:e.sanitize,noKatex:e.noKatex,formatCopiedText:e.formatCopiedText,noHighlight:e.noHighlight,noImgZoomIn:e.noImgZoomIn,sanitizeMermaid:e.sanitizeMermaid},null),e.catalogVisible&&xe(Gk,{theme:e.theme,class:`${gt}-catalog-editor`,editorId:t,mdHeadingId:e.mdHeadingId,key:"internal-catalog"},null)])}}),oXt=ft({props:{modelValue:{type:String,default:""}},setup(e){const t=Ht("usedLanguageText");return()=>{var n,r;return xe("div",{class:`${gt}-footer-item`},[xe("label",{class:`${gt}-footer-label`},[`${(n=t.value.footer)==null?void 0:n.markdownTotal}:`]),xe("span",null,[((r=e.modelValue)==null?void 0:r.length)||0])])}}}),aXt={checked:{type:Boolean,default:!1},onChange:{type:Function,default:()=>{}}},sXt=ft({props:aXt,setup(e){return()=>xe("div",{class:[`${gt}-checkbox`,e.checked&&`${gt}-checkbox-checked`],onClick:()=>{e.onChange(!e.checked)}},null)}}),lXt={scrollAuto:{type:Boolean},onScrollAutoChange:{type:Function,default:()=>{}}},uXt=ft({props:lXt,setup(e){const t=Ht("usedLanguageText");return()=>{var n;return xe("div",{class:`${gt}-footer-item`},[xe("label",{class:`${gt}-footer-label`,onClick:()=>{e.onScrollAutoChange(!e.scrollAuto)}},[(n=t.value.footer)==null?void 0:n.scrollAuto]),xe(sXt,{checked:e.scrollAuto,onChange:e.onScrollAutoChange},null)])}}}),cXt={modelValue:{type:String,default:""},footers:{type:Array,default:[]},scrollAuto:{type:Boolean},onScrollAutoChange:{type:Function,default:()=>{}},defFooters:{type:Object}},dXt=ft({name:"MDEditorFooter",props:cXt,setup(e){const t=Oe(()=>{const r=e.footers.indexOf("="),i=r===-1?e.footers:e.footers.slice(0,r),o=r===-1?[]:e.footers.slice(r,Number.MAX_SAFE_INTEGER);return[i,o]}),n=r=>{if(wxe.includes(r))switch(r){case"markdownTotal":return xe(oXt,{modelValue:e.modelValue},null);case"scrollSwitch":return xe(uXt,{scrollAuto:e.scrollAuto,onScrollAutoChange:e.onScrollAutoChange},null)}else return e.defFooters instanceof Array?e.defFooters[r]||"":e.defFooters&&e.defFooters.children instanceof Array&&e.defFooters.children[r]||""};return()=>{const r=t.value[0].map(o=>n(o)),i=t.value[1].map(o=>n(o));return xe("div",{class:`${gt}-footer`},[xe("div",{class:`${gt}-footer-left`},[r]),xe("div",{class:`${gt}-footer-right`},[i])])}}}),hXt=ft({name:"MdEditorV3",props:UQt,emits:XQt,setup(e,t){const{editorId:n,noKatex:r,noMermaid:i,noPrettier:o,noUploadImg:a,noHighlight:s}=e,l=Br({scrollAuto:e.scrollAuto});VQt(e,t),jQt(e),WQt(e),HQt(e,t);const[u,c]=zQt(e,t),d=ZQt(e);return Mo(()=>{$n.clear(n)}),GQt(e,t,d,u,c),()=>{var h;const f=Kc({props:e,ctx:t},"defToolbars"),g=Kc({props:e,ctx:t},"defFooters");return xe("div",{id:n,class:[gt,e.class,e.theme==="dark"&&`${gt}-dark`,u.fullscreen||u.pageFullscreen?`${gt}-fullscreen`:""],style:e.style},[xe(yUt,{noPrettier:o,toolbars:e.toolbars,toolbarsExclude:e.toolbarsExclude,setting:u,updateSetting:c,tableShape:e.tableShape,defToolbars:f,noUploadImg:a,showToolbarName:e.showToolbarName},null),xe(iXt,{modelValue:e.modelValue,setting:u,mdHeadingId:e.mdHeadingId,noMermaid:i,noPrettier:o,sanitize:e.sanitize,placeholder:e.placeholder,noKatex:r,scrollAuto:l.scrollAuto,formatCopiedText:e.formatCopiedText,autofocus:e.autoFocus,disabled:e.disabled,readonly:e.readOnly,maxlength:e.maxLength,autoDetectCode:e.autoDetectCode,noHighlight:s,onChange:b=>{e.onChange?e.onChange(b):(t.emit("update:modelValue",b),t.emit("onChange",b))},onHtmlChanged:b=>{e.onHtmlChanged?e.onHtmlChanged(b):t.emit("onHtmlChanged",b)},onGetCatalog:b=>{e.onGetCatalog?e.onGetCatalog(b):t.emit("onGetCatalog",b)},onBlur:b=>{e.onBlur?e.onBlur(b):t.emit("onBlur",b)},onFocus:b=>{e.onFocus?e.onFocus(b):t.emit("onFocus",b)},onInput:b=>{e.onInput?e.onInput(b):t.emit("onInput",b)},completions:e.completions,catalogVisible:d.value,theme:e.theme,noImgZoomIn:e.noImgZoomIn,onDrop:b=>{e.onDrop?e.onDrop(b):t.emit("onDrop",b)},inputBoxWitdh:e.inputBoxWitdh,onInputBoxWitdhChange:b=>{e.onInputBoxWitdhChange?e.onInputBoxWitdhChange(b):t.emit("onInputBoxWitdhChange",b)},sanitizeMermaid:e.sanitizeMermaid},null),((h=e.footers)==null?void 0:h.length)>0&&xe(dXt,{modelValue:e.modelValue,footers:e.footers,defFooters:g,scrollAuto:l.scrollAuto,onScrollAutoChange:b=>l.scrollAuto=b},null)])}}}),X3=hXt;X3.install=e=>(e.component(X3.name,X3),e.use(Q3).use(k3).use(U3).use(Gk).use(G3),e);const pXt={name:"markdown",component:X3,icon:"markdown",type:"basic",order:11,initialValues:{label:"markdown编辑器",component:"Markdown"},attr:nat},n2e=Object.freeze(Object.defineProperty({__proto__:null,default:pXt},Symbol.toStringTag,{value:"Module"})),fXt=Xo({basic:[...Qo(),{label:"密码校验规则",component:"FormList",name:"rules",children:[{label:"类型",component:"Select",props:{mode:"static",options:[{label:"不少于8位,由字母+数字组成",value:"^(?=.*[a-zA-Z])(?=.*\\d)[a-zA-Z\\d]{8,}$"},{label:"不少于8位,至少包含一个大写字母、一个小写字母和一个数字",value:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[A-Za-z\\d]{8,}$"},{label:"不包含空格",value:"^\\S*$"},{label:"自定义正则",value:"custom"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P",name:"type"},{label:"自定义正则",component:"Input",props:{placeholder:"请输入正则表达式"},designKey:"form-Wdb2Reg",name:"customReg",hidden:'{{$item.type!=="custom"}}'},{label:"提示语",component:"Input",props:{placeholder:"请输入..."},designKey:"form-Wdb2",name:"message"},{label:"校验时机",component:"Checkbox",props:{mode:"static",options:[{label:"失去焦点时",value:"blur"},{label:"输入时",value:"change"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P6666",name:"trigger"}],designKey:"form-89tI",props:{mode:"card"}}],high:[...Uo(),{label:"显示清除按钮",component:"Switch",name:"props.clearable"}],linkage:Ta}),gXt={name:"密码输入框",component:Yn(Fs,{type:"password",showWordLimit:!0,autocomplete:"off"}),icon:"password",type:"basic",order:3,initialValues:{label:"密码输入框",component:"Password",props:{placeholder:"请输入密码"}},attr:fXt},r2e=Object.freeze(Object.defineProperty({__proto__:null,default:gXt},Symbol.toStringTag,{value:"Module"})),mXt={key:0,style:{"font-size":"12px"}},vXt={__name:"Radio",props:{modelValue:{},options:{type:Array,default:()=>[]},mode:{type:String,default:"static"},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},autoSelectedFirst:{type:Boolean,default:!1},api:Object,name:String,optionType:{type:String,default:"circle"},direction:{type:String,default:"horizontal"},space:{type:Number,default:20}},emits:["update:modelValue","onChangeSelect"],setup(e,{emit:t}){const n=e,r=t,{selectVal:i,currentOptions:o,selectChange:a,loading:s}=T_(n,r);return(l,u)=>{const c=o0("loading");return Ce(),We(un,null,[!W(o).length&&!W(s)?(Ce(),We("div",mXt,"暂无选项")):xt("",!0),Kn((Ce(),mt(W(AYe),jr({modelValue:W(i),"onUpdate:modelValue":u[0]||(u[0]=d=>ni(i)?i.value=d:null),onChange:W(a)},l.$attrs),{default:ot(()=>[xe(W($L),{wrap:"",direction:e.direction,size:[e.space,e.space],alignment:"normal"},{default:ot(()=>[e.optionType==="circle"||e.optionType==="border"?(Ce(!0),We(un,{key:0},xr(W(o),d=>(Ce(),mt(W(QCe),{key:d[e.valueKey],label:d[e.valueKey],border:e.optionType==="border"},{default:ot(()=>[gr(en(d[e.labelKey]),1)]),_:2},1032,["label","border"]))),128)):(Ce(!0),We(un,{key:1},xr(W(o),d=>(Ce(),mt(W(IYe),{key:d[e.valueKey],label:d[e.valueKey],size:l.$attrs.size},{default:ot(()=>[gr(en(d[e.labelKey]),1)]),_:2},1032,["label","size"]))),128))]),_:1},8,["direction","size"])]),_:1},16,["modelValue","onChange"])),[[c,W(s)]])],64)}}},yXt=Xo({basic:[...Qo(["props.readonly","props.placeholder"]),{label:"选项样式类型",component:"Radio",name:"props.optionType",props:{mode:"static",options:[{label:"无边框",value:"circle"},{label:"边框",value:"border"},{label:"按钮",value:"button"}]}},{label:"选项排列方向",component:"Radio",name:"props.direction",props:{mode:"static",options:[{label:"水平排列",value:"horizontal"},{label:"垂直排列",value:"vertical"}]}},{label:"选项间距",component:"InputNumber",name:"props.space"},...LL],high:[...Uo(),{label:"自动选中第一项",component:"Switch",name:"props.autoSelectedFirst",designKey:"form-LPpx"}],linkage:Ta}),bXt={name:"单选框组",icon:"radio",type:"basic",component:vXt,order:3.5,initialValues:{label:"单选框组",component:"Radio",props:{mode:"static",options:[{label:"选项1",value:"value1"},{label:"选项2",value:"value2"},{label:"选项3",value:"value3"}],labelKey:"label",valueKey:"value",optionType:"circle",direction:"horizontal",space:20}},attr:yXt},i2e=Object.freeze(Object.defineProperty({__proto__:null,default:bXt},Symbol.toStringTag,{value:"Module"})),wXt=Xo({basic:[...Qo(["props.readonly","props.placeholder","initialValue"]),{label:"初始值",component:"InputNumber",name:"initialValue"},{label:"最大分值",component:"InputNumber",name:"props.max",initialValue:5},{label:"是否允许半选",component:"Switch",name:"props.allow-half"}],high:Uo(),linkage:Ta}),CXt={name:"评分",component:jet,icon:"rate",type:"basic",order:12,attr:wXt,initialValues:{label:"评分",component:"Rate",props:{}}},o2e=Object.freeze(Object.defineProperty({__proto__:null,default:CXt},Symbol.toStringTag,{value:"Module"})),OXt=Xo({basic:[...Qo(["props.readonly","props.placeholder","initialValue"]),{label:"初始值",component:"Textarea",name:"initialValue"}],high:Uo(),linkage:Ta});var qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xXt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function T1(e){var t={exports:{}};return e(t,t.exports),t.exports}var xm,Y3,QD=function(e){return e&&e.Math==Math&&e},Mr=QD(typeof globalThis=="object"&&globalThis)||QD(typeof window=="object"&&window)||QD(typeof self=="object"&&self)||QD(typeof qi=="object"&&qi)||function(){return this}()||Function("return this")(),hY=Function.prototype,hle=hY.apply,SXt=hY.bind,ple=hY.call,a2e=typeof Reflect=="object"&&Reflect.apply||(SXt?ple.bind(hle):function(){return ple.apply(hle,arguments)}),s2e=Function.prototype,qH=s2e.bind,JH=s2e.call,AXt=qH&&qH.bind(JH),Co=qH?function(e){return e&&AXt(JH,e)}:function(e){return e&&function(){return JH.apply(e,arguments)}},Ws=function(e){return typeof e=="function"},mu=function(e){try{return!!e()}catch{return!0}},du=!mu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),IA=Function.prototype.call,ec=IA.bind?IA.bind(IA):function(){return IA.apply(IA,arguments)},fle={}.propertyIsEnumerable,gle=Object.getOwnPropertyDescriptor,IXt=gle&&!fle.call({1:2},1)?function(e){var t=gle(this,e);return!!t&&t.enumerable}:fle,pY={f:IXt},th=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},kXt=Co({}.toString),EXt=Co("".slice),Cb=function(e){return EXt(kXt(e),8,-1)},GN=Mr.Object,_Xt=Co("".split),l2e=mu(function(){return!GN("z").propertyIsEnumerable(0)})?function(e){return Cb(e)=="String"?_Xt(e,""):GN(e)}:GN,TXt=Mr.TypeError,fY=function(e){if(e==null)throw TXt("Can't call method on "+e);return e},af=function(e){return l2e(fY(e))},Gc=function(e){return typeof e=="object"?e!==null:Ws(e)},Gu={},mle=function(e){return Ws(e)?e:void 0},Wx=function(e,t){return arguments.length<2?mle(Gu[e])||mle(Mr[e]):Gu[e]&&Gu[e][t]||Mr[e]&&Mr[e][t]},hE=Co({}.isPrototypeOf),QN=Wx("navigator","userAgent")||"",vle=Mr.process,yle=Mr.Deno,ble=vle&&vle.versions||yle&&yle.version,wle=ble&&ble.v8;wle&&(Y3=(xm=wle.split("."))[0]>0&&xm[0]<4?1:+(xm[0]+xm[1])),!Y3&&QN&&(!(xm=QN.match(/Edge\/(\d+)/))||xm[1]>=74)&&(xm=QN.match(/Chrome\/(\d+)/))&&(Y3=+xm[1]);var UD,_5=Y3,ip=!!Object.getOwnPropertySymbols&&!mu(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_5&&_5<41}),gY=ip&&!Symbol.sham&&typeof Symbol.iterator=="symbol",PXt=Mr.Object,iO=gY?function(e){return typeof e=="symbol"}:function(e){var t=Wx("Symbol");return Ws(t)&&hE(t.prototype,PXt(e))},DXt=Mr.String,ez=function(e){try{return DXt(e)}catch{return"Object"}},RXt=Mr.TypeError,mY=function(e){if(Ws(e))return e;throw RXt(ez(e)+" is not a function")},T5=function(e,t){var n=e[t];return n==null?void 0:mY(n)},$Xt=Mr.TypeError,MXt=Object.defineProperty,Bv=Mr["__core-js_shared__"]||function(e,t){try{MXt(Mr,e,{value:t,configurable:!0,writable:!0})}catch{Mr[e]=t}return t}("__core-js_shared__",{}),P1=T1(function(e){(e.exports=function(t,n){return Bv[t]||(Bv[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),LXt=Mr.Object,j_=function(e){return LXt(fY(e))},BXt=Co({}.hasOwnProperty),ui=Object.hasOwn||function(e,t){return BXt(j_(e),t)},FXt=0,NXt=Math.random(),VXt=Co(1 .toString),P5=function(e){return"Symbol("+(e===void 0?"":e)+")_"+VXt(++FXt+NXt,36)},kA=P1("wks"),Ob=Mr.Symbol,Cle=Ob&&Ob.for,jXt=gY?Ob:Ob&&Ob.withoutSetter||P5,gl=function(e){if(!ui(kA,e)||!ip&&typeof kA[e]!="string"){var t="Symbol."+e;ip&&ui(Ob,e)?kA[e]=Ob[e]:kA[e]=gY&&Cle?Cle(t):jXt(t)}return kA[e]},WXt=Mr.TypeError,HXt=gl("toPrimitive"),zXt=function(e,t){if(!Gc(e)||iO(e))return e;var n,r=T5(e,HXt);if(r){if(n=ec(r,e,t),!Gc(n)||iO(n))return n;throw WXt("Can't convert object to primitive value")}return function(i,o){var a,s;if(Ws(a=i.toString)&&!Gc(s=ec(a,i))||Ws(a=i.valueOf)&&!Gc(s=ec(a,i))||o!=="string")return s;throw $Xt("Can't convert object to primitive value")}(e,t)},Hx=function(e){var t=zXt(e,"string");return iO(t)?t:t+""},tz=Mr.document,ZXt=Gc(tz)&&Gc(tz.createElement),u2e=function(e){return ZXt?tz.createElement(e):{}},c2e=!du&&!mu(function(){return Object.defineProperty(u2e("div"),"a",{get:function(){return 7}}).a!=7}),Ole=Object.getOwnPropertyDescriptor,GXt=du?Ole:function(e,t){if(e=af(e),t=Hx(t),c2e)try{return Ole(e,t)}catch{}if(ui(e,t))return th(!ec(pY.f,e,t),e[t])},lB={f:GXt},QXt=/#|\.prototype\./,W_=function(e,t){var n=XXt[UXt(e)];return n==KXt||n!=YXt&&(Ws(t)?mu(t):!!t)},UXt=W_.normalize=function(e){return String(e).replace(QXt,".").toLowerCase()},XXt=W_.data={},YXt=W_.NATIVE="N",KXt=W_.POLYFILL="P",qXt=W_,xle=Co(Co.bind),vY=function(e,t){return mY(e),t===void 0?e:xle?xle(e,t):function(){return e.apply(t,arguments)}},JXt=Mr.String,eYt=Mr.TypeError,ac=function(e){if(Gc(e))return e;throw eYt(JXt(e)+" is not an object")},tYt=Mr.TypeError,Sle=Object.defineProperty,nYt=du?Sle:function(e,t,n){if(ac(e),t=Hx(t),ac(n),c2e)try{return Sle(e,t,n)}catch{}if("get"in n||"set"in n)throw tYt("Accessors not supported");return"value"in n&&(e[t]=n.value),e},M0={f:nYt},Tl=du?function(e,t,n){return M0.f(e,t,th(1,n))}:function(e,t,n){return e[t]=n,e},rYt=lB.f,iYt=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return a2e(e,this,arguments)};return t.prototype=e.prototype,t},Kf=function(e,t){var n,r,i,o,a,s,l,u,c=e.target,d=e.global,h=e.stat,f=e.proto,g=d?Mr:h?Mr[c]:(Mr[c]||{}).prototype,b=d?Gu:Gu[c]||Tl(Gu,c,{})[c],v=b.prototype;for(i in t)n=!qXt(d?i:c+(h?".":"#")+i,e.forced)&&g&&ui(g,i),a=b[i],n&&(s=e.noTargetGet?(u=rYt(g,i))&&u.value:g[i]),o=n&&s?s:t[i],n&&typeof a==typeof o||(l=e.bind&&n?vY(o,Mr):e.wrap&&n?iYt(o):f&&Ws(o)?Co(o):o,(e.sham||o&&o.sham||a&&a.sham)&&Tl(l,"sham",!0),Tl(b,i,l),f&&(ui(Gu,r=c+"Prototype")||Tl(Gu,r,{}),Tl(Gu[r],i,o),e.real&&v&&!v[i]&&Tl(v,i,o)))},Ale=P1("keys"),uB=function(e){return Ale[e]||(Ale[e]=P5(e))},oYt=!mu(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ile=uB("IE_PROTO"),nz=Mr.Object,aYt=nz.prototype,D5=oYt?nz.getPrototypeOf:function(e){var t=j_(e);if(ui(t,Ile))return t[Ile];var n=t.constructor;return Ws(n)&&t instanceof n?n.prototype:t instanceof nz?aYt:null},sYt=Mr.String,lYt=Mr.TypeError,R5=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Co(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return ac(r),function(o){if(typeof o=="object"||Ws(o))return o;throw lYt("Can't set "+sYt(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),uYt=Math.ceil,cYt=Math.floor,yY=function(e){var t=+e;return t!=t||t===0?0:(t>0?cYt:uYt)(t)},dYt=Math.max,hYt=Math.min,rz=function(e,t){var n=yY(e);return n<0?dYt(n+t,0):hYt(n,t)},pYt=Math.min,H_=function(e){return(t=e.length)>0?pYt(yY(t),9007199254740991):0;var t},kle=function(e){return function(t,n,r){var i,o=af(t),a=H_(o),s=rz(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},fYt={includes:kle(!0),indexOf:kle(!1)},z_={},gYt=fYt.indexOf,Ele=Co([].push),d2e=function(e,t){var n,r=af(e),i=0,o=[];for(n in r)!ui(z_,n)&&ui(r,n)&&Ele(o,n);for(;t.length>i;)ui(r,n=t[i++])&&(~gYt(o,n)||Ele(o,n));return o},$5=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mYt=$5.concat("length","prototype"),vYt=Object.getOwnPropertyNames||function(e){return d2e(e,mYt)},bY={f:vYt},K3={f:Object.getOwnPropertySymbols},yYt=Co([].concat),bYt=Wx("Reflect","ownKeys")||function(e){var t=bY.f(ac(e)),n=K3.f;return n?yYt(t,n(e)):t},wY=Object.keys||function(e){return d2e(e,$5)},wYt=du?Object.defineProperties:function(e,t){ac(e);for(var n,r=af(t),i=wY(t),o=i.length,a=0;o>a;)M0.f(e,n=i[a++],r[n]);return e},CYt=Wx("document","documentElement"),h2e=uB("IE_PROTO"),UN=function(){},p2e=function(e){return"<script>"+e+"<\/script>"},_le=function(e){e.write(p2e("")),e.close();var t=e.parentWindow.Object;return e=null,t},q3=function(){try{UD=new ActiveXObject("htmlfile")}catch{}var e,t;q3=typeof document<"u"?document.domain&&UD?_le(UD):((t=u2e("iframe")).style.display="none",CYt.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(p2e("document.F=Object")),e.close(),e.F):_le(UD);for(var n=$5.length;n--;)delete q3.prototype[$5[n]];return q3()};z_[h2e]=!0;var Sg=Object.create||function(e,t){var n;return e!==null?(UN.prototype=ac(e),n=new UN,UN.prototype=null,n[h2e]=e):n=q3(),t===void 0?n:wYt(n,t)},iz=function(e,t,n){var r=Hx(t);r in e?M0.f(e,r,th(0,n)):e[r]=n},OYt=Mr.Array,xYt=Math.max,f2e=function(e,t,n){for(var r=H_(e),i=rz(t,r),o=rz(r,r),a=OYt(xYt(o-i,0)),s=0;i<o;i++,s++)iz(a,s,e[i]);return a.length=s,a},SYt=Co("".replace),AYt=Co("".split),IYt=Co([].join),oz=String(Error("zxcasd").stack),g2e=/\n\s*at [^:]*:[^\n]*/,kYt=g2e.test(oz),EYt=/@[^\n]*\n/.test(oz)&&!/zxcasd/.test(oz),_Yt=function(e,t){if(typeof e!="string")return e;if(kYt)for(;t--;)e=SYt(e,g2e,"");else if(EYt)return IYt(f2e(AYt(e,`
|
|
`),t),`
|
|
`);return e},TYt=function(e,t){Gc(t)&&"cause"in t&&Tl(e,"cause",t.cause)},hg={},PYt=gl("iterator"),DYt=Array.prototype,m2e={};m2e[gl("toStringTag")]="z";var CY=String(m2e)==="[object z]",RYt=gl("toStringTag"),$Yt=Mr.Object,MYt=Cb(function(){return arguments}())=="Arguments",Z_=CY?Cb:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=$Yt(e),RYt))=="string"?n:MYt?Cb(t):(r=Cb(t))=="Object"&&Ws(t.callee)?"Arguments":r},LYt=gl("iterator"),Tle=function(e){if(e!=null)return T5(e,LYt)||T5(e,"@@iterator")||hg[Z_(e)]},BYt=Mr.TypeError,Ple=function(e,t,n){var r,i;ac(e);try{if(!(r=T5(e,"return"))){if(t==="throw")throw n;return n}r=ec(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return ac(r),n},FYt=Mr.TypeError,J3=function(e,t){this.stopped=e,this.result=t},Dle=J3.prototype,NYt=function(e,t,n){var r,i,o,a,s,l,u,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),g=vY(t,c),b=function(m){return r&&Ple(r,"normal",m),new J3(!0,m)},v=function(m){return d?(ac(m),f?g(m[0],m[1],b):g(m[0],m[1])):f?g(m,b):g(m)};if(h)r=e;else{if(!(i=Tle(e)))throw FYt(ez(e)+" is not iterable");if(function(m){return m!==void 0&&(hg.Array===m||DYt[PYt]===m)}(i)){for(o=0,a=H_(e);a>o;o++)if((s=v(e[o]))&&hE(Dle,s))return s;return new J3(!1)}r=function(m,w){var k=arguments.length<2?Tle(m):w;if(mY(k))return ac(ec(k,m));throw BYt(ez(m)+" is not iterable")}(e,i)}for(l=r.next;!(u=ec(l,r)).done;){try{s=v(u.value)}catch(m){Ple(r,"throw",m)}if(typeof s=="object"&&s&&hE(Dle,s))return s}return new J3(!1)},VYt=Mr.String,pE=function(e){if(Z_(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return VYt(e)},jYt=function(e,t){return e===void 0?arguments.length<2?"":t:pE(e)},WYt=!mu(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",th(1,7)),e.stack!==7)}),HYt=gl("toStringTag"),M5=Mr.Error,zYt=[].push,fE=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=hE(XN,this);R5?n=R5(new M5(void 0),i?D5(this):XN):(n=i?this:Sg(XN),Tl(n,HYt,"Error")),Tl(n,"message",jYt(t,"")),WYt&&Tl(n,"stack",_Yt(n.stack,1)),TYt(n,r);var o=[];return NYt(e,zYt,{that:o}),Tl(n,"errors",o),n};R5?R5(fE,M5):function(e,t){for(var n=bYt(t),r=M0.f,i=lB.f,o=0;o<n.length;o++){var a=n[o];ui(e,a)||r(e,a,i(t,a))}}(fE,M5);var XN=fE.prototype=Sg(M5.prototype,{constructor:th(1,fE),message:th(1,""),name:th(1,"AggregateError")});Kf({global:!0},{AggregateError:fE});var ZYt=Co(Function.toString);Ws(Bv.inspectSource)||(Bv.inspectSource=function(e){return ZYt(e)});var L5,Qk,B5,v2e=Bv.inspectSource,Rle=Mr.WeakMap,GYt=Ws(Rle)&&/native code/.test(v2e(Rle)),az=Mr.TypeError,QYt=Mr.WeakMap;if(GYt||Bv.state){var Ay=Bv.state||(Bv.state=new QYt),UYt=Co(Ay.get),$le=Co(Ay.has),XYt=Co(Ay.set);L5=function(e,t){if($le(Ay,e))throw new az("Object already initialized");return t.facade=e,XYt(Ay,e,t),t},Qk=function(e){return UYt(Ay,e)||{}},B5=function(e){return $le(Ay,e)}}else{var Bw=uB("state");z_[Bw]=!0,L5=function(e,t){if(ui(e,Bw))throw new az("Object already initialized");return t.facade=e,Tl(e,Bw,t),t},Qk=function(e){return ui(e,Bw)?e[Bw]:{}},B5=function(e){return ui(e,Bw)}}var Iv,Mle,Lle,zx={set:L5,get:Qk,has:B5,enforce:function(e){return B5(e)?Qk(e):L5(e,{})},getterFor:function(e){return function(t){var n;if(!Gc(t)||(n=Qk(t)).type!==e)throw az("Incompatible receiver, "+e+" required");return n}}},y2e=Function.prototype,YYt=du&&Object.getOwnPropertyDescriptor,YN=ui(y2e,"name"),KYt={EXISTS:YN,PROPER:YN&&(function(){}).name==="something",CONFIGURABLE:YN&&(!du||du&&YYt(y2e,"name").configurable)},F5=function(e,t,n,r){Tl(e,t,n)},sz=gl("iterator"),b2e=!1;[].keys&&("next"in(Lle=[].keys())?(Mle=D5(D5(Lle)))!==Object.prototype&&(Iv=Mle):b2e=!0);var qYt=Iv==null||mu(function(){var e={};return Iv[sz].call(e)!==e});Iv=qYt?{}:Sg(Iv),Ws(Iv[sz])||F5(Iv,sz,function(){return this});var w2e={IteratorPrototype:Iv,BUGGY_SAFARI_ITERATORS:b2e},JYt=CY?{}.toString:function(){return"[object "+Z_(this)+"]"},eKt=M0.f,Ble=gl("toStringTag"),N5=function(e,t,n,r){if(e){var i=n?e:e.prototype;ui(i,Ble)||eKt(i,Ble,{configurable:!0,value:t}),r&&!CY&&Tl(i,"toString",JYt)}},tKt=w2e.IteratorPrototype,nKt=function(){return this},rKt=KYt.PROPER,KN=w2e.BUGGY_SAFARI_ITERATORS,iKt=gl("iterator"),oKt=function(){return this},C2e=function(e,t,n,r,i,o,a){(function(v,m,w,k){var T=m+" Iterator";v.prototype=Sg(tKt,{next:th(+!k,w)}),N5(v,T,!1,!0),hg[T]=nKt})(n,t,r);var s,l,u=function(v){if(v===i&&g)return g;if(!KN&&v in h)return h[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,h=e.prototype,f=h[iKt]||h["@@iterator"]||i&&h[i],g=!KN&&f||u(i),b=t=="Array"&&h.entries||f;return b&&(s=D5(b.call(new e)))!==Object.prototype&&s.next&&(N5(s,c,!0,!0),hg[c]=oKt),rKt&&i=="values"&&f&&f.name!=="values"&&(d=!0,g=function(){return ec(f,this)}),i&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||Kf({target:t,proto:!0,forced:KN||d},l)),hg[t]=g,l},aKt=zx.set,sKt=zx.getterFor("Array Iterator");C2e(Array,"Array",function(e,t){aKt(this,{type:"Array Iterator",target:af(e),index:0,kind:t})},function(){var e=sKt(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),hg.Arguments=hg.Array;var lKt=Co("".charAt),Fle=Co("".charCodeAt),uKt=Co("".slice),Nle=function(e){return function(t,n){var r,i,o=pE(fY(t)),a=yY(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=Fle(o,a))<55296||r>56319||a+1===s||(i=Fle(o,a+1))<56320||i>57343?e?lKt(o,a):r:e?uKt(o,a,a+2):i-56320+(r-55296<<10)+65536}},cKt={codeAt:Nle(!1),charAt:Nle(!0)}.charAt,dKt=zx.set,hKt=zx.getterFor("String Iterator");C2e(String,"String",function(e){dKt(this,{type:"String Iterator",string:pE(e),index:0})},function(){var e,t=hKt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=cKt(n,r),t.index+=e.length,{value:e,done:!1})});var pKt=Gu.AggregateError,Vle=gl("toStringTag");for(var qN in{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}){var jle=Mr[qN],JN=jle&&jle.prototype;JN&&Z_(JN)!==Vle&&Tl(JN,Vle,qN),hg[qN]=hg.Array}var Sm,e$,fKt=pKt,XD=function(e){return e&&e.Math==Math&&e},kr=XD(typeof globalThis=="object"&&globalThis)||XD(typeof window=="object"&&window)||XD(typeof self=="object"&&self)||XD(typeof qi=="object"&&qi)||function(){return this}()||Function("return this")(),xs=function(e){try{return!!e()}catch{return!0}},Hp=!xs(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),EA=Function.prototype.call,Ns=EA.bind?EA.bind(EA):function(){return EA.apply(EA,arguments)},Wle={}.propertyIsEnumerable,Hle=Object.getOwnPropertyDescriptor,gKt=Hle&&!Wle.call({1:2},1)?function(e){var t=Hle(this,e);return!!t&&t.enumerable}:Wle,mKt={f:gKt},Fv=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},O2e=Function.prototype,lz=O2e.bind,uz=O2e.call,vKt=lz&&lz.bind(uz),Gi=lz?function(e){return e&&vKt(uz,e)}:function(e){return e&&function(){return uz.apply(e,arguments)}},yKt=Gi({}.toString),bKt=Gi("".slice),xb=function(e){return bKt(yKt(e),8,-1)},e6=kr.Object,wKt=Gi("".split),x2e=xs(function(){return!e6("z").propertyIsEnumerable(0)})?function(e){return xb(e)=="String"?wKt(e,""):e6(e)}:e6,CKt=kr.TypeError,cB=function(e){if(e==null)throw CKt("Can't call method on "+e);return e},Zx=function(e){return x2e(cB(e))},us=function(e){return typeof e=="function"},Op=function(e){return typeof e=="object"?e!==null:us(e)},OKt=function(e){return us(e)?e:void 0},G_=function(e,t){return arguments.length<2?OKt(kr[e]):kr[e]&&kr[e][t]},V5=Gi({}.isPrototypeOf),t6=G_("navigator","userAgent")||"",zle=kr.process,Zle=kr.Deno,Gle=zle&&zle.versions||Zle&&Zle.version,Qle=Gle&&Gle.v8;Qle&&(e$=(Sm=Qle.split("."))[0]>0&&Sm[0]<4?1:+(Sm[0]+Sm[1])),!e$&&t6&&(!(Sm=t6.match(/Edge\/(\d+)/))||Sm[1]>=74)&&(Sm=t6.match(/Chrome\/(\d+)/))&&(e$=+Sm[1]);var Ule=e$,cz=!!Object.getOwnPropertySymbols&&!xs(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ule&&Ule<41}),OY=cz&&!Symbol.sham&&typeof Symbol.iterator=="symbol",xKt=kr.Object,dz=OY?function(e){return typeof e=="symbol"}:function(e){var t=G_("Symbol");return us(t)&&V5(t.prototype,xKt(e))},SKt=kr.String,hz=function(e){try{return SKt(e)}catch{return"Object"}},AKt=kr.TypeError,xY=function(e){if(us(e))return e;throw AKt(hz(e)+" is not a function")},gE=function(e,t){var n=e[t];return n==null?void 0:xY(n)},IKt=kr.TypeError,kKt=Object.defineProperty,SY=function(e,t){try{kKt(kr,e,{value:t,configurable:!0,writable:!0})}catch{kr[e]=t}return t},Nv=kr["__core-js_shared__"]||SY("__core-js_shared__",{}),AY=T1(function(e){(e.exports=function(t,n){return Nv[t]||(Nv[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),EKt=kr.Object,IY=function(e){return EKt(cB(e))},_Kt=Gi({}.hasOwnProperty),hu=Object.hasOwn||function(e,t){return _Kt(IY(e),t)},TKt=0,PKt=Math.random(),DKt=Gi(1 .toString),S2e=function(e){return"Symbol("+(e===void 0?"":e)+")_"+DKt(++TKt+PKt,36)},_A=AY("wks"),Sb=kr.Symbol,Xle=Sb&&Sb.for,RKt=OY?Sb:Sb&&Sb.withoutSetter||S2e,Vl=function(e){if(!hu(_A,e)||!cz&&typeof _A[e]!="string"){var t="Symbol."+e;cz&&hu(Sb,e)?_A[e]=Sb[e]:_A[e]=OY&&Xle?Xle(t):RKt(t)}return _A[e]},$Kt=kr.TypeError,MKt=Vl("toPrimitive"),LKt=function(e,t){if(!Op(e)||dz(e))return e;var n,r=gE(e,MKt);if(r){if(n=Ns(r,e,t),!Op(n)||dz(n))return n;throw $Kt("Can't convert object to primitive value")}return function(i,o){var a,s;if(us(a=i.toString)&&!Op(s=Ns(a,i))||us(a=i.valueOf)&&!Op(s=Ns(a,i))||o!=="string")return s;throw IKt("Can't convert object to primitive value")}(e,t)},kY=function(e){var t=LKt(e,"string");return dz(t)?t:t+""},pz=kr.document,BKt=Op(pz)&&Op(pz.createElement),EY=function(e){return BKt?pz.createElement(e):{}},A2e=!Hp&&!xs(function(){return Object.defineProperty(EY("div"),"a",{get:function(){return 7}}).a!=7}),Yle=Object.getOwnPropertyDescriptor,FKt=Hp?Yle:function(e,t){if(e=Zx(e),t=kY(t),A2e)try{return Yle(e,t)}catch{}if(hu(e,t))return Fv(!Ns(mKt.f,e,t),e[t])},_Y={f:FKt},NKt=kr.String,VKt=kr.TypeError,sc=function(e){if(Op(e))return e;throw VKt(NKt(e)+" is not an object")},jKt=kr.TypeError,Kle=Object.defineProperty,WKt=Hp?Kle:function(e,t,n){if(sc(e),t=kY(t),sc(n),A2e)try{return Kle(e,t,n)}catch{}if("get"in n||"set"in n)throw jKt("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Gx={f:WKt},au=Hp?function(e,t,n){return Gx.f(e,t,Fv(1,n))}:function(e,t,n){return e[t]=n,e},HKt=Gi(Function.toString);us(Nv.inspectSource)||(Nv.inspectSource=function(e){return HKt(e)});var j5,Uk,W5,TY=Nv.inspectSource,qle=kr.WeakMap,zKt=us(qle)&&/native code/.test(TY(qle)),Jle=AY("keys"),PY=function(e){return Jle[e]||(Jle[e]=S2e(e))},DY={},fz=kr.TypeError,ZKt=kr.WeakMap;if(zKt||Nv.state){var Iy=Nv.state||(Nv.state=new ZKt),GKt=Gi(Iy.get),eue=Gi(Iy.has),QKt=Gi(Iy.set);j5=function(e,t){if(eue(Iy,e))throw new fz("Object already initialized");return t.facade=e,QKt(Iy,e,t),t},Uk=function(e){return GKt(Iy,e)||{}},W5=function(e){return eue(Iy,e)}}else{var Fw=PY("state");DY[Fw]=!0,j5=function(e,t){if(hu(e,Fw))throw new fz("Object already initialized");return t.facade=e,au(e,Fw,t),t},Uk=function(e){return hu(e,Fw)?e[Fw]:{}},W5=function(e){return hu(e,Fw)}}var o1={set:j5,get:Uk,has:W5,enforce:function(e){return W5(e)?Uk(e):j5(e,{})},getterFor:function(e){return function(t){var n;if(!Op(t)||(n=Uk(t)).type!==e)throw fz("Incompatible receiver, "+e+" required");return n}}},I2e=Function.prototype,UKt=Hp&&Object.getOwnPropertyDescriptor,n6=hu(I2e,"name"),RY={EXISTS:n6,PROPER:n6&&(function(){}).name==="something",CONFIGURABLE:n6&&(!Hp||Hp&&UKt(I2e,"name").configurable)},a1=T1(function(e){var t=RY.CONFIGURABLE,n=o1.get,r=o1.enforce,i=String(String).split("String");(e.exports=function(o,a,s,l){var u,c=!!l&&!!l.unsafe,d=!!l&&!!l.enumerable,h=!!l&&!!l.noTargetGet,f=l&&l.name!==void 0?l.name:a;us(s)&&(String(f).slice(0,7)==="Symbol("&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!hu(s,"name")||t&&s.name!==f)&&au(s,"name",f),(u=r(s)).source||(u.source=i.join(typeof f=="string"?f:""))),o!==kr?(c?!h&&o[a]&&(d=!0):delete o[a],d?o[a]=s:au(o,a,s)):d?o[a]=s:SY(a,s)})(Function.prototype,"toString",function(){return us(this)&&n(this).source||TY(this)})}),XKt=Math.ceil,YKt=Math.floor,$Y=function(e){var t=+e;return t!=t||t===0?0:(t>0?YKt:XKt)(t)},KKt=Math.max,qKt=Math.min,gz=function(e,t){var n=$Y(e);return n<0?KKt(n+t,0):qKt(n,t)},JKt=Math.min,k2e=function(e){return e>0?JKt($Y(e),9007199254740991):0},dB=function(e){return k2e(e.length)},tue=function(e){return function(t,n,r){var i,o=Zx(t),a=dB(o),s=gz(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},eqt={includes:tue(!0),indexOf:tue(!1)}.indexOf,nue=Gi([].push),E2e=function(e,t){var n,r=Zx(e),i=0,o=[];for(n in r)!hu(DY,n)&&hu(r,n)&&nue(o,n);for(;t.length>i;)hu(r,n=t[i++])&&(~eqt(o,n)||nue(o,n));return o},H5=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tqt=H5.concat("length","prototype"),nqt=Object.getOwnPropertyNames||function(e){return E2e(e,tqt)},rqt={f:nqt},iqt={f:Object.getOwnPropertySymbols},oqt=Gi([].concat),aqt=G_("Reflect","ownKeys")||function(e){var t=rqt.f(sc(e)),n=iqt.f;return n?oqt(t,n(e)):t},_2e=function(e,t){for(var n=aqt(t),r=Gx.f,i=_Y.f,o=0;o<n.length;o++){var a=n[o];hu(e,a)||r(e,a,i(t,a))}},sqt=/#|\.prototype\./,Q_=function(e,t){var n=uqt[lqt(e)];return n==dqt||n!=cqt&&(us(t)?xs(t):!!t)},lqt=Q_.normalize=function(e){return String(e).replace(sqt,".").toLowerCase()},uqt=Q_.data={},cqt=Q_.NATIVE="N",dqt=Q_.POLYFILL="P",hqt=Q_,pqt=_Y.f,U_=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?kr:u?kr[s]||SY(s,{}):(kr[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=pqt(n,r))&&a.value:n[r],!hqt(l?r:s+(u?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;_2e(o,i)}(e.sham||i&&i.sham)&&au(o,"sham",!0),a1(n,r,o,e)}},T2e={};T2e[Vl("toStringTag")]="z";var YD,MY=String(T2e)==="[object z]",fqt=Vl("toStringTag"),gqt=kr.Object,mqt=xb(function(){return arguments}())=="Arguments",hB=MY?xb:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=gqt(e),fqt))=="string"?n:mqt?xb(t):(r=xb(t))=="Object"&&us(t.callee)?"Arguments":r},vqt=kr.String,Ab=function(e){if(hB(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return vqt(e)},yqt=function(){var e=sc(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},LY=kr.RegExp,BY=xs(function(){var e=LY("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),bqt=BY||xs(function(){return!LY("a","y").sticky}),wqt=BY||xs(function(){var e=LY("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),Cqt={BROKEN_CARET:wqt,MISSED_STICKY:bqt,UNSUPPORTED_Y:BY},Oqt=Object.keys||function(e){return E2e(e,H5)},xqt=Hp?Object.defineProperties:function(e,t){sc(e);for(var n,r=Zx(t),i=Oqt(t),o=i.length,a=0;o>a;)Gx.f(e,n=i[a++],r[n]);return e},Sqt=G_("document","documentElement"),P2e=PY("IE_PROTO"),r6=function(){},D2e=function(e){return"<script>"+e+"<\/script>"},rue=function(e){e.write(D2e("")),e.close();var t=e.parentWindow.Object;return e=null,t},t$=function(){try{YD=new ActiveXObject("htmlfile")}catch{}var e,t;t$=typeof document<"u"?document.domain&&YD?rue(YD):((t=EY("iframe")).style.display="none",Sqt.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(D2e("document.F=Object")),e.close(),e.F):rue(YD);for(var n=H5.length;n--;)delete t$.prototype[H5[n]];return t$()};DY[P2e]=!0;var iue,i6,X_=Object.create||function(e,t){var n;return e!==null?(r6.prototype=sc(e),n=new r6,r6.prototype=null,n[P2e]=e):n=t$(),t===void 0?n:xqt(n,t)},Aqt=kr.RegExp,Iqt=xs(function(){var e=Aqt(".","s");return!(e.dotAll&&e.exec(`
|
|
`)&&e.flags==="s")}),kqt=kr.RegExp,Eqt=xs(function(){var e=kqt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),_qt=o1.get,Tqt=AY("native-string-replace",String.prototype.replace),z5=RegExp.prototype.exec,mz=z5,Pqt=Gi("".charAt),Dqt=Gi("".indexOf),Rqt=Gi("".replace),o6=Gi("".slice),a6=(i6=/b*/g,Ns(z5,iue=/a/,"a"),Ns(z5,i6,"a"),iue.lastIndex!==0||i6.lastIndex!==0),oue=Cqt.BROKEN_CARET,s6=/()??/.exec("")[1]!==void 0;(a6||s6||oue||Iqt||Eqt)&&(mz=function(e){var t,n,r,i,o,a,s,l=this,u=_qt(l),c=Ab(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Ns(mz,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=oue&&l.sticky,g=Ns(yqt,l),b=l.source,v=0,m=c;if(f&&(g=Rqt(g,"y",""),Dqt(g,"g")===-1&&(g+="g"),m=o6(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Pqt(c,l.lastIndex-1)!==`
|
|
`)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),s6&&(n=new RegExp("^"+b+"$(?!\\s)",g)),a6&&(r=l.lastIndex),i=Ns(z5,f?n:l,m),f?i?(i.input=o6(i.input,v),i[0]=o6(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:a6&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),s6&&i&&i.length>1&&Ns(Tqt,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=X_(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var Z5=mz;U_({target:"RegExp",proto:!0,forced:/./.exec!==Z5},{exec:Z5});var $qt=Vl("species"),aue=RegExp.prototype,Mqt=Gi("".charAt),sue=Gi("".charCodeAt),Lqt=Gi("".slice),lue=function(e){return function(t,n){var r,i,o=Ab(cB(t)),a=$Y(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=sue(o,a))<55296||r>56319||a+1===s||(i=sue(o,a+1))<56320||i>57343?e?Mqt(o,a):r:e?Lqt(o,a,a+2):i-56320+(r-55296<<10)+65536}},R2e={codeAt:lue(!1),charAt:lue(!0)},Bqt=R2e.charAt,Fqt=function(e,t,n){return t+(n?Bqt(e,t).length:1)},Nqt=kr.TypeError,uue=function(e,t){var n=e.exec;if(us(n)){var r=Ns(n,e,t);return r!==null&&sc(r),r}if(xb(e)==="RegExp")return Ns(Z5,e,t);throw Nqt("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var i=Vl(e),o=!xs(function(){var u={};return u[i]=function(){return 7},""[e](u)!=7}),a=o&&!xs(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[$qt]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return u=!0,null},c[i](""),!u});if(!o||!a||n){var s=Gi(/./[i]),l=t(i,""[e],function(u,c,d,h,f){var g=Gi(u),b=c.exec;return b===Z5||b===aue.exec?o&&!f?{done:!0,value:s(c,d,h)}:{done:!0,value:g(d,c,h)}:{done:!1}});a1(String.prototype,e,l[0]),a1(aue,i,l[1])}})("match",function(e,t,n){return[function(r){var i=cB(this),o=r==null?void 0:gE(r,e);return o?Ns(o,r,i):new RegExp(r)[e](Ab(i))},function(r){var i=sc(this),o=Ab(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return uue(i,o);var s=i.unicode;i.lastIndex=0;for(var l,u=[],c=0;(l=uue(i,o))!==null;){var d=Ab(l[0]);u[c]=d,d===""&&(i.lastIndex=Fqt(o,k2e(i.lastIndex),s)),c++}return c===0?null:u}]}),U_({global:!0},{globalThis:kr});var Vqt=!xs(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),cue=PY("IE_PROTO"),vz=kr.Object,jqt=vz.prototype,mE=Vqt?vz.getPrototypeOf:function(e){var t=IY(e);if(hu(t,cue))return t[cue];var n=t.constructor;return us(n)&&t instanceof n?n.prototype:t instanceof vz?jqt:null},Wqt=kr.String,Hqt=kr.TypeError,zO=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Gi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return sc(r),function(o){if(typeof o=="object"||us(o))return o;throw Hqt("Can't set "+Wqt(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),zqt=kr.Array,Zqt=Math.max,Gqt=Gi("".replace),Qqt=Gi("".split),Uqt=Gi([].join),yz=String(Error("zxcasd").stack),$2e=/\n\s*at [^:]*:[^\n]*/,Xqt=$2e.test(yz),Yqt=/@[^\n]*\n/.test(yz)&&!/zxcasd/.test(yz),Kqt=function(e,t){if(typeof e!="string")return e;if(Xqt)for(;t--;)e=Gqt(e,$2e,"");else if(Yqt)return Uqt(function(n,r,i){for(var o,a,s,l,u=dB(n),c=gz(r,u),d=gz(u,u),h=zqt(Zqt(d-c,0)),f=0;c<d;c++,f++)o=h,a=f,s=n[c],l=void 0,(l=kY(a))in o?Gx.f(o,l,Fv(0,s)):o[l]=s;return h.length=f,h}(Qqt(e,`
|
|
`),t),`
|
|
`);return e},qqt=function(e,t){Op(t)&&"cause"in t&&au(e,"cause",t.cause)},due=Gi(Gi.bind),M2e=function(e,t){return xY(e),t===void 0?e:due?due(e,t):function(){return e.apply(t,arguments)}},ZO={},Jqt=Vl("iterator"),eJt=Array.prototype,tJt=Vl("iterator"),hue=function(e){if(e!=null)return gE(e,tJt)||gE(e,"@@iterator")||ZO[hB(e)]},nJt=kr.TypeError,pue=function(e,t,n){var r,i;sc(e);try{if(!(r=gE(e,"return"))){if(t==="throw")throw n;return n}r=Ns(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return sc(r),n},rJt=kr.TypeError,n$=function(e,t){this.stopped=e,this.result=t},fue=n$.prototype,iJt=function(e,t,n){var r,i,o,a,s,l,u,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),g=M2e(t,c),b=function(m){return r&&pue(r,"normal",m),new n$(!0,m)},v=function(m){return d?(sc(m),f?g(m[0],m[1],b):g(m[0],m[1])):f?g(m,b):g(m)};if(h)r=e;else{if(!(i=hue(e)))throw rJt(hz(e)+" is not iterable");if(function(m){return m!==void 0&&(ZO.Array===m||eJt[Jqt]===m)}(i)){for(o=0,a=dB(e);a>o;o++)if((s=v(e[o]))&&V5(fue,s))return s;return new n$(!1)}r=function(m,w){var k=arguments.length<2?hue(m):w;if(xY(k))return sc(Ns(k,m));throw nJt(hz(m)+" is not iterable")}(e,i)}for(l=r.next;!(u=Ns(l,r)).done;){try{s=v(u.value)}catch(m){pue(r,"throw",m)}if(typeof s=="object"&&s&&V5(fue,s))return s}return new n$(!1)},oJt=function(e,t){return e===void 0?arguments.length<2?"":t:Ab(e)},aJt=!xs(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Fv(1,7)),e.stack!==7)}),sJt=Vl("toStringTag"),G5=kr.Error,lJt=[].push,vE=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=V5(l6,this);zO?n=zO(new G5(void 0),i?mE(this):l6):(n=i?this:X_(l6),au(n,sJt,"Error")),au(n,"message",oJt(t,"")),aJt&&au(n,"stack",Kqt(n.stack,1)),qqt(n,r);var o=[];return iJt(e,lJt,{that:o}),au(n,"errors",o),n};zO?zO(vE,G5):_2e(vE,G5);var l6=vE.prototype=X_(G5.prototype,{constructor:Fv(1,vE),message:Fv(1,""),name:Fv(1,"AggregateError")});U_({global:!0},{AggregateError:vE});var bz=Vl("unscopables"),wz=Array.prototype;wz[bz]==null&&Gx.f(wz,bz,{configurable:!0,value:X_(null)});var Ib,gue,mue,u6=function(e){wz[bz][e]=!0},Cz=Vl("iterator"),L2e=!1;[].keys&&("next"in(mue=[].keys())?(gue=mE(mE(mue)))!==Object.prototype&&(Ib=gue):L2e=!0);var uJt=Ib==null||xs(function(){var e={};return Ib[Cz].call(e)!==e});uJt&&(Ib={}),us(Ib[Cz])||a1(Ib,Cz,function(){return this});var FY={IteratorPrototype:Ib,BUGGY_SAFARI_ITERATORS:L2e},cJt=Gx.f,vue=Vl("toStringTag"),yue=function(e,t,n){e&&!hu(e=n?e:e.prototype,vue)&&cJt(e,vue,{configurable:!0,value:t})},dJt=FY.IteratorPrototype,hJt=function(){return this},pJt=RY.PROPER,fJt=RY.CONFIGURABLE,bue=FY.IteratorPrototype,c6=FY.BUGGY_SAFARI_ITERATORS,TA=Vl("iterator"),gJt=function(){return this},B2e=function(e,t,n,r,i,o,a){(function(v,m,w,k){var T=m+" Iterator";v.prototype=X_(dJt,{next:Fv(+!k,w)}),yue(v,T,!1),ZO[T]=hJt})(n,t,r);var s,l,u=function(v){if(v===i&&g)return g;if(!c6&&v in h)return h[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,h=e.prototype,f=h[TA]||h["@@iterator"]||i&&h[i],g=!c6&&f||u(i),b=t=="Array"&&h.entries||f;return b&&(s=mE(b.call(new e)))!==Object.prototype&&s.next&&(mE(s)!==bue&&(zO?zO(s,bue):us(s[TA])||a1(s,TA,gJt)),yue(s,c,!0)),pJt&&i=="values"&&f&&f.name!=="values"&&(fJt?au(h,"name","values"):(d=!0,g=function(){return Ns(f,this)})),i&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||U_({target:t,proto:!0,forced:c6||d},l)),h[TA]!==g&&a1(h,TA,g,{name:i}),ZO[t]=g,l},mJt=o1.set,vJt=o1.getterFor("Array Iterator"),ak=B2e(Array,"Array",function(e,t){mJt(this,{type:"Array Iterator",target:Zx(e),index:0,kind:t})},function(){var e=vJt(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");ZO.Arguments=ZO.Array,u6("keys"),u6("values"),u6("entries");var yJt=R2e.charAt,bJt=o1.set,wJt=o1.getterFor("String Iterator");B2e(String,"String",function(e){bJt(this,{type:"String Iterator",string:Ab(e),index:0})},function(){var e,t=wJt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=yJt(n,r),t.index+=e.length,{value:e,done:!1})});var d6,Q5={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},h6=EY("span").classList,wue=h6&&h6.constructor&&h6.constructor.prototype,F2e=wue===Object.prototype?void 0:wue,p6=Vl("iterator"),Cue=Vl("toStringTag"),f6=ak.values,N2e=function(e,t){if(e){if(e[p6]!==f6)try{au(e,p6,f6)}catch{e[p6]=f6}if(e[Cue]||au(e,Cue,t),Q5[t]){for(var n in ak)if(e[n]!==ak[n])try{au(e,n,ak[n])}catch{e[n]=ak[n]}}}};for(var g6 in Q5)N2e(kr[g6]&&kr[g6].prototype,g6);N2e(F2e,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
|
|
Sorry, wangEditor V5+ versions do not support IE browser.`),Oue(),xue()):global&&!((d6=global.navigator)===null||d6===void 0)&&d6.userAgent.match("QQBrowser")&&(Oue(),xue());function Oue(){typeof globalThis>"u"&&(window.globalThis=window)}function xue(){fKt===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var Sue,U5=Array.isArray||function(e){return Cb(e)=="Array"},V2e=function(){},CJt=[],j2e=Wx("Reflect","construct"),NY=/^\s*(?:class|function)\b/,OJt=Co(NY.exec),xJt=!NY.exec(V2e),PA=function(e){if(!Ws(e))return!1;try{return j2e(V2e,CJt,e),!0}catch{return!1}},SJt=!j2e||mu(function(){var e;return PA(PA.call)||!PA(Object)||!PA(function(){e=!0})||e})?function(e){if(!Ws(e))return!1;switch(Z_(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xJt||!!OJt(NY,v2e(e))}:PA,AJt=gl("species"),Aue=Mr.Array,W2e=function(e,t){return new(function(n){var r;return U5(n)&&(r=n.constructor,(SJt(r)&&(r===Aue||U5(r.prototype))||Gc(r)&&(r=r[AJt])===null)&&(r=void 0)),r===void 0?Aue:r}(e))(t===0?0:t)},IJt=gl("species"),H2e=gl("isConcatSpreadable"),Iue=Mr.TypeError,kJt=_5>=51||!mu(function(){var e=[];return e[H2e]=!1,e.concat()[0]!==e}),EJt=(Sue="concat",_5>=51||!mu(function(){var e=[];return(e.constructor={})[IJt]=function(){return{foo:1}},e[Sue](Boolean).foo!==1})),_Jt=function(e){if(!Gc(e))return!1;var t=e[H2e];return t!==void 0?!!t:U5(e)};Kf({target:"Array",proto:!0,forced:!kJt||!EJt},{concat:function(e){var t,n,r,i,o,a=j_(this),s=W2e(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(_Jt(o=t===-1?a:arguments[t])){if(l+(i=H_(o))>9007199254740991)throw Iue("Maximum allowed index exceeded");for(n=0;n<i;n++,l++)n in o&&iz(s,l,o[n])}else{if(l>=9007199254740991)throw Iue("Maximum allowed index exceeded");iz(s,l++,o)}return s.length=l,s}});var kue=bY.f,Eue=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],z2e={f:function(e){return Eue&&Cb(e)=="Window"?function(t){try{return kue(t)}catch{return f2e(Eue)}}(e):kue(af(e))}},TJt=Co([].slice),VY={f:gl},PJt=M0.f,Sa=function(e){var t=Gu.Symbol||(Gu.Symbol={});ui(t,e)||PJt(t,e,{value:VY.f(e)})},_ue=Co([].push),Am=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,u,c,d){for(var h,f,g=j_(l),b=l2e(g),v=vY(u,c),m=H_(b),w=0,k=d||W2e,T=t?k(l,m):n||a?k(l,0):void 0;m>w;w++)if((s||w in b)&&(f=v(h=b[w],w,g),e))if(t)T[w]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:_ue(T,h)}else switch(e){case 4:return!1;case 7:_ue(T,h)}return o?-1:r||i?i:T}},pB={forEach:Am(0),map:Am(1),filter:Am(2),some:Am(3),every:Am(4),find:Am(5),findIndex:Am(6),filterReject:Am(7)}.forEach,nu=uB("hidden"),Tue=gl("toPrimitive"),DJt=zx.set,Pue=zx.getterFor("Symbol"),Gd=Object.prototype,vv=Mr.Symbol,kv=vv&&vv.prototype,Due=Mr.TypeError,m6=Mr.QObject,DA=Wx("JSON","stringify"),Z2e=lB.f,yv=M0.f,G2e=z2e.f,RJt=pY.f,Q2e=Co([].push),Ag=P1("symbols"),Y_=P1("op-symbols"),v6=P1("string-to-symbol-registry"),y6=P1("symbol-to-string-registry"),$Jt=P1("wks"),b6=!m6||!m6.prototype||!m6.prototype.findChild,Oz=du&&mu(function(){return Sg(yv({},"a",{get:function(){return yv(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=Z2e(Gd,t);r&&delete Gd[t],yv(e,t,n),r&&e!==Gd&&yv(Gd,t,r)}:yv,w6=function(e,t){var n=Ag[e]=Sg(kv);return DJt(n,{type:"Symbol",tag:e,description:t}),du||(n.description=t),n},X5=function(e,t,n){e===Gd&&X5(Y_,t,n),ac(e);var r=Hx(t);return ac(n),ui(Ag,r)?(n.enumerable?(ui(e,nu)&&e[nu][r]&&(e[nu][r]=!1),n=Sg(n,{enumerable:th(0,!1)})):(ui(e,nu)||yv(e,nu,th(1,{})),e[nu][r]=!0),Oz(e,r,n)):yv(e,r,n)},Rue=function(e,t){ac(e);var n=af(t),r=wY(n).concat(xz(n));return pB(r,function(i){du&&!ec(U2e,n,i)||X5(e,i,n[i])}),e},U2e=function(e){var t=Hx(e),n=ec(RJt,this,t);return!(this===Gd&&ui(Ag,t)&&!ui(Y_,t))&&(!(n||!ui(this,t)||!ui(Ag,t)||ui(this,nu)&&this[nu][t])||n)},$ue=function(e,t){var n=af(e),r=Hx(t);if(n!==Gd||!ui(Ag,r)||ui(Y_,r)){var i=Z2e(n,r);return!i||!ui(Ag,r)||ui(n,nu)&&n[nu][r]||(i.enumerable=!0),i}},Mue=function(e){var t=G2e(af(e)),n=[];return pB(t,function(r){ui(Ag,r)||ui(z_,r)||Q2e(n,r)}),n},xz=function(e){var t=e===Gd,n=G2e(t?Y_:af(e)),r=[];return pB(n,function(i){!ui(Ag,i)||t&&!ui(Gd,i)||Q2e(r,Ag[i])}),r};if(ip||(kv=(vv=function(){if(hE(kv,this))throw Due("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?pE(arguments[0]):void 0,t=P5(e),n=function(r){this===Gd&&ec(n,Y_,r),ui(this,nu)&&ui(this[nu],t)&&(this[nu][t]=!1),Oz(this,t,th(1,r))};return du&&b6&&Oz(Gd,t,{configurable:!0,set:n}),w6(t,e)}).prototype,F5(kv,"toString",function(){return Pue(this).tag}),F5(vv,"withoutSetter",function(e){return w6(P5(e),e)}),pY.f=U2e,M0.f=X5,lB.f=$ue,bY.f=z2e.f=Mue,K3.f=xz,VY.f=function(e){return w6(gl(e),e)},du&&yv(kv,"description",{configurable:!0,get:function(){return Pue(this).description}})),Kf({global:!0,wrap:!0,forced:!ip,sham:!ip},{Symbol:vv}),pB(wY($Jt),function(e){Sa(e)}),Kf({target:"Symbol",stat:!0,forced:!ip},{for:function(e){var t=pE(e);if(ui(v6,t))return v6[t];var n=vv(t);return v6[t]=n,y6[n]=t,n},keyFor:function(e){if(!iO(e))throw Due(e+" is not a symbol");if(ui(y6,e))return y6[e]},useSetter:function(){b6=!0},useSimple:function(){b6=!1}}),Kf({target:"Object",stat:!0,forced:!ip,sham:!du},{create:function(e,t){return t===void 0?Sg(e):Rue(Sg(e),t)},defineProperty:X5,defineProperties:Rue,getOwnPropertyDescriptor:$ue}),Kf({target:"Object",stat:!0,forced:!ip},{getOwnPropertyNames:Mue,getOwnPropertySymbols:xz}),Kf({target:"Object",stat:!0,forced:mu(function(){K3.f(1)})},{getOwnPropertySymbols:function(e){return K3.f(j_(e))}}),DA){var MJt=!ip||mu(function(){var e=vv();return DA([e])!="[null]"||DA({a:e})!="{}"||DA(Object(e))!="{}"});Kf({target:"JSON",stat:!0,forced:MJt},{stringify:function(e,t,n){var r=TJt(arguments),i=t;if((Gc(t)||e!==void 0)&&!iO(e))return U5(t)||(t=function(o,a){if(Ws(i)&&(a=ec(i,this,o,a)),!iO(a))return a}),r[1]=t,a2e(DA,null,r)}})}if(!kv[Tue]){var LJt=kv.valueOf;F5(kv,Tue,function(e){return ec(LJt,this)})}N5(vv,"Symbol"),z_[nu]=!0,Sa("asyncIterator"),Sa("hasInstance"),Sa("isConcatSpreadable"),Sa("iterator"),Sa("match"),Sa("matchAll"),Sa("replace"),Sa("search"),Sa("species"),Sa("split"),Sa("toPrimitive"),Sa("toStringTag"),Sa("unscopables"),N5(Mr.JSON,"JSON",!0);var BJt=Gu.Symbol;Sa("asyncDispose"),Sa("dispose"),Sa("matcher"),Sa("metadata"),Sa("observable"),Sa("patternMatch"),Sa("replaceAll");var KD=BJt,FJt=VY.f("iterator"),NJt=T1(function(e){function t(n){return typeof KD=="function"&&typeof FJt=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof KD=="function"&&r.constructor===KD&&r!==KD.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),VJt=xXt(NJt),X2e=_Y.f,jJt=xs(function(){X2e(1)});if(U_({target:"Object",stat:!0,forced:!Hp||jJt,sham:!Hp},{getOwnPropertyDescriptor:function(e,t){return X2e(Zx(e),t)}}),(typeof global>"u"?"undefined":VJt(global))==="object"){var WJt=Object.getOwnPropertyDescriptor(global,"window");global.window&&!WJt.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
|
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
*
|
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
* Released under the MIT License.
|
|
*/function Lue(e){return Object.prototype.toString.call(e)==="[object Object]"}function qs(e){var t,n;return Lue(e)!==!1&&((t=e.constructor)===void 0||Lue(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function zd(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function s1(e){return!!e&&!!e[lc]}function l1(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===UJt}(e)||Array.isArray(e)||!!e[zue]||!!e.constructor[zue]||jY(e)||WY(e))}function yE(e,t,n){n===void 0&&(n=!1),GO(e)===0?(n?Object.keys:QY)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function GO(e){var t=e[lc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:jY(e)?2:WY(e)?3:0}function Sz(e,t){return GO(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Y2e(e,t,n){var r=GO(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function jY(e){return GJt&&e instanceof Map}function WY(e){return QJt&&e instanceof Set}function Hy(e){return e.o||e.t}function HY(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=XJt(e);delete t[lc];for(var n=QY(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function zY(e,t){return t===void 0&&(t=!1),ZY(e)||s1(e)||!l1(e)||(GO(e)>1&&(e.set=e.add=e.clear=e.delete=HJt),Object.freeze(e),t&&yE(e,function(n,r){return zY(r,!0)},!0)),e}function HJt(){zd(2)}function ZY(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function pg(e){var t=YJt[e];return t||zd(18,e),t}function Bue(){return bE}function C6(e,t){t&&(pg("Patches"),e.u=[],e.s=[],e.v=t)}function Y5(e){Az(e),e.p.forEach(zJt),e.p=null}function Az(e){e===bE&&(bE=e.l)}function Fue(e){return bE={p:[],l:bE,h:e,m:!0,_:0}}function zJt(e){var t=e[lc];t.i===0||t.i===1?t.j():t.O=!0}function O6(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||pg("ES5").S(t,e,r),r?(n[lc].P&&(Y5(t),zd(4)),l1(e)&&(e=K5(t,e),t.l||q5(t,e)),t.u&&pg("Patches").M(n[lc],e,t.u,t.s)):e=K5(t,n,[]),Y5(t),t.u&&t.v(t.u,t.s),e!==K2e?e:void 0}function K5(e,t,n){if(ZY(t))return t;var r=t[lc];if(!r)return yE(t,function(o,a){return Nue(e,r,t,o,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return q5(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=HY(r.k):r.o;yE(r.i===3?new Set(i):i,function(o,a){return Nue(e,r,i,o,a,n)}),q5(e,i,!1),n&&e.u&&pg("Patches").R(r,n,e.u,e.s)}return r.o}function Nue(e,t,n,r,i,o){if(s1(i)){var a=K5(e,i,o&&t&&t.i!==3&&!Sz(t.D,r)?o.concat(r):void 0);if(Y2e(n,r,a),!s1(a))return;e.m=!1}if(l1(i)&&!ZY(i)){if(!e.h.F&&e._<1)return;K5(e,i),t&&t.A.l||q5(e,i)}}function q5(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&zY(t,n)}function x6(e,t){var n=e[lc];return(n?Hy(n):e)[t]}function Vue(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Iz(e){e.P||(e.P=!0,e.l&&Iz(e.l))}function S6(e){e.o||(e.o=HY(e.t))}function kz(e,t,n){var r=jY(t)?pg("MapSet").N(t,n):WY(t)?pg("MapSet").T(t,n):e.g?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:Bue(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,u=r$;a&&(l=[s],u=i$);var c=Proxy.revocable(l,u),d=c.revoke,h=c.proxy;return s.k=h,s.j=d,h}(t,n):pg("ES5").J(t,n);return(n?n.A:Bue()).p.push(r),r}function ZJt(e){return s1(e)||zd(22,e),function t(n){if(!l1(n))return n;var r,i=n[lc],o=GO(n);if(i){if(!i.P&&(i.i<4||!pg("ES5").K(i)))return i.t;i.I=!0,r=jue(n,o),i.I=!1}else r=jue(n,o);return yE(r,function(a,s){i&&function(l,u){return GO(l)===2?l.get(u):l[u]}(i.t,a)===s||Y2e(r,a,t(s))}),o===3?new Set(r):r}(e)}function jue(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return HY(e)}var Wue,bE,GY=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",GJt=typeof Map<"u",QJt=typeof Set<"u",Hue=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",K2e=GY?Symbol.for("immer-nothing"):((Wue={})["immer-nothing"]=!0,Wue),zue=GY?Symbol.for("immer-draftable"):"__$immer_draftable",lc=GY?Symbol.for("immer-state"):"__$immer_state",UJt=""+Object.prototype.constructor,QY=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,XJt=Object.getOwnPropertyDescriptors||function(e){var t={};return QY(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},YJt={},r$={get:function(e,t){if(t===lc)return e;var n=Hy(e);if(!Sz(n,t))return function(i,o,a){var s,l=Vue(o,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!l1(r)?r:r===x6(e.t,t)?(S6(e),e.o[t]=kz(e.A.h,r,e)):r},has:function(e,t){return t in Hy(e)},ownKeys:function(e){return Reflect.ownKeys(Hy(e))},set:function(e,t,n){var r=Vue(Hy(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=x6(Hy(e),t),o=i==null?void 0:i[lc];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(a,s){return a===s?a!==0||1/a==1/s:a!=a&&s!=s}(n,i)&&(n!==void 0||Sz(e.t,t)))return!0;S6(e),Iz(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return x6(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,S6(e),Iz(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Hy(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){zd(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){zd(12)}},i$={};yE(r$,function(e,t){i$[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),i$.deleteProperty=function(e,t){return r$.deleteProperty.call(this,e[0],t)},i$.set=function(e,t,n){return r$.set.call(this,e[0],t,n,e[0])};var KJt=function(){function e(n){var r=this;this.g=Hue,this.F=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var l=r;return function(f){var g=this;f===void 0&&(f=s);for(var b=arguments.length,v=Array(b>1?b-1:0),m=1;m<b;m++)v[m-1]=arguments[m];return l.produce(f,function(w){var k;return(k=o).call.apply(k,[g,w].concat(v))})}}var u;if(typeof o!="function"&&zd(6),a!==void 0&&typeof a!="function"&&zd(7),l1(i)){var c=Fue(r),d=kz(r,i,void 0),h=!0;try{u=o(d),h=!1}finally{h?Y5(c):Az(c)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(f){return C6(c,a),O6(f,c)},function(f){throw Y5(c),f}):(C6(c,a),O6(u,c))}if(!i||typeof i!="object")return(u=o(i))===K2e?void 0:(u===void 0&&(u=i),r.F&&zY(u,!0),u);zd(21,i)},this.produceWithPatches=function(i,o){return typeof i=="function"?function(l){for(var u=arguments.length,c=Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];return r.produceWithPatches(l,function(h){return i.apply(void 0,[h].concat(c))})}:[r.produce(i,o,function(l,u){a=l,s=u}),a,s];var a,s},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){l1(n)||zd(8),s1(n)&&(n=ZJt(n));var r=Fue(this),i=kz(this,n,void 0);return i[lc].C=!0,Az(r),i},t.finishDraft=function(n,r){var i=(n&&n[lc]).A;return C6(i,r),O6(void 0,i)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!Hue&&zd(20),this.g=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var a=pg("Patches").$;return s1(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},e}(),Hu=new KJt,fB=Hu.produce;Hu.produceWithPatches.bind(Hu),Hu.setAutoFreeze.bind(Hu),Hu.setUseProxies.bind(Hu),Hu.applyPatches.bind(Hu);var Zue=Hu.createDraft.bind(Hu),Gue=Hu.finishDraft.bind(Hu);function sf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J5=new WeakMap,RA=new WeakMap,Que=new WeakMap,Uue=new WeakMap,Xue=new WeakMap,Yue=new WeakMap;function Kue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kue(Object(n),!0).forEach(function(r){sf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kue(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qJt=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of _e.pathRefs(e))Een.transform(n,t);for(var r of _e.pointRefs(e))_en.transform(r,t);for(var i of _e.rangeRefs(e))Pen.transform(i,t);var o=new Set,a=[],s=h=>{if(h){var f=h.join(",");o.has(f)||(o.add(f),a.push(h))}},l=J5.get(e)||[],u=JJt(t);for(var c of l)s(Ot.transform(c,t));for(var d of u)s(d);J5.set(e,a),Rt.transform(e,t),e.operations.push(t),_e.normalize(e),t.type==="set_selection"&&(e.marks=null),RA.get(e)||(RA.set(e,!0),Promise.resolve().then(()=>{RA.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Vt.isExpanded(r))Rt.setNodes(e,{[t]:n},{match:In.isText,split:!0});else{var i=qD(qD({},_e.marks(e)||{}),{},{[t]:n});e.marks=i,RA.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Vt.isCollapsed(n)&&Rt.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Vt.isCollapsed(n)&&Rt.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Vt.isExpanded(n)&&Rt.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?vn.fragment(e,t):[]},insertBreak:()=>{Rt.splitNodes(e,{always:!0})},insertFragment:t=>{Rt.insertFragment(e,t)},insertNode:t=>{Rt.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=qD({text:t},r);Rt.insertNodes(e,i)}else Rt.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!In.isText(n))if(jn.isElement(n)&&n.children.length===0)Rt.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var i=!_e.isEditor(n)&&jn.isElement(n)&&(e.isInline(n)||n.children.length===0||In.isText(n.children[0])||e.isInline(n.children[0])),o=0,a=0;a<n.children.length;a++,o++){var s=vn.get(e,r);if(!In.isText(s)){var l=n.children[a],u=s.children[o-1],c=a===n.children.length-1;(In.isText(l)||jn.isElement(l)&&e.isInline(l))!==i?(Rt.removeNodes(e,{at:r.concat(o),voids:!0}),o--):jn.isElement(l)?e.isInline(l)&&(u!=null&&In.isText(u)?c&&(Rt.insertNodes(e,{text:""},{at:r.concat(o+1),voids:!0}),o++):(Rt.insertNodes(e,{text:""},{at:r.concat(o),voids:!0}),o++)):u!=null&&In.isText(u)&&(In.equals(l,u,{loose:!0})?(Rt.mergeNodes(e,{at:r.concat(o),voids:!0}),o--):u.text===""?(Rt.removeNodes(e,{at:r.concat(o-1),voids:!0}),o--):l.text===""&&(Rt.removeNodes(e,{at:r.concat(o),voids:!0}),o--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Vt.isExpanded(n))Rt.unsetNodes(e,t,{match:In.isText,split:!0});else{var r=qD({},_e.marks(e)||{});delete r[t],e.marks=r,RA.get(e)||e.onChange()}}};return e},JJt=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Ot.levels(t);case"insert_node":var{node:n,path:r}=e,i=Ot.levels(r),o=In.isText(n)?[]:Array.from(vn.nodes(n),T=>{var[,S]=T;return r.concat(S)});return[...i,...o];case"merge_node":var{path:a}=e;return[...Ot.ancestors(a),Ot.previous(a)];case"move_node":var{path:s,newPath:l}=e;if(Ot.equals(s,l))return[];var u=[],c=[];for(var d of Ot.ancestors(s)){var h=Ot.transform(d,e);u.push(h)}for(var f of Ot.ancestors(l)){var g=Ot.transform(f,e);c.push(g)}var b=c[c.length-1],v=l[l.length-1],m=b.concat(v);return[...u,...c,m];case"remove_node":var{path:w}=e;return[...Ot.ancestors(w)];case"split_node":var{path:k}=e;return[...Ot.levels(k),Ot.next(k)];default:return[]}};function Ig(e,t){if(e==null)return{};var n,r,i=function(a,s){if(a==null)return{};var l,u,c={},d=Object.keys(a);for(u=0;u<d.length;u++)l=d[u],s.indexOf(l)>=0||(c[l]=a[l]);return c}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var _r,Ez=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?ien(e):e,i=_r.None,o=_r.None,a=0,s=null;for(var l of r){var u=l.codePointAt(0);if(!u)break;var c=men(l,u);if([i,o]=n?[o,c]:[c,i],MC(i,_r.ZWJ)&&MC(o,_r.ExtPict)&&!wen(n?e.substring(0,a):e.substring(0,e.length-a))||MC(i,_r.RI)&&MC(o,_r.RI)&&!(s=s!==null?!s:!!n||Oen(e.substring(0,e.length-a)))||i!==_r.None&&o!==_r.None&¥(i,o))break;a+=l.length}return a||1},een=/\s/,ten=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nen=/['\u2018\u2019]/,_z=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},ren=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(een.test(t))return!1;if(nen.test(t)){var i=Ez(n,r),[o,a]=_z(n,i,r);if(e(o,a,r))return!0}return!ten.test(t)},ien=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(aen(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(oen(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},oen=e=>e>=55296&&e<=56319,aen=e=>e>=56320&&e<=57343;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(_r||(_r={}));var sen=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,len=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,uen=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,cen=/^[\u1100-\u115F\uA960-\uA97C]$/,den=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,hen=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,pen=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,fen=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,gen=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,men=(e,t)=>{var n=_r.Any;return e.search(sen)!==-1&&(n|=_r.Extend),t===8205&&(n|=_r.ZWJ),t>=127462&&t<=127487&&(n|=_r.RI),e.search(len)!==-1&&(n|=_r.Prepend),e.search(uen)!==-1&&(n|=_r.SpacingMark),e.search(cen)!==-1&&(n|=_r.L),e.search(den)!==-1&&(n|=_r.V),e.search(hen)!==-1&&(n|=_r.T),e.search(pen)!==-1&&(n|=_r.LV),e.search(fen)!==-1&&(n|=_r.LVT),e.search(gen)!==-1&&(n|=_r.ExtPict),n};function MC(e,t){return(e&t)!=0}var ven=[[_r.L,_r.L|_r.V|_r.LV|_r.LVT],[_r.LV|_r.V,_r.V|_r.T],[_r.LVT|_r.T,_r.T],[_r.Any,_r.Extend|_r.ZWJ],[_r.Any,_r.SpacingMark],[_r.Prepend,_r.Any],[_r.ZWJ,_r.ExtPict],[_r.RI,_r.RI]];function yen(e,t){return ven.findIndex(n=>MC(e,n[0])&&MC(t,n[1]))===-1}var ben=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,wen=e=>e.search(ben)!==-1,Cen=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Oen=e=>{var t=e.match(Cen);return t!==null&&t[0].length/2%2==1},que=e=>qs(e)&&vn.isNodeList(e.children)&&!_e.isEditor(e),jn={isAncestor:e=>qs(e)&&vn.isNodeList(e.children),isElement:que,isElementList:e=>Array.isArray(e)&&e.every(t=>jn.isElement(t)),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return que(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},xen=["text"],Sen=["text"];function Jue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jue(Object(n),!0).forEach(function(r){sf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jue(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ece=new WeakMap,_e={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:i=e.selection,match:o}=t;if(i){var a=_e.path(e,i),s=r==="lowest";for(var[l,u]of _e.levels(e,{at:a,voids:n,match:o,reverse:s}))if(!In.isText(l)&&!Ot.equals(a,u))return[l,u]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i={anchor:_e.point(e,t,{edge:"end"}),focus:_e.end(e,[])},{distance:o=1}=r,a=0;for(var s of _e.positions(e,Nw(Nw({},r),{},{at:i}))){if(a>o)break;a!==0&&(n=s),a++}return n},before(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i={anchor:_e.start(e,[]),focus:_e.point(e,t,{edge:"start"})},{distance:o=1}=r,a=0;for(var s of _e.positions(e,Nw(Nw({},r),{},{at:i,reverse:!0}))){if(a>o)break;a!==0&&(n=s),a++}return n},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[_e.start(e,t),_e.end(e,t)],end:(e,t)=>_e.point(e,t,{edge:"end"}),first(e,t){var n=_e.path(e,t,{edge:"start"});return _e.node(e,n)},fragment(e,t){var n=_e.range(e,t);return vn.fragment(e,n)},hasBlocks:(e,t)=>t.children.some(n=>_e.isBlock(e,n)),hasInlines:(e,t)=>t.children.some(n=>In.isText(n)||_e.isInline(e,n)),hasTexts:(e,t)=>t.children.every(n=>In.isText(n)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>jn.isElement(t)&&!e.isInline(t),isEditor(e){if(!qs(e))return!1;var t=ece.get(e);if(t!==void 0)return t;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteBackward=="function"&&typeof e.deleteForward=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isInline=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&(e.marks===null||qs(e.marks))&&(e.selection===null||Vt.isRange(e.selection))&&vn.isNodeList(e.children)&&Ev.isOperationList(e.operations);return ece.set(e,n),n},isEnd(e,t,n){var r=_e.end(e,n);return Vr.equals(t,r)},isEdge:(e,t,n)=>_e.isStart(e,t,n)||_e.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&In.isText(r)&&r.text===""&&!e.isVoid(t)},isInline:(e,t)=>jn.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Que.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=_e.start(e,n);return Vr.equals(t,r)},isVoid:(e,t)=>jn.isElement(t)&&e.isVoid(t),last(e,t){var n=_e.path(e,t,{edge:"end"});return _e.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=_e.path(e,t,n);return[vn.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:o}=t;if(o==null&&(o=()=>!0),n){var a=[],s=_e.path(e,n);for(var[l,u]of vn.levels(e,s))if(o(l,u)&&(a.push([l,u]),!i&&_e.isVoid(e,l)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Vt.isExpanded(n)){var[r]=_e.nodes(e,{match:In.isText});if(r){var[i]=r;return Ig(i,xen)}return{}}var{anchor:o}=n,{path:a}=o,[s]=_e.leaf(e,a);if(o.offset===0){var l=_e.previous(e,{at:a,match:In.isText}),u=_e.above(e,{match:f=>_e.isBlock(e,f)});if(l&&u){var[c,d]=l,[,h]=u;Ot.isAncestor(h,d)&&(s=c)}}return Ig(s,Sen)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=_e.after(e,o,{voids:r});if(a){var[,s]=_e.last(e,[]),l=[a.path,s];if(Ot.isPath(o)&&o.length===0)throw new Error("Cannot get the next node from the root node!");if(i==null)if(Ot.isPath(o)){var[u]=_e.parent(e,o);i=d=>u.children.includes(d)}else i=()=>!0;var[c]=_e.nodes(e,{at:l,match:i,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=_e.path(e,t,n);return[vn.get(e,r),r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:i=!1,reverse:o=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var l,u;if(Aen.isSpan(n))l=n[0],u=n[1];else{var c=_e.path(e,n,{edge:"start"}),d=_e.path(e,n,{edge:"end"});l=o?d:c,u=o?c:d}var h,f=vn.nodes(e,{reverse:o,from:l,to:u,pass:k=>{var[T]=k;return!a&&_e.isVoid(e,T)}}),g=[];for(var[b,v]of f){var m=h&&Ot.compare(v,h[1])===0;if(r!=="highest"||!m){if(s(b,v))if(r==="lowest"&&m)h=[b,v];else{var w=r==="lowest"?h:[b,v];w&&(i?g.push(w):yield w),h=[b,v]}else if(i&&!m&&In.isText(b))return}}r==="lowest"&&h&&(i?g.push(h):yield h),i&&(yield*g)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=o=>J5.get(o)||[];if(_e.isNormalizing(e)){if(n){var i=Array.from(vn.nodes(e),o=>{var[,a]=o;return a});J5.set(e,i)}r(e).length!==0&&_e.withoutNormalizing(e,()=>{for(var o of r(e))if(vn.has(e,o)){var a=_e.node(e,o),[s,l]=a;jn.isElement(s)&&s.children.length===0&&e.normalizeNode(a)}for(var u=42*r(e).length,c=0;r(e).length!==0;){if(c>u)throw new Error(`
|
|
Could not completely normalize the editor after `.concat(u,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
|
|
`));var d=r(e).pop();if(vn.has(e,d)){var h=_e.node(e,d);e.normalizeNode(h)}c++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=_e.path(e,t,n),i=Ot.parent(r);return _e.node(e,i)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:i}=n;if(Ot.isPath(t)){if(i==="start"){var[,o]=vn.first(e,t);t=o}else if(i==="end"){var[,a]=vn.last(e,t);t=a}}return Vt.isRange(t)&&(t=i==="start"?Vt.start(t):i==="end"?Vt.end(t):Ot.common(t.anchor.path,t.focus.path)),Vr.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>vn.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:o}=i;return _e.pathRefs(e).delete(i),i.current=null,o}};return _e.pathRefs(e).add(i),i},pathRefs(e){var t=Uue.get(e);return t||(t=new Set,Uue.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(Ot.isPath(t)){var i;if(r==="end"){var[,o]=vn.last(e,t);i=o}else{var[,a]=vn.first(e,t);i=a}var s=vn.get(e,i);if(!In.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:i,offset:r==="end"?s.text.length:0}}if(Vt.isRange(t)){var[l,u]=Vt.edges(t);return r==="start"?l:u}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:o}=i;return _e.pointRefs(e).delete(i),i.current=null,o}};return _e.pointRefs(e).add(i),i},pointRefs(e){var t=Xue.get(e);return t||(t=new Set,Xue.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:i=!1,voids:o=!1}=t;if(n){var a=_e.range(e,n),[s,l]=Vt.edges(a),u=i?l:s,c=!1,d="",h=0,f=0,g=0;for(var[b,v]of _e.nodes(e,{at:n,reverse:i,voids:o})){if(jn.isElement(b)){if(!o&&e.isVoid(b)){yield _e.start(e,v);continue}if(e.isInline(b))continue;if(_e.hasInlines(e,b)){var m=Ot.isAncestor(v,l.path)?l:_e.end(e,v),w=Ot.isAncestor(v,s.path)?s:_e.start(e,v);d=_e.string(e,{anchor:w,focus:m},{voids:o}),c=!0}}if(In.isText(b)){var k=Ot.equals(v,u.path);for(k?(f=i?u.offset:b.text.length-u.offset,g=u.offset):(f=b.text.length,g=i?f:0),(k||c||r==="offset")&&(yield{path:v,offset:g},c=!1);;){if(h===0){if(d==="")break;h=T(d,r,i),d=_z(d,h,i)[1]}if(g=i?g-h:g+h,(f-=h)<0){h=-f;break}h=0,yield{path:v,offset:g}}}}}function T(S,I,O){return I==="character"?Ez(S,O):I==="word"?function(y){for(var _=arguments.length>1&&arguments[1]!==void 0&&arguments[1],A=0,R=!1;y.length>0;){var D=Ez(y,_),[C,x]=_z(y,D,_);if(ren(C,x,_))R=!0,A+=D;else{if(R)break;A+=D}y=x}return A}(S,O):I==="line"||I==="block"?S.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=_e.before(e,o,{voids:r});if(a){var[,s]=_e.first(e,[]),l=[a.path,s];if(Ot.isPath(o)&&o.length===0)throw new Error("Cannot get the previous node from the root node!");if(i==null)if(Ot.isPath(o)){var[u]=_e.parent(e,o);i=d=>u.children.includes(d)}else i=()=>!0;var[c]=_e.nodes(e,{reverse:!0,at:l,match:i,mode:n,voids:r});return c}}},range:(e,t,n)=>Vt.isRange(t)&&!n?t:{anchor:_e.start(e,t),focus:_e.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:o}=i;return _e.rangeRefs(e).delete(i),i.current=null,o}};return _e.rangeRefs(e).add(i),i},rangeRefs(e){var t=Yue.get(e);return t||(t=new Set,Yue.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Que.set(e,t)},start:(e,t)=>_e.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,i=_e.range(e,t),[o,a]=Vt.edges(i),s="";for(var[l,u]of _e.nodes(e,{at:i,match:In.isText,voids:r})){var c=l.text;Ot.equals(u,a.path)&&(c=c.slice(0,a.offset)),Ot.equals(u,o.path)&&(c=c.slice(o.offset)),s+=c}return s},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[i,o]=Vt.edges(t);if(i.offset!==0||o.offset!==0||Vt.isCollapsed(t))return t;var a=_e.above(e,{at:o,match:h=>_e.isBlock(e,h)}),s=a?a[1]:[],l={anchor:_e.start(e,[]),focus:o},u=!0;for(var[c,d]of _e.nodes(e,{at:l,match:In.isText,reverse:!0,voids:r}))if(u)u=!1;else if(c.text!==""||Ot.isBefore(d,s)){o={path:d,offset:c.text.length};break}return{anchor:i,focus:o}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return _e.above(e,Nw(Nw({},t),{},{match:n=>_e.isVoid(e,n)}))},withoutNormalizing(e,t){var n=_e.isNormalizing(e);_e.setNormalizing(e,!1);try{t()}finally{_e.setNormalizing(e,n)}_e.normalize(e)}},Aen={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(Ot.isPath)},Ien=["children"],ken=["text"],tce=new WeakMap,vn={ancestor(e,t){var n=vn.get(e,t);if(In.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of Ot.ancestors(t,n)){var i=[vn.ancestor(e,r),r];yield i}},child(e,t){if(In.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,i=vn.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a<o.length;){var s=vn.child(i,a),l=t.concat(a);yield[s,l],a=r?a-1:a+1}},common(e,t,n){var r=Ot.common(t,n);return[vn.get(e,r),r]},descendant(e,t){var n=vn.get(e,t);if(_e.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of vn.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of vn.nodes(e,t))jn.isElement(n)&&(yield[n,r])},extractProps:e=>jn.isAncestor(e)?Ig(e,Ien):Ig(e,ken),first(e,t){for(var n=t.slice(),r=vn.get(e,n);r&&!In.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(In.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=fB({children:e.children},r=>{var[i,o]=Vt.edges(t),a=vn.nodes(r,{reverse:!0,pass:h=>{var[,f]=h;return!Vt.includes(t,f)}});for(var[,s]of a){if(!Vt.includes(t,s)){var l=vn.parent(r,s),u=s[s.length-1];l.children.splice(u,1)}if(Ot.equals(s,o.path)){var c=vn.leaf(r,s);c.text=c.text.slice(0,o.offset)}if(Ot.equals(s,i.path)){var d=vn.leaf(r,s);d.text=d.text.slice(i.offset)}}_e.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(In.isText(n)||!n.children[i])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(In.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode:e=>In.isText(e)||jn.isElement(e)||_e.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=tce.get(e);if(t!==void 0)return t;var n=e.every(r=>vn.isNode(r));return tce.set(e,n),n},last(e,t){for(var n=t.slice(),r=vn.get(e,n);r&&!In.isText(r)&&r.children.length!==0;){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=vn.get(e,t);if(!In.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of Ot.levels(t,n)){var i=vn.get(e,r);yield[i,r]}},matches:(e,t)=>jn.isElement(e)&&jn.isElementProps(t)&&jn.matches(e,t)||In.isText(e)&&In.isTextProps(t)&&In.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:o}=t,a=new Set,s=[],l=e;!o||!(r?Ot.isBefore(s,o):Ot.isAfter(s,o));)if(a.has(l)||(yield[l,s]),a.has(l)||In.isText(l)||l.children.length===0||n!=null&&n([l,s])!==!1){if(s.length===0)break;if(!r){var u=Ot.next(s);if(vn.has(e,u)){s=u,l=vn.get(e,s);continue}}r&&s[s.length-1]!==0?(s=Ot.previous(s),l=vn.get(e,s)):(s=Ot.parent(s),l=vn.get(e,s),a.add(l))}else{a.add(l);var c=r?l.children.length-1:0;Ot.isAncestor(s,i)&&(c=i[s.length]),s=s.concat(c),l=vn.get(e,s)}},parent(e,t){var n=Ot.parent(t),r=vn.get(e,n);if(In.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>In.isText(e)?e.text:e.children.map(vn.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of vn.nodes(e,t))In.isText(n)&&(yield[n,r])}};function nce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ba(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nce(Object(n),!0).forEach(function(r){sf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nce(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ev={isNodeOperation:e=>Ev.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!qs(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Ot.isPath(e.path)&&vn.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&Ot.isPath(e.path);case"merge_node":return typeof e.position=="number"&&Ot.isPath(e.path)&&qs(e.properties);case"move_node":return Ot.isPath(e.path)&&Ot.isPath(e.newPath);case"set_node":return Ot.isPath(e.path)&&qs(e.properties)&&qs(e.newProperties);case"set_selection":return e.properties===null&&Vt.isRange(e.newProperties)||e.newProperties===null&&Vt.isRange(e.properties)||qs(e.properties)&&qs(e.newProperties);case"split_node":return Ot.isPath(e.path)&&typeof e.position=="number"&&qs(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(t=>Ev.isOperation(t)),isSelectionOperation:e=>Ev.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Ev.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Ba(Ba({},e),{},{type:"remove_node"});case"insert_text":return Ba(Ba({},e),{},{type:"remove_text"});case"merge_node":return Ba(Ba({},e),{},{type:"split_node",path:Ot.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Ot.equals(t,n))return e;if(Ot.isSibling(n,t))return Ba(Ba({},e),{},{path:t,newPath:n});var r=Ot.transform(n,e),i=Ot.transform(Ot.next(n),e);return Ba(Ba({},e),{},{path:r,newPath:i});case"remove_node":return Ba(Ba({},e),{},{type:"insert_node"});case"remove_text":return Ba(Ba({},e),{},{type:"insert_text"});case"set_node":var{properties:o,newProperties:a}=e;return Ba(Ba({},e),{},{properties:a,newProperties:o});case"set_selection":var{properties:s,newProperties:l}=e;return Ba(Ba({},e),{},s==null?{properties:l,newProperties:null}:l==null?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return Ba(Ba({},e),{},{type:"merge_node",path:Ot.next(e.path)})}}},Ot={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=Ot.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r];if(i!==t[r])break;n.push(i)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return Ot.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return Ot.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return Ot.equals(r,i)&&o<a},equals:(e,t)=>e.length===t.length&&e.every((n,r)=>n===t[r]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>Ot.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&Ot.compare(e,t)===0,isBefore:(e,t)=>Ot.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&Ot.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&Ot.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&Ot.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&Ot.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]=="number"),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Ot.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],i=0;i<=e.length;i++)r.push(e.slice(0,i));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Ot.isAncestor(t,e)&&!Ot.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return fB(e,r=>{var{affinity:i="forward"}=n;if(e&&(e==null?void 0:e.length)!==0){if(r===null)return null;switch(t.type){case"insert_node":var{path:o}=t;(Ot.equals(o,r)||Ot.endsBefore(o,r)||Ot.isAncestor(o,r))&&(r[o.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Ot.equals(a,r)||Ot.isAncestor(a,r))return null;Ot.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;Ot.equals(s,r)||Ot.endsBefore(s,r)?r[s.length-1]-=1:Ot.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:u,position:c}=t;if(Ot.equals(u,r)){if(i==="forward")r[r.length-1]+=1;else if(i!=="backward")return null}else Ot.endsBefore(u,r)?r[u.length-1]+=1:Ot.isAncestor(u,r)&&e[u.length]>=c&&(r[u.length-1]+=1,r[u.length]-=c);break;case"move_node":var{path:d,newPath:h}=t;if(Ot.equals(d,h))return;if(Ot.isAncestor(d,r)||Ot.equals(d,r)){var f=h.slice();return Ot.endsBefore(d,h)&&d.length<h.length&&(f[d.length-1]-=1),f.concat(r.slice(d.length))}Ot.isSibling(d,h)&&(Ot.isAncestor(h,r)||Ot.equals(h,r))?Ot.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:Ot.endsBefore(h,r)||Ot.equals(h,r)||Ot.isAncestor(h,r)?(Ot.endsBefore(d,r)&&(r[d.length-1]-=1),r[h.length-1]+=1):Ot.endsBefore(d,r)&&(Ot.equals(h,r)&&(r[h.length-1]+=1),r[d.length-1]-=1)}}})}},Een={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=Ot.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}};function rce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ice(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rce(Object(n),!0).forEach(function(r){sf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rce(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Vr={compare(e,t){var n=Ot.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>Vr.compare(e,t)===1,isBefore:(e,t)=>Vr.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&Ot.equals(e.path,t.path),isPoint:e=>qs(e)&&typeof e.offset=="number"&&Ot.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return fB(e,r=>{if(r===null)return null;var{affinity:i="forward"}=n,{path:o,offset:a}=r;switch(t.type){case"insert_node":case"move_node":r.path=Ot.transform(o,t,n);break;case"insert_text":Ot.equals(t.path,o)&&t.offset<=a&&(r.offset+=t.text.length);break;case"merge_node":Ot.equals(t.path,o)&&(r.offset+=t.position),r.path=Ot.transform(o,t,n);break;case"remove_text":Ot.equals(t.path,o)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break;case"remove_node":if(Ot.equals(t.path,o)||Ot.isAncestor(t.path,o))return null;r.path=Ot.transform(o,t,n);break;case"split_node":if(Ot.equals(t.path,o)){if(t.position===a&&i==null)return null;(t.position<a||t.position===a&&i==="forward")&&(r.offset-=t.position,r.path=Ot.transform(o,t,ice(ice({},n),{},{affinity:"forward"})))}else r.path=Ot.transform(o,t,n)}})}},_en={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=Vr.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},Ten=["anchor","focus"];function oce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}var Vt={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return Vt.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=Vt.edges(e);return t},equals:(e,t)=>Vr.equals(e.anchor,t.anchor)&&Vr.equals(e.focus,t.focus),includes(e,t){if(Vt.isRange(t)){if(Vt.includes(e,t.anchor)||Vt.includes(e,t.focus))return!0;var[n,r]=Vt.edges(e),[i,o]=Vt.edges(t);return Vr.isBefore(n,i)&&Vr.isAfter(r,o)}var[a,s]=Vt.edges(e),l=!1,u=!1;return Vr.isPoint(t)?(l=Vr.compare(t,a)>=0,u=Vr.compare(t,s)<=0):(l=Ot.compare(t,a.path)>=0,u=Ot.compare(t,s.path)<=0),l&&u},intersection(e,t){var n=Ig(e,Ten),[r,i]=Vt.edges(e),[o,a]=Vt.edges(t),s=Vr.isBefore(r,o)?o:r,l=Vr.isBefore(i,a)?i:a;return Vr.isBefore(l,s)?null:function(u){for(var c=1;c<arguments.length;c++){var d=arguments[c]!=null?arguments[c]:{};c%2?oce(Object(d),!0).forEach(function(h){sf(u,h,d[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(d)):oce(Object(d)).forEach(function(h){Object.defineProperty(u,h,Object.getOwnPropertyDescriptor(d,h))})}return u}({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return Vr.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Vr.equals(t,n)},isExpanded:e=>!Vt.isCollapsed(e),isForward:e=>!Vt.isBackward(e),isRange:e=>qs(e)&&Vr.isPoint(e.anchor)&&Vr.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Vt.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return fB(e,r=>{if(r===null)return null;var i,o,{affinity:a="inward"}=n;if(a==="inward"){var s=Vt.isCollapsed(r);Vt.isForward(r)?(i="forward",o=s?i:"backward"):(i="backward",o=s?i:"forward")}else a==="outward"?Vt.isForward(r)?(i="backward",o="forward"):(i="forward",o="backward"):(i=a,o=a);var l=Vr.transform(r.anchor,t,{affinity:i}),u=Vr.transform(r.focus,t,{affinity:o});if(!l||!u)return null;r.anchor=l,r.focus=u})}},Pen={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=Vt.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},q2e=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(qs(r)&&qs(i)){if(!q2e(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var o=0;o<r.length;o++)if(r[o]!==i[o])return!1}else if(r!==i)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0},Den=["text"],Ren=["anchor","focus"];function sce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sce(Object(n),!0).forEach(function(r){sf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sce(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var In={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function i(o){return Ig(o,Den)}return q2e(r?i(e):e,r?i(t):t)},isText:e=>qs(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every(t=>In.isText(t)),isTextProps:e=>e.text!==void 0,matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Lf({},e)];for(var r of t){var i=Ig(r,Ren),[o,a]=Vt.edges(r),s=[],l=0;for(var u of n){var{length:c}=u.text,d=l;if(l+=c,o.offset<=d&&a.offset>=l)Object.assign(u,i),s.push(u);else if(o.offset!==a.offset&&(o.offset===l||a.offset===d)||o.offset>l||a.offset<d||a.offset===d&&d!==0)s.push(u);else{var h=u,f=void 0,g=void 0;if(a.offset<l){var b=a.offset-d;g=Lf(Lf({},h),{},{text:h.text.slice(b)}),h=Lf(Lf({},h),{},{text:h.text.slice(0,b)})}if(o.offset>d){var v=o.offset-d;f=Lf(Lf({},h),{},{text:h.text.slice(0,v)}),h=Lf(Lf({},h),{},{text:h.text.slice(v)})}Object.assign(h,i),f&&s.push(f),s.push(h),g&&s.push(g)}}n=s}return n}};function lce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $A(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lce(Object(n),!0).forEach(function(r){sf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lce(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $en={transform(e,t){e.children=Zue(e.children);var n=e.selection&&Zue(e.selection);try{n=((r,i,o)=>{switch(o.type){case"insert_node":var{path:a,node:s}=o,l=vn.parent(r,a),u=a[a.length-1];if(u>l.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(l.children.splice(u,0,s),i)for(var[c,d]of Vt.points(i))i[d]=Vr.transform(c,o);break;case"insert_text":var{path:h,offset:f,text:g}=o;if(g.length===0)break;var b=vn.leaf(r,h),v=b.text.slice(0,f),m=b.text.slice(f);if(b.text=v+g+m,i)for(var[w,k]of Vt.points(i))i[k]=Vr.transform(w,o);break;case"merge_node":var{path:T}=o,S=vn.get(r,T),I=Ot.previous(T),O=vn.get(r,I),y=vn.parent(r,T),_=T[T.length-1];if(In.isText(S)&&In.isText(O))O.text+=S.text;else{if(In.isText(S)||In.isText(O))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(T,"] to nodes of different interfaces: ").concat(S," ").concat(O));O.children.push(...S.children)}if(y.children.splice(_,1),i)for(var[A,R]of Vt.points(i))i[R]=Vr.transform(A,o);break;case"move_node":var{path:D,newPath:C}=o;if(Ot.isAncestor(D,C))throw new Error("Cannot move a path [".concat(D,"] to new path [").concat(C,"] because the destination is inside itself."));var x=vn.get(r,D),P=vn.parent(r,D),$=D[D.length-1];P.children.splice($,1);var L=Ot.transform(D,o),V=vn.get(r,Ot.parent(L)),H=L[L.length-1];if(V.children.splice(H,0,x),i)for(var[Q,U]of Vt.points(i))i[U]=Vr.transform(Q,o);break;case"remove_node":var{path:K}=o,J=K[K.length-1];if(vn.parent(r,K).children.splice(J,1),i)for(var[ue,ee]of Vt.points(i)){var N=Vr.transform(ue,o);if(i!=null&&N!=null)i[ee]=N;else{var q=void 0,G=void 0;for(var[ne,le]of vn.texts(r)){if(Ot.compare(le,K)!==-1){G=[ne,le];break}q=[ne,le]}var oe=!1;q&&G&&(oe=Ot.equals(G[1],K)?!Ot.hasPrevious(G[1]):Ot.common(q[1],K).length<Ot.common(G[1],K).length),q&&!oe?(ue.path=q[1],ue.offset=q[0].text.length):G?(ue.path=G[1],ue.offset=0):i=null}}break;case"remove_text":var{path:ve,offset:de,text:ae}=o;if(ae.length===0)break;var be=vn.leaf(r,ve),ie=be.text.slice(0,de),ce=be.text.slice(de+ae.length);if(be.text=ie+ce,i)for(var[pe,X]of Vt.points(i))i[X]=Vr.transform(pe,o);break;case"set_node":var{path:Z,properties:Y,newProperties:se}=o;if(Z.length===0)throw new Error("Cannot set properties on the root node!");var fe=vn.get(r,Z);for(var me in se){if(me==="children"||me==="text")throw new Error('Cannot set the "'.concat(me,'" property of nodes!'));var Ae=se[me];Ae==null?delete fe[me]:fe[me]=Ae}for(var Be in Y)se.hasOwnProperty(Be)||delete fe[Be];break;case"set_selection":var{newProperties:Ye}=o;if(Ye==null)i=Ye;else{if(i==null){if(!Vt.isRange(Ye))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Ye)," when there is no current selection."));i=$A({},Ye)}for(var Qe in Ye){var nt=Ye[Qe];if(nt==null){if(Qe==="anchor"||Qe==="focus")throw new Error('Cannot remove the "'.concat(Qe,'" selection property'));delete i[Qe]}else i[Qe]=nt}}break;case"split_node":var{path:st,position:Le,properties:Me}=o;if(st.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(st,"] because the root node cannot be split."));var je,Ue=vn.get(r,st),Te=vn.parent(r,st),bt=st[st.length-1];if(In.isText(Ue)){var At=Ue.text.slice(0,Le),ht=Ue.text.slice(Le);Ue.text=At,je=$A($A({},Me),{},{text:ht})}else{var Pe=Ue.children.slice(0,Le),Ze=Ue.children.slice(Le);Ue.children=Pe,je=$A($A({},Me),{},{children:Ze})}if(Te.children.splice(bt+1,0,je),i)for(var[dt,Mt]of Vt.points(i))i[Mt]=Vr.transform(dt,o)}return i})(e,n,t)}finally{e.children=Gue(e.children),e.selection=n?s1(n)?Gue(n):n:null}}},Men=["text"],Len=["children"];function uce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uce(Object(n),!0).forEach(function(r){sf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uce(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ben={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_e.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1,mode:o="lowest"}=n,{at:a,match:s,select:l}=n;if(vn.isNode(t)&&(t=[t]),t.length!==0){var[u]=t;if(a||(a=e.selection?e.selection:e.children.length>0?_e.end(e,[]):[0],l=!0),l==null&&(l=!1),Vt.isRange(a))if(r||(a=_e.unhangRange(e,a)),Vt.isCollapsed(a))a=a.anchor;else{var[,c]=Vt.edges(a),d=_e.pointRef(e,c);Rt.delete(e,{at:a}),a=d.unref()}if(Vr.isPoint(a)){s==null&&(s=In.isText(u)?I=>In.isText(I):e.isInline(u)?I=>In.isText(I)||_e.isInline(e,I):I=>_e.isBlock(e,I));var[h]=_e.nodes(e,{at:a.path,match:s,mode:o,voids:i});if(!h)return;var[,f]=h,g=_e.pathRef(e,f),b=_e.isEnd(e,a,f);Rt.splitNodes(e,{at:a,match:s,mode:o,voids:i});var v=g.unref();a=b?Ot.next(v):v}var m=Ot.parent(a),w=a[a.length-1];if(i||!_e.void(e,{at:m})){for(var k of t){var T=m.concat(w);w++,e.apply({type:"insert_node",path:T,node:k}),a=Ot.next(a)}if(a=Ot.previous(a),l){var S=_e.end(e,a);S&&Rt.select(e,S)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_e.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:i=!1}=t,{match:o}=t;if(o==null&&(o=Ot.isPath(n)?Vw(e,n):k=>_e.isBlock(e,k)),n){var a=_e.nodes(e,{at:n,match:o,mode:r,voids:i}),s=Array.from(a,k=>{var[,T]=k;return _e.pathRef(e,T)});for(var l of s){var u=l.unref();if(u.length<2)throw new Error("Cannot lift node at a path [".concat(u,"] because it has a depth of less than `2`."));var c=_e.node(e,Ot.parent(u)),[d,h]=c,f=u[u.length-1],{length:g}=d.children;if(g===1){var b=Ot.next(h);Rt.moveNodes(e,{at:u,to:b,voids:i}),Rt.removeNodes(e,{at:h,voids:i})}else if(f===0)Rt.moveNodes(e,{at:u,to:h,voids:i});else if(f===g-1){var v=Ot.next(h);Rt.moveNodes(e,{at:u,to:v,voids:i})}else{var m=Ot.next(u),w=Ot.next(h);Rt.splitNodes(e,{at:m,voids:i}),Rt.moveNodes(e,{at:u,to:w,voids:i})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_e.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=t;if(r){if(n==null)if(Ot.isPath(r)){var[s]=_e.parent(e,r);n=_=>s.children.includes(_)}else n=_=>_e.isBlock(e,_);if(!i&&Vt.isRange(r)&&(r=_e.unhangRange(e,r)),Vt.isRange(r))if(Vt.isCollapsed(r))r=r.anchor;else{var[,l]=Vt.edges(r),u=_e.pointRef(e,l);Rt.delete(e,{at:r}),r=u.unref(),t.at==null&&Rt.select(e,r)}var[c]=_e.nodes(e,{at:r,match:n,voids:o,mode:a}),d=_e.previous(e,{at:r,match:n,voids:o,mode:a});if(c&&d){var[h,f]=c,[g,b]=d;if(f.length!==0&&b.length!==0){var v,m,w=Ot.next(b),k=Ot.common(f,b),T=Ot.isSibling(f,b),S=Array.from(_e.levels(e,{at:f}),_=>{var[A]=_;return A}).slice(k.length).slice(0,-1),I=_e.above(e,{at:f,mode:"highest",match:_=>S.includes(_)&&J2e(e,_)}),O=I&&_e.pathRef(e,I[1]);if(In.isText(h)&&In.isText(g)){var y=Ig(h,Men);m=g.text.length,v=y}else{if(!jn.isElement(h)||!jn.isElement(g))throw new Error("Cannot merge the node at path [".concat(f,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(h)," ").concat(JSON.stringify(g)));y=Ig(h,Len),m=g.children.length,v=y}T||Rt.moveNodes(e,{at:f,to:w,voids:o}),O&&Rt.removeNodes(e,{at:O.current,voids:o}),jn.isElement(g)&&_e.isEmpty(e,g)||In.isText(g)&&g.text===""&&b[b.length-1]!==0?Rt.removeNodes(e,{at:b,voids:o}):e.apply({type:"merge_node",path:w,position:m,properties:v}),O&&O.unref()}}}})},moveNodes(e,t){_e.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(r){a==null&&(a=Ot.isPath(r)?Vw(e,r):f=>_e.isBlock(e,f));var s=_e.pathRef(e,n),l=_e.nodes(e,{at:r,match:a,mode:i,voids:o}),u=Array.from(l,f=>{var[,g]=f;return _e.pathRef(e,g)});for(var c of u){var d=c.unref(),h=s.current;d.length!==0&&e.apply({type:"move_node",path:d,newPath:h}),s.current&&Ot.isSibling(h,d)&&Ot.isAfter(h,d)&&(s.current=Ot.next(s.current))}s.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_e.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:i="lowest"}=t,{at:o=e.selection,match:a}=t;if(o){a==null&&(a=Ot.isPath(o)?Vw(e,o):h=>_e.isBlock(e,h)),!n&&Vt.isRange(o)&&(o=_e.unhangRange(e,o));var s=_e.nodes(e,{at:o,match:a,mode:i,voids:r}),l=Array.from(s,h=>{var[,f]=h;return _e.pathRef(e,f)});for(var u of l){var c=u.unref();if(c){var[d]=_e.node(e,c);e.apply({type:"remove_node",path:c,node:d})}}}})},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_e.withoutNormalizing(e,()=>{var{match:r,at:i=e.selection}=n,{hanging:o=!1,mode:a="lowest",split:s=!1,voids:l=!1}=n;if(i){if(r==null&&(r=Ot.isPath(i)?Vw(e,i):S=>_e.isBlock(e,S)),!o&&Vt.isRange(i)&&(i=_e.unhangRange(e,i)),s&&Vt.isRange(i)){if(Vt.isCollapsed(i)&&_e.leaf(e,i.anchor)[0].text.length>0)return;var u=_e.rangeRef(e,i,{affinity:"inward"}),[c,d]=Vt.edges(i),h=a==="lowest"?"lowest":"highest",f=_e.isEnd(e,d,d.path);Rt.splitNodes(e,{at:d,match:r,mode:h,voids:l,always:!f});var g=_e.isStart(e,c,c.path);Rt.splitNodes(e,{at:c,match:r,mode:h,voids:l,always:!g}),i=u.unref(),n.at==null&&Rt.select(e,i)}for(var[b,v]of _e.nodes(e,{at:i,match:r,mode:a,voids:l})){var m={},w={};if(v.length!==0){var k=!1;for(var T in t)T!=="children"&&T!=="text"&&t[T]!==b[T]&&(k=!0,b.hasOwnProperty(T)&&(m[T]=b[T]),t[T]!=null&&(w[T]=t[T]));k&&e.apply({type:"set_node",path:v,properties:m,newProperties:w})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_e.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection,height:a=0,always:s=!1}=t;if(i==null&&(i=x=>_e.isBlock(e,x)),Vt.isRange(o)&&(o=Fen(e,o)),Ot.isPath(o)){var l=o,u=_e.point(e,l),[c]=_e.parent(e,l);i=x=>x===c,a=u.path.length-l.length+1,o=u,s=!0}if(o){var d=_e.pointRef(e,o,{affinity:"backward"}),[h]=_e.nodes(e,{at:o,match:i,mode:n,voids:r});if(h){var f=_e.void(e,{at:o,mode:"highest"});if(!r&&f){var[g,b]=f;if(jn.isElement(g)&&e.isInline(g)){var v=_e.after(e,b);if(!v){var m=Ot.next(b);Rt.insertNodes(e,{text:""},{at:m,voids:r}),v=_e.point(e,m)}o=v,s=!0}a=o.path.length-b.length+1,s=!0}var w=_e.pointRef(e,o),k=o.path.length-a,[,T]=h,S=o.path.slice(0,k),I=a===0?o.offset:o.path[k]+0;for(var[O,y]of _e.levels(e,{at:S,reverse:!0,voids:r})){var _=!1;if(y.length<T.length||y.length===0||!r&&_e.isVoid(e,O))break;var A=d.current,R=_e.isEnd(e,A,y);if(s||!d||!_e.isEdge(e,A,y)){_=!0;var D=vn.extractProps(O);e.apply({type:"split_node",path:y,position:I,properties:D})}I=y[y.length-1]+(_||R?1:0)}if(t.at==null){var C=w.current||_e.end(e,[]);Rt.select(e,C)}d.unref(),w.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;Rt.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_e.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:i=!1}=t,{at:o=e.selection,match:a}=t;if(o){a==null&&(a=Ot.isPath(o)?Vw(e,o):h=>_e.isBlock(e,h)),Ot.isPath(o)&&(o=_e.range(e,o));var s=Vt.isRange(o)?_e.rangeRef(e,o):null,l=_e.nodes(e,{at:o,match:a,mode:n,voids:i}),u=Array.from(l,h=>{var[,f]=h;return _e.pathRef(e,f)}).reverse(),c=function(h){var f=h.unref(),[g]=_e.node(e,f),b=_e.range(e,f);r&&s&&(b=Vt.intersection(s.current,b)),Rt.liftNodes(e,{at:b,match:v=>jn.isAncestor(g)&&g.children.includes(v),voids:i})};for(var d of u)c(d);s&&s.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_e.withoutNormalizing(e,()=>{var{mode:r="lowest",split:i=!1,voids:o=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(a==null&&(a=Ot.isPath(s)?Vw(e,s):e.isInline(t)?v=>_e.isInline(e,v)||In.isText(v):v=>_e.isBlock(e,v)),i&&Vt.isRange(s)){var[l,u]=Vt.edges(s),c=_e.rangeRef(e,s,{affinity:"inward"});Rt.splitNodes(e,{at:u,match:a,voids:o}),Rt.splitNodes(e,{at:l,match:a,voids:o}),s=c.unref(),n.at==null&&Rt.select(e,s)}var d=Array.from(_e.nodes(e,{at:s,match:e.isInline(t)?v=>_e.isBlock(e,v):v=>_e.isEditor(v),mode:"lowest",voids:o}));for(var[,h]of d){var f=Vt.isRange(s)?Vt.intersection(s,_e.range(e,h)):s;if(f){var g=Array.from(_e.nodes(e,{at:f,match:a,mode:r,voids:o}));if(g.length>0){var b=function(){var[v]=g,m=g[g.length-1],[,w]=v,[,k]=m;if(w.length===0&&k.length===0)return"continue";var T=Ot.equals(w,k)?Ot.parent(w):Ot.common(w,k),S=_e.range(e,w,k),I=_e.node(e,T),[O]=I,y=T.length+1,_=Ot.next(k.slice(0,y)),A=cce(cce({},t),{},{children:[]});Rt.insertNodes(e,A,{at:_,voids:o}),Rt.moveNodes(e,{at:S,match:R=>jn.isAncestor(O)&&O.children.includes(R),to:_.concat(0),voids:o})}();if(b==="continue")continue}}}}})}},J2e=(e,t)=>{if(jn.isElement(t)){var n=t;return!!_e.isVoid(e,t)||n.children.length===1&&J2e(e,n.children[0])}return!_e.isEditor(t)},Fen=(e,t)=>{if(Vt.isCollapsed(t))return t.anchor;var[,n]=Vt.edges(t),r=_e.pointRef(e,n);return Rt.delete(e,{at:t}),r.unref()},Vw=(e,t)=>{var[n]=_e.node(e,t);return r=>r===n};function dce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dce(Object(n),!0).forEach(function(r){sf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dce(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Nen={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")Rt.select(e,r.anchor);else if(n==="focus")Rt.select(e,r.focus);else if(n==="start"){var[i]=Vt.edges(r);Rt.select(e,i)}else if(n==="end"){var[,o]=Vt.edges(r);Rt.select(e,o)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i="character",reverse:o=!1}=t,{edge:a=null}=t;if(n){a==="start"&&(a=Vt.isBackward(n)?"focus":"anchor"),a==="end"&&(a=Vt.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,u={distance:r,unit:i},c={};if(a==null||a==="anchor"){var d=o?_e.before(e,s,u):_e.after(e,s,u);d&&(c.anchor=d)}if(a==null||a==="focus"){var h=o?_e.before(e,l,u):_e.after(e,l,u);h&&(c.focus=h)}Rt.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=_e.range(e,t),n)Rt.setSelection(e,t);else{if(!Vt.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:i="both"}=n;if(r){i==="start"&&(i=Vt.isBackward(r)?"focus":"anchor"),i==="end"&&(i=Vt.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,s=i==="anchor"?o:a;Rt.setSelection(e,{[i==="anchor"?"anchor":"focus"]:hce(hce({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var o in t)(o==="anchor"&&t.anchor!=null&&!Vr.equals(t.anchor,n.anchor)||o==="focus"&&t.focus!=null&&!Vr.equals(t.focus,n.focus)||o!=="anchor"&&o!=="focus"&&t[o]!==n[o])&&(r[o]=n[o],i[o]=t[o]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:i})}}},Ven={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_e.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:i=1,voids:o=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){if(Vt.isRange(a)&&Vt.isCollapsed(a)&&(a=a.anchor),Vr.isPoint(a)){var l=_e.void(e,{at:a,mode:"highest"});if(!o&&l){var[,u]=l;a=u}else{var c={unit:r,distance:i};a={anchor:a,focus:n?_e.before(e,a,c)||_e.start(e,[]):_e.after(e,a,c)||_e.end(e,[])},s=!0}}if(Ot.isPath(a))Rt.removeNodes(e,{at:a,voids:o});else if(!Vt.isCollapsed(a)){if(!s){var[,d]=Vt.edges(a),h=_e.end(e,[]);Vr.equals(d,h)||(a=_e.unhangRange(e,a,{voids:o}))}var[f,g]=Vt.edges(a),b=_e.above(e,{match:G=>_e.isBlock(e,G),at:f,voids:o}),v=_e.above(e,{match:G=>_e.isBlock(e,G),at:g,voids:o}),m=b&&v&&!Ot.equals(b[1],v[1]),w=Ot.equals(f.path,g.path),k=o?null:_e.void(e,{at:f,mode:"highest"}),T=o?null:_e.void(e,{at:g,mode:"highest"});if(k){var S=_e.before(e,f);S&&b&&Ot.isAncestor(b[1],S.path)&&(f=S)}if(T){var I=_e.after(e,g);I&&v&&Ot.isAncestor(v[1],I.path)&&(g=I)}var O,y=[];for(var _ of _e.nodes(e,{at:a,voids:o})){var[A,R]=_;O&&Ot.compare(R,O)===0||(!o&&_e.isVoid(e,A)||!Ot.isCommon(R,f.path)&&!Ot.isCommon(R,g.path))&&(y.push(_),O=R)}var D=Array.from(y,G=>{var[,ne]=G;return _e.pathRef(e,ne)}),C=_e.pointRef(e,f),x=_e.pointRef(e,g);if(!w&&!k){var P=C.current,[$]=_e.leaf(e,P),{path:L}=P,{offset:V}=f,H=$.text.slice(V);H.length>0&&e.apply({type:"remove_text",path:L,offset:V,text:H})}for(var Q of D){var U=Q.unref();Rt.removeNodes(e,{at:U,voids:o})}if(!T){var K=x.current,[J]=_e.leaf(e,K),{path:ue}=K,ee=w?f.offset:0,N=J.text.slice(ee,g.offset);N.length>0&&e.apply({type:"remove_text",path:ue,offset:ee,text:N})}!w&&m&&x.current&&C.current&&Rt.mergeNodes(e,{at:x.current,hanging:!0,voids:o});var q=n?C.unref()||x.unref():x.unref()||C.unref();t.at==null&&q&&Rt.select(e,q)}}})},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_e.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1}=n,{at:o=e.selection}=n;if(t.length&&o){if(Vt.isRange(o))if(r||(o=_e.unhangRange(e,o)),Vt.isCollapsed(o))o=o.anchor;else{var[,a]=Vt.edges(o);if(!i&&_e.void(e,{at:a}))return;var s=_e.pointRef(e,a);Rt.delete(e,{at:o}),o=s.unref()}else Ot.isPath(o)&&(o=_e.start(e,o));if(i||!_e.void(e,{at:o})){var l=_e.above(e,{at:o,match:K=>_e.isInline(e,K),mode:"highest",voids:i});if(l){var[,u]=l;_e.isEnd(e,o,u)?o=_e.after(e,u):_e.isStart(e,o,u)&&(o=_e.before(e,u))}var c=_e.above(e,{match:K=>_e.isBlock(e,K),at:o,voids:i}),[,d]=c,h=_e.isStart(e,o,d),f=_e.isEnd(e,o,d),g=h&&f,b=!h||h&&f,v=!f,[,m]=vn.first({children:t},[]),[,w]=vn.last({children:t},[]),k=[],T=K=>{var[J,ue]=K;return ue.length!==0&&(!!g||!(b&&Ot.isAncestor(ue,m)&&jn.isElement(J)&&!e.isVoid(J)&&!e.isInline(J))&&!(v&&Ot.isAncestor(ue,w)&&jn.isElement(J)&&!e.isVoid(J)&&!e.isInline(J)))};for(var S of vn.nodes({children:t},{pass:T}))T(S)&&k.push(S);var I=[],O=[],y=[],_=!0,A=!1;for(var[R]of k)jn.isElement(R)&&!e.isInline(R)?(_=!1,A=!0,O.push(R)):_?I.push(R):y.push(R);var[D]=_e.nodes(e,{at:o,match:K=>In.isText(K)||_e.isInline(e,K),mode:"highest",voids:i}),[,C]=D,x=_e.isStart(e,o,C),P=_e.isEnd(e,o,C),$=_e.pathRef(e,f?Ot.next(d):d),L=_e.pathRef(e,P?Ot.next(C):C),V=_e.pathRef(e,d);Rt.splitNodes(e,{at:o,match:K=>A?_e.isBlock(e,K):In.isText(K)||_e.isInline(e,K),mode:A?"lowest":"highest",voids:i});var H=_e.pathRef(e,!x||x&&P?Ot.next(C):C);if(Rt.insertNodes(e,I,{at:H.current,match:K=>In.isText(K)||_e.isInline(e,K),mode:"highest",voids:i}),g&&O.length&&Rt.delete(e,{at:V.unref(),voids:i}),Rt.insertNodes(e,O,{at:$.current,match:K=>_e.isBlock(e,K),mode:"lowest",voids:i}),Rt.insertNodes(e,y,{at:L.current,match:K=>In.isText(K)||_e.isInline(e,K),mode:"highest",voids:i}),!n.at){var Q;Q=y.length>0?Ot.previous(L.current):O.length>0?Ot.previous($.current):Ot.previous(H.current);var U=_e.end(e,Q);Rt.select(e,U)}H.unref(),$.unref(),L.unref()}}})},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_e.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(Ot.isPath(i)&&(i=_e.range(e,i)),Vt.isRange(i))if(Vt.isCollapsed(i))i=i.anchor;else{var o=Vt.end(i);if(!r&&_e.void(e,{at:o}))return;var a=_e.pointRef(e,o);Rt.delete(e,{at:i,voids:r}),i=a.unref(),Rt.setSelection(e,{anchor:i,focus:i})}if(r||!_e.void(e,{at:i})){var{path:s,offset:l}=i;t.length>0&&e.apply({type:"insert_text",path:s,offset:l,text:t})}}})}};function pce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function JD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pce(Object(n),!0).forEach(function(r){sf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pce(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Rt=JD(JD(JD(JD({},$en),Ben),Nen),Ven),Tz="[object Map]",Pz="[object Set]",jen=/^\[object .+?Constructor\]$/,Wen=/^(?:0|[1-9]\d*)$/,Hen="[\\ud800-\\udfff]",Dz="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Rz="\\ud83c[\\udffb-\\udfff]",eEe="[^\\ud800-\\udfff]",tEe="(?:\\ud83c[\\udde6-\\uddff]){2}",nEe="[\\ud800-\\udbff][\\udc00-\\udfff]",fce="(?:"+Dz+"|"+Rz+")?",zen="[\\ufe0e\\ufe0f]?"+fce+("(?:\\u200d(?:"+[eEe,tEe,nEe].join("|")+")[\\ufe0e\\ufe0f]?"+fce+")*"),Zen="(?:"+[eEe+Dz+"?",Dz,tEe,nEe,Hen].join("|")+")",Gen=RegExp(Rz+"(?="+Rz+")|"+Zen+zen,"g"),Qen=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Uen=typeof qi=="object"&&qi&&qi.Object===Object&&qi,Xen=typeof self=="object"&&self&&self.Object===Object&&self,D1=Uen||Xen||Function("return this")();function Yen(e,t){return function(n,r){for(var i=-1,o=n?n.length:0,a=Array(o);++i<o;)a[i]=r(n[i],i,n);return a}(t,function(n){return e[n]})}function Ken(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function qen(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}function Jen(e){return function(t){return Qen.test(t)}(e)?function(t){return t.match(Gen)||[]}(e):function(t){return t.split("")}(e)}var gce,mce,etn=Function.prototype,gB=Object.prototype,A6=D1["__core-js_shared__"],vce=function(){var e=/[^.]+$/.exec(A6&&A6.keys&&A6.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),rEe=etn.toString,e4=gB.hasOwnProperty,K_=gB.toString,ttn=RegExp("^"+rEe.call(e4).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yce=D1.Symbol,I6=yce?yce.iterator:void 0,ntn=gB.propertyIsEnumerable,rtn=(gce=Object.keys,mce=Object,function(e){return gce(mce(e))}),$z=q_(D1,"DataView"),Mz=q_(D1,"Map"),Lz=q_(D1,"Promise"),Bz=q_(D1,"Set"),Fz=q_(D1,"WeakMap"),itn=R1($z),otn=R1(Mz),atn=R1(Lz),stn=R1(Bz),ltn=R1(Fz);function utn(e,t){var n=iEe(e)||function(a){return function(s){return sEe(s)&&UY(s)}(a)&&e4.call(a,"callee")&&(!ntn.call(a,"callee")||K_.call(a)=="[object Arguments]")}(e)?function(a,s){for(var l=-1,u=Array(a);++l<a;)u[l]=s(l);return u}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!e4.call(e,o)||i&&(o=="length"||htn(o,r))||n.push(o);return n}function ctn(e){if(!aEe(e)||function(n){return!!vce&&vce in n}(e))return!1;var t=oEe(e)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r}(e)?ttn:jen;return t.test(R1(e))}function dtn(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||gB,t!==r)return rtn(e);var t,n,r,i=[];for(var o in Object(e))e4.call(e,o)&&o!="constructor"&&i.push(o);return i}function q_(e,t){var n=function(r,i){return r==null?void 0:r[i]}(e,t);return ctn(n)?n:void 0}var zy=function(e){return K_.call(e)};function htn(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||Wen.test(e))&&e>-1&&e%1==0&&e<t}function R1(e){if(e!=null){try{return rEe.call(e)}catch{}try{return e+""}catch{}}return""}($z&&zy(new $z(new ArrayBuffer(1)))!="[object DataView]"||Mz&&zy(new Mz)!=Tz||Lz&&zy(Lz.resolve())!="[object Promise]"||Bz&&zy(new Bz)!=Pz||Fz&&zy(new Fz)!="[object WeakMap]")&&(zy=function(e){var t=K_.call(e),n=t=="[object Object]"?e.constructor:void 0,r=n?R1(n):void 0;if(r)switch(r){case itn:return"[object DataView]";case otn:return Tz;case atn:return"[object Promise]";case stn:return Pz;case ltn:return"[object WeakMap]"}return t});var iEe=Array.isArray;function UY(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!oEe(e)}function oEe(e){var t=aEe(e)?K_.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function aEe(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function sEe(e){return!!e&&typeof e=="object"}function ptn(e){return e?Yen(e,function(t){return UY(t)?utn(t):dtn(t)}(e)):[]}var bce=function(e){if(!e)return[];if(UY(e))return function(n){return typeof n=="string"||!iEe(n)&&sEe(n)&&K_.call(n)=="[object String]"}(e)?Jen(e):function(n,r){var i=-1,o=n.length;for(r||(r=Array(o));++i<o;)r[i]=n[i];return r}(e);if(I6&&e[I6])return function(n){for(var r,i=[];!(r=n.next()).done;)i.push(r.value);return i}(e[I6]());var t=zy(e);return(t==Tz?Ken:t==Pz?qen:ptn)(e)};function wce(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function XY(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){e[n]===void 0?e[n]=t[n]:wce(t[n])&&wce(e[n])&&Object.keys(t[n]).length>0&&XY(e[n],t[n])})}var lEe={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function J_(){var e=typeof document<"u"?document:{};return XY(e,lEe),e}var ftn={document:lEe,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<"u"&&clearTimeout(e)}};function $1(){var e=typeof window<"u"?window:{};return XY(e,ftn),e}function Nz(e){return Nz=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Nz(e)}function t4(e,t){return t4=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},t4(e,t)}function gtn(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Vz(e,t,n){return Vz=gtn()?Reflect.construct:function(r,i,o){var a=[null];a.push.apply(a,i);var s=new(Function.bind.apply(r,a));return o&&t4(s,o.prototype),s},Vz.apply(null,arguments)}function jz(e){var t=typeof Map=="function"?new Map:void 0;return jz=function(n){if(n===null||!function(i){return Function.toString.call(i).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return Vz(n,arguments,Nz(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t4(r,n)},jz(e)}var _v=function(e){var t,n;function r(i){var o,a,s;return o=e.call.apply(e,[this].concat(i))||this,a=function(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}(o),s=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return s},set:function(l){s.__proto__=l}}),o}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(jz(Array));function mB(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,mB(n)):t.push(n)}),t}function uEe(e,t){return Array.prototype.filter.call(e,t)}function ut(e,t){var n=$1(),r=J_(),i=[];if(!t&&e instanceof _v)return e;if(!e)return new _v(i);if(typeof e=="string"){var o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var a="div";o.indexOf("<li")===0&&(a="ul"),o.indexOf("<tr")===0&&(a="tbody"),o.indexOf("<td")!==0&&o.indexOf("<th")!==0||(a="tr"),o.indexOf("<tbody")===0&&(a="table"),o.indexOf("<option")===0&&(a="select");var s=r.createElement(a);s.innerHTML=o;for(var l=0;l<s.childNodes.length;l+=1)i.push(s.childNodes[l])}else i=function(u,c){if(typeof u!="string")return[u];for(var d=[],h=c.querySelectorAll(u),f=0;f<h.length;f+=1)d.push(h[f]);return d}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof _v)return e;i=e}return new _v(function(u){for(var c=[],d=0;d<u.length;d+=1)c.indexOf(u[d])===-1&&c.push(u[d]);return c}(i))}function QO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=mB(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).add.apply(o,r)}),this}function UO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=mB(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).remove.apply(o,r)}),this}function XO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=mB(t.map(function(i){return i.split(" ")}));return uEe(this,function(i){return r.filter(function(o){return i.classList.contains(o)}).length>0}).length>0}function dd(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function n4(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function YO(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var i=0;i<e.attributes.length;i+=1){var o=e.attributes[i];o.name.indexOf("data-")>=0&&(n[t=o.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,function(s,l){return l.toUpperCase()})]=o.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function zp(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var i=0;i<this.length;i+=1){var o=this[i];if(Array.isArray(e)&&o.multiple&&o.nodeName.toLowerCase()==="select")for(var a=0;a<o.options.length;a+=1)o.options[a].selected=e.indexOf(o.options[a].value)>=0;else o.value=e}return this}function Zp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];function s(b){var v=b.target;if(v){var m=b.target.dom7EventData||[];if(m.indexOf(b)<0&&m.unshift(b),ut(v).is(i))o.apply(v,m);else for(var w=ut(v).parents(),k=0;k<w.length;k+=1)ut(w[k]).is(i)&&o.apply(w[k],m)}}function l(b){var v=b&&b.target&&b.target.dom7EventData||[];v.indexOf(b)<0&&v.unshift(b),o.apply(this,v)}typeof t[1]=="function"&&(r=t[0],o=t[1],a=t[2],i=void 0),a||(a=!1);for(var u,c=r.split(" "),d=0;d<this.length;d+=1){var h=this[d];if(i)for(u=0;u<c.length;u+=1){var f=c[u];h.dom7LiveListeners||(h.dom7LiveListeners={}),h.dom7LiveListeners[f]||(h.dom7LiveListeners[f]=[]),h.dom7LiveListeners[f].push({listener:o,proxyListener:s}),h.addEventListener(f,s,a)}else for(u=0;u<c.length;u+=1){var g=c[u];h.dom7Listeners||(h.dom7Listeners={}),h.dom7Listeners[g]||(h.dom7Listeners[g]=[]),h.dom7Listeners[g].push({listener:o,proxyListener:l}),h.addEventListener(g,l,a)}}return this}function Cce(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];typeof t[1]=="function"&&(r=t[0],o=t[1],a=t[2],i=void 0),a||(a=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var u=s[l],c=0;c<this.length;c+=1){var d=this[c],h=void 0;if(!i&&d.dom7Listeners?h=d.dom7Listeners[u]:i&&d.dom7LiveListeners&&(h=d.dom7LiveListeners[u]),h&&h.length)for(var f=h.length-1;f>=0;f-=1){var g=h[f];o&&g.listener===o||o&&g.listener&&g.listener.dom7proxy&&g.listener.dom7proxy===o?(d.removeEventListener(u,g.proxyListener,a),h.splice(f,1)):o||(d.removeEventListener(u,g.proxyListener,a),h.splice(f,1))}}return this}function r4(){var e=$1();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function i4(){var e=$1();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Oce(){if(this.length>0){var e=$1(),t=J_(),n=this[0],r=n.getBoundingClientRect(),i=t.body,o=n.clientTop||i.clientTop||0,a=n.clientLeft||i.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-o,left:r.left+l-a}}return null}function KO(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function o4(){for(var e=$1(),t=0;t<this.length;t+=1){var n=this[t];n.style.display==="none"&&(n.style.display=""),e.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function a4(e,t){var n,r=$1();if(arguments.length===1){if(typeof e!="string"){for(n=0;n<this.length;n+=1)for(var i in e)this[n].style[i]=e[i];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e=="string"){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function s4(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function xce(e){return ut(uEe(this,e))}function m0(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function l4(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Sce(e){var t,n,r=$1(),i=J_(),o=this[0];if(!o||e===void 0)return!1;if(typeof e=="string"){if(o.matches)return o.matches(e);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(e);if(o.msMatchesSelector)return o.msMatchesSelector(e);for(t=ut(e),n=0;n<t.length;n+=1)if(t[n]===o)return!0;return!1}if(e===i)return o===i;if(e===r)return o===r;if(e.nodeType||e instanceof _v){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===o)return!0;return!1}return!1}function hd(){for(var e,t=J_(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof e=="string"){var i=t.createElement("div");for(i.innerHTML=e;i.firstChild;)this[r].appendChild(i.firstChild)}else if(e instanceof _v)for(var o=0;o<e.length;o+=1)this[r].appendChild(e[o]);else this[r].appendChild(e)}return this}function Ace(e){var t,n,r=J_();for(t=0;t<this.length;t+=1)if(typeof e=="string"){var i=r.createElement("div");for(i.innerHTML=e,n=i.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(i.childNodes[n],this[t].childNodes[0])}else if(e instanceof _v)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function qO(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?ut(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return ut(t)}function u4(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?ut(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return ut(t)}function JO(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return ut(t)}function ex(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,i=0;i<r.length;i+=1)e&&!ut(r[i]).is(e)||t.push(r[i]);return ut(t)}function tx(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function nx(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}ut.fn=_v.prototype;var mtn="resize scroll".split(" ");function cEe(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n[0]===void 0){for(var i=0;i<this.length;i+=1)mtn.indexOf(e)<0&&(e in this[i]?this[i][e]():ut(this[i]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Ice=cEe("click"),v0=cEe("focus"),vtn="[object GeneratorFunction]",ytn=/^(?:0|[1-9]\d*)$/;function btn(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}var vB=Object.prototype,Wz=vB.hasOwnProperty,dEe=vB.toString,wtn=vB.propertyIsEnumerable,Ctn=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function Otn(e,t){var n=hEe(e)||function(a){return function(s){return function(l){return!!l&&typeof l=="object"}(s)&&YY(s)}(a)&&Wz.call(a,"callee")&&(!wtn.call(a,"callee")||dEe.call(a)=="[object Arguments]")}(e)?function(a,s){for(var l=-1,u=Array(a);++l<a;)u[l]=s(l);return u}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!Wz.call(e,o)||i&&(o=="length"||Itn(o,r))||n.push(o);return n}var kce,xtn=(kce=function(e,t){return e&&Stn(e,t,ktn)},function(e,t){if(e==null)return e;if(!YY(e))return kce(e,t);for(var n=e.length,r=-1,i=Object(e);++r<n&&t(i[r],r,i)!==!1;);return e}),Stn=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[++i];if(n(o[l],l,o)===!1)break}return t}}();function Atn(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||vB,t!==r)return Ctn(e);var t,n,r,i=[];for(var o in Object(e))Wz.call(e,o)&&o!="constructor"&&i.push(o);return i}function Itn(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||ytn.test(e))&&e>-1&&e%1==0&&e<t}var hEe=Array.isArray;function YY(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!function(t){var n=function(r){var i=typeof r;return!!r&&(i=="object"||i=="function")}(t)?dEe.call(t):"";return n=="[object Function]"||n==vtn}(e)}function ktn(e){return YY(e)?Otn(e):Atn(e)}function Etn(e){return e}var KY=function(e,t){return(hEe(e)?btn:xtn)(e,typeof t=="function"?t:Etn)};let pEe=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var _tn=/^\s+|\s+$/g,Ttn=/^[-+]0x[0-9a-f]+$/i,Ptn=/^0b[01]+$/i,Dtn=/^0o[0-7]+$/i,Rtn=parseInt,$tn=typeof qi=="object"&&qi&&qi.Object===Object&&qi,Mtn=typeof self=="object"&&self&&self.Object===Object&&self,Ltn=$tn||Mtn||Function("return this")(),Btn=Object.prototype.toString,Ftn=Math.max,Ntn=Math.min,k6=function(){return Ltn.Date.now()};function Vtn(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError("Expected a function");function f(k){var T=r,S=i;return r=i=void 0,u=k,a=e.apply(S,T)}function g(k){return u=k,s=setTimeout(v,t),c?f(k):a}function b(k){var T=k-l;return l===void 0||T>=t||T<0||d&&k-u>=o}function v(){var k=k6();if(b(k))return m(k);s=setTimeout(v,function(T){var S=t-(T-l);return d?Ntn(S,o-(T-u)):S}(k))}function m(k){return s=void 0,h&&r?f(k):(r=i=void 0,a)}function w(){var k=k6(),T=b(k);if(r=arguments,i=this,l=k,T){if(s===void 0)return g(l);if(d)return s=setTimeout(v,t),f(l)}return s===void 0&&(s=setTimeout(v,t)),a}return t=Ece(t)||0,c4(n)&&(c=!!n.leading,o=(d="maxWait"in n)?Ftn(Ece(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),w.cancel=function(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0},w.flush=function(){return s===void 0?a:m(k6())},w}function c4(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Ece(e){if(typeof e=="number")return e;if(function(r){return typeof r=="symbol"||function(i){return!!i&&typeof i=="object"}(r)&&Btn.call(r)=="[object Symbol]"}(e))return NaN;if(c4(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=c4(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(_tn,"");var n=Ptn.test(e);return n||Dtn.test(e)?Rtn(e.slice(2),n?2:8):Ttn.test(e)?NaN:+e}var u1=function(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError("Expected a function");return c4(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Vtn(e,t,{leading:r,maxWait:t,trailing:i})};const jtn={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function wE(e,t,n,r,i){return{sel:e,data:t,children:n,text:r,elm:i,key:t===void 0?void 0:t.key}}const Hz=Array.isArray;function o$(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function E6(e){return e===void 0}function Bu(e){return e!==void 0}const _ce=wE("",{},[],void 0,void 0);function MA(e,t){var n,r;const i=e.key===t.key,o=((n=e.data)===null||n===void 0?void 0:n.is)===((r=t.data)===null||r===void 0?void 0:r.is);return e.sel===t.sel&&i&&o}function Wtn(e,t,n){var r;const i={};for(let o=t;o<=n;++o){const a=(r=e[o])===null||r===void 0?void 0:r.key;a!==void 0&&(i[a]=o)}return i}const Htn=["create","update","remove","destroy","pre","post"];function ztn(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=jtn;for(const d of Htn)for(const h of e){const f=h[d];f!==void 0&&n[d].push(f)}function i(d){const h=d.id?"#"+d.id:"",f=d.getAttribute("class"),g=f?"."+f.split(" ").join("."):"";return wE(r.tagName(d).toLowerCase()+h+g,{},[],void 0,d)}function o(d,h){return function(){if(--h==0){const f=r.parentNode(d);r.removeChild(f,d)}}}function a(d,h){var f,g;let b,v=d.data;if(v!==void 0){const k=(f=v.hook)===null||f===void 0?void 0:f.init;Bu(k)&&(k(d),v=d.data)}const m=d.children,w=d.sel;if(w==="!")E6(d.text)&&(d.text=""),d.elm=r.createComment(d.text);else if(w!==void 0){const k=w.indexOf("#"),T=w.indexOf(".",k),S=k>0?k:w.length,I=T>0?T:w.length,O=k!==-1||T!==-1?w.slice(0,Math.min(S,I)):w,y=d.elm=Bu(v)&&Bu(b=v.ns)?r.createElementNS(b,O,v):r.createElement(O,v);for(S<I&&y.setAttribute("id",w.slice(S+1,I)),T>0&&y.setAttribute("class",w.slice(I+1).replace(/\./g," ")),b=0;b<n.create.length;++b)n.create[b](_ce,d);if(Hz(m))for(b=0;b<m.length;++b){const A=m[b];A!=null&&r.appendChild(y,a(A,h))}else o$(d.text)&&r.appendChild(y,r.createTextNode(d.text));const _=d.data.hook;Bu(_)&&((g=_.create)===null||g===void 0||g.call(_,_ce,d),_.insert&&h.push(d))}else d.elm=r.createTextNode(d.text);return d.elm}function s(d,h,f,g,b,v){for(;g<=b;++g){const m=f[g];m!=null&&r.insertBefore(d,a(m,v),h)}}function l(d){var h,f;const g=d.data;if(g!==void 0){(f=(h=g==null?void 0:g.hook)===null||h===void 0?void 0:h.destroy)===null||f===void 0||f.call(h,d);for(let b=0;b<n.destroy.length;++b)n.destroy[b](d);if(d.children!==void 0)for(let b=0;b<d.children.length;++b){const v=d.children[b];v!=null&&typeof v!="string"&&l(v)}}}function u(d,h,f,g){for(var b,v;f<=g;++f){let m,w;const k=h[f];if(k!=null)if(Bu(k.sel)){l(k),m=n.remove.length+1,w=o(k.elm,m);for(let S=0;S<n.remove.length;++S)n.remove[S](k,w);const T=(v=(b=k==null?void 0:k.data)===null||b===void 0?void 0:b.hook)===null||v===void 0?void 0:v.remove;Bu(T)?T(k,w):w()}else r.removeChild(d,k.elm)}}function c(d,h,f){var g,b,v,m,w;const k=(g=h.data)===null||g===void 0?void 0:g.hook;(b=k==null?void 0:k.prepatch)===null||b===void 0||b.call(k,d,h);const T=h.elm=d.elm,S=d.children,I=h.children;if(d!==h){if(h.data!==void 0){for(let O=0;O<n.update.length;++O)n.update[O](d,h);(m=(v=h.data.hook)===null||v===void 0?void 0:v.update)===null||m===void 0||m.call(v,d,h)}E6(h.text)?Bu(S)&&Bu(I)?S!==I&&function(O,y,_,A){let R,D,C,x,P=0,$=0,L=y.length-1,V=y[0],H=y[L],Q=_.length-1,U=_[0],K=_[Q];for(;P<=L&&$<=Q;)V==null?V=y[++P]:H==null?H=y[--L]:U==null?U=_[++$]:K==null?K=_[--Q]:MA(V,U)?(c(V,U,A),V=y[++P],U=_[++$]):MA(H,K)?(c(H,K,A),H=y[--L],K=_[--Q]):MA(V,K)?(c(V,K,A),r.insertBefore(O,V.elm,r.nextSibling(H.elm)),V=y[++P],K=_[--Q]):MA(H,U)?(c(H,U,A),r.insertBefore(O,H.elm,V.elm),H=y[--L],U=_[++$]):(R===void 0&&(R=Wtn(y,P,L)),D=R[U.key],E6(D)?r.insertBefore(O,a(U,A),V.elm):(C=y[D],C.sel!==U.sel?r.insertBefore(O,a(U,A),V.elm):(c(C,U,A),y[D]=void 0,r.insertBefore(O,C.elm,V.elm))),U=_[++$]);(P<=L||$<=Q)&&(P>L?(x=_[Q+1]==null?null:_[Q+1].elm,s(O,x,_,$,Q,A)):u(O,y,P,L))}(T,S,I,f):Bu(I)?(Bu(d.text)&&r.setTextContent(T,""),s(T,null,I,0,I.length-1,f)):Bu(S)?u(T,S,0,S.length-1):Bu(d.text)&&r.setTextContent(T,""):d.text!==h.text&&(Bu(S)&&u(T,S,0,S.length-1),r.setTextContent(T,h.text)),(w=k==null?void 0:k.postpatch)===null||w===void 0||w.call(k,d,h)}}return function(d,h){let f,g,b;const v=[];for(f=0;f<n.pre.length;++f)n.pre[f]();for(function(m){return m.sel!==void 0}(d)||(d=i(d)),MA(d,h)?c(d,h,v):(g=d.elm,b=r.parentNode(g),a(h,v),b!==null&&(r.insertBefore(b,h.elm,r.nextSibling(g)),u(b,[d],0,0))),f=0;f<v.length;++f)v[f].data.hook.insert(v[f]);for(f=0;f<n.post.length;++f)n.post[f]();return h}}function fEe(e,t,n){if(e.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&t!==void 0)for(let r=0;r<t.length;++r){const i=t[r].data;i!==void 0&&fEe(i,t[r].children,t[r].sel)}}function rx(e,t,n){let r,i,o,a={};if(n!==void 0?(t!==null&&(a=t),Hz(n)?r=n:o$(n)?i=n.toString():n&&n.sel&&(r=[n])):t!=null&&(Hz(t)?r=t:o$(t)?i=t.toString():t&&t.sel?r=[t]:a=t),r!==void 0)for(o=0;o<r.length;++o)o$(r[o])&&(r[o]=wE(void 0,void 0,void 0,r[o],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||fEe(a,r,e),wE(e,a,r,i,void 0)}function Tce(e,t){let n;const r=t.elm;let i=e.data.attrs,o=t.data.attrs;if((i||o)&&i!==o){for(n in i=i||{},o=o||{},o){const a=o[n];i[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,a):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}const Ztn={create:Tce,update:Tce};function Pce(e,t){let n,r;const i=t.elm;let o=e.data.class,a=t.data.class;if((o||a)&&o!==a){for(r in o=o||{},a=a||{},o)o[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&i.classList.remove(r);for(r in a)n=a[r],n!==o[r]&&i.classList[n?"add":"remove"](r)}}const Gtn={create:Pce,update:Pce},Dce=/[A-Z]/g;function Rce(e,t){const n=t.elm;let r,i=e.data.dataset,o=t.data.dataset;if(!i&&!o||i===o)return;i=i||{},o=o||{};const a=n.dataset;for(r in i)o[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(Dce,"-$&").toLowerCase()));for(r in o)i[r]!==o[r]&&(a?a[r]=o[r]:n.setAttribute("data-"+r.replace(Dce,"-$&").toLowerCase(),o[r]))}const Qtn={create:Rce,update:Rce};function gEe(e,t,n){if(typeof e=="function")e.call(t,n,t);else if(typeof e=="object")for(let r=0;r<e.length;r++)gEe(e[r],t,n)}function Utn(e,t){const n=e.type,r=t.data.on;r&&r[n]&&gEe(r[n],t,e)}function _6(e,t){const n=e.data.on,r=e.listener,i=e.elm,o=t&&t.data.on,a=t&&t.elm;let s;if(n!==o){if(n&&r)if(o)for(s in n)o[s]||i.removeEventListener(s,r,!1);else for(s in n)i.removeEventListener(s,r,!1);if(o){const l=t.listener=e.listener||function u(c){Utn(c,u.vnode)};if(l.vnode=t,n)for(s in o)n[s]||a.addEventListener(s,l,!1);else for(s in o)a.addEventListener(s,l,!1)}}}const Xtn={create:_6,update:_6,destroy:_6};function $ce(e,t){let n,r,i;const o=t.elm;let a=e.data.props,s=t.data.props;if((a||s)&&a!==s)for(n in a=a||{},s=s||{},s)r=s[n],i=a[n],i===r||n==="value"&&o[n]===r||(o[n]=r)}const Ytn={create:$ce,update:$ce},Mce=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let T6=!1;function Ktn(e,t,n){(function(r){Mce(function(){Mce(r)})})(function(){e[t]=n})}function Lce(e,t){let n,r;const i=t.elm;let o=e.data.style,a=t.data.style;if(!o&&!a||o===a)return;o=o||{},a=a||{};const s="delayed"in o;for(r in o)a[r]||(r[0]==="-"&&r[1]==="-"?i.style.removeProperty(r):i.style[r]="");for(r in a)if(n=a[r],r==="delayed"&&a.delayed)for(const l in a.delayed)n=a.delayed[l],s&&n===o.delayed[l]||Ktn(i.style,l,n);else r!=="remove"&&n!==o[r]&&(r[0]==="-"&&r[1]==="-"?i.style.setProperty(r,n):i.style[r]=n)}const qtn={pre:function(){T6=!1},create:Lce,update:Lce,destroy:function(e){let t,n;const r=e.elm,i=e.data.style;if(i&&(t=i.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;T6||(e.elm.offsetLeft,T6=!0);const i=e.elm;let o=0;const a=n.remove;let s=0;const l=[];for(r in a)l.push(r),i.style[r]=a[r];const u=getComputedStyle(i)["transition-property"].split(", ");for(;o<u.length;++o)l.indexOf(u[o])!==-1&&s++;i.addEventListener("transitionend",function(c){c.target===i&&--s,s===0&&t()})}};function mEe(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?mEe(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(wE(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function mr(e,t,...n){const r=mEe(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?rx(e,t,r[0].text):rx(e,t,r)}mr||(mr={});var Jtn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,enn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vEe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tnn="[\\ud800-\\udfff]",Bce="["+vEe+"]",d4="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",yEe="\\d+",nnn="[\\u2700-\\u27bf]",bEe="[a-z\\xdf-\\xf6\\xf8-\\xff]",wEe="[^\\ud800-\\udfff"+vEe+yEe+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",zz="\\ud83c[\\udffb-\\udfff]",CEe="[^\\ud800-\\udfff]",qY="(?:\\ud83c[\\udde6-\\uddff]){2}",JY="[\\ud800-\\udbff][\\udc00-\\udfff]",xC="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Fce="(?:"+bEe+"|"+wEe+")",rnn="(?:"+xC+"|"+wEe+")",Nce="(?:"+d4+"|"+zz+")?",OEe="[\\ufe0e\\ufe0f]?"+Nce+("(?:\\u200d(?:"+[CEe,qY,JY].join("|")+")[\\ufe0e\\ufe0f]?"+Nce+")*"),inn="(?:"+[nnn,qY,JY].join("|")+")"+OEe,onn="(?:"+[CEe+d4+"?",d4,qY,JY,tnn].join("|")+")",ann=RegExp("['’]","g"),snn=RegExp(d4,"g"),lnn=RegExp(zz+"(?="+zz+")|"+onn+OEe,"g"),unn=RegExp([xC+"?"+bEe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Bce,xC,"$"].join("|")+")",rnn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Bce,xC+Fce,"$"].join("|")+")",xC+"?"+Fce+"+(?:['’](?:d|ll|m|re|s|t|ve))?",xC+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",yEe,inn].join("|"),"g"),cnn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),dnn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hnn=typeof qi=="object"&&qi&&qi.Object===Object&&qi,pnn=typeof self=="object"&&self&&self.Object===Object&&self,fnn=hnn||pnn||Function("return this")(),P6,gnn=(P6={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return P6==null?void 0:P6[e]});function xEe(e){return cnn.test(e)}function mnn(e){return xEe(e)?function(t){return t.match(lnn)||[]}(e):function(t){return t.split("")}(e)}var vnn=Object.prototype.toString,Vce=fnn.Symbol,jce=Vce?Vce.prototype:void 0,Wce=jce?jce.toString:void 0;function ynn(e){if(typeof e=="string")return e;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&vnn.call(n)=="[object Symbol]"}(e))return Wce?Wce.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function bnn(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:function(i,o,a){var s=-1,l=i.length;o<0&&(o=-o>l?0:l+o),(a=a>l?l:a)<0&&(a+=l),l=o>a?0:a-o>>>0,o>>>=0;for(var u=Array(l);++s<l;)u[s]=i[s+o];return u}(e,t,n)}function a$(e){return e==null?"":ynn(e)}var Hce,wnn=(Hce=function(e,t,n){return t=t.toLowerCase(),e+(n?Cnn(a$(t).toLowerCase()):t)},function(e){return function(t,n,r,i){var o=-1,a=t?t.length:0;for(i;++o<a;)r=n(r,t[o],o,t);return r}(function(t,n,r){return t=a$(t),(n=n)===void 0?function(i){return dnn.test(i)}(t)?function(i){return i.match(unn)||[]}(t):function(i){return i.match(Jtn)||[]}(t):t.match(n)||[]}(function(t){return(t=a$(t))&&t.replace(enn,gnn).replace(snn,"")}(e).replace(ann,"")),Hce,"")}),zce,Cnn=(zce="toUpperCase",function(e){var t=xEe(e=a$(e))?mnn(e):void 0,n=t?t[0]:e.charAt(0),r=t?bnn(t,1).join(""):e.slice(1);return n[zce]()+r});for(var Onn=wnn,xnn=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),D6={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},SEe={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:xnn?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},eK={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},eR=1;eR<20;eR++)eK["f"+eR]=111+eR;function AEe(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(o){return function(a,s){var l=s&&s.byKey,u={},c=(a=a.replace("++","+add")).split("+"),d=c.length;for(var h in D6)u[D6[h]]=!1;var f=!0,g=!1,b=void 0;try{for(var v,m=c[Symbol.iterator]();!(f=(v=m.next()).done);f=!0){var w=v.value,k=w.endsWith("?")&&w.length>1;k&&(w=w.slice(0,-1));var T=IEe(w),S=D6[T];if(w.length>1&&!S&&!SEe[w]&&!eK[T])throw new TypeError('Unknown modifier: "'+w+'"');d!==1&&S||(l?u.key=T:u.which=Snn(w)),S&&(u[S]=!k||null)}}catch(I){g=!0,b=I}finally{try{!f&&m.return&&m.return()}finally{if(g)throw b}}return u}(o,t)}),i=function(o){return r.some(function(a){return function(s,l){for(var u in s){var c=s[u],d=void 0;if(c!=null&&((d=u==="key"&&l.key!=null?l.key.toLowerCase():u==="which"?c===91&&l.which===93?91:l.which:l[u])!=null||c!==!1)&&d!==c)return!1}return!0}(a,o)})};return n==null?i:i(n)}function Snn(e){return e=IEe(e),eK[e]||e.toUpperCase().charCodeAt(0)}function IEe(e){return e=e.toLowerCase(),e=SEe[e]||e}var Ann=AEe,R6=function(e,t){return AEe(e,{byKey:!0},t)},Inn=/^\s+|\s+$/g,knn=/^[-+]0x[0-9a-f]+$/i,Enn=/^0b[01]+$/i,_nn=/^0o[0-7]+$/i,Tnn=parseInt,Pnn=typeof qi=="object"&&qi&&qi.Object===Object&&qi,Dnn=typeof self=="object"&&self&&self.Object===Object&&self,Rnn=Pnn||Dnn||Function("return this")(),$nn=Object.prototype.toString,Mnn=Math.max,Lnn=Math.min,$6=function(){return Rnn.Date.now()};function Zz(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Zce(e){if(typeof e=="number")return e;if(function(r){return typeof r=="symbol"||function(i){return!!i&&typeof i=="object"}(r)&&$nn.call(r)=="[object Symbol]"}(e))return NaN;if(Zz(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Zz(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Inn,"");var n=Enn.test(e);return n||_nn.test(e)?Tnn(e.slice(2),n?2:8):knn.test(e)?NaN:+e}var jw,kEe=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError("Expected a function");function f(k){var T=r,S=i;return r=i=void 0,u=k,a=e.apply(S,T)}function g(k){return u=k,s=setTimeout(v,t),c?f(k):a}function b(k){var T=k-l;return l===void 0||T>=t||T<0||d&&k-u>=o}function v(){var k=$6();if(b(k))return m(k);s=setTimeout(v,function(T){var S=t-(T-l);return d?Lnn(S,o-(T-u)):S}(k))}function m(k){return s=void 0,h&&r?f(k):(r=i=void 0,a)}function w(){var k=$6(),T=b(k);if(r=arguments,i=this,l=k,T){if(s===void 0)return g(l);if(d)return s=setTimeout(v,t),f(l)}return s===void 0&&(s=setTimeout(v,t)),a}return t=Zce(t)||0,Zz(n)&&(c=!!n.leading,o=(d="maxWait"in n)?Mnn(Zce(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),w.cancel=function(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0},w.flush=function(){return s===void 0?a:m($6())},w},EEe=T1(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Boolean]",a="[object Date]",s="[object Function]",l="[object GeneratorFunction]",u="[object Map]",c="[object Number]",d="[object Object]",h="[object Promise]",f="[object RegExp]",g="[object Set]",b="[object String]",v="[object Symbol]",m="[object WeakMap]",w="[object ArrayBuffer]",k="[object DataView]",T="[object Float32Array]",S="[object Float64Array]",I="[object Int8Array]",O="[object Int16Array]",y="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",R="[object Uint16Array]",D="[object Uint32Array]",C=/\w*$/,x=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,$={};$[i]=$["[object Array]"]=$[w]=$[k]=$[o]=$[a]=$[T]=$[S]=$[I]=$[O]=$[y]=$[u]=$[c]=$[d]=$[f]=$[g]=$[b]=$[v]=$[_]=$[A]=$[R]=$[D]=!0,$["[object Error]"]=$[s]=$[m]=!1;var L=typeof qi=="object"&&qi&&qi.Object===Object&&qi,V=typeof self=="object"&&self&&self.Object===Object&&self,H=L||V||Function("return this")(),Q=t&&!t.nodeType&&t,U=Q&&e&&!e.nodeType&&e,K=U&&U.exports===Q;function J(lt,It){return lt.set(It[0],It[1]),lt}function ue(lt,It){return lt.add(It),lt}function ee(lt,It,Xt,on){var Vn=-1,Ur=lt?lt.length:0;for(on;++Vn<Ur;)Xt=It(Xt,lt[Vn],Vn,lt);return Xt}function N(lt){var It=!1;if(lt!=null&&typeof lt.toString!="function")try{It=!!(lt+"")}catch{}return It}function q(lt){var It=-1,Xt=Array(lt.size);return lt.forEach(function(on,Vn){Xt[++It]=[Vn,on]}),Xt}function G(lt,It){return function(Xt){return lt(It(Xt))}}function ne(lt){var It=-1,Xt=Array(lt.size);return lt.forEach(function(on){Xt[++It]=on}),Xt}var le=Array.prototype,oe=Function.prototype,ve=Object.prototype,de=H["__core-js_shared__"],ae=function(){var lt=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||"");return lt?"Symbol(src)_1."+lt:""}(),be=oe.toString,ie=ve.hasOwnProperty,ce=ve.toString,pe=RegExp("^"+be.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=K?H.Buffer:void 0,Z=H.Symbol,Y=H.Uint8Array,se=G(Object.getPrototypeOf,Object),fe=Object.create,me=ve.propertyIsEnumerable,Ae=le.splice,Be=Object.getOwnPropertySymbols,Ye=X?X.isBuffer:void 0,Qe=G(Object.keys,Object),nt=Wr(H,"DataView"),st=Wr(H,"Map"),Le=Wr(H,"Promise"),Me=Wr(H,"Set"),je=Wr(H,"WeakMap"),Ue=Wr(Object,"create"),Te=Lt(nt),bt=Lt(st),At=Lt(Le),ht=Lt(Me),Pe=Lt(je),Ze=Z?Z.prototype:void 0,dt=Ze?Ze.valueOf:void 0;function Mt(lt){var It=-1,Xt=lt?lt.length:0;for(this.clear();++It<Xt;){var on=lt[It];this.set(on[0],on[1])}}function He(lt){var It=-1,Xt=lt?lt.length:0;for(this.clear();++It<Xt;){var on=lt[It];this.set(on[0],on[1])}}function wt(lt){var It=-1,Xt=lt?lt.length:0;for(this.clear();++It<Xt;){var on=lt[It];this.set(on[0],on[1])}}function Ee(lt){this.__data__=new He(lt)}function Xe(lt,It){var Xt=qe(lt)||function(yr){return function(Fn){return function(dn){return!!dn&&typeof dn=="object"}(Fn)&&kt(Fn)}(yr)&&ie.call(yr,"callee")&&(!me.call(yr,"callee")||ce.call(yr)==i)}(lt)?function(yr,Fn){for(var dn=-1,ri=Array(yr);++dn<yr;)ri[dn]=Fn(dn);return ri}(lt.length,String):[],on=Xt.length,Vn=!!on;for(var Ur in lt)!ie.call(lt,Ur)||Vn&&(Ur=="length"||et(Ur,on))||Xt.push(Ur);return Xt}function ct(lt,It,Xt){var on=lt[It];ie.call(lt,It)&&Mn(on,Xt)&&(Xt!==void 0||It in lt)||(lt[It]=Xt)}function _t(lt,It){for(var Xt=lt.length;Xt--;)if(Mn(lt[Xt][0],It))return Xt;return-1}function Qt(lt,It,Xt,on,Vn,Ur,yr){var Fn;if(on&&(Fn=Ur?on(lt,Vn,Ur,yr):on(lt)),Fn!==void 0)return Fn;if(!Cn(lt))return lt;var dn=qe(lt);if(dn){if(Fn=function(Fe){var Dt=Fe.length,zt=Fe.constructor(Dt);return Dt&&typeof Fe[0]=="string"&&ie.call(Fe,"index")&&(zt.index=Fe.index,zt.input=Fe.input),zt}(lt),!It)return function(Fe,Dt){var zt=-1,yt=Fe.length;for(Dt||(Dt=Array(yt));++zt<yt;)Dt[zt]=Fe[zt];return Dt}(lt,Fn)}else{var ri=Ke(lt),ji=ri==s||ri==l;if(Ut(lt))return function(Fe,Dt){if(Dt)return Fe.slice();var zt=new Fe.constructor(Fe.length);return Fe.copy(zt),zt}(lt,It);if(ri==d||ri==i||ji&&!Ur){if(N(lt))return Ur?lt:{};if(Fn=function(Fe){return typeof Fe.constructor!="function"||$t(Fe)?{}:(Dt=se(Fe),Cn(Dt)?fe(Dt):{});var Dt}(ji?{}:lt),!It)return function(Fe,Dt){return hr(Fe,ze(Fe),Dt)}(lt,function(Fe,Dt){return Fe&&hr(Dt,Pn(Dt),Fe)}(Fn,lt))}else{if(!$[ri])return Ur?lt:{};Fn=function(Fe,Dt,zt,yt){var Zt=Fe.constructor;switch(Dt){case w:return kn(Fe);case o:case a:return new Zt(+Fe);case k:return function(An,Sr){var ii=Sr?kn(An.buffer):An.buffer;return new An.constructor(ii,An.byteOffset,An.byteLength)}(Fe,yt);case T:case S:case I:case O:case y:case _:case A:case R:case D:return function(An,Sr){var ii=Sr?kn(An.buffer):An.buffer;return new An.constructor(ii,An.byteOffset,An.length)}(Fe,yt);case u:return function(An,Sr,ii){return ee(Sr?ii(q(An),!0):q(An),J,new An.constructor)}(Fe,yt,zt);case c:case b:return new Zt(Fe);case f:return function(An){var Sr=new An.constructor(An.source,C.exec(An));return Sr.lastIndex=An.lastIndex,Sr}(Fe);case g:return function(An,Sr,ii){return ee(Sr?ii(ne(An),!0):ne(An),ue,new An.constructor)}(Fe,yt,zt);case v:return function(An){return dt?Object(dt.call(An)):{}}(Fe)}}(lt,ri,Qt,It)}}yr||(yr=new Ee);var ci=yr.get(lt);if(ci)return ci;if(yr.set(lt,Fn),!dn)var Ie=Xt?function(Fe){return function(Dt,zt,yt){var Zt=zt(Dt);return qe(Dt)?Zt:function(An,Sr){for(var ii=-1,ki=Sr.length,ks=An.length;++ii<ki;)An[ks+ii]=Sr[ii];return An}(Zt,yt(Dt))}(Fe,Pn,ze)}(lt):Pn(lt);return function(Fe,Dt){for(var zt=-1,yt=Fe?Fe.length:0;++zt<yt&&Dt(Fe[zt],zt,Fe)!==!1;);}(Ie||lt,function(Fe,Dt){Ie&&(Fe=lt[Dt=Fe]),ct(Fn,Dt,Qt(Fe,It,Xt,on,Dt,lt,yr))}),Fn}function ln(lt){return!(!Cn(lt)||function(It){return!!ae&&ae in It}(lt))&&(nn(lt)||N(lt)?pe:x).test(Lt(lt))}function kn(lt){var It=new lt.constructor(lt.byteLength);return new Y(It).set(new Y(lt)),It}function hr(lt,It,Xt,on){Xt||(Xt={});for(var Vn=-1,Ur=It.length;++Vn<Ur;){var yr=It[Vn],Fn=void 0;ct(Xt,yr,Fn===void 0?lt[yr]:Fn)}return Xt}function pr(lt,It){var Xt,on,Vn=lt.__data__;return((on=typeof(Xt=It))=="string"||on=="number"||on=="symbol"||on=="boolean"?Xt!=="__proto__":Xt===null)?Vn[typeof It=="string"?"string":"hash"]:Vn.map}function Wr(lt,It){var Xt=function(on,Vn){return on==null?void 0:on[Vn]}(lt,It);return ln(Xt)?Xt:void 0}Mt.prototype.clear=function(){this.__data__=Ue?Ue(null):{}},Mt.prototype.delete=function(lt){return this.has(lt)&&delete this.__data__[lt]},Mt.prototype.get=function(lt){var It=this.__data__;if(Ue){var Xt=It[lt];return Xt===n?void 0:Xt}return ie.call(It,lt)?It[lt]:void 0},Mt.prototype.has=function(lt){var It=this.__data__;return Ue?It[lt]!==void 0:ie.call(It,lt)},Mt.prototype.set=function(lt,It){return this.__data__[lt]=Ue&&It===void 0?n:It,this},He.prototype.clear=function(){this.__data__=[]},He.prototype.delete=function(lt){var It=this.__data__,Xt=_t(It,lt);return!(Xt<0)&&(Xt==It.length-1?It.pop():Ae.call(It,Xt,1),!0)},He.prototype.get=function(lt){var It=this.__data__,Xt=_t(It,lt);return Xt<0?void 0:It[Xt][1]},He.prototype.has=function(lt){return _t(this.__data__,lt)>-1},He.prototype.set=function(lt,It){var Xt=this.__data__,on=_t(Xt,lt);return on<0?Xt.push([lt,It]):Xt[on][1]=It,this},wt.prototype.clear=function(){this.__data__={hash:new Mt,map:new(st||He),string:new Mt}},wt.prototype.delete=function(lt){return pr(this,lt).delete(lt)},wt.prototype.get=function(lt){return pr(this,lt).get(lt)},wt.prototype.has=function(lt){return pr(this,lt).has(lt)},wt.prototype.set=function(lt,It){return pr(this,lt).set(lt,It),this},Ee.prototype.clear=function(){this.__data__=new He},Ee.prototype.delete=function(lt){return this.__data__.delete(lt)},Ee.prototype.get=function(lt){return this.__data__.get(lt)},Ee.prototype.has=function(lt){return this.__data__.has(lt)},Ee.prototype.set=function(lt,It){var Xt=this.__data__;if(Xt instanceof He){var on=Xt.__data__;if(!st||on.length<199)return on.push([lt,It]),this;Xt=this.__data__=new wt(on)}return Xt.set(lt,It),this};var ze=Be?G(Be,Object):function(){return[]},Ke=function(lt){return ce.call(lt)};function et(lt,It){return!!(It=It??r)&&(typeof lt=="number"||P.test(lt))&<>-1&<%1==0&<<It}function $t(lt){var It=lt&<.constructor;return lt===(typeof It=="function"&&It.prototype||ve)}function Lt(lt){if(lt!=null){try{return be.call(lt)}catch{}try{return lt+""}catch{}}return""}function Mn(lt,It){return lt===It||lt!=lt&&It!=It}(nt&&Ke(new nt(new ArrayBuffer(1)))!=k||st&&Ke(new st)!=u||Le&&Ke(Le.resolve())!=h||Me&&Ke(new Me)!=g||je&&Ke(new je)!=m)&&(Ke=function(lt){var It=ce.call(lt),Xt=It==d?lt.constructor:void 0,on=Xt?Lt(Xt):void 0;if(on)switch(on){case Te:return k;case bt:return u;case At:return h;case ht:return g;case Pe:return m}return It});var qe=Array.isArray;function kt(lt){return lt!=null&&function(It){return typeof It=="number"&&It>-1&&It%1==0&&It<=r}(lt.length)&&!nn(lt)}var Ut=Ye||function(){return!1};function nn(lt){var It=Cn(lt)?ce.call(lt):"";return It==s||It==l}function Cn(lt){var It=typeof lt;return!!lt&&(It=="object"||It=="function")}function Pn(lt){return kt(lt)?Xe(lt):function(It){if(!$t(It))return Qe(It);var Xt=[];for(var on in Object(It))ie.call(It,on)&&on!="constructor"&&Xt.push(on);return Xt}(lt)}e.exports=function(lt){return Qt(lt,!0,!0)}});function Gce(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Bnn=0;function Fnn(e){return"__private_"+Bnn+++"_"+e}function Nnn(e,t,n){const r=[];return e.forEach(i=>typeof i!="string"?r.push(i):t[Symbol.split](i).forEach((o,a,s)=>{o!==""&&r.push(o),a<s.length-1&&r.push(n)})),r}/**
|
|
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
|
* and replaces it with values from options `{smart_count: 5}`
|
|
*
|
|
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
|
|
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
|
|
*
|
|
* @param {string} phrase that needs interpolation, with placeholders
|
|
* @param {object} options with values that will be used to replace placeholders
|
|
* @returns {any[]} interpolated
|
|
*/function Qce(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const i of Object.keys(t))if(i!=="_"){let o=t[i];typeof o=="string"&&(o=n[Symbol.replace](o,"$$$$")),r=Nnn(r,new RegExp(`%\\{${i}\\}`,"g"),o)}return r}var _Ee=(jw=Fnn("apply"),class{constructor(e){Object.defineProperty(this,jw,{value:Vnn}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(Gce(this,jw)[jw],this):Gce(this,jw)[jw](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(r,i){return Object.prototype.hasOwnProperty.call(r,i)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if(typeof n=="object"){if(t&&t.smart_count!==void 0)return Qce(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return Qce(n,t)}});function Vnn(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var TEe=function(){var e={},t=e._fns={};return e.emit=function(n,r,i,o,a,s,l){var u=function(c){for(var d=t[c]?t[c]:[],h=c.indexOf(":"),f=h===-1?[c]:[c.substring(0,h),c.substring(h+1)],g=Object.keys(t),b=0,v=g.length;b<v;b++){var m=g[b];if(m==="*"&&(d=d.concat(t[m])),f.length===2&&f[0]===m){d=d.concat(t[m]);break}}return d}(n);u.length&&function(c,d,h){for(var f=0,g=d.length;f<g&&d[f];f++)d[f].event=c,d[f].apply(d[f],h)}(n,u,[r,i,o,a,s,l])},e.on=function(n,r){t[n]||(t[n]=[]),t[n].push(r)},e.once=function(n,r){this.on(n,function i(){r.apply(this,arguments),e.off(n,i)})},e.off=function(n,r){var i=[];if(n&&r)for(var o=this._fns[n],a=0,s=o?o.length:0;a<s;a++)o[a]!==r&&i.push(o[a]);i.length?this._fns[n]=i:delete this._fns[n]},e},jnn={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:Wnn}=jnn,Uce=e=>crypto.getRandomValues(new Uint8Array(e)),Xce=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return()=>{let o="";for(;;){let a=n(i),s=i;for(;s--;)if(o+=e[a[s]&r]||"",o.length===t)return o}}};var Hnn={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>Xce(e,t,Uce),customRandom:Xce,urlAlphabet:Wnn,random:Uce},M6=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var i=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+i:(t?"-":"")+e.toFixed(1)+" "+i};function PEe(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}PEe.prototype.match=function(e){var t,n,r=!0,i=this.parts,o=i.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<o;t++)i[t]!=="*"&&(r=t<n.length&&i[t]===n[t]);r=r&&n}else r=!1;else if(typeof e.splice=="function")for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e=="object")for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var znn=/[\/\+\.]/,Znn=function(e,t){function n(r){var i=function(o,a,s){var l=new PEe(o,s||/[\/\.]/);return a!==void 0?l.match(a):l}(r,e,znn);return i&&i.length>=2}return t?n(t.split(";")[0]):n},Gnn=0;function Qnn(e){return"__private_"+Gnn+++"_"+e}var L6=Qnn("publish");class DEe{constructor(){Object.defineProperty(this,L6,{value:Unn}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,function(i,o){if(!Object.prototype.hasOwnProperty.call(i,o))throw new TypeError("attempted to use private field on non-instance");return i}(this,L6)[L6](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function Unn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(r=>{r(...t)})}DEe.VERSION="2.0.3";var Yce=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Kce={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function qce(e){let t="";return e.replace(/[^A-Z0-9]/gi,n=>(t+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+t}var Xnn=function(e){if(e==null&&(e=typeof navigator<"u"?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,i]=n.split(".");return r=parseInt(r,10),i=parseInt(i,10),r<15||r===15&&i<15063||r>18||r===18&&i>=18218};function B6(e){return e<10?`0${e}`:e.toString()}var tR=function(){const e=new Date;return`${B6(e.getHours())}:${B6(e.getMinutes())}:${B6(e.getSeconds())}`},REe={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${tR()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${tR()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${tR()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${tR()}]`,...t)}}},Ynn={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},$Ee=Hnn;let MEe,LEe;function Hn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Knn=0;function Ka(e){return"__private_"+Knn+++"_"+e}const{nanoid:qnn}=$Ee,{justErrorsLogger:Jnn,debugLogger:ern}=REe;class gp extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class trn extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Ts=Ka("plugins"),LA=Ka("storeUnsubscribe"),Bf=Ka("emitter"),eb=Ka("preProcessors"),tb=Ka("uploaders"),eg=Ka("postProcessors"),Xk=Ka("checkRestrictions"),F6=Ka("checkMinNumberOfFiles"),CE=Ka("checkRequiredMetaFieldsOnFile"),N6=Ka("checkRequiredMetaFields"),rs=Ka("showOrLogErrorAndThrow"),BA=Ka("assertNewUploadAllowed"),FA=Ka("checkAndCreateFileStateObject"),NA=Ka("startIfAutoProceed"),V6=Ka("addListeners"),Hd=Ka("updateOnlineStatus"),Ff=Ka("createUpload"),j6=Ka("getUpload"),hb=Ka("removeUpload"),Nf=Ka("runUpload");MEe=Symbol.for("uppy test: getPlugins"),LEe=Symbol.for("uppy test: createUpload");class BEe{constructor(t){Object.defineProperty(this,Nf,{value:frn}),Object.defineProperty(this,hb,{value:prn}),Object.defineProperty(this,j6,{value:hrn}),Object.defineProperty(this,Ff,{value:drn}),Object.defineProperty(this,V6,{value:crn}),Object.defineProperty(this,NA,{value:urn}),Object.defineProperty(this,FA,{value:lrn}),Object.defineProperty(this,BA,{value:srn}),Object.defineProperty(this,rs,{value:arn}),Object.defineProperty(this,N6,{value:orn}),Object.defineProperty(this,CE,{value:irn}),Object.defineProperty(this,F6,{value:rrn}),Object.defineProperty(this,Xk,{value:nrn}),Object.defineProperty(this,Ts,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,LA,{writable:!0,value:void 0}),Object.defineProperty(this,Bf,{writable:!0,value:TEe()}),Object.defineProperty(this,eb,{writable:!0,value:new Set}),Object.defineProperty(this,tb,{writable:!0,value:new Set}),Object.defineProperty(this,eg,{writable:!0,value:new Set}),Object.defineProperty(this,Hd,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Ynn;const n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:r=>r,onBeforeUpload:r=>r,store:new DEe,logger:Jnn,infoTimeout:5e3};if(this.opts={...n,...t,restrictions:{...n.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=ern),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=u1(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Xnn(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Hn(this,LA)[LA]=this.store.subscribe((r,i,o)=>{this.emit("state-update",r,i,o),this.updateAll(i)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),Hn(this,V6)[V6]()}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];Hn(this,Bf)[Bf].emit(t,...r)}on(t,n){return Hn(this,Bf)[Bf].on(t,n),this}once(t,n){return Hn(this,Bf)[Bf].once(t,n),this}off(t,n){return Hn(this,Bf)[Bf].off(t,n),this}updateAll(t){this.iteratePlugins(n=>{n.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,n){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...n}}})}i18nInit(){const t=new _Ee([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach(i=>{const o={...n[i]};o.progress={...o.progress,...t},r[i]=o}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){Hn(this,eb)[eb].add(t)}removePreProcessor(t){return Hn(this,eb)[eb].delete(t)}addPostProcessor(t){Hn(this,eg)[eg].add(t)}removePostProcessor(t){return Hn(this,eg)[eg].delete(t)}addUploader(t){Hn(this,tb)[tb].add(t)}removeUploader(t){return Hn(this,tb)[tb].delete(t)}setMeta(t){const n={...this.getState().meta,...t},r={...this.getState().files};Object.keys(r).forEach(i=>{r[i]={...r[i],meta:{...r[i].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:r})}setFileMeta(t,n){const r={...this.getState().files};if(!r[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const i={...r[t].meta,...n};r[t]={...r[t],meta:i},this.setState({files:r})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:n,error:r}=this.getState(),i=Object.values(t),o=i.filter(g=>{let{progress:b}=g;return!b.uploadComplete&&b.uploadStarted}),a=i.filter(g=>!g.progress.uploadStarted),s=i.filter(g=>g.progress.uploadStarted||g.progress.preprocess||g.progress.postprocess),l=i.filter(g=>g.progress.uploadStarted),u=i.filter(g=>g.isPaused),c=i.filter(g=>g.progress.uploadComplete),d=i.filter(g=>g.error),h=o.filter(g=>!g.isPaused),f=i.filter(g=>g.progress.preprocess||g.progress.postprocess);return{newFiles:a,startedFiles:s,uploadStartedFiles:l,pausedFiles:u,completeFiles:c,erroredFiles:d,inProgressFiles:o,inProgressNotPausedFiles:h,processingFiles:f,isUploadStarted:l.length>0,isAllComplete:n===100&&c.length===i.length&&f.length===0,isAllErrored:!!r&&d.length===i.length,isAllPaused:o.length!==0&&u.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:i.some(g=>g.isGhost)}}validateRestrictions(t,n){try{return Hn(this,Xk)[Xk](t,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(t){const{files:n}=this.getState();return!(!n[t]||n[t].isGhost)}addFile(t){Hn(this,BA)[BA](t);const{files:n}=this.getState();let r=Hn(this,FA)[FA](n,t);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),Hn(this,NA)[NA](),r.id}addFiles(t){Hn(this,BA)[BA]();const n={...this.getState().files},r=[],i=[];for(let o=0;o<t.length;o++)try{let a=Hn(this,FA)[FA](n,t[o]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:t[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||i.push(a)}if(this.setState({files:n}),r.forEach(o=>{this.emit("file-added",o)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(o=>{this.log(`Added file: ${r[o].name}
|
|
id: ${r[o].id}
|
|
type: ${r[o].type}`)}),r.length>0&&Hn(this,NA)[NA](),i.length>0){let o=`Multiple errors occurred while adding files:
|
|
`;if(i.forEach(a=>{o+=`
|
|
* ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:o},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(i,o);{const a=new Error(o);throw a.errors=i,a}}}removeFiles(t,n){const{files:r,currentUploads:i}=this.getState(),o={...r},a={...i},s=Object.create(null);function l(d){return s[d]===void 0}t.forEach(d=>{r[d]&&(s[d]=r[d],delete o[d])}),Object.keys(a).forEach(d=>{const h=i[d].fileIDs.filter(l);h.length!==0?a[d]={...i[d],fileIDs:h}:delete a[d]});const u={currentUploads:a,files:o};Object.keys(o).length===0&&(u.allowNewUpload=!0,u.error=null,u.recoveredState=null),this.setState(u),this.calculateTotalProgress();const c=Object.keys(s);c.forEach(d=>{this.emit("file-removed",s[d],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const n=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!0};t[n]=r}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!1,error:null};t[n]=r}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter(i=>t[i].error);if(n.forEach(i=>{const o={...t[i],isPaused:!1,error:null};t[i]=o}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=Hn(this,Ff)[Ff](n,{forceAllowNewUpload:!0});return Hn(this,Nf)[Nf](r)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),n=Object.keys(t);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=Hn(this,Ff)[Ff]([t],{forceAllowNewUpload:!0});return Hn(this,Nf)[Nf](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,n){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(l=>l.progress.uploadStarted||l.progress.preprocess||l.progress.postprocess);if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=t.filter(l=>l.progress.bytesTotal!=null),r=t.filter(l=>l.progress.bytesTotal==null);if(n.length===0){const l=100*t.length,u=r.reduce((d,h)=>d+h.progress.percentage,0),c=Math.round(u/l*100);return void this.setState({totalProgress:c})}let i=n.reduce((l,u)=>l+u.progress.bytesTotal,0);const o=i/n.length;i+=o*r.length;let a=0;n.forEach(l=>{a+=l.progress.bytesUploaded}),r.forEach(l=>{a+=o*(l.progress.percentage||0)/100});let s=i===0?0:Math.round(a/i*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,n){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`);const r=new t(this,n),i=r.id;if(!i)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(i);if(o){const a=`Already found a plugin named '${o.id}'. Tried to use: '${i}'.
|
|
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return t.VERSION&&this.log(`Using ${i} v${t.VERSION}`),r.type in Hn(this,Ts)[Ts]?Hn(this,Ts)[Ts][r.type].push(r):Hn(this,Ts)[Ts][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(Hn(this,Ts)[Ts])){const r=n.find(i=>i.id===t);if(r!=null)return r}}[MEe](t){return Hn(this,Ts)[Ts][t]}iteratePlugins(t){Object.values(Hn(this,Ts)[Ts]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=Hn(this,Ts)[Ts][t.type],r=n.findIndex(o=>o.id===t.id);r!==-1&&n.splice(r,1);const i={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(i)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Hn(this,LA)[LA](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Hn(this,Hd)[Hd]),window.removeEventListener("offline",Hn(this,Hd)[Hd]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const i=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:i?t.message:t,details:i?t.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?Hn(this,Nf)[Nf](t):(Hn(this,hb)[hb](t),Promise.reject(new Error("Nonexistent upload")))}[LEe](){return Hn(this,Ff)[Ff](...arguments)}addResultData(t,n){if(!Hn(this,j6)[j6](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:r}=this.getState(),i={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:i}})}upload(){var t;(t=Hn(this,Ts)[Ts].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{Hn(this,F6)[F6](n),Hn(this,N6)[N6](n)}).catch(i=>{Hn(this,rs)[rs](i)}).then(()=>{const{currentUploads:i}=this.getState(),o=Object.values(i).flatMap(l=>l.fileIDs),a=[];Object.keys(n).forEach(l=>{const u=this.getFile(l);u.progress.uploadStarted||o.indexOf(l)!==-1||a.push(u.id)});const s=Hn(this,Ff)[Ff](a);return Hn(this,Nf)[Nf](s)}).catch(i=>{Hn(this,rs)[rs](i,{showInformer:!1})}))}}function nrn(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:o,allowedFileTypes:a}=this.opts.restrictions;if(o&&t.length+1>o)throw new gp(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(a&&!a.some(s=>s.indexOf("/")>-1?!!e.type&&Znn(e.type.replace(/;.*?$/,""),s):!(s[0]!=="."||!e.extension)&&e.extension.toLowerCase()===s.substr(1).toLowerCase())){const s=a.join(", ");throw new gp(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(i&&e.size!=null){let s=0;if(s+=e.size,t.forEach(l=>{s+=l.size}),s>i)throw new gp(this.i18n("exceedsSize",{size:M6(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new gp(this.i18n("exceedsSize",{size:M6(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new gp(this.i18n("inferiorSize",{size:M6(r)}))}function rrn(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new gp(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function irn(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],i=[];for(let o=0;o<t.length;o++)if(!n.call(e.meta,t[o])||e.meta[t[o]]===""){const a=new gp(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(a),i.push(t[o]),Hn(this,rs)[rs](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function orn(e){const t=Object.keys(e).flatMap(n=>{const r=this.getFile(n);return Hn(this,CE)[CE](r)});if(t.length)throw new trn(t,`${this.i18n("missingRequiredMetaField")}`)}function arn(e,t){let{showInformer:n=!0,file:r=null,throwErr:i=!0}=t===void 0?{}:t;const o=typeof e=="object"?e.message:e,a=typeof e=="object"&&e.details?e.details:"";let s=o;if(a&&(s+=` ${a}`),e.isRestriction?(this.log(s),this.emit("restriction-failed",r,e)):this.log(s,"error"),n&&this.info({message:o,details:a},"error",this.opts.infoTimeout),i)throw typeof e=="object"?e:new Error(e)}function srn(e){const{allowNewUpload:t}=this.getState();t===!1&&Hn(this,rs)[rs](new gp(this.i18n("noMoreFilesAllowed")),{file:e})}function lrn(e,t){const n=function(d){var h;if(d.type)return d.type;const f=d.name?(h=Yce(d.name).extension)==null?void 0:h.toLowerCase():null;return f&&f in Kce?Kce[f]:"application/octet-stream"}(t),r=function(d,h){return h.name?h.name:d.split("/")[0]==="image"?`${d.split("/")[0]}.${d.split("/")[1]}`:"noname"}(n,t),i=Yce(r).extension,o=!!t.isRemote,a=function(d){let h="uppy";return typeof d.name=="string"&&(h+=`-${qce(d.name.toLowerCase())}`),d.type!==void 0&&(h+=`-${d.type}`),d.meta&&typeof d.meta.relativePath=="string"&&(h+=`-${qce(d.meta.relativePath.toLowerCase())}`),d.data.size!==void 0&&(h+=`-${d.data.size}`),d.data.lastModified!==void 0&&(h+=`-${d.data.lastModified}`),h}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const d=new gp(this.i18n("noDuplicates",{fileName:r}));Hn(this,rs)[rs](d,{file:t})}const s=t.meta||{};s.name=r,s.type=n;const l=Number.isFinite(t.data.size)?t.data.size:null;let u={source:t.source||"",id:a,name:r,extension:i||"",meta:{...this.getState().meta,...s},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:o,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(u,e);c===!1?Hn(this,rs)[rs](new gp("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof c=="object"&&c!==null&&(u=c);try{const d=Object.keys(e).map(h=>e[h]);Hn(this,Xk)[Xk](u,d)}catch(d){Hn(this,rs)[rs](d,{file:u})}return u}function urn(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function crn(){const e=(t,n,r)=>{let i=t.message||"Unknown error";t.details&&(i+=` ${t.details}`),this.setState({error:i}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:i,response:r})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),typeof n=="object"&&n.message){const i=new Error(n.message);i.details=n.message,n.details&&(i.details+=` ${n.details}`),i.message=this.i18n("failedToUpload",{file:t.name}),Hn(this,rs)[rs](i,{throwErr:!1})}else Hn(this,rs)[rs](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,n)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...r,postprocess:Hn(this,eg)[eg].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("preprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("postprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&Hn(this,CE)[CE](t)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",Hn(this,Hd)[Hd]),window.addEventListener("offline",Hn(this,Hd)[Hd]),setTimeout(Hn(this,Hd)[Hd],3e3))}function drn(e,t){t===void 0&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const o=qnn();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...i,[o]:{fileIDs:e,step:0,result:{}}}}),o}function hrn(e){const{currentUploads:t}=this.getState();return t[e]}function prn(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function frn(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,i=[...Hn(this,eb)[eb],...Hn(this,tb)[tb],...Hn(this,eg)[eg]];try{for(let a=r;a<i.length&&n;a++){const s=i[a],l={...n,step:a};this.setState({currentUploads:{...t,[e]:l}}),await s(l.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),Hn(this,hb)[hb](e),a}if(n){n.fileIDs.forEach(u=>{const c=this.getFile(u);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=n.fileIDs.map(u=>this.getFile(u)),s=a.filter(u=>!u.error),l=a.filter(u=>u.error);await this.addResultData(e,{successful:s,failed:l,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let o;return n&&(o=n.result,this.emit("complete",o),Hn(this,hb)[hb](e)),o==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}BEe.VERSION="2.1.3";var FEe=BEe,grn=T1(function(e,t){var n,r,i,o,a,s,l,u,c={},d=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(U,K){for(var J in K)U[J]=K[J];return U}function g(U){var K=U.parentNode;K&&K.removeChild(U)}function b(U,K,J){var ue,ee,N,q={};for(N in K)N=="key"?ue=K[N]:N=="ref"?ee=K[N]:q[N]=K[N];if(arguments.length>2&&(q.children=arguments.length>3?n.call(arguments,2):J),typeof U=="function"&&U.defaultProps!=null)for(N in U.defaultProps)q[N]===void 0&&(q[N]=U.defaultProps[N]);return v(U,q,ue,ee,null)}function v(U,K,J,ue,ee){var N={type:U,props:K,key:J,ref:ue,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:ee??++i};return ee==null&&r.vnode!=null&&r.vnode(N),N}function m(U){return U.children}function w(U,K){this.props=U,this.context=K}function k(U,K){if(K==null)return U.__?k(U.__,U.__.__k.indexOf(U)+1):null;for(var J;K<U.__k.length;K++)if((J=U.__k[K])!=null&&J.__e!=null)return J.__e;return typeof U.type=="function"?k(U):null}function T(U){var K,J;if((U=U.__)!=null&&U.__c!=null){for(U.__e=U.__c.base=null,K=0;K<U.__k.length;K++)if((J=U.__k[K])!=null&&J.__e!=null){U.__e=U.__c.base=J.__e;break}return T(U)}}function S(U){(!U.__d&&(U.__d=!0)&&a.push(U)&&!I.__r++||l!==r.debounceRendering)&&((l=r.debounceRendering)||s)(I)}function I(){for(var U;I.__r=a.length;)U=a.sort(function(K,J){return K.__v.__b-J.__v.__b}),a=[],U.some(function(K){var J,ue,ee,N,q,G;K.__d&&(q=(N=(J=K).__v).__e,(G=J.__P)&&(ue=[],(ee=f({},N)).__v=N.__v+1,x(G,N,ee,J.__n,G.ownerSVGElement!==void 0,N.__h!=null?[q]:null,ue,q??k(N),N.__h),P(ue,N),N.__e!=q&&T(N)))})}function O(U,K,J,ue,ee,N,q,G,ne,le){var oe,ve,de,ae,be,ie,ce,pe=ue&&ue.__k||d,X=pe.length;for(J.__k=[],oe=0;oe<K.length;oe++)if((ae=J.__k[oe]=(ae=K[oe])==null||typeof ae=="boolean"?null:typeof ae=="string"||typeof ae=="number"||typeof ae=="bigint"?v(null,ae,null,null,ae):Array.isArray(ae)?v(m,{children:ae},null,null,null):ae.__b>0?v(ae.type,ae.props,ae.key,null,ae.__v):ae)!=null){if(ae.__=J,ae.__b=J.__b+1,(de=pe[oe])===null||de&&ae.key==de.key&&ae.type===de.type)pe[oe]=void 0;else for(ve=0;ve<X;ve++){if((de=pe[ve])&&ae.key==de.key&&ae.type===de.type){pe[ve]=void 0;break}de=null}x(U,ae,de=de||c,ee,N,q,G,ne,le),be=ae.__e,(ve=ae.ref)&&de.ref!=ve&&(ce||(ce=[]),de.ref&&ce.push(de.ref,null,ae),ce.push(ve,ae.__c||be,ae)),be!=null?(ie==null&&(ie=be),typeof ae.type=="function"&&ae.__k===de.__k?ae.__d=ne=y(ae,ne,U):ne=_(U,ae,de,pe,be,ne),typeof J.type=="function"&&(J.__d=ne)):ne&&de.__e==ne&&ne.parentNode!=U&&(ne=k(de))}for(J.__e=ie,oe=X;oe--;)pe[oe]!=null&&(typeof J.type=="function"&&pe[oe].__e!=null&&pe[oe].__e==J.__d&&(J.__d=k(ue,oe+1)),V(pe[oe],pe[oe]));if(ce)for(oe=0;oe<ce.length;oe++)L(ce[oe],ce[++oe],ce[++oe])}function y(U,K,J){for(var ue,ee=U.__k,N=0;ee&&N<ee.length;N++)(ue=ee[N])&&(ue.__=U,K=typeof ue.type=="function"?y(ue,K,J):_(J,ue,ue,ee,ue.__e,K));return K}function _(U,K,J,ue,ee,N){var q,G,ne;if(K.__d!==void 0)q=K.__d,K.__d=void 0;else if(J==null||ee!=N||ee.parentNode==null)e:if(N==null||N.parentNode!==U)U.appendChild(ee),q=null;else{for(G=N,ne=0;(G=G.nextSibling)&&ne<ue.length;ne+=2)if(G==ee)break e;U.insertBefore(ee,N),q=N}return q!==void 0?q:ee.nextSibling}function A(U,K,J){K[0]==="-"?U.setProperty(K,J):U[K]=J==null?"":typeof J!="number"||h.test(K)?J:J+"px"}function R(U,K,J,ue,ee){var N;e:if(K==="style")if(typeof J=="string")U.style.cssText=J;else{if(typeof ue=="string"&&(U.style.cssText=ue=""),ue)for(K in ue)J&&K in J||A(U.style,K,"");if(J)for(K in J)ue&&J[K]===ue[K]||A(U.style,K,J[K])}else if(K[0]==="o"&&K[1]==="n")N=K!==(K=K.replace(/Capture$/,"")),K=K.toLowerCase()in U?K.toLowerCase().slice(2):K.slice(2),U.l||(U.l={}),U.l[K+N]=J,J?ue||U.addEventListener(K,N?C:D,N):U.removeEventListener(K,N?C:D,N);else if(K!=="dangerouslySetInnerHTML"){if(ee)K=K.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(K!=="href"&&K!=="list"&&K!=="form"&&K!=="tabIndex"&&K!=="download"&&K in U)try{U[K]=J??"";break e}catch{}typeof J=="function"||(J!=null&&(J!==!1||K[0]==="a"&&K[1]==="r")?U.setAttribute(K,J):U.removeAttribute(K))}}function D(U){this.l[U.type+!1](r.event?r.event(U):U)}function C(U){this.l[U.type+!0](r.event?r.event(U):U)}function x(U,K,J,ue,ee,N,q,G,ne){var le,oe,ve,de,ae,be,ie,ce,pe,X,Z,Y=K.type;if(K.constructor!==void 0)return null;J.__h!=null&&(ne=J.__h,G=K.__e=J.__e,K.__h=null,N=[G]),(le=r.__b)&&le(K);try{e:if(typeof Y=="function"){if(ce=K.props,pe=(le=Y.contextType)&&ue[le.__c],X=le?pe?pe.props.value:le.__:ue,J.__c?ie=(oe=K.__c=J.__c).__=oe.__E:("prototype"in Y&&Y.prototype.render?K.__c=oe=new Y(ce,X):(K.__c=oe=new w(ce,X),oe.constructor=Y,oe.render=H),pe&&pe.sub(oe),oe.props=ce,oe.state||(oe.state={}),oe.context=X,oe.__n=ue,ve=oe.__d=!0,oe.__h=[]),oe.__s==null&&(oe.__s=oe.state),Y.getDerivedStateFromProps!=null&&(oe.__s==oe.state&&(oe.__s=f({},oe.__s)),f(oe.__s,Y.getDerivedStateFromProps(ce,oe.__s))),de=oe.props,ae=oe.state,ve)Y.getDerivedStateFromProps==null&&oe.componentWillMount!=null&&oe.componentWillMount(),oe.componentDidMount!=null&&oe.__h.push(oe.componentDidMount);else{if(Y.getDerivedStateFromProps==null&&ce!==de&&oe.componentWillReceiveProps!=null&&oe.componentWillReceiveProps(ce,X),!oe.__e&&oe.shouldComponentUpdate!=null&&oe.shouldComponentUpdate(ce,oe.__s,X)===!1||K.__v===J.__v){oe.props=ce,oe.state=oe.__s,K.__v!==J.__v&&(oe.__d=!1),oe.__v=K,K.__e=J.__e,K.__k=J.__k,K.__k.forEach(function(se){se&&(se.__=K)}),oe.__h.length&&q.push(oe);break e}oe.componentWillUpdate!=null&&oe.componentWillUpdate(ce,oe.__s,X),oe.componentDidUpdate!=null&&oe.__h.push(function(){oe.componentDidUpdate(de,ae,be)})}oe.context=X,oe.props=ce,oe.state=oe.__s,(le=r.__r)&&le(K),oe.__d=!1,oe.__v=K,oe.__P=U,le=oe.render(oe.props,oe.state,oe.context),oe.state=oe.__s,oe.getChildContext!=null&&(ue=f(f({},ue),oe.getChildContext())),ve||oe.getSnapshotBeforeUpdate==null||(be=oe.getSnapshotBeforeUpdate(de,ae)),Z=le!=null&&le.type===m&&le.key==null?le.props.children:le,O(U,Array.isArray(Z)?Z:[Z],K,J,ue,ee,N,q,G,ne),oe.base=K.__e,K.__h=null,oe.__h.length&&q.push(oe),ie&&(oe.__E=oe.__=null),oe.__e=!1}else N==null&&K.__v===J.__v?(K.__k=J.__k,K.__e=J.__e):K.__e=$(J.__e,K,J,ue,ee,N,q,ne);(le=r.diffed)&&le(K)}catch(se){K.__v=null,(ne||N!=null)&&(K.__e=G,K.__h=!!ne,N[N.indexOf(G)]=null),r.__e(se,K,J)}}function P(U,K){r.__c&&r.__c(K,U),U.some(function(J){try{U=J.__h,J.__h=[],U.some(function(ue){ue.call(J)})}catch(ue){r.__e(ue,J.__v)}})}function $(U,K,J,ue,ee,N,q,G){var ne,le,oe,ve=J.props,de=K.props,ae=K.type,be=0;if(ae==="svg"&&(ee=!0),N!=null){for(;be<N.length;be++)if((ne=N[be])&&"setAttribute"in ne==!!ae&&(ae?ne.localName===ae:ne.nodeType===3)){U=ne,N[be]=null;break}}if(U==null){if(ae===null)return document.createTextNode(de);U=ee?document.createElementNS("http://www.w3.org/2000/svg",ae):document.createElement(ae,de.is&&de),N=null,G=!1}if(ae===null)ve===de||G&&U.data===de||(U.data=de);else{if(N=N&&n.call(U.childNodes),le=(ve=J.props||c).dangerouslySetInnerHTML,oe=de.dangerouslySetInnerHTML,!G){if(N!=null)for(ve={},be=0;be<U.attributes.length;be++)ve[U.attributes[be].name]=U.attributes[be].value;(oe||le)&&(oe&&(le&&oe.__html==le.__html||oe.__html===U.innerHTML)||(U.innerHTML=oe&&oe.__html||""))}if(function(ie,ce,pe,X,Z){var Y;for(Y in pe)Y==="children"||Y==="key"||Y in ce||R(ie,Y,null,pe[Y],X);for(Y in ce)Z&&typeof ce[Y]!="function"||Y==="children"||Y==="key"||Y==="value"||Y==="checked"||pe[Y]===ce[Y]||R(ie,Y,ce[Y],pe[Y],X)}(U,de,ve,ee,G),oe)K.__k=[];else if(be=K.props.children,O(U,Array.isArray(be)?be:[be],K,J,ue,ee&&ae!=="foreignObject",N,q,N?N[0]:J.__k&&k(J,0),G),N!=null)for(be=N.length;be--;)N[be]!=null&&g(N[be]);G||("value"in de&&(be=de.value)!==void 0&&(be!==ve.value||be!==U.value||ae==="progress"&&!be)&&R(U,"value",be,ve.value,!1),"checked"in de&&(be=de.checked)!==void 0&&be!==U.checked&&R(U,"checked",be,ve.checked,!1))}return U}function L(U,K,J){try{typeof U=="function"?U(K):U.current=K}catch(ue){r.__e(ue,J)}}function V(U,K,J){var ue,ee;if(r.unmount&&r.unmount(U),(ue=U.ref)&&(ue.current&&ue.current!==U.__e||L(ue,null,K)),(ue=U.__c)!=null){if(ue.componentWillUnmount)try{ue.componentWillUnmount()}catch(N){r.__e(N,K)}ue.base=ue.__P=null}if(ue=U.__k)for(ee=0;ee<ue.length;ee++)ue[ee]&&V(ue[ee],K,typeof U.type!="function");J||U.__e==null||g(U.__e),U.__e=U.__d=void 0}function H(U,K,J){return this.constructor(U,J)}function Q(U,K,J){var ue,ee,N;r.__&&r.__(U,K),ee=(ue=typeof J=="function")?null:J&&J.__k||K.__k,N=[],x(K,U=(!ue&&J||K).__k=b(m,null,[U]),ee||c,c,K.ownerSVGElement!==void 0,!ue&&J?[J]:ee?null:K.firstChild?n.call(K.childNodes):null,N,!ue&&J?J:ee?ee.__e:K.firstChild,ue),P(N,U)}n=d.slice,r={__e:function(U,K){for(var J,ue,ee;K=K.__;)if((J=K.__c)&&!J.__)try{if((ue=J.constructor)&&ue.getDerivedStateFromError!=null&&(J.setState(ue.getDerivedStateFromError(U)),ee=J.__d),J.componentDidCatch!=null&&(J.componentDidCatch(U),ee=J.__d),ee)return J.__E=J}catch(N){U=N}throw U}},i=0,o=function(U){return U!=null&&U.constructor===void 0},w.prototype.setState=function(U,K){var J;J=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=f({},this.state),typeof U=="function"&&(U=U(f({},J),this.props)),U&&f(J,U),U!=null&&this.__v&&(K&&this.__h.push(K),S(this))},w.prototype.forceUpdate=function(U){this.__v&&(this.__e=!0,U&&this.__h.push(U),S(this))},w.prototype.render=m,a=[],s=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,I.__r=0,u=0,t.Component=w,t.Fragment=m,t.cloneElement=function(U,K,J){var ue,ee,N,q=f({},U.props);for(N in K)N=="key"?ue=K[N]:N=="ref"?ee=K[N]:q[N]=K[N];return arguments.length>2&&(q.children=arguments.length>3?n.call(arguments,2):J),v(U.type,q,ue||U.key,ee||U.ref,null)},t.createContext=function(U,K){var J={__c:K="__cC"+u++,__:U,Consumer:function(ue,ee){return ue.children(ee)},Provider:function(ue){var ee,N;return this.getChildContext||(ee=[],(N={})[K]=this,this.getChildContext=function(){return N},this.shouldComponentUpdate=function(q){this.props.value!==q.value&&ee.some(S)},this.sub=function(q){ee.push(q);var G=q.componentWillUnmount;q.componentWillUnmount=function(){ee.splice(ee.indexOf(q),1),G&&G.call(q)}}),ue.children}};return J.Provider.__=J.Consumer.contextType=J},t.createElement=b,t.createRef=function(){return{current:null}},t.h=b,t.hydrate=function U(K,J){Q(K,J,U)},t.isValidElement=o,t.options=r,t.render=Q,t.toChildArray=function U(K,J){return J=J||[],K==null||typeof K=="boolean"||(Array.isArray(K)?K.some(function(ue){U(ue,J)}):J.push(K)),J}}),mrn=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((n=e)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},tK=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new _Ee([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function Jce(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var vrn=0;function yrn(e){return"__private_"+vrn+++"_"+e}const{render:ede}=grn;var VA=yrn("updateUI");class nK extends tK{constructor(){super(...arguments),Object.defineProperty(this,VA,{writable:!0,value:void 0})}mount(t,n){const r=n.id,i=mrn(t);if(i){this.isTargetDOMEl=!0;const s=document.createDocumentFragment();return Jce(this,VA)[VA]=function(l){let u=null,c=null;return function(){for(var d=arguments.length,h=new Array(d),f=0;f<d;f++)h[f]=arguments[f];return c=h,u||(u=Promise.resolve().then(()=>(u=null,l(...c)))),u}}(l=>{this.uppy.getPlugin(this.id)&&(ede(this.render(l),s),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=""),ede(this.render(this.uppy.getState()),s),this.el=s.firstElementChild,i.appendChild(s),this.onMount(),this.el}let o;if(typeof t=="object"&&t instanceof nK)o=t;else if(typeof t=="function"){const s=t;this.uppy.iteratePlugins(l=>{if(l instanceof s)return o=l,!1})}if(o)return this.uppy.log(`Installing ${r} to ${o.id}`),this.parent=o,this.el=o.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw a+=typeof t=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(t){var n,r;this.el!=null&&((n=(r=Jce(this,VA))[VA])==null||n.call(r,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var brn=nK;const{debugLogger:wrn}=REe;var sk=FEe,Crn=FEe,Orn=brn,xrn=tK,Srn=wrn;sk.Uppy=Crn,sk.UIPlugin=Orn,sk.BasePlugin=xrn,sk.debugLogger=Srn;class Arn extends Error{constructor(t,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=n}}var rK=Arn,W6=function(){return fetch(...arguments).catch(e=>{throw e.name==="AbortError"?e:new rK(e)})};class Irn extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var nR,Im,np,km,tde,krn=Irn;function Jh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ern=0;function H6(e){return"__private_"+Ern+++"_"+e}async function z6(e){if(e.status===401)throw new krn;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const r=await t;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return t}var Z6=(Im=H6("getPostResponseFunc"),np=H6("getUrl"),km=H6("errorHandler"),tde=nR=class NEe{constructor(t,n){Object.defineProperty(this,km,{value:Trn}),Object.defineProperty(this,np,{value:_rn}),Object.defineProperty(this,Im,{writable:!0,value:r=>i=>r?i:this.onReceiveResponse(i)}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),n=this.opts.companionUrl;return(t&&t[n]?t[n]:n).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...NEe.defaultHeaders,...t})}onReceiveResponse(t){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:i}=t;return i.has("i-am")&&i.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:i.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Jh(this,np)[np](t),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then(n=>{let[r,i]=n;return Object.keys(i).forEach(o=>{r.includes(o.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${o}`),delete i[o])}),i})}get(t,n){return this.preflightAndHeaders(t).then(r=>W6(Jh(this,np)[np](t),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(Jh(this,Im)[Im](n)).then(z6).catch(Jh(this,km)[km]("get",t))}post(t,n,r){const i="post";return this.preflightAndHeaders(t).then(o=>W6(Jh(this,np)[np](t),{method:i,headers:o,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(Jh(this,Im)[Im](r)).then(z6).catch(Jh(this,km)[km](i,t))}delete(t,n,r){const i="delete";return this.preflightAndHeaders(t).then(o=>W6(`${this.hostname}/${t}`,{method:i,headers:o,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(Jh(this,Im)[Im](r)).then(z6).catch(Jh(this,km)[km](i,t))}},nR.VERSION="2.0.4",nR.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${nR.VERSION}`},tde);function _rn(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Trn(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){const i=new Error(`Could not ${e} ${Jh(this,np)[np](t)}`);i.cause=n,n=i}return Promise.reject(n)}}var Prn={setItem:(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise(t=>{localStorage.removeItem(e),t()})},Yh,Em,_c,Gs,rR;let nde,rde;function Fa(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Drn=0;function jA(e){return"__private_"+Drn+++"_"+e}var Rrn=(Yh=jA("queued"),Em=jA("emitter"),_c=jA("isOpen"),Gs=jA("socket"),rR=jA("handleMessage"),nde=Symbol.for("uppy test: getSocket"),rde=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,Yh,{writable:!0,value:[]}),Object.defineProperty(this,Em,{writable:!0,value:TEe()}),Object.defineProperty(this,_c,{writable:!0,value:!1}),Object.defineProperty(this,Gs,{writable:!0,value:void 0}),Object.defineProperty(this,rR,{writable:!0,value:t=>{try{const n=JSON.parse(t.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return Fa(this,_c)[_c]}[nde](){return Fa(this,Gs)[Gs]}[rde](){return Fa(this,Yh)[Yh]}open(){Fa(this,Gs)[Gs]=new WebSocket(this.opts.target),Fa(this,Gs)[Gs].onopen=()=>{for(Fa(this,_c)[_c]=!0;Fa(this,Yh)[Yh].length>0&&Fa(this,_c)[_c];){const e=Fa(this,Yh)[Yh].shift();this.send(e.action,e.payload)}},Fa(this,Gs)[Gs].onclose=()=>{Fa(this,_c)[_c]=!1},Fa(this,Gs)[Gs].onmessage=Fa(this,rR)[rR]}close(){var e;(e=Fa(this,Gs)[Gs])==null||e.close()}send(e,t){Fa(this,_c)[_c]?Fa(this,Gs)[Gs].send(JSON.stringify({action:e,payload:t})):Fa(this,Yh)[Yh].push({action:e,payload:t})}on(e,t){Fa(this,Em)[Em].on(e,t)}emit(e,t){Fa(this,Em)[Em].emit(e,t)}once(e,t){Fa(this,Em)[Em].once(e,t)}}),$rn={RequestClient:Z6,Provider:class extends Z6{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const r=t.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||Prn}},SearchProvider:class extends Z6{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:Rrn},_m,Ww,Mrn=u1(function(e,t,n){const{progress:r,bytesUploaded:i,bytesTotal:o}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:i,bytesTotal:o}))},300,{leading:!0,trailing:!0});function WA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Lrn=0;function ide(e){return"__private_"+Lrn+++"_"+e}var ode=(_m=ide("emitter"),Ww=ide("events"),class{constructor(e){Object.defineProperty(this,_m,{writable:!0,value:void 0}),Object.defineProperty(this,Ww,{writable:!0,value:[]}),WA(this,_m)[_m]=e}on(e,t){return WA(this,Ww)[Ww].push([e,t]),WA(this,_m)[_m].on(e,t)}remove(){for(const[e,t]of WA(this,Ww)[Ww].splice(0))WA(this,_m)[_m].off(e,t)}});function Tc(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Brn=0;function yB(e){return"__private_"+Brn+++"_"+e}var Vf=yB("aliveTimer"),ky=yB("isDone"),HA=yB("onTimedOut"),Ey=yB("timeout"),ade=class{constructor(e,t){Object.defineProperty(this,Vf,{writable:!0,value:void 0}),Object.defineProperty(this,ky,{writable:!0,value:!1}),Object.defineProperty(this,HA,{writable:!0,value:void 0}),Object.defineProperty(this,Ey,{writable:!0,value:void 0}),Tc(this,Ey)[Ey]=e,Tc(this,HA)[HA]=t}progress(){Tc(this,ky)[ky]||Tc(this,Ey)[Ey]>0&&(clearTimeout(Tc(this,Vf)[Vf]),Tc(this,Vf)[Vf]=setTimeout(Tc(this,HA)[HA],Tc(this,Ey)[Ey]))}done(){Tc(this,ky)[ky]||(clearTimeout(Tc(this,Vf)[Vf]),Tc(this,Vf)[Vf]=null,Tc(this,ky)[ky]=!0)}};function Wa(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Frn=0;function M1(e){return"__private_"+Frn+++"_"+e}function Nrn(){return new Error("Cancelled")}var zu=M1("activeRequests"),Pl=M1("queuedHandlers"),Yk=M1("call"),lk=M1("queueNext"),Gz=M1("next"),G6=M1("queue"),Qz=M1("dequeue");function Vrn(e){Wa(this,zu)[zu]+=1;let t,n=!1;try{t=e()}catch(r){throw Wa(this,zu)[zu]-=1,r}return{abort:()=>{n||(n=!0,Wa(this,zu)[zu]-=1,t(),Wa(this,lk)[lk]())},done:()=>{n||(n=!0,Wa(this,zu)[zu]-=1,Wa(this,lk)[lk]())}}}function jrn(){queueMicrotask(()=>Wa(this,Gz)[Gz]())}function Wrn(){if(Wa(this,zu)[zu]>=this.limit||Wa(this,Pl)[Pl].length===0)return;const e=Wa(this,Pl)[Pl].shift(),t=Wa(this,Yk)[Yk](e.fn);e.abort=t.abort,e.done=t.done}function Hrn(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Wa(this,Qz)[Qz](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Wa(this,Pl)[Pl].findIndex(i=>n.priority>i.priority);return r===-1?Wa(this,Pl)[Pl].push(n):Wa(this,Pl)[Pl].splice(r,0,n),n}function zrn(e){const t=Wa(this,Pl)[Pl].indexOf(e);t!==-1&&Wa(this,Pl)[Pl].splice(t,1)}var Zrn={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,Qz,{value:zrn}),Object.defineProperty(this,G6,{value:Hrn}),Object.defineProperty(this,Gz,{value:Wrn}),Object.defineProperty(this,lk,{value:jrn}),Object.defineProperty(this,Yk,{value:Vrn}),Object.defineProperty(this,zu,{writable:!0,value:0}),Object.defineProperty(this,Pl,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return Wa(this,zu)[zu]<this.limit?Wa(this,Yk)[Yk](e):Wa(this,G6)[G6](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];let a;const s=new Promise((l,u)=>{a=n.run(()=>{let c,d;try{d=Promise.resolve(e(...i))}catch(h){d=Promise.reject(h)}return d.then(h=>{c?u(c):(a.done(),l(h))},h=>{c?u(c):(a.done(),u(h))}),()=>{c=Nrn()}},t)});return s.abort=()=>{a.abort()},s}}},internalRateLimitedQueue:Symbol("__queue")},sde,lde,VEe=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},Grn={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Qrn}=$Ee,{Provider:Urn,RequestClient:Xrn,Socket:Yrn}=$rn,{RateLimitedQueue:Krn,internalRateLimitedQueue:Q6}=Zrn;function ude(e,t){let n=t;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),VEe(e)?(n=new rK(n,e),n):(n.request=e,n)}function cde(e){return e.data.slice(0,e.data.size,e.meta.type)}var qrn=(lde=sde=class extends tK{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Grn;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let i={};try{i=JSON.parse(r)}catch(o){e.log(o)}return i},getResponseError(r,i){let o=new Error("Upload error");return VEe(i)&&(o=new rK(o,i)),o},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Q6 in this.opts?this.requests=this.opts[Q6]:this.requests=new Krn(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof n=="function"?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(r=>{e.append(r,t[r])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=cde(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach(i=>{const o=this.getOptions(i),a=cde(i);i.name?n.append(o.fieldName,a,i.name):n.append(o.fieldName,a)}),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise((i,o)=>{this.uppy.emit("upload-started",e);const a=r.formData?this.createFormDataUpload(e,r):e.data,s=new XMLHttpRequest;this.uploaderEvents[e.id]=new ode(this.uppy);const l=new ade(r.timeout,()=>{s.abort(),c.done();const d=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,d),o(d)}),u=Qrn();s.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${u} started`)}),s.upload.addEventListener("progress",d=>{this.uppy.log(`[XHRUpload] ${u} progress: ${d.loaded} / ${d.total}`),l.progress(),d.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:d.loaded,bytesTotal:d.total})}),s.addEventListener("load",d=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),l.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(d.target.status,s.responseText,s)){const b=r.getResponseData(s.responseText,s),v=b[r.responseUrlFieldName],m={status:d.target.status,body:b,uploadURL:v};return this.uppy.emit("upload-success",e,m),v&&this.uppy.log(`Download ${e.name} from ${v}`),i(e)}const h=r.getResponseData(s.responseText,s),f=ude(s,r.getResponseError(s.responseText,s)),g={status:d.target.status,body:h};return this.uppy.emit("upload-error",e,f,g),o(f)}),s.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${u} errored`),l.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const d=ude(s,r.getResponseError(s.responseText,s));return this.uppy.emit("upload-error",e,d),o(d)}),s.open(r.method.toUpperCase(),r.endpoint,!0),s.withCredentials=r.withCredentials,r.responseType!==""&&(s.responseType=r.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",e);const d=this.getOptions(e);return Object.keys(d.headers).forEach(h=>{s.setRequestHeader(h,d.headers[h])}),s.send(a),()=>{l.done(),s.abort()}});this.onFileRemove(e.id,()=>{c.abort(),o(new Error("File removed"))}),this.onCancelAll(e.id,()=>{c.abort(),o(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((n,r)=>{this.uppy.emit("upload-started",e);const i={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(o=>{i[o]=e.meta[o]}),new(e.remote.providerOptions.provider?Urn:Xrn)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:i,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then(o=>{const{token:a}=o,s=function(c){const d=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${d}`}(e.remote.companionUrl),l=new Yrn({target:`${s}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new ode(this.uppy),this.onFileRemove(e.id,()=>{l.send("cancel",{}),u.abort(),n(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{l.send("cancel",{}),u.abort(),n(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{l.send("pause",{}),l.send("resume",{})}),this.onRetryAll(e.id,()=>{l.send("pause",{}),l.send("resume",{})}),l.on("progress",c=>Mrn(this,c,e)),l.on("success",c=>{const d=t.getResponseData(c.response.responseText,c.response),h=d[t.responseUrlFieldName],f={status:c.response.status,body:d,uploadURL:h};return this.uppy.emit("upload-success",e,f),u.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()}),l.on("error",c=>{const d=c.response,h=d?t.getResponseError(d.responseText,d):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",e,h),u.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(h)});const u=this.requests.run(()=>(l.open(),e.isPaused&&l.send("pause",{}),()=>l.close()))}).catch(o=>{this.uppy.emit("upload-error",e,o),r(o)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:r}=this.opts,{method:i}=this.opts,o=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...o||{}}),s=new XMLHttpRequest,l=new ade(this.opts.timeout,()=>{s.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));u(c),n(c)}),u=c=>{e.forEach(d=>{this.uppy.emit("upload-error",d,c)})};s.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),l.progress()}),s.upload.addEventListener("progress",c=>{l.progress(),c.lengthComputable&&e.forEach(d=>{this.uppy.emit("upload-progress",d,{uploader:this,bytesUploaded:c.loaded/c.total*d.size,bytesTotal:d.size})})}),s.addEventListener("load",c=>{if(l.done(),this.opts.validateStatus(c.target.status,s.responseText,s)){const h=this.opts.getResponseData(s.responseText,s),f={status:c.target.status,body:h};return e.forEach(g=>{this.uppy.emit("upload-success",g,f)}),t()}const d=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return d.request=s,u(d),n(d)}),s.addEventListener("error",()=>{l.done();const c=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return u(c),n(c)}),this.uppy.on("cancel-all",()=>{l.done(),s.abort()}),s.open(i.toUpperCase(),r,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{s.setRequestHeader(c,this.opts.headers[c])}),s.send(a),e.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(e){const t=e.map((n,r)=>{const i=parseInt(r,10)+1,o=e.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,i,o):this.upload(n,i,o)});return function(n){const r=[],i=[];function o(s){r.push(s)}function a(s){i.push(s)}return Promise.all(n.map(s=>s.then(o,a))).then(()=>({successful:r,failed:i}))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",n=>{e===n.id&&t(n.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",n=>{e===n&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[Q6]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map(n=>this.uppy.getFile(n));if(this.opts.bundle){if(t.some(n=>n.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},sde.VERSION="2.0.6",lde),dde=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function eT(e){var t={exports:{}};return e(t,t.exports),t.exports}var Tm,s$,iR=function(e){return e&&e.Math==Math&&e},hn=iR(typeof globalThis=="object"&&globalThis)||iR(typeof window=="object"&&window)||iR(typeof self=="object"&&self)||iR(typeof dde=="object"&&dde)||function(){return this}()||Function("return this")(),Jrn=Object.defineProperty,iK=function(e,t){try{Jrn(hn,e,{value:t,configurable:!0,writable:!0})}catch{hn[e]=t}return t},Vv=hn["__core-js_shared__"]||iK("__core-js_shared__",{}),oK=eT(function(e){(e.exports=function(t,n){return Vv[t]||(Vv[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),jEe=Function.prototype,Uz=jEe.bind,Xz=jEe.call,ein=Uz&&Uz.bind(Xz),Zn=Uz?function(e){return e&&ein(Xz,e)}:function(e){return e&&function(){return Xz.apply(e,arguments)}},tin=hn.TypeError,pd=function(e){if(e==null)throw tin("Can't call method on "+e);return e},nin=hn.Object,L0=function(e){return nin(pd(e))},rin=Zn({}.hasOwnProperty),Ea=Object.hasOwn||function(e,t){return rin(L0(e),t)},iin=0,oin=Math.random(),ain=Zn(1 .toString),aK=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ain(++iin+oin,36)},Qi=function(e){return typeof e=="function"},sin=function(e){return Qi(e)?e:void 0},L1=function(e,t){return arguments.length<2?sin(hn[e]):hn[e]&&hn[e][t]},oO=L1("navigator","userAgent")||"",hde=hn.process,pde=hn.Deno,fde=hde&&hde.versions||pde&&pde.version,gde=fde&&fde.v8;gde&&(s$=(Tm=gde.split("."))[0]>0&&Tm[0]<4?1:+(Tm[0]+Tm[1])),!s$&&oO&&(!(Tm=oO.match(/Edge\/(\d+)/))||Tm[1]>=74)&&(Tm=oO.match(/Chrome\/(\d+)/))&&(s$=+Tm[1]);var OE=s$,Pi=function(e){try{return!!e()}catch{return!0}},Yz=!!Object.getOwnPropertySymbols&&!Pi(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&OE&&OE<41}),sK=Yz&&!Symbol.sham&&typeof Symbol.iterator=="symbol",zA=oK("wks"),kb=hn.Symbol,mde=kb&&kb.for,lin=sK?kb:kb&&kb.withoutSetter||aK,Yo=function(e){if(!Ea(zA,e)||!Yz&&typeof zA[e]!="string"){var t="Symbol."+e;Yz&&Ea(kb,e)?zA[e]=kb[e]:zA[e]=sK&&mde?mde(t):lin(t)}return zA[e]},WEe={};WEe[Yo("toStringTag")]="z";var lK=String(WEe)==="[object z]",ys=!Pi(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),bo=function(e){return typeof e=="object"?e!==null:Qi(e)},Kz=hn.document,uin=bo(Kz)&&bo(Kz.createElement),xE=function(e){return uin?Kz.createElement(e):{}},HEe=!ys&&!Pi(function(){return Object.defineProperty(xE("div"),"a",{get:function(){return 7}}).a!=7}),cin=hn.String,din=hn.TypeError,_a=function(e){if(bo(e))return e;throw din(cin(e)+" is not an object")},ZA=Function.prototype.call,fi=ZA.bind?ZA.bind(ZA):function(){return ZA.apply(ZA,arguments)},c1=Zn({}.isPrototypeOf),hin=hn.Object,U6=sK?function(e){return typeof e=="symbol"}:function(e){var t=L1("Symbol");return Qi(t)&&c1(t.prototype,hin(e))},pin=hn.String,bB=function(e){try{return pin(e)}catch{return"Object"}},fin=hn.TypeError,y0=function(e){if(Qi(e))return e;throw fin(bB(e)+" is not a function")},d1=function(e,t){var n=e[t];return n==null?void 0:y0(n)},gin=hn.TypeError,min=hn.TypeError,vin=Yo("toPrimitive"),uK=function(e){var t=function(n,r){if(!bo(n)||U6(n))return n;var i,o=d1(n,vin);if(o){if(i=fi(o,n,r),!bo(i)||U6(i))return i;throw min("Can't convert object to primitive value")}return function(a,s){var l,u;if(Qi(l=a.toString)&&!bo(u=fi(l,a))||Qi(l=a.valueOf)&&!bo(u=fi(l,a))||s!=="string")return u;throw gin("Can't convert object to primitive value")}(n,r)}(e,"string");return U6(t)?t:t+""},yin=hn.TypeError,vde=Object.defineProperty,xh={f:ys?vde:function(e,t,n){if(_a(e),t=uK(t),_a(n),HEe)try{return vde(e,t,n)}catch{}if("get"in n||"set"in n)throw yin("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},wB=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},nh=ys?function(e,t,n){return xh.f(e,t,wB(1,n))}:function(e,t,n){return e[t]=n,e},bin=Zn(Function.toString);Qi(Vv.inspectSource)||(Vv.inspectSource=function(e){return bin(e)});var h4,Kk,p4,CB=Vv.inspectSource,yde=hn.WeakMap,zEe=Qi(yde)&&/native code/.test(CB(yde)),bde=oK("keys"),cK=function(e){return bde[e]||(bde[e]=aK(e))},OB={},qz=hn.TypeError,win=hn.WeakMap;if(zEe||Vv.state){var _y=Vv.state||(Vv.state=new win),Cin=Zn(_y.get),wde=Zn(_y.has),Oin=Zn(_y.set);h4=function(e,t){if(wde(_y,e))throw new qz("Object already initialized");return t.facade=e,Oin(_y,e,t),t},Kk=function(e){return Cin(_y,e)||{}},p4=function(e){return wde(_y,e)}}else{var Hw=cK("state");OB[Hw]=!0,h4=function(e,t){if(Ea(e,Hw))throw new qz("Object already initialized");return t.facade=e,nh(e,Hw,t),t},Kk=function(e){return Ea(e,Hw)?e[Hw]:{}},p4=function(e){return Ea(e,Hw)}}var ul={set:h4,get:Kk,has:p4,enforce:function(e){return p4(e)?Kk(e):h4(e,{})},getterFor:function(e){return function(t){var n;if(!bo(t)||(n=Kk(t)).type!==e)throw qz("Incompatible receiver, "+e+" required");return n}}},ZEe=Function.prototype,xin=ys&&Object.getOwnPropertyDescriptor,X6=Ea(ZEe,"name"),Qx={EXISTS:X6,PROPER:X6&&(function(){}).name==="something",CONFIGURABLE:X6&&(!ys||ys&&xin(ZEe,"name").configurable)},pu=eT(function(e){var t=Qx.CONFIGURABLE,n=ul.get,r=ul.enforce,i=String(String).split("String");(e.exports=function(o,a,s,l){var u,c=!!l&&!!l.unsafe,d=!!l&&!!l.enumerable,h=!!l&&!!l.noTargetGet,f=l&&l.name!==void 0?l.name:a;Qi(s)&&(String(f).slice(0,7)==="Symbol("&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ea(s,"name")||t&&s.name!==f)&&nh(s,"name",f),(u=r(s)).source||(u.source=i.join(typeof f=="string"?f:""))),o!==hn?(c?!h&&o[a]&&(d=!0):delete o[a],d?o[a]=s:nh(o,a,s)):d?o[a]=s:iK(a,s)})(Function.prototype,"toString",function(){return Qi(this)&&n(this).source||CB(this)})}),Sin=Zn({}.toString),Ain=Zn("".slice),rh=function(e){return Ain(Sin(e),8,-1)},Iin=Yo("toStringTag"),kin=hn.Object,Ein=rh(function(){return arguments}())=="Arguments",xB=lK?rh:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=kin(e),Iin))=="string"?n:Ein?rh(t):(r=rh(t))=="Object"&&Qi(t.callee)?"Arguments":r},_in=lK?{}.toString:function(){return"[object "+xB(this)+"]"};lK||pu(Object.prototype,"toString",_in,{unsafe:!0});var f4={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},Y6=xE("span").classList,Cde=Y6&&Y6.constructor&&Y6.constructor.prototype,GEe=Cde===Object.prototype?void 0:Cde,Ode=Zn(Zn.bind),h1=function(e,t){return y0(e),t===void 0?e:Ode?Ode(e,t):function(){return e.apply(t,arguments)}},K6=hn.Object,Tin=Zn("".split),SB=Pi(function(){return!K6("z").propertyIsEnumerable(0)})?function(e){return rh(e)=="String"?Tin(e,""):K6(e)}:K6,Pin=Math.ceil,Din=Math.floor,tT=function(e){var t=+e;return t!=t||t===0?0:(t>0?Din:Pin)(t)},Rin=Math.min,Ux=function(e){return e>0?Rin(tT(e),9007199254740991):0},B1=function(e){return Ux(e.length)},g4=Array.isArray||function(e){return rh(e)=="Array"},QEe=function(){},$in=[],UEe=L1("Reflect","construct"),dK=/^\s*(?:class|function)\b/,Min=Zn(dK.exec),Lin=!dK.exec(QEe),GA=function(e){if(!Qi(e))return!1;try{return UEe(QEe,$in,e),!0}catch{return!1}},AB=!UEe||Pi(function(){var e;return GA(GA.call)||!GA(Object)||!GA(function(){e=!0})||e})?function(e){if(!Qi(e))return!1;switch(xB(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Lin||!!Min(dK,CB(e))}:GA,Bin=Yo("species"),xde=hn.Array,XEe=function(e,t){return new(function(n){var r;return g4(n)&&(r=n.constructor,(AB(r)&&(r===xde||g4(r.prototype))||bo(r)&&(r=r[Bin])===null)&&(r=void 0)),r===void 0?xde:r}(e))(t===0?0:t)},Sde=Zn([].push),Pm=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,u,c,d){for(var h,f,g=L0(l),b=SB(g),v=h1(u,c),m=B1(b),w=0,k=d||XEe,T=t?k(l,m):n||a?k(l,0):void 0;m>w;w++)if((s||w in b)&&(f=v(h=b[w],w,g),e))if(t)T[w]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:Sde(T,h)}else switch(e){case 4:return!1;case 7:Sde(T,h)}return o?-1:r||i?i:T}},Xx={forEach:Pm(0),map:Pm(1),filter:Pm(2),some:Pm(3),every:Pm(4),find:Pm(5),findIndex:Pm(6),filterReject:Pm(7)},YEe=function(e,t){var n=[][e];return!!n&&Pi(function(){n.call(null,t||function(){throw 1},1)})},Fin=Xx.forEach,q6=YEe("forEach")?[].forEach:function(e){return Fin(this,e,arguments.length>1?arguments[1]:void 0)},KEe=function(e){if(e&&e.forEach!==q6)try{nh(e,"forEach",q6)}catch{e.forEach=q6}};for(var J6 in f4)f4[J6]&&KEe(hn[J6]&&hn[J6].prototype);KEe(GEe);var Ade={}.propertyIsEnumerable,Ide=Object.getOwnPropertyDescriptor,Nin=Ide&&!Ade.call({1:2},1)?function(e){var t=Ide(this,e);return!!t&&t.enumerable}:Ade,qEe={f:Nin},B0=function(e){return SB(pd(e))},kde=Object.getOwnPropertyDescriptor,nT={f:ys?kde:function(e,t){if(e=B0(e),t=uK(t),HEe)try{return kde(e,t)}catch{}if(Ea(e,t))return wB(!fi(qEe.f,e,t),e[t])}},Vin=Math.max,jin=Math.min,ix=function(e,t){var n=tT(e);return n<0?Vin(n+t,0):jin(n,t)},Ede=function(e){return function(t,n,r){var i,o=B0(t),a=B1(o),s=ix(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},JEe={includes:Ede(!0),indexOf:Ede(!1)},Win=JEe.indexOf,_de=Zn([].push),e_e=function(e,t){var n,r=B0(e),i=0,o=[];for(n in r)!Ea(OB,n)&&Ea(r,n)&&_de(o,n);for(;t.length>i;)Ea(r,n=t[i++])&&(~Win(o,n)||_de(o,n));return o},m4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Hin=m4.concat("length","prototype"),SE={f:Object.getOwnPropertyNames||function(e){return e_e(e,Hin)}},t_e={f:Object.getOwnPropertySymbols},zin=Zn([].concat),Zin=L1("Reflect","ownKeys")||function(e){var t=SE.f(_a(e)),n=t_e.f;return n?zin(t,n(e)):t},Gin=function(e,t){for(var n=Zin(t),r=xh.f,i=nT.f,o=0;o<n.length;o++){var a=n[o];Ea(e,a)||r(e,a,i(t,a))}},Qin=/#|\.prototype\./,rT=function(e,t){var n=Xin[Uin(e)];return n==Kin||n!=Yin&&(Qi(t)?Pi(t):!!t)},Uin=rT.normalize=function(e){return String(e).replace(Qin,".").toLowerCase()},Xin=rT.data={},Yin=rT.NATIVE="N",Kin=rT.POLYFILL="P",AE=rT,qin=nT.f,zo=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?hn:u?hn[s]||iK(s,{}):(hn[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=qin(n,r))&&a.value:n[r],!AE(l?r:s+(u?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Gin(o,i)}(e.sham||i&&i.sham)&&nh(o,"sham",!0),pu(n,r,o,e)}},aO=Object.keys||function(e){return e_e(e,m4)},Jin=Pi(function(){aO(1)});/*!
|
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
*
|
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
* Released under the MIT License.
|
|
*/function Tde(e){return Object.prototype.toString.call(e)==="[object Object]"}zo({target:"Object",stat:!0,forced:Jin},{keys:function(e){return aO(L0(e))}});var eon={isHistory(e){return Tde(t=e)!==!1&&((n=t.constructor)===void 0||Tde(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Ev.isOperationList(e.redos[0]))&&(e.undos.length===0||Ev.isOperationList(e.undos[0]));var t,n,r}},e8=new WeakMap,t8=new WeakMap,LC={isHistoryEditor:e=>eon.isHistory(e.history)&&_e.isEditor(e),isMerging:e=>t8.get(e),isSaving:e=>e8.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=LC.isMerging(e);t8.set(e,!1),t(),t8.set(e,n)},withoutSaving(e,t){var n=LC.isSaving(e);e8.set(e,!1),t(),e8.set(e,n)}},ton=hn.String,Ki=function(e){if(xB(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ton(e)},hK=function(){var e=_a(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},non=Qx.PROPER,Jz=RegExp.prototype,n_e=Jz.toString,ron=Zn(hK),ion=Pi(function(){return n_e.call({source:"a",flags:"b"})!="/a/b"}),oon=non&&n_e.name!="toString";(ion||oon)&&pu(RegExp.prototype,"toString",function(){var e=_a(this),t=Ki(e.source),n=e.flags;return"/"+t+"/"+Ki(n===void 0&&c1(Jz,e)&&!("flags"in Jz)?ron(e):n)},{unsafe:!0});var oR,aon=ys?Object.defineProperties:function(e,t){_a(e);for(var n,r=B0(t),i=aO(t),o=i.length,a=0;o>a;)xh.f(e,n=i[a++],r[n]);return e},eZ=L1("document","documentElement"),r_e=cK("IE_PROTO"),n8=function(){},i_e=function(e){return"<script>"+e+"<\/script>"},Pde=function(e){e.write(i_e("")),e.close();var t=e.parentWindow.Object;return e=null,t},l$=function(){try{oR=new ActiveXObject("htmlfile")}catch{}var e,t;l$=typeof document<"u"?document.domain&&oR?Pde(oR):((t=xE("iframe")).style.display="none",eZ.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(i_e("document.F=Object")),e.close(),e.F):Pde(oR);for(var n=m4.length;n--;)delete l$.prototype[m4[n]];return l$()};OB[r_e]=!0;var IB=Object.create||function(e,t){var n;return e!==null?(n8.prototype=_a(e),n=new n8,n8.prototype=null,n[r_e]=e):n=l$(),t===void 0?n:aon(n,t)},tZ=Yo("unscopables"),nZ=Array.prototype;nZ[tZ]==null&&xh.f(nZ,tZ,{configurable:!0,value:IB(null)});var qk=function(e){nZ[tZ][e]=!0},son=JEe.includes;zo({target:"Array",proto:!0},{includes:function(e){return son(this,e,arguments.length>1?arguments[1]:void 0)}}),qk("includes");var lon=Yo("match"),pK=function(e){var t;return bo(e)&&((t=e[lon])!==void 0?!!t:rh(e)=="RegExp")},uon=hn.TypeError,fK=function(e){if(pK(e))throw uon("The method doesn't accept regular expressions");return e},con=Yo("match"),gK=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[con]=!1,"/./"[e](t)}catch{}}return!1},don=Zn("".indexOf);zo({target:"String",proto:!0,forced:!gK("includes")},{includes:function(e){return!!~don(Ki(pd(this)),Ki(fK(e)),arguments.length>1?arguments[1]:void 0)}});var hon=/"/g,pon=Zn("".replace);zo({target:"String",proto:!0,forced:Pi(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=Ki(pd(this)),r="<a",(r+=' name="'+pon(Ki(t),hon,""")+'"')+">"+n+"</a>";var t,n,r}});var rZ=function(e,t,n){var r,i;_a(e);try{if(!(r=d1(e,"return"))){if(t==="throw")throw n;return n}r=fi(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return _a(r),n},fon=function(e,t,n,r){try{return r?t(_a(n)[0],n[1]):t(n)}catch(i){rZ(e,"throw",i)}},ox={},gon=Yo("iterator"),mon=Array.prototype,o_e=function(e){return e!==void 0&&(ox.Array===e||mon[gon]===e)},IE=function(e,t,n){var r=uK(t);r in e?xh.f(e,r,wB(0,n)):e[r]=n},von=Yo("iterator"),mK=function(e){if(e!=null)return d1(e,von)||d1(e,"@@iterator")||ox[xB(e)]},yon=hn.TypeError,a_e=function(e,t){var n=arguments.length<2?mK(e):t;if(y0(n))return _a(fi(n,e));throw yon(bB(e)+" is not iterable")},Dde=hn.Array,s_e=Yo("iterator"),l_e=!1;try{var bon=0,Rde={next:function(){return{done:!!bon++}},return:function(){l_e=!0}};Rde[s_e]=function(){return this},Array.from(Rde,function(){throw 2})}catch{}var vK=function(e,t){if(!l_e)return!1;var n=!1;try{var r={};r[s_e]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},won=!vK(function(e){Array.from(e)});zo({target:"Array",stat:!0,forced:won},{from:function(e){var t=L0(e),n=AB(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=i!==void 0;o&&(i=h1(i,r>2?arguments[2]:void 0));var a,s,l,u,c,d,h=mK(t),f=0;if(!h||this==Dde&&o_e(h))for(a=B1(t),s=n?new this(a):Dde(a);a>f;f++)d=o?i(t[f],f):t[f],IE(s,f,d);else for(c=(u=a_e(t,h)).next,s=n?new this:[];!(l=fi(c,u)).done;f++)d=o?fon(u,i,[l.value,f],!0):l.value,IE(s,f,d);return s.length=f,s}});var Eb,$de,Mde,Con=Zn("".charAt),Lde=Zn("".charCodeAt),Oon=Zn("".slice),Bde=function(e){return function(t,n){var r,i,o=Ki(pd(t)),a=tT(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=Lde(o,a))<55296||r>56319||a+1===s||(i=Lde(o,a+1))<56320||i>57343?e?Con(o,a):r:e?Oon(o,a,a+2):i-56320+(r-55296<<10)+65536}},u_e={codeAt:Bde(!1),charAt:Bde(!0)},xon=!Pi(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Fde=cK("IE_PROTO"),iZ=hn.Object,Son=iZ.prototype,v4=xon?iZ.getPrototypeOf:function(e){var t=L0(e);if(Ea(t,Fde))return t[Fde];var n=t.constructor;return Qi(n)&&t instanceof n?n.prototype:t instanceof iZ?Son:null},oZ=Yo("iterator"),c_e=!1;[].keys&&("next"in(Mde=[].keys())?($de=v4(v4(Mde)))!==Object.prototype&&(Eb=$de):c_e=!0);var Aon=Eb==null||Pi(function(){var e={};return Eb[oZ].call(e)!==e});Aon&&(Eb={}),Qi(Eb[oZ])||pu(Eb,oZ,function(){return this});var yK={IteratorPrototype:Eb,BUGGY_SAFARI_ITERATORS:c_e},Ion=xh.f,Nde=Yo("toStringTag"),y4=function(e,t,n){e&&!Ea(e=n?e:e.prototype,Nde)&&Ion(e,Nde,{configurable:!0,value:t})},kon=yK.IteratorPrototype,Eon=function(){return this},_on=hn.String,Ton=hn.TypeError,ax=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Zn(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return _a(r),function(o){if(typeof o=="object"||Qi(o))return o;throw Ton("Can't set "+_on(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),Pon=Qx.PROPER,Don=Qx.CONFIGURABLE,Vde=yK.IteratorPrototype,aR=yK.BUGGY_SAFARI_ITERATORS,QA=Yo("iterator"),Ron=function(){return this},bK=function(e,t,n,r,i,o,a){(function(m,w,k,T){var S=w+" Iterator";m.prototype=IB(kon,{next:wB(1,k)}),y4(m,S,!1),ox[S]=Eon})(n,t,r);var s,l,u,c=function(m){if(m===i&&b)return b;if(!aR&&m in f)return f[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},d=t+" Iterator",h=!1,f=e.prototype,g=f[QA]||f["@@iterator"]||i&&f[i],b=!aR&&g||c(i),v=t=="Array"&&f.entries||g;if(v&&(s=v4(v.call(new e)))!==Object.prototype&&s.next&&(v4(s)!==Vde&&(ax?ax(s,Vde):Qi(s[QA])||pu(s,QA,Ron)),y4(s,d,!0)),Pon&&i=="values"&&g&&g.name!=="values"&&(Don?nh(f,"name","values"):(h=!0,b=function(){return fi(g,this)})),i)if(l={values:c("values"),keys:o?b:c("keys"),entries:c("entries")},a)for(u in l)(aR||h||!(u in f))&&pu(f,u,l[u]);else zo({target:t,proto:!0,forced:aR||h},l);return f[QA]!==b&&pu(f,QA,b,{name:i}),ox[t]=b,l},$on=u_e.charAt,Mon=ul.set,Lon=ul.getterFor("String Iterator");bK(String,"String",function(e){Mon(this,{type:"String Iterator",string:Ki(e),index:0})},function(){var e,t=Lon(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=$on(n,r),t.index+=e.length,{value:e,done:!1})});var r8,Bon=nT.f,jde=Zn("".endsWith),Fon=Zn("".slice),Non=Math.min,d_e=gK("endsWith"),Von=!(d_e||(r8=Bon(String.prototype,"endsWith"),!r8||r8.writable));zo({target:"String",proto:!0,forced:!Von&&!d_e},{endsWith:function(e){var t=Ki(pd(this));fK(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:Non(Ux(n),r),o=Ki(e);return jde?jde(t,o,i):Fon(t,i-o.length,i)===o}});var jon=Zn([].join),Won=SB!=Object,Hon=YEe("join",",");zo({target:"Array",proto:!0,forced:Won||!Hon},{join:function(e){return jon(B0(this),e===void 0?",":e)}});var zon=Yo("species"),kB=function(e){return OE>=51||!Pi(function(){var t=[];return(t.constructor={})[zon]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Zon=Xx.map,Gon=kB("map");zo({target:"Array",proto:!0,forced:!Gon},{map:function(e){return Zon(this,e,arguments.length>1?arguments[1]:void 0)}});var wK=hn.RegExp,aZ=Pi(function(){var e=wK("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Qon=aZ||Pi(function(){return!wK("a","y").sticky}),EB={BROKEN_CARET:aZ||Pi(function(){var e=wK("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Qon,UNSUPPORTED_Y:aZ},Uon=hn.RegExp,CK=Pi(function(){var e=Uon(".","s");return!(e.dotAll&&e.exec(`
|
|
`)&&e.flags==="s")}),Xon=hn.RegExp,OK=Pi(function(){var e=Xon("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Yon=ul.get,Kon=oK("native-string-replace",String.prototype.replace),b4=RegExp.prototype.exec,sZ=b4,qon=Zn("".charAt),Jon=Zn("".indexOf),ean=Zn("".replace),i8=Zn("".slice),o8=function(){var e=/a/,t=/b*/g;return fi(b4,e,"a"),fi(b4,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),Wde=EB.BROKEN_CARET,a8=/()??/.exec("")[1]!==void 0;(o8||a8||Wde||CK||OK)&&(sZ=function(e){var t,n,r,i,o,a,s,l=this,u=Yon(l),c=Ki(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=fi(sZ,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=Wde&&l.sticky,g=fi(hK,l),b=l.source,v=0,m=c;if(f&&(g=ean(g,"y",""),Jon(g,"g")===-1&&(g+="g"),m=i8(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&qon(c,l.lastIndex-1)!==`
|
|
`)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),a8&&(n=new RegExp("^"+b+"$(?!\\s)",g)),o8&&(r=l.lastIndex),i=fi(b4,f?n:l,m),f?i?(i.input=i8(i.input,v),i[0]=i8(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:o8&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),a8&&i&&i.length>1&&fi(Kon,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=IB(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var kE=sZ;zo({target:"RegExp",proto:!0,forced:/./.exec!==kE},{exec:kE});var xK=Function.prototype,Hde=xK.apply,tan=xK.bind,zde=xK.call,SK=typeof Reflect=="object"&&Reflect.apply||(tan?zde.bind(Hde):function(){return zde.apply(Hde,arguments)}),nan=Yo("species"),s8=RegExp.prototype,AK=function(e,t,n,r){var i=Yo(e),o=!Pi(function(){var u={};return u[i]=function(){return 7},""[e](u)!=7}),a=o&&!Pi(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[nan]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return u=!0,null},c[i](""),!u});if(!o||!a||n){var s=Zn(/./[i]),l=t(i,""[e],function(u,c,d,h,f){var g=Zn(u),b=c.exec;return b===kE||b===s8.exec?o&&!f?{done:!0,value:s(c,d,h)}:{done:!0,value:g(d,c,h)}:{done:!1}});pu(String.prototype,e,l[0]),pu(s8,i,l[1])}r&&nh(s8[i],"sham",!0)},ran=u_e.charAt,IK=function(e,t,n){return t+(n?ran(e,t).length:1)},ian=Math.floor,l8=Zn("".charAt),oan=Zn("".replace),u8=Zn("".slice),aan=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,san=/\$([$&'`]|\d{1,2})/g,lan=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=san;return i!==void 0&&(i=L0(i),l=aan),oan(o,l,function(u,c){var d;switch(l8(c,0)){case"$":return"$";case"&":return e;case"`":return u8(t,0,n);case"'":return u8(t,a);case"<":d=i[u8(c,1,-1)];break;default:var h=+c;if(h===0)return u;if(h>s){var f=ian(h/10);return f===0?u:f<=s?r[f-1]===void 0?l8(c,1):r[f-1]+l8(c,1):u}d=r[h-1]}return d===void 0?"":d})},uan=hn.TypeError,EE=function(e,t){var n=e.exec;if(Qi(n)){var r=fi(n,e,t);return r!==null&&_a(r),r}if(rh(e)==="RegExp")return fi(kE,e,t);throw uan("RegExp#exec called on incompatible receiver")},lZ=Yo("replace"),can=Math.max,dan=Math.min,han=Zn([].concat),c8=Zn([].push),Zde=Zn("".indexOf),Gde=Zn("".slice),pan="a".replace(/./,"$0")==="$0",Qde=!!/./[lZ]&&/./[lZ]("a","$0")==="";AK("replace",function(e,t,n){var r=Qde?"$":"$0";return[function(i,o){var a=pd(this),s=i==null?void 0:d1(i,lZ);return s?fi(s,i,a,o):fi(t,Ki(a),i,o)},function(i,o){var a=_a(this),s=Ki(i);if(typeof o=="string"&&Zde(o,r)===-1&&Zde(o,"$<")===-1){var l=n(t,a,s,o);if(l.done)return l.value}var u=Qi(o);u||(o=Ki(o));var c=a.global;if(c){var d=a.unicode;a.lastIndex=0}for(var h=[];;){var f=EE(a,s);if(f===null||(c8(h,f),!c))break;Ki(f[0])===""&&(a.lastIndex=IK(s,Ux(a.lastIndex),d))}for(var g,b="",v=0,m=0;m<h.length;m++){for(var w=Ki((f=h[m])[0]),k=can(dan(tT(f.index),s.length),0),T=[],S=1;S<f.length;S++)c8(T,(g=f[S])===void 0?g:String(g));var I=f.groups;if(u){var O=han([w],T,k,s);I!==void 0&&c8(O,I);var y=Ki(SK(o,void 0,O))}else y=lan(w,s,k,T,I,o);k>=v&&(b+=Gde(s,v,k)+y,v=k+w.length)}return b+Gde(s,v)}]},!!Pi(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!pan||Qde);/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var uZ=function(e,t){return uZ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},uZ(e,t)};function Yx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}uZ(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var jc=function(){return jc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},jc.apply(this,arguments)};function Wc(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function si(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function cZ(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var fan=0,Ude=function(){this.id=""+fan++},gan=ul.set,man=ul.getterFor("Array Iterator"),uk=bK(Array,"Array",function(e,t){gan(this,{type:"Array Iterator",target:B0(e),index:0,kind:t})},function(){var e=man(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");ox.Arguments=ox.Array,qk("keys"),qk("values"),qk("entries");var sx=function(e,t,n){for(var r in t)pu(e,r,t[r],n);return e},van=hn.Array,yan=Math.max,dZ=function(e,t,n){for(var r=B1(e),i=ix(t,r),o=ix(n===void 0?r:n,r),a=van(yan(o-i,0)),s=0;i<o;i++,s++)IE(a,s,e[i]);return a.length=s,a},Xde=SE.f,Yde=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ban={f:function(e){return Yde&&rh(e)=="Window"?function(t){try{return Xde(t)}catch{return dZ(Yde)}}(e):Xde(B0(e))}},Kde=Pi(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),sR=Object.isExtensible,pb=Pi(function(){sR(1)})||Kde?function(e){return!!bo(e)&&(!Kde||rh(e)!="ArrayBuffer")&&(!sR||sR(e))}:sR,wan=!Pi(function(){return Object.isExtensible(Object.preventExtensions({}))}),_B=eT(function(e){var t=xh.f,n=!1,r=aK("meta"),i=0,o=function(s){t(s,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var s=SE.f,l=Zn([].splice),u={};u[r]=1,s(u).length&&(SE.f=function(c){for(var d=s(c),h=0,f=d.length;h<f;h++)if(d[h]===r){l(d,h,1);break}return d},zo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ban.f}))},fastKey:function(s,l){if(!bo(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Ea(s,r)){if(!pb(s))return"F";if(!l)return"E";o(s)}return s[r].objectID},getWeakData:function(s,l){if(!Ea(s,r)){if(!pb(s))return!0;if(!l)return!1;o(s)}return s[r].weakData},onFreeze:function(s){return wan&&n&&pb(s)&&!Ea(s,r)&&o(s),s}};OB[r]=!0}),Can=hn.TypeError,u$=function(e,t){this.stopped=e,this.result=t},qde=u$.prototype,_E=function(e,t,n){var r,i,o,a,s,l,u,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),g=h1(t,c),b=function(m){return r&&rZ(r,"normal",m),new u$(!0,m)},v=function(m){return d?(_a(m),f?g(m[0],m[1],b):g(m[0],m[1])):f?g(m,b):g(m)};if(h)r=e;else{if(!(i=mK(e)))throw Can(bB(e)+" is not iterable");if(o_e(i)){for(o=0,a=B1(e);a>o;o++)if((s=v(e[o]))&&c1(qde,s))return s;return new u$(!1)}r=a_e(e,i)}for(l=r.next;!(u=fi(l,r)).done;){try{s=v(u.value)}catch(m){rZ(r,"throw",m)}if(typeof s=="object"&&s&&c1(qde,s))return s}return new u$(!1)},Oan=hn.TypeError,TB=function(e,t){if(c1(t,e))return e;throw Oan("Incorrect invocation")},h_e=function(e,t,n){var r,i;return ax&&Qi(r=t.constructor)&&r!==n&&bo(i=r.prototype)&&i!==n.prototype&&ax(e,i),e},p_e=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=hn[e],s=a&&a.prototype,l=a,u={},c=function(v){var m=Zn(s[v]);pu(s,v,v=="add"?function(w){return m(this,w===0?0:w),this}:v=="delete"?function(w){return!(i&&!bo(w))&&m(this,w===0?0:w)}:v=="get"?function(w){return i&&!bo(w)?void 0:m(this,w===0?0:w)}:v=="has"?function(w){return!(i&&!bo(w))&&m(this,w===0?0:w)}:function(w,k){return m(this,w===0?0:w,k),this})};if(AE(e,!Qi(a)||!(i||s.forEach&&!Pi(function(){new a().entries().next()}))))l=n.getConstructor(t,e,r,o),_B.enable();else if(AE(e,!0)){var d=new l,h=d[o](i?{}:-0,1)!=d,f=Pi(function(){d.has(1)}),g=vK(function(v){new a(v)}),b=!i&&Pi(function(){for(var v=new a,m=5;m--;)v[o](m,m);return!v.has(-0)});g||((l=t(function(v,m){TB(v,s);var w=h_e(new a,v,l);return m!=null&&_E(m,w[o],{that:w,AS_ENTRIES:r}),w})).prototype=s,s.constructor=l),(f||b)&&(c("delete"),c("has"),r&&c("get")),(b||h)&&c(o),i&&s.clear&&delete s.clear}return u[e]=l,zo({global:!0,forced:l!=a},u),y4(l,e),i||n.setStrong(l,e,r),l},lR=_B.getWeakData,xan=ul.set,San=ul.getterFor,Aan=Xx.find,Ian=Xx.findIndex,kan=Zn([].splice),Ean=0,uR=function(e){return e.frozen||(e.frozen=new f_e)},f_e=function(){this.entries=[]},d8=function(e,t){return Aan(e.entries,function(n){return n[0]===t})};f_e.prototype={get:function(e){var t=d8(this,e);if(t)return t[1]},has:function(e){return!!d8(this,e)},set:function(e,t){var n=d8(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ian(this.entries,function(n){return n[0]===e});return~t&&kan(this.entries,t,1),!!~t}};var UA,g_e={getConstructor:function(e,t,n,r){var i=e(function(l,u){TB(l,o),xan(l,{type:t,id:Ean++,frozen:void 0}),u!=null&&_E(u,l[r],{that:l,AS_ENTRIES:n})}),o=i.prototype,a=San(t),s=function(l,u,c){var d=a(l),h=lR(_a(u),!0);return h===!0?uR(d).set(u,c):h[d.id]=c,l};return sx(o,{delete:function(l){var u=a(this);if(!bo(l))return!1;var c=lR(l);return c===!0?uR(u).delete(l):c&&Ea(c,u.id)&&delete c[u.id]},has:function(l){var u=a(this);if(!bo(l))return!1;var c=lR(l);return c===!0?uR(u).has(l):c&&Ea(c,u.id)}}),sx(o,n?{get:function(l){var u=a(this);if(bo(l)){var c=lR(l);return c===!0?uR(u).get(l):c?c[u.id]:void 0}},set:function(l,u){return s(this,l,u)}}:{add:function(l){return s(this,l,!0)}}),i}},cR=ul.enforce,_an=!hn.ActiveXObject&&"ActiveXObject"in hn,m_e=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Tan=p_e("WeakMap",m_e,g_e);if(zEe&&_an){UA=g_e.getConstructor(m_e,"WeakMap",!0),_B.enable();var XA=Tan.prototype,Jde=Zn(XA.delete),dR=Zn(XA.has),ehe=Zn(XA.get),the=Zn(XA.set);sx(XA,{delete:function(e){if(bo(e)&&!pb(e)){var t=cR(this);return t.frozen||(t.frozen=new UA),Jde(this,e)||t.frozen.delete(e)}return Jde(this,e)},has:function(e){if(bo(e)&&!pb(e)){var t=cR(this);return t.frozen||(t.frozen=new UA),dR(this,e)||t.frozen.has(e)}return dR(this,e)},get:function(e){if(bo(e)&&!pb(e)){var t=cR(this);return t.frozen||(t.frozen=new UA),dR(this,e)?ehe(this,e):t.frozen.get(e)}return ehe(this,e)},set:function(e,t){if(bo(e)&&!pb(e)){var n=cR(this);n.frozen||(n.frozen=new UA),dR(this,e)?the(this,e,t):n.frozen.set(e,t)}else the(this,e,t);return this}})}var h8=Yo("iterator"),nhe=Yo("toStringTag"),p8=uk.values,v_e=function(e,t){if(e){if(e[h8]!==p8)try{nh(e,h8,p8)}catch{e[h8]=p8}if(e[nhe]||nh(e,nhe,t),f4[t]){for(var n in uk)if(e[n]!==uk[n])try{nh(e,n,uk[n])}catch{e[n]=uk[n]}}}};for(var f8 in f4)v_e(hn[f8]&&hn[f8].prototype,f8);v_e(GEe,"DOMTokenList");var hZ=new WeakMap,pZ=new WeakMap,kK=new WeakMap,PB=new WeakMap,fZ=new WeakMap,w4=new WeakMap,EK=new WeakMap,gZ=new WeakMap,c$=new WeakMap,rhe=new WeakMap,ihe=new WeakMap,ohe=new WeakMap,ahe=new WeakMap,TE=new WeakMap,lx=new WeakMap,_K=new WeakMap,C4=new WeakMap,mZ=new WeakMap,O4=new WeakMap,d$=new WeakMap,y_e=new WeakMap,_b=new WeakMap,g8=new WeakMap,she=new WeakMap,m8=new WeakMap,Pan=Xx.find,lhe=!0;"find"in[]&&Array(1).find(function(){lhe=!1}),zo({target:"Array",proto:!0,forced:lhe},{find:function(e){return Pan(this,e,arguments.length>1?arguments[1]:void 0)}}),qk("find"),zo({global:!0},{globalThis:hn});const Dan=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];a4&&(ut.fn.css=a4),hd&&(ut.fn.append=hd),QO&&(ut.fn.addClass=QO),UO&&(ut.fn.removeClass=UO),XO&&(ut.fn.hasClass=XO),Zp&&(ut.fn.on=Zp),v0&&(ut.fn.focus=v0),dd&&(ut.fn.attr=dd),n4&&(ut.fn.removeAttr=n4),KO&&(ut.fn.hide=KO),o4&&(ut.fn.show=o4),Oce&&(ut.fn.offset=Oce),r4&&(ut.fn.width=r4),i4&&(ut.fn.height=i4),qO&&(ut.fn.parent=qO),u4&&(ut.fn.parents=u4),Sce&&(ut.fn.is=Sce),YO&&(ut.fn.dataset=YO),zp&&(ut.fn.val=zp),l4&&(ut.fn.text=l4),m0&&(ut.fn.html=m0),ex&&(ut.fn.children=ex),tx&&(ut.fn.remove=tx),JO&&(ut.fn.find=JO),s4&&(ut.fn.each=s4),nx&&(ut.fn.empty=nx);var mp,Qs,TK=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Vd=function(e){return p1(e)&&e.nodeType===1},p1=function(e){var t=TK(e);return!!t&&e instanceof t.Node},uhe=function(e){var t=e&&e.anchorNode&&TK(e.anchorNode);return!!t&&e instanceof t.Selection},b_e=function(e){return p1(e)&&e.nodeType===3},vZ=function(e){var t,n,r;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(e))||null},w_e=function(e,t,n){for(var r,i=e.childNodes,o=i[t],a=t,s=!1,l=!1;(p1(r=o)&&r.nodeType===8||Vd(o)&&o.childNodes.length===0||Vd(o)&&o.getAttribute("contenteditable")==="false")&&(!s||!l);)a>=i.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(o=i[a],t=a,a+=n==="forward"?1:-1);return[o,t]},Ran=function(e,t,n){return si(w_e(e,t,n),1)[0]},$an=function e(t){var n,r,i="";if(b_e(t)&&t.nodeValue)return t.nodeValue;if(Vd(t)){try{for(var o=Wc(Array.from(t.childNodes)),a=o.next();!a.done;a=o.next())i+=e(a.value)}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}var s=getComputedStyle(t).getPropertyValue("display");s!=="block"&&s!=="list"&&s!=="table-row"&&t.tagName!=="BR"||(i+=`
|
|
`)}return i};function C_e(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var i=n[r],o=i.nodeType;o==3?t(i,e):o!=1&&o!=9&&o!=11||C_e(i,t)}}function che(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==mp.ELEMENT_NODE?"":t.tagName.toLowerCase()}(Qs=mp||(mp={}))[Qs.ELEMENT_NODE=1]="ELEMENT_NODE",Qs[Qs.TEXT_NODE=3]="TEXT_NODE",Qs[Qs.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Qs[Qs.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Qs[Qs.COMMENT_NODE=8]="COMMENT_NODE",Qs[Qs.DOCUMENT_NODE=9]="DOCUMENT_NODE",Qs[Qs.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Qs[Qs.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var yZ=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Jk=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),YA=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Man=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Lan=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),bZ=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),KA=!Lan&&!Man&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",tt={getWindow:function(e){var t=y_e.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=d$.get(t);return n||(n=new Ude,d$.set(t,n)),n},setNewKey:function(e){var t=new Ude;d$.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=lx.get(r);if(i==null){if(_e.isEditor(r))return n;break}var o=TE.get(r);if(o==null)break;n.unshift(o),r=i}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=tt.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return lx.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var i=tt.getParentNode(e,r);if(i==null)break;n.push(i),r=i}return n},getTopNode:function(e,t){var n=[tt.findPath(e,t)[0]];return vn.get(e,n)},toDOMNode:function(e,t){var n;if(_e.isEditor(t))n=_K.get(e);else{var r=tt.findKey(e,t);n=mZ.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,i=n.editable,o=i!==void 0&&i,a=tt.toDOMNode(e,e);try{r=Vd(t)?t:t.parentElement}catch(s){if(!s.message.includes('Permission denied to access property "nodeType"'))throw s}return!!r&&r.closest("[data-slate-editor]")===a&&(!o||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,i=Vt.isBackward(t),o=tt.toDOMPoint(e,n),a=Vt.isCollapsed(t)?o:tt.toDOMPoint(e,r),s=tt.getWindow(e).document.createRange(),l=si(i?a:o,2),u=l[0],c=l[1],d=si(i?o:a,2),h=d[0],f=d[1],g=!!(Vd(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),b=!!(Vd(h)?h:h.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,g?1:c),s.setEnd(h,b?1:f),s},toDOMPoint:function(e,t){var n,r,i,o=si(_e.node(e,t.path),1)[0],a=tt.toDOMNode(e,o);_e.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),l=0;try{for(var u=Wc(s),c=u.next();!c.done;c=u.next()){var d=c.value,h=d.childNodes[0];if(h!=null&&h.textContent!=null){var f=h.textContent.length,g=d.getAttribute("data-slate-length"),b=l+(g==null?f:parseInt(g,10));if(t.offset<=b){i=[h,Math.min(f,Math.max(0,t.offset-l))];break}l=b}}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(!i)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return i},toSlateNode:function(e,t){var n=Vd(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?C4.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,i=t.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var o,a=tt.toSlateNode(e,t.target),s=tt.findPath(e,a);if(_e.isVoid(e,a)){var l=i.getBoundingClientRect(),u=e.isInline(a)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,c=_e.point(e,s,{edge:u?"start":"end"}),d=u?_e.before(e,c):_e.after(e,c);if(d)return _e.range(e,d)}var h=this.getWindow(e).document;if(h.caretRangeFromPoint)o=h.caretRangeFromPoint(n,r);else{var f=h.caretPositionFromPoint(n,r);f&&((o=h.createRange()).setStart(f.offsetNode,f.offset),o.setEnd(f.offsetNode,f.offset))}if(!o)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return tt.toSlateRange(e,o,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,i,o,a,s,l=n.exactMatch,u=n.suppressThrow;if((uhe(t)?t.anchorNode:t.startContainer)&&(uhe(t)?(r=t.anchorNode,i=t.anchorOffset,o=t.focusNode,a=t.focusOffset,s=bZ&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=t.collapsed)),r==null||o==null||i==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=tt.toSlatePoint(e,[r,i],{exactMatch:l,suppressThrow:u});if(!c)return null;var d=s?c:tt.toSlatePoint(e,[o,a],{exactMatch:l,suppressThrow:u});if(!d)return null;var h={anchor:c,focus:d};return Vt.isExpanded(h)&&Vt.isForward(h)&&Vd(o)&&_e.void(e,{at:h.focus,mode:"highest"})&&(h=_e.unhangRange(e,h,{voids:!0})),h},toSlatePoint:function(e,t,n){var r,i=n.exactMatch,o=n.suppressThrow,a=si(i?t:function(w){var k,T=si(w,2),S=T[0],I=T[1];if(Vd(S)&&S.childNodes.length){var O=I===S.childNodes.length,y=O?I-1:I;for(S=(k=si(w_e(S,y,O?"backward":"forward"),2))[0],O=(y=k[1])<I;Vd(S)&&S.childNodes.length;){var _=O?S.childNodes.length-1:0;S=Ran(S,_,O?"backward":"forward")}I=O&&S.textContent!=null?S.textContent.length:0}return[S,I]}(t),2),s=a[0],l=a[1],u=s.parentNode,c=null,d=0;if(u){var h=u.closest('[data-slate-void="true"]'),f=u.closest("[data-slate-leaf]"),g=null;if(f){c=f.closest('[data-slate-node="text"]');var b=tt.getWindow(e).document.createRange();b.setStart(c,0),b.setEnd(s,l);var v=b.cloneContents();cZ(cZ([],si(bce(v.querySelectorAll("[data-slate-zero-width]")))),si(bce(v.querySelectorAll("[contenteditable=false]")))).forEach(function(w){w.parentNode.removeChild(w)}),d=v.textContent.length,g=c}else h&&((f=h.querySelector("[data-slate-leaf]"))?(c=f.closest('[data-slate-node="text"]'),d=(g=f).textContent.length,g.querySelectorAll("[data-slate-zero-width]").forEach(function(w){d-=w.textContent.length})):d=1);g&&d===g.textContent.length&&(u.hasAttribute("data-slate-zero-width")||Jk&&!((r=g.textContent)===null||r===void 0)&&r.endsWith(`
|
|
`))&&d--}if(!c){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var m=tt.toSlateNode(e,c);return{path:tt.findPath(e,m),offset:d}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return _e.hasPath(e,n.path)&&_e.hasPath(e,r.path)},getNodeType:function(e){return jn.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return vn.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],i=_e.nodes(e,{universal:!0});try{for(var o=Wc(i),a=o.next();!a.done;a=o.next()){var s=si(a.value,1)[0];jn.isElement(s)&&r.push(s)}}catch(l){t={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=si(_e.nodes(e,{match:function(o){return n.checkNodeType(o,t)},universal:!0}),1),i=r[0];return i==null?null:i[0]},getSelectedTextNode:function(e){var t=si(_e.nodes(e,{match:function(r){return In.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=si(_e.nodes(e,{match:function(i){return i===t},universal:!0}),1),r=n[0];return r!=null&&si(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(_e.isEnd(e,n.anchor,t)||_e.isEnd(e,n.focus,t))},getTextarea:function(e){var t=hZ.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return PB.get(e)||null},getHoverbar:function(e){return w4.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,n){e.normalizeNode([t,[n]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var i=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return i<=0&&r&&r(e),i},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,i,o=tt.getTextarea(e).$textArea,a=o==null?void 0:o[0].childNodes;if(a)try{for(var s=Wc(Array.from(a)),l=s.next();!l.done;l=s.next()){var u=l.value;if(u.nodeType!==3)break;u.remove()}}catch(b){t={error:b}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var c=_e.nodes(e,{match:function(b){return!(!jn.isElement(b)||e.isInline(b))},universal:!0});try{for(var d=Wc(c),h=d.next();!h.done;h=d.next()){var f=h.value;if(f!=null){var g=f[0];C_e(tt.toDOMNode(e,g),function(b,v){var m=ut(v);m.attr("data-slate-string")||m.attr("data-slate-zero-width")||m.attr("data-w-e-reserve")||v.removeChild(b)})}}}catch(b){r={error:b}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=_e.nodes(e,{match:function(s){return e.isVoid(s)}}),i=0;try{for(var o=Wc(r),a=o.next();!a.done;a=o.next())a.value,i++}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||Vt.isExpanded(t))return!1;var n=tt.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=_e.node(e,t);if(n==null)return!1;var r=si(n,1)[0].children;return r.length===1&&r[0].text===""}},Ban=1,O_e={},PE={},Fan=Xx.filter,Nan=kB("filter");zo({target:"Array",proto:!0,forced:!Nan},{filter:function(e){return Fan(this,e,arguments.length>1?arguments[1]:void 0)}});var wZ=`
|
|
\v\f\r \u2028\u2029\uFEFF`,dhe=Zn("".replace),x4="["+wZ+"]",Van=RegExp("^"+x4+x4+"*"),jan=RegExp(x4+x4+"*$"),v8=function(e){return function(t){var n=Ki(pd(t));return 1&e&&(n=dhe(n,Van,"")),2&e&&(n=dhe(n,jan,"")),n}},Wan={start:v8(1),end:v8(2),trim:v8(3)},Han=Qx.PROPER,zan=Wan.trim;zo({target:"String",proto:!0,forced:function(e){return Pi(function(){return!!wZ[e]()||"
"[e]()!=="
"||Han&&wZ[e].name!==e})}("trim")},{trim:function(){return zan(this)}});var CZ=[],x_e={};function Zan(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var DE,zw,hhe,y8,S4=hn.Promise,phe=Yo("species"),PK=function(e){var t=L1(e),n=xh.f;ys&&t&&!t[phe]&&n(t,phe,{configurable:!0,get:function(){return this}})},Gan=hn.TypeError,Qan=Yo("species"),S_e=function(e,t){var n,r=_a(e).constructor;return r===void 0||(n=_a(r)[Qan])==null?t:function(i){if(AB(i))return i;throw Gan(bB(i)+" is not a constructor")}(n)},A_e=Zn([].slice),I_e=/(?:ipad|iphone|ipod).*applewebkit/i.test(oO),jv=rh(hn.process)=="process",OZ=hn.setImmediate,xZ=hn.clearImmediate,Uan=hn.process,b8=hn.Dispatch,Xan=hn.Function,fhe=hn.MessageChannel,Yan=hn.String,w8=0,e2={};try{DE=hn.location}catch{}var DK=function(e){if(Ea(e2,e)){var t=e2[e];delete e2[e],t()}},C8=function(e){return function(){DK(e)}},ghe=function(e){DK(e.data)},mhe=function(e){hn.postMessage(Yan(e),DE.protocol+"//"+DE.host)};OZ&&xZ||(OZ=function(e){var t=A_e(arguments,1);return e2[++w8]=function(){SK(Qi(e)?e:Xan(e),void 0,t)},zw(w8),w8},xZ=function(e){delete e2[e]},jv?zw=function(e){Uan.nextTick(C8(e))}:b8&&b8.now?zw=function(e){b8.now(C8(e))}:fhe&&!I_e?(y8=(hhe=new fhe).port2,hhe.port1.onmessage=ghe,zw=h1(y8.postMessage,y8)):hn.addEventListener&&Qi(hn.postMessage)&&!hn.importScripts&&DE&&DE.protocol!=="file:"&&!Pi(mhe)?(zw=mhe,hn.addEventListener("message",ghe,!1)):zw="onreadystatechange"in xE("script")?function(e){eZ.appendChild(xE("script")).onreadystatechange=function(){eZ.removeChild(this),DK(e)}}:function(e){setTimeout(C8(e),0)});var qA,nb,t2,SC,O8,x8,S8,vhe,k_e={set:OZ,clear:xZ},Kan=/ipad|iphone|ipod/i.test(oO)&&hn.Pebble!==void 0,qan=/web0s(?!.*chrome)/i.test(oO),Jan=nT.f,A8=k_e.set,yhe=hn.MutationObserver||hn.WebKitMutationObserver,bhe=hn.document,whe=hn.process,hR=hn.Promise,Che=Jan(hn,"queueMicrotask"),E_e=Che&&Che.value;E_e||(qA=function(){var e,t;for(jv&&(e=whe.domain)&&e.exit();nb;){t=nb.fn,nb=nb.next;try{t()}catch(n){throw nb?SC():t2=void 0,n}}t2=void 0,e&&e.enter()},I_e||jv||qan||!yhe||!bhe?!Kan&&hR&&hR.resolve?((S8=hR.resolve(void 0)).constructor=hR,vhe=h1(S8.then,S8),SC=function(){vhe(qA)}):jv?SC=function(){whe.nextTick(qA)}:(A8=h1(A8,hn),SC=function(){A8(qA)}):(O8=!0,x8=bhe.createTextNode(""),new yhe(qA).observe(x8,{characterData:!0}),SC=function(){x8.data=O8=!O8}));var I8,Ohe,__e,xhe,T_e=E_e||function(e){var t={fn:e,next:void 0};t2&&(t2.next=t),nb||(nb=t,SC()),t2=t},esn=function(e){var t,n;this.promise=new e(function(r,i){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=i}),this.resolve=y0(t),this.reject=y0(n)},RK={f:function(e){return new esn(e)}},SZ=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},tsn=typeof window=="object",P_e=k_e.set,nsn=Yo("species"),up="Promise",She=ul.getterFor(up),rsn=ul.set,isn=ul.getterFor(up),Zy=S4&&S4.prototype,xp=S4,JA=Zy,D_e=hn.TypeError,AZ=hn.document,$K=hn.process,sO=RK.f,osn=sO,asn=!!(AZ&&AZ.createEvent&&hn.dispatchEvent),R_e=Qi(hn.PromiseRejectionEvent),$_e=!1,n2=AE(up,function(){var e=CB(xp),t=e!==String(xp);if(!t&&OE===66)return!0;if(OE>=51&&/native code/.test(e))return!1;var n=new xp(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[nsn]=r,!($_e=n.then(function(){})instanceof r)||!t&&tsn&&!R_e}),ssn=n2||!vK(function(e){xp.all(e).catch(function(){})}),M_e=function(e){var t;return!(!bo(e)||!Qi(t=e.then))&&t},MK=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;T_e(function(){for(var r=e.value,i=e.state==1,o=0;n.length>o;){var a,s,l,u=n[o++],c=i?u.ok:u.fail,d=u.resolve,h=u.reject,f=u.domain;try{c?(i||(e.rejection===2&&usn(e),e.rejection=1),c===!0?a=r:(f&&f.enter(),a=c(r),f&&(f.exit(),l=!0)),a===u.promise?h(D_e("Promise-chain cycle")):(s=M_e(a))?fi(s,a,d,h):d(a)):h(r)}catch(g){f&&!l&&f.exit(),h(g)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&lsn(e)})}},L_e=function(e,t,n){var r,i;asn?((r=AZ.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),hn.dispatchEvent(r)):r={promise:t,reason:n},!R_e&&(i=hn["on"+e])?i(r):e==="unhandledrejection"&&function(o,a){var s=hn.console;s&&s.error&&(arguments.length==1?s.error(o):s.error(o,a))}("Unhandled promise rejection",n)},lsn=function(e){fi(P_e,hn,function(){var t,n=e.facade,r=e.value;if(Ahe(e)&&(t=SZ(function(){jv?$K.emit("unhandledRejection",r,n):L_e("unhandledrejection",n,r)}),e.rejection=jv||Ahe(e)?2:1,t.error))throw t.value})},Ahe=function(e){return e.rejection!==1&&!e.parent},usn=function(e){fi(P_e,hn,function(){var t=e.facade;jv?$K.emit("rejectionHandled",t):L_e("rejectionhandled",t,e.value)})},BC=function(e,t,n){return function(r){e(t,r,n)}},lO=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,MK(e,!0))},IZ=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw D_e("Promise can't be resolved itself");var r=M_e(t);r?T_e(function(){var i={done:!1};try{fi(r,t,BC(IZ,i,e),BC(lO,i,e))}catch(o){lO(i,o,e)}}):(e.value=t,e.state=1,MK(e,!1))}catch(i){lO({done:!1},i,e)}}};if(n2&&(JA=(xp=function(e){TB(this,JA),y0(e),fi(I8,this);var t=She(this);try{e(BC(IZ,t),BC(lO,t))}catch(n){lO(t,n)}}).prototype,(I8=function(e){rsn(this,{type:up,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=sx(JA,{then:function(e,t){var n=isn(this),r=n.reactions,i=sO(S_e(this,xp));return i.ok=!Qi(e)||e,i.fail=Qi(t)&&t,i.domain=jv?$K.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&MK(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),Ohe=function(){var e=new I8,t=She(e);this.promise=e,this.resolve=BC(IZ,t),this.reject=BC(lO,t)},RK.f=sO=function(e){return e===xp||e===__e?new Ohe(e):osn(e)},Qi(S4)&&Zy!==Object.prototype)){xhe=Zy.then,$_e||(pu(Zy,"then",function(e,t){var n=this;return new xp(function(r,i){fi(xhe,n,r,i)}).then(e,t)},{unsafe:!0}),pu(Zy,"catch",JA.catch,{unsafe:!0}));try{delete Zy.constructor}catch{}ax&&ax(Zy,JA)}zo({global:!0,wrap:!0,forced:n2},{Promise:xp}),y4(xp,up,!1),PK(up),__e=L1(up),zo({target:up,stat:!0,forced:n2},{reject:function(e){var t=sO(this);return fi(t.reject,void 0,e),t.promise}}),zo({target:up,stat:!0,forced:n2},{resolve:function(e){return function(t,n){if(_a(t),bo(n)&&n.constructor===t)return n;var r=RK.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),zo({target:up,stat:!0,forced:ssn},{all:function(e){var t=this,n=sO(t),r=n.resolve,i=n.reject,o=SZ(function(){var a=y0(t.resolve),s=[],l=0,u=1;_E(e,function(c){var d=l++,h=!1;u++,fi(a,t,c).then(function(f){h||(h=!0,s[d]=f,--u||r(s))},i)}),--u||r(s)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=sO(t),r=n.reject,i=SZ(function(){var o=y0(t.resolve);_E(e,function(a){fi(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var Zw=EB.UNSUPPORTED_Y,csn=Math.min,B_e=[].push,dsn=Zn(/./.exec),Gw=Zn(B_e),eI=Zn("".slice);function fd(e){Promise.resolve().then(e)}function F_e(e,t){return jn.isElement(e)?function(n,r){var i=n.type,o=i===void 0?"":i,a=n.children,s=a===void 0?[]:a,l=_e.isVoid(r,n),u="";l||(u=s.map(function(m){return F_e(m,r)}).join(""));var c=function(m){return x_e[m]||Zan}(o),d=c(n,u,r),h="";if(h=typeof d=="string"?d:d.html||"",l||CZ.forEach(function(m){return h=m(n,h)}),typeof d=="string")return h;var f=d.prefix,g=f===void 0?"":f,b=d.suffix,v=b===void 0?"":b;return g&&(h=g+h),v&&(h+=v),h}(e,t):function(n,r){var i=n.text;if(i==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var o=i;o=function(l){return l.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(o);var a=tt.getParentsNodes(r,n).some(function(l){return tt.getNodeType(l)==="pre"});if(a||(o=o.replace(/\r\n|\r|\n/g,"<br>")),a&&(o=o.replace(/ /g," ")),o===""){var s=tt.getParentNode(null,n);if(!s||s.children.length!==0)return o;o="<br>"}return CZ.forEach(function(l){return o=l(n,o)}),o}(e,t)}function N_e(e){return"w-e-element-"+e}AK("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,o){var a=Ki(pd(this)),s=o===void 0?4294967295:o>>>0;if(s===0)return[];if(i===void 0)return[a];if(!pK(i))return fi(t,a,i,s);for(var l,u,c,d=[],h=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),f=0,g=new RegExp(i.source,h+"g");(l=fi(kE,g,a))&&!((u=g.lastIndex)>f&&(Gw(d,eI(a,f,l.index)),l.length>1&&l.index<a.length&&SK(B_e,d,dZ(l,1)),c=l[0].length,f=u,d.length>=s));)g.lastIndex===l.index&&g.lastIndex++;return f===a.length?!c&&dsn(g,"")||Gw(d,""):Gw(d,eI(a,f)),d.length>s?dZ(d,0,s):d}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:fi(t,this,i,o)}:t,[function(i,o){var a=pd(this),s=i==null?void 0:d1(i,e);return s?fi(s,i,a,o):fi(r,Ki(a),i,o)},function(i,o){var a=_a(this),s=Ki(i),l=n(r,a,s,o,r!==t);if(l.done)return l.value;var u=S_e(a,RegExp),c=a.unicode,d=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Zw?"g":"y"),h=new u(Zw?"^(?:"+a.source+")":a,d),f=o===void 0?4294967295:o>>>0;if(f===0)return[];if(s.length===0)return EE(h,s)===null?[s]:[];for(var g=0,b=0,v=[];b<s.length;){h.lastIndex=Zw?0:b;var m,w=EE(h,Zw?eI(s,b):s);if(w===null||(m=csn(Ux(h.lastIndex+(Zw?b:0)),s.length))===g)b=IK(s,b,c);else{if(Gw(v,eI(s,g,b)),v.length===f)return v;for(var k=1;k<=w.length-1;k++)if(Gw(v,w[k]),v.length===f)return v;b=g=m}}return Gw(v,eI(s,g)),v}]},!!Pi(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Zw);var Ihe=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},khe=function(e,t,n){var r=tt.toDOMRange(e,t).getBoundingClientRect(),i=tt.toDOMRange(e,n).getBoundingClientRect();return Ihe(r,i)&&Ihe(i,r)},V_e=["span","b","strong","i","em","s","strike","u","font","sub","sup"],j_e=[],LK=[],A4={},hsn=xh.f,psn=SE.f,fsn=ul.enforce,gsn=Yo("match"),og=hn.RegExp,AC=og.prototype,msn=hn.SyntaxError,vsn=Zn(hK),ysn=Zn(AC.exec),pR=Zn("".charAt),Ehe=Zn("".replace),_he=Zn("".indexOf),bsn=Zn("".slice),wsn=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Tb=/a/g,k8=/a/g,Csn=new og(Tb)!==Tb,W_e=EB.MISSED_STICKY,Osn=EB.UNSUPPORTED_Y,xsn=ys&&(!Csn||W_e||CK||OK||Pi(function(){return k8[gsn]=!1,og(Tb)!=Tb||og(k8)==k8||og(Tb,"i")!="/a/i"}));if(AE("RegExp",xsn)){for(var Dm=function(e,t){var n,r,i,o,a,s,l=c1(AC,this),u=pK(e),c=t===void 0,d=[],h=e;if(!l&&u&&c&&e.constructor===Dm)return e;if((u||c1(AC,e))&&(e=e.source,c&&(t="flags"in h?h.flags:vsn(h))),e=e===void 0?"":Ki(e),t=t===void 0?"":Ki(t),h=e,CK&&"dotAll"in Tb&&(r=!!t&&_he(t,"s")>-1)&&(t=Ehe(t,/s/g,"")),n=t,W_e&&"sticky"in Tb&&(i=!!t&&_he(t,"y")>-1)&&Osn&&(t=Ehe(t,/y/g,"")),OK&&(o=function(f){for(var g,b=f.length,v=0,m="",w=[],k={},T=!1,S=!1,I=0,O="";v<=b;v++){if((g=pR(f,v))==="\\")g+=pR(f,++v);else if(g==="]")T=!1;else if(!T)switch(!0){case g==="[":T=!0;break;case g==="(":ysn(wsn,bsn(f,v+1))&&(v+=2,S=!0),m+=g,I++;continue;case(g===">"&&S):if(O===""||Ea(k,O))throw new msn("Invalid capture group name");k[O]=!0,w[w.length]=[O,I],S=!1,O="";continue}S?O+=g:m+=g}return[m,w]}(e),e=o[0],d=o[1]),a=h_e(og(e,t),l?this:AC,Dm),(r||i||d.length)&&(s=fsn(a),r&&(s.dotAll=!0,s.raw=Dm(function(f){for(var g,b=f.length,v=0,m="",w=!1;v<=b;v++)(g=pR(f,v))!=="\\"?w||g!=="."?(g==="["?w=!0:g==="]"&&(w=!1),m+=g):m+="[\\s\\S]":m+=g+pR(f,++v);return m}(e),n)),i&&(s.sticky=!0),d.length&&(s.groups=d)),e!==h)try{nh(a,"source",h===""?"(?:)":h)}catch{}return a},Ssn=function(e){e in Dm||hsn(Dm,e,{configurable:!0,get:function(){return og[e]},set:function(t){og[e]=t}})},The=psn(og),Phe=0;The.length>Phe;)Ssn(The[Phe++]);AC.constructor=Dm,Dm.prototype=AC,pu(hn,"RegExp",Dm)}PK("RegExp");var Asn=new RegExp(" ","g");function H_e(e){return e.replace(Asn," ")}function Dhe(e,t){var n=e.length;if(n){var r=e[n-1];if(In.isText(r)){var i=Object.keys(r);if(i.length===1&&i[0]==="text")return r.text=r.text+t,!0}}return!1}function Isn(e,t,n){return{type:"paragraph",children:[{text:ut(e).text().replace(/\s+/gm," ")}]}}function E8(e,t){var n=function(o,a){var s=[];if(o.attr("data-w-e-is-void")!=null)return s;var l=o[0].childNodes;return l.length===1&&l[0].nodeName==="BR"?(s.push({text:""}),s):(l.forEach(function(u){if(u.nodeType!==mp.ELEMENT_NODE){if(u.nodeType===mp.TEXT_NODE){var c=u.textContent||"";if(c.trim()===""&&c.indexOf(`
|
|
`)>=0)return;c&&(c=H_e(c),Dhe(s,c)||s.push({text:c}))}}else{if(u.nodeName==="BR")return void(Dhe(s,`
|
|
`)||s.push({text:`
|
|
`}));var d=BK(ut(u),a);Array.isArray(d)?d.forEach(function(h){return s.push(h)}):s.push(d)}}),s)}(e,t),r=function(o){for(var a in A4)if(o[0].matches(a))return A4[a];return Isn}(e),i=r(e[0],n,t);return Array.isArray(i)||(i=[i]),i.forEach(function(o){_e.isVoid(t,o)||(n.length===0&&(o.children=[{text:e.text().replace(/\s+/gm," ")}]),LK.forEach(function(a){o=a(e[0],o,t)}))}),i}function _8(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
|
|
`));var n=e[0].textContent||"";n=function(i){return i.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=H_e(n)};return LK.forEach(function(i){r=i(e[0],r,t)}),r}function BK(e,t){j_e.forEach(function(r){var i=r.selector,o=r.preParseHtml;e[0].matches(i)&&(e=ut(o(e[0])))});var n=che(e);return n==="span"?e.attr("data-w-e-type")?E8(e,t):_8(e,t):n==="code"?che(e.parent())==="pre"?E8(e,t):_8(e,t):V_e.includes(n)?_8(e,t):E8(e,t)}function z_e(e,t,n){var r=ut(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function Rhe(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(i){return"<p>"+i+"</p>"}).join(""));var r=ut("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(i){var o=BK(ut(i),e);Array.isArray(o)?o.forEach(function(a){return n.push(a)}):n.push(o)}),n}var ksn=xh.f,$he=_B.fastKey,Mhe=ul.set,T8=ul.getterFor,Esn={getConstructor:function(e,t,n,r){var i=e(function(u,c){TB(u,o),Mhe(u,{type:t,index:IB(null),first:void 0,last:void 0,size:0}),ys||(u.size=0),c!=null&&_E(c,u[r],{that:u,AS_ENTRIES:n})}),o=i.prototype,a=T8(t),s=function(u,c,d){var h,f,g=a(u),b=l(u,c);return b?b.value=d:(g.last=b={index:f=$he(c,!0),key:c,value:d,previous:h=g.last,next:void 0,removed:!1},g.first||(g.first=b),h&&(h.next=b),ys?g.size++:u.size++,f!=="F"&&(g.index[f]=b)),u},l=function(u,c){var d,h=a(u),f=$he(c);if(f!=="F")return h.index[f];for(d=h.first;d;d=d.next)if(d.key==c)return d};return sx(o,{clear:function(){for(var u=a(this),c=u.index,d=u.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=void 0),delete c[d.index],d=d.next;u.first=u.last=void 0,ys?u.size=0:this.size=0},delete:function(u){var c=this,d=a(c),h=l(c,u);if(h){var f=h.next,g=h.previous;delete d.index[h.index],h.removed=!0,g&&(g.next=f),f&&(f.previous=g),d.first==h&&(d.first=f),d.last==h&&(d.last=g),ys?d.size--:c.size--}return!!h},forEach:function(u){for(var c,d=a(this),h=h1(u,arguments.length>1?arguments[1]:void 0);c=c?c.next:d.first;)for(h(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(u){return!!l(this,u)}}),sx(o,n?{get:function(u){var c=l(this,u);return c&&c.value},set:function(u,c){return s(this,u===0?0:u,c)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),ys&&ksn(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=T8(t),o=T8(r);bK(e,t,function(a,s){Mhe(this,{type:r,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return a.target&&(a.last=l=l?l.next:a.state.first)?s=="keys"?{value:l.key,done:!1}:s=="values"?{value:l.value,done:!1}:{value:[l.key,l.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),PK(t)}};p_e("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Esn);var Lhe=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function Bhe(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):Rt.insertNodes(e,t,{mode:"highest"})}var _sn=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var i=t.selection;if(i){var o=si(Vt.edges(i),2),a=o[0],s=o[1],l=_e.void(t,{at:a.path}),u=_e.void(t,{at:s.path});if(!Vt.isCollapsed(i)||l){var c=tt.toDOMRange(t,i),d=c.cloneContents(),h=d.childNodes[0];if(d.childNodes.forEach(function(S){S.textContent&&S.textContent.trim()!==""&&(h=S)}),u){var f=si(u,1)[0],g=c.cloneRange(),b=tt.toDOMNode(t,f);g.setEndAfter(b),d=g.cloneContents()}if(l&&(h=d.querySelector("[data-slate-spacer]")),Array.from(d.querySelectorAll("[data-slate-zero-width]")).forEach(function(S){var I=S.getAttribute("data-slate-zero-width")==="n";S.textContent=I?`
|
|
`:""}),b_e(h)){var v=h.ownerDocument.createElement("span");v.style.whiteSpace="pre",v.appendChild(h),d.appendChild(v),h=v}var m=t.getFragment(),w=JSON.stringify(m),k=window.btoa(encodeURIComponent(w));h.setAttribute("data-slate-fragment",k),r.setData("application/x-slate-fragment",k);var T=d.ownerDocument.createElement("div");return T.appendChild(d),T.setAttribute("hidden","true"),d.ownerDocument.body.appendChild(T),r.setData("text/html",T.innerHTML),r.setData("text/plain",$an(T)),d.ownerDocument.body.removeChild(T),r}}},t.insertData=function(r){var i,o,a=r.getData("application/x-slate-fragment");if(a){var s=decodeURIComponent(window.atob(a)),l=JSON.parse(s);t.insertFragment(l)}else{var u=r.getData("text/plain"),c=r.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(u){var d=u.split(/\r\n|\r|\n/),h=!1;try{for(var f=Wc(d),g=f.next();!g.done;g=f.next()){var b=g.value;h&&Rt.splitNodes(t,{always:!0}),n(b),h=!0}}catch(v){i={error:v}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}}}},t},ck=function(e){return e!=null},Tsn={object:!0,function:!0,undefined:!0},Psn=/^\s*class[\s{/}]/,Dsn=Function.prototype.toString,Fhe=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!ck(r)&&hasOwnProperty.call(Tsn,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(t)}(e)&&!Psn.test(Dsn.call(e))},FK=function(e){return e!=null},Rsn=Object.keys,$sn=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return Rsn(FK(e)?Object(e):e)},Msn=function(e){if(!FK(e))throw new TypeError("Cannot use null or undefined");return e},Lsn=Math.max,Nhe=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,i,o=Lsn(arguments.length,2);for(e=Object(Msn(e)),i=function(a){try{e[a]=t[a]}catch(s){n||(n=s)}},r=1;r<o;++r)$sn(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},Bsn=Array.prototype.forEach,Fsn=Object.create,Nsn=function(e,t){var n;for(n in e)t[n]=e[n]},Vhe=function(e){var t=Fsn(null);return Bsn.call(arguments,function(n){FK(n)&&Nsn(Object(n),t)}),t},P8="razdwatrzy",Vsn=String.prototype.indexOf,tI=typeof P8.contains=="function"&&P8.contains("dwa")===!0&&P8.contains("foo")===!1?String.prototype.contains:function(e){return Vsn.call(this,e,arguments[1])>-1},fR=eT(function(e){var t=e.exports=function(n,r){var i,o,a,s,l;return arguments.length<2||typeof n!="string"?(s=r,r=n,n=null):s=arguments[2],ck(n)?(i=tI.call(n,"c"),o=tI.call(n,"e"),a=tI.call(n,"w")):(i=a=!0,o=!1),l={value:r,configurable:i,enumerable:o,writable:a},s?Nhe(Vhe(s),l):l};t.gs=function(n,r,i){var o,a,s,l;return typeof n!="string"?(s=i,i=r,r=n,n=null):s=arguments[3],ck(r)?Fhe(r)?ck(i)?Fhe(i)||(s=i,i=void 0):i=void 0:(s=r,r=i=void 0):r=void 0,ck(n)?(o=tI.call(n,"c"),a=tI.call(n,"e")):(o=!0,a=!1),l={get:r,set:i,configurable:o,enumerable:a},s?Nhe(Vhe(s),l):l}}),D8=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},jsn=eT(function(e,t){var n,r,i,o,a,s,l,u=Function.prototype.apply,c=Function.prototype.call,d=Object.create,h=Object.defineProperty,f=Object.defineProperties,g=Object.prototype.hasOwnProperty,b={configurable:!0,enumerable:!1,writable:!0};n=function(v,m){var w;return D8(m),g.call(this,"__ee__")?w=this.__ee__:(w=b.value=d(null),h(this,"__ee__",b),b.value=null),w[v]?typeof w[v]=="object"?w[v].push(m):w[v]=[w[v],m]:w[v]=m,this},r=function(v,m){var w,k;return D8(m),k=this,n.call(this,v,w=function(){i.call(k,v,w),u.call(m,this,arguments)}),w.__eeOnceListener__=m,this},i=function(v,m){var w,k,T,S;if(D8(m),!g.call(this,"__ee__"))return this;if(!(w=this.__ee__)[v])return this;if(typeof(k=w[v])=="object")for(S=0;T=k[S];++S)T!==m&&T.__eeOnceListener__!==m||(k.length===2?w[v]=k[S?0:1]:k.splice(S,1));else k!==m&&k.__eeOnceListener__!==m||delete w[v];return this},o=function(v){var m,w,k,T,S;if(g.call(this,"__ee__")&&(T=this.__ee__[v]))if(typeof T=="object"){for(w=arguments.length,S=new Array(w-1),m=1;m<w;++m)S[m-1]=arguments[m];for(T=T.slice(),m=0;k=T[m];++m)u.call(k,this,S)}else switch(arguments.length){case 1:c.call(T,this);break;case 2:c.call(T,this,arguments[1]);break;case 3:c.call(T,this,arguments[1],arguments[2]);break;default:for(w=arguments.length,S=new Array(w-1),m=1;m<w;++m)S[m-1]=arguments[m];u.call(T,this,S)}},a={on:n,once:r,off:i,emit:o},s={on:fR(n),once:fR(r),off:fR(i),emit:fR(o)},l=f({},s),e.exports=t=function(v){return v==null?d(l):f(Object(v),s)},t.methods=a});function gR(e){var t=she.get(e);return t==null&&(t=jsn(),she.set(e,t)),t}var I4=new WeakMap;function jhe(e,t){var n=I4.get(e);n==null&&(n=new Set,I4.set(e,n)),n.add(t)}function Wsn(e){return I4.get(e)||new Set}function Hsn(e){I4.set(e,new Set)}function NK(e){var t=tt.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),i=t.offset();return{top:i.top,left:i.left,width:n,height:r}}function VK(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=NK(e);if(r==null)return t;var i=r.top,o=r.left,a=r.width,s=r.height,l=tt.toDOMRange(e,n).getClientRects()[0];if(l==null)return t;l.width;var u=l.height,c={},d=l.top-i,h=l.left-o;if(h>a/2){var f=a-h;c.right=f+5+"px"}else c.left=h+5+"px";if(d>s/2){var g=s-d;c.bottom=g+5+"px"}else{var b=d+u;b<0&&(b=0),c.top=b+5+"px"}return c}function jK(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var i=jn.isElement(t)&&e.isVoid(t),o=jn.isElement(t)&&e.isInline(t),a=O4.get(t);if(a==null)return r;var s=a.getBoundingClientRect(),l=s.top,u=s.left,c=s.height,d=s.width;if(i){var h=function(O){var y=[];y.push(O);for(var _=0;y.length>0;){var A=y.pop();if(A==null||++_>1e4)break;var R=A.nodeName;if(A.nodeType===1){var D=R.toLowerCase();if(Dan.includes(D)||D==="iframe"||D==="video")return A;var C=A.children||[],x=C.length;if(x)for(var P=x-1;P>=0;P--)y.push(C[P])}}return null}(a);if(h!=null){var f=h.getBoundingClientRect();l=f.top,c=f.height}}var g=NK(e);if(g==null)return r;var b,v=g.top,m=g.left,w=g.width,k=g.height,T={},S=l-v,I=u-m;if(n==="bar")return T.left=I+"px",S>40?T.bottom=k-S+5+"px":T.top=S+c+5+"px",T;if(n==="modal")return i?o?I>(w-d)/2?T.right=w-I+5+"px":T.left=I+d+5+"px":T.left="20px":T.left=I+"px",i?((b=S)<0&&(b=0),T.top=b+"px"):S>(k-c)/2?T.bottom=k-S+5+"px":((b=S+c)<0&&(b=0),T.top=b+5+"px"),T;throw new Error("type '"+n+"' is invalid")}function kZ(e,t){fd(function(){var n=NK(e);if(n!=null){var r,i=n.top,o=n.left,a=n.width,s=n.height,l=t.offset(),u=l.top,c=l.left,d=t.width(),h=t.height(),f=u-i,g=c-o,b=t.attr("style");if(b.indexOf("top")>=0&&(r=f+h-s)>0){var v=t.css("top"),m=parseInt(v.toString())-r;m<0&&(m=0),t.css("top",m+"px")}if(b.indexOf("bottom")>=0&&u<0){var w=t.css("bottom"),k=parseInt(w.toString())-Math.abs(u);t.css("bottom",k+"px")}if(b.indexOf("left")>=0&&(r=g+d-a)>0){var T=t.css("left"),S=parseInt(T.toString())-r;S<0&&(S=0),t.css("left",S+"px")}if(b.indexOf("right")>=0&&c<0){var I=t.css("right"),O=parseInt(I.toString())-Math.abs(c);t.css("right",O+"px")}}})}var zsn=kB("slice"),Zsn=Yo("species"),R8=hn.Array,Gsn=Math.max;zo({target:"Array",proto:!0,forced:!zsn},{slice:function(e,t){var n,r,i,o=B0(this),a=B1(o),s=ix(e,a),l=ix(t===void 0?a:t,a);if(g4(o)&&(n=o.constructor,(AB(n)&&(n===R8||g4(n.prototype))||bo(n)&&(n=n[Zsn])===null)&&(n=void 0),n===R8||n===void 0))return A_e(o,s,l);for(r=new(n===void 0?R8:n)(Gsn(l-s,0)),i=0;s<l;s++,i++)s in o&&IE(r,i,o[s]);return r.length=i,r}});var Qsn=nT.f,Whe=Zn("".startsWith),Usn=Zn("".slice),Xsn=Math.min,Z_e=gK("startsWith"),Ysn=!Z_e&&!!function(){var e=Qsn(String.prototype,"startsWith");return e&&!e.writable}();zo({target:"String",proto:!0,forced:!Ysn&&!Z_e},{startsWith:function(e){var t=Ki(pd(this));fK(e);var n=Ux(Xsn(arguments.length>1?arguments[1]:void 0,t.length)),r=Ki(e);return Whe?Whe(t,r,n):Usn(t,n,n+r.length)===r}});var Qw=Object.assign,Hhe=Object.defineProperty,Ksn=Zn([].concat),zhe=!Qw||Pi(function(){if(ys&&Qw({b:1},Qw(Hhe({},"a",{enumerable:!0,get:function(){Hhe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(i){t[i]=i}),Qw({},e)[n]!=7||aO(Qw({},t)).join("")!=r})?function(e,t){for(var n=L0(e),r=arguments.length,i=1,o=t_e.f,a=qEe.f;r>i;)for(var s,l=SB(arguments[i++]),u=o?Ksn(aO(l),o(l)):aO(l),c=u.length,d=0;c>d;)s=u[d++],ys&&!fi(a,l,s)||(n[s]=l[s]);return n}:Qw;zo({target:"Object",stat:!0,forced:Object.assign!==zhe},{assign:zhe});var qsn=["props","attrs","style","dataset","on","hook"];function G_e(e){var t=e.data,n=t===void 0?{}:t,r=e.children,i=r===void 0?[]:r;Object.keys(n).forEach(function(o){var a,s,l=n[o];if(o!=="key"){if(!qsn.includes(o)){if(o.startsWith("data-")){var u=o.slice(5);return u=Onn(u),function(c,d){c.data==null&&(c.data={});var h=c.data;h.dataset==null&&(h.dataset={}),Object.assign(h.dataset,d)}(e,((a={})[u]=l,a)),void delete n[o]}(function(c,d){c.data==null&&(c.data={});var h=c.data;h.props==null&&(h.props={}),Object.assign(h.props,d)})(e,(s={},s[o]=l,s)),delete n[o]}}else e.key=l}),i.length>0&&i.forEach(function(o){typeof o!="string"&&G_e(o)})}var EZ=[],Q_e={};function Jsn(e,t,n){return mr(n.isInline(e)?"span":"div",null,t)}function Zhe(e,t){return t===void 0&&(t=!1),mr("span",{"data-slate-string":!0},t?e+`
|
|
`:e)}function $8(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),mr("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?mr("br",null):null)}function _Z(e,t,n,r){return TE.set(e,t),lx.set(e,n),jn.isElement(e)?function(i,o){var a,s=tt.findKey(o,i),l=o.isInline(i),u=_e.isVoid(o,i),c=N_e(s.id),d={id:c,key:s.id,"data-slate-node":"element","data-slate-inline":l},h=i.type,f=i.children,g=f===void 0?[]:f,b=function(S){return Q_e[S]||Jsn}(h);a=u?null:g.map(function(S,I){return _Z(S,I,i,o)});var v=b(i,a,o);if(u){d["data-slate-void"]=!0;var m=l?"span":"div",w=si(vn.texts(i),1),k=si(w[0],1)[0],T=mr(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},_Z(k,0,i,o));v=mr(m,{style:{position:"relative"}},v,T),TE.set(k,0),lx.set(k,i)}return v.data==null&&(v.data={}),Object.assign(v.data,d),u||l||(v=function(S,I){var O=I;return EZ.forEach(function(y){O=y(S,I)}),O}(i,v)),fd(function(){var S=vZ(c);S!=null&&(mZ.set(s,S),O4.set(i,S),C4.set(S,i))}),v}(e,r):function(i,o,a){if(i.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(i));var s=tt.findKey(a,i),l=a.getConfig().decorate;if(l==null)throw new Error("Can not get config.decorate");var u=tt.findPath(a,i),c=l([i,u]),d=In.decorations(i,c),h=d.map(function(b,v){var m=function(w,k,T,S,I){k===void 0&&(k=!1);var O=w.text,y=tt.findPath(I,T),_=Ot.parent(y);if(_e.isEditor(S))throw new Error("Text node "+JSON.stringify(T)+" parent is Editor");return I.isVoid(S)?$8(vn.string(S).length):O!==""||S.children[S.children.length-1]!==T||I.isInline(S)||_e.string(I,_)!==""?O===""?$8():k&&O.slice(-1)===`
|
|
`?Zhe(O,!0):Zhe(O):$8(0,!0)}(b,v===d.length-1,i,o,a);return m=function(w,k){var T=k;return EZ.forEach(function(S){T=S(w,T)}),T}(b,m),mr("span",{"data-slate-leaf":!0},m)}),f=function(b){return"w-e-text-"+b}(s.id),g=mr("span",{"data-slate-node":"text",id:f,key:s.id},h);return fd(function(){var b=vZ(f);b!=null&&(mZ.set(s,b),O4.set(i,b),C4.set(b,i))}),g}(e,n,r)}function eln(e,t){var n,r=e.$scroll,i=function(b){return"w-e-textarea-"+b}(e.id),o=t.getConfig(),a=o.readOnly,s=o.autoFocus,l=function(b,v){return v===void 0&&(v=!1),rx("div#"+b,{props:{contentEditable:!v}})}(i,a),u=t.children||[];l.children=u.map(function(b,v){var m=_Z(b,v,t,t);return G_e(m),m});var c=ihe.get(e);if(c==null&&(c=!0),c){var d=function(b,v){return ut(`<div
|
|
id="`+b+`"
|
|
data-slate-editor
|
|
data-slate-node="value"
|
|
suppressContentEditableWarning
|
|
role="textarea"
|
|
spellCheck="true"
|
|
autoCorrect="true"
|
|
autoCapitalize="true"
|
|
></div>`)}(i);r.append(d),e.$textArea=d,n=d[0],(f=ztn([Gtn,Ytn,qtn,Qtn,Xtn,Ztn]))(n,l),ihe.set(e,!1),ohe.set(e,f)}else{var h=ahe.get(e),f=ohe.get(e);if(h==null||f==null)return;n=h.elm,f(h,l)}if(n!=null||(n=vZ(i))!=null){if((c?s:t.isFocused())&&n.focus({preventScroll:!0}),c){var g=TK(n);g&&y_e.set(t,g)}_K.set(t,n),O4.set(t,n),C4.set(n,t),ahe.set(e,l)}}function Ghe(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Qhe(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function M8(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Qhe(n.overflowY,t)||Qhe(n.overflowX,t)||function(r){var i=function(o){if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)}(e)}return!1}function mR(e,t,n,r,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0}function Uhe(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l=typeof a=="function"?a:function(le){return le!==a};if(!Ghe(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,c=[],d=e;Ghe(d)&&l(d);){if((d=d.parentElement)===u){c.push(d);break}d!=null&&d===document.body&&M8(d)&&!M8(document.documentElement)||d!=null&&M8(d,s)&&c.push(d)}for(var h=n.visualViewport?n.visualViewport.width:innerWidth,f=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),m=v.height,w=v.width,k=v.top,T=v.right,S=v.bottom,I=v.left,O=i==="start"||i==="nearest"?k:i==="end"?S:k+m/2,y=o==="center"?I+w/2:o==="end"?T:I,_=[],A=0;A<c.length;A++){var R=c[A],D=R.getBoundingClientRect(),C=D.height,x=D.width,P=D.top,$=D.right,L=D.bottom,V=D.left;if(r==="if-needed"&&k>=0&&I>=0&&S<=f&&T<=h&&k>=P&&S<=L&&I>=V&&T<=$)return _;var H=getComputedStyle(R),Q=parseInt(H.borderLeftWidth,10),U=parseInt(H.borderTopWidth,10),K=parseInt(H.borderRightWidth,10),J=parseInt(H.borderBottomWidth,10),ue=0,ee=0,N="offsetWidth"in R?R.offsetWidth-R.clientWidth-Q-K:0,q="offsetHeight"in R?R.offsetHeight-R.clientHeight-U-J:0;if(u===R)ue=i==="start"?O:i==="end"?O-f:i==="nearest"?mR(b,b+f,f,U,J,b+O,b+O+m,m):O-f/2,ee=o==="start"?y:o==="center"?y-h/2:o==="end"?y-h:mR(g,g+h,h,Q,K,g+y,g+y+w,w),ue=Math.max(0,ue+b),ee=Math.max(0,ee+g);else{ue=i==="start"?O-P-U:i==="end"?O-L+J+q:i==="nearest"?mR(P,L,C,U,J+q,O,O+m,m):O-(P+C/2)+q/2,ee=o==="start"?y-V-Q:o==="center"?y-(V+x/2)+N/2:o==="end"?y-$+K+N:mR(V,$,x,Q,K+N,y,y+w,w);var G=R.scrollLeft,ne=R.scrollTop;O+=ne-(ue=Math.max(0,Math.min(ne+ue,R.scrollHeight-C+q))),y+=G-(ee=Math.max(0,Math.min(G+ee,R.scrollWidth-x+N)))}_.push({el:R,top:ue,left:ee})}return _}function Xhe(e){return e===Object(e)&&Object.keys(e).length!==0}function Pc(e,t){return p1(t)&&tt.hasDOMNode(e,t,{editable:!0})}function Yhe(e,t){if(e.getConfig().readOnly)return!1;var n=IC(e,t)&&tt.toSlateNode(e,t);return _e.isVoid(e,n)}function IC(e,t){return p1(t)&&tt.hasDOMNode(e,t)}function U_e(e,t,n){n===void 0&&(n=!1);var r=t.selection,i=t.getConfig(),o=tt.findDocumentOrShadowRoot(t).getSelection();if(o&&(!e.isComposing||n)&&t.isFocused()){var a=o.type!=="None";if(r||a){var s=_K.get(t),l=!1;if(s.contains(o.anchorNode)&&s.contains(o.focusNode)&&(l=!0),a&&l&&r){var u=tt.toSlateRange(t,o,{exactMatch:!0,suppressThrow:!0});if(u&&Vt.equals(u,r)){var c=!0;if(Vt.isCollapsed(r)){var d=o.anchorNode,h=o.anchorOffset;if(d===s){var f=s.childNodes,g=void 0;(g=f[h])&&g.matches("table")&&(c=!1),(g=f[h-1])&&g.matches("table")&&(c=!1)}}if(c)return}}if(!r||tt.hasRange(t,r)){e.isUpdatingSelection=!0;var b=r&&tt.toDOMRange(t,r);if(b){Vt.isBackward(r)?o.setBaseAndExtent(b.endContainer,b.endOffset,b.startContainer,b.startOffset):o.setBaseAndExtent(b.startContainer,b.startOffset,b.endContainer,b.endOffset);var v=b.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=b.getBoundingClientRect.bind(b);var m=document.body;(function(w,k){var T=!w.ownerDocument.documentElement.contains(w);if(Xhe(k)&&typeof k.behavior=="function")return k.behavior(T?[]:Uhe(w,k));if(!T){var S=function(I){return I===!1?{block:"end",inline:"nearest"}:Xhe(I)?I:{block:"start",inline:"nearest"}}(k);(function(I,O){O===void 0&&(O="auto");var y="scrollBehavior"in document.body.style;I.forEach(function(_){var A=_.el,R=_.top,D=_.left;A.scroll&&y?A.scroll({top:R,left:D,behavior:O}):(A.scrollTop=R,A.scrollLeft=D)})})(Uhe(w,S),S.behavior)}})(v,{scrollMode:"if-needed",boundary:i.scroll?s.parentElement:m,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else o.removeAllRanges();setTimeout(function(){b&&Jk&&s.focus(),e.isUpdatingSelection=!1})}else t.selection=tt.toSlateRange(t,o,{exactMatch:!1,suppressThrow:!1})}}}var L8=new WeakMap,Khe=new WeakMap,tln={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},nln={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},rln={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Io=function(e){var t=tln[e],n=nln[e],r=rln[e],i=t&&R6(t),o=n&&R6(n),a=r&&R6(r);return function(s){return!(!i||!i(s))||!!(yZ&&o&&o(s))||!(yZ||!a||!a(s))}},No={isBold:Io("bold"),isCompose:Io("compose"),isMoveBackward:Io("moveBackward"),isMoveForward:Io("moveForward"),isDeleteBackward:Io("deleteBackward"),isDeleteForward:Io("deleteForward"),isDeleteLineBackward:Io("deleteLineBackward"),isDeleteLineForward:Io("deleteLineForward"),isDeleteWordBackward:Io("deleteWordBackward"),isDeleteWordForward:Io("deleteWordForward"),isExtendBackward:Io("extendBackward"),isExtendForward:Io("extendForward"),isExtendLineBackward:Io("extendLineBackward"),isExtendLineForward:Io("extendLineForward"),isItalic:Io("italic"),isMoveLineBackward:Io("moveLineBackward"),isMoveLineForward:Io("moveLineForward"),isMoveWordBackward:Io("moveWordBackward"),isMoveWordForward:Io("moveWordForward"),isRedo:Io("redo"),isSplitBlock:Io("splitBlock"),isTransposeCharacter:Io("transposeCharacter"),isUndo:Io("undo"),isTab:Io("tab"),isSelectAll:Io("selectAll")};function Na(e){e.preventDefault()}var iln={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(KA&&!i&&Pc(n,r.target)){var o=n.selection,a=r.inputType,s=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var l=si(r.getTargetRanges(),1)[0];if(l){var u=tt.toSlateRange(n,l,{exactMatch:!1,suppressThrow:!1});o&&Vt.equals(o,u)||Rt.select(n,u)}}if(o&&Vt.isExpanded(o)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";_e.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":_e.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":_e.deleteForward(n);break;case"deleteContentBackward":_e.deleteBackward(n);break;case"deleteEntireSoftLine":_e.deleteBackward(n,{unit:"line"}),_e.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":_e.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":_e.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":_e.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":_e.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":_e.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":_e.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":_e.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!m8.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s=="string"&&_e.insertText(n,s)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,o=t.latestElement;if(!n.getConfig().readOnly&&!i&&Pc(n,r.target)){var a=tt.findDocumentOrShadowRoot(n);if(o!==a.activeElement){var s=r.relatedTarget;if(!(s===tt.toDOMNode(n,n)||Vd(s)&&s.hasAttribute("data-slate-spacer"))){if(s!=null&&p1(s)&&tt.hasDOMNode(n,s)){var l=tt.toSlateNode(n,s);if(jn.isElement(l)&&!n.isVoid(l))return}if(YA){var u=a.getSelection();u==null||u.removeAllRanges()}_b.delete(n)}}}},focus:function(e,t,n){var r=tt.toDOMNode(n,n),i=tt.findDocumentOrShadowRoot(n);t.latestElement=i.activeElement,Jk&&e.target!==r?r.focus():_b.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&IC(n,e.target)&&p1(e.target)){var r=tt.toSlateNode(n,e.target),i=tt.findPath(n,r);if(_e.hasPath(n,i)&&vn.get(n,i)===r){var o=_e.start(n,i),a=_e.end(n,i),s=_e.void(n,{at:o}),l=_e.void(n,{at:a});if(s&&l&&Ot.equals(s[1],l[1])){var u=_e.range(n,o);Rt.select(n,u)}}}},compositionstart:function(e,t,n){if(Pc(n,e.target)){var r=n.selection;if(r&&Vt.isExpanded(r)&&(_e.deleteFragment(n),Promise.resolve().then(function(){U_e(t,n,!0)})),r&&Vt.isCollapsed(r)){var i=tt.toDOMRange(n,r).startContainer,o=i.textContent||"";L8.set(n,o),Khe.set(n,i)}t.isComposing=!0,function(a,s){var l;s.getConfig().placeholder&&s.isEmpty()&&a.showPlaceholder&&((l=a.$placeholder)===null||l===void 0||l.hide(),a.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(Pc(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(bZ||Jk)&&tt.cleanExposedTexNodeInSelectionBlock(n);for(var o=Vt.isBackward(i)?i.focus:i.anchor,a=si(_e.node(n,[o.path[0]]),1)[0],s=0;s<o.path.length;s++){var l=si(_e.node(n,o.path.slice(0,s+1)),1)[0];if(jn.isElement(l)&&((YA||Jk)&&l.type==="link"||l.type==="code")){tt.setNewKey(a);break}}var u=r.data;if(u){if(n.getConfig().maxLength){var c=tt.getLeftLengthOfMaxLength(n);c<u.length?(tt.toDOMRange(n,i).startContainer.textContent=L8.get(n)||"",c>0&&_e.insertText(n,u.slice(0,c)),t.changeViewState()):_e.insertText(n,u)}else _e.insertText(n,u);YA||setTimeout(function(){var d=n.selection;if(d!=null){var h=Khe.get(n);h!=null&&tt.toDOMRange(n,d).startContainer!==h&&(h.textContent=L8.get(n)||"")}})}}}},compositionupdate:function(e,t,n){Pc(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&Pc(n,r.target)){if(function(a,s){var l=PB.get(a),u=l&&l.getMenus(),c=w4.get(a),d=c&&c.getMenus(),h=jc(jc({},u),d);for(var f in h){var g=h[f],b=g.hotkey;if(b&&Ann(b,s)&&!g.isDisabled(a)){var v=g.getValue(a);g.exec(a,v)}}}(n,r),No.isTab(r))return Na(r),void n.handleTab();if(No.isRedo(r))return Na(r),void(typeof n.redo=="function"&&n.redo());if(No.isUndo(r))return Na(r),void(typeof n.undo=="function"&&n.undo());if(No.isMoveLineBackward(r))return Na(r),void Rt.move(n,{unit:"line",reverse:!0});if(No.isMoveLineForward(r))return Na(r),void Rt.move(n,{unit:"line"});if(No.isExtendLineBackward(r))return Na(r),void Rt.move(n,{unit:"line",edge:"focus",reverse:!0});if(No.isExtendLineForward(r))return Na(r),void Rt.move(n,{unit:"line",edge:"focus"});if(No.isMoveBackward(r))return Na(r),void(i&&Vt.isCollapsed(i)?Rt.move(n,{reverse:!0}):Rt.collapse(n,{edge:"start"}));if(No.isMoveForward(r))return Na(r),void(i&&Vt.isCollapsed(i)?Rt.move(n):Rt.collapse(n,{edge:"end"}));if(No.isMoveWordBackward(r))return Na(r),i&&Vt.isExpanded(i)&&Rt.collapse(n,{edge:"focus"}),void Rt.move(n,{unit:"word",reverse:!0});if(No.isMoveWordForward(r))return Na(r),i&&Vt.isExpanded(i)&&Rt.collapse(n,{edge:"focus"}),void Rt.move(n,{unit:"word"});if(No.isSelectAll(r))return Na(r),void n.selectAll();if(KA){if((bZ||YA)&&i&&(No.isDeleteBackward(r)||No.isDeleteForward(r))&&Vt.isCollapsed(i)){var o=vn.parent(n,i.anchor.path);if(jn.isElement(o)&&_e.isVoid(n,o)&&_e.isInline(n,o))return r.preventDefault(),void Rt.delete(n,{unit:"block"})}}else{if(No.isBold(r)||No.isItalic(r)||No.isTransposeCharacter(r))return void Na(r);if(No.isSplitBlock(r))return Na(r),void _e.insertBreak(n);if(No.isDeleteBackward(r))return Na(r),void(i&&Vt.isExpanded(i)?_e.deleteFragment(n,{direction:"backward"}):_e.deleteBackward(n));if(No.isDeleteForward(r))return Na(r),void(i&&Vt.isExpanded(i)?_e.deleteFragment(n,{direction:"forward"}):_e.deleteForward(n));if(No.isDeleteLineBackward(r))return Na(r),void(i&&Vt.isExpanded(i)?_e.deleteFragment(n,{direction:"backward"}):_e.deleteBackward(n,{unit:"line"}));if(No.isDeleteLineForward(r))return Na(r),void(i&&Vt.isExpanded(i)?_e.deleteFragment(n,{direction:"forward"}):_e.deleteForward(n,{unit:"line"}));if(No.isDeleteWordBackward(r))return Na(r),void(i&&Vt.isExpanded(i)?_e.deleteFragment(n,{direction:"backward"}):_e.deleteBackward(n,{unit:"word"}));if(No.isDeleteWordForward(r))return Na(r),void(i&&Vt.isExpanded(i)?_e.deleteFragment(n,{direction:"forward"}):_e.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!KA&&!n.getConfig().readOnly&&Pc(n,e.target)){e.preventDefault();var r=e.key;_e.insertText(n,r)}},copy:function(e,t,n){var r=e;if(Pc(n,r.target)){r.preventDefault();var i=r.clipboardData;i!=null&&n.setFragmentData(i)}},cut:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&Pc(n,r.target)){r.preventDefault();var o=r.clipboardData;if(o!=null&&(n.setFragmentData(o),i))if(Vt.isExpanded(i))_e.deleteFragment(n);else{var a=vn.parent(n,i.anchor.path);_e.isVoid(n,a)&&Rt.delete(n)}}},paste:function(e,t,n){m8.set(n,!0);var r=e;if(!n.getConfig().readOnly&&Pc(n,r.target)){var i=n.getConfig().customPaste;if(i&&i(n,r)===!1)return void m8.set(n,!1);if(!KA||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(r)){r.preventDefault();var o=r.clipboardData;o!=null&&n.insertData(o)}}},dragover:function(e,t,n){if(IC(n,e.target)){var r=tt.toSlateNode(n,e.target);_e.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(IC(n,r.target)&&!n.getConfig().readOnly){var i=tt.toSlateNode(n,r.target),o=tt.findPath(n,i);if(_e.isVoid(n,i)||_e.void(n,{at:o,voids:!0})){var a=_e.range(n,o);Rt.select(n,a)}var s=r.dataTransfer;s!=null&&(t.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&IC(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&IC(n,r.target)&&i!=null&&!(KA&&YA&&i.files.length>0)){r.preventDefault();var o=n.selection,a=tt.findEventRange(n,r);Rt.select(n,a),t.isDraggingInternally&&(o&&Rt.delete(n,{at:o}),t.isDraggingInternally=!1),n.insertData(i),n.isFocused()||n.focus()}}},oln=1,aln=function(){function e(t){var n=this;this.id=oln++,this.$textArea=null,this.$progressBar=ut('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=ut('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=u1(function(){var a=n.editorInstance;(function(s,l){var u=s.isComposing,c=s.isUpdatingSelection,d=s.isDraggingInternally;if(!(l.getConfig().readOnly||u||c||d)){var h=tt.findDocumentOrShadowRoot(l),f=h.activeElement,g=tt.toDOMNode(l,l),b=h.getSelection();if(f===g?(s.latestElement=f,_b.set(l,!0)):_b.delete(l),!b)return Rt.deselect(l);var v=b.anchorNode,m=b.focusNode,w=Pc(l,v)||Yhe(l,v),k=Pc(l,m)||Yhe(l,m);if(w&&k){var T=tt.toSlateRange(l,b,{exactMatch:!1,suppressThrow:!1});Rt.select(l,T)}else Rt.deselect(l)}})(n,a)},100);var r=ut(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var i=ut('<div class="w-e-text-container"></div>');i.append(this.$progressBar),i.append(this.$maxLengthInfo),r.append(i);var o=ut('<div class="w-e-scroll"></div>');i.append(o),this.$scroll=o,this.$textAreaContainer=i,fd(function(){var a=n.editorInstance,s=tt.getWindow(a);s.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){s.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),i.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var l=a.getConfig().onChange;l&&a.on("change",function(){return l(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=pZ.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,n=this.$textArea,r=this.$scroll,i=this.editorInstance;n!=null&&(KY(iln,function(o,a){n.on(a,function(s){o(s,t,i)})}),i.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",u1(function(){i.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),i=r.onBlur,o=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){t.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return o&&o(n)}):t.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return i&&i(n)}),t.latestEditorSelection=n.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-tt.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},e.prototype.changeProgress=function(t){var n=this.$progressBar;n.css("width",t+"%"),t>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},e.prototype.changeViewState=function(){var t=this,n=this.editorInstance;eln(this,n),function(r,i){var o,a=i.getConfig().placeholder;if(a){var s=i.isEmpty();if(s&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var l=ut('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(l),r.$placeholder=l}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!s&&r.showPlaceholder&&((o=r.$placeholder)===null||o===void 0||o.hide(),r.showPlaceholder=!1)}}(this,n),fd(function(){U_e(t,n)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function WK(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&WK(t)}function HK(){return ut('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function X_e(){return ut('<div class="w-e-bar-divider"></div>')}function Y_e(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var o=yZ?"cmd":"ctrl";r=r.replace("mod",o)}if(i)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+`
|
|
`+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}AK("match",function(e,t,n){return[function(r){var i=pd(this),o=r==null?void 0:d1(r,e);return o?fi(o,r,i):new RegExp(r)[e](Ki(i))},function(r){var i=_a(this),o=Ki(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return EE(i,o);var s=i.unicode;i.lastIndex=0;for(var l,u=[],c=0;(l=EE(i,o))!==null;){var d=Ki(l[0]);u[c]=d,d===""&&(i.lastIndex=IK(o,Ux(i.lastIndex),s)),c++}return c===0?null:u}]});var zK=function(){function e(t,n,r){var i=this;r===void 0&&(r=!1),this.$elem=ut('<div class="w-e-bar-item"></div>'),this.$button=ut('<button type="button"></button>'),this.disabled=!1,this.menu=n;var o=n.tag,a=n.width;if(o!=="button")throw new Error("Invalid tag '"+o+"', expected 'button'");var s=n.title,l=n.hotkey,u=l===void 0?"":l,c=n.iconSvg,d=c===void 0?"":c,h=this.$button;if(d){var f=ut(d);WK(f),h.append(f)}else h.text(s);Y_e(h,d,s,u,r),r&&d&&h.append(ut('<span class="title">'+s+"</span>")),a&&h.css("width",a+"px"),h.attr("data-menu-key",t),this.$elem.append(h),fd(function(){return i.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),Uu(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=Uu(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=Uu(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=Uu(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var i="disabled";r?n.addClass(i):n.removeClass(i),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),sln=function(e){function t(n,r,i){return i===void 0&&(i=!1),e.call(this,n,r,i)||this}return Yx(t,e),t.prototype.onButtonClick=function(){},t}(zK),ZK=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=gZ.get(t);n==null&&(n=new Set,gZ.set(t,n)),n.add(this),c$.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=c$.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=c$.get(this);t&&t.emit("modalOrPanelHide")}},e}(),lln=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=ut('<div class="w-e-drop-panel"></div>'),r}return Yx(t,e),t.prototype.genSelfElem=function(){return null},t}(ZK),uln=function(e){function t(n,r,i){i===void 0&&(i=!1);var o=e.call(this,n,r,i)||this;if(o.dropPanel=null,o.menu=r,r.showDropPanel){var a=HK();o.$button.append(a)}return o}return Yx(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=Uu(this);if(this.dropPanel==null){var i=new lln(r),o=n.getPanelContentElem(r);i.renderContent(o),i.appendTo(this.$elem),i.show(),this.dropPanel=i}else{var a=this.dropPanel;a.isShow?a.hide():(o=n.getPanelContentElem(r),a.renderContent(o),a.show())}var s=this.dropPanel;if(s.isShow){var l=this.$elem,u=l.offset().left,c=l.parents(".w-e-bar");u-c.offset().left>=c.width()/2?s.$elem.css({left:"none",right:"0"}):s.$elem.css({left:"0",right:"none"})}}},t}(zK),cln=function(e){function t(n,r){r===void 0&&(r=0);var i=e.call(this,n)||this;i.type="modal",i.$elem=ut('<div class="w-e-modal"></div>'),i.width=0,r&&(i.width=r);var o=i.$elem;return o.on("click",function(a){return a.stopPropagation()}),o.on("keyup",function(a){a.code==="Escape"&&(i.hide(),n.restoreSelection())}),i}return Yx(t,e),t.prototype.genSelfElem=function(){var n=this,r=ut('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),i=c$.get(this);return r.on("click",function(){n.hide(),i==null||i.restoreSelection()}),r},t.prototype.setStyle=function(n){var r=this.width,i=this.$elem;i.attr("style",""),r&&i.css("width",r+"px"),i.css(n)},t}(ZK);function tc(e,t,n){var r=ut('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var i=ut('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(i),[r[0],i[0]]}function Kx(e,t){var n=ut('<div class="button-container"></div>'),r=ut('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var dln=function(e){function t(n,r,i){i===void 0&&(i=!1);var o=e.call(this,n,r,i)||this;return o.$body=ut("body"),o.modal=null,o.menu=r,o}return Yx(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=Uu(this),r=this.menu.getModalPositionNode(n);return jn.isElement(r)?jK(n,r,"modal"):VK(n)},t.prototype.handleModal=function(){var n=Uu(this),r=this.menu;if(this.modal==null){var i=new cln(n,r.modalWidth);this.renderAndShowModal(i,!0),this.modal=i}else(i=this.modal).isShow?i.hide():this.renderAndShowModal(i,!1)},t.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var i=Uu(this),o=this.menu;if(o.getModalContentElem!=null){var a=tt.getTextarea(i),s=tt.getToolbar(i),l=((s==null?void 0:s.getConfig())||{}).modalAppendToBody,u=o.getModalContentElem(i);if(n.renderContent(u),l)n.setStyle({left:"0",right:"0"});else{var c=this.getPosition();n.setStyle(c)}r&&(l?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),l||kZ(i,n.$elem),setTimeout(function(){i.blur()})}},t}(zK),hln=function(e){function t(n,r){var i=e.call(this,n)||this;return i.type="selectList",i.$elem=ut('<div class="w-e-select-list"></div>'),r&&i.$elem.css("width",r+"px"),i.$elem.on("click",function(o){o.stopPropagation()}),i}return Yx(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var i=ut("<ul></ul>");n.forEach(function(o){var a=o.value,s=o.text,l=o.selected,u=o.styleForRenderMenuList,c=ut('<li data-value="'+a+'"></li>');if(u&&c.css(u),l){var d=ut('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(d),c.addClass("selected")}c.append(ut('<span data-value="'+a+'">'+s+"</span>")),c.attr("title",s),i.append(c)}),r.append(i)},t.prototype.genSelfElem=function(){return null},t}(ZK),pln=function(){function e(t,n,r){var i=this;r===void 0&&(r=!1),this.$elem=ut('<div class="w-e-bar-item"></div>'),this.$button=ut('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=n.tag,a=n.title,s=n.width,l=n.iconSvg,u=l===void 0?"":l,c=n.hotkey,d=c===void 0?"":c;if(o!=="select")throw new Error("Invalid tag '"+o+"', expected 'select'");var h=this.$button;s&&h.css("width",s+"px"),h.attr("data-menu-key",t),Y_e(h,u,a,d,r),this.$elem.append(h),this.menu=n,fd(function(){return i.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),Uu(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,n=Uu(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new hln(n,r.selectPanelWidth);var i=this.selectList,o=r.getOptions(n);i.renderList(o),i.appendTo(this.$elem),i.show(),i.$elem.on("click","li",function(a){var s=a.target;if(s!=null){a.preventDefault();var l=ut(s).attr("data-value");t.onChange(l)}})}else(i=this.selectList).isShow?i.hide():(o=r.getOptions(n),i.renderList(o),i.show())}},e.prototype.onChange=function(t){var n=Uu(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=Uu(this),n=this.menu,r=n.getValue(t),i=function(s,l){for(var u=s.length,c="",d=0;d<u;d++){var h=s[d];if(h.value===l){c=h.text;break}}return c}(n.getOptions(t),r.toString()),o=this.$button,a=HK();o.empty(),o.text(i),o.append(a)},e.prototype.setDisabled=function(){var t=Uu(this),n=this.menu.isDisabled(t),r=this.$button;(t.selection==null||t.isDisabled())&&(n=!0);var i="disabled";n?r.addClass(i):r.removeClass(i),this.disabled=n},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),qhe=function(){function e(t){this.$elem=ut('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=ut('<div class="w-e-bar-item-menus-container"></div>'),this.$button=ut('<button type="button"></button>');var n=t.key,r=t.iconSvg,i=t.title,o=this.$elem,a=this.$button;if(r){var s=ut(r);WK(s),a.append(s)}else a.text(i);a.attr("data-menu-key",n);var l=HK();a.append(l),o.append(a);var u=this.$container;o.append(u);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(t){var n=t.$elem;this.$container.append(n)},e.prototype.observe=function(t){var n=this.$container;t.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,n=this.$container,r=this.$button,i=new MutationObserver(function(){var o=n.find("button"),a=o.length;if(a!==0){var s=0;o.each(function(l){ut(l).hasClass("disabled")&&s++}),i.disconnect(),s===a?r.addClass("disabled"):r.removeClass("disabled"),t.observe(i)}});return i},e}(),Jhe=new WeakMap;function Uu(e){var t=EK.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function K_e(e,t,n){n===void 0&&(n=!1);var r=Jhe.get(t);if(r)return r;var i=t.tag;if(i==="button"){var o=t.showDropPanel,a=t.showModal;r=o?new uln(e,t,n):a?new dln(e,t,n):new sln(e,t,n)}if(i==="select"&&(r=new pln(e,t,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return Jhe.set(t,r),r}function fln(e,t){var n=e.selection;return n!=null&&!Vt.isCollapsed(n)&&!tt.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var i=r.type;return!!["pre","code","table"].includes(i)||void 0})&&!!In.isText(t)}var gln=function(){function e(){var t=this;this.$elem=ut('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=kEe(function(){var n=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},i=r.node,o=i===void 0?null:i,a=r.menuKeys,s=a===void 0?[]:a;o!=null&&t.changeItemsState(),o&&jn.isElement(o)&&n&&t.isSamePath(o,t.prevSelectedNode)||(t.hideAndClean(),o!=null&&(t.registerItems(s),t.setPosition(o),t.show()),t.prevSelectedNode=o)},200),fd(function(){var n=t.getEditorInstance(),r=t.$elem;r.on("mousedown",function(o){return o.preventDefault()},{passive:!1}),tt.getTextarea(n).$textAreaContainer.append(r),n.on("change",t.changeHoverbarState);var i=t.hideAndClean.bind(t);n.on("scroll",i),n.on("fullScreen",i),n.on("unFullScreen",i)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-t[0].getBoundingClientRect().bottom<360&&(n=!0),n?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var t=this;fd(function(){t.hoverbarItems.forEach(function(n){n.changeMenuState()})})},e.prototype.registerItems=function(t){var n=this,r=this.$elem;t.forEach(function(i){if(i!=="|")n.registerSingleItem(i);else{var o=X_e();r.append(o)}})},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,i=r[t];if(i==null){var o=PE[t];if(o==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof o!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");i=o(),r[t]=i}var a=K_e(t,i);this.hoverbarItems.push(a),EK.set(a,n),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),jn.isElement(t)){var i=jK(n,t,"bar");return r.css(i),void kZ(n,r)}if(In.isText(t))return i=VK(n),r.css(i),void kZ(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,i=[],o=function(s){var l=n[s],u=l.match,c=l.menuKeys,d=c===void 0?[]:c,h=u||function(b,v){return tt.checkNodeType(v,s)},f=si(_e.nodes(t,{match:function(b){return h(t,b)},universal:!0}),1),g=f[0];if(g!=null)return r=g[0],i=d,"break"};for(var a in n)if(o(a)==="break")break;return r==null||i.length===0?null:{node:r,menuKeys:i}},e.prototype.getEditorInstance=function(){var t=fZ.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,n=t===void 0?{}:t,r=n.text;return r&&r.match==null&&(r.match=fln),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=tt.findPath(null,t),i=tt.findPath(null,n);return Ot.equals(r,i)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function q_e(e,t,n,r){if(TE.set(e,t),lx.set(e,n),jn.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach(function(s,l){return q_e(s,l,e,r)}),_e.isVoid(r,e)){var o=si(vn.texts(e),1),a=si(o[0],1)[0];TE.set(a,0),lx.set(a,e)}}}function mln(e){var t=e.selector,n=t===void 0?"":t,r=e.config,i=r===void 0?{}:r,o=e.content,a=e.html,s=e.plugins,l=s===void 0?[]:s,u=(m=>{var w=m,{apply:k}=w;return w.history={undos:[],redos:[]},w.redo=()=>{var{history:T}=w,{redos:S}=T;if(S.length>0){var I=S[S.length-1];LC.withoutSaving(w,()=>{_e.withoutNormalizing(w,()=>{for(var O of I)w.apply(O)})}),T.redos.pop(),T.undos.push(I)}},w.undo=()=>{var{history:T}=w,{undos:S}=T;if(S.length>0){var I=S[S.length-1];LC.withoutSaving(w,()=>{_e.withoutNormalizing(w,()=>{var O=I.map(Ev.inverse).reverse();for(var y of O)w.apply(y)})}),T.redos.push(I),T.undos.pop()}},w.apply=T=>{var{operations:S,history:I}=w,{undos:O}=I,y=O[O.length-1],_=y&&y[y.length-1],A=((x,P)=>!(!P||x.type!=="set_selection"||P.type!=="set_selection"))(T,_),R=LC.isSaving(w),D=LC.isMerging(w);if(R==null&&(R=((x,P)=>x.type!=="set_selection"||x.properties!=null&&x.newProperties!=null)(T)),R){if(D==null&&(D=y!=null&&(S.length!==0||((x,P)=>x.type==="set_selection"||!(!P||x.type!=="insert_text"||P.type!=="insert_text"||x.offset!==P.offset+P.text.length||!Ot.equals(x.path,P.path))||!(!P||x.type!=="remove_text"||P.type!=="remove_text"||x.offset+x.text.length!==P.offset||!Ot.equals(x.path,P.path)))(T,_)||A)),y&&D)A&&y.pop(),y.push(T);else{var C=[T];O.push(C)}for(;O.length>100;)O.shift();(x=>x.type!=="set_selection")(T)&&(I.redos=[])}k(T)},w})(function(m){var w=m,k=w.insertText,T=w.insertNode,S=w.insertFragment,I=w.dangerouslyInsertHtml;return w.insertText=function(O){if(w.getConfig().maxLength){var y=tt.getLeftLengthOfMaxLength(w);y<=0||(y<O.length?k(O.slice(0,y)):k(O))}else k(O)},w.insertNode=function(O){if(w.getConfig().maxLength){var y=tt.getLeftLengthOfMaxLength(w);y<=0||y<vn.string(O).length||T(O)}else T(O)},w.insertFragment=function(O){if(w.getConfig().maxLength)if(O.length!==1)O.forEach(function(_){w.insertNode(_)});else{var y=O[0];if(tt.getLeftLengthOfMaxLength(w)<vn.string(y).length)return;S(O)}else S(O)},w.dangerouslyInsertHtml=function(O,y){if(O===void 0&&(O=""),y===void 0&&(y=!1),O)if(w.getConfig().maxLength){var _=tt.getLeftLengthOfMaxLength(w);if(!(_<=0)){var A=document.createElement("div");A.innerHTML=O;var R=Array.from(A.childNodes).reduce(function(D,C){var x=C.nodeType,P=C.nodeName;return C?x===mp.TEXT_NODE?D+(C.textContent||""):x===mp.ELEMENT_NODE?Lhe.has(P.toLowerCase())?D:D+(C.textContent||""):D:D},"");_<R.length||I(O,y)}}else I(O,y)},w}(function(m){var w=m;return w.on=function(k,T){var S=gR(w);if(S.on(k,T),k==="destroyed"&&jhe(w,T),k!=="destroyed"){var I=function(){return S.off(k,T)};S.on("destroyed",I),jhe(w,I)}},w.once=function(k,T){gR(w).once(k,T)},w.off=function(k,T){gR(w).off(k,T)},w.emit=function(k){for(var T=[],S=1;S<arguments.length;S++)T[S-1]=arguments[S];var I=gR(w);I.emit.apply(I,cZ([k],si(T))),k==="destroyed"&&(Wsn(w).forEach(function(O){return I.off("destroyed",O)}),Hsn(w))},w}(function(m){var w=m;return w.select=function(k){Rt.select(w,k)},w.deselect=function(){var k=w.selection,T=tt.findDocumentOrShadowRoot(w).getSelection();T&&T.rangeCount>0&&T.removeAllRanges(),k&&Rt.deselect(m)},w.move=function(k,T){T===void 0&&(T=!1),k&&(k<0||Rt.move(m,{distance:k,unit:"character",reverse:T}))},w.moveReverse=function(k){w.move(k,!0)},w.restoreSelection=function(){var k=g8.get(w);k!=null&&(w.focus(),Rt.select(w,k))},w.getSelectionPosition=function(){return VK(w)},w.getNodePosition=function(k){return jK(w,k)},w.isSelectedAll=function(){var k=w.selection;if(k==null)return!1;var T=si(Vt.edges(k),2),S=T[0],I=T[1],O=si(_e.edges(w,[]),2),y=O[0],_=O[1];return!(!Vr.equals(S,y)||!Vr.equals(I,_))},w.selectAll=function(){var k=_e.start(w,[]),T=_e.end(w,[]);Rt.select(w,{anchor:k,focus:T})},w}(function(m){var w=m,k=w.onChange,T=w.insertText,S=w.apply,I=w.deleteBackward;return w.insertText=function(O){w.getConfig().readOnly||T(O)},w.apply=function(O){var y,_,A,R,D,C,x,P,$=[];switch(O.type){case"insert_text":case"remove_text":case"set_node":try{for(var L=Wc(_e.levels(w,{at:O.path})),V=L.next();!V.done;V=L.next()){var H=si(V.value,2),Q=H[0],U=H[1],K=tt.findKey(w,Q);$.push([U,K])}}catch(ve){y={error:ve}}finally{try{V&&!V.done&&(_=L.return)&&_.call(L)}finally{if(y)throw y.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var J=Wc(_e.levels(w,{at:Ot.parent(O.path)})),ue=J.next();!ue.done;ue=J.next()){var ee=si(ue.value,2);Q=ee[0],U=ee[1],K=tt.findKey(w,Q),$.push([U,K])}}catch(ve){A={error:ve}}finally{try{ue&&!ue.done&&(R=J.return)&&R.call(J)}finally{if(A)throw A.error}}break;case"move_node":try{for(var N=Wc(_e.levels(w,{at:Ot.common(Ot.parent(O.path),Ot.parent(O.newPath))})),q=N.next();!q.done;q=N.next()){var G=si(q.value,2);Q=G[0],U=G[1],K=tt.findKey(w,Q),$.push([U,K])}}catch(ve){D={error:ve}}finally{try{q&&!q.done&&(C=N.return)&&C.call(N)}finally{if(D)throw D.error}}}S(O);try{for(var ne=Wc($),le=ne.next();!le.done;le=ne.next()){var oe=si(le.value,2);U=oe[0],K=oe[1],Q=si(_e.node(w,U),1)[0],d$.set(Q,K)}}catch(ve){x={error:ve}}finally{try{le&&!le.done&&(P=ne.return)&&P.call(ne)}finally{if(x)throw x.error}}},w.deleteBackward=function(O){if(O!=="line")return I(O);if(m.selection&&Vt.isCollapsed(m.selection)){var y=_e.above(m,{match:function(D){return _e.isBlock(m,D)},at:m.selection});if(y){var _=si(y,2)[1],A=_e.range(m,_,m.selection.anchor),R=function(D,C){var x=_e.range(D,Vt.end(C)),P=Array.from(_e.positions(D,{at:C})),$=0,L=P.length,V=Math.floor(L/2);if(khe(D,_e.range(D,P[$]),x))return _e.range(D,P[$],x);if(P.length<2)return _e.range(D,P[P.length-1],x);for(;V!==P.length&&V!==$;)khe(D,_e.range(D,P[V]),x)?L=V:$=V,V=Math.floor(($+L)/2);return _e.range(D,P[L],x)}(w,A);Vt.isCollapsed(R)||Rt.delete(m,{at:R})}}},w.onChange=function(){var O=w.selection;O!=null&&g8.set(w,O),w.emit("change"),k()},w.handleTab=function(){w.insertText(" ")},w.getHtml=function(){var O=w.children;return(O===void 0?[]:O).map(function(y){return F_e(y,w)}).join("")},w.getText=function(){var O=w.children;return(O===void 0?[]:O).map(function(y){return vn.string(y)}).join(`
|
|
`)},w.getSelectionText=function(){var O=w.selection;return O==null?"":_e.string(m,O)},w.getElemsByType=function(O,y){var _,A;y===void 0&&(y=!1);var R=[],D=_e.nodes(w,{at:[],universal:!0});try{for(var C=Wc(D),x=C.next();!x.done;x=C.next()){var P=si(x.value,1)[0];if(jn.isElement(P)&&(y?P.type.indexOf(O)>=0:P.type===O)){var $=N_e(tt.findKey(w,P).id);R.push(jc(jc({},P),{id:$}))}}}catch(L){_={error:L}}finally{try{x&&!x.done&&(A=C.return)&&A.call(C)}finally{if(_)throw _.error}}return R},w.getElemsByTypePrefix=function(O){return w.getElemsByType(O,!0)},w.isEmpty=function(){var O=w.children,y=O===void 0?[]:O;if(y.length>1)return!1;var _=y[0];if(_==null)return!0;if(jn.isElement(_)&&_.type==="paragraph"){var A=_.children,R=A===void 0?[]:A;if(R.length>1)return!1;var D=R[0];if(D==null||In.isText(D)&&D.text==="")return!0}return!1},w.clear=function(){Rt.delete(w,{at:{anchor:_e.start(w,[]),focus:_e.end(w,[])}}),w.children.length===0&&Rt.insertNodes(w,[{type:"paragraph",children:[{text:""}]}])},w.getParentNode=function(O){return tt.getParentNode(w,O)},w.dangerouslyInsertHtml=function(O,y){if(O===void 0&&(O=""),y===void 0&&(y=!1),O){var _=document.createElement("div");_.innerHTML=O;var A=Array.from(_.childNodes);if(A=A.filter(function(x){var P=x.nodeType,$=x.nodeName;return P===mp.TEXT_NODE||P===mp.ELEMENT_NODE&&!Lhe.has($.toLowerCase())}),A.length!==0){var R=w.selection;if(R!=null){var D=null;tt.isSelectedEmptyParagraph(w)&&!y&&(D=[R.focus.path[0]]),_.setAttribute("hidden","true"),document.body.appendChild(_);var C=0;A.forEach(function(x){var P=x.nodeType,$=x.nodeName,L=x.textContent,V=L===void 0?"":L;if(P!==mp.TEXT_NODE)if($!=="BR"){var H=x,Q=!1;if(V_e.includes($.toLowerCase()))Q=!0;else for(var U in A4)if(H.matches(U)){Q=!0;break}if(Q){var K=BK(ut(H),w);return Array.isArray(K)?(K.forEach(function(ue){return Bhe(w,ue)}),C++):(Bhe(w,K),C++),void(tt.isSelectedVoidNode(w)&&w.move(1))}var J=window.getComputedStyle(H).display;tt.isSelectedEmptyParagraph(w)||J.indexOf("inline")<0&&w.insertBreak(),w.dangerouslyInsertHtml(H.innerHTML,!0)}else w.insertText(`
|
|
`);else{if(!V||!V.trim())return;w.insertNode({text:V})}}),C&&D&&tt.isEmptyPath(w,D)&&Rt.removeNodes(w,{at:D}),_.remove()}}}},w.setHtml=function(O){O===void 0&&(O="");var y=w.isDisabled(),_=w.isFocused(),A=JSON.stringify(w.selection);w.enable(),w.focus(),w.clear();var R=Rhe(w,O);if(Rt.insertFragment(w,R),_||(w.deselect(),w.blur()),y&&(w.deselect(),w.disable()),w.isFocused())try{w.select(JSON.parse(A))}catch{w.select(_e.start(w,[]))}},w}(function(m){var w=m;return w.getAllMenuKeys=function(){var k=[];for(var T in PE)k.push(T);return k},w.getConfig=function(){var k=rhe.get(w);if(k==null)throw new Error("Can not get editor config");return k},w.getMenuConfig=function(k){var T=w.getConfig().MENU_CONF;return(T===void 0?{}:T)[k]||{}},w.alert=function(k,T){T===void 0&&(T="info");var S=w.getConfig().customAlert;S&&S(k,T)},w}(function(m){var w=_sn(qJt());return w.id="wangEditor-"+Ban++,w.isDestroyed=!1,w.isFullScreen=!1,w.focus=function(k){if(tt.toDOMNode(w,w).focus({preventScroll:!0}),_b.set(w,!0),k){var T=_e.end(w,[]);Rt.select(w,T)}else{var S=g8.get(w);S?Rt.select(w,S):Rt.select(w,_e.start(w,[]))}},w.isFocused=function(){return!!_b.get(w)},w.blur=function(){tt.toDOMNode(w,w).blur(),Rt.deselect(w),_b.set(w,!1)},w.updateView=function(){tt.getTextarea(w).changeViewState();var k=tt.getToolbar(w);k&&k.changeToolbarState();var T=tt.getHoverbar(w);T&&T.changeHoverbarState()},w.destroy=function(){if(!w.isDestroyed){var k=tt.getTextarea(w);k.destroy(),hZ.delete(w),pZ.delete(k);var T=tt.getToolbar(w);T&&(T.destroy(),PB.delete(w),kK.delete(T));var S=tt.getHoverbar(w);S&&(S.destroy(),w4.delete(w),fZ.delete(S)),w.isDestroyed=!0,w.emit("destroyed")}},w.scrollToElem=function(k){if(!w.getConfig().scroll){var T="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return T+=`
|
|
You has disabled editor scroll, please do this yourself`,void console.warn(T)}var S=ut("#"+k);if(S.length!==0){var I=S[0];if(!tt.hasDOMNode(w,I))return T="Element (found by id is '"+k+"') is not in editor DOM",T+=`
|
|
通过 id '`+k+"' 找到的 element 不在 editor DOM 之内",void console.error(T,I);var O=tt.getTextarea(w),y=O.$textAreaContainer,_=O.$scroll,A=S.offset().top,R=y.offset().top;_[0].scrollBy({top:A-R,behavior:"smooth"})}},w.showProgressBar=function(k){k<1||tt.getTextarea(w).changeProgress(k)},w.hidePanelOrModal=function(){var k=gZ.get(w);k!=null&&k.forEach(function(T){return T.hide()})},w.enable=function(){w.getConfig().readOnly=!1,w.updateView()},w.disable=function(){w.getConfig().readOnly=!0,w.updateView()},w.isDisabled=function(){return w.getConfig().readOnly},w.toDOMNode=function(k){return tt.toDOMNode(w,k)},w.fullScreen=function(){if(!w.isFullScreen){var k=null,T=tt.getToolbar(w);T&&(k=T.$box);var S=tt.getTextarea(w).$box.parent();if(k&&k.parent()[0]!==S[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
|
|
不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);S.addClass("w-e-full-screen-container");var I=S.css("z-index");S.attr("data-z-index",I.toString()),w.isFullScreen=!0,w.emit("fullScreen")}},w.unFullScreen=function(){if(w.isFullScreen){var k=tt.getTextarea(w).$box.parent();setTimeout(function(){k.removeClass("w-e-full-screen-container"),w.isFullScreen=!1,w.emit("unFullScreen")},200)}},w.getEditableContainer=function(){return tt.getTextarea(w).$textAreaContainer[0]},w}()))))));if(n&&function(m,w){return z_e(m,"data-w-e-textarea",w)}(u,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(m){m===void 0&&(m={});var w=EEe(O_e),k={},T=m.MENU_CONF,S=T===void 0?{}:T;return KY(w,function(I,O){k[O]=jc(jc({},I),S[O]||{})}),delete m.MENU_CONF,jc({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:k,hoverbarKeys:{},customAlert:function(I,O){window.alert(O+`:
|
|
`+I)}},m)}(i);rhe.set(u,c);var d=c.hoverbarKeys,h=d===void 0?{}:d;if(l.forEach(function(m){u=m(u)}),a!=null&&(u.children=Rhe(u,a)),o&&o.length&&(u.children=o),u.children.length===0&&(u.children=[{type:"paragraph",children:[{text:""}]}]),tt.normalizeContent(u),n){var f=new aln(n);hZ.set(u,f),pZ.set(f,u),f.changeViewState(),fd(function(){var m=f.$scroll;m!=null&&m.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
|
|
Textarea height < 300px . This may be cause modal and hoverbar position error`,m)});var g=void 0;Object.keys(h).length>0&&(g=new gln,fZ.set(g,u),w4.set(u,g)),u.on("change",function(){u.hidePanelOrModal()}),u.on("scroll",function(){u.hidePanelOrModal()})}else u.children.forEach(function(m,w){return q_e(m,w,u,u)});var b=c.onCreated,v=c.onDestroyed;return b&&u.on("created",function(){return b(u)}),v&&u.on("destroyed",function(){return v(u)}),fd(function(){return u.emit("created")}),u}var vln=kB("splice"),yln=hn.TypeError,bln=Math.max,wln=Math.min;zo({target:"Array",proto:!0,forced:!vln},{splice:function(e,t){var n,r,i,o,a,s,l=L0(this),u=B1(l),c=ix(e,u),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=u-c):(n=d-2,r=wln(bln(tT(t),0),u-c)),u+n-r>9007199254740991)throw yln("Maximum allowed length exceeded");for(i=XEe(l,r),o=0;o<r;o++)(a=c+o)in l&&IE(i,o,l[a]);if(i.length=r,n<r){for(o=c;o<u-r;o++)s=o+n,(a=o+r)in l?l[s]=l[a]:delete l[s];for(o=u;o>u-r+n;o--)delete l[o-1]}else if(n>r)for(o=u-r;o>c;o--)s=o+n-1,(a=o+r-1)in l?l[s]=l[a]:delete l[s];for(o=0;o<n;o++)l[o+c]=arguments[o+2];return l.length=u-r+n,i}});var Cln=function(){function e(t,n){var r=this;this.$toolbar=ut('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=kEe(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var i=ut(t);if(i.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=i;var o=this.$toolbar;o.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),i.append(o),fd(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this.$toolbar,i=this.config,o=i.toolbarKeys,a=o===void 0?[]:o,s=i.insertKeys,l=s===void 0?{index:0,keys:[]}:s,u=i.excludeKeys,c=u===void 0?[]:u,d=EEe(a);l.keys.length>0&&(typeof l.keys=="string"&&(l.keys=[l.keys]),l.keys.forEach(function(g,b){d.splice(l.index+b,0,g)}));var h=d.filter(function(g){if(typeof g=="string"){if(c.includes(g))return!1}else if(c.includes(g.key))return!1;return!0}),f=h.length;h.forEach(function(g,b){if(g==="|"){if(b===0||b+1===f||n==="|")return;var v=X_e();return r.append(v),void(n=g)}if(typeof g=="string")return t.registerSingleItem(g,t),void(n=g);t.registerGroup(g),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,i=function(u){return new qhe(u)}(t),o=t.menuKeys,a=o===void 0?[]:o,s=this.config.excludeKeys,l=s===void 0?[]:s;a.forEach(function(u){l.includes(u)||n.registerSingleItem(u,i)}),r.append(i.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),i=n instanceof qhe,o=this.menus,a=o[t];if(a==null){var s=PE[t];if(s==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof s!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=s(),o[t]=a}else console.warn("Duplicated toolbar menu key '"+t+`'
|
|
重复注册了菜单栏 menu '`+t+"'");var l=K_e(t,a,i);this.toolbarItems.push(l),EK.set(l,r),i?n.appendBarItem(l):n.$toolbar.append(l.$elem)},e.prototype.getEditorInstance=function(){var t=kK.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),Oln=Qx.EXISTS,xln=xh.f,J_e=Function.prototype,Sln=Zn(J_e.toString),eTe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Aln=Zn(eTe.exec);function tTe(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,i=r===void 0?"":r,o=e.maxFileSize,a=o===void 0?10485760:o,s=e.maxNumberOfFiles,l=s===void 0?100:s,u=e.meta,c=u===void 0?{}:u,d=e.metaWithUrl,h=d!==void 0&&d,f=e.headers,g=f===void 0?{}:f,b=e.withCredentials,v=b!==void 0&&b,m=e.timeout,w=m===void 0?1e4:m,k=e.onBeforeUpload,T=k===void 0?function(C){return C}:k,S=e.onSuccess,I=S===void 0?function(C,x){}:S,O=e.onError,y=O===void 0?function(C,x,P){console.error(C.name+" upload error",x,P)}:O,_=e.onProgress,A=_===void 0?function(C){}:_;if(!n)throw new Error(`Cannot get upload server address
|
|
没有配置上传地址`);if(!i)throw new Error(`Cannot get fieldName
|
|
没有配置 fieldName`);var R=n;h&&(R=function(C,x){var P=si(C.split("#"),2),$=P[0],L=P[1],V=[];KY(x,function(Q,U){V.push(U+"="+Q)});var H=V.join("&");return $=$.indexOf("?")>0?$+"&"+H:$+"?"+H,L?$+"#"+L:$}(R,c));var D=new sk({onBeforeUpload:T,restrictions:{maxFileSize:a,maxNumberOfFiles:l},meta:c}).use(qrn,{endpoint:R,headers:g,formData:!0,fieldName:i,bundle:!0,withCredentials:v,timeout:w});return D.on("upload-success",function(C,x){var P=x.body,$=P===void 0?{}:P;try{I(C,$)}catch(L){console.error("wangEditor upload file - onSuccess error",L)}D.removeFile(C.id)}),D.on("progress",function(C){C<1||A(C)}),D.on("upload-error",function(C,x,P){try{y(C,x,P)}catch($){console.error("wangEditor upload file - onError error",$)}D.removeFile(C.id)}),D.on("restriction-failed",function(C,x){try{y(C,x)}catch(P){console.error("wangEditor upload file - onError error",P)}D.removeFile(C.id)}),D}function Wv(e){return Wv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wv(e)}function Iln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ja(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),r.forEach(function(i){Iln(e,i,n[i])})}return e}function $g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function epe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mg(e,t,n){return t&&epe(e.prototype,t),n&&epe(e,n),e}function f1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RE(e,t){if(t&&(Wv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f1(e)}function ux(e){return ux=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ux(e)}function TZ(e,t){return TZ=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},TZ(e,t)}function DB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&TZ(e,t)}ys&&!Oln&&xln(J_e,"name",{configurable:!0,get:function(){try{return Aln(eTe,Sln(this))[1]}catch{return""}}});var kln={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},ag=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$g(this,e),this.init(t,n)}return Mg(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||kln,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},{key:"create",value:function(t){return new e(this.logger,ja({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),b0=function(){function e(){$g(this,e),this.observers={}}return Mg(e,[{key:"on",value:function(t,n){var r=this;return t.split(" ").forEach(function(i){r.observers[i]=r.observers[i]||[],r.observers[i].push(n)}),this}},{key:"off",value:function(t,n){this.observers[t]&&(n?this.observers[t]=this.observers[t].filter(function(r){return r!==n}):delete this.observers[t])}},{key:"emit",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(this.observers[t]){var o=[].concat(this.observers[t]);o.forEach(function(s){s.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(s){s.apply(s,[t].concat(r))})}}}]),e}();function nI(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function tpe(e){return e==null?"":""+e}function Eln(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function GK(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function npe(e,t,n){var r=GK(e,t,Object);r.obj[r.k]=n}function k4(e,t){var n=GK(e,t),r=n.obj,i=n.k;if(r)return r[i]}function rpe(e,t,n){var r=k4(e,n);return r!==void 0?r:k4(t,n)}function nTe(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):nTe(e[r],t[r],n):e[r]=t[r]);return e}function Uw(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _ln={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Tln(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return _ln[t]}):e}var RB=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function rTe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,s=r.slice(o,o+a).join(n),l=i[s];l===void 0&&r.length>o+a;)a++,l=i[s=r.slice(o,o+a).join(n)];if(l===void 0)return;if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s];var u=r.slice(o+a).join(n);return u?rTe(l,u,n):void 0}i=i[r[o]]}return i}}var Pln=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return $g(this,t),r=RE(this,ux(t).call(this)),RB&&b0.call(f1(r)),r.data=n||{},r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return DB(t,b0),Mg(t,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,l=[n,r];i&&typeof i!="string"&&(l=l.concat(i)),i&&typeof i=="string"&&(l=l.concat(a?i.split(a):i)),n.indexOf(".")>-1&&(l=n.split("."));var u=k4(this.data,l);return u||!s||typeof i!="string"?u:rTe(this.data&&this.data[n]&&this.data[n][r],i,a)}},{key:"addResource",value:function(n,r,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=this.options.keySeparator;s===void 0&&(s=".");var l=[n,r];i&&(l=l.concat(s?i.split(s):i)),n.indexOf(".")>-1&&(o=r,r=(l=n.split("."))[1]),this.addNamespaces(r),npe(this.data,l,o),a.silent||this.emit("added",n,r,i,o)}},{key:"addResources",value:function(n,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in i)typeof i[a]!="string"&&Object.prototype.toString.apply(i[a])!=="[object Array]"||this.addResource(n,r,a,i[a],{silent:!0});o.silent||this.emit("added",n,r,i)}},{key:"addResourceBundle",value:function(n,r,i,o,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[n,r];n.indexOf(".")>-1&&(o=i,i=r,r=(l=n.split("."))[1]),this.addNamespaces(r);var u=k4(this.data,l)||{};o?nTe(u,i,a):u=ja({},u,i),npe(this.data,l,u),s.silent||this.emit("added",n,r,i)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ja({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t}(),iTe={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach(function(a){o.processors[a]&&(t=o.processors[a].process(t,n,r,i))}),t}},ipe={},ope=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $g(this,t),r=RE(this,ux(t).call(this)),RB&&b0.call(f1(r)),Eln(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,f1(r)),r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=ag.create("translator"),r}return DB(t,b0),Mg(t,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var i=this.resolve(n,r);return i&&i.res!==void 0}},{key:"extractFromKey",value:function(n,r){var i=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");var o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(i&&n.indexOf(i)>-1){var s=n.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:n,namespaces:a};var l=n.split(i);(i!==o||i===o&&this.options.ns.indexOf(l[0])>-1)&&(a=l.shift()),n=l.join(o)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,i){var o=this;if(Wv(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=this.extractFromKey(n[n.length-1],r),l=s.key,u=s.namespaces,c=u[u.length-1],d=r.lng||this.language,h=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&d.toLowerCase()==="cimode"){if(h){var f=r.nsSeparator||this.options.nsSeparator;return c+f+l}return l}var g=this.resolve(n,r),b=g&&g.res,v=g&&g.usedKey||l,m=g&&g.exactUsedKey||l,w=Object.prototype.toString.apply(b),k=["[object Number]","[object Function]","[object RegExp]"],T=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,I=typeof b!="string"&&typeof b!="boolean"&&typeof b!="number";if(S&&b&&I&&k.indexOf(w)<0&&(typeof T!="string"||w!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,b,ja({},r,{ns:u})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(a){var O=w==="[object Array]",y=O?[]:{},_=O?m:v;for(var A in b)if(Object.prototype.hasOwnProperty.call(b,A)){var R="".concat(_).concat(a).concat(A);y[A]=this.translate(R,ja({},r,{joinArrays:!1,ns:u})),y[A]===R&&(y[A]=b[A])}b=y}}else if(S&&typeof T=="string"&&w==="[object Array]")(b=b.join(T))&&(b=this.extendTranslation(b,n,r,i));else{var D=!1,C=!1,x=r.count!==void 0&&typeof r.count!="string",P=t.hasDefaultValue(r),$=x?this.pluralResolver.getSuffix(d,r.count):"",L=r["defaultValue".concat($)]||r.defaultValue;!this.isValidLookup(b)&&P&&(D=!0,b=L),this.isValidLookup(b)||(C=!0,b=l);var V=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,H=V&&C?void 0:b,Q=P&&L!==b&&this.options.updateMissing;if(C||D||Q){if(this.logger.log(Q?"updateKey":"missingKey",d,c,l,Q?L:b),a){var U=this.resolve(l,ja({},r,{keySeparator:!1}));U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var K=[],J=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&J&&J[0])for(var ue=0;ue<J.length;ue++)K.push(J[ue]);else this.options.saveMissingTo==="all"?K=this.languageUtils.toResolveHierarchy(r.lng||this.language):K.push(r.lng||this.language);var ee=function(N,q,G){o.options.missingKeyHandler?o.options.missingKeyHandler(N,c,q,Q?G:H,Q,r):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(N,c,q,Q?G:H,Q,r),o.emit("missingKey",N,c,q,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?K.forEach(function(N){o.pluralResolver.getSuffixes(N).forEach(function(q){ee([N],l+q,r["defaultValue".concat(q)]||L)})}):ee(K,l,L))}b=this.extendTranslation(b,n,r,g,i),C&&b===l&&this.options.appendNamespaceToMissingKey&&(b="".concat(c,":").concat(l)),(C||D)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(b))}return b}},{key:"extendTranslation",value:function(n,r,i,o,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,i,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init(ja({},i,{interpolation:ja({},this.options.interpolation,i.interpolation)}));var l,u=i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var c=n.match(this.interpolator.nestingRegexp);l=c&&c.length}var d=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(d=ja({},this.options.interpolation.defaultVariables,d)),n=this.interpolator.interpolate(n,d,i.lng||this.language,i),u){var h=n.match(this.interpolator.nestingRegexp);l<(h&&h.length)&&(i.nest=!1)}i.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var b=arguments.length,v=new Array(b),m=0;m<b;m++)v[m]=arguments[m];return a&&a[0]===v[0]&&!i.context?(s.logger.warn("It seems you are nesting recursively key: ".concat(v[0]," in key: ").concat(r[0])),null):s.translate.apply(s,v.concat([r]))},i)),i.interpolation&&this.interpolator.reset()}var f=i.postProcess||this.options.postProcess,g=typeof f=="string"?[f]:f;return n!=null&&g&&g.length&&i.applyPostProcessor!==!1&&(n=iTe.handle(g,n,r,this.options&&this.options.postProcessPassResolved?ja({i18nResolved:o},i):i,this)),n}},{key:"resolve",value:function(n){var r,i,o,a,s,l=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!l.isValidLookup(r)){var d=l.extractFromKey(c,u),h=d.key;i=h;var f=d.namespaces;l.options.fallbackNS&&(f=f.concat(l.options.fallbackNS));var g=u.count!==void 0&&typeof u.count!="string",b=u.context!==void 0&&(typeof u.context=="string"||typeof u.context=="number")&&u.context!=="",v=u.lngs?u.lngs:l.languageUtils.toResolveHierarchy(u.lng||l.language,u.fallbackLng);f.forEach(function(m){l.isValidLookup(r)||(s=m,!ipe["".concat(v[0],"-").concat(m)]&&l.utils&&l.utils.hasLoadedNamespace&&!l.utils.hasLoadedNamespace(s)&&(ipe["".concat(v[0],"-").concat(m)]=!0,l.logger.warn('key "'.concat(i,'" for languages "').concat(v.join(", "),`" won't get resolved as namespace "`).concat(s,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(function(w){if(!l.isValidLookup(r)){a=w;var k,T,S=h,I=[S];for(l.i18nFormat&&l.i18nFormat.addLookupKeys?l.i18nFormat.addLookupKeys(I,h,w,m,u):(g&&(k=l.pluralResolver.getSuffix(w,u.count)),g&&b&&I.push(S+k),b&&I.push(S+="".concat(l.options.contextSeparator).concat(u.context)),g&&I.push(S+=k));T=I.pop();)l.isValidLookup(r)||(o=T,r=l.getResource(w,m,T,u))}}))})}}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:s}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,i,o):this.resourceStore.getResource(n,r,i,o)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&r===i.substring(0,r.length)&&n[i]!==void 0)return!0;return!1}}]),t}();function B8(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Dln=function(){function e(t){$g(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ag.create("languageUtils")}return Mg(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map(function(i){return i.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=B8(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=B8(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=B8(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var n,r=this;return t?(t.forEach(function(i){if(!n){var o=r.formatLanguageCode(i);r.options.supportedLngs&&!r.isSupportedCode(o)||(n=o)}}),!n&&this.options.supportedLngs&&t.forEach(function(i){if(!n){var o=r.getLanguagePartFromCode(i);if(r.isSupportedCode(o))return n=o;n=r.options.supportedLngs.find(function(a){if(a.indexOf(o)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,n){var r=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],a=function(s){s&&(r.isSupportedCode(s)?o.push(s):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(s)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),i.forEach(function(s){o.indexOf(s)<0&&a(r.formatLanguageCode(s))}),o}}]),e}(),Rln=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],$ln={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function Mln(){var e={};return Rln.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:$ln[t.fc]}})}),e}var Lln=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$g(this,e),this.languageUtils=t,this.options=n,this.logger=ag.create("pluralResolver"),this.rules=Mln()}return Mg(e,[{key:"addRule",value:function(t,n){this.rules[t]=n}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,n){return this.getSuffixes(t).map(function(r){return n+r})}},{key:"getSuffixes",value:function(t){var n=this,r=this.getRule(t);return r?r.numbers.map(function(i){return n.getSuffix(t,i)}):[]}},{key:"getSuffix",value:function(t,n){var r=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),a=i.numbers[o];this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),Bln=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$g(this,e),this.logger=ag.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Mg(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=n.escape!==void 0?n.escape:Tln,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?Uw(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Uw(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Uw(n.nestingPrefix):n.nestingPrefixEscaped||Uw("$t("),this.nestingSuffix=n.nestingSuffix?Uw(n.nestingSuffix):n.nestingSuffixEscaped||Uw(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,n,r,i){var o,a,s,l=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(b){return b.replace(/\$/g,"$$$$")}var d=function(b){if(b.indexOf(l.formatSeparator)<0){var v=rpe(n,u,b);return l.alwaysFormat?l.format(v,void 0,r,ja({},i,n,{interpolationkey:b})):v}var m=b.split(l.formatSeparator),w=m.shift().trim(),k=m.join(l.formatSeparator).trim();return l.format(rpe(n,u,w),k,r,ja({},i,n,{interpolationkey:w}))};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(b){return c(b)}},{regex:this.regexp,safeValue:function(b){return l.escapeValue?c(l.escape(b)):c(b)}}];return g.forEach(function(b){for(s=0;o=b.regex.exec(t);){if((a=d(o[1].trim()))===void 0)if(typeof h=="function"){var v=h(t,o,i);a=typeof v=="string"?v:""}else{if(f){a=o[0];continue}l.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||l.useRawValueToEscape||(a=tpe(a));var m=b.safeValue(a);if(t=t.replace(o[0],m),f?(b.regex.lastIndex+=m.length,b.regex.lastIndex-=o[0].length):b.regex.lastIndex=0,++s>=l.maxReplaces)break}}),t}},{key:"nest",value:function(t,n){var r,i,o=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=ja({},a);function l(h,f){var g=this.nestingOptionsSeparator;if(h.indexOf(g)<0)return h;var b=h.split(new RegExp("".concat(g,"[ ]*{"))),v="{".concat(b[1]);h=b[0],v=(v=this.interpolate(v,s)).replace(/'/g,'"');try{s=JSON.parse(v),f&&(s=ja({},f,s))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(h),m),"".concat(h).concat(g).concat(v)}return delete s.defaultValue,h}for(s.applyPostProcessor=!1,delete s.defaultValue;r=this.nestingRegexp.exec(t);){var u=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var d=r[1].split(this.formatSeparator).map(function(h){return h.trim()});r[1]=d.shift(),u=d,c=!0}if((i=n(l.call(this,r[1].trim(),s),s))&&r[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=tpe(i)),i||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),i=""),c&&(i=u.reduce(function(h,f){return o.format(h,f,a.lng,ja({},a,{interpolationkey:r[1].trim()}))},i.trim())),t=t.replace(r[0],i),this.regexp.lastIndex=0}return t}}]),e}(),Fln=function(e){function t(n,r,i){var o,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return $g(this,t),o=RE(this,ux(t).call(this)),RB&&b0.call(f1(o)),o.backend=n,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=ag.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return DB(t,b0),Mg(t,[{key:"queueLoad",value:function(n,r,i,o){var a=this,s=[],l=[],u=[],c=[];return n.forEach(function(d){var h=!0;r.forEach(function(f){var g="".concat(d,"|").concat(f);!i.reload&&a.store.hasResourceBundle(d,f)?a.state[g]=2:a.state[g]<0||(a.state[g]===1?l.indexOf(g)<0&&l.push(g):(a.state[g]=1,h=!1,l.indexOf(g)<0&&l.push(g),s.indexOf(g)<0&&s.push(g),c.indexOf(f)<0&&c.push(f)))}),h||u.push(d)}),(s.length||l.length)&&this.queue.push({pending:l,loaded:{},errors:[],callback:o}),{toLoad:s,pending:l,toLoadLanguages:u,toLoadNamespaces:c}}},{key:"loaded",value:function(n,r,i){var o=n.split("|"),a=o[0],s=o[1];r&&this.emit("failedLoading",a,s,r),i&&this.store.addResourceBundle(a,s,i),this.state[n]=r?-1:2;var l={};this.queue.forEach(function(u){(function(c,d,h,f){var g=GK(c,d,Object),b=g.obj,v=g.k;b[v]=b[v]||[],b[v].push(h)})(u.loaded,[a],s),function(c,d){for(var h=c.indexOf(d);h!==-1;)c.splice(h,1),h=c.indexOf(d)}(u.pending,n),r&&u.errors.push(r),u.pending.length!==0||u.done||(Object.keys(u.loaded).forEach(function(c){l[c]||(l[c]=[]),u.loaded[c].length&&u.loaded[c].forEach(function(d){l[c].indexOf(d)<0&&l[c].push(d)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(function(u){return!u.done})}},{key:"read",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,l=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[i](n,r,function(u,c){u&&c&&a<5?setTimeout(function(){o.read.call(o,n,r,i,a+1,2*s,l)},s):l(u,c)}):l(null,{})}},{key:"prepareLoading",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var s=this.queueLoad(n,r,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(l){i.loadOne(l)})}},{key:"load",value:function(n,r,i){this.prepareLoading(n,r,{},i)}},{key:"reload",value:function(n,r,i){this.prepareLoading(n,r,{reload:!0},i)}},{key:"loadOne",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=n.split("|"),a=o[0],s=o[1];this.read(a,s,"read",void 0,void 0,function(l,u){l&&r.logger.warn("".concat(i,"loading namespace ").concat(s," for language ").concat(a," failed"),l),!l&&u&&r.logger.log("".concat(i,"loaded namespace ").concat(s," for language ").concat(a),u),r.loaded(n,l,u)})}},{key:"saveMissing",value:function(n,r,i,o,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(i,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):i!=null&&i!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,i,o,null,ja({},s,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,i,o))}}]),t}();function Nln(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(Wv(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),Wv(e[2])==="object"||Wv(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach(function(r){t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function ape(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function vR(){}var Vln=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if($g(this,t),n=RE(this,ux(t).call(this)),RB&&b0.call(f1(n)),n.options=ape(r),n.services={},n.logger=ag,n.modules={external:[]},i&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,i),RE(n,f1(n));setTimeout(function(){n.init(r,i)},0)}return n}return DB(t,b0),Mg(t,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;function o(f){return f?typeof f=="function"?new f:f:null}if(typeof r=="function"&&(i=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=ja({},Nln(),this.options,ape(r)),this.format=this.options.interpolation.format,i||(i=vR),!this.options.isClone){this.modules.logger?ag.init(o(this.modules.logger),this.options):ag.init(null,this.options);var a=new Dln(this.options);this.store=new Pln(this.options.resources,this.options);var s=this.services;s.logger=ag,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Lln(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new Bln(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Fln(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(f){for(var g=arguments.length,b=new Array(g>1?g-1:0),v=1;v<g;v++)b[v-1]=arguments[v];n.emit.apply(n,[f].concat(b))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new ope(this.services,this.options),this.translator.on("*",function(f){for(var g=arguments.length,b=new Array(g>1?g-1:0),v=1;v<g;v++)b[v-1]=arguments[v];n.emit.apply(n,[f].concat(b))}),this.modules.external.forEach(function(f){f.init&&f.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach(function(f){n[f]=function(){var g;return(g=n.store)[f].apply(g,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(f){n[f]=function(){var g;return(g=n.store)[f].apply(g,arguments),n}});var d=nI(),h=function(){var f=function(g,b){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),d.resolve(b),i(g,b)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return f(null,n.t.bind(n));n.changeLanguage(n.options.lng,f)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),d}},{key:"loadResources",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vR,o=i,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(o=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return o();var s=[],l=function(c){c&&r.services.languageUtils.toResolveHierarchy(c).forEach(function(d){s.indexOf(d)<0&&s.push(d)})};if(a)l(a);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach(function(c){return l(c)})}this.options.preload&&this.options.preload.forEach(function(c){return l(c)}),this.services.backendConnector.load(s,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function(n,r,i){var o=nI();return n||(n=this.languages),r||(r=this.options.ns),i||(i=vR),this.services.backendConnector.reload(n,r,function(a){o.resolve(),i(a)}),o}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&iTe.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var i=this;this.isLanguageChangingTo=n;var o=nI();this.emit("languageChanging",n);var a=function(s){n||s||!i.services.languageDetector||(s=[]);var l=typeof s=="string"?s:i.services.languageUtils.getBestMatchFromCodes(s);l&&(i.language||(i.language=l,i.languages=i.services.languageUtils.toResolveHierarchy(l)),i.translator.language||i.translator.changeLanguage(l),i.services.languageDetector&&i.services.languageDetector.cacheUserLanguage(l)),i.loadResources(l,function(u){(function(c,d){d?(i.language=d,i.languages=i.services.languageUtils.toResolveHierarchy(d),i.translator.changeLanguage(d),i.isLanguageChangingTo=void 0,i.emit("languageChanged",d),i.logger.log("languageChanged",d)):i.isLanguageChangingTo=void 0,o.resolve(function(){return i.t.apply(i,arguments)}),r&&r(c,function(){return i.t.apply(i,arguments)})})(u,l)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(n,r,i){var o=this,a=function s(l,u){var c;if(Wv(u)!=="object"){for(var d=arguments.length,h=new Array(d>2?d-2:0),f=2;f<d;f++)h[f-2]=arguments[f];c=o.options.overloadTranslationOptionHandler([l,u].concat(h))}else c=ja({},u);c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns;var g=o.options.keySeparator||".",b=i?"".concat(i).concat(g).concat(l):l;return o.t(b,c)};return typeof n=="string"?a.lng=n:a.lngs=n,a.ns=r,a.keyPrefix=i,a}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.languages[0],a=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;var l=function(c,d){var h=r.services.backendConnector.state["".concat(c,"|").concat(d)];return h===-1||h===2};if(i.precheck){var u=i.precheck(this,l);if(u!==void 0)return u}return!!this.hasResourceBundle(o,n)||!this.services.backendConnector.backend||!(!l(o,n)||a&&!l(s,n))}},{key:"loadNamespaces",value:function(n,r){var i=this,o=nI();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(a){i.options.ns.indexOf(a)<0&&i.options.ns.push(a)}),this.loadResources(function(a){o.resolve(),r&&r(a)}),o):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var i=nI();typeof n=="string"&&(n=[n]);var o=this.options.preload||[],a=n.filter(function(s){return o.indexOf(s)<0});return a.length?(this.options.preload=o.concat(a),this.loadResources(function(s){i.resolve(),r&&r(s)}),i):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vR,o=ja({},this.options,r,{isClone:!0}),a=new t(o),s=["store","services","language"];return s.forEach(function(l){a[l]=n[l]}),a.services=ja({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new ope(a.services,a.options),a.translator.on("*",function(l){for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];a.emit.apply(a,[l].concat(c))}),a.init(o,i),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),E4=new Vln;function vu(e,t){E4.addResourceBundle(e,"translation",t,!0,!0)}E4.init({lng:"zh-CN",resources:{}});var yn=E4.t.bind(E4);vu("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),vu("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var jln=MY?{}.toString:function(){return"[object "+hB(this)+"]"};MY||a1(Object.prototype,"toString",jln,{unsafe:!0});var spe=Array.isArray||function(e){return xb(e)=="Array"},oTe=function(){},Wln=[],aTe=G_("Reflect","construct"),QK=/^\s*(?:class|function)\b/,Hln=Gi(QK.exec),zln=!QK.exec(oTe),rI=function(e){if(!us(e))return!1;try{return aTe(oTe,Wln,e),!0}catch{return!1}},Zln=!aTe||xs(function(){var e;return rI(rI.call)||!rI(Object)||!rI(function(){e=!0})||e})?function(e){if(!us(e))return!1;switch(hB(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return zln||!!Hln(QK,TY(e))}:rI,Gln=Vl("species"),lpe=kr.Array,Qln=function(e,t){return new(function(n){var r;return spe(n)&&(r=n.constructor,(Zln(r)&&(r===lpe||spe(r.prototype))||Op(r)&&(r=r[Gln])===null)&&(r=void 0)),r===void 0?lpe:r}(e))(t===0?0:t)},upe=Gi([].push),Rm=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,u,c,d){for(var h,f,g=IY(l),b=x2e(g),v=M2e(u,c),m=dB(b),w=0,k=d||Qln,T=t?k(l,m):n||a?k(l,0):void 0;m>w;w++)if((s||w in b)&&(f=v(h=b[w],w,g),e))if(t)T[w]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:upe(T,h)}else switch(e){case 4:return!1;case 7:upe(T,h)}return o?-1:r||i?i:T}},Uln={forEach:Rm(0),map:Rm(1),filter:Rm(2),some:Rm(3),every:Rm(4),find:Rm(5),findIndex:Rm(6),filterReject:Rm(7)}.forEach,Xln=function(e,t){var n=[][e];return!!n&&xs(function(){n.call(null,t||function(){throw 1},1)})}("forEach"),F8=Xln?[].forEach:function(e){return Uln(this,e,arguments.length>1?arguments[1]:void 0)},sTe=function(e){if(e&&e.forEach!==F8)try{au(e,"forEach",F8)}catch{e.forEach=F8}};for(var N8 in Q5)Q5[N8]&&sTe(kr[N8]&&kr[N8].prototype);sTe(F2e),vu("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),vu("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var Yln={type:"paragraph",renderElem:function(e,t,n){return mr("p",null,t)}},_4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $B(e){var t={exports:{}};return e(t,t.exports),t.exports}var $m,h$,yR=function(e){return e&&e.Math==Math&&e},Dr=yR(typeof globalThis=="object"&&globalThis)||yR(typeof window=="object"&&window)||yR(typeof self=="object"&&self)||yR(typeof _4=="object"&&_4)||function(){return this}()||Function("return this")(),Go=function(e){try{return!!e()}catch{return!0}},fh=!Go(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),iI=Function.prototype.call,ka=iI.bind?iI.bind(iI):function(){return iI.apply(iI,arguments)},cpe={}.propertyIsEnumerable,dpe=Object.getOwnPropertyDescriptor,Kln=dpe&&!cpe.call({1:2},1)?function(e){var t=dpe(this,e);return!!t&&t.enumerable}:cpe,lTe={f:Kln},UK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uTe=Function.prototype,PZ=uTe.bind,DZ=uTe.call,qln=PZ&&PZ.bind(DZ),cr=PZ?function(e){return e&&qln(DZ,e)}:function(e){return e&&function(){return DZ.apply(e,arguments)}},Jln=cr({}.toString),eun=cr("".slice),Hv=function(e){return eun(Jln(e),8,-1)},V8=Dr.Object,tun=cr("".split),MB=Go(function(){return!V8("z").propertyIsEnumerable(0)})?function(e){return Hv(e)=="String"?tun(e,""):V8(e)}:V8,nun=Dr.TypeError,gd=function(e){if(e==null)throw nun("Can't call method on "+e);return e},qx=function(e){return MB(gd(e))},cl=function(e){return typeof e=="function"},Qd=function(e){return typeof e=="object"?e!==null:cl(e)},run=function(e){return cl(e)?e:void 0},iT=function(e,t){return arguments.length<2?run(Dr[e]):Dr[e]&&Dr[e][t]},cTe=cr({}.isPrototypeOf),j8=iT("navigator","userAgent")||"",hpe=Dr.process,ppe=Dr.Deno,fpe=hpe&&hpe.versions||ppe&&ppe.version,gpe=fpe&&fpe.v8;gpe&&(h$=($m=gpe.split("."))[0]>0&&$m[0]<4?1:+($m[0]+$m[1])),!h$&&j8&&(!($m=j8.match(/Edge\/(\d+)/))||$m[1]>=74)&&($m=j8.match(/Chrome\/(\d+)/))&&(h$=+$m[1]);var RZ=h$,$Z=!!Object.getOwnPropertySymbols&&!Go(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&RZ&&RZ<41}),XK=$Z&&!Symbol.sham&&typeof Symbol.iterator=="symbol",iun=Dr.Object,W8=XK?function(e){return typeof e=="symbol"}:function(e){var t=iT("Symbol");return cl(t)&&cTe(t.prototype,iun(e))},oun=Dr.String,dTe=function(e){try{return oun(e)}catch{return"Object"}},aun=Dr.TypeError,hTe=function(e){if(cl(e))return e;throw aun(dTe(e)+" is not a function")},LB=function(e,t){var n=e[t];return n==null?void 0:hTe(n)},sun=Dr.TypeError,lun=Object.defineProperty,YK=function(e,t){try{lun(Dr,e,{value:t,configurable:!0,writable:!0})}catch{Dr[e]=t}return t},zv=Dr["__core-js_shared__"]||YK("__core-js_shared__",{}),KK=$B(function(e){(e.exports=function(t,n){return zv[t]||(zv[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),uun=Dr.Object,oT=function(e){return uun(gd(e))},cun=cr({}.hasOwnProperty),ed=Object.hasOwn||function(e,t){return cun(oT(e),t)},dun=0,hun=Math.random(),pun=cr(1 .toString),pTe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+pun(++dun+hun,36)},oI=KK("wks"),Pb=Dr.Symbol,mpe=Pb&&Pb.for,fun=XK?Pb:Pb&&Pb.withoutSetter||pTe,pc=function(e){if(!ed(oI,e)||!$Z&&typeof oI[e]!="string"){var t="Symbol."+e;$Z&&ed(Pb,e)?oI[e]=Pb[e]:oI[e]=XK&&mpe?mpe(t):fun(t)}return oI[e]},gun=Dr.TypeError,mun=pc("toPrimitive"),qK=function(e){var t=function(n,r){if(!Qd(n)||W8(n))return n;var i,o=LB(n,mun);if(o){if(i=ka(o,n,r),!Qd(i)||W8(i))return i;throw gun("Can't convert object to primitive value")}return function(a,s){var l,u;if(cl(l=a.toString)&&!Qd(u=ka(l,a))||cl(l=a.valueOf)&&!Qd(u=ka(l,a))||s!=="string")return u;throw sun("Can't convert object to primitive value")}(n,r)}(e,"string");return W8(t)?t:t+""},MZ=Dr.document,vun=Qd(MZ)&&Qd(MZ.createElement),JK=function(e){return vun?MZ.createElement(e):{}},fTe=!fh&&!Go(function(){return Object.defineProperty(JK("div"),"a",{get:function(){return 7}}).a!=7}),vpe=Object.getOwnPropertyDescriptor,eq={f:fh?vpe:function(e,t){if(e=qx(e),t=qK(t),fTe)try{return vpe(e,t)}catch{}if(ed(e,t))return UK(!ka(lTe.f,e,t),e[t])}},yun=Dr.String,bun=Dr.TypeError,nc=function(e){if(Qd(e))return e;throw bun(yun(e)+" is not an object")},wun=Dr.TypeError,ype=Object.defineProperty,Jx={f:fh?ype:function(e,t,n){if(nc(e),t=qK(t),nc(n),fTe)try{return ype(e,t,n)}catch{}if("get"in n||"set"in n)throw wun("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},cx=fh?function(e,t,n){return Jx.f(e,t,UK(1,n))}:function(e,t,n){return e[t]=n,e},Cun=cr(Function.toString);cl(zv.inspectSource)||(zv.inspectSource=function(e){return Cun(e)});var T4,r2,P4,tq=zv.inspectSource,bpe=Dr.WeakMap,Oun=cl(bpe)&&/native code/.test(tq(bpe)),wpe=KK("keys"),gTe=function(e){return wpe[e]||(wpe[e]=pTe(e))},nq={},LZ=Dr.TypeError,xun=Dr.WeakMap;if(Oun||zv.state){var Ty=zv.state||(zv.state=new xun),Sun=cr(Ty.get),Cpe=cr(Ty.has),Aun=cr(Ty.set);T4=function(e,t){if(Cpe(Ty,e))throw new LZ("Object already initialized");return t.facade=e,Aun(Ty,e,t),t},r2=function(e){return Sun(Ty,e)||{}},P4=function(e){return Cpe(Ty,e)}}else{var Xw=gTe("state");nq[Xw]=!0,T4=function(e,t){if(ed(e,Xw))throw new LZ("Object already initialized");return t.facade=e,cx(e,Xw,t),t},r2=function(e){return ed(e,Xw)?e[Xw]:{}},P4=function(e){return ed(e,Xw)}}var BZ={set:T4,get:r2,has:P4,enforce:function(e){return P4(e)?r2(e):T4(e,{})},getterFor:function(e){return function(t){var n;if(!Qd(t)||(n=r2(t)).type!==e)throw LZ("Incompatible receiver, "+e+" required");return n}}},mTe=Function.prototype,Iun=fh&&Object.getOwnPropertyDescriptor,H8=ed(mTe,"name"),BB={EXISTS:H8,PROPER:H8&&(function(){}).name==="something",CONFIGURABLE:H8&&(!fh||fh&&Iun(mTe,"name").configurable)},$E=$B(function(e){var t=BB.CONFIGURABLE,n=BZ.get,r=BZ.enforce,i=String(String).split("String");(e.exports=function(o,a,s,l){var u,c=!!l&&!!l.unsafe,d=!!l&&!!l.enumerable,h=!!l&&!!l.noTargetGet,f=l&&l.name!==void 0?l.name:a;cl(s)&&(String(f).slice(0,7)==="Symbol("&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ed(s,"name")||t&&s.name!==f)&&cx(s,"name",f),(u=r(s)).source||(u.source=i.join(typeof f=="string"?f:""))),o!==Dr?(c?!h&&o[a]&&(d=!0):delete o[a],d?o[a]=s:cx(o,a,s)):d?o[a]=s:YK(a,s)})(Function.prototype,"toString",function(){return cl(this)&&n(this).source||tq(this)})}),kun=Math.ceil,Eun=Math.floor,eS=function(e){var t=+e;return t!=t||t===0?0:(t>0?Eun:kun)(t)},_un=Math.max,Tun=Math.min,ME=function(e,t){var n=eS(e);return n<0?_un(n+t,0):Tun(n,t)},Pun=Math.min,aT=function(e){return e>0?Pun(eS(e),9007199254740991):0},FB=function(e){return aT(e.length)},Ope=function(e){return function(t,n,r){var i,o=qx(t),a=FB(o),s=ME(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},vTe={includes:Ope(!0),indexOf:Ope(!1)},Dun=vTe.indexOf,xpe=cr([].push),yTe=function(e,t){var n,r=qx(e),i=0,o=[];for(n in r)!ed(nq,n)&&ed(r,n)&&xpe(o,n);for(;t.length>i;)ed(r,n=t[i++])&&(~Dun(o,n)||xpe(o,n));return o},D4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Run=D4.concat("length","prototype"),$un={f:Object.getOwnPropertyNames||function(e){return yTe(e,Run)}},bTe={f:Object.getOwnPropertySymbols},Mun=cr([].concat),Lun=iT("Reflect","ownKeys")||function(e){var t=$un.f(nc(e)),n=bTe.f;return n?Mun(t,n(e)):t},Bun=function(e,t){for(var n=Lun(t),r=Jx.f,i=eq.f,o=0;o<n.length;o++){var a=n[o];ed(e,a)||r(e,a,i(t,a))}},Fun=/#|\.prototype\./,sT=function(e,t){var n=Vun[Nun(e)];return n==Wun||n!=jun&&(cl(t)?Go(t):!!t)},Nun=sT.normalize=function(e){return String(e).replace(Fun,".").toLowerCase()},Vun=sT.data={},jun=sT.NATIVE="N",Wun=sT.POLYFILL="P",Hun=sT,zun=eq.f,as=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?Dr:u?Dr[s]||YK(s,{}):(Dr[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=zun(n,r))&&a.value:n[r],!Hun(l?r:s+(u?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Bun(o,i)}(e.sham||i&&i.sham)&&cx(o,"sham",!0),$E(n,r,o,e)}},Spe=cr(cr.bind),R4=Array.isArray||function(e){return Hv(e)=="Array"},wTe={};wTe[pc("toStringTag")]="z";var rq=String(wTe)==="[object z]",Zun=pc("toStringTag"),Gun=Dr.Object,Qun=Hv(function(){return arguments}())=="Arguments",iq=rq?Hv:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=Gun(e),Zun))=="string"?n:Qun?Hv(t):(r=Hv(t))=="Object"&&cl(t.callee)?"Arguments":r},CTe=function(){},Uun=[],OTe=iT("Reflect","construct"),oq=/^\s*(?:class|function)\b/,Xun=cr(oq.exec),Yun=!oq.exec(CTe),aI=function(e){if(!cl(e))return!1;try{return OTe(CTe,Uun,e),!0}catch{return!1}},aq=!OTe||Go(function(){var e;return aI(aI.call)||!aI(Object)||!aI(function(){e=!0})||e})?function(e){if(!cl(e))return!1;switch(iq(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Yun||!!Xun(oq,tq(e))}:aI,Kun=pc("species"),Ape=Dr.Array,qun=function(e,t){return new(function(n){var r;return R4(n)&&(r=n.constructor,(aq(r)&&(r===Ape||R4(r.prototype))||Qd(r)&&(r=r[Kun])===null)&&(r=void 0)),r===void 0?Ape:r}(e))(t===0?0:t)},Ipe=cr([].push),Mm=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,u,c,d){for(var h,f,g=oT(l),b=MB(g),v=function(S,I){return hTe(S),I===void 0?S:Spe?Spe(S,I):function(){return S.apply(I,arguments)}}(u,c),m=FB(b),w=0,k=d||qun,T=t?k(l,m):n||a?k(l,0):void 0;m>w;w++)if((s||w in b)&&(f=v(h=b[w],w,g),e))if(t)T[w]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:Ipe(T,h)}else switch(e){case 4:return!1;case 7:Ipe(T,h)}return o?-1:r||i?i:T}},NB={forEach:Mm(0),map:Mm(1),filter:Mm(2),some:Mm(3),every:Mm(4),find:Mm(5),findIndex:Mm(6),filterReject:Mm(7)},Jun=pc("species"),sq=function(e){return RZ>=51||!Go(function(){var t=[];return(t.constructor={})[Jun]=function(){return{foo:1}},t[e](Boolean).foo!==1})},ecn=NB.filter;as({target:"Array",proto:!0,forced:!sq("filter")},{filter:function(e){return ecn(this,e,arguments.length>1?arguments[1]:void 0)}});var tcn=rq?{}.toString:function(){return"[object "+iq(this)+"]"};rq||$E(Object.prototype,"toString",tcn,{unsafe:!0});var bR,ncn=Dr.String,Ho=function(e){if(iq(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ncn(e)},xTe=function(){var e=nc(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},lq=Dr.RegExp,FZ=Go(function(){var e=lq("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),rcn=FZ||Go(function(){return!lq("a","y").sticky}),STe={BROKEN_CARET:FZ||Go(function(){var e=lq("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:rcn,UNSUPPORTED_Y:FZ},uO=Object.keys||function(e){return yTe(e,D4)},icn=fh?Object.defineProperties:function(e,t){nc(e);for(var n,r=qx(t),i=uO(t),o=i.length,a=0;o>a;)Jx.f(e,n=i[a++],r[n]);return e},ocn=iT("document","documentElement"),ATe=gTe("IE_PROTO"),z8=function(){},ITe=function(e){return"<script>"+e+"<\/script>"},kpe=function(e){e.write(ITe("")),e.close();var t=e.parentWindow.Object;return e=null,t},p$=function(){try{bR=new ActiveXObject("htmlfile")}catch{}var e,t;p$=typeof document<"u"?document.domain&&bR?kpe(bR):((t=JK("iframe")).style.display="none",ocn.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(ITe("document.F=Object")),e.close(),e.F):kpe(bR);for(var n=D4.length;n--;)delete p$.prototype[D4[n]];return p$()};nq[ATe]=!0;var Epe,Z8,kTe=Object.create||function(e,t){var n;return e!==null?(z8.prototype=nc(e),n=new z8,z8.prototype=null,n[ATe]=e):n=p$(),t===void 0?n:icn(n,t)},acn=Dr.RegExp,scn=Go(function(){var e=acn(".","s");return!(e.dotAll&&e.exec(`
|
|
`)&&e.flags==="s")}),lcn=Dr.RegExp,ucn=Go(function(){var e=lcn("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),ccn=BZ.get,dcn=KK("native-string-replace",String.prototype.replace),$4=RegExp.prototype.exec,NZ=$4,hcn=cr("".charAt),pcn=cr("".indexOf),fcn=cr("".replace),G8=cr("".slice),Q8=(Z8=/b*/g,ka($4,Epe=/a/,"a"),ka($4,Z8,"a"),Epe.lastIndex!==0||Z8.lastIndex!==0),_pe=STe.BROKEN_CARET,U8=/()??/.exec("")[1]!==void 0;(Q8||U8||_pe||scn||ucn)&&(NZ=function(e){var t,n,r,i,o,a,s,l=this,u=ccn(l),c=Ho(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=ka(NZ,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=_pe&&l.sticky,g=ka(xTe,l),b=l.source,v=0,m=c;if(f&&(g=fcn(g,"y",""),pcn(g,"g")===-1&&(g+="g"),m=G8(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&hcn(c,l.lastIndex-1)!==`
|
|
`)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),U8&&(n=new RegExp("^"+b+"$(?!\\s)",g)),Q8&&(r=l.lastIndex),i=ka($4,f?n:l,m),f?i?(i.input=G8(i.input,v),i[0]=G8(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:Q8&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),U8&&i&&i.length>1&&ka(dcn,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=kTe(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var LE=NZ;as({target:"RegExp",proto:!0,forced:/./.exec!==LE},{exec:LE});var uq=Function.prototype,Tpe=uq.apply,gcn=uq.bind,Ppe=uq.call,ETe=typeof Reflect=="object"&&Reflect.apply||(gcn?Ppe.bind(Tpe):function(){return Ppe.apply(Tpe,arguments)}),mcn=pc("species"),X8=RegExp.prototype,cq=function(e,t,n,r){var i=pc(e),o=!Go(function(){var u={};return u[i]=function(){return 7},""[e](u)!=7}),a=o&&!Go(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[mcn]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return u=!0,null},c[i](""),!u});if(!o||!a||n){var s=cr(/./[i]),l=t(i,""[e],function(u,c,d,h,f){var g=cr(u),b=c.exec;return b===LE||b===X8.exec?o&&!f?{done:!0,value:s(c,d,h)}:{done:!0,value:g(d,c,h)}:{done:!1}});$E(String.prototype,e,l[0]),$E(X8,i,l[1])}r&&cx(X8[i],"sham",!0)},vcn=cr("".charAt),Dpe=cr("".charCodeAt),ycn=cr("".slice),bcn=function(e){return function(t,n){var r,i,o=Ho(gd(t)),a=eS(n),s=o.length;return a<0||a>=s?"":(r=Dpe(o,a))<55296||r>56319||a+1===s||(i=Dpe(o,a+1))<56320||i>57343?vcn(o,a):ycn(o,a,a+2)}},wcn=bcn(),dq=function(e,t,n){return t+(n?wcn(e,t).length:1)},Ccn=Math.floor,Y8=cr("".charAt),Ocn=cr("".replace),K8=cr("".slice),xcn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Scn=/\$([$&'`]|\d{1,2})/g,Acn=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=Scn;return i!==void 0&&(i=oT(i),l=xcn),Ocn(o,l,function(u,c){var d;switch(Y8(c,0)){case"$":return"$";case"&":return e;case"`":return K8(t,0,n);case"'":return K8(t,a);case"<":d=i[K8(c,1,-1)];break;default:var h=+c;if(h===0)return u;if(h>s){var f=Ccn(h/10);return f===0?u:f<=s?r[f-1]===void 0?Y8(c,1):r[f-1]+Y8(c,1):u}d=r[h-1]}return d===void 0?"":d})},Icn=Dr.TypeError,BE=function(e,t){var n=e.exec;if(cl(n)){var r=ka(n,e,t);return r!==null&&nc(r),r}if(Hv(e)==="RegExp")return ka(LE,e,t);throw Icn("RegExp#exec called on incompatible receiver")},VZ=pc("replace"),kcn=Math.max,Ecn=Math.min,_cn=cr([].concat),q8=cr([].push),Rpe=cr("".indexOf),$pe=cr("".slice),Tcn="a".replace(/./,"$0")==="$0",Mpe=!!/./[VZ]&&/./[VZ]("a","$0")==="";cq("replace",function(e,t,n){var r=Mpe?"$":"$0";return[function(i,o){var a=gd(this),s=i==null?void 0:LB(i,VZ);return s?ka(s,i,a,o):ka(t,Ho(a),i,o)},function(i,o){var a=nc(this),s=Ho(i);if(typeof o=="string"&&Rpe(o,r)===-1&&Rpe(o,"$<")===-1){var l=n(t,a,s,o);if(l.done)return l.value}var u=cl(o);u||(o=Ho(o));var c=a.global;if(c){var d=a.unicode;a.lastIndex=0}for(var h=[];;){var f=BE(a,s);if(f===null||(q8(h,f),!c))break;Ho(f[0])===""&&(a.lastIndex=dq(s,aT(a.lastIndex),d))}for(var g,b="",v=0,m=0;m<h.length;m++){for(var w=Ho((f=h[m])[0]),k=kcn(Ecn(eS(f.index),s.length),0),T=[],S=1;S<f.length;S++)q8(T,(g=f[S])===void 0?g:String(g));var I=f.groups;if(u){var O=_cn([w],T,k,s);I!==void 0&&q8(O,I);var y=Ho(ETe(o,void 0,O))}else y=Acn(w,s,k,T,I,o);k>=v&&(b+=$pe(s,v,k)+y,v=k+w.length)}return b+$pe(s,v)}]},!!Go(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Tcn||Mpe);var jZ=pc("unscopables"),WZ=Array.prototype;WZ[jZ]==null&&Jx.f(WZ,jZ,{configurable:!0,value:kTe(null)});var _Te=function(e){WZ[jZ][e]=!0},Pcn=NB.find,Lpe=!0;"find"in[]&&Array(1).find(function(){Lpe=!1}),as({target:"Array",proto:!0,forced:Lpe},{find:function(e){return Pcn(this,e,arguments.length>1?arguments[1]:void 0)}}),_Te("find");var Dcn=pc("match"),TTe=function(e){var t;return Qd(e)&&((t=e[Dcn])!==void 0?!!t:Hv(e)=="RegExp")},Rcn=Dr.TypeError,$cn=pc("species"),PTe=function(e,t,n){var r=qK(t);r in e?Jx.f(e,r,UK(0,n)):e[r]=n},Mcn=Dr.Array,Lcn=Math.max,Bpe=function(e,t,n){for(var r=FB(e),i=ME(t,r),o=ME(n===void 0?r:n,r),a=Mcn(Lcn(o-i,0)),s=0;i<o;i++,s++)PTe(a,s,e[i]);return a.length=s,a},Yw=STe.UNSUPPORTED_Y,Bcn=Math.min,DTe=[].push,Fcn=cr(/./.exec),Kw=cr(DTe),sI=cr("".slice);cq("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,o){var a=Ho(gd(this)),s=o===void 0?4294967295:o>>>0;if(s===0)return[];if(i===void 0)return[a];if(!TTe(i))return ka(t,a,i,s);for(var l,u,c,d=[],h=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),f=0,g=new RegExp(i.source,h+"g");(l=ka(LE,g,a))&&!((u=g.lastIndex)>f&&(Kw(d,sI(a,f,l.index)),l.length>1&&l.index<a.length&&ETe(DTe,d,Bpe(l,1)),c=l[0].length,f=u,d.length>=s));)g.lastIndex===l.index&&g.lastIndex++;return f===a.length?!c&&Fcn(g,"")||Kw(d,""):Kw(d,sI(a,f)),d.length>s?Bpe(d,0,s):d}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:ka(t,this,i,o)}:t,[function(i,o){var a=gd(this),s=i==null?void 0:LB(i,e);return s?ka(s,i,a,o):ka(r,Ho(a),i,o)},function(i,o){var a=nc(this),s=Ho(i),l=n(r,a,s,o,r!==t);if(l.done)return l.value;var u=function(T,S){var I,O=nc(T).constructor;return O===void 0||(I=nc(O)[$cn])==null?S:function(y){if(aq(y))return y;throw Rcn(dTe(y)+" is not a constructor")}(I)}(a,RegExp),c=a.unicode,d=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Yw?"g":"y"),h=new u(Yw?"^(?:"+a.source+")":a,d),f=o===void 0?4294967295:o>>>0;if(f===0)return[];if(s.length===0)return BE(h,s)===null?[s]:[];for(var g=0,b=0,v=[];b<s.length;){h.lastIndex=Yw?0:b;var m,w=BE(h,Yw?sI(s,b):s);if(w===null||(m=Bcn(aT(h.lastIndex+(Yw?b:0)),s.length))===g)b=dq(s,b,c);else{if(Kw(v,sI(s,g,b)),v.length===f)return v;for(var k=1;k<=w.length-1;k++)if(Kw(v,w[k]),v.length===f)return v;b=g=m}}return Kw(v,sI(s,g)),v}]},!!Go(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Yw);var HZ=`
|
|
\v\f\r \u2028\u2029\uFEFF`,Fpe=cr("".replace),M4="["+HZ+"]",Ncn=RegExp("^"+M4+M4+"*"),Vcn=RegExp(M4+M4+"*$"),J8=function(e){return function(t){var n=Ho(gd(t));return 1&e&&(n=Fpe(n,Ncn,"")),2&e&&(n=Fpe(n,Vcn,"")),n}},jcn={start:J8(1),end:J8(2),trim:J8(3)},Wcn=BB.PROPER,Hcn=jcn.trim;function hq(e){return ut("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function tS(e){return e.length===0?"":e[0].outerHTML}function nS(e){return e.length?e[0].tagName.toLowerCase():""}function ih(e,t){for(var n="",r=(e.attr("style")||"").split(";"),i=r.length,o=0;o<i;o++){var a=r[o];if(a){var s=a.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}as({target:"String",proto:!0,forced:Go(function(){return!!HZ.trim()||"
".trim()!=="
"||Wcn&&HZ.trim.name!=="trim"})},{trim:function(){return Hcn(this)}}),as({global:!0},{globalThis:Dr}),a4&&(ut.fn.css=a4),hd&&(ut.fn.append=hd),Ace&&(ut.fn.prepend=Ace),QO&&(ut.fn.addClass=QO),UO&&(ut.fn.removeClass=UO),XO&&(ut.fn.hasClass=XO),Zp&&(ut.fn.on=Zp),Cce&&(ut.fn.off=Cce),v0&&(ut.fn.focus=v0),dd&&(ut.fn.attr=dd),n4&&(ut.fn.removeAttr=n4),KO&&(ut.fn.hide=KO),o4&&(ut.fn.show=o4),u4&&(ut.fn.parents=u4),YO&&(ut.fn.dataset=YO),zp&&(ut.fn.val=zp),l4&&(ut.fn.text=l4),m0&&(ut.fn.html=m0),ex&&(ut.fn.children=ex),tx&&(ut.fn.remove=tx),JO&&(ut.fn.find=JO),r4&&(ut.fn.width=r4),i4&&(ut.fn.height=i4),xce&&(ut.fn.filter=xce),nx&&(ut.fn.empty=nx);var zcn={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ut(e);return(t=t.filter(function(i){return!!In.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},zZ=function(e,t){return zZ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},zZ(e,t);/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */};function Lo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}zZ(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var w0=function(){return w0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},w0.apply(this,arguments)};function F0(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(u){try{l(r.next(u))}catch(c){o(c)}}function s(u){try{l(r.throw(u))}catch(c){o(c)}}function l(u){var c;u.done?i(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(a,s)}l((r=r.apply(e,[])).next())})}function N0(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(d){c=[6,d],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function RTe(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function mi(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Npe(e){var t=mi(_e.nodes(e,{match:function(o){return e.children[0]===o},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!jn.isElement(n)||n.type==="paragraph"||vn.string(n)!=="")return!1;var r=n.children,i=r===void 0?[]:r;return!!In.isText(i[0])&&(Rt.setNodes(e,{type:"paragraph"}),!0)}var Zcn={renderElems:[Yln],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[zcn],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(i){Npe(r)||t(i)},r.deleteForward=function(i){Npe(r)||n(i)},r}},Gcn=/"/g,Qcn=cr("".replace),dk=function(e,t,n,r){var i=Ho(gd(e)),o="<"+t;return n!==""&&(o+=" "+n+'="'+Qcn(Ho(r),Gcn,""")+'"'),o+">"+i+"</"+t+">"},hk=function(e){return Go(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function eV(e,t){var n=t,r=e,i=r.bold,o=r.italic,a=r.underline;return i&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),o&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Py(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}as({target:"String",proto:!0,forced:hk("bold")},{bold:function(){return dk(this,"b","","")}}),as({target:"String",proto:!0,forced:hk("italics")},{italics:function(){return dk(this,"i","","")}}),as({target:"String",proto:!0,forced:hk("sub")},{sub:function(){return dk(this,"sub","","")}}),as({target:"String",proto:!0,forced:hk("sup")},{sup:function(){return dk(this,"sup","","")}});var Vpe={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},tV=JK("span").classList,jpe=tV&&tV.constructor&&tV.constructor.prototype,Ucn=jpe===Object.prototype?void 0:jpe,$Te=function(e,t){var n=[][e];return!!n&&Go(function(){n.call(null,t||function(){throw 1},1)})},Xcn=NB.forEach,nV=$Te("forEach")?[].forEach:function(e){return Xcn(this,e,arguments.length>1?arguments[1]:void 0)},MTe=function(e){if(e&&e.forEach!==nV)try{cx(e,"forEach",nV)}catch{e.forEach=nV}};for(var rV in Vpe)Vpe[rV]&&MTe(Dr[rV]&&Dr[rV].prototype);function LTe(e,t){return e.selection==null||!!mi(_e.nodes(e,{match:function(n){return tt.getNodeType(n)==="pre"||!!_e.isVoid(e,n)},universal:!0}),1)[0]}function Ycn(e,t){Object.keys(t).forEach(function(n){n!=="text"&&_e.removeMark(e,n)})}MTe(Ucn),as({target:"Object",stat:!0,forced:Go(function(){uO(1)})},{keys:function(e){return uO(oT(e))}});var F1=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var n=this.mark,r=_e.marks(t);return r?r[n]:!!mi(_e.nodes(t,{match:function(i){return i[n]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return LTe(t,this.mark)},e.prototype.exec=function(t,n){var r=this.mark,i=this.marksNeedToRemove;n?t.removeMark(r):(t.addMark(r,!0),i&&i.forEach(function(o){return t.removeMark(o)}))},e}(),Kcn='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',qcn='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',Jcn='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',edn='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',tdn='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',BTe='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',FTe='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',ndn='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',rdn='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',idn='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',odn='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',adn='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',sdn='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',ldn='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',udn='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',cdn='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',ddn='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',hdn='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',pdn='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',fdn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=yn("textStyle.bold"),n.iconSvg=Kcn,n.hotkey="mod+b",n}return Lo(t,e),t}(F1),gdn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=yn("textStyle.code"),n.iconSvg=tdn,n.hotkey="mod+e",n}return Lo(t,e),t}(F1),mdn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=yn("textStyle.italic"),n.iconSvg=Jcn,n.hotkey="mod+i",n}return Lo(t,e),t}(F1),vdn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=yn("textStyle.through"),n.iconSvg=edn,n.hotkey="mod+shift+x",n}return Lo(t,e),t}(F1),ydn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=yn("textStyle.underline"),n.iconSvg=qcn,n.hotkey="mod+u",n}return Lo(t,e),t}(F1),bdn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=yn("textStyle.sub"),n.iconSvg=pdn,n.hotkey="",n}return Lo(t,e),t}(F1),wdn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=yn("textStyle.sup"),n.iconSvg=hdn,n.hotkey="",n}return Lo(t,e),t}(F1),Cdn=function(){function e(){this.title=yn("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return LTe(t)},e.prototype.exec=function(t,n){var r,i,o=_e.nodes(t,{match:function(l){return In.isText(l)},universal:!0});try{for(var a=RTe(o),s=a.next();!s.done;s=a.next())Ycn(t,s.value[0])}catch(l){r={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},e}(),Odn={renderStyle:function(e,t){var n=e,r=n.bold,i=n.italic,o=n.underline,a=n.code,s=n.through,l=n.sub,u=n.sup,c=t;return r&&(c=mr("strong",null,c)),a&&(c=mr("code",null,c)),i&&(c=mr("em",null,c)),o&&(c=mr("u",null,c)),s&&(c=mr("s",null,c)),l&&(c=mr("sub",null,c)),u&&(c=mr("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new fdn}},{key:"underline",factory:function(){return new ydn}},{key:"italic",factory:function(){return new mdn}},{key:"through",factory:function(){return new vdn}},{key:"code",factory:function(){return new gdn}},{key:"sub",factory:function(){return new bdn}},{key:"sup",factory:function(){return new wdn}},{key:"clearStyle",factory:function(){return new Cdn}}],styleToHtml:function(e,t){if(!In.isText(e))return t;if(hq(t))return eV(e,t);var n=ut(t);if(nS(n)==="br")return eV(e,"<br>");var r=n.html();return r=eV(e,r),n.html(r),tS(n)},parseStyleHtml:function(e,t,n){var r=ut(e);if(!In.isText(t))return t;var i=t;return Py(r,"b,strong")&&(i.bold=!0),Py(r,"i,em")&&(i.italic=!0),Py(r,"u")&&(i.underline=!0),Py(r,"s,strike")&&(i.through=!0),Py(r,"sub")&&(i.sub=!0),Py(r,"sup")&&(i.sup=!0),Py(r,"code")&&(i.code=!0),i}};function lT(e){return function(t,n,r){return mr("h"+e,null,n)}}var xdn={type:"header1",renderElem:lT(1)},Sdn={type:"header2",renderElem:lT(2)},Adn={type:"header3",renderElem:lT(3)},Idn={type:"header4",renderElem:lT(4)},kdn={type:"header5",renderElem:lT(5)},Edn=BB.PROPER,ZZ=RegExp.prototype,NTe=ZZ.toString,_dn=cr(xTe),Tdn=Go(function(){return NTe.call({source:"a",flags:"b"})!="/a/b"}),Pdn=Edn&&NTe.name!="toString";(Tdn||Pdn)&&$E(RegExp.prototype,"toString",function(){var e=nc(this),t=Ho(e.source),n=e.flags;return"/"+t+"/"+Ho(n===void 0&&cTe(ZZ,e)&&!("flags"in ZZ)?_dn(e):n)},{unsafe:!0});var iV,Ddn=Dr.TypeError,VTe=function(e){if(TTe(e))throw Ddn("The method doesn't accept regular expressions");return e},Rdn=pc("match"),jTe=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Rdn]=!1,"/./"[e](t)}catch{}}return!1},$dn=eq.f,Wpe=cr("".startsWith),Mdn=cr("".slice),Ldn=Math.min,Hpe=jTe("startsWith");function WTe(e){var t=mi(_e.nodes(e,{match:function(i){return tt.getNodeType(i).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=mi(n,1)[0];return tt.getNodeType(r)}function HTe(e){return e.selection==null||!mi(_e.nodes(e,{match:function(t){var n=tt.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function zTe(e,t){t&&Rt.setNodes(e,{type:t})}as({target:"String",proto:!0,forced:!(!Hpe&&(iV=$dn(String.prototype,"startsWith"),iV&&!iV.writable)||Hpe)},{startsWith:function(e){var t=Ho(gd(this));VTe(e);var n=aT(Ldn(arguments.length>1?arguments[1]:void 0,t.length)),r=Ho(e);return Wpe?Wpe(t,r,n):Mdn(t,n,n+r.length)===r}});var Bdn=function(){function e(){this.title=yn("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(t){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:yn("header.text")}],r=this.getValue(t).toString();return n.forEach(function(i){i.value===r?i.selected=!0:delete i.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return WTe(t)},e.prototype.isDisabled=function(t){return HTe(t)},e.prototype.exec=function(t,n){zTe(t,n.toString())},e}(),uT=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return WTe(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return HTe(t)},e.prototype.exec=function(t,n){var r=this.type;zTe(t,n===r?"paragraph":r)},e}(),Fdn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return Lo(t,e),t}(uT),Ndn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return Lo(t,e),t}(uT),Vdn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return Lo(t,e),t}(uT),jdn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return Lo(t,e),t}(uT),Wdn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return Lo(t,e),t}(uT),Hdn={key:"headerSelect",factory:function(){return new Bdn}},zdn={key:"header1",factory:function(){return new Fdn}},Zdn={key:"header2",factory:function(){return new Ndn}},Gdn={key:"header3",factory:function(){return new Vdn}},Qdn={key:"header4",factory:function(){return new jdn}},Udn={key:"header5",factory:function(){return new Wdn}};function lI(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function uI(e){return function(t,n,r){var i=ut(t);return(n=n.filter(function(o){return!!In.isText(o)||!!r.isInline(o)})).length===0&&(n=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var Xdn={renderElems:[xdn,Sdn,Adn,Idn,kdn],elemsToHtml:[{type:"header1",elemToHtml:lI(1)},{type:"header2",elemToHtml:lI(2)},{type:"header3",elemToHtml:lI(3)},{type:"header4",elemToHtml:lI(4)},{type:"header5",elemToHtml:lI(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:uI(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:uI(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:uI(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:uI(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:uI(5)}],menus:[Hdn,zdn,Zdn,Gdn,Qdn,Udn],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=mi(_e.nodes(n,{match:function(i){return tt.getNodeType(i).startsWith("header")},universal:!0}),1)[0];r&&tt.isSelectionAtLineEnd(e,r[1])?Rt.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},qw=Object.assign,zpe=Object.defineProperty,Ydn=cr([].concat),Zpe=!qw||Go(function(){if(fh&&qw({b:1},qw(zpe({},"a",{enumerable:!0,get:function(){zpe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(i){t[i]=i}),qw({},e)[n]!=7||uO(qw({},t)).join("")!=r})?function(e,t){for(var n=oT(e),r=arguments.length,i=1,o=bTe.f,a=lTe.f;r>i;)for(var s,l=MB(arguments[i++]),u=o?Ydn(uO(l),o(l)):uO(l),c=u.length,d=0;c>d;)s=u[d++],fh&&!ka(a,l,s)||(n[s]=l[s]);return n}:qw;function g1(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}as({target:"Object",stat:!0,forced:Object.assign!==Zpe},{assign:Zpe});var Kdn={selector:"font",preParseHtml:function(e){var t=ut(e);if(nS(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},ZTe=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){var n=this.mark,r=_e.marks(t);return r&&r[n]?r[n]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!mi(_e.nodes(t,{match:function(n){return tt.getNodeType(n)==="pre"||!!_e.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var n=this.mark;if(this.$content==null){var r=ut('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(u){var c=u.target;if(c!=null&&(u.preventDefault(),t.selection!=null)){var d=ut(c).attr("data-value");d==="0"?_e.removeMark(t,n):_e.addMark(t,n,d)}}),this.$content=r}var i=this.$content;if(i==null)return document.createElement("ul");i.empty();var o=this.getValue(t),a=t.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(u){var c=ut('<div class="color-block" data-value="'+u+'"></div>');c.css("background-color",u);var d=ut('<li data-value="'+u+'"></li>');o===u&&d.addClass("active"),d.append(c),i.append(d)});var s="";n==="color"&&(s=yn("color.default")),n==="bgColor"&&(s=yn("color.clear"));var l=ut(`
|
|
<li data-value="0" class="clear">
|
|
<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
|
|
`+s+`
|
|
</li>
|
|
`);return i.prepend(l),i[0]},e}(),qdn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=yn("color.color"),n.iconSvg=ndn,n.mark="color",n}return Lo(t,e),t}(ZTe),Jdn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=yn("color.bgColor"),n.iconSvg=rdn,n.mark="bgColor",n}return Lo(t,e),t}(ZTe),Gpe=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],ehn={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,o=t;return r&&g1(o,{color:r}),i&&g1(o,{backgroundColor:i}),o},styleToHtml:function(e,t){if(!In.isText(e))return t;var n,r=e,i=r.color,o=r.bgColor;return i||o?((hq(t)||nS(n=ut(t))!=="span")&&(n=ut("<span>"+t+"</span>")),i&&n.css("color",i),o&&n.css("background-color",o),tS(n)):t},preParseHtml:[Kdn],parseStyleHtml:function(e,t,n){var r=ut(e);if(!In.isText(t))return t;var i=t,o=ih(r,"color");o&&(i.color=o);var a=ih(r,"background-color");return a||(a=ih(r,"background")),a&&(i.bgColor=a),i},menus:[{key:"color",factory:function(){return new qdn},config:{colors:Gpe}},{key:"bgColor",factory:function(){return new Jdn},config:{colors:Gpe}}]},thn=/^(?:\w+:)?\/\/(\S+)$/,nhn=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,rhn=/^[^\s\.]+\.\S{2,}$/,ihn=vTe.includes;function VB(e){return e===void 0&&(e="r"),e+"-"+pEe()}function pq(e){return e.replace(/</g,"<").replace(/>/g,">")}function GTe(e,t,n,r){return F0(this,void 0,void 0,function(){var i,o;return N0(this,function(a){switch(a.label){case 0:return(i=t.getMenuConfig(e).checkLink)?[4,i(n,r)]:[3,2];case 1:if(typeof(o=a.sent())=="string")return t.alert(o,"error"),[2,!1];if(o==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function QTe(e,t,n){return F0(this,void 0,void 0,function(){var r;return N0(this,function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}})})}function fq(e){return e.selection==null||!!tt.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function oV(e,t){return{type:"link",url:pq(e),children:t?[{text:t}]:[]}}function UTe(e,t,n){return F0(this,void 0,void 0,function(){var r,i,o;return N0(this,function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),fq(e)?[2]:[4,GTe("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,QTe("insertLink",e,n)]:[2];case 2:return r=a.sent(),(i=e.selection)==null||(Vt.isCollapsed(i)?(e.insertText(" "),o=oV(r,t),Rt.insertNodes(e,o),e.insertFragment([{text:" "}])):_e.string(e,i)!==t?(e.deleteFragment(),o=oV(r,t),Rt.insertNodes(e,o)):(o=oV(r),Rt.wrapNodes(e,o,{split:!0}),Rt.collapse(e,{edge:"end"}))),[2]}})})}as({target:"Array",proto:!0},{includes:function(e){return ihn(this,e,arguments.length>1?arguments[1]:void 0)}}),_Te("includes");var ohn={type:"link",renderElem:function(e,t,n){var r=e,i=r.url,o=r.target;return mr("a",{href:i,target:o===void 0?"_blank":o},t)}},ahn={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ut(e);return(t=t.filter(function(i){return!!In.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function aV(){return VB("w-e-insert-link")}var shn=function(){function e(){this.title=yn("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=aV(),this.urlInputId=aV(),this.buttonId=aV()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return fq(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=t.selection,r=this,i=r.textInputId,o=r.urlInputId,a=r.buttonId,s=mi(tc(yn("link.text"),i),2),l=s[0],u=ut(s[1]),c=mi(tc(yn("link.url"),o),2),d=c[0],h=ut(c[1]),f=mi(Kx(a,yn("common.ok")),1)[0];if(this.$content==null){var g=ut("<div></div>");g.on("click","#"+a,function(m){m.preventDefault();var w=g.find("#"+i).val(),k=g.find("#"+o).val();UTe(t,w,k),t.hidePanelOrModal()}),this.$content=g}var b=this.$content;if(b.empty(),b.append(l),b.append(d),b.append(f),n==null||Vt.isCollapsed(n))u.val("");else{var v=_e.string(t,n);u.val(v)}return h.val(""),setTimeout(function(){u.focus()}),b[0]},e}();function Qpe(){return VB("w-e-update-link")}var lhn=function(){function e(){this.title=yn("link.edit"),this.iconSvg=BTe,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=Qpe(),this.buttonId=Qpe()}return e.prototype.getSelectedLinkElem=function(t){var n=tt.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return tt.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,i=mi(tc(yn("link.url"),n),2),o=i[0],a=ut(i[1]),s=mi(Kx(r,yn("common.ok")),1)[0];if(this.$content==null){var l=ut("<div></div>");l.on("click","button",function(d){d.preventDefault(),t.restoreSelection();var h=tt.getSelectedNodeByType(t,"link"),f=h?vn.string(h):"",g=l.find("#"+n).val();(function(b,v,m){F0(this,void 0,void 0,function(){var w,k;return N0(this,function(T){switch(T.label){case 0:return m?[4,GTe("editLink",b,v,m)]:[2];case 1:return T.sent()?[4,QTe("editLink",b,m)]:[2];case 2:return w=T.sent(),k={url:pq(w)},Rt.setNodes(b,k,{match:function(S){return tt.checkNodeType(S,"link")}}),[2]}})})})(t,f,g),t.hidePanelOrModal()}),this.$content=l}var u=this.$content;u.empty(),u.append(o),u.append(s);var c=this.getValue(t);return a.val(c),setTimeout(function(){a.focus()}),u[0]},e}(),uhn=function(){function e(){this.title=yn("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||tt.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||Rt.unwrapNodes(t,{match:function(r){return tt.checkNodeType(r,"link")}})},e}(),chn=function(){function e(){this.title=yn("link.view"),this.iconSvg=FTe,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=tt.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},e}(),Upe={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},dhn={renderElems:[ohn],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,i=n.target;return'<a href="'+r+'" target="'+(i===void 0?"_blank":i)+'">'+t+"</a>"}}],parseElemsHtml:[ahn],menus:[{key:"insertLink",factory:function(){return new shn},config:Upe},{key:"editLink",factory:function(){return new lhn},config:Upe},{key:"unLink",factory:function(){return new uhn}},{key:"viewLink",factory:function(){return new chn}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var i=e;return i.isInline=function(o){return o.type==="link"||t(o)},i.insertData=function(o){var a=o.getData("text/plain");if(function(u){if(typeof u!="string")return!1;var c=u.match(thn);if(!c)return!1;var d=c[1];return!(!d||!nhn.test(d)&&!rhn.test(d))}(a)){if(!fq(i)){var s=i.selection;if(s!=null){var l=_e.string(i,s);UTe(i,l,a)}}}else n(o)},i.normalizeNode=function(o){var a=mi(o,2),s=a[0],l=a[1];return tt.getNodeType(s)!=="link"?r([s,l]):vn.string(s)===""?Rt.removeNodes(i,{at:l}):r([s,l])},i}},hhn=cr(1 .valueOf),phn=Dr.RangeError,fhn=Dr.RangeError,XTe=Dr.String,YTe=Math.floor,GZ=cr(function(e){var t=Ho(gd(this)),n="",r=eS(e);if(r<0||r==1/0)throw phn("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),Xpe=cr("".slice),cI=cr(1 .toFixed),FC=function(e,t,n){return t===0?n:t%2==1?FC(e,t-1,n*e):FC(e*e,t/2,n)},Jw=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=YTe(i/1e7)},sV=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=YTe(r/t),r=r%t*1e7},Ype=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=XTe(e[t]);n=n===""?r:n+GZ("0",7-r.length)+r}return n};function Kpe(e,t){return"w-e-image-container-"+tt.findKey(e,t).id}as({target:"Number",proto:!0,forced:Go(function(){return cI(8e-5,3)!=="0.000"||cI(.9,0)!=="1"||cI(1.255,2)!=="1.25"||cI(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Go(function(){cI({})})},{toFixed:function(e){var t,n,r,i,o=hhn(this),a=eS(e),s=[0,0,0,0,0,0],l="",u="0";if(a<0||a>20)throw fhn("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return XTe(o);if(o<0&&(l="-",o=-o),o>1e-21)if(n=(t=function(c){for(var d=0,h=c;h>=4096;)d+=12,h/=4096;for(;h>=2;)d+=1,h/=2;return d}(o*FC(2,69,1))-69)<0?o*FC(2,-t,1):o/FC(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Jw(s,0,n),r=a;r>=7;)Jw(s,1e7,0),r-=7;for(Jw(s,FC(10,r,1),0),r=t-1;r>=23;)sV(s,1<<23),r-=23;sV(s,1<<r),Jw(s,1,1),sV(s,2),u=Ype(s)}else Jw(s,0,n),Jw(s,1<<-t,0),u=Ype(s)+GZ("0",a);return a>0?l+((i=u.length)<=a?"0."+GZ("0",a-i)+u:Xpe(u,0,i-a)+"."+Xpe(u,i-a)):l+u}});var ghn={type:"image",renderElem:function(e,t,n){var r=e,i=r.src,o=r.alt,a=o===void 0?"":o,s=r.href,l=s===void 0?"":s,u=r.style,c=u===void 0?{}:u,d=c.width,h=d===void 0?"":d,f=c.height,g=f===void 0?"":f,b=tt.isNodeSelected(n,e),v={};h&&(v.width="100%"),g&&(v.height="100%");var m=mr("img",{style:v,src:i,alt:a,"data-href":l}),w=n.isDisabled();return b&&!w?function(k,T,S,I){var O=ut("body"),y=Kpe(k,T),_=I.width,A=I.height,R=0,D=0,C=0,x=!1,P=null;function $(Q){P=function(){var J=ut("#"+y);if(J.length===0)throw new Error("Cannot find image container elem");return J}(),R=Q;var U=P.find("img");if(U.length===0)throw new Error("Cannot find image elem");D=U.width(),C=U.height(),O.on("mousemove",L),O.on("mouseup",V);var K=tt.getHoverbar(k);K&&K.hideAndClean()}var L=u1(function(Q){Q.preventDefault();var U=Q.clientX,K=D+(x?R-U:U-R),J=C*(K/D);P!=null&&(K<=15||J<=15||(P.css("width",K+"px"),P.css("height",J+"px")))},100);function V(Q){if(O.off("mousemove",L),P!=null){var U=P.width().toFixed(2),K=P.height().toFixed(2),J={style:w0(w0({},T.style),{width:U+"px",height:K+"px"})};Rt.setNodes(k,J,{at:tt.findPath(k,T)}),O.off("mouseup",V)}}var H={};return _&&(H.width=_),A&&(H.height=A),mr("div",{id:y,style:H,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(Q){var U=ut(Q.target);U.hasClass("w-e-image-dragger")&&(Q.preventDefault(),(U.hasClass("left-top")||U.hasClass("left-bottom"))&&(x=!0),$(Q.clientX))}}},S,mr("div",{className:"w-e-image-dragger left-top"}),mr("div",{className:"w-e-image-dragger right-top"}),mr("div",{className:"w-e-image-dragger left-bottom"}),mr("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,m,{width:h,height:g}):function(k,T,S,I){var O=I.width,y=I.height,_={};return O&&(_.width=O),y&&(_.height=y),mr("div",{id:Kpe(k,T),style:_,className:"w-e-image-container"},S)}(n,e,m,{width:h,height:g})}},mhn={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ut(e),i=r.attr("data-href")||"";return i=decodeURIComponent(i),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:i,style:{width:ih(r,"width"),height:ih(r,"height")},children:[{text:""}]}}};function KTe(e,t,n,r,i){return r===void 0&&(r=""),i===void 0&&(i=""),F0(this,void 0,void 0,function(){var o,a;return N0(this,function(s){switch(s.label){case 0:return(o=t.getMenuConfig(e).checkImage)?[4,o(n,r,i)]:[3,2];case 1:if(typeof(a=s.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];s.label=2;case 2:return[2,!0]}})})}function qTe(e,t,n){return F0(this,void 0,void 0,function(){var r;return N0(this,function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}})})}function Db(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),F0(this,void 0,void 0,function(){var i,o,a;return N0(this,function(s){switch(s.label){case 0:return[4,KTe("insertImage",e,t,n,r)];case 1:return s.sent()?[4,qTe("insertImage",e,t)]:[2];case 2:return i=s.sent(),o={type:"image",src:pq(i),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),tt.getSelectedNodeByType(e,"image")&&e.move(1),jB(e)||(Rt.insertNodes(e,o),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(o)),[2]}})})}function jB(e){var t=e.selection;return t==null||!Vt.isCollapsed(t)||!!mi(_e.nodes(e,{match:function(n){var r=tt.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!_e.isVoid(e,n)},universal:!0}),1)[0]}function wR(){return VB("w-e-insert-image")}var vhn=function(){function e(){this.title=yn("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=wR(),this.altInputId=wR(),this.hrefInputId=wR(),this.buttonId=wR()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return jB(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,i=r.srcInputId,o=r.altInputId,a=r.hrefInputId,s=r.buttonId,l=mi(tc(yn("image.src"),i),2),u=l[0],c=ut(l[1]),d=mi(tc(yn("image.desc"),o),2),h=d[0],f=ut(d[1]),g=mi(tc(yn("image.link"),a),2),b=g[0],v=ut(g[1]),m=mi(Kx(s,yn("common.ok")),1)[0];if(this.$content==null){var w=ut("<div></div>");w.on("click","#"+s,function(T){T.preventDefault();var S=w.find("#"+i).val().trim(),I=w.find("#"+o).val().trim(),O=w.find("#"+a).val().trim();n.insertImage(t,S,I,O),t.hidePanelOrModal()}),this.$content=w}var k=this.$content;return k.empty(),k.append(u),k.append(h),k.append(b),k.append(m),c.val(""),f.val(""),v.val(""),setTimeout(function(){c.focus()}),k[0]},e.prototype.insertImage=function(t,n,r,i){r===void 0&&(r=""),i===void 0&&(i=""),n&&(t.restoreSelection(),this.isDisabled(t)||Db(t,n,r,i))},e}(),yhn=function(){function e(){this.title=yn("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||tt.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||Rt.removeNodes(t,{match:function(r){return tt.checkNodeType(r,"image")}})},e}();function CR(){return VB("w-e-edit-image")}var bhn=function(){function e(){this.title=yn("image.edit"),this.iconSvg=BTe,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=CR(),this.altInputId=CR(),this.hrefInputId=CR(),this.buttonId=CR()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return tt.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!Vt.isCollapsed(n)||tt.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=this,i=r.srcInputId,o=r.altInputId,a=r.hrefInputId,s=r.buttonId,l=this.getImageNode(t);if(l==null)throw new Error("Not found selected image node");var u=mi(tc(yn("image.src"),i),2),c=u[0],d=ut(u[1]),h=mi(tc(yn("image.desc"),o),2),f=h[0],g=ut(h[1]),b=mi(tc(yn("image.link"),a),2),v=b[0],m=ut(b[1]),w=mi(Kx(s,yn("common.ok")),1)[0];if(this.$content==null){var k=ut("<div></div>");k.on("click","#"+s,function(R){R.preventDefault();var D=k.find("#"+i).val(),C=k.find("#"+o).val(),x=k.find("#"+a).val();n.updateImage(t,D,C,x),t.hidePanelOrModal()}),this.$content=k}var T=this.$content;T.empty(),T.append(c),T.append(f),T.append(v),T.append(w);var S=l,I=S.src,O=S.alt,y=O===void 0?"":O,_=S.href,A=_===void 0?"":_;return d.val(I),g.val(y),m.val(A),setTimeout(function(){d.focus()}),T[0]},e.prototype.updateImage=function(t,n,r,i,o){r===void 0&&(r=""),i===void 0&&(i=""),o===void 0&&(o={}),n&&(t.restoreSelection(),this.isDisabled(t)||function(a,s,l,u,c){l===void 0&&(l=""),u===void 0&&(u=""),c===void 0&&(c={}),F0(this,void 0,void 0,function(){var d,h,f,g,b,v;return N0(this,function(m){switch(m.label){case 0:return[4,KTe("editImage",a,s,l,u)];case 1:return m.sent()?[4,qTe("editImage",a,s)]:[2];case 2:return d=m.sent(),(h=tt.getSelectedNodeByType(a,"image"))==null||(f=h.style,g={src:d,alt:l,href:u,style:w0(w0({},f===void 0?{}:f),c)},Rt.setNodes(a,g,{match:function(w){return tt.checkNodeType(w,"image")}}),b=tt.getSelectedNodeByType(a,"image"),(v=a.getMenuConfig("editImage").onUpdatedImage)&&v(b)),[2]}})})}(t,n,r,i,o))},e}(),whn=function(){function e(){this.title=yn("image.viewLink"),this.iconSvg=FTe,this.tag="button"}return e.prototype.getValue=function(t){var n=tt.getSelectedNodeByType(t,"image");return n&&n.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},e}(),gq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return tt.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.getSelectedNode(t);if(r!=null){var i=tt.getHoverbar(t);i&&i.hideAndClean();var o=r.style,a={style:w0(w0({},o===void 0?{}:o),{width:this.value,height:""})};Rt.setNodes(t,a,{match:function(s){return tt.checkNodeType(s,"image")}})}}},e}(),Chn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return Lo(t,e),t}(gq),Ohn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return Lo(t,e),t}(gq),xhn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return Lo(t,e),t}(gq),qpe={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},Shn={renderElems:[ghn],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,i=n.alt,o=i===void 0?"":i,a=n.href,s=a===void 0?"":a,l=n.style,u=l===void 0?{}:l,c=u.width,d=c===void 0?"":c,h=u.height,f=h===void 0?"":h,g="";return d&&(g+="width: "+d+";"),f&&(g+="height: "+f+";"),'<img src="'+r+'" alt="'+o+'" data-href="'+s+'" style="'+g+'"/>'}}],parseElemsHtml:[mhn],menus:[{key:"insertImage",factory:function(){return new vhn},config:qpe},{key:"deleteImage",factory:function(){return new yhn}},{key:"editImage",factory:function(){return new bhn},config:qpe},{key:"viewImageLink",factory:function(){return new whn}},{key:"imageWidth30",factory:function(){return new Chn}},{key:"imageWidth50",factory:function(){return new Ohn}},{key:"imageWidth100",factory:function(){return new xhn}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(i){return i.type==="image"||t(i)},r.isVoid=function(i){return i.type==="image"||n(i)},r}},Ahn={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var i=mr("div",{style:{margin:"5px 0"}},mr("span",{contentEditable:!1,style:{marginRight:"0.5em"}},mr("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(o){var a=tt.findPath(n,e),s={checked:o.target.checked};Rt.setNodes(n,s,{at:a})}}})),mr("span",null,t));return i}},Ihn=function(){function e(){this.title=yn("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!tt.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!tt.getSelectedElems(t).some(function(n){if(_e.isVoid(t,n)&&_e.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},e.prototype.exec=function(t,n){var r=this.isActive(t);Rt.setNodes(t,{type:r?"paragraph":"todo"})},e}(),khn={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=ut(e);(t=t.filter(function(o){return!!In.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(i=!0),{type:"todo",checked:i,children:t}}},Ehn={renderElems:[Ahn],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=ut(e).find("li"),n=ut('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[khn],menus:[{key:"todo",factory:function(){return new Ihn}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var i=e.selection;if(i&&Vt.isCollapsed(i)){var o=tt.getSelectedNodeByType(e,"todo");if(o&&vn.string(o).length===0)return void Rt.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},_hn={type:"blockquote",renderElem:function(e,t,n){return mr("blockquote",null,t)}},Thn={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ut(e);return(t=t.filter(function(i){return!!In.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},Phn=function(){function e(){this.title=yn("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!tt.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!mi(_e.nodes(t,{match:function(n){var r=tt.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";Rt.setNodes(t,{type:r},{mode:"highest"})}},e}(),Dhn={key:"blockquote",factory:function(){return new Phn}},Rhn=cr([].slice),$hn=sq("slice"),Mhn=pc("species"),lV=Dr.Array,Lhn=Math.max;as({target:"Array",proto:!0,forced:!$hn},{slice:function(e,t){var n,r,i,o=qx(this),a=FB(o),s=ME(e,a),l=ME(t===void 0?a:t,a);if(R4(o)&&(n=o.constructor,(aq(n)&&(n===lV||R4(n.prototype))||Qd(n)&&(n=n[Mhn])===null)&&(n=void 0),n===lV||n===void 0))return Rhn(o,s,l);for(r=new(n===void 0?lV:n)(Lhn(l-s,0)),i=0;s<l;s++,i++)s in o&&PTe(r,i,o[s]);return r.length=i,r}});var Bhn={renderElems:[_hn],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[Thn],menus:[Dhn],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var i=r.selection;if(i==null)return t();var o=mi(_e.nodes(e,{match:function(c){return tt.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!o)return t();var a=o[0],s=tt.findPath(e,a),l=_e.end(e,s);if(Vr.equals(l,i.focus)){var u=vn.string(a);if(u&&u.slice(-1)===`
|
|
`)return e.deleteBackward("character"),void Rt.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
|
|
`)},r}},Fhn=function(){function e(){this.title=yn("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!mi(_e.nodes(t,{match:function(n){return tt.getNodeType(n)==="pre"||!!_e.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=ut('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(o){var a=o.target;if(a!=null){o.preventDefault();var s=ut(a).text();t.insertText(s)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var i=t.getMenuConfig("emotion").emotions;return(i===void 0?[]:i).forEach(function(o){var a=ut("<li>"+o+"</li>");r.append(a)}),r[0]},e}(),Nhn={menus:[{key:"emotion",factory:function(){return new Fhn},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Vhn={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},jhn={selector:"font",preParseHtml:function(e){var t=ut(e);if(nS(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",Vhn[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},Whn=cr("".indexOf);as({target:"String",proto:!0,forced:!jTe("includes")},{includes:function(e){return!!~Whn(Ho(gd(this)),Ho(VTe(e)),arguments.length>1?arguments[1]:void 0)}});var Lm,f$,OR=function(e){return e&&e.Math==Math&&e},Zr=OR(typeof globalThis=="object"&&globalThis)||OR(typeof window=="object"&&window)||OR(typeof self=="object"&&self)||OR(typeof _4=="object"&&_4)||function(){return this}()||Function("return this")(),mq=Function.prototype,Jpe=mq.apply,Hhn=mq.bind,efe=mq.call,JTe=typeof Reflect=="object"&&Reflect.apply||(Hhn?efe.bind(Jpe):function(){return efe.apply(Jpe,arguments)}),ePe=Function.prototype,QZ=ePe.bind,UZ=ePe.call,zhn=QZ&&QZ.bind(UZ),fa=QZ?function(e){return e&&zhn(UZ,e)}:function(e){return e&&function(){return UZ.apply(e,arguments)}},dl=function(e){return typeof e=="function"},uc=function(e){try{return!!e()}catch{return!0}},fu=!uc(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),dI=Function.prototype.call,$p=dI.bind?dI.bind(dI):function(){return dI.apply(dI,arguments)},tfe={}.propertyIsEnumerable,nfe=Object.getOwnPropertyDescriptor,Zhn=nfe&&!tfe.call({1:2},1)?function(e){var t=nfe(this,e);return!!t&&t.enumerable}:tfe,vq={f:Zhn},m1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ghn=fa({}.toString),Qhn=fa("".slice),Rb=function(e){return Qhn(Ghn(e),8,-1)},uV=Zr.Object,Uhn=fa("".split),tPe=uc(function(){return!uV("z").propertyIsEnumerable(0)})?function(e){return Rb(e)=="String"?Uhn(e,""):uV(e)}:uV,Xhn=Zr.TypeError,yq=function(e){if(e==null)throw Xhn("Can't call method on "+e);return e},lf=function(e){return tPe(yq(e))},Ud=function(e){return typeof e=="object"?e!==null:dl(e)},Fc={},rfe=function(e){return dl(e)?e:void 0},cT=function(e,t){return arguments.length<2?rfe(Fc[e])||rfe(Zr[e]):Fc[e]&&Fc[e][t]||Zr[e]&&Zr[e][t]},nPe=fa({}.isPrototypeOf),cV=cT("navigator","userAgent")||"",ife=Zr.process,ofe=Zr.Deno,afe=ife&&ife.versions||ofe&&ofe.version,sfe=afe&&afe.v8;sfe&&(f$=(Lm=sfe.split("."))[0]>0&&Lm[0]<4?1:+(Lm[0]+Lm[1])),!f$&&cV&&(!(Lm=cV.match(/Edge\/(\d+)/))||Lm[1]>=74)&&(Lm=cV.match(/Chrome\/(\d+)/))&&(f$=+Lm[1]);var L4=f$,op=!!Object.getOwnPropertySymbols&&!uc(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&L4&&L4<41}),bq=op&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Yhn=Zr.Object,cO=bq?function(e){return typeof e=="symbol"}:function(e){var t=cT("Symbol");return dl(t)&&nPe(t.prototype,Yhn(e))},Khn=Zr.String,qhn=Zr.TypeError,rPe=function(e){if(dl(e))return e;throw qhn(function(t){try{return Khn(t)}catch{return"Object"}}(e)+" is not a function")},Jhn=Zr.TypeError,epn=Object.defineProperty,Zv=Zr["__core-js_shared__"]||function(e,t){try{epn(Zr,e,{value:t,configurable:!0,writable:!0})}catch{Zr[e]=t}return t}("__core-js_shared__",{}),N1=$B(function(e){(e.exports=function(t,n){return Zv[t]||(Zv[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),tpn=Zr.Object,dT=function(e){return tpn(yq(e))},npn=fa({}.hasOwnProperty),gi=Object.hasOwn||function(e,t){return npn(dT(e),t)},rpn=0,ipn=Math.random(),opn=fa(1 .toString),B4=function(e){return"Symbol("+(e===void 0?"":e)+")_"+opn(++rpn+ipn,36)},hI=N1("wks"),$b=Zr.Symbol,lfe=$b&&$b.for,apn=bq?$b:$b&&$b.withoutSetter||B4,fc=function(e){if(!gi(hI,e)||!op&&typeof hI[e]!="string"){var t="Symbol."+e;op&&gi($b,e)?hI[e]=$b[e]:hI[e]=bq&&lfe?lfe(t):apn(t)}return hI[e]},spn=Zr.TypeError,lpn=fc("toPrimitive"),rS=function(e){var t=function(n,r){if(!Ud(n)||cO(n))return n;var i,o,a=(i=n[lpn])==null?void 0:rPe(i);if(a){if(o=$p(a,n,r),!Ud(o)||cO(o))return o;throw spn("Can't convert object to primitive value")}return function(s,l){var u,c;if(dl(u=s.toString)&&!Ud(c=$p(u,s))||dl(u=s.valueOf)&&!Ud(c=$p(u,s))||l!=="string")return c;throw Jhn("Can't convert object to primitive value")}(n,r)}(e,"string");return cO(t)?t:t+""},XZ=Zr.document,upn=Ud(XZ)&&Ud(XZ.createElement),iPe=function(e){return upn?XZ.createElement(e):{}},oPe=!fu&&!uc(function(){return Object.defineProperty(iPe("div"),"a",{get:function(){return 7}}).a!=7}),ufe=Object.getOwnPropertyDescriptor,wq={f:fu?ufe:function(e,t){if(e=lf(e),t=rS(t),oPe)try{return ufe(e,t)}catch{}if(gi(e,t))return m1(!$p(vq.f,e,t),e[t])}},cpn=/#|\.prototype\./,hT=function(e,t){var n=hpn[dpn(e)];return n==fpn||n!=ppn&&(dl(t)?uc(t):!!t)},dpn=hT.normalize=function(e){return String(e).replace(cpn,".").toLowerCase()},hpn=hT.data={},ppn=hT.NATIVE="N",fpn=hT.POLYFILL="P",gpn=hT,cfe=fa(fa.bind),aPe=function(e,t){return rPe(e),t===void 0?e:cfe?cfe(e,t):function(){return e.apply(t,arguments)}},mpn=Zr.String,vpn=Zr.TypeError,v1=function(e){if(Ud(e))return e;throw vpn(mpn(e)+" is not an object")},ypn=Zr.TypeError,dfe=Object.defineProperty,V1={f:fu?dfe:function(e,t,n){if(v1(e),t=rS(t),v1(n),oPe)try{return dfe(e,t,n)}catch{}if("get"in n||"set"in n)throw ypn("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},cp=fu?function(e,t,n){return V1.f(e,t,m1(1,n))}:function(e,t,n){return e[t]=n,e},bpn=wq.f,wpn=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return JTe(e,this,arguments)};return t.prototype=e.prototype,t},cv=function(e,t){var n,r,i,o,a,s,l,u,c=e.target,d=e.global,h=e.stat,f=e.proto,g=d?Zr:h?Zr[c]:(Zr[c]||{}).prototype,b=d?Fc:Fc[c]||cp(Fc,c,{})[c],v=b.prototype;for(i in t)n=!gpn(d?i:c+(h?".":"#")+i,e.forced)&&g&&gi(g,i),a=b[i],n&&(s=e.noTargetGet?(u=bpn(g,i))&&u.value:g[i]),o=n&&s?s:t[i],n&&typeof a==typeof o||(l=e.bind&&n?aPe(o,Zr):e.wrap&&n?wpn(o):f&&dl(o)?fa(o):o,(e.sham||o&&o.sham||a&&a.sham)&&cp(l,"sham",!0),cp(b,i,l),f&&(gi(Fc,r=c+"Prototype")||cp(Fc,r,{}),cp(Fc[r],i,o),e.real&&v&&!v[i]&&cp(v,i,o)))},F4=Array.isArray||function(e){return Rb(e)=="Array"},Cpn=Math.ceil,Opn=Math.floor,Cq=function(e){var t=+e;return t!=t||t===0?0:(t>0?Opn:Cpn)(t)},xpn=Math.min,WB=function(e){return(t=e.length)>0?xpn(Cq(t),9007199254740991):0;var t},YZ=function(e,t,n){var r=rS(t);r in e?V1.f(e,r,m1(0,n)):e[r]=n},sPe={};sPe[fc("toStringTag")]="z";var Oq=String(sPe)==="[object z]",Spn=fc("toStringTag"),Apn=Zr.Object,Ipn=Rb(function(){return arguments}())=="Arguments",HB=Oq?Rb:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=Apn(e),Spn))=="string"?n:Ipn?Rb(t):(r=Rb(t))=="Object"&&dl(t.callee)?"Arguments":r},kpn=fa(Function.toString);dl(Zv.inspectSource)||(Zv.inspectSource=function(e){return kpn(e)});var lPe=Zv.inspectSource,uPe=function(){},Epn=[],cPe=cT("Reflect","construct"),xq=/^\s*(?:class|function)\b/,_pn=fa(xq.exec),Tpn=!xq.exec(uPe),pI=function(e){if(!dl(e))return!1;try{return cPe(uPe,Epn,e),!0}catch{return!1}},Ppn=!cPe||uc(function(){var e;return pI(pI.call)||!pI(Object)||!pI(function(){e=!0})||e})?function(e){if(!dl(e))return!1;switch(HB(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Tpn||!!_pn(xq,lPe(e))}:pI,Dpn=fc("species"),hfe=Zr.Array,dPe=function(e,t){return new(function(n){var r;return F4(n)&&(r=n.constructor,(Ppn(r)&&(r===hfe||F4(r.prototype))||Ud(r)&&(r=r[Dpn])===null)&&(r=void 0)),r===void 0?hfe:r}(e))(t===0?0:t)},Rpn=fc("species"),hPe=fc("isConcatSpreadable"),pfe=Zr.TypeError,$pn=L4>=51||!uc(function(){var e=[];return e[hPe]=!1,e.concat()[0]!==e}),Mpn=L4>=51||!uc(function(){var e=[];return(e.constructor={})[Rpn]=function(){return{foo:1}},e.concat(Boolean).foo!==1}),Lpn=function(e){if(!Ud(e))return!1;var t=e[hPe];return t!==void 0?!!t:F4(e)};cv({target:"Array",proto:!0,forced:!$pn||!Mpn},{concat:function(e){var t,n,r,i,o,a=dT(this),s=dPe(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(Lpn(o=t===-1?a:arguments[t])){if(l+(i=WB(o))>9007199254740991)throw pfe("Maximum allowed index exceeded");for(n=0;n<i;n++,l++)n in o&&YZ(s,l,o[n])}else{if(l>=9007199254740991)throw pfe("Maximum allowed index exceeded");YZ(s,l++,o)}return s.length=l,s}});var xR,Bpn=Zr.String,N4=function(e){if(HB(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Bpn(e)},Fpn=Math.max,Npn=Math.min,KZ=function(e,t){var n=Cq(e);return n<0?Fpn(n+t,0):Npn(n,t)},ffe=function(e){return function(t,n,r){var i,o=lf(t),a=WB(o),s=KZ(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},Vpn={includes:ffe(!0),indexOf:ffe(!1)},pT={},jpn=Vpn.indexOf,gfe=fa([].push),pPe=function(e,t){var n,r=lf(e),i=0,o=[];for(n in r)!gi(pT,n)&&gi(r,n)&&gfe(o,n);for(;t.length>i;)gi(r,n=t[i++])&&(~jpn(o,n)||gfe(o,n));return o},V4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sq=Object.keys||function(e){return pPe(e,V4)},Wpn=fu?Object.defineProperties:function(e,t){v1(e);for(var n,r=lf(t),i=Sq(t),o=i.length,a=0;o>a;)V1.f(e,n=i[a++],r[n]);return e},Hpn=cT("document","documentElement"),mfe=N1("keys"),zB=function(e){return mfe[e]||(mfe[e]=B4(e))},fPe=zB("IE_PROTO"),dV=function(){},gPe=function(e){return"<script>"+e+"<\/script>"},vfe=function(e){e.write(gPe("")),e.close();var t=e.parentWindow.Object;return e=null,t},g$=function(){try{xR=new ActiveXObject("htmlfile")}catch{}var e,t;g$=typeof document<"u"?document.domain&&xR?vfe(xR):((t=iPe("iframe")).style.display="none",Hpn.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(gPe("document.F=Object")),e.close(),e.F):vfe(xR);for(var n=V4.length;n--;)delete g$.prototype[V4[n]];return g$()};pT[fPe]=!0;var j4,i2,W4,y1=Object.create||function(e,t){var n;return e!==null?(dV.prototype=v1(e),n=new dV,dV.prototype=null,n[fPe]=e):n=g$(),t===void 0?n:Wpn(n,t)},zpn=V4.concat("length","prototype"),mPe={f:Object.getOwnPropertyNames||function(e){return pPe(e,zpn)}},Zpn=Zr.Array,Gpn=Math.max,yfe=mPe.f,bfe=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vPe={f:function(e){return bfe&&Rb(e)=="Window"?function(t){try{return yfe(t)}catch{return function(n,r,i){for(var o=WB(n),a=KZ(void 0,o),s=KZ(o,o),l=Zpn(Gpn(s-a,0)),u=0;a<s;a++,u++)YZ(l,u,n[a]);return l.length=u,l}(bfe)}}(e):yfe(lf(e))}},hV={f:Object.getOwnPropertySymbols},Qpn=fa([].slice),H4=function(e,t,n,r){cp(e,t,n)},Aq={f:fc},Upn=V1.f,Aa=function(e){var t=Fc.Symbol||(Fc.Symbol={});gi(t,e)||Upn(t,e,{value:Aq.f(e)})},Xpn=Oq?{}.toString:function(){return"[object "+HB(this)+"]"},Ypn=V1.f,wfe=fc("toStringTag"),z4=function(e,t,n,r){if(e){var i=n?e:e.prototype;gi(i,wfe)||Ypn(i,wfe,{configurable:!0,value:t}),r&&!Oq&&cp(i,"toString",Xpn)}},Cfe=Zr.WeakMap,Kpn=dl(Cfe)&&/native code/.test(lPe(Cfe)),qZ=Zr.TypeError,qpn=Zr.WeakMap;if(Kpn||Zv.state){var Dy=Zv.state||(Zv.state=new qpn),Jpn=fa(Dy.get),Ofe=fa(Dy.has),efn=fa(Dy.set);j4=function(e,t){if(Ofe(Dy,e))throw new qZ("Object already initialized");return t.facade=e,efn(Dy,e,t),t},i2=function(e){return Jpn(Dy,e)||{}},W4=function(e){return Ofe(Dy,e)}}else{var eC=zB("state");pT[eC]=!0,j4=function(e,t){if(gi(e,eC))throw new qZ("Object already initialized");return t.facade=e,cp(e,eC,t),t},i2=function(e){return gi(e,eC)?e[eC]:{}},W4=function(e){return gi(e,eC)}}var iS={set:j4,get:i2,has:W4,enforce:function(e){return W4(e)?i2(e):j4(e,{})},getterFor:function(e){return function(t){var n;if(!Ud(t)||(n=i2(t)).type!==e)throw qZ("Incompatible receiver, "+e+" required");return n}}},xfe=fa([].push),Bm=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,u,c,d){for(var h,f,g=dT(l),b=tPe(g),v=aPe(u,c),m=WB(b),w=0,k=d||dPe,T=t?k(l,m):n||a?k(l,0):void 0;m>w;w++)if((s||w in b)&&(f=v(h=b[w],w,g),e))if(t)T[w]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:xfe(T,h)}else switch(e){case 4:return!1;case 7:xfe(T,h)}return o?-1:r||i?i:T}},ZB=[Bm(0),Bm(1),Bm(2),Bm(3),Bm(4),Bm(5),Bm(6),Bm(7)][0],ru=zB("hidden"),Sfe=fc("toPrimitive"),tfn=iS.set,Afe=iS.getterFor("Symbol"),Xd=Object.prototype,bv=Zr.Symbol,Tv=bv&&bv.prototype,Ife=Zr.TypeError,pV=Zr.QObject,fI=cT("JSON","stringify"),yPe=wq.f,wv=V1.f,bPe=vPe.f,nfn=vq.f,wPe=fa([].push),kg=N1("symbols"),fT=N1("op-symbols"),fV=N1("string-to-symbol-registry"),gV=N1("symbol-to-string-registry"),rfn=N1("wks"),mV=!pV||!pV.prototype||!pV.prototype.findChild,JZ=fu&&uc(function(){return y1(wv({},"a",{get:function(){return wv(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=yPe(Xd,t);r&&delete Xd[t],wv(e,t,n),r&&e!==Xd&&wv(Xd,t,r)}:wv,vV=function(e,t){var n=kg[e]=y1(Tv);return tfn(n,{type:"Symbol",tag:e,description:t}),fu||(n.description=t),n},Z4=function(e,t,n){e===Xd&&Z4(fT,t,n),v1(e);var r=rS(t);return v1(n),gi(kg,r)?(n.enumerable?(gi(e,ru)&&e[ru][r]&&(e[ru][r]=!1),n=y1(n,{enumerable:m1(0,!1)})):(gi(e,ru)||wv(e,ru,m1(1,{})),e[ru][r]=!0),JZ(e,r,n)):wv(e,r,n)},kfe=function(e,t){v1(e);var n=lf(t),r=Sq(n).concat(eG(n));return ZB(r,function(i){fu&&!$p(CPe,n,i)||Z4(e,i,n[i])}),e},CPe=function(e){var t=rS(e),n=$p(nfn,this,t);return!(this===Xd&&gi(kg,t)&&!gi(fT,t))&&(!(n||!gi(this,t)||!gi(kg,t)||gi(this,ru)&&this[ru][t])||n)},Efe=function(e,t){var n=lf(e),r=rS(t);if(n!==Xd||!gi(kg,r)||gi(fT,r)){var i=yPe(n,r);return!i||!gi(kg,r)||gi(n,ru)&&n[ru][r]||(i.enumerable=!0),i}},_fe=function(e){var t=bPe(lf(e)),n=[];return ZB(t,function(r){gi(kg,r)||gi(pT,r)||wPe(n,r)}),n},eG=function(e){var t=e===Xd,n=bPe(t?fT:lf(e)),r=[];return ZB(n,function(i){!gi(kg,i)||t&&!gi(Xd,i)||wPe(r,kg[i])}),r};if(op||(Tv=(bv=function(){if(nPe(Tv,this))throw Ife("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?N4(arguments[0]):void 0,t=B4(e),n=function(r){this===Xd&&$p(n,fT,r),gi(this,ru)&&gi(this[ru],t)&&(this[ru][t]=!1),JZ(this,t,m1(1,r))};return fu&&mV&&JZ(Xd,t,{configurable:!0,set:n}),vV(t,e)}).prototype,H4(Tv,"toString",function(){return Afe(this).tag}),H4(bv,"withoutSetter",function(e){return vV(B4(e),e)}),vq.f=CPe,V1.f=Z4,wq.f=Efe,mPe.f=vPe.f=_fe,hV.f=eG,Aq.f=function(e){return vV(fc(e),e)},fu&&wv(Tv,"description",{configurable:!0,get:function(){return Afe(this).description}})),cv({global:!0,wrap:!0,forced:!op,sham:!op},{Symbol:bv}),ZB(Sq(rfn),function(e){Aa(e)}),cv({target:"Symbol",stat:!0,forced:!op},{for:function(e){var t=N4(e);if(gi(fV,t))return fV[t];var n=bv(t);return fV[t]=n,gV[n]=t,n},keyFor:function(e){if(!cO(e))throw Ife(e+" is not a symbol");if(gi(gV,e))return gV[e]},useSetter:function(){mV=!0},useSimple:function(){mV=!1}}),cv({target:"Object",stat:!0,forced:!op,sham:!fu},{create:function(e,t){return t===void 0?y1(e):kfe(y1(e),t)},defineProperty:Z4,defineProperties:kfe,getOwnPropertyDescriptor:Efe}),cv({target:"Object",stat:!0,forced:!op},{getOwnPropertyNames:_fe,getOwnPropertySymbols:eG}),cv({target:"Object",stat:!0,forced:uc(function(){hV.f(1)})},{getOwnPropertySymbols:function(e){return hV.f(dT(e))}}),fI){var ifn=!op||uc(function(){var e=bv();return fI([e])!="[null]"||fI({a:e})!="{}"||fI(Object(e))!="{}"});cv({target:"JSON",stat:!0,forced:ifn},{stringify:function(e,t,n){var r=Qpn(arguments),i=t;if((Ud(t)||e!==void 0)&&!cO(e))return F4(t)||(t=function(o,a){if(dl(i)&&(a=$p(i,this,o,a)),!cO(a))return a}),r[1]=t,JTe(fI,null,r)}})}if(!Tv[Sfe]){var ofn=Tv.valueOf;H4(Tv,Sfe,function(e){return $p(ofn,this)})}z4(bv,"Symbol"),pT[ru]=!0,Aa("asyncIterator"),Aa("hasInstance"),Aa("isConcatSpreadable"),Aa("iterator"),Aa("match"),Aa("matchAll"),Aa("replace"),Aa("search"),Aa("species"),Aa("split"),Aa("toPrimitive"),Aa("toStringTag"),Aa("unscopables"),z4(Zr.JSON,"JSON",!0);var Pv,Tfe,Pfe,afn=Fc.Symbol,Mb={},OPe=Function.prototype,sfn=fu&&Object.getOwnPropertyDescriptor,yV=gi(OPe,"name"),lfn={EXISTS:yV,PROPER:yV&&(function(){}).name==="something",CONFIGURABLE:yV&&(!fu||fu&&sfn(OPe,"name").configurable)},ufn=!uc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Dfe=zB("IE_PROTO"),tG=Zr.Object,cfn=tG.prototype,nG=ufn?tG.getPrototypeOf:function(e){var t=dT(e);if(gi(t,Dfe))return t[Dfe];var n=t.constructor;return dl(n)&&t instanceof n?n.prototype:t instanceof tG?cfn:null},rG=fc("iterator"),xPe=!1;[].keys&&("next"in(Pfe=[].keys())?(Tfe=nG(nG(Pfe)))!==Object.prototype&&(Pv=Tfe):xPe=!0);var dfn=Pv==null||uc(function(){var e={};return Pv[rG].call(e)!==e});Pv=dfn?{}:y1(Pv),dl(Pv[rG])||H4(Pv,rG,function(){return this});var SPe={IteratorPrototype:Pv,BUGGY_SAFARI_ITERATORS:xPe},hfn=SPe.IteratorPrototype,pfn=function(){return this};Zr.String,Zr.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{fa(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch{}}();var ffn=lfn.PROPER,bV=SPe.BUGGY_SAFARI_ITERATORS,gfn=fc("iterator"),mfn=function(){return this},APe=function(e,t,n,r,i,o,a){(function(v,m,w,k){var T=m+" Iterator";v.prototype=y1(hfn,{next:m1(1,w)}),z4(v,T,!1,!0),Mb[T]=pfn})(n,t,r);var s,l,u=function(v){if(v===i&&g)return g;if(!bV&&v in h)return h[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,h=e.prototype,f=h[gfn]||h["@@iterator"]||i&&h[i],g=!bV&&f||u(i),b=t=="Array"&&h.entries||f;return b&&(s=nG(b.call(new e)))!==Object.prototype&&s.next&&(z4(s,c,!0,!0),Mb[c]=mfn),ffn&&i=="values"&&f&&f.name!=="values"&&(d=!0,g=function(){return $p(f,this)}),i&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||cv({target:t,proto:!0,forced:bV||d},l)),Mb[t]=g,l},vfn=iS.set,yfn=iS.getterFor("Array Iterator");APe(Array,"Array",function(e,t){vfn(this,{type:"Array Iterator",target:lf(e),index:0,kind:t})},function(){var e=yfn(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),Mb.Arguments=Mb.Array;var Rfe=fc("toStringTag");for(var wV in{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}){var $fe=Zr[wV],CV=$fe&&$fe.prototype;CV&&HB(CV)!==Rfe&&cp(CV,Rfe,wV),Mb[wV]=Mb.Array}var bfn=afn;Aa("asyncDispose"),Aa("dispose"),Aa("matcher"),Aa("metadata"),Aa("observable"),Aa("patternMatch"),Aa("replaceAll");var SR=bfn,wfn=fa("".charAt),Mfe=fa("".charCodeAt),Cfn=fa("".slice),Ofn=function(e){return function(t,n){var r,i,o=N4(yq(t)),a=Cq(n),s=o.length;return a<0||a>=s?"":(r=Mfe(o,a))<55296||r>56319||a+1===s||(i=Mfe(o,a+1))<56320||i>57343?wfn(o,a):Cfn(o,a,a+2)}},xfn=Ofn(),Sfn=iS.set,Afn=iS.getterFor("String Iterator");APe(String,"String",function(e){Sfn(this,{type:"String Iterator",string:N4(e),index:0})},function(){var e,t=Afn(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=xfn(n,r),t.index+=e.length,{value:e,done:!1})});var Ifn=Aq.f("iterator"),kfn=$B(function(e){function t(n){return typeof SR=="function"&&typeof Ifn=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof SR=="function"&&r.constructor===SR&&r!==SR.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),IPe=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(kfn),Efn=BB.EXISTS,_fn=Jx.f,kPe=Function.prototype,Tfn=cr(kPe.toString),EPe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Pfn=cr(EPe.exec);fh&&!Efn&&_fn(kPe,"name",{configurable:!0,get:function(){try{return Pfn(EPe,Tfn(this))[1]}catch{return""}}});var _Pe=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.mark,r=_e.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!mi(_e.nodes(t,{match:function(n){return tt.getNodeType(n)==="pre"||!!_e.isVoid(t,n)},universal:!0}),1)[0])},e.prototype.exec=function(t,n){var r=this.mark;n?t.addMark(r,n):t.removeMark(r)},e}(),Dfn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=yn("fontSize.title"),n.iconSvg=idn,n.mark="fontSize",n}return Lo(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontSizeList,o=i===void 0?[]:i;r.push({text:yn("fontSize.default"),value:""}),o.forEach(function(s){if(typeof s=="string")r.push({text:s,value:s});else if(IPe(s)==="object"){var l=s.name,u=s.value;r.push({text:l,value:u})}});var a=this.getValue(n);return r.forEach(function(s){s.value===a?s.selected=!0:delete s.selected}),r},t}(_Pe),Rfn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=yn("fontFamily.title"),n.iconSvg=odn,n.mark="fontFamily",n.selectPanelWidth=150,n}return Lo(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontFamilyList,o=i===void 0?[]:i;r.push({text:yn("fontFamily.default"),value:""}),o.forEach(function(s){if(typeof s=="string")r.push({text:s,value:s,styleForRenderMenuList:{"font-family":s}});else if(IPe(s)==="object"){var l=s.name,u=s.value;r.push({text:l,value:u,styleForRenderMenuList:{"font-family":u}})}});var a=this.getValue(n);return r.forEach(function(s){s.value===a?s.selected=!0:delete s.selected}),r},t}(_Pe),$fn={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,o=t;return r&&g1(o,{fontSize:r}),i&&g1(o,{fontFamily:i}),o},styleToHtml:function(e,t){if(!In.isText(e))return t;var n,r=e,i=r.fontSize,o=r.fontFamily;return i||o?((hq(t)||nS(n=ut(t))!=="span")&&(n=ut("<span>"+t+"</span>")),i&&n.css("font-size",i),o&&n.css("font-family",o),tS(n)):t},preParseHtml:[jhn],parseStyleHtml:function(e,t,n){var r=ut(e);if(!In.isText(t))return t;var i=t,o=n.getMenuConfig("fontSize").fontSizeList,a=o===void 0?[]:o,s=ih(r,"font-size"),l=a.find(function(f){return f.value&&f.value===s})||a.includes(s);s&&l&&(i.fontSize=s);var u=n.getMenuConfig("fontFamily").fontFamilyList,c=u===void 0?[]:u,d=ih(r,"font-family").replace(/"/g,""),h=c.find(function(f){return f.value&&f.value===d})||c.includes(d);return d&&h&&(i.fontFamily=d),i},menus:[{key:"fontSize",factory:function(){return new Dfn},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new Rfn},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Mfn={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=ut(e),n=ih(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},TPe=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=mi(_e.nodes(t,{match:function(i){return!!i.indent},universal:!0}),1),r=n[0];return r==null?"":mi(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=mi(_e.nodes(t,{match:function(r){var i=tt.getNodeType(r);return i==="paragraph"||!!i.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e}(),Lfn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=yn("indent.decrease"),n.iconSvg=adn,n}return Lo(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){Rt.setNodes(n,{indent:null},{match:function(i){return jn.isElement(i)}})},t}(TPe),Bfn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=yn("indent.increase"),n.iconSvg=sdn,n}return Lo(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){Rt.setNodes(n,{indent:"2em"},{match:function(i){return jn.isElement(i)},mode:"highest"})},t}(TPe),Ffn={renderStyle:function(e,t){if(!jn.isElement(e))return t;var n=e.indent,r=t;return n&&g1(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!jn.isElement(e))return t;var n=e.indent;if(!n)return t;var r=ut(t);return r.css("text-indent",n),tS(r)},preParseHtml:[Mfn],parseStyleHtml:function(e,t,n){var r=ut(e);if(!jn.isElement(t))return t;var i=t,o=ih(r,"text-indent"),a=parseInt(o,10);return o&&a>0&&(i.indent=o),i},menus:[{key:"indent",factory:function(){return new Bfn}},{key:"delIndent",factory:function(){return new Lfn}}]},GB=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=mi(_e.nodes(t,{match:function(r){var i=tt.getNodeType(r);return i==="paragraph"||i==="blockquote"||!!i.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!tt.getSelectedElems(t).some(function(n){if(_e.isVoid(t,n)&&_e.isBlock(t,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},e}(),Nfn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=yn("justify.left"),n.iconSvg=ldn,n}return Lo(t,e),t.prototype.exec=function(n,r){Rt.setNodes(n,{textAlign:"left"},{match:function(i){return jn.isElement(i)&&!n.isInline(i)}})},t}(GB),Vfn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=yn("justify.right"),n.iconSvg=udn,n}return Lo(t,e),t.prototype.exec=function(n,r){Rt.setNodes(n,{textAlign:"right"},{match:function(i){return jn.isElement(i)&&!n.isInline(i)}})},t}(GB),jfn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=yn("justify.center"),n.iconSvg=cdn,n}return Lo(t,e),t.prototype.exec=function(n,r){Rt.setNodes(n,{textAlign:"center"},{match:function(i){return jn.isElement(i)&&!n.isInline(i)}})},t}(GB),Wfn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=yn("justify.justify"),n.iconSvg=ddn,n}return Lo(t,e),t.prototype.exec=function(n,r){Rt.setNodes(n,{textAlign:"justify"},{match:function(i){return jn.isElement(i)&&!n.isInline(i)}})},t}(GB),Hfn={renderStyle:function(e,t){if(!jn.isElement(e))return t;var n=e.textAlign,r=t;return n&&g1(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!jn.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=ut(t);return r.css("text-align",n),tS(r)},parseStyleHtml:function(e,t,n){var r=ut(e);if(!jn.isElement(t))return t;var i=t,o=ih(r,"text-align");return o&&(i.textAlign=o),i},menus:[{key:"justifyLeft",factory:function(){return new Nfn}},{key:"justifyRight",factory:function(){return new Vfn}},{key:"justifyCenter",factory:function(){return new jfn}},{key:"justifyJustify",factory:function(){return new Wfn}}]},zfn=function(){function e(){this.title=yn("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,i=r===void 0?[]:r;n.push({text:yn("lineHeight.default"),value:""}),i.forEach(function(a){n.push({text:a,value:a})});var o=this.getValue(t);return n.forEach(function(a){a.value===o?a.selected=!0:delete a.selected}),n},e.prototype.getMatchNode=function(t){var n=mi(_e.nodes(t,{match:function(r){var i=tt.getNodeType(r);return!!i.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(i)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getMatchNode(t);return n==null?"":jn.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){Rt.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e}(),Zfn={renderStyle:function(e,t){if(!jn.isElement(e))return t;var n=e.lineHeight,r=t;return n&&g1(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!jn.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=ut(t);return r.css("line-height",n),tS(r)},parseStyleHtml:function(e,t,n){var r=ut(e);if(!jn.isElement(t))return t;var i=t,o=n.getMenuConfig("lineHeight").lineHeightList,a=o===void 0?[]:o,s=ih(r,"line-height");return s&&a.includes(s)&&(i.lineHeight=s),i},menus:[{key:"lineHeight",factory:function(){return new zfn},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Gfn=function(){function e(){this.title=yn("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.redo=="function"&&t.redo()},e}(),Qfn=function(){function e(){this.title=yn("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.undo=="function"&&t.undo()},e}(),Ufn={menus:[{key:"redo",factory:function(){return new Gfn}},{key:"undo",factory:function(){return new Qfn}}]},Xfn={type:"divider",renderElem:function(e,t,n){return rx("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:tt.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[rx("hr")])}},Yfn=function(){function e(){this.title=yn("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!tt.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var r=tt.getNodeType(n);return r==="table"||r==="pre"||void 0})},e.prototype.exec=function(t,n){Rt.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),Kfn={renderElems:[Xfn],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Yfn}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(i){return i.type==="divider"||t(i)},r.normalizeNode=function(i){var o=mi(i,2),a=o[0],s=o[1];if(tt.getNodeType(a)!=="divider")return n([a,s]);tt.isLastNode(r,a)&&Rt.insertNodes(r,tt.genEmptyParagraph(),{at:[s[0]+1]})},r}},qfn=NB.map;as({target:"Array",proto:!0,forced:!sq("map")},{map:function(e){return qfn(this,e,arguments.length>1?arguments[1]:void 0)}});var Jfn=cr([].join),egn=MB!=Object,tgn=$Te("join",",");as({target:"Array",proto:!0,forced:egn||!tgn},{join:function(e){return Jfn(qx(this),e===void 0?",":e)}});var ngn=function(){function e(){this.title=yn("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(t){var n=tt.getSelectedNodeByType(t,"code");if(n==null)return null;var r=tt.getParentNode(t,n);return r==null||tt.getNodeType(r)!=="pre"?null:n},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);return n==null?"":n.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var n=tt.getSelectedElems(t);return!!n.some(function(r){return t.isVoid(r)})||!n.some(function(r){var i=tt.getNodeType(r);if(i==="pre"||i==="paragraph")return!0})},e.prototype.exec=function(t,n){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,n.toString())},e.prototype.changeToPlainText=function(t){var n=this.getSelectCodeElem(t);if(n!=null){var r=vn.string(n);Rt.removeNodes(t,{mode:"highest"});var i=r.split(`
|
|
`).map(function(o){return{type:"paragraph",children:[{text:o}]}});Rt.insertNodes(t,i,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,i,o=[],a=_e.nodes(t,{match:function(d){return t.children.includes(d)},universal:!0});try{for(var s=RTe(a),l=s.next();!l.done;l=s.next()){var u=mi(l.value,1)[0];u&&o.push(vn.string(u))}}catch(d){r={error:d}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}Rt.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:o.join(`
|
|
`)}]}]};Rt.insertNodes(t,c,{mode:"highest"})},e}(),rgn={key:"codeBlock",factory:function(){return new ngn}};as({target:"String",proto:!0,forced:hk("anchor")},{anchor:function(e){return dk(this,"a","name",e)}}),cq("match",function(e,t,n){return[function(r){var i=gd(this),o=r==null?void 0:LB(r,e);return o?ka(o,r,i):new RegExp(r)[e](Ho(i))},function(r){var i=nc(this),o=Ho(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return BE(i,o);var s=i.unicode;i.lastIndex=0;for(var l,u=[],c=0;(l=BE(i,o))!==null;){var d=Ho(l[0]);u[c]=d,d===""&&(i.lastIndex=dq(o,aT(i.lastIndex),s)),c++}return c===0?null:u}]});var ign={type:"pre",renderElem:function(e,t,n){return mr("pre",null,t)}},ogn={type:"code",renderElem:function(e,t,n){return mr("code",null,t)}},agn={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ut(e);return(t=t.filter(function(i){return tt.getNodeType(i)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(i){return tt.getNodeType(i)==="code"})}}},sgn={menus:[rgn],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var i=e;return i.insertBreak=function(){var o=tt.getSelectedNodeByType(i,"code");if(o!=null){var a=function(u,c){var d=c.selection;if(d==null)return"";var h=vn.string(u),f=d.anchor.offset,g=h.slice(0,f).split(`
|
|
`),b=g.length;return b===0?"":g[b-1]}(o,i);if(a){var s=a.match(/^\s+/);if(s!=null&&s[0]!=null){var l=s[0];return void i.insertText(`
|
|
`+l)}}i.insertText(`
|
|
`)}else t()},i.normalizeNode=function(o){var a=mi(o,2),s=a[0],l=a[1],u=tt.getNodeType(s);return u==="code"&&l.length<=1&&Rt.setNodes(i,{type:"paragraph"},{at:l}),u==="pre"&&(tt.isLastNode(i,s)&&Rt.insertNodes(i,tt.genEmptyParagraph(),{at:[l[0]+1]}),tt.getNodeType(s.children[0])!=="code"&&(Rt.unwrapNodes(i),Rt.setNodes(i,{type:"paragraph"},{mode:"highest"}))),n([s,l])},i.insertData=function(o){if(tt.getSelectedNodeByType(i,"code")!=null){var a=o.getData("text/plain");_e.insertText(i,a)}else r(o)},i},renderElems:[ign,ogn],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=ut(e);if(nS(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:ut(e)[0].textContent||""}]}}},agn]},lgn=function(){function e(){this.title=yn("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),ugn={menus:[{key:"fullScreen",factory:function(){return new lgn}}]},cgn=function(){function e(){this.title=yn("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!Vt.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var i=[r.anchor.path[0]];Rt.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:i}),t.select(_e.start(t,i))}},e}(),dgn=[Odn,ehn,$fn,Ffn,Hfn,Zfn,Shn,Kfn,Nhn,dhn,sgn,Bhn,Xdn,Zcn,Ehn,Ufn,ugn,{menus:[{key:"enter",factory:function(){return new cgn}}]}];vu("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),vu("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Lfe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Iq(e){var t={exports:{}};return e(t,t.exports),t.exports}var Fm,m$,AR=function(e){return e&&e.Math==Math&&e},vr=AR(typeof globalThis=="object"&&globalThis)||AR(typeof window=="object"&&window)||AR(typeof self=="object"&&self)||AR(typeof Lfe=="object"&&Lfe)||function(){return this}()||Function("return this")(),PPe=Function.prototype,iG=PPe.bind,oG=PPe.call,hgn=iG&&iG.bind(oG),Kr=iG?function(e){return e&&hgn(oG,e)}:function(e){return e&&function(){return oG.apply(e,arguments)}},ia=function(e){try{return!!e()}catch{return!0}},pgn=Kr({}.toString),fgn=Kr("".slice),fg=function(e){return fgn(pgn(e),8,-1)},OV=vr.Object,ggn=Kr("".split),DPe=ia(function(){return!OV("z").propertyIsEnumerable(0)})?function(e){return fg(e)=="String"?ggn(e,""):OV(e)}:OV,mgn=vr.TypeError,QB=function(e){if(e==null)throw mgn("Can't call method on "+e);return e},oS=function(e){return DPe(QB(e))},vgn=Object.defineProperty,kq=function(e,t){try{vgn(vr,e,{value:t,configurable:!0,writable:!0})}catch{vr[e]=t}return t},Gv=vr["__core-js_shared__"]||kq("__core-js_shared__",{}),Eq=Iq(function(e){(e.exports=function(t,n){return Gv[t]||(Gv[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),ygn=vr.Object,gT=function(e){return ygn(QB(e))},bgn=Kr({}.hasOwnProperty),ss=Object.hasOwn||function(e,t){return bgn(gT(e),t)},wgn=0,Cgn=Math.random(),Ogn=Kr(1 .toString),_q=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ogn(++wgn+Cgn,36)},ga=function(e){return typeof e=="function"},xgn=function(e){return ga(e)?e:void 0},mT=function(e,t){return arguments.length<2?xgn(vr[e]):vr[e]&&vr[e][t]},xV=mT("navigator","userAgent")||"",Bfe=vr.process,Ffe=vr.Deno,Nfe=Bfe&&Bfe.versions||Ffe&&Ffe.version,Vfe=Nfe&&Nfe.v8;Vfe&&(m$=(Fm=Vfe.split("."))[0]>0&&Fm[0]<4?1:+(Fm[0]+Fm[1])),!m$&&xV&&(!(Fm=xV.match(/Edge\/(\d+)/))||Fm[1]>=74)&&(Fm=xV.match(/Chrome\/(\d+)/))&&(m$=+Fm[1]);var IR,aG=m$,sG=!!Object.getOwnPropertySymbols&&!ia(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aG&&aG<41}),Tq=sG&&!Symbol.sham&&typeof Symbol.iterator=="symbol",gI=Eq("wks"),Lb=vr.Symbol,jfe=Lb&&Lb.for,Sgn=Tq?Lb:Lb&&Lb.withoutSetter||_q,Hs=function(e){if(!ss(gI,e)||!sG&&typeof gI[e]!="string"){var t="Symbol."+e;sG&&ss(Lb,e)?gI[e]=Lb[e]:gI[e]=Tq&&jfe?jfe(t):Sgn(t)}return gI[e]},pa=function(e){return typeof e=="object"?e!==null:ga(e)},Agn=vr.String,Ign=vr.TypeError,yu=function(e){if(pa(e))return e;throw Ign(Agn(e)+" is not an object")},C0=!ia(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),lG=vr.document,kgn=pa(lG)&&pa(lG.createElement),Pq=function(e){return kgn?lG.createElement(e):{}},RPe=!C0&&!ia(function(){return Object.defineProperty(Pq("div"),"a",{get:function(){return 7}}).a!=7}),mI=Function.prototype.call,Cs=mI.bind?mI.bind(mI):function(){return mI.apply(mI,arguments)},G4=Kr({}.isPrototypeOf),Egn=vr.Object,SV=Tq?function(e){return typeof e=="symbol"}:function(e){var t=mT("Symbol");return ga(t)&&G4(t.prototype,Egn(e))},_gn=vr.String,uG=function(e){try{return _gn(e)}catch{return"Object"}},Tgn=vr.TypeError,Dq=function(e){if(ga(e))return e;throw Tgn(uG(e)+" is not a function")},FE=function(e,t){var n=e[t];return n==null?void 0:Dq(n)},Pgn=vr.TypeError,Dgn=vr.TypeError,Rgn=Hs("toPrimitive"),Rq=function(e){var t=function(n,r){if(!pa(n)||SV(n))return n;var i,o=FE(n,Rgn);if(o){if(i=Cs(o,n,r),!pa(i)||SV(i))return i;throw Dgn("Can't convert object to primitive value")}return function(a,s){var l,u;if(ga(l=a.toString)&&!pa(u=Cs(l,a))||ga(l=a.valueOf)&&!pa(u=Cs(l,a))||s!=="string")return u;throw Pgn("Can't convert object to primitive value")}(n,r)}(e,"string");return SV(t)?t:t+""},$gn=vr.TypeError,Wfe=Object.defineProperty,j1={f:C0?Wfe:function(e,t,n){if(yu(e),t=Rq(t),yu(n),RPe)try{return Wfe(e,t,n)}catch{}if("get"in n||"set"in n)throw $gn("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Mgn=Math.ceil,Lgn=Math.floor,vT=function(e){var t=+e;return t!=t||t===0?0:(t>0?Lgn:Mgn)(t)},Bgn=Math.max,Fgn=Math.min,cG=function(e,t){var n=vT(e);return n<0?Bgn(n+t,0):Fgn(n,t)},Ngn=Math.min,$Pe=function(e){return e>0?Ngn(vT(e),9007199254740991):0},aS=function(e){return $Pe(e.length)},Hfe=function(e){return function(t,n,r){var i,o=oS(t),a=aS(o),s=cG(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},MPe={includes:Hfe(!0),indexOf:Hfe(!1)},UB={},Vgn=MPe.indexOf,zfe=Kr([].push),LPe=function(e,t){var n,r=oS(e),i=0,o=[];for(n in r)!ss(UB,n)&&ss(r,n)&&zfe(o,n);for(;t.length>i;)ss(r,n=t[i++])&&(~Vgn(o,n)||zfe(o,n));return o},Q4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jgn=Object.keys||function(e){return LPe(e,Q4)},Wgn=C0?Object.defineProperties:function(e,t){yu(e);for(var n,r=oS(t),i=jgn(t),o=i.length,a=0;o>a;)j1.f(e,n=i[a++],r[n]);return e},Hgn=mT("document","documentElement"),Zfe=Eq("keys"),$q=function(e){return Zfe[e]||(Zfe[e]=_q(e))},BPe=$q("IE_PROTO"),AV=function(){},FPe=function(e){return"<script>"+e+"<\/script>"},Gfe=function(e){e.write(FPe("")),e.close();var t=e.parentWindow.Object;return e=null,t},v$=function(){try{IR=new ActiveXObject("htmlfile")}catch{}var e,t;v$=typeof document<"u"?document.domain&&IR?Gfe(IR):((t=Pq("iframe")).style.display="none",Hgn.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(FPe("document.F=Object")),e.close(),e.F):Gfe(IR);for(var n=Q4.length;n--;)delete v$.prototype[Q4[n]];return v$()};UB[BPe]=!0;var Mq=Object.create||function(e,t){var n;return e!==null?(AV.prototype=yu(e),n=new AV,AV.prototype=null,n[BPe]=e):n=v$(),t===void 0?n:Wgn(n,t)},dG=Hs("unscopables"),hG=Array.prototype;hG[dG]==null&&j1.f(hG,dG,{configurable:!0,value:Mq(null)});var o2=function(e){hG[dG][e]=!0},dx={},zgn=Kr(Function.toString);ga(Gv.inspectSource)||(Gv.inspectSource=function(e){return zgn(e)});var U4,a2,X4,Lq=Gv.inspectSource,Qfe=vr.WeakMap,NPe=ga(Qfe)&&/native code/.test(Lq(Qfe)),XB=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Qv=C0?function(e,t,n){return j1.f(e,t,XB(1,n))}:function(e,t,n){return e[t]=n,e},pG=vr.TypeError,Zgn=vr.WeakMap;if(NPe||Gv.state){var Ry=Gv.state||(Gv.state=new Zgn),Ggn=Kr(Ry.get),Ufe=Kr(Ry.has),Qgn=Kr(Ry.set);U4=function(e,t){if(Ufe(Ry,e))throw new pG("Object already initialized");return t.facade=e,Qgn(Ry,e,t),t},a2=function(e){return Ggn(Ry,e)||{}},X4=function(e){return Ufe(Ry,e)}}else{var tC=$q("state");UB[tC]=!0,U4=function(e,t){if(ss(e,tC))throw new pG("Object already initialized");return t.facade=e,Qv(e,tC,t),t},a2=function(e){return ss(e,tC)?e[tC]:{}},X4=function(e){return ss(e,tC)}}var Bb,Xfe,Yfe,Gp={set:U4,get:a2,has:X4,enforce:function(e){return X4(e)?a2(e):U4(e,{})},getterFor:function(e){return function(t){var n;if(!pa(t)||(n=a2(t)).type!==e)throw pG("Incompatible receiver, "+e+" required");return n}}},Kfe={}.propertyIsEnumerable,qfe=Object.getOwnPropertyDescriptor,Ugn={f:qfe&&!Kfe.call({1:2},1)?function(e){var t=qfe(this,e);return!!t&&t.enumerable}:Kfe},Jfe=Object.getOwnPropertyDescriptor,VPe={f:C0?Jfe:function(e,t){if(e=oS(e),t=Rq(t),RPe)try{return Jfe(e,t)}catch{}if(ss(e,t))return XB(!Cs(Ugn.f,e,t),e[t])}},jPe=Function.prototype,Xgn=C0&&Object.getOwnPropertyDescriptor,IV=ss(jPe,"name"),Bq={EXISTS:IV,PROPER:IV&&(function(){}).name==="something",CONFIGURABLE:IV&&(!C0||C0&&Xgn(jPe,"name").configurable)},Eg=Iq(function(e){var t=Bq.CONFIGURABLE,n=Gp.get,r=Gp.enforce,i=String(String).split("String");(e.exports=function(o,a,s,l){var u,c=!!l&&!!l.unsafe,d=!!l&&!!l.enumerable,h=!!l&&!!l.noTargetGet,f=l&&l.name!==void 0?l.name:a;ga(s)&&(String(f).slice(0,7)==="Symbol("&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ss(s,"name")||t&&s.name!==f)&&Qv(s,"name",f),(u=r(s)).source||(u.source=i.join(typeof f=="string"?f:""))),o!==vr?(c?!h&&o[a]&&(d=!0):delete o[a],d?o[a]=s:Qv(o,a,s)):d?o[a]=s:kq(a,s)})(Function.prototype,"toString",function(){return ga(this)&&n(this).source||Lq(this)})}),Ygn=Q4.concat("length","prototype"),Y4={f:Object.getOwnPropertyNames||function(e){return LPe(e,Ygn)}},Kgn={f:Object.getOwnPropertySymbols},qgn=Kr([].concat),Jgn=mT("Reflect","ownKeys")||function(e){var t=Y4.f(yu(e)),n=Kgn.f;return n?qgn(t,n(e)):t},emn=function(e,t){for(var n=Jgn(t),r=j1.f,i=VPe.f,o=0;o<n.length;o++){var a=n[o];ss(e,a)||r(e,a,i(t,a))}},tmn=/#|\.prototype\./,yT=function(e,t){var n=rmn[nmn(e)];return n==omn||n!=imn&&(ga(t)?ia(t):!!t)},nmn=yT.normalize=function(e){return String(e).replace(tmn,".").toLowerCase()},rmn=yT.data={},imn=yT.NATIVE="N",omn=yT.POLYFILL="P",fG=yT,amn=VPe.f,O0=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?vr:u?vr[s]||kq(s,{}):(vr[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=amn(n,r))&&a.value:n[r],!fG(l?r:s+(u?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;emn(o,i)}(e.sham||i&&i.sham)&&Qv(o,"sham",!0),Eg(n,r,o,e)}},smn=!ia(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ege=$q("IE_PROTO"),gG=vr.Object,lmn=gG.prototype,K4=smn?gG.getPrototypeOf:function(e){var t=gT(e);if(ss(t,ege))return t[ege];var n=t.constructor;return ga(n)&&t instanceof n?n.prototype:t instanceof gG?lmn:null},mG=Hs("iterator"),WPe=!1;[].keys&&("next"in(Yfe=[].keys())?(Xfe=K4(K4(Yfe)))!==Object.prototype&&(Bb=Xfe):WPe=!0);var umn=Bb==null||ia(function(){var e={};return Bb[mG].call(e)!==e});umn&&(Bb={}),ga(Bb[mG])||Eg(Bb,mG,function(){return this});var Fq={IteratorPrototype:Bb,BUGGY_SAFARI_ITERATORS:WPe},cmn=j1.f,tge=Hs("toStringTag"),vG=function(e,t,n){e&&!ss(e=n?e:e.prototype,tge)&&cmn(e,tge,{configurable:!0,value:t})},dmn=Fq.IteratorPrototype,hmn=function(){return this},pmn=vr.String,fmn=vr.TypeError,q4=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Kr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return yu(r),function(o){if(typeof o=="object"||ga(o))return o;throw fmn("Can't set "+pmn(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),gmn=Bq.PROPER,mmn=Bq.CONFIGURABLE,nge=Fq.IteratorPrototype,kV=Fq.BUGGY_SAFARI_ITERATORS,vI=Hs("iterator"),vmn=function(){return this},HPe=function(e,t,n,r,i,o,a){(function(v,m,w,k){var T=m+" Iterator";v.prototype=Mq(dmn,{next:XB(1,w)}),vG(v,T,!1),dx[T]=hmn})(n,t,r);var s,l,u=function(v){if(v===i&&g)return g;if(!kV&&v in h)return h[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,h=e.prototype,f=h[vI]||h["@@iterator"]||i&&h[i],g=!kV&&f||u(i),b=t=="Array"&&h.entries||f;return b&&(s=K4(b.call(new e)))!==Object.prototype&&s.next&&(K4(s)!==nge&&(q4?q4(s,nge):ga(s[vI])||Eg(s,vI,vmn)),vG(s,c,!0)),gmn&&i=="values"&&f&&f.name!=="values"&&(mmn?Qv(h,"name","values"):(d=!0,g=function(){return Cs(f,this)})),i&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||O0({target:t,proto:!0,forced:kV||d},l)),h[vI]!==g&&Eg(h,vI,g,{name:i}),dx[t]=g,l},ymn=Gp.set,bmn=Gp.getterFor("Array Iterator"),pk=HPe(Array,"Array",function(e,t){ymn(this,{type:"Array Iterator",target:oS(e),index:0,kind:t})},function(){var e=bmn(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");dx.Arguments=dx.Array,o2("keys"),o2("values"),o2("entries");var zPe={};zPe[Hs("toStringTag")]="z";var Nq=String(zPe)==="[object z]",wmn=Hs("toStringTag"),Cmn=vr.Object,Omn=fg(function(){return arguments}())=="Arguments",YB=Nq?fg:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=Cmn(e),wmn))=="string"?n:Omn?fg(t):(r=fg(t))=="Object"&&ga(t.callee)?"Arguments":r},xmn=Nq?{}.toString:function(){return"[object "+YB(this)+"]"};Nq||Eg(Object.prototype,"toString",xmn,{unsafe:!0});var Smn=vr.String,qf=function(e){if(YB(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Smn(e)},Amn=Kr("".charAt),rge=Kr("".charCodeAt),Imn=Kr("".slice),ige=function(e){return function(t,n){var r,i,o=qf(QB(t)),a=vT(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=rge(o,a))<55296||r>56319||a+1===s||(i=rge(o,a+1))<56320||i>57343?e?Amn(o,a):r:e?Imn(o,a,a+2):i-56320+(r-55296<<10)+65536}},ZPe={codeAt:ige(!1),charAt:ige(!0)},kmn=ZPe.charAt,Emn=Gp.set,_mn=Gp.getterFor("String Iterator");HPe(String,"String",function(e){Emn(this,{type:"String Iterator",string:qf(e),index:0})},function(){var e,t=_mn(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=kmn(n,r),t.index+=e.length,{value:e,done:!1})});var yG=function(e,t,n){for(var r in t)Eg(e,r,t[r],n);return e},Tmn=vr.Array,Pmn=Math.max,oge=Y4.f,age=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Dmn={f:function(e){return age&&fg(e)=="Window"?function(t){try{return oge(t)}catch{return function(n,r,i){for(var o,a,s,l,u=aS(n),c=cG(void 0,u),d=cG(u,u),h=Tmn(Pmn(d-c,0)),f=0;c<d;c++,f++)o=h,a=f,s=n[c],(l=Rq(a))in o?j1.f(o,l,XB(0,s)):o[l]=s;return h.length=f,h}(age)}}(e):oge(oS(e))}},sge=ia(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),kR=Object.isExtensible,fb=ia(function(){kR(1)})||sge?function(e){return!!pa(e)&&(!sge||fg(e)!="ArrayBuffer")&&(!kR||kR(e))}:kR,Rmn=!ia(function(){return Object.isExtensible(Object.preventExtensions({}))}),Vq=Iq(function(e){var t=j1.f,n=!1,r=_q("meta"),i=0,o=function(s){t(s,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var s=Y4.f,l=Kr([].splice),u={};u[r]=1,s(u).length&&(Y4.f=function(c){for(var d=s(c),h=0,f=d.length;h<f;h++)if(d[h]===r){l(d,h,1);break}return d},O0({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Dmn.f}))},fastKey:function(s,l){if(!pa(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!ss(s,r)){if(!fb(s))return"F";if(!l)return"E";o(s)}return s[r].objectID},getWeakData:function(s,l){if(!ss(s,r)){if(!fb(s))return!0;if(!l)return!1;o(s)}return s[r].weakData},onFreeze:function(s){return Rmn&&n&&fb(s)&&!ss(s,r)&&o(s),s}};UB[r]=!0}),lge=Kr(Kr.bind),jq=function(e,t){return Dq(e),t===void 0?e:lge?lge(e,t):function(){return e.apply(t,arguments)}},$mn=Hs("iterator"),Mmn=Array.prototype,Lmn=Hs("iterator"),uge=function(e){if(e!=null)return FE(e,Lmn)||FE(e,"@@iterator")||dx[YB(e)]},Bmn=vr.TypeError,cge=function(e,t,n){var r,i;yu(e);try{if(!(r=FE(e,"return"))){if(t==="throw")throw n;return n}r=Cs(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return yu(r),n},Fmn=vr.TypeError,y$=function(e,t){this.stopped=e,this.result=t},dge=y$.prototype,GPe=function(e,t,n){var r,i,o,a,s,l,u,c,d=n&&n.that,h=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),b=jq(t,d),v=function(w){return r&&cge(r,"normal",w),new y$(!0,w)},m=function(w){return h?(yu(w),g?b(w[0],w[1],v):b(w[0],w[1])):g?b(w,v):b(w)};if(f)r=e;else{if(!(i=uge(e)))throw Fmn(uG(e)+" is not iterable");if((c=i)!==void 0&&(dx.Array===c||Mmn[$mn]===c)){for(o=0,a=aS(e);a>o;o++)if((s=m(e[o]))&&G4(dge,s))return s;return new y$(!1)}r=function(w,k){var T=arguments.length<2?uge(w):k;if(Dq(T))return yu(Cs(T,w));throw Bmn(uG(w)+" is not iterable")}(e,i)}for(l=r.next;!(u=Cs(l,r)).done;){try{s=m(u.value)}catch(w){cge(r,"throw",w)}if(typeof s=="object"&&s&&G4(dge,s))return s}return new y$(!1)},Nmn=vr.TypeError,QPe=function(e,t){if(G4(t,e))return e;throw Nmn("Incorrect invocation")},UPe=Hs("iterator"),XPe=!1;try{var Vmn=0,hge={next:function(){return{done:!!Vmn++}},return:function(){XPe=!0}};hge[UPe]=function(){return this},Array.from(hge,function(){throw 2})}catch{}var bG=Array.isArray||function(e){return fg(e)=="Array"},YPe=function(){},jmn=[],KPe=mT("Reflect","construct"),Wq=/^\s*(?:class|function)\b/,Wmn=Kr(Wq.exec),Hmn=!Wq.exec(YPe),yI=function(e){if(!ga(e))return!1;try{return KPe(YPe,jmn,e),!0}catch{return!1}},zmn=!KPe||ia(function(){var e;return yI(yI.call)||!yI(Object)||!yI(function(){e=!0})||e})?function(e){if(!ga(e))return!1;switch(YB(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Hmn||!!Wmn(Wq,Lq(e))}:yI,Zmn=Hs("species"),pge=vr.Array,qPe=function(e,t){return new(function(n){var r;return bG(n)&&(r=n.constructor,(zmn(r)&&(r===pge||bG(r.prototype))||pa(r)&&(r=r[Zmn])===null)&&(r=void 0)),r===void 0?pge:r}(e))(t===0?0:t)},fge=Kr([].push),Nm=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,u,c,d){for(var h,f,g=gT(l),b=DPe(g),v=jq(u,c),m=aS(b),w=0,k=d||qPe,T=t?k(l,m):n||a?k(l,0):void 0;m>w;w++)if((s||w in b)&&(f=v(h=b[w],w,g),e))if(t)T[w]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:fge(T,h)}else switch(e){case 4:return!1;case 7:fge(T,h)}return o?-1:r||i?i:T}},Hq={forEach:Nm(0),map:Nm(1),filter:Nm(2),some:Nm(3),every:Nm(4),find:Nm(5),findIndex:Nm(6),filterReject:Nm(7)},ER=Vq.getWeakData,Gmn=Gp.set,Qmn=Gp.getterFor,Umn=Hq.find,Xmn=Hq.findIndex,Ymn=Kr([].splice),Kmn=0,_R=function(e){return e.frozen||(e.frozen=new JPe)},JPe=function(){this.entries=[]},EV=function(e,t){return Umn(e.entries,function(n){return n[0]===t})};JPe.prototype={get:function(e){var t=EV(this,e);if(t)return t[1]},has:function(e){return!!EV(this,e)},set:function(e,t){var n=EV(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Xmn(this.entries,function(n){return n[0]===e});return~t&&Ymn(this.entries,t,1),!!~t}};var bI,eDe={getConstructor:function(e,t,n,r){var i=e(function(l,u){QPe(l,o),Gmn(l,{type:t,id:Kmn++,frozen:void 0}),u!=null&&GPe(u,l[r],{that:l,AS_ENTRIES:n})}),o=i.prototype,a=Qmn(t),s=function(l,u,c){var d=a(l),h=ER(yu(u),!0);return h===!0?_R(d).set(u,c):h[d.id]=c,l};return yG(o,{delete:function(l){var u=a(this);if(!pa(l))return!1;var c=ER(l);return c===!0?_R(u).delete(l):c&&ss(c,u.id)&&delete c[u.id]},has:function(l){var u=a(this);if(!pa(l))return!1;var c=ER(l);return c===!0?_R(u).has(l):c&&ss(c,u.id)}}),yG(o,n?{get:function(l){var u=a(this);if(pa(l)){var c=ER(l);return c===!0?_R(u).get(l):c?c[u.id]:void 0}},set:function(l,u){return s(this,l,u)}}:{add:function(l){return s(this,l,!0)}}),i}},TR=Gp.enforce,qmn=!vr.ActiveXObject&&"ActiveXObject"in vr,tDe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Jmn=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=vr[e],s=a&&a.prototype,l=a,u={},c=function(v){var m=Kr(s[v]);Eg(s,v,v=="add"?function(w){return m(this,w===0?0:w),this}:v=="delete"?function(w){return!(i&&!pa(w))&&m(this,w===0?0:w)}:v=="get"?function(w){return i&&!pa(w)?void 0:m(this,w===0?0:w)}:v=="has"?function(w){return!(i&&!pa(w))&&m(this,w===0?0:w)}:function(w,k){return m(this,w===0?0:w,k),this})};if(fG(e,!ga(a)||!(i||s.forEach&&!ia(function(){new a().entries().next()}))))l=n.getConstructor(t,e,r,o),Vq.enable();else if(fG(e,!0)){var d=new l,h=d[o](i?{}:-0,1)!=d,f=ia(function(){d.has(1)}),g=function(v,m){if(!XPe)return!1;var w=!1;try{var k={};k[UPe]=function(){return{next:function(){return{done:w=!0}}}},function(T){new a(T)}(k)}catch{}return w}(),b=!i&&ia(function(){for(var v=new a,m=5;m--;)v[o](m,m);return!v.has(-0)});g||((l=t(function(v,m){QPe(v,s);var w=function(k,T,S){var I,O;return q4&&ga(I=T.constructor)&&I!==S&&pa(O=I.prototype)&&O!==S.prototype&&q4(k,O),k}(new a,v,l);return m!=null&&GPe(m,w[o],{that:w,AS_ENTRIES:r}),w})).prototype=s,s.constructor=l),(f||b)&&(c("delete"),c("has"),r&&c("get")),(b||h)&&c(o),i&&s.clear&&delete s.clear}return u[e]=l,O0({global:!0,forced:l!=a},u),vG(l,e),i||n.setStrong(l,e,r),l}("WeakMap",tDe,eDe);if(NPe&&qmn){bI=eDe.getConstructor(tDe,"WeakMap",!0),Vq.enable();var wI=Jmn.prototype,gge=Kr(wI.delete),PR=Kr(wI.has),mge=Kr(wI.get),vge=Kr(wI.set);yG(wI,{delete:function(e){if(pa(e)&&!fb(e)){var t=TR(this);return t.frozen||(t.frozen=new bI),gge(this,e)||t.frozen.delete(e)}return gge(this,e)},has:function(e){if(pa(e)&&!fb(e)){var t=TR(this);return t.frozen||(t.frozen=new bI),PR(this,e)||t.frozen.has(e)}return PR(this,e)},get:function(e){if(pa(e)&&!fb(e)){var t=TR(this);return t.frozen||(t.frozen=new bI),PR(this,e)?mge(this,e):t.frozen.get(e)}return mge(this,e)},set:function(e,t){if(pa(e)&&!fb(e)){var n=TR(this);n.frozen||(n.frozen=new bI),PR(this,e)?vge(this,e,t):n.frozen.set(e,t)}else vge(this,e,t);return this}})}var nDe={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},_V=Pq("span").classList,yge=_V&&_V.constructor&&_V.constructor.prototype,evn=yge===Object.prototype?void 0:yge,TV=Hs("iterator"),bge=Hs("toStringTag"),PV=pk.values,rDe=function(e,t){if(e){if(e[TV]!==PV)try{Qv(e,TV,PV)}catch{e[TV]=PV}if(e[bge]||Qv(e,bge,t),nDe[t]){for(var n in pk)if(e[n]!==pk[n])try{Qv(e,n,pk[n])}catch{e[n]=pk[n]}}}};for(var DV in nDe)rDe(vr[DV]&&vr[DV].prototype,DV);rDe(evn,"DOMTokenList");var wG=new WeakMap,tvn={type:"list-item",renderElem:function(e,t,n){wG.set(e,n);var r=e,i=r.level,o=i===void 0?0:i,a=r.ordered,s={margin:"5px 0 5px "+20*o+"px"},l="";if(a!==void 0&&a){var u=function(d,h){var f=h,g=f.type,b=f.level,v=b===void 0?0:b,m=f.ordered,w=m!==void 0&&m;if(!w)return-1;var k=1,T=h,S=tt.findPath(d,T);if(S[0]===0)return 1;for(;S[0]>0;){var I=Ot.previous(S),O=_e.node(d,I);if(O==null)break;var y=O[0],_=y.level,A=_===void 0?0:_,R=y.type,D=y.ordered;if(R!==g||A<v)break;if(A===v){if(D!==w)break;k++}T=y,S=I}return k}(n,e);l=u+"."}else l=function(d){d===void 0&&(d=0);var h="";switch(d){case 0:h="•";break;case 1:h="◦";break;default:h="▪"}return h}(o);var c=function(d){var h,f=d.children||[],g=f.length;if(g===0)return"";for(var b=0;b<g&&!h;b++){var v=f[b];In.isText(v)&&(h=v)}return h==null?"":h.color||""}(e);return mr("div",{style:s},mr("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},l),mr("span",null,t))}},CG=function(e,t){return CG=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},CG(e,t);/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */};function iDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}CG(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function wge(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s2(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Cge(e){return _e.nodes(e,{at:e.selection||void 0,match:function(t){return tt.findPath(e,t).length===1}})}var nvn=MPe.includes;O0({target:"Array",proto:!0},{includes:function(e){return nvn(this,e,arguments.length>1?arguments[1]:void 0)}}),o2("includes");var Oge,RV,rvn=function(){var e=yu(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},zq=vr.RegExp,OG=ia(function(){var e=zq("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),ivn=OG||ia(function(){return!zq("a","y").sticky}),ovn={BROKEN_CARET:OG||ia(function(){var e=zq("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:ivn,UNSUPPORTED_Y:OG},avn=vr.RegExp,svn=ia(function(){var e=avn(".","s");return!(e.dotAll&&e.exec(`
|
|
`)&&e.flags==="s")}),lvn=vr.RegExp,uvn=ia(function(){var e=lvn("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),cvn=Gp.get,dvn=Eq("native-string-replace",String.prototype.replace),J4=RegExp.prototype.exec,xG=J4,hvn=Kr("".charAt),pvn=Kr("".indexOf),fvn=Kr("".replace),$V=Kr("".slice),MV=(RV=/b*/g,Cs(J4,Oge=/a/,"a"),Cs(J4,RV,"a"),Oge.lastIndex!==0||RV.lastIndex!==0),xge=ovn.BROKEN_CARET,LV=/()??/.exec("")[1]!==void 0;(MV||LV||xge||svn||uvn)&&(xG=function(e){var t,n,r,i,o,a,s,l=this,u=cvn(l),c=qf(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Cs(xG,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=xge&&l.sticky,g=Cs(rvn,l),b=l.source,v=0,m=c;if(f&&(g=fvn(g,"y",""),pvn(g,"g")===-1&&(g+="g"),m=$V(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&hvn(c,l.lastIndex-1)!==`
|
|
`)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),LV&&(n=new RegExp("^"+b+"$(?!\\s)",g)),MV&&(r=l.lastIndex),i=Cs(J4,f?n:l,m),f?i?(i.input=$V(i.input,v),i[0]=$V(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:MV&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),LV&&i&&i.length>1&&Cs(dvn,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=Mq(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var eM=xG;O0({target:"RegExp",proto:!0,forced:/./.exec!==eM},{exec:eM});var oDe=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return tt.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!tt.getSelectedElems(t).some(function(n){if(_e.isVoid(t,n)&&_e.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},e.prototype.exec=function(t,n){this.isActive(t)?Rt.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):Rt.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),gvn='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',mvn='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',vvn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=yn("listModule.unOrderedList"),n.iconSvg=gvn,n}return iDe(t,e),t}(oDe),yvn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=yn("listModule.orderedList"),n.iconSvg=mvn,n}return iDe(t,e),t}(oDe),bvn={key:"bulletedList",factory:function(){return new vvn}},wvn={key:"numberedList",factory:function(){return new yvn}},Sge=[],Cvn={type:"list-item",elemToHtml:function(e,t){var n="",r="",i=e.ordered,o=i!==void 0&&i?"ol":"ul",a=function(u){var c=wG.get(u);if(c==null)return 0;var d=u,h=d.type,f=d.ordered,g=f!==void 0&&f,b=d.level,v=b===void 0?0:b,m=tt.findPath(c,u);if(m[0]===0)return v+1;var w=Ot.previous(m),k=_e.node(c,w);if(!k)return 0;var T=s2(k,1)[0];if(tt.getNodeType(T)!==h)return v+1;var S=T,I=S.ordered,O=I!==void 0&&I,y=S.level,_=y===void 0?0:y;return _<v?v-_:_>v?0:_===v?O===g?0:1:0}(e);if(a>0)for(var s=0;s<a;s++)n+="<"+o+">",Sge.push(o);var l=function(u){var c=wG.get(u);if(c==null)return 0;var d=u,h=d.type,f=d.ordered,g=f!==void 0&&f,b=d.level,v=b===void 0?0:b,m=tt.findPath(c,u);if(m[0]===c.children.length-1)return v+1;var w=Ot.next(m),k=_e.node(c,w);if(!k)return 0;var T=s2(k,1)[0];if(tt.getNodeType(T)!==h)return v+1;var S=T,I=S.ordered,O=I!==void 0&&I,y=S.level,_=y===void 0?0:y;return _<v?v-_:_>v?0:_===v?O===g?0:1:0}(e);if(l>0)for(s=0;s<l;s++)r+="</"+Sge.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},Ovn=Hs("species"),xvn=Hq.filter,Svn=aG>=51||!ia(function(){var e=[];return(e.constructor={})[Ovn]=function(){return{foo:1}},e.filter(Boolean).foo!==1});O0({target:"Array",proto:!0,forced:!Svn},{filter:function(e){return xvn(this,e,arguments.length>1?arguments[1]:void 0)}});var Zq=Function.prototype,Age=Zq.apply,Avn=Zq.bind,Ige=Zq.call,Ivn=typeof Reflect=="object"&&Reflect.apply||(Avn?Ige.bind(Age):function(){return Ige.apply(Age,arguments)}),kge=(Hs("species"),RegExp.prototype),kvn=ZPe.charAt,Evn=function(e,t,n){return t+(n?kvn(e,t).length:1)},_vn=Math.floor,BV=Kr("".charAt),Tvn=Kr("".replace),FV=Kr("".slice),Pvn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Dvn=/\$([$&'`]|\d{1,2})/g,Rvn=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=Dvn;return i!==void 0&&(i=gT(i),l=Pvn),Tvn(o,l,function(u,c){var d;switch(BV(c,0)){case"$":return"$";case"&":return e;case"`":return FV(t,0,n);case"'":return FV(t,a);case"<":d=i[FV(c,1,-1)];break;default:var h=+c;if(h===0)return u;if(h>s){var f=_vn(h/10);return f===0?u:f<=s?r[f-1]===void 0?BV(c,1):r[f-1]+BV(c,1):u}d=r[h-1]}return d===void 0?"":d})},$vn=vr.TypeError,Mvn=function(e,t){var n=e.exec;if(ga(n)){var r=Cs(n,e,t);return r!==null&&yu(r),r}if(fg(e)==="RegExp")return Cs(eM,e,t);throw $vn("RegExp#exec called on incompatible receiver")},SG=Hs("replace"),Lvn=Math.max,Bvn=Math.min,Fvn=Kr([].concat),NV=Kr([].push),Ege=Kr("".indexOf),_ge=Kr("".slice),Nvn="a".replace(/./,"$0")==="$0",Tge=!!/./[SG]&&/./[SG]("a","$0")==="";(function(e,t,n,r){var i=Hs(e),o=!ia(function(){var u={};return u[i]=function(){return 7},""[e](u)!=7}),a=o&&!ia(function(){var u=!1,c=/a/;return c.exec=function(){return u=!0,null},c[i](""),!u});if(!o||!a||n){var s=Kr(/./[i]),l=function(u,c,d){var h=Tge?"$":"$0";return[function(f,g){var b=QB(this),v=f==null?void 0:FE(f,SG);return v?Cs(v,f,b,g):Cs(c,qf(b),f,g)},function(f,g){var b=yu(this),v=qf(f);if(typeof g=="string"&&Ege(g,h)===-1&&Ege(g,"$<")===-1){var m=d(c,b,v,g);if(m.done)return m.value}var w=ga(g);w||(g=qf(g));var k=b.global;if(k){var T=b.unicode;b.lastIndex=0}for(var S=[];;){var I=Mvn(b,v);if(I===null||(NV(S,I),!k))break;qf(I[0])===""&&(b.lastIndex=Evn(v,$Pe(b.lastIndex),T))}for(var O,y="",_=0,A=0;A<S.length;A++){for(var R=qf((I=S[A])[0]),D=Lvn(Bvn(vT(I.index),v.length),0),C=[],x=1;x<I.length;x++)NV(C,(O=I[x])===void 0?O:String(O));var P=I.groups;if(w){var $=Fvn([R],C,D,v);P!==void 0&&NV($,P);var L=qf(Ivn(g,void 0,$))}else L=Rvn(R,v,D,C,P,g);D>=_&&(y+=_ge(v,_,D)+L,_=D+R.length)}return y+_ge(v,_)}]}(0,""[e],function(u,c,d,h,f){var g=Kr(u),b=c.exec;return b===eM||b===kge.exec?o&&!f?{done:!0,value:s(c,d,h)}:{done:!0,value:g(d,c,h)}:{done:!1}});Eg(String.prototype,e,l[0]),Eg(kge,i,l[1])}})("replace",0,!!ia(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Nvn||Tge);var Vvn=vr.TypeError,aDe=function(e,t,n,r,i,o,a,s){for(var l,u,c=i,d=0,h=!!a&&jq(a,s);d<r;){if(d in n){if(l=h?h(n[d],d,t):n[d],o>0&&bG(l))u=aS(l),c=aDe(e,t,l,u,c,o-1)-1;else{if(c>=9007199254740991)throw Vvn("Exceed the acceptable array length");e[c]=l}c++}d++}return c},jvn=aDe;function VV(e){return e.length?e[0].tagName.toLowerCase():""}O0({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=gT(this),n=aS(t),r=qPe(t,0);return r.length=jvn(r,t,t,n,0,e===void 0?1:vT(e)),r}}),o2("flat"),O0({global:!0},{globalThis:vr}),hd&&(ut.fn.append=hd),dd&&(ut.fn.attr=dd),qO&&(ut.fn.parent=qO);var Wvn={renderElems:[tvn],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,i=e;return i.deleteBackward=function(o){var a=i.selection;if(a!=null)if(Vt.isExpanded(a))t(o);else{var s=tt.getSelectedNodeByType(i,"list-item");if(s!=null)if(a.focus.offset!==0)t(o);else{var l=s.level,u=l===void 0?0:l;u>0?Rt.setNodes(i,{level:u-1}):Rt.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0})}else t(o)}else t(o)},i.handleTab=function(){var o,a,s,l,u=i.selection;if(u!=null){if(Vt.isCollapsed(u)){var c=tt.getSelectedNodeByType(i,"list-item");if(c==null)return void n();if(u.focus.offset===0){var d=c.level,h=d===void 0?0:d;return void Rt.setNodes(i,{level:h+1})}}if(Vt.isExpanded(u)){var f=0,g=!1;try{for(var b=wge(Cge(i)),v=b.next();!v.done;v=b.next()){var m=s2(v.value,1)[0];tt.getNodeType(m)==="list-item"?f++:g=!0}}catch(O){o={error:O}}finally{try{v&&!v.done&&(a=b.return)&&a.call(b)}finally{if(o)throw o.error}}if(g||f<=1)return void n();try{for(var w=wge(Cge(i)),k=w.next();!k.done;k=w.next()){var T=s2(k.value,2),S=(m=T[0],T[1]),I=m.level;h=I===void 0?0:I,Rt.setNodes(i,{level:h+1},{at:S})}}catch(O){s={error:O}}finally{try{k&&!k.done&&(l=w.return)&&l.call(w)}finally{if(s)throw s.error}}}else n()}else n()},i.normalizeNode=function(o){var a=s2(o,2),s=a[0],l=a[1],u=tt.getNodeType(s);return u!=="bulleted-list"&&u!=="numbered-list"||Rt.unwrapNodes(i,{at:l}),r([s,l])},i},menus:[bvn,wvn],elemsToHtml:[Cvn],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ut(e);(t=t.filter(function(a){return!!In.isText(a)||!!n.isInline(a)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=function(a){return VV(a.parent())==="ol"}(r),o=function(a){for(var s=0,l=a.parent(),u=VV(l);u==="ul"||u==="ol";)u=VV(l=l.parent()),s++;return s-1}(r);return{type:"list-item",ordered:i,level:o,children:t}}}]},sDe=T1(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",s="[object Date]",l="[object Error]",u="[object Function]",c="[object Map]",d="[object Number]",h="[object Object]",f="[object Promise]",g="[object RegExp]",b="[object Set]",v="[object String]",m="[object Symbol]",w="[object WeakMap]",k="[object ArrayBuffer]",T="[object DataView]",S=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,O={};O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O[i]=O[o]=O[k]=O[a]=O[T]=O[s]=O[l]=O[u]=O[c]=O[d]=O[h]=O[g]=O[b]=O[v]=O[w]=!1;var y=typeof qi=="object"&&qi&&qi.Object===Object&&qi,_=typeof self=="object"&&self&&self.Object===Object&&self,A=y||_||Function("return this")(),R=t&&!t.nodeType&&t,D=R&&e&&!e.nodeType&&e,C=D&&D.exports===R,x=C&&y.process,P=function(){try{return x&&x.binding&&x.binding("util")}catch{}}(),$=P&&P.isTypedArray;function L(qe,kt){for(var Ut=-1,nn=qe==null?0:qe.length;++Ut<nn;)if(kt(qe[Ut],Ut,qe))return!0;return!1}function V(qe){var kt=-1,Ut=Array(qe.size);return qe.forEach(function(nn,Cn){Ut[++kt]=[Cn,nn]}),Ut}function H(qe){var kt=-1,Ut=Array(qe.size);return qe.forEach(function(nn){Ut[++kt]=nn}),Ut}var Q=Array.prototype,U=Function.prototype,K=Object.prototype,J=A["__core-js_shared__"],ue=U.toString,ee=K.hasOwnProperty,N=function(){var qe=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return qe?"Symbol(src)_1."+qe:""}(),q=K.toString,G=RegExp("^"+ue.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=C?A.Buffer:void 0,le=A.Symbol,oe=A.Uint8Array,ve=K.propertyIsEnumerable,de=Q.splice,ae=le?le.toStringTag:void 0,be=Object.getOwnPropertySymbols,ie=ne?ne.isBuffer:void 0,ce=function(qe,kt){return function(Ut){return qe(kt(Ut))}}(Object.keys,Object),pe=Xe(A,"DataView"),X=Xe(A,"Map"),Z=Xe(A,"Promise"),Y=Xe(A,"Set"),se=Xe(A,"WeakMap"),fe=Xe(Object,"create"),me=ln(pe),Ae=ln(X),Be=ln(Z),Ye=ln(Y),Qe=ln(se),nt=le?le.prototype:void 0,st=nt?nt.valueOf:void 0;function Le(qe){var kt=-1,Ut=qe==null?0:qe.length;for(this.clear();++kt<Ut;){var nn=qe[kt];this.set(nn[0],nn[1])}}function Me(qe){var kt=-1,Ut=qe==null?0:qe.length;for(this.clear();++kt<Ut;){var nn=qe[kt];this.set(nn[0],nn[1])}}function je(qe){var kt=-1,Ut=qe==null?0:qe.length;for(this.clear();++kt<Ut;){var nn=qe[kt];this.set(nn[0],nn[1])}}function Ue(qe){var kt=-1,Ut=qe==null?0:qe.length;for(this.__data__=new je;++kt<Ut;)this.add(qe[kt])}function Te(qe){var kt=this.__data__=new Me(qe);this.size=kt.size}function bt(qe,kt){var Ut=pr(qe),nn=!Ut&&hr(qe),Cn=!Ut&&!nn&&Wr(qe),Pn=!Ut&&!nn&&!Cn&&Lt(qe),lt=Ut||nn||Cn||Pn,It=lt?function(Vn,Ur){for(var yr=-1,Fn=Array(Vn);++yr<Vn;)Fn[yr]=Ur(yr);return Fn}(qe.length,String):[],Xt=It.length;for(var on in qe)!ee.call(qe,on)||lt&&(on=="length"||Cn&&(on=="offset"||on=="parent")||Pn&&(on=="buffer"||on=="byteLength"||on=="byteOffset")||Qt(on,Xt))||It.push(on);return It}function At(qe,kt){for(var Ut=qe.length;Ut--;)if(kn(qe[Ut][0],kt))return Ut;return-1}function ht(qe){return qe==null?qe===void 0?"[object Undefined]":"[object Null]":ae&&ae in Object(qe)?function(kt){var Ut=ee.call(kt,ae),nn=kt[ae];try{kt[ae]=void 0;var Cn=!0}catch{}var Pn=q.call(kt);return Cn&&(Ut?kt[ae]=nn:delete kt[ae]),Pn}(qe):function(kt){return q.call(kt)}(qe)}function Pe(qe){return $t(qe)&&ht(qe)==i}function Ze(qe,kt,Ut,nn,Cn){return qe===kt||(qe==null||kt==null||!$t(qe)&&!$t(kt)?qe!=qe&&kt!=kt:function(Pn,lt,It,Xt,on,Vn){var Ur=pr(Pn),yr=pr(lt),Fn=Ur?o:_t(Pn),dn=yr?o:_t(lt),ri=(Fn=Fn==i?h:Fn)==h,ji=(dn=dn==i?h:dn)==h,ci=Fn==dn;if(ci&&Wr(Pn)){if(!Wr(lt))return!1;Ur=!0,ri=!1}if(ci&&!ri)return Vn||(Vn=new Te),Ur||Lt(Pn)?He(Pn,lt,It,Xt,on,Vn):function(yt,Zt,An,Sr,ii,ki,ks){switch(An){case T:if(yt.byteLength!=Zt.byteLength||yt.byteOffset!=Zt.byteOffset)return!1;yt=yt.buffer,Zt=Zt.buffer;case k:return!(yt.byteLength!=Zt.byteLength||!ki(new oe(yt),new oe(Zt)));case a:case s:case d:return kn(+yt,+Zt);case l:return yt.name==Zt.name&&yt.message==Zt.message;case g:case v:return yt==Zt+"";case c:var Xn=V;case b:var Sh=1&Sr;if(Xn||(Xn=H),yt.size!=Zt.size&&!Sh)return!1;var Ah=ks.get(yt);if(Ah)return Ah==Zt;Sr|=2,ks.set(yt,Zt);var ml=He(Xn(yt),Xn(Zt),Sr,ii,ki,ks);return ks.delete(yt),ml;case m:if(st)return st.call(yt)==st.call(Zt)}return!1}(Pn,lt,Fn,It,Xt,on,Vn);if(!(1&It)){var Ie=ri&&ee.call(Pn,"__wrapped__"),Fe=ji&&ee.call(lt,"__wrapped__");if(Ie||Fe){var Dt=Ie?Pn.value():Pn,zt=Fe?lt.value():lt;return Vn||(Vn=new Te),on(Dt,zt,It,Xt,Vn)}}return ci?(Vn||(Vn=new Te),function(yt,Zt,An,Sr,ii,ki){var ks=1&An,Xn=wt(yt),Sh=Xn.length,Ah=wt(Zt).length;if(Sh!=Ah&&!ks)return!1;for(var ml=Sh;ml--;){var Ra=Xn[ml];if(!(ks?Ra in Zt:ee.call(Zt,Ra)))return!1}var Ng=ki.get(yt);if(Ng&&ki.get(Zt))return Ng==Zt;var xd=!0;ki.set(yt,Zt),ki.set(Zt,yt);for(var wu=ks;++ml<Sh;){var vl=yt[Ra=Xn[ml]],Ih=Zt[Ra];if(Sr)var uf=ks?Sr(Ih,vl,Ra,Zt,yt,ki):Sr(vl,Ih,Ra,yt,Zt,ki);if(!(uf===void 0?vl===Ih||ii(vl,Ih,An,Sr,ki):uf)){xd=!1;break}wu||(wu=Ra=="constructor")}if(xd&&!wu){var cf=yt.constructor,kh=Zt.constructor;cf==kh||!("constructor"in yt)||!("constructor"in Zt)||typeof cf=="function"&&cf instanceof cf&&typeof kh=="function"&&kh instanceof kh||(xd=!1)}return ki.delete(yt),ki.delete(Zt),xd}(Pn,lt,It,Xt,on,Vn)):!1}(qe,kt,Ut,nn,Ze,Cn))}function dt(qe){return!(!et(qe)||function(kt){return!!N&&N in kt}(qe))&&(ze(qe)?G:S).test(ln(qe))}function Mt(qe){if(Ut=(kt=qe)&&kt.constructor,nn=typeof Ut=="function"&&Ut.prototype||K,kt!==nn)return ce(qe);var kt,Ut,nn,Cn=[];for(var Pn in Object(qe))ee.call(qe,Pn)&&Pn!="constructor"&&Cn.push(Pn);return Cn}function He(qe,kt,Ut,nn,Cn,Pn){var lt=1&Ut,It=qe.length,Xt=kt.length;if(It!=Xt&&!(lt&&Xt>It))return!1;var on=Pn.get(qe);if(on&&Pn.get(kt))return on==kt;var Vn=-1,Ur=!0,yr=2&Ut?new Ue:void 0;for(Pn.set(qe,kt),Pn.set(kt,qe);++Vn<It;){var Fn=qe[Vn],dn=kt[Vn];if(nn)var ri=lt?nn(dn,Fn,Vn,kt,qe,Pn):nn(Fn,dn,Vn,qe,kt,Pn);if(ri!==void 0){if(ri)continue;Ur=!1;break}if(yr){if(!L(kt,function(ji,ci){if(Ie=ci,!yr.has(Ie)&&(Fn===ji||Cn(Fn,ji,Ut,nn,Pn)))return yr.push(ci);var Ie})){Ur=!1;break}}else if(Fn!==dn&&!Cn(Fn,dn,Ut,nn,Pn)){Ur=!1;break}}return Pn.delete(qe),Pn.delete(kt),Ur}function wt(qe){return function(kt,Ut,nn){var Cn=Ut(kt);return pr(kt)?Cn:function(Pn,lt){for(var It=-1,Xt=lt.length,on=Pn.length;++It<Xt;)Pn[on+It]=lt[It];return Pn}(Cn,nn(kt))}(qe,Mn,ct)}function Ee(qe,kt){var Ut,nn,Cn=qe.__data__;return((nn=typeof(Ut=kt))=="string"||nn=="number"||nn=="symbol"||nn=="boolean"?Ut!=="__proto__":Ut===null)?Cn[typeof kt=="string"?"string":"hash"]:Cn.map}function Xe(qe,kt){var Ut=function(nn,Cn){return nn==null?void 0:nn[Cn]}(qe,kt);return dt(Ut)?Ut:void 0}Le.prototype.clear=function(){this.__data__=fe?fe(null):{},this.size=0},Le.prototype.delete=function(qe){var kt=this.has(qe)&&delete this.__data__[qe];return this.size-=kt?1:0,kt},Le.prototype.get=function(qe){var kt=this.__data__;if(fe){var Ut=kt[qe];return Ut===n?void 0:Ut}return ee.call(kt,qe)?kt[qe]:void 0},Le.prototype.has=function(qe){var kt=this.__data__;return fe?kt[qe]!==void 0:ee.call(kt,qe)},Le.prototype.set=function(qe,kt){var Ut=this.__data__;return this.size+=this.has(qe)?0:1,Ut[qe]=fe&&kt===void 0?n:kt,this},Me.prototype.clear=function(){this.__data__=[],this.size=0},Me.prototype.delete=function(qe){var kt=this.__data__,Ut=At(kt,qe);return!(Ut<0)&&(Ut==kt.length-1?kt.pop():de.call(kt,Ut,1),--this.size,!0)},Me.prototype.get=function(qe){var kt=this.__data__,Ut=At(kt,qe);return Ut<0?void 0:kt[Ut][1]},Me.prototype.has=function(qe){return At(this.__data__,qe)>-1},Me.prototype.set=function(qe,kt){var Ut=this.__data__,nn=At(Ut,qe);return nn<0?(++this.size,Ut.push([qe,kt])):Ut[nn][1]=kt,this},je.prototype.clear=function(){this.size=0,this.__data__={hash:new Le,map:new(X||Me),string:new Le}},je.prototype.delete=function(qe){var kt=Ee(this,qe).delete(qe);return this.size-=kt?1:0,kt},je.prototype.get=function(qe){return Ee(this,qe).get(qe)},je.prototype.has=function(qe){return Ee(this,qe).has(qe)},je.prototype.set=function(qe,kt){var Ut=Ee(this,qe),nn=Ut.size;return Ut.set(qe,kt),this.size+=Ut.size==nn?0:1,this},Ue.prototype.add=Ue.prototype.push=function(qe){return this.__data__.set(qe,n),this},Ue.prototype.has=function(qe){return this.__data__.has(qe)},Te.prototype.clear=function(){this.__data__=new Me,this.size=0},Te.prototype.delete=function(qe){var kt=this.__data__,Ut=kt.delete(qe);return this.size=kt.size,Ut},Te.prototype.get=function(qe){return this.__data__.get(qe)},Te.prototype.has=function(qe){return this.__data__.has(qe)},Te.prototype.set=function(qe,kt){var Ut=this.__data__;if(Ut instanceof Me){var nn=Ut.__data__;if(!X||nn.length<199)return nn.push([qe,kt]),this.size=++Ut.size,this;Ut=this.__data__=new je(nn)}return Ut.set(qe,kt),this.size=Ut.size,this};var ct=be?function(qe){return qe==null?[]:(qe=Object(qe),function(kt,Ut){for(var nn=-1,Cn=kt==null?0:kt.length,Pn=0,lt=[];++nn<Cn;){var It=kt[nn];Ut(It,nn,kt)&&(lt[Pn++]=It)}return lt}(be(qe),function(kt){return ve.call(qe,kt)}))}:function(){return[]},_t=ht;function Qt(qe,kt){return!!(kt=kt??r)&&(typeof qe=="number"||I.test(qe))&&qe>-1&&qe%1==0&&qe<kt}function ln(qe){if(qe!=null){try{return ue.call(qe)}catch{}try{return qe+""}catch{}}return""}function kn(qe,kt){return qe===kt||qe!=qe&&kt!=kt}(pe&&_t(new pe(new ArrayBuffer(1)))!=T||X&&_t(new X)!=c||Z&&_t(Z.resolve())!=f||Y&&_t(new Y)!=b||se&&_t(new se)!=w)&&(_t=function(qe){var kt=ht(qe),Ut=kt==h?qe.constructor:void 0,nn=Ut?ln(Ut):"";if(nn)switch(nn){case me:return T;case Ae:return c;case Be:return f;case Ye:return b;case Qe:return w}return kt});var hr=Pe(function(){return arguments}())?Pe:function(qe){return $t(qe)&&ee.call(qe,"callee")&&!ve.call(qe,"callee")},pr=Array.isArray,Wr=ie||function(){return!1};function ze(qe){if(!et(qe))return!1;var kt=ht(qe);return kt==u||kt=="[object GeneratorFunction]"||kt=="[object AsyncFunction]"||kt=="[object Proxy]"}function Ke(qe){return typeof qe=="number"&&qe>-1&&qe%1==0&&qe<=r}function et(qe){var kt=typeof qe;return qe!=null&&(kt=="object"||kt=="function")}function $t(qe){return qe!=null&&typeof qe=="object"}var Lt=$?function(qe){return function(kt){return qe(kt)}}($):function(qe){return $t(qe)&&Ke(qe.length)&&!!O[ht(qe)]};function Mn(qe){return(kt=qe)!=null&&Ke(kt.length)&&!ze(kt)?bt(qe):Mt(qe);var kt}e.exports=function(qe,kt){return Ze(qe,kt)}});vu("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),vu("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var Pge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lDe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Vm,b$,DR=function(e){return e&&e.Math==Math&&e},Qr=DR(typeof globalThis=="object"&&globalThis)||DR(typeof window=="object"&&window)||DR(typeof self=="object"&&self)||DR(typeof Pge=="object"&&Pge)||function(){return this}()||Function("return this")(),Ya=function(e){try{return!!e()}catch{return!0}},x0=!Ya(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),CI=Function.prototype.call,is=CI.bind?CI.bind(CI):function(){return CI.apply(CI,arguments)},Dge={}.propertyIsEnumerable,Rge=Object.getOwnPropertyDescriptor,Hvn={f:Rge&&!Dge.call({1:2},1)?function(e){var t=Rge(this,e);return!!t&&t.enumerable}:Dge},Gq=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uDe=Function.prototype,AG=uDe.bind,IG=uDe.call,zvn=AG&&AG.bind(IG),ti=AG?function(e){return e&&zvn(IG,e)}:function(e){return e&&function(){return IG.apply(e,arguments)}},Zvn=ti({}.toString),Gvn=ti("".slice),Uv=function(e){return Gvn(Zvn(e),8,-1)},jV=Qr.Object,Qvn=ti("".split),cDe=Ya(function(){return!jV("z").propertyIsEnumerable(0)})?function(e){return Uv(e)=="String"?Qvn(e,""):jV(e)}:jV,Uvn=Qr.TypeError,S0=function(e){if(e==null)throw Uvn("Can't call method on "+e);return e},bT=function(e){return cDe(S0(e))},hl=function(e){return typeof e=="function"},Yd=function(e){return typeof e=="object"?e!==null:hl(e)},Xvn=function(e){return hl(e)?e:void 0},wT=function(e,t){return arguments.length<2?Xvn(Qr[e]):Qr[e]&&Qr[e][t]},dDe=ti({}.isPrototypeOf),WV=wT("navigator","userAgent")||"",$ge=Qr.process,Mge=Qr.Deno,Lge=$ge&&$ge.versions||Mge&&Mge.version,Bge=Lge&&Lge.v8;Bge&&(b$=(Vm=Bge.split("."))[0]>0&&Vm[0]<4?1:+(Vm[0]+Vm[1])),!b$&&WV&&(!(Vm=WV.match(/Edge\/(\d+)/))||Vm[1]>=74)&&(Vm=WV.match(/Chrome\/(\d+)/))&&(b$=+Vm[1]);var kG=b$,EG=!!Object.getOwnPropertySymbols&&!Ya(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&kG&&kG<41}),Qq=EG&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Yvn=Qr.Object,HV=Qq?function(e){return typeof e=="symbol"}:function(e){var t=wT("Symbol");return hl(t)&&dDe(t.prototype,Yvn(e))},Kvn=Qr.String,hDe=function(e){try{return Kvn(e)}catch{return"Object"}},qvn=Qr.TypeError,pDe=function(e){if(hl(e))return e;throw qvn(hDe(e)+" is not a function")},Uq=function(e,t){var n=e[t];return n==null?void 0:pDe(n)},Jvn=Qr.TypeError,e0n=Object.defineProperty,Xq=function(e,t){try{e0n(Qr,e,{value:t,configurable:!0,writable:!0})}catch{Qr[e]=t}return t},Xv=Qr["__core-js_shared__"]||Xq("__core-js_shared__",{}),Yq=lDe(function(e){(e.exports=function(t,n){return Xv[t]||(Xv[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),t0n=Qr.Object,Kq=function(e){return t0n(S0(e))},n0n=ti({}.hasOwnProperty),td=Object.hasOwn||function(e,t){return n0n(Kq(e),t)},r0n=0,i0n=Math.random(),o0n=ti(1 .toString),fDe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+o0n(++r0n+i0n,36)},OI=Yq("wks"),Fb=Qr.Symbol,Fge=Fb&&Fb.for,a0n=Qq?Fb:Fb&&Fb.withoutSetter||fDe,Od=function(e){if(!td(OI,e)||!EG&&typeof OI[e]!="string"){var t="Symbol."+e;EG&&td(Fb,e)?OI[e]=Fb[e]:OI[e]=Qq&&Fge?Fge(t):a0n(t)}return OI[e]},s0n=Qr.TypeError,l0n=Od("toPrimitive"),qq=function(e){var t=function(n,r){if(!Yd(n)||HV(n))return n;var i,o=Uq(n,l0n);if(o){if(i=is(o,n,r),!Yd(i)||HV(i))return i;throw s0n("Can't convert object to primitive value")}return function(a,s){var l,u;if(hl(l=a.toString)&&!Yd(u=is(l,a))||hl(l=a.valueOf)&&!Yd(u=is(l,a))||s!=="string")return u;throw Jvn("Can't convert object to primitive value")}(n,r)}(e,"string");return HV(t)?t:t+""},_G=Qr.document,u0n=Yd(_G)&&Yd(_G.createElement),Jq=function(e){return u0n?_G.createElement(e):{}},gDe=!x0&&!Ya(function(){return Object.defineProperty(Jq("div"),"a",{get:function(){return 7}}).a!=7}),Nge=Object.getOwnPropertyDescriptor,mDe={f:x0?Nge:function(e,t){if(e=bT(e),t=qq(t),gDe)try{return Nge(e,t)}catch{}if(td(e,t))return Gq(!is(Hvn.f,e,t),e[t])}},c0n=Qr.String,d0n=Qr.TypeError,nd=function(e){if(Yd(e))return e;throw d0n(c0n(e)+" is not an object")},h0n=Qr.TypeError,Vge=Object.defineProperty,CT={f:x0?Vge:function(e,t,n){if(nd(e),t=qq(t),nd(n),gDe)try{return Vge(e,t,n)}catch{}if("get"in n||"set"in n)throw h0n("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},hx=x0?function(e,t,n){return CT.f(e,t,Gq(1,n))}:function(e,t,n){return e[t]=n,e},p0n=ti(Function.toString);hl(Xv.inspectSource)||(Xv.inspectSource=function(e){return p0n(e)});var tM,l2,nM,eJ=Xv.inspectSource,jge=Qr.WeakMap,f0n=hl(jge)&&/native code/.test(eJ(jge)),Wge=Yq("keys"),vDe=function(e){return Wge[e]||(Wge[e]=fDe(e))},tJ={},TG=Qr.TypeError,g0n=Qr.WeakMap;if(f0n||Xv.state){var $y=Xv.state||(Xv.state=new g0n),m0n=ti($y.get),Hge=ti($y.has),v0n=ti($y.set);tM=function(e,t){if(Hge($y,e))throw new TG("Object already initialized");return t.facade=e,v0n($y,e,t),t},l2=function(e){return m0n($y,e)||{}},nM=function(e){return Hge($y,e)}}else{var nC=vDe("state");tJ[nC]=!0,tM=function(e,t){if(td(e,nC))throw new TG("Object already initialized");return t.facade=e,hx(e,nC,t),t},l2=function(e){return td(e,nC)?e[nC]:{}},nM=function(e){return td(e,nC)}}var PG={set:tM,get:l2,has:nM,enforce:function(e){return nM(e)?l2(e):tM(e,{})},getterFor:function(e){return function(t){var n;if(!Yd(t)||(n=l2(t)).type!==e)throw TG("Incompatible receiver, "+e+" required");return n}}},yDe=Function.prototype,y0n=x0&&Object.getOwnPropertyDescriptor,zV=td(yDe,"name"),nJ={EXISTS:zV,PROPER:zV&&(function(){}).name==="something",CONFIGURABLE:zV&&(!x0||x0&&y0n(yDe,"name").configurable)},NE=lDe(function(e){var t=nJ.CONFIGURABLE,n=PG.get,r=PG.enforce,i=String(String).split("String");(e.exports=function(o,a,s,l){var u,c=!!l&&!!l.unsafe,d=!!l&&!!l.enumerable,h=!!l&&!!l.noTargetGet,f=l&&l.name!==void 0?l.name:a;hl(s)&&(String(f).slice(0,7)==="Symbol("&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!td(s,"name")||t&&s.name!==f)&&hx(s,"name",f),(u=r(s)).source||(u.source=i.join(typeof f=="string"?f:""))),o!==Qr?(c?!h&&o[a]&&(d=!0):delete o[a],d?o[a]=s:hx(o,a,s)):d?o[a]=s:Xq(a,s)})(Function.prototype,"toString",function(){return hl(this)&&n(this).source||eJ(this)})}),b0n=Math.ceil,w0n=Math.floor,KB=function(e){var t=+e;return t!=t||t===0?0:(t>0?w0n:b0n)(t)},C0n=Math.max,O0n=Math.min,VE=function(e,t){var n=KB(e);return n<0?C0n(n+t,0):O0n(n,t)},x0n=Math.min,rJ=function(e){return e>0?x0n(KB(e),9007199254740991):0},qB=function(e){return rJ(e.length)},S0n=function(e){return function(t,n,r){for(var i=bT(t),o=qB(i),a=VE(r,o);o>a;a++)if(a in i&&i[a]===n)return a||0;return-1}},A0n=S0n(),zge=ti([].push),bDe=function(e,t){var n,r=bT(e),i=0,o=[];for(n in r)!td(tJ,n)&&td(r,n)&&zge(o,n);for(;t.length>i;)td(r,n=t[i++])&&(~A0n(o,n)||zge(o,n));return o},rM=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],I0n=rM.concat("length","prototype"),k0n={f:Object.getOwnPropertyNames||function(e){return bDe(e,I0n)}},E0n={f:Object.getOwnPropertySymbols},_0n=ti([].concat),T0n=wT("Reflect","ownKeys")||function(e){var t=k0n.f(nd(e)),n=E0n.f;return n?_0n(t,n(e)):t},P0n=function(e,t){for(var n=T0n(t),r=CT.f,i=mDe.f,o=0;o<n.length;o++){var a=n[o];td(e,a)||r(e,a,i(t,a))}},D0n=/#|\.prototype\./,OT=function(e,t){var n=$0n[R0n(e)];return n==L0n||n!=M0n&&(hl(t)?Ya(t):!!t)},R0n=OT.normalize=function(e){return String(e).replace(D0n,".").toLowerCase()},$0n=OT.data={},M0n=OT.NATIVE="N",L0n=OT.POLYFILL="P",B0n=OT,F0n=mDe.f,A0=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?Qr:u?Qr[s]||Xq(s,{}):(Qr[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=F0n(n,r))&&a.value:n[r],!B0n(l?r:s+(u?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;P0n(o,i)}(e.sham||i&&i.sham)&&hx(o,"sham",!0),NE(n,r,o,e)}},wDe={};wDe[Od("toStringTag")]="z";var iJ=String(wDe)==="[object z]",N0n=Od("toStringTag"),V0n=Qr.Object,j0n=Uv(function(){return arguments}())=="Arguments",oJ=iJ?Uv:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=V0n(e),N0n))=="string"?n:j0n?Uv(t):(r=Uv(t))=="Object"&&hl(t.callee)?"Arguments":r},W0n=Qr.String,el=function(e){if(oJ(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return W0n(e)},H0n=/"/g,z0n=ti("".replace);A0({target:"String",proto:!0,forced:Ya(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=el(S0(this)),r="<a",(r+=' name="'+z0n(el(t),H0n,""")+'"')+">"+n+"</a>";var t,n,r}});var RR,CDe=function(){var e=nd(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},aJ=Qr.RegExp,DG=Ya(function(){var e=aJ("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Z0n=DG||Ya(function(){return!aJ("a","y").sticky}),ODe={BROKEN_CARET:DG||Ya(function(){var e=aJ("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Z0n,UNSUPPORTED_Y:DG},G0n=Object.keys||function(e){return bDe(e,rM)},Q0n=x0?Object.defineProperties:function(e,t){nd(e);for(var n,r=bT(t),i=G0n(t),o=i.length,a=0;o>a;)CT.f(e,n=i[a++],r[n]);return e},U0n=wT("document","documentElement"),xDe=vDe("IE_PROTO"),ZV=function(){},SDe=function(e){return"<script>"+e+"<\/script>"},Zge=function(e){e.write(SDe("")),e.close();var t=e.parentWindow.Object;return e=null,t},w$=function(){try{RR=new ActiveXObject("htmlfile")}catch{}var e,t;w$=typeof document<"u"?document.domain&&RR?Zge(RR):((t=Jq("iframe")).style.display="none",U0n.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(SDe("document.F=Object")),e.close(),e.F):Zge(RR);for(var n=rM.length;n--;)delete w$.prototype[rM[n]];return w$()};tJ[xDe]=!0;var Gge,GV,ADe=Object.create||function(e,t){var n;return e!==null?(ZV.prototype=nd(e),n=new ZV,ZV.prototype=null,n[xDe]=e):n=w$(),t===void 0?n:Q0n(n,t)},X0n=Qr.RegExp,Y0n=Ya(function(){var e=X0n(".","s");return!(e.dotAll&&e.exec(`
|
|
`)&&e.flags==="s")}),K0n=Qr.RegExp,q0n=Ya(function(){var e=K0n("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),J0n=PG.get,eyn=Yq("native-string-replace",String.prototype.replace),iM=RegExp.prototype.exec,RG=iM,tyn=ti("".charAt),nyn=ti("".indexOf),ryn=ti("".replace),QV=ti("".slice),UV=(GV=/b*/g,is(iM,Gge=/a/,"a"),is(iM,GV,"a"),Gge.lastIndex!==0||GV.lastIndex!==0),Qge=ODe.BROKEN_CARET,XV=/()??/.exec("")[1]!==void 0;(UV||XV||Qge||Y0n||q0n)&&(RG=function(e){var t,n,r,i,o,a,s,l=this,u=J0n(l),c=el(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=is(RG,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=Qge&&l.sticky,g=is(CDe,l),b=l.source,v=0,m=c;if(f&&(g=ryn(g,"y",""),nyn(g,"g")===-1&&(g+="g"),m=QV(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&tyn(c,l.lastIndex-1)!==`
|
|
`)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),XV&&(n=new RegExp("^"+b+"$(?!\\s)",g)),UV&&(r=l.lastIndex),i=is(iM,f?n:l,m),f?i?(i.input=QV(i.input,v),i[0]=QV(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:UV&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),XV&&i&&i.length>1&&is(eyn,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=ADe(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var jE=RG;A0({target:"RegExp",proto:!0,forced:/./.exec!==jE},{exec:jE});var oM=Array.isArray||function(e){return Uv(e)=="Array"},IDe=function(){},iyn=[],kDe=wT("Reflect","construct"),sJ=/^\s*(?:class|function)\b/,oyn=ti(sJ.exec),ayn=!sJ.exec(IDe),xI=function(e){if(!hl(e))return!1;try{return kDe(IDe,iyn,e),!0}catch{return!1}},lJ=!kDe||Ya(function(){var e;return xI(xI.call)||!xI(Object)||!xI(function(){e=!0})||e})?function(e){if(!hl(e))return!1;switch(oJ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ayn||!!oyn(sJ,eJ(e))}:xI,EDe=function(e,t,n){var r=qq(t);r in e?CT.f(e,r,Gq(0,n)):e[r]=n},syn=Od("species"),uJ=function(e){return kG>=51||!Ya(function(){var t=[];return(t.constructor={})[syn]=function(){return{foo:1}},t[e](Boolean).foo!==1})},lyn=ti([].slice),uyn=uJ("slice"),cyn=Od("species"),YV=Qr.Array,dyn=Math.max;function gh(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Uge(e){var t=e.selection;if(t==null)return!1;var n=gh(_e.nodes(e,{match:function(o){return tt.checkNodeType(o,"table-cell")}}),1)[0];if(n){var r=gh(n,2)[1],i=_e.start(e,r);if(Vr.equals(t.anchor,i))return!0}return!1}function Xge(e,t){var n,r,i=_e.nodes(e,{at:t,match:function(l){return tt.getNodeType(l)==="table"}}),o=!1;try{for(var a=function(l){var u=typeof Symbol=="function"&&Symbol.iterator,c=u&&l[u],d=0;if(c)return c.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&d>=l.length&&(l=void 0),{value:l&&l[d++],done:!l}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),s=a.next();!s.done;s=a.next())s.value,o=!0}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}A0({target:"Array",proto:!0,forced:!uyn},{slice:function(e,t){var n,r,i,o=bT(this),a=qB(o),s=VE(e,a),l=VE(t===void 0?a:t,a);if(oM(o)&&(n=o.constructor,(lJ(n)&&(n===YV||oM(n.prototype))||Yd(n)&&(n=n[cyn])===null)&&(n=void 0),n===YV||n===void 0))return lyn(o,s,l);for(r=new(n===void 0?YV:n)(dyn(l-s,0)),i=0;s<l;s++,i++)s in o&&EDe(r,i,o[s]);return r.length=i,r}});var Yge=ti(ti.bind),hyn=Od("species"),Kge=Qr.Array,pyn=function(e,t){return new(function(n){var r;return oM(n)&&(r=n.constructor,(lJ(r)&&(r===Kge||oM(r.prototype))||Yd(r)&&(r=r[hyn])===null)&&(r=void 0)),r===void 0?Kge:r}(e))(t===0?0:t)},qge=ti([].push),jm=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,u,c,d){for(var h,f,g=Kq(l),b=cDe(g),v=function(S,I){return pDe(S),I===void 0?S:Yge?Yge(S,I):function(){return S.apply(I,arguments)}}(u,c),m=qB(b),w=0,k=d||pyn,T=t?k(l,m):n||a?k(l,0):void 0;m>w;w++)if((s||w in b)&&(f=v(h=b[w],w,g),e))if(t)T[w]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:qge(T,h)}else switch(e){case 4:return!1;case 7:qge(T,h)}return o?-1:r||i?i:T}},JB={forEach:jm(0),map:jm(1),filter:jm(2),some:jm(3),every:jm(4),find:jm(5),findIndex:jm(6),filterReject:jm(7)},fyn=JB.map;A0({target:"Array",proto:!0,forced:!uJ("map")},{map:function(e){return fyn(this,e,arguments.length>1?arguments[1]:void 0)}});var gyn=iJ?{}.toString:function(){return"[object "+oJ(this)+"]"};function e9(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function _De(e){return e9(e).every(function(t){return!!t.isHeader})}iJ||NE(Object.prototype,"toString",gyn,{unsafe:!0});var myn=nJ.PROPER,$G=RegExp.prototype,TDe=$G.toString,vyn=ti(CDe),yyn=Ya(function(){return TDe.call({source:"a",flags:"b"})!="/a/b"}),byn=myn&&TDe.name!="toString";(yyn||byn)&&NE(RegExp.prototype,"toString",function(){var e=nd(this),t=el(e.source),n=e.flags;return"/"+t+"/"+el(n===void 0&&dDe($G,e)&&!("flags"in $G)?vyn(e):n)},{unsafe:!0});var MG=Od("unscopables"),LG=Array.prototype;LG[MG]==null&&CT.f(LG,MG,{configurable:!0,value:ADe(null)});var wyn=JB.find,Jge=!0;"find"in[]&&Array(1).find(function(){Jge=!1}),A0({target:"Array",proto:!0,forced:Jge},{find:function(e){return wyn(this,e,arguments.length>1?arguments[1]:void 0)}}),LG[MG].find=!0;var cJ=Function.prototype,eme=cJ.apply,Cyn=cJ.bind,tme=cJ.call,PDe=typeof Reflect=="object"&&Reflect.apply||(Cyn?tme.bind(eme):function(){return tme.apply(eme,arguments)}),Oyn=Od("species"),KV=RegExp.prototype,DDe=function(e,t,n,r){var i=Od(e),o=!Ya(function(){var u={};return u[i]=function(){return 7},""[e](u)!=7}),a=o&&!Ya(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Oyn]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return u=!0,null},c[i](""),!u});if(!o||!a||n){var s=ti(/./[i]),l=t(i,""[e],function(u,c,d,h,f){var g=ti(u),b=c.exec;return b===jE||b===KV.exec?o&&!f?{done:!0,value:s(c,d,h)}:{done:!0,value:g(d,c,h)}:{done:!1}});NE(String.prototype,e,l[0]),NE(KV,i,l[1])}r&&hx(KV[i],"sham",!0)},xyn=Od("match"),Syn=Qr.TypeError,Ayn=Od("species"),Iyn=ti("".charAt),nme=ti("".charCodeAt),kyn=ti("".slice),Eyn=function(e){return function(t,n){var r,i,o=el(S0(t)),a=KB(n),s=o.length;return a<0||a>=s?"":(r=nme(o,a))<55296||r>56319||a+1===s||(i=nme(o,a+1))<56320||i>57343?Iyn(o,a):kyn(o,a,a+2)}},_yn=Eyn(),RDe=function(e,t,n){return t+(n?_yn(e,t).length:1)},Tyn=Qr.Array,Pyn=Math.max,rme=function(e,t,n){for(var r=qB(e),i=VE(t,r),o=VE(n===void 0?r:n,r),a=Tyn(Pyn(o-i,0)),s=0;i<o;i++,s++)EDe(a,s,e[i]);return a.length=s,a},Dyn=Qr.TypeError,BG=function(e,t){var n=e.exec;if(hl(n)){var r=is(n,e,t);return r!==null&&nd(r),r}if(Uv(e)==="RegExp")return is(jE,e,t);throw Dyn("RegExp#exec called on incompatible receiver")},rC=ODe.UNSUPPORTED_Y,Ryn=Math.min,$De=[].push,$yn=ti(/./.exec),iC=ti($De),SI=ti("".slice);DDe("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,o){var a,s,l=el(S0(this)),u=o===void 0?4294967295:o>>>0;if(u===0)return[];if(i===void 0)return[l];if(!Yd(a=i)||!((s=a[xyn])!==void 0?s:Uv(a)=="RegExp"))return is(t,l,i,u);for(var c,d,h,f=[],g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),b=0,v=new RegExp(i.source,g+"g");(c=is(jE,v,l))&&!((d=v.lastIndex)>b&&(iC(f,SI(l,b,c.index)),c.length>1&&c.index<l.length&&PDe($De,f,rme(c,1)),h=c[0].length,b=d,f.length>=u));)v.lastIndex===c.index&&v.lastIndex++;return b===l.length?!h&&$yn(v,"")||iC(f,""):iC(f,SI(l,b)),f.length>u?rme(f,0,u):f}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:is(t,this,i,o)}:t,[function(i,o){var a=S0(this),s=i==null?void 0:Uq(i,e);return s?is(s,i,a,o):is(r,el(a),i,o)},function(i,o){var a=nd(this),s=el(i),l=n(r,a,s,o,r!==t);if(l.done)return l.value;var u=function(T,S){var I,O=nd(T).constructor;return O===void 0||(I=nd(O)[Ayn])==null?S:function(y){if(lJ(y))return y;throw Syn(hDe(y)+" is not a constructor")}(I)}(a,RegExp),c=a.unicode,d=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(rC?"g":"y"),h=new u(rC?"^(?:"+a.source+")":a,d),f=o===void 0?4294967295:o>>>0;if(f===0)return[];if(s.length===0)return BG(h,s)===null?[s]:[];for(var g=0,b=0,v=[];b<s.length;){h.lastIndex=rC?0:b;var m,w=BG(h,rC?SI(s,b):s);if(w===null||(m=Ryn(rJ(h.lastIndex+(rC?b:0)),s.length))===g)b=RDe(s,b,c);else{if(iC(v,SI(s,g,b)),v.length===f)return v;for(var k=1;k<=w.length-1;k++)if(iC(v,w[k]),v.length===f)return v;b=g=m}}return iC(v,SI(s,g)),v}]},!!Ya(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),rC);var FG=`
|
|
\v\f\r \u2028\u2029\uFEFF`,ime=ti("".replace),aM="["+FG+"]",Myn=RegExp("^"+aM+aM+"*"),Lyn=RegExp(aM+aM+"*$"),qV=function(e){return function(t){var n=el(S0(t));return 1&e&&(n=ime(n,Myn,"")),2&e&&(n=ime(n,Lyn,"")),n}},Byn={start:qV(1),end:qV(2),trim:qV(3)},Fyn=nJ.PROPER,Nyn=Byn.trim;function MDe(e){return e.length?e[0].tagName.toLowerCase():""}A0({target:"String",proto:!0,forced:function(e){return Ya(function(){return!!FG[e]()||"
"[e]()!=="
"||Fyn&&FG[e].name!==e})}("trim")},{trim:function(){return Nyn(this)}}),A0({global:!0},{globalThis:Qr}),hd&&(ut.fn.append=hd),Zp&&(ut.fn.on=Zp),v0&&(ut.fn.focus=v0),dd&&(ut.fn.attr=dd),zp&&(ut.fn.val=zp),m0&&(ut.fn.html=m0),YO&&(ut.fn.dataset=YO),QO&&(ut.fn.addClass=QO),UO&&(ut.fn.removeClass=UO),ex&&(ut.fn.children=ex),s4&&(ut.fn.each=s4),JO&&(ut.fn.find=JO);var WE=!1,LDe=0,BDe=0,HE=null,zE=null,u2=ut("body");function FDe(e){WE=!1,zE=null,HE=null,u2.off("mousemove",NDe),u2.off("mouseup",FDe)}u2.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),WE=!0;var n=e.clientX;LDe=n;var r=t.getBoundingClientRect().width;BDe=r,u2.on("mousemove",NDe),u2.on("mouseup",FDe)}});var NDe=u1(function(e){if(WE&&zE!=null&&HE!=null){e.preventDefault();var t=e.clientX,n=BDe+(t-LDe);(n=Math.floor(100*n)/100)<30&&(n=30),Rt.setNodes(zE,{width:n.toString()},{at:HE})}},100),Vyn={type:"table",renderElem:function(e,t,n){var r=function(s,l){if(s.isDisabled())return!1;var u=s.selection;if(u==null||Vt.isCollapsed(u))return!0;var c=u.anchor,d=u.focus,h=tt.findPath(s,l),f=_e.start(s,h),g=_e.end(s,h),b=Vr.compare(c,g)<=0&&Vr.compare(c,f)>=0,v=Vr.compare(d,g)<=0&&Vr.compare(d,f)>=0;return!!(b&&v&&Ot.equals(c.path.slice(0,3),d.path.slice(0,3)))}(n,e),i=e.width,o=i===void 0?"auto":i,a=mr("div",{className:"table-container","data-selected":tt.isNodeSelected(n,e),on:{mousedown:function(s){if(s.target.tagName==="DIV"&&s.preventDefault(),!n.isDisabled()){var l=tt.findPath(n,e),u=_e.start(n,l),c=n.selection;c!=null?c.anchor.path[0]!==l[0]&&n.select(u):n.select(u)}}}},mr("table",{width:o,contentEditable:r},mr("colgroup",null,e9(e).map(function(s){var l=s.width;return mr("col",{width:l===void 0?"auto":l})})),mr("tbody",null,t)));return a}},jyn={type:"table-row",renderElem:function(e,t,n){return mr("tr",null,t)}},Wyn={type:"table-cell",renderElem:function(e,t,n){var r=function(h,f){var g=tt.getParentNode(h,f);if(g==null)return!1;var b=tt.getParentNode(h,g);return b!=null&&e9(b).some(function(v){return v===f})}(n,e),i=e,o=i.colSpan,a=o===void 0?1:o,s=i.rowSpan,l=s===void 0?1:s,u=i.isHeader,c=u!==void 0&&u;if(!r)return mr("td",{colSpan:a,rowSpan:l},t);var d=mr(c?"th":"td",{colSpan:a,rowSpan:l,style:{borderRightWidth:"3px"},on:{mousemove:u1(function(h){var f=this.elm;if(f!=null){var g=f.getBoundingClientRect(),b=g.left,v=g.width,m=g.top,w=g.height,k=h.clientX,T=h.clientY;WE||(k>b+v-5&&k<b+v&&T>m&&T<m+w?(f.style.cursor="col-resize",zE=n,HE=tt.findPath(n,e)):WE||(f.style.cursor="auto",zE=null,HE=null))}},100)}},t);return d}},Hyn={selector:"table",preParseHtml:function(e){var t=ut(e);if(MDe(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},zyn=JB.filter;A0({target:"Array",proto:!0,forced:!uJ("filter")},{filter:function(e){return zyn(this,e,arguments.length>1?arguments[1]:void 0)}});var Zyn=Math.floor,JV=ti("".charAt),Gyn=ti("".replace),ej=ti("".slice),Qyn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Uyn=/\$([$&'`]|\d{1,2})/g,Xyn=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=Uyn;return i!==void 0&&(i=Kq(i),l=Qyn),Gyn(o,l,function(u,c){var d;switch(JV(c,0)){case"$":return"$";case"&":return e;case"`":return ej(t,0,n);case"'":return ej(t,a);case"<":d=i[ej(c,1,-1)];break;default:var h=+c;if(h===0)return u;if(h>s){var f=Zyn(h/10);return f===0?u:f<=s?r[f-1]===void 0?JV(c,1):r[f-1]+JV(c,1):u}d=r[h-1]}return d===void 0?"":d})},NG=Od("replace"),Yyn=Math.max,Kyn=Math.min,qyn=ti([].concat),tj=ti([].push),ome=ti("".indexOf),ame=ti("".slice),Jyn="a".replace(/./,"$0")==="$0",sme=!!/./[NG]&&/./[NG]("a","$0")==="";DDe("replace",function(e,t,n){var r=sme?"$":"$0";return[function(i,o){var a=S0(this),s=i==null?void 0:Uq(i,NG);return s?is(s,i,a,o):is(t,el(a),i,o)},function(i,o){var a=nd(this),s=el(i);if(typeof o=="string"&&ome(o,r)===-1&&ome(o,"$<")===-1){var l=n(t,a,s,o);if(l.done)return l.value}var u=hl(o);u||(o=el(o));var c=a.global;if(c){var d=a.unicode;a.lastIndex=0}for(var h=[];;){var f=BG(a,s);if(f===null||(tj(h,f),!c))break;el(f[0])===""&&(a.lastIndex=RDe(s,rJ(a.lastIndex),d))}for(var g,b="",v=0,m=0;m<h.length;m++){for(var w=el((f=h[m])[0]),k=Yyn(Kyn(KB(f.index),s.length),0),T=[],S=1;S<f.length;S++)tj(T,(g=f[S])===void 0?g:String(g));var I=f.groups;if(u){var O=qyn([w],T,k,s);I!==void 0&&tj(O,I);var y=el(PDe(o,void 0,O))}else y=Xyn(w,s,k,T,I,o);k>=v&&(b+=ame(s,v,k)+y,v=k+w.length)}return b+ame(s,v)}]},!!Ya(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Jyn||sme);var ebn={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ut(e);(t=t.filter(function(s){return!!In.isText(s)||!!n.isInline(s)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=parseInt(r.attr("colSpan")||"1"),o=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:MDe(r)==="th",colSpan:i,rowSpan:o,width:a,children:t}}},tbn={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(r){return tt.getNodeType(r)==="table-cell"})}}},nbn={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ut(e),i="auto";return function(o,a){for(var s="",l=(o.attr("style")||"").split(";"),u=l.length,c=0;c<u;c++){var d=l[c];if(d){var h=d.split(":");h[0].trim()==="width"&&(s=h[1].trim())}}return s}(r)==="100%"&&(i="100%"),r.attr("width")==="100%"&&(i="100%"),{type:"table",width:i,children:t.filter(function(o){return tt.getNodeType(o)==="table-row"})}}},rbn=function(){function e(){this.title=yn("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!Vt.isCollapsed(n)||!!tt.getSelectedElems(t).some(function(r){var i=tt.getNodeType(r);return i==="pre"||i==="table"||i==="list-item"||!!t.isVoid(r)})},e.prototype.getPanelContentElem=function(t){var n=this;if(this.$content)return this.$content[0];for(var r=ut('<div class="w-e-panel-content-table"></div>'),i=ut("<span>0 × 0</span>"),o=ut("<table></table>"),a=0;a<10;a++){for(var s=ut("<tr></tr>"),l=0;l<10;l++){var u=ut("<td></td>");u.attr("data-x",l.toString()),u.attr("data-y",a.toString()),s.append(u),u.on("mouseenter",function(c){var d=c.target;if(d!=null){var h=ut(d).dataset(),f=h.x,g=h.y;i[0].innerHTML=f+1+" × "+(g+1),o.children().each(function(b){ut(b).children().each(function(v){var m=ut(v),w=m.dataset(),k=w.x,T=w.y;k<=f&&T<=g?m.addClass("active"):m.removeClass("active")})})}}),u.on("click",function(c){c.preventDefault();var d=c.target;if(d!=null){var h=ut(d).dataset(),f=h.x,g=h.y;n.insertTable(t,g+1,f+1)}})}o.append(s)}return r.append(o),r.append(i),this.$content=r,r[0]},e.prototype.insertTable=function(t,n,r){var i=parseInt(n,10),o=parseInt(r,10);if(i&&o&&!(i<=0||o<=0)){tt.isSelectedEmptyParagraph(t)&&Rt.removeNodes(t,{mode:"highest"});var a=function(s,l){for(var u=[],c=0;c<s;c++){for(var d=[],h=0;h<l;h++){var f={type:"table-cell",children:[{text:""}]};c===0&&(f.isHeader=!0),d.push(f)}u.push({type:"table-row",children:d})}return{type:"table",width:"auto",children:u}}(i,o);Rt.insertNodes(t,a,{mode:"highest"})}},e}(),ibn=function(){function e(){this.title=yn("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||tt.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||Rt.removeNodes(t,{mode:"highest"})},e}(),obn=function(){function e(){this.title=yn("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!Vt.isCollapsed(n)||tt.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=gh(_e.nodes(t,{match:function(f){return tt.checkNodeType(f,"table-cell")},universal:!0}),1),i=gh(r[0],2),o=i[0],a=i[1],s=tt.getParentNode(t,o),l=(s==null?void 0:s.children.length)||0;if(l!==0){for(var u={type:"table-row",children:[]},c=0;c<l;c++)u.children.push({type:"table-cell",children:[{text:""}]});var d=Ot.parent(a),h=Ot.next(d);Rt.insertNodes(t,u,{at:h})}}},e}(),abn=function(){function e(){this.title=yn("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!Vt.isCollapsed(n)||tt.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=gh(_e.nodes(t,{match:function(l){return tt.checkNodeType(l,"table-row")},universal:!0}),1),i=gh(r[0],2),o=i[0],a=i[1],s=tt.getParentNode(t,o);((s==null?void 0:s.children.length)||0)<=1?Rt.removeNodes(t,{mode:"highest"}):Rt.removeNodes(t,{at:a})}},e}(),lme={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},nj=Jq("span").classList,ume=nj&&nj.constructor&&nj.constructor.prototype,sbn=ume===Object.prototype?void 0:ume,lbn=JB.forEach,ubn=function(e,t){var n=[].forEach;return!!n&&Ya(function(){n.call(null,function(){throw 1},1)})}(),rj=ubn?[].forEach:function(e){return lbn(this,e,arguments.length>1?arguments[1]:void 0)},VDe=function(e){if(e&&e.forEach!==rj)try{hx(e,"forEach",rj)}catch{e.forEach=rj}};for(var ij in lme)lme[ij]&&VDe(Qr[ij]&&Qr[ij].prototype);VDe(sbn);var cbn=function(){function e(){this.title=yn("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!Vt.isCollapsed(n)||tt.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=gh(_e.nodes(t,{match:function(u){return tt.checkNodeType(u,"table-cell")},universal:!0}),1),i=gh(r[0],2),o=i[0],a=i[1],s=tt.getParentNode(t,o);if(s!=null){var l=tt.getParentNode(t,s);l!=null&&(l.children||[]).forEach(function(u,c){jn.isElement(u)&&(u.children||[]).forEach(function(d){var h=tt.findPath(t,d);if(h.length===a.length&&sDe(h.slice(-1),a.slice(-1))){var f={type:"table-cell",children:[{text:""}]};c===0&&_De(l)&&(f.isHeader=!0),Rt.insertNodes(t,f,{at:h})}})})}}},e}(),dbn=function(){function e(){this.title=yn("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!Vt.isCollapsed(n)||tt.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=gh(_e.nodes(t,{match:function(c){return tt.checkNodeType(c,"table-cell")},universal:!0}),1),i=gh(r[0],2),o=i[0],a=i[1],s=tt.getParentNode(t,o),l=(s==null?void 0:s.children.length)||0;if(!s||l<=1)Rt.removeNodes(t,{mode:"highest"});else{var u=tt.getParentNode(t,s);u!=null&&(u.children||[]).forEach(function(c){jn.isElement(c)&&(c.children||[]).forEach(function(d){var h=tt.findPath(t,d);h.length===a.length&&sDe(h.slice(-1),a.slice(-1))&&Rt.removeNodes(t,{at:h})})})}}},e}(),hbn=function(){function e(){this.title=yn("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var n=tt.getSelectedNodeByType(t,"table");return n!=null&&_De(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!Vt.isCollapsed(n)||tt.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,i=tt.getSelectedNodeByType(t,"table");i!=null&&e9(i).forEach(function(o){return Rt.setNodes(t,{isHeader:r},{at:tt.findPath(t,o)})})}},e}(),pbn=function(){function e(){this.title=yn("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var n=tt.getSelectedNodeByType(t,"table");return n!=null&&n.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!Vt.isCollapsed(n)||tt.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};Rt.setNodes(t,r,{mode:"highest"})}},e}(),fbn={renderElems:[Vyn,jyn,Wyn],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,i=r===void 0?1:r,o=n.rowSpan,a=o===void 0?1:o,s=n.isHeader,l=s!==void 0&&s,u=n.width,c=l?"th":"td";return"<"+c+' colSpan="'+i+'" rowSpan="'+a+'" width="'+(u===void 0?"auto":u)+'">'+t+"</"+c+">"}}],preParseHtml:[Hyn],parseElemsHtml:[ebn,tbn,nbn],menus:[{key:"insertTable",factory:function(){return new rbn}},{key:"deleteTable",factory:function(){return new ibn}},{key:"insertTableRow",factory:function(){return new obn}},{key:"deleteTableRow",factory:function(){return new abn}},{key:"insertTableCol",factory:function(){return new cbn}},{key:"deleteTableCol",factory:function(){return new dbn}},{key:"tableHeader",factory:function(){return new hbn}},{key:"tableFullWidth",factory:function(){return new pbn}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,i=e.normalizeNode,o=e.insertData,a=e.handleTab,s=e.selectAll,l=e;return l.insertBreak=function(){tt.getSelectedNodeByType(l,"table")==null?t():l.insertText(`
|
|
`)},l.deleteBackward=function(u){if(!Uge(l)){var c=l.selection;if(c){var d=_e.before(l,c);if(d){var h=Xge(l,d),f=Xge(l,c);if(h&&!f)return}}n(u)}},l.handleTab=function(){var u;if(tt.getSelectedNodeByType(l,"table")){var c=_e.above(e);tt.checkNodeType(c[0],"table-cell")&&Rt.select(e,c[1]);var d=_e.next(e);if(d)d[0]&&d[0].text&&(d=(u=_e.above(e,{at:d[1]}))!==null&&u!==void 0?u:d),Rt.select(e,d[1]);else{var h=l.children||[],f=h.length;if(tt.checkNodeType(h[f-1],"table")){var g=tt.genEmptyParagraph();Rt.insertNodes(l,g,{at:[f]}),l.handleTab()}}}else a()},l.deleteForward=function(u){Uge(l)||r(u)},l.normalizeNode=function(u){var c=gh(u,2),d=c[0],h=c[1];if(tt.getNodeType(d)!=="table")return i([d,h]);if(tt.isLastNode(l,d)){var f=tt.genEmptyParagraph();Rt.insertNodes(l,f,{at:[h[0]+1]})}},l.insertData=function(u){if(tt.getSelectedNodeByType(l,"table")!=null){var c=u.getData("text/plain");c===`
|
|
`||/<img[^>]+>/.test(u.getData("text/html"))?o(u):_e.insertText(l,c)}else o(u)},l.selectAll=function(){var u=l.selection;if(u!=null){var c=tt.getSelectedNodeByType(l,"table-cell");if(c!=null){var d=u.anchor,h=u.focus;if(Ot.equals(d.path.slice(0,3),h.path.slice(0,3)))if(vn.string(c).length!==0){var f=tt.findPath(l,c),g={anchor:_e.start(l,f),focus:_e.end(l,f)};l.select(g)}else s();else s()}else s()}else s()},l}};vu("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),vu("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var sM=function(){return sM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},sM.apply(this,arguments)};function t9(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(u){try{l(r.next(u))}catch(c){o(c)}}function s(u){try{l(r.throw(u))}catch(c){o(c)}}function l(u){var c;u.done?i(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(a,s)}l((r=r.apply(e,[])).next())})}function n9(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(d){c=[6,d],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function Nb(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function gbn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(i){var o=typeof Symbol=="function"&&Symbol.iterator,a=o&&i[o],s=0;if(a)return a.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(o){return new Promise(function(a,s){(function(l,u,c,d){Promise.resolve(d).then(function(h){l({value:h,done:c})},u)})(a,s,(o=e[i](o)).done,o.value)})}}}var cme=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dJ(e){var t={exports:{}};return e(t,t.exports),t.exports}var Wm,C$,$R=function(e){return e&&e.Math==Math&&e},wn=$R(typeof globalThis=="object"&&globalThis)||$R(typeof window=="object"&&window)||$R(typeof self=="object"&&self)||$R(typeof cme=="object"&&cme)||function(){return this}()||Function("return this")(),lo=function(e){try{return!!e()}catch{return!0}},Qp=!lo(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),AI=Function.prototype.call,ao=AI.bind?AI.bind(AI):function(){return AI.apply(AI,arguments)},dme={}.propertyIsEnumerable,hme=Object.getOwnPropertyDescriptor,mbn={f:hme&&!dme.call({1:2},1)?function(e){var t=hme(this,e);return!!t&&t.enumerable}:dme},r9=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},jDe=Function.prototype,VG=jDe.bind,jG=jDe.call,vbn=VG&&VG.bind(jG),Er=VG?function(e){return e&&vbn(jG,e)}:function(e){return e&&function(){return jG.apply(e,arguments)}},ybn=Er({}.toString),bbn=Er("".slice),Mp=function(e){return bbn(ybn(e),8,-1)},oj=wn.Object,wbn=Er("".split),hJ=lo(function(){return!oj("z").propertyIsEnumerable(0)})?function(e){return Mp(e)=="String"?wbn(e,""):oj(e)}:oj,Cbn=wn.TypeError,xT=function(e){if(e==null)throw Cbn("Can't call method on "+e);return e},V0=function(e){return hJ(xT(e))},Ui=function(e){return typeof e=="function"},$o=function(e){return typeof e=="object"?e!==null:Ui(e)},Obn=function(e){return Ui(e)?e:void 0},b1=function(e,t){return arguments.length<2?Obn(wn[e]):wn[e]&&wn[e][t]},ZE=Er({}.isPrototypeOf),dO=b1("navigator","userAgent")||"",pme=wn.process,fme=wn.Deno,gme=pme&&pme.versions||fme&&fme.version,mme=gme&&gme.v8;mme&&(C$=(Wm=mme.split("."))[0]>0&&Wm[0]<4?1:+(Wm[0]+Wm[1])),!C$&&dO&&(!(Wm=dO.match(/Edge\/(\d+)/))||Wm[1]>=74)&&(Wm=dO.match(/Chrome\/(\d+)/))&&(C$=+Wm[1]);var GE=C$,WG=!!Object.getOwnPropertySymbols&&!lo(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&GE&&GE<41}),pJ=WG&&!Symbol.sham&&typeof Symbol.iterator=="symbol",xbn=wn.Object,aj=pJ?function(e){return typeof e=="symbol"}:function(e){var t=b1("Symbol");return Ui(t)&&ZE(t.prototype,xbn(e))},Sbn=wn.String,lM=function(e){try{return Sbn(e)}catch{return"Object"}},Abn=wn.TypeError,I0=function(e){if(Ui(e))return e;throw Abn(lM(e)+" is not a function")},QE=function(e,t){var n=e[t];return n==null?void 0:I0(n)},Ibn=wn.TypeError,kbn=Object.defineProperty,fJ=function(e,t){try{kbn(wn,e,{value:t,configurable:!0,writable:!0})}catch{wn[e]=t}return t},Yv=wn["__core-js_shared__"]||fJ("__core-js_shared__",{}),gJ=dJ(function(e){(e.exports=function(t,n){return Yv[t]||(Yv[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Ebn=wn.Object,i9=function(e){return Ebn(xT(e))},_bn=Er({}.hasOwnProperty),za=Object.hasOwn||function(e,t){return _bn(i9(e),t)},Tbn=0,Pbn=Math.random(),Dbn=Er(1 .toString),mJ=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Dbn(++Tbn+Pbn,36)},II=gJ("wks"),Vb=wn.Symbol,vme=Vb&&Vb.for,Rbn=pJ?Vb:Vb&&Vb.withoutSetter||mJ,Pa=function(e){if(!za(II,e)||!WG&&typeof II[e]!="string"){var t="Symbol."+e;WG&&za(Vb,e)?II[e]=Vb[e]:II[e]=pJ&&vme?vme(t):Rbn(t)}return II[e]},$bn=wn.TypeError,Mbn=Pa("toPrimitive"),vJ=function(e){var t=function(n,r){if(!$o(n)||aj(n))return n;var i,o=QE(n,Mbn);if(o){if(i=ao(o,n,r),!$o(i)||aj(i))return i;throw $bn("Can't convert object to primitive value")}return function(a,s){var l,u;if(Ui(l=a.toString)&&!$o(u=ao(l,a))||Ui(l=a.valueOf)&&!$o(u=ao(l,a))||s!=="string")return u;throw Ibn("Can't convert object to primitive value")}(n,r)}(e,"string");return aj(t)?t:t+""},HG=wn.document,Lbn=$o(HG)&&$o(HG.createElement),UE=function(e){return Lbn?HG.createElement(e):{}},WDe=!Qp&&!lo(function(){return Object.defineProperty(UE("div"),"a",{get:function(){return 7}}).a!=7}),yme=Object.getOwnPropertyDescriptor,yJ={f:Qp?yme:function(e,t){if(e=V0(e),t=vJ(t),WDe)try{return yme(e,t)}catch{}if(za(e,t))return r9(!ao(mbn.f,e,t),e[t])}},Bbn=wn.String,Fbn=wn.TypeError,Ss=function(e){if($o(e))return e;throw Fbn(Bbn(e)+" is not an object")},Nbn=wn.TypeError,bme=Object.defineProperty,Lg={f:Qp?bme:function(e,t,n){if(Ss(e),t=vJ(t),Ss(n),WDe)try{return bme(e,t,n)}catch{}if("get"in n||"set"in n)throw Nbn("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Kv=Qp?function(e,t,n){return Lg.f(e,t,r9(1,n))}:function(e,t,n){return e[t]=n,e},Vbn=Er(Function.toString);Ui(Yv.inspectSource)||(Yv.inspectSource=function(e){return Vbn(e)});var uM,c2,cM,o9=Yv.inspectSource,wme=wn.WeakMap,HDe=Ui(wme)&&/native code/.test(o9(wme)),Cme=gJ("keys"),bJ=function(e){return Cme[e]||(Cme[e]=mJ(e))},a9={},zG=wn.TypeError,jbn=wn.WeakMap;if(HDe||Yv.state){var My=Yv.state||(Yv.state=new jbn),Wbn=Er(My.get),Ome=Er(My.has),Hbn=Er(My.set);uM=function(e,t){if(Ome(My,e))throw new zG("Object already initialized");return t.facade=e,Hbn(My,e,t),t},c2=function(e){return Wbn(My,e)||{}},cM=function(e){return Ome(My,e)}}else{var oC=bJ("state");a9[oC]=!0,uM=function(e,t){if(za(e,oC))throw new zG("Object already initialized");return t.facade=e,Kv(e,oC,t),t},c2=function(e){return za(e,oC)?e[oC]:{}},cM=function(e){return za(e,oC)}}var cc={set:uM,get:c2,has:cM,enforce:function(e){return cM(e)?c2(e):uM(e,{})},getterFor:function(e){return function(t){var n;if(!$o(t)||(n=c2(t)).type!==e)throw zG("Incompatible receiver, "+e+" required");return n}}},zDe=Function.prototype,zbn=Qp&&Object.getOwnPropertyDescriptor,sj=za(zDe,"name"),sS={EXISTS:sj,PROPER:sj&&(function(){}).name==="something",CONFIGURABLE:sj&&(!Qp||Qp&&zbn(zDe,"name").configurable)},md=dJ(function(e){var t=sS.CONFIGURABLE,n=cc.get,r=cc.enforce,i=String(String).split("String");(e.exports=function(o,a,s,l){var u,c=!!l&&!!l.unsafe,d=!!l&&!!l.enumerable,h=!!l&&!!l.noTargetGet,f=l&&l.name!==void 0?l.name:a;Ui(s)&&(String(f).slice(0,7)==="Symbol("&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!za(s,"name")||t&&s.name!==f)&&Kv(s,"name",f),(u=r(s)).source||(u.source=i.join(typeof f=="string"?f:""))),o!==wn?(c?!h&&o[a]&&(d=!0):delete o[a],d?o[a]=s:Kv(o,a,s)):d?o[a]=s:fJ(a,s)})(Function.prototype,"toString",function(){return Ui(this)&&n(this).source||o9(this)})}),Zbn=Math.ceil,Gbn=Math.floor,s9=function(e){var t=+e;return t!=t||t===0?0:(t>0?Gbn:Zbn)(t)},Qbn=Math.max,Ubn=Math.min,XE=function(e,t){var n=s9(e);return n<0?Qbn(n+t,0):Ubn(n,t)},Xbn=Math.min,ZDe=function(e){return e>0?Xbn(s9(e),9007199254740991):0},ST=function(e){return ZDe(e.length)},xme=function(e){return function(t,n,r){var i,o=V0(t),a=ST(o),s=XE(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},GDe={includes:xme(!0),indexOf:xme(!1)},Ybn=GDe.indexOf,Sme=Er([].push),QDe=function(e,t){var n,r=V0(e),i=0,o=[];for(n in r)!za(a9,n)&&za(r,n)&&Sme(o,n);for(;t.length>i;)za(r,n=t[i++])&&(~Ybn(o,n)||Sme(o,n));return o},dM=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Kbn=dM.concat("length","prototype"),hM={f:Object.getOwnPropertyNames||function(e){return QDe(e,Kbn)}},qbn={f:Object.getOwnPropertySymbols},Jbn=Er([].concat),e1n=b1("Reflect","ownKeys")||function(e){var t=hM.f(Ss(e)),n=qbn.f;return n?Jbn(t,n(e)):t},t1n=function(e,t){for(var n=e1n(t),r=Lg.f,i=yJ.f,o=0;o<n.length;o++){var a=n[o];za(e,a)||r(e,a,i(t,a))}},n1n=/#|\.prototype\./,AT=function(e,t){var n=i1n[r1n(e)];return n==a1n||n!=o1n&&(Ui(t)?lo(t):!!t)},r1n=AT.normalize=function(e){return String(e).replace(n1n,".").toLowerCase()},i1n=AT.data={},o1n=AT.NATIVE="N",a1n=AT.POLYFILL="P",pM=AT,s1n=yJ.f,su=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?wn:u?wn[s]||fJ(s,{}):(wn[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=s1n(n,r))&&a.value:n[r],!pM(l?r:s+(u?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;t1n(o,i)}(e.sham||i&&i.sham)&&Kv(o,"sham",!0),md(n,r,o,e)}},UDe={};UDe[Pa("toStringTag")]="z";var wJ=String(UDe)==="[object z]",l1n=Pa("toStringTag"),u1n=wn.Object,c1n=Mp(function(){return arguments}())=="Arguments",l9=wJ?Mp:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=u1n(e),l1n))=="string"?n:c1n?Mp(t):(r=Mp(t))=="Object"&&Ui(t.callee)?"Arguments":r},d1n=wn.String,Nc=function(e){if(l9(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return d1n(e)},ZG=`
|
|
\v\f\r \u2028\u2029\uFEFF`,Ame=Er("".replace),fM="["+ZG+"]",h1n=RegExp("^"+fM+fM+"*"),p1n=RegExp(fM+fM+"*$"),lj=function(e){return function(t){var n=Nc(xT(t));return 1&e&&(n=Ame(n,h1n,"")),2&e&&(n=Ame(n,p1n,"")),n}},f1n={start:lj(1),end:lj(2),trim:lj(3)},g1n=sS.PROPER,m1n=f1n.trim;function Ime(e){return e.length?e[0].tagName.toLowerCase():""}function XDe(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=ut(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}su({target:"String",proto:!0,forced:lo(function(){return!!ZG.trim()||"
".trim()!=="
"||g1n&&ZG.trim.name!=="trim"})},{trim:function(){return m1n(this)}}),su({global:!0},{globalThis:wn}),hd&&(ut.fn.append=hd),Zp&&(ut.fn.on=Zp),v0&&(ut.fn.focus=v0),dd&&(ut.fn.attr=dd),zp&&(ut.fn.val=zp),m0&&(ut.fn.html=m0),qO&&(ut.fn.parent=qO),XO&&(ut.fn.hasClass=XO),nx&&(ut.fn.empty=nx);var MR,v1n={type:"video",renderElem:function(e,t,n){var r,i=e,o=i.src,a=o===void 0?"":o,s=i.poster,l=s===void 0?"":s,u=i.width,c=u===void 0?"auto":u,d=i.height,h=d===void 0?"auto":d,f=tt.isNodeSelected(n,e);if(a.trim().indexOf("<iframe ")===0)r=mr("div",{className:"w-e-textarea-video-container","data-selected":f?"true":"",innerHTML:XDe(a,c,h)});else{var g=mr("video",{poster:l,controls:!0},mr("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
|
|
抱歉,浏览器不支持 video 视频`);c!=="auto"&&(g.data.width=c),h!=="auto"&&(g.data.height=h),r=mr("div",{className:"w-e-textarea-video-container","data-selected":f?"true":""},g)}return rx("div",{props:{contentEditable:!1},on:{mousedown:function(b){return b.preventDefault()}}},r)}},y1n={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,i=r===void 0?"":r,o=n.poster,a=o===void 0?"":o,s=n.width,l=s===void 0?"auto":s,u=n.height,c=u===void 0?"auto":u,d=`<div data-w-e-type="video" data-w-e-is-void>
|
|
`;return i.trim().indexOf("<iframe ")===0?d+=XDe(i,l,c):d+='<video poster="'+a+'" controls="true" width="'+l+'" height="'+c+'"><source src="'+i+'" type="video/mp4"/></video>',d+`
|
|
</div>`}},b1n=Object.keys||function(e){return QDe(e,dM)},w1n=Qp?Object.defineProperties:function(e,t){Ss(e);for(var n,r=V0(t),i=b1n(t),o=i.length,a=0;o>a;)Lg.f(e,n=i[a++],r[n]);return e},GG=b1("document","documentElement"),YDe=bJ("IE_PROTO"),uj=function(){},KDe=function(e){return"<script>"+e+"<\/script>"},kme=function(e){e.write(KDe("")),e.close();var t=e.parentWindow.Object;return e=null,t},O$=function(){try{MR=new ActiveXObject("htmlfile")}catch{}var e,t;O$=typeof document<"u"?document.domain&&MR?kme(MR):((t=UE("iframe")).style.display="none",GG.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(KDe("document.F=Object")),e.close(),e.F):kme(MR);for(var n=dM.length;n--;)delete O$.prototype[dM[n]];return O$()};a9[YDe]=!0;var CJ=Object.create||function(e,t){var n;return e!==null?(uj.prototype=Ss(e),n=new uj,uj.prototype=null,n[YDe]=e):n=O$(),t===void 0?n:w1n(n,t)},QG=Pa("unscopables"),UG=Array.prototype;UG[QG]==null&&Lg.f(UG,QG,{configurable:!0,value:CJ(null)});var d2=function(e){UG[QG][e]=!0},C1n=GDe.includes;su({target:"Array",proto:!0},{includes:function(e){return C1n(this,e,arguments.length>1?arguments[1]:void 0)}}),d2("includes");var O1n={selector:"iframe,video,p",preParseHtml:function(e){var t=ut(e),n=t;if(Ime(t)==="p"){var r=t.children();if(r.length===1){var i=r[0],o=i.tagName.toLowerCase();["iframe","video"].includes(o)&&(n=ut(i))}}var a=Ime(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var s=ut('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(n),s[0]}},Eme=Er(Er.bind),YE=function(e,t){return I0(e),t===void 0?e:Eme?Eme(e,t):function(){return e.apply(t,arguments)}},gM=Array.isArray||function(e){return Mp(e)=="Array"},qDe=function(){},x1n=[],JDe=b1("Reflect","construct"),OJ=/^\s*(?:class|function)\b/,S1n=Er(OJ.exec),A1n=!OJ.exec(qDe),kI=function(e){if(!Ui(e))return!1;try{return JDe(qDe,x1n,e),!0}catch{return!1}},xJ=!JDe||lo(function(){var e;return kI(kI.call)||!kI(Object)||!kI(function(){e=!0})||e})?function(e){if(!Ui(e))return!1;switch(l9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return A1n||!!S1n(OJ,o9(e))}:kI,I1n=Pa("species"),_me=wn.Array,k1n=function(e,t){return new(function(n){var r;return gM(n)&&(r=n.constructor,(xJ(r)&&(r===_me||gM(r.prototype))||$o(r)&&(r=r[I1n])===null)&&(r=void 0)),r===void 0?_me:r}(e))(t===0?0:t)},Tme=Er([].push),Hm=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,u,c,d){for(var h,f,g=i9(l),b=hJ(g),v=YE(u,c),m=ST(b),w=0,k=d||k1n,T=t?k(l,m):n||a?k(l,0):void 0;m>w;w++)if((s||w in b)&&(f=v(h=b[w],w,g),e))if(t)T[w]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:Tme(T,h)}else switch(e){case 4:return!1;case 7:Tme(T,h)}return o?-1:r||i?i:T}},SJ={forEach:Hm(0),map:Hm(1),filter:Hm(2),some:Hm(3),every:Hm(4),find:Hm(5),findIndex:Hm(6),filterReject:Hm(7)},E1n=SJ.find,Pme=!0;"find"in[]&&Array(1).find(function(){Pme=!1}),su({target:"Array",proto:!0,forced:Pme},{find:function(e){return E1n(this,e,arguments.length>1?arguments[1]:void 0)}}),d2("find");var _1n=wJ?{}.toString:function(){return"[object "+l9(this)+"]"};function Dme(e,t,n,r){return t===void 0&&(t=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}wJ||md(Object.prototype,"toString",_1n,{unsafe:!0});var Rme,cj,T1n={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=ut(e),i="",o="",a="auto",s="auto",l=r.find("iframe");if(l.length>0)return a=l.attr("width")||"auto",s=l.attr("height")||"auto",Dme(i=l[0].outerHTML,o,a,s);var u=r.find("video");return(i=u.attr("src")||"")||u.length>0&&(i=u.find("source").attr("src")||""),a=u.attr("width")||"auto",s=u.attr("height")||"auto",Dme(i,o=u.attr("poster")||"",a,s)}},eRe=function(){var e=Ss(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},AJ=wn.RegExp,XG=lo(function(){var e=AJ("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),P1n=XG||lo(function(){return!AJ("a","y").sticky}),D1n={BROKEN_CARET:XG||lo(function(){var e=AJ("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:P1n,UNSUPPORTED_Y:XG},R1n=wn.RegExp,$1n=lo(function(){var e=R1n(".","s");return!(e.dotAll&&e.exec(`
|
|
`)&&e.flags==="s")}),M1n=wn.RegExp,L1n=lo(function(){var e=M1n("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),B1n=cc.get,F1n=gJ("native-string-replace",String.prototype.replace),mM=RegExp.prototype.exec,YG=mM,N1n=Er("".charAt),V1n=Er("".indexOf),j1n=Er("".replace),dj=Er("".slice),hj=(cj=/b*/g,ao(mM,Rme=/a/,"a"),ao(mM,cj,"a"),Rme.lastIndex!==0||cj.lastIndex!==0),$me=D1n.BROKEN_CARET,pj=/()??/.exec("")[1]!==void 0;(hj||pj||$me||$1n||L1n)&&(YG=function(e){var t,n,r,i,o,a,s,l=this,u=B1n(l),c=Nc(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=ao(YG,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=$me&&l.sticky,g=ao(eRe,l),b=l.source,v=0,m=c;if(f&&(g=j1n(g,"y",""),V1n(g,"g")===-1&&(g+="g"),m=dj(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&N1n(c,l.lastIndex-1)!==`
|
|
`)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),pj&&(n=new RegExp("^"+b+"$(?!\\s)",g)),hj&&(r=l.lastIndex),i=ao(mM,f?n:l,m),f?i?(i.input=dj(i.input,v),i[0]=dj(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:hj&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),pj&&i&&i.length>1&&ao(F1n,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=CJ(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var vM=YG;su({target:"RegExp",proto:!0,forced:/./.exec!==vM},{exec:vM});var IJ=Function.prototype,Mme=IJ.apply,W1n=IJ.bind,Lme=IJ.call,tRe=typeof Reflect=="object"&&Reflect.apply||(W1n?Lme.bind(Mme):function(){return Lme.apply(Mme,arguments)}),Bme=(Pa("species"),RegExp.prototype),H1n=Er("".charAt),Fme=Er("".charCodeAt),z1n=Er("".slice),Nme=function(e){return function(t,n){var r,i,o=Nc(xT(t)),a=s9(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=Fme(o,a))<55296||r>56319||a+1===s||(i=Fme(o,a+1))<56320||i>57343?e?H1n(o,a):r:e?z1n(o,a,a+2):i-56320+(r-55296<<10)+65536}},nRe={codeAt:Nme(!1),charAt:Nme(!0)},Z1n=nRe.charAt,G1n=function(e,t,n){return t+(n?Z1n(e,t).length:1)},Q1n=Math.floor,fj=Er("".charAt),U1n=Er("".replace),gj=Er("".slice),X1n=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Y1n=/\$([$&'`]|\d{1,2})/g,K1n=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=Y1n;return i!==void 0&&(i=i9(i),l=X1n),U1n(o,l,function(u,c){var d;switch(fj(c,0)){case"$":return"$";case"&":return e;case"`":return gj(t,0,n);case"'":return gj(t,a);case"<":d=i[gj(c,1,-1)];break;default:var h=+c;if(h===0)return u;if(h>s){var f=Q1n(h/10);return f===0?u:f<=s?r[f-1]===void 0?fj(c,1):r[f-1]+fj(c,1):u}d=r[h-1]}return d===void 0?"":d})},q1n=wn.TypeError,J1n=function(e,t){var n=e.exec;if(Ui(n)){var r=ao(n,e,t);return r!==null&&Ss(r),r}if(Mp(e)==="RegExp")return ao(vM,e,t);throw q1n("RegExp#exec called on incompatible receiver")},KG=Pa("replace"),ewn=Math.max,twn=Math.min,nwn=Er([].concat),mj=Er([].push),Vme=Er("".indexOf),jme=Er("".slice),rwn="a".replace(/./,"$0")==="$0",Wme=!!/./[KG]&&/./[KG]("a","$0")==="";function rRe(e){return e+"-"+pEe()}(function(e,t,n,r){var i=Pa(e),o=!lo(function(){var u={};return u[i]=function(){return 7},""[e](u)!=7}),a=o&&!lo(function(){var u=!1,c=/a/;return c.exec=function(){return u=!0,null},c[i](""),!u});if(!o||!a||n){var s=Er(/./[i]),l=function(u,c,d){var h=Wme?"$":"$0";return[function(f,g){var b=xT(this),v=f==null?void 0:QE(f,KG);return v?ao(v,f,b,g):ao(c,Nc(b),f,g)},function(f,g){var b=Ss(this),v=Nc(f);if(typeof g=="string"&&Vme(g,h)===-1&&Vme(g,"$<")===-1){var m=d(c,b,v,g);if(m.done)return m.value}var w=Ui(g);w||(g=Nc(g));var k=b.global;if(k){var T=b.unicode;b.lastIndex=0}for(var S=[];;){var I=J1n(b,v);if(I===null||(mj(S,I),!k))break;Nc(I[0])===""&&(b.lastIndex=G1n(v,ZDe(b.lastIndex),T))}for(var O,y="",_=0,A=0;A<S.length;A++){for(var R=Nc((I=S[A])[0]),D=ewn(twn(s9(I.index),v.length),0),C=[],x=1;x<I.length;x++)mj(C,(O=I[x])===void 0?O:String(O));var P=I.groups;if(w){var $=nwn([R],C,D,v);P!==void 0&&mj($,P);var L=Nc(tRe(g,void 0,$))}else L=K1n(R,v,D,C,P,g);D>=_&&(y+=jme(v,_,D)+L,_=D+R.length)}return y+jme(v,_)}]}(0,""[e],function(u,c,d,h,f){var g=Er(u),b=c.exec;return b===vM||b===Bme.exec?o&&!f?{done:!0,value:s(c,d,h)}:{done:!0,value:g(d,c,h)}:{done:!1}});md(String.prototype,e,l[0]),md(Bme,i,l[1])}})("replace",0,!!lo(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!rwn||Wme);var yM=wn.Promise,bM=function(e,t,n){for(var r in t)md(e,r,t[r],n);return e},iwn=wn.String,own=wn.TypeError,px=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Er(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return Ss(r),function(o){if(typeof o=="object"||Ui(o))return o;throw own("Can't set "+iwn(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),awn=Lg.f,Hme=Pa("toStringTag"),wM=function(e,t,n){e&&!za(e=n?e:e.prototype,Hme)&&awn(e,Hme,{configurable:!0,value:t})},zme=Pa("species"),swn=wn.TypeError,kJ=function(e,t){if(ZE(t,e))return e;throw swn("Incorrect invocation")},fx={},lwn=Pa("iterator"),uwn=Array.prototype,cwn=Pa("iterator"),Zme=function(e){if(e!=null)return QE(e,cwn)||QE(e,"@@iterator")||fx[l9(e)]},dwn=wn.TypeError,Gme=function(e,t,n){var r,i;Ss(e);try{if(!(r=QE(e,"return"))){if(t==="throw")throw n;return n}r=ao(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return Ss(r),n},hwn=wn.TypeError,x$=function(e,t){this.stopped=e,this.result=t},Qme=x$.prototype,CM=function(e,t,n){var r,i,o,a,s,l,u,c,d=n&&n.that,h=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),b=YE(t,d),v=function(w){return r&&Gme(r,"normal",w),new x$(!0,w)},m=function(w){return h?(Ss(w),g?b(w[0],w[1],v):b(w[0],w[1])):g?b(w,v):b(w)};if(f)r=e;else{if(!(i=Zme(e)))throw hwn(lM(e)+" is not iterable");if((c=i)!==void 0&&(fx.Array===c||uwn[lwn]===c)){for(o=0,a=ST(e);a>o;o++)if((s=m(e[o]))&&ZE(Qme,s))return s;return new x$(!1)}r=function(w,k){var T=arguments.length<2?Zme(w):k;if(I0(T))return Ss(ao(T,w));throw dwn(lM(w)+" is not iterable")}(e,i)}for(l=r.next;!(u=ao(l,r)).done;){try{s=m(u.value)}catch(w){Gme(r,"throw",w)}if(typeof s=="object"&&s&&ZE(Qme,s))return s}return new x$(!1)},iRe=Pa("iterator"),oRe=!1;try{var pwn=0,Ume={next:function(){return{done:!!pwn++}},return:function(){oRe=!0}};Ume[iRe]=function(){return this},Array.from(Ume,function(){throw 2})}catch{}var KE,aC,Xme,vj,aRe=function(e,t){if(!oRe)return!1;var n=!1;try{var r={};r[iRe]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},fwn=wn.TypeError,gwn=Pa("species"),sRe=Er([].slice),lRe=/(?:ipad|iphone|ipod).*applewebkit/i.test(dO),qv=Mp(wn.process)=="process",qG=wn.setImmediate,JG=wn.clearImmediate,mwn=wn.process,yj=wn.Dispatch,vwn=wn.Function,Yme=wn.MessageChannel,ywn=wn.String,bj=0,h2={};try{KE=wn.location}catch{}var EJ=function(e){if(za(h2,e)){var t=h2[e];delete h2[e],t()}},wj=function(e){return function(){EJ(e)}},Kme=function(e){EJ(e.data)},qme=function(e){wn.postMessage(ywn(e),KE.protocol+"//"+KE.host)};qG&&JG||(qG=function(e){var t=sRe(arguments,1);return h2[++bj]=function(){tRe(Ui(e)?e:vwn(e),void 0,t)},aC(bj),bj},JG=function(e){delete h2[e]},qv?aC=function(e){mwn.nextTick(wj(e))}:yj&&yj.now?aC=function(e){yj.now(wj(e))}:Yme&&!lRe?(vj=(Xme=new Yme).port2,Xme.port1.onmessage=Kme,aC=YE(vj.postMessage,vj)):wn.addEventListener&&Ui(wn.postMessage)&&!wn.importScripts&&KE&&KE.protocol!=="file:"&&!lo(qme)?(aC=qme,wn.addEventListener("message",Kme,!1)):aC="onreadystatechange"in UE("script")?function(e){GG.appendChild(UE("script")).onreadystatechange=function(){GG.removeChild(this),EJ(e)}}:function(e){setTimeout(wj(e),0)});var EI,rb,p2,kC,Cj,Oj,xj,Jme,uRe={set:qG,clear:JG},bwn=/ipad|iphone|ipod/i.test(dO)&&wn.Pebble!==void 0,wwn=/web0s(?!.*chrome)/i.test(dO),Cwn=yJ.f,Sj=uRe.set,eve=wn.MutationObserver||wn.WebKitMutationObserver,tve=wn.document,nve=wn.process,LR=wn.Promise,rve=Cwn(wn,"queueMicrotask"),cRe=rve&&rve.value;cRe||(EI=function(){var e,t;for(qv&&(e=nve.domain)&&e.exit();rb;){t=rb.fn,rb=rb.next;try{t()}catch(n){throw rb?kC():p2=void 0,n}}p2=void 0,e&&e.enter()},lRe||qv||wwn||!eve||!tve?!bwn&&LR&&LR.resolve?((xj=LR.resolve(void 0)).constructor=LR,Jme=YE(xj.then,xj),kC=function(){Jme(EI)}):qv?kC=function(){nve.nextTick(EI)}:(Sj=YE(Sj,wn),kC=function(){Sj(EI)}):(Cj=!0,Oj=tve.createTextNode(""),new eve(EI).observe(Oj,{characterData:!0}),kC=function(){Oj.data=Cj=!Cj}));var Aj,ive,dRe,ove,hRe=cRe||function(e){var t={fn:e,next:void 0};p2&&(p2.next=t),rb||(rb=t,kC()),p2=t},Own=function(e){var t,n;this.promise=new e(function(r,i){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=i}),this.resolve=I0(t),this.reject=I0(n)},_J={f:function(e){return new Own(e)}},eQ=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},xwn=typeof window=="object",pRe=uRe.set,Swn=Pa("species"),tg="Promise",ave=cc.getterFor(tg),Awn=cc.set,Iwn=cc.getterFor(tg),Gy=yM&&yM.prototype,Sp=yM,_I=Gy,fRe=wn.TypeError,tQ=wn.document,TJ=wn.process,hO=_J.f,kwn=hO,Ewn=!!(tQ&&tQ.createEvent&&wn.dispatchEvent),gRe=Ui(wn.PromiseRejectionEvent),mRe=!1,f2=pM(tg,function(){var e=o9(Sp),t=e!==String(Sp);if(!t&&GE===66)return!0;if(GE>=51&&/native code/.test(e))return!1;var n=new Sp(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[Swn]=r,!(mRe=n.then(function(){})instanceof r)||!t&&xwn&&!gRe}),_wn=f2||!aRe(function(e){Sp.all(e).catch(function(){})}),vRe=function(e){var t;return!(!$o(e)||!Ui(t=e.then))&&t},PJ=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;hRe(function(){for(var r=e.value,i=e.state==1,o=0;n.length>o;){var a,s,l,u=n[o++],c=i?u.ok:u.fail,d=u.resolve,h=u.reject,f=u.domain;try{c?(i||(e.rejection===2&&Pwn(e),e.rejection=1),c===!0?a=r:(f&&f.enter(),a=c(r),f&&(f.exit(),l=!0)),a===u.promise?h(fRe("Promise-chain cycle")):(s=vRe(a))?ao(s,a,d,h):d(a)):h(r)}catch(g){f&&!l&&f.exit(),h(g)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Twn(e)})}},yRe=function(e,t,n){var r,i;Ewn?((r=tQ.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),wn.dispatchEvent(r)):r={promise:t,reason:n},!gRe&&(i=wn["on"+e])?i(r):e==="unhandledrejection"&&function(o,a){var s=wn.console;s&&s.error&&(arguments.length==1?s.error(o):s.error(o,a))}("Unhandled promise rejection",n)},Twn=function(e){ao(pRe,wn,function(){var t,n=e.facade,r=e.value;if(sve(e)&&(t=eQ(function(){qv?TJ.emit("unhandledRejection",r,n):yRe("unhandledrejection",n,r)}),e.rejection=qv||sve(e)?2:1,t.error))throw t.value})},sve=function(e){return e.rejection!==1&&!e.parent},Pwn=function(e){ao(pRe,wn,function(){var t=e.facade;qv?TJ.emit("rejectionHandled",t):yRe("rejectionhandled",t,e.value)})},NC=function(e,t,n){return function(r){e(t,r,n)}},pO=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,PJ(e,!0))},nQ=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw fRe("Promise can't be resolved itself");var r=vRe(t);r?hRe(function(){var i={done:!1};try{ao(r,t,NC(nQ,i,e),NC(pO,i,e))}catch(o){pO(i,o,e)}}):(e.value=t,e.state=1,PJ(e,!1))}catch(i){pO({done:!1},i,e)}}};if(f2&&(_I=(Sp=function(e){kJ(this,_I),I0(e),ao(Aj,this);var t=ave(this);try{e(NC(nQ,t),NC(pO,t))}catch(n){pO(t,n)}}).prototype,(Aj=function(e){Awn(this,{type:tg,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=bM(_I,{then:function(e,t){var n=Iwn(this),r=n.reactions,i=hO(function(o,a){var s,l=Ss(o).constructor;return l===void 0||(s=Ss(l)[gwn])==null?a:function(u){if(xJ(u))return u;throw fwn(lM(u)+" is not a constructor")}(s)}(this,Sp));return i.ok=!Ui(e)||e,i.fail=Ui(t)&&t,i.domain=qv?TJ.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&PJ(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),ive=function(){var e=new Aj,t=ave(e);this.promise=e,this.resolve=NC(nQ,t),this.reject=NC(pO,t)},_J.f=hO=function(e){return e===Sp||e===dRe?new ive(e):kwn(e)},Ui(yM)&&Gy!==Object.prototype)){ove=Gy.then,mRe||(md(Gy,"then",function(e,t){var n=this;return new Sp(function(r,i){ao(ove,n,r,i)}).then(e,t)},{unsafe:!0}),md(Gy,"catch",_I.catch,{unsafe:!0}));try{delete Gy.constructor}catch{}px&&px(Gy,_I)}function qE(e,t,n){return n===void 0&&(n=""),t9(this,void 0,void 0,function(){var r,i,o,a,s,l,u;return n9(this,function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),i=r.onInsertedVideo,o=r.checkVideo,a=r.parseVideoSrc,[4,o(t,n)]):[2];case 1:return typeof(s=c.sent())=="string"?(e.alert(s,"error"),[2]):s==null?[2]:[4,a(t)];case 2:return(l=c.sent()).trim().indexOf("<iframe ")!==0&&(l=l.replace(/</g,"<").replace(/>/g,">")),u={type:"video",src:l,poster:n,children:[{text:""}]},Promise.resolve().then(function(){Rt.insertNodes(e,u)}),i(u),[2]}})})}function Ij(){return rRe("w-e-insert-video")}su({global:!0,wrap:!0,forced:f2},{Promise:Sp}),wM(Sp,tg,!1),function(e){var t=b1("Promise"),n=Lg.f;Qp&&t&&!t[zme]&&n(t,zme,{configurable:!0,get:function(){return this}})}(),dRe=b1(tg),su({target:tg,stat:!0,forced:f2},{reject:function(e){var t=hO(this);return ao(t.reject,void 0,e),t.promise}}),su({target:tg,stat:!0,forced:f2},{resolve:function(e){return function(t,n){if(Ss(t),$o(n)&&n.constructor===t)return n;var r=_J.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),su({target:tg,stat:!0,forced:_wn},{all:function(e){var t=this,n=hO(t),r=n.resolve,i=n.reject,o=eQ(function(){var a=I0(t.resolve),s=[],l=0,u=1;CM(e,function(c){var d=l++,h=!1;u++,ao(a,t,c).then(function(f){h||(h=!0,s[d]=f,--u||r(s))},i)}),--u||r(s)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=hO(t),r=n.reject,i=eQ(function(){var o=I0(t.resolve);CM(e,function(a){ao(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var Dwn=function(){function e(){this.title=yn("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=Ij(),this.posterInputId=Ij(),this.buttonId=Ij()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!Vt.isCollapsed(n)||!!tt.getSelectedElems(t).some(function(r){var i=tt.getNodeType(r);return i==="pre"||i==="list-item"||!!t.isVoid(r)})},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,i=r.srcInputId,o=r.posterInputId,a=r.buttonId,s=Nb(tc(yn("videoModule.videoSrc"),i,yn("videoModule.videoSrcPlaceHolder")),2),l=s[0],u=s[1],c=Nb(tc(yn("videoModule.videoPoster"),o,yn("videoModule.videoPosterPlaceHolder")),2),d=c[0],h=c[1],f=ut(u),g=ut(h),b=Nb(Kx(a,yn("videoModule.ok")),1)[0];if(this.$content==null){var v=ut("<div></div>");v.on("click","#"+a,function(w){return t9(n,void 0,void 0,function(){var k,T;return n9(this,function(S){switch(S.label){case 0:return w.preventDefault(),k=v.find("#"+i).val().trim(),T=v.find("#"+o).val().trim(),[4,qE(t,k,T)];case 1:return S.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=v}var m=this.$content;return m.empty(),m.append(l),m.append(d),m.append(b),f.val(""),g.val(""),setTimeout(function(){f.focus()}),m[0]},e}(),Rwn=Er([].join),$wn=hJ!=Object,Mwn=function(e,t){var n=[].join;return!!n&&lo(function(){n.call(null,",",1)})}();su({target:"Array",proto:!0,forced:$wn||!Mwn},{join:function(e){return Rwn(V0(this),e===void 0?",":e)}});var jb,lve,uve,Lwn=!lo(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),cve=bJ("IE_PROTO"),rQ=wn.Object,Bwn=rQ.prototype,OM=Lwn?rQ.getPrototypeOf:function(e){var t=i9(e);if(za(t,cve))return t[cve];var n=t.constructor;return Ui(n)&&t instanceof n?n.prototype:t instanceof rQ?Bwn:null},iQ=Pa("iterator"),bRe=!1;[].keys&&("next"in(uve=[].keys())?(lve=OM(OM(uve)))!==Object.prototype&&(jb=lve):bRe=!0);var Fwn=jb==null||lo(function(){var e={};return jb[iQ].call(e)!==e});Fwn&&(jb={}),Ui(jb[iQ])||md(jb,iQ,function(){return this});var DJ={IteratorPrototype:jb,BUGGY_SAFARI_ITERATORS:bRe},Nwn=DJ.IteratorPrototype,Vwn=function(){return this},jwn=sS.PROPER,Wwn=sS.CONFIGURABLE,dve=DJ.IteratorPrototype,kj=DJ.BUGGY_SAFARI_ITERATORS,TI=Pa("iterator"),Hwn=function(){return this},wRe=function(e,t,n,r,i,o,a){(function(v,m,w,k){var T=m+" Iterator";v.prototype=CJ(Nwn,{next:r9(1,w)}),wM(v,T,!1),fx[T]=Vwn})(n,t,r);var s,l,u=function(v){if(v===i&&g)return g;if(!kj&&v in h)return h[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,h=e.prototype,f=h[TI]||h["@@iterator"]||i&&h[i],g=!kj&&f||u(i),b=t=="Array"&&h.entries||f;return b&&(s=OM(b.call(new e)))!==Object.prototype&&s.next&&(OM(s)!==dve&&(px?px(s,dve):Ui(s[TI])||md(s,TI,Hwn)),wM(s,c,!0)),jwn&&i=="values"&&f&&f.name!=="values"&&(Wwn?Kv(h,"name","values"):(d=!0,g=function(){return ao(f,this)})),i&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||su({target:t,proto:!0,forced:kj||d},l)),h[TI]!==g&&md(h,TI,g,{name:i}),fx[t]=g,l},zwn=cc.set,Zwn=cc.getterFor("Array Iterator"),fk=wRe(Array,"Array",function(e,t){zwn(this,{type:"Array Iterator",target:V0(e),index:0,kind:t})},function(){var e=Zwn(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");fx.Arguments=fx.Array,d2("keys"),d2("values"),d2("entries");var Gwn=nRe.charAt,Qwn=cc.set,Uwn=cc.getterFor("String Iterator");wRe(String,"String",function(e){Qwn(this,{type:"String Iterator",string:Nc(e),index:0})},function(){var e,t=Uwn(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Gwn(n,r),t.index+=e.length,{value:e,done:!1})});var CRe=function(e,t,n){var r=vJ(t);r in e?Lg.f(e,r,r9(0,n)):e[r]=n},Xwn=wn.Array,Ywn=Math.max,hve=hM.f,pve=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Kwn={f:function(e){return pve&&Mp(e)=="Window"?function(t){try{return hve(t)}catch{return function(n,r,i){for(var o=ST(n),a=XE(void 0,o),s=XE(o,o),l=Xwn(Ywn(s-a,0)),u=0;a<s;a++,u++)CRe(l,u,n[a]);return l.length=u,l}(pve)}}(e):hve(V0(e))}},fve=lo(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),BR=Object.isExtensible,gb=lo(function(){BR(1)})||fve?function(e){return!!$o(e)&&(!fve||Mp(e)!="ArrayBuffer")&&(!BR||BR(e))}:BR,qwn=!lo(function(){return Object.isExtensible(Object.preventExtensions({}))}),RJ=dJ(function(e){var t=Lg.f,n=!1,r=mJ("meta"),i=0,o=function(s){t(s,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var s=hM.f,l=Er([].splice),u={};u[r]=1,s(u).length&&(hM.f=function(c){for(var d=s(c),h=0,f=d.length;h<f;h++)if(d[h]===r){l(d,h,1);break}return d},su({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Kwn.f}))},fastKey:function(s,l){if(!$o(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!za(s,r)){if(!gb(s))return"F";if(!l)return"E";o(s)}return s[r].objectID},getWeakData:function(s,l){if(!za(s,r)){if(!gb(s))return!0;if(!l)return!1;o(s)}return s[r].weakData},onFreeze:function(s){return qwn&&n&&gb(s)&&!za(s,r)&&o(s),s}};a9[r]=!0}),FR=RJ.getWeakData,Jwn=cc.set,eCn=cc.getterFor,tCn=SJ.find,nCn=SJ.findIndex,rCn=Er([].splice),iCn=0,NR=function(e){return e.frozen||(e.frozen=new ORe)},ORe=function(){this.entries=[]},Ej=function(e,t){return tCn(e.entries,function(n){return n[0]===t})};ORe.prototype={get:function(e){var t=Ej(this,e);if(t)return t[1]},has:function(e){return!!Ej(this,e)},set:function(e,t){var n=Ej(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=nCn(this.entries,function(n){return n[0]===e});return~t&&rCn(this.entries,t,1),!!~t}};var PI,xRe={getConstructor:function(e,t,n,r){var i=e(function(l,u){kJ(l,o),Jwn(l,{type:t,id:iCn++,frozen:void 0}),u!=null&&CM(u,l[r],{that:l,AS_ENTRIES:n})}),o=i.prototype,a=eCn(t),s=function(l,u,c){var d=a(l),h=FR(Ss(u),!0);return h===!0?NR(d).set(u,c):h[d.id]=c,l};return bM(o,{delete:function(l){var u=a(this);if(!$o(l))return!1;var c=FR(l);return c===!0?NR(u).delete(l):c&&za(c,u.id)&&delete c[u.id]},has:function(l){var u=a(this);if(!$o(l))return!1;var c=FR(l);return c===!0?NR(u).has(l):c&&za(c,u.id)}}),bM(o,n?{get:function(l){var u=a(this);if($o(l)){var c=FR(l);return c===!0?NR(u).get(l):c?c[u.id]:void 0}},set:function(l,u){return s(this,l,u)}}:{add:function(l){return s(this,l,!0)}}),i}},VR=cc.enforce,oCn=!wn.ActiveXObject&&"ActiveXObject"in wn,SRe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},aCn=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=wn[e],s=a&&a.prototype,l=a,u={},c=function(v){var m=Er(s[v]);md(s,v,v=="add"?function(w){return m(this,w===0?0:w),this}:v=="delete"?function(w){return!(i&&!$o(w))&&m(this,w===0?0:w)}:v=="get"?function(w){return i&&!$o(w)?void 0:m(this,w===0?0:w)}:v=="has"?function(w){return!(i&&!$o(w))&&m(this,w===0?0:w)}:function(w,k){return m(this,w===0?0:w,k),this})};if(pM(e,!Ui(a)||!(i||s.forEach&&!lo(function(){new a().entries().next()}))))l=n.getConstructor(t,e,r,o),RJ.enable();else if(pM(e,!0)){var d=new l,h=d[o](i?{}:-0,1)!=d,f=lo(function(){d.has(1)}),g=aRe(function(v){new a(v)}),b=!i&&lo(function(){for(var v=new a,m=5;m--;)v[o](m,m);return!v.has(-0)});g||((l=t(function(v,m){kJ(v,s);var w=function(k,T,S){var I,O;return px&&Ui(I=T.constructor)&&I!==S&&$o(O=I.prototype)&&O!==S.prototype&&px(k,O),k}(new a,v,l);return m!=null&&CM(m,w[o],{that:w,AS_ENTRIES:r}),w})).prototype=s,s.constructor=l),(f||b)&&(c("delete"),c("has"),r&&c("get")),(b||h)&&c(o),i&&s.clear&&delete s.clear}return u[e]=l,su({global:!0,forced:l!=a},u),wM(l,e),i||n.setStrong(l,e,r),l}("WeakMap",SRe,xRe);if(HDe&&oCn){PI=xRe.getConstructor(SRe,"WeakMap",!0),RJ.enable();var DI=aCn.prototype,gve=Er(DI.delete),jR=Er(DI.has),mve=Er(DI.get),vve=Er(DI.set);bM(DI,{delete:function(e){if($o(e)&&!gb(e)){var t=VR(this);return t.frozen||(t.frozen=new PI),gve(this,e)||t.frozen.delete(e)}return gve(this,e)},has:function(e){if($o(e)&&!gb(e)){var t=VR(this);return t.frozen||(t.frozen=new PI),jR(this,e)||t.frozen.has(e)}return jR(this,e)},get:function(e){if($o(e)&&!gb(e)){var t=VR(this);return t.frozen||(t.frozen=new PI),jR(this,e)?mve(this,e):t.frozen.get(e)}return mve(this,e)},set:function(e,t){if($o(e)&&!gb(e)){var n=VR(this);n.frozen||(n.frozen=new PI),jR(this,e)?vve(this,e,t):n.frozen.set(e,t)}else vve(this,e,t);return this}})}var ARe={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},_j=UE("span").classList,yve=_j&&_j.constructor&&_j.constructor.prototype,sCn=yve===Object.prototype?void 0:yve,Tj=Pa("iterator"),bve=Pa("toStringTag"),Pj=fk.values,IRe=function(e,t){if(e){if(e[Tj]!==Pj)try{Kv(e,Tj,Pj)}catch{e[Tj]=Pj}if(e[bve]||Kv(e,bve,t),ARe[t]){for(var n in fk)if(e[n]!==fk[n])try{Kv(e,n,fk[n])}catch{e[n]=fk[n]}}}};for(var Dj in ARe)IRe(wn[Dj]&&wn[Dj].prototype,Dj);IRe(sCn,"DOMTokenList");var lCn=sS.EXISTS,uCn=Lg.f,kRe=Function.prototype,cCn=Er(kRe.toString),ERe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,dCn=Er(ERe.exec);Qp&&!lCn&&uCn(kRe,"name",{configurable:!0,get:function(){try{return dCn(ERe,cCn(this))[1]}catch{return""}}});var hCn=Pa("species"),pCn=GE>=51||!lo(function(){var e=[];return(e.constructor={})[hCn]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),fCn=Pa("species"),Rj=wn.Array,gCn=Math.max;function _Re(e){return e.getMenuConfig("uploadVideo")}su({target:"Array",proto:!0,forced:!pCn},{slice:function(e,t){var n,r,i,o=V0(this),a=ST(o),s=XE(e,a),l=XE(t===void 0?a:t,a);if(gM(o)&&(n=o.constructor,(xJ(n)&&(n===Rj||gM(n.prototype))||$o(n)&&(n=n[fCn])===null)&&(n=void 0),n===Rj||n===void 0))return sRe(o,s,l);for(r=new(n===void 0?Rj:n)(gCn(l-s,0)),i=0;s<l;s++,i++)s in o&&CRe(r,i,o[s]);return r.length=i,r}});var wve=new WeakMap;function mCn(e,t){return t9(this,void 0,void 0,function(){var n,r,i,o;return n9(this,function(a){switch(a.label){case 0:return n=function(s){var l=wve.get(s);if(l!=null)return l;var u=_Re(s),c=u.onSuccess,d=u.onProgress,h=u.onFailed,f=u.customInsert,g=u.onError;return l=tTe(sM(sM({},u),{onProgress:function(b){s.showProgressBar(b),d&&d(b)},onSuccess:function(b,v){if(f)return f(v,function(y,_){return qE(s,y,_)}),void c(b,v);var m=v.errno,w=m===void 0?1:m,k=v.data,T=k===void 0?{}:k;if(w===0){var S=T.url,I=S===void 0?"":S,O=T.poster;qE(s,I,O===void 0?"":O),c(b,v)}else h(b,v)},onError:function(b,v,m){g(b,v,m)}})),wve.set(s,l),l}(e),r=t.name,i=t.type,o=t.size,n.addFile({name:r,type:i,size:o,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var vCn=function(){function e(){this.title=yn("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),i=r.allowedFileTypes,o=i===void 0?[]:i,a=r.customBrowseAndUpload;if(a)a(function(c,d){return qE(t,c,d)});else{var s="";o.length>0&&(s='accept="'+o.join(", ")+'"');var l=ut("body"),u=ut('<input type="file" '+s+" multiple/>");u.hide(),l.append(u),u.click(),u.on("change",function(){var c=u[0].files;(function(d,h){var f,g;t9(this,void 0,void 0,function(){var b,v,m,w,k,T;return n9(this,function(S){switch(S.label){case 0:if(h==null)return[2];b=Array.prototype.slice.call(h),v=_Re(d).customUpload,S.label=1;case 1:S.trys.push([1,9,10,15]),m=gbn(b),S.label=2;case 2:return[4,m.next()];case 3:return(w=S.sent()).done?[3,8]:(k=w.value,v?[4,v(k,function(I,O){return qE(d,I,O)})]:[3,5]);case 4:return S.sent(),[3,7];case 5:return[4,mCn(d,k)];case 6:S.sent(),S.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return T=S.sent(),f={error:T},[3,15];case 10:return S.trys.push([10,,13,14]),w&&!w.done&&(g=m.return)?[4,g.call(m)]:[3,12];case 11:S.sent(),S.label=12;case 12:return[3,14];case 13:if(f)throw f.error;return[7];case 14:return[7];case 15:return[2]}})})})(t,c)})}},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!Vt.isCollapsed(n)||!!tt.getSelectedElems(t).some(function(r){var i=tt.getNodeType(r);return i==="pre"||i==="list-item"||!!t.isVoid(r)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),yCn=sS.PROPER,oQ=RegExp.prototype,TRe=oQ.toString,bCn=Er(eRe),wCn=lo(function(){return TRe.call({source:"a",flags:"b"})!="/a/b"}),CCn=yCn&&TRe.name!="toString";function $j(){return rRe("w-e-insert-video")}(wCn||CCn)&&md(RegExp.prototype,"toString",function(){var e=Ss(this),t=Nc(e.source),n=e.flags;return"/"+t+"/"+Nc(n===void 0&&ZE(oQ,e)&&!("flags"in oQ)?bCn(e):n)},{unsafe:!0});var OCn=function(){function e(){this.title=yn("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=$j(),this.heightInputId=$j(),this.buttonId=$j()}return e.prototype.getSelectedVideoNode=function(t){return tt.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=n.widthInputId,i=n.heightInputId,o=n.buttonId,a=Nb(tc(yn("videoModule.width"),r,"auto"),2),s=a[0],l=ut(a[1]),u=Nb(tc(yn("videoModule.height"),i,"auto"),2),c=u[0],d=ut(u[1]),h=Nb(Kx(o,yn("videoModule.ok")),1)[0];if(this.$content==null){var f=ut("<div></div>");f.on("click","#"+o,function(T){T.preventDefault();var S=f.find("#"+r).val().trim(),I=f.find("#"+i).val().trim(),O=parseInt(S),y=parseInt(I),_=O?O.toString():"auto",A=y?y.toString():"auto";t.restoreSelection(),Rt.setNodes(t,{width:_,height:A},{match:function(R){return tt.checkNodeType(R,"video")}}),t.hidePanelOrModal()}),this.$content=f}var g=this.$content;g.empty(),g.append(s),g.append(c),g.append(h);var b=this.getSelectedVideoNode(t);if(b==null)return g[0];var v=b.width,m=v===void 0?"auto":v,w=b.height,k=w===void 0?"auto":w;return l.val(m),d.val(k),setTimeout(function(){l.focus()}),g[0]},e}(),xCn={renderElems:[v1n],elemsToHtml:[y1n],preParseHtml:[O1n],parseElemsHtml:[T1n],menus:[{key:"insertVideo",factory:function(){return new Dwn},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new vCn},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new OCn}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(i){return i.type==="video"||t(i)},r.normalizeNode=function(i){var o=Nb(i,2),a=o[0],s=o[1];return tt.getNodeType(a)==="video"&&tt.isLastNode(r,a)&&Rt.insertNodes(r,tt.genEmptyParagraph(),{at:[s[0]+1]}),n([a,s])},r}};vu("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),vu("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Cve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $J(e){var t={exports:{}};return e(t,t.exports),t.exports}var zm,S$,WR=function(e){return e&&e.Math==Math&&e},bn=WR(typeof globalThis=="object"&&globalThis)||WR(typeof window=="object"&&window)||WR(typeof self=="object"&&self)||WR(typeof Cve=="object"&&Cve)||function(){return this}()||Function("return this")(),Oo=function(e){try{return!!e()}catch{return!0}},Up=!Oo(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),RI=Function.prototype.call,Vi=RI.bind?RI.bind(RI):function(){return RI.apply(RI,arguments)},Ove={}.propertyIsEnumerable,xve=Object.getOwnPropertyDescriptor,SCn={f:xve&&!Ove.call({1:2},1)?function(e){var t=xve(this,e);return!!t&&t.enumerable}:Ove},u9=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},PRe=Function.prototype,aQ=PRe.bind,sQ=PRe.call,ACn=aQ&&aQ.bind(sQ),Gr=aQ?function(e){return e&&ACn(sQ,e)}:function(e){return e&&function(){return sQ.apply(e,arguments)}},ICn=Gr({}.toString),kCn=Gr("".slice),oh=function(e){return kCn(ICn(e),8,-1)},Mj=bn.Object,ECn=Gr("".split),MJ=Oo(function(){return!Mj("z").propertyIsEnumerable(0)})?function(e){return oh(e)=="String"?ECn(e,""):Mj(e)}:Mj,_Cn=bn.TypeError,JE=function(e){if(e==null)throw _Cn("Can't call method on "+e);return e},j0=function(e){return MJ(JE(e))},Ji=function(e){return typeof e=="function"},wo=function(e){return typeof e=="object"?e!==null:Ji(e)},TCn=function(e){return Ji(e)?e:void 0},w1=function(e,t){return arguments.length<2?TCn(bn[e]):bn[e]&&bn[e][t]},e_=Gr({}.isPrototypeOf),fO=w1("navigator","userAgent")||"",Sve=bn.process,Ave=bn.Deno,Ive=Sve&&Sve.versions||Ave&&Ave.version,kve=Ive&&Ive.v8;kve&&(S$=(zm=kve.split("."))[0]>0&&zm[0]<4?1:+(zm[0]+zm[1])),!S$&&fO&&(!(zm=fO.match(/Edge\/(\d+)/))||zm[1]>=74)&&(zm=fO.match(/Chrome\/(\d+)/))&&(S$=+zm[1]);var t_=S$,lQ=!!Object.getOwnPropertySymbols&&!Oo(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t_&&t_<41}),LJ=lQ&&!Symbol.sham&&typeof Symbol.iterator=="symbol",PCn=bn.Object,Lj=LJ?function(e){return typeof e=="symbol"}:function(e){var t=w1("Symbol");return Ji(t)&&e_(t.prototype,PCn(e))},DCn=bn.String,xM=function(e){try{return DCn(e)}catch{return"Object"}},RCn=bn.TypeError,k0=function(e){if(Ji(e))return e;throw RCn(xM(e)+" is not a function")},n_=function(e,t){var n=e[t];return n==null?void 0:k0(n)},$Cn=bn.TypeError,MCn=Object.defineProperty,BJ=function(e,t){try{MCn(bn,e,{value:t,configurable:!0,writable:!0})}catch{bn[e]=t}return t},Jv=bn["__core-js_shared__"]||BJ("__core-js_shared__",{}),FJ=$J(function(e){(e.exports=function(t,n){return Jv[t]||(Jv[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),LCn=bn.Object,NJ=function(e){return LCn(JE(e))},BCn=Gr({}.hasOwnProperty),Za=Object.hasOwn||function(e,t){return BCn(NJ(e),t)},FCn=0,NCn=Math.random(),VCn=Gr(1 .toString),VJ=function(e){return"Symbol("+(e===void 0?"":e)+")_"+VCn(++FCn+NCn,36)},$I=FJ("wks"),Wb=bn.Symbol,Eve=Wb&&Wb.for,jCn=LJ?Wb:Wb&&Wb.withoutSetter||VJ,Da=function(e){if(!Za($I,e)||!lQ&&typeof $I[e]!="string"){var t="Symbol."+e;lQ&&Za(Wb,e)?$I[e]=Wb[e]:$I[e]=LJ&&Eve?Eve(t):jCn(t)}return $I[e]},WCn=bn.TypeError,HCn=Da("toPrimitive"),jJ=function(e){var t=function(n,r){if(!wo(n)||Lj(n))return n;var i,o=n_(n,HCn);if(o){if(i=Vi(o,n,r),!wo(i)||Lj(i))return i;throw WCn("Can't convert object to primitive value")}return function(a,s){var l,u;if(Ji(l=a.toString)&&!wo(u=Vi(l,a))||Ji(l=a.valueOf)&&!wo(u=Vi(l,a))||s!=="string")return u;throw $Cn("Can't convert object to primitive value")}(n,r)}(e,"string");return Lj(t)?t:t+""},uQ=bn.document,zCn=wo(uQ)&&wo(uQ.createElement),r_=function(e){return zCn?uQ.createElement(e):{}},DRe=!Up&&!Oo(function(){return Object.defineProperty(r_("div"),"a",{get:function(){return 7}}).a!=7}),_ve=Object.getOwnPropertyDescriptor,WJ={f:Up?_ve:function(e,t){if(e=j0(e),t=jJ(t),DRe)try{return _ve(e,t)}catch{}if(Za(e,t))return u9(!Vi(SCn.f,e,t),e[t])}},ZCn=bn.String,GCn=bn.TypeError,As=function(e){if(wo(e))return e;throw GCn(ZCn(e)+" is not an object")},QCn=bn.TypeError,Tve=Object.defineProperty,Bg={f:Up?Tve:function(e,t,n){if(As(e),t=jJ(t),As(n),DRe)try{return Tve(e,t,n)}catch{}if("get"in n||"set"in n)throw QCn("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Lp=Up?function(e,t,n){return Bg.f(e,t,u9(1,n))}:function(e,t,n){return e[t]=n,e},UCn=Gr(Function.toString);Ji(Jv.inspectSource)||(Jv.inspectSource=function(e){return UCn(e)});var SM,g2,AM,c9=Jv.inspectSource,Pve=bn.WeakMap,RRe=Ji(Pve)&&/native code/.test(c9(Pve)),Dve=FJ("keys"),HJ=function(e){return Dve[e]||(Dve[e]=VJ(e))},d9={},cQ=bn.TypeError,XCn=bn.WeakMap;if(RRe||Jv.state){var Ly=Jv.state||(Jv.state=new XCn),YCn=Gr(Ly.get),Rve=Gr(Ly.has),KCn=Gr(Ly.set);SM=function(e,t){if(Rve(Ly,e))throw new cQ("Object already initialized");return t.facade=e,KCn(Ly,e,t),t},g2=function(e){return YCn(Ly,e)||{}},AM=function(e){return Rve(Ly,e)}}else{var sC=HJ("state");d9[sC]=!0,SM=function(e,t){if(Za(e,sC))throw new cQ("Object already initialized");return t.facade=e,Lp(e,sC,t),t},g2=function(e){return Za(e,sC)?e[sC]:{}},AM=function(e){return Za(e,sC)}}var dc={set:SM,get:g2,has:AM,enforce:function(e){return AM(e)?g2(e):SM(e,{})},getterFor:function(e){return function(t){var n;if(!wo(t)||(n=g2(t)).type!==e)throw cQ("Incompatible receiver, "+e+" required");return n}}},$Re=Function.prototype,qCn=Up&&Object.getOwnPropertyDescriptor,Bj=Za($Re,"name"),IT={EXISTS:Bj,PROPER:Bj&&(function(){}).name==="something",CONFIGURABLE:Bj&&(!Up||Up&&qCn($Re,"name").configurable)},vd=$J(function(e){var t=IT.CONFIGURABLE,n=dc.get,r=dc.enforce,i=String(String).split("String");(e.exports=function(o,a,s,l){var u,c=!!l&&!!l.unsafe,d=!!l&&!!l.enumerable,h=!!l&&!!l.noTargetGet,f=l&&l.name!==void 0?l.name:a;Ji(s)&&(String(f).slice(0,7)==="Symbol("&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Za(s,"name")||t&&s.name!==f)&&Lp(s,"name",f),(u=r(s)).source||(u.source=i.join(typeof f=="string"?f:""))),o!==bn?(c?!h&&o[a]&&(d=!0):delete o[a],d?o[a]=s:Lp(o,a,s)):d?o[a]=s:BJ(a,s)})(Function.prototype,"toString",function(){return Ji(this)&&n(this).source||c9(this)})}),JCn=Math.ceil,eOn=Math.floor,zJ=function(e){var t=+e;return t!=t||t===0?0:(t>0?eOn:JCn)(t)},tOn=Math.max,nOn=Math.min,i_=function(e,t){var n=zJ(e);return n<0?tOn(n+t,0):nOn(n,t)},rOn=Math.min,MRe=function(e){return e>0?rOn(zJ(e),9007199254740991):0},kT=function(e){return MRe(e.length)},iOn=function(e){return function(t,n,r){for(var i=j0(t),o=kT(i),a=i_(r,o);o>a;a++)if(a in i&&i[a]===n)return a||0;return-1}},oOn=iOn(),$ve=Gr([].push),LRe=function(e,t){var n,r=j0(e),i=0,o=[];for(n in r)!Za(d9,n)&&Za(r,n)&&$ve(o,n);for(;t.length>i;)Za(r,n=t[i++])&&(~oOn(o,n)||$ve(o,n));return o},IM=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],aOn=IM.concat("length","prototype"),kM={f:Object.getOwnPropertyNames||function(e){return LRe(e,aOn)}},sOn={f:Object.getOwnPropertySymbols},lOn=Gr([].concat),uOn=w1("Reflect","ownKeys")||function(e){var t=kM.f(As(e)),n=sOn.f;return n?lOn(t,n(e)):t},cOn=function(e,t){for(var n=uOn(t),r=Bg.f,i=WJ.f,o=0;o<n.length;o++){var a=n[o];Za(e,a)||r(e,a,i(t,a))}},dOn=/#|\.prototype\./,ET=function(e,t){var n=pOn[hOn(e)];return n==gOn||n!=fOn&&(Ji(t)?Oo(t):!!t)},hOn=ET.normalize=function(e){return String(e).replace(dOn,".").toLowerCase()},pOn=ET.data={},fOn=ET.NATIVE="N",gOn=ET.POLYFILL="P",EM=ET,mOn=WJ.f,Ap=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?bn:u?bn[s]||BJ(s,{}):(bn[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=mOn(n,r))&&a.value:n[r],!EM(l?r:s+(u?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;cOn(o,i)}(e.sham||i&&i.sham)&&Lp(o,"sham",!0),vd(n,r,o,e)}},_M=Array.isArray||function(e){return oh(e)=="Array"},BRe={};BRe[Da("toStringTag")]="z";var ZJ=String(BRe)==="[object z]",vOn=Da("toStringTag"),yOn=bn.Object,bOn=oh(function(){return arguments}())=="Arguments",h9=ZJ?oh:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=yOn(e),vOn))=="string"?n:bOn?oh(t):(r=oh(t))=="Object"&&Ji(t.callee)?"Arguments":r},FRe=function(){},wOn=[],NRe=w1("Reflect","construct"),GJ=/^\s*(?:class|function)\b/,COn=Gr(GJ.exec),OOn=!GJ.exec(FRe),MI=function(e){if(!Ji(e))return!1;try{return NRe(FRe,wOn,e),!0}catch{return!1}},QJ=!NRe||Oo(function(){var e;return MI(MI.call)||!MI(Object)||!MI(function(){e=!0})||e})?function(e){if(!Ji(e))return!1;switch(h9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return OOn||!!COn(GJ,c9(e))}:MI,VRe=function(e,t,n){var r=jJ(t);r in e?Bg.f(e,r,u9(0,n)):e[r]=n},xOn=Da("species"),jRe=Gr([].slice),SOn=t_>=51||!Oo(function(){var e=[];return(e.constructor={})[xOn]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),AOn=Da("species"),Fj=bn.Array,IOn=Math.max;Ap({target:"Array",proto:!0,forced:!SOn},{slice:function(e,t){var n,r,i,o=j0(this),a=kT(o),s=i_(e,a),l=i_(t===void 0?a:t,a);if(_M(o)&&(n=o.constructor,(QJ(n)&&(n===Fj||_M(n.prototype))||wo(n)&&(n=n[AOn])===null)&&(n=void 0),n===Fj||n===void 0))return jRe(o,s,l);for(r=new(n===void 0?Fj:n)(IOn(l-s,0)),i=0;s<l;s++,i++)s in o&&VRe(r,i,o[s]);return r.length=i,r}});var kOn=ZJ?{}.toString:function(){return"[object "+h9(this)+"]"};ZJ||vd(Object.prototype,"toString",kOn,{unsafe:!0});var HR,EOn=bn.String,e0=function(e){if(h9(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return EOn(e)},WRe=function(){var e=As(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},UJ=bn.RegExp,dQ=Oo(function(){var e=UJ("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),_On=dQ||Oo(function(){return!UJ("a","y").sticky}),HRe={BROKEN_CARET:dQ||Oo(function(){var e=UJ("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:_On,UNSUPPORTED_Y:dQ},TOn=Object.keys||function(e){return LRe(e,IM)},POn=Up?Object.defineProperties:function(e,t){As(e);for(var n,r=j0(t),i=TOn(t),o=i.length,a=0;o>a;)Bg.f(e,n=i[a++],r[n]);return e},hQ=w1("document","documentElement"),zRe=HJ("IE_PROTO"),Nj=function(){},ZRe=function(e){return"<script>"+e+"<\/script>"},Mve=function(e){e.write(ZRe("")),e.close();var t=e.parentWindow.Object;return e=null,t},A$=function(){try{HR=new ActiveXObject("htmlfile")}catch{}var e,t;A$=typeof document<"u"?document.domain&&HR?Mve(HR):((t=r_("iframe")).style.display="none",hQ.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(ZRe("document.F=Object")),e.close(),e.F):Mve(HR);for(var n=IM.length;n--;)delete A$.prototype[IM[n]];return A$()};d9[zRe]=!0;var Lve,Vj,XJ=Object.create||function(e,t){var n;return e!==null?(Nj.prototype=As(e),n=new Nj,Nj.prototype=null,n[zRe]=e):n=A$(),t===void 0?n:POn(n,t)},DOn=bn.RegExp,ROn=Oo(function(){var e=DOn(".","s");return!(e.dotAll&&e.exec(`
|
|
`)&&e.flags==="s")}),$On=bn.RegExp,MOn=Oo(function(){var e=$On("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),LOn=dc.get,BOn=FJ("native-string-replace",String.prototype.replace),TM=RegExp.prototype.exec,pQ=TM,FOn=Gr("".charAt),NOn=Gr("".indexOf),VOn=Gr("".replace),jj=Gr("".slice),Wj=(Vj=/b*/g,Vi(TM,Lve=/a/,"a"),Vi(TM,Vj,"a"),Lve.lastIndex!==0||Vj.lastIndex!==0),Bve=HRe.BROKEN_CARET,Hj=/()??/.exec("")[1]!==void 0;(Wj||Hj||Bve||ROn||MOn)&&(pQ=function(e){var t,n,r,i,o,a,s,l=this,u=LOn(l),c=e0(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Vi(pQ,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=Bve&&l.sticky,g=Vi(WRe,l),b=l.source,v=0,m=c;if(f&&(g=VOn(g,"y",""),NOn(g,"g")===-1&&(g+="g"),m=jj(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&FOn(c,l.lastIndex-1)!==`
|
|
`)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),Hj&&(n=new RegExp("^"+b+"$(?!\\s)",g)),Wj&&(r=l.lastIndex),i=Vi(TM,f?n:l,m),f?i?(i.input=jj(i.input,v),i[0]=jj(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:Wj&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),Hj&&i&&i.length>1&&Vi(BOn,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=XJ(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var o_=pQ;Ap({target:"RegExp",proto:!0,forced:/./.exec!==o_},{exec:o_});var YJ=Function.prototype,Fve=YJ.apply,jOn=YJ.bind,Nve=YJ.call,GRe=typeof Reflect=="object"&&Reflect.apply||(jOn?Nve.bind(Fve):function(){return Nve.apply(Fve,arguments)}),WOn=Da("species"),zj=RegExp.prototype,HOn=Da("match"),zOn=bn.TypeError,ZOn=Da("species"),QRe=function(e,t){var n,r=As(e).constructor;return r===void 0||(n=As(r)[ZOn])==null?t:function(i){if(QJ(i))return i;throw zOn(xM(i)+" is not a constructor")}(n)},GOn=Gr("".charAt),Vve=Gr("".charCodeAt),QOn=Gr("".slice),jve=function(e){return function(t,n){var r,i,o=e0(JE(t)),a=zJ(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=Vve(o,a))<55296||r>56319||a+1===s||(i=Vve(o,a+1))<56320||i>57343?e?GOn(o,a):r:e?QOn(o,a,a+2):i-56320+(r-55296<<10)+65536}},URe={codeAt:jve(!1),charAt:jve(!0)},UOn=URe.charAt,XOn=function(e,t,n){return t+(n?UOn(e,t).length:1)},YOn=bn.Array,KOn=Math.max,fQ=function(e,t,n){for(var r=kT(e),i=i_(t,r),o=i_(n===void 0?r:n,r),a=YOn(KOn(o-i,0)),s=0;i<o;i++,s++)VRe(a,s,e[i]);return a.length=s,a},qOn=bn.TypeError,Wve=function(e,t){var n=e.exec;if(Ji(n)){var r=Vi(n,e,t);return r!==null&&As(r),r}if(oh(e)==="RegExp")return Vi(o_,e,t);throw qOn("RegExp#exec called on incompatible receiver")},lC=HRe.UNSUPPORTED_Y,JOn=Math.min,XRe=[].push,exn=Gr(/./.exec),uC=Gr(XRe),LI=Gr("".slice);(function(e,t,n,r){var i=Da(e),o=!Oo(function(){var u={};return u[i]=function(){return 7},""[e](u)!=7}),a=o&&!Oo(function(){var u=!1,c=/a/;return(c={}).constructor={},c.constructor[WOn]=function(){return c},c.flags="",c[i]=/./[i],c.exec=function(){return u=!0,null},c[i](""),!u});if(!o||!a||n){var s=Gr(/./[i]),l=function(u,c,d){var h;return h="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(f,g){var b,v,m=e0(JE(this)),w=g===void 0?4294967295:g>>>0;if(w===0)return[];if(f===void 0)return[m];if(!wo(b=f)||!((v=b[HOn])!==void 0?v:oh(b)=="RegExp"))return Vi(c,m,f,w);for(var k,T,S,I=[],O=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(f.sticky?"y":""),y=0,_=new RegExp(f.source,O+"g");(k=Vi(o_,_,m))&&!((T=_.lastIndex)>y&&(uC(I,LI(m,y,k.index)),k.length>1&&k.index<m.length&&GRe(XRe,I,fQ(k,1)),S=k[0].length,y=T,I.length>=w));)_.lastIndex===k.index&&_.lastIndex++;return y===m.length?!S&&exn(_,"")||uC(I,""):uC(I,LI(m,y)),I.length>w?fQ(I,0,w):I}:"0".split(void 0,0).length?function(f,g){return f===void 0&&g===0?[]:Vi(c,this,f,g)}:c,[function(f,g){var b=JE(this),v=f==null?void 0:n_(f,u);return v?Vi(v,f,b,g):Vi(h,e0(b),f,g)},function(f,g){var b=As(this),v=e0(f),m=d(h,b,v,g,h!==c);if(m.done)return m.value;var w=QRe(b,RegExp),k=b.unicode,T=(b.ignoreCase?"i":"")+(b.multiline?"m":"")+(b.unicode?"u":"")+(lC?"g":"y"),S=new w(lC?"^(?:"+b.source+")":b,T),I=g===void 0?4294967295:g>>>0;if(I===0)return[];if(v.length===0)return Wve(S,v)===null?[v]:[];for(var O=0,y=0,_=[];y<v.length;){S.lastIndex=lC?0:y;var A,R=Wve(S,lC?LI(v,y):v);if(R===null||(A=JOn(MRe(S.lastIndex+(lC?y:0)),v.length))===O)y=XOn(v,y,k);else{if(uC(_,LI(v,O,y)),_.length===I)return _;for(var D=1;D<=R.length-1;D++)if(uC(_,R[D]),_.length===I)return _;y=O=A}}return uC(_,LI(v,O)),_}]}(i,""[e],function(u,c,d,h,f){var g=Gr(u),b=c.exec;return b===o_||b===zj.exec?o&&!f?{done:!0,value:s(c,d,h)}:{done:!0,value:g(d,c,h)}:{done:!1}});vd(String.prototype,e,l[0]),vd(zj,i,l[1])}r&&Lp(zj[i],"sham",!0)})("split",0,!!Oo(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),lC);/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var PM=function(){return PM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},PM.apply(this,arguments)};function KJ(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(u){try{l(r.next(u))}catch(c){o(c)}}function s(u){try{l(r.throw(u))}catch(c){o(c)}}function l(u){var c;u.done?i(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(a,s)}l((r=r.apply(e,[])).next())})}function qJ(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(d){c=[6,d],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function txn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(i){var o=typeof Symbol=="function"&&Symbol.iterator,a=o&&i[o],s=0;if(a)return a.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(o){return new Promise(function(a,s){(function(l,u,c,d){Promise.resolve(d).then(function(h){l({value:h,done:c})},u)})(a,s,(o=e[i](o)).done,o.value)})}}}var gQ=Da("unscopables"),mQ=Array.prototype;mQ[gQ]==null&&Bg.f(mQ,gQ,{configurable:!0,value:XJ(null)});var Hb,Hve,zve,Zj=function(e){mQ[gQ][e]=!0},gx={},nxn=!Oo(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Zve=HJ("IE_PROTO"),vQ=bn.Object,rxn=vQ.prototype,DM=nxn?vQ.getPrototypeOf:function(e){var t=NJ(e);if(Za(t,Zve))return t[Zve];var n=t.constructor;return Ji(n)&&t instanceof n?n.prototype:t instanceof vQ?rxn:null},yQ=Da("iterator"),YRe=!1;[].keys&&("next"in(zve=[].keys())?(Hve=DM(DM(zve)))!==Object.prototype&&(Hb=Hve):YRe=!0);var ixn=Hb==null||Oo(function(){var e={};return Hb[yQ].call(e)!==e});ixn&&(Hb={}),Ji(Hb[yQ])||vd(Hb,yQ,function(){return this});var JJ={IteratorPrototype:Hb,BUGGY_SAFARI_ITERATORS:YRe},oxn=Bg.f,Gve=Da("toStringTag"),RM=function(e,t,n){e&&!Za(e=n?e:e.prototype,Gve)&&oxn(e,Gve,{configurable:!0,value:t})},axn=JJ.IteratorPrototype,sxn=function(){return this},lxn=bn.String,uxn=bn.TypeError,mx=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Gr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return As(r),function(o){if(typeof o=="object"||Ji(o))return o;throw uxn("Can't set "+lxn(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),cxn=IT.PROPER,dxn=IT.CONFIGURABLE,Qve=JJ.IteratorPrototype,Gj=JJ.BUGGY_SAFARI_ITERATORS,BI=Da("iterator"),hxn=function(){return this},KRe=function(e,t,n,r,i,o,a){(function(v,m,w,k){var T=m+" Iterator";v.prototype=XJ(axn,{next:u9(1,w)}),RM(v,T,!1),gx[T]=sxn})(n,t,r);var s,l,u=function(v){if(v===i&&g)return g;if(!Gj&&v in h)return h[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,h=e.prototype,f=h[BI]||h["@@iterator"]||i&&h[i],g=!Gj&&f||u(i),b=t=="Array"&&h.entries||f;return b&&(s=DM(b.call(new e)))!==Object.prototype&&s.next&&(DM(s)!==Qve&&(mx?mx(s,Qve):Ji(s[BI])||vd(s,BI,hxn)),RM(s,c,!0)),cxn&&i=="values"&&f&&f.name!=="values"&&(dxn?Lp(h,"name","values"):(d=!0,g=function(){return Vi(f,this)})),i&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||Ap({target:t,proto:!0,forced:Gj||d},l)),h[BI]!==g&&vd(h,BI,g,{name:i}),gx[t]=g,l},pxn=dc.set,fxn=dc.getterFor("Array Iterator"),gk=KRe(Array,"Array",function(e,t){pxn(this,{type:"Array Iterator",target:j0(e),index:0,kind:t})},function(){var e=fxn(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");gx.Arguments=gx.Array,Zj("keys"),Zj("values"),Zj("entries");var gxn=URe.charAt,mxn=dc.set,vxn=dc.getterFor("String Iterator");KRe(String,"String",function(e){mxn(this,{type:"String Iterator",string:e0(e),index:0})},function(){var e,t=vxn(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=gxn(n,r),t.index+=e.length,{value:e,done:!1})});var $M=function(e,t,n){for(var r in t)vd(e,r,t[r],n);return e},Uve=kM.f,Xve=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yxn={f:function(e){return Xve&&oh(e)=="Window"?function(t){try{return Uve(t)}catch{return fQ(Xve)}}(e):Uve(j0(e))}},Yve=Oo(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),zR=Object.isExtensible,mb=Oo(function(){zR(1)})||Yve?function(e){return!!wo(e)&&(!Yve||oh(e)!="ArrayBuffer")&&(!zR||zR(e))}:zR,bxn=!Oo(function(){return Object.isExtensible(Object.preventExtensions({}))}),eee=$J(function(e){var t=Bg.f,n=!1,r=VJ("meta"),i=0,o=function(s){t(s,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var s=kM.f,l=Gr([].splice),u={};u[r]=1,s(u).length&&(kM.f=function(c){for(var d=s(c),h=0,f=d.length;h<f;h++)if(d[h]===r){l(d,h,1);break}return d},Ap({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:yxn.f}))},fastKey:function(s,l){if(!wo(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Za(s,r)){if(!mb(s))return"F";if(!l)return"E";o(s)}return s[r].objectID},getWeakData:function(s,l){if(!Za(s,r)){if(!mb(s))return!0;if(!l)return!1;o(s)}return s[r].weakData},onFreeze:function(s){return bxn&&n&&mb(s)&&!Za(s,r)&&o(s),s}};d9[r]=!0}),Kve=Gr(Gr.bind),a_=function(e,t){return k0(e),t===void 0?e:Kve?Kve(e,t):function(){return e.apply(t,arguments)}},wxn=Da("iterator"),Cxn=Array.prototype,Oxn=Da("iterator"),qve=function(e){if(e!=null)return n_(e,Oxn)||n_(e,"@@iterator")||gx[h9(e)]},xxn=bn.TypeError,Jve=function(e,t,n){var r,i;As(e);try{if(!(r=n_(e,"return"))){if(t==="throw")throw n;return n}r=Vi(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return As(r),n},Sxn=bn.TypeError,I$=function(e,t){this.stopped=e,this.result=t},e0e=I$.prototype,MM=function(e,t,n){var r,i,o,a,s,l,u,c,d=n&&n.that,h=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),b=a_(t,d),v=function(w){return r&&Jve(r,"normal",w),new I$(!0,w)},m=function(w){return h?(As(w),g?b(w[0],w[1],v):b(w[0],w[1])):g?b(w,v):b(w)};if(f)r=e;else{if(!(i=qve(e)))throw Sxn(xM(e)+" is not iterable");if((c=i)!==void 0&&(gx.Array===c||Cxn[wxn]===c)){for(o=0,a=kT(e);a>o;o++)if((s=m(e[o]))&&e_(e0e,s))return s;return new I$(!1)}r=function(w,k){var T=arguments.length<2?qve(w):k;if(k0(T))return As(Vi(T,w));throw xxn(xM(w)+" is not iterable")}(e,i)}for(l=r.next;!(u=Vi(l,r)).done;){try{s=m(u.value)}catch(w){Jve(r,"throw",w)}if(typeof s=="object"&&s&&e_(e0e,s))return s}return new I$(!1)},Axn=bn.TypeError,tee=function(e,t){if(e_(t,e))return e;throw Axn("Incorrect invocation")},qRe=Da("iterator"),JRe=!1;try{var Ixn=0,t0e={next:function(){return{done:!!Ixn++}},return:function(){JRe=!0}};t0e[qRe]=function(){return this},Array.from(t0e,function(){throw 2})}catch{}var e3e=function(e,t){if(!JRe)return!1;var n=!1;try{var r={};r[qRe]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},kxn=Da("species"),n0e=bn.Array,Exn=function(e,t){return new(function(n){var r;return _M(n)&&(r=n.constructor,(QJ(r)&&(r===n0e||_M(r.prototype))||wo(r)&&(r=r[kxn])===null)&&(r=void 0)),r===void 0?n0e:r}(e))(t===0?0:t)},r0e=Gr([].push),Zm=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,u,c,d){for(var h,f,g=NJ(l),b=MJ(g),v=a_(u,c),m=kT(b),w=0,k=d||Exn,T=t?k(l,m):n||a?k(l,0):void 0;m>w;w++)if((s||w in b)&&(f=v(h=b[w],w,g),e))if(t)T[w]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:r0e(T,h)}else switch(e){case 4:return!1;case 7:r0e(T,h)}return o?-1:r||i?i:T}},nee={forEach:Zm(0),map:Zm(1),filter:Zm(2),some:Zm(3),every:Zm(4),find:Zm(5),findIndex:Zm(6),filterReject:Zm(7)},ZR=eee.getWeakData,_xn=dc.set,Txn=dc.getterFor,Pxn=nee.find,Dxn=nee.findIndex,Rxn=Gr([].splice),$xn=0,GR=function(e){return e.frozen||(e.frozen=new t3e)},t3e=function(){this.entries=[]},Qj=function(e,t){return Pxn(e.entries,function(n){return n[0]===t})};t3e.prototype={get:function(e){var t=Qj(this,e);if(t)return t[1]},has:function(e){return!!Qj(this,e)},set:function(e,t){var n=Qj(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Dxn(this.entries,function(n){return n[0]===e});return~t&&Rxn(this.entries,t,1),!!~t}};var FI,n3e={getConstructor:function(e,t,n,r){var i=e(function(l,u){tee(l,o),_xn(l,{type:t,id:$xn++,frozen:void 0}),u!=null&&MM(u,l[r],{that:l,AS_ENTRIES:n})}),o=i.prototype,a=Txn(t),s=function(l,u,c){var d=a(l),h=ZR(As(u),!0);return h===!0?GR(d).set(u,c):h[d.id]=c,l};return $M(o,{delete:function(l){var u=a(this);if(!wo(l))return!1;var c=ZR(l);return c===!0?GR(u).delete(l):c&&Za(c,u.id)&&delete c[u.id]},has:function(l){var u=a(this);if(!wo(l))return!1;var c=ZR(l);return c===!0?GR(u).has(l):c&&Za(c,u.id)}}),$M(o,n?{get:function(l){var u=a(this);if(wo(l)){var c=ZR(l);return c===!0?GR(u).get(l):c?c[u.id]:void 0}},set:function(l,u){return s(this,l,u)}}:{add:function(l){return s(this,l,!0)}}),i}},QR=dc.enforce,Mxn=!bn.ActiveXObject&&"ActiveXObject"in bn,r3e=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Lxn=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=bn[e],s=a&&a.prototype,l=a,u={},c=function(v){var m=Gr(s[v]);vd(s,v,v=="add"?function(w){return m(this,w===0?0:w),this}:v=="delete"?function(w){return!(i&&!wo(w))&&m(this,w===0?0:w)}:v=="get"?function(w){return i&&!wo(w)?void 0:m(this,w===0?0:w)}:v=="has"?function(w){return!(i&&!wo(w))&&m(this,w===0?0:w)}:function(w,k){return m(this,w===0?0:w,k),this})};if(EM(e,!Ji(a)||!(i||s.forEach&&!Oo(function(){new a().entries().next()}))))l=n.getConstructor(t,e,r,o),eee.enable();else if(EM(e,!0)){var d=new l,h=d[o](i?{}:-0,1)!=d,f=Oo(function(){d.has(1)}),g=e3e(function(v){new a(v)}),b=!i&&Oo(function(){for(var v=new a,m=5;m--;)v[o](m,m);return!v.has(-0)});g||((l=t(function(v,m){tee(v,s);var w=function(k,T,S){var I,O;return mx&&Ji(I=T.constructor)&&I!==S&&wo(O=I.prototype)&&O!==S.prototype&&mx(k,O),k}(new a,v,l);return m!=null&&MM(m,w[o],{that:w,AS_ENTRIES:r}),w})).prototype=s,s.constructor=l),(f||b)&&(c("delete"),c("has"),r&&c("get")),(b||h)&&c(o),i&&s.clear&&delete s.clear}return u[e]=l,Ap({global:!0,forced:l!=a},u),RM(l,e),i||n.setStrong(l,e,r),l}("WeakMap",r3e,n3e);if(RRe&&Mxn){FI=n3e.getConstructor(r3e,"WeakMap",!0),eee.enable();var NI=Lxn.prototype,i0e=Gr(NI.delete),UR=Gr(NI.has),o0e=Gr(NI.get),a0e=Gr(NI.set);$M(NI,{delete:function(e){if(wo(e)&&!mb(e)){var t=QR(this);return t.frozen||(t.frozen=new FI),i0e(this,e)||t.frozen.delete(e)}return i0e(this,e)},has:function(e){if(wo(e)&&!mb(e)){var t=QR(this);return t.frozen||(t.frozen=new FI),UR(this,e)||t.frozen.has(e)}return UR(this,e)},get:function(e){if(wo(e)&&!mb(e)){var t=QR(this);return t.frozen||(t.frozen=new FI),UR(this,e)?o0e(this,e):t.frozen.get(e)}return o0e(this,e)},set:function(e,t){if(wo(e)&&!mb(e)){var n=QR(this);n.frozen||(n.frozen=new FI),UR(this,e)?a0e(this,e,t):n.frozen.set(e,t)}else a0e(this,e,t);return this}})}var LM={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},Uj=r_("span").classList,s0e=Uj&&Uj.constructor&&Uj.constructor.prototype,i3e=s0e===Object.prototype?void 0:s0e,Xj=Da("iterator"),l0e=Da("toStringTag"),Yj=gk.values,o3e=function(e,t){if(e){if(e[Xj]!==Yj)try{Lp(e,Xj,Yj)}catch{e[Xj]=Yj}if(e[l0e]||Lp(e,l0e,t),LM[t]){for(var n in gk)if(e[n]!==gk[n])try{Lp(e,n,gk[n])}catch{e[n]=gk[n]}}}};for(var Kj in LM)o3e(bn[Kj]&&bn[Kj].prototype,Kj);o3e(i3e,"DOMTokenList");var a3e=function(e,t){var n=[][e];return!!n&&Oo(function(){n.call(null,t||function(){throw 1},1)})},Bxn=nee.forEach,qj=a3e("forEach")?[].forEach:function(e){return Bxn(this,e,arguments.length>1?arguments[1]:void 0)},s3e=function(e){if(e&&e.forEach!==qj)try{Lp(e,"forEach",qj)}catch{e.forEach=qj}};for(var Jj in LM)LM[Jj]&&s3e(bn[Jj]&&bn[Jj].prototype);s3e(i3e);var s_,cC,u0e,e7,BM=bn.Promise,c0e=Da("species"),l3e=/(?:ipad|iphone|ipod).*applewebkit/i.test(fO),t0=oh(bn.process)=="process",bQ=bn.setImmediate,wQ=bn.clearImmediate,Fxn=bn.process,t7=bn.Dispatch,Nxn=bn.Function,d0e=bn.MessageChannel,Vxn=bn.String,n7=0,m2={};try{s_=bn.location}catch{}var ree=function(e){if(Za(m2,e)){var t=m2[e];delete m2[e],t()}},r7=function(e){return function(){ree(e)}},h0e=function(e){ree(e.data)},p0e=function(e){bn.postMessage(Vxn(e),s_.protocol+"//"+s_.host)};bQ&&wQ||(bQ=function(e){var t=jRe(arguments,1);return m2[++n7]=function(){GRe(Ji(e)?e:Nxn(e),void 0,t)},cC(n7),n7},wQ=function(e){delete m2[e]},t0?cC=function(e){Fxn.nextTick(r7(e))}:t7&&t7.now?cC=function(e){t7.now(r7(e))}:d0e&&!l3e?(e7=(u0e=new d0e).port2,u0e.port1.onmessage=h0e,cC=a_(e7.postMessage,e7)):bn.addEventListener&&Ji(bn.postMessage)&&!bn.importScripts&&s_&&s_.protocol!=="file:"&&!Oo(p0e)?(cC=p0e,bn.addEventListener("message",h0e,!1)):cC="onreadystatechange"in r_("script")?function(e){hQ.appendChild(r_("script")).onreadystatechange=function(){hQ.removeChild(this),ree(e)}}:function(e){setTimeout(r7(e),0)});var VI,ib,v2,EC,i7,o7,a7,f0e,u3e={set:bQ,clear:wQ},jxn=/ipad|iphone|ipod/i.test(fO)&&bn.Pebble!==void 0,Wxn=/web0s(?!.*chrome)/i.test(fO),Hxn=WJ.f,s7=u3e.set,g0e=bn.MutationObserver||bn.WebKitMutationObserver,m0e=bn.document,v0e=bn.process,XR=bn.Promise,y0e=Hxn(bn,"queueMicrotask"),c3e=y0e&&y0e.value;c3e||(VI=function(){var e,t;for(t0&&(e=v0e.domain)&&e.exit();ib;){t=ib.fn,ib=ib.next;try{t()}catch(n){throw ib?EC():v2=void 0,n}}v2=void 0,e&&e.enter()},l3e||t0||Wxn||!g0e||!m0e?!jxn&&XR&&XR.resolve?((a7=XR.resolve(void 0)).constructor=XR,f0e=a_(a7.then,a7),EC=function(){f0e(VI)}):t0?EC=function(){v0e.nextTick(VI)}:(s7=a_(s7,bn),EC=function(){s7(VI)}):(i7=!0,o7=m0e.createTextNode(""),new g0e(VI).observe(o7,{characterData:!0}),EC=function(){o7.data=i7=!i7}));var l7,b0e,d3e,w0e,h3e=c3e||function(e){var t={fn:e,next:void 0};v2&&(v2.next=t),ib||(ib=t,EC()),v2=t},zxn=function(e){var t,n;this.promise=new e(function(r,i){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=i}),this.resolve=k0(t),this.reject=k0(n)},iee={f:function(e){return new zxn(e)}},CQ=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Zxn=typeof window=="object",p3e=u3e.set,Gxn=Da("species"),ng="Promise",C0e=dc.getterFor(ng),Qxn=dc.set,Uxn=dc.getterFor(ng),Qy=BM&&BM.prototype,Ip=BM,jI=Qy,f3e=bn.TypeError,OQ=bn.document,oee=bn.process,gO=iee.f,Xxn=gO,Yxn=!!(OQ&&OQ.createEvent&&bn.dispatchEvent),g3e=Ji(bn.PromiseRejectionEvent),m3e=!1,y2=EM(ng,function(){var e=c9(Ip),t=e!==String(Ip);if(!t&&t_===66)return!0;if(t_>=51&&/native code/.test(e))return!1;var n=new Ip(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[Gxn]=r,!(m3e=n.then(function(){})instanceof r)||!t&&Zxn&&!g3e}),Kxn=y2||!e3e(function(e){Ip.all(e).catch(function(){})}),v3e=function(e){var t;return!(!wo(e)||!Ji(t=e.then))&&t},aee=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;h3e(function(){for(var r=e.value,i=e.state==1,o=0;n.length>o;){var a,s,l,u=n[o++],c=i?u.ok:u.fail,d=u.resolve,h=u.reject,f=u.domain;try{c?(i||(e.rejection===2&&Jxn(e),e.rejection=1),c===!0?a=r:(f&&f.enter(),a=c(r),f&&(f.exit(),l=!0)),a===u.promise?h(f3e("Promise-chain cycle")):(s=v3e(a))?Vi(s,a,d,h):d(a)):h(r)}catch(g){f&&!l&&f.exit(),h(g)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&qxn(e)})}},y3e=function(e,t,n){var r,i;Yxn?((r=OQ.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),bn.dispatchEvent(r)):r={promise:t,reason:n},!g3e&&(i=bn["on"+e])?i(r):e==="unhandledrejection"&&function(o,a){var s=bn.console;s&&s.error&&(arguments.length==1?s.error(o):s.error(o,a))}("Unhandled promise rejection",n)},qxn=function(e){Vi(p3e,bn,function(){var t,n=e.facade,r=e.value;if(O0e(e)&&(t=CQ(function(){t0?oee.emit("unhandledRejection",r,n):y3e("unhandledrejection",n,r)}),e.rejection=t0||O0e(e)?2:1,t.error))throw t.value})},O0e=function(e){return e.rejection!==1&&!e.parent},Jxn=function(e){Vi(p3e,bn,function(){var t=e.facade;t0?oee.emit("rejectionHandled",t):y3e("rejectionhandled",t,e.value)})},VC=function(e,t,n){return function(r){e(t,r,n)}},mO=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,aee(e,!0))},xQ=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw f3e("Promise can't be resolved itself");var r=v3e(t);r?h3e(function(){var i={done:!1};try{Vi(r,t,VC(xQ,i,e),VC(mO,i,e))}catch(o){mO(i,o,e)}}):(e.value=t,e.state=1,aee(e,!1))}catch(i){mO({done:!1},i,e)}}};if(y2&&(jI=(Ip=function(e){tee(this,jI),k0(e),Vi(l7,this);var t=C0e(this);try{e(VC(xQ,t),VC(mO,t))}catch(n){mO(t,n)}}).prototype,(l7=function(e){Qxn(this,{type:ng,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=$M(jI,{then:function(e,t){var n=Uxn(this),r=n.reactions,i=gO(QRe(this,Ip));return i.ok=!Ji(e)||e,i.fail=Ji(t)&&t,i.domain=t0?oee.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&aee(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),b0e=function(){var e=new l7,t=C0e(e);this.promise=e,this.resolve=VC(xQ,t),this.reject=VC(mO,t)},iee.f=gO=function(e){return e===Ip||e===d3e?new b0e(e):Xxn(e)},Ji(BM)&&Qy!==Object.prototype)){w0e=Qy.then,m3e||(vd(Qy,"then",function(e,t){var n=this;return new Ip(function(r,i){Vi(w0e,n,r,i)}).then(e,t)},{unsafe:!0}),vd(Qy,"catch",jI.catch,{unsafe:!0}));try{delete Qy.constructor}catch{}mx&&mx(Qy,jI)}Ap({global:!0,wrap:!0,forced:y2},{Promise:Ip}),RM(Ip,ng,!1),function(e){var t=w1("Promise"),n=Bg.f;Up&&t&&!t[c0e]&&n(t,c0e,{configurable:!0,get:function(){return this}})}(),d3e=w1(ng),Ap({target:ng,stat:!0,forced:y2},{reject:function(e){var t=gO(this);return Vi(t.reject,void 0,e),t.promise}}),Ap({target:ng,stat:!0,forced:y2},{resolve:function(e){return function(t,n){if(As(t),wo(n)&&n.constructor===t)return n;var r=iee.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Ap({target:ng,stat:!0,forced:Kxn},{all:function(e){var t=this,n=gO(t),r=n.resolve,i=n.reject,o=CQ(function(){var a=k0(t.resolve),s=[],l=0,u=1;MM(e,function(c){var d=l++,h=!1;u++,Vi(a,t,c).then(function(f){h||(h=!0,s[d]=f,--u||r(s))},i)}),--u||r(s)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=gO(t),r=n.reject,i=CQ(function(){var o=k0(t.resolve);MM(e,function(a){Vi(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var eSn=IT.PROPER,SQ=RegExp.prototype,b3e=SQ.toString,tSn=Gr(WRe),nSn=Oo(function(){return b3e.call({source:"a",flags:"b"})!="/a/b"}),rSn=eSn&&b3e.name!="toString";(nSn||rSn)&&vd(RegExp.prototype,"toString",function(){var e=As(this),t=e0(e.source),n=e.flags;return"/"+t+"/"+e0(n===void 0&&e_(SQ,e)&&!("flags"in SQ)?tSn(e):n)},{unsafe:!0});var iSn=IT.EXISTS,oSn=Bg.f,w3e=Function.prototype,aSn=Gr(w3e.toString),C3e=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,sSn=Gr(C3e.exec);Up&&!iSn&&oSn(w3e,"name",{configurable:!0,get:function(){try{return sSn(C3e,aSn(this))[1]}catch{return""}}});var x0e=new WeakMap;function O3e(e){return e.getMenuConfig("uploadImage")}function lSn(e,t){return KJ(this,void 0,void 0,function(){return qJ(this,function(n){return[2,new Promise(function(r){var i=new FileReader;i.readAsDataURL(t),i.onload=function(){var o=i.result;if(o){var a=o.toString(),s=a.indexOf("data:image")===0?"":a;Db(e,a,t.name,s),r("ok")}}})]})})}function uSn(e,t){return KJ(this,void 0,void 0,function(){var n,r,i,o;return qJ(this,function(a){switch(a.label){case 0:return n=function(s){var l=x0e.get(s);if(l!=null)return l;var u=O3e(s),c=u.onSuccess,d=u.onProgress,h=u.onFailed,f=u.customInsert,g=u.onError;return l=tTe(PM(PM({},u),{onProgress:function(b){s.showProgressBar(b),d&&d(b)},onSuccess:function(b,v){if(f)return f(v,function(A,R,D){return Db(s,A,R,D)}),void c(b,v);var m=v.errno,w=m===void 0?1:m,k=v.data,T=k===void 0?{}:k;if(w===0){if(Array.isArray(T))T.forEach(function(A){var R=A.url,D=R===void 0?"":R,C=A.alt,x=C===void 0?"":C,P=A.href;Db(s,D,x,P===void 0?"":P)});else{var S=T.url,I=S===void 0?"":S,O=T.alt,y=O===void 0?"":O,_=T.href;Db(s,I,y,_===void 0?"":_)}c(b,v)}else h(b,v)},onError:function(b,v,m){g(b,v,m)}})),x0e.set(s,l),l}(e),r=t.name,i=t.type,o=t.size,n.addFile({name:r,type:i,size:o,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function x3e(e,t){var n,r;return KJ(this,void 0,void 0,function(){var i,o,a,s,l,u,c,d,h;return qJ(this,function(f){switch(f.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),o=O3e(e),a=o.customUpload,s=o.base64LimitSize,f.label=1;case 1:f.trys.push([1,11,12,17]),l=txn(i),f.label=2;case 2:return[4,l.next()];case 3:return(u=f.sent()).done?[3,10]:(c=u.value,d=c.size,s&&d<=s?[4,lSn(e,c)]:[3,5]);case 4:return f.sent(),[3,9];case 5:return a?[4,a(c,function(g,b,v){return Db(e,g,b,v)})]:[3,7];case 6:return f.sent(),[3,9];case 7:return[4,uSn(e,c)];case 8:f.sent(),f.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return h=f.sent(),n={error:h},[3,17];case 12:return f.trys.push([12,,15,16]),u&&!u.done&&(r=l.return)?[4,r.call(l)]:[3,14];case 13:f.sent(),f.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}})})}var cSn=Gr([].join),dSn=MJ!=Object,hSn=a3e("join",",");Ap({target:"Array",proto:!0,forced:dSn||!hSn},{join:function(e){return cSn(j0(this),e===void 0?",":e)}}),hd&&(ut.fn.append=hd),Zp&&(ut.fn.on=Zp),tx&&(ut.fn.remove=tx),zp&&(ut.fn.val=zp),Ice&&(ut.fn.click=Ice),KO&&(ut.fn.hide=KO);var pSn=function(){function e(){this.title=yn("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return jB(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),i=r.allowedFileTypes,o=i===void 0?[]:i,a=r.customBrowseAndUpload;if(a)a(function(c,d,h){return Db(t,c,d,h)});else{var s="";o.length>0&&(s='accept="'+o.join(", ")+'"');var l=ut("body"),u=ut('<input type="file" '+s+" multiple/>");u.hide(),l.append(u),u.click(),u.on("change",function(){var c=u[0].files;x3e(t,c)})}},e}(),fSn={menus:[{key:"uploadImage",factory:function(){return new pSn},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(jB(n))t(r);else if(r.getData("text/plain"))t(r);else{var i=r.files;i.length<=0?t(r):Array.prototype.slice.call(i).some(function(o){return function(a,s){var l=typeof Symbol=="function"&&a[Symbol.iterator];if(!l)return a;var u,c,d=l.call(a),h=[];try{for(;(s===void 0||s-- >0)&&!(u=d.next()).done;)h.push(u.value)}catch(f){c={error:f}}finally{try{u&&!u.done&&(l=d.return)&&l.call(d)}finally{if(c)throw c.error}}return h}(o.type.split("/"),1)[0]==="image"})?x3e(e,i):t(r)}},n}};vu("en",{highLightModule:{selectLang:"Language"}}),vu("zh-CN",{highLightModule:{selectLang:"选择语言"}});var FM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function see(e){var t={exports:{}};return e(t,t.exports),t.exports}var Gm,k$,YR=function(e){return e&&e.Math==Math&&e},Jr=YR(typeof globalThis=="object"&&globalThis)||YR(typeof window=="object"&&window)||YR(typeof self=="object"&&self)||YR(typeof FM=="object"&&FM)||function(){return this}()||Function("return this")(),gSn=Object.defineProperty,lee=function(e,t){try{gSn(Jr,e,{value:t,configurable:!0,writable:!0})}catch{Jr[e]=t}return t},n0=Jr["__core-js_shared__"]||lee("__core-js_shared__",{}),uee=see(function(e){(e.exports=function(t,n){return n0[t]||(n0[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),S3e=Function.prototype,AQ=S3e.bind,IQ=S3e.call,mSn=AQ&&AQ.bind(IQ),$i=AQ?function(e){return e&&mSn(IQ,e)}:function(e){return e&&function(){return IQ.apply(e,arguments)}},vSn=Jr.TypeError,vx=function(e){if(e==null)throw vSn("Can't call method on "+e);return e},ySn=Jr.Object,cee=function(e){return ySn(vx(e))},bSn=$i({}.hasOwnProperty),rd=Object.hasOwn||function(e,t){return bSn(cee(e),t)},wSn=0,CSn=Math.random(),OSn=$i(1 .toString),A3e=function(e){return"Symbol("+(e===void 0?"":e)+")_"+OSn(++wSn+CSn,36)},Nl=function(e){return typeof e=="function"},xSn=function(e){return Nl(e)?e:void 0},_T=function(e,t){return arguments.length<2?xSn(Jr[e]):Jr[e]&&Jr[e][t]},u7=_T("navigator","userAgent")||"",S0e=Jr.process,A0e=Jr.Deno,I0e=S0e&&S0e.versions||A0e&&A0e.version,k0e=I0e&&I0e.v8;k0e&&(k$=(Gm=k0e.split("."))[0]>0&&Gm[0]<4?1:+(Gm[0]+Gm[1])),!k$&&u7&&(!(Gm=u7.match(/Edge\/(\d+)/))||Gm[1]>=74)&&(Gm=u7.match(/Chrome\/(\d+)/))&&(k$=+Gm[1]);var E0e=k$,Os=function(e){try{return!!e()}catch{return!0}},kQ=!!Object.getOwnPropertySymbols&&!Os(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&E0e&&E0e<41}),dee=kQ&&!Symbol.sham&&typeof Symbol.iterator=="symbol",WI=uee("wks"),zb=Jr.Symbol,_0e=zb&&zb.for,SSn=dee?zb:zb&&zb.withoutSetter||A3e,W0=function(e){if(!rd(WI,e)||!kQ&&typeof WI[e]!="string"){var t="Symbol."+e;kQ&&rd(zb,e)?WI[e]=zb[e]:WI[e]=dee&&_0e?_0e(t):SSn(t)}return WI[e]},I3e={};I3e[W0("toStringTag")]="z";var hee=String(I3e)==="[object z]",Xp=!Os(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),kp=function(e){return typeof e=="object"?e!==null:Nl(e)},EQ=Jr.document,ASn=kp(EQ)&&kp(EQ.createElement),pee=function(e){return ASn?EQ.createElement(e):{}},k3e=!Xp&&!Os(function(){return Object.defineProperty(pee("div"),"a",{get:function(){return 7}}).a!=7}),ISn=Jr.String,kSn=Jr.TypeError,ah=function(e){if(kp(e))return e;throw kSn(ISn(e)+" is not an object")},HI=Function.prototype.call,bs=HI.bind?HI.bind(HI):function(){return HI.apply(HI,arguments)},E3e=$i({}.isPrototypeOf),ESn=Jr.Object,c7=dee?function(e){return typeof e=="symbol"}:function(e){var t=_T("Symbol");return Nl(t)&&E3e(t.prototype,ESn(e))},_Sn=Jr.String,_3e=function(e){try{return _Sn(e)}catch{return"Object"}},TSn=Jr.TypeError,T3e=function(e){if(Nl(e))return e;throw TSn(_3e(e)+" is not a function")},P3e=function(e,t){var n=e[t];return n==null?void 0:T3e(n)},PSn=Jr.TypeError,DSn=Jr.TypeError,RSn=W0("toPrimitive"),fee=function(e){var t=function(n,r){if(!kp(n)||c7(n))return n;var i,o=P3e(n,RSn);if(o){if(i=bs(o,n,r),!kp(i)||c7(i))return i;throw DSn("Can't convert object to primitive value")}return function(a,s){var l,u;if(Nl(l=a.toString)&&!kp(u=bs(l,a))||Nl(l=a.valueOf)&&!kp(u=bs(l,a))||s!=="string")return u;throw PSn("Can't convert object to primitive value")}(n,r)}(e,"string");return c7(t)?t:t+""},$Sn=Jr.TypeError,T0e=Object.defineProperty,p9={f:Xp?T0e:function(e,t,n){if(ah(e),t=fee(t),ah(n),k3e)try{return T0e(e,t,n)}catch{}if("get"in n||"set"in n)throw $Sn("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},gee=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},yx=Xp?function(e,t,n){return p9.f(e,t,gee(1,n))}:function(e,t,n){return e[t]=n,e},MSn=$i(Function.toString);Nl(n0.inspectSource)||(n0.inspectSource=function(e){return MSn(e)});var NM,b2,VM,mee=n0.inspectSource,P0e=Jr.WeakMap,LSn=Nl(P0e)&&/native code/.test(mee(P0e)),D0e=uee("keys"),D3e=function(e){return D0e[e]||(D0e[e]=A3e(e))},vee={},_Q=Jr.TypeError,BSn=Jr.WeakMap;if(LSn||n0.state){var By=n0.state||(n0.state=new BSn),FSn=$i(By.get),R0e=$i(By.has),NSn=$i(By.set);NM=function(e,t){if(R0e(By,e))throw new _Q("Object already initialized");return t.facade=e,NSn(By,e,t),t},b2=function(e){return FSn(By,e)||{}},VM=function(e){return R0e(By,e)}}else{var dC=D3e("state");vee[dC]=!0,NM=function(e,t){if(rd(e,dC))throw new _Q("Object already initialized");return t.facade=e,yx(e,dC,t),t},b2=function(e){return rd(e,dC)?e[dC]:{}},VM=function(e){return rd(e,dC)}}var TQ={set:NM,get:b2,has:VM,enforce:function(e){return VM(e)?b2(e):NM(e,{})},getterFor:function(e){return function(t){var n;if(!kp(t)||(n=b2(t)).type!==e)throw _Q("Incompatible receiver, "+e+" required");return n}}},R3e=Function.prototype,VSn=Xp&&Object.getOwnPropertyDescriptor,d7=rd(R3e,"name"),$3e={EXISTS:d7,PROPER:d7&&(function(){}).name==="something",CONFIGURABLE:d7&&(!Xp||Xp&&VSn(R3e,"name").configurable)},l_=see(function(e){var t=$3e.CONFIGURABLE,n=TQ.get,r=TQ.enforce,i=String(String).split("String");(e.exports=function(o,a,s,l){var u,c=!!l&&!!l.unsafe,d=!!l&&!!l.enumerable,h=!!l&&!!l.noTargetGet,f=l&&l.name!==void 0?l.name:a;Nl(s)&&(String(f).slice(0,7)==="Symbol("&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!rd(s,"name")||t&&s.name!==f)&&yx(s,"name",f),(u=r(s)).source||(u.source=i.join(typeof f=="string"?f:""))),o!==Jr?(c?!h&&o[a]&&(d=!0):delete o[a],d?o[a]=s:yx(o,a,s)):d?o[a]=s:lee(a,s)})(Function.prototype,"toString",function(){return Nl(this)&&n(this).source||mee(this)})}),jSn=$i({}.toString),WSn=$i("".slice),r0=function(e){return WSn(jSn(e),8,-1)},HSn=W0("toStringTag"),zSn=Jr.Object,ZSn=r0(function(){return arguments}())=="Arguments",yee=hee?r0:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=zSn(e),HSn))=="string"?n:ZSn?r0(t):(r=r0(t))=="Object"&&Nl(t.callee)?"Arguments":r},GSn=hee?{}.toString:function(){return"[object "+yee(this)+"]"};hee||l_(Object.prototype,"toString",GSn,{unsafe:!0});var $0e,M0e={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},h7=pee("span").classList,L0e=h7&&h7.constructor&&h7.constructor.prototype,QSn=L0e===Object.prototype?void 0:L0e,B0e=$i($i.bind),p7=Jr.Object,USn=$i("".split),bee=Os(function(){return!p7("z").propertyIsEnumerable(0)})?function(e){return r0(e)=="String"?USn(e,""):p7(e)}:p7,XSn=Math.ceil,YSn=Math.floor,wee=function(e){var t=+e;return t!=t||t===0?0:(t>0?YSn:XSn)(t)},KSn=Math.min,M3e=function(e){return e>0?KSn(wee(e),9007199254740991):0},Cee=function(e){return M3e(e.length)},F0e=Array.isArray||function(e){return r0(e)=="Array"},L3e=function(){},qSn=[],B3e=_T("Reflect","construct"),Oee=/^\s*(?:class|function)\b/,JSn=$i(Oee.exec),eAn=!Oee.exec(L3e),zI=function(e){if(!Nl(e))return!1;try{return B3e(L3e,qSn,e),!0}catch{return!1}},F3e=!B3e||Os(function(){var e;return zI(zI.call)||!zI(Object)||!zI(function(){e=!0})||e})?function(e){if(!Nl(e))return!1;switch(yee(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return eAn||!!JSn(Oee,mee(e))}:zI,tAn=W0("species"),N0e=Jr.Array,nAn=function(e,t){return new(function(n){var r;return F0e(n)&&(r=n.constructor,(F3e(r)&&(r===N0e||F0e(r.prototype))||kp(r)&&(r=r[tAn])===null)&&(r=void 0)),r===void 0?N0e:r}(e))(t===0?0:t)},V0e=$i([].push),Qm=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,u,c,d){for(var h,f,g=cee(l),b=bee(g),v=function(S,I){return T3e(S),I===void 0?S:B0e?B0e(S,I):function(){return S.apply(I,arguments)}}(u,c),m=Cee(b),w=0,k=d||nAn,T=t?k(l,m):n||a?k(l,0):void 0;m>w;w++)if((s||w in b)&&(f=v(h=b[w],w,g),e))if(t)T[w]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:V0e(T,h)}else switch(e){case 4:return!1;case 7:V0e(T,h)}return o?-1:r||i?i:T}},rAn=[Qm(0),Qm(1),Qm(2),Qm(3),Qm(4),Qm(5),Qm(6),Qm(7)][0],f7=($0e=[].forEach)&&Os(function(){$0e.call(null,function(){throw 1},1)})?[].forEach:function(e){return rAn(this,e,arguments.length>1?arguments[1]:void 0)},N3e=function(e){if(e&&e.forEach!==f7)try{yx(e,"forEach",f7)}catch{e.forEach=f7}};for(var g7 in M0e)M0e[g7]&&N3e(Jr[g7]&&Jr[g7].prototype);N3e(QSn);var j0e={}.propertyIsEnumerable,W0e=Object.getOwnPropertyDescriptor,V3e={f:W0e&&!j0e.call({1:2},1)?function(e){var t=W0e(this,e);return!!t&&t.enumerable}:j0e},f9=function(e){return bee(vx(e))},H0e=Object.getOwnPropertyDescriptor,j3e={f:Xp?H0e:function(e,t){if(e=f9(e),t=fee(t),k3e)try{return H0e(e,t)}catch{}if(rd(e,t))return gee(!bs(V3e.f,e,t),e[t])}},iAn=Math.max,oAn=Math.min,PQ=function(e,t){var n=wee(e);return n<0?iAn(n+t,0):oAn(n,t)},aAn=function(e){return function(t,n,r){for(var i=f9(t),o=Cee(i),a=PQ(r,o);o>a;a++)if(a in i&&i[a]===n)return a||0;return-1}},sAn=aAn(),z0e=$i([].push),W3e=function(e,t){var n,r=f9(e),i=0,o=[];for(n in r)!rd(vee,n)&&rd(r,n)&&z0e(o,n);for(;t.length>i;)rd(r,n=t[i++])&&(~sAn(o,n)||z0e(o,n));return o},jM=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lAn=jM.concat("length","prototype"),uAn={f:Object.getOwnPropertyNames||function(e){return W3e(e,lAn)}},H3e={f:Object.getOwnPropertySymbols},cAn=$i([].concat),dAn=_T("Reflect","ownKeys")||function(e){var t=uAn.f(ah(e)),n=H3e.f;return n?cAn(t,n(e)):t},hAn=function(e,t){for(var n=dAn(t),r=p9.f,i=j3e.f,o=0;o<n.length;o++){var a=n[o];rd(e,a)||r(e,a,i(t,a))}},pAn=/#|\.prototype\./,TT=function(e,t){var n=gAn[fAn(e)];return n==vAn||n!=mAn&&(Nl(t)?Os(t):!!t)},fAn=TT.normalize=function(e){return String(e).replace(pAn,".").toLowerCase()},gAn=TT.data={},mAn=TT.NATIVE="N",vAn=TT.POLYFILL="P",yAn=TT,bAn=j3e.f,g9=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?Jr:u?Jr[s]||lee(s,{}):(Jr[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=bAn(n,r))&&a.value:n[r],!yAn(l?r:s+(u?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;hAn(o,i)}(e.sham||i&&i.sham)&&yx(o,"sham",!0),l_(n,r,o,e)}},E$=Object.keys||function(e){return W3e(e,jM)},hC=Object.assign,Z0e=Object.defineProperty,wAn=$i([].concat),G0e=!hC||Os(function(){if(Xp&&hC({b:1},hC(Z0e({},"a",{enumerable:!0,get:function(){Z0e(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(i){t[i]=i}),hC({},e)[n]!=7||E$(hC({},t)).join("")!=r})?function(e,t){for(var n=cee(e),r=arguments.length,i=1,o=H3e.f,a=V3e.f;r>i;)for(var s,l=bee(arguments[i++]),u=o?wAn(E$(l),o(l)):E$(l),c=u.length,d=0;c>d;)s=u[d++],Xp&&!bs(a,l,s)||(n[s]=l[s]);return n}:hC;g9({target:"Object",stat:!0,forced:Object.assign!==G0e},{assign:G0e});var Q0e=see(function(e){var t=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,i=0,o={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function v(m){return m instanceof s?new s(m.type,v(m.content),m.alias):Array.isArray(m)?m.map(v):m.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++i}),v.__id},clone:function v(m,w){var k,T;switch(w=w||{},a.util.type(m)){case"Object":if(T=a.util.objId(m),w[T])return w[T];for(var S in k={},w[T]=k,m)m.hasOwnProperty(S)&&(k[S]=v(m[S],w));return k;case"Array":return T=a.util.objId(m),w[T]?w[T]:(k=[],w[T]=k,m.forEach(function(I,O){k[O]=v(I,w)}),k);default:return m}},getLanguage:function(v){for(;v&&!r.test(v.className);)v=v.parentElement;return v?(v.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(k){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(v){var m=document.getElementsByTagName("script");for(var w in m)if(m[w].src==v)return m[w]}return null}},isActive:function(v,m,w){for(var k="no-"+m;v;){var T=v.classList;if(T.contains(m))return!0;if(T.contains(k))return!1;v=v.parentElement}return!!w}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(v,m){var w=a.util.clone(a.languages[v]);for(var k in m)w[k]=m[k];return w},insertBefore:function(v,m,w,k){var T=(k=k||a.languages)[v],S={};for(var I in T)if(T.hasOwnProperty(I)){if(I==m)for(var O in w)w.hasOwnProperty(O)&&(S[O]=w[O]);w.hasOwnProperty(I)||(S[I]=T[I])}var y=k[v];return k[v]=S,a.languages.DFS(a.languages,function(_,A){A===y&&_!=v&&(this[_]=S)}),S},DFS:function v(m,w,k,T){T=T||{};var S=a.util.objId;for(var I in m)if(m.hasOwnProperty(I)){w.call(m,I,m[I],k||I);var O=m[I],y=a.util.type(O);y!=="Object"||T[S(O)]?y!=="Array"||T[S(O)]||(T[S(O)]=!0,v(O,w,I,T)):(T[S(O)]=!0,v(O,w,null,T))}}},plugins:{},highlightAll:function(v,m){a.highlightAllUnder(document,v,m)},highlightAllUnder:function(v,m,w){var k={callback:w,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),a.hooks.run("before-all-elements-highlight",k);for(var T,S=0;T=k.elements[S++];)a.highlightElement(T,m===!0,k.callback)},highlightElement:function(v,m,w){var k=a.util.getLanguage(v),T=a.languages[k];v.className=v.className.replace(r,"").replace(/\s+/g," ")+" language-"+k;var S=v.parentElement;S&&S.nodeName.toLowerCase()==="pre"&&(S.className=S.className.replace(r,"").replace(/\s+/g," ")+" language-"+k);var I={element:v,language:k,grammar:T,code:v.textContent};function O(_){I.highlightedCode=_,a.hooks.run("before-insert",I),I.element.innerHTML=I.highlightedCode,a.hooks.run("after-highlight",I),a.hooks.run("complete",I),w&&w.call(I.element)}if(a.hooks.run("before-sanity-check",I),(S=I.element.parentElement)&&S.nodeName.toLowerCase()==="pre"&&!S.hasAttribute("tabindex")&&S.setAttribute("tabindex","0"),!I.code)return a.hooks.run("complete",I),void(w&&w.call(I.element));if(a.hooks.run("before-highlight",I),I.grammar)if(m&&n.Worker){var y=new Worker(a.filename);y.onmessage=function(_){O(_.data)},y.postMessage(JSON.stringify({language:I.language,code:I.code,immediateClose:!0}))}else O(a.highlight(I.code,I.grammar,I.language));else O(a.util.encode(I.code))},highlight:function(v,m,w){var k={code:v,grammar:m,language:w};return a.hooks.run("before-tokenize",k),k.tokens=a.tokenize(k.code,k.grammar),a.hooks.run("after-tokenize",k),s.stringify(a.util.encode(k.tokens),k.language)},tokenize:function(v,m){var w=m.rest;if(w){for(var k in w)m[k]=w[k];delete m.rest}var T=new c;return d(T,T.head,v),u(v,T,m,T.head,0),function(S){for(var I=[],O=S.head.next;O!==S.tail;)I.push(O.value),O=O.next;return I}(T)},hooks:{all:{},add:function(v,m){var w=a.hooks.all;w[v]=w[v]||[],w[v].push(m)},run:function(v,m){var w=a.hooks.all[v];if(w&&w.length)for(var k,T=0;k=w[T++];)k(m)}},Token:s};function s(v,m,w,k){this.type=v,this.content=m,this.alias=w,this.length=0|(k||"").length}function l(v,m,w,k){v.lastIndex=m;var T=v.exec(w);if(T&&k&&T[1]){var S=T[1].length;T.index+=S,T[0]=T[0].slice(S)}return T}function u(v,m,w,k,T,S){for(var I in w)if(w.hasOwnProperty(I)&&w[I]){var O=w[I];O=Array.isArray(O)?O:[O];for(var y=0;y<O.length;++y){if(S&&S.cause==I+","+y)return;var _=O[y],A=_.inside,R=!!_.lookbehind,D=!!_.greedy,C=_.alias;if(D&&!_.pattern.global){var x=_.pattern.toString().match(/[imsuy]*$/)[0];_.pattern=RegExp(_.pattern.source,x+"g")}for(var P=_.pattern||_,$=k.next,L=T;$!==m.tail&&!(S&&L>=S.reach);L+=$.value.length,$=$.next){var V=$.value;if(m.length>v.length)return;if(!(V instanceof s)){var H,Q=1;if(D){if(!(H=l(P,L,v,R)))break;var U=H.index,K=H.index+H[0].length,J=L;for(J+=$.value.length;U>=J;)J+=($=$.next).value.length;if(L=J-=$.value.length,$.value instanceof s)continue;for(var ue=$;ue!==m.tail&&(J<K||typeof ue.value=="string");ue=ue.next)Q++,J+=ue.value.length;Q--,V=v.slice(L,J),H.index-=L}else if(!(H=l(P,0,V,R)))continue;U=H.index;var ee=H[0],N=V.slice(0,U),q=V.slice(U+ee.length),G=L+V.length;S&&G>S.reach&&(S.reach=G);var ne=$.prev;if(N&&(ne=d(m,ne,N),L+=N.length),h(m,ne,Q),$=d(m,ne,new s(I,A?a.tokenize(ee,A):ee,C,ee)),q&&d(m,$,q),Q>1){var le={cause:I+","+y,reach:G};u(v,m,w,$.prev,L,le),S&&le.reach>S.reach&&(S.reach=le.reach)}}}}}}function c(){var v={value:null,prev:null,next:null},m={value:null,prev:v,next:null};v.next=m,this.head=v,this.tail=m,this.length=0}function d(v,m,w){var k=m.next,T={value:w,prev:m,next:k};return m.next=T,k.prev=T,v.length++,T}function h(v,m,w){for(var k=m.next,T=0;T<w&&k!==v.tail;T++)k=k.next;m.next=k,k.prev=m,v.length-=T}if(n.Prism=a,s.stringify=function v(m,w){if(typeof m=="string")return m;if(Array.isArray(m)){var k="";return m.forEach(function(y){k+=v(y,w)}),k}var T={type:m.type,content:v(m.content,w),tag:"span",classes:["token",m.type],attributes:{},language:w},S=m.alias;S&&(Array.isArray(S)?Array.prototype.push.apply(T.classes,S):T.classes.push(S)),a.hooks.run("wrap",T);var I="";for(var O in T.attributes)I+=" "+O+'="'+(T.attributes[O]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+I+">"+T.content+"</"+T.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(v){var m=JSON.parse(v.data),w=m.language,k=m.code,T=m.immediateClose;n.postMessage(a.highlight(k,a.languages[w],w)),T&&n.close()},!1)),a;var f=a.util.currentScript();function g(){a.manual||a.highlightAll()}if(f&&(a.filename=f.src,f.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var b=document.readyState;b==="loading"||b==="interactive"&&f&&f.defer?document.addEventListener("DOMContentLoaded",g):window.requestAnimationFrame?window.requestAnimationFrame(g):window.setTimeout(g,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
|
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
*
|
|
* @license MIT <https://opensource.org/licenses/MIT>
|
|
* @author Lea Verou <https://lea.verou.me>
|
|
* @namespace
|
|
* @public
|
|
*/e.exports&&(e.exports=t),FM!==void 0&&(FM.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var i=n.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",i='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(l){l.selector+=", "+i}),t.hooks.add("before-sanity-check",function(l){var u=l.element;if(u.matches(i)){l.code="",u.setAttribute(r,"loading");var c=u.appendChild(document.createElement("CODE"));c.textContent="Loading…";var d=u.getAttribute("data-src"),h=l.language;if(h==="none"){var f=(/\.(\w+)$/.exec(d)||[,"none"])[1];h=n[f]||f}s(c,h),s(u,h);var g=t.plugins.autoloader;g&&g.loadLanguages(h);var b=new XMLHttpRequest;b.open("GET",d,!0),b.onreadystatechange=function(){b.readyState==4&&(b.status<400&&b.responseText?(u.setAttribute(r,"loaded"),c.textContent=b.responseText,t.highlightElement(c)):(u.setAttribute(r,"failed"),b.status>=400?c.textContent="✖ Error "+b.status+" while fetching file: "+b.statusText:c.textContent="✖ Error: File does not exist or is empty"))},b.send(null)}}),t.plugins.fileHighlight={highlight:function(l){for(var u,c=(l||document).querySelectorAll(i),d=0;u=c[d++];)t.highlightElement(u)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function s(l,u){var c=l.className;c=c.replace(o," ")+" language-"+u,l.className=c.replace(/\s+/g," ").trim()}}()});(function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(l,u){return l=l.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),RegExp(l,u)}i=o(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(l){return l?typeof l=="string"?l:typeof l.content=="string"?l.content:l.content.map(a).join(""):""},s=function(l){for(var u=[],c=0;c<l.length;c++){var d=l[c],h=!1;if(typeof d!="string"&&(d.type==="tag"&&d.content[0]&&d.content[0].type==="tag"?d.content[0].content[0].content==="</"?u.length>0&&u[u.length-1].tagName===a(d.content[0].content[1])&&u.pop():d.content[d.content.length-1].content==="/>"||u.push({tagName:a(d.content[0].content[1]),openedBraces:0}):u.length>0&&d.type==="punctuation"&&d.content==="{"?u[u.length-1].openedBraces++:u.length>0&&u[u.length-1].openedBraces>0&&d.type==="punctuation"&&d.content==="}"?u[u.length-1].openedBraces--:h=!0),(h||typeof d=="string")&&u.length>0&&u[u.length-1].openedBraces===0){var f=a(d);c<l.length-1&&(typeof l[c+1]=="string"||l[c+1].type==="plain-text")&&(f+=a(l[c+1]),l.splice(c+1,1)),c>0&&(typeof l[c-1]=="string"||l[c-1].type==="plain-text")&&(f=a(l[c-1])+f,l.splice(c-1,1),c--),l[c]=new e.Token("plain-text",f,null,f)}d.content&&typeof d.content!="string"&&s(d.content)}};e.hooks.add("after-tokenize",function(l){l.language!=="jsx"&&l.language!=="tsx"||s(l.tokens)})})(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:o};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(l){/<\?/.test(l.code)&&e.languages["markup-templating"].buildPlaceholders(l,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(l){e.languages["markup-templating"].tokenizePlaceholders(l,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(K,J){return K.replace(/<<(\d+)>>/g,function(ue,ee){return"(?:"+J[+ee]+")"})}function n(K,J,ue){return RegExp(t(K,J),"")}function r(K,J){for(var ue=0;ue<J;ue++)K=K.replace(/<<self>>/g,function(){return"(?:"+K+")"});return K.replace(/<<self>>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(K){return"\\b(?:"+K.trim().replace(/ /g,"|")+")\\b"}var u=l(o),c=RegExp(l(i+" "+o+" "+a+" "+s)),d=l(o+" "+a+" "+s),h=l(i+" "+o+" "+s),f=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),g=r(/\((?:[^()]|<<self>>)*\)/.source,2),b=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[b,f]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,v]),w=/\[\s*(?:,\s*)*\]/.source,k=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,w]),T=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,g,w]),S=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[T]),I=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[S,m,w]),O={keyword:c,punctuation:/[<>()?,.:[\]]/},y=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,_=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0},{pattern:RegExp(y),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:O},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[b,I]),lookbehind:!0,inside:O},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[b]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[u,v]),lookbehind:!0,inside:O},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:O},{pattern:n(/(\bwhere\s+)<<0>>/.source,[b]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[k]),lookbehind:!0,inside:O},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[I,h,b]),inside:O}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[b]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[b]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[g]),lookbehind:!0,alias:"class-name",inside:O},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[I,m]),inside:O,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[I]),lookbehind:!0,inside:O,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[b,f]),inside:{function:n(/^<<0>>/.source,[b]),generic:{pattern:RegExp(f),alias:"class-name",inside:O}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,v,b,I,c.source,g,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,g]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(I),greedy:!0,inside:O},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var R=_+"|"+y,D=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[R]),C=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[D]),2),x=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,P=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,C]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[x,P]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[x]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[C]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var $=/:[^}\r\n]+/.source,L=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[D]),2),V=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,$]),H=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[R]),2),Q=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,$]);function U(K,J){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[K]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[J,$]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[V]),lookbehind:!0,greedy:!0,inside:U(V,L)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Q]),lookbehind:!0,greedy:!0,inside:U(Q,H)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,a=0;a<i.length;a++)o[i[a]]=e.languages.bash[i[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(u){return u=u.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+u+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(u){["url","bold","italic","strike","code-snippet"].forEach(function(c){u!==c&&(e.languages.markdown[u].inside.content.inside[c]=e.languages.markdown[c])})}),e.hooks.add("after-tokenize",function(u){u.language!=="markdown"&&u.language!=="md"||function c(d){if(d&&typeof d!="string")for(var h=0,f=d.length;h<f;h++){var g=d[h];if(g.type==="code"){var b=g.content[1],v=g.content[3];if(b&&v&&b.type==="code-language"&&v.type==="code-block"&&typeof b.content=="string"){var m=b.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),w="language-"+(m=(/[a-z][\w-]*/i.exec(m)||[""])[0].toLowerCase());v.alias?typeof v.alias=="string"?v.alias=[v.alias,w]:v.alias.push(w):v.alias=[w]}}else c(g.content)}}(u.tokens)}),e.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var c="",d=0,h=u.classes.length;d<h;d++){var f=u.classes[d],g=/language-(.+)/.exec(f);if(g){c=g[1];break}}var b=e.languages[c];if(b)u.content=e.highlight(function(m){var w=m.replace(a,"");return w.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(k,T){var S;return(T=T.toLowerCase())[0]==="#"?(S=T[1]==="x"?parseInt(T.slice(2),16):Number(T.slice(1)),l(S)):s[T]||k})}(u.content),b,c);else if(c&&c!=="none"&&e.plugins.autoloader){var v="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());u.attributes.id=v,e.plugins.autoloader.loadLanguages(c,function(){var m=document.getElementById(v);m&&(m.innerHTML=e.highlight(m.textContent,e.languages[c],c))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(e){if(e.language==="groovy"&&e.type==="string"){var t=e.content[0];if(t!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}});var CAn=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function z3e(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,n){return t+z3e(n)},0)}var KR,OAn=Jr.String,gg=function(e){if(yee(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return OAn(e)},Z3e=function(){var e=ah(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},xee=Jr.RegExp,DQ=Os(function(){var e=xee("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),xAn=DQ||Os(function(){return!xee("a","y").sticky}),G3e={BROKEN_CARET:DQ||Os(function(){var e=xee("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:xAn,UNSUPPORTED_Y:DQ},SAn=Xp?Object.defineProperties:function(e,t){ah(e);for(var n,r=f9(t),i=E$(t),o=i.length,a=0;o>a;)p9.f(e,n=i[a++],r[n]);return e},AAn=_T("document","documentElement"),Q3e=D3e("IE_PROTO"),m7=function(){},U3e=function(e){return"<script>"+e+"<\/script>"},U0e=function(e){e.write(U3e("")),e.close();var t=e.parentWindow.Object;return e=null,t},_$=function(){try{KR=new ActiveXObject("htmlfile")}catch{}var e,t;_$=typeof document<"u"?document.domain&&KR?U0e(KR):((t=pee("iframe")).style.display="none",AAn.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(U3e("document.F=Object")),e.close(),e.F):U0e(KR);for(var n=jM.length;n--;)delete _$.prototype[jM[n]];return _$()};vee[Q3e]=!0;var X0e,v7,IAn=Object.create||function(e,t){var n;return e!==null?(m7.prototype=ah(e),n=new m7,m7.prototype=null,n[Q3e]=e):n=_$(),t===void 0?n:SAn(n,t)},kAn=Jr.RegExp,EAn=Os(function(){var e=kAn(".","s");return!(e.dotAll&&e.exec(`
|
|
`)&&e.flags==="s")}),_An=Jr.RegExp,TAn=Os(function(){var e=_An("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),PAn=TQ.get,DAn=uee("native-string-replace",String.prototype.replace),WM=RegExp.prototype.exec,RQ=WM,RAn=$i("".charAt),$An=$i("".indexOf),MAn=$i("".replace),y7=$i("".slice),b7=(v7=/b*/g,bs(WM,X0e=/a/,"a"),bs(WM,v7,"a"),X0e.lastIndex!==0||v7.lastIndex!==0),Y0e=G3e.BROKEN_CARET,w7=/()??/.exec("")[1]!==void 0;(b7||w7||Y0e||EAn||TAn)&&(RQ=function(e){var t,n,r,i,o,a,s,l=this,u=PAn(l),c=gg(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=bs(RQ,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=Y0e&&l.sticky,g=bs(Z3e,l),b=l.source,v=0,m=c;if(f&&(g=MAn(g,"y",""),$An(g,"g")===-1&&(g+="g"),m=y7(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&RAn(c,l.lastIndex-1)!==`
|
|
`)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),w7&&(n=new RegExp("^"+b+"$(?!\\s)",g)),b7&&(r=l.lastIndex),i=bs(WM,f?n:l,m),f?i?(i.input=y7(i.input,v),i[0]=y7(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:b7&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),w7&&i&&i.length>1&&bs(DAn,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=IAn(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var u_=RQ;g9({target:"RegExp",proto:!0,forced:/./.exec!==u_},{exec:u_});var See=Function.prototype,K0e=See.apply,LAn=See.bind,q0e=See.call,BAn=typeof Reflect=="object"&&Reflect.apply||(LAn?q0e.bind(K0e):function(){return q0e.apply(K0e,arguments)}),FAn=W0("species"),C7=RegExp.prototype,NAn=W0("match"),VAn=Jr.TypeError,jAn=W0("species"),WAn=$i("".charAt),J0e=$i("".charCodeAt),HAn=$i("".slice),zAn=function(e){return function(t,n){var r,i,o=gg(vx(t)),a=wee(n),s=o.length;return a<0||a>=s?"":(r=J0e(o,a))<55296||r>56319||a+1===s||(i=J0e(o,a+1))<56320||i>57343?WAn(o,a):HAn(o,a,a+2)}},ZAn=zAn(),GAn=function(e,t,n){return t+(n?ZAn(e,t).length:1)},QAn=Jr.Array,UAn=Math.max,eye=function(e,t,n){for(var r,i,o,a,s=Cee(e),l=PQ(t,s),u=PQ(n===void 0?s:n,s),c=QAn(UAn(u-l,0)),d=0;l<u;l++,d++)r=c,i=d,o=e[l],(a=fee(i))in r?p9.f(r,a,gee(0,o)):r[a]=o;return c.length=d,c},XAn=Jr.TypeError,tye=function(e,t){var n=e.exec;if(Nl(n)){var r=bs(n,e,t);return r!==null&&ah(r),r}if(r0(e)==="RegExp")return bs(u_,e,t);throw XAn("RegExp#exec called on incompatible receiver")},pC=G3e.UNSUPPORTED_Y,YAn=Math.min,X3e=[].push,KAn=$i(/./.exec),fC=$i(X3e),ZI=$i("".slice);(function(e,t,n,r){var i=W0(e),o=!Os(function(){var u={};return u[i]=function(){return 7},""[e](u)!=7}),a=o&&!Os(function(){var u=!1,c=/a/;return(c={}).constructor={},c.constructor[FAn]=function(){return c},c.flags="",c[i]=/./[i],c.exec=function(){return u=!0,null},c[i](""),!u});if(!o||!a||n){var s=$i(/./[i]),l=function(u,c,d){var h;return h="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(f,g){var b,v,m=gg(vx(this)),w=g===void 0?4294967295:g>>>0;if(w===0)return[];if(f===void 0)return[m];if(!kp(b=f)||!((v=b[NAn])!==void 0?v:r0(b)=="RegExp"))return bs(c,m,f,w);for(var k,T,S,I=[],O=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(f.sticky?"y":""),y=0,_=new RegExp(f.source,O+"g");(k=bs(u_,_,m))&&!((T=_.lastIndex)>y&&(fC(I,ZI(m,y,k.index)),k.length>1&&k.index<m.length&&BAn(X3e,I,eye(k,1)),S=k[0].length,y=T,I.length>=w));)_.lastIndex===k.index&&_.lastIndex++;return y===m.length?!S&&KAn(_,"")||fC(I,""):fC(I,ZI(m,y)),I.length>w?eye(I,0,w):I}:"0".split(void 0,0).length?function(f,g){return f===void 0&&g===0?[]:bs(c,this,f,g)}:c,[function(f,g){var b=vx(this),v=f==null?void 0:P3e(f,u);return v?bs(v,f,b,g):bs(h,gg(b),f,g)},function(f,g){var b=ah(this),v=gg(f),m=d(h,b,v,g,h!==c);if(m.done)return m.value;var w=function(C,x){var P,$=ah(C).constructor;return $===void 0||(P=ah($)[jAn])==null?x:function(L){if(F3e(L))return L;throw VAn(_3e(L)+" is not a constructor")}(P)}(b,RegExp),k=b.unicode,T=(b.ignoreCase?"i":"")+(b.multiline?"m":"")+(b.unicode?"u":"")+(pC?"g":"y"),S=new w(pC?"^(?:"+b.source+")":b,T),I=g===void 0?4294967295:g>>>0;if(I===0)return[];if(v.length===0)return tye(S,v)===null?[v]:[];for(var O=0,y=0,_=[];y<v.length;){S.lastIndex=pC?0:y;var A,R=tye(S,pC?ZI(v,y):v);if(R===null||(A=YAn(M3e(S.lastIndex+(pC?y:0)),v.length))===O)y=GAn(v,y,k);else{if(fC(_,ZI(v,O,y)),_.length===I)return _;for(var D=1;D<=R.length-1;D++)if(fC(_,R[D]),_.length===I)return _;y=O=A}}return fC(_,ZI(v,O)),_}]}(i,""[e],function(u,c,d,h,f){var g=$i(u),b=c.exec;return b===u_||b===C7.exec?o&&!f?{done:!0,value:s(c,d,h)}:{done:!0,value:g(d,c,h)}:{done:!1}});l_(String.prototype,e,l[0]),l_(C7,i,l[1])}r&&yx(C7[i],"sham",!0)})("split",0,!!Os(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),pC),g9({global:!0},{globalThis:Jr}),dd&&(ut.fn.attr=dd);var qAn=$3e.PROPER,$Q=RegExp.prototype,Y3e=$Q.toString,JAn=$i(Z3e),eIn=Os(function(){return Y3e.call({source:"a",flags:"b"})!="/a/b"}),tIn=qAn&&Y3e.name!="toString";(eIn||tIn)&&l_(RegExp.prototype,"toString",function(){var e=ah(this),t=gg(e.source),n=e.flags;return"/"+t+"/"+gg(n===void 0&&E3e($Q,e)&&!("flags"in $Q)?JAn(e):n)},{unsafe:!0});var nIn=function(){function e(){this.title=yn("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("codeSelectLang").codeLangs,i=r===void 0?[]:r;n.push({text:"plain text",value:""}),i.forEach(function(a){var s=a.text,l=a.value;n.push({text:s,value:l})});var o=this.getValue(t);return n.forEach(function(a){a.value===o?a.selected=!0:delete a.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);if(n==null||!jn.isElement(n))return"";var r=n.language.toString(),i=t.getMenuConfig("codeSelectLang").codeLangs;return(i===void 0?[]:i).some(function(o){return o.value===r})?r:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,n){if(this.getSelectCodeElem(t)!=null){var r={language:n.toString()};Rt.setNodes(t,r,{match:function(i){return tt.checkNodeType(i,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=tt.getSelectedNodeByType(t,"code");if(n==null)return null;var r=tt.getParentNode(t,n);return jn.isElement(r)?r.type!=="pre"?null:n:null},e}(),rIn={renderStyle:function(e,t){var n=e,r=t,i="";return CAn.forEach(function(o){n[o]&&(i=o)}),i&&function(o,a){o.data==null&&(o.data={});var s=o.data;s.props==null&&(s.props={}),Object.assign(s.props,{className:a})}(r,i="token "+i),r},parseStyleHtml:function(e,t,n){var r=ut(e);if(!jn.isElement(t)||tt.getNodeType(t)!=="code")return t;var i=t,o=r.attr("class")||"";return o.indexOf("language-")===0?i.language=o.split("-")[1]||"":i.language=o.toLowerCase(),i},menus:[{key:"codeSelectLang",factory:function(){return new nIn},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},iIn=/"/g,oIn=$i("".replace);g9({target:"String",proto:!0,forced:Os(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=gg(vx(this)),r="<a",(r+=' name="'+oIn(gg(t),iIn,""")+'"')+">"+n+"</a>";var t,n,r}});var K3e=function(e){var t,n,r,i=function(m,w){var k=typeof Symbol=="function"&&m[Symbol.iterator];if(!k)return m;var T,S,I=k.call(m),O=[];try{for(;(w===void 0||w-- >0)&&!(T=I.next()).done;)O.push(T.value)}catch(y){S={error:y}}finally{try{T&&!T.done&&(k=I.return)&&k.call(I)}finally{if(S)throw S.error}}return O}(e,2),o=i[0],a=i[1],s=[],l=function(m){if(!In.isText(m))return null;var w=tt.getParentNode(null,m);if(w&&tt.getNodeType(w)==="code"){var k=tt.getParentNode(null,w);if(k&&tt.getNodeType(k)==="pre")return w}return null}(o);if(l==null)return s;var u=l.language,c=u===void 0?"":u;if(!c)return s;var d=function(m,w){if(!w)return[];var k=Q0e.languages[w];return k?Q0e.tokenize(m.text,k):[]}(o,c),h=0;try{for(var f=function(m){var w=typeof Symbol=="function"&&Symbol.iterator,k=w&&m[w],T=0;if(k)return k.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&T>=m.length&&(m=void 0),{value:m&&m[T++],done:!m}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),g=f.next();!g.done;g=f.next()){var b=g.value,v=h+z3e(b);typeof b!="string"&&s.push(((r={})[b.type]=!0,r.anchor={path:a,offset:h},r.focus={path:a,offset:v},r)),h=v}}catch(m){t={error:m}}finally{try{g&&!g.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}return s},ta=function(){return ta=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ta.apply(this,arguments)},ms=function(){function e(){throw new Error(`不能实例化
|
|
Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=ta(ta({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=ta(ta({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=ta(ta({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=ta(ta({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){(function(r,i){var o=r.key,a=r.factory,s=r.config,l=jc(jc({},s),i||{});if(PE[o]!=null)throw new Error("Duplicated key '"+o+"' in menu items");PE[o]=a,function(u,c){c!=null&&(O_e[u]=c)}(o,l)})(t,n)},e.registerRenderElem=function(t){(function(n){var r=n.type,i=n.renderElem;Q_e[r||""]=i})(t)},e.registerRenderStyle=function(t){(function(n){EZ.push(n)})(t)},e.registerElemToHtml=function(t){(function(n){var r=n.type,i=n.elemToHtml;x_e[r||""]=i})(t)},e.registerStyleToHtml=function(t){(function(n){CZ.push(n)})(t)},e.registerPreParseHtml=function(t){(function(n){j_e.push(n)})(t)},e.registerParseElemHtml=function(t){(function(n){var r=n.selector,i=n.parseElemHtml;A4[r]=i})(t)},e.registerParseStyleHtml=function(t){(function(n){LK.push(n)})(t)},e.registerModule=function(t){Uy(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */function Uy(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,i=e.elemsToHtml,o=e.styleToHtml,a=e.preParseHtml,s=e.parseElemsHtml,l=e.parseStyleHtml,u=e.editorPlugin;t&&t.forEach(function(c){return ms.registerMenu(c)}),n&&n.forEach(function(c){return ms.registerRenderElem(c)}),r&&ms.registerRenderStyle(r),i&&i.forEach(function(c){return ms.registerElemToHtml(c)}),o&&ms.registerStyleToHtml(o),a&&a.forEach(function(c){return ms.registerPreParseHtml(c)}),s&&s.forEach(function(c){return ms.registerParseElemHtml(c)}),l&&ms.registerParseStyleHtml(l),u&&ms.registerPlugin(u)}dgn.forEach(function(e){return Uy(e)}),Uy(Wvn),Uy(fbn),Uy(xCn),Uy(fSn),Uy(rIn);var q3e='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',J3e={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},aIn={hoverbarKeys:ta(ta({},J3e),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};ms.setEditorConfig(ta(ta({},aIn),{decorate:K3e}));var sIn={hoverbarKeys:J3e};ms.setSimpleEditorConfig(ta(ta({},sIn),{decorate:K3e}));var lIn={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:yn("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:yn("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:yn("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:yn("editor.image"),iconSvg:q3e,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:yn("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};ms.setToolbarConfig(lIn);var uIn={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:yn("editor.image"),iconSvg:q3e,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function cIn(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,i=r===void 0?[]:r,o=e.html,a=e.config,s=a===void 0?{}:a,l=e.mode,u=(l===void 0?"default":l)==="simple"?ms.simpleEditorConfig:ms.editorConfig,c=ta(ta({},u.hoverbarKeys||{}),s.hoverbarKeys||{});return mln({selector:n,config:ta(ta(ta({},u),s),{hoverbarKeys:c}),content:i,html:o,plugins:ms.plugins})}function dIn(e){var t=e.selector,n=e.editor,r=e.config,i=r===void 0?{}:r,o=e.mode,a=o===void 0?"default":o;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s=a==="simple"?ms.simpleToolbarConfig:ms.toolbarConfig,l=function(u,c){if(u==null)throw new Error("Cannot create toolbar, because editor is null");var d=c.selector,h=c.config,f=h===void 0?{}:h;if(function(v,m){return z_e(v,"data-w-e-toolbar",m)}(u,d))throw new Error("Repeated create toolbar by selector '"+d+"'");var g=jc({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},f||{}),b=new Cln(d,g);return kK.set(b,u),PB.set(u,b),b}(n,{selector:t,config:ta(ta({},s),i)});return l}ms.setSimpleToolbarConfig(uIn);var hIn=Object.defineProperty,pIn=Object.defineProperties,fIn=Object.getOwnPropertyDescriptors,nye=Object.getOwnPropertySymbols,gIn=Object.prototype.hasOwnProperty,mIn=Object.prototype.propertyIsEnumerable,rye=(e,t,n)=>t in e?hIn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vIn=(e,t)=>{for(var n in t||(t={}))gIn.call(t,n)&&rye(e,n,t[n]);if(nye)for(var n of nye(t))mIn.call(t,n)&&rye(e,n,t[n]);return e},yIn=(e,t)=>pIn(e,fIn(t));function Um(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
|
|
Please use '@${e}' event instead of props`,t}var e$e=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const bIn=ft({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=Re(null),r=so(null),i=Re(""),o=()=>{if(!n.value)return;const s=qr(e.defaultContent);cIn({selector:n.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:yIn(vIn({},e.defaultConfig),{onCreated(l){if(r.value=l,t.emit("onCreated",l),e.defaultConfig.onCreated){const u=Um("onCreated");throw new Error(u)}},onChange(l){const u=l.getHtml();if(i.value=u,t.emit("update:modelValue",u),t.emit("onChange",l),e.defaultConfig.onChange){const c=Um("onChange");throw new Error(c)}},onDestroyed(l){if(t.emit("onDestroyed",l),e.defaultConfig.onDestroyed){const u=Um("onDestroyed");throw new Error(u)}},onMaxLength(l){if(t.emit("onMaxLength",l),e.defaultConfig.onMaxLength){const u=Um("onMaxLength");throw new Error(u)}},onFocus(l){if(t.emit("onFocus",l),e.defaultConfig.onFocus){const u=Um("onFocus");throw new Error(u)}},onBlur(l){if(t.emit("onBlur",l),e.defaultConfig.onBlur){const u=Um("onBlur");throw new Error(u)}},customAlert(l,u){if(t.emit("customAlert",l,u),e.defaultConfig.customAlert){const c=Um("customAlert");throw new Error(c)}},customPaste:(l,u)=>{if(e.defaultConfig.customPaste){const d=Um("customPaste");throw new Error(d)}let c;return t.emit("customPaste",l,u,d=>{c=d}),c}})})};function a(s){const l=r.value;l!=null&&l.setHtml(s)}return _n(()=>{o()}),Pt(()=>e.modelValue,s=>{s!==i.value&&a(s)}),{box:n}}}),wIn={ref:"box",style:{height:"100%"}};function CIn(e,t,n,r,i,o){return Ce(),We("div",wIn,null,512)}var OIn=e$e(bIn,[["render",CIn]]);const xIn=ft({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=Re(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");tt.getToolbar(r)||dIn({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return Uc(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),SIn={ref:"selector"};function AIn(e,t,n,r,i,o){return Ce(),We("div",SIn,null,512)}var IIn=e$e(xIn,[["render",AIn]]);const kIn={style:{border:"1px solid #ccc"}},EIn={__name:"RichText",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Oe({get(){return n.modelValue},set(u){r("update:modelValue",u)}}),o=so(),a={},s={placeholder:"请输入内容..."};Mo(()=>{const u=o.value;u!=null&&u.destroy()});const l=u=>{o.value=u};return(u,c)=>(Ce(),We("div",kIn,[xe(W(IIn),{style:{"border-bottom":"1px solid #ccc"},editor:o.value,defaultConfig:a,mode:"default"},null,8,["editor"]),xe(W(OIn),jr({style:{height:"500px","overflow-y":"hidden"},modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d),defaultConfig:s,mode:"default",onOnCreated:l},u.$attrs),null,16,["modelValue"])]))}},_In={name:"富文本编辑器",component:EIn,icon:"rich",type:"basic",order:11.5,initialValues:{label:"富文本编辑器",component:"RichText"},attr:OXt},t$e=Object.freeze(Object.defineProperty({__proto__:null,default:_In},Symbol.toStringTag,{value:"Module"})),TIn={class:"footer"},PIn={__name:"Select",props:{modelValue:{},options:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},mode:{type:String,default:"static"},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},autoSelectedFirst:{type:Boolean,default:!1},api:Object,name:String,filterKey:{default:"filter",type:String},formatter:Function,sort:Boolean,tableDrop:Boolean,columns:{default:()=>[],type:Array},scrollLoad:Boolean},emits:["update:modelValue","onChangeSelect"],setup(e,{emit:t}){const n=e,r=t,i=qb(8)+"-popper",{selectVal:o,currentOptions:a,selectChange:s,loading:l,fetchData:u,isMax:c}=T_(n,r),d=()=>{n.scrollLoad&&u()};return(h,f)=>{const g=o0("loading"),b=o0("selectLoadMore");return Kn((Ce(),mt(W(Cet),jr({modelValue:W(o),"onUpdate:modelValue":f[0]||(f[0]=v=>ni(o)?o.value=v:null)},h.$attrs,{onChange:W(s),multiple:e.multiple,clearable:"",filterable:"","allow-create":e.allowCreate,"popper-class":i}),a0({default:ot(()=>[(Ce(!0),We(un,null,xr(W(a),v=>(Ce(),mt(W(Oet),{key:v[e.valueKey],label:v[e.labelKey],value:v[e.valueKey]},{default:ot(()=>[gr(en(e.formatter?e.formatter(v[e.labelKey]):v[e.labelKey]),1)]),_:2},1032,["label","value"]))),128))]),_:2},[e.scrollLoad?{name:"footer",fn:ot(()=>[Kn((Ce(),We("div",TIn,[gr(en(W(c)?"没有更多选项了":W(l)?"加载中":"滚动到底加载更多选项"),1)])),[[g,W(l)]])]),key:"0"}:void 0]),1040,["modelValue","onChange","multiple","allow-create"])),[[b,d,i]])}}},DIn=Is(PIn,[["__scopeId","data-v-b000521e"]]),RIn=Xo({basic:[...Qo(["initialValue","props.readonly"]),{label:"初始值",component:"JsonEdit",name:"initialValue",props:{mode:"dialog",initVal:'{{$values.props.multiple?[]:" "}}'}},{label:"选择模式",component:"Switch",name:"props.multiple",props:{"active-text":"多选","inactive-text":"单选"},designKey:"form-eTxc"},{label:"是否可创建",component:"Switch",name:"props.allowCreate",props:{"active-text":"是","inactive-text":"否"},help:"请确保已选择【多选模式】",designKey:"form-sFcj"},...LL],high:[...Uo(),{label:"自动选中第一项",component:"Switch",name:"props.autoSelectedFirst",designKey:"form-LPpx"},{label:"滚动加载下一页",component:"Switch",name:"props.scrollLoad",designKey:"form-LPpxscrollLoad"}],linkage:Ta}),$In={name:"下拉选择框",icon:"select",type:"basic",component:DIn,order:3,initialValues:{label:"下拉选择框",component:"Select",props:{mode:"static",options:[{label:"选项1",value:"value1"},{label:"选项2",value:"value2"},{label:"选项3",value:"value3"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"}},attr:RIn},n$e=Object.freeze(Object.defineProperty({__proto__:null,default:$In},Symbol.toStringTag,{value:"Module"})),MIn={name:"滑块",component:vtt,icon:"slider",type:"basic",order:12,initialValues:{label:"滑块",component:"Slider"},attr:Xo({basic:[...Qo(["initialValue","props.readonly","props.placeholder"]),{label:"初始值",component:"InputNumber",name:"initialValue"},{label:"开启选择范围",component:"Switch",name:"props.range"},{label:"步长",component:"InputNumber",name:"props.step",initialValue:1},{label:"最小值",component:"InputNumber",name:"props.min",initialValue:0},{label:"最大值",component:"InputNumber",name:"props.max",initialValue:100}],high:Uo(),linkage:Ta})},r$e=Object.freeze(Object.defineProperty({__proto__:null,default:MIn},Symbol.toStringTag,{value:"Module"})),LIn=Xo({basic:[...Qo(["initialValue","props.readonly","props.placeholder"]),{label:"初始值",component:"Switch",name:"initialValue"}],high:[...Uo(),{label:"打开时描述",component:"Input",name:"props.active-text"},{label:"关闭时描述",component:"Input",name:"props.inactive-text"},{label:"描述显示位置",component:"Radio",name:"props.inline-prompt",props:{mode:"static",options:[{label:"外部",value:!1},{label:"内部",value:!0}]}}],linkage:Ta}),BIn={name:"开关",component:Dtt,icon:"switch",type:"basic",order:8,initialValues:{label:"开关",component:"Switch",props:{"inline-prompt":!1}},attr:LIn},i$e=Object.freeze(Object.defineProperty({__proto__:null,default:BIn},Symbol.toStringTag,{value:"Module"})),FIn={class:"tag-outer"},NIn={__name:"Tag",props:{modelValue:{type:Array,default:()=>[]},round:{type:Boolean,default:!1}},emits:["update:modelValue","onChangeSelect"],setup(e,{emit:t}){const n=e,r=t,i=Oe({get(){return n.modelValue},set(d){r("update:modelValue",d)}}),o=Re(""),a=Re(!1),s=Re(null),l=d=>{i.value.splice(i.value.indexOf(d),1),r("onChangeSelect",i.value)},u=()=>{a.value=!0,mn(()=>{s.value.input&&s.value.input.focus()})},c=()=>{o.value&&i.value.push(o.value),a.value=!1,o.value="",r("onChangeSelect",i.value)};return(d,h)=>(Ce(),We("div",FIn,[(Ce(!0),We(un,null,xr(i.value,f=>(Ce(),mt(W(t5),{key:f,class:"tag-item",size:"large",round:e.round,closable:"","disable-transitions":!1,onClose:g=>l(f)},{default:ot(()=>[gr(en(f),1)]),_:2},1032,["round","onClose"]))),128)),a.value?(Ce(),mt(W(Fs),{key:0,ref_key:"InputRef",ref:s,size:"default",modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=f=>o.value=f),class:"input-box",onKeyup:Zi(rr(c,["stop"]),["enter"]),onBlur:c},null,8,["modelValue","onKeyup"])):(Ce(),mt(W(mo),{key:1,class:"tag-add",onClick:u,size:"default"},{default:ot(()=>[gr(" + 新增 ")]),_:1}))]))}},VIn=Is(NIn,[["__scopeId","data-v-6e75ad7c"]]),jIn=Xo({basic:[...Qo(["initialValue","props.readonly"]),{label:"初始值",component:"JsonEdit",name:"initialValue",props:{mode:"dialog",initVal:"{{[]}}"}},{label:"圆形标签",component:"Switch",name:"props.round",props:{"active-text":"是","inactive-text":"否"},designKey:"form-sFYXBQ"}],high:[...Uo()],linkage:Ta}),WIn={name:"动态标签",icon:"tag",type:"basic",component:VIn,order:22,initialValues:{label:"动态标签",component:"Tag"},attr:jIn},o$e=Object.freeze(Object.defineProperty({__proto__:null,default:WIn},Symbol.toStringTag,{value:"Module"})),HIn=Xo({basic:Qo(),high:[...Uo(),{label:"最长字数",component:"InputNumber",name:"props.maxlength"},{label:"最小行数",component:"InputNumber",name:"props.autosize.minRows",initialValue:2},{label:"最大行数",component:"InputNumber",name:"props.autosize.maxRows",initialValue:999}],linkage:Ta}),zIn={name:"多行文本",component:Yn(Fs,{type:"textarea",showWordLimit:!0,autocomplete:"off"}),icon:"textarea",type:"basic",order:2,initialValues:{label:"多行文本",component:"Textarea",props:{autosize:{minRows:4,maxRows:999},placeholder:"请输入..."}},attr:HIn},a$e=Object.freeze(Object.defineProperty({__proto__:null,default:zIn},Symbol.toStringTag,{value:"Module"})),ZIn=[{label:"唯一标识",component:"Input",name:"name"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"标题内容",component:"Input",name:"props.title"},{label:"类型",component:"Radio",name:"props.type",props:{mode:"static",options:[{label:"一级标题",value:"h1"},{label:"二级标题",value:"h2"},{label:"三级标题",value:"h3"},{label:"四级标题",value:"h4"},{label:"五级标题",value:"h5"}]}},{label:"字体倾斜",component:"Switch",name:"props.italic"}],GIn={name:"标题",component:oxe,icon:"title",type:"assist",order:3,attr:ZIn,initialValues:{component:"Title",props:{title:"标题",type:"h3"}}},s$e=Object.freeze(Object.defineProperty({__proto__:null,default:GIn},Symbol.toStringTag,{value:"Module"})),QIn=Xo({basic:[...Qo(["props.readonly","props.placeholder"]),...LL],high:[...Uo(),{label:"开启搜索",component:"Switch",name:"props.filterable",designKey:"form-ekRL12"},{label:"搜索占位符",component:"Input",name:"props.filter-placeholder",designKey:"form-ekRL123",initialValue:"请输入搜索关键词",hidden:"{{!$values.props.filterable}}"},{label:"左列表标题",component:"Input",props:{autocomplete:"off",showWordLimit:!0,type:"text",placeholder:"请输入文本"},designKey:"form-7KcJ",name:"props.titles.0"},{label:"右列表标题",component:"Input",props:{autocomplete:"off",showWordLimit:!0,type:"text",placeholder:"请输入文本"},designKey:"form-Cp1y",name:"props.titles.1"}],linkage:Ta}),UIn={__name:"Transfer",props:{modelValue:{},options:{type:Array,default:()=>[]},mode:{type:String,default:"static"},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},api:Object,disabled:Boolean},emits:["update:modelValue","onChangeSelect"],setup(e,{emit:t}){const n=e,r=t,{selectVal:i,currentOptions:o,selectChange:a,loading:s}=T_(n,r);return(l,u)=>(Ce(),mt(W(kee),{disabled:e.disabled},{default:ot(()=>[xe(W(mrt),jr(l.$attrs,{modelValue:W(i),"onUpdate:modelValue":u[0]||(u[0]=c=>ni(i)?i.value=c:null),data:W(o),props:{label:n.labelKey,key:n.valueKey}}),null,16,["modelValue","data","props"])]),_:1},8,["disabled"]))}},XIn={name:"穿梭框",icon:"transfer",type:"basic",component:UIn,order:8,initialValues:{label:"穿梭框",component:"Transfer",props:{mode:"static",options:[{label:"选项1",value:"value1"},{label:"选项2",value:"value2"},{label:"选项3",value:"value3"}],labelKey:"label",valueKey:"value"}},attr:QIn},l$e=Object.freeze(Object.defineProperty({__proto__:null,default:XIn},Symbol.toStringTag,{value:"Module"})),YIn={__name:"Upload",props:{action:String,modelValue:Array,height:Number,width:Number,fileTypes:{type:Array,default:()=>[]},size:Number,dataPath:{type:String,default:"data"},uploadKey:{type:String,default:"file"},buttonText:{type:String,default:"点击上传"},limit:{type:Number,default:2}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Oe({get(){return n.modelValue},set(s){r("update:modelValue",s)}}),o=s=>(s.type.split("/"),s.size/1024/1024>n.size?(n5.error(`图片文件大小不能超过${n.size}MB!`),!1):!0),a=()=>{n5.warning(`上传数量限制为 ${n.limit} 个!`)};return Kp(()=>{const{modelValue:s}=n;s&&(imageUrl.value=s)}),(s,l)=>{const u=Ar("IconRender");return Ce(),mt(W(NOe),jr({"file-list":i.value,"onUpdate:fileList":l[0]||(l[0]=c=>i.value=c),action:e.action,name:e.uploadKey,multiple:"","before-upload":o,limit:e.limit,"on-exceed":a},s.$attrs),{default:ot(()=>[xe(W(mo),{type:"primary"},{icon:ot(()=>[xe(u,{name:"upload"})]),default:ot(()=>[gr(" "+en(e.buttonText),1)]),_:1})]),_:1},16,["file-list","action","name","limit"])}}},KIn=Xo({basic:[...Qo(["initialValue","props.readonly","props.placeholder","required","props.disabled"]),{label:"上传Key",component:"Input",name:"props.uploadKey"},{label:"上传地址",component:"Input",name:"props.action"},{label:"上传大小限制",component:"InputNumber",name:"props.size",props:{unit:"MB"}},{label:"上传数量限制",component:"InputNumber",name:"props.limit",props:{unit:"个"}},{label:"按钮文案",component:"Input",name:"props.buttonText"},{label:"显示上传列表",component:"Switch",name:"props.showFileList"}],high:Uo()}),qIn={name:"文件上传",component:YIn,icon:"upload",type:"basic",order:13,attr:KIn,initialValues:{label:"文件上传",component:"Upload",props:{uploadKey:"file",action:"https://hyl999.co/api/upload/image",size:5,buttonText:"点击上传",limit:2,showFileList:!0}}},u$e=Object.freeze(Object.defineProperty({__proto__:null,default:qIn},Symbol.toStringTag,{value:"Module"})),JIn=["src"],ekn={__name:"UploadImage",props:{action:String,height:Number,width:Number,fileTypes:{type:Array,default:()=>[]},size:Number,dataPath:{type:String,default:"data"},modelValue:String,uploadKey:{type:String,default:"image"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Re(""),o=Oe(()=>({height:n.height+"px",lineHeight:n.height+"px",width:n.width+"px"})),a=(l,u)=>{i.value=URL.createObjectURL(u.raw),r("update:modelValue",Kb(l,n.dataPath))},s=l=>{const[,u]=l.type.split("/");return n.fileTypes.includes(u)?l.size/1024/1024>n.size?(n5.error(`图片文件大小不能超过${n.size}MB!`),!1):!0:(n5.error("不支持该图片格式!"),!1)};return Kp(()=>{const{modelValue:l}=n;l&&(i.value=l)}),(l,u)=>{const c=Ar("icon-render");return Ce(),mt(W(NOe),{class:"image-uploader",action:e.action,"show-file-list":!1,"on-success":a,"before-upload":s,name:e.uploadKey},{default:ot(()=>[i.value?(Ce(),We("img",{key:0,src:i.value,class:"image",style:En(o.value)},null,12,JIn)):(Ce(),We("div",{key:1,class:"container",style:En(o.value)},[xe(c,{name:"add"})],4))]),_:1},8,["action","name"])}}},tkn=Is(ekn,[["__scopeId","data-v-419e40ec"]]),nkn=Xo({basic:[...Qo(["initialValue","props.readonly","props.placeholder","required","props.disabled"]),{label:"上传Key",component:"Input",name:"props.uploadKey"},{label:"上传地址",component:"Input",name:"props.action"},{label:"图片宽度",component:"InputNumber",name:"props.width",props:{unit:"px"}},{label:"图片高度",component:"InputNumber",name:"props.height",props:{unit:"px"}},{label:"允许图片格式",component:"Checkbox",name:"props.fileTypes",props:{mode:"static",options:[{label:"JPG",value:"jpeg"},{label:"PNG",value:"png"},{label:"WebP",value:"webp"},{label:"SVG",value:"svg+xml"}]}},{label:"上传大小限制",component:"InputNumber",name:"props.size",props:{unit:"MB"}},{label:"数据路径",component:"Input",name:"props.dataPath",help:"用于上传成功后,可以在回参里取一个值保存到字段值。(比如图片存储在服务器的地址)"}],high:Uo()}),rkn={name:"图片上传",component:tkn,icon:"uploadImage",type:"basic",order:13,attr:nkn,initialValues:{label:"图片上传",component:"UploadImage",props:{width:150,height:150,uploadKey:"image",action:"https://hyl999.co/api/upload/image",fileTypes:["jpeg","png"],size:5}}},c$e=Object.freeze(Object.defineProperty({__proto__:null,default:rkn},Symbol.toStringTag,{value:"Module"})),iye=Object.assign({"/src/elements/Alert/index.js":UOe,"/src/elements/Button/index.js":XOe,"/src/elements/Card/index.js":YOe,"/src/elements/Cascader/index.js":qOe,"/src/elements/Checkbox/index.js":JOe,"/src/elements/CodeEdit/index.js":ixe,"/src/elements/Collapse/index.js":axe,"/src/elements/ColorPicker/index.js":sxe,"/src/elements/Custom/index.js":lxe,"/src/elements/DatePicker/index.js":uxe,"/src/elements/Divider/index.js":cxe,"/src/elements/FormList/index.js":dxe,"/src/elements/Gird/index.js":hxe,"/src/elements/IconSelect/index.js":pxe,"/src/elements/Inline/index.js":fxe,"/src/elements/Input/index.js":gxe,"/src/elements/InputNumber/index.js":mxe,"/src/elements/JsonEdit/index.js":yxe,"/src/elements/Markdown/index.js":n2e,"/src/elements/Password/index.js":r2e,"/src/elements/Radio/index.js":i2e,"/src/elements/Rate/index.js":o2e,"/src/elements/RichText/index.js":t$e,"/src/elements/Select/index.js":n$e,"/src/elements/Slider/index.js":r$e,"/src/elements/Switch/index.js":i$e,"/src/elements/Tag/index.js":o$e,"/src/elements/TextArea/index.js":a$e,"/src/elements/Title/index.js":s$e,"/src/elements/Transfer/index.js":l$e,"/src/elements/Upload/index.js":u$e,"/src/elements/UploadImage/index.js":c$e}),Aee={};for(const e in iye){const t=iye[e].default;t&&(Aee[t.initialValues.component]=t)}const ikn={class:"form-item-label"},okn={key:0,class:"ico"},vO=ft({__name:"FormItem",props:{label:{},name:{},component:{},required:{type:Boolean},props:{},initialValue:{},help:{},children:{},hidden:{type:[Boolean,String]},hideLabel:{type:Boolean},designKey:{},rules:{},class:{},style:{},design:{type:Boolean},change:{}},setup(e){const t=e,{elements:n={}}=Ht(R0,{elements:Aee}),r=Ht(I1,mit),{formValues:i,updateFormValues:o}=Ht(HOe,{formValues:Re({}),updateFormValues:g=>{console.log(g)}}),{initialValues:a,updateInitialValues:s}=Ht(GOe,{initialValues:{},updateInitialValues:g=>{console.log(g)}}),l=Oe({get(){return Kb(i.value,t.name)},set(g){const b=i5(i.value,t.name,g);o(b)}}),u=Oe(()=>({marginBottom:t.design?0:"18px",...t.style})),c=Oe(()=>{const{rules:g,required:b}=t,v=[];if(b&&v.push({required:!0,message:"该字段是必填字段",trigger:"blur"}),g){const m=g.map(({type:w,message:k,trigger:T,customReg:S})=>{const I={message:k,trigger:T};return["email","url"].includes(w)?{...I,type:w}:w==="custom"?{...I,pattern:S}:git(w)?{...I,pattern:w}:{}});return[...v,...m]}return v}),d=Oe(()=>al.isString(l.value)&&/^{{\s*(.*?)\s*}}$/.test(l.value)?"Input":t.component),h=Oe(()=>n[d.value]||{}),f=Oe(()=>{const g={...t.props,name:t.name};return t.children&&(g.children=t.children),g});return _n(()=>{if(!l.value&&t.initialValue!==void 0){const g=i5(a,t.name,t.initialValue);s(g)}}),(g,b)=>{const v=Ar("icon-render");return g.design||!g.hidden?(Ce(),We(un,{key:0},[h.value.type==="layout"?(Ce(),We("div",{key:0,style:En(u.value)},[(Ce(),mt(ei(h.value.component),{design:g.design,name:g.name,props:g.props,children:g.children},null,8,["design","name","props","children"]))],4)):h.value.type==="assist"?(Ce(),We("div",{key:1,style:En(u.value)},[(Ce(),mt(ei(h.value.component),k2(lL(g.props)),null,16))],4)):(Ce(),mt(W(iCe),{id:"form-item",style:En(u.value),key:g.name,prop:g.name,"label-width":g.hideLabel?"0":W(r).labelWidth,rules:c.value,class:De(t.class)},a0({default:ot(()=>[(Ce(),mt(ei(h.value.component),jr({disabled:W(r).disabled,size:W(r).size},f.value,{[h.value.modelName]:l.value,["onUpdate:"+h.value.modelName]:b[0]||(b[0]=m=>l.value=m),design:g.design}),null,16,["disabled","size","design"]))]),_:2},[g.hideLabel?void 0:{name:"label",fn:ot(()=>[at("div",ikn,[at("div",{style:En(W(r).labelBold&&"font-weight: bold")},en(g.label),5),g.help?(Ce(),We("div",okn,[xe(W(wg),{class:"box-item",effect:"dark",content:g.help},{default:ot(()=>[at("div",null,[xe(v,{name:"help"})])]),_:1},8,["content"])])):xt("",!0)])]),key:"0"}]),1032,["style","prop","label-width","rules","class"]))],64)):xt("",!0)}}}),PT=ft({__name:"FormRender",props:{formItems:{}},setup(e){return(t,n)=>(Ce(!0),We(un,null,xr(t.formItems,r=>(Ce(),mt(vO,jr({key:r.name},r),null,16))),128))}}),akn={component:"Inline",children:[{component:"Button",props:{name:"提交",clickEvent:"submitForm",style:{"margin-left":"auto",display:"flex"}},designKey:"form-aBMY",name:"submit"},{component:"Button",props:{name:"重置",clickEvent:"resetForm",type:"default"},designKey:"form-mtnY",name:"IxjeOB"}],props:{align:"left",gap:10},designKey:"design-2NnI",name:"form-dxYP"},lS=ft({name:"SchemaForm",__name:"SchemaForm",props:{modelValue:{},schema:{},schemaContext:{},design:{type:Boolean},footer:{type:Boolean}},emits:["update:modelValue","onChange","onFinish","onFinishFailed"],setup(e,{expose:t,emit:n}){const r=e,i=n,o=Re(),a=Br({}),s=Br({}),l=Re({}),u=Oe({get(){return r.modelValue||l.value},set(w){i("update:modelValue",w),l.value=w}}),c=Oe(()=>({$values:u.value,$selectData:a,$initialValues:s,...r.schemaContext})),d=Oe(()=>X2(r.schema.items||[],c.value)),h=Oe(()=>r.schema),f=()=>{var w;return(w=o.value)==null?void 0:w.validate()},g=async()=>{try{return await f(),i("onFinish",u.value),u.value}catch(w){return i("onFinishFailed",w),Promise.reject(w)}},b=()=>({...u.value}),v=w=>{u.value={...u.value,...w}},m=w=>{if(w){let k=al.cloneDeep(u.value);w.forEach(T=>{k=i5(k,T,Kb(s,T))}),u.value=k}else u.value=s};return Pt(u,(w,k)=>{i("onChange",w),WOe({newVal:w,oldVal:k,formValues:u,formItems:d.value})},{deep:!0}),Pt(s,w=>{u.value=al.merge(u.value,w)}),Or(I1,h),Or(HOe,{formValues:u,updateFormValues:w=>u.value=w}),Or(zOe,a),Or(ZOe,{submit:g,validate:f,getFormValues:b,setFormValues:v,resetFields:m}),Or(GOe,{initialValues:s,updateInitialValues:w=>Object.assign(s,w)}),t({submit:g,validate:f,getFormValues:b,setFormValues:v,resetFields:m,context:c}),(w,k)=>(Ce(),mt(W(sQe),jr({model:u.value,"label-position":w.schema.labelAlign,size:w.schema.size,disabled:w.schema.disabled,"hide-required-asterisk":w.schema.hideRequiredAsterisk,ref_key:"formRef",ref:o},w.$attrs),{default:ot(()=>[w.design?xt("",!0):(Ce(),mt(PT,{key:0,formItems:d.value},null,8,["formItems"])),w.footer&&!w.design?(Ce(),mt(vO,jr({key:1},W(akn),{style:{paddingLeft:w.schema.labelWidth+"px"}}),null,16,["style"])):xt("",!0),rn(w.$slots,"default")]),_:3},16,["model","label-position","size","disabled","hide-required-asterisk"]))}}),skn=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((r,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t)))})},lkn=ft({name:"IconRender",__name:"IconRender",props:{name:String},setup(e){const t=e,n=so(null);return Uc(()=>{skn(Object.assign({"../assets/icons/add.vue":()=>Tt(()=>import("./add-5LaQ-HzS-Cg72Vrg5.js"),[],import.meta.url),"../assets/icons/alert.vue":()=>Tt(()=>import("./alert-DFLbox80-CbH0u5az.js"),[],import.meta.url),"../assets/icons/button.vue":()=>Tt(()=>import("./button-D0dumzHF-DLqVtUfj.js"),[],import.meta.url),"../assets/icons/card.vue":()=>Tt(()=>import("./card-K394YI_n-DE7zp2WS.js"),[],import.meta.url),"../assets/icons/cascader.vue":()=>Tt(()=>import("./cascader-XKP-wYkP-Da2aKaYx.js"),[],import.meta.url),"../assets/icons/checkbox.vue":()=>Tt(()=>import("./checkbox-J0vJD1MJ-De4LlJwA.js"),[],import.meta.url),"../assets/icons/collapse.vue":()=>Tt(()=>import("./collapse-YmG4TW6A-PccM-U49.js"),[],import.meta.url),"../assets/icons/colorPicker.vue":()=>Tt(()=>import("./colorPicker-KbUMRGWl-RNuMIiey.js"),[],import.meta.url),"../assets/icons/copy.vue":()=>Tt(()=>import("./copy-rcPfB2zw-LmOAhjqX.js"),[],import.meta.url),"../assets/icons/custom.vue":()=>Tt(()=>import("./custom-iDr_rZAX-DUqUQfeO.js"),[],import.meta.url),"../assets/icons/datePicker.vue":()=>Tt(()=>import("./datePicker-Jb--DcV4-C__iLfI4.js"),[],import.meta.url),"../assets/icons/delete.vue":()=>Tt(()=>import("./delete-igGtO-id-DOoEI_JL.js"),[],import.meta.url),"../assets/icons/design.vue":()=>Tt(()=>import("./design-y2tZknZO-C1haj6G1.js"),[],import.meta.url),"../assets/icons/divider.vue":()=>Tt(()=>import("./divider-a_oY2YHW-DaFpwIXX.js"),[],import.meta.url),"../assets/icons/document.vue":()=>Tt(()=>import("./document-aNRJZWV0-Cyj2qVxy.js"),[],import.meta.url),"../assets/icons/formList.vue":()=>Tt(()=>import("./formList-3gTo-Ip8-KNQPNiAk.js"),[],import.meta.url),"../assets/icons/github.vue":()=>Tt(()=>import("./github-GMqaU3La-BdhZKKhn.js"),[],import.meta.url),"../assets/icons/grid.vue":()=>Tt(()=>import("./grid-KEYsYrjk-C_qoPVsd.js"),[],import.meta.url),"../assets/icons/help.vue":()=>Tt(()=>import("./help-ZnqvU8pQ-GhEjPg23.js"),[],import.meta.url),"../assets/icons/hidden.vue":()=>Tt(()=>import("./hidden-iir9TPm5-BFEoLc2T.js"),[],import.meta.url),"../assets/icons/icon.vue":()=>Tt(()=>import("./icon-jemxlDpQ-BcWhn0x5.js"),[],import.meta.url),"../assets/icons/inline.vue":()=>Tt(()=>import("./inline-4GFi4mcQ-3jo9DBHj.js"),[],import.meta.url),"../assets/icons/input.vue":()=>Tt(()=>import("./input-Rt-9IDt5-Ds9yPtC_.js"),[],import.meta.url),"../assets/icons/inputNumber.vue":()=>Tt(()=>import("./inputNumber-rd20aCNh-LfiCNUlA.js"),[],import.meta.url),"../assets/icons/itemGroup.vue":()=>Tt(()=>import("./itemGroup-RdnI8hQS-CjQDr0DX.js"),[],import.meta.url),"../assets/icons/jsonEdit.vue":()=>Tt(()=>import("./jsonEdit-RfYmlNhG-Dd0p5Lm-.js"),[],import.meta.url),"../assets/icons/library.vue":()=>Tt(()=>import("./library-6FZwxhQ1-CqBo1bUx.js"),[],import.meta.url),"../assets/icons/markdown.vue":()=>Tt(()=>import("./markdown-BwsC-I5--DnFcomiv.js"),[],import.meta.url),"../assets/icons/move.vue":()=>Tt(()=>import("./move-Ly-9rOdZ-CNuKqSUE.js"),[],import.meta.url),"../assets/icons/password.vue":()=>Tt(()=>import("./password-GZY8pD1V-D_-9icAn.js"),[],import.meta.url),"../assets/icons/radio.vue":()=>Tt(()=>import("./radio-DlgMpMrz-BcH6XLSv.js"),[],import.meta.url),"../assets/icons/rate.vue":()=>Tt(()=>import("./rate-av0FGEVx-DLp4O85V.js"),[],import.meta.url),"../assets/icons/reduce.vue":()=>Tt(()=>import("./reduce-l5qcIpSD-QkIEABCg.js"),[],import.meta.url),"../assets/icons/rich.vue":()=>Tt(()=>import("./rich-LBWTU8nd-CgXEshI4.js"),[],import.meta.url),"../assets/icons/search.vue":()=>Tt(()=>import("./search-G-HzFfC4-yLm34R_V.js"),[],import.meta.url),"../assets/icons/select.vue":()=>Tt(()=>import("./select-5a_yPzv9-CXfXPCqR.js"),[],import.meta.url),"../assets/icons/slider.vue":()=>Tt(()=>import("./slider-axx5uej3-D84FLvPE.js"),[],import.meta.url),"../assets/icons/switch.vue":()=>Tt(()=>import("./switch-W7lVcJ9b-wipBdJUU.js"),[],import.meta.url),"../assets/icons/tag.vue":()=>Tt(()=>import("./tag-F19x06jw-DLHFI9H4.js"),[],import.meta.url),"../assets/icons/textarea.vue":()=>Tt(()=>import("./textarea-HMptTUBb-BPFciX3R.js"),[],import.meta.url),"../assets/icons/title.vue":()=>Tt(()=>import("./title-JSddmrbj-Dpeb7MxB.js"),[],import.meta.url),"../assets/icons/transfer.vue":()=>Tt(()=>import("./transfer-hHV1AvoF-1iTZZy9E.js"),[],import.meta.url),"../assets/icons/upload.vue":()=>Tt(()=>import("./upload-_ccx-S7b-Ds5nrOUy.js"),[],import.meta.url),"../assets/icons/uploadImage.vue":()=>Tt(()=>import("./uploadImage-tphhXEQZ-ROFoClmh.js"),[],import.meta.url)}),`../assets/icons/${t.name}.vue`).then(r=>{n.value=r.default})}),(r,i)=>(Ce(),mt(ei(n.value),jr({id:"icon-render"},r.$attrs),null,16))}}),Iee=Is(lkn,[["__scopeId","data-v-5e48ef8a"]]),ukn=Object.assign({name:"RemoteSchemaForm"},{__name:"RemoteSchemaForm",props:{schemaId:[String,Number],schema:null},setup(e,{expose:t}){const n=e,r=Re(null),i=dr(),o=Re({}),a=Re(!1),{getSchema:s}=Ht(R0);return Kp(async()=>{n.schemaId&&(a.value=!0,o.value=await s(n.schemaId),a.value=!1)}),_n(()=>{Object.entries(r.value).forEach(([l,u])=>{i.exposed[l]=u})}),t(i.exposed),(l,u)=>{const c=o0("loading");return Kn((Ce(),mt(lS,jr(l.$attrs,{schema:o.value,ref_key:"formRef",ref:r}),null,16,["schema"])),[[c,a.value]])}}}),ckn=Object.assign({name:"RemoteFormDesign"},{__name:"RemoteFormDesign",props:{schemaId:[String,Number]},setup(e,{expose:t}){const n=e,r=Re(null),i=dr(),o=Re(null),a=Re(!1),{getSchema:s}=Ht(R0);return Kp(async()=>{n.schemaId&&(a.value=!0,o.value=await s(n.schemaId),a.value=!1)}),_n(()=>{Object.entries(r.value).forEach(([l,u])=>{i.exposed[l]=u})}),t(i.exposed),(l,u)=>{const c=Ar("FormDesign");return Ce(),mt(c,jr(l.$attrs,{schema:o.value,ref_key:"formRef",ref:r}),null,16,["schema"])}}}),dkn=e=>(hbe("data-v-4a6529d0"),e=e(),pbe(),e),hkn=dkn(()=>at("div",{class:"mask"},null,-1)),pkn={__name:"Disabled",props:{disabled:Boolean},setup(e){return(t,n)=>e.disabled?(Ce(),We("div",jr({key:0},t.$attrs,{class:"disabled-wrapper"}),[hkn,rn(t.$slots,"default",{},void 0,!0)],16)):rn(t.$slots,"default",{key:1},void 0,!0)}},kee=Is(pkn,[["__scopeId","data-v-4a6529d0"]]);/**!
|
|
* Sortable 1.14.0
|
|
* @author RubaXa <trash@rubaxa.org>
|
|
* @author owenm <owen23355@gmail.com>
|
|
* @license MIT
|
|
*/function oye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oye(Object(n),!0).forEach(function(r){fkn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oye(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function T$(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T$=function(t){return typeof t}:T$=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T$(e)}function fkn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _g(){return _g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_g.apply(this,arguments)}function gkn(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function mkn(e,t){if(e==null)return{};var n=gkn(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var vkn="1.14.0";function mg(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Fg=mg(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),DT=mg(/Edge/i),aye=mg(/firefox/i),w2=mg(/safari/i)&&!mg(/chrome/i)&&!mg(/android/i),d$e=mg(/iP(ad|od|hone)/i),ykn=mg(/chrome/i)&&mg(/android/i),h$e={capture:!1,passive:!1};function Ri(e,t,n){e.addEventListener(t,n,!Fg&&h$e)}function Si(e,t,n){e.removeEventListener(t,n,!Fg&&h$e)}function HM(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function bkn(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ap(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&HM(e,t):HM(e,t))||r&&e===n)return e;if(e===n)break}while(e=bkn(e))}return null}var sye=/\s+/g;function Nu(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(sye," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(sye," ")}}function wr(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function yO(e,t){var n="";if(typeof e=="string")n=e;else do{var r=wr(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function p$e(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Bp(){var e=document.scrollingElement;return e||document.documentElement}function ts(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var o,a,s,l,u,c,d;if(e!==window&&e.parentNode&&e!==Bp()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,u=o.right,c=o.height,d=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Fg))do if(i&&i.getBoundingClientRect&&(wr(i,"transform")!=="none"||n&&wr(i,"position")!=="static")){var h=i.getBoundingClientRect();a-=h.top+parseInt(wr(i,"border-top-width")),s-=h.left+parseInt(wr(i,"border-left-width")),l=a+o.height,u=s+o.width;break}while(i=i.parentNode);if(r&&e!==window){var f=yO(i||e),g=f&&f.a,b=f&&f.d;f&&(a/=b,s/=g,d/=g,c/=b,l=a+c,u=s+d)}return{top:a,left:s,bottom:l,right:u,width:d,height:c}}}function lye(e,t,n){for(var r=Dv(e,!0),i=ts(e)[t];r;){var o=ts(r)[n],a=void 0;if(a=i>=o,!a)return r;if(r===Bp())break;r=Dv(r,!1)}return!1}function bx(e,t,n,r){for(var i=0,o=0,a=e.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==Cr.ghost&&(r||a[o]!==Cr.dragged)&&ap(a[o],n.draggable,e,!1)){if(i===t)return a[o];i++}o++}return null}function Eee(e,t){for(var n=e.lastElementChild;n&&(n===Cr.ghost||wr(n,"display")==="none"||t&&!HM(n,t));)n=n.previousElementSibling;return n||null}function Rc(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Cr.clone&&(!t||HM(e,t))&&n++;return n}function uye(e){var t=0,n=0,r=Bp();if(e)do{var i=yO(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function wkn(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function Dv(e,t){if(!e||!e.getBoundingClientRect)return Bp();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=wr(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Bp();if(r||t)return n;r=!0}}while(n=n.parentNode);return Bp()}function Ckn(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function O7(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var C2;function f$e(e,t){return function(){if(!C2){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),C2=setTimeout(function(){C2=void 0},t)}}}function Okn(){clearTimeout(C2),C2=void 0}function g$e(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function m$e(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var Xu="Sortable"+new Date().getTime();function xkn(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(r){if(!(wr(r,"display")==="none"||r===Cr.ghost)){e.push({target:r,rect:ts(r)});var i=Yp({},e[e.length-1].rect);if(r.thisAnimationDuration){var o=yO(r,!0);o&&(i.top-=o.f,i.left-=o.e)}r.fromRect=i}})}},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(wkn(e,{target:n}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var i=!1,o=0;e.forEach(function(a){var s=0,l=a.target,u=l.fromRect,c=ts(l),d=l.prevFromRect,h=l.prevToRect,f=a.rect,g=yO(l,!0);g&&(c.top-=g.f,c.left-=g.e),l.toRect=c,l.thisAnimationDuration&&O7(d,c)&&!O7(u,c)&&(f.top-c.top)/(f.left-c.left)===(u.top-c.top)/(u.left-c.left)&&(s=Akn(f,d,h,r.options)),O7(c,u)||(l.prevFromRect=u,l.prevToRect=c,s||(s=r.options.animation),r.animate(l,f,c,s)),s&&(i=!0,o=Math.max(o,s),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},s),l.thisAnimationDuration=s)}),clearTimeout(t),i?t=setTimeout(function(){typeof n=="function"&&n()},o):typeof n=="function"&&n(),e=[]},animate:function(n,r,i,o){if(o){wr(n,"transition",""),wr(n,"transform","");var a=yO(this.el),s=a&&a.a,l=a&&a.d,u=(r.left-i.left)/(s||1),c=(r.top-i.top)/(l||1);n.animatingX=!!u,n.animatingY=!!c,wr(n,"transform","translate3d("+u+"px,"+c+"px,0)"),this.forRepaintDummy=Skn(n),wr(n,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),wr(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){wr(n,"transition",""),wr(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},o)}}}}function Skn(e){return e.offsetWidth}function Akn(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var gC=[],x7={initializeByDefault:!0},RT={mount:function(e){for(var t in x7)x7.hasOwnProperty(t)&&!(t in e)&&(e[t]=x7[t]);gC.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),gC.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";gC.forEach(function(o){t[o.pluginName]&&(t[o.pluginName][i]&&t[o.pluginName][i](Yp({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](Yp({sortable:t},n)))})},initializePlugins:function(e,t,n,r){gC.forEach(function(a){var s=a.pluginName;if(!(!e.options[s]&&!a.initializeByDefault)){var l=new a(e,t,e.options);l.sortable=e,l.options=e.options,e[s]=l,_g(n,l.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var o=this.modifyOption(e,i,e.options[i]);typeof o<"u"&&(e.options[i]=o)}},getEventProperties:function(e,t){var n={};return gC.forEach(function(r){typeof r.eventProperties=="function"&&_g(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return gC.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]=="function"&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}};function Ikn(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,h=e.originalEvent,f=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[Xu],!!t){var b,v=t.options,m="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Fg&&!DT?b=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(r,!0,!0)),b.to=a||n,b.from=s||n,b.item=i||n,b.clone=o,b.oldIndex=l,b.newIndex=u,b.oldDraggableIndex=c,b.newDraggableIndex=d,b.originalEvent=h,b.pullMode=f?f.lastPutMode:void 0;var w=Yp(Yp({},g),RT.getEventProperties(r,t));for(var k in w)b[k]=w[k];n&&n.dispatchEvent(b),v[m]&&v[m].call(t,b)}}var kkn=["evt"],Yl=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=mkn(n,kkn);RT.pluginEvent.bind(Cr)(e,t,Yp({dragEl:xn,parentEl:ca,ghostEl:Fr,rootEl:Vo,nextEl:Xy,lastDownEl:P$,cloneEl:da,cloneHidden:Cv,dragStarted:mk,putSortable:Ds,activeSortable:Cr.active,originalEvent:r,oldIndex:jC,oldDraggableIndex:O2,newIndex:Vu,newDraggableIndex:dv,hideGhostForTarget:w$e,unhideGhostForTarget:C$e,cloneNowHidden:function(){Cv=!0},cloneNowShown:function(){Cv=!1},dispatchSortableEvent:function(o){Il({sortable:t,name:o,originalEvent:r})}},i))};function Il(e){Ikn(Yp({putSortable:Ds,cloneEl:da,targetEl:xn,rootEl:Vo,oldIndex:jC,oldDraggableIndex:O2,newIndex:Vu,newDraggableIndex:dv},e))}var xn,ca,Fr,Vo,Xy,P$,da,Cv,jC,Vu,O2,dv,qR,Ds,_C=!1,zM=!1,ZM=[],Fy,Bd,S7,A7,cye,dye,mk,mC,x2,S2=!1,JR=!1,D$,Us,I7=[],MQ=!1,GM=[],m9=typeof document<"u",e3=d$e,hye=DT||Fg?"cssFloat":"float",Ekn=m9&&!ykn&&!d$e&&"draggable"in document.createElement("div"),v$e=function(){if(m9){if(Fg)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),y$e=function(e,t){var n=wr(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=bx(e,0,t),o=bx(e,1,t),a=i&&wr(i),s=o&&wr(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+ts(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+ts(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&a.float!=="none"){var c=a.float==="left"?"left":"right";return o&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return i&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=r&&n[hye]==="none"||o&&n[hye]==="none"&&l+u>r)?"vertical":"horizontal"},_kn=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||i===s||r+o/2===a+l/2},Tkn=function(e,t){var n;return ZM.some(function(r){var i=r[Xu].options.emptyInsertThreshold;if(!(!i||Eee(r))){var o=ts(r),a=e>=o.left-i&&e<=o.right+i,s=t>=o.top-i&&t<=o.bottom+i;if(a&&s)return n=r}}),n},b$e=function(e){function t(i,o){return function(a,s,l,u){var c=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(i==null&&(o||c))return!0;if(i==null||i===!1)return!1;if(o&&i==="clone")return i;if(typeof i=="function")return t(i(a,s,l,u),o)(a,s,l,u);var d=(o?a:s).options.group.name;return i===!0||typeof i=="string"&&i===d||i.join&&i.indexOf(d)>-1}}var n={},r=e.group;(!r||T$(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},w$e=function(){!v$e&&Fr&&wr(Fr,"display","none")},C$e=function(){!v$e&&Fr&&wr(Fr,"display","")};m9&&document.addEventListener("click",function(e){if(zM)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),zM=!1,!1},!0);var Ny=function(e){if(xn){e=e.touches?e.touches[0]:e;var t=Tkn(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Xu]._onDragOver(n)}}},Pkn=function(e){xn&&xn.parentNode[Xu]._isOutsideThisEl(e.target)};function Cr(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=_g({},t),e[Xu]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return y$e(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,a){o.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Cr.supportPointer!==!1&&"PointerEvent"in window&&!w2,emptyInsertThreshold:5};RT.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);b$e(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:Ekn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Ri(e,"pointerdown",this._onTapStart):(Ri(e,"mousedown",this._onTapStart),Ri(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ri(e,"dragover",this),Ri(e,"dragenter",this)),ZM.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),_g(this,xkn())}Cr.prototype={constructor:Cr,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(mC=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,xn):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(Nkn(n),!xn&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||r.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&w2&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=ap(s,r.draggable,n,!1),!(s&&s.animated)&&P$!==s)){if(jC=Rc(s),O2=Rc(s,r.draggable),typeof u=="function"){if(u.call(this,e,s,this)){Il({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Yl("filter",t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=ap(l,c.trim(),n,!1),c)return Il({sortable:t,rootEl:c,name:"filter",targetEl:s,fromEl:n,toEl:n}),Yl("filter",t,{evt:e}),!0}),u)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!ap(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,o=r.options,a=i.ownerDocument,s;if(n&&!xn&&n.parentNode===i){var l=ts(n);if(Vo=i,xn=n,ca=xn.parentNode,Xy=xn.nextSibling,P$=n,qR=o.group,Cr.dragged=xn,Fy={target:xn,clientX:(t||e).clientX,clientY:(t||e).clientY},cye=Fy.clientX-l.left,dye=Fy.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,xn.style["will-change"]="all",s=function(){if(Yl("delayEnded",r,{evt:e}),Cr.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!aye&&r.nativeDraggable&&(xn.draggable=!0),r._triggerDragStart(e,t),Il({sortable:r,name:"choose",originalEvent:e}),Nu(xn,o.chosenClass,!0)},o.ignore.split(",").forEach(function(u){p$e(xn,u.trim(),k7)}),Ri(a,"dragover",Ny),Ri(a,"mousemove",Ny),Ri(a,"touchmove",Ny),Ri(a,"mouseup",r._onDrop),Ri(a,"touchend",r._onDrop),Ri(a,"touchcancel",r._onDrop),aye&&this.nativeDraggable&&(this.options.touchStartThreshold=4,xn.draggable=!0),Yl("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(DT||Fg))){if(Cr.eventCanceled){this._onDrop();return}Ri(a,"mouseup",r._disableDelayedDrag),Ri(a,"touchend",r._disableDelayedDrag),Ri(a,"touchcancel",r._disableDelayedDrag),Ri(a,"mousemove",r._delayedDragTouchMoveHandler),Ri(a,"touchmove",r._delayedDragTouchMoveHandler),o.supportPointer&&Ri(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,o.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){xn&&k7(xn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Si(e,"mouseup",this._disableDelayedDrag),Si(e,"touchend",this._disableDelayedDrag),Si(e,"touchcancel",this._disableDelayedDrag),Si(e,"mousemove",this._delayedDragTouchMoveHandler),Si(e,"touchmove",this._delayedDragTouchMoveHandler),Si(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?Ri(document,"pointermove",this._onTouchMove):t?Ri(document,"touchmove",this._onTouchMove):Ri(document,"mousemove",this._onTouchMove):(Ri(xn,"dragend",this),Ri(Vo,"dragstart",this._onDragStart));try{document.selection?R$(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(_C=!1,Vo&&xn){Yl("dragStarted",this,{evt:t}),this.nativeDraggable&&Ri(document,"dragover",Pkn);var n=this.options;!e&&Nu(xn,n.dragClass,!1),Nu(xn,n.ghostClass,!0),Cr.active=this,e&&this._appendGhost(),Il({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Bd){this._lastX=Bd.clientX,this._lastY=Bd.clientY,w$e();for(var e=document.elementFromPoint(Bd.clientX,Bd.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Bd.clientX,Bd.clientY),e!==t);)t=e;if(xn.parentNode[Xu]._isOutsideThisEl(e),t)do{if(t[Xu]){var n=void 0;if(n=t[Xu]._onDragOver({clientX:Bd.clientX,clientY:Bd.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);C$e()}},_onTouchMove:function(e){if(Fy){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=Fr&&yO(Fr,!0),a=Fr&&o&&o.a,s=Fr&&o&&o.d,l=e3&&Us&&uye(Us),u=(i.clientX-Fy.clientX+r.x)/(a||1)+(l?l[0]-I7[0]:0)/(a||1),c=(i.clientY-Fy.clientY+r.y)/(s||1)+(l?l[1]-I7[1]:0)/(s||1);if(!Cr.active&&!_C){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Fr){o?(o.e+=u-(S7||0),o.f+=c-(A7||0)):o={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");wr(Fr,"webkitTransform",d),wr(Fr,"mozTransform",d),wr(Fr,"msTransform",d),wr(Fr,"transform",d),S7=u,A7=c,Bd=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Fr){var e=this.options.fallbackOnBody?document.body:Vo,t=ts(xn,!0,e3,!0,e),n=this.options;if(e3){for(Us=e;wr(Us,"position")==="static"&&wr(Us,"transform")==="none"&&Us!==document;)Us=Us.parentNode;Us!==document.body&&Us!==document.documentElement?(Us===document&&(Us=Bp()),t.top+=Us.scrollTop,t.left+=Us.scrollLeft):Us=Bp(),I7=uye(Us)}Fr=xn.cloneNode(!0),Nu(Fr,n.ghostClass,!1),Nu(Fr,n.fallbackClass,!0),Nu(Fr,n.dragClass,!0),wr(Fr,"transition",""),wr(Fr,"transform",""),wr(Fr,"box-sizing","border-box"),wr(Fr,"margin",0),wr(Fr,"top",t.top),wr(Fr,"left",t.left),wr(Fr,"width",t.width),wr(Fr,"height",t.height),wr(Fr,"opacity","0.8"),wr(Fr,"position",e3?"absolute":"fixed"),wr(Fr,"zIndex","100000"),wr(Fr,"pointerEvents","none"),Cr.ghost=Fr,e.appendChild(Fr),wr(Fr,"transform-origin",cye/parseInt(Fr.style.width)*100+"% "+dye/parseInt(Fr.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;if(Yl("dragStart",this,{evt:e}),Cr.eventCanceled){this._onDrop();return}Yl("setupClone",this),Cr.eventCanceled||(da=m$e(xn),da.draggable=!1,da.style["will-change"]="",this._hideClone(),Nu(da,this.options.chosenClass,!1),Cr.clone=da),n.cloneId=R$(function(){Yl("clone",n),!Cr.eventCanceled&&(n.options.removeCloneOnHide||Vo.insertBefore(da,xn),n._hideClone(),Il({sortable:n,name:"clone"}))}),!t&&Nu(xn,i.dragClass,!0),t?(zM=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Si(document,"mouseup",n._onDrop),Si(document,"touchend",n._onDrop),Si(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,xn)),Ri(document,"drop",n),wr(xn,"transform","translateZ(0)")),_C=!0,n._dragStartId=R$(n._dragStarted.bind(n,t,e)),Ri(document,"selectstart",n),mk=!0,w2&&wr(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,r,i,o,a=this.options,s=a.group,l=Cr.active,u=qR===s,c=a.sort,d=Ds||l,h,f=this,g=!1;if(MQ)return;function b(L,V){Yl(L,f,Yp({evt:e,isOwner:u,axis:h?"vertical":"horizontal",revert:o,dragRect:r,targetRect:i,canSort:c,fromSortable:d,target:n,completed:m,onMove:function(H,Q){return t3(Vo,t,xn,r,H,ts(H),e,Q)},changed:w},V))}function v(){b("dragOverAnimationCapture"),f.captureAnimationState(),f!==d&&d.captureAnimationState()}function m(L){return b("dragOverCompleted",{insertion:L}),L&&(u?l._hideClone():l._showClone(f),f!==d&&(Nu(xn,Ds?Ds.options.ghostClass:l.options.ghostClass,!1),Nu(xn,a.ghostClass,!0)),Ds!==f&&f!==Cr.active?Ds=f:f===Cr.active&&Ds&&(Ds=null),d===f&&(f._ignoreWhileAnimating=n),f.animateAll(function(){b("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===xn&&!xn.animated||n===t&&!n.animated)&&(mC=null),!a.dragoverBubble&&!e.rootEl&&n!==document&&(xn.parentNode[Xu]._isOutsideThisEl(e.target),!L&&Ny(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function w(){Vu=Rc(xn),dv=Rc(xn,a.draggable),Il({sortable:f,name:"change",toEl:t,newIndex:Vu,newDraggableIndex:dv,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=ap(n,a.draggable,t,!0),b("dragOver"),Cr.eventCanceled)return g;if(xn.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||f._ignoreWhileAnimating===n)return m(!1);if(zM=!1,l&&!a.disabled&&(u?c||(o=ca!==Vo):Ds===this||(this.lastPutMode=qR.checkPull(this,l,xn,e))&&s.checkPut(this,l,xn,e))){if(h=this._getDirection(e,n)==="vertical",r=ts(xn),b("dragOverValid"),Cr.eventCanceled)return g;if(o)return ca=Vo,v(),this._hideClone(),b("revert"),Cr.eventCanceled||(Xy?Vo.insertBefore(xn,Xy):Vo.appendChild(xn)),m(!0);var k=Eee(t,a.draggable);if(!k||Mkn(e,h,this)&&!k.animated){if(k===xn)return m(!1);if(k&&t===e.target&&(n=k),n&&(i=ts(n)),t3(Vo,t,xn,r,n,i,e,!!n)!==!1)return v(),t.appendChild(xn),ca=t,w(),m(!0)}else if(k&&$kn(e,h,this)){var T=bx(t,0,a,!0);if(T===xn)return m(!1);if(n=T,i=ts(n),t3(Vo,t,xn,r,n,i,e,!1)!==!1)return v(),t.insertBefore(xn,T),ca=t,w(),m(!0)}else if(n.parentNode===t){i=ts(n);var S=0,I,O=xn.parentNode!==t,y=!_kn(xn.animated&&xn.toRect||r,n.animated&&n.toRect||i,h),_=h?"top":"left",A=lye(n,"top","top")||lye(xn,"top","top"),R=A?A.scrollTop:void 0;mC!==n&&(I=i[_],S2=!1,JR=!y&&a.invertSwap||O),S=Lkn(e,n,i,h,y?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,JR,mC===n);var D;if(S!==0){var C=Rc(xn);do C-=S,D=ca.children[C];while(D&&(wr(D,"display")==="none"||D===Fr))}if(S===0||D===n)return m(!1);mC=n,x2=S;var x=n.nextElementSibling,P=!1;P=S===1;var $=t3(Vo,t,xn,r,n,i,e,P);if($!==!1)return($===1||$===-1)&&(P=$===1),MQ=!0,setTimeout(Rkn,30),v(),P&&!x?t.appendChild(xn):n.parentNode.insertBefore(xn,P?x:n),A&&g$e(A,0,R-A.scrollTop),ca=xn.parentNode,I!==void 0&&!JR&&(D$=Math.abs(I-ts(n)[_])),w(),m(!0)}if(t.contains(xn))return m(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Si(document,"mousemove",this._onTouchMove),Si(document,"touchmove",this._onTouchMove),Si(document,"pointermove",this._onTouchMove),Si(document,"dragover",Ny),Si(document,"mousemove",Ny),Si(document,"touchmove",Ny)},_offUpEvents:function(){var e=this.el.ownerDocument;Si(e,"mouseup",this._onDrop),Si(e,"touchend",this._onDrop),Si(e,"pointerup",this._onDrop),Si(e,"touchcancel",this._onDrop),Si(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(Vu=Rc(xn),dv=Rc(xn,n.draggable),Yl("drop",this,{evt:e}),ca=xn&&xn.parentNode,Vu=Rc(xn),dv=Rc(xn,n.draggable),Cr.eventCanceled){this._nulling();return}_C=!1,JR=!1,S2=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),LQ(this.cloneId),LQ(this._dragStartId),this.nativeDraggable&&(Si(document,"drop",this),Si(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),w2&&wr(document.body,"user-select",""),wr(xn,"transform",""),e&&(mk&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Fr&&Fr.parentNode&&Fr.parentNode.removeChild(Fr),(Vo===ca||Ds&&Ds.lastPutMode!=="clone")&&da&&da.parentNode&&da.parentNode.removeChild(da),xn&&(this.nativeDraggable&&Si(xn,"dragend",this),k7(xn),xn.style["will-change"]="",mk&&!_C&&Nu(xn,Ds?Ds.options.ghostClass:this.options.ghostClass,!1),Nu(xn,this.options.chosenClass,!1),Il({sortable:this,name:"unchoose",toEl:ca,newIndex:null,newDraggableIndex:null,originalEvent:e}),Vo!==ca?(Vu>=0&&(Il({rootEl:ca,name:"add",toEl:ca,fromEl:Vo,originalEvent:e}),Il({sortable:this,name:"remove",toEl:ca,originalEvent:e}),Il({rootEl:ca,name:"sort",toEl:ca,fromEl:Vo,originalEvent:e}),Il({sortable:this,name:"sort",toEl:ca,originalEvent:e})),Ds&&Ds.save()):Vu!==jC&&Vu>=0&&(Il({sortable:this,name:"update",toEl:ca,originalEvent:e}),Il({sortable:this,name:"sort",toEl:ca,originalEvent:e})),Cr.active&&((Vu==null||Vu===-1)&&(Vu=jC,dv=O2),Il({sortable:this,name:"end",toEl:ca,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Yl("nulling",this),Vo=xn=ca=Fr=Xy=da=P$=Cv=Fy=Bd=mk=Vu=dv=jC=O2=mC=x2=Ds=qR=Cr.dragged=Cr.ghost=Cr.clone=Cr.active=null,GM.forEach(function(e){e.checked=!0}),GM.length=S7=A7=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":xn&&(this._onDragOver(e),Dkn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)t=n[r],ap(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||Fkn(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(i,o){var a=r.children[o];ap(a,this.options.draggable,r,!1)&&(n[i]=a)},this),t&&this.captureAnimationState(),e.forEach(function(i){n[i]&&(r.removeChild(n[i]),r.appendChild(n[i]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return ap(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var r=RT.modifyOption(this,e,t);typeof r<"u"?n[e]=r:n[e]=t,e==="group"&&b$e(n)},destroy:function(){Yl("destroy",this);var e=this.el;e[Xu]=null,Si(e,"mousedown",this._onTapStart),Si(e,"touchstart",this._onTapStart),Si(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Si(e,"dragover",this),Si(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),ZM.splice(ZM.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Cv){if(Yl("hideClone",this),Cr.eventCanceled)return;wr(da,"display","none"),this.options.removeCloneOnHide&&da.parentNode&&da.parentNode.removeChild(da),Cv=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Cv){if(Yl("showClone",this),Cr.eventCanceled)return;xn.parentNode==Vo&&!this.options.group.revertClone?Vo.insertBefore(da,xn):Xy?Vo.insertBefore(da,Xy):Vo.appendChild(da),this.options.group.revertClone&&this.animate(xn,da),wr(da,"display",""),Cv=!1}}};function Dkn(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function t3(e,t,n,r,i,o,a,s){var l,u=e[Xu],c=u.options.onMove,d;return window.CustomEvent&&!Fg&&!DT?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||ts(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),c&&(d=c.call(u,l,a)),d}function k7(e){e.draggable=!1}function Rkn(){MQ=!1}function $kn(e,t,n){var r=ts(bx(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function Mkn(e,t,n){var r=ts(Eee(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function Lkn(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,h=!1;if(!a){if(s&&D$<u*i){if(!S2&&(x2===1?l>c+u*o/2:l<d-u*o/2)&&(S2=!0),S2)h=!0;else if(x2===1?l<c+D$:l>d-D$)return-x2}else if(l>c+u*(1-i)/2&&l<d-u*(1-i)/2)return Bkn(t)}return h=h||a,h&&(l<c+u*o/2||l>d-u*o/2)?l>c+u/2?1:-1:0}function Bkn(e){return Rc(xn)<Rc(e)?1:-1}function Fkn(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Nkn(e){GM.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&GM.push(r)}}function R$(e){return setTimeout(e,0)}function LQ(e){return clearTimeout(e)}m9&&Ri(document,"touchmove",function(e){(Cr.active||_C)&&e.cancelable&&e.preventDefault()});Cr.utils={on:Ri,off:Si,css:wr,find:p$e,is:function(e,t){return!!ap(e,t,e,!1)},extend:Ckn,throttle:f$e,closest:ap,toggleClass:Nu,clone:m$e,index:Rc,nextTick:R$,cancelNextTick:LQ,detectDirection:y$e,getChild:bx};Cr.get=function(e){return e[Xu]};Cr.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Cr.utils=Yp(Yp({},Cr.utils),r.utils)),RT.mount(r)})};Cr.create=function(e,t){return new Cr(e,t)};Cr.version=vkn;var Va=[],vk,BQ,FQ=!1,E7,_7,QM,yk;function Vkn(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?Ri(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ri(document,"pointermove",this._handleFallbackAutoScroll):n.touches?Ri(document,"touchmove",this._handleFallbackAutoScroll):Ri(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?Si(document,"dragover",this._handleAutoScroll):(Si(document,"pointermove",this._handleFallbackAutoScroll),Si(document,"touchmove",this._handleFallbackAutoScroll),Si(document,"mousemove",this._handleFallbackAutoScroll)),pye(),$$(),Okn()},nulling:function(){QM=BQ=vk=FQ=yk=E7=_7=null,Va.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var r=this,i=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,a=document.elementFromPoint(i,o);if(QM=t,n||this.options.forceAutoScrollFallback||DT||Fg||w2){T7(t,this.options,a,n);var s=Dv(a,!0);FQ&&(!yk||i!==E7||o!==_7)&&(yk&&pye(),yk=setInterval(function(){var l=Dv(document.elementFromPoint(i,o),!0);l!==s&&(s=l,$$()),T7(t,r.options,l,n)},10),E7=i,_7=o)}else{if(!this.options.bubbleScroll||Dv(a,!0)===Bp()){$$();return}T7(t,this.options,Dv(a,!1),!1)}}},_g(e,{pluginName:"scroll",initializeByDefault:!0})}function $$(){Va.forEach(function(e){clearInterval(e.pid)}),Va=[]}function pye(){clearInterval(yk)}var T7=f$e(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,s=t.scrollSpeed,l=Bp(),u=!1,c;BQ!==n&&(BQ=n,$$(),vk=t.scroll,c=t.scrollFn,vk===!0&&(vk=Dv(n,!0)));var d=0,h=vk;do{var f=h,g=ts(f),b=g.top,v=g.bottom,m=g.left,w=g.right,k=g.width,T=g.height,S=void 0,I=void 0,O=f.scrollWidth,y=f.scrollHeight,_=wr(f),A=f.scrollLeft,R=f.scrollTop;f===l?(S=k<O&&(_.overflowX==="auto"||_.overflowX==="scroll"||_.overflowX==="visible"),I=T<y&&(_.overflowY==="auto"||_.overflowY==="scroll"||_.overflowY==="visible")):(S=k<O&&(_.overflowX==="auto"||_.overflowX==="scroll"),I=T<y&&(_.overflowY==="auto"||_.overflowY==="scroll"));var D=S&&(Math.abs(w-i)<=a&&A+k<O)-(Math.abs(m-i)<=a&&!!A),C=I&&(Math.abs(v-o)<=a&&R+T<y)-(Math.abs(b-o)<=a&&!!R);if(!Va[d])for(var x=0;x<=d;x++)Va[x]||(Va[x]={});(Va[d].vx!=D||Va[d].vy!=C||Va[d].el!==f)&&(Va[d].el=f,Va[d].vx=D,Va[d].vy=C,clearInterval(Va[d].pid),(D!=0||C!=0)&&(u=!0,Va[d].pid=setInterval((function(){r&&this.layer===0&&Cr.active._onTouchMove(QM);var P=Va[this.layer].vy?Va[this.layer].vy*s:0,$=Va[this.layer].vx?Va[this.layer].vx*s:0;typeof c=="function"&&c.call(Cr.dragged.parentNode[Xu],$,P,e,QM,Va[this.layer].el)!=="continue"||g$e(Va[this.layer].el,$,P)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==l&&(h=Dv(h,!1)));FQ=u}},30),O$e=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||i;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function _ee(){}_ee.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=bx(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:O$e};_g(_ee,{pluginName:"revertOnSpill"});function Tee(){}Tee.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:O$e};_g(Tee,{pluginName:"removeOnSpill"});Cr.mount(new Vkn);Cr.mount(Tee,_ee);var jkn=Object.defineProperty,Wkn=Object.defineProperties,Hkn=Object.getOwnPropertyDescriptors,fye=Object.getOwnPropertySymbols,zkn=Object.prototype.hasOwnProperty,Zkn=Object.prototype.propertyIsEnumerable,gye=(e,t,n)=>t in e?jkn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rv=(e,t)=>{for(var n in t||(t={}))zkn.call(t,n)&&gye(e,n,t[n]);if(fye)for(var n of fye(t))Zkn.call(t,n)&&gye(e,n,t[n]);return e},UM=(e,t)=>Wkn(e,Hkn(t));function P7(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function mye(e,t,n){const r=n===0?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}function Gkn(){return typeof window<"u"?window.console:global.console}const Qkn=Gkn();function Ukn(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const Xkn=/-(\w)/g,Ykn=Ukn(e=>e.replace(Xkn,(t,n)=>n.toUpperCase())),x$e=["Start","Add","Remove","Update","End"],S$e=["Choose","Unchoose","Sort","Filter","Clone"],A$e=["Move"],Kkn=[A$e,x$e,S$e].flatMap(e=>e).map(e=>`on${e}`),NQ={manage:A$e,manageAndEmit:x$e,emit:S$e};function qkn(e){return Kkn.indexOf(e)!==-1}const Jkn=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function e2n(e){return Jkn.includes(e)}function t2n(e){return["transition-group","TransitionGroup"].includes(e)}function I$e(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function k$e(e){return e.reduce((t,[n,r])=>(t[n]=r,t),{})}function n2n({$attrs:e,componentData:t={}}){const n=k$e(Object.entries(e).filter(([r,i])=>I$e(r)));return Rv(Rv({},n),t)}function r2n({$attrs:e,callBackBuilder:t}){const n=k$e(E$e(e));Object.entries(t).forEach(([i,o])=>{NQ[i].forEach(a=>{n[`on${a}`]=o(a)})});const r=`[data-draggable]${n.draggable||""}`;return UM(Rv({},n),{draggable:r})}function E$e(e){return Object.entries(e).filter(([t,n])=>!I$e(t)).map(([t,n])=>[Ykn(t),n]).filter(([t,n])=>!qkn(t))}const vye=e=>{const t=e.el||Array.isArray(e.children)&&e.children[0].el.parentNode;return t||console.error("使用 transition-group , 需要在slot中template内至少2层html标签"),t||{}},i2n=(e,t)=>e.__draggable_context=t,yye=e=>e.__draggable_context;class o2n{constructor({nodes:{header:t,default:n,footer:r},root:i,realList:o}){this.defaultNodes=n,this.children=[...t,...n,...r],this.externalComponent=i.externalComponent,this.rootTransition=i.transition,this.tag=i.tag,this.realList=o}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(t,n){const{tag:r,children:i,_isRootComponent:o}=this;return t(r,n,o?{default:()=>i}:i)}updated(){const{defaultNodes:t,realList:n}=this;t.forEach((r,i)=>{i2n(vye(r),{element:n[i],index:i})})}getUnderlyingVm(t){return yye(t)}getVmIndexFromDomIndex(t,n){const{defaultNodes:r}=this,{length:i}=r,o=n.children,a=o.item(t);if(a===null)return i;const s=yye(a);if(s)return s.index;if(i===0)return 0;const l=vye(r[0]),u=[...o].findIndex(c=>c===l);return t<u?0:i}}function a2n(e,t){const n=e[t];return n?n():[]}function s2n({$slots:e,realList:t,getKey:n}){const r=t||[],[i,o]=["header","footer"].map(l=>a2n(e,l)),{item:a}=e;if(!a)throw new Error("draggable element must have an item slot");const s=r.flatMap((l,u)=>a({element:l,index:u}).map(c=>(c.key=n(l),c.props=UM(Rv({},c.props||{}),{"data-draggable":!0}),c)));if(s.length!==r.length)throw new Error("Item slot must have only one child");return{header:i,footer:o,default:s}}function l2n(e){const t=t2n(e),n=!e2n(e)&&!t;return{transition:t,externalComponent:n,tag:n?Ar(e):t?hU:e}}function u2n({$slots:e,tag:t,realList:n,getKey:r}){const i=s2n({$slots:e,realList:n,getKey:r}),o=l2n(t);return new o2n({nodes:i,root:o,realList:n})}function _$e(e,t){mn(()=>this.$emit(e.toLowerCase(),t))}function T$e(e){return(t,n)=>{if(this.realList!==null)return this[`onDrag${e}`](t,n)}}function c2n(e){const t=T$e.call(this,e);return(n,r)=>{t.call(this,n,r),_$e.call(this,e,n)}}let D7=null;const d2n={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},h2n=["update:modelValue","change",...[...NQ.manageAndEmit,...NQ.emit].map(e=>e.toLowerCase())],Pee=ft({name:"draggable",inheritAttrs:!1,props:d2n,emits:h2n,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:e,$attrs:t,tag:n,componentData:r,realList:i,getKey:o}=this,a=u2n({$slots:e,tag:n,realList:i,getKey:o});this.componentStructure=a;const s=n2n({$attrs:t,componentData:r});return a.render(Yn,s)}catch(e){return this.error=!0,Yn("pre",{style:{color:"red"}},e.stack)}},created(){this.list!==null&&this.modelValue!==null&&Qkn.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:e,$el:t,componentStructure:n}=this;n.updated();const r=r2n({$attrs:e,callBackBuilder:{manageAndEmit:o=>c2n.call(this,o),emit:o=>_$e.bind(this,o),manage:o=>T$e.call(this,o)}}),i=t.nodeType===1?t:t.parentElement;this._sortable=new Cr(i,r),this.targetDomElement=i,i.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:e}=this;return e||this.modelValue},getKey(){const{itemKey:e}=this;return typeof e=="function"?e:t=>t[e]}},watch:{$attrs:{handler(e){const{_sortable:t}=this;t&&E$e(e).forEach(([n,r])=>{t.option(n,r)})},deep:!0}},methods:{getUnderlyingVm(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent(e){return e.__draggable_component__},emitChanges(e){mn(()=>this.$emit("change",e))},alterList(e){if(this.list){e(this.list);return}const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){const e=t=>t.splice(...arguments);this.alterList(e)},updatePosition(e,t){const n=r=>r.splice(t,0,r.splice(e,1)[0]);this.alterList(n)},getRelatedContextFromMoveEvent({to:e,related:t}){const n=this.getUnderlyingPotencialDraggableComponent(e);if(!n)return{component:n};const r=n.realList,i={list:r,component:n};if(e!==t&&r){const o=n.getUnderlyingVm(t)||{};return Rv(Rv({},o),i)}return i},getVmIndexFromDomIndex(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),D7=e.item},onDragAdd(e){const t=e.item._underlying_vm_;if(t===void 0)return;P7(e.item);const n=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(n,0,t);const r={element:t,newIndex:n};this.emitChanges({added:r})},onDragRemove(e){if(mye(this.$el,e.item,e.oldIndex),e.pullMode==="clone"){P7(e.clone);return}const{index:t,element:n}=this.context;this.spliceList(t,1);const r={element:n,oldIndex:t};this.emitChanges({removed:r})},onDragUpdate(e){P7(e.item),mye(e.from,e.item,e.oldIndex);const t=this.context.index,n=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,n);const r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex(e,t){if(!e.element)return 0;const n=[...t.to.children].filter(o=>o.style.display!=="none"),r=n.indexOf(t.related),i=e.component.getVmIndexFromDomIndex(r);return n.indexOf(D7)!==-1||!t.willInsertAfter?i:i+1},onDragMove(e,t){const{move:n,realList:r}=this;if(!n||!r)return!0;const i=this.getRelatedContextFromMoveEvent(e),o=this.computeFutureIndex(i,e),a=UM(Rv({},this.context),{futureIndex:o}),s=UM(Rv({},e),{relatedContext:i,draggedContext:a});return n(s,t)},onDragEnd(){D7=null}}}),p2n=Object.assign({"/src/elements/Alert/index.js":UOe,"/src/elements/Button/index.js":XOe,"/src/elements/Card/index.js":YOe,"/src/elements/Cascader/index.js":qOe,"/src/elements/Checkbox/index.js":JOe,"/src/elements/CodeEdit/index.js":ixe,"/src/elements/Collapse/index.js":axe,"/src/elements/ColorPicker/index.js":sxe,"/src/elements/Custom/index.js":lxe,"/src/elements/DatePicker/index.js":uxe,"/src/elements/Divider/index.js":cxe,"/src/elements/FormList/index.js":dxe,"/src/elements/Gird/index.js":hxe,"/src/elements/IconSelect/index.js":pxe,"/src/elements/Inline/index.js":fxe,"/src/elements/Input/index.js":gxe,"/src/elements/InputNumber/index.js":mxe,"/src/elements/JsonEdit/index.js":yxe,"/src/elements/Markdown/index.js":n2e,"/src/elements/Password/index.js":r2e,"/src/elements/Radio/index.js":i2e,"/src/elements/Rate/index.js":o2e,"/src/elements/RichText/index.js":t$e,"/src/elements/Select/index.js":n$e,"/src/elements/Slider/index.js":r$e,"/src/elements/Switch/index.js":i$e,"/src/elements/Tag/index.js":o$e,"/src/elements/TextArea/index.js":a$e,"/src/elements/Title/index.js":s$e,"/src/elements/Transfer/index.js":l$e,"/src/elements/Upload/index.js":u$e,"/src/elements/UploadImage/index.js":c$e}),n3=e=>Object.values(p2n).map(t=>t.default).filter(t=>(t==null?void 0:t.type)===e).sort((t,n)=>t.order-n.order),f2n=[{title:"基础字段",children:n3("basic")},{title:"高级字段",children:n3("high")},{title:"布局字段",children:n3("layout")},{title:"辅助字段",children:n3("assist")}],g2n={labelWidth:150,labelAlign:"right",size:"default",items:[{label:"用户名",component:"Input",props:{placeholder:"请输入用户名"},designKey:"form-eNR0",name:"username",required:!0},{label:"密码",component:"Password",props:{placeholder:"请输入密码"},designKey:"form-D1x7",name:"password",required:!0}]},m2n={labelWidth:150,labelAlign:"right",size:"default",items:[{label:"用户名",component:"Input",props:{placeholder:"请输入用户名"},designKey:"form-eNR0",name:"username",required:!0},{label:"密码",component:"Password",props:{placeholder:"请输入密码"},designKey:"form-D1x7",name:"password",required:!0},{label:"手机号",component:"Input",props:{placeholder:"请输入..."},designKey:"form-qx0M",name:"phoneNumber",required:!0},{label:"验证码",component:"Input",props:{placeholder:"请输入..."},designKey:"form-M7xE",name:"code"},{component:"Button",props:{name:"立即注册",clickEvent:"custom",customEvent:"{{}}"},designKey:"form-gW1S",name:"1fx9H8"}]},v2n={labelWidth:150,labelAlign:"right",size:"default",items:[{label:"文章标题",component:"Input",props:{placeholder:"请输入..."},designKey:"form-MPd5",name:"title",required:!0},{label:"文章简介",component:"Textarea",props:{autosize:{minRows:4,maxRows:999},placeholder:"请输入..."},designKey:"form-ojdx",name:"introduce"},{label:"标签",component:"Checkbox",props:{mode:"remote",options:[{label:"选项1",value:"value1"},{label:"选项2",value:"value2"},{label:"选项3",value:"value3"}],optionType:"circle",space:0,labelKey:"name",valueKey:"name",api:{url:"/current/query/tag",dataPath:"data",method:"GET",params:{},data:{}}},designKey:"form-ri81",name:"tag",required:!0},{label:"文章类型",component:"Radio",props:{mode:"static",options:[{name:"原创",value:1},{name:"转载",value:2}],optionType:"circle",space:0,labelKey:"name",valueKey:"value"},designKey:"form-emNb",name:"type",required:!0},{label:"文章海报",component:"UploadImage",props:{width:250,height:150,action:"https://hyl999.co/api/upload/image",fileTypes:["jpeg","png"],size:5,uploadKey:"image",dataPath:"fileUrl"},designKey:"form-YM6S",name:"picture"},{label:"文章内容",component:"Markdown",designKey:"form-fSYT",name:"content",required:!0}]},y2n={labelWidth:150,labelAlign:"right",size:"default",items:[{label:"评分",component:"Rate",props:{max:5,"allow-half":!0},designKey:"form-Lx4g",name:"rate",required:!0},{label:"差评原因",component:"Textarea",props:{autocomplete:"off",showWordLimit:!0,type:"textarea",autosize:{minRows:4,maxRows:999},placeholder:"请输入..."},designKey:"form-XyJs",name:"reason",hidden:"{{!$values.rate||$values.rate>3}}"}]},b2n={labelWidth:150,labelAlign:"right",size:"default",items:[{label:"分类",component:"Radio",props:{mode:"static",options:[{name:"前端",id:1},{name:"后端",id:2},{name:"运维",id:3},{name:"其他",id:4}],labelKey:"name",valueKey:"name",optionType:"button",space:0},name:"category",required:!0,designKey:"design-9djJ"},{label:"文章",component:"Radio",props:{mode:"remote",placeholder:"请选择文章",labelKey:"title",valueKey:"id",api:{url:"/current/query/article",method:"GET",params:{filters:{category:"{{$values.category}}"}},dataPath:"data"},optionType:"circle",autoSelectedFirst:!0,direction:"vertical",space:0},name:"article",required:!0,hidden:"{{!$values.category}}",designKey:"design-gr3L"}]},w2n={labelWidth:150,labelAlign:"right",size:"default",items:[{label:"字段1",component:"Input",props:{placeholder:"请输入..."},designKey:"form-NASi",name:"item1",change:[{target:"item2",value:"{{$val * 2}}"},{target:"item3",value:"{{$val + '元'}}"}]},{label:"字段2",component:"Input",props:{placeholder:"请输入..."},designKey:"form-Nasd",name:"item2"},{label:"字段3",component:"Input",props:{placeholder:"请输入..."},designKey:"form-KI1N",name:"item3"}]},C2n={labelWidth:150,labelAlign:"right",size:"default",items:[{label:"选择商品",component:"Select",props:{mode:"static",options:[{name:"商品1",id:"1",price:25},{name:"商品2",id:"2",price:65},{name:"商品3",id:"3",price:100}],placeholder:"请选择...",labelKey:"name",valueKey:"id"},designKey:"form-2Rtu",name:"commodity",change:[{target:"price",value:"{{$select.price}}"}]},{label:"价格",component:"InputNumber",designKey:"form-rS3W",name:"price",props:{min:1,max:9999,step:1,unit:"元",disabled:!0,controlsPosition:"right"}}]},O2n={labelWidth:150,labelAlign:"right",size:"default",items:[{label:"增添用户",component:"FormList",children:[{label:"用户名",component:"Input",props:{placeholder:"请输入文本"},designKey:"design-M91n",name:"username"},{label:"密码",component:"Password",props:{placeholder:"请输入密码"},designKey:"design-kVO2",name:"password"},{label:"设为管理员",component:"Switch",designKey:"design-jC1O",name:"vip",props:{"inline-prompt":0}}],props:{mode:"table"},designKey:"design-pMUa",name:"form-kWJU"}]},x2n=[{name:"登陆账号",schema:g2n,id:"login"},{name:"注册账号",schema:m2n,id:"register"},{name:"写文章",schema:v2n,id:"article"},{name:"自增组件",schema:O2n,id:"formList"},{name:"联动案例1",schema:y2n,id:"linkage1"},{name:"联动案例2",schema:b2n,id:"linkage2"},{name:"联动案例3",schema:w2n,id:"linkage3"},{name:"联动案例4",schema:C2n,id:"linkage4"}],S2n={class:"formDesign-menus"},A2n={class:"type-title"},I2n={class:"form-item-btn"},k2n={class:"ico"},E2n={class:"name"},_2n=ft({__name:"index",props:{templates:{},omitMenus:{default:()=>[]}},setup(e){const t=e,n=Re(!1),{updateSchema:r}=Ht(I1,{updateSchema:a=>{}}),i=Oe(()=>f2n.map(a=>({...a,children:a.children.filter(s=>!t.omitMenus.includes(s.initialValues.component))}))),o=a=>{r(a)};return(a,s)=>(Ce(),We("div",S2n,[xe(W(mo),{class:"template-btn",size:"small",onClick:s[0]||(s[0]=l=>n.value=!0)},{default:ot(()=>[gr("使用模板")]),_:1}),xe(W(gOe),{modelValue:n.value,"onUpdate:modelValue":s[1]||(s[1]=l=>n.value=l),title:"模板列表",size:"60%",class:"template-drawer","append-to-body":!1},{default:ot(()=>[xe(W($L),{wrap:""},{default:ot(()=>[(Ce(!0),We(un,null,xr(a.templates||W(x2n),({name:l,schema:u})=>(Ce(),mt(W(mo),{key:l,onClick:c=>o(u)},{default:ot(()=>[gr(en(l),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue"]),(Ce(!0),We(un,null,xr(i.value,({title:l,children:u})=>(Ce(),We("div",{key:l},[at("h4",A2n,en(l),1),xe(W(Pee),{class:"list",list:u,group:{name:"formDesign",pull:"clone",put:!1},sort:!1,"ghost-class":"ghost","drag-class":"drag","fallback-class":"fallback","item-key":"designKey"},{item:ot(({element:c})=>[at("li",I2n,[at("div",k2n,[xe(Iee,{name:c.icon},null,8,["name"])]),at("div",E2n,en(c.name),1)])]),_:2},1032,["list"])]))),128))]))}}),T2n={key:0,class:"actions-left-top"},P2n={class:"canvas-move",size:"small",type:"primary"},D2n={key:1,class:"hidden-ico"},R2n={key:2,class:"actions-right-bottom"},$2n=["onClick"],M2n={__name:"CanvasRender",props:{data:Object},setup(e){const t=e,{current:n,updateCurrent:r}=Ht(hX),{hoverKey:i,updateHoverKey:o}=Ht(QOe),{handleDeleteItem:a,handleCopyItem:s}=Ht(__),l=Oe(()=>({"canvas-item":!0,active:t.data.designKey===n.value.designKey,hover:t.data.designKey===i.value,mask:t.data.designKey===i.value&&!t.data.children})),u=()=>{o(t.data.designKey)},c=()=>{o(null)},d=g=>{r(g)},h=[{icon:"copy",handle:s},{icon:"delete",handle:a}],f=g=>al.omit(g,["multiple","autoSelectedFirst","api"]);return(g,b)=>{const v=Ar("icon-render");return Ce(),We("div",{class:De(l.value),onClick:b[0]||(b[0]=rr(m=>d(e.data),["stop"])),onMousemove:rr(u,["stop"]),onMouseleave:rr(c,["stop"])},[e.data.designKey===W(n).designKey?(Ce(),We("div",T2n,[at("div",P2n,[xe(v,{name:"move"})])])):xt("",!0),e.data.hidden?(Ce(),We("div",D2n,[xe(v,{name:"hidden"})])):xt("",!0),e.data.designKey===W(n).designKey?(Ce(),We("ul",R2n,[(Ce(),We(un,null,xr(h,({icon:m,handle:w})=>at("li",{onClick:rr(k=>w(e.data),["stop"]),key:m},[xe(v,{name:m},null,8,["name"])],8,$2n)),64))])):xt("",!0),xe(W(vO),jr(e.data,{props:f(e.data.props),design:""}),null,16,["props"])],34)}}},P$e=Is(M2n,[["__scopeId","data-v-d21a03d2"]]),L2n={key:0,class:"tip"},B2n={class:"ico"},F2n=at("div",{class:"text"},"请从左侧拖拽字段来组成表单",-1),N2n={__name:"index",setup(e){const{schema:t}=Ht(I1),n=Oe(()=>t.value.items||[]),{onAdd:r}=Ht(__);return Pt(n,(i,o)=>{i.length>0&&!o&&r()},{immediate:!0}),(i,o)=>{const a=Ar("icon-render");return Ce(),mt(W(lS),{design:"",class:"canvas",schema:W(t)},{default:ot(()=>[n.value&&n.value.length?(Ce(),We("div",L2n,[at("div",B2n,[xe(a,{name:"add"})]),F2n])):xt("",!0),xe(W(Pee),{style:{height:"100%"},list:n.value,group:{name:"formDesign",pull:!0,put:!0},itemKey:"name",chooseClass:"choose","ghost-class":"ghost",onAdd:W(r),"drag-class":"drag",handle:".canvas-move",animation:300,"force-fallback":""},{item:ot(({element:s})=>[s.designKey?(Ce(),mt(P$e,{key:0,data:s},null,8,["data"])):xt("",!0)]),_:1},8,["list","onAdd"])]),_:1},8,["schema"])}}},V2n={class:"attrForm"},j2n={key:0},W2n={__name:"AttrEdit",setup(e){const{elements:t}=Ht(R0),{current:n}=Ht(hX),r=Re(!1),i=Oe(()=>{const a=t[n.value.component];return a?{size:"small",labelAlign:"top",items:a.attr}:{size:"small",labelAlign:"top",items:[]}}),o=()=>{r.value=!0};return(a,s)=>(Ce(),We("div",V2n,[Object.keys(W(n)).length?(Ce(),We(un,{key:1},[(Ce(),mt(W(lS),{key:W(n).designKey,modelValue:W(n),"onUpdate:modelValue":s[0]||(s[0]=l=>ni(n)?n.value=l:null),schema:i.value},null,8,["modelValue","schema"])),at("div",null,[xe(W(mo),{onClick:o},{default:ot(()=>[gr("编辑配置文本")]),_:1})]),xe(W(gOe),{"destroy-on-close":"",modelValue:r.value,"onUpdate:modelValue":s[2]||(s[2]=l=>r.value=l)},{default:ot(()=>[xe(W(wb),{class:"editor",modelValue:W(n),"onUpdate:modelValue":s[1]||(s[1]=l=>ni(n)?n.value=l:null),currentMode:"code",modeList:["text","view","tree","code","form"],options:{search:!0,history:!0},language:"zh"},null,8,["modelValue"])]),_:1},8,["modelValue"])],64)):(Ce(),We("h4",j2n,"未选中字段"))]))}},H2n=Is(W2n,[["__scopeId","data-v-c220164d"]]),z2n={size:"small",labelAlign:"top",items:[{label:"label宽度",component:"InputNumber",name:"labelWidth",props:{min:60,unit:"px",step:10},initialValue:150},{label:"label对齐方式",component:"Radio",name:"labelAlign",props:{mode:"static",options:[{label:"左对齐",value:"left"},{label:"居上",value:"top"},{label:"右对齐",value:"right"}]},initialValue:"right"},{label:"表单组件尺寸",component:"Radio",name:"size",props:{mode:"static",options:[{label:"默认",value:"default"},{label:"较小",value:"small"},{label:"较大",value:"large"}]},initialValue:"default"},{label:"禁用整个表单",component:"Switch",name:"disabled"},{label:"隐藏必填星号",component:"Switch",name:"hideRequiredAsterisk"},{label:"label加粗",component:"Switch",name:"labelBold"}]},Z2n={class:"attrForm"},G2n={__name:"FormEdit",setup(e){const{schema:t,updateSchema:n}=Ht(I1),r=Oe({get(){return t.value},set(i){n(i)}});return(i,o)=>(Ce(),We("div",Z2n,[xe(W(lS),{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=a=>r.value=a),schema:W(z2n)},null,8,["modelValue","schema"])]))}},Q2n=Is(G2n,[["__scopeId","data-v-343d2e59"]]),U2n={__name:"index",setup(e){return(t,n)=>(Ce(),mt(W(trt),{class:"current-config"},{default:ot(()=>[xe(W(wie),{label:"字段配置"},{default:ot(()=>[xe(H2n)]),_:1}),xe(W(wie),{label:"表单配置"},{default:ot(()=>[xe(Q2n)]),_:1})]),_:1}))}},D$e=(e,t)=>{if(!t&&e&&e.length)return e[0];let n=null;return e.forEach(r=>{if(r.designKey===t){n=r;return}if(r.children){const i=D$e(r.children,t);i&&(n=i)}}),n},R$e=(e,t)=>e.map(n=>n.designKey===t.designKey?t:n.children?{...n,children:R$e(n.children,t)}:n),$$e=e=>e.map(t=>{const n={...al.cloneDeep(t),designKey:`form-${qb(4)}`,name:qb(8)};return t.children&&(n.children=$$e(t.children)),n}),M$e=(e,t)=>e.reduce((n,r)=>{if(r.children?n.push({...r,children:M$e(r.children,t)}):n.push(r),r.designKey===t){const i={...al.cloneDeep(r),designKey:`form-${qb(4)}`,name:qb(8)};r.children&&(i.children=$$e(r.children)),r.label&&!i.label.includes("copy")&&(i.label=i.label+" copy"),n.push(i)}return n},[]),Dee=e=>e.map(t=>{const n=t.initialValues||t,r={...n,designKey:n.designKey||`design-${qb(4)}`,name:n.name||`form-${qb(4)}`};return n.children&&(r.children=Dee(n.children)),r}),X2n={class:"formDesign-actions"},Y2n={class:"formDesign-actions-left"},K2n={class:"formDesign-actions-right"},q2n={__name:"Actions",props:{previewSchemaContext:{type:Object,default:()=>({})}},setup(e){const{schema:t,updateSchema:n}=Ht(I1),{handleSave:r}=Ht(__),{elements:i}=Ht(R0),o=i.JsonEdit.component,a=Oe({get(){return t.value},set(w){n(w)}}),s=Re(null),l=Re({}),u=Oe(()=>{var w;return(w=s.value)==null?void 0:w.context}),c=Re(!1),d=Re(""),h=()=>{c.value=!0,d.value="exec"},f=()=>{c.value=!0,d.value="vue"},g=()=>{l.value={},c.value=!0,d.value="form"},b=w=>{t.value={...t.value,items:Dee(t.value.items)},w.repair()},v=()=>{s.value.submit().then(w=>{alert(JSON.stringify(w,null,2),"模拟提交")}).catch(w=>console.log(w))},m=()=>{t.value={...t.value,items:[]}};return(w,k)=>(Ce(),We("div",X2n,[at("div",Y2n,[xe(W(mo),{size:"small",onClick:h},{default:ot(()=>[gr("预览JSON脚本")]),_:1}),xe(W(mo),{size:"small",onClick:f},{default:ot(()=>[gr("生成VUE代码")]),_:1}),xe(W(mo),{size:"small",type:"primary",onClick:g},{default:ot(()=>[gr("预览表单")]),_:1})]),at("div",K2n,[xe(W(mo),{size:"small",type:"danger",onClick:m},{default:ot(()=>[gr("清空")]),_:1}),xe(W(mo),{size:"small",onClick:W(r),type:"primary"},{default:ot(()=>[gr("保存")]),_:1},8,["onClick"])]),xe(W(aX),{modelValue:c.value,"onUpdate:modelValue":k[4]||(k[4]=T=>c.value=T),title:"预览脚本",width:"70%",center:"","destroy-on-close":"",top:"10vh"},a0({default:ot(()=>[d.value==="exec"?(Ce(),mt(W(wb),{key:0,class:"editor",modelValue:a.value,"onUpdate:modelValue":k[0]||(k[0]=T=>a.value=T),currentMode:"code",modeList:["text","view","tree","code","form"],options:{search:!0,history:!0},language:"zh",onBlur:b},null,8,["modelValue"])):xt("",!0),d.value==="vue"?(Ce(),mt(W(fEn),{key:1,schema:W(t),readOnly:""},null,8,["schema"])):xt("",!0),d.value==="form"?(Ce(),mt(W(lS),{key:2,modelValue:l.value,"onUpdate:modelValue":k[1]||(k[1]=T=>l.value=T),schema:W(t),ref_key:"formRef",ref:s,schemaContext:e.previewSchemaContext,style:{minHeight:"200px"}},null,8,["modelValue","schema","schemaContext"])):xt("",!0)]),_:2},[d.value==="form"?{name:"footer",fn:ot(()=>[xe(W(mo),{onClick:v,type:"primary"},{default:ot(()=>[gr("模拟提交")]),_:1}),xe(W(mo),{onClick:k[2]||(k[2]=T=>s.value.resetFields()),type:"primary"},{default:ot(()=>[gr("重置")]),_:1}),xe(W(o),{modelValue:u.value,"onUpdate:modelValue":k[3]||(k[3]=T=>u.value=T),height:"400px",title:"联动变量",description:"实时预览表单的联动变量,调试联动",mode:"dialog"},null,8,["modelValue"])]),key:"0"}:void 0]),1032,["modelValue"])]))}},J2n=Is(q2n,[["__scopeId","data-v-c10c92da"]]),eEn={class:"formItemList"},tEn={class:"formRender"},nEn={class:"formItemOptions"},rEn=ft({name:"FormDesign",__name:"index",props:{schema:{},previewSchemaContext:{},templates:{},omitMenus:{}},emits:["onSave"],setup(e,{emit:t}){const n=e,r=t,i=Re(""),o=Re(""),a=Re({labelWidth:150,labelAlign:"right",size:"default",items:[]}),s=Oe({get(){return a.value.items},set(u){a.value={...a.value,items:u}}}),l=Oe({get(){return D$e(s.value,i.value)||{}},set(u){i.value=u.designKey,s.value=R$e(a.value.items,u)}});return Uc(()=>{n.schema&&(a.value=n.schema)}),Or(I1,{schema:a,updateSchema:u=>a.value=u}),Or(hX,{current:l,updateCurrent:u=>l.value=u}),Or(QOe,{hoverKey:o,updateHoverKey:u=>o.value=u}),Or(__,{onAdd:()=>{s.value=Dee(s.value)},handleDeleteItem:u=>{s.value=dX(s.value,c=>c.designKey!==u.designKey)},handleCopyItem:u=>{s.value=M$e(s.value,u.designKey)},handleSave:()=>{r("onSave",a.value)}}),(u,c)=>(Ce(),We("div",jr({id:"formDesign"},u.$attrs),[at("div",eEn,[xe(_2n,{templates:u.templates,omitMenus:u.omitMenus},null,8,["templates","omitMenus"])]),at("div",tEn,[xe(J2n,{previewSchemaContext:u.previewSchemaContext},null,8,["previewSchemaContext"]),xe(N2n)]),at("div",nEn,[xe(U2n)])],16))}}),iEn=e=>(hbe("data-v-55ad1fa6"),e=e(),pbe(),e),oEn={id:"CanvasWrapper"},aEn={key:0,class:"tip"},sEn={class:"ico"},lEn=iEn(()=>at("div",{class:"text"},"请拖入子字段",-1)),uEn={__name:"CanvasWrapper",props:{children:Array,style:null},setup(e){const{onAdd:t}=Ht(__);return(n,r)=>{const i=Ar("icon-render");return Ce(),We("div",oEn,[e.children.length?xt("",!0):(Ce(),We("div",aEn,[at("div",sEn,[xe(i,{name:"add"})]),lEn])),xe(W(Pee),{list:e.children,group:"formDesign",itemKey:"name",chosenClass:"active","ghost-class":"ghost",class:"childrenContainer",animation:300,style:En(e.style),onAdd:W(t)},{item:ot(({element:o})=>[o.designKey?(Ce(),mt(P$e,{key:0,data:o},null,8,["data"])):xt("",!0)]),_:1},8,["list","style","onAdd"])])}}},Ree=Is(uEn,[["__scopeId","data-v-55ad1fa6"]]),cEn={id:"DefaultCanvasWrapper"},dEn={class:"title"},hEn={__name:"DefaultCanvasWrapper",props:{name:String,style:Object,children:Array,title:String},setup(e){return(t,n)=>(Ce(),We("div",cEn,[at("div",dEn,"【"+en(e.title)+"】 "+en(e.name),1),xe(W(Ree),{children:e.children,style:En(e.style)},null,8,["children","style"])]))}},$ee=Is(hEn,[["__scopeId","data-v-20b91a6d"]]),pEn=e=>`<template>
|
|
<schema-form :schema="schema" footer @onFinish="onFinish" />
|
|
</template>
|
|
|
|
<script setup>
|
|
|
|
const onFinish = (values) => {
|
|
alert(JSON.stringify(values))
|
|
}
|
|
|
|
const schema = ${e}
|
|
|
|
<\/script>
|
|
|
|
`,fEn={__name:"CodeMirror",props:{schema:Object,readOnly:Boolean},setup(e){const t=e,n=Re(""),r=Re(),i=Br({mode:"text/javascript",lineNumbers:!0,smartIndent:!0,indentUnit:4,foldGutter:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,readOnly:t.readOnly});return _n(()=>{n.value=pEn(JSON.stringify(t.schema,null,2)),r.value.refresh()}),qp(()=>{var o;(o=r.value)==null||o.destroy()}),(o,a)=>(Ce(),mt(W(rxe),{value:n.value,"onUpdate:value":a[0]||(a[0]=s=>n.value=s),options:i,border:"",ref_key:"cmRef",ref:r},null,8,["value","options"]))}},gEn=e=>{e.directive("selectLoadMore",{mounted:function(t,n){mn(()=>{const r=document.querySelector(`.${n.arg} .el-select-dropdown__wrap`);r&&r.addEventListener("scroll",function(){this.scrollHeight-this.scrollTop-5<=this.clientHeight&&n.value()})})}})},mEn=e=>{e.directive("tableLoadMore",{mounted:function(t,n){mn(()=>{t.querySelector(".el-scrollbar__wrap").addEventListener("scroll",function(){this.scrollHeight-this.scrollTop-5<=this.clientHeight&&n.value()})})}})},vEn=e=>{e.directive("loading",qrt.directive)},yEn=Object.freeze(Object.defineProperty({__proto__:null,loading:vEn,selectLoadMore:gEn,tableLoadMore:mEn},Symbol.toStringTag,{value:"Module"})),bEn=e=>{const t={};return Object.entries(Aee).forEach(([n,r])=>{const i=e[n];return i?t[n]={...r,component:i.component,modelName:i.modelName||"modelValue",attr:i.attr||r.attr}:t[n]={...r,modelName:"modelValue"}}),t},wEn=Object.assign({}),CEn=Object.entries(wEn).map(([e])=>{const t=e.match(/\/([^\/]+)\.vue$/);return t&&t[1]}),OEn=({component:e,propKey:t,iconList:n}={})=>({component:e||Iee,propKey:t||"name",iconList:n||CEn}),xEn=[lS,rEn,ukn,ckn,Iee],SEn=function(e,t={}){const{request:n=D1e,getSchema:r,customElements:i={},iconSelectConfig:o}=t;e.provide(R0,{request:n,getSchema:r,elements:bEn(i),iconSelectConfig:OEn(o)}),xEn.forEach(a=>{e.component(a.name,a)}),Object.values(yEn).forEach(a=>a(e))},AEn={install:SEn};/*!
|
|
* vue-router v4.4.4
|
|
* (c) 2024 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const TC=typeof document<"u";function L$e(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function IEn(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&L$e(e.default)}const zi=Object.assign;function R7(e,t){const n={};for(const r in t){const i=t[r];n[r]=mh(i)?i.map(e):e(i)}return n}const A2=()=>{},mh=Array.isArray,B$e=/#/g,kEn=/&/g,EEn=/\//g,_En=/=/g,TEn=/\?/g,F$e=/\+/g,PEn=/%5B/g,DEn=/%5D/g,N$e=/%5E/g,REn=/%60/g,V$e=/%7B/g,$En=/%7C/g,j$e=/%7D/g,MEn=/%20/g;function Mee(e){return encodeURI(""+e).replace($En,"|").replace(PEn,"[").replace(DEn,"]")}function LEn(e){return Mee(e).replace(V$e,"{").replace(j$e,"}").replace(N$e,"^")}function VQ(e){return Mee(e).replace(F$e,"%2B").replace(MEn,"+").replace(B$e,"%23").replace(kEn,"%26").replace(REn,"`").replace(V$e,"{").replace(j$e,"}").replace(N$e,"^")}function BEn(e){return VQ(e).replace(_En,"%3D")}function FEn(e){return Mee(e).replace(B$e,"%23").replace(TEn,"%3F")}function NEn(e){return e==null?"":FEn(e).replace(EEn,"%2F")}function c_(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const VEn=/\/$/,jEn=e=>e.replace(VEn,"");function $7(e,t,n="/"){let r,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),i=e(o)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=ZEn(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:c_(a)}}function WEn(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function bye(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function HEn(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&wx(t.matched[r],n.matched[i])&&W$e(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function wx(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function W$e(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!zEn(e[n],t[n]))return!1;return!0}function zEn(e,t){return mh(e)?wye(e,t):mh(t)?wye(t,e):e===t}function wye(e,t){return mh(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function ZEn(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,a,s;for(a=0;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const Xm={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var d_;(function(e){e.pop="pop",e.push="push"})(d_||(d_={}));var I2;(function(e){e.back="back",e.forward="forward",e.unknown=""})(I2||(I2={}));function GEn(e){if(!e)if(TC){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),jEn(e)}const QEn=/^[^#]+#/;function UEn(e,t){return e.replace(QEn,"#")+t}function XEn(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const v9=()=>({left:window.scrollX,top:window.scrollY});function YEn(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=XEn(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Cye(e,t){return(history.state?history.state.position-t:-1)+e}const jQ=new Map;function KEn(e,t){jQ.set(e,t)}function qEn(e){const t=jQ.get(e);return jQ.delete(e),t}let JEn=()=>location.protocol+"//"+location.host;function H$e(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let s=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),bye(l,"")}return bye(n,e)+r+i}function e_n(e,t,n,r){let i=[],o=[],a=null;const s=({state:h})=>{const f=H$e(e,location),g=n.value,b=t.value;let v=0;if(h){if(n.value=f,t.value=h,a&&a===g){a=null;return}v=b?h.position-b.position:0}else r(f);i.forEach(m=>{m(n.value,g,{delta:v,type:d_.pop,direction:v?v>0?I2.forward:I2.back:I2.unknown})})};function l(){a=n.value}function u(h){i.push(h);const f=()=>{const g=i.indexOf(h);g>-1&&i.splice(g,1)};return o.push(f),f}function c(){const{history:h}=window;h.state&&h.replaceState(zi({},h.state,{scroll:v9()}),"")}function d(){for(const h of o)h();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function Oye(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?v9():null}}function t_n(e){const{history:t,location:n}=window,r={value:H$e(e,n)},i={value:t.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const d=e.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:JEn()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),i.value=u}catch(f){console.error(f),n[c?"replace":"assign"](h)}}function a(l,u){const c=zi({},t.state,Oye(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});o(l,c,!0),r.value=l}function s(l,u){const c=zi({},i.value,t.state,{forward:l,scroll:v9()});o(c.current,c,!0);const d=zi({},Oye(r.value,l,null),{position:c.position+1},u);o(l,d,!1),r.value=l}return{location:r,state:i,push:s,replace:a}}function n_n(e){e=GEn(e);const t=t_n(e),n=e_n(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const i=zi({location:"",base:e,go:r,createHref:UEn.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function r_n(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),n_n(e)}function i_n(e){return typeof e=="string"||e&&typeof e=="object"}function z$e(e){return typeof e=="string"||typeof e=="symbol"}const Z$e=Symbol("");var xye;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xye||(xye={}));function Cx(e,t){return zi(new Error,{type:e,[Z$e]:!0},t)}function jf(e,t){return e instanceof Error&&Z$e in e&&(t==null||!!(e.type&t))}const Sye="[^/]+?",o_n={sensitive:!1,strict:!1,start:!0,end:!0},a_n=/[.+*?^${}()[\]/\\]/g;function s_n(e,t){const n=zi({},o_n,t),r=[];let i=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let d=0;d<u.length;d++){const h=u[d];let f=40+(n.sensitive?.25:0);if(h.type===0)d||(i+="/"),i+=h.value.replace(a_n,"\\$&"),f+=40;else if(h.type===1){const{value:g,repeatable:b,optional:v,regexp:m}=h;o.push({name:g,repeatable:b,optional:v});const w=m||Sye;if(w!==Sye){f+=10;try{new RegExp(`(${w})`)}catch(T){throw new Error(`Invalid custom RegExp for param "${g}" (${w}): `+T.message)}}let k=b?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;d||(k=v&&u.length<2?`(?:/${k})`:"/"+k),v&&(k+="?"),i+=k,f+=20,v&&(f+=-8),b&&(f+=-20),w===".*"&&(f+=-50)}c.push(f)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const a=new RegExp(i,n.sensitive?"":"i");function s(u){const c=u.match(a),d={};if(!c)return null;for(let h=1;h<c.length;h++){const f=c[h]||"",g=o[h-1];d[g.name]=f&&g.repeatable?f.split("/"):f}return d}function l(u){let c="",d=!1;for(const h of e){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const f of h)if(f.type===0)c+=f.value;else if(f.type===1){const{value:g,repeatable:b,optional:v}=f,m=g in u?u[g]:"";if(mh(m)&&!b)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const w=mh(m)?m.join("/"):m;if(!w)if(v)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${g}"`);c+=w}}return c||"/"}return{re:a,score:r,keys:o,parse:s,stringify:l}}function l_n(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function G$e(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const o=l_n(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(Aye(r))return 1;if(Aye(i))return-1}return i.length-r.length}function Aye(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const u_n={type:0,value:""},c_n=/[a-zA-Z0-9_]/;function d_n(e){if(!e)return[[]];if(e==="/")return[[u_n]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${n})/"${u}": ${f}`)}let n=0,r=n;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,u="",c="";function d(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&d(),a()):l===":"?(d(),n=1):h();break;case 4:h(),n=r;break;case 1:l==="("?n=2:c_n.test(l)?h():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),d(),a(),i}function h_n(e,t,n){const r=s_n(d_n(e.path),n),i=zi(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function p_n(e,t){const n=[],r=new Map;t=Eye({strict:!1,end:!0,sensitive:!1},t);function i(d){return r.get(d)}function o(d,h,f){const g=!f,b=f_n(d);b.aliasOf=f&&f.record;const v=Eye(t,d),m=[b];if("alias"in d){const T=typeof d.alias=="string"?[d.alias]:d.alias;for(const S of T)m.push(zi({},b,{components:f?f.record.components:b.components,path:S,aliasOf:f?f.record:b}))}let w,k;for(const T of m){const{path:S}=T;if(h&&S[0]!=="/"){const I=h.record.path,O=I[I.length-1]==="/"?"":"/";T.path=h.record.path+(S&&O+S)}if(w=h_n(T,h,v),f?f.alias.push(w):(k=k||w,k!==w&&k.alias.push(w),g&&d.name&&!kye(w)&&a(d.name)),Q$e(w)&&l(w),b.children){const I=b.children;for(let O=0;O<I.length;O++)o(I[O],w,f&&f.children[O])}f=f||w}return k?()=>{a(k)}:A2}function a(d){if(z$e(d)){const h=r.get(d);h&&(r.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&r.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function s(){return n}function l(d){const h=v_n(d,n);n.splice(h,0,d),d.record.name&&!kye(d)&&r.set(d.record.name,d)}function u(d,h){let f,g={},b,v;if("name"in d&&d.name){if(f=r.get(d.name),!f)throw Cx(1,{location:d});v=f.record.name,g=zi(Iye(h.params,f.keys.filter(k=>!k.optional).concat(f.parent?f.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),d.params&&Iye(d.params,f.keys.map(k=>k.name))),b=f.stringify(g)}else if(d.path!=null)b=d.path,f=n.find(k=>k.re.test(b)),f&&(g=f.parse(b),v=f.record.name);else{if(f=h.name?r.get(h.name):n.find(k=>k.re.test(h.path)),!f)throw Cx(1,{location:d,currentLocation:h});v=f.record.name,g=zi({},h.params,d.params),b=f.stringify(g)}const m=[];let w=f;for(;w;)m.unshift(w.record),w=w.parent;return{name:v,path:b,params:g,matched:m,meta:m_n(m)}}e.forEach(d=>o(d));function c(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:a,clearRoutes:c,getRoutes:s,getRecordMatcher:i}}function Iye(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function f_n(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:g_n(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},mods:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function g_n(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function kye(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function m_n(e){return e.reduce((t,n)=>zi(t,n.meta),{})}function Eye(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function v_n(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;G$e(e,t[o])<0?r=o:n=o+1}const i=y_n(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function y_n(e){let t=e;for(;t=t.parent;)if(Q$e(t)&&G$e(e,t)===0)return t}function Q$e({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function b_n(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const o=r[i].replace(F$e," "),a=o.indexOf("="),s=c_(a<0?o:o.slice(0,a)),l=a<0?null:c_(o.slice(a+1));if(s in t){let u=t[s];mh(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function _ye(e){let t="";for(let n in e){const r=e[n];if(n=BEn(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(mh(r)?r.map(o=>o&&VQ(o)):[r&&VQ(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function w_n(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=mh(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const C_n=Symbol(""),Tye=Symbol(""),Lee=Symbol(""),U$e=Symbol(""),WQ=Symbol("");function GI(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function hv(e,t,n,r,i,o=a=>a()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l(Cx(4,{from:n,to:t})):h instanceof Error?l(h):i_n(h)?l(Cx(2,{from:t,to:h})):(a&&r.enterCallbacks[i]===a&&typeof h=="function"&&a.push(h),s())},c=o(()=>e.call(r&&r.instances[i],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(h=>l(h))})}function M7(e,t,n,r,i=o=>o()){const o=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(L$e(l)){const c=(l.__vccOpts||l)[t];c&&o.push(hv(c,n,r,a,s,i))}else{let u=l();o.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const d=IEn(c)?c.default:c;a.mods[s]=c,a.components[s]=d;const f=(d.__vccOpts||d)[t];return f&&hv(f,n,r,a,s,i)()}))}}return o}function Pye(e){const t=Ht(Lee),n=Ht(U$e),r=Oe(()=>{const l=W(e.to);return t.resolve(l)}),i=Oe(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const h=d.findIndex(wx.bind(null,c));if(h>-1)return h;const f=Dye(l[u-2]);return u>1&&Dye(c)===f&&d[d.length-1].path!==f?d.findIndex(wx.bind(null,l[u-2])):h}),o=Oe(()=>i.value>-1&&A_n(n.params,r.value.params)),a=Oe(()=>i.value>-1&&i.value===n.matched.length-1&&W$e(n.params,r.value.params));function s(l={}){return S_n(l)?t[W(e.replace)?"replace":"push"](W(e.to)).catch(A2):Promise.resolve()}return{route:r,href:Oe(()=>r.value.href),isActive:o,isExactActive:a,navigate:s}}const O_n=ft({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Pye,setup(e,{slots:t}){const n=Br(Pye(e)),{options:r}=Ht(Lee),i=Oe(()=>({[Rye(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Rye(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Yn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),x_n=O_n;function S_n(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function A_n(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!mh(i)||i.length!==r.length||r.some((o,a)=>o!==i[a]))return!1}return!0}function Dye(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Rye=(e,t,n)=>e??t??n,I_n=ft({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ht(WQ),i=Oe(()=>e.route||r.value),o=Ht(Tye,0),a=Oe(()=>{let u=W(o);const{matched:c}=i.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),s=Oe(()=>i.value.matched[a.value]);Or(Tye,Oe(()=>a.value+1)),Or(C_n,s),Or(WQ,i);const l=Re();return Pt(()=>[l.value,s.value,e.name],([u,c,d],[h,f,g])=>{c&&(c.instances[d]=u,f&&f!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=f.leaveGuards),c.updateGuards.size||(c.updateGuards=f.updateGuards))),u&&c&&(!f||!wx(c,f)||!h)&&(c.enterCallbacks[d]||[]).forEach(b=>b(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,d=s.value,h=d&&d.components[c];if(!h)return $ye(n.default,{Component:h,route:u});const f=d.props[c],g=f?f===!0?u.params:typeof f=="function"?f(u):f:null,v=Yn(h,zi({},g,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return $ye(n.default,{Component:v,route:u})||v}}});function $ye(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const k_n=I_n;function E_n(e){const t=p_n(e.routes,e),n=e.parseQuery||b_n,r=e.stringifyQuery||_ye,i=e.history,o=GI(),a=GI(),s=GI(),l=so(Xm);let u=Xm;TC&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=R7.bind(null,q=>""+q),d=R7.bind(null,NEn),h=R7.bind(null,c_);function f(q,G){let ne,le;return z$e(q)?(ne=t.getRecordMatcher(q),le=G):le=q,t.addRoute(le,ne)}function g(q){const G=t.getRecordMatcher(q);G&&t.removeRoute(G)}function b(){return t.getRoutes().map(q=>q.record)}function v(q){return!!t.getRecordMatcher(q)}function m(q,G){if(G=zi({},G||l.value),typeof q=="string"){const ae=$7(n,q,G.path),be=t.resolve({path:ae.path},G),ie=i.createHref(ae.fullPath);return zi(ae,be,{params:h(be.params),hash:c_(ae.hash),redirectedFrom:void 0,href:ie})}let ne;if(q.path!=null)ne=zi({},q,{path:$7(n,q.path,G.path).path});else{const ae=zi({},q.params);for(const be in ae)ae[be]==null&&delete ae[be];ne=zi({},q,{params:d(ae)}),G.params=d(G.params)}const le=t.resolve(ne,G),oe=q.hash||"";le.params=c(h(le.params));const ve=WEn(r,zi({},q,{hash:LEn(oe),path:le.path})),de=i.createHref(ve);return zi({fullPath:ve,hash:oe,query:r===_ye?w_n(q.query):q.query||{}},le,{redirectedFrom:void 0,href:de})}function w(q){return typeof q=="string"?$7(n,q,l.value.path):zi({},q)}function k(q,G){if(u!==q)return Cx(8,{from:G,to:q})}function T(q){return O(q)}function S(q){return T(zi(w(q),{replace:!0}))}function I(q){const G=q.matched[q.matched.length-1];if(G&&G.redirect){const{redirect:ne}=G;let le=typeof ne=="function"?ne(q):ne;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=w(le):{path:le},le.params={}),zi({query:q.query,hash:q.hash,params:le.path!=null?{}:q.params},le)}}function O(q,G){const ne=u=m(q),le=l.value,oe=q.state,ve=q.force,de=q.replace===!0,ae=I(ne);if(ae)return O(zi(w(ae),{state:typeof ae=="object"?zi({},oe,ae.state):oe,force:ve,replace:de}),G||ne);const be=ne;be.redirectedFrom=G;let ie;return!ve&&HEn(r,le,ne)&&(ie=Cx(16,{to:be,from:le}),U(le,le,!0,!1)),(ie?Promise.resolve(ie):A(be,le)).catch(ce=>jf(ce)?jf(ce,2)?ce:Q(ce):V(ce,be,le)).then(ce=>{if(ce){if(jf(ce,2))return O(zi({replace:de},w(ce.to),{state:typeof ce.to=="object"?zi({},oe,ce.to.state):oe,force:ve}),G||be)}else ce=D(be,le,!0,de,oe);return R(be,le,ce),ce})}function y(q,G){const ne=k(q,G);return ne?Promise.reject(ne):Promise.resolve()}function _(q){const G=ue.values().next().value;return G&&typeof G.runWithContext=="function"?G.runWithContext(q):q()}function A(q,G){let ne;const[le,oe,ve]=__n(q,G);ne=M7(le.reverse(),"beforeRouteLeave",q,G);for(const ae of le)ae.leaveGuards.forEach(be=>{ne.push(hv(be,q,G))});const de=y.bind(null,q,G);return ne.push(de),N(ne).then(()=>{ne=[];for(const ae of o.list())ne.push(hv(ae,q,G));return ne.push(de),N(ne)}).then(()=>{ne=M7(oe,"beforeRouteUpdate",q,G);for(const ae of oe)ae.updateGuards.forEach(be=>{ne.push(hv(be,q,G))});return ne.push(de),N(ne)}).then(()=>{ne=[];for(const ae of ve)if(ae.beforeEnter)if(mh(ae.beforeEnter))for(const be of ae.beforeEnter)ne.push(hv(be,q,G));else ne.push(hv(ae.beforeEnter,q,G));return ne.push(de),N(ne)}).then(()=>(q.matched.forEach(ae=>ae.enterCallbacks={}),ne=M7(ve,"beforeRouteEnter",q,G,_),ne.push(de),N(ne))).then(()=>{ne=[];for(const ae of a.list())ne.push(hv(ae,q,G));return ne.push(de),N(ne)}).catch(ae=>jf(ae,8)?ae:Promise.reject(ae))}function R(q,G,ne){s.list().forEach(le=>_(()=>le(q,G,ne)))}function D(q,G,ne,le,oe){const ve=k(q,G);if(ve)return ve;const de=G===Xm,ae=TC?history.state:{};ne&&(le||de?i.replace(q.fullPath,zi({scroll:de&&ae&&ae.scroll},oe)):i.push(q.fullPath,oe)),l.value=q,U(q,G,ne,de),Q()}let C;function x(){C||(C=i.listen((q,G,ne)=>{if(!ee.listening)return;const le=m(q),oe=I(le);if(oe){O(zi(oe,{replace:!0}),le).catch(A2);return}u=le;const ve=l.value;TC&&KEn(Cye(ve.fullPath,ne.delta),v9()),A(le,ve).catch(de=>jf(de,12)?de:jf(de,2)?(O(de.to,le).then(ae=>{jf(ae,20)&&!ne.delta&&ne.type===d_.pop&&i.go(-1,!1)}).catch(A2),Promise.reject()):(ne.delta&&i.go(-ne.delta,!1),V(de,le,ve))).then(de=>{de=de||D(le,ve,!1),de&&(ne.delta&&!jf(de,8)?i.go(-ne.delta,!1):ne.type===d_.pop&&jf(de,20)&&i.go(-1,!1)),R(le,ve,de)}).catch(A2)}))}let P=GI(),$=GI(),L;function V(q,G,ne){Q(q);const le=$.list();return le.length?le.forEach(oe=>oe(q,G,ne)):console.error(q),Promise.reject(q)}function H(){return L&&l.value!==Xm?Promise.resolve():new Promise((q,G)=>{P.add([q,G])})}function Q(q){return L||(L=!q,x(),P.list().forEach(([G,ne])=>q?ne(q):G()),P.reset()),q}function U(q,G,ne,le){const{scrollBehavior:oe}=e;if(!TC||!oe)return Promise.resolve();const ve=!ne&&qEn(Cye(q.fullPath,0))||(le||!ne)&&history.state&&history.state.scroll||null;return mn().then(()=>oe(q,G,ve)).then(de=>de&&YEn(de)).catch(de=>V(de,q,G))}const K=q=>i.go(q);let J;const ue=new Set,ee={currentRoute:l,listening:!0,addRoute:f,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:b,resolve:m,options:e,push:T,replace:S,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:$.add,isReady:H,install(q){const G=this;q.component("RouterLink",x_n),q.component("RouterView",k_n),q.config.globalProperties.$router=G,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>W(l)}),TC&&!J&&l.value===Xm&&(J=!0,T(i.location).catch(oe=>{}));const ne={};for(const oe in Xm)Object.defineProperty(ne,oe,{get:()=>l.value[oe],enumerable:!0});q.provide(Lee,G),q.provide(U$e,qQ(ne)),q.provide(WQ,l);const le=q.unmount;ue.add(q),q.unmount=function(){ue.delete(q),ue.size<1&&(u=Xm,C&&C(),C=null,l.value=Xm,J=!1,L=!1),le()}}};function N(q){return q.reduce((G,ne)=>G.then(()=>_(ne)),Promise.resolve())}return ee}function __n(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const s=t.matched[a];s&&(e.matched.find(u=>wx(u,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(u=>wx(u,l))||i.push(l))}return[n,r,i]}const T_n=[{path:"/",name:"/",component:()=>Tt(()=>import("./index-D5HY6pcu.js"),[],import.meta.url)},{path:"/Design",name:"/Design",component:()=>Tt(()=>import("./Design-Dd--99Jl.js"),__vite__mapDeps([4,5,6]),import.meta.url)},{path:"/Form",name:"/Form",component:()=>Tt(()=>import("./Form-ByDai518.js"),__vite__mapDeps([7,5]),import.meta.url)}],P_n=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},D_n={};function R_n(e,t){const n=Ar("RouterView");return Ce(),mt(n)}const $_n=P_n(D_n,[["render",R_n]]),Bee=c1e($_n);Bee.use(AEn);const M_n=E_n({routes:T_n,history:r_n("./")});Bee.use(M_n);Bee.mount("#app");export{Ar as A,mt as B,$x as C,xIe as D,W as E,qr as F,ni as G,yo as H,p_ as I,L_n as J,mn as K,Jl as L,dr as M,Pt as N,zye as O,Zye as P,Uc as Q,Jc as R,LO as S,qct as T,B3 as U,so as V,Ne as W,M_ as Y,jO as _,oa as a,Sut as b,FIe as c,sAe as d,Ch as e,Is as f,oAe as g,Ce as h,We as i,at as j,NO as k,ft as l,P_n as m,GAe as n,XSe as o,B_n as p,L_ as q,Aut as r,YSe as s,Br as t,vo as u,ske as v,b5 as w,Re as x,Oe as y,_n as z};
|