(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0727e4df"],{"04d1":function(e,t,n){var r=n("342f"),o=r.match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},"45c7":function(e,t,n){},"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}}})},"4e82":function(e,t,n){"use strict";var r=n("23e7"),o=n("e330"),i=n("59ed"),a=n("7b0b"),u=n("07fa"),s=n("083a"),l=n("577e"),c=n("d039"),f=n("addb"),d=n("a640"),p=n("04d1"),h=n("d998"),g=n("2d00"),v=n("512ce"),y=[],m=o(y.sort),b=o(y.push),w=c((function(){y.sort(void 0)})),E=c((function(){y.sort(null)})),x=d("sort"),C=!c((function(){if(g)return g<70;if(!(p&&p>3)){if(h)return!0;if(v)return v<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:t+r,v:n})}for(y.sort((function(e,t){return t.v-e.v})),r=0;r<y.length;r++)t=y[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}})),S=w||!E||!x||!C,D=function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:l(t)>l(n)?1:-1}};r({target:"Array",proto:!0,forced:S},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(C)return void 0===e?m(t):m(t,e);var n,r,o=[],l=u(t);for(r=0;r<l;r++)r in t&&b(o,t[r]);f(o,D(e)),n=u(o),r=0;while(r<n)t[r]=o[r++];while(r<l)s(t,r++);return t}})},"4f15":function(module,exports,__webpack_require__){var require,require;!function(e){module.exports=e()}((function(){var define,module,exports;return function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return require(a,!0);if(i)return i(a,!0);throw new Error("Cannot find module '"+a+"'")}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){var n=t[a][1][e];return o(n||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */
var r=e("base64-js"),o=e("ieee754"),i=e("is-array");n.Buffer=u,n.SlowBuffer=u,n.INSPECT_MAX_BYTES=50,u.poolSize=8192;var a=1073741823;function u(e,t,n){if(!(this instanceof u))return new u(e,t,n);var r,o,s,l=typeof e;if("number"===l)r=e>0?e>>>0:0;else if("string"===l)"base64"===t&&(e=k(e)),r=u.byteLength(e,t);else{if("object"!==l||null===e)throw new TypeError("must start with number, buffer, array or string");"Buffer"===e.type&&i(e.data)&&(e=e.data),r=+e.length>0?Math.floor(+e.length):0}if(this.length>a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");if(u.TYPED_ARRAY_SUPPORT?o=u._augment(new Uint8Array(r)):(o=this,o.length=r,o._isBuffer=!0),u.TYPED_ARRAY_SUPPORT&&"number"===typeof e.byteLength)o._set(e);else if(T(e))if(u.isBuffer(e))for(s=0;s<r;s++)o[s]=e.readUInt8(s);else for(s=0;s<r;s++)o[s]=(e[s]%256+256)%256;else if("string"===l)o.write(e,0,t);else if("number"===l&&!u.TYPED_ARRAY_SUPPORT&&!n)for(s=0;s<r;s++)o[s]=0;return o}function s(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=t.length;if(i%2!==0)throw new Error("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;a++){var u=parseInt(t.substr(2*a,2),16);if(isNaN(u))throw new Error("Invalid hex string");e[n+a]=u}return a}function l(e,t,n,r){var o=R(P(t),e,n,r);return o}function c(e,t,n,r){var o=R(j(t),e,n,r);return o}function f(e,t,n,r){return c(e,t,n,r)}function d(e,t,n,r){var o=R(N(t),e,n,r);return o}function p(e,t,n,r){var o=R(I(t),e,n,r,2);return o}function h(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function g(e,t,n){var r="",o="";n=Math.min(e.length,n);for(var i=t;i<n;i++)e[i]<=127?(r+=L(o)+String.fromCharCode(e[i]),o=""):o+="%"+e[i].toString(16);return r+L(o)}function v(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;o++)r+=String.fromCharCode(e[o]);return r}function y(e,t,n){return v(e,t,n)}function m(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;i++)o+=F(e[i]);return o}function b(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function w(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function E(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>o||t<i)throw new TypeError("value is out of bounds");if(n+r>e.length)throw new TypeError("index out of range")}function x(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;o++)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function C(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;o++)e[n+o]=t>>>8*(r?o:3-o)&255}function S(e,t,n,r,o,i){if(t>o||t<i)throw new TypeError("value is out of bounds");if(n+r>e.length)throw new TypeError("index out of range")}function D(e,t,n,r,i){return i||S(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function A(e,t,n,r,i){return i||S(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}u.TYPED_ARRAY_SUPPORT=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"===typeof t.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(n){return!1}}(),u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i&&e[o]===t[o];o++);return o!==i&&(n=e[o],r=t[o]),n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError("Usage: Buffer.concat(list[, length])");if(0===e.length)return new u(0);if(1===e.length)return e[0];var n;if(void 0===t)for(t=0,n=0;n<e.length;n++)t+=e[n].length;var r=new u(t),o=0;for(n=0;n<e.length;n++){var a=e[n];a.copy(r,o),o+=a.length}return r},u.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"ascii":case"binary":case"raw":n=e.length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;case"hex":n=e.length>>>1;break;case"utf8":case"utf-8":n=P(e).length;break;case"base64":n=N(e).length;break;default:n=e.length}return n},u.prototype.length=void 0,u.prototype.parent=void 0,u.prototype.toString=function(e,t,n){var r=!1;if(t>>>=0,n=void 0===n||n===1/0?this.length:n>>>0,e||(e="utf8"),t<0&&(t=0),n>this.length&&(n=this.length),n<=t)return"";while(1)switch(e){case"hex":return m(this,t,n);case"utf8":case"utf-8":return g(this,t,n);case"ascii":return v(this,t,n);case"binary":return y(this,t,n);case"base64":return h(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return 0===u.compare(this,e)},u.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return u.compare(this,e)},u.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},u.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},u.prototype.write=function(e,t,n,r){if(isFinite(t))isFinite(n)||(r=n,n=void 0);else{var o=r;r=t,t=n,n=o}t=Number(t)||0;var i,a=this.length-t;switch(n?(n=Number(n),n>a&&(n=a)):n=a,r=String(r||"utf8").toLowerCase(),r){case"hex":i=s(this,e,t,n);break;case"utf8":case"utf-8":i=l(this,e,t,n);break;case"ascii":i=c(this,e,t,n);break;case"binary":i=f(this,e,t,n);break;case"base64":i=d(this,e,t,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=p(this,e,t,n);break;default:throw new TypeError("Unknown encoding: "+r)}return i},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)return u._augment(this.subarray(e,t));for(var r=t-e,o=new u(r,void 0,!0),i=0;i<r;i++)o[i]=this[i+e];return o},u.prototype.readUInt8=function(e,t){return t||w(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||w(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||w(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readInt8=function(e,t){return t||w(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||w(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||w(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||w(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||w(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):x(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e):C(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):C(this,e,t,!1),t+4},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):x(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):C(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):C(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return A(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return A(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){var o=this;if(n||(n=0),r||0===r||(r=this.length),t||(t=0),r!==n&&0!==e.length&&0!==o.length){if(r<n)throw new TypeError("sourceEnd < sourceStart");if(t<0||t>=e.length)throw new TypeError("targetStart out of bounds");if(n<0||n>=o.length)throw new TypeError("sourceStart out of bounds");if(r<0||r>o.length)throw new TypeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(var a=0;a<i;a++)e[a+t]=this[a+n];else e._set(this.subarray(n,n+i),t)}},u.prototype.fill=function(e,t,n){if(e||(e=0),t||(t=0),n||(n=this.length),n<t)throw new TypeError("end < start");if(n!==t&&0!==this.length){if(t<0||t>=this.length)throw new TypeError("start out of bounds");if(n<0||n>this.length)throw new TypeError("end out of bounds");var r;if("number"===typeof e)for(r=t;r<n;r++)this[r]=e;else{var o=P(e.toString()),i=o.length;for(r=t;r<n;r++)this[r]=o[r%i]}return this}},u.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(u.TYPED_ARRAY_SUPPORT)return new u(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var _=u.prototype;u._augment=function(e){return e.constructor=u,e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=_.get,e.set=_.set,e.write=_.write,e.toString=_.toString,e.toLocaleString=_.toString,e.toJSON=_.toJSON,e.equals=_.equals,e.compare=_.compare,e.copy=_.copy,e.slice=_.slice,e.readUInt8=_.readUInt8,e.readUInt16LE=_.readUInt16LE,e.readUInt16BE=_.readUInt16BE,e.readUInt32LE=_.readUInt32LE,e.readUInt32BE=_.readUInt32BE,e.readInt8=_.readInt8,e.readInt16LE=_.readInt16LE,e.readInt16BE=_.readInt16BE,e.readInt32LE=_.readInt32LE,e.readInt32BE=_.readInt32BE,e.readFloatLE=_.readFloatLE,e.readFloatBE=_.readFloatBE,e.readDoubleLE=_.readDoubleLE,e.readDoubleBE=_.readDoubleBE,e.writeUInt8=_.writeUInt8,e.writeUInt16LE=_.writeUInt16LE,e.writeUInt16BE=_.writeUInt16BE,e.writeUInt32LE=_.writeUInt32LE,e.writeUInt32BE=_.writeUInt32BE,e.writeInt8=_.writeInt8,e.writeInt16LE=_.writeInt16LE,e.writeInt16BE=_.writeInt16BE,e.writeInt32LE=_.writeInt32LE,e.writeInt32BE=_.writeInt32BE,e.writeFloatLE=_.writeFloatLE,e.writeFloatBE=_.writeFloatBE,e.writeDoubleLE=_.writeDoubleLE,e.writeDoubleBE=_.writeDoubleBE,e.fill=_.fill,e.inspect=_.inspect,e.toArrayBuffer=_.toArrayBuffer,e};var O=/[^+\/0-9A-z]/g;function k(e){e=B(e).replace(O,"");while(e.length%4!==0)e+="=";return e}function B(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function T(e){return i(e)||u.isBuffer(e)||e&&"object"===typeof e&&"number"===typeof e.length}function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function P(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(r);else{var o=n;r>=55296&&r<=57343&&n++;for(var i=encodeURIComponent(e.slice(o,n+1)).substr(1).split("%"),a=0;a<i.length;a++)t.push(parseInt(i[a],16))}}return t}function j(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}function I(e){for(var t,n,r,o=[],i=0;i<e.length;i++)t=e.charCodeAt(i),n=t>>8,r=t%256,o.push(r),o.push(n);return o}function N(e){return r.toByteArray(e)}function R(e,t,n,r,o){o&&(r-=r%o);for(var i=0;i<r;i++){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function L(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}},{"base64-js":2,ieee754:3,"is-array":4}],2:[function(e,t,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(e){"use strict";var t="undefined"!==typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),o="/".charCodeAt(0),i="0".charCodeAt(0),a="a".charCodeAt(0),u="A".charCodeAt(0);function s(e){var t=e.charCodeAt(0);return t===n?62:t===o?63:t<i?-1:t<i+10?t-i+26+26:t<u+26?t-u:t<a+26?t-a+26:void 0}function l(e){var n,r,o,i,a,u;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=e.length;a="="===e.charAt(l-2)?2:"="===e.charAt(l-1)?1:0,u=new t(3*e.length/4-a),o=a>0?e.length-4:e.length;var c=0;function f(e){u[c++]=e}for(n=0,r=0;n<o;n+=4,r+=3)i=s(e.charAt(n))<<18|s(e.charAt(n+1))<<12|s(e.charAt(n+2))<<6|s(e.charAt(n+3)),f((16711680&i)>>16),f((65280&i)>>8),f(255&i);return 2===a?(i=s(e.charAt(n))<<2|s(e.charAt(n+1))>>4,f(255&i)):1===a&&(i=s(e.charAt(n))<<10|s(e.charAt(n+1))<<4|s(e.charAt(n+2))>>2,f(i>>8&255),f(255&i)),u}function c(e){var t,n,o,i=e.length%3,a="";function u(e){return r.charAt(e)}function s(e){return u(e>>18&63)+u(e>>12&63)+u(e>>6&63)+u(63&e)}for(t=0,o=e.length-i;t<o;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],a+=s(n);switch(i){case 1:n=e[e.length-1],a+=u(n>>2),a+=u(n<<4&63),a+="==";break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],a+=u(n>>10),a+=u(n>>4&63),a+=u(n<<2&63),a+="=";break}return a}e.toByteArray=l,e.fromByteArray=c})("undefined"===typeof n?this.base64js={}:n)},{}],3:[function(e,t,n){n.read=function(e,t,n,r,o){var i,a,u=8*o-r-1,s=(1<<u)-1,l=s>>1,c=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=u;c>0;i=256*i+e[t+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===i)i=1-l;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=l}return(p?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,u,s,l=8*i-o-1,c=(1<<l)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),t+=a+f>=1?d/s:d*Math.pow(2,1-f),t*s>=2&&(a++,s/=2),a+f>=c?(u=0,a=c):a+f>=1?(u=(t*s-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&u,p+=h,u/=256,o-=8);for(a=a<<o|u,l+=o;l>0;e[n+p]=255&a,p+=h,a/=256,l-=8);e[n+p-h]|=128*g}},{}],4:[function(e,t,n){var r=Array.isArray,o=Object.prototype.toString;t.exports=r||function(e){return!!e&&"[object Array]"==o.call(e)}},{}],5:[function(e,t,n){"use strict";var r=e("./dataReader");function o(e){if(e){this.data=e,this.length=this.data.length,this.index=0,this.zero=0;for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}}o.prototype=new r,o.prototype.byteAt=function(e){return this.data[this.zero+e]},o.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),o=e.charCodeAt(3),i=this.length-4;i>=0;--i)if(this.data[i]===t&&this.data[i+1]===n&&this.data[i+2]===r&&this.data[i+3]===o)return i-this.zero;return-1},o.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"./dataReader":10}],6:[function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e,t){var n,o,i,a,u,s,l,c="",f=0;while(f<e.length)n=e.charCodeAt(f++),o=e.charCodeAt(f++),i=e.charCodeAt(f++),a=n>>2,u=(3&n)<<4|o>>4,s=(15&o)<<2|i>>6,l=63&i,isNaN(o)?s=l=64:isNaN(i)&&(l=64),c=c+r.charAt(a)+r.charAt(u)+r.charAt(s)+r.charAt(l);return c},n.decode=function(e,t){var n,o,i,a,u,s,l,c="",f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<e.length)a=r.indexOf(e.charAt(f++)),u=r.indexOf(e.charAt(f++)),s=r.indexOf(e.charAt(f++)),l=r.indexOf(e.charAt(f++)),n=a<<2|u>>4,o=(15&u)<<4|s>>2,i=(3&s)<<6|l,c+=String.fromCharCode(n),64!=s&&(c+=String.fromCharCode(o)),64!=l&&(c+=String.fromCharCode(i));return c}},{}],7:[function(e,t,n){"use strict";function r(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}r.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},t.exports=r},{}],8:[function(e,t,n){"use strict";n.STORE={magic:"\0\0",compress:function(e,t){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},n.DEFLATE=e("./flate")},{"./flate":13}],9:[function(e,t,n){"use strict";var r=e("./utils"),o=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];t.exports=function(e,t){if("undefined"===typeof e||!e.length)return 0;var n="string"!==r.getTypeOf(e);"undefined"==typeof t&&(t=0);var i=0,a=0,u=0;t^=-1;for(var s=0,l=e.length;s<l;s++)u=n?e[s]:e.charCodeAt(s),a=255&(t^u),i=o[a],t=t>>>8^i;return-1^t}},{"./utils":26}],10:[function(e,t,n){"use strict";var r=e("./utils");function o(e){this.data=null,this.length=0,this.index=0,this.zero=0}o.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},t.exports=o},{"./utils":26}],11:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!1,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],12:[function(e,t,n){"use strict";var r=e("./utils");n.string2binary=function(e){return r.string2binary(e)},n.string2Uint8Array=function(e){return r.transformTo("uint8array",e)},n.uint8Array2String=function(e){return r.transformTo("string",e)},n.string2Blob=function(e){var t=r.transformTo("arraybuffer",e);return r.arrayBuffer2Blob(t)},n.arrayBuffer2Blob=function(e){return r.arrayBuffer2Blob(e)},n.transformTo=function(e,t){return r.transformTo(e,t)},n.getTypeOf=function(e){return r.getTypeOf(e)},n.checkSupport=function(e){return r.checkSupport(e)},n.MAX_VALUE_16BITS=r.MAX_VALUE_16BITS,n.MAX_VALUE_32BITS=r.MAX_VALUE_32BITS,n.pretty=function(e){return r.pretty(e)},n.findCompression=function(e){return r.findCompression(e)},n.isRegExp=function(e){return r.isRegExp(e)}},{"./utils":26}],13:[function(e,t,n){"use strict";var r="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array,o=e("pako");n.uncompressInputType=r?"uint8array":"array",n.compressInputType=r?"uint8array":"array",n.magic="\b\0",n.compress=function(e,t){return o.deflateRaw(e,{level:t.level||-1})},n.uncompress=function(e){return o.inflateRaw(e)}},{pako:29}],14:[function(e,t,n){"use strict";var r=e("./base64");function o(e,t){if(!(this instanceof o))return new o(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e=new o;for(var t in this)"function"!==typeof this[t]&&(e[t]=this[t]);return e}}o.prototype=e("./object"),o.prototype.load=e("./load"),o.support=e("./support"),o.defaults=e("./defaults"),o.utils=e("./deprecatedPublicUtils"),o.base64={encode:function(e){return r.encode(e)},decode:function(e){return r.decode(e)}},o.compressions=e("./compressions"),t.exports=o},{"./base64":6,"./compressions":8,"./defaults":11,"./deprecatedPublicUtils":12,"./load":15,"./object":18,"./support":22}],15:[function(e,t,n){"use strict";var r=e("./base64"),o=e("./utf8"),i=e("./utils"),a=e("./zipEntries");t.exports=function(e,t){var n,u,s,l;for(t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),t.base64&&(e=r.decode(e)),u=new a(e,t),n=u.files,s=0;s<n.length;s++)l=n[s],this.file(l.fileNameStr,l.decompressed,{binary:!0,optimizedBinaryString:!0,date:l.date,dir:l.dir,comment:l.fileCommentStr.length?l.fileCommentStr:null,unixPermissions:l.unixPermissions,dosPermissions:l.dosPermissions,createFolders:t.createFolders});return u.zipComment.length&&(this.comment=u.zipComment),this}},{"./base64":6,"./utf8":25,"./utils":26,"./zipEntries":27}],16:[function(e,t,n){(function(e){"use strict";t.exports=function(t,n){return new e(t,n)},t.exports.test=function(t){return e.isBuffer(t)}}).call(this,e("buffer").Buffer)},{buffer:1}],17:[function(e,t,n){"use strict";var r=e("./uint8ArrayReader");function o(e){this.data=e,this.length=this.data.length,this.index=0,this.zero=0}o.prototype=new r,o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"./uint8ArrayReader":23}],18:[function(e,t,n){"use strict";var r=e("./support"),o=e("./utils"),i=e("./crc32"),a=e("./signature"),u=e("./defaults"),s=e("./base64"),l=e("./compressions"),c=e("./compressedObject"),f=e("./nodeBuffer"),d=e("./utf8"),p=e("./stringWriter"),h=e("./uint8ArrayWriter"),g=function(e){if(e._data instanceof c&&(e._data=e._data.getContent(),e.options.binary=!0,e.options.base64=!1,"uint8array"===o.getTypeOf(e._data))){var t=e._data;e._data=new Uint8Array(t.length),0!==t.length&&e._data.set(t,0)}return e._data},v=function(e){var t=g(e),n=o.getTypeOf(t);return"string"===n?!e.options.binary&&r.nodebuffer?f(t,"utf-8"):e.asBinary():t},y=function(e){var t=g(this);return null===t||"undefined"===typeof t?"":(this.options.base64&&(t=s.decode(t)),t=e&&this.options.binary?k.utf8decode(t):o.transformTo("string",t),e||this.options.binary||(t=o.transformTo("string",k.utf8encode(t))),t)},m=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this.options=n,this._initialMetadata={dir:n.dir,date:n.date}};m.prototype={asText:function(){return y.call(this,!0)},asBinary:function(){return y.call(this,!1)},asNodeBuffer:function(){var e=v(this);return o.transformTo("nodebuffer",e)},asUint8Array:function(){var e=v(this);return o.transformTo("uint8array",e)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var b=function(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r},w=function(e){return e=e||{},!0!==e.base64||null!==e.binary&&void 0!==e.binary||(e.binary=!0),e=o.extend(e,u),e.date=e.date||new Date,null!==e.compression&&(e.compression=e.compression.toUpperCase()),e},E=function(e,t,n){var r,i=o.getTypeOf(t);if(n=w(n),"string"===typeof n.unixPermissions&&(n.unixPermissions=parseInt(n.unixPermissions,8)),n.unixPermissions&&16384&n.unixPermissions&&(n.dir=!0),n.dosPermissions&&16&n.dosPermissions&&(n.dir=!0),n.dir&&(e=C(e)),n.createFolders&&(r=x(e))&&S.call(this,r,!0),n.dir||null===t||"undefined"===typeof t)n.base64=!1,n.binary=!1,t=null,i=null;else if("string"===i)n.binary&&!n.base64&&!0!==n.optimizedBinaryString&&(t=o.string2binary(t));else{if(n.base64=!1,n.binary=!0,!i&&!(t instanceof c))throw new Error("The data of '"+e+"' is in an unsupported format !");"arraybuffer"===i&&(t=o.transformTo("uint8array",t))}var a=new m(e,t,n);return this.files[e]=a,a},x=function(e){"/"==e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},C=function(e){return"/"!=e.slice(-1)&&(e+="/"),e},S=function(e,t){return t="undefined"!==typeof t&&t,e=C(e),this.files[e]||E.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},D=function(e,t,n){var r,a=new c;return e._data instanceof c?(a.uncompressedSize=e._data.uncompressedSize,a.crc32=e._data.crc32,0===a.uncompressedSize||e.dir?(t=l["STORE"],a.compressedContent="",a.crc32=0):e._data.compressionMethod===t.magic?a.compressedContent=e._data.getCompressedContent():(r=e._data.getContent(),a.compressedContent=t.compress(o.transformTo(t.compressInputType,r),n))):(r=v(e),r&&0!==r.length&&!e.dir||(t=l["STORE"],r=""),a.uncompressedSize=r.length,a.crc32=i(r),a.compressedContent=t.compress(o.transformTo(t.compressInputType,r),n)),a.compressedSize=a.compressedContent.length,a.compressionMethod=t.magic,a},A=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16},_=function(e,t){return 63&(e||0)},O=function(e,t,n,r,u,s){n.compressedContent;var l,c,f,p,h=s!==d.utf8encode,g=o.transformTo("string",s(t.name)),v=o.transformTo("string",d.utf8encode(t.name)),y=t.comment||"",m=o.transformTo("string",s(y)),w=o.transformTo("string",d.utf8encode(y)),E=v.length!==t.name.length,x=w.length!==y.length,C=t.options,S="",D="",O="";f=t._initialMetadata.dir!==t.dir?t.dir:C.dir,p=t._initialMetadata.date!==t.date?t.date:C.date;var k=0,B=0;f&&(k|=16),"UNIX"===u?(B=798,k|=A(t.unixPermissions,f)):(B=20,k|=_(t.dosPermissions,f)),l=p.getHours(),l<<=6,l|=p.getMinutes(),l<<=5,l|=p.getSeconds()/2,c=p.getFullYear()-1980,c<<=4,c|=p.getMonth()+1,c<<=5,c|=p.getDate(),E&&(D=b(1,1)+b(i(g),4)+v,S+="up"+b(D.length,2)+D),x&&(O=b(1,1)+b(this.crc32(m),4)+w,S+="uc"+b(O.length,2)+O);var T="";T+="\n\0",T+=h||!E&&!x?"\0\0":"\0\b",T+=n.compressionMethod,T+=b(l,2),T+=b(c,2),T+=b(n.crc32,4),T+=b(n.compressedSize,4),T+=b(n.uncompressedSize,4),T+=b(g.length,2),T+=b(S.length,2);var F=a.LOCAL_FILE_HEADER+T+g+S,P=a.CENTRAL_FILE_HEADER+b(B,2)+T+b(m.length,2)+"\0\0\0\0"+b(k,4)+b(r,4)+g+S+m;return{fileRecord:F,dirRecord:P,compressedObject:n}},k={load:function(e,t){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(e){var t,n,r,i,a=[];for(t in this.files)this.files.hasOwnProperty(t)&&(r=this.files[t],i=new m(r.name,r._data,o.extend(r.options)),n=t.slice(this.root.length,t.length),t.slice(0,this.root.length)===this.root&&e(n,i)&&a.push(i));return a},file:function(e,t,n){if(1===arguments.length){if(o.isRegExp(e)){var r=e;return this.filter((function(e,t){return!t.dir&&r.test(e)}))}return this.filter((function(t,n){return!n.dir&&t===e}))[0]||null}return e=this.root+e,E.call(this,e,t,n),this},folder:function(e){if(!e)return this;if(o.isRegExp(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=S.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!=e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(e){e=o.extend(e||{},{base64:!0,compression:"STORE",compressionOptions:null,type:"base64",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:d.utf8encode}),o.checkSupport(e.type),"darwin"!==e.platform&&"freebsd"!==e.platform&&"linux"!==e.platform&&"sunos"!==e.platform||(e.platform="UNIX"),"win32"===e.platform&&(e.platform="DOS");var t,n,r=[],i=0,u=0,c=o.transformTo("string",e.encodeFileName(e.comment||this.comment||""));for(var f in this.files)if(this.files.hasOwnProperty(f)){var g=this.files[f],v=g.options.compression||e.compression.toUpperCase(),y=l[v];if(!y)throw new Error(v+" is not a valid compression method !");var m=g.options.compressionOptions||e.compressionOptions||{},w=D.call(this,g,y,m),E=O.call(this,f,g,w,i,e.platform,e.encodeFileName);i+=E.fileRecord.length+w.compressedSize,u+=E.dirRecord.length,r.push(E)}var x="";x=a.CENTRAL_DIRECTORY_END+"\0\0\0\0"+b(r.length,2)+b(r.length,2)+b(u,4)+b(i,4)+b(c.length,2)+c;var C=e.type.toLowerCase();for(t="uint8array"===C||"arraybuffer"===C||"blob"===C||"nodebuffer"===C?new h(i+u+x.length):new p(i+u+x.length),n=0;n<r.length;n++)t.append(r[n].fileRecord),t.append(r[n].compressedObject.compressedContent);for(n=0;n<r.length;n++)t.append(r[n].dirRecord);t.append(x);var S=t.finalize();switch(e.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return o.transformTo(e.type.toLowerCase(),S);case"blob":return o.arrayBuffer2Blob(o.transformTo("arraybuffer",S),e.mimeType);case"base64":return e.base64?s.encode(S):S;default:return S}},crc32:function(e,t){return i(e,t)},utf8encode:function(e){return o.transformTo("string",d.utf8encode(e))},utf8decode:function(e){return d.utf8decode(e)}};t.exports=k},{"./base64":6,"./compressedObject":7,"./compressions":8,"./crc32":9,"./defaults":11,"./nodeBuffer":16,"./signature":19,"./stringWriter":21,"./support":22,"./uint8ArrayWriter":24,"./utf8":25,"./utils":26}],19:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],20:[function(e,t,n){"use strict";var r=e("./dataReader"),o=e("./utils");function i(e,t){this.data=e,t||(this.data=o.string2binary(this.data)),this.length=this.data.length,this.index=0,this.zero=0}i.prototype=new r,i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"./dataReader":10,"./utils":26}],21:[function(e,t,n){"use strict";var r=e("./utils"),o=function(){this.data=[]};o.prototype={append:function(e){e=r.transformTo("string",e),this.data.push(e)},finalize:function(){return this.data.join("")}},t.exports=o},{"./utils":26}],22:[function(e,t,n){(function(e){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array,n.nodebuffer="undefined"!==typeof e,n.uint8array="undefined"!==typeof Uint8Array,"undefined"===typeof ArrayBuffer)n.blob=!1;else{var t=new ArrayBuffer(0);try{n.blob=0===new Blob([t],{type:"application/zip"}).size}catch(i){try{var r=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,o=new r;o.append(t),n.blob=0===o.getBlob("application/zip").size}catch(i){n.blob=!1}}}}).call(this,e("buffer").Buffer)},{buffer:1}],23:[function(e,t,n){"use strict";var r=e("./arrayReader");function o(e){e&&(this.data=e,this.length=this.data.length,this.index=0,this.zero=0)}o.prototype=new r,o.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"./arrayReader":5}],24:[function(e,t,n){"use strict";var r=e("./utils"),o=function(e){this.data=new Uint8Array(e),this.index=0};o.prototype={append:function(e){0!==e.length&&(e=r.transformTo("uint8array",e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},t.exports=o},{"./utils":26}],25:[function(e,t,n){"use strict";for(var r=e("./utils"),o=e("./support"),i=e("./nodeBuffer"),a=new Array(256),u=0;u<256;u++)a[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;a[254]=a[254]=1;var s=function(e){var t,n,r,i,a,u=e.length,s=0;for(i=0;i<u;i++)n=e.charCodeAt(i),55296===(64512&n)&&i+1<u&&(r=e.charCodeAt(i+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=o.uint8array?new Uint8Array(s):new Array(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),55296===(64512&n)&&i+1<u&&(r=e.charCodeAt(i+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},l=function(e,t){var n;t=t||e.length,t>e.length&&(t=e.length),n=t-1;while(n>=0&&128===(192&e[n]))n--;return n<0||0===n?t:n+a[e[n]]>t?n:t},c=function(e){var t,n,o,i,u=e.length,s=new Array(2*u);for(n=0,t=0;t<u;)if(o=e[t++],o<128)s[n++]=o;else if(i=a[o],i>4)s[n++]=65533,t+=i-1;else{o&=2===i?31:3===i?15:7;while(i>1&&t<u)o=o<<6|63&e[t++],i--;i>1?s[n++]=65533:o<65536?s[n++]=o:(o-=65536,s[n++]=55296|o>>10&1023,s[n++]=56320|1023&o)}return s.length!==n&&(s.subarray?s=s.subarray(0,n):s.length=n),r.applyFromCharCode(s)};n.utf8encode=function(e){return o.nodebuffer?i(e,"utf-8"):s(e)},n.utf8decode=function(e){if(o.nodebuffer)return r.transformTo("nodebuffer",e).toString("utf-8");e=r.transformTo(o.uint8array?"uint8array":"array",e);var t=[],n=0,i=e.length,a=65536;while(n<i){var u=l(e,Math.min(n+a,i));o.uint8array?t.push(c(e.subarray(n,u))):t.push(c(e.slice(n,u))),n=u}return t.join("")}},{"./nodeBuffer":16,"./support":22,"./utils":26}],26:[function(e,t,n){"use strict";var r=e("./support"),o=e("./compressions"),i=e("./nodeBuffer");function a(e){return e}function u(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}function s(e){var t=65536,r=[],o=e.length,a=n.getTypeOf(e),u=0,s=!0;try{switch(a){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,i(0));break}}catch(f){s=!1}if(!s){for(var l="",c=0;c<e.length;c++)l+=String.fromCharCode(e[c]);return l}while(u<o&&t>1)try{"array"===a||"nodebuffer"===a?r.push(String.fromCharCode.apply(null,e.slice(u,Math.min(u+t,o)))):r.push(String.fromCharCode.apply(null,e.subarray(u,Math.min(u+t,o)))),u+=t}catch(f){t=Math.floor(t/2)}return r.join("")}function l(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.string2binary=function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(255&e.charCodeAt(n));return t},n.arrayBuffer2Blob=function(e,t){n.checkSupport("blob"),t=t||"application/zip";try{return new Blob([e],{type:t})}catch(i){try{var r=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,o=new r;return o.append(e),o.getBlob(t)}catch(i){throw new Error("Bug : can't construct the Blob.")}}},n.applyFromCharCode=s;var c={};c["string"]={string:a,array:function(e){return u(e,new Array(e.length))},arraybuffer:function(e){return c["string"]["uint8array"](e).buffer},uint8array:function(e){return u(e,new Uint8Array(e.length))},nodebuffer:function(e){return u(e,i(e.length))}},c["array"]={string:s,array:a,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i(e)}},c["arraybuffer"]={string:function(e){return s(new Uint8Array(e))},array:function(e){return l(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:a,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i(new Uint8Array(e))}},c["uint8array"]={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:a,nodebuffer:function(e){return i(e)}},c["nodebuffer"]={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return c["nodebuffer"]["uint8array"](e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:a},n.transformTo=function(e,t){if(t||(t=""),!e)return t;n.checkSupport(e);var r=n.getTypeOf(t),o=c[r][e](t);return o},n.getTypeOf=function(e){return"string"===typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&i.test(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){var t=r[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this browser")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)t=e.charCodeAt(n),r+="\\x"+(t<16?"0":"")+t.toString(16).toUpperCase();return r},n.findCompression=function(e){for(var t in o)if(o.hasOwnProperty(t)&&o[t].magic===e)return o[t];return null},n.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&"undefined"===typeof n[t]&&(n[t]=arguments[e][t]);return n}},{"./compressions":8,"./nodeBuffer":16,"./support":22}],27:[function(e,t,n){"use strict";var r=e("./stringReader"),o=e("./nodeBufferReader"),i=e("./uint8ArrayReader"),a=e("./arrayReader"),u=e("./utils"),s=e("./signature"),l=e("./zipEntry"),c=e("./support");e("./object");function f(e,t){this.files=[],this.loadOptions=t,e&&this.load(e)}f.prototype={checkSignature:function(e){var t=this.reader.readString(4);if(t!==e)throw new Error("Corrupted zip or bug : unexpected signature ("+u.pretty(t)+", expected "+u.pretty(e)+")")},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4),o=r===t;return this.reader.setIndex(n),o},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=c.uint8array?"uint8array":"array",n=u.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var e,t,n,r=this.zip64EndOfCentralSize-44,o=0;while(o<r)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readString(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;this.reader.setIndex(this.centralDirOffset);while(this.reader.readString(4)===s.CENTRAL_FILE_HEADER)e=new l({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,s.LOCAL_FILE_HEADER);throw t?new Error("Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip : can't find end of central directory")}this.reader.setIndex(e);var n=e;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===u.MAX_VALUE_16BITS||this.diskWithCentralDirStart===u.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===u.MAX_VALUE_16BITS||this.centralDirRecords===u.MAX_VALUE_16BITS||this.centralDirSize===u.MAX_VALUE_32BITS||this.centralDirOffset===u.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip : can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var o=n-r;if(o>0)this.isSignature(n,s.CENTRAL_FILE_HEADER)||(this.reader.zero=o);else if(o<0)throw new Error("Corrupted zip: missing "+Math.abs(o)+" bytes.")},prepareReader:function(e){var t=u.getTypeOf(e);if(u.checkSupport(t),"string"!==t||c.uint8array)if("nodebuffer"===t)this.reader=new o(e);else if(c.uint8array)this.reader=new i(u.transformTo("uint8array",e));else{if(!c.array)throw new Error("Unexpected error: unsupported type '"+t+"'");this.reader=new a(u.transformTo("array",e))}else this.reader=new r(e,this.loadOptions.optimizedBinaryString)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=f},{"./arrayReader":5,"./nodeBufferReader":17,"./object":18,"./signature":19,"./stringReader":20,"./support":22,"./uint8ArrayReader":23,"./utils":26,"./zipEntry":28}],28:[function(e,t,n){"use strict";var r=e("./stringReader"),o=e("./utils"),i=e("./compressedObject"),a=e("./object"),u=e("./support"),s=0,l=3;function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},prepareCompressedContent:function(e,t,n){return function(){var r=e.index;e.setIndex(t);var o=e.readData(n);return e.setIndex(r),o}},prepareContent:function(e,t,n,r,i){return function(){var e=o.transformTo(r.uncompressInputType,this.getCompressedContent()),t=r.uncompress(e);if(t.length!==i)throw new Error("Bug : uncompressed data size mismatch");return t}},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1==this.compressedSize||-1==this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(t=o.findCompression(this.compressionMethod),null===t)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");if(this.decompressed=new i,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(e,e.index,this.compressedSize,t),this.decompressed.getContent=this.prepareContent(e,e.index,this.compressedSize,t,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=o.transformTo("string",this.decompressed.getContent()),a.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(e){if(this.versionMadeBy=e.readInt(2),this.versionNeeded=e.readInt(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4),this.fileNameLength=e.readInt(2),this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=e.readData(this.fileNameLength),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e===s&&(this.dosPermissions=63&this.externalFileAttributes),e===l&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=new r(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,r,o=e.index;this.extraFields=this.extraFields||{};while(e.index<o+this.extraFieldsLength)t=e.readInt(2),n=e.readInt(2),r=e.readString(n),this.extraFields[t]={id:t,length:n,value:r}},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=o.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var i=o.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=new r(e.value);return 1!==t.readInt(1)||a.crc32(this.fileName)!==t.readInt(4)?null:a.utf8decode(t.readString(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=new r(e.value);return 1!==t.readInt(1)||a.crc32(this.fileComment)!==t.readInt(4)?null:a.utf8decode(t.readString(e.length-5))}return null}},t.exports=c},{"./compressedObject":7,"./object":18,"./stringReader":20,"./support":22,"./utils":26}],29:[function(e,t,n){"use strict";var r=e("./lib/utils/common").assign,o=e("./lib/deflate"),i=e("./lib/inflate"),a=e("./lib/zlib/constants"),u={};r(u,o,i,a),t.exports=u},{"./lib/deflate":30,"./lib/inflate":31,"./lib/utils/common":32,"./lib/zlib/constants":35}],30:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),o=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/messages"),u=e("./zlib/zstream"),s=Object.prototype.toString,l=0,c=4,f=0,d=1,p=2,h=-1,g=0,v=8;function y(e){if(!(this instanceof y))return new y(e);this.options=o.assign({level:h,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:g,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==f)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var l;if(l="string"===typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===s.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=r.deflateSetDictionary(this.strm,l),n!==f)throw new Error(a[n]);this._dict_set=!0}}function m(e,t){var n=new y(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}function b(e,t){return t=t||{},t.raw=!0,m(e,t)}function w(e,t){return t=t||{},t.gzip=!0,m(e,t)}y.prototype.push=function(e,t){var n,a,u=this.strm,h=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?c:l,"string"===typeof e?u.input=i.string2buf(e):"[object ArrayBuffer]"===s.call(e)?u.input=new Uint8Array(e):u.input=e,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new o.Buf8(h),u.next_out=0,u.avail_out=h),n=r.deflate(u,a),n!==d&&n!==f)return this.onEnd(n),this.ended=!0,!1;0!==u.avail_out&&(0!==u.avail_in||a!==c&&a!==p)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(u.output,u.next_out))):this.onData(o.shrinkBuf(u.output,u.next_out)))}while((u.avail_in>0||0===u.avail_out)&&n!==d);return a===c?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===f):a!==p||(this.onEnd(f),u.avail_out=0,!0)},y.prototype.onData=function(e){this.chunks.push(e)},y.prototype.onEnd=function(e){e===f&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=y,n.deflate=m,n.deflateRaw=b,n.gzip=w},{"./utils/common":32,"./utils/strings":33,"./zlib/deflate":37,"./zlib/messages":42,"./zlib/zstream":44}],31:[function(e,t,n){"use strict";var r=e("./zlib/inflate"),o=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/constants"),u=e("./zlib/messages"),s=e("./zlib/zstream"),l=e("./zlib/gzheader"),c=Object.prototype.toString;function f(e){if(!(this instanceof f))return new f(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(u[n]);this.header=new l,r.inflateGetHeader(this.strm,this.header)}function d(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}function p(e,t){return t=t||{},t.raw=!0,d(e,t)}f.prototype.push=function(e,t){var n,u,s,l,f,d,p=this.strm,h=this.options.chunkSize,g=this.options.dictionary,v=!1;if(this.ended)return!1;u=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"===typeof e?p.input=i.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new o.Buf8(h),p.next_out=0,p.avail_out=h),n=r.inflate(p,a.Z_NO_FLUSH),n===a.Z_NEED_DICT&&g&&(d="string"===typeof g?i.string2buf(g):"[object ArrayBuffer]"===c.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===v&&(n=a.Z_OK,v=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;p.next_out&&(0!==p.avail_out&&n!==a.Z_STREAM_END&&(0!==p.avail_in||u!==a.Z_FINISH&&u!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(s=i.utf8border(p.output,p.next_out),l=p.next_out-s,f=i.buf2string(p.output,s),p.next_out=l,p.avail_out=h-l,l&&o.arraySet(p.output,p.output,s,l,0),this.onData(f)):this.onData(o.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(v=!0)}while((p.avail_in>0||0===p.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(u=a.Z_FINISH),u===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):u!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),p.avail_out=0,!0)},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=f,n.inflate=d,n.inflateRaw=p,n.ungzip=d},{"./utils/common":32,"./utils/strings":33,"./zlib/constants":35,"./zlib/gzheader":38,"./zlib/inflate":40,"./zlib/messages":42,"./zlib/zstream":44}],32:[function(e,t,n){"use strict";var r="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;n.assign=function(e){var t=Array.prototype.slice.call(arguments,1);while(t.length){var n=t.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){var t,n,r,o,i,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),o=0,t=0,n=e.length;t<n;t++)i=e[t],a.set(i,o),o+=i.length;return a}},i={arraySet:function(e,t,n,r,o){for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,o)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,i))},n.setTyped(r)},{}],33:[function(e,t,n){"use strict";var r=e("./common"),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(l){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(l){i=!1}for(var a=new r.Buf8(256),u=0;u<256;u++)a[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;function s(e,t){if(t<65537&&(e.subarray&&i||!e.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,o,i,a,u=e.length,s=0;for(i=0;i<u;i++)n=e.charCodeAt(i),55296===(64512&n)&&i+1<u&&(o=e.charCodeAt(i+1),56320===(64512&o)&&(n=65536+(n-55296<<10)+(o-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),55296===(64512&n)&&i+1<u&&(o=e.charCodeAt(i+1),56320===(64512&o)&&(n=65536+(n-55296<<10)+(o-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},n.buf2binstring=function(e){return s(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,o=t.length;n<o;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,o,i,u=t||e.length,l=new Array(2*u);for(r=0,n=0;n<u;)if(o=e[n++],o<128)l[r++]=o;else if(i=a[o],i>4)l[r++]=65533,n+=i-1;else{o&=2===i?31:3===i?15:7;while(i>1&&n<u)o=o<<6|63&e[n++],i--;i>1?l[r++]=65533:o<65536?l[r++]=o:(o-=65536,l[r++]=55296|o>>10&1023,l[r++]=56320|1023&o)}return s(l,r)},n.utf8border=function(e,t){var n;t=t||e.length,t>e.length&&(t=e.length),n=t-1;while(n>=0&&128===(192&e[n]))n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":32}],34:[function(e,t,n){"use strict";function r(e,t,n,r){var o=65535&e|0,i=e>>>16&65535|0,a=0;while(0!==n){a=n>2e3?2e3:n,n-=a;do{o=o+t[r++]|0,i=i+o|0}while(--a);o%=65521,i%=65521}return o|i<<16|0}t.exports=r},{}],35:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],36:[function(e,t,n){"use strict";function r(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}var o=r();function i(e,t,n,r){var i=o,a=r+n;e^=-1;for(var u=r;u<a;u++)e=e>>>8^i[255&(e^t[u])];return-1^e}t.exports=i},{}],37:[function(e,t,n){"use strict";var r,o=e("../utils/common"),i=e("./trees"),a=e("./adler32"),u=e("./crc32"),s=e("./messages"),l=0,c=1,f=3,d=4,p=5,h=0,g=1,v=-2,y=-3,m=-5,b=-1,w=1,E=2,x=3,C=4,S=0,D=2,A=8,_=9,O=15,k=8,B=29,T=256,F=T+1+B,P=30,j=19,I=2*F+1,N=15,R=3,L=258,M=L+R+1,z=32,U=42,H=69,$=73,V=91,W=103,G=113,q=666,K=1,Y=2,Z=3,X=4,J=3;function Q(e,t){return e.msg=s[t],t}function ee(e){return(e<<1)-(e>4?9:0)}function te(e){var t=e.length;while(--t>=0)e[t]=0}function ne(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(o.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function re(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ne(e.strm)}function oe(e,t){e.pending_buf[e.pending++]=t}function ie(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ae(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,o.arraySet(t,e.input,e.next_in,i,n),1===e.state.wrap?e.adler=a(e.adler,t,i,n):2===e.state.wrap&&(e.adler=u(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function ue(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,u=e.nice_match,s=e.strstart>e.w_size-M?e.strstart-(e.w_size-M):0,l=e.window,c=e.w_mask,f=e.prev,d=e.strstart+L,p=l[i+a-1],h=l[i+a];e.prev_length>=e.good_match&&(o>>=2),u>e.lookahead&&(u=e.lookahead);do{if(n=t,l[n+a]===h&&l[n+a-1]===p&&l[n]===l[i]&&l[++n]===l[i+1]){i+=2,n++;do{}while(l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&i<d);if(r=L-(d-i),i=d-L,r>a){if(e.match_start=t,a=r,r>=u)break;p=l[i+a-1],h=l[i+a]}}}while((t=f[t&c])>s&&0!==--o);return a<=e.lookahead?a:e.lookahead}function se(e){var t,n,r,i,a,u=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=u+(u-M)){o.arraySet(e.window,e.window,u,u,0),e.match_start-=u,e.strstart-=u,e.block_start-=u,n=e.hash_size,t=n;do{r=e.head[--t],e.head[t]=r>=u?r-u:0}while(--n);n=u,t=n;do{r=e.prev[--t],e.prev[t]=r>=u?r-u:0}while(--n);i+=u}if(0===e.strm.avail_in)break;if(n=ae(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=R){a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;while(e.insert)if(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+R-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,e.lookahead+e.insert<R)break}}while(e.lookahead<M&&0!==e.strm.avail_in)}function le(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(se(e),0===e.lookahead&&t===l)return K;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,re(e,!1),0===e.strm.avail_out))return K;if(e.strstart-e.block_start>=e.w_size-M&&(re(e,!1),0===e.strm.avail_out))return K}return e.insert=0,t===d?(re(e,!0),0===e.strm.avail_out?Z:X):(e.strstart>e.block_start&&(re(e,!1),e.strm.avail_out),K)}function ce(e,t){for(var n,r;;){if(e.lookahead<M){if(se(e),e.lookahead<M&&t===l)return K;if(0===e.lookahead)break}if(n=0,e.lookahead>=R&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-M&&(e.match_length=ue(e,n)),e.match_length>=R)if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-R),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=R){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(re(e,!1),0===e.strm.avail_out))return K}return e.insert=e.strstart<R-1?e.strstart:R-1,t===d?(re(e,!0),0===e.strm.avail_out?Z:X):e.last_lit&&(re(e,!1),0===e.strm.avail_out)?K:Y}function fe(e,t){for(var n,r,o;;){if(e.lookahead<M){if(se(e),e.lookahead<M&&t===l)return K;if(0===e.lookahead)break}if(n=0,e.lookahead>=R&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=R-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-M&&(e.match_length=ue(e,n),e.match_length<=5&&(e.strategy===w||e.match_length===R&&e.strstart-e.match_start>4096)&&(e.match_length=R-1)),e.prev_length>=R&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-R,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-R),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+R-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=R-1,e.strstart++,r&&(re(e,!1),0===e.strm.avail_out))return K}else if(e.match_available){if(r=i._tr_tally(e,0,e.window[e.strstart-1]),r&&re(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return K}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<R-1?e.strstart:R-1,t===d?(re(e,!0),0===e.strm.avail_out?Z:X):e.last_lit&&(re(e,!1),0===e.strm.avail_out)?K:Y}function de(e,t){for(var n,r,o,a,u=e.window;;){if(e.lookahead<=L){if(se(e),e.lookahead<=L&&t===l)return K;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=R&&e.strstart>0&&(o=e.strstart-1,r=u[o],r===u[++o]&&r===u[++o]&&r===u[++o])){a=e.strstart+L;do{}while(r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&r===u[++o]&&o<a);e.match_length=L-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=R?(n=i._tr_tally(e,1,e.match_length-R),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(re(e,!1),0===e.strm.avail_out))return K}return e.insert=0,t===d?(re(e,!0),0===e.strm.avail_out?Z:X):e.last_lit&&(re(e,!1),0===e.strm.avail_out)?K:Y}function pe(e,t){for(var n;;){if(0===e.lookahead&&(se(e),0===e.lookahead)){if(t===l)return K;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(re(e,!1),0===e.strm.avail_out))return K}return e.insert=0,t===d?(re(e,!0),0===e.strm.avail_out?Z:X):e.last_lit&&(re(e,!1),0===e.strm.avail_out)?K:Y}function he(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}function ge(e){e.window_size=2*e.w_size,te(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=R-1,e.match_available=0,e.ins_h=0}function ve(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=A,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*I),this.dyn_dtree=new o.Buf16(2*(2*P+1)),this.bl_tree=new o.Buf16(2*(2*j+1)),te(this.dyn_ltree),te(this.dyn_dtree),te(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(N+1),this.heap=new o.Buf16(2*F+1),te(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*F+1),te(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ye(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=D,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?U:G,e.adler=2===t.wrap?0:1,t.last_flush=l,i._tr_init(t),h):Q(e,v)}function me(e){var t=ye(e);return t===h&&ge(e.state),t}function be(e,t){return e&&e.state?2!==e.state.wrap?v:(e.state.gzhead=t,h):v}function we(e,t,n,r,i,a){if(!e)return v;var u=1;if(t===b&&(t=6),r<0?(u=0,r=-r):r>15&&(u=2,r-=16),i<1||i>_||n!==A||r<8||r>15||t<0||t>9||a<0||a>C)return Q(e,v);8===r&&(r=9);var s=new ve;return e.state=s,s.strm=e,s.wrap=u,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+R-1)/R),s.window=new o.Buf8(2*s.w_size),s.head=new o.Buf16(s.hash_size),s.prev=new o.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new o.Buf8(s.pending_buf_size),s.d_buf=s.lit_bufsize>>1,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=n,me(e)}function Ee(e,t){return we(e,t,A,O,k,S)}function xe(e,t){var n,o,a,s;if(!e||!e.state||t>p||t<0)return e?Q(e,v):v;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||o.status===q&&t!==d)return Q(e,0===e.avail_out?m:v);if(o.strm=e,n=o.last_flush,o.last_flush=t,o.status===U)if(2===o.wrap)e.adler=0,oe(o,31),oe(o,139),oe(o,8),o.gzhead?(oe(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),oe(o,255&o.gzhead.time),oe(o,o.gzhead.time>>8&255),oe(o,o.gzhead.time>>16&255),oe(o,o.gzhead.time>>24&255),oe(o,9===o.level?2:o.strategy>=E||o.level<2?4:0),oe(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(oe(o,255&o.gzhead.extra.length),oe(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=u(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=H):(oe(o,0),oe(o,0),oe(o,0),oe(o,0),oe(o,0),oe(o,9===o.level?2:o.strategy>=E||o.level<2?4:0),oe(o,J),o.status=G);else{var y=A+(o.w_bits-8<<4)<<8,b=-1;b=o.strategy>=E||o.level<2?0:o.level<6?1:6===o.level?2:3,y|=b<<6,0!==o.strstart&&(y|=z),y+=31-y%31,o.status=G,ie(o,y),0!==o.strstart&&(ie(o,e.adler>>>16),ie(o,65535&e.adler)),e.adler=1}if(o.status===H)if(o.gzhead.extra){a=o.pending;while(o.gzindex<(65535&o.gzhead.extra.length)){if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=u(e.adler,o.pending_buf,o.pending-a,a)),ne(e),a=o.pending,o.pending===o.pending_buf_size))break;oe(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++}o.gzhead.hcrc&&o.pending>a&&(e.adler=u(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=$)}else o.status=$;if(o.status===$)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=u(e.adler,o.pending_buf,o.pending-a,a)),ne(e),a=o.pending,o.pending===o.pending_buf_size)){s=1;break}s=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,oe(o,s)}while(0!==s);o.gzhead.hcrc&&o.pending>a&&(e.adler=u(e.adler,o.pending_buf,o.pending-a,a)),0===s&&(o.gzindex=0,o.status=V)}else o.status=V;if(o.status===V)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=u(e.adler,o.pending_buf,o.pending-a,a)),ne(e),a=o.pending,o.pending===o.pending_buf_size)){s=1;break}s=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,oe(o,s)}while(0!==s);o.gzhead.hcrc&&o.pending>a&&(e.adler=u(e.adler,o.pending_buf,o.pending-a,a)),0===s&&(o.status=W)}else o.status=W;if(o.status===W&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&ne(e),o.pending+2<=o.pending_buf_size&&(oe(o,255&e.adler),oe(o,e.adler>>8&255),e.adler=0,o.status=G)):o.status=G),0!==o.pending){if(ne(e),0===e.avail_out)return o.last_flush=-1,h}else if(0===e.avail_in&&ee(t)<=ee(n)&&t!==d)return Q(e,m);if(o.status===q&&0!==e.avail_in)return Q(e,m);if(0!==e.avail_in||0!==o.lookahead||t!==l&&o.status!==q){var w=o.strategy===E?pe(o,t):o.strategy===x?de(o,t):r[o.level].func(o,t);if(w!==Z&&w!==X||(o.status=q),w===K||w===Z)return 0===e.avail_out&&(o.last_flush=-1),h;if(w===Y&&(t===c?i._tr_align(o):t!==p&&(i._tr_stored_block(o,0,0,!1),t===f&&(te(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),ne(e),0===e.avail_out))return o.last_flush=-1,h}return t!==d?h:o.wrap<=0?g:(2===o.wrap?(oe(o,255&e.adler),oe(o,e.adler>>8&255),oe(o,e.adler>>16&255),oe(o,e.adler>>24&255),oe(o,255&e.total_in),oe(o,e.total_in>>8&255),oe(o,e.total_in>>16&255),oe(o,e.total_in>>24&255)):(ie(o,e.adler>>>16),ie(o,65535&e.adler)),ne(e),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?h:g)}function Ce(e){var t;return e&&e.state?(t=e.state.status,t!==U&&t!==H&&t!==$&&t!==V&&t!==W&&t!==G&&t!==q?Q(e,v):(e.state=null,t===G?Q(e,y):h)):v}function Se(e,t){var n,r,i,u,s,l,c,f,d=t.length;if(!e||!e.state)return v;if(n=e.state,u=n.wrap,2===u||1===u&&n.status!==U||n.lookahead)return v;1===u&&(e.adler=a(e.adler,t,d,0)),n.wrap=0,d>=n.w_size&&(0===u&&(te(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new o.Buf8(n.w_size),o.arraySet(f,t,d-n.w_size,n.w_size,0),t=f,d=n.w_size),s=e.avail_in,l=e.next_in,c=e.input,e.avail_in=d,e.next_in=0,e.input=t,se(n);while(n.lookahead>=R){r=n.strstart,i=n.lookahead-(R-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+R-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=R-1,se(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=R-1,n.match_available=0,e.next_in=l,e.input=c,e.avail_in=s,n.wrap=u,h}r=[new he(0,0,0,0,le),new he(4,4,8,4,ce),new he(4,5,16,8,ce),new he(4,6,32,32,ce),new he(4,4,16,16,fe),new he(8,16,32,32,fe),new he(8,16,128,128,fe),new he(8,32,128,256,fe),new he(32,128,258,1024,fe),new he(32,258,258,4096,fe)],n.deflateInit=Ee,n.deflateInit2=we,n.deflateReset=me,n.deflateResetKeep=ye,n.deflateSetHeader=be,n.deflate=xe,n.deflateEnd=Ce,n.deflateSetDictionary=Se,n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":32,"./adler32":34,"./crc32":36,"./messages":42,"./trees":43}],38:[function(e,t,n){"use strict";function r(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}t.exports=r},{}],39:[function(e,t,n){"use strict";var r=30,o=12;t.exports=function(e,t){var n,i,a,u,s,l,c,f,d,p,h,g,v,y,m,b,w,E,x,C,S,D,A,_,O;n=e.state,i=e.next_in,_=e.input,a=i+(e.avail_in-5),u=e.next_out,O=e.output,s=u-(t-e.avail_out),l=u+(e.avail_out-257),c=n.dmax,f=n.wsize,d=n.whave,p=n.wnext,h=n.window,g=n.hold,v=n.bits,y=n.lencode,m=n.distcode,b=(1<<n.lenbits)-1,w=(1<<n.distbits)-1;e:do{v<15&&(g+=_[i++]<<v,v+=8,g+=_[i++]<<v,v+=8),E=y[g&b];t:for(;;){if(x=E>>>24,g>>>=x,v-=x,x=E>>>16&255,0===x)O[u++]=65535&E;else{if(!(16&x)){if(0===(64&x)){E=y[(65535&E)+(g&(1<<x)-1)];continue t}if(32&x){n.mode=o;break e}e.msg="invalid literal/length code",n.mode=r;break e}C=65535&E,x&=15,x&&(v<x&&(g+=_[i++]<<v,v+=8),C+=g&(1<<x)-1,g>>>=x,v-=x),v<15&&(g+=_[i++]<<v,v+=8,g+=_[i++]<<v,v+=8),E=m[g&w];n:for(;;){if(x=E>>>24,g>>>=x,v-=x,x=E>>>16&255,!(16&x)){if(0===(64&x)){E=m[(65535&E)+(g&(1<<x)-1)];continue n}e.msg="invalid distance code",n.mode=r;break e}if(S=65535&E,x&=15,v<x&&(g+=_[i++]<<v,v+=8,v<x&&(g+=_[i++]<<v,v+=8)),S+=g&(1<<x)-1,S>c){e.msg="invalid distance too far back",n.mode=r;break e}if(g>>>=x,v-=x,x=u-s,S>x){if(x=S-x,x>d&&n.sane){e.msg="invalid distance too far back",n.mode=r;break e}if(D=0,A=h,0===p){if(D+=f-x,x<C){C-=x;do{O[u++]=h[D++]}while(--x);D=u-S,A=O}}else if(p<x){if(D+=f+p-x,x-=p,x<C){C-=x;do{O[u++]=h[D++]}while(--x);if(D=0,p<C){x=p,C-=x;do{O[u++]=h[D++]}while(--x);D=u-S,A=O}}}else if(D+=p-x,x<C){C-=x;do{O[u++]=h[D++]}while(--x);D=u-S,A=O}while(C>2)O[u++]=A[D++],O[u++]=A[D++],O[u++]=A[D++],C-=3;C&&(O[u++]=A[D++],C>1&&(O[u++]=A[D++]))}else{D=u-S;do{O[u++]=O[D++],O[u++]=O[D++],O[u++]=O[D++],C-=3}while(C>2);C&&(O[u++]=O[D++],C>1&&(O[u++]=O[D++]))}break}}break}}while(i<a&&u<l);C=v>>3,i-=C,v-=C<<3,g&=(1<<v)-1,e.next_in=i,e.next_out=u,e.avail_in=i<a?a-i+5:5-(i-a),e.avail_out=u<l?l-u+257:257-(u-l),n.hold=g,n.bits=v}},{}],40:[function(e,t,n){"use strict";var r=e("../utils/common"),o=e("./adler32"),i=e("./crc32"),a=e("./inffast"),u=e("./inftrees"),s=0,l=1,c=2,f=4,d=5,p=6,h=0,g=1,v=2,y=-2,m=-3,b=-4,w=-5,E=8,x=1,C=2,S=3,D=4,A=5,_=6,O=7,k=8,B=9,T=10,F=11,P=12,j=13,I=14,N=15,R=16,L=17,M=18,z=19,U=20,H=21,$=22,V=23,W=24,G=25,q=26,K=27,Y=28,Z=29,X=30,J=31,Q=32,ee=852,te=592,ne=15,re=ne;function oe(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ie(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ae(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=x,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(ee),t.distcode=t.distdyn=new r.Buf32(te),t.sane=1,t.back=-1,h):y}function ue(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,ae(e)):y}function se(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?y:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ue(e))):y}function le(e,t){var n,r;return e?(r=new ie,e.state=r,r.window=null,n=se(e,t),n!==h&&(e.state=null),n):y}function ce(e){return le(e,re)}var fe,de,pe=!0;function he(e){if(pe){var t;fe=new r.Buf32(512),de=new r.Buf32(32),t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;u(l,e.lens,0,288,fe,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;u(c,e.lens,0,32,de,0,e.work,{bits:5}),pe=!1}e.lencode=fe,e.lenbits=9,e.distcode=de,e.distbits=5}function ge(e,t,n,o){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),o>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>o&&(i=o),r.arraySet(a.window,t,n-o,i,a.wnext),o-=i,o?(r.arraySet(a.window,t,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}function ve(e,t){var n,ee,te,ne,re,ie,ae,ue,se,le,ce,fe,de,pe,ve,ye,me,be,we,Ee,xe,Ce,Se,De,Ae=0,_e=new r.Buf8(4),Oe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return y;n=e.state,n.mode===P&&(n.mode=j),re=e.next_out,te=e.output,ae=e.avail_out,ne=e.next_in,ee=e.input,ie=e.avail_in,ue=n.hold,se=n.bits,le=ie,ce=ae,Ce=h;e:for(;;)switch(n.mode){case x:if(0===n.wrap){n.mode=j;break}while(se<16){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}if(2&n.wrap&&35615===ue){n.check=0,_e[0]=255&ue,_e[1]=ue>>>8&255,n.check=i(n.check,_e,2,0),ue=0,se=0,n.mode=C;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&ue)<<8)+(ue>>8))%31){e.msg="incorrect header check",n.mode=X;break}if((15&ue)!==E){e.msg="unknown compression method",n.mode=X;break}if(ue>>>=4,se-=4,xe=8+(15&ue),0===n.wbits)n.wbits=xe;else if(xe>n.wbits){e.msg="invalid window size",n.mode=X;break}n.dmax=1<<xe,e.adler=n.check=1,n.mode=512&ue?T:P,ue=0,se=0;break;case C:while(se<16){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}if(n.flags=ue,(255&n.flags)!==E){e.msg="unknown compression method",n.mode=X;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=X;break}n.head&&(n.head.text=ue>>8&1),512&n.flags&&(_e[0]=255&ue,_e[1]=ue>>>8&255,n.check=i(n.check,_e,2,0)),ue=0,se=0,n.mode=S;case S:while(se<32){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}n.head&&(n.head.time=ue),512&n.flags&&(_e[0]=255&ue,_e[1]=ue>>>8&255,_e[2]=ue>>>16&255,_e[3]=ue>>>24&255,n.check=i(n.check,_e,4,0)),ue=0,se=0,n.mode=D;case D:while(se<16){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}n.head&&(n.head.xflags=255&ue,n.head.os=ue>>8),512&n.flags&&(_e[0]=255&ue,_e[1]=ue>>>8&255,n.check=i(n.check,_e,2,0)),ue=0,se=0,n.mode=A;case A:if(1024&n.flags){while(se<16){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}n.length=ue,n.head&&(n.head.extra_len=ue),512&n.flags&&(_e[0]=255&ue,_e[1]=ue>>>8&255,n.check=i(n.check,_e,2,0)),ue=0,se=0}else n.head&&(n.head.extra=null);n.mode=_;case _:if(1024&n.flags&&(fe=n.length,fe>ie&&(fe=ie),fe&&(n.head&&(xe=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,ee,ne,fe,xe)),512&n.flags&&(n.check=i(n.check,ee,fe,ne)),ie-=fe,ne+=fe,n.length-=fe),n.length))break e;n.length=0,n.mode=O;case O:if(2048&n.flags){if(0===ie)break e;fe=0;do{xe=ee[ne+fe++],n.head&&xe&&n.length<65536&&(n.head.name+=String.fromCharCode(xe))}while(xe&&fe<ie);if(512&n.flags&&(n.check=i(n.check,ee,fe,ne)),ie-=fe,ne+=fe,xe)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=k;case k:if(4096&n.flags){if(0===ie)break e;fe=0;do{xe=ee[ne+fe++],n.head&&xe&&n.length<65536&&(n.head.comment+=String.fromCharCode(xe))}while(xe&&fe<ie);if(512&n.flags&&(n.check=i(n.check,ee,fe,ne)),ie-=fe,ne+=fe,xe)break e}else n.head&&(n.head.comment=null);n.mode=B;case B:if(512&n.flags){while(se<16){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}if(ue!==(65535&n.check)){e.msg="header crc mismatch",n.mode=X;break}ue=0,se=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=P;break;case T:while(se<32){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}e.adler=n.check=oe(ue),ue=0,se=0,n.mode=F;case F:if(0===n.havedict)return e.next_out=re,e.avail_out=ae,e.next_in=ne,e.avail_in=ie,n.hold=ue,n.bits=se,v;e.adler=n.check=1,n.mode=P;case P:if(t===d||t===p)break e;case j:if(n.last){ue>>>=7&se,se-=7&se,n.mode=K;break}while(se<3){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}switch(n.last=1&ue,ue>>>=1,se-=1,3&ue){case 0:n.mode=I;break;case 1:if(he(n),n.mode=U,t===p){ue>>>=2,se-=2;break e}break;case 2:n.mode=L;break;case 3:e.msg="invalid block type",n.mode=X}ue>>>=2,se-=2;break;case I:ue>>>=7&se,se-=7&se;while(se<32){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}if((65535&ue)!==(ue>>>16^65535)){e.msg="invalid stored block lengths",n.mode=X;break}if(n.length=65535&ue,ue=0,se=0,n.mode=N,t===p)break e;case N:n.mode=R;case R:if(fe=n.length,fe){if(fe>ie&&(fe=ie),fe>ae&&(fe=ae),0===fe)break e;r.arraySet(te,ee,ne,fe,re),ie-=fe,ne+=fe,ae-=fe,re+=fe,n.length-=fe;break}n.mode=P;break;case L:while(se<14){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}if(n.nlen=257+(31&ue),ue>>>=5,se-=5,n.ndist=1+(31&ue),ue>>>=5,se-=5,n.ncode=4+(15&ue),ue>>>=4,se-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=X;break}n.have=0,n.mode=M;case M:while(n.have<n.ncode){while(se<3){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}n.lens[Oe[n.have++]]=7&ue,ue>>>=3,se-=3}while(n.have<19)n.lens[Oe[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Se={bits:n.lenbits},Ce=u(s,n.lens,0,19,n.lencode,0,n.work,Se),n.lenbits=Se.bits,Ce){e.msg="invalid code lengths set",n.mode=X;break}n.have=0,n.mode=z;case z:while(n.have<n.nlen+n.ndist){for(;;){if(Ae=n.lencode[ue&(1<<n.lenbits)-1],ve=Ae>>>24,ye=Ae>>>16&255,me=65535&Ae,ve<=se)break;if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}if(me<16)ue>>>=ve,se-=ve,n.lens[n.have++]=me;else{if(16===me){De=ve+2;while(se<De){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}if(ue>>>=ve,se-=ve,0===n.have){e.msg="invalid bit length repeat",n.mode=X;break}xe=n.lens[n.have-1],fe=3+(3&ue),ue>>>=2,se-=2}else if(17===me){De=ve+3;while(se<De){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}ue>>>=ve,se-=ve,xe=0,fe=3+(7&ue),ue>>>=3,se-=3}else{De=ve+7;while(se<De){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}ue>>>=ve,se-=ve,xe=0,fe=11+(127&ue),ue>>>=7,se-=7}if(n.have+fe>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=X;break}while(fe--)n.lens[n.have++]=xe}}if(n.mode===X)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=X;break}if(n.lenbits=9,Se={bits:n.lenbits},Ce=u(l,n.lens,0,n.nlen,n.lencode,0,n.work,Se),n.lenbits=Se.bits,Ce){e.msg="invalid literal/lengths set",n.mode=X;break}if(n.distbits=6,n.distcode=n.distdyn,Se={bits:n.distbits},Ce=u(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Se),n.distbits=Se.bits,Ce){e.msg="invalid distances set",n.mode=X;break}if(n.mode=U,t===p)break e;case U:n.mode=H;case H:if(ie>=6&&ae>=258){e.next_out=re,e.avail_out=ae,e.next_in=ne,e.avail_in=ie,n.hold=ue,n.bits=se,a(e,ce),re=e.next_out,te=e.output,ae=e.avail_out,ne=e.next_in,ee=e.input,ie=e.avail_in,ue=n.hold,se=n.bits,n.mode===P&&(n.back=-1);break}for(n.back=0;;){if(Ae=n.lencode[ue&(1<<n.lenbits)-1],ve=Ae>>>24,ye=Ae>>>16&255,me=65535&Ae,ve<=se)break;if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}if(ye&&0===(240&ye)){for(be=ve,we=ye,Ee=me;;){if(Ae=n.lencode[Ee+((ue&(1<<be+we)-1)>>be)],ve=Ae>>>24,ye=Ae>>>16&255,me=65535&Ae,be+ve<=se)break;if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}ue>>>=be,se-=be,n.back+=be}if(ue>>>=ve,se-=ve,n.back+=ve,n.length=me,0===ye){n.mode=q;break}if(32&ye){n.back=-1,n.mode=P;break}if(64&ye){e.msg="invalid literal/length code",n.mode=X;break}n.extra=15&ye,n.mode=$;case $:if(n.extra){De=n.extra;while(se<De){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}n.length+=ue&(1<<n.extra)-1,ue>>>=n.extra,se-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=V;case V:for(;;){if(Ae=n.distcode[ue&(1<<n.distbits)-1],ve=Ae>>>24,ye=Ae>>>16&255,me=65535&Ae,ve<=se)break;if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}if(0===(240&ye)){for(be=ve,we=ye,Ee=me;;){if(Ae=n.distcode[Ee+((ue&(1<<be+we)-1)>>be)],ve=Ae>>>24,ye=Ae>>>16&255,me=65535&Ae,be+ve<=se)break;if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}ue>>>=be,se-=be,n.back+=be}if(ue>>>=ve,se-=ve,n.back+=ve,64&ye){e.msg="invalid distance code",n.mode=X;break}n.offset=me,n.extra=15&ye,n.mode=W;case W:if(n.extra){De=n.extra;while(se<De){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}n.offset+=ue&(1<<n.extra)-1,ue>>>=n.extra,se-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=X;break}n.mode=G;case G:if(0===ae)break e;if(fe=ce-ae,n.offset>fe){if(fe=n.offset-fe,fe>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=X;break}fe>n.wnext?(fe-=n.wnext,de=n.wsize-fe):de=n.wnext-fe,fe>n.length&&(fe=n.length),pe=n.window}else pe=te,de=re-n.offset,fe=n.length;fe>ae&&(fe=ae),ae-=fe,n.length-=fe;do{te[re++]=pe[de++]}while(--fe);0===n.length&&(n.mode=H);break;case q:if(0===ae)break e;te[re++]=n.length,ae--,n.mode=H;break;case K:if(n.wrap){while(se<32){if(0===ie)break e;ie--,ue|=ee[ne++]<<se,se+=8}if(ce-=ae,e.total_out+=ce,n.total+=ce,ce&&(e.adler=n.check=n.flags?i(n.check,te,ce,re-ce):o(n.check,te,ce,re-ce)),ce=ae,(n.flags?ue:oe(ue))!==n.check){e.msg="incorrect data check",n.mode=X;break}ue=0,se=0}n.mode=Y;case Y:if(n.wrap&&n.flags){while(se<32){if(0===ie)break e;ie--,ue+=ee[ne++]<<se,se+=8}if(ue!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=X;break}ue=0,se=0}n.mode=Z;case Z:Ce=g;break e;case X:Ce=m;break e;case J:return b;case Q:default:return y}return e.next_out=re,e.avail_out=ae,e.next_in=ne,e.avail_in=ie,n.hold=ue,n.bits=se,(n.wsize||ce!==e.avail_out&&n.mode<X&&(n.mode<K||t!==f))&&ge(e,e.output,e.next_out,ce-e.avail_out)?(n.mode=J,b):(le-=e.avail_in,ce-=e.avail_out,e.total_in+=le,e.total_out+=ce,n.total+=ce,n.wrap&&ce&&(e.adler=n.check=n.flags?i(n.check,te,ce,e.next_out-ce):o(n.check,te,ce,e.next_out-ce)),e.data_type=n.bits+(n.last?64:0)+(n.mode===P?128:0)+(n.mode===U||n.mode===N?256:0),(0===le&&0===ce||t===f)&&Ce===h&&(Ce=w),Ce)}function ye(e){if(!e||!e.state)return y;var t=e.state;return t.window&&(t.window=null),e.state=null,h}function me(e,t){var n;return e&&e.state?(n=e.state,0===(2&n.wrap)?y:(n.head=t,t.done=!1,h)):y}function be(e,t){var n,r,i,a=t.length;return e&&e.state?(n=e.state,0!==n.wrap&&n.mode!==F?y:n.mode===F&&(r=1,r=o(r,t,a,0),r!==n.check)?m:(i=ge(e,t,a,a),i?(n.mode=J,b):(n.havedict=1,h))):y}n.inflateReset=ue,n.inflateReset2=se,n.inflateResetKeep=ae,n.inflateInit=ce,n.inflateInit2=le,n.inflate=ve,n.inflateEnd=ye,n.inflateGetHeader=me,n.inflateSetDictionary=be,n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":32,"./adler32":34,"./crc32":36,"./inffast":39,"./inftrees":41}],41:[function(e,t,n){"use strict";var r=e("../utils/common"),o=15,i=852,a=592,u=0,s=1,l=2,c=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],d=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],p=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,h,g,v,y,m){var b,w,E,x,C,S,D,A,_,O=m.bits,k=0,B=0,T=0,F=0,P=0,j=0,I=0,N=0,R=0,L=0,M=null,z=0,U=new r.Buf16(o+1),H=new r.Buf16(o+1),$=null,V=0;for(k=0;k<=o;k++)U[k]=0;for(B=0;B<h;B++)U[t[n+B]]++;for(P=O,F=o;F>=1;F--)if(0!==U[F])break;if(P>F&&(P=F),0===F)return g[v++]=20971520,g[v++]=20971520,m.bits=1,0;for(T=1;T<F;T++)if(0!==U[T])break;for(P<T&&(P=T),N=1,k=1;k<=o;k++)if(N<<=1,N-=U[k],N<0)return-1;if(N>0&&(e===u||1!==F))return-1;for(H[1]=0,k=1;k<o;k++)H[k+1]=H[k]+U[k];for(B=0;B<h;B++)0!==t[n+B]&&(y[H[t[n+B]]++]=B);if(e===u?(M=$=y,S=19):e===s?(M=c,z-=257,$=f,V-=257,S=256):(M=d,$=p,S=-1),L=0,B=0,k=T,C=v,j=P,I=0,E=-1,R=1<<P,x=R-1,e===s&&R>i||e===l&&R>a)return 1;for(;;){D=k-I,y[B]<S?(A=0,_=y[B]):y[B]>S?(A=$[V+y[B]],_=M[z+y[B]]):(A=96,_=0),b=1<<k-I,w=1<<j,T=w;do{w-=b,g[C+(L>>I)+w]=D<<24|A<<16|_|0}while(0!==w);b=1<<k-1;while(L&b)b>>=1;if(0!==b?(L&=b-1,L+=b):L=0,B++,0===--U[k]){if(k===F)break;k=t[n+y[B]]}if(k>P&&(L&x)!==E){0===I&&(I=P),C+=T,j=k-I,N=1<<j;while(j+I<F){if(N-=U[j+I],N<=0)break;j++,N<<=1}if(R+=1<<j,e===s&&R>i||e===l&&R>a)return 1;E=L&x,g[E]=P<<24|j<<16|C-v|0}}return 0!==L&&(g[C+L]=k-I<<24|64<<16|0),m.bits=P,0}},{"../utils/common":32}],42:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],43:[function(e,t,n){"use strict";var r=e("../utils/common"),o=4,i=0,a=1,u=2;function s(e){var t=e.length;while(--t>=0)e[t]=0}var l=0,c=1,f=2,d=3,p=258,h=29,g=256,v=g+1+h,y=30,m=19,b=2*v+1,w=15,E=16,x=7,C=256,S=16,D=17,A=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],O=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=512,F=new Array(2*(v+2));s(F);var P=new Array(2*y);s(P);var j=new Array(T);s(j);var I=new Array(p-d+1);s(I);var N=new Array(h);s(N);var R,L,M,z=new Array(y);function U(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function H(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function $(e){return e<256?j[e]:j[256+(e>>>7)]}function V(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function W(e,t,n){e.bi_valid>E-n?(e.bi_buf|=t<<e.bi_valid&65535,V(e,e.bi_buf),e.bi_buf=t>>E-e.bi_valid,e.bi_valid+=n-E):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function G(e,t,n){W(e,n[2*t],n[2*t+1])}function q(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function K(e){16===e.bi_valid?(V(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function Y(e,t){var n,r,o,i,a,u,s=t.dyn_tree,l=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,h=t.stat_desc.max_length,g=0;for(i=0;i<=w;i++)e.bl_count[i]=0;for(s[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<b;n++)r=e.heap[n],i=s[2*s[2*r+1]+1]+1,i>h&&(i=h,g++),s[2*r+1]=i,r>l||(e.bl_count[i]++,a=0,r>=p&&(a=d[r-p]),u=s[2*r],e.opt_len+=u*(i+a),f&&(e.static_len+=u*(c[2*r+1]+a)));if(0!==g){do{i=h-1;while(0===e.bl_count[i])i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[h]--,g-=2}while(g>0);for(i=h;0!==i;i--){r=e.bl_count[i];while(0!==r)o=e.heap[--n],o>l||(s[2*o+1]!==i&&(e.opt_len+=(i-s[2*o+1])*s[2*o],s[2*o+1]=i),r--)}}}function Z(e,t,n){var r,o,i=new Array(w+1),a=0;for(r=1;r<=w;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var u=e[2*o+1];0!==u&&(e[2*o]=q(i[u]++,u))}}function X(){var e,t,n,r,o,i=new Array(w+1);for(n=0,r=0;r<h-1;r++)for(N[r]=n,e=0;e<1<<_[r];e++)I[n++]=r;for(I[n-1]=r,o=0,r=0;r<16;r++)for(z[r]=o,e=0;e<1<<O[r];e++)j[o++]=r;for(o>>=7;r<y;r++)for(z[r]=o<<7,e=0;e<1<<O[r]-7;e++)j[256+o++]=r;for(t=0;t<=w;t++)i[t]=0;e=0;while(e<=143)F[2*e+1]=8,e++,i[8]++;while(e<=255)F[2*e+1]=9,e++,i[9]++;while(e<=279)F[2*e+1]=7,e++,i[7]++;while(e<=287)F[2*e+1]=8,e++,i[8]++;for(Z(F,v+1,i),e=0;e<y;e++)P[2*e+1]=5,P[2*e]=q(e,5);R=new U(F,_,g+1,v,w),L=new U(P,O,0,y,w),M=new U(new Array(0),k,0,m,x)}function J(e){var t;for(t=0;t<v;t++)e.dyn_ltree[2*t]=0;for(t=0;t<y;t++)e.dyn_dtree[2*t]=0;for(t=0;t<m;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*C]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Q(e){e.bi_valid>8?V(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ee(e,t,n,o){Q(e),o&&(V(e,n),V(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function te(e,t,n,r){var o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]}function ne(e,t,n){var r=e.heap[n],o=n<<1;while(o<=e.heap_len){if(o<e.heap_len&&te(t,e.heap[o+1],e.heap[o],e.depth)&&o++,te(t,r,e.heap[o],e.depth))break;e.heap[n]=e.heap[o],n=o,o<<=1}e.heap[n]=r}function re(e,t,n){var r,o,i,a,u=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],o=e.pending_buf[e.l_buf+u],u++,0===r?G(e,o,t):(i=I[o],G(e,i+g+1,t),a=_[i],0!==a&&(o-=N[i],W(e,o,a)),r--,i=$(r),G(e,i,n),a=O[i],0!==a&&(r-=z[i],W(e,r,a)))}while(u<e.last_lit);G(e,C,t)}function oe(e,t){var n,r,o,i=t.dyn_tree,a=t.stat_desc.static_tree,u=t.stat_desc.has_stree,s=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=b,n=0;n<s;n++)0!==i[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):i[2*n+1]=0;while(e.heap_len<2)o=e.heap[++e.heap_len]=l<2?++l:0,i[2*o]=1,e.depth[o]=0,e.opt_len--,u&&(e.static_len-=a[2*o+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)ne(e,i,n);o=s;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ne(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,ne(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Y(e,t),Z(i,l,e.bl_count)}function ie(e,t,n){var r,o,i=-1,a=t[1],u=0,s=7,l=4;for(0===a&&(s=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++u<s&&o===a||(u<l?e.bl_tree[2*o]+=u:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[2*S]++):u<=10?e.bl_tree[2*D]++:e.bl_tree[2*A]++,u=0,i=o,0===a?(s=138,l=3):o===a?(s=6,l=3):(s=7,l=4))}function ae(e,t,n){var r,o,i=-1,a=t[1],u=0,s=7,l=4;for(0===a&&(s=138,l=3),r=0;r<=n;r++)if(o=a,a=t[2*(r+1)+1],!(++u<s&&o===a)){if(u<l)do{G(e,o,e.bl_tree)}while(0!==--u);else 0!==o?(o!==i&&(G(e,o,e.bl_tree),u--),G(e,S,e.bl_tree),W(e,u-3,2)):u<=10?(G(e,D,e.bl_tree),W(e,u-3,3)):(G(e,A,e.bl_tree),W(e,u-11,7));u=0,i=o,0===a?(s=138,l=3):o===a?(s=6,l=3):(s=7,l=4)}}function ue(e){var t;for(ie(e,e.dyn_ltree,e.l_desc.max_code),ie(e,e.dyn_dtree,e.d_desc.max_code),oe(e,e.bl_desc),t=m-1;t>=3;t--)if(0!==e.bl_tree[2*B[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t}function se(e,t,n,r){var o;for(W(e,t-257,5),W(e,n-1,5),W(e,r-4,4),o=0;o<r;o++)W(e,e.bl_tree[2*B[o]+1],3);ae(e,e.dyn_ltree,t-1),ae(e,e.dyn_dtree,n-1)}function le(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t<g;t++)if(0!==e.dyn_ltree[2*t])return a;return i}s(z);var ce=!1;function fe(e){ce||(X(),ce=!0),e.l_desc=new H(e.dyn_ltree,R),e.d_desc=new H(e.dyn_dtree,L),e.bl_desc=new H(e.bl_tree,M),e.bi_buf=0,e.bi_valid=0,J(e)}function de(e,t,n,r){W(e,(l<<1)+(r?1:0),3),ee(e,t,n,!0)}function pe(e){W(e,c<<1,3),G(e,C,F),K(e)}function he(e,t,n,r){var i,a,s=0;e.level>0?(e.strm.data_type===u&&(e.strm.data_type=le(e)),oe(e,e.l_desc),oe(e,e.d_desc),s=ue(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?de(e,t,n,r):e.strategy===o||a===i?(W(e,(c<<1)+(r?1:0),3),re(e,F,P)):(W(e,(f<<1)+(r?1:0),3),se(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),re(e,e.dyn_ltree,e.dyn_dtree)),J(e),r&&Q(e)}function ge(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(I[n]+g+1)]++,e.dyn_dtree[2*$(t)]++),e.last_lit===e.lit_bufsize-1}n._tr_init=fe,n._tr_stored_block=de,n._tr_flush_block=he,n._tr_tally=ge,n._tr_align=pe},{"../utils/common":32}],44:[function(e,t,n){"use strict";function r(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}t.exports=r},{}],45:[function(e,t,n){var r=e("lodash._root"),o=1/0,i="[object Symbol]",a=/[&<>"'`]/g,u=RegExp(a.source),s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"};function l(e){return s[e]}var c=Object.prototype,f=c.toString,d=r.Symbol,p=d?d.prototype:void 0,h=d?p.toString:void 0;function g(e){return!!e&&"object"==typeof e}function v(e){return"symbol"==typeof e||g(e)&&f.call(e)==i}function y(e){if("string"==typeof e)return e;if(null==e)return"";if(v(e))return d?h.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}function m(e){return e=y(e),e&&u.test(e)?e.replace(a,l):e}t.exports=m},{"lodash._root":46}],46:[function(e,t,n){(function(e){var r={function:!0,object:!0},o=r[typeof n]&&n&&!n.nodeType?n:void 0,i=r[typeof t]&&t&&!t.nodeType?t:void 0,a=f(o&&i&&"object"==typeof e&&e),u=f(r[typeof self]&&self),s=f(r[typeof window]&&window),l=f(r[typeof this]&&this),c=a||s!==(l&&l.window)&&s||u||l||Function("return this")();function f(e){return e&&e.Object===Object?e:null}t.exports=c}).call(this,"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],47:[function(e,t,n){var r=e("lodash._arraycopy"),o=e("lodash._arrayeach"),i=e("lodash._createassigner"),a=e("lodash.isarguments"),u=e("lodash.isarray"),s=e("lodash.isplainobject"),l=e("lodash.istypedarray"),c=e("lodash.keys"),f=e("lodash.toplainobject");function d(e){return!!e&&"object"==typeof e}var p=9007199254740991;function h(e,t,n,r,i){if(!w(e))return e;var a=m(t)&&(u(t)||l(t)),s=a?void 0:c(t);return o(s||t,(function(o,u){if(s&&(u=o,o=t[u]),d(o))r||(r=[]),i||(i=[]),g(e,t,u,h,n,r,i);else{var l=e[u],c=n?n(l,o,u,e,t):void 0,f=void 0===c;f&&(c=o),void 0===c&&(!a||u in e)||!f&&(c===c?c===l:l!==l)||(e[u]=c)}})),e}function g(e,t,n,o,i,c,d){var p=c.length,h=t[n];while(p--)if(c[p]==h)return void(e[n]=d[p]);var g=e[n],v=i?i(g,h,n,e,t):void 0,y=void 0===v;y&&(v=h,m(h)&&(u(h)||l(h))?v=u(g)?g:m(g)?r(g):[]:s(h)||a(h)?v=a(g)?f(g):s(g)?g:{}:y=!1),c.push(h),d.push(v),y?e[n]=o(v,h,i,c,d):(v===v?v!==g:g===g)&&(e[n]=v)}function v(e){return function(t){return null==t?void 0:t[e]}}var y=v("length");function m(e){return null!=e&&b(y(e))}function b(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function w(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var E=i(h);t.exports=E},{"lodash._arraycopy":48,"lodash._arrayeach":49,"lodash._createassigner":50,"lodash.isarguments":55,"lodash.isarray":56,"lodash.isplainobject":57,"lodash.istypedarray":59,"lodash.keys":60,"lodash.toplainobject":62}],48:[function(e,t,n){function r(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}t.exports=r},{}],49:[function(e,t,n){function r(e,t){var n=-1,r=e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}t.exports=r},{}],50:[function(e,t,n){var r=e("lodash._bindcallback"),o=e("lodash._isiterateecall"),i=e("lodash.restparam");function a(e){return i((function(t,n){var i=-1,a=null==t?0:n.length,u=a>2?n[a-2]:void 0,s=a>2?n[2]:void 0,l=a>1?n[a-1]:void 0;"function"==typeof u?(u=r(u,l,5),a-=2):(u="function"==typeof l?l:void 0,a-=u?1:0),s&&o(n[0],n[1],s)&&(u=a<3?void 0:u,a=1);while(++i<a){var c=n[i];c&&e(t,c,u)}return t}))}t.exports=a},{"lodash._bindcallback":51,"lodash._isiterateecall":52,"lodash.restparam":53}],51:[function(e,t,n){function r(e,t,n){if("function"!=typeof e)return o;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)};case 5:return function(n,r,o,i,a){return e.call(t,n,r,o,i,a)}}return function(){return e.apply(t,arguments)}}function o(e){return e}t.exports=r},{}],52:[function(e,t,n){var r=/^\d+$/,o=9007199254740991;function i(e){return function(t){return null==t?void 0:t[e]}}var a=i("length");function u(e){return null!=e&&c(a(e))}function s(e,t){return e="number"==typeof e||r.test(e)?+e:-1,t=null==t?o:t,e>-1&&e%1==0&&e<t}function l(e,t,n){if(!f(n))return!1;var r=typeof t;if("number"==r?u(n)&&s(t,n.length):"string"==r&&t in n){var o=n[t];return e===e?e===o:o!==o}return!1}function c(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=l},{}],53:[function(e,t,n){var r="Expected a function",o=Math.max;function i(e,t){if("function"!=typeof e)throw new TypeError(r);return t=o(void 0===t?e.length-1:+t||0,0),function(){var n=arguments,r=-1,i=o(n.length-t,0),a=Array(i);while(++r<i)a[r]=n[t+r];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,n[0],a);case 2:return e.call(this,n[0],n[1],a)}var u=Array(t+1);r=-1;while(++r<t)u[r]=n[r];return u[t]=a,e.apply(this,u)}}t.exports=i},{}],54:[function(e,t,n){var r="[object Function]",o=/^\[object .+?Constructor\]$/;function i(e){return!!e&&"object"==typeof e}var a=Object.prototype,u=Function.prototype.toString,s=a.hasOwnProperty,l=a.toString,c=RegExp("^"+u.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(e,t){var n=null==e?void 0:e[t];return h(n)?n:void 0}function d(e){return p(e)&&l.call(e)==r}function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){return null!=e&&(d(e)?c.test(u.call(e)):i(e)&&o.test(e))}t.exports=f},{}],55:[function(e,t,n){var r=9007199254740991,o="[object Arguments]",i="[object Function]",a="[object GeneratorFunction]",u=Object.prototype,s=u.hasOwnProperty,l=u.toString,c=u.propertyIsEnumerable;function f(e){return function(t){return null==t?void 0:t[e]}}var d=f("length");function p(e){return g(e)&&s.call(e,"callee")&&(!c.call(e,"callee")||l.call(e)==o)}function h(e){return null!=e&&y(d(e))&&!v(e)}function g(e){return b(e)&&h(e)}function v(e){var t=m(e)?l.call(e):"";return t==i||t==a}function y(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){return!!e&&"object"==typeof e}t.exports=p},{}],56:[function(e,t,n){var r="[object Array]",o="[object Function]",i=/^\[object .+?Constructor\]$/;function a(e){return!!e&&"object"==typeof e}var u=Object.prototype,s=Function.prototype.toString,l=u.hasOwnProperty,c=u.toString,f=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),d=h(Array,"isArray"),p=9007199254740991;function h(e,t){var n=null==e?void 0:e[t];return b(n)?n:void 0}function g(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}var v=d||function(e){return a(e)&&g(e.length)&&c.call(e)==r};function y(e){return m(e)&&c.call(e)==o}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){return null!=e&&(y(e)?f.test(s.call(e)):a(e)&&i.test(e))}t.exports=v},{}],57:[function(e,t,n){var r=e("lodash._basefor"),o=e("lodash.isarguments"),i=e("lodash.keysin"),a="[object Object]";function u(e){return!!e&&"object"==typeof e}var s=Object.prototype,l=s.hasOwnProperty,c=s.toString;function f(e,t){return r(e,t,i)}function d(e){var t,n;return!(!u(e)||c.call(e)!=a||o(e)||!(l.call(e,"constructor")||(t=e.constructor,"function"!=typeof t||t instanceof t)))&&(f(e,(function(e,t){n=t})),void 0===n||l.call(e,n))}t.exports=d},{"lodash._basefor":58,"lodash.isarguments":55,"lodash.keysin":61}],58:[function(e,t,n){var r=o();function o(e){return function(t,n,r){var o=-1,i=Object(t),a=r(t),u=a.length;while(u--){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}t.exports=r},{}],59:[function(e,t,n){var r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object RegExp]",h="[object Set]",g="[object String]",v="[object WeakMap]",y="[object ArrayBuffer]",m="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",E="[object Int8Array]",x="[object Int16Array]",C="[object Int32Array]",S="[object Uint8Array]",D="[object Uint8ClampedArray]",A="[object Uint16Array]",_="[object Uint32Array]",O={};O[b]=O[w]=O[E]=O[x]=O[C]=O[S]=O[D]=O[A]=O[_]=!0,O[o]=O[i]=O[y]=O[a]=O[m]=O[u]=O[s]=O[l]=O[c]=O[f]=O[d]=O[p]=O[h]=O[g]=O[v]=!1;var k=Object.prototype,B=k.toString;function T(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function F(e){return!!e&&"object"==typeof e}function P(e){return F(e)&&T(e.length)&&!!O[B.call(e)]}t.exports=P},{}],60:[function(e,t,n){var r=e("lodash._getnative"),o=e("lodash.isarguments"),i=e("lodash.isarray"),a=/^\d+$/,u=Object.prototype,s=u.hasOwnProperty,l=r(Object,"keys"),c=9007199254740991;function f(e){return function(t){return null==t?void 0:t[e]}}var d=f("length");function p(e){return null!=e&&g(d(e))}function h(e,t){return e="number"==typeof e||a.test(e)?+e:-1,t=null==t?c:t,e>-1&&e%1==0&&e<t}function g(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function v(e){var t=b(e),n=t.length,r=n&&e.length,a=!!r&&g(r)&&(i(e)||o(e)),u=-1,l=[];while(++u<n){var c=t[u];(a&&h(c,r)||s.call(e,c))&&l.push(c)}return l}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var m=l?function(e){var t=null==e?void 0:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&p(e)?v(e):y(e)?l(e):[]}:v;function b(e){if(null==e)return[];y(e)||(e=Object(e));var t=e.length;t=t&&g(t)&&(i(e)||o(e))&&t||0;var n=e.constructor,r=-1,a="function"==typeof n&&n.prototype===e,u=Array(t),l=t>0;while(++r<t)u[r]=r+"";for(var c in e)l&&h(c,t)||"constructor"==c&&(a||!s.call(e,c))||u.push(c);return u}t.exports=m},{"lodash._getnative":54,"lodash.isarguments":55,"lodash.isarray":56}],61:[function(e,t,n){var r=e("lodash.isarguments"),o=e("lodash.isarray"),i=/^\d+$/,a=Object.prototype,u=a.hasOwnProperty,s=9007199254740991;function l(e,t){return e="number"==typeof e||i.test(e)?+e:-1,t=null==t?s:t,e>-1&&e%1==0&&e<t}function c(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function d(e){if(null==e)return[];f(e)||(e=Object(e));var t=e.length;t=t&&c(t)&&(o(e)||r(e))&&t||0;var n=e.constructor,i=-1,a="function"==typeof n&&n.prototype===e,s=Array(t),d=t>0;while(++i<t)s[i]=i+"";for(var p in e)d&&l(p,t)||"constructor"==p&&(a||!u.call(e,p))||s.push(p);return s}t.exports=d},{"lodash.isarguments":55,"lodash.isarray":56}],62:[function(e,t,n){var r=e("lodash._basecopy"),o=e("lodash.keysin");function i(e){return r(e,o(e))}t.exports=i},{"lodash._basecopy":63,"lodash.keysin":61}],63:[function(e,t,n){function r(e,t,n){n||(n={});var r=-1,o=t.length;while(++r<o){var i=t[r];n[i]=e[i]}return n}t.exports=r},{}],64:[function(e,t,n){var r,o;r=e("jszip"),o=e("./internal"),t.exports={asBlob:function(e,t){var n;return n=new r,o.addFiles(n,e,t),o.generateDocument(n)}}},{"./internal":65,jszip:14}],65:[function(e,t,n){(function(n,r){var o,i,a;o=e("./templates/document"),i=e("./utils"),a={merge:e("lodash.merge")},t.exports={generateDocument:function(e){var t;if(t=e.generate({type:"arraybuffer"}),n.Blob)return new Blob([t],{type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"});if(n.Buffer)return new r(new Uint8Array(t));throw new Error("Neither Blob nor Buffer are accessible in this environment. Consider adding Blob.js shim")},renderDocumentFile:function(e){var t;return null==e&&(e={}),t=a.merge({margins:{top:1440,right:1440,bottom:1440,left:1440,header:720,footer:720,gutter:0}},function(){switch(e.orientation){case"landscape":return{height:12240,width:15840,orient:"landscape"};default:return{width:12240,height:15840,orient:"portrait"}}}(),{margins:e.margins}),o(t)},addFiles:function(e,t,n){return e.file("[Content_Types].xml",r("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8VHlwZXMgeG1sbnM9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9wYWNrYWdlLzIwMDYvY29udGVudC10eXBlcyI+CiAgPERlZmF1bHQgRXh0ZW5zaW9uPSJyZWxzIiBDb250ZW50VHlwZT0KICAgICJhcHBsaWNhdGlvbi92bmQub3BlbnhtbGZvcm1hdHMtcGFja2FnZS5yZWxhdGlvbnNoaXBzK3htbCIgLz4KICA8T3ZlcnJpZGUgUGFydE5hbWU9Ii93b3JkL2RvY3VtZW50LnhtbCIgQ29udGVudFR5cGU9CiAgICAiYXBwbGljYXRpb24vdm5kLm9wZW54bWxmb3JtYXRzLW9mZmljZWRvY3VtZW50LndvcmRwcm9jZXNzaW5nbWwuZG9jdW1lbnQubWFpbit4bWwiLz4KICA8T3ZlcnJpZGUgUGFydE5hbWU9Ii93b3JkL2FmY2h1bmsubWh0IiBDb250ZW50VHlwZT0ibWVzc2FnZS9yZmM4MjIiLz4KPC9UeXBlcz4K","base64")),e.folder("_rels").file(".rels",r("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8UmVsYXRpb25zaGlwcyB4bWxucz0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9yZWxhdGlvbnNoaXBzIj4KICA8UmVsYXRpb25zaGlwCiAgICAgIFR5cGU9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9vZmZpY2VEb2N1bWVudC8yMDA2L3JlbGF0aW9uc2hpcHMvb2ZmaWNlRG9jdW1lbnQiCiAgICAgIFRhcmdldD0iL3dvcmQvZG9jdW1lbnQueG1sIiBJZD0iUjA5YzgzZmFmYzA2NzQ4OGUiIC8+CjwvUmVsYXRpb25zaGlwcz4K","base64")),e.folder("word").file("document.xml",this.renderDocumentFile(n)).file("afchunk.mht",i.getMHTdocument(t)).folder("_rels").file("document.xml.rels",r("PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8UmVsYXRpb25zaGlwcyB4bWxucz0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9yZWxhdGlvbnNoaXBzIj4KICA8UmVsYXRpb25zaGlwIFR5cGU9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9vZmZpY2VEb2N1bWVudC8yMDA2L3JlbGF0aW9uc2hpcHMvYUZDaHVuayIKICAgIFRhcmdldD0iL3dvcmQvYWZjaHVuay5taHQiIElkPSJodG1sQ2h1bmsiIC8+CjwvUmVsYXRpb25zaGlwcz4K","base64"))}}}).call(this,"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"./templates/document":66,"./utils":69,buffer:1,"lodash.merge":47}],66:[function(_dereq_,module,exports){var _={escape:_dereq_("lodash.escape")};module.exports=function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<w:document\n  xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"\n  xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"\n  xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"\n  xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"\n  xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"\n  xmlns:ns6="http://schemas.openxmlformats.org/schemaLibrary/2006/main"\n  xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"\n  xmlns:ns8="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing"\n  xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram"\n  xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"\n  xmlns:ns11="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"\n  xmlns:dsp="http://schemas.microsoft.com/office/drawing/2008/diagram"\n  xmlns:ns13="urn:schemas-microsoft-com:office:excel"\n  xmlns:o="urn:schemas-microsoft-com:office:office"\n  xmlns:v="urn:schemas-microsoft-com:vml"\n  xmlns:w10="urn:schemas-microsoft-com:office:word"\n  xmlns:ns17="urn:schemas-microsoft-com:office:powerpoint"\n  xmlns:odx="http://opendope.org/xpaths"\n  xmlns:odc="http://opendope.org/conditions"\n  xmlns:odq="http://opendope.org/questions"\n  xmlns:odi="http://opendope.org/components"\n  xmlns:odgm="http://opendope.org/SmartArt/DataHierarchy"\n  xmlns:ns24="http://schemas.openxmlformats.org/officeDocument/2006/bibliography"\n  xmlns:ns25="http://schemas.openxmlformats.org/drawingml/2006/compatibility"\n  xmlns:ns26="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas">\n  <w:body>\n    <w:altChunk r:id="htmlChunk" />\n    <w:sectPr>\n      <w:pgSz w:w="'+(null==(__t=width)?"":__t)+'" w:h="'+(null==(__t=height)?"":__t)+'" w:orient="'+(null==(__t=orient)?"":__t)+'" />\n      <w:pgMar w:top="'+(null==(__t=margins.top)?"":__t)+'"\n               w:right="'+(null==(__t=margins.right)?"":__t)+'"\n               w:bottom="'+(null==(__t=margins.bottom)?"":__t)+'"\n               w:left="'+(null==(__t=margins.left)?"":__t)+'"\n               w:header="'+(null==(__t=margins.header)?"":__t)+'"\n               w:footer="'+(null==(__t=margins.footer)?"":__t)+'"\n               w:gutter="'+(null==(__t=margins.gutter)?"":__t)+'"/>\n    </w:sectPr>\n  </w:body>\n</w:document>\n';return __p}},{"lodash.escape":45}],67:[function(_dereq_,module,exports){var _={escape:_dereq_("lodash.escape")};module.exports=function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='MIME-Version: 1.0\nContent-Type: multipart/related;\n    type="text/html";\n    boundary="----=mhtDocumentPart"\n\n\n------=mhtDocumentPart\nContent-Type: text/html;\n    charset="utf-8"\nContent-Transfer-Encoding: quoted-printable\nContent-Location: file:///C:/fake/document.html\n\n'+(null==(__t=htmlSource)?"":__t)+"\n\n"+(null==(__t=contentParts)?"":__t)+"\n\n------=mhtDocumentPart--\n";return __p}},{"lodash.escape":45}],68:[function(_dereq_,module,exports){var _={escape:_dereq_("lodash.escape")};module.exports=function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+="------=mhtDocumentPart\nContent-Type: "+(null==(__t=contentType)?"":__t)+"\nContent-Transfer-Encoding: "+(null==(__t=contentEncoding)?"":__t)+"\nContent-Location: "+(null==(__t=contentLocation)?"":__t)+"\n\n"+(null==(__t=encodedContent)?"":__t)+"\n";return __p}},{"lodash.escape":45}],69:[function(e,t,n){var r,o;r=e("./templates/mht_document"),o=e("./templates/mht_part"),t.exports={getMHTdocument:function(e){var t,n;return n=this._prepareImageParts(e),e=n.htmlSource,t=n.imageContentParts,e=e.replace(/\=/g,"=3D"),r({htmlSource:e,contentParts:t.join("\n")})},_prepareImageParts:function(e){var t,n,r;if(t=[],r=/"data:(\w+\/\w+);(\w+),(\S+)"/g,n=function(e,n,r,i){var a,u,s;return s=t.length,u=n.split("/")[1],a="file:///C:/fake/image"+s+"."+u,t.push(o({contentType:n,contentEncoding:r,contentLocation:a,encodedContent:i})),'"'+a+'"'},"string"===typeof e)return/<img/g.test(e)?(e=e.replace(r,n),{htmlSource:e,imageContentParts:t}):{htmlSource:e,imageContentParts:t};throw new Error("Not a valid source provided!")}}},{"./templates/mht_document":67,"./templates/mht_part":68}]},{},[64])(64)}))},"4fad":function(e,t,n){var r=n("d039"),o=n("861d"),i=n("c6b6"),a=n("d86b"),u=Object.isExtensible,s=r((function(){u(1)}));e.exports=s||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!u||u(e)))}:u},"512ce":function(e,t,n){var r=n("342f"),o=r.match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},"5b81":function(e,t,n){"use strict";var r=n("23e7"),o=n("c65b"),i=n("e330"),a=n("1d80"),u=n("1626"),s=n("7234"),l=n("44e7"),c=n("577e"),f=n("dc4a"),d=n("90d8"),p=n("0cb2"),h=n("b622"),g=n("c430"),v=h("replace"),y=TypeError,m=i("".indexOf),b=i("".replace),w=i("".slice),E=Math.max,x=function(e,t,n){return n>e.length?-1:""===t?n:m(e,t,n)};r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,i,h,C,S,D,A,_,O=a(this),k=0,B=0,T="";if(!s(e)){if(n=l(e),n&&(r=c(a(d(e))),!~m(r,"g")))throw y("`.replaceAll` does not allow non-global regexes");if(i=f(e,v),i)return o(i,e,O,t);if(g&&n)return b(c(O),e,t)}h=c(O),C=c(e),S=u(t),S||(t=c(t)),D=C.length,A=E(1,D),k=x(h,C,0);while(-1!==k)_=S?c(t(C,k,h)):p(C,h,k,[],void 0,t),T+=w(h,B,k)+_,B=k+D,k=x(h,C,k+A);return B<h.length&&(T+=w(h,B)),T}})},addb:function(e,t,n){var r=n("4dae"),o=Math.floor,i=function(e,t){var n=e.length,s=o(n/2);return n<8?a(e,t):u(e,i(r(e,0,s),t),i(r(e,s),t),t)},a=function(e,t){var n,r,o=e.length,i=1;while(i<o){r=i,n=e[i];while(r&&t(e[r-1],n)>0)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},u=function(e,t,n,r){var o=t.length,i=n.length,a=0,u=0;while(a<o||u<i)e[a+u]=a<o&&u<i?r(t[a],n[u])<=0?t[a++]:n[u++]:a<o?t[a++]:n[u++];return e};e.exports=i},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}})},bb2f:function(e,t,n){var r=n("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},cb23:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return tO})),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)}),g=Function.prototype,v=g.bind,y=g.call,m=v&&v.bind(y),b=v?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}},x=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=Function.prototype.call,S=C.bind?C.bind(C):function(){return C.apply(C,arguments)},D={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,_=A&&!D.call({1:2},1)?function(e){var t=A(this,e);return!!t&&t.enumerable}:D,O={f:_},k=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B=b({}.toString),T=b("".slice),F=function(e){return T(B(e),8,-1)},P=l.Object,j=b("".split),I=E((function(){return!P("z").propertyIsEnumerable(0)}))?function(e){return"String"==F(e)?j(e,""):P(e)}:P,N=l.TypeError,R=function(e){if(null==e)throw N("Can't call method on "+e);return e},L=function(e){return I(R(e))},M=function(e){return"object"==typeof e?null!==e:w(e)},z={},U=function(e){return w(e)?e:void 0},H=function(e,t){return arguments.length<2?U(z[e])||U(l[e]):z[e]&&z[e][t]||l[e]&&l[e][t]},$=b({}.isPrototypeOf),V=H("navigator","userAgent")||"",W=l.process,G=l.Deno,q=W&&W.versions||G&&G.version,K=q&&q.v8;K&&(u=(a=K.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!u&&V&&(!(a=V.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=V.match(/Chrome\/(\d+)/))&&(u=+a[1]);var Y,Z=u,X=!!Object.getOwnPropertySymbols&&!E((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Z&&Z<41})),J=X&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Q=l.Object,ee=J?function(e){return"symbol"==typeof e}:function(e){var t=H("Symbol");return w(t)&&$(t.prototype,Q(e))},te=l.String,ne=function(e){try{return te(e)}catch(e){return"Object"}},re=l.TypeError,oe=function(e){if(w(e))return e;throw re(ne(e)+" is not a function")},ie=function(e,t){var n=e[t];return null==n?void 0:oe(n)},ae=l.TypeError,ue=Object.defineProperty,se=l["__core-js_shared__"]||function(e,t){try{ue(l,e,{value:t,configurable:!0,writable:!0})}catch(i){l[e]=t}return t}("__core-js_shared__",{}),le=i((function(e){(e.exports=function(e,t){return se[e]||(se[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ce=l.Object,fe=function(e){return ce(R(e))},de=b({}.hasOwnProperty),pe=Object.hasOwn||function(e,t){return de(fe(e),t)},he=0,ge=Math.random(),ve=b(1..toString),ye=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ve(++he+ge,36)},me=le("wks"),be=l.Symbol,we=be&&be.for,Ee=J?be:be&&be.withoutSetter||ye,xe=function(e){if(!pe(me,e)||!X&&"string"!=typeof me[e]){var t="Symbol."+e;X&&pe(be,e)?me[e]=be[e]:me[e]=J&&we?we(t):Ee(t)}return me[e]},Ce=l.TypeError,Se=xe("toPrimitive"),De=function(e,t){if(!M(e)||ee(e))return e;var n,r=ie(e,Se);if(r){if(void 0===t&&(t="default"),n=S(r,e,t),!M(n)||ee(n))return n;throw Ce("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&w(n=e.toString)&&!M(r=S(n,e)))return r;if(w(n=e.valueOf)&&!M(r=S(n,e)))return r;if("string"!==t&&w(n=e.toString)&&!M(r=S(n,e)))return r;throw ae("Can't convert object to primitive value")}(e,t)},Ae=function(e){var t=De(e,"string");return ee(t)?t:t+""},_e=l.document,Oe=M(_e)&&M(_e.createElement),ke=function(e){return Oe?_e.createElement(e):{}},Be=!x&&!E((function(){return 7!=Object.defineProperty(ke("div"),"a",{get:function(){return 7}}).a})),Te=Object.getOwnPropertyDescriptor,Fe=x?Te:function(e,t){if(e=L(e),t=Ae(t),Be)try{return Te(e,t)}catch(e){}if(pe(e,t))return k(!S(O.f,e,t),e[t])},Pe={f:Fe},je=/#|\.prototype\./,Ie=function(e,t){var n=Re[Ne(e)];return n==Me||n!=Le&&(w(t)?E(t):!!t)},Ne=Ie.normalize=function(e){return String(e).replace(je,".").toLowerCase()},Re=Ie.data={},Le=Ie.NATIVE="N",Me=Ie.POLYFILL="P",ze=Ie,Ue=b(b.bind),He=function(e,t){return oe(e),void 0===t?e:Ue?Ue(e,t):function(){return e.apply(t,arguments)}},$e=l.String,Ve=l.TypeError,We=function(e){if(M(e))return e;throw Ve($e(e)+" is not an object")},Ge=l.TypeError,qe=Object.defineProperty,Ke=x?qe:function(e,t,n){if(We(e),t=Ae(t),We(n),Be)try{return qe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ge("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ye={f:Ke},Ze=x?function(e,t,n){return Ye.f(e,t,k(1,n))}:function(e,t,n){return e[t]=n,e},Xe=Pe.f,Je=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return h(e,this,arguments)};return t.prototype=e.prototype,t},Qe=function(e,t){var n,r,o,i,a,u,s,c,f=e.target,d=e.global,p=e.stat,h=e.proto,g=d?l:p?l[f]:(l[f]||{}).prototype,v=d?z:z[f]||Ze(z,f,{})[f],y=v.prototype;for(o in t)n=!ze(d?o:f+(p?".":"#")+o,e.forced)&&g&&pe(g,o),a=v[o],n&&(u=e.noTargetGet?(c=Xe(g,o))&&c.value:g[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?He(i,l):e.wrap&&n?Je(i):h&&w(i)?b(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Ze(s,"sham",!0),Ze(v,o,s),h&&(pe(z,r=f+"Prototype")||Ze(z,r,{}),Ze(z[r],o,i),e.real&&y&&!y[o]&&Ze(y,o,i)))},et=le("keys"),tt=function(e){return et[e]||(et[e]=ye(e))},nt=!E((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),rt=tt("IE_PROTO"),ot=l.Object,it=ot.prototype,at=nt?ot.getPrototypeOf:function(e){var t=fe(e);if(pe(t,rt))return t[rt];var n=t.constructor;return w(n)&&t instanceof n?n.prototype:t instanceof ot?it:null},ut=l.String,st=l.TypeError,lt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return We(n),function(e){if("object"==typeof e||w(e))return e;throw st("Can't set "+ut(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ct=Math.ceil,ft=Math.floor,dt=function(e){var t=+e;return t!=t||0===t?0:(t>0?ft:ct)(t)},pt=Math.max,ht=Math.min,gt=function(e,t){var n=dt(e);return n<0?pt(n+t,0):ht(n,t)},vt=Math.min,yt=function(e){return(t=e.length)>0?vt(dt(t),9007199254740991):0;var t},mt=function(e){return function(t,n,r){var o,i=L(t),a=yt(i),u=gt(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},bt={includes:mt(!0),indexOf:mt(!1)},wt={},Et=bt.indexOf,xt=b([].push),Ct=function(e,t){var n,r=L(e),o=0,i=[];for(n in r)!pe(wt,n)&&pe(r,n)&&xt(i,n);for(;t.length>o;)pe(r,n=t[o++])&&(~Et(i,n)||xt(i,n));return i},St=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dt=St.concat("length","prototype"),At=Object.getOwnPropertyNames||function(e){return Ct(e,Dt)},_t={f:At},Ot={f:Object.getOwnPropertySymbols},kt=b([].concat),Bt=H("Reflect","ownKeys")||function(e){var t=_t.f(We(e)),n=Ot.f;return n?kt(t,n(e)):t},Tt=Object.keys||function(e){return Ct(e,St)},Ft=x?Object.defineProperties:function(e,t){We(e);for(var n,r=L(t),o=Tt(t),i=o.length,a=0;i>a;)Ye.f(e,n=o[a++],r[n]);return e},Pt=H("document","documentElement"),jt=tt("IE_PROTO"),It=function(){},Nt=function(e){return"<script>"+e+"<\/script>"},Rt=function(e){e.write(Nt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Lt=function(){try{Y=new ActiveXObject("htmlfile")}catch(e){}var e,t;Lt="undefined"!=typeof document?document.domain&&Y?Rt(Y):((t=ke("iframe")).style.display="none",Pt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Nt("document.F=Object")),e.close(),e.F):Rt(Y);for(var n=St.length;n--;)delete Lt.prototype[St[n]];return Lt()};wt[jt]=!0;var Mt=Object.create||function(e,t){var n;return null!==e?(It.prototype=We(e),n=new It,It.prototype=null,n[jt]=e):n=Lt(),void 0===t?n:Ft(n,t)},zt=function(e,t,n){var r=Ae(t);r in e?Ye.f(e,r,k(0,n)):e[r]=n},Ut=l.Array,Ht=Math.max,$t=function(e,t,n){for(var r=yt(e),o=gt(t,r),i=gt(void 0===n?r:n,r),a=Ut(Ht(i-o,0)),u=0;o<i;o++,u++)zt(a,u,e[o]);return a.length=u,a},Vt=b("".replace),Wt=b("".split),Gt=b([].join),qt=String(Error("zxcasd").stack),Kt=/\n\s*at [^:]*:[^\n]*/,Yt=Kt.test(qt),Zt=/@[^\n]*\n/.test(qt)&&!/zxcasd/.test(qt),Xt=function(e,t){if("string"!=typeof e)return e;if(Yt)for(;t--;)e=Vt(e,Kt,"");else if(Zt)return Gt($t(Wt(e,"\n"),t),"\n");return e},Jt=function(e,t){M(t)&&"cause"in t&&Ze(e,"cause",t.cause)},Qt={},en=xe("iterator"),tn=Array.prototype,nn={};nn[xe("toStringTag")]="z";var rn="[object z]"===String(nn),on=xe("toStringTag"),an=l.Object,un="Arguments"==F(function(){return arguments}()),sn=rn?F:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=an(e),on))?n:un?F(t):"Object"==(r=F(t))&&w(t.callee)?"Arguments":r},ln=xe("iterator"),cn=function(e){if(null!=e)return ie(e,ln)||ie(e,"@@iterator")||Qt[sn(e)]},fn=l.TypeError,dn=function(e,t,n){var r,o;We(e);try{if(!(r=ie(e,"return"))){if("throw"===t)throw n;return n}r=S(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return We(r),n},pn=l.TypeError,hn=function(e,t){this.stopped=e,this.result=t},gn=hn.prototype,vn=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=He(t,c),g=function(e){return r&&dn(r,"normal",e),new hn(!0,e)},v=function(e){return f?(We(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=cn(e)))throw pn(ne(e)+" is not iterable");if(function(e){return void 0!==e&&(Qt.Array===e||tn[en]===e)}(o)){for(i=0,a=yt(e);a>i;i++)if((u=v(e[i]))&&$(gn,u))return u;return new hn(!1)}r=function(e,t){var n=arguments.length<2?cn(e):t;if(oe(n))return We(S(n,e));throw fn(ne(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=S(s,r)).done;){try{u=v(l.value)}catch(e){dn(r,"throw",e)}if("object"==typeof u&&u&&$(gn,u))return u}return new hn(!1)},yn=l.String,mn=function(e){if("Symbol"===sn(e))throw TypeError("Cannot convert a Symbol value to a string");return yn(e)},bn=function(e,t){return void 0===e?arguments.length<2?"":t:mn(e)},wn=!E((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",k(1,7)),7!==e.stack)})),En=xe("toStringTag"),xn=l.Error,Cn=[].push,Sn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=$(Dn,this);lt?n=lt(new xn(void 0),o?at(this):Dn):(n=o?this:Mt(Dn),Ze(n,En,"Error")),Ze(n,"message",bn(t,"")),wn&&Ze(n,"stack",Xt(n.stack,1)),Jt(n,r);var i=[];return vn(e,Cn,{that:i}),Ze(n,"errors",i),n};lt?lt(Sn,xn):function(e,t){for(var n=Bt(t),r=Ye.f,o=Pe.f,i=0;i<n.length;i++){var a=n[i];pe(e,a)||r(e,a,o(t,a))}}(Sn,xn);var Dn=Sn.prototype=Mt(xn.prototype,{constructor:k(1,Sn),message:k(1,""),name:k(1,"AggregateError")});Qe({global:!0},{AggregateError:Sn});var An=b(Function.toString);w(se.inspectSource)||(se.inspectSource=function(e){return An(e)});var _n,On,kn,Bn=se.inspectSource,Tn=l.WeakMap,Fn=w(Tn)&&/native code/.test(Bn(Tn)),Pn=l.TypeError,jn=l.WeakMap;if(Fn||se.state){var In=se.state||(se.state=new jn),Nn=b(In.get),Rn=b(In.has),Ln=b(In.set);_n=function(e,t){if(Rn(In,e))throw new Pn("Object already initialized");return t.facade=e,Ln(In,e,t),t},On=function(e){return Nn(In,e)||{}},kn=function(e){return Rn(In,e)}}else{var Mn=tt("state");wt[Mn]=!0,_n=function(e,t){if(pe(e,Mn))throw new Pn("Object already initialized");return t.facade=e,Ze(e,Mn,t),t},On=function(e){return pe(e,Mn)?e[Mn]:{}},kn=function(e){return pe(e,Mn)}}var zn,Un,Hn,$n={set:_n,get:On,has:kn,enforce:function(e){return kn(e)?On(e):_n(e,{})},getterFor:function(e){return function(t){var n;if(!M(t)||(n=On(t)).type!==e)throw Pn("Incompatible receiver, "+e+" required");return n}}},Vn=Function.prototype,Wn=x&&Object.getOwnPropertyDescriptor,Gn=pe(Vn,"name"),qn={EXISTS:Gn,PROPER:Gn&&"something"===function(){}.name,CONFIGURABLE:Gn&&(!x||x&&Wn(Vn,"name").configurable)},Kn=function(e,t,n,r){r&&r.enumerable?e[t]=n:Ze(e,t,n)},Yn=xe("iterator"),Zn=!1;[].keys&&("next"in(Hn=[].keys())?(Un=at(at(Hn)))!==Object.prototype&&(zn=Un):Zn=!0);var Xn=null==zn||E((function(){var e={};return zn[Yn].call(e)!==e}));zn=Xn?{}:Mt(zn),w(zn[Yn])||Kn(zn,Yn,(function(){return this}));var Jn={IteratorPrototype:zn,BUGGY_SAFARI_ITERATORS:Zn},Qn=rn?{}.toString:function(){return"[object "+sn(this)+"]"},er=Ye.f,tr=xe("toStringTag"),nr=function(e,t,n,r){if(e){var o=n?e:e.prototype;pe(o,tr)||er(o,tr,{configurable:!0,value:t}),r&&!rn&&Ze(o,"toString",Qn)}},rr=Jn.IteratorPrototype,or=function(){return this},ir=qn.PROPER,ar=Jn.BUGGY_SAFARI_ITERATORS,ur=xe("iterator"),sr=function(){return this},lr=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Mt(rr,{next:k(+!r,n)}),nr(e,o,!1,!0),Qt[o]=or}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!ar&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ur]||p["@@iterator"]||o&&p[o],g=!ar&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=at(v.call(new e)))!==Object.prototype&&u.next&&(nr(u,f,!0,!0),Qt[f]=sr),ir&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return S(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(ar||d||!(l in p))&&Kn(p,l,s[l]);else Qe({target:t,proto:!0,forced:ar||d},s);return a&&p[ur]!==g&&Kn(p,ur,g,{name:o}),Qt[t]=g,s},cr=$n.set,fr=$n.getterFor("Array Iterator");lr(Array,"Array",(function(e,t){cr(this,{type:"Array Iterator",target:L(e),index:0,kind:t})}),(function(){var e=fr(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"),Qt.Arguments=Qt.Array;var dr=b("".charAt),pr=b("".charCodeAt),hr=b("".slice),gr=function(e){return function(t,n){var r,o,i=mn(R(t)),a=dt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=pr(i,a))<55296||r>56319||a+1===u||(o=pr(i,a+1))<56320||o>57343?e?dr(i,a):r:e?hr(i,a,a+2):o-56320+(r-55296<<10)+65536}},vr={codeAt:gr(!1),charAt:gr(!0)}.charAt,yr=$n.set,mr=$n.getterFor("String Iterator");lr(String,"String",(function(e){yr(this,{type:"String Iterator",string:mn(e),index:0})}),(function(){var e,t=mr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=vr(n,r),t.index+=e.length,{value:e,done:!1})}));var br=z.AggregateError,wr=xe("toStringTag");for(var Er in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var xr=l[Er],Cr=xr&&xr.prototype;Cr&&sn(Cr)!==wr&&Ze(Cr,wr,Er),Qt[Er]=Qt.Array}var Sr,Dr,Ar=br,_r=function(e){return e&&e.Math==Math&&e},Or=_r("object"==typeof globalThis&&globalThis)||_r("object"==typeof window&&window)||_r("object"==typeof self&&self)||_r("object"==typeof r&&r)||function(){return this}()||Function("return this")(),kr=function(e){try{return!!e()}catch(e){return!0}},Br=!kr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Tr=Function.prototype.call,Fr=Tr.bind?Tr.bind(Tr):function(){return Tr.apply(Tr,arguments)},Pr={}.propertyIsEnumerable,jr=Object.getOwnPropertyDescriptor,Ir=jr&&!Pr.call({1:2},1)?function(e){var t=jr(this,e);return!!t&&t.enumerable}:Pr,Nr={f:Ir},Rr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Lr=Function.prototype,Mr=Lr.bind,zr=Lr.call,Ur=Mr&&Mr.bind(zr),Hr=Mr?function(e){return e&&Ur(zr,e)}:function(e){return e&&function(){return zr.apply(e,arguments)}},$r=Hr({}.toString),Vr=Hr("".slice),Wr=function(e){return Vr($r(e),8,-1)},Gr=Or.Object,qr=Hr("".split),Kr=kr((function(){return!Gr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Wr(e)?qr(e,""):Gr(e)}:Gr,Yr=Or.TypeError,Zr=function(e){if(null==e)throw Yr("Can't call method on "+e);return e},Xr=function(e){return Kr(Zr(e))},Jr=function(e){return"function"==typeof e},Qr=function(e){return"object"==typeof e?null!==e:Jr(e)},eo=function(e){return Jr(e)?e:void 0},to=function(e,t){return arguments.length<2?eo(Or[e]):Or[e]&&Or[e][t]},no=Hr({}.isPrototypeOf),ro=to("navigator","userAgent")||"",oo=Or.process,io=Or.Deno,ao=oo&&oo.versions||io&&io.version,uo=ao&&ao.v8;uo&&(Dr=(Sr=uo.split("."))[0]>0&&Sr[0]<4?1:+(Sr[0]+Sr[1])),!Dr&&ro&&(!(Sr=ro.match(/Edge\/(\d+)/))||Sr[1]>=74)&&(Sr=ro.match(/Chrome\/(\d+)/))&&(Dr=+Sr[1]);var so=Dr,lo=!!Object.getOwnPropertySymbols&&!kr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&so&&so<41})),co=lo&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fo=Or.Object,po=co?function(e){return"symbol"==typeof e}:function(e){var t=to("Symbol");return Jr(t)&&no(t.prototype,fo(e))},ho=Or.String,go=function(e){try{return ho(e)}catch(e){return"Object"}},vo=Or.TypeError,yo=function(e){if(Jr(e))return e;throw vo(go(e)+" is not a function")},mo=function(e,t){var n=e[t];return null==n?void 0:yo(n)},bo=Or.TypeError,wo=Object.defineProperty,Eo=function(e,t){try{wo(Or,e,{value:t,configurable:!0,writable:!0})}catch(i){Or[e]=t}return t},xo=Or["__core-js_shared__"]||Eo("__core-js_shared__",{}),Co=i((function(e){(e.exports=function(e,t){return xo[e]||(xo[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),So=Or.Object,Do=function(e){return So(Zr(e))},Ao=Hr({}.hasOwnProperty),_o=Object.hasOwn||function(e,t){return Ao(Do(e),t)},Oo=0,ko=Math.random(),Bo=Hr(1..toString),To=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Bo(++Oo+ko,36)},Fo=Co("wks"),Po=Or.Symbol,jo=Po&&Po.for,Io=co?Po:Po&&Po.withoutSetter||To,No=function(e){if(!_o(Fo,e)||!lo&&"string"!=typeof Fo[e]){var t="Symbol."+e;lo&&_o(Po,e)?Fo[e]=Po[e]:Fo[e]=co&&jo?jo(t):Io(t)}return Fo[e]},Ro=Or.TypeError,Lo=No("toPrimitive"),Mo=function(e,t){if(!Qr(e)||po(e))return e;var n,r=mo(e,Lo);if(r){if(void 0===t&&(t="default"),n=Fr(r,e,t),!Qr(n)||po(n))return n;throw Ro("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Jr(n=e.toString)&&!Qr(r=Fr(n,e)))return r;if(Jr(n=e.valueOf)&&!Qr(r=Fr(n,e)))return r;if("string"!==t&&Jr(n=e.toString)&&!Qr(r=Fr(n,e)))return r;throw bo("Can't convert object to primitive value")}(e,t)},zo=function(e){var t=Mo(e,"string");return po(t)?t:t+""},Uo=Or.document,Ho=Qr(Uo)&&Qr(Uo.createElement),$o=function(e){return Ho?Uo.createElement(e):{}},Vo=!Br&&!kr((function(){return 7!=Object.defineProperty($o("div"),"a",{get:function(){return 7}}).a})),Wo=Object.getOwnPropertyDescriptor,Go=Br?Wo:function(e,t){if(e=Xr(e),t=zo(t),Vo)try{return Wo(e,t)}catch(e){}if(_o(e,t))return Rr(!Fr(Nr.f,e,t),e[t])},qo={f:Go},Ko=Or.String,Yo=Or.TypeError,Zo=function(e){if(Qr(e))return e;throw Yo(Ko(e)+" is not an object")},Xo=Or.TypeError,Jo=Object.defineProperty,Qo=Br?Jo:function(e,t,n){if(Zo(e),t=zo(t),Zo(n),Vo)try{return Jo(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Xo("Accessors not supported");return"value"in n&&(e[t]=n.value),e},ei={f:Qo},ti=Br?function(e,t,n){return ei.f(e,t,Rr(1,n))}:function(e,t,n){return e[t]=n,e},ni=Hr(Function.toString);Jr(xo.inspectSource)||(xo.inspectSource=function(e){return ni(e)});var ri,oi,ii,ai=xo.inspectSource,ui=Or.WeakMap,si=Jr(ui)&&/native code/.test(ai(ui)),li=Co("keys"),ci=function(e){return li[e]||(li[e]=To(e))},fi={},di=Or.TypeError,pi=Or.WeakMap;if(si||xo.state){var hi=xo.state||(xo.state=new pi),gi=Hr(hi.get),vi=Hr(hi.has),yi=Hr(hi.set);ri=function(e,t){if(vi(hi,e))throw new di("Object already initialized");return t.facade=e,yi(hi,e,t),t},oi=function(e){return gi(hi,e)||{}},ii=function(e){return vi(hi,e)}}else{var mi=ci("state");fi[mi]=!0,ri=function(e,t){if(_o(e,mi))throw new di("Object already initialized");return t.facade=e,ti(e,mi,t),t},oi=function(e){return _o(e,mi)?e[mi]:{}},ii=function(e){return _o(e,mi)}}var bi={set:ri,get:oi,has:ii,enforce:function(e){return ii(e)?oi(e):ri(e,{})},getterFor:function(e){return function(t){var n;if(!Qr(t)||(n=oi(t)).type!==e)throw di("Incompatible receiver, "+e+" required");return n}}},wi=Function.prototype,Ei=Br&&Object.getOwnPropertyDescriptor,xi=_o(wi,"name"),Ci={EXISTS:xi,PROPER:xi&&"something"===function(){}.name,CONFIGURABLE:xi&&(!Br||Br&&Ei(wi,"name").configurable)},Si=i((function(e){var t=Ci.CONFIGURABLE,n=bi.get,r=bi.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Jr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!_o(i,"name")||t&&i.name!==f)&&ti(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Or?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:ti(e,n,i)):l?e[n]=i:Eo(n,i)})(Function.prototype,"toString",(function(){return Jr(this)&&n(this).source||ai(this)}))})),Di=Math.ceil,Ai=Math.floor,_i=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ai:Di)(t)},Oi=Math.max,ki=Math.min,Bi=function(e,t){var n=_i(e);return n<0?Oi(n+t,0):ki(n,t)},Ti=Math.min,Fi=function(e){return e>0?Ti(_i(e),9007199254740991):0},Pi=function(e){return Fi(e.length)},ji=function(e){return function(t,n,r){var o,i=Xr(t),a=Pi(i),u=Bi(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Ii={includes:ji(!0),indexOf:ji(!1)}.indexOf,Ni=Hr([].push),Ri=function(e,t){var n,r=Xr(e),o=0,i=[];for(n in r)!_o(fi,n)&&_o(r,n)&&Ni(i,n);for(;t.length>o;)_o(r,n=t[o++])&&(~Ii(i,n)||Ni(i,n));return i},Li=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mi=Li.concat("length","prototype"),zi=Object.getOwnPropertyNames||function(e){return Ri(e,Mi)},Ui={f:zi},Hi={f:Object.getOwnPropertySymbols},$i=Hr([].concat),Vi=to("Reflect","ownKeys")||function(e){var t=Ui.f(Zo(e)),n=Hi.f;return n?$i(t,n(e)):t},Wi=function(e,t){for(var n=Vi(t),r=ei.f,o=qo.f,i=0;i<n.length;i++){var a=n[i];_o(e,a)||r(e,a,o(t,a))}},Gi=/#|\.prototype\./,qi=function(e,t){var n=Yi[Ki(e)];return n==Xi||n!=Zi&&(Jr(t)?kr(t):!!t)},Ki=qi.normalize=function(e){return String(e).replace(Gi,".").toLowerCase()},Yi=qi.data={},Zi=qi.NATIVE="N",Xi=qi.POLYFILL="P",Ji=qi,Qi=qo.f,ea=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Or:l?Or[u]||Eo(u,{}):(Or[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Qi(n,r))&&a.value:n[r],!Ji(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Wi(i,o)}(e.sham||o&&o.sham)&&ti(i,"sham",!0),Si(n,r,i,e)}},ta={};ta[No("toStringTag")]="z";var na,ra="[object z]"===String(ta),oa=No("toStringTag"),ia=Or.Object,aa="Arguments"==Wr(function(){return arguments}()),ua=ra?Wr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ia(e),oa))?n:aa?Wr(t):"Object"==(r=Wr(t))&&Jr(t.callee)?"Arguments":r},sa=Or.String,la=function(e){if("Symbol"===ua(e))throw TypeError("Cannot convert a Symbol value to a string");return sa(e)},ca=function(){var e=Zo(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},fa=Or.RegExp,da=kr((function(){var e=fa("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),pa=da||kr((function(){return!fa("a","y").sticky})),ha=da||kr((function(){var e=fa("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),ga={BROKEN_CARET:ha,MISSED_STICKY:pa,UNSUPPORTED_Y:da},va=Object.keys||function(e){return Ri(e,Li)},ya=Br?Object.defineProperties:function(e,t){Zo(e);for(var n,r=Xr(t),o=va(t),i=o.length,a=0;i>a;)ei.f(e,n=o[a++],r[n]);return e},ma=to("document","documentElement"),ba=ci("IE_PROTO"),wa=function(){},Ea=function(e){return"<script>"+e+"<\/script>"},xa=function(e){e.write(Ea("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ca=function(){try{na=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ca="undefined"!=typeof document?document.domain&&na?xa(na):((t=$o("iframe")).style.display="none",ma.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ea("document.F=Object")),e.close(),e.F):xa(na);for(var n=Li.length;n--;)delete Ca.prototype[Li[n]];return Ca()};fi[ba]=!0;var Sa,Da,Aa=Object.create||function(e,t){var n;return null!==e?(wa.prototype=Zo(e),n=new wa,wa.prototype=null,n[ba]=e):n=Ca(),void 0===t?n:ya(n,t)},_a=Or.RegExp,Oa=kr((function(){var e=_a(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ka=Or.RegExp,Ba=kr((function(){var e=ka("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ta=bi.get,Fa=Co("native-string-replace",String.prototype.replace),Pa=RegExp.prototype.exec,ja=Pa,Ia=Hr("".charAt),Na=Hr("".indexOf),Ra=Hr("".replace),La=Hr("".slice),Ma=(Da=/b*/g,Fr(Pa,Sa=/a/,"a"),Fr(Pa,Da,"a"),0!==Sa.lastIndex||0!==Da.lastIndex),za=ga.BROKEN_CARET,Ua=void 0!==/()??/.exec("")[1];(Ma||Ua||za||Oa||Ba)&&(ja=function(e){var t,n,r,o,i,a,u,s=this,l=Ta(s),c=la(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Fr(ja,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=za&&s.sticky,h=Fr(ca,s),g=s.source,v=0,y=c;if(p&&(h=Ra(h,"y",""),-1===Na(h,"g")&&(h+="g"),y=La(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Ia(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Ua&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Ma&&(r=s.lastIndex),o=Fr(Pa,p?n:s,y),p?o?(o.input=La(o.input,v),o[0]=La(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ma&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Ua&&o&&o.length>1&&Fr(Fa,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=Aa(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ha=ja;ea({target:"RegExp",proto:!0,forced:/./.exec!==Ha},{exec:Ha});var $a=No("species"),Va=RegExp.prototype,Wa=Hr("".charAt),Ga=Hr("".charCodeAt),qa=Hr("".slice),Ka=function(e){return function(t,n){var r,o,i=la(Zr(t)),a=_i(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Ga(i,a))<55296||r>56319||a+1===u||(o=Ga(i,a+1))<56320||o>57343?e?Wa(i,a):r:e?qa(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ya={codeAt:Ka(!1),charAt:Ka(!0)},Za=Ya.charAt,Xa=function(e,t,n){return t+(n?Za(e,t).length:1)},Ja=Or.TypeError,Qa=function(e,t){var n=e.exec;if(Jr(n)){var r=Fr(n,e,t);return null!==r&&Zo(r),r}if("RegExp"===Wr(e))return Fr(Ha,e,t);throw Ja("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=No(e),i=!kr((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!kr((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[$a]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Hr(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Hr(e),s=t.exec;return s===Ha||s===Va.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Si(String.prototype,e,s[0]),Si(Va,o,s[1])}r&&ti(Va[o],"sham",!0)}("match",(function(e,t,n){return[function(t){var n=Zr(this),r=null==t?void 0:mo(t,e);return r?Fr(r,t,n):new RegExp(t)[e](la(n))},function(e){var r=Zo(this),o=la(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Qa(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=Qa(r,o));){var c=la(u[0]);s[l]=c,""===c&&(r.lastIndex=Xa(o,Fi(r.lastIndex),a)),l++}return 0===l?null:s}]})),ea({global:!0},{globalThis:Or});var eu=!kr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),tu=ci("IE_PROTO"),nu=Or.Object,ru=nu.prototype,ou=eu?nu.getPrototypeOf:function(e){var t=Do(e);if(_o(t,tu))return t[tu];var n=t.constructor;return Jr(n)&&t instanceof n?n.prototype:t instanceof nu?ru:null},iu=Or.String,au=Or.TypeError,uu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Hr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Zo(n),function(e){if("object"==typeof e||Jr(e))return e;throw au("Can't set "+iu(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),su=Or.Array,lu=Math.max,cu=Hr("".replace),fu=Hr("".split),du=Hr([].join),pu=String(Error("zxcasd").stack),hu=/\n\s*at [^:]*:[^\n]*/,gu=hu.test(pu),vu=/@[^\n]*\n/.test(pu)&&!/zxcasd/.test(pu),yu=function(e,t){if("string"!=typeof e)return e;if(gu)for(;t--;)e=cu(e,hu,"");else if(vu)return du(function(e,t,n){for(var r,o,i,a,u=Pi(e),s=Bi(t,u),l=Bi(void 0===n?u:n,u),c=su(lu(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],a=void 0,(a=zo(o))in r?ei.f(r,a,Rr(0,i)):r[a]=i;return c.length=f,c}(fu(e,"\n"),t),"\n");return e},mu=function(e,t){Qr(t)&&"cause"in t&&ti(e,"cause",t.cause)},bu=Hr(Hr.bind),wu=function(e,t){return yo(e),void 0===t?e:bu?bu(e,t):function(){return e.apply(t,arguments)}},Eu={},xu=No("iterator"),Cu=Array.prototype,Su=No("iterator"),Du=function(e){if(null!=e)return mo(e,Su)||mo(e,"@@iterator")||Eu[ua(e)]},Au=Or.TypeError,_u=function(e,t,n){var r,o;Zo(e);try{if(!(r=mo(e,"return"))){if("throw"===t)throw n;return n}r=Fr(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Zo(r),n},Ou=Or.TypeError,ku=function(e,t){this.stopped=e,this.result=t},Bu=ku.prototype,Tu=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=wu(t,c),g=function(e){return r&&_u(r,"normal",e),new ku(!0,e)},v=function(e){return f?(Zo(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=Du(e)))throw Ou(go(e)+" is not iterable");if(function(e){return void 0!==e&&(Eu.Array===e||Cu[xu]===e)}(o)){for(i=0,a=Pi(e);a>i;i++)if((u=v(e[i]))&&no(Bu,u))return u;return new ku(!1)}r=function(e,t){var n=arguments.length<2?Du(e):t;if(yo(n))return Zo(Fr(n,e));throw Au(go(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Fr(s,r)).done;){try{u=v(l.value)}catch(e){_u(r,"throw",e)}if("object"==typeof u&&u&&no(Bu,u))return u}return new ku(!1)},Fu=function(e,t){return void 0===e?arguments.length<2?"":t:la(e)},Pu=!kr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Rr(1,7)),7!==e.stack)})),ju=No("toStringTag"),Iu=Or.Error,Nu=[].push,Ru=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=no(Lu,this);uu?n=uu(new Iu(void 0),o?ou(this):Lu):(n=o?this:Aa(Lu),ti(n,ju,"Error")),ti(n,"message",Fu(t,"")),Pu&&ti(n,"stack",yu(n.stack,1)),mu(n,r);var i=[];return Tu(e,Nu,{that:i}),ti(n,"errors",i),n};uu?uu(Ru,Iu):Wi(Ru,Iu);var Lu=Ru.prototype=Aa(Iu.prototype,{constructor:Rr(1,Ru),message:Rr(1,""),name:Rr(1,"AggregateError")});ea({global:!0},{AggregateError:Ru});var Mu=No("unscopables"),zu=Array.prototype;null==zu[Mu]&&ei.f(zu,Mu,{configurable:!0,value:Aa(null)});var Uu,Hu,$u,Vu=function(e){zu[Mu][e]=!0},Wu=No("iterator"),Gu=!1;[].keys&&("next"in($u=[].keys())?(Hu=ou(ou($u)))!==Object.prototype&&(Uu=Hu):Gu=!0);var qu=null==Uu||kr((function(){var e={};return Uu[Wu].call(e)!==e}));qu&&(Uu={}),Jr(Uu[Wu])||Si(Uu,Wu,(function(){return this}));var Ku={IteratorPrototype:Uu,BUGGY_SAFARI_ITERATORS:Gu},Yu=ei.f,Zu=No("toStringTag"),Xu=function(e,t,n){e&&!_o(e=n?e:e.prototype,Zu)&&Yu(e,Zu,{configurable:!0,value:t})},Ju=Ku.IteratorPrototype,Qu=function(){return this},es=Ci.PROPER,ts=Ci.CONFIGURABLE,ns=Ku.IteratorPrototype,rs=Ku.BUGGY_SAFARI_ITERATORS,os=No("iterator"),is=function(){return this},as=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Aa(Ju,{next:Rr(+!r,n)}),Xu(e,o,!1),Eu[o]=Qu}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!rs&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[os]||p["@@iterator"]||o&&p[o],g=!rs&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=ou(v.call(new e)))!==Object.prototype&&u.next&&(ou(u)!==ns&&(uu?uu(u,ns):Jr(u[os])||Si(u,os,is)),Xu(u,f,!0)),es&&"values"==o&&h&&"values"!==h.name&&(ts?ti(p,"name","values"):(d=!0,g=function(){return Fr(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(rs||d||!(l in p))&&Si(p,l,s[l]);else ea({target:t,proto:!0,forced:rs||d},s);return p[os]!==g&&Si(p,os,g,{name:o}),Eu[t]=g,s},us=bi.set,ss=bi.getterFor("Array Iterator"),ls=as(Array,"Array",(function(e,t){us(this,{type:"Array Iterator",target:Xr(e),index:0,kind:t})}),(function(){var e=ss(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");Eu.Arguments=Eu.Array,Vu("keys"),Vu("values"),Vu("entries");var cs=Ya.charAt,fs=bi.set,ds=bi.getterFor("String Iterator");as(String,"String",(function(e){fs(this,{type:"String Iterator",string:la(e),index:0})}),(function(){var e,t=ds(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=cs(n,r),t.index+=e.length,{value:e,done:!1})}));var ps,hs={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},gs=$o("span").classList,vs=gs&&gs.constructor&&gs.constructor.prototype,ys=vs===Object.prototype?void 0:vs,ms=No("iterator"),bs=No("toStringTag"),ws=ls.values,Es=function(e,t){if(e){if(e[ms]!==ws)try{ti(e,ms,ws)}catch(t){e[ms]=ws}if(e[bs]||ti(e,bs,t),hs[t])for(var n in ls)if(e[n]!==ls[n])try{ti(e,n,ls[n])}catch(t){e[n]=ls[n]}}};for(var xs in hs)Es(Or[xs]&&Or[xs].prototype,xs);function Cs(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Ss(){void 0===Ar&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}Es(ys,"DOMTokenList"),"undefined"==typeof e?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),Cs(),Ss()):e&&(null===(ps=e.navigator)||void 0===ps?void 0:ps.userAgent.match("QQBrowser"))&&(Cs(),Ss());var Ds,As=Array.isArray||function(e){return"Array"==F(e)},_s=function(){},Os=[],ks=H("Reflect","construct"),Bs=/^\s*(?:class|function)\b/,Ts=b(Bs.exec),Fs=!Bs.exec(_s),Ps=function(e){if(!w(e))return!1;try{return ks(_s,Os,e),!0}catch(e){return!1}},js=!ks||E((function(){var e;return Ps(Ps.call)||!Ps(Object)||!Ps((function(){e=!0}))||e}))?function(e){if(!w(e))return!1;switch(sn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fs||!!Ts(Bs,Bn(e))}:Ps,Is=xe("species"),Ns=l.Array,Rs=function(e,t){return new(function(e){var t;return As(e)&&(t=e.constructor,(js(t)&&(t===Ns||As(t.prototype))||M(t)&&null===(t=t[Is]))&&(t=void 0)),void 0===t?Ns:t}(e))(0===t?0:t)},Ls=xe("species"),Ms=xe("isConcatSpreadable"),zs=l.TypeError,Us=Z>=51||!E((function(){var e=[];return e[Ms]=!1,e.concat()[0]!==e})),Hs=(Ds="concat",Z>=51||!E((function(){var e=[];return(e.constructor={})[Ls]=function(){return{foo:1}},1!==e[Ds](Boolean).foo}))),$s=function(e){if(!M(e))return!1;var t=e[Ms];return void 0!==t?!!t:As(e)};Qe({target:"Array",proto:!0,forced:!Us||!Hs},{concat:function(e){var t,n,r,o,i,a=fe(this),u=Rs(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if($s(i=-1===t?a:arguments[t])){if(s+(o=yt(i))>9007199254740991)throw zs("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&zt(u,s,i[n])}else{if(s>=9007199254740991)throw zs("Maximum allowed index exceeded");zt(u,s++,i)}return u.length=s,u}});var Vs=_t.f,Ws="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Gs={f:function(e){return Ws&&"Window"==F(e)?function(e){try{return Vs(e)}catch(e){return $t(Ws)}}(e):Vs(L(e))}},qs=b([].slice),Ks={f:xe},Ys=Ye.f,Zs=function(e){var t=z.Symbol||(z.Symbol={});pe(t,e)||Ys(t,e,{value:Ks.f(e)})},Xs=b([].push),Js=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=fe(s),g=I(h),v=He(l,c),y=yt(g),m=0,b=f||Rs,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Xs(w,d)}else switch(e){case 4:return!1;case 7:Xs(w,d)}return i?-1:r||o?o:w}},Qs={forEach:Js(0),map:Js(1),filter:Js(2),some:Js(3),every:Js(4),find:Js(5),findIndex:Js(6),filterReject:Js(7)}.forEach,el=tt("hidden"),tl=xe("toPrimitive"),nl=$n.set,rl=$n.getterFor("Symbol"),ol=Object.prototype,il=l.Symbol,al=il&&il.prototype,ul=l.TypeError,sl=l.QObject,ll=H("JSON","stringify"),cl=Pe.f,fl=Ye.f,dl=Gs.f,pl=O.f,hl=b([].push),gl=le("symbols"),vl=le("op-symbols"),yl=le("string-to-symbol-registry"),ml=le("symbol-to-string-registry"),bl=le("wks"),wl=!sl||!sl.prototype||!sl.prototype.findChild,El=x&&E((function(){return 7!=Mt(fl({},"a",{get:function(){return fl(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=cl(ol,t);r&&delete ol[t],fl(e,t,n),r&&e!==ol&&fl(ol,t,r)}:fl,xl=function(e,t){var n=gl[e]=Mt(al);return nl(n,{type:"Symbol",tag:e,description:t}),x||(n.description=t),n},Cl=function(e,t,n){e===ol&&Cl(vl,t,n),We(e);var r=Ae(t);return We(n),pe(gl,r)?(n.enumerable?(pe(e,el)&&e[el][r]&&(e[el][r]=!1),n=Mt(n,{enumerable:k(0,!1)})):(pe(e,el)||fl(e,el,k(1,{})),e[el][r]=!0),El(e,r,n)):fl(e,r,n)},Sl=function(e,t){We(e);var n=L(t),r=Tt(n).concat(Ol(n));return Qs(r,(function(t){x&&!S(Dl,n,t)||Cl(e,t,n[t])})),e},Dl=function(e){var t=Ae(e),n=S(pl,this,t);return!(this===ol&&pe(gl,t)&&!pe(vl,t))&&(!(n||!pe(this,t)||!pe(gl,t)||pe(this,el)&&this[el][t])||n)},Al=function(e,t){var n=L(e),r=Ae(t);if(n!==ol||!pe(gl,r)||pe(vl,r)){var o=cl(n,r);return!o||!pe(gl,r)||pe(n,el)&&n[el][r]||(o.enumerable=!0),o}},_l=function(e){var t=dl(L(e)),n=[];return Qs(t,(function(e){pe(gl,e)||pe(wt,e)||hl(n,e)})),n},Ol=function(e){var t=e===ol,n=dl(t?vl:L(e)),r=[];return Qs(n,(function(e){!pe(gl,e)||t&&!pe(ol,e)||hl(r,gl[e])})),r};if(X||(al=(il=function(){if($(al,this))throw ul("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?mn(arguments[0]):void 0,t=ye(e),n=function(e){this===ol&&S(n,vl,e),pe(this,el)&&pe(this[el],t)&&(this[el][t]=!1),El(this,t,k(1,e))};return x&&wl&&El(ol,t,{configurable:!0,set:n}),xl(t,e)}).prototype,Kn(al,"toString",(function(){return rl(this).tag})),Kn(il,"withoutSetter",(function(e){return xl(ye(e),e)})),O.f=Dl,Ye.f=Cl,Pe.f=Al,_t.f=Gs.f=_l,Ot.f=Ol,Ks.f=function(e){return xl(xe(e),e)},x&&fl(al,"description",{configurable:!0,get:function(){return rl(this).description}})),Qe({global:!0,wrap:!0,forced:!X,sham:!X},{Symbol:il}),Qs(Tt(bl),(function(e){Zs(e)})),Qe({target:"Symbol",stat:!0,forced:!X},{for:function(e){var t=mn(e);if(pe(yl,t))return yl[t];var n=il(t);return yl[t]=n,ml[n]=t,n},keyFor:function(e){if(!ee(e))throw ul(e+" is not a symbol");if(pe(ml,e))return ml[e]},useSetter:function(){wl=!0},useSimple:function(){wl=!1}}),Qe({target:"Object",stat:!0,forced:!X,sham:!x},{create:function(e,t){return void 0===t?Mt(e):Sl(Mt(e),t)},defineProperty:Cl,defineProperties:Sl,getOwnPropertyDescriptor:Al}),Qe({target:"Object",stat:!0,forced:!X},{getOwnPropertyNames:_l,getOwnPropertySymbols:Ol}),Qe({target:"Object",stat:!0,forced:E((function(){Ot.f(1)}))},{getOwnPropertySymbols:function(e){return Ot.f(fe(e))}}),ll){var kl=!X||E((function(){var e=il();return"[null]"!=ll([e])||"{}"!=ll({a:e})||"{}"!=ll(Object(e))}));Qe({target:"JSON",stat:!0,forced:kl},{stringify:function(e,t,n){var r=qs(arguments),o=t;if((M(t)||void 0!==e)&&!ee(e))return As(t)||(t=function(e,t){if(w(o)&&(t=S(o,this,e,t)),!ee(t))return t}),r[1]=t,h(ll,null,r)}})}if(!al[tl]){var Bl=al.valueOf;Kn(al,tl,(function(e){return S(Bl,this)}))}nr(il,"Symbol"),wt[el]=!0,Zs("asyncIterator"),Zs("hasInstance"),Zs("isConcatSpreadable"),Zs("iterator"),Zs("match"),Zs("matchAll"),Zs("replace"),Zs("search"),Zs("species"),Zs("split"),Zs("toPrimitive"),Zs("toStringTag"),Zs("unscopables"),nr(l.JSON,"JSON",!0);var Tl=z.Symbol;Zs("asyncDispose"),Zs("dispose"),Zs("matcher"),Zs("metadata"),Zs("observable"),Zs("patternMatch"),Zs("replaceAll");var Fl=Tl,Pl=Ks.f("iterator"),jl=i((function(e){function t(n){return"function"==typeof Fl&&"symbol"==typeof Pl?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Fl&&e.constructor===Fl&&e!==Fl.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Il=o(jl),Nl=qo.f,Rl=kr((function(){Nl(1)}));if(ea({target:"Object",stat:!0,forced:!Br||Rl,sham:!Br},{getOwnPropertyDescriptor:function(e,t){return Nl(Xr(e),t)}}),"object"===("undefined"==typeof e?"undefined":Il(e))){var Ll=Object.getOwnPropertyDescriptor(e,"window");e.window&&!Ll.set||(e.window=e,e.requestAnimationFrame=function(){},e.navigator={userAgent:""},e.location={hostname:"0.0.0.0",port:0,protocol:"http:"},e.btoa=function(){},e.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=e.document&&null==e.document.getElementsByTagName&&(e.document.getElementsByTagName=function(){return[]})}
/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function 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 Ul(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[_c]}function $l(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)===Oc}(e)||Array.isArray(e)||!!e[Ac]||!!e.constructor[Ac]||Kl(e)||Yl(e))}function Vl(e,t,n){void 0===n&&(n=!1),0===Wl(e)?(n?Object.keys:kc)(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[_c];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 xc&&e instanceof Map}function Yl(e){return Cc&&e instanceof Set}function Zl(e){return e.o||e.t}function Xl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Bc(e);delete t[_c];for(var n=kc(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 Jl(e,t){return void 0===t&&(t=!1),ec(e)||Hl(e)||!$l(e)||(Wl(e)>1&&(e.set=e.add=e.clear=e.delete=Ql),Object.freeze(e),t&&Vl(e,(function(e,t){return Jl(t,!0)}),!0)),e}function Ql(){Ul(2)}function ec(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function tc(e){var t=Tc[e];return t||Ul(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[_c];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[_c].P&&(oc(t),Ul(4)),$l(e)&&(e=lc(t,e),t.l||fc(t,e)),t.u&&tc("Patches").M(n[_c],e,t.u,t.s)):e=lc(t,n,[]),oc(t),t.u&&t.v(t.u,t.s),e!==Dc?e:void 0}function lc(e,t,n){if(ec(t))return t;var r=t[_c];if(!r)return Vl(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=Xl(r.k):r.o;Vl(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($l(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&&Jl(t,n)}function dc(e,t){var n=e[_c];return(n?Zl(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 gc(e){e.o||(e.o=Xl(e.t))}function vc(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=Fc;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)||Ul(22,e),function e(t){if(!$l(t))return t;var n,r=t[_c],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 Vl(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){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Xl(e)}var bc,wc,Ec="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),xc="undefined"!=typeof Map,Cc="undefined"!=typeof Set,Sc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Dc=Ec?Symbol.for("immer-nothing"):((bc={})["immer-nothing"]=!0,bc),Ac=Ec?Symbol.for("immer-draftable"):"__$immer_draftable",_c=Ec?Symbol.for("immer-state"):"__$immer_state",Oc=""+Object.prototype.constructor,kc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Bc=Object.getOwnPropertyDescriptors||function(e){var t={};return kc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Tc={},Fc={get:function(e,t){if(t===_c)return e;var n=Zl(e);if(!Gl(n,t))return function(e,t,n){var r,o=pc(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!$l(r)?r:r===dc(e.t,t)?(gc(e),e.o[t]=vc(e.A.h,r,e)):r},has:function(e,t){return t in Zl(e)},ownKeys:function(e){return Reflect.ownKeys(Zl(e))},set:function(e,t,n){var r=pc(Zl(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=dc(Zl(e),t),i=null==o?void 0:o[_c];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||Gl(e.t,t)))return!0;gc(e),hc(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==dc(e.t,t)||t in e.t?(e.D[t]=!1,gc(e),hc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Zl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Ul(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ul(12)}},Pc={};Vl(Fc,(function(e,t){Pc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Pc.deleteProperty=function(e,t){return Fc.deleteProperty.call(this,e[0],t)},Pc.set=function(e,t,n){return Fc.set.call(this,e[0],t,n,e[0])};var jc=function(){function e(e){var t=this;this.g=Sc,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&Ul(6),void 0!==r&&"function"!=typeof r&&Ul(7),$l(e)){var u=ac(t),s=vc(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?oc(u):ic(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return rc(u,r),sc(e,u)}),(function(e){throw oc(u),e})):(rc(u,r),sc(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===Dc)return;return void 0===a&&(a=e),t.F&&Jl(a,!0),a}Ul(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){$l(e)||Ul(8),Hl(e)&&(e=yc(e));var t=ac(this),n=vc(this,e,void 0);return n[_c].C=!0,ic(t),n},t.finishDraft=function(e,t){var n=(e&&e[_c]).A;return rc(n,t),sc(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!Sc&&Ul(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=tc("Patches").$;return Hl(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Ic=new jc,Nc=Ic.produce;Ic.produceWithPatches.bind(Ic),Ic.setAutoFreeze.bind(Ic),Ic.setUseProxies.bind(Ic),Ic.applyPatches.bind(Ic);var Rc=Ic.createDraft.bind(Ic),Lc=Ic.finishDraft.bind(Ic);function Mc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zc=new WeakMap,Uc=new WeakMap,Hc=new WeakMap,$c=new WeakMap,Vc=new WeakMap,Wc=new WeakMap;function Gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gc(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kc=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Ff.pathRefs(e))Hf.transform(n,t);for(var r of Ff.pointRefs(e))Gf.transform(r,t);for(var o of Ff.rangeRefs(e))Zf.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=zc.get(e)||[],l=Yc(t);for(var c of s)u(Uf.transform(c,t));for(var f of l)u(f);zc.set(e,a),wd.transform(e,t),e.operations.push(t),Ff.normalize(e),"set_selection"===t.type&&(e.marks=null),Uc.get(e)||(Uc.set(e,!0),Promise.resolve().then(()=>{Uc.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Yf.isExpanded(r))wd.setNodes(e,{[t]:n},{match:nd.isText,split:!0});else{var o=qc(qc({},Ff.marks(e)||{}),{},{[t]:n});e.marks=o,Uc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Yf.isCollapsed(n)&&wd.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Yf.isCollapsed(n)&&wd.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Yf.isExpanded(n)&&wd.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Rf.fragment(e,t):[]},insertBreak:()=>{wd.splitNodes(e,{always:!0})},insertFragment:t=>{wd.insertFragment(e,t)},insertNode:t=>{wd.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=qc({text:t},r);wd.insertNodes(e,o)}else wd.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!nd.isText(n))if(Af.isElement(n)&&0===n.children.length)wd.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Ff.isEditor(n)&&Af.isElement(n)&&(e.isInline(n)||0===n.children.length||nd.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Rf.get(e,r);if(!nd.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(nd.isText(s)||Af.isElement(s)&&e.isInline(s))!==o?(wd.removeNodes(e,{at:r.concat(i),voids:!0}),i--):Af.isElement(s)?e.isInline(s)&&(null!=l&&nd.isText(l)?c&&(wd.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(wd.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&nd.isText(l)&&(nd.equals(s,l,{loose:!0})?(wd.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(wd.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(wd.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Yf.isExpanded(n))wd.unsetNodes(e,t,{match:nd.isText,split:!0});else{var r=qc({},Ff.marks(e)||{});delete r[t],e.marks=r,Uc.get(e)||e.onChange()}}};return e},Yc=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Uf.levels(t);case"insert_node":var{node:n,path:r}=e,o=Uf.levels(r),i=nd.isText(n)?[]:Array.from(Rf.nodes(n),e=>{var[,t]=e;return r.concat(t)});return[...o,...i];case"merge_node":var{path:a}=e;return[...Uf.ancestors(a),Uf.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(Uf.equals(u,s))return[];var l=[],c=[];for(var f of Uf.ancestors(u)){var d=Uf.transform(f,e);l.push(d)}for(var p of Uf.ancestors(s)){var h=Uf.transform(p,e);c.push(h)}var g=c[c.length-1],v=s[s.length-1],y=g.concat(v);return[...l,...c,y];case"remove_node":var{path:m}=e;return[...Uf.ancestors(m)];case"split_node":var{path:b}=e;return[...Uf.levels(b),Uf.next(b)];default:return[]}};function Zc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Xc,Jc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?of(e):e,o=Xc.None,i=Xc.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=yf(s,l);if([o,i]=n?[i,c]:[c,o],mf(o,Xc.ZWJ)&&mf(i,Xc.ExtPict)&&!xf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(mf(o,Xc.RI)&&mf(i,Xc.RI)&&!(u=null!==u?!u:!!n||Sf(e.substring(0,e.length-a))))break;if(o!==Xc.None&&i!==Xc.None&&wf(o,i))break;a+=s.length}return a||1},Qc=/\s/,ef=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,tf=/['\u2018\u2019]/,nf=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},rf=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Qc.test(t))return!1;if(tf.test(t)){var o=Jc(n,r),[i,a]=nf(n,o,r);if(e(i,a,r))return!0}return!ef.test(t)},of=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(uf(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(af(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},af=e=>e>=55296&&e<=56319,uf=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Xc||(Xc={}));var sf=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,lf=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,cf=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,ff=/^[\u1100-\u115F\uA960-\uA97C]$/,df=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,pf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,hf=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,gf=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,vf=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,yf=(e,t)=>{var n=Xc.Any;return-1!==e.search(sf)&&(n|=Xc.Extend),8205===t&&(n|=Xc.ZWJ),t>=127462&&t<=127487&&(n|=Xc.RI),-1!==e.search(lf)&&(n|=Xc.Prepend),-1!==e.search(cf)&&(n|=Xc.SpacingMark),-1!==e.search(ff)&&(n|=Xc.L),-1!==e.search(df)&&(n|=Xc.V),-1!==e.search(pf)&&(n|=Xc.T),-1!==e.search(hf)&&(n|=Xc.LV),-1!==e.search(gf)&&(n|=Xc.LVT),-1!==e.search(vf)&&(n|=Xc.ExtPict),n};function mf(e,t){return 0!=(e&t)}var bf=[[Xc.L,Xc.L|Xc.V|Xc.LV|Xc.LVT],[Xc.LV|Xc.V,Xc.V|Xc.T],[Xc.LVT|Xc.T,Xc.T],[Xc.Any,Xc.Extend|Xc.ZWJ],[Xc.Any,Xc.SpacingMark],[Xc.Prepend,Xc.Any],[Xc.ZWJ,Xc.ExtPict],[Xc.RI,Xc.RI]];function wf(e,t){return-1===bf.findIndex(n=>mf(e,n[0])&&mf(t,n[1]))}var Ef=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,xf=e=>-1!==e.search(Ef),Cf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Sf=e=>{var t=e.match(Cf);return null!==t&&t[0].length/2%2==1},Df=e=>zl(e)&&Rf.isNodeList(e.children)&&!Ff.isEditor(e),Af={isAncestor:e=>zl(e)&&Rf.isNodeList(e.children),isElement:Df,isElementList:e=>Array.isArray(e)&&e.every(e=>Af.isElement(e)),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Df(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},_f=["text"],Of=["text"];function kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kf(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tf=new WeakMap,Ff={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=Ff.path(e,o),u="lowest"===r;for(var[s,l]of Ff.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!nd.isText(s)&&!Uf.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Ff.point(e,t,{edge:"end"}),focus:Ff.end(e,[])},{distance:i=1}=r,a=0;for(var u of Ff.positions(e,Bf(Bf({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Ff.start(e,[]),focus:Ff.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Ff.positions(e,Bf(Bf({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Ff.start(e,t),Ff.end(e,t)],end:(e,t)=>Ff.point(e,t,{edge:"end"}),first(e,t){var n=Ff.path(e,t,{edge:"start"});return Ff.node(e,n)},fragment(e,t){var n=Ff.range(e,t);return Rf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some(t=>Ff.isBlock(e,t)),hasInlines:(e,t)=>t.children.some(t=>nd.isText(t)||Ff.isInline(e,t)),hasTexts:(e,t)=>t.children.every(e=>nd.isText(e)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Af.isElement(t)&&!e.isInline(t),isEditor(e){if(!zl(e))return!1;var t=Tf.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||zl(e.marks))&&(null===e.selection||Yf.isRange(e.selection))&&Rf.isNodeList(e.children)&&zf.isOperationList(e.operations);return Tf.set(e,n),n},isEnd(e,t,n){var r=Ff.end(e,n);return Wf.equals(t,r)},isEdge:(e,t,n)=>Ff.isStart(e,t,n)||Ff.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&nd.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Af.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Hc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Ff.start(e,n);return Wf.equals(t,r)},isVoid:(e,t)=>Af.isElement(t)&&e.isVoid(t),last(e,t){var n=Ff.path(e,t,{edge:"end"});return Ff.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ff.path(e,t,n);return[Rf.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=Ff.path(e,n);for(var[s,l]of Rf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&Ff.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Yf.isExpanded(n)){var[r]=Ff.nodes(e,{match:nd.isText});if(r){var[o]=r;return Zc(o,_f)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Ff.leaf(e,a);if(0===i.offset){var s=Ff.previous(e,{at:a,match:nd.isText}),l=Ff.above(e,{match:t=>Ff.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Uf.isAncestor(d,f)&&(u=c)}}return Zc(u,Of)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Ff.after(e,i,{voids:r});if(a){var[,u]=Ff.last(e,[]),s=[a.path,u];if(Uf.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Uf.isPath(i)){var[l]=Ff.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Ff.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ff.path(e,t,n);return[Rf.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(Pf.isSpan(n))s=n[0],l=n[1];else{var c=Ff.path(e,n,{edge:"start"}),f=Ff.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Rf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&Ff.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===Uf.compare(v,d[1]);if("highest"!==r||!y)if(u(g,v))if("lowest"===r&&y)d=[g,v];else{var m="lowest"===r?d:[g,v];m&&(o?h.push(m):yield m),d=[g,v]}else if(o&&!y&&nd.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>zc.get(e)||[];if(Ff.isNormalizing(e)){if(n){var o=Array.from(Rf.nodes(e),e=>{var[,t]=e;return t});zc.set(e,o)}0!==r(e).length&&Ff.withoutNormalizing(e,()=>{for(var t of r(e))if(Rf.has(e,t)){var n=Ff.node(e,t),[o,i]=n;Af.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n            Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n          "));var s=r(e).pop();if(Rf.has(e,s)){var l=Ff.node(e,s);e.normalizeNode(l)}u++}})}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ff.path(e,t,n),o=Uf.parent(r);return Ff.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Uf.isPath(t))if("start"===o){var[,i]=Rf.first(e,t);t=i}else if("end"===o){var[,a]=Rf.last(e,t);t=a}return Yf.isRange(t)&&(t="start"===o?Yf.start(t):"end"===o?Yf.end(t):Uf.common(t.anchor.path,t.focus.path)),Wf.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Rf.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Ff.pathRefs(e).delete(o),o.current=null,t}};return Ff.pathRefs(e).add(o),o},pathRefs(e){var t=$c.get(e);return t||(t=new Set,$c.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Uf.isPath(t)){var o;if("end"===r){var[,i]=Rf.last(e,t);o=i}else{var[,a]=Rf.first(e,t);o=a}var u=Rf.get(e,o);if(!nd.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(Yf.isRange(t)){var[s,l]=Yf.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Ff.pointRefs(e).delete(o),o.current=null,t}};return Ff.pointRefs(e).add(o),o},pointRefs(e){var t=Vc.get(e);return t||(t=new Set,Vc.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=Ff.range(e,n),[u,s]=Yf.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,h=0;for(var[g,v]of Ff.nodes(e,{at:n,reverse:o,voids:i})){if(Af.isElement(g)){if(!i&&e.isVoid(g)){yield Ff.start(e,v);continue}if(e.isInline(g))continue;if(Ff.hasInlines(e,g)){var y=Uf.isAncestor(v,s.path)?s:Ff.end(e,v),m=Uf.isAncestor(v,u.path)?u:Ff.start(e,v);f=Ff.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(nd.isText(g)){var b=Uf.equals(v,l.path);for(b?(p=o?l.offset:g.text.length-l.offset,h=l.offset):(p=g.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:v,offset:h},c=!1);;){if(0===d){if(""===f)break;d=w(f,r,o),f=nf(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:v,offset:h}}}}}function w(e,t,n){return"character"===t?Jc(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=Jc(e,t),[i,a]=nf(e,o,t);if(rf(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Ff.before(e,i,{voids:r});if(a){var[,u]=Ff.first(e,[]),s=[a.path,u];if(Uf.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Uf.isPath(i)){var[l]=Ff.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Ff.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>Yf.isRange(t)&&!n?t:{anchor:Ff.start(e,t),focus:Ff.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Ff.rangeRefs(e).delete(o),o.current=null,t}};return Ff.rangeRefs(e).add(o),o},rangeRefs(e){var t=Wc.get(e);return t||(t=new Set,Wc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Hc.set(e,t)},start:(e,t)=>Ff.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Ff.range(e,t),[i,a]=Yf.edges(o),u="";for(var[s,l]of Ff.nodes(e,{at:o,match:nd.isText,voids:r})){var c=s.text;Uf.equals(l,a.path)&&(c=c.slice(0,a.offset)),Uf.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Yf.edges(t);if(0!==o.offset||0!==i.offset||Yf.isCollapsed(t))return t;var a=Ff.above(e,{at:i,match:t=>Ff.isBlock(e,t)}),u=a?a[1]:[],s={anchor:Ff.start(e,[]),focus:i},l=!0;for(var[c,f]of Ff.nodes(e,{at:s,match:nd.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Uf.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ff.above(e,Bf(Bf({},t),{},{match:t=>Ff.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Ff.isNormalizing(e);Ff.setNormalizing(e,!1);try{t()}finally{Ff.setNormalizing(e,n)}Ff.normalize(e)}},Pf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Uf.isPath)},jf=["children"],If=["text"],Nf=new WeakMap,Rf={ancestor(e,t){var n=Rf.get(e,t);if(nd.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Uf.ancestors(t,n)){var o=[Rf.ancestor(e,r),r];yield o}},child(e,t){if(nd.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=Rf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Rf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Uf.common(t,n);return[Rf.get(e,r),r]},descendant(e,t){var n=Rf.get(e,t);if(Ff.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Rf.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Rf.nodes(e,t))Af.isElement(n)&&(yield[n,r])},extractProps:e=>Af.isAncestor(e)?Zc(e,jf):Zc(e,If),first(e,t){for(var n=t.slice(),r=Rf.get(e,n);r&&!nd.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(nd.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Nc({children:e.children},e=>{var[n,r]=Yf.edges(t),o=Rf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Yf.includes(t,n)}});for(var[,i]of o){if(!Yf.includes(t,i)){var a=Rf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Uf.equals(i,r.path)){var s=Rf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Uf.equals(i,n.path)){var l=Rf.leaf(e,i);l.text=l.text.slice(n.offset)}}Ff.isEditor(e)&&(e.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(nd.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(nd.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>nd.isText(e)||Af.isElement(e)||Ff.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Nf.get(e);if(void 0!==t)return t;var n=e.every(e=>Rf.isNode(e));return Nf.set(e,n),n},last(e,t){for(var n=t.slice(),r=Rf.get(e,n);r&&!nd.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Rf.get(e,t);if(!nd.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Uf.levels(t,n)){var o=Rf.get(e,r);yield[o,r]}},matches:(e,t)=>Af.isElement(e)&&Af.isElementProps(t)&&Af.matches(e,t)||nd.isText(e)&&nd.isTextProps(t)&&nd.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?Uf.isBefore(u,i):Uf.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||nd.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Uf.next(u);if(Rf.has(e,l)){u=l,s=Rf.get(e,u);continue}}r&&0!==u[u.length-1]?(u=Uf.previous(u),s=Rf.get(e,u)):(u=Uf.parent(u),s=Rf.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;Uf.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Rf.get(e,u)}},parent(e,t){var n=Uf.parent(t),r=Rf.get(e,n);if(nd.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>nd.isText(e)?e.text:e.children.map(Rf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Rf.nodes(e,t))nd.isText(n)&&(yield[n,r])}};function Lf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lf(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zf={isNodeOperation:e=>zf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!zl(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Uf.isPath(e.path)&&Rf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Uf.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Uf.isPath(e.path)&&zl(e.properties);case"move_node":return Uf.isPath(e.path)&&Uf.isPath(e.newPath);case"set_node":return Uf.isPath(e.path)&&zl(e.properties)&&zl(e.newProperties);case"set_selection":return null===e.properties&&Yf.isRange(e.newProperties)||null===e.newProperties&&Yf.isRange(e.properties)||zl(e.properties)&&zl(e.newProperties);case"split_node":return Uf.isPath(e.path)&&"number"==typeof e.position&&zl(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(e=>zf.isOperation(e)),isSelectionOperation:e=>zf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>zf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Mf(Mf({},e),{},{type:"remove_node"});case"insert_text":return Mf(Mf({},e),{},{type:"remove_text"});case"merge_node":return Mf(Mf({},e),{},{type:"split_node",path:Uf.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Uf.equals(t,n))return e;if(Uf.isSibling(n,t))return Mf(Mf({},e),{},{path:t,newPath:n});var r=Uf.transform(n,e),o=Uf.transform(Uf.next(n),e);return Mf(Mf({},e),{},{path:r,newPath:o});case"remove_node":return Mf(Mf({},e),{},{type:"insert_node"});case"remove_text":return Mf(Mf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Mf(Mf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Mf(Mf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Mf(Mf({},e),{},{type:"merge_node",path:Uf.next(e.path)})}}},Uf={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Uf.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Uf.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Uf.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Uf.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Uf.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Uf.compare(e,t),isBefore:(e,t)=>-1===Uf.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Uf.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Uf.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Uf.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Uf.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Uf.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Uf.isAncestor(t,e)&&!Uf.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Nc(e,r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(Uf.equals(i,r)||Uf.endsBefore(i,r)||Uf.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Uf.equals(a,r)||Uf.isAncestor(a,r))return null;Uf.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Uf.equals(u,r)||Uf.endsBefore(u,r)?r[u.length-1]-=1:Uf.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(Uf.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Uf.endsBefore(l,r)?r[l.length-1]+=1:Uf.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(Uf.equals(f,d))return;if(Uf.isAncestor(f,r)||Uf.equals(f,r)){var p=d.slice();return Uf.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Uf.isSibling(f,d)&&(Uf.isAncestor(d,r)||Uf.equals(d,r))?Uf.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Uf.endsBefore(d,r)||Uf.equals(d,r)||Uf.isAncestor(d,r)?(Uf.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Uf.endsBefore(f,r)&&(Uf.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}})}},Hf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Uf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function $f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$f(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wf={compare(e,t){var n=Uf.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Wf.compare(e,t),isBefore:(e,t)=>-1===Wf.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Uf.equals(e.path,t.path),isPoint:e=>zl(e)&&"number"==typeof e.offset&&Uf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Nc(e,e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Uf.transform(o,t,n);break;case"insert_text":Uf.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Uf.equals(t.path,o)&&(e.offset+=t.position),e.path=Uf.transform(o,t,n);break;case"remove_text":Uf.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Uf.equals(t.path,o)||Uf.isAncestor(t.path,o))return null;e.path=Uf.transform(o,t,n);break;case"split_node":if(Uf.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Uf.transform(o,t,Vf(Vf({},n),{},{affinity:"forward"})))}else e.path=Uf.transform(o,t,n)}})}},Gf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Wf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},qf=["anchor","focus"];function Kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Yf={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Yf.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Yf.edges(e);return t},equals:(e,t)=>Wf.equals(e.anchor,t.anchor)&&Wf.equals(e.focus,t.focus),includes(e,t){if(Yf.isRange(t)){if(Yf.includes(e,t.anchor)||Yf.includes(e,t.focus))return!0;var[n,r]=Yf.edges(e),[o,i]=Yf.edges(t);return Wf.isBefore(n,o)&&Wf.isAfter(r,i)}var[a,u]=Yf.edges(e),s=!1,l=!1;return Wf.isPoint(t)?(s=Wf.compare(t,a)>=0,l=Wf.compare(t,u)<=0):(s=Uf.compare(t,a.path)>=0,l=Uf.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=Zc(e,qf),[r,o]=Yf.edges(e),[i,a]=Yf.edges(t),u=Wf.isBefore(r,i)?i:r,s=Wf.isBefore(o,a)?o:a;return Wf.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kf(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Wf.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Wf.equals(t,n)},isExpanded:e=>!Yf.isCollapsed(e),isForward:e=>!Yf.isBackward(e),isRange:e=>zl(e)&&Wf.isPoint(e.anchor)&&Wf.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Yf.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Nc(e,e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Yf.isCollapsed(e);Yf.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Yf.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Wf.transform(e.anchor,t,{affinity:r}),s=Wf.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s})}},Zf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Yf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Xf=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(zl(r)&&zl(o)){if(!Xf(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Jf=["text"],Qf=["anchor","focus"];function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nd={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Zc(e,Jf)}return Xf(r?o(e):e,r?o(t):t)},isText:e=>zl(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every(e=>nd.isText(e)),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[td({},e)];for(var r of t){var o=Zc(r,Qf),[i,a]=Yf.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var g=a.offset-f;h=td(td({},d),{},{text:d.text.slice(g)}),d=td(td({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=td(td({},d),{},{text:d.text.slice(0,v)}),d=td(td({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rd(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var id={transform(e,t){e.children=Rc(e.children);var n=e.selection&&Rc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Rf.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of Yf.points(t))t[s]=Wf.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=Rf.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of Yf.points(t))t[v]=Wf.transform(g,n);break;case"merge_node":var{path:y}=n,m=Rf.get(e,y),b=Uf.previous(y),w=Rf.get(e,b),E=Rf.parent(e,y),x=y[y.length-1];if(nd.isText(m)&&nd.isText(w))w.text+=m.text;else{if(nd.isText(m)||nd.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(E.children.splice(x,1),t)for(var[C,S]of Yf.points(t))t[S]=Wf.transform(C,n);break;case"move_node":var{path:D,newPath:A}=n;if(Uf.isAncestor(D,A))throw new Error("Cannot move a path [".concat(D,"] to new path [").concat(A,"] because the destination is inside itself."));var _=Rf.get(e,D),O=Rf.parent(e,D),k=D[D.length-1];O.children.splice(k,1);var B=Uf.transform(D,n),T=Rf.get(e,Uf.parent(B)),F=B[B.length-1];if(T.children.splice(F,0,_),t)for(var[P,j]of Yf.points(t))t[j]=Wf.transform(P,n);break;case"remove_node":var{path:I}=n,N=I[I.length-1];if(Rf.parent(e,I).children.splice(N,1),t)for(var[R,L]of Yf.points(t)){var M=Wf.transform(R,n);if(null!=t&&null!=M)t[L]=M;else{var z=void 0,U=void 0;for(var[H,$]of Rf.texts(e)){if(-1!==Uf.compare($,I)){U=[H,$];break}z=[H,$]}var V=!1;z&&U&&(V=Uf.equals(U[1],I)?!Uf.hasPrevious(U[1]):Uf.common(z[1],I).length<Uf.common(U[1],I).length),z&&!V?(R.path=z[1],R.offset=z[0].text.length):U?(R.path=U[1],R.offset=0):t=null}}break;case"remove_text":var{path:W,offset:G,text:q}=n;if(0===q.length)break;var K=Rf.leaf(e,W),Y=K.text.slice(0,G),Z=K.text.slice(G+q.length);if(K.text=Y+Z,t)for(var[X,J]of Yf.points(t))t[J]=Wf.transform(X,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=Rf.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!Yf.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=od({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=Rf.get(e,le),he=Rf.parent(e,le),ge=le[le.length-1];if(nd.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=od(od({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=od(od({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,Ee]of Yf.points(t))t[Ee]=Wf.transform(we,n)}return t})(e,n,t)}finally{e.children=Lc(e.children),e.selection=n?Hl(n)?Lc(n):n:null}}},ad=["text"],ud=["children"];function sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ld(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sd(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cd={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ff.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Rf.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Ff.end(e,[]):[0],s=!0),null==s&&(s=!1),Yf.isRange(a))if(r||(a=Ff.unhangRange(e,a)),Yf.isCollapsed(a))a=a.anchor;else{var[,c]=Yf.edges(a),f=Ff.pointRef(e,c);wd.delete(e,{at:a}),a=f.unref()}if(Wf.isPoint(a)){null==u&&(u=nd.isText(l)?e=>nd.isText(e):e.isInline(l)?t=>nd.isText(t)||Ff.isInline(e,t):t=>Ff.isBlock(e,t));var[d]=Ff.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=Ff.pathRef(e,p),g=Ff.isEnd(e,a,p);wd.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?Uf.next(v):v}var y=Uf.parent(a),m=a[a.length-1];if(o||!Ff.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=Uf.next(a)}if(a=Uf.previous(a),s){var E=Ff.end(e,a);E&&wd.select(e,E)}}}})},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ff.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Uf.isPath(n)?pd(e,n):t=>Ff.isBlock(e,t)),n){var a=Ff.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,t=>{var[,n]=t;return Ff.pathRef(e,n)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=Ff.node(e,Uf.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=Uf.next(d);wd.moveNodes(e,{at:l,to:g,voids:o}),wd.removeNodes(e,{at:d,voids:o})}else if(0===p)wd.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=Uf.next(d);wd.moveNodes(e,{at:l,to:v,voids:o})}else{var y=Uf.next(l),m=Uf.next(d);wd.splitNodes(e,{at:y,voids:o}),wd.moveNodes(e,{at:l,to:m,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ff.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Uf.isPath(r)){var[u]=Ff.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Ff.isBlock(e,t);if(!o&&Yf.isRange(r)&&(r=Ff.unhangRange(e,r)),Yf.isRange(r))if(Yf.isCollapsed(r))r=r.anchor;else{var[,s]=Yf.edges(r),l=Ff.pointRef(e,s);wd.delete(e,{at:r}),r=l.unref(),null==t.at&&wd.select(e,r)}var[c]=Ff.nodes(e,{at:r,match:n,voids:i,mode:a}),f=Ff.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,y,m=Uf.next(g),b=Uf.common(p,g),w=Uf.isSibling(p,g),E=Array.from(Ff.levels(e,{at:p}),e=>{var[t]=e;return t}).slice(b.length).slice(0,-1),x=Ff.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&fd(e,t)}),C=x&&Ff.pathRef(e,x[1]);if(nd.isText(d)&&nd.isText(h)){var S=Zc(d,ad);y=h.text.length,v=S}else{if(!Af.isElement(d)||!Af.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));S=Zc(d,ud),y=h.children.length,v=S}w||wd.moveNodes(e,{at:p,to:m,voids:i}),C&&wd.removeNodes(e,{at:C.current,voids:i}),Af.isElement(h)&&Ff.isEmpty(e,h)||nd.isText(h)&&""===h.text&&0!==g[g.length-1]?wd.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),C&&C.unref()}}}})},moveNodes(e,t){Ff.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Uf.isPath(r)?pd(e,r):t=>Ff.isBlock(e,t));var u=Ff.pathRef(e,n),s=Ff.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,t=>{var[,n]=t;return Ff.pathRef(e,n)});for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&Uf.isSibling(d,f)&&Uf.isAfter(d,f)&&(u.current=Uf.next(u.current))}u.unref()}})},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ff.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Uf.isPath(i)?pd(e,i):t=>Ff.isBlock(e,t)),!n&&Yf.isRange(i)&&(i=Ff.unhangRange(e,i));var u=Ff.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,t=>{var[,n]=t;return Ff.pathRef(e,n)});for(var l of s){var c=l.unref();if(c){var[f]=Ff.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ff.withoutNormalizing(e,()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=Uf.isPath(o)?pd(e,o):t=>Ff.isBlock(e,t)),!i&&Yf.isRange(o)&&(o=Ff.unhangRange(e,o)),u&&Yf.isRange(o)){if(Yf.isCollapsed(o)&&Ff.leaf(e,o.anchor)[0].text.length>0)return;var l=Ff.rangeRef(e,o,{affinity:"inward"}),[c,f]=Yf.edges(o),d="lowest"===a?"lowest":"highest",p=Ff.isEnd(e,f,f.path);wd.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=Ff.isStart(e,c,c.path);wd.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&wd.select(e,o)}for(var[g,v]of Ff.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==v.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:y,newProperties:m})}}}})},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ff.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>Ff.isBlock(e,t)),Yf.isRange(i)&&(i=dd(e,i)),Uf.isPath(i)){var s=i,l=Ff.point(e,s),[c]=Ff.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=Ff.pointRef(e,i,{affinity:"backward"}),[d]=Ff.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=Ff.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(Af.isElement(h)&&e.isInline(h)){var v=Ff.after(e,g);if(!v){var y=Uf.next(g);wd.insertNodes(e,{text:""},{at:y,voids:r}),v=Ff.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=Ff.pointRef(e,i),b=i.path.length-a,[,w]=d,E=i.path.slice(0,b),x=0===a?i.offset:i.path[b]+0;for(var[C,S]of Ff.levels(e,{at:E,reverse:!0,voids:r})){var D=!1;if(S.length<w.length||0===S.length||!r&&Ff.isVoid(e,C))break;var A=f.current,_=Ff.isEnd(e,A,S);if(u||!f||!Ff.isEdge(e,A,S)){D=!0;var O=Rf.extractProps(C);e.apply({type:"split_node",path:S,position:x,properties:O})}x=S[S.length-1]+(D||_?1:0)}if(null==t.at){var k=m.current||Ff.end(e,[]);wd.select(e,k)}f.unref(),m.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;wd.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ff.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Uf.isPath(i)?pd(e,i):t=>Ff.isBlock(e,t)),Uf.isPath(i)&&(i=Ff.range(e,i));var u=Yf.isRange(i)?Ff.rangeRef(e,i):null,s=Ff.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,t=>{var[,n]=t;return Ff.pathRef(e,n)}).reverse(),c=function(t){var n=t.unref(),[i]=Ff.node(e,n),a=Ff.range(e,n);r&&u&&(a=Yf.intersection(u.current,a)),wd.liftNodes(e,{at:a,match:e=>Af.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ff.withoutNormalizing(e,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=Uf.isPath(u)?pd(e,u):e.isInline(t)?t=>Ff.isInline(e,t)||nd.isText(t):t=>Ff.isBlock(e,t)),o&&Yf.isRange(u)){var[s,l]=Yf.edges(u),c=Ff.rangeRef(e,u,{affinity:"inward"});wd.splitNodes(e,{at:l,match:a,voids:i}),wd.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&wd.select(e,u)}var f=Array.from(Ff.nodes(e,{at:u,match:e.isInline(t)?t=>Ff.isBlock(e,t):e=>Ff.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=Yf.isRange(u)?Yf.intersection(u,Ff.range(e,d)):u;if(p){var h=Array.from(Ff.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var g=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=Uf.equals(o,a)?Uf.parent(o):Uf.common(o,a),s=Ff.range(e,o,a),l=Ff.node(e,u),[c]=l,f=u.length+1,d=Uf.next(a.slice(0,f)),p=ld(ld({},t),{},{children:[]});wd.insertNodes(e,p,{at:d,voids:i}),wd.moveNodes(e,{at:s,match:e=>Af.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===g)continue}}}}})}},fd=(e,t)=>{if(Af.isElement(t)){var n=t;return!!Ff.isVoid(e,t)||1===n.children.length&&fd(e,n.children[0])}return!Ff.isEditor(t)},dd=(e,t)=>{if(Yf.isCollapsed(t))return t.anchor;var[,n]=Yf.edges(t),r=Ff.pointRef(e,n);return wd.delete(e,{at:t}),r.unref()},pd=(e,t)=>{var[n]=Ff.node(e,t);return e=>e===n};function hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hd(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vd={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)wd.select(e,r.anchor);else if("focus"===n)wd.select(e,r.focus);else if("start"===n){var[o]=Yf.edges(r);wd.select(e,o)}else if("end"===n){var[,i]=Yf.edges(r);wd.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Yf.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Yf.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?Ff.before(e,u,l):Ff.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?Ff.before(e,s,l):Ff.after(e,s,l);d&&(c.focus=d)}wd.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Ff.range(e,t),n)wd.setSelection(e,t);else{if(!Yf.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=Yf.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Yf.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;wd.setSelection(e,{["anchor"===o?"anchor":"focus"]:gd(gd({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Wf.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Wf.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},yd={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ff.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(Yf.isRange(a)&&Yf.isCollapsed(a)&&(a=a.anchor),Wf.isPoint(a)){var s=Ff.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?Ff.before(e,a,c)||Ff.start(e,[]):Ff.after(e,a,c)||Ff.end(e,[])},u=!0}}if(Uf.isPath(a))wd.removeNodes(e,{at:a,voids:i});else if(!Yf.isCollapsed(a)){if(!u){var[,f]=Yf.edges(a),d=Ff.end(e,[]);Wf.equals(f,d)||(a=Ff.unhangRange(e,a,{voids:i}))}var[p,h]=Yf.edges(a),g=Ff.above(e,{match:t=>Ff.isBlock(e,t),at:p,voids:i}),v=Ff.above(e,{match:t=>Ff.isBlock(e,t),at:h,voids:i}),y=g&&v&&!Uf.equals(g[1],v[1]),m=Uf.equals(p.path,h.path),b=i?null:Ff.void(e,{at:p,mode:"highest"}),w=i?null:Ff.void(e,{at:h,mode:"highest"});if(b){var E=Ff.before(e,p);E&&g&&Uf.isAncestor(g[1],E.path)&&(p=E)}if(w){var x=Ff.after(e,h);x&&v&&Uf.isAncestor(v[1],x.path)&&(h=x)}var C,S=[];for(var D of Ff.nodes(e,{at:a,voids:i})){var[A,_]=D;C&&0===Uf.compare(_,C)||(!i&&Ff.isVoid(e,A)||!Uf.isCommon(_,p.path)&&!Uf.isCommon(_,h.path))&&(S.push(D),C=_)}var O=Array.from(S,t=>{var[,n]=t;return Ff.pathRef(e,n)}),k=Ff.pointRef(e,p),B=Ff.pointRef(e,h);if(!m&&!b){var T=k.current,[F]=Ff.leaf(e,T),{path:P}=T,{offset:j}=p,I=F.text.slice(j);I.length>0&&e.apply({type:"remove_text",path:P,offset:j,text:I})}for(var N of O){var R=N.unref();wd.removeNodes(e,{at:R,voids:i})}if(!w){var L=B.current,[M]=Ff.leaf(e,L),{path:z}=L,U=m?p.offset:0,H=M.text.slice(U,h.offset);H.length>0&&e.apply({type:"remove_text",path:z,offset:U,text:H})}!m&&y&&B.current&&k.current&&wd.mergeNodes(e,{at:B.current,hanging:!0,voids:i});var $=n?k.unref()||B.unref():B.unref()||k.unref();null==t.at&&$&&wd.select(e,$)}}})},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ff.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Yf.isRange(i))if(r||(i=Ff.unhangRange(e,i)),Yf.isCollapsed(i))i=i.anchor;else{var[,a]=Yf.edges(i);if(!o&&Ff.void(e,{at:a}))return;var u=Ff.pointRef(e,a);wd.delete(e,{at:i}),i=u.unref()}else Uf.isPath(i)&&(i=Ff.start(e,i));if(o||!Ff.void(e,{at:i})){var s=Ff.above(e,{at:i,match:t=>Ff.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;Ff.isEnd(e,i,l)?i=Ff.after(e,l):Ff.isStart(e,i,l)&&(i=Ff.before(e,l))}var c=Ff.above(e,{match:t=>Ff.isBlock(e,t),at:i,voids:o}),[,f]=c,d=Ff.isStart(e,i,f),p=Ff.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=Rf.first({children:t},[]),[,m]=Rf.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length)&&(!!h||!(g&&Uf.isAncestor(r,y)&&Af.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(v&&Uf.isAncestor(r,m)&&Af.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of Rf.nodes({children:t},{pass:w}))w(E)&&b.push(E);var x=[],C=[],S=[],D=!0,A=!1;for(var[_]of b)Af.isElement(_)&&!e.isInline(_)?(D=!1,A=!0,C.push(_)):D?x.push(_):S.push(_);var[O]=Ff.nodes(e,{at:i,match:t=>nd.isText(t)||Ff.isInline(e,t),mode:"highest",voids:o}),[,k]=O,B=Ff.isStart(e,i,k),T=Ff.isEnd(e,i,k),F=Ff.pathRef(e,p?Uf.next(f):f),P=Ff.pathRef(e,T?Uf.next(k):k),j=Ff.pathRef(e,f);wd.splitNodes(e,{at:i,match:t=>A?Ff.isBlock(e,t):nd.isText(t)||Ff.isInline(e,t),mode:A?"lowest":"highest",voids:o});var I=Ff.pathRef(e,!B||B&&T?Uf.next(k):k);if(wd.insertNodes(e,x,{at:I.current,match:t=>nd.isText(t)||Ff.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&wd.delete(e,{at:j.unref(),voids:o}),wd.insertNodes(e,C,{at:F.current,match:t=>Ff.isBlock(e,t),mode:"lowest",voids:o}),wd.insertNodes(e,S,{at:P.current,match:t=>nd.isText(t)||Ff.isInline(e,t),mode:"highest",voids:o}),!n.at){var N;N=S.length>0?Uf.previous(P.current):C.length>0?Uf.previous(F.current):Uf.previous(I.current);var R=Ff.end(e,N);wd.select(e,R)}I.unref(),F.unref(),P.unref()}}})},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ff.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Uf.isPath(o)&&(o=Ff.range(e,o)),Yf.isRange(o))if(Yf.isCollapsed(o))o=o.anchor;else{var i=Yf.end(o);if(!r&&Ff.void(e,{at:i}))return;var a=Ff.pointRef(e,i);wd.delete(e,{at:o,voids:r}),o=a.unref(),wd.setSelection(e,{anchor:o,focus:o})}if(r||!Ff.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}})}};function md(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?md(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):md(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wd=bd(bd(bd(bd({},id),cd),vd),yd),Ed="[object Map]",xd="[object Set]",Cd=/^\[object .+?Constructor\]$/,Sd=/^(?:0|[1-9]\d*)$/,Dd="[\\ud800-\\udfff]",Ad="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",_d="\\ud83c[\\udffb-\\udfff]",Od="[^\\ud800-\\udfff]",kd="(?:\\ud83c[\\udde6-\\uddff]){2}",Bd="[\\ud800-\\udbff][\\udc00-\\udfff]",Td="(?:"+Ad+"|"+_d+")?",Fd="[\\ufe0e\\ufe0f]?"+Td+"(?:\\u200d(?:"+[Od,kd,Bd].join("|")+")[\\ufe0e\\ufe0f]?"+Td+")*",Pd="(?:"+[Od+Ad+"?",Ad,kd,Bd,Dd].join("|")+")",jd=RegExp(_d+"(?="+_d+")|"+Pd+Fd,"g"),Id=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Nd="object"==typeof r&&r&&r.Object===Object&&r,Rd="object"==typeof self&&self&&self.Object===Object&&self,Ld=Nd||Rd||Function("return this")();function Md(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(t,(function(t){return e[t]}))}function zd(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ud(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Hd(e){return function(e){return Id.test(e)}(e)?function(e){return e.match(jd)||[]}(e):function(e){return e.split("")}(e)}var $d,Vd,Wd=Function.prototype,Gd=Object.prototype,qd=Ld["__core-js_shared__"],Kd=function(){var e=/[^.]+$/.exec(qd&&qd.keys&&qd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Yd=Wd.toString,Zd=Gd.hasOwnProperty,Xd=Gd.toString,Jd=RegExp("^"+Yd.call(Zd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qd=Ld.Symbol,ep=Qd?Qd.iterator:void 0,tp=Gd.propertyIsEnumerable,np=($d=Object.keys,Vd=Object,function(e){return $d(Vd(e))}),rp=vp(Ld,"DataView"),op=vp(Ld,"Map"),ip=vp(Ld,"Promise"),ap=vp(Ld,"Set"),up=vp(Ld,"WeakMap"),sp=bp(rp),lp=bp(op),cp=bp(ip),fp=bp(ap),dp=bp(up);function pp(e,t){var n=wp(e)||function(e){return function(e){return Sp(e)&&Ep(e)}(e)&&Zd.call(e,"callee")&&(!tp.call(e,"callee")||"[object Arguments]"==Xd.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Zd.call(e,i)||o&&("length"==i||mp(i,r))||n.push(i);return n}function hp(e){if(!Cp(e)||function(e){return!!Kd&&Kd in e}(e))return!1;var t=xp(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Jd:Cd;return t.test(bp(e))}function gp(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Gd,t!==r)return np(e);var t,n,r,o=[];for(var i in Object(e))Zd.call(e,i)&&"constructor"!=i&&o.push(i);return o}function vp(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return hp(n)?n:void 0}var yp=function(e){return Xd.call(e)};function mp(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Sd.test(e))&&e>-1&&e%1==0&&e<t}function bp(e){if(null!=e){try{return Yd.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(rp&&"[object DataView]"!=yp(new rp(new ArrayBuffer(1)))||op&&yp(new op)!=Ed||ip&&"[object Promise]"!=yp(ip.resolve())||ap&&yp(new ap)!=xd||up&&"[object WeakMap]"!=yp(new up))&&(yp=function(e){var t=Xd.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?bp(n):void 0;if(r)switch(r){case sp:return"[object DataView]";case lp:return Ed;case cp:return"[object Promise]";case fp:return xd;case dp:return"[object WeakMap]"}return t});var wp=Array.isArray;function Ep(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!xp(e)}function xp(e){var t=Cp(e)?Xd.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Cp(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Sp(e){return!!e&&"object"==typeof e}function Dp(e){return e?Md(e,function(e){return Ep(e)?pp(e):gp(e)}(e)):[]}var Ap=function(e){if(!e)return[];if(Ep(e))return function(e){return"string"==typeof e||!wp(e)&&Sp(e)&&"[object String]"==Xd.call(e)}(e)?Hd(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(ep&&e[ep])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[ep]());var t=yp(e);return(t==Ed?zd:t==xd?Ud:Dp)(e)};function _p(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Op(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:_p(t[n])&&_p(e[n])&&Object.keys(t[n]).length>0&&Op(e[n],t[n])}))}var kp={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Bp(){var e="undefined"!=typeof document?document:{};return Op(e,kp),e}var Tp={document:kp,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Fp(){var e="undefined"!=typeof window?window:{};return Op(e,Tp),e}function Pp(e){return Pp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pp(e)}function jp(e,t){return jp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jp(e,t)}function Ip(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(r){return!1}}function Np(e,t,n){return Np=Ip()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&jp(o,n.prototype),o},Np.apply(null,arguments)}function Rp(e){var t="function"==typeof Map?new Map:void 0;return Rp=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Np(e,arguments,Pp(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),jp(n,e)},Rp(e)}var Lp=function(e){var t,n;function r(t){var n,r,o;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Rp(Array));function Mp(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Mp(e)):t.push(e)})),t}function zp(e,t){return Array.prototype.filter.call(e,t)}function Up(e,t){var n=Fp(),r=Bp(),o=[];if(!t&&e instanceof Lp)return e;if(!e)return new Lp(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Lp)return e;o=e}return new Lp(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function Hp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Mp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function $p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Mp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function Vp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Mp(t.map((function(e){return e.split(" ")})));return zp(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function Wp(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Gp(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function qp(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Kp(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Yp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),Up(t).is(o))i.apply(t,n);else for(var r=Up(t).parents(),a=0;a<r.length;a+=1)Up(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function Zp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Xp(){var e=Fp();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Jp(){var e=Fp();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Qp(){if(this.length>0){var e=Fp(),t=Bp(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function eh(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function th(){for(var e=Fp(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function nh(e,t){var n,r=Fp();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function rh(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function oh(e){return Up(zp(this,e))}function ih(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function ah(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function uh(e){var t,n,r=Fp(),o=Bp(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=Up(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof Lp){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function sh(){for(var e,t=Bp(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Lp)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function lh(e){var t,n,r=Bp();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof Lp)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function ch(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Up(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Up(t)}function fh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Up(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Up(t)}function dh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return Up(t)}function ph(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!Up(r[o]).is(e)||t.push(r[o]);return Up(t)}function hh(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function gh(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}Up.fn=Lp.prototype;var vh="resize scroll".split(" ");function yh(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)vh.indexOf(e)<0&&(e in this[o]?this[o][e]():Up(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var mh=yh("click"),bh=yh("focus"),wh="[object GeneratorFunction]",Eh=/^(?:0|[1-9]\d*)$/;function xh(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Ch=Object.prototype,Sh=Ch.hasOwnProperty,Dh=Ch.toString,Ah=Ch.propertyIsEnumerable,_h=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function Oh(e,t){var n=Ih(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Nh(e)}(e)&&Sh.call(e,"callee")&&(!Ah.call(e,"callee")||"[object Arguments]"==Dh.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Sh.call(e,i)||o&&("length"==i||jh(i,r))||n.push(i);return n}var kh,Bh,Th=(kh=function(e,t){return e&&Fh(e,t,Rh)},function(e,t){if(null==e)return e;if(!Nh(e))return kh(e,t);for(var n=e.length,r=Bh?n:-1,o=Object(e);(Bh?r--:++r<n)&&!1!==t(o[r],r,o););return e}),Fh=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}();function Ph(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Ch,t!==r)return _h(e);var t,n,r,o=[];for(var i in Object(e))Sh.call(e,i)&&"constructor"!=i&&o.push(i);return o}function jh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Eh.test(e))&&e>-1&&e%1==0&&e<t}var Ih=Array.isArray;function Nh(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?Dh.call(e):"";return"[object Function]"==t||t==wh}(e)}function Rh(e){return Nh(e)?Oh(e):Ph(e)}function Lh(e){return e}var Mh=function(e,t){return(Ih(e)?xh:Th)(e,"function"==typeof t?t:Lh)};let zh=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var Uh=/^\s+|\s+$/g,Hh=/^[-+]0x[0-9a-f]+$/i,$h=/^0b[01]+$/i,Vh=/^0o[0-7]+$/i,Wh=parseInt,Gh="object"==typeof r&&r&&r.Object===Object&&r,qh="object"==typeof self&&self&&self.Object===Object&&self,Kh=Gh||qh||Function("return this")(),Yh=Object.prototype.toString,Zh=Math.max,Xh=Math.min,Jh=function(){return Kh.Date.now()};function Qh(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=Jh();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?Xh(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Jh(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=tg(t)||0,eg(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Zh(tg(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Jh())},m}function eg(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function tg(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Yh.call(e)}(e))return NaN;if(eg(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eg(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Uh,"");var n=$h.test(e);return n||Vh.test(e)?Wh(e.slice(2),n?2:8):Hh.test(e)?NaN:+e}var ng=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return eg(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Qh(e,t,{leading:r,maxWait:t,trailing:o})};const rg={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function og(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const ig=Array.isArray;function ag(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function ug(e){return void 0===e}function sg(e){return void 0!==e}const lg=og("",{},[],void 0,void 0);function cg(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function fg(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const dg=["create","update","remove","destroy","pre","post"];function pg(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:rg;for(const f of dg)for(const t of e){const e=t[f];void 0!==e&&n[f].push(e)}function o(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return og(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}function i(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function a(e,t){var o,i;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;sg(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)ug(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=sg(s)&&sg(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](lg,e);if(ig(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,a(e,t))}else ag(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;sg(v)&&(null===(i=v.create)||void 0===i||i.call(v,lg,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function u(e,t,n,o,i,u){for(;o<=i;++o){const i=n[o];null!=i&&r.insertBefore(e,a(i,u),t)}}function s(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&s(n)}}}function l(e,t,o,a){for(var u,l;o<=a;++o){let a,c;const f=t[o];if(null!=f)if(sg(f.sel)){s(f),a=n.remove.length+1,c=i(f.elm,a);for(let t=0;t<n.remove.length;++t)n.remove[t](f,c);const e=null===(l=null===(u=null==f?void 0:f.data)||void 0===u?void 0:u.hook)||void 0===l?void 0:l.remove;sg(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function c(e,t,o){var i,s,f,d,p;const h=null===(i=t.data)||void 0===i?void 0:i.hook;null===(s=null==h?void 0:h.prepatch)||void 0===s||s.call(h,e,t);const g=t.elm=e.elm,v=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}ug(t.text)?sg(v)&&sg(y)?v!==y&&function(e,t,n,o){let i,s,f,d,p=0,h=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,b=n[0],w=n[m];for(;p<=g&&h<=m;)null==v?v=t[++p]:null==y?y=t[--g]:null==b?b=n[++h]:null==w?w=n[--m]:cg(v,b)?(c(v,b,o),v=t[++p],b=n[++h]):cg(y,w)?(c(y,w,o),y=t[--g],w=n[--m]):cg(v,w)?(c(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):cg(y,b)?(c(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===i&&(i=fg(t,p,g)),s=i[b.key],ug(s)?r.insertBefore(e,a(b,o),v.elm):(f=t[s],f.sel!==b.sel?r.insertBefore(e,a(b,o),v.elm):(c(f,b,o),t[s]=void 0,r.insertBefore(e,f.elm,v.elm))),b=n[++h]);(p<=g||h<=m)&&(p>g?(d=null==n[m+1]?null:n[m+1].elm,u(e,d,n,h,m,o)):l(e,t,p,g))}(g,v,y,o):sg(y)?(sg(e.text)&&r.setTextContent(g,""),u(g,null,y,0,y.length-1,o)):sg(v)?l(g,v,0,v.length-1):sg(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(sg(v)&&l(g,v,0,v.length-1),r.setTextContent(g,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let i,u,s;const f=[];for(i=0;i<n.pre.length;++i)n.pre[i]();for(function(e){return void 0!==e.sel}(e)||(e=o(e)),cg(e,t)?c(e,t,f):(u=e.elm,s=r.parentNode(u),a(t,f),null!==s&&(r.insertBefore(s,t.elm,r.nextSibling(u)),l(s,[e],0,0))),i=0;i<f.length;++i)f[i].data.hook.insert(f[i]);for(i=0;i<n.post.length;++i)n.post[i]();return t}}function hg(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let r=0;r<t.length;++r){const e=t[r].data;void 0!==e&&hg(e,t[r].children,t[r].sel)}}function gg(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),ig(n)?r=n:ag(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(ig(t)?r=t:ag(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)ag(r[i])&&(r[i]=og(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||hg(a,r,e),og(e,a,r,o,void 0)}function vg(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const yg={create:vg,update:vg};function mg(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const bg={create:mg,update:mg},wg=/[A-Z]/g;function Eg(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(wg,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(wg,"-$&").toLowerCase(),i[r]))}const xg={create:Eg,update:Eg};function Cg(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)Cg(e[r],t,n)}function Sg(e,t){const n=e.type,r=t.data.on;r&&r[n]&&Cg(r[n],t,e)}function Dg(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){Sg(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const Ag={create:Dg,update:Dg,destroy:Dg};function _g(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const Og={create:_g,update:_g},kg="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Bg=!1;function Tg(e,t,n){!function(e){kg((function(){kg(e)}))}((function(){e[t]=n}))}function Fg(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||Tg(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const Pg={pre:function(){Bg=!1},create:Fg,update:Fg,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Bg||(e.elm.offsetLeft,Bg=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function jg(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?jg(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(og(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Ig(e,t,...n){const r=jg(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?gg(e,t,r[0].text):gg(e,t,r)}Ig||(Ig={});var Ng,Rg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Lg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mg="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zg="[\\ud800-\\udfff]",Ug="["+Mg+"]",Hg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",$g="\\d+",Vg="[\\u2700-\\u27bf]",Wg="[a-z\\xdf-\\xf6\\xf8-\\xff]",Gg="[^\\ud800-\\udfff"+Mg+$g+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",qg="\\ud83c[\\udffb-\\udfff]",Kg="[^\\ud800-\\udfff]",Yg="(?:\\ud83c[\\udde6-\\uddff]){2}",Zg="[\\ud800-\\udbff][\\udc00-\\udfff]",Xg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Jg="(?:"+Wg+"|"+Gg+")",Qg="(?:"+Xg+"|"+Gg+")",ev="(?:"+Hg+"|"+qg+")?",tv="[\\ufe0e\\ufe0f]?"+ev+"(?:\\u200d(?:"+[Kg,Yg,Zg].join("|")+")[\\ufe0e\\ufe0f]?"+ev+")*",nv="(?:"+[Vg,Yg,Zg].join("|")+")"+tv,rv="(?:"+[Kg+Hg+"?",Hg,Yg,Zg,zg].join("|")+")",ov=RegExp("['’]","g"),iv=RegExp(Hg,"g"),av=RegExp(qg+"(?="+qg+")|"+rv+tv,"g"),uv=RegExp([Xg+"?"+Wg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Ug,Xg,"$"].join("|")+")",Qg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Ug,Xg+Jg,"$"].join("|")+")",Xg+"?"+Jg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Xg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",$g,nv].join("|"),"g"),sv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),lv=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cv="object"==typeof r&&r&&r.Object===Object&&r,fv="object"==typeof self&&self&&self.Object===Object&&self,dv=cv||fv||Function("return this")(),pv=(Ng={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==Ng?void 0:Ng[e]});function hv(e){return sv.test(e)}function gv(e){return hv(e)?function(e){return e.match(av)||[]}(e):function(e){return e.split("")}(e)}var vv=Object.prototype.toString,yv=dv.Symbol,mv=yv?yv.prototype:void 0,bv=mv?mv.toString:void 0;function wv(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==vv.call(e)}(e))return bv?bv.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ev(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}function xv(e){return null==e?"":wv(e)}for(var Cv,Sv,Dv=(Cv=function(e,t,n){return t=t.toLowerCase(),e+(n?Av(xv(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=xv(e),void 0===(t=n?void 0:t)?function(e){return lv.test(e)}(e)?function(e){return e.match(uv)||[]}(e):function(e){return e.match(Rg)||[]}(e):e.match(t)||[]}(function(e){return(e=xv(e))&&e.replace(Lg,pv).replace(iv,"")}(e).replace(ov,"")),Cv,"")}),Av=(Sv="toUpperCase",function(e){var t=hv(e=xv(e))?gv(e):void 0,n=t?t[0]:e.charAt(0),r=t?Ev(t,1).join(""):e.slice(1);return n[Sv]()+r}),_v=Dv,Ov="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),kv={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Bv={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Ov?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Tv={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Fv=1;Fv<20;Fv++)Tv["f"+Fv]=111+Fv;function Pv(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in kv)r[kv[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=Iv(d),g=kv[h];if(d.length>1&&!g&&!Bv[d]&&!Tv[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=jv(d)),g&&(r[g]=!p||null)}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)}))};return null==n?o:o(n)}function jv(e){return e=Iv(e),Tv[e]||e.toUpperCase().charCodeAt(0)}function Iv(e){return e=e.toLowerCase(),Bv[e]||e}var Nv=Pv,Rv=function(e,t){return Pv(e,{byKey:!0},t)},Lv=/^\s+|\s+$/g,Mv=/^[-+]0x[0-9a-f]+$/i,zv=/^0b[01]+$/i,Uv=/^0o[0-7]+$/i,Hv=parseInt,$v="object"==typeof r&&r&&r.Object===Object&&r,Vv="object"==typeof self&&self&&self.Object===Object&&self,Wv=$v||Vv||Function("return this")(),Gv=Object.prototype.toString,qv=Math.max,Kv=Math.min,Yv=function(){return Wv.Date.now()};function Zv(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Xv(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Gv.call(e)}(e))return NaN;if(Zv(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Zv(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Lv,"");var n=zv.test(e);return n||Uv.test(e)?Hv(e.slice(2),n?2:8):Mv.test(e)?NaN:+e}var Jv,Qv=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=Yv();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?Kv(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Yv(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Xv(t)||0,Zv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?qv(Xv(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Yv())},m},ey=i((function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",s="[object Function]",l="[object GeneratorFunction]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",x="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",D="[object Int32Array]",A="[object Uint8Array]",_="[object Uint8ClampedArray]",O="[object Uint16Array]",k="[object Uint32Array]",B=/\w*$/,T=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,P={};P[i]=P["[object Array]"]=P[b]=P[w]=P[a]=P[u]=P[E]=P[x]=P[C]=P[S]=P[D]=P[c]=P[f]=P[d]=P[h]=P[g]=P[v]=P[y]=P[A]=P[_]=P[O]=P[k]=!0,P["[object Error]"]=P[s]=P[m]=!1;var j="object"==typeof r&&r&&r.Object===Object&&r,I="object"==typeof self&&self&&self.Object===Object&&self,N=j||I||Function("return this")(),R=t&&!t.nodeType&&t,L=R&&e&&!e.nodeType&&e,M=L&&L.exports===R;function z(e,t){return e.set(t[0],t[1]),e}function U(e,t){return e.add(t),e}function H(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function $(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e,t){return function(n){return e(t(n))}}function G(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,Z=N["__core-js_shared__"],X=function(){var e=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?N.Buffer:void 0,re=N.Symbol,oe=N.Uint8Array,ie=W(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=q.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Re(N,"DataView"),pe=Re(N,"Map"),he=Re(N,"Promise"),ge=Re(N,"Set"),ve=Re(N,"WeakMap"),ye=Re(Object,"create"),me=He(de),be=He(pe),we=He(he),Ee=He(ge),xe=He(ve),Ce=re?re.prototype:void 0,Se=Ce?Ce.valueOf:void 0;function De(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _e(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){this.__data__=new Ae(e)}function ke(e,t){var n=Ve(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&We(e)}(e)&&Q.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!Q.call(e,a)||o&&("length"==a||ze(a,r))||n.push(a);return n}function Be(e,t,n){var r=e[t];Q.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Te(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function Fe(e,t,n,r,o,p,m){var T;if(r&&(T=p?r(e,o,p,m):r(e)),void 0!==T)return T;if(!Ke(e))return e;var F=Ve(e);if(F){if(T=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,T)}else{var j=Me(e),I=j==s||j==l;if(Ge(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(j==d||j==i||I&&!p){if($(e))return p?e:{};if(T=function(e){return"function"!=typeof e.constructor||Ue(e)?{}:(t=ie(e),Ke(t)?ae(t):{});var t}(I?{}:e),!t)return function(e,t){return Ie(e,Le(e),t)}(e,function(e,t){return e&&Ie(t,Ye(t),e)}(T,e))}else{if(!P[j])return p?e:{};T=function(e,t,n,r){var o=e.constructor;switch(t){case b:return je(e);case a:case u:return new o(+e);case w:return function(e,t){var n=t?je(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case E:case x:case C:case S:case D:case A:case _:case O:case k:return function(e,t){var n=t?je(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){return H(t?n(V(e),!0):V(e),z,new e.constructor)}(e,r,n);case f:case v:return new o(e);case h:return function(e){var t=new e.constructor(e.source,B.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return function(e,t,n){return H(t?n(G(e),!0):G(e),U,new e.constructor)}(e,r,n);case y:return function(e){return Se?Object(Se.call(e)):{}}(e)}}(e,j,Fe,t)}}m||(m=new Oe);var N=m.get(e);if(N)return N;if(m.set(e,T),!F)var R=n?function(e){return function(e,t,n){var r=t(e);return Ve(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ye,Le)}(e):Ye(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(R||e,(function(o,i){R&&(o=e[i=o]),Be(T,i,Fe(o,t,n,r,i,e,m))})),T}function Pe(e){return!(!Ke(e)||function(e){return!!X&&X in e}(e))&&(qe(e)||$(e)?te:T).test(He(e))}function je(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Ie(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;Be(n,a,void 0===u?e[a]:u)}return n}function Ne(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Re(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Pe(n)?n:void 0}De.prototype.clear=function(){this.__data__=ye?ye(null):{}},De.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},De.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},De.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},De.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.prototype.delete=function(e){var t=this.__data__,n=Te(t,e);return!(n<0)&&(n==t.length-1?t.pop():se.call(t,n,1),!0)},Ae.prototype.get=function(e){var t=this.__data__,n=Te(t,e);return n<0?void 0:t[n][1]},Ae.prototype.has=function(e){return Te(this.__data__,e)>-1},Ae.prototype.set=function(e,t){var n=this.__data__,r=Te(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},_e.prototype.clear=function(){this.__data__={hash:new De,map:new(pe||Ae),string:new De}},_e.prototype.delete=function(e){return Ne(this,e).delete(e)},_e.prototype.get=function(e){return Ne(this,e).get(e)},_e.prototype.has=function(e){return Ne(this,e).has(e)},_e.prototype.set=function(e,t){return Ne(this,e).set(e,t),this},Oe.prototype.clear=function(){this.__data__=new Ae},Oe.prototype.delete=function(e){return this.__data__.delete(e)},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ae){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new _e(r)}return n.set(e,t),this};var Le=le?W(le,Object):function(){return[]},Me=function(e){return ee.call(e)};function ze(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||F.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function He(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $e(e,t){return e===t||e!=e&&t!=t}(de&&Me(new de(new ArrayBuffer(1)))!=w||pe&&Me(new pe)!=c||he&&Me(he.resolve())!=p||ge&&Me(new ge)!=g||ve&&Me(new ve)!=m)&&(Me=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?He(n):void 0;if(r)switch(r){case me:return w;case be:return c;case we:return p;case Ee:return g;case xe:return m}return t});var Ve=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!qe(e)}var Ge=ce||function(){return!1};function qe(e){var t=Ke(e)?ee.call(e):"";return t==s||t==l}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return We(e)?ke(e):function(e){if(!Ue(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Fe(e,!0,!0)}}));function ty(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ny=0;function ry(e){return"__private_"+ny+++"_"+e}function oy(e,t,n){const r=[];return e.forEach(e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})),r}
/**
 * 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=(Jv=ry("apply"),class{constructor(e){Object.defineProperty(this,Jv,{value:uy}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(ty(this,Jv)[Jv],this):ty(this,Jv)[Jv](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 gy(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}gy.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 vy=/[\/\+\.]/,yy=function(e,t){function n(t){var n=function(e,t,n){var r=new gy(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,vy);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:xy}),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 xy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(e=>{e(...t)})}Ey.VERSION="2.0.3";var Cy=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Sy={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Dy(e){let t="";return e.replace(/[^A-Z0-9]/gi,e=>(t+="-"+function(e){return e.charCodeAt(0).toString(32)}(e),"/"))+t}var Ay=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};function _y(e){return e<10?"0"+e:e.toString()}var Oy=function(){const e=new Date;return`${_y(e.getHours())}:${_y(e.getMinutes())}:${_y(e.getSeconds())}`},ky={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Oy()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Oy()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${Oy()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Oy()}]`,...t)}}},By={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},Ty=py;let Fy,Py;function jy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Iy=0;function Ny(e){return"__private_"+Iy+++"_"+e}const{nanoid:Ry}=Ty,{justErrorsLogger:Ly,debugLogger:My}=ky;class zy extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class Uy extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Hy=Ny("plugins"),$y=Ny("storeUnsubscribe"),Vy=Ny("emitter"),Wy=Ny("preProcessors"),Gy=Ny("uploaders"),qy=Ny("postProcessors"),Ky=Ny("checkRestrictions"),Yy=Ny("checkMinNumberOfFiles"),Zy=Ny("checkRequiredMetaFieldsOnFile"),Xy=Ny("checkRequiredMetaFields"),Jy=Ny("showOrLogErrorAndThrow"),Qy=Ny("assertNewUploadAllowed"),em=Ny("checkAndCreateFileStateObject"),tm=Ny("startIfAutoProceed"),nm=Ny("addListeners"),rm=Ny("updateOnlineStatus"),om=Ny("createUpload"),im=Ny("getUpload"),am=Ny("removeUpload"),um=Ny("runUpload");Fy=Symbol.for("uppy test: getPlugins"),Py=Symbol.for("uppy test: createUpload");class sm{constructor(e){Object.defineProperty(this,um,{value:Em}),Object.defineProperty(this,am,{value:wm}),Object.defineProperty(this,im,{value:bm}),Object.defineProperty(this,om,{value:mm}),Object.defineProperty(this,nm,{value:ym}),Object.defineProperty(this,tm,{value:vm}),Object.defineProperty(this,em,{value:gm}),Object.defineProperty(this,Qy,{value:hm}),Object.defineProperty(this,Jy,{value:pm}),Object.defineProperty(this,Xy,{value:dm}),Object.defineProperty(this,Zy,{value:fm}),Object.defineProperty(this,Yy,{value:cm}),Object.defineProperty(this,Ky,{value:lm}),Object.defineProperty(this,Hy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,$y,{writable:!0,value:void 0}),Object.defineProperty(this,Vy,{writable:!0,value:sy()}),Object.defineProperty(this,Wy,{writable:!0,value:new Set}),Object.defineProperty(this,Gy,{writable:!0,value:new Set}),Object.defineProperty(this,qy,{writable:!0,value:new Set}),Object.defineProperty(this,rm,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=By;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new Ey,logger:Ly,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=My),this.log("Using Core v"+this.constructor.VERSION),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=ng(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Ay(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),jy(this,$y)[$y]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),jy(this,nm)[nm]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];jy(this,Vy)[Vy].emit(e,...n)}on(e,t){return jy(this,Vy)[Vy].on(e,t),this}once(e,t){return jy(this,Vy)[Vy].once(e,t),this}off(e,t){return jy(this,Vy)[Vy].off(e,t),this}updateAll(e){this.iteratePlugins(t=>{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new ay([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach(r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){jy(this,Wy)[Wy].add(e)}removePreProcessor(e){return jy(this,Wy)[Wy].delete(e)}addPostProcessor(e){jy(this,qy)[qy].add(e)}removePostProcessor(e){return jy(this,qy)[qy].delete(e)}addUploader(e){jy(this,Gy)[Gy].add(e)}removeUploader(e){return jy(this,Gy)[Gy].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),i=r.filter(e=>!e.progress.uploadStarted),a=r.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),u=r.filter(e=>e.progress.uploadStarted),s=r.filter(e=>e.isPaused),l=r.filter(e=>e.progress.uploadComplete),c=r.filter(e=>e.error),f=o.filter(e=>!e.isPaused),d=r.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some(e=>e.isGhost)}}validateRestrictions(e,t){try{return jy(this,Ky)[Ky](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){jy(this,Qy)[Qy](e);const{files:t}=this.getState();let n=jy(this,em)[em](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),jy(this,tm)[tm](),n.id}addFiles(e){jy(this,Qy)[Qy]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=jy(this,em)[em](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach(e=>{this.emit("file-added",e)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)}),n.length>0&&jy(this,tm)[tm](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach(t=>{e+="\n * "+t.message}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach(e=>{n[e]&&(a[e]=n[e],delete o[e])}),Object.keys(i).forEach(e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]});const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach(e=>{this.emit("file-removed",a[e],t)}),l.length>5?this.log(`Removed ${l.length} files`):this.log("Removed files: "+l.join(", "))}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n={...e[t],isPaused:!0};e[t]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter(t=>e[t].error);if(t.forEach(t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=jy(this,om)[om](t,{forceAllowNewUpload:!0});return jy(this,um)[um](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=jy(this,om)[om]([e],{forceAllowNewUpload:!0});return jy(this,um)[um](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter(e=>null!=e.progress.bytesTotal),n=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){const t=100*e.length,r=n.reduce((e,t)=>e+t.progress.percentage,0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce((e,t)=>e+t.progress.bytesTotal,0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach(e=>{i+=e.progress.bytesUploaded}),n.forEach(e=>{i+=o*(e.progress.percentage||0)/100});let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in jy(this,Hy)[Hy]?jy(this,Hy)[Hy][n.type].push(n):jy(this,Hy)[Hy][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(jy(this,Hy)[Hy])){const n=t.find(t=>t.id===e);if(null!=n)return n}}[Fy](e){return jy(this,Hy)[Hy][e]}iteratePlugins(e){Object.values(jy(this,Hy)[Hy]).flat(1).forEach(e)}removePlugin(e){this.log("Removing plugin "+e.id),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=jy(this,Hy)[Hy][e.type],n=t.findIndex(t=>t.id===e.id);-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),jy(this,$y)[$y](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",jy(this,rm)[rm]),window.removeEventListener("offline",jy(this,rm)[rm]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?jy(this,um)[um](e):(jy(this,am)[am](e),Promise.reject(new Error("Nonexistent upload")))}[Py](){return jy(this,om)[om](...arguments)}addResultData(e,t){if(!jy(this,im)[im](e))return void this.log("Not setting result for an upload that has been removed: "+e);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=jy(this,Hy)[Hy].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then(()=>{jy(this,Yy)[Yy](t),jy(this,Xy)[Xy](t)}).catch(e=>{jy(this,Jy)[Jy](e)}).then(()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(t).forEach(e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});const o=jy(this,om)[om](r);return jy(this,um)[um](o)}).catch(e=>{jy(this,Jy)[Jy](e,{showInformer:!1})}))}}function lm(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new zy(""+this.i18n("youCanOnlyUploadX",{smart_count:i}));if(a&&!a.some(t=>t.indexOf("/")>-1?!!e.type&&yy(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase())){const e=a.join(", ");throw new zy(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach(e=>{n+=e.size}),n>o)throw new zy(this.i18n("exceedsSize",{size:hy(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new zy(this.i18n("exceedsSize",{size:hy(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new zy(this.i18n("inferiorSize",{size:hy(r)}))}function cm(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new zy(""+this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}function fm(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new zy(""+this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name}));r.push(n),o.push(t[i]),jy(this,Jy)[Jy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function dm(e){const t=Object.keys(e).flatMap(e=>{const t=this.getFile(e);return jy(this,Zy)[Zy](t)});if(t.length)throw new Uy(t,""+this.i18n("missingRequiredMetaField"))}function pm(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=" "+a),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function hm(e){const{allowNewUpload:t}=this.getState();!1===t&&jy(this,Jy)[Jy](new zy(this.i18n("noMoreFilesAllowed")),{file:e})}function gm(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Cy(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Sy?Sy[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=Cy(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+="-"+Dy(e.name.toLowerCase())),void 0!==e.type&&(t+="-"+e.type),e.meta&&"string"==typeof e.meta.relativePath&&(t+="-"+Dy(e.meta.relativePath.toLowerCase())),void 0!==e.data.size&&(t+="-"+e.data.size),void 0!==e.data.lastModified&&(t+="-"+e.data.lastModified),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new zy(this.i18n("noDuplicates",{fileName:r}));jy(this,Jy)[Jy](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);!1===c?jy(this,Jy)[Jy](new zy("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(l=c);try{const t=Object.keys(e).map(t=>e[t]);jy(this,Ky)[Ky](l,t)}catch(e){jy(this,Jy)[Jy](e,{file:l})}return l}function vm(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function ym(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=" "+e.details),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=" "+n.details),e.message=this.i18n("failedToUpload",{file:t.name}),jy(this,Jy)[Jy](e,{throwErr:!1})}else jy(this,Jy)[Jy](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:jy(this,qy)[qy].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&jy(this,Zy)[Zy](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",jy(this,rm)[rm]),window.addEventListener("offline",jy(this,rm)[rm]),setTimeout(jy(this,rm)[rm],3e3))}function mm(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=Ry();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function bm(e){const{currentUploads:t}=this.getState();return t[e]}function wm(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Em(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...jy(this,Wy)[Wy],...jy(this,Gy)[Gy],...jy(this,qy)[qy]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit("error",t),jy(this,am)[am](e),t}if(n){n.fileIDs.forEach(e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});const r=n.fileIDs.map(e=>this.getFile(e)),o=r.filter(e=>!e.error),i=r.filter(e=>e.error);await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),jy(this,am)[am](e)),null==i&&this.log("Not setting result for an upload that has been removed: "+e),i}sm.VERSION="2.1.3";var xm=sm,Cm=i((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return v(e,u,o,i,null)}function v(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function E(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!x.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(x)}function x(){for(var e;x.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,B(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),T(n,o),o.__e!=i&&w(o)))}))}function C(e,t,n,r,o,i,a,u,s,l){var d,p,h,g,m,w,E,x=r&&r.__k||f,C=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(y,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=x[d])||h&&g.key==h.key&&g.type===h.type)x[d]=void 0;else for(p=0;p<C;p++){if((h=x[p])&&g.key==h.key&&g.type===h.type){x[p]=void 0;break}h=null}B(e,g,h=h||c,o,i,a,u,s,l),m=g.__e,(p=g.ref)&&h.ref!=p&&(E||(E=[]),h.ref&&E.push(h.ref,null,g),E.push(p,g.__c||m,g)),null!=m?(null==w&&(w=m),"function"==typeof g.type&&g.__k===h.__k?g.__d=s=S(g,s,e):s=D(e,g,h,x,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=C;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=b(r,d+1)),j(x[d],x[d]));if(E)for(d=0;d<E.length;d++)P(E[d],E[++d],E[++d])}function S(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?S(r,t,n):D(n,r,r,o,r.__e,t));return t}function D(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function _(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?k:O,i):e.removeEventListener(t,i?k:O,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function O(e){this.l[e.type+!1](r.event?r.event(e):e)}function k(e){this.l[e.type+!0](r.event?r.event(e):e)}function B(e,t,n,o,i,a,u,s,l){var c,f,d,h,g,v,b,w,E,x,S,D=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=r.__b)&&c(t);try{e:if("function"==typeof D){if(w=t.props,E=(c=D.contextType)&&o[c.__c],x=c?E?E.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in D&&D.prototype.render?t.__c=f=new D(w,x):(t.__c=f=new m(w,x),f.constructor=D,f.render=I),E&&E.sub(f),f.props=w,f.state||(f.state={}),f.context=x,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=D.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,D.getDerivedStateFromProps(w,f.__s))),h=f.props,g=f.state,d)null==D.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==D.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,x)||t.__v===n.__v){f.props=w,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,g,v)}))}f.context=x,f.props=w,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,g)),S=null!=c&&c.type===y&&null==c.key?c.props.children:c,C(e,Array.isArray(S)?S:[S],t,n,o,i,a,u,s,l),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=F(n.__e,t,n,o,i,a,u,l);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function T(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function F(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,g=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,s=!1}if(null===v)p===g||s&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||_(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||_(e,i,t[i],n[i],r)}(e,g,p,i,s),d)t.__k=[];else if(y=t.props.children,C(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==v,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in g&&void 0!==(y=g.value)&&(y!==p.value||y!==e.value||"progress"===v&&!y)&&_(e,"value",y,p.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&_(e,"checked",y,p.checked,!1))}return e}function P(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||P(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&j(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function I(e,t,n){return this.constructor(e,n)}function N(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],B(t,e=(!i&&o||t).__k=g(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),T(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),E(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),v(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(E)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){N(t,n,e)},t.isValidElement=i,t.options=r,t.render=N,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Sm=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},Dm=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new ay([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function Am(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var _m=0;function Om(e){return"__private_"+_m+++"_"+e}const{render:km}=Cm;var Bm=Om("updateUI");class Tm extends Dm{constructor(){super(...arguments),Object.defineProperty(this,Bm,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=Sm(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return Am(this,Bm)[Bm]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then(()=>(t=null,e(...n)))),t}}(e=>{this.uppy.getPlugin(this.id)&&(km(this.render(e),t),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),km(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof Tm)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins(e=>{if(e instanceof t)return o=e,!1})}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log("Not installing "+n);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=Am(this,Bm))[Bm])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Fm=Tm;const{debugLogger:Pm}=ky;var jm=xm,Im=xm,Nm=Fm,Rm=Dm,Lm=Pm;jm.Uppy=Im,jm.UIPlugin=Nm,jm.BasePlugin=Rm,jm.debugLogger=Lm;class Mm extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var zm=Mm,Um=function(){return fetch(...arguments).catch(e=>{throw"AbortError"===e.name?e:new zm(e)})};class Hm extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var $m,Vm,Wm,Gm,qm,Km=Hm;function Ym(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Zm=0;function Xm(e){return"__private_"+Zm+++"_"+e}async function Jm(e){if(401===e.status)throw new Km;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var Qm=(Vm=Xm("getPostResponseFunc"),Wm=Xm("getUrl"),Gm=Xm("errorHandler"),qm=$m=class e{constructor(e,t){Object.defineProperty(this,Gm,{value:tb}),Object.defineProperty(this,Wm,{value:eb}),Object.defineProperty(this,Vm,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Ym(this,Wm)[Wm](e),{method:"OPTIONS"}).then(e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map(e=>e.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(e=>(this.uppy.log("[CompanionClient] unable to make preflight request "+e,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(e=>{let[t,n]=e;return Object.keys(n).forEach(e=>{t.includes(e.toLowerCase())||(this.uppy.log("[CompanionClient] excluding disallowed header "+e),delete n[e])}),n})}get(e,t){return this.preflightAndHeaders(e).then(t=>Um(Ym(this,Wm)[Wm](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"})).then(Ym(this,Vm)[Vm](t)).then(Jm).catch(Ym(this,Gm)[Gm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then(n=>Um(Ym(this,Wm)[Wm](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)})).then(Ym(this,Vm)[Vm](n)).then(Jm).catch(Ym(this,Gm)[Gm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then(n=>Um(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null})).then(Ym(this,Vm)[Vm](n)).then(Jm).catch(Ym(this,Gm)[Gm](r,e))}},$m.VERSION="2.0.4",$m.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client="+$m.VERSION},qm);function eb(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function tb(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${Ym(this,Wm)[Wm](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var nb,rb,ob,ib,ab,ub={setItem:(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise(t=>{localStorage.removeItem(e),t()})};let sb,lb;function cb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var fb=0;function db(e){return"__private_"+fb+++"_"+e}var pb,hb,gb=(nb=db("queued"),rb=db("emitter"),ob=db("isOpen"),ib=db("socket"),ab=db("handleMessage"),sb=Symbol.for("uppy test: getSocket"),lb=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,nb,{writable:!0,value:[]}),Object.defineProperty(this,rb,{writable:!0,value:sy()}),Object.defineProperty(this,ob,{writable:!0,value:!1}),Object.defineProperty(this,ib,{writable:!0,value:void 0}),Object.defineProperty(this,ab,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return cb(this,ob)[ob]}[sb](){return cb(this,ib)[ib]}[lb](){return cb(this,nb)[nb]}open(){cb(this,ib)[ib]=new WebSocket(this.opts.target),cb(this,ib)[ib].onopen=()=>{for(cb(this,ob)[ob]=!0;cb(this,nb)[nb].length>0&&cb(this,ob)[ob];){const e=cb(this,nb)[nb].shift();this.send(e.action,e.payload)}},cb(this,ib)[ib].onclose=()=>{cb(this,ob)[ob]=!1},cb(this,ib)[ib].onmessage=cb(this,ab)[ab]}close(){var e;null==(e=cb(this,ib)[ib])||e.close()}send(e,t){cb(this,ob)[ob]?cb(this,ib)[ib].send(JSON.stringify({action:e,payload:t})):cb(this,nb)[nb].push({action:e,payload:t})}on(e,t){cb(this,rb)[rb].on(e,t)}emit(e,t){cb(this,rb)[rb].emit(e,t)}once(e,t){cb(this,rb)[rb].once(e,t)}}),vb={RequestClient:Qm,Provider:class extends Qm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(this.id+"/preauth/",{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log("[CompanionClient] unable to fetch preAuthToken "+e,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(this.id+"/logout").then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(e.id+': the option "companionAllowedHosts" must be one of string, Array, RegExp');e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://"+t.companionUrl.replace(/^\/\//,""):e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||ub}},SearchProvider:class extends Qm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?"&"+t:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:gb},yb=ng((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log("Upload progress: "+r),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function mb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bb=0;function wb(e){return"__private_"+bb+++"_"+e}var Eb=(pb=wb("emitter"),hb=wb("events"),class{constructor(e){Object.defineProperty(this,pb,{writable:!0,value:void 0}),Object.defineProperty(this,hb,{writable:!0,value:[]}),mb(this,pb)[pb]=e}on(e,t){return mb(this,hb)[hb].push([e,t]),mb(this,pb)[pb].on(e,t)}remove(){for(const[e,t]of mb(this,hb)[hb].splice(0))mb(this,pb)[pb].off(e,t)}});function xb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Cb=0;function Sb(e){return"__private_"+Cb+++"_"+e}var Db=Sb("aliveTimer"),Ab=Sb("isDone"),_b=Sb("onTimedOut"),Ob=Sb("timeout"),kb=class{constructor(e,t){Object.defineProperty(this,Db,{writable:!0,value:void 0}),Object.defineProperty(this,Ab,{writable:!0,value:!1}),Object.defineProperty(this,_b,{writable:!0,value:void 0}),Object.defineProperty(this,Ob,{writable:!0,value:void 0}),xb(this,Ob)[Ob]=e,xb(this,_b)[_b]=t}progress(){xb(this,Ab)[Ab]||xb(this,Ob)[Ob]>0&&(clearTimeout(xb(this,Db)[Db]),xb(this,Db)[Db]=setTimeout(xb(this,_b)[_b],xb(this,Ob)[Ob]))}done(){xb(this,Ab)[Ab]||(clearTimeout(xb(this,Db)[Db]),xb(this,Db)[Db]=null,xb(this,Ab)[Ab]=!0)}};function Bb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Tb=0;function Fb(e){return"__private_"+Tb+++"_"+e}function Pb(){return new Error("Cancelled")}var jb=Fb("activeRequests"),Ib=Fb("queuedHandlers"),Nb=Fb("call"),Rb=Fb("queueNext"),Lb=Fb("next"),Mb=Fb("queue"),zb=Fb("dequeue");function Ub(e){Bb(this,jb)[jb]+=1;let t,n=!1;try{t=e()}catch(e){throw Bb(this,jb)[jb]-=1,e}return{abort:()=>{n||(n=!0,Bb(this,jb)[jb]-=1,t(),Bb(this,Rb)[Rb]())},done:()=>{n||(n=!0,Bb(this,jb)[jb]-=1,Bb(this,Rb)[Rb]())}}}function Hb(){queueMicrotask(()=>Bb(this,Lb)[Lb]())}function $b(){if(Bb(this,jb)[jb]>=this.limit)return;if(0===Bb(this,Ib)[Ib].length)return;const e=Bb(this,Ib)[Ib].shift(),t=Bb(this,Nb)[Nb](e.fn);e.abort=t.abort,e.done=t.done}function Vb(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Bb(this,zb)[zb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Bb(this,Ib)[Ib].findIndex(e=>n.priority>e.priority);return-1===r?Bb(this,Ib)[Ib].push(n):Bb(this,Ib)[Ib].splice(r,0,n),n}function Wb(e){const t=Bb(this,Ib)[Ib].indexOf(e);-1!==t&&Bb(this,Ib)[Ib].splice(t,1)}var Gb,qb,Kb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,zb,{value:Wb}),Object.defineProperty(this,Mb,{value:Vb}),Object.defineProperty(this,Lb,{value:$b}),Object.defineProperty(this,Rb,{value:Hb}),Object.defineProperty(this,Nb,{value:Ub}),Object.defineProperty(this,jb,{writable:!0,value:0}),Object.defineProperty(this,Ib,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return Bb(this,jb)[jb]<this.limit?Bb(this,Nb)[Nb](e):Bb(this,Mb)[Mb](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise((r,i)=>{a=n.run(()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then(e=>{t?i(t):(a.done(),r(e))},e=>{t?i(t):(a.done(),i(e))}),()=>{t=Pb()}},t)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},Yb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Zb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Xb}=Ty,{Provider:Jb,RequestClient:Qb,Socket:ew}=vb,{RateLimitedQueue:tw,internalRateLimitedQueue:nw}=Kb;function rw(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Yb(e)?(n=new zm(n,e),n):(n.request=e,n)}function ow(e){return e.data.slice(0,e.data.size,e.meta.type)}var iw=(qb=Gb=class extends Dm{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Zb;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return Yb(t)&&(n=new zm(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),nw in this.opts?this.requests=this.opts[nw]:this.requests=new tw(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(n=>{e.append(n,t[n])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=ow(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach(e=>{const t=this.getOptions(e),r=ow(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)}),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new Eb(this.uppy);const a=new kb(r.timeout,()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)}),u=Xb();i.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${u} started`)}),i.upload.addEventListener("progress",t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})}),i.addEventListener("load",o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const l=r.getResponseData(i.responseText,i),c=rw(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)}),i.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=rw(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)}),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run(()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach(e=>{i.setRequestHeader(e,t.headers[e])}),i.send(o),()=>{a.done(),i.abort()}});this.onFileRemove(e.id,()=>{s.abort(),n(new Error("File removed"))}),this.onCancelAll(e.id,()=>{s.abort(),n(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(t=>{o[t]=e.meta[t]}),new(e.remote.providerOptions.provider?Jb:Qb)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then(o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new ew({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Eb(this.uppy),this.onFileRemove(e.id,()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),this.onRetryAll(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),u.on("progress",t=>yb(this,t,e)),u.on("success",r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()}),u.on("error",n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)});const s=this.requests.run(()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close()))}).catch(t=>{this.uppy.emit("upload-error",e,t),r(t)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new kb(this.opts.timeout,()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)}),l=t=>{e.forEach(e=>{this.uppy.emit("upload-error",e,t)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",t=>{s.progress(),t.lengthComputable&&e.forEach(e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})})}),u.addEventListener("load",r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach(e=>{this.uppy.emit("upload-success",e,o)}),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,l(o),n(o)}),u.addEventListener("error",()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(e=>{u.setRequestHeader(e,this.opts.headers[e])}),u.send(a),e.forEach(e=>{this.uppy.emit("upload-started",e)})})}uploadFiles(e){const t=e.map((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)});return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map(e=>e.then(r,o))).then(()=>({successful:t,failed:n}))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",n=>{e===n.id&&t(n.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",n=>{e===n&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[nw]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map(e=>this.uppy.getFile(e));if(this.opts.bundle){if(t.some(e=>e.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Gb.VERSION="2.0.6",qb),aw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function uw(e){var t={exports:{}};return e(t,t.exports),t.exports}var sw,lw,cw=function(e){return e&&e.Math==Math&&e},fw=cw("object"==typeof globalThis&&globalThis)||cw("object"==typeof window&&window)||cw("object"==typeof self&&self)||cw("object"==typeof aw&&aw)||function(){return this}()||Function("return this")(),dw=Object.defineProperty,pw=function(e,t){try{dw(fw,e,{value:t,configurable:!0,writable:!0})}catch(i){fw[e]=t}return t},hw=fw["__core-js_shared__"]||pw("__core-js_shared__",{}),gw=uw((function(e){(e.exports=function(e,t){return hw[e]||(hw[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),vw=Function.prototype,yw=vw.bind,mw=vw.call,bw=yw&&yw.bind(mw),ww=yw?function(e){return e&&bw(mw,e)}:function(e){return e&&function(){return mw.apply(e,arguments)}},Ew=fw.TypeError,xw=function(e){if(null==e)throw Ew("Can't call method on "+e);return e},Cw=fw.Object,Sw=function(e){return Cw(xw(e))},Dw=ww({}.hasOwnProperty),Aw=Object.hasOwn||function(e,t){return Dw(Sw(e),t)},_w=0,Ow=Math.random(),kw=ww(1..toString),Bw=function(e){return"Symbol("+(void 0===e?"":e)+")_"+kw(++_w+Ow,36)},Tw=function(e){return"function"==typeof e},Fw=function(e){return Tw(e)?e:void 0},Pw=function(e,t){return arguments.length<2?Fw(fw[e]):fw[e]&&fw[e][t]},jw=Pw("navigator","userAgent")||"",Iw=fw.process,Nw=fw.Deno,Rw=Iw&&Iw.versions||Nw&&Nw.version,Lw=Rw&&Rw.v8;Lw&&(lw=(sw=Lw.split("."))[0]>0&&sw[0]<4?1:+(sw[0]+sw[1])),!lw&&jw&&(!(sw=jw.match(/Edge\/(\d+)/))||sw[1]>=74)&&(sw=jw.match(/Chrome\/(\d+)/))&&(lw=+sw[1]);var Mw=lw,zw=function(e){try{return!!e()}catch(e){return!0}},Uw=!!Object.getOwnPropertySymbols&&!zw((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Mw&&Mw<41})),Hw=Uw&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$w=gw("wks"),Vw=fw.Symbol,Ww=Vw&&Vw.for,Gw=Hw?Vw:Vw&&Vw.withoutSetter||Bw,qw=function(e){if(!Aw($w,e)||!Uw&&"string"!=typeof $w[e]){var t="Symbol."+e;Uw&&Aw(Vw,e)?$w[e]=Vw[e]:$w[e]=Hw&&Ww?Ww(t):Gw(t)}return $w[e]},Kw={};Kw[qw("toStringTag")]="z";var Yw="[object z]"===String(Kw),Zw=!zw((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Xw=function(e){return"object"==typeof e?null!==e:Tw(e)},Jw=fw.document,Qw=Xw(Jw)&&Xw(Jw.createElement),eE=function(e){return Qw?Jw.createElement(e):{}},tE=!Zw&&!zw((function(){return 7!=Object.defineProperty(eE("div"),"a",{get:function(){return 7}}).a})),nE=fw.String,rE=fw.TypeError,oE=function(e){if(Xw(e))return e;throw rE(nE(e)+" is not an object")},iE=Function.prototype.call,aE=iE.bind?iE.bind(iE):function(){return iE.apply(iE,arguments)},uE=ww({}.isPrototypeOf),sE=fw.Object,lE=Hw?function(e){return"symbol"==typeof e}:function(e){var t=Pw("Symbol");return Tw(t)&&uE(t.prototype,sE(e))},cE=fw.String,fE=function(e){try{return cE(e)}catch(e){return"Object"}},dE=fw.TypeError,pE=function(e){if(Tw(e))return e;throw dE(fE(e)+" is not a function")},hE=function(e,t){var n=e[t];return null==n?void 0:pE(n)},gE=fw.TypeError,vE=fw.TypeError,yE=qw("toPrimitive"),mE=function(e){var t=function(e,t){if(!Xw(e)||lE(e))return e;var n,r=hE(e,yE);if(r){if(void 0===t&&(t="default"),n=aE(r,e,t),!Xw(n)||lE(n))return n;throw vE("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Tw(n=e.toString)&&!Xw(r=aE(n,e)))return r;if(Tw(n=e.valueOf)&&!Xw(r=aE(n,e)))return r;if("string"!==t&&Tw(n=e.toString)&&!Xw(r=aE(n,e)))return r;throw gE("Can't convert object to primitive value")}(e,t)}(e,"string");return lE(t)?t:t+""},bE=fw.TypeError,wE=Object.defineProperty,EE={f:Zw?wE:function(e,t,n){if(oE(e),t=mE(t),oE(n),tE)try{return wE(e,t,n)}catch(e){}if("get"in n||"set"in n)throw bE("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},xE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},CE=Zw?function(e,t,n){return EE.f(e,t,xE(1,n))}:function(e,t,n){return e[t]=n,e},SE=ww(Function.toString);Tw(hw.inspectSource)||(hw.inspectSource=function(e){return SE(e)});var DE,AE,_E,OE=hw.inspectSource,kE=fw.WeakMap,BE=Tw(kE)&&/native code/.test(OE(kE)),TE=gw("keys"),FE=function(e){return TE[e]||(TE[e]=Bw(e))},PE={},jE=fw.TypeError,IE=fw.WeakMap;if(BE||hw.state){var NE=hw.state||(hw.state=new IE),RE=ww(NE.get),LE=ww(NE.has),ME=ww(NE.set);DE=function(e,t){if(LE(NE,e))throw new jE("Object already initialized");return t.facade=e,ME(NE,e,t),t},AE=function(e){return RE(NE,e)||{}},_E=function(e){return LE(NE,e)}}else{var zE=FE("state");PE[zE]=!0,DE=function(e,t){if(Aw(e,zE))throw new jE("Object already initialized");return t.facade=e,CE(e,zE,t),t},AE=function(e){return Aw(e,zE)?e[zE]:{}},_E=function(e){return Aw(e,zE)}}var UE={set:DE,get:AE,has:_E,enforce:function(e){return _E(e)?AE(e):DE(e,{})},getterFor:function(e){return function(t){var n;if(!Xw(t)||(n=AE(t)).type!==e)throw jE("Incompatible receiver, "+e+" required");return n}}},HE=Function.prototype,$E=Zw&&Object.getOwnPropertyDescriptor,VE=Aw(HE,"name"),WE={EXISTS:VE,PROPER:VE&&"something"===function(){}.name,CONFIGURABLE:VE&&(!Zw||Zw&&$E(HE,"name").configurable)},GE=uw((function(e){var t=WE.CONFIGURABLE,n=UE.get,r=UE.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Tw(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Aw(i,"name")||t&&i.name!==f)&&CE(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==fw?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:CE(e,n,i)):l?e[n]=i:pw(n,i)})(Function.prototype,"toString",(function(){return Tw(this)&&n(this).source||OE(this)}))})),qE=ww({}.toString),KE=ww("".slice),YE=function(e){return KE(qE(e),8,-1)},ZE=qw("toStringTag"),XE=fw.Object,JE="Arguments"==YE(function(){return arguments}()),QE=Yw?YE:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=XE(e),ZE))?n:JE?YE(t):"Object"==(r=YE(t))&&Tw(t.callee)?"Arguments":r},ex=Yw?{}.toString:function(){return"[object "+QE(this)+"]"};Yw||GE(Object.prototype,"toString",ex,{unsafe:!0});var tx={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},nx=eE("span").classList,rx=nx&&nx.constructor&&nx.constructor.prototype,ox=rx===Object.prototype?void 0:rx,ix=ww(ww.bind),ax=function(e,t){return pE(e),void 0===t?e:ix?ix(e,t):function(){return e.apply(t,arguments)}},ux=fw.Object,sx=ww("".split),lx=zw((function(){return!ux("z").propertyIsEnumerable(0)}))?function(e){return"String"==YE(e)?sx(e,""):ux(e)}:ux,cx=Math.ceil,fx=Math.floor,dx=function(e){var t=+e;return t!=t||0===t?0:(t>0?fx:cx)(t)},px=Math.min,hx=function(e){return e>0?px(dx(e),9007199254740991):0},gx=function(e){return hx(e.length)},vx=Array.isArray||function(e){return"Array"==YE(e)},yx=function(){},mx=[],bx=Pw("Reflect","construct"),wx=/^\s*(?:class|function)\b/,Ex=ww(wx.exec),xx=!wx.exec(yx),Cx=function(e){if(!Tw(e))return!1;try{return bx(yx,mx,e),!0}catch(e){return!1}},Sx=!bx||zw((function(){var e;return Cx(Cx.call)||!Cx(Object)||!Cx((function(){e=!0}))||e}))?function(e){if(!Tw(e))return!1;switch(QE(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xx||!!Ex(wx,OE(e))}:Cx,Dx=qw("species"),Ax=fw.Array,_x=function(e,t){return new(function(e){var t;return vx(e)&&(t=e.constructor,(Sx(t)&&(t===Ax||vx(t.prototype))||Xw(t)&&null===(t=t[Dx]))&&(t=void 0)),void 0===t?Ax:t}(e))(0===t?0:t)},Ox=ww([].push),kx=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=Sw(s),g=lx(h),v=ax(l,c),y=gx(g),m=0,b=f||_x,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Ox(w,d)}else switch(e){case 4:return!1;case 7:Ox(w,d)}return i?-1:r||o?o:w}},Bx={forEach:kx(0),map:kx(1),filter:kx(2),some:kx(3),every:kx(4),find:kx(5),findIndex:kx(6),filterReject:kx(7)},Tx=function(e,t){var n=[][e];return!!n&&zw((function(){n.call(null,t||function(){throw 1},1)}))},Fx=Bx.forEach,Px=Tx("forEach")?[].forEach:function(e){return Fx(this,e,arguments.length>1?arguments[1]:void 0)},jx=function(e){if(e&&e.forEach!==Px)try{CE(e,"forEach",Px)}catch(o){e.forEach=Px}};for(var Ix in tx)tx[Ix]&&jx(fw[Ix]&&fw[Ix].prototype);jx(ox);var Nx={}.propertyIsEnumerable,Rx=Object.getOwnPropertyDescriptor,Lx=Rx&&!Nx.call({1:2},1)?function(e){var t=Rx(this,e);return!!t&&t.enumerable}:Nx,Mx={f:Lx},zx=function(e){return lx(xw(e))},Ux=Object.getOwnPropertyDescriptor,Hx={f:Zw?Ux:function(e,t){if(e=zx(e),t=mE(t),tE)try{return Ux(e,t)}catch(e){}if(Aw(e,t))return xE(!aE(Mx.f,e,t),e[t])}},$x=Math.max,Vx=Math.min,Wx=function(e,t){var n=dx(e);return n<0?$x(n+t,0):Vx(n,t)},Gx=function(e){return function(t,n,r){var o,i=zx(t),a=gx(i),u=Wx(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},qx={includes:Gx(!0),indexOf:Gx(!1)},Kx=qx.indexOf,Yx=ww([].push),Zx=function(e,t){var n,r=zx(e),o=0,i=[];for(n in r)!Aw(PE,n)&&Aw(r,n)&&Yx(i,n);for(;t.length>o;)Aw(r,n=t[o++])&&(~Kx(i,n)||Yx(i,n));return i},Xx=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jx=Xx.concat("length","prototype"),Qx={f:Object.getOwnPropertyNames||function(e){return Zx(e,Jx)}},eC={f:Object.getOwnPropertySymbols},tC=ww([].concat),nC=Pw("Reflect","ownKeys")||function(e){var t=Qx.f(oE(e)),n=eC.f;return n?tC(t,n(e)):t},rC=function(e,t){for(var n=nC(t),r=EE.f,o=Hx.f,i=0;i<n.length;i++){var a=n[i];Aw(e,a)||r(e,a,o(t,a))}},oC=/#|\.prototype\./,iC=function(e,t){var n=uC[aC(e)];return n==lC||n!=sC&&(Tw(t)?zw(t):!!t)},aC=iC.normalize=function(e){return String(e).replace(oC,".").toLowerCase()},uC=iC.data={},sC=iC.NATIVE="N",lC=iC.POLYFILL="P",cC=iC,fC=Hx.f,dC=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?fw:l?fw[u]||pw(u,{}):(fw[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=fC(n,r))&&a.value:n[r],!cC(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;rC(i,o)}(e.sham||o&&o.sham)&&CE(i,"sham",!0),GE(n,r,i,e)}},pC=Object.keys||function(e){return Zx(e,Xx)},hC=zw((function(){pC(1)}));
/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function gC(e){return"[object Object]"===Object.prototype.toString.call(e)}dC({target:"Object",stat:!0,forced:hC},{keys:function(e){return pC(Sw(e))}});var vC={isHistory(e){return!1!==gC(t=e)&&(void 0===(n=t.constructor)||!1!==gC(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}},yC=new WeakMap,mC=new WeakMap,bC={isHistoryEditor:e=>vC.isHistory(e.history)&&Ff.isEditor(e),isMerging:e=>mC.get(e),isSaving:e=>yC.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=bC.isMerging(e);mC.set(e,!1),t(),mC.set(e,n)},withoutSaving(e,t){var n=bC.isSaving(e);yC.set(e,!1),t(),yC.set(e,n)}},wC=fw.String,EC=function(e){if("Symbol"===QE(e))throw TypeError("Cannot convert a Symbol value to a string");return wC(e)},xC=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},CC=WE.PROPER,SC=RegExp.prototype,DC=SC.toString,AC=ww(xC),_C=zw((function(){return"/a/b"!=DC.call({source:"a",flags:"b"})})),OC=CC&&"toString"!=DC.name;(_C||OC)&&GE(RegExp.prototype,"toString",(function(){var e=oE(this),t=EC(e.source),n=e.flags;return"/"+t+"/"+EC(void 0===n&&uE(SC,e)&&!("flags"in SC)?AC(e):n)}),{unsafe:!0});var kC,BC=Zw?Object.defineProperties:function(e,t){oE(e);for(var n,r=zx(t),o=pC(t),i=o.length,a=0;i>a;)EE.f(e,n=o[a++],r[n]);return e},TC=Pw("document","documentElement"),FC=FE("IE_PROTO"),PC=function(){},jC=function(e){return"<script>"+e+"<\/script>"},IC=function(e){e.write(jC("")),e.close();var t=e.parentWindow.Object;return e=null,t},NC=function(){try{kC=new ActiveXObject("htmlfile")}catch(e){}var e,t;NC="undefined"!=typeof document?document.domain&&kC?IC(kC):((t=eE("iframe")).style.display="none",TC.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(jC("document.F=Object")),e.close(),e.F):IC(kC);for(var n=Xx.length;n--;)delete NC.prototype[Xx[n]];return NC()};PE[FC]=!0;var RC=Object.create||function(e,t){var n;return null!==e?(PC.prototype=oE(e),n=new PC,PC.prototype=null,n[FC]=e):n=NC(),void 0===t?n:BC(n,t)},LC=qw("unscopables"),MC=Array.prototype;null==MC[LC]&&EE.f(MC,LC,{configurable:!0,value:RC(null)});var zC=function(e){MC[LC][e]=!0},UC=qx.includes;dC({target:"Array",proto:!0},{includes:function(e){return UC(this,e,arguments.length>1?arguments[1]:void 0)}}),zC("includes");var HC=qw("match"),$C=function(e){var t;return Xw(e)&&(void 0!==(t=e[HC])?!!t:"RegExp"==YE(e))},VC=fw.TypeError,WC=function(e){if($C(e))throw VC("The method doesn't accept regular expressions");return e},GC=qw("match"),qC=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[GC]=!1,"/./"[e](t)}catch(e){}}return!1},KC=ww("".indexOf);dC({target:"String",proto:!0,forced:!qC("includes")},{includes:function(e){return!!~KC(EC(xw(this)),EC(WC(e)),arguments.length>1?arguments[1]:void 0)}});var YC=/"/g,ZC=ww("".replace);dC({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=EC(xw(this)),r="<a",(r+=' name="'+ZC(EC(t),YC,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var XC=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},JC=function(e,t,n,r){try{return r?t(oE(n)[0],n[1]):t(n)}catch(t){XC(e,"throw",t)}},QC={},eS=qw("iterator"),tS=Array.prototype,nS=function(e){return void 0!==e&&(QC.Array===e||tS[eS]===e)},rS=function(e,t,n){var r=mE(t);r in e?EE.f(e,r,xE(0,n)):e[r]=n},oS=qw("iterator"),iS=function(e){if(null!=e)return hE(e,oS)||hE(e,"@@iterator")||QC[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.from(dS,(function(){throw 2}))}catch(N_){}var pS=function(e,t){if(!t&&!cS)return!1;var n=!1;try{var r={};r[lS]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},hS=!pS((function(e){Array.from(e)}));dC({target:"Array",stat:!0,forced:hS},{from:function(e){var t=Sw(e),n=Sx(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=ax(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=iS(t),p=0;if(!d||this==sS&&nS(d))for(a=gx(t),u=n?new this(a):sS(a);a>p;p++)f=i?o(t[p],p):t[p],rS(u,p,f);else for(c=(l=uS(t,d)).next,u=n?new this:[];!(s=aE(c,l)).done;p++)f=i?JC(l,o,[s.value,p],!0):s.value,rS(u,p,f);return u.length=p,u}});var gS,vS,yS,mS=ww("".charAt),bS=ww("".charCodeAt),wS=ww("".slice),ES=function(e){return function(t,n){var r,o,i=EC(xw(t)),a=dx(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=bS(i,a))<55296||r>56319||a+1===u||(o=bS(i,a+1))<56320||o>57343?e?mS(i,a):r:e?wS(i,a,a+2):o-56320+(r-55296<<10)+65536}},xS={codeAt:ES(!1),charAt:ES(!0)},CS=!zw((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),SS=FE("IE_PROTO"),DS=fw.Object,AS=DS.prototype,_S=CS?DS.getPrototypeOf:function(e){var t=Sw(e);if(Aw(t,SS))return t[SS];var n=t.constructor;return Tw(n)&&t instanceof n?n.prototype:t instanceof DS?AS:null},OS=qw("iterator"),kS=!1;[].keys&&("next"in(yS=[].keys())?(vS=_S(_S(yS)))!==Object.prototype&&(gS=vS):kS=!0);var BS=null==gS||zw((function(){var e={};return gS[OS].call(e)!==e}));BS&&(gS={}),Tw(gS[OS])||GE(gS,OS,(function(){return this}));var TS={IteratorPrototype:gS,BUGGY_SAFARI_ITERATORS:kS},FS=EE.f,PS=qw("toStringTag"),jS=function(e,t,n){e&&!Aw(e=n?e:e.prototype,PS)&&FS(e,PS,{configurable:!0,value:t})},IS=TS.IteratorPrototype,NS=function(){return this},RS=fw.String,LS=fw.TypeError,MS=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=ww(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return oE(n),function(e){if("object"==typeof e||Tw(e))return e;throw LS("Can't set "+RS(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),zS=WE.PROPER,US=WE.CONFIGURABLE,HS=TS.IteratorPrototype,$S=TS.BUGGY_SAFARI_ITERATORS,VS=qw("iterator"),WS=function(){return this},GS=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=RC(IS,{next:xE(1,n)}),jS(e,o,!1),QC[o]=NS}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!$S&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[VS]||p["@@iterator"]||o&&p[o],g=!$S&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=_S(v.call(new e)))!==Object.prototype&&u.next&&(_S(u)!==HS&&(MS?MS(u,HS):Tw(u[VS])||GE(u,VS,WS)),jS(u,f,!0)),zS&&"values"==o&&h&&"values"!==h.name&&(US?CE(p,"name","values"):(d=!0,g=function(){return aE(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)($S||d||!(l in p))&&GE(p,l,s[l]);else dC({target:t,proto:!0,forced:$S||d},s);return p[VS]!==g&&GE(p,VS,g,{name:o}),QC[t]=g,s},qS=xS.charAt,KS=UE.set,YS=UE.getterFor("String Iterator");GS(String,"String",(function(e){KS(this,{type:"String Iterator",string:EC(e),index:0})}),(function(){var e,t=YS(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=qS(n,r),t.index+=e.length,{value:e,done:!1})}));var ZS,XS=Hx.f,JS=ww("".endsWith),QS=ww("".slice),eD=Math.min,tD=qC("endsWith"),nD=!(tD||(ZS=XS(String.prototype,"endsWith"),!ZS||ZS.writable));dC({target:"String",proto:!0,forced:!nD&&!tD},{endsWith:function(e){var t=EC(xw(this));WC(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:eD(hx(n),r),i=EC(e);return JS?JS(t,i,o):QS(t,o-i.length,o)===i}});var rD=ww([].join),oD=lx!=Object,iD=Tx("join",",");dC({target:"Array",proto:!0,forced:oD||!iD},{join:function(e){return rD(zx(this),void 0===e?",":e)}});var aD=qw("species"),uD=function(e){return Mw>=51||!zw((function(){var t=[];return(t.constructor={})[aD]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},sD=Bx.map,lD=uD("map");dC({target:"Array",proto:!0,forced:!lD},{map:function(e){return sD(this,e,arguments.length>1?arguments[1]:void 0)}});var cD=fw.RegExp,fD=zw((function(){var e=cD("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),dD=fD||zw((function(){return!cD("a","y").sticky})),pD={BROKEN_CARET:fD||zw((function(){var e=cD("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:dD,UNSUPPORTED_Y:fD},hD=fw.RegExp,gD=zw((function(){var e=hD(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),vD=fw.RegExp,yD=zw((function(){var e=vD("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),mD=UE.get,bD=gw("native-string-replace",String.prototype.replace),wD=RegExp.prototype.exec,ED=wD,xD=ww("".charAt),CD=ww("".indexOf),SD=ww("".replace),DD=ww("".slice),AD=function(){var e=/a/,t=/b*/g;return aE(wD,e,"a"),aE(wD,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),_D=pD.BROKEN_CARET,OD=void 0!==/()??/.exec("")[1];(AD||OD||_D||gD||yD)&&(ED=function(e){var t,n,r,o,i,a,u,s=this,l=mD(s),c=EC(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=aE(ED,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=_D&&s.sticky,h=aE(xC,s),g=s.source,v=0,y=c;if(p&&(h=SD(h,"y",""),-1===CD(h,"g")&&(h+="g"),y=DD(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==xD(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),OD&&(n=new RegExp("^"+g+"$(?!\\s)",h)),AD&&(r=s.lastIndex),o=aE(wD,p?n:s,y),p?o?(o.input=DD(o.input,v),o[0]=DD(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:AD&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),OD&&o&&o.length>1&&aE(bD,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=RC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var kD=ED;dC({target:"RegExp",proto:!0,forced:/./.exec!==kD},{exec:kD});var BD=Function.prototype,TD=BD.apply,FD=BD.bind,PD=BD.call,jD="object"==typeof Reflect&&Reflect.apply||(FD?PD.bind(TD):function(){return PD.apply(TD,arguments)}),ID=qw("species"),ND=RegExp.prototype,RD=function(e,t,n,r){var o=qw(e),i=!zw((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!zw((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[ID]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=ww(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=ww(e),s=t.exec;return s===kD||s===ND.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));GE(String.prototype,e,s[0]),GE(ND,o,s[1])}r&&CE(ND[o],"sham",!0)},LD=xS.charAt,MD=function(e,t,n){return t+(n?LD(e,t).length:1)},zD=Math.floor,UD=ww("".charAt),HD=ww("".replace),$D=ww("".slice),VD=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,WD=/\$([$&'`]|\d{1,2})/g,GD=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=WD;return void 0!==o&&(o=Sw(o),s=VD),HD(i,s,(function(i,s){var l;switch(UD(s,0)){case"$":return"$";case"&":return e;case"`":return $D(t,0,n);case"'":return $D(t,a);case"<":l=o[$D(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=zD(c/10);return 0===f?i:f<=u?void 0===r[f-1]?UD(s,1):r[f-1]+UD(s,1):i}l=r[c-1]}return void 0===l?"":l}))},qD=fw.TypeError,KD=function(e,t){var n=e.exec;if(Tw(n)){var r=aE(n,e,t);return null!==r&&oE(r),r}if("RegExp"===YE(e))return aE(kD,e,t);throw qD("RegExp#exec called on incompatible receiver")},YD=qw("replace"),ZD=Math.max,XD=Math.min,JD=ww([].concat),QD=ww([].push),eA=ww("".indexOf),tA=ww("".slice),nA="$0"==="a".replace(/./,"$0"),rA=!!/./[YD]&&""===/./[YD]("a","$0");RD("replace",(function(e,t,n){var r=rA?"$":"$0";return[function(e,n){var r=xw(this),o=null==e?void 0:hE(e,YD);return o?aE(o,e,r,n):aE(t,EC(r),e,n)},function(e,o){var i=oE(this),a=EC(e);if("string"==typeof o&&-1===eA(o,r)&&-1===eA(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Tw(o);s||(o=EC(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=KD(i,a);if(null===d)break;if(QD(f,d),!l)break;""===EC(d[0])&&(i.lastIndex=MD(a,hx(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=EC((d=f[v])[0]),m=ZD(XD(dx(d.index),a.length),0),b=[],w=1;w<d.length;w++)QD(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=JD([y],b,m,a);void 0!==E&&QD(x,E);var C=EC(jD(o,void 0,x))}else C=GD(y,a,m,b,E,o);m>=g&&(h+=tA(a,g,m)+C,g=m+y.length)}return h+tA(a,g)}]}),!!zw((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!nA||rA);
/*! *****************************************************************************
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=UE.set,pA=UE.getterFor("Array Iterator"),hA=GS(Array,"Array",(function(e,t){dA(this,{type:"Array Iterator",target:zx(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");QC.Arguments=QC.Array,zC("keys"),zC("values"),zC("entries");var gA=function(e,t,n){for(var r in t)GE(e,r,t[r],n);return e},vA=fw.Array,yA=Math.max,mA=function(e,t,n){for(var r=gx(e),o=Wx(t,r),i=Wx(void 0===n?r:n,r),a=vA(yA(i-o,0)),u=0;o<i;o++,u++)rS(a,u,e[o]);return a.length=u,a},bA=Qx.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(zx(e))}},xA=zw((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),CA=Object.isExtensible,SA=zw((function(){CA(1)}))||xA?function(e){return!!Xw(e)&&(!xA||"ArrayBuffer"!=YE(e))&&(!CA||CA(e))}:CA,DA=!zw((function(){return Object.isExtensible(Object.preventExtensions({}))})),AA=uw((function(e){var t=EE.f,n=!1,r=Bw("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=Qx.f,t=ww([].splice),o={};o[r]=1,e(o).length&&(Qx.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},dC({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:EA.f}))},fastKey:function(e,t){if(!Xw(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 DA&&n&&SA(e)&&!Aw(e,r)&&i(e),e}};PE[r]=!0})),_A=fw.TypeError,OA=function(e,t){this.stopped=e,this.result=t},kA=OA.prototype,BA=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=ax(t,c),g=function(e){return r&&XC(r,"normal",e),new OA(!0,e)},v=function(e){return f?(oE(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=iS(e)))throw _A(fE(e)+" is not iterable");if(nS(o)){for(i=0,a=gx(e);a>i;i++)if((u=v(e[i]))&&uE(kA,u))return u;return new OA(!1)}r=uS(e,o)}for(s=r.next;!(l=aE(s,r)).done;){try{u=v(l.value)}catch(e){XC(r,"throw",e)}if("object"==typeof u&&u&&uE(kA,u))return u}return new OA(!1)},TA=fw.TypeError,FA=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.constructor)&&r!==n&&Xw(o=r.prototype)&&o!==n.prototype&&MS(e,o),e},jA=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=fw[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=ww(u[e]);GE(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Xw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Xw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Xw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(cC(e,!Tw(a)||!(o||u.forEach&&!zw((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),AA.enable();else if(cC(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=zw((function(){f.has(1)})),h=pS((function(e){new a(e)})),g=!o&&zw((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){FA(e,u);var n=PA(new a,e,s);return null!=t&&BA(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,dC({global:!0,forced:s!=a},l),jS(s,e),o||n.setStrong(s,e,r),s},IA=AA.getWeakData,NA=UE.set,RA=UE.getterFor,LA=Bx.find,MA=Bx.findIndex,zA=ww([].splice),UA=0,HA=function(e){return e.frozen||(e.frozen=new $A)},$A=function(){this.entries=[]},VA=function(e,t){return LA(e.entries,(function(e){return e[0]===t}))};$A.prototype={get:function(e){var t=VA(this,e);if(t)return t[1]},has:function(e){return!!VA(this,e)},set:function(e,t){var n=VA(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=MA(this.entries,(function(t){return t[0]===e}));return~t&&zA(this.entries,t,1),!!~t}};var WA,GA={getConstructor:function(e,t,n,r){var o=e((function(e,o){FA(e,i),NA(e,{type:t,id:UA++,frozen:void 0}),null!=o&&BA(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=RA(t),u=function(e,t,n){var r=a(e),o=IA(oE(t),!0);return!0===o?HA(r).set(t,n):o[r.id]=n,e};return gA(i,{delete:function(e){var t=a(this);if(!Xw(e))return!1;var n=IA(e);return!0===n?HA(t).delete(e):n&&Aw(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Xw(e))return!1;var n=IA(e);return!0===n?HA(t).has(e):n&&Aw(n,t.id)}}),gA(i,n?{get:function(e){var t=a(this);if(Xw(e)){var n=IA(e);return!0===n?HA(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},qA=UE.enforce,KA=!fw.ActiveXObject&&"ActiveXObject"in fw,YA=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ZA=jA("WeakMap",YA,GA);if(BE&&KA){WA=GA.getConstructor(YA,"WeakMap",!0),AA.enable();var XA=ZA.prototype,JA=ww(XA.delete),QA=ww(XA.has),e_=ww(XA.get),t_=ww(XA.set);gA(XA,{delete:function(e){if(Xw(e)&&!SA(e)){var t=qA(this);return t.frozen||(t.frozen=new WA),JA(this,e)||t.frozen.delete(e)}return JA(this,e)},has:function(e){if(Xw(e)&&!SA(e)){var t=qA(this);return t.frozen||(t.frozen=new WA),QA(this,e)||t.frozen.has(e)}return QA(this,e)},get:function(e){if(Xw(e)&&!SA(e)){var t=qA(this);return t.frozen||(t.frozen=new WA),QA(this,e)?e_(this,e):t.frozen.get(e)}return e_(this,e)},set:function(e,t){if(Xw(e)&&!SA(e)){var n=qA(this);n.frozen||(n.frozen=new WA),QA(this,e)?t_(this,e,t):n.frozen.set(e,t)}else t_(this,e,t);return this}})}var n_=qw("iterator"),r_=qw("toStringTag"),o_=hA.values,i_=function(e,t){if(e){if(e[n_]!==o_)try{CE(e,n_,o_)}catch(t){e[n_]=o_}if(e[r_]||CE(e,r_,t),tx[t])for(var n in hA)if(e[n]!==hA[n])try{CE(e,n,hA[n])}catch(t){e[n]=hA[n]}}};for(var a_ in tx)i_(fw[a_]&&fw[a_].prototype,a_);i_(ox,"DOMTokenList");var u_=new WeakMap,s_=new WeakMap,l_=new WeakMap,c_=new WeakMap,f_=new WeakMap,d_=new WeakMap,p_=new WeakMap,h_=new WeakMap,g_=new WeakMap,v_=new WeakMap,y_=new WeakMap,m_=new WeakMap,b_=new WeakMap,w_=new WeakMap,E_=new WeakMap,x_=new WeakMap,C_=new WeakMap,S_=new WeakMap,D_=new WeakMap,A_=new WeakMap,__=new WeakMap,O_=new WeakMap,k_=new WeakMap,B_=new WeakMap,T_=new WeakMap,F_=Bx.find,P_=!0;"find"in[]&&Array(1).find((function(){P_=!1})),dC({target:"Array",proto:!0,forced:P_},{find:function(e){return F_(this,e,arguments.length>1?arguments[1]:void 0)}}),zC("find"),dC({global:!0},{globalThis:fw});const j_=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];nh&&(Up.fn.css=nh),sh&&(Up.fn.append=sh),Hp&&(Up.fn.addClass=Hp),$p&&(Up.fn.removeClass=$p),Vp&&(Up.fn.hasClass=Vp),Yp&&(Up.fn.on=Yp),bh&&(Up.fn.focus=bh),Wp&&(Up.fn.attr=Wp),Gp&&(Up.fn.removeAttr=Gp),eh&&(Up.fn.hide=eh),th&&(Up.fn.show=th),Qp&&(Up.fn.offset=Qp),Xp&&(Up.fn.width=Xp),Jp&&(Up.fn.height=Jp),ch&&(Up.fn.parent=ch),fh&&(Up.fn.parents=fh),uh&&(Up.fn.is=uh),qp&&(Up.fn.dataset=qp),Kp&&(Up.fn.val=Kp),ah&&(Up.fn.text=ah),ih&&(Up.fn.html=ih),ph&&(Up.fn.children=ph),hh&&(Up.fn.remove=hh),dh&&(Up.fn.find=dh),rh&&(Up.fn.each=rh),gh&&(Up.fn.empty=gh);var I_,N_,R_=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},L_=function(e){return M_(e)&&1===e.nodeType},M_=function(e){var t=R_(e);return!!t&&e instanceof t.Node},z_=function(e){var t=e&&e.anchorNode&&R_(e.anchorNode);return!!t&&e instanceof t.Selection},U_=function(e){return M_(e)&&3===e.nodeType},H_=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},$_=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(M_(r=i)&&8===r.nodeType||L_(i)&&0===i.childNodes.length||L_(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},V_=function(e,t,n){return sA($_(e,t,n),1)[0]},W_=function e(t){var n,r,o="";if(U_(t)&&t.nodeValue)return t.nodeValue;if(L_(t)){try{for(var i=uA(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function G_(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||G_(o,t)}}function q_(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==I_.ELEMENT_NODE?"":t.tagName.toLowerCase()}(N_=I_||(I_={}))[N_.ELEMENT_NODE=1]="ELEMENT_NODE",N_[N_.TEXT_NODE=3]="TEXT_NODE",N_[N_.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",N_[N_.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",N_[N_.COMMENT_NODE=8]="COMMENT_NODE",N_[N_.DOCUMENT_NODE=9]="DOCUMENT_NODE",N_[N_.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",N_[N_.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var K_="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),Y_="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var Z_="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),X_="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),J_="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Q_="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var eO=!J_&&!X_&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,tO={getWindow:function(e){var t=__.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=A_.get(t);return n||(n=new fA,A_.set(t,n)),n},setNewKey:function(e){var t=new fA;A_.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=E_.get(r);if(null==o){if(Ff.isEditor(r))return n;break}var i=w_.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=tO.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return E_.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=tO.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[tO.findPath(e,t)[0]];return Rf.get(e,n)},toDOMNode:function(e,t){var n;if(Ff.isEditor(t))n=x_.get(e);else{var r=tO.findKey(e,t);n=S_.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=tO.toDOMNode(e,e);try{r=L_(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=Yf.isBackward(t),i=tO.toDOMPoint(e,n),a=Yf.isCollapsed(t)?i:tO.toDOMPoint(e,r),u=tO.getWindow(e).document.createRange(),s=sA(o?a:i,2),l=s[0],c=s[1],f=sA(o?i:a,2),d=f[0],p=f[1],h=!!(L_(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(L_(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,g?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=sA(Ff.node(e,t.path),1)[0],a=tO.toDOMNode(e,i);Ff.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=uA(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=s+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=g}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=L_(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?C_.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=tO.toSlateNode(e,t.target),u=tO.findPath(e,a);if(Ff.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=Ff.point(e,u,{edge:l?"start":"end"}),f=l?Ff.before(e,c):Ff.after(e,c);if(f)return Ff.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return tO.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((z_(t)?t.anchorNode:t.startContainer)&&(z_(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=Q_&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=tO.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:tO.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return Yf.isExpanded(d)&&Yf.isForward(d)&&L_(i)&&Ff.void(e,{at:d.focus,mode:"highest"})&&(d=Ff.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=sA(o?t:function(e){var t,n=sA(e,2),r=n[0],o=n[1];if(L_(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=sA($_(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;L_(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=V_(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=tO.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();lA(lA([],sA(Ap(v.querySelectorAll("[data-slate-zero-width]")))),sA(Ap(v.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||Y_&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=tO.toSlateNode(e,c);return{path:tO.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Ff.hasPath(e,n.path)&&Ff.hasPath(e,r.path)},getNodeType:function(e){return Af.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Rf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Ff.nodes(e,{universal:!0});try{for(var i=uA(o),a=i.next();!a.done;a=i.next()){var u=sA(a.value,1)[0];Af.isElement(u)&&r.push(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=sA(Ff.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=sA(Ff.nodes(e,{match:function(e){return nd.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=sA(Ff.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&sA(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Ff.isEnd(e,n.anchor,t)||Ff.isEnd(e,n.focus,t))},getTextarea:function(e){var t=u_.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return c_.get(e)||null},getHoverbar:function(e){return d_.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=tO.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=uA(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=Ff.nodes(e,{match:function(t){return!(!Af.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=uA(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];G_(tO.toDOMNode(e,h),(function(e,t){var n=Up(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=Ff.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=uA(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(Yf.isExpanded(t))return!1;var n=tO.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=Ff.node(e,t);if(null==n)return!1;var r=sA(n,1)[0].children;return 1===r.length&&""===r[0].text}},nO=1,rO={},oO={},iO=Bx.filter,aO=uD("filter");dC({target:"Array",proto:!0,forced:!aO},{filter:function(e){return iO(this,e,arguments.length>1?arguments[1]:void 0)}});var uO="\t\n\v\f\r                 \u2028\u2029\ufeff",sO=ww("".replace),lO="["+uO+"]",cO=RegExp("^"+lO+lO+"*"),fO=RegExp(lO+lO+"*$"),dO=function(e){return function(t){var n=EC(xw(t));return 1&e&&(n=sO(n,cO,"")),2&e&&(n=sO(n,fO,"")),n}},pO={start:dO(1),end:dO(2),trim:dO(3)},hO=WE.PROPER,gO=pO.trim;dC({target:"String",proto:!0,forced:function(e){return zw((function(){return!!uO[e]()||"​…᠎"!=="​…᠎"[e]()||hO&&uO[e].name!==e}))}("trim")},{trim:function(){return gO(this)}});var vO=[],yO={};function mO(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var bO,wO,EO,xO,CO=fw.Promise,SO=qw("species"),DO=function(e){var t=Pw(e),n=EE.f;Zw&&t&&!t[SO]&&n(t,SO,{configurable:!0,get:function(){return this}})},AO=fw.TypeError,_O=qw("species"),OO=function(e,t){var n,r=oE(e).constructor;return void 0===r||null==(n=oE(r)[_O])?t:function(e){if(Sx(e))return e;throw AO(fE(e)+" is not a constructor")}(n)},kO=ww([].slice),BO=/(?:ipad|iphone|ipod).*applewebkit/i.test(jw),TO="process"==YE(fw.process),FO=fw.setImmediate,PO=fw.clearImmediate,jO=fw.process,IO=fw.Dispatch,NO=fw.Function,RO=fw.MessageChannel,LO=fw.String,MO=0,zO={};try{bO=fw.location}catch(N_){}var UO=function(e){if(Aw(zO,e)){var t=zO[e];delete zO[e],t()}},HO=function(e){return function(){UO(e)}},$O=function(e){UO(e.data)},VO=function(e){fw.postMessage(LO(e),bO.protocol+"//"+bO.host)};FO&&PO||(FO=function(e){var t=kO(arguments,1);return zO[++MO]=function(){jD(Tw(e)?e:NO(e),void 0,t)},wO(MO),MO},PO=function(e){delete zO[e]},TO?wO=function(e){jO.nextTick(HO(e))}:IO&&IO.now?wO=function(e){IO.now(HO(e))}:RO&&!BO?(xO=(EO=new RO).port2,EO.port1.onmessage=$O,wO=ax(xO.postMessage,xO)):fw.addEventListener&&Tw(fw.postMessage)&&!fw.importScripts&&bO&&"file:"!==bO.protocol&&!zw(VO)?(wO=VO,fw.addEventListener("message",$O,!1)):wO="onreadystatechange"in eE("script")?function(e){TC.appendChild(eE("script")).onreadystatechange=function(){TC.removeChild(this),UO(e)}}:function(e){setTimeout(HO(e),0)});var WO,GO,qO,KO,YO,ZO,XO,JO,QO={set:FO,clear:PO},ek=/ipad|iphone|ipod/i.test(jw)&&void 0!==fw.Pebble,tk=/web0s(?!.*chrome)/i.test(jw),nk=Hx.f,rk=QO.set,ok=fw.MutationObserver||fw.WebKitMutationObserver,ik=fw.document,ak=fw.process,uk=fw.Promise,sk=nk(fw,"queueMicrotask"),lk=sk&&sk.value;lk||(WO=function(){var e,t;for(TO&&(e=ak.domain)&&e.exit();GO;){t=GO.fn,GO=GO.next;try{t()}catch(e){throw GO?KO():qO=void 0,e}}qO=void 0,e&&e.enter()},BO||TO||tk||!ok||!ik?!ek&&uk&&uk.resolve?((XO=uk.resolve(void 0)).constructor=uk,JO=ax(XO.then,XO),KO=function(){JO(WO)}):TO?KO=function(){ak.nextTick(WO)}:(rk=ax(rk,fw),KO=function(){rk(WO)}):(YO=!0,ZO=ik.createTextNode(""),new ok(WO).observe(ZO,{characterData:!0}),KO=function(){ZO.data=YO=!YO}));var ck,fk,dk,pk,hk=lk||function(e){var t={fn:e,next:void 0};qO&&(qO.next=t),GO||(GO=t,KO()),qO=t},gk=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=pE(t),this.reject=pE(n)},vk={f:function(e){return new gk(e)}},yk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},mk="object"==typeof window,bk=QO.set,wk=qw("species"),Ek="Promise",xk=UE.getterFor(Ek),Ck=UE.set,Sk=UE.getterFor(Ek),Dk=CO&&CO.prototype,Ak=CO,_k=Dk,Ok=fw.TypeError,kk=fw.document,Bk=fw.process,Tk=vk.f,Fk=Tk,Pk=!!(kk&&kk.createEvent&&fw.dispatchEvent),jk=Tw(fw.PromiseRejectionEvent),Ik=!1,Nk=cC(Ek,(function(){var e=OE(Ak),t=e!==String(Ak);if(!t&&66===Mw)return!0;if(Mw>=51&&/native code/.test(e))return!1;var n=new Ak((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[wk]=r,!(Ik=n.then((function(){}))instanceof r)||!t&&mk&&!jk})),Rk=Nk||!pS((function(e){Ak.all(e).catch((function(){}))})),Lk=function(e){var t;return!(!Xw(e)||!Tw(t=e.then))&&t},Mk=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;hk((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&$k(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Ok("Promise-chain cycle")):(u=Lk(a))?aE(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Uk(e)}))}},zk=function(e,t,n){var r,o;Pk?((r=kk.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),fw.dispatchEvent(r)):r={promise:t,reason:n},!jk&&(o=fw["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=fw.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Uk=function(e){aE(bk,fw,(function(){var t,n=e.facade,r=e.value;if(Hk(e)&&(t=yk((function(){TO?Bk.emit("unhandledRejection",r,n):zk("unhandledrejection",n,r)})),e.rejection=TO||Hk(e)?2:1,t.error))throw t.value}))},Hk=function(e){return 1!==e.rejection&&!e.parent},$k=function(e){aE(bk,fw,(function(){var t=e.facade;TO?Bk.emit("rejectionHandled",t):zk("rejectionhandled",t,e.value)}))},Vk=function(e,t,n){return function(r){e(t,r,n)}},Wk=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Mk(e,!0))},Gk=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Ok("Promise can't be resolved itself");var r=Lk(t);r?hk((function(){var n={done:!1};try{aE(r,t,Vk(Gk,n,e),Vk(Wk,n,e))}catch(t){Wk(n,t,e)}})):(e.value=t,e.state=1,Mk(e,!1))}catch(t){Wk({done:!1},t,e)}}};if(Nk&&(_k=(Ak=function(e){FA(this,_k),pE(e),aE(ck,this);var t=xk(this);try{e(Vk(Gk,t),Vk(Wk,t))}catch(e){Wk(t,e)}}).prototype,(ck=function(e){Ck(this,{type:Ek,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=gA(_k,{then:function(e,t){var n=Sk(this),r=n.reactions,o=Tk(OO(this,Ak));return o.ok=!Tw(e)||e,o.fail=Tw(t)&&t,o.domain=TO?Bk.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Mk(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),fk=function(){var e=new ck,t=xk(e);this.promise=e,this.resolve=Vk(Gk,t),this.reject=Vk(Wk,t)},vk.f=Tk=function(e){return e===Ak||e===dk?new fk(e):Fk(e)},Tw(CO)&&Dk!==Object.prototype)){pk=Dk.then,Ik||(GE(Dk,"then",(function(e,t){var n=this;return new Ak((function(e,t){aE(pk,n,e,t)})).then(e,t)}),{unsafe:!0}),GE(Dk,"catch",_k.catch,{unsafe:!0}));try{delete Dk.constructor}catch(N_){}MS&&MS(Dk,_k)}dC({global:!0,wrap:!0,forced:Nk},{Promise:Ak}),jS(Ak,Ek,!1),DO(Ek),dk=Pw(Ek),dC({target:Ek,stat:!0,forced:Nk},{reject:function(e){var t=Tk(this);return aE(t.reject,void 0,e),t.promise}}),dC({target:Ek,stat:!0,forced:Nk},{resolve:function(e){return function(e,t){if(oE(e),Xw(t)&&t.constructor===e)return t;var n=vk.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),dC({target:Ek,stat:!0,forced:Rk},{all:function(e){var t=this,n=Tk(t),r=n.resolve,o=n.reject,i=yk((function(){var n=pE(t.resolve),i=[],a=0,u=1;BA(e,(function(e){var s=a++,l=!1;u++,aE(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Tk(t),r=n.reject,o=yk((function(){var o=pE(t.resolve);BA(e,(function(e){aE(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var qk=pD.UNSUPPORTED_Y,Kk=Math.min,Yk=[].push,Zk=ww(/./.exec),Xk=ww(Yk),Jk=ww("".slice);function Qk(e){Promise.resolve().then(e)}function eB(e,t){return Af.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Ff.isVoid(t,e),u="";a||(u=i.map((function(e){return eB(e,t)})).join(""));var s=function(e){return yO[e]||mO}(r),l=s(e,u,t),c="";if(c="string"==typeof l?l:l.html||"",a||vO.forEach((function(t){return c=t(e,c)})),"string"==typeof l)return c;var f=l.prefix,d=void 0===f?"":f,p=l.suffix,h=void 0===p?"":p;return d&&(c=d+c),h&&(c+=h),c}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(r);var o=tO.getParentsNodes(t,e).some((function(e){return"pre"===tO.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=tO.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return vO.forEach((function(t){return r=t(e,r)})),r}(e,t)}function tB(e){return"w-e-element-"+e}RD("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=EC(xw(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!$C(e))return aE(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=aE(kD,f,r))&&!((a=f.lastIndex)>c&&(Xk(s,Jk(r,c,i.index)),i.length>1&&i.index<r.length&&jD(Yk,s,mA(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&Zk(f,"")||Xk(s,""):Xk(s,Jk(r,c)),s.length>o?mA(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:aE(t,this,e,n)}:t,[function(t,n){var o=xw(this),i=null==t?void 0:hE(t,e);return i?aE(i,t,o,n):aE(r,EC(o),t,n)},function(e,o){var i=oE(this),a=EC(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=OO(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(qk?"g":"y"),f=new s(qk?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===KD(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=qk?0:h;var v,y=KD(f,qk?Jk(a,h):a);if(null===y||(v=Kk(hx(f.lastIndex+(qk?h:0)),a.length))===p)h=MD(a,h,l);else{if(Xk(g,Jk(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Xk(g,y[m]),g.length===d)return g;h=p=v}}return Xk(g,Jk(a,p)),g}]}),!!zw((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),qk);var nB=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},rB=function(e,t,n){var r=tO.toDOMRange(e,t).getBoundingClientRect(),o=tO.toDOMRange(e,n).getBoundingClientRect();return nB(r,o)&&nB(o,r)},oB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],iB=[],aB=[],uB={},sB=EE.f,lB=Qx.f,cB=UE.enforce,fB=qw("match"),dB=fw.RegExp,pB=dB.prototype,hB=fw.SyntaxError,gB=ww(xC),vB=ww(pB.exec),yB=ww("".charAt),mB=ww("".replace),bB=ww("".indexOf),wB=ww("".slice),EB=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,xB=/a/g,CB=/a/g,SB=new dB(xB)!==xB,DB=pD.MISSED_STICKY,AB=pD.UNSUPPORTED_Y,_B=Zw&&(!SB||DB||gD||yD||zw((function(){return CB[fB]=!1,dB(xB)!=xB||dB(CB)==CB||"/a/i"!=dB(xB,"i")})));if(cC("RegExp",_B)){for(var OB=function(e,t){var n,r,o,i,a,u,s=uE(pB,this),l=$C(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===OB)return e;if((l||uE(pB,e))&&(e=e.source,c&&(t="flags"in d?d.flags:gB(d))),e=void 0===e?"":EC(e),t=void 0===t?"":EC(t),d=e,gD&&"dotAll"in xB&&(r=!!t&&bB(t,"s")>-1)&&(t=mB(t,/s/g,"")),n=t,DB&&"sticky"in xB&&(o=!!t&&bB(t,"y")>-1)&&AB&&(t=mB(t,/y/g,"")),yD&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=yB(e,r)))t+=yB(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:vB(EB,wB(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||Aw(a,c))throw new hB("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=PA(dB(e,t),s?this:pB,OB),(r||o||f.length)&&(u=cB(a),r&&(u.dotAll=!0,u.raw=OB(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=yB(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+yB(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{CE(a,"source",""===d?"(?:)":d)}catch(e){}return a},kB=function(e){e in OB||sB(OB,e,{configurable:!0,get:function(){return dB[e]},set:function(t){dB[e]=t}})},BB=lB(dB),TB=0;BB.length>TB;)kB(BB[TB++]);pB.constructor=OB,OB.prototype=pB,GE(fw,"RegExp",OB)}DO("RegExp");var FB=new RegExp(String.fromCharCode(160),"g");function PB(e){return e.replace(FB," ")}function jB(e,t){var n=e.length;if(n){var r=e[n-1];if(nd.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function IB(e,t,n){return{type:"paragraph",children:[{text:Up(e).text().replace(/\s+/gm," ")}]}}function NB(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==I_.ELEMENT_NODE)if(e.nodeType!==I_.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=PB(r),jB(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(jB(n,"\n")||n.push({text:"\n"}));var o=LB(Up(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in uB)if(e[0].matches(t))return uB[t];return IB}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){Ff.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),aB.forEach((function(n){r=n(e[0],r,t)})))})),o}function RB(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.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=PB(n)};return aB.forEach((function(n){r=n(e[0],r,t)})),r}function LB(e,t){iB.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Up(r(e[0])))}));var n=q_(e);return"span"===n?e.attr("data-w-e-type")?NB(e,t):RB(e,t):"code"===n?"pre"===q_(e.parent())?NB(e,t):RB(e,t):oB.includes(n)?RB(e,t):NB(e,t)}function MB(e,t,n){var r=Up(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function zB(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=Up("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=LB(Up(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var UB=EE.f,HB=AA.fastKey,$B=UE.set,VB=UE.getterFor,WB={getConstructor:function(e,t,n,r){var o=e((function(e,o){FA(e,i),$B(e,{type:t,index:RC(null),first:void 0,last:void 0,size:0}),Zw||(e.size=0),null!=o&&BA(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=VB(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=HB(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),Zw?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=HB(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return gA(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Zw?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),Zw?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=ax(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),gA(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),Zw&&UB(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=VB(t),i=VB(r);GS(e,t,(function(e,t){$B(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),DO(t)}};jA("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),WB);var GB=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function qB(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):wd.insertNodes(e,t,{mode:"highest"})}var KB=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=sA(Yf.edges(n),2),o=r[0],i=r[1],a=Ff.void(t,{at:o.path}),u=Ff.void(t,{at:i.path});if(!Yf.isCollapsed(n)||a){var s=tO.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=sA(u,1)[0],d=s.cloneRange(),p=tO.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),U_(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),y=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",W_(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),l=e.getData("text/html");if(l)t.dangerouslyInsertHtml(l);else if(s){var c=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=uA(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&wd.splitNodes(t,{always:!0}),n(h),f=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},YB=function(e){return null!=e},ZB={object:!0,function:!0,undefined:!0},XB=/^\s*class[\s{/}]/,JB=Function.prototype.toString,QB=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!YB(e)&&hasOwnProperty.call(ZB,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!XB.test(JB.call(e))},eT=function(e){return null!=e},tT=Object.keys,nT=function(){try{return Object.keys("primitive"),!0}catch(r){return!1}}()?Object.keys:function(e){return tT(eT(e)?Object(e):e)},rT=function(e){if(!eT(e))throw new TypeError("Cannot use null or undefined");return e},oT=Math.max,iT=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=oT(arguments.length,2);for(e=Object(rT(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)nT(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},aT=Array.prototype.forEach,uT=Object.create,sT=function(e,t){var n;for(n in e)t[n]=e[n]},lT=function(e){var t=uT(null);return aT.call(arguments,(function(e){eT(e)&&sT(Object(e),t)})),t},cT="razdwatrzy",fT=String.prototype.indexOf,dT="function"==typeof cT.contains&&!0===cT.contains("dwa")&&!1===cT.contains("foo")?String.prototype.contains:function(e){return fT.call(this,e,arguments[1])>-1},pT=uw((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],YB(e)?(n=dT.call(e,"c"),r=dT.call(e,"e"),o=dT.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?iT(lT(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],YB(t)?QB(t)?YB(n)?QB(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,YB(e)?(r=dT.call(e,"c"),o=dT.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?iT(lT(i),a):a}})),hT=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},gT=uw((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return hT(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return hT(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(hT(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:pT(n),once:pT(r),off:pT(o),emit:pT(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function vT(e){var t=B_.get(e);return null==t&&(t=gT(),B_.set(e,t)),t}var yT=new WeakMap;function mT(e,t){var n=yT.get(e);null==n&&(n=new Set,yT.set(e,n)),n.add(t)}function bT(e){return yT.get(e)||new Set}function wT(e){yT.set(e,new Set)}function ET(e){var t=tO.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function xT(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=ET(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=tO.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function CT(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Af.isElement(t)&&e.isVoid(t),i=Af.isElement(t)&&e.isInline(t),a=D_.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(j_.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=ET(e);if(null==h)return r;var g,v=h.top,y=h.left,m=h.width,b=h.height,w={},E=s-v,x=l-y;if("bar"===n)return w.left=x+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if("modal"===n)return o?i?x>(m-f)/2?w.right=m-x+5+"px":w.left=x+f+5+"px":w.left="20px":w.left=x+"px",o?((g=E)<0&&(g=0),w.top=g+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((g=E+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function ST(e,t){Qk((function(){var n=ET(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-u)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),E=parseInt(w.toString())-r;E<0&&(E=0),t.css("left",E+"px")}if(g.indexOf("right")>=0&&c<0){var x=t.css("right"),C=parseInt(x.toString())-Math.abs(c);t.css("right",C+"px")}}}))}var DT=uD("slice"),AT=qw("species"),_T=fw.Array,OT=Math.max;dC({target:"Array",proto:!0,forced:!DT},{slice:function(e,t){var n,r,o,i=zx(this),a=gx(i),u=Wx(e,a),s=Wx(void 0===t?a:t,a);if(vx(i)&&(n=i.constructor,(Sx(n)&&(n===_T||vx(n.prototype))||Xw(n)&&null===(n=n[AT]))&&(n=void 0),n===_T||void 0===n))return kO(i,u,s);for(r=new(void 0===n?_T:n)(OT(s-u,0)),o=0;u<s;u++,o++)u in i&&rS(r,o,i[u]);return r.length=o,r}});var kT=Hx.f,BT=ww("".startsWith),TT=ww("".slice),FT=Math.min,PT=qC("startsWith"),jT=!PT&&!!function(){var e=kT(String.prototype,"startsWith");return e&&!e.writable}();dC({target:"String",proto:!0,forced:!jT&&!PT},{startsWith:function(e){var t=EC(xw(this));WC(e);var n=hx(FT(arguments.length>1?arguments[1]:void 0,t.length)),r=EC(e);return BT?BT(t,r,n):TT(t,n,n+r.length)===r}});var IT=Object.assign,NT=Object.defineProperty,RT=ww([].concat),LT=!IT||zw((function(){if(Zw&&1!==IT({b:1},IT(NT({},"a",{enumerable:!0,get:function(){NT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=IT({},e)[n]||pC(IT({},t)).join("")!=r}))?function(e,t){for(var n=Sw(e),r=arguments.length,o=1,i=eC.f,a=Mx.f;r>o;)for(var u,s=lx(arguments[o++]),l=i?RT(pC(s),i(s)):pC(s),c=l.length,f=0;c>f;)u=l[f++],Zw&&!aE(a,s,u)||(n[u]=s[u]);return n}:IT;dC({target:"Object",stat:!0,forced:Object.assign!==LT},{assign:LT});var MT=["props","attrs","style","dataset","on","hook"];function zT(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!MT.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=_v(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&zT(e)}))}var UT=[],HT={};function $T(e,t,n){return Ig(n.isInline(e)?"span":"div",null,t)}function VT(e,t){return void 0===t&&(t=!1),Ig("span",{"data-slate-string":!0},t?e+"\n":e)}function WT(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Ig("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Ig("br",null):null)}function GT(e,t,n,r){return w_.set(e,t),E_.set(e,n),Af.isElement(e)?function(e,t){var n,r=tO.findKey(t,e),o=t.isInline(e),i=Ff.isVoid(t,e),a=tB(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=void 0===l?[]:l,f=function(e){return HT[e]||$T}(s);n=i?null:c.map((function(n,r){return GT(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=sA(Rf.texts(e),1),g=sA(h[0],1)[0],v=Ig(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},GT(g,0,e,t));d=Ig(p,{style:{position:"relative"}},d,v),w_.set(g,0),E_.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return UT.forEach((function(r){n=r(e,t)})),n}(e,d)),Qk((function(){var t=H_(a);null!=t&&(S_.set(r,t),D_.set(e,t),C_.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=tO.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=tO.findPath(n,e),a=o([e,i]),u=nd.decorations(e,a),s=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=tO.findPath(o,n),u=Uf.parent(a);if(Ff.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?WT(Rf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Ff.string(o,u)?""===i?WT():t&&"\n"===i.slice(-1)?VT(i,!0):VT(i):WT(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return UT.forEach((function(t){n=t(e,n)})),n}(r,i),Ig("span",{"data-slate-leaf":!0},i)})),l=function(e){return"w-e-text-"+e}(r.id),c=Ig("span",{"data-slate-node":"text",id:l,key:r.id},s);return Qk((function(){var t=H_(l);null!=t&&(S_.set(r,t),D_.set(e,t),C_.set(t,e))})),c}(e,n,r)}function qT(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),gg("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=GT(e,n,t,t);return zT(r),r}));var c=y_.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return Up('<div\n        id="'+e+'"\n        data-slate-editor\n        data-slate-node="value"\n        suppressContentEditableWarning\n        role="textarea"\n        spellCheck="true"\n        autoCorrect="true"\n        autoCapitalize="true"\n    ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=pg([bg,Og,Pg,xg,Ag,yg]))(n,s),y_.set(e,!1),m_.set(e,p)}else{var d=b_.get(e),p=m_.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=H_(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=R_(n);h&&__.set(t,h)}x_.set(t,n),D_.set(t,n),C_.set(n,t),b_.set(e,s)}}function KT(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function YT(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function ZT(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return YT(n.overflowY,t)||YT(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function XT(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function JT(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!KT(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;KT(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&ZT(f)&&!ZT(document.documentElement)||null!=f&&ZT(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,m=v.width,b=v.top,w=v.right,E=v.bottom,x=v.left,C="start"===o||"nearest"===o?b:"end"===o?E:b+y/2,S="center"===i?x+m/2:"end"===i?w:x,D=[],A=0;A<c.length;A++){var _=c[A],O=_.getBoundingClientRect(),k=O.height,B=O.width,T=O.top,F=O.right,P=O.bottom,j=O.left;if("if-needed"===r&&b>=0&&x>=0&&E<=p&&w<=d&&b>=T&&E<=P&&x>=j&&w<=F)return D;var I=getComputedStyle(_),N=parseInt(I.borderLeftWidth,10),R=parseInt(I.borderTopWidth,10),L=parseInt(I.borderRightWidth,10),M=parseInt(I.borderBottomWidth,10),z=0,U=0,H="offsetWidth"in _?_.offsetWidth-_.clientWidth-N-L:0,$="offsetHeight"in _?_.offsetHeight-_.clientHeight-R-M:0;if(l===_)z="start"===o?C:"end"===o?C-p:"nearest"===o?XT(g,g+p,p,R,M,g+C,g+C+y,y):C-p/2,U="start"===i?S:"center"===i?S-d/2:"end"===i?S-d:XT(h,h+d,d,N,L,h+S,h+S+m,m),z=Math.max(0,z+g),U=Math.max(0,U+h);else{z="start"===o?C-T-R:"end"===o?C-P+M+$:"nearest"===o?XT(T,P,k,R,M+$,C,C+y,y):C-(T+k/2)+$/2,U="start"===i?S-j-N:"center"===i?S-(j+B/2)+H/2:"end"===i?S-F+L+H:XT(j,F,B,N,L+H,S,S+m,m);var V=_.scrollLeft,W=_.scrollTop;C+=W-(z=Math.max(0,Math.min(W+z,_.scrollHeight-k+$))),S+=V-(U=Math.max(0,Math.min(V+U,_.scrollWidth-B+H)))}D.push({el:_,top:z,left:U})}return D}function QT(e){return e===Object(e)&&0!==Object.keys(e).length}function eF(e,t){return M_(t)&&tO.hasDOMNode(e,t,{editable:!0})}function tF(e,t){if(e.getConfig().readOnly)return!1;var n=nF(e,t)&&tO.toSlateNode(e,t);return Ff.isVoid(e,n)}function nF(e,t){return M_(t)&&tO.hasDOMNode(e,t)}function rF(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=tO.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=x_.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=tO.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&Yf.equals(l,r)){var c=!0;if(Yf.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||tO.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&tO.toDOMRange(t,r);if(g){Yf.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(QT(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:JT(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:QT(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))})(JT(e,r),r.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){g&&Y_&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=tO.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var oF=new WeakMap,iF=new WeakMap,aF={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},uF={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},sF={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},lF=function(e){var t=aF[e],n=uF[e],r=sF[e],o=t&&Rv(t),i=n&&Rv(n),a=r&&Rv(r);return function(e){return!(!o||!o(e))||!!(K_&&i&&i(e))||!(K_||!a||!a(e))}},cF={isBold:lF("bold"),isCompose:lF("compose"),isMoveBackward:lF("moveBackward"),isMoveForward:lF("moveForward"),isDeleteBackward:lF("deleteBackward"),isDeleteForward:lF("deleteForward"),isDeleteLineBackward:lF("deleteLineBackward"),isDeleteLineForward:lF("deleteLineForward"),isDeleteWordBackward:lF("deleteWordBackward"),isDeleteWordForward:lF("deleteWordForward"),isExtendBackward:lF("extendBackward"),isExtendForward:lF("extendForward"),isExtendLineBackward:lF("extendLineBackward"),isExtendLineForward:lF("extendLineForward"),isItalic:lF("italic"),isMoveLineBackward:lF("moveLineBackward"),isMoveLineForward:lF("moveLineForward"),isMoveWordBackward:lF("moveWordBackward"),isMoveWordForward:lF("moveWordForward"),isRedo:lF("redo"),isSplitBlock:lF("splitBlock"),isTransposeCharacter:lF("transposeCharacter"),isUndo:lF("undo"),isTab:lF("tab"),isSelectAll:lF("selectAll")};function fF(e){e.preventDefault()}var dF={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(eO&&!o&&eF(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=sA(r.getTargetRanges(),1)[0];if(s){var l=tO.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&Yf.equals(i,l)||wd.select(n,l)}}if(i&&Yf.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";Ff.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Ff.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Ff.deleteForward(n);break;case"deleteContentBackward":Ff.deleteBackward(n);break;case"deleteEntireSoftLine":Ff.deleteBackward(n,{unit:"line"}),Ff.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Ff.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Ff.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Ff.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Ff.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Ff.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Ff.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Ff.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!T_.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&Ff.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&eF(n,r.target)){var a=tO.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===tO.toDOMNode(n,n)||L_(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&M_(u)&&tO.hasDOMNode(n,u)){var s=tO.toSlateNode(n,u);if(Af.isElement(s)&&!n.isVoid(s))return}if(Z_){var l=a.getSelection();null==l||l.removeAllRanges()}O_.delete(n)}}}},focus:function(e,t,n){var r=tO.toDOMNode(n,n),o=tO.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,Y_&&e.target!==r?r.focus():O_.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&nF(n,e.target)&&M_(e.target)){var r=tO.toSlateNode(n,e.target),o=tO.findPath(n,r);if(Ff.hasPath(n,o)&&Rf.get(n,o)===r){var i=Ff.start(n,o),a=Ff.end(n,o),u=Ff.void(n,{at:i}),s=Ff.void(n,{at:a});if(u&&s&&Uf.equals(u[1],s[1])){var l=Ff.range(n,i);wd.select(n,l)}}}},compositionstart:function(e,t,n){if(eF(n,e.target)){var r=n.selection;if(r&&Yf.isExpanded(r)&&(Ff.deleteFragment(n),Promise.resolve().then((function(){rF(t,n,!0)}))),r&&Yf.isCollapsed(r)){var o=tO.toDOMRange(n,r).startContainer,i=o.textContent||"";oF.set(n,i),iF.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(eF(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(Q_||Y_)&&tO.cleanExposedTexNodeInSelectionBlock(n);for(var i=Yf.isBackward(o)?o.focus:o.anchor,a=sA(Ff.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=sA(Ff.node(n,i.path.slice(0,u+1)),1)[0];if(Af.isElement(s)&&((Z_||Y_)&&"link"===s.type||"code"===s.type)){tO.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=tO.getLeftLengthOfMaxLength(n);c<l.length?(tO.toDOMRange(n,o).startContainer.textContent=oF.get(n)||"",c>0&&Ff.insertText(n,l.slice(0,c)),t.changeViewState()):Ff.insertText(n,l)}else Ff.insertText(n,l);Z_||setTimeout((function(){var e=n.selection;if(null!=e){var t=iF.get(n);null!=t&&tO.toDOMRange(n,e).startContainer!==t&&(t.textContent=oF.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){eF(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&eF(n,r.target)){if(function(e,t){var n=c_.get(e),r=n&&n.getMenus(),o=d_.get(e),i=o&&o.getMenus(),a=aA(aA({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Nv(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),cF.isTab(r))return fF(r),void n.handleTab();if(cF.isRedo(r))return fF(r),void("function"==typeof n.redo&&n.redo());if(cF.isUndo(r))return fF(r),void("function"==typeof n.undo&&n.undo());if(cF.isMoveLineBackward(r))return fF(r),void wd.move(n,{unit:"line",reverse:!0});if(cF.isMoveLineForward(r))return fF(r),void wd.move(n,{unit:"line"});if(cF.isExtendLineBackward(r))return fF(r),void wd.move(n,{unit:"line",edge:"focus",reverse:!0});if(cF.isExtendLineForward(r))return fF(r),void wd.move(n,{unit:"line",edge:"focus"});if(cF.isMoveBackward(r))return fF(r),void(o&&Yf.isCollapsed(o)?wd.move(n,{reverse:!0}):wd.collapse(n,{edge:"start"}));if(cF.isMoveForward(r))return fF(r),void(o&&Yf.isCollapsed(o)?wd.move(n):wd.collapse(n,{edge:"end"}));if(cF.isMoveWordBackward(r))return fF(r),o&&Yf.isExpanded(o)&&wd.collapse(n,{edge:"focus"}),void wd.move(n,{unit:"word",reverse:!0});if(cF.isMoveWordForward(r))return fF(r),o&&Yf.isExpanded(o)&&wd.collapse(n,{edge:"focus"}),void wd.move(n,{unit:"word"});if(cF.isSelectAll(r))return fF(r),void n.selectAll();if(eO){if((Q_||Z_)&&o&&(cF.isDeleteBackward(r)||cF.isDeleteForward(r))&&Yf.isCollapsed(o)){var i=Rf.parent(n,o.anchor.path);if(Af.isElement(i)&&Ff.isVoid(n,i)&&Ff.isInline(n,i))return r.preventDefault(),void wd.delete(n,{unit:"block"})}}else{if(cF.isBold(r)||cF.isItalic(r)||cF.isTransposeCharacter(r))return void fF(r);if(cF.isSplitBlock(r))return fF(r),void Ff.insertBreak(n);if(cF.isDeleteBackward(r))return fF(r),void(o&&Yf.isExpanded(o)?Ff.deleteFragment(n,{direction:"backward"}):Ff.deleteBackward(n));if(cF.isDeleteForward(r))return fF(r),void(o&&Yf.isExpanded(o)?Ff.deleteFragment(n,{direction:"forward"}):Ff.deleteForward(n));if(cF.isDeleteLineBackward(r))return fF(r),void(o&&Yf.isExpanded(o)?Ff.deleteFragment(n,{direction:"backward"}):Ff.deleteBackward(n,{unit:"line"}));if(cF.isDeleteLineForward(r))return fF(r),void(o&&Yf.isExpanded(o)?Ff.deleteFragment(n,{direction:"forward"}):Ff.deleteForward(n,{unit:"line"}));if(cF.isDeleteWordBackward(r))return fF(r),void(o&&Yf.isExpanded(o)?Ff.deleteFragment(n,{direction:"backward"}):Ff.deleteBackward(n,{unit:"word"}));if(cF.isDeleteWordForward(r))return fF(r),void(o&&Yf.isExpanded(o)?Ff.deleteFragment(n,{direction:"forward"}):Ff.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!eO&&!n.getConfig().readOnly&&eF(n,e.target)){e.preventDefault();var r=e.key;Ff.insertText(n,r)}},copy:function(e,t,n){var r=e;if(eF(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&eF(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Yf.isExpanded(o))Ff.deleteFragment(n);else{var a=Rf.parent(n,o.anchor.path);Ff.isVoid(n,a)&&wd.delete(n)}}},paste:function(e,t,n){T_.set(n,!0);var r=e;if(!n.getConfig().readOnly&&eF(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void T_.set(n,!1);if(!eO||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(nF(n,e.target)){var r=tO.toSlateNode(n,e.target);Ff.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(nF(n,r.target)&&!n.getConfig().readOnly){var o=tO.toSlateNode(n,r.target),i=tO.findPath(n,o);if(Ff.isVoid(n,o)||Ff.void(n,{at:i,voids:!0})){var a=Ff.range(n,i);wd.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&nF(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&nF(n,r.target)&&null!=o&&!(eO&&Z_&&o.files.length>0)){r.preventDefault();var i=n.selection,a=tO.findEventRange(n,r);wd.select(n,a),t.isDraggingInternally&&(i&&wd.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},pF=1,hF=function(){function e(e){var t=this;this.id=pF++,this.$textArea=null,this.$progressBar=Up('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Up('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=ng((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=tO.findDocumentOrShadowRoot(t),a=i.activeElement,u=tO.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,O_.set(t,!0)):O_.delete(t),!s)return wd.deselect(t);var l=s.anchorNode,c=s.focusNode,f=eF(t,l)||tF(t,l),d=eF(t,c)||tF(t,c);if(f&&d){var p=tO.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});wd.select(t,p)}else wd.deselect(t)}}(t,e)}),100);var n=Up(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Up('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Up('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,Qk((function(){var e=t.editorInstance,n=tO.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=s_.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(Mh(dF,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",ng((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-tO.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;qT(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=Up('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),Qk((function(){rF(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function gF(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&gF(t)}function vF(){return Up('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function yF(){return Up('<div class="w-e-bar-divider"></div>')}function mF(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=K_?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}RD("match",(function(e,t,n){return[function(t){var n=xw(this),r=null==t?void 0:hE(t,e);return r?aE(r,t,n):new RegExp(t)[e](EC(n))},function(e){var r=oE(this),o=EC(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return KD(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=KD(r,o));){var c=EC(u[0]);s[l]=c,""===c&&(r.lastIndex=MD(o,hx(r.lastIndex),a)),l++}return 0===l?null:s}]}));var bF=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Up('<div class="w-e-bar-item"></div>'),this.$button=Up('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=Up(c);gF(d),f.append(d)}else f.text(a);mF(f,c,a,s,n),n&&c&&f.append(Up('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),Qk((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),FF(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=FF(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=FF(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=FF(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),wF=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return iA(t,e),t.prototype.onButtonClick=function(){},t}(bF),EF=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=h_.get(e);null==t&&(t=new Set,h_.set(e,t)),t.add(this),g_.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=g_.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=g_.get(this);e&&e.emit("modalOrPanelHide")}},e}(),xF=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Up('<div class="w-e-drop-panel"></div>'),n}return iA(t,e),t.prototype.genSelfElem=function(){return null},t}(EF),CF=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=vF();o.$button.append(i)}return o}return iA(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=FF(this);if(null==this.dropPanel){var n=new xF(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(bF),SF=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Up('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return iA(t,e),t.prototype.genSelfElem=function(){var e=this,t=Up('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=g_.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(EF);function DF(e,t,n){var r=Up('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Up('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function AF(e,t){var n=Up('<div class="button-container"></div>'),r=Up('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var _F=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Up("body"),o.modal=null,o.menu=n,o}return iA(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=FF(this),t=this.menu.getModalPositionNode(e);return Af.isElement(t)?CT(e,t,"modal"):xT(e)},t.prototype.handleModal=function(){var e=FF(this),t=this.menu;if(null==this.modal){var n=new SF(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=FF(this),r=this.menu;if(null!=r.getModalContentElem){var o=tO.getTextarea(n),i=tO.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||ST(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(bF),OF=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Up('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return iA(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Up("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Up('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Up('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(u),a.addClass("selected")}a.append(Up('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(EF),kF=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Up('<div class="w-e-bar-item"></div>'),this.$button=Up('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),mF(f,s,i,c,n),this.$elem.append(f),this.menu=t,Qk((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),FF(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=FF(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new OF(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Up(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=FF(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=FF(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=vF();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=FF(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),BF=function(){function e(e){this.$elem=Up('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Up('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Up('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Up(n);gF(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=vF();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){Up(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),TF=new WeakMap;function FF(e){var t=p_.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function PF(e,t,n){void 0===n&&(n=!1);var r=TF.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new CF(e,t,n):a?new _F(e,t,n):new wF(e,t,n)}if("select"===o&&(r=new kF(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return TF.set(t,r),r}function jF(e,t){var n=e.selection;return null!=n&&!Yf.isCollapsed(n)&&!tO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!nd.isText(t)}var IF=function(){function e(){var e=this;this.$elem=Up('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=Qv((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&Af.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),Qk((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),tO.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;Qk((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=yF();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=oO[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=PF(e,r);this.hoverbarItems.push(i),p_.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Af.isElement(e)){var r=CT(t,e,"bar");return n.css(r),void ST(t,n)}if(nd.isText(e))return r=xT(t),n.css(r),void ST(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return tO.checkNodeType(t,o)},c=sA(Ff.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1),f=c[0];if(null!=f)return n=f[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=f_.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=jF),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=tO.findPath(null,e),r=tO.findPath(null,t);return Uf.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function NF(e,t,n,r){if(w_.set(e,t),E_.set(e,n),Af.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return NF(t,n,e,r)})),Ff.isVoid(r,e)){var i=sA(Rf.texts(e),1),a=sA(i[0],1)[0];w_.set(a,0),E_.set(a,e)}}}function RF(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,l=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];bC.withoutSaving(t,()=>{Ff.withoutNormalizing(t,()=>{for(var e of r)t.apply(e)})}),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];bC.withoutSaving(t,()=>{Ff.withoutNormalizing(t,()=>{var e=r.map(zf.inverse).reverse();for(var n of e)t.apply(n)})}),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],s=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,u),l=bC.isSaving(t),c=bC.isMerging(t);if(null==l&&(l=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),l){if(null==c&&(c=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Uf.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Uf.equals(e.path,t.path)))(e,u)||s)),a&&c)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=tO.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=tO.getLeftLengthOfMaxLength(t);n<=0||n<Rf.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(tO.getLeftLengthOfMaxLength(t)<Rf.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=tO.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===I_.TEXT_NODE?e+(t.textContent||""):n===I_.ELEMENT_NODE?GB.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=vT(t);if(r.on(e,n),"destroyed"===e&&mT(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),mT(t,o)}},t.once=function(e,n){vT(t).once(e,n)},t.off=function(e,n){vT(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=vT(t);o.emit.apply(o,lA([e],sA(n))),"destroyed"===e&&(bT(t).forEach((function(e){return o.off("destroyed",e)})),wT(t))},t}(function(e){var t=e;return t.select=function(e){wd.select(t,e)},t.deselect=function(){var n=t.selection,r=tO.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&wd.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||wd.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=k_.get(t);null!=e&&(t.focus(),wd.select(t,e))},t.getSelectionPosition=function(){return xT(t)},t.getNodePosition=function(e){return CT(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=sA(Yf.edges(e),2),r=n[0],o=n[1],i=sA(Ff.edges(t,[]),2),a=i[0],u=i[1];return!(!Wf.equals(r,a)||!Wf.equals(o,u))},t.selectAll=function(){var e=Ff.start(t,[]),n=Ff.end(t,[]);wd.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=uA(Ff.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=sA(p.value,2),g=h[0],v=h[1],y=tO.findKey(t,g);f.push([v,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=uA(Ff.levels(t,{at:Uf.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=sA(b.value,2);g=w[0],v=w[1],y=tO.findKey(t,g),f.push([v,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var E=uA(Ff.levels(t,{at:Uf.common(Uf.parent(e.path),Uf.parent(e.newPath))})),x=E.next();!x.done;x=E.next()){var C=sA(x.value,2);g=C[0],v=C[1],y=tO.findKey(t,g),f.push([v,y])}}catch(e){u={error:e}}finally{try{x&&!x.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var S=uA(f),D=S.next();!D.done;D=S.next()){var A=sA(D.value,2);v=A[0],y=A[1],g=sA(Ff.node(t,v),1)[0],A_.set(g,y)}}catch(e){l={error:e}}finally{try{D&&!D.done&&(c=S.return)&&c.call(S)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&Yf.isCollapsed(e.selection)){var r=Ff.above(e,{match:function(t){return Ff.isBlock(e,t)},at:e.selection});if(r){var o=sA(r,2)[1],a=Ff.range(e,o,e.selection.anchor),u=function(e,t){var n=Ff.range(e,Yf.end(t)),r=Array.from(Ff.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(rB(e,Ff.range(e,r[o]),n))return Ff.range(e,r[o],n);if(r.length<2)return Ff.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)rB(e,Ff.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Ff.range(e,r[i],n)}(t,a);Yf.isCollapsed(u)||wd.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&k_.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText("    ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return eB(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Rf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Ff.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Ff.nodes(t,{at:[],universal:!0});try{for(var u=uA(a),s=u.next();!s.done;s=u.next()){var l=sA(s.value,1)[0];if(Af.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=tB(tO.findKey(t,l).id);i.push(aA(aA({},l),{id:c}))}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(Af.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(nd.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){wd.delete(t,{at:{anchor:Ff.start(t,[]),focus:Ff.end(t,[])}}),0===t.children.length&&wd.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return tO.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===I_.TEXT_NODE||t===I_.ELEMENT_NODE&&!GB.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;tO.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==I_.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(oB.includes(r.toLowerCase()))s=!0;else for(var l in uB)if(a.matches(l)){s=!0;break}if(s){var c=LB(Up(a),t);return Array.isArray(c)?(c.forEach((function(e){return qB(t,e)})),u++):(qB(t,c),u++),void(tO.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;tO.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&tO.isEmptyPath(t,a)&&wd.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=zB(t,e);if(wd.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(Ff.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in oO)e.push(t);return e},t.getConfig=function(){var e=v_.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=KB(Kc());return t.id="wangEditor-"+nO++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(tO.toDOMNode(t,t).focus({preventScroll:!0}),O_.set(t,!0),e){var n=Ff.end(t,[]);wd.select(t,n)}else{var r=k_.get(t);r?wd.select(t,r):wd.select(t,Ff.start(t,[]))}},t.isFocused=function(){return!!O_.get(t)},t.blur=function(){tO.toDOMNode(t,t).blur(),wd.deselect(t),O_.set(t,!1)},t.updateView=function(){tO.getTextarea(t).changeViewState();var e=tO.getToolbar(t);e&&e.changeToolbarState();var n=tO.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=tO.getTextarea(t);e.destroy(),u_.delete(t),s_.delete(e);var n=tO.getToolbar(t);n&&(n.destroy(),c_.delete(t),l_.delete(n));var r=tO.getHoverbar(t);r&&(r.destroy(),d_.delete(t),f_.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=Up("#"+e);if(0!==r.length){var o=r[0];if(!tO.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=tO.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,l=a.offset().top;u[0].scrollBy({top:s-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||tO.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=h_.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return tO.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=tO.getToolbar(t);n&&(e=n.$box);var r=tO.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=tO.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return tO.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return MB(e,"data-w-e-textarea",t)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=ey(rO),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Mh(t,(function(e,t){n[t]=aA(aA({},e),o[t]||{})})),delete e.MENU_CONF,aA({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);v_.set(l,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){l=e(l)})),null!=a&&(l.children=zB(l,a)),i&&i.length&&(l.children=i),0===l.children.length&&(l.children=[{type:"paragraph",children:[{text:""}]}]),tO.normalizeContent(l),n){var p=new hF(n);u_.set(l,p),s_.set(p,l),p.changeViewState(),Qk((function(){var e=p.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var h=void 0;Object.keys(d).length>0&&(h=new IF,f_.set(h,l),d_.set(l,h)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return NF(e,t,l,l)}));var g=c.onCreated,v=c.onDestroyed;return g&&l.on("created",(function(){return g(l)})),v&&l.on("destroyed",(function(){return v(l)})),Qk((function(){return l.emit("created")})),l}var LF=uD("splice"),MF=fw.TypeError,zF=Math.max,UF=Math.min;dC({target:"Array",proto:!0,forced:!LF},{splice:function(e,t){var n,r,o,i,a,u,s=Sw(this),l=gx(s),c=Wx(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=UF(zF(dx(t),0),l-c)),l+n-r>9007199254740991)throw MF("Maximum allowed length exceeded");for(o=_x(s,r),i=0;i<r;i++)(a=c+i)in s&&rS(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var HF=function(){function e(e,t){var n=this;this.$toolbar=Up('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Qv((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Up(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),Qk((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,l=void 0===s?[]:s,c=ey(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=yF();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new BF(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof BF,o=this.menus,i=o[e];if(null==i){var a=oO[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var u=PF(e,i,r);this.toolbarItems.push(u),p_.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=l_.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),$F=WE.EXISTS,VF=EE.f,WF=Function.prototype,GF=ww(WF.toString),qF=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,KF=ww(qF.exec);function YF(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,E=e.onSuccess,x=void 0===E?function(e,t){}:E,C=e.onError,S=void 0===C?function(e,t,n){console.error(e.name+" upload error",t,n)}:C,D=e.onProgress,A=void 0===D?function(e){}:D;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var _=n;d&&(_=function(e,t){var n=sA(e.split("#"),2),r=n[0],o=n[1],i=[];Mh(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(_,c));var O=new jm({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(iw,{endpoint:_,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:m});return O.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{x(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}O.removeFile(e.id)})),O.on("progress",(function(e){e<1||A(e)})),O.on("upload-error",(function(e,t,n){try{S(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}O.removeFile(e.id)})),O.on("restriction-failed",(function(e,t){try{S(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}O.removeFile(e.id)})),O}function ZF(e){return ZF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ZF(e)}function XF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){XF(e,t,n[t])}))}return e}function QF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eP(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 tP(e,t,n){return t&&eP(e.prototype,t),n&&eP(e,n),e}function nP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rP(e,t){if(t&&("object"===ZF(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nP(e)}function oP(e){return oP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oP(e)}function iP(e,t){return iP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},iP(e,t)}function aP(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&iP(e,t)}Zw&&!$F&&VF(WF,"name",{configurable:!0,get:function(){try{return KF(qF,GF(this))[1]}catch(r){return""}}});var uP={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)}},sP=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};QF(this,e),this.init(t,n)}return tP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||uP,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,JF({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),lP=function(){function e(){QF(this,e),this.observers={}}return tP(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function cP(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function fP(e){return null==e?"":""+e}function dP(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function pP(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function hP(e,t,n){var r=pP(e,t,Object);r.obj[r.k]=n}function gP(e,t){var n=pP(e,t),r=n.obj,o=n.k;if(r)return r[o]}function vP(e,t,n){var r=gP(e,n);return void 0!==r?r:gP(t,n)}function yP(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):yP(e[r],t[r],n):e[r]=t[r]);return e}function mP(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var bP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function wP(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return bP[e]})):e}var EP="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function xP(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var l=r.slice(i+a).join(n);return l?xP(s,l,n):void 0}o=o[r[i]]}return o}}var CP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return QF(this,t),n=rP(this,oP(t).call(this)),EP&&lP.call(nP(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return aP(t,lP),tP(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=gP(this.data,a);return u||!i||"string"!=typeof n?u:xP(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),hP(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=gP(this.data,a)||{};r?yP(u,n,o):u=JF({},u,n),hP(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?JF({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),SP={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},DP={},AP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return QF(this,t),n=rP(this,oP(t).call(this)),EP&&lP.call(nP(n)),dP(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,nP(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=sP.create("translator"),n}return aP(t,lP),tP(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==ZF(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&E&&m.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,JF({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var x="[object Array]"===y,C=x?[]:{},S=x?v:g;for(var D in h)if(Object.prototype.hasOwnProperty.call(h,D)){var A="".concat(S).concat(i).concat(D);C[D]=this.translate(A,JF({},n,{joinArrays:!1,ns:s})),C[D]===A&&(C[D]=h[D])}h=C}}else if(w&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var _=!1,O=!1,k=void 0!==n.count&&"string"!=typeof n.count,B=t.hasDefaultValue(n),T=k?this.pluralResolver.getSuffix(c,n.count):"",F=n["defaultValue".concat(T)]||n.defaultValue;!this.isValidLookup(h)&&B&&(_=!0,h=F),this.isValidLookup(h)||(O=!0,h=u);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=P&&O?void 0:h,I=B&&F!==h&&this.options.updateMissing;if(O||_||I){if(this.logger.log(I?"updateKey":"missingKey",c,l,u,I?F:h),i){var N=this.resolve(u,JF({},n,{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var R=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var M=0;M<L.length;M++)R.push(L[M]);else"all"===this.options.saveMissingTo?R=this.languageUtils.toResolveHierarchy(n.lng||this.language):R.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,I?r:j,I,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,I?r:j,I,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?R.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||F)}))})):z(R,u,F))}h=this.extendTranslation(h,e,n,p,r),O&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(O||_)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(JF({},n,{interpolation:JF({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=JF({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=SP.handle(d,e,t,this.options&&this.options.postProcessPassResolved?JF({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!DP["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(DP["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function _P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var OP=function(){function e(t){QF(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=sP.create("languageUtils")}return tP(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=_P(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=_P(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=_P(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),kP=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],BP={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function TP(){var e={};return kP.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:BP[t.fc]}}))})),e}var FP=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};QF(this,e),this.languageUtils=t,this.options=n,this.logger=sP.create("pluralResolver"),this.rules=TP()}return tP(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),PP=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};QF(this,e),this.logger=sP.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return tP(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:wP,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?mP(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?mP(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?mP(t.nestingPrefix):t.nestingPrefixEscaped||mP("$t("),this.nestingSuffix=t.nestingSuffix?mP(t.nestingSuffix):t.nestingSuffixEscaped||mP(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=vP(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,JF({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(vP(t,s,a),l,n,JF({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=fP(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=JF({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=JF({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=fP(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,JF({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),jP=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return QF(this,t),o=rP(this,oP(t).call(this)),EP&&lP.call(nP(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=sP.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return aP(t,lP),tP(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=pP(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,JF({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function IP(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===ZF(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===ZF(e[2])||"object"===ZF(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function NP(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function RP(){}var LP=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(QF(this,t),e=rP(this,oP(t).call(this)),EP&&lP.call(nP(e)),e.options=NP(n),e.services={},e.logger=sP,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),rP(e,nP(e));setTimeout((function(){e.init(n,r)}),0)}return e}return aP(t,lP),tP(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=JF({},IP(),this.options,NP(t)),this.format=this.options.interpolation.format,n||(n=RP),!this.options.isClone){this.modules.logger?sP.init(r(this.modules.logger),this.options):sP.init(null,this.options);var o=new OP(this.options);this.store=new CP(this.options.resources,this.options);var i=this.services;i.logger=sP,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new FP(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new PP(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new jP(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new AP(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=cP(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:RP,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=cP();return e||(e=this.languages),t||(t=this.options.ns),n||(n=RP),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&SP.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=cP();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==ZF(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=JF({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=cP();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=cP();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:RP,o=JF({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=JF({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new AP(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),MP=new LP;function zP(e,t){MP.addResourceBundle(e,"translation",t,!0,!0)}MP.init({lng:"zh-CN",resources:{}});var UP=MP.t.bind(MP);zP("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),zP("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var HP=ra?{}.toString:function(){return"[object "+ua(this)+"]"};ra||Si(Object.prototype,"toString",HP,{unsafe:!0});var $P=Array.isArray||function(e){return"Array"==Wr(e)},VP=function(){},WP=[],GP=to("Reflect","construct"),qP=/^\s*(?:class|function)\b/,KP=Hr(qP.exec),YP=!qP.exec(VP),ZP=function(e){if(!Jr(e))return!1;try{return GP(VP,WP,e),!0}catch(e){return!1}},XP=!GP||kr((function(){var e;return ZP(ZP.call)||!ZP(Object)||!ZP((function(){e=!0}))||e}))?function(e){if(!Jr(e))return!1;switch(ua(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return YP||!!KP(qP,ai(e))}:ZP,JP=No("species"),QP=Or.Array,ej=function(e,t){return new(function(e){var t;return $P(e)&&(t=e.constructor,(XP(t)&&(t===QP||$P(t.prototype))||Qr(t)&&null===(t=t[JP]))&&(t=void 0)),void 0===t?QP:t}(e))(0===t?0:t)},tj=Hr([].push),nj=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=Do(s),g=Kr(h),v=wu(l,c),y=Pi(g),m=0,b=f||ej,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:tj(w,d)}else switch(e){case 4:return!1;case 7:tj(w,d)}return i?-1:r||o?o:w}},rj={forEach:nj(0),map:nj(1),filter:nj(2),some:nj(3),every:nj(4),find:nj(5),findIndex:nj(6),filterReject:nj(7)}.forEach,oj=function(e,t){var n=[][e];return!!n&&kr((function(){n.call(null,t||function(){throw 1},1)}))}("forEach"),ij=oj?[].forEach:function(e){return rj(this,e,arguments.length>1?arguments[1]:void 0)},aj=function(e){if(e&&e.forEach!==ij)try{ti(e,"forEach",ij)}catch(o){e.forEach=ij}};for(var uj in hs)hs[uj]&&aj(Or[uj]&&Or[uj].prototype);aj(ys),zP("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),zP("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var sj={type:"paragraph",renderElem:function(e,t,n){return Ig("p",null,t)}},lj="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function cj(e){var t={exports:{}};return e(t,t.exports),t.exports}var fj,dj,pj=function(e){return e&&e.Math==Math&&e},hj=pj("object"==typeof globalThis&&globalThis)||pj("object"==typeof window&&window)||pj("object"==typeof self&&self)||pj("object"==typeof lj&&lj)||function(){return this}()||Function("return this")(),gj=function(e){try{return!!e()}catch(e){return!0}},vj=!gj((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),yj=Function.prototype.call,mj=yj.bind?yj.bind(yj):function(){return yj.apply(yj,arguments)},bj={}.propertyIsEnumerable,wj=Object.getOwnPropertyDescriptor,Ej=wj&&!bj.call({1:2},1)?function(e){var t=wj(this,e);return!!t&&t.enumerable}:bj,xj={f:Ej},Cj=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Sj=Function.prototype,Dj=Sj.bind,Aj=Sj.call,_j=Dj&&Dj.bind(Aj),Oj=Dj?function(e){return e&&_j(Aj,e)}:function(e){return e&&function(){return Aj.apply(e,arguments)}},kj=Oj({}.toString),Bj=Oj("".slice),Tj=function(e){return Bj(kj(e),8,-1)},Fj=hj.Object,Pj=Oj("".split),jj=gj((function(){return!Fj("z").propertyIsEnumerable(0)}))?function(e){return"String"==Tj(e)?Pj(e,""):Fj(e)}:Fj,Ij=hj.TypeError,Nj=function(e){if(null==e)throw Ij("Can't call method on "+e);return e},Rj=function(e){return jj(Nj(e))},Lj=function(e){return"function"==typeof e},Mj=function(e){return"object"==typeof e?null!==e:Lj(e)},zj=function(e){return Lj(e)?e:void 0},Uj=function(e,t){return arguments.length<2?zj(hj[e]):hj[e]&&hj[e][t]},Hj=Oj({}.isPrototypeOf),$j=Uj("navigator","userAgent")||"",Vj=hj.process,Wj=hj.Deno,Gj=Vj&&Vj.versions||Wj&&Wj.version,qj=Gj&&Gj.v8;qj&&(dj=(fj=qj.split("."))[0]>0&&fj[0]<4?1:+(fj[0]+fj[1])),!dj&&$j&&(!(fj=$j.match(/Edge\/(\d+)/))||fj[1]>=74)&&(fj=$j.match(/Chrome\/(\d+)/))&&(dj=+fj[1]);var Kj=dj,Yj=!!Object.getOwnPropertySymbols&&!gj((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Kj&&Kj<41})),Zj=Yj&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xj=hj.Object,Jj=Zj?function(e){return"symbol"==typeof e}:function(e){var t=Uj("Symbol");return Lj(t)&&Hj(t.prototype,Xj(e))},Qj=hj.String,eI=function(e){try{return Qj(e)}catch(e){return"Object"}},tI=hj.TypeError,nI=function(e){if(Lj(e))return e;throw tI(eI(e)+" is not a function")},rI=function(e,t){var n=e[t];return null==n?void 0:nI(n)},oI=hj.TypeError,iI=Object.defineProperty,aI=function(e,t){try{iI(hj,e,{value:t,configurable:!0,writable:!0})}catch(i){hj[e]=t}return t},uI=hj["__core-js_shared__"]||aI("__core-js_shared__",{}),sI=cj((function(e){(e.exports=function(e,t){return uI[e]||(uI[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),lI=hj.Object,cI=function(e){return lI(Nj(e))},fI=Oj({}.hasOwnProperty),dI=Object.hasOwn||function(e,t){return fI(cI(e),t)},pI=0,hI=Math.random(),gI=Oj(1..toString),vI=function(e){return"Symbol("+(void 0===e?"":e)+")_"+gI(++pI+hI,36)},yI=sI("wks"),mI=hj.Symbol,bI=mI&&mI.for,wI=Zj?mI:mI&&mI.withoutSetter||vI,EI=function(e){if(!dI(yI,e)||!Yj&&"string"!=typeof yI[e]){var t="Symbol."+e;Yj&&dI(mI,e)?yI[e]=mI[e]:yI[e]=Zj&&bI?bI(t):wI(t)}return yI[e]},xI=hj.TypeError,CI=EI("toPrimitive"),SI=function(e){var t=function(e,t){if(!Mj(e)||Jj(e))return e;var n,r=rI(e,CI);if(r){if(void 0===t&&(t="default"),n=mj(r,e,t),!Mj(n)||Jj(n))return n;throw xI("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Lj(n=e.toString)&&!Mj(r=mj(n,e)))return r;if(Lj(n=e.valueOf)&&!Mj(r=mj(n,e)))return r;if("string"!==t&&Lj(n=e.toString)&&!Mj(r=mj(n,e)))return r;throw oI("Can't convert object to primitive value")}(e,t)}(e,"string");return Jj(t)?t:t+""},DI=hj.document,AI=Mj(DI)&&Mj(DI.createElement),_I=function(e){return AI?DI.createElement(e):{}},OI=!vj&&!gj((function(){return 7!=Object.defineProperty(_I("div"),"a",{get:function(){return 7}}).a})),kI=Object.getOwnPropertyDescriptor,BI={f:vj?kI:function(e,t){if(e=Rj(e),t=SI(t),OI)try{return kI(e,t)}catch(e){}if(dI(e,t))return Cj(!mj(xj.f,e,t),e[t])}},TI=hj.String,FI=hj.TypeError,PI=function(e){if(Mj(e))return e;throw FI(TI(e)+" is not an object")},jI=hj.TypeError,II=Object.defineProperty,NI={f:vj?II:function(e,t,n){if(PI(e),t=SI(t),PI(n),OI)try{return II(e,t,n)}catch(e){}if("get"in n||"set"in n)throw jI("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},RI=vj?function(e,t,n){return NI.f(e,t,Cj(1,n))}:function(e,t,n){return e[t]=n,e},LI=Oj(Function.toString);Lj(uI.inspectSource)||(uI.inspectSource=function(e){return LI(e)});var MI,zI,UI,HI=uI.inspectSource,$I=hj.WeakMap,VI=Lj($I)&&/native code/.test(HI($I)),WI=sI("keys"),GI=function(e){return WI[e]||(WI[e]=vI(e))},qI={},KI=hj.TypeError,YI=hj.WeakMap;if(VI||uI.state){var ZI=uI.state||(uI.state=new YI),XI=Oj(ZI.get),JI=Oj(ZI.has),QI=Oj(ZI.set);MI=function(e,t){if(JI(ZI,e))throw new KI("Object already initialized");return t.facade=e,QI(ZI,e,t),t},zI=function(e){return XI(ZI,e)||{}},UI=function(e){return JI(ZI,e)}}else{var eN=GI("state");qI[eN]=!0,MI=function(e,t){if(dI(e,eN))throw new KI("Object already initialized");return t.facade=e,RI(e,eN,t),t},zI=function(e){return dI(e,eN)?e[eN]:{}},UI=function(e){return dI(e,eN)}}var tN={set:MI,get:zI,has:UI,enforce:function(e){return UI(e)?zI(e):MI(e,{})},getterFor:function(e){return function(t){var n;if(!Mj(t)||(n=zI(t)).type!==e)throw KI("Incompatible receiver, "+e+" required");return n}}},nN=Function.prototype,rN=vj&&Object.getOwnPropertyDescriptor,oN=dI(nN,"name"),iN={EXISTS:oN,PROPER:oN&&"something"===function(){}.name,CONFIGURABLE:oN&&(!vj||vj&&rN(nN,"name").configurable)},aN=cj((function(e){var t=iN.CONFIGURABLE,n=tN.get,r=tN.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Lj(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!dI(i,"name")||t&&i.name!==f)&&RI(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==hj?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:RI(e,n,i)):l?e[n]=i:aI(n,i)})(Function.prototype,"toString",(function(){return Lj(this)&&n(this).source||HI(this)}))})),uN=Math.ceil,sN=Math.floor,lN=function(e){var t=+e;return t!=t||0===t?0:(t>0?sN:uN)(t)},cN=Math.max,fN=Math.min,dN=function(e,t){var n=lN(e);return n<0?cN(n+t,0):fN(n,t)},pN=Math.min,hN=function(e){return e>0?pN(lN(e),9007199254740991):0},gN=function(e){return hN(e.length)},vN=function(e){return function(t,n,r){var o,i=Rj(t),a=gN(i),u=dN(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},yN={includes:vN(!0),indexOf:vN(!1)},mN=yN.indexOf,bN=Oj([].push),wN=function(e,t){var n,r=Rj(e),o=0,i=[];for(n in r)!dI(qI,n)&&dI(r,n)&&bN(i,n);for(;t.length>o;)dI(r,n=t[o++])&&(~mN(i,n)||bN(i,n));return i},EN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xN=EN.concat("length","prototype"),CN={f:Object.getOwnPropertyNames||function(e){return wN(e,xN)}},SN={f:Object.getOwnPropertySymbols},DN=Oj([].concat),AN=Uj("Reflect","ownKeys")||function(e){var t=CN.f(PI(e)),n=SN.f;return n?DN(t,n(e)):t},_N=function(e,t){for(var n=AN(t),r=NI.f,o=BI.f,i=0;i<n.length;i++){var a=n[i];dI(e,a)||r(e,a,o(t,a))}},ON=/#|\.prototype\./,kN=function(e,t){var n=TN[BN(e)];return n==PN||n!=FN&&(Lj(t)?gj(t):!!t)},BN=kN.normalize=function(e){return String(e).replace(ON,".").toLowerCase()},TN=kN.data={},FN=kN.NATIVE="N",PN=kN.POLYFILL="P",jN=kN,IN=BI.f,NN=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?hj:l?hj[u]||aI(u,{}):(hj[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=IN(n,r))&&a.value:n[r],!jN(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;_N(i,o)}(e.sham||o&&o.sham)&&RI(i,"sham",!0),aN(n,r,i,e)}},RN=Oj(Oj.bind),LN=Array.isArray||function(e){return"Array"==Tj(e)},MN={};MN[EI("toStringTag")]="z";var zN="[object z]"===String(MN),UN=EI("toStringTag"),HN=hj.Object,$N="Arguments"==Tj(function(){return arguments}()),VN=zN?Tj:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=HN(e),UN))?n:$N?Tj(t):"Object"==(r=Tj(t))&&Lj(t.callee)?"Arguments":r},WN=function(){},GN=[],qN=Uj("Reflect","construct"),KN=/^\s*(?:class|function)\b/,YN=Oj(KN.exec),ZN=!KN.exec(WN),XN=function(e){if(!Lj(e))return!1;try{return qN(WN,GN,e),!0}catch(e){return!1}},JN=!qN||gj((function(){var e;return XN(XN.call)||!XN(Object)||!XN((function(){e=!0}))||e}))?function(e){if(!Lj(e))return!1;switch(VN(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ZN||!!YN(KN,HI(e))}:XN,QN=EI("species"),eR=hj.Array,tR=function(e,t){return new(function(e){var t;return LN(e)&&(t=e.constructor,(JN(t)&&(t===eR||LN(t.prototype))||Mj(t)&&null===(t=t[QN]))&&(t=void 0)),void 0===t?eR:t}(e))(0===t?0:t)},nR=Oj([].push),rR=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=cI(s),g=jj(h),v=function(e,t){return nI(e),void 0===t?e:RN?RN(e,t):function(){return e.apply(t,arguments)}}(l,c),y=gN(g),m=0,b=f||tR,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:nR(w,d)}else switch(e){case 4:return!1;case 7:nR(w,d)}return i?-1:r||o?o:w}},oR={forEach:rR(0),map:rR(1),filter:rR(2),some:rR(3),every:rR(4),find:rR(5),findIndex:rR(6),filterReject:rR(7)},iR=EI("species"),aR=function(e){return Kj>=51||!gj((function(){var t=[];return(t.constructor={})[iR]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},uR=oR.filter;NN({target:"Array",proto:!0,forced:!aR("filter")},{filter:function(e){return uR(this,e,arguments.length>1?arguments[1]:void 0)}});var sR=zN?{}.toString:function(){return"[object "+VN(this)+"]"};zN||aN(Object.prototype,"toString",sR,{unsafe:!0});var lR,cR=hj.String,fR=function(e){if("Symbol"===VN(e))throw TypeError("Cannot convert a Symbol value to a string");return cR(e)},dR=function(){var e=PI(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},pR=hj.RegExp,hR=gj((function(){var e=pR("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),gR=hR||gj((function(){return!pR("a","y").sticky})),vR={BROKEN_CARET:hR||gj((function(){var e=pR("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:gR,UNSUPPORTED_Y:hR},yR=Object.keys||function(e){return wN(e,EN)},mR=vj?Object.defineProperties:function(e,t){PI(e);for(var n,r=Rj(t),o=yR(t),i=o.length,a=0;i>a;)NI.f(e,n=o[a++],r[n]);return e},bR=Uj("document","documentElement"),wR=GI("IE_PROTO"),ER=function(){},xR=function(e){return"<script>"+e+"<\/script>"},CR=function(e){e.write(xR("")),e.close();var t=e.parentWindow.Object;return e=null,t},SR=function(){try{lR=new ActiveXObject("htmlfile")}catch(e){}var e,t;SR="undefined"!=typeof document?document.domain&&lR?CR(lR):((t=_I("iframe")).style.display="none",bR.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(xR("document.F=Object")),e.close(),e.F):CR(lR);for(var n=EN.length;n--;)delete SR.prototype[EN[n]];return SR()};qI[wR]=!0;var DR,AR,_R=Object.create||function(e,t){var n;return null!==e?(ER.prototype=PI(e),n=new ER,ER.prototype=null,n[wR]=e):n=SR(),void 0===t?n:mR(n,t)},OR=hj.RegExp,kR=gj((function(){var e=OR(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),BR=hj.RegExp,TR=gj((function(){var e=BR("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),FR=tN.get,PR=sI("native-string-replace",String.prototype.replace),jR=RegExp.prototype.exec,IR=jR,NR=Oj("".charAt),RR=Oj("".indexOf),LR=Oj("".replace),MR=Oj("".slice),zR=(AR=/b*/g,mj(jR,DR=/a/,"a"),mj(jR,AR,"a"),0!==DR.lastIndex||0!==AR.lastIndex),UR=vR.BROKEN_CARET,HR=void 0!==/()??/.exec("")[1];(zR||HR||UR||kR||TR)&&(IR=function(e){var t,n,r,o,i,a,u,s=this,l=FR(s),c=fR(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=mj(IR,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=UR&&s.sticky,h=mj(dR,s),g=s.source,v=0,y=c;if(p&&(h=LR(h,"y",""),-1===RR(h,"g")&&(h+="g"),y=MR(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==NR(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),HR&&(n=new RegExp("^"+g+"$(?!\\s)",h)),zR&&(r=s.lastIndex),o=mj(jR,p?n:s,y),p?o?(o.input=MR(o.input,v),o[0]=MR(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:zR&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),HR&&o&&o.length>1&&mj(PR,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=_R(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var $R=IR;NN({target:"RegExp",proto:!0,forced:/./.exec!==$R},{exec:$R});var VR=Function.prototype,WR=VR.apply,GR=VR.bind,qR=VR.call,KR="object"==typeof Reflect&&Reflect.apply||(GR?qR.bind(WR):function(){return qR.apply(WR,arguments)}),YR=EI("species"),ZR=RegExp.prototype,XR=function(e,t,n,r){var o=EI(e),i=!gj((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!gj((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[YR]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Oj(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Oj(e),s=t.exec;return s===$R||s===ZR.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));aN(String.prototype,e,s[0]),aN(ZR,o,s[1])}r&&RI(ZR[o],"sham",!0)},JR=Oj("".charAt),QR=Oj("".charCodeAt),eL=Oj("".slice),tL=function(e){return function(t,n){var r,o,i=fR(Nj(t)),a=lN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=QR(i,a))<55296||r>56319||a+1===u||(o=QR(i,a+1))<56320||o>57343?e?JR(i,a):r:e?eL(i,a,a+2):o-56320+(r-55296<<10)+65536}},nL=(tL(!1),tL(!0)),rL=function(e,t,n){return t+(n?nL(e,t).length:1)},oL=Math.floor,iL=Oj("".charAt),aL=Oj("".replace),uL=Oj("".slice),sL=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,lL=/\$([$&'`]|\d{1,2})/g,cL=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=lL;return void 0!==o&&(o=cI(o),s=sL),aL(i,s,(function(i,s){var l;switch(iL(s,0)){case"$":return"$";case"&":return e;case"`":return uL(t,0,n);case"'":return uL(t,a);case"<":l=o[uL(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=oL(c/10);return 0===f?i:f<=u?void 0===r[f-1]?iL(s,1):r[f-1]+iL(s,1):i}l=r[c-1]}return void 0===l?"":l}))},fL=hj.TypeError,dL=function(e,t){var n=e.exec;if(Lj(n)){var r=mj(n,e,t);return null!==r&&PI(r),r}if("RegExp"===Tj(e))return mj($R,e,t);throw fL("RegExp#exec called on incompatible receiver")},pL=EI("replace"),hL=Math.max,gL=Math.min,vL=Oj([].concat),yL=Oj([].push),mL=Oj("".indexOf),bL=Oj("".slice),wL="$0"==="a".replace(/./,"$0"),EL=!!/./[pL]&&""===/./[pL]("a","$0");XR("replace",(function(e,t,n){var r=EL?"$":"$0";return[function(e,n){var r=Nj(this),o=null==e?void 0:rI(e,pL);return o?mj(o,e,r,n):mj(t,fR(r),e,n)},function(e,o){var i=PI(this),a=fR(e);if("string"==typeof o&&-1===mL(o,r)&&-1===mL(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Lj(o);s||(o=fR(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=dL(i,a);if(null===d)break;if(yL(f,d),!l)break;""===fR(d[0])&&(i.lastIndex=rL(a,hN(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=fR((d=f[v])[0]),m=hL(gL(lN(d.index),a.length),0),b=[],w=1;w<d.length;w++)yL(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=vL([y],b,m,a);void 0!==E&&yL(x,E);var C=fR(KR(o,void 0,x))}else C=cL(y,a,m,b,E,o);m>=g&&(h+=bL(a,g,m)+C,g=m+y.length)}return h+bL(a,g)}]}),!!gj((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!wL||EL);var xL=EI("unscopables"),CL=Array.prototype;null==CL[xL]&&NI.f(CL,xL,{configurable:!0,value:_R(null)});var SL=function(e){CL[xL][e]=!0},DL=oR.find,AL=!0;"find"in[]&&Array(1).find((function(){AL=!1})),NN({target:"Array",proto:!0,forced:AL},{find:function(e){return DL(this,e,arguments.length>1?arguments[1]:void 0)}}),SL("find");var _L=EI("match"),OL=function(e){var t;return Mj(e)&&(void 0!==(t=e[_L])?!!t:"RegExp"==Tj(e))},kL=hj.TypeError,BL=EI("species"),TL=function(e,t,n){var r=SI(t);r in e?NI.f(e,r,Cj(0,n)):e[r]=n},FL=hj.Array,PL=Math.max,jL=function(e,t,n){for(var r=gN(e),o=dN(t,r),i=dN(void 0===n?r:n,r),a=FL(PL(i-o,0)),u=0;o<i;o++,u++)TL(a,u,e[o]);return a.length=u,a},IL=vR.UNSUPPORTED_Y,NL=Math.min,RL=[].push,LL=Oj(/./.exec),ML=Oj(RL),zL=Oj("".slice);XR("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=fR(Nj(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!OL(e))return mj(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=mj($R,f,r))&&!((a=f.lastIndex)>c&&(ML(s,zL(r,c,i.index)),i.length>1&&i.index<r.length&&KR(RL,s,jL(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&LL(f,"")||ML(s,""):ML(s,zL(r,c)),s.length>o?jL(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:mj(t,this,e,n)}:t,[function(t,n){var o=Nj(this),i=null==t?void 0:rI(t,e);return i?mj(i,t,o,n):mj(r,fR(o),t,n)},function(e,o){var i=PI(this),a=fR(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=PI(e).constructor;return void 0===r||null==(n=PI(r)[BL])?t:function(e){if(JN(e))return e;throw kL(eI(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(IL?"g":"y"),f=new s(IL?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===dL(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=IL?0:h;var v,y=dL(f,IL?zL(a,h):a);if(null===y||(v=NL(hN(f.lastIndex+(IL?h:0)),a.length))===p)h=rL(a,h,l);else{if(ML(g,zL(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(ML(g,y[m]),g.length===d)return g;h=p=v}}return ML(g,zL(a,p)),g}]}),!!gj((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),IL);var UL="\t\n\v\f\r                 \u2028\u2029\ufeff",HL=Oj("".replace),$L="["+UL+"]",VL=RegExp("^"+$L+$L+"*"),WL=RegExp($L+$L+"*$"),GL=function(e){return function(t){var n=fR(Nj(t));return 1&e&&(n=HL(n,VL,"")),2&e&&(n=HL(n,WL,"")),n}},qL={start:GL(1),end:GL(2),trim:GL(3)},KL=iN.PROPER,YL=qL.trim;function ZL(e){return 0===Up("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function XL(e){return 0===e.length?"":e[0].outerHTML}function JL(e){return e.length?e[0].tagName.toLowerCase():""}function QL(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}NN({target:"String",proto:!0,forced:gj((function(){return!!UL.trim()||"​…᠎"!=="​…᠎".trim()||KL&&"trim"!==UL.trim.name}))},{trim:function(){return YL(this)}}),NN({global:!0},{globalThis:hj}),nh&&(Up.fn.css=nh),sh&&(Up.fn.append=sh),lh&&(Up.fn.prepend=lh),Hp&&(Up.fn.addClass=Hp),$p&&(Up.fn.removeClass=$p),Vp&&(Up.fn.hasClass=Vp),Yp&&(Up.fn.on=Yp),Zp&&(Up.fn.off=Zp),bh&&(Up.fn.focus=bh),Wp&&(Up.fn.attr=Wp),Gp&&(Up.fn.removeAttr=Gp),eh&&(Up.fn.hide=eh),th&&(Up.fn.show=th),fh&&(Up.fn.parents=fh),qp&&(Up.fn.dataset=qp),Kp&&(Up.fn.val=Kp),ah&&(Up.fn.text=ah),ih&&(Up.fn.html=ih),ph&&(Up.fn.children=ph),hh&&(Up.fn.remove=hh),dh&&(Up.fn.find=dh),Xp&&(Up.fn.width=Xp),Jp&&(Up.fn.height=Jp),oh&&(Up.fn.filter=oh),gh&&(Up.fn.empty=gh);var eM={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Up(e);return 0===(t=t.filter((function(e){return!!nd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},tM=function(e,t){return tM=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])},tM(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 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(Ff.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(""!==Rf.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=Oj("".replace),dM=function(e,t,n,r){var o=fR(Nj(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+fM(fR(r),cM,"&quot;")+'"'),i+">"+o+"</"+t+">"},pM=function(e){return gj((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 gM(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}NN({target:"String",proto:!0,forced:pM("bold")},{bold:function(){return dM(this,"b","","")}}),NN({target:"String",proto:!0,forced:pM("italics")},{italics:function(){return dM(this,"i","","")}}),NN({target:"String",proto:!0,forced:pM("sub")},{sub:function(){return dM(this,"sub","","")}}),NN({target:"String",proto:!0,forced:pM("sup")},{sup:function(){return dM(this,"sup","","")}});var vM={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},yM=_I("span").classList,mM=yM&&yM.constructor&&yM.constructor.prototype,bM=mM===Object.prototype?void 0:mM,wM=function(e,t){var n=[][e];return!!n&&gj((function(){n.call(null,t||function(){throw 1},1)}))},EM=oR.forEach,xM=wM("forEach")?[].forEach:function(e){return EM(this,e,arguments.length>1?arguments[1]:void 0)},CM=function(e){if(e&&e.forEach!==xM)try{RI(e,"forEach",xM)}catch(o){e.forEach=xM}};for(var SM in vM)vM[SM]&&CM(hj[SM]&&hj[SM].prototype);function DM(e,t){return null==e.selection||!!uM(Ff.nodes(e,{match:function(t){return"pre"===tO.getNodeType(t)||!!Ff.isVoid(e,t)},universal:!0}),1)[0]}function AM(e,t){Object.keys(t).forEach((function(t){"text"!==t&&Ff.removeMark(e,t)}))}CM(bM),NN({target:"Object",stat:!0,forced:gj((function(){yR(1)}))},{keys:function(e){return yR(cI(e))}});var _M=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Ff.marks(e);return n?n[t]:!!uM(Ff.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return DM(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),OM='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',kM='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',BM='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',TM='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',FM='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',PM='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',jM='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',IM='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',NM='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',RM='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',LM='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',MM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',zM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',UM='<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>',HM='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',$M='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',VM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',WM='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',GM='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',qM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=UP("textStyle.bold"),t.iconSvg=OM,t.hotkey="mod+b",t}return nM(t,e),t}(_M),KM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=UP("textStyle.code"),t.iconSvg=FM,t.hotkey="mod+e",t}return nM(t,e),t}(_M),YM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=UP("textStyle.italic"),t.iconSvg=BM,t.hotkey="mod+i",t}return nM(t,e),t}(_M),ZM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=UP("textStyle.through"),t.iconSvg=TM,t.hotkey="mod+shift+x",t}return nM(t,e),t}(_M),XM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=UP("textStyle.underline"),t.iconSvg=kM,t.hotkey="mod+u",t}return nM(t,e),t}(_M),JM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=UP("textStyle.sub"),t.iconSvg=GM,t.hotkey="",t}return nM(t,e),t}(_M),QM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=UP("textStyle.sup"),t.iconSvg=WM,t.hotkey="",t}return nM(t,e),t}(_M),ez=function(){function e(){this.title=UP("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return DM(e)},e.prototype.exec=function(e,t){var n,r,o=Ff.nodes(e,{match:function(e){return nd.isText(e)},universal:!0});try{for(var i=aM(o),a=i.next();!a.done;a=i.next())AM(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),tz={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=Ig("strong",null,c)),a&&(c=Ig("code",null,c)),o&&(c=Ig("em",null,c)),i&&(c=Ig("u",null,c)),u&&(c=Ig("s",null,c)),s&&(c=Ig("sub",null,c)),l&&(c=Ig("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new qM}},{key:"underline",factory:function(){return new XM}},{key:"italic",factory:function(){return new YM}},{key:"through",factory:function(){return new ZM}},{key:"code",factory:function(){return new KM}},{key:"sub",factory:function(){return new JM}},{key:"sup",factory:function(){return new QM}},{key:"clearStyle",factory:function(){return new ez}}],styleToHtml:function(e,t){if(!nd.isText(e))return t;if(ZL(t))return hM(e,t);var n=Up(t);if("br"===JL(n))return hM(e,"<br>");var r=n.html();return r=hM(e,r),n.html(r),XL(n)},parseStyleHtml:function(e,t,n){var r=Up(e);if(!nd.isText(t))return t;var o=t;return gM(r,"b,strong")&&(o.bold=!0),gM(r,"i,em")&&(o.italic=!0),gM(r,"u")&&(o.underline=!0),gM(r,"s,strike")&&(o.through=!0),gM(r,"sub")&&(o.sub=!0),gM(r,"sup")&&(o.sup=!0),gM(r,"code")&&(o.code=!0),o}};function nz(e){return function(t,n,r){return Ig("h"+e,null,n)}}var rz={type:"header1",renderElem:nz(1)},oz={type:"header2",renderElem:nz(2)},iz={type:"header3",renderElem:nz(3)},az={type:"header4",renderElem:nz(4)},uz={type:"header5",renderElem:nz(5)},sz=iN.PROPER,lz=RegExp.prototype,cz=lz.toString,fz=Oj(dR),dz=gj((function(){return"/a/b"!=cz.call({source:"a",flags:"b"})})),pz=sz&&"toString"!=cz.name;(dz||pz)&&aN(RegExp.prototype,"toString",(function(){var e=PI(this),t=fR(e.source),n=e.flags;return"/"+t+"/"+fR(void 0===n&&Hj(lz,e)&&!("flags"in lz)?fz(e):n)}),{unsafe:!0});var hz,gz=hj.TypeError,vz=function(e){if(OL(e))throw gz("The method doesn't accept regular expressions");return e},yz=EI("match"),mz=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[yz]=!1,"/./"[e](t)}catch(e){}}return!1},bz=BI.f,wz=Oj("".startsWith),Ez=Oj("".slice),xz=Math.min,Cz=mz("startsWith");function Sz(e){var t=uM(Ff.nodes(e,{match:function(e){return tO.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=uM(n,1)[0];return tO.getNodeType(r)}function Dz(e){return null==e.selection||!uM(Ff.nodes(e,{match:function(e){var t=tO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function Az(e,t){t&&wd.setNodes(e,{type:t})}NN({target:"String",proto:!0,forced:!(!Cz&&(hz=bz(String.prototype,"startsWith"),hz&&!hz.writable)||Cz)},{startsWith:function(e){var t=fR(Nj(this));vz(e);var n=hN(xz(arguments.length>1?arguments[1]:void 0,t.length)),r=fR(e);return wz?wz(t,r,n):Ez(t,n,n+r.length)===r}});var _z=function(){function e(){this.title=UP("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:UP("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return Sz(e)},e.prototype.isDisabled=function(e){return Dz(e)},e.prototype.exec=function(e,t){Az(e,t.toString())},e}(),Oz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return Sz(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return Dz(e)},e.prototype.exec=function(e,t){var n=this.type;Az(e,t===n?"paragraph":n)},e}(),kz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return nM(t,e),t}(Oz),Bz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return nM(t,e),t}(Oz),Tz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return nM(t,e),t}(Oz),Fz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return nM(t,e),t}(Oz),Pz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return nM(t,e),t}(Oz),jz={key:"headerSelect",factory:function(){return new _z}},Iz={key:"header1",factory:function(){return new kz}},Nz={key:"header2",factory:function(){return new Bz}},Rz={key:"header3",factory:function(){return new Tz}},Lz={key:"header4",factory:function(){return new Fz}},Mz={key:"header5",factory:function(){return new Pz}};function zz(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Uz(e){return function(t,n,r){var o=Up(t);return 0===(n=n.filter((function(e){return!!nd.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var Hz={renderElems:[rz,oz,iz,az,uz],elemsToHtml:[{type:"header1",elemToHtml:zz(1)},{type:"header2",elemToHtml:zz(2)},{type:"header3",elemToHtml:zz(3)},{type:"header4",elemToHtml:zz(4)},{type:"header5",elemToHtml:zz(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Uz(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Uz(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Uz(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Uz(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Uz(5)}],menus:[jz,Iz,Nz,Rz,Lz,Mz],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=uM(Ff.nodes(n,{match:function(e){return tO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&tO.isSelectionAtLineEnd(e,r[1])?wd.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},$z=Object.assign,Vz=Object.defineProperty,Wz=Oj([].concat),Gz=!$z||gj((function(){if(vj&&1!==$z({b:1},$z(Vz({},"a",{enumerable:!0,get:function(){Vz(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=$z({},e)[n]||yR($z({},t)).join("")!=r}))?function(e,t){for(var n=cI(e),r=arguments.length,o=1,i=SN.f,a=xj.f;r>o;)for(var u,s=jj(arguments[o++]),l=i?Wz(yR(s),i(s)):yR(s),c=l.length,f=0;c>f;)u=l[f++],vj&&!mj(a,s,u)||(n[u]=s[u]);return n}:$z;function qz(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}NN({target:"Object",stat:!0,forced:Object.assign!==Gz},{assign:Gz});var Kz={selector:"font",preParseHtml:function(e){var t=Up(e);if("font"!==JL(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},Yz=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=Ff.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!uM(Ff.nodes(e,{match:function(t){return"pre"===tO.getNodeType(t)||!!Ff.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Up('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=Up(r).attr("data-value");"0"===o?Ff.removeMark(e,t):Ff.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=Up('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Up('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=UP("color.default")),"bgColor"===t&&(a=UP("color.clear"));var u=Up('\n      <li data-value="0" class="clear">\n        <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n        '+a+"\n      </li>\n    ");return r.prepend(u),r[0]},e}(),Zz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UP("color.color"),t.iconSvg=IM,t.mark="color",t}return nM(t,e),t}(Yz),Xz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UP("color.bgColor"),t.iconSvg=NM,t.mark="bgColor",t}return nM(t,e),t}(Yz),Jz=["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)"],Qz={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&qz(i,{color:r}),o&&qz(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!nd.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((ZL(t)||"span"!==JL(n=Up(t)))&&(n=Up("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),XL(n)):t},preParseHtml:[Kz],parseStyleHtml:function(e,t,n){var r=Up(e);if(!nd.isText(t))return t;var o=t,i=QL(r,"color");i&&(o.color=i);var a=QL(r,"background-color");return a||(a=QL(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Zz},config:{colors:Jz}},{key:"bgColor",factory:function(){return new Xz},config:{colors:Jz}}]},eU=/^(?:\w+:)?\/\/(\S+)$/,tU=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,nU=/^[^\s\.]+\.\S{2,}$/,rU=yN.includes;function oU(e){return void 0===e&&(e="r"),e+"-"+zh()}function iU(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function aU(e,t,n,r){return oM(this,void 0,void 0,(function(){var o,i;return iM(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function uU(e,t,n){return oM(this,void 0,void 0,(function(){var r;return iM(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 sU(e){return null==e.selection||!!tO.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function lU(e,t){return{type:"link",url:iU(e),children:t?[{text:t}]:[]}}function cU(e,t,n){return oM(this,void 0,void 0,(function(){var r,o,i;return iM(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),sU(e)?[2]:[4,aU("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,uU("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(Yf.isCollapsed(o)?(e.insertText(" "),i=lU(r,t),wd.insertNodes(e,i),e.insertFragment([{text:" "}])):Ff.string(e,o)!==t?(e.deleteFragment(),i=lU(r,t),wd.insertNodes(e,i)):(i=lU(r),wd.wrapNodes(e,i,{split:!0}),wd.collapse(e,{edge:"end"}))),[2]}}))}))}NN({target:"Array",proto:!0},{includes:function(e){return rU(this,e,arguments.length>1?arguments[1]:void 0)}}),SL("includes");var fU={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Ig("a",{href:o,target:void 0===i?"_blank":i},t)}},dU={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Up(e);return 0===(t=t.filter((function(e){return!!nd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function pU(){return oU("w-e-insert-link")}var hU=function(){function e(){this.title=UP("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=pU(),this.urlInputId=pU(),this.buttonId=pU()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return sU(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=uM(DF(UP("link.text"),r),2),u=a[0],s=Up(a[1]),l=uM(DF(UP("link.url"),o),2),c=l[0],f=Up(l[1]),d=uM(AF(i,UP("common.ok")),1)[0];if(null==this.$content){var p=Up("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();cU(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||Yf.isCollapsed(t))s.val("");else{var g=Ff.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function gU(){return oU("w-e-update-link")}var vU=function(){function e(){this.title=UP("link.edit"),this.iconSvg=PM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=gU(),this.buttonId=gU()}return e.prototype.getSelectedLinkElem=function(e){var t=tO.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return tO.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=uM(DF(UP("link.url"),t),2),o=r[0],i=Up(r[1]),a=uM(AF(n,UP("common.ok")),1)[0];if(null==this.$content){var u=Up("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=tO.getSelectedNodeByType(e,"link"),o=r?Rf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){oM(this,void 0,void 0,(function(){var r,o;return iM(this,(function(i){switch(i.label){case 0:return n?[4,aU("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,uU("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:iU(r)},wd.setNodes(e,o,{match:function(e){return tO.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),yU=function(){function e(){this.title=UP("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==tO.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||wd.unwrapNodes(e,{match:function(e){return tO.checkNodeType(e,"link")}})},e}(),mU=function(){function e(){this.title=UP("link.view"),this.iconSvg=jM,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=tO.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),bU={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},wU={renderElems:[fU],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[dU],menus:[{key:"insertLink",factory:function(){return new hU},config:bU},{key:"editLink",factory:function(){return new vU},config:bU},{key:"unLink",factory:function(){return new yU}},{key:"viewLink",factory:function(){return new mU}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(eU);if(!t)return!1;var n=t[1];return!(!n||!tU.test(n)&&!nU.test(n))}(t)){if(!sU(o)){var r=o.selection;if(null!=r){var i=Ff.string(o,r);cU(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=uM(e,2),n=t[0],i=t[1];return"link"!==tO.getNodeType(n)?r([n,i]):""===Rf.string(n)?wd.removeNodes(o,{at:i}):r([n,i])},o}},EU=Oj(1..valueOf),xU=hj.RangeError,CU=hj.RangeError,SU=hj.String,DU=Math.floor,AU=Oj((function(e){var t=fR(Nj(this)),n="",r=lN(e);if(r<0||r==1/0)throw xU("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),_U=Oj("".slice),OU=Oj(1..toFixed),kU=function(e,t,n){return 0===t?n:t%2==1?kU(e,t-1,n*e):kU(e*e,t/2,n)},BU=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=DU(o/1e7)},TU=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=DU(r/t),r=r%t*1e7},FU=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=SU(e[t]);n=""===n?r:n+AU("0",7-r.length)+r}return n};function PU(e,t){return"w-e-image-container-"+tO.findKey(e,t).id}NN({target:"Number",proto:!0,forced:gj((function(){return"0.000"!==OU(8e-5,3)||"1"!==OU(.9,0)||"1.25"!==OU(1.255,2)||"1000000000000000128"!==OU(0xde0b6b3a7640080,0)}))||!gj((function(){OU({})}))},{toFixed:function(e){var t,n,r,o,i=EU(this),a=lN(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw CU("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return SU(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*kU(2,69,1))-69)<0?i*kU(2,-t,1):i/kU(2,t,1),n*=4503599627370496,(t=52-t)>0){for(BU(u,0,n),r=a;r>=7;)BU(u,1e7,0),r-=7;for(BU(u,kU(10,r,1),0),r=t-1;r>=23;)TU(u,1<<23),r-=23;TU(u,1<<r),BU(u,1,1),TU(u,2),l=FU(u)}else BU(u,0,n),BU(u,1<<-t,0),l=FU(u)+AU("0",a);return a>0?s+((o=l.length)<=a?"0."+AU("0",a-o)+l:_U(l,0,o-a)+"."+_U(l,o-a)):s+l}});var jU={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=tO.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y=Ig("img",{style:v,src:o,alt:a,"data-href":s}),m=n.isDisabled();return g&&!m?function(e,t,n,r){var o=Up("body"),i=PU(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;function p(t){d=function(){var e=Up("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",h),o.on("mouseup",g);var r=tO.getHoverbar(e);r&&r.hideAndClean()}var h=ng((function(e){e.preventDefault();var t=e.clientX,n=l+(f?s-t:t-s),r=c*(n/l);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function g(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:rM(rM({},t.style),{width:r+"px",height:i+"px"})};wd.setNodes(e,a,{at:tO.findPath(e,t)}),o.off("mouseup",g)}}var v={};return a&&(v.width=a),u&&(v.height=u),Ig("div",{id:i,style:v,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=Up(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,Ig("div",{className:"w-e-image-dragger left-top"}),Ig("div",{className:"w-e-image-dragger right-top"}),Ig("div",{className:"w-e-image-dragger left-bottom"}),Ig("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),Ig("div",{id:PU(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},IU={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Up(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:QL(r,"width"),height:QL(r,"height")},children:[{text:""}]}}};function NU(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),oM(this,void 0,void 0,(function(){var i,a;return iM(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function RU(e,t,n){return oM(this,void 0,void 0,(function(){var r;return iM(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function LU(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),oM(this,void 0,void 0,(function(){var o,i,a;return iM(this,(function(u){switch(u.label){case 0:return[4,NU("insertImage",e,t,n,r)];case 1:return u.sent()?[4,RU("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:iU(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),tO.getSelectedNodeByType(e,"image")&&e.move(1),MU(e)||(wd.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function MU(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||!!uM(Ff.nodes(e,{match:function(t){var n=tO.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Ff.isVoid(e,t)},universal:!0}),1)[0]}function zU(){return oU("w-e-insert-image")}var UU=function(){function e(){this.title=UP("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=zU(),this.altInputId=zU(),this.hrefInputId=zU(),this.buttonId=zU()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return MU(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=uM(DF(UP("image.src"),r),2),s=u[0],l=Up(u[1]),c=uM(DF(UP("image.desc"),o),2),f=c[0],d=Up(c[1]),p=uM(DF(UP("image.link"),i),2),h=p[0],g=Up(p[1]),v=uM(AF(a,UP("common.ok")),1)[0];if(null==this.$content){var y=Up("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(v),l.val(""),d.val(""),g.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||LU(e,t,n,r))},e}(),HU=function(){function e(){this.title=UP("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==tO.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||wd.removeNodes(e,{match:function(e){return tO.checkNodeType(e,"image")}})},e}();function $U(){return oU("w-e-edit-image")}var VU=function(){function e(){this.title=UP("image.edit"),this.iconSvg=PM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=$U(),this.altInputId=$U(),this.hrefInputId=$U(),this.buttonId=$U()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return tO.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||null==tO.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=uM(DF(UP("image.src"),r),2),l=s[0],c=Up(s[1]),f=uM(DF(UP("image.desc"),o),2),d=f[0],p=Up(f[1]),h=uM(DF(UP("image.link"),i),2),g=h[0],v=Up(h[1]),y=uM(AF(a,UP("common.ok")),1)[0];if(null==this.$content){var m=Up("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(g),b.append(y);var w=u,E=w.src,x=w.alt,C=void 0===x?"":x,S=w.href,D=void 0===S?"":S;return c.val(E),p.val(C),v.val(D),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),oM(this,void 0,void 0,(function(){var i,a,u,s,l,c;return iM(this,(function(f){switch(f.label){case 0:return[4,NU("editImage",e,t,n,r)];case 1:return f.sent()?[4,RU("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=tO.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:rM(rM({},void 0===u?{}:u),o)},wd.setNodes(e,s,{match:function(e){return tO.checkNodeType(e,"image")}}),l=tO.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),WU=function(){function e(){this.title=UP("image.viewLink"),this.iconSvg=jM,this.tag="button"}return e.prototype.getValue=function(e){var t=tO.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),GU=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return tO.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=tO.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:rM(rM({},void 0===o?{}:o),{width:this.value,height:""})};wd.setNodes(e,i,{match:function(e){return tO.checkNodeType(e,"image")}})}}},e}(),qU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return nM(t,e),t}(GU),KU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return nM(t,e),t}(GU),YU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return nM(t,e),t}(GU),ZU={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},XU={renderElems:[jU],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,l=void 0===s?{}:s,c=l.width,f=void 0===c?"":c,d=l.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[IU],menus:[{key:"insertImage",factory:function(){return new UU},config:ZU},{key:"deleteImage",factory:function(){return new HU}},{key:"editImage",factory:function(){return new VU},config:ZU},{key:"viewImageLink",factory:function(){return new WU}},{key:"imageWidth30",factory:function(){return new qU}},{key:"imageWidth50",factory:function(){return new KU}},{key:"imageWidth100",factory:function(){return new YU}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},JU={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=Ig("div",{style:{margin:"5px 0"}},Ig("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Ig("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=tO.findPath(n,e),o={checked:t.target.checked};wd.setNodes(n,o,{at:r})}}})),Ig("span",null,t));return o}},QU=function(){function e(){this.title=UP("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!tO.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!tO.getSelectedElems(e).some((function(t){if(Ff.isVoid(e,t)&&Ff.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);wd.setNodes(e,{type:n?"paragraph":"todo"})},e}(),eH={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Up(e);0===(t=t.filter((function(e){return!!nd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},tH={renderElems:[JU],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=Up(e).find("li"),n=Up('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[eH],menus:[{key:"todo",factory:function(){return new QU}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Yf.isCollapsed(r)){var o=tO.getSelectedNodeByType(e,"todo");if(o&&0===Rf.string(o).length)return void wd.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},nH={type:"blockquote",renderElem:function(e,t,n){return Ig("blockquote",null,t)}},rH={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Up(e);return 0===(t=t.filter((function(e){return!!nd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},oH=function(){function e(){this.title=UP("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!tO.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!uM(Ff.nodes(e,{match:function(e){var t=tO.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";wd.setNodes(e,{type:n},{mode:"highest"})}},e}(),iH={key:"blockquote",factory:function(){return new oH}},aH=Oj([].slice),uH=aR("slice"),sH=EI("species"),lH=hj.Array,cH=Math.max;NN({target:"Array",proto:!0,forced:!uH},{slice:function(e,t){var n,r,o,i=Rj(this),a=gN(i),u=dN(e,a),s=dN(void 0===t?a:t,a);if(LN(i)&&(n=i.constructor,(JN(n)&&(n===lH||LN(n.prototype))||Mj(n)&&null===(n=n[sH]))&&(n=void 0),n===lH||void 0===n))return aH(i,u,s);for(r=new(void 0===n?lH:n)(cH(s-u,0)),o=0;u<s;u++,o++)u in i&&TL(r,o,i[u]);return r.length=o,r}});var fH={renderElems:[nH],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[rH],menus:[iH],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=uM(Ff.nodes(e,{match:function(e){return tO.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=tO.findPath(e,a),s=Ff.end(e,u);if(Wf.equals(s,o.focus)){var l=Rf.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void wd.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},dH=function(){function e(){this.title=UP("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!uM(Ff.nodes(e,{match:function(t){return"pre"===tO.getNodeType(t)||!!Ff.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Up('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Up(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=Up("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),pH={menus:[{key:"emotion",factory:function(){return new dH},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},hH={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},gH={selector:"font",preParseHtml:function(e){var t=Up(e);if("font"!==JL(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",hH[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},vH=Oj("".indexOf);NN({target:"String",proto:!0,forced:!mz("includes")},{includes:function(e){return!!~vH(fR(Nj(this)),fR(vz(e)),arguments.length>1?arguments[1]:void 0)}});var yH,mH,bH=function(e){return e&&e.Math==Math&&e},wH=bH("object"==typeof globalThis&&globalThis)||bH("object"==typeof window&&window)||bH("object"==typeof self&&self)||bH("object"==typeof lj&&lj)||function(){return this}()||Function("return this")(),EH=Function.prototype,xH=EH.apply,CH=EH.bind,SH=EH.call,DH="object"==typeof Reflect&&Reflect.apply||(CH?SH.bind(xH):function(){return SH.apply(xH,arguments)}),AH=Function.prototype,_H=AH.bind,OH=AH.call,kH=_H&&_H.bind(OH),BH=_H?function(e){return e&&kH(OH,e)}:function(e){return e&&function(){return OH.apply(e,arguments)}},TH=function(e){return"function"==typeof e},FH=function(e){try{return!!e()}catch(e){return!0}},PH=!FH((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),jH=Function.prototype.call,IH=jH.bind?jH.bind(jH):function(){return jH.apply(jH,arguments)},NH={}.propertyIsEnumerable,RH=Object.getOwnPropertyDescriptor,LH=RH&&!NH.call({1:2},1)?function(e){var t=RH(this,e);return!!t&&t.enumerable}:NH,MH={f:LH},zH=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},UH=BH({}.toString),HH=BH("".slice),$H=function(e){return HH(UH(e),8,-1)},VH=wH.Object,WH=BH("".split),GH=FH((function(){return!VH("z").propertyIsEnumerable(0)}))?function(e){return"String"==$H(e)?WH(e,""):VH(e)}:VH,qH=wH.TypeError,KH=function(e){if(null==e)throw qH("Can't call method on "+e);return e},YH=function(e){return GH(KH(e))},ZH=function(e){return"object"==typeof e?null!==e:TH(e)},XH={},JH=function(e){return TH(e)?e:void 0},QH=function(e,t){return arguments.length<2?JH(XH[e])||JH(wH[e]):XH[e]&&XH[e][t]||wH[e]&&wH[e][t]},e$=BH({}.isPrototypeOf),t$=QH("navigator","userAgent")||"",n$=wH.process,r$=wH.Deno,o$=n$&&n$.versions||r$&&r$.version,i$=o$&&o$.v8;i$&&(mH=(yH=i$.split("."))[0]>0&&yH[0]<4?1:+(yH[0]+yH[1])),!mH&&t$&&(!(yH=t$.match(/Edge\/(\d+)/))||yH[1]>=74)&&(yH=t$.match(/Chrome\/(\d+)/))&&(mH=+yH[1]);var a$=mH,u$=!!Object.getOwnPropertySymbols&&!FH((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&a$&&a$<41})),s$=u$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,l$=wH.Object,c$=s$?function(e){return"symbol"==typeof e}:function(e){var t=QH("Symbol");return TH(t)&&e$(t.prototype,l$(e))},f$=wH.String,d$=wH.TypeError,p$=function(e){if(TH(e))return e;throw d$(function(e){try{return f$(e)}catch(e){return"Object"}}(e)+" is not a function")},h$=wH.TypeError,g$=Object.defineProperty,v$=wH["__core-js_shared__"]||function(e,t){try{g$(wH,e,{value:t,configurable:!0,writable:!0})}catch(i){wH[e]=t}return t}("__core-js_shared__",{}),y$=cj((function(e){(e.exports=function(e,t){return v$[e]||(v$[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),m$=wH.Object,b$=function(e){return m$(KH(e))},w$=BH({}.hasOwnProperty),E$=Object.hasOwn||function(e,t){return w$(b$(e),t)},x$=0,C$=Math.random(),S$=BH(1..toString),D$=function(e){return"Symbol("+(void 0===e?"":e)+")_"+S$(++x$+C$,36)},A$=y$("wks"),_$=wH.Symbol,O$=_$&&_$.for,k$=s$?_$:_$&&_$.withoutSetter||D$,B$=function(e){if(!E$(A$,e)||!u$&&"string"!=typeof A$[e]){var t="Symbol."+e;u$&&E$(_$,e)?A$[e]=_$[e]:A$[e]=s$&&O$?O$(t):k$(t)}return A$[e]},T$=wH.TypeError,F$=B$("toPrimitive"),P$=function(e){var t=function(e,t){if(!ZH(e)||c$(e))return e;var n,r,o=null==(n=e[F$])?void 0:p$(n);if(o){if(void 0===t&&(t="default"),r=IH(o,e,t),!ZH(r)||c$(r))return r;throw T$("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&TH(n=e.toString)&&!ZH(r=IH(n,e)))return r;if(TH(n=e.valueOf)&&!ZH(r=IH(n,e)))return r;if("string"!==t&&TH(n=e.toString)&&!ZH(r=IH(n,e)))return r;throw h$("Can't convert object to primitive value")}(e,t)}(e,"string");return c$(t)?t:t+""},j$=wH.document,I$=ZH(j$)&&ZH(j$.createElement),N$=function(e){return I$?j$.createElement(e):{}},R$=!PH&&!FH((function(){return 7!=Object.defineProperty(N$("div"),"a",{get:function(){return 7}}).a})),L$=Object.getOwnPropertyDescriptor,M$={f:PH?L$:function(e,t){if(e=YH(e),t=P$(t),R$)try{return L$(e,t)}catch(e){}if(E$(e,t))return zH(!IH(MH.f,e,t),e[t])}},z$=/#|\.prototype\./,U$=function(e,t){var n=$$[H$(e)];return n==W$||n!=V$&&(TH(t)?FH(t):!!t)},H$=U$.normalize=function(e){return String(e).replace(z$,".").toLowerCase()},$$=U$.data={},V$=U$.NATIVE="N",W$=U$.POLYFILL="P",G$=U$,q$=BH(BH.bind),K$=function(e,t){return p$(e),void 0===t?e:q$?q$(e,t):function(){return e.apply(t,arguments)}},Y$=wH.String,Z$=wH.TypeError,X$=function(e){if(ZH(e))return e;throw Z$(Y$(e)+" is not an object")},J$=wH.TypeError,Q$=Object.defineProperty,eV={f:PH?Q$:function(e,t,n){if(X$(e),t=P$(t),X$(n),R$)try{return Q$(e,t,n)}catch(e){}if("get"in n||"set"in n)throw J$("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},tV=PH?function(e,t,n){return eV.f(e,t,zH(1,n))}:function(e,t,n){return e[t]=n,e},nV=M$.f,rV=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return DH(e,this,arguments)};return t.prototype=e.prototype,t},oV=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?wH:d?wH[c]:(wH[c]||{}).prototype,g=f?XH:XH[c]||tV(XH,c,{})[c],v=g.prototype;for(o in t)n=!G$(f?o:c+(d?".":"#")+o,e.forced)&&h&&E$(h,o),a=g[o],n&&(u=e.noTargetGet?(l=nV(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?K$(i,wH):e.wrap&&n?rV(i):p&&TH(i)?BH(i):i,(e.sham||i&&i.sham||a&&a.sham)&&tV(s,"sham",!0),tV(g,o,s),p&&(E$(XH,r=c+"Prototype")||tV(XH,r,{}),tV(XH[r],o,i),e.real&&v&&!v[o]&&tV(v,o,i)))},iV=Array.isArray||function(e){return"Array"==$H(e)},aV=Math.ceil,uV=Math.floor,sV=function(e){var t=+e;return t!=t||0===t?0:(t>0?uV:aV)(t)},lV=Math.min,cV=function(e){return(t=e.length)>0?lV(sV(t),9007199254740991):0;var t},fV=function(e,t,n){var r=P$(t);r in e?eV.f(e,r,zH(0,n)):e[r]=n},dV={};dV[B$("toStringTag")]="z";var pV="[object z]"===String(dV),hV=B$("toStringTag"),gV=wH.Object,vV="Arguments"==$H(function(){return arguments}()),yV=pV?$H:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=gV(e),hV))?n:vV?$H(t):"Object"==(r=$H(t))&&TH(t.callee)?"Arguments":r},mV=BH(Function.toString);TH(v$.inspectSource)||(v$.inspectSource=function(e){return mV(e)});var bV=v$.inspectSource,wV=function(){},EV=[],xV=QH("Reflect","construct"),CV=/^\s*(?:class|function)\b/,SV=BH(CV.exec),DV=!CV.exec(wV),AV=function(e){if(!TH(e))return!1;try{return xV(wV,EV,e),!0}catch(e){return!1}},_V=!xV||FH((function(){var e;return AV(AV.call)||!AV(Object)||!AV((function(){e=!0}))||e}))?function(e){if(!TH(e))return!1;switch(yV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return DV||!!SV(CV,bV(e))}:AV,OV=B$("species"),kV=wH.Array,BV=function(e,t){return new(function(e){var t;return iV(e)&&(t=e.constructor,(_V(t)&&(t===kV||iV(t.prototype))||ZH(t)&&null===(t=t[OV]))&&(t=void 0)),void 0===t?kV:t}(e))(0===t?0:t)},TV=B$("species"),FV=B$("isConcatSpreadable"),PV=wH.TypeError,jV=a$>=51||!FH((function(){var e=[];return e[FV]=!1,e.concat()[0]!==e})),IV=a$>=51||!FH((function(){var e=[];return(e.constructor={})[TV]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),NV=function(e){if(!ZH(e))return!1;var t=e[FV];return void 0!==t?!!t:iV(e)};oV({target:"Array",proto:!0,forced:!jV||!IV},{concat:function(e){var t,n,r,o,i,a=b$(this),u=BV(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(NV(i=-1===t?a:arguments[t])){if(s+(o=cV(i))>9007199254740991)throw PV("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&fV(u,s,i[n])}else{if(s>=9007199254740991)throw PV("Maximum allowed index exceeded");fV(u,s++,i)}return u.length=s,u}});var RV,LV=wH.String,MV=function(e){if("Symbol"===yV(e))throw TypeError("Cannot convert a Symbol value to a string");return LV(e)},zV=Math.max,UV=Math.min,HV=function(e,t){var n=sV(e);return n<0?zV(n+t,0):UV(n,t)},$V=function(e){return function(t,n,r){var o,i=YH(t),a=cV(i),u=HV(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},VV={includes:$V(!0),indexOf:$V(!1)},WV={},GV=VV.indexOf,qV=BH([].push),KV=function(e,t){var n,r=YH(e),o=0,i=[];for(n in r)!E$(WV,n)&&E$(r,n)&&qV(i,n);for(;t.length>o;)E$(r,n=t[o++])&&(~GV(i,n)||qV(i,n));return i},YV=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ZV=Object.keys||function(e){return KV(e,YV)},XV=PH?Object.defineProperties:function(e,t){X$(e);for(var n,r=YH(t),o=ZV(t),i=o.length,a=0;i>a;)eV.f(e,n=o[a++],r[n]);return e},JV=QH("document","documentElement"),QV=y$("keys"),eW=function(e){return QV[e]||(QV[e]=D$(e))},tW=eW("IE_PROTO"),nW=function(){},rW=function(e){return"<script>"+e+"<\/script>"},oW=function(e){e.write(rW("")),e.close();var t=e.parentWindow.Object;return e=null,t},iW=function(){try{RV=new ActiveXObject("htmlfile")}catch(e){}var e,t;iW="undefined"!=typeof document?document.domain&&RV?oW(RV):((t=N$("iframe")).style.display="none",JV.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(rW("document.F=Object")),e.close(),e.F):oW(RV);for(var n=YV.length;n--;)delete iW.prototype[YV[n]];return iW()};WV[tW]=!0;var aW,uW,sW,lW=Object.create||function(e,t){var n;return null!==e?(nW.prototype=X$(e),n=new nW,nW.prototype=null,n[tW]=e):n=iW(),void 0===t?n:XV(n,t)},cW=YV.concat("length","prototype"),fW={f:Object.getOwnPropertyNames||function(e){return KV(e,cW)}},dW=wH.Array,pW=Math.max,hW=fW.f,gW="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vW={f:function(e){return gW&&"Window"==$H(e)?function(e){try{return hW(e)}catch(e){return function(e,t,n){for(var r=cV(e),o=HV(void 0,r),i=HV(r,r),a=dW(pW(i-o,0)),u=0;o<i;o++,u++)fV(a,u,e[o]);return a.length=u,a}(gW)}}(e):hW(YH(e))}},yW={f:Object.getOwnPropertySymbols},mW=BH([].slice),bW=function(e,t,n,r){r&&r.enumerable?e[t]=n:tV(e,t,n)},wW={f:B$},EW=eV.f,xW=function(e){var t=XH.Symbol||(XH.Symbol={});E$(t,e)||EW(t,e,{value:wW.f(e)})},CW=pV?{}.toString:function(){return"[object "+yV(this)+"]"},SW=eV.f,DW=B$("toStringTag"),AW=function(e,t,n,r){if(e){var o=n?e:e.prototype;E$(o,DW)||SW(o,DW,{configurable:!0,value:t}),r&&!pV&&tV(o,"toString",CW)}},_W=wH.WeakMap,OW=TH(_W)&&/native code/.test(bV(_W)),kW=wH.TypeError,BW=wH.WeakMap;if(OW||v$.state){var TW=v$.state||(v$.state=new BW),FW=BH(TW.get),PW=BH(TW.has),jW=BH(TW.set);aW=function(e,t){if(PW(TW,e))throw new kW("Object already initialized");return t.facade=e,jW(TW,e,t),t},uW=function(e){return FW(TW,e)||{}},sW=function(e){return PW(TW,e)}}else{var IW=eW("state");WV[IW]=!0,aW=function(e,t){if(E$(e,IW))throw new kW("Object already initialized");return t.facade=e,tV(e,IW,t),t},uW=function(e){return E$(e,IW)?e[IW]:{}},sW=function(e){return E$(e,IW)}}var NW={set:aW,get:uW,has:sW,enforce:function(e){return sW(e)?uW(e):aW(e,{})},getterFor:function(e){return function(t){var n;if(!ZH(t)||(n=uW(t)).type!==e)throw kW("Incompatible receiver, "+e+" required");return n}}},RW=BH([].push),LW=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=b$(s),g=GH(h),v=K$(l,c),y=cV(g),m=0,b=f||BV,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:RW(w,d)}else switch(e){case 4:return!1;case 7:RW(w,d)}return i?-1:r||o?o:w}},MW=[LW(0),LW(1),LW(2),LW(3),LW(4),LW(5),LW(6),LW(7)][0],zW=eW("hidden"),UW=B$("toPrimitive"),HW=NW.set,$W=NW.getterFor("Symbol"),VW=Object.prototype,WW=wH.Symbol,GW=WW&&WW.prototype,qW=wH.TypeError,KW=wH.QObject,YW=QH("JSON","stringify"),ZW=M$.f,XW=eV.f,JW=vW.f,QW=MH.f,eG=BH([].push),tG=y$("symbols"),nG=y$("op-symbols"),rG=y$("string-to-symbol-registry"),oG=y$("symbol-to-string-registry"),iG=y$("wks"),aG=!KW||!KW.prototype||!KW.prototype.findChild,uG=PH&&FH((function(){return 7!=lW(XW({},"a",{get:function(){return XW(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ZW(VW,t);r&&delete VW[t],XW(e,t,n),r&&e!==VW&&XW(VW,t,r)}:XW,sG=function(e,t){var n=tG[e]=lW(GW);return HW(n,{type:"Symbol",tag:e,description:t}),PH||(n.description=t),n},lG=function(e,t,n){e===VW&&lG(nG,t,n),X$(e);var r=P$(t);return X$(n),E$(tG,r)?(n.enumerable?(E$(e,zW)&&e[zW][r]&&(e[zW][r]=!1),n=lW(n,{enumerable:zH(0,!1)})):(E$(e,zW)||XW(e,zW,zH(1,{})),e[zW][r]=!0),uG(e,r,n)):XW(e,r,n)},cG=function(e,t){X$(e);var n=YH(t),r=ZV(n).concat(hG(n));return MW(r,(function(t){PH&&!IH(fG,n,t)||lG(e,t,n[t])})),e},fG=function(e){var t=P$(e),n=IH(QW,this,t);return!(this===VW&&E$(tG,t)&&!E$(nG,t))&&(!(n||!E$(this,t)||!E$(tG,t)||E$(this,zW)&&this[zW][t])||n)},dG=function(e,t){var n=YH(e),r=P$(t);if(n!==VW||!E$(tG,r)||E$(nG,r)){var o=ZW(n,r);return!o||!E$(tG,r)||E$(n,zW)&&n[zW][r]||(o.enumerable=!0),o}},pG=function(e){var t=JW(YH(e)),n=[];return MW(t,(function(e){E$(tG,e)||E$(WV,e)||eG(n,e)})),n},hG=function(e){var t=e===VW,n=JW(t?nG:YH(e)),r=[];return MW(n,(function(e){!E$(tG,e)||t&&!E$(VW,e)||eG(r,tG[e])})),r};if(u$||(GW=(WW=function(){if(e$(GW,this))throw qW("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?MV(arguments[0]):void 0,t=D$(e),n=function(e){this===VW&&IH(n,nG,e),E$(this,zW)&&E$(this[zW],t)&&(this[zW][t]=!1),uG(this,t,zH(1,e))};return PH&&aG&&uG(VW,t,{configurable:!0,set:n}),sG(t,e)}).prototype,bW(GW,"toString",(function(){return $W(this).tag})),bW(WW,"withoutSetter",(function(e){return sG(D$(e),e)})),MH.f=fG,eV.f=lG,M$.f=dG,fW.f=vW.f=pG,yW.f=hG,wW.f=function(e){return sG(B$(e),e)},PH&&XW(GW,"description",{configurable:!0,get:function(){return $W(this).description}})),oV({global:!0,wrap:!0,forced:!u$,sham:!u$},{Symbol:WW}),MW(ZV(iG),(function(e){xW(e)})),oV({target:"Symbol",stat:!0,forced:!u$},{for:function(e){var t=MV(e);if(E$(rG,t))return rG[t];var n=WW(t);return rG[t]=n,oG[n]=t,n},keyFor:function(e){if(!c$(e))throw qW(e+" is not a symbol");if(E$(oG,e))return oG[e]},useSetter:function(){aG=!0},useSimple:function(){aG=!1}}),oV({target:"Object",stat:!0,forced:!u$,sham:!PH},{create:function(e,t){return void 0===t?lW(e):cG(lW(e),t)},defineProperty:lG,defineProperties:cG,getOwnPropertyDescriptor:dG}),oV({target:"Object",stat:!0,forced:!u$},{getOwnPropertyNames:pG,getOwnPropertySymbols:hG}),oV({target:"Object",stat:!0,forced:FH((function(){yW.f(1)}))},{getOwnPropertySymbols:function(e){return yW.f(b$(e))}}),YW){var gG=!u$||FH((function(){var e=WW();return"[null]"!=YW([e])||"{}"!=YW({a:e})||"{}"!=YW(Object(e))}));oV({target:"JSON",stat:!0,forced:gG},{stringify:function(e,t,n){var r=mW(arguments),o=t;if((ZH(t)||void 0!==e)&&!c$(e))return iV(t)||(t=function(e,t){if(TH(o)&&(t=IH(o,this,e,t)),!c$(t))return t}),r[1]=t,DH(YW,null,r)}})}if(!GW[UW]){var vG=GW.valueOf;bW(GW,UW,(function(e){return IH(vG,this)}))}AW(WW,"Symbol"),WV[zW]=!0,xW("asyncIterator"),xW("hasInstance"),xW("isConcatSpreadable"),xW("iterator"),xW("match"),xW("matchAll"),xW("replace"),xW("search"),xW("species"),xW("split"),xW("toPrimitive"),xW("toStringTag"),xW("unscopables"),AW(wH.JSON,"JSON",!0);var yG,mG,bG,wG=XH.Symbol,EG={},xG=Function.prototype,CG=PH&&Object.getOwnPropertyDescriptor,SG=E$(xG,"name"),DG={EXISTS:SG,PROPER:SG&&"something"===function(){}.name,CONFIGURABLE:SG&&(!PH||PH&&CG(xG,"name").configurable)},AG=!FH((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),_G=eW("IE_PROTO"),OG=wH.Object,kG=OG.prototype,BG=AG?OG.getPrototypeOf:function(e){var t=b$(e);if(E$(t,_G))return t[_G];var n=t.constructor;return TH(n)&&t instanceof n?n.prototype:t instanceof OG?kG:null},TG=B$("iterator"),FG=!1;[].keys&&("next"in(bG=[].keys())?(mG=BG(BG(bG)))!==Object.prototype&&(yG=mG):FG=!0);var PG=null==yG||FH((function(){var e={};return yG[TG].call(e)!==e}));yG=PG?{}:lW(yG),TH(yG[TG])||bW(yG,TG,(function(){return this}));var jG={IteratorPrototype:yG,BUGGY_SAFARI_ITERATORS:FG},IG=jG.IteratorPrototype,NG=function(){return this};wH.String,wH.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{BH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var RG=DG.PROPER,LG=jG.BUGGY_SAFARI_ITERATORS,MG=B$("iterator"),zG=function(){return this},UG=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=lW(IG,{next:zH(1,n)}),AW(e,o,!1,!0),EG[o]=NG}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!LG&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[MG]||p["@@iterator"]||o&&p[o],g=!LG&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=BG(v.call(new e)))!==Object.prototype&&u.next&&(AW(u,f,!0,!0),EG[f]=zG),RG&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return IH(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(LG||d||!(l in p))&&bW(p,l,s[l]);else oV({target:t,proto:!0,forced:LG||d},s);return a&&p[MG]!==g&&bW(p,MG,g,{name:o}),EG[t]=g,s},HG=NW.set,$G=NW.getterFor("Array Iterator");UG(Array,"Array",(function(e,t){HG(this,{type:"Array Iterator",target:YH(e),index:0,kind:t})}),(function(){var e=$G(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"),EG.Arguments=EG.Array;var VG=B$("toStringTag");for(var WG in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var GG=wH[WG],qG=GG&&GG.prototype;qG&&yV(qG)!==VG&&tV(qG,VG,WG),EG[WG]=EG.Array}var KG=wG;xW("asyncDispose"),xW("dispose"),xW("matcher"),xW("metadata"),xW("observable"),xW("patternMatch"),xW("replaceAll");var YG=KG,ZG=BH("".charAt),XG=BH("".charCodeAt),JG=BH("".slice),QG=function(e){return function(t,n){var r,o,i=MV(KH(t)),a=sV(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=XG(i,a))<55296||r>56319||a+1===u||(o=XG(i,a+1))<56320||o>57343?e?ZG(i,a):r:e?JG(i,a,a+2):o-56320+(r-55296<<10)+65536}},eq=(QG(!1),QG(!0)),tq=NW.set,nq=NW.getterFor("String Iterator");UG(String,"String",(function(e){tq(this,{type:"String Iterator",string:MV(e),index:0})}),(function(){var e,t=nq(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=eq(n,r),t.index+=e.length,{value:e,done:!1})}));var rq=wW.f("iterator"),oq=cj((function(e){function t(n){return"function"==typeof YG&&"symbol"==typeof rq?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof YG&&e.constructor===YG&&e!==YG.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),iq=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(oq),aq=iN.EXISTS,uq=NI.f,sq=Function.prototype,lq=Oj(sq.toString),cq=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,fq=Oj(cq.exec);vj&&!aq&&uq(sq,"name",{configurable:!0,get:function(){try{return fq(cq,lq(this))[1]}catch(r){return""}}});var dq=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=Ff.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!uM(Ff.nodes(e,{match:function(t){return"pre"===tO.getNodeType(t)||!!Ff.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),pq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UP("fontSize.title"),t.iconSvg=RM,t.mark="fontSize",t}return nM(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:UP("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===iq(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(dq),hq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UP("fontFamily.title"),t.iconSvg=LM,t.mark="fontFamily",t.selectPanelWidth=150,t}return nM(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:UP("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===iq(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(dq),gq={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&qz(i,{fontSize:r}),o&&qz(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!nd.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((ZL(t)||"span"!==JL(n=Up(t)))&&(n=Up("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),XL(n)):t},preParseHtml:[gH],parseStyleHtml:function(e,t,n){var r=Up(e);if(!nd.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=QL(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=QL(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new pq},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new hq},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},vq={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Up(e),n=QL(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},yq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=uM(Ff.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":uM(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=uM(Ff.nodes(e,{match:function(e){var t=tO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),mq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UP("indent.decrease"),t.iconSvg=MM,t}return nM(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){wd.setNodes(e,{indent:null},{match:function(e){return Af.isElement(e)}})},t}(yq),bq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UP("indent.increase"),t.iconSvg=zM,t}return nM(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){wd.setNodes(e,{indent:"2em"},{match:function(e){return Af.isElement(e)},mode:"highest"})},t}(yq),wq={renderStyle:function(e,t){if(!Af.isElement(e))return t;var n=e.indent,r=t;return n&&qz(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Af.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Up(t);return r.css("text-indent",n),XL(r)},preParseHtml:[vq],parseStyleHtml:function(e,t,n){var r=Up(e);if(!Af.isElement(t))return t;var o=t,i=QL(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new bq}},{key:"delIndent",factory:function(){return new mq}}]},Eq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=uM(Ff.nodes(e,{match:function(e){var t=tO.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!tO.getSelectedElems(e).some((function(t){if(Ff.isVoid(e,t)&&Ff.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),xq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UP("justify.left"),t.iconSvg=UM,t}return nM(t,e),t.prototype.exec=function(e,t){wd.setNodes(e,{textAlign:"left"},{match:function(t){return Af.isElement(t)&&!e.isInline(t)}})},t}(Eq),Cq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UP("justify.right"),t.iconSvg=HM,t}return nM(t,e),t.prototype.exec=function(e,t){wd.setNodes(e,{textAlign:"right"},{match:function(t){return Af.isElement(t)&&!e.isInline(t)}})},t}(Eq),Sq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UP("justify.center"),t.iconSvg=$M,t}return nM(t,e),t.prototype.exec=function(e,t){wd.setNodes(e,{textAlign:"center"},{match:function(t){return Af.isElement(t)&&!e.isInline(t)}})},t}(Eq),Dq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UP("justify.justify"),t.iconSvg=VM,t}return nM(t,e),t.prototype.exec=function(e,t){wd.setNodes(e,{textAlign:"justify"},{match:function(t){return Af.isElement(t)&&!e.isInline(t)}})},t}(Eq),Aq={renderStyle:function(e,t){if(!Af.isElement(e))return t;var n=e.textAlign,r=t;return n&&qz(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Af.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Up(t);return r.css("text-align",n),XL(r)},parseStyleHtml:function(e,t,n){var r=Up(e);if(!Af.isElement(t))return t;var o=t,i=QL(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new xq}},{key:"justifyRight",factory:function(){return new Cq}},{key:"justifyCenter",factory:function(){return new Sq}},{key:"justifyJustify",factory:function(){return new Dq}}]},_q=function(){function e(){this.title=UP("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:UP("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=uM(Ff.nodes(e,{match:function(e){var t=tO.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":Af.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){wd.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),Oq={renderStyle:function(e,t){if(!Af.isElement(e))return t;var n=e.lineHeight,r=t;return n&&qz(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Af.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Up(t);return r.css("line-height",n),XL(r)},parseStyleHtml:function(e,t,n){var r=Up(e);if(!Af.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=QL(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new _q},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},kq=function(){function e(){this.title=UP("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),Bq=function(){function e(){this.title=UP("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),Tq={menus:[{key:"redo",factory:function(){return new kq}},{key:"undo",factory:function(){return new Bq}}]},Fq={type:"divider",renderElem:function(e,t,n){return gg("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:tO.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[gg("hr")])}},Pq=function(){function e(){this.title=UP("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!tO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=tO.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){wd.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),jq={renderElems:[Fq],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Pq}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=uM(e,2),o=t[0],i=t[1];if("divider"!==tO.getNodeType(o))return n([o,i]);tO.isLastNode(r,o)&&wd.insertNodes(r,tO.genEmptyParagraph(),{at:[i[0]+1]})},r}},Iq=oR.map;NN({target:"Array",proto:!0,forced:!aR("map")},{map:function(e){return Iq(this,e,arguments.length>1?arguments[1]:void 0)}});var Nq=Oj([].join),Rq=jj!=Object,Lq=wM("join",",");NN({target:"Array",proto:!0,forced:Rq||!Lq},{join:function(e){return Nq(Rj(this),void 0===e?",":e)}});var Mq=function(){function e(){this.title=UP("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=tO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=tO.getParentNode(e,t);return null==n||"pre"!==tO.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=tO.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=tO.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=Rf.string(t);wd.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));wd.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Ff.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=aM(i),u=a.next();!u.done;u=a.next()){var s=uM(u.value,1)[0];s&&o.push(Rf.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}wd.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};wd.insertNodes(e,l,{mode:"highest"})},e}(),zq={key:"codeBlock",factory:function(){return new Mq}};NN({target:"String",proto:!0,forced:pM("anchor")},{anchor:function(e){return dM(this,"a","name",e)}}),XR("match",(function(e,t,n){return[function(t){var n=Nj(this),r=null==t?void 0:rI(t,e);return r?mj(r,t,n):new RegExp(t)[e](fR(n))},function(e){var r=PI(this),o=fR(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return dL(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=dL(r,o));){var c=fR(u[0]);s[l]=c,""===c&&(r.lastIndex=rL(o,hN(r.lastIndex),a)),l++}return 0===l?null:s}]}));var Uq={type:"pre",renderElem:function(e,t,n){return Ig("pre",null,t)}},Hq={type:"code",renderElem:function(e,t,n){return Ig("code",null,t)}},$q={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Up(e);return 0===(t=t.filter((function(e){return"code"===tO.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===tO.getNodeType(e)}))}}},Vq={menus:[zq],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=tO.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Rf.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=uM(e,2),r=t[0],i=t[1],a=tO.getNodeType(r);return"code"===a&&i.length<=1&&wd.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(tO.isLastNode(o,r)&&wd.insertNodes(o,tO.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==tO.getNodeType(r.children[0])&&(wd.unwrapNodes(o),wd.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=tO.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");Ff.insertText(o,t)}else r(e)},o},renderElems:[Uq,Hq],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=Up(e);if("code"!==JL(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Up(e)[0].textContent||""}]}}},$q]},Wq=function(){function e(){this.title=UP("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),Gq={menus:[{key:"fullScreen",factory:function(){return new Wq}}]},qq=function(){function e(){this.title=UP("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!Yf.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];wd.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Ff.start(e,r))}},e}(),Kq=[tz,Qz,gq,wq,Aq,Oq,XU,jq,pH,wU,Vq,fH,Hz,lM,tH,Tq,Gq,{menus:[{key:"enter",factory:function(){return new qq}}]}];zP("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),zP("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Yq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function Zq(e){var t={exports:{}};return e(t,t.exports),t.exports}var Xq,Jq,Qq=function(e){return e&&e.Math==Math&&e},eK=Qq("object"==typeof globalThis&&globalThis)||Qq("object"==typeof window&&window)||Qq("object"==typeof self&&self)||Qq("object"==typeof Yq&&Yq)||function(){return this}()||Function("return this")(),tK=Function.prototype,nK=tK.bind,rK=tK.call,oK=nK&&nK.bind(rK),iK=nK?function(e){return e&&oK(rK,e)}:function(e){return e&&function(){return rK.apply(e,arguments)}},aK=function(e){try{return!!e()}catch(e){return!0}},uK=iK({}.toString),sK=iK("".slice),lK=function(e){return sK(uK(e),8,-1)},cK=eK.Object,fK=iK("".split),dK=aK((function(){return!cK("z").propertyIsEnumerable(0)}))?function(e){return"String"==lK(e)?fK(e,""):cK(e)}:cK,pK=eK.TypeError,hK=function(e){if(null==e)throw pK("Can't call method on "+e);return e},gK=function(e){return dK(hK(e))},vK=Object.defineProperty,yK=function(e,t){try{vK(eK,e,{value:t,configurable:!0,writable:!0})}catch(i){eK[e]=t}return t},mK=eK["__core-js_shared__"]||yK("__core-js_shared__",{}),bK=Zq((function(e){(e.exports=function(e,t){return mK[e]||(mK[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),wK=eK.Object,EK=function(e){return wK(hK(e))},xK=iK({}.hasOwnProperty),CK=Object.hasOwn||function(e,t){return xK(EK(e),t)},SK=0,DK=Math.random(),AK=iK(1..toString),_K=function(e){return"Symbol("+(void 0===e?"":e)+")_"+AK(++SK+DK,36)},OK=function(e){return"function"==typeof e},kK=function(e){return OK(e)?e:void 0},BK=function(e,t){return arguments.length<2?kK(eK[e]):eK[e]&&eK[e][t]},TK=BK("navigator","userAgent")||"",FK=eK.process,PK=eK.Deno,jK=FK&&FK.versions||PK&&PK.version,IK=jK&&jK.v8;IK&&(Jq=(Xq=IK.split("."))[0]>0&&Xq[0]<4?1:+(Xq[0]+Xq[1])),!Jq&&TK&&(!(Xq=TK.match(/Edge\/(\d+)/))||Xq[1]>=74)&&(Xq=TK.match(/Chrome\/(\d+)/))&&(Jq=+Xq[1]);var NK,RK=Jq,LK=!!Object.getOwnPropertySymbols&&!aK((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&RK&&RK<41})),MK=LK&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,zK=bK("wks"),UK=eK.Symbol,HK=UK&&UK.for,$K=MK?UK:UK&&UK.withoutSetter||_K,VK=function(e){if(!CK(zK,e)||!LK&&"string"!=typeof zK[e]){var t="Symbol."+e;LK&&CK(UK,e)?zK[e]=UK[e]:zK[e]=MK&&HK?HK(t):$K(t)}return zK[e]},WK=function(e){return"object"==typeof e?null!==e:OK(e)},GK=eK.String,qK=eK.TypeError,KK=function(e){if(WK(e))return e;throw qK(GK(e)+" is not an object")},YK=!aK((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ZK=eK.document,XK=WK(ZK)&&WK(ZK.createElement),JK=function(e){return XK?ZK.createElement(e):{}},QK=!YK&&!aK((function(){return 7!=Object.defineProperty(JK("div"),"a",{get:function(){return 7}}).a})),eY=Function.prototype.call,tY=eY.bind?eY.bind(eY):function(){return eY.apply(eY,arguments)},nY=iK({}.isPrototypeOf),rY=eK.Object,oY=MK?function(e){return"symbol"==typeof e}:function(e){var t=BK("Symbol");return OK(t)&&nY(t.prototype,rY(e))},iY=eK.String,aY=function(e){try{return iY(e)}catch(e){return"Object"}},uY=eK.TypeError,sY=function(e){if(OK(e))return e;throw uY(aY(e)+" is not a function")},lY=function(e,t){var n=e[t];return null==n?void 0:sY(n)},cY=eK.TypeError,fY=eK.TypeError,dY=VK("toPrimitive"),pY=function(e){var t=function(e,t){if(!WK(e)||oY(e))return e;var n,r=lY(e,dY);if(r){if(void 0===t&&(t="default"),n=tY(r,e,t),!WK(n)||oY(n))return n;throw fY("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&OK(n=e.toString)&&!WK(r=tY(n,e)))return r;if(OK(n=e.valueOf)&&!WK(r=tY(n,e)))return r;if("string"!==t&&OK(n=e.toString)&&!WK(r=tY(n,e)))return r;throw cY("Can't convert object to primitive value")}(e,t)}(e,"string");return oY(t)?t:t+""},hY=eK.TypeError,gY=Object.defineProperty,vY={f:YK?gY:function(e,t,n){if(KK(e),t=pY(t),KK(n),QK)try{return gY(e,t,n)}catch(e){}if("get"in n||"set"in n)throw hY("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},yY=Math.ceil,mY=Math.floor,bY=function(e){var t=+e;return t!=t||0===t?0:(t>0?mY:yY)(t)},wY=Math.max,EY=Math.min,xY=function(e,t){var n=bY(e);return n<0?wY(n+t,0):EY(n,t)},CY=Math.min,SY=function(e){return e>0?CY(bY(e),9007199254740991):0},DY=function(e){return SY(e.length)},AY=function(e){return function(t,n,r){var o,i=gK(t),a=DY(i),u=xY(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},_Y={includes:AY(!0),indexOf:AY(!1)},OY={},kY=_Y.indexOf,BY=iK([].push),TY=function(e,t){var n,r=gK(e),o=0,i=[];for(n in r)!CK(OY,n)&&CK(r,n)&&BY(i,n);for(;t.length>o;)CK(r,n=t[o++])&&(~kY(i,n)||BY(i,n));return i},FY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],PY=Object.keys||function(e){return TY(e,FY)},jY=YK?Object.defineProperties:function(e,t){KK(e);for(var n,r=gK(t),o=PY(t),i=o.length,a=0;i>a;)vY.f(e,n=o[a++],r[n]);return e},IY=BK("document","documentElement"),NY=bK("keys"),RY=function(e){return NY[e]||(NY[e]=_K(e))},LY=RY("IE_PROTO"),MY=function(){},zY=function(e){return"<script>"+e+"<\/script>"},UY=function(e){e.write(zY("")),e.close();var t=e.parentWindow.Object;return e=null,t},HY=function(){try{NK=new ActiveXObject("htmlfile")}catch(e){}var e,t;HY="undefined"!=typeof document?document.domain&&NK?UY(NK):((t=JK("iframe")).style.display="none",IY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(zY("document.F=Object")),e.close(),e.F):UY(NK);for(var n=FY.length;n--;)delete HY.prototype[FY[n]];return HY()};OY[LY]=!0;var $Y=Object.create||function(e,t){var n;return null!==e?(MY.prototype=KK(e),n=new MY,MY.prototype=null,n[LY]=e):n=HY(),void 0===t?n:jY(n,t)},VY=VK("unscopables"),WY=Array.prototype;null==WY[VY]&&vY.f(WY,VY,{configurable:!0,value:$Y(null)});var GY=function(e){WY[VY][e]=!0},qY={},KY=iK(Function.toString);OK(mK.inspectSource)||(mK.inspectSource=function(e){return KY(e)});var YY,ZY,XY,JY=mK.inspectSource,QY=eK.WeakMap,eZ=OK(QY)&&/native code/.test(JY(QY)),tZ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},nZ=YK?function(e,t,n){return vY.f(e,t,tZ(1,n))}:function(e,t,n){return e[t]=n,e},rZ=eK.TypeError,oZ=eK.WeakMap;if(eZ||mK.state){var iZ=mK.state||(mK.state=new oZ),aZ=iK(iZ.get),uZ=iK(iZ.has),sZ=iK(iZ.set);YY=function(e,t){if(uZ(iZ,e))throw new rZ("Object already initialized");return t.facade=e,sZ(iZ,e,t),t},ZY=function(e){return aZ(iZ,e)||{}},XY=function(e){return uZ(iZ,e)}}else{var lZ=RY("state");OY[lZ]=!0,YY=function(e,t){if(CK(e,lZ))throw new rZ("Object already initialized");return t.facade=e,nZ(e,lZ,t),t},ZY=function(e){return CK(e,lZ)?e[lZ]:{}},XY=function(e){return CK(e,lZ)}}var cZ,fZ,dZ,pZ={set:YY,get:ZY,has:XY,enforce:function(e){return XY(e)?ZY(e):YY(e,{})},getterFor:function(e){return function(t){var n;if(!WK(t)||(n=ZY(t)).type!==e)throw rZ("Incompatible receiver, "+e+" required");return n}}},hZ={}.propertyIsEnumerable,gZ=Object.getOwnPropertyDescriptor,vZ={f:gZ&&!hZ.call({1:2},1)?function(e){var t=gZ(this,e);return!!t&&t.enumerable}:hZ},yZ=Object.getOwnPropertyDescriptor,mZ={f:YK?yZ:function(e,t){if(e=gK(e),t=pY(t),QK)try{return yZ(e,t)}catch(e){}if(CK(e,t))return tZ(!tY(vZ.f,e,t),e[t])}},bZ=Function.prototype,wZ=YK&&Object.getOwnPropertyDescriptor,EZ=CK(bZ,"name"),xZ={EXISTS:EZ,PROPER:EZ&&"something"===function(){}.name,CONFIGURABLE:EZ&&(!YK||YK&&wZ(bZ,"name").configurable)},CZ=Zq((function(e){var t=xZ.CONFIGURABLE,n=pZ.get,r=pZ.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;OK(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!CK(i,"name")||t&&i.name!==f)&&nZ(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==eK?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:nZ(e,n,i)):l?e[n]=i:yK(n,i)})(Function.prototype,"toString",(function(){return OK(this)&&n(this).source||JY(this)}))})),SZ=FY.concat("length","prototype"),DZ={f:Object.getOwnPropertyNames||function(e){return TY(e,SZ)}},AZ={f:Object.getOwnPropertySymbols},_Z=iK([].concat),OZ=BK("Reflect","ownKeys")||function(e){var t=DZ.f(KK(e)),n=AZ.f;return n?_Z(t,n(e)):t},kZ=function(e,t){for(var n=OZ(t),r=vY.f,o=mZ.f,i=0;i<n.length;i++){var a=n[i];CK(e,a)||r(e,a,o(t,a))}},BZ=/#|\.prototype\./,TZ=function(e,t){var n=PZ[FZ(e)];return n==IZ||n!=jZ&&(OK(t)?aK(t):!!t)},FZ=TZ.normalize=function(e){return String(e).replace(BZ,".").toLowerCase()},PZ=TZ.data={},jZ=TZ.NATIVE="N",IZ=TZ.POLYFILL="P",NZ=TZ,RZ=mZ.f,LZ=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?eK:l?eK[u]||yK(u,{}):(eK[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=RZ(n,r))&&a.value:n[r],!NZ(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;kZ(i,o)}(e.sham||o&&o.sham)&&nZ(i,"sham",!0),CZ(n,r,i,e)}},MZ=!aK((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),zZ=RY("IE_PROTO"),UZ=eK.Object,HZ=UZ.prototype,$Z=MZ?UZ.getPrototypeOf:function(e){var t=EK(e);if(CK(t,zZ))return t[zZ];var n=t.constructor;return OK(n)&&t instanceof n?n.prototype:t instanceof UZ?HZ:null},VZ=VK("iterator"),WZ=!1;[].keys&&("next"in(dZ=[].keys())?(fZ=$Z($Z(dZ)))!==Object.prototype&&(cZ=fZ):WZ=!0);var GZ=null==cZ||aK((function(){var e={};return cZ[VZ].call(e)!==e}));GZ&&(cZ={}),OK(cZ[VZ])||CZ(cZ,VZ,(function(){return this}));var qZ={IteratorPrototype:cZ,BUGGY_SAFARI_ITERATORS:WZ},KZ=vY.f,YZ=VK("toStringTag"),ZZ=function(e,t,n){e&&!CK(e=n?e:e.prototype,YZ)&&KZ(e,YZ,{configurable:!0,value:t})},XZ=qZ.IteratorPrototype,JZ=function(){return this},QZ=eK.String,eX=eK.TypeError,tX=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=iK(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return KK(n),function(e){if("object"==typeof e||OK(e))return e;throw eX("Can't set "+QZ(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),nX=xZ.PROPER,rX=xZ.CONFIGURABLE,oX=qZ.IteratorPrototype,iX=qZ.BUGGY_SAFARI_ITERATORS,aX=VK("iterator"),uX=function(){return this},sX=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=$Y(XZ,{next:tZ(1,n)}),ZZ(e,o,!1),qY[o]=JZ}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!iX&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[aX]||p["@@iterator"]||o&&p[o],g=!iX&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=$Z(v.call(new e)))!==Object.prototype&&u.next&&($Z(u)!==oX&&(tX?tX(u,oX):OK(u[aX])||CZ(u,aX,uX)),ZZ(u,f,!0)),nX&&"values"==o&&h&&"values"!==h.name&&(rX?nZ(p,"name","values"):(d=!0,g=function(){return tY(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(iX||d||!(l in p))&&CZ(p,l,s[l]);else LZ({target:t,proto:!0,forced:iX||d},s);return p[aX]!==g&&CZ(p,aX,g,{name:o}),qY[t]=g,s},lX=pZ.set,cX=pZ.getterFor("Array Iterator"),fX=sX(Array,"Array",(function(e,t){lX(this,{type:"Array Iterator",target:gK(e),index:0,kind:t})}),(function(){var e=cX(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");qY.Arguments=qY.Array,GY("keys"),GY("values"),GY("entries");var dX={};dX[VK("toStringTag")]="z";var pX="[object z]"===String(dX),hX=VK("toStringTag"),gX=eK.Object,vX="Arguments"==lK(function(){return arguments}()),yX=pX?lK:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=gX(e),hX))?n:vX?lK(t):"Object"==(r=lK(t))&&OK(t.callee)?"Arguments":r},mX=pX?{}.toString:function(){return"[object "+yX(this)+"]"};pX||CZ(Object.prototype,"toString",mX,{unsafe:!0});var bX=eK.String,wX=function(e){if("Symbol"===yX(e))throw TypeError("Cannot convert a Symbol value to a string");return bX(e)},EX=iK("".charAt),xX=iK("".charCodeAt),CX=iK("".slice),SX=function(e){return function(t,n){var r,o,i=wX(hK(t)),a=bY(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=xX(i,a))<55296||r>56319||a+1===u||(o=xX(i,a+1))<56320||o>57343?e?EX(i,a):r:e?CX(i,a,a+2):o-56320+(r-55296<<10)+65536}},DX={codeAt:SX(!1),charAt:SX(!0)},AX=DX.charAt,_X=pZ.set,OX=pZ.getterFor("String Iterator");sX(String,"String",(function(e){_X(this,{type:"String Iterator",string:wX(e),index:0})}),(function(){var e,t=OX(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=AX(n,r),t.index+=e.length,{value:e,done:!1})}));var kX=function(e,t,n){for(var r in t)CZ(e,r,t[r],n);return e},BX=eK.Array,TX=Math.max,FX=DZ.f,PX="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],jX={f:function(e){return PX&&"Window"==lK(e)?function(e){try{return FX(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=DY(e),s=xY(void 0,u),l=xY(u,u),c=BX(TX(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=pY(o))in r?vY.f(r,a,tZ(0,i)):r[a]=i;return c.length=f,c}(PX)}}(e):FX(gK(e))}},IX=aK((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),NX=Object.isExtensible,RX=aK((function(){NX(1)}))||IX?function(e){return!!WK(e)&&(!IX||"ArrayBuffer"!=lK(e))&&(!NX||NX(e))}:NX,LX=!aK((function(){return Object.isExtensible(Object.preventExtensions({}))})),MX=Zq((function(e){var t=vY.f,n=!1,r=_K("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=DZ.f,t=iK([].splice),o={};o[r]=1,e(o).length&&(DZ.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},LZ({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:jX.f}))},fastKey:function(e,t){if(!WK(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!CK(e,r)){if(!RX(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!CK(e,r)){if(!RX(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return LX&&n&&RX(e)&&!CK(e,r)&&i(e),e}};OY[r]=!0})),zX=iK(iK.bind),UX=function(e,t){return sY(e),void 0===t?e:zX?zX(e,t):function(){return e.apply(t,arguments)}},HX=VK("iterator"),$X=Array.prototype,VX=VK("iterator"),WX=function(e){if(null!=e)return lY(e,VX)||lY(e,"@@iterator")||qY[yX(e)]},GX=eK.TypeError,qX=function(e,t,n){var r,o;KK(e);try{if(!(r=lY(e,"return"))){if("throw"===t)throw n;return n}r=tY(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return KK(r),n},KX=eK.TypeError,YX=function(e,t){this.stopped=e,this.result=t},ZX=YX.prototype,XX=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=UX(t,f),v=function(e){return r&&qX(r,"normal",e),new YX(!0,e)},y=function(e){return d?(KK(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=WX(e)))throw KX(aY(e)+" is not iterable");if(void 0!==(c=o)&&(qY.Array===c||$X[HX]===c)){for(i=0,a=DY(e);a>i;i++)if((u=y(e[i]))&&nY(ZX,u))return u;return new YX(!1)}r=function(e,t){var n=arguments.length<2?WX(e):t;if(sY(n))return KK(tY(n,e));throw GX(aY(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=tY(s,r)).done;){try{u=y(l.value)}catch(e){qX(r,"throw",e)}if("object"==typeof u&&u&&nY(ZX,u))return u}return new YX(!1)},JX=eK.TypeError,QX=function(e,t){if(nY(t,e))return e;throw JX("Incorrect invocation")},eJ=VK("iterator"),tJ=!1;try{var nJ=0,rJ={next:function(){return{done:!!nJ++}},return:function(){tJ=!0}};rJ[eJ]=function(){return this},Array.from(rJ,(function(){throw 2}))}catch(Hl){}var oJ=Array.isArray||function(e){return"Array"==lK(e)},iJ=function(){},aJ=[],uJ=BK("Reflect","construct"),sJ=/^\s*(?:class|function)\b/,lJ=iK(sJ.exec),cJ=!sJ.exec(iJ),fJ=function(e){if(!OK(e))return!1;try{return uJ(iJ,aJ,e),!0}catch(e){return!1}},dJ=!uJ||aK((function(){var e;return fJ(fJ.call)||!fJ(Object)||!fJ((function(){e=!0}))||e}))?function(e){if(!OK(e))return!1;switch(yX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cJ||!!lJ(sJ,JY(e))}:fJ,pJ=VK("species"),hJ=eK.Array,gJ=function(e,t){return new(function(e){var t;return oJ(e)&&(t=e.constructor,(dJ(t)&&(t===hJ||oJ(t.prototype))||WK(t)&&null===(t=t[pJ]))&&(t=void 0)),void 0===t?hJ:t}(e))(0===t?0:t)},vJ=iK([].push),yJ=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=EK(s),g=dK(h),v=UX(l,c),y=DY(g),m=0,b=f||gJ,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:vJ(w,d)}else switch(e){case 4:return!1;case 7:vJ(w,d)}return i?-1:r||o?o:w}},mJ={forEach:yJ(0),map:yJ(1),filter:yJ(2),some:yJ(3),every:yJ(4),find:yJ(5),findIndex:yJ(6),filterReject:yJ(7)},bJ=MX.getWeakData,wJ=pZ.set,EJ=pZ.getterFor,xJ=mJ.find,CJ=mJ.findIndex,SJ=iK([].splice),DJ=0,AJ=function(e){return e.frozen||(e.frozen=new _J)},_J=function(){this.entries=[]},OJ=function(e,t){return xJ(e.entries,(function(e){return e[0]===t}))};_J.prototype={get:function(e){var t=OJ(this,e);if(t)return t[1]},has:function(e){return!!OJ(this,e)},set:function(e,t){var n=OJ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=CJ(this.entries,(function(t){return t[0]===e}));return~t&&SJ(this.entries,t,1),!!~t}};var kJ,BJ={getConstructor:function(e,t,n,r){var o=e((function(e,o){QX(e,i),wJ(e,{type:t,id:DJ++,frozen:void 0}),null!=o&&XX(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=EJ(t),u=function(e,t,n){var r=a(e),o=bJ(KK(t),!0);return!0===o?AJ(r).set(t,n):o[r.id]=n,e};return kX(i,{delete:function(e){var t=a(this);if(!WK(e))return!1;var n=bJ(e);return!0===n?AJ(t).delete(e):n&&CK(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!WK(e))return!1;var n=bJ(e);return!0===n?AJ(t).has(e):n&&CK(n,t.id)}}),kX(i,n?{get:function(e){var t=a(this);if(WK(e)){var n=bJ(e);return!0===n?AJ(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},TJ=pZ.enforce,FJ=!eK.ActiveXObject&&"ActiveXObject"in eK,PJ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},jJ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=eK[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=iK(u[e]);CZ(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!WK(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!WK(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!WK(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(NZ(e,!OK(a)||!(o||u.forEach&&!aK((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),MX.enable();else if(NZ(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=aK((function(){f.has(1)})),h=function(e,t){if(!tJ)return!1;var n=!1;try{var r={};r[eJ]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),g=!o&&aK((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){QX(e,u);var n=function(e,t,n){var r,o;return tX&&OK(r=t.constructor)&&r!==n&&WK(o=r.prototype)&&o!==n.prototype&&tX(e,o),e}(new a,e,s);return null!=t&&XX(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,LZ({global:!0,forced:s!=a},l),ZZ(s,e),o||n.setStrong(s,e,r),s}("WeakMap",PJ,BJ);if(eZ&&FJ){kJ=BJ.getConstructor(PJ,"WeakMap",!0),MX.enable();var IJ=jJ.prototype,NJ=iK(IJ.delete),RJ=iK(IJ.has),LJ=iK(IJ.get),MJ=iK(IJ.set);kX(IJ,{delete:function(e){if(WK(e)&&!RX(e)){var t=TJ(this);return t.frozen||(t.frozen=new kJ),NJ(this,e)||t.frozen.delete(e)}return NJ(this,e)},has:function(e){if(WK(e)&&!RX(e)){var t=TJ(this);return t.frozen||(t.frozen=new kJ),RJ(this,e)||t.frozen.has(e)}return RJ(this,e)},get:function(e){if(WK(e)&&!RX(e)){var t=TJ(this);return t.frozen||(t.frozen=new kJ),RJ(this,e)?LJ(this,e):t.frozen.get(e)}return LJ(this,e)},set:function(e,t){if(WK(e)&&!RX(e)){var n=TJ(this);n.frozen||(n.frozen=new kJ),RJ(this,e)?MJ(this,e,t):n.frozen.set(e,t)}else MJ(this,e,t);return this}})}var zJ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},UJ=JK("span").classList,HJ=UJ&&UJ.constructor&&UJ.constructor.prototype,$J=HJ===Object.prototype?void 0:HJ,VJ=VK("iterator"),WJ=VK("toStringTag"),GJ=fX.values,qJ=function(e,t){if(e){if(e[VJ]!==GJ)try{nZ(e,VJ,GJ)}catch(t){e[VJ]=GJ}if(e[WJ]||nZ(e,WJ,t),zJ[t])for(var n in fX)if(e[n]!==fX[n])try{nZ(e,n,fX[n])}catch(t){e[n]=fX[n]}}};for(var KJ in zJ)qJ(eK[KJ]&&eK[KJ].prototype,KJ);qJ($J,"DOMTokenList");var YJ=new WeakMap,ZJ={type:"list-item",renderElem:function(e,t,n){YJ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(void 0!==a&&a){var l=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,l=t,c=tO.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Uf.previous(c),d=Ff.node(e,f);if(null==d)break;var p=d[0],h=p.level,g=void 0===h?0:h,v=p.type,y=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e);s=l+"."}else s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);var c=function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];nd.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return Ig("div",{style:u},Ig("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),Ig("span",null,t))}},XJ=function(e,t){return XJ=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])},XJ(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 JJ(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}XJ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function QJ(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 Ff.nodes(e,{at:e.selection||void 0,match:function(t){return 1===tO.findPath(e,t).length}})}var nQ=_Y.includes;LZ({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=pZ.get,gQ=bK("native-string-replace",String.prototype.replace),vQ=RegExp.prototype.exec,yQ=vQ,mQ=iK("".charAt),bQ=iK("".indexOf),wQ=iK("".replace),EQ=iK("".slice),xQ=(oQ=/b*/g,tY(vQ,rQ=/a/,"a"),tY(vQ,oQ,"a"),0!==rQ.lastIndex||0!==oQ.lastIndex),CQ=lQ.BROKEN_CARET,SQ=void 0!==/()??/.exec("")[1];(xQ||SQ||CQ||fQ||pQ)&&(yQ=function(e){var t,n,r,o,i,a,u,s=this,l=hQ(s),c=wX(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=CQ&&s.sticky,h=tY(iQ,s),g=s.source,v=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))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),SQ&&(n=new RegExp("^"+g+"$(?!\\s)",h)),xQ&&(r=s.lastIndex),o=tY(vQ,p?n:s,y),p?o?(o.input=EQ(o.input,v),o[0]=EQ(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:xQ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),SQ&&o&&o.length>1&&tY(gQ,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=$Y(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var DQ=yQ;LZ({target:"RegExp",proto:!0,forced:/./.exec!==DQ},{exec:DQ});var AQ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return tO.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||!!tO.getSelectedElems(e).some((function(t){if(Ff.isVoid(e,t)&&Ff.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}(),_Q='<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>',OQ='<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>',kQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=UP("listModule.unOrderedList"),t.iconSvg=_Q,t}return JJ(t,e),t}(AQ),BQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=UP("listModule.orderedList"),t.iconSvg=OQ,t}return JJ(t,e),t}(AQ),TQ={key:"bulletedList",factory:function(){return new kQ}},FQ={key:"numberedList",factory:function(){return new BQ}},PQ=[],jQ={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=YJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=tO.findPath(t,e);if(0===s[0])return u+1;var l=Uf.previous(s),c=Ff.node(t,l);if(!c)return 0;var f=eQ(c,1)[0];if(tO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",PQ.push(i);var s=function(e){var t=YJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=tO.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Uf.next(s),c=Ff.node(t,l);if(!c)return 0;var f=eQ(c,1)[0];if(tO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+PQ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},IQ=VK("species"),NQ=mJ.filter,RQ=RK>=51||!aK((function(){var e=[];return(e.constructor={})[IQ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));LZ({target:"Array",proto:!0,forced:!RQ},{filter:function(e){return NQ(this,e,arguments.length>1?arguments[1]:void 0)}});var LQ=Function.prototype,MQ=LQ.apply,zQ=LQ.bind,UQ=LQ.call,HQ="object"==typeof Reflect&&Reflect.apply||(zQ?UQ.bind(MQ):function(){return UQ.apply(MQ,arguments)}),$Q=(VK("species"),RegExp.prototype),VQ=DX.charAt,WQ=function(e,t,n){return t+(n?VQ(e,t).length:1)},GQ=Math.floor,qQ=iK("".charAt),KQ=iK("".replace),YQ=iK("".slice),ZQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,XQ=/\$([$&'`]|\d{1,2})/g,JQ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=XQ;return void 0!==o&&(o=EK(o),s=ZQ),KQ(i,s,(function(i,s){var l;switch(qQ(s,0)){case"$":return"$";case"&":return e;case"`":return YQ(t,0,n);case"'":return YQ(t,a);case"<":l=o[YQ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=GQ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?qQ(s,1):r[f-1]+qQ(s,1):i}l=r[c-1]}return void 0===l?"":l}))},QQ=eK.TypeError,e0=function(e,t){var n=e.exec;if(OK(n)){var r=tY(n,e,t);return null!==r&&KK(r),r}if("RegExp"===lK(e))return tY(DQ,e,t);throw QQ("RegExp#exec called on incompatible receiver")},t0=VK("replace"),n0=Math.max,r0=Math.min,o0=iK([].concat),i0=iK([].push),a0=iK("".indexOf),u0=iK("".slice),s0="$0"==="a".replace(/./,"$0"),l0=!!/./[t0]&&""===/./[t0]("a","$0");!function(e,t,n,r){var o=VK(e),i=!aK((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!aK((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=iK(/./[o]),s=function(e,t,n){var r=l0?"$":"$0";return[function(e,n){var r=hK(this),o=null==e?void 0:lY(e,t0);return o?tY(o,e,r,n):tY(t,wX(r),e,n)},function(e,o){var i=KK(this),a=wX(e);if("string"==typeof o&&-1===a0(o,r)&&-1===a0(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=OK(o);s||(o=wX(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=e0(i,a);if(null===d)break;if(i0(f,d),!l)break;""===wX(d[0])&&(i.lastIndex=WQ(a,SY(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=wX((d=f[v])[0]),m=n0(r0(bY(d.index),a.length),0),b=[],w=1;w<d.length;w++)i0(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=o0([y],b,m,a);void 0!==E&&i0(x,E);var C=wX(HQ(o,void 0,x))}else C=JQ(y,a,m,b,E,o);m>=g&&(h+=u0(a,g,m)+C,g=m+y.length)}return h+u0(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=iK(e),s=t.exec;return s===DQ||s===$Q.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));CZ(String.prototype,e,s[0]),CZ($Q,o,s[1])}}("replace",0,!!aK((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!s0||l0);var c0=eK.TypeError,f0=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&UX(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&oJ(s))l=DY(s),c=f0(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw c0("Exceed the acceptable array length");e[c]=s}c++}f++}return c},d0=f0;function p0(e){return e.length?e[0].tagName.toLowerCase():""}LZ({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=EK(this),n=DY(t),r=gJ(t,0);return r.length=d0(r,t,t,n,0,void 0===e?1:bY(e)),r}}),GY("flat"),LZ({global:!0},{globalThis:eK}),sh&&(Up.fn.append=sh),Wp&&(Up.fn.attr=Wp),ch&&(Up.fn.parent=ch);var h0={renderElems:[ZJ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(Yf.isExpanded(n))t(e);else{var r=tO.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?wd.setNodes(o,{level:a-1}):wd.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(Yf.isCollapsed(a)){var u=tO.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void wd.setNodes(o,{level:l+1})}}if(Yf.isExpanded(a)){var c=0,f=!1;try{for(var d=QJ(tQ(o)),p=d.next();!p.done;p=d.next()){var h=eQ(p.value,1)[0];"list-item"===tO.getNodeType(h)?c++:f=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var g=QJ(tQ(o)),v=g.next();!v.done;v=g.next()){var y=eQ(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,wd.setNodes(o,{level:l+1},{at:m})}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=eQ(e,2),n=t[0],i=t[1],a=tO.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||wd.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[TQ,FQ],elemsToHtml:[jQ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Up(e);0===(t=t.filter((function(e){return!!nd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===p0(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=p0(n);"ul"===r||"ol"===r;)r=p0(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},g0=i((function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",g="[object RegExp]",v="[object Set]",y="[object String]",m="[object Symbol]",b="[object WeakMap]",w="[object ArrayBuffer]",E="[object DataView]",x=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[i]=S[a]=S[w]=S[u]=S[E]=S[s]=S[l]=S[c]=S[f]=S[d]=S[p]=S[g]=S[v]=S[y]=S[b]=!1;var D="object"==typeof r&&r&&r.Object===Object&&r,A="object"==typeof self&&self&&self.Object===Object&&self,_=D||A||Function("return this")(),O=t&&!t.nodeType&&t,k=O&&e&&!e.nodeType&&e,B=k&&k.exports===O,T=B&&D.process,F=function(){try{return T&&T.binding&&T.binding("util")}catch(r){}}(),P=F&&F.isTypedArray;function j(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function I(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var R=Array.prototype,L=Function.prototype,M=Object.prototype,z=_["__core-js_shared__"],U=L.toString,H=M.hasOwnProperty,$=function(){var e=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),V=M.toString,W=RegExp("^"+U.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=B?_.Buffer:void 0,q=_.Symbol,K=_.Uint8Array,Y=M.propertyIsEnumerable,Z=R.splice,X=q?q.toStringTag:void 0,J=Object.getOwnPropertySymbols,Q=G?G.isBuffer:void 0,ee=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),te=ke(_,"DataView"),ne=ke(_,"Map"),re=ke(_,"Promise"),oe=ke(_,"Set"),ie=ke(_,"WeakMap"),ae=ke(Object,"create"),ue=Pe(te),se=Pe(ne),le=Pe(re),ce=Pe(oe),fe=Pe(ie),de=q?q.prototype:void 0,pe=de?de.valueOf:void 0;function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ve;++t<n;)this.add(e[t])}function me(e){var t=this.__data__=new ge(e);this.size=t.size}function be(e,t){var n=Ne(e),r=!n&&Ie(e),o=!n&&!r&&Re(e),i=!n&&!r&&!o&&He(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var l in e)!t&&!H.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Fe(l,s))||u.push(l);return u}function we(e,t){for(var n=e.length;n--;)if(je(e[n][0],t))return n;return-1}function Ee(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=H.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var o=V.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):function(e){return V.call(e)}(e)}function xe(e){return Ue(e)&&Ee(e)==i}function Ce(e,t,n,r,o){return e===t||(null==e||null==t||!Ue(e)&&!Ue(t)?e!=e&&t!=t:function(e,t,n,r,o,c){var h=Ne(e),b=Ne(t),x=h?a:Te(e),C=b?a:Te(t),S=(x=x==i?p:x)==p,D=(C=C==i?p:C)==p,A=x==C;if(A&&Re(e)){if(!Re(t))return!1;h=!0,S=!1}if(A&&!S)return c||(c=new me),h||He(e)?Ae(e,t,n,r,o,c):function(e,t,n,r,o,i,a){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!i(new K(e),new K(t)));case u:case s:case d:return je(+e,+t);case l:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case f:var c=I;case v:var p=1&r;if(c||(c=N),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var b=Ae(c(e),c(t),r,o,i,a);return a.delete(e),b;case m:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,x,n,r,o,c);if(!(1&n)){var _=S&&H.call(e,"__wrapped__"),O=D&&H.call(t,"__wrapped__");if(_||O){var k=_?e.value():e,B=O?t.value():t;return c||(c=new me),o(k,B,n,r,c)}}return!!A&&(c||(c=new me),function(e,t,n,r,o,i){var a=1&n,u=_e(e),s=u.length,l=_e(t).length;if(s!=l&&!a)return!1;for(var c=s;c--;){var f=u[c];if(!(a?f in t:H.call(t,f)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<s;){var g=e[f=u[c]],v=t[f];if(r)var y=a?r(v,g,f,t,e,i):r(g,v,f,e,t,i);if(!(void 0===y?g===v||o(g,v,n,r,i):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var m=e.constructor,b=t.constructor;m==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,c))}(e,t,n,r,Ce,o))}function Se(e){return!(!ze(e)||function(e){return!!$&&$ in e}(e))&&(Le(e)?W:x).test(Pe(e))}function De(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||M,t!==r)return ee(e);var t,n,r,o=[];for(var i in Object(e))H.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Ae(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ye:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!j(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function _e(e){return function(e,t,n){var r=t(e);return Ne(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,$e,Be)}function Oe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ke(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Se(n)?n:void 0}he.prototype.clear=function(){this.__data__=ae?ae(null):{},this.size=0},he.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},he.prototype.get=function(e){var t=this.__data__;if(ae){var r=t[e];return r===n?void 0:r}return H.call(t,e)?t[e]:void 0},he.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:H.call(t,e)},he.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ae&&void 0===t?n:t,this},ge.prototype.clear=function(){this.__data__=[],this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=we(t,e);return!(n<0)&&(n==t.length-1?t.pop():Z.call(t,n,1),--this.size,!0)},ge.prototype.get=function(e){var t=this.__data__,n=we(t,e);return n<0?void 0:t[n][1]},ge.prototype.has=function(e){return we(this.__data__,e)>-1},ge.prototype.set=function(e,t){var n=this.__data__,r=we(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new he,map:new(ne||ge),string:new he}},ve.prototype.delete=function(e){var t=Oe(this,e).delete(e);return this.size-=t?1:0,t},ve.prototype.get=function(e){return Oe(this,e).get(e)},ve.prototype.has=function(e){return Oe(this,e).has(e)},ve.prototype.set=function(e,t){var n=Oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,n),this},ye.prototype.has=function(e){return this.__data__.has(e)},me.prototype.clear=function(){this.__data__=new ge,this.size=0},me.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},me.prototype.get=function(e){return this.__data__.get(e)},me.prototype.has=function(e){return this.__data__.has(e)},me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ge){var r=n.__data__;if(!ne||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ve(r)}return n.set(e,t),this.size=n.size,this};var Be=J?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(J(e),(function(t){return Y.call(e,t)})))}:function(){return[]},Te=Ee;function Fe(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t}function Pe(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function je(e,t){return e===t||e!=e&&t!=t}(te&&Te(new te(new ArrayBuffer(1)))!=E||ne&&Te(new ne)!=f||re&&Te(re.resolve())!=h||oe&&Te(new oe)!=v||ie&&Te(new ie)!=b)&&(Te=function(e){var t=Ee(e),n=t==p?e.constructor:void 0,r=n?Pe(n):"";if(r)switch(r){case ue:return E;case se:return f;case le:return h;case ce:return v;case fe:return b}return t});var Ie=xe(function(){return arguments}())?xe:function(e){return Ue(e)&&H.call(e,"callee")&&!Y.call(e,"callee")},Ne=Array.isArray,Re=Q||function(){return!1};function Le(e){if(!ze(e))return!1;var t=Ee(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Me(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ze(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ue(e){return null!=e&&"object"==typeof e}var He=P?function(e){return function(t){return e(t)}}(P):function(e){return Ue(e)&&Me(e.length)&&!!S[Ee(e)]};function $e(e){return null!=(t=e)&&Me(t.length)&&!Le(t)?be(e):De(e);var t}e.exports=function(e,t){return Ce(e,t)}}));zP("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),zP("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var v0="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function y0(e){var t={exports:{}};return e(t,t.exports),t.exports}var m0,b0,w0=function(e){return e&&e.Math==Math&&e},E0=w0("object"==typeof globalThis&&globalThis)||w0("object"==typeof window&&window)||w0("object"==typeof self&&self)||w0("object"==typeof v0&&v0)||function(){return this}()||Function("return this")(),x0=function(e){try{return!!e()}catch(e){return!0}},C0=!x0((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),S0=Function.prototype.call,D0=S0.bind?S0.bind(S0):function(){return S0.apply(S0,arguments)},A0={}.propertyIsEnumerable,_0=Object.getOwnPropertyDescriptor,O0={f:_0&&!A0.call({1:2},1)?function(e){var t=_0(this,e);return!!t&&t.enumerable}:A0},k0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B0=Function.prototype,T0=B0.bind,F0=B0.call,P0=T0&&T0.bind(F0),j0=T0?function(e){return e&&P0(F0,e)}:function(e){return e&&function(){return F0.apply(e,arguments)}},I0=j0({}.toString),N0=j0("".slice),R0=function(e){return N0(I0(e),8,-1)},L0=E0.Object,M0=j0("".split),z0=x0((function(){return!L0("z").propertyIsEnumerable(0)}))?function(e){return"String"==R0(e)?M0(e,""):L0(e)}:L0,U0=E0.TypeError,H0=function(e){if(null==e)throw U0("Can't call method on "+e);return e},$0=function(e){return z0(H0(e))},V0=function(e){return"function"==typeof e},W0=function(e){return"object"==typeof e?null!==e:V0(e)},G0=function(e){return V0(e)?e:void 0},q0=function(e,t){return arguments.length<2?G0(E0[e]):E0[e]&&E0[e][t]},K0=j0({}.isPrototypeOf),Y0=q0("navigator","userAgent")||"",Z0=E0.process,X0=E0.Deno,J0=Z0&&Z0.versions||X0&&X0.version,Q0=J0&&J0.v8;Q0&&(b0=(m0=Q0.split("."))[0]>0&&m0[0]<4?1:+(m0[0]+m0[1])),!b0&&Y0&&(!(m0=Y0.match(/Edge\/(\d+)/))||m0[1]>=74)&&(m0=Y0.match(/Chrome\/(\d+)/))&&(b0=+m0[1]);var e1=b0,t1=!!Object.getOwnPropertySymbols&&!x0((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&e1&&e1<41})),n1=t1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,r1=E0.Object,o1=n1?function(e){return"symbol"==typeof e}:function(e){var t=q0("Symbol");return V0(t)&&K0(t.prototype,r1(e))},i1=E0.String,a1=function(e){try{return i1(e)}catch(e){return"Object"}},u1=E0.TypeError,s1=function(e){if(V0(e))return e;throw u1(a1(e)+" is not a function")},l1=function(e,t){var n=e[t];return null==n?void 0:s1(n)},c1=E0.TypeError,f1=Object.defineProperty,d1=function(e,t){try{f1(E0,e,{value:t,configurable:!0,writable:!0})}catch(i){E0[e]=t}return t},p1=E0["__core-js_shared__"]||d1("__core-js_shared__",{}),h1=y0((function(e){(e.exports=function(e,t){return p1[e]||(p1[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),g1=E0.Object,v1=function(e){return g1(H0(e))},y1=j0({}.hasOwnProperty),m1=Object.hasOwn||function(e,t){return y1(v1(e),t)},b1=0,w1=Math.random(),E1=j0(1..toString),x1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+E1(++b1+w1,36)},C1=h1("wks"),S1=E0.Symbol,D1=S1&&S1.for,A1=n1?S1:S1&&S1.withoutSetter||x1,_1=function(e){if(!m1(C1,e)||!t1&&"string"!=typeof C1[e]){var t="Symbol."+e;t1&&m1(S1,e)?C1[e]=S1[e]:C1[e]=n1&&D1?D1(t):A1(t)}return C1[e]},O1=E0.TypeError,k1=_1("toPrimitive"),B1=function(e){var t=function(e,t){if(!W0(e)||o1(e))return e;var n,r=l1(e,k1);if(r){if(void 0===t&&(t="default"),n=D0(r,e,t),!W0(n)||o1(n))return n;throw O1("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&V0(n=e.toString)&&!W0(r=D0(n,e)))return r;if(V0(n=e.valueOf)&&!W0(r=D0(n,e)))return r;if("string"!==t&&V0(n=e.toString)&&!W0(r=D0(n,e)))return r;throw c1("Can't convert object to primitive value")}(e,t)}(e,"string");return o1(t)?t:t+""},T1=E0.document,F1=W0(T1)&&W0(T1.createElement),P1=function(e){return F1?T1.createElement(e):{}},j1=!C0&&!x0((function(){return 7!=Object.defineProperty(P1("div"),"a",{get:function(){return 7}}).a})),I1=Object.getOwnPropertyDescriptor,N1={f:C0?I1:function(e,t){if(e=$0(e),t=B1(t),j1)try{return I1(e,t)}catch(e){}if(m1(e,t))return k0(!D0(O0.f,e,t),e[t])}},R1=E0.String,L1=E0.TypeError,M1=function(e){if(W0(e))return e;throw L1(R1(e)+" is not an object")},z1=E0.TypeError,U1=Object.defineProperty,H1={f:C0?U1:function(e,t,n){if(M1(e),t=B1(t),M1(n),j1)try{return U1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw z1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},$1=C0?function(e,t,n){return H1.f(e,t,k0(1,n))}:function(e,t,n){return e[t]=n,e},V1=j0(Function.toString);V0(p1.inspectSource)||(p1.inspectSource=function(e){return V1(e)});var W1,G1,q1,K1=p1.inspectSource,Y1=E0.WeakMap,Z1=V0(Y1)&&/native code/.test(K1(Y1)),X1=h1("keys"),J1=function(e){return X1[e]||(X1[e]=x1(e))},Q1={},e2=E0.TypeError,t2=E0.WeakMap;if(Z1||p1.state){var n2=p1.state||(p1.state=new t2),r2=j0(n2.get),o2=j0(n2.has),i2=j0(n2.set);W1=function(e,t){if(o2(n2,e))throw new e2("Object already initialized");return t.facade=e,i2(n2,e,t),t},G1=function(e){return r2(n2,e)||{}},q1=function(e){return o2(n2,e)}}else{var a2=J1("state");Q1[a2]=!0,W1=function(e,t){if(m1(e,a2))throw new e2("Object already initialized");return t.facade=e,$1(e,a2,t),t},G1=function(e){return m1(e,a2)?e[a2]:{}},q1=function(e){return m1(e,a2)}}var u2={set:W1,get:G1,has:q1,enforce:function(e){return q1(e)?G1(e):W1(e,{})},getterFor:function(e){return function(t){var n;if(!W0(t)||(n=G1(t)).type!==e)throw e2("Incompatible receiver, "+e+" required");return n}}},s2=Function.prototype,l2=C0&&Object.getOwnPropertyDescriptor,c2=m1(s2,"name"),f2={EXISTS:c2,PROPER:c2&&"something"===function(){}.name,CONFIGURABLE:c2&&(!C0||C0&&l2(s2,"name").configurable)},d2=y0((function(e){var t=f2.CONFIGURABLE,n=u2.get,r=u2.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;V0(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!m1(i,"name")||t&&i.name!==f)&&$1(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==E0?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:$1(e,n,i)):l?e[n]=i:d1(n,i)})(Function.prototype,"toString",(function(){return V0(this)&&n(this).source||K1(this)}))})),p2=Math.ceil,h2=Math.floor,g2=function(e){var t=+e;return t!=t||0===t?0:(t>0?h2:p2)(t)},v2=Math.max,y2=Math.min,m2=function(e,t){var n=g2(e);return n<0?v2(n+t,0):y2(n,t)},b2=Math.min,w2=function(e){return e>0?b2(g2(e),9007199254740991):0},E2=function(e){return w2(e.length)},x2=function(e){return function(t,n,r){var o,i=$0(t),a=E2(i),u=m2(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},C2=(x2(!0),x2(!1)),S2=j0([].push),D2=function(e,t){var n,r=$0(e),o=0,i=[];for(n in r)!m1(Q1,n)&&m1(r,n)&&S2(i,n);for(;t.length>o;)m1(r,n=t[o++])&&(~C2(i,n)||S2(i,n));return i},A2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_2=A2.concat("length","prototype"),O2={f:Object.getOwnPropertyNames||function(e){return D2(e,_2)}},k2={f:Object.getOwnPropertySymbols},B2=j0([].concat),T2=q0("Reflect","ownKeys")||function(e){var t=O2.f(M1(e)),n=k2.f;return n?B2(t,n(e)):t},F2=function(e,t){for(var n=T2(t),r=H1.f,o=N1.f,i=0;i<n.length;i++){var a=n[i];m1(e,a)||r(e,a,o(t,a))}},P2=/#|\.prototype\./,j2=function(e,t){var n=N2[I2(e)];return n==L2||n!=R2&&(V0(t)?x0(t):!!t)},I2=j2.normalize=function(e){return String(e).replace(P2,".").toLowerCase()},N2=j2.data={},R2=j2.NATIVE="N",L2=j2.POLYFILL="P",M2=j2,z2=N1.f,U2=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?E0:l?E0[u]||d1(u,{}):(E0[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=z2(n,r))&&a.value:n[r],!M2(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;F2(i,o)}(e.sham||o&&o.sham)&&$1(i,"sham",!0),d2(n,r,i,e)}},H2={};H2[_1("toStringTag")]="z";var $2="[object z]"===String(H2),V2=_1("toStringTag"),W2=E0.Object,G2="Arguments"==R0(function(){return arguments}()),q2=$2?R0:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=W2(e),V2))?n:G2?R0(t):"Object"==(r=R0(t))&&V0(t.callee)?"Arguments":r},K2=E0.String,Y2=function(e){if("Symbol"===q2(e))throw TypeError("Cannot convert a Symbol value to a string");return K2(e)},Z2=/"/g,X2=j0("".replace);U2({target:"String",proto:!0,forced:x0((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Y2(H0(this)),r="<a",(r+=' name="'+X2(Y2(t),Z2,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var J2,Q2=function(){var e=M1(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},e4=E0.RegExp,t4=x0((function(){var e=e4("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),n4=t4||x0((function(){return!e4("a","y").sticky})),r4={BROKEN_CARET:t4||x0((function(){var e=e4("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:n4,UNSUPPORTED_Y:t4},o4=Object.keys||function(e){return D2(e,A2)},i4=C0?Object.defineProperties:function(e,t){M1(e);for(var n,r=$0(t),o=o4(t),i=o.length,a=0;i>a;)H1.f(e,n=o[a++],r[n]);return e},a4=q0("document","documentElement"),u4=J1("IE_PROTO"),s4=function(){},l4=function(e){return"<script>"+e+"<\/script>"},c4=function(e){e.write(l4("")),e.close();var t=e.parentWindow.Object;return e=null,t},f4=function(){try{J2=new ActiveXObject("htmlfile")}catch(e){}var e,t;f4="undefined"!=typeof document?document.domain&&J2?c4(J2):((t=P1("iframe")).style.display="none",a4.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(l4("document.F=Object")),e.close(),e.F):c4(J2);for(var n=A2.length;n--;)delete f4.prototype[A2[n]];return f4()};Q1[u4]=!0;var d4,p4,h4=Object.create||function(e,t){var n;return null!==e?(s4.prototype=M1(e),n=new s4,s4.prototype=null,n[u4]=e):n=f4(),void 0===t?n:i4(n,t)},g4=E0.RegExp,v4=x0((function(){var e=g4(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),y4=E0.RegExp,m4=x0((function(){var e=y4("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),b4=u2.get,w4=h1("native-string-replace",String.prototype.replace),E4=RegExp.prototype.exec,x4=E4,C4=j0("".charAt),S4=j0("".indexOf),D4=j0("".replace),A4=j0("".slice),_4=(p4=/b*/g,D0(E4,d4=/a/,"a"),D0(E4,p4,"a"),0!==d4.lastIndex||0!==p4.lastIndex),O4=r4.BROKEN_CARET,k4=void 0!==/()??/.exec("")[1];(_4||k4||O4||v4||m4)&&(x4=function(e){var t,n,r,o,i,a,u,s=this,l=b4(s),c=Y2(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=D0(x4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=O4&&s.sticky,h=D0(Q2,s),g=s.source,v=0,y=c;if(p&&(h=D4(h,"y",""),-1===S4(h,"g")&&(h+="g"),y=A4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==C4(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),k4&&(n=new RegExp("^"+g+"$(?!\\s)",h)),_4&&(r=s.lastIndex),o=D0(E4,p?n:s,y),p?o?(o.input=A4(o.input,v),o[0]=A4(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:_4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),k4&&o&&o.length>1&&D0(w4,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=h4(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var B4=x4;U2({target:"RegExp",proto:!0,forced:/./.exec!==B4},{exec:B4});var T4=Array.isArray||function(e){return"Array"==R0(e)},F4=function(){},P4=[],j4=q0("Reflect","construct"),I4=/^\s*(?:class|function)\b/,N4=j0(I4.exec),R4=!I4.exec(F4),L4=function(e){if(!V0(e))return!1;try{return j4(F4,P4,e),!0}catch(e){return!1}},M4=!j4||x0((function(){var e;return L4(L4.call)||!L4(Object)||!L4((function(){e=!0}))||e}))?function(e){if(!V0(e))return!1;switch(q2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return R4||!!N4(I4,K1(e))}:L4,z4=function(e,t,n){var r=B1(t);r in e?H1.f(e,r,k0(0,n)):e[r]=n},U4=_1("species"),H4=function(e){return e1>=51||!x0((function(){var t=[];return(t.constructor={})[U4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$4=j0([].slice),V4=H4("slice"),W4=_1("species"),G4=E0.Array,q4=Math.max;function K4(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 Y4(e){var t=e.selection;if(null==t)return!1;var n=K4(Ff.nodes(e,{match:function(e){return tO.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=K4(n,2)[1],o=Ff.start(e,r);if(Wf.equals(t.anchor,o))return!0}return!1}function Z4(e,t){var n,r,o=Ff.nodes(e,{at:t,match:function(e){return"table"===tO.getNodeType(e)}}),i=!1;try{for(var a=
/*! *****************************************************************************
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}U2({target:"Array",proto:!0,forced:!V4},{slice:function(e,t){var n,r,o,i=$0(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 $4(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 X4=j0(j0.bind),J4=_1("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[J4]))&&(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=v1(s),g=z0(h),v=function(e,t){return s1(e),void 0===t?e:X4?X4(e,t):function(){return e.apply(t,arguments)}}(l,c),y=E2(g),m=0,b=f||e6,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2: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;U2({target:"Array",proto:!0,forced:!H4("map")},{map:function(e){return o6(this,e,arguments.length>1?arguments[1]:void 0)}});var i6=$2?{}.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}))}$2||d2(Object.prototype,"toString",i6,{unsafe:!0});var s6=f2.PROPER,l6=RegExp.prototype,c6=l6.toString,f6=j0(Q2),d6=x0((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=_1("unscopables"),g6=Array.prototype;null==g6[h6]&&H1.f(g6,h6,{configurable:!0,value:h4(null)});var v6=r6.find,y6=!0;"find"in[]&&Array(1).find((function(){y6=!1})),U2({target:"Array",proto:!0,forced:y6},{find:function(e){return v6(this,e,arguments.length>1?arguments[1]:void 0)}}),g6[h6].find=!0;var m6=Function.prototype,b6=m6.apply,w6=m6.bind,E6=m6.call,x6="object"==typeof Reflect&&Reflect.apply||(w6?E6.bind(b6):function(){return E6.apply(b6,arguments)}),C6=_1("species"),S6=RegExp.prototype,D6=function(e,t,n,r){var o=_1(e),i=!x0((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!x0((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[C6]=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===B4||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&&$1(S6[o],"sham",!0)},A6=_1("match"),_6=E0.TypeError,O6=_1("species"),k6=j0("".charAt),B6=j0("".charCodeAt),T6=j0("".slice),F6=function(e){return function(t,n){var r,o,i=Y2(H0(t)),a=g2(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=B6(i,a))<55296||r>56319||a+1===u||(o=B6(i,a+1))<56320||o>57343?e?k6(i,a):r:e?T6(i,a,a+2):o-56320+(r-55296<<10)+65536}},P6=(F6(!1),F6(!0)),j6=function(e,t,n){return t+(n?P6(e,t).length:1)},I6=E0.Array,N6=Math.max,R6=function(e,t,n){for(var r=E2(e),o=m2(t,r),i=m2(void 0===n?r:n,r),a=I6(N6(i-o,0)),u=0;o<i;o++,u++)z4(a,u,e[o]);return a.length=u,a},L6=E0.TypeError,M6=function(e,t){var n=e.exec;if(V0(n)){var r=D0(n,e,t);return null!==r&&M1(r),r}if("RegExp"===R0(e))return D0(B4,e,t);throw L6("RegExp#exec called on incompatible receiver")},z6=r4.UNSUPPORTED_Y,U6=Math.min,H6=[].push,$6=j0(/./.exec),V6=j0(H6),W6=j0("".slice);D6("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Y2(H0(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!W0(r=e)||!(void 0!==(o=r[A6])?o:"RegExp"==R0(r)))return D0(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=D0(B4,p,i))&&!((s=p.lastIndex)>d&&(V6(c,W6(i,d,u.index)),u.length>1&&u.index<i.length&&x6(H6,c,R6(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&$6(p,"")||V6(c,""):V6(c,W6(i,d)),c.length>a?R6(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:D0(t,this,e,n)}:t,[function(t,n){var o=H0(this),i=null==t?void 0:l1(t,e);return i?D0(i,t,o,n):D0(r,Y2(o),t,n)},function(e,o){var i=M1(this),a=Y2(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=M1(e).constructor;return void 0===r||null==(n=M1(r)[O6])?t:function(e){if(M4(e))return e;throw _6(a1(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(z6?"g":"y"),f=new s(z6?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===M6(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=z6?0:h;var v,y=M6(f,z6?W6(a,h):a);if(null===y||(v=U6(w2(f.lastIndex+(z6?h:0)),a.length))===p)h=j6(a,h,l);else{if(V6(g,W6(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(V6(g,y[m]),g.length===d)return g;h=p=v}}return V6(g,W6(a,p)),g}]}),!!x0((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),z6);var G6="\t\n\v\f\r                 \u2028\u2029\ufeff",q6=j0("".replace),K6="["+G6+"]",Y6=RegExp("^"+K6+K6+"*"),Z6=RegExp(K6+K6+"*$"),X6=function(e){return function(t){var n=Y2(H0(t));return 1&e&&(n=q6(n,Y6,"")),2&e&&(n=q6(n,Z6,"")),n}},J6={start:X6(1),end:X6(2),trim:X6(3)},Q6=f2.PROPER,e5=J6.trim;function t5(e){return e.length?e[0].tagName.toLowerCase():""}U2({target:"String",proto:!0,forced:function(e){return x0((function(){return!!G6[e]()||"​…᠎"!=="​…᠎"[e]()||Q6&&G6[e].name!==e}))}("trim")},{trim:function(){return e5(this)}}),U2({global:!0},{globalThis:E0}),sh&&(Up.fn.append=sh),Yp&&(Up.fn.on=Yp),bh&&(Up.fn.focus=bh),Wp&&(Up.fn.attr=Wp),Kp&&(Up.fn.val=Kp),ih&&(Up.fn.html=ih),qp&&(Up.fn.dataset=qp),Hp&&(Up.fn.addClass=Hp),$p&&(Up.fn.removeClass=$p),ph&&(Up.fn.children=ph),rh&&(Up.fn.each=rh),dh&&(Up.fn.find=dh);var n5=!1,r5=0,o5=0,i5=null,a5=null,u5=Up("body");function s5(e){n5=!1,a5=null,i5=null,u5.off("mousemove",l5),u5.off("mouseup",s5)}u5.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),n5=!0;var n=e.clientX;r5=n;var r=t.getBoundingClientRect().width;o5=r,u5.on("mousemove",l5),u5.on("mouseup",s5)}}));var l5=ng((function(e){if(n5&&null!=a5&&null!=i5){e.preventDefault();var t=e.clientX,n=o5+(t-r5);(n=Math.floor(100*n)/100)<30&&(n=30),wd.setNodes(a5,{width:n.toString()},{at:i5})}}),100),c5={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(Yf.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=tO.findPath(e,t),a=Ff.start(e,i),u=Ff.end(e,i),s=Wf.compare(r,u)<=0&&Wf.compare(r,a)>=0,l=Wf.compare(o,u)<=0&&Wf.compare(o,a)>=0;return!!(s&&l&&Uf.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o,a=Ig("div",{className:"table-container","data-selected":tO.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=tO.findPath(n,e),o=Ff.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},Ig("table",{width:i,contentEditable:r},Ig("colgroup",null,a6(e).map((function(e){var t=e.width;return Ig("col",{width:void 0===t?"auto":t})}))),Ig("tbody",null,t)));return a}},f5={type:"table-row",renderElem:function(e,t,n){return Ig("tr",null,t)}},d5={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=tO.getParentNode(e,t);if(null==n)return!1;var r=tO.getParentNode(e,n);return null!=r&&a6(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader,c=void 0!==l&&l;if(!r)return Ig("td",{colSpan:a,rowSpan:s},t);var f=Ig(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:ng((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,s=o.height,l=t.clientX,c=t.clientY;n5||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",a5=n,i5=tO.findPath(n,e)):n5||(r.style.cursor="auto",a5=null,i5=null))}}),100)}},t);return f}},p5={selector:"table",preParseHtml:function(e){var t=Up(e);if("table"!==t5(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},h5=r6.filter;U2({target:"Array",proto:!0,forced:!H4("filter")},{filter:function(e){return h5(this,e,arguments.length>1?arguments[1]:void 0)}});var g5=Math.floor,v5=j0("".charAt),y5=j0("".replace),m5=j0("".slice),b5=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,w5=/\$([$&'`]|\d{1,2})/g,E5=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=w5;return void 0!==o&&(o=v1(o),s=b5),y5(i,s,(function(i,s){var l;switch(v5(s,0)){case"$":return"$";case"&":return e;case"`":return m5(t,0,n);case"'":return m5(t,a);case"<":l=o[m5(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=g5(c/10);return 0===f?i:f<=u?void 0===r[f-1]?v5(s,1):r[f-1]+v5(s,1):i}l=r[c-1]}return void 0===l?"":l}))},x5=_1("replace"),C5=Math.max,S5=Math.min,D5=j0([].concat),A5=j0([].push),_5=j0("".indexOf),O5=j0("".slice),k5="$0"==="a".replace(/./,"$0"),B5=!!/./[x5]&&""===/./[x5]("a","$0");D6("replace",(function(e,t,n){var r=B5?"$":"$0";return[function(e,n){var r=H0(this),o=null==e?void 0:l1(e,x5);return o?D0(o,e,r,n):D0(t,Y2(r),e,n)},function(e,o){var i=M1(this),a=Y2(e);if("string"==typeof o&&-1===_5(o,r)&&-1===_5(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=V0(o);s||(o=Y2(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=M6(i,a);if(null===d)break;if(A5(f,d),!l)break;""===Y2(d[0])&&(i.lastIndex=j6(a,w2(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=Y2((d=f[v])[0]),m=C5(S5(g2(d.index),a.length),0),b=[],w=1;w<d.length;w++)A5(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=D5([y],b,m,a);void 0!==E&&A5(x,E);var C=Y2(x6(o,void 0,x))}else C=E5(y,a,m,b,E,o);m>=g&&(h+=O5(a,g,m)+C,g=m+y.length)}return h+O5(a,g)}]}),!!x0((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!k5||B5);var T5={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Up(e);0===(t=t.filter((function(e){return!!nd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===t5(r),colSpan:o,rowSpan:i,width:a,children:t}}},F5={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===tO.getNodeType(e)}))}}},P5={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Up(e),o="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");"width"===u[0].trim()&&(n=u[1].trim())}}return n}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===tO.getNodeType(e)}))}}},j5=function(){function e(){this.title=UP("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||!!tO.getSelectedElems(e).some((function(t){var n=tO.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Up('<div class="w-e-panel-content-table"></div>'),r=Up("<span>0 &times; 0</span>"),o=Up("<table></table>"),i=0;i<10;i++){for(var a=Up("<tr></tr>"),u=0;u<10;u++){var s=Up("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=Up(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" &times; "+(a+1),o.children().each((function(e){Up(e).children().each((function(e){var t=Up(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Up(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){tO.isSelectedEmptyParagraph(e)&&wd.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);wd.insertNodes(e,i,{mode:"highest"})}},e}(),I5=function(){function e(){this.title=UP("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==tO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||wd.removeNodes(e,{mode:"highest"})},e}(),N5=function(){function e(){this.title=UP("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||null==tO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=K4(Ff.nodes(e,{match:function(e){return tO.checkNodeType(e,"table-cell")},universal:!0}),1),r=K4(n[0],2),o=r[0],i=r[1],a=tO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=Uf.parent(i),f=Uf.next(c);wd.insertNodes(e,s,{at:f})}}},e}(),R5=function(){function e(){this.title=UP("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||null==tO.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=K4(Ff.nodes(e,{match:function(e){return tO.checkNodeType(e,"table-row")},universal:!0}),1),r=K4(n[0],2),o=r[0],i=r[1],a=tO.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?wd.removeNodes(e,{mode:"highest"}):wd.removeNodes(e,{at:i})}},e}(),L5={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},M5=P1("span").classList,z5=M5&&M5.constructor&&M5.constructor.prototype,U5=z5===Object.prototype?void 0:z5,H5=r6.forEach,$5=function(e,t){var n=[].forEach;return!!n&&x0((function(){n.call(null,(function(){throw 1}),1)}))}(),V5=$5?[].forEach:function(e){return H5(this,e,arguments.length>1?arguments[1]:void 0)},W5=function(e){if(e&&e.forEach!==V5)try{$1(e,"forEach",V5)}catch(o){e.forEach=V5}};for(var G5 in L5)L5[G5]&&W5(E0[G5]&&E0[G5].prototype);W5(U5);var q5=function(){function e(){this.title=UP("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||null==tO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=K4(Ff.nodes(e,{match:function(e){return tO.checkNodeType(e,"table-cell")},universal:!0}),1),r=K4(n[0],2),o=r[0],i=r[1],a=tO.getParentNode(e,o);if(null!=a){var u=tO.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){Af.isElement(t)&&(t.children||[]).forEach((function(t){var r=tO.findPath(e,t);if(r.length===i.length&&g0(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&u6(u)&&(o.isHeader=!0),wd.insertNodes(e,o,{at:r})}}))}))}}},e}(),K5=function(){function e(){this.title=UP("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||null==tO.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=K4(Ff.nodes(e,{match:function(e){return tO.checkNodeType(e,"table-cell")},universal:!0}),1),r=K4(n[0],2),o=r[0],i=r[1],a=tO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)wd.removeNodes(e,{mode:"highest"});else{var s=tO.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){Af.isElement(t)&&(t.children||[]).forEach((function(t){var n=tO.findPath(e,t);n.length===i.length&&g0(n.slice(-1),i.slice(-1))&&wd.removeNodes(e,{at:n})}))}))}}},e}(),Y5=function(){function e(){this.title=UP("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=tO.getSelectedNodeByType(e,"table");return null!=t&&u6(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||null==tO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=tO.getSelectedNodeByType(e,"table");null!=r&&a6(r).forEach((function(t){return wd.setNodes(e,{isHeader:n},{at:tO.findPath(e,t)})}))}},e}(),Z5=function(){function e(){this.title=UP("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=tO.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||null==tO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};wd.setNodes(e,n,{mode:"highest"})}},e}(),X5={renderElems:[c5,f5,d5],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[p5],parseElemsHtml:[T5,F5,P5],menus:[{key:"insertTable",factory:function(){return new j5}},{key:"deleteTable",factory:function(){return new I5}},{key:"insertTableRow",factory:function(){return new N5}},{key:"deleteTableRow",factory:function(){return new R5}},{key:"insertTableCol",factory:function(){return new q5}},{key:"deleteTableCol",factory:function(){return new K5}},{key:"tableHeader",factory:function(){return new Y5}},{key:"tableFullWidth",factory:function(){return new Z5}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==tO.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!Y4(s)){var t=s.selection;if(t){var r=Ff.before(s,t);if(r){var o=Z4(s,r),i=Z4(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(tO.getSelectedNodeByType(s,"table")){var n=Ff.above(e);tO.checkNodeType(n[0],"table-cell")&&wd.select(e,n[1]);var r=Ff.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Ff.above(e,{at:r[1]}))&&void 0!==t?t:r),wd.select(e,r[1]);else{var o=s.children||[],i=o.length;if(tO.checkNodeType(o[i-1],"table")){var u=tO.genEmptyParagraph();wd.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){Y4(s)||r(e)},s.normalizeNode=function(e){var t=K4(e,2),n=t[0],r=t[1];if("table"!==tO.getNodeType(n))return o([n,r]);if(tO.isLastNode(s,n)){var i=tO.genEmptyParagraph();wd.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=tO.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Ff.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=tO.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Uf.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Rf.string(t).length){var o=tO.findPath(s,t),i={anchor:Ff.start(s,o),focus:Ff.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};zP("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"}}),zP("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 J5=function(){return J5=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},J5.apply(this,arguments)};function Q5(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 e3(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 t3(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 n3(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 r3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function o3(e){var t={exports:{}};return e(t,t.exports),t.exports}var i3,a3,u3=function(e){return e&&e.Math==Math&&e},s3=u3("object"==typeof globalThis&&globalThis)||u3("object"==typeof window&&window)||u3("object"==typeof self&&self)||u3("object"==typeof r3&&r3)||function(){return this}()||Function("return this")(),l3=function(e){try{return!!e()}catch(e){return!0}},c3=!l3((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f3=Function.prototype.call,d3=f3.bind?f3.bind(f3):function(){return f3.apply(f3,arguments)},p3={}.propertyIsEnumerable,h3=Object.getOwnPropertyDescriptor,g3={f:h3&&!p3.call({1:2},1)?function(e){var t=h3(this,e);return!!t&&t.enumerable}:p3},v3=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},y3=Function.prototype,m3=y3.bind,b3=y3.call,w3=m3&&m3.bind(b3),E3=m3?function(e){return e&&w3(b3,e)}:function(e){return e&&function(){return b3.apply(e,arguments)}},x3=E3({}.toString),C3=E3("".slice),S3=function(e){return C3(x3(e),8,-1)},D3=s3.Object,A3=E3("".split),_3=l3((function(){return!D3("z").propertyIsEnumerable(0)}))?function(e){return"String"==S3(e)?A3(e,""):D3(e)}:D3,O3=s3.TypeError,k3=function(e){if(null==e)throw O3("Can't call method on "+e);return e},B3=function(e){return _3(k3(e))},T3=function(e){return"function"==typeof e},F3=function(e){return"object"==typeof e?null!==e:T3(e)},P3=function(e){return T3(e)?e:void 0},j3=function(e,t){return arguments.length<2?P3(s3[e]):s3[e]&&s3[e][t]},I3=E3({}.isPrototypeOf),N3=j3("navigator","userAgent")||"",R3=s3.process,L3=s3.Deno,M3=R3&&R3.versions||L3&&L3.version,z3=M3&&M3.v8;z3&&(a3=(i3=z3.split("."))[0]>0&&i3[0]<4?1:+(i3[0]+i3[1])),!a3&&N3&&(!(i3=N3.match(/Edge\/(\d+)/))||i3[1]>=74)&&(i3=N3.match(/Chrome\/(\d+)/))&&(a3=+i3[1]);var U3=a3,H3=!!Object.getOwnPropertySymbols&&!l3((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&U3&&U3<41})),$3=H3&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,V3=s3.Object,W3=$3?function(e){return"symbol"==typeof e}:function(e){var t=j3("Symbol");return T3(t)&&I3(t.prototype,V3(e))},G3=s3.String,q3=function(e){try{return G3(e)}catch(e){return"Object"}},K3=s3.TypeError,Y3=function(e){if(T3(e))return e;throw K3(q3(e)+" is not a function")},Z3=function(e,t){var n=e[t];return null==n?void 0:Y3(n)},X3=s3.TypeError,J3=Object.defineProperty,Q3=function(e,t){try{J3(s3,e,{value:t,configurable:!0,writable:!0})}catch(i){s3[e]=t}return t},e8=s3["__core-js_shared__"]||Q3("__core-js_shared__",{}),t8=o3((function(e){(e.exports=function(e,t){return e8[e]||(e8[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),n8=s3.Object,r8=function(e){return n8(k3(e))},o8=E3({}.hasOwnProperty),i8=Object.hasOwn||function(e,t){return o8(r8(e),t)},a8=0,u8=Math.random(),s8=E3(1..toString),l8=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s8(++a8+u8,36)},c8=t8("wks"),f8=s3.Symbol,d8=f8&&f8.for,p8=$3?f8:f8&&f8.withoutSetter||l8,h8=function(e){if(!i8(c8,e)||!H3&&"string"!=typeof c8[e]){var t="Symbol."+e;H3&&i8(f8,e)?c8[e]=f8[e]:c8[e]=$3&&d8?d8(t):p8(t)}return c8[e]},g8=s3.TypeError,v8=h8("toPrimitive"),y8=function(e){var t=function(e,t){if(!F3(e)||W3(e))return e;var n,r=Z3(e,v8);if(r){if(void 0===t&&(t="default"),n=d3(r,e,t),!F3(n)||W3(n))return n;throw g8("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&T3(n=e.toString)&&!F3(r=d3(n,e)))return r;if(T3(n=e.valueOf)&&!F3(r=d3(n,e)))return r;if("string"!==t&&T3(n=e.toString)&&!F3(r=d3(n,e)))return r;throw X3("Can't convert object to primitive value")}(e,t)}(e,"string");return W3(t)?t:t+""},m8=s3.document,b8=F3(m8)&&F3(m8.createElement),w8=function(e){return b8?m8.createElement(e):{}},E8=!c3&&!l3((function(){return 7!=Object.defineProperty(w8("div"),"a",{get:function(){return 7}}).a})),x8=Object.getOwnPropertyDescriptor,C8={f:c3?x8:function(e,t){if(e=B3(e),t=y8(t),E8)try{return x8(e,t)}catch(e){}if(i8(e,t))return v3(!d3(g3.f,e,t),e[t])}},S8=s3.String,D8=s3.TypeError,A8=function(e){if(F3(e))return e;throw D8(S8(e)+" is not an object")},_8=s3.TypeError,O8=Object.defineProperty,k8={f:c3?O8:function(e,t,n){if(A8(e),t=y8(t),A8(n),E8)try{return O8(e,t,n)}catch(e){}if("get"in n||"set"in n)throw _8("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},B8=c3?function(e,t,n){return k8.f(e,t,v3(1,n))}:function(e,t,n){return e[t]=n,e},T8=E3(Function.toString);T3(e8.inspectSource)||(e8.inspectSource=function(e){return T8(e)});var F8,P8,j8,I8=e8.inspectSource,N8=s3.WeakMap,R8=T3(N8)&&/native code/.test(I8(N8)),L8=t8("keys"),M8=function(e){return L8[e]||(L8[e]=l8(e))},z8={},U8=s3.TypeError,H8=s3.WeakMap;if(R8||e8.state){var $8=e8.state||(e8.state=new H8),V8=E3($8.get),W8=E3($8.has),G8=E3($8.set);F8=function(e,t){if(W8($8,e))throw new U8("Object already initialized");return t.facade=e,G8($8,e,t),t},P8=function(e){return V8($8,e)||{}},j8=function(e){return W8($8,e)}}else{var q8=M8("state");z8[q8]=!0,F8=function(e,t){if(i8(e,q8))throw new U8("Object already initialized");return t.facade=e,B8(e,q8,t),t},P8=function(e){return i8(e,q8)?e[q8]:{}},j8=function(e){return i8(e,q8)}}var K8={set:F8,get:P8,has:j8,enforce:function(e){return j8(e)?P8(e):F8(e,{})},getterFor:function(e){return function(t){var n;if(!F3(t)||(n=P8(t)).type!==e)throw U8("Incompatible receiver, "+e+" required");return n}}},Y8=Function.prototype,Z8=c3&&Object.getOwnPropertyDescriptor,X8=i8(Y8,"name"),J8={EXISTS:X8,PROPER:X8&&"something"===function(){}.name,CONFIGURABLE:X8&&(!c3||c3&&Z8(Y8,"name").configurable)},Q8=o3((function(e){var t=J8.CONFIGURABLE,n=K8.get,r=K8.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;T3(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i8(i,"name")||t&&i.name!==f)&&B8(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==s3?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:B8(e,n,i)):l?e[n]=i:Q3(n,i)})(Function.prototype,"toString",(function(){return T3(this)&&n(this).source||I8(this)}))})),e7=Math.ceil,t7=Math.floor,n7=function(e){var t=+e;return t!=t||0===t?0:(t>0?t7:e7)(t)},r7=Math.max,o7=Math.min,i7=function(e,t){var n=n7(e);return n<0?r7(n+t,0):o7(n,t)},a7=Math.min,u7=function(e){return e>0?a7(n7(e),9007199254740991):0},s7=function(e){return u7(e.length)},l7=function(e){return function(t,n,r){var o,i=B3(t),a=s7(i),u=i7(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},c7={includes:l7(!0),indexOf:l7(!1)},f7=c7.indexOf,d7=E3([].push),p7=function(e,t){var n,r=B3(e),o=0,i=[];for(n in r)!i8(z8,n)&&i8(r,n)&&d7(i,n);for(;t.length>o;)i8(r,n=t[o++])&&(~f7(i,n)||d7(i,n));return i},h7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],g7=h7.concat("length","prototype"),v7={f:Object.getOwnPropertyNames||function(e){return p7(e,g7)}},y7={f:Object.getOwnPropertySymbols},m7=E3([].concat),b7=j3("Reflect","ownKeys")||function(e){var t=v7.f(A8(e)),n=y7.f;return n?m7(t,n(e)):t},w7=function(e,t){for(var n=b7(t),r=k8.f,o=C8.f,i=0;i<n.length;i++){var a=n[i];i8(e,a)||r(e,a,o(t,a))}},E7=/#|\.prototype\./,x7=function(e,t){var n=S7[C7(e)];return n==A7||n!=D7&&(T3(t)?l3(t):!!t)},C7=x7.normalize=function(e){return String(e).replace(E7,".").toLowerCase()},S7=x7.data={},D7=x7.NATIVE="N",A7=x7.POLYFILL="P",_7=x7,O7=C8.f,k7=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?s3:l?s3[u]||Q3(u,{}):(s3[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=O7(n,r))&&a.value:n[r],!_7(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;w7(i,o)}(e.sham||o&&o.sham)&&B8(i,"sham",!0),Q8(n,r,i,e)}},B7={};B7[h8("toStringTag")]="z";var T7="[object z]"===String(B7),F7=h8("toStringTag"),P7=s3.Object,j7="Arguments"==S3(function(){return arguments}()),I7=T7?S3:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=P7(e),F7))?n:j7?S3(t):"Object"==(r=S3(t))&&T3(t.callee)?"Arguments":r},N7=s3.String,R7=function(e){if("Symbol"===I7(e))throw TypeError("Cannot convert a Symbol value to a string");return N7(e)},L7="\t\n\v\f\r                 \u2028\u2029\ufeff",M7=E3("".replace),z7="["+L7+"]",U7=RegExp("^"+z7+z7+"*"),H7=RegExp(z7+z7+"*$"),$7=function(e){return function(t){var n=R7(k3(t));return 1&e&&(n=M7(n,U7,"")),2&e&&(n=M7(n,H7,"")),n}},V7={start:$7(1),end:$7(2),trim:$7(3)},W7=J8.PROPER,G7=V7.trim;function q7(e){return e.length?e[0].tagName.toLowerCase():""}function K7(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=Up(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}k7({target:"String",proto:!0,forced:l3((function(){return!!L7.trim()||"​…᠎"!=="​…᠎".trim()||W7&&"trim"!==L7.trim.name}))},{trim:function(){return G7(this)}}),k7({global:!0},{globalThis:s3}),sh&&(Up.fn.append=sh),Yp&&(Up.fn.on=Yp),bh&&(Up.fn.focus=bh),Wp&&(Up.fn.attr=Wp),Kp&&(Up.fn.val=Kp),ih&&(Up.fn.html=ih),ch&&(Up.fn.parent=ch),Vp&&(Up.fn.hasClass=Vp),gh&&(Up.fn.empty=gh);var Y7,Z7={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.width,c=void 0===l?"auto":l,f=o.height,d=void 0===f?"auto":f,p=tO.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=Ig("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:K7(a,c,d)});else{var h=Ig("video",{poster:s,controls:!0},Ig("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(h.data.width=c),"auto"!==d&&(h.data.height=d),r=Ig("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return gg("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},X7={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=K7(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},J7=Object.keys||function(e){return p7(e,h7)},Q7=c3?Object.defineProperties:function(e,t){A8(e);for(var n,r=B3(t),o=J7(t),i=o.length,a=0;i>a;)k8.f(e,n=o[a++],r[n]);return e},e9=j3("document","documentElement"),t9=M8("IE_PROTO"),n9=function(){},r9=function(e){return"<script>"+e+"<\/script>"},o9=function(e){e.write(r9("")),e.close();var t=e.parentWindow.Object;return e=null,t},i9=function(){try{Y7=new ActiveXObject("htmlfile")}catch(e){}var e,t;i9="undefined"!=typeof document?document.domain&&Y7?o9(Y7):((t=w8("iframe")).style.display="none",e9.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(r9("document.F=Object")),e.close(),e.F):o9(Y7);for(var n=h7.length;n--;)delete i9.prototype[h7[n]];return i9()};z8[t9]=!0;var a9=Object.create||function(e,t){var n;return null!==e?(n9.prototype=A8(e),n=new n9,n9.prototype=null,n[t9]=e):n=i9(),void 0===t?n:Q7(n,t)},u9=h8("unscopables"),s9=Array.prototype;null==s9[u9]&&k8.f(s9,u9,{configurable:!0,value:a9(null)});var l9=function(e){s9[u9][e]=!0},c9=c7.includes;k7({target:"Array",proto:!0},{includes:function(e){return c9(this,e,arguments.length>1?arguments[1]:void 0)}}),l9("includes");var f9={selector:"iframe,video,p",preParseHtml:function(e){var t=Up(e),n=t;if("p"===q7(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Up(o))}}var a=q7(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Up('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},d9=E3(E3.bind),p9=function(e,t){return Y3(e),void 0===t?e:d9?d9(e,t):function(){return e.apply(t,arguments)}},h9=Array.isArray||function(e){return"Array"==S3(e)},g9=function(){},v9=[],y9=j3("Reflect","construct"),m9=/^\s*(?:class|function)\b/,b9=E3(m9.exec),w9=!m9.exec(g9),E9=function(e){if(!T3(e))return!1;try{return y9(g9,v9,e),!0}catch(e){return!1}},x9=!y9||l3((function(){var e;return E9(E9.call)||!E9(Object)||!E9((function(){e=!0}))||e}))?function(e){if(!T3(e))return!1;switch(I7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return w9||!!b9(m9,I8(e))}:E9,C9=h8("species"),S9=s3.Array,D9=function(e,t){return new(function(e){var t;return h9(e)&&(t=e.constructor,(x9(t)&&(t===S9||h9(t.prototype))||F3(t)&&null===(t=t[C9]))&&(t=void 0)),void 0===t?S9:t}(e))(0===t?0:t)},A9=E3([].push),_9=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=r8(s),g=_3(h),v=p9(l,c),y=s7(g),m=0,b=f||D9,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:A9(w,d)}else switch(e){case 4:return!1;case 7:A9(w,d)}return i?-1:r||o?o:w}},O9={forEach:_9(0),map:_9(1),filter:_9(2),some:_9(3),every:_9(4),find:_9(5),findIndex:_9(6),filterReject:_9(7)},k9=O9.find,B9=!0;"find"in[]&&Array(1).find((function(){B9=!1})),k7({target:"Array",proto:!0,forced:B9},{find:function(e){return k9(this,e,arguments.length>1?arguments[1]:void 0)}}),l9("find");var T9=T7?{}.toString:function(){return"[object "+I7(this)+"]"};function F9(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}T7||Q8(Object.prototype,"toString",T9,{unsafe:!0});var P9,j9,I9={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Up(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",F9(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",F9(o,i=l.attr("poster")||"",a,u)}},N9=function(){var e=A8(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},R9=s3.RegExp,L9=l3((function(){var e=R9("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),M9=L9||l3((function(){return!R9("a","y").sticky})),z9={BROKEN_CARET:L9||l3((function(){var e=R9("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:M9,UNSUPPORTED_Y:L9},U9=s3.RegExp,H9=l3((function(){var e=U9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),$9=s3.RegExp,V9=l3((function(){var e=$9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),W9=K8.get,G9=t8("native-string-replace",String.prototype.replace),q9=RegExp.prototype.exec,K9=q9,Y9=E3("".charAt),Z9=E3("".indexOf),X9=E3("".replace),J9=E3("".slice),Q9=(j9=/b*/g,d3(q9,P9=/a/,"a"),d3(q9,j9,"a"),0!==P9.lastIndex||0!==j9.lastIndex),eee=z9.BROKEN_CARET,tee=void 0!==/()??/.exec("")[1];(Q9||tee||eee||H9||V9)&&(K9=function(e){var t,n,r,o,i,a,u,s=this,l=W9(s),c=R7(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=d3(K9,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=eee&&s.sticky,h=d3(N9,s),g=s.source,v=0,y=c;if(p&&(h=X9(h,"y",""),-1===Z9(h,"g")&&(h+="g"),y=J9(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Y9(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),tee&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Q9&&(r=s.lastIndex),o=d3(q9,p?n:s,y),p?o?(o.input=J9(o.input,v),o[0]=J9(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Q9&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),tee&&o&&o.length>1&&d3(G9,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=a9(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var nee=K9;k7({target:"RegExp",proto:!0,forced:/./.exec!==nee},{exec:nee});var ree=Function.prototype,oee=ree.apply,iee=ree.bind,aee=ree.call,uee="object"==typeof Reflect&&Reflect.apply||(iee?aee.bind(oee):function(){return aee.apply(oee,arguments)}),see=(h8("species"),RegExp.prototype),lee=E3("".charAt),cee=E3("".charCodeAt),fee=E3("".slice),dee=function(e){return function(t,n){var r,o,i=R7(k3(t)),a=n7(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=cee(i,a))<55296||r>56319||a+1===u||(o=cee(i,a+1))<56320||o>57343?e?lee(i,a):r:e?fee(i,a,a+2):o-56320+(r-55296<<10)+65536}},pee={codeAt:dee(!1),charAt:dee(!0)},hee=pee.charAt,gee=function(e,t,n){return t+(n?hee(e,t).length:1)},vee=Math.floor,yee=E3("".charAt),mee=E3("".replace),bee=E3("".slice),wee=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Eee=/\$([$&'`]|\d{1,2})/g,xee=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Eee;return void 0!==o&&(o=r8(o),s=wee),mee(i,s,(function(i,s){var l;switch(yee(s,0)){case"$":return"$";case"&":return e;case"`":return bee(t,0,n);case"'":return bee(t,a);case"<":l=o[bee(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=vee(c/10);return 0===f?i:f<=u?void 0===r[f-1]?yee(s,1):r[f-1]+yee(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Cee=s3.TypeError,See=function(e,t){var n=e.exec;if(T3(n)){var r=d3(n,e,t);return null!==r&&A8(r),r}if("RegExp"===S3(e))return d3(nee,e,t);throw Cee("RegExp#exec called on incompatible receiver")},Dee=h8("replace"),Aee=Math.max,_ee=Math.min,Oee=E3([].concat),kee=E3([].push),Bee=E3("".indexOf),Tee=E3("".slice),Fee="$0"==="a".replace(/./,"$0"),Pee=!!/./[Dee]&&""===/./[Dee]("a","$0");function jee(e){return void 0===e&&(e="r"),e+"-"+zh()}!function(e,t,n,r){var o=h8(e),i=!l3((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!l3((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=E3(/./[o]),s=function(e,t,n){var r=Pee?"$":"$0";return[function(e,n){var r=k3(this),o=null==e?void 0:Z3(e,Dee);return o?d3(o,e,r,n):d3(t,R7(r),e,n)},function(e,o){var i=A8(this),a=R7(e);if("string"==typeof o&&-1===Bee(o,r)&&-1===Bee(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=T3(o);s||(o=R7(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=See(i,a);if(null===d)break;if(kee(f,d),!l)break;""===R7(d[0])&&(i.lastIndex=gee(a,u7(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=R7((d=f[v])[0]),m=Aee(_ee(n7(d.index),a.length),0),b=[],w=1;w<d.length;w++)kee(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=Oee([y],b,m,a);void 0!==E&&kee(x,E);var C=R7(uee(o,void 0,x))}else C=xee(y,a,m,b,E,o);m>=g&&(h+=Tee(a,g,m)+C,g=m+y.length)}return h+Tee(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=E3(e),s=t.exec;return s===nee||s===see.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Q8(String.prototype,e,s[0]),Q8(see,o,s[1])}}("replace",0,!!l3((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Fee||Pee);var Iee=s3.Promise,Nee=function(e,t,n){for(var r in t)Q8(e,r,t[r],n);return e},Ree=s3.String,Lee=s3.TypeError,Mee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=E3(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return A8(n),function(e){if("object"==typeof e||T3(e))return e;throw Lee("Can't set "+Ree(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),zee=k8.f,Uee=h8("toStringTag"),Hee=function(e,t,n){e&&!i8(e=n?e:e.prototype,Uee)&&zee(e,Uee,{configurable:!0,value:t})},$ee=h8("species"),Vee=s3.TypeError,Wee=function(e,t){if(I3(t,e))return e;throw Vee("Incorrect invocation")},Gee={},qee=h8("iterator"),Kee=Array.prototype,Yee=h8("iterator"),Zee=function(e){if(null!=e)return Z3(e,Yee)||Z3(e,"@@iterator")||Gee[I7(e)]},Xee=s3.TypeError,Jee=function(e,t,n){var r,o;A8(e);try{if(!(r=Z3(e,"return"))){if("throw"===t)throw n;return n}r=d3(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return A8(r),n},Qee=s3.TypeError,ete=function(e,t){this.stopped=e,this.result=t},tte=ete.prototype,nte=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=p9(t,f),v=function(e){return r&&Jee(r,"normal",e),new ete(!0,e)},y=function(e){return d?(A8(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Zee(e)))throw Qee(q3(e)+" is not iterable");if(void 0!==(c=o)&&(Gee.Array===c||Kee[qee]===c)){for(i=0,a=s7(e);a>i;i++)if((u=y(e[i]))&&I3(tte,u))return u;return new ete(!1)}r=function(e,t){var n=arguments.length<2?Zee(e):t;if(Y3(n))return A8(d3(n,e));throw Xee(q3(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=d3(s,r)).done;){try{u=y(l.value)}catch(e){Jee(r,"throw",e)}if("object"==typeof u&&u&&I3(tte,u))return u}return new ete(!1)},rte=h8("iterator"),ote=!1;try{var ite=0,ate={next:function(){return{done:!!ite++}},return:function(){ote=!0}};ate[rte]=function(){return this},Array.from(ate,(function(){throw 2}))}catch(Hl){}var ute,ste,lte,cte,fte=function(e,t){if(!t&&!ote)return!1;var n=!1;try{var r={};r[rte]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},dte=s3.TypeError,pte=h8("species"),hte=E3([].slice),gte=/(?:ipad|iphone|ipod).*applewebkit/i.test(N3),vte="process"==S3(s3.process),yte=s3.setImmediate,mte=s3.clearImmediate,bte=s3.process,wte=s3.Dispatch,Ete=s3.Function,xte=s3.MessageChannel,Cte=s3.String,Ste=0,Dte={};try{ute=s3.location}catch(Hl){}var Ate=function(e){if(i8(Dte,e)){var t=Dte[e];delete Dte[e],t()}},_te=function(e){return function(){Ate(e)}},Ote=function(e){Ate(e.data)},kte=function(e){s3.postMessage(Cte(e),ute.protocol+"//"+ute.host)};yte&&mte||(yte=function(e){var t=hte(arguments,1);return Dte[++Ste]=function(){uee(T3(e)?e:Ete(e),void 0,t)},ste(Ste),Ste},mte=function(e){delete Dte[e]},vte?ste=function(e){bte.nextTick(_te(e))}:wte&&wte.now?ste=function(e){wte.now(_te(e))}:xte&&!gte?(cte=(lte=new xte).port2,lte.port1.onmessage=Ote,ste=p9(cte.postMessage,cte)):s3.addEventListener&&T3(s3.postMessage)&&!s3.importScripts&&ute&&"file:"!==ute.protocol&&!l3(kte)?(ste=kte,s3.addEventListener("message",Ote,!1)):ste="onreadystatechange"in w8("script")?function(e){e9.appendChild(w8("script")).onreadystatechange=function(){e9.removeChild(this),Ate(e)}}:function(e){setTimeout(_te(e),0)});var Bte,Tte,Fte,Pte,jte,Ite,Nte,Rte,Lte={set:yte,clear:mte},Mte=/ipad|iphone|ipod/i.test(N3)&&void 0!==s3.Pebble,zte=/web0s(?!.*chrome)/i.test(N3),Ute=C8.f,Hte=Lte.set,$te=s3.MutationObserver||s3.WebKitMutationObserver,Vte=s3.document,Wte=s3.process,Gte=s3.Promise,qte=Ute(s3,"queueMicrotask"),Kte=qte&&qte.value;Kte||(Bte=function(){var e,t;for(vte&&(e=Wte.domain)&&e.exit();Tte;){t=Tte.fn,Tte=Tte.next;try{t()}catch(e){throw Tte?Pte():Fte=void 0,e}}Fte=void 0,e&&e.enter()},gte||vte||zte||!$te||!Vte?!Mte&&Gte&&Gte.resolve?((Nte=Gte.resolve(void 0)).constructor=Gte,Rte=p9(Nte.then,Nte),Pte=function(){Rte(Bte)}):vte?Pte=function(){Wte.nextTick(Bte)}:(Hte=p9(Hte,s3),Pte=function(){Hte(Bte)}):(jte=!0,Ite=Vte.createTextNode(""),new $te(Bte).observe(Ite,{characterData:!0}),Pte=function(){Ite.data=jte=!jte}));var Yte,Zte,Xte,Jte,Qte=Kte||function(e){var t={fn:e,next:void 0};Fte&&(Fte.next=t),Tte||(Tte=t,Pte()),Fte=t},ene=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Y3(t),this.reject=Y3(n)},tne={f:function(e){return new ene(e)}},nne=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},rne="object"==typeof window,one=Lte.set,ine=h8("species"),ane="Promise",une=K8.getterFor(ane),sne=K8.set,lne=K8.getterFor(ane),cne=Iee&&Iee.prototype,fne=Iee,dne=cne,pne=s3.TypeError,hne=s3.document,gne=s3.process,vne=tne.f,yne=vne,mne=!!(hne&&hne.createEvent&&s3.dispatchEvent),bne=T3(s3.PromiseRejectionEvent),wne=!1,Ene=_7(ane,(function(){var e=I8(fne),t=e!==String(fne);if(!t&&66===U3)return!0;if(U3>=51&&/native code/.test(e))return!1;var n=new fne((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[ine]=r,!(wne=n.then((function(){}))instanceof r)||!t&&rne&&!bne})),xne=Ene||!fte((function(e){fne.all(e).catch((function(){}))})),Cne=function(e){var t;return!(!F3(e)||!T3(t=e.then))&&t},Sne=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Qte((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&One(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(pne("Promise-chain cycle")):(u=Cne(a))?d3(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Ane(e)}))}},Dne=function(e,t,n){var r,o;mne?((r=hne.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s3.dispatchEvent(r)):r={promise:t,reason:n},!bne&&(o=s3["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=s3.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Ane=function(e){d3(one,s3,(function(){var t,n=e.facade,r=e.value;if(_ne(e)&&(t=nne((function(){vte?gne.emit("unhandledRejection",r,n):Dne("unhandledrejection",n,r)})),e.rejection=vte||_ne(e)?2:1,t.error))throw t.value}))},_ne=function(e){return 1!==e.rejection&&!e.parent},One=function(e){d3(one,s3,(function(){var t=e.facade;vte?gne.emit("rejectionHandled",t):Dne("rejectionhandled",t,e.value)}))},kne=function(e,t,n){return function(r){e(t,r,n)}},Bne=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Sne(e,!0))},Tne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw pne("Promise can't be resolved itself");var r=Cne(t);r?Qte((function(){var n={done:!1};try{d3(r,t,kne(Tne,n,e),kne(Bne,n,e))}catch(t){Bne(n,t,e)}})):(e.value=t,e.state=1,Sne(e,!1))}catch(t){Bne({done:!1},t,e)}}};if(Ene&&(dne=(fne=function(e){Wee(this,dne),Y3(e),d3(Yte,this);var t=une(this);try{e(kne(Tne,t),kne(Bne,t))}catch(e){Bne(t,e)}}).prototype,(Yte=function(e){sne(this,{type:ane,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Nee(dne,{then:function(e,t){var n=lne(this),r=n.reactions,o=vne(function(e,t){var n,r=A8(e).constructor;return void 0===r||null==(n=A8(r)[pte])?t:function(e){if(x9(e))return e;throw dte(q3(e)+" is not a constructor")}(n)}(this,fne));return o.ok=!T3(e)||e,o.fail=T3(t)&&t,o.domain=vte?gne.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Sne(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Zte=function(){var e=new Yte,t=une(e);this.promise=e,this.resolve=kne(Tne,t),this.reject=kne(Bne,t)},tne.f=vne=function(e){return e===fne||e===Xte?new Zte(e):yne(e)},T3(Iee)&&cne!==Object.prototype)){Jte=cne.then,wne||(Q8(cne,"then",(function(e,t){var n=this;return new fne((function(e,t){d3(Jte,n,e,t)})).then(e,t)}),{unsafe:!0}),Q8(cne,"catch",dne.catch,{unsafe:!0}));try{delete cne.constructor}catch(Hl){}Mee&&Mee(cne,dne)}function Fne(e,t,n){return void 0===n&&(n=""),Q5(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return e3(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=c.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=c.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){wd.insertNodes(e,l)})),o(l),[2]}}))}))}function Pne(){return jee("w-e-insert-video")}k7({global:!0,wrap:!0,forced:Ene},{Promise:fne}),Hee(fne,ane,!1),function(e){var t=j3("Promise"),n=k8.f;c3&&t&&!t[$ee]&&n(t,$ee,{configurable:!0,get:function(){return this}})}(),Xte=j3(ane),k7({target:ane,stat:!0,forced:Ene},{reject:function(e){var t=vne(this);return d3(t.reject,void 0,e),t.promise}}),k7({target:ane,stat:!0,forced:Ene},{resolve:function(e){return function(e,t){if(A8(e),F3(t)&&t.constructor===e)return t;var n=tne.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),k7({target:ane,stat:!0,forced:xne},{all:function(e){var t=this,n=vne(t),r=n.resolve,o=n.reject,i=nne((function(){var n=Y3(t.resolve),i=[],a=0,u=1;nte(e,(function(e){var s=a++,l=!1;u++,d3(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=vne(t),r=n.reject,o=nne((function(){var o=Y3(t.resolve);nte(e,(function(e){d3(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var jne=function(){function e(){this.title=UP("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=Pne(),this.posterInputId=Pne(),this.buttonId=Pne()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||!!tO.getSelectedElems(e).some((function(t){var n=tO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=t3(DF(UP("videoModule.videoSrc"),r,UP("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=t3(DF(UP("videoModule.videoPoster"),o,UP("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Up(s),p=Up(f),h=t3(AF(i,UP("videoModule.ok")),1)[0];if(null==this.$content){var g=Up("<div></div>");g.on("click","#"+i,(function(n){return Q5(t,void 0,void 0,(function(){var t,i;return e3(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,Fne(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var v=this.$content;return v.empty(),v.append(u),v.append(c),v.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),v[0]},e}(),Ine=E3([].join),Nne=_3!=Object,Rne=function(e,t){var n=[].join;return!!n&&l3((function(){n.call(null,",",1)}))}();k7({target:"Array",proto:!0,forced:Nne||!Rne},{join:function(e){return Ine(B3(this),void 0===e?",":e)}});var Lne,Mne,zne,Une=!l3((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Hne=M8("IE_PROTO"),$ne=s3.Object,Vne=$ne.prototype,Wne=Une?$ne.getPrototypeOf:function(e){var t=r8(e);if(i8(t,Hne))return t[Hne];var n=t.constructor;return T3(n)&&t instanceof n?n.prototype:t instanceof $ne?Vne:null},Gne=h8("iterator"),qne=!1;[].keys&&("next"in(zne=[].keys())?(Mne=Wne(Wne(zne)))!==Object.prototype&&(Lne=Mne):qne=!0);var Kne=null==Lne||l3((function(){var e={};return Lne[Gne].call(e)!==e}));Kne&&(Lne={}),T3(Lne[Gne])||Q8(Lne,Gne,(function(){return this}));var Yne={IteratorPrototype:Lne,BUGGY_SAFARI_ITERATORS:qne},Zne=Yne.IteratorPrototype,Xne=function(){return this},Jne=J8.PROPER,Qne=J8.CONFIGURABLE,ere=Yne.IteratorPrototype,tre=Yne.BUGGY_SAFARI_ITERATORS,nre=h8("iterator"),rre=function(){return this},ore=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=a9(Zne,{next:v3(1,n)}),Hee(e,o,!1),Gee[o]=Xne}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!tre&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[nre]||p["@@iterator"]||o&&p[o],g=!tre&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Wne(v.call(new e)))!==Object.prototype&&u.next&&(Wne(u)!==ere&&(Mee?Mee(u,ere):T3(u[nre])||Q8(u,nre,rre)),Hee(u,f,!0)),Jne&&"values"==o&&h&&"values"!==h.name&&(Qne?B8(p,"name","values"):(d=!0,g=function(){return d3(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(tre||d||!(l in p))&&Q8(p,l,s[l]);else k7({target:t,proto:!0,forced:tre||d},s);return p[nre]!==g&&Q8(p,nre,g,{name:o}),Gee[t]=g,s},ire=K8.set,are=K8.getterFor("Array Iterator"),ure=ore(Array,"Array",(function(e,t){ire(this,{type:"Array Iterator",target:B3(e),index:0,kind:t})}),(function(){var e=are(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");Gee.Arguments=Gee.Array,l9("keys"),l9("values"),l9("entries");var sre=pee.charAt,lre=K8.set,cre=K8.getterFor("String Iterator");ore(String,"String",(function(e){lre(this,{type:"String Iterator",string:R7(e),index:0})}),(function(){var e,t=cre(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=sre(n,r),t.index+=e.length,{value:e,done:!1})}));var fre=function(e,t,n){var r=y8(t);r in e?k8.f(e,r,v3(0,n)):e[r]=n},dre=s3.Array,pre=Math.max,hre=v7.f,gre="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vre={f:function(e){return gre&&"Window"==S3(e)?function(e){try{return hre(e)}catch(e){return function(e,t,n){for(var r=s7(e),o=i7(void 0,r),i=i7(r,r),a=dre(pre(i-o,0)),u=0;o<i;o++,u++)fre(a,u,e[o]);return a.length=u,a}(gre)}}(e):hre(B3(e))}},yre=l3((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),mre=Object.isExtensible,bre=l3((function(){mre(1)}))||yre?function(e){return!!F3(e)&&(!yre||"ArrayBuffer"!=S3(e))&&(!mre||mre(e))}:mre,wre=!l3((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ere=o3((function(e){var t=k8.f,n=!1,r=l8("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=v7.f,t=E3([].splice),o={};o[r]=1,e(o).length&&(v7.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},k7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:vre.f}))},fastKey:function(e,t){if(!F3(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i8(e,r)){if(!bre(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!i8(e,r)){if(!bre(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return wre&&n&&bre(e)&&!i8(e,r)&&i(e),e}};z8[r]=!0})),xre=Ere.getWeakData,Cre=K8.set,Sre=K8.getterFor,Dre=O9.find,Are=O9.findIndex,_re=E3([].splice),Ore=0,kre=function(e){return e.frozen||(e.frozen=new Bre)},Bre=function(){this.entries=[]},Tre=function(e,t){return Dre(e.entries,(function(e){return e[0]===t}))};Bre.prototype={get:function(e){var t=Tre(this,e);if(t)return t[1]},has:function(e){return!!Tre(this,e)},set:function(e,t){var n=Tre(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Are(this.entries,(function(t){return t[0]===e}));return~t&&_re(this.entries,t,1),!!~t}};var Fre,Pre={getConstructor:function(e,t,n,r){var o=e((function(e,o){Wee(e,i),Cre(e,{type:t,id:Ore++,frozen:void 0}),null!=o&&nte(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Sre(t),u=function(e,t,n){var r=a(e),o=xre(A8(t),!0);return!0===o?kre(r).set(t,n):o[r.id]=n,e};return Nee(i,{delete:function(e){var t=a(this);if(!F3(e))return!1;var n=xre(e);return!0===n?kre(t).delete(e):n&&i8(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!F3(e))return!1;var n=xre(e);return!0===n?kre(t).has(e):n&&i8(n,t.id)}}),Nee(i,n?{get:function(e){var t=a(this);if(F3(e)){var n=xre(e);return!0===n?kre(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},jre=K8.enforce,Ire=!s3.ActiveXObject&&"ActiveXObject"in s3,Nre=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Rre=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=s3[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=E3(u[e]);Q8(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!F3(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!F3(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!F3(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(_7(e,!T3(a)||!(o||u.forEach&&!l3((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Ere.enable();else if(_7(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=l3((function(){f.has(1)})),h=fte((function(e){new a(e)})),g=!o&&l3((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Wee(e,u);var n=function(e,t,n){var r,o;return Mee&&T3(r=t.constructor)&&r!==n&&F3(o=r.prototype)&&o!==n.prototype&&Mee(e,o),e}(new a,e,s);return null!=t&&nte(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,k7({global:!0,forced:s!=a},l),Hee(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Nre,Pre);if(R8&&Ire){Fre=Pre.getConstructor(Nre,"WeakMap",!0),Ere.enable();var Lre=Rre.prototype,Mre=E3(Lre.delete),zre=E3(Lre.has),Ure=E3(Lre.get),Hre=E3(Lre.set);Nee(Lre,{delete:function(e){if(F3(e)&&!bre(e)){var t=jre(this);return t.frozen||(t.frozen=new Fre),Mre(this,e)||t.frozen.delete(e)}return Mre(this,e)},has:function(e){if(F3(e)&&!bre(e)){var t=jre(this);return t.frozen||(t.frozen=new Fre),zre(this,e)||t.frozen.has(e)}return zre(this,e)},get:function(e){if(F3(e)&&!bre(e)){var t=jre(this);return t.frozen||(t.frozen=new Fre),zre(this,e)?Ure(this,e):t.frozen.get(e)}return Ure(this,e)},set:function(e,t){if(F3(e)&&!bre(e)){var n=jre(this);n.frozen||(n.frozen=new Fre),zre(this,e)?Hre(this,e,t):n.frozen.set(e,t)}else Hre(this,e,t);return this}})}var $re={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Vre=w8("span").classList,Wre=Vre&&Vre.constructor&&Vre.constructor.prototype,Gre=Wre===Object.prototype?void 0:Wre,qre=h8("iterator"),Kre=h8("toStringTag"),Yre=ure.values,Zre=function(e,t){if(e){if(e[qre]!==Yre)try{B8(e,qre,Yre)}catch(t){e[qre]=Yre}if(e[Kre]||B8(e,Kre,t),$re[t])for(var n in ure)if(e[n]!==ure[n])try{B8(e,n,ure[n])}catch(t){e[n]=ure[n]}}};for(var Xre in $re)Zre(s3[Xre]&&s3[Xre].prototype,Xre);Zre(Gre,"DOMTokenList");var Jre=J8.EXISTS,Qre=k8.f,eoe=Function.prototype,toe=E3(eoe.toString),noe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,roe=E3(noe.exec);c3&&!Jre&&Qre(eoe,"name",{configurable:!0,get:function(){try{return roe(noe,toe(this))[1]}catch(r){return""}}});var ooe=h8("species"),ioe=U3>=51||!l3((function(){var e=[];return(e.constructor={})[ooe]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),aoe=h8("species"),uoe=s3.Array,soe=Math.max;function loe(e){return e.getMenuConfig("uploadVideo")}k7({target:"Array",proto:!0,forced:!ioe},{slice:function(e,t){var n,r,o,i=B3(this),a=s7(i),u=i7(e,a),s=i7(void 0===t?a:t,a);if(h9(i)&&(n=i.constructor,(x9(n)&&(n===uoe||h9(n.prototype))||F3(n)&&null===(n=n[aoe]))&&(n=void 0),n===uoe||void 0===n))return hte(i,u,s);for(r=new(void 0===n?uoe:n)(soe(s-u,0)),o=0;u<s;u++,o++)u in i&&fre(r,o,i[u]);return r.length=o,r}});var coe=new WeakMap;function foe(e,t){return Q5(this,void 0,void 0,(function(){var n,r,o,i;return e3(this,(function(a){switch(a.label){case 0:return n=function(e){var t=coe.get(e);if(null!=t)return t;var n=loe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=YF(J5(J5({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return Fne(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;Fne(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),coe.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var doe=function(){function e(){this.title=UP("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return Fne(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Up("body"),s=Up('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;Q5(this,void 0,void 0,(function(){var o,i,a,u,s,l;return e3(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=loe(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=n3(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return Fne(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,foe(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Yf.isCollapsed(t)||!!tO.getSelectedElems(e).some((function(t){var n=tO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),poe=J8.PROPER,hoe=RegExp.prototype,goe=hoe.toString,voe=E3(N9),yoe=l3((function(){return"/a/b"!=goe.call({source:"a",flags:"b"})})),moe=poe&&"toString"!=goe.name;function boe(){return jee("w-e-insert-video")}(yoe||moe)&&Q8(RegExp.prototype,"toString",(function(){var e=A8(this),t=R7(e.source),n=e.flags;return"/"+t+"/"+R7(void 0===n&&I3(hoe,e)&&!("flags"in hoe)?voe(e):n)}),{unsafe:!0});var woe=function(){function e(){this.title=UP("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=boe(),this.heightInputId=boe(),this.buttonId=boe()}return e.prototype.getSelectedVideoNode=function(e){return tO.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=t3(DF(UP("videoModule.width"),n,"auto"),2),a=i[0],u=Up(i[1]),s=t3(DF(UP("videoModule.height"),r,"auto"),2),l=s[0],c=Up(s[1]),f=t3(AF(o,UP("videoModule.ok")),1)[0];if(null==this.$content){var d=Up("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",l=u?u.toString():"auto";e.restoreSelection(),wd.setNodes(e,{width:s,height:l},{match:function(e){return tO.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var g=h.width,v=void 0===g?"auto":g,y=h.height,m=void 0===y?"auto":y;return u.val(v),c.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),Eoe={renderElems:[Z7],elemsToHtml:[X7],preParseHtml:[f9],parseElemsHtml:[I9],menus:[{key:"insertVideo",factory:function(){return new jne},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new doe},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new woe}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=t3(e,2),o=t[0],i=t[1];return"video"===tO.getNodeType(o)&&tO.isLastNode(r,o)&&wd.insertNodes(r,tO.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};zP("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),zP("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var xoe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function Coe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Soe,Doe,Aoe=function(e){return e&&e.Math==Math&&e},_oe=Aoe("object"==typeof globalThis&&globalThis)||Aoe("object"==typeof window&&window)||Aoe("object"==typeof self&&self)||Aoe("object"==typeof xoe&&xoe)||function(){return this}()||Function("return this")(),Ooe=function(e){try{return!!e()}catch(e){return!0}},koe=!Ooe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Boe=Function.prototype.call,Toe=Boe.bind?Boe.bind(Boe):function(){return Boe.apply(Boe,arguments)},Foe={}.propertyIsEnumerable,Poe=Object.getOwnPropertyDescriptor,joe={f:Poe&&!Foe.call({1:2},1)?function(e){var t=Poe(this,e);return!!t&&t.enumerable}:Foe},Ioe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Noe=Function.prototype,Roe=Noe.bind,Loe=Noe.call,Moe=Roe&&Roe.bind(Loe),zoe=Roe?function(e){return e&&Moe(Loe,e)}:function(e){return e&&function(){return Loe.apply(e,arguments)}},Uoe=zoe({}.toString),Hoe=zoe("".slice),$oe=function(e){return Hoe(Uoe(e),8,-1)},Voe=_oe.Object,Woe=zoe("".split),Goe=Ooe((function(){return!Voe("z").propertyIsEnumerable(0)}))?function(e){return"String"==$oe(e)?Woe(e,""):Voe(e)}:Voe,qoe=_oe.TypeError,Koe=function(e){if(null==e)throw qoe("Can't call method on "+e);return e},Yoe=function(e){return Goe(Koe(e))},Zoe=function(e){return"function"==typeof e},Xoe=function(e){return"object"==typeof e?null!==e:Zoe(e)},Joe=function(e){return Zoe(e)?e:void 0},Qoe=function(e,t){return arguments.length<2?Joe(_oe[e]):_oe[e]&&_oe[e][t]},eie=zoe({}.isPrototypeOf),tie=Qoe("navigator","userAgent")||"",nie=_oe.process,rie=_oe.Deno,oie=nie&&nie.versions||rie&&rie.version,iie=oie&&oie.v8;iie&&(Doe=(Soe=iie.split("."))[0]>0&&Soe[0]<4?1:+(Soe[0]+Soe[1])),!Doe&&tie&&(!(Soe=tie.match(/Edge\/(\d+)/))||Soe[1]>=74)&&(Soe=tie.match(/Chrome\/(\d+)/))&&(Doe=+Soe[1]);var aie=Doe,uie=!!Object.getOwnPropertySymbols&&!Ooe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aie&&aie<41})),sie=uie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lie=_oe.Object,cie=sie?function(e){return"symbol"==typeof e}:function(e){var t=Qoe("Symbol");return Zoe(t)&&eie(t.prototype,lie(e))},fie=_oe.String,die=function(e){try{return fie(e)}catch(e){return"Object"}},pie=_oe.TypeError,hie=function(e){if(Zoe(e))return e;throw pie(die(e)+" is not a function")},gie=function(e,t){var n=e[t];return null==n?void 0:hie(n)},vie=_oe.TypeError,yie=Object.defineProperty,mie=function(e,t){try{yie(_oe,e,{value:t,configurable:!0,writable:!0})}catch(i){_oe[e]=t}return t},bie=_oe["__core-js_shared__"]||mie("__core-js_shared__",{}),wie=Coe((function(e){(e.exports=function(e,t){return bie[e]||(bie[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Eie=_oe.Object,xie=function(e){return Eie(Koe(e))},Cie=zoe({}.hasOwnProperty),Sie=Object.hasOwn||function(e,t){return Cie(xie(e),t)},Die=0,Aie=Math.random(),_ie=zoe(1..toString),Oie=function(e){return"Symbol("+(void 0===e?"":e)+")_"+_ie(++Die+Aie,36)},kie=wie("wks"),Bie=_oe.Symbol,Tie=Bie&&Bie.for,Fie=sie?Bie:Bie&&Bie.withoutSetter||Oie,Pie=function(e){if(!Sie(kie,e)||!uie&&"string"!=typeof kie[e]){var t="Symbol."+e;uie&&Sie(Bie,e)?kie[e]=Bie[e]:kie[e]=sie&&Tie?Tie(t):Fie(t)}return kie[e]},jie=_oe.TypeError,Iie=Pie("toPrimitive"),Nie=function(e){var t=function(e,t){if(!Xoe(e)||cie(e))return e;var n,r=gie(e,Iie);if(r){if(void 0===t&&(t="default"),n=Toe(r,e,t),!Xoe(n)||cie(n))return n;throw jie("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Zoe(n=e.toString)&&!Xoe(r=Toe(n,e)))return r;if(Zoe(n=e.valueOf)&&!Xoe(r=Toe(n,e)))return r;if("string"!==t&&Zoe(n=e.toString)&&!Xoe(r=Toe(n,e)))return r;throw vie("Can't convert object to primitive value")}(e,t)}(e,"string");return cie(t)?t:t+""},Rie=_oe.document,Lie=Xoe(Rie)&&Xoe(Rie.createElement),Mie=function(e){return Lie?Rie.createElement(e):{}},zie=!koe&&!Ooe((function(){return 7!=Object.defineProperty(Mie("div"),"a",{get:function(){return 7}}).a})),Uie=Object.getOwnPropertyDescriptor,Hie={f:koe?Uie:function(e,t){if(e=Yoe(e),t=Nie(t),zie)try{return Uie(e,t)}catch(e){}if(Sie(e,t))return Ioe(!Toe(joe.f,e,t),e[t])}},$ie=_oe.String,Vie=_oe.TypeError,Wie=function(e){if(Xoe(e))return e;throw Vie($ie(e)+" is not an object")},Gie=_oe.TypeError,qie=Object.defineProperty,Kie={f:koe?qie:function(e,t,n){if(Wie(e),t=Nie(t),Wie(n),zie)try{return qie(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Gie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Yie=koe?function(e,t,n){return Kie.f(e,t,Ioe(1,n))}:function(e,t,n){return e[t]=n,e},Zie=zoe(Function.toString);Zoe(bie.inspectSource)||(bie.inspectSource=function(e){return Zie(e)});var Xie,Jie,Qie,eae=bie.inspectSource,tae=_oe.WeakMap,nae=Zoe(tae)&&/native code/.test(eae(tae)),rae=wie("keys"),oae=function(e){return rae[e]||(rae[e]=Oie(e))},iae={},aae=_oe.TypeError,uae=_oe.WeakMap;if(nae||bie.state){var sae=bie.state||(bie.state=new uae),lae=zoe(sae.get),cae=zoe(sae.has),fae=zoe(sae.set);Xie=function(e,t){if(cae(sae,e))throw new aae("Object already initialized");return t.facade=e,fae(sae,e,t),t},Jie=function(e){return lae(sae,e)||{}},Qie=function(e){return cae(sae,e)}}else{var dae=oae("state");iae[dae]=!0,Xie=function(e,t){if(Sie(e,dae))throw new aae("Object already initialized");return t.facade=e,Yie(e,dae,t),t},Jie=function(e){return Sie(e,dae)?e[dae]:{}},Qie=function(e){return Sie(e,dae)}}var pae={set:Xie,get:Jie,has:Qie,enforce:function(e){return Qie(e)?Jie(e):Xie(e,{})},getterFor:function(e){return function(t){var n;if(!Xoe(t)||(n=Jie(t)).type!==e)throw aae("Incompatible receiver, "+e+" required");return n}}},hae=Function.prototype,gae=koe&&Object.getOwnPropertyDescriptor,vae=Sie(hae,"name"),yae={EXISTS:vae,PROPER:vae&&"something"===function(){}.name,CONFIGURABLE:vae&&(!koe||koe&&gae(hae,"name").configurable)},mae=Coe((function(e){var t=yae.CONFIGURABLE,n=pae.get,r=pae.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Zoe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Sie(i,"name")||t&&i.name!==f)&&Yie(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==_oe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Yie(e,n,i)):l?e[n]=i:mie(n,i)})(Function.prototype,"toString",(function(){return Zoe(this)&&n(this).source||eae(this)}))})),bae=Math.ceil,wae=Math.floor,Eae=function(e){var t=+e;return t!=t||0===t?0:(t>0?wae:bae)(t)},xae=Math.max,Cae=Math.min,Sae=function(e,t){var n=Eae(e);return n<0?xae(n+t,0):Cae(n,t)},Dae=Math.min,Aae=function(e){return e>0?Dae(Eae(e),9007199254740991):0},_ae=function(e){return Aae(e.length)},Oae=function(e){return function(t,n,r){var o,i=Yoe(t),a=_ae(i),u=Sae(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},kae=(Oae(!0),Oae(!1)),Bae=zoe([].push),Tae=function(e,t){var n,r=Yoe(e),o=0,i=[];for(n in r)!Sie(iae,n)&&Sie(r,n)&&Bae(i,n);for(;t.length>o;)Sie(r,n=t[o++])&&(~kae(i,n)||Bae(i,n));return i},Fae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pae=Fae.concat("length","prototype"),jae={f:Object.getOwnPropertyNames||function(e){return Tae(e,Pae)}},Iae={f:Object.getOwnPropertySymbols},Nae=zoe([].concat),Rae=Qoe("Reflect","ownKeys")||function(e){var t=jae.f(Wie(e)),n=Iae.f;return n?Nae(t,n(e)):t},Lae=function(e,t){for(var n=Rae(t),r=Kie.f,o=Hie.f,i=0;i<n.length;i++){var a=n[i];Sie(e,a)||r(e,a,o(t,a))}},Mae=/#|\.prototype\./,zae=function(e,t){var n=Hae[Uae(e)];return n==Vae||n!=$ae&&(Zoe(t)?Ooe(t):!!t)},Uae=zae.normalize=function(e){return String(e).replace(Mae,".").toLowerCase()},Hae=zae.data={},$ae=zae.NATIVE="N",Vae=zae.POLYFILL="P",Wae=zae,Gae=Hie.f,qae=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?_oe:l?_oe[u]||mie(u,{}):(_oe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Gae(n,r))&&a.value:n[r],!Wae(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Lae(i,o)}(e.sham||o&&o.sham)&&Yie(i,"sham",!0),mae(n,r,i,e)}},Kae=Array.isArray||function(e){return"Array"==$oe(e)},Yae={};Yae[Pie("toStringTag")]="z";var Zae="[object z]"===String(Yae),Xae=Pie("toStringTag"),Jae=_oe.Object,Qae="Arguments"==$oe(function(){return arguments}()),eue=Zae?$oe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Jae(e),Xae))?n:Qae?$oe(t):"Object"==(r=$oe(t))&&Zoe(t.callee)?"Arguments":r},tue=function(){},nue=[],rue=Qoe("Reflect","construct"),oue=/^\s*(?:class|function)\b/,iue=zoe(oue.exec),aue=!oue.exec(tue),uue=function(e){if(!Zoe(e))return!1;try{return rue(tue,nue,e),!0}catch(e){return!1}},sue=!rue||Ooe((function(){var e;return uue(uue.call)||!uue(Object)||!uue((function(){e=!0}))||e}))?function(e){if(!Zoe(e))return!1;switch(eue(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return aue||!!iue(oue,eae(e))}:uue,lue=function(e,t,n){var r=Nie(t);r in e?Kie.f(e,r,Ioe(0,n)):e[r]=n},cue=Pie("species"),fue=zoe([].slice),due=aie>=51||!Ooe((function(){var e=[];return(e.constructor={})[cue]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),pue=Pie("species"),hue=_oe.Array,gue=Math.max;qae({target:"Array",proto:!0,forced:!due},{slice:function(e,t){var n,r,o,i=Yoe(this),a=_ae(i),u=Sae(e,a),s=Sae(void 0===t?a:t,a);if(Kae(i)&&(n=i.constructor,(sue(n)&&(n===hue||Kae(n.prototype))||Xoe(n)&&null===(n=n[pue]))&&(n=void 0),n===hue||void 0===n))return fue(i,u,s);for(r=new(void 0===n?hue:n)(gue(s-u,0)),o=0;u<s;u++,o++)u in i&&lue(r,o,i[u]);return r.length=o,r}});var vue=Zae?{}.toString:function(){return"[object "+eue(this)+"]"};Zae||mae(Object.prototype,"toString",vue,{unsafe:!0});var yue,mue=_oe.String,bue=function(e){if("Symbol"===eue(e))throw TypeError("Cannot convert a Symbol value to a string");return mue(e)},wue=function(){var e=Wie(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},Eue=_oe.RegExp,xue=Ooe((function(){var e=Eue("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Cue=xue||Ooe((function(){return!Eue("a","y").sticky})),Sue={BROKEN_CARET:xue||Ooe((function(){var e=Eue("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Cue,UNSUPPORTED_Y:xue},Due=Object.keys||function(e){return Tae(e,Fae)},Aue=koe?Object.defineProperties:function(e,t){Wie(e);for(var n,r=Yoe(t),o=Due(t),i=o.length,a=0;i>a;)Kie.f(e,n=o[a++],r[n]);return e},_ue=Qoe("document","documentElement"),Oue=oae("IE_PROTO"),kue=function(){},Bue=function(e){return"<script>"+e+"<\/script>"},Tue=function(e){e.write(Bue("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fue=function(){try{yue=new ActiveXObject("htmlfile")}catch(e){}var e,t;Fue="undefined"!=typeof document?document.domain&&yue?Tue(yue):((t=Mie("iframe")).style.display="none",_ue.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Bue("document.F=Object")),e.close(),e.F):Tue(yue);for(var n=Fae.length;n--;)delete Fue.prototype[Fae[n]];return Fue()};iae[Oue]=!0;var Pue,jue,Iue=Object.create||function(e,t){var n;return null!==e?(kue.prototype=Wie(e),n=new kue,kue.prototype=null,n[Oue]=e):n=Fue(),void 0===t?n:Aue(n,t)},Nue=_oe.RegExp,Rue=Ooe((function(){var e=Nue(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Lue=_oe.RegExp,Mue=Ooe((function(){var e=Lue("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),zue=pae.get,Uue=wie("native-string-replace",String.prototype.replace),Hue=RegExp.prototype.exec,$ue=Hue,Vue=zoe("".charAt),Wue=zoe("".indexOf),Gue=zoe("".replace),que=zoe("".slice),Kue=(jue=/b*/g,Toe(Hue,Pue=/a/,"a"),Toe(Hue,jue,"a"),0!==Pue.lastIndex||0!==jue.lastIndex),Yue=Sue.BROKEN_CARET,Zue=void 0!==/()??/.exec("")[1];(Kue||Zue||Yue||Rue||Mue)&&($ue=function(e){var t,n,r,o,i,a,u,s=this,l=zue(s),c=bue(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Toe($ue,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Yue&&s.sticky,h=Toe(wue,s),g=s.source,v=0,y=c;if(p&&(h=Gue(h,"y",""),-1===Wue(h,"g")&&(h+="g"),y=que(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Vue(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Zue&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Kue&&(r=s.lastIndex),o=Toe(Hue,p?n:s,y),p?o?(o.input=que(o.input,v),o[0]=que(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Kue&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Zue&&o&&o.length>1&&Toe(Uue,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=Iue(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Xue=$ue;qae({target:"RegExp",proto:!0,forced:/./.exec!==Xue},{exec:Xue});var Jue=Function.prototype,Que=Jue.apply,ese=Jue.bind,tse=Jue.call,nse="object"==typeof Reflect&&Reflect.apply||(ese?tse.bind(Que):function(){return tse.apply(Que,arguments)}),rse=Pie("species"),ose=RegExp.prototype,ise=Pie("match"),ase=_oe.TypeError,use=Pie("species"),sse=function(e,t){var n,r=Wie(e).constructor;return void 0===r||null==(n=Wie(r)[use])?t:function(e){if(sue(e))return e;throw ase(die(e)+" is not a constructor")}(n)},lse=zoe("".charAt),cse=zoe("".charCodeAt),fse=zoe("".slice),dse=function(e){return function(t,n){var r,o,i=bue(Koe(t)),a=Eae(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=cse(i,a))<55296||r>56319||a+1===u||(o=cse(i,a+1))<56320||o>57343?e?lse(i,a):r:e?fse(i,a,a+2):o-56320+(r-55296<<10)+65536}},pse={codeAt:dse(!1),charAt:dse(!0)},hse=pse.charAt,gse=function(e,t,n){return t+(n?hse(e,t).length:1)},vse=_oe.Array,yse=Math.max,mse=function(e,t,n){for(var r=_ae(e),o=Sae(t,r),i=Sae(void 0===n?r:n,r),a=vse(yse(i-o,0)),u=0;o<i;o++,u++)lue(a,u,e[o]);return a.length=u,a},bse=_oe.TypeError,wse=function(e,t){var n=e.exec;if(Zoe(n)){var r=Toe(n,e,t);return null!==r&&Wie(r),r}if("RegExp"===$oe(e))return Toe(Xue,e,t);throw bse("RegExp#exec called on incompatible receiver")},Ese=Sue.UNSUPPORTED_Y,xse=Math.min,Cse=[].push,Sse=zoe(/./.exec),Dse=zoe(Cse),Ase=zoe("".slice);!function(e,t,n,r){var o=Pie(e),i=!Ooe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Ooe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[rse]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=zoe(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=bue(Koe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Xoe(r=e)||!(void 0!==(o=r[ise])?o:"RegExp"==$oe(r)))return Toe(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Toe(Xue,p,i))&&!((s=p.lastIndex)>d&&(Dse(c,Ase(i,d,u.index)),u.length>1&&u.index<i.length&&nse(Cse,c,mse(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&Sse(p,"")||Dse(c,""):Dse(c,Ase(i,d)),c.length>a?mse(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Toe(t,this,e,n)}:t,[function(t,n){var o=Koe(this),i=null==t?void 0:gie(t,e);return i?Toe(i,t,o,n):Toe(r,bue(o),t,n)},function(e,o){var i=Wie(this),a=bue(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=sse(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Ese?"g":"y"),f=new s(Ese?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===wse(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=Ese?0:h;var v,y=wse(f,Ese?Ase(a,h):a);if(null===y||(v=xse(Aae(f.lastIndex+(Ese?h:0)),a.length))===p)h=gse(a,h,l);else{if(Dse(g,Ase(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Dse(g,y[m]),g.length===d)return g;h=p=v}}return Dse(g,Ase(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=zoe(e),s=t.exec;return s===Xue||s===ose.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));mae(String.prototype,e,s[0]),mae(ose,o,s[1])}r&&Yie(ose[o],"sham",!0)}("split",0,!!Ooe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Ese);
/*! *****************************************************************************
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 _se=function(){return _se=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},_se.apply(this,arguments)};function Ose(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 kse(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 Bse(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"),Fse=Array.prototype;null==Fse[Tse]&&Kie.f(Fse,Tse,{configurable:!0,value:Iue(null)});var Pse,jse,Ise,Nse=function(e){Fse[Tse][e]=!0},Rse={},Lse=!Ooe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Mse=oae("IE_PROTO"),zse=_oe.Object,Use=zse.prototype,Hse=Lse?zse.getPrototypeOf:function(e){var t=xie(e);if(Sie(t,Mse))return t[Mse];var n=t.constructor;return Zoe(n)&&t instanceof n?n.prototype:t instanceof zse?Use:null},$se=Pie("iterator"),Vse=!1;[].keys&&("next"in(Ise=[].keys())?(jse=Hse(Hse(Ise)))!==Object.prototype&&(Pse=jse):Vse=!0);var Wse=null==Pse||Ooe((function(){var e={};return Pse[$se].call(e)!==e}));Wse&&(Pse={}),Zoe(Pse[$se])||mae(Pse,$se,(function(){return this}));var Gse={IteratorPrototype:Pse,BUGGY_SAFARI_ITERATORS:Vse},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})},Zse=Gse.IteratorPrototype,Xse=function(){return this},Jse=_oe.String,Qse=_oe.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||Zoe(e))return e;throw Qse("Can't set "+Jse(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=Iue(Zse,{next:Ioe(1,n)}),Yse(e,o,!1),Rse[o]=Xse}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!ole&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ile]||p["@@iterator"]||o&&p[o],g=!ole&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Hse(v.call(new e)))!==Object.prototype&&u.next&&(Hse(u)!==rle&&(ele?ele(u,rle):Zoe(u[ile])||mae(u,ile,ale)),Yse(u,f,!0)),tle&&"values"==o&&h&&"values"!==h.name&&(nle?Yie(p,"name","values"):(d=!0,g=function(){return Toe(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(ole||d||!(l in p))&&mae(p,l,s[l]);else qae({target:t,proto:!0,forced:ole||d},s);return p[ile]!==g&&mae(p,ile,g,{name:o}),Rse[t]=g,s},sle=pae.set,lle=pae.getterFor("Array Iterator"),cle=ule(Array,"Array",(function(e,t){sle(this,{type:"Array Iterator",target:Yoe(e),index:0,kind:t})}),(function(){var e=lle(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");Rse.Arguments=Rse.Array,Nse("keys"),Nse("values"),Nse("entries");var fle=pse.charAt,dle=pae.set,ple=pae.getterFor("String Iterator");ule(String,"String",(function(e){dle(this,{type:"String Iterator",string:bue(e),index:0})}),(function(){var e,t=ple(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=fle(n,r),t.index+=e.length,{value:e,done:!1})}));var hle=function(e,t,n){for(var r in t)mae(e,r,t[r],n);return e},gle=jae.f,vle="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yle={f:function(e){return vle&&"Window"==$oe(e)?function(e){try{return gle(e)}catch(e){return mse(vle)}}(e):gle(Yoe(e))}},mle=Ooe((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),ble=Object.isExtensible,wle=Ooe((function(){ble(1)}))||mle?function(e){return!!Xoe(e)&&(!mle||"ArrayBuffer"!=$oe(e))&&(!ble||ble(e))}:ble,Ele=!Ooe((function(){return Object.isExtensible(Object.preventExtensions({}))})),xle=Coe((function(e){var t=Kie.f,n=!1,r=Oie("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=jae.f,t=zoe([].splice),o={};o[r]=1,e(o).length&&(jae.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},qae({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:yle.f}))},fastKey:function(e,t){if(!Xoe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Sie(e,r)){if(!wle(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Sie(e,r)){if(!wle(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Ele&&n&&wle(e)&&!Sie(e,r)&&i(e),e}};iae[r]=!0})),Cle=zoe(zoe.bind),Sle=function(e,t){return hie(e),void 0===t?e:Cle?Cle(e,t):function(){return e.apply(t,arguments)}},Dle=Pie("iterator"),Ale=Array.prototype,_le=Pie("iterator"),Ole=function(e){if(null!=e)return gie(e,_le)||gie(e,"@@iterator")||Rse[eue(e)]},kle=_oe.TypeError,Ble=function(e,t,n){var r,o;Wie(e);try{if(!(r=gie(e,"return"))){if("throw"===t)throw n;return n}r=Toe(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Wie(r),n},Tle=_oe.TypeError,Fle=function(e,t){this.stopped=e,this.result=t},Ple=Fle.prototype,jle=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Sle(t,f),v=function(e){return r&&Ble(r,"normal",e),new Fle(!0,e)},y=function(e){return d?(Wie(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Ole(e)))throw Tle(die(e)+" is not iterable");if(void 0!==(c=o)&&(Rse.Array===c||Ale[Dle]===c)){for(i=0,a=_ae(e);a>i;i++)if((u=y(e[i]))&&eie(Ple,u))return u;return new Fle(!1)}r=function(e,t){var n=arguments.length<2?Ole(e):t;if(hie(n))return Wie(Toe(n,e));throw kle(die(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Toe(s,r)).done;){try{u=y(l.value)}catch(e){Ble(r,"throw",e)}if("object"==typeof u&&u&&eie(Ple,u))return u}return new Fle(!1)},Ile=_oe.TypeError,Nle=function(e,t){if(eie(t,e))return e;throw Ile("Incorrect invocation")},Rle=Pie("iterator"),Lle=!1;try{var Mle=0,zle={next:function(){return{done:!!Mle++}},return:function(){Lle=!0}};zle[Rle]=function(){return this},Array.from(zle,(function(){throw 2}))}catch(Hl){}var Ule=function(e,t){if(!t&&!Lle)return!1;var n=!1;try{var r={};r[Rle]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Hle=Pie("species"),$le=_oe.Array,Vle=function(e,t){return new(function(e){var t;return Kae(e)&&(t=e.constructor,(sue(t)&&(t===$le||Kae(t.prototype))||Xoe(t)&&null===(t=t[Hle]))&&(t=void 0)),void 0===t?$le:t}(e))(0===t?0:t)},Wle=zoe([].push),Gle=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=xie(s),g=Goe(h),v=Sle(l,c),y=_ae(g),m=0,b=f||Vle,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Wle(w,d)}else switch(e){case 4:return!1;case 7:Wle(w,d)}return i?-1:r||o?o:w}},qle={forEach:Gle(0),map:Gle(1),filter:Gle(2),some:Gle(3),every:Gle(4),find:Gle(5),findIndex:Gle(6),filterReject:Gle(7)},Kle=xle.getWeakData,Yle=pae.set,Zle=pae.getterFor,Xle=qle.find,Jle=qle.findIndex,Qle=zoe([].splice),ece=0,tce=function(e){return e.frozen||(e.frozen=new nce)},nce=function(){this.entries=[]},rce=function(e,t){return Xle(e.entries,(function(e){return e[0]===t}))};nce.prototype={get:function(e){var t=rce(this,e);if(t)return t[1]},has:function(e){return!!rce(this,e)},set:function(e,t){var n=rce(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Jle(this.entries,(function(t){return t[0]===e}));return~t&&Qle(this.entries,t,1),!!~t}};var oce,ice={getConstructor:function(e,t,n,r){var o=e((function(e,o){Nle(e,i),Yle(e,{type:t,id:ece++,frozen:void 0}),null!=o&&jle(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Zle(t),u=function(e,t,n){var r=a(e),o=Kle(Wie(t),!0);return!0===o?tce(r).set(t,n):o[r.id]=n,e};return hle(i,{delete:function(e){var t=a(this);if(!Xoe(e))return!1;var n=Kle(e);return!0===n?tce(t).delete(e):n&&Sie(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Xoe(e))return!1;var n=Kle(e);return!0===n?tce(t).has(e):n&&Sie(n,t.id)}}),hle(i,n?{get:function(e){var t=a(this);if(Xoe(e)){var n=Kle(e);return!0===n?tce(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},ace=pae.enforce,uce=!_oe.ActiveXObject&&"ActiveXObject"in _oe,sce=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},lce=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=_oe[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=zoe(u[e]);mae(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Xoe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Xoe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Xoe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Wae(e,!Zoe(a)||!(o||u.forEach&&!Ooe((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),xle.enable();else if(Wae(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Ooe((function(){f.has(1)})),h=Ule((function(e){new a(e)})),g=!o&&Ooe((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Nle(e,u);var n=function(e,t,n){var r,o;return ele&&Zoe(r=t.constructor)&&r!==n&&Xoe(o=r.prototype)&&o!==n.prototype&&ele(e,o),e}(new a,e,s);return null!=t&&jle(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,qae({global:!0,forced:s!=a},l),Yse(s,e),o||n.setStrong(s,e,r),s}("WeakMap",sce,ice);if(nae&&uce){oce=ice.getConstructor(sce,"WeakMap",!0),xle.enable();var cce=lce.prototype,fce=zoe(cce.delete),dce=zoe(cce.has),pce=zoe(cce.get),hce=zoe(cce.set);hle(cce,{delete:function(e){if(Xoe(e)&&!wle(e)){var t=ace(this);return t.frozen||(t.frozen=new oce),fce(this,e)||t.frozen.delete(e)}return fce(this,e)},has:function(e){if(Xoe(e)&&!wle(e)){var t=ace(this);return t.frozen||(t.frozen=new oce),dce(this,e)||t.frozen.has(e)}return dce(this,e)},get:function(e){if(Xoe(e)&&!wle(e)){var t=ace(this);return t.frozen||(t.frozen=new oce),dce(this,e)?pce(this,e):t.frozen.get(e)}return pce(this,e)},set:function(e,t){if(Xoe(e)&&!wle(e)){var n=ace(this);n.frozen||(n.frozen=new oce),dce(this,e)?hce(this,e,t):n.frozen.set(e,t)}else hce(this,e,t);return this}})}var gce={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},vce=Mie("span").classList,yce=vce&&vce.constructor&&vce.constructor.prototype,mce=yce===Object.prototype?void 0:yce,bce=Pie("iterator"),wce=Pie("toStringTag"),Ece=cle.values,xce=function(e,t){if(e){if(e[bce]!==Ece)try{Yie(e,bce,Ece)}catch(t){e[bce]=Ece}if(e[wce]||Yie(e,wce,t),gce[t])for(var n in cle)if(e[n]!==cle[n])try{Yie(e,n,cle[n])}catch(t){e[n]=cle[n]}}};for(var Cce in gce)xce(_oe[Cce]&&_oe[Cce].prototype,Cce);xce(mce,"DOMTokenList");var Sce=function(e,t){var n=[][e];return!!n&&Ooe((function(){n.call(null,t||function(){throw 1},1)}))},Dce=qle.forEach,Ace=Sce("forEach")?[].forEach:function(e){return Dce(this,e,arguments.length>1?arguments[1]:void 0)},_ce=function(e){if(e&&e.forEach!==Ace)try{Yie(e,"forEach",Ace)}catch(o){e.forEach=Ace}};for(var Oce in gce)gce[Oce]&&_ce(_oe[Oce]&&_oe[Oce].prototype);_ce(mce);var kce,Bce,Tce,Fce,Pce=_oe.Promise,jce=Pie("species"),Ice=/(?:ipad|iphone|ipod).*applewebkit/i.test(tie),Nce="process"==$oe(_oe.process),Rce=_oe.setImmediate,Lce=_oe.clearImmediate,Mce=_oe.process,zce=_oe.Dispatch,Uce=_oe.Function,Hce=_oe.MessageChannel,$ce=_oe.String,Vce=0,Wce={};try{kce=_oe.location}catch(Hl){}var Gce=function(e){if(Sie(Wce,e)){var t=Wce[e];delete Wce[e],t()}},qce=function(e){return function(){Gce(e)}},Kce=function(e){Gce(e.data)},Yce=function(e){_oe.postMessage($ce(e),kce.protocol+"//"+kce.host)};Rce&&Lce||(Rce=function(e){var t=fue(arguments,1);return Wce[++Vce]=function(){nse(Zoe(e)?e:Uce(e),void 0,t)},Bce(Vce),Vce},Lce=function(e){delete Wce[e]},Nce?Bce=function(e){Mce.nextTick(qce(e))}:zce&&zce.now?Bce=function(e){zce.now(qce(e))}:Hce&&!Ice?(Fce=(Tce=new Hce).port2,Tce.port1.onmessage=Kce,Bce=Sle(Fce.postMessage,Fce)):_oe.addEventListener&&Zoe(_oe.postMessage)&&!_oe.importScripts&&kce&&"file:"!==kce.protocol&&!Ooe(Yce)?(Bce=Yce,_oe.addEventListener("message",Kce,!1)):Bce="onreadystatechange"in Mie("script")?function(e){_ue.appendChild(Mie("script")).onreadystatechange=function(){_ue.removeChild(this),Gce(e)}}:function(e){setTimeout(qce(e),0)});var Zce,Xce,Jce,Qce,efe,tfe,nfe,rfe,ofe={set:Rce,clear:Lce},ife=/ipad|iphone|ipod/i.test(tie)&&void 0!==_oe.Pebble,afe=/web0s(?!.*chrome)/i.test(tie),ufe=Hie.f,sfe=ofe.set,lfe=_oe.MutationObserver||_oe.WebKitMutationObserver,cfe=_oe.document,ffe=_oe.process,dfe=_oe.Promise,pfe=ufe(_oe,"queueMicrotask"),hfe=pfe&&pfe.value;hfe||(Zce=function(){var e,t;for(Nce&&(e=ffe.domain)&&e.exit();Xce;){t=Xce.fn,Xce=Xce.next;try{t()}catch(e){throw Xce?Qce():Jce=void 0,e}}Jce=void 0,e&&e.enter()},Ice||Nce||afe||!lfe||!cfe?!ife&&dfe&&dfe.resolve?((nfe=dfe.resolve(void 0)).constructor=dfe,rfe=Sle(nfe.then,nfe),Qce=function(){rfe(Zce)}):Nce?Qce=function(){ffe.nextTick(Zce)}:(sfe=Sle(sfe,_oe),Qce=function(){sfe(Zce)}):(efe=!0,tfe=cfe.createTextNode(""),new lfe(Zce).observe(tfe,{characterData:!0}),Qce=function(){tfe.data=efe=!efe}));var gfe,vfe,yfe,mfe,bfe=hfe||function(e){var t={fn:e,next:void 0};Jce&&(Jce.next=t),Xce||(Xce=t,Qce()),Jce=t},wfe=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=hie(t),this.reject=hie(n)},Efe={f:function(e){return new wfe(e)}},xfe=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Cfe="object"==typeof window,Sfe=ofe.set,Dfe=Pie("species"),Afe="Promise",_fe=pae.getterFor(Afe),Ofe=pae.set,kfe=pae.getterFor(Afe),Bfe=Pce&&Pce.prototype,Tfe=Pce,Ffe=Bfe,Pfe=_oe.TypeError,jfe=_oe.document,Ife=_oe.process,Nfe=Efe.f,Rfe=Nfe,Lfe=!!(jfe&&jfe.createEvent&&_oe.dispatchEvent),Mfe=Zoe(_oe.PromiseRejectionEvent),zfe=!1,Ufe=Wae(Afe,(function(){var e=eae(Tfe),t=e!==String(Tfe);if(!t&&66===aie)return!0;if(aie>=51&&/native code/.test(e))return!1;var n=new Tfe((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Dfe]=r,!(zfe=n.then((function(){}))instanceof r)||!t&&Cfe&&!Mfe})),Hfe=Ufe||!Ule((function(e){Tfe.all(e).catch((function(){}))})),$fe=function(e){var t;return!(!Xoe(e)||!Zoe(t=e.then))&&t},Vfe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;bfe((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Kfe(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Pfe("Promise-chain cycle")):(u=$fe(a))?Toe(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Gfe(e)}))}},Wfe=function(e,t,n){var r,o;Lfe?((r=jfe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),_oe.dispatchEvent(r)):r={promise:t,reason:n},!Mfe&&(o=_oe["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=_oe.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Gfe=function(e){Toe(Sfe,_oe,(function(){var t,n=e.facade,r=e.value;if(qfe(e)&&(t=xfe((function(){Nce?Ife.emit("unhandledRejection",r,n):Wfe("unhandledrejection",n,r)})),e.rejection=Nce||qfe(e)?2:1,t.error))throw t.value}))},qfe=function(e){return 1!==e.rejection&&!e.parent},Kfe=function(e){Toe(Sfe,_oe,(function(){var t=e.facade;Nce?Ife.emit("rejectionHandled",t):Wfe("rejectionhandled",t,e.value)}))},Yfe=function(e,t,n){return function(r){e(t,r,n)}},Zfe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Vfe(e,!0))},Xfe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Pfe("Promise can't be resolved itself");var r=$fe(t);r?bfe((function(){var n={done:!1};try{Toe(r,t,Yfe(Xfe,n,e),Yfe(Zfe,n,e))}catch(t){Zfe(n,t,e)}})):(e.value=t,e.state=1,Vfe(e,!1))}catch(t){Zfe({done:!1},t,e)}}};if(Ufe&&(Ffe=(Tfe=function(e){Nle(this,Ffe),hie(e),Toe(gfe,this);var t=_fe(this);try{e(Yfe(Xfe,t),Yfe(Zfe,t))}catch(e){Zfe(t,e)}}).prototype,(gfe=function(e){Ofe(this,{type:Afe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=hle(Ffe,{then:function(e,t){var n=kfe(this),r=n.reactions,o=Nfe(sse(this,Tfe));return o.ok=!Zoe(e)||e,o.fail=Zoe(t)&&t,o.domain=Nce?Ife.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Vfe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),vfe=function(){var e=new gfe,t=_fe(e);this.promise=e,this.resolve=Yfe(Xfe,t),this.reject=Yfe(Zfe,t)},Efe.f=Nfe=function(e){return e===Tfe||e===yfe?new vfe(e):Rfe(e)},Zoe(Pce)&&Bfe!==Object.prototype)){mfe=Bfe.then,zfe||(mae(Bfe,"then",(function(e,t){var n=this;return new Tfe((function(e,t){Toe(mfe,n,e,t)})).then(e,t)}),{unsafe:!0}),mae(Bfe,"catch",Ffe.catch,{unsafe:!0}));try{delete Bfe.constructor}catch(Hl){}ele&&ele(Bfe,Ffe)}qae({global:!0,wrap:!0,forced:Ufe},{Promise:Tfe}),Yse(Tfe,Afe,!1),function(e){var t=Qoe("Promise"),n=Kie.f;koe&&t&&!t[jce]&&n(t,jce,{configurable:!0,get:function(){return this}})}(),yfe=Qoe(Afe),qae({target:Afe,stat:!0,forced:Ufe},{reject:function(e){var t=Nfe(this);return Toe(t.reject,void 0,e),t.promise}}),qae({target:Afe,stat:!0,forced:Ufe},{resolve:function(e){return function(e,t){if(Wie(e),Xoe(t)&&t.constructor===e)return t;var n=Efe.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),qae({target:Afe,stat:!0,forced:Hfe},{all:function(e){var t=this,n=Nfe(t),r=n.resolve,o=n.reject,i=xfe((function(){var n=hie(t.resolve),i=[],a=0,u=1;jle(e,(function(e){var s=a++,l=!1;u++,Toe(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Nfe(t),r=n.reject,o=xfe((function(){var o=hie(t.resolve);jle(e,(function(e){Toe(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Jfe=yae.PROPER,Qfe=RegExp.prototype,ede=Qfe.toString,tde=zoe(wue),nde=Ooe((function(){return"/a/b"!=ede.call({source:"a",flags:"b"})})),rde=Jfe&&"toString"!=ede.name;(nde||rde)&&mae(RegExp.prototype,"toString",(function(){var e=Wie(this),t=bue(e.source),n=e.flags;return"/"+t+"/"+bue(void 0===n&&eie(Qfe,e)&&!("flags"in Qfe)?tde(e):n)}),{unsafe:!0});var ode=yae.EXISTS,ide=Kie.f,ade=Function.prototype,ude=zoe(ade.toString),sde=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,lde=zoe(sde.exec);koe&&!ode&&ide(ade,"name",{configurable:!0,get:function(){try{return lde(sde,ude(this))[1]}catch(r){return""}}});var cde=new WeakMap;function fde(e){return e.getMenuConfig("uploadImage")}function dde(e,t){return Ose(this,void 0,void 0,(function(){return kse(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;LU(e,i,t.name,a),n("ok")}}}))]}))}))}function pde(e,t){return Ose(this,void 0,void 0,(function(){var n,r,o,i;return kse(this,(function(a){switch(a.label){case 0:return n=function(e){var t=cde.get(e);if(null!=t)return t;var n=fde(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=YF(_se(_se({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return LU(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;LU(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;LU(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),cde.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function hde(e,t){var n,r;return Ose(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return kse(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=fde(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=Bse(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,dde(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return LU(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,pde(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var gde=zoe([].join),vde=Goe!=Object,yde=Sce("join",",");qae({target:"Array",proto:!0,forced:vde||!yde},{join:function(e){return gde(Yoe(this),void 0===e?",":e)}}),sh&&(Up.fn.append=sh),Yp&&(Up.fn.on=Yp),hh&&(Up.fn.remove=hh),Kp&&(Up.fn.val=Kp),mh&&(Up.fn.click=mh),eh&&(Up.fn.hide=eh);var mde=function(){function e(){this.title=UP("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return MU(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return LU(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Up("body"),s=Up('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;hde(e,t)}))}},e}(),bde={menus:[{key:"uploadImage",factory:function(){return new mde},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(MU(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?hde(e,o):t(r)}},n}};zP("en",{highLightModule:{selectLang:"Language"}}),zP("zh-CN",{highLightModule:{selectLang:"选择语言"}});var wde="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function Ede(e){var t={exports:{}};return e(t,t.exports),t.exports}var xde,Cde,Sde=function(e){return e&&e.Math==Math&&e},Dde=Sde("object"==typeof globalThis&&globalThis)||Sde("object"==typeof window&&window)||Sde("object"==typeof self&&self)||Sde("object"==typeof wde&&wde)||function(){return this}()||Function("return this")(),Ade=Object.defineProperty,_de=function(e,t){try{Ade(Dde,e,{value:t,configurable:!0,writable:!0})}catch(i){Dde[e]=t}return t},Ode=Dde["__core-js_shared__"]||_de("__core-js_shared__",{}),kde=Ede((function(e){(e.exports=function(e,t){return Ode[e]||(Ode[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Bde=Function.prototype,Tde=Bde.bind,Fde=Bde.call,Pde=Tde&&Tde.bind(Fde),jde=Tde?function(e){return e&&Pde(Fde,e)}:function(e){return e&&function(){return Fde.apply(e,arguments)}},Ide=Dde.TypeError,Nde=function(e){if(null==e)throw Ide("Can't call method on "+e);return e},Rde=Dde.Object,Lde=function(e){return Rde(Nde(e))},Mde=jde({}.hasOwnProperty),zde=Object.hasOwn||function(e,t){return Mde(Lde(e),t)},Ude=0,Hde=Math.random(),$de=jde(1..toString),Vde=function(e){return"Symbol("+(void 0===e?"":e)+")_"+$de(++Ude+Hde,36)},Wde=function(e){return"function"==typeof e},Gde=function(e){return Wde(e)?e:void 0},qde=function(e,t){return arguments.length<2?Gde(Dde[e]):Dde[e]&&Dde[e][t]},Kde=qde("navigator","userAgent")||"",Yde=Dde.process,Zde=Dde.Deno,Xde=Yde&&Yde.versions||Zde&&Zde.version,Jde=Xde&&Xde.v8;Jde&&(Cde=(xde=Jde.split("."))[0]>0&&xde[0]<4?1:+(xde[0]+xde[1])),!Cde&&Kde&&(!(xde=Kde.match(/Edge\/(\d+)/))||xde[1]>=74)&&(xde=Kde.match(/Chrome\/(\d+)/))&&(Cde=+xde[1]);var Qde=Cde,epe=function(e){try{return!!e()}catch(e){return!0}},tpe=!!Object.getOwnPropertySymbols&&!epe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qde&&Qde<41})),npe=tpe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,rpe=kde("wks"),ope=Dde.Symbol,ipe=ope&&ope.for,ape=npe?ope:ope&&ope.withoutSetter||Vde,upe=function(e){if(!zde(rpe,e)||!tpe&&"string"!=typeof rpe[e]){var t="Symbol."+e;tpe&&zde(ope,e)?rpe[e]=ope[e]:rpe[e]=npe&&ipe?ipe(t):ape(t)}return rpe[e]},spe={};spe[upe("toStringTag")]="z";var lpe="[object z]"===String(spe),cpe=!epe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),fpe=function(e){return"object"==typeof e?null!==e:Wde(e)},dpe=Dde.document,ppe=fpe(dpe)&&fpe(dpe.createElement),hpe=function(e){return ppe?dpe.createElement(e):{}},gpe=!cpe&&!epe((function(){return 7!=Object.defineProperty(hpe("div"),"a",{get:function(){return 7}}).a})),vpe=Dde.String,ype=Dde.TypeError,mpe=function(e){if(fpe(e))return e;throw ype(vpe(e)+" is not an object")},bpe=Function.prototype.call,wpe=bpe.bind?bpe.bind(bpe):function(){return bpe.apply(bpe,arguments)},Epe=jde({}.isPrototypeOf),xpe=Dde.Object,Cpe=npe?function(e){return"symbol"==typeof e}:function(e){var t=qde("Symbol");return Wde(t)&&Epe(t.prototype,xpe(e))},Spe=Dde.String,Dpe=function(e){try{return Spe(e)}catch(e){return"Object"}},Ape=Dde.TypeError,_pe=function(e){if(Wde(e))return e;throw Ape(Dpe(e)+" is not a function")},Ope=function(e,t){var n=e[t];return null==n?void 0:_pe(n)},kpe=Dde.TypeError,Bpe=Dde.TypeError,Tpe=upe("toPrimitive"),Fpe=function(e){var t=function(e,t){if(!fpe(e)||Cpe(e))return e;var n,r=Ope(e,Tpe);if(r){if(void 0===t&&(t="default"),n=wpe(r,e,t),!fpe(n)||Cpe(n))return n;throw Bpe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Wde(n=e.toString)&&!fpe(r=wpe(n,e)))return r;if(Wde(n=e.valueOf)&&!fpe(r=wpe(n,e)))return r;if("string"!==t&&Wde(n=e.toString)&&!fpe(r=wpe(n,e)))return r;throw kpe("Can't convert object to primitive value")}(e,t)}(e,"string");return Cpe(t)?t:t+""},Ppe=Dde.TypeError,jpe=Object.defineProperty,Ipe={f:cpe?jpe:function(e,t,n){if(mpe(e),t=Fpe(t),mpe(n),gpe)try{return jpe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ppe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Npe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Rpe=cpe?function(e,t,n){return Ipe.f(e,t,Npe(1,n))}:function(e,t,n){return e[t]=n,e},Lpe=jde(Function.toString);Wde(Ode.inspectSource)||(Ode.inspectSource=function(e){return Lpe(e)});var Mpe,zpe,Upe,Hpe=Ode.inspectSource,$pe=Dde.WeakMap,Vpe=Wde($pe)&&/native code/.test(Hpe($pe)),Wpe=kde("keys"),Gpe=function(e){return Wpe[e]||(Wpe[e]=Vde(e))},qpe={},Kpe=Dde.TypeError,Ype=Dde.WeakMap;if(Vpe||Ode.state){var Zpe=Ode.state||(Ode.state=new Ype),Xpe=jde(Zpe.get),Jpe=jde(Zpe.has),Qpe=jde(Zpe.set);Mpe=function(e,t){if(Jpe(Zpe,e))throw new Kpe("Object already initialized");return t.facade=e,Qpe(Zpe,e,t),t},zpe=function(e){return Xpe(Zpe,e)||{}},Upe=function(e){return Jpe(Zpe,e)}}else{var ehe=Gpe("state");qpe[ehe]=!0,Mpe=function(e,t){if(zde(e,ehe))throw new Kpe("Object already initialized");return t.facade=e,Rpe(e,ehe,t),t},zpe=function(e){return zde(e,ehe)?e[ehe]:{}},Upe=function(e){return zde(e,ehe)}}var the={set:Mpe,get:zpe,has:Upe,enforce:function(e){return Upe(e)?zpe(e):Mpe(e,{})},getterFor:function(e){return function(t){var n;if(!fpe(t)||(n=zpe(t)).type!==e)throw Kpe("Incompatible receiver, "+e+" required");return n}}},nhe=Function.prototype,rhe=cpe&&Object.getOwnPropertyDescriptor,ohe=zde(nhe,"name"),ihe={EXISTS:ohe,PROPER:ohe&&"something"===function(){}.name,CONFIGURABLE:ohe&&(!cpe||cpe&&rhe(nhe,"name").configurable)},ahe=Ede((function(e){var t=ihe.CONFIGURABLE,n=the.get,r=the.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Wde(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!zde(i,"name")||t&&i.name!==f)&&Rpe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Dde?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Rpe(e,n,i)):l?e[n]=i:_de(n,i)})(Function.prototype,"toString",(function(){return Wde(this)&&n(this).source||Hpe(this)}))})),uhe=jde({}.toString),she=jde("".slice),lhe=function(e){return she(uhe(e),8,-1)},che=upe("toStringTag"),fhe=Dde.Object,dhe="Arguments"==lhe(function(){return arguments}()),phe=lpe?lhe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=fhe(e),che))?n:dhe?lhe(t):"Object"==(r=lhe(t))&&Wde(t.callee)?"Arguments":r},hhe=lpe?{}.toString:function(){return"[object "+phe(this)+"]"};lpe||ahe(Object.prototype,"toString",hhe,{unsafe:!0});var ghe,vhe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},yhe=hpe("span").classList,mhe=yhe&&yhe.constructor&&yhe.constructor.prototype,bhe=mhe===Object.prototype?void 0:mhe,whe=jde(jde.bind),Ehe=Dde.Object,xhe=jde("".split),Che=epe((function(){return!Ehe("z").propertyIsEnumerable(0)}))?function(e){return"String"==lhe(e)?xhe(e,""):Ehe(e)}:Ehe,She=Math.ceil,Dhe=Math.floor,Ahe=function(e){var t=+e;return t!=t||0===t?0:(t>0?Dhe:She)(t)},_he=Math.min,Ohe=function(e){return e>0?_he(Ahe(e),9007199254740991):0},khe=function(e){return Ohe(e.length)},Bhe=Array.isArray||function(e){return"Array"==lhe(e)},The=function(){},Fhe=[],Phe=qde("Reflect","construct"),jhe=/^\s*(?:class|function)\b/,Ihe=jde(jhe.exec),Nhe=!jhe.exec(The),Rhe=function(e){if(!Wde(e))return!1;try{return Phe(The,Fhe,e),!0}catch(e){return!1}},Lhe=!Phe||epe((function(){var e;return Rhe(Rhe.call)||!Rhe(Object)||!Rhe((function(){e=!0}))||e}))?function(e){if(!Wde(e))return!1;switch(phe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Nhe||!!Ihe(jhe,Hpe(e))}:Rhe,Mhe=upe("species"),zhe=Dde.Array,Uhe=function(e,t){return new(function(e){var t;return Bhe(e)&&(t=e.constructor,(Lhe(t)&&(t===zhe||Bhe(t.prototype))||fpe(t)&&null===(t=t[Mhe]))&&(t=void 0)),void 0===t?zhe:t}(e))(0===t?0:t)},Hhe=jde([].push),$he=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=Lde(s),g=Che(h),v=function(e,t){return _pe(e),void 0===t?e:whe?whe(e,t):function(){return e.apply(t,arguments)}}(l,c),y=khe(g),m=0,b=f||Uhe,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Hhe(w,d)}else switch(e){case 4:return!1;case 7:Hhe(w,d)}return i?-1:r||o?o:w}},Vhe=[$he(0),$he(1),$he(2),$he(3),$he(4),$he(5),$he(6),$he(7)][0],Whe=(ghe=[].forEach)&&epe((function(){ghe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return Vhe(this,e,arguments.length>1?arguments[1]:void 0)},Ghe=function(e){if(e&&e.forEach!==Whe)try{Rpe(e,"forEach",Whe)}catch(o){e.forEach=Whe}};for(var qhe in vhe)vhe[qhe]&&Ghe(Dde[qhe]&&Dde[qhe].prototype);Ghe(bhe);var Khe={}.propertyIsEnumerable,Yhe=Object.getOwnPropertyDescriptor,Zhe={f:Yhe&&!Khe.call({1:2},1)?function(e){var t=Yhe(this,e);return!!t&&t.enumerable}:Khe},Xhe=function(e){return Che(Nde(e))},Jhe=Object.getOwnPropertyDescriptor,Qhe={f:cpe?Jhe:function(e,t){if(e=Xhe(e),t=Fpe(t),gpe)try{return Jhe(e,t)}catch(e){}if(zde(e,t))return Npe(!wpe(Zhe.f,e,t),e[t])}},ege=Math.max,tge=Math.min,nge=function(e,t){var n=Ahe(e);return n<0?ege(n+t,0):tge(n,t)},rge=function(e){return function(t,n,r){var o,i=Xhe(t),a=khe(i),u=nge(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},oge=(rge(!0),rge(!1)),ige=jde([].push),age=function(e,t){var n,r=Xhe(e),o=0,i=[];for(n in r)!zde(qpe,n)&&zde(r,n)&&ige(i,n);for(;t.length>o;)zde(r,n=t[o++])&&(~oge(i,n)||ige(i,n));return i},uge=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sge=uge.concat("length","prototype"),lge={f:Object.getOwnPropertyNames||function(e){return age(e,sge)}},cge={f:Object.getOwnPropertySymbols},fge=jde([].concat),dge=qde("Reflect","ownKeys")||function(e){var t=lge.f(mpe(e)),n=cge.f;return n?fge(t,n(e)):t},pge=function(e,t){for(var n=dge(t),r=Ipe.f,o=Qhe.f,i=0;i<n.length;i++){var a=n[i];zde(e,a)||r(e,a,o(t,a))}},hge=/#|\.prototype\./,gge=function(e,t){var n=yge[vge(e)];return n==bge||n!=mge&&(Wde(t)?epe(t):!!t)},vge=gge.normalize=function(e){return String(e).replace(hge,".").toLowerCase()},yge=gge.data={},mge=gge.NATIVE="N",bge=gge.POLYFILL="P",wge=gge,Ege=Qhe.f,xge=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Dde:l?Dde[u]||_de(u,{}):(Dde[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Ege(n,r))&&a.value:n[r],!wge(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;pge(i,o)}(e.sham||o&&o.sham)&&Rpe(i,"sham",!0),ahe(n,r,i,e)}},Cge=Object.keys||function(e){return age(e,uge)},Sge=Object.assign,Dge=Object.defineProperty,Age=jde([].concat),_ge=!Sge||epe((function(){if(cpe&&1!==Sge({b:1},Sge(Dge({},"a",{enumerable:!0,get:function(){Dge(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Sge({},e)[n]||Cge(Sge({},t)).join("")!=r}))?function(e,t){for(var n=Lde(e),r=arguments.length,o=1,i=cge.f,a=Zhe.f;r>o;)for(var u,s=Che(arguments[o++]),l=i?Age(Cge(s),i(s)):Cge(s),c=l.length,f=0;c>f;)u=l[f++],cpe&&!wpe(a,s,u)||(n[u]=s[u]);return n}:Sge;xge({target:"Object",stat:!0,forced:Object.assign!==_ge},{assign:_ge});var Oge=Ede((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var E=g.pattern||g,x=r.next,C=s;x!==t.tail&&!(f&&C>=f.reach);C+=x.value.length,x=x.next){var S=x.value;if(t.length>e.length)return;if(!(S instanceof i)){var D,A=1;if(m){if(!(D=a(E,C,e,y)))break;var _=D.index,O=D.index+D[0].length,k=C;for(k+=x.value.length;_>=k;)k+=(x=x.next).value.length;if(C=k-=x.value.length,x.value instanceof i)continue;for(var B=x;B!==t.tail&&(k<O||"string"==typeof B.value);B=B.next)A++,k+=B.value.length;A--,S=e.slice(C,k),D.index-=C}else if(!(D=a(E,0,S,y)))continue;_=D.index;var T=D[0],F=S.slice(0,_),P=S.slice(_+T.length),j=C+S.length;f&&j>f.reach&&(f.reach=j);var I=x.prev;if(F&&(I=l(t,I,F),C+=F.length),c(t,I,A),x=l(t,I,new i(d,v?o.tokenize(T,v):T,b,T)),P&&l(t,x,P),A>1){var N={cause:d+","+h,reach:j};u(e,t,n,x.prev,C,N),f&&N.reach>f.reach&&(f.reach=N.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
/**
 * 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:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,m]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,D=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,x]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,d,g]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,x,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var _=D+"|"+S,O=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[_]),k=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),B=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,T=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,k]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[B,T]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[B]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[k]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var F=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,F]),I=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[_]),2),N=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,F]);function R(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,F]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:R(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:R(N,I)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var kge=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function Bge(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+Bge(t)}),0)}var Tge,Fge=Dde.String,Pge=function(e){if("Symbol"===phe(e))throw TypeError("Cannot convert a Symbol value to a string");return Fge(e)},jge=function(){var e=mpe(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},Ige=Dde.RegExp,Nge=epe((function(){var e=Ige("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Rge=Nge||epe((function(){return!Ige("a","y").sticky})),Lge={BROKEN_CARET:Nge||epe((function(){var e=Ige("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Rge,UNSUPPORTED_Y:Nge},Mge=cpe?Object.defineProperties:function(e,t){mpe(e);for(var n,r=Xhe(t),o=Cge(t),i=o.length,a=0;i>a;)Ipe.f(e,n=o[a++],r[n]);return e},zge=qde("document","documentElement"),Uge=Gpe("IE_PROTO"),Hge=function(){},$ge=function(e){return"<script>"+e+"<\/script>"},Vge=function(e){e.write($ge("")),e.close();var t=e.parentWindow.Object;return e=null,t},Wge=function(){try{Tge=new ActiveXObject("htmlfile")}catch(e){}var e,t;Wge="undefined"!=typeof document?document.domain&&Tge?Vge(Tge):((t=hpe("iframe")).style.display="none",zge.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write($ge("document.F=Object")),e.close(),e.F):Vge(Tge);for(var n=uge.length;n--;)delete Wge.prototype[uge[n]];return Wge()};qpe[Uge]=!0;var Gge,qge,Kge=Object.create||function(e,t){var n;return null!==e?(Hge.prototype=mpe(e),n=new Hge,Hge.prototype=null,n[Uge]=e):n=Wge(),void 0===t?n:Mge(n,t)},Yge=Dde.RegExp,Zge=epe((function(){var e=Yge(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Xge=Dde.RegExp,Jge=epe((function(){var e=Xge("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Qge=the.get,eve=kde("native-string-replace",String.prototype.replace),tve=RegExp.prototype.exec,nve=tve,rve=jde("".charAt),ove=jde("".indexOf),ive=jde("".replace),ave=jde("".slice),uve=(qge=/b*/g,wpe(tve,Gge=/a/,"a"),wpe(tve,qge,"a"),0!==Gge.lastIndex||0!==qge.lastIndex),sve=Lge.BROKEN_CARET,lve=void 0!==/()??/.exec("")[1];(uve||lve||sve||Zge||Jge)&&(nve=function(e){var t,n,r,o,i,a,u,s=this,l=Qge(s),c=Pge(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=wpe(nve,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=sve&&s.sticky,h=wpe(jge,s),g=s.source,v=0,y=c;if(p&&(h=ive(h,"y",""),-1===ove(h,"g")&&(h+="g"),y=ave(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==rve(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),lve&&(n=new RegExp("^"+g+"$(?!\\s)",h)),uve&&(r=s.lastIndex),o=wpe(tve,p?n:s,y),p?o?(o.input=ave(o.input,v),o[0]=ave(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:uve&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),lve&&o&&o.length>1&&wpe(eve,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=Kge(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var cve=nve;xge({target:"RegExp",proto:!0,forced:/./.exec!==cve},{exec:cve});var fve=Function.prototype,dve=fve.apply,pve=fve.bind,hve=fve.call,gve="object"==typeof Reflect&&Reflect.apply||(pve?hve.bind(dve):function(){return hve.apply(dve,arguments)}),vve=upe("species"),yve=RegExp.prototype,mve=upe("match"),bve=Dde.TypeError,wve=upe("species"),Eve=jde("".charAt),xve=jde("".charCodeAt),Cve=jde("".slice),Sve=function(e){return function(t,n){var r,o,i=Pge(Nde(t)),a=Ahe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=xve(i,a))<55296||r>56319||a+1===u||(o=xve(i,a+1))<56320||o>57343?e?Eve(i,a):r:e?Cve(i,a,a+2):o-56320+(r-55296<<10)+65536}},Dve=(Sve(!1),Sve(!0)),Ave=function(e,t,n){return t+(n?Dve(e,t).length:1)},_ve=Dde.Array,Ove=Math.max,kve=function(e,t,n){for(var r,o,i,a,u=khe(e),s=nge(t,u),l=nge(void 0===n?u:n,u),c=_ve(Ove(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=Fpe(o))in r?Ipe.f(r,a,Npe(0,i)):r[a]=i;return c.length=f,c},Bve=Dde.TypeError,Tve=function(e,t){var n=e.exec;if(Wde(n)){var r=wpe(n,e,t);return null!==r&&mpe(r),r}if("RegExp"===lhe(e))return wpe(cve,e,t);throw Bve("RegExp#exec called on incompatible receiver")},Fve=Lge.UNSUPPORTED_Y,Pve=Math.min,jve=[].push,Ive=jde(/./.exec),Nve=jde(jve),Rve=jde("".slice);!function(e,t,n,r){var o=upe(e),i=!epe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!epe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[vve]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=jde(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Pge(Nde(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!fpe(r=e)||!(void 0!==(o=r[mve])?o:"RegExp"==lhe(r)))return wpe(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=wpe(cve,p,i))&&!((s=p.lastIndex)>d&&(Nve(c,Rve(i,d,u.index)),u.length>1&&u.index<i.length&&gve(jve,c,kve(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&Ive(p,"")||Nve(c,""):Nve(c,Rve(i,d)),c.length>a?kve(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:wpe(t,this,e,n)}:t,[function(t,n){var o=Nde(this),i=null==t?void 0:Ope(t,e);return i?wpe(i,t,o,n):wpe(r,Pge(o),t,n)},function(e,o){var i=mpe(this),a=Pge(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=mpe(e).constructor;return void 0===r||null==(n=mpe(r)[wve])?t:function(e){if(Lhe(e))return e;throw bve(Dpe(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Fve?"g":"y"),f=new s(Fve?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Tve(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=Fve?0:h;var v,y=Tve(f,Fve?Rve(a,h):a);if(null===y||(v=Pve(Ohe(f.lastIndex+(Fve?h:0)),a.length))===p)h=Ave(a,h,l);else{if(Nve(g,Rve(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Nve(g,y[m]),g.length===d)return g;h=p=v}}return Nve(g,Rve(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=jde(e),s=t.exec;return s===cve||s===yve.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));ahe(String.prototype,e,s[0]),ahe(yve,o,s[1])}r&&Rpe(yve[o],"sham",!0)}("split",0,!!epe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Fve),xge({global:!0},{globalThis:Dde}),Wp&&(Up.fn.attr=Wp);var Lve=ihe.PROPER,Mve=RegExp.prototype,zve=Mve.toString,Uve=jde(jge),Hve=epe((function(){return"/a/b"!=zve.call({source:"a",flags:"b"})})),$ve=Lve&&"toString"!=zve.name;(Hve||$ve)&&ahe(RegExp.prototype,"toString",(function(){var e=mpe(this),t=Pge(e.source),n=e.flags;return"/"+t+"/"+Pge(void 0===n&&Epe(Mve,e)&&!("flags"in Mve)?Uve(e):n)}),{unsafe:!0});var Vve=function(){function e(){this.title=UP("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!Af.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};wd.setNodes(e,n,{match:function(e){return tO.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=tO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=tO.getParentNode(e,t);return Af.isElement(n)?"pre"!==n.type?null:t:null},e}(),Wve={renderStyle:function(e,t){var n=e,r=t,o="";return kge.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=Up(e);if(!Af.isElement(t))return t;if("code"!==tO.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Vve},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Gve=/"/g,qve=jde("".replace);xge({target:"String",proto:!0,forced:epe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Pge(Nde(this)),r="<a",(r+=' name="'+qve(Pge(t),Gve,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Kve=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!nd.isText(e))return null;var t=tO.getParentNode(null,e);if(t&&"code"===tO.getNodeType(t)){var n=tO.getParentNode(null,t);if(n&&"pre"===tO.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=Oge.languages[t];return n?Oge.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=
/*! *****************************************************************************
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 g=h.value,v=d+Bge(g);"string"!=typeof g&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},Yve=function(){return Yve=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},Yve.apply(this,arguments)},Zve=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Yve(Yve({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Yve(Yve({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Yve(Yve({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Yve(Yve({},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!=oO[n])throw new Error("Duplicated key '"+n+"' in menu items");oO[n]=r,function(e,t){null!=t&&(rO[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){UT.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;yO[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){vO.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){iB.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;uB[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){aB.push(e)}(e)},e.registerModule=function(e){Xve(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 Xve(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 Zve.registerMenu(e)})),n&&n.forEach((function(e){return Zve.registerRenderElem(e)})),r&&Zve.registerRenderStyle(r),o&&o.forEach((function(e){return Zve.registerElemToHtml(e)})),i&&Zve.registerStyleToHtml(i),a&&a.forEach((function(e){return Zve.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Zve.registerParseElemHtml(e)})),s&&Zve.registerParseStyleHtml(s),l&&Zve.registerPlugin(l)}Kq.forEach((function(e){return Xve(e)})),Xve(h0),Xve(X5),Xve(Eoe),Xve(bde),Xve(Wve);var Jve='<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>',Qve={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:Yve(Yve({},Qve),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Zve.setEditorConfig(Yve(Yve({},eye),{decorate:Kve}));var tye={hoverbarKeys:Qve};Zve.setSimpleEditorConfig(Yve(Yve({},tye),{decorate:Kve}));var nye={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:UP("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:UP("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:UP("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:UP("editor.image"),iconSvg:Jve,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:UP("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"]};Zve.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:UP("editor.image"),iconSvg:Jve,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function oye(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?Zve.simpleEditorConfig:Zve.editorConfig,c=Yve(Yve({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return RF({selector:n,config:Yve(Yve(Yve({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Zve.plugins})}function iye(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?Zve.simpleToolbarConfig:Zve.toolbarConfig,s=function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return MB(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=aA({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new HF(n,i);return l_.set(a,e),c_.set(e,a),a}(n,{selector:t,config:Yve(Yve({},u),o)});return s}Zve.setSimpleToolbarConfig(rye)}).call(this,n("c8ba"))},d86b:function(e,t,n){var r=n("d039");e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},d998:function(e,t,n){var r=n("342f");e.exports=/MSIE|Trident/.test(r)},e50b:function(e,t,n){"use strict";n("45c7")},f183:function(e,t,n){var r=n("23e7"),o=n("e330"),i=n("d012"),a=n("861d"),u=n("1a2d"),s=n("9bf2").f,l=n("241c"),c=n("057f"),f=n("4fad"),d=n("90e3"),p=n("bb2f"),h=!1,g=d("meta"),v=0,y=function(e){s(e,g,{value:{objectID:"O"+v++,weakData:{}}})},m=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!u(e,g)){if(!f(e))return"F";if(!t)return"E";y(e)}return e[g].objectID},b=function(e,t){if(!u(e,g)){if(!f(e))return!0;if(!t)return!1;y(e)}return e[g].weakData},w=function(e){return p&&h&&f(e)&&!u(e,g)&&y(e),e},E=function(){x.enable=function(){},h=!0;var e=l.f,t=o([].splice),n={};n[g]=1,e(n).length&&(l.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===g){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},x=e.exports={enable:E,fastKey:m,getWeakData:b,onFreeze:w};i[g]=!0}}]);