You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

260 lines
1.9 MiB

1 week ago
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/404-DD8VG1XT.js","assets/404-D7DuLXxx.css","assets/500-BLUKV6x5.js","assets/500-CBXtgQ20.css","assets/index-xrm7gpr6.js","assets/index-Bt9XBEO4.css","assets/tablePageDemo-CAZ_feSb.js","assets/index-Dk4mkaLm.js","assets/download-DA4MPZiT.js","assets/index-BPNfmy-K.css","assets/index-ah_Rh852.js","assets/index-07JTeaGk.js","assets/index-De_SBxlA.js","assets/index-DGK4vehe.js","assets/index-CNcevUWG.js","assets/index-XPo1BTTE.js","assets/index-Im7wLfa_.js","assets/index-B-YfCUMf.js","assets/index-C2CU7z2R.js","assets/index-DPkUHkgQ.js","assets/index-CNRkWW5s.js","assets/index-D8CwYsJW.js","assets/index-D7M08cHb.js","assets/index-BLlc2sOn.js","assets/index-CJwBcsYr.js","assets/index-C574B8Sb.js","assets/deferredJobDialog-DtMcZENH.js","assets/dictSelect-DMlR5DHt.js","assets/dataDictDetailApi-CT6MIz2g.js","assets/orgCascader-5ynAr5qi.js","assets/orgApi-B9lfoxVb.js","assets/orgTree-CZlB4jkB.js","assets/positionSelect-e3qE3rHD.js","assets/positionApi-LSxcuq5K.js","assets/userSelectDialog-DwLvaZAH.js","assets/dictDetailDialog-Bv35hRLw.js","assets/editDictDetailDialog-BG1bOjVD.js","assets/index-B25rnsaP.js","assets/editDialog-DSIh-CzC.js","assets/logDiffIndex-B6J8uVW9.js","assets/logApi-Bj7_8BoJ.js","assets/logEventIndex-h6iwUyqj.js","assets/logExceptionIndex-Dcdhaf3T.js","assets/logJobIndex-DO2EaPPq.js","assets/logLoginIndex-C-pFZU4b.js","assets/logOperateIndex-CYAaR0xf.js","assets/index-dKhnjE_p.js","assets/tenantDialog-Cp0LMyZ6.js","assets/index-Uewj-LYl.css","assets/editDialog-gvmRGAGn.js","assets/menuApi-DA2os7CJ.js","assets/elIconList-Dez7Y2ge.js","assets/elIconList-DjZIBUtz.css","assets/faIconList-BL3GmUlj.js","assets/faIconList-pncSLGd0.css","assets/editDialog-ddGr7Tu4.css","assets/index-Bs9YjUiz.js","assets/editDialog-CVPrr59C.js","assets/fileApi-imPWhE9L.js","assets/editDialog-nHDhGvq6.css","assets/publishDialog-Bri1Fdq0.js","assets/enumSelect-B79BbPRz.js","assets/publishIndex-B5e0rLMM.js","assets/receiveIndex-CcPT22sz.js","assets/viewDialog-BTWSVDmZ.js","assets/editDialog-BAYbqI5Q.js","assets/userSelect-BFC1XVSc.js","assets/index-fMeMR0So.js","assets/index-DWogxarA.js","assets/singleImgUpload-kUwexz75.js","assets/singleImgUpload-CMkgGOUx.css","assets/editDialog-DPUP-iRr.js","assets/index-BIlf7GxJ.js","assets/editDataTypeDialog-CQqdb4xq.js","assets/roleApi-BDJCNzzM.js","assets/editDialog-C4Qed4Gi.js","assets/editDialog-BJbWPMmY.css","assets/index-b-2ofNeF.js","assets/index-BiCuJ5Vv.js","assets/index-BjxEll71.js","assets/editDialog-DsYmDP-m.js","assets/editDialog-CLbww7fi.js","assets/index-flZ2FvVB.js","assets/index-Dku8BQ-w.js","assets/index-vYjWS3BB.css"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();/**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function cP(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ln={},Jh=[],mn=()=>{},Zhe=()=>!1,ow=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),dP=e=>e.startsWith("onUpdate:"),Zr=Object.assign,fP=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Qhe=Object.prototype.hasOwnProperty,Wt=(e,t)=>Qhe.call(e,t),We=Array.isArray,Zh=e=>uv(e)==="[object Map]",aw=e=>uv(e)==="[object Set]",Yf=e=>uv(e)==="[object Date]",e0e=e=>uv(e)==="[object RegExp]",ct=e=>typeof e=="function",vt=e=>typeof e=="string",ys=e=>typeof e=="symbol",Mt=e=>e!==null&&typeof e=="object",D1=e=>(Mt(e)||ct(e))&&ct(e.then)&&ct(e.catch),lQ=Object.prototype.toString,uv=e=>lQ.call(e),Q6=e=>uv(e).slice(8,-1),h3=e=>uv(e)==="[object Object]",pP=e=>vt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,z2=cP(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),iw=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},t0e=/-(\w)/g,da=iw(e=>e.replace(t0e,(t,n)=>n?n.toUpperCase():"")),n0e=/\B([A-Z])/g,vl=iw(e=>e.replace(n0e,"-$1").toLowerCase()),oy=iw(e=>e.charAt(0).toUpperCase()+e.slice(1)),eb=iw(e=>e?`on${oy(e)}`:""),Ea=(e,t)=>!Object.is(e,t),Qh=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},uQ=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},jx=e=>{const t=parseFloat(e);return isNaN(t)?e:t},r0e=e=>{const t=vt(e)?Number(e):NaN;return isNaN(t)?e:t};let QI;const sw=()=>QI||(QI=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qe(e){if(We(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=vt(r)?s0e(r):Qe(r);if(o)for(const a in o)t[a]=o[a]}return t}else if(vt(e)||Mt(e))return e}const o0e=/;(?![^(]*\))/g,a0e=/:([^]+)/,i0e=/\/\*[^]*?\*\//g;function s0e(e){const t={};return e.replace(i0e,"").split(o0e).forEach(n=>{if(n){const r=n.split(a0e);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function R(e){let t="";if(vt(e))t=e;else if(We(e))for(let n=0;n<e.length;n++){const r=R(e[n]);r&&(t+=r+" ")}else if(Mt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Kl(e){if(!e)return null;let{class:t,style:n}=e;return t&&!vt(t)&&(e.class=R(t)),n&&(e.style=Qe(n)),e}const l0e="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",u0e=cP(l0e);function cQ(e){return!!e||e===""}function c0e(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=w0(e[r],t[r]);return n}function w0(e,t){if(e===t)return!0;let n=Yf(e),r=Yf(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ys(e),r=ys(t),n||r)return e===t;if(n=We(e),r=We(t),n||r)return n&&r?c0e(e,t):!1;if(n=Mt(e),r=Mt(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,a=Object.keys(t).length;if(o!==a)return!1;for(const i in e){const s=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(s&&!l||!s&&l||!w0(e[i],t[i]))return!1}}return String(e)===String(t)}function dQ(e,t){return e.findIndex(n=>w0(n,t))}const fQ=e=>!!(e&&e.__v_isRef===!0),$e=e=>vt(e)?e:e==null?"":We(e)||Mt(e)&&(e.toString===lQ||!ct(e.toString))?fQ(e)?$e(e.value):JSON.stringify(e,pQ,2):String(e),pQ=(e,t)=>fQ(t)?pQ(e,t.value):Zh(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],a)=>(n[v9(r,a)+" =>"]=o,n),{})}:aw(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>v9(n))}:ys(t)?v9(t):Mt(t)&&!We(t)&&!h3(t)?String(t):t,v9=(e,t="")=>{var n;return ys(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let ia;class hQ{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ia,!t&&ia&&(this.index=(ia.scopes||(ia.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ia;try{return ia=this,t()}finally{ia=n}}}on(){ia=this}off(){ia=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function hP(e){return new hQ(e)}function vP(){return ia}function gP(e,t=!1){ia&&ia.cleanups.push(e)}let ir;const g9=new WeakSet;class vQ{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ia&&ia.active&&ia.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,g9.has(this)&&(g9.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||mQ(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,eF(this),yQ(this);const t=ir,n=cs;ir=this,cs=!0;try{return this.fn()}finally{bQ(this),ir=t,cs=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)bP(t);this.deps=this.depsTail=void 0,eF(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?g9.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Hx(this)&&this.run()}get dirty(){return Hx(this)}}let gQ=0,V2,j2;function mQ(e,t=!1){if(e.flags|=8,t){e.next=j2,j2=e;return}e.next=V2,V2=e}function mP(){gQ++}function yP(){if(--gQ>0)return;if(j2){let t=j2;for(j2=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;V2;){let t=V2;for(V2=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function yQ(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function bQ(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),bP(r),d0e(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Hx(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(_Q(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function _Q(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===P1))return;e.globalVersion=P1;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Hx(e)){e.flags&=-3;return}const n=ir,r=cs;ir=e,cs=!0;try{yQ(e);const o=e.fn(e._value);(t.version===0||Ea(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ir=n,cs=r,bQ(e),e.flags&=-3}}function bP(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 a=n.computed.deps;a;a=a.nextDep)bP(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function d0e(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let cs=!0;const wQ=[];function cd(){wQ.push(cs),cs=!1}function dd(){const e=wQ.pop();cs=e===void 0?!0:e}function eF(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ir;ir=void 0;try{t()}finally{ir=n}}}let P1=0,f0e=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub
* @vue/runtime-core v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function ay(e,t,n,r){try{return r?e(...r):e()}catch(o){cw(o,t,n)}}function bs(e,t,n,r){if(ct(e)){const o=ay(e,t,n,r);return o&&D1(o)&&o.catch(a=>{cw(a,t,n)}),o}if(We(e)){const o=[];for(let a=0;a<e.length;a++)o.push(bs(e[a],t,n,r));return o}}function cw(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Ln;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}s=s.parent}if(a){cd(),ay(a,null,10,[e,l,u]),dd();return}}L0e(e,n,o,r,i)}function L0e(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const sa=[];let Is=-1;const e0=[];let rc=null,Dh=0;const BQ=Promise.resolve();let m3=null;function rt(e){const t=m3||BQ;return e?t.then(this?e.bind(this):e):t}function z0e(e){let t=Is+1,n=sa.length;for(;t<n;){const r=t+n>>>1,o=sa[r],a=B1(o);a<e||a===e&&o.flags&2?t=r+1:n=r}return t}function EP(e){if(!(e.flags&1)){const t=B1(e),n=sa[sa.length-1];!n||!(e.flags&2)&&t>=B1(n)?sa.push(e):sa.splice(z0e(t),0,e),e.flags|=1,$Q()}}function $Q(){m3||(m3=BQ.then(NQ))}function V0e(e){We(e)?e0.push(...e):rc&&e.id===-1?rc.splice(Dh+1,0,e):e.flags&1||(e0.push(e),e.flags|=1),$Q()}function nF(e,t,n=Is+1){for(;n<sa.length;n++){const r=sa[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;sa.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function RQ(e){if(e0.length){const t=[...new Set(e0)].sort((n,r)=>B1(n)-B1(r));if(e0.length=0,rc){rc.push(...t);return}for(rc=t,Dh=0;Dh<rc.length;Dh++){const n=rc[Dh];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}rc=null,Dh=0}}const B1=e=>e.id==null?e.flags&2?-1:1/0:e.id;function NQ(e){try{for(Is=0;Is<sa.length;Is++){const t=sa[Is];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ay(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Is<sa.length;Is++){const t=sa[Is];t&&(t.flags&=-2)}Is=-1,sa.length=0,RQ(),m3=null,(sa.length||e0.length)&&NQ()}}let lo=null,IQ=null;function y3(e){const t=lo;return lo=e,IQ=e&&e.type.__scopeId||null,t}function se(e,t=lo,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&hF(-1);const a=y3(t);let i;try{i=e(...o)}finally{y3(a),r._d&&hF(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function wt(e,t){if(lo===null)return e;const n=mw(lo),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[a,i,s,l=Ln]=t[o];a&&(ct(a)&&(a={mounted:a,updated:a}),a.deep&&Vl(i),r.push({dir:a,instance:n,value:i,oldValue:void 0,arg:s,modifiers:l}))}return e}function Ed(e,t,n,r){const o=e.dirs,a=t&&t.dirs;for(let i=0;i<o.length;i++){const s=o[i];a&&(s.oldValue=a[i].value);let l=s.dir[r];l&&(cd(),bs(l,n,8,[e.el,s,e,t]),dd())}}const FQ=Symbol("_vte"),LQ=e=>e.__isTeleport,H2=e=>e&&(e.disabled||e.disabled===""),rF=e=>e&&(e.defer||e.defer===""),oF=e=>typeof SVGElement<"u"&&e instanceof SVGElement,aF=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,qx=(e,t)=>{const n=e&&e.to;return vt(n)?t?t(n):null:n},zQ={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,a,i,s,l,u){const{mc:c,pc:d,pbc:f,o:{insert:p,querySelector:g,createText:v,createComment:m}}=u,b=H2(t.props);let{shapeFlag:y,children:_,dynamicChildren:w}=t;if(e==null){const C=t.el=v(""),S=t.anchor=v("");p(C,n,r),p(S,n,r);const x=(A,P)=>{y&16&&(o&&o.isCE&&(o.ce._teleportTarget=A),c(_,A,P,o,a,i,s,l))},k=()=>{const A=t.target=qx(t.props,g),P=VQ(A,t,v,p);A&&(i!=="svg"&&oF(A)?i="svg":i!=="mathml"&&aF(A)&&(i="mathml"),b||(x(A,P),tb(t,!1)))};b&&(x(n,S),tb(t,!0)),rF(t.props)?oo(()=>{k(),t.el.__isMounted=!0},a):k()}else{if(rF(t.props)&&!e.el.__isMounted){oo(()=>{zQ.process(e,t,n,r,o,a,i,s,l,u),delete e.el.__isMounted},a);return}t.el=e.el,t.targetStart=e.targetStart;const C=t.anchor=e.anchor,S=t.target=e.target,x=t.targetAnchor=e.targetAnchor,k=H2(e.props),A=k?n:S,P=k?C:x;if(i==="svg"||oF(S)?i="svg":(i==="mathml"||aF(S))&&(i="mathml"),w?(f(e.dynamicChildren,w,A,o,a,i,s),TP(e,t,!0)):l||d(e,t,A,P,o,a,i,s,!1),b)k?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):A4(t,n,C,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const M=t.target=qx(t.props,g);M&
* @vue/runtime-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let ek;const mF=typeof window<"u"&&window.trustedTypes;if(mF)try{ek=mF.createPolicy("vue",{createHTML:e=>e})}catch{}const wee=ek?e=>ek.createHTML(e):e=>e,Vve="http://www.w3.org/2000/svg",jve="http://www.w3.org/1998/Math/MathML",Nl=typeof document<"u"?document:null,yF=Nl&&Nl.createElement("template"),Hve={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=t==="svg"?Nl.createElementNS(Vve,e):t==="mathml"?Nl.createElementNS(jve,e):n?Nl.createElement(e,{is:n}):Nl.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Nl.createTextNode(e),createComment:e=>Nl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,a){const i=n?n.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===a||!(o=o.nextSibling)););else{yF.innerHTML=wee(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=yF.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Eu="transition",Gv="animation",S0=Symbol("_vtc"),Cee={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},See=Zr({},HQ,Cee),Uve=e=>(e.displayName="Transition",e.props=See,e),Fr=Uve((e,{slots:t})=>nt(U0e,Eee(e),t)),kd=(e,t=[])=>{We(e)?e.forEach(n=>n(...t)):e&&e(...t)},bF=e=>e?We(e)?e.some(t=>t.length>1):e.length>1:!1;function Eee(e){const t={};for(const N in e)N in Cee||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=i,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,g=Wve(o),v=g&&g[0],m=g&&g[1],{onBeforeEnter:b,onEnter:y,onEnterCancelled:_,onLeave:w,onLeaveCancelled:C,onBeforeAppear:S=b,onAppear:x=y,onAppearCancelled:k=_}=t,A=(N,Y,W,H)=>{N._enterCancelled=H,Zu(N,Y?c:s),Zu(N,Y?u:i),W&&W()},P=(N,Y)=>{N._isLeaving=!1,Zu(N,d),Zu(N,p),Zu(N,f),Y&&Y()},M=N=>(Y,W)=>{const H=N?x:y,I=()=>A(Y,N,W);kd(H,[Y,I]),_F(()=>{Zu(Y,N?l:a),Rs(Y,N?c:s),bF(H)||wF(Y,r,v,I)})};return Zr(t,{onBeforeEnter(N){kd(b,[N]),Rs(N,a),Rs(N,i)},onBeforeAppear(N){kd(S,[N]),Rs(N,l),Rs(N,u)},onEnter:M(!1),onAppear:M(!0),onLeave(N,Y){N._isLeaving=!0;const W=()=>P(N,Y);Rs(N,d),N._enterCancelled?(Rs(N,f),tk()):(tk(),Rs(N,f)),_F(()=>{N._isLeaving&&(Zu(N,d),Rs(N,p),bF(w)||wF(N,r,m,W))}),kd(w,[N,W])},onEnterCancelled(N){A(N,!1,void 0,!0),kd(_,[N])},onAppearCancelled(N){A(N,!0,void 0,!0),kd(k,[N])},onLeaveCancelled(N){P(N),kd(C,[N])}})}function Wve(e){if(e==null)return null;if(Mt(e))return[S9(e.enter),S9(e.leave)];{const t=S9(e);return[t,t]}}function S9(e){return r0e(e)}function Rs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[S0]||(e[S0]=new Set)).add(t)}function Zu(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[S0];n&&(n.delete(t),n.size||(e[S0]=void 0))}function _F(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Kve=0;function wF(e,t,n,r){const o=e._endId=++Kve,a=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:i,timeout:s,propCount:l}=xee(e,t);if(!i)return r();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,f),a()},f=p=>{p.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},s+1),e.addEventListener(u,f)}function xee(e,t){const n=window.getComputedStyle(e),r=g=>(n[g]||"").split(", "),o=r(`${Eu}Delay`),a=r(`${Eu}Duration`),i=CF(o,a),s=r(`${Gv}Del
* pinia v2.3.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/let $ee;const yw=e=>$ee=e,Ree=Symbol();function nk(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var K2;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(K2||(K2={}));function _ge(){const e=hP(!0),t=e.run(()=>j({}));let n=[],r=[];const o=xc({install(a){yw(o),o._a=a,a.provide(Ree,o),a.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Nee=()=>{};function NF(e,t,n,r=Nee){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&vP()&&gP(o),o}function Kp(e,...t){e.slice().forEach(n=>{n(...t)})}const wge=e=>e(),IF=Symbol(),k9=Symbol();function rk(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];nk(o)&&nk(r)&&e.hasOwnProperty(n)&&!hn(r)&&!Ec(r)?e[n]=rk(o,r):e[n]=r}return e}const Cge=Symbol();function Sge(e){return!nk(e)||!e.hasOwnProperty(Cge)}const{assign:Qu}=Object;function Ege(e){return!!(hn(e)&&e.effect)}function xge(e,t,n,r){const{state:o,actions:a,getters:i}=t,s=n.state.value[e];let l;function u(){s||(n.state.value[e]=o?o():{});const c=po(n.state.value[e]);return Qu(c,a,Object.keys(i||{}).reduce((d,f)=>(d[f]=xc(O(()=>{yw(n);const p=n._s.get(e);return i[f].call(p,p)})),d),{}))}return l=Iee(e,u,t,n,r,!0),l}function Iee(e,t,n={},r,o,a){let i;const s=Qu({actions:{}},n),l={deep:!0};let u,c,d=[],f=[],p;const g=r.state.value[e];!a&&!g&&(r.state.value[e]={}),j({});let v;function m(k){let A;u=c=!1,typeof k=="function"?(k(r.state.value[e]),A={type:K2.patchFunction,storeId:e,events:p}):(rk(r.state.value[e],k),A={type:K2.patchObject,payload:k,storeId:e,events:p});const P=v=Symbol();rt().then(()=>{v===P&&(u=!0)}),c=!0,Kp(d,A,r.state.value[e])}const b=a?function(){const{state:A}=n,P=A?A():{};this.$patch(M=>{Qu(M,P)})}:Nee;function y(){i.stop(),d=[],f=[],r._s.delete(e)}const _=(k,A="")=>{if(IF in k)return k[k9]=A,k;const P=function(){yw(r);const M=Array.from(arguments),N=[],Y=[];function W(B){N.push(B)}function H(B){Y.push(B)}Kp(f,{args:M,name:P[k9],store:C,after:W,onError:H});let I;try{I=k.apply(this&&this.$id===e?this:C,M)}catch(B){throw Kp(Y,B),B}return I instanceof Promise?I.then(B=>(Kp(N,B),B)).catch(B=>(Kp(Y,B),Promise.reject(B))):(Kp(N,I),I)};return P[IF]=!0,P[k9]=A,P},w={_p:r,$id:e,$onAction:NF.bind(null,f),$patch:m,$reset:b,$subscribe(k,A={}){const P=NF(d,k,A.detached,()=>M()),M=i.run(()=>Te(()=>r.state.value[e],N=>{(A.flush==="sync"?c:u)&&k({storeId:e,type:K2.direct,events:p},N)},Qu({},l,A)));return P},$dispose:y},C=Jt(w);r._s.set(e,C);const x=(r._a&&r._a.runWithContext||wge)(()=>r._e.run(()=>(i=hP()).run(()=>t({action:_}))));for(const k in x){const A=x[k];if(hn(A)&&!Ege(A)||Ec(A))a||(g&&Sge(A)&&(hn(A)?A.value=g[k]:rk(A,g[k])),r.state.value[e][k]=A);else if(typeof A=="function"){const P=_(A,k);x[k]=P,s.actions[k]=A}}return Qu(C,x),Qu(fn(C),x),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:k=>{m(A=>{Qu(A,k)})}}),r._p.forEach(k=>{Qu(C,i.run(()=>k({store:C,app:r._a,pinia:r,options:s})))}),g&&a&&n.hydrate&&n.hydrate(C.$state,g),u=!0,c=!0,C}/*! #__NO_SIDE_EFFECTS__ */function sy(e,t,n){let r,o;const a=typeof t=="function";typeof e=="string"?(r=e,o=a?n:t):(o=e,r=e.id);function i(s,l){const u=uve();return s=s||(u?Ge(Ree,null):null),s&&yw(s),s=$ee,s._s.has(r)||(a?Iee(r,t,o,s):xge(r,o,s)),s._s.get(r)}return i.$id=r,i}const kge='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Age=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,FF=e=>Array.from(e.querySelectorAll(kge)).filter(t=>Oge(t)&&Age(t)),Oge=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type=
(?:
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(w){return w&&w.exact?a:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+o+t(w)+")","g")};l.v4=function(_){return _&&_.exact?i:new RegExp(""+t(_)+n+t(_),"g")},l.v6=function(_){return _&&_.exact?s:new RegExp(""+t(_)+o+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,f=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+c+"(?:localhost|"+d+"|"+f+"|"+p+g+v+")"+m+b;return N4=new RegExp("(?:^"+y+"$)","i"),N4},dz={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},O2={integer:function(t){return O2.number(t)&&parseInt(t,10)===t},float:function(t){return O2.number(t)&&!O2.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!O2.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(dz.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(TAe())},hex:function(t){return typeof t=="string"&&!!t.match(dz.hex)}},DAe=function(t,n,r,o,a){if(t.required&&n===void 0){Wne(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?O2[s](n)||o.push(ei(a.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(ei(a.messages.types[s],t.fullField,t.type))},PAe=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,f=typeof n=="number",p=typeof n=="string",g=Array.isArray(n);if(f?d="number":p?d="string":g&&(d="array"),!d)return!1;g&&(c=n.length),p&&(c=n.replace(u,"_").length),i?c!==t.len&&o.push(ei(a.messages[d].len,t.fullField,t.len)):s&&!l&&c<t.min?o.push(ei(a.messages[d].min,t.fullField,t.min)):l&&!s&&c>t.max?o.push(ei(a.messages[d].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&o.push(ei(a.messages[d].range,t.fullField,t.min,t.max))},qp="enum",MAe=function(t,n,r,o,a){t[qp]=Array.isArray(t[qp])?t[qp]:[],t[qp].indexOf(n)===-1&&o.push(ei(a.messages[qp],t.fullField,t[qp].join(", ")))},BAe=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(ei(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(ei(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Cn={required:Wne,whitespace:OAe,type:DAe,range:PAe,enum:MAe,pattern:BAe},$Ae=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(vo(n,"string")&&!t.required)return r();Cn.required(t,n,o,i,a,"string"),vo(n,"string")||(Cn.type(t,n,o,i,a),Cn.range(t,n,o,i,a),Cn.pattern(t,n,o,i,a),t.whitespace===!0&&Cn.whitespace(t,n,o,i,a))}r(i)},RAe=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(vo(n)&&!t.required)return r();Cn.required(t,n,o,i,a),n!==void 0&&Cn.type(t,n,o,i,a)}r(i)},NAe=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),vo(n)&&!t.required)return r();Cn.required(t,n,o,i,a),n!==void 0&&(Cn.type(t,n,o,i,a),Cn.range(t,n,o,i,a))}r(i)},IAe=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(
height:0 !important;
visibility:hidden !important;
${Xee()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,oOe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function aOe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:oOe.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function pz(e,t=1,n){var r;Ji||(Ji=document.createElement("textarea"),document.body.appendChild(Ji));const{paddingSize:o,borderSize:a,boxSizing:i,contextStyle:s}=aOe(e);Ji.setAttribute("style",`${s};${rOe}`),Ji.value=e.value||e.placeholder||"";let l=Ji.scrollHeight;const u={};i==="border-box"?l=l+a:i==="content-box"&&(l=l-o),Ji.value="";const c=Ji.scrollHeight-o;if(ut(t)){let d=c*t;i==="border-box"&&(d=d+o+a),l=Math.max(d,l),u.minHeight=`${d}px`}if(ut(n)){let d=c*n;i==="border-box"&&(d=d+o+a),l=Math.min(d,l)}return u.height=`${l}px`,(r=Ji.parentNode)==null||r.removeChild(Ji),Ji=void 0,u}const iOe=Re({id:{type:String,default:void 0},size:ho,disabled:Boolean,modelValue:{type:ue([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ue([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:bn},prefixIcon:{type:bn},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ue([Object,Array,String]),default:()=>Jn({})},autofocus:{type:Boolean,default:!1}}),sOe={[Pt]:e=>vt(e),input:e=>vt(e),change:e=>vt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},lOe=["role"],uOe=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],cOe=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],dOe=F({name:"ElInput",inheritAttrs:!1}),fOe=F({...dOe,props:iOe,emits:sOe,setup(e,{expose:t,emit:n}){const r=e,o=xp(),a=mo(),i=O(()=>{const Se={};return r.containerRole==="combobox"&&(Se["aria-haspopup"]=o["aria-haspopup"],Se["aria-owns"]=o["aria-owns"],Se["aria-expanded"]=o["aria-expanded"]),Se}),s=O(()=>[r.type==="textarea"?m.b():v.b(),v.m(p.value),v.is("disabled",g.value),v.is("exceed",X.value),{[v.b("group")]:a.prepend||a.append,[v.bm("group","append")]:a.append,[v.bm("group","prepend")]:a.prepend,[v.m("prefix")]:a.prefix||r.prefixIcon,[v.m("suffix")]:a.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:U.value&&L.value,[v.b("hidden")]:r.type==="hidden"},o.class]),l=O(()=>[v.e("wrapper"),v.is("focus",P.value)]),u=uM({excludeKeys:O(()=>Object.keys(i.value))}),{form:c,formItem:d}=ga(),{inputId:f}=_l(r,{formItemContext:d}),p=zr(),g=Va(),v=Me("input"),m=Me("textarea"),b=$n(),y=$n(),_=j(!1),w=j(!1),C=j(!1),S=j(),x=$n(r.inputStyle),k=O(()=>b.value||y.value),{wrapperRef:A,isFocused:P,handleFocus:M,handleBlur:N}=Iw(k,{afterBlur(){var Se;r.validateEvent&&((Se=d==null?void 0:d.validate)==null||Se.call(d,"blur").catch(qe=>void 0))}}),Y=O(()=>{var Se;return(Se=c==null?void 0:c.statusIcon)!=null?Se:!1}),W=O(
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const GDe=function(e,t){if(e&&e.addEventListener){const n=function(r){const o=qDe(r);t&&Reflect.apply(t,this,[r,o])};e.addEventListener("wheel",n,{passive:!0})}},YDe={beforeMount(e,t){GDe(e,t.value)}},XDe=Re({role:{type:String,required:!0},spinnerDate:{type:ue(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:ue(String),default:""},...mre}),JDe=["onClick"],ZDe=["onMouseenter"],QDe=F({__name:"basic-time-spinner",props:XDe,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=Me("time"),{getHoursList:o,getMinutesList:a,getSecondsList:i}=wre(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=j(),u=j(),c=j(),d=j(),f={hours:u,minutes:c,seconds:d},p=O(()=>n.showSeconds?Az:Az.slice(0,2)),g=O(()=>{const{spinnerDate:$}=n,U=$.hour(),L=$.minute(),z=$.second();return{hours:U,minutes:L,seconds:z}}),v=O(()=>{const{hours:$,minutes:U}=h(g);return{hours:o(n.role),minutes:a($,n.role),seconds:i($,U,n.role)}}),m=O(()=>{const{hours:$,minutes:U,seconds:L}=h(g);return{hours:z9($,23),minutes:z9(U,59),seconds:z9(L,59)}}),b=Fa($=>{s=!1,w($)},200),y=$=>{if(!!!n.amPmMode)return"";const L=n.amPmMode==="A";let z=$<12?" am":" pm";return L&&(z=z.toUpperCase()),z},_=$=>{let U;switch($){case"hours":U=[0,2];break;case"minutes":U=[3,5];break;case"seconds":U=[6,8];break}const[L,z]=U;t("select-range",L,z),l.value=$},w=$=>{x($,h(g)[$])},C=()=>{w("hours"),w("minutes"),w("seconds")},S=$=>$.querySelector(`.${r.namespace.value}-scrollbar__wrap`),x=($,U)=>{if(n.arrowControl)return;const L=h(f[$]);L&&L.$el&&(S(L.$el).scrollTop=Math.max(0,U*k($)))},k=$=>{const U=h(f[$]),L=U==null?void 0:U.$el.querySelector("li");return L&&Number.parseFloat(dc(L,"height"))||0},A=()=>{M(1)},P=()=>{M(-1)},M=$=>{l.value||_("hours");const U=l.value,L=h(g)[U],z=l.value==="hours"?24:60,G=N(U,L,$,z);Y(U,G),x(U,G),rt(()=>_(U))},N=($,U,L,z)=>{let G=(U+L+z)%z;const X=h(v)[$];for(;X[G]&&G!==U;)G=(G+L+z)%z;return G},Y=($,U)=>{if(h(v)[$][U])return;const{hours:G,minutes:X,seconds:re}=h(g);let q;switch($){case"hours":q=n.spinnerDate.hour(U).minute(X).second(re);break;case"minutes":q=n.spinnerDate.hour(G).minute(U).second(re);break;case"seconds":q=n.spinnerDate.hour(G).minute(X).second(U);break}t("change",q)},W=($,{value:U,disabled:L})=>{L||(Y($,U),_($),x($,U))},H=$=>{s=!0,b($);const U=Math.min(Math.round((S(h(f[$]).$el).scrollTop-(I($)*.5-10)/k($)+3)/k($)),$==="hours"?23:59);Y($,U)},I=$=>h(f[$]).$el.offsetHeight,B=()=>{const $=U=>{const L=h(f[U]);L&&L.$el&&(S(L.$el).onscroll=()=>{H(U)})};$("hours"),$("minutes"),$("seconds")};Ct(()=>{rt(()=>{!n.arrowControl&&B(),C(),n.role==="start"&&_("hours")})});const V=($,U)=>{f[U].value=$};return t("set-option",[`${n.role}_scrollDown`,M]),t("set-option",[`${n.role}_emitSelectRange`,_]),Te(()=>n.spinnerDate,()=>{s||C()}),($,U)=>(E(),D("div",{class:R([h(r).b("spinner"),{"has-seconds":$.showSeconds}])},[$.arrowControl?de("v-if",!0):(E(!0),D(et,{key:0},Nt(h(p),L=>(E(),pe(h(gu),{key:L,ref_for:!0,ref:z=>V(z,L),class:R(h(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":h(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:z=>_(L),onMousemove:z=>w(L)},{default:se(()=>[(E(!0),D(et,null,Nt(h(v)[L],(z,G)=>(E(),D("li",{key:G,class:R([h(r).be("spinner","item"),h(r).is("active",G===h(g)[L]),h(r).is("disabled",z)]),onClick:X=>W(L,{value:G,disabled:z})},[L==="hours"?(E(),D(et,{key:0},[It($e(("0"+($.amPmMode?G%12||12:G)).slice(-2))+$e(y(G)),1)],64)):(E(),D(et,{key:1},[It($e(("0"+G).slice(-2)),1)],64))],10,JDe))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),$.arrowControl?(E(!0),D(et,{key:1},Nt(h(p),L=>(E(),D("div",{key:L,class:R([h(r).be("spinner","wrapper"),h(r).is("arrow")]),onMouseenter:z=>_(L)},[wt((E(),pe(h(Ze),{class:R(["arrow-up",h(r).be("spinner","arrow")])},{default:se(()=>[te(h(Ow))]),_:1},8,["class"])),[[h(F3),P]]),wt((E(),pe(h(Ze),{class:R(["arrow-down",h(r).be("spinner","arrow")])},{default:se(()=>[te(h(ml))]),_:1},8,["class"])),[[h(F3),A]]),T("ul",{class:R(h(r).be("spinner","list"))},[(E(!0),D(et,null,Nt(h(m)[L
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),FMe]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(E(),pe(u,{key:2,class:R(e.ns.e("prefix"))},{default:se(()=>[te(l)]),_:1},8,["class"])):de("v-if",!0),de(" content "),te(c),de(" postfix "),e.isLeaf?de("v-if",!0):(E(),D(et,{key:3},[e.node.loading?(E(),pe(u,{key:0,class:R([e.ns.is("loading"),e.ns.e("postfix")])},{default:se(()=>[te(d)]),_:1},8,["class"])):(E(),pe(u,{key:1,class:R(["arrow-right",e.ns.e("postfix")])},{default:se(()=>[te(f)]),_:1},8,["class"]))],64))],42,IMe)}var zMe=Ne(NMe,[["render",LMe],["__file","node.vue"]]);const VMe=F({name:"ElCascaderMenu",components:{Loading:vu,ElIcon:Ze,ElScrollbar:gu,ElCascaderNode:zMe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Et(),n=Me("cascader-menu"),{t:r}=Ut(),o=Yo();let a=null,i=null;const s=Ge(FM),l=j(null),u=O(()=>!e.nodes.length),c=O(()=>!s.initialLoaded),d=O(()=>`${o.value}-${e.index}`),f=m=>{a=m.target},p=m=>{if(!(!s.isHoverMenu||!a||!l.value))if(a.contains(m.target)){g();const b=t.vnode.el,{left:y}=b.getBoundingClientRect(),{offsetWidth:_,offsetHeight:w}=b,C=m.clientX-y,S=a.offsetTop,x=S+a.offsetHeight;l.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${C} ${S} L${_} 0 V${S} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${C} ${x} L${_} ${w} V${x} Z" />
`}else i||(i=window.setTimeout(v,s.config.hoverThreshold))},g=()=>{i&&(clearTimeout(i),i=null)},v=()=>{l.value&&(l.value.innerHTML="",g())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:d,t:r,handleExpand:f,handleMouseMove:p,clearHoverZone:v}}});function jMe(e,t,n,r,o,a){const i=Ke("el-cascader-node"),s=Ke("loading"),l=Ke("el-icon"),u=Ke("el-scrollbar");return E(),pe(u,{key:e.menuId,tag:"ul",role:"menu",class:R(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:se(()=>{var c;return[(E(!0),D(et,null,Nt(e.nodes,d=>(E(),pe(i,{key:d.uid,node:d,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(E(),D("div",{key:0,class:R(e.ns.e("empty-text"))},[te(l,{size:"14",class:R(e.ns.is("loading"))},{default:se(()=>[te(s)]),_:1},8,["class"]),It(" "+$e(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(E(),D("div",{key:1,class:R(e.ns.e("empty-text"))},$e(e.t("el.cascader.noData")),3)):(c=e.panel)!=null&&c.isHoverMenu?(E(),D("svg",{key:2,ref:"hoverZone",class:R(e.ns.e("hover-zone"))},null,2)):de("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var HMe=Ne(VMe,[["render",jMe],["__file","menu.vue"]]);let UMe=0;const WMe=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let Lk=class zk{constructor(t,n,r,o=!1){this.data=t,this.config=n,this.parent=r,this.root=o,this.uid=UMe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:a,label:i,children:s}=n,l=t[s],u=WMe(this);this.level=o?0:r?r.level+1:1,this.value=t[a],this.label=t[i],this.pathNodes=u,this.pathValues=u.map(c=>c.value),this.pathLabels=u.map(c=>c.label),this.childrenData=l,this.children=(l||[]).map(c=>new zk(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!Si(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:o,checkStrictly:a}=r;return(ct(o)?o(t,this):!!t[o])||!a&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:o}=this,{lazy:a,leaf:i}=n,s=ct(i)?i(t,this):t[i];return xr(s)?a&&!o?!1:!(Array.isArray(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,o=new zk(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(o),o}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${Us(t)}`;this.children.forEach(o=>{o&&(o.broadcast(t,...n),o[r]&&o[r](...n))})}emit(t,...n){const{parent:r}=this,o=`onChild${Us(t)}`;r&&(r[o]&&r[o](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),r=n.length?n.every(o=>o.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((o,a)=>{const i=a.checked?1:a.indeterminate?.5:0;return o+i},0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const Vk=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(Vk(r.children,t))),n),[]);class Vz{constructor(t,n){this.config=n;const r=(t||[]).map(o=>new Lk(o,this.config));this.nodes=r,this.allNodes=Vk(r,!1),this.leafNodes=Vk(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new Lk(t,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(o=>Ko(o.value,t)||Ko(o.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:o})=>Ko(t.value,r)&&t.level===o)||null
M 50 50
m 0 ${w?"":"-"}${_}
a ${_} ${_} 0 1 1 0 ${w?"-":""}${_*2}
a ${_} ${_} 0 1 1 0 ${w?"":"-"}${_*2}
`}),l=O(()=>2*Math.PI*i.value),u=O(()=>t.type==="dashboard"?.75:1),c=O(()=>`${-1*l.value*(1-u.value)/2}px`),d=O(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),f=O(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=O(()=>{let _;return t.color?_=y(t.percentage):_=n[t.status]||n.default,_}),g=O(()=>t.status==="warning"?fy:t.type==="line"?t.status==="success"?Tw:hu:t.status==="success"?mv:Li),v=O(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),m=O(()=>t.format(t.percentage));function b(_){const w=100/_.length;return _.map((S,x)=>vt(S)?{color:S,percentage:(x+1)*w}:S).sort((S,x)=>S.percentage-x.percentage)}const y=_=>{var w;const{color:C}=t;if(ct(C))return C(_);if(vt(C))return C;{const S=b(C);for(const x of S)if(x.percentage>_)return x.color;return(w=S[S.length-1])==null?void 0:w.color}};return(_,w)=>(E(),D("div",{class:R([h(r).b(),h(r).m(_.type),h(r).is(_.status),{[h(r).m("without-text")]:!_.showText,[h(r).m("text-inside")]:_.textInside}]),role:"progressbar","aria-valuenow":_.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[_.type==="line"?(E(),D("div",{key:0,class:R(h(r).b("bar"))},[T("div",{class:R(h(r).be("bar","outer")),style:Qe({height:`${_.strokeWidth}px`})},[T("div",{class:R([h(r).be("bar","inner"),{[h(r).bem("bar","inner","indeterminate")]:_.indeterminate},{[h(r).bem("bar","inner","striped")]:_.striped},{[h(r).bem("bar","inner","striped-flow")]:_.stripedFlow}]),style:Qe(h(o))},[(_.showText||_.$slots.default)&&_.textInside?(E(),D("div",{key:0,class:R(h(r).be("bar","innerText"))},[_e(_.$slots,"default",{percentage:_.percentage},()=>[T("span",null,$e(h(m)),1)])],2)):de("v-if",!0)],6)],6)],2)):(E(),D("div",{key:1,class:R(h(r).b("circle")),style:Qe({height:`${_.width}px`,width:`${_.width}px`})},[(E(),D("svg",Gze,[T("path",{class:R(h(r).be("circle","track")),d:h(s),stroke:`var(${h(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":_.strokeLinecap,"stroke-width":h(a),fill:"none",style:Qe(h(d))},null,14,Yze),T("path",{class:R(h(r).be("circle","path")),d:h(s),stroke:h(p),fill:"none",opacity:_.percentage?1:0,"stroke-linecap":_.strokeLinecap,"stroke-width":h(a),style:Qe(h(f))},null,14,Xze)]))],6)),(_.showText||_.$slots.default)&&!_.textInside?(E(),D("div",{key:2,class:R(h(r).e("text")),style:Qe({fontSize:`${h(v)}px`})},[_e(_.$slots,"default",{percentage:_.percentage},()=>[_.status?(E(),pe(h(Ze),{key:1},{default:se(()=>[(E(),pe(Ot(h(g))))]),_:1})):(E(),D("span",Jze,$e(h(m)),1))])],6)):de("v-if",!0)],10,qze))}});var eVe=Ne(Qze,[["__file","progress.vue"]]);const Voe=kt(eVe),tVe=Re({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:ue([Array,Object]),default:()=>Jn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ue([Array,Object]),default:()=>[A2,A2,A2]},voidIcon:{type:bn,default:()=>one},disabledVoidIcon:{type:bn,default:()=>A2},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:ue(Array),default:()=>Jn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:ho,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),nVe={[Un]:e=>ut(e),[Pt]:e=>ut(e)},rVe=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],oVe=["onMousemove","onClick"],aVe=F({name:"ElRate"}),iVe=F({...aVe,props:tVe,emits:nVe,setup(e,{expose:t,emit:n}){const r=e;function o(I,B){const V=L=>Mt(L),$=Object.keys(B).map(L=>+L).filter(L=>{const z=B[L];return(V(z)?z.excluded:!1)?I<L:I<=L}).sort((L,z)=>L-z),U=B[$[0]];return V(U)&&U.value||U}const a=Ge(Dp,void 0),i=Ge(ul,void 0),s=zr(),l=Me("rate"),{inputId:u,isLabeledByFormItem:c}=_l(r,{formItemContext:i}),d=j(r.modelValue),f=j(-1),p=j(!0),g=O(()=>[l.b()
* vue-router v4.5.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/const Rh=typeof document<"u";function aie(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function XYe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&aie(e.default)}const jn=Object.assign;function nC(e,t){const n={};for(const r in t){const o=t[r];n[r]=Ss(o)?o.map(e):e(o)}return n}const t1=()=>{},Ss=Array.isArray,iie=/#/g,JYe=/&/g,ZYe=/\//g,QYe=/=/g,eXe=/\?/g,sie=/\+/g,tXe=/%5B/g,nXe=/%5D/g,lie=/%5E/g,rXe=/%60/g,uie=/%7B/g,oXe=/%7C/g,cie=/%7D/g,aXe=/%20/g;function yB(e){return encodeURI(""+e).replace(oXe,"|").replace(tXe,"[").replace(nXe,"]")}function iXe(e){return yB(e).replace(uie,"{").replace(cie,"}").replace(lie,"^")}function gA(e){return yB(e).replace(sie,"%2B").replace(aXe,"+").replace(iie,"%23").replace(JYe,"%26").replace(rXe,"`").replace(uie,"{").replace(cie,"}").replace(lie,"^")}function sXe(e){return gA(e).replace(QYe,"%3D")}function lXe(e){return yB(e).replace(iie,"%23").replace(eXe,"%3F")}function uXe(e){return e==null?"":lXe(e).replace(ZYe,"%2F")}function rm(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const cXe=/\/$/,dXe=e=>e.replace(cXe,"");function rC(e,t,n="/"){let r,o={},a="",i="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),o=e(a)),s>-1&&(r=r||t.slice(0,s),i=t.slice(s,t.length)),r=vXe(r??t,n),{fullPath:r+(a&&"?")+a+i,path:r,query:o,hash:rm(i)}}function fXe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function MV(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function pXe(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&V0(t.matched[r],n.matched[o])&&die(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function V0(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function die(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!hXe(e[n],t[n]))return!1;return!0}function hXe(e,t){return Ss(e)?BV(e,t):Ss(t)?BV(t,e):e===t}function BV(e,t){return Ss(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function vXe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,i,s;for(i=0;i<r.length;i++)if(s=r[i],s!==".")if(s==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(i).join("/")}const ku={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var om;(function(e){e.pop="pop",e.push="push"})(om||(om={}));var n1;(function(e){e.back="back",e.forward="forward",e.unknown=""})(n1||(n1={}));function gXe(e){if(!e)if(Rh){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),dXe(e)}const mXe=/^[^#]+#/;function yXe(e,t){return e.replace(mXe,"#")+t}function bXe(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Xw=()=>({left:window.scrollX,top:window.scrollY});function _Xe(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=bXe(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $V(e,t){return(history.state?history.state.position-t:-1)+e}const mA=new Map;function wXe(e,t){mA.set(e,t)}function CXe(e){const t=mA.get(e);return mA.delete(e),t}let SXe=()=>location.protocol+"//"+location.host;function fie(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let s=o.includes(e.slice(a))?e.slice(a).length:1,l=o.slice(s);return l[0]!=="/"&&(l="/"+l),MV(l,"")}return MV(n,e)+r+o}function EXe(e,t,n,r){let o=[],a=[],i=null;const s=({state:f})=>{const p=fie(e,location),g=n.value,v=t.value;let m=0;if
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&lZe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},tj=Symbol("internals");function og(e){return e&&String(e).trim().toLowerCase()}function Mb(e){return e===!1||e==null?e:Ue.isArray(e)?e.map(Mb):String(e)}function cZe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const dZe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function iC(e,t,n,r,o){if(Ue.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Ue.isString(t)){if(Ue.isString(r))return t.indexOf(r)!==-1;if(Ue.isRegExp(r))return r.test(t)}}function fZe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function pZe(e,t){const n=Ue.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,i){return this[r].call(this,t,o,a,i)},configurable:!0})})}class Ma{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(s,l,u){const c=og(l);if(!c)throw new Error("header name must be a non-empty string");const d=Ue.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=Mb(s))}const i=(s,l)=>Ue.forEach(s,(u,c)=>a(u,c,l));if(Ue.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(Ue.isString(t)&&(t=t.trim())&&!dZe(t))i(uZe(t),n);else if(Ue.isHeaders(t))for(const[s,l]of t.entries())a(l,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=og(t),t){const r=Ue.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return cZe(o);if(Ue.isFunction(n))return n.call(this,o,r);if(Ue.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=og(t),t){const r=Ue.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||iC(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(i){if(i=og(i),i){const s=Ue.findKey(r,i);s&&(!n||iC(r,r[s],s,n))&&(delete r[s],o=!0)}}return Ue.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||iC(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Ue.forEach(this,(o,a)=>{const i=Ue.findKey(r,a);if(i){n[i]=Mb(o),delete n[a];return}const s=t?fZe(a):String(a).trim();s!==a&&delete n[a],n[s]=Mb(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ue.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Ue.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[tj]=this[tj]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=og(i);r[s]||(pZe(o,i),r[s]=!0)}return Ue.isArray(t)?t.forEach(a):a(t),this}}Ma.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ue.reduceDescriptors(Ma.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ue.freezeMethods(Ma);function sC(e,t){const n=this||Ey,r=t||n,o=Ma.from(r.headers);let a=r.data;return Ue.forEach(e,function(s){a=s.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Bie(e){return!!(e&&e.__CANCEL__)}function Sv(e,t,n){rn.call(this,e??"canceled",rn.ERR_CANCELED,t,n),this.name="CanceledError"}Ue.inherits(Sv,rn,{__CANCEL__:!0});function $ie(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new rn("Request failed with status code "+n.status,[rn.ERR_BAD_REQUEST,rn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function hZe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function vZe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[a];i||(i=u),n[o]=l,r[o]=u;let d=a,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const p=c&&u-c;return p?Math.round(f*1e3/p):void 0}}function gZe(e,t){let n=0,r=1e3/t,o,a;const i=(u,c=Date.now())=>{n=c,o=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?i(u,c):(o=u,a||(a=setTimeout(()=>{a=null,i(o)},r-d)))},()=>o&&i(o)]}const J3=(e,t,n=3)=>{let r=0;const o=vZe(50,250);return gZe(a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,l=i-r,u=o(l),c=i<=s;r=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-i)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},nj=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rj=e=>(...t)=>Ue.asap(()=>e(...t)),mZe=Uo.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Uo.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Uo.origin),Uo.navigator&&/(msie|trident)/i.test(Uo.navigator.userAgent)):()=>!0,yZe=Uo.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];Ue.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Ue.isString(r)&&i.push("path="+r),Ue.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bZe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _Ze(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Rie(e,t){return e&&!bZe(t)?_Ze(e,t):t}const oj=e=>e instanceof Ma?{...e}:e;function sp(e,t){t=t||{};const n={};function r(u,c,d,f){return Ue.isPlainObject(u)&&Ue.isPlainObject(c)?Ue.merge.call({caseless:f},u,c):Ue.isPlainObject(c)?Ue.merge({},c):Ue.isArray(c)?c.slice():c}function o(u,c,d,f){if(Ue.isUndefined(c)){if(!Ue.isUndefined(u))return r(void 0,u,d,f)}else return r(u,c,d,f)}function a(u,c){if(!Ue.isUndefined(c))return r(void 0,c)}function i(u,c){if(Ue.isUndefined(c)){if(!Ue.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncodin
`+a.map(sj).join(`
`):" "+sj(a[0]):"as no adapter specified";throw new rn("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:xA};function lC(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Sv(null,e)}function lj(e){return lC(e),e.headers=Ma.from(e.headers),e.data=sC.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lie.getAdapter(e.adapter||Ey.adapter)(e).then(function(r){return lC(e),r.data=sC.call(e,e.transformResponse,r),r.headers=Ma.from(r.headers),r},function(r){return Bie(r)||(lC(e),r&&r.response&&(r.response.data=sC.call(e,e.transformResponse,r.response),r.response.headers=Ma.from(r.response.headers))),Promise.reject(r)})}const zie="1.7.9",r5={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{r5[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const uj={};r5.transitional=function(t,n,r){function o(a,i){return"[Axios v"+zie+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,s)=>{if(t===!1)throw new rn(o(i," has been removed"+(n?" in "+n:"")),rn.ERR_DEPRECATED);return n&&!uj[i]&&(uj[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,s):!0}};r5.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function BZe(e,t,n){if(typeof e!="object")throw new rn("options must be an object",rn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const s=e[a],l=s===void 0||i(s,a,e);if(l!==!0)throw new rn("option "+a+" must be "+l,rn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rn("Unknown option "+a,rn.ERR_BAD_OPTION)}}const Bb={assertOptions:BZe,validators:r5},Ms=Bb.validators;class Ef{constructor(t){this.defaults=t,this.interceptors={request:new ej,response:new ej}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=sp(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&Bb.assertOptions(r,{silentJSONParsing:Ms.transitional(Ms.boolean),forcedJSONParsing:Ms.transitional(Ms.boolean),clarifyTimeoutError:Ms.transitional(Ms.boolean)},!1),o!=null&&(Ue.isFunction(o)?n.paramsSerializer={serialize:o}:Bb.assertOptions(o,{encode:Ms.function,serialize:Ms.function},!0)),Bb.assertOptions(n,{baseUrl:Ms.spelling("baseURL"),withXsrfToken:Ms.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&Ue.merge(a.common,a[n.method]);a&&Ue.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=Ma.concat(i,a);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,d=0,f;if(!l){const g=[lj.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),f=g.length,c=Promise.resolve(n);d<f;)c=c.then(g[d++],g[d++]);return c}f=s.length;let p=n;for(d=0;d<f;){const g=s[d++],v=s[d++];try{p=g(p)}catch(m){v.call(this,m);break}}try{c=lj.call(this,p)}catch(g){return Promise.reject(g)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=sp(this.defaults,t);const n=Rie(t.baseURL,t.url);return Die(n,t.params,t.paramsSerializer)}}Ue.forEach(["delete","get","head","options"],function(t){Ef.prototype[t]=function(n,r){return this.request(sp(r||{},{method:t,url:n,data:(r||{}).data}))}});Ue.forEach(["post","put","patch"],function(t){function n(r){return function(a,i,s){return this.request(sp(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Ef.prototype[t]=n(),Ef.prototype[t+"Form"]=n(!0)});class SB{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{r.subscribe(s),a=s}).then(o);return i.cancel=function(){r.unsubscribe(a)},i},t(function(a,i,s){r.reason||(r.reason=new Sv(a,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new SB(function(o){t=o}),cancel:t}}}function $Ze(e){return function(n){return e.apply(null,n)}}function RZe(e){return Ue.isObject(e)&&e.isAxiosError===!0}const kA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:50
* @license MIT */(function(e,t){(function(n,r){e.exports=r()})(wl,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(g){var v,m;for(v in g)m=g[v],m!==void 0&&g.hasOwnProperty(v)&&(r[v]=m);return this},n.status=null,n.set=function(g){var v=n.isStarted();g=o(g,r.minimum,1),n.status=g===1?null:g;var m=n.render(!v),b=m.querySelector(r.barSelector),y=r.speed,_=r.easing;return m.offsetWidth,s(function(w){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),l(b,i(g,y,_)),g===1?(l(m,{transition:"none",opacity:1}),m.offsetWidth,setTimeout(function(){l(m,{transition:"all "+y+"ms linear",opacity:0}),setTimeout(function(){n.remove(),w()},y)},y)):setTimeout(w,y)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var g=function(){setTimeout(function(){n.status&&(n.trickle(),g())},r.trickleSpeed)};return r.trickle&&g(),this},n.done=function(g){return!g&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(g){var v=n.status;return v?(typeof g!="number"&&(g=(1-v)*o(Math.random()*v,.1,.95)),v=o(v+g,0,.994),n.set(v)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var g=0,v=0;n.promise=function(m){return!m||m.state()==="resolved"?this:(v===0&&n.start(),g++,v++,m.always(function(){v--,v===0?(g=0,n.done()):n.set((g-v)/g)}),this)}}(),n.render=function(g){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var v=document.createElement("div");v.id="nprogress",v.innerHTML=r.template;var m=v.querySelector(r.barSelector),b=g?"-100":a(n.status||0),y=document.querySelector(r.parent),_;return l(m,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),r.showSpinner||(_=v.querySelector(r.spinnerSelector),_&&p(_)),y!=document.body&&c(y,"nprogress-custom-parent"),y.appendChild(v),v},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var g=document.getElementById("nprogress");g&&p(g)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var g=document.body.style,v="WebkitTransform"in g?"Webkit":"MozTransform"in g?"Moz":"msTransform"in g?"ms":"OTransform"in g?"O":"";return v+"Perspective"in g?"translate3d":v+"Transform"in g?"translate":"margin"};function o(g,v,m){return g<v?v:g>m?m:g}function a(g){return(-1+g)*100}function i(g,v,m){var b;return r.positionUsing==="translate3d"?b={transform:"translate3d("+a(g)+"%,0,0)"}:r.positionUsing==="translate"?b={transform:"translate("+a(g)+"%,0)"}:b={"margin-left":a(g)+"%"},b.transition="all "+v+"ms "+m,b}var s=function(){var g=[];function v(){var m=g.shift();m&&m(v)}return function(m){g.push(m),g.length==1&&v()}}(),l=function(){var g=["Webkit","O","Moz","ms"],v={};function m(w){return w.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(C,S){return S.toUpperCase()})}function b(w){var C=document.body.style;if(w in C)return w;for(var S=g.length,x=w.charAt(0).toUpperCase()+w.slice(1),k;S--;)if(k=g[S]+x,k in C)return k;return w}function y(w){return w=m(w),v[w]||(v[w]=b(w))}function _(w,C,S){C=y(C),w.style[C]=S}return function(w,C){var S=arguments,x,k;if(S.length==2)for(x in C)k=C[x],k!==void 0&&C.hasOwnProperty(x)&&_(w,x,k);else _(w,S[1],S[2])}}();function u(g,v){var m=typeof g=="string"?g:f(g);return m.indexOf(" "+v+" ")>=0}function c(g,v){var m=f(g),b=m+v;u(m,v)||(g.className=b.substring(1))}function d(g,v){var m=f(g),b;u(g,v)&&(b=m.replace(" "+v+" "," "),g.className=b.substring(1,b.length-1))}function f(g){return(" "+(g.className||"")+" ").replace(/\s+/gi," ")}function p(g){g&&g.parentNode&&g.parentNode.removeChild(g)}return n})})(Gie);var Get=Gie.exports;const sc=Gi
`),t),`
`);return e},snt=function(e,t){Oi(t)&&"cause"in t&&la(e,"cause",t.cause)},Zl={},lnt=ta("iterator"),unt=Array.prototype,ase={};ase[ta("toStringTag")]="z";var NB=String(ase)==="[object z]",cnt=ta("toStringTag"),dnt=tn.Object,fnt=xf(function(){return arguments}())=="Arguments",Dy=NB?xf:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=dnt(e),cnt))=="string"?n:fnt?xf(t):(r=xf(t))=="Object"&&Ro(t.callee)?"Arguments":r},pnt=ta("iterator"),Hj=function(e){if(e!=null)return e8(e,pnt)||e8(e,"@@iterator")||Zl[Dy(e)]},hnt=tn.TypeError,Uj=function(e,t,n){var r,o;ai(e);try{if(!(r=e8(e,"return"))){if(t==="throw")throw n;return n}r=ri(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return ai(r),n},vnt=tn.TypeError,Ib=function(e,t){this.stopped=e,this.result=t},Wj=Ib.prototype,gnt=function(e,t,n){var r,o,a,i,s,l,u,c=n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),g=MB(t,c),v=function(b){return r&&Uj(r,"normal",b),new Ib(!0,b)},m=function(b){return d?(ai(b),p?g(b[0],b[1],v):g(b[0],b[1])):p?g(b,v):g(b)};if(f)r=e;else{if(!(o=Hj(e)))throw vnt(TA(e)+" is not iterable");if(function(b){return b!==void 0&&(Zl.Array===b||unt[lnt]===b)}(o)){for(a=0,i=Oy(e);i>a;a++)if((s=m(e[a]))&&im(Wj,s))return s;return new Ib(!1)}r=function(b,y){var _=arguments.length<2?Hj(b):y;if(PB(_))return ai(ri(_,b));throw hnt(TA(b)+" is not iterable")}(e,o)}for(l=r.next;!(u=ri(l,r)).done;){try{s=m(u.value)}catch(b){Uj(r,"throw",b)}if(typeof s=="object"&&s&&im(Wj,s))return s}return new Ib(!1)},mnt=tn.String,sm=function(e){if(Dy(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return mnt(e)},ynt=function(e,t){return e===void 0?arguments.length<2?"":t:sm(e)},bnt=!La(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",fs(1,7)),e.stack!==7)}),_nt=ta("toStringTag"),a8=tn.Error,wnt=[].push,lm=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=im(vC,this);r8?n=r8(new a8(void 0),o?n8(this):vC):(n=o?this:iu(vC),la(n,_nt,"Error")),la(n,"message",ynt(t,"")),bnt&&la(n,"stack",int(n.stack,1)),snt(n,r);var a=[];return gnt(e,wnt,{that:a}),la(n,"errors",a),n};r8?r8(lm,a8):function(e,t){for(var n=Xtt(t),r=hd.f,o=o5.f,a=0;a<n.length;a++){var i=n[a];Sn(e,i)||r(e,i,o(t,i))}}(lm,a8);var vC=lm.prototype=iu(a8.prototype,{constructor:fs(1,lm),message:fs(1,""),name:fs(1,"AggregateError")});Fl({global:!0},{AggregateError:lm});var Cnt=cr(Function.toString);Ro(Oc.inspectSource)||(Oc.inspectSource=function(e){return Cnt(e)});var i8,r1,s8,ise=Oc.inspectSource,Kj=tn.WeakMap,Snt=Ro(Kj)&&/native code/.test(ise(Kj)),RA=tn.TypeError,Ent=tn.WeakMap;if(Snt||Oc.state){var Dd=Oc.state||(Oc.state=new Ent),xnt=cr(Dd.get),qj=cr(Dd.has),knt=cr(Dd.set);i8=function(e,t){if(qj(Dd,e))throw new RA("Object already initialized");return t.facade=e,knt(Dd,e,t),t},r1=function(e){return xnt(Dd,e)||{}},s8=function(e){return qj(Dd,e)}}else{var Zp=a5("state");Ty[Zp]=!0,i8=function(e,t){if(Sn(e,Zp))throw new RA("Object already initialized");return t.facade=e,la(e,Zp,t),t},r1=function(e){return Sn(e,Zp)?e[Zp]:{}},s8=function(e){return Sn(e,Zp)}}var yc,Gj,Yj,kv={set:i8,get:r1,has:s8,enforce:function(e){return s8(e)?r1(e):i8(e,{})},getterFor:function(e){return function(t){var n;if(!Oi(t)||(n=r1(t)).type!==e)throw RA("Incompatible receiver, "+e+" required");return n}}},sse=Function.prototype,Ant=Ba&&Object.getOwnPropertyDescriptor,gC=Sn(sse,"name"),Ont={EXISTS:gC,PROPER:gC&&(function(){}).name==="something",CONFIGURABLE:gC&&(!Ba||Ba&&Ant(sse,"name").configurable)},l8=function(e,t,n,r){la(e,t,n)},NA=ta("iterator"),lse=!1;[].keys&&("next"in(Yj=[].keys())?(Gj=n8(n8(Yj)))!==Object.prototype&&(yc=Gj):lse=!0);var Tnt=yc==null||La(function(){var e={};return yc[NA].call(e)!==e});yc=Tnt?{}:iu(yc),Ro(yc[NA])||l8(yc,NA,function(){return this});var use={IteratorPrototype:yc,BUGGY_SAFARI_ITERATORS:lse},Dnt=NB?{}.toString:function(){return"[object "+Dy(this)+"]"},Pnt=hd.f,Xj=ta("toStringTag"),u8=function(e,t,n,r){if(e){var o=n?e:e.prototype;Sn(o,Xj)||Pnt(o,Xj,{configurable
`)&&e.flags==="s")}),oot=qt.RegExp,aot=Oo(function(){var e=oot("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),iot=lp.get,sot=zB("native-string-replace",String.prototype.replace),h8=RegExp.prototype.exec,WA=h8,lot=qn("".charAt),uot=qn("".indexOf),cot=qn("".replace),xC=qn("".slice),kC=(EC=/b*/g,Bo(h8,mH=/a/,"a"),Bo(h8,EC,"a"),mH.lastIndex!==0||EC.lastIndex!==0),yH=Zrt.BROKEN_CARET,AC=/()??/.exec("")[1]!==void 0;(kC||AC||yH||rot||aot)&&(WA=function(e){var t,n,r,o,a,i,s,l=this,u=iot(l),c=Tf(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Bo(WA,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=yH&&l.sticky,g=Bo(Yrt,l),v=l.source,m=0,b=c;if(p&&(g=cot(g,"y",""),uot(g,"g")===-1&&(g+="g"),b=xC(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&lot(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",b=" "+b,m++),n=new RegExp("^(?:"+v+")",g)),AC&&(n=new RegExp("^"+v+"$(?!\\s)",g)),kC&&(r=l.lastIndex),o=Bo(h8,p?n:l,b),p?o?(o.input=xC(o.input,m),o[0]=xC(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:kC&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),AC&&o&&o.length>1&&Bo(sot,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=$y(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var v8=WA;By({target:"RegExp",proto:!0,forced:/./.exec!==v8},{exec:v8});var dot=ma("species"),bH=RegExp.prototype,fot=qn("".charAt),_H=qn("".charCodeAt),pot=qn("".slice),wH=function(e){return function(t,n){var r,o,a=Tf(i5(t)),i=YB(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=_H(a,i))<55296||r>56319||i+1===s||(o=_H(a,i+1))<56320||o>57343?e?fot(a,i):r:e?pot(a,i,i+2):o-56320+(r-55296<<10)+65536}},Cse={codeAt:wH(!1),charAt:wH(!0)},hot=Cse.charAt,vot=function(e,t,n){return t+(n?hot(e,t).length:1)},got=qt.TypeError,CH=function(e,t){var n=e.exec;if(go(n)){var r=Bo(n,e,t);return r!==null&&ii(r),r}if(Af(e)==="RegExp")return Bo(v8,e,t);throw got("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var o=ma(e),a=!Oo(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!Oo(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[dot]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=qn(/./[o]),l=t(o,""[e],function(u,c,d,f,p){var g=qn(u),v=c.exec;return v===v8||v===bH.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});up(String.prototype,e,l[0]),up(bH,o,l[1])}})("match",function(e,t,n){return[function(r){var o=i5(this),a=r==null?void 0:um(r,e);return a?Bo(a,r,o):new RegExp(r)[e](Tf(o))},function(r){var o=ii(this),a=Tf(r),i=n(t,o,a);if(i.done)return i.value;if(!o.global)return CH(o,a);var s=o.unicode;o.lastIndex=0;for(var l,u=[],c=0;(l=CH(o,a))!==null;){var d=Tf(l[0]);u[c]=d,d===""&&(o.lastIndex=vot(a,gse(o.lastIndex),s)),c++}return c===0?null:u}]}),By({global:!0},{globalThis:qt});var mot=!Oo(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),SH=KB("IE_PROTO"),KA=qt.Object,yot=KA.prototype,cm=mot?KA.getPrototypeOf:function(e){var t=VB(e);if($a(t,SH))return t[SH];var n=t.constructor;return go(n)&&t instanceof n?n.prototype:t instanceof KA?yot:null},bot=qt.String,_ot=qt.TypeError,H0=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=qn(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return ii(r),function(a){if(typeof a=="object"||go(a))return a;throw _ot("Can't set "+bot(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),wot=qt.Array,Cot=Math.max,Sot=qn("".replace),Eot=qn("".split),xot=qn([].join),qA=String(Error("zxcasd").stack),Sse=/\n\s*at [^:]*:[^\n]*/,kot=Sse.test(qA),Aot=/@[^\n]*\n/.test(qA)&&!/zxcasd/.test(qA),Oot=function(e,t){if(typeof e!="string")return e;if(kot)for(;t--;)e=Sot(e,Sse,"");else if(Aot)return xot(function(n,r,o){for(var a,i,s,l,u=s5(n),c=UA(r,u),d=UA(u,u),f=wot(Cot(d-c,0)),p=0;c<d;c++,p++)a=f,i=p,s=n[c],l=void 0,(l=jB(i))in a?Ov.f(a,l,Tc(0,s)):a[l]=s;return f.length=p,f}(Eot(e,`
`),t),`
`);return e},Tot=function(e,t){Gs(t)&&"cause"in t&&Oa(e,"cause",t.cause)},EH=qn(qn.bind),Ese=function(e,t){return FB(e),t===void 0?e:EH?EH(e,t):function(){return e.apply(t,arguments)}},U0={},Dot=ma("iterator"),Pot=Array.prototype,Mot=ma("iterator"),xH=function(e){if(e!=null)return um(e,Mot)||um(e,"@@iterator")||U0[l5(e)]},Bot=qt.TypeError,kH=function(e,t,n){var r,o;ii(e);try{if(!(r=um(e,"return"))){if(t==="throw")throw n;return n}r=Bo(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return ii(r),n},$ot=qt.TypeError,zb=function(e,t){this.stopped=e,this.result=t},AH=zb.prototype,Rot=function(e,t,n){var r,o,a,i,s,l,u,c=n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),g=Ese(t,c),v=function(b){return r&&kH(r,"normal",b),new zb(!0,b)},m=function(b){return d?(ii(b),p?g(b[0],b[1],v):g(b[0],b[1])):p?g(b,v):g(b)};if(f)r=e;else{if(!(o=xH(e)))throw $ot(VA(e)+" is not iterable");if(function(b){return b!==void 0&&(U0.Array===b||Pot[Dot]===b)}(o)){for(a=0,i=s5(e);i>a;a++)if((s=m(e[a]))&&c8(AH,s))return s;return new zb(!1)}r=function(b,y){var _=arguments.length<2?xH(b):y;if(FB(_))return ii(Bo(_,b));throw Bot(VA(b)+" is not iterable")}(e,o)}for(l=r.next;!(u=Bo(l,r)).done;){try{s=m(u.value)}catch(b){kH(r,"throw",b)}if(typeof s=="object"&&s&&c8(AH,s))return s}return new zb(!1)},Not=function(e,t){return e===void 0?arguments.length<2?"":t:Tf(e)},Iot=!Oo(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Tc(1,7)),e.stack!==7)}),Fot=ma("toStringTag"),g8=qt.Error,Lot=[].push,dm=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=c8(OC,this);H0?n=H0(new g8(void 0),o?cm(this):OC):(n=o?this:$y(OC),Oa(n,Fot,"Error")),Oa(n,"message",Not(t,"")),Iot&&Oa(n,"stack",Oot(n.stack,1)),Tot(n,r);var a=[];return Rot(e,Lot,{that:a}),Oa(n,"errors",a),n};H0?H0(dm,g8):yse(dm,g8);var OC=dm.prototype=$y(g8.prototype,{constructor:Tc(1,dm),message:Tc(1,""),name:Tc(1,"AggregateError")});By({global:!0},{AggregateError:dm});var GA=ma("unscopables"),YA=Array.prototype;YA[GA]==null&&Ov.f(YA,GA,{configurable:!0,value:$y(null)});var Df,OH,TH,TC=function(e){YA[GA][e]=!0},XA=ma("iterator"),xse=!1;[].keys&&("next"in(TH=[].keys())?(OH=cm(cm(TH)))!==Object.prototype&&(Df=OH):xse=!0);var zot=Df==null||Oo(function(){var e={};return Df[XA].call(e)!==e});zot&&(Df={}),go(Df[XA])||up(Df,XA,function(){return this});var QB={IteratorPrototype:Df,BUGGY_SAFARI_ITERATORS:xse},Vot=Ov.f,DH=ma("toStringTag"),PH=function(e,t,n){e&&!$a(e=n?e:e.prototype,DH)&&Vot(e,DH,{configurable:!0,value:t})},jot=QB.IteratorPrototype,Hot=function(){return this},Uot=GB.PROPER,Wot=GB.CONFIGURABLE,MH=QB.IteratorPrototype,DC=QB.BUGGY_SAFARI_ITERATORS,ug=ma("iterator"),Kot=function(){return this},kse=function(e,t,n,r,o,a,i){(function(m,b,y,_){var w=b+" Iterator";m.prototype=$y(jot,{next:Tc(1,y)}),PH(m,w,!1),U0[w]=Hot})(n,t,r);var s,l,u=function(m){if(m===o&&g)return g;if(!DC&&m in f)return f[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,f=e.prototype,p=f[ug]||f["@@iterator"]||o&&f[o],g=!DC&&p||u(o),v=t=="Array"&&f.entries||p;return v&&(s=cm(v.call(new e)))!==Object.prototype&&s.next&&(cm(s)!==MH&&(H0?H0(s,MH):go(s[ug])||up(s,ug,Kot)),PH(s,c,!0)),Uot&&o=="values"&&p&&p.name!=="values"&&(Wot?Oa(f,"name","values"):(d=!0,g=function(){return Bo(p,this)})),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},i||By({target:t,proto:!0,forced:DC||d},l)),f[ug]!==g&&up(f,ug,g,{name:o}),U0[t]=g,l},qot=lp.set,Got=lp.getterFor("Array Iterator"),D2=kse(Array,"Array",function(e,t){qot(this,{type:"Array Iterator",target:Av(e),index:0,kind:t})},function(){var e=Got(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");U0.Arguments=U0.Array,TC("keys"),TC("values"),TC("entries");var Yot=Cse.charAt,Xot=lp.set,Jot=lp.getterFor("String Iterator");kse(String,"String",function(e){Xot(this,{type:"String It
Sorry, wangEditor V5+ versions do not support IE browser.`),RH(),NH()):global&&(!((PC=global.navigator)===null||PC===void 0)&&PC.userAgent.match("QQBrowser"))&&(RH(),NH());function RH(){typeof globalThis>"u"&&(window.globalThis=window)}function NH(){Wnt===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var IH,y8=Array.isArray||function(e){return xf(e)=="Array"},Tse=function(){},Zot=[],Dse=Ev("Reflect","construct"),e$=/^\s*(?:class|function)\b/,Qot=cr(e$.exec),eat=!e$.exec(Tse),cg=function(e){if(!Ro(e))return!1;try{return Dse(Tse,Zot,e),!0}catch{return!1}},tat=!Dse||La(function(){var e;return cg(cg.call)||!cg(Object)||!cg(function(){e=!0})||e})?function(e){if(!Ro(e))return!1;switch(Dy(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return eat||!!Qot(e$,ise(e))}:cg,nat=ta("species"),FH=tn.Array,Pse=function(e,t){return new(function(n){var r;return y8(n)&&(r=n.constructor,(tat(r)&&(r===FH||y8(r.prototype))||Oi(r)&&(r=r[nat])===null)&&(r=void 0)),r===void 0?FH:r}(e))(t===0?0:t)},rat=ta("species"),Mse=ta("isConcatSpreadable"),LH=tn.TypeError,oat=Q3>=51||!La(function(){var e=[];return e[Mse]=!1,e.concat()[0]!==e}),aat=(IH="concat",Q3>=51||!La(function(){var e=[];return(e.constructor={})[rat]=function(){return{foo:1}},e[IH](Boolean).foo!==1})),iat=function(e){if(!Oi(e))return!1;var t=e[Mse];return t!==void 0?!!t:y8(e)};Fl({target:"Array",proto:!0,forced:!oat||!aat},{concat:function(e){var t,n,r,o,a,i=ky(this),s=Pse(i,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(iat(a=t===-1?i:arguments[t])){if(l+(o=Oy(a))>9007199254740991)throw LH("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in a&&BA(s,l,a[n])}else{if(l>=9007199254740991)throw LH("Maximum allowed index exceeded");BA(s,l++,a)}return s.length=l,s}});var zH=$B.f,VH=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Bse={f:function(e){return VH&&xf(e)=="Window"?function(t){try{return zH(t)}catch{return rse(VH)}}(e):zH(Sl(e))}},sat=cr([].slice),t$={f:ta},lat=hd.f,Br=function(e){var t=Ja.Symbol||(Ja.Symbol={});Sn(t,e)||lat(t,e,{value:t$.f(e)})},jH=cr([].push),Tu=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,i=e==7,s=e==5||a;return function(l,u,c,d){for(var f,p,g=ky(l),v=Jie(g),m=MB(u,c),b=Oy(v),y=0,_=d||Pse,w=t?_(l,b):n||i?_(l,0):void 0;b>y;y++)if((s||y in v)&&(p=m(f=v[y],y,g),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:jH(w,f)}else switch(e){case 4:return!1;case 7:jH(w,f)}return a?-1:r||o?o:w}},u5={forEach:Tu(0),map:Tu(1),filter:Tu(2),some:Tu(3),every:Tu(4),find:Tu(5),findIndex:Tu(6),filterReject:Tu(7)}.forEach,xa=a5("hidden"),HH=ta("toPrimitive"),uat=kv.set,UH=kv.getterFor("Symbol"),as=Object.prototype,fc=tn.Symbol,bc=fc&&fc.prototype,WH=tn.TypeError,NC=tn.QObject,dg=Ev("JSON","stringify"),$se=o5.f,pc=hd.f,Rse=Bse.f,cat=OB.f,Nse=cr([].push),su=Mp("symbols"),Ry=Mp("op-symbols"),IC=Mp("string-to-symbol-registry"),FC=Mp("symbol-to-string-registry"),dat=Mp("wks"),LC=!NC||!NC.prototype||!NC.prototype.findChild,JA=Ba&&La(function(){return iu(pc({},"a",{get:function(){return pc(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=$se(as,t);r&&delete as[t],pc(e,t,n),r&&e!==as&&pc(as,t,r)}:pc,zC=function(e,t){var n=su[e]=iu(bc);return uat(n,{type:"Symbol",tag:e,description:t}),Ba||(n.description=t),n},b8=function(e,t,n){e===as&&b8(Ry,t,n),ai(e);var r=xv(t);return ai(n),Sn(su,r)?(n.enumerable?(Sn(e,xa)&&e[xa][r]&&(e[xa][r]=!1),n=iu(n,{enumerable:fs(0,!1)})):(Sn(e,xa)||pc(e,xa,fs(1,{})),e[xa][r]=!0),JA(e,r,n)):pc(e,r,n)},KH=function(e,t){ai(e);var n=Sl(t),r=RB(n).concat(ZA(n));return u5(r,function(o){Ba&&!ri(Ise,n,o)||b8(e,o,n[o])}),e},Ise=function(e){var t=xv(e),n=ri(cat,this,t);return!(this===as&&Sn(su,t)&&!Sn(Ry,t))&&(!(n||!Sn(this,t)||!Sn(su,t)||Sn(this,xa)&&this[xa][t])||n)},qH=function(e,t){var n=Sl(e),r=xv(t);if(n!==as||!Sn(su,r)||Sn(Ry,r)){var o=$se(n,r);return!o||!Sn(su,r)||Sn(n,xa)&&n[xa][r]||(o.enumerable=!0),o}},GH=function(e){var t=Rse(Sl(e)),n=[];return u5(t,function(r){Sn(su,r)||Sn(Ty,r)||Ns
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function YH(e){return Object.prototype.toString.call(e)==="[object Object]"}function zo(e){var t,n;return YH(e)!==!1&&((t=e.constructor)===void 0||YH(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function rs(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(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function cp(e){return!!e&&!!e[si]}function dp(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===xat}(e)||Array.isArray(e)||!!e[rU]||!!e.constructor[rU]||n$(e)||r$(e))}function fm(e,t,n){n===void 0&&(n=!1),W0(e)===0?(n?Object.keys:l$)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function W0(e){var t=e[si];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:n$(e)?2:r$(e)?3:0}function QA(e,t){return W0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Lse(e,t,n){var r=W0(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function n$(e){return Sat&&e instanceof Map}function r$(e){return Eat&&e instanceof Set}function Ud(e){return e.o||e.t}function o$(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=kat(e);delete t[si];for(var n=l$(t),r=0;r<n.length;r++){var o=n[r],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function a$(e,t){return t===void 0&&(t=!1),i$(e)||cp(e)||!dp(e)||(W0(e)>1&&(e.set=e.add=e.clear=e.delete=_at),Object.freeze(e),t&&fm(e,function(n,r){return a$(r,!0)},!0)),e}function _at(){rs(2)}function i$(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ql(e){var t=Aat[e];return t||rs(18,e),t}function XH(){return pm}function VC(e,t){t&&(Ql("Patches"),e.u=[],e.s=[],e.v=t)}function _8(e){eO(e),e.p.forEach(wat),e.p=null}function eO(e){e===pm&&(pm=e.l)}function JH(e){return pm={p:[],l:pm,h:e,m:!0,_:0}}function wat(e){var t=e[si];t.i===0||t.i===1?t.j():t.O=!0}function jC(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Ql("ES5").S(t,e,r),r?(n[si].P&&(_8(t),rs(4)),dp(e)&&(e=w8(t,e),t.l||C8(t,e)),t.u&&Ql("Patches").M(n[si],e,t.u,t.s)):e=w8(t,n,[]),_8(t),t.u&&t.v(t.u,t.s),e!==zse?e:void 0}function w8(e,t,n){if(i$(t))return t;var r=t[si];if(!r)return fm(t,function(a,i){return ZH(e,r,t,a,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return C8(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=o$(r.k):r.o;fm(r.i===3?new Set(o):o,function(a,i){return ZH(e,r,o,a,i,n)}),C8(e,o,!1),n&&e.u&&Ql("Patches").R(r,n,e.u,e.s)}return r.o}function ZH(e,t,n,r,o,a){if(cp(o)){var i=w8(e,o,a&&t&&t.i!==3&&!QA(t.D,r)?a.concat(r):void 0);if(Lse(n,r,i),!cp(i))return;e.m=!1}if(dp(o)&&!i$(o)){if(!e.h.F&&e._<1)return;w8(e,o),t&&t.A.l||C8(e,o)}}function C8(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&a$(t,n)}function HC(e,t){var n=e[si];return(n?Ud(n):e)[t]}function QH(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 tO(e){e.P||(e.P=!0,e.l&&tO(e.l))}function UC(e){e.o||(e.o=o$(e.t))}function nO(e,t,n){var r=n$(t)?Ql("MapSet").N(t,n):r$(t)?Ql("MapSet").T(t,n):e.g?function(o,a){var i=Array.isArray(o),s={i:i?1:0,A:a?a.A:XH(),P:!1,I:!1,D:{},l:a,t:o,k:null,o:null,j:null,C:!1},l=s,u=Vb;i&&(l=[s],u=jb);var c=Proxy.revocable(l,u),d=c.revoke,f=c.proxy;return s.k=f,s.j=d,f}(t,n):Ql("ES5").J(t,n);return(n?n.A:XH()).p.push(r),r}function Cat(e){return cp(e)||rs(22,e),function t(n){if(!dp(n))return n;var r,o=n[si],a=W0(n);if(o){if(!o.P&&(o.i<4||!Ql("ES5").K(o)))return o.t;o.I=!0,r=eU(n,a),o.I=!1}else r=eU(n,a);return fm(r,function(i,s){o&&function(l,u){return W0(l)===2?l.get(u):l[u]}(o.t,i)===s||Lse(r,i,t(s))}),a===3?new Set(r):r}(e)}function eU(e,t)
Could not completely normalize the editor after `.concat(u,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
`));var d=r(e).pop();if(ft.has(e,d)){var f=ee.node(e,d);e.normalizeNode(f)}c++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ee.path(e,t,n),o=Pe.parent(r);return ee.node(e,o)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(Pe.isPath(t)){if(o==="start"){var[,a]=ft.first(e,t);t=a}else if(o==="end"){var[,i]=ft.last(e,t);t=i}}return Ve.isRange(t)&&(t=o==="start"?Ve.start(t):o==="end"?Ve.end(t):Pe.common(t.anchor.path,t.focus.path)),en.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>ft.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return ee.pathRefs(e).delete(o),o.current=null,a}};return ee.pathRefs(e).add(o),o},pathRefs(e){var t=sU.get(e);return t||(t=new Set,sU.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(Pe.isPath(t)){var o;if(r==="end"){var[,a]=ft.last(e,t);o=a}else{var[,i]=ft.first(e,t);o=i}var s=ft.get(e,o);if(!yt.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?s.text.length:0}}if(Ve.isRange(t)){var[l,u]=Ve.edges(t);return r==="start"?l:u}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return ee.pointRefs(e).delete(o),o.current=null,a}};return ee.pointRefs(e).add(o),o},pointRefs(e){var t=lU.get(e);return t||(t=new Set,lU.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:a=!1}=t;if(n){var i=ee.range(e,n),[s,l]=Ve.edges(i),u=o?l:s,c=!1,d="",f=0,p=0,g=0;for(var[v,m]of ee.nodes(e,{at:n,reverse:o,voids:a})){if(At.isElement(v)){if(!a&&e.isVoid(v)){yield ee.start(e,m);continue}if(e.isInline(v))continue;if(ee.hasInlines(e,v)){var b=Pe.isAncestor(m,l.path)?l:ee.end(e,m),y=Pe.isAncestor(m,s.path)?s:ee.start(e,m);d=ee.string(e,{anchor:y,focus:b},{voids:a}),c=!0}}if(yt.isText(v)){var _=Pe.equals(m,u.path);for(_?(p=o?u.offset:v.text.length-u.offset,g=u.offset):(p=v.text.length,g=o?p:0),(_||c||r==="offset")&&(yield{path:m,offset:g},c=!1);;){if(f===0){if(d==="")break;f=w(d,r,o),d=oO(d,f,o)[1]}if(g=o?g-f:g+f,(p-=f)<0){f=-p;break}f=0,yield{path:m,offset:g}}}}}function w(C,S,x){return S==="character"?rO(C,x):S==="word"?function(k){for(var A=arguments.length>1&&arguments[1]!==void 0&&arguments[1],P=0,M=!1;k.length>0;){var N=rO(k,A),[Y,W]=oO(k,N,A);if($at(Y,W,A))M=!0,P+=N;else{if(M)break;P+=N}k=W}return P}(C,x):S==="line"||S==="block"?C.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:a=e.selection}=t;if(a){var i=ee.before(e,a,{voids:r});if(i){var[,s]=ee.first(e,[]),l=[i.path,s];if(Pe.isPath(a)&&a.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(Pe.isPath(a)){var[u]=ee.parent(e,a);o=d=>u.children.includes(d)}else o=()=>!0;var[c]=ee.nodes(e,{reverse:!0,at:l,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>Ve.isRange(t)&&!n?t:{anchor:ee.start(e,t),focus:ee.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return ee.rangeRefs(e).delete(o),o.current=null,a}};return ee.rangeRefs(e).add(o),o},rangeRefs(e){var t=uU.get(e);return t||(t=new Set,uU.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){iU.set(e,t)},start:(e,t)=>ee.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=ee.range(e,t),[a,i]=Ve.edges(o),s="";for(var[l,u]of ee.nodes(e,{at:o,match:yt.isText,voids:r})){var c=l.text;Pe.equals(u,i.path)&&(c=c.slice(0,i.offset)),Pe.equals(u,a.path)&&(c=c.slice(a.offset)),s+=c}return s},unhangRange(e,t){var n=argum
* Takes a string with placeholder variables like `%{smart_count} file selected`
* and replaces it with values from options `{smart_count: 5}`
*
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
*
* @param {string} phrase that needs interpolation, with placeholders
* @param {object} options with values that will be used to replace placeholders
* @returns {any[]} interpolated
*/function QU(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const o of Object.keys(t))if(o!=="_"){let a=t[o];typeof a=="string"&&(a=n[Symbol.replace](a,"$$$$")),r=Slt(r,new RegExp(`%\\{${o}\\}`,"g"),a)}return r}var kle=(nh=Clt("apply"),class{constructor(e){Object.defineProperty(this,nh,{value:Elt}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(ZU(this,nh)[nh],this):ZU(this,nh)[nh](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if(typeof n=="object"){if(t&&t.smart_count!==void 0)return QU(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return QU(n,t)}});function Elt(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var Ale=function(){var e={},t=e._fns={};return e.emit=function(n,r,o,a,i,s,l){var u=function(c){for(var d=t[c]?t[c]:[],f=c.indexOf(":"),p=f===-1?[c]:[c.substring(0,f),c.substring(f+1)],g=Object.keys(t),v=0,m=g.length;v<m;v++){var b=g[v];if(b==="*"&&(d=d.concat(t[b])),p.length===2&&p[0]===b){d=d.concat(t[b]);break}}return d}(n);u.length&&function(c,d,f){for(var p=0,g=d.length;p<g&&d[p];p++)d[p].event=c,d[p].apply(d[p],f)}(n,u,[r,o,a,i,s,l])},e.on=function(n,r){t[n]||(t[n]=[]),t[n].push(r)},e.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),e.off(n,o)})},e.off=function(n,r){var o=[];if(n&&r)for(var a=this._fns[n],i=0,s=a?a.length:0;i<s;i++)a[i]!==r&&o.push(a[i]);o.length?this._fns[n]=o:delete this._fns[n]},e},xlt={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:klt}=xlt,eW=e=>crypto.getRandomValues(new Uint8Array(e)),tW=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let a="";for(;;){let i=n(o),s=o;for(;s--;)if(a+=e[i[s]&r]||"",a.length===t)return a}}};var Alt={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>tW(e,t,eW),customRandom:tW,urlAlphabet:klt,random:eW},tS=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function Ole(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Ole.prototype.match=function(e){var t,n,r=!0,o=this.parts,a=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<a;t++)o[t]!=="*"&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if(typeof e.splice=="function")for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e=="object")for(var i in r={},e)this.match(i)&&(r[i]=e[i]);return r};var Olt=/[\/\+\.]/,Tlt=function(e,t){function n(r){var o=function(a,i,s){var l=new Ole(a,s||/[\/\.]/);return i!==void 0?l.match(i):l}(r,e,Olt);return o&&o.length>=2}return t?n(t.split(";")[0]):n},Dlt=0;function Plt(e){return"__private_"+Dlt+++"_"+e}var nS=Plt("publish");class Tle{constructor(){Object.defineProperty(this,nS,{value:Mlt}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,function(o,a){if(!Object.prototype.hasOwnProperty.call(o,a))throw new TypeError("attempted to use private field on non-instance");return o}(this,nS)[nS](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function Mlt(){for(var e=arguments.length,t=
id: ${r[a].id}
type: ${r[a].type}`)}),r.length>0&&Dt(this,yg)[yg](),o.length>0){let a=`Multiple errors occurred while adding files:
`;if(o.forEach(i=>{a+=`
* ${i.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:a},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,a);{const i=new Error(a);throw i.errors=o,i}}}removeFiles(t,n){const{files:r,currentUploads:o}=this.getState(),a={...r},i={...o},s=Object.create(null);function l(d){return s[d]===void 0}t.forEach(d=>{r[d]&&(s[d]=r[d],delete a[d])}),Object.keys(i).forEach(d=>{const f=o[d].fileIDs.filter(l);f.length!==0?i[d]={...o[d],fileIDs:f}:delete i[d]});const u={currentUploads:i,files:a};Object.keys(a).length===0&&(u.allowNewUpload=!0,u.error=null,u.recoveredState=null),this.setState(u),this.calculateTotalProgress();const c=Object.keys(s);c.forEach(d=>{this.emit("file-removed",s[d],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const n=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!0};t[n]=r}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!1,error:null};t[n]=r}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter(o=>t[o].error);if(n.forEach(o=>{const a={...t[o],isPaused:!1,error:null};t[o]=a}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=Dt(this,Bl)[Bl](n,{forceAllowNewUpload:!0});return Dt(this,$l)[$l](r)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),n=Object.keys(t);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=Dt(this,Bl)[Bl]([t],{forceAllowNewUpload:!0});return Dt(this,$l)[$l](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,n){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(l=>l.progress.uploadStarted||l.progress.preprocess||l.progress.postprocess);if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=t.filter(l=>l.progress.bytesTotal!=null),r=t.filter(l=>l.progress.bytesTotal==null);if(n.length===0){const l=100*t.length,u=r.reduce((d,f)=>d+f.progress.percentage,0),c=Math.round(u/l*100);return void this.setState({totalProgress:c})}let o=n.reduce((l,u)=>l+u.progress.bytesTotal,0);const a=o/n.length;o+=a*r.length;let i=0;n.forEach(l=>{i+=l.progress.bytesUploaded}),r.forEach(l=>{i+=a*(l.progress.percentage||0)/100});let s=o===0?0:Math.round(i/o*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,n){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was impo
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(i)}return t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),r.type in Dt(this,Po)[Po]?Dt(this,Po)[Po][r.type].push(r):Dt(this,Po)[Po][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(Dt(this,Po)[Po])){const r=n.find(o=>o.id===t);if(r!=null)return r}}[Mle](t){return Dt(this,Po)[Po][t]}iteratePlugins(t){Object.values(Dt(this,Po)[Po]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=Dt(this,Po)[Po][t.type],r=n.findIndex(a=>a.id===t.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Dt(this,vg)[vg](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Dt(this,ns)[ns]),window.removeEventListener("offline",Dt(this,ns)[ns]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:o?t.message:t,details:o?t.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?Dt(this,$l)[$l](t):(Dt(this,df)[df](t),Promise.reject(new Error("Nonexistent upload")))}[Ble](){return Dt(this,Bl)[Bl](...arguments)}addResultData(t,n){if(!Dt(this,sS)[sS](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:r}=this.getState(),o={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:o}})}upload(){var t;(t=Dt(this,Po)[Po].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{Dt(this,oS)[oS](n),Dt(this,aS)[aS](n)}).catch(o=>{Dt(this,ao)[ao](o)}).then(()=>{const{currentUploads:o}=this.getState(),a=Object.values(o).flatMap(l=>l.fileIDs),i=[];Object.keys(n).forEach(l=>{const u=this.getFile(l);u.progress.uploadStarted||a.indexOf(l)!==-1||i.push(u.id)});const s=Dt(this,Bl)[Bl](i);return Dt(this,$l)[$l](s)}).catch(o=>{Dt(this,ao)[ao](o,{showInformer:!1})}))}}function zlt(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:a,allowedFileTypes:i}=this.opts.restrictions;if(a&&t.length+1>a)throw new Ws(`${this.i18n("youCanOnlyUploadX",{smart_count:a})}`);if(i&&!i.some(s=>s.indexOf("/")>-1?!!e.type&&Tlt(e.type.replace(/;.*?$/,""),s):!(s[0]!=="."||!e.extension)&&e.extension.toLowerCase()===s.substr(1).toLowerCase())){const s=i.join(", ");throw new Ws(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(o&&e.size!=null){let s=0;if(s+=e.size,t.forEach(l=>{s+=l.size}),s>o)throw new Ws(this.i18n("exceedsSize",{size:tS(o),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new Ws(this.i18n("exceedsSize",{size:tS(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new Ws(this.i18n("inferiorSize",{size:tS(r)}))}function Vlt(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Ws(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function jlt(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let a=0;a<t.length;a++)if(!n.call(e.meta,t[a])||e.meta[t[a]]===""){const i=new Ws(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(i),o.push(t[a]),Dt(this,ao)[ao](i,{file:e,showInforme
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function NW(e){return Object.prototype.toString.call(e)==="[object Object]"}_r({target:"Object",stat:!0,forced:Ict},{keys:function(e){return c0(vd(e))}});var Fct={isHistory(e){return NW(t=e)!==!1&&((n=t.constructor)===void 0||NW(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||_c.isOperationList(e.redos[0]))&&(e.undos.length===0||_c.isOperationList(e.undos[0]));var t,n,r}},_S=new WeakMap,wS=new WeakMap,Kh={isHistoryEditor:e=>Fct.isHistory(e.history)&&ee.isEditor(e),isMerging:e=>wS.get(e),isSaving:e=>_S.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Kh.isMerging(e);wS.set(e,!1),t(),wS.set(e,n)},withoutSaving(e,t){var n=Kh.isSaving(e);_S.set(e,!1),t(),_S.set(e,n)}},Lct=st.String,Xn=function(e){if(w5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Lct(e)},I$=function(){var e=Vr(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},zct=Pv.PROPER,OO=RegExp.prototype,Qle=OO.toString,Vct=Bt(I$),jct=Fn(function(){return Qle.call({source:"a",flags:"b"})!="/a/b"}),Hct=zct&&Qle.name!="toString";(jct||Hct)&&Ra(RegExp.prototype,"toString",function(){var e=Vr(this),t=Xn(e.source),n=e.flags;return"/"+t+"/"+Xn(n===void 0&&pp(OO,e)&&!("flags"in OO)?Vct(e):n)},{unsafe:!0});var i6,Uct=So?Object.defineProperties:function(e,t){Vr(e);for(var n,r=gd(t),o=c0(t),a=o.length,i=0;a>i;)Ds.f(e,n=o[i++],r[n]);return e},TO=Ip("document","documentElement"),eue=R$("IE_PROTO"),CS=function(){},tue=function(e){return"<script>"+e+"<\/script>"},IW=function(e){e.write(tue("")),e.close();var t=e.parentWindow.Object;return e=null,t},Kb=function(){try{i6=new ActiveXObject("htmlfile")}catch{}var e,t;Kb=typeof document<"u"?document.domain&&i6?IW(i6):((t=mm("iframe")).style.display="none",TO.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(tue("document.F=Object")),e.close(),e.F):IW(i6);for(var n=M8.length;n--;)delete Kb.prototype[M8[n]];return Kb()};_5[eue]=!0;var E5=Object.create||function(e,t){var n;return e!==null?(CS.prototype=Vr(e),n=new CS,CS.prototype=null,n[eue]=e):n=Kb(),t===void 0?n:Uct(n,t)},DO=Sr("unscopables"),PO=Array.prototype;PO[DO]==null&&Ds.f(PO,DO,{configurable:!0,value:E5(null)});var l1=function(e){PO[DO][e]=!0},Wct=Xle.includes;_r({target:"Array",proto:!0},{includes:function(e){return Wct(this,e,arguments.length>1?arguments[1]:void 0)}}),l1("includes");var Kct=Sr("match"),F$=function(e){var t;return lr(e)&&((t=e[Kct])!==void 0?!!t:hs(e)=="RegExp")},qct=st.TypeError,L$=function(e){if(F$(e))throw qct("The method doesn't accept regular expressions");return e},Gct=Sr("match"),z$=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Gct]=!1,"/./"[e](t)}catch{}}return!1},Yct=Bt("".indexOf);_r({target:"String",proto:!0,forced:!z$("includes")},{includes:function(e){return!!~Yct(Xn(Hi(this)),Xn(L$(e)),arguments.length>1?arguments[1]:void 0)}});var Xct=/"/g,Jct=Bt("".replace);_r({target:"String",proto:!0,forced:Fn(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=Xn(Hi(this)),r="<a",(r+=' name="'+Jct(Xn(t),Xct,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var MO=function(e,t,n){var r,o;Vr(e);try{if(!(r=hp(e,"return"))){if(t==="throw")throw n;return n}r=Dn(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return Vr(r),n},Zct=function(e,t,n,r){try{return r?t(Vr(n)[0],n[1]):t(n)}catch(o){MO(e,"throw",o)}},G0={},Qct=Sr("iterator"),edt=Array.prototype,nue=function(e){return e!==void 0&&(G0.Array===e||edt[Qct]===e)},_m=function(e,t,n){var r=$$(t);r in e?Ds.f(e,r,y5(0,n)):e[r]=n},tdt=Sr("iterator"),V$=function(e){if(e!=null)return hp(e,tdt)||hp(e,"@@iterator")||G0[w5(e)]},ndt=st.TypeError,rue=function(e,t){var n=arguments.length<2?V$(e):t;if(ed(n))return Vr(Dn(n,e));throw ndt(m5(e)+" is not iterable")},FW=st.Array,oue=Sr("iterator"),aue=!1;try{var rdt=0,LW={next:function(){return{done:!!rdt++}},return:function(){aue=!0}};LW[oue]=fu
`)&&e.flags==="s")}),Bdt=st.RegExp,q$=Fn(function(){var e=Bdt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),$dt=Jo.get,Rdt=D$("native-string-replace",String.prototype.replace),R8=RegExp.prototype.exec,NO=R8,Ndt=Bt("".charAt),Idt=Bt("".indexOf),Fdt=Bt("".replace),ES=Bt("".slice),xS=function(){var e=/a/,t=/b*/g;return Dn(R8,e,"a"),Dn(R8,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),GW=k5.BROKEN_CARET,kS=/()??/.exec("")[1]!==void 0;(xS||kS||GW||K$||q$)&&(NO=function(e){var t,n,r,o,a,i,s,l=this,u=$dt(l),c=Xn(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Dn(NO,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=GW&&l.sticky,g=Dn(I$,l),v=l.source,m=0,b=c;if(p&&(g=Fdt(g,"y",""),Idt(g,"g")===-1&&(g+="g"),b=ES(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Ndt(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",b=" "+b,m++),n=new RegExp("^(?:"+v+")",g)),kS&&(n=new RegExp("^"+v+"$(?!\\s)",g)),xS&&(r=l.lastIndex),o=Dn(R8,p?n:l,b),p?o?(o.input=ES(o.input,m),o[0]=ES(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:xS&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),kS&&o&&o.length>1&&Dn(Rdt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=E5(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var wm=NO;_r({target:"RegExp",proto:!0,forced:/./.exec!==wm},{exec:wm});var G$=Function.prototype,YW=G$.apply,Ldt=G$.bind,XW=G$.call,Y$=typeof Reflect=="object"&&Reflect.apply||(Ldt?XW.bind(YW):function(){return XW.apply(YW,arguments)}),zdt=Sr("species"),AS=RegExp.prototype,X$=function(e,t,n,r){var o=Sr(e),a=!Fn(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!Fn(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[zdt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=Bt(/./[o]),l=t(o,""[e],function(u,c,d,f,p){var g=Bt(u),v=c.exec;return v===wm||v===AS.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});Ra(String.prototype,e,l[0]),Ra(AS,o,l[1])}r&&ps(AS[o],"sham",!0)},Vdt=iue.charAt,J$=function(e,t,n){return t+(n?Vdt(e,t).length:1)},jdt=Math.floor,OS=Bt("".charAt),Hdt=Bt("".replace),TS=Bt("".slice),Udt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Wdt=/\$([$&'`]|\d{1,2})/g,Kdt=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=Wdt;return o!==void 0&&(o=vd(o),l=Udt),Hdt(a,l,function(u,c){var d;switch(OS(c,0)){case"$":return"$";case"&":return e;case"`":return TS(t,0,n);case"'":return TS(t,i);case"<":d=o[TS(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var p=jdt(f/10);return p===0?u:p<=s?r[p-1]===void 0?OS(c,1):r[p-1]+OS(c,1):u}d=r[f-1]}return d===void 0?"":d})},qdt=st.TypeError,Cm=function(e,t){var n=e.exec;if(Gn(n)){var r=Dn(n,e,t);return r!==null&&Vr(r),r}if(hs(e)==="RegExp")return Dn(wm,e,t);throw qdt("RegExp#exec called on incompatible receiver")},IO=Sr("replace"),Gdt=Math.max,Ydt=Math.min,Xdt=Bt([].concat),DS=Bt([].push),JW=Bt("".indexOf),ZW=Bt("".slice),Jdt="a".replace(/./,"$0")==="$0",QW=!!/./[IO]&&/./[IO]("a","$0")==="";X$("replace",function(e,t,n){var r=QW?"$":"$0";return[function(o,a){var i=Hi(this),s=o==null?void 0:hp(o,IO);return s?Dn(s,o,i,a):Dn(t,Xn(i),o,a)},function(o,a){var i=Vr(this),s=Xn(o);if(typeof a=="string"&&JW(a,r)===-1&&JW(a,"$<")===-1){var l=n(t,i,s,a);if(l.done)return l.value}var u=Gn(a);u||(a=Xn(a));var c=i.global;if(c){var d=i.unicode;i.lastIndex=0}for(var f=[];;){var p=Cm(i,s);if(p===null||(DS(f,p),!c))break;Xn(p[0])===""&&(i.lastIndex=J$(s,Mv(i.lastIndex),d))}for(var g,v="",m=0,b=0;b<f.length;b++){for(var y=Xn((p=f[b])[0]),_=Gdt(Ydt(jy(p.index),s.length),0),w=[],C=1;C<p.length;C++)DS(w,(g=p[C])===void 0?g:String(g));var S=p.groups;if(u){var x=Xdt([y],w,_,s);S!==void 0&&DS(x,S);var k=Xn(Y$(a,void 0,x))}else k=Kdt(y,s,_,w,S,a);_>=m&&(v+=ZW(s,m,_)+k,m=_+y.length)}return v+ZW(s,m)}]},!!Fn(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Jdt||QW);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var FO=function(e,t){return FO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},FO(e,t)};function $v(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}FO(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ei=function(){return Ei=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},Ei.apply(this,arguments)};function xi(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function wn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function LO(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var Zdt=0,eK=function(){this.id=""+Zdt++},Qdt=Jo.set,eft=Jo.getterFor("Array Iterator"),B2=U$(Array,"Array",function(e,t){Qdt(this,{type:"Array Iterator",target:gd(e),index:0,kind:t})},function(){var e=eft(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");G0.Arguments=G0.Array,l1("keys"),l1("values"),l1("entries");var X0=function(e,t,n){for(var r in t)Ra(e,r,t[r],n);return e},tft=st.Array,nft=Math.max,zO=function(e,t,n){for(var r=Fp(e),o=q0(t,r),a=q0(n===void 0?r:n,r),i=tft(nft(a-o,0)),s=0;o<a;o++,s++)_m(i,s,e[o]);return i.length=s,i},tK=ym.f,nK=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rft={f:function(e){return nK&&hs(e)=="Window"?function(t){try{return tK(t)}catch{return zO(nK)}}(e):tK(gd(e))}},rK=Fn(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),l6=Object.isExtensible,ff=Fn(function(){l6(1)})||rK?function(e){return!!lr(e)&&(!rK||hs(e)!="ArrayBuffer")&&(!l6||l6(e))}:l6,oft=!Fn(function(){return Object.isExtensible(Object.preventExtensions({}))}),A5=Vy(function(e){var t=Ds.f,n=!1,r=P$("meta"),o=0,a=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},i=e.exports={enable:function(){i.enable=function(){},n=!0;var s=ym.f,l=Bt([].splice),u={};u[r]=1,s(u).length&&(ym.f=function(c){for(var d=s(c),f=0,p=d.length;f<p;f++)if(d[f]===r){l(d,f,1);break}return d},_r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:rft.f}))},fastKey:function(s,l){if(!lr(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Ir(s,r)){if(!ff(s))return"F";if(!l)return"E";a(s)}return s[r].objectID},getWeakData:function(s,l){if(!Ir(s,r)){if(!ff(s))return!0;if(!l)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return oft&&n&&ff(s)&&!Ir(s,r)&&a(s),s}};_5[r]=!0}),aft=st.TypeError,qb=function(e,t){this.stopped=e,this.result=t},oK=qb.prototype,Sm=function(e,t,n){var r,o,a,i,s,l,u,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),g=vp(t,c),v=function(b){return r&&MO(r,"normal",b),new qb(!0,b)},m=function(b){return d?(Vr(b),p?g(b[0],b[1],v):g(b[0],b[1])):p?g(b,v):g(b)};if(f)r=e;else{if(!(o=V$(e)))throw aft(m5(e)+" is not iterable");if(nue(o)){for(a=0,i=Fp(e);i>a;a++)if((s=m(e[a]))&&pp(oK,s))return s;return new qb(!1)}r=rue(e,o)}for(l=r.next;!(u=Dn(l,r)).done;){try{s=m(u.value)}catch(b){MO(r,"throw",b)}if(typeof s=="object"&&s&&pp(oK,s))return s}return new qb(!1)},ift=st.TypeError,O5=function(e,t){if(pp(t,e))return e;th
`)}return o};function yue(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],a=o.nodeType;a==3?t(o,e):a!=1&&a!=9&&a!=11||yue(o,t)}}function gK(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==Ks.ELEMENT_NODE?"":t.tagName.toLowerCase()}(Lo=Ks||(Ks={}))[Lo.ELEMENT_NODE=1]="ELEMENT_NODE",Lo[Lo.TEXT_NODE=3]="TEXT_NODE",Lo[Lo.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Lo[Lo.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Lo[Lo.COMMENT_NODE=8]="COMMENT_NODE",Lo[Lo.DOCUMENT_NODE=9]="DOCUMENT_NODE",Lo[Lo.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Lo[Lo.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var qO=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),u1=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Tg=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),bft=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),_ft=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),GO=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Dg=!_ft&&!bft&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",ge={getWindow:function(e){var t=vue.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=Yb.get(t);return n||(n=new eK,Yb.set(t,n)),n},setNewKey:function(e){var t=new eK;Yb.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=J0.get(r);if(o==null){if(ee.isEditor(r))return n;break}var a=Em.get(r);if(a==null)break;n.unshift(a),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=ge.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return J0.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var o=ge.getParentNode(e,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[ge.findPath(e,t)[0]];return ft.get(e,n)},toDOMNode:function(e,t){var n;if(ee.isEditor(t))n=eR.get(e);else{var r=ge.findKey(e,t);n=WO.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,o=n.editable,a=o!==void 0&&o,i=ge.toDOMNode(e,e);try{r=Qi(t)?t:t.parentElement}catch(s){if(!s.message.includes('Permission denied to access property "nodeType"'))throw s}return!!r&&r.closest("[data-slate-editor]")===i&&(!a||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=Ve.isBackward(t),a=ge.toDOMPoint(e,n),i=Ve.isCollapsed(t)?a:ge.toDOMPoint(e,r),s=ge.getWindow(e).document.createRange(),l=wn(o?i:a,2),u=l[0],c=l[1],d=wn(o?a:i,2),f=d[0],p=d[1],g=!!(Qi(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),v=!!(Qi(f)?f:f.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,g?1:c),s.setEnd(f,v?1:p),s},toDOMPoint:function(e,t){var n,r,o,a=wn(ee.node(e,t.path),1)[0],i=ge.toDOMNode(e,a);ee.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(i.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),l=0;try{for(var u=xi(s),c=u.next();!c.done;c=u.next()){var d=c.value,f=d.childNodes[0];if(f!=null&&f.textContent!=null){var p=f.textContent.length,g=d.getAttribute("data-slate-length"),v=l+(g==null?p:parseInt(g,10));if(t.offset<=v){o=[f,Math.min(p,Math.max(0,t.offset-l))];break}l=v}}}catch(m){n={error:m}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}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=Qi(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?I8.get(n):null;if(!r)throw new Error("Cannot resolv
`)))&&d--}if(!c){if(a)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var b=ge.toSlateNode(e,c);return{path:ge.findPath(e,b),offset:d}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return ee.hasPath(e,n.path)&&ee.hasPath(e,r.path)},getNodeType:function(e){return At.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return ft.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=ee.nodes(e,{universal:!0});try{for(var a=xi(o),i=a.next();!i.done;i=a.next()){var s=wn(i.value,1)[0];At.isElement(s)&&r.push(s)}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=wn(ee.nodes(e,{match:function(a){return n.checkNodeType(a,t)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=wn(ee.nodes(e,{match:function(r){return yt.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=wn(ee.nodes(e,{match:function(o){return o===t},universal:!0}),1),r=n[0];return r!=null&&wn(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(ee.isEnd(e,n.anchor,t)||ee.isEnd(e,n.focus,t))},getTextarea:function(e){var t=VO.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return T5.get(e)||null},getHoverbar:function(e){return N8.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,n){e.normalizeNode([t,[n]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var 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,a=ge.getTextarea(e).$textArea,i=a==null?void 0:a[0].childNodes;if(i)try{for(var s=xi(Array.from(i)),l=s.next();!l.done;l=s.next()){var u=l.value;if(u.nodeType!==3)break;u.remove()}}catch(v){t={error:v}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var c=ee.nodes(e,{match:function(v){return!(!At.isElement(v)||e.isInline(v))},universal:!0});try{for(var d=xi(c),f=d.next();!f.done;f=d.next()){var p=f.value;if(p!=null){var g=p[0];yue(ge.toDOMNode(e,g),function(v,m){var b=be(m);b.attr("data-slate-string")||b.attr("data-slate-zero-width")||b.attr("data-w-e-reserve")||m.removeChild(v)})}}}catch(v){r={error:v}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=ee.nodes(e,{match:function(s){return e.isVoid(s)}}),o=0;try{for(var a=xi(r),i=a.next();!i.done;i=a.next())i.value,o++}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||Ve.isExpanded(t))return!1;var n=ge.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=ee.node(e,t);if(n==null)return!1;var r=wn(n,1)[0].children;return r.length===1&&r[0].text===""}},wft=1,bue={},xm={},Cft=Bv.filter,Sft=x5("filter");_r({target:"Array",proto:!0,forced:!Sft},{filter:function(e){return Cft(this,e,arguments.length>1?arguments[1]:void 0)}});var YO=`
\v\f\r                 \u2028\u2029\uFEFF`,mK=Bt("".replace),L8="["+YO+"]",Eft=RegExp("^"+L8+L8+"*"),xft=RegExp(L8+L8+"*$"),IS=function(e){return function(t){var n=Xn(Hi(t));return 1&e&&(n=mK(n,Eft,"")),2&e&&(n=mK(n,xft,"")),n}},kft={start:IS(1),end:IS(2),trim:IS(3)},Aft=Pv.PROPER,Oft=kft.trim;_r({target:"String",proto:!0,forced:function(e){return Fn(function(){return!!YO[e]()||"​…᠎"[e]()!=="​…᠎"||Aft&&YO[e].name!==e})}("trim")},{trim:function(){return Oft(this)}});var XO=[],_ue={};function Tft(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var km,ah,yK,FS,z8=st.Promise,bK=Sr("species"),nR=function(e){var t=Ip(e),n=Ds.f;So&&t&&!t[bK]&&n(t,bK,{configurable:!0,get:function(){return this}})},Dft=st.TypeError,Pft=Sr("species"),wue=function(e,t){var n,r=Vr(e).constructor;return r===void 0||(n=Vr(r)[Pft])==null?t:function(o){if(S5(o))return o;throw Dft(m5(o)+" is not a constructor")}(n)},Cue=Bt([].slice),Sue=/(?:ipad|iphone|ipod).*applewebkit/i.test(u0),Mc=hs(st.process)=="process",JO=st.setImmediate,ZO=st.clearImmediate,Mft=st.process,LS=st.Dispatch,Bft=st.Function,_K=st.MessageChannel,$ft=st.String,zS=0,c1={};try{km=st.location}catch{}var rR=function(e){if(Ir(c1,e)){var t=c1[e];delete c1[e],t()}},VS=function(e){return function(){rR(e)}},wK=function(e){rR(e.data)},CK=function(e){st.postMessage($ft(e),km.protocol+"//"+km.host)};JO&&ZO||(JO=function(e){var t=Cue(arguments,1);return c1[++zS]=function(){Y$(Gn(e)?e:Bft(e),void 0,t)},ah(zS),zS},ZO=function(e){delete c1[e]},Mc?ah=function(e){Mft.nextTick(VS(e))}:LS&&LS.now?ah=function(e){LS.now(VS(e))}:_K&&!Sue?(FS=(yK=new _K).port2,yK.port1.onmessage=wK,ah=vp(FS.postMessage,FS)):st.addEventListener&&Gn(st.postMessage)&&!st.importScripts&&km&&km.protocol!=="file:"&&!Fn(CK)?(ah=CK,st.addEventListener("message",wK,!1)):ah="onreadystatechange"in mm("script")?function(e){TO.appendChild(mm("script")).onreadystatechange=function(){TO.removeChild(this),rR(e)}}:function(e){setTimeout(VS(e),0)});var Pg,ef,d1,Ih,jS,HS,US,SK,Eue={set:JO,clear:ZO},Rft=/ipad|iphone|ipod/i.test(u0)&&st.Pebble!==void 0,Nft=/web0s(?!.*chrome)/i.test(u0),Ift=Hy.f,WS=Eue.set,EK=st.MutationObserver||st.WebKitMutationObserver,xK=st.document,kK=st.process,p6=st.Promise,AK=Ift(st,"queueMicrotask"),xue=AK&&AK.value;xue||(Pg=function(){var e,t;for(Mc&&(e=kK.domain)&&e.exit();ef;){t=ef.fn,ef=ef.next;try{t()}catch(n){throw ef?Ih():d1=void 0,n}}d1=void 0,e&&e.enter()},Sue||Mc||Nft||!EK||!xK?!Rft&&p6&&p6.resolve?((US=p6.resolve(void 0)).constructor=p6,SK=vp(US.then,US),Ih=function(){SK(Pg)}):Mc?Ih=function(){kK.nextTick(Pg)}:(WS=vp(WS,st),Ih=function(){WS(Pg)}):(jS=!0,HS=xK.createTextNode(""),new EK(Pg).observe(HS,{characterData:!0}),Ih=function(){HS.data=jS=!jS}));var KS,OK,kue,TK,Aue=xue||function(e){var t={fn:e,next:void 0};d1&&(d1.next=t),ef||(ef=t,Ih()),d1=t},Fft=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=ed(t),this.reject=ed(n)},oR={f:function(e){return new Fft(e)}},QO=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Lft=typeof window=="object",Oue=Eue.set,zft=Sr("species"),js="Promise",DK=Jo.getterFor(js),Vft=Jo.set,jft=Jo.getterFor(js),Kd=z8&&z8.prototype,Ys=z8,Mg=Kd,Tue=st.TypeError,eT=st.document,aR=st.process,d0=oR.f,Hft=d0,Uft=!!(eT&&eT.createEvent&&st.dispatchEvent),Due=Gn(st.PromiseRejectionEvent),Pue=!1,f1=bm(js,function(){var e=b5(Ys),t=e!==String(Ys);if(!t&&gm===66)return!0;if(gm>=51&&/native code/.test(e))return!1;var n=new Ys(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[zft]=r,!(Pue=n.then(function(){})instanceof r)||!t&&Lft&&!Due}),Wft=f1||!j$(function(e){Ys.all(e).catch(function(){})}),Mue=function(e){var t;return!(!lr(e)||!Gn(t=e.then))&&t},iR=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Aue(function(){for(var r=e.value,o=e.state==1,a=0;n.length>a;){var i,s,l,u=n[a++],c=o?u.ok:u.fail,d=u.resolve,f=u.reject,p=u.domain;try{c?(o||(e.rejection===2&&qft(e),e.
`)>=0)return;c&&(c=zue(c),FK(s,c)||s.push({text:c}))}}else{if(u.nodeName==="BR")return void(FK(s,`
`)||s.push({text:`
`}));var d=lR(be(u),i);Array.isArray(d)?d.forEach(function(f){return s.push(f)}):s.push(d)}}),s)}(e,t),r=function(a){for(var i in V8)if(a[0].matches(i))return V8[i];return cpt}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach(function(a){ee.isVoid(t,a)||(n.length===0&&(a.children=[{text:e.text().replace(/\s+/gm," ")}]),sR.forEach(function(i){a=i(e[0],a,t)}))}),o}function YS(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
`));var n=e[0].textContent||"";n=function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=zue(n)};return sR.forEach(function(o){r=o(e[0],r,t)}),r}function lR(e,t){Fue.forEach(function(r){var o=r.selector,a=r.preParseHtml;e[0].matches(o)&&(e=be(a(e[0])))});var n=gK(e);return n==="span"?e.attr("data-w-e-type")?GS(e,t):YS(e,t):n==="code"?gK(e.parent())==="pre"?GS(e,t):YS(e,t):Iue.includes(n)?YS(e,t):GS(e,t)}function Vue(e,t,n){var r=be(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function LK(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=be("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(o){var a=lR(be(o),e);Array.isArray(a)?a.forEach(function(i){return n.push(i)}):n.push(a)}),n}var dpt=Ds.f,zK=A5.fastKey,VK=Jo.set,XS=Jo.getterFor,fpt={getConstructor:function(e,t,n,r){var o=e(function(u,c){O5(u,a),VK(u,{type:t,index:E5(null),first:void 0,last:void 0,size:0}),So||(u.size=0),c!=null&&Sm(c,u[r],{that:u,AS_ENTRIES:n})}),a=o.prototype,i=XS(t),s=function(u,c,d){var f,p,g=i(u),v=l(u,c);return v?v.value=d:(g.last=v={index:p=zK(c,!0),key:c,value:d,previous:f=g.last,next:void 0,removed:!1},g.first||(g.first=v),f&&(f.next=v),So?g.size++:u.size++,p!=="F"&&(g.index[p]=v)),u},l=function(u,c){var d,f=i(u),p=zK(c);if(p!=="F")return f.index[p];for(d=f.first;d;d=d.next)if(d.key==c)return d};return X0(a,{clear:function(){for(var u=i(this),c=u.index,d=u.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=void 0),delete c[d.index],d=d.next;u.first=u.last=void 0,So?u.size=0:this.size=0},delete:function(u){var c=this,d=i(c),f=l(c,u);if(f){var p=f.next,g=f.previous;delete d.index[f.index],f.removed=!0,g&&(g.next=p),p&&(p.previous=g),d.first==f&&(d.first=p),d.last==f&&(d.last=g),So?d.size--:c.size--}return!!f},forEach:function(u){for(var c,d=i(this),f=vp(u,arguments.length>1?arguments[1]:void 0);c=c?c.next:d.first;)for(f(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(u){return!!l(this,u)}}),X0(a,n?{get:function(u){var c=l(this,u);return c&&c.value},set:function(u,c){return s(this,u===0?0:u,c)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),So&&dpt(a,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=XS(t),a=XS(r);U$(e,t,function(i,s){VK(this,{type:r,target:i,state:o(i),kind:s,last:void 0})},function(){for(var i=a(this),s=i.kind,l=i.last;l&&l.removed;)l=l.previous;return i.target&&(i.last=l=l?l.next:i.state.first)?s=="keys"?{value:l.key,done:!1}:s=="values"?{value:l.value,done:!1}:{value:[l.key,l.value],done:!1}:(i.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),nR(t)}};cue("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},fpt);var jK=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function HK(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):Be.insertNodes(e,t,{mode:"highest"})}var ppt=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var o=t.selection;if(o){var a=wn(Ve.edges(o),2),i=a[0],s=a[1],l=ee.void(t,{at:i.path}),u=ee.void(t,{at:s.path});if(!Ve.isCollapsed(o)||l){var c=ge.toDOMRange(t,o),d=c.cloneContents(),f=d.childNodes[0];if(d.childNodes.forEach(function(C){C.textContent&&C.textContent.trim()!==""&&(f=C)}),u){var p=wn(u,1)[0],g=c.cloneRange(),v=ge.toDOMNode(t,p);g.setEndAfter(v),d=g.cloneContents()}if(l&&(f=d.querySelector("[data-slate-spacer]")),Array.from(d.querySelectorAll("[data-slate-zero-width]")).forEach(function(C){var S=C.getAttribute("data-slate-zero-width")==="n";C.textContent=S?`
`:""}),gue(f)){var m=f.ownerDocument.createElement("span");m.style.whiteSpace="pre",m.appendChild(f),d.appendChild(m),f=m}var b=t.getFragment(),y=JSON.stringify(b),_=window.btoa(encodeURIComponent(y));f.setAttribute("data-slate-fragment",_),r.setData("application/x-slate-fragment",_);var w=d.ownerDocument.createElement("div");return w.appendChild(d),w.setAttribute("hidden","true"),d.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",yft(w)),d.ownerDocument.body.removeChild(w),r}}},t.insertData=function(r){var o,a,i=r.getData("application/x-slate-fragment");if(i){var s=decodeURIComponent(window.atob(i)),l=JSON.parse(s);t.insertFragment(l)}else{var u=r.getData("text/plain"),c=r.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(u){var d=u.split(/\r\n|\r|\n/),f=!1;try{for(var p=xi(d),g=p.next();!g.done;g=p.next()){var v=g.value;f&&Be.splitNodes(t,{always:!0}),n(v),f=!0}}catch(m){o={error:m}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}}},t},$2=function(e){return e!=null},hpt={object:!0,function:!0,undefined:!0},vpt=/^\s*class[\s{/}]/,gpt=Function.prototype.toString,UK=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!$2(r)&&hasOwnProperty.call(hpt,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(t)}(e)&&!vpt.test(gpt.call(e))},uR=function(e){return e!=null},mpt=Object.keys,ypt=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return mpt(uR(e)?Object(e):e)},bpt=function(e){if(!uR(e))throw new TypeError("Cannot use null or undefined");return e},_pt=Math.max,WK=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,a=_pt(arguments.length,2);for(e=Object(bpt(e)),o=function(i){try{e[i]=t[i]}catch(s){n||(n=s)}},r=1;r<a;++r)ypt(t=arguments[r]).forEach(o);if(n!==void 0)throw n;return e},wpt=Array.prototype.forEach,Cpt=Object.create,Spt=function(e,t){var n;for(n in e)t[n]=e[n]},KK=function(e){var t=Cpt(null);return wpt.call(arguments,function(n){uR(n)&&Spt(Object(n),t)}),t},JS="razdwatrzy",Ept=String.prototype.indexOf,$g=typeof JS.contains=="function"&&JS.contains("dwa")===!0&&JS.contains("foo")===!1?String.prototype.contains:function(e){return Ept.call(this,e,arguments[1])>-1},v6=Vy(function(e){var t=e.exports=function(n,r){var o,a,i,s,l;return arguments.length<2||typeof n!="string"?(s=r,r=n,n=null):s=arguments[2],$2(n)?(o=$g.call(n,"c"),a=$g.call(n,"e"),i=$g.call(n,"w")):(o=i=!0,a=!1),l={value:r,configurable:o,enumerable:a,writable:i},s?WK(KK(s),l):l};t.gs=function(n,r,o){var a,i,s,l;return typeof n!="string"?(s=o,o=r,r=n,n=null):s=arguments[3],$2(r)?UK(r)?$2(o)?UK(o)||(s=o,o=void 0):o=void 0:(s=r,r=o=void 0):r=void 0,$2(n)?(a=$g.call(n,"c"),i=$g.call(n,"e")):(a=!0,i=!1),l={get:r,set:o,configurable:a,enumerable:i},s?WK(KK(s),l):l}}),ZS=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},xpt=Vy(function(e,t){var n,r,o,a,i,s,l,u=Function.prototype.apply,c=Function.prototype.call,d=Object.create,f=Object.defineProperty,p=Object.defineProperties,g=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(m,b){var y;return ZS(b),g.call(this,"__ee__")?y=this.__ee__:(y=v.value=d(null),f(this,"__ee__",v),v.value=null),y[m]?typeof y[m]=="object"?y[m].push(b):y[m]=[y[m],b]:y[m]=b,this},r=function(m,b){var y,_;return ZS(b),_=this,n.call(this,m,y=function(){o.call(_,m,y),u.call(b,this,arguments)}),y.__eeOnceListener__=b,this},o=function(m,b){var y,_,w,C;if(ZS(b),!g.call(this,"__ee__"))return this;if(!(y=this.__ee__)[m])return this;if(typeof(_=y[m])=="object")for(C=0;w=_[C];++C)w!==b&&w.__eeOnceListener__!==b||(_.length===2?y[m]=_[C?0:1]:_.splice(C,1));else _!==b&&_.__eeOnceListene
`:e)}function eE(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),Kt("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?Kt("br",null):null)}function oT(e,t,n,r){return Em.set(e,t),J0.set(e,n),At.isElement(e)?function(o,a){var i,s=ge.findKey(a,o),l=a.isInline(o),u=ee.isVoid(a,o),c=Nue(s.id),d={id:c,key:s.id,"data-slate-node":"element","data-slate-inline":l},f=o.type,p=o.children,g=p===void 0?[]:p,v=function(C){return Uue[C]||Ipt}(f);i=u?null:g.map(function(C,S){return oT(C,S,o,a)});var m=v(o,i,a);if(u){d["data-slate-void"]=!0;var b=l?"span":"div",y=wn(ft.texts(o),1),_=wn(y[0],1)[0],w=Kt(b,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},oT(_,0,o,a));m=Kt(b,{style:{position:"relative"}},m,w),Em.set(_,0),J0.set(_,o)}return m.data==null&&(m.data={}),Object.assign(m.data,d),u||l||(m=function(C,S){var x=S;return rT.forEach(function(k){x=k(C,S)}),x}(o,m)),Ui(function(){var C=KO(c);C!=null&&(WO.set(s,C),F8.set(o,C),I8.set(C,o))}),m}(e,r):function(o,a,i){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var s=ge.findKey(i,o),l=i.getConfig().decorate;if(l==null)throw new Error("Can not get config.decorate");var u=ge.findPath(i,o),c=l([o,u]),d=yt.decorations(o,c),f=d.map(function(v,m){var b=function(y,_,w,C,S){_===void 0&&(_=!1);var x=y.text,k=ge.findPath(S,w),A=Pe.parent(k);if(ee.isEditor(C))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return S.isVoid(C)?eE(ft.string(C).length):x!==""||C.children[C.children.length-1]!==w||S.isInline(C)||ee.string(S,A)!==""?x===""?eE():_&&x.slice(-1)===`
`?JK(x,!0):JK(x):eE(0,!0)}(v,m===d.length-1,o,a,i);return b=function(y,_){var w=_;return rT.forEach(function(C){w=C(y,w)}),w}(v,b),Kt("span",{"data-slate-leaf":!0},b)}),p=function(v){return"w-e-text-"+v}(s.id),g=Kt("span",{"data-slate-node":"text",id:p,key:s.id},f);return Ui(function(){var v=KO(p);v!=null&&(WO.set(s,v),F8.set(o,v),I8.set(v,o))}),g}(e,n,r)}function Fpt(e,t){var n,r=e.$scroll,o=function(v){return"w-e-textarea-"+v}(e.id),a=t.getConfig(),i=a.readOnly,s=a.autoFocus,l=function(v,m){return m===void 0&&(m=!1),K0("div#"+v,{props:{contentEditable:!m}})}(o,i),u=t.children||[];l.children=u.map(function(v,m){var b=oT(v,m,t,t);return Hue(b),b});var c=cK.get(e);if(c==null&&(c=!0),c){var d=function(v,m){return be(`<div
id="`+v+`"
data-slate-editor
data-slate-node="value"
suppressContentEditableWarning
role="textarea"
spellCheck="true"
autoCorrect="true"
autoCapitalize="true"
></div>`)}(o);r.append(d),e.$textArea=d,n=d[0],(p=Ost([Dst,$st,Nst,Pst,Bst,Tst]))(n,l),cK.set(e,!1),dK.set(e,p)}else{var f=fK.get(e),p=dK.get(e);if(f==null||p==null)return;n=f.elm,p(f,l)}if(n!=null||(n=KO(o))!=null){if((c?s:t.isFocused())&&n.focus({preventScroll:!0}),c){var g=tR(n);g&&vue.set(t,g)}eR.set(t,n),F8.set(t,n),I8.set(n,t),fK.set(e,l)}}function ZK(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function QK(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function tE(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return QK(n.overflowY,t)||QK(n.overflowX,t)||function(r){var o=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(e)}return!1}function m6(e,t,n,r,o,a,i,s){return a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0}function eq(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,i=t.boundary,s=t.skipOverflowHiddenElements,l=typeof i=="function"?i:function(ae){return ae!==i};if(!ZK(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,c=[],d=e;ZK(d)&&l(d);){if((d=d.parentElement)===u){c.push(d);break}d!=null&&d===document.body&&tE(d)&&!tE(document.documentElement)||d!=null&&tE(d,s)&&c.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),b=m.height,y=m.width,_=m.top,w=m.right,C=m.bottom,S=m.left,x=o==="start"||o==="nearest"?_:o==="end"?C:_+b/2,k=a==="center"?S+y/2:a==="end"?w:S,A=[],P=0;P<c.length;P++){var M=c[P],N=M.getBoundingClientRect(),Y=N.height,W=N.width,H=N.top,I=N.right,B=N.bottom,V=N.left;if(r==="if-needed"&&_>=0&&S>=0&&C<=p&&w<=f&&_>=H&&C<=B&&S>=V&&w<=I)return A;var $=getComputedStyle(M),U=parseInt($.borderLeftWidth,10),L=parseInt($.borderTopWidth,10),z=parseInt($.borderRightWidth,10),G=parseInt($.borderBottomWidth,10),X=0,re=0,q="offsetWidth"in M?M.offsetWidth-M.clientWidth-U-z:0,K="offsetHeight"in M?M.offsetHeight-M.clientHeight-L-G:0;if(u===M)X=o==="start"?x:o==="end"?x-p:o==="nearest"?m6(v,v+p,p,L,G,v+x,v+x+b,b):x-p/2,re=a==="start"?k:a==="center"?k-f/2:a==="end"?k-f:m6(g,g+f,f,U,z,g+k,g+k+y,y),X=Math.max(0,X+v),re=Math.max(0,re+g);else{X=o==="start"?x-H-L:o==="end"?x-B+G+K:o==="nearest"?m6(H,B,Y,L,G+K,x,x+b,b):x-(H+Y/2)+K/2,re=a==="start"?k-V-U:a==="center"?k-(V+W/2)+q/2:a==="end"?k-I+z+q:m6(V,I,W,U,z+q,k,k+y,y);var Z=M.scrollLeft,le=M.scrollTop;x+=le-(X=Math.max(0,Math.min(le+X,M.scrollHeight-Y+K))),k+=Z-(re=Math.max(0,Math.min(Z+re,M.scrollWidth-W+q)))}A.push({el:M,top:X,left:re})}return A}function tq(e){return e===Object(e)&&Object.keys(e).length!==0}function bi(e,t){return gp(t)&&ge.hasDOMNode(e,t,{editable:!0})}function nq(e,t){if(e.getConfig().readOnly)return!1;var n=Lh(e,t)&&ge.toSlateNode(e,t);return ee.isVoid(e,n)}function Lh(e,t){return gp(t)&&ge.hasDOMNode(e,t)}function Wue(e,t,n){n===void 0&&(n=!1);var r=t.selection,o=t.getConfig(),a=ge.findDocumentOrShadowRoot(t).getSelection();if(a&&(!e.isComposing||n)&&t.isFocused()){var i=a.type!=="None";if(r||i){var s=eR.get(t),l=!1;if(s.contains(a.anchorNode)&&s.contains(a.focusNode)&&(l=!0),i&&l&&r){var u=ge.toSlateRange(t,a,{exactMatch:!0,suppressThrow:!0});if(u&&Ve.equals(u,r)){var c=!0;if(Ve.isCollapsed(r)){var d=a.anchorNode,f=a.anchorOffset;if(d===s){var p=s.childNodes,g=void 0;(g=p[f])&&g.matches("table")&&(c=!1),(g=p[f-1])&&g.matches("table")&&(c=!1)}}if(c)return}}if(!r||ge.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&ge.toDOMRange(t,r);if(v){Ve.isBackward(r)?a.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):a.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var m=v.startContainer.parentElement;if(!m.closest("[data-slate-spacer]")){m.getBoundingClientRect=v.getBoundingClientRect.bind(v);var b=document.body;
`+r:n;e.attr("data-tooltip",i),e.addClass("w-e-menu-tooltip-v5")}}}X$("match",function(e,t,n){return[function(r){var o=Hi(this),a=r==null?void 0:hp(r,e);return a?Dn(a,r,o):new RegExp(r)[e](Xn(o))},function(r){var o=Vr(this),a=Xn(r),i=n(t,o,a);if(i.done)return i.value;if(!o.global)return Cm(o,a);var s=o.unicode;o.lastIndex=0;for(var l,u=[],c=0;(l=Cm(o,a))!==null;){var d=Xn(l[0]);u[c]=d,d===""&&(o.lastIndex=J$(a,Mv(o.lastIndex),s)),c++}return c===0?null:u}]});var vR=function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=be('<div class="w-e-bar-item"></div>'),this.$button=be('<button type="button"></button>'),this.disabled=!1,this.menu=n;var a=n.tag,i=n.width;if(a!=="button")throw new Error("Invalid tag '"+a+"', expected 'button'");var s=n.title,l=n.hotkey,u=l===void 0?"":l,c=n.iconSvg,d=c===void 0?"":c,f=this.$button;if(d){var p=be(d);pR(p),f.append(p)}else f.text(s);que(f,d,s,u,r),r&&d&&f.append(be('<span class="title">'+s+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",t),this.$elem.append(f),Ui(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),Za(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=Za(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=Za(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=Za(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),Wpt=function(e){function t(n,r,o){return o===void 0&&(o=!1),e.call(this,n,r,o)||this}return $v(t,e),t.prototype.onButtonClick=function(){},t}(vR),gR=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=UO.get(t);n==null&&(n=new Set,UO.set(t,n)),n.add(this),Gb.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=Gb.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=Gb.get(this);t&&t.emit("modalOrPanelHide")}},e}(),Kpt=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=be('<div class="w-e-drop-panel"></div>'),r}return $v(t,e),t.prototype.genSelfElem=function(){return null},t}(gR),qpt=function(e){function t(n,r,o){o===void 0&&(o=!1);var a=e.call(this,n,r,o)||this;if(a.dropPanel=null,a.menu=r,r.showDropPanel){var i=hR();a.$button.append(i)}return a}return $v(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=Za(this);if(this.dropPanel==null){var o=new Kpt(r),a=n.getPanelContentElem(r);o.renderContent(a),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var i=this.dropPanel;i.isShow?i.hide():(a=n.getPanelContentElem(r),i.renderContent(a),i.show())}var s=this.dropPanel;if(s.isShow){var l=this.$elem,u=l.offset().left,c=l.parents(".w-e-bar");u-c.offset().left>=c.width()/2?s.$elem.css({left:"none",right:"0"}):s.$elem.css({left:"0",right:"none"})}}},t}(vR),Gpt=function(e){function t(n,r){r===void 0&&(r=0);var o=e.call(this,n)||this;o.type="modal",o.$elem=be('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var a=o.$elem;return a.on("click",function(i){return i.stopPropagation()}),a.on("keyup",function(i){i.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return $v(t,e),t.prototype.genSelfElem=function(){var n=this,r=be('<span class="btn-close"><svg viewBox="0 0 1024 10
`)},y.getSelectionText=function(){var x=y.selection;return x==null?"":ee.string(b,x)},y.getElemsByType=function(x,k){var A,P;k===void 0&&(k=!1);var M=[],N=ee.nodes(y,{at:[],universal:!0});try{for(var Y=xi(N),W=Y.next();!W.done;W=Y.next()){var H=wn(W.value,1)[0];if(At.isElement(H)&&(k?H.type.indexOf(x)>=0:H.type===x)){var I=Nue(ge.findKey(y,H).id);M.push(Ei(Ei({},H),{id:I}))}}}catch(B){A={error:B}}finally{try{W&&!W.done&&(P=Y.return)&&P.call(Y)}finally{if(A)throw A.error}}return M},y.getElemsByTypePrefix=function(x){return y.getElemsByType(x,!0)},y.isEmpty=function(){var x=y.children,k=x===void 0?[]:x;if(k.length>1)return!1;var A=k[0];if(A==null)return!0;if(At.isElement(A)&&A.type==="paragraph"){var P=A.children,M=P===void 0?[]:P;if(M.length>1)return!1;var N=M[0];if(N==null||yt.isText(N)&&N.text==="")return!0}return!1},y.clear=function(){Be.delete(y,{at:{anchor:ee.start(y,[]),focus:ee.end(y,[])}}),y.children.length===0&&Be.insertNodes(y,[{type:"paragraph",children:[{text:""}]}])},y.getParentNode=function(x){return ge.getParentNode(y,x)},y.dangerouslyInsertHtml=function(x,k){if(x===void 0&&(x=""),k===void 0&&(k=!1),x){var A=document.createElement("div");A.innerHTML=x;var P=Array.from(A.childNodes);if(P=P.filter(function(W){var H=W.nodeType,I=W.nodeName;return H===Ks.TEXT_NODE||H===Ks.ELEMENT_NODE&&!jK.has(I.toLowerCase())}),P.length!==0){var M=y.selection;if(M!=null){var N=null;ge.isSelectedEmptyParagraph(y)&&!k&&(N=[M.focus.path[0]]),A.setAttribute("hidden","true"),document.body.appendChild(A);var Y=0;P.forEach(function(W){var H=W.nodeType,I=W.nodeName,B=W.textContent,V=B===void 0?"":B;if(H!==Ks.TEXT_NODE)if(I!=="BR"){var $=W,U=!1;if(Iue.includes(I.toLowerCase()))U=!0;else for(var L in V8)if($.matches(L)){U=!0;break}if(U){var z=lR(be($),y);return Array.isArray(z)?(z.forEach(function(X){return HK(y,X)}),Y++):(HK(y,z),Y++),void(ge.isSelectedVoidNode(y)&&y.move(1))}var G=window.getComputedStyle($).display;ge.isSelectedEmptyParagraph(y)||G.indexOf("inline")<0&&y.insertBreak(),y.dangerouslyInsertHtml($.innerHTML,!0)}else y.insertText(`
`);else{if(!V||!V.trim())return;y.insertNode({text:V})}}),Y&&N&&ge.isEmptyPath(y,N)&&Be.removeNodes(y,{at:N}),A.remove()}}}},y.setHtml=function(x){x===void 0&&(x="");var k=y.isDisabled(),A=y.isFocused(),P=JSON.stringify(y.selection);y.enable(),y.focus(),y.clear();var M=LK(y,x);if(Be.insertFragment(y,M),A||(y.deselect(),y.blur()),k&&(y.deselect(),y.disable()),y.isFocused())try{y.select(JSON.parse(P))}catch{y.select(ee.start(y,[]))}},y}(function(b){var y=b;return y.getAllMenuKeys=function(){var _=[];for(var w in xm)_.push(w);return _},y.getConfig=function(){var _=uK.get(y);if(_==null)throw new Error("Can not get editor config");return _},y.getMenuConfig=function(_){var w=y.getConfig().MENU_CONF;return(w===void 0?{}:w)[_]||{}},y.alert=function(_,w){w===void 0&&(w="info");var C=y.getConfig().customAlert;C&&C(_,w)},y}(function(b){var y=ppt(Tat());return y.id="wangEditor-"+wft++,y.isDestroyed=!1,y.isFullScreen=!1,y.focus=function(_){if(ge.toDOMNode(y,y).focus({preventScroll:!0}),Bf.set(y,!0),_){var w=ee.end(y,[]);Be.select(y,w)}else{var C=RS.get(y);C?Be.select(y,C):Be.select(y,ee.start(y,[]))}},y.isFocused=function(){return!!Bf.get(y)},y.blur=function(){ge.toDOMNode(y,y).blur(),Be.deselect(y),Bf.set(y,!1)},y.updateView=function(){ge.getTextarea(y).changeViewState();var _=ge.getToolbar(y);_&&_.changeToolbarState();var w=ge.getHoverbar(y);w&&w.changeHoverbarState()},y.destroy=function(){if(!y.isDestroyed){var _=ge.getTextarea(y);_.destroy(),VO.delete(y),jO.delete(_);var w=ge.getToolbar(y);w&&(w.destroy(),T5.delete(y),Z$.delete(w));var C=ge.getHoverbar(y);C&&(C.destroy(),N8.delete(y),HO.delete(C)),y.isDestroyed=!0,y.emit("destroyed")}},y.scrollToElem=function(_){if(!y.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=`
You has disabled editor scroll, please do this yourself`,void console.warn(w)}var C=be("#"+_);if(C.length!==0){var S=C[0];if(!ge.hasDOMNode(y,S))return w="Element (found by id is '"+_+"') is not in editor DOM",w+=`
通过 id '`+_+"' 找到的 element 不在 editor DOM 之内",void console.error(w,S);var x=ge.getTextarea(y),k=x.$textAreaContainer,A=x.$scroll,P=C.offset().top,M=k.offset().top;A[0].scrollBy({top:P-M,behavior:"smooth"})}},y.showProgressBar=function(_){_<1||ge.getTextarea(y).changeProgress(_)},y.hidePanelOrModal=function(){var _=UO.get(y);_!=null&&_.forEach(function(w){return w.hide()})},y.enable=function(){y.getConfig().readOnly=!1,y.updateView()},y.disable=function(){y.getConfig().readOnly=!0,y.updateView()},y.isDisabled=function(){return y.getConfig().readOnly},y.toDOMNode=function(_){return ge.toDOMNode(y,_)},y.fullScreen=function(){if(!y.isFullScreen){var _=null,w=ge.getToolbar(y);w&&(_=w.$box);var C=ge.getTextarea(y).$box.parent();if(_&&_.parent()[0]!==C[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
不能设置全屏因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);C.addClass("w-e-full-screen-container");var S=C.css("z-index");C.attr("data-z-index",S.toString()),y.isFullScreen=!0,y.emit("fullScreen")}},y.unFullScreen=function(){if(y.isFullScreen){var _=ge.getTextarea(y).$box.parent();setTimeout(function(){_.removeClass("w-e-full-screen-container"),y.isFullScreen=!1,y.emit("unFullScreen")},200)}},y.getEditableContainer=function(){return ge.getTextarea(y).$textAreaContainer[0]},y}()))))));if(n&&function(b,y){return Vue(b,"data-w-e-textarea",y)}(u,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(b){b===void 0&&(b={});var y=xle(bue),_={},w=b.MENU_CONF,C=w===void 0?{}:w;return C$(y,function(S,x){_[x]=Ei(Ei({},S),C[x]||{})}),delete b.MENU_CONF,Ei({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:_,hoverbarKeys:{},customAlert:function(S,x){window.alert(x+`:
`+S)}},b)}(o);uK.set(u,c);var d=c.hoverbarKeys,f=d===void 0?{}:d;if(l.forEach(function(b){u=b(u)}),i!=null&&(u.children=LK(u,i)),a&&a.length&&(u.children=a),u.children.length===0&&(u.children=[{type:"paragraph",children:[{text:""}]}]),ge.normalizeContent(u),n){var p=new Upt(n);VO.set(u,p),jO.set(p,u),p.changeViewState(),Ui(function(){var b=p.$scroll;b!=null&&b.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
Textarea height < 300px . This may be cause modal and hoverbar position error`,b)});var g=void 0;Object.keys(f).length>0&&(g=new eht,HO.set(g,u),N8.set(u,g)),u.on("change",function(){u.hidePanelOrModal()}),u.on("scroll",function(){u.hidePanelOrModal()})}else u.children.forEach(function(b,y){return Yue(b,y,u,u)});var v=c.onCreated,m=c.onDestroyed;return v&&u.on("created",function(){return v(u)}),m&&u.on("destroyed",function(){return m(u)}),Ui(function(){return u.emit("created")}),u}var nht=x5("splice"),rht=st.TypeError,oht=Math.max,aht=Math.min;_r({target:"Array",proto:!0,forced:!nht},{splice:function(e,t){var n,r,o,a,i,s,l=vd(this),u=Fp(l),c=q0(e,u),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=u-c):(n=d-2,r=aht(oht(jy(t),0),u-c)),u+n-r>9007199254740991)throw rht("Maximum allowed length exceeded");for(o=Kle(l,r),a=0;a<r;a++)(i=c+a)in l&&_m(o,a,l[i]);if(o.length=r,n<r){for(a=c;a<u-r;a++)s=a+n,(i=a+r)in l?l[s]=l[i]:delete l[s];for(a=u;a>u-r+n;a--)delete l[a-1]}else if(n>r)for(a=u-r;a>c;a--)s=a+n-1,(i=a+r-1)in l?l[s]=l[i]:delete l[s];for(a=0;a<n;a++)l[a+c]=arguments[a+2];return l.length=u-r+n,o}});var Xue=function(){function e(t,n){var r=this;this.$toolbar=be('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Ele(function(){r.toolbarItems.forEach(function(i){i.changeMenuState()})},200),this.config=n;var o=be(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var a=this.$toolbar;a.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),o.append(a),Ui(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this.$toolbar,o=this.config,a=o.toolbarKeys,i=a===void 0?[]:a,s=o.insertKeys,l=s===void 0?{index:0,keys:[]}:s,u=o.excludeKeys,c=u===void 0?[]:u,d=xle(i);l.keys.length>0&&(typeof l.keys=="string"&&(l.keys=[l.keys]),l.keys.forEach(function(g,v){d.splice(l.index+v,0,g)}));var f=d.filter(function(g){if(typeof g=="string"){if(c.includes(g))return!1}else if(c.includes(g.key))return!1;return!0}),p=f.length;f.forEach(function(g,v){if(g==="|"){if(v===0||v+1===p||n==="|")return;var m=Kue();return r.append(m),void(n=g)}if(typeof g=="string")return t.registerSingleItem(g,t),void(n=g);t.registerGroup(g),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,o=function(u){return new oq(u)}(t),a=t.menuKeys,i=a===void 0?[]:a,s=this.config.excludeKeys,l=s===void 0?[]:s;i.forEach(function(u){l.includes(u)||n.registerSingleItem(u,o)}),r.append(o.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),o=n instanceof oq,a=this.menus,i=a[t];if(i==null){var s=xm[t];if(s==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof s!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");i=s(),a[t]=i}else console.warn("Duplicated toolbar menu key '"+t+`'
重复注册了菜单栏 menu '`+t+"'");var l=Gue(t,i,o);this.toolbarItems.push(l),Q$.set(l,r),o?n.appendBarItem(l):n.$toolbar.append(l.$elem)},e.prototype.getEditorInstance=function(){var t=Z$.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),iht=Pv.EXISTS,sht=Ds.f,Jue=Function.prototype,lht=Bt(Jue.toString),Zue=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,uht=Bt(Zue.exec);function mR(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,o=r===void 0?"":r,a=e.maxFileSize,i=a===void 0?10485760:a,s=e.maxNumberOfFiles,l=s===void 0?100:s,u=e.meta,c=u===void 0?{}:u,d=e.metaWithUrl,f=d!==void 0&&d,p=e.headers,g=p===void 0?{}:p,v=e.withCredentials,m=v!==void 0&&v,b=e.timeout,y=b===void 0?1e4:b,_=e.onBeforeUpload,w=_===void 0?function(Y){return Y}:_,C=e.onSuccess,S=C===void 0?function(Y,W){}:C,x=e.onError,k=x===void 0?function(Y,W,H){console.error(Y.name+" upload error",W,H)}:x,A=e.onProgress,P=A===void 0?function(Y){}:A;if(!n)throw new Error(`Cannot get upload server address
没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
没有配置 fieldName`);var M=n;f&&(M=function(Y,W){var H=wn(Y.split("#"),2),I=H[0],B=H[1],V=[];C$(W,function(U,L){V.push(L+"="+U)});var $=V.join("&");return I=I.indexOf("?")>0?I+"&"+$:I+"?"+$,B?I+"#"+B:I}(M,c));var N=new P2({onBeforeUpload:w,restrictions:{maxFileSize:i,maxNumberOfFiles:l},meta:c}).use(Nut,{endpoint:M,headers:g,formData:!0,fieldName:o,bundle:!0,withCredentials:m,timeout:y});return N.on("upload-success",function(Y,W){var H=W.body,I=H===void 0?{}:H;try{S(Y,I)}catch(B){console.error("wangEditor upload file - onSuccess error",B)}N.removeFile(Y.id)}),N.on("progress",function(Y){Y<1||P(Y)}),N.on("upload-error",function(Y,W,H){try{k(Y,W,H)}catch(I){console.error("wangEditor upload file - onError error",I)}N.removeFile(Y.id)}),N.on("restriction-failed",function(Y,W){try{k(Y,W)}catch(H){console.error("wangEditor upload file - onError error",H)}N.removeFile(Y.id)}),N}function Bc(e){return Bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bc(e)}function cht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){cht(e,o,n[o])})}return e}function mu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iq(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 yu(e,t,n){return t&&iq(e.prototype,t),n&&iq(e,n),e}function mp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Am(e,t){if(t&&(Bc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mp(e)}function Z0(e){return Z0=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Z0(e)}function aT(e,t){return aT=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},aT(e,t)}function D5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),aT(e,t)}So&&!iht&&sht(Jue,"name",{configurable:!0,get:function(){try{return uht(Zue,lht(this))[1]}catch{return""}}});var dht={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Yl=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};mu(this,e),this.init(t,n)}return yu(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||dht,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},
`)&&e.flags==="s")}),G0t=Zt.RegExp,Y0t=Cr(function(){var e=G0t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),X0t=fT.get,J0t=SR("native-string-replace",String.prototype.replace),Y8=RegExp.prototype.exec,hT=Y8,Z0t=zt("".charAt),Q0t=zt("".indexOf),evt=zt("".replace),fE=zt("".slice),pE=(dE=/b*/g,Rr(Y8,$q=/a/,"a"),Rr(Y8,dE,"a"),$q.lastIndex!==0||dE.lastIndex!==0),Rq=wce.BROKEN_CARET,hE=/()??/.exec("")[1]!==void 0;(pE||hE||Rq||q0t||Y0t)&&(hT=function(e){var t,n,r,o,a,i,s,l=this,u=X0t(l),c=br(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Rr(hT,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=Rq&&l.sticky,g=Rr(_ce,l),v=l.source,m=0,b=c;if(p&&(g=evt(g,"y",""),Q0t(g,"g")===-1&&(g+="g"),b=fE(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Z0t(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",b=" "+b,m++),n=new RegExp("^(?:"+v+")",g)),hE&&(n=new RegExp("^"+v+"$(?!\\s)",g)),pE&&(r=l.lastIndex),o=Rr(Y8,p?n:l,b),p?o?(o.input=fE(o.input,m),o[0]=fE(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:pE&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),hE&&o&&o.length>1&&Rr(J0t,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=Ece(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var Dm=hT;uo({target:"RegExp",proto:!0,forced:/./.exec!==Dm},{exec:Dm});var RR=Function.prototype,Nq=RR.apply,tvt=RR.bind,Iq=RR.call,xce=typeof Reflect=="object"&&Reflect.apply||(tvt?Iq.bind(Nq):function(){return Iq.apply(Nq,arguments)}),nvt=di("species"),vE=RegExp.prototype,NR=function(e,t,n,r){var o=di(e),a=!Cr(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!Cr(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[nvt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=zt(/./[o]),l=t(o,""[e],function(u,c,d,f,p){var g=zt(u),v=c.exec;return v===Dm||v===vE.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});Om(String.prototype,e,l[0]),Om(vE,o,l[1])}r&&ev(vE[o],"sham",!0)},rvt=zt("".charAt),Fq=zt("".charCodeAt),ovt=zt("".slice),avt=function(e){return function(t,n){var r,o,a=br(Wi(t)),i=Iv(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=Fq(a,i))<55296||r>56319||i+1===s||(o=Fq(a,i+1))<56320||o>57343?e?rvt(a,i):r:e?ovt(a,i,i+2):o-56320+(r-55296<<10)+65536}},ivt=avt(!0),IR=function(e,t,n){return t+(n?ivt(e,t).length:1)},svt=Math.floor,gE=zt("".charAt),lvt=zt("".replace),mE=zt("".slice),uvt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cvt=/\$([$&'`]|\d{1,2})/g,dvt=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=cvt;return o!==void 0&&(o=Ky(o),l=uvt),lvt(a,l,function(u,c){var d;switch(gE(c,0)){case"$":return"$";case"&":return e;case"`":return mE(t,0,n);case"'":return mE(t,i);case"<":d=o[mE(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var p=svt(f/10);return p===0?u:p<=s?r[p-1]===void 0?gE(c,1):r[p-1]+gE(c,1):u}d=r[f-1]}return d===void 0?"":d})},fvt=Zt.TypeError,Pm=function(e,t){var n=e.exec;if(Zo(n)){var r=Rr(n,e,t);return r!==null&&oi(r),r}if($c(e)==="RegExp")return Rr(Dm,e,t);throw fvt("RegExp#exec called on incompatible receiver")},vT=di("replace"),pvt=Math.max,hvt=Math.min,vvt=zt([].concat),yE=zt([].push),Lq=zt("".indexOf),zq=zt("".slice),gvt="a".replace(/./,"$0")==="$0",Vq=!!/./[vT]&&/./[vT]("a","$0")==="";NR("replace",function(e,t,n){var r=Vq?"$":"$0";return[function(o,a){var i=Wi(this),s=o==null?void 0:$5(o,vT);return s?Rr(s,o,i,a):Rr(t,br(i),o,a)},function(o,a){var i=oi(this),s=br(o);if(typeof a=="string"&&Lq(a,r)===-1&&Lq(a,"$<")===-1){var l=n(t,i,s,a);if(l.done)return l.value}var u=Zo(a);u||(a=br(a));var c=i.global;if(c){var d=i.unicode;i.lastIndex=0}for(var f=[];;){var p=Pm(i,s);if(p===null||(yE(f,p),!c))break;br(p[0])===""&&(i.lastIndex=IR(s,qy(i.lastIndex),d))}for(var g,v="",m=0,b=0;b<f.length;b++){for(var y=br((p=f[b])[0]),_=pvt(hvt(Iv(p.index),s.length),0),w=[],C=1;C<p.length;C++)yE(w,(g=p[C])===void 0?g:String(g));var S=p.groups;if(u){var x=vvt([y],w,_,s);S!==void 0&&yE(x,S);var k=br(xce(a,void 0,x))}else k=dvt(y,s,_,w,S,a);_>=m&&(v+=zq(s,m,_)+k,m=_+y.length)}return v+zq(s,m)}]},!!Cr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!gvt||Vq);var gT=di("unscopables"),mT=Array.prototype;mT[gT]==null&&Nv.f(mT,gT,{configurable:!0,value:Ece(null)});var kce=function(e){mT[gT][e]=!0},mvt=I5.find,jq=!0;"find"in[]&&Array(1).find(function(){jq=!1}),uo({target:"Array",proto:!0,forced:jq},{find:function(e){return mvt(this,e,arguments.length>1?arguments[1]:void 0)}}),kce("find");var yvt=di("match"),Ace=function(e){var t;return is(e)&&((t=e[yvt])!==void 0?!!t:$c(e)=="RegExp")},bvt=Zt.TypeError,_vt=di("species"),Oce=function(e,t,n){var r=ER(t);r in e?Nv.f(e,r,_R(0,n)):e[r]=n},wvt=Zt.Array,Cvt=Math.max,Hq=function(e,t,n){for(var r=N5(e),o=Tm(t,r),
\v\f\r                 \u2028\u2029\uFEFF`,Uq=zt("".replace),X8="["+yT+"]",xvt=RegExp("^"+X8+X8+"*"),kvt=RegExp(X8+X8+"*$"),bE=function(e){return function(t){var n=br(Wi(t));return 1&e&&(n=Uq(n,xvt,"")),2&e&&(n=Uq(n,kvt,"")),n}},Avt={start:bE(1),end:bE(2),trim:bE(3)},Ovt=R5.PROPER,Tvt=Avt.trim;function FR(e){return be("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function Fv(e){return e.length===0?"":e[0].outerHTML}function Lv(e){return e.length?e[0].tagName.toLowerCase():""}function vs(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,a=0;a<o;a++){var i=r[a];if(i){var s=i.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}uo({target:"String",proto:!0,forced:Cr(function(){return!!yT.trim()||"​…᠎".trim()!=="​…᠎"||Ovt&&yT.trim.name!=="trim"})},{trim:function(){return Tvt(this)}}),uo({global:!0},{globalThis:Zt}),be.fn.css=rle,be.fn.append=Dv,be.fn.prepend=Zit,be.fn.addClass=d$,be.fn.removeClass=f$,be.fn.hasClass=p$,be.fn.on=zy,be.fn.off=Git,be.fn.focus=h5,be.fn.attr=Tv,be.fn.removeAttr=Qse,be.fn.hide=v$,be.fn.show=nle,be.fn.parents=ile,be.fn.dataset=h$,be.fn.val=Ly,be.fn.text=ale,be.fn.html=p5,be.fn.children=y$,be.fn.remove=b$,be.fn.find=m$,be.fn.width=ele,be.fn.height=tle,be.fn.filter=Xit,be.fn.empty=_$;var Dvt={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=be(e);return(t=t.filter(function(o){return!!yt.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},bT=function(e,t){return bT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},bT(e,t);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function mr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}bT(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var nd=function(){return nd=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},nd.apply(this,arguments)};function md(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(u){try{l(r.next(u))}catch(c){a(c)}}function s(u){try{l(r.throw(u))}catch(c){a(c)}}function l(u){var c;u.done?o(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(i,s)}l((r=r.apply(e,[])).next())})}function yd(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(d){c=[6,d],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function Dce(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Mn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Wq(e){var t=Mn(ee.nodes(e,{match:function(a){return e.children[0]===a},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!At.isElement(n)||n.type==="paragraph"||ft.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!yt.isText(o[0])&&(Be.setNodes(e,{type:"paragraph"}),!0)}var Pvt={renderElems:[Nht],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[Dvt],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(o){Wq(r)||t(o)},r.deleteForward=function(o){Wq(r)||n(o)},r}},Mvt=/"/g,Bvt=zt("".replace),R2=function(e,t,n,r){var o=br(Wi(e)),a="<"+t;return n!==""&&(a+=" "+n+'="'+Bvt(br(r),Mvt,"&quot;")+'"'),a+">"+o+"</"+t+">"},N2=function(e){return Cr(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function _E(e,t){var n=t,r=e,o=r.bold,a=r.italic,i=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),a&&(n="<em>"+n+"</em>"),i&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Nd(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}uo({target:"String",proto:!0,forced:N2("bold")},{bold:function(){return R2(this,"b","","")}}),uo({target:"String",proto:!0,forced:N2("italics")},{italics:function(){return R2(this,"i","","")}}),uo({target:"String",proto:!0,forced:N2("sub")},{sub:function(){return R2(this,"sub","","")}}),uo({target:"String",proto:!0,forced:N2("sup")},{sup:function(){return R2(
<li data-value="0" class="clear">
<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
`+s+`
</li>
`);return o.prepend(l),o[0]},e}(),Fgt=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=pt("color.color"),n.iconSvg=jvt,n.mark="color",n}return mr(t,e),t}(jce),Lgt=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=pt("color.bgColor"),n.iconSvg=Hvt,n.mark="bgColor",n}return mr(t,e),t}(jce),Zq=["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)"],zgt={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,a=t;return r&&yp(a,{color:r}),o&&yp(a,{backgroundColor:o}),a},styleToHtml:function(e,t){if(!yt.isText(e))return t;var n,r=e,o=r.color,a=r.bgColor;return o||a?((FR(t)||Lv(n=be(t))!=="span")&&(n=be("<span>"+t+"</span>")),o&&n.css("color",o),a&&n.css("background-color",a),Fv(n)):t},preParseHtml:[Igt],parseStyleHtml:function(e,t,n){var r=be(e);if(!yt.isText(t))return t;var o=t,a=vs(r,"color");a&&(o.color=a);var i=vs(r,"background-color");return i||(i=vs(r,"background")),i&&(o.bgColor=i),o},menus:[{key:"color",factory:function(){return new Fgt},config:{colors:Zq}},{key:"bgColor",factory:function(){return new Lgt},config:{colors:Zq}}]},Vgt=/^(?:\w+:)?\/\/(\S+)$/,jgt=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Hgt=/^[^\s\.]+\.\S{2,}$/,Ugt=hce.includes;function F5(e){return e===void 0&&(e="r"),e+"-"+cle()}function LR(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Hce(e,t,n,r){return md(this,void 0,void 0,function(){var o,a;return yd(this,function(i){switch(i.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(a=i.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];i.label=2;case 2:return[2,!0]}})})}function Uce(e,t,n){return md(this,void 0,void 0,function(){var r;return yd(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 zR(e){return e.selection==null||!!ge.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function xE(e,t){return{type:"link",url:LR(e),children:t?[{text:t}]:[]}}function Wce(e,t,n){return md(this,void 0,void 0,function(){var r,o,a;return yd(this,function(i){switch(i.label){case 0:return n?(t||(t=n),e.restoreSelection(),zR(e)?[2]:[4,Hce("insertLink",e,t,n)]):[2];case 1:return i.sent()?[4,Uce("insertLink",e,n)]:[2];case 2:return r=i.sent(),(o=e.selection)==null||(Ve.isCollapsed(o)?(e.insertText(" "),a=xE(r,t),Be.insertNodes(e,a),e.insertFragment([{text:" "}])):ee.string(e,o)!==t?(e.deleteFragment(),a=xE(r,t),Be.insertNodes(e,a)):(a=xE(r),Be.wrapNodes(e,a,{split:!0}),Be.collapse(e,{edge:"end"}))),[2]}})})}uo({target:"Array",proto:!0},{includes:function(e){return Ugt(this,e,arguments.length>1?arguments
`)return e.deleteBackward("character"),void Be.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
`)},r}},E2t=function(){function e(){this.title=pt("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Mn(ee.nodes(t,{match:function(n){return ge.getNodeType(n)==="pre"||!!ee.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=be('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(a){var i=a.target;if(i!=null){a.preventDefault();var s=be(i).text();t.insertText(s)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(a){var i=be("<li>"+a+"</li>");r.append(i)}),r[0]},e}(),x2t={menus:[{key:"emotion",factory:function(){return new E2t},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},k2t={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},A2t={selector:"font",preParseHtml:function(e){var t=be(e);if(Lv(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",k2t[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},O2t=zt("".indexOf);uo({target:"String",proto:!0,forced:!Fce("includes")},{includes:function(e){return!!~O2t(br(Wi(this)),br(Ice(e)),arguments.length>1?arguments[1]:void 0)}});var zu,Zb,S6=function(e){return e&&e.Math==Math&&e},on=S6(typeof globalThis=="object"&&globalThis)||S6(typeof window=="object"&&window)||S6(typeof self=="object"&&self)||S6(typeof U8=="object"&&U8)||function(){return this}()||Function("return this")(),jR=Function.prototype,aG=jR.apply,T2t=jR.bind,iG=jR.call,Xce=typeof Reflect=="object"&&Reflect.apply||(T2t?iG.bind(aG):function(){return iG.apply(aG,arguments)}),Jce=Function.prototype,CT=Jce.bind,ST=Jce.call,D2t=CT&&CT.bind(ST),Dr=CT?function(e){return e&&D2t(ST,e)}:function(e){return e&&function(){return ST.apply(e,arguments)}},Qo=function(e){return typeof e=="function"},li=function(e){try{return!!e()}catch{return!0}},Ia=!li(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ug=Function.prototype.call,nl=Ug.bind?Ug.bind(Ug):function(){return Ug.apply(Ug,arguments)},sG={}.propertyIsEnumerable,lG=Object.getOwnPropertyDescriptor,P2t=lG&&!sG.call({1:2},1)?function(e){var t=lG(this,e);return!!t&&t.enumerable}:sG,HR={f:P2t},bp=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},M2t=Dr({}.toString),B2t=Dr("".slice),If=function(e){return B2t(M2t(e),8,-1)},TE=on.Object,$2t=Dr("".split),Zce=li(function(){return!TE("z").propertyIsEnumerable(0)})?function(e){return If(e)=="String"?$2t(e,""):TE(e)}:TE,R2t=on.TypeError,UR=function(e){if(e==null)throw R2t("Can't call method on "+e);return e},xl=function(e){return Zce(UR(e))},ss=function(e){return typeof e=="object"?e!==null:Qo(e)},wi={},uG=function(e
`).map(function(a){return{type:"paragraph",children:[{text:a}]}});Be.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,o,a=[],i=ee.nodes(t,{match:function(d){return t.children.includes(d)},universal:!0});try{for(var s=Dce(i),l=s.next();!l.done;l=s.next()){var u=Mn(l.value,1)[0];u&&a.push(ft.string(u))}}catch(d){r={error:d}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}Be.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:a.join(`
`)}]}]};Be.insertNodes(t,c,{mode:"highest"})},e}(),Hmt={key:"codeBlock",factory:function(){return new jmt}};uo({target:"String",proto:!0,forced:N2("anchor")},{anchor:function(e){return R2(this,"a","name",e)}}),NR("match",function(e,t,n){return[function(r){var o=Wi(this),a=r==null?void 0:$5(r,e);return a?Rr(a,r,o):new RegExp(r)[e](br(o))},function(r){var o=oi(this),a=br(r),i=n(t,o,a);if(i.done)return i.value;if(!o.global)return Pm(o,a);var s=o.unicode;o.lastIndex=0;for(var l,u=[],c=0;(l=Pm(o,a))!==null;){var d=br(l[0]);u[c]=d,d===""&&(o.lastIndex=IR(a,qy(o.lastIndex),s)),c++}return c===0?null:u}]});var Umt={type:"pre",renderElem:function(e,t,n){return Kt("pre",null,t)}},Wmt={type:"code",renderElem:function(e,t,n){return Kt("code",null,t)}},Kmt={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=be(e);return(t=t.filter(function(o){return ge.getNodeType(o)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(o){return ge.getNodeType(o)==="code"})}}},qmt={menus:[Hmt],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var a=ge.getSelectedNodeByType(o,"code");if(a!=null){var i=function(u,c){var d=c.selection;if(d==null)return"";var f=ft.string(u),p=d.anchor.offset,g=f.slice(0,p).split(`
`),v=g.length;return v===0?"":g[v-1]}(a,o);if(i){var s=i.match(/^\s+/);if(s!=null&&s[0]!=null){var l=s[0];return void o.insertText(`
`+l)}}o.insertText(`
`)}else t()},o.normalizeNode=function(a){var i=Mn(a,2),s=i[0],l=i[1],u=ge.getNodeType(s);return u==="code"&&l.length<=1&&Be.setNodes(o,{type:"paragraph"},{at:l}),u==="pre"&&(ge.isLastNode(o,s)&&Be.insertNodes(o,ge.genEmptyParagraph(),{at:[l[0]+1]}),ge.getNodeType(s.children[0])!=="code"&&(Be.unwrapNodes(o),Be.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([s,l])},o.insertData=function(a){if(ge.getSelectedNodeByType(o,"code")!=null){var i=a.getData("text/plain");ee.insertText(o,i)}else r(a)},o},renderElems:[Umt,Wmt],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=be(e);if(Lv(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:be(e)[0].textContent||""}]}}},Kmt]},Gmt=function(){function e(){this.title=pt("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),Ymt={menus:[{key:"fullScreen",factory:function(){return new Gmt}}]},Xmt=function(){function e(){this.title=pt("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!Ve.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var o=[r.anchor.path[0]];Be.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(ee.start(t,o))}},e}(),Jmt=[lgt,zgt,_mt,Emt,Tmt,Pmt,c2t,Imt,x2t,Jgt,qmt,S2t,Rgt,Pvt,h2t,$mt,Ymt,{menus:[{key:"enter",factory:function(){return new Xmt}}]}];ha("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),ha("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var jG=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ZR(e){var t={exports:{}};return e(t,t.exports),t.exports}var ju,e3,k6=function(e){return e&&e.Math==Math&&e},jt=k6(typeof globalThis=="object"&&globalThis)||k6(typeof window=="object"&&window)||k6(typeof self=="object"&&self)||k6(typeof jG=="object"&&jG)||functi
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function tfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}XT(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function kY(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m1(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function AY(e){return ee.nodes(e,{at:e.selection||void 0,match:function(t){return ge.findPath(e,t).length===1}})}var j4t=Mde.includes;od({target:"Array",proto:!0},{includes:function(e){return j4t(this,e,arguments.length>1?arguments[1]:void 0)}}),v1("includes");var OY,QE,H4t=function(){var e=za(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},gN=jt.RegExp,JT=Ar(function(){var e=gN("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),U4t=JT||Ar(function(){return!gN("a","y").sticky}),W4t={BROKEN_CARET:JT||Ar(function(){var e=gN("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:U4t,UNSUPPORTED_Y:JT},K4t=jt.RegExp,q4t=Ar(function(){var e=K4t(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),G4t=jt.RegExp,Y4t=Ar(function(){var e=G4t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),X4t=dl.get,J4t=eN("native-string-replace",String.prototype.replace),h_=RegExp.prototype.exec,ZT=h_,Z4t=ln("".charAt),Q4t=ln("".indexOf),e6t=ln("".replace),e7=ln("".slice),t7=(QE=/b*/g,xo(h_,OY=/a/,"a"),xo(h_,QE,"a"),OY.lastIndex!==0||QE.lastIndex!==0),TY=W4t.BROKEN_CARET,n7=/()??/.exec("")[1]!==void 0;(t7||n7||TY||q4t||Y4t)&&(ZT=function(e){var t,n,r,o,a,i,s,l=this,u=X4t(l),c=Ll(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=xo(ZT,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=TY&&l.sticky,g=xo(H4t,l),v=l.source,m=0,b=c;if(p&&(g=e6t(g,"y",""),Q4t(g,"g")===-1&&(g+="g"),b=e7(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Z4t(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",b=" "+b,m++),n=new RegExp("^(?:"+v+")",g)),n7&&(n=new RegExp("^"+v+"$(?!\\s)",g)),t7&&(r=l.lastIndex),o=xo(h_,p?n:l,b),p?o?(o.input=e7(o.input,m),o[0]=e7(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:t7&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),n7&&o&&o.length>1&&xo(J4t,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=sN(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var v_=ZT;od({target:"RegExp",proto:!0,forced:/./.exec!==v_},{exec:v_});var nfe=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return ge.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!ge.getSelectedElems(t).some(function(n){if(ee.isVoid(t,n)&&ee.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},e.prototype.exec=function(t,n){this.isActive(t)?Be.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):Be.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),t6t='<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>',n6t='<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>',r6t=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=pt("listModule.unOrderedList"),n.iconSvg=t6t,n}return tfe(t,e),t}(nfe),o6t=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=pt("listModule.orderedList"),n.iconSvg=n6t,n}return tfe(t,e),t}(nfe),a6t={key:"bulletedList",factory:function(){return new r6t}},i6t={key:"numberedList",factory:function(){return new o6t}},DY=[],s6t={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,a=o!==void 0&&o?"ol":"ul",i=function(u){var c=YT.get(u);if(c==null)return 0;var d=u,f=d.type,p=d.ordered,g=p!==void 0&&p,v=d.level,m=v===void 0?0:v,b=ge.findPath(c,u);if(b[0]===0)return m+1;var y=Pe.previous(b),_=ee.node(c,y);if(!_)return 0;var w=m1(_,1)[0];if(ge.getNodeType(w)!==f)return m+1;var C=w,S=C.ordered,x=S!==void 0&&S,k=C.level,A=k===void 0?0:k;return A<m?m-A:A>m?0:A===m?x===g?0:1:0}(e);if(i>0)for(var s=0;s<i;s++)n+="<"+a+">",DY.push(a);var l=function(u){var c=YT.get(u);if(c==null)return 0;var d=u,f=d.type,p=d.ordered,g=p!==void 0&&p,v=d.level,m=v===void 0?0:v,b=ge.findPath(c,u);if(b[0]===c.children.length-1)return m+1;var y=Pe.next(b),_=ee.node(c,y);if(!_)return 0;var w=m1(_,1)[0];if(ge.getNodeType(w)!==f)return m+1;var C=w,S=C.ordered,x=S!==void 0&&S,k=C.level,A=k===void 0?0:k;return A<m?m-A:A>m?0:A===m?x===g?0:1:0}(e);if(l>0)for(s=0;s<l;s++)r+="</"+DY.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},l6t=No("species"),u6t=vN.filter,c6t=RT>=51||!Ar(function(){var e=[];return(e.constructor={})[l6t]=function(){return{foo:1}},e.filter(Boolean).foo!==1});od({target:"Array",proto:!0,forced:!c6t},{filter:function(e){return u6t(this,e,arguments.length>1?arguments[1]:void 0)}});var mN=Function.prototype,PY=mN.apply,d6t=mN.bind,MY=mN.call,f6t=typeof Reflect=="object"&&Reflect.apply||(d6t?MY.bind(PY):function(){return MY.apply(PY,arguments)}),BY=(No("species"),RegExp.prototype),p6t=jde.charAt,h6t=function(e,t,n){return t+(n?p6t(e,t).length:1)},v6t=Math.floor,r7=ln("".charAt),g6t=ln("".replace),o7=ln("".slice),m6t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,y6t=/\$([$&'`]|\d{1,2})/g,b6t=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=y6t;return o!==void 0&&(o=n4(o),l=m6t),g
`)&&e.flags==="s")}),Ibt=sn.RegExp,Fbt=eo(function(){var e=Ibt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Lbt=iD.get,zbt=CN("native-string-replace",String.prototype.replace),b_=RegExp.prototype.exec,lD=b_,Vbt=pn("".charAt),jbt=pn("".indexOf),Hbt=pn("".replace),p7=pn("".slice),h7=(f7=/b*/g,so(b_,ZY=/a/,"a"),so(b_,f7,"a"),ZY.lastIndex!==0||f7.lastIndex!==0),QY=bfe.BROKEN_CARET,v7=/()??/.exec("")[1]!==void 0;(h7||v7||QY||Nbt||Fbt)&&(lD=function(e){var t,n,r,o,a,i,s,l=this,u=Lbt(l),c=Ho(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=so(lD,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=QY&&l.sticky,g=so(yfe,l),v=l.source,m=0,b=c;if(p&&(g=Hbt(g,"y",""),jbt(g,"g")===-1&&(g+="g"),b=p7(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Vbt(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",b=" "+b,m++),n=new RegExp("^(?:"+v+")",g)),v7&&(n=new RegExp("^"+v+"$(?!\\s)",g)),h7&&(r=l.lastIndex),o=so(b_,p?n:l,b),p?o?(o.input=p7(o.input,m),o[0]=p7(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:h7&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),v7&&o&&o.length>1&&so(zbt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=Cfe(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var Rm=lD;sd({target:"RegExp",proto:!0,forced:/./.exec!==Rm},{exec:Rm});var __=Array.isArray||function(e){return Lc(e)=="Array"},Sfe=function(){},Ubt=[],Efe=s4("Reflect","construct"),BN=/^\s*(?:class|function)\b/,Wbt=pn(BN.exec),Kbt=!BN.exec(Sfe),n2=function(e){if(!ea(e))return!1;try{return Efe(Sfe,Ubt,e),!0}catch{return!1}},$N=!Efe||eo(function(){var e;return n2(n2.call)||!n2(Object)||!n2(function(){e=!0})||e})?function(e){if(!ea(e))return!1;switch(PN(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Kbt||!!Wbt(BN,kN(e))}:n2,xfe=function(e,t,n){var r=EN(t);r in e?l4.f(e,r,yN(0,n)):e[r]=n},qbt=Yi("species"),RN=function(e){return nD>=51||!eo(function(){var t=[];return(t.constructor={})[qbt]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Gbt=pn([].slice),Ybt=RN("slice"),Xbt=Yi("species"),g7=sn.Array,Jbt=Math.max;function xs(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function eX(e){var t=e.selection;if(t==null)return!1;var n=xs(ee.nodes(e,{match:function(a){return ge.checkNodeType(a,"table-cell")}}),1)[0];if(n){var r=xs(n,2)[1],o=ee.start(e,r);if(en.equals(t.anchor,o))return!0}return!1}function tX(e,t){var n,r,o=ee.nodes(e,{at:t,match:function(l){return ge.getNodeType(l)==="table"}}),a=!1;try{for(var i=function(l){var u=typeof Symbol=="function"&&Symbol.iterator,c=u&&l[u],d=0;if(c)return c.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&d>=l.length&&(l=void 0),{value:l&&l[d++],done:!l}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),s=i.next();!s.done;s=i.next())s.value,a=!0}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a}sd({target:"Array",proto:!0,forced:!Ybt},{slice:function(e,t){var n,r,o,a=i4(this),i=X5(a),s=$m(e,i),l=$m(t===void 0?i:t,i);if(__(a)&&(n=a.constructor,($N(n)&&(n===g7||__(n.prototype))||us(n)&&(n=n[Xbt])===null)&&(n=void 0),n===g7||n===void 0))return Gbt(a,s,l);for(r=new(n===void 0?g7:n)(Jbt(l-s,0)),o=0;s<l;s++,o++)s in a&&xfe(r,o,a[s]);return r.length=o,r}});var nX=pn(pn.bind),Zbt=Yi("species"),rX=sn.Array,Qbt=function(e,t){return new(function(n){var r;return __(n)&&(r=n.constructor,($N(r)&&(r===rX||__(r.prototype))||us(r)&&(r=r[Zbt])===null)&&(r=void 0)),r===void 0?rX:r}(e))(t===0?0:t)},oX=pn([].push),Wu=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,i=e==7,s=e==5||a;return function(l,u,c,d){for(var f,p,g=SN(l),v=sfe(g),m=function(C,S){return cfe(C),S===void 0?C:nX?nX(C,S):function(){return C.apply(S,arguments)}}(u,c),b=X5(v),y=0,_=d||Qbt,w=t?_(l,b):n||i?_(l,0):void 0;b>y;y++)if((s||y in v)&&(p=m(f=v[y],y,g),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:oX(w,f)}else switch(e){case 4:return!1;case 7:oX(w,f)}return a?-1:r||o?o:w}},J5={forEach:Wu(0),map:Wu(1),filter:Wu(2),some:Wu(3),every:Wu(4),find:Wu(5),findIndex:Wu(6),filterReject:Wu(7)},e3t=J5.map;sd({target:"Array",proto:!0,forced:!RN("map")},{map:function(e){return e3t(this,e,arguments.length>1?arguments[1]:void 0)}});var t3t=DN?{}.toString:function(){return"[object "+PN(this)+"]"};function Z5(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function kfe(e){return Z5(e).every(function(t){return!!t.isHeader})}DN||Bm(Object.prototype,"toString",t3t,{unsafe:!0});var n3t=ON.PROPER,uD=RegExp.prototype,Afe=uD.toSt
\v\f\r                 \u2028\u2029\uFEFF`,cX=pn("".replace),w_="["+pD+"]",w3t=RegExp("^"+w_+w_+"*"),C3t=RegExp(w_+w_+"*$"),y7=function(e){return function(t){var n=Ho(id(t));return 1&e&&(n=cX(n,w3t,"")),2&e&&(n=cX(n,C3t,"")),n}},S3t={start:y7(1),end:y7(2),trim:y7(3)},E3t=ON.PROPER,x3t=S3t.trim;function Mfe(e){return e.length?e[0].tagName.toLowerCase():""}sd({target:"String",proto:!0,forced:function(e){return eo(function(){return!!pD[e]()||"​…᠎"[e]()!=="​…᠎"||E3t&&pD[e].name!==e})}("trim")},{trim:function(){return x3t(this)}}),sd({global:!0},{globalThis:sn}),be.fn.append=Dv,be.fn.on=zy,be.fn.focus=h5,be.fn.attr=Tv,be.fn.val=Ly,be.fn.html=p5,be.fn.dataset=h$,be.fn.addClass=d$,be.fn.removeClass=f$,be.fn.children=y$,be.fn.each=ole,be.fn.find=m$;var Nm=!1,Bfe=0,$fe=0,Im=null,Fm=null,b1=be("body");function Rfe(e){Nm=!1,Fm=null,Im=null,b1.off("mousemove",Nfe),b1.off("mouseup",Rfe)}b1.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),Nm=!0;var n=e.clientX;Bfe=n;var r=t.getBoundingClientRect().width;$fe=r,b1.on("mousemove",Nfe),b1.on("mouseup",Rfe)}});var Nfe=fp(function(e){if(Nm&&Fm!=null&&Im!=null){e.preventDefault();var t=e.clientX,n=$fe+(t-Bfe);(n=Math.floor(100*n)/100)<30&&(n=30),Be.setNodes(Fm,{width:n.toString()},{at:Im})}},100),k3t={type:"table",renderElem:function(e,t,n){var r=function(s,l){if(s.isDisabled())return!1;var u=s.selection;if(u==null||Ve.isCollapsed(u))return!0;var c=u.anchor,d=u.focus,f=ge.findPath(s,l),p=ee.start(s,f),g=ee.end(s,f),v=en.compare(c,g)<=0&&en.compare(c,p)>=0,m=en.compare(d,g)<=0&&en.compare(d,p)>=0;return!!(v&&m&&Pe.equals(c.path.slice(0,3),d.path.slice(0,3)))}(n,e),o=e.width,a=o===void 0?"auto":o,i=Kt("div",{className:"table-container","data-selected":ge.isNodeSelected(n,e),on:{mousedown:function(s){if(s.target.tagName==="DIV"&&s.preventDefault(),!n.isDisabled()){var l=ge.findPath(n,e),u=ee.start(n,l),c=n.selection;c!=null?c.anchor.path[0]!==l[0]&&n.select(u):n.select(u)}}}},Kt("table",{width:a,contentEditable:r},Kt("colgroup",null,Z5(e).map(function(s){var l=s.width;return Kt("col",{width:l===void 0?"auto":l})})),Kt("tbody",null,t)));return i}},A3t={type:"table-row",renderElem:function(e,t,n){return Kt("tr",null,t)}},O3t={type:"table-cell",renderElem:function(e,t,n){var r=function(f,p){var g=ge.getParentNode(f,p);if(g==null)return!1;var v=ge.getParentNode(f,g);return v!=null&&Z5(v).some(function(m){return m===p})}(n,e),o=e,a=o.colSpan,i=a===void 0?1:a,s=o.rowSpan,l=s===void 0?1:s,u=o.isHeader,c=u!==void 0&&u;if(!r)return Kt("td",{colSpan:i,rowSpan:l},t);var d=Kt(c?"th":"td",{colSpan:i,rowSpan:l,style:{borderRightWidth:"3px"},on:{mousemove:fp(function(f){var p=this.elm;if(p!=null){var g=p.getBoundingClientRect(),v=g.left,m=g.width,b=g.top,y=g.height,_=f.clientX,w=f.clientY;Nm||(_>v+m-5&&_<v+m&&w>b&&w<b+y?(p.style.cursor="col-resize",Fm=n,Im=ge.findPath(n,e)):Nm||(p.style.cursor="auto",Fm=null,Im=null))}},100)}},t);return d}},T3t={selector:"table",preParseHtml:function(e){var t=be(e);if(Mfe(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},D3t=J5.filter;sd({target:"Array",proto:!0,forced:!RN("filter")},{filter:function(e){return D3t(this,e,arguments.length>1?arguments[1]:void 0)}});var P3t=Math.floor,b7=pn("".charAt),M3t=pn("".replace),_7=pn("".slice),B3t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$3t=/\$([$&'`]|\d{1,2})/g,R3t=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=$3t;return o!==void 0&&(o=SN(o),l=B3t),M3t(a,l,function(u,c){var d;switch(b7(c,0)){case"$":return"$";case"&":return e;case"`":return _7(t,0,n);case"'":return _7(t,i);case"<":d=o[_7(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var p=P3t(f/10);return p===0?u:p<=s?r[p-1]===void 0?b7(c,1):r[p-1]+b7(c,1):u}d=r[f-1]}return d===void 0?"":d})},hD=Yi("replace"),N3t=Math.max,I3t=Math.min,F3t=pn([].concat),w7=pn([].push),dX=pn("".indexOf),fX=pn("".slice),L3t="a".replace(/./,"$0")==="$0",pX=!!/./[hD]&&/./[hD]("a",
`)},l.deleteBackward=function(u){if(!eX(l)){var c=l.selection;if(c){var d=ee.before(l,c);if(d){var f=tX(l,d),p=tX(l,c);if(f&&!p)return}}n(u)}},l.handleTab=function(){var u;if(ge.getSelectedNodeByType(l,"table")){var c=ee.above(e);ge.checkNodeType(c[0],"table-cell")&&Be.select(e,c[1]);var d=ee.next(e);if(d)d[0]&&d[0].text&&(d=(u=ee.above(e,{at:d[1]}))!==null&&u!==void 0?u:d),Be.select(e,d[1]);else{var f=l.children||[],p=f.length;if(ge.checkNodeType(f[p-1],"table")){var g=ge.genEmptyParagraph();Be.insertNodes(l,g,{at:[p]}),l.handleTab()}}}else i()},l.deleteForward=function(u){eX(l)||r(u)},l.normalizeNode=function(u){var c=xs(u,2),d=c[0],f=c[1];if(ge.getNodeType(d)!=="table")return o([d,f]);if(ge.isLastNode(l,d)){var p=ge.genEmptyParagraph();Be.insertNodes(l,p,{at:[f[0]+1]})}},l.insertData=function(u){if(ge.getSelectedNodeByType(l,"table")!=null){var c=u.getData("text/plain");c===`
`||/<img[^>]+>/.test(u.getData("text/html"))?a(u):ee.insertText(l,c)}else a(u)},l.selectAll=function(){var u=l.selection;if(u!=null){var c=ge.getSelectedNodeByType(l,"table-cell");if(c!=null){var d=u.anchor,f=u.focus;if(Pe.equals(d.path.slice(0,3),f.path.slice(0,3)))if(ft.string(c).length!==0){var p=ge.findPath(l,c),g={anchor:ee.start(l,p),focus:ee.end(l,p)};l.select(g)}else s();else s()}else s()}else s()},l}};ha("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"}}),ha("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var C_=function(){return C_=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},C_.apply(this,arguments)};function Q5(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(u){try{l(r.next(u))}catch(c){a(c)}}function s(u){try{l(r.throw(u))}catch(c){a(c)}}function l(u){var c;u.done?o(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(i,s)}l((r=r.apply(e,[])).next())})}function e9(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(d){c=[6,d],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function Hf(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function t8t(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(o){var a=typeof Symbol=="function"&&Symbol.iterator,i=a&&o[a],s=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(a?"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(o){t[o]=e[o]&&function(a){return new Promise(function(i,s){(function(l,u,c,d){Promise.resolve(d).then(function(f){l({value:f,done:c})},u)})(i,s,(a=e[o](a)).done,a.value)})}}}var gX=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function IN(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ku,a3,R6=function(e){return e&&e.Math==Math&&e},mt=R6(typeof globalThis=="object"&&globalThis)||R6(typeof window=="object"&&window)||R6(typeof self=="object"&&self)||R6(typeof gX=="object"&&gX)||function(){return this}()||Function("return this")(),or=function(e){try{return!!e()}catch{return!0}},fl=!or(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),o2=Function.prototype.call,rr=o2.bind?o2.bind(o2):function(){return o2.apply(o2,arguments)},mX={}.propertyIsEnumerable,yX=Object.getOwnPropertyDescriptor,n8t={f:yX&&!mX.call({1:2},1)?function(e){var t=yX(this,e);return!!t&&t.enumerable}:mX},t9=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ffe=Function.prototype,vD=Ffe.bind,gD=Ffe.call,r8t=vD&&vD.bind(gD),Yt=vD?function(e){return e&&r8t(gD,e)}:function(e){return e&&function(){return gD.apply(e,arguments)}},o8t=Yt({}.toString),a8t=Yt("".slice),rl=function(e){return a8t(o8t(e),8,-1)},x7=mt.Object,i8t=Yt("".split),FN=or(function(){return!x7("z").propertyIsEnumerable(0)})?function(e){return rl(e)=="String"?i8t(e,""):x7(e)}:x7,s8t=mt.TypeError,c4=function(e){if(e==null)throw s8t("Can't call method on "+e);return e},bd=function(e){return FN(c4(e))},Yn=function(e){return typeof
\v\f\r                 \u2028\u2029\uFEFF`,PX=Yt("".replace),T_="["+_D+"]",Z8t=RegExp("^"+T_+T_+"*"),Q8t=RegExp(T_+T_+"*$"),O7=function(e){return function(t){var n=Ci(c4(t));return 1&e&&(n=PX(n,Z8t,"")),2&e&&(n=PX(n,Q8t,"")),n}},e_t={start:O7(1),end:O7(2),trim:O7(3)},t_t=Uv.PROPER,n_t=e_t.trim;function MX(e){return e.length?e[0].tagName.toLowerCase():""}function Kfe(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=be(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}Ta({target:"String",proto:!0,forced:or(function(){return!!_D.trim()||"​…᠎".trim()!=="​…᠎"||t_t&&_D.trim.name!=="trim"})},{trim:function(){return n_t(this)}}),Ta({global:!0},{globalThis:mt}),be.fn.append=Dv,be.fn.on=zy,be.fn.focus=h5,be.fn.attr=Tv,be.fn.val=Ly,be.fn.html=p5,be.fn.parent=g$,be.fn.hasClass=p$,be.fn.empty=_$;var N6,r_t={type:"video",renderElem:function(e,t,n){var r,o=e,a=o.src,i=a===void 0?"":a,s=o.poster,l=s===void 0?"":s,u=o.width,c=u===void 0?"auto":u,d=o.height,f=d===void 0?"auto":d,p=ge.isNodeSelected(n,e);if(i.trim().indexOf("<iframe ")===0)r=Kt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:Kfe(i,c,f)});else{var g=Kt("video",{poster:l,controls:!0},Kt("source",{src:i,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
抱歉浏览器不支持 video 视频`);c!=="auto"&&(g.data.width=c),f!=="auto"&&(g.data.height=f),r=Kt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},g)}return K0("div",{props:{contentEditable:!1},on:{mousedown:function(v){return v.preventDefault()}}},r)}},o_t={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=r===void 0?"":r,a=n.poster,i=a===void 0?"":a,s=n.width,l=s===void 0?"auto":s,u=n.height,c=u===void 0?"auto":u,d=`<div data-w-e-type="video" data-w-e-is-void>
`;return o.trim().indexOf("<iframe ")===0?d+=Kfe(o,l,c):d+='<video poster="'+i+'" controls="true" width="'+l+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',d+`
</div>`}},a_t=Object.keys||function(e){return Ufe(e,k_)},i_t=fl?Object.defineProperties:function(e,t){To(e);for(var n,r=bd(t),o=a_t(t),a=o.length,i=0;a>i;)bu.f(e,n=o[i++],r[n]);return e},wD=Cp("document","documentElement"),qfe=WN("IE_PROTO"),T7=function(){},Gfe=function(e){return"<script>"+e+"<\/script>"},BX=function(e){e.write(Gfe("")),e.close();var t=e.parentWindow.Object;return e=null,t},i3=function(){try{N6=new ActiveXObject("htmlfile")}catch{}var e,t;i3=typeof document<"u"?document.domain&&N6?BX(N6):((t=jm("iframe")).style.display="none",wD.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Gfe("document.F=Object")),e.close(),e.F):BX(N6);for(var n=k_.length;n--;)delete i3.prototype[k_[n]];return i3()};o9[qfe]=!0;var qN=Object.create||function(e,t){var n;return e!==null?(T7.prototype=To(e),n=new T7,T7.prototype=null,n[qfe]=e):n=i3(),t===void 0?n:i_t(n,t)},CD=jr("unscopables"),SD=Array.prototype;SD[CD]==null&&bu.f(SD,CD,{configurable:!0,value:qN(null)});var w1=function(e){SD[CD][e]=!0},s_t=Hfe.includes;Ta({target:"Array",proto:!0},{includes:function(e){return s_t(this,e,arguments.length>1?arguments[1]:void 0)}}),w1("includes");var l_t={selector:"iframe,video,p",preParseHtml:function(e){var t=be(e),n=t;if(MX(t)==="p"){var r=t.children();if(r.length===1){var o=r[0],a=o.tagName.toLowerCase();["iframe","video"].includes(a)&&(n=be(o))}}var i=MX(n);if(i!=="iframe"&&i!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var s=be('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(n),s[0]}},$X=Yt(Yt.bind),Um=function(e,t){return ld(e),t===void 0?e:$X?$X(e,t):function(){return e.apply(t,arguments)}},D_=Array.isArray||function(e){return rl(e)=="Array"},Yfe=function(){},u_t=[],Xfe=Cp("Reflect","construct"),GN=/^\s*(?:class|function)\b/,c_t=Yt(GN.exec),d_t=!GN.exec(Yfe),i2=function(e){if(!Yn(e))return!1;try{return Xfe(Yfe,u_t,e),!0}catch{return!1}},YN=!Xfe||or(function(){var e;return i2(i2.call)||!i2(Object)||!i2(function(){e=!0})||e})?function(e){if(!Yn(e))return!1;switch(i9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return d_t||!!c_t(GN,r9(e))}:i2,f_t=jr("species"),RX=mt.Array,p_t=function(e,t){return new(function(n){var r;return D_(n)&&(r=n.constructor,(YN(r)&&(r===RX||D_(r.prototype))||gr(r)&&(r=r[f_t])===null)&&(r=void 0)),r===void 0?RX:r}(e))(t===0?0:t)},NX=Yt([].push),qu=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,i=e==7,s=e==5||a;return function(l,u,c,d){for(var f,p,g=n9(l),v=FN(g),m=Um(u,c),b=d4(v),y=0,_=d||p_t,w=t?_(l,b):n||i?_(l,0):void 0;b>y;y++)if((s||y in v)&&(p=m(f=v[y],y,g),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:NX(w,f)}else switch(e){case 4:return!1;case 7:NX(w,f)}return a?-1:r||o?o:w}},XN={forEach:qu(0),map:qu(1),filter:qu(2),some:qu(3),every:qu(4),find:qu(5),findIndex:qu(6),filterReject:qu(7)},h_t=XN.find,IX=!0;"find"in[]&&Array(1).find(function(){IX=!1}),Ta({target:"Array",proto:!0,forced:IX},{find:function(e){return h_t(this,e,arguments.length>1?arguments[1]:void 0)}}),w1("find");var v_t=KN?{}.toString:function(){return"[object "+i9(this)+"]"};function FX(e,t,n,r){return t===void 0&&(t=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}KN||Ki(Object.prototype,"toString",v_t,{unsafe:!0});var LX,D7,g_t={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=be(e),o="",a="",i="auto",s="auto",l=r.find("iframe");if(l.length>0)return i=l.attr("width")||"auto",s=l.attr("height")||"auto",FX(o=l[0].outerHTML,a,i,s);var u=r.find("video");return(o=u.attr("src")||"")||u.length>0&&(o=u.find("source").attr("src")||""),i=u.attr("width")||"auto",s=u.attr("height")||"auto",FX(o,a=u.attr("poster")||"",i,s)}},Jfe=function(){var e=To(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},JN=mt.RegExp,ED=or(function(){var e=JN("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),m_t=ED||or(function(){
`)&&e.flags==="s")}),w_t=mt.RegExp,C_t=or(function(){var e=w_t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),S_t=ui.get,E_t=VN("native-string-replace",String.prototype.replace),P_=RegExp.prototype.exec,xD=P_,x_t=Yt("".charAt),k_t=Yt("".indexOf),A_t=Yt("".replace),P7=Yt("".slice),M7=(D7=/b*/g,rr(P_,LX=/a/,"a"),rr(P_,D7,"a"),LX.lastIndex!==0||D7.lastIndex!==0),zX=y_t.BROKEN_CARET,B7=/()??/.exec("")[1]!==void 0;(M7||B7||zX||__t||C_t)&&(xD=function(e){var t,n,r,o,a,i,s,l=this,u=S_t(l),c=Ci(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=rr(xD,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=zX&&l.sticky,g=rr(Jfe,l),v=l.source,m=0,b=c;if(p&&(g=A_t(g,"y",""),k_t(g,"g")===-1&&(g+="g"),b=P7(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&x_t(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",b=" "+b,m++),n=new RegExp("^(?:"+v+")",g)),B7&&(n=new RegExp("^"+v+"$(?!\\s)",g)),M7&&(r=l.lastIndex),o=rr(P_,p?n:l,b),p?o?(o.input=P7(o.input,m),o[0]=P7(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:M7&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),B7&&o&&o.length>1&&rr(E_t,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=qN(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var M_=xD;Ta({target:"RegExp",proto:!0,forced:/./.exec!==M_},{exec:M_});var ZN=Function.prototype,VX=ZN.apply,O_t=ZN.bind,jX=ZN.call,Zfe=typeof Reflect=="object"&&Reflect.apply||(O_t?jX.bind(VX):function(){return jX.apply(VX,arguments)}),HX=(jr("species"),RegExp.prototype),T_t=Yt("".charAt),UX=Yt("".charCodeAt),D_t=Yt("".slice),WX=function(e){return function(t,n){var r,o,a=Ci(c4(t)),i=a9(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=UX(a,i))<55296||r>56319||i+1===s||(o=UX(a,i+1))<56320||o>57343?e?T_t(a,i):r:e?D_t(a,i,i+2):o-56320+(r-55296<<10)+65536}},Qfe={codeAt:WX(!1),charAt:WX(!0)},P_t=Qfe.charAt,M_t=function(e,t,n){return t+(n?P_t(e,t).length:1)},B_t=Math.floor,$7=Yt("".charAt),$_t=Yt("".replace),R7=Yt("".slice),R_t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,N_t=/\$([$&'`]|\d{1,2})/g,I_t=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=N_t;return o!==void 0&&(o=n9(o),l=R_t),$_t(a,l,function(u,c){var d;switch($7(c,0)){case"$":return"$";case"&":return e;case"`":return R7(t,0,n);case"'":return R7(t,i);case"<":d=o[R7(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var p=B_t(f/10);return p===0?u:p<=s?r[p-1]===void 0?$7(c,1):r[p-1]+$7(c,1):u}d=r[f-1]}return d===void 0?"":d})},F_t=mt.TypeError,L_t=function(e,t){var n=e.exec;if(Yn(n)){var r=rr(n,e,t);return r!==null&&To(r),r}if(rl(e)==="RegExp")return rr(M_,e,t);throw F_t("RegExp#exec called on incompatible receiver")},kD=jr("replace"),z_t=Math.max,V_t=Math.min,j_t=Yt([].concat),N7=Yt([].push),KX=Yt("".indexOf),qX=Yt("".slice),H_t="a".replace(/./,"$0")==="$0",GX=!!/./[kD]&&/./[kD]("a","$0")==="";function epe(e){return e+"-"+cle()}(function(e,t,n,r){var o=jr(e),a=!or(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!or(function(){var u=!1,c=/a/;return c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=Yt(/./[o]),l=function(u,c,d){var f=GX?"$":"$0";return[function(p,g){var v=c4(this),m=p==null?void 0:Vm(p,kD);return m?rr(m,p,v,g):rr(c,Ci(v),p,g)},function(p,g){var v=To(this),m=Ci(p);if(typeof g=="string"&&KX(g,f)===-1&&KX(g,"$<")===-1){var b=d(c,v,m,g);if(b.done)return b.value}var y=Yn(g);y||(g=Ci(g));var _=v.global;if(_){var w=v.unicode;v.lastIndex=0}for(var C=[];;){var S=L_t(v,m);if(S===null||(N7(C,S),!_))break;Ci(S[0])===""&&(v.lastIndex=M_t(m,jfe(v.lastIndex),w))}for(var x,k="",A=0,P=0;P<C.length;P++){for(var M=Ci((S=C[P])[0]),N=z_t(V_t(a9(S.index),m.length),0),Y=[],W=1;W<S.length;W++)N7(Y,(x=S[W])===void 0?x:String(x));var H=S.groups;if(y){var I=j_t([M],Y,N,m);H!==void 0&&N7(I,H);var B=Ci(Zfe(g,void 0,I))}else B=I_t(M,m,N,Y,H,g);N>=A&&(k+=qX(m,A,N)+B,A=N+M.length)}return k+qX(m,A)}]}(0,""[e],function(u,c,d,f,p){var g=Yt(u),v=c.exec;return v===M_||v===HX.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});Ki(String.prototype,e,l[0]),Ki(HX,o,l[1])}})("replace",0,!!or(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!H_t||GX);var B_=mt.Promise,$_=function(e,t,n){for(var r in t)Ki(e,r,t[r],n);return e},U_t=mt.String,W_t=mt.TypeError,rv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Yt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return To(r),function(a){if(typeof a=="object"||Yn(a))return a;throw W_t("Can't set "+U_t(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),K_t=bu.f,YX=jr("toStringTag"),R_=function(e,t,n){e&&!Xr(e=n?e:e.prototype,YX)&&K_t(e,YX,{configurable:!0,value:t})},XX=jr("species"),q_t=mt.TypeError,QN=function(e,t){if(Lm(t,e))return e;thr
`)&&e.flags==="s")}),_9t=ht.RegExp,w9t=dr(function(){var e=_9t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),C9t=ci.get,S9t=cI("native-string-replace",String.prototype.replace),W_=RegExp.prototype.exec,jD=W_,E9t=an("".charAt),x9t=an("".indexOf),k9t=an("".replace),sx=an("".slice),lx=(ix=/b*/g,Hn(W_,jJ=/a/,"a"),Hn(W_,ix,"a"),jJ.lastIndex!==0||ix.lastIndex!==0),HJ=zpe.BROKEN_CARET,ux=/()??/.exec("")[1]!==void 0;(lx||ux||HJ||b9t||w9t)&&(jD=function(e){var t,n,r,o,a,i,s,l=this,u=C9t(l),c=Wc(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Hn(jD,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=HJ&&l.sticky,g=Hn(Lpe,l),v=l.source,m=0,b=c;if(p&&(g=k9t(g,"y",""),x9t(g,"g")===-1&&(g+="g"),b=sx(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&E9t(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",b=" "+b,m++),n=new RegExp("^(?:"+v+")",g)),ux&&(n=new RegExp("^"+v+"$(?!\\s)",g)),lx&&(r=l.lastIndex),o=Hn(W_,p?n:l,b),p?o?(o.input=sx(o.input,m),o[0]=sx(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:lx&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),ux&&o&&o.length>1&&Hn(S9t,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=wI(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var Qm=jD;Js({target:"RegExp",proto:!0,forced:/./.exec!==Qm},{exec:Qm});var CI=Function.prototype,UJ=CI.apply,A9t=CI.bind,WJ=CI.call,Hpe=typeof Reflect=="object"&&Reflect.apply||(A9t?WJ.bind(UJ):function(){return WJ.apply(UJ,arguments)}),O9t=Hr("species"),cx=RegExp.prototype,T9t=Hr("match"),D9t=ht.TypeError,P9t=Hr("species"),Upe=function(e,t){var n,r=Do(e).constructor;return r===void 0||(n=Do(r)[P9t])==null?t:function(o){if(bI(o))return o;throw D9t(F_(o)+" is not a constructor")}(n)},M9t=an("".charAt),KJ=an("".charCodeAt),B9t=an("".slice),qJ=function(e){return function(t,n){var r,o,a=Wc(qm(t)),i=gI(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=KJ(a,i))<55296||r>56319||i+1===s||(o=KJ(a,i+1))<56320||o>57343?e?M9t(a,i):r:e?B9t(a,i,i+2):o-56320+(r-55296<<10)+65536}},Wpe={codeAt:qJ(!1),charAt:qJ(!0)},$9t=Wpe.charAt,R9t=function(e,t,n){return t+(n?$9t(e,t).length:1)},N9t=ht.Array,I9t=Math.max,HD=function(e,t,n){for(var r=h4(e),o=Zm(t,r),a=Zm(n===void 0?r:n,r),i=N9t(I9t(a-o,0)),s=0;o<a;o++,s++)Ipe(i,s,e[o]);return i.length=s,i},F9t=ht.TypeError,GJ=function(e,t){var n=e.exec;if(Qn(n)){var r=Hn(n,e,t);return r!==null&&Do(r),r}if(gs(e)==="RegExp")return Hn(Qm,e,t);throw F9t("RegExp#exec called on incompatible receiver")},Sh=zpe.UNSUPPORTED_Y,L9t=Math.min,Kpe=[].push,z9t=an(/./.exec),Eh=an(Kpe),v2=an("".slice);(function(e,t,n,r){var o=Hr(e),a=!dr(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!dr(function(){var u=!1,c=/a/;return(c={}).constructor={},c.constructor[O9t]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=an(/./[o]),l=function(u,c,d){var f;return f="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,g){var v,m,b=Wc(qm(this)),y=g===void 0?4294967295:g>>>0;if(y===0)return[];if(p===void 0)return[b];if(!ur(v=p)||!((m=v[T9t])!==void 0?m:gs(v)=="RegExp"))return Hn(c,b,p,y);for(var _,w,C,S=[],x=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),k=0,A=new RegExp(p.source,x+"g");(_=Hn(Qm,A,b))&&!((w=A.lastIndex)>k&&(Eh(S,v2(b,k,_.index)),_.length>1&&_.index<b.length&&Hpe(Kpe,S,HD(_,1)),C=_[0].length,k=w,S.length>=y));)A.lastIndex===_.index&&A.lastIndex++;return k===b.length?!C&&z9t(A,"")||Eh(S,""):Eh(S,v2(b,k)),S.length>y?HD(S,0,y):S}:"0".split(void 0,0).length?function(p,g){return p===void 0&&g===0?[]:Hn(c,this,p,g)}:c,[function(p,g){var v=qm(this),m=p==null?void 0:Xm(p,u);return m?Hn(m,p,v,g):Hn(f,Wc(v),p,g)},function(p,g){var v=Do(this),m=Wc(p),b=d(f,v,m,g,f!==c);if(b.done)return b.value;var y=Upe(v,RegExp),_=v.unicode,w=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(Sh?"g":"y"),C=new y(Sh?"^(?:"+v.source+")":v,w),S=g===void 0?4294967295:g>>>0;if(S===0)return[];if(m.length===0)return GJ(C,m)===null?[m]:[];for(var x=0,k=0,A=[];k<m.length;){C.lastIndex=Sh?0:k;var P,M=GJ(C,Sh?v2(m,k):m);if(M===null||(P=L9t(Mpe(C.lastIndex+(Sh?k:0)),m.length))===x)k=R9t(m,k,_);else{if(Eh(A,v2(m,x,k)),A.length===S)return A;for(var N=1;N<=M.length-1;N++)if(Eh(A,M[N]),A.length===S)return A;k=x=P}}return Eh(A,v2(m,x)),A}]}(o,""[e],function(u,c,d,f,p){var g=an(u),v=c.exec;return v===Qm||v===cx.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});qi(String.prototype,e,l[0]),qi(cx,o,l[1])}r&&ol(cx[o],"sham",!0)})("split",0,!!dr(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Sh);/*!
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var K_=function(){return K_=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},K_.apply(this,arguments)};function SI(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(u){try{l(r.next(u))}catch(c){a(c)}}function s(u){try{l(r.throw(u))}catch(c){a(c)}}function l(u){var c;u.done?o(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(i,s)}l((r=r.apply(e,[])).next())})}function EI(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(d){c=[6,d],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function V9t(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(o){var a=typeof Symbol=="function"&&Symbol.iterator,i=a&&o[a],s=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(a?"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(o){t[o]=e[o]&&function(a){return new Promise(function(i,s){(function(l,u,c,d){Promise.resolve(d).then(function(f){l({value:f,done:c})},u)})(i,s,(a=e[o](a)).done,a.value)})}}}var UD=Hr("unscopables"),WD=Array.prototype;WD[UD]==null&&_u.f(WD,UD,{configurable:!0,value:wI(null)});var qf,YJ,XJ,dx=function(e){WD[UD][e]=!0},av={},j9t=!dr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),JJ=vI("IE_PROTO"),KD=ht.Object,H9t=KD.prototype,q_=j9t?KD.getPrototypeOf:function(e){var t=dI(e);if(Jr(t,JJ))return t[JJ];var n=t.constructor;return Qn(n)&&t instanceof n?n.prototype:t instanceof KD?H9t:null},qD=Hr("iterator"),qpe=!1;[].keys&&("next"in(XJ=[].keys())?(YJ=q_(q_(XJ)))!==Object.prototype&&(qf=YJ):qpe=!0);var U9t=qf==null||dr(function(){var e={};return qf[qD].call(e)!==e});U9t&&(qf={}),Qn(qf[qD])||qi(qf,qD,function(){return this});var xI={IteratorPrototype:qf,BUGGY_SAFARI_ITERATORS:qpe},W9t=_u.f,ZJ=Hr("toStringTag"),G_=function(e,t,n){e&&!Jr(e=n?e:e.prototype,ZJ)&&W9t(e,ZJ,{configurable:!0,value:t})},K9t=xI.IteratorPrototype,q9t=function(){return this},G9t=ht.String,Y9t=ht.TypeError,iv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=an(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Do(r),function(a){if(typeof a=="object"||Qn(a))return a;throw Y9t("Can't set "+G9t(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),X9t=p4.PROPER,J9t=p4.CONFIGURABLE,QJ=xI.IteratorPrototype,fx=xI.BUGGY_SAFARI_ITERATORS,g2=Hr("iterator"),Z9t=function(){return this},Gpe=function(e,t,n,r,o,a,i){(function(m,b,y,_){var w=b+" Iterator";m.prototype=wI(K9t,{next:s9(1,y)}),G_(m,w,!1),av[w]=q9t})(n,t,r);var s,l,u=function(m){if(m===o&&g)return g;if(!fx&&m in f)return f[m];switch(m){case"keys":case"values":case"entries":return funct
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/e.exports&&(e.exports=t),Q_!==void 0&&(Q_.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};a["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var i={};i[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\
`)&&e.flags==="s")}),vEt=un.RegExp,gEt=Ao(function(){var e=vEt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),mEt=aP.get,yEt=RI("native-string-replace",String.prototype.replace),rw=RegExp.prototype.exec,lP=rw,bEt=zn("".charAt),_Et=zn("".indexOf),wEt=zn("".replace),Fx=zn("".slice),Lx=(Ix=/b*/g,Eo(rw,tQ=/a/,"a"),Eo(rw,Ix,"a"),tQ.lastIndex!==0||Ix.lastIndex!==0),nQ=Hhe.BROKEN_CARET,zx=/()??/.exec("")[1]!==void 0;(Lx||zx||nQ||hEt||gEt)&&(lP=function(e){var t,n,r,o,a,i,s,l=this,u=mEt(l),c=tu(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Eo(lP,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=nQ&&l.sticky,g=Eo(jhe,l),v=l.source,m=0,b=c;if(p&&(g=wEt(g,"y",""),_Et(g,"g")===-1&&(g+="g"),b=Fx(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&bEt(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",b=" "+b,m++),n=new RegExp("^(?:"+v+")",g)),zx&&(n=new RegExp("^"+v+"$(?!\\s)",g)),Lx&&(r=l.lastIndex),o=Eo(rw,p?n:l,b),p?o?(o.input=Fx(o.input,m),o[0]=Fx(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:Lx&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),zx&&o&&o.length>1&&Eo(yEt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=fEt(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var ry=lP;p9({target:"RegExp",proto:!0,forced:/./.exec!==ry},{exec:ry});var XI=Function.prototype,rQ=XI.apply,CEt=XI.bind,oQ=XI.call,SEt=typeof Reflect=="object"&&Reflect.apply||(CEt?oQ.bind(rQ):function(){return oQ.apply(rQ,arguments)}),EEt=wd("species"),Vx=RegExp.prototype,xEt=wd("match"),kEt=un.TypeError,AEt=wd("species"),OEt=zn("".charAt),aQ=zn("".charCodeAt),TEt=zn("".slice),DEt=function(e){return function(t,n){var r,o,a=tu(sv(t)),i=KI(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=aQ(a,i))<55296||r>56319||i+1===s||(o=aQ(a,i+1))<56320||o>57343?e?OEt(a,i):r:e?TEt(a,i,i+2):o-56320+(r-55296<<10)+65536}},PEt=DEt(!0),MEt=function(e,t,n){return t+(n?PEt(e,t).length:1)},BEt=un.Array,$Et=Math.max,iQ=function(e,t,n){for(var r,o,a,i,s=qI(e),l=iP(t,s),u=iP(n===void 0?s:n,s),c=BEt($Et(u-l,0)),d=0;l<u;l++,d++)r=c,o=d,a=e[l],(i=zI(o))in r?d9.f(r,i,VI(0,a)):r[i]=a;return c.length=d,c},REt=un.TypeError,sQ=function(e,t){var n=e.exec;if(va(n)){var r=Eo(n,e,t);return r!==null&&ms(r),r}if(Gc(e)==="RegExp")return Eo(ry,e,t);throw REt("RegExp#exec called on incompatible receiver")},Oh=Hhe.UNSUPPORTED_Y,NEt=Math.min,Khe=[].push,IEt=zn(/./.exec),Th=zn(Khe),E2=zn("".slice);(function(e,t,n,r){var o=wd(e),a=!Ao(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!Ao(function(){var u=!1,c=/a/;return(c={}).constructor={},c.constructor[EEt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=zn(/./[o]),l=function(u,c,d){var f;return f="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,g){var v,m,b=tu(sv(this)),y=g===void 0?4294967295:g>>>0;if(y===0)return[];if(p===void 0)return[b];if(!Qs(v=p)||!((m=v[xEt])!==void 0?m:Gc(v)=="RegExp"))return Eo(c,b,p,y);for(var _,w,C,S=[],x=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),k=0,A=new RegExp(p.source,x+"g");(_=Eo(ry,A,b))&&!((w=A.lastIndex)>k&&(Th(S,E2(b,k,_.index)),_.length>1&&_.index<b.length&&SEt(Khe,S,iQ(_,1)),C=_[0].length,k=w,S.length>=y));)A.lastIndex===_.index&&A.lastIndex++;return k===b.length?!C&&IEt(A,"")||Th(S,""):Th(S,E2(b,k)),S.length>y?iQ(S,0,y):S}:"0".split(void 0,0).length?function(p,g){return p===void 0&&g===0?[]:Eo(c,this,p,g)}:c,[function(p,g){var v=sv(this),m=p==null?void 0:Ohe(p,u);return m?Eo(m,p,v,g):Eo(f,tu(v),p,g)},function(p,g){var v=ms(this),m=tu(p),b=d(f,v,m,g,f!==c);if(b.done)return b.value;var y=function(Y,W){var H,I=ms(Y).constructor;return I===void 0||(H=ms(I)[AEt])==null?W:function(B){if(Rhe(B))return B;throw kEt(khe(B)+" is not a constructor")}(H)}(v,RegExp),_=v.unicode,w=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(Oh?"g":"y"),C=new y(Oh?"^(?:"+v.source+")":v,w),S=g===void 0?4294967295:g>>>0;if(S===0)return[];if(m.length===0)return sQ(C,m)===null?[m]:[];for(var x=0,k=0,A=[];k<m.length;){C.lastIndex=Oh?0:k;var P,M=sQ(C,Oh?E2(m,k):m);if(M===null||(P=NEt(Mhe(C.lastIndex+(Oh?k:0)),m.length))===x)k=MEt(m,k,_);else{if(Th(A,E2(m,x,k)),A.length===S)return A;for(var N=1;N<=M.length-1;N++)if(Th(A,M[N]),A.length===S)return A;k=x=P}}return Th(A,E2(m,x)),A}]}(o,""[e],function(u,c,d,f,p){var g=zn(u),v=c.exec;return v===ry||v===Vx.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});ny(String.prototype,e,l[0]),ny(Vx,o,l[1])}r&&lv(Vx[o],"sham",!0)})("split",0,!!Ao(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})
Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=Er(Er({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=Er(Er({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=Er(Er({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=Er(Er({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){(function(r,o){var a=r.key,i=r.factory,s=r.config,l=Ei(Ei({},s),o||{});if(xm[a]!=null)throw new Error("Duplicated key '"+a+"' in menu items");xm[a]=i,function(u,c){c!=null&&(bue[u]=c)}(a,l)})(t,n)},e.registerRenderElem=function(t){(function(n){var r=n.type,o=n.renderElem;Uue[r||""]=o})(t)},e.registerRenderStyle=function(t){(function(n){rT.push(n)})(t)},e.registerElemToHtml=function(t){(function(n){var r=n.type,o=n.elemToHtml;_ue[r||""]=o})(t)},e.registerStyleToHtml=function(t){(function(n){XO.push(n)})(t)},e.registerPreParseHtml=function(t){(function(n){Fue.push(n)})(t)},e.registerParseElemHtml=function(t){(function(n){var r=n.selector,o=n.parseElemHtml;V8[r]=o})(t)},e.registerParseStyleHtml=function(t){(function(n){sR.push(n)})(t)},e.registerModule=function(t){Yd(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function Yd(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,a=e.styleToHtml,i=e.preParseHtml,s=e.parseElemsHtml,l=e.parseStyleHtml,u=e.editorPlugin;t&&t.forEach(function(c){return qr.registerMenu(c)}),n&&n.forEach(function(c){return qr.registerRenderElem(c)}),r&&qr.registerRenderStyle(r),o&&o.forEach(function(c){return qr.registerElemToHtml(c)}),a&&qr.registerStyleToHtml(a),i&&i.forEach(function(c){return qr.registerPreParseHtml(c)}),s&&s.forEach(function(c){return qr.registerParseElemHtml(c)}),l&&qr.registerParseStyleHtml(l),u&&qr.registerPlugin(u)}Jmt.forEach(function(e){return Yd(e)}),Yd(O6t),Yd(e8t),Yd(u5t),Yd(eSt),Yd(HEt);var Yhe='<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>',Xhe={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"]}},KEt={hoverbarKeys:Er(Er({},Xhe),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};qr.setEditorConfig(Er(Er({},KEt),{decorate:Ghe}));var qEt={hoverbarKeys:Xhe};qr.setSimpleEditorConfig(Er(Er({},qEt),{decorate:Ghe}));var GEt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:pt("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:pt("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:pt("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:pt("editor.image"),iconSvg:Yhe,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:pt("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"]};qr.setToolbarConfig(GEt);var YEt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:pt("editor.image"),iconSvg:Yhe,menuKeys:["insertImage","uploadImage"]},"inse