tg_web_dist/js/editor-vue.DJDELE42.js
2025-07-01 19:19:40 +08:00

2 lines
864 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

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

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

function e(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const t={},n=[],r=()=>{},o=()=>!1,i=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),a=e=>e.startsWith("onUpdate:"),u=Object.assign,s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,c=(e,t)=>l.call(e,t),f=Array.isArray,d=e=>"[object Map]"===E(e),p=e=>"[object Set]"===E(e),h=e=>"[object Date]"===E(e),g=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>"symbol"==typeof e,m=e=>null!==e&&"object"==typeof e,b=e=>(m(e)||g(e))&&g(e.then)&&g(e.catch),w=Object.prototype.toString,E=e=>w.call(e),x=e=>"[object Object]"===E(e),C=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,S=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-(\w)/g,O=D((e=>e.replace(A,((e,t)=>t?t.toUpperCase():"")))),_=/\B([A-Z])/g,k=D((e=>e.replace(_,"-$1").toLowerCase())),B=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=D((e=>e?`on${B(e)}`:"")),T=(e,t)=>!Object.is(e,t),P=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},j=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},N=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let I;const L=()=>I||(I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function R(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=v(r)?H(r):R(r);if(o)for(const e in o)t[e]=o[e]}return t}if(v(e)||m(e))return e}const M=/;(?![^(]*\))/g,z=/:([^]+)/,$=/\/\*[^]*?\*\//g;function H(e){const t={};return e.replace($,"").split(M).forEach((e=>{if(e){const n=e.split(z);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function V(e){let t="";if(v(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const r=V(e[n]);r&&(t+=r+" ")}else if(m(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function U(e){if(!e)return null;let{class:t,style:n}=e;return t&&!v(t)&&(e.class=V(t)),n&&(e.style=R(n)),e}const W=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function G(e){return!!e||""===e}function q(e,t){if(e===t)return!0;let n=h(e),r=h(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=y(e),r=y(t),n||r)return e===t;if(n=f(e),r=f(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=q(e[r],t[r]);return n}(e,t);if(n=m(e),r=m(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!q(e[n],t[n]))return!1}}return String(e)===String(t)}function K(e,t){return e.findIndex((e=>q(e,t)))}const Y=e=>!(!e||!0!==e.__v_isRef),X=e=>v(e)?e:null==e?"":f(e)||m(e)&&(e.toString===w||!g(e.toString))?Y(e)?X(e.value):JSON.stringify(e,Z,2):String(e),Z=(e,t)=>Y(t)?Z(e,t.value):d(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],r)=>(e[J(t,r)+" =>"]=n,e)),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>J(e)))}:y(t)?J(t):!m(t)||f(t)||x(t)?t:String(t),J=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let Q,ee;class te{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Q,!e&&Q&&(this.index=(Q.scopes||(Q.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=Q;try{return Q=this,e()}finally{Q=t}}}on(){1===++this._on&&(this.prevScope=Q,Q=this)}off(){this._on>0&&0===--this._on&&(Q=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function ne(e){return new te(e)}function re(){return Q}function oe(e,t=!1){Q&&Q.cleanups.push(e)}const ie=new WeakSet;class ae{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Q&&Q.active&&Q.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,ie.has(this)&&(ie.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ce(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,Ce(this),pe(this);const e=ee,t=be;ee=this,be=!0;try{return this.fn()}finally{he(this),ee=e,be=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)ye(e);this.deps=this.depsTail=void 0,Ce(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?ie.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ge(this)&&this.run()}get dirty(){return ge(this)}}let ue,se,le=0;function ce(e,t=!1){if(e.flags|=8,t)return e.next=se,void(se=e);e.next=ue,ue=e}function fe(){le++}function de(){if(--le>0)return;if(se){let e=se;for(se=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ue;){let n=ue;for(ue=void 0;n;){const r=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=r}}if(e)throw e}function pe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function he(e){let t,n=e.depsTail,r=n;for(;r;){const e=r.prevDep;-1===r.version?(r===n&&(n=e),ye(r),me(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function ge(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ve(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ve(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===Se)return;if(e.globalVersion=Se,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!ge(e)))return;e.flags|=2;const t=e.dep,n=ee,r=be;ee=e,be=!0;try{pe(e);const n=e.fn(e._value);(0===t.version||T(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(o){throw t.version++,o}finally{ee=n,be=r,he(e),e.flags&=-3}}function ye(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ye(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function me(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let be=!0;const we=[];function Ee(){we.push(be),be=!1}function xe(){const e=we.pop();be=void 0===e||e}function Ce(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ee;ee=void 0;try{t()}finally{ee=e}}}let Se=0;class De{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ae{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!ee||!be||ee===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ee)t=this.activeLink=new De(ee,this),ee.deps?(t.prevDep=ee.depsTail,ee.depsTail.nextDep=t,ee.depsTail=t):ee.deps=ee.depsTail=t,Oe(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=ee.depsTail,t.nextDep=void 0,ee.depsTail.nextDep=t,ee.depsTail=t,ee.deps===t&&(ee.deps=e)}return t}trigger(e){this.version++,Se++,this.notify(e)}notify(e){fe();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{de()}}}function Oe(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Oe(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const _e=new WeakMap,ke=Symbol(""),Be=Symbol(""),Fe=Symbol("");function Te(e,t,n){if(be&&ee){let t=_e.get(e);t||_e.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Ae),r.map=t,r.key=n),r.track()}}function Pe(e,t,n,r,o,i){const a=_e.get(e);if(!a)return void Se++;const u=e=>{e&&e.trigger()};if(fe(),"clear"===t)a.forEach(u);else{const o=f(e),i=o&&C(n);if(o&&"length"===n){const e=Number(r);a.forEach(((t,n)=>{("length"===n||n===Fe||!y(n)&&n>=e)&&u(t)}))}else switch((void 0!==n||a.has(void 0))&&u(a.get(n)),i&&u(a.get(Fe)),t){case"add":o?i&&u(a.get("length")):(u(a.get(ke)),d(e)&&u(a.get(Be)));break;case"delete":o||(u(a.get(ke)),d(e)&&u(a.get(Be)));break;case"set":d(e)&&u(a.get(ke))}}de()}function je(e){const t=bt(e);return t===e?t:(Te(t,0,Fe),yt(e)?t:t.map(Et))}function Ne(e){return Te(e=bt(e),0,Fe),e}const Ie={__proto__:null,[Symbol.iterator](){return Le(this,Symbol.iterator,Et)},concat(...e){return je(this).concat(...e.map((e=>f(e)?je(e):e)))},entries(){return Le(this,"entries",(e=>(e[1]=Et(e[1]),e)))},every(e,t){return Me(this,"every",e,t,void 0,arguments)},filter(e,t){return Me(this,"filter",e,t,(e=>e.map(Et)),arguments)},find(e,t){return Me(this,"find",e,t,Et,arguments)},findIndex(e,t){return Me(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Me(this,"findLast",e,t,Et,arguments)},findLastIndex(e,t){return Me(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Me(this,"forEach",e,t,void 0,arguments)},includes(...e){return $e(this,"includes",e)},indexOf(...e){return $e(this,"indexOf",e)},join(e){return je(this).join(e)},lastIndexOf(...e){return $e(this,"lastIndexOf",e)},map(e,t){return Me(this,"map",e,t,void 0,arguments)},pop(){return He(this,"pop")},push(...e){return He(this,"push",e)},reduce(e,...t){return ze(this,"reduce",e,t)},reduceRight(e,...t){return ze(this,"reduceRight",e,t)},shift(){return He(this,"shift")},some(e,t){return Me(this,"some",e,t,void 0,arguments)},splice(...e){return He(this,"splice",e)},toReversed(){return je(this).toReversed()},toSorted(e){return je(this).toSorted(e)},toSpliced(...e){return je(this).toSpliced(...e)},unshift(...e){return He(this,"unshift",e)},values(){return Le(this,"values",Et)}};function Le(e,t,n){const r=Ne(e),o=r[t]();return r===e||yt(e)||(o._next=o.next,o.next=()=>{const e=o._next();return e.value&&(e.value=n(e.value)),e}),o}const Re=Array.prototype;function Me(e,t,n,r,o,i){const a=Ne(e),u=a!==e&&!yt(e),s=a[t];if(s!==Re[t]){const t=s.apply(e,i);return u?Et(t):t}let l=n;a!==e&&(u?l=function(t,r){return n.call(this,Et(t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));const c=s.call(a,l,r);return u&&o?o(c):c}function ze(e,t,n,r){const o=Ne(e);let i=n;return o!==e&&(yt(e)?n.length>3&&(i=function(t,r,o){return n.call(this,t,r,o,e)}):i=function(t,r,o){return n.call(this,t,Et(r),o,e)}),o[t](i,...r)}function $e(e,t,n){const r=bt(e);Te(r,0,Fe);const o=r[t](...n);return-1!==o&&!1!==o||!mt(n[0])?o:(n[0]=bt(n[0]),r[t](...n))}function He(e,t,n=[]){Ee(),fe();const r=bt(e)[t].apply(e,n);return de(),xe(),r}const Ve=e("__proto__,__v_isRef,__isVue"),Ue=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(y));function We(e){y(e)||(e=String(e));const t=bt(this);return Te(t,0,e),t.hasOwnProperty(e)}class Ge{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const r=this._isReadonly,o=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return o;if("__v_raw"===t)return n===(r?o?lt:st:o?ut:at).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=f(e);if(!r){let e;if(i&&(e=Ie[t]))return e;if("hasOwnProperty"===t)return We}const a=Reflect.get(e,t,Ct(e)?e:n);return(y(t)?Ue.has(t):Ve(t))?a:(r||Te(e,0,t),o?a:Ct(a)?i&&C(t)?a:a.value:m(a)?r?pt(a):ft(a):a)}}class qe extends Ge{constructor(e=!1){super(!1,e)}set(e,t,n,r){let o=e[t];if(!this._isShallow){const t=vt(o);if(yt(n)||vt(n)||(o=bt(o),n=bt(n)),!f(e)&&Ct(o)&&!Ct(n))return!t&&(o.value=n,!0)}const i=f(e)&&C(t)?Number(t)<e.length:c(e,t),a=Reflect.set(e,t,n,Ct(e)?e:r);return e===bt(r)&&(i?T(n,o)&&Pe(e,"set",t,n):Pe(e,"add",t,n)),a}deleteProperty(e,t){const n=c(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Pe(e,"delete",t,void 0),r}has(e,t){const n=Reflect.has(e,t);return y(t)&&Ue.has(t)||Te(e,0,t),n}ownKeys(e){return Te(e,0,f(e)?"length":ke),Reflect.ownKeys(e)}}class Ke extends Ge{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ye=new qe,Xe=new Ke,Ze=new qe(!0),Je=e=>e,Qe=e=>Reflect.getPrototypeOf(e);function et(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function tt(e,t){const n={get(n){const r=this.__v_raw,o=bt(r),i=bt(n);e||(T(n,i)&&Te(o,0,n),Te(o,0,i));const{has:a}=Qe(o),u=t?Je:e?xt:Et;return a.call(o,n)?u(r.get(n)):a.call(o,i)?u(r.get(i)):void(r!==o&&r.get(n))},get size(){const t=this.__v_raw;return!e&&Te(bt(t),0,ke),Reflect.get(t,"size",t)},has(t){const n=this.__v_raw,r=bt(n),o=bt(t);return e||(T(t,o)&&Te(r,0,t),Te(r,0,o)),t===o?n.has(t):n.has(t)||n.has(o)},forEach(n,r){const o=this,i=o.__v_raw,a=bt(i),u=t?Je:e?xt:Et;return!e&&Te(a,0,ke),i.forEach(((e,t)=>n.call(r,u(e),u(t),o)))}};u(n,e?{add:et("add"),set:et("set"),delete:et("delete"),clear:et("clear")}:{add(e){t||yt(e)||vt(e)||(e=bt(e));const n=bt(this);return Qe(n).has.call(n,e)||(n.add(e),Pe(n,"add",e,e)),this},set(e,n){t||yt(n)||vt(n)||(n=bt(n));const r=bt(this),{has:o,get:i}=Qe(r);let a=o.call(r,e);a||(e=bt(e),a=o.call(r,e));const u=i.call(r,e);return r.set(e,n),a?T(n,u)&&Pe(r,"set",e,n):Pe(r,"add",e,n),this},delete(e){const t=bt(this),{has:n,get:r}=Qe(t);let o=n.call(t,e);o||(e=bt(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Pe(t,"delete",e,void 0),i},clear(){const e=bt(this),t=0!==e.size,n=e.clear();return t&&Pe(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach((r=>{n[r]=function(e,t,n){return function(...r){const o=this.__v_raw,i=bt(o),a=d(i),u="entries"===e||e===Symbol.iterator&&a,s="keys"===e&&a,l=o[e](...r),c=n?Je:t?xt:Et;return!t&&Te(i,0,s?Be:ke),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:u?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}(r,e,t)})),n}function nt(e,t){const n=tt(e,t);return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(c(n,r)&&r in t?n:t,r,o)}const rt={get:nt(!1,!1)},ot={get:nt(!1,!0)},it={get:nt(!0,!1)},at=new WeakMap,ut=new WeakMap,st=new WeakMap,lt=new WeakMap;function ct(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>E(e).slice(8,-1))(e))}function ft(e){return vt(e)?e:ht(e,!1,Ye,rt,at)}function dt(e){return ht(e,!1,Ze,ot,ut)}function pt(e){return ht(e,!0,Xe,it,st)}function ht(e,t,n,r,o){if(!m(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=ct(e);if(0===i)return e;const a=o.get(e);if(a)return a;const u=new Proxy(e,2===i?r:n);return o.set(e,u),u}function gt(e){return vt(e)?gt(e.__v_raw):!(!e||!e.__v_isReactive)}function vt(e){return!(!e||!e.__v_isReadonly)}function yt(e){return!(!e||!e.__v_isShallow)}function mt(e){return!!e&&!!e.__v_raw}function bt(e){const t=e&&e.__v_raw;return t?bt(t):e}function wt(e){return!c(e,"__v_skip")&&Object.isExtensible(e)&&j(e,"__v_skip",!0),e}const Et=e=>m(e)?ft(e):e,xt=e=>m(e)?pt(e):e;function Ct(e){return!!e&&!0===e.__v_isRef}function St(e){return At(e,!1)}function Dt(e){return At(e,!0)}function At(e,t){return Ct(e)?e:new Ot(e,t)}class Ot{constructor(e,t){this.dep=new Ae,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:bt(e),this._value=t?e:Et(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||yt(e)||vt(e);e=n?e:bt(e),T(e,t)&&(this._rawValue=e,this._value=n?e:Et(e),this.dep.trigger())}}function _t(e){return Ct(e)?e.value:e}const kt={get:(e,t,n)=>"__v_raw"===t?e:_t(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ct(o)&&!Ct(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Bt(e){return gt(e)?e:new Proxy(e,kt)}class Ft{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new Ae,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Tt(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=It(e,n);return t}class Pt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=_e.get(e);return n&&n.get(t)}(bt(this._object),this._key)}}class jt{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Nt(e,t,n){return Ct(e)?e:g(e)?new jt(e):m(e)&&arguments.length>1?It(e,t,n):St(e)}function It(e,t,n){const r=e[t];return Ct(r)?r:new Pt(e,t,n)}class Lt{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ae(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Se-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&ee!==this)return ce(this,!0),!0}get value(){const e=this.dep.track();return ve(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const Rt={},Mt=new WeakMap;let zt;function $t(e,n,o=t){const{immediate:i,deep:a,once:u,scheduler:l,augmentJob:c,call:d}=o,p=e=>a?e:yt(e)||!1===a||0===a?Ht(e,1):Ht(e);let h,v,y,m,b=!1,w=!1;if(Ct(e)?(v=()=>e.value,b=yt(e)):gt(e)?(v=()=>p(e),b=!0):f(e)?(w=!0,b=e.some((e=>gt(e)||yt(e))),v=()=>e.map((e=>Ct(e)?e.value:gt(e)?p(e):g(e)?d?d(e,2):e():void 0))):v=g(e)?n?d?()=>d(e,2):e:()=>{if(y){Ee();try{y()}finally{xe()}}const t=zt;zt=h;try{return d?d(e,3,[m]):e(m)}finally{zt=t}}:r,n&&a){const e=v,t=!0===a?Infinity:a;v=()=>Ht(e(),t)}const E=re(),x=()=>{h.stop(),E&&E.active&&s(E.effects,h)};if(u&&n){const e=n;n=(...t)=>{e(...t),x()}}let C=w?new Array(e.length).fill(Rt):Rt;const S=e=>{if(1&h.flags&&(h.dirty||e))if(n){const e=h.run();if(a||b||(w?e.some(((e,t)=>T(e,C[t]))):T(e,C))){y&&y();const t=zt;zt=h;try{const t=[e,C===Rt?void 0:w&&C[0]===Rt?[]:C,m];C=e,d?d(n,3,t):n(...t)}finally{zt=t}}}else h.run()};return c&&c(S),h=new ae(v),h.scheduler=l?()=>l(S,!1):S,m=e=>function(e,t=!1,n=zt){if(n){let t=Mt.get(n);t||Mt.set(n,t=[]),t.push(e)}}(e,!1,h),y=h.onStop=()=>{const e=Mt.get(h);if(e){if(d)d(e,4);else for(const t of e)t();Mt.delete(h)}},n?i?S(!0):C=h.run():l?l(S.bind(null,!0),!0):h.run(),x.pause=h.pause.bind(h),x.resume=h.resume.bind(h),x.stop=x,x}function Ht(e,t=Infinity,n){if(t<=0||!m(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Ct(e))Ht(e.value,t,n);else if(f(e))for(let r=0;r<e.length;r++)Ht(e[r],t,n);else if(p(e)||d(e))e.forEach((e=>{Ht(e,t,n)}));else if(x(e)){for(const r in e)Ht(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ht(e[r],t,n)}return e}function Vt(e,t,n,r){try{return r?e(...r):e()}catch(o){Wt(o,t,n)}}function Ut(e,t,n,r){if(g(e)){const o=Vt(e,t,n,r);return o&&b(o)&&o.catch((e=>{Wt(e,t,n)})),o}if(f(e)){const o=[];for(let i=0;i<e.length;i++)o.push(Ut(e[i],t,n,r));return o}}function Wt(e,n,r,o=!0){n&&n.vnode;const{errorHandler:i,throwUnhandledErrorInProduction:a}=n&&n.appContext.config||t;if(n){let t=n.parent;const o=n.proxy,a=`https://vuejs.org/error-reference/#runtime-${r}`;for(;t;){const n=t.ec;if(n)for(let t=0;t<n.length;t++)if(!1===n[t](e,o,a))return;t=t.parent}if(i)return Ee(),Vt(i,null,10,[e,o,a]),void xe()}!function(e,t,n,r=!0,o=!1){if(o)throw e}(e,0,0,o,a)}const Gt=[];let qt=-1;const Kt=[];let Yt=null,Xt=0;const Zt=Promise.resolve();let Jt=null;function Qt(e){const t=Jt||Zt;return e?t.then(this?e.bind(this):e):t}function en(e){if(!(1&e.flags)){const t=on(e),n=Gt[Gt.length-1];!n||!(2&e.flags)&&t>=on(n)?Gt.push(e):Gt.splice(function(e){let t=qt+1,n=Gt.length;for(;t<n;){const r=t+n>>>1,o=Gt[r],i=on(o);i<e||i===e&&2&o.flags?t=r+1:n=r}return t}(t),0,e),e.flags|=1,tn()}}function tn(){Jt||(Jt=Zt.then(an))}function nn(e,t,n=qt+1){for(;n<Gt.length;n++){const t=Gt[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Gt.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function rn(e){if(Kt.length){const e=[...new Set(Kt)].sort(((e,t)=>on(e)-on(t)));if(Kt.length=0,Yt)return void Yt.push(...e);for(Yt=e,Xt=0;Xt<Yt.length;Xt++){const e=Yt[Xt];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Yt=null,Xt=0}}const on=e=>null==e.id?2&e.flags?-1:Infinity:e.id;function an(e){try{for(qt=0;qt<Gt.length;qt++){const e=Gt[qt];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Vt(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;qt<Gt.length;qt++){const e=Gt[qt];e&&(e.flags&=-2)}qt=-1,Gt.length=0,rn(),Jt=null,(Gt.length||Kt.length)&&an()}}let un=null,sn=null;function ln(e){const t=un;return un=e,sn=e&&e.type.__scopeId||null,t}function cn(e,t=un,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Ho(-1);const o=ln(t);let i;try{i=e(...n)}finally{ln(o),r._d&&Ho(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function fn(e,n){if(null===un)return e;const r=xi(un),o=e.dirs||(e.dirs=[]);for(let i=0;i<n.length;i++){let[e,a,u,s=t]=n[i];e&&(g(e)&&(e={mounted:e,updated:e}),e.deep&&Ht(a),o.push({dir:e,instance:r,value:a,oldValue:void 0,arg:u,modifiers:s}))}return e}function dn(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){const u=o[a];i&&(u.oldValue=i[a].value);let s=u.dir[r];s&&(Ee(),Ut(s,n,8,[e.el,u,e,t]),xe())}}const pn=Symbol("_vte"),hn=e=>e.__isTeleport,gn=e=>e&&(e.disabled||""===e.disabled),vn=e=>e&&(e.defer||""===e.defer),yn=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,mn=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,bn=(e,t)=>{const n=e&&e.to;if(v(n)){if(t){return t(n)}return null}return n},wn={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,u,s,l){const{mc:c,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:g,createComment:v}}=l,y=gn(t.props);let{shapeFlag:m,children:b,dynamicChildren:w}=t;if(null==e){const e=t.el=g(""),l=t.anchor=g("");p(e,n,r),p(l,n,r);const f=(e,t)=>{16&m&&(o&&o.isCE&&(o.ce._teleportTarget=e),c(b,e,t,o,i,a,u,s))},d=()=>{const e=t.target=bn(t.props,h),n=Sn(e,t,g,p);e&&("svg"!==a&&yn(e)?a="svg":"mathml"!==a&&mn(e)&&(a="mathml"),y||(f(e,n),Cn(t,!1)))};y&&(f(n,l),Cn(t,!0)),vn(t.props)?(t.el.__isMounted=!1,lo((()=>{d(),delete t.el.__isMounted}),i)):d()}else{if(vn(t.props)&&!1===e.el.__isMounted)return void lo((()=>{wn.process(e,t,n,r,o,i,a,u,s,l)}),i);t.el=e.el,t.targetStart=e.targetStart;const c=t.anchor=e.anchor,p=t.target=e.target,g=t.targetAnchor=e.targetAnchor,v=gn(e.props),m=v?n:p,b=v?c:g;if("svg"===a||yn(p)?a="svg":("mathml"===a||mn(p))&&(a="mathml"),w?(d(e.dynamicChildren,w,m,o,i,a,u),ho(e,t,!0)):s||f(e,t,m,b,o,i,a,u,!1),y)v?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):En(t,n,c,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=bn(t.props,h);e&&En(t,e,null,l,0)}else v&&En(t,p,g,l,1);Cn(t,y)}},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:a,children:u,anchor:s,targetStart:l,targetAnchor:c,target:f,props:d}=e;if(f&&(o(l),o(c)),i&&o(s),16&a){const e=i||!gn(d);for(let o=0;o<u.length;o++){const i=u[o];r(i,t,n,e,!!i.dynamicChildren)}}},move:En,hydrate:function(e,t,n,r,o,i,{o:{nextSibling:a,parentNode:u,querySelector:s,insert:l,createText:c}},f){const d=t.target=bn(t.props,s);if(d){const s=gn(t.props),p=d._lpa||d.firstChild;if(16&t.shapeFlag)if(s)t.anchor=f(a(e),t,u(e),n,r,o,i),t.targetStart=p,t.targetAnchor=p&&a(p);else{t.anchor=a(e);let u=p;for(;u;){if(u&&8===u.nodeType)if("teleport start anchor"===u.data)t.targetStart=u;else if("teleport anchor"===u.data){t.targetAnchor=u,d._lpa=t.targetAnchor&&a(t.targetAnchor);break}u=a(u)}t.targetAnchor||Sn(d,t,c,l),f(p&&a(p),t,d,n,r,o,i)}Cn(t,s)}return t.anchor&&a(t.anchor)}};function En(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:a,anchor:u,shapeFlag:s,children:l,props:c}=e,f=2===i;if(f&&r(a,t,n),(!f||gn(c))&&16&s)for(let d=0;d<l.length;d++)o(l[d],t,n,2);f&&r(u,t,n)}const xn=wn;function Cn(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)1===r.nodeType&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Sn(e,t,n,r){const o=t.targetStart=n(""),i=t.targetAnchor=n("");return o[pn]=i,e&&(r(o,e),r(i,e)),i}const Dn=Symbol("_leaveCb"),An=Symbol("_enterCb");function On(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tr((()=>{e.isMounted=!0})),or((()=>{e.isUnmounting=!0})),e}const _n=[Function,Array],kn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_n,onEnter:_n,onAfterEnter:_n,onEnterCancelled:_n,onBeforeLeave:_n,onLeave:_n,onAfterLeave:_n,onLeaveCancelled:_n,onBeforeAppear:_n,onAppear:_n,onAfterAppear:_n,onAppearCancelled:_n},Bn=e=>{const t=e.subTree;return t.component?Bn(t.component):t};function Fn(e){let t=e[0];if(e.length>1)for(const n of e)if(n.type!==Io){t=n;break}return t}const Tn={name:"BaseTransition",props:kn,setup(e,{slots:t}){const n=fi(),r=On();return()=>{const o=t.default&&Rn(t.default(),!0);if(!o||!o.length)return;const i=Fn(o),a=bt(e),{mode:u}=a;if(r.isLeaving)return Nn(i);const s=In(i);if(!s)return Nn(i);let l=jn(s,a,r,n,(e=>l=e));s.type!==Io&&Ln(s,l);let c=n.subTree&&In(n.subTree);if(c&&c.type!==Io&&!qo(s,c)&&Bn(n).type!==Io){let e=jn(c,a,r,n);if(Ln(c,e),"out-in"===u&&s.type!==Io)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,c=void 0},Nn(i);"in-out"===u&&s.type!==Io?e.delayLeave=(e,t,n)=>{Pn(r,c)[String(c.key)]=c,e[Dn]=()=>{t(),e[Dn]=void 0,delete l.delayedLeave,c=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function Pn(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 jn(e,t,n,r,o){const{appear:i,mode:a,persisted:u=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:y,onAppear:m,onAfterAppear:b,onAppearCancelled:w}=t,E=String(e.key),x=Pn(n,e),C=(e,t)=>{e&&Ut(e,r,9,t)},S=(e,t)=>{const n=t[1];C(e,t),f(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},D={mode:a,persisted:u,beforeEnter(t){let r=s;if(!n.isMounted){if(!i)return;r=y||s}t[Dn]&&t[Dn](!0);const o=x[E];o&&qo(e,o)&&o.el[Dn]&&o.el[Dn](),C(r,[t])},enter(e){let t=l,r=c,o=d;if(!n.isMounted){if(!i)return;t=m||l,r=b||c,o=w||d}let a=!1;const u=e[An]=t=>{a||(a=!0,C(t?o:r,[e]),D.delayedLeave&&D.delayedLeave(),e[An]=void 0)};t?S(t,[e,u]):u()},leave(t,r){const o=String(e.key);if(t[An]&&t[An](!0),n.isUnmounting)return r();C(p,[t]);let i=!1;const a=t[Dn]=n=>{i||(i=!0,r(),C(n?v:g,[t]),t[Dn]=void 0,x[o]===e&&delete x[o])};x[o]=e,h?S(h,[t,a]):a()},clone(e){const i=jn(e,t,n,r,o);return o&&o(i),i}};return D}function Nn(e){if(Vn(e))return(e=Qo(e)).children=null,e}function In(e){if(!Vn(e))return hn(e.type)&&e.children?Fn(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&g(n.default))return n.default()}}function Ln(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Ln(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Rn(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const u=null==n?a.key:String(n)+String(null!=a.key?a.key:i);a.type===jo?(128&a.patchFlag&&o++,r=r.concat(Rn(a.children,t,u))):(t||a.type!==Io)&&r.push(null!=u?Qo(a,{key:u}):a)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function Mn(e,t){return g(e)?(()=>u({name:e.name},t,{setup:e}))():e}function zn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $n(e,n,r,o,i=!1){if(f(e))return void e.forEach(((e,t)=>$n(e,n&&(f(n)?n[t]:n),r,o,i)));if(Hn(o)&&!i)return void(512&o.shapeFlag&&o.type.__asyncResolved&&o.component.subTree.component&&$n(e,n,r,o.component.subTree));const a=4&o.shapeFlag?xi(o.component):o.el,u=i?null:a,{i:l,r:d}=e,p=n&&n.r,h=l.refs===t?l.refs={}:l.refs,y=l.setupState,m=bt(y),b=y===t?()=>!1:e=>c(m,e);if(null!=p&&p!==d&&(v(p)?(h[p]=null,b(p)&&(y[p]=null)):Ct(p)&&(p.value=null)),g(d))Vt(d,l,12,[u,h]);else{const t=v(d),n=Ct(d);if(t||n){const o=()=>{if(e.f){const n=t?b(d)?y[d]:h[d]:d.value;i?f(n)&&s(n,a):f(n)?n.includes(a)||n.push(a):t?(h[d]=[a],b(d)&&(y[d]=h[d])):(d.value=[a],e.k&&(h[e.k]=d.value))}else t?(h[d]=u,b(d)&&(y[d]=u)):n&&(d.value=u,e.k&&(h[e.k]=u))};u?(o.id=-1,lo(o,r)):o()}}}L().requestIdleCallback,L().cancelIdleCallback;const Hn=e=>!!e.type.__asyncLoader,Vn=e=>e.type.__isKeepAlive,Un={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=fi(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const o=new Map,i=new Set;let a=null;const u=n.suspense,{renderer:{p:s,m:l,um:c,o:{createElement:f}}}=r,d=f("div");function p(e){Xn(e),c(e,n,u,!0)}function h(e){o.forEach(((t,n)=>{const r=Ci(t.type);r&&!e(r)&&g(n)}))}function g(e){const t=o.get(e);!t||a&&qo(t,a)?a&&Xn(a):p(t),o.delete(e),i.delete(e)}r.activate=(e,t,n,r,o)=>{const i=e.component;l(e,t,n,0,u),s(i.vnode,e,t,n,i,u,r,e.slotScopeIds,o),lo((()=>{i.isDeactivated=!1,i.a&&P(i.a);const t=e.props&&e.props.onVnodeMounted;t&&ui(t,i.parent,e)}),u)},r.deactivate=e=>{const t=e.component;vo(t.m),vo(t.a),l(e,d,null,1,u),lo((()=>{t.da&&P(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ui(n,t.parent,e),t.isDeactivated=!0}),u)},wo((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>Wn(e,t))),t&&h((e=>!Wn(t,e)))}),{flush:"post",deep:!0});let v=null;const y=()=>{null!=v&&(Po(n.subTree.type)?lo((()=>{o.set(v,Zn(n.subTree))}),n.subTree.suspense):o.set(v,Zn(n.subTree)))};return tr(y),rr(y),or((()=>{o.forEach((e=>{const{subTree:t,suspense:r}=n,o=Zn(t);if(e.type!==o.type||e.key!==o.key)p(e);else{Xn(o);const e=o.component.da;e&&lo(e,r)}}))})),()=>{if(v=null,!t.default)return a=null;const n=t.default(),r=n[0];if(n.length>1)return a=null,n;if(!(Go(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return a=null,r;let u=Zn(r);if(u.type===Io)return a=null,u;const s=u.type,l=Ci(Hn(u)?u.type.__asyncResolved||{}:s),{include:c,exclude:f,max:d}=e;if(c&&(!l||!Wn(c,l))||f&&l&&Wn(f,l))return u.shapeFlag&=-257,a=u,r;const p=null==u.key?s:u.key,h=o.get(p);return u.el&&(u=Qo(u),128&r.shapeFlag&&(r.ssContent=u)),v=p,h?(u.el=h.el,u.component=h.component,u.transition&&Ln(u,u.transition),u.shapeFlag|=512,i.delete(p),i.add(p)):(i.add(p),d&&i.size>parseInt(d,10)&&g(i.values().next().value)),u.shapeFlag|=256,a=u,Po(r.type)?r:u}}};function Wn(e,t){return f(e)?e.some((e=>Wn(e,t))):v(e)?e.split(",").includes(t):"[object RegExp]"===E(e)&&(e.lastIndex=0,e.test(t))}function Gn(e,t){Kn(e,"a",t)}function qn(e,t){Kn(e,"da",t)}function Kn(e,t,n=ci){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Jn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Vn(e.parent.vnode)&&Yn(r,t,n,e),e=e.parent}}function Yn(e,t,n,r){const o=Jn(t,e,r,!0);ir((()=>{s(r[t],o)}),n)}function Xn(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Zn(e){return 128&e.shapeFlag?e.ssContent:e}function Jn(e,t,n=ci,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{Ee();const o=hi(n),i=Ut(t,n,e,r);return o(),xe(),i});return r?o.unshift(i):o.push(i),i}}const Qn=e=>(t,n=ci)=>{yi&&"sp"!==e||Jn(e,((...e)=>t(...e)),n)},er=Qn("bm"),tr=Qn("m"),nr=Qn("bu"),rr=Qn("u"),or=Qn("bum"),ir=Qn("um"),ar=Qn("sp"),ur=Qn("rtg"),sr=Qn("rtc");function lr(e,t=ci){Jn("ec",e,t)}const cr="components";function fr(e,t){return gr(cr,e,!0,t)||e}const dr=Symbol.for("v-ndc");function pr(e){return v(e)?gr(cr,e,!1)||e:e||dr}function hr(e){return gr("directives",e)}function gr(e,t,n=!0,r=!1){const o=un||ci;if(o){const n=o.type;if(e===cr){const e=Ci(n,!1);if(e&&(e===t||e===O(t)||e===B(O(t))))return n}const i=vr(o[e]||n[e],t)||vr(o.appContext[e],t);return!i&&r?n:i}}function vr(e,t){return e&&(e[t]||e[O(t)]||e[B(O(t))])}function yr(e,t,n,r){let o;const i=n,a=f(e);if(a||v(e)){let n=!1,r=!1;a&&gt(e)&&(n=!yt(e),r=vt(e),e=Ne(e)),o=new Array(e.length);for(let a=0,u=e.length;a<u;a++)o[a]=t(n?r?xt(Et(e[a])):Et(e[a]):e[a],a,void 0,i)}else if("number"==typeof e){o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,i)}else if(m(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,i)));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,a=n.length;r<a;r++){const a=n[r];o[r]=t(e[a],a,r,i)}}else o=[];return o}function mr(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(f(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function br(e,t,n={},r,o){if(un.ce||un.parent&&Hn(un.parent)&&un.parent.ce)return"default"!==t&&(n.name=t),zo(),Wo(jo,null,[Zo("slot",n,r&&r())],64);let i=e[t];i&&i._c&&(i._d=!1),zo();const a=i&&wr(i(n)),u=n.key||a&&a.key,s=Wo(jo,{key:(u&&!y(u)?u:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&1===e._?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function wr(e){return e.some((e=>!Go(e)||e.type!==Io&&!(e.type===jo&&!wr(e.children))))?e:null}function Er(e,t){const n={};for(const r in e)n[F(r)]=e[r];return n}const xr=e=>e?vi(e)?xi(e):xr(e.parent):null,Cr=u(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=>xr(e.parent),$root:e=>xr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>jr(e),$forceUpdate:e=>e.f||(e.f=()=>{en(e.update)}),$nextTick:e=>e.n||(e.n=Qt.bind(e.proxy)),$watch:e=>xo.bind(e)}),Sr=(e,n)=>e!==t&&!e.__isScriptSetup&&c(e,n),Dr={get({_:e},n){if("__v_skip"===n)return!0;const{ctx:r,setupState:o,data:i,props:a,accessCache:u,type:s,appContext:l}=e;let f;if("$"!==n[0]){const s=u[n];if(void 0!==s)switch(s){case 1:return o[n];case 2:return i[n];case 4:return r[n];case 3:return a[n]}else{if(Sr(o,n))return u[n]=1,o[n];if(i!==t&&c(i,n))return u[n]=2,i[n];if((f=e.propsOptions[0])&&c(f,n))return u[n]=3,a[n];if(r!==t&&c(r,n))return u[n]=4,r[n];Br&&(u[n]=0)}}const d=Cr[n];let p,h;return d?("$attrs"===n&&Te(e.attrs,0,""),d(e)):(p=s.__cssModules)&&(p=p[n])?p:r!==t&&c(r,n)?(u[n]=4,r[n]):(h=l.config.globalProperties,c(h,n)?h[n]:void 0)},set({_:e},n,r){const{data:o,setupState:i,ctx:a}=e;return Sr(i,n)?(i[n]=r,!0):o!==t&&c(o,n)?(o[n]=r,!0):!c(e.props,n)&&(("$"!==n[0]||!(n.slice(1)in e))&&(a[n]=r,!0))},has({_:{data:e,setupState:n,accessCache:r,ctx:o,appContext:i,propsOptions:a}},u){let s;return!!r[u]||e!==t&&c(e,u)||Sr(n,u)||(s=a[0])&&c(s,u)||c(o,u)||c(Cr,u)||c(i.config.globalProperties,u)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:c(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ar(){return _r().slots}function Or(){return _r().attrs}function _r(){const e=fi();return e.setupContext||(e.setupContext=Ei(e))}function kr(e){return f(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let Br=!0;function Fr(e){const t=jr(e),n=e.proxy,o=e.ctx;Br=!1,t.beforeCreate&&Tr(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:u,watch:s,provide:l,inject:c,created:d,beforeMount:p,mounted:h,beforeUpdate:v,updated:y,activated:b,deactivated:w,beforeDestroy:E,beforeUnmount:x,destroyed:C,unmounted:S,render:D,renderTracked:A,renderTriggered:O,errorCaptured:_,serverPrefetch:k,expose:B,inheritAttrs:F,components:T,directives:P,filters:j}=t;if(c&&function(e,t){f(e)&&(e=Rr(e));for(const n in e){const r=e[n];let o;o=m(r)?"default"in r?qr(r.from||n,r.default,!0):qr(r.from||n):qr(r),Ct(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[n]=o}}(c,o,null),u)for(const r in u){const e=u[r];g(e)&&(o[r]=e.bind(n))}if(i){const t=i.call(n,n);m(t)&&(e.data=ft(t))}if(Br=!0,a)for(const f in a){const e=a[f],t=g(e)?e.bind(n,n):g(e.get)?e.get.bind(n,n):r,i=!g(e)&&g(e.set)?e.set.bind(n):r,u=Si({get:t,set:i});Object.defineProperty(o,f,{enumerable:!0,configurable:!0,get:()=>u.value,set:e=>u.value=e})}if(s)for(const r in s)Pr(s[r],o,n,r);if(l){const e=g(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{Gr(t,e[t])}))}function N(e,t){f(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&Tr(d,e,"c"),N(er,p),N(tr,h),N(nr,v),N(rr,y),N(Gn,b),N(qn,w),N(lr,_),N(sr,A),N(ur,O),N(or,x),N(ir,S),N(ar,k),f(B))if(B.length){const t=e.exposed||(e.exposed={});B.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});D&&e.render===r&&(e.render=D),null!=F&&(e.inheritAttrs=F),T&&(e.components=T),P&&(e.directives=P),k&&zn(e)}function Tr(e,t,n){Ut(f(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Pr(e,t,n,r){let o=r.includes(".")?Co(n,r):()=>n[r];if(v(e)){const n=t[e];g(n)&&wo(o,n)}else if(g(e))wo(o,e.bind(n));else if(m(e))if(f(e))e.forEach((e=>Pr(e,t,n,r)));else{const r=g(e.handler)?e.handler.bind(n):t[e.handler];g(r)&&wo(o,r,e)}}function jr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,u=i.get(t);let s;return u?s=u:o.length||n||r?(s={},o.length&&o.forEach((e=>Nr(s,e,a,!0))),Nr(s,t,a)):s=t,m(t)&&i.set(t,s),s}function Nr(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Nr(e,i,n,!0),o&&o.forEach((t=>Nr(e,t,n,!0)));for(const a in t)if(r&&"expose"===a);else{const r=Ir[a]||n&&n[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const Ir={data:Lr,props:$r,emits:$r,methods:zr,computed:zr,beforeCreate:Mr,created:Mr,beforeMount:Mr,mounted:Mr,beforeUpdate:Mr,updated:Mr,beforeDestroy:Mr,beforeUnmount:Mr,destroyed:Mr,unmounted:Mr,activated:Mr,deactivated:Mr,errorCaptured:Mr,serverPrefetch:Mr,components:zr,directives:zr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=u(Object.create(null),e);for(const r in t)n[r]=Mr(e[r],t[r]);return n},provide:Lr,inject:function(e,t){return zr(Rr(e),Rr(t))}};function Lr(e,t){return t?e?function(){return u(g(e)?e.call(this,this):e,g(t)?t.call(this,this):t)}:t:e}function Rr(e){if(f(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Mr(e,t){return e?[...new Set([].concat(e,t))]:t}function zr(e,t){return e?u(Object.create(null),e,t):t}function $r(e,t){return e?f(e)&&f(t)?[...new Set([...e,...t])]:u(Object.create(null),kr(e),kr(null!=t?t:{})):t}function Hr(){return{app:null,config:{isNativeTag:o,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 Vr=0;function Ur(e,t){return function(t,n=null){g(t)||(t=u({},t)),null==n||m(n)||(n=null);const r=Hr(),o=new WeakSet,i=[];let a=!1;const s=r.app={_uid:Vr++,_component:t,_props:n,_container:null,_context:r,_instance:null,version:Ai,get config(){return r.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&g(e.install)?(o.add(e),e.install(s,...t)):g(e)&&(o.add(e),e(s,...t))),s),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),s),component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(o,i,u){if(!a){const i=s._ceVNode||Zo(t,n);return i.appContext=r,!0===u?u="svg":!1===u&&(u=void 0),e(i,o,u),a=!0,s._container=o,o.__vue_app__=s,xi(i.component)}},onUnmount(e){i.push(e)},unmount(){a&&(Ut(i,s._instance,16),e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s),runWithContext(e){const t=Wr;Wr=s;try{return e()}finally{Wr=t}}};return s}}let Wr=null;function Gr(e,t){if(ci){let n=ci.provides;const r=ci.parent&&ci.parent.provides;r===n&&(n=ci.provides=Object.create(r)),n[e]=t}else;}function qr(e,t,n=!1){const r=ci||un;if(r||Wr){let o=Wr?Wr._context.provides:r?null==r.parent||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&g(t)?t.call(r&&r.proxy):t}}function Kr(){return!!(ci||un||Wr)}const Yr={},Xr=()=>Object.create(Yr),Zr=e=>Object.getPrototypeOf(e)===Yr;function Jr(e,n,r,o){const[i,a]=e.propsOptions;let u,s=!1;if(n)for(let t in n){if(S(t))continue;const l=n[t];let f;i&&c(i,f=O(t))?a&&a.includes(f)?(u||(u={}))[f]=l:r[f]=l:_o(e.emitsOptions,t)||t in o&&l===o[t]||(o[t]=l,s=!0)}if(a){const n=bt(r),o=u||t;for(let t=0;t<a.length;t++){const u=a[t];r[u]=Qr(i,n,u,o[u],e,!c(o,u))}}return s}function Qr(e,t,n,r,o,i){const a=e[n];if(null!=a){const e=c(a,"default");if(e&&void 0===r){const e=a.default;if(a.type!==Function&&!a.skipFactory&&g(e)){const{propsDefaults:i}=o;if(n in i)r=i[n];else{const a=hi(o);r=i[n]=e.call(null,t),a()}}else r=e;o.ce&&o.ce._setProp(n,r)}a[0]&&(i&&!e?r=!1:!a[1]||""!==r&&r!==k(n)||(r=!0))}return r}const eo=new WeakMap;function to(e,r,o=!1){const i=o?eo:r.propsCache,a=i.get(e);if(a)return a;const s=e.props,l={},d=[];let p=!1;if(!g(e)){const t=e=>{p=!0;const[t,n]=to(e,r,!0);u(l,t),n&&d.push(...n)};!o&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!s&&!p)return m(e)&&i.set(e,n),n;if(f(s))for(let n=0;n<s.length;n++){const e=O(s[n]);no(e)&&(l[e]=t)}else if(s)for(const t in s){const e=O(t);if(no(e)){const n=s[t],r=l[e]=f(n)||g(n)?{type:n}:u({},n),o=r.type;let i=!1,a=!0;if(f(o))for(let e=0;e<o.length;++e){const t=o[e],n=g(t)&&t.name;if("Boolean"===n){i=!0;break}"String"===n&&(a=!1)}else i=g(o)&&"Boolean"===o.name;r[0]=i,r[1]=a,(i||c(r,"default"))&&d.push(e)}}const h=[l,d];return m(e)&&i.set(e,h),h}function no(e){return"$"!==e[0]&&!S(e)}const ro=e=>"_"===e[0]||"$stable"===e,oo=e=>f(e)?e.map(ri):[ri(e)],io=(e,t,n)=>{if(t._n)return t;const r=cn(((...e)=>oo(t(...e))),n);return r._c=!1,r},ao=(e,t,n)=>{const r=e._ctx;for(const o in e){if(ro(o))continue;const n=e[o];if(g(n))t[o]=io(0,n,r);else if(null!=n){const e=oo(n);t[o]=()=>e}}},uo=(e,t)=>{const n=oo(t);e.slots.default=()=>n},so=(e,t,n)=>{for(const r in t)!n&&ro(r)||(e[r]=t[r])},lo=function(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):(f(n=e)?Kt.push(...n):Yt&&-1===n.id?Yt.splice(Xt+1,0,n):1&n.flags||(Kt.push(n),n.flags|=1),tn());var n};function co(e){return function(e){L().__VUE__=!0;const{insert:o,remove:i,patchProp:a,createElement:u,createText:s,createComment:l,setText:d,setElementText:p,parentNode:h,nextSibling:g,setScopeId:v=r,insertStaticContent:y}=e,m=(e,t,n,r=null,o=null,i=null,a=void 0,u=null,s=!!t.dynamicChildren)=>{if(e===t)return;e&&!qo(e,t)&&(r=Q(e),K(e,o,i,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:l,ref:c,shapeFlag:f}=t;switch(l){case No:w(e,t,n,r);break;case Io:E(e,t,n,r);break;case Lo:null==e&&x(t,n,r,a);break;case jo:R(e,t,n,r,o,i,a,u,s);break;default:1&f?A(e,t,n,r,o,i,a,u,s):6&f?M(e,t,n,r,o,i,a,u,s):(64&f||128&f)&&l.process(e,t,n,r,o,i,a,u,s,re)}null!=c&&o&&$n(c,e&&e.ref,i,t||e,!t)},w=(e,t,n,r)=>{if(null==e)o(t.el=s(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},E=(e,t,n,r)=>{null==e?o(t.el=l(t.children||""),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=y(e.children,t,n,r,e.el,e.anchor)},C=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=g(e),o(e,n,r),e=i;o(t,n,r)},D=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=g(e),i(e),e=n;i(t)},A=(e,t,n,r,o,i,a,u,s)=>{"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?_(t,n,r,o,i,a,u,s):T(e,t,o,i,a,u,s)},_=(e,t,n,r,i,s,l,c)=>{let f,d;const{props:h,shapeFlag:g,transition:v,dirs:y}=e;if(f=e.el=u(e.type,s,h&&h.is,h),8&g?p(f,e.children):16&g&&F(e.children,f,null,r,i,fo(e,s),l,c),y&&dn(e,null,r,"created"),B(f,e,e.scopeId,l,r),h){for(const e in h)"value"===e||S(e)||a(f,e,null,h[e],s,r);"value"in h&&a(f,"value",null,h.value,s),(d=h.onVnodeBeforeMount)&&ui(d,r,e)}y&&dn(e,null,r,"beforeMount");const m=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(i,v);m&&v.beforeEnter(f),o(f,t,n),((d=h&&h.onVnodeMounted)||m||y)&&lo((()=>{d&&ui(d,r,e),m&&v.enter(f),y&&dn(e,null,r,"mounted")}),i)},B=(e,t,n,r,o)=>{if(n&&v(e,n),r)for(let i=0;i<r.length;i++)v(e,r[i]);if(o){let n=o.subTree;if(t===n||Po(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=o.vnode;B(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},F=(e,t,n,r,o,i,a,u,s=0)=>{for(let l=s;l<e.length;l++){const s=e[l]=u?oi(e[l]):ri(e[l]);m(null,s,t,n,r,o,i,a,u)}},T=(e,n,r,o,i,u,s)=>{const l=n.el=e.el;let{patchFlag:c,dynamicChildren:f,dirs:d}=n;c|=16&e.patchFlag;const h=e.props||t,g=n.props||t;let v;if(r&&po(r,!1),(v=g.onVnodeBeforeUpdate)&&ui(v,r,n,e),d&&dn(n,e,r,"beforeUpdate"),r&&po(r,!0),(h.innerHTML&&null==g.innerHTML||h.textContent&&null==g.textContent)&&p(l,""),f?N(e.dynamicChildren,f,l,r,o,fo(n,i),u):s||U(e,n,l,null,r,o,fo(n,i),u,!1),c>0){if(16&c)I(l,h,g,r,i);else if(2&c&&h.class!==g.class&&a(l,"class",null,g.class,i),4&c&&a(l,"style",h.style,g.style,i),8&c){const e=n.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t],o=h[n],u=g[n];u===o&&"value"!==n||a(l,n,o,u,i,r)}}1&c&&e.children!==n.children&&p(l,n.children)}else s||null!=f||I(l,h,g,r,i);((v=g.onVnodeUpdated)||d)&&lo((()=>{v&&ui(v,r,n,e),d&&dn(n,e,r,"updated")}),o)},N=(e,t,n,r,o,i,a)=>{for(let u=0;u<t.length;u++){const s=e[u],l=t[u],c=s.el&&(s.type===jo||!qo(s,l)||198&s.shapeFlag)?h(s.el):n;m(s,l,c,null,r,o,i,a,!0)}},I=(e,n,r,o,i)=>{if(n!==r){if(n!==t)for(const t in n)S(t)||t in r||a(e,t,n[t],null,i,o);for(const t in r){if(S(t))continue;const u=r[t],s=n[t];u!==s&&"value"!==t&&a(e,t,s,u,i,o)}"value"in r&&a(e,"value",n.value,r.value,i)}},R=(e,t,n,r,i,a,u,l,c)=>{const f=t.el=e?e.el:s(""),d=t.anchor=e?e.anchor:s("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(o(f,n,r),o(d,n,r),F(t.children||[],n,d,i,a,u,l,c)):p>0&&64&p&&h&&e.dynamicChildren?(N(e.dynamicChildren,h,n,i,a,u,l),(null!=t.key||i&&t===i.subTree)&&ho(e,t,!0)):U(e,t,n,d,i,a,u,l,c)},M=(e,t,n,r,o,i,a,u,s)=>{t.slotScopeIds=u,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,a,s):z(t,n,r,o,i,a,s):$(e,t,s)},z=(e,n,r,o,i,a,u)=>{const s=e.component=function(e,n,r){const o=e.type,i=(n?n.appContext:e.appContext)||si,a={uid:li++,vnode:e,type:o,parent:n,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new te(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(i.provides),ids:n?n.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:to(o,i),emitsOptions:Oo(o,i),emit:null,emitted:null,propsDefaults:t,inheritAttrs:o.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};a.ctx={_:a},a.root=n?n.root:a,a.emit=Ao.bind(null,a),e.ce&&e.ce(a);return a}(e,o,i);if(Vn(e)&&(s.ctx.renderer=re),function(e,t=!1,n=!1){t&&pi(t);const{props:r,children:o}=e.vnode,i=vi(e);(function(e,t,n,r=!1){const o={},i=Xr();e.propsDefaults=Object.create(null),Jr(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:dt(o):e.type.props?e.props=o:e.props=i,e.attrs=i})(e,r,i,t),((e,t,n)=>{const r=e.slots=Xr();if(32&e.vnode.shapeFlag){const e=t._;e?(so(r,t,n),n&&j(r,"_",e,!0)):ao(t,r)}else t&&uo(e,t)})(e,o,n||t);const a=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Dr);const{setup:r}=n;if(r){Ee();const n=e.setupContext=r.length>1?Ei(e):null,o=hi(e),i=Vt(r,e,0,[e.props,n]),a=b(i);if(xe(),o(),!a&&!e.sp||Hn(e)||zn(e),a){if(i.then(gi,gi),t)return i.then((t=>{mi(e,t)})).catch((t=>{Wt(t,e,0)}));e.asyncDep=i}else mi(e,i)}else bi(e)}(e,t):void 0;t&&pi(!1)}(s,!1,u),s.asyncDep){if(i&&i.registerDep(s,H,u),!e.el){const e=s.subTree=Zo(Io);E(null,e,n,r)}}else H(s,e,n,r,i,a,u)},$=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:u,patchFlag:s}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&s>=0))return!(!o&&!u||u&&u.$stable)||r!==a&&(r?!a||To(r,a,l):!!a);if(1024&s)return!0;if(16&s)return r?To(r,a,l):!!a;if(8&s){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==r[n]&&!_o(l,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void V(r,t,n);r.next=t,r.update()}else t.el=e.el,r.vnode=t},H=(e,t,n,r,o,i,a)=>{const u=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:l}=e;{const n=go(e);if(n)return t&&(t.el=l.el,V(e,t,a)),void n.asyncDep.then((()=>{e.isUnmounted||u()}))}let c,f=t;po(e,!1),t?(t.el=l.el,V(e,t,a)):t=l,n&&P(n),(c=t.props&&t.props.onVnodeBeforeUpdate)&&ui(c,s,t,l),po(e,!0);const d=ko(e),p=e.subTree;e.subTree=d,m(p,d,h(p.el),Q(p),e,o,i),t.el=d.el,null===f&&function({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,d.el),r&&lo(r,o),(c=t.props&&t.props.onVnodeUpdated)&&lo((()=>ui(c,s,t,l)),o)}else{let a;const{el:u,props:s}=t,{bm:l,m:c,parent:f,root:d,type:p}=e,h=Hn(t);po(e,!1),l&&P(l),!h&&(a=s&&s.onVnodeBeforeMount)&&ui(a,f,t),po(e,!0);{d.ce&&d.ce._injectChildStyle(p);const a=e.subTree=ko(e);m(null,a,n,r,e,o,i),t.el=a.el}if(c&&lo(c,o),!h&&(a=s&&s.onVnodeMounted)){const e=t;lo((()=>ui(a,f,e)),o)}(256&t.shapeFlag||f&&Hn(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&lo(e.a,o),e.isMounted=!0,t=n=r=null}};e.scope.on();const s=e.effect=new ae(u);e.scope.off();const l=e.update=s.run.bind(s),c=e.job=s.runIfDirty.bind(s);c.i=e,c.id=e.uid,s.scheduler=()=>en(c),po(e,!0),l()},V=(e,n,r)=>{n.component=e;const o=e.vnode.props;e.vnode=n,e.next=null,function(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,u=bt(o),[s]=e.propsOptions;let l=!1;if(!(r||a>0)||16&a){let r;Jr(e,t,o,i)&&(l=!0);for(const i in u)t&&(c(t,i)||(r=k(i))!==i&&c(t,r))||(s?!n||void 0===n[i]&&void 0===n[r]||(o[i]=Qr(s,u,i,void 0,e,!0)):delete o[i]);if(i!==u)for(const e in i)t&&c(t,e)||(delete i[e],l=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r];if(_o(e.emitsOptions,a))continue;const f=t[a];if(s)if(c(i,a))f!==i[a]&&(i[a]=f,l=!0);else{const t=O(a);o[t]=Qr(s,u,t,f,e,!1)}else f!==i[a]&&(i[a]=f,l=!0)}}l&&Pe(e.attrs,"set","")}(e,n.props,o,r),((e,n,r)=>{const{vnode:o,slots:i}=e;let a=!0,u=t;if(32&o.shapeFlag){const e=n._;e?r&&1===e?a=!1:so(i,n,r):(a=!n.$stable,ao(n,i)),u=n}else n&&(uo(e,n),u={default:1});if(a)for(const t in i)ro(t)||null!=u[t]||delete i[t]})(e,n.children,r),Ee(),nn(e),xe()},U=(e,t,n,r,o,i,a,u,s=!1)=>{const l=e&&e.children,c=e?e.shapeFlag:0,f=t.children,{patchFlag:d,shapeFlag:h}=t;if(d>0){if(128&d)return void G(l,f,n,r,o,i,a,u,s);if(256&d)return void W(l,f,n,r,o,i,a,u,s)}8&h?(16&c&&J(l,o,i),f!==l&&p(n,f)):16&c?16&h?G(l,f,n,r,o,i,a,u,s):J(l,o,i,!0):(8&c&&p(n,""),16&h&&F(f,n,r,o,i,a,u,s))},W=(e,t,r,o,i,a,u,s,l)=>{t=t||n;const c=(e=e||n).length,f=t.length,d=Math.min(c,f);let p;for(p=0;p<d;p++){const n=t[p]=l?oi(t[p]):ri(t[p]);m(e[p],n,r,null,i,a,u,s,l)}c>f?J(e,i,a,!0,!1,d):F(t,r,o,i,a,u,s,l,d)},G=(e,t,r,o,i,a,u,s,l)=>{let c=0;const f=t.length;let d=e.length-1,p=f-1;for(;c<=d&&c<=p;){const n=e[c],o=t[c]=l?oi(t[c]):ri(t[c]);if(!qo(n,o))break;m(n,o,r,null,i,a,u,s,l),c++}for(;c<=d&&c<=p;){const n=e[d],o=t[p]=l?oi(t[p]):ri(t[p]);if(!qo(n,o))break;m(n,o,r,null,i,a,u,s,l),d--,p--}if(c>d){if(c<=p){const e=p+1,n=e<f?t[e].el:o;for(;c<=p;)m(null,t[c]=l?oi(t[c]):ri(t[c]),r,n,i,a,u,s,l),c++}}else if(c>p)for(;c<=d;)K(e[c],i,a,!0),c++;else{const h=c,g=c,v=new Map;for(c=g;c<=p;c++){const e=t[c]=l?oi(t[c]):ri(t[c]);null!=e.key&&v.set(e.key,c)}let y,b=0;const w=p-g+1;let E=!1,x=0;const C=new Array(w);for(c=0;c<w;c++)C[c]=0;for(c=h;c<=d;c++){const n=e[c];if(b>=w){K(n,i,a,!0);continue}let o;if(null!=n.key)o=v.get(n.key);else for(y=g;y<=p;y++)if(0===C[y-g]&&qo(n,t[y])){o=y;break}void 0===o?K(n,i,a,!0):(C[o-g]=c+1,o>=x?x=o:E=!0,m(n,t[o],r,null,i,a,u,s,l),b++)}const S=E?function(e){const t=e.slice(),n=[0];let r,o,i,a,u;const s=e.length;for(r=0;r<s;r++){const s=e[r];if(0!==s){if(o=n[n.length-1],e[o]<s){t[r]=o,n.push(r);continue}for(i=0,a=n.length-1;i<a;)u=i+a>>1,e[n[u]]<s?i=u+1:a=u;s<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,a=n[i-1];for(;i-- >0;)n[i]=a,a=t[a];return n}(C):n;for(y=S.length-1,c=w-1;c>=0;c--){const e=g+c,n=t[e],d=e+1<f?t[e+1].el:o;0===C[c]?m(null,n,r,d,i,a,u,s,l):E&&(y<0||c!==S[y]?q(n,r,d,2):y--)}}},q=(e,t,n,r,a=null)=>{const{el:u,type:s,transition:l,children:c,shapeFlag:f}=e;if(6&f)return void q(e.component.subTree,t,n,r);if(128&f)return void e.suspense.move(t,n,r);if(64&f)return void s.move(e,t,n,re);if(s===jo){o(u,t,n);for(let e=0;e<c.length;e++)q(c[e],t,n,r);return void o(e.anchor,t,n)}if(s===Lo)return void C(e,t,n);if(2!==r&&1&f&&l)if(0===r)l.beforeEnter(u),o(u,t,n),lo((()=>l.enter(u)),a);else{const{leave:r,delayLeave:a,afterLeave:s}=l,c=()=>{e.ctx.isUnmounted?i(u):o(u,t,n)},f=()=>{r(u,(()=>{c(),s&&s()}))};a?a(u,c,f):f()}else o(u,t,n)},K=(e,t,n,r=!1,o=!1)=>{const{type:i,props:a,ref:u,children:s,dynamicChildren:l,shapeFlag:c,patchFlag:f,dirs:d,cacheIndex:p}=e;if(-2===f&&(o=!1),null!=u&&(Ee(),$n(u,null,n,e,!0),xe()),null!=p&&(t.renderCache[p]=void 0),256&c)return void t.ctx.deactivate(e);const h=1&c&&d,g=!Hn(e);let v;if(g&&(v=a&&a.onVnodeBeforeUnmount)&&ui(v,t,e),6&c)Z(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);h&&dn(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,re,r):l&&!l.hasOnce&&(i!==jo||f>0&&64&f)?J(l,t,n,!1,!0):(i===jo&&384&f||!o&&16&c)&&J(s,t,n),r&&Y(e)}(g&&(v=a&&a.onVnodeUnmounted)||h)&&lo((()=>{v&&ui(v,t,e),h&&dn(e,null,t,"unmounted")}),n)},Y=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===jo)return void X(n,r);if(t===Lo)return void D(e);const a=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,a);r?r(e.el,a,i):i()}else a()},X=(e,t)=>{let n;for(;e!==t;)n=g(e),i(e),e=n;i(t)},Z=(e,t,n)=>{const{bum:r,scope:o,job:i,subTree:a,um:u,m:s,a:l,parent:c,slots:{__:d}}=e;vo(s),vo(l),r&&P(r),c&&f(d)&&d.forEach((e=>{c.renderCache[e]=void 0})),o.stop(),i&&(i.flags|=8,K(a,e,t,n)),u&&lo(u,t),lo((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=(e,t,n,r=!1,o=!1,i=0)=>{for(let a=i;a<e.length;a++)K(e[a],t,n,r,o)},Q=e=>{if(6&e.shapeFlag)return Q(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=g(e.anchor||e.el),n=t&&t[pn];return n?g(n):t};let ee=!1;const ne=(e,t,n)=>{null==e?t._vnode&&K(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ee||(ee=!0,nn(),rn(),ee=!1)},re={p:m,um:K,m:q,r:Y,mt:z,mc:F,pc:U,pbc:N,n:Q,o:e};let oe;return{render:ne,hydrate:oe,createApp:Ur(ne)}}(e)}function fo({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function po({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ho(e,t,n=!1){const r=e.children,o=t.children;if(f(r)&&f(o))for(let i=0;i<r.length;i++){const e=r[i];let t=o[i];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=o[i]=oi(o[i]),t.el=e.el),n||-2===t.patchFlag||ho(e,t)),t.type===No&&(t.el=e.el),t.type!==Io||t.el||(t.el=e.el)}}function go(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:go(t)}function vo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const yo=Symbol.for("v-scx"),mo=()=>qr(yo);function bo(e,t){return Eo(e,null,t)}function wo(e,t,n){return Eo(e,t,n)}function Eo(e,n,o=t){const{immediate:i,deep:a,flush:s,once:l}=o,c=u({},o),f=n&&i||!n&&"post"!==s;let d;if(yi)if("sync"===s){const e=mo();d=e.__watcherHandles||(e.__watcherHandles=[])}else if(!f){const e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}const p=ci;c.call=(e,t,n)=>Ut(e,p,t,n);let h=!1;"post"===s?c.scheduler=e=>{lo(e,p&&p.suspense)}:"sync"!==s&&(h=!0,c.scheduler=(e,t)=>{t?e():en(e)}),c.augmentJob=e=>{n&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const g=$t(e,n,c);return yi&&(d?d.push(g):f&&g()),g}function xo(e,t,n){const r=this.proxy,o=v(e)?e.includes(".")?Co(r,e):()=>r[e]:e.bind(r,r);let i;g(t)?i=t:(i=t.handler,n=t);const a=hi(this),u=Eo(o,i.bind(r),n);return a(),u}function Co(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function So(e,n,r=t){const o=fi(),i=O(n),a=k(n),u=Do(e,i),s=new Ft(((u,s)=>{let l,c,f=t;return Eo((()=>{const t=e[i];T(l,t)&&(l=t,s())}),null,{flush:"sync"}),{get:()=>(u(),r.get?r.get(l):l),set(e){const u=r.set?r.set(e):e;if(!(T(u,l)||f!==t&&T(e,f)))return;const d=o.vnode.props;d&&(n in d||i in d||a in d)&&(`onUpdate:${n}`in d||`onUpdate:${i}`in d||`onUpdate:${a}`in d)||(l=e,s()),o.emit(`update:${n}`,u),T(e,u)&&T(e,f)&&!T(u,c)&&s(),f=e,c=u}}}));return s[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?u||t:s,done:!1}:{done:!0}}},s}const Do=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${k(t)}Modifiers`];function Ao(e,n,...r){if(e.isUnmounted)return;const o=e.vnode.props||t;let i=r;const a=n.startsWith("update:"),u=a&&Do(o,n.slice(7));let s;u&&(u.trim&&(i=r.map((e=>v(e)?e.trim():e))),u.number&&(i=r.map(N)));let l=o[s=F(n)]||o[s=F(O(n))];!l&&a&&(l=o[s=F(k(n))]),l&&Ut(l,e,6,i);const c=o[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,Ut(c,e,6,i)}}function Oo(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const i=e.emits;let a={},s=!1;if(!g(e)){const r=e=>{const n=Oo(e,t,!0);n&&(s=!0,u(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return i||s?(f(i)?i.forEach((e=>a[e]=null)):u(a,i),m(e)&&r.set(e,a),a):(m(e)&&r.set(e,null),null)}function _o(e,t){return!(!e||!i(t))&&(t=t.slice(2).replace(/Once$/,""),c(e,t[0].toLowerCase()+t.slice(1))||c(e,k(t))||c(e,t))}function ko(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:u,attrs:s,emit:l,render:c,renderCache:f,props:d,data:p,setupState:h,ctx:g,inheritAttrs:v}=e,y=ln(e);let m,b;try{if(4&n.shapeFlag){const e=o||r,t=e;m=ri(c.call(t,e,f,d,h,p,g)),b=s}else{const e=t;0,m=ri(e.length>1?e(d,{attrs:s,slots:u,emit:l}):e(d,null)),b=t.props?s:Bo(s)}}catch(E){Ro.length=0,Wt(E,e,1),m=Zo(Io)}let w=m;if(b&&!1!==v){const e=Object.keys(b),{shapeFlag:t}=w;e.length&&7&t&&(i&&e.some(a)&&(b=Fo(b,i)),w=Qo(w,b,!1,!0))}return n.dirs&&(w=Qo(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&Ln(w,n.transition),m=w,ln(y),m}const Bo=e=>{let t;for(const n in e)("class"===n||"style"===n||i(n))&&((t||(t={}))[n]=e[n]);return t},Fo=(e,t)=>{const n={};for(const r in e)a(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function To(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!_o(n,i))return!0}return!1}const Po=e=>e.__isSuspense;const jo=Symbol.for("v-fgt"),No=Symbol.for("v-txt"),Io=Symbol.for("v-cmt"),Lo=Symbol.for("v-stc"),Ro=[];let Mo=null;function zo(e=!1){Ro.push(Mo=e?null:[])}let $o=1;function Ho(e,t=!1){$o+=e,e<0&&Mo&&t&&(Mo.hasOnce=!0)}function Vo(e){return e.dynamicChildren=$o>0?Mo||n:null,Ro.pop(),Mo=Ro[Ro.length-1]||null,$o>0&&Mo&&Mo.push(e),e}function Uo(e,t,n,r,o,i){return Vo(Xo(e,t,n,r,o,i,!0))}function Wo(e,t,n,r,o){return Vo(Zo(e,t,n,r,o,!0))}function Go(e){return!!e&&!0===e.__v_isVNode}function qo(e,t){return e.type===t.type&&e.key===t.key}const Ko=({key:e})=>null!=e?e:null,Yo=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||Ct(e)||g(e)?{i:un,r:e,k:t,f:!!n}:e:null);function Xo(e,t=null,n=null,r=0,o=null,i=(e===jo?0:1),a=!1,u=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ko(t),ref:t&&Yo(t),scopeId:sn,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:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:un};return u?(ii(s,n),128&i&&e.normalize(s)):n&&(s.shapeFlag|=v(n)?8:16),$o>0&&!a&&Mo&&(s.patchFlag>0||6&i)&&32!==s.patchFlag&&Mo.push(s),s}const Zo=function(e,t=null,n=null,r=0,o=null,i=!1){e&&e!==dr||(e=Io);if(Go(e)){const r=Qo(e,t,!0);return n&&ii(r,n),$o>0&&!i&&Mo&&(6&r.shapeFlag?Mo[Mo.indexOf(e)]=r:Mo.push(r)),r.patchFlag=-2,r}a=e,g(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=Jo(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=V(e)),m(n)&&(mt(n)&&!f(n)&&(n=u({},n)),t.style=R(n))}const s=v(e)?1:Po(e)?128:hn(e)?64:m(e)?4:g(e)?2:0;return Xo(e,t,n,r,o,s,i,!0)};function Jo(e){return e?mt(e)||Zr(e)?u({},e):e:null}function Qo(e,t,n=!1,r=!1){const{props:o,ref:i,patchFlag:a,children:u,transition:s}=e,l=t?ai(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ko(l),ref:t&&t.ref?n&&i?f(i)?i.concat(Yo(t)):[i,Yo(t)]:Yo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==jo?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qo(e.ssContent),ssFallback:e.ssFallback&&Qo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&r&&Ln(c,s.clone(c)),c}function ei(e=" ",t=0){return Zo(No,null,e,t)}function ti(e,t){const n=Zo(Lo,null,e);return n.staticCount=t,n}function ni(e="",t=!1){return t?(zo(),Wo(Io,null,e)):Zo(Io,null,e)}function ri(e){return null==e||"boolean"==typeof e?Zo(Io):f(e)?Zo(jo,null,e.slice()):Go(e)?oi(e):Zo(No,null,String(e))}function oi(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Qo(e)}function ii(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),ii(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Zr(t)?3===r&&un&&(1===un.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=un}}else g(t)?(t={default:t,_ctx:un},n=32):(t=String(t),64&r?(n=16,t=[ei(t)]):n=8);e.children=t,e.shapeFlag|=n}function ai(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=V([t.class,r.class]));else if("style"===e)t.style=R([t.style,r.style]);else if(i(e)){const n=t[e],o=r[e];!o||n===o||f(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=r[e])}return t}function ui(e,t,n,r=null){Ut(e,t,7,[n,r])}const si=Hr();let li=0;let ci=null;const fi=()=>ci||un;let di,pi;{const e=L(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach((t=>t(e))):r[0](e)}};di=t("__VUE_INSTANCE_SETTERS__",(e=>ci=e)),pi=t("__VUE_SSR_SETTERS__",(e=>yi=e))}const hi=e=>{const t=ci;return di(e),e.scope.on(),()=>{e.scope.off(),di(t)}},gi=()=>{ci&&ci.scope.off(),di(null)};function vi(e){return 4&e.vnode.shapeFlag}let yi=!1;function mi(e,t,n){g(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:m(t)&&(e.setupState=Bt(t)),bi(e)}function bi(e,t,n){const o=e.type;e.render||(e.render=o.render||r);{const t=hi(e);Ee();try{Fr(e)}finally{xe(),t()}}}const wi={get:(e,t)=>(Te(e,0,""),e[t])};function Ei(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,wi),slots:e.slots,emit:e.emit,expose:t}}function xi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Bt(wt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Cr?Cr[n](e):void 0,has:(e,t)=>t in e||t in Cr})):e.proxy}function Ci(e,t=!0){return g(e)?e.displayName||e.name:e.name||t&&e.__name}const Si=(e,t)=>{const n=function(e,t,n=!1){let r,o;return g(e)?r=e:(r=e.get,o=e.set),new Lt(r,o,n)}(e,0,yi);return n};function Di(e,t,n){const r=arguments.length;return 2===r?m(t)&&!f(t)?Go(t)?Zo(e,null,[t]):Zo(e,t):Zo(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Go(n)&&(n=[n]),Zo(e,t,n))}const Ai="3.5.16",Oi=r;let _i;const ki="undefined"!=typeof window&&window.trustedTypes;if(ki)try{_i=ki.createPolicy("vue",{createHTML:e=>e})}catch($u){}const Bi=_i?e=>_i.createHTML(e):e=>e,Fi="undefined"!=typeof document?document:null,Ti=Fi&&Fi.createElement("template"),Pi={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 o="svg"===t?Fi.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Fi.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Fi.createElement(e,{is:n}):Fi.createElement(e);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>Fi.createTextNode(e),createComment:e=>Fi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Fi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{Ti.innerHTML=Bi("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);const o=Ti.content;if("svg"===r||"mathml"===r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ji="transition",Ni="animation",Ii=Symbol("_vtc"),Li={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},Ri=u({},kn,Li),Mi=(e=>(e.displayName="Transition",e.props=Ri,e))(((e,{slots:t})=>Di(Tn,Hi(e),t))),zi=(e,t=[])=>{f(e)?e.forEach((e=>e(...t))):e&&e(...t)},$i=e=>!!e&&(f(e)?e.some((e=>e.length>1)):e.length>1);function Hi(e){const t={};for(const u in e)u in Li||(t[u]=e[u]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=a,appearToClass:f=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if(m(e))return[Vi(e.enter),Vi(e.leave)];{const t=Vi(e);return[t,t]}}(o),v=g&&g[0],y=g&&g[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:E,onLeave:x,onLeaveCancelled:C,onBeforeAppear:S=b,onAppear:D=w,onAppearCancelled:A=E}=t,O=(e,t,n,r)=>{e._enterCancelled=r,Wi(e,t?f:s),Wi(e,t?c:a),n&&n()},_=(e,t)=>{e._isLeaving=!1,Wi(e,d),Wi(e,h),Wi(e,p),t&&t()},k=e=>(t,n)=>{const o=e?D:w,a=()=>O(t,e,n);zi(o,[t,a]),Gi((()=>{Wi(t,e?l:i),Ui(t,e?f:s),$i(o)||Ki(t,r,v,a)}))};return u(t,{onBeforeEnter(e){zi(b,[e]),Ui(e,i),Ui(e,a)},onBeforeAppear(e){zi(S,[e]),Ui(e,l),Ui(e,c)},onEnter:k(!1),onAppear:k(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>_(e,t);Ui(e,d),e._enterCancelled?(Ui(e,p),Ji()):(Ji(),Ui(e,p)),Gi((()=>{e._isLeaving&&(Wi(e,d),Ui(e,h),$i(x)||Ki(e,r,y,n))})),zi(x,[e,n])},onEnterCancelled(e){O(e,!1,void 0,!0),zi(E,[e])},onAppearCancelled(e){O(e,!0,void 0,!0),zi(A,[e])},onLeaveCancelled(e){_(e),zi(C,[e])}})}function Vi(e){const t=(e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function Ui(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[Ii]||(e[Ii]=new Set)).add(t)}function Wi(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[Ii];n&&(n.delete(t),n.size||(e[Ii]=void 0))}function Gi(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let qi=0;function Ki(e,t,n,r){const o=e._endId=++qi,i=()=>{o===e._endId&&r()};if(null!=n)return setTimeout(i,n);const{type:a,timeout:u,propCount:s}=Yi(e,t);if(!a)return r();const l=a+"end";let c=0;const f=()=>{e.removeEventListener(l,d),i()},d=t=>{t.target===e&&++c>=s&&f()};setTimeout((()=>{c<s&&f()}),u+1),e.addEventListener(l,d)}function Yi(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r(`${ji}Delay`),i=r(`${ji}Duration`),a=Xi(o,i),u=r(`${Ni}Delay`),s=r(`${Ni}Duration`),l=Xi(u,s);let c=null,f=0,d=0;t===ji?a>0&&(c=ji,f=a,d=i.length):t===Ni?l>0&&(c=Ni,f=l,d=s.length):(f=Math.max(a,l),c=f>0?a>l?ji:Ni:null,d=c?c===ji?i.length:s.length:0);return{type:c,timeout:f,propCount:d,hasTransform:c===ji&&/\b(transform|all)(,|$)/.test(r(`${ji}Property`).toString())}}function Xi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>Zi(t)+Zi(e[n]))))}function Zi(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Ji(){return document.body.offsetHeight}const Qi=Symbol("_vod"),ea=Symbol("_vsh"),ta={beforeMount(e,{value:t},{transition:n}){e[Qi]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):na(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),na(e,!0),r.enter(e)):r.leave(e,(()=>{na(e,!1)})):na(e,t))},beforeUnmount(e,{value:t}){na(e,t)}};function na(e,t){e.style.display=t?e[Qi]:"none",e[ea]=!t}const ra=Symbol(""),oa=/(^|;)\s*display\s*:/;const ia=/\s*!important$/;function aa(e,t,n){if(f(n))n.forEach((n=>aa(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=sa[t];if(n)return n;let r=O(t);if("filter"!==r&&r in e)return sa[t]=r;r=B(r);for(let o=0;o<ua.length;o++){const n=ua[o]+r;if(n in e)return sa[t]=n}return t}(e,t);ia.test(n)?e.setProperty(k(r),n.replace(ia,""),"important"):e[r]=n}}const ua=["Webkit","Moz","ms"],sa={};const la="http://www.w3.org/1999/xlink";function ca(e,t,n,r,o,i=W(t)){r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(la,t.slice(6,t.length)):e.setAttributeNS(la,t,n):null==n||i&&!G(n)?e.removeAttribute(t):e.setAttribute(t,i?"":y(n)?String(n):n)}function fa(e,t,n,r,o){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Bi(n):n));const i=e.tagName;if("value"===t&&"PROGRESS"!==i&&!i.includes("-")){const r="OPTION"===i?e.getAttribute("value")||"":e.value,o=null==n?"checkbox"===e.type?"on":"":String(n);return r===o&&"_value"in e||(e.value=o),null==n&&e.removeAttribute(t),void(e._value=n)}let a=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=G(n):null==n&&"string"===r?(n="",a=!0):"number"===r&&(n=0,a=!0)}try{e[t]=n}catch($u){}a&&e.removeAttribute(o||t)}function da(e,t,n,r){e.addEventListener(t,n,r)}const pa=Symbol("_vei");function ha(e,t,n,r,o=null){const i=e[pa]||(e[pa]={}),a=i[t];if(r&&a)a.value=r;else{const[n,u]=function(e){let t;if(ga.test(e)){let n;for(t={};n=e.match(ga);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):k(e.slice(2));return[n,t]}(t);if(r){const a=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Ut(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ma(),n}(r,o);da(e,n,a,u)}else a&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,a,u),i[t]=void 0)}}const ga=/(?:Once|Passive|Capture)$/;let va=0;const ya=Promise.resolve(),ma=()=>va||(ya.then((()=>va=0)),va=Date.now());const ba=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const wa=new WeakMap,Ea=new WeakMap,xa=Symbol("_moveCb"),Ca=Symbol("_enterCb"),Sa=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:u({},Ri,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=fi(),r=On();let o,i;return rr((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),o=e[Ii];o&&o.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=Yi(r);return i.removeChild(r),a}(o[0].el,n.vnode.el,t))return void(o=[]);o.forEach(Aa),o.forEach(Oa);const r=o.filter(_a);Ji(),r.forEach((e=>{const n=e.el,r=n.style;Ui(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n[xa]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n[xa]=null,Wi(n,t))};n.addEventListener("transitionend",o)})),o=[]})),()=>{const a=bt(e),u=Hi(a);let s=a.tag||jo;if(o=[],i)for(let e=0;e<i.length;e++){const t=i[e];t.el&&t.el instanceof Element&&(o.push(t),Ln(t,jn(t,u,r,n)),wa.set(t,t.el.getBoundingClientRect()))}i=t.default?Rn(t.default()):[];for(let e=0;e<i.length;e++){const t=i[e];null!=t.key&&Ln(t,jn(t,u,r,n))}return Zo(s,null,i)}}}),Da=Sa;function Aa(e){const t=e.el;t[xa]&&t[xa](),t[Ca]&&t[Ca]()}function Oa(e){Ea.set(e,e.el.getBoundingClientRect())}function _a(e){const t=wa.get(e),n=Ea.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${o}px)`,t.transitionDuration="0s",e}}const ka=e=>{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>P(t,e):t};function Ba(e){e.target.composing=!0}function Fa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ta=Symbol("_assign"),Pa={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Ta]=ka(o);const i=r||o.props&&"number"===o.props.type;da(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),i&&(r=N(r)),e[Ta](r)})),n&&da(e,"change",(()=>{e.value=e.value.trim()})),t||(da(e,"compositionstart",Ba),da(e,"compositionend",Fa),da(e,"change",Fa))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:i}},a){if(e[Ta]=ka(a),e.composing)return;const u=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:N(e.value))!==u){if(document.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(o&&e.value.trim()===u)return}e.value=u}}},ja={deep:!0,created(e,t,n){e[Ta]=ka(n),da(e,"change",(()=>{const t=e._modelValue,n=La(e),r=e.checked,o=e[Ta];if(f(t)){const e=K(t,n),i=-1!==e;if(r&&!i)o(t.concat(n));else if(!r&&i){const n=[...t];n.splice(e,1),o(n)}}else if(p(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(Ra(e,r))}))},mounted:Na,beforeUpdate(e,t,n){e[Ta]=ka(n),Na(e,t,n)}};function Na(e,{value:t,oldValue:n},r){let o;if(e._modelValue=t,f(t))o=K(t,r.props.value)>-1;else if(p(t))o=t.has(r.props.value);else{if(t===n)return;o=q(t,Ra(e,!0))}e.checked!==o&&(e.checked=o)}const Ia={created(e,{value:t},n){e.checked=q(t,n.props.value),e[Ta]=ka(n),da(e,"change",(()=>{e[Ta](La(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e[Ta]=ka(r),t!==n&&(e.checked=q(t,r.props.value))}};function La(e){return"_value"in e?e._value:e.value}function Ra(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ma=["ctrl","shift","alt","meta"],za={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Ma.some((n=>e[`${n}Key`]&&!t.includes(n)))},$a=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=za[t[e]];if(r&&r(n,t))return}return e(n,...r)})},Ha={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Va=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=k(n.key);return t.some((e=>e===r||Ha[e]===r))?e(n):void 0})},Ua=u({patchProp:(e,t,n,r,o,u)=>{const s="svg"===o;"class"===t?function(e,t,n){const r=e[Ii];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,s):"style"===t?function(e,t,n){const r=e.style,o=v(n);let i=!1;if(n&&!o){if(t)if(v(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&aa(r,t,"")}else for(const e in t)null==n[e]&&aa(r,e,"");for(const e in n)"display"===e&&(i=!0),aa(r,e,n[e])}else if(o){if(t!==n){const e=r[ra];e&&(n+=";"+e),r.cssText=n,i=oa.test(n)}}else t&&e.removeAttribute("style");Qi in e&&(e[Qi]=i?r.display:"",e[ea]&&(r.display="none"))}(e,n,r):i(t)?a(t)||ha(e,t,0,r,u):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&ba(t)&&g(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(ba(t)&&v(n))return!1;return t in e}(e,t,r,s))?(fa(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||ca(e,t,r,s,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&v(r)?("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),ca(e,t,r,s)):fa(e,O(t),r,0,t)}},Pi);let Wa;function Ga(){return Wa||(Wa=co(Ua))}const qa=(...e)=>{Ga().render(...e)},Ka=(...e)=>{const t=Ga().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(v(e)){return document.querySelector(e)}return e}(e);if(!r)return;const o=t._component;g(o)||o.render||o.template||(o.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const i=n(r,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};var Ya="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Xa(e){var t={exports:{}};return e(t,t.exports),t.exports}var Za,Ja,Qa=function(e){return e&&e.Math==Math&&e},eu=Qa("object"==typeof globalThis&&globalThis)||Qa("object"==typeof window&&window)||Qa("object"==typeof self&&self)||Qa("object"==typeof Ya&&Ya)||function(){return this}()||Function("return this")(),tu=Function.prototype,nu=tu.apply,ru=tu.bind,ou=tu.call,iu="object"==typeof Reflect&&Reflect.apply||(ru?ou.bind(nu):function(){return ou.apply(nu,arguments)}),au=Function.prototype,uu=au.bind,su=au.call,lu=uu&&uu.bind(su),cu=uu?function(e){return e&&lu(su,e)}:function(e){return e&&function(){return su.apply(e,arguments)}},fu=function(e){return"function"==typeof e},du=function(e){try{return!!e()}catch(t){return!0}},pu=!du((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),hu=Function.prototype.call,gu=hu.bind?hu.bind(hu):function(){return hu.apply(hu,arguments)},vu={}.propertyIsEnumerable,yu=Object.getOwnPropertyDescriptor,mu=yu&&!vu.call({1:2},1)?function(e){var t=yu(this,e);return!!t&&t.enumerable}:vu,bu={f:mu},wu=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Eu=cu({}.toString),xu=cu("".slice),Cu=function(e){return xu(Eu(e),8,-1)},Su=eu.Object,Du=cu("".split),Au=du((function(){return!Su("z").propertyIsEnumerable(0)}))?function(e){return"String"==Cu(e)?Du(e,""):Su(e)}:Su,Ou=eu.TypeError,_u=function(e){if(null==e)throw Ou("Can't call method on "+e);return e},ku=function(e){return Au(_u(e))},Bu=function(e){return"object"==typeof e?null!==e:fu(e)},Fu={},Tu=function(e){return fu(e)?e:void 0},Pu=function(e,t){return arguments.length<2?Tu(Fu[e])||Tu(eu[e]):Fu[e]&&Fu[e][t]||eu[e]&&eu[e][t]},ju=cu({}.isPrototypeOf),Nu=Pu("navigator","userAgent")||"",Iu=eu.process,Lu=eu.Deno,Ru=Iu&&Iu.versions||Lu&&Lu.version,Mu=Ru&&Ru.v8;Mu&&(Ja=(Za=Mu.split("."))[0]>0&&Za[0]<4?1:+(Za[0]+Za[1])),!Ja&&Nu&&(!(Za=Nu.match(/Edge\/(\d+)/))||Za[1]>=74)&&(Za=Nu.match(/Chrome\/(\d+)/))&&(Ja=+Za[1]);var zu,$u,Hu=Ja,Vu=!!Object.getOwnPropertySymbols&&!du((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Hu&&Hu<41})),Uu=Vu&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Wu=eu.Object,Gu=Uu?function(e){return"symbol"==typeof e}:function(e){var t=Pu("Symbol");return fu(t)&&ju(t.prototype,Wu(e))},qu=eu.String,Ku=function(e){try{return qu(e)}catch(t){return"Object"}},Yu=eu.TypeError,Xu=function(e){if(fu(e))return e;throw Yu(Ku(e)+" is not a function")},Zu=function(e,t){var n=e[t];return null==n?void 0:Xu(n)},Ju=eu.TypeError,Qu=Object.defineProperty,es=eu["__core-js_shared__"]||function(e,t){try{Qu(eu,e,{value:t,configurable:!0,writable:!0})}catch(Oz){eu[e]=t}return t}("__core-js_shared__",{}),ts=Xa((function(e){(e.exports=function(e,t){return es[e]||(es[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ns=eu.Object,rs=function(e){return ns(_u(e))},os=cu({}.hasOwnProperty),is=Object.hasOwn||function(e,t){return os(rs(e),t)},as=0,us=Math.random(),ss=cu(1..toString),ls=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ss(++as+us,36)},cs=ts("wks"),fs=eu.Symbol,ds=fs&&fs.for,ps=Uu?fs:fs&&fs.withoutSetter||ls,hs=function(e){if(!is(cs,e)||!Vu&&"string"!=typeof cs[e]){var t="Symbol."+e;Vu&&is(fs,e)?cs[e]=fs[e]:cs[e]=Uu&&ds?ds(t):ps(t)}return cs[e]},gs=eu.TypeError,vs=hs("toPrimitive"),ys=function(e){var t=function(e,t){if(!Bu(e)||Gu(e))return e;var n,r=Zu(e,vs);if(r){if(n=gu(r,e,t),!Bu(n)||Gu(n))return n;throw gs("Can't convert object to primitive value")}return function(e){var t,n;if(fu(t=e.toString)&&!Bu(n=gu(t,e)))return n;if(fu(t=e.valueOf)&&!Bu(n=gu(t,e)))return n;throw Ju("Can't convert object to primitive value")}(e)}(e,"string");return Gu(t)?t:t+""},ms=eu.document,bs=Bu(ms)&&Bu(ms.createElement),ws=function(e){return bs?ms.createElement(e):{}},Es=!pu&&!du((function(){return 7!=Object.defineProperty(ws("div"),"a",{get:function(){return 7}}).a})),xs=Object.getOwnPropertyDescriptor,Cs=pu?xs:function(e,t){if(e=ku(e),t=ys(t),Es)try{return xs(e,t)}catch(n){}if(is(e,t))return wu(!gu(bu.f,e,t),e[t])},Ss={f:Cs},Ds=/#|\.prototype\./,As=function(e,t){var n=_s[Os(e)];return n==Bs||n!=ks&&(fu(t)?du(t):!!t)},Os=As.normalize=function(e){return String(e).replace(Ds,".").toLowerCase()},_s=As.data={},ks=As.NATIVE="N",Bs=As.POLYFILL="P",Fs=As,Ts=cu(cu.bind),Ps=function(e,t){return Xu(e),void 0===t?e:Ts?Ts(e,t):function(){return e.apply(t,arguments)}},js=eu.String,Ns=eu.TypeError,Is=function(e){if(Bu(e))return e;throw Ns(js(e)+" is not an object")},Ls=eu.TypeError,Rs=Object.defineProperty,Ms=pu?Rs:function(e,t,n){if(Is(e),t=ys(t),Is(n),Es)try{return Rs(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Ls("Accessors not supported");return"value"in n&&(e[t]=n.value),e},zs={f:Ms},$s=pu?function(e,t,n){return zs.f(e,t,wu(1,n))}:function(e,t,n){return e[t]=n,e},Hs=Ss.f,Vs=function(e){var t=function(n,r,o){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,o)}return iu(e,this,arguments)};return t.prototype=e.prototype,t},Us=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?eu:d?eu[c]:(eu[c]||{}).prototype,g=f?Fu:Fu[c]||$s(Fu,c,{})[c],v=g.prototype;for(o in t)n=!Fs(f?o:c+(d?".":"#")+o,e.forced)&&h&&is(h,o),a=g[o],n&&(u=e.noTargetGet?(l=Hs(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?Ps(i,eu):e.wrap&&n?Vs(i):p&&fu(i)?cu(i):i,(e.sham||i&&i.sham||a&&a.sham)&&$s(s,"sham",!0),$s(g,o,s),p&&(is(Fu,r=c+"Prototype")||$s(Fu,r,{}),$s(Fu[r],o,i),e.real&&v&&!v[o]&&$s(v,o,i)))},Ws=ts("keys"),Gs=function(e){return Ws[e]||(Ws[e]=ls(e))},qs=!du((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ks=Gs("IE_PROTO"),Ys=eu.Object,Xs=Ys.prototype,Zs=qs?Ys.getPrototypeOf:function(e){var t=rs(e);if(is(t,Ks))return t[Ks];var n=t.constructor;return fu(n)&&t instanceof n?n.prototype:t instanceof Ys?Xs:null},Js=eu.String,Qs=eu.TypeError,el=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=cu(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Is(n),function(e){if("object"==typeof e||fu(e))return e;throw Qs("Can't set "+Js(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),tl=Math.ceil,nl=Math.floor,rl=function(e){var t=+e;return t!=t||0===t?0:(t>0?nl:tl)(t)},ol=Math.max,il=Math.min,al=function(e,t){var n=rl(e);return n<0?ol(n+t,0):il(n,t)},ul=Math.min,sl=function(e){return(t=e.length)>0?ul(rl(t),9007199254740991):0;var t},ll={indexOf:($u=!1,function(e,t,n){var r,o=ku(e),i=sl(o),a=al(n,i);if($u&&t!=t){for(;i>a;)if((r=o[a++])!=r)return!0}else for(;i>a;a++)if(($u||a in o)&&o[a]===t)return $u||a||0;return!$u&&-1})},cl={},fl=ll.indexOf,dl=cu([].push),pl=function(e,t){var n,r=ku(e),o=0,i=[];for(n in r)!is(cl,n)&&is(r,n)&&dl(i,n);for(;t.length>o;)is(r,n=t[o++])&&(~fl(i,n)||dl(i,n));return i},hl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gl=hl.concat("length","prototype"),vl=Object.getOwnPropertyNames||function(e){return pl(e,gl)},yl={f:vl},ml={f:Object.getOwnPropertySymbols},bl=cu([].concat),wl=Pu("Reflect","ownKeys")||function(e){var t=yl.f(Is(e)),n=ml.f;return n?bl(t,n(e)):t},El=Object.keys||function(e){return pl(e,hl)},xl=pu?Object.defineProperties:function(e,t){Is(e);for(var n,r=ku(t),o=El(t),i=o.length,a=0;i>a;)zs.f(e,n=o[a++],r[n]);return e},Cl=Pu("document","documentElement"),Sl=Gs("IE_PROTO"),Dl=function(){},Al=function(e){return"<script>"+e+"<\/script>"},Ol=function(e){e.write(Al("")),e.close();var t=e.parentWindow.Object;return e=null,t},_l=function(){try{zu=new ActiveXObject("htmlfile")}catch(r){}var e,t;_l="undefined"!=typeof document?document.domain&&zu?Ol(zu):((t=ws("iframe")).style.display="none",Cl.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Al("document.F=Object")),e.close(),e.F):Ol(zu);for(var n=hl.length;n--;)delete _l.prototype[hl[n]];return _l()};cl[Sl]=!0;var kl=Object.create||function(e,t){var n;return null!==e?(Dl.prototype=Is(e),n=new Dl,Dl.prototype=null,n[Sl]=e):n=_l(),void 0===t?n:xl(n,t)},Bl=function(e,t,n){var r=ys(t);r in e?zs.f(e,r,wu(0,n)):e[r]=n},Fl=eu.Array,Tl=Math.max,Pl=function(e,t,n){for(var r=sl(e),o=al(t,r),i=al(r,r),a=Fl(Tl(i-o,0)),u=0;o<i;o++,u++)Bl(a,u,e[o]);return a.length=u,a},jl=cu("".replace),Nl=cu("".split),Il=cu([].join),Ll=String(Error("zxcasd").stack),Rl=/\n\s*at [^:]*:[^\n]*/,Ml=Rl.test(Ll),zl=/@[^\n]*\n/.test(Ll)&&!/zxcasd/.test(Ll),$l={},Hl=hs("iterator"),Vl=Array.prototype,Ul={};Ul[hs("toStringTag")]="z";var Wl="[object z]"===String(Ul),Gl=hs("toStringTag"),ql=eu.Object,Kl="Arguments"==Cu(function(){return arguments}()),Yl=Wl?Cu:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=ql(e),Gl))?n:Kl?Cu(t):"Object"==(r=Cu(t))&&fu(t.callee)?"Arguments":r},Xl=hs("iterator"),Zl=function(e){if(null!=e)return Zu(e,Xl)||Zu(e,"@@iterator")||$l[Yl(e)]},Jl=eu.TypeError,Ql=function(e,t,n){var r,o;Is(e);try{if(!(r=Zu(e,"return"))){if("throw"===t)throw n;return n}r=gu(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Is(r),n},ec=eu.TypeError,tc=function(e,t){this.stopped=e,this.result=t},nc=tc.prototype,rc=eu.String,oc=function(e){if("Symbol"===Yl(e))throw TypeError("Cannot convert a Symbol value to a string");return rc(e)},ic=!du((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",wu(1,7)),7!==e.stack)})),ac=hs("toStringTag"),uc=eu.Error,sc=[].push,lc=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=ju(cc,this);el?n=el(new uc(void 0),o?Zs(this):cc):(n=o?this:kl(cc),$s(n,ac,"Error")),$s(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:oc(e)}(t,"")),ic&&$s(n,"stack",function(e,t){if("string"!=typeof e)return e;if(Ml)for(;t--;)e=jl(e,Rl,"");else if(zl)return Il(Pl(Nl(e,"\n"),t),"\n");return e}(n.stack,1)),function(e,t){Bu(t)&&"cause"in t&&$s(e,"cause",t.cause)}(n,r);var i=[];return function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Ps(t,f),v=function(e){return r&&Ql(r,"normal",e),new tc(!0,e)},y=function(e){return d?(Is(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Zl(e)))throw ec(Ku(e)+" is not iterable");if(void 0!==(c=o)&&($l.Array===c||Vl[Hl]===c)){for(i=0,a=sl(e);a>i;i++)if((u=y(e[i]))&&ju(nc,u))return u;return new tc(!1)}r=function(e,t){var n=arguments.length<2?Zl(e):t;if(Xu(n))return Is(gu(n,e));throw Jl(Ku(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=gu(s,r)).done;){try{u=y(l.value)}catch(c){Ql(r,"throw",c)}if("object"==typeof u&&u&&ju(nc,u))return u}new tc(!1)}(e,sc,{that:i}),$s(n,"errors",i),n};el?el(lc,uc):function(e,t){for(var n=wl(t),r=zs.f,o=Ss.f,i=0;i<n.length;i++){var a=n[i];is(e,a)||r(e,a,o(t,a))}}(lc,uc);var cc=lc.prototype=kl(uc.prototype,{constructor:wu(1,lc),message:wu(1,""),name:wu(1,"AggregateError")});Us({global:!0},{AggregateError:lc});var fc=cu(Function.toString);fu(es.inspectSource)||(es.inspectSource=function(e){return fc(e)});var dc,pc,hc,gc=es.inspectSource,vc=eu.WeakMap,yc=fu(vc)&&/native code/.test(gc(vc)),mc=eu.TypeError,bc=eu.WeakMap;if(yc||es.state){var wc=es.state||(es.state=new bc),Ec=cu(wc.get),xc=cu(wc.has),Cc=cu(wc.set);dc=function(e,t){if(xc(wc,e))throw new mc("Object already initialized");return t.facade=e,Cc(wc,e,t),t},pc=function(e){return Ec(wc,e)||{}},hc=function(e){return xc(wc,e)}}else{var Sc=Gs("state");cl[Sc]=!0,dc=function(e,t){if(is(e,Sc))throw new mc("Object already initialized");return t.facade=e,$s(e,Sc,t),t},pc=function(e){return is(e,Sc)?e[Sc]:{}},hc=function(e){return is(e,Sc)}}var Dc,Ac,Oc,_c={set:dc,get:pc,has:hc,enforce:function(e){return hc(e)?pc(e):dc(e,{})},getterFor:function(e){return function(t){var n;if(!Bu(t)||(n=pc(t)).type!==e)throw mc("Incompatible receiver, "+e+" required");return n}}},kc=Function.prototype,Bc=pu&&Object.getOwnPropertyDescriptor,Fc=is(kc,"name"),Tc={PROPER:Fc&&"something"===function(){}.name,CONFIGURABLE:Fc&&(!pu||pu&&Bc(kc,"name").configurable)},Pc=function(e,t,n,r){$s(e,t,n)},jc=hs("iterator"),Nc=!1;[].keys&&("next"in(Oc=[].keys())?(Ac=Zs(Zs(Oc)))!==Object.prototype&&(Dc=Ac):Nc=!0);var Ic=null==Dc||du((function(){var e={};return Dc[jc].call(e)!==e}));Dc=Ic?{}:kl(Dc),fu(Dc[jc])||Pc(Dc,jc,(function(){return this}));var Lc={IteratorPrototype:Dc,BUGGY_SAFARI_ITERATORS:Nc},Rc=Wl?{}.toString:function(){return"[object "+Yl(this)+"]"},Mc=zs.f,zc=hs("toStringTag"),$c=function(e,t,n,r){if(e){var o=n?e:e.prototype;is(o,zc)||Mc(o,zc,{configurable:!0,value:t}),r&&!Wl&&$s(o,"toString",Rc)}},Hc=Lc.IteratorPrototype,Vc=function(){return this},Uc=Tc.PROPER,Wc=Lc.BUGGY_SAFARI_ITERATORS,Gc=hs("iterator"),qc=function(){return this},Kc=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=kl(Hc,{next:wu(1,s)}),$c(u,l,!1,!0),$l[l]=Vc;var c,f,d=function(e){if(e===o&&y)return y;if(!Wc&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[Gc]||g["@@iterator"]||o&&g[o],y=!Wc&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=Zs(m.call(new e)))!==Object.prototype&&c.next&&($c(c,p,!0,!0),$l[p]=qc),Uc&&"values"==o&&v&&"values"!==v.name&&(h=!0,y=function(){return gu(v,this)}),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||Us({target:t,proto:!0,forced:Wc||h},f)),$l[t]=y,f},Yc=_c.set,Xc=_c.getterFor("Array Iterator");Kc(Array,"Array",(function(e,t){Yc(this,{type:"Array Iterator",target:ku(e),index:0,kind:t})}),(function(){var e=Xc(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),$l.Arguments=$l.Array;var Zc=cu("".charAt),Jc=cu("".charCodeAt),Qc=cu("".slice),ef=function(e){return function(t,n){var r,o,i=oc(_u(t)),a=rl(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Jc(i,a))<55296||r>56319||a+1===u||(o=Jc(i,a+1))<56320||o>57343?e?Zc(i,a):r:e?Qc(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),tf=_c.set,nf=_c.getterFor("String Iterator");Kc(String,"String",(function(e){tf(this,{type:"String Iterator",string:oc(e),index:0})}),(function(){var e,t=nf(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ef(n,r),t.index+=e.length,{value:e,done:!1})}));var rf=Fu.AggregateError,of=hs("toStringTag");for(var af 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 uf=eu[af],sf=uf&&uf.prototype;sf&&Yl(sf)!==of&&$s(sf,of,af),$l[af]=$l.Array}var lf,cf,ff=rf,df=function(e){return e&&e.Math==Math&&e},pf=df("object"==typeof globalThis&&globalThis)||df("object"==typeof window&&window)||df("object"==typeof self&&self)||df("object"==typeof Ya&&Ya)||function(){return this}()||Function("return this")(),hf=function(e){try{return!!e()}catch(t){return!0}},gf=!hf((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),vf=Function.prototype.call,yf=vf.bind?vf.bind(vf):function(){return vf.apply(vf,arguments)},mf={}.propertyIsEnumerable,bf=Object.getOwnPropertyDescriptor,wf=bf&&!mf.call({1:2},1)?function(e){var t=bf(this,e);return!!t&&t.enumerable}:mf,Ef={f:wf},xf=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Cf=Function.prototype,Sf=Cf.bind,Df=Cf.call,Af=Sf&&Sf.bind(Df),Of=Sf?function(e){return e&&Af(Df,e)}:function(e){return e&&function(){return Df.apply(e,arguments)}},_f=Of({}.toString),kf=Of("".slice),Bf=function(e){return kf(_f(e),8,-1)},Ff=pf.Object,Tf=Of("".split),Pf=hf((function(){return!Ff("z").propertyIsEnumerable(0)}))?function(e){return"String"==Bf(e)?Tf(e,""):Ff(e)}:Ff,jf=pf.TypeError,Nf=function(e){if(null==e)throw jf("Can't call method on "+e);return e},If=function(e){return Pf(Nf(e))},Lf=function(e){return"function"==typeof e},Rf=function(e){return"object"==typeof e?null!==e:Lf(e)},Mf=function(e,t){return arguments.length<2?function(e){return Lf(e)?e:void 0}(pf[e]):pf[e]&&pf[e][t]},zf=Of({}.isPrototypeOf),$f=Mf("navigator","userAgent")||"",Hf=pf.process,Vf=pf.Deno,Uf=Hf&&Hf.versions||Vf&&Vf.version,Wf=Uf&&Uf.v8;Wf&&(cf=(lf=Wf.split("."))[0]>0&&lf[0]<4?1:+(lf[0]+lf[1])),!cf&&$f&&(!(lf=$f.match(/Edge\/(\d+)/))||lf[1]>=74)&&(lf=$f.match(/Chrome\/(\d+)/))&&(cf=+lf[1]);var Gf=cf,qf=!!Object.getOwnPropertySymbols&&!hf((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Gf&&Gf<41})),Kf=qf&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Yf=pf.Object,Xf=Kf?function(e){return"symbol"==typeof e}:function(e){var t=Mf("Symbol");return Lf(t)&&zf(t.prototype,Yf(e))},Zf=pf.String,Jf=function(e){try{return Zf(e)}catch(t){return"Object"}},Qf=pf.TypeError,ed=function(e){if(Lf(e))return e;throw Qf(Jf(e)+" is not a function")},td=function(e,t){var n=e[t];return null==n?void 0:ed(n)},nd=pf.TypeError,rd=Object.defineProperty,od=function(e,t){try{rd(pf,e,{value:t,configurable:!0,writable:!0})}catch(Oz){pf[e]=t}return t},id=pf["__core-js_shared__"]||od("__core-js_shared__",{}),ad=Xa((function(e){(e.exports=function(e,t){return id[e]||(id[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ud=pf.Object,sd=function(e){return ud(Nf(e))},ld=Of({}.hasOwnProperty),cd=Object.hasOwn||function(e,t){return ld(sd(e),t)},fd=0,dd=Math.random(),pd=Of(1..toString),hd=function(e){return"Symbol("+(void 0===e?"":e)+")_"+pd(++fd+dd,36)},gd=ad("wks"),vd=pf.Symbol,yd=vd&&vd.for,md=Kf?vd:vd&&vd.withoutSetter||hd,bd=function(e){if(!cd(gd,e)||!qf&&"string"!=typeof gd[e]){var t="Symbol."+e;qf&&cd(vd,e)?gd[e]=vd[e]:gd[e]=Kf&&yd?yd(t):md(t)}return gd[e]},wd=pf.TypeError,Ed=bd("toPrimitive"),xd=function(e){var t=function(e,t){if(!Rf(e)||Xf(e))return e;var n,r=td(e,Ed);if(r){if(n=yf(r,e,t),!Rf(n)||Xf(n))return n;throw wd("Can't convert object to primitive value")}return function(e){var t,n;if(Lf(t=e.toString)&&!Rf(n=yf(t,e)))return n;if(Lf(t=e.valueOf)&&!Rf(n=yf(t,e)))return n;throw nd("Can't convert object to primitive value")}(e)}(e,"string");return Xf(t)?t:t+""},Cd=pf.document,Sd=Rf(Cd)&&Rf(Cd.createElement),Dd=function(e){return Sd?Cd.createElement(e):{}},Ad=!gf&&!hf((function(){return 7!=Object.defineProperty(Dd("div"),"a",{get:function(){return 7}}).a})),Od=Object.getOwnPropertyDescriptor,_d=gf?Od:function(e,t){if(e=If(e),t=xd(t),Ad)try{return Od(e,t)}catch(n){}if(cd(e,t))return xf(!yf(Ef.f,e,t),e[t])},kd={f:_d},Bd=pf.String,Fd=pf.TypeError,Td=function(e){if(Rf(e))return e;throw Fd(Bd(e)+" is not an object")},Pd=pf.TypeError,jd=Object.defineProperty,Nd=gf?jd:function(e,t,n){if(Td(e),t=xd(t),Td(n),Ad)try{return jd(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Pd("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Id={f:Nd},Ld=gf?function(e,t,n){return Id.f(e,t,xf(1,n))}:function(e,t,n){return e[t]=n,e},Rd=Of(Function.toString);Lf(id.inspectSource)||(id.inspectSource=function(e){return Rd(e)});var Md,zd,$d,Hd=id.inspectSource,Vd=pf.WeakMap,Ud=Lf(Vd)&&/native code/.test(Hd(Vd)),Wd=ad("keys"),Gd=function(e){return Wd[e]||(Wd[e]=hd(e))},qd={},Kd=pf.TypeError,Yd=pf.WeakMap;if(Ud||id.state){var Xd=id.state||(id.state=new Yd),Zd=Of(Xd.get),Jd=Of(Xd.has),Qd=Of(Xd.set);Md=function(e,t){if(Jd(Xd,e))throw new Kd("Object already initialized");return t.facade=e,Qd(Xd,e,t),t},zd=function(e){return Zd(Xd,e)||{}},$d=function(e){return Jd(Xd,e)}}else{var ep=Gd("state");qd[ep]=!0,Md=function(e,t){if(cd(e,ep))throw new Kd("Object already initialized");return t.facade=e,Ld(e,ep,t),t},zd=function(e){return cd(e,ep)?e[ep]:{}},$d=function(e){return cd(e,ep)}}var tp={set:Md,get:zd,has:$d,enforce:function(e){return $d(e)?zd(e):Md(e,{})},getterFor:function(e){return function(t){var n;if(!Rf(t)||(n=zd(t)).type!==e)throw Kd("Incompatible receiver, "+e+" required");return n}}},np=Function.prototype,rp=gf&&Object.getOwnPropertyDescriptor,op=cd(np,"name"),ip={PROPER:op&&"something"===function(){}.name,CONFIGURABLE:op&&(!gf||gf&&rp(np,"name").configurable)},ap=Xa((function(e){var t=ip.CONFIGURABLE,n=tp.get,r=tp.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Lf(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!cd(i,"name")||t&&i.name!==f)&&Ld(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==pf?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Ld(e,n,i)):l?e[n]=i:od(n,i)})(Function.prototype,"toString",(function(){return Lf(this)&&n(this).source||Hd(this)}))})),up=Math.ceil,sp=Math.floor,lp=function(e){var t=+e;return t!=t||0===t?0:(t>0?sp:up)(t)},cp=Math.max,fp=Math.min,dp=function(e,t){var n=lp(e);return n<0?cp(n+t,0):fp(n,t)},pp=Math.min,hp=function(e){return e>0?pp(lp(e),9007199254740991):0},gp=function(e){return hp(e.length)},vp=function(e){return function(t,n,r){var o,i=If(t),a=gp(i),u=dp(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),yp=Of([].push),mp=function(e,t){var n,r=If(e),o=0,i=[];for(n in r)!cd(qd,n)&&cd(r,n)&&yp(i,n);for(;t.length>o;)cd(r,n=t[o++])&&(~vp(i,n)||yp(i,n));return i},bp=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wp=bp.concat("length","prototype"),Ep=Object.getOwnPropertyNames||function(e){return mp(e,wp)},xp={f:Ep},Cp={f:Object.getOwnPropertySymbols},Sp=Of([].concat),Dp=Mf("Reflect","ownKeys")||function(e){var t=xp.f(Td(e)),n=Cp.f;return n?Sp(t,n(e)):t},Ap=function(e,t){for(var n=Dp(t),r=Id.f,o=kd.f,i=0;i<n.length;i++){var a=n[i];cd(e,a)||r(e,a,o(t,a))}},Op=/#|\.prototype\./,_p=function(e,t){var n=Bp[kp(e)];return n==Tp||n!=Fp&&(Lf(t)?hf(t):!!t)},kp=_p.normalize=function(e){return String(e).replace(Op,".").toLowerCase()},Bp=_p.data={},Fp=_p.NATIVE="N",Tp=_p.POLYFILL="P",Pp=_p,jp=kd.f,Np=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?pf:l?pf[u]||od(u,{}):(pf[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=jp(n,r))&&a.value:n[r],!Pp(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ap(i,o)}(e.sham||o&&o.sham)&&Ld(i,"sham",!0),ap(n,r,i,e)}},Ip={};Ip[bd("toStringTag")]="z";var Lp,Rp="[object z]"===String(Ip),Mp=bd("toStringTag"),zp=pf.Object,$p="Arguments"==Bf(function(){return arguments}()),Hp=Rp?Bf:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=zp(e),Mp))?n:$p?Bf(t):"Object"==(r=Bf(t))&&Lf(t.callee)?"Arguments":r},Vp=pf.String,Up=function(e){if("Symbol"===Hp(e))throw TypeError("Cannot convert a Symbol value to a string");return Vp(e)},Wp=function(){var e=Td(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},Gp=pf.RegExp,qp=hf((function(){var e=Gp("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));qp||hf((function(){return!Gp("a","y").sticky}));var Kp=qp||hf((function(){var e=Gp("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Yp={BROKEN_CARET:Kp},Xp=Object.keys||function(e){return mp(e,bp)},Zp=gf?Object.defineProperties:function(e,t){Td(e);for(var n,r=If(t),o=Xp(t),i=o.length,a=0;i>a;)Id.f(e,n=o[a++],r[n]);return e},Jp=Mf("document","documentElement"),Qp=Gd("IE_PROTO"),eh=function(){},th=function(e){return"<script>"+e+"<\/script>"},nh=function(e){e.write(th("")),e.close();var t=e.parentWindow.Object;return e=null,t},rh=function(){try{Lp=new ActiveXObject("htmlfile")}catch(r){}var e,t;rh="undefined"!=typeof document?document.domain&&Lp?nh(Lp):((t=Dd("iframe")).style.display="none",Jp.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(th("document.F=Object")),e.close(),e.F):nh(Lp);for(var n=bp.length;n--;)delete rh.prototype[bp[n]];return rh()};qd[Qp]=!0;var oh,ih,ah=Object.create||function(e,t){var n;return null!==e?(eh.prototype=Td(e),n=new eh,eh.prototype=null,n[Qp]=e):n=rh(),void 0===t?n:Zp(n,t)},uh=pf.RegExp,sh=hf((function(){var e=uh(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),lh=pf.RegExp,ch=hf((function(){var e=lh("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),fh=tp.get,dh=ad("native-string-replace",String.prototype.replace),ph=RegExp.prototype.exec,hh=ph,gh=Of("".charAt),vh=Of("".indexOf),yh=Of("".replace),mh=Of("".slice),bh=(ih=/b*/g,yf(ph,oh=/a/,"a"),yf(ph,ih,"a"),0!==oh.lastIndex||0!==ih.lastIndex),wh=Yp.BROKEN_CARET,Eh=void 0!==/()??/.exec("")[1];(bh||Eh||wh||sh||ch)&&(hh=function(e){var t,n,r,o,i,a,u,s=this,l=fh(s),c=Up(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=yf(hh,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=wh&&s.sticky,h=yf(Wp,s),g=s.source,v=0,y=c;if(p&&(h=yh(h,"y",""),-1===vh(h,"g")&&(h+="g"),y=mh(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==gh(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Eh&&(n=new RegExp("^"+g+"$(?!\\s)",h)),bh&&(r=s.lastIndex),o=yf(ph,p?n:s,y),p?o?(o.input=mh(o.input,v),o[0]=mh(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:bh&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Eh&&o&&o.length>1&&yf(dh,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=ah(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var xh=hh;Np({target:"RegExp",proto:!0,forced:/./.exec!==xh},{exec:xh});bd("species");var Ch=RegExp.prototype,Sh=Of("".charAt),Dh=Of("".charCodeAt),Ah=Of("".slice),Oh={charAt:function(e){return function(t,n){var r,o,i=Up(Nf(t)),a=lp(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Dh(i,a))<55296||r>56319||a+1===u||(o=Dh(i,a+1))<56320||o>57343?e?Sh(i,a):r:e?Ah(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},_h=Oh.charAt,kh=function(e,t,n){return t+(n?_h(e,t).length:1)},Bh=pf.TypeError,Fh=function(e,t){var n=e.exec;if(Lf(n)){var r=yf(n,e,t);return null!==r&&Td(r),r}if("RegExp"===Bf(e))return yf(xh,e,t);throw Bh("RegExp#exec called on incompatible receiver")};!function(e){var t=bd(e),n=!hf((function(){var n={};return n[t]=function(){return 7},7!=""[e](n)})),r=n&&!hf((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},n[t](""),!e}));if(!n||!r){var o=Of(/./[t]),i=function(e,t,n){return[function(t){var n=Nf(this),r=null==t?void 0:td(t,e);return r?yf(r,t,n):new RegExp(t)[e](Up(n))},function(e){var r=Td(this),o=Up(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Fh(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=Fh(r,o));){var c=Up(u[0]);s[l]=c,""===c&&(r.lastIndex=kh(o,hp(r.lastIndex),a)),l++}return 0===l?null:s}]}(t,""[e],(function(e,t,r,i,a){var u=Of(e),s=t.exec;return s===xh||s===Ch.exec?n&&!a?{done:!0,value:o(t,r,i)}:{done:!0,value:u(r,t,i)}:{done:!1}}));ap(String.prototype,e,i[0]),ap(Ch,t,i[1])}}("match"),Np({global:!0},{globalThis:pf});var Th=!hf((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ph=Gd("IE_PROTO"),jh=pf.Object,Nh=jh.prototype,Ih=Th?jh.getPrototypeOf:function(e){var t=sd(e);if(cd(t,Ph))return t[Ph];var n=t.constructor;return Lf(n)&&t instanceof n?n.prototype:t instanceof jh?Nh:null},Lh=pf.String,Rh=pf.TypeError,Mh=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Of(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Td(n),function(e){if("object"==typeof e||Lf(e))return e;throw Rh("Can't set "+Lh(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),zh=pf.Array,$h=Math.max,Hh=Of("".replace),Vh=Of("".split),Uh=Of([].join),Wh=String(Error("zxcasd").stack),Gh=/\n\s*at [^:]*:[^\n]*/,qh=Gh.test(Wh),Kh=/@[^\n]*\n/.test(Wh)&&!/zxcasd/.test(Wh),Yh=Of(Of.bind),Xh=function(e,t){return ed(e),void 0===t?e:Yh?Yh(e,t):function(){return e.apply(t,arguments)}},Zh={},Jh=bd("iterator"),Qh=Array.prototype,eg=bd("iterator"),tg=function(e){if(null!=e)return td(e,eg)||td(e,"@@iterator")||Zh[Hp(e)]},ng=pf.TypeError,rg=function(e,t,n){var r,o;Td(e);try{if(!(r=td(e,"return"))){if("throw"===t)throw n;return n}r=yf(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Td(r),n},og=pf.TypeError,ig=function(e,t){this.stopped=e,this.result=t},ag=ig.prototype,ug=!hf((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",xf(1,7)),7!==e.stack)})),sg=bd("toStringTag"),lg=pf.Error,cg=[].push,fg=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=zf(dg,this);Mh?n=Mh(new lg(void 0),o?Ih(this):dg):(n=o?this:ah(dg),Ld(n,sg,"Error")),Ld(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Up(e)}(t,"")),ug&&Ld(n,"stack",function(e,t){if("string"!=typeof e)return e;if(qh)for(;t--;)e=Hh(e,Gh,"");else if(Kh)return Uh(function(e,t){for(var n,r,o,i,a=gp(e),u=dp(t,a),s=dp(a,a),l=zh($h(s-u,0)),c=0;u<s;u++,c++)n=l,r=c,o=e[u],(i=xd(r))in n?Id.f(n,i,xf(0,o)):n[i]=o;return l.length=c,l}(Vh(e,"\n"),t),"\n");return e}(n.stack,1)),function(e,t){Rf(t)&&"cause"in t&&Ld(e,"cause",t.cause)}(n,r);var i=[];return function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Xh(t,f),v=function(e){return r&&rg(r,"normal",e),new ig(!0,e)},y=function(e){return d?(Td(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=tg(e)))throw og(Jf(e)+" is not iterable");if(void 0!==(c=o)&&(Zh.Array===c||Qh[Jh]===c)){for(i=0,a=gp(e);a>i;i++)if((u=y(e[i]))&&zf(ag,u))return u;return new ig(!1)}r=function(e,t){var n=arguments.length<2?tg(e):t;if(ed(n))return Td(yf(n,e));throw ng(Jf(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=yf(s,r)).done;){try{u=y(l.value)}catch(c){rg(r,"throw",c)}if("object"==typeof u&&u&&zf(ag,u))return u}new ig(!1)}(e,cg,{that:i}),Ld(n,"errors",i),n};Mh?Mh(fg,lg):Ap(fg,lg);var dg=fg.prototype=ah(lg.prototype,{constructor:xf(1,fg),message:xf(1,""),name:xf(1,"AggregateError")});Np({global:!0},{AggregateError:fg});var pg=bd("unscopables"),hg=Array.prototype;null==hg[pg]&&Id.f(hg,pg,{configurable:!0,value:ah(null)});var gg,vg,yg,mg=function(e){hg[pg][e]=!0},bg=bd("iterator"),wg=!1;[].keys&&("next"in(yg=[].keys())?(vg=Ih(Ih(yg)))!==Object.prototype&&(gg=vg):wg=!0);var Eg=null==gg||hf((function(){var e={};return gg[bg].call(e)!==e}));Eg&&(gg={}),Lf(gg[bg])||ap(gg,bg,(function(){return this}));var xg={IteratorPrototype:gg,BUGGY_SAFARI_ITERATORS:wg},Cg=Id.f,Sg=bd("toStringTag"),Dg=function(e,t,n){e&&!cd(e=n?e:e.prototype,Sg)&&Cg(e,Sg,{configurable:!0,value:t})},Ag=xg.IteratorPrototype,Og=function(){return this},_g=ip.PROPER,kg=ip.CONFIGURABLE,Bg=xg.IteratorPrototype,Fg=xg.BUGGY_SAFARI_ITERATORS,Tg=bd("iterator"),Pg=function(){return this},jg=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=ah(Ag,{next:xf(1,s)}),Dg(u,l,!1),Zh[l]=Og;var c,f,d=function(e){if(e===o&&y)return y;if(!Fg&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[Tg]||g["@@iterator"]||o&&g[o],y=!Fg&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=Ih(m.call(new e)))!==Object.prototype&&c.next&&(Ih(c)!==Bg&&(Mh?Mh(c,Bg):Lf(c[Tg])||ap(c,Tg,Pg)),Dg(c,p,!0)),_g&&"values"==o&&v&&"values"!==v.name&&(kg?Ld(g,"name","values"):(h=!0,y=function(){return yf(v,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||Np({target:t,proto:!0,forced:Fg||h},f)),g[Tg]!==y&&ap(g,Tg,y,{name:o}),Zh[t]=y,f},Ng=tp.set,Ig=tp.getterFor("Array Iterator"),Lg=jg(Array,"Array",(function(e,t){Ng(this,{type:"Array Iterator",target:If(e),index:0,kind:t})}),(function(){var e=Ig(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Zh.Arguments=Zh.Array,mg("keys"),mg("values"),mg("entries");var Rg=Oh.charAt,Mg=tp.set,zg=tp.getterFor("String Iterator");jg(String,"String",(function(e){Mg(this,{type:"String Iterator",string:Up(e),index:0})}),(function(){var e,t=zg(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Rg(n,r),t.index+=e.length,{value:e,done:!1})}));var $g,Hg={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},Vg=Dd("span").classList,Ug=Vg&&Vg.constructor&&Vg.constructor.prototype,Wg=Ug===Object.prototype?void 0:Ug,Gg=bd("iterator"),qg=bd("toStringTag"),Kg=Lg.values,Yg=function(e,t){if(e){if(e[Gg]!==Kg)try{Ld(e,Gg,Kg)}catch(r){e[Gg]=Kg}if(e[qg]||Ld(e,qg,t),Hg[t])for(var n in Lg)if(e[n]!==Lg[n])try{Ld(e,n,Lg[n])}catch(r){e[n]=Lg[n]}}};for(var Xg in Hg)Yg(pf[Xg]&&pf[Xg].prototype,Xg);function Zg(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Jg(){void 0===ff&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}Yg(Wg,"DOMTokenList"),"undefined"==typeof global?(window,Zg(),Jg()):global&&(null===($g=global.navigator)||void 0===$g?void 0:$g.userAgent.match("QQBrowser"))&&(Zg(),Jg());var Qg=Array.isArray||function(e){return"Array"==Cu(e)},ev=function(){},tv=[],nv=Pu("Reflect","construct"),rv=/^\s*(?:class|function)\b/,ov=cu(rv.exec),iv=!rv.exec(ev),av=function(e){if(!fu(e))return!1;try{return nv(ev,tv,e),!0}catch(t){return!1}},uv=!nv||du((function(){var e;return av(av.call)||!av(Object)||!av((function(){e=!0}))||e}))?function(e){if(!fu(e))return!1;switch(Yl(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return iv||!!ov(rv,gc(e))}:av,sv=hs("species"),lv=eu.Array,cv=function(e,t){return new(Qg(n=e)&&(r=n.constructor,(uv(r)&&(r===lv||Qg(r.prototype))||Bu(r)&&null===(r=r[sv]))&&(r=void 0)),void 0===r?lv:r)(0===t?0:t);var n,r},fv=hs("species"),dv=hs("isConcatSpreadable"),pv=eu.TypeError,hv=Hu>=51||!du((function(){var e=[];return e[dv]=!1,e.concat()[0]!==e})),gv=Hu>=51||!du((function(){var e=[];return(e.constructor={})[fv]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),vv=function(e){if(!Bu(e))return!1;var t=e[dv];return void 0!==t?!!t:Qg(e)};Us({target:"Array",proto:!0,forced:!hv||!gv},{concat:function(e){var t,n,r,o,i,a=rs(this),u=cv(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(vv(i=-1===t?a:arguments[t])){if(s+(o=sl(i))>9007199254740991)throw pv("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&Bl(u,s,i[n])}else{if(s>=9007199254740991)throw pv("Maximum allowed index exceeded");Bl(u,s++,i)}return u.length=s,u}});var yv=yl.f,mv="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],bv={f:function(e){return mv&&"Window"==Cu(e)?function(e){try{return yv(e)}catch(t){return Pl(mv)}}(e):yv(ku(e))}},wv=cu([].slice),Ev={f:hs},xv=zs.f,Cv=function(e){var t=Fu.Symbol||(Fu.Symbol={});is(t,e)||xv(t,e,{value:Ev.f(e)})},Sv=cu([].push),Dv=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=rs(s),g=Au(h),v=Ps(l,c),y=sl(g),m=0,b=f||cv,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Sv(w,d)}else switch(e){case 4:return!1;case 7:Sv(w,d)}return i?-1:r||o?o:w}}(0),Av=Gs("hidden"),Ov=hs("toPrimitive"),_v=_c.set,kv=_c.getterFor("Symbol"),Bv=Object.prototype,Fv=eu.Symbol,Tv=Fv&&Fv.prototype,Pv=eu.TypeError,jv=eu.QObject,Nv=Pu("JSON","stringify"),Iv=Ss.f,Lv=zs.f,Rv=bv.f,Mv=bu.f,zv=cu([].push),$v=ts("symbols"),Hv=ts("op-symbols"),Vv=ts("string-to-symbol-registry"),Uv=ts("symbol-to-string-registry"),Wv=ts("wks"),Gv=!jv||!jv.prototype||!jv.prototype.findChild,qv=pu&&du((function(){return 7!=kl(Lv({},"a",{get:function(){return Lv(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Iv(Bv,t);r&&delete Bv[t],Lv(e,t,n),r&&e!==Bv&&Lv(Bv,t,r)}:Lv,Kv=function(e,t){var n=$v[e]=kl(Tv);return _v(n,{type:"Symbol",tag:e,description:t}),pu||(n.description=t),n},Yv=function(e,t,n){e===Bv&&Yv(Hv,t,n),Is(e);var r=ys(t);return Is(n),is($v,r)?(n.enumerable?(is(e,Av)&&e[Av][r]&&(e[Av][r]=!1),n=kl(n,{enumerable:wu(0,!1)})):(is(e,Av)||Lv(e,Av,wu(1,{})),e[Av][r]=!0),qv(e,r,n)):Lv(e,r,n)},Xv=function(e,t){Is(e);var n=ku(t),r=El(n).concat(ey(n));return Dv(r,(function(t){pu&&!gu(Zv,n,t)||Yv(e,t,n[t])})),e},Zv=function(e){var t=ys(e),n=gu(Mv,this,t);return!(this===Bv&&is($v,t)&&!is(Hv,t))&&(!(n||!is(this,t)||!is($v,t)||is(this,Av)&&this[Av][t])||n)},Jv=function(e,t){var n=ku(e),r=ys(t);if(n!==Bv||!is($v,r)||is(Hv,r)){var o=Iv(n,r);return!o||!is($v,r)||is(n,Av)&&n[Av][r]||(o.enumerable=!0),o}},Qv=function(e){var t=Rv(ku(e)),n=[];return Dv(t,(function(e){is($v,e)||is(cl,e)||zv(n,e)})),n},ey=function(e){var t=e===Bv,n=Rv(t?Hv:ku(e)),r=[];return Dv(n,(function(e){!is($v,e)||t&&!is(Bv,e)||zv(r,$v[e])})),r};if(Vu||(Tv=(Fv=function(){if(ju(Tv,this))throw Pv("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?oc(arguments[0]):void 0,t=ls(e),n=function(e){this===Bv&&gu(n,Hv,e),is(this,Av)&&is(this[Av],t)&&(this[Av][t]=!1),qv(this,t,wu(1,e))};return pu&&Gv&&qv(Bv,t,{configurable:!0,set:n}),Kv(t,e)}).prototype,Pc(Tv,"toString",(function(){return kv(this).tag})),Pc(Fv,"withoutSetter",(function(e){return Kv(ls(e),e)})),bu.f=Zv,zs.f=Yv,Ss.f=Jv,yl.f=bv.f=Qv,ml.f=ey,Ev.f=function(e){return Kv(hs(e),e)},pu&&Lv(Tv,"description",{configurable:!0,get:function(){return kv(this).description}})),Us({global:!0,wrap:!0,forced:!Vu,sham:!Vu},{Symbol:Fv}),Dv(El(Wv),(function(e){Cv(e)})),Us({target:"Symbol",stat:!0,forced:!Vu},{for:function(e){var t=oc(e);if(is(Vv,t))return Vv[t];var n=Fv(t);return Vv[t]=n,Uv[n]=t,n},keyFor:function(e){if(!Gu(e))throw Pv(e+" is not a symbol");if(is(Uv,e))return Uv[e]},useSetter:function(){Gv=!0},useSimple:function(){Gv=!1}}),Us({target:"Object",stat:!0,forced:!Vu,sham:!pu},{create:function(e,t){return void 0===t?kl(e):Xv(kl(e),t)},defineProperty:Yv,defineProperties:Xv,getOwnPropertyDescriptor:Jv}),Us({target:"Object",stat:!0,forced:!Vu},{getOwnPropertyNames:Qv,getOwnPropertySymbols:ey}),Us({target:"Object",stat:!0,forced:du((function(){ml.f(1)}))},{getOwnPropertySymbols:function(e){return ml.f(rs(e))}}),Nv){var ty=!Vu||du((function(){var e=Fv();return"[null]"!=Nv([e])||"{}"!=Nv({a:e})||"{}"!=Nv(Object(e))}));Us({target:"JSON",stat:!0,forced:ty},{stringify:function(e,t,n){var r=wv(arguments),o=t;if((Bu(t)||void 0!==e)&&!Gu(e))return Qg(t)||(t=function(e,t){if(fu(o)&&(t=gu(o,this,e,t)),!Gu(t))return t}),r[1]=t,iu(Nv,null,r)}})}if(!Tv[Ov]){var ny=Tv.valueOf;Pc(Tv,Ov,(function(e){return gu(ny,this)}))}$c(Fv,"Symbol"),cl[Av]=!0,Cv("asyncIterator"),Cv("hasInstance"),Cv("isConcatSpreadable"),Cv("iterator"),Cv("match"),Cv("matchAll"),Cv("replace"),Cv("search"),Cv("species"),Cv("split"),Cv("toPrimitive"),Cv("toStringTag"),Cv("unscopables"),$c(eu.JSON,"JSON",!0);var ry=Fu.Symbol;Cv("asyncDispose"),Cv("dispose"),Cv("matcher"),Cv("metadata"),Cv("observable"),Cv("patternMatch"),Cv("replaceAll");var oy=ry,iy=Ev.f("iterator"),ay=Xa((function(e){function t(n){return"function"==typeof oy&&"symbol"==typeof iy?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof oy&&e.constructor===oy&&e!==oy.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),uy=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(ay),sy=kd.f,ly=hf((function(){sy(1)}));if(Np({target:"Object",stat:!0,forced:!gf||ly,sham:!gf},{getOwnPropertyDescriptor:function(e,t){return sy(If(e),t)}}),"object"===("undefined"==typeof global?"undefined":uy(global))){var cy=Object.getOwnPropertyDescriptor(global,"window");global.window&&!cy.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)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}function fy(e){return"[object Object]"===Object.prototype.toString.call(e)}function dy(e){var t,n;return!1!==fy(e)&&(void 0===(t=e.constructor)||!1!==fy(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function py(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(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function hy(e){return!!e&&!!e[Jy]}function gy(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Qy}(e)||Array.isArray(e)||!!e[Zy]||!!e.constructor[Zy]||wy(e)||Ey(e))}function vy(e,t,n){void 0===n&&(n=!1),0===yy(e)?(n?Object.keys:em)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function yy(e){var t=e[Jy];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:wy(e)?2:Ey(e)?3:0}function my(e,t){return 2===yy(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function by(e,t,n){var r=yy(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function wy(e){return qy&&e instanceof Map}function Ey(e){return Ky&&e instanceof Set}function xy(e){return e.o||e.t}function Cy(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=tm(e);delete t[Jy];for(var n=em(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Sy(e,t){return void 0===t&&(t=!1),Ay(e)||hy(e)||!gy(e)||(yy(e)>1&&(e.set=e.add=e.clear=e.delete=Dy),Object.freeze(e),t&&vy(e,(function(e,t){return Sy(t,!0)}),!0)),e}function Dy(){py(2)}function Ay(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Oy(e){var t=nm[e];return t||py(18,e),t}function _y(){return Wy}function ky(e,t){t&&(Oy("Patches"),e.u=[],e.s=[],e.v=t)}function By(e){Fy(e),e.p.forEach(Py),e.p=null}function Fy(e){e===Wy&&(Wy=e.l)}function Ty(e){return Wy={p:[],l:Wy,h:e,m:!0,_:0}}function Py(e){var t=e[Jy];0===t.i||1===t.i?t.j():t.O=!0}function jy(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Oy("ES5").S(t,e,r),r?(n[Jy].P&&(By(t),py(4)),gy(e)&&(e=Ny(t,e),t.l||Ly(t,e)),t.u&&Oy("Patches").M(n[Jy],e,t.u,t.s)):e=Ny(t,n,[]),By(t),t.u&&t.v(t.u,t.s),e!==Xy?e:void 0}function Ny(e,t,n){if(Ay(t))return t;var r=t[Jy];if(!r)return vy(t,(function(o,i){return Iy(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Ly(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Cy(r.k):r.o;vy(3===r.i?new Set(o):o,(function(t,i){return Iy(e,r,o,t,i,n)})),Ly(e,o,!1),n&&e.u&&Oy("Patches").R(r,n,e.u,e.s)}return r.o}function Iy(e,t,n,r,o,i){if(hy(o)){var a=Ny(e,o,i&&t&&3!==t.i&&!my(t.D,r)?i.concat(r):void 0);if(by(n,r,a),!hy(a))return;e.m=!1}if(gy(o)&&!Ay(o)){if(!e.h.F&&e._<1)return;Ny(e,o),t&&t.A.l||Ly(e,o)}}function Ly(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Sy(t,n)}function Ry(e,t){var n=e[Jy];return(n?xy(n):e)[t]}function My(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 zy(e){e.P||(e.P=!0,e.l&&zy(e.l))}function $y(e){e.o||(e.o=Cy(e.t))}function Hy(e,t,n){var r=wy(t)?Oy("MapSet").N(t,n):Ey(t)?Oy("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:_y(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=rm;n&&(o=[r],i=om);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):Oy("ES5").J(t,n);return(n?n.A:_y()).p.push(r),r}function Vy(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Cy(e)}var Uy,Wy,Gy="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),qy="undefined"!=typeof Map,Ky="undefined"!=typeof Set,Yy="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Xy=Gy?Symbol.for("immer-nothing"):((Uy={})["immer-nothing"]=!0,Uy),Zy=Gy?Symbol.for("immer-draftable"):"__$immer_draftable",Jy=Gy?Symbol.for("immer-state"):"__$immer_state",Qy=""+Object.prototype.constructor,em="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,tm=Object.getOwnPropertyDescriptors||function(e){var t={};return em(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},nm={},rm={get:function(e,t){if(t===Jy)return e;var n=xy(e);if(!my(n,t))return function(e,t,n){var r,o=My(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!gy(r)?r:r===Ry(e.t,t)?($y(e),e.o[t]=Hy(e.A.h,r,e)):r},has:function(e,t){return t in xy(e)},ownKeys:function(e){return Reflect.ownKeys(xy(e))},set:function(e,t,n){var r,o,i=My(xy(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,n),!0;if(!e.P){var a=Ry(xy(e),t),u=null==a?void 0:a[Jy];if(u&&u.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(((r=n)===(o=a)?0!==r||1/r==1/o:r!=r&&o!=o)&&(void 0!==n||my(e.t,t)))return!0;$y(e),zy(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Ry(e.t,t)||t in e.t?(e.D[t]=!1,$y(e),zy(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=xy(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){py(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){py(12)}},om={};vy(rm,(function(e,t){om[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),om.deleteProperty=function(e,t){return rm.deleteProperty.call(this,e[0],t)},om.set=function(e,t,n){return rm.set.call(this,e[0],t,n,e[0])};var im=function(){function e(e){var t=this;this.g=Yy,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&py(6),void 0!==r&&"function"!=typeof r&&py(7),gy(e)){var u=Ty(t),s=Hy(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?By(u):Fy(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return ky(u,r),jy(e,u)}),(function(e){throw By(u),e})):(ky(u,r),jy(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===Xy)return;return void 0===a&&(a=e),t.F&&Sy(a,!0),a}py(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){gy(e)||py(8),hy(e)&&(e=function(e){return hy(e)||py(22,e),function e(t){if(!gy(t))return t;var n,r=t[Jy],o=yy(t);if(r){if(!r.P&&(r.i<4||!Oy("ES5").K(r)))return r.t;r.I=!0,n=Vy(t,o),r.I=!1}else n=Vy(t,o);return vy(n,(function(t,o){var i,a;r&&(a=t,(2===yy(i=r.t)?i.get(a):i[a])===o)||by(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=Ty(this),n=Hy(this,e,void 0);return n[Jy].C=!0,Fy(t),n},t.finishDraft=function(e,t){var n=(e&&e[Jy]).A;return ky(n,t),jy(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!Yy&&py(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Oy("Patches").$;return hy(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),am=new im,um=am.produce;am.produceWithPatches.bind(am),am.setAutoFreeze.bind(am),am.setUseProxies.bind(am),am.applyPatches.bind(am);var sm=am.createDraft.bind(am),lm=am.finishDraft.bind(am);function cm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fm=new WeakMap,dm=new WeakMap,pm=new WeakMap,hm=new WeakMap,gm=new WeakMap,vm=new WeakMap;function ym(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ym(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ym(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bm=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return cb.levels(t);case"insert_node":var{node:n,path:r}=e;return[...cb.levels(r),...Db.isText(n)?[]:Array.from(ab.nodes(n),(e=>{var[,t]=e;return r.concat(t)}))];case"merge_node":var{path:o}=e;return[...cb.ancestors(o),cb.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(cb.equals(i,a))return[];var u=[],s=[];for(var l of cb.ancestors(i)){var c=cb.transform(l,e);u.push(c)}for(var f of cb.ancestors(a)){var d=cb.transform(f,e);s.push(d)}var p=s[s.length-1],h=a[a.length-1],g=p.concat(h);return[...u,...s,g];case"remove_node":var{path:v}=e;return[...cb.ancestors(v)];case"split_node":var{path:y}=e;return[...cb.levels(y),cb.next(y)];default:return[]}};function wm(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Em,xm=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?_m(e):e,o=Em.None,i=Em.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=zm(s,l);if([o,i]=n?[i,c]:[c,o],$m(o,Em.ZWJ)&&$m(i,Em.ExtPict)&&!Wm(n?e.substring(0,a):e.substring(0,e.length-a)))break;if($m(o,Em.RI)&&$m(i,Em.RI)&&!(u=null!==u?!u:!!n||qm(e.substring(0,e.length-a))))break;if(o!==Em.None&&i!==Em.None&&Vm(o,i))break;a+=s.length}return a||1},Cm=/\s/,Sm=/[\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]/,Dm=/['\u2018\u2019]/,Am=(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)]},Om=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Cm.test(t))return!1;if(Dm.test(t)){var o=xm(n,r),[i,a]=Am(n,o,r);if(e(i,a,r))return!0}return!Sm.test(t)},_m=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Bm(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(km(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},km=e=>e>=55296&&e<=56319,Bm=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"}(Em||(Em={}));var Fm=/^(?:[\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])$/,Tm=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Pm=/^(?:[\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])$/,jm=/^[\u1100-\u115F\uA960-\uA97C]$/,Nm=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Im=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Lm=/^[\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]$/,Rm=/^[\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]$/,Mm=/^(?:[\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])$/,zm=(e,t)=>{var n=Em.Any;return-1!==e.search(Fm)&&(n|=Em.Extend),8205===t&&(n|=Em.ZWJ),t>=127462&&t<=127487&&(n|=Em.RI),-1!==e.search(Tm)&&(n|=Em.Prepend),-1!==e.search(Pm)&&(n|=Em.SpacingMark),-1!==e.search(jm)&&(n|=Em.L),-1!==e.search(Nm)&&(n|=Em.V),-1!==e.search(Im)&&(n|=Em.T),-1!==e.search(Lm)&&(n|=Em.LV),-1!==e.search(Rm)&&(n|=Em.LVT),-1!==e.search(Mm)&&(n|=Em.ExtPict),n};function $m(e,t){return 0!=(e&t)}var Hm=[[Em.L,Em.L|Em.V|Em.LV|Em.LVT],[Em.LV|Em.V,Em.V|Em.T],[Em.LVT|Em.T,Em.T],[Em.Any,Em.Extend|Em.ZWJ],[Em.Any,Em.SpacingMark],[Em.Prepend,Em.Any],[Em.ZWJ,Em.ExtPict],[Em.RI,Em.RI]];function Vm(e,t){return-1===Hm.findIndex((n=>$m(e,n[0])&&$m(t,n[1])))}var Um=/(?:[\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$/,Wm=e=>-1!==e.search(Um),Gm=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,qm=e=>{var t=e.match(Gm);return null!==t&&t[0].length/2%2==1},Km=e=>dy(e)&&ab.isNodeList(e.children)&&!tb.isEditor(e),Ym={isAncestor:e=>dy(e)&&ab.isNodeList(e.children),isElement:Km,isElementList:e=>Array.isArray(e)&&e.every((e=>Ym.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Km(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Xm=["text"],Zm=["text"];function Jm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jm(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var eb=new WeakMap,tb={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=tb.path(e,o),u="lowest"===r;for(var[s,l]of tb.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!Db.isText(s)&&!cb.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:tb.point(e,t,{edge:"end"}),focus:tb.end(e,[])},{distance:i=1}=r,a=0;for(var u of tb.positions(e,Qm(Qm({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:tb.start(e,[]),focus:tb.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of tb.positions(e,Qm(Qm({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[tb.start(e,t),tb.end(e,t)],end:(e,t)=>tb.point(e,t,{edge:"end"}),first(e,t){var n=tb.path(e,t,{edge:"start"});return tb.node(e,n)},fragment(e,t){var n=tb.range(e,t);return ab.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>tb.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Db.isText(t)||tb.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Db.isText(e))),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)=>Ym.isElement(t)&&!e.isInline(t),isEditor(e){if(!dy(e))return!1;var t=eb.get(e);if(void 0!==t)return t;var n="function"==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&&(null===e.marks||dy(e.marks))&&(null===e.selection||mb.isRange(e.selection))&&ab.isNodeList(e.children)&&lb.isOperationList(e.operations);return eb.set(e,n),n},isEnd(e,t,n){var r=tb.end(e,n);return hb.equals(t,r)},isEdge:(e,t,n)=>tb.isStart(e,t,n)||tb.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Db.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Ym.isElement(t)&&e.isInline(t),isNormalizing(e){var t=pm.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=tb.start(e,n);return hb.equals(t,r)},isVoid:(e,t)=>Ym.isElement(t)&&e.isVoid(t),last(e,t){var n=tb.path(e,t,{edge:"end"});return tb.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=tb.path(e,t,n);return[ab.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=tb.path(e,n);for(var[s,l]of ab.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&tb.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(mb.isExpanded(n)){var[r]=tb.nodes(e,{match:Db.isText});if(r){var[o]=r;return wm(o,Xm)}return{}}var{anchor:i}=n,{path:a}=i,[u]=tb.leaf(e,a);if(0===i.offset){var s=tb.previous(e,{at:a,match:Db.isText}),l=tb.above(e,{match:t=>tb.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;cb.isAncestor(d,f)&&(u=c)}}return wm(u,Zm)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=tb.after(e,i,{voids:r});if(a){var[,u]=tb.last(e,[]),s=[a.path,u];if(cb.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(cb.isPath(i)){var[l]=tb.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=tb.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=tb.path(e,t,n);return[ab.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(nb.isSpan(n))s=n[0],l=n[1];else{var c=tb.path(e,n,{edge:"start"}),f=tb.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=ab.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&tb.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===cb.compare(v,d[1]);if("highest"!==r||!y)if(u(g,v))if("lowest"===r&&y)d=[g,v];else{var m="lowest"===r?d:[g,v];m&&(o?h.push(m):yield m),d=[g,v]}else if(o&&!y&&Db.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>fm.get(e)||[];if(tb.isNormalizing(e)){if(n){var o=Array.from(ab.nodes(e),(e=>{var[,t]=e;return t}));fm.set(e,o)}0!==r(e).length&&tb.withoutNormalizing(e,(()=>{for(var t of r(e))if(ab.has(e,t)){var n=tb.node(e,t),[o,i]=n;Ym.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(ab.has(e,s)){var l=tb.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=tb.path(e,t,n),o=cb.parent(r);return tb.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(cb.isPath(t))if("start"===o){var[,i]=ab.first(e,t);t=i}else if("end"===o){var[,a]=ab.last(e,t);t=a}return mb.isRange(t)&&(t="start"===o?mb.start(t):"end"===o?mb.end(t):cb.common(t.anchor.path,t.focus.path)),hb.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>ab.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return tb.pathRefs(e).delete(o),o.current=null,t}};return tb.pathRefs(e).add(o),o},pathRefs(e){var t=hm.get(e);return t||(t=new Set,hm.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(cb.isPath(t)){var o;if("end"===r){var[,i]=ab.last(e,t);o=i}else{var[,a]=ab.first(e,t);o=a}var u=ab.get(e,o);if(!Db.isText(u))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:o,offset:"end"===r?u.text.length:0}}if(mb.isRange(t)){var[s,l]=mb.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return tb.pointRefs(e).delete(o),o.current=null,t}};return tb.pointRefs(e).add(o),o},pointRefs(e){var t=gm.get(e);return t||(t=new Set,gm.set(e,t)),t},*positions(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:i=e.selection,unit:a="offset",reverse:u=!1,voids:s=!1}=o;if(i){var l=tb.range(e,i),[c,f]=mb.edges(l),d=u?f:c,p=!1,h="",g=0,v=0,y=0;for(var[m,b]of tb.nodes(e,{at:i,reverse:u,voids:s})){if(Ym.isElement(m)){if(!s&&e.isVoid(m)){yield tb.start(e,b);continue}if(e.isInline(m))continue;if(tb.hasInlines(e,m)){var w=cb.isAncestor(b,f.path)?f:tb.end(e,b),E=cb.isAncestor(b,c.path)?c:tb.start(e,b);h=tb.string(e,{anchor:E,focus:w},{voids:s}),p=!0}}if(Db.isText(m)){var x=cb.equals(b,d.path);for(x?(v=u?d.offset:m.text.length-d.offset,y=d.offset):(v=m.text.length,y=u?v:0),(x||p||"offset"===a)&&(yield{path:b,offset:y},p=!1);;){if(0===g){if(""===h)break;t=h,r=u,g="character"===(n=a)?xm(t,r):"word"===n?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=xm(e,t),[i,a]=Am(e,o,t);if(Om(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(t,r):"line"===n||"block"===n?t.length:1,h=Am(h,g,u)[1]}if(y=u?y-g:y+g,(v-=g)<0){g=-v;break}g=0,yield{path:b,offset:y}}}}}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=tb.before(e,i,{voids:r});if(a){var[,u]=tb.first(e,[]),s=[a.path,u];if(cb.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(cb.isPath(i)){var[l]=tb.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=tb.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>mb.isRange(t)&&!n?t:{anchor:tb.start(e,t),focus:tb.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return tb.rangeRefs(e).delete(o),o.current=null,t}};return tb.rangeRefs(e).add(o),o},rangeRefs(e){var t=vm.get(e);return t||(t=new Set,vm.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){pm.set(e,t)},start:(e,t)=>tb.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=tb.range(e,t),[i,a]=mb.edges(o),u="";for(var[s,l]of tb.nodes(e,{at:o,match:Db.isText,voids:r})){var c=s.text;cb.equals(l,a.path)&&(c=c.slice(0,a.offset)),cb.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=mb.edges(t);if(0!==o.offset||0!==i.offset||mb.isCollapsed(t))return t;var a=tb.above(e,{at:i,match:t=>tb.isBlock(e,t)}),u=a?a[1]:[],s={anchor:tb.start(e,[]),focus:i},l=!0;for(var[c,f]of tb.nodes(e,{at:s,match:Db.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||cb.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return tb.above(e,Qm(Qm({},t),{},{match:t=>tb.isVoid(e,t)}))},withoutNormalizing(e,t){var n=tb.isNormalizing(e);tb.setNormalizing(e,!1);try{t()}finally{tb.setNormalizing(e,n)}tb.normalize(e)}},nb={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(cb.isPath)},rb=["children"],ob=["text"],ib=new WeakMap,ab={ancestor(e,t){var n=ab.get(e,t);if(Db.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&&void 0!==arguments[2]?arguments[2]:{};for(var r of cb.ancestors(t,n)){var o=[ab.ancestor(e,r),r];yield o}},child(e,t){if(Db.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)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&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=ab.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=ab.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=cb.common(t,n);return[ab.get(e,r),r]},descendant(e,t){var n=ab.get(e,t);if(tb.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&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of ab.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of ab.nodes(e,t))Ym.isElement(n)&&(yield[n,r])},extractProps:e=>Ym.isAncestor(e)?wm(e,rb):wm(e,ob),first(e,t){for(var n=t.slice(),r=ab.get(e,n);r&&!Db.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Db.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=um({children:e.children},(e=>{var[n,r]=mb.edges(t),o=ab.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!mb.includes(t,n)}});for(var[,i]of o){if(!mb.includes(t,i)){var a=ab.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(cb.equals(i,r.path)){var s=ab.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(cb.equals(i,n.path)){var l=ab.leaf(e,i);l.text=l.text.slice(n.offset)}}tb.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Db.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Db.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Db.isText(e)||Ym.isElement(e)||tb.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=ib.get(e);if(void 0!==t)return t;var n=e.every((e=>ab.isNode(e)));return ib.set(e,n),n},last(e,t){for(var n=t.slice(),r=ab.get(e,n);r&&!Db.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=ab.get(e,t);if(!Db.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&&void 0!==arguments[2]?arguments[2]:{};for(var r of cb.levels(t,n)){var o=ab.get(e,r);yield[o,r]}},matches:(e,t)=>Ym.isElement(e)&&Ym.isElementProps(t)&&Ym.matches(e,t)||Db.isText(e)&&Db.isTextProps(t)&&Db.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?cb.isBefore(u,i):cb.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||Db.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=cb.next(u);if(ab.has(e,l)){u=l,s=ab.get(e,u);continue}}r&&0!==u[u.length-1]?(u=cb.previous(u),s=ab.get(e,u)):(u=cb.parent(u),s=ab.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;cb.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=ab.get(e,u)}},parent(e,t){var n=cb.parent(t),r=ab.get(e,n);if(Db.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=>Db.isText(e)?e.text:e.children.map(ab.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of ab.nodes(e,t))Db.isText(n)&&(yield[n,r])}};function ub(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ub(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ub(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lb={isNodeOperation:e=>lb.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!dy(e))return!1;switch(e.type){case"insert_node":case"remove_node":return cb.isPath(e.path)&&ab.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&cb.isPath(e.path);case"merge_node":return"number"==typeof e.position&&cb.isPath(e.path)&&dy(e.properties);case"move_node":return cb.isPath(e.path)&&cb.isPath(e.newPath);case"set_node":return cb.isPath(e.path)&&dy(e.properties)&&dy(e.newProperties);case"set_selection":return null===e.properties&&mb.isRange(e.newProperties)||null===e.newProperties&&mb.isRange(e.properties)||dy(e.properties)&&dy(e.newProperties);case"split_node":return cb.isPath(e.path)&&"number"==typeof e.position&&dy(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>lb.isOperation(e))),isSelectionOperation:e=>lb.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>lb.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return sb(sb({},e),{},{type:"remove_node"});case"insert_text":return sb(sb({},e),{},{type:"remove_text"});case"merge_node":return sb(sb({},e),{},{type:"split_node",path:cb.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(cb.equals(t,n))return e;if(cb.isSibling(n,t))return sb(sb({},e),{},{path:t,newPath:n});var r=cb.transform(n,e),o=cb.transform(cb.next(n),e);return sb(sb({},e),{},{path:r,newPath:o});case"remove_node":return sb(sb({},e),{},{type:"insert_node"});case"remove_text":return sb(sb({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return sb(sb({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return sb(sb({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return sb(sb({},e),{},{type:"merge_node",path:cb.next(e.path)})}}},cb={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=cb.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}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),o=t.slice(0,n),i=e[n],a=t[n];return cb.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return cb.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return cb.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===cb.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===cb.compare(e,t),isBefore:(e,t)=>-1===cb.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===cb.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===cb.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===cb.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===cb.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),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]&&cb.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)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(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)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(!cb.isAncestor(t,e)&&!cb.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&&void 0!==arguments[2]?arguments[2]:{};return um(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(cb.equals(i,r)||cb.endsBefore(i,r)||cb.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(cb.equals(a,r)||cb.isAncestor(a,r))return null;cb.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;cb.equals(u,r)||cb.endsBefore(u,r)?r[u.length-1]-=1:cb.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(cb.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else cb.endsBefore(l,r)?r[l.length-1]+=1:cb.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(cb.equals(f,d))return;if(cb.isAncestor(f,r)||cb.equals(f,r)){var p=d.slice();return cb.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}cb.isSibling(f,d)&&(cb.isAncestor(d,r)||cb.equals(d,r))?cb.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:cb.endsBefore(d,r)||cb.equals(d,r)||cb.isAncestor(d,r)?(cb.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):cb.endsBefore(f,r)&&(cb.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},fb={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=cb.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?db(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):db(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hb={compare(e,t){var n=cb.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===hb.compare(e,t),isBefore:(e,t)=>-1===hb.compare(e,t),equals:(e,t)=>e.offset===t.offset&&cb.equals(e.path,t.path),isPoint:e=>dy(e)&&"number"==typeof e.offset&&cb.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return um(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=cb.transform(o,t,n);break;case"insert_text":cb.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":cb.equals(t.path,o)&&(e.offset+=t.position),e.path=cb.transform(o,t,n);break;case"remove_text":cb.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(cb.equals(t.path,o)||cb.isAncestor(t.path,o))return null;e.path=cb.transform(o,t,n);break;case"split_node":if(cb.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=cb.transform(o,t,pb(pb({},n),{},{affinity:"forward"})))}else e.path=cb.transform(o,t,n)}}))}},gb={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=hb.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},vb=["anchor","focus"];function yb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var mb={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return mb.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=mb.edges(e);return t},equals:(e,t)=>hb.equals(e.anchor,t.anchor)&&hb.equals(e.focus,t.focus),includes(e,t){if(mb.isRange(t)){if(mb.includes(e,t.anchor)||mb.includes(e,t.focus))return!0;var[n,r]=mb.edges(e),[o,i]=mb.edges(t);return hb.isBefore(n,o)&&hb.isAfter(r,i)}var[a,u]=mb.edges(e),s=!1,l=!1;return hb.isPoint(t)?(s=hb.compare(t,a)>=0,l=hb.compare(t,u)<=0):(s=cb.compare(t,a.path)>=0,l=cb.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=wm(e,vb),[r,o]=mb.edges(e),[i,a]=mb.edges(t),u=hb.isBefore(r,i)?i:r,s=hb.isBefore(o,a)?o:a;return hb.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yb(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return hb.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return hb.equals(t,n)},isExpanded:e=>!mb.isCollapsed(e),isForward:e=>!mb.isBackward(e),isRange:e=>dy(e)&&hb.isPoint(e.anchor)&&hb.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=mb.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return um(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=mb.isCollapsed(e);mb.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?mb.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=hb.transform(e.anchor,t,{affinity:r}),s=hb.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},bb={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=mb.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},wb=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(dy(r)&&dy(o)){if(!wb(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Eb=["text"],xb=["anchor","focus"];function Cb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cb(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Db={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return wm(e,Eb)}return wb(r?o(e):e,r?o(t):t)},isText:e=>dy(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>Db.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Sb({},e)];for(var r of t){var o=wm(r,xb),[i,a]=mb.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var g=a.offset-f;h=Sb(Sb({},d),{},{text:d.text.slice(g)}),d=Sb(Sb({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=Sb(Sb({},d),{},{text:d.text.slice(0,v)}),d=Sb(Sb({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function Ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ob(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ab(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ab(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _b={transform(e,t){e.children=sm(e.children);var n=e.selection&&sm(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=ab.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of mb.points(t))t[s]=hb.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=ab.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of mb.points(t))t[v]=hb.transform(g,n);break;case"merge_node":var{path:y}=n,m=ab.get(e,y),b=cb.previous(y),w=ab.get(e,b),E=ab.parent(e,y),x=y[y.length-1];if(Db.isText(m)&&Db.isText(w))w.text+=m.text;else{if(Db.isText(m)||Db.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(E.children.splice(x,1),t)for(var[C,S]of mb.points(t))t[S]=hb.transform(C,n);break;case"move_node":var{path:D,newPath:A}=n;if(cb.isAncestor(D,A))throw new Error("Cannot move a path [".concat(D,"] to new path [").concat(A,"] because the destination is inside itself."));var O=ab.get(e,D),_=ab.parent(e,D),k=D[D.length-1];_.children.splice(k,1);var B=cb.transform(D,n),F=ab.get(e,cb.parent(B)),T=B[B.length-1];if(F.children.splice(T,0,O),t)for(var[P,j]of mb.points(t))t[j]=hb.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if(ab.parent(e,N).children.splice(I,1),t)for(var[L,R]of mb.points(t)){var M=hb.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,$=void 0;for(var[H,V]of ab.texts(e)){if(-1!==cb.compare(V,N)){$=[H,V];break}z=[H,V]}var U=!1;z&&$&&(U=cb.equals($[1],N)?!cb.hasPrevious($[1]):cb.common(z[1],N).length<cb.common($[1],N).length),z&&!U?(L.path=z[1],L.offset=z[0].text.length):$?(L.path=$[1],L.offset=0):t=null}}break;case"remove_text":var{path:W,offset:G,text:q}=n;if(0===q.length)break;var K=ab.leaf(e,W),Y=K.text.slice(0,G),X=K.text.slice(G+q.length);if(K.text=Y+X,t)for(var[Z,J]of mb.points(t))t[J]=hb.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=ab.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!mb.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=Ob({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=ab.get(e,le),he=ab.parent(e,le),ge=le[le.length-1];if(Db.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=Ob(Ob({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=Ob(Ob({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,Ee]of mb.points(t))t[Ee]=hb.transform(we,n)}return t})(e,n,t)}finally{e.children=lm(e.children),e.selection=n?hy(n)?lm(n):n:null}}},kb=["text"],Bb=["children"];function Fb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fb(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pb={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};tb.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(ab.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?tb.end(e,[]):[0],s=!0),null==s&&(s=!1),mb.isRange(a))if(r||(a=tb.unhangRange(e,a)),mb.isCollapsed(a))a=a.anchor;else{var[,c]=mb.edges(a),f=tb.pointRef(e,c);Vb.delete(e,{at:a}),a=f.unref()}if(hb.isPoint(a)){null==u&&(u=Db.isText(l)?e=>Db.isText(e):e.isInline(l)?t=>Db.isText(t)||tb.isInline(e,t):t=>tb.isBlock(e,t));var[d]=tb.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=tb.pathRef(e,p),g=tb.isEnd(e,a,p);Vb.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?cb.next(v):v}var y=cb.parent(a),m=a[a.length-1];if(o||!tb.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=cb.next(a)}if(a=cb.previous(a),s){var E=tb.end(e,a);E&&Vb.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tb.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=cb.isPath(n)?Ib(e,n):t=>tb.isBlock(e,t)),n){var a=tb.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return tb.pathRef(e,n)}));for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=tb.node(e,cb.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=cb.next(d);Vb.moveNodes(e,{at:l,to:g,voids:o}),Vb.removeNodes(e,{at:d,voids:o})}else if(0===p)Vb.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=cb.next(d);Vb.moveNodes(e,{at:l,to:v,voids:o})}else{var y=cb.next(l),m=cb.next(d);Vb.splitNodes(e,{at:y,voids:o}),Vb.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tb.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(cb.isPath(r)){var[u]=tb.parent(e,r);n=e=>u.children.includes(e)}else n=t=>tb.isBlock(e,t);if(!o&&mb.isRange(r)&&(r=tb.unhangRange(e,r)),mb.isRange(r))if(mb.isCollapsed(r))r=r.anchor;else{var[,s]=mb.edges(r),l=tb.pointRef(e,s);Vb.delete(e,{at:r}),r=l.unref(),null==t.at&&Vb.select(e,r)}var[c]=tb.nodes(e,{at:r,match:n,voids:i,mode:a}),f=tb.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,y,m=cb.next(g),b=cb.common(p,g),w=cb.isSibling(p,g),E=Array.from(tb.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),x=tb.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&jb(e,t)}),C=x&&tb.pathRef(e,x[1]);if(Db.isText(d)&&Db.isText(h)){var S=wm(d,kb);y=h.text.length,v=S}else{if(!Ym.isElement(d)||!Ym.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));S=wm(d,Bb),y=h.children.length,v=S}w||Vb.moveNodes(e,{at:p,to:m,voids:i}),C&&Vb.removeNodes(e,{at:C.current,voids:i}),Ym.isElement(h)&&tb.isEmpty(e,h)||Db.isText(h)&&""===h.text&&0!==g[g.length-1]?Vb.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),C&&C.unref()}}}}))},moveNodes(e,t){tb.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=cb.isPath(r)?Ib(e,r):t=>tb.isBlock(e,t));var u=tb.pathRef(e,n),s=tb.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return tb.pathRef(e,n)}));for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&cb.isSibling(d,f)&&cb.isAfter(d,f)&&(u.current=cb.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tb.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=cb.isPath(i)?Ib(e,i):t=>tb.isBlock(e,t)),!n&&mb.isRange(i)&&(i=tb.unhangRange(e,i));var u=tb.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return tb.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=tb.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};tb.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=cb.isPath(o)?Ib(e,o):t=>tb.isBlock(e,t)),!i&&mb.isRange(o)&&(o=tb.unhangRange(e,o)),u&&mb.isRange(o)){if(mb.isCollapsed(o)&&tb.leaf(e,o.anchor)[0].text.length>0)return;var l=tb.rangeRef(e,o,{affinity:"inward"}),[c,f]=mb.edges(o),d="lowest"===a?"lowest":"highest",p=tb.isEnd(e,f,f.path);Vb.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=tb.isStart(e,c,c.path);Vb.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&Vb.select(e,o)}for(var[g,v]of tb.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==v.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tb.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>tb.isBlock(e,t)),mb.isRange(i)&&(i=Nb(e,i)),cb.isPath(i)){var s=i,l=tb.point(e,s),[c]=tb.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=tb.pointRef(e,i,{affinity:"backward"}),[d]=tb.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=tb.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(Ym.isElement(h)&&e.isInline(h)){var v=tb.after(e,g);if(!v){var y=cb.next(g);Vb.insertNodes(e,{text:""},{at:y,voids:r}),v=tb.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=tb.pointRef(e,i),b=i.path.length-a,[,w]=d,E=i.path.slice(0,b),x=0===a?i.offset:i.path[b]+0;for(var[C,S]of tb.levels(e,{at:E,reverse:!0,voids:r})){var D=!1;if(S.length<w.length||0===S.length||!r&&tb.isVoid(e,C))break;var A=f.current,O=tb.isEnd(e,A,S);if(u||!f||!tb.isEdge(e,A,S)){D=!0;var _=ab.extractProps(C);e.apply({type:"split_node",path:S,position:x,properties:_})}x=S[S.length-1]+(D||O?1:0)}if(null==t.at){var k=m.current||tb.end(e,[]);Vb.select(e,k)}f.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;Vb.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tb.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=cb.isPath(i)?Ib(e,i):t=>tb.isBlock(e,t)),cb.isPath(i)&&(i=tb.range(e,i));var u=mb.isRange(i)?tb.rangeRef(e,i):null,s=tb.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return tb.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=tb.node(e,n),a=tb.range(e,n);r&&u&&(a=mb.intersection(u.current,a)),Vb.liftNodes(e,{at:a,match:e=>Ym.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};tb.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=cb.isPath(u)?Ib(e,u):e.isInline(t)?t=>tb.isInline(e,t)||Db.isText(t):t=>tb.isBlock(e,t)),o&&mb.isRange(u)){var[s,l]=mb.edges(u),c=tb.rangeRef(e,u,{affinity:"inward"});Vb.splitNodes(e,{at:l,match:a,voids:i}),Vb.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&Vb.select(e,u)}var f=Array.from(tb.nodes(e,{at:u,match:e.isInline(t)?t=>tb.isBlock(e,t):e=>tb.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=mb.isRange(u)?mb.intersection(u,tb.range(e,d)):u;if(p){var h=Array.from(tb.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0)if("continue"===function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=cb.equals(o,a)?cb.parent(o):cb.common(o,a),s=tb.range(e,o,a),l=tb.node(e,u),[c]=l,f=u.length+1,d=cb.next(a.slice(0,f)),p=Tb(Tb({},t),{},{children:[]});Vb.insertNodes(e,p,{at:d,voids:i}),Vb.moveNodes(e,{at:s,match:e=>Ym.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}())continue}}}}))}},jb=(e,t)=>{if(Ym.isElement(t)){var n=t;return!!tb.isVoid(e,t)||1===n.children.length&&jb(e,n.children[0])}return!tb.isEditor(t)},Nb=(e,t)=>{if(mb.isCollapsed(t))return t.anchor;var[,n]=mb.edges(t),r=tb.pointRef(e,n);return Vb.delete(e,{at:t}),r.unref()},Ib=(e,t)=>{var[n]=tb.node(e,t);return e=>e===n};function Lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lb(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mb={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)Vb.select(e,r.anchor);else if("focus"===n)Vb.select(e,r.focus);else if("start"===n){var[o]=mb.edges(r);Vb.select(e,o)}else if("end"===n){var[,i]=mb.edges(r);Vb.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=mb.isBackward(n)?"focus":"anchor"),"end"===a&&(a=mb.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?tb.before(e,u,l):tb.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?tb.before(e,s,l):tb.after(e,s,l);d&&(c.focus=d)}Vb.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=tb.range(e,t),n)Vb.setSelection(e,t);else{if(!mb.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&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=mb.isBackward(r)?"focus":"anchor"),"end"===o&&(o=mb.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;Vb.setSelection(e,{["anchor"===o?"anchor":"focus"]:Rb(Rb({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!hb.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!hb.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},zb={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tb.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(mb.isRange(a)&&mb.isCollapsed(a)&&(a=a.anchor),hb.isPoint(a)){var s=tb.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?tb.before(e,a,c)||tb.start(e,[]):tb.after(e,a,c)||tb.end(e,[])},u=!0}}if(cb.isPath(a))Vb.removeNodes(e,{at:a,voids:i});else if(!mb.isCollapsed(a)){if(!u){var[,f]=mb.edges(a),d=tb.end(e,[]);hb.equals(f,d)||(a=tb.unhangRange(e,a,{voids:i}))}var[p,h]=mb.edges(a),g=tb.above(e,{match:t=>tb.isBlock(e,t),at:p,voids:i}),v=tb.above(e,{match:t=>tb.isBlock(e,t),at:h,voids:i}),y=g&&v&&!cb.equals(g[1],v[1]),m=cb.equals(p.path,h.path),b=i?null:tb.void(e,{at:p,mode:"highest"}),w=i?null:tb.void(e,{at:h,mode:"highest"});if(b){var E=tb.before(e,p);E&&g&&cb.isAncestor(g[1],E.path)&&(p=E)}if(w){var x=tb.after(e,h);x&&v&&cb.isAncestor(v[1],x.path)&&(h=x)}var C,S=[];for(var D of tb.nodes(e,{at:a,voids:i})){var[A,O]=D;C&&0===cb.compare(O,C)||(!i&&tb.isVoid(e,A)||!cb.isCommon(O,p.path)&&!cb.isCommon(O,h.path))&&(S.push(D),C=O)}var _=Array.from(S,(t=>{var[,n]=t;return tb.pathRef(e,n)})),k=tb.pointRef(e,p),B=tb.pointRef(e,h);if(!m&&!b){var F=k.current,[T]=tb.leaf(e,F),{path:P}=F,{offset:j}=p,N=T.text.slice(j);N.length>0&&e.apply({type:"remove_text",path:P,offset:j,text:N})}for(var I of _){var L=I.unref();Vb.removeNodes(e,{at:L,voids:i})}if(!w){var R=B.current,[M]=tb.leaf(e,R),{path:z}=R,$=m?p.offset:0,H=M.text.slice($,h.offset);H.length>0&&e.apply({type:"remove_text",path:z,offset:$,text:H})}!m&&y&&B.current&&k.current&&Vb.mergeNodes(e,{at:B.current,hanging:!0,voids:i});var V=n?k.unref()||B.unref():B.unref()||k.unref();null==t.at&&V&&Vb.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};tb.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(mb.isRange(i))if(r||(i=tb.unhangRange(e,i)),mb.isCollapsed(i))i=i.anchor;else{var[,a]=mb.edges(i);if(!o&&tb.void(e,{at:a}))return;var u=tb.pointRef(e,a);Vb.delete(e,{at:i}),i=u.unref()}else cb.isPath(i)&&(i=tb.start(e,i));if(o||!tb.void(e,{at:i})){var s=tb.above(e,{at:i,match:t=>tb.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;tb.isEnd(e,i,l)?i=tb.after(e,l):tb.isStart(e,i,l)&&(i=tb.before(e,l))}var c=tb.above(e,{match:t=>tb.isBlock(e,t),at:i,voids:o}),[,f]=c,d=tb.isStart(e,i,f),p=tb.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=ab.first({children:t},[]),[,m]=ab.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(g&&cb.isAncestor(r,y)&&Ym.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||v&&cb.isAncestor(r,m)&&Ym.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of ab.nodes({children:t},{pass:w}))w(E)&&b.push(E);var x=[],C=[],S=[],D=!0,A=!1;for(var[O]of b)Ym.isElement(O)&&!e.isInline(O)?(D=!1,A=!0,C.push(O)):D?x.push(O):S.push(O);var[_]=tb.nodes(e,{at:i,match:t=>Db.isText(t)||tb.isInline(e,t),mode:"highest",voids:o}),[,k]=_,B=tb.isStart(e,i,k),F=tb.isEnd(e,i,k),T=tb.pathRef(e,p?cb.next(f):f),P=tb.pathRef(e,F?cb.next(k):k),j=tb.pathRef(e,f);Vb.splitNodes(e,{at:i,match:t=>A?tb.isBlock(e,t):Db.isText(t)||tb.isInline(e,t),mode:A?"lowest":"highest",voids:o});var N=tb.pathRef(e,!B||B&&F?cb.next(k):k);if(Vb.insertNodes(e,x,{at:N.current,match:t=>Db.isText(t)||tb.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&Vb.delete(e,{at:j.unref(),voids:o}),Vb.insertNodes(e,C,{at:T.current,match:t=>tb.isBlock(e,t),mode:"lowest",voids:o}),Vb.insertNodes(e,S,{at:P.current,match:t=>Db.isText(t)||tb.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=S.length>0?cb.previous(P.current):C.length>0?cb.previous(T.current):cb.previous(N.current);var L=tb.end(e,I);Vb.select(e,L)}N.unref(),T.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};tb.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(cb.isPath(o)&&(o=tb.range(e,o)),mb.isRange(o))if(mb.isCollapsed(o))o=o.anchor;else{var i=mb.end(o);if(!r&&tb.void(e,{at:i}))return;var a=tb.pointRef(e,i);Vb.delete(e,{at:o,voids:r}),o=a.unref(),Vb.setSelection(e,{anchor:o,focus:o})}if(r||!tb.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function $b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$b(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vb=Hb(Hb(Hb(Hb({},_b),Pb),Mb),zb),Ub="[object Map]",Wb="[object Set]",Gb=/^\[object .+?Constructor\]$/,qb=/^(?:0|[1-9]\d*)$/,Kb="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Yb="\\ud83c[\\udffb-\\udfff]",Xb="[^\\ud800-\\udfff]",Zb="(?:\\ud83c[\\udde6-\\uddff]){2}",Jb="[\\ud800-\\udbff][\\udc00-\\udfff]",Qb="(?:"+Kb+"|"+Yb+")?",ew="[\\ufe0e\\ufe0f]?"+Qb+"(?:\\u200d(?:"+[Xb,Zb,Jb].join("|")+")[\\ufe0e\\ufe0f]?"+Qb+")*",tw="(?:"+[Xb+Kb+"?",Kb,Zb,Jb,"[\\ud800-\\udfff]"].join("|")+")",nw=RegExp(Yb+"(?="+Yb+")|"+tw+ew,"g"),rw=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),ow="object"==typeof Ya&&Ya&&Ya.Object===Object&&Ya,iw="object"==typeof self&&self&&self.Object===Object&&self,aw=ow||iw||Function("return this")();function uw(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sw(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var lw,cw,fw=Function.prototype,dw=Object.prototype,pw=aw["__core-js_shared__"],hw=function(){var e=/[^.]+$/.exec(pw&&pw.keys&&pw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gw=fw.toString,vw=dw.hasOwnProperty,yw=dw.toString,mw=RegExp("^"+gw.call(vw).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bw=aw.Symbol,ww=bw?bw.iterator:void 0,Ew=dw.propertyIsEnumerable,xw=(lw=Object.keys,cw=Object,function(e){return lw(cw(e))}),Cw=Pw(aw,"DataView"),Sw=Pw(aw,"Map"),Dw=Pw(aw,"Promise"),Aw=Pw(aw,"Set"),Ow=Pw(aw,"WeakMap"),_w=Iw(Cw),kw=Iw(Sw),Bw=Iw(Dw),Fw=Iw(Aw),Tw=Iw(Ow);function Pw(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){if(!zw(e)||(t=e,hw&&hw in t))return!1;var t,n=Mw(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?mw:Gb;return n.test(Iw(e))}(o)?o:void 0}var jw=function(e){return yw.call(e)};function Nw(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||qb.test(e))&&e>-1&&e%1==0&&e<t}function Iw(e){if(null!=e){try{return gw.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(Cw&&"[object DataView]"!=jw(new Cw(new ArrayBuffer(1)))||Sw&&jw(new Sw)!=Ub||Dw&&"[object Promise]"!=jw(Dw.resolve())||Aw&&jw(new Aw)!=Wb||Ow&&"[object WeakMap]"!=jw(new Ow))&&(jw=function(e){var t=yw.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?Iw(n):void 0;if(r)switch(r){case _w:return"[object DataView]";case kw:return Ub;case Bw:return"[object Promise]";case Fw:return Wb;case Tw:return"[object WeakMap]"}return t});var Lw=Array.isArray;function Rw(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!Mw(e);var t}function Mw(e){var t=zw(e)?yw.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function zw(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $w(e){return!!e&&"object"==typeof e}function Hw(e){return e?function(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n]);return o}(t,(function(t){return e[t]}))}(e,Rw(t=e)?function(e){var t,n,r=Lw(e)||$w(n=t=e)&&Rw(n)&&vw.call(t,"callee")&&(!Ew.call(t,"callee")||"[object Arguments]"==yw.call(t))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],o=r.length,i=!!o;for(var a in e)!vw.call(e,a)||i&&("length"==a||Nw(a,o))||r.push(a);return r}(t):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||dw))return xw(e);var t,n,r=[];for(var o in Object(e))vw.call(e,o)&&"constructor"!=o&&r.push(o);return r}(t)):[];var t}var Vw=function(e){if(!e)return[];if(Rw(e))return"string"==typeof(t=e)||!Lw(t)&&$w(t)&&"[object String]"==yw.call(t)?function(e){return t=e,rw.test(t)?function(e){return e.match(nw)||[]}(e):function(e){return e.split("")}(e);var t}(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);var t;if(ww&&e[ww])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[ww]());var n=jw(e);return(n==Ub?uw:n==Wb?sw:Hw)(e)};function Uw(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Ww(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:Uw(t[n])&&Uw(e[n])&&Object.keys(t[n]).length>0&&Ww(e[n],t[n])}))}var Gw={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 qw(){var e="undefined"!=typeof document?document:{};return Ww(e,Gw),e}var Kw={document:Gw,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"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Yw(){var e="undefined"!=typeof window?window:{};return Ww(e,Kw),e}function Xw(e){return(Xw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zw(e,t){return(Zw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jw(e,t,n){return Jw=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Zw(o,n.prototype),o},Jw.apply(null,arguments)}function Qw(e){var t="function"==typeof Map?new Map:void 0;return Qw=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Jw(e,arguments,Xw(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Zw(r,e)},Qw(e)}var eE=function(e){var t,n;function r(t){var n,r,o;return r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Qw(Array));function tE(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,tE(e)):t.push(e)})),t}function nE(e,t){return Array.prototype.filter.call(e,t)}function rE(e,t){var n=Yw(),r=qw(),o=[];if(!t&&e instanceof eE)return e;if(!e)return new eE(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof eE)return e;o=e}return new eE(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function oE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=tE(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function iE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=tE(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function aE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=tE(t.map((function(e){return e.split(" ")})));return nE(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function uE(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)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 sE(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function lE(){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 o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function cE(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function fE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),rE(t).is(o))i.apply(t,n);else for(var r=rE(t).parents(),a=0;a<r.length;a+=1)rE(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function dE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function pE(){var e=Yw();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function hE(){var e=Yw();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function gE(){if(this.length>0){var e=Yw(),t=qw(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function vE(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function yE(){for(var e=Yw(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function mE(e,t){var n,r=Yw();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function bE(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function wE(e){return rE(nE(this,e))}function EE(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function xE(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function CE(e){var t,n,r=Yw(),o=qw(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=rE(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof eE){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function SE(){for(var e,t=qw(),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("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof eE)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function DE(e){var t,n,r=qw();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof eE)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 AE(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?rE(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return rE(t)}function OE(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?rE(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return rE(t)}function _E(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return rE(t)}function kE(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!rE(r[o]).is(e)||t.push(r[o]);return rE(t)}function BE(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function FE(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){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}rE.fn=eE.prototype;var TE="resize scroll".split(" ");function PE(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)TE.indexOf(e)<0&&(e in this[o]?this[o][e]():rE(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var jE=PE("click"),NE=PE("focus"),IE=/^(?:0|[1-9]\d*)$/;function LE(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var RE=Object.prototype,ME=RE.hasOwnProperty,zE=RE.toString,$E=RE.propertyIsEnumerable,HE=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var VE,UE=(VE=function(e,t){return e&&WE(e,t,YE)},function(e,t){if(null==e)return e;if(!KE(e))return VE(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),WE=function(){return function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e}}();function GE(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||IE.test(e))&&e>-1&&e%1==0&&e<t}var qE=Array.isArray;function KE(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!function(e){var t,n,r=(n=typeof(t=e),!t||"object"!=n&&"function"!=n?"":zE.call(e));return"[object Function]"==r||"[object GeneratorFunction]"==r}(e);var t}function YE(e){return KE(e)?function(e){var t,n,r=qE(e)||function(e){return!!e&&"object"==typeof e}(n=t=e)&&KE(n)&&ME.call(t,"callee")&&(!$E.call(t,"callee")||"[object Arguments]"==zE.call(t))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],o=r.length,i=!!o;for(var a in e)!ME.call(e,a)||i&&("length"==a||GE(a,o))||r.push(a);return r}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||RE))return HE(e);var t,n,r=[];for(var o in Object(e))ME.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function XE(e){return e}var ZE=function(e,t){return(qE(e)?LE:UE)(e,"function"==typeof t?t:XE)};let JE=(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 QE=/^\s+|\s+$/g,ex=/^[-+]0x[0-9a-f]+$/i,tx=/^0b[01]+$/i,nx=/^0o[0-7]+$/i,rx=parseInt,ox="object"==typeof Ya&&Ya&&Ya.Object===Object&&Ya,ix="object"==typeof self&&self&&self.Object===Object&&self,ax=ox||ix||Function("return this")(),ux=Object.prototype.toString,sx=Math.max,lx=Math.min,cx=function(){return ax.Date.now()};function fx(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e,n,r=cx();if(h(r))return v(r);u=setTimeout(g,(n=t-((e=r)-s),f?lx(n,i-(e-l)):n))}function v(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=cx(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(g,t),c?p(e):a}(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=px(t)||0,dx(n)&&(c=!!n.leading,i=(f="maxWait"in n)?sx(px(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:v(cx())},y}function dx(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function px(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||function(e){return!!e&&"object"==typeof e}(t)&&"[object Symbol]"==ux.call(t))return NaN;var t;if(dx(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=dx(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(QE,"");var r=tx.test(e);return r||nx.test(e)?rx(e.slice(2),r?2:8):ex.test(e)?NaN:+e}var hx=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return dx(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),fx(e,t,{leading:r,maxWait:t,trailing:o})};const gx={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 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function vx(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const yx=Array.isArray;function mx(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function bx(e){return void 0===e}function wx(e){return void 0!==e}const Ex=vx("",{},[],void 0,void 0);function xx(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function Cx(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const Sx=["create","update","remove","destroy","pre","post"];function Dx(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=gx;for(const c of Sx)for(const t of e){const e=t[c];void 0!==e&&n[c].push(e)}function o(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function i(e,t){var o,a;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;wx(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)bx(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=wx(s)&&wx(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](Ex,e);if(yx(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,i(e,t))}else mx(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;wx(v)&&(null===(a=v.create)||void 0===a||a.call(v,Ex,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function a(e,t,n,o,a,u){for(;o<=a;++o){const a=n[o];null!=a&&r.insertBefore(e,i(a,u),t)}}function u(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&u(n)}}}function s(e,t,i,a){for(var s,l;i<=a;++i){let a,c;const f=t[i];if(null!=f)if(wx(f.sel)){u(f),a=n.remove.length+1,c=o(f.elm,a);for(let t=0;t<n.remove.length;++t)n.remove[t](f,c);const e=null===(l=null===(s=null==f?void 0:f.data)||void 0===s?void 0:s.hook)||void 0===l?void 0:l.remove;wx(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function l(e,t,o){var u,c,f,d,p;const h=null===(u=t.data)||void 0===u?void 0:u.hook;null===(c=null==h?void 0:h.prepatch)||void 0===c||c.call(h,e,t);const g=t.elm=e.elm,v=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}bx(t.text)?wx(v)&&wx(y)?v!==y&&function(e,t,n,o){let u,c,f,d,p=0,h=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,b=n[0],w=n[m];for(;p<=g&&h<=m;)null==v?v=t[++p]:null==y?y=t[--g]:null==b?b=n[++h]:null==w?w=n[--m]:xx(v,b)?(l(v,b,o),v=t[++p],b=n[++h]):xx(y,w)?(l(y,w,o),y=t[--g],w=n[--m]):xx(v,w)?(l(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):xx(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===u&&(u=Cx(t,p,g)),c=u[b.key],bx(c)?r.insertBefore(e,i(b,o),v.elm):(f=t[c],f.sel!==b.sel?r.insertBefore(e,i(b,o),v.elm):(l(f,b,o),t[c]=void 0,r.insertBefore(e,f.elm,v.elm))),b=n[++h]);(p<=g||h<=m)&&(p>g?(d=null==n[m+1]?null:n[m+1].elm,a(e,d,n,h,m,o)):s(e,t,p,g))}(g,v,y,o):wx(y)?(wx(e.text)&&r.setTextContent(g,""),a(g,null,y,0,y.length-1,o)):wx(v)?s(g,v,0,v.length-1):wx(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(wx(v)&&s(g,v,0,v.length-1),r.setTextContent(g,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let o,a,u;const c=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(void 0!==e.sel||(e=function(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return vx(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),xx(e,t)?l(e,t,c):(a=e.elm,u=r.parentNode(a),i(t,c),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(a)),s(u,[e],0,0))),o=0;o<c.length;++o)c[o].data.hook.insert(c[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}function Ax(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let r=0;r<t.length;++r){const e=t[r].data;void 0!==e&&Ax(e,t[r].children,t[r].sel)}}function Ox(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),yx(n)?r=n:mx(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(yx(t)?r=t:mx(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)mx(r[i])&&(r[i]=vx(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Ax(a,r,e),vx(e,a,r,o,void 0)}function _x(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const kx={create:_x,update:_x};function Bx(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const Fx={create:Bx,update:Bx},Tx=/[A-Z]/g;function Px(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(Tx,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(Tx,"-$&").toLowerCase(),i[r]))}const jx={create:Px,update:Px};function Nx(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)Nx(e[r],t,n)}function Ix(e,t){const n=e.type,r=t.data.on;r&&r[n]&&Nx(r[n],t,e)}function Lx(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){Ix(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const Rx={create:Lx,update:Lx,destroy:Lx};function Mx(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const zx={create:Mx,update:Mx},$x="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Hx=!1;function Vx(e,t,n){var r;r=function(){e[t]=n},$x((function(){$x(r)}))}function Ux(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||Vx(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const Wx={pre:function(){Hx=!1},create:Ux,update:Ux,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.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;Hx||(e.elm.offsetLeft,Hx=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function Gx(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?Gx(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(vx(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function qx(e,t,...n){const r=Gx(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Ox(e,t,r[0].text):Ox(e,t,r)}qx||(qx={});var Kx,Yx=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xx=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zx="\\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",Jx="["+Zx+"]",Qx="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",eC="\\d+",tC="[a-z\\xdf-\\xf6\\xf8-\\xff]",nC="[^\\ud800-\\udfff"+Zx+eC+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",rC="\\ud83c[\\udffb-\\udfff]",oC="[^\\ud800-\\udfff]",iC="(?:\\ud83c[\\udde6-\\uddff]){2}",aC="[\\ud800-\\udbff][\\udc00-\\udfff]",uC="[A-Z\\xc0-\\xd6\\xd8-\\xde]",sC="(?:"+tC+"|"+nC+")",lC="(?:"+uC+"|"+nC+")",cC="(?:"+Qx+"|"+rC+")?",fC="[\\ufe0e\\ufe0f]?"+cC+"(?:\\u200d(?:"+[oC,iC,aC].join("|")+")[\\ufe0e\\ufe0f]?"+cC+")*",dC="(?:"+["[\\u2700-\\u27bf]",iC,aC].join("|")+")"+fC,pC="(?:"+[oC+Qx+"?",Qx,iC,aC,"[\\ud800-\\udfff]"].join("|")+")",hC=RegExp("[']","g"),gC=RegExp(Qx,"g"),vC=RegExp(rC+"(?="+rC+")|"+pC+fC,"g"),yC=RegExp([uC+"?"+tC+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[Jx,uC,"$"].join("|")+")",lC+"+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[Jx,uC+sC,"$"].join("|")+")",uC+"?"+sC+"+(?:['](?:d|ll|m|re|s|t|ve))?",uC+"+(?:['](?:D|LL|M|RE|S|T|VE))?",eC,dC].join("|"),"g"),mC=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),bC=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wC="object"==typeof Ya&&Ya&&Ya.Object===Object&&Ya,EC="object"==typeof self&&self&&self.Object===Object&&self,xC=wC||EC||Function("return this")(),CC=(Kx={"À":"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 null==Kx?void 0:Kx[e]});function SC(e){return mC.test(e)}var DC=Object.prototype.toString,AC=xC.Symbol,OC=AC?AC.prototype:void 0,_C=OC?OC.toString:void 0;function kC(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||function(e){return!!e&&"object"==typeof e}(t)&&"[object Symbol]"==DC.call(t))return _C?_C.call(e):"";var t,n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}(e)}for(var BC,FC=(BC=function(e,t,n){return t=t.toLowerCase(),e+(n?TC(kC(t).toLowerCase()):t)},function(e){return function(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)n=t(n,e[r],r,e);return n}(function(e,t){return e=kC(e),void 0===t?(n=e,bC.test(n)?function(e){return e.match(yC)||[]}(e):function(e){return e.match(Yx)||[]}(e)):e.match(t)||[];var n}((t=e,(t=kC(t))&&t.replace(Xx,CC).replace(gC,"")).replace(hC,"")),BC,"");var t}),TC=function(e){var t=SC(e=kC(e))?function(e){return SC(e)?e.match(vC)||[]:(t=e,t.split(""));var t}(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n=void 0===n?r:n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r},PC=FC,jC="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),NC={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},IC={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:jC?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},LC={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},RC=1;RC<20;RC++)LC["f"+RC]=111+RC;function MC(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in NC)r[NC[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=$C(d),g=NC[h];if(d.length>1&&!g&&!IC[d]&&!LC[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=zC(d)),g&&(r[g]=!p||null)}}catch(v){s=!0,l=v}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)}))};return null==n?o:o(n)}function zC(e){return e=$C(e),LC[e]||e.toUpperCase().charCodeAt(0)}function $C(e){return e=e.toLowerCase(),IC[e]||e}var HC=MC,VC=function(e,t){return MC(e,{byKey:!0},t)},UC=/^\s+|\s+$/g,WC=/^[-+]0x[0-9a-f]+$/i,GC=/^0b[01]+$/i,qC=/^0o[0-7]+$/i,KC=parseInt,YC="object"==typeof Ya&&Ya&&Ya.Object===Object&&Ya,XC="object"==typeof self&&self&&self.Object===Object&&self,ZC=YC||XC||Function("return this")(),JC=Object.prototype.toString,QC=Math.max,eS=Math.min,tS=function(){return ZC.Date.now()};function nS(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function rS(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||function(e){return!!e&&"object"==typeof e}(t)&&"[object Symbol]"==JC.call(t))return NaN;var t;if(nS(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=nS(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(UC,"");var r=GC.test(e);return r||qC.test(e)?KC(e.slice(2),r?2:8):WC.test(e)?NaN:+e}var oS,iS=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e,n,r=tS();if(h(r))return v(r);u=setTimeout(g,(n=t-((e=r)-s),f?eS(n,i-(e-l)):n))}function v(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=tS(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(g,t),c?p(e):a}(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=rS(t)||0,nS(n)&&(c=!!n.leading,i=(f="maxWait"in n)?QC(rS(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:v(tS())},y},aS=Xa((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",h="[object Set]",g="[object String]",v="[object Symbol]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",x="[object Int8Array]",C="[object Int16Array]",S="[object Int32Array]",D="[object Uint8Array]",A="[object Uint8ClampedArray]",O="[object Uint16Array]",_="[object Uint32Array]",k=/\w*$/,B=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,T={};T[o]=T["[object Array]"]=T[m]=T[b]=T[i]=T[a]=T[w]=T[E]=T[x]=T[C]=T[S]=T[l]=T[c]=T[f]=T[p]=T[h]=T[g]=T[v]=T[D]=T[A]=T[O]=T[_]=!0,T["[object Error]"]=T[u]=T[y]=!1;var P="object"==typeof Ya&&Ya&&Ya.Object===Object&&Ya,j="object"==typeof self&&self&&self.Object===Object&&self,N=P||j||Function("return this")(),I=t&&!t.nodeType&&t,L=I&&e&&!e.nodeType&&e,R=L&&L.exports===I;function M(e,t){return e.set(t[0],t[1]),e}function z(e,t){return e.add(t),e}function $(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function U(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var G=Array.prototype,q=Function.prototype,K=Object.prototype,Y=N["__core-js_shared__"],X=function(){var e=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Z=q.toString,J=K.hasOwnProperty,Q=K.toString,ee=RegExp("^"+Z.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=R?N.Buffer:void 0,ne=N.Symbol,re=N.Uint8Array,oe=U(Object.getPrototypeOf,Object),ie=Object.create,ae=K.propertyIsEnumerable,ue=G.splice,se=Object.getOwnPropertySymbols,le=te?te.isBuffer:void 0,ce=U(Object.keys,Object),fe=je(N,"DataView"),de=je(N,"Map"),pe=je(N,"Promise"),he=je(N,"Set"),ge=je(N,"WeakMap"),ve=je(Object,"create"),ye=Me(fe),me=Me(de),be=Me(pe),we=Me(he),Ee=Me(ge),xe=ne?ne.prototype:void 0,Ce=xe?xe.valueOf:void 0;function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function De(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){this.__data__=new De(e)}function _e(e,t,n){var r=e[t];J.call(e,t)&&ze(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function ke(e,t){for(var n=e.length;n--;)if(ze(e[n][0],t))return n;return-1}function Be(e,t,n,r,d,y,B){var F;if(r&&(F=y?r(e,d,y,B):r(e)),void 0!==F)return F;if(!We(e))return e;var P,j,N,I=$e(e);if(I){if(j=(P=e).length,N=P.constructor(j),j&&"string"==typeof P[0]&&J.call(P,"index")&&(N.index=P.index,N.input=P.input),F=N,!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,F)}else{var L=Ie(e),R=L==u||L==s;if(Ve(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(L==f||L==o||R&&!y){if(H(e))return y?e:{};if(F=function(e){return"function"!=typeof e.constructor||Re(e)?{}:We(t=oe(e))?ie(t):{};var t}(R?{}:e),!t)return function(e,t){return Te(e,Ne(e),t)}(e,function(e,t){return e&&Te(t,Ge(t),e)}(F,e))}else{if(!T[L])return y?e:{};F=function(e,t,n,r){var o,u,s=e.constructor;switch(t){case m:return Fe(e);case i:case a:return new s(+e);case b:return o=e,u=r?Fe(o.buffer):o.buffer,new o.constructor(u,o.byteOffset,o.byteLength);case w:case E:case x:case C:case S:case D:case A:case O:case _:return function(e,t){var n=t?Fe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return $(t?n(V(e),!0):V(e),M,new e.constructor)}(e,r,n);case c:case g:return new s(e);case p:return function(e){var t=new e.constructor(e.source,k.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,n){return $(t?n(W(e),!0):W(e),z,new e.constructor)}(e,r,n);case v:return function(e){return Ce?Object(Ce.call(e)):{}}(e)}}(e,L,Be,t)}}B||(B=new Oe);var U=B.get(e);if(U)return U;if(B.set(e,F),!I)var G=n?function(e){return function(e,t,n){var r=t(e);return $e(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ge,Ne)}(e):Ge(e);return function(o){for(var i=-1,a=o?o.length:0;++i<a&&!1!==(u=o[i],s=i,G&&(u=e[s=u]),void _e(F,s,Be(u,t,n,r,s,e,B))););var u,s}(G||e),F}function Fe(e){var t=new e.constructor(e.byteLength);return new re(t).set(new re(e)),t}function Te(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o];_e(n,a,e[a])}return n}function Pe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function je(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!We(e)||(t=e,X&&X in t))&&(Ue(e)||H(e)?ee:B).test(Me(e));var t}(o)?o:void 0}Se.prototype.clear=function(){this.__data__=ve?ve(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(ve){var r=t[e];return r===n?void 0:r}return J.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:J.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?n:t,this},De.prototype.clear=function(){this.__data__=[]},De.prototype.delete=function(e){var t=this.__data__,n=ke(t,e);return!(n<0||(n==t.length-1?t.pop():ue.call(t,n,1),0))},De.prototype.get=function(e){var t=this.__data__,n=ke(t,e);return n<0?void 0:t[n][1]},De.prototype.has=function(e){return ke(this.__data__,e)>-1},De.prototype.set=function(e,t){var n=this.__data__,r=ke(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new Se,map:new(de||De),string:new Se}},Ae.prototype.delete=function(e){return Pe(this,e).delete(e)},Ae.prototype.get=function(e){return Pe(this,e).get(e)},Ae.prototype.has=function(e){return Pe(this,e).has(e)},Ae.prototype.set=function(e,t){return Pe(this,e).set(e,t),this},Oe.prototype.clear=function(){this.__data__=new De},Oe.prototype.delete=function(e){return this.__data__.delete(e)},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof De){var r=n.__data__;if(!de||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ae(r)}return n.set(e,t),this};var Ne=se?U(se,Object):function(){return[]},Ie=function(e){return Q.call(e)};function Le(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||F.test(e))&&e>-1&&e%1==0&&e<t}function Re(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||K)}function Me(e){if(null!=e){try{return Z.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}(fe&&Ie(new fe(new ArrayBuffer(1)))!=b||de&&Ie(new de)!=l||pe&&Ie(pe.resolve())!=d||he&&Ie(new he)!=h||ge&&Ie(new ge)!=y)&&(Ie=function(e){var t=Q.call(e),n=t==f?e.constructor:void 0,r=n?Me(n):void 0;if(r)switch(r){case ye:return b;case me:return l;case be:return d;case we:return h;case Ee:return y}return t});var $e=Array.isArray;function He(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=r)&&!Ue(e);var t}var Ve=le||function(){return!1};function Ue(e){var t=We(e)?Q.call(e):"";return t==u||t==s}function We(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ge(e){return He(e)?function(e){var t,n,r=$e(e)||function(e){return!!e&&"object"==typeof e}(n=t=e)&&He(n)&&J.call(t,"callee")&&(!ae.call(t,"callee")||Q.call(t)==o)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],i=r.length,a=!!i;for(var u in e)!J.call(e,u)||a&&("length"==u||Le(u,i))||r.push(u);return r}(e):function(e){if(!Re(e))return ce(e);var t=[];for(var n in Object(e))J.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Be(e,!0,!0)}}));function uS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var sS=0;function lS(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r}function cS(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const o of Object.keys(t))if("_"!==o){let e=t[o];"string"==typeof e&&(e=n[Symbol.replace](e,"$$$$")),r=lS(r,new RegExp(`%\\{${o}\\}`,"g"),e)}return r}var fS=(oS=function(e){return"__private_"+sS+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,oS,{value:dS}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(uS(this,oS)[oS],this):uS(this,oS)[oS](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(n=this.locale.strings,r=e,!Object.prototype.hasOwnProperty.call(n,r))throw new Error(`missing string: ${e}`);var n,r;const o=this.locale.strings[e];if("object"==typeof o){if(t&&void 0!==t.smart_count)return cS(o[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 cS(o,t)}});function dS(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var pS=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e},hS={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}},gS=function(e){if("number"!=typeof e||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 o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function vS(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}vS.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var yS=/[\/\+\.]/,mS=0;var bS=function(e){return"__private_"+mS+++"_"+e}("publish");class wS{constructor(){Object.defineProperty(this,bS,{value:ES}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,bS)[bS](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function ES(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}wS.VERSION="2.0.3";var xS=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},CS={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 SS(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>{return t+=`-${n=e,n.charCodeAt(0).toString(32)}`,"/";var n}))+t}var DS=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};var AS={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}}},OS={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}"}}},_S=hS;let kS,BS;function FS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var TS=0;function PS(e){return"__private_"+TS+++"_"+e}const{nanoid:jS}=_S,{justErrorsLogger:NS,debugLogger:IS}=AS;class LS extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class RS extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var MS=PS("plugins"),zS=PS("storeUnsubscribe"),$S=PS("emitter"),HS=PS("preProcessors"),VS=PS("uploaders"),US=PS("postProcessors"),WS=PS("checkRestrictions"),GS=PS("checkMinNumberOfFiles"),qS=PS("checkRequiredMetaFieldsOnFile"),KS=PS("checkRequiredMetaFields"),YS=PS("showOrLogErrorAndThrow"),XS=PS("assertNewUploadAllowed"),ZS=PS("checkAndCreateFileStateObject"),JS=PS("startIfAutoProceed"),QS=PS("addListeners"),eD=PS("updateOnlineStatus"),tD=PS("createUpload"),nD=PS("getUpload"),rD=PS("removeUpload"),oD=PS("runUpload");kS=Symbol.for("uppy test: getPlugins"),BS=Symbol.for("uppy test: createUpload");class iD{constructor(e){Object.defineProperty(this,oD,{value:mD}),Object.defineProperty(this,rD,{value:yD}),Object.defineProperty(this,nD,{value:vD}),Object.defineProperty(this,tD,{value:gD}),Object.defineProperty(this,QS,{value:hD}),Object.defineProperty(this,JS,{value:pD}),Object.defineProperty(this,ZS,{value:dD}),Object.defineProperty(this,XS,{value:fD}),Object.defineProperty(this,YS,{value:cD}),Object.defineProperty(this,KS,{value:lD}),Object.defineProperty(this,qS,{value:sD}),Object.defineProperty(this,GS,{value:uD}),Object.defineProperty(this,WS,{value:aD}),Object.defineProperty(this,MS,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,zS,{writable:!0,value:void 0}),Object.defineProperty(this,$S,{writable:!0,value:pS()}),Object.defineProperty(this,HS,{writable:!0,value:new Set}),Object.defineProperty(this,VS,{writable:!0,value:new Set}),Object.defineProperty(this,US,{writable:!0,value:new Set}),Object.defineProperty(this,eD,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=OS;const t={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:e=>e,onBeforeUpload:e=>e,store:new wS,logger:NS,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.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"):e&&e.debug&&(this.opts.logger=IS),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=hx(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:DS(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),FS(this,zS)[zS]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),FS(this,QS)[QS]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];FS(this,$S)[$S].emit(e,...n)}on(e,t){return FS(this,$S)[$S].on(e,t),this}once(e,t){return FS(this,$S)[$S].once(e,t),this}off(e,t){return FS(this,$S)[$S].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Cant set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new fS([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){FS(this,HS)[HS].add(e)}removePreProcessor(e){return FS(this,HS)[HS].delete(e)}addPostProcessor(e){FS(this,US)[US].add(e)}removePostProcessor(e){return FS(this,US)[US].delete(e)}addUploader(e){FS(this,VS)[VS].add(e)}removeUploader(e){return FS(this,VS)[VS].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),s=r.filter((e=>e.isPaused)),l=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return FS(this,WS)[WS](e,t),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){FS(this,XS)[XS](e);const{files:t}=this.getState();let n=FS(this,ZS)[ZS](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),FS(this,JS)[JS](),n.id}addFiles(e){FS(this,XS)[XS]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=FS(this,ZS)[ZS](t,e[i]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(o){o.isRestriction||r.push(o)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&FS(this,JS)[JS](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach((e=>{this.emit("file-removed",a[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=FS(this,tD)[tD](t,{forceAllowNewUpload:!0});return FS(this,oD)[oD](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=FS(this,tD)[tD]([e],{forceAllowNewUpload:!0});return FS(this,oD)[oD](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||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(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in FS(this,MS)[MS]?FS(this,MS)[MS][n.type].push(n):FS(this,MS)[MS][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(FS(this,MS)[MS])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[kS](e){return FS(this,MS)[MS][e]}iteratePlugins(e){Object.values(FS(this,MS)[MS]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=FS(this,MS)[MS][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),FS(this,zS)[zS](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",FS(this,eD)[eD]),window.removeEventListener("offline",FS(this,eD)[eD]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?FS(this,oD)[oD](e):(FS(this,rD)[rD](e),Promise.reject(new Error("Nonexistent upload")))}[BS](){return FS(this,tD)[tD](...arguments)}addResultData(e,t){if(!FS(this,nD)[nD](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=FS(this,MS)[MS].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{FS(this,GS)[GS](t),FS(this,KS)[KS](t)})).catch((e=>{FS(this,YS)[YS](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=FS(this,tD)[tD](r);return FS(this,oD)[oD](o)})).catch((e=>{FS(this,YS)[YS](e,{showInformer:!1})})))}}function aD(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new LS(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((t=>t.indexOf("/")>-1?!!e.type&&function(e,t){function n(t){var n=function(e,t){var n=new vS(e,yS||/[\/\.]/);return void 0!==t?n.match(t):n}(t,e);return n&&n.length>=2}return t?n(t.split(";")[0]):n}(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new LS(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new LS(this.i18n("exceedsSize",{size:gS(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new LS(this.i18n("exceedsSize",{size:gS(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new LS(this.i18n("inferiorSize",{size:gS(r)}))}function uD(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new LS(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function sD(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new LS(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),FS(this,YS)[YS](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function lD(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return FS(this,qS)[qS](t)}));if(t.length)throw new RS(t,`${this.i18n("missingRequiredMetaField")}`)}function cD(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function fD(e){const{allowNewUpload:t}=this.getState();!1===t&&FS(this,YS)[YS](new LS(this.i18n("noMoreFilesAllowed")),{file:e})}function dD(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=xS(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in CS?CS[n]:"application/octet-stream"}(t),r=(u=n,(s=t).name?s.name:"image"===u.split("/")[0]?`${u.split("/")[0]}.${u.split("/")[1]}`:"noname"),o=xS(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${SS(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${SS(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});var u,s;if(this.checkIfFileAlreadyExists(a)){const e=new LS(this.i18n("noDuplicates",{fileName:r}));FS(this,YS)[YS](e,{file:t})}const l=t.meta||{};l.name=r,l.type=n;const c=Number.isFinite(t.data.size)?t.data.size:null;let f={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...l},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:c,uploadComplete:!1,uploadStarted:null},size:c,isRemote:i,remote:t.remote||"",preview:t.preview};const d=this.opts.onBeforeFileAdded(f,e);!1===d?FS(this,YS)[YS](new LS("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof d&&null!==d&&(f=d);try{const t=Object.keys(e).map((t=>e[t]));FS(this,WS)[WS](f,t)}catch(u){FS(this,YS)[YS](u,{file:f})}return f}function pD(){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 hD(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),FS(this,YS)[YS](e,{throwErr:!1})}else FS(this,YS)[YS](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:FS(this,US)[US].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&FS(this,qS)[qS](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",FS(this,eD)[eD]),window.addEventListener("offline",FS(this,eD)[eD]),setTimeout(FS(this,eD)[eD],3e3))}function gD(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=jS();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function vD(e){const{currentUploads:t}=this.getState();return t[e]}function yD(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function mD(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...FS(this,HS)[HS],...FS(this,VS)[VS],...FS(this,US)[US]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),FS(this,rD)[rD](e),a}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),FS(this,rD)[rD](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}iD.VERSION="2.1.3";var bD=iD,wD=Xa((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return v(e,u,o,i,null)}function v(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function E(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!x.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(x)}function x(){for(var e;x.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,B(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),F(n,o),o.__e!=i&&w(o)))}))}function C(e,t,n,r,o,i,a,u,s,l){var d,p,h,g,m,w,E,x=r&&r.__k||f,C=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(y,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=x[d])||h&&g.key==h.key&&g.type===h.type)x[d]=void 0;else for(p=0;p<C;p++){if((h=x[p])&&g.key==h.key&&g.type===h.type){x[p]=void 0;break}h=null}B(e,g,h=h||c,o,i,a,u,s,l),m=g.__e,(p=g.ref)&&h.ref!=p&&(E||(E=[]),h.ref&&E.push(h.ref,null,g),E.push(p,g.__c||m,g)),null!=m?(null==w&&(w=m),"function"==typeof g.type&&g.__k===h.__k?g.__d=s=S(g,s,e):s=D(e,g,h,x,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=C;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=b(r,d+1)),P(x[d],x[d]));if(E)for(d=0;d<E.length;d++)T(E[d],E[++d],E[++d])}function S(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?S(r,t,n):D(n,r,r,o,r.__e,t));return t}function D(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?k:_,i):e.removeEventListener(t,i?k:_,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function _(e){this.l[e.type+!1](r.event?r.event(e):e)}function k(e){this.l[e.type+!0](r.event?r.event(e):e)}function B(e,t,o,i,a,u,s,l,f){var d,g,v,w,E,x,S,D,A,_,k,B=t.type;if(void 0!==t.constructor)return null;null!=o.__h&&(f=o.__h,l=t.__e=o.__e,t.__h=null,u=[l]),(d=r.__b)&&d(t);try{e:if("function"==typeof B){if(D=t.props,A=(d=B.contextType)&&i[d.__c],_=d?A?A.props.value:d.__:i,o.__c?S=(g=t.__c=o.__c).__=g.__E:("prototype"in B&&B.prototype.render?t.__c=g=new B(D,_):(t.__c=g=new m(D,_),g.constructor=B,g.render=j),A&&A.sub(g),g.props=D,g.state||(g.state={}),g.context=_,g.__n=i,v=g.__d=!0,g.__h=[]),null==g.__s&&(g.__s=g.state),null!=B.getDerivedStateFromProps&&(g.__s==g.state&&(g.__s=p({},g.__s)),p(g.__s,B.getDerivedStateFromProps(D,g.__s))),w=g.props,E=g.state,v)null==B.getDerivedStateFromProps&&null!=g.componentWillMount&&g.componentWillMount(),null!=g.componentDidMount&&g.__h.push(g.componentDidMount);else{if(null==B.getDerivedStateFromProps&&D!==w&&null!=g.componentWillReceiveProps&&g.componentWillReceiveProps(D,_),!g.__e&&null!=g.shouldComponentUpdate&&!1===g.shouldComponentUpdate(D,g.__s,_)||t.__v===o.__v){g.props=D,g.state=g.__s,t.__v!==o.__v&&(g.__d=!1),g.__v=t,t.__e=o.__e,t.__k=o.__k,t.__k.forEach((function(e){e&&(e.__=t)})),g.__h.length&&s.push(g);break e}null!=g.componentWillUpdate&&g.componentWillUpdate(D,g.__s,_),null!=g.componentDidUpdate&&g.__h.push((function(){g.componentDidUpdate(w,E,x)}))}g.context=_,g.props=D,g.state=g.__s,(d=r.__r)&&d(t),g.__d=!1,g.__v=t,g.__P=e,d=g.render(g.props,g.state,g.context),g.state=g.__s,null!=g.getChildContext&&(i=p(p({},i),g.getChildContext())),v||null==g.getSnapshotBeforeUpdate||(x=g.getSnapshotBeforeUpdate(w,E)),k=null!=d&&d.type===y&&null==d.key?d.props.children:d,C(e,Array.isArray(k)?k:[k],t,o,i,a,u,s,l,f),g.base=t.__e,t.__h=null,g.__h.length&&s.push(g),S&&(g.__E=g.__=null),g.__e=!1}else null==u&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=function(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,g=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,s=!1}if(null===v)p===g||s&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}(e,g,p,i,s),d)t.__k=[];else if(y=t.props.children,C(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==v,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in g&&void 0!==(y=g.value)&&(y!==p.value||y!==e.value||"progress"===v&&!y)&&O(e,"value",y,p.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&O(e,"checked",y,p.checked,!1))}return e}(o.__e,t,o,i,a,u,s,f);(d=r.diffed)&&d(t)}catch(F){t.__v=null,(f||null!=u)&&(t.__e=l,t.__h=!!f,u[u.indexOf(l)]=null),r.__e(F,t,o)}}function F(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){r.__e(n,t.__v)}}))}function T(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(o){r.__e(o,n)}}function P(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||T(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(a){r.__e(a,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&P(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function j(e,t,n){return this.constructor(e,n)}function N(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],B(t,e=(!i&&o||t).__k=g(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),F(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(i){e=i}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),E(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),v(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(E)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){N(t,n,e)},t.isValidElement=i,t.options=r,t.render=N,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),ED=class{constructor(e,t){void 0===t&&(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 fS([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 xD(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var CD=0;const{render:SD}=wD;var DD=function(e){return"__private_"+CD+++"_"+e}("updateUI");class AD extends ED{constructor(){super(...arguments),Object.defineProperty(this,DD,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return xD(this,DD)[DD]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(SD(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),SD(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof AD)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" 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(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=xD(this,DD))[DD])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var OD=AD;const{debugLogger:_D}=AS;var kD=bD,BD=bD,FD=OD,TD=ED,PD=_D;kD.Uppy=BD,kD.UIPlugin=FD,kD.BasePlugin=TD,kD.debugLogger=PD;class jD extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var ND=jD,ID=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new ND(e)}))};class LD extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var RD,MD,zD,$D,HD,VD=LD;function UD(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var WD=0;function GD(e){return"__private_"+WD+++"_"+e}async function qD(e){if(401===e.status)throw new VD;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var KD=(MD=GD("getPostResponseFunc"),zD=GD("getUrl"),$D=GD("errorHandler"),HD=RD=class e{constructor(e,t){Object.defineProperty(this,$D,{value:XD}),Object.defineProperty(this,zD,{value:YD}),Object.defineProperty(this,MD,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(UD(this,zD)[zD](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>ID(UD(this,zD)[zD](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(UD(this,MD)[MD](t)).then(qD).catch(UD(this,$D)[$D]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>ID(UD(this,zD)[zD](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(UD(this,MD)[MD](n)).then(qD).catch(UD(this,$D)[$D](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>ID(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(UD(this,MD)[MD](n)).then(qD).catch(UD(this,$D)[$D](r,e))}},RD.VERSION="2.0.4",RD.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${RD.VERSION}`},HD);function YD(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function XD(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${UD(this,zD)[zD](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var ZD,JD,QD,eA,tA,nA={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()}))};let rA,oA;function iA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var aA=0;function uA(e){return"__private_"+aA+++"_"+e}var sA,lA,cA=(ZD=uA("queued"),JD=uA("emitter"),QD=uA("isOpen"),eA=uA("socket"),tA=uA("handleMessage"),rA=Symbol.for("uppy test: getSocket"),oA=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,ZD,{writable:!0,value:[]}),Object.defineProperty(this,JD,{writable:!0,value:pS()}),Object.defineProperty(this,QD,{writable:!0,value:!1}),Object.defineProperty(this,eA,{writable:!0,value:void 0}),Object.defineProperty(this,tA,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(t){}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return iA(this,QD)[QD]}[rA](){return iA(this,eA)[eA]}[oA](){return iA(this,ZD)[ZD]}open(){iA(this,eA)[eA]=new WebSocket(this.opts.target),iA(this,eA)[eA].onopen=()=>{for(iA(this,QD)[QD]=!0;iA(this,ZD)[ZD].length>0&&iA(this,QD)[QD];){const e=iA(this,ZD)[ZD].shift();this.send(e.action,e.payload)}},iA(this,eA)[eA].onclose=()=>{iA(this,QD)[QD]=!1},iA(this,eA)[eA].onmessage=iA(this,tA)[tA]}close(){var e;null==(e=iA(this,eA)[eA])||e.close()}send(e,t){iA(this,QD)[QD]?iA(this,eA)[eA].send(JSON.stringify({action:e,payload:t})):iA(this,ZD)[ZD].push({action:e,payload:t})}on(e,t){iA(this,JD)[JD].on(e,t)}emit(e,t){iA(this,JD)[JD].emit(e,t)}once(e,t){iA(this,JD)[JD].once(e,t)}}),fA={RequestClient:KD,Provider:class extends KD{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(()=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),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?401!==e.status: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 void 0===e&&(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 n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}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||nA}},Socket:cA},dA=hx((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function pA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var hA=0;function gA(e){return"__private_"+hA+++"_"+e}var vA=(sA=gA("emitter"),lA=gA("events"),class{constructor(e){Object.defineProperty(this,sA,{writable:!0,value:void 0}),Object.defineProperty(this,lA,{writable:!0,value:[]}),pA(this,sA)[sA]=e}on(e,t){return pA(this,lA)[lA].push([e,t]),pA(this,sA)[sA].on(e,t)}remove(){for(const[e,t]of pA(this,lA)[lA].splice(0))pA(this,sA)[sA].off(e,t)}});function yA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mA=0;function bA(e){return"__private_"+mA+++"_"+e}var wA=bA("aliveTimer"),EA=bA("isDone"),xA=bA("onTimedOut"),CA=bA("timeout"),SA=class{constructor(e,t){Object.defineProperty(this,wA,{writable:!0,value:void 0}),Object.defineProperty(this,EA,{writable:!0,value:!1}),Object.defineProperty(this,xA,{writable:!0,value:void 0}),Object.defineProperty(this,CA,{writable:!0,value:void 0}),yA(this,CA)[CA]=e,yA(this,xA)[xA]=t}progress(){yA(this,EA)[EA]||yA(this,CA)[CA]>0&&(clearTimeout(yA(this,wA)[wA]),yA(this,wA)[wA]=setTimeout(yA(this,xA)[xA],yA(this,CA)[CA]))}done(){yA(this,EA)[EA]||(clearTimeout(yA(this,wA)[wA]),yA(this,wA)[wA]=null,yA(this,EA)[EA]=!0)}};function DA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var AA=0;function OA(e){return"__private_"+AA+++"_"+e}var _A=OA("activeRequests"),kA=OA("queuedHandlers"),BA=OA("call"),FA=OA("queueNext"),TA=OA("next"),PA=OA("queue"),jA=OA("dequeue");function NA(e){DA(this,_A)[_A]+=1;let t,n=!1;try{t=e()}catch(r){throw DA(this,_A)[_A]-=1,r}return{abort:()=>{n||(n=!0,DA(this,_A)[_A]-=1,t(),DA(this,FA)[FA]())},done:()=>{n||(n=!0,DA(this,_A)[_A]-=1,DA(this,FA)[FA]())}}}function IA(){queueMicrotask((()=>DA(this,TA)[TA]()))}function LA(){if(DA(this,_A)[_A]>=this.limit)return;if(0===DA(this,kA)[kA].length)return;const e=DA(this,kA)[kA].shift(),t=DA(this,BA)[BA](e.fn);e.abort=t.abort,e.done=t.done}function RA(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{DA(this,jA)[jA](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=DA(this,kA)[kA].findIndex((e=>n.priority>e.priority));return-1===r?DA(this,kA)[kA].push(n):DA(this,kA)[kA].splice(r,0,n),n}function MA(e){const t=DA(this,kA)[kA].indexOf(e);-1!==t&&DA(this,kA)[kA].splice(t,1)}var zA,$A,HA={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,jA,{value:MA}),Object.defineProperty(this,PA,{value:RA}),Object.defineProperty(this,TA,{value:LA}),Object.defineProperty(this,FA,{value:IA}),Object.defineProperty(this,BA,{value:NA}),Object.defineProperty(this,_A,{writable:!0,value:0}),Object.defineProperty(this,kA,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return DA(this,_A)[_A]<this.limit?DA(this,BA)[BA](e):DA(this,PA)[PA](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(u){n=Promise.reject(u)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=new Error("Cancelled")}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},VA=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},UA={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:WA}=_S,{Provider:GA,RequestClient:qA,Socket:KA}=fA,{RateLimitedQueue:YA,internalRateLimitedQueue:XA}=HA;function ZA(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),VA(e)?(n=new ND(n,e),n):(n.request=e,n)}function JA(e){return e.data.slice(0,e.data.size,e.meta.type)}var QA=($A=zA=class extends ED{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=UA;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(t){let n={};try{n=JSON.parse(t)}catch(r){e.log(r)}return n},getResponseError(e,t){let n=new Error("Upload error");return VA(t)&&(n=new ND(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),XA in this.opts?this.requests=this.opts[XA]:this.requests=new YA(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"function"==typeof n?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((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=JA(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((e=>{const t=this.getOptions(e),r=JA(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new vA(this.uppy);const a=new SA(r.timeout,(()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),u=WA();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const l=r.getResponseData(i.responseText,i),c=ZA(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=ZA(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{s.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{s.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]})),new(e.remote.providerOptions.provider?GA:qA)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new KA({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new vA(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),this.onRetryAll(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),u.on("progress",(t=>dA(this,t,e))),u.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),u.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const s=this.requests.run((()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new SA(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(t=>{s.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,l(o),n(o)})),u.addEventListener("error",(()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)})),this.uppy.on("cancel-all",(()=>{s.done(),u.abort()})),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{u.setRequestHeader(e,this.opts.headers[e])})),u.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(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(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[XA]||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((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Cant upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)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)}},zA.VERSION="2.0.6",$A),eO="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function tO(e){var t={exports:{}};return e(t,t.exports),t.exports}var nO,rO,oO=function(e){return e&&e.Math==Math&&e},iO=oO("object"==typeof globalThis&&globalThis)||oO("object"==typeof window&&window)||oO("object"==typeof self&&self)||oO("object"==typeof eO&&eO)||function(){return this}()||Function("return this")(),aO=Object.defineProperty,uO=function(e,t){try{aO(iO,e,{value:t,configurable:!0,writable:!0})}catch(Oz){iO[e]=t}return t},sO=iO["__core-js_shared__"]||uO("__core-js_shared__",{}),lO=tO((function(e){(e.exports=function(e,t){return sO[e]||(sO[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),cO=Function.prototype,fO=cO.bind,dO=cO.call,pO=fO&&fO.bind(dO),hO=fO?function(e){return e&&pO(dO,e)}:function(e){return e&&function(){return dO.apply(e,arguments)}},gO=iO.TypeError,vO=function(e){if(null==e)throw gO("Can't call method on "+e);return e},yO=iO.Object,mO=function(e){return yO(vO(e))},bO=hO({}.hasOwnProperty),wO=Object.hasOwn||function(e,t){return bO(mO(e),t)},EO=0,xO=Math.random(),CO=hO(1..toString),SO=function(e){return"Symbol("+(void 0===e?"":e)+")_"+CO(++EO+xO,36)},DO=function(e){return"function"==typeof e},AO=function(e,t){return arguments.length<2?function(e){return DO(e)?e:void 0}(iO[e]):iO[e]&&iO[e][t]},OO=AO("navigator","userAgent")||"",_O=iO.process,kO=iO.Deno,BO=_O&&_O.versions||kO&&kO.version,FO=BO&&BO.v8;FO&&(rO=(nO=FO.split("."))[0]>0&&nO[0]<4?1:+(nO[0]+nO[1])),!rO&&OO&&(!(nO=OO.match(/Edge\/(\d+)/))||nO[1]>=74)&&(nO=OO.match(/Chrome\/(\d+)/))&&(rO=+nO[1]);var TO=rO,PO=function(e){try{return!!e()}catch(t){return!0}},jO=!!Object.getOwnPropertySymbols&&!PO((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&TO&&TO<41})),NO=jO&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,IO=lO("wks"),LO=iO.Symbol,RO=LO&&LO.for,MO=NO?LO:LO&&LO.withoutSetter||SO,zO=function(e){if(!wO(IO,e)||!jO&&"string"!=typeof IO[e]){var t="Symbol."+e;jO&&wO(LO,e)?IO[e]=LO[e]:IO[e]=NO&&RO?RO(t):MO(t)}return IO[e]},$O={};$O[zO("toStringTag")]="z";var HO="[object z]"===String($O),VO=!PO((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),UO=function(e){return"object"==typeof e?null!==e:DO(e)},WO=iO.document,GO=UO(WO)&&UO(WO.createElement),qO=function(e){return GO?WO.createElement(e):{}},KO=!VO&&!PO((function(){return 7!=Object.defineProperty(qO("div"),"a",{get:function(){return 7}}).a})),YO=iO.String,XO=iO.TypeError,ZO=function(e){if(UO(e))return e;throw XO(YO(e)+" is not an object")},JO=Function.prototype.call,QO=JO.bind?JO.bind(JO):function(){return JO.apply(JO,arguments)},e_=hO({}.isPrototypeOf),t_=iO.Object,n_=NO?function(e){return"symbol"==typeof e}:function(e){var t=AO("Symbol");return DO(t)&&e_(t.prototype,t_(e))},r_=iO.String,o_=function(e){try{return r_(e)}catch(t){return"Object"}},i_=iO.TypeError,a_=function(e){if(DO(e))return e;throw i_(o_(e)+" is not a function")},u_=function(e,t){var n=e[t];return null==n?void 0:a_(n)},s_=iO.TypeError,l_=iO.TypeError,c_=zO("toPrimitive"),f_=function(e){var t=function(e){if(!UO(e)||n_(e))return e;var t,n=u_(e,c_);if(n){if(t=QO(n,e,"string"),!UO(t)||n_(t))return t;throw l_("Can't convert object to primitive value")}return function(e){var t,n;if(DO(t=e.toString)&&!UO(n=QO(t,e)))return n;if(DO(t=e.valueOf)&&!UO(n=QO(t,e)))return n;throw s_("Can't convert object to primitive value")}(e)}(e);return n_(t)?t:t+""},d_=iO.TypeError,p_=Object.defineProperty,h_={f:VO?p_:function(e,t,n){if(ZO(e),t=f_(t),ZO(n),KO)try{return p_(e,t,n)}catch(r){}if("get"in n||"set"in n)throw d_("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},g_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},v_=VO?function(e,t,n){return h_.f(e,t,g_(1,n))}:function(e,t,n){return e[t]=n,e},y_=hO(Function.toString);DO(sO.inspectSource)||(sO.inspectSource=function(e){return y_(e)});var m_,b_,w_,E_=sO.inspectSource,x_=iO.WeakMap,C_=DO(x_)&&/native code/.test(E_(x_)),S_=lO("keys"),D_=function(e){return S_[e]||(S_[e]=SO(e))},A_={},O_=iO.TypeError,__=iO.WeakMap;if(C_||sO.state){var k_=sO.state||(sO.state=new __),B_=hO(k_.get),F_=hO(k_.has),T_=hO(k_.set);m_=function(e,t){if(F_(k_,e))throw new O_("Object already initialized");return t.facade=e,T_(k_,e,t),t},b_=function(e){return B_(k_,e)||{}},w_=function(e){return F_(k_,e)}}else{var P_=D_("state");A_[P_]=!0,m_=function(e,t){if(wO(e,P_))throw new O_("Object already initialized");return t.facade=e,v_(e,P_,t),t},b_=function(e){return wO(e,P_)?e[P_]:{}},w_=function(e){return wO(e,P_)}}var j_={set:m_,get:b_,has:w_,enforce:function(e){return w_(e)?b_(e):m_(e,{})},getterFor:function(e){return function(t){var n;if(!UO(t)||(n=b_(t)).type!==e)throw O_("Incompatible receiver, "+e+" required");return n}}},N_=Function.prototype,I_=VO&&Object.getOwnPropertyDescriptor,L_=wO(N_,"name"),R_={EXISTS:L_,PROPER:L_&&"something"===function(){}.name,CONFIGURABLE:L_&&(!VO||VO&&I_(N_,"name").configurable)},M_=tO((function(e){var t=R_.CONFIGURABLE,n=j_.get,r=j_.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;DO(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!wO(i,"name")||t&&i.name!==f)&&v_(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==iO?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:v_(e,n,i)):l?e[n]=i:uO(n,i)})(Function.prototype,"toString",(function(){return DO(this)&&n(this).source||E_(this)}))})),z_=hO({}.toString),$_=hO("".slice),H_=function(e){return $_(z_(e),8,-1)},V_=zO("toStringTag"),U_=iO.Object,W_="Arguments"==H_(function(){return arguments}()),G_=HO?H_:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=U_(e),V_))?n:W_?H_(t):"Object"==(r=H_(t))&&DO(t.callee)?"Arguments":r},q_=HO?{}.toString:function(){return"[object "+G_(this)+"]"};HO||M_(Object.prototype,"toString",q_,{unsafe:!0});var K_={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},Y_=qO("span").classList,X_=Y_&&Y_.constructor&&Y_.constructor.prototype,Z_=X_===Object.prototype?void 0:X_,J_=hO(hO.bind),Q_=function(e,t){return a_(e),void 0===t?e:J_?J_(e,t):function(){return e.apply(t,arguments)}},ek=iO.Object,tk=hO("".split),nk=PO((function(){return!ek("z").propertyIsEnumerable(0)}))?function(e){return"String"==H_(e)?tk(e,""):ek(e)}:ek,rk=Math.ceil,ok=Math.floor,ik=function(e){var t=+e;return t!=t||0===t?0:(t>0?ok:rk)(t)},ak=Math.min,uk=function(e){return e>0?ak(ik(e),9007199254740991):0},sk=function(e){return uk(e.length)},lk=Array.isArray||function(e){return"Array"==H_(e)},ck=function(){},fk=[],dk=AO("Reflect","construct"),pk=/^\s*(?:class|function)\b/,hk=hO(pk.exec),gk=!pk.exec(ck),vk=function(e){if(!DO(e))return!1;try{return dk(ck,fk,e),!0}catch(t){return!1}},yk=!dk||PO((function(){var e;return vk(vk.call)||!vk(Object)||!vk((function(){e=!0}))||e}))?function(e){if(!DO(e))return!1;switch(G_(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return gk||!!hk(pk,E_(e))}:vk,mk=zO("species"),bk=iO.Array,wk=function(e,t){return new(lk(n=e)&&(r=n.constructor,(yk(r)&&(r===bk||lk(r.prototype))||UO(r)&&null===(r=r[mk]))&&(r=void 0)),void 0===r?bk:r)(0===t?0:t);var n,r},Ek=hO([].push),xk=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=mO(s),g=nk(h),v=Q_(l,c),y=sk(g),m=0,b=f||wk,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Ek(w,d)}else switch(e){case 4:return!1;case 7:Ek(w,d)}return i?-1:r||o?o:w}},Ck={forEach:xk(0),map:xk(1),filter:xk(2),find:xk(5),findIndex:xk(6)},Sk=function(e,t){var n=[][e];return!!n&&PO((function(){n.call(null,t||function(){throw 1},1)}))},Dk=Ck.forEach,Ak=Sk("forEach")?[].forEach:function(e){return Dk(this,e,arguments.length>1?arguments[1]:void 0)},Ok=function(e){if(e&&e.forEach!==Ak)try{v_(e,"forEach",Ak)}catch(t){e.forEach=Ak}};for(var _k in K_)K_[_k]&&Ok(iO[_k]&&iO[_k].prototype);Ok(Z_);var kk={}.propertyIsEnumerable,Bk=Object.getOwnPropertyDescriptor,Fk=Bk&&!kk.call({1:2},1)?function(e){var t=Bk(this,e);return!!t&&t.enumerable}:kk,Tk={f:Fk},Pk=function(e){return nk(vO(e))},jk=Object.getOwnPropertyDescriptor,Nk={f:VO?jk:function(e,t){if(e=Pk(e),t=f_(t),KO)try{return jk(e,t)}catch(n){}if(wO(e,t))return g_(!QO(Tk.f,e,t),e[t])}},Ik=Math.max,Lk=Math.min,Rk=function(e,t){var n=ik(e);return n<0?Ik(n+t,0):Lk(n,t)},Mk=function(e){return function(t,n,r){var o,i=Pk(t),a=sk(i),u=Rk(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},zk={includes:Mk(!0),indexOf:Mk(!1)},$k=zk.indexOf,Hk=hO([].push),Vk=function(e,t){var n,r=Pk(e),o=0,i=[];for(n in r)!wO(A_,n)&&wO(r,n)&&Hk(i,n);for(;t.length>o;)wO(r,n=t[o++])&&(~$k(i,n)||Hk(i,n));return i},Uk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wk=Uk.concat("length","prototype"),Gk={f:Object.getOwnPropertyNames||function(e){return Vk(e,Wk)}},qk={f:Object.getOwnPropertySymbols},Kk=hO([].concat),Yk=AO("Reflect","ownKeys")||function(e){var t=Gk.f(ZO(e)),n=qk.f;return n?Kk(t,n(e)):t},Xk=function(e,t){for(var n=Yk(t),r=h_.f,o=Nk.f,i=0;i<n.length;i++){var a=n[i];wO(e,a)||r(e,a,o(t,a))}},Zk=/#|\.prototype\./,Jk=function(e,t){var n=eB[Qk(e)];return n==nB||n!=tB&&(DO(t)?PO(t):!!t)},Qk=Jk.normalize=function(e){return String(e).replace(Zk,".").toLowerCase()},eB=Jk.data={},tB=Jk.NATIVE="N",nB=Jk.POLYFILL="P",rB=Jk,oB=Nk.f,iB=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?iO:l?iO[u]||uO(u,{}):(iO[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=oB(n,r))&&a.value:n[r],!rB(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Xk(i,o)}(e.sham||o&&o.sham)&&v_(i,"sham",!0),M_(n,r,i,e)}},aB=Object.keys||function(e){return Vk(e,Uk)},uB=PO((function(){aB(1)}));function sB(e){return"[object Object]"===Object.prototype.toString.call(e)}iB({target:"Object",stat:!0,forced:uB},{keys:function(e){return aB(mO(e))}});var lB={isHistory(e){return!1!==sB(t=e)&&(void 0===(n=t.constructor)||!1!==sB(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||lb.isOperationList(e.redos[0]))&&(0===e.undos.length||lb.isOperationList(e.undos[0]));var t,n,r}},cB=new WeakMap,fB=new WeakMap,dB={isHistoryEditor:e=>lB.isHistory(e.history)&&tb.isEditor(e),isMerging:e=>fB.get(e),isSaving:e=>cB.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=dB.isMerging(e);fB.set(e,!1),t(),fB.set(e,n)},withoutSaving(e,t){var n=dB.isSaving(e);cB.set(e,!1),t(),cB.set(e,n)}},pB=iO.String,hB=function(e){if("Symbol"===G_(e))throw TypeError("Cannot convert a Symbol value to a string");return pB(e)},gB=function(){var e=ZO(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},vB=R_.PROPER,yB=RegExp.prototype,mB=yB.toString,bB=hO(gB),wB=PO((function(){return"/a/b"!=mB.call({source:"a",flags:"b"})})),EB=vB&&"toString"!=mB.name;(wB||EB)&&M_(RegExp.prototype,"toString",(function(){var e=ZO(this),t=hB(e.source),n=e.flags;return"/"+t+"/"+hB(void 0===n&&e_(yB,e)&&!("flags"in yB)?bB(e):n)}),{unsafe:!0});var xB,CB=VO?Object.defineProperties:function(e,t){ZO(e);for(var n,r=Pk(t),o=aB(t),i=o.length,a=0;i>a;)h_.f(e,n=o[a++],r[n]);return e},SB=AO("document","documentElement"),DB=D_("IE_PROTO"),AB=function(){},OB=function(e){return"<script>"+e+"<\/script>"},_B=function(e){e.write(OB("")),e.close();var t=e.parentWindow.Object;return e=null,t},kB=function(){try{xB=new ActiveXObject("htmlfile")}catch(r){}var e,t;kB="undefined"!=typeof document?document.domain&&xB?_B(xB):((t=qO("iframe")).style.display="none",SB.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(OB("document.F=Object")),e.close(),e.F):_B(xB);for(var n=Uk.length;n--;)delete kB.prototype[Uk[n]];return kB()};A_[DB]=!0;var BB=Object.create||function(e,t){var n;return null!==e?(AB.prototype=ZO(e),n=new AB,AB.prototype=null,n[DB]=e):n=kB(),void 0===t?n:CB(n,t)},FB=zO("unscopables"),TB=Array.prototype;null==TB[FB]&&h_.f(TB,FB,{configurable:!0,value:BB(null)});var PB=function(e){TB[FB][e]=!0},jB=zk.includes;iB({target:"Array",proto:!0},{includes:function(e){return jB(this,e,arguments.length>1?arguments[1]:void 0)}}),PB("includes");var NB=zO("match"),IB=function(e){var t;return UO(e)&&(void 0!==(t=e[NB])?!!t:"RegExp"==H_(e))},LB=iO.TypeError,RB=function(e){if(IB(e))throw LB("The method doesn't accept regular expressions");return e},MB=zO("match"),zB=function(e){var t=/./;try{"/./"[e](t)}catch(Oz){try{return t[MB]=!1,"/./"[e](t)}catch(n){}}return!1},$B=hO("".indexOf);iB({target:"String",proto:!0,forced:!zB("includes")},{includes:function(e){return!!~$B(hB(vO(this)),hB(RB(e)),arguments.length>1?arguments[1]:void 0)}});var HB=/"/g,VB=hO("".replace);iB({target:"String",proto:!0,forced:PO((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=hB(vO(this)),r="<a",(r+=' name="'+VB(hB(t),HB,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var UB=function(e,t,n){var r,o;ZO(e);try{if(!(r=u_(e,"return"))){if("throw"===t)throw n;return n}r=QO(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return ZO(r),n},WB=function(e,t,n,r){try{return r?t(ZO(n)[0],n[1]):t(n)}catch(o){UB(e,"throw",o)}},GB={},qB=zO("iterator"),KB=Array.prototype,YB=function(e){return void 0!==e&&(GB.Array===e||KB[qB]===e)},XB=function(e,t,n){var r=f_(t);r in e?h_.f(e,r,g_(0,n)):e[r]=n},ZB=zO("iterator"),JB=function(e){if(null!=e)return u_(e,ZB)||u_(e,"@@iterator")||GB[G_(e)]},QB=iO.TypeError,eF=function(e,t){var n=arguments.length<2?JB(e):t;if(a_(n))return ZO(QO(n,e));throw QB(o_(e)+" is not iterable")},tF=iO.Array,nF=zO("iterator"),rF=!1;try{var oF=0,iF={next:function(){return{done:!!oF++}},return:function(){rF=!0}};iF[nF]=function(){return this},Array.from(iF,(function(){throw 2}))}catch(lCe){}var aF=function(e,t){if(!rF)return!1;var n=!1;try{var r={};r[nF]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},uF=!aF((function(e){Array.from(e)}));iB({target:"Array",stat:!0,forced:uF},{from:function(e){var t=mO(e),n=yk(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Q_(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=JB(t),p=0;if(!d||this==tF&&YB(d))for(a=sk(t),u=n?new this(a):tF(a);a>p;p++)f=i?o(t[p],p):t[p],XB(u,p,f);else for(c=(l=eF(t,d)).next,u=n?new this:[];!(s=QO(c,l)).done;p++)f=i?WB(l,o,[s.value,p],!0):s.value,XB(u,p,f);return u.length=p,u}});var sF,lF,cF,fF=hO("".charAt),dF=hO("".charCodeAt),pF=hO("".slice),hF={charAt:function(e){return function(t,n){var r,o,i=hB(vO(t)),a=ik(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=dF(i,a))<55296||r>56319||a+1===u||(o=dF(i,a+1))<56320||o>57343?e?fF(i,a):r:e?pF(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},gF=!PO((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),vF=D_("IE_PROTO"),yF=iO.Object,mF=yF.prototype,bF=gF?yF.getPrototypeOf:function(e){var t=mO(e);if(wO(t,vF))return t[vF];var n=t.constructor;return DO(n)&&t instanceof n?n.prototype:t instanceof yF?mF:null},wF=zO("iterator"),EF=!1;[].keys&&("next"in(cF=[].keys())?(lF=bF(bF(cF)))!==Object.prototype&&(sF=lF):EF=!0);var xF=null==sF||PO((function(){var e={};return sF[wF].call(e)!==e}));xF&&(sF={}),DO(sF[wF])||M_(sF,wF,(function(){return this}));var CF={IteratorPrototype:sF,BUGGY_SAFARI_ITERATORS:EF},SF=h_.f,DF=zO("toStringTag"),AF=function(e,t,n){e&&!wO(e=n?e:e.prototype,DF)&&SF(e,DF,{configurable:!0,value:t})},OF=CF.IteratorPrototype,_F=function(){return this},kF=iO.String,BF=iO.TypeError,FF=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=hO(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return ZO(n),function(e){if("object"==typeof e||DO(e))return e;throw BF("Can't set "+kF(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),TF=R_.PROPER,PF=R_.CONFIGURABLE,jF=CF.IteratorPrototype,NF=CF.BUGGY_SAFARI_ITERATORS,IF=zO("iterator"),LF=function(){return this},RF=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=BB(OF,{next:g_(1,s)}),AF(u,l,!1),GB[l]=_F;var c,f,d,p=function(e){if(e===o&&m)return m;if(!NF&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[IF]||v["@@iterator"]||o&&v[o],m=!NF&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=bF(b.call(new e)))!==Object.prototype&&c.next&&(bF(c)!==jF&&(FF?FF(c,jF):DO(c[IF])||M_(c,IF,LF)),AF(c,h,!0)),TF&&"values"==o&&y&&"values"!==y.name&&(PF?v_(v,"name","values"):(g=!0,m=function(){return QO(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(NF||g||!(d in v))&&M_(v,d,f[d]);else iB({target:t,proto:!0,forced:NF||g},f);return v[IF]!==m&&M_(v,IF,m,{name:o}),GB[t]=m,f},MF=hF.charAt,zF=j_.set,$F=j_.getterFor("String Iterator");RF(String,"String",(function(e){zF(this,{type:"String Iterator",string:hB(e),index:0})}),(function(){var e,t=$F(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=MF(n,r),t.index+=e.length,{value:e,done:!1})}));var HF,VF=Nk.f,UF=hO("".endsWith),WF=hO("".slice),GF=Math.min,qF=zB("endsWith"),KF=!(qF||(HF=VF(String.prototype,"endsWith"),!HF||HF.writable));iB({target:"String",proto:!0,forced:!KF&&!qF},{endsWith:function(e){var t=hB(vO(this));RB(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:GF(uk(n),r),i=hB(e);return UF?UF(t,i,o):WF(t,o-i.length,o)===i}});var YF=hO([].join),XF=nk!=Object,ZF=Sk("join",",");iB({target:"Array",proto:!0,forced:XF||!ZF},{join:function(e){return YF(Pk(this),void 0===e?",":e)}});var JF=zO("species"),QF=function(e){return TO>=51||!PO((function(){var t=[];return(t.constructor={})[JF]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},eT=Ck.map,tT=QF("map");iB({target:"Array",proto:!0,forced:!tT},{map:function(e){return eT(this,e,arguments.length>1?arguments[1]:void 0)}});var nT=iO.RegExp,rT=PO((function(){var e=nT("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),oT=rT||PO((function(){return!nT("a","y").sticky})),iT={BROKEN_CARET:rT||PO((function(){var e=nT("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:oT,UNSUPPORTED_Y:rT},aT=iO.RegExp,uT=PO((function(){var e=aT(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),sT=iO.RegExp,lT=PO((function(){var e=sT("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),cT=j_.get,fT=lO("native-string-replace",String.prototype.replace),dT=RegExp.prototype.exec,pT=dT,hT=hO("".charAt),gT=hO("".indexOf),vT=hO("".replace),yT=hO("".slice),mT=function(){var e=/a/,t=/b*/g;return QO(dT,e,"a"),QO(dT,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),bT=iT.BROKEN_CARET,wT=void 0!==/()??/.exec("")[1];(mT||wT||bT||uT||lT)&&(pT=function(e){var t,n,r,o,i,a,u,s=this,l=cT(s),c=hB(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=QO(pT,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=bT&&s.sticky,h=QO(gB,s),g=s.source,v=0,y=c;if(p&&(h=vT(h,"y",""),-1===gT(h,"g")&&(h+="g"),y=yT(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==hT(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),wT&&(n=new RegExp("^"+g+"$(?!\\s)",h)),mT&&(r=s.lastIndex),o=QO(dT,p?n:s,y),p?o?(o.input=yT(o.input,v),o[0]=yT(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:mT&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),wT&&o&&o.length>1&&QO(fT,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=BB(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ET=pT;iB({target:"RegExp",proto:!0,forced:/./.exec!==ET},{exec:ET});var xT=Function.prototype,CT=xT.apply,ST=xT.bind,DT=xT.call,AT="object"==typeof Reflect&&Reflect.apply||(ST?DT.bind(CT):function(){return DT.apply(CT,arguments)}),OT=zO("species"),_T=RegExp.prototype,kT=function(e,t,n,r){var o=zO(e),i=!PO((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!PO((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[OT]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=hO(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=hO(e),s=t.exec;return s===ET||s===_T.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));M_(String.prototype,e,s[0]),M_(_T,o,s[1])}r&&v_(_T[o],"sham",!0)},BT=hF.charAt,FT=function(e,t,n){return t+(n?BT(e,t).length:1)},TT=Math.floor,PT=hO("".charAt),jT=hO("".replace),NT=hO("".slice),IT=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,LT=/\$([$&'`]|\d{1,2})/g,RT=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=LT;return void 0!==o&&(o=mO(o),s=IT),jT(i,s,(function(i,s){var l;switch(PT(s,0)){case"$":return"$";case"&":return e;case"`":return NT(t,0,n);case"'":return NT(t,a);case"<":l=o[NT(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=TT(c/10);return 0===f?i:f<=u?void 0===r[f-1]?PT(s,1):r[f-1]+PT(s,1):i}l=r[c-1]}return void 0===l?"":l}))},MT=iO.TypeError,zT=function(e,t){var n=e.exec;if(DO(n)){var r=QO(n,e,t);return null!==r&&ZO(r),r}if("RegExp"===H_(e))return QO(ET,e,t);throw MT("RegExp#exec called on incompatible receiver")},$T=zO("replace"),HT=Math.max,VT=Math.min,UT=hO([].concat),WT=hO([].push),GT=hO("".indexOf),qT=hO("".slice),KT="$0"==="a".replace(/./,"$0"),YT=!!/./[$T]&&""===/./[$T]("a","$0");kT("replace",(function(e,t,n){var r=YT?"$":"$0";return[function(e,n){var r=vO(this),o=null==e?void 0:u_(e,$T);return o?QO(o,e,r,n):QO(t,hB(r),e,n)},function(e,o){var i=ZO(this),a=hB(e);if("string"==typeof o&&-1===GT(o,r)&&-1===GT(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=DO(o);s||(o=hB(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=zT(i,a);if(null===d)break;if(WT(f,d),!l)break;""===hB(d[0])&&(i.lastIndex=FT(a,uk(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=hB((d=f[v])[0]),m=HT(VT(ik(d.index),a.length),0),b=[],w=1;w<d.length;w++)WT(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=UT([y],b,m,a);void 0!==E&&WT(x,E);var C=hB(AT(o,void 0,x))}else C=RT(y,a,m,b,E,o);m>=g&&(h+=qT(a,g,m)+C,g=m+y.length)}return h+qT(a,g)}]}),!!PO((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!KT||YT);var XT=function(e,t){return(XT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function ZT(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}XT(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var JT=function(){return JT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},JT.apply(this,arguments)};function QT(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)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 eP(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function tP(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var nP=0,rP=function(){this.id=""+nP++},oP=j_.set,iP=j_.getterFor("Array Iterator"),aP=RF(Array,"Array",(function(e,t){oP(this,{type:"Array Iterator",target:Pk(e),index:0,kind:t})}),(function(){var e=iP(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");GB.Arguments=GB.Array,PB("keys"),PB("values"),PB("entries");var uP=function(e,t,n){for(var r in t)M_(e,r,t[r],n);return e},sP=iO.Array,lP=Math.max,cP=function(e,t,n){for(var r=sk(e),o=Rk(t,r),i=Rk(void 0===n?r:n,r),a=sP(lP(i-o,0)),u=0;o<i;o++,u++)XB(a,u,e[o]);return a.length=u,a},fP=Gk.f,dP="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],pP={f:function(e){return dP&&"Window"==H_(e)?function(e){try{return fP(e)}catch(t){return cP(dP)}}(e):fP(Pk(e))}},hP=PO((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),gP=Object.isExtensible,vP=PO((function(){gP(1)}))||hP?function(e){return!!UO(e)&&(!hP||"ArrayBuffer"!=H_(e))&&(!gP||gP(e))}:gP,yP=!PO((function(){return Object.isExtensible(Object.preventExtensions({}))})),mP=tO((function(e){var t=h_.f,n=!1,r=SO("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Gk.f,t=hO([].splice),o={};o[r]=1,e(o).length&&(Gk.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},iB({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:pP.f}))},fastKey:function(e,t){if(!UO(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!wO(e,r)){if(!vP(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!wO(e,r)){if(!vP(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return yP&&n&&vP(e)&&!wO(e,r)&&i(e),e}};A_[r]=!0})),bP=iO.TypeError,wP=function(e,t){this.stopped=e,this.result=t},EP=wP.prototype,xP=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Q_(t,c),g=function(e){return r&&UB(r,"normal",e),new wP(!0,e)},v=function(e){return f?(ZO(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=JB(e)))throw bP(o_(e)+" is not iterable");if(YB(o)){for(i=0,a=sk(e);a>i;i++)if((u=v(e[i]))&&e_(EP,u))return u;return new wP(!1)}r=eF(e,o)}for(s=r.next;!(l=QO(s,r)).done;){try{u=v(l.value)}catch(y){UB(r,"throw",y)}if("object"==typeof u&&u&&e_(EP,u))return u}return new wP(!1)},CP=iO.TypeError,SP=function(e,t){if(e_(t,e))return e;throw CP("Incorrect invocation")},DP=function(e,t,n){var r,o;return FF&&DO(r=t.constructor)&&r!==n&&UO(o=r.prototype)&&o!==n.prototype&&FF(e,o),e},AP=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=iO[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=hO(u[e]);M_(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!UO(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!UO(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!UO(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(rB(e,!DO(a)||!(o||u.forEach&&!PO((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),mP.enable();else if(rB(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=PO((function(){f.has(1)})),h=aF((function(e){new a(e)})),g=!o&&PO((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){SP(e,u);var n=DP(new a,e,s);return null!=t&&xP(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,iB({global:!0,forced:s!=a},l),AF(s,e),o||n.setStrong(s,e,r),s},OP=mP.getWeakData,_P=j_.set,kP=j_.getterFor,BP=Ck.find,FP=Ck.findIndex,TP=hO([].splice),PP=0,jP=function(e){return e.frozen||(e.frozen=new NP)},NP=function(){this.entries=[]},IP=function(e,t){return BP(e.entries,(function(e){return e[0]===t}))};NP.prototype={get:function(e){var t=IP(this,e);if(t)return t[1]},has:function(e){return!!IP(this,e)},set:function(e,t){var n=IP(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=FP(this.entries,(function(t){return t[0]===e}));return~t&&TP(this.entries,t,1),!!~t}};var LP,RP={getConstructor:function(e,t,n,r){var o=e((function(e,o){SP(e,i),_P(e,{type:t,id:PP++,frozen:void 0}),null!=o&&xP(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=kP(t),u=function(e,t,n){var r=a(e),o=OP(ZO(t),!0);return!0===o?jP(r).set(t,n):o[r.id]=n,e};return uP(i,{delete:function(e){var t=a(this);if(!UO(e))return!1;var n=OP(e);return!0===n?jP(t).delete(e):n&&wO(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!UO(e))return!1;var n=OP(e);return!0===n?jP(t).has(e):n&&wO(n,t.id)}}),uP(i,n?{get:function(e){var t=a(this);if(UO(e)){var n=OP(e);return!0===n?jP(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},MP=j_.enforce,zP=!iO.ActiveXObject&&"ActiveXObject"in iO,$P=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},HP=AP("WeakMap",$P,RP);if(C_&&zP){LP=RP.getConstructor($P,"WeakMap",!0),mP.enable();var VP=HP.prototype,UP=hO(VP.delete),WP=hO(VP.has),GP=hO(VP.get),qP=hO(VP.set);uP(VP,{delete:function(e){if(UO(e)&&!vP(e)){var t=MP(this);return t.frozen||(t.frozen=new LP),UP(this,e)||t.frozen.delete(e)}return UP(this,e)},has:function(e){if(UO(e)&&!vP(e)){var t=MP(this);return t.frozen||(t.frozen=new LP),WP(this,e)||t.frozen.has(e)}return WP(this,e)},get:function(e){if(UO(e)&&!vP(e)){var t=MP(this);return t.frozen||(t.frozen=new LP),WP(this,e)?GP(this,e):t.frozen.get(e)}return GP(this,e)},set:function(e,t){if(UO(e)&&!vP(e)){var n=MP(this);n.frozen||(n.frozen=new LP),WP(this,e)?qP(this,e,t):n.frozen.set(e,t)}else qP(this,e,t);return this}})}var KP=zO("iterator"),YP=zO("toStringTag"),XP=aP.values,ZP=function(e,t){if(e){if(e[KP]!==XP)try{v_(e,KP,XP)}catch(r){e[KP]=XP}if(e[YP]||v_(e,YP,t),K_[t])for(var n in aP)if(e[n]!==aP[n])try{v_(e,n,aP[n])}catch(r){e[n]=aP[n]}}};for(var JP in K_)ZP(iO[JP]&&iO[JP].prototype,JP);ZP(Z_,"DOMTokenList");var QP=new WeakMap,ej=new WeakMap,tj=new WeakMap,nj=new WeakMap,rj=new WeakMap,oj=new WeakMap,ij=new WeakMap,aj=new WeakMap,uj=new WeakMap,sj=new WeakMap,lj=new WeakMap,cj=new WeakMap,fj=new WeakMap,dj=new WeakMap,pj=new WeakMap,hj=new WeakMap,gj=new WeakMap,vj=new WeakMap,yj=new WeakMap,mj=new WeakMap,bj=new WeakMap,wj=new WeakMap,Ej=new WeakMap,xj=new WeakMap,Cj=new WeakMap,Sj=Ck.find,Dj=!0;"find"in[]&&Array(1).find((function(){Dj=!1})),iB({target:"Array",proto:!0,forced:Dj},{find:function(e){return Sj(this,e,arguments.length>1?arguments[1]:void 0)}}),PB("find"),iB({global:!0},{globalThis:iO});const Aj=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];mE&&(rE.fn.css=mE),SE&&(rE.fn.append=SE),oE&&(rE.fn.addClass=oE),iE&&(rE.fn.removeClass=iE),aE&&(rE.fn.hasClass=aE),fE&&(rE.fn.on=fE),NE&&(rE.fn.focus=NE),uE&&(rE.fn.attr=uE),sE&&(rE.fn.removeAttr=sE),vE&&(rE.fn.hide=vE),yE&&(rE.fn.show=yE),gE&&(rE.fn.offset=gE),pE&&(rE.fn.width=pE),hE&&(rE.fn.height=hE),AE&&(rE.fn.parent=AE),OE&&(rE.fn.parents=OE),CE&&(rE.fn.is=CE),lE&&(rE.fn.dataset=lE),cE&&(rE.fn.val=cE),xE&&(rE.fn.text=xE),EE&&(rE.fn.html=EE),kE&&(rE.fn.children=kE),BE&&(rE.fn.remove=BE),_E&&(rE.fn.find=_E),bE&&(rE.fn.each=bE),FE&&(rE.fn.empty=FE);var Oj,_j,kj=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Bj=function(e){return Fj(e)&&1===e.nodeType},Fj=function(e){var t=kj(e);return!!t&&e instanceof t.Node},Tj=function(e){var t=e&&e.anchorNode&&kj(e.anchorNode);return!!t&&e instanceof t.Selection},Pj=function(e){return Fj(e)&&3===e.nodeType},jj=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},Nj=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(Fj(r=i)&&8===r.nodeType||Bj(i)&&0===i.childNodes.length||Bj(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},Ij=function(e,t,n){return eP(Nj(e,t,n),1)[0]},Lj=function e(t){var n,r,o="";if(Pj(t)&&t.nodeValue)return t.nodeValue;if(Bj(t)){try{for(var i=QT(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch($u){n={error:$u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function Rj(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||Rj(o,t)}}function Mj(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==Oj.ELEMENT_NODE?"":t.tagName.toLowerCase()}(_j=Oj||(Oj={}))[_j.ELEMENT_NODE=1]="ELEMENT_NODE",_j[_j.TEXT_NODE=3]="TEXT_NODE",_j[_j.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",_j[_j.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",_j[_j.COMMENT_NODE=8]="COMMENT_NODE",_j[_j.DOCUMENT_NODE=9]="DOCUMENT_NODE",_j[_j.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",_j[_j.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var zj="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),$j="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Hj="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Vj="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Uj="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Wj="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),Gj=!Uj&&!Vj&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,qj={getWindow:function(e){var t=bj.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=mj.get(t);return n||(n=new rP,mj.set(t,n)),n},setNewKey:function(e){var t=new rP;mj.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=pj.get(r);if(null==o){if(tb.isEditor(r))return n;break}var i=dj.get(r);if(null==i)break;n.unshift(i),r=o}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=qj.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return pj.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=qj.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[qj.findPath(e,t)[0]];return ab.get(e,n)},toDOMNode:function(e,t){var n;if(tb.isEditor(t))n=hj.get(e);else{var r=qj.findKey(e,t);n=vj.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){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=qj.toDOMNode(e,e);try{r=Bj(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=mb.isBackward(t),i=qj.toDOMPoint(e,n),a=mb.isCollapsed(t)?i:qj.toDOMPoint(e,r),u=qj.getWindow(e).document.createRange(),s=eP(o?a:i,2),l=s[0],c=s[1],f=eP(o?i:a,2),d=f[0],p=f[1],h=!!(Bj(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(Bj(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,g?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=eP(tb.node(e,t.path),1)[0],a=qj.toDOMNode(e,i);tb.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=QT(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=s+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=g}}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=Bj(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?gj.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,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=qj.toSlateNode(e,t.target),u=qj.findPath(e,a);if(tb.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=tb.point(e,u,{edge:l?"start":"end"}),f=l?tb.before(e,c):tb.after(e,c);if(f)return tb.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return qj.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((Tj(t)?t.anchorNode:t.startContainer)&&(Tj(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=Wj&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=qj.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:qj.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return mb.isExpanded(d)&&mb.isForward(d)&&Bj(i)&&tb.void(e,{at:d.focus,mode:"highest"})&&(d=tb.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=eP(o?t:function(e){var t,n=eP(e,2),r=n[0],o=n[1];if(Bj(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=eP(Nj(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;Bj(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=Ij(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=qj.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();tP(tP([],eP(Vw(v.querySelectorAll("[data-slate-zero-width]")))),eP(Vw(v.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||$j&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=qj.toSlateNode(e,c);return{path:qj.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return tb.hasPath(e,n.path)&&tb.hasPath(e,r.path)},getNodeType:function(e){return Ym.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return ab.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=tb.nodes(e,{universal:!0});try{for(var i=QT(o),a=i.next();!a.done;a=i.next()){var u=eP(a.value,1)[0];Ym.isElement(u)&&r.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=eP(tb.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return null==r?null:r[0]},getSelectedTextNode:function(e){var t=eP(tb.nodes(e,{match:function(e){return Db.isText(e)},universal:!0}),1)[0];return null==t?null:t[0]},isNodeSelected:function(e,t){var n=eP(tb.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=n&&eP(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(tb.isEnd(e,n.anchor,t)||tb.isEnd(e,n.focus,t))},getTextarea:function(e){var t=QP.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return nj.get(e)||null},getHoverbar:function(e){return oj.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("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=qj.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=QT(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(g){t={error:g}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=tb.nodes(e,{match:function(t){return!(!Ym.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=QT(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];Rj(qj.toDOMNode(e,h),(function(e,t){var n=rE(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(g){r={error:g}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}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=tb.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=QT(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(mb.isExpanded(t))return!1;var n=qj.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=tb.node(e,t);if(null==n)return!1;var r=eP(n,1)[0].children;return 1===r.length&&""===r[0].text}},Kj=1,Yj={},Xj={},Zj=Ck.filter,Jj=QF("filter");iB({target:"Array",proto:!0,forced:!Jj},{filter:function(e){return Zj(this,e,arguments.length>1?arguments[1]:void 0)}});var Qj="\t\n\v\f\r    \u2028\u2029\ufeff",eN=hO("".replace),tN="["+Qj+"]",nN=RegExp("^"+tN+tN+"*"),rN=RegExp(tN+tN+"*$"),oN={trim:function(e){return function(t){var n=hB(vO(t));return 1&e&&(n=eN(n,nN,"")),2&e&&(n=eN(n,rN,"")),n}}(3)},iN=R_.PROPER,aN=oN.trim;iB({target:"String",proto:!0,forced:function(e){return PO((function(){return!!Qj[e]()||"…"!=="…"[e]()||iN&&Qj[e].name!==e}))}("trim")},{trim:function(){return aN(this)}});var uN=[],sN={};function lN(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var cN,fN,dN,pN,hN=iO.Promise,gN=zO("species"),vN=function(e){var t=AO(e),n=h_.f;VO&&t&&!t[gN]&&n(t,gN,{configurable:!0,get:function(){return this}})},yN=iO.TypeError,mN=zO("species"),bN=function(e,t){var n,r=ZO(e).constructor;return void 0===r||null==(n=ZO(r)[mN])?t:function(e){if(yk(e))return e;throw yN(o_(e)+" is not a constructor")}(n)},wN=hO([].slice),EN=/(?:ipad|iphone|ipod).*applewebkit/i.test(OO),xN="process"==H_(iO.process),CN=iO.setImmediate,SN=iO.clearImmediate,DN=iO.process,AN=iO.Dispatch,ON=iO.Function,_N=iO.MessageChannel,kN=iO.String,BN=0,FN={};try{cN=iO.location}catch(lCe){}var TN=function(e){if(wO(FN,e)){var t=FN[e];delete FN[e],t()}},PN=function(e){return function(){TN(e)}},jN=function(e){TN(e.data)},NN=function(e){iO.postMessage(kN(e),cN.protocol+"//"+cN.host)};CN&&SN||(CN=function(e){var t=wN(arguments,1);return FN[++BN]=function(){AT(DO(e)?e:ON(e),void 0,t)},fN(BN),BN},SN=function(e){delete FN[e]},xN?fN=function(e){DN.nextTick(PN(e))}:AN&&AN.now?fN=function(e){AN.now(PN(e))}:_N&&!EN?(pN=(dN=new _N).port2,dN.port1.onmessage=jN,fN=Q_(pN.postMessage,pN)):iO.addEventListener&&DO(iO.postMessage)&&!iO.importScripts&&cN&&"file:"!==cN.protocol&&!PO(NN)?(fN=NN,iO.addEventListener("message",jN,!1)):fN="onreadystatechange"in qO("script")?function(e){SB.appendChild(qO("script")).onreadystatechange=function(){SB.removeChild(this),TN(e)}}:function(e){setTimeout(PN(e),0)});var IN,LN,RN,MN,zN,$N,HN,VN,UN={set:CN},WN=/ipad|iphone|ipod/i.test(OO)&&void 0!==iO.Pebble,GN=/web0s(?!.*chrome)/i.test(OO),qN=Nk.f,KN=UN.set,YN=iO.MutationObserver||iO.WebKitMutationObserver,XN=iO.document,ZN=iO.process,JN=iO.Promise,QN=qN(iO,"queueMicrotask"),eI=QN&&QN.value;eI||(IN=function(){var e,t;for(xN&&(e=ZN.domain)&&e.exit();LN;){t=LN.fn,LN=LN.next;try{t()}catch(n){throw LN?MN():RN=void 0,n}}RN=void 0,e&&e.enter()},EN||xN||GN||!YN||!XN?!WN&&JN&&JN.resolve?((HN=JN.resolve(void 0)).constructor=JN,VN=Q_(HN.then,HN),MN=function(){VN(IN)}):xN?MN=function(){ZN.nextTick(IN)}:(KN=Q_(KN,iO),MN=function(){KN(IN)}):(zN=!0,$N=XN.createTextNode(""),new YN(IN).observe($N,{characterData:!0}),MN=function(){$N.data=zN=!zN}));var tI,nI,rI,oI,iI=eI||function(e){var t={fn:e,next:void 0};RN&&(RN.next=t),LN||(LN=t,MN()),RN=t},aI=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=a_(t),this.reject=a_(n)},uI={f:function(e){return new aI(e)}},sI=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},lI="object"==typeof window,cI=UN.set,fI=zO("species"),dI="Promise",pI=j_.getterFor(dI),hI=j_.set,gI=j_.getterFor(dI),vI=hN&&hN.prototype,yI=hN,mI=vI,bI=iO.TypeError,wI=iO.document,EI=iO.process,xI=uI.f,CI=xI,SI=!!(wI&&wI.createEvent&&iO.dispatchEvent),DI=DO(iO.PromiseRejectionEvent),AI=!1,OI=rB(dI,(function(){var e=E_(yI),t=e!==String(yI);if(!t&&66===TO)return!0;if(TO>=51&&/native code/.test(e))return!1;var n=new yI((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[fI]=r,!(AI=n.then((function(){}))instanceof r)||!t&&lI&&!DI})),_I=OI||!aF((function(e){yI.all(e).catch((function(){}))})),kI=function(e){var t;return!(!UO(e)||!DO(t=e.then))&&t},BI=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;iI((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&jI(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(bI("Promise-chain cycle")):(u=kI(a))?QO(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&TI(e)}))}},FI=function(e,t,n){var r,o;SI?((r=wI.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),iO.dispatchEvent(r)):r={promise:t,reason:n},!DI&&(o=iO["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=iO.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},TI=function(e){QO(cI,iO,(function(){var t,n=e.facade,r=e.value;if(PI(e)&&(t=sI((function(){xN?EI.emit("unhandledRejection",r,n):FI("unhandledrejection",n,r)})),e.rejection=xN||PI(e)?2:1,t.error))throw t.value}))},PI=function(e){return 1!==e.rejection&&!e.parent},jI=function(e){QO(cI,iO,(function(){var t=e.facade;xN?EI.emit("rejectionHandled",t):FI("rejectionhandled",t,e.value)}))},NI=function(e,t,n){return function(r){e(t,r,n)}},II=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,BI(e,!0))},LI=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw bI("Promise can't be resolved itself");var r=kI(t);r?iI((function(){var n={done:!1};try{QO(r,t,NI(LI,n,e),NI(II,n,e))}catch(o){II(n,o,e)}})):(e.value=t,e.state=1,BI(e,!1))}catch(o){II({done:!1},o,e)}}};if(OI&&(mI=(yI=function(e){SP(this,mI),a_(e),QO(tI,this);var t=pI(this);try{e(NI(LI,t),NI(II,t))}catch(n){II(t,n)}}).prototype,(tI=function(e){hI(this,{type:dI,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=uP(mI,{then:function(e,t){var n=gI(this),r=n.reactions,o=xI(bN(this,yI));return o.ok=!DO(e)||e,o.fail=DO(t)&&t,o.domain=xN?EI.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&BI(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),nI=function(){var e=new tI,t=pI(e);this.promise=e,this.resolve=NI(LI,t),this.reject=NI(II,t)},uI.f=xI=function(e){return e===yI||e===rI?new nI(e):CI(e)},DO(hN)&&vI!==Object.prototype)){oI=vI.then,AI||(M_(vI,"then",(function(e,t){var n=this;return new yI((function(e,t){QO(oI,n,e,t)})).then(e,t)}),{unsafe:!0}),M_(vI,"catch",mI.catch,{unsafe:!0}));try{delete vI.constructor}catch(lCe){}FF&&FF(vI,mI)}iB({global:!0,wrap:!0,forced:OI},{Promise:yI}),AF(yI,dI,!1),vN(dI),rI=AO(dI),iB({target:dI,stat:!0,forced:OI},{reject:function(e){var t=xI(this);return QO(t.reject,void 0,e),t.promise}}),iB({target:dI,stat:!0,forced:OI},{resolve:function(e){return function(e,t){if(ZO(e),UO(t)&&t.constructor===e)return t;var n=uI.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),iB({target:dI,stat:!0,forced:_I},{all:function(e){var t=this,n=xI(t),r=n.resolve,o=n.reject,i=sI((function(){var n=a_(t.resolve),i=[],a=0,u=1;xP(e,(function(e){var s=a++,l=!1;u++,QO(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=xI(t),r=n.reject,o=sI((function(){var o=a_(t.resolve);xP(e,(function(e){QO(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var RI=iT.UNSUPPORTED_Y,MI=Math.min,zI=[].push,$I=hO(/./.exec),HI=hO(zI),VI=hO("".slice);function UI(e){Promise.resolve().then(e)}function WI(e,t){return Ym.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=tb.isVoid(t,e),u="";a||(u=i.map((function(e){return WI(e,t)})).join(""));var s=(sN[r]||lN)(e,u,t),l="";if(l="string"==typeof s?s:s.html||"",a||uN.forEach((function(t){return l=t(e,l)})),"string"==typeof s)return l;var c=s.prefix,f=void 0===c?"":c,d=s.suffix,p=void 0===d?"":d;return f&&(l=f+l),p&&(l+=p),l}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=r.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;");var o=qj.getParentsNodes(t,e).some((function(e){return"pre"===qj.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=qj.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return uN.forEach((function(t){return r=t(e,r)})),r}(e,t)}function GI(e){return"w-e-element-"+e}kT("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=hB(vO(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!IB(e))return QO(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=QO(ET,f,r))&&!((a=f.lastIndex)>c&&(HI(s,VI(r,c,i.index)),i.length>1&&i.index<r.length&&AT(zI,s,cP(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&$I(f,"")||HI(s,""):HI(s,VI(r,c)),s.length>o?cP(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:QO(t,this,e,n)}:t,[function(t,n){var o=vO(this),i=null==t?void 0:u_(t,e);return i?QO(i,t,o,n):QO(r,hB(o),t,n)},function(e,o){var i=ZO(this),a=hB(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=bN(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(RI?"g":"y"),f=new s(RI?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===zT(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=RI?0:h;var v,y=zT(f,RI?VI(a,h):a);if(null===y||(v=MI(uk(f.lastIndex+(RI?h:0)),a.length))===p)h=FT(a,h,l);else{if(HI(g,VI(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(HI(g,y[m]),g.length===d)return g;h=p=v}}return HI(g,VI(a,p)),g}]}),!!PO((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),RI);var qI=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},KI=function(e,t,n){var r=qj.toDOMRange(e,t).getBoundingClientRect(),o=qj.toDOMRange(e,n).getBoundingClientRect();return qI(r,o)&&qI(o,r)},YI=["span","b","strong","i","em","s","strike","u","font","sub","sup"],XI=[],ZI=[],JI={},QI=h_.f,eL=Gk.f,tL=j_.enforce,nL=zO("match"),rL=iO.RegExp,oL=rL.prototype,iL=iO.SyntaxError,aL=hO(gB),uL=hO(oL.exec),sL=hO("".charAt),lL=hO("".replace),cL=hO("".indexOf),fL=hO("".slice),dL=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,pL=/a/g,hL=/a/g,gL=new rL(pL)!==pL,vL=iT.MISSED_STICKY,yL=iT.UNSUPPORTED_Y,mL=VO&&(!gL||vL||uT||lT||PO((function(){return hL[nL]=!1,rL(pL)!=pL||rL(hL)==hL||"/a/i"!=rL(pL,"i")})));if(rB("RegExp",mL)){for(var bL=function(e,t){var n,r,o,i,a,u,s=e_(oL,this),l=IB(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===bL)return e;if((l||e_(oL,e))&&(e=e.source,c&&(t="flags"in d?d.flags:aL(d))),e=void 0===e?"":hB(e),t=void 0===t?"":hB(t),d=e,uT&&"dotAll"in pL&&(r=!!t&&cL(t,"s")>-1)&&(t=lL(t,/s/g,"")),n=t,vL&&"sticky"in pL&&(o=!!t&&cL(t,"y")>-1)&&yL&&(t=lL(t,/y/g,"")),lT&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=sL(e,r)))t+=sL(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:uL(dL,fL(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||wO(a,c))throw new iL("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e))[0],f=i[1]),a=DP(rL(e,t),s?this:oL,bL),(r||o||f.length)&&(u=tL(a),r&&(u.dotAll=!0,u.raw=bL(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=sL(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+sL(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{v_(a,"source",""===d?"(?:)":d)}catch(p){}return a},wL=function(e){e in bL||QI(bL,e,{configurable:!0,get:function(){return rL[e]},set:function(t){rL[e]=t}})},EL=eL(rL),xL=0;EL.length>xL;)wL(EL[xL++]);oL.constructor=bL,bL.prototype=oL,M_(iO,"RegExp",bL)}vN("RegExp");var CL=new RegExp(String.fromCharCode(160),"g");function SL(e){return e.replace(CL," ")}function DL(e,t){var n=e.length;if(n){var r=e[n-1];if(Db.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function AL(e,t,n){return{type:"paragraph",children:[{text:rE(e).text().replace(/\s+/gm," ")}]}}function OL(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==Oj.ELEMENT_NODE)if(e.nodeType!==Oj.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=SL(r),DL(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(DL(n,"\n")||n.push({text:"\n"}));var o=kL(rE(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in JI)if(e[0].matches(t))return JI[t];return AL}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){tb.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),ZI.forEach((function(n){r=n(e[0],r,t)})))})),r}function _L(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"",r={text:n=SL(n=n.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"'))};return ZI.forEach((function(n){r=n(e[0],r,t)})),r}function kL(e,t){XI.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=rE(r(e[0])))}));var n=Mj(e);return"span"===n?e.attr("data-w-e-type")?OL(e,t):_L(e,t):"code"===n?"pre"===Mj(e.parent())?OL(e,t):_L(e,t):YI.includes(n)?_L(e,t):OL(e,t)}function BL(e,t,n){var r=rE(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function FL(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=rE("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=kL(rE(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var TL=h_.f,PL=mP.fastKey,jL=j_.set,NL=j_.getterFor,IL={getConstructor:function(e,t,n,r){var o=e((function(e,o){SP(e,i),jL(e,{type:t,index:BB(null),first:void 0,last:void 0,size:0}),VO||(e.size=0),null!=o&&xP(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=NL(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=PL(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),VO?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=PL(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return uP(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,VO?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),VO?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=Q_(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),uP(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),VO&&TL(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=NL(t),i=NL(r);RF(e,t,(function(e,t){jL(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),vN(t)}};AP("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),IL);var LL=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function RL(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):Vb.insertNodes(e,t,{mode:"highest"})}var ML=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=eP(mb.edges(n),2),o=r[0],i=r[1],a=tb.void(t,{at:o.path}),u=tb.void(t,{at:i.path});if(!mb.isCollapsed(n)||a){var s=qj.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=eP(u,1)[0],d=s.cloneRange(),p=qj.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),Pj(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),y=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",Lj(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),l=e.getData("text/html");if(l)t.dangerouslyInsertHtml(l);else if(s){var c=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=QT(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&Vb.splitNodes(t,{always:!0}),n(h),f=!0}}catch(g){r={error:g}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},zL=function(e){return null!=e},$L={object:!0,function:!0,undefined:!0},HL=/^\s*class[\s{/}]/,VL=Function.prototype.toString,UL=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(t){return!1}return!function(e){if(!zL(t=e)||!hasOwnProperty.call($L,typeof t))return!1;var t;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}(e)}(e)&&!HL.test(VL.call(e))},WL=function(e){return null!=e},GL=Object.keys,qL=function(){try{return Object.keys("primitive"),!0}catch($u){return!1}}()?Object.keys:function(e){return GL(WL(e)?Object(e):e)},KL=Math.max,YL=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=KL(arguments.length,2);for(e=Object(function(e){if(!WL(e))throw new TypeError("Cannot use null or undefined");return e}(e)),o=function(r){try{e[r]=t[r]}catch(o){n||(n=o)}},r=1;r<i;++r)qL(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},XL=Array.prototype.forEach,ZL=Object.create,JL=function(e){var t=ZL(null);return XL.call(arguments,(function(e){WL(e)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(e),t)})),t},QL="razdwatrzy",eR=String.prototype.indexOf,tR="function"==typeof QL.contains&&!0===QL.contains("dwa")&&!1===QL.contains("foo")?String.prototype.contains:function(e){return eR.call(this,e,arguments[1])>-1},nR=tO((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],zL(e)?(n=tR.call(e,"c"),r=tR.call(e,"e"),o=tR.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?YL(JL(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],zL(t)?UL(t)?zL(n)?UL(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,zL(e)?(r=tR.call(e,"c"),o=tR.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?YL(JL(i),a):a}})),rR=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},oR=tO((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var r,i;return rR(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n=function(e,t){var n;return rR(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:o=function(e,t){var n,r,o,i;if(rR(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:i},u={on:nR(n),once:nR(r),off:nR(o),emit:nR(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function iR(e){var t=xj.get(e);return null==t&&(t=oR(),xj.set(e,t)),t}var aR=new WeakMap;function uR(e,t){var n=aR.get(e);null==n&&(n=new Set,aR.set(e,n)),n.add(t)}function sR(e){var t=qj.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function lR(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=sR(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=qj.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function cR(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Ym.isElement(t)&&e.isVoid(t),i=Ym.isElement(t)&&e.isInline(t),a=yj.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(Aj.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=sR(e);if(null==h)return r;var g,v=h.top,y=h.left,m=h.width,b=h.height,w={},E=s-v,x=l-y;if("bar"===n)return w.left=x+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if("modal"===n)return o?i?x>(m-f)/2?w.right=m-x+5+"px":w.left=x+f+5+"px":w.left="20px":w.left=x+"px",o?((g=E)<0&&(g=0),w.top=g+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((g=E+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function fR(e,t){UI((function(){var n=sR(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-u)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),E=parseInt(w.toString())-r;E<0&&(E=0),t.css("left",E+"px")}if(g.indexOf("right")>=0&&c<0){var x=t.css("right"),C=parseInt(x.toString())-Math.abs(c);t.css("right",C+"px")}}}))}var dR=QF("slice"),pR=zO("species"),hR=iO.Array,gR=Math.max;iB({target:"Array",proto:!0,forced:!dR},{slice:function(e,t){var n,r,o,i=Pk(this),a=sk(i),u=Rk(e,a),s=Rk(void 0===t?a:t,a);if(lk(i)&&(n=i.constructor,(yk(n)&&(n===hR||lk(n.prototype))||UO(n)&&null===(n=n[pR]))&&(n=void 0),n===hR||void 0===n))return wN(i,u,s);for(r=new(void 0===n?hR:n)(gR(s-u,0)),o=0;u<s;u++,o++)u in i&&XB(r,o,i[u]);return r.length=o,r}});var vR=Nk.f,yR=hO("".startsWith),mR=hO("".slice),bR=Math.min,wR=zB("startsWith"),ER=!wR&&!!function(){var e=vR(String.prototype,"startsWith");return e&&!e.writable}();iB({target:"String",proto:!0,forced:!ER&&!wR},{startsWith:function(e){var t=hB(vO(this));RB(e);var n=uk(bR(arguments.length>1?arguments[1]:void 0,t.length)),r=hB(e);return yR?yR(t,r,n):mR(t,n,n+r.length)===r}});var xR=Object.assign,CR=Object.defineProperty,SR=hO([].concat),DR=!xR||PO((function(){if(VO&&1!==xR({b:1},xR(CR({},"a",{enumerable:!0,get:function(){CR(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=xR({},e)[n]||aB(xR({},t)).join("")!=r}))?function(e,t){for(var n=mO(e),r=arguments.length,o=1,i=qk.f,a=Tk.f;r>o;)for(var u,s=nk(arguments[o++]),l=i?SR(aB(s),i(s)):aB(s),c=l.length,f=0;c>f;)u=l[f++],VO&&!QO(a,s,u)||(n[u]=s[u]);return n}:xR;iB({target:"Object",stat:!0,forced:Object.assign!==DR},{assign:DR});var AR=["props","attrs","style","dataset","on","hook"];function OR(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!AR.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=PC(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&OR(e)}))}var _R=[],kR={};function BR(e,t,n){return qx(n.isInline(e)?"span":"div",null,t)}function FR(e,t){return void 0===t&&(t=!1),qx("span",{"data-slate-string":!0},t?e+"\n":e)}function TR(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),qx("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?qx("br",null):null)}function PR(e,t,n,r){return dj.set(e,t),pj.set(e,n),Ym.isElement(e)?function(e,t){var n,r=qj.findKey(t,e),o=t.isInline(e),i=tb.isVoid(t,e),a=GI(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=void 0===l?[]:l,f=kR[s]||BR;n=i?null:c.map((function(n,r){return PR(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=eP(ab.texts(e),1),g=eP(h[0],1)[0],v=qx(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},PR(g,0,e,t));d=qx(p,{style:{position:"relative"}},d,v),dj.set(g,0),pj.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return _R.forEach((function(r){n=r(e,t)})),n}(e,d)),UI((function(){var t=jj(a);null!=t&&(vj.set(r,t),yj.set(e,t),gj.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=qj.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=qj.findPath(n,e),a=o([e,i]),u=Db.decorations(e,a),s=u.map((function(r,o){var i,a,s=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=qj.findPath(o,n),u=cb.parent(a);if(tb.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?TR(ab.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==tb.string(o,u)?""===i?TR():t&&"\n"===i.slice(-1)?FR(i,!0):FR(i):TR(0,!0)}(r,o===u.length-1,e,t,n);return i=r,a=s,_R.forEach((function(e){a=e(i,a)})),qx("span",{"data-slate-leaf":!0},s=a)})),l="w-e-text-"+r.id,c=qx("span",{"data-slate-node":"text",id:l,key:r.id},s);return UI((function(){var t=jj(l);null!=t&&(vj.set(r,t),yj.set(e,t),gj.set(t,e))})),c}(e,n,r)}function jR(e,t){var n,r=e.$scroll,o="w-e-textarea-"+e.id,i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),Ox("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=PR(e,n,t,t);return OR(r),r}));var c=lj.get(e);if(null==c&&(c=!0),c){var f=function(e){return rE('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=Dx([Fx,zx,Wx,jx,Rx,kx]))(n,s),lj.set(e,!1),cj.set(e,p)}else{var d=fj.get(e),p=cj.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=jj(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=kj(n);h&&bj.set(t,h)}hj.set(t,n),yj.set(t,n),gj.set(n,t),fj.set(e,s)}}function NR(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function IR(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function LR(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return IR(n.overflowY,t)||IR(n.overflowX,t)||!!(o=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}}(r=e))&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}var r,o;return!1}function RR(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function MR(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!NR(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;NR(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&LR(f)&&!LR(document.documentElement)||null!=f&&LR(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,m=v.width,b=v.top,w=v.right,E=v.bottom,x=v.left,C="start"===o||"nearest"===o?b:"end"===o?E:b+y/2,S="center"===i?x+m/2:"end"===i?w:x,D=[],A=0;A<c.length;A++){var O=c[A],_=O.getBoundingClientRect(),k=_.height,B=_.width,F=_.top,T=_.right,P=_.bottom,j=_.left;if("if-needed"===r&&b>=0&&x>=0&&E<=p&&w<=d&&b>=F&&E<=P&&x>=j&&w<=T)return D;var N=getComputedStyle(O),I=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),R=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),z=0,$=0,H="offsetWidth"in O?O.offsetWidth-O.clientWidth-I-R:0,V="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(l===O)z="start"===o?C:"end"===o?C-p:"nearest"===o?RR(g,g+p,p,L,M,g+C,g+C+y,y):C-p/2,$="start"===i?S:"center"===i?S-d/2:"end"===i?S-d:RR(h,h+d,d,I,R,h+S,h+S+m,m),z=Math.max(0,z+g),$=Math.max(0,$+h);else{z="start"===o?C-F-L:"end"===o?C-P+M+V:"nearest"===o?RR(F,P,k,L,M+V,C,C+y,y):C-(F+k/2)+V/2,$="start"===i?S-j-I:"center"===i?S-(j+B/2)+H/2:"end"===i?S-T+R+H:RR(j,T,B,I,R+H,S,S+m,m);var U=O.scrollLeft,W=O.scrollTop;C+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-k+V))),S+=U-($=Math.max(0,Math.min(U+$,O.scrollWidth-B+H)))}D.push({el:O,top:z,left:$})}return D}function zR(e){return e===Object(e)&&0!==Object.keys(e).length}function $R(e,t){return Fj(t)&&qj.hasDOMNode(e,t,{editable:!0})}function HR(e,t){if(e.getConfig().readOnly)return!1;var n=VR(e,t)&&qj.toSlateNode(e,t);return tb.isVoid(e,n)}function VR(e,t){return Fj(t)&&qj.hasDOMNode(e,t)}function UR(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=qj.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=hj.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=qj.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&mb.equals(l,r)){var c=!0;if(mb.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||qj.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&qj.toDOMRange(t,r);if(g){mb.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(e,t){var n,r=!e.ownerDocument.documentElement.contains(e);if(zR(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:MR(e,t));if(!r){var o=!1===(n=t)?{block:"end",inline:"nearest"}:zR(n)?n:{block:"start",inline:"nearest"};!function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(MR(e,o),o.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){g&&$j&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=qj.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var WR=new WeakMap,GR=new WeakMap,qR={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"},KR={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"},YR={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},XR=function(e){var t=qR[e],n=KR[e],r=YR[e],o=t&&VC(t),i=n&&VC(n),a=r&&VC(r);return function(e){return!(!o||!o(e))||!!(zj&&i&&i(e))||!(zj||!a||!a(e))}},ZR={isBold:XR("bold"),isCompose:XR("compose"),isMoveBackward:XR("moveBackward"),isMoveForward:XR("moveForward"),isDeleteBackward:XR("deleteBackward"),isDeleteForward:XR("deleteForward"),isDeleteLineBackward:XR("deleteLineBackward"),isDeleteLineForward:XR("deleteLineForward"),isDeleteWordBackward:XR("deleteWordBackward"),isDeleteWordForward:XR("deleteWordForward"),isExtendBackward:XR("extendBackward"),isExtendForward:XR("extendForward"),isExtendLineBackward:XR("extendLineBackward"),isExtendLineForward:XR("extendLineForward"),isItalic:XR("italic"),isMoveLineBackward:XR("moveLineBackward"),isMoveLineForward:XR("moveLineForward"),isMoveWordBackward:XR("moveWordBackward"),isMoveWordForward:XR("moveWordForward"),isRedo:XR("redo"),isSplitBlock:XR("splitBlock"),isTransposeCharacter:XR("transposeCharacter"),isUndo:XR("undo"),isTab:XR("tab"),isSelectAll:XR("selectAll")};function JR(e){e.preventDefault()}var QR={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(Gj&&!o&&$R(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=eP(r.getTargetRanges(),1)[0];if(s){var l=qj.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&mb.equals(i,l)||Vb.select(n,l)}}if(i&&mb.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";tb.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":tb.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":tb.deleteForward(n);break;case"deleteContentBackward":tb.deleteBackward(n);break;case"deleteEntireSoftLine":tb.deleteBackward(n,{unit:"line"}),tb.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":tb.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":tb.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":tb.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":tb.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":tb.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":tb.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":tb.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!Cj.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&tb.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&$R(n,r.target)){var a=qj.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===qj.toDOMNode(n,n)||Bj(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&Fj(u)&&qj.hasDOMNode(n,u)){var s=qj.toSlateNode(n,u);if(Ym.isElement(s)&&!n.isVoid(s))return}if(Hj){var l=a.getSelection();null==l||l.removeAllRanges()}wj.delete(n)}}}},focus:function(e,t,n){var r=qj.toDOMNode(n,n),o=qj.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,$j&&e.target!==r?r.focus():wj.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&VR(n,e.target)&&Fj(e.target)){var r=qj.toSlateNode(n,e.target),o=qj.findPath(n,r);if(tb.hasPath(n,o)&&ab.get(n,o)===r){var i=tb.start(n,o),a=tb.end(n,o),u=tb.void(n,{at:i}),s=tb.void(n,{at:a});if(u&&s&&cb.equals(u[1],s[1])){var l=tb.range(n,i);Vb.select(n,l)}}}},compositionstart:function(e,t,n){if($R(n,e.target)){var r=n.selection;if(r&&mb.isExpanded(r)&&(tb.deleteFragment(n),Promise.resolve().then((function(){UR(t,n,!0)}))),r&&mb.isCollapsed(r)){var o=qj.toDOMRange(n,r).startContainer,i=o.textContent||"";WR.set(n,i),GR.set(n,o)}t.isComposing=!0,a=t,(u=n).getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&(null===(s=a.$placeholder)||void 0===s||s.hide(),a.showPlaceholder=!1)}var a,u,s},compositionend:function(e,t,n){var r=e;if($R(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(Wj||$j)&&qj.cleanExposedTexNodeInSelectionBlock(n);for(var i=mb.isBackward(o)?o.focus:o.anchor,a=eP(tb.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=eP(tb.node(n,i.path.slice(0,u+1)),1)[0];if(Ym.isElement(s)&&((Hj||$j)&&"link"===s.type||"code"===s.type)){qj.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=qj.getLeftLengthOfMaxLength(n);c<l.length?(qj.toDOMRange(n,o).startContainer.textContent=WR.get(n)||"",c>0&&tb.insertText(n,l.slice(0,c)),t.changeViewState()):tb.insertText(n,l)}else tb.insertText(n,l);Hj||setTimeout((function(){var e=n.selection;if(null!=e){var t=GR.get(n);null!=t&&qj.toDOMRange(n,e).startContainer!==t&&(t.textContent=WR.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){$R(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&$R(n,r.target)){if(function(e,t){var n=nj.get(e),r=n&&n.getMenus(),o=oj.get(e),i=o&&o.getMenus(),a=JT(JT({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&HC(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),ZR.isTab(r))return JR(r),void n.handleTab();if(ZR.isRedo(r))return JR(r),void("function"==typeof n.redo&&n.redo());if(ZR.isUndo(r))return JR(r),void("function"==typeof n.undo&&n.undo());if(ZR.isMoveLineBackward(r))return JR(r),void Vb.move(n,{unit:"line",reverse:!0});if(ZR.isMoveLineForward(r))return JR(r),void Vb.move(n,{unit:"line"});if(ZR.isExtendLineBackward(r))return JR(r),void Vb.move(n,{unit:"line",edge:"focus",reverse:!0});if(ZR.isExtendLineForward(r))return JR(r),void Vb.move(n,{unit:"line",edge:"focus"});if(ZR.isMoveBackward(r))return JR(r),void(o&&mb.isCollapsed(o)?Vb.move(n,{reverse:!0}):Vb.collapse(n,{edge:"start"}));if(ZR.isMoveForward(r))return JR(r),void(o&&mb.isCollapsed(o)?Vb.move(n):Vb.collapse(n,{edge:"end"}));if(ZR.isMoveWordBackward(r))return JR(r),o&&mb.isExpanded(o)&&Vb.collapse(n,{edge:"focus"}),void Vb.move(n,{unit:"word",reverse:!0});if(ZR.isMoveWordForward(r))return JR(r),o&&mb.isExpanded(o)&&Vb.collapse(n,{edge:"focus"}),void Vb.move(n,{unit:"word"});if(ZR.isSelectAll(r))return JR(r),void n.selectAll();if(Gj){if((Wj||Hj)&&o&&(ZR.isDeleteBackward(r)||ZR.isDeleteForward(r))&&mb.isCollapsed(o)){var i=ab.parent(n,o.anchor.path);if(Ym.isElement(i)&&tb.isVoid(n,i)&&tb.isInline(n,i))return r.preventDefault(),void Vb.delete(n,{unit:"block"})}}else{if(ZR.isBold(r)||ZR.isItalic(r)||ZR.isTransposeCharacter(r))return void JR(r);if(ZR.isSplitBlock(r))return JR(r),void tb.insertBreak(n);if(ZR.isDeleteBackward(r))return JR(r),void(o&&mb.isExpanded(o)?tb.deleteFragment(n,{direction:"backward"}):tb.deleteBackward(n));if(ZR.isDeleteForward(r))return JR(r),void(o&&mb.isExpanded(o)?tb.deleteFragment(n,{direction:"forward"}):tb.deleteForward(n));if(ZR.isDeleteLineBackward(r))return JR(r),void(o&&mb.isExpanded(o)?tb.deleteFragment(n,{direction:"backward"}):tb.deleteBackward(n,{unit:"line"}));if(ZR.isDeleteLineForward(r))return JR(r),void(o&&mb.isExpanded(o)?tb.deleteFragment(n,{direction:"forward"}):tb.deleteForward(n,{unit:"line"}));if(ZR.isDeleteWordBackward(r))return JR(r),void(o&&mb.isExpanded(o)?tb.deleteFragment(n,{direction:"backward"}):tb.deleteBackward(n,{unit:"word"}));if(ZR.isDeleteWordForward(r))return JR(r),void(o&&mb.isExpanded(o)?tb.deleteFragment(n,{direction:"forward"}):tb.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Gj&&!n.getConfig().readOnly&&$R(n,e.target)){e.preventDefault();var r=e.key;tb.insertText(n,r)}},copy:function(e,t,n){var r=e;if($R(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&$R(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(mb.isExpanded(o))tb.deleteFragment(n);else{var a=ab.parent(n,o.anchor.path);tb.isVoid(n,a)&&Vb.delete(n)}}},paste:function(e,t,n){Cj.set(n,!0);var r,o=e;if(!n.getConfig().readOnly&&$R(n,o.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,o))return void Cj.set(n,!1);if(!Gj||(r=o).clipboardData&&""!==r.clipboardData.getData("text/plain")&&1===r.clipboardData.types.length){o.preventDefault();var a=o.clipboardData;null!=a&&n.insertData(a)}}},dragover:function(e,t,n){if(VR(n,e.target)){var r=qj.toSlateNode(n,e.target);tb.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(VR(n,r.target)&&!n.getConfig().readOnly){var o=qj.toSlateNode(n,r.target),i=qj.findPath(n,o);if(tb.isVoid(n,o)||tb.void(n,{at:i,voids:!0})){var a=tb.range(n,i);Vb.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&VR(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&VR(n,r.target)&&null!=o&&!(Gj&&Hj&&o.files.length>0)){r.preventDefault();var i=n.selection,a=qj.findEventRange(n,r);Vb.select(n,a),t.isDraggingInternally&&(i&&Vb.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},eM=1,tM=function(){function e(e){var t=this;this.id=eM++,this.$textArea=null,this.$progressBar=rE('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=rE('<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=hx((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=qj.findDocumentOrShadowRoot(t),a=i.activeElement,u=qj.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,wj.set(t,!0)):wj.delete(t),!s)return Vb.deselect(t);var l=s.anchorNode,c=s.focusNode,f=$R(t,l)||HR(t,l),d=$R(t,c)||HR(t,c);if(f&&d){var p=qj.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});Vb.select(t,p)}else Vb.deselect(t)}}(t,e)}),100);var n=rE(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=rE('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=rE('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,UI((function(){var e=t.editorInstance,n=qj.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=ej.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(ZE(QR,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",hx((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-qj.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;jR(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=rE('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),UI((function(){UR(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function nM(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&&nM(t)}function rM(){return rE('<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 oM(){return rE('<div class="w-e-bar-divider"></div>')}function iM(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=zj?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}kT("match",(function(e,t,n){return[function(t){var n=vO(this),r=null==t?void 0:u_(t,e);return r?QO(r,t,n):new RegExp(t)[e](hB(n))},function(e){var r=ZO(this),o=hB(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return zT(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=zT(r,o));){var c=hB(u[0]);s[l]=c,""===c&&(r.lastIndex=FT(o,uk(r.lastIndex),a)),l++}return 0===l?null:s}]}));var aM=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=rE('<div class="w-e-bar-item"></div>'),this.$button=rE('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=rE(c);nM(d),f.append(d)}else f.text(a);iM(f,c,a,s,n),n&&c&&f.append(rE('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),UI((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),bM(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=bM(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=bM(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=bM(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),uM=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return ZT(t,e),t.prototype.onButtonClick=function(){},t}(aM),sM=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=aj.get(e);null==t&&(t=new Set,aj.set(e,t)),t.add(this),uj.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=uj.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=uj.get(this);e&&e.emit("modalOrPanelHide")}},e}(),lM=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=rE('<div class="w-e-drop-panel"></div>'),n}return ZT(t,e),t.prototype.genSelfElem=function(){return null},t}(sM),cM=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=rM();o.$button.append(i)}return o}return ZT(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=bM(this);if(null==this.dropPanel){var n=new lM(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(aM),fM=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=rE('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return ZT(t,e),t.prototype.genSelfElem=function(){var e=this,t=rE('<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>'),n=uj.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(sM);function dM(e,t,n){var r=rE('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=rE('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function pM(e,t){var n=rE('<div class="button-container"></div>'),r=rE('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var hM=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=rE("body"),o.modal=null,o.menu=n,o}return ZT(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=bM(this),t=this.menu.getModalPositionNode(e);return Ym.isElement(t)?cR(e,t,"modal"):lR(e)},t.prototype.handleModal=function(){var e=bM(this),t=this.menu;if(null==this.modal){var n=new fM(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=bM(this),r=this.menu;if(null!=r.getModalContentElem){var o=qj.getTextarea(n),i=qj.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||fR(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(aM),gM=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=rE('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return ZT(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=rE("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=rE('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=rE('<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>');a.append(u),a.addClass("selected")}a.append(rE('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(sM),vM=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=rE('<div class="w-e-bar-item"></div>'),this.$button=rE('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),iM(f,s,i,c,n),this.$elem.append(f),this.menu=t,UI((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),bM(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=bM(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new gM(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=rE(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=bM(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=bM(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=rM();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=bM(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),yM=function(){function e(e){this.$elem=rE('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=rE('<div class="w-e-bar-item-menus-container"></div>'),this.$button=rE('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=rE(n);nM(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=rM();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){rE(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),mM=new WeakMap;function bM(e){var t=ij.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function wM(e,t,n){void 0===n&&(n=!1);var r=mM.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new cM(e,t,n):a?new hM(e,t,n):new uM(e,t,n)}if("select"===o&&(r=new vM(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return mM.set(t,r),r}function EM(e,t){var n=e.selection;return null!=n&&!mb.isCollapsed(n)&&!qj.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Db.isText(t)}var xM=function(){function e(){var e=this;this.$elem=rE('<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=iS((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&Ym.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),UI((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),qj.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.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 e=this;UI((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=oM();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=Xj[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=wM(e,r);this.hoverbarItems.push(i),ij.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Ym.isElement(e)){var r=cR(t,e,"bar");return n.css(r),void fR(t,n)}if(Db.isText(e))return r=lR(t),n.css(r),void fR(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return qj.checkNodeType(t,o)},c=eP(tb.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1)[0];if(null!=c)return n=c[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=rj.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=EM),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=qj.findPath(null,e),r=qj.findPath(null,t);return cb.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function CM(e,t,n,r){if(dj.set(e,t),pj.set(e,n),Ym.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return CM(t,n,e,r)})),tb.isVoid(r,e)){var i=eP(ab.texts(e),1),a=eP(i[0],1)[0];dj.set(a,0),pj.set(a,e)}}}function SM(e){var t,n=e.selector,r=void 0===n?"":n,o=e.config,i=void 0===o?{}:o,a=e.content,u=e.html,s=e.plugins,l=void 0===s?[]:s,c=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];dB.withoutSaving(t,(()=>{tb.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];dB.withoutSaving(t,(()=>{tb.withoutNormalizing(t,(()=>{var e=r.map(lb.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var r,o,{operations:i,history:a}=t,{undos:u}=a,s=u[u.length-1],l=s&&s[s.length-1],c=(r=e,!(!(o=l)||"set_selection"!==r.type||"set_selection"!==o.type)),f=dB.isSaving(t),d=dB.isMerging(t);if(null==f&&(f=(e=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),f){if(null==d&&(d=null!=s&&(0!==i.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!cb.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!cb.equals(e.path,t.path)))(e,l)||c)),s&&d)c&&s.pop(),s.push(e);else{var p=[e];u.push(p)}for(;u.length>100;)u.shift();(e=>"set_selection"!==e.type)(e)&&(a.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=qj.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=qj.getLeftLengthOfMaxLength(t);n<=0||n<ab.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(qj.getLeftLengthOfMaxLength(t)<ab.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=qj.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e,r<Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===Oj.TEXT_NODE?e+(t.textContent||""):n===Oj.ELEMENT_NODE?LL.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"").length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=iR(t);if(r.on(e,n),"destroyed"===e&&uR(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),uR(t,o)}},t.once=function(e,n){iR(t).once(e,n)},t.off=function(e,n){iR(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=iR(t);o.emit.apply(o,tP([e],eP(n))),"destroyed"===e&&(function(e){return aR.get(e)||new Set}(t).forEach((function(e){return o.off("destroyed",e)})),function(e){aR.set(e,new Set)}(t))},t}(function(e){var t=e;return t.select=function(e){Vb.select(t,e)},t.deselect=function(){var n=t.selection,r=qj.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&Vb.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||Vb.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=Ej.get(t);null!=e&&(t.focus(),Vb.select(t,e))},t.getSelectionPosition=function(){return lR(t)},t.getNodePosition=function(e){return cR(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=eP(mb.edges(e),2),r=n[0],o=n[1],i=eP(tb.edges(t,[]),2),a=i[0],u=i[1];return!(!hb.equals(r,a)||!hb.equals(o,u))},t.selectAll=function(){var e=tb.start(t,[]),n=tb.end(t,[]);Vb.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=QT(tb.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=eP(p.value,2),g=h[0],v=h[1],y=qj.findKey(t,g);f.push([v,y])}}catch(O){n={error:O}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=QT(tb.levels(t,{at:cb.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=eP(b.value,2);g=w[0],v=w[1],y=qj.findKey(t,g),f.push([v,y])}}catch(O){i={error:O}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var E=QT(tb.levels(t,{at:cb.common(cb.parent(e.path),cb.parent(e.newPath))})),x=E.next();!x.done;x=E.next()){var C=eP(x.value,2);g=C[0],v=C[1],y=qj.findKey(t,g),f.push([v,y])}}catch(O){u={error:O}}finally{try{x&&!x.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var S=QT(f),D=S.next();!D.done;D=S.next()){var A=eP(D.value,2);v=A[0],y=A[1],g=eP(tb.node(t,v),1)[0],mj.set(g,y)}}catch(O){l={error:O}}finally{try{D&&!D.done&&(c=S.return)&&c.call(S)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&mb.isCollapsed(e.selection)){var r=tb.above(e,{match:function(t){return tb.isBlock(e,t)},at:e.selection});if(r){var o=eP(r,2)[1],a=tb.range(e,o,e.selection.anchor),u=function(e,t){var n=tb.range(e,mb.end(t)),r=Array.from(tb.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(KI(e,tb.range(e,r[o]),n))return tb.range(e,r[o],n);if(r.length<2)return tb.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)KI(e,tb.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return tb.range(e,r[i],n)}(t,a);mb.isCollapsed(u)||Vb.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&Ej.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return WI(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return ab.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":tb.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=tb.nodes(t,{at:[],universal:!0});try{for(var u=QT(a),s=u.next();!s.done;s=u.next()){var l=eP(s.value,1)[0];if(Ym.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=GI(qj.findKey(t,l).id);i.push(JT(JT({},l),{id:c}))}}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(Ym.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(Db.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){Vb.delete(t,{at:{anchor:tb.start(t,[]),focus:tb.end(t,[])}}),0===t.children.length&&Vb.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return qj.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(0!==(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===Oj.TEXT_NODE||t===Oj.ELEMENT_NODE&&!LL.has(n.toLowerCase())}))).length){var i=t.selection;if(null!=i){var a=null;qj.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==Oj.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(YI.includes(r.toLowerCase()))s=!0;else for(var l in JI)if(a.matches(l)){s=!0;break}if(s){var c=kL(rE(a),t);return Array.isArray(c)?(c.forEach((function(e){return RL(t,e)})),u++):(RL(t,c),u++),void(qj.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;qj.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&qj.isEmptyPath(t,a)&&Vb.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=FL(t,e);if(Vb.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(a){t.select(tb.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in Xj)e.push(t);return e},t.getConfig=function(){var e=sj.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}((t=ML((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of tb.pathRefs(e))fb.transform(n,t);for(var r of tb.pointRefs(e))gb.transform(r,t);for(var o of tb.rangeRefs(e))bb.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=fm.get(e)||[],l=bm(t);for(var c of s)u(cb.transform(c,t));for(var f of l)u(f);fm.set(e,a),Vb.transform(e,t),e.operations.push(t),tb.normalize(e),"set_selection"===t.type&&(e.marks=null),dm.get(e)||(dm.set(e,!0),Promise.resolve().then((()=>{dm.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(mb.isExpanded(r))Vb.setNodes(e,{[t]:n},{match:Db.isText,split:!0});else{var o=mm(mm({},tb.marks(e)||{}),{},{[t]:n});e.marks=o,dm.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&mb.isCollapsed(n)&&Vb.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&mb.isCollapsed(n)&&Vb.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&mb.isExpanded(n)&&Vb.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?ab.fragment(e,t):[]},insertBreak:()=>{Vb.splitNodes(e,{always:!0})},insertFragment:t=>{Vb.insertFragment(e,t)},insertNode:t=>{Vb.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=mm({text:t},r);Vb.insertNodes(e,o)}else Vb.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Db.isText(n))if(Ym.isElement(n)&&0===n.children.length)Vb.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!tb.isEditor(n)&&Ym.isElement(n)&&(e.isInline(n)||0===n.children.length||Db.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=ab.get(e,r);if(!Db.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(Db.isText(s)||Ym.isElement(s)&&e.isInline(s))!==o?(Vb.removeNodes(e,{at:r.concat(i),voids:!0}),i--):Ym.isElement(s)?e.isInline(s)&&(null!=l&&Db.isText(l)?c&&(Vb.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(Vb.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&Db.isText(l)&&(Db.equals(s,l,{loose:!0})?(Vb.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(Vb.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(Vb.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(mb.isExpanded(n))Vb.unsetNodes(e,t,{match:Db.isText,split:!0});else{var r=mm({},tb.marks(e)||{});delete r[t],e.marks=r,dm.get(e)||e.onChange()}}};return e})()),t.id="wangEditor-"+Kj++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(qj.toDOMNode(t,t).focus({preventScroll:!0}),wj.set(t,!0),e){var n=tb.end(t,[]);Vb.select(t,n)}else{var r=Ej.get(t);r?Vb.select(t,r):Vb.select(t,tb.start(t,[]))}},t.isFocused=function(){return!!wj.get(t)},t.blur=function(){qj.toDOMNode(t,t).blur(),Vb.deselect(t),wj.set(t,!1)},t.updateView=function(){qj.getTextarea(t).changeViewState();var e=qj.getToolbar(t);e&&e.changeToolbarState();var n=qj.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=qj.getTextarea(t);e.destroy(),QP.delete(t),ej.delete(e);var n=qj.getToolbar(t);n&&(n.destroy(),nj.delete(t),tj.delete(n));var r=qj.getHoverbar(t);r&&(r.destroy(),oj.delete(t),rj.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(t.getConfig().scroll){var n=rE("#"+e);if(0!==n.length){var r=n[0];if(!qj.hasDOMNode(t,r))return;var o=qj.getTextarea(t),i=o.$textAreaContainer,a=o.$scroll,u=n.offset().top,s=i.offset().top;a[0].scrollBy({top:u-s,behavior:"smooth"})}}},t.showProgressBar=function(e){e<1||qj.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=aj.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return qj.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=qj.getToolbar(t);n&&(e=n.$box);var r=qj.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=qj.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return qj.getTextarea(t).$textAreaContainer[0]},t)))))));if(r&&function(e,t){return BL(e,"data-w-e-textarea",t)}(c,r))throw new Error("Repeated create editor by selector '"+r+"'");var f=function(e){void 0===e&&(e={});var t=aS(Yj),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return ZE(t,(function(e,t){n[t]=JT(JT({},e),o[t]||{})})),delete e.MENU_CONF,JT({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(i);sj.set(c,f);var d=f.hoverbarKeys,p=void 0===d?{}:d;if(l.forEach((function(e){c=e(c)})),null!=u&&(c.children=FL(c,u)),a&&a.length&&(c.children=a),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),qj.normalizeContent(c),r){var h=new tM(r);QP.set(c,h),ej.set(h,c),h.changeViewState(),UI((function(){var e=h.$scroll;null!=e&&e.height()}));var g=void 0;Object.keys(p).length>0&&(g=new xM,rj.set(g,c),oj.set(c,g)),c.on("change",(function(){c.hidePanelOrModal()})),c.on("scroll",(function(){c.hidePanelOrModal()}))}else c.children.forEach((function(e,t){return CM(e,t,c,c)}));var v=f.onCreated,y=f.onDestroyed;return v&&c.on("created",(function(){return v(c)})),y&&c.on("destroyed",(function(){return y(c)})),UI((function(){return c.emit("created")})),c}var DM=QF("splice"),AM=iO.TypeError,OM=Math.max,_M=Math.min;iB({target:"Array",proto:!0,forced:!DM},{splice:function(e,t){var n,r,o,i,a,u,s=mO(this),l=sk(s),c=Rk(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=_M(OM(ik(t),0),l-c)),l+n-r>9007199254740991)throw AM("Maximum allowed length exceeded");for(o=wk(s,r),i=0;i<r;i++)(a=c+i)in s&&XB(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var kM=function(){function e(e,t){var n=this;this.$toolbar=rE('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=iS((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=rE(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),UI((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,l=void 0===s?[]:s,c=aS(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=oM();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=new yM(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof yM,o=this.menus,i=o[e];if(null==i){var a=Xj[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}var u=wM(e,i,r);this.toolbarItems.push(u),ij.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=tj.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),BM=R_.EXISTS,FM=h_.f,TM=Function.prototype,PM=hO(TM.toString),jM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,NM=hO(jM.exec);function IM(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,E=e.onSuccess,x=void 0===E?function(e,t){}:E,C=e.onError,S=void 0===C?function(e,t,n){}:C,D=e.onProgress,A=void 0===D?function(e){}:D;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;d&&(O=function(e,t){var n=eP(e.split("#"),2),r=n[0],o=n[1],i=[];ZE(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(O,c));var _=new kD({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(QA,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:m});return _.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{x(e,r)}catch(o){}_.removeFile(e.id)})),_.on("progress",(function(e){e<1||A(e)})),_.on("upload-error",(function(e,t,n){try{S(e,t,n)}catch(r){}_.removeFile(e.id)})),_.on("restriction-failed",(function(e,t){try{S(e,t)}catch(n){}_.removeFile(e.id)})),_}function LM(e){return(LM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function RM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){RM(e,t,n[t])}))}return e}function zM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $M(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 HM(e,t,n){return t&&$M(e.prototype,t),n&&$M(e,n),e}function VM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UM(e,t){if(t&&("object"===LM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return VM(e)}function WM(e){return(WM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function GM(e,t){return(GM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qM(e,t){if("function"!=typeof t&&null!==t)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&&GM(e,t)}VO&&!BM&&FM(TM,"name",{configurable:!0,get:function(){try{return NM(jM,PM(this))[1]}catch($u){return""}}});var KM={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]}},YM=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zM(this,e),this.init(t,n)}return HM(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||KM,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,MM({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),XM=function(){function e(){zM(this,e),this.observers={}}return HM(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)}));this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function ZM(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function JM(e){return null==e?"":""+e}function QM(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function ez(e,t,n){var r=QM(e,t,Object);r.obj[r.k]=n}function tz(e,t){var n=QM(e,t),r=n.obj,o=n.k;if(r)return r[o]}function nz(e,t,n){var r=tz(e,n);return void 0!==r?r:tz(t,n)}function rz(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):rz(e[r],t[r],n):e[r]=t[r]);return e}function oz(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var iz={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function az(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return iz[e]})):e}var uz="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function sz(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var l=r.slice(i+a).join(n);return l?sz(s,l,n):void 0}o=o[r[i]]}return o}}var lz=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return zM(this,e),n=UM(this,WM(e).call(this)),uz&&XM.call(VM(n)),n.data=t||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return qM(e,XM),HM(e,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=tz(this.data,a);return u||!i||"string"!=typeof n?u:sz(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),ez(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=tz(this.data,a)||{};r?rz(u,n,o):u=MM({},u,n),ez(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?MM({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),e}(),cz={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},fz={},dz=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return zM(this,e),n=UM(this,WM(e).call(this)),uz&&XM.call(VM(n)),function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,VM(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=YM.create("translator"),n}return qM(e,XM),HM(e,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(t,n,r){var o=this;if("object"!==LM(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(t[t.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(t,n),h=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&h&&("string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof m||"[object Array]"!==y)){if(!n.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(g,h,MM({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var w="[object Array]"===y,E=w?[]:{},x=w?v:g;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var S="".concat(x).concat(i).concat(C);E[C]=this.translate(S,MM({},n,{joinArrays:!1,ns:s})),E[C]===S&&(E[C]=h[C])}h=E}}else if(b&&"string"==typeof m&&"[object Array]"===y)(h=h.join(m))&&(h=this.extendTranslation(h,t,n,r));else{var D=!1,A=!1,O=void 0!==n.count&&"string"!=typeof n.count,_=e.hasDefaultValue(n),k=O?this.pluralResolver.getSuffix(c,n.count):"",B=n["defaultValue".concat(k)]||n.defaultValue;!this.isValidLookup(h)&&_&&(D=!0,h=B),this.isValidLookup(h)||(A=!0,h=u);var F=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:h,T=_&&B!==h&&this.options.updateMissing;if(A||D||T){if(this.logger.log(T?"updateKey":"missingKey",c,l,u,T?B:h),i){var P=this.resolve(u,MM({},n,{keySeparator:!1}));P&&P.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 j=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var I=0;I<N.length;I++)j.push(N[I]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var L=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,T?r:F,T,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,T?r:F,T,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?j.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){L([e],u+t,n["defaultValue".concat(t)]||B)}))})):L(j,u,B))}h=this.extendTranslation(h,t,n,p,r),A&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(A||D)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(MM({},n,{interpolation:MM({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=MM({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=cz.handle(d,e,t,this.options&&this.options.postProcessPassResolved?MM({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!fz["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(fz["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" 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!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}]),e}();function pz(e){return e.charAt(0).toUpperCase()+e.slice(1)}var hz=function(){function e(t){zM(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=YM.create("languageUtils")}return HM(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=pz(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=pz(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=pz(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){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(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),gz=[{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}],vz={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(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 Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};var yz=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zM(this,e),this.languageUtils=t,this.options=n,this.logger=YM.create("pluralResolver"),this.rules=function(){var e={};return gz.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:vz[t.fc]}}))})),e}()}return HM(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),mz=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};zM(this,e),this.logger=YM.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return HM(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:az,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?oz(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?oz(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?oz(t.nestingPrefix):t.nestingPrefixEscaped||oz("$t("),this.nestingSuffix=t.nestingSuffix?oz(t.nestingSuffix):t.nestingSuffixEscaped||oz(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=nz(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,MM({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(nz(t,s,a),l,n,MM({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=JM(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=MM({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=MM({},t,a))}catch(i){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),i),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=JM(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,MM({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),bz=function(){function e(t,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return zM(this,e),o=UM(this,WM(e).call(this)),uz&&XM.call(VM(o)),o.backend=t,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=YM.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return qM(e,XM),HM(e,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,u,s,l,c;r=n.loaded,u=i,s=QM(r,[o],Object),l=s.obj,c=s.k,l[c]=l[c]||[],l[c].push(u),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=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."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" 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!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,MM({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),e}();function wz(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(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 Ez(){}var xz=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(zM(this,e),t=UM(this,WM(e).call(this)),uz&&XM.call(VM(t)),t.options=wz(n),t.services={},t.logger=YM,t.modules={external:[]},r&&!t.isInitialized&&!n.isClone){if(!t.options.initImmediate)return t.init(n,r),UM(t,VM(t));setTimeout((function(){t.init(n,r)}),0)}return t}return qM(e,XM),HM(e,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.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=MM({},{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("object"===LM(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===LM(e[2])||"object"===LM(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}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}},this.options,wz(t)),this.format=this.options.interpolation.format,n||(n=Ez),!this.options.isClone){this.modules.logger?YM.init(r(this.modules.logger),this.options):YM.init(null,this.options);var o=new hz(this.options);this.store=new lz(this.options.resources,this.options);var i=this.services;i.logger=YM,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new yz(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new mz(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new bz(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new dz(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var u=ZM(),s=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ez,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(r)i(r);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)}));this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=ZM();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Ez),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&cz.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=ZM();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){var o,a;o=e,(a=i)?(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(o,(function(){return n.t.apply(n,arguments)}))}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==LM(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=MM({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?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 r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=ZM();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=ZM();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["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(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ez,o=MM({},this.options,n,{isClone:!0}),i=new e(o);return["store","services","language"].forEach((function(e){i[e]=t[e]})),i.services=MM({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new dz(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),Cz=new xz;function Sz(e,t){Cz.addResourceBundle(e,"translation",t,!0,!0)}Cz.init({lng:"zh-CN",resources:{}});var Dz=Cz.t.bind(Cz);Sz("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Sz("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Az=Rp?{}.toString:function(){return"[object "+Hp(this)+"]"};Rp||ap(Object.prototype,"toString",Az,{unsafe:!0});var Oz,_z=Array.isArray||function(e){return"Array"==Bf(e)},kz=function(){},Bz=[],Fz=Mf("Reflect","construct"),Tz=/^\s*(?:class|function)\b/,Pz=Of(Tz.exec),jz=!Tz.exec(kz),Nz=function(e){if(!Lf(e))return!1;try{return Fz(kz,Bz,e),!0}catch(t){return!1}},Iz=!Fz||hf((function(){var e;return Nz(Nz.call)||!Nz(Object)||!Nz((function(){e=!0}))||e}))?function(e){if(!Lf(e))return!1;switch(Hp(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jz||!!Pz(Tz,Hd(e))}:Nz,Lz=bd("species"),Rz=pf.Array,Mz=function(e,t){return new(_z(n=e)&&(r=n.constructor,(Iz(r)&&(r===Rz||_z(r.prototype))||Rf(r)&&null===(r=r[Lz]))&&(r=void 0)),void 0===r?Rz:r)(0===t?0:t);var n,r},zz=Of([].push),$z=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=sd(s),g=Pf(h),v=Xh(l,c),y=gp(g),m=0,b=f||Mz,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:zz(w,d)}else switch(e){case 4:return!1;case 7:zz(w,d)}return i?-1:r||o?o:w}}(0),Hz=!!(Oz=[].forEach)&&hf((function(){Oz.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return $z(this,e,arguments.length>1?arguments[1]:void 0)},Vz=function(e){if(e&&e.forEach!==Hz)try{Ld(e,"forEach",Hz)}catch(t){e.forEach=Hz}};for(var Uz in Hg)Hg[Uz]&&Vz(pf[Uz]&&pf[Uz].prototype);Vz(Wg),Sz("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"}}),Sz("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 Wz={type:"paragraph",renderElem:function(e,t,n){return qx("p",null,t)}},Gz="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function qz(e){var t={exports:{}};return e(t,t.exports),t.exports}var Kz,Yz,Xz=function(e){return e&&e.Math==Math&&e},Zz=Xz("object"==typeof globalThis&&globalThis)||Xz("object"==typeof window&&window)||Xz("object"==typeof self&&self)||Xz("object"==typeof Gz&&Gz)||function(){return this}()||Function("return this")(),Jz=function(e){try{return!!e()}catch(t){return!0}},Qz=!Jz((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),e$=Function.prototype.call,t$=e$.bind?e$.bind(e$):function(){return e$.apply(e$,arguments)},n$={}.propertyIsEnumerable,r$=Object.getOwnPropertyDescriptor,o$=r$&&!n$.call({1:2},1)?function(e){var t=r$(this,e);return!!t&&t.enumerable}:n$,i$={f:o$},a$=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},u$=Function.prototype,s$=u$.bind,l$=u$.call,c$=s$&&s$.bind(l$),f$=s$?function(e){return e&&c$(l$,e)}:function(e){return e&&function(){return l$.apply(e,arguments)}},d$=f$({}.toString),p$=f$("".slice),h$=function(e){return p$(d$(e),8,-1)},g$=Zz.Object,v$=f$("".split),y$=Jz((function(){return!g$("z").propertyIsEnumerable(0)}))?function(e){return"String"==h$(e)?v$(e,""):g$(e)}:g$,m$=Zz.TypeError,b$=function(e){if(null==e)throw m$("Can't call method on "+e);return e},w$=function(e){return y$(b$(e))},E$=function(e){return"function"==typeof e},x$=function(e){return"object"==typeof e?null!==e:E$(e)},C$=function(e,t){return arguments.length<2?function(e){return E$(e)?e:void 0}(Zz[e]):Zz[e]&&Zz[e][t]},S$=f$({}.isPrototypeOf),D$=C$("navigator","userAgent")||"",A$=Zz.process,O$=Zz.Deno,_$=A$&&A$.versions||O$&&O$.version,k$=_$&&_$.v8;k$&&(Yz=(Kz=k$.split("."))[0]>0&&Kz[0]<4?1:+(Kz[0]+Kz[1])),!Yz&&D$&&(!(Kz=D$.match(/Edge\/(\d+)/))||Kz[1]>=74)&&(Kz=D$.match(/Chrome\/(\d+)/))&&(Yz=+Kz[1]);var B$=Yz,F$=!!Object.getOwnPropertySymbols&&!Jz((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&B$&&B$<41})),T$=F$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,P$=Zz.Object,j$=T$?function(e){return"symbol"==typeof e}:function(e){var t=C$("Symbol");return E$(t)&&S$(t.prototype,P$(e))},N$=Zz.String,I$=function(e){try{return N$(e)}catch(t){return"Object"}},L$=Zz.TypeError,R$=function(e){if(E$(e))return e;throw L$(I$(e)+" is not a function")},M$=function(e,t){var n=e[t];return null==n?void 0:R$(n)},z$=Zz.TypeError,$$=Object.defineProperty,H$=function(e,t){try{$$(Zz,e,{value:t,configurable:!0,writable:!0})}catch(Oz){Zz[e]=t}return t},V$=Zz["__core-js_shared__"]||H$("__core-js_shared__",{}),U$=qz((function(e){(e.exports=function(e,t){return V$[e]||(V$[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),W$=Zz.Object,G$=function(e){return W$(b$(e))},q$=f$({}.hasOwnProperty),K$=Object.hasOwn||function(e,t){return q$(G$(e),t)},Y$=0,X$=Math.random(),Z$=f$(1..toString),J$=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Z$(++Y$+X$,36)},Q$=U$("wks"),eH=Zz.Symbol,tH=eH&&eH.for,nH=T$?eH:eH&&eH.withoutSetter||J$,rH=function(e){if(!K$(Q$,e)||!F$&&"string"!=typeof Q$[e]){var t="Symbol."+e;F$&&K$(eH,e)?Q$[e]=eH[e]:Q$[e]=T$&&tH?tH(t):nH(t)}return Q$[e]},oH=Zz.TypeError,iH=rH("toPrimitive"),aH=function(e){var t=function(e){if(!x$(e)||j$(e))return e;var t,n=M$(e,iH);if(n){if(t=t$(n,e,"string"),!x$(t)||j$(t))return t;throw oH("Can't convert object to primitive value")}return function(e){var t,n;if(E$(t=e.toString)&&!x$(n=t$(t,e)))return n;if(E$(t=e.valueOf)&&!x$(n=t$(t,e)))return n;throw z$("Can't convert object to primitive value")}(e)}(e);return j$(t)?t:t+""},uH=Zz.document,sH=x$(uH)&&x$(uH.createElement),lH=function(e){return sH?uH.createElement(e):{}},cH=!Qz&&!Jz((function(){return 7!=Object.defineProperty(lH("div"),"a",{get:function(){return 7}}).a})),fH=Object.getOwnPropertyDescriptor,dH={f:Qz?fH:function(e,t){if(e=w$(e),t=aH(t),cH)try{return fH(e,t)}catch(n){}if(K$(e,t))return a$(!t$(i$.f,e,t),e[t])}},pH=Zz.String,hH=Zz.TypeError,gH=function(e){if(x$(e))return e;throw hH(pH(e)+" is not an object")},vH=Zz.TypeError,yH=Object.defineProperty,mH={f:Qz?yH:function(e,t,n){if(gH(e),t=aH(t),gH(n),cH)try{return yH(e,t,n)}catch(r){}if("get"in n||"set"in n)throw vH("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},bH=Qz?function(e,t,n){return mH.f(e,t,a$(1,n))}:function(e,t,n){return e[t]=n,e},wH=f$(Function.toString);E$(V$.inspectSource)||(V$.inspectSource=function(e){return wH(e)});var EH,xH,CH,SH=V$.inspectSource,DH=Zz.WeakMap,AH=E$(DH)&&/native code/.test(SH(DH)),OH=U$("keys"),_H=function(e){return OH[e]||(OH[e]=J$(e))},kH={},BH=Zz.TypeError,FH=Zz.WeakMap;if(AH||V$.state){var TH=V$.state||(V$.state=new FH),PH=f$(TH.get),jH=f$(TH.has),NH=f$(TH.set);EH=function(e,t){if(jH(TH,e))throw new BH("Object already initialized");return t.facade=e,NH(TH,e,t),t},xH=function(e){return PH(TH,e)||{}},CH=function(e){return jH(TH,e)}}else{var IH=_H("state");kH[IH]=!0,EH=function(e,t){if(K$(e,IH))throw new BH("Object already initialized");return t.facade=e,bH(e,IH,t),t},xH=function(e){return K$(e,IH)?e[IH]:{}},CH=function(e){return K$(e,IH)}}var LH={get:xH,enforce:function(e){return CH(e)?xH(e):EH(e,{})}},RH=Function.prototype,MH=Qz&&Object.getOwnPropertyDescriptor,zH=K$(RH,"name"),$H={EXISTS:zH,PROPER:zH&&"something"===function(){}.name,CONFIGURABLE:zH&&(!Qz||Qz&&MH(RH,"name").configurable)},HH=qz((function(e){var t=$H.CONFIGURABLE,n=LH.get,r=LH.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;E$(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!K$(i,"name")||t&&i.name!==f)&&bH(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Zz?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:bH(e,n,i)):l?e[n]=i:H$(n,i)})(Function.prototype,"toString",(function(){return E$(this)&&n(this).source||SH(this)}))})),VH=Math.ceil,UH=Math.floor,WH=function(e){var t=+e;return t!=t||0===t?0:(t>0?UH:VH)(t)},GH=Math.max,qH=Math.min,KH=function(e,t){var n=WH(e);return n<0?GH(n+t,0):qH(n,t)},YH=Math.min,XH=function(e){return e>0?YH(WH(e),9007199254740991):0},ZH=function(e){return XH(e.length)},JH=function(e){return function(t,n,r){var o,i=w$(t),a=ZH(i),u=KH(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},QH={includes:JH(!0),indexOf:JH(!1)},eV=QH.indexOf,tV=f$([].push),nV=function(e,t){var n,r=w$(e),o=0,i=[];for(n in r)!K$(kH,n)&&K$(r,n)&&tV(i,n);for(;t.length>o;)K$(r,n=t[o++])&&(~eV(i,n)||tV(i,n));return i},rV=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oV=rV.concat("length","prototype"),iV={f:Object.getOwnPropertyNames||function(e){return nV(e,oV)}},aV={f:Object.getOwnPropertySymbols},uV=f$([].concat),sV=C$("Reflect","ownKeys")||function(e){var t=iV.f(gH(e)),n=aV.f;return n?uV(t,n(e)):t},lV=function(e,t){for(var n=sV(t),r=mH.f,o=dH.f,i=0;i<n.length;i++){var a=n[i];K$(e,a)||r(e,a,o(t,a))}},cV=/#|\.prototype\./,fV=function(e,t){var n=pV[dV(e)];return n==gV||n!=hV&&(E$(t)?Jz(t):!!t)},dV=fV.normalize=function(e){return String(e).replace(cV,".").toLowerCase()},pV=fV.data={},hV=fV.NATIVE="N",gV=fV.POLYFILL="P",vV=fV,yV=dH.f,mV=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Zz:l?Zz[u]||H$(u,{}):(Zz[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=yV(n,r))&&a.value:n[r],!vV(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;lV(i,o)}(e.sham||o&&o.sham)&&bH(i,"sham",!0),HH(n,r,i,e)}},bV=f$(f$.bind),wV=Array.isArray||function(e){return"Array"==h$(e)},EV={};EV[rH("toStringTag")]="z";var xV="[object z]"===String(EV),CV=rH("toStringTag"),SV=Zz.Object,DV="Arguments"==h$(function(){return arguments}()),AV=xV?h$:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=SV(e),CV))?n:DV?h$(t):"Object"==(r=h$(t))&&E$(t.callee)?"Arguments":r},OV=function(){},_V=[],kV=C$("Reflect","construct"),BV=/^\s*(?:class|function)\b/,FV=f$(BV.exec),TV=!BV.exec(OV),PV=function(e){if(!E$(e))return!1;try{return kV(OV,_V,e),!0}catch(t){return!1}},jV=!kV||Jz((function(){var e;return PV(PV.call)||!PV(Object)||!PV((function(){e=!0}))||e}))?function(e){if(!E$(e))return!1;switch(AV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return TV||!!FV(BV,SH(e))}:PV,NV=rH("species"),IV=Zz.Array,LV=function(e,t){return new(wV(n=e)&&(r=n.constructor,(jV(r)&&(r===IV||wV(r.prototype))||x$(r)&&null===(r=r[NV]))&&(r=void 0)),void 0===r?IV:r)(0===t?0:t);var n,r},RV=f$([].push),MV=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=G$(s),g=y$(h),v=function(e,t){return R$(e),void 0===t?e:bV?bV(e,t):function(){return e.apply(t,arguments)}}(l,c),y=ZH(g),m=0,b=f||LV,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:RV(w,d)}else switch(e){case 4:return!1;case 7:RV(w,d)}return i?-1:r||o?o:w}},zV={forEach:MV(0),map:MV(1),filter:MV(2),find:MV(5)},$V=rH("species"),HV=function(e){return B$>=51||!Jz((function(){var t=[];return(t.constructor={})[$V]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},VV=zV.filter;mV({target:"Array",proto:!0,forced:!HV("filter")},{filter:function(e){return VV(this,e,arguments.length>1?arguments[1]:void 0)}});var UV=xV?{}.toString:function(){return"[object "+AV(this)+"]"};xV||HH(Object.prototype,"toString",UV,{unsafe:!0});var WV,GV=Zz.String,qV=function(e){if("Symbol"===AV(e))throw TypeError("Cannot convert a Symbol value to a string");return GV(e)},KV=function(){var e=gH(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},YV=Zz.RegExp,XV=Jz((function(){var e=YV("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));XV||Jz((function(){return!YV("a","y").sticky}));var ZV={BROKEN_CARET:XV||Jz((function(){var e=YV("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:XV},JV=Object.keys||function(e){return nV(e,rV)},QV=Qz?Object.defineProperties:function(e,t){gH(e);for(var n,r=w$(t),o=JV(t),i=o.length,a=0;i>a;)mH.f(e,n=o[a++],r[n]);return e},eU=C$("document","documentElement"),tU=_H("IE_PROTO"),nU=function(){},rU=function(e){return"<script>"+e+"<\/script>"},oU=function(e){e.write(rU("")),e.close();var t=e.parentWindow.Object;return e=null,t},iU=function(){try{WV=new ActiveXObject("htmlfile")}catch(r){}var e,t;iU="undefined"!=typeof document?document.domain&&WV?oU(WV):((t=lH("iframe")).style.display="none",eU.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(rU("document.F=Object")),e.close(),e.F):oU(WV);for(var n=rV.length;n--;)delete iU.prototype[rV[n]];return iU()};kH[tU]=!0;var aU,uU,sU=Object.create||function(e,t){var n;return null!==e?(nU.prototype=gH(e),n=new nU,nU.prototype=null,n[tU]=e):n=iU(),void 0===t?n:QV(n,t)},lU=Zz.RegExp,cU=Jz((function(){var e=lU(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),fU=Zz.RegExp,dU=Jz((function(){var e=fU("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),pU=LH.get,hU=U$("native-string-replace",String.prototype.replace),gU=RegExp.prototype.exec,vU=gU,yU=f$("".charAt),mU=f$("".indexOf),bU=f$("".replace),wU=f$("".slice),EU=(uU=/b*/g,t$(gU,aU=/a/,"a"),t$(gU,uU,"a"),0!==aU.lastIndex||0!==uU.lastIndex),xU=ZV.BROKEN_CARET,CU=void 0!==/()??/.exec("")[1];(EU||CU||xU||cU||dU)&&(vU=function(e){var t,n,r,o,i,a,u,s=this,l=pU(s),c=qV(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=t$(vU,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=xU&&s.sticky,h=t$(KV,s),g=s.source,v=0,y=c;if(p&&(h=bU(h,"y",""),-1===mU(h,"g")&&(h+="g"),y=wU(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==yU(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),CU&&(n=new RegExp("^"+g+"$(?!\\s)",h)),EU&&(r=s.lastIndex),o=t$(gU,p?n:s,y),p?o?(o.input=wU(o.input,v),o[0]=wU(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:EU&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),CU&&o&&o.length>1&&t$(hU,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=sU(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var SU=vU;mV({target:"RegExp",proto:!0,forced:/./.exec!==SU},{exec:SU});var DU=Function.prototype,AU=DU.apply,OU=DU.bind,_U=DU.call,kU="object"==typeof Reflect&&Reflect.apply||(OU?_U.bind(AU):function(){return _U.apply(AU,arguments)}),BU=rH("species"),FU=RegExp.prototype,TU=function(e,t,n,r){var o=rH(e),i=!Jz((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Jz((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[BU]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=f$(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=f$(e),s=t.exec;return s===SU||s===FU.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));HH(String.prototype,e,s[0]),HH(FU,o,s[1])}r&&bH(FU[o],"sham",!0)},PU=f$("".charAt),jU=f$("".charCodeAt),NU=f$("".slice),IU=function(e){return function(t,n){var r,o,i=qV(b$(t)),a=WH(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=jU(i,a))<55296||r>56319||a+1===u||(o=jU(i,a+1))<56320||o>57343?e?PU(i,a):r:e?NU(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),LU=function(e,t,n){return t+(n?IU(e,t).length:1)},RU=Math.floor,MU=f$("".charAt),zU=f$("".replace),$U=f$("".slice),HU=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,VU=/\$([$&'`]|\d{1,2})/g,UU=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=VU;return void 0!==o&&(o=G$(o),s=HU),zU(i,s,(function(i,s){var l;switch(MU(s,0)){case"$":return"$";case"&":return e;case"`":return $U(t,0,n);case"'":return $U(t,a);case"<":l=o[$U(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=RU(c/10);return 0===f?i:f<=u?void 0===r[f-1]?MU(s,1):r[f-1]+MU(s,1):i}l=r[c-1]}return void 0===l?"":l}))},WU=Zz.TypeError,GU=function(e,t){var n=e.exec;if(E$(n)){var r=t$(n,e,t);return null!==r&&gH(r),r}if("RegExp"===h$(e))return t$(SU,e,t);throw WU("RegExp#exec called on incompatible receiver")},qU=rH("replace"),KU=Math.max,YU=Math.min,XU=f$([].concat),ZU=f$([].push),JU=f$("".indexOf),QU=f$("".slice),eW="$0"==="a".replace(/./,"$0"),tW=!!/./[qU]&&""===/./[qU]("a","$0");TU("replace",(function(e,t,n){var r=tW?"$":"$0";return[function(e,n){var r=b$(this),o=null==e?void 0:M$(e,qU);return o?t$(o,e,r,n):t$(t,qV(r),e,n)},function(e,o){var i=gH(this),a=qV(e);if("string"==typeof o&&-1===JU(o,r)&&-1===JU(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=E$(o);s||(o=qV(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=GU(i,a);if(null===d)break;if(ZU(f,d),!l)break;""===qV(d[0])&&(i.lastIndex=LU(a,XH(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=qV((d=f[v])[0]),m=KU(YU(WH(d.index),a.length),0),b=[],w=1;w<d.length;w++)ZU(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=XU([y],b,m,a);void 0!==E&&ZU(x,E);var C=qV(kU(o,void 0,x))}else C=UU(y,a,m,b,E,o);m>=g&&(h+=QU(a,g,m)+C,g=m+y.length)}return h+QU(a,g)}]}),!!Jz((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!eW||tW);var nW=rH("unscopables"),rW=Array.prototype;null==rW[nW]&&mH.f(rW,nW,{configurable:!0,value:sU(null)});var oW=function(e){rW[nW][e]=!0},iW=zV.find,aW=!0;"find"in[]&&Array(1).find((function(){aW=!1})),mV({target:"Array",proto:!0,forced:aW},{find:function(e){return iW(this,e,arguments.length>1?arguments[1]:void 0)}}),oW("find");var uW=rH("match"),sW=function(e){var t;return x$(e)&&(void 0!==(t=e[uW])?!!t:"RegExp"==h$(e))},lW=Zz.TypeError,cW=rH("species"),fW=function(e,t,n){var r=aH(t);r in e?mH.f(e,r,a$(0,n)):e[r]=n},dW=Zz.Array,pW=Math.max,hW=function(e,t,n){for(var r=ZH(e),o=KH(t,r),i=KH(void 0===n?r:n,r),a=dW(pW(i-o,0)),u=0;o<i;o++,u++)fW(a,u,e[o]);return a.length=u,a},gW=ZV.UNSUPPORTED_Y,vW=Math.min,yW=[].push,mW=f$(/./.exec),bW=f$(yW),wW=f$("".slice);TU("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=qV(b$(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!sW(e))return t$(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=t$(SU,f,r))&&!((a=f.lastIndex)>c&&(bW(s,wW(r,c,i.index)),i.length>1&&i.index<r.length&&kU(yW,s,hW(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&mW(f,"")||bW(s,""):bW(s,wW(r,c)),s.length>o?hW(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t$(t,this,e,n)}:t,[function(t,n){var o=b$(this),i=null==t?void 0:M$(t,e);return i?t$(i,t,o,n):t$(r,qV(o),t,n)},function(e,o){var i=gH(this),a=qV(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s,l,c,f=(s=RegExp,void 0===(c=gH(i).constructor)||null==(l=gH(c)[cW])?s:function(e){if(jV(e))return e;throw lW(I$(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(gW?"g":"y"),h=new f(gW?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===GU(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=gW?0:y;var b,w=GU(h,gW?wW(a,y):a);if(null===w||(b=vW(XH(h.lastIndex+(gW?y:0)),a.length))===v)y=LU(a,y,d);else{if(bW(m,wW(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(bW(m,w[E]),m.length===g)return m;y=v=b}}return bW(m,wW(a,v)),m}]}),!!Jz((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),gW);var EW="\t\n\v\f\r    \u2028\u2029\ufeff",xW=f$("".replace),CW="["+EW+"]",SW=RegExp("^"+CW+CW+"*"),DW=RegExp(CW+CW+"*$"),AW={trim:function(e){return function(t){var n=qV(b$(t));return 1&e&&(n=xW(n,SW,"")),2&e&&(n=xW(n,DW,"")),n}}(3)},OW=$H.PROPER,_W=AW.trim;function kW(e){return 0===rE("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function BW(e){return 0===e.length?"":e[0].outerHTML}function FW(e){return e.length?e[0].tagName.toLowerCase():""}function TW(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}mV({target:"String",proto:!0,forced:Jz((function(){return!!EW.trim()||"…"!=="…".trim()||OW&&"trim"!==EW.trim.name}))},{trim:function(){return _W(this)}}),mV({global:!0},{globalThis:Zz}),mE&&(rE.fn.css=mE),SE&&(rE.fn.append=SE),DE&&(rE.fn.prepend=DE),oE&&(rE.fn.addClass=oE),iE&&(rE.fn.removeClass=iE),aE&&(rE.fn.hasClass=aE),fE&&(rE.fn.on=fE),dE&&(rE.fn.off=dE),NE&&(rE.fn.focus=NE),uE&&(rE.fn.attr=uE),sE&&(rE.fn.removeAttr=sE),vE&&(rE.fn.hide=vE),yE&&(rE.fn.show=yE),OE&&(rE.fn.parents=OE),lE&&(rE.fn.dataset=lE),cE&&(rE.fn.val=cE),xE&&(rE.fn.text=xE),EE&&(rE.fn.html=EE),kE&&(rE.fn.children=kE),BE&&(rE.fn.remove=BE),_E&&(rE.fn.find=_E),pE&&(rE.fn.width=pE),hE&&(rE.fn.height=hE),wE&&(rE.fn.filter=wE),FE&&(rE.fn.empty=FE);var PW={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=rE(e);return 0===(t=t.filter((function(e){return!!Db.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},jW=function(e,t){return jW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},jW(e,t)};function NW(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}jW(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var IW=function(){return IW=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},IW.apply(this,arguments)};function LW(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{u(r.next(e))}catch(t){o(t)}}function a(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}u((r=r.apply(e,[])).next())}))}function RW(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function MW(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)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 zW(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function $W(e){var t=zW(tb.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Ym.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==ab.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!Db.isText(o[0])&&(Vb.setNodes(e,{type:"paragraph"}),!0)}var HW={renderElems:[Wz],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[PW],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){$W(r)||t(e)},r.deleteForward=function(e){$W(r)||n(e)},r}},VW=/"/g,UW=f$("".replace),WW=function(e,t,n,r){var o=qV(b$(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+UW(qV(r),VW,"&quot;")+'"'),i+">"+o+"</"+t+">"},GW=function(e){return Jz((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function qW(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(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 KW(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}mV({target:"String",proto:!0,forced:GW("bold")},{bold:function(){return WW(this,"b","","")}}),mV({target:"String",proto:!0,forced:GW("italics")},{italics:function(){return WW(this,"i","","")}}),mV({target:"String",proto:!0,forced:GW("sub")},{sub:function(){return WW(this,"sub","","")}}),mV({target:"String",proto:!0,forced:GW("sup")},{sup:function(){return WW(this,"sup","","")}});var YW={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},XW=lH("span").classList,ZW=XW&&XW.constructor&&XW.constructor.prototype,JW=ZW===Object.prototype?void 0:ZW,QW=function(e,t){var n=[][e];return!!n&&Jz((function(){n.call(null,t||function(){throw 1},1)}))},eG=zV.forEach,tG=QW("forEach")?[].forEach:function(e){return eG(this,e,arguments.length>1?arguments[1]:void 0)},nG=function(e){if(e&&e.forEach!==tG)try{bH(e,"forEach",tG)}catch(t){e.forEach=tG}};for(var rG in YW)YW[rG]&&nG(Zz[rG]&&Zz[rG].prototype);function oG(e,t){return null==e.selection||!!zW(tb.nodes(e,{match:function(t){return"pre"===qj.getNodeType(t)||!!tb.isVoid(e,t)},universal:!0}),1)[0]}function iG(e,t){Object.keys(t).forEach((function(t){"text"!==t&&tb.removeMark(e,t)}))}nG(JW),mV({target:"Object",stat:!0,forced:Jz((function(){JV(1)}))},{keys:function(e){return JV(G$(e))}});var aG=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=tb.marks(e);return n?n[t]:!!zW(tb.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return oG(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),uG='<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>',sG='<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>',lG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=Dz("textStyle.bold"),t.iconSvg='<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>',t.hotkey="mod+b",t}return NW(t,e),t}(aG),cG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=Dz("textStyle.code"),t.iconSvg='<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>',t.hotkey="mod+e",t}return NW(t,e),t}(aG),fG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=Dz("textStyle.italic"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',t.hotkey="mod+i",t}return NW(t,e),t}(aG),dG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=Dz("textStyle.through"),t.iconSvg='<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>',t.hotkey="mod+shift+x",t}return NW(t,e),t}(aG),pG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=Dz("textStyle.underline"),t.iconSvg='<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>',t.hotkey="mod+u",t}return NW(t,e),t}(aG),hG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=Dz("textStyle.sub"),t.iconSvg='<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>',t.hotkey="",t}return NW(t,e),t}(aG),gG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=Dz("textStyle.sup"),t.iconSvg='<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>',t.hotkey="",t}return NW(t,e),t}(aG),vG=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return oG(e)},e.prototype.exec=function(e,t){var n,r,o=tb.nodes(e,{match:function(e){return Db.isText(e)},universal:!0});try{for(var i=MW(o),a=i.next();!a.done;a=i.next())iG(e,a.value[0])}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),yG={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=qx("strong",null,c)),a&&(c=qx("code",null,c)),o&&(c=qx("em",null,c)),i&&(c=qx("u",null,c)),u&&(c=qx("s",null,c)),s&&(c=qx("sub",null,c)),l&&(c=qx("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new lG}},{key:"underline",factory:function(){return new pG}},{key:"italic",factory:function(){return new fG}},{key:"through",factory:function(){return new dG}},{key:"code",factory:function(){return new cG}},{key:"sub",factory:function(){return new hG}},{key:"sup",factory:function(){return new gG}},{key:"clearStyle",factory:function(){return new vG}}],styleToHtml:function(e,t){if(!Db.isText(e))return t;if(kW(t))return qW(e,t);var n=rE(t);if("br"===FW(n))return qW(e,"<br>");var r=n.html();return r=qW(e,r),n.html(r),BW(n)},parseStyleHtml:function(e,t,n){var r=rE(e);if(!Db.isText(t))return t;var o=t;return KW(r,"b,strong")&&(o.bold=!0),KW(r,"i,em")&&(o.italic=!0),KW(r,"u")&&(o.underline=!0),KW(r,"s,strike")&&(o.through=!0),KW(r,"sub")&&(o.sub=!0),KW(r,"sup")&&(o.sup=!0),KW(r,"code")&&(o.code=!0),o}};function mG(e){return function(t,n,r){return qx("h"+e,null,n)}}var bG={type:"header1",renderElem:mG(1)},wG={type:"header2",renderElem:mG(2)},EG={type:"header3",renderElem:mG(3)},xG={type:"header4",renderElem:mG(4)},CG={type:"header5",renderElem:mG(5)},SG=$H.PROPER,DG=RegExp.prototype,AG=DG.toString,OG=f$(KV),_G=Jz((function(){return"/a/b"!=AG.call({source:"a",flags:"b"})})),kG=SG&&"toString"!=AG.name;(_G||kG)&&HH(RegExp.prototype,"toString",(function(){var e=gH(this),t=qV(e.source),n=e.flags;return"/"+t+"/"+qV(void 0===n&&S$(DG,e)&&!("flags"in DG)?OG(e):n)}),{unsafe:!0});var BG,FG=Zz.TypeError,TG=function(e){if(sW(e))throw FG("The method doesn't accept regular expressions");return e},PG=rH("match"),jG=function(e){var t=/./;try{"/./"[e](t)}catch(Oz){try{return t[PG]=!1,"/./"[e](t)}catch(n){}}return!1},NG=dH.f,IG=f$("".startsWith),LG=f$("".slice),RG=Math.min,MG=jG("startsWith");function zG(e){var t=zW(tb.nodes(e,{match:function(e){return qj.getNodeType(e).startsWith("header")},universal:!0}),1)[0];if(null==t)return"paragraph";var n=zW(t,1)[0];return qj.getNodeType(n)}function $G(e){return null==e.selection||!zW(tb.nodes(e,{match:function(e){var t=qj.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function HG(e,t){t&&Vb.setNodes(e,{type:t})}mV({target:"String",proto:!0,forced:!(!MG&&(BG=NG(String.prototype,"startsWith"),BG&&!BG.writable)||MG)},{startsWith:function(e){var t=qV(b$(this));TG(e);var n=XH(RG(arguments.length>1?arguments[1]:void 0,t.length)),r=qV(e);return IG?IG(t,r,n):LG(t,n,n+r.length)===r}});var VG=function(){function e(){this.title=Dz("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(e){var t=[{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:Dz("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return zG(e)},e.prototype.isDisabled=function(e){return $G(e)},e.prototype.exec=function(e,t){HG(e,t.toString())},e}(),UG=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return zG(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return $G(e)},e.prototype.exec=function(e,t){var n=this.type;HG(e,t===n?"paragraph":n)},e}(),WG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return NW(t,e),t}(UG),GG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return NW(t,e),t}(UG),qG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return NW(t,e),t}(UG),KG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return NW(t,e),t}(UG),YG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return NW(t,e),t}(UG),XG={key:"headerSelect",factory:function(){return new VG}},ZG={key:"header1",factory:function(){return new WG}},JG={key:"header2",factory:function(){return new GG}},QG={key:"header3",factory:function(){return new qG}},eq={key:"header4",factory:function(){return new KG}},tq={key:"header5",factory:function(){return new YG}};function nq(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function rq(e){return function(t,n,r){var o=rE(t);return 0===(n=n.filter((function(e){return!!Db.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var oq={renderElems:[bG,wG,EG,xG,CG],elemsToHtml:[{type:"header1",elemToHtml:nq(1)},{type:"header2",elemToHtml:nq(2)},{type:"header3",elemToHtml:nq(3)},{type:"header4",elemToHtml:nq(4)},{type:"header5",elemToHtml:nq(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:rq(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:rq(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:rq(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:rq(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:rq(5)}],menus:[XG,ZG,JG,QG,eq,tq],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=zW(tb.nodes(n,{match:function(e){return qj.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&qj.isSelectionAtLineEnd(e,r[1])?Vb.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},iq=Object.assign,aq=Object.defineProperty,uq=f$([].concat),sq=!iq||Jz((function(){if(Qz&&1!==iq({b:1},iq(aq({},"a",{enumerable:!0,get:function(){aq(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=iq({},e)[n]||JV(iq({},t)).join("")!=r}))?function(e,t){for(var n=G$(e),r=arguments.length,o=1,i=aV.f,a=i$.f;r>o;)for(var u,s=y$(arguments[o++]),l=i?uq(JV(s),i(s)):JV(s),c=l.length,f=0;c>f;)u=l[f++],Qz&&!t$(a,s,u)||(n[u]=s[u]);return n}:iq;function lq(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}mV({target:"Object",stat:!0,forced:Object.assign!==sq},{assign:sq});var cq={selector:"font",preParseHtml:function(e){var t=rE(e);if("font"!==FW(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},fq=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=tb.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!zW(tb.nodes(e,{match:function(t){return"pre"===qj.getNodeType(t)||!!tb.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=rE('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=rE(r).attr("data-value");"0"===o?tb.removeMark(e,t):tb.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=rE('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=rE('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=Dz("color.default")),"bgColor"===t&&(a=Dz("color.clear"));var u=rE('\n <li data-value="0" class="clear">\n <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>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),dq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Dz("color.color"),t.iconSvg='<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>',t.mark="color",t}return NW(t,e),t}(fq),pq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Dz("color.bgColor"),t.iconSvg='<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>',t.mark="bgColor",t}return NW(t,e),t}(fq),hq=["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)"],gq={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&lq(i,{color:r}),o&&lq(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Db.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((kW(t)||"span"!==FW(n=rE(t)))&&(n=rE("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),BW(n)):t},preParseHtml:[cq],parseStyleHtml:function(e,t,n){var r=rE(e);if(!Db.isText(t))return t;var o=t,i=TW(r,"color");i&&(o.color=i);var a=TW(r,"background-color");return a||(a=TW(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new dq},config:{colors:hq}},{key:"bgColor",factory:function(){return new pq},config:{colors:hq}}]},vq=/^(?:\w+:)?\/\/(\S+)$/,yq=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,mq=/^[^\s\.]+\.\S{2,}$/,bq=QH.includes;function wq(e){return void 0===e&&(e="r"),e+"-"+JE()}function Eq(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function xq(e,t,n,r){return LW(this,0,void 0,(function(){var o,i;return RW(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function Cq(e,t,n){return LW(this,0,void 0,(function(){var r;return RW(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function Sq(e){return null==e.selection||!!qj.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function Dq(e,t){return{type:"link",url:Eq(e),children:t?[{text:t}]:[]}}function Aq(e,t,n){return LW(this,0,void 0,(function(){var r,o,i;return RW(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),Sq(e)?[2]:[4,xq("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,Cq("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(mb.isCollapsed(o)?(e.insertText(" "),i=Dq(r,t),Vb.insertNodes(e,i),e.insertFragment([{text:" "}])):tb.string(e,o)!==t?(e.deleteFragment(),i=Dq(r,t),Vb.insertNodes(e,i)):(i=Dq(r),Vb.wrapNodes(e,i,{split:!0}),Vb.collapse(e,{edge:"end"}))),[2]}}))}))}mV({target:"Array",proto:!0},{includes:function(e){return bq(this,e,arguments.length>1?arguments[1]:void 0)}}),oW("includes");var Oq={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return qx("a",{href:o,target:void 0===i?"_blank":i},t)}},_q={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=rE(e);return 0===(t=t.filter((function(e){return!!Db.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function kq(){return wq("w-e-insert-link")}var Bq=function(){function e(){this.title=Dz("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=kq(),this.urlInputId=kq(),this.buttonId=kq()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return Sq(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=zW(dM(Dz("link.text"),r),2),u=a[0],s=rE(a[1]),l=zW(dM(Dz("link.url"),o),2),c=l[0],f=rE(l[1]),d=zW(pM(i,Dz("common.ok")),1)[0];if(null==this.$content){var p=rE("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();Aq(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||mb.isCollapsed(t))s.val("");else{var g=tb.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function Fq(){return wq("w-e-update-link")}var Tq=function(){function e(){this.title=Dz("link.edit"),this.iconSvg=uG,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=Fq(),this.buttonId=Fq()}return e.prototype.getSelectedLinkElem=function(e){var t=qj.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return qj.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=zW(dM(Dz("link.url"),t),2),o=r[0],i=rE(r[1]),a=zW(pM(n,Dz("common.ok")),1)[0];if(null==this.$content){var u=rE("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=qj.getSelectedNodeByType(e,"link"),o=r?ab.string(r):"",i=u.find("#"+t).val();!function(e,t,n){LW(this,0,void 0,(function(){var r,o;return RW(this,(function(i){switch(i.label){case 0:return n?[4,xq("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,Cq("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:Eq(r)},Vb.setNodes(e,o,{match:function(e){return qj.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),Pq=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==qj.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||Vb.unwrapNodes(e,{match:function(e){return qj.checkNodeType(e,"link")}})},e}(),jq=function(){function e(){this.title=Dz("link.view"),this.iconSvg=sG,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=qj.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),Nq={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Iq={renderElems:[Oq],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[_q],menus:[{key:"insertLink",factory:function(){return new Bq},config:Nq},{key:"editLink",factory:function(){return new Tq},config:Nq},{key:"unLink",factory:function(){return new Pq}},{key:"viewLink",factory:function(){return new jq}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(vq);if(!t)return!1;var n=t[1];return!(!n||!yq.test(n)&&!mq.test(n))}(t)){if(!Sq(o)){var r=o.selection;if(null!=r){var i=tb.string(o,r);Aq(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=zW(e,2),n=t[0],i=t[1];return"link"!==qj.getNodeType(n)?r([n,i]):""===ab.string(n)?Vb.removeNodes(o,{at:i}):r([n,i])},o}},Lq=f$(1..valueOf),Rq=Zz.RangeError,Mq=Zz.RangeError,zq=Zz.String,$q=Math.floor,Hq=f$((function(e){var t=qV(b$(this)),n="",r=WH(e);if(r<0||r==1/0)throw Rq("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Vq=f$("".slice),Uq=f$(1..toFixed),Wq=function(e,t,n){return 0===t?n:t%2==1?Wq(e,t-1,n*e):Wq(e*e,t/2,n)},Gq=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=$q(o/1e7)},qq=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=$q(r/t),r=r%t*1e7},Kq=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=zq(e[t]);n=""===n?r:n+Hq("0",7-r.length)+r}return n};function Yq(e,t){return"w-e-image-container-"+qj.findKey(e,t).id}mV({target:"Number",proto:!0,forced:Jz((function(){return"0.000"!==Uq(8e-5,3)||"1"!==Uq(.9,0)||"1.25"!==Uq(1.255,2)||"1000000000000000128"!==Uq(0xde0b6b3a7640080,0)}))||!Jz((function(){Uq({})}))},{toFixed:function(e){var t,n,r,o,i=Lq(this),a=WH(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Mq("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return zq(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*Wq(2,69,1))-69)<0?i*Wq(2,-t,1):i/Wq(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Gq(u,0,n),r=a;r>=7;)Gq(u,1e7,0),r-=7;for(Gq(u,Wq(10,r,1),0),r=t-1;r>=23;)qq(u,1<<23),r-=23;qq(u,1<<r),Gq(u,1,1),qq(u,2),l=Kq(u)}else Gq(u,0,n),Gq(u,1<<-t,0),l=Kq(u)+Hq("0",a);return a>0?s+((o=l.length)<=a?"0."+Hq("0",a-o)+l:Vq(l,0,o-a)+"."+Vq(l,o-a)):s+l}});var Xq={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=qj.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y,m,b,w,E,x,C,S=qx("img",{style:v,src:o,alt:a,"data-href":s}),D=n.isDisabled();return g&&!D?function(e,t,n,r){var o=rE("body"),i=Yq(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;var p=hx((function(e){e.preventDefault();var t=e.clientX,n=l+(f?s-t:t-s),r=c*(n/l);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function h(n){if(o.off("mousemove",p),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:IW(IW({},t.style),{width:r+"px",height:i+"px"})};Vb.setNodes(e,a,{at:qj.findPath(e,t)}),o.off("mouseup",h)}}var g={};return a&&(g.width=a),u&&(g.height=u),qx("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var n=rE(t.target);n.hasClass("w-e-image-dragger")&&(t.preventDefault(),(n.hasClass("left-top")||n.hasClass("left-bottom"))&&(f=!0),function(t){d=function(){var e=rE("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",p),o.on("mouseup",h);var r=qj.getHoverbar(e);r&&r.hideAndClean()}(t.clientX))}}},n,qx("div",{className:"w-e-image-dragger left-top"}),qx("div",{className:"w-e-image-dragger right-top"}),qx("div",{className:"w-e-image-dragger left-bottom"}),qx("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,S,{width:d,height:h}):(y=n,m=e,b=S,x=(w={width:d,height:h}).height,C={},(E=w.width)&&(C.width=E),x&&(C.height=x),qx("div",{id:Yq(y,m),style:C,className:"w-e-image-container"},b))}},Zq={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=rE(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:TW(r,"width"),height:TW(r,"height")},children:[{text:""}]}}};function Jq(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),LW(this,0,void 0,(function(){var i,a;return RW(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function Qq(e,t,n){return LW(this,0,void 0,(function(){var r;return RW(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function eK(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),LW(this,0,void 0,(function(){var o,i,a;return RW(this,(function(u){switch(u.label){case 0:return[4,Jq("insertImage",e,t,n,r)];case 1:return u.sent()?[4,Qq("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:Eq(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),qj.getSelectedNodeByType(e,"image")&&e.move(1),tK(e)||(Vb.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function tK(e){var t=e.selection;return null==t||!mb.isCollapsed(t)||!!zW(tb.nodes(e,{match:function(t){var n=qj.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!tb.isVoid(e,t)},universal:!0}),1)[0]}function nK(){return wq("w-e-insert-image")}var rK=function(){function e(){this.title=Dz("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=nK(),this.altInputId=nK(),this.hrefInputId=nK(),this.buttonId=nK()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return tK(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=zW(dM(Dz("image.src"),r),2),s=u[0],l=rE(u[1]),c=zW(dM(Dz("image.desc"),o),2),f=c[0],d=rE(c[1]),p=zW(dM(Dz("image.link"),i),2),h=p[0],g=rE(p[1]),v=zW(pM(a,Dz("common.ok")),1)[0];if(null==this.$content){var y=rE("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(v),l.val(""),d.val(""),g.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||eK(e,t,n,r))},e}(),oK=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==qj.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||Vb.removeNodes(e,{match:function(e){return qj.checkNodeType(e,"image")}})},e}();function iK(){return wq("w-e-edit-image")}var aK=function(){function e(){this.title=Dz("image.edit"),this.iconSvg=uG,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=iK(),this.altInputId=iK(),this.hrefInputId=iK(),this.buttonId=iK()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return qj.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!mb.isCollapsed(t)||null==qj.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=zW(dM(Dz("image.src"),r),2),l=s[0],c=rE(s[1]),f=zW(dM(Dz("image.desc"),o),2),d=f[0],p=rE(f[1]),h=zW(dM(Dz("image.link"),i),2),g=h[0],v=rE(h[1]),y=zW(pM(a,Dz("common.ok")),1)[0];if(null==this.$content){var m=rE("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(g),b.append(y);var w=u,E=w.src,x=w.alt,C=void 0===x?"":x,S=w.href,D=void 0===S?"":S;return c.val(E),p.val(C),v.val(D),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),LW(this,0,void 0,(function(){var i,a,u,s,l,c;return RW(this,(function(f){switch(f.label){case 0:return[4,Jq("editImage",e,t,n,r)];case 1:return f.sent()?[4,Qq("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=qj.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:IW(IW({},void 0===u?{}:u),o)},Vb.setNodes(e,s,{match:function(e){return qj.checkNodeType(e,"image")}}),l=qj.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),uK=function(){function e(){this.title=Dz("image.viewLink"),this.iconSvg=sG,this.tag="button"}return e.prototype.getValue=function(e){var t=qj.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),sK=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return qj.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=qj.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:IW(IW({},void 0===o?{}:o),{width:this.value,height:""})};Vb.setNodes(e,i,{match:function(e){return qj.checkNodeType(e,"image")}})}}},e}(),lK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return NW(t,e),t}(sK),cK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return NW(t,e),t}(sK),fK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return NW(t,e),t}(sK),dK={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},pK={renderElems:[Xq],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,l=void 0===s?{}:s,c=l.width,f=void 0===c?"":c,d=l.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[Zq],menus:[{key:"insertImage",factory:function(){return new rK},config:dK},{key:"deleteImage",factory:function(){return new oK}},{key:"editImage",factory:function(){return new aK},config:dK},{key:"viewImageLink",factory:function(){return new uK}},{key:"imageWidth30",factory:function(){return new lK}},{key:"imageWidth50",factory:function(){return new cK}},{key:"imageWidth100",factory:function(){return new fK}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},hK={type:"todo",renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),qx("div",{style:{margin:"5px 0"}},qx("span",{contentEditable:!1,style:{marginRight:"0.5em"}},qx("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=qj.findPath(n,e),o={checked:t.target.checked};Vb.setNodes(n,o,{at:r})}}})),qx("span",null,t))}},gK=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!!qj.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!qj.getSelectedElems(e).some((function(t){if(tb.isVoid(e,t)&&tb.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);Vb.setNodes(e,{type:n?"paragraph":"todo"})},e}(),vK={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=rE(e);0===(t=t.filter((function(e){return!!Db.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},yK={renderElems:[hK],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=rE(e).find("li"),n=rE('<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:[vK],menus:[{key:"todo",factory:function(){return new gK}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&mb.isCollapsed(r)){var o=qj.getSelectedNodeByType(e,"todo");if(o&&0===ab.string(o).length)return void Vb.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},mK={type:"blockquote",renderElem:function(e,t,n){return qx("blockquote",null,t)}},bK={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=rE(e);return 0===(t=t.filter((function(e){return!!Db.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},wK=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!!qj.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!zW(tb.nodes(e,{match:function(e){var t=qj.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";Vb.setNodes(e,{type:n},{mode:"highest"})}},e}(),EK={key:"blockquote",factory:function(){return new wK}},xK=f$([].slice),CK=HV("slice"),SK=rH("species"),DK=Zz.Array,AK=Math.max;mV({target:"Array",proto:!0,forced:!CK},{slice:function(e,t){var n,r,o,i=w$(this),a=ZH(i),u=KH(e,a),s=KH(void 0===t?a:t,a);if(wV(i)&&(n=i.constructor,(jV(n)&&(n===DK||wV(n.prototype))||x$(n)&&null===(n=n[SK]))&&(n=void 0),n===DK||void 0===n))return xK(i,u,s);for(r=new(void 0===n?DK:n)(AK(s-u,0)),o=0;u<s;u++,o++)u in i&&fW(r,o,i[u]);return r.length=o,r}});var OK={renderElems:[mK],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[bK],menus:[EK],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=zW(tb.nodes(e,{match:function(e){return qj.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=qj.findPath(e,a),s=tb.end(e,u);if(hb.equals(s,o.focus)){var l=ab.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void Vb.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},_K=function(){function e(){this.title=Dz("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(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!zW(tb.nodes(e,{match:function(t){return"pre"===qj.getNodeType(t)||!!tb.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=rE('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=rE(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=rE("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),kK={menus:[{key:"emotion",factory:function(){return new _K},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},BK={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},FK={selector:"font",preParseHtml:function(e){var t=rE(e);if("font"!==FW(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",BK[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},TK=f$("".indexOf);mV({target:"String",proto:!0,forced:!jG("includes")},{includes:function(e){return!!~TK(qV(b$(this)),qV(TG(e)),arguments.length>1?arguments[1]:void 0)}});var PK,jK,NK=function(e){return e&&e.Math==Math&&e},IK=NK("object"==typeof globalThis&&globalThis)||NK("object"==typeof window&&window)||NK("object"==typeof self&&self)||NK("object"==typeof Gz&&Gz)||function(){return this}()||Function("return this")(),LK=Function.prototype,RK=LK.apply,MK=LK.bind,zK=LK.call,$K="object"==typeof Reflect&&Reflect.apply||(MK?zK.bind(RK):function(){return zK.apply(RK,arguments)}),HK=Function.prototype,VK=HK.bind,UK=HK.call,WK=VK&&VK.bind(UK),GK=VK?function(e){return e&&WK(UK,e)}:function(e){return e&&function(){return UK.apply(e,arguments)}},qK=function(e){return"function"==typeof e},KK=function(e){try{return!!e()}catch(t){return!0}},YK=!KK((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),XK=Function.prototype.call,ZK=XK.bind?XK.bind(XK):function(){return XK.apply(XK,arguments)},JK={}.propertyIsEnumerable,QK=Object.getOwnPropertyDescriptor,eY=QK&&!JK.call({1:2},1)?function(e){var t=QK(this,e);return!!t&&t.enumerable}:JK,tY={f:eY},nY=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},rY=GK({}.toString),oY=GK("".slice),iY=function(e){return oY(rY(e),8,-1)},aY=IK.Object,uY=GK("".split),sY=KK((function(){return!aY("z").propertyIsEnumerable(0)}))?function(e){return"String"==iY(e)?uY(e,""):aY(e)}:aY,lY=IK.TypeError,cY=function(e){if(null==e)throw lY("Can't call method on "+e);return e},fY=function(e){return sY(cY(e))},dY=function(e){return"object"==typeof e?null!==e:qK(e)},pY={},hY=function(e){return qK(e)?e:void 0},gY=function(e,t){return arguments.length<2?hY(pY[e])||hY(IK[e]):pY[e]&&pY[e][t]||IK[e]&&IK[e][t]},vY=GK({}.isPrototypeOf),yY=gY("navigator","userAgent")||"",mY=IK.process,bY=IK.Deno,wY=mY&&mY.versions||bY&&bY.version,EY=wY&&wY.v8;EY&&(jK=(PK=EY.split("."))[0]>0&&PK[0]<4?1:+(PK[0]+PK[1])),!jK&&yY&&(!(PK=yY.match(/Edge\/(\d+)/))||PK[1]>=74)&&(PK=yY.match(/Chrome\/(\d+)/))&&(jK=+PK[1]);var xY=jK,CY=!!Object.getOwnPropertySymbols&&!KK((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xY&&xY<41})),SY=CY&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,DY=IK.Object,AY=SY?function(e){return"symbol"==typeof e}:function(e){var t=gY("Symbol");return qK(t)&&vY(t.prototype,DY(e))},OY=IK.String,_Y=IK.TypeError,kY=function(e){if(qK(e))return e;throw _Y(function(e){try{return OY(e)}catch(t){return"Object"}}(e)+" is not a function")},BY=IK.TypeError,FY=Object.defineProperty,TY=IK["__core-js_shared__"]||function(e,t){try{FY(IK,e,{value:t,configurable:!0,writable:!0})}catch(Oz){IK[e]=t}return t}("__core-js_shared__",{}),PY=qz((function(e){(e.exports=function(e,t){return TY[e]||(TY[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),jY=IK.Object,NY=function(e){return jY(cY(e))},IY=GK({}.hasOwnProperty),LY=Object.hasOwn||function(e,t){return IY(NY(e),t)},RY=0,MY=Math.random(),zY=GK(1..toString),$Y=function(e){return"Symbol("+(void 0===e?"":e)+")_"+zY(++RY+MY,36)},HY=PY("wks"),VY=IK.Symbol,UY=VY&&VY.for,WY=SY?VY:VY&&VY.withoutSetter||$Y,GY=function(e){if(!LY(HY,e)||!CY&&"string"!=typeof HY[e]){var t="Symbol."+e;CY&&LY(VY,e)?HY[e]=VY[e]:HY[e]=SY&&UY?UY(t):WY(t)}return HY[e]},qY=IK.TypeError,KY=GY("toPrimitive"),YY=function(e){var t=function(e){if(!dY(e)||AY(e))return e;var t,n,r=null==(t=e[KY])?void 0:kY(t);if(r){if(n=ZK(r,e,"string"),!dY(n)||AY(n))return n;throw qY("Can't convert object to primitive value")}return function(e){var t,n;if(qK(t=e.toString)&&!dY(n=ZK(t,e)))return n;if(qK(t=e.valueOf)&&!dY(n=ZK(t,e)))return n;throw BY("Can't convert object to primitive value")}(e)}(e);return AY(t)?t:t+""},XY=IK.document,ZY=dY(XY)&&dY(XY.createElement),JY=function(e){return ZY?XY.createElement(e):{}},QY=!YK&&!KK((function(){return 7!=Object.defineProperty(JY("div"),"a",{get:function(){return 7}}).a})),eX=Object.getOwnPropertyDescriptor,tX={f:YK?eX:function(e,t){if(e=fY(e),t=YY(t),QY)try{return eX(e,t)}catch(n){}if(LY(e,t))return nY(!ZK(tY.f,e,t),e[t])}},nX=/#|\.prototype\./,rX=function(e,t){var n=iX[oX(e)];return n==uX||n!=aX&&(qK(t)?KK(t):!!t)},oX=rX.normalize=function(e){return String(e).replace(nX,".").toLowerCase()},iX=rX.data={},aX=rX.NATIVE="N",uX=rX.POLYFILL="P",sX=rX,lX=GK(GK.bind),cX=function(e,t){return kY(e),void 0===t?e:lX?lX(e,t):function(){return e.apply(t,arguments)}},fX=IK.String,dX=IK.TypeError,pX=function(e){if(dY(e))return e;throw dX(fX(e)+" is not an object")},hX=IK.TypeError,gX=Object.defineProperty,vX={f:YK?gX:function(e,t,n){if(pX(e),t=YY(t),pX(n),QY)try{return gX(e,t,n)}catch(r){}if("get"in n||"set"in n)throw hX("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},yX=YK?function(e,t,n){return vX.f(e,t,nY(1,n))}:function(e,t,n){return e[t]=n,e},mX=tX.f,bX=function(e){var t=function(n,r,o){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,o)}return $K(e,this,arguments)};return t.prototype=e.prototype,t},wX=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?IK:d?IK[c]:(IK[c]||{}).prototype,g=f?pY:pY[c]||yX(pY,c,{})[c],v=g.prototype;for(o in t)n=!sX(f?o:c+(d?".":"#")+o,e.forced)&&h&&LY(h,o),a=g[o],n&&(u=e.noTargetGet?(l=mX(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?cX(i,IK):e.wrap&&n?bX(i):p&&qK(i)?GK(i):i,(e.sham||i&&i.sham||a&&a.sham)&&yX(s,"sham",!0),yX(g,o,s),p&&(LY(pY,r=c+"Prototype")||yX(pY,r,{}),yX(pY[r],o,i),e.real&&v&&!v[o]&&yX(v,o,i)))},EX=Array.isArray||function(e){return"Array"==iY(e)},xX=Math.ceil,CX=Math.floor,SX=function(e){var t=+e;return t!=t||0===t?0:(t>0?CX:xX)(t)},DX=Math.min,AX=function(e){return(t=e.length)>0?DX(SX(t),9007199254740991):0;var t},OX=function(e,t,n){var r=YY(t);r in e?vX.f(e,r,nY(0,n)):e[r]=n},_X={};_X[GY("toStringTag")]="z";var kX="[object z]"===String(_X),BX=GY("toStringTag"),FX=IK.Object,TX="Arguments"==iY(function(){return arguments}()),PX=kX?iY:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=FX(e),BX))?n:TX?iY(t):"Object"==(r=iY(t))&&qK(t.callee)?"Arguments":r},jX=GK(Function.toString);qK(TY.inspectSource)||(TY.inspectSource=function(e){return jX(e)});var NX=TY.inspectSource,IX=function(){},LX=[],RX=gY("Reflect","construct"),MX=/^\s*(?:class|function)\b/,zX=GK(MX.exec),$X=!MX.exec(IX),HX=function(e){if(!qK(e))return!1;try{return RX(IX,LX,e),!0}catch(t){return!1}},VX=!RX||KK((function(){var e;return HX(HX.call)||!HX(Object)||!HX((function(){e=!0}))||e}))?function(e){if(!qK(e))return!1;switch(PX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $X||!!zX(MX,NX(e))}:HX,UX=GY("species"),WX=IK.Array,GX=function(e,t){return new(EX(n=e)&&(r=n.constructor,(VX(r)&&(r===WX||EX(r.prototype))||dY(r)&&null===(r=r[UX]))&&(r=void 0)),void 0===r?WX:r)(0===t?0:t);var n,r},qX=GY("species"),KX=GY("isConcatSpreadable"),YX=IK.TypeError,XX=xY>=51||!KK((function(){var e=[];return e[KX]=!1,e.concat()[0]!==e})),ZX=xY>=51||!KK((function(){var e=[];return(e.constructor={})[qX]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),JX=function(e){if(!dY(e))return!1;var t=e[KX];return void 0!==t?!!t:EX(e)};wX({target:"Array",proto:!0,forced:!XX||!ZX},{concat:function(e){var t,n,r,o,i,a=NY(this),u=GX(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(JX(i=-1===t?a:arguments[t])){if(s+(o=AX(i))>9007199254740991)throw YX("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&OX(u,s,i[n])}else{if(s>=9007199254740991)throw YX("Maximum allowed index exceeded");OX(u,s++,i)}return u.length=s,u}});var QX,eZ=IK.String,tZ=function(e){if("Symbol"===PX(e))throw TypeError("Cannot convert a Symbol value to a string");return eZ(e)},nZ=Math.max,rZ=Math.min,oZ=function(e,t){var n=SX(e);return n<0?nZ(n+t,0):rZ(n,t)},iZ={indexOf:function(e){return function(t,n,r){var o,i=fY(t),a=AX(i),u=oZ(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1)},aZ={},uZ=iZ.indexOf,sZ=GK([].push),lZ=function(e,t){var n,r=fY(e),o=0,i=[];for(n in r)!LY(aZ,n)&&LY(r,n)&&sZ(i,n);for(;t.length>o;)LY(r,n=t[o++])&&(~uZ(i,n)||sZ(i,n));return i},cZ=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fZ=Object.keys||function(e){return lZ(e,cZ)},dZ=YK?Object.defineProperties:function(e,t){pX(e);for(var n,r=fY(t),o=fZ(t),i=o.length,a=0;i>a;)vX.f(e,n=o[a++],r[n]);return e},pZ=gY("document","documentElement"),hZ=PY("keys"),gZ=function(e){return hZ[e]||(hZ[e]=$Y(e))},vZ=gZ("IE_PROTO"),yZ=function(){},mZ=function(e){return"<script>"+e+"<\/script>"},bZ=function(e){e.write(mZ("")),e.close();var t=e.parentWindow.Object;return e=null,t},wZ=function(){try{QX=new ActiveXObject("htmlfile")}catch(r){}var e,t;wZ="undefined"!=typeof document?document.domain&&QX?bZ(QX):((t=JY("iframe")).style.display="none",pZ.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(mZ("document.F=Object")),e.close(),e.F):bZ(QX);for(var n=cZ.length;n--;)delete wZ.prototype[cZ[n]];return wZ()};aZ[vZ]=!0;var EZ,xZ,CZ,SZ=Object.create||function(e,t){var n;return null!==e?(yZ.prototype=pX(e),n=new yZ,yZ.prototype=null,n[vZ]=e):n=wZ(),void 0===t?n:dZ(n,t)},DZ=cZ.concat("length","prototype"),AZ={f:Object.getOwnPropertyNames||function(e){return lZ(e,DZ)}},OZ=IK.Array,_Z=Math.max,kZ=AZ.f,BZ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],FZ={f:function(e){return BZ&&"Window"==iY(e)?function(e){try{return kZ(e)}catch(t){return function(e){for(var t=AX(e),n=oZ(void 0,t),r=oZ(t,t),o=OZ(_Z(r-n,0)),i=0;n<r;n++,i++)OX(o,i,e[n]);return o.length=i,o}(BZ)}}(e):kZ(fY(e))}},TZ={f:Object.getOwnPropertySymbols},PZ=GK([].slice),jZ=function(e,t,n,r){yX(e,t,n)},NZ={f:GY},IZ=vX.f,LZ=function(e){var t=pY.Symbol||(pY.Symbol={});LY(t,e)||IZ(t,e,{value:NZ.f(e)})},RZ=kX?{}.toString:function(){return"[object "+PX(this)+"]"},MZ=vX.f,zZ=GY("toStringTag"),$Z=function(e,t,n,r){if(e){var o=n?e:e.prototype;LY(o,zZ)||MZ(o,zZ,{configurable:!0,value:t}),r&&!kX&&yX(o,"toString",RZ)}},HZ=IK.WeakMap,VZ=qK(HZ)&&/native code/.test(NX(HZ)),UZ=IK.TypeError,WZ=IK.WeakMap;if(VZ||TY.state){var GZ=TY.state||(TY.state=new WZ),qZ=GK(GZ.get),KZ=GK(GZ.has),YZ=GK(GZ.set);EZ=function(e,t){if(KZ(GZ,e))throw new UZ("Object already initialized");return t.facade=e,YZ(GZ,e,t),t},xZ=function(e){return qZ(GZ,e)||{}},CZ=function(e){return KZ(GZ,e)}}else{var XZ=gZ("state");aZ[XZ]=!0,EZ=function(e,t){if(LY(e,XZ))throw new UZ("Object already initialized");return t.facade=e,yX(e,XZ,t),t},xZ=function(e){return LY(e,XZ)?e[XZ]:{}},CZ=function(e){return LY(e,XZ)}}var ZZ={set:EZ,get:xZ,has:CZ,enforce:function(e){return CZ(e)?xZ(e):EZ(e,{})},getterFor:function(e){return function(t){var n;if(!dY(t)||(n=xZ(t)).type!==e)throw UZ("Incompatible receiver, "+e+" required");return n}}},JZ=GK([].push),QZ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=NY(s),g=sY(h),v=cX(l,c),y=AX(g),m=0,b=f||GX,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:JZ(w,d)}else switch(e){case 4:return!1;case 7:JZ(w,d)}return i?-1:r||o?o:w}},eJ=[QZ(0),QZ(1),QZ(2),QZ(3),QZ(4),QZ(5),QZ(6),QZ(7)][0],tJ=gZ("hidden"),nJ=GY("toPrimitive"),rJ=ZZ.set,oJ=ZZ.getterFor("Symbol"),iJ=Object.prototype,aJ=IK.Symbol,uJ=aJ&&aJ.prototype,sJ=IK.TypeError,lJ=IK.QObject,cJ=gY("JSON","stringify"),fJ=tX.f,dJ=vX.f,pJ=FZ.f,hJ=tY.f,gJ=GK([].push),vJ=PY("symbols"),yJ=PY("op-symbols"),mJ=PY("string-to-symbol-registry"),bJ=PY("symbol-to-string-registry"),wJ=PY("wks"),EJ=!lJ||!lJ.prototype||!lJ.prototype.findChild,xJ=YK&&KK((function(){return 7!=SZ(dJ({},"a",{get:function(){return dJ(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=fJ(iJ,t);r&&delete iJ[t],dJ(e,t,n),r&&e!==iJ&&dJ(iJ,t,r)}:dJ,CJ=function(e,t){var n=vJ[e]=SZ(uJ);return rJ(n,{type:"Symbol",tag:e,description:t}),YK||(n.description=t),n},SJ=function(e,t,n){e===iJ&&SJ(yJ,t,n),pX(e);var r=YY(t);return pX(n),LY(vJ,r)?(n.enumerable?(LY(e,tJ)&&e[tJ][r]&&(e[tJ][r]=!1),n=SZ(n,{enumerable:nY(0,!1)})):(LY(e,tJ)||dJ(e,tJ,nY(1,{})),e[tJ][r]=!0),xJ(e,r,n)):dJ(e,r,n)},DJ=function(e,t){pX(e);var n=fY(t),r=fZ(n).concat(kJ(n));return eJ(r,(function(t){YK&&!ZK(AJ,n,t)||SJ(e,t,n[t])})),e},AJ=function(e){var t=YY(e),n=ZK(hJ,this,t);return!(this===iJ&&LY(vJ,t)&&!LY(yJ,t))&&(!(n||!LY(this,t)||!LY(vJ,t)||LY(this,tJ)&&this[tJ][t])||n)},OJ=function(e,t){var n=fY(e),r=YY(t);if(n!==iJ||!LY(vJ,r)||LY(yJ,r)){var o=fJ(n,r);return!o||!LY(vJ,r)||LY(n,tJ)&&n[tJ][r]||(o.enumerable=!0),o}},_J=function(e){var t=pJ(fY(e)),n=[];return eJ(t,(function(e){LY(vJ,e)||LY(aZ,e)||gJ(n,e)})),n},kJ=function(e){var t=e===iJ,n=pJ(t?yJ:fY(e)),r=[];return eJ(n,(function(e){!LY(vJ,e)||t&&!LY(iJ,e)||gJ(r,vJ[e])})),r};if(CY||(uJ=(aJ=function(){if(vY(uJ,this))throw sJ("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?tZ(arguments[0]):void 0,t=$Y(e),n=function(e){this===iJ&&ZK(n,yJ,e),LY(this,tJ)&&LY(this[tJ],t)&&(this[tJ][t]=!1),xJ(this,t,nY(1,e))};return YK&&EJ&&xJ(iJ,t,{configurable:!0,set:n}),CJ(t,e)}).prototype,jZ(uJ,"toString",(function(){return oJ(this).tag})),jZ(aJ,"withoutSetter",(function(e){return CJ($Y(e),e)})),tY.f=AJ,vX.f=SJ,tX.f=OJ,AZ.f=FZ.f=_J,TZ.f=kJ,NZ.f=function(e){return CJ(GY(e),e)},YK&&dJ(uJ,"description",{configurable:!0,get:function(){return oJ(this).description}})),wX({global:!0,wrap:!0,forced:!CY,sham:!CY},{Symbol:aJ}),eJ(fZ(wJ),(function(e){LZ(e)})),wX({target:"Symbol",stat:!0,forced:!CY},{for:function(e){var t=tZ(e);if(LY(mJ,t))return mJ[t];var n=aJ(t);return mJ[t]=n,bJ[n]=t,n},keyFor:function(e){if(!AY(e))throw sJ(e+" is not a symbol");if(LY(bJ,e))return bJ[e]},useSetter:function(){EJ=!0},useSimple:function(){EJ=!1}}),wX({target:"Object",stat:!0,forced:!CY,sham:!YK},{create:function(e,t){return void 0===t?SZ(e):DJ(SZ(e),t)},defineProperty:SJ,defineProperties:DJ,getOwnPropertyDescriptor:OJ}),wX({target:"Object",stat:!0,forced:!CY},{getOwnPropertyNames:_J,getOwnPropertySymbols:kJ}),wX({target:"Object",stat:!0,forced:KK((function(){TZ.f(1)}))},{getOwnPropertySymbols:function(e){return TZ.f(NY(e))}}),cJ){var BJ=!CY||KK((function(){var e=aJ();return"[null]"!=cJ([e])||"{}"!=cJ({a:e})||"{}"!=cJ(Object(e))}));wX({target:"JSON",stat:!0,forced:BJ},{stringify:function(e,t,n){var r=PZ(arguments),o=t;if((dY(t)||void 0!==e)&&!AY(e))return EX(t)||(t=function(e,t){if(qK(o)&&(t=ZK(o,this,e,t)),!AY(t))return t}),r[1]=t,$K(cJ,null,r)}})}if(!uJ[nJ]){var FJ=uJ.valueOf;jZ(uJ,nJ,(function(e){return ZK(FJ,this)}))}$Z(aJ,"Symbol"),aZ[tJ]=!0,LZ("asyncIterator"),LZ("hasInstance"),LZ("isConcatSpreadable"),LZ("iterator"),LZ("match"),LZ("matchAll"),LZ("replace"),LZ("search"),LZ("species"),LZ("split"),LZ("toPrimitive"),LZ("toStringTag"),LZ("unscopables"),$Z(IK.JSON,"JSON",!0);var TJ,PJ,jJ,NJ=pY.Symbol,IJ={},LJ=Function.prototype,RJ=YK&&Object.getOwnPropertyDescriptor,MJ=LY(LJ,"name"),zJ={PROPER:MJ&&"something"===function(){}.name,CONFIGURABLE:MJ&&(!YK||YK&&RJ(LJ,"name").configurable)},$J=!KK((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),HJ=gZ("IE_PROTO"),VJ=IK.Object,UJ=VJ.prototype,WJ=$J?VJ.getPrototypeOf:function(e){var t=NY(e);if(LY(t,HJ))return t[HJ];var n=t.constructor;return qK(n)&&t instanceof n?n.prototype:t instanceof VJ?UJ:null},GJ=GY("iterator"),qJ=!1;[].keys&&("next"in(jJ=[].keys())?(PJ=WJ(WJ(jJ)))!==Object.prototype&&(TJ=PJ):qJ=!0);var KJ=null==TJ||KK((function(){var e={};return TJ[GJ].call(e)!==e}));TJ=KJ?{}:SZ(TJ),qK(TJ[GJ])||jZ(TJ,GJ,(function(){return this}));var YJ={IteratorPrototype:TJ,BUGGY_SAFARI_ITERATORS:qJ},XJ=YJ.IteratorPrototype,ZJ=function(){return this};IK.String,IK.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{GK(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(t){}}();var JJ=zJ.PROPER,QJ=YJ.BUGGY_SAFARI_ITERATORS,eQ=GY("iterator"),tQ=function(){return this},nQ=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=SZ(XJ,{next:nY(1,s)}),$Z(u,l,!1,!0),IJ[l]=ZJ;var c,f,d=function(e){if(e===o&&y)return y;if(!QJ&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[eQ]||g["@@iterator"]||o&&g[o],y=!QJ&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=WJ(m.call(new e)))!==Object.prototype&&c.next&&($Z(c,p,!0,!0),IJ[p]=tQ),JJ&&"values"==o&&v&&"values"!==v.name&&(h=!0,y=function(){return ZK(v,this)}),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||wX({target:t,proto:!0,forced:QJ||h},f)),IJ[t]=y,f},rQ=ZZ.set,oQ=ZZ.getterFor("Array Iterator");nQ(Array,"Array",(function(e,t){rQ(this,{type:"Array Iterator",target:fY(e),index:0,kind:t})}),(function(){var e=oQ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),IJ.Arguments=IJ.Array;var iQ=GY("toStringTag");for(var aQ 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 uQ=IK[aQ],sQ=uQ&&uQ.prototype;sQ&&PX(sQ)!==iQ&&yX(sQ,iQ,aQ),IJ[aQ]=IJ.Array}var lQ=NJ;LZ("asyncDispose"),LZ("dispose"),LZ("matcher"),LZ("metadata"),LZ("observable"),LZ("patternMatch"),LZ("replaceAll");var cQ=lQ,fQ=GK("".charAt),dQ=GK("".charCodeAt),pQ=GK("".slice),hQ=function(e){return function(t,n){var r,o,i=tZ(cY(t)),a=SX(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=dQ(i,a))<55296||r>56319||a+1===u||(o=dQ(i,a+1))<56320||o>57343?e?fQ(i,a):r:e?pQ(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),gQ=ZZ.set,vQ=ZZ.getterFor("String Iterator");nQ(String,"String",(function(e){gQ(this,{type:"String Iterator",string:tZ(e),index:0})}),(function(){var e,t=vQ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=hQ(n,r),t.index+=e.length,{value:e,done:!1})}));var yQ=NZ.f("iterator"),mQ=qz((function(e){function t(n){return"function"==typeof cQ&&"symbol"==typeof yQ?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof cQ&&e.constructor===cQ&&e!==cQ.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),bQ=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(mQ),wQ=$H.EXISTS,EQ=mH.f,xQ=Function.prototype,CQ=f$(xQ.toString),SQ=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,DQ=f$(SQ.exec);Qz&&!wQ&&EQ(xQ,"name",{configurable:!0,get:function(){try{return DQ(SQ,CQ(this))[1]}catch($u){return""}}});var AQ=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=tb.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!zW(tb.nodes(e,{match:function(t){return"pre"===qj.getNodeType(t)||!!tb.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),OQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Dz("fontSize.title"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',t.mark="fontSize",t}return NW(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:Dz("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===bQ(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(AQ),_Q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Dz("fontFamily.title"),t.iconSvg='<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>',t.mark="fontFamily",t.selectPanelWidth=150,t}return NW(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:Dz("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===bQ(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(AQ),kQ={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&lq(i,{fontSize:r}),o&&lq(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Db.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((kW(t)||"span"!==FW(n=rE(t)))&&(n=rE("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),BW(n)):t},preParseHtml:[FK],parseStyleHtml:function(e,t,n){var r=rE(e);if(!Db.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=TW(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=TW(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new OQ},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 _Q},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},BQ={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=rE(e),n=TW(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]}},FQ=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=zW(tb.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null==t?"":zW(t,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=zW(tb.nodes(e,{match:function(e){var t=qj.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),TQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Dz("indent.decrease"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',t}return NW(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){Vb.setNodes(e,{indent:null},{match:function(e){return Ym.isElement(e)}})},t}(FQ),PQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Dz("indent.increase"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',t}return NW(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){Vb.setNodes(e,{indent:"2em"},{match:function(e){return Ym.isElement(e)},mode:"highest"})},t}(FQ),jQ={renderStyle:function(e,t){if(!Ym.isElement(e))return t;var n=e.indent,r=t;return n&&lq(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Ym.isElement(e))return t;var n=e.indent;if(!n)return t;var r=rE(t);return r.css("text-indent",n),BW(r)},preParseHtml:[BQ],parseStyleHtml:function(e,t,n){var r=rE(e);if(!Ym.isElement(t))return t;var o=t,i=TW(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new PQ}},{key:"delIndent",factory:function(){return new TQ}}]},NQ=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=zW(tb.nodes(e,{match:function(e){var t=qj.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!qj.getSelectedElems(e).some((function(t){if(tb.isVoid(e,t)&&tb.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),IQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Dz("justify.left"),t.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>',t}return NW(t,e),t.prototype.exec=function(e,t){Vb.setNodes(e,{textAlign:"left"},{match:function(t){return Ym.isElement(t)&&!e.isInline(t)}})},t}(NQ),LQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Dz("justify.right"),t.iconSvg='<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>',t}return NW(t,e),t.prototype.exec=function(e,t){Vb.setNodes(e,{textAlign:"right"},{match:function(t){return Ym.isElement(t)&&!e.isInline(t)}})},t}(NQ),RQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Dz("justify.center"),t.iconSvg='<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>',t}return NW(t,e),t.prototype.exec=function(e,t){Vb.setNodes(e,{textAlign:"center"},{match:function(t){return Ym.isElement(t)&&!e.isInline(t)}})},t}(NQ),MQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Dz("justify.justify"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',t}return NW(t,e),t.prototype.exec=function(e,t){Vb.setNodes(e,{textAlign:"justify"},{match:function(t){return Ym.isElement(t)&&!e.isInline(t)}})},t}(NQ),zQ={renderStyle:function(e,t){if(!Ym.isElement(e))return t;var n=e.textAlign,r=t;return n&&lq(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Ym.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=rE(t);return r.css("text-align",n),BW(r)},parseStyleHtml:function(e,t,n){var r=rE(e);if(!Ym.isElement(t))return t;var o=t,i=TW(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new IQ}},{key:"justifyRight",factory:function(){return new LQ}},{key:"justifyCenter",factory:function(){return new RQ}},{key:"justifyJustify",factory:function(){return new MQ}}]},$Q=function(){function e(){this.title=Dz("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(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:Dz("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=zW(tb.nodes(e,{match:function(e){var t=qj.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":Ym.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){Vb.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),HQ={renderStyle:function(e,t){if(!Ym.isElement(e))return t;var n=e.lineHeight,r=t;return n&&lq(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Ym.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=rE(t);return r.css("line-height",n),BW(r)},parseStyleHtml:function(e,t,n){var r=rE(e);if(!Ym.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=TW(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new $Q},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},VQ=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),UQ=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),WQ={menus:[{key:"redo",factory:function(){return new VQ}},{key:"undo",factory:function(){return new UQ}}]},GQ={type:"divider",renderElem:function(e,t,n){return Ox("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:qj.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Ox("hr")])}},qQ=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!qj.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=qj.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){Vb.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),KQ={renderElems:[GQ],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 qQ}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=zW(e,2),o=t[0],i=t[1];if("divider"!==qj.getNodeType(o))return n([o,i]);qj.isLastNode(r,o)&&Vb.insertNodes(r,qj.genEmptyParagraph(),{at:[i[0]+1]})},r}},YQ=zV.map;mV({target:"Array",proto:!0,forced:!HV("map")},{map:function(e){return YQ(this,e,arguments.length>1?arguments[1]:void 0)}});var XQ=f$([].join),ZQ=y$!=Object,JQ=QW("join",",");mV({target:"Array",proto:!0,forced:ZQ||!JQ},{join:function(e){return XQ(w$(this),void 0===e?",":e)}});var QQ=function(){function e(){this.title=Dz("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(e){var t=qj.getSelectedNodeByType(e,"code");if(null==t)return null;var n=qj.getParentNode(e,t);return null==n||"pre"!==qj.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=qj.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=qj.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=ab.string(t);Vb.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));Vb.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=tb.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=MW(i),u=a.next();!u.done;u=a.next()){var s=zW(u.value,1)[0];s&&o.push(ab.string(s))}}catch(c){n={error:c}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}Vb.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};Vb.insertNodes(e,l,{mode:"highest"})},e}(),e0={key:"codeBlock",factory:function(){return new QQ}};mV({target:"String",proto:!0,forced:GW("anchor")},{anchor:function(e){return WW(this,"a","name",e)}}),TU("match",(function(e,t,n){return[function(t){var n=b$(this),r=null==t?void 0:M$(t,e);return r?t$(r,t,n):new RegExp(t)[e](qV(n))},function(e){var r=gH(this),o=qV(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return GU(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=GU(r,o));){var c=qV(u[0]);s[l]=c,""===c&&(r.lastIndex=LU(o,XH(r.lastIndex),a)),l++}return 0===l?null:s}]}));var t0={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=rE(e);return 0===(t=t.filter((function(e){return"code"===qj.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===qj.getNodeType(e)}))}}},n0={menus:[e0],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=qj.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=ab.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=zW(e,2),r=t[0],i=t[1],a=qj.getNodeType(r);return"code"===a&&i.length<=1&&Vb.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(qj.isLastNode(o,r)&&Vb.insertNodes(o,qj.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==qj.getNodeType(r.children[0])&&(Vb.unwrapNodes(o),Vb.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=qj.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");tb.insertText(o,t)}else r(e)},o},renderElems:[{type:"pre",renderElem:function(e,t,n){return qx("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return qx("code",null,t)}}],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=rE(e);if("code"!==FW(t))return e;var n=t.find("xmp");if(0===n.length)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:rE(e)[0].textContent||""}]}}},t0]},r0=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),o0={menus:[{key:"fullScreen",factory:function(){return new r0}}]},i0=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!mb.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];Vb.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(tb.start(e,r))}},e}(),a0=[yG,gq,kQ,jQ,zQ,HQ,pK,KQ,kK,Iq,n0,OK,oq,HW,yK,WQ,o0,{menus:[{key:"enter",factory:function(){return new i0}}]}];Sz("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Sz("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var u0="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s0(e){var t={exports:{}};return e(t,t.exports),t.exports}var l0,c0,f0=function(e){return e&&e.Math==Math&&e},d0=f0("object"==typeof globalThis&&globalThis)||f0("object"==typeof window&&window)||f0("object"==typeof self&&self)||f0("object"==typeof u0&&u0)||function(){return this}()||Function("return this")(),p0=Function.prototype,h0=p0.bind,g0=p0.call,v0=h0&&h0.bind(g0),y0=h0?function(e){return e&&v0(g0,e)}:function(e){return e&&function(){return g0.apply(e,arguments)}},m0=function(e){try{return!!e()}catch(t){return!0}},b0=y0({}.toString),w0=y0("".slice),E0=function(e){return w0(b0(e),8,-1)},x0=d0.Object,C0=y0("".split),S0=m0((function(){return!x0("z").propertyIsEnumerable(0)}))?function(e){return"String"==E0(e)?C0(e,""):x0(e)}:x0,D0=d0.TypeError,A0=function(e){if(null==e)throw D0("Can't call method on "+e);return e},O0=function(e){return S0(A0(e))},_0=Object.defineProperty,k0=function(e,t){try{_0(d0,e,{value:t,configurable:!0,writable:!0})}catch(Oz){d0[e]=t}return t},B0=d0["__core-js_shared__"]||k0("__core-js_shared__",{}),F0=s0((function(e){(e.exports=function(e,t){return B0[e]||(B0[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),T0=d0.Object,P0=function(e){return T0(A0(e))},j0=y0({}.hasOwnProperty),N0=Object.hasOwn||function(e,t){return j0(P0(e),t)},I0=0,L0=Math.random(),R0=y0(1..toString),M0=function(e){return"Symbol("+(void 0===e?"":e)+")_"+R0(++I0+L0,36)},z0=function(e){return"function"==typeof e},$0=function(e,t){return arguments.length<2?function(e){return z0(e)?e:void 0}(d0[e]):d0[e]&&d0[e][t]},H0=$0("navigator","userAgent")||"",V0=d0.process,U0=d0.Deno,W0=V0&&V0.versions||U0&&U0.version,G0=W0&&W0.v8;G0&&(c0=(l0=G0.split("."))[0]>0&&l0[0]<4?1:+(l0[0]+l0[1])),!c0&&H0&&(!(l0=H0.match(/Edge\/(\d+)/))||l0[1]>=74)&&(l0=H0.match(/Chrome\/(\d+)/))&&(c0=+l0[1]);var q0,K0=c0,Y0=!!Object.getOwnPropertySymbols&&!m0((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&K0&&K0<41})),X0=Y0&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z0=F0("wks"),J0=d0.Symbol,Q0=J0&&J0.for,e1=X0?J0:J0&&J0.withoutSetter||M0,t1=function(e){if(!N0(Z0,e)||!Y0&&"string"!=typeof Z0[e]){var t="Symbol."+e;Y0&&N0(J0,e)?Z0[e]=J0[e]:Z0[e]=X0&&Q0?Q0(t):e1(t)}return Z0[e]},n1=function(e){return"object"==typeof e?null!==e:z0(e)},r1=d0.String,o1=d0.TypeError,i1=function(e){if(n1(e))return e;throw o1(r1(e)+" is not an object")},a1=!m0((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u1=d0.document,s1=n1(u1)&&n1(u1.createElement),l1=function(e){return s1?u1.createElement(e):{}},c1=!a1&&!m0((function(){return 7!=Object.defineProperty(l1("div"),"a",{get:function(){return 7}}).a})),f1=Function.prototype.call,d1=f1.bind?f1.bind(f1):function(){return f1.apply(f1,arguments)},p1=y0({}.isPrototypeOf),h1=d0.Object,g1=X0?function(e){return"symbol"==typeof e}:function(e){var t=$0("Symbol");return z0(t)&&p1(t.prototype,h1(e))},v1=d0.String,y1=function(e){try{return v1(e)}catch(t){return"Object"}},m1=d0.TypeError,b1=function(e){if(z0(e))return e;throw m1(y1(e)+" is not a function")},w1=function(e,t){var n=e[t];return null==n?void 0:b1(n)},E1=d0.TypeError,x1=d0.TypeError,C1=t1("toPrimitive"),S1=function(e){var t=function(e){if(!n1(e)||g1(e))return e;var t,n=w1(e,C1);if(n){if(t=d1(n,e,"string"),!n1(t)||g1(t))return t;throw x1("Can't convert object to primitive value")}return function(e){var t,n;if(z0(t=e.toString)&&!n1(n=d1(t,e)))return n;if(z0(t=e.valueOf)&&!n1(n=d1(t,e)))return n;throw E1("Can't convert object to primitive value")}(e)}(e);return g1(t)?t:t+""},D1=d0.TypeError,A1=Object.defineProperty,O1={f:a1?A1:function(e,t,n){if(i1(e),t=S1(t),i1(n),c1)try{return A1(e,t,n)}catch(r){}if("get"in n||"set"in n)throw D1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_1=Math.ceil,k1=Math.floor,B1=function(e){var t=+e;return t!=t||0===t?0:(t>0?k1:_1)(t)},F1=Math.max,T1=Math.min,P1=function(e,t){var n=B1(e);return n<0?F1(n+t,0):T1(n,t)},j1=Math.min,N1=function(e){return e>0?j1(B1(e),9007199254740991):0},I1=function(e){return N1(e.length)},L1=function(e){return function(t,n,r){var o,i=O0(t),a=I1(i),u=P1(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},R1={includes:L1(!0),indexOf:L1(!1)},M1={},z1=R1.indexOf,$1=y0([].push),H1=function(e,t){var n,r=O0(e),o=0,i=[];for(n in r)!N0(M1,n)&&N0(r,n)&&$1(i,n);for(;t.length>o;)N0(r,n=t[o++])&&(~z1(i,n)||$1(i,n));return i},V1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],U1=Object.keys||function(e){return H1(e,V1)},W1=a1?Object.defineProperties:function(e,t){i1(e);for(var n,r=O0(t),o=U1(t),i=o.length,a=0;i>a;)O1.f(e,n=o[a++],r[n]);return e},G1=$0("document","documentElement"),q1=F0("keys"),K1=function(e){return q1[e]||(q1[e]=M0(e))},Y1=K1("IE_PROTO"),X1=function(){},Z1=function(e){return"<script>"+e+"<\/script>"},J1=function(e){e.write(Z1("")),e.close();var t=e.parentWindow.Object;return e=null,t},Q1=function(){try{q0=new ActiveXObject("htmlfile")}catch(r){}var e,t;Q1="undefined"!=typeof document?document.domain&&q0?J1(q0):((t=l1("iframe")).style.display="none",G1.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Z1("document.F=Object")),e.close(),e.F):J1(q0);for(var n=V1.length;n--;)delete Q1.prototype[V1[n]];return Q1()};M1[Y1]=!0;var e2=Object.create||function(e,t){var n;return null!==e?(X1.prototype=i1(e),n=new X1,X1.prototype=null,n[Y1]=e):n=Q1(),void 0===t?n:W1(n,t)},t2=t1("unscopables"),n2=Array.prototype;null==n2[t2]&&O1.f(n2,t2,{configurable:!0,value:e2(null)});var r2=function(e){n2[t2][e]=!0},o2={},i2=y0(Function.toString);z0(B0.inspectSource)||(B0.inspectSource=function(e){return i2(e)});var a2,u2,s2,l2=B0.inspectSource,c2=d0.WeakMap,f2=z0(c2)&&/native code/.test(l2(c2)),d2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},p2=a1?function(e,t,n){return O1.f(e,t,d2(1,n))}:function(e,t,n){return e[t]=n,e},h2=d0.TypeError,g2=d0.WeakMap;if(f2||B0.state){var v2=B0.state||(B0.state=new g2),y2=y0(v2.get),m2=y0(v2.has),b2=y0(v2.set);a2=function(e,t){if(m2(v2,e))throw new h2("Object already initialized");return t.facade=e,b2(v2,e,t),t},u2=function(e){return y2(v2,e)||{}},s2=function(e){return m2(v2,e)}}else{var w2=K1("state");M1[w2]=!0,a2=function(e,t){if(N0(e,w2))throw new h2("Object already initialized");return t.facade=e,p2(e,w2,t),t},u2=function(e){return N0(e,w2)?e[w2]:{}},s2=function(e){return N0(e,w2)}}var E2,x2,C2,S2={set:a2,get:u2,has:s2,enforce:function(e){return s2(e)?u2(e):a2(e,{})},getterFor:function(e){return function(t){var n;if(!n1(t)||(n=u2(t)).type!==e)throw h2("Incompatible receiver, "+e+" required");return n}}},D2={}.propertyIsEnumerable,A2=Object.getOwnPropertyDescriptor,O2={f:A2&&!D2.call({1:2},1)?function(e){var t=A2(this,e);return!!t&&t.enumerable}:D2},_2=Object.getOwnPropertyDescriptor,k2={f:a1?_2:function(e,t){if(e=O0(e),t=S1(t),c1)try{return _2(e,t)}catch(n){}if(N0(e,t))return d2(!d1(O2.f,e,t),e[t])}},B2=Function.prototype,F2=a1&&Object.getOwnPropertyDescriptor,T2=N0(B2,"name"),P2={PROPER:T2&&"something"===function(){}.name,CONFIGURABLE:T2&&(!a1||a1&&F2(B2,"name").configurable)},j2=s0((function(e){var t=P2.CONFIGURABLE,n=S2.get,r=S2.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;z0(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!N0(i,"name")||t&&i.name!==f)&&p2(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==d0?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:p2(e,n,i)):l?e[n]=i:k0(n,i)})(Function.prototype,"toString",(function(){return z0(this)&&n(this).source||l2(this)}))})),N2=V1.concat("length","prototype"),I2={f:Object.getOwnPropertyNames||function(e){return H1(e,N2)}},L2={f:Object.getOwnPropertySymbols},R2=y0([].concat),M2=$0("Reflect","ownKeys")||function(e){var t=I2.f(i1(e)),n=L2.f;return n?R2(t,n(e)):t},z2=function(e,t){for(var n=M2(t),r=O1.f,o=k2.f,i=0;i<n.length;i++){var a=n[i];N0(e,a)||r(e,a,o(t,a))}},$2=/#|\.prototype\./,H2=function(e,t){var n=U2[V2(e)];return n==G2||n!=W2&&(z0(t)?m0(t):!!t)},V2=H2.normalize=function(e){return String(e).replace($2,".").toLowerCase()},U2=H2.data={},W2=H2.NATIVE="N",G2=H2.POLYFILL="P",q2=H2,K2=k2.f,Y2=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?d0:l?d0[u]||k0(u,{}):(d0[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=K2(n,r))&&a.value:n[r],!q2(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;z2(i,o)}(e.sham||o&&o.sham)&&p2(i,"sham",!0),j2(n,r,i,e)}},X2=!m0((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Z2=K1("IE_PROTO"),J2=d0.Object,Q2=J2.prototype,e4=X2?J2.getPrototypeOf:function(e){var t=P0(e);if(N0(t,Z2))return t[Z2];var n=t.constructor;return z0(n)&&t instanceof n?n.prototype:t instanceof J2?Q2:null},t4=t1("iterator"),n4=!1;[].keys&&("next"in(C2=[].keys())?(x2=e4(e4(C2)))!==Object.prototype&&(E2=x2):n4=!0);var r4=null==E2||m0((function(){var e={};return E2[t4].call(e)!==e}));r4&&(E2={}),z0(E2[t4])||j2(E2,t4,(function(){return this}));var o4={IteratorPrototype:E2,BUGGY_SAFARI_ITERATORS:n4},i4=O1.f,a4=t1("toStringTag"),u4=function(e,t,n){e&&!N0(e=n?e:e.prototype,a4)&&i4(e,a4,{configurable:!0,value:t})},s4=o4.IteratorPrototype,l4=function(){return this},c4=d0.String,f4=d0.TypeError,d4=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=y0(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return i1(n),function(e){if("object"==typeof e||z0(e))return e;throw f4("Can't set "+c4(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),p4=P2.PROPER,h4=P2.CONFIGURABLE,g4=o4.IteratorPrototype,v4=o4.BUGGY_SAFARI_ITERATORS,y4=t1("iterator"),m4=function(){return this},b4=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=e2(s4,{next:d2(1,s)}),u4(u,l,!1),o2[l]=l4;var c,f,d=function(e){if(e===o&&y)return y;if(!v4&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[y4]||g["@@iterator"]||o&&g[o],y=!v4&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=e4(m.call(new e)))!==Object.prototype&&c.next&&(e4(c)!==g4&&(d4?d4(c,g4):z0(c[y4])||j2(c,y4,m4)),u4(c,p,!0)),p4&&"values"==o&&v&&"values"!==v.name&&(h4?p2(g,"name","values"):(h=!0,y=function(){return d1(v,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||Y2({target:t,proto:!0,forced:v4||h},f)),g[y4]!==y&&j2(g,y4,y,{name:o}),o2[t]=y,f},w4=S2.set,E4=S2.getterFor("Array Iterator"),x4=b4(Array,"Array",(function(e,t){w4(this,{type:"Array Iterator",target:O0(e),index:0,kind:t})}),(function(){var e=E4(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");o2.Arguments=o2.Array,r2("keys"),r2("values"),r2("entries");var C4={};C4[t1("toStringTag")]="z";var S4="[object z]"===String(C4),D4=t1("toStringTag"),A4=d0.Object,O4="Arguments"==E0(function(){return arguments}()),_4=S4?E0:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=A4(e),D4))?n:O4?E0(t):"Object"==(r=E0(t))&&z0(t.callee)?"Arguments":r},k4=S4?{}.toString:function(){return"[object "+_4(this)+"]"};S4||j2(Object.prototype,"toString",k4,{unsafe:!0});var B4=d0.String,F4=function(e){if("Symbol"===_4(e))throw TypeError("Cannot convert a Symbol value to a string");return B4(e)},T4=y0("".charAt),P4=y0("".charCodeAt),j4=y0("".slice),N4={charAt:function(e){return function(t,n){var r,o,i=F4(A0(t)),a=B1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=P4(i,a))<55296||r>56319||a+1===u||(o=P4(i,a+1))<56320||o>57343?e?T4(i,a):r:e?j4(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},I4=N4.charAt,L4=S2.set,R4=S2.getterFor("String Iterator");b4(String,"String",(function(e){L4(this,{type:"String Iterator",string:F4(e),index:0})}),(function(){var e,t=R4(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=I4(n,r),t.index+=e.length,{value:e,done:!1})}));var M4=function(e,t,n){for(var r in t)j2(e,r,t[r],n);return e},z4=d0.Array,$4=Math.max,H4=I2.f,V4="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],U4={f:function(e){return V4&&"Window"==E0(e)?function(e){try{return H4(e)}catch(t){return function(e){for(var t,n,r,o,i=I1(e),a=P1(void 0,i),u=P1(i,i),s=z4($4(u-a,0)),l=0;a<u;a++,l++)t=s,n=l,r=e[a],(o=S1(n))in t?O1.f(t,o,d2(0,r)):t[o]=r;return s.length=l,s}(V4)}}(e):H4(O0(e))}},W4=m0((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),G4=Object.isExtensible,q4=m0((function(){G4(1)}))||W4?function(e){return!!n1(e)&&(!W4||"ArrayBuffer"!=E0(e))&&(!G4||G4(e))}:G4,K4=!m0((function(){return Object.isExtensible(Object.preventExtensions({}))})),Y4=s0((function(e){var t=O1.f,n=!1,r=M0("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=I2.f,t=y0([].splice),o={};o[r]=1,e(o).length&&(I2.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Y2({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:U4.f}))},fastKey:function(e,t){if(!n1(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!N0(e,r)){if(!q4(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!N0(e,r)){if(!q4(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return K4&&n&&q4(e)&&!N0(e,r)&&i(e),e}};M1[r]=!0})),X4=y0(y0.bind),Z4=function(e,t){return b1(e),void 0===t?e:X4?X4(e,t):function(){return e.apply(t,arguments)}},J4=t1("iterator"),Q4=Array.prototype,e6=t1("iterator"),t6=function(e){if(null!=e)return w1(e,e6)||w1(e,"@@iterator")||o2[_4(e)]},n6=d0.TypeError,r6=function(e,t,n){var r,o;i1(e);try{if(!(r=w1(e,"return"))){if("throw"===t)throw n;return n}r=d1(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return i1(r),n},o6=d0.TypeError,i6=function(e,t){this.stopped=e,this.result=t},a6=i6.prototype,u6=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Z4(t,f),v=function(e){return r&&r6(r,"normal",e),new i6(!0,e)},y=function(e){return d?(i1(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=t6(e)))throw o6(y1(e)+" is not iterable");if(void 0!==(c=o)&&(o2.Array===c||Q4[J4]===c)){for(i=0,a=I1(e);a>i;i++)if((u=y(e[i]))&&p1(a6,u))return u;return new i6(!1)}r=function(e,t){var n=arguments.length<2?t6(e):t;if(b1(n))return i1(d1(n,e));throw n6(y1(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=d1(s,r)).done;){try{u=y(l.value)}catch(m){r6(r,"throw",m)}if("object"==typeof u&&u&&p1(a6,u))return u}return new i6(!1)},s6=d0.TypeError,l6=function(e,t){if(p1(t,e))return e;throw s6("Incorrect invocation")},c6=t1("iterator"),f6=!1;try{var d6=0,p6={next:function(){return{done:!!d6++}},return:function(){f6=!0}};p6[c6]=function(){return this},Array.from(p6,(function(){throw 2}))}catch(cCe){}var h6=Array.isArray||function(e){return"Array"==E0(e)},g6=function(){},v6=[],y6=$0("Reflect","construct"),m6=/^\s*(?:class|function)\b/,b6=y0(m6.exec),w6=!m6.exec(g6),E6=function(e){if(!z0(e))return!1;try{return y6(g6,v6,e),!0}catch(t){return!1}},x6=!y6||m0((function(){var e;return E6(E6.call)||!E6(Object)||!E6((function(){e=!0}))||e}))?function(e){if(!z0(e))return!1;switch(_4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return w6||!!b6(m6,l2(e))}:E6,C6=t1("species"),S6=d0.Array,D6=function(e,t){return new(h6(n=e)&&(r=n.constructor,(x6(r)&&(r===S6||h6(r.prototype))||n1(r)&&null===(r=r[C6]))&&(r=void 0)),void 0===r?S6:r)(0===t?0:t);var n,r},A6=y0([].push),O6=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=P0(s),g=S0(h),v=Z4(l,c),y=I1(g),m=0,b=f||D6,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:A6(w,d)}else switch(e){case 4:return!1;case 7:A6(w,d)}return i?-1:r||o?o:w}},_6={filter:O6(2),find:O6(5),findIndex:O6(6)},k6=Y4.getWeakData,B6=S2.set,F6=S2.getterFor,T6=_6.find,P6=_6.findIndex,j6=y0([].splice),N6=0,I6=function(e){return e.frozen||(e.frozen=new L6)},L6=function(){this.entries=[]},R6=function(e,t){return T6(e.entries,(function(e){return e[0]===t}))};L6.prototype={get:function(e){var t=R6(this,e);if(t)return t[1]},has:function(e){return!!R6(this,e)},set:function(e,t){var n=R6(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=P6(this.entries,(function(t){return t[0]===e}));return~t&&j6(this.entries,t,1),!!~t}};var M6,z6={getConstructor:function(e,t,n,r){var o=e((function(e,o){l6(e,i),B6(e,{type:t,id:N6++,frozen:void 0}),null!=o&&u6(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=F6(t),u=function(e,t,n){var r=a(e),o=k6(i1(t),!0);return!0===o?I6(r).set(t,n):o[r.id]=n,e};return M4(i,{delete:function(e){var t=a(this);if(!n1(e))return!1;var n=k6(e);return!0===n?I6(t).delete(e):n&&N0(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!n1(e))return!1;var n=k6(e);return!0===n?I6(t).has(e):n&&N0(n,t.id)}}),M4(i,n?{get:function(e){var t=a(this);if(n1(e)){var n=k6(e);return!0===n?I6(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},$6=S2.enforce,H6=!d0.ActiveXObject&&"ActiveXObject"in d0,V6=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},U6=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=d0[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=y0(u[e]);j2(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!n1(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!n1(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!n1(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(q2(e,!z0(a)||!(o||u.forEach&&!m0((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Y4.enable();else if(q2(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=m0((function(){f.has(1)})),h=function(){if(!f6)return!1;var e=!1;try{var t={};t[c6]=function(){return{next:function(){return{done:e=!0}}}},new a(t)}catch(n){}return e}(),g=!o&&m0((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){l6(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,d4&&z0(c=o.constructor)&&c!==l&&n1(f=c.prototype)&&f!==l.prototype&&d4(n,f),n);return null!=t&&u6(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Y2({global:!0,forced:s!=a},l),u4(s,e),o||n.setStrong(s,e,r),s}("WeakMap",V6,z6);if(f2&&H6){M6=z6.getConstructor(V6,"WeakMap",!0),Y4.enable();var W6=U6.prototype,G6=y0(W6.delete),q6=y0(W6.has),K6=y0(W6.get),Y6=y0(W6.set);M4(W6,{delete:function(e){if(n1(e)&&!q4(e)){var t=$6(this);return t.frozen||(t.frozen=new M6),G6(this,e)||t.frozen.delete(e)}return G6(this,e)},has:function(e){if(n1(e)&&!q4(e)){var t=$6(this);return t.frozen||(t.frozen=new M6),q6(this,e)||t.frozen.has(e)}return q6(this,e)},get:function(e){if(n1(e)&&!q4(e)){var t=$6(this);return t.frozen||(t.frozen=new M6),q6(this,e)?K6(this,e):t.frozen.get(e)}return K6(this,e)},set:function(e,t){if(n1(e)&&!q4(e)){var n=$6(this);n.frozen||(n.frozen=new M6),q6(this,e)?Y6(this,e,t):n.frozen.set(e,t)}else Y6(this,e,t);return this}})}var X6={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},Z6=l1("span").classList,J6=Z6&&Z6.constructor&&Z6.constructor.prototype,Q6=J6===Object.prototype?void 0:J6,e3=t1("iterator"),t3=t1("toStringTag"),n3=x4.values,r3=function(e,t){if(e){if(e[e3]!==n3)try{p2(e,e3,n3)}catch(r){e[e3]=n3}if(e[t3]||p2(e,t3,t),X6[t])for(var n in x4)if(e[n]!==x4[n])try{p2(e,n,x4[n])}catch(r){e[n]=x4[n]}}};for(var o3 in X6)r3(d0[o3]&&d0[o3].prototype,o3);r3(Q6,"DOMTokenList");var i3=new WeakMap,a3={type:"list-item",renderElem:function(e,t,n){i3.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";void 0!==a&&a?s=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,l=t,c=qj.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=cb.previous(c),d=tb.node(e,f);if(null==d)break;var p=d[0],h=p.level,g=void 0===h?0:h,v=p.type,y=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e)+".":s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);return qx("div",{style:u},qx("span",{contentEditable:!1,style:{marginRight:"0.5em",color:function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];Db.isText(i)&&(t=i)}return null==t?"":t.color||""}(e)},"data-w-e-reserve":!0},s),qx("span",null,t))}},u3=function(e,t){return u3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},u3(e,t)};function s3(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}u3(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function l3(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)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 c3(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function f3(e){return tb.nodes(e,{at:e.selection||void 0,match:function(t){return 1===qj.findPath(e,t).length}})}var d3=R1.includes;Y2({target:"Array",proto:!0},{includes:function(e){return d3(this,e,arguments.length>1?arguments[1]:void 0)}}),r2("includes");var p3,h3,g3=function(){var e=i1(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},v3=d0.RegExp,y3=m0((function(){var e=v3("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));y3||m0((function(){return!v3("a","y").sticky}));var m3={BROKEN_CARET:y3||m0((function(){var e=v3("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},b3=d0.RegExp,w3=m0((function(){var e=b3(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),E3=d0.RegExp,x3=m0((function(){var e=E3("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),C3=S2.get,S3=F0("native-string-replace",String.prototype.replace),D3=RegExp.prototype.exec,A3=D3,O3=y0("".charAt),_3=y0("".indexOf),k3=y0("".replace),B3=y0("".slice),F3=(h3=/b*/g,d1(D3,p3=/a/,"a"),d1(D3,h3,"a"),0!==p3.lastIndex||0!==h3.lastIndex),T3=m3.BROKEN_CARET,P3=void 0!==/()??/.exec("")[1];(F3||P3||T3||w3||x3)&&(A3=function(e){var t,n,r,o,i,a,u,s=this,l=C3(s),c=F4(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=d1(A3,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=T3&&s.sticky,h=d1(g3,s),g=s.source,v=0,y=c;if(p&&(h=k3(h,"y",""),-1===_3(h,"g")&&(h+="g"),y=B3(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==O3(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),P3&&(n=new RegExp("^"+g+"$(?!\\s)",h)),F3&&(r=s.lastIndex),o=d1(D3,p?n:s,y),p?o?(o.input=B3(o.input,v),o[0]=B3(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:F3&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),P3&&o&&o.length>1&&d1(S3,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=e2(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var j3=A3;Y2({target:"RegExp",proto:!0,forced:/./.exec!==j3},{exec:j3});var N3=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return qj.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!qj.getSelectedElems(e).some((function(t){if(tb.isVoid(e,t)&&tb.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?Vb.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):Vb.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),I3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Dz("listModule.unOrderedList"),t.iconSvg='<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>',t}return s3(t,e),t}(N3),L3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Dz("listModule.orderedList"),t.iconSvg='<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>',t}return s3(t,e),t}(N3),R3={key:"bulletedList",factory:function(){return new I3}},M3={key:"numberedList",factory:function(){return new L3}},z3=[],$3={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=i3.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=qj.findPath(t,e);if(0===s[0])return u+1;var l=cb.previous(s),c=tb.node(t,l);if(!c)return 0;var f=c3(c,1)[0];if(qj.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",z3.push(i);var s=function(e){var t=i3.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=qj.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=cb.next(s),c=tb.node(t,l);if(!c)return 0;var f=c3(c,1)[0];if(qj.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+z3.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},H3=t1("species"),V3=_6.filter,U3=K0>=51||!m0((function(){var e=[];return(e.constructor={})[H3]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));Y2({target:"Array",proto:!0,forced:!U3},{filter:function(e){return V3(this,e,arguments.length>1?arguments[1]:void 0)}});var W3=Function.prototype,G3=W3.apply,q3=W3.bind,K3=W3.call,Y3="object"==typeof Reflect&&Reflect.apply||(q3?K3.bind(G3):function(){return K3.apply(G3,arguments)}),X3=(t1("species"),RegExp.prototype),Z3=N4.charAt,J3=function(e,t,n){return t+(n?Z3(e,t).length:1)},Q3=Math.floor,e5=y0("".charAt),t5=y0("".replace),n5=y0("".slice),r5=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o5=/\$([$&'`]|\d{1,2})/g,i5=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=o5;return void 0!==o&&(o=P0(o),s=r5),t5(i,s,(function(i,s){var l;switch(e5(s,0)){case"$":return"$";case"&":return e;case"`":return n5(t,0,n);case"'":return n5(t,a);case"<":l=o[n5(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=Q3(c/10);return 0===f?i:f<=u?void 0===r[f-1]?e5(s,1):r[f-1]+e5(s,1):i}l=r[c-1]}return void 0===l?"":l}))},a5=d0.TypeError,u5=function(e,t){var n=e.exec;if(z0(n)){var r=d1(n,e,t);return null!==r&&i1(r),r}if("RegExp"===E0(e))return d1(j3,e,t);throw a5("RegExp#exec called on incompatible receiver")},s5=t1("replace"),l5=Math.max,c5=Math.min,f5=y0([].concat),d5=y0([].push),p5=y0("".indexOf),h5=y0("".slice),g5="$0"==="a".replace(/./,"$0"),v5=!!/./[s5]&&""===/./[s5]("a","$0");!function(e,t,n){var r=t1(e),o=!m0((function(){var t={};return t[r]=function(){return 7},7!=""[e](t)})),i=o&&!m0((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e}));if(!o||!i||n){var a=y0(/./[r]),u=function(e,t){var n=v5?"$":"$0";return[function(e,n){var r=A0(this),o=null==e?void 0:w1(e,s5);return o?d1(o,e,r,n):d1(t,F4(r),e,n)},function(e,r){var i=i1(this),u=F4(e);if("string"==typeof r&&-1===p5(r,n)&&-1===p5(r,"$<")){var s=function(e,t,n,r,i){var u=y0(e),s=t.exec;return s===j3||s===X3.exec?o&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:u(n,t,r)}:{done:!1}}(t,i,u,r);if(s.done)return s.value}var l=z0(r);l||(r=F4(r));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var d=[];;){var p=u5(i,u);if(null===p)break;if(d5(d,p),!c)break;""===F4(p[0])&&(i.lastIndex=J3(u,N1(i.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=F4((p=d[y])[0]),b=l5(c5(B1(p.index),u.length),0),w=[],E=1;E<p.length;E++)d5(w,void 0===(h=p[E])?h:String(h));var x=p.groups;if(l){var C=f5([m],w,b,u);void 0!==x&&d5(C,x);var S=F4(Y3(r,void 0,C))}else S=i5(m,u,b,w,x,r);b>=v&&(g+=h5(u,v,b)+S,v=b+m.length)}return g+h5(u,v)}]}(0,""[e]);j2(String.prototype,e,u[0]),j2(X3,r,u[1])}}("replace",0,!!m0((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!g5||v5);var y5=d0.TypeError,m5=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&Z4(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&h6(s))l=I1(s),c=m5(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw y5("Exceed the acceptable array length");e[c]=s}c++}f++}return c},b5=m5;function w5(e){return e.length?e[0].tagName.toLowerCase():""}Y2({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=P0(this),n=I1(t),r=D6(t,0);return r.length=b5(r,t,t,n,0,void 0===e?1:B1(e)),r}}),r2("flat"),Y2({global:!0},{globalThis:d0}),SE&&(rE.fn.append=SE),uE&&(rE.fn.attr=uE),AE&&(rE.fn.parent=AE);var E5={renderElems:[a3],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(mb.isExpanded(n))t(e);else{var r=qj.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?Vb.setNodes(o,{level:a-1}):Vb.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(mb.isCollapsed(a)){var u=qj.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void Vb.setNodes(o,{level:l+1})}}if(mb.isExpanded(a)){var c=0,f=!1;try{for(var d=l3(f3(o)),p=d.next();!p.done;p=d.next()){var h=c3(p.value,1)[0];"list-item"===qj.getNodeType(h)?c++:f=!0}}catch(w){e={error:w}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var g=l3(f3(o)),v=g.next();!v.done;v=g.next()){var y=c3(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,Vb.setNodes(o,{level:l+1},{at:m})}}catch(E){r={error:E}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=c3(e,2),n=t[0],i=t[1],a=qj.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||Vb.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[R3,M3],elemsToHtml:[$3],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=rE(e);0===(t=t.filter((function(e){return!!Db.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o="ol"===w5(r.parent()),i=function(e){for(var t=0,n=e.parent(),r=w5(n);"ul"===r||"ol"===r;)r=w5(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},x5=Xa((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",v="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[o]=x[i]=x[m]=x[a]=x[b]=x[u]=x[s]=x[l]=x[c]=x[f]=x[d]=x[h]=x[g]=x[v]=x[y]=!1;var C="object"==typeof Ya&&Ya&&Ya.Object===Object&&Ya,S="object"==typeof self&&self&&self.Object===Object&&self,D=C||S||Function("return this")(),A=t&&!t.nodeType&&t,O=A&&e&&!e.nodeType&&e,_=O&&O.exports===A,k=_&&C.process,B=function(){try{return k&&k.binding&&k.binding("util")}catch($u){}}(),F=B&&B.isTypedArray;function T(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function P(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var N=Array.prototype,I=Function.prototype,L=Object.prototype,R=D["__core-js_shared__"],M=I.toString,z=L.hasOwnProperty,$=function(){var e=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),H=L.toString,V=RegExp("^"+M.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=_?D.Buffer:void 0,W=D.Symbol,G=D.Uint8Array,q=L.propertyIsEnumerable,K=N.splice,Y=W?W.toStringTag:void 0,X=Object.getOwnPropertySymbols,Z=U?U.isBuffer:void 0,J=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Q=Se(D,"DataView"),ee=Se(D,"Map"),te=Se(D,"Promise"),ne=Se(D,"Set"),re=Se(D,"WeakMap"),oe=Se(Object,"create"),ie=_e(Q),ae=_e(ee),ue=_e(te),se=_e(ne),le=_e(re),ce=W?W.prototype:void 0,fe=ce?ce.valueOf:void 0;function de(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new he;++t<n;)this.add(e[t])}function ve(e){var t=this.__data__=new pe(e);this.size=t.size}function ye(e,t){for(var n=e.length;n--;)if(ke(e[n][0],t))return n;return-1}function me(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Y&&Y in Object(e)?function(e){var t=z.call(e,Y),n=e[Y];try{e[Y]=void 0;var r=!0}catch(i){}var o=H.call(e);return r&&(t?e[Y]=n:delete e[Y]),o}(e):(t=e,H.call(t));var t}function be(e){return Ie(e)&&me(e)==o}function we(e,t,n,r,l){return e===t||(null==e||null==t||!Ie(e)&&!Ie(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var y=Fe(e),w=Fe(t),E=y?i:Ae(e),x=w?i:Ae(t),C=(E=E==o?d:E)==d,S=(x=x==o?d:x)==d,D=E==x;if(D&&Te(e)){if(!Te(t))return!1;y=!0,C=!1}if(D&&!C)return p||(p=new ve),y||Le(e)?Ee(e,t,n,r,l,p):function(e,t,n,r,o,i,l){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m:return!(e.byteLength!=t.byteLength||!i(new G(e),new G(t)));case a:case u:case f:return ke(+e,+t);case s:return e.name==t.name&&e.message==t.message;case h:case v:return e==t+"";case c:var d=P;case g:var p=1&r;if(d||(d=j),e.size!=t.size&&!p)return!1;var y=l.get(e);if(y)return y==t;r|=2,l.set(e,t);var w=Ee(d(e),d(t),r,o,i,l);return l.delete(e),w;case"[object Symbol]":if(fe)return fe.call(e)==fe.call(t)}return!1}(e,t,E,n,r,l,p);if(!(1&n)){var A=C&&z.call(e,"__wrapped__"),O=S&&z.call(t,"__wrapped__");if(A||O){var _=A?e.value():e,k=O?t.value():t;return p||(p=new ve),l(_,k,n,r,p)}}return!!D&&(p||(p=new ve),function(e,t,n,r,o,i){var a=1&n,u=xe(e),s=u.length;if(s!=xe(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:z.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<s;){var h=e[c=u[l]],g=t[c];if(r)var v=a?r(g,h,c,t,e,i):r(h,g,c,e,t,i);if(!(void 0===v?h===g||o(h,g,n,r,i):v)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,l,p))}(e,t,n,r,we,l))}function Ee(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ge:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!T(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function xe(e){return n=De,r=Re(t=e),Fe(t)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(t));var t,n,r}function Ce(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Se(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Ne(e)||(t=e,$&&$ in t))&&(Pe(e)?V:w).test(_e(e));var t}(o)?o:void 0}de.prototype.clear=function(){this.__data__=oe?oe(null):{},this.size=0},de.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},de.prototype.get=function(e){var t=this.__data__;if(oe){var r=t[e];return r===n?void 0:r}return z.call(t,e)?t[e]:void 0},de.prototype.has=function(e){var t=this.__data__;return oe?void 0!==t[e]:z.call(t,e)},de.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=oe&&void 0===t?n:t,this},pe.prototype.clear=function(){this.__data__=[],this.size=0},pe.prototype.delete=function(e){var t=this.__data__,n=ye(t,e);return!(n<0||(n==t.length-1?t.pop():K.call(t,n,1),--this.size,0))},pe.prototype.get=function(e){var t=this.__data__,n=ye(t,e);return n<0?void 0:t[n][1]},pe.prototype.has=function(e){return ye(this.__data__,e)>-1},pe.prototype.set=function(e,t){var n=this.__data__,r=ye(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},he.prototype.clear=function(){this.size=0,this.__data__={hash:new de,map:new(ee||pe),string:new de}},he.prototype.delete=function(e){var t=Ce(this,e).delete(e);return this.size-=t?1:0,t},he.prototype.get=function(e){return Ce(this,e).get(e)},he.prototype.has=function(e){return Ce(this,e).has(e)},he.prototype.set=function(e,t){var n=Ce(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ge.prototype.add=ge.prototype.push=function(e){return this.__data__.set(e,n),this},ge.prototype.has=function(e){return this.__data__.has(e)},ve.prototype.clear=function(){this.__data__=new pe,this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ve.prototype.get=function(e){return this.__data__.get(e)},ve.prototype.has=function(e){return this.__data__.has(e)},ve.prototype.set=function(e,t){var n=this.__data__;if(n instanceof pe){var r=n.__data__;if(!ee||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new he(r)}return n.set(e,t),this.size=n.size,this};var De=X?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(X(e),(function(t){return q.call(e,t)})))}:function(){return[]},Ae=me;function Oe(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||E.test(e))&&e>-1&&e%1==0&&e<t}function _e(e){if(null!=e){try{return M.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ke(e,t){return e===t||e!=e&&t!=t}(Q&&Ae(new Q(new ArrayBuffer(1)))!=b||ee&&Ae(new ee)!=c||te&&Ae(te.resolve())!=p||ne&&Ae(new ne)!=g||re&&Ae(new re)!=y)&&(Ae=function(e){var t=me(e),n=t==d?e.constructor:void 0,r=n?_e(n):"";if(r)switch(r){case ie:return b;case ae:return c;case ue:return p;case se:return g;case le:return y}return t});var Be=be(function(){return arguments}())?be:function(e){return Ie(e)&&z.call(e,"callee")&&!q.call(e,"callee")},Fe=Array.isArray,Te=Z||function(){return!1};function Pe(e){if(!Ne(e))return!1;var t=me(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ne(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ie(e){return null!=e&&"object"==typeof e}var Le=F?function(e){return function(t){return e(t)}}(F):function(e){return Ie(e)&&je(e.length)&&!!x[me(e)]};function Re(e){return null!=(t=e)&&je(t.length)&&!Pe(t)?function(e){var t=Fe(e),n=!t&&Be(e),r=!t&&!n&&Te(e),o=!t&&!n&&!r&&Le(e),i=t||n||r||o,a=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length;for(var s in e)!z.call(e,s)||i&&("length"==s||r&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Oe(s,u))||a.push(s);return a}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||L))return J(e);var t,n,r=[];for(var o in Object(e))z.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return we(e,t)}}));Sz("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"}}),Sz("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var C5="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function S5(e){var t={exports:{}};return e(t,t.exports),t.exports}var D5,A5,O5=function(e){return e&&e.Math==Math&&e},_5=O5("object"==typeof globalThis&&globalThis)||O5("object"==typeof window&&window)||O5("object"==typeof self&&self)||O5("object"==typeof C5&&C5)||function(){return this}()||Function("return this")(),k5=function(e){try{return!!e()}catch(t){return!0}},B5=!k5((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),F5=Function.prototype.call,T5=F5.bind?F5.bind(F5):function(){return F5.apply(F5,arguments)},P5={}.propertyIsEnumerable,j5=Object.getOwnPropertyDescriptor,N5={f:j5&&!P5.call({1:2},1)?function(e){var t=j5(this,e);return!!t&&t.enumerable}:P5},I5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},L5=Function.prototype,R5=L5.bind,M5=L5.call,z5=R5&&R5.bind(M5),$5=R5?function(e){return e&&z5(M5,e)}:function(e){return e&&function(){return M5.apply(e,arguments)}},H5=$5({}.toString),V5=$5("".slice),U5=function(e){return V5(H5(e),8,-1)},W5=_5.Object,G5=$5("".split),q5=k5((function(){return!W5("z").propertyIsEnumerable(0)}))?function(e){return"String"==U5(e)?G5(e,""):W5(e)}:W5,K5=_5.TypeError,Y5=function(e){if(null==e)throw K5("Can't call method on "+e);return e},X5=function(e){return q5(Y5(e))},Z5=function(e){return"function"==typeof e},J5=function(e){return"object"==typeof e?null!==e:Z5(e)},Q5=function(e,t){return arguments.length<2?function(e){return Z5(e)?e:void 0}(_5[e]):_5[e]&&_5[e][t]},e8=$5({}.isPrototypeOf),t8=Q5("navigator","userAgent")||"",n8=_5.process,r8=_5.Deno,o8=n8&&n8.versions||r8&&r8.version,i8=o8&&o8.v8;i8&&(A5=(D5=i8.split("."))[0]>0&&D5[0]<4?1:+(D5[0]+D5[1])),!A5&&t8&&(!(D5=t8.match(/Edge\/(\d+)/))||D5[1]>=74)&&(D5=t8.match(/Chrome\/(\d+)/))&&(A5=+D5[1]);var a8=A5,u8=!!Object.getOwnPropertySymbols&&!k5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&a8&&a8<41})),s8=u8&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,l8=_5.Object,c8=s8?function(e){return"symbol"==typeof e}:function(e){var t=Q5("Symbol");return Z5(t)&&e8(t.prototype,l8(e))},f8=_5.String,d8=function(e){try{return f8(e)}catch(t){return"Object"}},p8=_5.TypeError,h8=function(e){if(Z5(e))return e;throw p8(d8(e)+" is not a function")},g8=function(e,t){var n=e[t];return null==n?void 0:h8(n)},v8=_5.TypeError,y8=Object.defineProperty,m8=function(e,t){try{y8(_5,e,{value:t,configurable:!0,writable:!0})}catch(Oz){_5[e]=t}return t},b8=_5["__core-js_shared__"]||m8("__core-js_shared__",{}),w8=S5((function(e){(e.exports=function(e,t){return b8[e]||(b8[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),E8=_5.Object,x8=function(e){return E8(Y5(e))},C8=$5({}.hasOwnProperty),S8=Object.hasOwn||function(e,t){return C8(x8(e),t)},D8=0,A8=Math.random(),O8=$5(1..toString),_8=function(e){return"Symbol("+(void 0===e?"":e)+")_"+O8(++D8+A8,36)},k8=w8("wks"),B8=_5.Symbol,F8=B8&&B8.for,T8=s8?B8:B8&&B8.withoutSetter||_8,P8=function(e){if(!S8(k8,e)||!u8&&"string"!=typeof k8[e]){var t="Symbol."+e;u8&&S8(B8,e)?k8[e]=B8[e]:k8[e]=s8&&F8?F8(t):T8(t)}return k8[e]},j8=_5.TypeError,N8=P8("toPrimitive"),I8=function(e){var t=function(e){if(!J5(e)||c8(e))return e;var t,n=g8(e,N8);if(n){if(t=T5(n,e,"string"),!J5(t)||c8(t))return t;throw j8("Can't convert object to primitive value")}return function(e){var t,n;if(Z5(t=e.toString)&&!J5(n=T5(t,e)))return n;if(Z5(t=e.valueOf)&&!J5(n=T5(t,e)))return n;throw v8("Can't convert object to primitive value")}(e)}(e);return c8(t)?t:t+""},L8=_5.document,R8=J5(L8)&&J5(L8.createElement),M8=function(e){return R8?L8.createElement(e):{}},z8=!B5&&!k5((function(){return 7!=Object.defineProperty(M8("div"),"a",{get:function(){return 7}}).a})),$8=Object.getOwnPropertyDescriptor,H8={f:B5?$8:function(e,t){if(e=X5(e),t=I8(t),z8)try{return $8(e,t)}catch(n){}if(S8(e,t))return I5(!T5(N5.f,e,t),e[t])}},V8=_5.String,U8=_5.TypeError,W8=function(e){if(J5(e))return e;throw U8(V8(e)+" is not an object")},G8=_5.TypeError,q8=Object.defineProperty,K8={f:B5?q8:function(e,t,n){if(W8(e),t=I8(t),W8(n),z8)try{return q8(e,t,n)}catch(r){}if("get"in n||"set"in n)throw G8("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Y8=B5?function(e,t,n){return K8.f(e,t,I5(1,n))}:function(e,t,n){return e[t]=n,e},X8=$5(Function.toString);Z5(b8.inspectSource)||(b8.inspectSource=function(e){return X8(e)});var Z8,J8,Q8,e7=b8.inspectSource,t7=_5.WeakMap,n7=Z5(t7)&&/native code/.test(e7(t7)),r7=w8("keys"),o7=function(e){return r7[e]||(r7[e]=_8(e))},i7={},a7=_5.TypeError,u7=_5.WeakMap;if(n7||b8.state){var s7=b8.state||(b8.state=new u7),l7=$5(s7.get),c7=$5(s7.has),f7=$5(s7.set);Z8=function(e,t){if(c7(s7,e))throw new a7("Object already initialized");return t.facade=e,f7(s7,e,t),t},J8=function(e){return l7(s7,e)||{}},Q8=function(e){return c7(s7,e)}}else{var d7=o7("state");i7[d7]=!0,Z8=function(e,t){if(S8(e,d7))throw new a7("Object already initialized");return t.facade=e,Y8(e,d7,t),t},J8=function(e){return S8(e,d7)?e[d7]:{}},Q8=function(e){return S8(e,d7)}}var p7={get:J8,enforce:function(e){return Q8(e)?J8(e):Z8(e,{})}},h7=Function.prototype,g7=B5&&Object.getOwnPropertyDescriptor,v7=S8(h7,"name"),y7={PROPER:v7&&"something"===function(){}.name,CONFIGURABLE:v7&&(!B5||B5&&g7(h7,"name").configurable)},m7=S5((function(e){var t=y7.CONFIGURABLE,n=p7.get,r=p7.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Z5(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!S8(i,"name")||t&&i.name!==f)&&Y8(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==_5?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Y8(e,n,i)):l?e[n]=i:m8(n,i)})(Function.prototype,"toString",(function(){return Z5(this)&&n(this).source||e7(this)}))})),b7=Math.ceil,w7=Math.floor,E7=function(e){var t=+e;return t!=t||0===t?0:(t>0?w7:b7)(t)},x7=Math.max,C7=Math.min,S7=function(e,t){var n=E7(e);return n<0?x7(n+t,0):C7(n,t)},D7=Math.min,A7=function(e){return e>0?D7(E7(e),9007199254740991):0},O7=function(e){return A7(e.length)},_7=function(e){return function(t,n,r){var o,i=X5(t),a=O7(i),u=S7(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),k7=$5([].push),B7=function(e,t){var n,r=X5(e),o=0,i=[];for(n in r)!S8(i7,n)&&S8(r,n)&&k7(i,n);for(;t.length>o;)S8(r,n=t[o++])&&(~_7(i,n)||k7(i,n));return i},F7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],T7=F7.concat("length","prototype"),P7={f:Object.getOwnPropertyNames||function(e){return B7(e,T7)}},j7={f:Object.getOwnPropertySymbols},N7=$5([].concat),I7=Q5("Reflect","ownKeys")||function(e){var t=P7.f(W8(e)),n=j7.f;return n?N7(t,n(e)):t},L7=function(e,t){for(var n=I7(t),r=K8.f,o=H8.f,i=0;i<n.length;i++){var a=n[i];S8(e,a)||r(e,a,o(t,a))}},R7=/#|\.prototype\./,M7=function(e,t){var n=$7[z7(e)];return n==V7||n!=H7&&(Z5(t)?k5(t):!!t)},z7=M7.normalize=function(e){return String(e).replace(R7,".").toLowerCase()},$7=M7.data={},H7=M7.NATIVE="N",V7=M7.POLYFILL="P",U7=M7,W7=H8.f,G7=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?_5:l?_5[u]||m8(u,{}):(_5[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=W7(n,r))&&a.value:n[r],!U7(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;L7(i,o)}(e.sham||o&&o.sham)&&Y8(i,"sham",!0),m7(n,r,i,e)}},q7={};q7[P8("toStringTag")]="z";var K7="[object z]"===String(q7),Y7=P8("toStringTag"),X7=_5.Object,Z7="Arguments"==U5(function(){return arguments}()),J7=K7?U5:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=X7(e),Y7))?n:Z7?U5(t):"Object"==(r=U5(t))&&Z5(t.callee)?"Arguments":r},Q7=_5.String,e9=function(e){if("Symbol"===J7(e))throw TypeError("Cannot convert a Symbol value to a string");return Q7(e)},t9=/"/g,n9=$5("".replace);G7({target:"String",proto:!0,forced:k5((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=e9(Y5(this)),r="<a",(r+=' name="'+n9(e9(t),t9,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var r9,o9=function(){var e=W8(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},i9=_5.RegExp,a9=k5((function(){var e=i9("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));a9||k5((function(){return!i9("a","y").sticky}));var u9={BROKEN_CARET:a9||k5((function(){var e=i9("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:a9},s9=Object.keys||function(e){return B7(e,F7)},l9=B5?Object.defineProperties:function(e,t){W8(e);for(var n,r=X5(t),o=s9(t),i=o.length,a=0;i>a;)K8.f(e,n=o[a++],r[n]);return e},c9=Q5("document","documentElement"),f9=o7("IE_PROTO"),d9=function(){},p9=function(e){return"<script>"+e+"<\/script>"},h9=function(e){e.write(p9("")),e.close();var t=e.parentWindow.Object;return e=null,t},g9=function(){try{r9=new ActiveXObject("htmlfile")}catch(r){}var e,t;g9="undefined"!=typeof document?document.domain&&r9?h9(r9):((t=M8("iframe")).style.display="none",c9.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p9("document.F=Object")),e.close(),e.F):h9(r9);for(var n=F7.length;n--;)delete g9.prototype[F7[n]];return g9()};i7[f9]=!0;var v9,y9,m9=Object.create||function(e,t){var n;return null!==e?(d9.prototype=W8(e),n=new d9,d9.prototype=null,n[f9]=e):n=g9(),void 0===t?n:l9(n,t)},b9=_5.RegExp,w9=k5((function(){var e=b9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),E9=_5.RegExp,x9=k5((function(){var e=E9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),C9=p7.get,S9=w8("native-string-replace",String.prototype.replace),D9=RegExp.prototype.exec,A9=D9,O9=$5("".charAt),_9=$5("".indexOf),k9=$5("".replace),B9=$5("".slice),F9=(y9=/b*/g,T5(D9,v9=/a/,"a"),T5(D9,y9,"a"),0!==v9.lastIndex||0!==y9.lastIndex),T9=u9.BROKEN_CARET,P9=void 0!==/()??/.exec("")[1];(F9||P9||T9||w9||x9)&&(A9=function(e){var t,n,r,o,i,a,u,s=this,l=C9(s),c=e9(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=T5(A9,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=T9&&s.sticky,h=T5(o9,s),g=s.source,v=0,y=c;if(p&&(h=k9(h,"y",""),-1===_9(h,"g")&&(h+="g"),y=B9(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==O9(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),P9&&(n=new RegExp("^"+g+"$(?!\\s)",h)),F9&&(r=s.lastIndex),o=T5(D9,p?n:s,y),p?o?(o.input=B9(o.input,v),o[0]=B9(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:F9&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),P9&&o&&o.length>1&&T5(S9,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=m9(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var j9=A9;G7({target:"RegExp",proto:!0,forced:/./.exec!==j9},{exec:j9});var N9=Array.isArray||function(e){return"Array"==U5(e)},I9=function(){},L9=[],R9=Q5("Reflect","construct"),M9=/^\s*(?:class|function)\b/,z9=$5(M9.exec),$9=!M9.exec(I9),H9=function(e){if(!Z5(e))return!1;try{return R9(I9,L9,e),!0}catch(t){return!1}},V9=!R9||k5((function(){var e;return H9(H9.call)||!H9(Object)||!H9((function(){e=!0}))||e}))?function(e){if(!Z5(e))return!1;switch(J7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $9||!!z9(M9,e7(e))}:H9,U9=function(e,t,n){var r=I8(t);r in e?K8.f(e,r,I5(0,n)):e[r]=n},W9=P8("species"),G9=function(e){return a8>=51||!k5((function(){var t=[];return(t.constructor={})[W9]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},q9=$5([].slice),K9=G9("slice"),Y9=P8("species"),X9=_5.Array,Z9=Math.max;function J9(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Q9(e){var t=e.selection;if(null==t)return!1;var n=J9(tb.nodes(e,{match:function(e){return qj.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=J9(n,2)[1],o=tb.start(e,r);if(hb.equals(t.anchor,o))return!0}return!1}function eee(e,t){var n,r,o=tb.nodes(e,{at:t,match:function(e){return"table"===qj.getNodeType(e)}}),i=!1;try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)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.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}G7({target:"Array",proto:!0,forced:!K9},{slice:function(e,t){var n,r,o,i=X5(this),a=O7(i),u=S7(e,a),s=S7(void 0===t?a:t,a);if(N9(i)&&(n=i.constructor,(V9(n)&&(n===X9||N9(n.prototype))||J5(n)&&null===(n=n[Y9]))&&(n=void 0),n===X9||void 0===n))return q9(i,u,s);for(r=new(void 0===n?X9:n)(Z9(s-u,0)),o=0;u<s;u++,o++)u in i&&U9(r,o,i[u]);return r.length=o,r}});var tee=$5($5.bind),nee=P8("species"),ree=_5.Array,oee=function(e,t){return new(N9(n=e)&&(r=n.constructor,(V9(r)&&(r===ree||N9(r.prototype))||J5(r)&&null===(r=r[nee]))&&(r=void 0)),void 0===r?ree:r)(0===t?0:t);var n,r},iee=$5([].push),aee=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=x8(s),g=q5(h),v=function(e,t){return h8(e),void 0===t?e:tee?tee(e,t):function(){return e.apply(t,arguments)}}(l,c),y=O7(g),m=0,b=f||oee,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:iee(w,d)}else switch(e){case 4:return!1;case 7:iee(w,d)}return i?-1:r||o?o:w}},uee={forEach:aee(0),map:aee(1),filter:aee(2),find:aee(5)},see=uee.map;G7({target:"Array",proto:!0,forced:!G9("map")},{map:function(e){return see(this,e,arguments.length>1?arguments[1]:void 0)}});var lee=K7?{}.toString:function(){return"[object "+J7(this)+"]"};function cee(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function fee(e){return cee(e).every((function(e){return!!e.isHeader}))}K7||m7(Object.prototype,"toString",lee,{unsafe:!0});var dee=y7.PROPER,pee=RegExp.prototype,hee=pee.toString,gee=$5(o9),vee=k5((function(){return"/a/b"!=hee.call({source:"a",flags:"b"})})),yee=dee&&"toString"!=hee.name;(vee||yee)&&m7(RegExp.prototype,"toString",(function(){var e=W8(this),t=e9(e.source),n=e.flags;return"/"+t+"/"+e9(void 0===n&&e8(pee,e)&&!("flags"in pee)?gee(e):n)}),{unsafe:!0});var mee=P8("unscopables"),bee=Array.prototype;null==bee[mee]&&K8.f(bee,mee,{configurable:!0,value:m9(null)});var wee=uee.find,Eee=!0;"find"in[]&&Array(1).find((function(){Eee=!1})),G7({target:"Array",proto:!0,forced:Eee},{find:function(e){return wee(this,e,arguments.length>1?arguments[1]:void 0)}}),bee[mee].find=!0;var xee=Function.prototype,Cee=xee.apply,See=xee.bind,Dee=xee.call,Aee="object"==typeof Reflect&&Reflect.apply||(See?Dee.bind(Cee):function(){return Dee.apply(Cee,arguments)}),Oee=P8("species"),_ee=RegExp.prototype,kee=function(e,t,n,r){var o=P8(e),i=!k5((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!k5((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Oee]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=$5(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=$5(e),s=t.exec;return s===j9||s===_ee.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));m7(String.prototype,e,s[0]),m7(_ee,o,s[1])}r&&Y8(_ee[o],"sham",!0)},Bee=P8("match"),Fee=_5.TypeError,Tee=P8("species"),Pee=$5("".charAt),jee=$5("".charCodeAt),Nee=$5("".slice),Iee=function(e){return function(t,n){var r,o,i=e9(Y5(t)),a=E7(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=jee(i,a))<55296||r>56319||a+1===u||(o=jee(i,a+1))<56320||o>57343?e?Pee(i,a):r:e?Nee(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),Lee=function(e,t,n){return t+(n?Iee(e,t).length:1)},Ree=_5.Array,Mee=Math.max,zee=function(e,t,n){for(var r=O7(e),o=S7(t,r),i=S7(void 0===n?r:n,r),a=Ree(Mee(i-o,0)),u=0;o<i;o++,u++)U9(a,u,e[o]);return a.length=u,a},$ee=_5.TypeError,Hee=function(e,t){var n=e.exec;if(Z5(n)){var r=T5(n,e,t);return null!==r&&W8(r),r}if("RegExp"===U5(e))return T5(j9,e,t);throw $ee("RegExp#exec called on incompatible receiver")},Vee=u9.UNSUPPORTED_Y,Uee=Math.min,Wee=[].push,Gee=$5(/./.exec),qee=$5(Wee),Kee=$5("".slice);kee("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=e9(Y5(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!J5(r=e)||!(void 0!==(o=r[Bee])?o:"RegExp"==U5(r)))return T5(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=T5(j9,p,i))&&!((s=p.lastIndex)>d&&(qee(c,Kee(i,d,u.index)),u.length>1&&u.index<i.length&&Aee(Wee,c,zee(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&Gee(p,"")||qee(c,""):qee(c,Kee(i,d)),c.length>a?zee(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:T5(t,this,e,n)}:t,[function(t,n){var o=Y5(this),i=null==t?void 0:g8(t,e);return i?T5(i,t,o,n):T5(r,e9(o),t,n)},function(e,o){var i=W8(this),a=e9(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s,l,c,f=(s=RegExp,void 0===(c=W8(i).constructor)||null==(l=W8(c)[Tee])?s:function(e){if(V9(e))return e;throw Fee(d8(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Vee?"g":"y"),h=new f(Vee?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===Hee(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=Vee?0:y;var b,w=Hee(h,Vee?Kee(a,y):a);if(null===w||(b=Uee(A7(h.lastIndex+(Vee?y:0)),a.length))===v)y=Lee(a,y,d);else{if(qee(m,Kee(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(qee(m,w[E]),m.length===g)return m;y=v=b}}return qee(m,Kee(a,v)),m}]}),!!k5((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Vee);var Yee="\t\n\v\f\r    \u2028\u2029\ufeff",Xee=$5("".replace),Zee="["+Yee+"]",Jee=RegExp("^"+Zee+Zee+"*"),Qee=RegExp(Zee+Zee+"*$"),ete={trim:function(e){return function(t){var n=e9(Y5(t));return 1&e&&(n=Xee(n,Jee,"")),2&e&&(n=Xee(n,Qee,"")),n}}(3)},tte=y7.PROPER,nte=ete.trim;function rte(e){return e.length?e[0].tagName.toLowerCase():""}G7({target:"String",proto:!0,forced:function(e){return k5((function(){return!!Yee[e]()||"…"!=="…"[e]()||tte&&Yee[e].name!==e}))}("trim")},{trim:function(){return nte(this)}}),G7({global:!0},{globalThis:_5}),SE&&(rE.fn.append=SE),fE&&(rE.fn.on=fE),NE&&(rE.fn.focus=NE),uE&&(rE.fn.attr=uE),cE&&(rE.fn.val=cE),EE&&(rE.fn.html=EE),lE&&(rE.fn.dataset=lE),oE&&(rE.fn.addClass=oE),iE&&(rE.fn.removeClass=iE),kE&&(rE.fn.children=kE),bE&&(rE.fn.each=bE),_E&&(rE.fn.find=_E);var ote=!1,ite=0,ate=0,ute=null,ste=null,lte=rE("body");function cte(e){ote=!1,ste=null,ute=null,lte.off("mousemove",fte),lte.off("mouseup",cte)}lte.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),ote=!0;var n=e.clientX;ite=n;var r=t.getBoundingClientRect().width;ate=r,lte.on("mousemove",fte),lte.on("mouseup",cte)}}));var fte=hx((function(e){if(ote&&null!=ste&&null!=ute){e.preventDefault();var t=e.clientX,n=ate+(t-ite);(n=Math.floor(100*n)/100)<30&&(n=30),Vb.setNodes(ste,{width:n.toString()},{at:ute})}}),100),dte={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(mb.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=qj.findPath(e,t),a=tb.start(e,i),u=tb.end(e,i),s=hb.compare(r,u)<=0&&hb.compare(r,a)>=0,l=hb.compare(o,u)<=0&&hb.compare(o,a)>=0;return!!(s&&l&&cb.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o;return qx("div",{className:"table-container","data-selected":qj.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=qj.findPath(n,e),o=tb.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},qx("table",{width:i,contentEditable:r},qx("colgroup",null,cee(e).map((function(e){var t=e.width;return qx("col",{width:void 0===t?"auto":t})}))),qx("tbody",null,t)))}},pte={type:"table-row",renderElem:function(e,t,n){return qx("tr",null,t)}},hte={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=qj.getParentNode(e,t);if(null==n)return!1;var r=qj.getParentNode(e,n);return null!=r&&cee(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader;return r?qx(void 0!==l&&l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:hx((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,s=o.height,l=t.clientX,c=t.clientY;ote||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",ste=n,ute=qj.findPath(n,e)):ote||(r.style.cursor="auto",ste=null,ute=null))}}),100)}},t):qx("td",{colSpan:a,rowSpan:s},t)}},gte={selector:"table",preParseHtml:function(e){var t=rE(e);if("table"!==rte(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},vte=uee.filter;G7({target:"Array",proto:!0,forced:!G9("filter")},{filter:function(e){return vte(this,e,arguments.length>1?arguments[1]:void 0)}});var yte=Math.floor,mte=$5("".charAt),bte=$5("".replace),wte=$5("".slice),Ete=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,xte=/\$([$&'`]|\d{1,2})/g,Cte=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=xte;return void 0!==o&&(o=x8(o),s=Ete),bte(i,s,(function(i,s){var l;switch(mte(s,0)){case"$":return"$";case"&":return e;case"`":return wte(t,0,n);case"'":return wte(t,a);case"<":l=o[wte(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=yte(c/10);return 0===f?i:f<=u?void 0===r[f-1]?mte(s,1):r[f-1]+mte(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Ste=P8("replace"),Dte=Math.max,Ate=Math.min,Ote=$5([].concat),_te=$5([].push),kte=$5("".indexOf),Bte=$5("".slice),Fte="$0"==="a".replace(/./,"$0"),Tte=!!/./[Ste]&&""===/./[Ste]("a","$0");kee("replace",(function(e,t,n){var r=Tte?"$":"$0";return[function(e,n){var r=Y5(this),o=null==e?void 0:g8(e,Ste);return o?T5(o,e,r,n):T5(t,e9(r),e,n)},function(e,o){var i=W8(this),a=e9(e);if("string"==typeof o&&-1===kte(o,r)&&-1===kte(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Z5(o);s||(o=e9(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=Hee(i,a);if(null===d)break;if(_te(f,d),!l)break;""===e9(d[0])&&(i.lastIndex=Lee(a,A7(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=e9((d=f[v])[0]),m=Dte(Ate(E7(d.index),a.length),0),b=[],w=1;w<d.length;w++)_te(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=Ote([y],b,m,a);void 0!==E&&_te(x,E);var C=e9(Aee(o,void 0,x))}else C=Cte(y,a,m,b,E,o);m>=g&&(h+=Bte(a,g,m)+C,g=m+y.length)}return h+Bte(a,g)}]}),!!k5((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Fte||Tte);var Pte={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=rE(e);0===(t=t.filter((function(e){return!!Db.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===rte(r),colSpan:o,rowSpan:i,width:a,children:t}}},jte={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===qj.getNodeType(e)}))}}},Nte={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=rE(e),o="auto";return"100%"===function(e){for(var t="",n=(e.attr("style")||"").split(";"),r=n.length,o=0;o<r;o++){var i=n[o];if(i){var a=i.split(":");"width"===a[0].trim()&&(t=a[1].trim())}}return t}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===qj.getNodeType(e)}))}}},Ite=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!mb.isCollapsed(t)||!!qj.getSelectedElems(e).some((function(t){var n=qj.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=rE('<div class="w-e-panel-content-table"></div>'),r=rE("<span>0 &times; 0</span>"),o=rE("<table></table>"),i=0;i<10;i++){for(var a=rE("<tr></tr>"),u=0;u<10;u++){var s=rE("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=rE(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" &times; "+(a+1),o.children().each((function(e){rE(e).children().each((function(e){var t=rE(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=rE(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){qj.isSelectedEmptyParagraph(e)&&Vb.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);Vb.insertNodes(e,i,{mode:"highest"})}},e}(),Lte=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==qj.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||Vb.removeNodes(e,{mode:"highest"})},e}(),Rte=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!mb.isCollapsed(t)||null==qj.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=J9(tb.nodes(e,{match:function(e){return qj.checkNodeType(e,"table-cell")},universal:!0}),1),r=J9(n[0],2),o=r[0],i=r[1],a=qj.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=cb.parent(i),f=cb.next(c);Vb.insertNodes(e,s,{at:f})}}},e}(),Mte=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!mb.isCollapsed(t)||null==qj.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=J9(tb.nodes(e,{match:function(e){return qj.checkNodeType(e,"table-row")},universal:!0}),1),r=J9(n[0],2),o=r[0],i=r[1],a=qj.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?Vb.removeNodes(e,{mode:"highest"}):Vb.removeNodes(e,{at:i})}},e}(),zte={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},$te=M8("span").classList,Hte=$te&&$te.constructor&&$te.constructor.prototype,Vte=Hte===Object.prototype?void 0:Hte,Ute=uee.forEach,Wte=function(){var e=[].forEach;return!!e&&k5((function(){e.call(null,(function(){throw 1}),1)}))}(),Gte=Wte?[].forEach:function(e){return Ute(this,e,arguments.length>1?arguments[1]:void 0)},qte=function(e){if(e&&e.forEach!==Gte)try{Y8(e,"forEach",Gte)}catch(t){e.forEach=Gte}};for(var Kte in zte)zte[Kte]&&qte(_5[Kte]&&_5[Kte].prototype);qte(Vte);var Yte=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!mb.isCollapsed(t)||null==qj.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=J9(tb.nodes(e,{match:function(e){return qj.checkNodeType(e,"table-cell")},universal:!0}),1),r=J9(n[0],2),o=r[0],i=r[1],a=qj.getParentNode(e,o);if(null!=a){var u=qj.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){Ym.isElement(t)&&(t.children||[]).forEach((function(t){var r=qj.findPath(e,t);if(r.length===i.length&&x5(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&fee(u)&&(o.isHeader=!0),Vb.insertNodes(e,o,{at:r})}}))}))}}},e}(),Xte=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!mb.isCollapsed(t)||null==qj.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=J9(tb.nodes(e,{match:function(e){return qj.checkNodeType(e,"table-cell")},universal:!0}),1),r=J9(n[0],2),o=r[0],i=r[1],a=qj.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)Vb.removeNodes(e,{mode:"highest"});else{var s=qj.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){Ym.isElement(t)&&(t.children||[]).forEach((function(t){var n=qj.findPath(e,t);n.length===i.length&&x5(n.slice(-1),i.slice(-1))&&Vb.removeNodes(e,{at:n})}))}))}}},e}(),Zte=function(){function e(){this.title=Dz("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(e){var t=qj.getSelectedNodeByType(e,"table");return null!=t&&fee(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!mb.isCollapsed(t)||null==qj.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=qj.getSelectedNodeByType(e,"table");null!=r&&cee(r).forEach((function(t){return Vb.setNodes(e,{isHeader:n},{at:qj.findPath(e,t)})}))}},e}(),Jte=function(){function e(){this.title=Dz("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(e){var t=qj.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!mb.isCollapsed(t)||null==qj.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};Vb.setNodes(e,n,{mode:"highest"})}},e}(),Qte={renderElems:[dte,pte,hte],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"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,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[gte],parseElemsHtml:[Pte,jte,Nte],menus:[{key:"insertTable",factory:function(){return new Ite}},{key:"deleteTable",factory:function(){return new Lte}},{key:"insertTableRow",factory:function(){return new Rte}},{key:"deleteTableRow",factory:function(){return new Mte}},{key:"insertTableCol",factory:function(){return new Yte}},{key:"deleteTableCol",factory:function(){return new Xte}},{key:"tableHeader",factory:function(){return new Zte}},{key:"tableFullWidth",factory:function(){return new Jte}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==qj.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!Q9(s)){var t=s.selection;if(t){var r=tb.before(s,t);if(r){var o=eee(s,r),i=eee(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(qj.getSelectedNodeByType(s,"table")){var n=tb.above(e);qj.checkNodeType(n[0],"table-cell")&&Vb.select(e,n[1]);var r=tb.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=tb.above(e,{at:r[1]}))&&void 0!==t?t:r),Vb.select(e,r[1]);else{var o=s.children||[],i=o.length;if(qj.checkNodeType(o[i-1],"table")){var u=qj.genEmptyParagraph();Vb.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){Q9(s)||r(e)},s.normalizeNode=function(e){var t=J9(e,2),n=t[0],r=t[1];if("table"!==qj.getNodeType(n))return o([n,r]);if(qj.isLastNode(s,n)){var i=qj.genEmptyParagraph();Vb.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=qj.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):tb.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=qj.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(cb.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==ab.string(t).length){var o=qj.findPath(s,t),i={anchor:tb.start(s,o),focus:tb.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};Sz("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"}}),Sz("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});var ene=function(){return ene=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ene.apply(this,arguments)};function tne(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{u(r.next(e))}catch(t){o(t)}}function a(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}u((r=r.apply(e,[])).next())}))}function nne(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function rne(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var one="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ine(e){var t={exports:{}};return e(t,t.exports),t.exports}var ane,une,sne=function(e){return e&&e.Math==Math&&e},lne=sne("object"==typeof globalThis&&globalThis)||sne("object"==typeof window&&window)||sne("object"==typeof self&&self)||sne("object"==typeof one&&one)||function(){return this}()||Function("return this")(),cne=function(e){try{return!!e()}catch(t){return!0}},fne=!cne((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),dne=Function.prototype.call,pne=dne.bind?dne.bind(dne):function(){return dne.apply(dne,arguments)},hne={}.propertyIsEnumerable,gne=Object.getOwnPropertyDescriptor,vne={f:gne&&!hne.call({1:2},1)?function(e){var t=gne(this,e);return!!t&&t.enumerable}:hne},yne=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},mne=Function.prototype,bne=mne.bind,wne=mne.call,Ene=bne&&bne.bind(wne),xne=bne?function(e){return e&&Ene(wne,e)}:function(e){return e&&function(){return wne.apply(e,arguments)}},Cne=xne({}.toString),Sne=xne("".slice),Dne=function(e){return Sne(Cne(e),8,-1)},Ane=lne.Object,One=xne("".split),_ne=cne((function(){return!Ane("z").propertyIsEnumerable(0)}))?function(e){return"String"==Dne(e)?One(e,""):Ane(e)}:Ane,kne=lne.TypeError,Bne=function(e){if(null==e)throw kne("Can't call method on "+e);return e},Fne=function(e){return _ne(Bne(e))},Tne=function(e){return"function"==typeof e},Pne=function(e){return"object"==typeof e?null!==e:Tne(e)},jne=function(e,t){return arguments.length<2?function(e){return Tne(e)?e:void 0}(lne[e]):lne[e]&&lne[e][t]},Nne=xne({}.isPrototypeOf),Ine=jne("navigator","userAgent")||"",Lne=lne.process,Rne=lne.Deno,Mne=Lne&&Lne.versions||Rne&&Rne.version,zne=Mne&&Mne.v8;zne&&(une=(ane=zne.split("."))[0]>0&&ane[0]<4?1:+(ane[0]+ane[1])),!une&&Ine&&(!(ane=Ine.match(/Edge\/(\d+)/))||ane[1]>=74)&&(ane=Ine.match(/Chrome\/(\d+)/))&&(une=+ane[1]);var $ne=une,Hne=!!Object.getOwnPropertySymbols&&!cne((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$ne&&$ne<41})),Vne=Hne&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Une=lne.Object,Wne=Vne?function(e){return"symbol"==typeof e}:function(e){var t=jne("Symbol");return Tne(t)&&Nne(t.prototype,Une(e))},Gne=lne.String,qne=function(e){try{return Gne(e)}catch(t){return"Object"}},Kne=lne.TypeError,Yne=function(e){if(Tne(e))return e;throw Kne(qne(e)+" is not a function")},Xne=function(e,t){var n=e[t];return null==n?void 0:Yne(n)},Zne=lne.TypeError,Jne=Object.defineProperty,Qne=function(e,t){try{Jne(lne,e,{value:t,configurable:!0,writable:!0})}catch(Oz){lne[e]=t}return t},ere=lne["__core-js_shared__"]||Qne("__core-js_shared__",{}),tre=ine((function(e){(e.exports=function(e,t){return ere[e]||(ere[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),nre=lne.Object,rre=function(e){return nre(Bne(e))},ore=xne({}.hasOwnProperty),ire=Object.hasOwn||function(e,t){return ore(rre(e),t)},are=0,ure=Math.random(),sre=xne(1..toString),lre=function(e){return"Symbol("+(void 0===e?"":e)+")_"+sre(++are+ure,36)},cre=tre("wks"),fre=lne.Symbol,dre=fre&&fre.for,pre=Vne?fre:fre&&fre.withoutSetter||lre,hre=function(e){if(!ire(cre,e)||!Hne&&"string"!=typeof cre[e]){var t="Symbol."+e;Hne&&ire(fre,e)?cre[e]=fre[e]:cre[e]=Vne&&dre?dre(t):pre(t)}return cre[e]},gre=lne.TypeError,vre=hre("toPrimitive"),yre=function(e){var t=function(e){if(!Pne(e)||Wne(e))return e;var t,n=Xne(e,vre);if(n){if(t=pne(n,e,"string"),!Pne(t)||Wne(t))return t;throw gre("Can't convert object to primitive value")}return function(e){var t,n;if(Tne(t=e.toString)&&!Pne(n=pne(t,e)))return n;if(Tne(t=e.valueOf)&&!Pne(n=pne(t,e)))return n;throw Zne("Can't convert object to primitive value")}(e)}(e);return Wne(t)?t:t+""},mre=lne.document,bre=Pne(mre)&&Pne(mre.createElement),wre=function(e){return bre?mre.createElement(e):{}},Ere=!fne&&!cne((function(){return 7!=Object.defineProperty(wre("div"),"a",{get:function(){return 7}}).a})),xre=Object.getOwnPropertyDescriptor,Cre={f:fne?xre:function(e,t){if(e=Fne(e),t=yre(t),Ere)try{return xre(e,t)}catch(n){}if(ire(e,t))return yne(!pne(vne.f,e,t),e[t])}},Sre=lne.String,Dre=lne.TypeError,Are=function(e){if(Pne(e))return e;throw Dre(Sre(e)+" is not an object")},Ore=lne.TypeError,_re=Object.defineProperty,kre={f:fne?_re:function(e,t,n){if(Are(e),t=yre(t),Are(n),Ere)try{return _re(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Ore("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Bre=fne?function(e,t,n){return kre.f(e,t,yne(1,n))}:function(e,t,n){return e[t]=n,e},Fre=xne(Function.toString);Tne(ere.inspectSource)||(ere.inspectSource=function(e){return Fre(e)});var Tre,Pre,jre,Nre=ere.inspectSource,Ire=lne.WeakMap,Lre=Tne(Ire)&&/native code/.test(Nre(Ire)),Rre=tre("keys"),Mre=function(e){return Rre[e]||(Rre[e]=lre(e))},zre={},$re=lne.TypeError,Hre=lne.WeakMap;if(Lre||ere.state){var Vre=ere.state||(ere.state=new Hre),Ure=xne(Vre.get),Wre=xne(Vre.has),Gre=xne(Vre.set);Tre=function(e,t){if(Wre(Vre,e))throw new $re("Object already initialized");return t.facade=e,Gre(Vre,e,t),t},Pre=function(e){return Ure(Vre,e)||{}},jre=function(e){return Wre(Vre,e)}}else{var qre=Mre("state");zre[qre]=!0,Tre=function(e,t){if(ire(e,qre))throw new $re("Object already initialized");return t.facade=e,Bre(e,qre,t),t},Pre=function(e){return ire(e,qre)?e[qre]:{}},jre=function(e){return ire(e,qre)}}var Kre={set:Tre,get:Pre,has:jre,enforce:function(e){return jre(e)?Pre(e):Tre(e,{})},getterFor:function(e){return function(t){var n;if(!Pne(t)||(n=Pre(t)).type!==e)throw $re("Incompatible receiver, "+e+" required");return n}}},Yre=Function.prototype,Xre=fne&&Object.getOwnPropertyDescriptor,Zre=ire(Yre,"name"),Jre={EXISTS:Zre,PROPER:Zre&&"something"===function(){}.name,CONFIGURABLE:Zre&&(!fne||fne&&Xre(Yre,"name").configurable)},Qre=ine((function(e){var t=Jre.CONFIGURABLE,n=Kre.get,r=Kre.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Tne(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ire(i,"name")||t&&i.name!==f)&&Bre(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==lne?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Bre(e,n,i)):l?e[n]=i:Qne(n,i)})(Function.prototype,"toString",(function(){return Tne(this)&&n(this).source||Nre(this)}))})),eoe=Math.ceil,toe=Math.floor,noe=function(e){var t=+e;return t!=t||0===t?0:(t>0?toe:eoe)(t)},roe=Math.max,ooe=Math.min,ioe=function(e,t){var n=noe(e);return n<0?roe(n+t,0):ooe(n,t)},aoe=Math.min,uoe=function(e){return e>0?aoe(noe(e),9007199254740991):0},soe=function(e){return uoe(e.length)},loe=function(e){return function(t,n,r){var o,i=Fne(t),a=soe(i),u=ioe(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},coe={includes:loe(!0),indexOf:loe(!1)},foe=coe.indexOf,doe=xne([].push),poe=function(e,t){var n,r=Fne(e),o=0,i=[];for(n in r)!ire(zre,n)&&ire(r,n)&&doe(i,n);for(;t.length>o;)ire(r,n=t[o++])&&(~foe(i,n)||doe(i,n));return i},hoe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],goe=hoe.concat("length","prototype"),voe={f:Object.getOwnPropertyNames||function(e){return poe(e,goe)}},yoe={f:Object.getOwnPropertySymbols},moe=xne([].concat),boe=jne("Reflect","ownKeys")||function(e){var t=voe.f(Are(e)),n=yoe.f;return n?moe(t,n(e)):t},woe=function(e,t){for(var n=boe(t),r=kre.f,o=Cre.f,i=0;i<n.length;i++){var a=n[i];ire(e,a)||r(e,a,o(t,a))}},Eoe=/#|\.prototype\./,xoe=function(e,t){var n=Soe[Coe(e)];return n==Aoe||n!=Doe&&(Tne(t)?cne(t):!!t)},Coe=xoe.normalize=function(e){return String(e).replace(Eoe,".").toLowerCase()},Soe=xoe.data={},Doe=xoe.NATIVE="N",Aoe=xoe.POLYFILL="P",Ooe=xoe,_oe=Cre.f,koe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?lne:l?lne[u]||Qne(u,{}):(lne[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=_oe(n,r))&&a.value:n[r],!Ooe(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;woe(i,o)}(e.sham||o&&o.sham)&&Bre(i,"sham",!0),Qre(n,r,i,e)}},Boe={};Boe[hre("toStringTag")]="z";var Foe="[object z]"===String(Boe),Toe=hre("toStringTag"),Poe=lne.Object,joe="Arguments"==Dne(function(){return arguments}()),Noe=Foe?Dne:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Poe(e),Toe))?n:joe?Dne(t):"Object"==(r=Dne(t))&&Tne(t.callee)?"Arguments":r},Ioe=lne.String,Loe=function(e){if("Symbol"===Noe(e))throw TypeError("Cannot convert a Symbol value to a string");return Ioe(e)},Roe="\t\n\v\f\r    \u2028\u2029\ufeff",Moe=xne("".replace),zoe="["+Roe+"]",$oe=RegExp("^"+zoe+zoe+"*"),Hoe=RegExp(zoe+zoe+"*$"),Voe={trim:function(e){return function(t){var n=Loe(Bne(t));return 1&e&&(n=Moe(n,$oe,"")),2&e&&(n=Moe(n,Hoe,"")),n}}(3)},Uoe=Jre.PROPER,Woe=Voe.trim;function Goe(e){return e.length?e[0].tagName.toLowerCase():""}function qoe(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=rE(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}koe({target:"String",proto:!0,forced:cne((function(){return!!Roe.trim()||"…"!=="…".trim()||Uoe&&"trim"!==Roe.trim.name}))},{trim:function(){return Woe(this)}}),koe({global:!0},{globalThis:lne}),SE&&(rE.fn.append=SE),fE&&(rE.fn.on=fE),NE&&(rE.fn.focus=NE),uE&&(rE.fn.attr=uE),cE&&(rE.fn.val=cE),EE&&(rE.fn.html=EE),AE&&(rE.fn.parent=AE),aE&&(rE.fn.hasClass=aE),FE&&(rE.fn.empty=FE);var Koe,Yoe={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.width,c=void 0===l?"auto":l,f=o.height,d=void 0===f?"auto":f,p=qj.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=qx("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:qoe(a,c,d)});else{var h=qx("video",{poster:s,controls:!0},qx("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(h.data.width=c),"auto"!==d&&(h.data.height=d),r=qx("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return Ox("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},Xoe={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=qoe(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},Zoe=Object.keys||function(e){return poe(e,hoe)},Joe=fne?Object.defineProperties:function(e,t){Are(e);for(var n,r=Fne(t),o=Zoe(t),i=o.length,a=0;i>a;)kre.f(e,n=o[a++],r[n]);return e},Qoe=jne("document","documentElement"),eie=Mre("IE_PROTO"),tie=function(){},nie=function(e){return"<script>"+e+"<\/script>"},rie=function(e){e.write(nie("")),e.close();var t=e.parentWindow.Object;return e=null,t},oie=function(){try{Koe=new ActiveXObject("htmlfile")}catch(r){}var e,t;oie="undefined"!=typeof document?document.domain&&Koe?rie(Koe):((t=wre("iframe")).style.display="none",Qoe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(nie("document.F=Object")),e.close(),e.F):rie(Koe);for(var n=hoe.length;n--;)delete oie.prototype[hoe[n]];return oie()};zre[eie]=!0;var iie=Object.create||function(e,t){var n;return null!==e?(tie.prototype=Are(e),n=new tie,tie.prototype=null,n[eie]=e):n=oie(),void 0===t?n:Joe(n,t)},aie=hre("unscopables"),uie=Array.prototype;null==uie[aie]&&kre.f(uie,aie,{configurable:!0,value:iie(null)});var sie=function(e){uie[aie][e]=!0},lie=coe.includes;koe({target:"Array",proto:!0},{includes:function(e){return lie(this,e,arguments.length>1?arguments[1]:void 0)}}),sie("includes");var cie={selector:"iframe,video,p",preParseHtml:function(e){var t=rE(e),n=t;if("p"===Goe(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=rE(o))}}var a=Goe(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=rE('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},fie=xne(xne.bind),die=function(e,t){return Yne(e),void 0===t?e:fie?fie(e,t):function(){return e.apply(t,arguments)}},pie=Array.isArray||function(e){return"Array"==Dne(e)},hie=function(){},gie=[],vie=jne("Reflect","construct"),yie=/^\s*(?:class|function)\b/,mie=xne(yie.exec),bie=!yie.exec(hie),wie=function(e){if(!Tne(e))return!1;try{return vie(hie,gie,e),!0}catch(t){return!1}},Eie=!vie||cne((function(){var e;return wie(wie.call)||!wie(Object)||!wie((function(){e=!0}))||e}))?function(e){if(!Tne(e))return!1;switch(Noe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bie||!!mie(yie,Nre(e))}:wie,xie=hre("species"),Cie=lne.Array,Sie=function(e,t){return new(pie(n=e)&&(r=n.constructor,(Eie(r)&&(r===Cie||pie(r.prototype))||Pne(r)&&null===(r=r[xie]))&&(r=void 0)),void 0===r?Cie:r)(0===t?0:t);var n,r},Die=xne([].push),Aie=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=rre(s),g=_ne(h),v=die(l,c),y=soe(g),m=0,b=f||Sie,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Die(w,d)}else switch(e){case 4:return!1;case 7:Die(w,d)}return i?-1:r||o?o:w}},Oie={find:Aie(5),findIndex:Aie(6)},_ie=Oie.find,kie=!0;"find"in[]&&Array(1).find((function(){kie=!1})),koe({target:"Array",proto:!0,forced:kie},{find:function(e){return _ie(this,e,arguments.length>1?arguments[1]:void 0)}}),sie("find");var Bie=Foe?{}.toString:function(){return"[object "+Noe(this)+"]"};function Fie(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}Foe||Qre(Object.prototype,"toString",Bie,{unsafe:!0});var Tie,Pie,jie={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=rE(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",Fie(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",Fie(o,i=l.attr("poster")||"",a,u)}},Nie=function(){var e=Are(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},Iie=lne.RegExp,Lie=cne((function(){var e=Iie("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));Lie||cne((function(){return!Iie("a","y").sticky}));var Rie={BROKEN_CARET:Lie||cne((function(){var e=Iie("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Mie=lne.RegExp,zie=cne((function(){var e=Mie(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),$ie=lne.RegExp,Hie=cne((function(){var e=$ie("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Vie=Kre.get,Uie=tre("native-string-replace",String.prototype.replace),Wie=RegExp.prototype.exec,Gie=Wie,qie=xne("".charAt),Kie=xne("".indexOf),Yie=xne("".replace),Xie=xne("".slice),Zie=(Pie=/b*/g,pne(Wie,Tie=/a/,"a"),pne(Wie,Pie,"a"),0!==Tie.lastIndex||0!==Pie.lastIndex),Jie=Rie.BROKEN_CARET,Qie=void 0!==/()??/.exec("")[1];(Zie||Qie||Jie||zie||Hie)&&(Gie=function(e){var t,n,r,o,i,a,u,s=this,l=Vie(s),c=Loe(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=pne(Gie,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Jie&&s.sticky,h=pne(Nie,s),g=s.source,v=0,y=c;if(p&&(h=Yie(h,"y",""),-1===Kie(h,"g")&&(h+="g"),y=Xie(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==qie(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Qie&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Zie&&(r=s.lastIndex),o=pne(Wie,p?n:s,y),p?o?(o.input=Xie(o.input,v),o[0]=Xie(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Zie&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Qie&&o&&o.length>1&&pne(Uie,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=iie(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var eae=Gie;koe({target:"RegExp",proto:!0,forced:/./.exec!==eae},{exec:eae});var tae=Function.prototype,nae=tae.apply,rae=tae.bind,oae=tae.call,iae="object"==typeof Reflect&&Reflect.apply||(rae?oae.bind(nae):function(){return oae.apply(nae,arguments)}),aae=(hre("species"),RegExp.prototype),uae=xne("".charAt),sae=xne("".charCodeAt),lae=xne("".slice),cae={charAt:function(e){return function(t,n){var r,o,i=Loe(Bne(t)),a=noe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=sae(i,a))<55296||r>56319||a+1===u||(o=sae(i,a+1))<56320||o>57343?e?uae(i,a):r:e?lae(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},fae=cae.charAt,dae=function(e,t,n){return t+(n?fae(e,t).length:1)},pae=Math.floor,hae=xne("".charAt),gae=xne("".replace),vae=xne("".slice),yae=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,mae=/\$([$&'`]|\d{1,2})/g,bae=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=mae;return void 0!==o&&(o=rre(o),s=yae),gae(i,s,(function(i,s){var l;switch(hae(s,0)){case"$":return"$";case"&":return e;case"`":return vae(t,0,n);case"'":return vae(t,a);case"<":l=o[vae(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=pae(c/10);return 0===f?i:f<=u?void 0===r[f-1]?hae(s,1):r[f-1]+hae(s,1):i}l=r[c-1]}return void 0===l?"":l}))},wae=lne.TypeError,Eae=function(e,t){var n=e.exec;if(Tne(n)){var r=pne(n,e,t);return null!==r&&Are(r),r}if("RegExp"===Dne(e))return pne(eae,e,t);throw wae("RegExp#exec called on incompatible receiver")},xae=hre("replace"),Cae=Math.max,Sae=Math.min,Dae=xne([].concat),Aae=xne([].push),Oae=xne("".indexOf),_ae=xne("".slice),kae="$0"==="a".replace(/./,"$0"),Bae=!!/./[xae]&&""===/./[xae]("a","$0");function Fae(e){return e+"-"+JE()}!function(e,t,n){var r=hre(e),o=!cne((function(){var t={};return t[r]=function(){return 7},7!=""[e](t)})),i=o&&!cne((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e}));if(!o||!i||n){var a=xne(/./[r]),u=function(e,t){var n=Bae?"$":"$0";return[function(e,n){var r=Bne(this),o=null==e?void 0:Xne(e,xae);return o?pne(o,e,r,n):pne(t,Loe(r),e,n)},function(e,r){var i=Are(this),u=Loe(e);if("string"==typeof r&&-1===Oae(r,n)&&-1===Oae(r,"$<")){var s=function(e,t,n,r,i){var u=xne(e),s=t.exec;return s===eae||s===aae.exec?o&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:u(n,t,r)}:{done:!1}}(t,i,u,r);if(s.done)return s.value}var l=Tne(r);l||(r=Loe(r));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var d=[];;){var p=Eae(i,u);if(null===p)break;if(Aae(d,p),!c)break;""===Loe(p[0])&&(i.lastIndex=dae(u,uoe(i.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=Loe((p=d[y])[0]),b=Cae(Sae(noe(p.index),u.length),0),w=[],E=1;E<p.length;E++)Aae(w,void 0===(h=p[E])?h:String(h));var x=p.groups;if(l){var C=Dae([m],w,b,u);void 0!==x&&Aae(C,x);var S=Loe(iae(r,void 0,C))}else S=bae(m,u,b,w,x,r);b>=v&&(g+=_ae(u,v,b)+S,v=b+m.length)}return g+_ae(u,v)}]}(0,""[e]);Qre(String.prototype,e,u[0]),Qre(aae,r,u[1])}}("replace",0,!!cne((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!kae||Bae);var Tae=lne.Promise,Pae=function(e,t,n){for(var r in t)Qre(e,r,t[r],n);return e},jae=lne.String,Nae=lne.TypeError,Iae=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=xne(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Are(n),function(e){if("object"==typeof e||Tne(e))return e;throw Nae("Can't set "+jae(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Lae=kre.f,Rae=hre("toStringTag"),Mae=function(e,t,n){e&&!ire(e=n?e:e.prototype,Rae)&&Lae(e,Rae,{configurable:!0,value:t})},zae=hre("species"),$ae=lne.TypeError,Hae=function(e,t){if(Nne(t,e))return e;throw $ae("Incorrect invocation")},Vae={},Uae=hre("iterator"),Wae=Array.prototype,Gae=hre("iterator"),qae=function(e){if(null!=e)return Xne(e,Gae)||Xne(e,"@@iterator")||Vae[Noe(e)]},Kae=lne.TypeError,Yae=function(e,t,n){var r,o;Are(e);try{if(!(r=Xne(e,"return"))){if("throw"===t)throw n;return n}r=pne(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Are(r),n},Xae=lne.TypeError,Zae=function(e,t){this.stopped=e,this.result=t},Jae=Zae.prototype,Qae=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=die(t,f),v=function(e){return r&&Yae(r,"normal",e),new Zae(!0,e)},y=function(e){return d?(Are(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=qae(e)))throw Xae(qne(e)+" is not iterable");if(void 0!==(c=o)&&(Vae.Array===c||Wae[Uae]===c)){for(i=0,a=soe(e);a>i;i++)if((u=y(e[i]))&&Nne(Jae,u))return u;return new Zae(!1)}r=function(e,t){var n=arguments.length<2?qae(e):t;if(Yne(n))return Are(pne(n,e));throw Kae(qne(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=pne(s,r)).done;){try{u=y(l.value)}catch(m){Yae(r,"throw",m)}if("object"==typeof u&&u&&Nne(Jae,u))return u}return new Zae(!1)},eue=hre("iterator"),tue=!1;try{var nue=0,rue={next:function(){return{done:!!nue++}},return:function(){tue=!0}};rue[eue]=function(){return this},Array.from(rue,(function(){throw 2}))}catch(cCe){}var oue,iue,aue,uue,sue=function(e,t){if(!tue)return!1;var n=!1;try{var r={};r[eue]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},lue=lne.TypeError,cue=hre("species"),fue=xne([].slice),due=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ine),pue="process"==Dne(lne.process),hue=lne.setImmediate,gue=lne.clearImmediate,vue=lne.process,yue=lne.Dispatch,mue=lne.Function,bue=lne.MessageChannel,wue=lne.String,Eue=0,xue={};try{oue=lne.location}catch(cCe){}var Cue=function(e){if(ire(xue,e)){var t=xue[e];delete xue[e],t()}},Sue=function(e){return function(){Cue(e)}},Due=function(e){Cue(e.data)},Aue=function(e){lne.postMessage(wue(e),oue.protocol+"//"+oue.host)};hue&&gue||(hue=function(e){var t=fue(arguments,1);return xue[++Eue]=function(){iae(Tne(e)?e:mue(e),void 0,t)},iue(Eue),Eue},gue=function(e){delete xue[e]},pue?iue=function(e){vue.nextTick(Sue(e))}:yue&&yue.now?iue=function(e){yue.now(Sue(e))}:bue&&!due?(uue=(aue=new bue).port2,aue.port1.onmessage=Due,iue=die(uue.postMessage,uue)):lne.addEventListener&&Tne(lne.postMessage)&&!lne.importScripts&&oue&&"file:"!==oue.protocol&&!cne(Aue)?(iue=Aue,lne.addEventListener("message",Due,!1)):iue="onreadystatechange"in wre("script")?function(e){Qoe.appendChild(wre("script")).onreadystatechange=function(){Qoe.removeChild(this),Cue(e)}}:function(e){setTimeout(Sue(e),0)});var Oue,_ue,kue,Bue,Fue,Tue,Pue,jue,Nue={set:hue},Iue=/ipad|iphone|ipod/i.test(Ine)&&void 0!==lne.Pebble,Lue=/web0s(?!.*chrome)/i.test(Ine),Rue=Cre.f,Mue=Nue.set,zue=lne.MutationObserver||lne.WebKitMutationObserver,$ue=lne.document,Hue=lne.process,Vue=lne.Promise,Uue=Rue(lne,"queueMicrotask"),Wue=Uue&&Uue.value;Wue||(Oue=function(){var e,t;for(pue&&(e=Hue.domain)&&e.exit();_ue;){t=_ue.fn,_ue=_ue.next;try{t()}catch(n){throw _ue?Bue():kue=void 0,n}}kue=void 0,e&&e.enter()},due||pue||Lue||!zue||!$ue?!Iue&&Vue&&Vue.resolve?((Pue=Vue.resolve(void 0)).constructor=Vue,jue=die(Pue.then,Pue),Bue=function(){jue(Oue)}):pue?Bue=function(){Hue.nextTick(Oue)}:(Mue=die(Mue,lne),Bue=function(){Mue(Oue)}):(Fue=!0,Tue=$ue.createTextNode(""),new zue(Oue).observe(Tue,{characterData:!0}),Bue=function(){Tue.data=Fue=!Fue}));var Gue,que,Kue,Yue,Xue=Wue||function(e){var t={fn:e,next:void 0};kue&&(kue.next=t),_ue||(_ue=t,Bue()),kue=t},Zue=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Yne(t),this.reject=Yne(n)},Jue={f:function(e){return new Zue(e)}},Que=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},ese="object"==typeof window,tse=Nue.set,nse=hre("species"),rse="Promise",ose=Kre.getterFor(rse),ise=Kre.set,ase=Kre.getterFor(rse),use=Tae&&Tae.prototype,sse=Tae,lse=use,cse=lne.TypeError,fse=lne.document,dse=lne.process,pse=Jue.f,hse=pse,gse=!!(fse&&fse.createEvent&&lne.dispatchEvent),vse=Tne(lne.PromiseRejectionEvent),yse=!1,mse=Ooe(rse,(function(){var e=Nre(sse),t=e!==String(sse);if(!t&&66===$ne)return!0;if($ne>=51&&/native code/.test(e))return!1;var n=new sse((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[nse]=r,!(yse=n.then((function(){}))instanceof r)||!t&&ese&&!vse})),bse=mse||!sue((function(e){sse.all(e).catch((function(){}))})),wse=function(e){var t;return!(!Pne(e)||!Tne(t=e.then))&&t},Ese=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Xue((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Dse(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(cse("Promise-chain cycle")):(u=wse(a))?pne(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Cse(e)}))}},xse=function(e,t,n){var r,o;gse?((r=fse.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),lne.dispatchEvent(r)):r={promise:t,reason:n},!vse&&(o=lne["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=lne.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Cse=function(e){pne(tse,lne,(function(){var t,n=e.facade,r=e.value;if(Sse(e)&&(t=Que((function(){pue?dse.emit("unhandledRejection",r,n):xse("unhandledrejection",n,r)})),e.rejection=pue||Sse(e)?2:1,t.error))throw t.value}))},Sse=function(e){return 1!==e.rejection&&!e.parent},Dse=function(e){pne(tse,lne,(function(){var t=e.facade;pue?dse.emit("rejectionHandled",t):xse("rejectionhandled",t,e.value)}))},Ase=function(e,t,n){return function(r){e(t,r,n)}},Ose=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Ese(e,!0))},_se=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw cse("Promise can't be resolved itself");var r=wse(t);r?Xue((function(){var n={done:!1};try{pne(r,t,Ase(_se,n,e),Ase(Ose,n,e))}catch(o){Ose(n,o,e)}})):(e.value=t,e.state=1,Ese(e,!1))}catch(o){Ose({done:!1},o,e)}}};if(mse&&(lse=(sse=function(e){Hae(this,lse),Yne(e),pne(Gue,this);var t=ose(this);try{e(Ase(_se,t),Ase(Ose,t))}catch(n){Ose(t,n)}}).prototype,(Gue=function(e){ise(this,{type:rse,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Pae(lse,{then:function(e,t){var n,r,o,i=ase(this),a=i.reactions,u=pse((n=sse,void 0===(o=Are(this).constructor)||null==(r=Are(o)[cue])?n:function(e){if(Eie(e))return e;throw lue(qne(e)+" is not a constructor")}(r)));return u.ok=!Tne(e)||e,u.fail=Tne(t)&&t,u.domain=pue?dse.domain:void 0,i.parent=!0,a[a.length]=u,0!=i.state&&Ese(i,!1),u.promise},catch:function(e){return this.then(void 0,e)}}),que=function(){var e=new Gue,t=ose(e);this.promise=e,this.resolve=Ase(_se,t),this.reject=Ase(Ose,t)},Jue.f=pse=function(e){return e===sse||e===Kue?new que(e):hse(e)},Tne(Tae)&&use!==Object.prototype)){Yue=use.then,yse||(Qre(use,"then",(function(e,t){var n=this;return new sse((function(e,t){pne(Yue,n,e,t)})).then(e,t)}),{unsafe:!0}),Qre(use,"catch",lse.catch,{unsafe:!0}));try{delete use.constructor}catch(cCe){}Iae&&Iae(use,lse)}function kse(e,t,n){return void 0===n&&(n=""),tne(this,0,void 0,(function(){var r,o,i,a,u,s,l;return nne(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=c.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=c.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){Vb.insertNodes(e,l)})),o(l),[2]}}))}))}function Bse(){return Fae("w-e-insert-video")}koe({global:!0,wrap:!0,forced:mse},{Promise:sse}),Mae(sse,rse,!1),function(){var e=jne("Promise"),t=kre.f;fne&&e&&!e[zae]&&t(e,zae,{configurable:!0,get:function(){return this}})}(),Kue=jne(rse),koe({target:rse,stat:!0,forced:mse},{reject:function(e){var t=pse(this);return pne(t.reject,void 0,e),t.promise}}),koe({target:rse,stat:!0,forced:mse},{resolve:function(e){return function(e,t){if(Are(e),Pne(t)&&t.constructor===e)return t;var n=Jue.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),koe({target:rse,stat:!0,forced:bse},{all:function(e){var t=this,n=pse(t),r=n.resolve,o=n.reject,i=Que((function(){var n=Yne(t.resolve),i=[],a=0,u=1;Qae(e,(function(e){var s=a++,l=!1;u++,pne(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=pse(t),r=n.reject,o=Que((function(){var o=Yne(t.resolve);Qae(e,(function(e){pne(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Fse=function(){function e(){this.title=Dz("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=Bse(),this.posterInputId=Bse(),this.buttonId=Bse()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!mb.isCollapsed(t)||!!qj.getSelectedElems(e).some((function(t){var n=qj.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=rne(dM(Dz("videoModule.videoSrc"),r,Dz("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=rne(dM(Dz("videoModule.videoPoster"),o,Dz("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=rE(s),p=rE(f),h=rne(pM(i,Dz("videoModule.ok")),1)[0];if(null==this.$content){var g=rE("<div></div>");g.on("click","#"+i,(function(n){return tne(t,0,void 0,(function(){var t,i;return nne(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,kse(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var v=this.$content;return v.empty(),v.append(u),v.append(c),v.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),v[0]},e}(),Tse=xne([].join),Pse=_ne!=Object,jse=function(){var e=[].join;return!!e&&cne((function(){e.call(null,",",1)}))}();koe({target:"Array",proto:!0,forced:Pse||!jse},{join:function(e){return Tse(Fne(this),void 0===e?",":e)}});var Nse,Ise,Lse,Rse=!cne((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Mse=Mre("IE_PROTO"),zse=lne.Object,$se=zse.prototype,Hse=Rse?zse.getPrototypeOf:function(e){var t=rre(e);if(ire(t,Mse))return t[Mse];var n=t.constructor;return Tne(n)&&t instanceof n?n.prototype:t instanceof zse?$se:null},Vse=hre("iterator"),Use=!1;[].keys&&("next"in(Lse=[].keys())?(Ise=Hse(Hse(Lse)))!==Object.prototype&&(Nse=Ise):Use=!0);var Wse=null==Nse||cne((function(){var e={};return Nse[Vse].call(e)!==e}));Wse&&(Nse={}),Tne(Nse[Vse])||Qre(Nse,Vse,(function(){return this}));var Gse={IteratorPrototype:Nse,BUGGY_SAFARI_ITERATORS:Use},qse=Gse.IteratorPrototype,Kse=function(){return this},Yse=Jre.PROPER,Xse=Jre.CONFIGURABLE,Zse=Gse.IteratorPrototype,Jse=Gse.BUGGY_SAFARI_ITERATORS,Qse=hre("iterator"),ele=function(){return this},tle=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=iie(qse,{next:yne(1,s)}),Mae(u,l,!1),Vae[l]=Kse;var c,f,d=function(e){if(e===o&&y)return y;if(!Jse&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[Qse]||g["@@iterator"]||o&&g[o],y=!Jse&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=Hse(m.call(new e)))!==Object.prototype&&c.next&&(Hse(c)!==Zse&&(Iae?Iae(c,Zse):Tne(c[Qse])||Qre(c,Qse,ele)),Mae(c,p,!0)),Yse&&"values"==o&&v&&"values"!==v.name&&(Xse?Bre(g,"name","values"):(h=!0,y=function(){return pne(v,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||koe({target:t,proto:!0,forced:Jse||h},f)),g[Qse]!==y&&Qre(g,Qse,y,{name:o}),Vae[t]=y,f},nle=Kre.set,rle=Kre.getterFor("Array Iterator"),ole=tle(Array,"Array",(function(e,t){nle(this,{type:"Array Iterator",target:Fne(e),index:0,kind:t})}),(function(){var e=rle(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Vae.Arguments=Vae.Array,sie("keys"),sie("values"),sie("entries");var ile=cae.charAt,ale=Kre.set,ule=Kre.getterFor("String Iterator");tle(String,"String",(function(e){ale(this,{type:"String Iterator",string:Loe(e),index:0})}),(function(){var e,t=ule(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ile(n,r),t.index+=e.length,{value:e,done:!1})}));var sle=function(e,t,n){var r=yre(t);r in e?kre.f(e,r,yne(0,n)):e[r]=n},lle=lne.Array,cle=Math.max,fle=voe.f,dle="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ple={f:function(e){return dle&&"Window"==Dne(e)?function(e){try{return fle(e)}catch(t){return function(e){for(var t=soe(e),n=ioe(void 0,t),r=ioe(t,t),o=lle(cle(r-n,0)),i=0;n<r;n++,i++)sle(o,i,e[n]);return o.length=i,o}(dle)}}(e):fle(Fne(e))}},hle=cne((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),gle=Object.isExtensible,vle=cne((function(){gle(1)}))||hle?function(e){return!!Pne(e)&&(!hle||"ArrayBuffer"!=Dne(e))&&(!gle||gle(e))}:gle,yle=!cne((function(){return Object.isExtensible(Object.preventExtensions({}))})),mle=ine((function(e){var t=kre.f,n=!1,r=lre("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=voe.f,t=xne([].splice),o={};o[r]=1,e(o).length&&(voe.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},koe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ple.f}))},fastKey:function(e,t){if(!Pne(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ire(e,r)){if(!vle(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!ire(e,r)){if(!vle(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return yle&&n&&vle(e)&&!ire(e,r)&&i(e),e}};zre[r]=!0})),ble=mle.getWeakData,wle=Kre.set,Ele=Kre.getterFor,xle=Oie.find,Cle=Oie.findIndex,Sle=xne([].splice),Dle=0,Ale=function(e){return e.frozen||(e.frozen=new Ole)},Ole=function(){this.entries=[]},_le=function(e,t){return xle(e.entries,(function(e){return e[0]===t}))};Ole.prototype={get:function(e){var t=_le(this,e);if(t)return t[1]},has:function(e){return!!_le(this,e)},set:function(e,t){var n=_le(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Cle(this.entries,(function(t){return t[0]===e}));return~t&&Sle(this.entries,t,1),!!~t}};var kle,Ble={getConstructor:function(e,t,n,r){var o=e((function(e,o){Hae(e,i),wle(e,{type:t,id:Dle++,frozen:void 0}),null!=o&&Qae(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Ele(t),u=function(e,t,n){var r=a(e),o=ble(Are(t),!0);return!0===o?Ale(r).set(t,n):o[r.id]=n,e};return Pae(i,{delete:function(e){var t=a(this);if(!Pne(e))return!1;var n=ble(e);return!0===n?Ale(t).delete(e):n&&ire(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Pne(e))return!1;var n=ble(e);return!0===n?Ale(t).has(e):n&&ire(n,t.id)}}),Pae(i,n?{get:function(e){var t=a(this);if(Pne(e)){var n=ble(e);return!0===n?Ale(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Fle=Kre.enforce,Tle=!lne.ActiveXObject&&"ActiveXObject"in lne,Ple=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},jle=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=lne[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=xne(u[e]);Qre(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Pne(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Pne(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Pne(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Ooe(e,!Tne(a)||!(o||u.forEach&&!cne((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),mle.enable();else if(Ooe(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=cne((function(){f.has(1)})),h=sue((function(e){new a(e)})),g=!o&&cne((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Hae(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,Iae&&Tne(c=o.constructor)&&c!==l&&Pne(f=c.prototype)&&f!==l.prototype&&Iae(n,f),n);return null!=t&&Qae(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,koe({global:!0,forced:s!=a},l),Mae(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Ple,Ble);if(Lre&&Tle){kle=Ble.getConstructor(Ple,"WeakMap",!0),mle.enable();var Nle=jle.prototype,Ile=xne(Nle.delete),Lle=xne(Nle.has),Rle=xne(Nle.get),Mle=xne(Nle.set);Pae(Nle,{delete:function(e){if(Pne(e)&&!vle(e)){var t=Fle(this);return t.frozen||(t.frozen=new kle),Ile(this,e)||t.frozen.delete(e)}return Ile(this,e)},has:function(e){if(Pne(e)&&!vle(e)){var t=Fle(this);return t.frozen||(t.frozen=new kle),Lle(this,e)||t.frozen.has(e)}return Lle(this,e)},get:function(e){if(Pne(e)&&!vle(e)){var t=Fle(this);return t.frozen||(t.frozen=new kle),Lle(this,e)?Rle(this,e):t.frozen.get(e)}return Rle(this,e)},set:function(e,t){if(Pne(e)&&!vle(e)){var n=Fle(this);n.frozen||(n.frozen=new kle),Lle(this,e)?Mle(this,e,t):n.frozen.set(e,t)}else Mle(this,e,t);return this}})}var zle={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},$le=wre("span").classList,Hle=$le&&$le.constructor&&$le.constructor.prototype,Vle=Hle===Object.prototype?void 0:Hle,Ule=hre("iterator"),Wle=hre("toStringTag"),Gle=ole.values,qle=function(e,t){if(e){if(e[Ule]!==Gle)try{Bre(e,Ule,Gle)}catch(r){e[Ule]=Gle}if(e[Wle]||Bre(e,Wle,t),zle[t])for(var n in ole)if(e[n]!==ole[n])try{Bre(e,n,ole[n])}catch(r){e[n]=ole[n]}}};for(var Kle in zle)qle(lne[Kle]&&lne[Kle].prototype,Kle);qle(Vle,"DOMTokenList");var Yle=Jre.EXISTS,Xle=kre.f,Zle=Function.prototype,Jle=xne(Zle.toString),Qle=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ece=xne(Qle.exec);fne&&!Yle&&Xle(Zle,"name",{configurable:!0,get:function(){try{return ece(Qle,Jle(this))[1]}catch($u){return""}}});var tce=hre("species"),nce=$ne>=51||!cne((function(){var e=[];return(e.constructor={})[tce]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),rce=hre("species"),oce=lne.Array,ice=Math.max;function ace(e){return e.getMenuConfig("uploadVideo")}koe({target:"Array",proto:!0,forced:!nce},{slice:function(e,t){var n,r,o,i=Fne(this),a=soe(i),u=ioe(e,a),s=ioe(void 0===t?a:t,a);if(pie(i)&&(n=i.constructor,(Eie(n)&&(n===oce||pie(n.prototype))||Pne(n)&&null===(n=n[rce]))&&(n=void 0),n===oce||void 0===n))return fue(i,u,s);for(r=new(void 0===n?oce:n)(ice(s-u,0)),o=0;u<s;u++,o++)u in i&&sle(r,o,i[u]);return r.length=o,r}});var uce=new WeakMap;function sce(e,t){return tne(this,0,void 0,(function(){var n,r,o,i;return nne(this,(function(a){switch(a.label){case 0:return n=function(e){var t=uce.get(e);if(null!=t)return t;var n=ace(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=IM(ene(ene({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return kse(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;kse(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),uce.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var lce=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return kse(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=rE("body"),s=rE('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;tne(this,0,void 0,(function(){var o,i,a,u,s,l;return nne(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=ace(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=function(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(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)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.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){var i,a,u,s;i=r,a=o,u=(t=e[n](t)).done,s=t.value,Promise.resolve(s).then((function(e){i({value:e,done:u})}),a)}))}}}(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return kse(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,sce(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!mb.isCollapsed(t)||!!qj.getSelectedElems(e).some((function(t){var n=qj.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),cce=Jre.PROPER,fce=RegExp.prototype,dce=fce.toString,pce=xne(Nie),hce=cne((function(){return"/a/b"!=dce.call({source:"a",flags:"b"})})),gce=cce&&"toString"!=dce.name;function vce(){return Fae("w-e-insert-video")}(hce||gce)&&Qre(RegExp.prototype,"toString",(function(){var e=Are(this),t=Loe(e.source),n=e.flags;return"/"+t+"/"+Loe(void 0===n&&Nne(fce,e)&&!("flags"in fce)?pce(e):n)}),{unsafe:!0});var yce=function(){function e(){this.title=Dz("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=vce(),this.heightInputId=vce(),this.buttonId=vce()}return e.prototype.getSelectedVideoNode=function(e){return qj.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=rne(dM(Dz("videoModule.width"),n,"auto"),2),a=i[0],u=rE(i[1]),s=rne(dM(Dz("videoModule.height"),r,"auto"),2),l=s[0],c=rE(s[1]),f=rne(pM(o,Dz("videoModule.ok")),1)[0];if(null==this.$content){var d=rE("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",l=u?u.toString():"auto";e.restoreSelection(),Vb.setNodes(e,{width:s,height:l},{match:function(e){return qj.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var g=h.width,v=void 0===g?"auto":g,y=h.height,m=void 0===y?"auto":y;return u.val(v),c.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),mce={renderElems:[Yoe],elemsToHtml:[Xoe],preParseHtml:[cie],parseElemsHtml:[jie],menus:[{key:"insertVideo",factory:function(){return new Fse},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new lce},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){},onError:function(e,t,n){}}},{key:"editVideoSize",factory:function(){return new yce}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=rne(e,2),o=t[0],i=t[1];return"video"===qj.getNodeType(o)&&qj.isLastNode(r,o)&&Vb.insertNodes(r,qj.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};Sz("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Sz("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var bce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function wce(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ece,xce,Cce=function(e){return e&&e.Math==Math&&e},Sce=Cce("object"==typeof globalThis&&globalThis)||Cce("object"==typeof window&&window)||Cce("object"==typeof self&&self)||Cce("object"==typeof bce&&bce)||function(){return this}()||Function("return this")(),Dce=function(e){try{return!!e()}catch(t){return!0}},Ace=!Dce((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Oce=Function.prototype.call,_ce=Oce.bind?Oce.bind(Oce):function(){return Oce.apply(Oce,arguments)},kce={}.propertyIsEnumerable,Bce=Object.getOwnPropertyDescriptor,Fce={f:Bce&&!kce.call({1:2},1)?function(e){var t=Bce(this,e);return!!t&&t.enumerable}:kce},Tce=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Pce=Function.prototype,jce=Pce.bind,Nce=Pce.call,Ice=jce&&jce.bind(Nce),Lce=jce?function(e){return e&&Ice(Nce,e)}:function(e){return e&&function(){return Nce.apply(e,arguments)}},Rce=Lce({}.toString),Mce=Lce("".slice),zce=function(e){return Mce(Rce(e),8,-1)},$ce=Sce.Object,Hce=Lce("".split),Vce=Dce((function(){return!$ce("z").propertyIsEnumerable(0)}))?function(e){return"String"==zce(e)?Hce(e,""):$ce(e)}:$ce,Uce=Sce.TypeError,Wce=function(e){if(null==e)throw Uce("Can't call method on "+e);return e},Gce=function(e){return Vce(Wce(e))},qce=function(e){return"function"==typeof e},Kce=function(e){return"object"==typeof e?null!==e:qce(e)},Yce=function(e,t){return arguments.length<2?function(e){return qce(e)?e:void 0}(Sce[e]):Sce[e]&&Sce[e][t]},Xce=Lce({}.isPrototypeOf),Zce=Yce("navigator","userAgent")||"",Jce=Sce.process,Qce=Sce.Deno,efe=Jce&&Jce.versions||Qce&&Qce.version,tfe=efe&&efe.v8;tfe&&(xce=(Ece=tfe.split("."))[0]>0&&Ece[0]<4?1:+(Ece[0]+Ece[1])),!xce&&Zce&&(!(Ece=Zce.match(/Edge\/(\d+)/))||Ece[1]>=74)&&(Ece=Zce.match(/Chrome\/(\d+)/))&&(xce=+Ece[1]);var nfe=xce,rfe=!!Object.getOwnPropertySymbols&&!Dce((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&nfe&&nfe<41})),ofe=rfe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ife=Sce.Object,afe=ofe?function(e){return"symbol"==typeof e}:function(e){var t=Yce("Symbol");return qce(t)&&Xce(t.prototype,ife(e))},ufe=Sce.String,sfe=function(e){try{return ufe(e)}catch(t){return"Object"}},lfe=Sce.TypeError,cfe=function(e){if(qce(e))return e;throw lfe(sfe(e)+" is not a function")},ffe=function(e,t){var n=e[t];return null==n?void 0:cfe(n)},dfe=Sce.TypeError,pfe=Object.defineProperty,hfe=function(e,t){try{pfe(Sce,e,{value:t,configurable:!0,writable:!0})}catch(Oz){Sce[e]=t}return t},gfe=Sce["__core-js_shared__"]||hfe("__core-js_shared__",{}),vfe=wce((function(e){(e.exports=function(e,t){return gfe[e]||(gfe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),yfe=Sce.Object,mfe=function(e){return yfe(Wce(e))},bfe=Lce({}.hasOwnProperty),wfe=Object.hasOwn||function(e,t){return bfe(mfe(e),t)},Efe=0,xfe=Math.random(),Cfe=Lce(1..toString),Sfe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Cfe(++Efe+xfe,36)},Dfe=vfe("wks"),Afe=Sce.Symbol,Ofe=Afe&&Afe.for,_fe=ofe?Afe:Afe&&Afe.withoutSetter||Sfe,kfe=function(e){if(!wfe(Dfe,e)||!rfe&&"string"!=typeof Dfe[e]){var t="Symbol."+e;rfe&&wfe(Afe,e)?Dfe[e]=Afe[e]:Dfe[e]=ofe&&Ofe?Ofe(t):_fe(t)}return Dfe[e]},Bfe=Sce.TypeError,Ffe=kfe("toPrimitive"),Tfe=function(e){var t=function(e){if(!Kce(e)||afe(e))return e;var t,n=ffe(e,Ffe);if(n){if(t=_ce(n,e,"string"),!Kce(t)||afe(t))return t;throw Bfe("Can't convert object to primitive value")}return function(e){var t,n;if(qce(t=e.toString)&&!Kce(n=_ce(t,e)))return n;if(qce(t=e.valueOf)&&!Kce(n=_ce(t,e)))return n;throw dfe("Can't convert object to primitive value")}(e)}(e);return afe(t)?t:t+""},Pfe=Sce.document,jfe=Kce(Pfe)&&Kce(Pfe.createElement),Nfe=function(e){return jfe?Pfe.createElement(e):{}},Ife=!Ace&&!Dce((function(){return 7!=Object.defineProperty(Nfe("div"),"a",{get:function(){return 7}}).a})),Lfe=Object.getOwnPropertyDescriptor,Rfe={f:Ace?Lfe:function(e,t){if(e=Gce(e),t=Tfe(t),Ife)try{return Lfe(e,t)}catch(n){}if(wfe(e,t))return Tce(!_ce(Fce.f,e,t),e[t])}},Mfe=Sce.String,zfe=Sce.TypeError,$fe=function(e){if(Kce(e))return e;throw zfe(Mfe(e)+" is not an object")},Hfe=Sce.TypeError,Vfe=Object.defineProperty,Ufe={f:Ace?Vfe:function(e,t,n){if($fe(e),t=Tfe(t),$fe(n),Ife)try{return Vfe(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Hfe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Wfe=Ace?function(e,t,n){return Ufe.f(e,t,Tce(1,n))}:function(e,t,n){return e[t]=n,e},Gfe=Lce(Function.toString);qce(gfe.inspectSource)||(gfe.inspectSource=function(e){return Gfe(e)});var qfe,Kfe,Yfe,Xfe=gfe.inspectSource,Zfe=Sce.WeakMap,Jfe=qce(Zfe)&&/native code/.test(Xfe(Zfe)),Qfe=vfe("keys"),ede=function(e){return Qfe[e]||(Qfe[e]=Sfe(e))},tde={},nde=Sce.TypeError,rde=Sce.WeakMap;if(Jfe||gfe.state){var ode=gfe.state||(gfe.state=new rde),ide=Lce(ode.get),ade=Lce(ode.has),ude=Lce(ode.set);qfe=function(e,t){if(ade(ode,e))throw new nde("Object already initialized");return t.facade=e,ude(ode,e,t),t},Kfe=function(e){return ide(ode,e)||{}},Yfe=function(e){return ade(ode,e)}}else{var sde=ede("state");tde[sde]=!0,qfe=function(e,t){if(wfe(e,sde))throw new nde("Object already initialized");return t.facade=e,Wfe(e,sde,t),t},Kfe=function(e){return wfe(e,sde)?e[sde]:{}},Yfe=function(e){return wfe(e,sde)}}var lde={set:qfe,get:Kfe,has:Yfe,enforce:function(e){return Yfe(e)?Kfe(e):qfe(e,{})},getterFor:function(e){return function(t){var n;if(!Kce(t)||(n=Kfe(t)).type!==e)throw nde("Incompatible receiver, "+e+" required");return n}}},cde=Function.prototype,fde=Ace&&Object.getOwnPropertyDescriptor,dde=wfe(cde,"name"),pde={EXISTS:dde,PROPER:dde&&"something"===function(){}.name,CONFIGURABLE:dde&&(!Ace||Ace&&fde(cde,"name").configurable)},hde=wce((function(e){var t=pde.CONFIGURABLE,n=lde.get,r=lde.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;qce(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!wfe(i,"name")||t&&i.name!==f)&&Wfe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Sce?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Wfe(e,n,i)):l?e[n]=i:hfe(n,i)})(Function.prototype,"toString",(function(){return qce(this)&&n(this).source||Xfe(this)}))})),gde=Math.ceil,vde=Math.floor,yde=function(e){var t=+e;return t!=t||0===t?0:(t>0?vde:gde)(t)},mde=Math.max,bde=Math.min,wde=function(e,t){var n=yde(e);return n<0?mde(n+t,0):bde(n,t)},Ede=Math.min,xde=function(e){return e>0?Ede(yde(e),9007199254740991):0},Cde=function(e){return xde(e.length)},Sde=function(e){return function(t,n,r){var o,i=Gce(t),a=Cde(i),u=wde(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),Dde=Lce([].push),Ade=function(e,t){var n,r=Gce(e),o=0,i=[];for(n in r)!wfe(tde,n)&&wfe(r,n)&&Dde(i,n);for(;t.length>o;)wfe(r,n=t[o++])&&(~Sde(i,n)||Dde(i,n));return i},Ode=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_de=Ode.concat("length","prototype"),kde={f:Object.getOwnPropertyNames||function(e){return Ade(e,_de)}},Bde={f:Object.getOwnPropertySymbols},Fde=Lce([].concat),Tde=Yce("Reflect","ownKeys")||function(e){var t=kde.f($fe(e)),n=Bde.f;return n?Fde(t,n(e)):t},Pde=function(e,t){for(var n=Tde(t),r=Ufe.f,o=Rfe.f,i=0;i<n.length;i++){var a=n[i];wfe(e,a)||r(e,a,o(t,a))}},jde=/#|\.prototype\./,Nde=function(e,t){var n=Lde[Ide(e)];return n==Mde||n!=Rde&&(qce(t)?Dce(t):!!t)},Ide=Nde.normalize=function(e){return String(e).replace(jde,".").toLowerCase()},Lde=Nde.data={},Rde=Nde.NATIVE="N",Mde=Nde.POLYFILL="P",zde=Nde,$de=Rfe.f,Hde=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Sce:l?Sce[u]||hfe(u,{}):(Sce[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=$de(n,r))&&a.value:n[r],!zde(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Pde(i,o)}(e.sham||o&&o.sham)&&Wfe(i,"sham",!0),hde(n,r,i,e)}},Vde=Array.isArray||function(e){return"Array"==zce(e)},Ude={};Ude[kfe("toStringTag")]="z";var Wde="[object z]"===String(Ude),Gde=kfe("toStringTag"),qde=Sce.Object,Kde="Arguments"==zce(function(){return arguments}()),Yde=Wde?zce:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=qde(e),Gde))?n:Kde?zce(t):"Object"==(r=zce(t))&&qce(t.callee)?"Arguments":r},Xde=function(){},Zde=[],Jde=Yce("Reflect","construct"),Qde=/^\s*(?:class|function)\b/,epe=Lce(Qde.exec),tpe=!Qde.exec(Xde),npe=function(e){if(!qce(e))return!1;try{return Jde(Xde,Zde,e),!0}catch(t){return!1}},rpe=!Jde||Dce((function(){var e;return npe(npe.call)||!npe(Object)||!npe((function(){e=!0}))||e}))?function(e){if(!qce(e))return!1;switch(Yde(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return tpe||!!epe(Qde,Xfe(e))}:npe,ope=function(e,t,n){var r=Tfe(t);r in e?Ufe.f(e,r,Tce(0,n)):e[r]=n},ipe=kfe("species"),ape=Lce([].slice),upe=nfe>=51||!Dce((function(){var e=[];return(e.constructor={})[ipe]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),spe=kfe("species"),lpe=Sce.Array,cpe=Math.max;Hde({target:"Array",proto:!0,forced:!upe},{slice:function(e,t){var n,r,o,i=Gce(this),a=Cde(i),u=wde(e,a),s=wde(void 0===t?a:t,a);if(Vde(i)&&(n=i.constructor,(rpe(n)&&(n===lpe||Vde(n.prototype))||Kce(n)&&null===(n=n[spe]))&&(n=void 0),n===lpe||void 0===n))return ape(i,u,s);for(r=new(void 0===n?lpe:n)(cpe(s-u,0)),o=0;u<s;u++,o++)u in i&&ope(r,o,i[u]);return r.length=o,r}});var fpe=Wde?{}.toString:function(){return"[object "+Yde(this)+"]"};Wde||hde(Object.prototype,"toString",fpe,{unsafe:!0});var dpe,ppe=Sce.String,hpe=function(e){if("Symbol"===Yde(e))throw TypeError("Cannot convert a Symbol value to a string");return ppe(e)},gpe=function(){var e=$fe(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},vpe=Sce.RegExp,ype=Dce((function(){var e=vpe("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));ype||Dce((function(){return!vpe("a","y").sticky}));var mpe={BROKEN_CARET:ype||Dce((function(){var e=vpe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:ype},bpe=Object.keys||function(e){return Ade(e,Ode)},wpe=Ace?Object.defineProperties:function(e,t){$fe(e);for(var n,r=Gce(t),o=bpe(t),i=o.length,a=0;i>a;)Ufe.f(e,n=o[a++],r[n]);return e},Epe=Yce("document","documentElement"),xpe=ede("IE_PROTO"),Cpe=function(){},Spe=function(e){return"<script>"+e+"<\/script>"},Dpe=function(e){e.write(Spe("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ape=function(){try{dpe=new ActiveXObject("htmlfile")}catch(r){}var e,t;Ape="undefined"!=typeof document?document.domain&&dpe?Dpe(dpe):((t=Nfe("iframe")).style.display="none",Epe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Spe("document.F=Object")),e.close(),e.F):Dpe(dpe);for(var n=Ode.length;n--;)delete Ape.prototype[Ode[n]];return Ape()};tde[xpe]=!0;var Ope,_pe,kpe=Object.create||function(e,t){var n;return null!==e?(Cpe.prototype=$fe(e),n=new Cpe,Cpe.prototype=null,n[xpe]=e):n=Ape(),void 0===t?n:wpe(n,t)},Bpe=Sce.RegExp,Fpe=Dce((function(){var e=Bpe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Tpe=Sce.RegExp,Ppe=Dce((function(){var e=Tpe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),jpe=lde.get,Npe=vfe("native-string-replace",String.prototype.replace),Ipe=RegExp.prototype.exec,Lpe=Ipe,Rpe=Lce("".charAt),Mpe=Lce("".indexOf),zpe=Lce("".replace),$pe=Lce("".slice),Hpe=(_pe=/b*/g,_ce(Ipe,Ope=/a/,"a"),_ce(Ipe,_pe,"a"),0!==Ope.lastIndex||0!==_pe.lastIndex),Vpe=mpe.BROKEN_CARET,Upe=void 0!==/()??/.exec("")[1];(Hpe||Upe||Vpe||Fpe||Ppe)&&(Lpe=function(e){var t,n,r,o,i,a,u,s=this,l=jpe(s),c=hpe(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=_ce(Lpe,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Vpe&&s.sticky,h=_ce(gpe,s),g=s.source,v=0,y=c;if(p&&(h=zpe(h,"y",""),-1===Mpe(h,"g")&&(h+="g"),y=$pe(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Rpe(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Upe&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Hpe&&(r=s.lastIndex),o=_ce(Ipe,p?n:s,y),p?o?(o.input=$pe(o.input,v),o[0]=$pe(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Hpe&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Upe&&o&&o.length>1&&_ce(Npe,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=kpe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Wpe=Lpe;Hde({target:"RegExp",proto:!0,forced:/./.exec!==Wpe},{exec:Wpe});var Gpe=Function.prototype,qpe=Gpe.apply,Kpe=Gpe.bind,Ype=Gpe.call,Xpe="object"==typeof Reflect&&Reflect.apply||(Kpe?Ype.bind(qpe):function(){return Ype.apply(qpe,arguments)}),Zpe=kfe("species"),Jpe=RegExp.prototype,Qpe=kfe("match"),ehe=Sce.TypeError,the=kfe("species"),nhe=function(e,t){var n,r=$fe(e).constructor;return void 0===r||null==(n=$fe(r)[the])?t:function(e){if(rpe(e))return e;throw ehe(sfe(e)+" is not a constructor")}(n)},rhe=Lce("".charAt),ohe=Lce("".charCodeAt),ihe=Lce("".slice),ahe={charAt:function(e){return function(t,n){var r,o,i=hpe(Wce(t)),a=yde(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ohe(i,a))<55296||r>56319||a+1===u||(o=ohe(i,a+1))<56320||o>57343?e?rhe(i,a):r:e?ihe(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},uhe=ahe.charAt,she=function(e,t,n){return t+(n?uhe(e,t).length:1)},lhe=Sce.Array,che=Math.max,fhe=function(e,t,n){for(var r=Cde(e),o=wde(t,r),i=wde(void 0===n?r:n,r),a=lhe(che(i-o,0)),u=0;o<i;o++,u++)ope(a,u,e[o]);return a.length=u,a},dhe=Sce.TypeError,phe=function(e,t){var n=e.exec;if(qce(n)){var r=_ce(n,e,t);return null!==r&&$fe(r),r}if("RegExp"===zce(e))return _ce(Wpe,e,t);throw dhe("RegExp#exec called on incompatible receiver")},hhe=mpe.UNSUPPORTED_Y,ghe=Math.min,vhe=[].push,yhe=Lce(/./.exec),mhe=Lce(vhe),bhe=Lce("".slice);!function(e,t,n,r){var o,i,a,u=kfe(e),s=!Dce((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!Dce((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Zpe]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=Lce(/./[u]),f=(o=u,i=""[e],a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var n,r,o=hpe(Wce(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!Kce(n=e)||!(void 0!==(r=n[Qpe])?r:"RegExp"==zce(n)))return _ce(i,o,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=_ce(Wpe,p,o))&&!((s=p.lastIndex)>d&&(mhe(c,bhe(o,d,u.index)),u.length>1&&u.index<o.length&&Xpe(vhe,c,fhe(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&yhe(p,"")||mhe(c,""):mhe(c,bhe(o,d)),c.length>a?fhe(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:_ce(i,this,e,t)}:i,[function(e,t){var n=Wce(this),r=null==e?void 0:ffe(e,o);return r?_ce(r,e,n,t):_ce(a,hpe(n),e,t)},function(e,t){var n=$fe(this),r=hpe(e),o=function(e,t,n,r,o){var i=Lce(e),a=t.exec;return a===Wpe||a===Jpe.exec?s&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(a,n,r,t,a!==i);if(o.done)return o.value;var u=nhe(n,RegExp),l=n.unicode,f=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(hhe?"g":"y"),d=new u(hhe?"^(?:"+n.source+")":n,f),p=void 0===t?4294967295:t>>>0;if(0===p)return[];if(0===r.length)return null===phe(d,r)?[r]:[];for(var h=0,g=0,v=[];g<r.length;){d.lastIndex=hhe?0:g;var y,m=phe(d,hhe?bhe(r,g):r);if(null===m||(y=ghe(xde(d.lastIndex+(hhe?g:0)),r.length))===h)g=she(r,g,l);else{if(mhe(v,bhe(r,h,g)),v.length===p)return v;for(var b=1;b<=m.length-1;b++)if(mhe(v,m[b]),v.length===p)return v;g=h=y}}return mhe(v,bhe(r,h)),v}]);hde(String.prototype,e,f[0]),hde(Jpe,u,f[1])}r&&Wfe(Jpe[u],"sham",!0)}("split",0,!!Dce((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),hhe);var whe=function(){return whe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},whe.apply(this,arguments)};function Ehe(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{u(r.next(e))}catch(t){o(t)}}function a(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}u((r=r.apply(e,[])).next())}))}function xhe(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var Che=kfe("unscopables"),She=Array.prototype;null==She[Che]&&Ufe.f(She,Che,{configurable:!0,value:kpe(null)});var Dhe,Ahe,Ohe,_he=function(e){She[Che][e]=!0},khe={},Bhe=!Dce((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Fhe=ede("IE_PROTO"),The=Sce.Object,Phe=The.prototype,jhe=Bhe?The.getPrototypeOf:function(e){var t=mfe(e);if(wfe(t,Fhe))return t[Fhe];var n=t.constructor;return qce(n)&&t instanceof n?n.prototype:t instanceof The?Phe:null},Nhe=kfe("iterator"),Ihe=!1;[].keys&&("next"in(Ohe=[].keys())?(Ahe=jhe(jhe(Ohe)))!==Object.prototype&&(Dhe=Ahe):Ihe=!0);var Lhe=null==Dhe||Dce((function(){var e={};return Dhe[Nhe].call(e)!==e}));Lhe&&(Dhe={}),qce(Dhe[Nhe])||hde(Dhe,Nhe,(function(){return this}));var Rhe={IteratorPrototype:Dhe,BUGGY_SAFARI_ITERATORS:Ihe},Mhe=Ufe.f,zhe=kfe("toStringTag"),$he=function(e,t,n){e&&!wfe(e=n?e:e.prototype,zhe)&&Mhe(e,zhe,{configurable:!0,value:t})},Hhe=Rhe.IteratorPrototype,Vhe=function(){return this},Uhe=Sce.String,Whe=Sce.TypeError,Ghe=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Lce(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return $fe(n),function(e){if("object"==typeof e||qce(e))return e;throw Whe("Can't set "+Uhe(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),qhe=pde.PROPER,Khe=pde.CONFIGURABLE,Yhe=Rhe.IteratorPrototype,Xhe=Rhe.BUGGY_SAFARI_ITERATORS,Zhe=kfe("iterator"),Jhe=function(){return this},Qhe=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=kpe(Hhe,{next:Tce(1,s)}),$he(u,l,!1),khe[l]=Vhe;var c,f,d=function(e){if(e===o&&y)return y;if(!Xhe&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[Zhe]||g["@@iterator"]||o&&g[o],y=!Xhe&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=jhe(m.call(new e)))!==Object.prototype&&c.next&&(jhe(c)!==Yhe&&(Ghe?Ghe(c,Yhe):qce(c[Zhe])||hde(c,Zhe,Jhe)),$he(c,p,!0)),qhe&&"values"==o&&v&&"values"!==v.name&&(Khe?Wfe(g,"name","values"):(h=!0,y=function(){return _ce(v,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||Hde({target:t,proto:!0,forced:Xhe||h},f)),g[Zhe]!==y&&hde(g,Zhe,y,{name:o}),khe[t]=y,f},ege=lde.set,tge=lde.getterFor("Array Iterator"),nge=Qhe(Array,"Array",(function(e,t){ege(this,{type:"Array Iterator",target:Gce(e),index:0,kind:t})}),(function(){var e=tge(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");khe.Arguments=khe.Array,_he("keys"),_he("values"),_he("entries");var rge=ahe.charAt,oge=lde.set,ige=lde.getterFor("String Iterator");Qhe(String,"String",(function(e){oge(this,{type:"String Iterator",string:hpe(e),index:0})}),(function(){var e,t=ige(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=rge(n,r),t.index+=e.length,{value:e,done:!1})}));var age=function(e,t,n){for(var r in t)hde(e,r,t[r],n);return e},uge=kde.f,sge="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],lge={f:function(e){return sge&&"Window"==zce(e)?function(e){try{return uge(e)}catch(t){return fhe(sge)}}(e):uge(Gce(e))}},cge=Dce((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),fge=Object.isExtensible,dge=Dce((function(){fge(1)}))||cge?function(e){return!!Kce(e)&&(!cge||"ArrayBuffer"!=zce(e))&&(!fge||fge(e))}:fge,pge=!Dce((function(){return Object.isExtensible(Object.preventExtensions({}))})),hge=wce((function(e){var t=Ufe.f,n=!1,r=Sfe("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=kde.f,t=Lce([].splice),o={};o[r]=1,e(o).length&&(kde.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Hde({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:lge.f}))},fastKey:function(e,t){if(!Kce(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!wfe(e,r)){if(!dge(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!wfe(e,r)){if(!dge(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return pge&&n&&dge(e)&&!wfe(e,r)&&i(e),e}};tde[r]=!0})),gge=Lce(Lce.bind),vge=function(e,t){return cfe(e),void 0===t?e:gge?gge(e,t):function(){return e.apply(t,arguments)}},yge=kfe("iterator"),mge=Array.prototype,bge=kfe("iterator"),wge=function(e){if(null!=e)return ffe(e,bge)||ffe(e,"@@iterator")||khe[Yde(e)]},Ege=Sce.TypeError,xge=function(e,t,n){var r,o;$fe(e);try{if(!(r=ffe(e,"return"))){if("throw"===t)throw n;return n}r=_ce(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return $fe(r),n},Cge=Sce.TypeError,Sge=function(e,t){this.stopped=e,this.result=t},Dge=Sge.prototype,Age=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=vge(t,f),v=function(e){return r&&xge(r,"normal",e),new Sge(!0,e)},y=function(e){return d?($fe(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=wge(e)))throw Cge(sfe(e)+" is not iterable");if(void 0!==(c=o)&&(khe.Array===c||mge[yge]===c)){for(i=0,a=Cde(e);a>i;i++)if((u=y(e[i]))&&Xce(Dge,u))return u;return new Sge(!1)}r=function(e,t){var n=arguments.length<2?wge(e):t;if(cfe(n))return $fe(_ce(n,e));throw Ege(sfe(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=_ce(s,r)).done;){try{u=y(l.value)}catch(m){xge(r,"throw",m)}if("object"==typeof u&&u&&Xce(Dge,u))return u}return new Sge(!1)},Oge=Sce.TypeError,_ge=function(e,t){if(Xce(t,e))return e;throw Oge("Incorrect invocation")},kge=kfe("iterator"),Bge=!1;try{var Fge=0,Tge={next:function(){return{done:!!Fge++}},return:function(){Bge=!0}};Tge[kge]=function(){return this},Array.from(Tge,(function(){throw 2}))}catch(cCe){}var Pge=function(e,t){if(!Bge)return!1;var n=!1;try{var r={};r[kge]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},jge=kfe("species"),Nge=Sce.Array,Ige=function(e,t){return new(Vde(n=e)&&(r=n.constructor,(rpe(r)&&(r===Nge||Vde(r.prototype))||Kce(r)&&null===(r=r[jge]))&&(r=void 0)),void 0===r?Nge:r)(0===t?0:t);var n,r},Lge=Lce([].push),Rge=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=mfe(s),g=Vce(h),v=vge(l,c),y=Cde(g),m=0,b=f||Ige,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Lge(w,d)}else switch(e){case 4:return!1;case 7:Lge(w,d)}return i?-1:r||o?o:w}},Mge={forEach:Rge(0),find:Rge(5),findIndex:Rge(6)},zge=hge.getWeakData,$ge=lde.set,Hge=lde.getterFor,Vge=Mge.find,Uge=Mge.findIndex,Wge=Lce([].splice),Gge=0,qge=function(e){return e.frozen||(e.frozen=new Kge)},Kge=function(){this.entries=[]},Yge=function(e,t){return Vge(e.entries,(function(e){return e[0]===t}))};Kge.prototype={get:function(e){var t=Yge(this,e);if(t)return t[1]},has:function(e){return!!Yge(this,e)},set:function(e,t){var n=Yge(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Uge(this.entries,(function(t){return t[0]===e}));return~t&&Wge(this.entries,t,1),!!~t}};var Xge,Zge={getConstructor:function(e,t,n,r){var o=e((function(e,o){_ge(e,i),$ge(e,{type:t,id:Gge++,frozen:void 0}),null!=o&&Age(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Hge(t),u=function(e,t,n){var r=a(e),o=zge($fe(t),!0);return!0===o?qge(r).set(t,n):o[r.id]=n,e};return age(i,{delete:function(e){var t=a(this);if(!Kce(e))return!1;var n=zge(e);return!0===n?qge(t).delete(e):n&&wfe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Kce(e))return!1;var n=zge(e);return!0===n?qge(t).has(e):n&&wfe(n,t.id)}}),age(i,n?{get:function(e){var t=a(this);if(Kce(e)){var n=zge(e);return!0===n?qge(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Jge=lde.enforce,Qge=!Sce.ActiveXObject&&"ActiveXObject"in Sce,eve=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},tve=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Sce[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Lce(u[e]);hde(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Kce(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Kce(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Kce(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(zde(e,!qce(a)||!(o||u.forEach&&!Dce((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),hge.enable();else if(zde(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Dce((function(){f.has(1)})),h=Pge((function(e){new a(e)})),g=!o&&Dce((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){_ge(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,Ghe&&qce(c=o.constructor)&&c!==l&&Kce(f=c.prototype)&&f!==l.prototype&&Ghe(n,f),n);return null!=t&&Age(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Hde({global:!0,forced:s!=a},l),$he(s,e),o||n.setStrong(s,e,r),s}("WeakMap",eve,Zge);if(Jfe&&Qge){Xge=Zge.getConstructor(eve,"WeakMap",!0),hge.enable();var nve=tve.prototype,rve=Lce(nve.delete),ove=Lce(nve.has),ive=Lce(nve.get),ave=Lce(nve.set);age(nve,{delete:function(e){if(Kce(e)&&!dge(e)){var t=Jge(this);return t.frozen||(t.frozen=new Xge),rve(this,e)||t.frozen.delete(e)}return rve(this,e)},has:function(e){if(Kce(e)&&!dge(e)){var t=Jge(this);return t.frozen||(t.frozen=new Xge),ove(this,e)||t.frozen.has(e)}return ove(this,e)},get:function(e){if(Kce(e)&&!dge(e)){var t=Jge(this);return t.frozen||(t.frozen=new Xge),ove(this,e)?ive(this,e):t.frozen.get(e)}return ive(this,e)},set:function(e,t){if(Kce(e)&&!dge(e)){var n=Jge(this);n.frozen||(n.frozen=new Xge),ove(this,e)?ave(this,e,t):n.frozen.set(e,t)}else ave(this,e,t);return this}})}var uve={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},sve=Nfe("span").classList,lve=sve&&sve.constructor&&sve.constructor.prototype,cve=lve===Object.prototype?void 0:lve,fve=kfe("iterator"),dve=kfe("toStringTag"),pve=nge.values,hve=function(e,t){if(e){if(e[fve]!==pve)try{Wfe(e,fve,pve)}catch(r){e[fve]=pve}if(e[dve]||Wfe(e,dve,t),uve[t])for(var n in nge)if(e[n]!==nge[n])try{Wfe(e,n,nge[n])}catch(r){e[n]=nge[n]}}};for(var gve in uve)hve(Sce[gve]&&Sce[gve].prototype,gve);hve(cve,"DOMTokenList");var vve=function(e,t){var n=[][e];return!!n&&Dce((function(){n.call(null,t||function(){throw 1},1)}))},yve=Mge.forEach,mve=vve("forEach")?[].forEach:function(e){return yve(this,e,arguments.length>1?arguments[1]:void 0)},bve=function(e){if(e&&e.forEach!==mve)try{Wfe(e,"forEach",mve)}catch(t){e.forEach=mve}};for(var wve in uve)uve[wve]&&bve(Sce[wve]&&Sce[wve].prototype);bve(cve);var Eve,xve,Cve,Sve,Dve=Sce.Promise,Ave=kfe("species"),Ove=/(?:ipad|iphone|ipod).*applewebkit/i.test(Zce),_ve="process"==zce(Sce.process),kve=Sce.setImmediate,Bve=Sce.clearImmediate,Fve=Sce.process,Tve=Sce.Dispatch,Pve=Sce.Function,jve=Sce.MessageChannel,Nve=Sce.String,Ive=0,Lve={};try{Eve=Sce.location}catch(cCe){}var Rve=function(e){if(wfe(Lve,e)){var t=Lve[e];delete Lve[e],t()}},Mve=function(e){return function(){Rve(e)}},zve=function(e){Rve(e.data)},$ve=function(e){Sce.postMessage(Nve(e),Eve.protocol+"//"+Eve.host)};kve&&Bve||(kve=function(e){var t=ape(arguments,1);return Lve[++Ive]=function(){Xpe(qce(e)?e:Pve(e),void 0,t)},xve(Ive),Ive},Bve=function(e){delete Lve[e]},_ve?xve=function(e){Fve.nextTick(Mve(e))}:Tve&&Tve.now?xve=function(e){Tve.now(Mve(e))}:jve&&!Ove?(Sve=(Cve=new jve).port2,Cve.port1.onmessage=zve,xve=vge(Sve.postMessage,Sve)):Sce.addEventListener&&qce(Sce.postMessage)&&!Sce.importScripts&&Eve&&"file:"!==Eve.protocol&&!Dce($ve)?(xve=$ve,Sce.addEventListener("message",zve,!1)):xve="onreadystatechange"in Nfe("script")?function(e){Epe.appendChild(Nfe("script")).onreadystatechange=function(){Epe.removeChild(this),Rve(e)}}:function(e){setTimeout(Mve(e),0)});var Hve,Vve,Uve,Wve,Gve,qve,Kve,Yve,Xve={set:kve},Zve=/ipad|iphone|ipod/i.test(Zce)&&void 0!==Sce.Pebble,Jve=/web0s(?!.*chrome)/i.test(Zce),Qve=Rfe.f,eye=Xve.set,tye=Sce.MutationObserver||Sce.WebKitMutationObserver,nye=Sce.document,rye=Sce.process,oye=Sce.Promise,iye=Qve(Sce,"queueMicrotask"),aye=iye&&iye.value;aye||(Hve=function(){var e,t;for(_ve&&(e=rye.domain)&&e.exit();Vve;){t=Vve.fn,Vve=Vve.next;try{t()}catch(n){throw Vve?Wve():Uve=void 0,n}}Uve=void 0,e&&e.enter()},Ove||_ve||Jve||!tye||!nye?!Zve&&oye&&oye.resolve?((Kve=oye.resolve(void 0)).constructor=oye,Yve=vge(Kve.then,Kve),Wve=function(){Yve(Hve)}):_ve?Wve=function(){rye.nextTick(Hve)}:(eye=vge(eye,Sce),Wve=function(){eye(Hve)}):(Gve=!0,qve=nye.createTextNode(""),new tye(Hve).observe(qve,{characterData:!0}),Wve=function(){qve.data=Gve=!Gve}));var uye,sye,lye,cye,fye=aye||function(e){var t={fn:e,next:void 0};Uve&&(Uve.next=t),Vve||(Vve=t,Wve()),Uve=t},dye=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=cfe(t),this.reject=cfe(n)},pye={f:function(e){return new dye(e)}},hye=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},gye="object"==typeof window,vye=Xve.set,yye=kfe("species"),mye="Promise",bye=lde.getterFor(mye),wye=lde.set,Eye=lde.getterFor(mye),xye=Dve&&Dve.prototype,Cye=Dve,Sye=xye,Dye=Sce.TypeError,Aye=Sce.document,Oye=Sce.process,_ye=pye.f,kye=_ye,Bye=!!(Aye&&Aye.createEvent&&Sce.dispatchEvent),Fye=qce(Sce.PromiseRejectionEvent),Tye=!1,Pye=zde(mye,(function(){var e=Xfe(Cye),t=e!==String(Cye);if(!t&&66===nfe)return!0;if(nfe>=51&&/native code/.test(e))return!1;var n=new Cye((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[yye]=r,!(Tye=n.then((function(){}))instanceof r)||!t&&gye&&!Fye})),jye=Pye||!Pge((function(e){Cye.all(e).catch((function(){}))})),Nye=function(e){var t;return!(!Kce(e)||!qce(t=e.then))&&t},Iye=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;fye((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&zye(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Dye("Promise-chain cycle")):(u=Nye(a))?_ce(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Rye(e)}))}},Lye=function(e,t,n){var r,o;Bye?((r=Aye.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Sce.dispatchEvent(r)):r={promise:t,reason:n},!Fye&&(o=Sce["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Sce.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Rye=function(e){_ce(vye,Sce,(function(){var t,n=e.facade,r=e.value;if(Mye(e)&&(t=hye((function(){_ve?Oye.emit("unhandledRejection",r,n):Lye("unhandledrejection",n,r)})),e.rejection=_ve||Mye(e)?2:1,t.error))throw t.value}))},Mye=function(e){return 1!==e.rejection&&!e.parent},zye=function(e){_ce(vye,Sce,(function(){var t=e.facade;_ve?Oye.emit("rejectionHandled",t):Lye("rejectionhandled",t,e.value)}))},$ye=function(e,t,n){return function(r){e(t,r,n)}},Hye=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Iye(e,!0))},Vye=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Dye("Promise can't be resolved itself");var r=Nye(t);r?fye((function(){var n={done:!1};try{_ce(r,t,$ye(Vye,n,e),$ye(Hye,n,e))}catch(o){Hye(n,o,e)}})):(e.value=t,e.state=1,Iye(e,!1))}catch(o){Hye({done:!1},o,e)}}};if(Pye&&(Sye=(Cye=function(e){_ge(this,Sye),cfe(e),_ce(uye,this);var t=bye(this);try{e($ye(Vye,t),$ye(Hye,t))}catch(n){Hye(t,n)}}).prototype,(uye=function(e){wye(this,{type:mye,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=age(Sye,{then:function(e,t){var n=Eye(this),r=n.reactions,o=_ye(nhe(this,Cye));return o.ok=!qce(e)||e,o.fail=qce(t)&&t,o.domain=_ve?Oye.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Iye(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),sye=function(){var e=new uye,t=bye(e);this.promise=e,this.resolve=$ye(Vye,t),this.reject=$ye(Hye,t)},pye.f=_ye=function(e){return e===Cye||e===lye?new sye(e):kye(e)},qce(Dve)&&xye!==Object.prototype)){cye=xye.then,Tye||(hde(xye,"then",(function(e,t){var n=this;return new Cye((function(e,t){_ce(cye,n,e,t)})).then(e,t)}),{unsafe:!0}),hde(xye,"catch",Sye.catch,{unsafe:!0}));try{delete xye.constructor}catch(cCe){}Ghe&&Ghe(xye,Sye)}Hde({global:!0,wrap:!0,forced:Pye},{Promise:Cye}),$he(Cye,mye,!1),function(){var e=Yce("Promise"),t=Ufe.f;Ace&&e&&!e[Ave]&&t(e,Ave,{configurable:!0,get:function(){return this}})}(),lye=Yce(mye),Hde({target:mye,stat:!0,forced:Pye},{reject:function(e){var t=_ye(this);return _ce(t.reject,void 0,e),t.promise}}),Hde({target:mye,stat:!0,forced:Pye},{resolve:function(e){return function(e,t){if($fe(e),Kce(t)&&t.constructor===e)return t;var n=pye.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Hde({target:mye,stat:!0,forced:jye},{all:function(e){var t=this,n=_ye(t),r=n.resolve,o=n.reject,i=hye((function(){var n=cfe(t.resolve),i=[],a=0,u=1;Age(e,(function(e){var s=a++,l=!1;u++,_ce(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=_ye(t),r=n.reject,o=hye((function(){var o=cfe(t.resolve);Age(e,(function(e){_ce(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Uye=pde.PROPER,Wye=RegExp.prototype,Gye=Wye.toString,qye=Lce(gpe),Kye=Dce((function(){return"/a/b"!=Gye.call({source:"a",flags:"b"})})),Yye=Uye&&"toString"!=Gye.name;(Kye||Yye)&&hde(RegExp.prototype,"toString",(function(){var e=$fe(this),t=hpe(e.source),n=e.flags;return"/"+t+"/"+hpe(void 0===n&&Xce(Wye,e)&&!("flags"in Wye)?qye(e):n)}),{unsafe:!0});var Xye=pde.EXISTS,Zye=Ufe.f,Jye=Function.prototype,Qye=Lce(Jye.toString),eme=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,tme=Lce(eme.exec);Ace&&!Xye&&Zye(Jye,"name",{configurable:!0,get:function(){try{return tme(eme,Qye(this))[1]}catch($u){return""}}});var nme=new WeakMap;function rme(e){return e.getMenuConfig("uploadImage")}function ome(e,t){return Ehe(this,0,void 0,(function(){return xhe(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;eK(e,i,t.name,a),n("ok")}}}))]}))}))}function ime(e,t){return Ehe(this,0,void 0,(function(){var n,r,o,i;return xhe(this,(function(a){switch(a.label){case 0:return n=function(e){var t=nme.get(e);if(null!=t)return t;var n=rme(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=IM(whe(whe({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return eK(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;eK(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;eK(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),nme.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function ame(e,t){var n,r;return Ehe(this,0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return xhe(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=rme(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=function(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(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)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.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){var i,a,u,s;i=r,a=o,u=(t=e[n](t)).done,s=t.value,Promise.resolve(s).then((function(e){i({value:e,done:u})}),a)}))}}}(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,ome(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return eK(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,ime(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.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 ume=Lce([].join),sme=Vce!=Object,lme=vve("join",",");Hde({target:"Array",proto:!0,forced:sme||!lme},{join:function(e){return ume(Gce(this),void 0===e?",":e)}}),SE&&(rE.fn.append=SE),fE&&(rE.fn.on=fE),BE&&(rE.fn.remove=BE),cE&&(rE.fn.val=cE),jE&&(rE.fn.click=jE),vE&&(rE.fn.hide=vE);var cme=function(){function e(){this.title=Dz("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return tK(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return eK(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=rE("body"),s=rE('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;ame(e,t)}))}},e}(),fme={menus:[{key:"uploadImage",factory:function(){return new cme},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){},onError:function(e,t,n){},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(tK(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?ame(e,o):t(r)}},n}};Sz("en",{highLightModule:{selectLang:"Language"}}),Sz("zh-CN",{highLightModule:{selectLang:"选择语言"}});var dme="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function pme(e){var t={exports:{}};return e(t,t.exports),t.exports}var hme,gme,vme=function(e){return e&&e.Math==Math&&e},yme=vme("object"==typeof globalThis&&globalThis)||vme("object"==typeof window&&window)||vme("object"==typeof self&&self)||vme("object"==typeof dme&&dme)||function(){return this}()||Function("return this")(),mme=Object.defineProperty,bme=function(e,t){try{mme(yme,e,{value:t,configurable:!0,writable:!0})}catch(Oz){yme[e]=t}return t},wme=yme["__core-js_shared__"]||bme("__core-js_shared__",{}),Eme=pme((function(e){(e.exports=function(e,t){return wme[e]||(wme[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),xme=Function.prototype,Cme=xme.bind,Sme=xme.call,Dme=Cme&&Cme.bind(Sme),Ame=Cme?function(e){return e&&Dme(Sme,e)}:function(e){return e&&function(){return Sme.apply(e,arguments)}},Ome=yme.TypeError,_me=function(e){if(null==e)throw Ome("Can't call method on "+e);return e},kme=yme.Object,Bme=function(e){return kme(_me(e))},Fme=Ame({}.hasOwnProperty),Tme=Object.hasOwn||function(e,t){return Fme(Bme(e),t)},Pme=0,jme=Math.random(),Nme=Ame(1..toString),Ime=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Nme(++Pme+jme,36)},Lme=function(e){return"function"==typeof e},Rme=function(e,t){return arguments.length<2?function(e){return Lme(e)?e:void 0}(yme[e]):yme[e]&&yme[e][t]},Mme=Rme("navigator","userAgent")||"",zme=yme.process,$me=yme.Deno,Hme=zme&&zme.versions||$me&&$me.version,Vme=Hme&&Hme.v8;Vme&&(gme=(hme=Vme.split("."))[0]>0&&hme[0]<4?1:+(hme[0]+hme[1])),!gme&&Mme&&(!(hme=Mme.match(/Edge\/(\d+)/))||hme[1]>=74)&&(hme=Mme.match(/Chrome\/(\d+)/))&&(gme=+hme[1]);var Ume=gme,Wme=function(e){try{return!!e()}catch(t){return!0}},Gme=!!Object.getOwnPropertySymbols&&!Wme((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ume&&Ume<41})),qme=Gme&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Kme=Eme("wks"),Yme=yme.Symbol,Xme=Yme&&Yme.for,Zme=qme?Yme:Yme&&Yme.withoutSetter||Ime,Jme=function(e){if(!Tme(Kme,e)||!Gme&&"string"!=typeof Kme[e]){var t="Symbol."+e;Gme&&Tme(Yme,e)?Kme[e]=Yme[e]:Kme[e]=qme&&Xme?Xme(t):Zme(t)}return Kme[e]},Qme={};Qme[Jme("toStringTag")]="z";var ebe="[object z]"===String(Qme),tbe=!Wme((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),nbe=function(e){return"object"==typeof e?null!==e:Lme(e)},rbe=yme.document,obe=nbe(rbe)&&nbe(rbe.createElement),ibe=function(e){return obe?rbe.createElement(e):{}},abe=!tbe&&!Wme((function(){return 7!=Object.defineProperty(ibe("div"),"a",{get:function(){return 7}}).a})),ube=yme.String,sbe=yme.TypeError,lbe=function(e){if(nbe(e))return e;throw sbe(ube(e)+" is not an object")},cbe=Function.prototype.call,fbe=cbe.bind?cbe.bind(cbe):function(){return cbe.apply(cbe,arguments)},dbe=Ame({}.isPrototypeOf),pbe=yme.Object,hbe=qme?function(e){return"symbol"==typeof e}:function(e){var t=Rme("Symbol");return Lme(t)&&dbe(t.prototype,pbe(e))},gbe=yme.String,vbe=function(e){try{return gbe(e)}catch(t){return"Object"}},ybe=yme.TypeError,mbe=function(e){if(Lme(e))return e;throw ybe(vbe(e)+" is not a function")},bbe=function(e,t){var n=e[t];return null==n?void 0:mbe(n)},wbe=yme.TypeError,Ebe=yme.TypeError,xbe=Jme("toPrimitive"),Cbe=function(e){var t=function(e){if(!nbe(e)||hbe(e))return e;var t,n=bbe(e,xbe);if(n){if(t=fbe(n,e,"string"),!nbe(t)||hbe(t))return t;throw Ebe("Can't convert object to primitive value")}return function(e){var t,n;if(Lme(t=e.toString)&&!nbe(n=fbe(t,e)))return n;if(Lme(t=e.valueOf)&&!nbe(n=fbe(t,e)))return n;throw wbe("Can't convert object to primitive value")}(e)}(e);return hbe(t)?t:t+""},Sbe=yme.TypeError,Dbe=Object.defineProperty,Abe={f:tbe?Dbe:function(e,t,n){if(lbe(e),t=Cbe(t),lbe(n),abe)try{return Dbe(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Sbe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Obe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_be=tbe?function(e,t,n){return Abe.f(e,t,Obe(1,n))}:function(e,t,n){return e[t]=n,e},kbe=Ame(Function.toString);Lme(wme.inspectSource)||(wme.inspectSource=function(e){return kbe(e)});var Bbe,Fbe,Tbe,Pbe=wme.inspectSource,jbe=yme.WeakMap,Nbe=Lme(jbe)&&/native code/.test(Pbe(jbe)),Ibe=Eme("keys"),Lbe=function(e){return Ibe[e]||(Ibe[e]=Ime(e))},Rbe={},Mbe=yme.TypeError,zbe=yme.WeakMap;if(Nbe||wme.state){var $be=wme.state||(wme.state=new zbe),Hbe=Ame($be.get),Vbe=Ame($be.has),Ube=Ame($be.set);Bbe=function(e,t){if(Vbe($be,e))throw new Mbe("Object already initialized");return t.facade=e,Ube($be,e,t),t},Fbe=function(e){return Hbe($be,e)||{}},Tbe=function(e){return Vbe($be,e)}}else{var Wbe=Lbe("state");Rbe[Wbe]=!0,Bbe=function(e,t){if(Tme(e,Wbe))throw new Mbe("Object already initialized");return t.facade=e,_be(e,Wbe,t),t},Fbe=function(e){return Tme(e,Wbe)?e[Wbe]:{}},Tbe=function(e){return Tme(e,Wbe)}}var Gbe={get:Fbe,enforce:function(e){return Tbe(e)?Fbe(e):Bbe(e,{})}},qbe=Function.prototype,Kbe=tbe&&Object.getOwnPropertyDescriptor,Ybe=Tme(qbe,"name"),Xbe={PROPER:Ybe&&"something"===function(){}.name,CONFIGURABLE:Ybe&&(!tbe||tbe&&Kbe(qbe,"name").configurable)},Zbe=pme((function(e){var t=Xbe.CONFIGURABLE,n=Gbe.get,r=Gbe.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Lme(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Tme(i,"name")||t&&i.name!==f)&&_be(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==yme?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:_be(e,n,i)):l?e[n]=i:bme(n,i)})(Function.prototype,"toString",(function(){return Lme(this)&&n(this).source||Pbe(this)}))})),Jbe=Ame({}.toString),Qbe=Ame("".slice),ewe=function(e){return Qbe(Jbe(e),8,-1)},twe=Jme("toStringTag"),nwe=yme.Object,rwe="Arguments"==ewe(function(){return arguments}()),owe=ebe?ewe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=nwe(e),twe))?n:rwe?ewe(t):"Object"==(r=ewe(t))&&Lme(t.callee)?"Arguments":r},iwe=ebe?{}.toString:function(){return"[object "+owe(this)+"]"};ebe||Zbe(Object.prototype,"toString",iwe,{unsafe:!0});var awe,uwe={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},swe=ibe("span").classList,lwe=swe&&swe.constructor&&swe.constructor.prototype,cwe=lwe===Object.prototype?void 0:lwe,fwe=Ame(Ame.bind),dwe=yme.Object,pwe=Ame("".split),hwe=Wme((function(){return!dwe("z").propertyIsEnumerable(0)}))?function(e){return"String"==ewe(e)?pwe(e,""):dwe(e)}:dwe,gwe=Math.ceil,vwe=Math.floor,ywe=function(e){var t=+e;return t!=t||0===t?0:(t>0?vwe:gwe)(t)},mwe=Math.min,bwe=function(e){return e>0?mwe(ywe(e),9007199254740991):0},wwe=function(e){return bwe(e.length)},Ewe=Array.isArray||function(e){return"Array"==ewe(e)},xwe=function(){},Cwe=[],Swe=Rme("Reflect","construct"),Dwe=/^\s*(?:class|function)\b/,Awe=Ame(Dwe.exec),Owe=!Dwe.exec(xwe),_we=function(e){if(!Lme(e))return!1;try{return Swe(xwe,Cwe,e),!0}catch(t){return!1}},kwe=!Swe||Wme((function(){var e;return _we(_we.call)||!_we(Object)||!_we((function(){e=!0}))||e}))?function(e){if(!Lme(e))return!1;switch(owe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Owe||!!Awe(Dwe,Pbe(e))}:_we,Bwe=Jme("species"),Fwe=yme.Array,Twe=function(e,t){return new(Ewe(n=e)&&(r=n.constructor,(kwe(r)&&(r===Fwe||Ewe(r.prototype))||nbe(r)&&null===(r=r[Bwe]))&&(r=void 0)),void 0===r?Fwe:r)(0===t?0:t);var n,r},Pwe=Ame([].push),jwe=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Bme(s),g=hwe(h),v=function(e,t){return mbe(e),void 0===t?e:fwe?fwe(e,t):function(){return e.apply(t,arguments)}}(l,c),y=wwe(g),m=0,b=f||Twe,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Pwe(w,d)}else switch(e){case 4:return!1;case 7:Pwe(w,d)}return i?-1:r||o?o:w}},Nwe=[jwe(0),jwe(1),jwe(2),jwe(3),jwe(4),jwe(5),jwe(6),jwe(7)][0],Iwe=(awe=[].forEach)&&Wme((function(){awe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return Nwe(this,e,arguments.length>1?arguments[1]:void 0)},Lwe=function(e){if(e&&e.forEach!==Iwe)try{_be(e,"forEach",Iwe)}catch(t){e.forEach=Iwe}};for(var Rwe in uwe)uwe[Rwe]&&Lwe(yme[Rwe]&&yme[Rwe].prototype);Lwe(cwe);var Mwe={}.propertyIsEnumerable,zwe=Object.getOwnPropertyDescriptor,$we={f:zwe&&!Mwe.call({1:2},1)?function(e){var t=zwe(this,e);return!!t&&t.enumerable}:Mwe},Hwe=function(e){return hwe(_me(e))},Vwe=Object.getOwnPropertyDescriptor,Uwe={f:tbe?Vwe:function(e,t){if(e=Hwe(e),t=Cbe(t),abe)try{return Vwe(e,t)}catch(n){}if(Tme(e,t))return Obe(!fbe($we.f,e,t),e[t])}},Wwe=Math.max,Gwe=Math.min,qwe=function(e,t){var n=ywe(e);return n<0?Wwe(n+t,0):Gwe(n,t)},Kwe=function(e){return function(t,n,r){var o,i=Hwe(t),a=wwe(i),u=qwe(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),Ywe=Ame([].push),Xwe=function(e,t){var n,r=Hwe(e),o=0,i=[];for(n in r)!Tme(Rbe,n)&&Tme(r,n)&&Ywe(i,n);for(;t.length>o;)Tme(r,n=t[o++])&&(~Kwe(i,n)||Ywe(i,n));return i},Zwe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jwe=Zwe.concat("length","prototype"),Qwe={f:Object.getOwnPropertyNames||function(e){return Xwe(e,Jwe)}},eEe={f:Object.getOwnPropertySymbols},tEe=Ame([].concat),nEe=Rme("Reflect","ownKeys")||function(e){var t=Qwe.f(lbe(e)),n=eEe.f;return n?tEe(t,n(e)):t},rEe=function(e,t){for(var n=nEe(t),r=Abe.f,o=Uwe.f,i=0;i<n.length;i++){var a=n[i];Tme(e,a)||r(e,a,o(t,a))}},oEe=/#|\.prototype\./,iEe=function(e,t){var n=uEe[aEe(e)];return n==lEe||n!=sEe&&(Lme(t)?Wme(t):!!t)},aEe=iEe.normalize=function(e){return String(e).replace(oEe,".").toLowerCase()},uEe=iEe.data={},sEe=iEe.NATIVE="N",lEe=iEe.POLYFILL="P",cEe=iEe,fEe=Uwe.f,dEe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?yme:l?yme[u]||bme(u,{}):(yme[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=fEe(n,r))&&a.value:n[r],!cEe(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;rEe(i,o)}(e.sham||o&&o.sham)&&_be(i,"sham",!0),Zbe(n,r,i,e)}},pEe=Object.keys||function(e){return Xwe(e,Zwe)},hEe=Object.assign,gEe=Object.defineProperty,vEe=Ame([].concat),yEe=!hEe||Wme((function(){if(tbe&&1!==hEe({b:1},hEe(gEe({},"a",{enumerable:!0,get:function(){gEe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=hEe({},e)[n]||pEe(hEe({},t)).join("")!=r}))?function(e,t){for(var n=Bme(e),r=arguments.length,o=1,i=eEe.f,a=$we.f;r>o;)for(var u,s=hwe(arguments[o++]),l=i?vEe(pEe(s),i(s)):pEe(s),c=l.length,f=0;c>f;)u=l[f++],tbe&&!fbe(a,s,u)||(n[u]=s[u]);return n}:hEe;dEe({target:"Object",stat:!0,forced:Object.assign!==yEe},{assign:yEe});var mEe=pme((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var E=g.pattern||g,x=r.next,C=s;x!==t.tail&&!(f&&C>=f.reach);C+=x.value.length,x=x.next){var S=x.value;if(t.length>e.length)return;if(!(S instanceof i)){var D,A=1;if(m){if(!(D=a(E,C,e,y)))break;var O=D.index,_=D.index+D[0].length,k=C;for(k+=x.value.length;O>=k;)k+=(x=x.next).value.length;if(C=k-=x.value.length,x.value instanceof i)continue;for(var B=x;B!==t.tail&&(k<_||"string"==typeof B.value);B=B.next)A++,k+=B.value.length;A--,S=e.slice(C,k),D.index-=C}else if(!(D=a(E,0,S,y)))continue;O=D.index;var F=D[0],T=S.slice(0,O),P=S.slice(O+F.length),j=C+S.length;f&&j>f.reach&&(f.reach=j);var N=x.prev;if(T&&(N=l(t,N,T),C+=T.length),c(t,N,A),x=l(t,N,new i(d,v?o.tokenize(F,v):F,b,F)),P&&l(t,x,P),A>1){var I={cause:d+","+h,reach:j};u(e,t,n,x.prev,C,I),f&&I.reach>f.reach&&(f.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=t),void 0!==dme&&(dme.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(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.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:[n,"language-"+n],inside:t.languages[n]},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(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.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\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.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(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='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(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\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:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.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){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),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 o={};o[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",o)}}),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,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;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:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{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:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"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:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"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:/![sra](?=[:}]$)/,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(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="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*{)",u="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 s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,m]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,D=/"(?:\\.|[^\\"\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,[D]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,x]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,d,g]),inside:C}],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,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"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,[l,v,g,x,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:C},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 O=D+"|"+S,_=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),k=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[_]),2),B=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,F=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,k]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[B,F]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[B]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[k]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var T=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[_]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,T]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,T]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,T]),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,[j]),lookbehind:!0,greedy:!0,inside:L(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,N)}]})}(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]*"+/(?:![ \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 o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \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("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),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(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e})),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=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("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var bEe=["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 wEe(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+wEe(t)}),0)}var EEe,xEe=yme.String,CEe=function(e){if("Symbol"===owe(e))throw TypeError("Cannot convert a Symbol value to a string");return xEe(e)},SEe=function(){var e=lbe(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},DEe=yme.RegExp,AEe=Wme((function(){var e=DEe("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));AEe||Wme((function(){return!DEe("a","y").sticky}));var OEe={BROKEN_CARET:AEe||Wme((function(){var e=DEe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:AEe},_Ee=tbe?Object.defineProperties:function(e,t){lbe(e);for(var n,r=Hwe(t),o=pEe(t),i=o.length,a=0;i>a;)Abe.f(e,n=o[a++],r[n]);return e},kEe=Rme("document","documentElement"),BEe=Lbe("IE_PROTO"),FEe=function(){},TEe=function(e){return"<script>"+e+"<\/script>"},PEe=function(e){e.write(TEe("")),e.close();var t=e.parentWindow.Object;return e=null,t},jEe=function(){try{EEe=new ActiveXObject("htmlfile")}catch(r){}var e,t;jEe="undefined"!=typeof document?document.domain&&EEe?PEe(EEe):((t=ibe("iframe")).style.display="none",kEe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(TEe("document.F=Object")),e.close(),e.F):PEe(EEe);for(var n=Zwe.length;n--;)delete jEe.prototype[Zwe[n]];return jEe()};Rbe[BEe]=!0;var NEe,IEe,LEe=Object.create||function(e,t){var n;return null!==e?(FEe.prototype=lbe(e),n=new FEe,FEe.prototype=null,n[BEe]=e):n=jEe(),void 0===t?n:_Ee(n,t)},REe=yme.RegExp,MEe=Wme((function(){var e=REe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),zEe=yme.RegExp,$Ee=Wme((function(){var e=zEe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),HEe=Gbe.get,VEe=Eme("native-string-replace",String.prototype.replace),UEe=RegExp.prototype.exec,WEe=UEe,GEe=Ame("".charAt),qEe=Ame("".indexOf),KEe=Ame("".replace),YEe=Ame("".slice),XEe=(IEe=/b*/g,fbe(UEe,NEe=/a/,"a"),fbe(UEe,IEe,"a"),0!==NEe.lastIndex||0!==IEe.lastIndex),ZEe=OEe.BROKEN_CARET,JEe=void 0!==/()??/.exec("")[1];(XEe||JEe||ZEe||MEe||$Ee)&&(WEe=function(e){var t,n,r,o,i,a,u,s=this,l=HEe(s),c=CEe(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=fbe(WEe,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=ZEe&&s.sticky,h=fbe(SEe,s),g=s.source,v=0,y=c;if(p&&(h=KEe(h,"y",""),-1===qEe(h,"g")&&(h+="g"),y=YEe(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==GEe(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),JEe&&(n=new RegExp("^"+g+"$(?!\\s)",h)),XEe&&(r=s.lastIndex),o=fbe(UEe,p?n:s,y),p?o?(o.input=YEe(o.input,v),o[0]=YEe(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:XEe&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),JEe&&o&&o.length>1&&fbe(VEe,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=LEe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var QEe=WEe;dEe({target:"RegExp",proto:!0,forced:/./.exec!==QEe},{exec:QEe});var exe=Function.prototype,txe=exe.apply,nxe=exe.bind,rxe=exe.call,oxe="object"==typeof Reflect&&Reflect.apply||(nxe?rxe.bind(txe):function(){return rxe.apply(txe,arguments)}),ixe=Jme("species"),axe=RegExp.prototype,uxe=Jme("match"),sxe=yme.TypeError,lxe=Jme("species"),cxe=Ame("".charAt),fxe=Ame("".charCodeAt),dxe=Ame("".slice),pxe=function(e){return function(t,n){var r,o,i=CEe(_me(t)),a=ywe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=fxe(i,a))<55296||r>56319||a+1===u||(o=fxe(i,a+1))<56320||o>57343?e?cxe(i,a):r:e?dxe(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),hxe=function(e,t,n){return t+(n?pxe(e,t).length:1)},gxe=yme.Array,vxe=Math.max,yxe=function(e,t,n){for(var r,o,i,a,u=wwe(e),s=qwe(t,u),l=qwe(void 0===n?u:n,u),c=gxe(vxe(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=Cbe(o))in r?Abe.f(r,a,Obe(0,i)):r[a]=i;return c.length=f,c},mxe=yme.TypeError,bxe=function(e,t){var n=e.exec;if(Lme(n)){var r=fbe(n,e,t);return null!==r&&lbe(r),r}if("RegExp"===ewe(e))return fbe(QEe,e,t);throw mxe("RegExp#exec called on incompatible receiver")},wxe=OEe.UNSUPPORTED_Y,Exe=Math.min,xxe=[].push,Cxe=Ame(/./.exec),Sxe=Ame(xxe),Dxe=Ame("".slice);!function(e,t,n,r){var o,i,a,u=Jme(e),s=!Wme((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!Wme((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[ixe]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=Ame(/./[u]),f=(o=u,i=""[e],a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var n,r,o=CEe(_me(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!nbe(n=e)||!(void 0!==(r=n[uxe])?r:"RegExp"==ewe(n)))return fbe(i,o,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=fbe(QEe,p,o))&&!((s=p.lastIndex)>d&&(Sxe(c,Dxe(o,d,u.index)),u.length>1&&u.index<o.length&&oxe(xxe,c,yxe(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&Cxe(p,"")||Sxe(c,""):Sxe(c,Dxe(o,d)),c.length>a?yxe(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:fbe(i,this,e,t)}:i,[function(e,t){var n=_me(this),r=null==e?void 0:bbe(e,o);return r?fbe(r,e,n,t):fbe(a,CEe(n),e,t)},function(e,t){var n=lbe(this),r=CEe(e),o=function(e,t,n,r,o){var i=Ame(e),a=t.exec;return a===QEe||a===axe.exec?s&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(a,n,r,t,a!==i);if(o.done)return o.value;var u,l,f,d=(u=RegExp,void 0===(f=lbe(n).constructor)||null==(l=lbe(f)[lxe])?u:function(e){if(kwe(e))return e;throw sxe(vbe(e)+" is not a constructor")}(l)),p=n.unicode,h=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(wxe?"g":"y"),g=new d(wxe?"^(?:"+n.source+")":n,h),v=void 0===t?4294967295:t>>>0;if(0===v)return[];if(0===r.length)return null===bxe(g,r)?[r]:[];for(var y=0,m=0,b=[];m<r.length;){g.lastIndex=wxe?0:m;var w,E=bxe(g,wxe?Dxe(r,m):r);if(null===E||(w=Exe(bwe(g.lastIndex+(wxe?m:0)),r.length))===y)m=hxe(r,m,p);else{if(Sxe(b,Dxe(r,y,m)),b.length===v)return b;for(var x=1;x<=E.length-1;x++)if(Sxe(b,E[x]),b.length===v)return b;m=y=w}}return Sxe(b,Dxe(r,y)),b}]);Zbe(String.prototype,e,f[0]),Zbe(axe,u,f[1])}r&&_be(axe[u],"sham",!0)}("split",0,!!Wme((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),wxe),dEe({global:!0},{globalThis:yme}),uE&&(rE.fn.attr=uE);var Axe=Xbe.PROPER,Oxe=RegExp.prototype,_xe=Oxe.toString,kxe=Ame(SEe),Bxe=Wme((function(){return"/a/b"!=_xe.call({source:"a",flags:"b"})})),Fxe=Axe&&"toString"!=_xe.name;(Bxe||Fxe)&&Zbe(RegExp.prototype,"toString",(function(){var e=lbe(this),t=CEe(e.source),n=e.flags;return"/"+t+"/"+CEe(void 0===n&&dbe(Oxe,e)&&!("flags"in Oxe)?kxe(e):n)}),{unsafe:!0});var Txe=function(){function e(){this.title=Dz("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(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!Ym.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};Vb.setNodes(e,n,{match:function(e){return qj.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=qj.getSelectedNodeByType(e,"code");if(null==t)return null;var n=qj.getParentNode(e,t);return Ym.isElement(n)?"pre"!==n.type?null:t:null},e}(),Pxe={renderStyle:function(e,t){var n=e,r=t,o="";return bEe.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=rE(e);if(!Ym.isElement(t))return t;if("code"!==qj.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Txe},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=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},jxe=/"/g,Nxe=Ame("".replace);dEe({target:"String",proto:!0,forced:Wme((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=CEe(_me(this)),r="<a",(r+=' name="'+Nxe(CEe(t),jxe,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Ixe=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!Db.isText(e))return null;var t=qj.getParentNode(null,e);if(t&&"code"===qj.getNodeType(t)){var n=qj.getParentNode(null,t);if(n&&"pre"===qj.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=mEe.languages[t];return n?mEe.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)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.")}(f),h=p.next();!h.done;h=p.next()){var g=h.value,v=d+wEe(g);"string"!=typeof g&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(y){t={error:y}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},Lxe=function(){return Lxe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Lxe.apply(this,arguments)},Rxe=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Lxe(Lxe({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Lxe(Lxe({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Lxe(Lxe({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Lxe(Lxe({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n,r,o=e.key,i=e.factory,a=e.config,u=JT(JT({},a),t||{});if(null!=Xj[o])throw new Error("Duplicated key '"+o+"' in menu items");Xj[o]=i,n=o,null!=(r=u)&&(Yj[n]=r)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;kR[t||""]=n}(e)},e.registerRenderStyle=function(e){var t;t=e,_R.push(t)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;sN[t||""]=n}(e)},e.registerStyleToHtml=function(e){var t;t=e,uN.push(t)},e.registerPreParseHtml=function(e){var t;t=e,XI.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;JI[t]=n}(e)},e.registerParseStyleHtml=function(e){var t;t=e,ZI.push(t)},e.registerModule=function(e){Mxe(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function Mxe(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return Rxe.registerMenu(e)})),n&&n.forEach((function(e){return Rxe.registerRenderElem(e)})),r&&Rxe.registerRenderStyle(r),o&&o.forEach((function(e){return Rxe.registerElemToHtml(e)})),i&&Rxe.registerStyleToHtml(i),a&&a.forEach((function(e){return Rxe.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Rxe.registerParseElemHtml(e)})),s&&Rxe.registerParseStyleHtml(s),l&&Rxe.registerPlugin(l)}a0.forEach((function(e){return Mxe(e)})),Mxe(E5),Mxe(Qte),Mxe(mce),Mxe(fme),Mxe(Pxe);var zxe='<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>',$xe={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"]}},Hxe={hoverbarKeys:Lxe(Lxe({},$xe),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Rxe.setEditorConfig(Lxe(Lxe({},Hxe),{decorate:Ixe}));var Vxe={hoverbarKeys:$xe};Rxe.setSimpleEditorConfig(Lxe(Lxe({},Vxe),{decorate:Ixe}));var Uxe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Dz("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:Dz("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:Dz("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:Dz("editor.image"),iconSvg:zxe,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Dz("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"]};Rxe.setToolbarConfig(Uxe);var Wxe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Dz("editor.image"),iconSvg:zxe,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};Rxe.setSimpleToolbarConfig(Wxe);var Gxe=Object.defineProperty,qxe=Object.defineProperties,Kxe=Object.getOwnPropertyDescriptors,Yxe=Object.getOwnPropertySymbols,Xxe=Object.prototype.hasOwnProperty,Zxe=Object.prototype.propertyIsEnumerable,Jxe=(e,t,n)=>t in e?Gxe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qxe=(e,t)=>{for(var n in t||(t={}))Xxe.call(t,n)&&Jxe(e,n,t[n]);if(Yxe)for(var n of Yxe(t))Zxe.call(t,n)&&Jxe(e,n,t[n]);return e},eCe=(e,t)=>qxe(e,Kxe(t));function tCe(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`\nPlease use '@${e}' event instead of props`,t}var nCe=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const rCe=Mn({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=St(null),r=Dt(null),o=St(""),i=()=>{if(!n.value)return;const i=bt(e.defaultContent);!function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?Rxe.simpleEditorConfig:Rxe.editorConfig,c=Lxe(Lxe({},l.hoverbarKeys||{}),u.hoverbarKeys||{});SM({selector:n,config:Lxe(Lxe(Lxe({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Rxe.plugins})}({selector:n.value,mode:e.mode,content:i||[],html:e.defaultHtml||e.modelValue||"",config:eCe(Qxe({},e.defaultConfig),{onCreated(n){if(r.value=n,t.emit("onCreated",n),e.defaultConfig.onCreated){const e=tCe("onCreated");throw new Error(e)}},onChange(n){const r=n.getHtml();if(o.value=r,t.emit("update:modelValue",r),t.emit("onChange",n),e.defaultConfig.onChange){const e=tCe("onChange");throw new Error(e)}},onDestroyed(n){if(t.emit("onDestroyed",n),e.defaultConfig.onDestroyed){const e=tCe("onDestroyed");throw new Error(e)}},onMaxLength(n){if(t.emit("onMaxLength",n),e.defaultConfig.onMaxLength){const e=tCe("onMaxLength");throw new Error(e)}},onFocus(n){if(t.emit("onFocus",n),e.defaultConfig.onFocus){const e=tCe("onFocus");throw new Error(e)}},onBlur(n){if(t.emit("onBlur",n),e.defaultConfig.onBlur){const e=tCe("onBlur");throw new Error(e)}},customAlert(n,r){if(t.emit("customAlert",n,r),e.defaultConfig.customAlert){const e=tCe("customAlert");throw new Error(e)}},customPaste:(n,r)=>{if(e.defaultConfig.customPaste){const e=tCe("customPaste");throw new Error(e)}let o;return t.emit("customPaste",n,r,(e=>{o=e})),o}})})};return tr((()=>{i()})),wo((()=>e.modelValue),(e=>{e!==o.value&&function(e){const t=r.value;if(null==t)return;const n=t.isDisabled(),o=t.isFocused(),i=JSON.stringify(t.selection);if(t.enable(),t.focus(),t.select([]),t.deleteFragment(),Vb.setNodes(t,{type:"paragraph"},{mode:"highest"}),t.dangerouslyInsertHtml(e),!o)return t.deselect(),void t.blur();if(n)return t.deselect(),void t.disable();try{t.select(JSON.parse(i))}catch(a){t.select(tb.start(t,[]))}}(e)})),{box:n}}}),oCe={ref:"box",style:{height:"100%"}};var iCe=nCe(rCe,[["render",function(e,t,n,r,o,i){return zo(),Uo("div",oCe,null,512)}]]);const aCe=Mn({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=St(null),n=n=>{if(t.value){if(null==n)throw new Error("Not found instance of Editor when create <Toolbar/> component");qj.getToolbar(n)||function(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?Rxe.simpleToolbarConfig:Rxe.toolbarConfig;(function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(BL(e,"data-w-e-toolbar",n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=JT({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new kM(n,i);tj.set(a,e),nj.set(e,a)})(n,{selector:t,config:Lxe(Lxe({},u),o)})}({editor:n,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return bo((()=>{const{editor:t}=e;null!=t&&n(t)})),{selector:t}}}),uCe={ref:"selector"};var sCe=nCe(aCe,[["render",function(e,t,n,r,o,i){return zo(),Uo("div",uCe,null,512)}]]);export{xn as $,ai as A,Xo as B,Nt as C,ir as D,Or as E,Ar as F,ni as G,jo as H,V as I,Wo as J,cn as K,pr as L,Zo as M,r as N,$a as O,X as P,R as Q,or as R,fn as S,ta as T,Mi as U,ft as V,Gn as W,rr as X,Qo as Y,No as Z,Io as _,v as a,er as a0,qn as a1,ei as a2,h as a3,Go as a4,bt as a5,ja as a6,Tt as a7,Ia as a8,B as a9,iCe as aA,b as aa,Er as ab,Va as ac,yr as ad,Di as ae,mr as af,fr as ag,U as ah,Jo as ai,Da as aj,wt as ak,ne as al,Pa as am,x as an,hr as ao,F as ap,qa as aq,Ka as ar,k as as,dt as at,gt as au,Kr as av,Un as aw,ti as ax,So as ay,sCe as az,f as b,Si as c,m as d,pt as e,bo as f,fi as g,re as h,qr as i,tr as j,Ct as k,c as l,Oi as m,Qt as n,oe as o,g as p,Gr as q,St as r,Dt as s,O as t,_t as u,Mn as v,wo as w,Uo as x,zo as y,br as z};