travel/service/public/static/js/chunk-0274a966.786dc35f.js

149 lines
801 KiB
JavaScript
Raw Normal View History

2024-07-02 16:15:03 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0274a966"],{"4e15":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return s}));var r=n("2b0e"),o=n("cb23"),i=function(){return i=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},i.apply(this,arguments)};function a(e){var t="请使用 '@".concat(e,"' 事件,不要放在 props 中");return t+"\nPlease use '@".concat(e,"' event instead of props")}var u=r["default"].extend({render:function(e){return e("div",{ref:"box"})},name:"Editor",data:function(){return{curValue:"",editor:null}},props:["defaultContent","defaultConfig","mode","defaultHtml","value"],mounted:function(){this.create()},watch:{value:function(e){e===this.curValue||this.setHtml(e)}},methods:{setHtml:function(e){var t=this.editor;null!=t&&t.setHtml(e)},create:function(){var e=this;if(null!=this.$refs.box){var t=this.defaultConfig||{},n=JSON.stringify(Array.isArray(this.defaultContent)?this.defaultContent:[]);Object(o["b"])({selector:this.$refs.box,html:this.defaultHtml||this.value||"",config:i(i({},t),{onCreated:function(n){if(e.editor=Object.seal(n),e.$emit("onCreated",n),t.onCreated){var r=a("onCreated");throw new Error(r)}},onChange:function(n){var r=n.getHtml();if(e.curValue=r,e.$emit("input",r),e.$emit("onChange",n),t.onChange){var o=a("onChange");throw new Error(o)}},onDestroyed:function(n){if(e.$emit("onDestroyed",n),t.onDestroyed){var r=a("onDestroyed");throw new Error(r)}},onMaxLength:function(n){if(e.$emit("onMaxLength",n),t.onMaxLength){var r=a("onMaxLength");throw new Error(r)}},onFocus:function(n){if(e.$emit("onFocus",n),t.onFocus){var r=a("onFocus");throw new Error(r)}},onBlur:function(n){if(e.$emit("onBlur",n),t.onBlur){var r=a("onBlur");throw new Error(r)}},customAlert:function(n,r){if(e.$emit("customAlert",n,r),t.customAlert){var o=a("customAlert");throw new Error(o)}},customPaste:function(n,r){if(t.customPaste){var o=a("customPaste");throw new Error(o)}var i;return e.$emit("customPaste",n,r,(function(e){i=e})),i}}),content:JSON.parse(n),mode:this.mode||"default"})}}}}),s=r["default"].extend({name:"Toolbar",render:function(e){return e("div",{ref:"box"})},props:["editor","defaultConfig","mode"],methods:{create:function(e){null!=this.$refs.box&&null!=e&&(o["a"].getToolbar(e)||Object(o["c"])({editor:e,selector:this.$refs.box,config:this.defaultConfig||{},mode:this.mode||"default"}))}},watch:{editor:{handler:function(e){null!=e&&this.create(e)},immediate:!0}}})},"560e":function(e,t,n){},"593b":function(e,t,n){"use strict";n("bd29")},af93:function(e,t,n){var r=n("23e7"),o=n("861d"),i=n("f183").onFreeze,a=n("bb2f"),u=n("d039"),s=Object.seal,l=u((function(){s(1)}));r({target:"Object",stat:!0,forced:l,sham:!a},{seal:function(e){return s&&o(e)?s(i(e)):e}})},bd29:function(e,t,n){},cb23:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return tk})),n.d(t,"b",(function(){return oye})),n.d(t,"c",(function(){return iye}));var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e){var t={exports:{}};return e(t,t.exports),t.exports}var a,u,s=function(e){return e&&e.Math==Math&&e},l=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r&&r)||function(){return this}()||Function("return this")(),c=Function.prototype,f=c.apply,d=c.bind,p=c.call,h="object"==typeof Reflect&&Reflect.apply||(d?p.bind(f):function(){return p.apply(f,arguments)}),v=Function.prototype,g=v.bind,y=v.call,m=g&&g.bind(y),b=g?function(e){return e&&m(y,e)}:function(e){return e&&function(){return y.apply(e,arguments)}},w=function(e){return"function"==typeof e},E=function(e){try{return!!e()}catch(e){return!0}},D=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),x=Funct
2024-07-02 14:58:25 +08:00
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function Ml(e){return"[object Object]"===Object.prototype.toString.call(e)}function zl(e){var t,n;return!1!==Ml(e)&&(void 0===(t=e.constructor)||!1!==Ml(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function $l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Hl(e){return!!e&&!!e[Oc]}function Vl(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===kc}(e)||Array.isArray(e)||!!e[Ac]||!!e.constructor[Ac]||Kl(e)||Yl(e))}function Ul(e,t,n){void 0===n&&(n=!1),0===Wl(e)?(n?Object.keys:Bc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Wl(e){var t=e[Oc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Kl(e)?2:Yl(e)?3:0}function Gl(e,t){return 2===Wl(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ql(e,t,n){var r=Wl(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Kl(e){return Dc&&e instanceof Map}function Yl(e){return xc&&e instanceof Set}function Xl(e){return e.o||e.t}function Jl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Fc(e);delete t[Oc];for(var n=Bc(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Zl(e,t){return void 0===t&&(t=!1),ec(e)||Hl(e)||!Vl(e)||(Wl(e)>1&&(e.set=e.add=e.clear=e.delete=Ql),Object.freeze(e),t&&Ul(e,(function(e,t){return Zl(t,!0)}),!0)),e}function Ql(){$l(2)}function ec(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function tc(e){var t=Tc[e];return t||$l(18,e),t}function nc(){return wc}function rc(e,t){t&&(tc("Patches"),e.u=[],e.s=[],e.v=t)}function oc(e){ic(e),e.p.forEach(uc),e.p=null}function ic(e){e===wc&&(wc=e.l)}function ac(e){return wc={p:[],l:wc,h:e,m:!0,_:0}}function uc(e){var t=e[Oc];0===t.i||1===t.i?t.j():t.O=!0}function sc(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||tc("ES5").S(t,e,r),r?(n[Oc].P&&(oc(t),$l(4)),Vl(e)&&(e=lc(t,e),t.l||fc(t,e)),t.u&&tc("Patches").M(n[Oc],e,t.u,t.s)):e=lc(t,n,[]),oc(t),t.u&&t.v(t.u,t.s),e!==Cc?e:void 0}function lc(e,t,n){if(ec(t))return t;var r=t[Oc];if(!r)return Ul(t,(function(o,i){return cc(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return fc(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Jl(r.k):r.o;Ul(3===r.i?new Set(o):o,(function(t,i){return cc(e,r,o,t,i,n)})),fc(e,o,!1),n&&e.u&&tc("Patches").R(r,n,e.u,e.s)}return r.o}function cc(e,t,n,r,o,i){if(Hl(o)){var a=lc(e,o,i&&t&&3!==t.i&&!Gl(t.D,r)?i.concat(r):void 0);if(ql(n,r,a),!Hl(a))return;e.m=!1}if(Vl(o)&&!ec(o)){if(!e.h.F&&e._<1)return;lc(e,o),t&&t.A.l||fc(e,o)}}function fc(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Zl(t,n)}function dc(e,t){var n=e[Oc];return(n?Xl(n):e)[t]}function pc(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 hc(e){e.P||(e.P=!0,e.l&&hc(e.l))}function vc(e){e.o||(e.o=Jl(e.t))}function gc(e,t,n){var r=Kl(t)?tc("MapSet").N(t,n):Yl(t)?tc("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:nc(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=_c;n&&(o=[r],i=Pc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):tc("ES5").J(t,n);return(n?n.A:nc()).p.push(r),r}function yc(e){return Hl(e)||$l(22,e),function e(t){if(!Vl(t))return t;var n,r=t[Oc],o=Wl(t);if(r){if(!r.P&&(r.i<4||!tc("ES5").K(r)))return r.t;r.I=!0,n=mc(t,o),r.I=!1}else n=mc(t,o);return Ul(n,(function(t,o){r&&function(e,t){return 2===Wl(e)?e.get(t):e[t]}(r.t,t)===o||ql(n,t,e(o))})),3===o?new Set(n):n}(e)}function mc(e,t){s
/**
* 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 iy(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const o of Object.keys(t))if("_"!==o){let e=t[o];"string"==typeof e&&(e=n[Symbol.replace](e,"$$$$")),r=oy(r,new RegExp(`%\\{${o}\\}`,"g"),e)}return r}var ay=(Zg=ry("apply"),class{constructor(e){Object.defineProperty(this,Zg,{value:uy}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(ty(this,Zg)[Zg],this):ty(this,Zg)[Zg](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error("missing string: "+e);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return iy(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 iy(n,t)}});function uy(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var sy=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e},ly={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:cy}=ly,fy=e=>crypto.getRandomValues(new Uint8Array(e)),dy=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var py={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)=>dy(e,t,fy),customRandom:dy,urlAlphabet:cy,random:fy},hy=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function vy(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}vy.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var gy=/[\/\+\.]/,yy=function(e,t){function n(t){var n=function(e,t,n){var r=new vy(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,gy);return n&&n.length>=2}return t?n(t.split(";")[0]):n},my=0;function by(e){return"__private_"+my+++"_"+e}var wy=by("publish");class Ey{constructor(){Object.defineProperty(this,wy,{value:Dy}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,wy)[wy](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Dy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function vx(e){return"[object Object]"===Object.prototype.toString.call(e)}dx({target:"Object",stat:!0,forced:hx},{keys:function(e){return px(Sw(e))}});var gx={isHistory(e){return!1!==vx(t=e)&&(void 0===(n=t.constructor)||!1!==vx(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||zf.isOperationList(e.redos[0]))&&(0===e.undos.length||zf.isOperationList(e.undos[0]));var t,n,r}},yx=new WeakMap,mx=new WeakMap,bx={isHistoryEditor:e=>gx.isHistory(e.history)&&_f.isEditor(e),isMerging:e=>mx.get(e),isSaving:e=>yx.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=bx.isMerging(e);mx.set(e,!1),t(),mx.set(e,n)},withoutSaving(e,t){var n=bx.isSaving(e);yx.set(e,!1),t(),yx.set(e,n)}},wx=fw.String,Ex=function(e){if("Symbol"===QE(e))throw TypeError("Cannot convert a Symbol value to a string");return wx(e)},Dx=function(){var e=oE(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},xx=WE.PROPER,Sx=RegExp.prototype,Cx=Sx.toString,Ax=ww(Dx),Ox=zw((function(){return"/a/b"!=Cx.call({source:"a",flags:"b"})})),kx=xx&&"toString"!=Cx.name;(Ox||kx)&&GE(RegExp.prototype,"toString",(function(){var e=oE(this),t=Ex(e.source),n=e.flags;return"/"+t+"/"+Ex(void 0===n&&uE(Sx,e)&&!("flags"in Sx)?Ax(e):n)}),{unsafe:!0});var Bx,Fx=Xw?Object.defineProperties:function(e,t){oE(e);for(var n,r=zD(t),o=px(t),i=o.length,a=0;i>a;)EE.f(e,n=o[a++],r[n]);return e},Tx=Pw("document","documentElement"),_x=_E("IE_PROTO"),Px=function(){},jx=function(e){return"<script>"+e+"<\/script>"},Nx=function(e){e.write(jx("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ix=function(){try{Bx=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ix="undefined"!=typeof document?document.domain&&Bx?Nx(Bx):((t=eE("iframe")).style.display="none",Tx.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(jx("document.F=Object")),e.close(),e.F):Nx(Bx);for(var n=JD.length;n--;)delete Ix.prototype[JD[n]];return Ix()};PE[_x]=!0;var Lx=Object.create||function(e,t){var n;return null!==e?(Px.prototype=oE(e),n=new Px,Px.prototype=null,n[_x]=e):n=Ix(),void 0===t?n:Fx(n,t)},Rx=qw("unscopables"),Mx=Array.prototype;null==Mx[Rx]&&EE.f(Mx,Rx,{configurable:!0,value:Lx(null)});var zx=function(e){Mx[Rx][e]=!0},$x=qD.includes;dx({target:"Array",proto:!0},{includes:function(e){return $x(this,e,arguments.length>1?arguments[1]:void 0)}}),zx("includes");var Hx=qw("match"),Vx=function(e){var t;return Jw(e)&&(void 0!==(t=e[Hx])?!!t:"RegExp"==YE(e))},Ux=fw.TypeError,Wx=function(e){if(Vx(e))throw Ux("The method doesn't accept regular expressions");return e},Gx=qw("match"),qx=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[Gx]=!1,"/./"[e](t)}catch(e){}}return!1},Kx=ww("".indexOf);dx({target:"String",proto:!0,forced:!qx("includes")},{includes:function(e){return!!~Kx(Ex(Dw(this)),Ex(Wx(e)),arguments.length>1?arguments[1]:void 0)}});var Yx=/"/g,Xx=ww("".replace);dx({target:"String",proto:!0,forced:zw((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Ex(Dw(this)),r="<a",(r+=' name="'+Xx(Ex(t),Yx,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Jx=function(e,t,n){var r,o;oE(e);try{if(!(r=hE(e,"return"))){if("throw"===t)throw n;return n}r=aE(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return oE(r),n},Zx=function(e,t,n,r){try{return r?t(oE(n)[0],n[1]):t(n)}catch(t){Jx(e,"throw",t)}},Qx={},eS=qw("iterator"),tS=Array.prototype,nS=function(e){return void 0!==e&&(Qx.Array===e||tS[eS]===e)},rS=function(e,t,n){var r=mE(t);r in e?EE.f(e,r,DE(0,n)):e[r]=n},oS=qw("iterator"),iS=function(e){if(null!=e)return hE(e,oS)||hE(e,"@@iterator")||Qx[QE(e)]},aS=fw.TypeError,uS=function(e,t){var n=arguments.length<2?iS(e):t;if(pE(n))return oE(aE(n,e));throw aS(fE(e)+" is not iterable")},sS=fw.Array,lS=qw("iterator"),cS=!1;try{var fS=0,dS={next:function(){return{done:!!fS++}},return:function(){cS=!0}};dS[lS]=function(){return this},Array
/*! *****************************************************************************
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 oA=function(e,t){return oA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},oA(e,t)};function iA(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}oA(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aA=function(){return aA=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},aA.apply(this,arguments)};function uA(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function sA(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function lA(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var cA=0,fA=function(){this.id=""+cA++},dA=$E.set,pA=$E.getterFor("Array Iterator"),hA=GS(Array,"Array",(function(e,t){dA(this,{type:"Array Iterator",target:zD(e),index:0,kind:t})}),(function(){var e=pA(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Qx.Arguments=Qx.Array,zx("keys"),zx("values"),zx("entries");var vA=function(e,t,n){for(var r in t)GE(e,r,t[r],n);return e},gA=fw.Array,yA=Math.max,mA=function(e,t,n){for(var r=vD(e),o=WD(t,r),i=WD(void 0===n?r:n,r),a=gA(yA(i-o,0)),u=0;o<i;o++,u++)rS(a,u,e[o]);return a.length=u,a},bA=QD.f,wA="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],EA={f:function(e){return wA&&"Window"==YE(e)?function(e){try{return bA(e)}catch(e){return mA(wA)}}(e):bA(zD(e))}},DA=zw((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),xA=Object.isExtensible,SA=zw((function(){xA(1)}))||DA?function(e){return!!Jw(e)&&(!DA||"ArrayBuffer"!=YE(e))&&(!xA||xA(e))}:xA,CA=!zw((function(){return Object.isExtensible(Object.preventExtensions({}))})),AA=uw((function(e){var t=EE.f,n=!1,r=Fw("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=QD.f,t=ww([].splice),o={};o[r]=1,e(o).length&&(QD.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},dx({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:EA.f}))},fastKey:function(e,t){if(!Jw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Aw(e,r)){if(!SA(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Aw(e,r)){if(!SA(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return CA&&n&&SA(e)&&!Aw(e,r)&&i(e),e}};PE[r]=!0})),OA=fw.TypeError,kA=function(e,t){this.stopped=e,this.result=t},BA=kA.prototype,FA=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=aD(t,c),v=function(e){return r&&Jx(r,"normal",e),new kA(!0,e)},g=function(e){return f?(oE(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=iS(e)))throw OA(fE(e)+" is not iterable");if(nS(o)){for(i=0,a=vD(e);a>i;i++)if((u=g(e[i]))&&uE(BA,u))return u;return new kA(!1)}r=uS(e,o)}for(s=r.next;!(l=aE(s,r)).done;){try{u=g(l.value)}catch(e){Jx(r,"throw",e)}if("object"==typeof u&&u&&uE(BA,u))return u}return new kA(!1)},TA=fw.TypeError,_A=function(e,t){if(uE(t,e))return e;throw TA("Incorrect invocation")},PA=function(e,t,n){var r,o;return MS&&Tw(r=t.construc
/*! *****************************************************************************
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 nM(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}tM(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rM=function(){return rM=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},rM.apply(this,arguments)};function oM(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function iM(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function aM(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function uM(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function sM(e){var t=uM(_f.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Af.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Lf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!nd.isText(o[0])&&(wd.setNodes(e,{type:"paragraph"}),!0)}var lM={renderElems:[sj],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[eM],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){sM(r)||t(e)},r.deleteForward=function(e){sM(r)||n(e)},r}},cM=/"/g,fM=kj("".replace),dM=function(e,t,n,r){var o=fL(Ij(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+fM(fL(r),cM,"&quot;")+'"'),i+">"+o+"</"+t+">"},pM=function(e){return vj((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function hM(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function vM(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}II({target:"String",proto:!0,forced:pM("bold")},{bold:function(){return dM(this,"b","","")}}),II({target:"String",proto:!0,forced:pM("italics")},{italics:function(){return dM(this,"i","","")}}),II({target:"String",proto:!0,forced:pM("sub")},{sub:function(){return dM(this,"sub","","")}}),II({target:"String",proto:!0,forced:pM("sup")},{sup:
/*! *****************************************************************************
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 ZZ(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}JZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function QZ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eQ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function tQ(e){return _f.nodes(e,{at:e.selection||void 0,match:function(t){return 1===tk.findPath(e,t).length}})}var nQ=OY.includes;RX({target:"Array",proto:!0},{includes:function(e){return nQ(this,e,arguments.length>1?arguments[1]:void 0)}}),GY("includes");var rQ,oQ,iQ=function(){var e=KK(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},aQ=eK.RegExp,uQ=aK((function(){var e=aQ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),sQ=uQ||aK((function(){return!aQ("a","y").sticky})),lQ={BROKEN_CARET:uQ||aK((function(){var e=aQ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:sQ,UNSUPPORTED_Y:uQ},cQ=eK.RegExp,fQ=aK((function(){var e=cQ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),dQ=eK.RegExp,pQ=aK((function(){var e=dQ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),hQ=pX.get,vQ=bK("native-string-replace",String.prototype.replace),gQ=RegExp.prototype.exec,yQ=gQ,mQ=iK("".charAt),bQ=iK("".indexOf),wQ=iK("".replace),EQ=iK("".slice),DQ=(oQ=/b*/g,tY(gQ,rQ=/a/,"a"),tY(gQ,oQ,"a"),0!==rQ.lastIndex||0!==oQ.lastIndex),xQ=lQ.BROKEN_CARET,SQ=void 0!==/()??/.exec("")[1];(DQ||SQ||xQ||fQ||pQ)&&(yQ=function(e){var t,n,r,o,i,a,u,s=this,l=hQ(s),c=wJ(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=tY(yQ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=xQ&&s.sticky,h=tY(iQ,s),v=s.source,g=0,y=c;if(p&&(h=wQ(h,"y",""),-1===bQ(h,"g")&&(h+="g"),y=EQ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==mQ(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),SQ&&(n=new RegExp("^"+v+"$(?!\\s)",h)),DQ&&(r=s.lastIndex),o=tY(gQ,p?n:s,y),p?o?(o.input=EQ(o.input,g),o[0]=EQ(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:DQ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),SQ&&o&&o.length>1&&tY(vQ,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=VY(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var CQ=yQ;RX({target:"RegExp",proto:!0,forced:/./.exec!==CQ},{exec:CQ});var AQ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return tk.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!tk.getSelectedElems(e).some((function(t){if(_f.isVoid(e,t)&&_f.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?wd.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):wd.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),OQ='<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>',kQ='<svg v
/*! *****************************************************************************
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(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}$2({target:"Array",proto:!0,forced:!U4},{slice:function(e,t){var n,r,o,i=V0(this),a=E2(i),u=m2(e,a),s=m2(void 0===t?a:t,a);if(T4(i)&&(n=i.constructor,(M4(n)&&(n===G4||T4(n.prototype))||W0(n)&&null===(n=n[W4]))&&(n=void 0),n===G4||void 0===n))return V4(i,u,s);for(r=new(void 0===n?G4:n)(q4(s-u,0)),o=0;u<s;u++,o++)u in i&&z4(r,o,i[u]);return r.length=o,r}});var J4=j0(j0.bind),Z4=O1("species"),Q4=E0.Array,e6=function(e,t){return new(function(e){var t;return T4(e)&&(t=e.constructor,(M4(t)&&(t===Q4||T4(t.prototype))||W0(t)&&null===(t=t[Z4]))&&(t=void 0)),void 0===t?Q4:t}(e))(0===t?0:t)},t6=j0([].push),n6=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=g1(s),v=z0(h),g=function(e,t){return s1(e),void 0===t?e:J4?J4(e,t):function(){return e.apply(t,arguments)}}(l,c),y=E2(v),m=0,b=f||e6,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:t6(w,d)}else switch(e){case 4:return!1;case 7:t6(w,d)}return i?-1:r||o?o:w}},r6={forEach:n6(0),map:n6(1),filter:n6(2),some:n6(3),every:n6(4),find:n6(5),findIndex:n6(6),filterReject:n6(7)},o6=r6.map;$2({target:"Array",proto:!0,forced:!H4("map")},{map:function(e){return o6(this,e,arguments.length>1?arguments[1]:void 0)}});var i6=V2?{}.toString:function(){return"[object "+q2(this)+"]"};function a6(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function u6(e){return a6(e).every((function(e){return!!e.isHeader}))}V2||d2(Object.prototype,"toString",i6,{unsafe:!0});var s6=f2.PROPER,l6=RegExp.prototype,c6=l6.toString,f6=j0(Q2),d6=D0((function(){return"/a/b"!=c6.call({source:"a",flags:"b"})})),p6=s6&&"toString"!=c6.name;(d6||p6)&&d2(RegExp.prototype,"toString",(function(){var e=M1(this),t=Y2(e.source),n=e.flags;return"/"+t+"/"+Y2(void 0===n&&K0(l6,e)&&!("flags"in l6)?f6(e):n)}),{unsafe:!0});var h6=O1("unscopables"),v6=Array.prototype;null==v6[h6]&&H1.f(v6,h6,{configurable:!0,value:h4(null)});var g6=r6.find,y6=!0;"find"in[]&&Array(1).find((function(){y6=!1})),$2({target:"Array",proto:!0,forced:y6},{find:function(e){return g6(this,e,arguments.length>1?arguments[1]:void 0)}}),v6[h6].find=!0;var m6=Function.prototype,b6=m6.apply,w6=m6.bind,E6=m6.call,D6="object"==typeof Reflect&&Reflect.apply||(w6?E6.bind(b6):function(){return E6.apply(b6,arguments)}),x6=O1("species"),S6=RegExp.prototype,C6=function(e,t,n,r){var o=O1(e),i=!D0((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!D0((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[x6]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=j0(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=j0(e),s=t.exec;return s===F4||s===S6.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));d2(String.prototype,e,s[0]),d2(S6,o,s[1])}r&&V1(S6[o],"sham",!0)},A6=O1("match"),O6=E0.TypeError,k6=O1("species"),B6=j0("".charAt),F6=j0("".charCodeAt),T6=j0("".slice),_6=function(e){return function(t,n){var r,o,i=Y2(H0(t)),a=v2(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=F6(i,a))<55296||r>56319||a+1===u||(o=F6(i,a+1))<56320||o>57343?e?B6(i,a):r:e?T6(i,a,a+2):o-56320+(r-55296<<10)+65536}},P6=(_6(!1),_6(!0)),j6=function(e,t,n){return t+(n?P6(e,t).length:1)},N6=E0.Array,I6=Math.max,L6=function(e,t,n){for(var r=E2(e),o=m2(t,r),i=m2(void 0===n?r:n,r),a=N6(I6(i-o,0)),u=0;o<i;o++,u++)z4(a,u,e[o]);return a.length=u,a},R6=E0.TypeError,M6=function(e,t){var n=e.exec;if(U0(n)){var r=C0(n,e,t);return null!==r&&M1(r),r}if("RegExp"===L0(
/*! *****************************************************************************
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 Z3=function(){return Z3=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},Z3.apply(this,arguments)};function Q3(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function e5(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function t5(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function n5(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}var r5="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function o5(e){var t={exports:{}};return e(t,t.exports),t.exports}var i5,a5,u5=function(e){return e&&e.Math==Math&&e},s5=u5("object"==typeof globalThis&&globalThis)||u5("object"==typeof window&&window)||u5("object"==typeof self&&self)||u5("object"==typeof r5&&r5)||function(){return this}()||Function("return this")(),l5=function(e){try{return!!e()}catch(e){return!0}},c5=!l5((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f5=Function.prototype.call,d5=f5.bind?f5.bind(f5):function(){return f5.apply(f5,arguments)},p5={}.propertyIsEnumerable,h5=Object.getOwnPropertyDescriptor,v5={f:h5&&!p5.call({1:2},1)?function(e){var t=h5(this,e);return!!t&&t.enumerable}:p5},g5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},y5=Function.prototype,m5=y5.bind,b5=y5.call,w5=m5&&m5.bind(b5),E5=m5?function(e){return e&&w5(b5,e)}:function(e){return e&&function(){return b5.apply(e,arguments)}},D5=E5({}.toString),x5=E5("".slice),S5=function(e){return x5(D5(e),8,-1)},C5=s5.Object,A5=E5("".split),O5=l5((function(){return!C5("z").propertyIsEnumerable(0)}))?function(e){return"String"==S5(e)?A5(e,""):C5(e)}:C5,k5=s5.TypeError,B5=function(e){if(null==e)throw k5("Can't call method on "+e);return e},F5=function(e){return O5(B5(e))},T5=function(e){return"function"==typeof e},_5=function(e){return"object"==typeof
/*! *****************************************************************************
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 Ose=function(){return Ose=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},Ose.apply(this,arguments)};function kse(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function Bse(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function Fse(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}var Tse=Pie("unscopables"),_se=Array.prototype;null==_se[Tse]&&Kie.f(_se,Tse,{configurable:!0,value:Nue(null)});var Pse,jse,Nse,Ise=function(e){_se[Tse][e]=!0},Lse={},Rse=!koe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Mse=oae("IE_PROTO"),zse=Ooe.Object,$se=zse.prototype,Hse=Rse?zse.getPrototypeOf:function(e){var t=Die(e);if(Sie(t,Mse))return t[Mse];var n=t.constructor;return Xoe(n)&&t instanceof n?n.prototype:t instanceof zse?$se:null},Vse=Pie("iterator"),Use=!1;[].keys&&("next"in(Nse=[].keys())?(jse=Hse(Hse(Nse)))!==Object.prototype&&(Pse=jse):Use=!0);var Wse=null==Pse||koe((function(){var e={};return Pse[Vse].call(e)!==e}));Wse&&(Pse={}),Xoe(Pse[Vse])||mae(Pse,Vse,(function(){return this}));var Gse={IteratorPrototype:Pse,BUGGY_SAFARI_ITERATORS:Use},qse=Kie.f,Kse=Pie("toStringTag"),Yse=function(e,t,n){e&&!Sie(e=n?e:e.prototype,Kse)&&qse(e,Kse,{configurable:!0,value:t})},Xse=Gse.IteratorPrototype,Jse=function(){return this},Zse=Ooe.String,Qse=Ooe.TypeError,ele=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=zoe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Wie(n),function(e){if("object"==typeof e||Xoe(e))return e;throw Qse("Can't set "+Zse(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),tle=yae.PROPER,nle=yae.CONFIGURABLE,rle=Gse.IteratorPrototype,ole=Gse.BUGGY_SAFARI_ITERATORS,ile=Pie("iterator"),ale=function(){return this},ule=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Nue(Xse,{next:Noe(1,n)}),Yse(e,o,!1),Lse[o]=Jse}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!ole&&e in p)return p[e];switch(e){case"keys":case"values":ca
/**
* 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),void 0!==wde&&(wde.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\
/*! *****************************************************************************
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(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var v=h.value,g=d+Fve(v);"string"!=typeof v&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:g},r)),d=g}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},Yge=function(){return Yge=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},Yge.apply(this,arguments)},Xge=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Yge(Yge({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Yge(Yge({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Yge(Yge({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Yge(Yge({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,o=e.config,i=aA(aA({},o),t||{});if(null!=ok[n])throw new Error("Duplicated key '"+n+"' in menu items");ok[n]=r,function(e,t){null!=t&&(rk[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;HT[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){$T.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;yk[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){gk.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){iF.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;uF[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){aF.push(e)}(e)},e.registerModule=function(e){Jge(e)},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 Jge(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return Xge.registerMenu(e)})),n&&n.forEach((function(e){return Xge.registerRenderElem(e)})),r&&Xge.registerRenderStyle(r),o&&o.forEach((function(e){return Xge.registerElemToHtml(e)})),i&&Xge.registerStyleToHtml(i),a&&a.forEach((function(e){return Xge.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Xge.registerParseElemHtml(e)})),s&&Xge.registerParseStyleHtml(s),l&&Xge.registerPlugin(l)}Kq.forEach((function(e){return Jge(e)})),Jge(h0),Jge(J3),Jge(Eoe),Jge(bde),Jge(Wge);var Zge='<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>',Qge={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"]}},eye={hoverbarKeys:Yge(Yge({},Qge),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Xge.setEditorConfig(Yge(Yge({},eye),{decorate:Kge}));var tye={hoverbarKeys:Qge};Xge.setSimpleEditorConfig(Yge(Yge({},tye),{decorate:Kge}));var nye={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:$P("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:$P("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:$P("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:$P("editor.image"),iconSvg:Zge,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:$P("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"]};Xge.setToolbarConfig(nye);var rye={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:$P("editor.image"),iconSvg:Zge,menuKeys:["