@wangeditor-next/editor 5.5.6 → 5.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2187,12 +2187,12 @@
2187
2187
  setUseProxies: setUseProxies_1
2188
2188
  }, '__esModule', {value: true});
2189
2189
 
2190
- var require$$1$1 = immer_cjs_development;
2190
+ var require$$1 = immer_cjs_development;
2191
2191
 
2192
2192
  var dist$8 = createCommonjsModule$1(function (module) {
2193
2193
 
2194
2194
  {
2195
- module.exports = require$$1$1;
2195
+ module.exports = require$$1;
2196
2196
  }
2197
2197
  });
2198
2198
 
@@ -17769,7 +17769,7 @@
17769
17769
  }
17770
17770
  };
17771
17771
 
17772
- var require$$4 = index_browser;
17772
+ var require$$3 = index_browser;
17773
17773
 
17774
17774
  /* global AggregateError */
17775
17775
 
@@ -17787,7 +17787,7 @@
17787
17787
 
17788
17788
  const {
17789
17789
  nanoid: nanoid$1
17790
- } = require$$4;
17790
+ } = require$$3;
17791
17791
 
17792
17792
 
17793
17793
 
@@ -20975,7 +20975,7 @@
20975
20975
 
20976
20976
  const {
20977
20977
  nanoid
20978
- } = require$$4;
20978
+ } = require$$3;
20979
20979
 
20980
20980
  const {
20981
20981
  Provider,
@@ -21625,19 +21625,19 @@
21625
21625
 
21626
21626
  }, _class.VERSION = "2.0.6", _temp);
21627
21627
 
21628
- var require$$1 = dom7_cjs;
21628
+ var require$$2 = dom7_cjs;
21629
21629
 
21630
- var require$$2 = snabbdom_cjs;
21630
+ var require$$4 = snabbdom_cjs;
21631
21631
 
21632
21632
  var dist$6 = createCommonjsModule$1(function (module, exports) {
21633
- !function(e,t){t(exports,dist$7,lodash_toarray,require$$1,lodash_foreach,require$$4,lodash_throttle,require$$2,lodash_camelcase,lib$4,lodash_debounce,lodash_clonedeep,lib$2,lib);}(commonjsGlobal,(function(e,t,n,r,o,i,a,s,l,u,c,f,d,p){function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=h(t),v=h(n),y=h(r),m=h(o),b=h(a),w=h(l),x=h(c),E=h(f),S=h(d),O=h(p),k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function C(e){var t={exports:{}};return e(t,t.exports),t.exports}var T,N,M=function(e){return e&&e.Math===Math&&e},L=M("object"==typeof globalThis&&globalThis)||M("object"==typeof window&&window)||M("object"==typeof self&&self)||M("object"==typeof k&&k)||M("object"==typeof k&&k)||function(){return this}()||Function("return this")(),R=function(e){try{return !!e()}catch(e){return !0}},P=!R((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),D=!R((function(){var e=function(){}.bind();return "function"!=typeof e||e.hasOwnProperty("prototype")})),j=Function.prototype.call,A=D?j.bind(j):function(){return j.apply(j,arguments)},I={}.propertyIsEnumerable,_=Object.getOwnPropertyDescriptor,F=_&&!I.call({1:2},1)?function(e){var t=_(this,e);return !!t&&t.enumerable}:I,B={f:F},$=function(e,t){return {enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},W=Function.prototype,H=W.call,V=D&&W.bind.bind(H,H),z=D?V:function(e){return function(){return H.apply(e,arguments)}},U=z({}.toString),K=z("".slice),q=function(e){return K(U(e),8,-1)},G=Object,J=z("".split),Y=R((function(){return !G("z").propertyIsEnumerable(0)}))?function(e){return "String"===q(e)?J(e,""):G(e)}:G,X=function(e){return null==e},Q=TypeError,Z=function(e){if(X(e))throw new Q("Can't call method on "+e);return e},ee=function(e){return Y(Z(e))},te="object"==typeof document&&document.all,ne=void 0===te&&void 0!==te?function(e){return "function"==typeof e||e===te}:function(e){return "function"==typeof e},re=function(e){return "object"==typeof e?null!==e:ne(e)},oe=function(e,t){return arguments.length<2?(n=L[e],ne(n)?n:void 0):L[e]&&L[e][t];var n;},ie=z({}.isPrototypeOf),ae=L.navigator,se=ae&&ae.userAgent,le=se?String(se):"",ue=L.process,ce=L.Deno,fe=ue&&ue.versions||ce&&ce.version,de=fe&&fe.v8;de&&(N=(T=de.split("."))[0]>0&&T[0]<4?1:+(T[0]+T[1])),!N&&le&&(!(T=le.match(/Edge\/(\d+)/))||T[1]>=74)&&(T=le.match(/Chrome\/(\d+)/))&&(N=+T[1]);var pe=N,he=L.String,ge=!!Object.getOwnPropertySymbols&&!R((function(){var e=Symbol("symbol detection");return !he(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pe&&pe<41})),ve=ge&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ye=Object,me=ve?function(e){return "symbol"==typeof e}:function(e){var t=oe("Symbol");return ne(t)&&ie(t.prototype,ye(e))},be=String,we=function(e){try{return be(e)}catch(e){return "Object"}},xe=TypeError,Ee=function(e){if(ne(e))return e;throw new xe(we(e)+" is not a function")},Se=function(e,t){var n=e[t];return X(n)?void 0:Ee(n)},Oe=TypeError,ke=Object.defineProperty,Ce=function(e,t){try{ke(L,e,{value:t,configurable:!0,writable:!0});}catch(n){L[e]=t;}return t},Te=C((function(e){var t="__core-js_shared__",n=e.exports=L[t]||Ce(t,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),Ne=function(e,t){return Te[e]||(Te[e]=t||{})},Me=Object,Le=function(e){return Me(Z(e))},Re=z({}.hasOwnProperty),Pe=Object.hasOwn||function(e,t){return Re(Le(e),t)},De=0,je=Math.random(),Ae=z(1..toString),Ie=function(e){return "Symbol("+(void 0===e?"":e)+")_"+Ae(++De+je,36)},_e=L.Symbol,Fe=Ne("wks"),Be=ve?_e.for||_e:_e&&_e.withoutSetter||Ie,$e=function(e){return Pe(Fe,e)||(Fe[e]=ge&&Pe(_e,e)?_e[e]:Be("Symbol."+e)),Fe[e]},We=TypeError,He=$e("toPrimitive"),Ve=function(e,t){if(!re(e)||me(e))return e;var n,r=Se(e,He);if(r){if(void 0===t&&(t="default"),n=A(r,e,t),!re(n)||me(n))return n;throw new We("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&ne(n=e.toString)&&!re(r=A(n,e)))return r;if(ne(n=e.valueOf)&&!re(r=A(n,e)))return r;if("string"!==t&&ne(n=e.toString)&&!re(r=A(n,e)))return r;throw new Oe("Can't convert object to primitive value")}(e,t)},ze=function(e){var t=Ve(e,"string");return me(t)?t:t+""},Ue=L.document,Ke=re(Ue)&&re(Ue.createElement),qe=function(e){return Ke?Ue.createElement(e):{}},Ge=!P&&!R((function(){return 7!==Object.defineProperty(qe("div"),"a",{get:function(){return 7}}).a})),Je=Object.getOwnPropertyDescriptor,Ye={f:P?Je:function(e,t){if(e=ee(e),t=ze(t),Ge)try{return Je(e,t)}catch(e){}if(Pe(e,t))return $(!A(B.f,e,t),e[t])}},Xe=P&&R((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qe=String,Ze=TypeError,et=function(e){if(re(e))return e;throw new Ze(Qe(e)+" is not an object")},tt=TypeError,nt=Object.defineProperty,rt=Object.getOwnPropertyDescriptor,ot="enumerable",it="configurable",at="writable",st={f:P?Xe?function(e,t,n){if(et(e),t=ze(t),et(n),"function"==typeof e&&"prototype"===t&&"value"in n&&at in n&&!n[at]){var r=rt(e,t);r&&r[at]&&(e[t]=n.value,n={configurable:it in n?n[it]:r[it],enumerable:ot in n?n[ot]:r[ot],writable:!1});}return nt(e,t,n)}:nt:function(e,t,n){if(et(e),t=ze(t),et(n),Ge)try{return nt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new tt("Accessors not supported");return "value"in n&&(e[t]=n.value),e}},lt=P?function(e,t,n){return st.f(e,t,$(1,n))}:function(e,t,n){return e[t]=n,e},ut=Function.prototype,ct=P&&Object.getOwnPropertyDescriptor,ft=Pe(ut,"name"),dt={EXISTS:ft,PROPER:ft&&"something"===function(){}.name,CONFIGURABLE:ft&&(!P||P&&ct(ut,"name").configurable)},pt=z(Function.toString);ne(Te.inspectSource)||(Te.inspectSource=function(e){return pt(e)});var ht,gt,vt,yt=Te.inspectSource,mt=L.WeakMap,bt=ne(mt)&&/native code/.test(String(mt)),wt=Ne("keys"),xt=function(e){return wt[e]||(wt[e]=Ie(e))},Et={},St="Object already initialized",Ot=L.TypeError,kt=L.WeakMap;if(bt||Te.state){var Ct=Te.state||(Te.state=new kt);Ct.get=Ct.get,Ct.has=Ct.has,Ct.set=Ct.set,ht=function(e,t){if(Ct.has(e))throw new Ot(St);return t.facade=e,Ct.set(e,t),t},gt=function(e){return Ct.get(e)||{}},vt=function(e){return Ct.has(e)};}else {var Tt=xt("state");Et[Tt]=!0,ht=function(e,t){if(Pe(e,Tt))throw new Ot(St);return t.facade=e,lt(e,Tt,t),t},gt=function(e){return Pe(e,Tt)?e[Tt]:{}},vt=function(e){return Pe(e,Tt)};}var Nt={set:ht,get:gt,has:vt,enforce:function(e){return vt(e)?gt(e):ht(e,{})},getterFor:function(e){return function(t){var n;if(!re(t)||(n=gt(t)).type!==e)throw new Ot("Incompatible receiver, "+e+" required");return n}}},Mt=C((function(e){var t=dt.CONFIGURABLE,n=Nt.enforce,r=Nt.get,o=String,i=Object.defineProperty,a=z("".slice),s=z("".replace),l=z([].join),u=P&&!R((function(){return 8!==i((function(){}),"length",{value:8}).length})),c=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+s(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!Pe(e,"name")||t&&e.name!==r)&&(P?i(e,"name",{value:r,configurable:!0}):e.name=r),u&&f&&Pe(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&Pe(f,"constructor")&&f.constructor?P&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0);}catch(e){}var d=n(e);return Pe(d,"source")||(d.source=l(c,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return ne(this)&&r(this).source||yt(this)}),"toString");})),Lt=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(ne(n)&&Mt(n,i,r),r.global)o?e[t]=n:Ce(t,n);else {try{r.unsafe?e[t]&&(o=!0):delete e[t];}catch(e){}o?e[t]=n:st.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable});}return e},Rt=Math.ceil,Pt=Math.floor,Dt=Math.trunc||function(e){var t=+e;return (t>0?Pt:Rt)(t)},jt=function(e){var t=+e;return t!=t||0===t?0:Dt(t)},At=Math.max,It=Math.min,_t=function(e,t){var n=jt(e);return n<0?At(n+t,0):It(n,t)},Ft=Math.min,Bt=function(e){var t=jt(e);return t>0?Ft(t,9007199254740991):0},$t=function(e){return Bt(e.length)},Wt=function(e){return function(t,n,r){var o=ee(t),i=$t(o);if(0===i)return !e&&-1;var a,s=_t(r,i);if(e&&n!=n){for(;i>s;)if((a=o[s++])!=a)return !0}else for(;i>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return !e&&-1}},Ht={includes:Wt(!0),indexOf:Wt(!1)},Vt=Ht.indexOf,zt=z([].push),Ut=function(e,t){var n,r=ee(e),o=0,i=[];for(n in r)!Pe(Et,n)&&Pe(r,n)&&zt(i,n);for(;t.length>o;)Pe(r,n=t[o++])&&(~Vt(i,n)||zt(i,n));return i},Kt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qt=Kt.concat("length","prototype"),Gt={f:Object.getOwnPropertyNames||function(e){return Ut(e,qt)}},Jt={f:Object.getOwnPropertySymbols},Yt=z([].concat),Xt=oe("Reflect","ownKeys")||function(e){var t=Gt.f(et(e)),n=Jt.f;return n?Yt(t,n(e)):t},Qt=function(e,t,n){for(var r=Xt(t),o=st.f,i=Ye.f,a=0;a<r.length;a++){var s=r[a];Pe(e,s)||n&&Pe(n,s)||o(e,s,i(t,s));}},Zt=/#|\.prototype\./,en=function(e,t){var n=nn[tn(e)];return n===on||n!==rn&&(ne(t)?R(t):!!t)},tn=en.normalize=function(e){return String(e).replace(Zt,".").toLowerCase()},nn=en.data={},rn=en.NATIVE="N",on=en.POLYFILL="P",an=en,sn=Ye.f,ln=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?L:u?L[s]||Ce(s,{}):L[s]&&L[s].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=sn(n,r))&&a.value:n[r],!an(l?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Qt(i,o);}(e.sham||o&&o.sham)&&lt(i,"sham",!0),Lt(n,r,i,e);}},un=Object.keys||function(e){return Ut(e,Kt)},cn=R((function(){un(1);}));ln({target:"Object",stat:!0,forced:cn},{keys:function(e){return un(Le(e))}});var fn={};fn[$e("toStringTag")]="z";var dn="[object z]"===String(fn),pn=$e("toStringTag"),hn=Object,gn="Arguments"===q(function(){return arguments}()),vn=dn?q: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),pn))?n:gn?q(t):"Object"===(r=q(t))&&ne(t.callee)?"Arguments":r},yn=dn?{}.toString:function(){return "[object "+vn(this)+"]"};dn||Lt(Object.prototype,"toString",yn,{unsafe:!0});var mn={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},bn=qe("span").classList,wn=bn&&bn.constructor&&bn.constructor.prototype,xn=wn===Object.prototype?void 0:wn,En=function(e){if("Function"===q(e))return z(e)},Sn=En(En.bind),On=function(e,t){return Ee(e),void 0===t?e:D?Sn(e,t):function(){return e.apply(t,arguments)}},kn=Array.isArray||function(e){return "Array"===q(e)},Cn=function(){},Tn=oe("Reflect","construct"),Nn=/^\s*(?:class|function)\b/,Mn=z(Nn.exec),Ln=!Nn.test(Cn),Rn=function(e){if(!ne(e))return !1;try{return Tn(Cn,[],e),!0}catch(e){return !1}},Pn=function(e){if(!ne(e))return !1;switch(vn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return Ln||!!Mn(Nn,yt(e))}catch(e){return !0}};Pn.sham=!0;var Dn=!Tn||R((function(){var e;return Rn(Rn.call)||!Rn(Object)||!Rn((function(){e=!0;}))||e}))?Pn:Rn,jn=$e("species"),An=Array,In=function(e,t){return new(function(e){var t;return kn(e)&&(t=e.constructor,(Dn(t)&&(t===An||kn(t.prototype))||re(t)&&null===(t=t[jn]))&&(t=void 0)),void 0===t?An:t}(e))(0===t?0:t)},_n=z([].push),Fn=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,s=5===e||i;return function(l,u,c,f){for(var d,p,h=Le(l),g=Y(h),v=$t(g),y=On(u,c),m=0,b=f||In,w=t?b(l,v):n||a?b(l,0):void 0;v>m;m++)if((s||m in g)&&(p=y(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:_n(w,d);}else switch(e){case 4:return !1;case 7:_n(w,d);}return i?-1:r||o?o:w}},Bn={forEach:Fn(0),map:Fn(1),filter:Fn(2),some:Fn(3),every:Fn(4),find:Fn(5),findIndex:Fn(6),filterReject:Fn(7)},$n=function(e,t){var n=[][e];return !!n&&R((function(){n.call(null,t||function(){return 1},1);}))},Wn=Bn.forEach,Hn=$n("forEach")?[].forEach:function(e){return Wn(this,e,arguments.length>1?arguments[1]:void 0)},Vn=function(e){if(e&&e.forEach!==Hn)try{lt(e,"forEach",Hn);}catch(t){e.forEach=Hn;}};for(var zn in mn)mn[zn]&&Vn(L[zn]&&L[zn].prototype);
21633
+ !function(e,t){t(exports,dist$7,lodash_toarray,require$$2,lodash_foreach,require$$3,lodash_throttle,require$$4,lodash_camelcase,lib$4,lodash_debounce,lodash_clonedeep,lib$2,lib);}(commonjsGlobal,(function(e,t,n,r,o,i,a,s,l,u,c,f,d,p){function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=h(t),v=h(n),y=h(r),m=h(o),b=h(a),w=h(l),x=h(c),E=h(f),S=h(d),O=h(p),k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function C(e){var t={exports:{}};return e(t,t.exports),t.exports}var T,N,M=function(e){return e&&e.Math===Math&&e},L=M("object"==typeof globalThis&&globalThis)||M("object"==typeof window&&window)||M("object"==typeof self&&self)||M("object"==typeof k&&k)||M("object"==typeof k&&k)||function(){return this}()||Function("return this")(),R=function(e){try{return !!e()}catch(e){return !0}},P=!R((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),D=!R((function(){var e=function(){}.bind();return "function"!=typeof e||e.hasOwnProperty("prototype")})),j=Function.prototype.call,A=D?j.bind(j):function(){return j.apply(j,arguments)},I={}.propertyIsEnumerable,_=Object.getOwnPropertyDescriptor,F=_&&!I.call({1:2},1)?function(e){var t=_(this,e);return !!t&&t.enumerable}:I,B={f:F},$=function(e,t){return {enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},W=Function.prototype,H=W.call,V=D&&W.bind.bind(H,H),z=D?V:function(e){return function(){return H.apply(e,arguments)}},U=z({}.toString),K=z("".slice),q=function(e){return K(U(e),8,-1)},G=Object,J=z("".split),Y=R((function(){return !G("z").propertyIsEnumerable(0)}))?function(e){return "String"===q(e)?J(e,""):G(e)}:G,X=function(e){return null==e},Q=TypeError,Z=function(e){if(X(e))throw new Q("Can't call method on "+e);return e},ee=function(e){return Y(Z(e))},te="object"==typeof document&&document.all,ne=void 0===te&&void 0!==te?function(e){return "function"==typeof e||e===te}:function(e){return "function"==typeof e},re=function(e){return "object"==typeof e?null!==e:ne(e)},oe=function(e,t){return arguments.length<2?(n=L[e],ne(n)?n:void 0):L[e]&&L[e][t];var n;},ie=z({}.isPrototypeOf),ae=L.navigator,se=ae&&ae.userAgent,le=se?String(se):"",ue=L.process,ce=L.Deno,fe=ue&&ue.versions||ce&&ce.version,de=fe&&fe.v8;de&&(N=(T=de.split("."))[0]>0&&T[0]<4?1:+(T[0]+T[1])),!N&&le&&(!(T=le.match(/Edge\/(\d+)/))||T[1]>=74)&&(T=le.match(/Chrome\/(\d+)/))&&(N=+T[1]);var pe=N,he=L.String,ge=!!Object.getOwnPropertySymbols&&!R((function(){var e=Symbol("symbol detection");return !he(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pe&&pe<41})),ve=ge&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ye=Object,me=ve?function(e){return "symbol"==typeof e}:function(e){var t=oe("Symbol");return ne(t)&&ie(t.prototype,ye(e))},be=String,we=function(e){try{return be(e)}catch(e){return "Object"}},xe=TypeError,Ee=function(e){if(ne(e))return e;throw new xe(we(e)+" is not a function")},Se=function(e,t){var n=e[t];return X(n)?void 0:Ee(n)},Oe=TypeError,ke=Object.defineProperty,Ce=function(e,t){try{ke(L,e,{value:t,configurable:!0,writable:!0});}catch(n){L[e]=t;}return t},Te=C((function(e){var t="__core-js_shared__",n=e.exports=L[t]||Ce(t,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),Ne=function(e,t){return Te[e]||(Te[e]=t||{})},Me=Object,Le=function(e){return Me(Z(e))},Re=z({}.hasOwnProperty),Pe=Object.hasOwn||function(e,t){return Re(Le(e),t)},De=0,je=Math.random(),Ae=z(1..toString),Ie=function(e){return "Symbol("+(void 0===e?"":e)+")_"+Ae(++De+je,36)},_e=L.Symbol,Fe=Ne("wks"),Be=ve?_e.for||_e:_e&&_e.withoutSetter||Ie,$e=function(e){return Pe(Fe,e)||(Fe[e]=ge&&Pe(_e,e)?_e[e]:Be("Symbol."+e)),Fe[e]},We=TypeError,He=$e("toPrimitive"),Ve=function(e,t){if(!re(e)||me(e))return e;var n,r=Se(e,He);if(r){if(void 0===t&&(t="default"),n=A(r,e,t),!re(n)||me(n))return n;throw new We("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&ne(n=e.toString)&&!re(r=A(n,e)))return r;if(ne(n=e.valueOf)&&!re(r=A(n,e)))return r;if("string"!==t&&ne(n=e.toString)&&!re(r=A(n,e)))return r;throw new Oe("Can't convert object to primitive value")}(e,t)},ze=function(e){var t=Ve(e,"string");return me(t)?t:t+""},Ue=L.document,Ke=re(Ue)&&re(Ue.createElement),qe=function(e){return Ke?Ue.createElement(e):{}},Ge=!P&&!R((function(){return 7!==Object.defineProperty(qe("div"),"a",{get:function(){return 7}}).a})),Je=Object.getOwnPropertyDescriptor,Ye={f:P?Je:function(e,t){if(e=ee(e),t=ze(t),Ge)try{return Je(e,t)}catch(e){}if(Pe(e,t))return $(!A(B.f,e,t),e[t])}},Xe=P&&R((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qe=String,Ze=TypeError,et=function(e){if(re(e))return e;throw new Ze(Qe(e)+" is not an object")},tt=TypeError,nt=Object.defineProperty,rt=Object.getOwnPropertyDescriptor,ot="enumerable",it="configurable",at="writable",st={f:P?Xe?function(e,t,n){if(et(e),t=ze(t),et(n),"function"==typeof e&&"prototype"===t&&"value"in n&&at in n&&!n[at]){var r=rt(e,t);r&&r[at]&&(e[t]=n.value,n={configurable:it in n?n[it]:r[it],enumerable:ot in n?n[ot]:r[ot],writable:!1});}return nt(e,t,n)}:nt:function(e,t,n){if(et(e),t=ze(t),et(n),Ge)try{return nt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new tt("Accessors not supported");return "value"in n&&(e[t]=n.value),e}},lt=P?function(e,t,n){return st.f(e,t,$(1,n))}:function(e,t,n){return e[t]=n,e},ut=Function.prototype,ct=P&&Object.getOwnPropertyDescriptor,ft=Pe(ut,"name"),dt={EXISTS:ft,PROPER:ft&&"something"===function(){}.name,CONFIGURABLE:ft&&(!P||P&&ct(ut,"name").configurable)},pt=z(Function.toString);ne(Te.inspectSource)||(Te.inspectSource=function(e){return pt(e)});var ht,gt,vt,yt=Te.inspectSource,mt=L.WeakMap,bt=ne(mt)&&/native code/.test(String(mt)),wt=Ne("keys"),xt=function(e){return wt[e]||(wt[e]=Ie(e))},Et={},St="Object already initialized",Ot=L.TypeError,kt=L.WeakMap;if(bt||Te.state){var Ct=Te.state||(Te.state=new kt);Ct.get=Ct.get,Ct.has=Ct.has,Ct.set=Ct.set,ht=function(e,t){if(Ct.has(e))throw new Ot(St);return t.facade=e,Ct.set(e,t),t},gt=function(e){return Ct.get(e)||{}},vt=function(e){return Ct.has(e)};}else {var Tt=xt("state");Et[Tt]=!0,ht=function(e,t){if(Pe(e,Tt))throw new Ot(St);return t.facade=e,lt(e,Tt,t),t},gt=function(e){return Pe(e,Tt)?e[Tt]:{}},vt=function(e){return Pe(e,Tt)};}var Nt={set:ht,get:gt,has:vt,enforce:function(e){return vt(e)?gt(e):ht(e,{})},getterFor:function(e){return function(t){var n;if(!re(t)||(n=gt(t)).type!==e)throw new Ot("Incompatible receiver, "+e+" required");return n}}},Mt=C((function(e){var t=dt.CONFIGURABLE,n=Nt.enforce,r=Nt.get,o=String,i=Object.defineProperty,a=z("".slice),s=z("".replace),l=z([].join),u=P&&!R((function(){return 8!==i((function(){}),"length",{value:8}).length})),c=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(o(r),0,7)&&(r="["+s(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!Pe(e,"name")||t&&e.name!==r)&&(P?i(e,"name",{value:r,configurable:!0}):e.name=r),u&&f&&Pe(f,"arity")&&e.length!==f.arity&&i(e,"length",{value:f.arity});try{f&&Pe(f,"constructor")&&f.constructor?P&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0);}catch(e){}var d=n(e);return Pe(d,"source")||(d.source=l(c,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return ne(this)&&r(this).source||yt(this)}),"toString");})),Lt=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(ne(n)&&Mt(n,i,r),r.global)o?e[t]=n:Ce(t,n);else {try{r.unsafe?e[t]&&(o=!0):delete e[t];}catch(e){}o?e[t]=n:st.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable});}return e},Rt=Math.ceil,Pt=Math.floor,Dt=Math.trunc||function(e){var t=+e;return (t>0?Pt:Rt)(t)},jt=function(e){var t=+e;return t!=t||0===t?0:Dt(t)},At=Math.max,It=Math.min,_t=function(e,t){var n=jt(e);return n<0?At(n+t,0):It(n,t)},Ft=Math.min,Bt=function(e){var t=jt(e);return t>0?Ft(t,9007199254740991):0},$t=function(e){return Bt(e.length)},Wt=function(e){return function(t,n,r){var o=ee(t),i=$t(o);if(0===i)return !e&&-1;var a,s=_t(r,i);if(e&&n!=n){for(;i>s;)if((a=o[s++])!=a)return !0}else for(;i>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return !e&&-1}},Ht={includes:Wt(!0),indexOf:Wt(!1)},Vt=Ht.indexOf,zt=z([].push),Ut=function(e,t){var n,r=ee(e),o=0,i=[];for(n in r)!Pe(Et,n)&&Pe(r,n)&&zt(i,n);for(;t.length>o;)Pe(r,n=t[o++])&&(~Vt(i,n)||zt(i,n));return i},Kt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qt=Kt.concat("length","prototype"),Gt={f:Object.getOwnPropertyNames||function(e){return Ut(e,qt)}},Jt={f:Object.getOwnPropertySymbols},Yt=z([].concat),Xt=oe("Reflect","ownKeys")||function(e){var t=Gt.f(et(e)),n=Jt.f;return n?Yt(t,n(e)):t},Qt=function(e,t,n){for(var r=Xt(t),o=st.f,i=Ye.f,a=0;a<r.length;a++){var s=r[a];Pe(e,s)||n&&Pe(n,s)||o(e,s,i(t,s));}},Zt=/#|\.prototype\./,en=function(e,t){var n=nn[tn(e)];return n===on||n!==rn&&(ne(t)?R(t):!!t)},tn=en.normalize=function(e){return String(e).replace(Zt,".").toLowerCase()},nn=en.data={},rn=en.NATIVE="N",on=en.POLYFILL="P",an=en,sn=Ye.f,ln=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?L:u?L[s]||Ce(s,{}):L[s]&&L[s].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=sn(n,r))&&a.value:n[r],!an(l?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Qt(i,o);}(e.sham||o&&o.sham)&&lt(i,"sham",!0),Lt(n,r,i,e);}},un=Object.keys||function(e){return Ut(e,Kt)},cn=R((function(){un(1);}));ln({target:"Object",stat:!0,forced:cn},{keys:function(e){return un(Le(e))}});var fn={};fn[$e("toStringTag")]="z";var dn="[object z]"===String(fn),pn=$e("toStringTag"),hn=Object,gn="Arguments"===q(function(){return arguments}()),vn=dn?q: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),pn))?n:gn?q(t):"Object"===(r=q(t))&&ne(t.callee)?"Arguments":r},yn=dn?{}.toString:function(){return "[object "+vn(this)+"]"};dn||Lt(Object.prototype,"toString",yn,{unsafe:!0});var mn={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},bn=qe("span").classList,wn=bn&&bn.constructor&&bn.constructor.prototype,xn=wn===Object.prototype?void 0:wn,En=function(e){if("Function"===q(e))return z(e)},Sn=En(En.bind),On=function(e,t){return Ee(e),void 0===t?e:D?Sn(e,t):function(){return e.apply(t,arguments)}},kn=Array.isArray||function(e){return "Array"===q(e)},Cn=function(){},Tn=oe("Reflect","construct"),Nn=/^\s*(?:class|function)\b/,Mn=z(Nn.exec),Ln=!Nn.test(Cn),Rn=function(e){if(!ne(e))return !1;try{return Tn(Cn,[],e),!0}catch(e){return !1}},Pn=function(e){if(!ne(e))return !1;switch(vn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return Ln||!!Mn(Nn,yt(e))}catch(e){return !0}};Pn.sham=!0;var Dn=!Tn||R((function(){var e;return Rn(Rn.call)||!Rn(Object)||!Rn((function(){e=!0;}))||e}))?Pn:Rn,jn=$e("species"),An=Array,In=function(e,t){return new(function(e){var t;return kn(e)&&(t=e.constructor,(Dn(t)&&(t===An||kn(t.prototype))||re(t)&&null===(t=t[jn]))&&(t=void 0)),void 0===t?An:t}(e))(0===t?0:t)},_n=z([].push),Fn=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,s=5===e||i;return function(l,u,c,f){for(var d,p,h=Le(l),g=Y(h),v=$t(g),y=On(u,c),m=0,b=f||In,w=t?b(l,v):n||a?b(l,0):void 0;v>m;m++)if((s||m in g)&&(p=y(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:_n(w,d);}else switch(e){case 4:return !1;case 7:_n(w,d);}return i?-1:r||o?o:w}},Bn={forEach:Fn(0),map:Fn(1),filter:Fn(2),some:Fn(3),every:Fn(4),find:Fn(5),findIndex:Fn(6),filterReject:Fn(7)},$n=function(e,t){var n=[][e];return !!n&&R((function(){n.call(null,t||function(){return 1},1);}))},Wn=Bn.forEach,Hn=$n("forEach")?[].forEach:function(e){return Wn(this,e,arguments.length>1?arguments[1]:void 0)},Vn=function(e){if(e&&e.forEach!==Hn)try{lt(e,"forEach",Hn);}catch(t){e.forEach=Hn;}};for(var zn in mn)mn[zn]&&Vn(L[zn]&&L[zn].prototype);
21634
21634
  /*!
21635
21635
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
21636
21636
  *
21637
21637
  * Copyright (c) 2014-2017, Jon Schlinkert.
21638
21638
  * Released under the MIT License.
21639
21639
  */
21640
- function Un(e){return "[object Object]"===Object.prototype.toString.call(e)}Vn(xn);var Kn=function(e){var t,n;return !1!==Un(e)&&(void 0===(t=e.constructor)||!1!==Un(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))},qn=Object.defineProperty({isPlainObject:Kn},"__esModule",{value:!0}),Gn=function(e){return qn.isPlainObject(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||g.default.Operation.isOperationList(e.redos[0]))&&(0===e.undos.length||g.default.Operation.isOperationList(e.undos[0]))},Jn=new WeakMap,Yn=new WeakMap,Xn={isHistoryEditor:function(e){return Gn(e.history)&&g.default.Editor.isEditor(e)},isMerging:function(e){return Yn.get(e)},isSaving:function(e){return Jn.get(e)},redo:function(e){e.redo();},undo:function(e){e.undo();},withoutMerging:function(e,t){var n=Xn.isMerging(e);Yn.set(e,!1),t(),Yn.set(e,n);},withoutSaving:function(e,t){var n=Xn.isSaving(e);Jn.set(e,!1),t(),Jn.set(e,n);}};function Qn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Zn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zn(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return {s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return {s:function(){n=n.call(e);},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e;},f:function(){try{a||null==n.return||n.return();}finally{if(s)throw i}}}}function Zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var er=function(e,t){return "set_selection"===e.type||(!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!g.default.Path.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!g.default.Path.equals(e.path,t.path)))},tr=function(e,t){return "set_selection"!==e.type||null!=e.properties&&null!=e.newProperties},nr=function(e,t){return !(!t||"set_selection"!==e.type||"set_selection"!==t.type)},rr=function(e){return "set_selection"!==e.type},or=function(e){var t=e,n=t.apply;return t.history={undos:[],redos:[]},t.redo=function(){var e=t.history,n=e.redos;if(n.length>0){var r=n[n.length-1];Xn.withoutSaving(t,(function(){g.default.Editor.withoutNormalizing(t,(function(){var e,n=Qn(r);try{for(n.s();!(e=n.n()).done;){var o=e.value;t.apply(o);}}catch(e){n.e(e);}finally{n.f();}}));})),e.redos.pop(),e.undos.push(r);}},t.undo=function(){var e=t.history,n=e.undos;if(n.length>0){var r=n[n.length-1];Xn.withoutSaving(t,(function(){g.default.Editor.withoutNormalizing(t,(function(){var e,n=Qn(r.map(g.default.Operation.inverse).reverse());try{for(n.s();!(e=n.n()).done;){var o=e.value;t.apply(o);}}catch(e){n.e(e);}finally{n.f();}}));})),e.redos.push(r),e.undos.pop();}},t.apply=function(e){var r=t.operations,o=t.history,i=o.undos,a=i[i.length-1],s=a&&a[a.length-1],l=nr(e,s),u=Xn.isSaving(t),c=Xn.isMerging(t);if(null==u&&(u=tr(e)),u){if(null==c&&(c=null!=a&&(0!==r.length||(er(e,s)||l))),a&&c)l&&a.pop(),a.push(e);else {var f=[e];i.push(f);}for(;i.length>100;)i.shift();rr(e)&&(o.redos=[]);}n(e);},t},ir=String,ar=function(e){if("Symbol"===vn(e))throw new TypeError("Cannot convert a Symbol value to a string");return ir(e)},sr=function(){var e=et(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},lr=RegExp.prototype,ur=function(e){var t=e.flags;return void 0!==t||"flags"in lr||Pe(e,"flags")||!ie(lr,e)?t:A(sr,e)},cr=dt.PROPER,fr="toString",dr=RegExp.prototype,pr=dr[fr],hr=R((function(){return "/a/b"!==pr.call({source:"a",flags:"b"})})),gr=cr&&pr.name!==fr;(hr||gr)&&Lt(dr,fr,(function(){var e=et(this);return "/"+ar(e.source)+"/"+ar(ur(e))}),{unsafe:!0});var vr=function(e,t,n){var r,o;et(e);try{if(!(r=Se(e,"return"))){if("throw"===t)throw n;return n}r=A(r,e);}catch(e){o=!0,r=e;}if("throw"===t)throw n;if(o)throw r;return et(r),n},yr=function(e,t,n,r){try{return r?t(et(n)[0],n[1]):t(n)}catch(t){vr(e,"throw",t);}},mr={},br=$e("iterator"),wr=Array.prototype,xr=function(e){return void 0!==e&&(mr.Array===e||wr[br]===e)},Er=function(e,t,n){P?st.f(e,t,$(0,n)):e[t]=n;},Sr=$e("iterator"),Or=function(e){if(!X(e))return Se(e,Sr)||Se(e,"@@iterator")||mr[vn(e)]},kr=TypeError,Cr=function(e,t){var n=arguments.length<2?Or(e):t;if(Ee(n))return et(A(n,e));throw new kr(we(e)+" is not iterable")},Tr=Array,Nr=$e("iterator"),Mr=!1;try{var Lr=0,Rr={next:function(){return {done:!!Lr++}},return:function(){Mr=!0;}};Rr[Nr]=function(){return this},Array.from(Rr,(function(){throw 2}));}catch(e){}var Pr=function(e,t){try{if(!t&&!Mr)return !1}catch(e){return !1}var n=!1;try{var r={};r[Nr]=function(){return {next:function(){return {done:n=!0}}}},e(r);}catch(e){}return n},Dr=!Pr((function(e){Array.from(e);}));ln({target:"Array",stat:!0,forced:Dr},{from:function(e){var t=Le(e),n=Dn(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=On(o,r>2?arguments[2]:void 0));var a,s,l,u,c,f,d=Or(t),p=0;if(!d||this===Tr&&xr(d))for(a=$t(t),s=n?new this(a):Tr(a);a>p;p++)f=i?o(t[p],p):t[p],Er(s,p,f);else for(s=n?new this:[],c=(u=Cr(t,d)).next;!(l=A(c,u)).done;p++)f=i?yr(u,o,[l.value,p],!0):l.value,Er(s,p,f);return s.length=p,s}});var jr,Ar=P&&!Xe?Object.defineProperties:function(e,t){et(e);for(var n,r=ee(t),o=un(t),i=o.length,a=0;i>a;)st.f(e,n=o[a++],r[n]);return e},Ir={f:Ar},_r=oe("document","documentElement"),Fr="prototype",Br="script",$r=xt("IE_PROTO"),Wr=function(){},Hr=function(e){return "<"+Br+">"+e+"</"+Br+">"},Vr=function(e){e.write(Hr("")),e.close();var t=e.parentWindow.Object;return e=null,t},zr=function(){try{jr=new ActiveXObject("htmlfile");}catch(e){}var e,t,n;zr="undefined"!=typeof document?document.domain&&jr?Vr(jr):(t=qe("iframe"),n="java"+Br+":",t.style.display="none",_r.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Hr("document.F=Object")),e.close(),e.F):Vr(jr);for(var r=Kt.length;r--;)delete zr[Fr][Kt[r]];return zr()};Et[$r]=!0;var Ur=Object.create||function(e,t){var n;return null!==e?(Wr[Fr]=et(e),n=new Wr,Wr[Fr]=null,n[$r]=e):n=zr(),void 0===t?n:Ir.f(n,t)},Kr=st.f,qr=$e("unscopables"),Gr=Array.prototype;void 0===Gr[qr]&&Kr(Gr,qr,{configurable:!0,value:Ur(null)});var Jr=function(e){Gr[qr][e]=!0;},Yr=Ht.includes,Xr=R((function(){return !Array(1).includes()}));ln({target:"Array",proto:!0,forced:Xr},{includes:function(e){return Yr(this,e,arguments.length>1?arguments[1]:void 0)}}),Jr("includes");var Qr=z([].join),Zr=Y!==Object||!$n("join",",");ln({target:"Array",proto:!0,forced:Zr},{join:function(e){return Qr(ee(this),void 0===e?",":e)}});var eo=$e("species"),to=function(e){return pe>=51||!R((function(){var t=[];return (t.constructor={})[eo]=function(){return {foo:1}},1!==t[e](Boolean).foo}))},no=Bn.map,ro=to("map");ln({target:"Array",proto:!0,forced:!ro},{map:function(e){return no(this,e,arguments.length>1?arguments[1]:void 0)}});var oo=!R((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),io=xt("IE_PROTO"),ao=Object,so=ao.prototype,lo=oo?ao.getPrototypeOf:function(e){var t=Le(e);if(Pe(t,io))return t[io];var n=t.constructor;return ne(n)&&t instanceof n?n.prototype:t instanceof ao?so:null};ln({target:"Reflect",stat:!0},{get:function e(t,n){var r,o,i=arguments.length<3?t:arguments[2];return et(t)===i?t[n]:(r=Ye.f(t,n))?function(e){return void 0!==e&&(Pe(e,"value")||Pe(e,"writable"))}(r)?r.value:void 0===r.get?void 0:A(r.get,i):re(o=lo(t))?e(o,n,i):void 0}});var uo=L.RegExp,co=R((function(){var e=uo("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),fo=co||R((function(){return !uo("a","y").sticky})),po={BROKEN_CARET:co||R((function(){var e=uo("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:fo,UNSUPPORTED_Y:co},ho=L.RegExp,go=R((function(){var e=ho(".","s");return !(e.dotAll&&e.test("\n")&&"s"===e.flags)})),vo=L.RegExp,yo=R((function(){var e=vo("(?<a>b)","g");return "b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),mo=Nt.get,bo=Ne("native-string-replace",String.prototype.replace),wo=RegExp.prototype.exec,xo=wo,Eo=z("".charAt),So=z("".indexOf),Oo=z("".replace),ko=z("".slice),Co=function(){var e=/a/,t=/b*/g;return A(wo,e,"a"),A(wo,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),To=po.BROKEN_CARET,No=void 0!==/()??/.exec("")[1];(Co||No||To||go||yo)&&(xo=function(e){var t,n,r,o,i,a,s,l=this,u=mo(l),c=ar(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=A(xo,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,p=To&&l.sticky,h=A(sr,l),g=l.source,v=0,y=c;if(p&&(h=Oo(h,"y",""),-1===So(h,"g")&&(h+="g"),y=ko(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==Eo(c,l.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),No&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Co&&(r=l.lastIndex),o=A(wo,p?n:l,y),p?o?(o.input=ko(o.input,v),o[0]=ko(o[0],v),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:Co&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),No&&o&&o.length>1&&A(bo,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=Ur(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var Mo=xo;ln({target:"RegExp",proto:!0,forced:/./.exec!==Mo},{exec:Mo});var Lo,Ro=$e("match"),Po=function(e){var t;return re(e)&&(void 0!==(t=e[Ro])?!!t:"RegExp"===q(e))},Do=TypeError,jo=function(e){if(Po(e))throw new Do("The method doesn't accept regular expressions");return e},Ao=$e("match"),Io=function(e){var t=/./;try{"/./"[e](t);}catch(n){try{return t[Ao]=!1,"/./"[e](t)}catch(e){}}return !1},_o=Ye.f,Fo=En("".slice),Bo=Math.min,$o=Io("endsWith"),Wo=!($o||(Lo=_o(String.prototype,"endsWith"),!Lo||Lo.writable));ln({target:"String",proto:!0,forced:!Wo&&!$o},{endsWith:function(e){var t=ar(Z(this));jo(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:Bo(Bt(n),r),i=ar(e);return Fo(t,o-i.length,o)===i}});var Ho=z("".indexOf);ln({target:"String",proto:!0,forced:!Io("includes")},{includes:function(e){return !!~Ho(ar(Z(this)),ar(jo(e)),arguments.length>1?arguments[1]:void 0)}});var Vo,zo,Uo,Ko=z("".charAt),qo=z("".charCodeAt),Go=z("".slice),Jo=function(e){return function(t,n){var r,o,i=ar(Z(t)),a=jt(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=qo(i,a))<55296||r>56319||a+1===s||(o=qo(i,a+1))<56320||o>57343?e?Ko(i,a):r:e?Go(i,a,a+2):o-56320+(r-55296<<10)+65536}},Yo={codeAt:Jo(!1),charAt:Jo(!0)},Xo=$e("iterator"),Qo=!1;[].keys&&("next"in(Uo=[].keys())?(zo=lo(lo(Uo)))!==Object.prototype&&(Vo=zo):Qo=!0);var Zo=!re(Vo)||R((function(){var e={};return Vo[Xo].call(e)!==e}));Zo&&(Vo={}),ne(Vo[Xo])||Lt(Vo,Xo,(function(){return this}));var ei={IteratorPrototype:Vo,BUGGY_SAFARI_ITERATORS:Qo},ti=st.f,ni=$e("toStringTag"),ri=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Pe(e,ni)&&ti(e,ni,{configurable:!0,value:t});},oi=ei.IteratorPrototype,ii=function(){return this},ai=String,si=TypeError,li=function(e){if(function(e){return re(e)||null===e}(e))return e;throw new si("Can't set "+ai(e)+" as a prototype")},ui=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=function(e,t,n){try{return z(Ee(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array;}catch(e){}return function(n,r){return Z(n),li(r),re(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),ci=dt.PROPER,fi=dt.CONFIGURABLE,di=ei.IteratorPrototype,pi=ei.BUGGY_SAFARI_ITERATORS,hi=$e("iterator"),gi="keys",vi="values",yi="entries",mi=function(){return this},bi=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Ur(oi,{next:$(+!r,n)}),ri(e,o,!1),mr[o]=ii;}(n,t,r);var s,l,u,c=function(e){if(e===o&&g)return g;if(!pi&&e&&e in p)return p[e];switch(e){case gi:case vi:case yi:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[hi]||p["@@iterator"]||o&&p[o],g=!pi&&h||c(o),v="Array"===t&&p.entries||h;if(v&&(s=lo(v.call(new e)))!==Object.prototype&&s.next&&(lo(s)!==di&&(ui?ui(s,di):ne(s[hi])||Lt(s,hi,mi)),ri(s,f,!0)),ci&&o===vi&&h&&h.name!==vi&&(fi?lt(p,"name",vi):(d=!0,g=function(){return A(h,this)})),o)if(l={values:c(vi),keys:i?g:c(gi),entries:c(yi)},a)for(u in l)(pi||d||!(u in p))&&Lt(p,u,l[u]);else ln({target:t,proto:!0,forced:pi||d},l);return p[hi]!==g&&Lt(p,hi,g,{name:o}),mr[t]=g,l},wi=function(e,t){return {value:e,done:t}},xi=Yo.charAt,Ei="String Iterator",Si=Nt.set,Oi=Nt.getterFor(Ei);bi(String,"String",(function(e){Si(this,{type:Ei,string:ar(e),index:0});}),(function(){var e,t=Oi(this),n=t.string,r=t.index;return r>=n.length?wi(void 0,!0):(e=xi(n,r),t.index+=e.length,wi(e,!1))}));var ki=Function.prototype,Ci=ki.apply,Ti=ki.call,Ni="object"==typeof Reflect&&Reflect.apply||(D?Ti.bind(Ci):function(){return Ti.apply(Ci,arguments)}),Mi=$e("species"),Li=RegExp.prototype,Ri=function(e,t,n,r){var o=$e(e),i=!R((function(){var t={};return t[o]=function(){return 7},7!==""[e](t)})),a=i&&!R((function(){var t=!1,n=/a/;return "split"===e&&((n={}).constructor={},n.constructor[Mi]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var s=/./[o],l=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===Mo||a===Li.exec?i&&!o?{done:!0,value:A(s,t,n,r)}:{done:!0,value:A(e,n,t,r)}:{done:!1}}));Lt(String.prototype,e,l[0]),Lt(Li,o,l[1]);}r&&lt(Li[o],"sham",!0);},Pi=Yo.charAt,Di=function(e,t,n){return t+(n?Pi(e,t).length:1)},ji=Math.floor,Ai=z("".charAt),Ii=z("".replace),_i=z("".slice),Fi=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Bi=/\$([$&'`]|\d{1,2})/g,$i=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=Bi;return void 0!==o&&(o=Le(o),l=Fi),Ii(i,l,(function(i,l){var u;switch(Ai(l,0)){case"$":return "$";case"&":return e;case"`":return _i(t,0,n);case"'":return _i(t,a);case"<":u=o[_i(l,1,-1)];break;default:var c=+l;if(0===c)return i;if(c>s){var f=ji(c/10);return 0===f?i:f<=s?void 0===r[f-1]?Ai(l,1):r[f-1]+Ai(l,1):i}u=r[c-1];}return void 0===u?"":u}))},Wi=TypeError,Hi=function(e,t){var n=e.exec;if(ne(n)){var r=A(n,e,t);return null!==r&&et(r),r}if("RegExp"===q(e))return A(Mo,e,t);throw new Wi("RegExp#exec called on incompatible receiver")},Vi=$e("replace"),zi=Math.max,Ui=Math.min,Ki=z([].concat),qi=z([].push),Gi=z("".indexOf),Ji=z("".slice),Yi="$0"==="a".replace(/./,"$0"),Xi=!!/./[Vi]&&""===/./[Vi]("a","$0");Ri("replace",(function(e,t,n){var r=Xi?"$":"$0";return [function(e,n){var r=Z(this),o=X(e)?void 0:Se(e,Vi);return o?A(o,e,r,n):A(t,ar(r),e,n)},function(e,o){var i=et(this),a=ar(e);if("string"==typeof o&&-1===Gi(o,r)&&-1===Gi(o,"$<")){var s=n(t,i,a,o);if(s.done)return s.value}var l=ne(o);l||(o=ar(o));var u,c=i.global;c&&(u=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=Hi(i,a))&&(qi(d,f),c);){""===ar(f[0])&&(i.lastIndex=Di(a,Bt(i.lastIndex),u));}for(var p,h="",g=0,v=0;v<d.length;v++){for(var y,m=ar((f=d[v])[0]),b=zi(Ui(jt(f.index),a.length),0),w=[],x=1;x<f.length;x++)qi(w,void 0===(p=f[x])?p:String(p));var E=f.groups;if(l){var S=Ki([m],w,b,a);void 0!==E&&qi(S,E),y=ar(Ni(o,void 0,S));}else y=$i(m,a,b,w,E,o);b>=g&&(h+=Ji(a,g,b)+y,g=b+m.length);}return h+Ji(a,g)}]}),!!R((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Yi||Xi);var Qi,Zi=/"/g,ea=z("".replace);ln({target:"String",proto:!0,forced:(Qi="anchor",R((function(){var e=""[Qi]('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return t="a",n="name",r=e,o=ar(Z(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+ea(ar(r),Zi,"&quot;")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i;}});var ta=function(e,t){return ta=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]);},ta(e,t)};function na(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;}ta(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n);}var ra=function(){return ra=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},ra.apply(this,arguments)};function oa(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 ia(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 aa(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var sa=0,la=function(){this.id=""+sa++;},ua=st.f,ca="Array Iterator",fa=Nt.set,da=Nt.getterFor(ca),pa=bi(Array,"Array",(function(e,t){fa(this,{type:ca,target:ee(e),index:0,kind:t});}),(function(){var e=da(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,wi(void 0,!0);switch(e.kind){case"keys":return wi(n,!1);case"values":return wi(t[n],!1)}return wi([n,t[n]],!1)}),"values"),ha=mr.Arguments=mr.Array;if(Jr("keys"),Jr("values"),Jr("entries"),P&&"values"!==ha.name)try{ua(ha,"name",{value:"values"});}catch(e){}var ga=!R((function(){return Object.isExtensible(Object.preventExtensions({}))})),va=function(e,t,n){for(var r in t)Lt(e,r,t[r],n);return e},ya=z([].slice),ma=Gt.f,ba="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],wa={f:function(e){return ba&&"Window"===q(e)?function(e){try{return ma(e)}catch(e){return ya(ba)}}(e):ma(ee(e))}},xa=R((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8});}})),Ea=Object.isExtensible,Sa=R((function(){Ea(1);}))||xa?function(e){return !!re(e)&&((!xa||"ArrayBuffer"!==q(e))&&(!Ea||Ea(e)))}:Ea,Oa=C((function(e){var t=st.f,n=!1,r=Ie("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=Gt.f,t=z([].splice),o={};o[r]=1,e(o).length&&(Gt.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},ln({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:wa.f}));},fastKey:function(e,t){if(!re(e))return "symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Pe(e,r)){if(!Sa(e))return "F";if(!t)return "E";i(e);}return e[r].objectID},getWeakData:function(e,t){if(!Pe(e,r)){if(!Sa(e))return !0;if(!t)return !1;i(e);}return e[r].weakData},onFreeze:function(e){return ga&&n&&Sa(e)&&!Pe(e,r)&&i(e),e}};Et[r]=!0;})),ka=TypeError,Ca=function(e,t){this.stopped=e,this.result=t;},Ta=Ca.prototype,Na=function(e,t,n){var r,o,i,a,s,l,u,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=On(t,c),v=function(e){return r&&vr(r,"normal",e),new Ca(!0,e)},y=function(e){return f?(et(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(d)r=e.iterator;else if(p)r=e;else {if(!(o=Or(e)))throw new ka(we(e)+" is not iterable");if(xr(o)){for(i=0,a=$t(e);a>i;i++)if((s=y(e[i]))&&ie(Ta,s))return s;return new Ca(!1)}r=Cr(e,o);}for(l=d?e.next:r.next;!(u=A(l,r)).done;){try{s=y(u.value);}catch(e){vr(r,"throw",e);}if("object"==typeof s&&s&&ie(Ta,s))return s}return new Ca(!1)},Ma=TypeError,La=function(e,t){if(ie(t,e))return e;throw new Ma("Incorrect invocation")},Ra=function(e,t,n){var r,o;return ui&&ne(r=t.constructor)&&r!==n&&re(o=r.prototype)&&o!==n.prototype&&ui(e,o),e},Pa=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=L[e],s=a&&a.prototype,l=a,u={},c=function(e){var t=z(s[e]);Lt(s,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return !(o&&!re(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return o&&!re(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return !(o&&!re(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this});};if(an(e,!ne(a)||!(o||s.forEach&&!R((function(){(new a).entries().next();})))))l=n.getConstructor(t,e,r,i),Oa.enable();else if(an(e,!0)){var f=new l,d=f[i](o?{}:-0,1)!==f,p=R((function(){f.has(1);})),h=Pr((function(e){new a(e);})),g=!o&&R((function(){for(var e=new a,t=5;t--;)e[i](t,t);return !e.has(-0)}));h||((l=t((function(e,t){La(e,s);var n=Ra(new a,e,l);return X(t)||Na(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=l),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&s.clear&&delete s.clear;}return u[e]=l,ln({global:!0,constructor:!0,forced:l!==a},u),ri(l,e),o||n.setStrong(l,e,r),l},Da=Oa.getWeakData,ja=Nt.set,Aa=Nt.getterFor,Ia=Bn.find,_a=Bn.findIndex,Fa=z([].splice),Ba=0,$a=function(e){return e.frozen||(e.frozen=new Wa)},Wa=function(){this.entries=[];},Ha=function(e,t){return Ia(e.entries,(function(e){return e[0]===t}))};Wa.prototype={get:function(e){var t=Ha(this,e);if(t)return t[1]},has:function(e){return !!Ha(this,e)},set:function(e,t){var n=Ha(this,e);n?n[1]=t:this.entries.push([e,t]);},delete:function(e){var t=_a(this.entries,(function(t){return t[0]===e}));return ~t&&Fa(this.entries,t,1),!!~t}};var Va,za={getConstructor:function(e,t,n,r){var o=e((function(e,o){La(e,i),ja(e,{type:t,id:Ba++,frozen:null}),X(o)||Na(o,e[r],{that:e,AS_ENTRIES:n});})),i=o.prototype,a=Aa(t),s=function(e,t,n){var r=a(e),o=Da(et(t),!0);return !0===o?$a(r).set(t,n):o[r.id]=n,e};return va(i,{delete:function(e){var t=a(this);if(!re(e))return !1;var n=Da(e);return !0===n?$a(t).delete(e):n&&Pe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!re(e))return !1;var n=Da(e);return !0===n?$a(t).has(e):n&&Pe(n,t.id)}}),va(i,n?{get:function(e){var t=a(this);if(re(e)){var n=Da(e);if(!0===n)return $a(t).get(e);if(n)return n[t.id]}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),o}},Ua=Nt.enforce,Ka=Object,qa=Array.isArray,Ga=Ka.isExtensible,Ja=Ka.isFrozen,Ya=Ka.isSealed,Xa=Ka.freeze,Qa=Ka.seal,Za=!L.ActiveXObject&&"ActiveXObject"in L,es=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ts=Pa("WeakMap",es,za),ns=ts.prototype,rs=z(ns.set);if(bt)if(Za){Va=za.getConstructor(es,"WeakMap",!0),Oa.enable();var os=z(ns.delete),is=z(ns.has),as=z(ns.get);va(ns,{delete:function(e){if(re(e)&&!Ga(e)){var t=Ua(this);return t.frozen||(t.frozen=new Va),os(this,e)||t.frozen.delete(e)}return os(this,e)},has:function(e){if(re(e)&&!Ga(e)){var t=Ua(this);return t.frozen||(t.frozen=new Va),is(this,e)||t.frozen.has(e)}return is(this,e)},get:function(e){if(re(e)&&!Ga(e)){var t=Ua(this);return t.frozen||(t.frozen=new Va),is(this,e)?as(this,e):t.frozen.get(e)}return as(this,e)},set:function(e,t){if(re(e)&&!Ga(e)){var n=Ua(this);n.frozen||(n.frozen=new Va),is(this,e)?rs(this,e,t):n.frozen.set(e,t);}else rs(this,e,t);return this}});}else ga&&R((function(){var e=Xa([]);return rs(new ts,e,1),!Ja(e)}))&&va(ns,{set:function(e,t){var n;return qa(e)&&(Ja(e)?n=Xa:Ya(e)&&(n=Qa)),rs(this,e,t),n&&n(e),this}});var ss=$e("iterator"),ls=pa.values,us=function(e,t){if(e){if(e[ss]!==ls)try{lt(e,ss,ls);}catch(t){e[ss]=ls;}if(ri(e,t,!0),mn[t])for(var n in pa)if(e[n]!==pa[n])try{lt(e,n,pa[n]);}catch(t){e[n]=pa[n];}}};for(var cs in mn)us(L[cs]&&L[cs].prototype,cs);us(xn,"DOMTokenList");var fs=new WeakMap,ds=new WeakMap,ps=new WeakMap,hs=new WeakMap,gs=new WeakMap,vs=new WeakMap,ys=new WeakMap,ms=new WeakMap,bs=new WeakMap,ws=new WeakMap,xs=new WeakMap,Es=new WeakMap,Ss=new WeakMap,Os=new WeakMap,ks=new WeakMap,Cs=new WeakMap,Ts=new WeakMap,Ns=new WeakMap,Ms=new WeakMap,Ls=new WeakMap,Rs=new WeakMap,Ps=new WeakMap,Ds=new WeakMap,js=new WeakMap,As=new WeakMap,Is=Bn.find,_s="find",Fs=!0;_s in[]&&Array(1)[_s]((function(){Fs=!1;})),ln({target:"Array",proto:!0,forced:Fs},{find:function(e){return Is(this,e,arguments.length>1?arguments[1]:void 0)}}),Jr(_s),ln({global:!0,forced:L.globalThis!==L},{globalThis:L});const Bs=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];var $s,Ws,Hs,Vs,zs=function(e){return le.slice(0,e.length)===e},Us=zs("Bun/")?"BUN":zs("Cloudflare-Workers")?"CLOUDFLARE":zs("Deno/")?"DENO":zs("Node.js/")?"NODE":L.Bun&&"string"==typeof Bun.version?"BUN":L.Deno&&"object"==typeof Deno.version?"DENO":"process"===q(L.process)?"NODE":L.window&&L.document?"BROWSER":"REST",Ks="NODE"===Us,qs=function(e,t,n){return n.get&&Mt(n.get,t,{getter:!0}),n.set&&Mt(n.set,t,{setter:!0}),st.f(e,t,n)},Gs=$e("species"),Js=function(e){var t=oe(e);P&&t&&!t[Gs]&&qs(t,Gs,{configurable:!0,get:function(){return this}});},Ys=TypeError,Xs=$e("species"),Qs=function(e,t){var n,r=et(e).constructor;return void 0===r||X(n=et(r)[Xs])?t:function(e){if(Dn(e))return e;throw new Ys(we(e)+" is not a constructor")}(n)},Zs=TypeError,el=/(?:ipad|iphone|ipod).*applewebkit/i.test(le),tl=L.setImmediate,nl=L.clearImmediate,rl=L.process,ol=L.Dispatch,il=L.Function,al=L.MessageChannel,sl=L.String,ll=0,ul={},cl="onreadystatechange";R((function(){$s=L.location;}));var fl=function(e){if(Pe(ul,e)){var t=ul[e];delete ul[e],t();}},dl=function(e){return function(){fl(e);}},pl=function(e){fl(e.data);},hl=function(e){L.postMessage(sl(e),$s.protocol+"//"+$s.host);};tl&&nl||(tl=function(e){!function(e,t){if(e<t)throw new Zs("Not enough arguments")}(arguments.length,1);var t=ne(e)?e:il(e),n=ya(arguments,1);return ul[++ll]=function(){Ni(t,void 0,n);},Ws(ll),ll},nl=function(e){delete ul[e];},Ks?Ws=function(e){rl.nextTick(dl(e));}:ol&&ol.now?Ws=function(e){ol.now(dl(e));}:al&&!el?(Vs=(Hs=new al).port2,Hs.port1.onmessage=pl,Ws=On(Vs.postMessage,Vs)):L.addEventListener&&ne(L.postMessage)&&!L.importScripts&&$s&&"file:"!==$s.protocol&&!R(hl)?(Ws=hl,L.addEventListener("message",pl,!1)):Ws=cl in qe("script")?function(e){_r.appendChild(qe("script"))[cl]=function(){_r.removeChild(this),fl(e);};}:function(e){setTimeout(dl(e),0);});var gl={set:tl,clear:nl},vl=Object.getOwnPropertyDescriptor,yl=function(){this.head=null,this.tail=null;};yl.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t;},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var ml,bl,wl,xl,El,Sl=yl,Ol=/ipad|iphone|ipod/i.test(le)&&"undefined"!=typeof Pebble,kl=/web0s(?!.*chrome)/i.test(le),Cl=gl.set,Tl=L.MutationObserver||L.WebKitMutationObserver,Nl=L.document,Ml=L.process,Ll=L.Promise,Rl=function(e){if(!P)return L[e];var t=vl(L,e);return t&&t.value}("queueMicrotask");if(!Rl){var Pl=new Sl,Dl=function(){var e,t;for(Ks&&(e=Ml.domain)&&e.exit();t=Pl.get();)try{t();}catch(e){throw Pl.head&&ml(),e}e&&e.enter();};el||Ks||kl||!Tl||!Nl?!Ol&&Ll&&Ll.resolve?((xl=Ll.resolve(void 0)).constructor=Ll,El=On(xl.then,xl),ml=function(){El(Dl);}):Ks?ml=function(){Ml.nextTick(Dl);}:(Cl=On(Cl,L),ml=function(){Cl(Dl);}):(bl=!0,wl=Nl.createTextNode(""),new Tl(Dl).observe(wl,{characterData:!0}),ml=function(){wl.data=bl=!bl;}),Rl=function(e){Pl.head||ml(),Pl.add(e);};}var jl=Rl,Al=function(e){try{return {error:!1,value:e()}}catch(e){return {error:!0,value:e}}},Il=L.Promise;Il&&Il.prototype;var _l,Fl,Bl,$l=$e("species"),Wl=!1,Hl=ne(L.PromiseRejectionEvent),Vl=an("Promise",(function(){var e=yt(Il),t=e!==String(Il);if(!t&&66===pe)return !0;if(!pe||pe<51||!/native code/.test(e)){var n=new Il((function(e){e(1);})),r=function(e){e((function(){}),(function(){}));};if((n.constructor={})[$l]=r,!(Wl=n.then((function(){}))instanceof r))return !0}return !(t||"BROWSER"!==Us&&"DENO"!==Us||Hl)})),zl={CONSTRUCTOR:Vl,REJECTION_EVENT:Hl,SUBCLASSING:Wl},Ul=TypeError,Kl=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new Ul("Bad Promise constructor");t=e,n=r;})),this.resolve=Ee(t),this.reject=Ee(n);},ql={f:function(e){return new Kl(e)}},Gl=gl.set,Jl="Promise",Yl=zl.CONSTRUCTOR,Xl=zl.REJECTION_EVENT,Ql=zl.SUBCLASSING,Zl=Nt.getterFor(Jl),eu=Nt.set,tu=Il&&Il.prototype,nu=Il,ru=tu,ou=L.TypeError,iu=L.document,au=L.process,su=ql.f,lu=su,uu=!!(iu&&iu.createEvent&&L.dispatchEvent),cu="unhandledrejection",fu=function(e){var t;return !(!re(e)||!ne(t=e.then))&&t},du=function(e,t){var n,r,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&yu(t),t.rejection=1),!0===s?n=i:(c&&c.enter(),n=s(i),c&&(c.exit(),o=!0)),n===e.promise?u(new ou("Promise-chain cycle")):(r=fu(n))?A(r,n,l,u):l(n)):u(i);}catch(e){c&&!o&&c.exit(),u(e);}},pu=function(e,t){e.notified||(e.notified=!0,jl((function(){for(var n,r=e.reactions;n=r.get();)du(n,e);e.notified=!1,t&&!e.rejection&&gu(e);})));},hu=function(e,t,n){var r,o;uu?((r=iu.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),L.dispatchEvent(r)):r={promise:t,reason:n},!Xl&&(o=L["on"+e])?o(r):e===cu&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t);}catch(e){}}("Unhandled promise rejection",n);},gu=function(e){A(Gl,L,(function(){var t,n=e.facade,r=e.value;if(vu(e)&&(t=Al((function(){Ks?au.emit("unhandledRejection",r,n):hu(cu,n,r);})),e.rejection=Ks||vu(e)?2:1,t.error))throw t.value}));},vu=function(e){return 1!==e.rejection&&!e.parent},yu=function(e){A(Gl,L,(function(){var t=e.facade;Ks?au.emit("rejectionHandled",t):hu("rejectionhandled",t,e.value);}));},mu=function(e,t,n){return function(r){e(t,r,n);}},bu=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,pu(e,!0));},wu=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new ou("Promise can't be resolved itself");var r=fu(t);r?jl((function(){var n={done:!1};try{A(r,t,mu(wu,n,e),mu(bu,n,e));}catch(t){bu(n,t,e);}})):(e.value=t,e.state=1,pu(e,!1));}catch(t){bu({done:!1},t,e);}}};if(Yl&&(ru=(nu=function(e){La(this,ru),Ee(e),A(_l,this);var t=Zl(this);try{e(mu(wu,t),mu(bu,t));}catch(e){bu(t,e);}}).prototype,(_l=function(e){eu(this,{type:Jl,done:!1,notified:!1,parent:!1,reactions:new Sl,rejection:!1,state:0,value:null});}).prototype=Lt(ru,"then",(function(e,t){var n=Zl(this),r=su(Qs(this,nu));return n.parent=!0,r.ok=!ne(e)||e,r.fail=ne(t)&&t,r.domain=Ks?au.domain:void 0,0===n.state?n.reactions.add(r):jl((function(){du(r,n);})),r.promise})),Fl=function(){var e=new _l,t=Zl(e);this.promise=e,this.resolve=mu(wu,t),this.reject=mu(bu,t);},ql.f=su=function(e){return e===nu||undefined===e?new Fl(e):lu(e)},ne(Il)&&tu!==Object.prototype)){Bl=tu.then,Ql||Lt(tu,"then",(function(e,t){var n=this;return new nu((function(e,t){A(Bl,n,e,t);})).then(e,t)}),{unsafe:!0});try{delete tu.constructor;}catch(e){}ui&&ui(tu,ru);}ln({global:!0,constructor:!0,wrap:!0,forced:Yl},{Promise:nu}),ri(nu,Jl,!1),Js(Jl);var xu=zl.CONSTRUCTOR||!Pr((function(e){Il.all(e).then(void 0,(function(){}));}));ln({target:"Promise",stat:!0,forced:xu},{all:function(e){var t=this,n=ql.f(t),r=n.resolve,o=n.reject,i=Al((function(){var n=Ee(t.resolve),i=[],a=0,s=1;Na(e,(function(e){var l=a++,u=!1;s++,A(n,t,e).then((function(e){u||(u=!0,i[l]=e,--s||r(i));}),o);})),--s||r(i);}));return i.error&&o(i.value),n.promise}});var Eu=zl.CONSTRUCTOR,Su=Il&&Il.prototype;if(ln({target:"Promise",proto:!0,forced:Eu,real:!0},{catch:function(e){return this.then(void 0,e)}}),ne(Il)){var Ou=oe("Promise").prototype.catch;Su.catch!==Ou&&Lt(Su,"catch",Ou,{unsafe:!0});}ln({target:"Promise",stat:!0,forced:xu},{race:function(e){var t=this,n=ql.f(t),r=n.reject,o=Al((function(){var o=Ee(t.resolve);Na(e,(function(e){A(o,t,e).then(n.resolve,r);}));}));return o.error&&r(o.value),n.promise}}),ln({target:"Promise",stat:!0,forced:zl.CONSTRUCTOR},{reject:function(e){var t=ql.f(this);return (0, t.reject)(e),t.promise}});var ku=zl.CONSTRUCTOR;function Cu(e){Promise.resolve().then(e);}oe("Promise"),ln({target:"Promise",stat:!0,forced:ku},{resolve:function(e){return function(e,t){if(et(e),re(t)&&t.constructor===e)return t;var n=ql.f(e);return (0, n.resolve)(t),n.promise}(this,e)}});var Tu=function(e){return Object.prototype.toString.call(e)};r.css&&(y.default.fn.css=r.css),r.append&&(y.default.fn.append=r.append),r.addClass&&(y.default.fn.addClass=r.addClass),r.removeClass&&(y.default.fn.removeClass=r.removeClass),r.hasClass&&(y.default.fn.hasClass=r.hasClass),r.on&&(y.default.fn.on=r.on),r.focus&&(y.default.fn.focus=r.focus),r.attr&&(y.default.fn.attr=r.attr),r.removeAttr&&(y.default.fn.removeAttr=r.removeAttr),r.hide&&(y.default.fn.hide=r.hide),r.show&&(y.default.fn.show=r.show),r.offset&&(y.default.fn.offset=r.offset),r.width&&(y.default.fn.width=r.width),r.height&&(y.default.fn.height=r.height),r.parent&&(y.default.fn.parent=r.parent),r.parents&&(y.default.fn.parents=r.parents),r.is&&(y.default.fn.is=r.is),r.dataset&&(y.default.fn.dataset=r.dataset),r.val&&(y.default.fn.val=r.val),r.text&&(y.default.fn.text=r.text),r.html&&(y.default.fn.html=r.html),r.children&&(y.default.fn.children=r.children),r.remove&&(y.default.fn.remove=r.remove),r.find&&(y.default.fn.find=r.find),r.each&&(y.default.fn.each=r.each),r.empty&&(y.default.fn.empty=r.empty);var Nu,Mu=function(e){return "[object HTMLDocument]"===Tu(e)},Lu=function(e){return "[object ShadowRoot]"===Tu(e)},Ru=function(e){return "[object DataTransfer]"===Tu(e)},Pu=/\[object HTML([A-Z][a-z]*)*Element\]/,Du=function(e){return Pu.test(Tu(e))},ju=globalThis.Node,Au=globalThis.Comment,Iu=globalThis.Element,_u=globalThis.Text,Fu=globalThis.Range,Bu=globalThis.Selection,$u=globalThis.StaticRange,Wu=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Hu=function(e){return zu(e)&&8===e.nodeType},Vu=function(e){return zu(e)&&1===e.nodeType},zu=function(e){return null!=e&&"number"==typeof e.nodeType},Uu=function(e){return "[object Selection]"===Tu(e)},Ku=function(e){return zu(e)&&3===e.nodeType},qu=function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length},Gu=function(e){var t,n=ia(e,2),r=n[0],o=n[1];if(Vu(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=ia(Xu(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;Vu(r)&&r.childNodes.length;){var s=i?r.childNodes.length-1:0;r=Qu(r,s,i?"backward":"forward");}o=i&&null!=r.textContent?r.textContent.length:0;}return [r,o]},Ju=function(){return !(!window.document.activeElement||!window.document.activeElement.shadowRoot)},Yu=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},Xu=function(e,t,n){for(var r=e.childNodes,o=r[t],i=t,a=!1,s=!1;(Hu(o)||Vu(o)&&0===o.childNodes.length||Vu(o)&&"false"===o.getAttribute("contenteditable"))&&(!a||!s);)i>=r.length?(a=!0,i=t-1,n="backward"):i<0?(s=!0,i=t+1,n="forward"):(o=r[i],t=i,i+="forward"===n?1:-1);return [o,t]},Qu=function(e,t,n){return ia(Xu(e,t,n),1)[0]},Zu=function(e){var t,n,r="";if(Ku(e)&&e.nodeValue)return e.nodeValue;if(Vu(e)){try{for(var o=oa(Array.from(e.childNodes)),i=o.next();!i.done;i=o.next()){var a=i.value;r+=Zu(a);}}catch(e){t={error:e};}finally{try{i&&!i.done&&(n=o.return)&&n.call(o);}finally{if(t)throw t.error}}var s=getComputedStyle(e).getPropertyValue("display");"block"!==s&&"list"!==s&&"table-row"!==s&&"BR"!==e.tagName||(r+="\n");}return r};function ec(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(Bs.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],s=a.length;if(s)for(var l=s-1;l>=0;l--)t.push(a[l]);}}return null}function tc(e,t){if(!Du(e)||"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||tc(o,t);}}function nc(t){if(0===t.length)return "";var n=t[0];return n.nodeType!==e.NodeType.ELEMENT_NODE?"":n.tagName.toLowerCase()}e.NodeType=void 0,(Nu=e.NodeType||(e.NodeType={}))[Nu.ELEMENT_NODE=1]="ELEMENT_NODE",Nu[Nu.TEXT_NODE=3]="TEXT_NODE",Nu[Nu.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Nu[Nu.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Nu[Nu.COMMENT_NODE=8]="COMMENT_NODE",Nu[Nu.DOCUMENT_NODE=9]="DOCUMENT_NODE",Nu[Nu.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Nu[Nu.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 rc="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),oc="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 ic="undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ac="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),sc="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),lc="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var uc=!sc&&!ac&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,cc={getWindow:function(e){var t=Rs.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=Ls.get(t);return n||(n=new la,Ls.set(t,n)),n},setNewKey:function(e){var t=new la;Ls.set(e,t);},findPath:function(e,n){for(var r=[],o=n;;){var i=ks.get(o);if(null==i){if(t.Editor.isEditor(o))return r;break}var a=Os.get(o);if(null==a)break;r.unshift(a),o=i;}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(n))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=cc.toDOMNode(e,e),n=t.getRootNode();return (Mu(n)||Lu(n))&&null!=Reflect.get(n,"getSelection")?n:t.ownerDocument},getParentNode:function(e,t){return ks.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=cc.getParentNode(e,r);if(null==o)break;n.push(o),r=o;}return n},getTopNode:function(e,n){var r=[cc.findPath(e,n)[0]];return t.Node.get(e,r)},toDOMNode:function(e,n){var r;if(t.Editor.isEditor(n))r=Cs.get(e);else {var o=cc.findKey(e,n);r=Ns.get(o);}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(n));return r},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=cc.toDOMNode(e,e);try{r=Vu(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"))||!!r.getAttribute("data-slate-string"))},toDOMRange:function(e,n){var r=n.anchor,o=n.focus,i=t.Range.isBackward(n),a=cc.toDOMPoint(e,r),s=t.Range.isCollapsed(n)?a:cc.toDOMPoint(e,o),l=cc.getWindow(e).document.createRange(),u=ia(i?s:a,2),c=u[0],f=u[1],d=ia(i?a:s,2),p=d[0],h=d[1],g=!!(Vu(c)?c:c.parentElement).getAttribute("data-slate-zero-width"),v=!!(Vu(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return l.setStart(c,g?1:f),l.setEnd(p,v?1:h),l},toDOMPoint:function(e,n){var r,o,i,a=ia(t.Editor.node(e,n.path),1)[0],s=cc.toDOMNode(e,a);t.Editor.void(e,{at:n})&&(n={path:n.path,offset:0});var l=Array.from(s.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0;try{for(var c=oa(l),f=c.next();!f.done;f=c.next()){var d=f.value,p=d.childNodes[0];if(null!=p&&null!=p.textContent){var h=p.textContent.length,g=d.getAttribute("data-slate-length"),v=u+(null==g?h:parseInt(g,10));if(n.offset<=v){i=[p,Math.min(h,Math.max(0,n.offset-u))];break}u=v;}}}catch(e){r={error:e};}finally{try{f&&!f.done&&(o=c.return)&&o.call(c);}finally{if(r)throw r.error}}if(!i)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(n));return i},toSlateNode:function(e,t){var n=Vu(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Ts.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,n){"nativeEvent"in n&&(n=n.nativeEvent);var r=n.clientX,o=n.clientY,i=n.target;if(null==r||null==o)throw new Error("Cannot resolve a Slate range from a DOM event: "+n);var a,s=cc.toSlateNode(e,n.target),l=cc.findPath(e,s);if(t.Editor.isVoid(e,s)){var u=i.getBoundingClientRect(),c=e.isInline(s)?r-u.left<u.left+u.width-r:o-u.top<u.top+u.height-o,f=t.Editor.point(e,l,{edge:c?"start":"end"}),d=c?t.Editor.before(e,f):t.Editor.after(e,f);if(d)return t.Editor.range(e,d)}var p=this.getWindow(e).document;if(p.caretRangeFromPoint)a=p.caretRangeFromPoint(r,o);else {var h=p.caretPositionFromPoint(r,o);h&&((a=p.createRange()).setStart(h.offsetNode,h.offset),a.setEnd(h.offsetNode,h.offset));}if(!a)throw new Error("Cannot resolve a Slate range from a DOM event: "+n);return cc.toSlateRange(e,a,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,n,r){var o,i,a,s,l,u=r.exactMatch,c=r.suppressThrow;if((Uu(n)?n.anchorNode:n.startContainer)&&(Uu(n)?(o=n.anchorNode,i=n.anchorOffset,a=n.focusNode,s=n.focusOffset,l=lc&&Ju()?n.anchorNode===n.focusNode&&n.anchorOffset===n.focusOffset:n.isCollapsed):(o=n.startContainer,i=n.startOffset,a=n.endContainer,s=n.endOffset,l=n.collapsed)),null==o||null==a||null==i||null==s)throw new Error("Cannot resolve a Slate range from DOM range: "+n);var f=cc.toSlatePoint(e,[o,i],{exactMatch:u,suppressThrow:c});if(!f)return null;var d=l?f:cc.toSlatePoint(e,[a,s],{exactMatch:u,suppressThrow:c});if(!d)return null;var p={anchor:f,focus:d};return t.Range.isExpanded(p)&&t.Range.isForward(p)&&Vu(a)&&t.Editor.void(e,{at:p.focus,mode:"highest"})&&(p=t.Editor.unhangRange(e,p,{voids:!0})),p},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=ia(o?t:Gu(t),2),s=a[0],l=a[1],u=s.parentNode,c=null,f=0;if(u){var d=u.closest('[data-slate-void="true"]'),p=u.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=cc.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(s,l);var y=g.cloneContents();aa(aa([],ia(v.default(y.querySelectorAll("[data-slate-zero-width]")))),ia(v.default(y.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e);})),f=y.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&&(u.hasAttribute("data-slate-zero-width")||oc&&(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 m=cc.toSlateNode(e,c);return {path:cc.findPath(e,m),offset:f}},hasRange:function(e,n){var r=n.anchor,o=n.focus;return t.Editor.hasPath(e,r.path)&&t.Editor.hasPath(e,o.path)},getNodeType:function(e){return t.Element.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return t.Node.string(e)})).join("")},getSelectedElems:function(e){var n,r,o=[],i=t.Editor.nodes(e,{universal:!0});try{for(var a=oa(i),s=a.next();!s.done;s=a.next()){var l=ia(s.value,1)[0];t.Element.isElement(l)&&o.push(l);}}catch(e){n={error:e};}finally{try{s&&!s.done&&(r=a.return)&&r.call(a);}finally{if(n)throw n.error}}return o},getSelectedNodeByType:function(e,n){var r=this,o=ia(t.Editor.nodes(e,{match:function(e){return r.checkNodeType(e,n)},universal:!0}),1),i=o[0];return null==i?null:i[0]},getSelectedTextNode:function(e){var n=ia(t.Editor.nodes(e,{match:function(e){return t.Text.isText(e)},universal:!0}),1),r=n[0];return null==r?null:r[0]},isNodeSelected:function(e,n){var r=ia(t.Editor.nodes(e,{match:function(e){return e===n},universal:!0}),1),o=r[0];return null!=o&&ia(o,1)[0]===n},isSelectionAtLineEnd:function(e,n){var r=e.selection;return !!r&&(t.Editor.isEnd(e,r.anchor,n)||t.Editor.isEnd(e,r.focus,n))},getTextarea:function(e){var t=fs.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return hs.get(e)||null},getHoverbar:function(e){return vs.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 n,r,o,i,a=cc.getTextarea(e).$textArea,s=null==a?void 0:a[0].childNodes;if(s)try{for(var l=oa(Array.from(s)),u=l.next();!u.done;u=l.next()){var c=u.value;if(3!==c.nodeType)break;c.remove();}}catch(e){n={error:e};}finally{try{u&&!u.done&&(r=l.return)&&r.call(l);}finally{if(n)throw n.error}}var f=t.Editor.nodes(e,{match:function(n){return !(!t.Element.isElement(n)||e.isInline(n))},universal:!0});try{for(var d=oa(f),p=d.next();!p.done;p=d.next()){var h=p.value;if(null!=h){var g=h[0];tc(cc.toDOMNode(e,g),(function(e,t){var n=y.default(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e);}));}}}catch(e){o={error:e};}finally{try{p&&!p.done&&(i=d.return)&&i.call(d);}finally{if(o)throw o.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 n,r,o=t.Editor.nodes(e,{match:function(t){return e.isVoid(t)}}),i=0;try{for(var a=oa(o),s=a.next();!s.done;s=a.next()){s.value;i++;}}catch(e){n={error:e};}finally{try{s&&!s.done&&(r=a.return)&&r.call(a);}finally{if(n)throw n.error}}return i>0},isSelectedEmptyParagraph:function(e){var n=e.selection;if(null==n)return !1;if(t.Range.isExpanded(n))return !1;var r=cc.getSelectedNodeByType(e,"paragraph");if(null===r)return !1;var o=r.children;return 1===o.length&&(""===o[0].text||void 0)},isEmptyPath:function(e,n){var r=t.Editor.node(e,n);if(null==r)return !1;var o=ia(r,1)[0].children;if(1===o.length&&""===o[0].text)return !0;return !1}},fc=1,dc={};var pc={};var hc=Bn.filter,gc=to("filter");ln({target:"Array",proto:!0,forced:!gc},{filter:function(e){return hc(this,e,arguments.length>1?arguments[1]:void 0)}});var vc="\t\n\v\f\r                 \u2028\u2029\ufeff",yc=z("".replace),mc=RegExp("^["+vc+"]+"),bc=RegExp("(^|[^"+vc+"])["+vc+"]+$"),wc=function(e){return function(t){var n=ar(Z(t));return 1&e&&(n=yc(n,mc,"")),2&e&&(n=yc(n,bc,"$1")),n}},xc={start:wc(1),end:wc(2),trim:wc(3)},Ec=dt.PROPER,Sc=xc.trim;ln({target:"String",proto:!0,forced:function(e){return R((function(){return !!vc[e]()||"​…᠎"!=="​…᠎"[e]()||Ec&&vc[e].name!==e}))}("trim")},{trim:function(){return Sc(this)}});var Oc=[];var kc={};function Cc(e,t,n){var r=n.isInline(e)?"span":"div";return "<"+r+">"+t+"</"+r+">"}function Tc(e,n){var r=e.type,o=void 0===r?"":r,i=e.children,a=void 0===i?[]:i,s=t.Editor.isVoid(n,e),l="";s||(l=a.map((function(e){return Nc(e,n)})).join(""));var u=function(e){return kc[e]||Cc}(o),c=u(e,l,n),f="";if(f="string"==typeof c?c:c.html||"",s||Oc.forEach((function(t){return f=t(e,f)})),"string"==typeof c)return f;var d=c.prefix,p=void 0===d?"":d,h=c.suffix,g=void 0===h?"":h;return p&&(f=p+f),g&&(f+=g),f}function Nc(e,n){return t.Element.isElement(e)?Tc(e,n):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=cc.getParentsNodes(t,e).some((function(e){return "pre"===cc.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=cc.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>";}return Oc.forEach((function(t){return r=t(e,r)})),r}(e,n)}function Mc(e){return "w-e-element-"+e}var Lc=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Rc=function(e,t,n){var r=cc.toDOMRange(e,t).getBoundingClientRect(),o=cc.toDOMRange(e,n).getBoundingClientRect();return Lc(r,o)&&Lc(o,r)},Pc=["span","b","strong","i","em","s","strike","u","font","sub","sup"],Dc=[];var jc=[];var Ac={};var Ic=st.f,_c=function(e,t,n){n in e||Ic(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e;}});},Fc=Gt.f,Bc=Nt.enforce,$c=$e("match"),Wc=L.RegExp,Hc=Wc.prototype,Vc=L.SyntaxError,zc=z(Hc.exec),Uc=z("".charAt),Kc=z("".replace),qc=z("".indexOf),Gc=z("".slice),Jc=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Yc=/a/g,Xc=/a/g,Qc=new Wc(Yc)!==Yc,Zc=po.MISSED_STICKY,ef=po.UNSUPPORTED_Y,tf=P&&(!Qc||Zc||go||yo||R((function(){return Xc[$c]=!1,Wc(Yc)!==Yc||Wc(Xc)===Xc||"/a/i"!==String(Wc(Yc,"i"))})));if(an("RegExp",tf)){for(var nf=function(e,t){var n,r,o,i,a,s,l=ie(Hc,this),u=Po(e),c=void 0===t,f=[],d=e;if(!l&&u&&c&&e.constructor===nf)return e;if((u||ie(Hc,e))&&(e=e.source,c&&(t=ur(d))),e=void 0===e?"":ar(e),t=void 0===t?"":ar(t),d=e,go&&"dotAll"in Yc&&(r=!!t&&qc(t,"s")>-1)&&(t=Kc(t,/s/g,"")),n=t,Zc&&"sticky"in Yc&&(o=!!t&&qc(t,"y")>-1)&&ef&&(t=Kc(t,/y/g,"")),yo&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a=Ur(null),s=!1,l=!1,u=0,c="";r<=n;r++){if("\\"===(t=Uc(e,r)))t+=Uc(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:if(o+=t,"?:"===Gc(e,r+1,r+3))continue;zc(Jc,Gc(e,r+1))&&(r+=2,l=!0),u++;continue;case">"===t&&l:if(""===c||Pe(a,c))throw new Vc("Invalid capture group name");a[c]=!0,i[i.length]=[c,u],l=!1,c="";continue}l?c+=t:o+=t;}return [o,i]}(e),e=i[0],f=i[1]),a=Ra(Wc(e,t),l?this:Hc,nf),(r||o||f.length)&&(s=Bc(a),r&&(s.dotAll=!0,s.raw=nf(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=Uc(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+Uc(e,++r);return o}(e),n)),o&&(s.sticky=!0),f.length&&(s.groups=f)),e!==d)try{lt(a,"source",""===d?"(?:)":d);}catch(e){}return a},rf=Fc(Wc),of=0;rf.length>of;)_c(nf,Wc,rf[of++]);Hc.constructor=nf,nf.prototype=Hc,Lt(L,"RegExp",nf,{constructor:!0});}Js("RegExp");var af=new RegExp(String.fromCharCode(160),"g");function sf(e){return e.replace(af," ")}function lf(e,n){var r=e.length;if(r){var o=e[r-1];if(t.Text.isText(o)){var i=Object.keys(o);if(1===i.length&&"text"===i[0])return o.text=o.text+n,!0}}return !1}function uf(e,t,n){return {type:"paragraph",children:[{text:y.default(e).text().replace(/\s+/gm," ")}]}}function cf(n,r){var o=function(t,n){var r=[];if(null!=t.attr("data-w-e-is-void"))return r;var o=t[0].childNodes;return 1===o.length&&"BR"===o[0].nodeName?(r.push({text:""}),r):(o.forEach((function(t){if(t.nodeType!==e.NodeType.ELEMENT_NODE)if(t.nodeType!==e.NodeType.TEXT_NODE);else {var o=t.textContent||"";if(""===o.trim()&&o.indexOf("\n")>=0)return;o&&(o=sf(o),lf(r,o)||r.push({text:o}));}else {if("BR"===t.nodeName)return void(lf(r,"\n")||r.push({text:"\n"}));var i=df(y.default(t),n);Array.isArray(i)?i.forEach((function(e){return r.push(e)})):r.push(i);}})),r)}(n,r),i=function(e){for(var t in Ac)if(e[0].matches(t))return Ac[t];return uf}(n),a=i(n[0],o,r);return Array.isArray(a)||(a=[a]),a.forEach((function(e){t.Editor.isVoid(r,e)||(0===o.length&&(e.children=[{text:n.text().replace(/\s+/gm," ")}]),jc.forEach((function(t){e=t(n[0],e,r);})));})),a}function ff(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=sf(n)};return jc.forEach((function(n){r=n(e[0],r,t);})),r}function df(e,t){Dc.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=y.default(r(e[0])));}));var n=nc(e);if("span"===n){if(e.attr("data-w-e-type"))return cf(e,t);if(e[0].childNodes.length>1){var r=e[0].childNodes;return Array.from(r).map((function(n){return y.default(e[0]).empty(),y.default(e[0]).append(y.default(n)),ff(y.default(e[0]),t)}))}return ff(e,t)}return "code"===n?"pre"===nc(e.parent())?cf(e,t):ff(e,t):Pc.includes(n)?ff(e,t):cf(e,t)}var pf=po.UNSUPPORTED_Y,hf=Math.min,gf=z([].push),vf=z("".slice),yf=!R((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]})),mf="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;function bf(e,t,n){var r=y.default(n);return !!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t);})),!1)}function wf(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=y.default("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=df(y.default(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r);})),n}Ri("split",(function(e,t,n){var r="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:A(t,this,e,n)}:t;return [function(t,n){var o=Z(this),i=X(t)?void 0:Se(t,e);return i?A(i,t,o,n):A(r,ar(o),t,n)},function(e,o){var i=et(this),a=ar(e);if(!mf){var s=n(r,i,a,o,r!==t);if(s.done)return s.value}var l=Qs(i,RegExp),u=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(pf?"g":"y"),f=new l(pf?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return [];if(0===a.length)return null===Hi(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=pf?0:h;var v,y=Hi(f,pf?vf(a,h):a);if(null===y||(v=hf(Bt(f.lastIndex+(pf?h:0)),a.length))===p)h=Di(a,h,u);else {if(gf(g,vf(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(gf(g,y[m]),g.length===d)return g;h=p=v;}}return gf(g,vf(a,p)),g}]}),mf||!yf,pf);var xf=Oa.fastKey,Ef=Nt.set,Sf=Nt.getterFor,Of={getConstructor:function(e,t,n,r){var o=e((function(e,o){La(e,i),Ef(e,{type:t,index:Ur(null),first:null,last:null,size:0}),P||(e.size=0),X(o)||Na(o,e[r],{that:e,AS_ENTRIES:n});})),i=o.prototype,a=Sf(t),s=function(e,t,n){var r,o,i=a(e),s=l(e,t);return s?s.value=n:(i.last=s={index:o=xf(t,!0),key:t,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=s),r&&(r.next=s),P?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},l=function(e,t){var n,r=a(e),o=xf(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===t)return n};return va(i,{clear:function(){for(var e=a(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=Ur(null),P?e.size=0:this.size=0;},delete:function(e){var t=this,n=a(t),r=l(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),P?n.size--:t.size--;}return !!r},forEach:function(e){for(var t,n=a(this),r=On(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 !!l(this,e)}}),va(i,n?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),P&&qs(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Sf(t),i=Sf(r);bi(e,t,(function(e,t){Ef(this,{type:r,target:e,state:o(e),kind:t,last:null});}),(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)?wi("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,wi(void 0,!0))}),n?"entries":"values",!n,!0),Js(t);}};Pa("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Of);var kf=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function Cf(e,n){e.isInline(n)?(e.insertNode(n),"link"===n.type&&e.insertFragment([{text:""}])):t.Transforms.insertNodes(e,n,{mode:"highest"});}var Tf=function(n){var r=n,o=r.onChange,i=r.insertText,a=r.apply,s=r.deleteBackward;return r.insertText=function(e){r.getConfig().readOnly||i(e);},r.apply=function(e){var n,o,i,s,l,u,c,f,d=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var p=oa(t.Editor.levels(r,{at:e.path})),h=p.next();!h.done;h=p.next()){var g=ia(h.value,2),v=g[0],y=g[1],m=cc.findKey(r,v);d.push([y,m]);}}catch(e){n={error:e};}finally{try{h&&!h.done&&(o=p.return)&&o.call(p);}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var b=oa(t.Editor.levels(r,{at:t.Path.parent(e.path)})),w=b.next();!w.done;w=b.next()){var x=ia(w.value,2);v=x[0],y=x[1],m=cc.findKey(r,v);d.push([y,m]);}}catch(e){i={error:e};}finally{try{w&&!w.done&&(s=b.return)&&s.call(b);}finally{if(i)throw i.error}}break;case"move_node":try{for(var E=oa(t.Editor.levels(r,{at:t.Path.common(t.Path.parent(e.path),t.Path.parent(e.newPath))})),S=E.next();!S.done;S=E.next()){var O=ia(S.value,2);v=O[0],y=O[1],m=cc.findKey(r,v);d.push([y,m]);}}catch(e){l={error:e};}finally{try{S&&!S.done&&(u=E.return)&&u.call(E);}finally{if(l)throw l.error}}}a(e);try{for(var k=oa(d),C=k.next();!C.done;C=k.next()){var T=ia(C.value,2);y=T[0],m=T[1],v=ia(t.Editor.node(r,y),1)[0];Ls.set(v,m);}}catch(e){c={error:e};}finally{try{C&&!C.done&&(f=k.return)&&f.call(k);}finally{if(c)throw c.error}}},r.deleteBackward=function(e){if("line"!==e)return s(e);if(n.selection&&t.Range.isCollapsed(n.selection)){var o=t.Editor.above(n,{match:function(e){return t.Editor.isBlock(n,e)},at:n.selection});if(o){var i=ia(o,2)[1],a=t.Editor.range(n,i,n.selection.anchor),l=function(e,n){var r=t.Editor.range(e,t.Range.end(n)),o=Array.from(t.Editor.positions(e,{at:n})),i=0,a=o.length,s=Math.floor(a/2);if(Rc(e,t.Editor.range(e,o[i]),r))return t.Editor.range(e,o[i],r);if(o.length<2)return t.Editor.range(e,o[o.length-1],r);for(;s!==o.length&&s!==i;)Rc(e,t.Editor.range(e,o[s]),r)?a=s:i=s,s=Math.floor((i+a)/2);return t.Editor.range(e,o[a],r)}(r,a);t.Range.isCollapsed(l)||t.Transforms.delete(n,{at:l});}}},r.onChange=function(){var e=r.selection;null!=e&&Ds.set(r,e),r.emit("change"),o();},r.handleTab=function(){r.insertText(" ");},r.getHtml=function(){var e=r.children;return (void 0===e?[]:e).map((function(e){return Nc(e,r)})).join("")},r.getText=function(){var e=r.children;return (void 0===e?[]:e).map((function(e){return t.Node.string(e)})).join("\n")},r.getSelectionText=function(){var e=r.selection;return null==e?"":t.Editor.string(n,e)},r.getElemsByType=function(e,n){var o,i;void 0===n&&(n=!1);var a=[],s=t.Editor.nodes(r,{at:[],universal:!0});try{for(var l=oa(s),u=l.next();!u.done;u=l.next()){var c=ia(u.value,1)[0];if(t.Element.isElement(c))if(n?c.type.indexOf(e)>=0:c.type===e){var f=Mc(cc.findKey(r,c).id);a.push(ra(ra({},c),{id:f}));}}}catch(e){o={error:e};}finally{try{u&&!u.done&&(i=l.return)&&i.call(l);}finally{if(o)throw o.error}}return a},r.getElemsByTypePrefix=function(e){return r.getElemsByType(e,!0)},r.isEmpty=function(){var e=r.children,n=void 0===e?[]:e;if(n.length>1)return !1;var o=n[0];if(null==o)return !0;if(t.Element.isElement(o)&&"paragraph"===o.type){var i=o.children,a=void 0===i?[]:i;if(a.length>1)return !1;var s=a[0];if(null==s)return !0;if(t.Text.isText(s)&&""===s.text)return !0}return !1},r.clear=function(){t.Transforms.delete(r,{at:{anchor:t.Editor.start(r,[]),focus:t.Editor.end(r,[])}}),0===r.children.length&&t.Transforms.insertNodes(r,[{type:"paragraph",children:[{text:""}]}]);},r.getParentNode=function(e){return cc.getParentNode(r,e)},r.dangerouslyInsertHtml=function(n,o){if(void 0===n&&(n=""),void 0===o&&(o=!1),n){var i=document.createElement("div");i.innerHTML=n;var a=Array.from(i.childNodes);if(a=a.filter((function(t){var n=t.nodeType,r=t.nodeName;return n===e.NodeType.TEXT_NODE||n===e.NodeType.ELEMENT_NODE&&!kf.has(r.toLowerCase())})),0!==a.length){var s=r.selection;if(null!=s){var l=null;if(cc.isSelectedEmptyParagraph(r)&&!o)l=[s.focus.path[0]];i.setAttribute("hidden","true"),document.body.appendChild(i);var u=0;a.forEach((function(t,n){var o=t.nodeType,i=t.nodeName,s=t.textContent,l=void 0===s?"":s;if(o!==e.NodeType.TEXT_NODE)if("BR"!==i){var c=t,f=!1;if(Pc.includes(i.toLowerCase()))f=!0;else for(var d in Ac)if(c.matches(d)){f=!0;break}if(f){var p=df(y.default(c),r);return Array.isArray(p)?(p.forEach((function(e){return Cf(r,e)})),u++):(Cf(r,p),u++),void(cc.isSelectedVoidNode(r)&&r.move(1))}var h=window.getComputedStyle(c).display;if(!cc.isSelectedEmptyParagraph(r)&&h.indexOf("inline")<0){if(n>=1){var g=a[n-1];"matches"in g&&g.matches("ul:not([data-w-e-type]),ol:not([data-w-e-type])")&&r.insertBreak();}r.insertBreak();}r.dangerouslyInsertHtml(c.innerHTML,!0);}else r.insertText("\n");else {if(!l||!l.trim())return;r.insertNode({text:l});}})),u&&l&&cc.isEmptyPath(r,l)&&t.Transforms.removeNodes(r,{at:l}),i.remove();}}}},r.setHtml=function(e){void 0===e&&(e="");var n=r.isDisabled(),o=r.isFocused(),i=JSON.stringify(r.selection);r.enable(),r.focus(),r.clear();var a=wf(r,null==e?"":e);if(t.Transforms.insertFragment(r,a),o||(r.deselect(),r.blur()),n&&(r.deselect(),r.disable()),r.isFocused())try{r.select(JSON.parse(i));}catch(e){r.select(t.Editor.start(r,[]));}},r},Nf=function(e){return null!=e},Mf={object:!0,function:!0,undefined:!0},Lf=function(e){if(!function(e){return !!Nf(e)&&hasOwnProperty.call(Mf,typeof e)}(e))return !1;try{return !!e.constructor&&e.constructor.prototype===e}catch(e){return !1}},Rf=/^\s*class[\s{/}]/,Pf=Function.prototype.toString,Df=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 !Lf(e)}(e)&&!Rf.test(Pf.call(e))},jf=function(e){return null!=e},Af=Object.keys,If=function(){try{return Object.keys("primitive"),!0}catch(e){return !1}}()?Object.keys:function(e){return Af(jf(e)?Object(e):e)},_f=Math.max,Ff=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=_f(arguments.length,2);for(e=Object(function(e){if(!jf(e))throw new TypeError("Cannot use null or undefined");return e}(e)),o=function(r){try{e[r]=t[r];}catch(e){n||(n=e);}},r=1;r<i;++r)If(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},Bf=Array.prototype.forEach,$f=Object.create,Wf=function(e){var t=$f(null);return Bf.call(arguments,(function(e){jf(e)&&function(e,t){var n;for(n in e)t[n]=e[n];}(Object(e),t);})),t},Hf="razdwatrzy",Vf=String.prototype.indexOf,zf="function"==typeof Hf.contains&&!0===Hf.contains("dwa")&&!1===Hf.contains("foo")?String.prototype.contains:function(e){return Vf.call(this,e,arguments[1])>-1},Uf=C((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],Nf(e)?(n=zf.call(e,"c"),r=zf.call(e,"e"),o=zf.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?Ff(Wf(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],Nf(t)?Df(t)?Nf(n)?Df(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,Nf(e)?(r=zf.call(e,"c"),o=zf.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?Ff(Wf(i),a):a};})),Kf=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},qf=C((function(e,t){var n,r,o,i,a,s,l,u=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 Kf(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 Kf(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),u.call(t,this,arguments);}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(Kf(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)u.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];u.call(o,this,i);}},a={on:n,once:r,off:o,emit:i},s={on:Uf(n),once:Uf(r),off:Uf(o),emit:Uf(i)},l=p({},s),e.exports=t=function(e){return null==e?f(l):p(Object(e),s)},t.methods=a;}));function Gf(e){var t=js.get(e);return null==t&&(t=qf(),js.set(e,t)),t}var Jf=new WeakMap;function Yf(e,t){var n=Jf.get(e);null==n&&(n=new Set,Jf.set(e,n)),n.add(t);}var Xf=function(e){var t=e;return t.on=function(e,n){var r=Gf(t);if(r.on(e,n),"destroyed"===e&&Yf(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),Yf(t,o);}},t.once=function(e,n){Gf(t).once(e,n);},t.off=function(e,n){Gf(t).off(e,n);},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=Gf(t);if(o.emit.apply(o,aa([e],ia(n))),"destroyed"===e){var i=function(e){return Jf.get(e)||new Set}(t);i.forEach((function(e){return o.off("destroyed",e)})),function(e){Jf.set(e,new Set);}(t);}},t};function Qf(e){var t=cc.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return {top:o.top,left:o.left,width:n,height:r}}function Zf(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=Qf(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,s=r.height,l=cc.toDOMRange(e,n).getClientRects()[0];if(null==l)return t;l.width;var u=l.height,c={},f=l.top-o,d=l.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px";}else c.left=d+5+"px";if(f>s/2){var h=s-f;c.bottom=h+5+"px";}else {var g=f+u;g<0&&(g=0),c.top=g+5+"px";}return c}function ed(e,n,r){void 0===r&&(r="modal");var o={top:"0",left:"0"};if(null==e.selection)return o;var i=t.Element.isElement(n)&&e.isVoid(n),a=t.Element.isElement(n)&&e.isInline(n),s=Ms.get(n);if(null==s)return o;var l=s.getBoundingClientRect(),u=l.top,c=l.left,f=l.height,d=l.width;if(i){var p=ec(s);if(null!=p){var h=p.getBoundingClientRect();u=h.top,f=h.height;}}var g=Qf(e);if(null==g)return o;var v=g.top,y=g.left,m=g.width,b=g.height,w={},x=u-v,E=c-y;if("bar"===r)return w.left=E+"px",x>40?w.bottom=b-x+5+"px":w.top=x+f+5+"px",w;if("modal"===r){var S;if(i?a?E>(m-d)/2?w.right=m-E+5+"px":w.left=E+d+5+"px":w.left="20px":w.left=E+"px",i)(S=x)<0&&(S=0),w.top=S+"px";else if(x>(b-f)/2)w.bottom=b-x+5+"px";else (S=x+f)<0&&(S=0),w.top=S+5+"px";return w}throw new Error("type '"+r+"' is invalid")}function td(e,t){Cu((function(){var n=Qf(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,s=n.height,l=t.offset(),u=l.top,c=l.left,f=t.width(),d=t.height(),p=u-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0)if((r=p+d-s)>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&&u<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(u);t.css("bottom",b+"px");}if(g.indexOf("left")>=0)if((r=h+f-a)>0){var w=t.css("left"),x=parseInt(w.toString())-r;x<0&&(x=0),t.css("left",x+"px");}if(g.indexOf("right")>=0&&c<0){var E=t.css("right"),S=parseInt(E.toString())-Math.abs(c);t.css("right",S+"px");}}}));}var nd=to("slice"),rd=$e("species"),od=Array,id=Math.max;ln({target:"Array",proto:!0,forced:!nd},{slice:function(e,t){var n,r,o,i=ee(this),a=$t(i),s=_t(e,a),l=_t(void 0===t?a:t,a);if(kn(i)&&(n=i.constructor,(Dn(n)&&(n===od||kn(n.prototype))||re(n)&&null===(n=n[rd]))&&(n=void 0),n===od||void 0===n))return ya(i,s,l);for(r=new(void 0===n?od:n)(id(l-s,0)),o=0;s<l;s++,o++)s in i&&Er(r,o,i[s]);return r.length=o,r}});var ad=Object.assign,sd=Object.defineProperty,ld=z([].concat),ud=!ad||R((function(){if(P&&1!==ad({b:1},ad(sd({},"a",{enumerable:!0,get:function(){sd(this,"b",{value:3,enumerable:!1});}}),{b:2})).b)return !0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e;})),7!==ad({},e)[n]||un(ad({},t)).join("")!==r}))?function(e,t){for(var n=Le(e),r=arguments.length,o=1,i=Jt.f,a=B.f;r>o;)for(var s,l=Y(arguments[o++]),u=i?ld(un(l),i(l)):un(l),c=u.length,f=0;c>f;)s=u[f++],P&&!A(a,l,s)||(n[s]=l[s]);return n}:ad;ln({target:"Object",stat:!0,arity:2,forced:Object.assign!==ud},{assign:ud});var cd=Ye.f,fd=En("".slice),dd=Math.min,pd=Io("startsWith"),hd=!pd&&!!function(){var e=cd(String.prototype,"startsWith");return e&&!e.writable}();ln({target:"String",proto:!0,forced:!hd&&!pd},{startsWith:function(e){var t=ar(Z(this));jo(e);var n=Bt(dd(arguments.length>1?arguments[1]:void 0,t.length)),r=ar(e);return fd(t,n,n+r.length)===r}});var gd=["props","attrs","style","dataset","on","hook"];function vd(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(!gd.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=w.default(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&&vd(e);}));}var yd=[];var md={};function bd(e,t,n){var r=n.isInline(e)?"span":"div";return s.jsx(r,null,t)}function wd(e,n){var r,o=cc.findKey(n,e),i=n.isInline(e),a=t.Editor.isVoid(n,e),l=Mc(o.id),u={id:l,key:o.id,"data-slate-node":"element","data-slate-inline":i},c=e.type,f=e.children,d=void 0===f?[]:f,p=function(e){return md[e]||bd}(c);r=a?null:d.map((function(t,r){return Od(t,r,e,n)}));var h=p(e,r,n);if(a){u["data-slate-void"]=!0;var g=i?"span":"div",v=ia(t.Node.texts(e),1),y=ia(v[0],1)[0],m=Od(y,0,e,n),b=s.jsx(g,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},m);h=s.jsx(g,{style:{position:"relative"}},h,b),Os.set(y,0),ks.set(y,e);}return null==h.data&&(h.data={}),Object.assign(h.data,u),a||i||(h=function(e,t){var n=t;return yd.forEach((function(r){n=r(e,t);})),n}(e,h)),Cu((function(){var t=Yu(l);null!=t&&(Ns.set(o,t),Ms.set(e,t),Ts.set(t,e));})),h}function xd(e,t){return void 0===t&&(t=!1),s.jsx("span",{"data-slate-string":!0},t?e+"\n":e)}function Ed(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),s.jsx("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?s.jsx("br",null):null)}function Sd(e,n,r){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var o=cc.findKey(r,e),i=r.getConfig().decorate;if(null==i)throw new Error("Can not get config.decorate");var a=cc.findPath(r,e),l=i([e,a]),u=t.Text.decorations(e,l),c=u.map((function(o,i){var a=function(e,n,r,o,i){void 0===n&&(n=!1);var a=e.text,s=cc.findPath(i,r),l=t.Path.parent(s);if(t.Editor.isEditor(o))throw new Error("Text node "+JSON.stringify(r)+" parent is Editor");return i.isVoid(o)?Ed(t.Node.string(o).length):""!==a||o.children[o.children.length-1]!==r||i.isInline(o)||""!==t.Editor.string(i,l)?""===a?Ed():n&&"\n"===a.slice(-1)?xd(a,!0):xd(a):Ed(0,!0)}(o,i===u.length-1,e,n,r);return a=function(e,t){var n=t;return yd.forEach((function(t){n=t(e,n);})),n}(o,a),s.jsx("span",{"data-slate-leaf":!0},a)})),f=function(e){return "w-e-text-"+e}(o.id),d=s.jsx("span",{"data-slate-node":"text",id:f,key:o.id},c);return Cu((function(){var t=Yu(f);null!=t&&(Ns.set(o,t),Ms.set(e,t),Ts.set(t,e));})),d}function Od(e,n,r,o){return Os.set(e,n),ks.set(e,r),t.Element.isElement(e)?wd(e,o):Sd(e,r,o)}function kd(e,t){var n,r=e.$scroll,o=function(e){return "w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,l=i.autoFocus,u=function(e,t){return void 0===t&&(t=!1),s.h("div#"+e,{props:{contentEditable:!t}})}(o,a),c=t.children||[];u.children=c.map((function(e,n){var r=Od(e,n,t,t);return vd(r),r}));var f=xs.get(e);if(null==f&&(f=!0),f){var d=function(e){return y.default('<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(d),e.$textArea=d,n=d[0],(h=s.init([s.classModule,s.propsModule,s.styleModule,s.datasetModule,s.eventListenersModule,s.attributesModule]))(n,u),xs.set(e,!1),Es.set(e,h);}else {var p=Ss.get(e),h=Es.get(e);if(null==p||null==h)return;n=p.elm,h(p,u);}if(null!=n||null!=(n=Yu(o))){if((f?l:t.isFocused())&&n.focus({preventScroll:!0}),f){var g=Wu(n);g&&Rs.set(t,g);}Cs.set(t,n),Ms.set(t,n),Ts.set(n,t),Ss.set(e,u);}}function Cd(e){return "object"==typeof e&&null!=e&&1===e.nodeType}function Td(e,t){return (!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function Nd(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Td(n.overflowY,t)||Td(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 Md(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var Ld=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!Cd(e))throw new TypeError("Invalid target");for(var u,c,f=document.scrollingElement||document.documentElement,d=[],p=e;Cd(p)&&l(p);){if((p=null==(c=(u=p).parentElement)?u.getRootNode().host||null:c)===f){d.push(p);break}null!=p&&p===document.body&&Nd(p)&&!Nd(document.documentElement)||null!=p&&Nd(p,s)&&d.push(p);}for(var h=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),b=m.height,w=m.width,x=m.top,E=m.right,S=m.bottom,O=m.left,k="start"===o||"nearest"===o?x:"end"===o?S:x+b/2,C="center"===i?O+w/2:"end"===i?E:O,T=[],N=0;N<d.length;N++){var M=d[N],L=M.getBoundingClientRect(),R=L.height,P=L.width,D=L.top,j=L.right,A=L.bottom,I=L.left;if("if-needed"===r&&x>=0&&O>=0&&S<=g&&E<=h&&x>=D&&S<=A&&O>=I&&E<=j)return T;var _=getComputedStyle(M),F=parseInt(_.borderLeftWidth,10),B=parseInt(_.borderTopWidth,10),$=parseInt(_.borderRightWidth,10),W=parseInt(_.borderBottomWidth,10),H=0,V=0,z="offsetWidth"in M?M.offsetWidth-M.clientWidth-F-$:0,U="offsetHeight"in M?M.offsetHeight-M.clientHeight-B-W:0,K="offsetWidth"in M?0===M.offsetWidth?0:P/M.offsetWidth:0,q="offsetHeight"in M?0===M.offsetHeight?0:R/M.offsetHeight:0;if(f===M)H="start"===o?k:"end"===o?k-g:"nearest"===o?Md(y,y+g,g,B,W,y+k,y+k+b,b):k-g/2,V="start"===i?C:"center"===i?C-h/2:"end"===i?C-h:Md(v,v+h,h,F,$,v+C,v+C+w,w),H=Math.max(0,H+y),V=Math.max(0,V+v);else {H="start"===o?k-D-B:"end"===o?k-A+W+U:"nearest"===o?Md(D,A,R,B,W+U,k,k+b,b):k-(D+R/2)+U/2,V="start"===i?C-I-F:"center"===i?C-(I+P/2)+z/2:"end"===i?C-j+$+z:Md(I,j,P,F,$+z,C,C+w,w);var G=M.scrollLeft,J=M.scrollTop;k+=J-(H=Math.max(0,Math.min(J+H/q,M.scrollHeight-R/q+U))),C+=G-(V=Math.max(0,Math.min(G+V/K,M.scrollWidth-P/K+z)));}T.push({el:M,top:H,left:V});}return T};function Rd(e){return e===Object(e)&&0!==Object.keys(e).length}function Pd(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Rd(t)&&"function"==typeof t.behavior)return t.behavior(n?Ld(e,t):[]);if(n){var r=function(e){return !1===e?{block:"end",inline:"nearest"}:Rd(e)?e:{block:"start",inline:"nearest"}}(t);return 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);}));}(Ld(e,r),r.behavior)}}function Dd(e,t){return zu(t)&&cc.hasDOMNode(e,t,{editable:!0})}function jd(e,n){if(e.getConfig().readOnly)return !1;var r=Ad(e,n)&&cc.toSlateNode(e,n);return t.Editor.isVoid(e,r)}function Ad(e,t){return zu(t)&&cc.hasDOMNode(e,t)}function Id(e,n,r){void 0===r&&(r=!1);var o=n.selection,i=n.getConfig(),a=cc.findDocumentOrShadowRoot(n).getSelection();if(a&&(!e.isComposing||r)&&n.isFocused()){var s="None"!==a.type;if(o||s){var l=Cs.get(n),u=!1;if(l.contains(a.anchorNode)&&l.contains(a.focusNode)&&(u=!0),s&&u&&o){var c=cc.toSlateRange(n,a,{exactMatch:!0,suppressThrow:!0});if(c&&t.Range.equals(c,o)){var f=!0;if(t.Range.isCollapsed(o)){var d=a.anchorNode,p=a.anchorOffset;if(d===l){var h=l.childNodes,g=void 0;(g=h[p])&&g.matches("table")&&(f=!1),(g=h[p-1])&&g.matches("table")&&(f=!1);}}if(f)return}}if(!o||cc.hasRange(n,o)){e.isUpdatingSelection=!0;var v=o&&cc.toDOMRange(n,o);if(v){t.Range.isBackward(o)?a.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):a.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var y=v.startContainer.parentElement;if(!y.closest("[data-slate-spacer]")){y.getBoundingClientRect=v.getBoundingClientRect.bind(v);var m=document.body;Pd(y,{scrollMode:"if-needed",boundary:i.scroll?l.parentElement:m,block:"end",behavior:"smooth"}),delete y.getBoundingClientRect;}}else a.removeAllRanges();setTimeout((function(){v&&oc&&l.focus(),e.isUpdatingSelection=!1;}));}else n.selection=cc.toSlateRange(n,a,{exactMatch:!1,suppressThrow:!1});}}}var _d=new WeakMap,Fd=new WeakMap;var Bd={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"},$d={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"},Wd={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Hd=function(e){var t=Bd[e],n=$d[e],r=Wd[e],o=t&&u.isKeyHotkey(t),i=n&&u.isKeyHotkey(n),a=r&&u.isKeyHotkey(r);return function(e){return !(!o||!o(e))||(!!(rc&&i&&i(e))||!(rc||!a||!a(e)))}},Vd={isBold:Hd("bold"),isCompose:Hd("compose"),isMoveBackward:Hd("moveBackward"),isMoveForward:Hd("moveForward"),isDeleteBackward:Hd("deleteBackward"),isDeleteForward:Hd("deleteForward"),isDeleteLineBackward:Hd("deleteLineBackward"),isDeleteLineForward:Hd("deleteLineForward"),isDeleteWordBackward:Hd("deleteWordBackward"),isDeleteWordForward:Hd("deleteWordForward"),isExtendBackward:Hd("extendBackward"),isExtendForward:Hd("extendForward"),isExtendLineBackward:Hd("extendLineBackward"),isExtendLineForward:Hd("extendLineForward"),isItalic:Hd("italic"),isMoveLineBackward:Hd("moveLineBackward"),isMoveLineForward:Hd("moveLineForward"),isMoveWordBackward:Hd("moveWordBackward"),isMoveWordForward:Hd("moveWordForward"),isRedo:Hd("redo"),isSplitBlock:Hd("splitBlock"),isTransposeCharacter:Hd("transposeCharacter"),isUndo:Hd("undo"),isTab:Hd("tab"),isSelectAll:Hd("selectAll")};function zd(e){e.preventDefault();}var Ud={beforeinput:function(e,n,r){var o=e,i=r.getConfig().readOnly;if(uc&&!i&&Dd(r,o.target)){var a=r.selection,s=o.inputType,l=o.dataTransfer||o.data||void 0;if("insertCompositionText"!==s&&"deleteCompositionText"!==s){if(o.preventDefault(),!s.startsWith("delete")||s.startsWith("deleteBy")){var u=ia(o.getTargetRanges(),1)[0];if(u){var c=cc.toSlateRange(r,u,{exactMatch:!1,suppressThrow:!1});a&&t.Range.equals(a,c)||t.Transforms.select(r,c);}}if(a&&t.Range.isExpanded(a)&&s.startsWith("delete")){var f=s.endsWith("Backward")?"backward":"forward";t.Editor.deleteFragment(r,{direction:f});}else switch(s){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":t.Editor.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":t.Editor.deleteForward(r);break;case"deleteContentBackward":t.Editor.deleteBackward(r);break;case"deleteEntireSoftLine":t.Editor.deleteBackward(r,{unit:"line"}),t.Editor.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":t.Editor.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":t.Editor.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":t.Editor.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":t.Editor.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":t.Editor.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":t.Editor.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":t.Editor.insertBreak(r);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===s&&!As.get(r))break;Ru(l)?r.insertData(l):"string"==typeof l&&t.Editor.insertText(r,l);}}}},blur:function(e,n,r){var o=e,i=n.isUpdatingSelection,a=n.latestElement;if(!r.getConfig().readOnly&&!i&&Dd(r,o.target)){var s=cc.findDocumentOrShadowRoot(r);if(a!==s.activeElement){var l=o.relatedTarget;if(!(l===cc.toDOMNode(r,r)||Vu(l)&&l.hasAttribute("data-slate-spacer"))){if(null!=l&&zu(l)&&cc.hasDOMNode(r,l)){var u=cc.toSlateNode(r,l);if(t.Element.isElement(u)&&!r.isVoid(u))return}if(ic){var c=s.getSelection();null==c||c.removeAllRanges();}Ps.delete(r);}}}},focus:function(e,t,n){var r=cc.toDOMNode(n,n),o=cc.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,oc&&e.target!==r?r.focus():Ps.set(n,!0);},click:function(e,n,r){if(!r.getConfig().readOnly&&Ad(r,e.target)&&zu(e.target)){var o=cc.toSlateNode(r,e.target),i=cc.findPath(r,o);if(t.Editor.hasPath(r,i))if(t.Node.get(r,i)===o){var a=t.Editor.start(r,i),s=t.Editor.end(r,i),l=t.Editor.void(r,{at:a}),u=t.Editor.void(r,{at:s});if(l&&u&&t.Path.equals(l[1],u[1])){var c=t.Editor.range(r,a);t.Transforms.select(r,c);}}}},compositionstart:function(e,n,r){if(Dd(r,e.target)){var o=r.selection;if(o&&t.Range.isExpanded(o)&&(t.Editor.deleteFragment(r),Promise.resolve().then((function(){Id(n,r,!0);}))),o&&(t.Range.isExpanded(o)||t.Range.isCollapsed(o))){var i=cc.toDOMRange(r,o).startContainer,a=i.textContent||"";_d.set(r,a),Fd.set(r,i);}n.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);}(n,r);}},compositionend:function(e,n,r){var o=e;if(Dd(r,o.target)){n.isComposing=!1;var i=r.selection;if(null!=i){(lc||oc)&&cc.cleanExposedTexNodeInSelectionBlock(r);for(var a=t.Range.isBackward(i)?i.focus:i.anchor,s=ia(t.Editor.node(r,[a.path[0]]),1)[0],l=0;l<a.path.length;l++){var u=ia(t.Editor.node(r,a.path.slice(0,l+1)),1)[0];if(t.Element.isElement(u)&&((ic||oc)&&"link"===u.type||"code"===u.type)){cc.setNewKey(s);break}}var c=o.data;if(c){if(r.getConfig().maxLength){var f=cc.getLeftLengthOfMaxLength(r);if(f<c.length)cc.toDOMRange(r,i).startContainer.textContent=_d.get(r)||"",f>0&&t.Editor.insertText(r,c.slice(0,f)),n.changeViewState();else t.Editor.insertText(r,c);}else {var d=cc.findDocumentOrShadowRoot(r).getSelection();d&&function(e,n){if(t.Range.isCollapsed(n)){var r=n.anchor,o=n.focus;if(2===r.path.length&&2===o.path.length&&(0===r.offset||0===o.path.offset)){var i=t.Editor.node(e,r.path),a=0===r.offset?r.path:o.path,s=[a[0],a[1]-1];if(0===a[1])return !1;var l=t.Editor.node(e,s);if(t.Text.isText(l[0])&&t.Text.isText(i[0]))return !0}}}(r,i)&&(r.selection=cc.toSlateRange(r,d,{exactMatch:!1,suppressThrow:!1})),t.Editor.insertText(r,c);}ic||setTimeout((function(){var e=r.selection;if(null!=e){var t=Fd.get(r);if(null!=t)cc.toDOMRange(r,e).startContainer!==t&&(t.textContent=_d.get(r)||"");}}));}}}},compositionupdate:function(e,t,n){Dd(n,e.target)&&(t.isComposing=!0);},keydown:function(e,n,r){var o=e,i=r.selection;if(!r.getConfig().readOnly&&!n.isComposing&&Dd(r,o.target)){if(function(e,t){var n=hs.get(e),r=n&&n.getMenus(),o=vs.get(e),i=o&&o.getMenus(),a=ra(ra({},r),i);for(var s in a){var l=a[s],c=l.hotkey;if(c&&u.isHotkey(c,t)&&!l.isDisabled(e)){var f=l.getValue(e);l.exec(e,f);}}}(r,o),Vd.isTab(o))return zd(o),void r.handleTab();if(Vd.isRedo(o))return zd(o),void("function"==typeof r.redo&&r.redo());if(Vd.isUndo(o))return zd(o),void("function"==typeof r.undo&&r.undo());if(Vd.isMoveLineBackward(o))return zd(o),void t.Transforms.move(r,{unit:"line",reverse:!0});if(Vd.isMoveLineForward(o))return zd(o),void t.Transforms.move(r,{unit:"line"});if(Vd.isExtendLineBackward(o))return zd(o),void t.Transforms.move(r,{unit:"line",edge:"focus",reverse:!0});if(Vd.isExtendLineForward(o))return zd(o),void t.Transforms.move(r,{unit:"line",edge:"focus"});if(Vd.isMoveBackward(o))return zd(o),void(i&&t.Range.isCollapsed(i)?t.Transforms.move(r,{reverse:!0}):t.Transforms.collapse(r,{edge:"start"}));if(Vd.isMoveForward(o))return zd(o),void(i&&t.Range.isCollapsed(i)?t.Transforms.move(r):t.Transforms.collapse(r,{edge:"end"}));if(Vd.isMoveWordBackward(o))return zd(o),i&&t.Range.isExpanded(i)&&t.Transforms.collapse(r,{edge:"focus"}),void t.Transforms.move(r,{unit:"word",reverse:!0});if(Vd.isMoveWordForward(o))return zd(o),i&&t.Range.isExpanded(i)&&t.Transforms.collapse(r,{edge:"focus"}),void t.Transforms.move(r,{unit:"word"});if(Vd.isSelectAll(o))return zd(o),void r.selectAll();if(uc){if((lc||ic)&&i&&(Vd.isDeleteBackward(o)||Vd.isDeleteForward(o))&&t.Range.isCollapsed(i)){var a=t.Node.parent(r,i.anchor.path);if(t.Element.isElement(a)&&t.Editor.isVoid(r,a)&&t.Editor.isInline(r,a))return o.preventDefault(),void t.Transforms.delete(r,{unit:"block"})}}else {if(Vd.isBold(o)||Vd.isItalic(o)||Vd.isTransposeCharacter(o))return void zd(o);if(Vd.isSplitBlock(o))return zd(o),void t.Editor.insertBreak(r);if(Vd.isDeleteBackward(o))return zd(o),void(i&&t.Range.isExpanded(i)?t.Editor.deleteFragment(r,{direction:"backward"}):t.Editor.deleteBackward(r));if(Vd.isDeleteForward(o))return zd(o),void(i&&t.Range.isExpanded(i)?t.Editor.deleteFragment(r,{direction:"forward"}):t.Editor.deleteForward(r));if(Vd.isDeleteLineBackward(o))return zd(o),void(i&&t.Range.isExpanded(i)?t.Editor.deleteFragment(r,{direction:"backward"}):t.Editor.deleteBackward(r,{unit:"line"}));if(Vd.isDeleteLineForward(o))return zd(o),void(i&&t.Range.isExpanded(i)?t.Editor.deleteFragment(r,{direction:"forward"}):t.Editor.deleteForward(r,{unit:"line"}));if(Vd.isDeleteWordBackward(o))return zd(o),void(i&&t.Range.isExpanded(i)?t.Editor.deleteFragment(r,{direction:"backward"}):t.Editor.deleteBackward(r,{unit:"word"}));if(Vd.isDeleteWordForward(o))return zd(o),void(i&&t.Range.isExpanded(i)?t.Editor.deleteFragment(r,{direction:"forward"}):t.Editor.deleteForward(r,{unit:"word"}))}}},keypress:function(e,n,r){if(!uc&&!r.getConfig().readOnly&&Dd(r,e.target)){e.preventDefault();var o=e.key;t.Editor.insertText(r,o);}},copy:function(e,t,n){var r=e;if(Dd(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o);}},cut:function(e,n,r){var o=e,i=r.selection;if(!r.getConfig().readOnly&&Dd(r,o.target)){o.preventDefault();var a=o.clipboardData;if(null!=a&&(r.setFragmentData(a),i))if(t.Range.isExpanded(i))t.Editor.deleteFragment(r);else {var s=t.Node.parent(r,i.anchor.path);t.Editor.isVoid(r,s)&&t.Transforms.delete(r);}}},paste:function(e,t,n){As.set(n,!0);var r=e;if(!n.getConfig().readOnly&&Dd(n,r.target)){var o=n.getConfig().customPaste;if(o)if(!1===o(n,r))return void As.set(n,!1);if(!uc||qu(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i);}}},dragover:function(e,n,r){if(Ad(r,e.target)){var o=cc.toSlateNode(r,e.target);t.Editor.isVoid(r,o)&&e.preventDefault();}},dragstart:function(e,n,r){var o=e;if(Ad(r,o.target)&&!r.getConfig().readOnly){var i=cc.toSlateNode(r,o.target),a=cc.findPath(r,i);if(t.Editor.isVoid(r,i)||t.Editor.void(r,{at:a,voids:!0})){var s=t.Editor.range(r,a);t.Transforms.select(r,s);}var l=o.dataTransfer;null!=l&&(n.isDraggingInternally=!0,r.setFragmentData(l));}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&Ad(n,r.target)&&(t.isDraggingInternally=!1);},drop:function(e,n,r){var o=e,i=o.dataTransfer;if(!r.getConfig().readOnly&&Ad(r,o.target)&&null!=i&&!(uc&&ic&&i.files.length>0)){o.preventDefault();var a=r.selection,s=cc.findEventRange(r,o);t.Transforms.select(r,s),n.isDraggingInternally&&(a&&t.Transforms.delete(r,{at:a}),n.isDraggingInternally=!1),r.insertData(i),r.isFocused()||r.focus();}}},Kd=1,qd=function(){function e(e){var n=this;this.id=Kd++,this.$textArea=null,this.$progressBar=y.default('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=y.default('<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=b.default((function(){var e=n.editorInstance;!function(e,n){var r=e.isComposing,o=e.isUpdatingSelection,i=e.isDraggingInternally;if(!(n.getConfig().readOnly||r||o||i)){var a=cc.findDocumentOrShadowRoot(n),s=a.activeElement,l=cc.toDOMNode(n,n),u=a.getSelection();if(s!==l)return Ps.delete(n),void t.Transforms.deselect(n);if(e.latestElement=s,Ps.set(n,!0),!u)return t.Transforms.deselect(n);var c=u.anchorNode,f=u.focusNode,d=Dd(n,c)||jd(n,c),p=Dd(n,f)||jd(n,f);if(d&&p){var h=cc.toSlateRange(n,u,{exactMatch:!1,suppressThrow:!1});t.Transforms.select(n,h);}}}(n,e);}),100);var r=y.default(e);if(0===r.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=r;var o=y.default('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=y.default('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Cu((function(){var e=n.editorInstance,t=cc.getWindow(e);t.document.addEventListener("selectionchange",n.onDOMSelectionChange),e.on("destroyed",(function(){t.document.removeEventListener("selectionchange",n.onDOMSelectionChange);})),o.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",n.changeViewState.bind(n));var i=e.getConfig(),a=i.onChange,s=i.scroll;a&&e.on("change",(function(){return a(e)})),s||(r.css("position","relative"),o.addClass("no-scroll")),n.onFocusAndOnBlur(),e.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent();}));}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=ds.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&&(m.default(Ud,(function(n,o){t.on(o,(function(t){n(t,e,r);}));})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",b.default((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-cc.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;kd(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=y.default('<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),Cu((function(){Id(e,t);}));},e.prototype.destroy=function(){this.$textAreaContainer.remove();},e}();Ri("match",(function(e,t,n){return [function(t){var n=Z(this),r=X(t)?void 0:Se(t,e);return r?A(r,t,n):new RegExp(t)[e](ar(n))},function(e){var r=et(this),o=ar(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Hi(r,o);var a=r.unicode;r.lastIndex=0;for(var s,l=[],u=0;null!==(s=Hi(r,o));){var c=ar(s[0]);l[u]=c,""===c&&(r.lastIndex=Di(o,Bt(r.lastIndex),a)),u++;}return 0===u?null:l}]}));function Gd(e){if(e.removeAttr){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&&Gd(t);}}function Jd(){return y.default('<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 Yd(){return y.default('<div class="w-e-bar-divider"></div>')}function Xd(e,t,n,r,o){if(void 0===r&&(r=""),void 0===o&&(o=!1),t){if(r){var i=rc?"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");}}}var Qd=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=y.default('<div class="w-e-bar-item"></div>'),this.$button=y.default('<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,s=t.hotkey,l=void 0===s?"":s,u=t.iconSvg,c=void 0===u?"":u,f=this.$button;if(c){var d=y.default(c);Gd(d),f.append(d);}else f.text(a);Xd(f,c,a,l,n),n&&c&&f.append(y.default('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),Cu((function(){return r.init()}));}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),up(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick());}));},e.prototype.exec=function(){var e=up(this),t=this.menu,n=t.getValue(e);this.setIcon(),this.setTooltip(),t.exec(e,n);},e.prototype.setActive=function(){var e=up(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n);},e.prototype.setDisabled=function(){var e=up(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.setIcon=function(){var e=up(this),t=this.$button;if(this.menu.getIcon){var n=this.menu.getIcon(e);if(n){t.find("svg").remove();var r=y.default(n);Gd(r),t.append(r);}}},e.prototype.setTooltip=function(){var e=up(this),t=this.$button;if(this.menu.getTitle){var n=this.menu.getTitle(e),r=this.menu.iconSvg;n&&r&&Xd(t,r,n);}},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled();},e}(),Zd=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return na(t,e),t.prototype.onButtonClick=function(){},t}(Qd),ep=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e);}return e.prototype.record=function(e){var t=ms.get(e);null==t&&(t=new Set,ms.set(e,t)),t.add(this),bs.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=bs.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=bs.get(this);e&&e.emit("modalOrPanelHide");}},e}(),tp=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=y.default('<div class="w-e-drop-panel"></div>'),n}return na(t,e),t.prototype.genSelfElem=function(){return null},t}(ep),np=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=Jd();o.$button.append(i);}return o}return na(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=up(this);if(null==this.dropPanel){var n=new tp(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n;}else {var o=this.dropPanel;if(o.isShow)o.hide();else {r=e.getPanelContentElem(t);o.renderContent(r),o.show();}}var i=this.dropPanel;if(i.isShow){var a=this.$elem,s=a.offset().left,l=a.parents(".w-e-bar");s-l.offset().left>=l.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"});}}},t}(Qd),rp=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=y.default('<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 na(t,e),t.prototype.genSelfElem=function(){var e=this,t=y.default('<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=bs.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}(ep);var op=function(e){function n(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=y.default("body"),o.modal=null,o.menu=n,o}return na(n,e),n.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal();},n.prototype.getPosition=function(){var e=up(this),n=this.menu.getModalPositionNode(e);return t.Element.isElement(n)?ed(e,n,"modal"):Zf(e)},n.prototype.handleModal=function(){var e=up(this),t=this.menu;if(null==this.modal){var n=new rp(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n;}else {(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1);}},n.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=up(this),r=this.menu;if(null!=r.getModalContentElem){var o=cc.getTextarea(n),i=cc.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,s=r.getModalContentElem(n);if(e.renderContent(s),a)e.setStyle({left:"0",right:"0"});else {var l=this.getPosition();e.setStyle(l);}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||td(n,e.$elem),setTimeout((function(){n.blur();}));}},n}(Qd);var ip=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=y.default('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation();})),r}return na(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=y.default("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=y.default('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var s=y.default('<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(s),a.addClass("selected");}a.append(y.default('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a);})),t.append(n);},t.prototype.genSelfElem=function(){return null},t}(ep);var ap=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=y.default('<div class="w-e-bar-item"></div>'),this.$button=y.default('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,s=t.iconSvg,l=void 0===s?"":s,u=t.hotkey,c=void 0===u?"":u;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),Xd(f,l,i,c,n),this.$elem.append(f),this.menu=t,Cu((function(){return r.init()}));}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),up(e).hidePanelOrModal(),e.trigger();}));},e.prototype.trigger=function(){var e=this,t=up(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new ip(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=y.default(n).attr("data-value");e.onChange(r);}}));}else {if((r=this.selectList).isShow)r.hide();else {o=n.getOptions(t);r.renderList(o),r.show();}}}},e.prototype.onChange=function(e){var t=up(this),n=this.menu;n.exec&&n.exec(t,e);},e.prototype.setSelectedValue=function(){var e=up(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=Jd();o.empty(),o.text(r),o.append(i);},e.prototype.setDisabled=function(){var e=up(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}(),sp=function(){function e(e){this.$elem=y.default('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=y.default('<div class="w-e-bar-item-menus-container"></div>'),this.$button=y.default('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=y.default(n);Gd(a),i.append(a);}else i.text(r);i.attr("data-menu-key",t);var s=Jd();i.append(s),o.append(i);var l=this.$container;o.append(l);var u=this.createObserver();this.observe(u);}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){y.default(e).hasClass("disabled")&&a++;})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r);}}));return r},e}(),lp=new WeakMap;function up(e){var t=ys.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function cp(e,t,n){void 0===n&&(n=!1);var r=lp.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new np(e,t,n):a?new op(e,t,n):new Zd(e,t,n);}if("select"===o&&(r=new ap(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return lp.set(t,r),r}var fp=C((function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports;})),dp=C((function(e){var t=fp.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports;})),pp=C((function(e){var t=fp.default;e.exports=function(e){var n=dp(e,"string");return "symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports;})),hp=C((function(e){e.exports=function(e,t,n){return (t=pp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports;})),gp=C((function(e){e.exports=function(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){hp(e,t,n[t]);}));}return e},e.exports.__esModule=!0,e.exports.default=e.exports;})),vp=C((function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports;})),yp=C((function(e){function t(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,pp(r.key),r);}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports;})),mp=C((function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports;})),bp=C((function(e){var t=fp.default;e.exports=function(e,n){if(n&&("object"==t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return mp(e)},e.exports.__esModule=!0,e.exports.default=e.exports;})),wp=C((function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports;})),xp=C((function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports;})),Ep=C((function(e){e.exports=function(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xp(e,t);},e.exports.__esModule=!0,e.exports.default=e.exports;}));function Sp(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var Op=Sp(fp),kp=Sp(gp),Cp=Sp(vp),Tp=Sp(yp),Np=Sp(bp),Mp=Sp(wp),Lp=Sp(mp),Rp=Sp(Ep),Pp={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);}},Dp=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Cp.default(this,e),this.init(t,n);}return Tp.default(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||Pp,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,kp.default({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}(),jp=new Dp,Ap=function(){function e(){Cp.default(this,e),this.observers={};}return Tp.default(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t);})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e]);}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n);}));this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n));}));}}]),e}();function Ip(){var e,t,n=new Promise((function(n,r){e=n,t=r;}));return n.resolve=e,n.reject=t,n}function _p(e){return null==e?"":""+e}function Fp(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 Bp(e,t,n){var r=Fp(e,t,Object);r.obj[r.k]=n;}function $p(e,t){var n=Fp(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Wp(e,t,n){var r=$p(e,n);return void 0!==r?r:$p(t,n)}function Hp(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]):Hp(e[r],t[r],n):e[r]=t[r]);return e}function Vp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var zp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Up(e){return "string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return zp[e]})):e}var Kp="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function qp(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,s=r.slice(i,i+a).join(n),l=o[s];void 0===l&&r.length>i+a;)a++,l=o[s=r.slice(i,i+a).join(n)];if(void 0===l)return;if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s];var u=r.slice(i+a).join(n);return u?qp(l,u,n):void 0}o=o[r[i]];}return o}}var Gp=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Cp.default(this,t),n=Np.default(this,Mp.default(t).call(this)),Kp&&Ap.call(Lp.default(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 Rp.default(t,e),Tp.default(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 s=$p(this.data,a);return s||!i||"string"!=typeof n?s:qp(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),Bp(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 s=$p(this.data,a)||{};r?Hp(s,n,o):s=kp.default({},s,n),Bp(this.data,a,s),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?kp.default({},{},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}(Ap),Jp={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}},Yp={},Xp=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Cp.default(this,t),n=Np.default(this,Mp.default(t).call(this)),Kp&&Ap.call(Lp.default(n)),function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e]);}));}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Lp.default(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=jp.create("translator"),n}return Rp.default(t,e),Tp.default(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"!==Op.default(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),s=a.key,l=a.namespaces,u=l[l.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 u+d+s}return s}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||s,v=p&&p.exactUsedKey||s,y=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&h&&("string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof m||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,kp.default({},n,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(i){var w="[object Array]"===y,x=w?[]:{},E=w?v:g;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var O="".concat(E).concat(i).concat(S);x[S]=this.translate(O,kp.default({},n,{joinArrays:!1,ns:l})),x[S]===O&&(x[S]=h[S]);}h=x;}}else if(b&&"string"==typeof m&&"[object Array]"===y)(h=h.join(m))&&(h=this.extendTranslation(h,e,n,r));else {var k=!1,C=!1,T=void 0!==n.count&&"string"!=typeof n.count,N=t.hasDefaultValue(n),M=T?this.pluralResolver.getSuffix(c,n.count):"",L=n["defaultValue".concat(M)]||n.defaultValue;!this.isValidLookup(h)&&N&&(k=!0,h=L),this.isValidLookup(h)||(C=!0,h=s);var R=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:h,P=N&&L!==h&&this.options.updateMissing;if(C||k||P){if(this.logger.log(P?"updateKey":"missingKey",c,u,s,P?L:h),i){var D=this.resolve(s,kp.default({},n,{keySeparator:!1}));D&&D.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");}var j=[],A=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&A&&A[0])for(var I=0;I<A.length;I++)j.push(A[I]);else "all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var _=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,u,t,P?r:R,P,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,u,t,P?r:R,P,n),o.emit("missingKey",e,u,t,h);};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?j.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){_([e],s+t,n["defaultValue".concat(t)]||L);}));})):_(j,s,L));}h=this.extendTranslation(h,e,n,p,r),C&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(u,":").concat(s)),(C||k)&&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(kp.default({},n,{interpolation:kp.default({},this.options.interpolation,n.interpolation)}));var a,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length;}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=kp.default({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),s){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=Jp.handle(d,e,t,this.options&&this.options.postProcessPassResolved?kp.default({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return "string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;n=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!Yp["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(Yp["".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,l,c=u,p=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(p,u,n,e,s);else f&&(i=a.pluralResolver.getSuffix(n,s.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(s.context)),f&&p.push(c+=i);for(;l=p.pop();)a.isValidLookup(t)||(r=l,t=a.getResource(n,e,l,s));}})));}));}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return !(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return !0;return !1}}]),t}(Ap);function Qp(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Zp=function(){function e(t){Cp.default(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=jp.create("languageUtils");}return Tp.default(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]=Qp(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]=Qp(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Qp(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}(),eh=[{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}],th={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};var nh=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Cp.default(this,e),this.languageUtils=t,this.options=r,this.logger=jp.create("pluralResolver"),this.rules=(n={},eh.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:th[e.fc]};}));})),n);}return Tp.default(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}(),rh=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Cp.default(this,e),this.logger=jp.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t);}return Tp.default(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:Up,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Vp(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Vp(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?Vp(t.nestingPrefix):t.nestingPrefixEscaped||Vp("$t("),this.nestingSuffix=t.nestingSuffix?Vp(t.nestingSuffix):t.nestingSuffixEscaped||Vp(")"),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,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var o=Wp(t,l,e);return s.alwaysFormat?s.format(o,void 0,n,kp.default({},r,t,{interpolationkey:e})):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),u=i.join(s.formatSeparator).trim();return s.format(Wp(t,l,a),u,n,kp.default({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return [{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:"";}else {if(d){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i="";}else "string"==typeof i||s.useRawValueToEscape||(i=_p(i));var l=t.safeValue(i);if(e=e.replace(o[0],l),d?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.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=kp.default({},i);function s(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=kp.default({},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 l=[],u=!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(),l=c,u=!0;}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=_p(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=l.reduce((function(e,t){return o.format(e,t,i.lng,kp.default({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0;}return e}}]),e}();var oh=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Cp.default(this,t),o=Np.default(this,Mp.default(t).call(this)),Kp&&Ap.call(Lp.default(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=jp.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return Rp.default(t,e),Tp.default(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),l.indexOf(t)<0&&l.push(t)));})),r||s.push(e);})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{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=Fp(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||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(s,l){s&&l&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a);}),i):a(s,l);})):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,kp.default({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r));}}]),t}(Ap);function ih(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 ah(){}var sh=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(Cp.default(this,t),e=Np.default(this,Mp.default(t).call(this)),Kp&&Ap.call(Lp.default(e)),e.options=ih(n),e.services={},e.logger=jp,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),Np.default(e,Lp.default(e));setTimeout((function(){e.init(n,r);}),0);}return e}return Rp.default(t,e),Tp.default(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=kp.default({},{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"===Op.default(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Op.default(e[2])||"object"===Op.default(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e];}));}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,ih(t)),this.format=this.options.interpolation.format,n||(n=ah),!this.options.isClone){this.modules.logger?jp.init(r(this.modules.logger),this.options):jp.init(null,this.options);var o=new Zp(this.options);this.store=new Gp(this.options.resources,this.options);var i=this.services;i.logger=jp,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new nh(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new rh(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new oh(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 Xp(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r));})),this.modules.external.forEach((function(t){t.init&&t.init(e);}));}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0]);}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return (n=e.store)[t].apply(n,arguments)};}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return (n=e.store)[t].apply(n,arguments),e};}));var s=Ip(),l=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),s.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?l():setTimeout(l,0),s}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ah,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e);}));};if(r)i(r);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)}));this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n);}else n(null);}},{key:"reloadResources",value:function(e,t,n){var r=Ip();return e||(e=this.languages),t||(t=this.options.ns),n||(n=ah),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&&Jp.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=Ip();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"!==Op.default(o)){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];i=r.options.overloadTranslationOptionHandler([t,o].concat(s));}else i=kp.default({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var u=r.options.keySeparator||".",c=n?"".concat(n).concat(u).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 s=n.precheck(this,a);if(void 0!==s)return s}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=Ip();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=Ip();"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){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return "rtl";return ["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"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{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]:ah,o=kp.default({},this.options,n,{isClone:!0}),i=new t(o);return ["store","services","language"].forEach((function(t){i[t]=e[t];})),i.services=kp.default({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Xp(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}(Ap),lh=new sh,uh="translation";function ch(e){return lh.on("languageChanged",e),function(){return lh.off("languageChanged",e)}}lh.init({lng:"zh-CN",resources:{}});var fh=lh.t.bind(lh);function dh(e,n){var r=e.selection;return null!=r&&(!t.Range.isCollapsed(r)&&(!cc.getSelectedElems(e).some((function(t){if(e.isVoid(t))return !0;var n=t.type;return !!["pre","code","table"].includes(n)||void 0}))&&!!t.Text.isText(n)))}var ph=function(){function e(){var e=this;this.$elem=y.default('<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.lngListen=function(){},this.changeHoverbarState=x.default((function(){var n=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},o=r.node,i=void 0===o?null:o,a=r.menuKeys,s=void 0===a?[]:a;if((null!=i&&e.changeItemsState(),i&&t.Element.isElement(i))&&(n&&e.isSamePath(i,e.prevSelectedNode)))return;e.hideAndClean(),null!=i&&(e.registerItems(s),e.setPosition(i),e.show()),e.prevSelectedNode=i;}),200),Cu((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),cc.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);})),this.lngListen=ch((function(){e.menus={},e.hideAndClean(),e.getEditorInstance().deselect();}));}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;Cu((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=Yd();n.append(r);}}));},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=pc[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=t.getMenuConfig(e);i&&void 0!==i.iconSvg&&(r.iconSvg=i.iconSvg);var a=cp(e,r);this.hoverbarItems.push(a),ys.set(a,t),this.$elem.append(a.$elem);},e.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),t.Element.isElement(e)){var o=ed(n,e,"bar");return r.css(o),void td(n,r)}if(t.Text.isText(e)){o=Zf(n);return r.css(o),void td(n,r)}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 n=this.getHoverbarKeysConf(),r=null,o=[],i=function(i){var a=n[i],s=a.match,l=a.menuKeys,u=void 0===l?[]:l,c=s||function(e,t){return cc.checkNodeType(t,i)},f=ia(t.Editor.nodes(e,{match:function(t){return c(e,t)},universal:!0}),1),d=f[0];if(null!=d)return r=d[0],o=u,"break"};for(var a in n){if("break"===i(a))break}return null==r||0===o.length?null:{node:r,menuKeys:o}},e.prototype.getEditorInstance=function(){var e=gs.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=dh),t},e.prototype.isSamePath=function(e,n){if(null==e||null==n)return !1;var r=cc.findPath(null,e),o=cc.findPath(null,n);return t.Path.equals(r,o)},e.prototype.destroy=function(){var e;this.changeHoverbarState.cancel(),this.$elem.remove(),null===(e=this.lngListen)||void 0===e||e.call(this),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null;},e}();function hh(e,n,r,o){if(Os.set(e,n),ks.set(e,r),t.Element.isElement(e)){var i=e.children;if((void 0===i?[]:i).forEach((function(t,n){return hh(t,n,e,o)})),t.Editor.isVoid(o,e)){var a=ia(t.Node.texts(e),1),s=ia(a[0],1)[0];Os.set(s,0),ks.set(s,e);}}}var gh=TypeError,vh=Object.getOwnPropertyDescriptor,yh=P&&!function(){if(void 0!==this)return !0;try{Object.defineProperty([],"length",{writable:!1}).length=1;}catch(e){return e instanceof TypeError}}()?function(e,t){if(kn(e)&&!vh(e,"length").writable)throw new gh("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},mh=TypeError,bh=TypeError,wh=function(e,t){if(!delete e[t])throw new bh("Cannot delete property "+we(t)+" of "+we(e))},xh=to("splice"),Eh=Math.max,Sh=Math.min;ln({target:"Array",proto:!0,forced:!xh},{splice:function(e,t){var n,r,o,i,a,s,l=Le(this),u=$t(l),c=_t(e,u),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=u-c):(n=f-2,r=Sh(Eh(jt(t),0),u-c)),function(e){if(e>9007199254740991)throw mh("Maximum allowed index exceeded")}(u+n-r),o=In(l,r),i=0;i<r;i++)(a=c+i)in l&&Er(o,i,l[a]);if(o.length=r,n<r){for(i=c;i<u-r;i++)s=i+n,(a=i+r)in l?l[s]=l[a]:wh(l,s);for(i=u;i>u-r+n;i--)wh(l,i-1);}else if(n>r)for(i=u-r;i>c;i--)s=i+n-1,(a=i+r-1)in l?l[s]=l[a]:wh(l,s);for(i=0;i<n;i++)l[i+c]=arguments[i+2];return yh(l,u-r+n),o}});var Oh=function(){function e(e,t){var n=this;this.$toolbar=y.default('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.lngListen=function(){},this.changeToolbarState=x.default((function(){n.toolbarItems.forEach((function(e){e.changeMenuState();}));}),200),this.config=t;var r=y.default(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),Cu((function(){n.initToolbar(),n.lngListen=ch((function(){return n.initToolbar()})),n.getEditorInstance().on("change",n.changeToolbarState);}));}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.initToolbar=function(){this.menus={};var e=this.$toolbar;null==e||e.empty(),this.registerItems(),this.changeToolbarState();},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,s=void 0===a?{index:0,keys:[]}:a,l=r.excludeKeys,u=void 0===l?[]:l,c=E.default(i);s.keys.length>0&&("string"==typeof s.keys&&(s.keys=[s.keys]),s.keys.forEach((function(e,t){c.splice(s.index+t,0,e);})));var f=c.filter((function(e){if("string"==typeof e){if(u.includes(e))return !1}else if(u.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=Yd();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 sp(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,s=void 0===a?[]:a;i.forEach((function(e){s.includes(e)||t.registerSingleItem(e,r);})),n.append(r.$elem);},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof sp,o=this.menus,i=o[e];if(null==i){var a=pc[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 s=n.getMenuConfig(e);s&&void 0!==s.iconSvg&&(i.iconSvg=s.iconSvg);var l=cp(e,i,r);(this.toolbarItems.push(l),ys.set(l,n),r)?t.appendBarItem(l):t.$toolbar.append(l.$elem);},e.prototype.getEditorInstance=function(){var e=ps.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){var e;this.$toolbar.remove(),null===(e=this.lngListen)||void 0===e||e.call(this),this.menus={},this.toolbarItems=[];},e}();var kh=dt.EXISTS,Ch=Function.prototype,Th=z(Ch.toString),Nh=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Mh=z(Nh.exec);P&&!kh&&qs(Ch,"name",{configurable:!0,get:function(){try{return Mh(Nh,Th(this))[1]}catch(e){return ""}}}),e.DOMComment=Au,e.DOMElement=Iu,e.DOMNode=ju,e.DOMRange=Fu,e.DOMSelection=Bu,e.DOMStaticRange=$u,e.DOMText=_u,e.DomEditor=cc,e.ELEM_TO_HTML_CONF=kc,e.PARSE_ELEM_HTML_CONF=Ac,e.PARSE_STYLE_HTML_FN_LIST=jc,e.PRE_PARSE_HTML_CONF_LIST=Dc,e.RENDER_ELEM_CONF=md,e.RENDER_STYLE_HANDLER_LIST=yd,e.STYLE_TO_HTML_FN_LIST=Oc,e.TEXT_TAGS=Pc,e.Toolbar=Oh,e.coreCreateEditor=function(n){var r=n.selector,o=void 0===r?"":r,i=n.config,a=void 0===i?{}:i,s=n.content,l=n.html,u=n.plugins,c=void 0===u?[]:u,f=or(function(n){var r=n,o=r.insertText,i=r.insertNode,a=r.insertFragment,s=r.dangerouslyInsertHtml;return r.insertText=function(e){if(r.getConfig().maxLength){var t=cc.getLeftLengthOfMaxLength(r);t<=0||(t<e.length?o(e.slice(0,t)):o(e));}else o(e);},r.insertNode=function(e){if(r.getConfig().maxLength){var n=cc.getLeftLengthOfMaxLength(r);n<=0||n<t.Node.string(e).length||i(e);}else i(e);},r.insertFragment=function(e){if(r.getConfig().maxLength){if(e.length>0){var n=e[0];if(cc.getLeftLengthOfMaxLength(r)<t.Node.string(n).length)return;a([n]);for(var o=1;o<e.length;o++)r.insertNode(e[o]);}}else a(e);},r.dangerouslyInsertHtml=function(t,n){if(void 0===t&&(t=""),void 0===n&&(n=!1),t)if(r.getConfig().maxLength){var o=cc.getLeftLengthOfMaxLength(r);if(!(o<=0)){var i=document.createElement("div");i.innerHTML=t;var a=Array.from(i.childNodes).reduce((function(t,n){var r=n.nodeType,o=n.nodeName;return n?r===e.NodeType.TEXT_NODE?t+(n.textContent||""):r===e.NodeType.ELEMENT_NODE?kf.has(o.toLowerCase())?t:t+(n.textContent||""):t:t}),"");o<a.length||s(t,n);}}else s(t,n);},r}(Xf(function(e){var n=e;return n.select=function(e){t.Transforms.select(n,e);},n.deselect=function(){var r=n.selection,o=cc.findDocumentOrShadowRoot(n).getSelection();o&&o.rangeCount>0&&o.removeAllRanges(),r&&t.Transforms.deselect(e);},n.move=function(n,r){void 0===r&&(r=!1),n&&(n<0||t.Transforms.move(e,{distance:n,unit:"character",reverse:r}));},n.moveReverse=function(e){n.move(e,!0);},n.restoreSelection=function(){var e=Ds.get(n);null!=e&&(n.focus(),t.Transforms.select(n,e));},n.getSelectionPosition=function(){return Zf(n)},n.getNodePosition=function(e){return ed(n,e)},n.isSelectedAll=function(){var e=n.selection;if(null==e)return !1;var r=ia(t.Range.edges(e),2),o=r[0],i=r[1],a=ia(t.Editor.edges(n,[]),2),s=a[0],l=a[1];return !(!t.Point.equals(o,s)||!t.Point.equals(i,l))},n.selectAll=function(){var e=t.Editor.start(n,[]),r=t.Editor.end(n,[]);t.Transforms.select(n,{anchor:e,focus:r});},n}(Tf(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in pc)e.push(t);return e},t.getConfig=function(){var e=ws.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 n=e;return n.id="wangEditor-"+fc++,n.isDestroyed=!1,n.isFullScreen=!1,n.focus=function(e){if(cc.toDOMNode(n,n).focus({preventScroll:!0}),Ps.set(n,!0),e){var r=t.Editor.end(n,[]);t.Transforms.select(n,r);}else {var o=Ds.get(n);o?t.Transforms.select(n,o):t.Transforms.select(n,t.Editor.start(n,[]));}},n.isFocused=function(){return !!Ps.get(n)},n.blur=function(){cc.toDOMNode(n,n).blur(),t.Transforms.deselect(n),Ps.set(n,!1);},n.updateView=function(){cc.getTextarea(n).changeViewState();var e=cc.getToolbar(n);e&&e.changeToolbarState();var t=cc.getHoverbar(n);t&&t.changeHoverbarState();},n.destroy=function(){if(!n.isDestroyed){var e=cc.getTextarea(n);e.destroy(),fs.delete(n),ds.delete(e);var t=cc.getToolbar(n);t&&(t.destroy(),hs.delete(n),ps.delete(t));var r=cc.getHoverbar(n);r&&(r.destroy(),vs.delete(n),gs.delete(r)),n.isDestroyed=!0,n.emit("destroyed");}},n.scrollToElem=function(e){if(!n.getConfig().scroll){var t="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return t+="\nYou has disabled editor scroll, please do this yourself",void console.warn(t)}var r=y.default("#"+e);if(0!==r.length){var o=r[0];if(!cc.hasDOMNode(n,o))return t="Element (found by id is '"+e+"') is not in editor DOM",t+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(t,o);var i=cc.getTextarea(n),a=i.$textAreaContainer,s=i.$scroll,l=r.offset().top,u=a.offset().top;s[0].scrollBy({top:l-u,behavior:"smooth"});}},n.showProgressBar=function(e){e<1||cc.getTextarea(n).changeProgress(e);},n.hidePanelOrModal=function(){var e=ms.get(n);null!=e&&e.forEach((function(e){return e.hide()}));},n.enable=function(){n.getConfig().readOnly=!1,n.updateView();},n.disable=function(){n.getConfig().readOnly=!0,n.updateView();},n.isDisabled=function(){return n.getConfig().readOnly},n.toDOMNode=function(e){return cc.toDOMNode(n,e)},n.fullScreen=function(){if(!n.isFullScreen){var e=null,t=cc.getToolbar(n);t&&(e=t.$box);var r=cc.getTextarea(n).$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()),n.isFullScreen=!0,n.emit("fullScreen");}},n.unFullScreen=function(){if(n.isFullScreen){var e=cc.getTextarea(n).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),n.isFullScreen=!1,n.emit("unFullScreen");}),200);}},n.getEditableContainer=function(){return cc.getTextarea(n).$textAreaContainer[0]},n}(function(e){var n=e;return n.setFragmentData=function(e){var r=n.selection;if(r){var o=ia(t.Range.edges(r),2),i=o[0],a=o[1],s=t.Editor.void(n,{at:i.path}),l=t.Editor.void(n,{at:a.path});if(!t.Range.isCollapsed(r)||s){var u=cc.toDOMRange(n,r),c=u.cloneContents(),f=c.childNodes[0];if(c.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(f=e);})),l){var d=ia(l,1)[0],p=u.cloneRange(),h=cc.toDOMNode(n,d);p.setEndAfter(h),c=p.cloneContents();}if(s&&(f=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":"";})),Ku(f)){var g=f.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(f),c.appendChild(g),f=g;}var v=n.getFragment(),y=JSON.stringify(v),m=window.btoa(encodeURIComponent(y));f.setAttribute("data-slate-fragment",m),e.setData("application/x-slate-fragment",m);var b=c.ownerDocument.createElement("div");return b.appendChild(c),b.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(b),e.setData("text/html",b.innerHTML),e.setData("text/plain",Zu(b)),c.ownerDocument.body.removeChild(b),e}}},n.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),s=JSON.parse(a);n.insertFragment(s);}else {var l=e.getData("text/plain"),u=e.getData("text/html");if(u)n.dangerouslyInsertHtml(u);else {var c=cc.getLeftLengthOfMaxLength(n);if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=oa(f),h=p.next();!h.done;h=p.next()){var g=h.value;d&&c>0&&t.Transforms.splitNodes(n,{always:!0}),n.insertText(g),d=!0;}}catch(e){r={error:e};}finally{try{h&&!h.done&&(o=p.return)&&o.call(p);}finally{if(r)throw r.error}}}}}},n}(t.createEditor()))))))));if(o&&function(e,t){return bf(e,"data-w-e-textarea",t)}(f,o))throw new Error("Repeated create editor by selector '"+o+"'");var d=function(e){void 0===e&&(e={});var t=E.default(dc),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return m.default(t,(function(e,t){n[t]=ra(ra({},e),o[t]||{});})),delete e.MENU_CONF,ra({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)}(a);ws.set(f,d);var p=d.hoverbarKeys,h=void 0===p?{}:p;if(c.forEach((function(e){f=e(f);})),null!=l&&(f.children=wf(f,l)),s&&s.length&&(f.children=s),0===f.children.length&&(f.children=[{type:"paragraph",children:[{text:""}]}]),cc.normalizeContent(f),o){var g=new qd(o);fs.set(f,g),ds.set(g,f),g.changeViewState(),Cu((function(){var e=g.$scroll;if(null!=e&&e.height()<300){console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e);}}));var v=void 0;Object.keys(h).length>0&&(v=new ph,gs.set(v,f),vs.set(f,v)),f.on("change",(function(){f.hidePanelOrModal();})),f.on("scroll",(function(){f.hidePanelOrModal();}));}else f.children.forEach((function(e,t){return hh(e,t,f,f)}));var b=d.onCreated,w=d.onDestroyed;return b&&f.on("created",(function(){return b(f)})),w&&f.on("destroyed",(function(){return w(f)})),Cu((function(){return f.emit("created")})),f},e.coreCreateToolbar=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 bf(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=ra({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new Oh(n,i);return ps.set(a,e),hs.set(e,a),a},e.createUploader=function(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,s=e.maxNumberOfFiles,l=void 0===s?100:s,u=e.meta,c=void 0===u?{}:u,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,b=void 0===y?1e4:y,w=e.onBeforeUpload,x=void 0===w?function(e){return e}:w,E=e.onSuccess,k=void 0===E?function(e,t){}:E,C=e.onError,T=void 0===C?function(e,t,n){console.error(e.name+" upload error",t,n);}:C,N=e.onProgress,M=void 0===N?function(e){}:N;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var L=n;d&&(L=function(e,t){var n=ia(e.split("#"),2),r=n[0],o=n[1],i=[];m.default(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}(L,c));var R=new S.default({onBeforeUpload:x,restrictions:{maxFileSize:a,maxNumberOfFiles:l},meta:c}).use(O.default,{endpoint:L,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:b});return R.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{k(e,r);}catch(e){console.error("wangEditor upload file - onSuccess error",e);}R.removeFile(e.id);})),R.on("progress",(function(e){e<1||M(e);})),R.on("upload-error",(function(e,t,n){try{T(e,t,n);}catch(e){console.error("wangEditor upload file - onError error",e);}R.removeFile(e.id);})),R.on("restriction-failed",(function(e,t){try{T(e,t);}catch(e){console.error("wangEditor upload file - onError error",e);}R.removeFile(e.id);})),R},e.genModalButtonElems=function(e,t){var n=y.default('<div class="button-container"></div>'),r=y.default('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]},e.genModalInputElems=function(e,t,n){var r=y.default('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=y.default('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]},e.genModalTextareaElems=function(e,t,n){var r=y.default('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=y.default('<textarea type="text" id="'+t+'" placeholder="'+(n||"")+'"></textarea>');return r.append(o),[r[0],o[0]]},e.getDefaultView=Wu,e.getEditableChild=Qu,e.getEditableChildAndIndex=Xu,e.getElementById=Yu,e.getFirstVoidChild=ec,e.getPlainText=Zu,e.getTagName=nc,e.hasShadowRoot=Ju,e.i18nAddResources=function(e,t){lh.addResourceBundle(e,uh,t,!0,!0);},e.i18nChangeLanguage=function(e){lh.changeLanguage(e);},e.i18nGetResources=function(e){return lh.getResourceBundle(e,uh)},e.i18nListenLanguage=ch,e.isDOMComment=Hu,e.isDOMElement=Vu,e.isDOMNode=zu,e.isDOMSelection=Uu,e.isDOMText=Ku,e.isDataTransfer=Ru,e.isDocument=Mu,e.isHTMLElememt=Du,e.isPlainTextOnlyPaste=qu,e.isShadowRoot=Lu,e.normalizeDOMPoint=Gu,e.registerElemToHtmlConf=function(e){var t=e.type,n=e.elemToHtml;kc[t||""]=n;},e.registerMenu=function(e,t){var n=e.key,r=e.factory,o=e.config,i=ra(ra({},o),t||{});if(null!=pc[n])throw new Error("Duplicated key '"+n+"' in menu items");pc[n]=r,function(e,t){null!=t&&(dc[e]=t);}(n,i);},e.registerParseElemHtmlConf=function(e){var t=e.selector,n=e.parseElemHtml;Ac[t]=n;},e.registerParseStyleHtmlHandler=function(e){jc.push(e);},e.registerPreParseHtmlConf=function(e){Dc.push(e);},e.registerRenderElemConf=function(e){var t=e.type,n=e.renderElem;md[t||""]=n;},e.registerStyleHandler=function(e){yd.push(e);},e.registerStyleToHtmlHandler=function(e){Oc.push(e);},e.t=fh,e.walkTextNodes=tc,Object.defineProperty(e,"__esModule",{value:!0});}));
21640
+ function Un(e){return "[object Object]"===Object.prototype.toString.call(e)}Vn(xn);var Kn=function(e){var t,n;return !1!==Un(e)&&(void 0===(t=e.constructor)||!1!==Un(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))},qn=Object.defineProperty({isPlainObject:Kn},"__esModule",{value:!0}),Gn=function(e){return qn.isPlainObject(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||g.default.Operation.isOperationList(e.redos[0].operations))&&(0===e.undos.length||g.default.Operation.isOperationList(e.undos[0].operations))},Jn=new WeakMap,Yn=new WeakMap,Xn={isHistoryEditor:function(e){return Gn(e.history)&&g.default.Editor.isEditor(e)},isMerging:function(e){return Yn.get(e)},isSaving:function(e){return Jn.get(e)},redo:function(e){e.redo();},undo:function(e){e.undo();},withMerging:function(e,t){var n=Xn.isMerging(e);Yn.set(e,!0),t(),Yn.set(e,n);},withoutMerging:function(e,t){var n=Xn.isMerging(e);Yn.set(e,!1),t(),Yn.set(e,n);},withoutSaving:function(e,t){var n=Xn.isSaving(e);Jn.set(e,!1),t(),Jn.set(e,n);}};function Qn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Zn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zn(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return {s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return {s:function(){n=n.call(e);},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e;},f:function(){try{a||null==n.return||n.return();}finally{if(s)throw i}}}}function Zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var er=function(e,t){return !(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!g.default.Path.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!g.default.Path.equals(e.path,t.path))},tr=function(e,t){return "set_selection"!==e.type},nr=function(e){var t=e,n=t.apply;return t.history={undos:[],redos:[]},t.redo=function(){var e=t.history,n=e.redos;if(n.length>0){var r=n[n.length-1];r.selectionBefore&&g.default.Transforms.setSelection(t,r.selectionBefore),Xn.withoutSaving(t,(function(){g.default.Editor.withoutNormalizing(t,(function(){var e,n=Qn(r.operations);try{for(n.s();!(e=n.n()).done;){var o=e.value;t.apply(o);}}catch(e){n.e(e);}finally{n.f();}}));})),e.redos.pop(),t.writeHistory("undos",r);}},t.undo=function(){var e=t.history,n=e.undos;if(n.length>0){var r=n[n.length-1];Xn.withoutSaving(t,(function(){g.default.Editor.withoutNormalizing(t,(function(){var e,n=Qn(r.operations.map(g.default.Operation.inverse).reverse());try{for(n.s();!(e=n.n()).done;){var o=e.value;t.apply(o);}}catch(e){n.e(e);}finally{n.f();}r.selectionBefore&&g.default.Transforms.setSelection(t,r.selectionBefore);}));})),t.writeHistory("redos",r),e.undos.pop();}},t.apply=function(e){var r=t.operations,o=t.history,i=o.undos,a=i[i.length-1],s=a&&a.operations[a.operations.length-1],l=Xn.isSaving(t),u=Xn.isMerging(t);if(null==l&&(l=tr(e)),l){if(null==u&&(u=null!=a&&(0!==r.length||er(e,s))),a&&u)a.operations.push(e);else {var c={operations:[e],selectionBefore:t.selection};t.writeHistory("undos",c);}for(;i.length>100;)i.shift();o.redos=[];}n(e);},t.writeHistory=function(e,n){t.history[e].push(n);},t},rr=String,or=function(e){if("Symbol"===vn(e))throw new TypeError("Cannot convert a Symbol value to a string");return rr(e)},ir=function(){var e=et(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},ar=RegExp.prototype,sr=function(e){var t=e.flags;return void 0!==t||"flags"in ar||Pe(e,"flags")||!ie(ar,e)?t:A(ir,e)},lr=dt.PROPER,ur="toString",cr=RegExp.prototype,fr=cr[ur],dr=R((function(){return "/a/b"!==fr.call({source:"a",flags:"b"})})),pr=lr&&fr.name!==ur;(dr||pr)&&Lt(cr,ur,(function(){var e=et(this);return "/"+or(e.source)+"/"+or(sr(e))}),{unsafe:!0});var hr=function(e,t,n){var r,o;et(e);try{if(!(r=Se(e,"return"))){if("throw"===t)throw n;return n}r=A(r,e);}catch(e){o=!0,r=e;}if("throw"===t)throw n;if(o)throw r;return et(r),n},gr=function(e,t,n,r){try{return r?t(et(n)[0],n[1]):t(n)}catch(t){hr(e,"throw",t);}},vr={},yr=$e("iterator"),mr=Array.prototype,br=function(e){return void 0!==e&&(vr.Array===e||mr[yr]===e)},wr=function(e,t,n){P?st.f(e,t,$(0,n)):e[t]=n;},xr=$e("iterator"),Er=function(e){if(!X(e))return Se(e,xr)||Se(e,"@@iterator")||vr[vn(e)]},Sr=TypeError,Or=function(e,t){var n=arguments.length<2?Er(e):t;if(Ee(n))return et(A(n,e));throw new Sr(we(e)+" is not iterable")},kr=Array,Cr=$e("iterator"),Tr=!1;try{var Nr=0,Mr={next:function(){return {done:!!Nr++}},return:function(){Tr=!0;}};Mr[Cr]=function(){return this},Array.from(Mr,(function(){throw 2}));}catch(e){}var Lr=function(e,t){try{if(!t&&!Tr)return !1}catch(e){return !1}var n=!1;try{var r={};r[Cr]=function(){return {next:function(){return {done:n=!0}}}},e(r);}catch(e){}return n},Rr=!Lr((function(e){Array.from(e);}));ln({target:"Array",stat:!0,forced:Rr},{from:function(e){var t=Le(e),n=Dn(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=On(o,r>2?arguments[2]:void 0));var a,s,l,u,c,f,d=Er(t),p=0;if(!d||this===kr&&br(d))for(a=$t(t),s=n?new this(a):kr(a);a>p;p++)f=i?o(t[p],p):t[p],wr(s,p,f);else for(s=n?new this:[],c=(u=Or(t,d)).next;!(l=A(c,u)).done;p++)f=i?gr(u,o,[l.value,p],!0):l.value,wr(s,p,f);return s.length=p,s}});var Pr,Dr=P&&!Xe?Object.defineProperties:function(e,t){et(e);for(var n,r=ee(t),o=un(t),i=o.length,a=0;i>a;)st.f(e,n=o[a++],r[n]);return e},jr={f:Dr},Ar=oe("document","documentElement"),Ir="prototype",_r="script",Fr=xt("IE_PROTO"),Br=function(){},$r=function(e){return "<"+_r+">"+e+"</"+_r+">"},Wr=function(e){e.write($r("")),e.close();var t=e.parentWindow.Object;return e=null,t},Hr=function(){try{Pr=new ActiveXObject("htmlfile");}catch(e){}var e,t,n;Hr="undefined"!=typeof document?document.domain&&Pr?Wr(Pr):(t=qe("iframe"),n="java"+_r+":",t.style.display="none",Ar.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write($r("document.F=Object")),e.close(),e.F):Wr(Pr);for(var r=Kt.length;r--;)delete Hr[Ir][Kt[r]];return Hr()};Et[Fr]=!0;var Vr=Object.create||function(e,t){var n;return null!==e?(Br[Ir]=et(e),n=new Br,Br[Ir]=null,n[Fr]=e):n=Hr(),void 0===t?n:jr.f(n,t)},zr=st.f,Ur=$e("unscopables"),Kr=Array.prototype;void 0===Kr[Ur]&&zr(Kr,Ur,{configurable:!0,value:Vr(null)});var qr=function(e){Kr[Ur][e]=!0;},Gr=Ht.includes,Jr=R((function(){return !Array(1).includes()}));ln({target:"Array",proto:!0,forced:Jr},{includes:function(e){return Gr(this,e,arguments.length>1?arguments[1]:void 0)}}),qr("includes");var Yr=z([].join),Xr=Y!==Object||!$n("join",",");ln({target:"Array",proto:!0,forced:Xr},{join:function(e){return Yr(ee(this),void 0===e?",":e)}});var Qr=$e("species"),Zr=function(e){return pe>=51||!R((function(){var t=[];return (t.constructor={})[Qr]=function(){return {foo:1}},1!==t[e](Boolean).foo}))},eo=Bn.map,to=Zr("map");ln({target:"Array",proto:!0,forced:!to},{map:function(e){return eo(this,e,arguments.length>1?arguments[1]:void 0)}});var no=!R((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ro=xt("IE_PROTO"),oo=Object,io=oo.prototype,ao=no?oo.getPrototypeOf:function(e){var t=Le(e);if(Pe(t,ro))return t[ro];var n=t.constructor;return ne(n)&&t instanceof n?n.prototype:t instanceof oo?io:null};ln({target:"Reflect",stat:!0},{get:function e(t,n){var r,o,i=arguments.length<3?t:arguments[2];return et(t)===i?t[n]:(r=Ye.f(t,n))?function(e){return void 0!==e&&(Pe(e,"value")||Pe(e,"writable"))}(r)?r.value:void 0===r.get?void 0:A(r.get,i):re(o=ao(t))?e(o,n,i):void 0}});var so=L.RegExp,lo=R((function(){var e=so("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),uo=lo||R((function(){return !so("a","y").sticky})),co={BROKEN_CARET:lo||R((function(){var e=so("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:uo,UNSUPPORTED_Y:lo},fo=L.RegExp,po=R((function(){var e=fo(".","s");return !(e.dotAll&&e.test("\n")&&"s"===e.flags)})),ho=L.RegExp,go=R((function(){var e=ho("(?<a>b)","g");return "b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),vo=Nt.get,yo=Ne("native-string-replace",String.prototype.replace),mo=RegExp.prototype.exec,bo=mo,wo=z("".charAt),xo=z("".indexOf),Eo=z("".replace),So=z("".slice),Oo=function(){var e=/a/,t=/b*/g;return A(mo,e,"a"),A(mo,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),ko=co.BROKEN_CARET,Co=void 0!==/()??/.exec("")[1];(Oo||Co||ko||po||go)&&(bo=function(e){var t,n,r,o,i,a,s,l=this,u=vo(l),c=or(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=A(bo,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,p=ko&&l.sticky,h=A(ir,l),g=l.source,v=0,y=c;if(p&&(h=Eo(h,"y",""),-1===xo(h,"g")&&(h+="g"),y=So(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==wo(c,l.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Co&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Oo&&(r=l.lastIndex),o=A(mo,p?n:l,y),p?o?(o.input=So(o.input,v),o[0]=So(o[0],v),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:Oo&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),Co&&o&&o.length>1&&A(yo,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=Vr(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var To=bo;ln({target:"RegExp",proto:!0,forced:/./.exec!==To},{exec:To});var No,Mo=$e("match"),Lo=function(e){var t;return re(e)&&(void 0!==(t=e[Mo])?!!t:"RegExp"===q(e))},Ro=TypeError,Po=function(e){if(Lo(e))throw new Ro("The method doesn't accept regular expressions");return e},Do=$e("match"),jo=function(e){var t=/./;try{"/./"[e](t);}catch(n){try{return t[Do]=!1,"/./"[e](t)}catch(e){}}return !1},Ao=Ye.f,Io=En("".slice),_o=Math.min,Fo=jo("endsWith"),Bo=!(Fo||(No=Ao(String.prototype,"endsWith"),!No||No.writable));ln({target:"String",proto:!0,forced:!Bo&&!Fo},{endsWith:function(e){var t=or(Z(this));Po(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:_o(Bt(n),r),i=or(e);return Io(t,o-i.length,o)===i}});var $o=z("".indexOf);ln({target:"String",proto:!0,forced:!jo("includes")},{includes:function(e){return !!~$o(or(Z(this)),or(Po(e)),arguments.length>1?arguments[1]:void 0)}});var Wo,Ho,Vo,zo=z("".charAt),Uo=z("".charCodeAt),Ko=z("".slice),qo=function(e){return function(t,n){var r,o,i=or(Z(t)),a=jt(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Uo(i,a))<55296||r>56319||a+1===s||(o=Uo(i,a+1))<56320||o>57343?e?zo(i,a):r:e?Ko(i,a,a+2):o-56320+(r-55296<<10)+65536}},Go={codeAt:qo(!1),charAt:qo(!0)},Jo=$e("iterator"),Yo=!1;[].keys&&("next"in(Vo=[].keys())?(Ho=ao(ao(Vo)))!==Object.prototype&&(Wo=Ho):Yo=!0);var Xo=!re(Wo)||R((function(){var e={};return Wo[Jo].call(e)!==e}));Xo&&(Wo={}),ne(Wo[Jo])||Lt(Wo,Jo,(function(){return this}));var Qo={IteratorPrototype:Wo,BUGGY_SAFARI_ITERATORS:Yo},Zo=st.f,ei=$e("toStringTag"),ti=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Pe(e,ei)&&Zo(e,ei,{configurable:!0,value:t});},ni=Qo.IteratorPrototype,ri=function(){return this},oi=String,ii=TypeError,ai=function(e){if(function(e){return re(e)||null===e}(e))return e;throw new ii("Can't set "+oi(e)+" as a prototype")},si=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=function(e,t,n){try{return z(Ee(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array;}catch(e){}return function(n,r){return Z(n),ai(r),re(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),li=dt.PROPER,ui=dt.CONFIGURABLE,ci=Qo.IteratorPrototype,fi=Qo.BUGGY_SAFARI_ITERATORS,di=$e("iterator"),pi="keys",hi="values",gi="entries",vi=function(){return this},yi=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Vr(ni,{next:$(+!r,n)}),ti(e,o,!1),vr[o]=ri;}(n,t,r);var s,l,u,c=function(e){if(e===o&&g)return g;if(!fi&&e&&e in p)return p[e];switch(e){case pi:case hi:case gi:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[di]||p["@@iterator"]||o&&p[o],g=!fi&&h||c(o),v="Array"===t&&p.entries||h;if(v&&(s=ao(v.call(new e)))!==Object.prototype&&s.next&&(ao(s)!==ci&&(si?si(s,ci):ne(s[di])||Lt(s,di,vi)),ti(s,f,!0)),li&&o===hi&&h&&h.name!==hi&&(ui?lt(p,"name",hi):(d=!0,g=function(){return A(h,this)})),o)if(l={values:c(hi),keys:i?g:c(pi),entries:c(gi)},a)for(u in l)(fi||d||!(u in p))&&Lt(p,u,l[u]);else ln({target:t,proto:!0,forced:fi||d},l);return p[di]!==g&&Lt(p,di,g,{name:o}),vr[t]=g,l},mi=function(e,t){return {value:e,done:t}},bi=Go.charAt,wi="String Iterator",xi=Nt.set,Ei=Nt.getterFor(wi);yi(String,"String",(function(e){xi(this,{type:wi,string:or(e),index:0});}),(function(){var e,t=Ei(this),n=t.string,r=t.index;return r>=n.length?mi(void 0,!0):(e=bi(n,r),t.index+=e.length,mi(e,!1))}));var Si=Function.prototype,Oi=Si.apply,ki=Si.call,Ci="object"==typeof Reflect&&Reflect.apply||(D?ki.bind(Oi):function(){return ki.apply(Oi,arguments)}),Ti=$e("species"),Ni=RegExp.prototype,Mi=function(e,t,n,r){var o=$e(e),i=!R((function(){var t={};return t[o]=function(){return 7},7!==""[e](t)})),a=i&&!R((function(){var t=!1,n=/a/;return "split"===e&&((n={}).constructor={},n.constructor[Ti]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var s=/./[o],l=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===To||a===Ni.exec?i&&!o?{done:!0,value:A(s,t,n,r)}:{done:!0,value:A(e,n,t,r)}:{done:!1}}));Lt(String.prototype,e,l[0]),Lt(Ni,o,l[1]);}r&&lt(Ni[o],"sham",!0);},Li=Go.charAt,Ri=function(e,t,n){return t+(n?Li(e,t).length:1)},Pi=Math.floor,Di=z("".charAt),ji=z("".replace),Ai=z("".slice),Ii=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_i=/\$([$&'`]|\d{1,2})/g,Fi=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=_i;return void 0!==o&&(o=Le(o),l=Ii),ji(i,l,(function(i,l){var u;switch(Di(l,0)){case"$":return "$";case"&":return e;case"`":return Ai(t,0,n);case"'":return Ai(t,a);case"<":u=o[Ai(l,1,-1)];break;default:var c=+l;if(0===c)return i;if(c>s){var f=Pi(c/10);return 0===f?i:f<=s?void 0===r[f-1]?Di(l,1):r[f-1]+Di(l,1):i}u=r[c-1];}return void 0===u?"":u}))},Bi=TypeError,$i=function(e,t){var n=e.exec;if(ne(n)){var r=A(n,e,t);return null!==r&&et(r),r}if("RegExp"===q(e))return A(To,e,t);throw new Bi("RegExp#exec called on incompatible receiver")},Wi=$e("replace"),Hi=Math.max,Vi=Math.min,zi=z([].concat),Ui=z([].push),Ki=z("".indexOf),qi=z("".slice),Gi="$0"==="a".replace(/./,"$0"),Ji=!!/./[Wi]&&""===/./[Wi]("a","$0");Mi("replace",(function(e,t,n){var r=Ji?"$":"$0";return [function(e,n){var r=Z(this),o=X(e)?void 0:Se(e,Wi);return o?A(o,e,r,n):A(t,or(r),e,n)},function(e,o){var i=et(this),a=or(e);if("string"==typeof o&&-1===Ki(o,r)&&-1===Ki(o,"$<")){var s=n(t,i,a,o);if(s.done)return s.value}var l=ne(o);l||(o=or(o));var u,c=i.global;c&&(u=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=$i(i,a))&&(Ui(d,f),c);){""===or(f[0])&&(i.lastIndex=Ri(a,Bt(i.lastIndex),u));}for(var p,h="",g=0,v=0;v<d.length;v++){for(var y,m=or((f=d[v])[0]),b=Hi(Vi(jt(f.index),a.length),0),w=[],x=1;x<f.length;x++)Ui(w,void 0===(p=f[x])?p:String(p));var E=f.groups;if(l){var S=zi([m],w,b,a);void 0!==E&&Ui(S,E),y=or(Ci(o,void 0,S));}else y=Fi(m,a,b,w,E,o);b>=g&&(h+=qi(a,g,b)+y,g=b+m.length);}return h+qi(a,g)}]}),!!R((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Gi||Ji);var Yi,Xi=/"/g,Qi=z("".replace);ln({target:"String",proto:!0,forced:(Yi="anchor",R((function(){var e=""[Yi]('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return t="a",n="name",r=e,o=or(Z(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+Qi(or(r),Xi,"&quot;")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i;}});var Zi=function(e,t){return Zi=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]);},Zi(e,t)};function ea(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;}Zi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n);}var ta=function(){return ta=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},ta.apply(this,arguments)};function na(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 ra(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 oa(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var ia=Bn.find,aa="find",sa=!0;aa in[]&&Array(1)[aa]((function(){sa=!1;})),ln({target:"Array",proto:!0,forced:sa},{find:function(e){return ia(this,e,arguments.length>1?arguments[1]:void 0)}}),qr(aa),ln({global:!0,forced:L.globalThis!==L},{globalThis:L});const la=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];var ua=TypeError,ca=function(e){if(e>9007199254740991)throw ua("Maximum allowed index exceeded");return e},fa=$e("isConcatSpreadable"),da=pe>=51||!R((function(){var e=[];return e[fa]=!1,e.concat()[0]!==e})),pa=function(e){if(!re(e))return !1;var t=e[fa];return void 0!==t?!!t:kn(e)},ha=!da||!Zr("concat");ln({target:"Array",proto:!0,arity:1,forced:ha},{concat:function(e){var t,n,r,o,i,a=Le(this),s=In(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(pa(i=-1===t?a:arguments[t]))for(o=$t(i),ca(l+o),n=0;n<o;n++,l++)n in i&&wr(s,l,i[n]);else ca(l+1),wr(s,l++,i);return s.length=l,s}});var ga,va,ya,ma,ba=function(e){return le.slice(0,e.length)===e},wa=ba("Bun/")?"BUN":ba("Cloudflare-Workers")?"CLOUDFLARE":ba("Deno/")?"DENO":ba("Node.js/")?"NODE":L.Bun&&"string"==typeof Bun.version?"BUN":L.Deno&&"object"==typeof Deno.version?"DENO":"process"===q(L.process)?"NODE":L.window&&L.document?"BROWSER":"REST",xa="NODE"===wa,Ea=function(e,t,n){return n.get&&Mt(n.get,t,{getter:!0}),n.set&&Mt(n.set,t,{setter:!0}),st.f(e,t,n)},Sa=$e("species"),Oa=function(e){var t=oe(e);P&&t&&!t[Sa]&&Ea(t,Sa,{configurable:!0,get:function(){return this}});},ka=TypeError,Ca=function(e,t){if(ie(t,e))return e;throw new ka("Incorrect invocation")},Ta=TypeError,Na=$e("species"),Ma=function(e,t){var n,r=et(e).constructor;return void 0===r||X(n=et(r)[Na])?t:function(e){if(Dn(e))return e;throw new Ta(we(e)+" is not a constructor")}(n)},La=z([].slice),Ra=TypeError,Pa=/(?:ipad|iphone|ipod).*applewebkit/i.test(le),Da=L.setImmediate,ja=L.clearImmediate,Aa=L.process,Ia=L.Dispatch,_a=L.Function,Fa=L.MessageChannel,Ba=L.String,$a=0,Wa={},Ha="onreadystatechange";R((function(){ga=L.location;}));var Va=function(e){if(Pe(Wa,e)){var t=Wa[e];delete Wa[e],t();}},za=function(e){return function(){Va(e);}},Ua=function(e){Va(e.data);},Ka=function(e){L.postMessage(Ba(e),ga.protocol+"//"+ga.host);};Da&&ja||(Da=function(e){!function(e,t){if(e<t)throw new Ra("Not enough arguments")}(arguments.length,1);var t=ne(e)?e:_a(e),n=La(arguments,1);return Wa[++$a]=function(){Ci(t,void 0,n);},va($a),$a},ja=function(e){delete Wa[e];},xa?va=function(e){Aa.nextTick(za(e));}:Ia&&Ia.now?va=function(e){Ia.now(za(e));}:Fa&&!Pa?(ma=(ya=new Fa).port2,ya.port1.onmessage=Ua,va=On(ma.postMessage,ma)):L.addEventListener&&ne(L.postMessage)&&!L.importScripts&&ga&&"file:"!==ga.protocol&&!R(Ka)?(va=Ka,L.addEventListener("message",Ua,!1)):va=Ha in qe("script")?function(e){Ar.appendChild(qe("script"))[Ha]=function(){Ar.removeChild(this),Va(e);};}:function(e){setTimeout(za(e),0);});var qa={set:Da,clear:ja},Ga=Object.getOwnPropertyDescriptor,Ja=function(){this.head=null,this.tail=null;};Ja.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t;},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Ya,Xa,Qa,Za,es,ts=Ja,ns=/ipad|iphone|ipod/i.test(le)&&"undefined"!=typeof Pebble,rs=/web0s(?!.*chrome)/i.test(le),os=qa.set,is=L.MutationObserver||L.WebKitMutationObserver,as=L.document,ss=L.process,ls=L.Promise,us=function(e){if(!P)return L[e];var t=Ga(L,e);return t&&t.value}("queueMicrotask");if(!us){var cs=new ts,fs=function(){var e,t;for(xa&&(e=ss.domain)&&e.exit();t=cs.get();)try{t();}catch(e){throw cs.head&&Ya(),e}e&&e.enter();};Pa||xa||rs||!is||!as?!ns&&ls&&ls.resolve?((Za=ls.resolve(void 0)).constructor=ls,es=On(Za.then,Za),Ya=function(){es(fs);}):xa?Ya=function(){ss.nextTick(fs);}:(os=On(os,L),Ya=function(){os(fs);}):(Xa=!0,Qa=as.createTextNode(""),new is(fs).observe(Qa,{characterData:!0}),Ya=function(){Qa.data=Xa=!Xa;}),us=function(e){cs.head||Ya(),cs.add(e);};}var ds=us,ps=function(e){try{return {error:!1,value:e()}}catch(e){return {error:!0,value:e}}},hs=L.Promise;hs&&hs.prototype;var gs,vs,ys,ms=$e("species"),bs=!1,ws=ne(L.PromiseRejectionEvent),xs=an("Promise",(function(){var e=yt(hs),t=e!==String(hs);if(!t&&66===pe)return !0;if(!pe||pe<51||!/native code/.test(e)){var n=new hs((function(e){e(1);})),r=function(e){e((function(){}),(function(){}));};if((n.constructor={})[ms]=r,!(bs=n.then((function(){}))instanceof r))return !0}return !(t||"BROWSER"!==wa&&"DENO"!==wa||ws)})),Es={CONSTRUCTOR:xs,REJECTION_EVENT:ws,SUBCLASSING:bs},Ss=TypeError,Os=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new Ss("Bad Promise constructor");t=e,n=r;})),this.resolve=Ee(t),this.reject=Ee(n);},ks={f:function(e){return new Os(e)}},Cs=qa.set,Ts="Promise",Ns=Es.CONSTRUCTOR,Ms=Es.REJECTION_EVENT,Ls=Es.SUBCLASSING,Rs=Nt.getterFor(Ts),Ps=Nt.set,Ds=hs&&hs.prototype,js=hs,As=Ds,Is=L.TypeError,_s=L.document,Fs=L.process,Bs=ks.f,$s=Bs,Ws=!!(_s&&_s.createEvent&&L.dispatchEvent),Hs="unhandledrejection",Vs=function(e){var t;return !(!re(e)||!ne(t=e.then))&&t},zs=function(e,t){var n,r,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&Js(t),t.rejection=1),!0===s?n=i:(c&&c.enter(),n=s(i),c&&(c.exit(),o=!0)),n===e.promise?u(new Is("Promise-chain cycle")):(r=Vs(n))?A(r,n,l,u):l(n)):u(i);}catch(e){c&&!o&&c.exit(),u(e);}},Us=function(e,t){e.notified||(e.notified=!0,ds((function(){for(var n,r=e.reactions;n=r.get();)zs(n,e);e.notified=!1,t&&!e.rejection&&qs(e);})));},Ks=function(e,t,n){var r,o;Ws?((r=_s.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),L.dispatchEvent(r)):r={promise:t,reason:n},!Ms&&(o=L["on"+e])?o(r):e===Hs&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t);}catch(e){}}("Unhandled promise rejection",n);},qs=function(e){A(Cs,L,(function(){var t,n=e.facade,r=e.value;if(Gs(e)&&(t=ps((function(){xa?Fs.emit("unhandledRejection",r,n):Ks(Hs,n,r);})),e.rejection=xa||Gs(e)?2:1,t.error))throw t.value}));},Gs=function(e){return 1!==e.rejection&&!e.parent},Js=function(e){A(Cs,L,(function(){var t=e.facade;xa?Fs.emit("rejectionHandled",t):Ks("rejectionhandled",t,e.value);}));},Ys=function(e,t,n){return function(r){e(t,r,n);}},Xs=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Us(e,!0));},Qs=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new Is("Promise can't be resolved itself");var r=Vs(t);r?ds((function(){var n={done:!1};try{A(r,t,Ys(Qs,n,e),Ys(Xs,n,e));}catch(t){Xs(n,t,e);}})):(e.value=t,e.state=1,Us(e,!1));}catch(t){Xs({done:!1},t,e);}}};if(Ns&&(As=(js=function(e){Ca(this,As),Ee(e),A(gs,this);var t=Rs(this);try{e(Ys(Qs,t),Ys(Xs,t));}catch(e){Xs(t,e);}}).prototype,(gs=function(e){Ps(this,{type:Ts,done:!1,notified:!1,parent:!1,reactions:new ts,rejection:!1,state:0,value:null});}).prototype=Lt(As,"then",(function(e,t){var n=Rs(this),r=Bs(Ma(this,js));return n.parent=!0,r.ok=!ne(e)||e,r.fail=ne(t)&&t,r.domain=xa?Fs.domain:void 0,0===n.state?n.reactions.add(r):ds((function(){zs(r,n);})),r.promise})),vs=function(){var e=new gs,t=Rs(e);this.promise=e,this.resolve=Ys(Qs,t),this.reject=Ys(Xs,t);},ks.f=Bs=function(e){return e===js||undefined===e?new vs(e):$s(e)},ne(hs)&&Ds!==Object.prototype)){ys=Ds.then,Ls||Lt(Ds,"then",(function(e,t){var n=this;return new js((function(e,t){A(ys,n,e,t);})).then(e,t)}),{unsafe:!0});try{delete Ds.constructor;}catch(e){}si&&si(Ds,As);}ln({global:!0,constructor:!0,wrap:!0,forced:Ns},{Promise:js}),ti(js,Ts,!1),Oa(Ts);var Zs=TypeError,el=function(e,t){this.stopped=e,this.result=t;},tl=el.prototype,nl=function(e,t,n){var r,o,i,a,s,l,u,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=On(t,c),v=function(e){return r&&hr(r,"normal",e),new el(!0,e)},y=function(e){return f?(et(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(d)r=e.iterator;else if(p)r=e;else {if(!(o=Er(e)))throw new Zs(we(e)+" is not iterable");if(br(o)){for(i=0,a=$t(e);a>i;i++)if((s=y(e[i]))&&ie(tl,s))return s;return new el(!1)}r=Or(e,o);}for(l=d?e.next:r.next;!(u=A(l,r)).done;){try{s=y(u.value);}catch(e){hr(r,"throw",e);}if("object"==typeof s&&s&&ie(tl,s))return s}return new el(!1)},rl=Es.CONSTRUCTOR||!Lr((function(e){hs.all(e).then(void 0,(function(){}));}));ln({target:"Promise",stat:!0,forced:rl},{all:function(e){var t=this,n=ks.f(t),r=n.resolve,o=n.reject,i=ps((function(){var n=Ee(t.resolve),i=[],a=0,s=1;nl(e,(function(e){var l=a++,u=!1;s++,A(n,t,e).then((function(e){u||(u=!0,i[l]=e,--s||r(i));}),o);})),--s||r(i);}));return i.error&&o(i.value),n.promise}});var ol=Es.CONSTRUCTOR,il=hs&&hs.prototype;if(ln({target:"Promise",proto:!0,forced:ol,real:!0},{catch:function(e){return this.then(void 0,e)}}),ne(hs)){var al=oe("Promise").prototype.catch;il.catch!==al&&Lt(il,"catch",al,{unsafe:!0});}ln({target:"Promise",stat:!0,forced:rl},{race:function(e){var t=this,n=ks.f(t),r=n.reject,o=ps((function(){var o=Ee(t.resolve);nl(e,(function(e){A(o,t,e).then(n.resolve,r);}));}));return o.error&&r(o.value),n.promise}}),ln({target:"Promise",stat:!0,forced:Es.CONSTRUCTOR},{reject:function(e){var t=ks.f(this);return (0, t.reject)(e),t.promise}});var sl=Es.CONSTRUCTOR;function ll(e){Promise.resolve().then(e);}oe("Promise"),ln({target:"Promise",stat:!0,forced:sl},{resolve:function(e){return function(e,t){if(et(e),re(t)&&t.constructor===e)return t;var n=ks.f(e);return (0, n.resolve)(t),n.promise}(this,e)}});var ul=function(e){return Object.prototype.toString.call(e)};r.css&&(y.default.fn.css=r.css),r.append&&(y.default.fn.append=r.append),r.addClass&&(y.default.fn.addClass=r.addClass),r.removeClass&&(y.default.fn.removeClass=r.removeClass),r.hasClass&&(y.default.fn.hasClass=r.hasClass),r.on&&(y.default.fn.on=r.on),r.focus&&(y.default.fn.focus=r.focus),r.attr&&(y.default.fn.attr=r.attr),r.removeAttr&&(y.default.fn.removeAttr=r.removeAttr),r.hide&&(y.default.fn.hide=r.hide),r.show&&(y.default.fn.show=r.show),r.offset&&(y.default.fn.offset=r.offset),r.width&&(y.default.fn.width=r.width),r.height&&(y.default.fn.height=r.height),r.parent&&(y.default.fn.parent=r.parent),r.parents&&(y.default.fn.parents=r.parents),r.is&&(y.default.fn.is=r.is),r.dataset&&(y.default.fn.dataset=r.dataset),r.val&&(y.default.fn.val=r.val),r.text&&(y.default.fn.text=r.text),r.html&&(y.default.fn.html=r.html),r.children&&(y.default.fn.children=r.children),r.remove&&(y.default.fn.remove=r.remove),r.find&&(y.default.fn.find=r.find),r.each&&(y.default.fn.each=r.each),r.empty&&(y.default.fn.empty=r.empty);var cl,fl=function(e){return "[object HTMLDocument]"===ul(e)},dl=function(e){return "[object ShadowRoot]"===ul(e)},pl=function(e){return "[object DataTransfer]"===ul(e)},hl=/\[object HTML([A-Z][a-z]*)*Element\]/,gl=function(e){return hl.test(ul(e))},vl=globalThis.Node,yl=globalThis.Comment,ml=globalThis.Element,bl=globalThis.Text,wl=globalThis.Range,xl=globalThis.Selection,El=globalThis.StaticRange,Sl=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Ol=function(e){return Cl(e)&&8===e.nodeType},kl=function(e){return Cl(e)&&1===e.nodeType},Cl=function(e){return null!=e&&"number"==typeof e.nodeType},Tl=function(e){return "[object Selection]"===ul(e)},Nl=function(e){return Cl(e)&&3===e.nodeType},Ml=function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length},Ll=function(e){var t,n=ra(e,2),r=n[0],o=n[1];if(kl(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=ra(Dl(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;kl(r)&&r.childNodes.length;){var s=i?r.childNodes.length-1:0;r=jl(r,s,i?"backward":"forward");}o=i&&null!=r.textContent?r.textContent.length:0;}return [r,o]},Rl=function(){return !(!window.document.activeElement||!window.document.activeElement.shadowRoot)},Pl=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},Dl=function(e,t,n){for(var r=e.childNodes,o=r[t],i=t,a=!1,s=!1;(Ol(o)||kl(o)&&0===o.childNodes.length||kl(o)&&"false"===o.getAttribute("contenteditable"))&&(!a||!s);)i>=r.length?(a=!0,i=t-1,n="backward"):i<0?(s=!0,i=t+1,n="forward"):(o=r[i],t=i,i+="forward"===n?1:-1);return [o,t]},jl=function(e,t,n){return ra(Dl(e,t,n),1)[0]},Al=function(e){var t,n,r="";if(Nl(e)&&e.nodeValue)return e.nodeValue;if(kl(e)){try{for(var o=na(Array.from(e.childNodes)),i=o.next();!i.done;i=o.next()){var a=i.value;r+=Al(a);}}catch(e){t={error:e};}finally{try{i&&!i.done&&(n=o.return)&&n.call(o);}finally{if(t)throw t.error}}var s=getComputedStyle(e).getPropertyValue("display");"block"!==s&&"list"!==s&&"table-row"!==s&&"BR"!==e.tagName||(r+="\n");}return r};function Il(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(la.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],s=a.length;if(s)for(var l=s-1;l>=0;l--)t.push(a[l]);}}return null}function _l(e,t){if(!gl(e)||"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||_l(o,t);}}function Fl(t){if(0===t.length)return "";var n=t[0];return n.nodeType!==e.NodeType.ELEMENT_NODE?"":n.tagName.toLowerCase()}e.NodeType=void 0,(cl=e.NodeType||(e.NodeType={}))[cl.ELEMENT_NODE=1]="ELEMENT_NODE",cl[cl.TEXT_NODE=3]="TEXT_NODE",cl[cl.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",cl[cl.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",cl[cl.COMMENT_NODE=8]="COMMENT_NODE",cl[cl.DOCUMENT_NODE=9]="DOCUMENT_NODE",cl[cl.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",cl[cl.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var Bl=0,$l=function(){this.id="".concat(Bl++);};void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var Wl="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),Hl="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 Vl="undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),zl="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Ul="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Kl="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var ql=!Ul&&!zl&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,Gl=st.f,Jl="Array Iterator",Yl=Nt.set,Xl=Nt.getterFor(Jl),Ql=yi(Array,"Array",(function(e,t){Yl(this,{type:Jl,target:ee(e),index:0,kind:t});}),(function(){var e=Xl(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,mi(void 0,!0);switch(e.kind){case"keys":return mi(n,!1);case"values":return mi(t[n],!1)}return mi([n,t[n]],!1)}),"values"),Zl=vr.Arguments=vr.Array;if(qr("keys"),qr("values"),qr("entries"),P&&"values"!==Zl.name)try{Gl(Zl,"name",{value:"values"});}catch(e){}var eu=!R((function(){return Object.isExtensible(Object.preventExtensions({}))})),tu=function(e,t,n){for(var r in t)Lt(e,r,t[r],n);return e},nu=Gt.f,ru="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ou={f:function(e){return ru&&"Window"===q(e)?function(e){try{return nu(e)}catch(e){return La(ru)}}(e):nu(ee(e))}},iu=R((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8});}})),au=Object.isExtensible,su=R((function(){au(1);}))||iu?function(e){return !!re(e)&&((!iu||"ArrayBuffer"!==q(e))&&(!au||au(e)))}:au,lu=C((function(e){var t=st.f,n=!1,r=Ie("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=Gt.f,t=z([].splice),o={};o[r]=1,e(o).length&&(Gt.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},ln({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ou.f}));},fastKey:function(e,t){if(!re(e))return "symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Pe(e,r)){if(!su(e))return "F";if(!t)return "E";i(e);}return e[r].objectID},getWeakData:function(e,t){if(!Pe(e,r)){if(!su(e))return !0;if(!t)return !1;i(e);}return e[r].weakData},onFreeze:function(e){return eu&&n&&su(e)&&!Pe(e,r)&&i(e),e}};Et[r]=!0;})),uu=function(e,t,n){var r,o;return si&&ne(r=t.constructor)&&r!==n&&re(o=r.prototype)&&o!==n.prototype&&si(e,o),e},cu=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=L[e],s=a&&a.prototype,l=a,u={},c=function(e){var t=z(s[e]);Lt(s,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return !(o&&!re(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return o&&!re(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return !(o&&!re(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this});};if(an(e,!ne(a)||!(o||s.forEach&&!R((function(){(new a).entries().next();})))))l=n.getConstructor(t,e,r,i),lu.enable();else if(an(e,!0)){var f=new l,d=f[i](o?{}:-0,1)!==f,p=R((function(){f.has(1);})),h=Lr((function(e){new a(e);})),g=!o&&R((function(){for(var e=new a,t=5;t--;)e[i](t,t);return !e.has(-0)}));h||((l=t((function(e,t){Ca(e,s);var n=uu(new a,e,l);return X(t)||nl(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=l),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&s.clear&&delete s.clear;}return u[e]=l,ln({global:!0,constructor:!0,forced:l!==a},u),ti(l,e),o||n.setStrong(l,e,r),l},fu=lu.getWeakData,du=Nt.set,pu=Nt.getterFor,hu=Bn.find,gu=Bn.findIndex,vu=z([].splice),yu=0,mu=function(e){return e.frozen||(e.frozen=new bu)},bu=function(){this.entries=[];},wu=function(e,t){return hu(e.entries,(function(e){return e[0]===t}))};bu.prototype={get:function(e){var t=wu(this,e);if(t)return t[1]},has:function(e){return !!wu(this,e)},set:function(e,t){var n=wu(this,e);n?n[1]=t:this.entries.push([e,t]);},delete:function(e){var t=gu(this.entries,(function(t){return t[0]===e}));return ~t&&vu(this.entries,t,1),!!~t}};var xu,Eu={getConstructor:function(e,t,n,r){var o=e((function(e,o){Ca(e,i),du(e,{type:t,id:yu++,frozen:null}),X(o)||nl(o,e[r],{that:e,AS_ENTRIES:n});})),i=o.prototype,a=pu(t),s=function(e,t,n){var r=a(e),o=fu(et(t),!0);return !0===o?mu(r).set(t,n):o[r.id]=n,e};return tu(i,{delete:function(e){var t=a(this);if(!re(e))return !1;var n=fu(e);return !0===n?mu(t).delete(e):n&&Pe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!re(e))return !1;var n=fu(e);return !0===n?mu(t).has(e):n&&Pe(n,t.id)}}),tu(i,n?{get:function(e){var t=a(this);if(re(e)){var n=fu(e);if(!0===n)return mu(t).get(e);if(n)return n[t.id]}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),o}},Su=Nt.enforce,Ou=Object,ku=Array.isArray,Cu=Ou.isExtensible,Tu=Ou.isFrozen,Nu=Ou.isSealed,Mu=Ou.freeze,Lu=Ou.seal,Ru=!L.ActiveXObject&&"ActiveXObject"in L,Pu=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Du=cu("WeakMap",Pu,Eu),ju=Du.prototype,Au=z(ju.set);if(bt)if(Ru){xu=Eu.getConstructor(Pu,"WeakMap",!0),lu.enable();var Iu=z(ju.delete),_u=z(ju.has),Fu=z(ju.get);tu(ju,{delete:function(e){if(re(e)&&!Cu(e)){var t=Su(this);return t.frozen||(t.frozen=new xu),Iu(this,e)||t.frozen.delete(e)}return Iu(this,e)},has:function(e){if(re(e)&&!Cu(e)){var t=Su(this);return t.frozen||(t.frozen=new xu),_u(this,e)||t.frozen.has(e)}return _u(this,e)},get:function(e){if(re(e)&&!Cu(e)){var t=Su(this);return t.frozen||(t.frozen=new xu),_u(this,e)?Fu(this,e):t.frozen.get(e)}return Fu(this,e)},set:function(e,t){if(re(e)&&!Cu(e)){var n=Su(this);n.frozen||(n.frozen=new xu),_u(this,e)?Au(this,e,t):n.frozen.set(e,t);}else Au(this,e,t);return this}});}else eu&&R((function(){var e=Mu([]);return Au(new Du,e,1),!Tu(e)}))&&tu(ju,{set:function(e,t){var n;return ku(e)&&(Tu(e)?n=Mu:Nu(e)&&(n=Lu)),Au(this,e,t),n&&n(e),this}});var Bu=$e("iterator"),$u=Ql.values,Wu=function(e,t){if(e){if(e[Bu]!==$u)try{lt(e,Bu,$u);}catch(t){e[Bu]=$u;}if(ti(e,t,!0),mn[t])for(var n in Ql)if(e[n]!==Ql[n])try{lt(e,n,Ql[n]);}catch(t){e[n]=Ql[n];}}};for(var Hu in mn)Wu(L[Hu]&&L[Hu].prototype,Hu);Wu(xn,"DOMTokenList");var Vu=new WeakMap,zu=new WeakMap,Uu=new WeakMap,Ku=new WeakMap,qu=new WeakMap,Gu=new WeakMap,Ju=new WeakMap,Yu=new WeakMap,Xu=new WeakMap,Qu=new WeakMap,Zu=new WeakMap,ec=new WeakMap,tc=new WeakMap,nc=new WeakMap,rc=new WeakMap,oc=new WeakMap,ic=new WeakMap,ac=new WeakMap,sc=new WeakMap,lc=new WeakMap,uc=new WeakMap,cc=new WeakMap,fc=new WeakMap,dc=new WeakMap,pc=new WeakMap,hc={getWindow:function(e){var t=uc.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=lc.get(t);return n||(n=new $l,lc.set(t,n)),n},setNewKey:function(e){var t=new $l;lc.set(e,t);},findPath:function(e,n){for(var r=[],o=n;;){var i=rc.get(o);if(null==i){if(t.Editor.isEditor(o))return r;break}var a=nc.get(o);if(null==a)break;r.unshift(a),o=i;}throw new Error("Unable to find the path for Slate node: ".concat(JSON.stringify(n)))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=hc.toDOMNode(e,e),n=t.getRootNode();return (fl(n)||dl(n))&&null!=Reflect.get(n,"getSelection")?n:t.ownerDocument},getParentNode:function(e,t){return rc.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=hc.getParentNode(e,r);if(null==o)break;n.push(o),r=o;}return n},getTopNode:function(e,n){var r=[hc.findPath(e,n)[0]];return t.Node.get(e,r)},toDOMNode:function(e,n){var r;if(t.Editor.isEditor(n))r=oc.get(e);else {var o=hc.findKey(e,n);r=ac.get(o);}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(JSON.stringify(n)));return r},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=hc.toDOMNode(e,e);try{r=kl(t)?t:t.parentElement;}catch(e){if(e instanceof Error&&!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"))||!!r.getAttribute("data-slate-string"))},toDOMRange:function(e,n){var r=n.anchor,o=n.focus,i=t.Range.isBackward(n),a=hc.toDOMPoint(e,r),s=t.Range.isCollapsed(n)?a:hc.toDOMPoint(e,o),l=hc.getWindow(e).document.createRange(),u=ra(i?s:a,2),c=u[0],f=u[1],d=ra(i?a:s,2),p=d[0],h=d[1],g=!!(kl(c)?c:c.parentElement).getAttribute("data-slate-zero-width"),v=!!(kl(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return l.setStart(c,g?1:f),l.setEnd(p,v?1:h),l},toDOMPoint:function(e,n){var r,o,i,a=ra(t.Editor.node(e,n.path),1)[0],s=hc.toDOMNode(e,a);t.Editor.void(e,{at:n})&&(n={path:n.path,offset:0});var l=Array.from(s.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0;try{for(var c=na(l),f=c.next();!f.done;f=c.next()){var d=f.value,p=d.childNodes[0];if(null!=p&&null!=p.textContent){var h=p.textContent.length,g=d.getAttribute("data-slate-length"),v=u+(null==g?h:parseInt(g,10));if(n.offset<=v){i=[p,Math.min(h,Math.max(0,n.offset-u))];break}u=v;}}}catch(e){r={error:e};}finally{try{f&&!f.done&&(o=c.return)&&o.call(c);}finally{if(r)throw r.error}}if(!i)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(JSON.stringify(n)));return i},toSlateNode:function(e,t){var n=kl(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?ic.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},findEventRange:function(e,n){"nativeEvent"in n&&(n=n.nativeEvent);var r=n.clientX,o=n.clientY,i=n.target;if(null==r||null==o)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(n));var a,s=hc.toSlateNode(e,n.target),l=hc.findPath(e,s);if(t.Editor.isVoid(e,s)){var u=i.getBoundingClientRect(),c=e.isInline(s)?r-u.left<u.left+u.width-r:o-u.top<u.top+u.height-o,f=t.Editor.point(e,l,{edge:c?"start":"end"}),d=c?t.Editor.before(e,f):t.Editor.after(e,f);if(d)return t.Editor.range(e,d)}var p=this.getWindow(e).document;if(p.caretRangeFromPoint)a=p.caretRangeFromPoint(r,o);else {var h=p.caretPositionFromPoint(r,o);h&&((a=p.createRange()).setStart(h.offsetNode,h.offset),a.setEnd(h.offsetNode,h.offset));}if(!a)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(n));return hc.toSlateRange(e,a,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,n,r){var o,i,a,s,l,u=r.exactMatch,c=r.suppressThrow;if((Tl(n)?n.anchorNode:n.startContainer)&&(Tl(n)?(o=n.anchorNode,i=n.anchorOffset,a=n.focusNode,s=n.focusOffset,l=Kl&&Rl()?n.anchorNode===n.focusNode&&n.anchorOffset===n.focusOffset:n.isCollapsed):(o=n.startContainer,i=n.startOffset,a=n.endContainer,s=n.endOffset,l=n.collapsed)),null==o||null==a||null==i||null==s)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(n));var f=hc.toSlatePoint(e,[o,i],{exactMatch:u,suppressThrow:c});if(!f)return null;var d=l?f:hc.toSlatePoint(e,[a,s],{exactMatch:u,suppressThrow:c});if(!d)return null;var p={anchor:f,focus:d};return t.Range.isExpanded(p)&&t.Range.isForward(p)&&kl(a)&&t.Editor.void(e,{at:p.focus,mode:"highest"})&&(p=t.Editor.unhangRange(e,p,{voids:!0})),p},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=ra(o?t:Ll(t),2),s=a[0],l=a[1],u=s.parentNode,c=null,f=0;if(u){var d=u.closest('[data-slate-void="true"]'),p=u.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=hc.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(s,l);var y=g.cloneContents();oa(oa([],ra(v.default(y.querySelectorAll("[data-slate-zero-width]"))),!1),ra(v.default(y.querySelectorAll("[contenteditable=false]"))),!1).forEach((function(e){e.parentNode.removeChild(e);})),f=y.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&&(u.hasAttribute("data-slate-zero-width")||Hl&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&(f-=1);}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var m=hc.toSlateNode(e,c);return {path:hc.findPath(e,m),offset:f}},hasRange:function(e,n){var r=n.anchor,o=n.focus;return t.Editor.hasPath(e,r.path)&&t.Editor.hasPath(e,o.path)},getNodeType:function(e){return t.Element.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return t.Node.string(e)})).join("")},getSelectedElems:function(e){var n,r,o=[],i=t.Editor.nodes(e,{universal:!0});try{for(var a=na(i),s=a.next();!s.done;s=a.next()){var l=ra(s.value,1)[0];t.Element.isElement(l)&&o.push(l);}}catch(e){n={error:e};}finally{try{s&&!s.done&&(r=a.return)&&r.call(a);}finally{if(n)throw n.error}}return o},getSelectedNodeByType:function(e,n){var r=this,o=ra(t.Editor.nodes(e,{match:function(e){return r.checkNodeType(e,n)},universal:!0}),1),i=o[0];return null==i?null:i[0]},getSelectedTextNode:function(e){var n=ra(t.Editor.nodes(e,{match:function(e){return t.Text.isText(e)},universal:!0}),1),r=n[0];return null==r?null:r[0]},isNodeSelected:function(e,n){var r=ra(t.Editor.nodes(e,{match:function(e){return e===n},universal:!0}),1),o=r[0];return null!=o&&ra(o,1)[0]===n},isSelectionAtLineEnd:function(e,n){var r=e.selection;return !!r&&(t.Editor.isEnd(e,r.anchor,n)||t.Editor.isEnd(e,r.focus,n))},getTextarea:function(e){var t=Vu.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return Ku.get(e)||null},getHoverbar:function(e){return Gu.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 n,r,o,i,a=hc.getTextarea(e).$textArea,s=null==a?void 0:a[0].childNodes;if(s)try{for(var l=na(Array.from(s)),u=l.next();!u.done;u=l.next()){var c=u.value;if(3!==c.nodeType)break;c.remove();}}catch(e){n={error:e};}finally{try{u&&!u.done&&(r=l.return)&&r.call(l);}finally{if(n)throw n.error}}var f=t.Editor.nodes(e,{match:function(n){return !(!t.Element.isElement(n)||e.isInline(n))},universal:!0});try{for(var d=na(f),p=d.next();!p.done;p=d.next()){var h=p.value;if(null!=h){var g=h[0];_l(hc.toDOMNode(e,g),(function(e,t){var n=y.default(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e);}));}}}catch(e){o={error:e};}finally{try{p&&!p.done&&(i=d.return)&&i.call(d);}finally{if(o)throw o.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 n,r,o=t.Editor.nodes(e,{match:function(t){return e.isVoid(t)}}),i=0;try{for(var a=na(o),s=a.next();!s.done;s=a.next()){s.value&&(i+=1);}}catch(e){n={error:e};}finally{try{s&&!s.done&&(r=a.return)&&r.call(a);}finally{if(n)throw n.error}}return i>0},isSelectedEmptyParagraph:function(e){var n=e.selection;if(null==n)return !1;if(t.Range.isExpanded(n))return !1;var r=hc.getSelectedNodeByType(e,"paragraph");if(null===r)return !1;var o=r.children;return 1===o.length&&(""===o[0].text||void 0)},isEmptyPath:function(e,n){var r=t.Editor.node(e,n);if(null==r)return !1;var o=ra(r,1)[0].children;if(1===o.length&&""===o[0].text)return !0;return !1}},gc=1,vc={};var yc={};var mc=Bn.filter,bc=Zr("filter");ln({target:"Array",proto:!0,forced:!bc},{filter:function(e){return mc(this,e,arguments.length>1?arguments[1]:void 0)}});var wc="\t\n\v\f\r                 \u2028\u2029\ufeff",xc=z("".replace),Ec=RegExp("^["+wc+"]+"),Sc=RegExp("(^|[^"+wc+"])["+wc+"]+$"),Oc=function(e){return function(t){var n=or(Z(t));return 1&e&&(n=xc(n,Ec,"")),2&e&&(n=xc(n,Sc,"$1")),n}},kc={start:Oc(1),end:Oc(2),trim:Oc(3)},Cc=dt.PROPER,Tc=kc.trim;ln({target:"String",proto:!0,forced:function(e){return R((function(){return !!wc[e]()||"​…᠎"!=="​…᠎"[e]()||Cc&&wc[e].name!==e}))}("trim")},{trim:function(){return Tc(this)}});var Nc=[];var Mc={};function Lc(e,t,n){var r=n.isInline(e)?"span":"div";return "<".concat(r,">").concat(t,"</").concat(r,">")}function Rc(e,n){var r=e.type,o=void 0===r?"":r,i=e.children,a=void 0===i?[]:i,s=t.Editor.isVoid(n,e),l="";s||(l=a.map((function(e){return Pc(e,n)})).join(""));var u=function(e){return Mc[e]||Lc}(o),c=u(e,l,n),f="";if(f="string"==typeof c?c:c.html||"",s||Nc.forEach((function(t){return f=t(e,f)})),"string"==typeof c)return f;var d=c.prefix,p=void 0===d?"":d,h=c.suffix,g=void 0===h?"":h;return p&&(f=p+f),g&&(f+=g),f}function Pc(e,n){return t.Element.isElement(e)?Rc(e,n):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text ".concat(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=hc.getParentsNodes(t,e).some((function(e){return "pre"===hc.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=hc.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>";}return Nc.forEach((function(t){return r=t(e,r)})),r}(e,n)}function Dc(e){return "w-e-element-".concat(e)}var jc=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Ac=function(e,t,n){var r=hc.toDOMRange(e,t).getBoundingClientRect(),o=hc.toDOMRange(e,n).getBoundingClientRect();return jc(r,o)&&jc(o,r)},Ic=["span","b","strong","i","em","s","strike","u","font","sub","sup"],_c=[];var Fc=[];var Bc={};var $c=st.f,Wc=function(e,t,n){n in e||$c(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e;}});},Hc=Gt.f,Vc=Nt.enforce,zc=$e("match"),Uc=L.RegExp,Kc=Uc.prototype,qc=L.SyntaxError,Gc=z(Kc.exec),Jc=z("".charAt),Yc=z("".replace),Xc=z("".indexOf),Qc=z("".slice),Zc=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ef=/a/g,tf=/a/g,nf=new Uc(ef)!==ef,rf=co.MISSED_STICKY,of=co.UNSUPPORTED_Y,af=P&&(!nf||rf||po||go||R((function(){return tf[zc]=!1,Uc(ef)!==ef||Uc(tf)===tf||"/a/i"!==String(Uc(ef,"i"))})));if(an("RegExp",af)){for(var sf=function(e,t){var n,r,o,i,a,s,l=ie(Kc,this),u=Lo(e),c=void 0===t,f=[],d=e;if(!l&&u&&c&&e.constructor===sf)return e;if((u||ie(Kc,e))&&(e=e.source,c&&(t=sr(d))),e=void 0===e?"":or(e),t=void 0===t?"":or(t),d=e,po&&"dotAll"in ef&&(r=!!t&&Xc(t,"s")>-1)&&(t=Yc(t,/s/g,"")),n=t,rf&&"sticky"in ef&&(o=!!t&&Xc(t,"y")>-1)&&of&&(t=Yc(t,/y/g,"")),go&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a=Vr(null),s=!1,l=!1,u=0,c="";r<=n;r++){if("\\"===(t=Jc(e,r)))t+=Jc(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:if(o+=t,"?:"===Qc(e,r+1,r+3))continue;Gc(Zc,Qc(e,r+1))&&(r+=2,l=!0),u++;continue;case">"===t&&l:if(""===c||Pe(a,c))throw new qc("Invalid capture group name");a[c]=!0,i[i.length]=[c,u],l=!1,c="";continue}l?c+=t:o+=t;}return [o,i]}(e),e=i[0],f=i[1]),a=uu(Uc(e,t),l?this:Kc,sf),(r||o||f.length)&&(s=Vc(a),r&&(s.dotAll=!0,s.raw=sf(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=Jc(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+Jc(e,++r);return o}(e),n)),o&&(s.sticky=!0),f.length&&(s.groups=f)),e!==d)try{lt(a,"source",""===d?"(?:)":d);}catch(e){}return a},lf=Hc(Uc),uf=0;lf.length>uf;)Wc(sf,Uc,lf[uf++]);Kc.constructor=sf,sf.prototype=Kc,Lt(L,"RegExp",sf,{constructor:!0});}Oa("RegExp");var cf=new RegExp(String.fromCharCode(160),"g");function ff(e){return e.replace(cf," ")}function df(e,n){var r=e.length;if(r){var o=e[r-1];if(t.Text.isText(o)){var i=Object.keys(o);if(1===i.length&&"text"===i[0])return o.text=o.text+n,!0}}return !1}function pf(e,t,n){return {type:"paragraph",children:[{text:y.default(e).text().replace(/\s+/gm," ")}]}}function hf(n,r){var o=function(t,n){var r=[];if(null!=t.attr("data-w-e-is-void"))return r;var o=t[0].childNodes;return 1===o.length&&"BR"===o[0].nodeName?(r.push({text:""}),r):(o.forEach((function(t){if(t.nodeType!==e.NodeType.ELEMENT_NODE)if(t.nodeType!==e.NodeType.TEXT_NODE);else {var o=t.textContent||"";if(""===o.trim()&&o.indexOf("\n")>=0)return;o&&(o=ff(o),df(r,o)||r.push({text:o}));}else {if("BR"===t.nodeName)return void(df(r,"\n")||r.push({text:"\n"}));var i=vf(y.default(t),n);Array.isArray(i)?i.forEach((function(e){return r.push(e)})):r.push(i);}})),r)}(n,r),i=function(e){for(var t in Bc)if(e[0].matches(t))return Bc[t];return pf}(n),a=i(n[0],o,r);return Array.isArray(a)||(a=[a]),a.forEach((function(e){t.Editor.isVoid(r,e)||(0===o.length&&(e.children=[{text:n.text().replace(/\s+/gm," ")}]),Fc.forEach((function(t){e=t(n[0],e,r);})));})),a}function gf(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=ff(n)};return Fc.forEach((function(n){r=n(e[0],r,t);})),r}function vf(e,t){_c.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=y.default(r(e[0])));}));var n=Fl(e);if("span"===n){if(e.attr("data-w-e-type"))return hf(e,t);if(e[0].childNodes.length>1){var r=e[0].childNodes;return Array.from(r).map((function(e){return gf(y.default(e),t)}))}return gf(e,t)}if("code"===n)return "pre"===Fl(e.parent())?hf(e,t):gf(e,t);if(Ic.includes(n)){if(e[0].childNodes.length>0&&3!==e[0].childNodes[0].nodeType){r=e[0].childNodes;return ta(ta({},vf(y.default(r[0]),t)),gf(e,t))}return gf(e,t)}return hf(e,t)}var yf=co.UNSUPPORTED_Y,mf=Math.min,bf=z([].push),wf=z("".slice),xf=!R((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]})),Ef="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;function Sf(e,t,n){var r=y.default(n);return !!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t);})),!1)}function Of(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>".concat(e,"</p>")})).join(""));var r=y.default("<div>".concat(t,"</div>"));return Array.from(r.children()).forEach((function(t){var r=vf(y.default(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r);})),n}Mi("split",(function(e,t,n){var r="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:A(t,this,e,n)}:t;return [function(t,n){var o=Z(this),i=X(t)?void 0:Se(t,e);return i?A(i,t,o,n):A(r,or(o),t,n)},function(e,o){var i=et(this),a=or(e);if(!Ef){var s=n(r,i,a,o,r!==t);if(s.done)return s.value}var l=Ma(i,RegExp),u=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(yf?"g":"y"),f=new l(yf?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return [];if(0===a.length)return null===$i(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=yf?0:h;var v,y=$i(f,yf?wf(a,h):a);if(null===y||(v=mf(Bt(f.lastIndex+(yf?h:0)),a.length))===p)h=Ri(a,h,u);else {if(bf(g,wf(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(bf(g,y[m]),g.length===d)return g;h=p=v;}}return bf(g,wf(a,p)),g}]}),Ef||!xf,yf);var kf=lu.fastKey,Cf=Nt.set,Tf=Nt.getterFor,Nf={getConstructor:function(e,t,n,r){var o=e((function(e,o){Ca(e,i),Cf(e,{type:t,index:Vr(null),first:null,last:null,size:0}),P||(e.size=0),X(o)||nl(o,e[r],{that:e,AS_ENTRIES:n});})),i=o.prototype,a=Tf(t),s=function(e,t,n){var r,o,i=a(e),s=l(e,t);return s?s.value=n:(i.last=s={index:o=kf(t,!0),key:t,value:n,previous:r=i.last,next:null,removed:!1},i.first||(i.first=s),r&&(r.next=s),P?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},l=function(e,t){var n,r=a(e),o=kf(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===t)return n};return tu(i,{clear:function(){for(var e=a(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=Vr(null),P?e.size=0:this.size=0;},delete:function(e){var t=this,n=a(t),r=l(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),P?n.size--:t.size--;}return !!r},forEach:function(e){for(var t,n=a(this),r=On(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 !!l(this,e)}}),tu(i,n?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),P&&Ea(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Tf(t),i=Tf(r);yi(e,t,(function(e,t){Cf(this,{type:r,target:e,state:o(e),kind:t,last:null});}),(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)?mi("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,mi(void 0,!0))}),n?"entries":"values",!n,!0),Oa(t);}};cu("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Nf);var Mf=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function Lf(e,n){e.isInline(n)?(e.insertNode(n),"link"===n.type&&e.insertFragment([{text:""}])):t.Transforms.insertNodes(e,n,{mode:"highest"});}var Rf=function(n){var r=n,o=r.onChange,i=r.insertText,a=r.apply,s=r.deleteBackward;return r.insertText=function(e){r.getConfig().readOnly||i(e);},r.apply=function(e){var n,o,i,s,l,u,c,f,d=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var p=na(t.Editor.levels(r,{at:e.path})),h=p.next();!h.done;h=p.next()){var g=ra(h.value,2),v=g[0],y=g[1],m=hc.findKey(r,v);d.push([y,m]);}}catch(e){n={error:e};}finally{try{h&&!h.done&&(o=p.return)&&o.call(p);}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var b=na(t.Editor.levels(r,{at:t.Path.parent(e.path)})),w=b.next();!w.done;w=b.next()){var x=ra(w.value,2);v=x[0],y=x[1],m=hc.findKey(r,v);d.push([y,m]);}}catch(e){i={error:e};}finally{try{w&&!w.done&&(s=b.return)&&s.call(b);}finally{if(i)throw i.error}}break;case"move_node":try{for(var E=na(t.Editor.levels(r,{at:t.Path.common(t.Path.parent(e.path),t.Path.parent(e.newPath))})),S=E.next();!S.done;S=E.next()){var O=ra(S.value,2);v=O[0],y=O[1],m=hc.findKey(r,v);d.push([y,m]);}}catch(e){l={error:e};}finally{try{S&&!S.done&&(u=E.return)&&u.call(E);}finally{if(l)throw l.error}}}a(e);try{for(var k=na(d),C=k.next();!C.done;C=k.next()){var T=ra(C.value,2);y=T[0],m=T[1],v=ra(t.Editor.node(r,y),1)[0];lc.set(v,m);}}catch(e){c={error:e};}finally{try{C&&!C.done&&(f=k.return)&&f.call(k);}finally{if(c)throw c.error}}},r.deleteBackward=function(e){if("line"!==e)return s(e);if(n.selection&&t.Range.isCollapsed(n.selection)){var o=t.Editor.above(n,{match:function(e){return t.Editor.isBlock(n,e)},at:n.selection});if(o){var i=ra(o,2)[1],a=t.Editor.range(n,i,n.selection.anchor),l=function(e,n){var r=t.Editor.range(e,t.Range.end(n)),o=Array.from(t.Editor.positions(e,{at:n})),i=0,a=o.length,s=Math.floor(a/2);if(Ac(e,t.Editor.range(e,o[i]),r))return t.Editor.range(e,o[i],r);if(o.length<2)return t.Editor.range(e,o[o.length-1],r);for(;s!==o.length&&s!==i;)Ac(e,t.Editor.range(e,o[s]),r)?a=s:i=s,s=Math.floor((i+a)/2);return t.Editor.range(e,o[a],r)}(r,a);t.Range.isCollapsed(l)||t.Transforms.delete(n,{at:l});}}},r.onChange=function(){var e=r.selection;null!=e&&fc.set(r,e),r.emit("change"),o();},r.handleTab=function(){r.insertText(" ");},r.getHtml=function(){var e=r.children;return (void 0===e?[]:e).map((function(e){return Pc(e,r)})).join("")},r.getText=function(){var e=r.children;return (void 0===e?[]:e).map((function(e){return t.Node.string(e)})).join("\n")},r.getSelectionText=function(){var e=r.selection;return null==e?"":t.Editor.string(n,e)},r.getElemsByType=function(e,n){var o,i;void 0===n&&(n=!1);var a=[],s=t.Editor.nodes(r,{at:[],universal:!0});try{for(var l=na(s),u=l.next();!u.done;u=l.next()){var c=ra(u.value,1)[0];if(t.Element.isElement(c))if(n?c.type.indexOf(e)>=0:c.type===e){var f=Dc(hc.findKey(r,c).id);a.push(ta(ta({},c),{id:f}));}}}catch(e){o={error:e};}finally{try{u&&!u.done&&(i=l.return)&&i.call(l);}finally{if(o)throw o.error}}return a},r.getElemsByTypePrefix=function(e){return r.getElemsByType(e,!0)},r.isEmpty=function(){var e=r.children,n=void 0===e?[]:e;if(n.length>1)return !1;var o=n[0];if(null==o)return !0;if(t.Element.isElement(o)&&"paragraph"===o.type){var i=o.children,a=void 0===i?[]:i;if(a.length>1)return !1;var s=a[0];if(null==s)return !0;if(t.Text.isText(s)&&""===s.text)return !0}return !1},r.clear=function(){t.Transforms.delete(r,{at:{anchor:t.Editor.start(r,[]),focus:t.Editor.end(r,[])}}),0===r.children.length&&t.Transforms.insertNodes(r,[{type:"paragraph",children:[{text:""}]}]);},r.getParentNode=function(e){return hc.getParentNode(r,e)},r.dangerouslyInsertHtml=function(n,o){if(void 0===n&&(n=""),void 0===o&&(o=!1),n){var i=document.createElement("div");i.innerHTML=n;var a=Array.from(i.childNodes);if(a=a.filter((function(t){var n=t.nodeType,r=t.nodeName;return n===e.NodeType.TEXT_NODE||n===e.NodeType.ELEMENT_NODE&&!Mf.has(r.toLowerCase())})),0!==a.length){var s=r.selection;if(null!=s){var l=null;if(hc.isSelectedEmptyParagraph(r)&&!o)l=[s.focus.path[0]];i.setAttribute("hidden","true"),document.body.appendChild(i);var u=0;a.forEach((function(t,n){var o=t.nodeType,i=t.nodeName,s=t.textContent,l=void 0===s?"":s;if(o!==e.NodeType.TEXT_NODE)if("BR"!==i){var c=t,f=!1;if(Ic.includes(i.toLowerCase()))f=!0;else for(var d in Bc)if(c.matches(d)){f=!0;break}if(f){var p=vf(y.default(c),r);return Array.isArray(p)?(p.forEach((function(e){return Lf(r,e)})),u++):(Lf(r,p),u++),void(hc.isSelectedVoidNode(r)&&r.move(1))}var h=window.getComputedStyle(c).display;if(!hc.isSelectedEmptyParagraph(r)&&h.indexOf("inline")<0){if(n>=1){var g=a[n-1];"matches"in g&&g.matches("ul:not([data-w-e-type]),ol:not([data-w-e-type])")&&r.insertBreak();}r.insertBreak();}r.dangerouslyInsertHtml(c.innerHTML,!0);}else r.insertText("\n");else {if(!l||!l.trim())return;r.insertNode({text:l});}})),u&&l&&hc.isEmptyPath(r,l)&&t.Transforms.removeNodes(r,{at:l}),i.remove();}}}},r.setHtml=function(e){void 0===e&&(e="");var n=r.isDisabled(),o=r.isFocused(),i=JSON.stringify(r.selection);r.enable(),r.focus(),r.clear();var a=Of(r,null==e?"":e);if(t.Transforms.insertFragment(r,a),o||(r.deselect(),r.blur()),n&&(r.deselect(),r.disable()),r.isFocused())try{r.select(JSON.parse(i));}catch(e){r.select(t.Editor.start(r,[]));}},r},Pf=function(e){return null!=e},Df={object:!0,function:!0,undefined:!0},jf=function(e){if(!function(e){return !!Pf(e)&&hasOwnProperty.call(Df,typeof e)}(e))return !1;try{return !!e.constructor&&e.constructor.prototype===e}catch(e){return !1}},Af=/^\s*class[\s{/}]/,If=Function.prototype.toString,_f=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 !jf(e)}(e)&&!Af.test(If.call(e))},Ff=function(e){return null!=e},Bf=Object.keys,$f=function(){try{return Object.keys("primitive"),!0}catch(e){return !1}}()?Object.keys:function(e){return Bf(Ff(e)?Object(e):e)},Wf=Math.max,Hf=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=Wf(arguments.length,2);for(e=Object(function(e){if(!Ff(e))throw new TypeError("Cannot use null or undefined");return e}(e)),o=function(r){try{e[r]=t[r];}catch(e){n||(n=e);}},r=1;r<i;++r)$f(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},Vf=Array.prototype.forEach,zf=Object.create,Uf=function(e){var t=zf(null);return Vf.call(arguments,(function(e){Ff(e)&&function(e,t){var n;for(n in e)t[n]=e[n];}(Object(e),t);})),t},Kf="razdwatrzy",qf=String.prototype.indexOf,Gf="function"==typeof Kf.contains&&!0===Kf.contains("dwa")&&!1===Kf.contains("foo")?String.prototype.contains:function(e){return qf.call(this,e,arguments[1])>-1},Jf=C((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],Pf(e)?(n=Gf.call(e,"c"),r=Gf.call(e,"e"),o=Gf.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?Hf(Uf(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],Pf(t)?_f(t)?Pf(n)?_f(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,Pf(e)?(r=Gf.call(e,"c"),o=Gf.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?Hf(Uf(i),a):a};})),Yf=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},Xf=C((function(e,t){var n,r,o,i,a,s,l,u=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 Yf(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 Yf(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),u.call(t,this,arguments);}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(Yf(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)u.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];u.call(o,this,i);}},a={on:n,once:r,off:o,emit:i},s={on:Jf(n),once:Jf(r),off:Jf(o),emit:Jf(i)},l=p({},s),e.exports=t=function(e){return null==e?f(l):p(Object(e),s)},t.methods=a;}));function Qf(e){var t=dc.get(e);return null==t&&(t=Xf(),dc.set(e,t)),t}var Zf=new WeakMap;function ed(e,t){var n=Zf.get(e);null==n&&(n=new Set,Zf.set(e,n)),n.add(t);}var td=function(e){var t=e;return t.on=function(e,n){var r=Qf(t);if(r.on(e,n),"destroyed"===e&&ed(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),ed(t,o);}},t.once=function(e,n){Qf(t).once(e,n);},t.off=function(e,n){Qf(t).off(e,n);},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=Qf(t);if(o.emit.apply(o,oa([e],ra(n),!1)),"destroyed"===e){var i=function(e){return Zf.get(e)||new Set}(t);i.forEach((function(e){return o.off("destroyed",e)})),function(e){Zf.set(e,new Set);}(t);}},t};function nd(e){var t=hc.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return {top:o.top,left:o.left,width:n,height:r}}function rd(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=nd(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,s=r.height,l=hc.toDOMRange(e,n).getClientRects()[0];if(null==l)return t;l.width;var u=l.height,c={},f=l.top-o,d=l.left-i;if(d>a/2){var p=a-d;c.right="".concat(p+5,"px");}else c.left="".concat(d+5,"px");if(f>s/2){var h=s-f;c.bottom="".concat(h+5,"px");}else {var g=f+u;g<0&&(g=0),c.top="".concat(g+5,"px");}return c}function od(e,n,r){void 0===r&&(r="modal");var o={top:"0",left:"0"};if(null==e.selection)return o;var i=t.Element.isElement(n)&&e.isVoid(n),a=t.Element.isElement(n)&&e.isInline(n),s=sc.get(n);if(null==s)return o;var l=s.getBoundingClientRect(),u=l.top,c=l.left,f=l.height,d=l.width;if(i){var p=Il(s);if(null!=p){var h=p.getBoundingClientRect();u=h.top,f=h.height;}}var g=nd(e);if(null==g)return o;var v=g.top,y=g.left,m=g.width,b=g.height,w={},x=u-v,E=c-y;if("bar"===r)return w.left="".concat(E,"px"),x>40?w.bottom="".concat(b-x+5,"px"):w.top="".concat(x+f+5,"px"),w;if("modal"===r){var S;if(i?a?E>(m-d)/2?w.right="".concat(m-E+5,"px"):w.left="".concat(E+d+5,"px"):w.left="20px":w.left="".concat(E,"px"),i)(S=x)<0&&(S=0),w.top="".concat(S,"px");else if(x>(b-f)/2)w.bottom="".concat(b-x+5,"px");else (S=x+f)<0&&(S=0),w.top="".concat(S+5,"px");return w}throw new Error("type '".concat(r,"' is invalid"))}function id(e,t){ll((function(){var n=nd(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,s=n.height,l=t.offset(),u=l.top,c=l.left,f=t.width(),d=t.height(),p=u-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0)if((r=p+d-s)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top","".concat(y,"px"));}if(g.indexOf("bottom")>=0&&u<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(u);t.css("bottom","".concat(b,"px"));}if(g.indexOf("left")>=0)if((r=h+f-a)>0){var w=t.css("left"),x=parseInt(w.toString())-r;x<0&&(x=0),t.css("left","".concat(x,"px"));}if(g.indexOf("right")>=0&&c<0){var E=t.css("right"),S=parseInt(E.toString())-Math.abs(c);t.css("right","".concat(S,"px"));}}}));}var ad=Zr("slice"),sd=$e("species"),ld=Array,ud=Math.max;ln({target:"Array",proto:!0,forced:!ad},{slice:function(e,t){var n,r,o,i=ee(this),a=$t(i),s=_t(e,a),l=_t(void 0===t?a:t,a);if(kn(i)&&(n=i.constructor,(Dn(n)&&(n===ld||kn(n.prototype))||re(n)&&null===(n=n[sd]))&&(n=void 0),n===ld||void 0===n))return La(i,s,l);for(r=new(void 0===n?ld:n)(ud(l-s,0)),o=0;s<l;s++,o++)s in i&&wr(r,o,i[s]);return r.length=o,r}});var cd=Object.assign,fd=Object.defineProperty,dd=z([].concat),pd=!cd||R((function(){if(P&&1!==cd({b:1},cd(fd({},"a",{enumerable:!0,get:function(){fd(this,"b",{value:3,enumerable:!1});}}),{b:2})).b)return !0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e;})),7!==cd({},e)[n]||un(cd({},t)).join("")!==r}))?function(e,t){for(var n=Le(e),r=arguments.length,o=1,i=Jt.f,a=B.f;r>o;)for(var s,l=Y(arguments[o++]),u=i?dd(un(l),i(l)):un(l),c=u.length,f=0;c>f;)s=u[f++],P&&!A(a,l,s)||(n[s]=l[s]);return n}:cd;ln({target:"Object",stat:!0,arity:2,forced:Object.assign!==pd},{assign:pd});var hd=Ye.f,gd=En("".slice),vd=Math.min,yd=jo("startsWith"),md=!yd&&!!function(){var e=hd(String.prototype,"startsWith");return e&&!e.writable}();ln({target:"String",proto:!0,forced:!md&&!yd},{startsWith:function(e){var t=or(Z(this));Po(e);var n=Bt(vd(arguments.length>1?arguments[1]:void 0,t.length)),r=or(e);return gd(t,n,n+r.length)===r}});var bd=["props","attrs","style","dataset","on","hook"];function wd(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(!bd.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=w.default(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&&wd(e);}));}var xd=[];var Ed={};function Sd(e,t,n){var r=n.isInline(e)?"span":"div";return s.jsx(r,null,t)}function Od(e,n){var r,o=hc.findKey(n,e),i=n.isInline(e),a=t.Editor.isVoid(n,e),l=Dc(o.id),u={id:l,key:o.id,"data-slate-node":"element","data-slate-inline":i},c=e.type,f=e.children,d=void 0===f?[]:f,p=function(e){return Ed[e]||Sd}(c);r=a?null:d.map((function(t,r){return Nd(t,r,e,n)}));var h=p(e,r,n);if(a){u["data-slate-void"]=!0;var g=i?"span":"div",v=ra(t.Node.texts(e),1),y=ra(v[0],1)[0],m=Nd(y,0,e,n),b=s.jsx(g,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},m);h=s.jsx(g,{style:{position:"relative"}},h,b),nc.set(y,0),rc.set(y,e);}return null==h.data&&(h.data={}),Object.assign(h.data,u),a||i||(h=function(e,t){var n=t;return xd.forEach((function(r){n=r(e,t);})),n}(e,h)),ll((function(){var t=Pl(l);null!=t&&(ac.set(o,t),sc.set(e,t),ic.set(t,e));})),h}function kd(e,t){return void 0===t&&(t=!1),s.jsx("span",{"data-slate-string":!0},t?e+"\n":e)}function Cd(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),s.jsx("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?s.jsx("br",null):null)}function Td(e,n,r){if(null==e.text)throw new Error("Current node is not slate Text ".concat(JSON.stringify(e)));var o=hc.findKey(r,e),i=r.getConfig().decorate;if(null==i)throw new Error("Can not get config.decorate");var a=hc.findPath(r,e),l=i([e,a]),u=t.Text.decorations(e,l),c=u.map((function(o,i){var a=function(e,n,r,o,i){void 0===n&&(n=!1);var a=e.text,s=hc.findPath(i,r),l=t.Path.parent(s);if(t.Editor.isEditor(o))throw new Error("Text node ".concat(JSON.stringify(r)," parent is Editor"));return i.isVoid(o)?Cd(t.Node.string(o).length):""!==a||o.children[o.children.length-1]!==r||i.isInline(o)||""!==t.Editor.string(i,l)?""===a?Cd():n&&"\n"===a.slice(-1)?kd(a,!0):kd(a):Cd(0,!0)}(o,i===u.length-1,e,n,r);return a=function(e,t){var n=t;return xd.forEach((function(t){n=t(e,n);})),n}(o,a),s.jsx("span",{"data-slate-leaf":!0},a)})),f=function(e){return "w-e-text-".concat(e)}(o.id),d=s.jsx("span",{"data-slate-node":"text",id:f,key:o.id},c);return ll((function(){var t=Pl(f);null!=t&&(ac.set(o,t),sc.set(e,t),ic.set(t,e));})),d}function Nd(e,n,r,o){return nc.set(e,n),rc.set(e,r),t.Element.isElement(e)?Od(e,o):Td(e,r,o)}function Md(e,t){var n,r=e.$scroll,o=function(e){return "w-e-textarea-".concat(e)}(e.id),i=t.getConfig(),a=i.readOnly,l=i.autoFocus,u=function(e,t){return void 0===t&&(t=!1),s.h("div#".concat(e),{props:{contentEditable:!t}})}(o,a),c=t.children||[];u.children=c.map((function(e,n){var r=Nd(e,n,t,t);return wd(r),r}));var f=Zu.get(e);if(null==f&&(f=!0),f){var d=function(e){return y.default('<div\n id="'.concat(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(d),e.$textArea=d,n=d[0],(h=s.init([s.classModule,s.propsModule,s.styleModule,s.datasetModule,s.eventListenersModule,s.attributesModule]))(n,u),Zu.set(e,!1),ec.set(e,h);}else {var p=tc.get(e),h=ec.get(e);if(null==p||null==h)return;n=p.elm,h(p,u);}if(null!=n||null!=(n=Pl(o))){if((f?l:t.isFocused())&&n.focus({preventScroll:!0}),f){var g=Sl(n);g&&uc.set(t,g);}oc.set(t,n),sc.set(t,n),ic.set(n,t),tc.set(e,u);}}function Ld(e){return "object"==typeof e&&null!=e&&1===e.nodeType}function Rd(e,t){return (!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function Pd(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Rd(n.overflowY,t)||Rd(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 Dd(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var jd=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!Ld(e))throw new TypeError("Invalid target");for(var u,c,f=document.scrollingElement||document.documentElement,d=[],p=e;Ld(p)&&l(p);){if((p=null==(c=(u=p).parentElement)?u.getRootNode().host||null:c)===f){d.push(p);break}null!=p&&p===document.body&&Pd(p)&&!Pd(document.documentElement)||null!=p&&Pd(p,s)&&d.push(p);}for(var h=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),b=m.height,w=m.width,x=m.top,E=m.right,S=m.bottom,O=m.left,k="start"===o||"nearest"===o?x:"end"===o?S:x+b/2,C="center"===i?O+w/2:"end"===i?E:O,T=[],N=0;N<d.length;N++){var M=d[N],L=M.getBoundingClientRect(),R=L.height,P=L.width,D=L.top,j=L.right,A=L.bottom,I=L.left;if("if-needed"===r&&x>=0&&O>=0&&S<=g&&E<=h&&x>=D&&S<=A&&O>=I&&E<=j)return T;var _=getComputedStyle(M),F=parseInt(_.borderLeftWidth,10),B=parseInt(_.borderTopWidth,10),$=parseInt(_.borderRightWidth,10),W=parseInt(_.borderBottomWidth,10),H=0,V=0,z="offsetWidth"in M?M.offsetWidth-M.clientWidth-F-$:0,U="offsetHeight"in M?M.offsetHeight-M.clientHeight-B-W:0,K="offsetWidth"in M?0===M.offsetWidth?0:P/M.offsetWidth:0,q="offsetHeight"in M?0===M.offsetHeight?0:R/M.offsetHeight:0;if(f===M)H="start"===o?k:"end"===o?k-g:"nearest"===o?Dd(y,y+g,g,B,W,y+k,y+k+b,b):k-g/2,V="start"===i?C:"center"===i?C-h/2:"end"===i?C-h:Dd(v,v+h,h,F,$,v+C,v+C+w,w),H=Math.max(0,H+y),V=Math.max(0,V+v);else {H="start"===o?k-D-B:"end"===o?k-A+W+U:"nearest"===o?Dd(D,A,R,B,W+U,k,k+b,b):k-(D+R/2)+U/2,V="start"===i?C-I-F:"center"===i?C-(I+P/2)+z/2:"end"===i?C-j+$+z:Dd(I,j,P,F,$+z,C,C+w,w);var G=M.scrollLeft,J=M.scrollTop;k+=J-(H=Math.max(0,Math.min(J+H/q,M.scrollHeight-R/q+U))),C+=G-(V=Math.max(0,Math.min(G+V/K,M.scrollWidth-P/K+z)));}T.push({el:M,top:H,left:V});}return T};function Ad(e){return e===Object(e)&&0!==Object.keys(e).length}function Id(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Ad(t)&&"function"==typeof t.behavior)return t.behavior(n?jd(e,t):[]);if(n){var r=function(e){return !1===e?{block:"end",inline:"nearest"}:Ad(e)?e:{block:"start",inline:"nearest"}}(t);return 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);}));}(jd(e,r),r.behavior)}}function _d(e,t){return Cl(t)&&hc.hasDOMNode(e,t,{editable:!0})}function Fd(e,n){if(e.getConfig().readOnly)return !1;var r=Bd(e,n)&&hc.toSlateNode(e,n);return t.Editor.isVoid(e,r)}function Bd(e,t){return Cl(t)&&hc.hasDOMNode(e,t)}function $d(e,n,r){void 0===r&&(r=!1);var o=n.selection,i=n.getConfig(),a=hc.findDocumentOrShadowRoot(n).getSelection();if(a&&(!e.isComposing||r)&&n.isFocused()){var s="None"!==a.type;if(o||s){var l=oc.get(n),u=!1;if(l.contains(a.anchorNode)&&l.contains(a.focusNode)&&(u=!0),s&&u&&o){var c=hc.toSlateRange(n,a,{exactMatch:!0,suppressThrow:!0});if(c&&t.Range.equals(c,o)){var f=!0;if(t.Range.isCollapsed(o)){var d=a.anchorNode,p=a.anchorOffset;if(d===l){var h=l.childNodes,g=void 0;(g=h[p])&&g.matches("table")&&(f=!1),(g=h[p-1])&&g.matches("table")&&(f=!1);}}if(f)return}}if(!o||hc.hasRange(n,o)){e.isUpdatingSelection=!0;var v=o&&hc.toDOMRange(n,o);if(v){t.Range.isBackward(o)?a.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):a.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var y=v.startContainer.parentElement;if(!y.closest("[data-slate-spacer]")){y.getBoundingClientRect=v.getBoundingClientRect.bind(v);var m=document.body;Id(y,{scrollMode:"if-needed",boundary:i.scroll?l.parentElement:m,block:"end",behavior:"smooth"}),delete y.getBoundingClientRect;}}else a.removeAllRanges();setTimeout((function(){v&&Hl&&l.focus(),e.isUpdatingSelection=!1;}));}else n.selection=hc.toSlateRange(n,a,{exactMatch:!1,suppressThrow:!1});}}}var Wd=new WeakMap,Hd=new WeakMap;var Vd={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"},zd={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"},Ud={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Kd=function(e){var t=Vd[e],n=zd[e],r=Ud[e],o=t&&u.isKeyHotkey(t),i=n&&u.isKeyHotkey(n),a=r&&u.isKeyHotkey(r);return function(e){return !(!o||!o(e))||(!!(Wl&&i&&i(e))||!(Wl||!a||!a(e)))}},qd={isBold:Kd("bold"),isCompose:Kd("compose"),isMoveBackward:Kd("moveBackward"),isMoveForward:Kd("moveForward"),isDeleteBackward:Kd("deleteBackward"),isDeleteForward:Kd("deleteForward"),isDeleteLineBackward:Kd("deleteLineBackward"),isDeleteLineForward:Kd("deleteLineForward"),isDeleteWordBackward:Kd("deleteWordBackward"),isDeleteWordForward:Kd("deleteWordForward"),isExtendBackward:Kd("extendBackward"),isExtendForward:Kd("extendForward"),isExtendLineBackward:Kd("extendLineBackward"),isExtendLineForward:Kd("extendLineForward"),isItalic:Kd("italic"),isMoveLineBackward:Kd("moveLineBackward"),isMoveLineForward:Kd("moveLineForward"),isMoveWordBackward:Kd("moveWordBackward"),isMoveWordForward:Kd("moveWordForward"),isRedo:Kd("redo"),isSplitBlock:Kd("splitBlock"),isTransposeCharacter:Kd("transposeCharacter"),isUndo:Kd("undo"),isTab:Kd("tab"),isSelectAll:Kd("selectAll")};function Gd(e){e.preventDefault();}var Jd={beforeinput:function(e,n,r){var o=e,i=r.getConfig().readOnly;if(ql&&!i&&_d(r,o.target)){var a=r.selection,s=o.inputType,l=o.dataTransfer||o.data||void 0;if("insertCompositionText"!==s&&"deleteCompositionText"!==s){if(o.preventDefault(),!s.startsWith("delete")||s.startsWith("deleteBy")){var u=ra(o.getTargetRanges(),1)[0];if(u){var c=hc.toSlateRange(r,u,{exactMatch:!1,suppressThrow:!1});a&&t.Range.equals(a,c)||t.Transforms.select(r,c);}}if(a&&t.Range.isExpanded(a)&&s.startsWith("delete")){var f=s.endsWith("Backward")?"backward":"forward";t.Editor.deleteFragment(r,{direction:f});}else switch(s){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":t.Editor.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":t.Editor.deleteForward(r);break;case"deleteContentBackward":t.Editor.deleteBackward(r);break;case"deleteEntireSoftLine":t.Editor.deleteBackward(r,{unit:"line"}),t.Editor.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":t.Editor.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":t.Editor.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":t.Editor.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":t.Editor.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":t.Editor.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":t.Editor.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":t.Editor.insertBreak(r);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===s&&!pc.get(r))break;pl(l)?r.insertData(l):"string"==typeof l&&t.Editor.insertText(r,l);}}}},blur:function(e,n,r){var o=e,i=n.isUpdatingSelection,a=n.latestElement;if(!r.getConfig().readOnly&&!i&&_d(r,o.target)){var s=hc.findDocumentOrShadowRoot(r);if(a!==s.activeElement){var l=o.relatedTarget;if(!(l===hc.toDOMNode(r,r)||kl(l)&&l.hasAttribute("data-slate-spacer"))){if(null!=l&&Cl(l)&&hc.hasDOMNode(r,l)){var u=hc.toSlateNode(r,l);if(t.Element.isElement(u)&&!r.isVoid(u))return}if(Vl){var c=s.getSelection();null==c||c.removeAllRanges();}cc.delete(r);}}}},focus:function(e,t,n){var r=hc.toDOMNode(n,n),o=hc.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,Hl&&e.target!==r?r.focus():cc.set(n,!0);},click:function(e,n,r){if(!r.getConfig().readOnly&&Bd(r,e.target)&&Cl(e.target)){var o=hc.toSlateNode(r,e.target),i=hc.findPath(r,o);if(t.Editor.hasPath(r,i))if(t.Node.get(r,i)===o){var a=t.Editor.start(r,i),s=t.Editor.end(r,i),l=t.Editor.void(r,{at:a}),u=t.Editor.void(r,{at:s});if(l&&u&&t.Path.equals(l[1],u[1])){var c=t.Editor.range(r,a);t.Transforms.select(r,c);}}}},compositionstart:function(e,n,r){if(_d(r,e.target)){var o=r.selection;if(o&&t.Range.isExpanded(o)&&(t.Editor.deleteFragment(r),Promise.resolve().then((function(){$d(n,r,!0);}))),o&&(t.Range.isExpanded(o)||t.Range.isCollapsed(o))){var i=hc.toDOMRange(r,o).startContainer,a=i.textContent||"";Wd.set(r,a),Hd.set(r,i);}n.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);}(n,r);}},compositionend:function(e,n,r){var o=e;if(_d(r,o.target)){n.isComposing=!1;var i=r.selection;if(null!=i){(Kl||Hl)&&hc.cleanExposedTexNodeInSelectionBlock(r);for(var a=t.Range.isBackward(i)?i.focus:i.anchor,s=ra(t.Editor.node(r,[a.path[0]]),1)[0],l=0;l<a.path.length;l++){var u=ra(t.Editor.node(r,a.path.slice(0,l+1)),1)[0];if(t.Element.isElement(u)&&((Vl||Hl)&&"link"===u.type||"code"===u.type)){hc.setNewKey(s);break}}var c=o.data;if(c){if(r.getConfig().maxLength){var f=hc.getLeftLengthOfMaxLength(r);if(f<c.length)hc.toDOMRange(r,i).startContainer.textContent=Wd.get(r)||"",f>0&&t.Editor.insertText(r,c.slice(0,f)),n.changeViewState();else t.Editor.insertText(r,c);}else {var d=hc.findDocumentOrShadowRoot(r).getSelection();d&&function(e,n){if(t.Range.isCollapsed(n)){var r=n.anchor,o=n.focus;if(2===r.path.length&&2===o.path.length&&(0===r.offset||0===o.path.offset)){var i=t.Editor.node(e,r.path),a=0===r.offset?r.path:o.path,s=[a[0],a[1]-1];if(0===a[1])return !1;var l=t.Editor.node(e,s);if(t.Text.isText(l[0])&&t.Text.isText(i[0]))return !0}}}(r,i)&&(r.selection=hc.toSlateRange(r,d,{exactMatch:!1,suppressThrow:!1})),t.Editor.insertText(r,c);}Vl||setTimeout((function(){var e=r.selection;if(null!=e){var t=Hd.get(r);if(null!=t)hc.toDOMRange(r,e).startContainer!==t&&(t.textContent=Wd.get(r)||"");}}));}}}},compositionupdate:function(e,t,n){_d(n,e.target)&&(t.isComposing=!0);},keydown:function(e,n,r){var o=e,i=r.selection;if(!r.getConfig().readOnly&&!n.isComposing&&_d(r,o.target)){if(function(e,t){var n=Ku.get(e),r=n&&n.getMenus(),o=Gu.get(e),i=o&&o.getMenus(),a=ta(ta({},r),i);for(var s in a){var l=a[s],c=l.hotkey;if(c&&u.isHotkey(c,t)&&!l.isDisabled(e)){var f=l.getValue(e);l.exec(e,f);}}}(r,o),qd.isTab(o))return Gd(o),void r.handleTab();if(qd.isRedo(o))return Gd(o),void("function"==typeof r.redo&&r.redo());if(qd.isUndo(o))return Gd(o),void("function"==typeof r.undo&&r.undo());if(qd.isMoveLineBackward(o))return Gd(o),void t.Transforms.move(r,{unit:"line",reverse:!0});if(qd.isMoveLineForward(o))return Gd(o),void t.Transforms.move(r,{unit:"line"});if(qd.isExtendLineBackward(o))return Gd(o),void t.Transforms.move(r,{unit:"line",edge:"focus",reverse:!0});if(qd.isExtendLineForward(o))return Gd(o),void t.Transforms.move(r,{unit:"line",edge:"focus"});if(qd.isMoveBackward(o))return Gd(o),void(i&&t.Range.isCollapsed(i)?t.Transforms.move(r,{reverse:!0}):t.Transforms.collapse(r,{edge:"start"}));if(qd.isMoveForward(o))return Gd(o),void(i&&t.Range.isCollapsed(i)?t.Transforms.move(r):t.Transforms.collapse(r,{edge:"end"}));if(qd.isMoveWordBackward(o))return Gd(o),i&&t.Range.isExpanded(i)&&t.Transforms.collapse(r,{edge:"focus"}),void t.Transforms.move(r,{unit:"word",reverse:!0});if(qd.isMoveWordForward(o))return Gd(o),i&&t.Range.isExpanded(i)&&t.Transforms.collapse(r,{edge:"focus"}),void t.Transforms.move(r,{unit:"word"});if(qd.isSelectAll(o))return Gd(o),void r.selectAll();if(ql){if((Kl||Vl)&&i&&(qd.isDeleteBackward(o)||qd.isDeleteForward(o))&&t.Range.isCollapsed(i)){var a=t.Node.parent(r,i.anchor.path);if(t.Element.isElement(a)&&t.Editor.isVoid(r,a)&&t.Editor.isInline(r,a))return o.preventDefault(),void t.Transforms.delete(r,{unit:"block"})}}else {if(qd.isBold(o)||qd.isItalic(o)||qd.isTransposeCharacter(o))return void Gd(o);if(qd.isSplitBlock(o))return Gd(o),void t.Editor.insertBreak(r);if(qd.isDeleteBackward(o))return Gd(o),void(i&&t.Range.isExpanded(i)?t.Editor.deleteFragment(r,{direction:"backward"}):t.Editor.deleteBackward(r));if(qd.isDeleteForward(o))return Gd(o),void(i&&t.Range.isExpanded(i)?t.Editor.deleteFragment(r,{direction:"forward"}):t.Editor.deleteForward(r));if(qd.isDeleteLineBackward(o))return Gd(o),void(i&&t.Range.isExpanded(i)?t.Editor.deleteFragment(r,{direction:"backward"}):t.Editor.deleteBackward(r,{unit:"line"}));if(qd.isDeleteLineForward(o))return Gd(o),void(i&&t.Range.isExpanded(i)?t.Editor.deleteFragment(r,{direction:"forward"}):t.Editor.deleteForward(r,{unit:"line"}));if(qd.isDeleteWordBackward(o))return Gd(o),void(i&&t.Range.isExpanded(i)?t.Editor.deleteFragment(r,{direction:"backward"}):t.Editor.deleteBackward(r,{unit:"word"}));if(qd.isDeleteWordForward(o))return Gd(o),void(i&&t.Range.isExpanded(i)?t.Editor.deleteFragment(r,{direction:"forward"}):t.Editor.deleteForward(r,{unit:"word"}))}}},keypress:function(e,n,r){if(!ql&&!r.getConfig().readOnly&&_d(r,e.target)){e.preventDefault();var o=e.key;t.Editor.insertText(r,o);}},copy:function(e,t,n){var r=e;if(_d(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o);}},cut:function(e,n,r){var o=e,i=r.selection;if(!r.getConfig().readOnly&&_d(r,o.target)){o.preventDefault();var a=o.clipboardData;if(null!=a&&(r.setFragmentData(a),i))if(t.Range.isExpanded(i))t.Editor.deleteFragment(r);else {var s=t.Node.parent(r,i.anchor.path);t.Editor.isVoid(r,s)&&t.Transforms.delete(r);}}},paste:function(e,t,n){pc.set(n,!0);var r=e;if(!n.getConfig().readOnly&&_d(n,r.target)){var o=n.getConfig().customPaste;if(o)if(!1===o(n,r))return void pc.set(n,!1);if(!ql||Ml(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i);}}},dragover:function(e,n,r){if(Bd(r,e.target)){var o=hc.toSlateNode(r,e.target);t.Editor.isVoid(r,o)&&e.preventDefault();}},dragstart:function(e,n,r){var o=e;if(Bd(r,o.target)&&!r.getConfig().readOnly){var i=hc.toSlateNode(r,o.target),a=hc.findPath(r,i);if(t.Editor.isVoid(r,i)||t.Editor.void(r,{at:a,voids:!0})){var s=t.Editor.range(r,a);t.Transforms.select(r,s);}var l=o.dataTransfer;null!=l&&(n.isDraggingInternally=!0,r.setFragmentData(l));}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&Bd(n,r.target)&&(t.isDraggingInternally=!1);},drop:function(e,n,r){var o=e,i=o.dataTransfer;if(!r.getConfig().readOnly&&Bd(r,o.target)&&null!=i&&!(ql&&Vl&&i.files.length>0)){o.preventDefault();var a=r.selection,s=hc.findEventRange(r,o);t.Transforms.select(r,s),n.isDraggingInternally&&(a&&t.Transforms.delete(r,{at:a}),n.isDraggingInternally=!1),r.insertData(i),r.isFocused()||r.focus();}}},Yd=1,Xd=function(){function e(e){var n=this;this.id=Yd++,this.$textArea=null,this.$progressBar=y.default('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=y.default('<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=b.default((function(){var e=n.editorInstance;!function(e,n){var r=e.isComposing,o=e.isUpdatingSelection,i=e.isDraggingInternally;if(!(n.getConfig().readOnly||r||o||i)){var a=hc.findDocumentOrShadowRoot(n),s=a.activeElement,l=hc.toDOMNode(n,n),u=a.getSelection();if(s!==l)return cc.delete(n),void t.Transforms.deselect(n);if(e.latestElement=s,cc.set(n,!0),!u)return t.Transforms.deselect(n);var c=u.anchorNode,f=u.focusNode,d=_d(n,c)||Fd(n,c),p=_d(n,f)||Fd(n,f);if(d&&p){var h=hc.toSlateRange(n,u,{exactMatch:!1,suppressThrow:!1});t.Transforms.select(n,h);}}}(n,e);}),100);var r=y.default(e);if(0===r.length)throw new Error("Cannot find textarea DOM by selector '".concat(e,"'"));this.$box=r;var o=y.default('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=y.default('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,ll((function(){var e=n.editorInstance,t=hc.getWindow(e);t.document.addEventListener("selectionchange",n.onDOMSelectionChange),e.on("destroyed",(function(){t.document.removeEventListener("selectionchange",n.onDOMSelectionChange);})),o.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",n.changeViewState.bind(n));var i=e.getConfig(),a=i.onChange,s=i.scroll;a&&e.on("change",(function(){return a(e)})),s||(r.css("position","relative"),o.addClass("no-scroll")),n.onFocusAndOnBlur(),e.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent();}));}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=zu.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&&(m.default(Jd,(function(n,o){t.on(o,(function(t){n(t,e,r);}));})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",b.default((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-hc.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML="".concat(n,"/").concat(t);}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width","".concat(e,"%")),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show();}),1e3);},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;Md(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=y.default('<div class="w-e-text-placeholder">'.concat(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),ll((function(){$d(e,t);}));},e.prototype.destroy=function(){this.$textAreaContainer.remove();},e}();Mi("match",(function(e,t,n){return [function(t){var n=Z(this),r=X(t)?void 0:Se(t,e);return r?A(r,t,n):new RegExp(t)[e](or(n))},function(e){var r=et(this),o=or(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return $i(r,o);var a=r.unicode;r.lastIndex=0;for(var s,l=[],u=0;null!==(s=$i(r,o));){var c=or(s[0]);l[u]=c,""===c&&(r.lastIndex=Ri(o,Bt(r.lastIndex),a)),u++;}return 0===u?null:l}]}));function Qd(e){if(e.removeAttr){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&&Qd(t);}}function Zd(){return y.default('<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 ep(){return y.default('<div class="w-e-bar-divider"></div>')}function tp(e,t,n,r,o){if(void 0===r&&(r=""),void 0===o&&(o=!1),t){if(r){var i=Wl?"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?"".concat(n,"\n").concat(r):n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5");}}}var np=function(){function e(e,t,n){void 0===n&&(n=!1);var r=this;this.$elem=y.default('<div class="w-e-bar-item"></div>'),this.$button=y.default('<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 '".concat(o,"', expected 'button'"));var a=t.title,s=t.hotkey,l=void 0===s?"":s,u=t.iconSvg,c=void 0===u?"":u,f=this.$button;if(c){var d=y.default(c);Qd(d),f.append(d);}else f.text(a);tp(f,c,a,l,n),n&&c&&f.append(y.default('<span class="title">'.concat(a,"</span>"))),i&&f.css("width","".concat(i,"px")),f.attr("data-menu-key",e),this.$elem.append(f),ll((function(){return r.init()}));}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),pp(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick());}));},e.prototype.exec=function(){var e=pp(this),t=this.menu,n=t.getValue(e);this.setIcon(),this.setTooltip(),t.exec(e,n);},e.prototype.setActive=function(){var e=pp(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n);},e.prototype.setDisabled=function(){var e=pp(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.setIcon=function(){var e=pp(this),t=this.$button;if(this.menu.getIcon){var n=this.menu.getIcon(e);if(n){t.find("svg").remove();var r=y.default(n);Qd(r),t.append(r);}}},e.prototype.setTooltip=function(){var e=pp(this),t=this.$button;if(this.menu.getTitle){var n=this.menu.getTitle(e),r=this.menu.iconSvg;n&&r&&tp(t,r,n);}},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled();},e}(),rp=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return ea(t,e),t.prototype.onButtonClick=function(){},t}(np),op=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e);}return e.prototype.record=function(e){var t=Yu.get(e);null==t&&(t=new Set,Yu.set(e,t)),t.add(this),Xu.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=Xu.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=Xu.get(this);e&&e.emit("modalOrPanelHide");}},e}(),ip=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=y.default('<div class="w-e-drop-panel"></div>'),n}return ea(t,e),t.prototype.genSelfElem=function(){return null},t}(op),ap=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=Zd();o.$button.append(i);}return o}return ea(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=pp(this);if(null==this.dropPanel){var n=new ip(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n;}else {var o=this.dropPanel;if(o.isShow)o.hide();else {r=e.getPanelContentElem(t);o.renderContent(r),o.show();}}var i=this.dropPanel;if(i.isShow){var a=this.$elem,s=a.offset().left,l=a.parents(".w-e-bar");s-l.offset().left>=l.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"});}}},t}(np),sp=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=y.default('<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 ea(t,e),t.prototype.genSelfElem=function(){var e=this,t=y.default('<span class="btn-close">'.concat('<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=Xu.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","".concat(t,"px")),n.css(e);},t}(op);var lp=function(e){function n(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=y.default("body"),o.modal=null,o.menu=n,o}return ea(n,e),n.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal();},n.prototype.getPosition=function(){var e=pp(this),n=this.menu.getModalPositionNode(e);return t.Element.isElement(n)?od(e,n,"modal"):rd(e)},n.prototype.handleModal=function(){var e=pp(this),t=this.menu;if(null==this.modal){var n=new sp(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n;}else {(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1);}},n.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=pp(this),r=this.menu;if(null!=r.getModalContentElem){var o=hc.getTextarea(n),i=hc.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,s=r.getModalContentElem(n);if(e.renderContent(s),a)e.setStyle({left:"0",right:"0"});else {var l=this.getPosition();e.setStyle(l);}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||id(n,e.$elem),setTimeout((function(){n.blur();}));}},n}(np);var up=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=y.default('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width","".concat(n,"px")),r.$elem.on("click",(function(e){e.stopPropagation();})),r}return ea(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=y.default("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=y.default('<li data-value="'.concat(t,'"></li>'));if(i&&a.css(i),o){var s=y.default('<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(s),a.addClass("selected");}a.append(y.default('<span data-value="'.concat(t,'">').concat(r,"</span>"))),a.attr("title",r),n.append(a);})),t.append(n);},t.prototype.genSelfElem=function(){return null},t}(op);var cp=function(){function e(e,t,n){void 0===n&&(n=!1);var r=this;this.$elem=y.default('<div class="w-e-bar-item"></div>'),this.$button=y.default('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,s=t.iconSvg,l=void 0===s?"":s,u=t.hotkey,c=void 0===u?"":u;if("select"!==o)throw new Error("Invalid tag '".concat(o,"', expected 'select'"));var f=this.$button;a&&f.css("width","".concat(a,"px")),f.attr("data-menu-key",e),tp(f,l,i,c,n),this.$elem.append(f),this.menu=t,ll((function(){return r.init()}));}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),pp(e).hidePanelOrModal(),e.trigger();}));},e.prototype.trigger=function(){var e=this,t=pp(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new up(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=y.default(n).attr("data-value");e.onChange(r);}}));}else {if((r=this.selectList).isShow)r.hide();else {o=n.getOptions(t);r.renderList(o),r.show();}}}},e.prototype.onChange=function(e){var t=pp(this),n=this.menu;n.exec&&n.exec(t,e);},e.prototype.setSelectedValue=function(){var e=pp(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=Zd();o.empty(),o.text(r),o.append(i);},e.prototype.setDisabled=function(){var e=pp(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}(),fp=function(){function e(e){this.$elem=y.default('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=y.default('<div class="w-e-bar-item-menus-container"></div>'),this.$button=y.default('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=y.default(n);Qd(a),i.append(a);}else i.text(r);i.attr("data-menu-key",t);var s=Zd();i.append(s),o.append(i);var l=this.$container;o.append(l);var u=this.createObserver();this.observe(u);}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){y.default(e).hasClass("disabled")&&a++;})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r);}}));return r},e}(),dp=new WeakMap;function pp(e){var t=Ju.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function hp(e,t,n){void 0===n&&(n=!1);var r=dp.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new ap(e,t,n):a?new lp(e,t,n):new rp(e,t,n);}if("select"===o&&(r=new cp(e,t,n)),null==r)throw new Error("Invalid tag in menu ".concat(JSON.stringify(t)));return dp.set(t,r),r}var gp=C((function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports;})),vp=C((function(e){var t=gp.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports;})),yp=C((function(e){var t=gp.default;e.exports=function(e){var n=vp(e,"string");return "symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports;})),mp=C((function(e){e.exports=function(e,t,n){return (t=yp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports;})),bp=C((function(e){e.exports=function(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){mp(e,t,n[t]);}));}return e},e.exports.__esModule=!0,e.exports.default=e.exports;})),wp=C((function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports;})),xp=C((function(e){function t(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,yp(r.key),r);}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports;})),Ep=C((function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports;})),Sp=C((function(e){var t=gp.default;e.exports=function(e,n){if(n&&("object"==t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return Ep(e)},e.exports.__esModule=!0,e.exports.default=e.exports;})),Op=C((function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports;})),kp=C((function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports;})),Cp=C((function(e){e.exports=function(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kp(e,t);},e.exports.__esModule=!0,e.exports.default=e.exports;}));function Tp(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var Np=Tp(gp),Mp=Tp(bp),Lp=Tp(wp),Rp=Tp(xp),Pp=Tp(Sp),Dp=Tp(Op),jp=Tp(Ep),Ap=Tp(Cp),Ip={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);}},_p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Lp.default(this,e),this.init(t,n);}return Rp.default(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||Ip,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,Mp.default({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}(),Fp=new _p,Bp=function(){function e(){Lp.default(this,e),this.observers={};}return Rp.default(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t);})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e]);}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n);}));this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n));}));}}]),e}();function $p(){var e,t,n=new Promise((function(n,r){e=n,t=r;}));return n.resolve=e,n.reject=t,n}function Wp(e){return null==e?"":""+e}function Hp(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 Vp(e,t,n){var r=Hp(e,t,Object);r.obj[r.k]=n;}function zp(e,t){var n=Hp(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Up(e,t,n){var r=zp(e,n);return void 0!==r?r:zp(t,n)}function Kp(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]):Kp(e[r],t[r],n):e[r]=t[r]);return e}function qp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Gp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Jp(e){return "string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Gp[e]})):e}var Yp="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,s=r.slice(i,i+a).join(n),l=o[s];void 0===l&&r.length>i+a;)a++,l=o[s=r.slice(i,i+a).join(n)];if(void 0===l)return;if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s];var u=r.slice(i+a).join(n);return u?Xp(l,u,n):void 0}o=o[r[i]];}return o}}var Qp=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Lp.default(this,t),n=Pp.default(this,Dp.default(t).call(this)),Yp&&Bp.call(jp.default(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.default(t,e),Rp.default(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 s=zp(this.data,a);return s||!i||"string"!=typeof n?s: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),Vp(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 s=zp(this.data,a)||{};r?Kp(s,n,o):s=Mp.default({},s,n),Vp(this.data,a,s),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?Mp.default({},{},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}(Bp),Zp={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}},eh={},th=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Lp.default(this,t),n=Pp.default(this,Dp.default(t).call(this)),Yp&&Bp.call(jp.default(n)),function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e]);}));}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,jp.default(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=Fp.create("translator"),n}return Ap.default(t,e),Rp.default(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"!==Np.default(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),s=a.key,l=a.namespaces,u=l[l.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 u+d+s}return s}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||s,v=p&&p.exactUsedKey||s,y=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&h&&("string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof m||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,Mp.default({},n,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(i){var w="[object Array]"===y,x=w?[]:{},E=w?v:g;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var O="".concat(E).concat(i).concat(S);x[S]=this.translate(O,Mp.default({},n,{joinArrays:!1,ns:l})),x[S]===O&&(x[S]=h[S]);}h=x;}}else if(b&&"string"==typeof m&&"[object Array]"===y)(h=h.join(m))&&(h=this.extendTranslation(h,e,n,r));else {var k=!1,C=!1,T=void 0!==n.count&&"string"!=typeof n.count,N=t.hasDefaultValue(n),M=T?this.pluralResolver.getSuffix(c,n.count):"",L=n["defaultValue".concat(M)]||n.defaultValue;!this.isValidLookup(h)&&N&&(k=!0,h=L),this.isValidLookup(h)||(C=!0,h=s);var R=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:h,P=N&&L!==h&&this.options.updateMissing;if(C||k||P){if(this.logger.log(P?"updateKey":"missingKey",c,u,s,P?L:h),i){var D=this.resolve(s,Mp.default({},n,{keySeparator:!1}));D&&D.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");}var j=[],A=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&A&&A[0])for(var I=0;I<A.length;I++)j.push(A[I]);else "all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var _=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,u,t,P?r:R,P,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,u,t,P?r:R,P,n),o.emit("missingKey",e,u,t,h);};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?j.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){_([e],s+t,n["defaultValue".concat(t)]||L);}));})):_(j,s,L));}h=this.extendTranslation(h,e,n,p,r),C&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(u,":").concat(s)),(C||k)&&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(Mp.default({},n,{interpolation:Mp.default({},this.options.interpolation,n.interpolation)}));var a,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length;}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=Mp.default({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),s){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=Zp.handle(d,e,t,this.options&&this.options.postProcessPassResolved?Mp.default({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return "string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;n=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!eh["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(eh["".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,l,c=u,p=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(p,u,n,e,s);else f&&(i=a.pluralResolver.getSuffix(n,s.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(s.context)),f&&p.push(c+=i);for(;l=p.pop();)a.isValidLookup(t)||(r=l,t=a.getResource(n,e,l,s));}})));}));}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return !(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return !0;return !1}}]),t}(Bp);function nh(e){return e.charAt(0).toUpperCase()+e.slice(1)}var rh=function(){function e(t){Lp.default(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fp.create("languageUtils");}return Rp.default(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]=nh(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]=nh(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=nh(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}(),oh=[{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}],ih={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};var ah=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Lp.default(this,e),this.languageUtils=t,this.options=r,this.logger=Fp.create("pluralResolver"),this.rules=(n={},oh.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:ih[e.fc]};}));})),n);}return Rp.default(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}(),sh=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Lp.default(this,e),this.logger=Fp.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t);}return Rp.default(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:Jp,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?qp(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?qp(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?qp(t.nestingPrefix):t.nestingPrefixEscaped||qp("$t("),this.nestingSuffix=t.nestingSuffix?qp(t.nestingSuffix):t.nestingSuffixEscaped||qp(")"),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,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var o=Up(t,l,e);return s.alwaysFormat?s.format(o,void 0,n,Mp.default({},r,t,{interpolationkey:e})):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),u=i.join(s.formatSeparator).trim();return s.format(Up(t,l,a),u,n,Mp.default({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return [{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:"";}else {if(d){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i="";}else "string"==typeof i||s.useRawValueToEscape||(i=Wp(i));var l=t.safeValue(i);if(e=e.replace(o[0],l),d?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.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=Mp.default({},i);function s(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=Mp.default({},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 l=[],u=!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(),l=c,u=!0;}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=Wp(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=l.reduce((function(e,t){return o.format(e,t,i.lng,Mp.default({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0;}return e}}]),e}();var lh=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Lp.default(this,t),o=Pp.default(this,Dp.default(t).call(this)),Yp&&Bp.call(jp.default(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=Fp.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return Ap.default(t,e),Rp.default(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),l.indexOf(t)<0&&l.push(t)));})),r||s.push(e);})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{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=Hp(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||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(s,l){s&&l&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a);}),i):a(s,l);})):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,Mp.default({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r));}}]),t}(Bp);function uh(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 ch(){}var fh=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(Lp.default(this,t),e=Pp.default(this,Dp.default(t).call(this)),Yp&&Bp.call(jp.default(e)),e.options=uh(n),e.services={},e.logger=Fp,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),Pp.default(e,jp.default(e));setTimeout((function(){e.init(n,r);}),0);}return e}return Ap.default(t,e),Rp.default(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=Mp.default({},{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"===Np.default(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Np.default(e[2])||"object"===Np.default(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e];}));}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,uh(t)),this.format=this.options.interpolation.format,n||(n=ch),!this.options.isClone){this.modules.logger?Fp.init(r(this.modules.logger),this.options):Fp.init(null,this.options);var o=new rh(this.options);this.store=new Qp(this.options.resources,this.options);var i=this.services;i.logger=Fp,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new ah(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new sh(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new lh(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 th(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r));})),this.modules.external.forEach((function(t){t.init&&t.init(e);}));}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0]);}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return (n=e.store)[t].apply(n,arguments)};}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return (n=e.store)[t].apply(n,arguments),e};}));var s=$p(),l=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),s.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?l():setTimeout(l,0),s}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ch,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e);}));};if(r)i(r);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)}));this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n);}else n(null);}},{key:"reloadResources",value:function(e,t,n){var r=$p();return e||(e=this.languages),t||(t=this.options.ns),n||(n=ch),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&&Zp.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=$p();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"!==Np.default(o)){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];i=r.options.overloadTranslationOptionHandler([t,o].concat(s));}else i=Mp.default({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var u=r.options.keySeparator||".",c=n?"".concat(n).concat(u).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 s=n.precheck(this,a);if(void 0!==s)return s}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=$p();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=$p();"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){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return "rtl";return ["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"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{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]:ch,o=Mp.default({},this.options,n,{isClone:!0}),i=new t(o);return ["store","services","language"].forEach((function(t){i[t]=e[t];})),i.services=Mp.default({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new th(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}(Bp),dh=new fh,ph="translation";function hh(e){return dh.on("languageChanged",e),function(){return dh.off("languageChanged",e)}}dh.init({lng:"zh-CN",resources:{}});var gh=dh.t.bind(dh);function vh(e,n){var r=e.selection;return null!=r&&(!t.Range.isCollapsed(r)&&(!hc.getSelectedElems(e).some((function(t){if(e.isVoid(t))return !0;var n=t.type;return !!["pre","code","table"].includes(n)||void 0}))&&!!t.Text.isText(n)))}var yh=function(){function e(){var e=this;this.$elem=y.default('<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.lngListen=function(){},this.changeHoverbarState=x.default((function(){var n=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},o=r.node,i=void 0===o?null:o,a=r.menuKeys,s=void 0===a?[]:a;if((null!=i&&e.changeItemsState(),i&&t.Element.isElement(i))&&(n&&e.isSamePath(i,e.prevSelectedNode)))return;e.hideAndClean(),null!=i&&(e.registerItems(s),e.setPosition(i),e.show()),e.prevSelectedNode=i;}),200),ll((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),hc.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);})),this.lngListen=hh((function(){e.menus={},e.hideAndClean(),e.getEditorInstance().deselect();}));}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;ll((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=ep();n.append(r);}}));},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=yc[e];if(null==o)throw new Error("Not found menu item factory by key '".concat(e,"'"));if("function"!=typeof o)throw new Error("Menu item factory (key='".concat(e,"') is not a function"));r=o(),n[e]=r;}var i=t.getMenuConfig(e);i&&void 0!==i.iconSvg&&(r.iconSvg=i.iconSvg);var a=hp(e,r);this.hoverbarItems.push(a),Ju.set(a,t),this.$elem.append(a.$elem);},e.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),t.Element.isElement(e)){var o=od(n,e,"bar");return r.css(o),void id(n,r)}if(t.Text.isText(e)){o=rd(n);return r.css(o),void id(n,r)}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 n=this.getHoverbarKeysConf(),r=null,o=[],i=function(i){var a=n[i],s=a.match,l=a.menuKeys,u=void 0===l?[]:l,c=s||function(e,t){return hc.checkNodeType(t,i)},f=ra(t.Editor.nodes(e,{match:function(t){return c(e,t)},universal:!0}),1),d=f[0];if(null!=d)return r=d[0],o=u,"break"};for(var a in n){if("break"===i(a))break}return null==r||0===o.length?null:{node:r,menuKeys:o}},e.prototype.getEditorInstance=function(){var e=qu.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=vh),t},e.prototype.isSamePath=function(e,n){if(null==e||null==n)return !1;var r=hc.findPath(null,e),o=hc.findPath(null,n);return t.Path.equals(r,o)},e.prototype.destroy=function(){var e;this.changeHoverbarState.cancel(),this.$elem.remove(),null===(e=this.lngListen)||void 0===e||e.call(this),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null;},e}();function mh(e,n,r,o){if(nc.set(e,n),rc.set(e,r),t.Element.isElement(e)){var i=e.children;if((void 0===i?[]:i).forEach((function(t,n){return mh(t,n,e,o)})),t.Editor.isVoid(o,e)){var a=ra(t.Node.texts(e),1),s=ra(a[0],1)[0];nc.set(s,0),rc.set(s,e);}}}var bh=TypeError,wh=Object.getOwnPropertyDescriptor,xh=P&&!function(){if(void 0!==this)return !0;try{Object.defineProperty([],"length",{writable:!1}).length=1;}catch(e){return e instanceof TypeError}}()?function(e,t){if(kn(e)&&!wh(e,"length").writable)throw new bh("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Eh=TypeError,Sh=function(e,t){if(!delete e[t])throw new Eh("Cannot delete property "+we(t)+" of "+we(e))},Oh=Zr("splice"),kh=Math.max,Ch=Math.min;ln({target:"Array",proto:!0,forced:!Oh},{splice:function(e,t){var n,r,o,i,a,s,l=Le(this),u=$t(l),c=_t(e,u),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=u-c):(n=f-2,r=Ch(kh(jt(t),0),u-c)),ca(u+n-r),o=In(l,r),i=0;i<r;i++)(a=c+i)in l&&wr(o,i,l[a]);if(o.length=r,n<r){for(i=c;i<u-r;i++)s=i+n,(a=i+r)in l?l[s]=l[a]:Sh(l,s);for(i=u;i>u-r+n;i--)Sh(l,i-1);}else if(n>r)for(i=u-r;i>c;i--)s=i+n-1,(a=i+r-1)in l?l[s]=l[a]:Sh(l,s);for(i=0;i<n;i++)l[i+c]=arguments[i+2];return xh(l,u-r+n),o}});var Th=function(){function e(e,t){var n=this;this.$toolbar=y.default('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.lngListen=function(){},this.changeToolbarState=x.default((function(){n.toolbarItems.forEach((function(e){e.changeMenuState();}));}),200),this.config=t;var r=y.default(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '".concat(e,"'"));this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),ll((function(){n.initToolbar(),n.lngListen=hh((function(){return n.initToolbar()})),n.getEditorInstance().on("change",n.changeToolbarState);}));}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.initToolbar=function(){this.menus={};var e=this.$toolbar;null==e||e.empty(),this.registerItems(),this.changeToolbarState();},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,s=void 0===a?{index:0,keys:[]}:a,l=r.excludeKeys,u=void 0===l?[]:l,c=E.default(i);s.keys.length>0&&("string"==typeof s.keys&&(s.keys=[s.keys]),s.keys.forEach((function(e,t){c.splice(s.index+t,0,e);})));var f=c.filter((function(e){if("string"==typeof e){if(u.includes(e))return !1}else if(u.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=ep();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 fp(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,s=void 0===a?[]:a;i.forEach((function(e){s.includes(e)||t.registerSingleItem(e,r);})),n.append(r.$elem);},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof fp,o=this.menus,i=o[e];if(null==i){var a=yc[e];if(null==a)throw new Error("Not found menu item factory by key '".concat(e,"'"));if("function"!=typeof a)throw new Error("Menu item factory (key='".concat(e,"') is not a function"));i=a(),o[e]=i;}else console.warn("Duplicated toolbar menu key '".concat(e,"'\n重复注册了菜单栏 menu '").concat(e,"'"));var s=n.getMenuConfig(e);s&&void 0!==s.iconSvg&&(i.iconSvg=s.iconSvg);var l=hp(e,i,r);(this.toolbarItems.push(l),Ju.set(l,n),r)?t.appendBarItem(l):t.$toolbar.append(l.$elem);},e.prototype.getEditorInstance=function(){var e=Uu.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){var e;this.$toolbar.remove(),null===(e=this.lngListen)||void 0===e||e.call(this),this.menus={},this.toolbarItems=[];},e}();var Nh=dt.EXISTS,Mh=Function.prototype,Lh=z(Mh.toString),Rh=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ph=z(Rh.exec);P&&!Nh&&Ea(Mh,"name",{configurable:!0,get:function(){try{return Ph(Rh,Lh(this))[1]}catch(e){return ""}}}),e.DOMComment=yl,e.DOMElement=ml,e.DOMNode=vl,e.DOMRange=wl,e.DOMSelection=xl,e.DOMStaticRange=El,e.DOMText=bl,e.DomEditor=hc,e.ELEM_TO_HTML_CONF=Mc,e.PARSE_ELEM_HTML_CONF=Bc,e.PARSE_STYLE_HTML_FN_LIST=Fc,e.PRE_PARSE_HTML_CONF_LIST=_c,e.RENDER_ELEM_CONF=Ed,e.RENDER_STYLE_HANDLER_LIST=xd,e.STYLE_TO_HTML_FN_LIST=Nc,e.TEXT_TAGS=Ic,e.Toolbar=Th,e.coreCreateEditor=function(n){var r=n.selector,o=void 0===r?"":r,i=n.config,a=void 0===i?{}:i,s=n.content,l=n.html,u=n.plugins,c=void 0===u?[]:u,f=nr(function(n){var r=n,o=r.insertText,i=r.insertNode,a=r.insertFragment,s=r.dangerouslyInsertHtml;return r.insertText=function(e){if(r.getConfig().maxLength){var t=hc.getLeftLengthOfMaxLength(r);t<=0||(t<e.length?o(e.slice(0,t)):o(e));}else o(e);},r.insertNode=function(e){if(r.getConfig().maxLength){var n=hc.getLeftLengthOfMaxLength(r);n<=0||n<t.Node.string(e).length||i(e);}else i(e);},r.insertFragment=function(e){if(r.getConfig().maxLength){if(e.length>0){var n=e[0];if(hc.getLeftLengthOfMaxLength(r)<t.Node.string(n).length)return;a([n]);for(var o=1;o<e.length;o++)r.insertNode(e[o]);}}else a(e);},r.dangerouslyInsertHtml=function(t,n){if(void 0===t&&(t=""),void 0===n&&(n=!1),t)if(r.getConfig().maxLength){var o=hc.getLeftLengthOfMaxLength(r);if(!(o<=0)){var i=document.createElement("div");i.innerHTML=t;var a=Array.from(i.childNodes).reduce((function(t,n){var r=n.nodeType,o=n.nodeName;return n?r===e.NodeType.TEXT_NODE?t+(n.textContent||""):r===e.NodeType.ELEMENT_NODE?Mf.has(o.toLowerCase())?t:t+(n.textContent||""):t:t}),"");o<a.length||s(t,n);}}else s(t,n);},r}(td(function(e){var n=e;return n.select=function(e){t.Transforms.select(n,e);},n.deselect=function(){var r=n.selection,o=hc.findDocumentOrShadowRoot(n).getSelection();o&&o.rangeCount>0&&o.removeAllRanges(),r&&t.Transforms.deselect(e);},n.move=function(n,r){void 0===r&&(r=!1),n&&(n<0||t.Transforms.move(e,{distance:n,unit:"character",reverse:r}));},n.moveReverse=function(e){n.move(e,!0);},n.restoreSelection=function(){var e=fc.get(n);null!=e&&(n.focus(),t.Transforms.select(n,e));},n.getSelectionPosition=function(){return rd(n)},n.getNodePosition=function(e){return od(n,e)},n.isSelectedAll=function(){var e=n.selection;if(null==e)return !1;var r=ra(t.Range.edges(e),2),o=r[0],i=r[1],a=ra(t.Editor.edges(n,[]),2),s=a[0],l=a[1];return !(!t.Point.equals(o,s)||!t.Point.equals(i,l))},n.selectAll=function(){var e=t.Editor.start(n,[]),r=t.Editor.end(n,[]);t.Transforms.select(n,{anchor:e,focus:r});},n}(Rf(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in yc)e.push(t);return e},t.getConfig=function(){var e=Qu.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 n=e;return n.id="wangEditor-".concat(gc++),n.isDestroyed=!1,n.isFullScreen=!1,n.focus=function(e){if(hc.toDOMNode(n,n).focus({preventScroll:!0}),cc.set(n,!0),e){var r=t.Editor.end(n,[]);t.Transforms.select(n,r);}else {var o=fc.get(n);o?t.Transforms.select(n,o):t.Transforms.select(n,t.Editor.start(n,[]));}},n.isFocused=function(){return !!cc.get(n)},n.blur=function(){hc.toDOMNode(n,n).blur(),t.Transforms.deselect(n),cc.set(n,!1);},n.updateView=function(){hc.getTextarea(n).changeViewState();var e=hc.getToolbar(n);e&&e.changeToolbarState();var t=hc.getHoverbar(n);t&&t.changeHoverbarState();},n.destroy=function(){if(!n.isDestroyed){var e=hc.getTextarea(n);e.destroy(),Vu.delete(n),zu.delete(e);var t=hc.getToolbar(n);t&&(t.destroy(),Ku.delete(n),Uu.delete(t));var r=hc.getHoverbar(n);r&&(r.destroy(),Gu.delete(n),qu.delete(r)),n.isDestroyed=!0,n.emit("destroyed");}},n.scrollToElem=function(e){if(!n.getConfig().scroll){var t="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return t+="\nYou has disabled editor scroll, please do this yourself",void console.warn(t)}var r=y.default("#".concat(e));if(0!==r.length){var o=r[0];if(!hc.hasDOMNode(n,o))return t="Element (found by id is '".concat(e,"') is not in editor DOM"),t+="\n 通过 id '".concat(e,"' 找到的 element 不在 editor DOM 之内"),void console.error(t,o);var i=hc.getTextarea(n),a=i.$textAreaContainer,s=i.$scroll,l=r.offset().top,u=a.offset().top;s[0].scrollBy({top:l-u,behavior:"smooth"});}},n.showProgressBar=function(e){e<1||hc.getTextarea(n).changeProgress(e);},n.hidePanelOrModal=function(){var e=Yu.get(n);null!=e&&e.forEach((function(e){return e.hide()}));},n.enable=function(){n.getConfig().readOnly=!1,n.updateView();},n.disable=function(){n.getConfig().readOnly=!0,n.updateView();},n.isDisabled=function(){return n.getConfig().readOnly},n.toDOMNode=function(e){return hc.toDOMNode(n,e)},n.fullScreen=function(){if(!n.isFullScreen){var e=null,t=hc.getToolbar(n);t&&(e=t.$box);var r=hc.getTextarea(n).$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()),n.isFullScreen=!0,n.emit("fullScreen");}},n.unFullScreen=function(){if(n.isFullScreen){var e=hc.getTextarea(n).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),n.isFullScreen=!1,n.emit("unFullScreen");}),200);}},n.getEditableContainer=function(){return hc.getTextarea(n).$textAreaContainer[0]},n}(function(e){var n=e;return n.setFragmentData=function(e){var r=n.selection;if(r){var o=ra(t.Range.edges(r),2),i=o[0],a=o[1],s=t.Editor.void(n,{at:i.path}),l=t.Editor.void(n,{at:a.path});if(!t.Range.isCollapsed(r)||s){var u=hc.toDOMRange(n,r),c=u.cloneContents(),f=c.childNodes[0];if(c.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(f=e);})),l){var d=ra(l,1)[0],p=u.cloneRange(),h=hc.toDOMNode(n,d);p.setEndAfter(h),c=p.cloneContents();}if(s&&(f=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":"";})),Nl(f)){var g=f.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(f),c.appendChild(g),f=g;}var v=n.getFragment(),y=JSON.stringify(v),m=window.btoa(encodeURIComponent(y));f.setAttribute("data-slate-fragment",m),e.setData("application/x-slate-fragment",m);var b=c.ownerDocument.createElement("div");return b.appendChild(c),b.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(b),e.setData("text/html",b.innerHTML),e.setData("text/plain",Al(b)),c.ownerDocument.body.removeChild(b),e}}},n.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),s=JSON.parse(a);n.insertFragment(s);}else {var l=e.getData("text/plain"),u=e.getData("text/html");if(u)n.dangerouslyInsertHtml(u);else {var c=hc.getLeftLengthOfMaxLength(n);if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=na(f),h=p.next();!h.done;h=p.next()){var g=h.value;d&&c>0&&t.Transforms.splitNodes(n,{always:!0}),n.insertText(g),d=!0;}}catch(e){r={error:e};}finally{try{h&&!h.done&&(o=p.return)&&o.call(p);}finally{if(r)throw r.error}}}}}},n}(t.createEditor()))))))));if(o&&function(e,t){return Sf(e,"data-w-e-textarea",t)}(f,o))throw new Error("Repeated create editor by selector '".concat(o,"'"));var d=function(e){void 0===e&&(e={});var t=E.default(vc),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return m.default(t,(function(e,t){n[t]=ta(ta({},e),o[t]||{});})),delete e.MENU_CONF,ta({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return []},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert("".concat(t,":\n").concat(e));}},e)}(a);Qu.set(f,d);var p=d.hoverbarKeys,h=void 0===p?{}:p;if(c.forEach((function(e){f=e(f);})),null!=l&&(f.children=Of(f,l)),s&&s.length&&(f.children=s),0===f.children.length&&(f.children=[{type:"paragraph",children:[{text:""}]}]),hc.normalizeContent(f),o){var g=new Xd(o);Vu.set(f,g),zu.set(g,f),g.changeViewState(),ll((function(){var e=g.$scroll;if(null!=e&&e.height()<300){console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e);}}));var v=void 0;Object.keys(h).length>0&&(v=new yh,qu.set(v,f),Gu.set(f,v)),f.on("change",(function(){f.hidePanelOrModal();})),f.on("scroll",(function(){f.hidePanelOrModal();}));}else f.children.forEach((function(e,t){return mh(e,t,f,f)}));var b=d.onCreated,w=d.onDestroyed;return b&&f.on("created",(function(){return b(f)})),w&&f.on("destroyed",(function(){return w(f)})),ll((function(){return f.emit("created")})),f},e.coreCreateToolbar=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 Sf(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '".concat(n,"'"));var i=ta({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new Th(n,i);return Uu.set(a,e),Ku.set(e,a),a},e.createUploader=function(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,s=e.maxNumberOfFiles,l=void 0===s?100:s,u=e.meta,c=void 0===u?{}:u,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,b=void 0===y?1e4:y,w=e.onBeforeUpload,x=void 0===w?function(e){return e}:w,E=e.onSuccess,k=void 0===E?function(e,t){}:E,C=e.onError,T=void 0===C?function(e,t,n){console.error("".concat(e.name," upload error"),t,n);}:C,N=e.onProgress,M=void 0===N?function(e){}:N;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var L=n;d&&(L=function(e,t){var n=ra(e.split("#"),2),r=n[0],o=n[1],i=[];m.default(t,(function(e,t){i.push("".concat(t,"=").concat(e));}));var a=i.join("&");return r=r.indexOf("?")>0?"".concat(r,"&").concat(a):"".concat(r,"?").concat(a),o?"".concat(r,"#").concat(o):r}(L,c));var R=new S.default({onBeforeUpload:x,restrictions:{maxFileSize:a,maxNumberOfFiles:l},meta:c}).use(O.default,{endpoint:L,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:b});return R.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{k(e,r);}catch(e){console.error("wangEditor upload file - onSuccess error",e);}R.removeFile(e.id);})),R.on("progress",(function(e){e<1||M(e);})),R.on("upload-error",(function(e,t,n){try{T(e,t,n);}catch(e){console.error("wangEditor upload file - onError error",e);}R.removeFile(e.id);})),R.on("restriction-failed",(function(e,t){try{T(e,t);}catch(e){console.error("wangEditor upload file - onError error",e);}R.removeFile(e.id);})),R},e.genModalButtonElems=function(e,t){var n=y.default('<div class="button-container"></div>'),r=y.default('<button type="button" id="'.concat(e,'">').concat(t,"</button>"));return n.append(r),[n[0],r[0]]},e.genModalInputElems=function(e,t,n){var r=y.default('<label class="babel-container"></label>');r.append("<span>".concat(e,"</span>"));var o=y.default('<input type="text" id="'.concat(t,'" placeholder="').concat(n||"",'">'));return r.append(o),[r[0],o[0]]},e.genModalTextareaElems=function(e,t,n){var r=y.default('<label class="babel-container"></label>');r.append("<span>".concat(e,"</span>"));var o=y.default('<textarea type="text" id="'.concat(t,'" placeholder="').concat(n||"",'"></textarea>'));return r.append(o),[r[0],o[0]]},e.getDefaultView=Sl,e.getEditableChild=jl,e.getEditableChildAndIndex=Dl,e.getElementById=Pl,e.getFirstVoidChild=Il,e.getPlainText=Al,e.getTagName=Fl,e.hasShadowRoot=Rl,e.i18nAddResources=function(e,t){dh.addResourceBundle(e,ph,t,!0,!0);},e.i18nChangeLanguage=function(e){dh.changeLanguage(e);},e.i18nGetResources=function(e){return dh.getResourceBundle(e,ph)},e.i18nListenLanguage=hh,e.isDOMComment=Ol,e.isDOMElement=kl,e.isDOMNode=Cl,e.isDOMSelection=Tl,e.isDOMText=Nl,e.isDataTransfer=pl,e.isDocument=fl,e.isHTMLElememt=gl,e.isPlainTextOnlyPaste=Ml,e.isShadowRoot=dl,e.normalizeDOMPoint=Ll,e.registerElemToHtmlConf=function(e){var t=e.type,n=e.elemToHtml;Mc[t||""]=n;},e.registerMenu=function(e,t){var n=e.key,r=e.factory,o=e.config,i=ta(ta({},o),t||{});if(null!=yc[n])throw new Error("Duplicated key '".concat(n,"' in menu items"));yc[n]=r,function(e,t){null!=t&&(vc[e]=t);}(n,i);},e.registerParseElemHtmlConf=function(e){var t=e.selector,n=e.parseElemHtml;Bc[t]=n;},e.registerParseStyleHtmlHandler=function(e){Fc.push(e);},e.registerPreParseHtmlConf=function(e){_c.push(e);},e.registerRenderElemConf=function(e){var t=e.type,n=e.renderElem;Ed[t||""]=n;},e.registerStyleHandler=function(e){xd.push(e);},e.registerStyleToHtmlHandler=function(e){Nc.push(e);},e.t=gh,e.walkTextNodes=_l,Object.defineProperty(e,"__esModule",{value:!0});}));
21641
21641
 
21642
21642
  });
21643
21643
 
@@ -21677,34 +21677,34 @@
21677
21677
  dist$6.i18nAddResources('zh-CN', zhResources);
21678
21678
 
21679
21679
  var dist$5 = createCommonjsModule$1(function (module, exports) {
21680
- !function(t,e){e(exports,dist$6,require$$2,dist$7,require$$1,require$$4,lodash_throttle);}(commonjsGlobal,(function(t,e,n,r,o,i,u){function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var c=a(o),l=a(u);e.i18nAddResources("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",cancelTitle:"Cancel full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",editSize:"Edit size",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link",ok:"Ok",width:"Width",height:"Height"},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"},formatPainter:{title:"Format Painter"}}),e.i18nAddResources("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:"全屏",cancelTitle:"取消全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",editSize:"修改尺寸",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接",ok:"确定",width:"宽度",height:"高度"},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:"待办"},formatPainter:{title:"格式刷"}});var s={type:"paragraph",renderElem:function(t,e,r){return n.jsx("p",null,e)}};var f={type:"paragraph",elemToHtml:function(t,e){return ""===e?"<p><br></p>":"<p>"+e+"</p>"}},d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function p(t){var e={exports:{}};return t(e,e.exports),e.exports}var h,v,g=function(t){return t&&t.Math===Math&&t},m=g("object"==typeof globalThis&&globalThis)||g("object"==typeof window&&window)||g("object"==typeof self&&self)||g("object"==typeof d&&d)||g("object"==typeof d&&d)||function(){return this}()||Function("return this")(),y=function(t){try{return !!t()}catch(t){return !0}},b=!y((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),w=!y((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),S=Function.prototype.call,x=w?S.bind(S):function(){return S.apply(S,arguments)},E={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,T=k&&!E.call({1:2},1)?function(t){var e=k(this,t);return !!e&&e.enumerable}:E,M={f:T},I=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},O=Function.prototype,N=O.call,H=w&&O.bind.bind(N,N),D=w?H:function(t){return function(){return N.apply(t,arguments)}},j=D({}.toString),L=D("".slice),z=function(t){return L(j(t),8,-1)},P=Object,A=D("".split),C=y((function(){return !P("z").propertyIsEnumerable(0)}))?function(t){return "String"===z(t)?A(t,""):P(t)}:P,V=function(t){return null==t},F=TypeError,B=function(t){if(V(t))throw new F("Can't call method on "+t);return t},R=function(t){return C(B(t))},$="object"==typeof document&&document.all,_=void 0===$&&void 0!==$?function(t){return "function"==typeof t||t===$}:function(t){return "function"==typeof t},q=function(t){return "object"==typeof t?null!==t:_(t)},W=function(t,e){return arguments.length<2?(n=m[t],_(n)?n:void 0):m[t]&&m[t][e];var n;},G=D({}.isPrototypeOf),U=m.navigator,K=U&&U.userAgent,X=K?String(K):"",J=m.process,Y=m.Deno,Q=J&&J.versions||Y&&Y.version,Z=Q&&Q.v8;Z&&(v=(h=Z.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!v&&X&&(!(h=X.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=X.match(/Chrome\/(\d+)/))&&(v=+h[1]);var tt=v,et=m.String,nt=!!Object.getOwnPropertySymbols&&!y((function(){var t=Symbol("symbol detection");return !et(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&tt&&tt<41})),rt=nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ot=Object,it=rt?function(t){return "symbol"==typeof t}:function(t){var e=W("Symbol");return _(e)&&G(e.prototype,ot(t))},ut=String,at=TypeError,ct=function(t){if(_(t))return t;throw new at(function(t){try{return ut(t)}catch(t){return "Object"}}(t)+" is not a function")},lt=function(t,e){var n=t[e];return V(n)?void 0:ct(n)},st=TypeError,ft=Object.defineProperty,dt=function(t,e){try{ft(m,t,{value:e,configurable:!0,writable:!0});}catch(n){m[t]=e;}return e},pt=p((function(t){var e="__core-js_shared__",n=t.exports=m[e]||dt(e,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),ht=function(t,e){return pt[t]||(pt[t]=e||{})},vt=Object,gt=function(t){return vt(B(t))},mt=D({}.hasOwnProperty),yt=Object.hasOwn||function(t,e){return mt(gt(t),e)},bt=0,wt=Math.random(),St=D(1..toString),xt=function(t){return "Symbol("+(void 0===t?"":t)+")_"+St(++bt+wt,36)},Et=m.Symbol,kt=ht("wks"),Tt=rt?Et.for||Et:Et&&Et.withoutSetter||xt,Mt=function(t){return yt(kt,t)||(kt[t]=nt&&yt(Et,t)?Et[t]:Tt("Symbol."+t)),kt[t]},It=TypeError,Ot=Mt("toPrimitive"),Nt=function(t,e){if(!q(t)||it(t))return t;var n,r=lt(t,Ot);if(r){if(void 0===e&&(e="default"),n=x(r,t,e),!q(n)||it(n))return n;throw new It("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&_(n=t.toString)&&!q(r=x(n,t)))return r;if(_(n=t.valueOf)&&!q(r=x(n,t)))return r;if("string"!==e&&_(n=t.toString)&&!q(r=x(n,t)))return r;throw new st("Can't convert object to primitive value")}(t,e)},Ht=function(t){var e=Nt(t,"string");return it(e)?e:e+""},Dt=m.document,jt=q(Dt)&&q(Dt.createElement),Lt=function(t){return jt?Dt.createElement(t):{}},zt=!b&&!y((function(){return 7!==Object.defineProperty(Lt("div"),"a",{get:function(){return 7}}).a})),Pt=Object.getOwnPropertyDescriptor,At={f:b?Pt:function(t,e){if(t=R(t),e=Ht(e),zt)try{return Pt(t,e)}catch(t){}if(yt(t,e))return I(!x(M.f,t,e),t[e])}},Ct=b&&y((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Vt=String,Ft=TypeError,Bt=function(t){if(q(t))return t;throw new Ft(Vt(t)+" is not an object")},Rt=TypeError,$t=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,qt="enumerable",Wt="configurable",Gt="writable",Ut={f:b?Ct?function(t,e,n){if(Bt(t),e=Ht(e),Bt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Gt in n&&!n[Gt]){var r=_t(t,e);r&&r[Gt]&&(t[e]=n.value,n={configurable:Wt in n?n[Wt]:r[Wt],enumerable:qt in n?n[qt]:r[qt],writable:!1});}return $t(t,e,n)}:$t:function(t,e,n){if(Bt(t),e=Ht(e),Bt(n),zt)try{return $t(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Rt("Accessors not supported");return "value"in n&&(t[e]=n.value),t}},Kt=b?function(t,e,n){return Ut.f(t,e,I(1,n))}:function(t,e,n){return t[e]=n,t},Xt=Function.prototype,Jt=b&&Object.getOwnPropertyDescriptor,Yt=yt(Xt,"name"),Qt={EXISTS:Yt,PROPER:Yt&&"something"===function(){}.name,CONFIGURABLE:Yt&&(!b||b&&Jt(Xt,"name").configurable)},Zt=D(Function.toString);_(pt.inspectSource)||(pt.inspectSource=function(t){return Zt(t)});var te,ee,ne,re=pt.inspectSource,oe=m.WeakMap,ie=_(oe)&&/native code/.test(String(oe)),ue=ht("keys"),ae=function(t){return ue[t]||(ue[t]=xt(t))},ce={},le="Object already initialized",se=m.TypeError,fe=m.WeakMap;if(ie||pt.state){var de=pt.state||(pt.state=new fe);de.get=de.get,de.has=de.has,de.set=de.set,te=function(t,e){if(de.has(t))throw new se(le);return e.facade=t,de.set(t,e),e},ee=function(t){return de.get(t)||{}},ne=function(t){return de.has(t)};}else {var pe=ae("state");ce[pe]=!0,te=function(t,e){if(yt(t,pe))throw new se(le);return e.facade=t,Kt(t,pe,e),e},ee=function(t){return yt(t,pe)?t[pe]:{}},ne=function(t){return yt(t,pe)};}var he={set:te,get:ee,has:ne,enforce:function(t){return ne(t)?ee(t):te(t,{})},getterFor:function(t){return function(e){var n;if(!q(e)||(n=ee(e)).type!==t)throw new se("Incompatible receiver, "+t+" required");return n}}},ve=p((function(t){var e=Qt.CONFIGURABLE,n=he.enforce,r=he.get,o=String,i=Object.defineProperty,u=D("".slice),a=D("".replace),c=D([].join),l=b&&!y((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),f=t.exports=function(t,r,f){"Symbol("===u(o(r),0,7)&&(r="["+a(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!yt(t,"name")||e&&t.name!==r)&&(b?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&f&&yt(f,"arity")&&t.length!==f.arity&&i(t,"length",{value:f.arity});try{f&&yt(f,"constructor")&&f.constructor?b&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var d=n(t);return yt(d,"source")||(d.source=c(s,"string"==typeof r?r:"")),t};Function.prototype.toString=f((function(){return _(this)&&r(this).source||re(this)}),"toString");})),ge=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(_(n)&&ve(n,i,r),r.global)o?t[e]=n:dt(e,n);else {try{r.unsafe?t[e]&&(o=!0):delete t[e];}catch(t){}o?t[e]=n:Ut.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable});}return t},me=Math.ceil,ye=Math.floor,be=Math.trunc||function(t){var e=+t;return (e>0?ye:me)(e)},we=function(t){var e=+t;return e!=e||0===e?0:be(e)},Se=Math.max,xe=Math.min,Ee=function(t,e){var n=we(t);return n<0?Se(n+e,0):xe(n,e)},ke=Math.min,Te=function(t){var e=we(t);return e>0?ke(e,9007199254740991):0},Me=function(t){return Te(t.length)},Ie=function(t){return function(e,n,r){var o=R(e),i=Me(o);if(0===i)return !t&&-1;var u,a=Ee(r,i);if(t&&n!=n){for(;i>a;)if((u=o[a++])!=u)return !0}else for(;i>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return !t&&-1}},Oe={includes:Ie(!0),indexOf:Ie(!1)},Ne=Oe.indexOf,He=D([].push),De=function(t,e){var n,r=R(t),o=0,i=[];for(n in r)!yt(ce,n)&&yt(r,n)&&He(i,n);for(;e.length>o;)yt(r,n=e[o++])&&(~Ne(i,n)||He(i,n));return i},je=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Le=je.concat("length","prototype"),ze={f:Object.getOwnPropertyNames||function(t){return De(t,Le)}},Pe={f:Object.getOwnPropertySymbols},Ae=D([].concat),Ce=W("Reflect","ownKeys")||function(t){var e=ze.f(Bt(t)),n=Pe.f;return n?Ae(e,n(t)):e},Ve=function(t,e,n){for(var r=Ce(e),o=Ut.f,i=At.f,u=0;u<r.length;u++){var a=r[u];yt(t,a)||n&&yt(n,a)||o(t,a,i(e,a));}},Fe=/#|\.prototype\./,Be=function(t,e){var n=$e[Re(t)];return n===qe||n!==_e&&(_(e)?y(e):!!e)},Re=Be.normalize=function(t){return String(t).replace(Fe,".").toLowerCase()},$e=Be.data={},_e=Be.NATIVE="N",qe=Be.POLYFILL="P",We=Be,Ge=At.f,Ue=function(t,e){var n,r,o,i,u,a=t.target,c=t.global,l=t.stat;if(n=c?m:l?m[a]||dt(a,{}):m[a]&&m[a].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(u=Ge(n,r))&&u.value:n[r],!We(c?r:a+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ve(i,o);}(t.sham||o&&o.sham)&&Kt(i,"sham",!0),ge(n,r,i,t);}},Ke=function(t){if("Function"===z(t))return D(t)},Xe=Ke(Ke.bind),Je=Array.isArray||function(t){return "Array"===z(t)},Ye={};Ye[Mt("toStringTag")]="z";var Qe="[object z]"===String(Ye),Ze=Mt("toStringTag"),tn=Object,en="Arguments"===z(function(){return arguments}()),nn=Qe?z:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=tn(t),Ze))?n:en?z(e):"Object"===(r=z(e))&&_(e.callee)?"Arguments":r},rn=function(){},on=W("Reflect","construct"),un=/^\s*(?:class|function)\b/,an=D(un.exec),cn=!un.test(rn),ln=function(t){if(!_(t))return !1;try{return on(rn,[],t),!0}catch(t){return !1}},sn=function(t){if(!_(t))return !1;switch(nn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return cn||!!an(un,re(t))}catch(t){return !0}};sn.sham=!0;var fn=!on||y((function(){var t;return ln(ln.call)||!ln(Object)||!ln((function(){t=!0;}))||t}))?sn:ln,dn=Mt("species"),pn=Array,hn=function(t,e){return new(function(t){var e;return Je(t)&&(e=t.constructor,(fn(e)&&(e===pn||Je(e.prototype))||q(e)&&null===(e=e[dn]))&&(e=void 0)),void 0===e?pn:e}(t))(0===e?0:e)},vn=D([].push),gn=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,l,s,f){for(var d,p,h=gt(c),v=C(h),g=Me(v),m=function(t,e){return ct(t),void 0===e?t:w?Xe(t,e):function(){return t.apply(e,arguments)}}(l,s),y=0,b=f||hn,S=e?b(c,g):n||u?b(c,0):void 0;g>y;y++)if((a||y in v)&&(p=m(d=v[y],y,h),t))if(e)S[y]=p;else if(p)switch(t){case 3:return !0;case 5:return d;case 6:return y;case 2:vn(S,d);}else switch(t){case 4:return !1;case 7:vn(S,d);}return i?-1:r||o?o:S}},mn={forEach:gn(0),map:gn(1),filter:gn(2),some:gn(3),every:gn(4),find:gn(5),findIndex:gn(6),filterReject:gn(7)},yn=Mt("species"),bn=function(t){return tt>=51||!y((function(){var e=[];return (e.constructor={})[yn]=function(){return {foo:1}},1!==e[t](Boolean).foo}))},wn=mn.filter;Ue({target:"Array",proto:!0,forced:!bn("filter")},{filter:function(t){return wn(this,t,arguments.length>1?arguments[1]:void 0)}});var Sn=Qe?{}.toString:function(){return "[object "+nn(this)+"]"};Qe||ge(Object.prototype,"toString",Sn,{unsafe:!0});var xn,En=String,kn=function(t){if("Symbol"===nn(t))throw new TypeError("Cannot convert a Symbol value to a string");return En(t)},Tn=function(){var t=Bt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Mn=m.RegExp,In=y((function(){var t=Mn("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),On=In||y((function(){return !Mn("a","y").sticky})),Nn={BROKEN_CARET:In||y((function(){var t=Mn("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:On,UNSUPPORTED_Y:In},Hn=Object.keys||function(t){return De(t,je)},Dn=b&&!Ct?Object.defineProperties:function(t,e){Bt(t);for(var n,r=R(e),o=Hn(e),i=o.length,u=0;i>u;)Ut.f(t,n=o[u++],r[n]);return t},jn={f:Dn},Ln=W("document","documentElement"),zn="prototype",Pn="script",An=ae("IE_PROTO"),Cn=function(){},Vn=function(t){return "<"+Pn+">"+t+"</"+Pn+">"},Fn=function(t){t.write(Vn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Bn=function(){try{xn=new ActiveXObject("htmlfile");}catch(t){}var t,e,n;Bn="undefined"!=typeof document?document.domain&&xn?Fn(xn):(e=Lt("iframe"),n="java"+Pn+":",e.style.display="none",Ln.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Vn("document.F=Object")),t.close(),t.F):Fn(xn);for(var r=je.length;r--;)delete Bn[zn][je[r]];return Bn()};ce[An]=!0;var Rn,$n,_n=Object.create||function(t,e){var n;return null!==t?(Cn[zn]=Bt(t),n=new Cn,Cn[zn]=null,n[An]=t):n=Bn(),void 0===e?n:jn.f(n,e)},qn=m.RegExp,Wn=y((function(){var t=qn(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)})),Gn=m.RegExp,Un=y((function(){var t=Gn("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Kn=he.get,Xn=ht("native-string-replace",String.prototype.replace),Jn=RegExp.prototype.exec,Yn=Jn,Qn=D("".charAt),Zn=D("".indexOf),tr=D("".replace),er=D("".slice),nr=($n=/b*/g,x(Jn,Rn=/a/,"a"),x(Jn,$n,"a"),0!==Rn.lastIndex||0!==$n.lastIndex),rr=Nn.BROKEN_CARET,or=void 0!==/()??/.exec("")[1];(nr||or||rr||Wn||Un)&&(Yn=function(t){var e,n,r,o,i,u,a,c=this,l=Kn(c),s=kn(t),f=l.raw;if(f)return f.lastIndex=c.lastIndex,e=x(Yn,f,s),c.lastIndex=f.lastIndex,e;var d=l.groups,p=rr&&c.sticky,h=x(Tn,c),v=c.source,g=0,m=s;if(p&&(h=tr(h,"y",""),-1===Zn(h,"g")&&(h+="g"),m=er(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Qn(s,c.lastIndex-1))&&(v="(?: "+v+")",m=" "+m,g++),n=new RegExp("^(?:"+v+")",h)),or&&(n=new RegExp("^"+v+"$(?!\\s)",h)),nr&&(r=c.lastIndex),o=x(Jn,p?n:c,m),p?o?(o.input=er(o.input,g),o[0]=er(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:nr&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),or&&o&&o.length>1&&x(Xn,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=u=_n(null),i=0;i<d.length;i++)u[(a=d[i])[0]]=o[a[1]];return o});var ir=Yn;Ue({target:"RegExp",proto:!0,forced:/./.exec!==ir},{exec:ir});var ur=Function.prototype,ar=ur.apply,cr=ur.call,lr="object"==typeof Reflect&&Reflect.apply||(w?cr.bind(ar):function(){return cr.apply(ar,arguments)}),sr=Mt("species"),fr=RegExp.prototype,dr=function(t,e,n,r){var o=Mt(t),i=!y((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),u=i&&!y((function(){var e=!1,n=/a/;return "split"===t&&((n={}).constructor={},n.constructor[sr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!u||n){var a=/./[o],c=e(o,""[t],(function(t,e,n,r,o){var u=e.exec;return u===ir||u===fr.exec?i&&!o?{done:!0,value:x(a,e,n,r)}:{done:!0,value:x(t,n,e,r)}:{done:!1}}));ge(String.prototype,t,c[0]),ge(fr,o,c[1]);}r&&Kt(fr[o],"sham",!0);},pr=D("".charAt),hr=D("".charCodeAt),vr=D("".slice),gr=function(t){return function(e,n){var r,o,i=kn(B(e)),u=we(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=hr(i,u))<55296||r>56319||u+1===a||(o=hr(i,u+1))<56320||o>57343?t?pr(i,u):r:t?vr(i,u,u+2):o-56320+(r-55296<<10)+65536}},mr={codeAt:gr(!1),charAt:gr(!0)}.charAt,yr=function(t,e,n){return e+(n?mr(t,e).length:1)},br=Math.floor,wr=D("".charAt),Sr=D("".replace),xr=D("".slice),Er=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,kr=/\$([$&'`]|\d{1,2})/g,Tr=function(t,e,n,r,o,i){var u=n+t.length,a=r.length,c=kr;return void 0!==o&&(o=gt(o),c=Er),Sr(i,c,(function(i,c){var l;switch(wr(c,0)){case"$":return "$";case"&":return t;case"`":return xr(e,0,n);case"'":return xr(e,u);case"<":l=o[xr(c,1,-1)];break;default:var s=+c;if(0===s)return i;if(s>a){var f=br(s/10);return 0===f?i:f<=a?void 0===r[f-1]?wr(c,1):r[f-1]+wr(c,1):i}l=r[s-1];}return void 0===l?"":l}))},Mr=TypeError,Ir=function(t,e){var n=t.exec;if(_(n)){var r=x(n,t,e);return null!==r&&Bt(r),r}if("RegExp"===z(t))return x(ir,t,e);throw new Mr("RegExp#exec called on incompatible receiver")},Or=Mt("replace"),Nr=Math.max,Hr=Math.min,Dr=D([].concat),jr=D([].push),Lr=D("".indexOf),zr=D("".slice),Pr="$0"==="a".replace(/./,"$0"),Ar=!!/./[Or]&&""===/./[Or]("a","$0");dr("replace",(function(t,e,n){var r=Ar?"$":"$0";return [function(t,n){var r=B(this),o=V(t)?void 0:lt(t,Or);return o?x(o,t,r,n):x(e,kn(r),t,n)},function(t,o){var i=Bt(this),u=kn(t);if("string"==typeof o&&-1===Lr(o,r)&&-1===Lr(o,"$<")){var a=n(e,i,u,o);if(a.done)return a.value}var c=_(o);c||(o=kn(o));var l,s=i.global;s&&(l=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=Ir(i,u))&&(jr(d,f),s);){""===kn(f[0])&&(i.lastIndex=yr(u,Te(i.lastIndex),l));}for(var p,h="",v=0,g=0;g<d.length;g++){for(var m,y=kn((f=d[g])[0]),b=Nr(Hr(we(f.index),u.length),0),w=[],S=1;S<f.length;S++)jr(w,void 0===(p=f[S])?p:String(p));var x=f.groups;if(c){var E=Dr([y],w,b,u);void 0!==x&&jr(E,x),m=kn(lr(o,void 0,E));}else m=Tr(y,u,b,w,x,o);b>=v&&(h+=zr(u,v,b)+m,v=b+y.length);}return h+zr(u,v)}]}),!!y((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Pr||Ar);var Cr=Ut.f,Vr=Mt("unscopables"),Fr=Array.prototype;void 0===Fr[Vr]&&Cr(Fr,Vr,{configurable:!0,value:_n(null)});var Br=function(t){Fr[Vr][t]=!0;},Rr=mn.find,$r="find",_r=!0;$r in[]&&Array(1)[$r]((function(){_r=!1;})),Ue({target:"Array",proto:!0,forced:_r},{find:function(t){return Rr(this,t,arguments.length>1?arguments[1]:void 0)}}),Br($r);var qr,Wr="\t\n\v\f\r                 \u2028\u2029\ufeff",Gr=D("".replace),Ur=RegExp("^["+Wr+"]+"),Kr=RegExp("(^|[^"+Wr+"])["+Wr+"]+$"),Xr=function(t){return function(e){var n=kn(B(e));return 1&t&&(n=Gr(n,Ur,"")),2&t&&(n=Gr(n,Kr,"$1")),n}},Jr={start:Xr(1),end:Xr(2),trim:Xr(3)},Yr=Qt.PROPER,Qr=Jr.trim;function Zr(t){return 0===c.default("<div>"+t+"</div>").children().filter((function(t){return "BR"!==t.tagName})).length}function to(t){return 0===t.length?"":t[0].outerHTML}function eo(t){return t.length?t[0].tagName.toLowerCase():""}function no(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var u=r[i];if(u){var a=u.split(":");a[0].trim()===e&&(n=a[1].trim());}}return n}Ue({target:"String",proto:!0,forced:(qr="trim",y((function(){return !!Wr[qr]()||"​…᠎"!=="​…᠎"[qr]()||Yr&&Wr[qr].name!==qr})))},{trim:function(){return Qr(this)}}),Ue({global:!0,forced:m.globalThis!==m},{globalThis:m}),o.css&&(c.default.fn.css=o.css),o.append&&(c.default.fn.append=o.append),o.prepend&&(c.default.fn.prepend=o.prepend),o.addClass&&(c.default.fn.addClass=o.addClass),o.removeClass&&(c.default.fn.removeClass=o.removeClass),o.hasClass&&(c.default.fn.hasClass=o.hasClass),o.on&&(c.default.fn.on=o.on),o.off&&(c.default.fn.off=o.off),o.focus&&(c.default.fn.focus=o.focus),o.attr&&(c.default.fn.attr=o.attr),o.removeAttr&&(c.default.fn.removeAttr=o.removeAttr),o.hide&&(c.default.fn.hide=o.hide),o.show&&(c.default.fn.show=o.show),o.parents&&(c.default.fn.parents=o.parents),o.dataset&&(c.default.fn.dataset=o.dataset),o.val&&(c.default.fn.val=o.val),o.text&&(c.default.fn.text=o.text),o.html&&(c.default.fn.html=o.html),o.children&&(c.default.fn.children=o.children),o.remove&&(c.default.fn.remove=o.remove),o.find&&(c.default.fn.find=o.find),o.width&&(c.default.fn.width=o.width),o.height&&(c.default.fn.height=o.height),o.filter&&(c.default.fn.filter=o.filter),o.empty&&(c.default.fn.empty=o.empty);var ro=function(t,e){return ro=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);},ro(t,e)};function oo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}ro(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}var io=function(){return io=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},io.apply(this,arguments)};function uo(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{c(r.next(t));}catch(t){i(t);}}function a(t){try{c(r.throw(t));}catch(t){i(t);}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e);}))).then(u,a);}c((r=r.apply(t,e||[])).next());}))}function ao(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u);}catch(t){a=[6,t],r=0;}finally{n=o=0;}if(5&a[0])throw a[1];return {value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function co(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function lo(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value);}catch(t){o={error:t};}finally{try{r&&!r.done&&(n=i.return)&&n.call(i);}finally{if(o)throw o.error}}return u}function so(t){var e=lo(r.Editor.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1),n=e[0];if(null==n)return !1;var o=n[0];if(!r.Element.isElement(o))return !1;if("paragraph"===o.type)return !1;if(""!==r.Node.string(o))return !1;var i=o.children,u=void 0===i?[]:i;return !!r.Text.isText(u[0])&&(r.Transforms.setNodes(t,{type:"paragraph"}),!0)}"function"==typeof SuppressedError&&SuppressedError;var fo={renderElems:[s],elemsToHtml:[f],parseElemsHtml:[{selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var o=c.default(t);return 0===(e=e.filter((function(t){return !!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}}],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(t){so(r)||e(t);},r.deleteForward=function(t){so(r)||n(t);},r}},po=/"/g,ho=D("".replace),vo=function(t,e,n,r){var o=kn(B(t)),i="<"+e;return ""!==n&&(i+=" "+n+'="'+ho(kn(r),po,"&quot;")+'"'),i+">"+o+"</"+e+">"},go=function(t){return y((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))};function mo(t,e){var n=e,r=t,o=r.bold,i=r.italic,u=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),u&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function yo(t,e){return 0!==t.length&&(!!t[0].matches(e)||t.find(e).length>0)}Ue({target:"String",proto:!0,forced:go("bold")},{bold:function(){return vo(this,"b","","")}}),Ue({target:"String",proto:!0,forced:go("italics")},{italics:function(){return vo(this,"i","","")}}),Ue({target:"String",proto:!0,forced:go("sub")},{sub:function(){return vo(this,"sub","","")}}),Ue({target:"String",proto:!0,forced:go("sup")},{sup:function(){return vo(this,"sup","","")}});var bo={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},wo=Lt("span").classList,So=wo&&wo.constructor&&wo.constructor.prototype,xo=So===Object.prototype?void 0:So,Eo=function(t,e){var n=[][t];return !!n&&y((function(){n.call(null,e||function(){return 1},1);}))},ko=mn.forEach,To=Eo("forEach")?[].forEach:function(t){return ko(this,t,arguments.length>1?arguments[1]:void 0)},Mo=function(t){if(t&&t.forEach!==To)try{Kt(t,"forEach",To);}catch(e){t.forEach=To;}};for(var Io in bo)bo[Io]&&Mo(m[Io]&&m[Io].prototype);function Oo(t,n){return null==t.selection||!!lo(r.Editor.nodes(t,{match:function(n){return "pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0]}function No(t,e){Object.keys(e).forEach((function(e){"text"!==e&&r.Editor.removeMark(t,e);}));}Mo(xo),Ue({target:"Object",stat:!0,forced:y((function(){Hn(1);}))},{keys:function(t){return Hn(gt(t))}});var Ho=function(){function t(){this.marksNeedToRemove=[],this.tag="button";}return t.prototype.getValue=function(t){var e=this.mark,n=r.Editor.marks(t);return n?n[e]:!!lo(r.Editor.nodes(t,{match:function(t){return !0===t[e]}}),1)[0]},t.prototype.isActive=function(t){return !!this.getValue(t)},t.prototype.isDisabled=function(t){return Oo(t,this.mark)},t.prototype.exec=function(t,e){var n=this.mark,r=this.marksNeedToRemove;e?t.removeMark(n):(t.addMark(n,!0),r&&r.forEach((function(e){return t.removeMark(e)})));},t}(),Do='<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>',jo='<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>',Lo='<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>',zo=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="bold",n.title=e.t("textStyle.bold"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',n.hotkey="mod+b",n}return oo(n,t),n}(Ho),Po=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="code",n.title=e.t("textStyle.code"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',n.hotkey="mod+e",n}return oo(n,t),n}(Ho),Ao=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="italic",n.title=e.t("textStyle.italic"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',n.hotkey="mod+i",n}return oo(n,t),n}(Ho),Co=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="through",n.title=e.t("textStyle.through"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',n.hotkey="mod+shift+x",n}return oo(n,t),n}(Ho),Vo=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="underline",n.title=e.t("textStyle.underline"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',n.hotkey="mod+u",n}return oo(n,t),n}(Ho),Fo=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=e.t("textStyle.sub"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',n.hotkey="",n}return oo(n,t),n}(Ho),Bo=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=e.t("textStyle.sup"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',n.hotkey="",n}return oo(n,t),n}(Ho),Ro=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return Oo(t)},t.prototype.exec=function(t,e){var n,o,i=r.Editor.nodes(t,{match:function(t){return r.Text.isText(t)},universal:!0});try{for(var u=co(i),a=u.next();!a.done;a=u.next()){No(t,a.value[0]);}}catch(t){n={error:t};}finally{try{a&&!a.done&&(o=u.return)&&o.call(u);}finally{if(n)throw n.error}}},t}(),$o={renderStyle:function(t,e){var r=t,o=r.bold,i=r.italic,u=r.underline,a=r.code,c=r.through,l=r.sub,s=r.sup,f=e;return o&&(f=n.jsx("strong",null,f)),a&&(f=n.jsx("code",null,f)),i&&(f=n.jsx("em",null,f)),u&&(f=n.jsx("u",null,f)),c&&(f=n.jsx("s",null,f)),l&&(f=n.jsx("sub",null,f)),s&&(f=n.jsx("sup",null,f)),f},menus:[{key:"bold",factory:function(){return new zo}},{key:"underline",factory:function(){return new Vo}},{key:"italic",factory:function(){return new Ao}},{key:"through",factory:function(){return new Co}},{key:"code",factory:function(){return new Po}},{key:"sub",factory:function(){return new Fo}},{key:"sup",factory:function(){return new Bo}},{key:"clearStyle",factory:function(){return new Ro}}],styleToHtml:function(t,e){if(!r.Text.isText(t))return e;if(Zr(e))return mo(t,e);var n=c.default(e),o=n.html();return o=mo(t,o),n.html(o),to(n)},parseStyleHtml:function(t,e,n){var o=c.default(t);if(!r.Text.isText(e))return e;var i=e;return yo(o,"b,strong")&&(i.bold=!0),yo(o,"i,em")&&(i.italic=!0),yo(o,"u")&&(i.underline=!0),yo(o,"s,strike")&&(i.through=!0),yo(o,"sub")&&(i.sub=!0),yo(o,"sup")&&(i.sup=!0),yo(o,"code")&&(i.code=!0),i}};function _o(t){return function(e,r,o){var i="h"+t;return n.jsx(i,null,r)}}var qo={type:"header1",renderElem:_o(1)},Wo={type:"header2",renderElem:_o(2)},Go={type:"header3",renderElem:_o(3)},Uo={type:"header4",renderElem:_o(4)},Ko={type:"header5",renderElem:_o(5)},Xo={type:"header6",renderElem:_o(6)},Jo=RegExp.prototype,Yo=Qt.PROPER,Qo="toString",Zo=RegExp.prototype,ti=Zo[Qo],ei=y((function(){return "/a/b"!==ti.call({source:"a",flags:"b"})})),ni=Yo&&ti.name!==Qo;(ei||ni)&&ge(Zo,Qo,(function(){var t=Bt(this),e=kn(t.source),n=kn(function(t){var e=t.flags;return void 0!==e||"flags"in Jo||yt(t,"flags")||!G(Jo,t)?e:x(Tn,t)}(t));return "/"+e+"/"+n}),{unsafe:!0});var ri,oi=Mt("match"),ii=TypeError,ui=function(t){if(function(t){var e;return q(t)&&(void 0!==(e=t[oi])?!!e:"RegExp"===z(t))}(t))throw new ii("The method doesn't accept regular expressions");return t},ai=Mt("match"),ci=function(t){var e=/./;try{"/./"[t](e);}catch(n){try{return e[ai]=!1,"/./"[t](e)}catch(t){}}return !1},li=At.f,si=Ke("".slice),fi=Math.min,di=ci("startsWith");function pi(t){var n=lo(r.Editor.nodes(t,{match:function(t){return e.DomEditor.getNodeType(t).startsWith("header")},universal:!0}),1),o=n[0];if(null==o)return "paragraph";var i=lo(o,1)[0];return e.DomEditor.getNodeType(i)}function hi(t){return null==t.selection||!lo(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return "paragraph"===n||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function vi(t,e){e&&r.Transforms.setNodes(t,{type:e});}Ue({target:"String",proto:!0,forced:!!(di||(ri=li(String.prototype,"startsWith"),!ri||ri.writable))&&!di},{startsWith:function(t){var e=kn(B(this));ui(t);var n=Te(fi(arguments.length>1?arguments[1]:void 0,e.length)),r=kn(t);return si(e,n,n+r.length)===r}});var gi=function(){function t(){this.title=e.t("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 t.prototype.getOptions=function(t){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"header6",text:"H6",styleForRenderMenuList:{"font-size":"11px","font-weight":"bold"}},{value:"paragraph",text:e.t("header.text")}],r=this.getValue(t).toString();return n.forEach((function(t){t.value===r?t.selected=!0:delete t.selected;})),n},t.prototype.isActive=function(t){return !1},t.prototype.getValue=function(t){return pi(t)},t.prototype.isDisabled=function(t){return hi(t)},t.prototype.exec=function(t,e){vi(t,e.toString());},t}(),mi=function(){function t(){this.tag="button";}return t.prototype.getValue=function(t){return pi(t)},t.prototype.isActive=function(t){return this.getValue(t)===this.type},t.prototype.isDisabled=function(t){return hi(t)},t.prototype.exec=function(t,e){var n=this.type;vi(t,e===n?"paragraph":n);},t}(),yi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H1",e.type="header1",e}return oo(e,t),e}(mi),bi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H2",e.type="header2",e}return oo(e,t),e}(mi),wi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H3",e.type="header3",e}return oo(e,t),e}(mi),Si=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H4",e.type="header4",e}return oo(e,t),e}(mi),xi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H5",e.type="header5",e}return oo(e,t),e}(mi),Ei=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H6",e.type="header6",e}return oo(e,t),e}(mi),ki={key:"headerSelect",factory:function(){return new gi}},Ti={key:"header1",factory:function(){return new yi}},Mi={key:"header2",factory:function(){return new bi}},Ii={key:"header3",factory:function(){return new wi}},Oi={key:"header4",factory:function(){return new Si}},Ni={key:"header5",factory:function(){return new xi}},Hi={key:"header6",factory:function(){return new Ei}};function Di(t){return function(e,n){return "<h"+t+">"+n+"</h"+t+">"}}function ji(t){return function(e,n,o){var i=c.default(e);return 0===(n=n.filter((function(t){return !!r.Text.isText(t)||!!o.isInline(t)}))).length&&(n=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var Li={renderElems:[qo,Wo,Go,Uo,Ko,Xo],elemsToHtml:[{type:"header1",elemToHtml:Di(1)},{type:"header2",elemToHtml:Di(2)},{type:"header3",elemToHtml:Di(3)},{type:"header4",elemToHtml:Di(4)},{type:"header5",elemToHtml:Di(5)},{type:"header6",elemToHtml:Di(6)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:ji(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:ji(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:ji(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:ji(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:ji(5)},{selector:"h6:not([data-w-e-type])",parseElemHtml:ji(6)}],menus:[ki,Ti,Mi,Ii,Oi,Ni,Hi],editorPlugin:function(t){var n=t.insertBreak;t.insertNode;var o=t;return o.insertBreak=function(){var i=lo(r.Editor.nodes(o,{match:function(t){return e.DomEditor.getNodeType(t).startsWith("header")},universal:!0}),1)[0];if(i)if(e.DomEditor.isSelectionAtLineEnd(t,i[1])){r.Transforms.insertNodes(o,{type:"paragraph",children:[{text:""}]},{mode:"highest"});}else n();else n();},o}},zi=Object.assign,Pi=Object.defineProperty,Ai=D([].concat),Ci=!zi||y((function(){if(b&&1!==zi({b:1},zi(Pi({},"a",{enumerable:!0,get:function(){Pi(this,"b",{value:3,enumerable:!1});}}),{b:2})).b)return !0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t;})),7!==zi({},t)[n]||Hn(zi({},e)).join("")!==r}))?function(t,e){for(var n=gt(t),r=arguments.length,o=1,i=Pe.f,u=M.f;r>o;)for(var a,c=C(arguments[o++]),l=i?Ai(Hn(c),i(c)):Hn(c),s=l.length,f=0;s>f;)a=l[f++],b&&!x(u,c,a)||(n[a]=c[a]);return n}:zi;function Vi(t,e){null==t.data&&(t.data={});var n=t.data;null==n.style&&(n.style={}),Object.assign(n.style,e);}Ue({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ci},{assign:Ci});var Fi={selector:"font",preParseHtml:function(t){var e=c.default(t);if("font"!==eo(e))return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}};var Bi=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null;}return t.prototype.exec=function(t,e){},t.prototype.getValue=function(t){var e=this.mark,n=r.Editor.marks(t);return n&&n[e]?n[e]:""},t.prototype.isActive=function(t){return !!this.getValue(t)},t.prototype.isDisabled=function(t){return null==t.selection||!!lo(r.Editor.nodes(t,{match:function(n){return "pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){var n=this.mark;if(null==this.$content){var o=c.default('<ul class="w-e-panel-content-color"></ul>');o.on("click","li",(function(e){var o=e.target;if(null!=o&&(e.preventDefault(),null!=t.selection)){var i=c.default(o).attr("data-value");"0"===i?r.Editor.removeMark(t,n):r.Editor.addMark(t,n,i);}})),this.$content=o;}var i=this.$content;if(null==i)return document.createElement("ul");i.empty();var u=this.getValue(t),a=t.getMenuConfig(n).colors;(void 0===a?[]:a).forEach((function(t){var e=c.default('<div class="color-block" data-value="'+t+'"></div>');e.css("background-color",t);var n=c.default('<li data-value="'+t+'"></li>');u===t&&n.addClass("active"),n.append(e),i.append(n);}));var l="";"color"===n&&(l=e.t("color.default")),"bgColor"===n&&(l=e.t("color.clear"));var s=c.default('\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 '+l+"\n </li>\n ");return i.prepend(s),i[0]},t}(),Ri=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("color.color"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',n.mark="color",n}return oo(n,t),n}(Bi),$i=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("color.bgColor"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',n.mark="bgColor",n}return oo(n,t),n}(Bi),_i=["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)"];var qi={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&Vi(i,{color:r}),o&&Vi(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!r.Text.isText(t))return e;var n,o=t,i=o.color,u=o.bgColor;return i||u?((Zr(e)||"span"!==eo(n=c.default(e)))&&(n=c.default("<span>"+e+"</span>")),i&&n.css("color",i),u&&n.css("background-color",u),to(n)):e},preParseHtml:[Fi],parseStyleHtml:function(t,e,n){var o=c.default(t);if(!r.Text.isText(e))return e;var i=e,u=no(o,"color");u&&(i.color=u);var a=no(o,"background-color");return a||(a=no(o,"background")),a&&(i.bgColor=a),i},menus:[{key:"color",factory:function(){return new Ri},config:{colors:_i}},{key:"bgColor",factory:function(){return new $i},config:{colors:_i}}]},Wi=function(t){if("string"!=typeof t)return !1;var e=t.match(Gi);if(!e)return !1;var n=e[1];if(!n)return !1;if(Ui.test(n)||Ki.test(n))return !0;return !1},Gi=/^(?:\w+:)?\/\/(\S+)$/,Ui=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Ki=/^[^\s\.]+\.\S{2,}$/;var Xi=Oe.includes;Ue({target:"Array",proto:!0,forced:y((function(){return !Array(1).includes()}))},{includes:function(t){return Xi(this,t,arguments.length>1?arguments[1]:void 0)}}),Br("includes");var Ji=D([].slice),Yi=bn("slice"),Qi=Mt("species"),Zi=Array,tu=Math.max;function eu(t){return void 0===t&&(t="r"),t+"-"+i.nanoid()}function nu(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ru(t,e,n,r){return uo(this,void 0,void 0,(function(){var o,i;return ao(this,(function(u){switch(u.label){case 0:return (o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=u.sent()))return e.alert(i,"error"),[2,!1];if(null==i)return [2,!1];u.label=2;case 2:return [2,!0]}}))}))}function ou(t,e,n){return uo(this,void 0,void 0,(function(){var r;return ao(this,(function(o){switch(o.label){case 0:return (r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return [2,o.sent()];case 2:return [2,n]}}))}))}function iu(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){var n=e.type;return !!t.isVoid(e)||(!!["pre","code","link"].includes(n)||void 0)}))}function uu(t,e){return {type:"link",url:nu(t),children:e?[{text:e}]:[]}}function au(t,n,o){return uo(this,void 0,void 0,(function(){var i,u,a,c,l;return ao(this,(function(s){switch(s.label){case 0:return o?(n||(n=o),t.restoreSelection(),iu(t)?[2]:[4,ru("insertLink",t,n,o)]):[2];case 1:return s.sent()?[4,ou("insertLink",t,o)]:[2];case 2:if(i=s.sent(),null==(u=t.selection))return [2];if(r.Range.isCollapsed(u)){if((c=e.DomEditor.getLeftLengthOfMaxLength(t))<=0)return [2];t.insertText(" "),c<n.length+1&&(n=n.slice(0,c-1)),l=uu(i,n),r.Transforms.insertNodes(t,l),t.insertFragment([{text:" "}]);}else if((a=r.Editor.string(t,u))!==n){if((c=e.DomEditor.getLeftLengthOfMaxLength(t))<=0)return [2];c<a.length-n.length&&(n=n.slice(0,c)),t.deleteFragment(),l=uu(i,n),r.Transforms.insertNodes(t,l);}else l=uu(i),r.Transforms.wrapNodes(t,l,{split:!0}),r.Transforms.collapse(t,{edge:"end"});return [2]}}))}))}Ue({target:"Array",proto:!0,forced:!Yi},{slice:function(t,e){var n,r,o,i,u,a,c=R(this),l=Me(c),s=Ee(t,l),f=Ee(void 0===e?l:e,l);if(Je(c)&&(n=c.constructor,(fn(n)&&(n===Zi||Je(n.prototype))||q(n)&&null===(n=n[Qi]))&&(n=void 0),n===Zi||void 0===n))return Ji(c,s,f);for(r=new(void 0===n?Zi:n)(tu(f-s,0)),o=0;s<f;s++,o++)s in c&&(i=r,u=o,a=c[s],b?Ut.f(i,u,I(0,a)):i[u]=a);return r.length=o,r}});var cu={type:"link",renderElem:function(t,e,r){var o=t,i=o.url,u=o.target,a=void 0===u?"_blank":u;return n.jsx("a",{href:i,target:a},e)}};var lu={type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return '<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+e+"</a>"}};var su={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var o=c.default(t);return 0===(e=e.filter((function(t){return !!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"link",url:o.attr("href")||"",target:o.attr("target")||"",children:e}}};function fu(){return eu("w-e-insert-link")}var du=function(){function t(){this.title=e.t("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=fu(),this.urlInputId=fu(),this.buttonId=fu();}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return iu(t)},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var n=t.selection,o=this,i=o.textInputId,u=o.urlInputId,a=o.buttonId,l=lo(e.genModalInputElems(e.t("link.text"),i),2),s=l[0],f=l[1],d=c.default(f),p=lo(e.genModalInputElems(e.t("link.url"),u),2),h=p[0],v=p[1],g=c.default(v),m=lo(e.genModalButtonElems(a,e.t("common.ok")),1)[0];if(null==this.$content){var y=c.default("<div></div>");y.on("click","#"+a,(function(e){e.preventDefault();var n=y.find("#"+i).val(),r=y.find("#"+u).val();au(t,n,r),t.hidePanelOrModal();})),this.$content=y;}var b=this.$content;if(b.empty(),b.append(s),b.append(h),b.append(m),null==n||r.Range.isCollapsed(n))d.val("");else {var w=r.Editor.string(t,n);d.val(w);}return g.val(""),setTimeout((function(){d.focus();})),b[0]},t}();function pu(){return eu("w-e-update-link")}var hu=function(){function t(){this.title=e.t("link.edit"),this.iconSvg=Do,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=pu(),this.buttonId=pu();}return t.prototype.getSelectedLinkElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"link");return null==n?null:n},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return e&&e.url||""},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.getModalPositionNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"link")},t.prototype.getModalContentElem=function(t){var n=this.urlInputId,o=this.buttonId,i=lo(e.genModalInputElems(e.t("link.url"),n),2),u=i[0],a=i[1],l=c.default(a),s=lo(e.genModalButtonElems(o,e.t("common.ok")),1)[0];if(null==this.$content){var f=c.default("<div></div>");f.on("click","#"+o,(function(o){o.preventDefault(),t.restoreSelection();var i=e.DomEditor.getSelectedNodeByType(t,"link"),u=i?r.Node.string(i):"",a=f.find("#"+n).val();!function(t,n,o){uo(this,void 0,void 0,(function(){var i,u;return ao(this,(function(a){switch(a.label){case 0:return o?[4,ru("editLink",t,n,o)]:[2];case 1:return a.sent()?[4,ou("editLink",t,o)]:[2];case 2:return i=a.sent(),u={url:nu(i)},r.Transforms.setNodes(t,u,{match:function(t){return e.DomEditor.checkNodeType(t,"link")}}),[2]}}))}));}(t,u,a),t.hidePanelOrModal();})),this.$content=f;}var d=this.$content;d.empty(),d.append(u),d.append(s);var p=this.getValue(t);return l.val(p),setTimeout((function(){l.focus();})),d[0]},t}(),vu=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||null==e.DomEditor.getSelectedNodeByType(t,"link")},t.prototype.exec=function(t,n){this.isDisabled(t)||r.Transforms.unwrapNodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"link")}});},t}(),gu=function(){function t(){this.title=e.t("link.view"),this.iconSvg=jo,this.tag="button";}return t.prototype.getSelectedLinkElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"link");return null==n?null:n},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return e&&e.url||""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){if(!e||"string"!=typeof e)throw new Error("View link failed, link url is '"+e+"'");window.open(e,"_blank");}},t}();var mu={checkLink:function(t,e){return !0},parseLinkUrl:function(t){return t}},yu={renderElems:[cu],elemsToHtml:[lu],parseElemsHtml:[su],menus:[{key:"insertLink",factory:function(){return new du},config:mu},{key:"editLink",factory:function(){return new hu},config:mu},{key:"unLink",factory:function(){return new vu}},{key:"viewLink",factory:function(){return new gu}}],editorPlugin:function(t){var n=t.isInline,o=t.insertData,i=t.normalizeNode;t.insertNode,t.insertText;var u=t;return u.isInline=function(t){return "link"===t.type||n(t)},u.insertData=function(t){var e=t.getData("text/plain");if(Wi(e)){if(/<img[^>]+>/.test(t.getData("text/html")))o(t);else if(!iu(u)){var n=u.selection;if(null!=n){var i=r.Editor.string(u,n);au(u,i,e);}}}else o(t);},u.normalizeNode=function(t){var n=lo(t,2),o=n[0],a=n[1];return "link"!==e.DomEditor.getNodeType(o)?i([o,a]):""===r.Node.string(o)?r.Transforms.removeNodes(u,{at:a}):i([o,a])},u}};var bu=D(1..valueOf),wu=RangeError,Su=RangeError,xu=String,Eu=Math.floor,ku=D((function(t){var e=kn(B(this)),n="",r=we(t);if(r<0||r===1/0)throw new wu("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),Tu=D("".slice),Mu=D(1..toFixed),Iu=function(t,e,n){return 0===e?n:e%2==1?Iu(t,e-1,n*t):Iu(t*t,e/2,n)},Ou=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=Eu(o/1e7);},Nu=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=Eu(r/e),r=r%e*1e7;},Hu=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=xu(t[e]);n=""===n?r:n+ku("0",7-r.length)+r;}return n};function Du(t,n){return "w-e-image-container-"+e.DomEditor.findKey(t,n).id}function ju(t,o,i,u){var a=c.default("body"),s=Du(t,o),f=u.width,d=u.height,p=0,h=0,v=0,g=0,m=!1,y=null;function b(n,r){y=function(){var t=c.default("#"+s);if(0===t.length)throw new Error("Cannot find image container elem");return t}(),p=n,g=r;var o=y.find("img");if(0===o.length)throw new Error("Cannot find image elem");h=o.width(),v=o.height(),a.on("mousemove",w),a.on("mouseup",S);var i=e.DomEditor.getHoverbar(t);i&&i.hideAndClean();}var w=l.default((function(t){t.preventDefault();var e=t.clientX,n=h+(m?p-e:e-p),r=v*(n/h);n>g-6||null!=y&&(n<=15||r<=15||(y.css("width",n+"px"),y.css("height",r+"px")));}),100);function S(n){if(a.off("mousemove",w),null!=y){var i=y.width().toFixed(2),u=y.height().toFixed(2),c={style:io(io({},o.style),{width:i+"px",height:u+"px"})};r.Transforms.setNodes(t,c,{at:e.DomEditor.findPath(t,o)}),a.off("mouseup",S);}}var x={};return f&&(x.width=f),d&&(x.height=d),x.boxShadow="0 0 0 1px #B4D5FF",n.jsx("div",{id:s,style:x,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(n){var r=c.default(n.target);if(r.hasClass("w-e-image-dragger")){n.preventDefault(),(r.hasClass("left-top")||r.hasClass("left-bottom"))&&(m=!0);var i=e.DomEditor.getParentNode(t,o);if(null!=i){var u=e.DomEditor.toDOMNode(t,i),a=u.getBoundingClientRect(),l=window.getComputedStyle(u),s=parseFloat(l.paddingLeft),f=parseFloat(l.paddingRight),d=parseFloat(l.borderLeftWidth),p=parseFloat(l.borderRightWidth);b(n.clientX,a.width-s-f-d-p);}}}}},i,n.jsx("div",{className:"w-e-image-dragger left-top"}),n.jsx("div",{className:"w-e-image-dragger right-top"}),n.jsx("div",{className:"w-e-image-dragger left-bottom"}),n.jsx("div",{className:"w-e-image-dragger right-bottom"}))}Ue({target:"Number",proto:!0,forced:y((function(){return "0.000"!==Mu(8e-5,3)||"1"!==Mu(.9,0)||"1.25"!==Mu(1.255,2)||"1000000000000000128"!==Mu(0xde0b6b3a7640080,0)}))||!y((function(){Mu({});}))},{toFixed:function(t){var e,n,r,o,i=bu(this),u=we(t),a=[0,0,0,0,0,0],c="",l="0";if(u<0||u>20)throw new Su("Incorrect fraction digits");if(i!=i)return "NaN";if(i<=-1e21||i>=1e21)return xu(i);if(i<0&&(c="-",i=-i),i>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*Iu(2,69,1))-69)<0?i*Iu(2,-e,1):i/Iu(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Ou(a,0,n),r=u;r>=7;)Ou(a,1e7,0),r-=7;for(Ou(a,Iu(10,r,1),0),r=e-1;r>=23;)Nu(a,1<<23),r-=23;Nu(a,1<<r),Ou(a,1,1),Nu(a,2),l=Hu(a);}else Ou(a,0,n),Ou(a,1<<-e,0),l=Hu(a)+ku("0",u);return l=u>0?c+((o=l.length)<=u?"0."+ku("0",u-o)+l:Tu(l,0,o-u)+"."+Tu(l,o-u)):c+l}});var Lu={type:"image",renderElem:function(t,r,o){var i=t,u=i.src,a=i.alt,c=void 0===a?"":a,l=i.href,s=void 0===l?"":l,f=i.style,d=void 0===f?{}:f,p=d.width,h=void 0===p?"":p,v=d.height,g=void 0===v?"":v,m=e.DomEditor.isNodeSelected(o,t),y={maxWidth:"100%"};h&&(y.width="100%"),g&&(y.height="100%");var b=n.jsx("img",{style:y,src:u,alt:c,"data-href":s}),w=o.isDisabled();return m&&!w?ju(o,t,b,{width:h,height:g}):function(t,e,r,o){var i=o.width,u=o.height,a={};i&&(a.width=i),u&&(a.height=u);var c=Du(t,e);return n.jsx("div",{id:c,style:a,className:"w-e-image-container"},r)}(o,t,b,{width:h,height:g})}};var zu={type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=void 0===o?"":o,u=n.href,a=void 0===u?"":u,c=n.width,l=void 0===c?"":c,s=n.height,f=void 0===s?"":s,d=n.style,p=void 0===d?{}:d,h=p.width,v=void 0===h?"":h,g=p.height,m=void 0===g?"":g,y="";return v&&(y+="width: "+v+";"),m&&(y+="height: "+m+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+a+'" width="'+l+'" height="'+f+'" style="'+y+'"/>'}};var Pu={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=c.default(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:no(r,"width"),height:no(r,"height")},width:r.attr("width")||"",height:r.attr("height")||"",children:[{text:""}]}}};function Au(t,e,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),uo(this,void 0,void 0,(function(){var i,u;return ao(this,(function(a){switch(a.label){case 0:return (i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(u=a.sent()))return e.alert(u,"error"),[2,!1];if(null==u)return [2,!1];a.label=2;case 2:return [2,!0]}}))}))}function Cu(t,e,n){return uo(this,void 0,void 0,(function(){var r;return ao(this,(function(o){switch(o.label){case 0:return (r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return [2,o.sent()];case 2:return [2,n]}}))}))}function Vu(t,n,o,i){return void 0===o&&(o=""),void 0===i&&(i=""),uo(this,void 0,void 0,(function(){var u,a,c;return ao(this,(function(l){switch(l.label){case 0:return [4,Au("insertImage",t,n,o,i)];case 1:return l.sent()?[4,Cu("insertImage",t,n)]:[2];case 2:return u=l.sent(),a={type:"image",src:nu(u),href:i,alt:o,style:{},children:[{text:""}]},null===t.selection&&t.restoreSelection(),e.DomEditor.getSelectedNodeByType(t,"image")&&t.move(1),Bu(t)?[2]:(r.Transforms.insertNodes(t,a),(c=t.getMenuConfig("insertImage").onInsertedImage)&&c(a),[2])}}))}))}function Fu(t,n,o,i,u){return void 0===o&&(o=""),void 0===i&&(i=""),void 0===u&&(u={}),uo(this,void 0,void 0,(function(){var a,c,l,s,f,d;return ao(this,(function(p){switch(p.label){case 0:return [4,Au("editImage",t,n,o,i)];case 1:return p.sent()?[4,Cu("editImage",t,n)]:[2];case 2:return a=p.sent(),null==(c=e.DomEditor.getSelectedNodeByType(t,"image"))?[2]:(l=c.style,s={src:a,alt:o,href:i,style:io(io({},void 0===l?{}:l),u)},r.Transforms.setNodes(t,s,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}}),f=e.DomEditor.getSelectedNodeByType(t,"image"),(d=t.getMenuConfig("editImage").onUpdatedImage)&&d(f),[2])}}))}))}function Bu(t){var n=t.selection;return null==n||(!r.Range.isCollapsed(n)||!!lo(r.Editor.nodes(t,{match:function(n){var o=e.DomEditor.getNodeType(n);return "code"===o||("pre"===o||("link"===o||("list-item"===o||(!!o.startsWith("header")||("blockquote"===o||!!r.Editor.isVoid(t,n))))))},universal:!0}),1)[0])}function Ru(){return eu("w-e-insert-image")}var $u=function(){function t(){this.title=e.t("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=Ru(),this.altInputId=Ru(),this.hrefInputId=Ru(),this.buttonId=Ru();}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return Bu(t)},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,u=r.hrefInputId,a=r.buttonId,l=lo(e.genModalInputElems(e.t("image.src"),o),2),s=l[0],f=l[1],d=c.default(f),p=lo(e.genModalInputElems(e.t("image.desc"),i),2),h=p[0],v=p[1],g=c.default(v),m=lo(e.genModalInputElems(e.t("image.link"),u),2),y=m[0],b=m[1],w=c.default(b),S=lo(e.genModalButtonElems(a,e.t("common.ok")),1)[0];if(null==this.$content){var x=c.default("<div></div>");x.on("click","#"+a,(function(e){e.preventDefault();var r=x.find("#"+o).val().trim(),a=x.find("#"+i).val().trim(),c=x.find("#"+u).val().trim();n.insertImage(t,r,a,c),t.hidePanelOrModal();})),this.$content=x;}var E=this.$content;return E.empty(),E.append(s),E.append(h),E.append(y),E.append(S),d.val(""),g.val(""),w.val(""),setTimeout((function(){d.focus();})),E[0]},t.prototype.insertImage=function(t,e,n,r){void 0===n&&(n=""),void 0===r&&(r=""),e&&(t.restoreSelection(),this.isDisabled(t)||Vu(t,e,n,r));},t}(),_u=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||null==e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.exec=function(t,n){this.isDisabled(t)||r.Transforms.removeNodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}});},t}();function qu(){return eu("w-e-edit-image")}var Wu=function(){function t(){this.title=e.t("image.edit"),this.iconSvg=Do,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=qu(),this.altInputId=qu(),this.hrefInputId=qu(),this.buttonId=qu();}return t.prototype.getValue=function(t){return ""},t.prototype.getImageNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||(!r.Range.isCollapsed(n)||null==e.DomEditor.getSelectedNodeByType(t,"image"))},t.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},t.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,u=r.hrefInputId,a=r.buttonId,l=this.getImageNode(t);if(null==l)throw new Error("Not found selected image node");var s=lo(e.genModalInputElems(e.t("image.src"),o),2),f=s[0],d=s[1],p=c.default(d),h=lo(e.genModalInputElems(e.t("image.desc"),i),2),v=h[0],g=h[1],m=c.default(g),y=lo(e.genModalInputElems(e.t("image.link"),u),2),b=y[0],w=y[1],S=c.default(w),x=lo(e.genModalButtonElems(a,e.t("common.ok")),1)[0];if(null==this.$content){var E=c.default("<div></div>");E.on("click","#"+a,(function(e){e.preventDefault();var r=E.find("#"+o).val(),a=E.find("#"+i).val(),c=E.find("#"+u).val();n.updateImage(t,r,a,c),t.hidePanelOrModal();})),this.$content=E;}var k=this.$content;k.empty(),k.append(f),k.append(v),k.append(b),k.append(x);var T=l,M=T.src,I=T.alt,O=void 0===I?"":I,N=T.href,H=void 0===N?"":N;return p.val(M),m.val(O),S.val(H),setTimeout((function(){p.focus();})),k[0]},t.prototype.updateImage=function(t,e,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),e&&(t.restoreSelection(),this.isDisabled(t)||Fu(t,e,n,r,o));},t}(),Gu=function(){function t(){this.title=e.t("image.viewLink"),this.iconSvg=jo,this.tag="button";}return t.prototype.getValue=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"image");return n&&n.href||""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||!this.getValue(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){if(!e||"string"!=typeof e)throw new Error("View image link failed, image.href is '"+e+"'");window.open(e,"_blank");}},t}(),Uu=function(){function t(){this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.getSelectedNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedNode(t)},t.prototype.exec=function(t,n){if(!this.isDisabled(t)){var o=this.getSelectedNode(t);if(null!=o){var i=e.DomEditor.getHoverbar(t);i&&i.hideAndClean();var u=o.style,a={style:io(io({},void 0===u?{}:u),{width:this.value,height:""})};r.Transforms.setNodes(t,a,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}});}}},t}(),Ku=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="30%",e.value="30%",e}return oo(e,t),e}(Uu),Xu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="50%",e.value="50%",e}return oo(e,t),e}(Uu),Ju=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="100%",e.value="100%",e}return oo(e,t),e}(Uu);function Yu(){return eu("w-e-insert-image")}var Qu=function(){function t(){this.title=e.t("image.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Yu(),this.heightInputId=Yu(),this.buttonId=Yu();}return t.prototype.getSelectedImageNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedImageNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedImageNode(t)},t.prototype.getModalContentElem=function(t){var n=this,o=n.widthInputId,i=n.heightInputId,u=n.buttonId,a=lo(e.genModalInputElems(e.t("image.width"),o,"auto"),2),l=a[0],s=a[1],f=c.default(s),d=lo(e.genModalInputElems(e.t("image.height"),i,"auto"),2),p=d[0],h=d[1],v=c.default(h),g=lo(e.genModalButtonElems(u,e.t("image.ok")),1)[0];if(null==this.$content){var m=c.default("<div></div>");m.on("click","#"+u,(function(n){n.preventDefault();var u=m.find("#"+o).val().trim(),a=m.find("#"+i).val().trim(),c=function(t){return /^\d+(\.\d+)?%$/.test(t)},l=function(t){return /^\d+(\.\d+)?$/.test(t)},s=function(t){return /^\d+(\.\d+)?px$/.test(t)},f="auto",d="auto";c(u)?f=u:l(u)?f=parseInt(u)+"px":s(u)&&(f=u),c(a)?d=a:l(a)?d=parseInt(a)+"px":s(a)&&(d=a);var p=b.style,h=void 0===p?{}:p;t.restoreSelection();var v=io(io({},h),{style:{width:f,height:d}});r.Transforms.setNodes(t,v,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}}),t.hidePanelOrModal();})),this.$content=m;}var y=this.$content;y.empty(),y.append(l),y.append(p),y.append(g);var b=this.getSelectedImageNode(t);if(null==b)return y[0];var w=b.style,S=void 0===w?{}:w,x=S.width,E=void 0===x?"auto":x,k=S.height,T=void 0===k?"auto":k;return f.val(E),v.val(T),setTimeout((function(){f.focus();})),y[0]},t}();var Zu={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return !0},parseImageSrc:function(t){return t}},ta={renderElems:[Lu],elemsToHtml:[zu],parseElemsHtml:[Pu],menus:[{key:"insertImage",factory:function(){return new $u},config:Zu},{key:"deleteImage",factory:function(){return new _u}},{key:"editImage",factory:function(){return new Wu},config:Zu},{key:"viewImageLink",factory:function(){return new Gu}},{key:"imageWidth30",factory:function(){return new Ku}},{key:"imageWidth50",factory:function(){return new Xu}},{key:"imageWidth100",factory:function(){return new Ju}},{key:"editorImageSizeMenu",factory:function(){return new Qu}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(t){return "image"===t.type||e(t)},r.isVoid=function(t){return "image"===t.type||n(t)},r}};var ea={type:"todo",renderElem:function(t,o,i){var u=!1;i.isDisabled()&&(u=!0);var a=t.checked,c=n.jsx("div",{style:{margin:"5px 0"}},n.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em"}},n.jsx("input",{type:"checkbox",checked:a,disabled:u,on:{change:function(n){var o=e.DomEditor.findPath(i,t),u={checked:n.target.checked};r.Transforms.setNodes(i,u,{at:o});}}})),n.jsx("span",null,o));return c}};var na=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !!e.DomEditor.getSelectedNodeByType(t,"todo")},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){if(r.Editor.isVoid(t,e)&&r.Editor.isBlock(t,e))return !0;var n=e.type;return !!["pre","table","list-item"].includes(n)||void 0}))},t.prototype.exec=function(t,e){var n=this.isActive(t);r.Transforms.setNodes(t,{type:n?"paragraph":"todo"});},t}();var ra={renderElems:[ea],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return '<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=c.default(t).find("li"),n=c.default('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[{selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var o=c.default(t);0===(e=e.filter((function(t){return !!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]);var i=!1;return null!=o.find('input[type="checkbox"]').attr("checked")&&(i=!0),{type:"todo",checked:i,children:e}}}],menus:[{key:"todo",factory:function(){return new na}}],editorPlugin:function(t){var n=t.deleteBackward,o=t;return o.deleteBackward=function(o){var i=t.selection;if(i&&r.Range.isCollapsed(i)){var u=e.DomEditor.getSelectedNodeByType(t,"todo");if(u&&0===r.Node.string(u).length)return void r.Transforms.setNodes(t,{type:"paragraph"},{mode:"highest"})}n(o);},o}};var oa={type:"blockquote",renderElem:function(t,e,r){return n.jsx("blockquote",null,e)}};var ia={type:"blockquote",elemToHtml:function(t,e){return "<blockquote>"+e+"</blockquote>"}};var ua={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var o=c.default(t);return 0===(e=e.filter((function(t){return !!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},aa=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !!e.DomEditor.getSelectedNodeByType(t,"blockquote")},t.prototype.isDisabled=function(t){return null==t.selection||!lo(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return "paragraph"===n||"blockquote"===n},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=this.isActive(t)?"paragraph":"blockquote";r.Transforms.setNodes(t,{type:n},{mode:"highest"});}},t}();function ca(t){t.deleteBackward("character");r.Transforms.insertNodes(t,{type:"paragraph",children:[{text:""}]},{mode:"highest"});}var la={renderElems:[oa],elemsToHtml:[ia],parseElemsHtml:[ua],menus:[{key:"blockquote",factory:function(){return new aa}}],editorPlugin:function(t){var n=t.insertBreak,o=t.insertText,i=t;return i.insertBreak=function(){var u=i.selection;if(null==u)return n();var a=lo(r.Editor.nodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"blockquote")},universal:!0}),1)[0];if(!a)return n();var c=a[0];if(e.DomEditor.getParentNode(t,c)){var l=e.DomEditor.findPath(t,c),s=r.Editor.end(t,l);if(r.Point.equals(s,u.focus)){var f=r.Node.string(c);if(f&&"\n"===f.slice(-1))return void ca(i)}o("\n");}else ca(i);},i}},sa=function(){function t(){this.title=e.t("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 t.prototype.exec=function(t,e){},t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||!!lo(r.Editor.nodes(t,{match:function(n){return "pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){if(null==this.$content){var e=c.default('<ul class="w-e-panel-content-emotion"></ul>');e.on("click","li",(function(e){var n=e.target;if(null!=n){e.preventDefault();var r=c.default(n).text();t.insertText(r);}})),this.$content=e;}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=t.getMenuConfig("emotion").emotions;return (void 0===r?[]:r).forEach((function(t){var e=c.default("<li>"+t+"</li>");n.append(e);})),n[0]},t}();var fa={menus:[{key:"emotion",factory:function(){return new sa},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]};var da={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"};var pa={selector:"font",preParseHtml:function(t){var e=c.default(t);if("font"!==eo(e))return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",da[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},ha=D("".indexOf);Ue({target:"String",proto:!0,forced:!ci("includes")},{includes:function(t){return !!~ha(kn(B(this)),kn(ui(t)),arguments.length>1?arguments[1]:void 0)}});var va,ga,ma=function(t){return t&&t.Math===Math&&t},ya=ma("object"==typeof globalThis&&globalThis)||ma("object"==typeof window&&window)||ma("object"==typeof self&&self)||ma("object"==typeof d&&d)||ma("object"==typeof d&&d)||function(){return this}()||Function("return this")(),ba=function(t){try{return !!t()}catch(t){return !0}},wa=!ba((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),Sa=wa,xa=Function.prototype,Ea=xa.apply,ka=xa.call,Ta="object"==typeof Reflect&&Reflect.apply||(Sa?ka.bind(Ea):function(){return ka.apply(Ea,arguments)}),Ma=Function.prototype,Ia=Ma.call,Oa=Sa&&Ma.bind.bind(Ia,Ia),Na=Sa?Oa:function(t){return function(){return Ia.apply(t,arguments)}},Ha=Na,Da=Ha({}.toString),ja=Ha("".slice),La=function(t){return ja(Da(t),8,-1)},za="object"==typeof document&&document.all,Pa=void 0===za&&void 0!==za?function(t){return "function"==typeof t||t===za}:function(t){return "function"==typeof t},Aa=!ba((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ca=Function.prototype.call,Va=Sa?Ca.bind(Ca):function(){return Ca.apply(Ca,arguments)},Fa={}.propertyIsEnumerable,Ba=Object.getOwnPropertyDescriptor,Ra=Ba&&!Fa.call({1:2},1)?function(t){var e=Ba(this,t);return !!e&&e.enumerable}:Fa,$a={f:Ra},_a=Object,qa=Ha("".split),Wa=ba((function(){return !_a("z").propertyIsEnumerable(0)}))?function(t){return "String"===La(t)?qa(t,""):_a(t)}:_a,Ga=function(t){return null==t},Ua=TypeError,Ka=Wa,Xa=function(t){if(Ga(t))throw new Ua("Can't call method on "+t);return t},Ja=Pa,Ya={},Qa=ya,Za=function(t){return Ja(t)?t:void 0},tc=Ha({}.isPrototypeOf),ec=Qa.navigator,nc=ec&&ec.userAgent,rc=nc?String(nc):"",oc=Qa.process,ic=Qa.Deno,uc=oc&&oc.versions||ic&&ic.version,ac=uc&&uc.v8;ac&&(ga=(va=ac.split("."))[0]>0&&va[0]<4?1:+(va[0]+va[1])),!ga&&rc&&(!(va=rc.match(/Edge\/(\d+)/))||va[1]>=74)&&(va=rc.match(/Chrome\/(\d+)/))&&(ga=+va[1]);var cc=ga,lc=Qa.String,sc=!!Object.getOwnPropertySymbols&&!ba((function(){var t=Symbol("symbol detection");return !lc(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&cc&&cc<41})),fc=sc,dc=fc&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,pc=function(t,e){return arguments.length<2?Za(Ya[t])||Za(Qa[t]):Ya[t]&&Ya[t][e]||Qa[t]&&Qa[t][e]},hc=tc,vc=dc,gc=Object,mc=vc?function(t){return "symbol"==typeof t}:function(t){var e=pc("Symbol");return Ja(e)&&hc(e.prototype,gc(t))},yc=String,bc=function(t){try{return yc(t)}catch(t){return "Object"}},wc=TypeError,Sc=function(t){if(Ja(t))return t;throw new wc(bc(t)+" is not a function")},xc=Va,Ec=function(t){return "object"==typeof t?null!==t:Ja(t)},kc=TypeError,Tc=Object.defineProperty,Mc=function(t,e){try{Tc(Qa,t,{value:e,configurable:!0,writable:!0});}catch(n){Qa[t]=e;}return e},Ic=p((function(t){var e="__core-js_shared__",n=t.exports=Qa[e]||Mc(e,{});(n.versions||(n.versions=[])).push({version:"3.38.0",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"});})),Oc=Ic,Nc=Object,Hc=function(t){return Nc(Xa(t))},Dc=Ha({}.hasOwnProperty),jc=Object.hasOwn||function(t,e){return Dc(Hc(t),e)},Lc=0,zc=Math.random(),Pc=Ha(1..toString),Ac=function(t,e){return Oc[t]||(Oc[t]=e||{})},Cc=jc,Vc=function(t){return "Symbol("+(void 0===t?"":t)+")_"+Pc(++Lc+zc,36)},Fc=Qa.Symbol,Bc=Ac("wks"),Rc=vc?Fc.for||Fc:Fc&&Fc.withoutSetter||Vc,$c=mc,_c=function(t,e){var n=t[e];return Ga(n)?void 0:Sc(n)},qc=function(t,e){var n,r;if("string"===e&&Ja(n=t.toString)&&!Ec(r=xc(n,t)))return r;if(Ja(n=t.valueOf)&&!Ec(r=xc(n,t)))return r;if("string"!==e&&Ja(n=t.toString)&&!Ec(r=xc(n,t)))return r;throw new kc("Can't convert object to primitive value")},Wc=function(t){return Cc(Bc,t)||(Bc[t]=fc&&Cc(Fc,t)?Fc[t]:Rc("Symbol."+t)),Bc[t]},Gc=TypeError,Uc=Wc("toPrimitive"),Kc=function(t,e){if(!Ec(t)||$c(t))return t;var n,r=_c(t,Uc);if(r){if(void 0===e&&(e="default"),n=xc(r,t,e),!Ec(n)||$c(n))return n;throw new Gc("Can't convert object to primitive value")}return void 0===e&&(e="number"),qc(t,e)},Xc=Qa.document,Jc=Ec(Xc)&&Ec(Xc.createElement),Yc=Aa,Qc=function(t){return Jc?Xc.createElement(t):{}},Zc=!Yc&&!ba((function(){return 7!==Object.defineProperty(Qc("div"),"a",{get:function(){return 7}}).a})),tl=$a,el=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},nl=function(t){return Ka(Xa(t))},rl=function(t){var e=Kc(t,"string");return $c(e)?e:e+""},ol=Zc,il=Object.getOwnPropertyDescriptor,ul={f:Yc?il:function(t,e){if(t=nl(t),e=rl(e),ol)try{return il(t,e)}catch(t){}if(Cc(t,e))return el(!xc(tl.f,t,e),t[e])}},al=/#|\.prototype\./,cl=function(t,e){var n=sl[ll(t)];return n===dl||n!==fl&&(Ja(e)?ba(e):!!e)},ll=cl.normalize=function(t){return String(t).replace(al,".").toLowerCase()},sl=cl.data={},fl=cl.NATIVE="N",dl=cl.POLYFILL="P",pl=cl,hl=function(t){if("Function"===La(t))return Ha(t)},vl=hl(hl.bind),gl=Yc&&ba((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ml=String,yl=TypeError,bl=gl,wl=function(t){if(Ec(t))return t;throw new yl(ml(t)+" is not an object")},Sl=TypeError,xl=Object.defineProperty,El=Object.getOwnPropertyDescriptor,kl="enumerable",Tl="configurable",Ml="writable",Il={f:Yc?bl?function(t,e,n){if(wl(t),e=rl(e),wl(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ml in n&&!n[Ml]){var r=El(t,e);r&&r[Ml]&&(t[e]=n.value,n={configurable:Tl in n?n[Tl]:r[Tl],enumerable:kl in n?n[kl]:r[kl],writable:!1});}return xl(t,e,n)}:xl:function(t,e,n){if(wl(t),e=rl(e),wl(n),ol)try{return xl(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Sl("Accessors not supported");return "value"in n&&(t[e]=n.value),t}},Ol=Ta,Nl=ul,Hl=pl,Dl=function(t,e){return Sc(t),void 0===e?t:Sa?vl(t,e):function(){return t.apply(e,arguments)}},jl=Yc?function(t,e,n){return Il.f(t,e,el(1,n))}:function(t,e,n){return t[e]=n,t},Ll=Nl.f,zl=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return Ol(t,this,arguments)};return e.prototype=t.prototype,e},Pl=Array.isArray||function(t){return "Array"===La(t)},Al=Math.ceil,Cl=Math.floor,Vl=Math.trunc||function(t){var e=+t;return (e>0?Cl:Al)(e)},Fl=function(t){var e=+t;return e!=e||0===e?0:Vl(e)},Bl=Math.min,Rl=function(t){var e=Fl(t);return e>0?Bl(e,9007199254740991):0},$l=TypeError,_l={};_l[Wc("toStringTag")]="z";var ql="[object z]"===String(_l),Wl=Wc("toStringTag"),Gl=Object,Ul="Arguments"===La(function(){return arguments}()),Kl=ql?La:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Gl(t),Wl))?n:Ul?La(e):"Object"===(r=La(e))&&Ja(e.callee)?"Arguments":r},Xl=Ha(Function.toString);Ja(Oc.inspectSource)||(Oc.inspectSource=function(t){return Xl(t)});var Jl=Oc.inspectSource,Yl=Kl,Ql=Jl,Zl=function(){},ts=pc("Reflect","construct"),es=/^\s*(?:class|function)\b/,ns=Ha(es.exec),rs=!es.test(Zl),os=function(t){if(!Ja(t))return !1;try{return ts(Zl,[],t),!0}catch(t){return !1}},is=function(t){if(!Ja(t))return !1;switch(Yl(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return rs||!!ns(es,Ql(t))}catch(t){return !0}};is.sham=!0;var us=!ts||ba((function(){var t;return os(os.call)||!os(Object)||!os((function(){t=!0;}))||t}))?is:os,as=Pl,cs=us,ls=Wc("species"),ss=Array,fs=function(t){var e;return as(t)&&(e=t.constructor,(cs(e)&&(e===ss||as(e.prototype))||Ec(e)&&null===(e=e[ls]))&&(e=void 0)),void 0===e?ss:e},ds=Wc("species"),ps=function(t,e){var n,r,o,i,u,a,c,l,s,f=t.target,d=t.global,p=t.stat,h=t.proto,v=d?Qa:p?Qa[f]:Qa[f]&&Qa[f].prototype,g=d?Ya:Ya[f]||jl(Ya,f,{})[f],m=g.prototype;for(i in e)r=!(n=Hl(d?i:f+(p?".":"#")+i,t.forced))&&v&&Cc(v,i),a=g[i],r&&(c=t.dontCallGetSet?(s=Ll(v,i))&&s.value:v[i]),u=r&&c?c:e[i],(n||h||typeof a!=typeof u)&&(l=t.bind&&r?Dl(u,Qa):t.wrap&&r?zl(u):h&&Ja(u)?hl(u):u,(t.sham||u&&u.sham||a&&a.sham)&&jl(l,"sham",!0),jl(g,i,l),h&&(Cc(Ya,o=f+"Prototype")||jl(Ya,o,{}),jl(Ya[o],i,u),t.real&&m&&(n||!m[i])&&jl(m,i,u)));},hs=function(t){return Rl(t.length)},vs=function(t){if(t>9007199254740991)throw $l("Maximum allowed index exceeded");return t},gs=function(t,e,n){Yc?Il.f(t,e,el(0,n)):t[e]=n;},ms=function(t,e){return new(fs(t))(0===e?0:e)},ys=function(t){return cc>=51||!ba((function(){var e=[];return (e.constructor={})[ds]=function(){return {foo:1}},1!==e[t](Boolean).foo}))},bs=Wc("isConcatSpreadable"),ws=cc>=51||!ba((function(){var t=[];return t[bs]=!1,t.concat()[0]!==t})),Ss=function(t){if(!Ec(t))return !1;var e=t[bs];return void 0!==e?!!e:as(t)},xs=!ws||!ys("concat");ps({target:"Array",proto:!0,arity:1,forced:xs},{concat:function(t){var e,n,r,o,i,u=Hc(this),a=ms(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Ss(i=-1===e?u:arguments[e]))for(o=hs(i),vs(c+o),n=0;n<o;n++,c++)n in i&&gs(a,c,i[n]);else vs(c+1),gs(a,c++,i);return a.length=c,a}});var Es,ks=String,Ts=Math.max,Ms=Math.min,Is=function(t,e){var n=Fl(t);return n<0?Ts(n+e,0):Ms(n,e)},Os=function(t){return function(e,n,r){var o=nl(e),i=hs(o);if(0===i)return !t&&-1;var u,a=Is(r,i);if(t&&n!=n){for(;i>a;)if((u=o[a++])!=u)return !0}else for(;i>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return !t&&-1}},Ns={includes:Os(!0),indexOf:Os(!1)},Hs={},Ds=Ns.indexOf,js=Ha([].push),Ls=function(t,e){var n,r=nl(t),o=0,i=[];for(n in r)!Cc(Hs,n)&&Cc(r,n)&&js(i,n);for(;e.length>o;)Cc(r,n=e[o++])&&(~Ds(i,n)||js(i,n));return i},zs=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ps=Object.keys||function(t){return Ls(t,zs)},As=Yc&&!bl?Object.defineProperties:function(t,e){wl(t);for(var n,r=nl(e),o=Ps(e),i=o.length,u=0;i>u;)Il.f(t,n=o[u++],r[n]);return t},Cs={f:As},Vs=pc("document","documentElement"),Fs=Ac("keys"),Bs=Cs,Rs=Vs,$s=function(t){return Fs[t]||(Fs[t]=Vc(t))},_s="prototype",qs="script",Ws=$s("IE_PROTO"),Gs=function(){},Us=function(t){return "<"+qs+">"+t+"</"+qs+">"},Ks=function(t){t.write(Us("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xs=function(){try{Es=new ActiveXObject("htmlfile");}catch(t){}var t,e,n;Xs="undefined"!=typeof document?document.domain&&Es?Ks(Es):(e=Qc("iframe"),n="java"+qs+":",e.style.display="none",Rs.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Us("document.F=Object")),t.close(),t.F):Ks(Es);for(var r=zs.length;r--;)delete Xs[_s][zs[r]];return Xs()};Hs[Ws]=!0;var Js,Ys,Qs,Zs=Object.create||function(t,e){var n;return null!==t?(Gs[_s]=wl(t),n=new Gs,Gs[_s]=null,n[Ws]=t):n=Xs(),void 0===e?n:Bs.f(n,e)},tf=zs.concat("length","prototype"),ef={f:Object.getOwnPropertyNames||function(t){return Ls(t,tf)}},nf=Ha([].slice),rf=ef.f,of="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],uf={f:function(t){return of&&"Window"===La(t)?function(t){try{return rf(t)}catch(t){return nf(of)}}(t):rf(nl(t))}},af={f:Object.getOwnPropertySymbols},cf={f:Wc},lf=Il.f,sf=function(t,e,n,r){return r&&r.enumerable?t[e]=n:jl(t,e,n),t},ff=ql?{}.toString:function(){return "[object "+Yl(this)+"]"},df=Il.f,pf=Wc("toStringTag"),hf=Qa.WeakMap,vf=Ja(hf)&&/native code/.test(String(hf)),gf="Object already initialized",mf=Qa.TypeError,yf=Qa.WeakMap;if(vf||Oc.state){var bf=Oc.state||(Oc.state=new yf);bf.get=bf.get,bf.has=bf.has,bf.set=bf.set,Js=function(t,e){if(bf.has(t))throw new mf(gf);return e.facade=t,bf.set(t,e),e},Ys=function(t){return bf.get(t)||{}},Qs=function(t){return bf.has(t)};}else {var wf=$s("state");Hs[wf]=!0,Js=function(t,e){if(Cc(t,wf))throw new mf(gf);return e.facade=t,jl(t,wf,e),e},Ys=function(t){return Cc(t,wf)?t[wf]:{}},Qs=function(t){return Cc(t,wf)};}var Sf={set:Js,get:Ys,has:Qs,enforce:function(t){return Qs(t)?Ys(t):Js(t,{})},getterFor:function(t){return function(e){var n;if(!Ec(e)||(n=Ys(e)).type!==t)throw new mf("Incompatible receiver, "+t+" required");return n}}},xf=Ha([].push),Ef=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,l,s,f){for(var d,p,h=Hc(c),v=Ka(h),g=hs(v),m=Dl(l,s),y=0,b=f||ms,w=e?b(c,g):n||u?b(c,0):void 0;g>y;y++)if((a||y in v)&&(p=m(d=v[y],y,h),t))if(e)w[y]=p;else if(p)switch(t){case 3:return !0;case 5:return d;case 6:return y;case 2:xf(w,d);}else switch(t){case 4:return !1;case 7:xf(w,d);}return i?-1:r||o?o:w}},kf={forEach:Ef(0),map:Ef(1),filter:Ef(2),some:Ef(3),every:Ef(4),find:Ef(5),findIndex:Ef(6),filterReject:Ef(7)},Tf=function(t){if("Symbol"===Yl(t))throw new TypeError("Cannot convert a Symbol value to a string");return ks(t)},Mf=Zs,If=uf,Of=af,Nf=function(t,e,n){return Il.f(t,e,n)},Hf=function(t){var e=Ya.Symbol||(Ya.Symbol={});Cc(e,t)||lf(e,t,{value:cf.f(t)});},Df=function(){var t=pc("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=Wc("toPrimitive");e&&!e[r]&&sf(e,r,(function(t){return xc(n,this)}),{arity:1});},jf=function(t,e,n,r){var o=n?t:t&&t.prototype;o&&(Cc(o,pf)||df(o,pf,{configurable:!0,value:e}),r&&!ql&&jl(o,"toString",ff));},Lf=Sf,zf=kf.forEach,Pf=$s("hidden"),Af="Symbol",Cf="prototype",Vf=Lf.set,Ff=Lf.getterFor(Af),Bf=Object[Cf],Rf=Qa.Symbol,$f=Rf&&Rf[Cf],_f=Qa.RangeError,qf=Qa.TypeError,Wf=Qa.QObject,Gf=Nl.f,Uf=Il.f,Kf=If.f,Xf=tl.f,Jf=Ha([].push),Yf=Ac("symbols"),Qf=Ac("op-symbols"),Zf=Ac("wks"),td=!Wf||!Wf[Cf]||!Wf[Cf].findChild,ed=function(t,e,n){var r=Gf(Bf,e);r&&delete Bf[e],Uf(t,e,n),r&&t!==Bf&&Uf(Bf,e,r);},nd=Yc&&ba((function(){return 7!==Mf(Uf({},"a",{get:function(){return Uf(this,"a",{value:7}).a}})).a}))?ed:Uf,rd=function(t,e){var n=Yf[t]=Mf($f);return Vf(n,{type:Af,tag:t,description:e}),Yc||(n.description=e),n},od=function(t,e,n){t===Bf&&od(Qf,e,n),wl(t);var r=rl(e);return wl(n),Cc(Yf,r)?(n.enumerable?(Cc(t,Pf)&&t[Pf][r]&&(t[Pf][r]=!1),n=Mf(n,{enumerable:el(0,!1)})):(Cc(t,Pf)||Uf(t,Pf,el(1,Mf(null))),t[Pf][r]=!0),nd(t,r,n)):Uf(t,r,n)},id=function(t,e){wl(t);var n=nl(e),r=Ps(n).concat(ld(n));return zf(r,(function(e){Yc&&!xc(ud,n,e)||od(t,e,n[e]);})),t},ud=function(t){var e=rl(t),n=xc(Xf,this,e);return !(this===Bf&&Cc(Yf,e)&&!Cc(Qf,e))&&(!(n||!Cc(this,e)||!Cc(Yf,e)||Cc(this,Pf)&&this[Pf][e])||n)},ad=function(t,e){var n=nl(t),r=rl(e);if(n!==Bf||!Cc(Yf,r)||Cc(Qf,r)){var o=Gf(n,r);return !o||!Cc(Yf,r)||Cc(n,Pf)&&n[Pf][r]||(o.enumerable=!0),o}},cd=function(t){var e=Kf(nl(t)),n=[];return zf(e,(function(t){Cc(Yf,t)||Cc(Hs,t)||Jf(n,t);})),n},ld=function(t){var e=t===Bf,n=Kf(e?Qf:nl(t)),r=[];return zf(n,(function(t){!Cc(Yf,t)||e&&!Cc(Bf,t)||Jf(r,Yf[t]);})),r};fc||(Rf=function(){if(hc($f,this))throw new qf("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Tf(arguments[0]):void 0,e=Vc(t),n=function(t){var r=void 0===this?Qa:this;r===Bf&&xc(n,Qf,t),Cc(r,Pf)&&Cc(r[Pf],e)&&(r[Pf][e]=!1);var o=el(1,t);try{nd(r,e,o);}catch(t){if(!(t instanceof _f))throw t;ed(r,e,o);}};return Yc&&td&&nd(Bf,e,{configurable:!0,set:n}),rd(e,t)},$f=Rf[Cf],sf($f,"toString",(function(){return Ff(this).tag})),sf(Rf,"withoutSetter",(function(t){return rd(Vc(t),t)})),tl.f=ud,Il.f=od,Bs.f=id,Nl.f=ad,ef.f=If.f=cd,Of.f=ld,cf.f=function(t){return rd(Wc(t),t)},Yc&&Nf($f,"description",{configurable:!0,get:function(){return Ff(this).description}})),ps({global:!0,constructor:!0,wrap:!0,forced:!fc,sham:!fc},{Symbol:Rf}),zf(Ps(Zf),(function(t){Hf(t);})),ps({target:Af,stat:!0,forced:!fc},{useSetter:function(){td=!0;},useSimple:function(){td=!1;}}),ps({target:"Object",stat:!0,forced:!fc,sham:!Yc},{create:function(t,e){return void 0===e?Mf(t):id(Mf(t),e)},defineProperty:od,defineProperties:id,getOwnPropertyDescriptor:ad}),ps({target:"Object",stat:!0,forced:!fc},{getOwnPropertyNames:cd}),Df(),jf(Rf,Af),Hs[Pf]=!0;var sd=fc&&!!Symbol.for&&!!Symbol.keyFor,fd=Ac("string-to-symbol-registry"),dd=Ac("symbol-to-string-registry");ps({target:"Symbol",stat:!0,forced:!sd},{for:function(t){var e=Tf(t);if(Cc(fd,e))return fd[e];var n=pc("Symbol")(e);return fd[e]=n,dd[n]=e,n}});var pd=Ac("symbol-to-string-registry");ps({target:"Symbol",stat:!0,forced:!sd},{keyFor:function(t){if(!$c(t))throw new TypeError(bc(t)+" is not a symbol");if(Cc(pd,t))return pd[t]}});var hd=Ha([].push),vd=function(t){if(Ja(t))return t;if(as(t)){for(var e=t.length,n=[],r=0;r<e;r++){var o=t[r];"string"==typeof o?hd(n,o):"number"!=typeof o&&"Number"!==La(o)&&"String"!==La(o)||hd(n,Tf(o));}var i=n.length,u=!0;return function(t,e){if(u)return u=!1,e;if(as(this))return e;for(var r=0;r<i;r++)if(n[r]===t)return e}}},gd=String,md=pc("JSON","stringify"),yd=Ha(/./.exec),bd=Ha("".charAt),wd=Ha("".charCodeAt),Sd=Ha("".replace),xd=Ha(1..toString),Ed=/[\uD800-\uDFFF]/g,kd=/^[\uD800-\uDBFF]$/,Td=/^[\uDC00-\uDFFF]$/,Md=!fc||ba((function(){var t=pc("Symbol")("stringify detection");return "[null]"!==md([t])||"{}"!==md({a:t})||"{}"!==md(Object(t))})),Id=ba((function(){return '"\\udf06\\ud834"'!==md("\udf06\ud834")||'"\\udead"'!==md("\udead")})),Od=function(t,e){var n=nf(arguments),r=vd(e);if(Ja(r)||void 0!==t&&!$c(t))return n[1]=function(t,e){if(Ja(r)&&(e=xc(r,this,gd(t),e)),!$c(e))return e},Ol(md,null,n)},Nd=function(t,e,n){var r=bd(n,e-1),o=bd(n,e+1);return yd(kd,t)&&!yd(Td,o)||yd(Td,t)&&!yd(kd,r)?"\\u"+xd(wd(t,0),16):t};md&&ps({target:"JSON",stat:!0,arity:3,forced:Md||Id},{stringify:function(t,e,n){var r=nf(arguments),o=Ol(Md?Od:md,null,r);return Id&&"string"==typeof o?Sd(o,Ed,Nd):o}});var Hd=!fc||ba((function(){Of.f(1);}));ps({target:"Object",stat:!0,forced:Hd},{getOwnPropertySymbols:function(t){var e=Of.f;return e?e(Hc(t)):[]}}),Hf("asyncIterator"),Hf("hasInstance"),Hf("isConcatSpreadable"),Hf("iterator"),Hf("match"),Hf("matchAll"),Hf("replace"),Hf("search"),Hf("species"),Hf("split"),Hf("toPrimitive"),Df(),Hf("toStringTag"),jf(pc("Symbol"),"Symbol"),Hf("unscopables"),jf(Qa.JSON,"JSON",!0);var Dd,jd,Ld,zd=Ya.Symbol,Pd=Function.prototype,Ad=Yc&&Object.getOwnPropertyDescriptor,Cd=Cc(Pd,"name"),Vd={EXISTS:Cd,PROPER:Cd&&"something"===function(){}.name,CONFIGURABLE:Cd&&(!Yc||Yc&&Ad(Pd,"name").configurable)},Fd=!ba((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Bd=$s("IE_PROTO"),Rd=Object,$d=Rd.prototype,_d=Fd?Rd.getPrototypeOf:function(t){var e=Hc(t);if(Cc(e,Bd))return e[Bd];var n=e.constructor;return Ja(n)&&e instanceof n?n.prototype:e instanceof Rd?$d:null},qd=Wc("iterator"),Wd=!1;[].keys&&("next"in(Ld=[].keys())?(jd=_d(_d(Ld)))!==Object.prototype&&(Dd=jd):Wd=!0);var Gd=!Ec(Dd)||ba((function(){var t={};return Dd[qd].call(t)!==t}));Dd=Gd?{}:Mf(Dd),Ja(Dd[qd])||sf(Dd,qd,(function(){return this}));var Ud={IteratorPrototype:Dd,BUGGY_SAFARI_ITERATORS:Wd},Xd=Ud.IteratorPrototype,tp=function(t,e,n){try{return Ha(Sc(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},np=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,n={};try{(t=tp(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array;}catch(t){}}(),function(t,e,n,r){var o=e+" Iterator";return t.prototype=Mf(Xd,{next:el(+!r,n)}),jf(t,o,!1,!0),t}),rp=Vd.PROPER,op=Ud.BUGGY_SAFARI_ITERATORS,ip=Wc("iterator"),up="keys",ap="values",cp="entries",lp=function(){return this},fp=function(t,e,n,r,o,i,u){np(n,e,r);var a,c,l,s=function(t){if(t===o&&v)return v;if(!op&&t&&t in p)return p[t];switch(t){case up:case ap:case cp:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",d=!1,p=t.prototype,h=p[ip]||p["@@iterator"]||o&&p[o],v=!op&&h||s(o),g="Array"===e&&p.entries||h;if(g&&(a=_d(g.call(new t)))!==Object.prototype&&a.next&&(jf(a,f,!0,!0),lp),rp&&o===ap&&h&&h.name!==ap&&(d=!0,v=function(){return xc(h,this)}),o)if(c={values:s(ap),keys:i?v:s(up),entries:s(cp)},u)for(l in c)(op||d||!(l in p))&&sf(p,l,c[l]);else ps({target:e,proto:!0,forced:op||d},c);return u&&p[ip]!==v&&sf(p,ip,v,{name:o}),c},dp=function(t,e){return {value:t,done:e}},pp=(Il.f,"Array Iterator"),hp=Lf.set,vp=Lf.getterFor(pp);fp(Array,"Array",(function(t,e){hp(this,{type:pp,target:nl(t),index:0,kind:e});}),(function(){var t=vp(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,dp(void 0,!0);switch(t.kind){case"keys":return dp(n,!1);case"values":return dp(e[n],!1)}return dp([n,e[n]],!1)}),"values");var gp={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};for(var mp in gp)jf(Qa[mp],mp);var yp=zd,bp=Il.f,wp=Wc("metadata"),Sp=Function.prototype;void 0===Sp[wp]&&bp(Sp,wp,{value:null}),Hf("asyncDispose"),Hf("dispose"),Hf("metadata");var xp=yp,Ep=pc("Symbol"),kp=Ep.keyFor,Tp=Ha(Ep.prototype.valueOf),Mp=Ep.isRegisteredSymbol||function(t){try{return void 0!==kp(Tp(t))}catch(t){return !1}};ps({target:"Symbol",stat:!0},{isRegisteredSymbol:Mp});for(var Ip=pc("Symbol"),Op=Ip.isWellKnownSymbol,Np=pc("Object","getOwnPropertyNames"),Hp=Ha(Ip.prototype.valueOf),Dp=Ac("wks"),jp=0,Lp=Np(Ip),zp=Lp.length;jp<zp;jp++)try{var Pp=Lp[jp];$c(Ip[Pp])&&Wc(Pp);}catch(t){}var Ap=function(t){if(Op&&Op(t))return !0;try{for(var e=Hp(t),n=0,r=Np(Dp),o=r.length;n<o;n++)if(Dp[r[n]]==e)return !0}catch(t){}return !1};ps({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Ap}),Hf("customMatcher"),Hf("observable"),ps({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Mp}),ps({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Ap}),Hf("matcher"),Hf("metadataKey"),Hf("patternMatch"),Hf("replaceAll");var Cp=xp,Vp=Ha("".charAt),Fp=Ha("".charCodeAt),Bp=Ha("".slice),Rp=function(t){return function(e,n){var r,o,i=Tf(Xa(e)),u=Fl(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=Fp(i,u))<55296||r>56319||u+1===a||(o=Fp(i,u+1))<56320||o>57343?t?Vp(i,u):r:t?Bp(i,u,u+2):o-56320+(r-55296<<10)+65536}},$p={codeAt:Rp(!1),charAt:Rp(!0)}.charAt,_p="String Iterator",qp=Lf.set,Wp=Lf.getterFor(_p);fp(String,"String",(function(t){qp(this,{type:_p,string:Tf(t),index:0});}),(function(){var t,e=Wp(this),n=e.string,r=e.index;return r>=n.length?dp(void 0,!0):(t=$p(n,r),e.index+=t.length,dp(t,!1))}));var Gp=cf.f("iterator");function Up(t){return Up="function"==typeof Cp&&"symbol"==typeof Gp?function(t){return typeof t}:function(t){return t&&"function"==typeof Cp&&t.constructor===Cp&&t!==Cp.prototype?"symbol":typeof t},Up(t)}var Kp=Qt.EXISTS,Xp=Function.prototype,Jp=D(Xp.toString),Yp=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Qp=D(Yp.exec);b&&!Kp&&function(t,e,n){n.get&&ve(n.get,e,{getter:!0}),n.set&&ve(n.set,e,{setter:!0}),Ut.f(t,e,n);}(Xp,"name",{configurable:!0,get:function(){try{return Qp(Yp,Jp(this))[1]}catch(t){return ""}}});var Zp=function(){function t(){this.tag="select",this.width=80;}return t.prototype.isActive=function(t){return !1},t.prototype.getValue=function(t){var e=this.mark,n=r.Editor.marks(t);return n&&n[e]?n[e]:""},t.prototype.isDisabled=function(t){return null==t.selection||(this.mark,!!lo(r.Editor.nodes(t,{match:function(n){return "pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0])},t.prototype.exec=function(t,e){var n=this.mark;e?t.addMark(n,e):t.removeMark(n);},t}(),th=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("fontSize.title"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',n.mark="fontSize",n}return oo(n,t),n.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig(this.mark).fontSizeList,o=void 0===r?[]:r;n.push({text:e.t("fontSize.default"),value:""}),o.forEach((function(t){if("string"==typeof t)n.push({text:t,value:t});else if("object"===Up(t)){var e=t.name,r=t.value;n.push({text:e,value:r});}}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected;})),n},n}(Zp),eh=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("fontFamily.title"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',n.mark="fontFamily",n.selectPanelWidth=150,n}return oo(n,t),n.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig(this.mark).fontFamilyList,o=void 0===r?[]:r;n.push({text:e.t("fontFamily.default"),value:""}),o.forEach((function(t){if("string"==typeof t)n.push({text:t,value:t,styleForRenderMenuList:{"font-family":t}});else if("object"===Up(t)){var e=t.name,r=t.value;n.push({text:e,value:r,styleForRenderMenuList:{"font-family":r}});}}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected;})),n},n}(Zp);var nh={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&Vi(i,{fontSize:r}),o&&Vi(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!r.Text.isText(t))return e;var n,o=t,i=o.fontSize,u=o.fontFamily;return i||u?((Zr(e)||"span"!==eo(n=c.default(e)))&&(n=c.default("<span>"+e+"</span>")),i&&n.css("font-size",i),u&&n.css("font-family",u),to(n)):e},preParseHtml:[pa],parseStyleHtml:function(t,e,n){var o=c.default(t);if(!r.Text.isText(e))return e;var i=e,u=n.getMenuConfig("fontSize").fontSizeList,a=void 0===u?[]:u,l=no(o,"font-size"),s=a.find((function(t){return t.value&&t.value===l}))||a.includes(l);l&&s&&(i.fontSize=l);var f=n.getMenuConfig("fontFamily").fontFamilyList,d=void 0===f?[]:f,p=no(o,"font-family").replace(/"/g,""),h=d.find((function(t){return t.value&&t.value===p}))||d.includes(p);return p&&h&&(i.fontFamily=p),i},menus:[{key:"fontSize",factory:function(){return new th},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 eh},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]};var rh={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=c.default(t),n=no(e,"padding-left");return /\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}};var oh=function(){function t(){this.tag="button";}return t.prototype.getValue=function(t){var e=lo(r.Editor.nodes(t,{match:function(t){return !!t.indent},universal:!0}),1),n=e[0];return null==n?"":lo(n,1)[0].indent||""},t.prototype.isActive=function(t){return !1},t.prototype.getMatchNode=function(t){var n=lo(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return "paragraph"===n||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==n?null:n[0]},t}(),ih=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("indent.decrease"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',n}return oo(n,t),n.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!e.indent},n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{indent:null},{match:function(t){return r.Element.isElement(t)}});},n}(oh),uh=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("indent.increase"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',n.DEFAULT_INDENT_VALUE="2em",n}return oo(n,t),n.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!!e.indent},n.prototype.getIndentValue=function(t){var e=this.getMatchNode(t);if(!e)return this.DEFAULT_INDENT_VALUE;var n=e.children.filter(r.Text.isText)[0];if(!n||!n.fontSize)return this.DEFAULT_INDENT_VALUE;var o=n.fontSize,i=parseInt(n.fontSize);return ""+2*i+o.replace(""+i,"")},n.prototype.exec=function(t,e){var n=this.getIndentValue(t);r.Transforms.setNodes(t,{indent:n},{match:function(t){return r.Element.isElement(t)},mode:"highest"});},n}(oh),ah={renderStyle:function(t,e){if(!r.Element.isElement(t))return e;var n=t.indent,o=e;return n&&Vi(o,{textIndent:n}),o},styleToHtml:function(t,e){if(!r.Element.isElement(t))return e;var n=t.indent;if(!n)return e;var o=c.default(e);return o.css("text-indent",n),to(o)},preParseHtml:[rh],parseStyleHtml:function(t,e,n){var o=c.default(t);if(!r.Element.isElement(e))return e;var i=e,u=no(o,"text-indent"),a=parseInt(u,10);return u&&a>0&&(i.indent=u),i},menus:[{key:"indent",factory:function(){return new uh}},{key:"delIndent",factory:function(){return new ih}}]};var ch=function(){function t(){this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){var n=e.type;return !(!r.Editor.isVoid(t,e)||!r.Editor.isBlock(t,e)||"video"===n)||(!!["pre","code"].includes(n)||void 0)}))},t}(),lh=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.left"),n.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>',n}return oo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"left"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}});},n}(ch),sh=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.right"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',n}return oo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"right"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}});},n}(ch),fh=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.center"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',n}return oo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"center"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}});},n}(ch),dh=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.justify"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',n}return oo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"justify"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}});},n}(ch),ph={renderStyle:function(t,e){if(!r.Element.isElement(t))return e;var n=t.textAlign,o=e;return n&&Vi(o,{textAlign:n}),o},styleToHtml:function(t,e){if(!r.Element.isElement(t))return e;var n=t.textAlign;if(!n)return e;var o=c.default(e);return o.css("text-align",n),to(o)},parseStyleHtml:function(t,e,n){var o=c.default(t);if(!r.Element.isElement(e))return e;var i=e,u=no(o,"text-align");return u&&(i.textAlign=u),i},menus:[{key:"justifyLeft",factory:function(){return new lh}},{key:"justifyRight",factory:function(){return new sh}},{key:"justifyCenter",factory:function(){return new fh}},{key:"justifyJustify",factory:function(){return new dh}}]};var hh=function(){function t(){this.title=e.t("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 t.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,o=void 0===r?[]:r;n.push({text:e.t("lineHeight.default"),value:""}),o.forEach((function(t){n.push({text:t,value:t});}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected;})),n},t.prototype.getMatchNode=function(t){var n=lo(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return !!n.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(n)},universal:!0,mode:"highest"}),1)[0];return null==n?null:n[0]},t.prototype.isActive=function(t){return !1},t.prototype.getValue=function(t){var e=this.getMatchNode(t);return null==e?"":r.Element.isElement(e)&&e.lineHeight||""},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getMatchNode(t)},t.prototype.exec=function(t,e){r.Transforms.setNodes(t,{lineHeight:e.toString()},{mode:"highest"});},t}();var vh={renderStyle:function(t,e){if(!r.Element.isElement(t))return e;var n=t.lineHeight,o=e;return n&&Vi(o,{lineHeight:n}),o},styleToHtml:function(t,e){if(!r.Element.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var o=c.default(e);return o.css("line-height",n),to(o)},parseStyleHtml:function(t,e,n){var o=c.default(t);if(!r.Element.isElement(e))return e;var i=e,u=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===u?[]:u,l=no(o,"line-height");return l&&a.includes(l)&&(i.lineHeight=l),i},menus:[{key:"lineHeight",factory:function(){return new hh},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},gh=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection},t.prototype.exec=function(t,e){"function"==typeof t.redo&&t.redo();},t}(),mh=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection},t.prototype.exec=function(t,e){"function"==typeof t.undo&&t.undo();},t}(),yh={menus:[{key:"redo",factory:function(){return new gh}},{key:"undo",factory:function(){return new mh}}]};var bh={type:"divider",renderElem:function(t,r,o){var i=e.DomEditor.isNodeSelected(o,t);return n.h("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:i?"true":""},style:{},on:{mousedown:function(t){return t.preventDefault()}}},[n.h("hr")])}};var wh={type:"divider",elemToHtml:function(t,e){return "<hr/>"}};var Sh={selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return {type:"divider",children:[{text:""}]}}},xh=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(n){if(t.isVoid(n))return !0;var r=e.DomEditor.getNodeType(n);return "table"===r||("pre"===r||void 0)}))},t.prototype.exec=function(t,n){e.DomEditor.isSelectedEmptyParagraph(t)&&r.Transforms.removeNodes(t,{mode:"highest"}),r.Transforms.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"});},t}(),Eh={renderElems:[bh],elemsToHtml:[wh],parseElemsHtml:[Sh],menus:[{key:"divider",factory:function(){return new xh}}],editorPlugin:function(t){var n=t.isVoid,o=t.normalizeNode,i=t;return i.isVoid=function(t){return "divider"===t.type||n(t)},i.normalizeNode=function(t){var n=lo(t,2),u=n[0],a=n[1];if("divider"!==e.DomEditor.getNodeType(u))return o([u,a]);e.DomEditor.isLastNode(i,u)&&r.Transforms.insertNodes(i,e.DomEditor.genEmptyParagraph(),{at:[a[0]+1]});},i}},kh=D([].join);Ue({target:"Array",proto:!0,forced:C!==Object||!Eo("join",",")},{join:function(t){return kh(R(this),void 0===t?",":t)}});var Th=mn.map;Ue({target:"Array",proto:!0,forced:!bn("map")},{map:function(t){return Th(this,t,arguments.length>1?arguments[1]:void 0)}});var Mh=function(){function t(){this.title=e.t("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 t.prototype.getSelectCodeElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"code");if(null==n)return null;var r=e.DomEditor.getParentNode(t,n);return null==r||"pre"!==e.DomEditor.getNodeType(r)?null:n},t.prototype.getValue=function(t){var e=this.getSelectCodeElem(t);return null==e?"":e.language||""},t.prototype.isActive=function(t){return !!this.getSelectCodeElem(t)},t.prototype.isDisabled=function(t){if(null==t.selection)return !0;var n=e.DomEditor.getSelectedElems(t);return !!n.some((function(e){return t.isVoid(e)}))||!n.some((function(t){var n=e.DomEditor.getNodeType(t);if("pre"===n||"paragraph"===n)return !0}))},t.prototype.exec=function(t,e){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,e.toString());},t.prototype.changeToPlainText=function(t){var e=this.getSelectCodeElem(t);if(null!=e){var n=r.Node.string(e);r.Transforms.removeNodes(t,{mode:"highest"});var o=n.split("\n").map((function(t){return {type:"paragraph",children:[{text:t}]}}));r.Transforms.insertNodes(t,o,{mode:"highest"});}},t.prototype.changeToCodeBlock=function(t,e){var n,o,i=[],u=r.Editor.nodes(t,{match:function(e){return t.children.includes(e)},universal:!0});try{for(var a=co(u),c=a.next();!c.done;c=a.next()){var l=lo(c.value,1)[0];l&&i.push(r.Node.string(l));}}catch(t){n={error:t};}finally{try{c&&!c.done&&(o=a.return)&&o.call(a);}finally{if(n)throw n.error}}r.Transforms.removeNodes(t,{mode:"highest"});var s={type:"pre",children:[{type:"code",language:e,children:[{text:i.join("\n")}]}]};r.Transforms.insertNodes(t,s,{mode:"highest"});},t}(),Ih={key:"codeBlock",factory:function(){return new Mh}};dr("match",(function(t,e,n){return [function(e){var n=B(this),r=V(e)?void 0:lt(e,t);return r?x(r,e,n):new RegExp(e)[t](kn(n))},function(t){var r=Bt(this),o=kn(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return Ir(r,o);var u=r.unicode;r.lastIndex=0;for(var a,c=[],l=0;null!==(a=Ir(r,o));){var s=kn(a[0]);c[l]=s,""===s&&(r.lastIndex=yr(o,Te(r.lastIndex),u)),l++;}return 0===l?null:c}]})),Ue({target:"String",proto:!0,forced:go("anchor")},{anchor:function(t){return vo(this,"a","name",t)}});var Oh={menus:[Ih],editorPlugin:function(t){var n=t.insertBreak,o=t.normalizeNode,i=t.insertData;t.insertNode;var u=t;return u.insertBreak=function(){var t=e.DomEditor.getSelectedNodeByType(u,"code");if(null!=t){var o=function(t,e){var n=e.selection;if(null==n)return "";var o=r.Node.string(t),i=n.anchor.offset,u=o.slice(0,i).split("\n"),a=u.length;return 0===a?"":u[a-1]}(t,u);if(o){var i=o.match(/^\s+/);if(null!=i&&null!=i[0]){var a=i[0];return void u.insertText("\n"+a)}}u.insertText("\n");}else n();},u.normalizeNode=function(t){var n=lo(t,2),i=n[0],a=n[1],c=e.DomEditor.getNodeType(i);("code"===c&&a.length<=1&&r.Transforms.setNodes(u,{type:"paragraph"},{at:a}),"pre"===c)&&(e.DomEditor.isLastNode(u,i)&&r.Transforms.insertNodes(u,e.DomEditor.genEmptyParagraph(),{at:[a[0]+1]}),"code"!==e.DomEditor.getNodeType(i.children[0])&&(r.Transforms.unwrapNodes(u),r.Transforms.setNodes(u,{type:"paragraph"},{mode:"highest"})));return o([i,a])},u.insertData=function(t){if(null!=e.DomEditor.getSelectedNodeByType(u,"code")){var n=t.getData("text/plain");r.Editor.insertText(u,n);}else i(t);},u},renderElems:[{type:"pre",renderElem:function(t,e,r){return n.jsx("pre",null,e)}},{type:"code",renderElem:function(t,e,r){return n.jsx("code",null,e)}}],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return "<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return "<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=c.default(t);if("code"!==eo(e))return t;var n=e.find("xmp");if(0===n.length)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return {type:"code",language:"",children:[{text:c.default(t)[0].textContent||""}]}}},{selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,n,r){var o=c.default(t);return 0===(n=n.filter((function(t){return "code"===e.DomEditor.getNodeType(t)}))).length&&(n=[{type:"code",language:"",children:[{text:o[0].textContent||""}]}]),{type:"pre",children:n.filter((function(t){return "code"===e.DomEditor.getNodeType(t)}))}}}]},Nh=function(){function t(){this.title=e.t("fullScreen.title"),this.iconSvg=Lo,this.tag="button",this.alwaysEnable=!0;}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return t.isFullScreen},t.prototype.isDisabled=function(t){return !1},t.prototype.getIcon=function(t){return t.isFullScreen?Lo:'<svg t="1723361745825" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8705" width="200" height="200"><path d="M703.926857 362.642286a42.642286 42.642286 0 0 1-42.642286-42.642286V128a42.642286 42.642286 0 1 1 85.357715 0v149.357714h149.357714c21.211429 0 38.765714 15.433143 42.057143 35.693715l0.585143 6.948571a42.642286 42.642286 0 0 1-42.642286 42.642286H703.926857zM703.926857 938.642286a42.642286 42.642286 0 0 1-42.642286-42.642286V704c0-23.552 19.090286-42.642286 42.642286-42.642286h192.073143a42.642286 42.642286 0 1 1 0 85.284572l-149.357714 0.073143v149.284571c0 21.211429-15.506286 38.765714-35.84 42.130286l-6.875429 0.512zM319.853714 938.642286a42.642286 42.642286 0 0 1-42.642285-42.642286v-149.284571H127.853714a42.642286 42.642286 0 0 1-42.130285-35.84l-0.585143-6.875429c0-23.552 19.163429-42.642286 42.715428-42.642286h192c23.552 0 42.715429 19.017143 42.715429 42.642286v192a42.642286 42.642286 0 0 1-42.715429 42.642286zM127.853714 362.642286a42.642286 42.642286 0 1 1 0-85.284572H277.211429V128c0-21.211429 15.433143-38.765714 35.766857-42.130286l6.875428-0.512c23.552 0 42.715429 19.017143 42.715429 42.642286v192a42.642286 42.642286 0 0 1-42.715429 42.642286H127.853714z" fill="#333333" p-id="8706"></path></svg>'},t.prototype.getTitle=function(t){return t.isFullScreen?e.t("fullScreen.title"):e.t("fullScreen.cancelTitle")},t.prototype.exec=function(t,e){t.isFullScreen?t.unFullScreen():t.fullScreen();},t}(),Hh={menus:[{key:"fullScreen",factory:function(){return new Nh}}]},Dh=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!!r.Range.isExpanded(e)},t.prototype.exec=function(t,e){var n=t.selection;if(null!=n){var o=[n.anchor.path[0]];r.Transforms.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(r.Editor.start(t,o));}},t}(),jh={menus:[{key:"enter",factory:function(){return new Dh}}]},Lh=!y((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),zh=ae("IE_PROTO"),Ph=Object,Ah=Ph.prototype,Ch=Lh?Ph.getPrototypeOf:function(t){var e=gt(t);if(yt(e,zh))return e[zh];var n=e.constructor;return _(n)&&e instanceof n?n.prototype:e instanceof Ph?Ah:null},Vh=D(M.f),Fh=D([].push),Bh=b&&y((function(){var t=Object.create(null);return t[2]=2,!Vh(t,2)})),Rh=function(t){return function(e){for(var n,r=R(e),o=Hn(r),i=Bh&&null===Ch(r),u=o.length,a=0,c=[];u>a;)n=o[a++],b&&!(i?n in r:Vh(r,n))||Fh(c,t?[n,r[n]]:r[n]);return c}},$h={entries:Rh(!0),values:Rh(!1)}.entries;Ue({target:"Object",stat:!0},{entries:function(t){return $h(t)}});var _h=function(){function t(){this.title=e.t("formatPainter.title"),this.iconSvg='<svg viewBox="0 0 24 24"><path d="M8 19.997v-5h2v5h9v-7H5v7zm-4-9h16v-3h-6v-4h-4v4H4zm-1 10v-8H2v-6a1 1 0 0 1 1-1h5v-3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v3h5a1 1 0 0 1 1 1v6h-1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1"/></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(e){return t.attrs.isSelect},t.prototype.isDisabled=function(t){return !1},t.prototype.setFormatHtml=function(e){var n,o;if(e.getSelectionText().length){if(t.attrs.formatStyle){!function(t){var e=r.Editor.marks(t);e&&Object.keys(e).forEach((function(e){t.removeMark(e);}));}(e);try{for(var i=co(Object.entries(t.attrs.formatStyle)),u=i.next();!u.done;u=i.next()){var a=lo(u.value,2),c=a[0],l=a[1];e.addMark(c,l);}}catch(t){n={error:t};}finally{try{u&&!u.done&&(o=i.return)&&o.call(i);}finally{if(n)throw n.error}}}t.attrs.formatStyle=null,t.attrs.isSelect=!1;}},t.prototype.exec=function(e){t.attrs.isSelect?(t.attrs.isSelect=!1,t.attrs.formatStyle=null):e.getSelectionText().length&&(t.attrs.formatStyle=r.Editor.marks(e),t.attrs.isSelect=!0);e.blur(),e.focus();},t.attrs={isSelect:!1,formatStyle:null},t}();var qh=[$o,qi,nh,ah,ph,vh,ta,Eh,fa,yu,Oh,la,Li,fo,ra,{menus:[{key:"formatPainter",factory:function(){return new _h}}],editorPlugin:function(t){var e=new _h,n=t.onChange,r=t,o=function(){e.setFormatHtml(r),document.removeEventListener("mouseup",o);};return r.onChange=function(){n(),_h.attrs.isSelect&&(document.removeEventListener("mouseup",o),document.addEventListener("mouseup",o));},r}},yh,Hh,jh];t.default=qh,t.insertImageNode=Vu,t.isInsertImageMenuDisabled=Bu,t.updateImageNode=Fu,Object.defineProperty(t,"__esModule",{value:!0});}));
21680
+ !function(t,e){e(exports,dist$6,dist$7,require$$2,require$$4,require$$3,lodash_throttle);}(commonjsGlobal,(function(t,e,n,r,o,i,a){function u(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var c=u(r),l=u(a);e.i18nAddResources("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",cancelTitle:"Cancel full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",editSize:"Edit size",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link",ok:"Ok",width:"Width",height:"Height"},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"},formatPainter:{title:"Format Painter"}}),e.i18nAddResources("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:"全屏",cancelTitle:"取消全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",editSize:"修改尺寸",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接",ok:"确定",width:"宽度",height:"高度"},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:"待办"},formatPainter:{title:"格式刷"}});var s={type:"blockquote",elemToHtml:function(t,e){return "<blockquote>".concat(e,"</blockquote>")}},f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function d(t){var e={exports:{}};return t(e,e.exports),e.exports}var p,h,v=function(t){return t&&t.Math===Math&&t},g=v("object"==typeof globalThis&&globalThis)||v("object"==typeof window&&window)||v("object"==typeof self&&self)||v("object"==typeof f&&f)||v("object"==typeof f&&f)||function(){return this}()||Function("return this")(),m=function(t){try{return !!t()}catch(t){return !0}},y=!m((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),b=!m((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),w=Function.prototype.call,S=b?w.bind(w):function(){return w.apply(w,arguments)},x={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,k=E&&!x.call({1:2},1)?function(t){var e=E(this,t);return !!e&&e.enumerable}:x,T={f:k},M=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},I=Function.prototype,O=I.call,N=b&&I.bind.bind(O,O),H=b?N:function(t){return function(){return O.apply(t,arguments)}},D=H({}.toString),j=H("".slice),L=function(t){return j(D(t),8,-1)},z=Object,P=H("".split),A=m((function(){return !z("z").propertyIsEnumerable(0)}))?function(t){return "String"===L(t)?P(t,""):z(t)}:z,C=function(t){return null==t},V=TypeError,F=function(t){if(C(t))throw new V("Can't call method on "+t);return t},B=function(t){return A(F(t))},R="object"==typeof document&&document.all,$=void 0===R&&void 0!==R?function(t){return "function"==typeof t||t===R}:function(t){return "function"==typeof t},_=function(t){return "object"==typeof t?null!==t:$(t)},q=function(t,e){return arguments.length<2?(n=g[t],$(n)?n:void 0):g[t]&&g[t][e];var n;},W=H({}.isPrototypeOf),G=g.navigator,U=G&&G.userAgent,K=U?String(U):"",X=g.process,J=g.Deno,Y=X&&X.versions||J&&J.version,Q=Y&&Y.v8;Q&&(h=(p=Q.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!h&&K&&(!(p=K.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=K.match(/Chrome\/(\d+)/))&&(h=+p[1]);var Z=h,tt=g.String,et=!!Object.getOwnPropertySymbols&&!m((function(){var t=Symbol("symbol detection");return !tt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Z&&Z<41})),nt=et&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,rt=Object,ot=nt?function(t){return "symbol"==typeof t}:function(t){var e=q("Symbol");return $(e)&&W(e.prototype,rt(t))},it=String,at=TypeError,ut=function(t){if($(t))return t;throw new at(function(t){try{return it(t)}catch(t){return "Object"}}(t)+" is not a function")},ct=function(t,e){var n=t[e];return C(n)?void 0:ut(n)},lt=TypeError,st=Object.defineProperty,ft=function(t,e){try{st(g,t,{value:e,configurable:!0,writable:!0});}catch(n){g[t]=e;}return e},dt=d((function(t){var e="__core-js_shared__",n=t.exports=g[e]||ft(e,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),pt=function(t,e){return dt[t]||(dt[t]=e||{})},ht=Object,vt=function(t){return ht(F(t))},gt=H({}.hasOwnProperty),mt=Object.hasOwn||function(t,e){return gt(vt(t),e)},yt=0,bt=Math.random(),wt=H(1..toString),St=function(t){return "Symbol("+(void 0===t?"":t)+")_"+wt(++yt+bt,36)},xt=g.Symbol,Et=pt("wks"),kt=nt?xt.for||xt:xt&&xt.withoutSetter||St,Tt=function(t){return mt(Et,t)||(Et[t]=et&&mt(xt,t)?xt[t]:kt("Symbol."+t)),Et[t]},Mt=TypeError,It=Tt("toPrimitive"),Ot=function(t,e){if(!_(t)||ot(t))return t;var n,r=ct(t,It);if(r){if(void 0===e&&(e="default"),n=S(r,t,e),!_(n)||ot(n))return n;throw new Mt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&$(n=t.toString)&&!_(r=S(n,t)))return r;if($(n=t.valueOf)&&!_(r=S(n,t)))return r;if("string"!==e&&$(n=t.toString)&&!_(r=S(n,t)))return r;throw new lt("Can't convert object to primitive value")}(t,e)},Nt=function(t){var e=Ot(t,"string");return ot(e)?e:e+""},Ht=g.document,Dt=_(Ht)&&_(Ht.createElement),jt=function(t){return Dt?Ht.createElement(t):{}},Lt=!y&&!m((function(){return 7!==Object.defineProperty(jt("div"),"a",{get:function(){return 7}}).a})),zt=Object.getOwnPropertyDescriptor,Pt={f:y?zt:function(t,e){if(t=B(t),e=Nt(e),Lt)try{return zt(t,e)}catch(t){}if(mt(t,e))return M(!S(T.f,t,e),t[e])}},At=y&&m((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,Vt=TypeError,Ft=function(t){if(_(t))return t;throw new Vt(Ct(t)+" is not an object")},Bt=TypeError,Rt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,_t="enumerable",qt="configurable",Wt="writable",Gt={f:y?At?function(t,e,n){if(Ft(t),e=Nt(e),Ft(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Wt in n&&!n[Wt]){var r=$t(t,e);r&&r[Wt]&&(t[e]=n.value,n={configurable:qt in n?n[qt]:r[qt],enumerable:_t in n?n[_t]:r[_t],writable:!1});}return Rt(t,e,n)}:Rt:function(t,e,n){if(Ft(t),e=Nt(e),Ft(n),Lt)try{return Rt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Bt("Accessors not supported");return "value"in n&&(t[e]=n.value),t}},Ut=y?function(t,e,n){return Gt.f(t,e,M(1,n))}:function(t,e,n){return t[e]=n,t},Kt=Function.prototype,Xt=y&&Object.getOwnPropertyDescriptor,Jt=mt(Kt,"name"),Yt={EXISTS:Jt,PROPER:Jt&&"something"===function(){}.name,CONFIGURABLE:Jt&&(!y||y&&Xt(Kt,"name").configurable)},Qt=H(Function.toString);$(dt.inspectSource)||(dt.inspectSource=function(t){return Qt(t)});var Zt,te,ee,ne=dt.inspectSource,re=g.WeakMap,oe=$(re)&&/native code/.test(String(re)),ie=pt("keys"),ae=function(t){return ie[t]||(ie[t]=St(t))},ue={},ce="Object already initialized",le=g.TypeError,se=g.WeakMap;if(oe||dt.state){var fe=dt.state||(dt.state=new se);fe.get=fe.get,fe.has=fe.has,fe.set=fe.set,Zt=function(t,e){if(fe.has(t))throw new le(ce);return e.facade=t,fe.set(t,e),e},te=function(t){return fe.get(t)||{}},ee=function(t){return fe.has(t)};}else {var de=ae("state");ue[de]=!0,Zt=function(t,e){if(mt(t,de))throw new le(ce);return e.facade=t,Ut(t,de,e),e},te=function(t){return mt(t,de)?t[de]:{}},ee=function(t){return mt(t,de)};}var pe={set:Zt,get:te,has:ee,enforce:function(t){return ee(t)?te(t):Zt(t,{})},getterFor:function(t){return function(e){var n;if(!_(e)||(n=te(e)).type!==t)throw new le("Incompatible receiver, "+t+" required");return n}}},he=d((function(t){var e=Yt.CONFIGURABLE,n=pe.enforce,r=pe.get,o=String,i=Object.defineProperty,a=H("".slice),u=H("".replace),c=H([].join),l=y&&!m((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),f=t.exports=function(t,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!mt(t,"name")||e&&t.name!==r)&&(y?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&f&&mt(f,"arity")&&t.length!==f.arity&&i(t,"length",{value:f.arity});try{f&&mt(f,"constructor")&&f.constructor?y&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var d=n(t);return mt(d,"source")||(d.source=c(s,"string"==typeof r?r:"")),t};Function.prototype.toString=f((function(){return $(this)&&r(this).source||ne(this)}),"toString");})),ve=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if($(n)&&he(n,i,r),r.global)o?t[e]=n:ft(e,n);else {try{r.unsafe?t[e]&&(o=!0):delete t[e];}catch(t){}o?t[e]=n:Gt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable});}return t},ge=Math.ceil,me=Math.floor,ye=Math.trunc||function(t){var e=+t;return (e>0?me:ge)(e)},be=function(t){var e=+t;return e!=e||0===e?0:ye(e)},we=Math.max,Se=Math.min,xe=function(t,e){var n=be(t);return n<0?we(n+e,0):Se(n,e)},Ee=Math.min,ke=function(t){var e=be(t);return e>0?Ee(e,9007199254740991):0},Te=function(t){return ke(t.length)},Me=function(t){return function(e,n,r){var o=B(e),i=Te(o);if(0===i)return !t&&-1;var a,u=xe(r,i);if(t&&n!=n){for(;i>u;)if((a=o[u++])!=a)return !0}else for(;i>u;u++)if((t||u in o)&&o[u]===n)return t||u||0;return !t&&-1}},Ie={includes:Me(!0),indexOf:Me(!1)},Oe=Ie.indexOf,Ne=H([].push),He=function(t,e){var n,r=B(t),o=0,i=[];for(n in r)!mt(ue,n)&&mt(r,n)&&Ne(i,n);for(;e.length>o;)mt(r,n=e[o++])&&(~Oe(i,n)||Ne(i,n));return i},De=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],je=De.concat("length","prototype"),Le={f:Object.getOwnPropertyNames||function(t){return He(t,je)}},ze={f:Object.getOwnPropertySymbols},Pe=H([].concat),Ae=q("Reflect","ownKeys")||function(t){var e=Le.f(Ft(t)),n=ze.f;return n?Pe(e,n(t)):e},Ce=function(t,e,n){for(var r=Ae(e),o=Gt.f,i=Pt.f,a=0;a<r.length;a++){var u=r[a];mt(t,u)||n&&mt(n,u)||o(t,u,i(e,u));}},Ve=/#|\.prototype\./,Fe=function(t,e){var n=Re[Be(t)];return n===_e||n!==$e&&($(e)?m(e):!!e)},Be=Fe.normalize=function(t){return String(t).replace(Ve,".").toLowerCase()},Re=Fe.data={},$e=Fe.NATIVE="N",_e=Fe.POLYFILL="P",qe=Fe,We=Pt.f,Ge=function(t,e){var n,r,o,i,a,u=t.target,c=t.global,l=t.stat;if(n=c?g:l?g[u]||ft(u,{}):g[u]&&g[u].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=We(n,r))&&a.value:n[r],!qe(c?r:u+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ce(i,o);}(t.sham||o&&o.sham)&&Ut(i,"sham",!0),ve(n,r,i,t);}},Ue={};Ue[Tt("toStringTag")]="z";var Ke,Xe="[object z]"===String(Ue),Je=Tt("toStringTag"),Ye=Object,Qe="Arguments"===L(function(){return arguments}()),Ze=Xe?L:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Ye(t),Je))?n:Qe?L(e):"Object"===(r=L(e))&&$(e.callee)?"Arguments":r},tn=String,en=function(t){if("Symbol"===Ze(t))throw new TypeError("Cannot convert a Symbol value to a string");return tn(t)},nn=function(){var t=Ft(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},rn=g.RegExp,on=m((function(){var t=rn("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),an=on||m((function(){return !rn("a","y").sticky})),un={BROKEN_CARET:on||m((function(){var t=rn("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:an,UNSUPPORTED_Y:on},cn=Object.keys||function(t){return He(t,De)},ln=y&&!At?Object.defineProperties:function(t,e){Ft(t);for(var n,r=B(e),o=cn(e),i=o.length,a=0;i>a;)Gt.f(t,n=o[a++],r[n]);return t},sn={f:ln},fn=q("document","documentElement"),dn="prototype",pn="script",hn=ae("IE_PROTO"),vn=function(){},gn=function(t){return "<"+pn+">"+t+"</"+pn+">"},mn=function(t){t.write(gn("")),t.close();var e=t.parentWindow.Object;return t=null,e},yn=function(){try{Ke=new ActiveXObject("htmlfile");}catch(t){}var t,e,n;yn="undefined"!=typeof document?document.domain&&Ke?mn(Ke):(e=jt("iframe"),n="java"+pn+":",e.style.display="none",fn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(gn("document.F=Object")),t.close(),t.F):mn(Ke);for(var r=De.length;r--;)delete yn[dn][De[r]];return yn()};ue[hn]=!0;var bn,wn,Sn=Object.create||function(t,e){var n;return null!==t?(vn[dn]=Ft(t),n=new vn,vn[dn]=null,n[hn]=t):n=yn(),void 0===e?n:sn.f(n,e)},xn=g.RegExp,En=m((function(){var t=xn(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)})),kn=g.RegExp,Tn=m((function(){var t=kn("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Mn=pe.get,In=pt("native-string-replace",String.prototype.replace),On=RegExp.prototype.exec,Nn=On,Hn=H("".charAt),Dn=H("".indexOf),jn=H("".replace),Ln=H("".slice),zn=(wn=/b*/g,S(On,bn=/a/,"a"),S(On,wn,"a"),0!==bn.lastIndex||0!==wn.lastIndex),Pn=un.BROKEN_CARET,An=void 0!==/()??/.exec("")[1];(zn||An||Pn||En||Tn)&&(Nn=function(t){var e,n,r,o,i,a,u,c=this,l=Mn(c),s=en(t),f=l.raw;if(f)return f.lastIndex=c.lastIndex,e=S(Nn,f,s),c.lastIndex=f.lastIndex,e;var d=l.groups,p=Pn&&c.sticky,h=S(nn,c),v=c.source,g=0,m=s;if(p&&(h=jn(h,"y",""),-1===Dn(h,"g")&&(h+="g"),m=Ln(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Hn(s,c.lastIndex-1))&&(v="(?: "+v+")",m=" "+m,g++),n=new RegExp("^(?:"+v+")",h)),An&&(n=new RegExp("^"+v+"$(?!\\s)",h)),zn&&(r=c.lastIndex),o=S(On,p?n:c,m),p?o?(o.input=Ln(o.input,g),o[0]=Ln(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:zn&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),An&&o&&o.length>1&&S(In,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=Sn(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Cn=Nn;Ge({target:"RegExp",proto:!0,forced:/./.exec!==Cn},{exec:Cn});var Vn=function(t,e){return Vn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);},Vn(t,e)};function Fn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}Vn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}var Bn=function(){return Bn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Bn.apply(this,arguments)};function Rn(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t));}catch(t){i(t);}}function u(t){try{c(r.throw(t));}catch(t){i(t);}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e);}))).then(a,u);}c((r=r.apply(t,e||[])).next());}))}function $n(t,e){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(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a);}catch(t){u=[6,t],r=0;}finally{n=o=0;}if(5&u[0])throw u[1];return {value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}function _n(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function qn(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value);}catch(t){o={error:t};}finally{try{r&&!r.done&&(n=i.return)&&n.call(i);}finally{if(o)throw o.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var Wn='<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>',Gn='<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>',Un='<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>',Kn=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !!e.DomEditor.getSelectedNodeByType(t,"blockquote")},t.prototype.isDisabled=function(t){return null==t.selection||!qn(n.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return "paragraph"===n||"blockquote"===n},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";n.Transforms.setNodes(t,{type:r},{mode:"highest"});}},t}(),Xn={key:"blockquote",factory:function(){return new Kn}},Jn=function(t){if("Function"===L(t))return H(t)},Yn=Jn(Jn.bind),Qn=Array.isArray||function(t){return "Array"===L(t)},Zn=function(){},tr=q("Reflect","construct"),er=/^\s*(?:class|function)\b/,nr=H(er.exec),rr=!er.test(Zn),or=function(t){if(!$(t))return !1;try{return tr(Zn,[],t),!0}catch(t){return !1}},ir=function(t){if(!$(t))return !1;switch(Ze(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return rr||!!nr(er,ne(t))}catch(t){return !0}};ir.sham=!0;var ar=!tr||m((function(){var t;return or(or.call)||!or(Object)||!or((function(){t=!0;}))||t}))?ir:or,ur=Tt("species"),cr=Array,lr=function(t,e){return new(function(t){var e;return Qn(t)&&(e=t.constructor,(ar(e)&&(e===cr||Qn(e.prototype))||_(e)&&null===(e=e[ur]))&&(e=void 0)),void 0===e?cr:e}(t))(0===e?0:e)},sr=H([].push),fr=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,a=7===t,u=5===t||i;return function(c,l,s,f){for(var d,p,h=vt(c),v=A(h),g=Te(v),m=function(t,e){return ut(t),void 0===e?t:b?Yn(t,e):function(){return t.apply(e,arguments)}}(l,s),y=0,w=f||lr,S=e?w(c,g):n||a?w(c,0):void 0;g>y;y++)if((u||y in v)&&(p=m(d=v[y],y,h),t))if(e)S[y]=p;else if(p)switch(t){case 3:return !0;case 5:return d;case 6:return y;case 2:sr(S,d);}else switch(t){case 4:return !1;case 7:sr(S,d);}return i?-1:r||o?o:S}},dr={forEach:fr(0),map:fr(1),filter:fr(2),some:fr(3),every:fr(4),find:fr(5),findIndex:fr(6),filterReject:fr(7)},pr=Tt("species"),hr=function(t){return Z>=51||!m((function(){var e=[];return (e.constructor={})[pr]=function(){return {foo:1}},1!==e[t](Boolean).foo}))},vr=dr.filter;Ge({target:"Array",proto:!0,forced:!hr("filter")},{filter:function(t){return vr(this,t,arguments.length>1?arguments[1]:void 0)}});var gr=Xe?{}.toString:function(){return "[object "+Ze(this)+"]"};Xe||ve(Object.prototype,"toString",gr,{unsafe:!0});var mr=Function.prototype,yr=mr.apply,br=mr.call,wr="object"==typeof Reflect&&Reflect.apply||(b?br.bind(yr):function(){return br.apply(yr,arguments)}),Sr=Tt("species"),xr=RegExp.prototype,Er=function(t,e,n,r){var o=Tt(t),i=!m((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),a=i&&!m((function(){var e=!1,n=/a/;return "split"===t&&((n={}).constructor={},n.constructor[Sr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||n){var u=/./[o],c=e(o,""[t],(function(t,e,n,r,o){var a=e.exec;return a===Cn||a===xr.exec?i&&!o?{done:!0,value:S(u,e,n,r)}:{done:!0,value:S(t,n,e,r)}:{done:!1}}));ve(String.prototype,t,c[0]),ve(xr,o,c[1]);}r&&Ut(xr[o],"sham",!0);},kr=H("".charAt),Tr=H("".charCodeAt),Mr=H("".slice),Ir=function(t){return function(e,n){var r,o,i=en(F(e)),a=be(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Tr(i,a))<55296||r>56319||a+1===u||(o=Tr(i,a+1))<56320||o>57343?t?kr(i,a):r:t?Mr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Or={codeAt:Ir(!1),charAt:Ir(!0)}.charAt,Nr=function(t,e,n){return e+(n?Or(t,e).length:1)},Hr=Math.floor,Dr=H("".charAt),jr=H("".replace),Lr=H("".slice),zr=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Pr=/\$([$&'`]|\d{1,2})/g,Ar=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,c=Pr;return void 0!==o&&(o=vt(o),c=zr),jr(i,c,(function(i,c){var l;switch(Dr(c,0)){case"$":return "$";case"&":return t;case"`":return Lr(e,0,n);case"'":return Lr(e,a);case"<":l=o[Lr(c,1,-1)];break;default:var s=+c;if(0===s)return i;if(s>u){var f=Hr(s/10);return 0===f?i:f<=u?void 0===r[f-1]?Dr(c,1):r[f-1]+Dr(c,1):i}l=r[s-1];}return void 0===l?"":l}))},Cr=TypeError,Vr=function(t,e){var n=t.exec;if($(n)){var r=S(n,t,e);return null!==r&&Ft(r),r}if("RegExp"===L(t))return S(Cn,t,e);throw new Cr("RegExp#exec called on incompatible receiver")},Fr=Tt("replace"),Br=Math.max,Rr=Math.min,$r=H([].concat),_r=H([].push),qr=H("".indexOf),Wr=H("".slice),Gr="$0"==="a".replace(/./,"$0"),Ur=!!/./[Fr]&&""===/./[Fr]("a","$0");Er("replace",(function(t,e,n){var r=Ur?"$":"$0";return [function(t,n){var r=F(this),o=C(t)?void 0:ct(t,Fr);return o?S(o,t,r,n):S(e,en(r),t,n)},function(t,o){var i=Ft(this),a=en(t);if("string"==typeof o&&-1===qr(o,r)&&-1===qr(o,"$<")){var u=n(e,i,a,o);if(u.done)return u.value}var c=$(o);c||(o=en(o));var l,s=i.global;s&&(l=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=Vr(i,a))&&(_r(d,f),s);){""===en(f[0])&&(i.lastIndex=Nr(a,ke(i.lastIndex),l));}for(var p,h="",v=0,g=0;g<d.length;g++){for(var m,y=en((f=d[g])[0]),b=Br(Rr(be(f.index),a.length),0),w=[],S=1;S<f.length;S++)_r(w,void 0===(p=f[S])?p:String(p));var x=f.groups;if(c){var E=$r([y],w,b,a);void 0!==x&&_r(E,x),m=en(wr(o,void 0,E));}else m=Ar(y,a,b,w,x,o);b>=v&&(h+=Wr(a,v,b)+m,v=b+y.length);}return h+Wr(a,v)}]}),!!m((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Gr||Ur);var Kr=Gt.f,Xr=Tt("unscopables"),Jr=Array.prototype;void 0===Jr[Xr]&&Kr(Jr,Xr,{configurable:!0,value:Sn(null)});var Yr=function(t){Jr[Xr][t]=!0;},Qr=dr.find,Zr="find",to=!0;Zr in[]&&Array(1)[Zr]((function(){to=!1;})),Ge({target:"Array",proto:!0,forced:to},{find:function(t){return Qr(this,t,arguments.length>1?arguments[1]:void 0)}}),Yr(Zr);var eo,no="\t\n\v\f\r                 \u2028\u2029\ufeff",ro=H("".replace),oo=RegExp("^["+no+"]+"),io=RegExp("(^|[^"+no+"])["+no+"]+$"),ao=function(t){return function(e){var n=en(F(e));return 1&t&&(n=ro(n,oo,"")),2&t&&(n=ro(n,io,"$1")),n}},uo={start:ao(1),end:ao(2),trim:ao(3)},co=Yt.PROPER,lo=uo.trim;function so(t){return 0===c.default("<div>".concat(t,"</div>")).children().filter((function(t){return "BR"!==t.tagName})).length}function fo(t){return 0===t.length?"":t[0].outerHTML}function po(t){return t.length?t[0].tagName.toLowerCase():""}function ho(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i+=1){var a=r[i];if(a){var u=a.split(":");u[0].trim()===e&&(n=u[1].trim());}}return n}Ge({target:"String",proto:!0,forced:(eo="trim",m((function(){return !!no[eo]()||"​…᠎"!=="​…᠎"[eo]()||co&&no[eo].name!==eo})))},{trim:function(){return lo(this)}}),Ge({global:!0,forced:g.globalThis!==g},{globalThis:g}),r.css&&(c.default.fn.css=r.css),r.append&&(c.default.fn.append=r.append),r.prepend&&(c.default.fn.prepend=r.prepend),r.addClass&&(c.default.fn.addClass=r.addClass),r.removeClass&&(c.default.fn.removeClass=r.removeClass),r.hasClass&&(c.default.fn.hasClass=r.hasClass),r.on&&(c.default.fn.on=r.on),r.off&&(c.default.fn.off=r.off),r.focus&&(c.default.fn.focus=r.focus),r.attr&&(c.default.fn.attr=r.attr),r.removeAttr&&(c.default.fn.removeAttr=r.removeAttr),r.hide&&(c.default.fn.hide=r.hide),r.show&&(c.default.fn.show=r.show),r.parents&&(c.default.fn.parents=r.parents),r.dataset&&(c.default.fn.dataset=r.dataset),r.val&&(c.default.fn.val=r.val),r.text&&(c.default.fn.text=r.text),r.html&&(c.default.fn.html=r.html),r.children&&(c.default.fn.children=r.children),r.remove&&(c.default.fn.remove=r.remove),r.find&&(c.default.fn.find=r.find),r.width&&(c.default.fn.width=r.width),r.height&&(c.default.fn.height=r.height),r.filter&&(c.default.fn.filter=r.filter),r.empty&&(c.default.fn.empty=r.empty);var vo={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,r){var o=c.default(t);return 0===(e=e.filter((function(t){return !!n.Text.isText(t)||!!r.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},go=function(t,e,n){y?Gt.f(t,e,M(0,n)):t[e]=n;},mo=H([].slice),yo=hr("slice"),bo=Tt("species"),wo=Array,So=Math.max;function xo(t){t.deleteBackward("character");n.Transforms.insertNodes(t,{type:"paragraph",children:[{text:""}]},{mode:"highest"});}Ge({target:"Array",proto:!0,forced:!yo},{slice:function(t,e){var n,r,o,i=B(this),a=Te(i),u=xe(t,a),c=xe(void 0===e?a:e,a);if(Qn(i)&&(n=i.constructor,(ar(n)&&(n===wo||Qn(n.prototype))||_(n)&&null===(n=n[bo]))&&(n=void 0),n===wo||void 0===n))return mo(i,u,c);for(r=new(void 0===n?wo:n)(So(c-u,0)),o=0;u<c;u++,o++)u in i&&go(r,o,i[u]);return r.length=o,r}});var Eo={renderElems:[{type:"blockquote",renderElem:function(t,e,n){return o.jsx("blockquote",null,e)}}],elemsToHtml:[s],parseElemsHtml:[vo],menus:[Xn],editorPlugin:function(t){var r=t.insertBreak,o=t.insertText,i=t;return i.insertBreak=function(){var a=i.selection;if(null==a)return r();var u=qn(n.Editor.nodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"blockquote")},universal:!0}),1)[0];if(!u)return r();var c=u[0];if(e.DomEditor.getParentNode(t,c)){var l=e.DomEditor.findPath(t,c),s=n.Editor.end(t,l);if(n.Point.equals(s,a.focus)){var f=n.Node.string(c);if(f&&"\n"===f.slice(-1))return void xo(i)}o("\n");}else xo(i);},i}};var ko={type:"code",elemToHtml:function(t,e){return "<code>".concat(e,"</code>")}};var To={type:"pre",elemToHtml:function(t,e){return "<pre>".concat(e,"</pre>")}},Mo=Ie.includes;Ge({target:"Array",proto:!0,forced:m((function(){return !Array(1).includes()}))},{includes:function(t){return Mo(this,t,arguments.length>1?arguments[1]:void 0)}}),Yr("includes");var Io=function(t,e){var n=[][t];return !!n&&m((function(){n.call(null,e||function(){return 1},1);}))},Oo=H([].join);Ge({target:"Array",proto:!0,forced:A!==Object||!Io("join",",")},{join:function(t){return Oo(B(this),void 0===t?",":t)}});var No=dr.map;Ge({target:"Array",proto:!0,forced:!hr("map")},{map:function(t){return No(this,t,arguments.length>1?arguments[1]:void 0)}});var Ho=RegExp.prototype,Do=Yt.PROPER,jo="toString",Lo=RegExp.prototype,zo=Lo[jo],Po=m((function(){return "/a/b"!==zo.call({source:"a",flags:"b"})})),Ao=Do&&zo.name!==jo;(Po||Ao)&&ve(Lo,jo,(function(){var t=Ft(this),e=en(t.source),n=en(function(t){var e=t.flags;return void 0!==e||"flags"in Ho||mt(t,"flags")||!W(Ho,t)?e:S(nn,t)}(t));return "/"+e+"/"+n}),{unsafe:!0});var Co=Tt("match"),Vo=TypeError,Fo=function(t){if(function(t){var e;return _(t)&&(void 0!==(e=t[Co])?!!e:"RegExp"===L(t))}(t))throw new Vo("The method doesn't accept regular expressions");return t},Bo=Tt("match"),Ro=function(t){var e=/./;try{"/./"[t](e);}catch(n){try{return e[Bo]=!1,"/./"[t](e)}catch(t){}}return !1},$o=H("".indexOf);Ge({target:"String",proto:!0,forced:!Ro("includes")},{includes:function(t){return !!~$o(en(F(this)),en(Fo(t)),arguments.length>1?arguments[1]:void 0)}});var _o=function(){function t(){this.title=e.t("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 t.prototype.getSelectCodeElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"code");if(null==n)return null;var r=e.DomEditor.getParentNode(t,n);return null==r||"pre"!==e.DomEditor.getNodeType(r)?null:n},t.prototype.getValue=function(t){var e=this.getSelectCodeElem(t);return null==e?"":e.language||""},t.prototype.isActive=function(t){return !!this.getSelectCodeElem(t)},t.prototype.isDisabled=function(t){if(null==t.selection)return !0;var n=e.DomEditor.getSelectedElems(t);return !!n.some((function(e){return t.isVoid(e)}))||!n.some((function(t){var n=e.DomEditor.getNodeType(t);return "pre"===n||"paragraph"===n}))},t.prototype.exec=function(t,e){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,e.toString());},t.prototype.changeToPlainText=function(t){var e=this.getSelectCodeElem(t);if(null!=e){var r=n.Node.string(e);n.Transforms.removeNodes(t,{mode:"highest"});var o=r.split("\n").map((function(t){return {type:"paragraph",children:[{text:t}]}}));n.Transforms.insertNodes(t,o,{mode:"highest"});}},t.prototype.changeToCodeBlock=function(t,e){var r,o,i=[],a=n.Editor.nodes(t,{match:function(e){return t.children.includes(e)},universal:!0});try{for(var u=_n(a),c=u.next();!c.done;c=u.next()){var l=qn(c.value,1)[0];l&&i.push(n.Node.string(l));}}catch(t){r={error:t};}finally{try{c&&!c.done&&(o=u.return)&&o.call(u);}finally{if(r)throw r.error}}n.Transforms.removeNodes(t,{mode:"highest"});var s={type:"pre",children:[{type:"code",language:e,children:[{text:i.join("\n")}]}]};n.Transforms.insertNodes(t,s,{mode:"highest"});},t}(),qo={key:"codeBlock",factory:function(){return new _o}};var Wo={selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return {type:"code",language:"",children:[{text:c.default(t)[0].textContent||""}]}}};var Go={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,n,r){var o=c.default(t);return 0===(n=n.filter((function(t){return "code"===e.DomEditor.getNodeType(t)}))).length&&(n=[{type:"code",language:"",children:[{text:o[0].textContent||""}]}]),{type:"pre",children:n.filter((function(t){return "code"===e.DomEditor.getNodeType(t)}))}}};Er("match",(function(t,e,n){return [function(e){var n=F(this),r=C(e)?void 0:ct(e,t);return r?S(r,e,n):new RegExp(e)[t](en(n))},function(t){var r=Ft(this),o=en(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return Vr(r,o);var a=r.unicode;r.lastIndex=0;for(var u,c=[],l=0;null!==(u=Vr(r,o));){var s=en(u[0]);c[l]=s,""===s&&(r.lastIndex=Nr(o,ke(r.lastIndex),a)),l++;}return 0===l?null:c}]}));var Uo=/"/g,Ko=H("".replace),Xo=function(t,e,n,r){var o=en(F(t)),i="<"+e;return ""!==n&&(i+=" "+n+'="'+Ko(en(r),Uo,"&quot;")+'"'),i+">"+o+"</"+e+">"},Jo=function(t){return m((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))};Ge({target:"String",proto:!0,forced:Jo("anchor")},{anchor:function(t){return Xo(this,"a","name",t)}});var Yo={menus:[qo],editorPlugin:function(t){var r=t.insertBreak,o=t.normalizeNode,i=t.insertData,a=t;return a.insertBreak=function(){var t=e.DomEditor.getSelectedNodeByType(a,"code");if(null!=t){var o=function(t,e){var r=e.selection;if(null==r)return "";var o=n.Node.string(t),i=r.anchor.offset,a=o.slice(0,i).split("\n"),u=a.length;return 0===u?"":a[u-1]}(t,a);if(o){var i=o.match(/^\s+/);if(null!=i&&null!=i[0]){var u=i[0];return void a.insertText("\n".concat(u))}}a.insertText("\n");}else r();},a.normalizeNode=function(t){var r=qn(t,2),i=r[0],u=r[1],c=e.DomEditor.getNodeType(i);("code"===c&&u.length<=1&&n.Transforms.setNodes(a,{type:"paragraph"},{at:u}),"pre"===c)&&(e.DomEditor.isLastNode(a,i)&&n.Transforms.insertNodes(a,e.DomEditor.genEmptyParagraph(),{at:[u[0]+1]}),"code"!==e.DomEditor.getNodeType(i.children[0])&&(n.Transforms.unwrapNodes(a),n.Transforms.setNodes(a,{type:"paragraph"},{mode:"highest"})));return o([i,u])},a.insertData=function(t){if(null!=e.DomEditor.getSelectedNodeByType(a,"code")){var r=t.getData("text/plain");n.Editor.insertText(a,r);}else i(t);},a},renderElems:[{type:"pre",renderElem:function(t,e,n){return o.jsx("pre",null,e)}},{type:"code",renderElem:function(t,e,n){return o.jsx("code",null,e)}}],elemsToHtml:[ko,To],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=c.default(t);if("code"!==po(e))return t;var n=e.find("xmp");if(0===n.length)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[Wo,Go]},Qo=TypeError,Zo=function(t){if(t>9007199254740991)throw Qo("Maximum allowed index exceeded");return t},ti=Tt("isConcatSpreadable"),ei=Z>=51||!m((function(){var t=[];return t[ti]=!1,t.concat()[0]!==t})),ni=function(t){if(!_(t))return !1;var e=t[ti];return void 0!==e?!!e:Qn(t)};Ge({target:"Array",proto:!0,arity:1,forced:!ei||!hr("concat")},{concat:function(t){var e,n,r,o,i,a=vt(this),u=lr(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(ni(i=-1===e?a:arguments[e]))for(o=Te(i),Zo(c+o),n=0;n<o;n++,c++)n in i&&go(u,c,i[n]);else Zo(c+1),go(u,c++,i);return u.length=c,u}});var ri={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},oi=jt("span").classList,ii=oi&&oi.constructor&&oi.constructor.prototype,ai=ii===Object.prototype?void 0:ii,ui=dr.forEach,ci=Io("forEach")?[].forEach:function(t){return ui(this,t,arguments.length>1?arguments[1]:void 0)},li=function(t){if(t&&t.forEach!==ci)try{Ut(t,"forEach",ci);}catch(e){t.forEach=ci;}};for(var si in ri)ri[si]&&li(g[si]&&g[si].prototype);li(ai);var fi=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null;}return t.prototype.exec=function(t,e){},t.prototype.getValue=function(t){var e=this.mark,r=n.Editor.marks(t);return r&&r[e]?r[e]:""},t.prototype.isActive=function(t){return !!this.getValue(t)},t.prototype.isDisabled=function(t){return null==t.selection||!!qn(n.Editor.nodes(t,{match:function(r){return "pre"===e.DomEditor.getNodeType(r)||!!n.Editor.isVoid(t,r)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){var r=this.mark;if(null==this.$content){var o=c.default('<ul class="w-e-panel-content-color"></ul>');o.on("click","li",(function(e){var o=e.target;if(null!=o&&(e.preventDefault(),null!=t.selection)){var i=c.default(o).attr("data-value");"0"===i?n.Editor.removeMark(t,r):n.Editor.addMark(t,r,i);}})),this.$content=o;}var i=this.$content;if(null==i)return document.createElement("ul");i.empty();var a=this.getValue(t),u=t.getMenuConfig(r).colors;(void 0===u?[]:u).forEach((function(t){var e=c.default('<div class="color-block" data-value="'.concat(t,'"></div>'));e.css("background-color",t);var n=c.default('<li data-value="'.concat(t,'"></li>'));a===t&&n.addClass("active"),n.append(e),i.append(n);}));var l="";"color"===r&&(l=e.t("color.default")),"bgColor"===r&&(l=e.t("color.clear"));var s=c.default('\n <li data-value="0" class="clear">\n '.concat('<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 ").concat(l,"\n </li>\n "));return i.prepend(s),i[0]},t}(),di=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("color.bgColor"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',n.mark="bgColor",n}return Fn(n,t),n}(fi),pi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("color.color"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',n.mark="color",n}return Fn(n,t),n}(fi),hi=["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)"];var vi={key:"color",factory:function(){return new pi},config:{colors:hi}},gi={key:"bgColor",factory:function(){return new di},config:{colors:hi}};var mi={selector:"font",preParseHtml:function(t){var e=c.default(t);if("font"!==po(e))return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},yi=Object.assign,bi=Object.defineProperty,wi=H([].concat),Si=!yi||m((function(){if(y&&1!==yi({b:1},yi(bi({},"a",{enumerable:!0,get:function(){bi(this,"b",{value:3,enumerable:!1});}}),{b:2})).b)return !0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t;})),7!==yi({},t)[n]||cn(yi({},e)).join("")!==r}))?function(t,e){for(var n=vt(t),r=arguments.length,o=1,i=ze.f,a=T.f;r>o;)for(var u,c=A(arguments[o++]),l=i?wi(cn(c),i(c)):cn(c),s=l.length,f=0;s>f;)u=l[f++],y&&!S(a,c,u)||(n[u]=c[u]);return n}:yi;function xi(t,e){null==t.data&&(t.data={});var n=t.data;null==n.style&&(n.style={}),Object.assign(n.style,e);}Ge({target:"Object",stat:!0,arity:2,forced:Object.assign!==Si},{assign:Si});var Ei={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&xi(i,{color:r}),o&&xi(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!n.Text.isText(t))return e;var r,o=t,i=o.color,a=o.bgColor;return i||a?((so(e)||"span"!==po(r=c.default(e)))&&(r=c.default("<span>".concat(e,"</span>"))),i&&r.css("color",i),a&&r.css("background-color",a),fo(r)):e},preParseHtml:[mi],parseStyleHtml:function(t,e,r){var o=c.default(t);if(!n.Text.isText(e))return e;var i=e,a=ho(o,"color");a&&(i.color=a);var u=ho(o,"background-color");return u||(u=ho(o,"background")),u&&(i.bgColor=u),i},menus:[vi,gi]},ki=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!!n.Range.isExpanded(e)},t.prototype.exec=function(t,e){var r=t.selection;if(null!=r){var o=[r.anchor.path[0]];n.Transforms.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(n.Editor.start(t,o));}},t}(),Ti={menus:[{key:"enter",factory:function(){return new ki}}]};var Mi={type:"divider",elemToHtml:function(t,e){return "<hr/>"}},Ii=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(n){if(t.isVoid(n))return !0;var r=e.DomEditor.getNodeType(n);return "table"===r||"pre"===r}))},t.prototype.exec=function(t,r){e.DomEditor.isSelectedEmptyParagraph(t)&&n.Transforms.removeNodes(t,{mode:"highest"}),n.Transforms.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"});},t}();var Oi={renderElems:[{type:"divider",renderElem:function(t,n,r){var i=e.DomEditor.isNodeSelected(r,t);return o.h("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:i?"true":""},style:{},on:{mousedown:function(t){return t.preventDefault()}}},[o.h("hr")])}}],elemsToHtml:[Mi],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return {type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Ii}}],editorPlugin:function(t){var r=t.isVoid,o=t.normalizeNode,i=t;return i.isVoid=function(t){return "divider"===t.type||r(t)},i.normalizeNode=function(t){var r=qn(t,2),a=r[0],u=r[1];if("divider"!==e.DomEditor.getNodeType(a))return o([a,u]);e.DomEditor.isLastNode(i,a)&&n.Transforms.insertNodes(i,e.DomEditor.genEmptyParagraph(),{at:[u[0]+1]});},i}};var Ni=function(){function t(){this.title=e.t("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 t.prototype.exec=function(t,e){},t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||!!qn(n.Editor.nodes(t,{match:function(r){return "pre"===e.DomEditor.getNodeType(r)||!!n.Editor.isVoid(t,r)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){if(null==this.$content){var e=c.default('<ul class="w-e-panel-content-emotion"></ul>');e.on("click","li",(function(e){var n=e.target;if(null!=n){e.preventDefault();var r=c.default(n).text();t.insertText(r);}})),this.$content=e;}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=t.getMenuConfig("emotion").emotions;return (void 0===r?[]:r).forEach((function(t){var e=c.default("<li>".concat(t,"</li>"));n.append(e);})),n[0]},t}(),Hi={menus:[{key:"emotion",factory:function(){return new Ni},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]};var Di,ji,Li=function(t){return t&&t.Math===Math&&t},zi=Li("object"==typeof globalThis&&globalThis)||Li("object"==typeof window&&window)||Li("object"==typeof self&&self)||Li("object"==typeof f&&f)||Li("object"==typeof f&&f)||function(){return this}()||Function("return this")(),Pi=function(t){try{return !!t()}catch(t){return !0}},Ai=!Pi((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),Ci=Ai,Vi=Function.prototype,Fi=Vi.apply,Bi=Vi.call,Ri="object"==typeof Reflect&&Reflect.apply||(Ci?Bi.bind(Fi):function(){return Bi.apply(Fi,arguments)}),$i=Function.prototype,_i=$i.call,qi=Ci&&$i.bind.bind(_i,_i),Wi=Ci?qi:function(t){return function(){return _i.apply(t,arguments)}},Gi=Wi,Ui=Gi({}.toString),Ki=Gi("".slice),Xi=function(t){return Ki(Ui(t),8,-1)},Ji="object"==typeof document&&document.all,Yi=void 0===Ji&&void 0!==Ji?function(t){return "function"==typeof t||t===Ji}:function(t){return "function"==typeof t},Qi=!Pi((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Zi=Function.prototype.call,ta=Ci?Zi.bind(Zi):function(){return Zi.apply(Zi,arguments)},ea={}.propertyIsEnumerable,na=Object.getOwnPropertyDescriptor,ra=na&&!ea.call({1:2},1)?function(t){var e=na(this,t);return !!e&&e.enumerable}:ea,oa={f:ra},ia=Object,aa=Gi("".split),ua=Pi((function(){return !ia("z").propertyIsEnumerable(0)}))?function(t){return "String"===Xi(t)?aa(t,""):ia(t)}:ia,ca=function(t){return null==t},la=TypeError,sa=ua,fa=function(t){if(ca(t))throw new la("Can't call method on "+t);return t},da=Yi,pa={},ha=zi,va=function(t){return da(t)?t:void 0},ga=Gi({}.isPrototypeOf),ma=ha.navigator,ya=ma&&ma.userAgent,ba=ya?String(ya):"",wa=ha.process,Sa=ha.Deno,xa=wa&&wa.versions||Sa&&Sa.version,Ea=xa&&xa.v8;Ea&&(ji=(Di=Ea.split("."))[0]>0&&Di[0]<4?1:+(Di[0]+Di[1])),!ji&&ba&&(!(Di=ba.match(/Edge\/(\d+)/))||Di[1]>=74)&&(Di=ba.match(/Chrome\/(\d+)/))&&(ji=+Di[1]);var ka=ji,Ta=ha.String,Ma=!!Object.getOwnPropertySymbols&&!Pi((function(){var t=Symbol("symbol detection");return !Ta(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ka&&ka<41})),Ia=Ma,Oa=Ia&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Na=function(t,e){return arguments.length<2?va(pa[t])||va(ha[t]):pa[t]&&pa[t][e]||ha[t]&&ha[t][e]},Ha=ga,Da=Oa,ja=Object,La=Da?function(t){return "symbol"==typeof t}:function(t){var e=Na("Symbol");return da(e)&&Ha(e.prototype,ja(t))},za=String,Pa=function(t){try{return za(t)}catch(t){return "Object"}},Aa=TypeError,Ca=function(t){if(da(t))return t;throw new Aa(Pa(t)+" is not a function")},Va=ta,Fa=function(t){return "object"==typeof t?null!==t:da(t)},Ba=TypeError,Ra=Object.defineProperty,$a=function(t,e){try{Ra(ha,t,{value:e,configurable:!0,writable:!0});}catch(n){ha[t]=e;}return e},_a=d((function(t){var e="__core-js_shared__",n=t.exports=ha[e]||$a(e,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),qa=_a,Wa=Object,Ga=function(t){return Wa(fa(t))},Ua=Gi({}.hasOwnProperty),Ka=Object.hasOwn||function(t,e){return Ua(Ga(t),e)},Xa=0,Ja=Math.random(),Ya=Gi(1..toString),Qa=function(t,e){return qa[t]||(qa[t]=e||{})},Za=Ka,tu=function(t){return "Symbol("+(void 0===t?"":t)+")_"+Ya(++Xa+Ja,36)},eu=ha.Symbol,nu=Qa("wks"),ru=Da?eu.for||eu:eu&&eu.withoutSetter||tu,ou=La,iu=function(t,e){var n=t[e];return ca(n)?void 0:Ca(n)},au=function(t,e){var n,r;if("string"===e&&da(n=t.toString)&&!Fa(r=Va(n,t)))return r;if(da(n=t.valueOf)&&!Fa(r=Va(n,t)))return r;if("string"!==e&&da(n=t.toString)&&!Fa(r=Va(n,t)))return r;throw new Ba("Can't convert object to primitive value")},uu=function(t){return Za(nu,t)||(nu[t]=Ia&&Za(eu,t)?eu[t]:ru("Symbol."+t)),nu[t]},cu=TypeError,lu=uu("toPrimitive"),su=function(t,e){if(!Fa(t)||ou(t))return t;var n,r=iu(t,lu);if(r){if(void 0===e&&(e="default"),n=Va(r,t,e),!Fa(n)||ou(n))return n;throw new cu("Can't convert object to primitive value")}return void 0===e&&(e="number"),au(t,e)},fu=ha.document,du=Fa(fu)&&Fa(fu.createElement),pu=Qi,hu=function(t){return du?fu.createElement(t):{}},vu=!pu&&!Pi((function(){return 7!==Object.defineProperty(hu("div"),"a",{get:function(){return 7}}).a})),gu=oa,mu=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},yu=function(t){return sa(fa(t))},bu=function(t){var e=su(t,"string");return ou(e)?e:e+""},wu=vu,Su=Object.getOwnPropertyDescriptor,xu={f:pu?Su:function(t,e){if(t=yu(t),e=bu(e),wu)try{return Su(t,e)}catch(t){}if(Za(t,e))return mu(!Va(gu.f,t,e),t[e])}},Eu=/#|\.prototype\./,ku=function(t,e){var n=Mu[Tu(t)];return n===Ou||n!==Iu&&(da(e)?Pi(e):!!e)},Tu=ku.normalize=function(t){return String(t).replace(Eu,".").toLowerCase()},Mu=ku.data={},Iu=ku.NATIVE="N",Ou=ku.POLYFILL="P",Nu=ku,Hu=function(t){if("Function"===Xi(t))return Gi(t)},Du=Hu(Hu.bind),ju=pu&&Pi((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Lu=String,zu=TypeError,Pu=ju,Au=function(t){if(Fa(t))return t;throw new zu(Lu(t)+" is not an object")},Cu=TypeError,Vu=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,Bu="enumerable",Ru="configurable",$u="writable",_u={f:pu?Pu?function(t,e,n){if(Au(t),e=bu(e),Au(n),"function"==typeof t&&"prototype"===e&&"value"in n&&$u in n&&!n[$u]){var r=Fu(t,e);r&&r[$u]&&(t[e]=n.value,n={configurable:Ru in n?n[Ru]:r[Ru],enumerable:Bu in n?n[Bu]:r[Bu],writable:!1});}return Vu(t,e,n)}:Vu:function(t,e,n){if(Au(t),e=bu(e),Au(n),wu)try{return Vu(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Cu("Accessors not supported");return "value"in n&&(t[e]=n.value),t}},qu=Ri,Wu=xu,Gu=Nu,Uu=function(t,e){return Ca(t),void 0===e?t:Ci?Du(t,e):function(){return t.apply(e,arguments)}},Ku=pu?function(t,e,n){return _u.f(t,e,mu(1,n))}:function(t,e,n){return t[e]=n,t},Xu=Wu.f,Ju=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return qu(t,this,arguments)};return e.prototype=t.prototype,e},Yu=Array.isArray||function(t){return "Array"===Xi(t)},Qu=Math.ceil,Zu=Math.floor,tc=Math.trunc||function(t){var e=+t;return (e>0?Zu:Qu)(e)},ec=function(t){var e=+t;return e!=e||0===e?0:tc(e)},nc=Math.min,rc=function(t){var e=ec(t);return e>0?nc(e,9007199254740991):0},oc=TypeError,ic={};ic[uu("toStringTag")]="z";var ac="[object z]"===String(ic),uc=uu("toStringTag"),cc=Object,lc="Arguments"===Xi(function(){return arguments}()),sc=ac?Xi:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=cc(t),uc))?n:lc?Xi(e):"Object"===(r=Xi(e))&&da(e.callee)?"Arguments":r},fc=Gi(Function.toString);da(qa.inspectSource)||(qa.inspectSource=function(t){return fc(t)});var dc=qa.inspectSource,pc=sc,hc=dc,vc=function(){},gc=Na("Reflect","construct"),mc=/^\s*(?:class|function)\b/,yc=Gi(mc.exec),bc=!mc.test(vc),wc=function(t){if(!da(t))return !1;try{return gc(vc,[],t),!0}catch(t){return !1}},Sc=function(t){if(!da(t))return !1;switch(pc(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return bc||!!yc(mc,hc(t))}catch(t){return !0}};Sc.sham=!0;var xc=!gc||Pi((function(){var t;return wc(wc.call)||!wc(Object)||!wc((function(){t=!0;}))||t}))?Sc:wc,Ec=Yu,kc=xc,Tc=uu("species"),Mc=Array,Ic=function(t){var e;return Ec(t)&&(e=t.constructor,(kc(e)&&(e===Mc||Ec(e.prototype))||Fa(e)&&null===(e=e[Tc]))&&(e=void 0)),void 0===e?Mc:e},Oc=uu("species"),Nc=function(t,e){var n,r,o,i,a,u,c,l,s,f=t.target,d=t.global,p=t.stat,h=t.proto,v=d?ha:p?ha[f]:ha[f]&&ha[f].prototype,g=d?pa:pa[f]||Ku(pa,f,{})[f],m=g.prototype;for(i in e)r=!(n=Gu(d?i:f+(p?".":"#")+i,t.forced))&&v&&Za(v,i),u=g[i],r&&(c=t.dontCallGetSet?(s=Xu(v,i))&&s.value:v[i]),a=r&&c?c:e[i],(n||h||typeof u!=typeof a)&&(l=t.bind&&r?Uu(a,ha):t.wrap&&r?Ju(a):h&&da(a)?Hu(a):a,(t.sham||a&&a.sham||u&&u.sham)&&Ku(l,"sham",!0),Ku(g,i,l),h&&(Za(pa,o=f+"Prototype")||Ku(pa,o,{}),Ku(pa[o],i,a),t.real&&m&&(n||!m[i])&&Ku(m,i,a)));},Hc=function(t){return rc(t.length)},Dc=function(t){if(t>9007199254740991)throw oc("Maximum allowed index exceeded");return t},jc=function(t,e,n){pu?_u.f(t,e,mu(0,n)):t[e]=n;},Lc=function(t,e){return new(Ic(t))(0===e?0:e)},zc=function(t){return ka>=51||!Pi((function(){var e=[];return (e.constructor={})[Oc]=function(){return {foo:1}},1!==e[t](Boolean).foo}))},Pc=uu("isConcatSpreadable"),Ac=ka>=51||!Pi((function(){var t=[];return t[Pc]=!1,t.concat()[0]!==t})),Cc=function(t){if(!Fa(t))return !1;var e=t[Pc];return void 0!==e?!!e:Ec(t)},Vc=!Ac||!zc("concat");Nc({target:"Array",proto:!0,arity:1,forced:Vc},{concat:function(t){var e,n,r,o,i,a=Ga(this),u=Lc(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Cc(i=-1===e?a:arguments[e]))for(o=Hc(i),Dc(c+o),n=0;n<o;n++,c++)n in i&&jc(u,c,i[n]);else Dc(c+1),jc(u,c++,i);return u.length=c,u}});var Fc,Bc=String,Rc=Math.max,$c=Math.min,_c=function(t,e){var n=ec(t);return n<0?Rc(n+e,0):$c(n,e)},qc=function(t){return function(e,n,r){var o=yu(e),i=Hc(o);if(0===i)return !t&&-1;var a,u=_c(r,i);if(t&&n!=n){for(;i>u;)if((a=o[u++])!=a)return !0}else for(;i>u;u++)if((t||u in o)&&o[u]===n)return t||u||0;return !t&&-1}},Wc={includes:qc(!0),indexOf:qc(!1)},Gc={},Uc=Wc.indexOf,Kc=Gi([].push),Xc=function(t,e){var n,r=yu(t),o=0,i=[];for(n in r)!Za(Gc,n)&&Za(r,n)&&Kc(i,n);for(;e.length>o;)Za(r,n=e[o++])&&(~Uc(i,n)||Kc(i,n));return i},Jc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Yc=Object.keys||function(t){return Xc(t,Jc)},Qc=pu&&!Pu?Object.defineProperties:function(t,e){Au(t);for(var n,r=yu(e),o=Yc(e),i=o.length,a=0;i>a;)_u.f(t,n=o[a++],r[n]);return t},Zc={f:Qc},tl=Na("document","documentElement"),el=Qa("keys"),nl=Zc,rl=tl,ol=function(t){return el[t]||(el[t]=tu(t))},il="prototype",al="script",ul=ol("IE_PROTO"),cl=function(){},ll=function(t){return "<"+al+">"+t+"</"+al+">"},sl=function(t){t.write(ll("")),t.close();var e=t.parentWindow.Object;return t=null,e},fl=function(){try{Fc=new ActiveXObject("htmlfile");}catch(t){}var t,e,n;fl="undefined"!=typeof document?document.domain&&Fc?sl(Fc):(e=hu("iframe"),n="java"+al+":",e.style.display="none",rl.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(ll("document.F=Object")),t.close(),t.F):sl(Fc);for(var r=Jc.length;r--;)delete fl[il][Jc[r]];return fl()};Gc[ul]=!0;var dl,pl,hl,vl=Object.create||function(t,e){var n;return null!==t?(cl[il]=Au(t),n=new cl,cl[il]=null,n[ul]=t):n=fl(),void 0===e?n:nl.f(n,e)},gl=Jc.concat("length","prototype"),ml={f:Object.getOwnPropertyNames||function(t){return Xc(t,gl)}},yl=Gi([].slice),bl=ml.f,wl="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Sl={f:function(t){return wl&&"Window"===Xi(t)?function(t){try{return bl(t)}catch(t){return yl(wl)}}(t):bl(yu(t))}},xl={f:Object.getOwnPropertySymbols},El={f:uu},kl=_u.f,Tl=function(t,e,n,r){return r&&r.enumerable?t[e]=n:Ku(t,e,n),t},Ml=ac?{}.toString:function(){return "[object "+pc(this)+"]"},Il=_u.f,Ol=uu("toStringTag"),Nl=ha.WeakMap,Hl=da(Nl)&&/native code/.test(String(Nl)),Dl="Object already initialized",jl=ha.TypeError,Ll=ha.WeakMap;if(Hl||qa.state){var zl=qa.state||(qa.state=new Ll);zl.get=zl.get,zl.has=zl.has,zl.set=zl.set,dl=function(t,e){if(zl.has(t))throw new jl(Dl);return e.facade=t,zl.set(t,e),e},pl=function(t){return zl.get(t)||{}},hl=function(t){return zl.has(t)};}else {var Pl=ol("state");Gc[Pl]=!0,dl=function(t,e){if(Za(t,Pl))throw new jl(Dl);return e.facade=t,Ku(t,Pl,e),e},pl=function(t){return Za(t,Pl)?t[Pl]:{}},hl=function(t){return Za(t,Pl)};}var Al={set:dl,get:pl,has:hl,enforce:function(t){return hl(t)?pl(t):dl(t,{})},getterFor:function(t){return function(e){var n;if(!Fa(e)||(n=pl(e)).type!==t)throw new jl("Incompatible receiver, "+t+" required");return n}}},Cl=Gi([].push),Vl=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,a=7===t,u=5===t||i;return function(c,l,s,f){for(var d,p,h=Ga(c),v=sa(h),g=Hc(v),m=Uu(l,s),y=0,b=f||Lc,w=e?b(c,g):n||a?b(c,0):void 0;g>y;y++)if((u||y in v)&&(p=m(d=v[y],y,h),t))if(e)w[y]=p;else if(p)switch(t){case 3:return !0;case 5:return d;case 6:return y;case 2:Cl(w,d);}else switch(t){case 4:return !1;case 7:Cl(w,d);}return i?-1:r||o?o:w}},Fl={forEach:Vl(0),map:Vl(1),filter:Vl(2),some:Vl(3),every:Vl(4),find:Vl(5),findIndex:Vl(6),filterReject:Vl(7)},Bl=function(t){if("Symbol"===pc(t))throw new TypeError("Cannot convert a Symbol value to a string");return Bc(t)},Rl=vl,$l=Sl,_l=xl,ql=function(t,e,n){return _u.f(t,e,n)},Wl=function(t){var e=pa.Symbol||(pa.Symbol={});Za(e,t)||kl(e,t,{value:El.f(t)});},Gl=function(){var t=Na("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=uu("toPrimitive");e&&!e[r]&&Tl(e,r,(function(t){return Va(n,this)}),{arity:1});},Ul=function(t,e,n,r){var o=n?t:t&&t.prototype;o&&(Za(o,Ol)||Il(o,Ol,{configurable:!0,value:e}),r&&!ac&&Ku(o,"toString",Ml));},Kl=Al,Xl=Fl.forEach,Jl=ol("hidden"),Yl="Symbol",Ql="prototype",Zl=Kl.set,ts=Kl.getterFor(Yl),es=Object[Ql],ns=ha.Symbol,rs=ns&&ns[Ql],os=ha.RangeError,is=ha.TypeError,as=ha.QObject,us=Wu.f,cs=_u.f,ls=$l.f,ss=gu.f,fs=Gi([].push),ds=Qa("symbols"),ps=Qa("op-symbols"),hs=Qa("wks"),vs=!as||!as[Ql]||!as[Ql].findChild,gs=function(t,e,n){var r=us(es,e);r&&delete es[e],cs(t,e,n),r&&t!==es&&cs(es,e,r);},ms=pu&&Pi((function(){return 7!==Rl(cs({},"a",{get:function(){return cs(this,"a",{value:7}).a}})).a}))?gs:cs,ys=function(t,e){var n=ds[t]=Rl(rs);return Zl(n,{type:Yl,tag:t,description:e}),pu||(n.description=e),n},bs=function(t,e,n){t===es&&bs(ps,e,n),Au(t);var r=bu(e);return Au(n),Za(ds,r)?(n.enumerable?(Za(t,Jl)&&t[Jl][r]&&(t[Jl][r]=!1),n=Rl(n,{enumerable:mu(0,!1)})):(Za(t,Jl)||cs(t,Jl,mu(1,Rl(null))),t[Jl][r]=!0),ms(t,r,n)):cs(t,r,n)},ws=function(t,e){Au(t);var n=yu(e),r=Yc(n).concat(ks(n));return Xl(r,(function(e){pu&&!Va(Ss,n,e)||bs(t,e,n[e]);})),t},Ss=function(t){var e=bu(t),n=Va(ss,this,e);return !(this===es&&Za(ds,e)&&!Za(ps,e))&&(!(n||!Za(this,e)||!Za(ds,e)||Za(this,Jl)&&this[Jl][e])||n)},xs=function(t,e){var n=yu(t),r=bu(e);if(n!==es||!Za(ds,r)||Za(ps,r)){var o=us(n,r);return !o||!Za(ds,r)||Za(n,Jl)&&n[Jl][r]||(o.enumerable=!0),o}},Es=function(t){var e=ls(yu(t)),n=[];return Xl(e,(function(t){Za(ds,t)||Za(Gc,t)||fs(n,t);})),n},ks=function(t){var e=t===es,n=ls(e?ps:yu(t)),r=[];return Xl(n,(function(t){!Za(ds,t)||e&&!Za(es,t)||fs(r,ds[t]);})),r};Ia||(ns=function(){if(Ha(rs,this))throw new is("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Bl(arguments[0]):void 0,e=tu(t),n=function(t){var r=void 0===this?ha:this;r===es&&Va(n,ps,t),Za(r,Jl)&&Za(r[Jl],e)&&(r[Jl][e]=!1);var o=mu(1,t);try{ms(r,e,o);}catch(t){if(!(t instanceof os))throw t;gs(r,e,o);}};return pu&&vs&&ms(es,e,{configurable:!0,set:n}),ys(e,t)},rs=ns[Ql],Tl(rs,"toString",(function(){return ts(this).tag})),Tl(ns,"withoutSetter",(function(t){return ys(tu(t),t)})),gu.f=Ss,_u.f=bs,nl.f=ws,Wu.f=xs,ml.f=$l.f=Es,_l.f=ks,El.f=function(t){return ys(uu(t),t)},pu&&ql(rs,"description",{configurable:!0,get:function(){return ts(this).description}})),Nc({global:!0,constructor:!0,wrap:!0,forced:!Ia,sham:!Ia},{Symbol:ns}),Xl(Yc(hs),(function(t){Wl(t);})),Nc({target:Yl,stat:!0,forced:!Ia},{useSetter:function(){vs=!0;},useSimple:function(){vs=!1;}}),Nc({target:"Object",stat:!0,forced:!Ia,sham:!pu},{create:function(t,e){return void 0===e?Rl(t):ws(Rl(t),e)},defineProperty:bs,defineProperties:ws,getOwnPropertyDescriptor:xs}),Nc({target:"Object",stat:!0,forced:!Ia},{getOwnPropertyNames:Es}),Gl(),Ul(ns,Yl),Gc[Jl]=!0;var Ts=Ia&&!!Symbol.for&&!!Symbol.keyFor,Ms=Qa("string-to-symbol-registry"),Is=Qa("symbol-to-string-registry");Nc({target:"Symbol",stat:!0,forced:!Ts},{for:function(t){var e=Bl(t);if(Za(Ms,e))return Ms[e];var n=Na("Symbol")(e);return Ms[e]=n,Is[n]=e,n}});var Os=Qa("symbol-to-string-registry");Nc({target:"Symbol",stat:!0,forced:!Ts},{keyFor:function(t){if(!ou(t))throw new TypeError(Pa(t)+" is not a symbol");if(Za(Os,t))return Os[t]}});var Ns=Gi([].push),Hs=function(t){if(da(t))return t;if(Ec(t)){for(var e=t.length,n=[],r=0;r<e;r++){var o=t[r];"string"==typeof o?Ns(n,o):"number"!=typeof o&&"Number"!==Xi(o)&&"String"!==Xi(o)||Ns(n,Bl(o));}var i=n.length,a=!0;return function(t,e){if(a)return a=!1,e;if(Ec(this))return e;for(var r=0;r<i;r++)if(n[r]===t)return e}}},Ds=String,js=Na("JSON","stringify"),Ls=Gi(/./.exec),zs=Gi("".charAt),Ps=Gi("".charCodeAt),As=Gi("".replace),Cs=Gi(1..toString),Vs=/[\uD800-\uDFFF]/g,Fs=/^[\uD800-\uDBFF]$/,Bs=/^[\uDC00-\uDFFF]$/,Rs=!Ia||Pi((function(){var t=Na("Symbol")("stringify detection");return "[null]"!==js([t])||"{}"!==js({a:t})||"{}"!==js(Object(t))})),$s=Pi((function(){return '"\\udf06\\ud834"'!==js("\udf06\ud834")||'"\\udead"'!==js("\udead")})),_s=function(t,e){var n=yl(arguments),r=Hs(e);if(da(r)||void 0!==t&&!ou(t))return n[1]=function(t,e){if(da(r)&&(e=Va(r,this,Ds(t),e)),!ou(e))return e},qu(js,null,n)},qs=function(t,e,n){var r=zs(n,e-1),o=zs(n,e+1);return Ls(Fs,t)&&!Ls(Bs,o)||Ls(Bs,t)&&!Ls(Fs,r)?"\\u"+Cs(Ps(t,0),16):t};js&&Nc({target:"JSON",stat:!0,arity:3,forced:Rs||$s},{stringify:function(t,e,n){var r=yl(arguments),o=qu(Rs?_s:js,null,r);return $s&&"string"==typeof o?As(o,Vs,qs):o}});var Ws=!Ia||Pi((function(){_l.f(1);}));Nc({target:"Object",stat:!0,forced:Ws},{getOwnPropertySymbols:function(t){var e=_l.f;return e?e(Ga(t)):[]}}),Wl("asyncIterator"),Wl("hasInstance"),Wl("isConcatSpreadable"),Wl("iterator"),Wl("match"),Wl("matchAll"),Wl("replace"),Wl("search"),Wl("species"),Wl("split"),Wl("toPrimitive"),Gl(),Wl("toStringTag"),Ul(Na("Symbol"),"Symbol"),Wl("unscopables"),Ul(ha.JSON,"JSON",!0);var Gs,Us,Ks,Xs=pa.Symbol,Js=Function.prototype,Ys=pu&&Object.getOwnPropertyDescriptor,Qs=Za(Js,"name"),Zs={EXISTS:Qs,PROPER:Qs&&"something"===function(){}.name,CONFIGURABLE:Qs&&(!pu||pu&&Ys(Js,"name").configurable)},tf=!Pi((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ef=ol("IE_PROTO"),nf=Object,rf=nf.prototype,of=tf?nf.getPrototypeOf:function(t){var e=Ga(t);if(Za(e,ef))return e[ef];var n=e.constructor;return da(n)&&e instanceof n?n.prototype:e instanceof nf?rf:null},af=uu("iterator"),uf=!1;[].keys&&("next"in(Ks=[].keys())?(Us=of(of(Ks)))!==Object.prototype&&(Gs=Us):uf=!0);var cf=!Fa(Gs)||Pi((function(){var t={};return Gs[af].call(t)!==t}));Gs=cf?{}:Rl(Gs),da(Gs[af])||Tl(Gs,af,(function(){return this}));var lf={IteratorPrototype:Gs,BUGGY_SAFARI_ITERATORS:uf},ff=lf.IteratorPrototype,gf=function(t,e,n){try{return Gi(Ca(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},yf=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,n={};try{(t=gf(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array;}catch(t){}}(),function(t,e,n,r){var o=e+" Iterator";return t.prototype=Rl(ff,{next:mu(+!r,n)}),Ul(t,o,!1,!0),t}),bf=Zs.PROPER,wf=lf.BUGGY_SAFARI_ITERATORS,Sf=uu("iterator"),xf="keys",Ef="values",kf="entries",Tf=function(){return this},If=function(t,e,n,r,o,i,a){yf(n,e,r);var u,c,l,s=function(t){if(t===o&&v)return v;if(!wf&&t&&t in p)return p[t];switch(t){case xf:case Ef:case kf:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",d=!1,p=t.prototype,h=p[Sf]||p["@@iterator"]||o&&p[o],v=!wf&&h||s(o),g="Array"===e&&p.entries||h;if(g&&(u=of(g.call(new t)))!==Object.prototype&&u.next&&(Ul(u,f,!0,!0),Tf),bf&&o===Ef&&h&&h.name!==Ef&&(d=!0,v=function(){return Va(h,this)}),o)if(c={values:s(Ef),keys:i?v:s(xf),entries:s(kf)},a)for(l in c)(wf||d||!(l in p))&&Tl(p,l,c[l]);else Nc({target:e,proto:!0,forced:wf||d},c);return a&&p[Sf]!==v&&Tl(p,Sf,v,{name:o}),c},Of=function(t,e){return {value:t,done:e}},Nf=(_u.f,"Array Iterator"),Hf=Kl.set,Df=Kl.getterFor(Nf);If(Array,"Array",(function(t,e){Hf(this,{type:Nf,target:yu(t),index:0,kind:e});}),(function(){var t=Df(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,Of(void 0,!0);switch(t.kind){case"keys":return Of(n,!1);case"values":return Of(e[n],!1)}return Of([n,e[n]],!1)}),"values");var jf={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};for(var Lf in jf)Ul(ha[Lf],Lf);var zf=Xs,Pf=_u.f,Af=uu("metadata"),Cf=Function.prototype;void 0===Cf[Af]&&Pf(Cf,Af,{value:null}),Wl("asyncDispose"),Wl("dispose"),Wl("metadata");var Vf=zf,Ff=Na("Symbol"),Bf=Ff.keyFor,Rf=Gi(Ff.prototype.valueOf),$f=Ff.isRegisteredSymbol||function(t){try{return void 0!==Bf(Rf(t))}catch(t){return !1}};Nc({target:"Symbol",stat:!0},{isRegisteredSymbol:$f});for(var _f=Na("Symbol"),qf=_f.isWellKnownSymbol,Wf=Na("Object","getOwnPropertyNames"),Gf=Gi(_f.prototype.valueOf),Uf=Qa("wks"),Kf=0,Xf=Wf(_f),Jf=Xf.length;Kf<Jf;Kf++)try{var Yf=Xf[Kf];ou(_f[Yf])&&uu(Yf);}catch(t){}var Qf=function(t){if(qf&&qf(t))return !0;try{for(var e=Gf(t),n=0,r=Wf(Uf),o=r.length;n<o;n++)if(Uf[r[n]]==e)return !0}catch(t){}return !1};Nc({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Qf}),Wl("customMatcher"),Wl("observable"),Nc({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:$f}),Nc({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Qf}),Wl("matcher"),Wl("metadataKey"),Wl("patternMatch"),Wl("replaceAll");var Zf=Vf,td=Gi("".charAt),ed=Gi("".charCodeAt),nd=Gi("".slice),rd=function(t){return function(e,n){var r,o,i=Bl(fa(e)),a=ec(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=ed(i,a))<55296||r>56319||a+1===u||(o=ed(i,a+1))<56320||o>57343?t?td(i,a):r:t?nd(i,a,a+2):o-56320+(r-55296<<10)+65536}},od={codeAt:rd(!1),charAt:rd(!0)}.charAt,id="String Iterator",ad=Kl.set,ud=Kl.getterFor(id);If(String,"String",(function(t){ad(this,{type:id,string:Bl(t),index:0});}),(function(){var t,e=ud(this),n=e.string,r=e.index;return r>=n.length?Of(void 0,!0):(t=od(n,r),e.index+=t.length,Of(t,!1))}));var cd=El.f("iterator");function ld(t){return ld="function"==typeof Zf&&"symbol"==typeof cd?function(t){return typeof t}:function(t){return t&&"function"==typeof Zf&&t.constructor===Zf&&t!==Zf.prototype?"symbol":typeof t},ld(t)}var sd,fd,dd,pd=Yt.EXISTS,hd=Function.prototype,vd=H(hd.toString),gd=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,md=H(gd.exec);y&&!pd&&(sd=hd,fd="name",(dd={configurable:!0,get:function(){try{return md(gd,vd(this))[1]}catch(t){return ""}}}).get&&he(dd.get,fd,{getter:!0}),dd.set&&he(dd.set,fd,{setter:!0}),Gt.f(sd,fd,dd));var yd=function(){function t(){this.tag="select",this.width=80;}return t.prototype.isActive=function(t){return !1},t.prototype.getValue=function(t){var e=this.mark,r=n.Editor.marks(t);return r&&r[e]?r[e]:""},t.prototype.isDisabled=function(t){return null==t.selection||!!qn(n.Editor.nodes(t,{match:function(r){return "pre"===e.DomEditor.getNodeType(r)||!!n.Editor.isVoid(t,r)},universal:!0}),1)[0]},t.prototype.exec=function(t,e){var n=this.mark;e?t.addMark(n,e):t.removeMark(n);},t}(),bd=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("fontFamily.title"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',n.mark="fontFamily",n.selectPanelWidth=150,n}return Fn(n,t),n.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig(this.mark).fontFamilyList,o=void 0===r?[]:r;n.push({text:e.t("fontFamily.default"),value:""}),o.forEach((function(t){if("string"==typeof t)n.push({text:t,value:t,styleForRenderMenuList:{"font-family":t}});else if("object"===ld(t)){var e=t.name,r=t.value;n.push({text:e,value:r,styleForRenderMenuList:{"font-family":r}});}}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected;})),n},n}(yd),wd=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("fontSize.title"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',n.mark="fontSize",n}return Fn(n,t),n.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig(this.mark).fontSizeList,o=void 0===r?[]:r;n.push({text:e.t("fontSize.default"),value:""}),o.forEach((function(t){if("string"==typeof t)n.push({text:t,value:t});else if("object"===ld(t)){var e=t.name,r=t.value;n.push({text:e,value:r});}}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected;})),n},n}(yd);var Sd={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"};var xd={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&xi(i,{fontSize:r}),o&&xi(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!n.Text.isText(t))return e;var r,o=t,i=o.fontSize,a=o.fontFamily;return i||a?((so(e)||"span"!==po(r=c.default(e)))&&(r=c.default("<span>".concat(e,"</span>"))),i&&r.css("font-size",i),a&&r.css("font-family",a),fo(r)):e},preParseHtml:[{selector:"font",preParseHtml:function(t){var e=c.default(t);if("font"!==po(e))return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",Sd[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}}],parseStyleHtml:function(t,e,r){var o=c.default(t);if(!n.Text.isText(e))return e;var i=e,a=ho(o,"font-size");a&&(i.fontSize=a);var u=ho(o,"font-family").replace(/"/g,"");return u&&(i.fontFamily=u),i},menus:[{key:"fontSize",factory:function(){return new wd},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 bd},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Ed=!m((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),kd=ae("IE_PROTO"),Td=Object,Md=Td.prototype,Id=Ed?Td.getPrototypeOf:function(t){var e=vt(t);if(mt(e,kd))return e[kd];var n=e.constructor;return $(n)&&e instanceof n?n.prototype:e instanceof Td?Md:null},Od=H(T.f),Nd=H([].push),Hd=y&&m((function(){var t=Object.create(null);return t[2]=2,!Od(t,2)})),Dd=function(t){return function(e){for(var n,r=B(e),o=cn(r),i=Hd&&null===Id(r),a=o.length,u=0,c=[];a>u;)n=o[u++],y&&!(i?n in r:Od(r,n))||Nd(c,t?[n,r[n]]:r[n]);return c}},jd={entries:Dd(!0),values:Dd(!1)}.entries;Ge({target:"Object",stat:!0},{entries:function(t){return jd(t)}}),Ge({target:"Object",stat:!0,forced:m((function(){cn(1);}))},{keys:function(t){return cn(vt(t))}});var Ld=function(){function t(){this.title=e.t("formatPainter.title"),this.iconSvg='<svg viewBox="0 0 24 24"><path d="M8 19.997v-5h2v5h9v-7H5v7zm-4-9h16v-3h-6v-4h-4v4H4zm-1 10v-8H2v-6a1 1 0 0 1 1-1h5v-3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v3h5a1 1 0 0 1 1 1v6h-1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1"/></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(e){return t.attrs.isSelect},t.prototype.isDisabled=function(t){return !1},t.prototype.setFormatHtml=function(e){var r,o;if(e.getSelectionText().length){if(t.attrs.formatStyle){!function(t){var e=n.Editor.marks(t);e&&Object.keys(e).forEach((function(e){t.removeMark(e);}));}(e);try{for(var i=_n(Object.entries(t.attrs.formatStyle)),a=i.next();!a.done;a=i.next()){var u=qn(a.value,2),c=u[0],l=u[1];e.addMark(c,l);}}catch(t){r={error:t};}finally{try{a&&!a.done&&(o=i.return)&&o.call(i);}finally{if(r)throw r.error}}}t.attrs.formatStyle=null,t.attrs.isSelect=!1;}},t.prototype.exec=function(e){t.attrs.isSelect?(t.attrs.isSelect=!1,t.attrs.formatStyle=null):e.getSelectionText().length&&(t.attrs.formatStyle=n.Editor.marks(e),t.attrs.isSelect=!0);e.blur(),e.focus();},t.attrs={isSelect:!1,formatStyle:null},t}();var zd={menus:[{key:"formatPainter",factory:function(){return new Ld}}],editorPlugin:function(t){var e=new Ld,n=t.onChange,r=t,o=function(){e.setFormatHtml(r),document.removeEventListener("mouseup",o);};return r.onChange=function(){n(),Ld.attrs.isSelect&&(document.removeEventListener("mouseup",o),document.addEventListener("mouseup",o));},r}},Pd=function(){function t(){this.title=e.t("fullScreen.title"),this.iconSvg=Un,this.tag="button",this.alwaysEnable=!0;}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return t.isFullScreen},t.prototype.isDisabled=function(t){return !1},t.prototype.getIcon=function(t){return t.isFullScreen?Un:'<svg t="1723361745825" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8705" width="200" height="200"><path d="M703.926857 362.642286a42.642286 42.642286 0 0 1-42.642286-42.642286V128a42.642286 42.642286 0 1 1 85.357715 0v149.357714h149.357714c21.211429 0 38.765714 15.433143 42.057143 35.693715l0.585143 6.948571a42.642286 42.642286 0 0 1-42.642286 42.642286H703.926857zM703.926857 938.642286a42.642286 42.642286 0 0 1-42.642286-42.642286V704c0-23.552 19.090286-42.642286 42.642286-42.642286h192.073143a42.642286 42.642286 0 1 1 0 85.284572l-149.357714 0.073143v149.284571c0 21.211429-15.506286 38.765714-35.84 42.130286l-6.875429 0.512zM319.853714 938.642286a42.642286 42.642286 0 0 1-42.642285-42.642286v-149.284571H127.853714a42.642286 42.642286 0 0 1-42.130285-35.84l-0.585143-6.875429c0-23.552 19.163429-42.642286 42.715428-42.642286h192c23.552 0 42.715429 19.017143 42.715429 42.642286v192a42.642286 42.642286 0 0 1-42.715429 42.642286zM127.853714 362.642286a42.642286 42.642286 0 1 1 0-85.284572H277.211429V128c0-21.211429 15.433143-38.765714 35.766857-42.130286l6.875428-0.512c23.552 0 42.715429 19.017143 42.715429 42.642286v192a42.642286 42.642286 0 0 1-42.715429 42.642286H127.853714z" fill="#333333" p-id="8706"></path></svg>'},t.prototype.getTitle=function(t){return t.isFullScreen?e.t("fullScreen.title"):e.t("fullScreen.cancelTitle")},t.prototype.exec=function(t,e){t.isFullScreen?t.unFullScreen():t.fullScreen();},t}(),Ad={menus:[{key:"fullScreen",factory:function(){return new Pd}}]};function Cd(t){return function(e,n){return "<h".concat(t,">").concat(n,"</h").concat(t,">")}}var Vd={type:"header1",elemToHtml:Cd(1)},Fd={type:"header2",elemToHtml:Cd(2)},Bd={type:"header3",elemToHtml:Cd(3)},Rd={type:"header4",elemToHtml:Cd(4)},$d={type:"header5",elemToHtml:Cd(5)},_d={type:"header6",elemToHtml:Cd(6)},qd=Pt.f,Wd=Jn("".slice),Gd=Math.min,Ud=Ro("startsWith"),Kd=!Ud&&!!function(){var t=qd(String.prototype,"startsWith");return t&&!t.writable}();function Xd(t){var r=qn(n.Editor.nodes(t,{match:function(t){return e.DomEditor.getNodeType(t).startsWith("header")},universal:!0}),1),o=r[0];if(null==o)return "paragraph";var i=qn(o,1)[0];return e.DomEditor.getNodeType(i)}function Jd(t){return null==t.selection||!qn(n.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return "paragraph"===n||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function Yd(t,e){e&&n.Transforms.setNodes(t,{type:e});}Ge({target:"String",proto:!0,forced:!Kd&&!Ud},{startsWith:function(t){var e=en(F(this));Fo(t);var n=ke(Gd(arguments.length>1?arguments[1]:void 0,e.length)),r=en(t);return Wd(e,n,n+r.length)===r}});var Qd=function(){function t(){this.tag="button";}return t.prototype.getValue=function(t){return Xd(t)},t.prototype.isActive=function(t){return this.getValue(t)===this.type},t.prototype.isDisabled=function(t){return Jd(t)},t.prototype.exec=function(t,e){var n=this.type;Yd(t,e===n?"paragraph":n);},t}(),Zd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H1",e.type="header1",e}return Fn(e,t),e}(Qd),tp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H2",e.type="header2",e}return Fn(e,t),e}(Qd),ep=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H3",e.type="header3",e}return Fn(e,t),e}(Qd),np=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H4",e.type="header4",e}return Fn(e,t),e}(Qd),rp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H5",e.type="header5",e}return Fn(e,t),e}(Qd),op=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H6",e.type="header6",e}return Fn(e,t),e}(Qd),ip=function(){function t(){this.title=e.t("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 t.prototype.getOptions=function(t){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"header6",text:"H6",styleForRenderMenuList:{"font-size":"11px","font-weight":"bold"}},{value:"paragraph",text:e.t("header.text")}],r=this.getValue(t).toString();return n.forEach((function(t){t.value===r?t.selected=!0:delete t.selected;})),n},t.prototype.isActive=function(t){return !1},t.prototype.getValue=function(t){return Xd(t)},t.prototype.isDisabled=function(t){return Jd(t)},t.prototype.exec=function(t,e){Yd(t,e.toString());},t}(),ap={key:"headerSelect",factory:function(){return new ip}},up={key:"header1",factory:function(){return new Zd}},cp={key:"header2",factory:function(){return new tp}},lp={key:"header3",factory:function(){return new ep}},sp={key:"header4",factory:function(){return new np}},fp={key:"header5",factory:function(){return new rp}},dp={key:"header6",factory:function(){return new op}};function pp(t){return function(e,r,o){var i=c.default(e);return 0===(r=r.filter((function(t){return !!n.Text.isText(t)||!!o.isInline(t)}))).length&&(r=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header".concat(t),children:r}}}var hp={selector:"h1:not([data-w-e-type])",parseElemHtml:pp(1)},vp={selector:"h2:not([data-w-e-type])",parseElemHtml:pp(2)},gp={selector:"h3:not([data-w-e-type])",parseElemHtml:pp(3)},mp={selector:"h4:not([data-w-e-type])",parseElemHtml:pp(4)},yp={selector:"h5:not([data-w-e-type])",parseElemHtml:pp(5)},bp={selector:"h6:not([data-w-e-type])",parseElemHtml:pp(6)};function wp(t){return function(e,n,r){var i="h".concat(t);return o.jsx(i,null,n)}}var Sp={renderElems:[{type:"header1",renderElem:wp(1)},{type:"header2",renderElem:wp(2)},{type:"header3",renderElem:wp(3)},{type:"header4",renderElem:wp(4)},{type:"header5",renderElem:wp(5)},{type:"header6",renderElem:wp(6)}],elemsToHtml:[Vd,Fd,Bd,Rd,$d,_d],parseElemsHtml:[hp,vp,gp,mp,yp,bp],menus:[ap,up,cp,lp,sp,fp,dp],editorPlugin:function(t){var r=t.insertBreak,o=t;return o.insertBreak=function(){var i=qn(n.Editor.nodes(o,{match:function(t){return e.DomEditor.getNodeType(t).startsWith("header")},universal:!0}),1)[0];if(i)if(e.DomEditor.isSelectionAtLineEnd(t,i[1])){n.Transforms.insertNodes(o,{type:"paragraph",children:[{text:""}]},{mode:"highest"});}else r();else r();},o}};var xp={type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,c=n.width,l=void 0===c?"":c,s=n.height,f=void 0===s?"":s,d=n.style,p=void 0===d?{}:d,h=p.width,v=void 0===h?"":h,g=p.height,m=void 0===g?"":g,y="";return v&&(y+="width: ".concat(v,";")),m&&(y+="height: ".concat(m,";")),'<img src="'.concat(r,'" alt="').concat(i,'" data-href="').concat(u,'" width="').concat(l,'" height="').concat(f,'" style="').concat(y,'"/>')}};var Ep=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||null==e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.exec=function(t,r){this.isDisabled(t)||n.Transforms.removeNodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}});},t}();function kp(t){return void 0===t&&(t="r"),"".concat(t,"-").concat(i.nanoid())}function Tp(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Mp(t){var r=t.selection;return null==r||(!n.Range.isCollapsed(r)||!!qn(n.Editor.nodes(t,{match:function(r){var o=e.DomEditor.getNodeType(r);return "code"===o||("pre"===o||("link"===o||("list-item"===o||(!!o.startsWith("header")||("blockquote"===o||!!n.Editor.isVoid(t,r))))))},universal:!0}),1)[0])}function Ip(t,e,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),Rn(this,void 0,void 0,(function(){var i,a;return $n(this,(function(u){switch(u.label){case 0:return (i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return e.alert(a,"error"),[2,!1];if(null==a)return [2,!1];u.label=2;case 2:return [2,!0]}}))}))}function Op(t,e,n){return Rn(this,void 0,void 0,(function(){var r;return $n(this,(function(o){switch(o.label){case 0:return (r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return [2,o.sent()];case 2:return [2,n]}}))}))}function Np(t,r,o,i){return void 0===o&&(o=""),void 0===i&&(i=""),Rn(this,void 0,void 0,(function(){var a,u,c;return $n(this,(function(l){switch(l.label){case 0:return [4,Ip("insertImage",t,r,o,i)];case 1:return l.sent()?[4,Op("insertImage",t,r)]:[2];case 2:return a=l.sent(),u={type:"image",src:Tp(a),href:i,alt:o,style:{},children:[{text:""}]},null===t.selection&&t.restoreSelection(),e.DomEditor.getSelectedNodeByType(t,"image")&&t.move(1),Mp(t)?[2]:(n.Transforms.insertNodes(t,u),(c=t.getMenuConfig("insertImage").onInsertedImage)&&c(u),[2])}}))}))}function Hp(t,r,o,i,a){return void 0===o&&(o=""),void 0===i&&(i=""),void 0===a&&(a={}),Rn(this,void 0,void 0,(function(){var u,c,l,s,f,d;return $n(this,(function(p){switch(p.label){case 0:return [4,Ip("editImage",t,r,o,i)];case 1:return p.sent()?[4,Op("editImage",t,r)]:[2];case 2:return u=p.sent(),null==(c=e.DomEditor.getSelectedNodeByType(t,"image"))?[2]:(l=c.style,s={src:u,alt:o,href:i,style:Bn(Bn({},void 0===l?{}:l),a)},n.Transforms.setNodes(t,s,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}}),f=e.DomEditor.getSelectedNodeByType(t,"image"),(d=t.getMenuConfig("editImage").onUpdatedImage)&&d(f),[2])}}))}))}function Dp(){return kp("w-e-edit-image")}var jp=function(){function t(){this.title=e.t("image.edit"),this.iconSvg=Wn,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Dp(),this.altInputId=Dp(),this.hrefInputId=Dp(),this.buttonId=Dp();}return t.prototype.getValue=function(t){return ""},t.prototype.getImageNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!n.Range.isCollapsed(r)||null==e.DomEditor.getSelectedNodeByType(t,"image"))},t.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},t.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,l=this.getImageNode(t);if(null==l)throw new Error("Not found selected image node");var s=qn(e.genModalInputElems(e.t("image.src"),o),2),f=s[0],d=s[1],p=c.default(d),h=qn(e.genModalInputElems(e.t("image.desc"),i),2),v=h[0],g=h[1],m=c.default(g),y=qn(e.genModalInputElems(e.t("image.link"),a),2),b=y[0],w=y[1],S=c.default(w),x=qn(e.genModalButtonElems(u,e.t("common.ok")),1)[0];if(null==this.$content){var E=c.default("<div></div>");E.on("click","#".concat(u),(function(e){e.preventDefault();var r=E.find("#".concat(o)).val(),u=E.find("#".concat(i)).val(),c=E.find("#".concat(a)).val();n.updateImage(t,r,u,c),t.hidePanelOrModal();})),this.$content=E;}var k=this.$content;k.empty(),k.append(f),k.append(v),k.append(b),k.append(x);var T=l,M=T.src,I=T.alt,O=void 0===I?"":I,N=T.href,H=void 0===N?"":N;return p.val(M),m.val(O),S.val(H),setTimeout((function(){p.focus();})),k[0]},t.prototype.updateImage=function(t,e,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),e&&(t.restoreSelection(),this.isDisabled(t)||Hp(t,e,n,r,o));},t}();function Lp(){return kp("w-e-insert-image")}var zp=function(){function t(){this.title=e.t("image.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Lp(),this.heightInputId=Lp(),this.buttonId=Lp();}return t.prototype.getSelectedImageNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedImageNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedImageNode(t)},t.prototype.getModalContentElem=function(t){var r=this,o=r.widthInputId,i=r.heightInputId,a=r.buttonId,u=qn(e.genModalInputElems(e.t("image.width"),o,"auto"),2),l=u[0],s=u[1],f=c.default(s),d=qn(e.genModalInputElems(e.t("image.height"),i,"auto"),2),p=d[0],h=d[1],v=c.default(h),g=qn(e.genModalButtonElems(a,e.t("image.ok")),1)[0],m=this.getSelectedImageNode(t);if(null==this.$content){var y=c.default("<div></div>");y.on("click","#".concat(a),(function(r){r.preventDefault();var a=y.find("#".concat(o)).val().trim(),u=y.find("#".concat(i)).val().trim(),c=function(t){return /^\d+(\.\d+)?%$/.test(t)},l=function(t){return /^\d+(\.\d+)?$/.test(t)},s=function(t){return /^\d+(\.\d+)?px$/.test(t)},f="auto",d="auto";c(a)?f=a:l(a)?f="".concat(parseInt(a,10),"px"):s(a)&&(f=a),c(u)?d=u:l(u)?d="".concat(parseInt(u,10),"px"):s(u)&&(d=u);var p=m.style,h=void 0===p?{}:p;t.restoreSelection();var v=Bn(Bn({},h),{style:{width:f,height:d}});n.Transforms.setNodes(t,v,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}}),t.hidePanelOrModal();})),this.$content=y;}var b=this.$content;if(b.empty(),b.append(l),b.append(p),b.append(g),null==m)return b[0];var w=m.style,S=void 0===w?{}:w,x=S.width,E=void 0===x?"auto":x,k=S.height,T=void 0===k?"auto":k;return f.val(E),v.val(T),setTimeout((function(){f.focus();})),b[0]},t}();function Pp(){return kp("w-e-insert-image")}var Ap=function(){function t(){this.title=e.t("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=Pp(),this.altInputId=Pp(),this.hrefInputId=Pp(),this.buttonId=Pp();}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return Mp(t)},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,l=qn(e.genModalInputElems(e.t("image.src"),o),2),s=l[0],f=l[1],d=c.default(f),p=qn(e.genModalInputElems(e.t("image.desc"),i),2),h=p[0],v=p[1],g=c.default(v),m=qn(e.genModalInputElems(e.t("image.link"),a),2),y=m[0],b=m[1],w=c.default(b),S=qn(e.genModalButtonElems(u,e.t("common.ok")),1)[0];if(null==this.$content){var x=c.default("<div></div>");x.on("click","#".concat(u),(function(e){e.preventDefault();var r=x.find("#".concat(o)).val().trim(),u=x.find("#".concat(i)).val().trim(),c=x.find("#".concat(a)).val().trim();n.insertImage(t,r,u,c),t.hidePanelOrModal();})),this.$content=x;}var E=this.$content;return E.empty(),E.append(s),E.append(h),E.append(y),E.append(S),d.val(""),g.val(""),w.val(""),setTimeout((function(){d.focus();})),E[0]},t.prototype.insertImage=function(t,e,n,r){void 0===n&&(n=""),void 0===r&&(r=""),e&&(t.restoreSelection(),this.isDisabled(t)||Np(t,e,n,r));},t}(),Cp=function(){function t(){this.title=e.t("image.viewLink"),this.iconSvg=Gn,this.tag="button";}return t.prototype.getValue=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"image");return n&&n.href||""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||!this.getValue(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){if(!e||"string"!=typeof e)throw new Error("View image link failed, image.href is '".concat(e,"'"));window.open(e,"_blank");}},t}(),Vp=function(){function t(){this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.getSelectedNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedNode(t)},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var o=this.getSelectedNode(t);if(null!=o){var i=e.DomEditor.getHoverbar(t);i&&i.hideAndClean();var a=o.style,u={style:Bn(Bn({},void 0===a?{}:a),{width:this.value,height:""})};n.Transforms.setNodes(t,u,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}});}}},t}(),Fp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="30%",e.value="30%",e}return Fn(e,t),e}(Vp),Bp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="50%",e.value="50%",e}return Fn(e,t),e}(Vp),Rp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="100%",e.value="100%",e}return Fn(e,t),e}(Vp),$p={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return !0},parseImageSrc:function(t){return t}},_p={key:"insertImage",factory:function(){return new Ap},config:$p},qp={key:"deleteImage",factory:function(){return new Ep}},Wp={key:"editImage",factory:function(){return new jp},config:$p},Gp={key:"viewImageLink",factory:function(){return new Cp}},Up={key:"imageWidth30",factory:function(){return new Fp}},Kp={key:"imageWidth50",factory:function(){return new Bp}},Xp={key:"imageWidth100",factory:function(){return new Rp}},Jp={key:"editorImageSizeMenu",factory:function(){return new zp}};var Yp={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=c.default(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:ho(r,"width"),height:ho(r,"height")},width:r.attr("width")||"",height:r.attr("height")||"",children:[{text:""}]}}};var Qp=H(1..valueOf),Zp=RangeError,th=RangeError,eh=String,nh=Math.floor,rh=H((function(t){var e=en(F(this)),n="",r=be(t);if(r<0||r===1/0)throw new Zp("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),oh=H("".slice),ih=H(1..toFixed),ah=function(t,e,n){return 0===e?n:e%2==1?ah(t,e-1,n*t):ah(t*t,e/2,n)},uh=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=nh(o/1e7);},ch=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=nh(r/e),r=r%e*1e7;},lh=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=eh(t[e]);n=""===n?r:n+rh("0",7-r.length)+r;}return n};function sh(t,n){var r=e.DomEditor.findKey(t,n).id;return "w-e-image-container-".concat(r)}function fh(t,r,i,a){var u=c.default("body"),s=sh(t,r),f=a.width,d=a.height,p=0,h=0,v=0,g=0,m=!1,y=null;var b=l.default((function(t){t.preventDefault();var e=t.clientX,n=h+(m?p-e:e-p),r=v*(n/h);n>g-6||null!=y&&(n<=15||r<=15||(y.css("width","".concat(n,"px")),y.css("height","".concat(r,"px"))));}),100);function w(o){if(u.off("mousemove",b),null!=y){var i=y.width().toFixed(2),a=y.height().toFixed(2),c={style:Bn(Bn({},r.style),{width:"".concat(i,"px"),height:"".concat(a,"px")})};n.Transforms.setNodes(t,c,{at:e.DomEditor.findPath(t,r)}),u.off("mouseup",w);}}function S(n,r){y=function(){var t=c.default("#".concat(s));if(0===t.length)throw new Error("Cannot find image container elem");return t}(),p=n,g=r;var o=y.find("img");if(0===o.length)throw new Error("Cannot find image elem");h=o.width(),v=o.height(),u.on("mousemove",b),u.on("mouseup",w);var i=e.DomEditor.getHoverbar(t);i&&i.hideAndClean();}var x={};return f&&(x.width=f),d&&(x.height=d),x.boxShadow="0 0 0 1px #B4D5FF",o.jsx("div",{id:s,style:x,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(n){var o=c.default(n.target);if(o.hasClass("w-e-image-dragger")){n.preventDefault(),(o.hasClass("left-top")||o.hasClass("left-bottom"))&&(m=!0);var i=e.DomEditor.getParentNode(t,r);if(null!=i){var a=e.DomEditor.toDOMNode(t,i),u=a.getBoundingClientRect(),l=window.getComputedStyle(a),s=parseFloat(l.paddingLeft),f=parseFloat(l.paddingRight),d=parseFloat(l.borderLeftWidth),p=parseFloat(l.borderRightWidth);S(n.clientX,u.width-s-f-d-p);}}}}},i,o.jsx("div",{className:"w-e-image-dragger left-top"}),o.jsx("div",{className:"w-e-image-dragger right-top"}),o.jsx("div",{className:"w-e-image-dragger left-bottom"}),o.jsx("div",{className:"w-e-image-dragger right-bottom"}))}Ge({target:"Number",proto:!0,forced:m((function(){return "0.000"!==ih(8e-5,3)||"1"!==ih(.9,0)||"1.25"!==ih(1.255,2)||"1000000000000000128"!==ih(0xde0b6b3a7640080,0)}))||!m((function(){ih({});}))},{toFixed:function(t){var e,n,r,o,i=Qp(this),a=be(t),u=[0,0,0,0,0,0],c="",l="0";if(a<0||a>20)throw new th("Incorrect fraction digits");if(i!=i)return "NaN";if(i<=-1e21||i>=1e21)return eh(i);if(i<0&&(c="-",i=-i),i>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*ah(2,69,1))-69)<0?i*ah(2,-e,1):i/ah(2,e,1),n*=4503599627370496,(e=52-e)>0){for(uh(u,0,n),r=a;r>=7;)uh(u,1e7,0),r-=7;for(uh(u,ah(10,r,1),0),r=e-1;r>=23;)ch(u,1<<23),r-=23;ch(u,1<<r),uh(u,1,1),ch(u,2),l=lh(u);}else uh(u,0,n),uh(u,1<<-e,0),l=lh(u)+rh("0",a);return l=a>0?c+((o=l.length)<=a?"0."+rh("0",a-o)+l:oh(l,0,o-a)+"."+oh(l,o-a)):c+l}});var dh={renderElems:[{type:"image",renderElem:function(t,n,r){var i=t,a=i.src,u=i.alt,c=void 0===u?"":u,l=i.href,s=void 0===l?"":l,f=i.style,d=void 0===f?{}:f,p=d.width,h=void 0===p?"":p,v=d.height,g=void 0===v?"":v,m=e.DomEditor.isNodeSelected(r,t),y={maxWidth:"100%"};h&&(y.width="100%"),g&&(y.height="100%");var b=o.jsx("img",{style:y,src:a,alt:c,"data-href":s}),w=r.isDisabled();return m&&!w?fh(r,t,b,{width:h,height:g}):function(t,e,n,r){var i=r.width,a=r.height,u={};i&&(u.width=i),a&&(u.height=a);var c=sh(t,e);return o.jsx("div",{id:c,style:u,className:"w-e-image-container"},n)}(r,t,b,{width:h,height:g})}}],elemsToHtml:[xp],parseElemsHtml:[Yp],menus:[_p,qp,Wp,Gp,Up,Kp,Xp,Jp],editorPlugin:function(t){var e=t.isInline,n=t.isVoid,r=t;return r.isInline=function(t){return "image"===t.type||e(t)},r.isVoid=function(t){return "image"===t.type||n(t)},r}},ph=function(){function t(){this.tag="button";}return t.prototype.getValue=function(t){var e=qn(n.Editor.nodes(t,{match:function(t){return !!t.indent},universal:!0}),1),r=e[0];return null==r?"":qn(r,1)[0].indent||""},t.prototype.isActive=function(t){return !1},t.prototype.getMatchNode=function(t){var r=qn(n.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return "paragraph"===n||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==r?null:r[0]},t}(),hh=function(t){function r(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("indent.decrease"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',n}return Fn(r,t),r.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!e.indent},r.prototype.exec=function(t,e){n.Transforms.setNodes(t,{indent:null},{match:function(t){return n.Element.isElement(t)}});},r}(ph),vh=function(t){function r(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("indent.increase"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',n.DEFAULT_INDENT_VALUE="2em",n}return Fn(r,t),r.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!!e.indent},r.prototype.getIndentValue=function(t){var e=this.getMatchNode(t);if(!e)return this.DEFAULT_INDENT_VALUE;var r=e.children.filter(n.Text.isText)[0];if(!r||!r.fontSize)return this.DEFAULT_INDENT_VALUE;var o=r.fontSize,i=parseInt(r.fontSize,10),a=o.replace("".concat(i),"");return "".concat(2*i).concat(a)},r.prototype.exec=function(t,e){var r=this.getIndentValue(t);n.Transforms.setNodes(t,{indent:r},{match:function(t){return n.Element.isElement(t)},mode:"highest"});},r}(ph);var gh={renderStyle:function(t,e){if(!n.Element.isElement(t))return e;var r=t.indent,o=e;return r&&xi(o,{textIndent:r}),o},styleToHtml:function(t,e){if(!n.Element.isElement(t))return e;var r=t.indent;if(!r)return e;var o=c.default(e);return o.css("text-indent",r),fo(o)},preParseHtml:[{selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=c.default(t),n=ho(e,"padding-left");return /\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}}],parseStyleHtml:function(t,e,r){var o=c.default(t);if(!n.Element.isElement(e))return e;var i=e,a=ho(o,"text-indent"),u=parseInt(a,10);return a&&u>0&&(i.indent=a),i},menus:[{key:"indent",factory:function(){return new vh}},{key:"delIndent",factory:function(){return new hh}}]},mh=function(){function t(){this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){var r=e.type;return !(!n.Editor.isVoid(t,e)||!n.Editor.isBlock(t,e)||"video"===r)||!!["pre","code"].includes(r)}))},t}(),yh=function(t){function r(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.center"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',n}return Fn(r,t),r.prototype.exec=function(t,e){n.Transforms.setNodes(t,{textAlign:"center"},{match:function(e){return n.Element.isElement(e)&&!t.isInline(e)}});},r}(mh),bh=function(t){function r(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.justify"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',n}return Fn(r,t),r.prototype.exec=function(t,e){n.Transforms.setNodes(t,{textAlign:"justify"},{match:function(e){return n.Element.isElement(e)&&!t.isInline(e)}});},r}(mh),wh=function(t){function r(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.left"),n.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>',n}return Fn(r,t),r.prototype.exec=function(t,e){n.Transforms.setNodes(t,{textAlign:"left"},{match:function(e){return n.Element.isElement(e)&&!t.isInline(e)}});},r}(mh),Sh=function(t){function r(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.right"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',n}return Fn(r,t),r.prototype.exec=function(t,e){n.Transforms.setNodes(t,{textAlign:"right"},{match:function(e){return n.Element.isElement(e)&&!t.isInline(e)}});},r}(mh);var xh={renderStyle:function(t,e){if(!n.Element.isElement(t))return e;var r=t.textAlign,o=e;return r&&xi(o,{textAlign:r}),o},styleToHtml:function(t,e){if(!n.Element.isElement(t))return e;var r=t.textAlign;if(!r)return e;var o=c.default(e);return o.css("text-align",r),fo(o)},parseStyleHtml:function(t,e,r){var o=c.default(t);if(!n.Element.isElement(e))return e;var i=e,a=ho(o,"text-align");return a&&(i.textAlign=a),i},menus:[{key:"justifyLeft",factory:function(){return new wh}},{key:"justifyRight",factory:function(){return new Sh}},{key:"justifyCenter",factory:function(){return new yh}},{key:"justifyJustify",factory:function(){return new bh}}]};var Eh=function(){function t(){this.title=e.t("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 t.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,o=void 0===r?[]:r;n.push({text:e.t("lineHeight.default"),value:""}),o.forEach((function(t){n.push({text:t,value:t});}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected;})),n},t.prototype.getMatchNode=function(t){var r=qn(n.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return !!n.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(n)},universal:!0,mode:"highest"}),1)[0];return null==r?null:r[0]},t.prototype.isActive=function(t){return !1},t.prototype.getValue=function(t){var e=this.getMatchNode(t);return null==e?"":n.Element.isElement(e)&&e.lineHeight||""},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getMatchNode(t)},t.prototype.exec=function(t,e){n.Transforms.setNodes(t,{lineHeight:e.toString()},{mode:"highest"});},t}();var kh={renderStyle:function(t,e){if(!n.Element.isElement(t))return e;var r=t.lineHeight,o=e;return r&&xi(o,{lineHeight:r}),o},styleToHtml:function(t,e){if(!n.Element.isElement(t))return e;var r=t.lineHeight;if(!r)return e;var o=c.default(e);return o.css("line-height",r),fo(o)},parseStyleHtml:function(t,e,r){var o=c.default(t);if(!n.Element.isElement(e))return e;var i=e,a=r.getMenuConfig("lineHeight").lineHeightList,u=void 0===a?[]:a,l=ho(o,"line-height");return l&&u.includes(l)&&(i.lineHeight=l),i},menus:[{key:"lineHeight",factory:function(){return new Eh},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]};var Th={type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target,i=void 0===o?"_blank":o;return '<a href="'.concat(r,'" target="').concat(i,'">').concat(e,"</a>")}};function Mh(t,e,n,r){return Rn(this,void 0,void 0,(function(){var o,i;return $n(this,(function(a){switch(a.label){case 0:return (o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return e.alert(i,"error"),[2,!1];if(null==i)return [2,!1];a.label=2;case 2:return [2,!0]}}))}))}function Ih(t,e,n){return Rn(this,void 0,void 0,(function(){var r;return $n(this,(function(o){switch(o.label){case 0:return (r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return [2,o.sent()];case 2:return [2,n]}}))}))}function Oh(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){var n=e.type;return !!t.isVoid(e)||!!["pre","code","link"].includes(n)}))}function Nh(t,e){return {type:"link",url:Tp(t),children:e?[{text:e}]:[]}}function Hh(t,r,o){return Rn(this,void 0,void 0,(function(){var i,a,u,c,l;return $n(this,(function(s){switch(s.label){case 0:return o?(r||(r=o),t.restoreSelection(),Oh(t)?[2]:[4,Mh("insertLink",t,r,o)]):[2];case 1:return s.sent()?[4,Ih("insertLink",t,o)]:[2];case 2:if(i=s.sent(),null==(a=t.selection))return [2];if(n.Range.isCollapsed(a)){if((c=e.DomEditor.getLeftLengthOfMaxLength(t))<=0)return [2];t.insertText(" "),c<r.length+1&&(r=r.slice(0,c-1)),l=Nh(i,r),n.Transforms.insertNodes(t,l),t.insertFragment([{text:" "}]);}else if((u=n.Editor.string(t,a))!==r){if((c=e.DomEditor.getLeftLengthOfMaxLength(t))<=0)return [2];c<u.length-r.length&&(r=r.slice(0,c)),t.deleteFragment(),l=Nh(i,r),n.Transforms.insertNodes(t,l);}else l=Nh(i),n.Transforms.wrapNodes(t,l,{split:!0}),n.Transforms.collapse(t,{edge:"end"});return [2]}}))}))}function Dh(){return kp("w-e-update-link")}var jh=function(){function t(){this.title=e.t("link.edit"),this.iconSvg=Wn,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=Dh(),this.buttonId=Dh();}return t.prototype.getSelectedLinkElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"link");return null==n?null:n},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return e&&e.url||""},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.getModalPositionNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"link")},t.prototype.getModalContentElem=function(t){var r=this.urlInputId,o=this.buttonId,i=qn(e.genModalInputElems(e.t("link.url"),r),2),a=i[0],u=i[1],l=c.default(u),s=qn(e.genModalButtonElems(o,e.t("common.ok")),1)[0];if(null==this.$content){var f=c.default("<div></div>");f.on("click","#".concat(o),(function(o){o.preventDefault(),t.restoreSelection();var i=e.DomEditor.getSelectedNodeByType(t,"link"),a=i?n.Node.string(i):"",u=f.find("#".concat(r)).val();!function(t,r,o){Rn(this,void 0,void 0,(function(){var i,a;return $n(this,(function(u){switch(u.label){case 0:return o?[4,Mh("editLink",t,r,o)]:[2];case 1:return u.sent()?[4,Ih("editLink",t,o)]:[2];case 2:return i=u.sent(),a={url:Tp(i)},n.Transforms.setNodes(t,a,{match:function(t){return e.DomEditor.checkNodeType(t,"link")}}),[2]}}))}));}(t,a,u),t.hidePanelOrModal();})),this.$content=f;}var d=this.$content;d.empty(),d.append(a),d.append(s);var p=this.getValue(t);return l.val(p),setTimeout((function(){l.focus();})),d[0]},t}();function Lh(){return kp("w-e-insert-link")}var zh=function(){function t(){this.title=e.t("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=Lh(),this.urlInputId=Lh(),this.buttonId=Lh();}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return Oh(t)},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var r=t.selection,o=this,i=o.textInputId,a=o.urlInputId,u=o.buttonId,l=qn(e.genModalInputElems(e.t("link.text"),i),2),s=l[0],f=l[1],d=c.default(f),p=qn(e.genModalInputElems(e.t("link.url"),a),2),h=p[0],v=p[1],g=c.default(v),m=qn(e.genModalButtonElems(u,e.t("common.ok")),1)[0];if(null==this.$content){var y=c.default("<div></div>");y.on("click","#".concat(u),(function(e){e.preventDefault();var n=y.find("#".concat(i)).val(),r=y.find("#".concat(a)).val();Hh(t,n,r),t.hidePanelOrModal();})),this.$content=y;}var b=this.$content;if(b.empty(),b.append(s),b.append(h),b.append(m),null==r||n.Range.isCollapsed(r))d.val("");else {var w=n.Editor.string(t,r);d.val(w);}return g.val(""),setTimeout((function(){d.focus();})),b[0]},t}(),Ph=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||null==e.DomEditor.getSelectedNodeByType(t,"link")},t.prototype.exec=function(t,r){this.isDisabled(t)||n.Transforms.unwrapNodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"link")}});},t}(),Ah=function(){function t(){this.title=e.t("link.view"),this.iconSvg=Gn,this.tag="button";}return t.prototype.getSelectedLinkElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"link");return null==n?null:n},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return e&&e.url||""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){if(!e||"string"!=typeof e)throw new Error("View link failed, link url is '".concat(e,"'"));window.open(e,"_blank");}},t}(),Ch={checkLink:function(t,e){return !0},parseLinkUrl:function(t){return t}};var Vh=function(t){if("string"!=typeof t)return !1;var e=t.match(Fh);if(!e)return !1;var n=e[1];if(!n)return !1;if(Bh.test(n)||Rh.test(n))return !0;return !1},Fh=/^(?:\w+:)?\/\/(\S+)$/,Bh=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Rh=/^[^\s\.]+\.\S{2,}$/;var $h={type:"link",renderElem:function(t,e,n){var r=t,i=r.url,a=r.target,u=void 0===a?"_blank":a;return o.jsx("a",{href:i,target:u},e)}},_h={renderElems:[$h],elemsToHtml:[Th],parseElemsHtml:[{selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,r){var o=c.default(t);return 0===(e=e.filter((function(t){return !!n.Text.isText(t)||!!r.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"link",url:o.attr("href")||"",target:o.attr("target")||"",children:e}}}],menus:[{key:"insertLink",factory:function(){return new zh},config:Ch},{key:"editLink",factory:function(){return new jh},config:Ch},{key:"unLink",factory:function(){return new Ph}},{key:"viewLink",factory:function(){return new Ah}}],editorPlugin:function(t){var r=t.isInline,o=t.insertData,i=t.normalizeNode,a=t;return a.isInline=function(t){return "link"===t.type||r(t)},a.insertData=function(t){var e=t.getData("text/plain");if(Vh(e)){if(/<img[^>]+>/.test(t.getData("text/html")))o(t);else if(!Oh(a)){var r=a.selection;if(null!=r){var i=n.Editor.string(a,r);Hh(a,i,e);}}}else o(t);},a.normalizeNode=function(t){var r=qn(t,2),o=r[0],u=r[1];return "link"!==e.DomEditor.getNodeType(o)?i([o,u]):""===n.Node.string(o)?n.Transforms.removeNodes(a,{at:u}):i([o,u])},a}};function qh(t){var e=qn(n.Editor.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1),r=e[0];if(null==r)return !1;var o=r[0];if(!n.Element.isElement(o))return !1;if("paragraph"===o.type)return !1;if(""!==n.Node.string(o))return !1;var i=o.children,a=void 0===i?[]:i;return !!n.Text.isText(a[0])&&(n.Transforms.setNodes(t,{type:"paragraph"}),!0)}var Wh={renderElems:[{type:"paragraph",renderElem:function(t,e,n){return o.jsx("p",null,e)}}],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return ""===e?"<p><br></p>":"<p>".concat(e,"</p>")}}],parseElemsHtml:[{selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,r){var o=c.default(t);return 0===(e=e.filter((function(t){return !!n.Text.isText(t)||!!r.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}}],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward,r=t;return r.deleteBackward=function(t){qh(r)||e(t);},r.deleteForward=function(t){qh(r)||n(t);},r}};function Gh(t,r){return null==t.selection||!!qn(n.Editor.nodes(t,{match:function(r){return "pre"===e.DomEditor.getNodeType(r)||!!n.Editor.isVoid(t,r)},universal:!0}),1)[0]}function Uh(t,e){Object.keys(e).forEach((function(e){"text"!==e&&n.Editor.removeMark(t,e);}));}var Kh=function(){function t(){this.marksNeedToRemove=[],this.tag="button";}return t.prototype.getValue=function(t){var e=this.mark,r=n.Editor.marks(t);return r?r[e]:!!qn(n.Editor.nodes(t,{match:function(t){return !0===t[e]}}),1)[0]},t.prototype.isActive=function(t){return !!this.getValue(t)},t.prototype.isDisabled=function(t){return Gh(t,this.mark)},t.prototype.exec=function(t,e){var n=this.mark,r=this.marksNeedToRemove;e?t.removeMark(n):(t.addMark(n,!0),r&&r.forEach((function(e){return t.removeMark(e)})));},t}(),Xh=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="bold",n.title=e.t("textStyle.bold"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',n.hotkey="mod+b",n}return Fn(n,t),n}(Kh),Jh=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return Gh(t)},t.prototype.exec=function(t,e){var r,o,i=n.Editor.nodes(t,{match:function(t){return n.Text.isText(t)},universal:!0});try{for(var a=_n(i),u=a.next();!u.done;u=a.next()){Uh(t,u.value[0]);}}catch(t){r={error:t};}finally{try{u&&!u.done&&(o=a.return)&&o.call(a);}finally{if(r)throw r.error}}},t}(),Yh=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="code",n.title=e.t("textStyle.code"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',n.hotkey="mod+e",n}return Fn(n,t),n}(Kh),Qh=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="italic",n.title=e.t("textStyle.italic"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',n.hotkey="mod+i",n}return Fn(n,t),n}(Kh),Zh=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=e.t("textStyle.sub"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',n.hotkey="",n}return Fn(n,t),n}(Kh),tv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=e.t("textStyle.sup"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',n.hotkey="",n}return Fn(n,t),n}(Kh),ev=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="through",n.title=e.t("textStyle.through"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',n.hotkey="mod+shift+x",n}return Fn(n,t),n}(Kh),nv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="underline",n.title=e.t("textStyle.underline"),n.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',n.hotkey="mod+u",n}return Fn(n,t),n}(Kh),rv={key:"bold",factory:function(){return new Xh}},ov={key:"code",factory:function(){return new Yh}},iv={key:"italic",factory:function(){return new Qh}},av={key:"through",factory:function(){return new ev}},uv={key:"underline",factory:function(){return new nv}},cv={key:"sup",factory:function(){return new tv}},lv={key:"sub",factory:function(){return new Zh}},sv={key:"clearStyle",factory:function(){return new Jh}};function fv(t,e){return 0!==t.length&&(!!t[0].matches(e)||t.find(e).length>0)}function dv(t,e){var n=e,r=t,o=r.bold,i=r.italic,a=r.underline,u=r.code,c=r.through,l=r.sub,s=r.sup;return o&&(n="<strong>".concat(n,"</strong>")),u&&(n="<code>".concat(n,"</code>")),i&&(n="<em>".concat(n,"</em>")),a&&(n="<u>".concat(n,"</u>")),c&&(n="<s>".concat(n,"</s>")),l&&(n="<sub>".concat(n,"</sub>")),s&&(n="<sup>".concat(n,"</sup>")),n}Ge({target:"String",proto:!0,forced:Jo("bold")},{bold:function(){return Xo(this,"b","","")}}),Ge({target:"String",proto:!0,forced:Jo("italics")},{italics:function(){return Xo(this,"i","","")}}),Ge({target:"String",proto:!0,forced:Jo("sub")},{sub:function(){return Xo(this,"sub","","")}}),Ge({target:"String",proto:!0,forced:Jo("sup")},{sup:function(){return Xo(this,"sup","","")}});var pv={renderStyle:function(t,e){var n=t,r=n.bold,i=n.italic,a=n.underline,u=n.code,c=n.through,l=n.sub,s=n.sup,f=e;return r&&(f=o.jsx("strong",null,f)),u&&(f=o.jsx("code",null,f)),i&&(f=o.jsx("em",null,f)),a&&(f=o.jsx("u",null,f)),c&&(f=o.jsx("s",null,f)),l&&(f=o.jsx("sub",null,f)),s&&(f=o.jsx("sup",null,f)),f},menus:[rv,uv,iv,av,ov,lv,cv,sv],styleToHtml:function(t,e){if(!n.Text.isText(t))return e;if(so(e))return dv(t,e);var r=c.default(e),o=r.html();return o=dv(t,o),r.html(o),fo(r)},parseStyleHtml:function(t,e,r){var o=c.default(t);if(!n.Text.isText(e))return e;var i=e;return fv(o,"b,strong")&&(i.bold=!0),fv(o,"i,em")&&(i.italic=!0),fv(o,"u")&&(i.underline=!0),fv(o,"s,strike")&&(i.through=!0),fv(o,"sub")&&(i.sub=!0),fv(o,"sup")&&(i.sup=!0),fv(o,"code")&&(i.code=!0),i}};var hv={type:"todo",elemToHtml:function(t,e){var n=t.checked;return '<div data-w-e-type="todo"><input type="checkbox" disabled '.concat(n?"checked":"",">").concat(e,"</div>")}},vv=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !!e.DomEditor.getSelectedNodeByType(t,"todo")},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){if(n.Editor.isVoid(t,e)&&n.Editor.isBlock(t,e))return !0;var r=e.type;return !!["pre","table","list-item"].includes(r)}))},t.prototype.exec=function(t,e){var r=this.isActive(t);n.Transforms.setNodes(t,{type:r?"paragraph":"todo"});},t}();var gv={type:"todo",renderElem:function(t,r,i){var a=!1;i.isDisabled()&&(a=!0);var u=t.checked,c=o.jsx("div",{style:{margin:"5px 0"}},o.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em"}},o.jsx("input",{type:"checkbox",checked:u,disabled:a,on:{change:function(r){var o=e.DomEditor.findPath(i,t),a={checked:r.target.checked};n.Transforms.setNodes(i,a,{at:o});}}})),o.jsx("span",null,r));return c}},mv={renderElems:[gv],elemsToHtml:[hv],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=c.default(t).find("li"),n=c.default('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML+=e[0].innerHTML,n[0]}}],parseElemsHtml:[{selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,r){var o=c.default(t);0===(e=e.filter((function(t){return !!n.Text.isText(t)||!!r.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]);var i=!1;return null!=o.find('input[type="checkbox"]').attr("checked")&&(i=!0),{type:"todo",checked:i,children:e}}}],menus:[{key:"todo",factory:function(){return new vv}}],editorPlugin:function(t){var r=t.deleteBackward,o=t;return o.deleteBackward=function(o){var i=t.selection;if(i&&n.Range.isCollapsed(i)){var a=e.DomEditor.getSelectedNodeByType(t,"todo");if(a&&0===n.Node.string(a).length)return void n.Transforms.setNodes(t,{type:"paragraph"},{mode:"highest"})}r(o);},o}},yv=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection},t.prototype.exec=function(t,e){"function"==typeof t.redo&&t.redo();},t}(),bv=function(){function t(){this.title=e.t("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 t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection},t.prototype.exec=function(t,e){"function"==typeof t.undo&&t.undo();},t}(),wv=[pv,Ei,xd,gh,xh,kh,dh,Oi,Hi,_h,Yo,Eo,Sp,Wh,mv,zd,{menus:[{key:"redo",factory:function(){return new yv}},{key:"undo",factory:function(){return new bv}}]},Ad,Ti];t.default=wv,t.insertImageNode=Np,t.isInsertImageMenuDisabled=Mp,t.updateImageNode=Hp,Object.defineProperty(t,"__esModule",{value:!0});}));
21681
21681
 
21682
21682
  });
21683
21683
 
21684
21684
  var basicModules = /*@__PURE__*/getDefaultExportFromCjs(dist$5);
21685
21685
 
21686
21686
  var dist$4 = createCommonjsModule$1(function (module, exports) {
21687
- !function(t,e){module.exports=e(dist$6,dist$7,require$$2,require$$1);}(commonjsGlobal,(function(t,e,r,n){function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=o(n);t.i18nAddResources("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),t.i18nAddResources("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var u=function(t){try{return !!t()}catch(t){return !0}},a=!u((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),c=Function.prototype,f=c.call,l=a&&c.bind.bind(f,f),s=a?l:function(t){return function(){return f.apply(t,arguments)}},d=s({}.toString),p=s("".slice),v=function(t){return p(d(t),8,-1)},y=Object,h=s("".split),g=u((function(){return !y("z").propertyIsEnumerable(0)}))?function(t){return "String"===v(t)?h(t,""):y(t)}:y,b=function(t){return null==t},m=TypeError,w=function(t){if(b(t))throw new m("Can't call method on "+t);return t},x=function(t){return g(w(t))},O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function S(t){var e={exports:{}};return t(e,e.exports),e.exports}var E,T,j=function(t){return t&&t.Math===Math&&t},A=j("object"==typeof globalThis&&globalThis)||j("object"==typeof window&&window)||j("object"==typeof self&&self)||j("object"==typeof O&&O)||j("object"==typeof O&&O)||function(){return this}()||Function("return this")(),P=Object.defineProperty,I=function(t,e){try{P(A,t,{value:e,configurable:!0,writable:!0});}catch(r){A[t]=e;}return e},R=S((function(t){var e="__core-js_shared__",r=t.exports=A[e]||I(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),L=function(t,e){return R[t]||(R[t]=e||{})},k=Object,N=function(t){return k(w(t))},M=s({}.hasOwnProperty),z=Object.hasOwn||function(t,e){return M(N(t),e)},_=0,D=Math.random(),C=s(1..toString),F=function(t){return "Symbol("+(void 0===t?"":t)+")_"+C(++_+D,36)},B=A.navigator,H=B&&B.userAgent,$=H?String(H):"",G=A.process,V=A.Deno,W=G&&G.versions||V&&V.version,U=W&&W.v8;U&&(T=(E=U.split("."))[0]>0&&E[0]<4?1:+(E[0]+E[1])),!T&&$&&(!(E=$.match(/Edge\/(\d+)/))||E[1]>=74)&&(E=$.match(/Chrome\/(\d+)/))&&(T=+E[1]);var q,K=T,Y=A.String,X=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol("symbol detection");return !Y(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&K&&K<41})),J=X&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Q=A.Symbol,Z=L("wks"),tt=J?Q.for||Q:Q&&Q.withoutSetter||F,et=function(t){return z(Z,t)||(Z[t]=X&&z(Q,t)?Q[t]:tt("Symbol."+t)),Z[t]},rt="object"==typeof document&&document.all,nt=void 0===rt&&void 0!==rt?function(t){return "function"==typeof t||t===rt}:function(t){return "function"==typeof t},ot=function(t){return "object"==typeof t?null!==t:nt(t)},it=String,ut=TypeError,at=function(t){if(ot(t))return t;throw new ut(it(t)+" is not an object")},ct=!u((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),ft=ct&&u((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),lt=A.document,st=ot(lt)&&ot(lt.createElement),dt=function(t){return st?lt.createElement(t):{}},pt=!ct&&!u((function(){return 7!==Object.defineProperty(dt("div"),"a",{get:function(){return 7}}).a})),vt=Function.prototype.call,yt=a?vt.bind(vt):function(){return vt.apply(vt,arguments)},ht=function(t,e){return arguments.length<2?(r=A[t],nt(r)?r:void 0):A[t]&&A[t][e];var r;},gt=s({}.isPrototypeOf),bt=Object,mt=J?function(t){return "symbol"==typeof t}:function(t){var e=ht("Symbol");return nt(e)&&gt(e.prototype,bt(t))},wt=String,xt=function(t){try{return wt(t)}catch(t){return "Object"}},Ot=TypeError,St=function(t){if(nt(t))return t;throw new Ot(xt(t)+" is not a function")},Et=function(t,e){var r=t[e];return b(r)?void 0:St(r)},Tt=TypeError,jt=TypeError,At=et("toPrimitive"),Pt=function(t,e){if(!ot(t)||mt(t))return t;var r,n=Et(t,At);if(n){if(void 0===e&&(e="default"),r=yt(n,t,e),!ot(r)||mt(r))return r;throw new jt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&nt(r=t.toString)&&!ot(n=yt(r,t)))return n;if(nt(r=t.valueOf)&&!ot(n=yt(r,t)))return n;if("string"!==e&&nt(r=t.toString)&&!ot(n=yt(r,t)))return n;throw new Tt("Can't convert object to primitive value")}(t,e)},It=function(t){var e=Pt(t,"string");return mt(e)?e:e+""},Rt=TypeError,Lt=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Nt="enumerable",Mt="configurable",zt="writable",_t={f:ct?ft?function(t,e,r){if(at(t),e=It(e),at(r),"function"==typeof t&&"prototype"===e&&"value"in r&&zt in r&&!r[zt]){var n=kt(t,e);n&&n[zt]&&(t[e]=r.value,r={configurable:Mt in r?r[Mt]:n[Mt],enumerable:Nt in r?r[Nt]:n[Nt],writable:!1});}return Lt(t,e,r)}:Lt:function(t,e,r){if(at(t),e=It(e),at(r),pt)try{return Lt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new Rt("Accessors not supported");return "value"in r&&(t[e]=r.value),t}},Dt=Math.ceil,Ct=Math.floor,Ft=Math.trunc||function(t){var e=+t;return (e>0?Ct:Dt)(e)},Bt=function(t){var e=+t;return e!=e||0===e?0:Ft(e)},Ht=Math.max,$t=Math.min,Gt=Math.min,Vt=function(t){var e=Bt(t);return e>0?Gt(e,9007199254740991):0},Wt=function(t){return Vt(t.length)},Ut=function(t){return function(e,r,n){var o=x(e),i=Wt(o);if(0===i)return !t&&-1;var u,a=function(t,e){var r=Bt(t);return r<0?Ht(r+e,0):$t(r,e)}(n,i);if(t&&r!=r){for(;i>a;)if((u=o[a++])!=u)return !0}else for(;i>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return !t&&-1}},qt={includes:Ut(!0),indexOf:Ut(!1)},Kt={},Yt=qt.indexOf,Xt=s([].push),Jt=function(t,e){var r,n=x(t),o=0,i=[];for(r in n)!z(Kt,r)&&z(n,r)&&Xt(i,r);for(;e.length>o;)z(n,r=e[o++])&&(~Yt(i,r)||Xt(i,r));return i},Qt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Zt=Object.keys||function(t){return Jt(t,Qt)},te=ct&&!ft?Object.defineProperties:function(t,e){at(t);for(var r,n=x(e),o=Zt(e),i=o.length,u=0;i>u;)_t.f(t,r=o[u++],n[r]);return t},ee={f:te},re=ht("document","documentElement"),ne=L("keys"),oe=function(t){return ne[t]||(ne[t]=F(t))},ie="prototype",ue="script",ae=oe("IE_PROTO"),ce=function(){},fe=function(t){return "<"+ue+">"+t+"</"+ue+">"},le=function(t){t.write(fe("")),t.close();var e=t.parentWindow.Object;return t=null,e},se=function(){try{q=new ActiveXObject("htmlfile");}catch(t){}var t,e,r;se="undefined"!=typeof document?document.domain&&q?le(q):(e=dt("iframe"),r="java"+ue+":",e.style.display="none",re.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(fe("document.F=Object")),t.close(),t.F):le(q);for(var n=Qt.length;n--;)delete se[ie][Qt[n]];return se()};Kt[ae]=!0;var de=Object.create||function(t,e){var r;return null!==t?(ce[ie]=at(t),r=new ce,ce[ie]=null,r[ae]=t):r=se(),void 0===e?r:ee.f(r,e)},pe=_t.f,ve=et("unscopables"),ye=Array.prototype;void 0===ye[ve]&&pe(ye,ve,{configurable:!0,value:de(null)});var he,ge,be,me=function(t){ye[ve][t]=!0;},we={},xe=A.WeakMap,Oe=nt(xe)&&/native code/.test(String(xe)),Se=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ee=ct?function(t,e,r){return _t.f(t,e,Se(1,r))}:function(t,e,r){return t[e]=r,t},Te="Object already initialized",je=A.TypeError,Ae=A.WeakMap;if(Oe||R.state){var Pe=R.state||(R.state=new Ae);Pe.get=Pe.get,Pe.has=Pe.has,Pe.set=Pe.set,he=function(t,e){if(Pe.has(t))throw new je(Te);return e.facade=t,Pe.set(t,e),e},ge=function(t){return Pe.get(t)||{}},be=function(t){return Pe.has(t)};}else {var Ie=oe("state");Kt[Ie]=!0,he=function(t,e){if(z(t,Ie))throw new je(Te);return e.facade=t,Ee(t,Ie,e),e},ge=function(t){return z(t,Ie)?t[Ie]:{}},be=function(t){return z(t,Ie)};}var Re={set:he,get:ge,has:be,enforce:function(t){return be(t)?ge(t):he(t,{})},getterFor:function(t){return function(e){var r;if(!ot(e)||(r=ge(e)).type!==t)throw new je("Incompatible receiver, "+t+" required");return r}}},Le={}.propertyIsEnumerable,ke=Object.getOwnPropertyDescriptor,Ne={f:ke&&!Le.call({1:2},1)?function(t){var e=ke(this,t);return !!e&&e.enumerable}:Le},Me=Object.getOwnPropertyDescriptor,ze={f:ct?Me:function(t,e){if(t=x(t),e=It(e),pt)try{return Me(t,e)}catch(t){}if(z(t,e))return Se(!yt(Ne.f,t,e),t[e])}},_e=Function.prototype,De=ct&&Object.getOwnPropertyDescriptor,Ce=z(_e,"name"),Fe={EXISTS:Ce,PROPER:Ce&&"something"===function(){}.name,CONFIGURABLE:Ce&&(!ct||ct&&De(_e,"name").configurable)},Be=s(Function.toString);nt(R.inspectSource)||(R.inspectSource=function(t){return Be(t)});var He,$e,Ge,Ve=R.inspectSource,We=S((function(t){var e=Fe.CONFIGURABLE,r=Re.enforce,n=Re.get,o=String,i=Object.defineProperty,a=s("".slice),c=s("".replace),f=s([].join),l=ct&&!u((function(){return 8!==i((function(){}),"length",{value:8}).length})),d=String(String).split("String"),p=t.exports=function(t,n,u){"Symbol("===a(o(n),0,7)&&(n="["+c(o(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),u&&u.getter&&(n="get "+n),u&&u.setter&&(n="set "+n),(!z(t,"name")||e&&t.name!==n)&&(ct?i(t,"name",{value:n,configurable:!0}):t.name=n),l&&u&&z(u,"arity")&&t.length!==u.arity&&i(t,"length",{value:u.arity});try{u&&z(u,"constructor")&&u.constructor?ct&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var s=r(t);return z(s,"source")||(s.source=f(d,"string"==typeof n?n:"")),t};Function.prototype.toString=p((function(){return nt(this)&&n(this).source||Ve(this)}),"toString");})),Ue=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(nt(r)&&We(r,i,n),n.global)o?t[e]=r:I(e,r);else {try{n.unsafe?t[e]&&(o=!0):delete t[e];}catch(t){}o?t[e]=r:_t.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable});}return t},qe=Qt.concat("length","prototype"),Ke={f:Object.getOwnPropertyNames||function(t){return Jt(t,qe)}},Ye={f:Object.getOwnPropertySymbols},Xe=s([].concat),Je=ht("Reflect","ownKeys")||function(t){var e=Ke.f(at(t)),r=Ye.f;return r?Xe(e,r(t)):e},Qe=function(t,e,r){for(var n=Je(e),o=_t.f,i=ze.f,u=0;u<n.length;u++){var a=n[u];z(t,a)||r&&z(r,a)||o(t,a,i(e,a));}},Ze=/#|\.prototype\./,tr=function(t,e){var r=rr[er(t)];return r===or||r!==nr&&(nt(e)?u(e):!!e)},er=tr.normalize=function(t){return String(t).replace(Ze,".").toLowerCase()},rr=tr.data={},nr=tr.NATIVE="N",or=tr.POLYFILL="P",ir=tr,ur=ze.f,ar=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?A:f?A[a]||I(a,{}):A[a]&&A[a].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=ur(r,n))&&u.value:r[n],!ir(c?n:a+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Qe(i,o);}(t.sham||o&&o.sham)&&Ee(i,"sham",!0),Ue(r,n,i,t);}},cr=!u((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),fr=oe("IE_PROTO"),lr=Object,sr=lr.prototype,dr=cr?lr.getPrototypeOf:function(t){var e=N(t);if(z(e,fr))return e[fr];var r=e.constructor;return nt(r)&&e instanceof r?r.prototype:e instanceof lr?sr:null},pr=et("iterator"),vr=!1;[].keys&&("next"in(Ge=[].keys())?($e=dr(dr(Ge)))!==Object.prototype&&(He=$e):vr=!0);var yr=!ot(He)||u((function(){var t={};return He[pr].call(t)!==t}));yr&&(He={}),nt(He[pr])||Ue(He,pr,(function(){return this}));var hr={IteratorPrototype:He,BUGGY_SAFARI_ITERATORS:vr},gr=_t.f,br=et("toStringTag"),mr=function(t,e,r){t&&!r&&(t=t.prototype),t&&!z(t,br)&&gr(t,br,{configurable:!0,value:e});},wr=hr.IteratorPrototype,xr=function(){return this},Or=String,Sr=TypeError,Er=function(t){if(function(t){return ot(t)||null===t}(t))return t;throw new Sr("Can't set "+Or(t)+" as a prototype")},Tr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=function(t,e,r){try{return s(St(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array;}catch(t){}return function(r,n){return w(r),Er(n),ot(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),jr=Fe.PROPER,Ar=Fe.CONFIGURABLE,Pr=hr.IteratorPrototype,Ir=hr.BUGGY_SAFARI_ITERATORS,Rr=et("iterator"),Lr="keys",kr="values",Nr="entries",Mr=function(){return this},zr=function(t,e,r,n,o,i,u){!function(t,e,r,n){var o=e+" Iterator";t.prototype=de(wr,{next:Se(+!n,r)}),mr(t,o,!1),we[o]=xr;}(r,e,n);var a,c,f,l=function(t){if(t===o&&y)return y;if(!Ir&&t&&t in p)return p[t];switch(t){case Lr:case kr:case Nr:return function(){return new r(this,t)}}return function(){return new r(this)}},s=e+" Iterator",d=!1,p=t.prototype,v=p[Rr]||p["@@iterator"]||o&&p[o],y=!Ir&&v||l(o),h="Array"===e&&p.entries||v;if(h&&(a=dr(h.call(new t)))!==Object.prototype&&a.next&&(dr(a)!==Pr&&(Tr?Tr(a,Pr):nt(a[Rr])||Ue(a,Rr,Mr)),mr(a,s,!0)),jr&&o===kr&&v&&v.name!==kr&&(Ar?Ee(p,"name",kr):(d=!0,y=function(){return yt(v,this)})),o)if(c={values:l(kr),keys:i?y:l(Lr),entries:l(Nr)},u)for(f in c)(Ir||d||!(f in p))&&Ue(p,f,c[f]);else ar({target:e,proto:!0,forced:Ir||d},c);return p[Rr]!==y&&Ue(p,Rr,y,{name:o}),we[e]=y,c},_r=function(t,e){return {value:t,done:e}},Dr=_t.f,Cr="Array Iterator",Fr=Re.set,Br=Re.getterFor(Cr),Hr=zr(Array,"Array",(function(t,e){Fr(this,{type:Cr,target:x(t),index:0,kind:e});}),(function(){var t=Br(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,_r(void 0,!0);switch(t.kind){case"keys":return _r(r,!1);case"values":return _r(e[r],!1)}return _r([r,e[r]],!1)}),"values"),$r=we.Arguments=we.Array;if(me("keys"),me("values"),me("entries"),ct&&"values"!==$r.name)try{Dr($r,"name",{value:"values"});}catch(t){}var Gr={};Gr[et("toStringTag")]="z";var Vr="[object z]"===String(Gr),Wr=et("toStringTag"),Ur=Object,qr="Arguments"===v(function(){return arguments}()),Kr=Vr?v:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Ur(t),Wr))?r:qr?v(e):"Object"===(n=v(e))&&nt(e.callee)?"Arguments":n},Yr=Vr?{}.toString:function(){return "[object "+Kr(this)+"]"};Vr||Ue(Object.prototype,"toString",Yr,{unsafe:!0});var Xr=String,Jr=function(t){if("Symbol"===Kr(t))throw new TypeError("Cannot convert a Symbol value to a string");return Xr(t)},Qr=s("".charAt),Zr=s("".charCodeAt),tn=s("".slice),en=function(t){return function(e,r){var n,o,i=Jr(w(e)),u=Bt(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=Zr(i,u))<55296||n>56319||u+1===a||(o=Zr(i,u+1))<56320||o>57343?t?Qr(i,u):n:t?tn(i,u,u+2):o-56320+(n-55296<<10)+65536}},rn={codeAt:en(!1),charAt:en(!0)},nn=rn.charAt,on="String Iterator",un=Re.set,an=Re.getterFor(on);zr(String,"String",(function(t){un(this,{type:on,string:Jr(t),index:0});}),(function(){var t,e=an(this),r=e.string,n=e.index;return n>=r.length?_r(void 0,!0):(t=nn(r,n),e.index+=t.length,_r(t,!1))}));var cn=!u((function(){return Object.isExtensible(Object.preventExtensions({}))})),fn=function(t,e,r){for(var n in e)Ue(t,n,e[n],r);return t},ln=s([].slice),sn=Ke.f,dn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],pn={f:function(t){return dn&&"Window"===v(t)?function(t){try{return sn(t)}catch(t){return ln(dn)}}(t):sn(x(t))}},vn=u((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8});}})),yn=Object.isExtensible,hn=u((function(){yn(1);}))||vn?function(t){return !!ot(t)&&((!vn||"ArrayBuffer"!==v(t))&&(!yn||yn(t)))}:yn,gn=S((function(t){var e=_t.f,r=!1,n=F("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}});},u=t.exports={enable:function(){u.enable=function(){},r=!0;var t=Ke.f,e=s([].splice),o={};o[n]=1,t(o).length&&(Ke.f=function(r){for(var o=t(r),i=0,u=o.length;i<u;i++)if(o[i]===n){e(o,i,1);break}return o},ar({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:pn.f}));},fastKey:function(t,e){if(!ot(t))return "symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!z(t,n)){if(!hn(t))return "F";if(!e)return "E";i(t);}return t[n].objectID},getWeakData:function(t,e){if(!z(t,n)){if(!hn(t))return !0;if(!e)return !1;i(t);}return t[n].weakData},onFreeze:function(t){return cn&&r&&hn(t)&&!z(t,n)&&i(t),t}};Kt[n]=!0;})),bn=function(t){if("Function"===v(t))return s(t)},mn=bn(bn.bind),wn=function(t,e){return St(t),void 0===e?t:a?mn(t,e):function(){return t.apply(e,arguments)}},xn=et("iterator"),On=Array.prototype,Sn=et("iterator"),En=function(t){if(!b(t))return Et(t,Sn)||Et(t,"@@iterator")||we[Kr(t)]},Tn=TypeError,jn=function(t,e,r){var n,o;at(t);try{if(!(n=Et(t,"return"))){if("throw"===e)throw r;return r}n=yt(n,t);}catch(t){o=!0,n=t;}if("throw"===e)throw r;if(o)throw n;return at(n),r},An=TypeError,Pn=function(t,e){this.stopped=t,this.result=e;},In=Pn.prototype,Rn=function(t,e,r){var n,o,i,u,a,c,f,l,s=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),v=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),h=wn(e,s),g=function(t){return n&&jn(n,"normal",t),new Pn(!0,t)},b=function(t){return d?(at(t),y?h(t[0],t[1],g):h(t[0],t[1])):y?h(t,g):h(t)};if(p)n=t.iterator;else if(v)n=t;else {if(!(o=En(t)))throw new An(xt(t)+" is not iterable");if(void 0!==(l=o)&&(we.Array===l||On[xn]===l)){for(i=0,u=Wt(t);u>i;i++)if((a=b(t[i]))&&gt(In,a))return a;return new Pn(!1)}n=function(t,e){var r=arguments.length<2?En(t):e;if(St(r))return at(yt(r,t));throw new Tn(xt(t)+" is not iterable")}(t,o);}for(c=p?t.next:n.next;!(f=yt(c,n)).done;){try{a=b(f.value);}catch(t){jn(n,"throw",t);}if("object"==typeof a&&a&&gt(In,a))return a}return new Pn(!1)},Ln=TypeError,kn=function(t,e){if(gt(e,t))return t;throw new Ln("Incorrect invocation")},Nn=et("iterator"),Mn=!1;try{var zn=0,_n={next:function(){return {done:!!zn++}},return:function(){Mn=!0;}};_n[Nn]=function(){return this},Array.from(_n,(function(){throw 2}));}catch(t){}var Dn=Array.isArray||function(t){return "Array"===v(t)},Cn=function(){},Fn=ht("Reflect","construct"),Bn=/^\s*(?:class|function)\b/,Hn=s(Bn.exec),$n=!Bn.test(Cn),Gn=function(t){if(!nt(t))return !1;try{return Fn(Cn,[],t),!0}catch(t){return !1}},Vn=function(t){if(!nt(t))return !1;switch(Kr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return $n||!!Hn(Bn,Ve(t))}catch(t){return !0}};Vn.sham=!0;var Wn=!Fn||u((function(){var t;return Gn(Gn.call)||!Gn(Object)||!Gn((function(){t=!0;}))||t}))?Vn:Gn,Un=et("species"),qn=Array,Kn=function(t,e){return new(function(t){var e;return Dn(t)&&(e=t.constructor,(Wn(e)&&(e===qn||Dn(e.prototype))||ot(e)&&null===(e=e[Un]))&&(e=void 0)),void 0===e?qn:e}(t))(0===e?0:e)},Yn=s([].push),Xn=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,f,l,s){for(var d,p,v=N(c),y=g(v),h=Wt(y),b=wn(f,l),m=0,w=s||Kn,x=e?w(c,h):r||u?w(c,0):void 0;h>m;m++)if((a||m in y)&&(p=b(d=y[m],m,v),t))if(e)x[m]=p;else if(p)switch(t){case 3:return !0;case 5:return d;case 6:return m;case 2:Yn(x,d);}else switch(t){case 4:return !1;case 7:Yn(x,d);}return i?-1:n||o?o:x}},Jn={forEach:Xn(0),map:Xn(1),filter:Xn(2),some:Xn(3),every:Xn(4),find:Xn(5),findIndex:Xn(6),filterReject:Xn(7)},Qn=gn.getWeakData,Zn=Re.set,to=Re.getterFor,eo=Jn.find,ro=Jn.findIndex,no=s([].splice),oo=0,io=function(t){return t.frozen||(t.frozen=new uo)},uo=function(){this.entries=[];},ao=function(t,e){return eo(t.entries,(function(t){return t[0]===e}))};uo.prototype={get:function(t){var e=ao(this,t);if(e)return e[1]},has:function(t){return !!ao(this,t)},set:function(t,e){var r=ao(this,t);r?r[1]=e:this.entries.push([t,e]);},delete:function(t){var e=ro(this.entries,(function(e){return e[0]===t}));return ~e&&no(this.entries,e,1),!!~e}};var co,fo={getConstructor:function(t,e,r,n){var o=t((function(t,o){kn(t,i),Zn(t,{type:e,id:oo++,frozen:null}),b(o)||Rn(o,t[n],{that:t,AS_ENTRIES:r});})),i=o.prototype,u=to(e),a=function(t,e,r){var n=u(t),o=Qn(at(e),!0);return !0===o?io(n).set(e,r):o[n.id]=r,t};return fn(i,{delete:function(t){var e=u(this);if(!ot(t))return !1;var r=Qn(t);return !0===r?io(e).delete(t):r&&z(r,e.id)&&delete r[e.id]},has:function(t){var e=u(this);if(!ot(t))return !1;var r=Qn(t);return !0===r?io(e).has(t):r&&z(r,e.id)}}),fn(i,r?{get:function(t){var e=u(this);if(ot(t)){var r=Qn(t);if(!0===r)return io(e).get(t);if(r)return r[e.id]}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},lo=Re.enforce,so=Object,po=Array.isArray,vo=so.isExtensible,yo=so.isFrozen,ho=so.isSealed,go=so.freeze,bo=so.seal,mo=!A.ActiveXObject&&"ActiveXObject"in A,wo=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},xo=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=A[t],c=a&&a.prototype,f=a,l={},d=function(t){var e=s(c[t]);Ue(c,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return !(o&&!ot(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!ot(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return !(o&&!ot(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this});};if(ir(t,!nt(a)||!(o||c.forEach&&!u((function(){(new a).entries().next();})))))f=r.getConstructor(e,t,n,i),gn.enable();else if(ir(t,!0)){var p=new f,v=p[i](o?{}:-0,1)!==p,y=u((function(){p.has(1);})),h=function(t,e){try{if(!e&&!Mn)return !1}catch(t){return !1}var r=!1;try{var n={};n[Nn]=function(){return {next:function(){return {done:r=!0}}}},t(n);}catch(t){}return r}((function(t){new a(t);})),g=!o&&u((function(){for(var t=new a,e=5;e--;)t[i](e,e);return !t.has(-0)}));h||((f=e((function(t,e){kn(t,c);var r=function(t,e,r){var n,o;return Tr&&nt(n=e.constructor)&&n!==r&&ot(o=n.prototype)&&o!==r.prototype&&Tr(t,o),t}(new a,t,f);return b(e)||Rn(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=c,c.constructor=f),(y||g)&&(d("delete"),d("has"),n&&d("get")),(g||v)&&d(i),o&&c.clear&&delete c.clear;}return l[t]=f,ar({global:!0,constructor:!0,forced:f!==a},l),mr(f,t),o||r.setStrong(f,t,n),f}("WeakMap",wo,fo),Oo=xo.prototype,So=s(Oo.set);if(Oe)if(mo){co=fo.getConstructor(wo,"WeakMap",!0),gn.enable();var Eo=s(Oo.delete),To=s(Oo.has),jo=s(Oo.get);fn(Oo,{delete:function(t){if(ot(t)&&!vo(t)){var e=lo(this);return e.frozen||(e.frozen=new co),Eo(this,t)||e.frozen.delete(t)}return Eo(this,t)},has:function(t){if(ot(t)&&!vo(t)){var e=lo(this);return e.frozen||(e.frozen=new co),To(this,t)||e.frozen.has(t)}return To(this,t)},get:function(t){if(ot(t)&&!vo(t)){var e=lo(this);return e.frozen||(e.frozen=new co),To(this,t)?jo(this,t):e.frozen.get(t)}return jo(this,t)},set:function(t,e){if(ot(t)&&!vo(t)){var r=lo(this);r.frozen||(r.frozen=new co),To(this,t)?So(this,t,e):r.frozen.set(t,e);}else So(this,t,e);return this}});}else cn&&u((function(){var t=go([]);return So(new xo,t,1),!yo(t)}))&&fn(Oo,{set:function(t,e){var r;return po(t)&&(yo(t)?r=go:ho(t)&&(r=bo)),So(this,t,e),r&&r(t),this}});var Ao={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},Po=dt("span").classList,Io=Po&&Po.constructor&&Po.constructor.prototype,Ro=Io===Object.prototype?void 0:Io,Lo=et("iterator"),ko=Hr.values,No=function(t,e){if(t){if(t[Lo]!==ko)try{Ee(t,Lo,ko);}catch(e){t[Lo]=ko;}if(mr(t,e,!0),Ao[e])for(var r in Hr)if(t[r]!==Hr[r])try{Ee(t,r,Hr[r]);}catch(e){t[r]=Hr[r];}}};for(var Mo in Ao)No(A[Mo]&&A[Mo].prototype,Mo);No(Ro,"DOMTokenList");var zo=new WeakMap;function _o(t){var r,n=t.children||[],o=n.length;if(0===o)return "";for(var i=0;i<o&&!r;i++){var u=n[i];e.Text.isText(u)&&(r=u);}return null==r?"":r.color||""}var Do={type:"list-item",renderElem:function(n,o,i){zo.set(n,i);var u=n,a=u.level,c=void 0===a?0:a,f=u.ordered,l={margin:"5px 0 5px "+20*c+"px"},s="";if(void 0!==f&&f){var d=function(r,n){var o=n,i=o.type,u=o.level,a=void 0===u?0:u,c=o.ordered,f=void 0!==c&&c,l=1,s=n,d=t.DomEditor.findPath(r,s);if(0===d[0])return 1;for(;d[0]>0;){var p=e.Path.previous(d),v=e.Editor.node(r,p);if(null==v)break;var y=v[0],h=y.level,g=void 0===h?0:h,b=y.type,m=y.ordered;if(b!==i)break;if(g<a)break;if(g===a){if(m!==f)break;l++;}s=y,d=p;}return l}(i,n);s=d+".";}else s=function(t){void 0===t&&(t=0);var e="";switch(t){case 0:e="•";break;case 1:e="◦";break;default:e="▪";}return e}(c);var p=_o(n);return r.jsx("div",{style:l},r.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em",color:p},"data-w-e-reserve":!0},s),r.jsx("span",null,o))}},Co=function(t,e){return Co=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);},Co(t,e)};function Fo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t;}Co(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r);}function Bo(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ho(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value);}catch(t){o={error:t};}finally{try{n&&!n.done&&(r=i.return)&&r.call(i);}finally{if(o)throw o.error}}return u}function $o(r,n,o){for(var i=n.type,u=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);}return r}(n,["type"]),a=void 0!==o?o:u.level||0,c=t.DomEditor.findPath(r,n),f=c;;){if(0===f.length||0===c[c.length-1])return null;f=e.Path.previous(f);var l=e.Editor.node(r,f);if(!l)return null;var s=Ho(l,1)[0],d=s.level,p=void 0===d?0:d;if(t.DomEditor.getNodeType(s)!==i)return null;if(p===a)return s}}function Go(t,e,r){var n=$o(t,e,r);return !!n&&n.ordered===e.ordered}function Vo(r){return e.Editor.nodes(r,{at:r.selection||void 0,match:function(e){return 1===t.DomEditor.findPath(r,e).length}})}"function"==typeof SuppressedError&&SuppressedError;var Wo=qt.includes,Uo=u((function(){return !Array(1).includes()}));ar({target:"Array",proto:!0,forced:Uo},{includes:function(t){return Wo(this,t,arguments.length>1?arguments[1]:void 0)}}),me("includes");var qo,Ko,Yo=function(){var t=at(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Xo=A.RegExp,Jo=u((function(){var t=Xo("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),Qo=Jo||u((function(){return !Xo("a","y").sticky})),Zo={BROKEN_CARET:Jo||u((function(){var t=Xo("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:Qo,UNSUPPORTED_Y:Jo},ti=A.RegExp,ei=u((function(){var t=ti(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)})),ri=A.RegExp,ni=u((function(){var t=ri("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),oi=Re.get,ii=L("native-string-replace",String.prototype.replace),ui=RegExp.prototype.exec,ai=ui,ci=s("".charAt),fi=s("".indexOf),li=s("".replace),si=s("".slice),di=(Ko=/b*/g,yt(ui,qo=/a/,"a"),yt(ui,Ko,"a"),0!==qo.lastIndex||0!==Ko.lastIndex),pi=Zo.BROKEN_CARET,vi=void 0!==/()??/.exec("")[1];(di||vi||pi||ei||ni)&&(ai=function(t){var e,r,n,o,i,u,a,c=this,f=oi(c),l=Jr(t),s=f.raw;if(s)return s.lastIndex=c.lastIndex,e=yt(ai,s,l),c.lastIndex=s.lastIndex,e;var d=f.groups,p=pi&&c.sticky,v=yt(Yo,c),y=c.source,h=0,g=l;if(p&&(v=li(v,"y",""),-1===fi(v,"g")&&(v+="g"),g=si(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==ci(l,c.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,h++),r=new RegExp("^(?:"+y+")",v)),vi&&(r=new RegExp("^"+y+"$(?!\\s)",v)),di&&(n=c.lastIndex),o=yt(ui,p?r:c,g),p?o?(o.input=si(o.input,h),o[0]=si(o[0],h),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:di&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),vi&&o&&o.length>1&&yt(ii,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0);})),o&&d)for(o.groups=u=de(null),i=0;i<d.length;i++)u[(a=d[i])[0]]=o[a[1]];return o});var yi=ai;ar({target:"RegExp",proto:!0,forced:/./.exec!==yi},{exec:yi});var hi=function(){function r(){this.type="list-item",this.tag="button";}return r.prototype.getListNode=function(e){var r=this.type;return t.DomEditor.getSelectedNodeByType(e,r)},r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){var e=this.getListNode(t);if(null==e)return !1;var r=e.ordered;return (void 0!==r&&r)===this.ordered},r.prototype.isDisabled=function(r){return null==r.selection||!!t.DomEditor.getSelectedElems(r).some((function(t){if(e.Editor.isVoid(r,t)&&e.Editor.isBlock(r,t))return !0;var n=t.type;return !!["pre","code","table"].includes(n)||void 0}))},r.prototype.exec=function(t,r){this.isActive(t)?e.Transforms.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):e.Transforms.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0});},r}(),gi=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.ordered=!1,r.title=t.t("listModule.unOrderedList"),r.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',r}return Fo(r,e),r}(hi),bi=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.ordered=!0,r.title=t.t("listModule.orderedList"),r.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',r}return Fo(r,e),r}(hi),mi={key:"bulletedList",factory:function(){return new gi}},wi={key:"numberedList",factory:function(){return new bi}};var xi=[];var Oi,Si={type:"list-item",elemToHtml:function(r,n){var o="",i="",u=r.ordered,a=void 0!==u&&u?"ol":"ul",c=function(r){var n=zo.get(r);if(null==n)return 0;var o=r,i=o.type,u=o.ordered,a=void 0!==u&&u,c=o.level,f=void 0===c?0:c,l=t.DomEditor.findPath(n,r);if(0===l[0])return f+1;var s=e.Path.previous(l),d=e.Editor.node(n,s);if(!d)return 0;var p=Ho(d,1)[0];if(t.DomEditor.getNodeType(p)!==i)return f+1;var v=p,y=v.ordered,h=void 0!==y&&y,g=v.level,b=void 0===g?0:g;return b<f?f-b:b>f?Go(n,r)?0:1:b===f?h===a?0:1:0}(r);if(c>0)for(var f=0;f<c;f++)o+="<"+a+">",xi.push(a);var l=function(r){var n=zo.get(r);if(null==n)return 0;var o=r,i=o.type,u=o.ordered,a=void 0!==u&&u,c=o.level,f=void 0===c?0:c,l=t.DomEditor.findPath(n,r);if(l[0]===n.children.length-1)return f+1;var s=e.Path.next(l),d=e.Editor.node(n,s);if(!d)return 0;var p=Ho(d,1)[0];if(t.DomEditor.getNodeType(p)!==i)return f+1;var v=p,y=v.ordered,h=void 0!==y&&y,g=v.level,b=void 0===g?0:g;return b<f?Go(n,p)?f-b:f-b+1:b>f?0:b===f?h===a?0:1:0}(r);if(l>0)for(f=0;f<l;f++){i+="</"+xi.pop()+">";}var s=_o(r);return {html:"<li"+(s?' style="color:'+s+'"':"")+">"+n+"</li>",prefix:o,suffix:i}}},Ei=et("species"),Ti=Jn.filter,ji=(Oi="filter",K>=51||!u((function(){var t=[];return (t.constructor={})[Ei]=function(){return {foo:1}},1!==t[Oi](Boolean).foo})));ar({target:"Array",proto:!0,forced:!ji},{filter:function(t){return Ti(this,t,arguments.length>1?arguments[1]:void 0)}});var Ai=TypeError,Pi=function(t){if(t>9007199254740991)throw Ai("Maximum allowed index exceeded");return t},Ii=function(t,e,r,n,o,i,u,a){for(var c,f,l=o,s=0,d=!!u&&wn(u,a);s<n;)s in r&&(c=d?d(r[s],s,e):r[s],i>0&&Dn(c)?(f=Wt(c),l=Ii(t,e,c,f,l,i-1)-1):(Pi(l+1),t[l]=c),l++),s++;return l},Ri=Ii;ar({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=N(this),r=Wt(e),n=Kn(e,0);return n.length=Ri(n,e,e,r,0,void 0===t?1:Bt(t)),n}}),me("flat");var Li=Function.prototype,ki=Li.apply,Ni=Li.call,Mi="object"==typeof Reflect&&Reflect.apply||(a?Ni.bind(ki):function(){return Ni.apply(ki,arguments)}),zi=et("species"),_i=RegExp.prototype,Di=rn.charAt,Ci=function(t,e,r){return e+(r?Di(t,e).length:1)},Fi=Math.floor,Bi=s("".charAt),Hi=s("".replace),$i=s("".slice),Gi=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Vi=/\$([$&'`]|\d{1,2})/g,Wi=function(t,e,r,n,o,i){var u=r+t.length,a=n.length,c=Vi;return void 0!==o&&(o=N(o),c=Gi),Hi(i,c,(function(i,c){var f;switch(Bi(c,0)){case"$":return "$";case"&":return t;case"`":return $i(e,0,r);case"'":return $i(e,u);case"<":f=o[$i(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>a){var s=Fi(l/10);return 0===s?i:s<=a?void 0===n[s-1]?Bi(c,1):n[s-1]+Bi(c,1):i}f=n[l-1];}return void 0===f?"":f}))},Ui=TypeError,qi=function(t,e){var r=t.exec;if(nt(r)){var n=yt(r,t,e);return null!==n&&at(n),n}if("RegExp"===v(t))return yt(yi,t,e);throw new Ui("RegExp#exec called on incompatible receiver")},Ki=et("replace"),Yi=Math.max,Xi=Math.min,Ji=s([].concat),Qi=s([].push),Zi=s("".indexOf),tu=s("".slice),eu="$0"==="a".replace(/./,"$0"),ru=!!/./[Ki]&&""===/./[Ki]("a","$0");function nu(t){return t.length?t[0].tagName.toLowerCase():""}return function(t,e,r,n){var o=et(t),i=!u((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),a=i&&!u((function(){var e=!1,r=/a/;return "split"===t&&((r={}).constructor={},r.constructor[zi]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var c=/./[o],f=e(o,""[t],(function(t,e,r,n,o){var u=e.exec;return u===yi||u===_i.exec?i&&!o?{done:!0,value:yt(c,e,r,n)}:{done:!0,value:yt(t,r,e,n)}:{done:!1}}));Ue(String.prototype,t,f[0]),Ue(_i,o,f[1]);}n&&Ee(_i[o],"sham",!0);}("replace",(function(t,e,r){var n=ru?"$":"$0";return [function(t,r){var n=w(this),o=b(t)?void 0:Et(t,Ki);return o?yt(o,t,n,r):yt(e,Jr(n),t,r)},function(t,o){var i=at(this),u=Jr(t);if("string"==typeof o&&-1===Zi(o,n)&&-1===Zi(o,"$<")){var a=r(e,i,u,o);if(a.done)return a.value}var c=nt(o);c||(o=Jr(o));var f,l=i.global;l&&(f=i.unicode,i.lastIndex=0);for(var s,d=[];null!==(s=qi(i,u))&&(Qi(d,s),l);){""===Jr(s[0])&&(i.lastIndex=Ci(u,Vt(i.lastIndex),f));}for(var p,v="",y=0,h=0;h<d.length;h++){for(var g,b=Jr((s=d[h])[0]),m=Yi(Xi(Bt(s.index),u.length),0),w=[],x=1;x<s.length;x++)Qi(w,void 0===(p=s[x])?p:String(p));var O=s.groups;if(c){var S=Ji([b],w,m,u);void 0!==O&&Qi(S,O),g=Jr(Mi(o,void 0,S));}else g=Wi(b,u,m,w,O,o);m>=y&&(v+=tu(u,y,m)+g,y=m+b.length);}return v+tu(u,y)}]}),!!u((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!eu||ru),ar({global:!0,forced:A.globalThis!==A},{globalThis:A}),n.append&&(i.default.fn.append=n.append),n.attr&&(i.default.fn.attr=n.attr),n.parent&&(i.default.fn.parent=n.parent),{renderElems:[Do],editorPlugin:function(r){var n=r.deleteBackward,o=r.handleTab,i=r.normalizeNode,u=r.insertBreak,a=r;return a.insertBreak=function(){var n=Ho(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"list-item")},universal:!0}),1)[0];return n?""!==n[0].children[0].text?u():void e.Transforms.setNodes(a,{type:"paragraph",ordered:void 0,level:void 0}):u()},a.deleteBackward=function(o){var i=a.selection;if(null!=i)if(e.Range.isExpanded(i))n(o);else {var u=t.DomEditor.getSelectedNodeByType(a,"list-item");if(null!=u)if(0!==i.focus.offset)n(o);else {var c=u,f=c.level,l=void 0===f?0:f,s=c.ordered,d=void 0!==s&&s;if(l>0){var p=$o(r,u,l-1);p&&p.ordered!==d?e.Transforms.setNodes(a,{level:l-1,ordered:!d}):e.Transforms.setNodes(a,{level:l-1});}else e.Transforms.setNodes(a,{type:"paragraph",ordered:void 0,level:void 0});}else n(o);}else n(o);},a.handleTab=function(){var r,n,i,u,c=a.selection;if(null!=c){if(e.Range.isCollapsed(c)){var f=t.DomEditor.getSelectedNodeByType(a,"list-item");if(null==f)return void o();if(0===c.focus.offset){var l=f.level,s=void 0===l?0:l;return void e.Transforms.setNodes(a,{level:s+1})}}if(e.Range.isExpanded(c)){var d=0,p=!1;try{for(var v=Bo(Vo(a)),y=v.next();!y.done;y=v.next()){var h=Ho(y.value,1)[0];"list-item"===t.DomEditor.getNodeType(h)?d++:p=!0;}}catch(t){r={error:t};}finally{try{y&&!y.done&&(n=v.return)&&n.call(v);}finally{if(r)throw r.error}}if(p||d<=1)return void o();try{for(var g=Bo(Vo(a)),b=g.next();!b.done;b=g.next()){var m=Ho(b.value,2),w=(h=m[0],m[1]),x=h.level;s=void 0===x?0:x;e.Transforms.setNodes(a,{level:s+1},{at:w});}}catch(t){i={error:t};}finally{try{b&&!b.done&&(u=g.return)&&u.call(g);}finally{if(i)throw i.error}}}else o();}else o();},a.normalizeNode=function(r){var n=Ho(r,2),o=n[0],u=n[1],c=t.DomEditor.getNodeType(o);return "bulleted-list"!==c&&"numbered-list"!==c||e.Transforms.unwrapNodes(a,{at:u}),i([o,u])},a},menus:[mi,wi],elemsToHtml:[Si],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,r){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,r,n){var o=i.default(t);0===(r=r.filter((function(t){return !!e.Text.isText(t)||!!n.isInline(t)}))).length&&(r=[{text:o.text().replace(/\s+/gm," ")}]);var u=function(t){return "ol"===nu(t.parent())}(o),a=function(t){for(var e=0,r=t.parent(),n=nu(r);"ul"===n||"ol"===n;)n=nu(r=r.parent()),e++;return e-1}(o);return {type:"list-item",ordered:u,level:a,children:r}}}]}}));
21687
+ !function(t,e){module.exports=e(dist$6,dist$7,require$$2,require$$4);}(commonjsGlobal,(function(t,e,r,n){function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=o(r);t.i18nAddResources("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),t.i18nAddResources("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function a(t){var e={exports:{}};return t(e,e.exports),e.exports}var c,f,l=function(t){return t&&t.Math===Math&&t},s=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof u&&u)||l("object"==typeof u&&u)||function(){return this}()||Function("return this")(),d=function(t){try{return !!t()}catch(t){return !0}},p=!d((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=!d((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),y=Function.prototype.call,h=v?y.bind(y):function(){return y.apply(y,arguments)},g={}.propertyIsEnumerable,b=Object.getOwnPropertyDescriptor,m={f:b&&!g.call({1:2},1)?function(t){var e=b(this,t);return !!e&&e.enumerable}:g},w=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},x=Function.prototype,O=x.call,S=v&&x.bind.bind(O,O),E=v?S:function(t){return function(){return O.apply(t,arguments)}},T=E({}.toString),j=E("".slice),A=function(t){return j(T(t),8,-1)},P=Object,I=E("".split),R=d((function(){return !P("z").propertyIsEnumerable(0)}))?function(t){return "String"===A(t)?I(t,""):P(t)}:P,L=function(t){return null==t},k=TypeError,N=function(t){if(L(t))throw new k("Can't call method on "+t);return t},M=function(t){return R(N(t))},z="object"==typeof document&&document.all,_=void 0===z&&void 0!==z?function(t){return "function"==typeof t||t===z}:function(t){return "function"==typeof t},D=function(t){return "object"==typeof t?null!==t:_(t)},C=function(t,e){return arguments.length<2?(r=s[t],_(r)?r:void 0):s[t]&&s[t][e];var r;},F=E({}.isPrototypeOf),B=s.navigator,H=B&&B.userAgent,$=H?String(H):"",G=s.process,V=s.Deno,W=G&&G.versions||V&&V.version,U=W&&W.v8;U&&(f=(c=U.split("."))[0]>0&&c[0]<4?1:+(c[0]+c[1])),!f&&$&&(!(c=$.match(/Edge\/(\d+)/))||c[1]>=74)&&(c=$.match(/Chrome\/(\d+)/))&&(f=+c[1]);var q=f,K=s.String,Y=!!Object.getOwnPropertySymbols&&!d((function(){var t=Symbol("symbol detection");return !K(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q&&q<41})),X=Y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,J=Object,Q=X?function(t){return "symbol"==typeof t}:function(t){var e=C("Symbol");return _(e)&&F(e.prototype,J(t))},Z=String,tt=function(t){try{return Z(t)}catch(t){return "Object"}},et=TypeError,rt=function(t){if(_(t))return t;throw new et(tt(t)+" is not a function")},nt=function(t,e){var r=t[e];return L(r)?void 0:rt(r)},ot=TypeError,it=Object.defineProperty,ut=function(t,e){try{it(s,t,{value:e,configurable:!0,writable:!0});}catch(r){s[t]=e;}return e},at=a((function(t){var e="__core-js_shared__",r=t.exports=s[e]||ut(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),ct=function(t,e){return at[t]||(at[t]=e||{})},ft=Object,lt=function(t){return ft(N(t))},st=E({}.hasOwnProperty),dt=Object.hasOwn||function(t,e){return st(lt(t),e)},pt=0,vt=Math.random(),yt=E(1..toString),ht=function(t){return "Symbol("+(void 0===t?"":t)+")_"+yt(++pt+vt,36)},gt=s.Symbol,bt=ct("wks"),mt=X?gt.for||gt:gt&&gt.withoutSetter||ht,wt=function(t){return dt(bt,t)||(bt[t]=Y&&dt(gt,t)?gt[t]:mt("Symbol."+t)),bt[t]},xt=TypeError,Ot=wt("toPrimitive"),St=function(t,e){if(!D(t)||Q(t))return t;var r,n=nt(t,Ot);if(n){if(void 0===e&&(e="default"),r=h(n,t,e),!D(r)||Q(r))return r;throw new xt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&_(r=t.toString)&&!D(n=h(r,t)))return n;if(_(r=t.valueOf)&&!D(n=h(r,t)))return n;if("string"!==e&&_(r=t.toString)&&!D(n=h(r,t)))return n;throw new ot("Can't convert object to primitive value")}(t,e)},Et=function(t){var e=St(t,"string");return Q(e)?e:e+""},Tt=s.document,jt=D(Tt)&&D(Tt.createElement),At=function(t){return jt?Tt.createElement(t):{}},Pt=!p&&!d((function(){return 7!==Object.defineProperty(At("div"),"a",{get:function(){return 7}}).a})),It=Object.getOwnPropertyDescriptor,Rt={f:p?It:function(t,e){if(t=M(t),e=Et(e),Pt)try{return It(t,e)}catch(t){}if(dt(t,e))return w(!h(m.f,t,e),t[e])}},Lt=p&&d((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),kt=String,Nt=TypeError,Mt=function(t){if(D(t))return t;throw new Nt(kt(t)+" is not an object")},zt=TypeError,_t=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor,Ct="enumerable",Ft="configurable",Bt="writable",Ht={f:p?Lt?function(t,e,r){if(Mt(t),e=Et(e),Mt(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Bt in r&&!r[Bt]){var n=Dt(t,e);n&&n[Bt]&&(t[e]=r.value,r={configurable:Ft in r?r[Ft]:n[Ft],enumerable:Ct in r?r[Ct]:n[Ct],writable:!1});}return _t(t,e,r)}:_t:function(t,e,r){if(Mt(t),e=Et(e),Mt(r),Pt)try{return _t(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new zt("Accessors not supported");return "value"in r&&(t[e]=r.value),t}},$t=p?function(t,e,r){return Ht.f(t,e,w(1,r))}:function(t,e,r){return t[e]=r,t},Gt=Function.prototype,Vt=p&&Object.getOwnPropertyDescriptor,Wt=dt(Gt,"name"),Ut={EXISTS:Wt,PROPER:Wt&&"something"===function(){}.name,CONFIGURABLE:Wt&&(!p||p&&Vt(Gt,"name").configurable)},qt=E(Function.toString);_(at.inspectSource)||(at.inspectSource=function(t){return qt(t)});var Kt,Yt,Xt,Jt=at.inspectSource,Qt=s.WeakMap,Zt=_(Qt)&&/native code/.test(String(Qt)),te=ct("keys"),ee=function(t){return te[t]||(te[t]=ht(t))},re={},ne="Object already initialized",oe=s.TypeError,ie=s.WeakMap;if(Zt||at.state){var ue=at.state||(at.state=new ie);ue.get=ue.get,ue.has=ue.has,ue.set=ue.set,Kt=function(t,e){if(ue.has(t))throw new oe(ne);return e.facade=t,ue.set(t,e),e},Yt=function(t){return ue.get(t)||{}},Xt=function(t){return ue.has(t)};}else {var ae=ee("state");re[ae]=!0,Kt=function(t,e){if(dt(t,ae))throw new oe(ne);return e.facade=t,$t(t,ae,e),e},Yt=function(t){return dt(t,ae)?t[ae]:{}},Xt=function(t){return dt(t,ae)};}var ce={set:Kt,get:Yt,has:Xt,enforce:function(t){return Xt(t)?Yt(t):Kt(t,{})},getterFor:function(t){return function(e){var r;if(!D(e)||(r=Yt(e)).type!==t)throw new oe("Incompatible receiver, "+t+" required");return r}}},fe=a((function(t){var e=Ut.CONFIGURABLE,r=ce.enforce,n=ce.get,o=String,i=Object.defineProperty,u=E("".slice),a=E("".replace),c=E([].join),f=p&&!d((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),s=t.exports=function(t,n,s){"Symbol("===u(o(n),0,7)&&(n="["+a(o(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),s&&s.getter&&(n="get "+n),s&&s.setter&&(n="set "+n),(!dt(t,"name")||e&&t.name!==n)&&(p?i(t,"name",{value:n,configurable:!0}):t.name=n),f&&s&&dt(s,"arity")&&t.length!==s.arity&&i(t,"length",{value:s.arity});try{s&&dt(s,"constructor")&&s.constructor?p&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var d=r(t);return dt(d,"source")||(d.source=c(l,"string"==typeof n?n:"")),t};Function.prototype.toString=s((function(){return _(this)&&n(this).source||Jt(this)}),"toString");})),le=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(_(r)&&fe(r,i,n),n.global)o?t[e]=r:ut(e,r);else {try{n.unsafe?t[e]&&(o=!0):delete t[e];}catch(t){}o?t[e]=r:Ht.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable});}return t},se=Math.ceil,de=Math.floor,pe=Math.trunc||function(t){var e=+t;return (e>0?de:se)(e)},ve=function(t){var e=+t;return e!=e||0===e?0:pe(e)},ye=Math.max,he=Math.min,ge=Math.min,be=function(t){var e=ve(t);return e>0?ge(e,9007199254740991):0},me=function(t){return be(t.length)},we=function(t){return function(e,r,n){var o=M(e),i=me(o);if(0===i)return !t&&-1;var u,a=function(t,e){var r=ve(t);return r<0?ye(r+e,0):he(r,e)}(n,i);if(t&&r!=r){for(;i>a;)if((u=o[a++])!=u)return !0}else for(;i>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return !t&&-1}},xe={includes:we(!0),indexOf:we(!1)},Oe=xe.indexOf,Se=E([].push),Ee=function(t,e){var r,n=M(t),o=0,i=[];for(r in n)!dt(re,r)&&dt(n,r)&&Se(i,r);for(;e.length>o;)dt(n,r=e[o++])&&(~Oe(i,r)||Se(i,r));return i},Te=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],je=Te.concat("length","prototype"),Ae={f:Object.getOwnPropertyNames||function(t){return Ee(t,je)}},Pe={f:Object.getOwnPropertySymbols},Ie=E([].concat),Re=C("Reflect","ownKeys")||function(t){var e=Ae.f(Mt(t)),r=Pe.f;return r?Ie(e,r(t)):e},Le=function(t,e,r){for(var n=Re(e),o=Ht.f,i=Rt.f,u=0;u<n.length;u++){var a=n[u];dt(t,a)||r&&dt(r,a)||o(t,a,i(e,a));}},ke=/#|\.prototype\./,Ne=function(t,e){var r=ze[Me(t)];return r===De||r!==_e&&(_(e)?d(e):!!e)},Me=Ne.normalize=function(t){return String(t).replace(ke,".").toLowerCase()},ze=Ne.data={},_e=Ne.NATIVE="N",De=Ne.POLYFILL="P",Ce=Ne,Fe=Rt.f,Be=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?s:f?s[a]||ut(a,{}):s[a]&&s[a].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=Fe(r,n))&&u.value:r[n],!Ce(c?n:a+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Le(i,o);}(t.sham||o&&o.sham)&&$t(i,"sham",!0),le(r,n,i,t);}},He=Array.isArray||function(t){return "Array"===A(t)},$e=TypeError,Ge=function(t){if(t>9007199254740991)throw $e("Maximum allowed index exceeded");return t},Ve=function(t,e,r){p?Ht.f(t,e,w(0,r)):t[e]=r;},We={};We[wt("toStringTag")]="z";var Ue="[object z]"===String(We),qe=wt("toStringTag"),Ke=Object,Ye="Arguments"===A(function(){return arguments}()),Xe=Ue?A:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Ke(t),qe))?r:Ye?A(e):"Object"===(n=A(e))&&_(e.callee)?"Arguments":n},Je=function(){},Qe=C("Reflect","construct"),Ze=/^\s*(?:class|function)\b/,tr=E(Ze.exec),er=!Ze.test(Je),rr=function(t){if(!_(t))return !1;try{return Qe(Je,[],t),!0}catch(t){return !1}},nr=function(t){if(!_(t))return !1;switch(Xe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return er||!!tr(Ze,Jt(t))}catch(t){return !0}};nr.sham=!0;var or=!Qe||d((function(){var t;return rr(rr.call)||!rr(Object)||!rr((function(){t=!0;}))||t}))?nr:rr,ir=wt("species"),ur=Array,ar=function(t,e){return new(function(t){var e;return He(t)&&(e=t.constructor,(or(e)&&(e===ur||He(e.prototype))||D(e)&&null===(e=e[ir]))&&(e=void 0)),void 0===e?ur:e}(t))(0===e?0:e)},cr=wt("species"),fr=function(t){return q>=51||!d((function(){var e=[];return (e.constructor={})[cr]=function(){return {foo:1}},1!==e[t](Boolean).foo}))},lr=wt("isConcatSpreadable"),sr=q>=51||!d((function(){var t=[];return t[lr]=!1,t.concat()[0]!==t})),dr=function(t){if(!D(t))return !1;var e=t[lr];return void 0!==e?!!e:He(t)},pr=!sr||!fr("concat");Be({target:"Array",proto:!0,arity:1,forced:pr},{concat:function(t){var e,r,n,o,i,u=lt(this),a=ar(u,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(dr(i=-1===e?u:arguments[e]))for(o=me(i),Ge(c+o),r=0;r<o;r++,c++)r in i&&Ve(a,c,i[r]);else Ge(c+1),Ve(a,c++,i);return a.length=c,a}});var vr=function(t,e){return vr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);},vr(t,e)};function yr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t;}vr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r);}function hr(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function gr(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value);}catch(t){o={error:t};}finally{try{n&&!n.done&&(r=i.return)&&r.call(i);}finally{if(o)throw o.error}}return u}"function"==typeof SuppressedError&&SuppressedError;var br,mr=Object.keys||function(t){return Ee(t,Te)},wr=p&&!Lt?Object.defineProperties:function(t,e){Mt(t);for(var r,n=M(e),o=mr(e),i=o.length,u=0;i>u;)Ht.f(t,r=o[u++],n[r]);return t},xr={f:wr},Or=C("document","documentElement"),Sr="prototype",Er="script",Tr=ee("IE_PROTO"),jr=function(){},Ar=function(t){return "<"+Er+">"+t+"</"+Er+">"},Pr=function(t){t.write(Ar("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ir=function(){try{br=new ActiveXObject("htmlfile");}catch(t){}var t,e,r;Ir="undefined"!=typeof document?document.domain&&br?Pr(br):(e=At("iframe"),r="java"+Er+":",e.style.display="none",Or.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ar("document.F=Object")),t.close(),t.F):Pr(br);for(var n=Te.length;n--;)delete Ir[Sr][Te[n]];return Ir()};re[Tr]=!0;var Rr=Object.create||function(t,e){var r;return null!==t?(jr[Sr]=Mt(t),r=new jr,jr[Sr]=null,r[Tr]=t):r=Ir(),void 0===e?r:xr.f(r,e)},Lr=Ht.f,kr=wt("unscopables"),Nr=Array.prototype;void 0===Nr[kr]&&Lr(Nr,kr,{configurable:!0,value:Rr(null)});var Mr,zr,_r,Dr=function(t){Nr[kr][t]=!0;},Cr={},Fr=!d((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Br=ee("IE_PROTO"),Hr=Object,$r=Hr.prototype,Gr=Fr?Hr.getPrototypeOf:function(t){var e=lt(t);if(dt(e,Br))return e[Br];var r=e.constructor;return _(r)&&e instanceof r?r.prototype:e instanceof Hr?$r:null},Vr=wt("iterator"),Wr=!1;[].keys&&("next"in(_r=[].keys())?(zr=Gr(Gr(_r)))!==Object.prototype&&(Mr=zr):Wr=!0);var Ur=!D(Mr)||d((function(){var t={};return Mr[Vr].call(t)!==t}));Ur&&(Mr={}),_(Mr[Vr])||le(Mr,Vr,(function(){return this}));var qr={IteratorPrototype:Mr,BUGGY_SAFARI_ITERATORS:Wr},Kr=Ht.f,Yr=wt("toStringTag"),Xr=function(t,e,r){t&&!r&&(t=t.prototype),t&&!dt(t,Yr)&&Kr(t,Yr,{configurable:!0,value:e});},Jr=qr.IteratorPrototype,Qr=function(){return this},Zr=String,tn=TypeError,en=function(t){if(function(t){return D(t)||null===t}(t))return t;throw new tn("Can't set "+Zr(t)+" as a prototype")},rn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=function(t,e,r){try{return E(rt(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array;}catch(t){}return function(r,n){return N(r),en(n),D(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),nn=Ut.PROPER,on=Ut.CONFIGURABLE,un=qr.IteratorPrototype,an=qr.BUGGY_SAFARI_ITERATORS,cn=wt("iterator"),fn="keys",ln="values",sn="entries",dn=function(){return this},pn=function(t,e,r,n,o,i,u){!function(t,e,r,n){var o=e+" Iterator";t.prototype=Rr(Jr,{next:w(+!n,r)}),Xr(t,o,!1),Cr[o]=Qr;}(r,e,n);var a,c,f,l=function(t){if(t===o&&y)return y;if(!an&&t&&t in p)return p[t];switch(t){case fn:case ln:case sn:return function(){return new r(this,t)}}return function(){return new r(this)}},s=e+" Iterator",d=!1,p=t.prototype,v=p[cn]||p["@@iterator"]||o&&p[o],y=!an&&v||l(o),g="Array"===e&&p.entries||v;if(g&&(a=Gr(g.call(new t)))!==Object.prototype&&a.next&&(Gr(a)!==un&&(rn?rn(a,un):_(a[cn])||le(a,cn,dn)),Xr(a,s,!0)),nn&&o===ln&&v&&v.name!==ln&&(on?$t(p,"name",ln):(d=!0,y=function(){return h(v,this)})),o)if(c={values:l(ln),keys:i?y:l(fn),entries:l(sn)},u)for(f in c)(an||d||!(f in p))&&le(p,f,c[f]);else Be({target:e,proto:!0,forced:an||d},c);return p[cn]!==y&&le(p,cn,y,{name:o}),Cr[e]=y,c},vn=function(t,e){return {value:t,done:e}},yn=Ht.f,hn="Array Iterator",gn=ce.set,bn=ce.getterFor(hn),mn=pn(Array,"Array",(function(t,e){gn(this,{type:hn,target:M(t),index:0,kind:e});}),(function(){var t=bn(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,vn(void 0,!0);switch(t.kind){case"keys":return vn(r,!1);case"values":return vn(e[r],!1)}return vn([r,e[r]],!1)}),"values"),wn=Cr.Arguments=Cr.Array;if(Dr("keys"),Dr("values"),Dr("entries"),p&&"values"!==wn.name)try{yn(wn,"name",{value:"values"});}catch(t){}var xn=Ue?{}.toString:function(){return "[object "+Xe(this)+"]"};Ue||le(Object.prototype,"toString",xn,{unsafe:!0});var On=String,Sn=function(t){if("Symbol"===Xe(t))throw new TypeError("Cannot convert a Symbol value to a string");return On(t)},En=E("".charAt),Tn=E("".charCodeAt),jn=E("".slice),An=function(t){return function(e,r){var n,o,i=Sn(N(e)),u=ve(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=Tn(i,u))<55296||n>56319||u+1===a||(o=Tn(i,u+1))<56320||o>57343?t?En(i,u):n:t?jn(i,u,u+2):o-56320+(n-55296<<10)+65536}},Pn={codeAt:An(!1),charAt:An(!0)},In=Pn.charAt,Rn="String Iterator",Ln=ce.set,kn=ce.getterFor(Rn);pn(String,"String",(function(t){Ln(this,{type:Rn,string:Sn(t),index:0});}),(function(){var t,e=kn(this),r=e.string,n=e.index;return n>=r.length?vn(void 0,!0):(t=In(r,n),e.index+=t.length,vn(t,!1))}));var Nn=!d((function(){return Object.isExtensible(Object.preventExtensions({}))})),Mn=function(t,e,r){for(var n in e)le(t,n,e[n],r);return t},zn=E([].slice),_n=Ae.f,Dn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Cn={f:function(t){return Dn&&"Window"===A(t)?function(t){try{return _n(t)}catch(t){return zn(Dn)}}(t):_n(M(t))}},Fn=d((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8});}})),Bn=Object.isExtensible,Hn=d((function(){Bn(1);}))||Fn?function(t){return !!D(t)&&((!Fn||"ArrayBuffer"!==A(t))&&(!Bn||Bn(t)))}:Bn,$n=a((function(t){var e=Ht.f,r=!1,n=ht("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}});},u=t.exports={enable:function(){u.enable=function(){},r=!0;var t=Ae.f,e=E([].splice),o={};o[n]=1,t(o).length&&(Ae.f=function(r){for(var o=t(r),i=0,u=o.length;i<u;i++)if(o[i]===n){e(o,i,1);break}return o},Be({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Cn.f}));},fastKey:function(t,e){if(!D(t))return "symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!dt(t,n)){if(!Hn(t))return "F";if(!e)return "E";i(t);}return t[n].objectID},getWeakData:function(t,e){if(!dt(t,n)){if(!Hn(t))return !0;if(!e)return !1;i(t);}return t[n].weakData},onFreeze:function(t){return Nn&&r&&Hn(t)&&!dt(t,n)&&i(t),t}};re[n]=!0;})),Gn=function(t){if("Function"===A(t))return E(t)},Vn=Gn(Gn.bind),Wn=function(t,e){return rt(t),void 0===e?t:v?Vn(t,e):function(){return t.apply(e,arguments)}},Un=wt("iterator"),qn=Array.prototype,Kn=wt("iterator"),Yn=function(t){if(!L(t))return nt(t,Kn)||nt(t,"@@iterator")||Cr[Xe(t)]},Xn=TypeError,Jn=function(t,e,r){var n,o;Mt(t);try{if(!(n=nt(t,"return"))){if("throw"===e)throw r;return r}n=h(n,t);}catch(t){o=!0,n=t;}if("throw"===e)throw r;if(o)throw n;return Mt(n),r},Qn=TypeError,Zn=function(t,e){this.stopped=t,this.result=e;},to=Zn.prototype,eo=function(t,e,r){var n,o,i,u,a,c,f,l,s=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),v=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),g=Wn(e,s),b=function(t){return n&&Jn(n,"normal",t),new Zn(!0,t)},m=function(t){return d?(Mt(t),y?g(t[0],t[1],b):g(t[0],t[1])):y?g(t,b):g(t)};if(p)n=t.iterator;else if(v)n=t;else {if(!(o=Yn(t)))throw new Qn(tt(t)+" is not iterable");if(void 0!==(l=o)&&(Cr.Array===l||qn[Un]===l)){for(i=0,u=me(t);u>i;i++)if((a=m(t[i]))&&F(to,a))return a;return new Zn(!1)}n=function(t,e){var r=arguments.length<2?Yn(t):e;if(rt(r))return Mt(h(r,t));throw new Xn(tt(t)+" is not iterable")}(t,o);}for(c=p?t.next:n.next;!(f=h(c,n)).done;){try{a=m(f.value);}catch(t){Jn(n,"throw",t);}if("object"==typeof a&&a&&F(to,a))return a}return new Zn(!1)},ro=TypeError,no=function(t,e){if(F(e,t))return t;throw new ro("Incorrect invocation")},oo=wt("iterator"),io=!1;try{var uo=0,ao={next:function(){return {done:!!uo++}},return:function(){io=!0;}};ao[oo]=function(){return this},Array.from(ao,(function(){throw 2}));}catch(t){}var co=E([].push),fo=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,f,l,s){for(var d,p,v=lt(c),y=R(v),h=me(y),g=Wn(f,l),b=0,m=s||ar,w=e?m(c,h):r||u?m(c,0):void 0;h>b;b++)if((a||b in y)&&(p=g(d=y[b],b,v),t))if(e)w[b]=p;else if(p)switch(t){case 3:return !0;case 5:return d;case 6:return b;case 2:co(w,d);}else switch(t){case 4:return !1;case 7:co(w,d);}return i?-1:n||o?o:w}},lo={forEach:fo(0),map:fo(1),filter:fo(2),some:fo(3),every:fo(4),find:fo(5),findIndex:fo(6),filterReject:fo(7)},so=$n.getWeakData,po=ce.set,vo=ce.getterFor,yo=lo.find,ho=lo.findIndex,go=E([].splice),bo=0,mo=function(t){return t.frozen||(t.frozen=new wo)},wo=function(){this.entries=[];},xo=function(t,e){return yo(t.entries,(function(t){return t[0]===e}))};wo.prototype={get:function(t){var e=xo(this,t);if(e)return e[1]},has:function(t){return !!xo(this,t)},set:function(t,e){var r=xo(this,t);r?r[1]=e:this.entries.push([t,e]);},delete:function(t){var e=ho(this.entries,(function(e){return e[0]===t}));return ~e&&go(this.entries,e,1),!!~e}};var Oo,So={getConstructor:function(t,e,r,n){var o=t((function(t,o){no(t,i),po(t,{type:e,id:bo++,frozen:null}),L(o)||eo(o,t[n],{that:t,AS_ENTRIES:r});})),i=o.prototype,u=vo(e),a=function(t,e,r){var n=u(t),o=so(Mt(e),!0);return !0===o?mo(n).set(e,r):o[n.id]=r,t};return Mn(i,{delete:function(t){var e=u(this);if(!D(t))return !1;var r=so(t);return !0===r?mo(e).delete(t):r&&dt(r,e.id)&&delete r[e.id]},has:function(t){var e=u(this);if(!D(t))return !1;var r=so(t);return !0===r?mo(e).has(t):r&&dt(r,e.id)}}),Mn(i,r?{get:function(t){var e=u(this);if(D(t)){var r=so(t);if(!0===r)return mo(e).get(t);if(r)return r[e.id]}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Eo=ce.enforce,To=Object,jo=Array.isArray,Ao=To.isExtensible,Po=To.isFrozen,Io=To.isSealed,Ro=To.freeze,Lo=To.seal,ko=!s.ActiveXObject&&"ActiveXObject"in s,No=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Mo=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=s[t],a=u&&u.prototype,c=u,f={},l=function(t){var e=E(a[t]);le(a,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return !(o&&!D(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!D(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return !(o&&!D(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this});};if(Ce(t,!_(u)||!(o||a.forEach&&!d((function(){(new u).entries().next();})))))c=r.getConstructor(e,t,n,i),$n.enable();else if(Ce(t,!0)){var p=new c,v=p[i](o?{}:-0,1)!==p,y=d((function(){p.has(1);})),h=function(t,e){try{if(!e&&!io)return !1}catch(t){return !1}var r=!1;try{var n={};n[oo]=function(){return {next:function(){return {done:r=!0}}}},t(n);}catch(t){}return r}((function(t){new u(t);})),g=!o&&d((function(){for(var t=new u,e=5;e--;)t[i](e,e);return !t.has(-0)}));h||((c=e((function(t,e){no(t,a);var r=function(t,e,r){var n,o;return rn&&_(n=e.constructor)&&n!==r&&D(o=n.prototype)&&o!==r.prototype&&rn(t,o),t}(new u,t,c);return L(e)||eo(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=a,a.constructor=c),(y||g)&&(l("delete"),l("has"),n&&l("get")),(g||v)&&l(i),o&&a.clear&&delete a.clear;}return f[t]=c,Be({global:!0,constructor:!0,forced:c!==u},f),Xr(c,t),o||r.setStrong(c,t,n),c}("WeakMap",No,So),zo=Mo.prototype,_o=E(zo.set);if(Zt)if(ko){Oo=So.getConstructor(No,"WeakMap",!0),$n.enable();var Do=E(zo.delete),Co=E(zo.has),Fo=E(zo.get);Mn(zo,{delete:function(t){if(D(t)&&!Ao(t)){var e=Eo(this);return e.frozen||(e.frozen=new Oo),Do(this,t)||e.frozen.delete(t)}return Do(this,t)},has:function(t){if(D(t)&&!Ao(t)){var e=Eo(this);return e.frozen||(e.frozen=new Oo),Co(this,t)||e.frozen.has(t)}return Co(this,t)},get:function(t){if(D(t)&&!Ao(t)){var e=Eo(this);return e.frozen||(e.frozen=new Oo),Co(this,t)?Fo(this,t):e.frozen.get(t)}return Fo(this,t)},set:function(t,e){if(D(t)&&!Ao(t)){var r=Eo(this);r.frozen||(r.frozen=new Oo),Co(this,t)?_o(this,t,e):r.frozen.set(t,e);}else _o(this,t,e);return this}});}else Nn&&d((function(){var t=Ro([]);return _o(new Mo,t,1),!Po(t)}))&&Mn(zo,{set:function(t,e){var r;return jo(t)&&(Po(t)?r=Ro:Io(t)&&(r=Lo)),_o(this,t,e),r&&r(t),this}});var Bo={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},Ho=At("span").classList,$o=Ho&&Ho.constructor&&Ho.constructor.prototype,Go=$o===Object.prototype?void 0:$o,Vo=wt("iterator"),Wo=mn.values,Uo=function(t,e){if(t){if(t[Vo]!==Wo)try{$t(t,Vo,Wo);}catch(e){t[Vo]=Wo;}if(Xr(t,e,!0),Bo[e])for(var r in mn)if(t[r]!==mn[r])try{$t(t,r,mn[r]);}catch(e){t[r]=mn[r];}}};for(var qo in Bo)Uo(s[qo]&&s[qo].prototype,qo);Uo(Go,"DOMTokenList");var Ko=new WeakMap;function Yo(t){var r,n=t.children||[],o=n.length;if(0===o)return "";for(var i=0;i<o&&!r;i+=1){var u=n[i];e.Text.isText(u)&&(r=u);}return null==r?"":r.color||""}function Xo(r,n,o){for(var i=n.type,u=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);}return r}(n,["type"]),a=void 0!==o?o:u.level||0,c=t.DomEditor.findPath(r,n),f=c;;){if(0===f.length||0===c[c.length-1])return null;f=e.Path.previous(f);var l=e.Editor.node(r,f);if(!l)return null;var s=gr(l,1)[0],d=s.level,p=void 0===d?0:d;if(t.DomEditor.getNodeType(s)!==i)return null;if(p===a)return s}}function Jo(t,e,r){var n=Xo(t,e,r);return !!n&&n.ordered===e.ordered}var Qo=[];var Zo={type:"list-item",elemToHtml:function(r,n){var o="",i="",u=r.ordered,a=void 0!==u&&u?"ol":"ul",c=function(r){var n=Ko.get(r);if(null==n)return 0;var o=r,i=o.type,u=o.ordered,a=void 0!==u&&u,c=o.level,f=void 0===c?0:c,l=t.DomEditor.findPath(n,r);if(0===l[0])return f+1;var s=e.Path.previous(l),d=e.Editor.node(n,s);if(!d)return 0;var p=gr(d,1)[0];if(t.DomEditor.getNodeType(p)!==i)return f+1;var v=p,y=v.ordered,h=void 0!==y&&y,g=v.level,b=void 0===g?0:g;return b<f?f-b:b>f?Jo(n,r)?0:1:b===f?h===a?0:1:0}(r);if(c>0)for(var f=0;f<c;f+=1)o+="<".concat(a,">"),Qo.push(a);var l=function(r){var n=Ko.get(r);if(null==n)return 0;var o=r,i=o.type,u=o.ordered,a=void 0!==u&&u,c=o.level,f=void 0===c?0:c,l=t.DomEditor.findPath(n,r);if(l[0]===n.children.length-1)return f+1;var s=e.Path.next(l),d=e.Editor.node(n,s);if(!d)return 0;var p=gr(d,1)[0];if(t.DomEditor.getNodeType(p)!==i)return f+1;var v=p,y=v.ordered,h=void 0!==y&&y,g=v.level,b=void 0===g?0:g;return b<f?Jo(n,p)?f-b:f-b+1:b>f?0:b===f?h===a?0:1:0}(r);if(l>0)for(f=0;f<l;f+=1){var s=Qo.pop();i+="</".concat(s,">");}var d=Yo(r),p=d?' style="color:'.concat(d,'"'):"";return {html:"<li".concat(p,">").concat(n,"</li>"),prefix:o,suffix:i}}},ti=xe.includes,ei=d((function(){return !Array(1).includes()}));Be({target:"Array",proto:!0,forced:ei},{includes:function(t){return ti(this,t,arguments.length>1?arguments[1]:void 0)}}),Dr("includes");var ri,ni,oi=function(){var t=Mt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},ii=s.RegExp,ui=d((function(){var t=ii("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),ai=ui||d((function(){return !ii("a","y").sticky})),ci={BROKEN_CARET:ui||d((function(){var t=ii("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:ai,UNSUPPORTED_Y:ui},fi=s.RegExp,li=d((function(){var t=fi(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)})),si=s.RegExp,di=d((function(){var t=si("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),pi=ce.get,vi=ct("native-string-replace",String.prototype.replace),yi=RegExp.prototype.exec,hi=yi,gi=E("".charAt),bi=E("".indexOf),mi=E("".replace),wi=E("".slice),xi=(ni=/b*/g,h(yi,ri=/a/,"a"),h(yi,ni,"a"),0!==ri.lastIndex||0!==ni.lastIndex),Oi=ci.BROKEN_CARET,Si=void 0!==/()??/.exec("")[1];(xi||Si||Oi||li||di)&&(hi=function(t){var e,r,n,o,i,u,a,c=this,f=pi(c),l=Sn(t),s=f.raw;if(s)return s.lastIndex=c.lastIndex,e=h(hi,s,l),c.lastIndex=s.lastIndex,e;var d=f.groups,p=Oi&&c.sticky,v=h(oi,c),y=c.source,g=0,b=l;if(p&&(v=mi(v,"y",""),-1===bi(v,"g")&&(v+="g"),b=wi(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==gi(l,c.lastIndex-1))&&(y="(?: "+y+")",b=" "+b,g++),r=new RegExp("^(?:"+y+")",v)),Si&&(r=new RegExp("^"+y+"$(?!\\s)",v)),xi&&(n=c.lastIndex),o=h(yi,p?r:c,b),p?o?(o.input=wi(o.input,g),o[0]=wi(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:xi&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Si&&o&&o.length>1&&h(vi,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0);})),o&&d)for(o.groups=u=Rr(null),i=0;i<d.length;i++)u[(a=d[i])[0]]=o[a[1]];return o});var Ei=hi;Be({target:"RegExp",proto:!0,forced:/./.exec!==Ei},{exec:Ei});var Ti=function(){function r(){this.type="list-item",this.tag="button";}return r.prototype.getListNode=function(e){var r=this.type;return t.DomEditor.getSelectedNodeByType(e,r)},r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){var e=this.getListNode(t);if(null==e)return !1;var r=e.ordered;return (void 0!==r&&r)===this.ordered},r.prototype.isDisabled=function(r){return null==r.selection||!!t.DomEditor.getSelectedElems(r).some((function(t){if(e.Editor.isVoid(r,t)&&e.Editor.isBlock(r,t))return !0;var n=t.type;return !!["pre","code","table"].includes(n)}))},r.prototype.exec=function(t,r){this.isActive(t)?e.Transforms.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):e.Transforms.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0});},r}(),ji=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.ordered=!1,r.title=t.t("listModule.unOrderedList"),r.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',r}return yr(r,e),r}(Ti),Ai=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.ordered=!0,r.title=t.t("listModule.orderedList"),r.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',r}return yr(r,e),r}(Ti),Pi={key:"bulletedList",factory:function(){return new ji}},Ii={key:"numberedList",factory:function(){return new Ai}},Ri=lo.filter,Li=fr("filter");Be({target:"Array",proto:!0,forced:!Li},{filter:function(t){return Ri(this,t,arguments.length>1?arguments[1]:void 0)}});var ki=function(t,e,r,n,o,i,u,a){for(var c,f,l=o,s=0,d=!!u&&Wn(u,a);s<n;)s in r&&(c=d?d(r[s],s,e):r[s],i>0&&He(c)?(f=me(c),l=ki(t,e,c,f,l,i-1)-1):(Ge(l+1),t[l]=c),l++),s++;return l},Ni=ki;Be({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=lt(this),r=me(e),n=ar(e,0);return n.length=Ni(n,e,e,r,0,void 0===t?1:ve(t)),n}}),Dr("flat");var Mi=Function.prototype,zi=Mi.apply,_i=Mi.call,Di="object"==typeof Reflect&&Reflect.apply||(v?_i.bind(zi):function(){return _i.apply(zi,arguments)}),Ci=wt("species"),Fi=RegExp.prototype,Bi=Pn.charAt,Hi=function(t,e,r){return e+(r?Bi(t,e).length:1)},$i=Math.floor,Gi=E("".charAt),Vi=E("".replace),Wi=E("".slice),Ui=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qi=/\$([$&'`]|\d{1,2})/g,Ki=function(t,e,r,n,o,i){var u=r+t.length,a=n.length,c=qi;return void 0!==o&&(o=lt(o),c=Ui),Vi(i,c,(function(i,c){var f;switch(Gi(c,0)){case"$":return "$";case"&":return t;case"`":return Wi(e,0,r);case"'":return Wi(e,u);case"<":f=o[Wi(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>a){var s=$i(l/10);return 0===s?i:s<=a?void 0===n[s-1]?Gi(c,1):n[s-1]+Gi(c,1):i}f=n[l-1];}return void 0===f?"":f}))},Yi=TypeError,Xi=function(t,e){var r=t.exec;if(_(r)){var n=h(r,t,e);return null!==n&&Mt(n),n}if("RegExp"===A(t))return h(Ei,t,e);throw new Yi("RegExp#exec called on incompatible receiver")},Ji=wt("replace"),Qi=Math.max,Zi=Math.min,tu=E([].concat),eu=E([].push),ru=E("".indexOf),nu=E("".slice),ou="$0"==="a".replace(/./,"$0"),iu=!!/./[Ji]&&""===/./[Ji]("a","$0");function uu(t){return t.length?t[0].tagName.toLowerCase():""}function au(r){return e.Editor.nodes(r,{at:r.selection||void 0,match:function(e){return 1===t.DomEditor.findPath(r,e).length}})}return function(t,e,r,n){var o=wt(t),i=!d((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),u=i&&!d((function(){var e=!1,r=/a/;return "split"===t&&((r={}).constructor={},r.constructor[Ci]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!u||r){var a=/./[o],c=e(o,""[t],(function(t,e,r,n,o){var u=e.exec;return u===Ei||u===Fi.exec?i&&!o?{done:!0,value:h(a,e,r,n)}:{done:!0,value:h(t,r,e,n)}:{done:!1}}));le(String.prototype,t,c[0]),le(Fi,o,c[1]);}n&&$t(Fi[o],"sham",!0);}("replace",(function(t,e,r){var n=iu?"$":"$0";return [function(t,r){var n=N(this),o=L(t)?void 0:nt(t,Ji);return o?h(o,t,n,r):h(e,Sn(n),t,r)},function(t,o){var i=Mt(this),u=Sn(t);if("string"==typeof o&&-1===ru(o,n)&&-1===ru(o,"$<")){var a=r(e,i,u,o);if(a.done)return a.value}var c=_(o);c||(o=Sn(o));var f,l=i.global;l&&(f=i.unicode,i.lastIndex=0);for(var s,d=[];null!==(s=Xi(i,u))&&(eu(d,s),l);){""===Sn(s[0])&&(i.lastIndex=Hi(u,be(i.lastIndex),f));}for(var p,v="",y=0,h=0;h<d.length;h++){for(var g,b=Sn((s=d[h])[0]),m=Qi(Zi(ve(s.index),u.length),0),w=[],x=1;x<s.length;x++)eu(w,void 0===(p=s[x])?p:String(p));var O=s.groups;if(c){var S=tu([b],w,m,u);void 0!==O&&eu(S,O),g=Sn(Di(o,void 0,S));}else g=Ki(b,u,m,w,O,o);m>=y&&(v+=nu(u,y,m)+g,y=m+b.length);}return v+nu(u,y)}]}),!!d((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!ou||iu),Be({global:!0,forced:s.globalThis!==s},{globalThis:s}),r.append&&(i.default.fn.append=r.append),r.attr&&(i.default.fn.attr=r.attr),r.parent&&(i.default.fn.parent=r.parent),{renderElems:[{type:"list-item",renderElem:function(r,o,i){Ko.set(r,i);var u=r,a=u.level,c=void 0===a?0:a,f=u.ordered,l=void 0!==f&&f,s={margin:"5px 0 5px ".concat(20*c,"px")},d="";if(l){var p=function(r,n){var o=n,i=o.type,u=o.level,a=void 0===u?0:u,c=o.ordered,f=void 0!==c&&c,l=1,s=n,d=t.DomEditor.findPath(r,s);if(0===d[0])return 1;for(;d[0]>0;){var p=e.Path.previous(d),v=e.Editor.node(r,p);if(null==v)break;var y=v[0],h=y.level,g=void 0===h?0:h,b=y.type,m=y.ordered;if(b!==i)break;if(g<a)break;if(g===a){if(m!==f)break;l+=1;}s=y,d=p;}return l}(i,r);d="".concat(p,".");}else d=function(t){void 0===t&&(t=0);var e="";switch(t){case 0:e="•";break;case 1:e="◦";break;default:e="▪";}return e}(c);var v=Yo(r);return n.jsx("div",{style:s},n.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em",color:v},"data-w-e-reserve":!0},d),n.jsx("span",null,o))}}],editorPlugin:function(r){var n=r.deleteBackward,o=r.handleTab,i=r.normalizeNode,u=r.insertBreak,a=r;return a.insertBreak=function(){var n=gr(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"list-item")},universal:!0}),1)[0];return n?""!==n[0].children[0].text?u():void e.Transforms.setNodes(a,{type:"paragraph",ordered:void 0,level:void 0}):u()},a.deleteBackward=function(o){var i=a.selection;if(null!=i)if(e.Range.isExpanded(i))n(o);else {var u=t.DomEditor.getSelectedNodeByType(a,"list-item");if(null!=u)if(0!==i.focus.offset)n(o);else {var c=u,f=c.level,l=void 0===f?0:f,s=c.ordered,d=void 0!==s&&s;if(l>0){var p=Xo(r,u,l-1);p&&p.ordered!==d?e.Transforms.setNodes(a,{level:l-1,ordered:!d}):e.Transforms.setNodes(a,{level:l-1});}else e.Transforms.setNodes(a,{type:"paragraph",ordered:void 0,level:void 0});}else n(o);}else n(o);},a.handleTab=function(){var r,n,i,u,c=a.selection;if(null!=c){if(e.Range.isCollapsed(c)){var f=t.DomEditor.getSelectedNodeByType(a,"list-item");if(null==f)return void o();if(0===c.focus.offset){var l=f.level,s=void 0===l?0:l;return void e.Transforms.setNodes(a,{level:s+1})}}if(e.Range.isExpanded(c)){var d=0,p=!1;try{for(var v=hr(au(a)),y=v.next();!y.done;y=v.next()){var h=gr(y.value,1)[0];"list-item"===t.DomEditor.getNodeType(h)?d+=1:p=!0;}}catch(t){r={error:t};}finally{try{y&&!y.done&&(n=v.return)&&n.call(v);}finally{if(r)throw r.error}}if(p||d<=1)return void o();try{for(var g=hr(au(a)),b=g.next();!b.done;b=g.next()){var m=gr(b.value,2),w=(h=m[0],m[1]),x=h.level;s=void 0===x?0:x;e.Transforms.setNodes(a,{level:s+1},{at:w});}}catch(t){i={error:t};}finally{try{b&&!b.done&&(u=g.return)&&u.call(g);}finally{if(i)throw i.error}}}else o();}else o();},a.normalizeNode=function(r){var n=gr(r,2),o=n[0],u=n[1],c=t.DomEditor.getNodeType(o);return "bulleted-list"!==c&&"numbered-list"!==c||e.Transforms.unwrapNodes(a,{at:u}),i([o,u])},a},menus:[Pi,Ii],elemsToHtml:[Zo],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,r){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,r,n){var o=i.default(t);0===(r=r.filter((function(t){return !!e.Text.isText(t)||!!n.isInline(t)}))).length&&(r=[{text:o.text().replace(/\s+/gm," ")}]);var u=function(t){return "ol"===uu(t.parent())}(o),a=function(t){for(var e=0,r=t.parent(),n=uu(r);"ul"===n||"ol"===n;)n=uu(r=r.parent()),e+=1;return e-1}(o);return {type:"list-item",ordered:u,level:a,children:r}}}]}}));
21688
21688
 
21689
21689
  });
21690
21690
 
21691
21691
  var dist$3 = createCommonjsModule$1(function (module, exports) {
21692
- !function(t,e){module.exports=e(dist$6,dist$7,lodash_debounce,require$$2,lodash_throttle,require$$1,require$$4);}(commonjsGlobal,(function(t,e,r,n,o,i){function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var l=a(r),u=a(o),c=a(i);t.i18nAddResources("en",{tableModule:{modal:{border:"Border",borderWidth:"Width",bgColor:"Back color",align:"Text Align",ok:"OK"},color:{default:"Default color",clear:"Clear back color"},borderStyle:{none:"None",solid:"Solid",dotted:"Dotted",dashed:"Dashed",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"},deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",mergeCell:"merge cell",splitCell:"split cell",tableProperty:"Table property",cellProperty:"Cell property"}}),t.i18nAddResources("zh-CN",{tableModule:{modal:{border:"边框",borderWidth:"宽度",bgColor:"背景色",align:"对齐方式",ok:"确定"},color:{default:"默认颜色",clear:"清除背景色"},borderStyle:{none:"无样式",solid:"实线",dotted:"点状虚线",dashed:"虚线",double:"双线",groove:"凹槽边框",ridge:"菱形边框",inset:"凹边框",outset:"凸边框"},deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格",tableProperty:"表格属性",cellProperty:"单元格属性"}});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function f(t){var e={exports:{}};return t(e,e.exports),e.exports}var d,v,h=function(t){return t&&t.Math===Math&&t},p=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof s&&s)||h("object"==typeof s&&s)||function(){return this}()||Function("return this")(),g=function(t){try{return !!t()}catch(t){return !0}},y=!g((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),b=!g((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),m=Function.prototype.call,w=b?m.bind(m):function(){return m.apply(m,arguments)},x={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,S={f:E&&!x.call({1:2},1)?function(t){var e=E(this,t);return !!e&&e.enumerable}:x},T=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},M=Function.prototype,z=M.call,N=b&&M.bind.bind(z,z),O=b?N:function(t){return function(){return z.apply(t,arguments)}},D=O({}.toString),P=O("".slice),k=function(t){return P(D(t),8,-1)},j=Object,A=O("".split),H=g((function(){return !j("z").propertyIsEnumerable(0)}))?function(t){return "String"===k(t)?A(t,""):j(t)}:j,C=function(t){return null==t},V=TypeError,R=function(t){if(C(t))throw new V("Can't call method on "+t);return t},I=function(t){return H(R(t))},L="object"==typeof document&&document.all,B=void 0===L&&void 0!==L?function(t){return "function"==typeof t||t===L}:function(t){return "function"==typeof t},W=function(t){return "object"==typeof t?null!==t:B(t)},_=function(t,e){return arguments.length<2?(r=p[t],B(r)?r:void 0):p[t]&&p[t][e];var r;},F=O({}.isPrototypeOf),q=p.navigator,$=q&&q.userAgent,G=$?String($):"",U=p.process,X=p.Deno,K=U&&U.versions||X&&X.version,Y=K&&K.v8;Y&&(v=(d=Y.split("."))[0]>0&&d[0]<4?1:+(d[0]+d[1])),!v&&G&&(!(d=G.match(/Edge\/(\d+)/))||d[1]>=74)&&(d=G.match(/Chrome\/(\d+)/))&&(v=+d[1]);var J=v,Q=p.String,Z=!!Object.getOwnPropertySymbols&&!g((function(){var t=Symbol("symbol detection");return !Q(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&J&&J<41})),tt=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,et=Object,rt=tt?function(t){return "symbol"==typeof t}:function(t){var e=_("Symbol");return B(e)&&F(e.prototype,et(t))},nt=String,ot=function(t){try{return nt(t)}catch(t){return "Object"}},it=TypeError,at=function(t){if(B(t))return t;throw new it(ot(t)+" is not a function")},lt=function(t,e){var r=t[e];return C(r)?void 0:at(r)},ut=TypeError,ct=Object.defineProperty,st=function(t,e){try{ct(p,t,{value:e,configurable:!0,writable:!0});}catch(r){p[t]=e;}return e},ft=f((function(t){var e="__core-js_shared__",r=t.exports=p[e]||st(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),dt=function(t,e){return ft[t]||(ft[t]=e||{})},vt=Object,ht=function(t){return vt(R(t))},pt=O({}.hasOwnProperty),gt=Object.hasOwn||function(t,e){return pt(ht(t),e)},yt=0,bt=Math.random(),mt=O(1..toString),wt=function(t){return "Symbol("+(void 0===t?"":t)+")_"+mt(++yt+bt,36)},xt=p.Symbol,Et=dt("wks"),St=tt?xt.for||xt:xt&&xt.withoutSetter||wt,Tt=function(t){return gt(Et,t)||(Et[t]=Z&&gt(xt,t)?xt[t]:St("Symbol."+t)),Et[t]},Mt=TypeError,zt=Tt("toPrimitive"),Nt=function(t,e){if(!W(t)||rt(t))return t;var r,n=lt(t,zt);if(n){if(void 0===e&&(e="default"),r=w(n,t,e),!W(r)||rt(r))return r;throw new Mt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&B(r=t.toString)&&!W(n=w(r,t)))return n;if(B(r=t.valueOf)&&!W(n=w(r,t)))return n;if("string"!==e&&B(r=t.toString)&&!W(n=w(r,t)))return n;throw new ut("Can't convert object to primitive value")}(t,e)},Ot=function(t){var e=Nt(t,"string");return rt(e)?e:e+""},Dt=p.document,Pt=W(Dt)&&W(Dt.createElement),kt=function(t){return Pt?Dt.createElement(t):{}},jt=!y&&!g((function(){return 7!==Object.defineProperty(kt("div"),"a",{get:function(){return 7}}).a})),At=Object.getOwnPropertyDescriptor,Ht={f:y?At:function(t,e){if(t=I(t),e=Ot(e),jt)try{return At(t,e)}catch(t){}if(gt(t,e))return T(!w(S.f,t,e),t[e])}},Ct=y&&g((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Vt=String,Rt=TypeError,It=function(t){if(W(t))return t;throw new Rt(Vt(t)+" is not an object")},Lt=TypeError,Bt=Object.defineProperty,Wt=Object.getOwnPropertyDescriptor,_t="enumerable",Ft="configurable",qt="writable",$t={f:y?Ct?function(t,e,r){if(It(t),e=Ot(e),It(r),"function"==typeof t&&"prototype"===e&&"value"in r&&qt in r&&!r[qt]){var n=Wt(t,e);n&&n[qt]&&(t[e]=r.value,r={configurable:Ft in r?r[Ft]:n[Ft],enumerable:_t in r?r[_t]:n[_t],writable:!1});}return Bt(t,e,r)}:Bt:function(t,e,r){if(It(t),e=Ot(e),It(r),jt)try{return Bt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new Lt("Accessors not supported");return "value"in r&&(t[e]=r.value),t}},Gt=y?function(t,e,r){return $t.f(t,e,T(1,r))}:function(t,e,r){return t[e]=r,t},Ut=Function.prototype,Xt=y&&Object.getOwnPropertyDescriptor,Kt=gt(Ut,"name"),Yt={EXISTS:Kt,PROPER:Kt&&"something"===function(){}.name,CONFIGURABLE:Kt&&(!y||y&&Xt(Ut,"name").configurable)},Jt=O(Function.toString);B(ft.inspectSource)||(ft.inspectSource=function(t){return Jt(t)});var Qt,Zt,te,ee=ft.inspectSource,re=p.WeakMap,ne=B(re)&&/native code/.test(String(re)),oe=dt("keys"),ie=function(t){return oe[t]||(oe[t]=wt(t))},ae={},le="Object already initialized",ue=p.TypeError,ce=p.WeakMap;if(ne||ft.state){var se=ft.state||(ft.state=new ce);se.get=se.get,se.has=se.has,se.set=se.set,Qt=function(t,e){if(se.has(t))throw new ue(le);return e.facade=t,se.set(t,e),e},Zt=function(t){return se.get(t)||{}},te=function(t){return se.has(t)};}else {var fe=ie("state");ae[fe]=!0,Qt=function(t,e){if(gt(t,fe))throw new ue(le);return e.facade=t,Gt(t,fe,e),e},Zt=function(t){return gt(t,fe)?t[fe]:{}},te=function(t){return gt(t,fe)};}var de={set:Qt,get:Zt,has:te,enforce:function(t){return te(t)?Zt(t):Qt(t,{})},getterFor:function(t){return function(e){var r;if(!W(e)||(r=Zt(e)).type!==t)throw new ue("Incompatible receiver, "+t+" required");return r}}},ve=f((function(t){var e=Yt.CONFIGURABLE,r=de.enforce,n=de.get,o=String,i=Object.defineProperty,a=O("".slice),l=O("".replace),u=O([].join),c=y&&!g((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),f=t.exports=function(t,n,f){"Symbol("===a(o(n),0,7)&&(n="["+l(o(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(n="get "+n),f&&f.setter&&(n="set "+n),(!gt(t,"name")||e&&t.name!==n)&&(y?i(t,"name",{value:n,configurable:!0}):t.name=n),c&&f&&gt(f,"arity")&&t.length!==f.arity&&i(t,"length",{value:f.arity});try{f&&gt(f,"constructor")&&f.constructor?y&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var d=r(t);return gt(d,"source")||(d.source=u(s,"string"==typeof n?n:"")),t};Function.prototype.toString=f((function(){return B(this)&&n(this).source||ee(this)}),"toString");})),he=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(B(r)&&ve(r,i,n),n.global)o?t[e]=r:st(e,r);else {try{n.unsafe?t[e]&&(o=!0):delete t[e];}catch(t){}o?t[e]=r:$t.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable});}return t},pe=Math.ceil,ge=Math.floor,ye=Math.trunc||function(t){var e=+t;return (e>0?ge:pe)(e)},be=function(t){var e=+t;return e!=e||0===e?0:ye(e)},me=Math.max,we=Math.min,xe=function(t,e){var r=be(t);return r<0?me(r+e,0):we(r,e)},Ee=Math.min,Se=function(t){var e=be(t);return e>0?Ee(e,9007199254740991):0},Te=function(t){return Se(t.length)},Me=function(t){return function(e,r,n){var o=I(e),i=Te(o);if(0===i)return !t&&-1;var a,l=xe(n,i);if(t&&r!=r){for(;i>l;)if((a=o[l++])!=a)return !0}else for(;i>l;l++)if((t||l in o)&&o[l]===r)return t||l||0;return !t&&-1}},ze={includes:Me(!0),indexOf:Me(!1)},Ne=ze.indexOf,Oe=O([].push),De=function(t,e){var r,n=I(t),o=0,i=[];for(r in n)!gt(ae,r)&&gt(n,r)&&Oe(i,r);for(;e.length>o;)gt(n,r=e[o++])&&(~Ne(i,r)||Oe(i,r));return i},Pe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ke=Pe.concat("length","prototype"),je={f:Object.getOwnPropertyNames||function(t){return De(t,ke)}},Ae={f:Object.getOwnPropertySymbols},He=O([].concat),Ce=_("Reflect","ownKeys")||function(t){var e=je.f(It(t)),r=Ae.f;return r?He(e,r(t)):e},Ve=function(t,e,r){for(var n=Ce(e),o=$t.f,i=Ht.f,a=0;a<n.length;a++){var l=n[a];gt(t,l)||r&&gt(r,l)||o(t,l,i(e,l));}},Re=/#|\.prototype\./,Ie=function(t,e){var r=Be[Le(t)];return r===_e||r!==We&&(B(e)?g(e):!!e)},Le=Ie.normalize=function(t){return String(t).replace(Re,".").toLowerCase()},Be=Ie.data={},We=Ie.NATIVE="N",_e=Ie.POLYFILL="P",Fe=Ie,qe=Ht.f,$e=function(t,e){var r,n,o,i,a,l=t.target,u=t.global,c=t.stat;if(r=u?p:c?p[l]||st(l,{}):p[l]&&p[l].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=qe(r,n))&&a.value:r[n],!Fe(u?n:l+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ve(i,o);}(t.sham||o&&o.sham)&&Gt(i,"sham",!0),he(r,n,i,t);}},Ge=Array.isArray||function(t){return "Array"===k(t)},Ue={};Ue[Tt("toStringTag")]="z";var Xe="[object z]"===String(Ue),Ke=Tt("toStringTag"),Ye=Object,Je="Arguments"===k(function(){return arguments}()),Qe=Xe?k:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Ye(t),Ke))?r:Je?k(e):"Object"===(n=k(e))&&B(e.callee)?"Arguments":n},Ze=function(){},tr=_("Reflect","construct"),er=/^\s*(?:class|function)\b/,rr=O(er.exec),nr=!er.test(Ze),or=function(t){if(!B(t))return !1;try{return tr(Ze,[],t),!0}catch(t){return !1}},ir=function(t){if(!B(t))return !1;switch(Qe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return nr||!!rr(er,ee(t))}catch(t){return !0}};ir.sham=!0;var ar=!tr||g((function(){var t;return or(or.call)||!or(Object)||!or((function(){t=!0;}))||t}))?ir:or,lr=function(t,e,r){y?$t.f(t,e,T(0,r)):t[e]=r;},ur=Tt("species"),cr=function(t){return J>=51||!g((function(){var e=[];return (e.constructor={})[ur]=function(){return {foo:1}},1!==e[t](Boolean).foo}))},sr=O([].slice),fr=cr("slice"),dr=Tt("species"),vr=Array,hr=Math.max;$e({target:"Array",proto:!0,forced:!fr},{slice:function(t,e){var r,n,o,i=I(this),a=Te(i),l=xe(t,a),u=xe(void 0===e?a:e,a);if(Ge(i)&&(r=i.constructor,(ar(r)&&(r===vr||Ge(r.prototype))||W(r)&&null===(r=r[dr]))&&(r=void 0),r===vr||void 0===r))return sr(i,l,u);for(n=new(void 0===r?vr:r)(hr(u-l,0)),o=0;l<u;l++,o++)l in i&&lr(n,o,i[l]);return n.length=o,n}});var pr,gr=String,yr=function(t){if("Symbol"===Qe(t))throw new TypeError("Cannot convert a Symbol value to a string");return gr(t)},br=function(){var t=It(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},mr=p.RegExp,wr=g((function(){var t=mr("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),xr=wr||g((function(){return !mr("a","y").sticky})),Er={BROKEN_CARET:wr||g((function(){var t=mr("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:xr,UNSUPPORTED_Y:wr},Sr=Object.keys||function(t){return De(t,Pe)},Tr=y&&!Ct?Object.defineProperties:function(t,e){It(t);for(var r,n=I(e),o=Sr(e),i=o.length,a=0;i>a;)$t.f(t,r=o[a++],n[r]);return t},Mr={f:Tr},zr=_("document","documentElement"),Nr="prototype",Or="script",Dr=ie("IE_PROTO"),Pr=function(){},kr=function(t){return "<"+Or+">"+t+"</"+Or+">"},jr=function(t){t.write(kr("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ar=function(){try{pr=new ActiveXObject("htmlfile");}catch(t){}var t,e,r;Ar="undefined"!=typeof document?document.domain&&pr?jr(pr):(e=kt("iframe"),r="java"+Or+":",e.style.display="none",zr.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(kr("document.F=Object")),t.close(),t.F):jr(pr);for(var n=Pe.length;n--;)delete Ar[Nr][Pe[n]];return Ar()};ae[Dr]=!0;var Hr,Cr,Vr=Object.create||function(t,e){var r;return null!==t?(Pr[Nr]=It(t),r=new Pr,Pr[Nr]=null,r[Dr]=t):r=Ar(),void 0===e?r:Mr.f(r,e)},Rr=p.RegExp,Ir=g((function(){var t=Rr(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)})),Lr=p.RegExp,Br=g((function(){var t=Lr("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Wr=de.get,_r=dt("native-string-replace",String.prototype.replace),Fr=RegExp.prototype.exec,qr=Fr,$r=O("".charAt),Gr=O("".indexOf),Ur=O("".replace),Xr=O("".slice),Kr=(Cr=/b*/g,w(Fr,Hr=/a/,"a"),w(Fr,Cr,"a"),0!==Hr.lastIndex||0!==Cr.lastIndex),Yr=Er.BROKEN_CARET,Jr=void 0!==/()??/.exec("")[1];(Kr||Jr||Yr||Ir||Br)&&(qr=function(t){var e,r,n,o,i,a,l,u=this,c=Wr(u),s=yr(t),f=c.raw;if(f)return f.lastIndex=u.lastIndex,e=w(qr,f,s),u.lastIndex=f.lastIndex,e;var d=c.groups,v=Yr&&u.sticky,h=w(br,u),p=u.source,g=0,y=s;if(v&&(h=Ur(h,"y",""),-1===Gr(h,"g")&&(h+="g"),y=Xr(s,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==$r(s,u.lastIndex-1))&&(p="(?: "+p+")",y=" "+y,g++),r=new RegExp("^(?:"+p+")",h)),Jr&&(r=new RegExp("^"+p+"$(?!\\s)",h)),Kr&&(n=u.lastIndex),o=w(Fr,v?r:u,y),v?o?(o.input=Xr(o.input,g),o[0]=Xr(o[0],g),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Kr&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),Jr&&o&&o.length>1&&w(_r,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0);})),o&&d)for(o.groups=a=Vr(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var Qr=qr;$e({target:"RegExp",proto:!0,forced:/./.exec!==Qr},{exec:Qr});var Zr,tn=/"/g,en=O("".replace);$e({target:"String",proto:!0,forced:(Zr="anchor",g((function(){var t=""[Zr]('"');return t!==t.toLowerCase()||t.split('"').length>3})))},{anchor:function(t){return e="a",r="name",n=t,o=yr(R(this)),i="<"+e,""!==r&&(i+=" "+r+'="'+en(yr(n),tn,"&quot;")+'"'),i+">"+o+"</"+e+">";var e,r,n,o,i;}});var rn=function(t,e){return rn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);},rn(t,e)};var nn=function(){return nn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},nn.apply(this,arguments)};function on(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(u){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=e.call(t,a);}catch(t){l=[6,t],n=0;}finally{r=o=0;}if(5&l[0])throw l[1];return {value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}function an(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ln(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value);}catch(t){o={error:t};}finally{try{n&&!n.done&&(r=i.return)&&r.call(i);}finally{if(o)throw o.error}}return a}function un(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var cn=$t.f,sn=Tt("unscopables"),fn=Array.prototype;void 0===fn[sn]&&cn(fn,sn,{configurable:!0,value:Vr(null)});var dn,vn,hn,pn=function(t){fn[sn][t]=!0;},gn={},yn=!g((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),bn=ie("IE_PROTO"),mn=Object,wn=mn.prototype,xn=yn?mn.getPrototypeOf:function(t){var e=ht(t);if(gt(e,bn))return e[bn];var r=e.constructor;return B(r)&&e instanceof r?r.prototype:e instanceof mn?wn:null},En=Tt("iterator"),Sn=!1;[].keys&&("next"in(hn=[].keys())?(vn=xn(xn(hn)))!==Object.prototype&&(dn=vn):Sn=!0);var Tn=!W(dn)||g((function(){var t={};return dn[En].call(t)!==t}));Tn&&(dn={}),B(dn[En])||he(dn,En,(function(){return this}));var Mn={IteratorPrototype:dn,BUGGY_SAFARI_ITERATORS:Sn},zn=$t.f,Nn=Tt("toStringTag"),On=function(t,e,r){t&&!r&&(t=t.prototype),t&&!gt(t,Nn)&&zn(t,Nn,{configurable:!0,value:e});},Dn=Mn.IteratorPrototype,Pn=function(){return this},kn=String,jn=TypeError,An=function(t){if(function(t){return W(t)||null===t}(t))return t;throw new jn("Can't set "+kn(t)+" as a prototype")},Hn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=function(t,e,r){try{return O(at(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array;}catch(t){}return function(r,n){return R(r),An(n),W(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),Cn=Yt.PROPER,Vn=Yt.CONFIGURABLE,Rn=Mn.IteratorPrototype,In=Mn.BUGGY_SAFARI_ITERATORS,Ln=Tt("iterator"),Bn="keys",Wn="values",_n="entries",Fn=function(){return this},qn=function(t,e,r,n,o,i,a){!function(t,e,r,n){var o=e+" Iterator";t.prototype=Vr(Dn,{next:T(+!n,r)}),On(t,o,!1),gn[o]=Pn;}(r,e,n);var l,u,c,s=function(t){if(t===o&&p)return p;if(!In&&t&&t in v)return v[t];switch(t){case Bn:case Wn:case _n:return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",d=!1,v=t.prototype,h=v[Ln]||v["@@iterator"]||o&&v[o],p=!In&&h||s(o),g="Array"===e&&v.entries||h;if(g&&(l=xn(g.call(new t)))!==Object.prototype&&l.next&&(xn(l)!==Rn&&(Hn?Hn(l,Rn):B(l[Ln])||he(l,Ln,Fn)),On(l,f,!0)),Cn&&o===Wn&&h&&h.name!==Wn&&(Vn?Gt(v,"name",Wn):(d=!0,p=function(){return w(h,this)})),o)if(u={values:s(Wn),keys:i?p:s(Bn),entries:s(_n)},a)for(c in u)(In||d||!(c in v))&&he(v,c,u[c]);else $e({target:e,proto:!0,forced:In||d},u);return v[Ln]!==p&&he(v,Ln,p,{name:o}),gn[e]=p,u},$n=function(t,e){return {value:t,done:e}},Gn=$t.f,Un="Array Iterator",Xn=de.set,Kn=de.getterFor(Un),Yn=qn(Array,"Array",(function(t,e){Xn(this,{type:Un,target:I(t),index:0,kind:e});}),(function(){var t=Kn(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,$n(void 0,!0);switch(t.kind){case"keys":return $n(r,!1);case"values":return $n(e[r],!1)}return $n([r,e[r]],!1)}),"values"),Jn=gn.Arguments=gn.Array;if(pn("keys"),pn("values"),pn("entries"),y&&"values"!==Jn.name)try{Gn(Jn,"name",{value:"values"});}catch(t){}var Qn=Xe?{}.toString:function(){return "[object "+Qe(this)+"]"};Xe||he(Object.prototype,"toString",Qn,{unsafe:!0});var Zn=O("".charAt),to=O("".charCodeAt),eo=O("".slice),ro=function(t){return function(e,r){var n,o,i=yr(R(e)),a=be(r),l=i.length;return a<0||a>=l?t?"":void 0:(n=to(i,a))<55296||n>56319||a+1===l||(o=to(i,a+1))<56320||o>57343?t?Zn(i,a):n:t?eo(i,a,a+2):o-56320+(n-55296<<10)+65536}},no={codeAt:ro(!1),charAt:ro(!0)},oo=no.charAt,io="String Iterator",ao=de.set,lo=de.getterFor(io);qn(String,"String",(function(t){ao(this,{type:io,string:yr(t),index:0});}),(function(){var t,e=lo(this),r=e.string,n=e.index;return n>=r.length?$n(void 0,!0):(t=oo(r,n),e.index+=t.length,$n(t,!1))}));var uo=je.f,co="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],so={f:function(t){return co&&"Window"===k(t)?function(t){try{return uo(t)}catch(t){return sr(co)}}(t):uo(I(t))}},fo=g((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8});}})),vo=Object.isExtensible,ho=g((function(){vo(1);}))||fo?function(t){return !!W(t)&&((!fo||"ArrayBuffer"!==k(t))&&(!vo||vo(t)))}:vo,po=!g((function(){return Object.isExtensible(Object.preventExtensions({}))})),go=f((function(t){var e=$t.f,r=!1,n=wt("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}});},a=t.exports={enable:function(){a.enable=function(){},r=!0;var t=je.f,e=O([].splice),o={};o[n]=1,t(o).length&&(je.f=function(r){for(var o=t(r),i=0,a=o.length;i<a;i++)if(o[i]===n){e(o,i,1);break}return o},$e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:so.f}));},fastKey:function(t,e){if(!W(t))return "symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!gt(t,n)){if(!ho(t))return "F";if(!e)return "E";i(t);}return t[n].objectID},getWeakData:function(t,e){if(!gt(t,n)){if(!ho(t))return !0;if(!e)return !1;i(t);}return t[n].weakData},onFreeze:function(t){return po&&r&&ho(t)&&!gt(t,n)&&i(t),t}};ae[n]=!0;})),yo=function(t){if("Function"===k(t))return O(t)},bo=yo(yo.bind),mo=function(t,e){return at(t),void 0===e?t:b?bo(t,e):function(){return t.apply(e,arguments)}},wo=Tt("iterator"),xo=Array.prototype,Eo=function(t){return void 0!==t&&(gn.Array===t||xo[wo]===t)},So=Tt("iterator"),To=function(t){if(!C(t))return lt(t,So)||lt(t,"@@iterator")||gn[Qe(t)]},Mo=TypeError,zo=function(t,e){var r=arguments.length<2?To(t):e;if(at(r))return It(w(r,t));throw new Mo(ot(t)+" is not iterable")},No=function(t,e,r){var n,o;It(t);try{if(!(n=lt(t,"return"))){if("throw"===e)throw r;return r}n=w(n,t);}catch(t){o=!0,n=t;}if("throw"===e)throw r;if(o)throw n;return It(n),r},Oo=TypeError,Do=function(t,e){this.stopped=t,this.result=e;},Po=Do.prototype,ko=function(t,e,r){var n,o,i,a,l,u,c,s=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),v=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),p=mo(e,s),g=function(t){return n&&No(n,"normal",t),new Do(!0,t)},y=function(t){return f?(It(t),h?p(t[0],t[1],g):p(t[0],t[1])):h?p(t,g):p(t)};if(d)n=t.iterator;else if(v)n=t;else {if(!(o=To(t)))throw new Oo(ot(t)+" is not iterable");if(Eo(o)){for(i=0,a=Te(t);a>i;i++)if((l=y(t[i]))&&F(Po,l))return l;return new Do(!1)}n=zo(t,o);}for(u=d?t.next:n.next;!(c=w(u,n)).done;){try{l=y(c.value);}catch(t){No(n,"throw",t);}if("object"==typeof l&&l&&F(Po,l))return l}return new Do(!1)},jo=TypeError,Ao=function(t,e){if(F(e,t))return t;throw new jo("Incorrect invocation")},Ho=Tt("iterator"),Co=!1;try{var Vo=0,Ro={next:function(){return {done:!!Vo++}},return:function(){Co=!0;}};Ro[Ho]=function(){return this},Array.from(Ro,(function(){throw 2}));}catch(t){}var Io=function(t,e){try{if(!e&&!Co)return !1}catch(t){return !1}var r=!1;try{var n={};n[Ho]=function(){return {next:function(){return {done:r=!0}}}},t(n);}catch(t){}return r},Lo=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=p[t],l=a&&a.prototype,u=a,c={},s=function(t){var e=O(l[t]);he(l,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return !(o&&!W(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!W(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return !(o&&!W(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this});};if(Fe(t,!B(a)||!(o||l.forEach&&!g((function(){(new a).entries().next();})))))u=r.getConstructor(e,t,n,i),go.enable();else if(Fe(t,!0)){var f=new u,d=f[i](o?{}:-0,1)!==f,v=g((function(){f.has(1);})),h=Io((function(t){new a(t);})),y=!o&&g((function(){for(var t=new a,e=5;e--;)t[i](e,e);return !t.has(-0)}));h||((u=e((function(t,e){Ao(t,l);var r=function(t,e,r){var n,o;return Hn&&B(n=e.constructor)&&n!==r&&W(o=n.prototype)&&o!==r.prototype&&Hn(t,o),t}(new a,t,u);return C(e)||ko(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=l,l.constructor=u),(v||y)&&(s("delete"),s("has"),n&&s("get")),(y||d)&&s(i),o&&l.clear&&delete l.clear;}return c[t]=u,$e({global:!0,constructor:!0,forced:u!==a},c),On(u,t),o||r.setStrong(u,t,n),u},Bo=function(t,e,r){for(var n in e)he(t,n,e[n],r);return t},Wo=Tt("species"),_o=Array,Fo=function(t,e){return new(function(t){var e;return Ge(t)&&(e=t.constructor,(ar(e)&&(e===_o||Ge(e.prototype))||W(e)&&null===(e=e[Wo]))&&(e=void 0)),void 0===e?_o:e}(t))(0===e?0:e)},qo=O([].push),$o=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,l=5===t||i;return function(u,c,s,f){for(var d,v,h=ht(u),p=H(h),g=Te(p),y=mo(c,s),b=0,m=f||Fo,w=e?m(u,g):r||a?m(u,0):void 0;g>b;b++)if((l||b in p)&&(v=y(d=p[b],b,h),t))if(e)w[b]=v;else if(v)switch(t){case 3:return !0;case 5:return d;case 6:return b;case 2:qo(w,d);}else switch(t){case 4:return !1;case 7:qo(w,d);}return i?-1:n||o?o:w}},Go={forEach:$o(0),map:$o(1),filter:$o(2),some:$o(3),every:$o(4),find:$o(5),findIndex:$o(6),filterReject:$o(7)},Uo=go.getWeakData,Xo=de.set,Ko=de.getterFor,Yo=Go.find,Jo=Go.findIndex,Qo=O([].splice),Zo=0,ti=function(t){return t.frozen||(t.frozen=new ei)},ei=function(){this.entries=[];},ri=function(t,e){return Yo(t.entries,(function(t){return t[0]===e}))};ei.prototype={get:function(t){var e=ri(this,t);if(e)return e[1]},has:function(t){return !!ri(this,t)},set:function(t,e){var r=ri(this,t);r?r[1]=e:this.entries.push([t,e]);},delete:function(t){var e=Jo(this.entries,(function(e){return e[0]===t}));return ~e&&Qo(this.entries,e,1),!!~e}};var ni={getConstructor:function(t,e,r,n){var o=t((function(t,o){Ao(t,i),Xo(t,{type:e,id:Zo++,frozen:null}),C(o)||ko(o,t[n],{that:t,AS_ENTRIES:r});})),i=o.prototype,a=Ko(e),l=function(t,e,r){var n=a(t),o=Uo(It(e),!0);return !0===o?ti(n).set(e,r):o[n.id]=r,t};return Bo(i,{delete:function(t){var e=a(this);if(!W(t))return !1;var r=Uo(t);return !0===r?ti(e).delete(t):r&&gt(r,e.id)&&delete r[e.id]},has:function(t){var e=a(this);if(!W(t))return !1;var r=Uo(t);return !0===r?ti(e).has(t):r&&gt(r,e.id)}}),Bo(i,r?{get:function(t){var e=a(this);if(W(t)){var r=Uo(t);if(!0===r)return ti(e).get(t);if(r)return r[e.id]}},set:function(t,e){return l(this,t,e)}}:{add:function(t){return l(this,t,!0)}}),o}};Lo("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),ni);var oi={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},ii=kt("span").classList,ai=ii&&ii.constructor&&ii.constructor.prototype,li=ai===Object.prototype?void 0:ai,ui=Tt("iterator"),ci=Yn.values,si=function(t,e){if(t){if(t[ui]!==ci)try{Gt(t,ui,ci);}catch(e){t[ui]=ci;}if(On(t,e,!0),oi[e])for(var r in Yn)if(t[r]!==Yn[r])try{Gt(t,r,Yn[r]);}catch(e){t[r]=Yn[r];}}};for(var fi in oi)si(p[fi]&&p[fi].prototype,fi);si(li,"DOMTokenList");var di,vi=de.enforce,hi=Object,pi=Array.isArray,gi=hi.isExtensible,yi=hi.isFrozen,bi=hi.isSealed,mi=hi.freeze,wi=hi.seal,xi=!p.ActiveXObject&&"ActiveXObject"in p,Ei=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Si=Lo("WeakMap",Ei,ni),Ti=Si.prototype,Mi=O(Ti.set);if(ne)if(xi){di=ni.getConstructor(Ei,"WeakMap",!0),go.enable();var zi=O(Ti.delete),Ni=O(Ti.has),Oi=O(Ti.get);Bo(Ti,{delete:function(t){if(W(t)&&!gi(t)){var e=vi(this);return e.frozen||(e.frozen=new di),zi(this,t)||e.frozen.delete(t)}return zi(this,t)},has:function(t){if(W(t)&&!gi(t)){var e=vi(this);return e.frozen||(e.frozen=new di),Ni(this,t)||e.frozen.has(t)}return Ni(this,t)},get:function(t){if(W(t)&&!gi(t)){var e=vi(this);return e.frozen||(e.frozen=new di),Ni(this,t)?Oi(this,t):e.frozen.get(t)}return Oi(this,t)},set:function(t,e){if(W(t)&&!gi(t)){var r=vi(this);r.frozen||(r.frozen=new di),Ni(this,t)?Mi(this,t,e):r.frozen.set(t,e);}else Mi(this,t,e);return this}});}else po&&g((function(){var t=mi([]);return Mi(new Si,t,1),!yi(t)}))&&Bo(Ti,{set:function(t,e){var r;return pi(t)&&(yi(t)?r=mi:bi(t)&&(r=wi)),Mi(this,t,e),r&&r(t),this}});var Di=new WeakMap,Pi=new WeakMap,ki=ze.includes,ji=g((function(){return !Array(1).includes()}));$e({target:"Array",proto:!0,forced:ji},{includes:function(t){return ki(this,t,arguments.length>1?arguments[1]:void 0)}}),pn("includes");var Ai=Go.map,Hi=cr("map");$e({target:"Array",proto:!0,forced:!Hi},{map:function(t){return Ai(this,t,arguments.length>1?arguments[1]:void 0)}});var Ci=Tt("match"),Vi=TypeError,Ri=function(t){if(function(t){var e;return W(t)&&(void 0!==(e=t[Ci])?!!e:"RegExp"===k(t))}(t))throw new Vi("The method doesn't accept regular expressions");return t},Ii=Tt("match"),Li=O("".indexOf);$e({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e);}catch(r){try{return e[Ii]=!1,"/./"[t](e)}catch(t){}}return !1}("includes")},{includes:function(t){return !!~Li(yr(R(this)),yr(Ri(t)),arguments.length>1?arguments[1]:void 0)}});var Bi={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function Wi(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=Bi,i=r.map((function(t){var e;return null===(e=null==o?void 0:o.blocks)||void 0===e?void 0:e[t]}));return function(t){return function(t){return !e.Editor.isEditor(t)&&e.Element.isElement(t)&&"type"in t}(t)&&i.includes(t.type)}}function _i(t,r){for(var n=ln(r,2),o=n[0],i=n[1],a=[],l=2;l<arguments.length;l++)a[l-2]=arguments[l];var u=ln(e.Node.common(t,o,i),2),c=u[0],s=u[1];return !!Wi.apply(void 0,un([t],ln(a)))(c,s)||!!e.Editor.above(t,{match:Wi.apply(void 0,un([t],ln(a))),at:s})}function Fi(t,r){var n,o;void 0===r&&(r={});var i=[];try{for(var a=an(function(t,r){var n,o,i,a,l,u,c,s,f,d,v,h,p,g,y,b,m,w;return void 0===r&&(r={}),on(this,(function(x){switch(x.label){case 0:if(n=ln(e.Editor.nodes(t,{match:Wi(t,"table"),at:r.at}),1),!(o=n[0]))return [2,[]];i=ln(o,2),a=i[1],x.label=1;case 1:x.trys.push([1,6,7,8]),l=an(e.Editor.nodes(t,{match:Wi(t,"table"),at:a})),u=l.next(),x.label=2;case 2:if(u.done)return [3,5];c=ln(u.value,2),s=c[1],f=[];try{for(m=void 0,d=an(e.Editor.nodes(t,{match:Wi(t,"tr"),at:s})),v=d.next();!v.done;v=d.next())h=ln(v.value,2),p=h[1],f.push(un([],ln(e.Editor.nodes(t,{match:Wi(t,"th","td"),at:p}))));}catch(t){m={error:t};}finally{try{v&&!v.done&&(w=d.return)&&w.call(d);}finally{if(m)throw m.error}}return [4,f];case 3:x.sent(),x.label=4;case 4:return u=l.next(),[3,2];case 5:return [3,8];case 6:return g=x.sent(),y={error:g},[3,8];case 7:try{u&&!u.done&&(b=l.return)&&b.call(l);}finally{if(y)throw y.error}return [7];case 8:return [2]}}))}(t,{at:r.at})),l=a.next();!l.done;l=a.next()){for(var u=l.value,c=[],s=0;s<u.length;s++){c[s]||(c[s]=[]);for(var f=0;f<u[s].length;f++)for(var d=ln(u[s][f],1)[0],v=d.rowSpan,h=void 0===v?1:v,p=d.colSpan,g=void 0===p?1:p,y=0;y<g+0;y++)for(var b=0;b<h;b++)c[s+b]||(c[s+b]=[]),c[s+b][f+y]||(c[s+b][f+y]=[u[s+b][f+y],{rtl:y-0+1,ltr:g-y+0,ttb:b+1,btt:h-b}]);}i.push.apply(i,un([],ln(c)));}}catch(t){n={error:t};}finally{try{l&&!l.done&&(o=a.return)&&o.call(a);}finally{if(n)throw n.error}}return i}var qi=function(){function t(t,e){this.x=t,this.y=e;}return t.valueOf=function(t,e){return new this(t,e)},t.equals=function(t,e){return t.x===e.x&&t.y===e.y},t}(),$i={isInTable:function(t,r){return void 0===r&&(r={}),!!ln(e.Editor.nodes(t,{match:Wi(t,"table"),at:r.at}),1)[0]},selection:function(t){var e,r,n,o,i,a,l,u;return on(this,(function(c){switch(c.label){case 0:e=Di.get(t),r=0,c.label=1;case 1:if(!(e&&r<e.length))return [3,4];for(n=[],o=0;o<e[r].length;o++)i=ln(e[r][o],2),a=i[0],l=i[1],u=l.ltr,1===l.ttb&&n.push(a),o+=u-1;return [4,n];case 2:c.sent(),c.label=3;case 3:return r++,[3,1];case 4:return [2]}}))},unselect:function(t){Pi.delete(t),Di.delete(t);},isSelected:function(t,e){var r=Pi.get(t);return !!r&&r.has(e)}};function Gi(r){var n=r.selection;if(null==n)return !1;var o=ln(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table-cell")}}),1)[0];if(o){var i=ln(o,2)[1],a=e.Editor.start(r,i);if(e.Point.equals(n.anchor,a))return !0}return !1}var Ui=Go.find,Xi="find",Ki=!0;Xi in[]&&Array(1)[Xi]((function(){Ki=!1;})),$e({target:"Array",proto:!0,forced:Ki},{find:function(t){return Ui(this,t,arguments.length>1?arguments[1]:void 0)}}),pn(Xi);var Yi="\t\n\v\f\r                 \u2028\u2029\ufeff",Ji=O("".replace),Qi=RegExp("^["+Yi+"]+"),Zi=RegExp("(^|[^"+Yi+"])["+Yi+"]+$"),ta=function(t){return function(e){var r=yr(R(e));return 1&t&&(r=Ji(r,Qi,"")),2&t&&(r=Ji(r,Zi,"$1")),r}},ea={start:ta(1),end:ta(2),trim:ta(3)},ra=Yt.PROPER,na=ea.trim;function oa(t){return t.length?t[0].tagName.toLowerCase():""}function ia(t,e){for(var r="",n=(t.attr("style")||"").split(";"),o=n.length,i=0;i<o;i++){var a=n[i];if(a){var l=a.split(":");l[0].trim()===e&&(r=l[1].trim());}}return r}function aa(t){var e,r,n=[],o=t.reduce((function(t,e){return t+e}),0);try{for(var i=an(t),a=i.next();!a.done;a=i.next()){var l=a.value;n.push(l/o);}}catch(t){e={error:t};}finally{try{a&&!a.done&&(r=i.return)&&r.call(i);}finally{if(e)throw e.error}}return n}$e({target:"String",proto:!0,forced:function(t){return g((function(){return !!Yi[t]()||"​…᠎"!=="​…᠎"[t]()||ra&&Yi[t].name!==t}))}("trim")},{trim:function(){return na(this)}}),$e({global:!0,forced:p.globalThis!==p},{globalThis:p}),i.append&&(c.default.fn.append=i.append),i.on&&(c.default.fn.on=i.on),i.focus&&(c.default.fn.focus=i.focus),i.attr&&(c.default.fn.attr=i.attr),i.val&&(c.default.fn.val=i.val),i.html&&(c.default.fn.html=i.html),i.dataset&&(c.default.fn.dataset=i.dataset),i.addClass&&(c.default.fn.addClass=i.addClass),i.removeClass&&(c.default.fn.removeClass=i.removeClass),i.children&&(c.default.fn.children=i.children),i.each&&(c.default.fn.each=i.each),i.find&&(c.default.fn.find=i.find),i.data&&(c.default.fn.data=i.data),i.hide&&(c.default.fn.hide=i.hide),i.show&&(c.default.fn.show=i.show);var la=null;var ua=!1,ca=!1,sa=0,fa=0,da=null,va=c.default(window);va.on("mousedown",(function(t){var r=t.target;if(r.closest('[data-block-type="table-cell"]'))ua=!0;else if("DIV"==r.tagName&&r.closest(".column-resizer-item")){if(null==da)return;var n=ln(e.Editor.nodes(da,{match:Wi(da,"table")}),1),o=ln(n[0],1)[0],i=o.columnWidths,a=void 0===i?[]:i,l=o.resizingIndex,u=void 0===l?-1:l;ca=!0;var c=t.clientX;sa=c,fa=a[u],document.body.style.cursor="col-resize",t.preventDefault();}va.on("mousemove",ha),va.on("mouseup",pa);}));var ha=u.default((function(t){if(ca&&null!=da){t.preventDefault();var r=t.clientX,n=fa+(r-sa);(n=Math.floor(100*n)/100)<30&&(n=30);var o=ln(e.Editor.nodes(da,{match:Wi(da,"table")}),1),i=ln(o[0],1)[0],a=i.columnWidths,l=void 0===a?[]:a,u=i.resizingIndex,c=void 0===u?-1:u,s=l.reduce((function(t,e){return t+e}),0)-l[c],f=document.querySelector(".table-container");if(!(f&&s+n>f.clientWidth)){var d=un([],ln(l)).map((function(t){return Math.floor(t)}));d[c]=n,e.Transforms.setNodes(da,{columnWidths:d},{mode:"highest"});}}}),100);function pa(t){ua=!1,ca=!1,da=null,document.body.style.cursor="",va.off("mousemove",ha),va.off("mouseup",pa);}function ga(r,n,o,i){if(!r.isDisabled()&&!ua&&!ca){var a=n,l=a.width,u=void 0===l?"auto":l,c=a.columnWidths,s=void 0===c?[]:c,f=a.isHoverCellBorder,d=a.resizingIndex,v=o.clientX,h=o.target;if(t.isHTMLElememt(h))if(v>(y=h.getBoundingClientRect()).x+5&&v<y.x+y.width-5)return void(f&&e.Transforms.setNodes(r,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(t.isHTMLElememt(h)){var p=h.closest(".table");if(p)for(var g=o.clientX,y=p.getBoundingClientRect(),b=function(t){var e,r,n=[],o=0;try{for(var i=an(t),a=i.next();!a.done;a=i.next())o+=a.value,n.push(o);}catch(t){e={error:t};}finally{try{a&&!a.done&&(r=i.return)&&r.call(i);}finally{if(e)throw e.error}}return n}("100%"===u?aa(s).map((function(t){return t*i})):s),m=0;m<b.length;m++)if(g-y.x>=b[m]-5&&g-y.x<b[m]+5){if(d==m)return;return void e.Transforms.setNodes(r,{isHoverCellBorder:!0,resizingIndex:m},{mode:"highest"})}}1==f&&e.Transforms.setNodes(r,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"});}}function ya(t,r){"mouseenter"===r.type?e.Transforms.setNodes(t,{isResizing:!0},{mode:"highest"}):e.Transforms.setNodes(t,{isResizing:!1},{mode:"highest"});}function ba(t){var e=t.children||[];return 0===e.length?[]:(e[0]||{}).children||[]}function ma(t){return ba(t).every((function(t){return !!t.isHeader}))}var wa={type:"table",renderElem:function(r,o,i){var a=function(r,n){if(r.isDisabled())return !1;var o=r.selection;if(null==o)return !0;if(e.Range.isCollapsed(o))return !0;var i=o.anchor,a=o.focus,l=t.DomEditor.findPath(r,n),u=e.Editor.start(r,l),c=e.Editor.end(r,l),s=e.Point.compare(i,c)<=0&&e.Point.compare(i,u)>=0,f=e.Point.compare(a,c)<=0&&e.Point.compare(a,u)>=0;return !!(s&&f&&e.Path.equals(i.path.slice(0,3),a.path.slice(0,3)))}(i,r),u=r,c=u.width,s=void 0===c?"auto":c,f=u.height,d=u.columnWidths,v=void 0===d?[]:d,h=u.scrollWidth,p=void 0===h?0:h,g=u.isHoverCellBorder,y=u.resizingIndex,b=u.isResizing,m=t.DomEditor.isNodeSelected(i,r),w=ln($i.selection(i),1)[0],x=aa(v),E=n.jsx("div",{className:"table-container","data-selected":m,on:{mousedown:function(n){if("DIV"===n.target.tagName&&n.preventDefault(),!i.isDisabled()){n.target.closest('[data-block-type="table-cell"]')&&$i.unselect(i);var o=t.DomEditor.findPath(i,r),a=e.Editor.start(i,o),l=i.selection;if(null!=l)l.anchor.path[0]!==o[0]&&i.select(a);else i.select(a);}}}},n.jsx("table",{width:s,contentEditable:a,className:"table "+(w?"table-selection-none":""),style:{width:"100%"==s?s:v.reduce((function(t,e){return t+e}),0)+"px"},on:{mousemove:l.default((function(t){return ga(i,r,t,p)}),25)}},n.jsx("colgroup",{contentEditable:!1},v.map((function(t){return n.jsx("col",{width:t})}))),n.jsx("tbody",null,o)),n.jsx("div",{className:"column-resizer",contenteditable:"false"},v.map((function(t,e){var r=t;return "100%"==s&&(r=x[e]*p),n.jsx("div",{className:"column-resizer-item",style:{minWidth:r+"px"}},n.jsx("div",{className:"resizer-line-hotzone "+(g&&e==y?"visible ":"")+(b&&e==y?"highlight":""),style:{height:f+"px"},on:{mouseenter:function(t){return ya(i,t)},mouseleave:function(t){return ya(i,t)},mousedown:function(t){return function(t){ca||(da=t);}(i)}}},n.jsx("div",{className:"resizer-line"})))})))),S=n.h("div",{hook:{insert:function(r){var n=r.elm;return function(r,n){if(t.isHTMLElememt(n)){var o=n.querySelector("table");o&&(la=new ResizeObserver((function(t){var n=ln(t,1)[0].contentRect;e.Transforms.setNodes(r,{scrollWidth:n.width,height:n.height},{mode:"highest"});})),la.observe(o));}}(i,n)},destroy:function(){la&&(null==la||la.disconnect(),la=null);}}},E);return S}},xa={type:"table-row",renderElem:function(t,e,r){return n.jsx("tr",null,e)}},Ea={type:"table-cell",renderElem:function(e,r,o){var i=function(e,r){var n=t.DomEditor.getParentNode(e,r);if(null==n)return !1;var o=t.DomEditor.getParentNode(e,n);return null!=o&&ba(o).some((function(t){return t===r}))}(o,e),a=e,l=a.colSpan,u=void 0===l?1:l,c=a.rowSpan,s=void 0===c?1:c,f=a.isHeader,d=void 0!==f&&f,v=a.hidden,h=void 0!==v&&v,p=$i.isSelected(o,e);if(!i)return n.jsx("td",{colSpan:u,rowSpan:s,"data-block-type":"table-cell",className:p?"w-e-selected":"",style:{display:h?"none":""}},r);var g=d?"th":"td";return n.jsx(g,{colSpan:u,rowSpan:s,"data-block-type":"table-cell",className:p?"w-e-selected":"",style:{display:h?"none":""}},r)}},Sa=function(t,e){var r=[][t];return !!r&&g((function(){r.call(null,e||function(){return 1},1);}))},Ta=O([].join),Ma=H!==Object||!Sa("join",",");$e({target:"Array",proto:!0,forced:Ma},{join:function(t){return Ta(I(this),void 0===t?",":t)}});var za={type:"table",elemToHtml:function(t,e){var r=t,n=r.width,o=void 0===n?"auto":n,i=r.columnWidths,a=r.height,l=void 0===a?"auto":a,u=null==i?void 0:i.map((function(t){return "<col width="+t+"></col>"})).join("");return '<table style="width: '+o+";table-layout: fixed;height:"+l+'">'+(u?'<colgroup contentEditable="false">'+u+"</colgroup>":"")+"<tbody>"+e+"</tbody></table>"}},Na={type:"table-row",elemToHtml:function(t,e){return "<tr>"+e+"</tr>"}},Oa={type:"table-cell",elemToHtml:function(t,e){var r=t,n=r.colSpan,o=void 0===n?1:n,i=r.rowSpan,a=void 0===i?1:i,l=r.isHeader,u=void 0!==l&&l,c=r.width,s=void 0===c?"auto":c,f=r.hidden,d=u?"th":"td";return "<"+d+' colSpan="'+o+'" rowSpan="'+a+'" width="'+s+'" style="'+(void 0!==f&&f?"display:none":"")+'">'+e+"</"+d+">"}};var Da={selector:"table",preParseHtml:function(t){var e=c.default(t);if("table"!==oa(e))return t;var r=e.find("tbody");if(0===r.length)return t;var n=e.find("tr");return e.append(n),r.remove(),e[0]}},Pa=Object.assign,ka=Object.defineProperty,ja=O([].concat),Aa=!Pa||g((function(){if(y&&1!==Pa({b:1},Pa(ka({},"a",{enumerable:!0,get:function(){ka(this,"b",{value:3,enumerable:!1});}}),{b:2})).b)return !0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t;})),7!==Pa({},t)[r]||Sr(Pa({},e)).join("")!==n}))?function(t,e){for(var r=ht(t),n=arguments.length,o=1,i=Ae.f,a=S.f;n>o;)for(var l,u=H(arguments[o++]),c=i?ja(Sr(u),i(u)):Sr(u),s=c.length,f=0;s>f;)l=c[f++],y&&!w(a,u,l)||(r[l]=u[l]);return r}:Pa;function Ha(t,e){null==t.data&&(t.data={});var r=t.data;null==r.style&&(r.style={}),Object.assign(r.style,e);}$e({target:"Object",stat:!0,arity:2,forced:Object.assign!==Aa},{assign:Aa});var Ca,Va=Function.prototype,Ra=Va.apply,Ia=Va.call,La="object"==typeof Reflect&&Reflect.apply||(b?Ia.bind(Ra):function(){return Ia.apply(Ra,arguments)}),Ba=Tt("species"),Wa=RegExp.prototype,_a=function(t,e,r,n){var o=Tt(t),i=!g((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),a=i&&!g((function(){var e=!1,r=/a/;return "split"===t&&((r={}).constructor={},r.constructor[Ba]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var l=/./[o],u=e(o,""[t],(function(t,e,r,n,o){var a=e.exec;return a===Qr||a===Wa.exec?i&&!o?{done:!0,value:w(l,e,r,n)}:{done:!0,value:w(t,r,e,n)}:{done:!1}}));he(String.prototype,t,u[0]),he(Wa,o,u[1]);}n&&Gt(Wa[o],"sham",!0);},Fa=no.charAt,qa=function(t,e,r){return e+(r?Fa(t,e).length:1)},$a=Math.floor,Ga=O("".charAt),Ua=O("".replace),Xa=O("".slice),Ka=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ya=/\$([$&'`]|\d{1,2})/g,Ja=function(t,e,r,n,o,i){var a=r+t.length,l=n.length,u=Ya;return void 0!==o&&(o=ht(o),u=Ka),Ua(i,u,(function(i,u){var c;switch(Ga(u,0)){case"$":return "$";case"&":return t;case"`":return Xa(e,0,r);case"'":return Xa(e,a);case"<":c=o[Xa(u,1,-1)];break;default:var s=+u;if(0===s)return i;if(s>l){var f=$a(s/10);return 0===f?i:f<=l?void 0===n[f-1]?Ga(u,1):n[f-1]+Ga(u,1):i}c=n[s-1];}return void 0===c?"":c}))},Qa=TypeError,Za=function(t,e){var r=t.exec;if(B(r)){var n=w(r,t,e);return null!==n&&It(n),n}if("RegExp"===k(t))return w(Qr,t,e);throw new Qa("RegExp#exec called on incompatible receiver")},tl=Tt("replace"),el=Math.max,rl=Math.min,nl=O([].concat),ol=O([].push),il=O("".indexOf),al=O("".slice),ll="$0"==="a".replace(/./,"$0"),ul=!!/./[tl]&&""===/./[tl]("a","$0");_a("replace",(function(t,e,r){var n=ul?"$":"$0";return [function(t,r){var n=R(this),o=C(t)?void 0:lt(t,tl);return o?w(o,t,n,r):w(e,yr(n),t,r)},function(t,o){var i=It(this),a=yr(t);if("string"==typeof o&&-1===il(o,n)&&-1===il(o,"$<")){var l=r(e,i,a,o);if(l.done)return l.value}var u=B(o);u||(o=yr(o));var c,s=i.global;s&&(c=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=Za(i,a))&&(ol(d,f),s);){""===yr(f[0])&&(i.lastIndex=qa(a,Se(i.lastIndex),c));}for(var v,h="",p=0,g=0;g<d.length;g++){for(var y,b=yr((f=d[g])[0]),m=el(rl(be(f.index),a.length),0),w=[],x=1;x<f.length;x++)ol(w,void 0===(v=f[x])?v:String(v));var E=f.groups;if(u){var S=nl([b],w,m,a);void 0!==E&&ol(S,E),y=yr(La(o,void 0,S));}else y=Ja(b,a,m,w,E,o);m>=p&&(h+=al(a,p,m)+y,p=m+b.length);}return h+al(a,p)}]}),!!g((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!ll||ul);var cl=null===(Ca=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===Ca?void 0:Ca.getPropertyValue("--w-e-textarea-border-color");var sl=Go.filter,fl=cr("filter");$e({target:"Array",proto:!0,forced:!fl},{filter:function(t){return sl(this,t,arguments.length>1?arguments[1]:void 0)}});var dl=function(t,e,r,n){try{return n?e(It(r)[0],r[1]):e(r)}catch(e){No(t,"throw",e);}},vl=Array,hl=!Io((function(t){Array.from(t);}));$e({target:"Array",stat:!0,forced:hl},{from:function(t){var e=ht(t),r=ar(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=mo(o,n>2?arguments[2]:void 0));var a,l,u,c,s,f,d=To(e),v=0;if(!d||this===vl&&Eo(d))for(a=Te(e),l=r?new this(a):vl(a);a>v;v++)f=i?o(e[v],v):e[v],lr(l,v,f);else for(l=r?new this:[],s=(c=zo(e,d)).next;!(u=w(s,c)).done;v++)f=i?dl(c,o,[u.value,v],!0):u.value,lr(l,v,f);return l.length=v,l}});var pl=Go.forEach,gl=Sa("forEach")?[].forEach:function(t){return pl(this,t,arguments.length>1?arguments[1]:void 0)},yl=function(t){if(t&&t.forEach!==gl)try{Gt(t,"forEach",gl);}catch(e){t.forEach=gl;}};for(var bl in oi)oi[bl]&&yl(p[bl]&&p[bl].prototype);yl(li);var ml={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(r,n,o){var i=c.default(r);0===(n=n.filter((function(r){return "paragraph"===t.DomEditor.getNodeType(r)||(!!e.Text.isText(r)||!!o.isInline(r))}))).length&&(n=[{text:i.text().replace(/\s+/gm," ")}]);var a=parseInt(i.attr("colSpan")||"1"),l=parseInt(i.attr("rowSpan")||"1"),u="none"===ia(i,"display"),s=i.attr("width")||"auto";return {type:"table-cell",isHeader:"th"===oa(i),colSpan:a,rowSpan:l,width:s,children:n,hidden:u}}};var wl={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,r,n){return {type:"table-row",children:r.filter((function(e){return "table-cell"===t.DomEditor.getNodeType(e)}))}}};var xl={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,r,n){var o,i,a=c.default(e),l="auto";"100%"===ia(a,"width")&&(l="100%"),"100%"===a.attr("width")&&(l="100%");var u={type:"table",width:l,height:parseInt(ia(a,"height")||"0"),children:r.filter((function(e){return "table-row"===t.DomEditor.getNodeType(e)}))},s=(null===(o=a.find("tr")[0])||void 0===o?void 0:o.children)||[],f=(null===(i=a.find("colgroup")[0])||void 0===i?void 0:i.children)||null;if(f)u.columnWidths=Array.from(f).map((function(t){return parseInt(t.getAttribute("width"))}));else if(s.length>0){var d=[];Array.from(s).forEach((function(t){for(var e=parseInt(c.default(t).attr("colspan")||"1",10),r=parseInt(ia(c.default(t),"width")||"180",10),n=0;n<e;n++)d.push(r);})),u.columnWidths=d;}return u}};$e({target:"Array",proto:!0},{fill:function(t){for(var e=ht(this),r=Te(e),n=arguments.length,o=xe(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:xe(i,r);a>o;)e[o++]=t;return e}}),pn("fill");var El=RegExp.prototype,Sl=Yt.PROPER,Tl="toString",Ml=RegExp.prototype,zl=Ml[Tl],Nl=g((function(){return "/a/b"!==zl.call({source:"a",flags:"b"})})),Ol=Sl&&zl.name!==Tl;(Nl||Ol)&&he(Ml,Tl,(function(){var t=It(this),e=yr(t.source),r=yr(function(t){var e=t.flags;return void 0!==e||"flags"in El||gt(t,"flags")||!F(El,t)?e:w(br,t)}(t));return "/"+e+"/"+r}),{unsafe:!0});var Dl='<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>';var Pl=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.exec=function(t,e){},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||!!t.DomEditor.getSelectedElems(r).some((function(e){var n=t.DomEditor.getNodeType(e);return "pre"===n||("table"===n||("list-item"===n||!!r.isVoid(e)))})))},r.prototype.getPanelContentElem=function(t){var e=this;if(this.$content)return this.$content[0];for(var r=c.default('<div class="w-e-panel-content-table"></div>'),n=c.default("<span>0 &times; 0</span>"),o=c.default("<table></table>"),i=0;i<10;i++){for(var a=c.default("<tr></tr>"),l=0;l<10;l++){var u=c.default("<td></td>");u.attr("data-x",l.toString()),u.attr("data-y",i.toString()),a.append(u),u.on("mouseenter",(function(t){var e=t.target;if(null!=e){var r=c.default(e).dataset(),i=r.x,a=r.y;n[0].innerHTML=i+1+" &times; "+(a+1),o.children().each((function(t){c.default(t).children().each((function(t){var e=c.default(t),r=e.dataset(),n=r.x,o=r.y;n<=i&&o<=a?e.addClass("active"):e.removeClass("active");}));}));}})),u.on("click",(function(r){r.preventDefault();var n=r.target;if(null!=n){var o=c.default(n).dataset(),i=o.x,a=o.y;e.insertTable(t,a+1,i+1);}}));}o.append(a);}return r.append(o),r.append(n),this.$content=r,r[0]},r.prototype.insertTable=function(r,n,o){var i=parseInt(n,10),a=parseInt(o,10);if(i&&a&&!(i<=0||a<=0)){if(t.DomEditor.isSelectedEmptyParagraph(r)&&e.Transforms.removeNodes(r,{mode:"highest"}),0===r.children.length){e.Transforms.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"});}var l=function(t,e,r){for(var n,o=[],i=t.getMenuConfig("insertTable"),a=i.minWidth,l=void 0===a?60:a,u=i.tableFullWidth,c=i.tableHeader,s=Array(r).fill(parseInt(l)||60),f=0;f<e;f++){for(var d=[],v=0;v<r;v++){var h={type:"table-cell",children:[{text:""}]};0===f&&(h.isHeader=null===(n=null==c?void 0:c.selected)||void 0===n||n),d.push(h);}o.push({type:"table-row",children:d});}return {type:"table",width:(null==u?void 0:u.selected)?"100%":"auto",children:o,columnWidths:s}}(r,i,a);e.Transforms.insertNodes(r,l,{mode:"highest"});}},r}(),kl=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(e){return null==e.selection||null==t.DomEditor.getSelectedNodeByType(e,"table")},r.prototype.exec=function(t,r){this.isDisabled(t)||e.Transforms.removeNodes(t,{mode:"highest"});},r}(),jl=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||null==t.DomEditor.getSelectedNodeByType(r,"table"))},r.prototype.exec=function(r,n){if(!this.isDisabled(r)){var o=ln(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table-cell")},universal:!0}),1),i=ln(o[0],2),a=i[0],l=i[1],u=t.DomEditor.getParentNode(r,a),c=(null==u?void 0:u.children.length)||0;if(0!==c){var s=Fi(r),f=0;t:for(var d=0;d<s.length;d++)for(var v=0;v<s[d].length;v++){var h=ln(s[d][v],1),p=ln(h[0],2)[1];if(e.Path.equals(l,p)){f=d;break t}}e.Editor.withoutNormalizing(r,(function(){for(var t=f+1,n=t>=0&&t<s.length,o=[],i=0;n&&i<s[f].length;i++){var a=ln(s[f][i],2)[1],u=a.ttb,d=a.btt;if(u>1||d>1){if(1==d)continue;var v=ln(s[f-(u-1)][i],1),h=ln(v[0],2),p=h[0],g=h[1],y=p.rowSpan||1;o.push(i),p.hidden||e.Transforms.setNodes(r,{rowSpan:y+1},{at:g});}}for(var b={type:"table-row",children:[]},m=0;m<c;m++){var w={type:"table-cell",hidden:o.includes(m),children:[{text:""}]};b.children.push(w);}var x=e.Path.parent(l),E=e.Path.next(x);e.Transforms.insertNodes(r,b,{at:E});}));}}},r}(),Al=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||null==t.DomEditor.getSelectedNodeByType(r,"table-row"))},r.prototype.exec=function(r,n){if(!this.isDisabled(r)){var o=ln(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table-row")},universal:!0}),1),i=ln(o[0],2),a=i[0],l=i[1],u=t.DomEditor.getParentNode(r,a);if(((null==u?void 0:u.children.length)||0)<=1)e.Transforms.removeNodes(r,{mode:"highest"});else {var c=ln(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table-cell")},universal:!0}),1),s=ln(c[0],2)[1],f=Fi(r),d=0;t:for(var v=0;v<f.length;v++)for(var h=0;h<f[v].length;h++){var p=ln(f[v][h],1),g=ln(p[0],2)[1];if(e.Path.equals(s,g)){d=v;break t}}e.Editor.withoutNormalizing(r,(function(){for(var t,n,o=0;o<f[d].length;o++){var i=ln(f[d][o],2),a=ln(i[0],1)[0].hidden,u=i[1],c=u.ttb,s=u.btt;if(c>1||s>1){var v=ln(f[d-(c-1)][o],1),h=ln(v[0],2),p=h[0],g=p.rowSpan,y=void 0===g?1:g,b=p.colSpan,m=void 0===b?1:b,w=h[1];if(a)e.Transforms.setNodes(r,{rowSpan:Math.max(y-1,1),colSpan:m},{at:w});else {var x=ln(f[d+1][o],1),E=ln(x[0],2)[1];e.Transforms.setNodes(r,{rowSpan:y-1,colSpan:m,hidden:!1},{at:E});try{for(var S=(t=void 0,an(e.Node.children(r,w,{reverse:!0}))),T=S.next();!T.done;T=S.next()){var M=ln(T.value,2)[1];e.Transforms.moveNodes(r,{to:un(un([],ln(E)),[0]),at:M});}}catch(e){t={error:e};}finally{try{T&&!T.done&&(n=S.return)&&n.call(S);}finally{if(t)throw t.error}}}}}e.Transforms.removeNodes(r,{at:l});}));}}},r}(),Hl=TypeError,Cl=Object.getOwnPropertyDescriptor,Vl=y&&!function(){if(void 0!==this)return !0;try{Object.defineProperty([],"length",{writable:!1}).length=1;}catch(t){return t instanceof TypeError}}()?function(t,e){if(Ge(t)&&!Cl(t,"length").writable)throw new Hl("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Rl=TypeError,Il=TypeError,Ll=function(t,e){if(!delete t[e])throw new Il("Cannot delete property "+ot(e)+" of "+ot(t))},Bl=cr("splice"),Wl=Math.max,_l=Math.min;$e({target:"Array",proto:!0,forced:!Bl},{splice:function(t,e){var r,n,o,i,a,l,u=ht(this),c=Te(u),s=xe(t,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-s):(r=f-2,n=_l(Wl(be(e),0),c-s)),function(t){if(t>9007199254740991)throw Rl("Maximum allowed index exceeded")}(c+r-n),o=Fo(u,n),i=0;i<n;i++)(a=s+i)in u&&lr(o,i,u[a]);if(o.length=n,r<n){for(i=s;i<c-n;i++)l=i+r,(a=i+n)in u?u[l]=u[a]:Ll(u,l);for(i=c;i>c-n+r;i--)Ll(u,i-1);}else if(r>n)for(i=c-n;i>s;i--)l=i+r-1,(a=i+n-1)in u?u[l]=u[a]:Ll(u,l);for(i=0;i<r;i++)u[i+s]=arguments[i+2];return Vl(u,c-n+r),o}});var Fl=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||null==t.DomEditor.getSelectedNodeByType(r,"table"))},r.prototype.exec=function(r,n){if(!this.isDisabled(r)){var o=ln(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table-cell")},universal:!0}),1),i=ln(o[0],2),a=i[0],l=i[1],u=t.DomEditor.getParentNode(r,a);if(null!=u){var c=t.DomEditor.getParentNode(r,u);if(null!=c){var s=Fi(r),f=0;t:for(var d=0;d<s.length;d++)for(var v=0;v<s[d].length;v++){var h=ln(s[d][v],1),p=ln(h[0],2)[1];if(e.Path.equals(l,p)){f=v;break t}}e.Editor.withoutNormalizing(r,(function(){for(var n=[],o=0;o<s.length;o++){var i=ln(s[o][f],2)[1],a=i.ltr,l=i.rtl;if(a>1||l>1){if(1==l)continue;var u=ln(s[o][f-(l-1)],1),d=ln(u[0],2),v=d[0],h=d[1],p=v.colSpan||1;n.push(o),v.hidden||e.Transforms.setNodes(r,{colSpan:p+1},{at:h});}}for(o=0;o<s.length;o++){var g={type:"table-cell",hidden:n.includes(o),children:[{text:""}]};0===o&&ma(c)&&(g.isHeader=!0);var y=ln(s[o][f],1),b=ln(y[0],2)[1];e.Transforms.insertNodes(r,g,{at:b});}var m=ln(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table")},universal:!0}),1)[0];if(m){var w=ln(m,2),x=w[0],E=w[1],S=x.columnWidths,T=un([],ln(void 0===S?[]:S)),M=r.getMenuConfig("insertTable").minWidth,z=void 0===M?60:M;T.splice(f,0,parseInt(z)||60),e.Transforms.setNodes(r,{columnWidths:T},{at:E});}}));}}}},r}(),ql=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||null==t.DomEditor.getSelectedNodeByType(r,"table-cell"))},r.prototype.exec=function(r,n){if(!this.isDisabled(r)){var o=ln(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table-cell")},universal:!0}),1),i=ln(o[0],2),a=i[0],l=i[1],u=t.DomEditor.getParentNode(r,a),c=(null==u?void 0:u.children.length)||0;if(!u||c<=1)e.Transforms.removeNodes(r,{mode:"highest"});else if(null!=t.DomEditor.getParentNode(r,u)){var s=Fi(r),f=0;t:for(var d=0;d<s.length;d++)for(var v=0;v<s[d].length;v++){var h=ln(s[d][v],1),p=ln(h[0],2)[1];if(e.Path.equals(l,p)){f=v;break t}}e.Editor.withoutNormalizing(r,(function(){for(var n,o,i=0;i<s.length;i++){var a=ln(s[i][f],2),l=ln(a[0],1)[0].hidden,u=a[1],c=u.rtl,d=u.ltr;if(c>1||d>1){var v=ln(s[i][f-(c-1)],1),h=ln(v[0],2),p=h[0],g=p.rowSpan,y=void 0===g?1:g,b=p.colSpan,m=void 0===b?1:b,w=h[1];if(l)e.Transforms.setNodes(r,{rowSpan:y,colSpan:Math.max(m-1,1)},{at:w});else {var x=ln(s[i][f+1],1),E=ln(x[0],2)[1];e.Transforms.setNodes(r,{rowSpan:y,colSpan:m-1,hidden:!1},{at:E});try{for(var S=(n=void 0,an(e.Node.children(r,w,{reverse:!0}))),T=S.next();!T.done;T=S.next()){var M=ln(T.value,2)[1];e.Transforms.moveNodes(r,{to:un(un([],ln(E)),[0]),at:M});}}catch(t){n={error:t};}finally{try{T&&!T.done&&(o=S.return)&&o.call(S);}finally{if(n)throw n.error}}}}}for(i=0;i<s.length;i++){var z=ln(s[i][f],1);w=ln(z[0],2)[1];e.Transforms.removeNodes(r,{at:w});}var N=ln(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table")},universal:!0}),1)[0];if(N){var O=ln(N,2),D=O[0],P=O[1],k=D.columnWidths,j=un([],ln(void 0===k?[]:k));j.splice(f,1),e.Transforms.setNodes(r,{columnWidths:j},{at:P});}}));}}},r}(),$l=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(e){var r=t.DomEditor.getSelectedNodeByType(e,"table");return null!=r&&ma(r)},r.prototype.isActive=function(t){return !!this.getValue(t)},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||null==t.DomEditor.getSelectedNodeByType(r,"table"))},r.prototype.exec=function(r,n){if(!this.isDisabled(r)){var o=!n,i=t.DomEditor.getSelectedNodeByType(r,"table");if(null!=i)ba(i).forEach((function(n){return e.Transforms.setNodes(r,{isHeader:o},{at:t.DomEditor.findPath(r,n)})}));}},r}(),Gl=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(e){var r=t.DomEditor.getSelectedNodeByType(e,"table");return null!=r&&"100%"===r.width},r.prototype.isActive=function(t){return !!this.getValue(t)},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||null==t.DomEditor.getSelectedNodeByType(r,"table"))},r.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n={width:r?"auto":"100%"};e.Transforms.setNodes(t,n,{mode:"highest"});}},r}(),Ul=function(){function r(){this.title=t.t("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button";}return r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(t){return !this.canMerge(t)},r.prototype.exec=function(t,e){this.isDisabled(t)||(this.merge(t),$i.unselect(t));},r.prototype.canMerge=function(t){var e=Di.get(t);if(!e||!e.length)return !1;var r=ln(e[e.length-1][e[e.length-1].length-1],1),n=ln(r[0],2)[1],o=ln(e[0][0],1);return !!_i(t,[ln(o[0],2)[1],n],"table")},r.prototype.merge=function(t){if(this.canMerge(t)){var r=Di.get(t);if(r&&r.length){var n=ln(r[0][0],1),o=ln(n[0],2)[1],i=ln(e.Node.children(t,o,{reverse:!0}),1),a=ln(i[0],2)[1];Fi(t,{at:o}),e.Editor.withoutNormalizing(t,(function(){for(var n,i,l=0,u=0,c=r.length-1;c>=0;c--,l++){u=0;for(var s=r[c].length-1;s>=0;s--,u++){var f=ln(r[c][s],2),d=ln(f[0],2)[1],v=f[1].ttb;if(!(e.Path.equals(o,d)||v>1)){try{for(var h=(n=void 0,an(e.Node.children(t,d,{reverse:!0}))),p=h.next();!p.done;p=h.next()){var g=ln(p.value,2)[1];e.Transforms.moveNodes(t,{to:e.Path.next(a),at:g});}}catch(t){n={error:t};}finally{try{p&&!p.done&&(i=h.return)&&i.call(h);}finally{if(n)throw n.error}}var y=ln(e.Editor.nodes(t,{match:Wi(t,"tr"),at:d}),1),b=ln(y[0],2)[1];ln(e.Node.children(t,b),2)[1]&&e.Transforms.setNodes(t,{hidden:!0},{at:d});}}}e.Transforms.setNodes(t,{rowSpan:l,colSpan:u},{at:o});}));}}},r}(),Xl=TypeError,Kl=Tt("species"),Yl=function(t,e){var r,n=It(t).constructor;return void 0===n||C(r=It(n)[Kl])?e:function(t){if(ar(t))return t;throw new Xl(ot(t)+" is not a constructor")}(r)},Jl=Er.UNSUPPORTED_Y,Ql=Math.min,Zl=O([].push),tu=O("".slice),eu=!g((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),ru="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;_a("split",(function(t,e,r){var n="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:w(e,this,t,r)}:e;return [function(e,r){var o=R(this),i=C(e)?void 0:lt(e,t);return i?w(i,e,o,r):w(n,yr(o),e,r)},function(t,o){var i=It(this),a=yr(t);if(!ru){var l=r(n,i,a,o,n!==e);if(l.done)return l.value}var u=Yl(i,RegExp),c=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Jl?"g":"y"),f=new u(Jl?"^(?:"+i.source+")":i,s),d=void 0===o?4294967295:o>>>0;if(0===d)return [];if(0===a.length)return null===Za(f,a)?[a]:[];for(var v=0,h=0,p=[];h<a.length;){f.lastIndex=Jl?0:h;var g,y=Za(f,Jl?tu(a,h):a);if(null===y||(g=Ql(Se(f.lastIndex+(Jl?h:0)),a.length))===v)h=qa(a,h,c);else {if(Zl(p,tu(a,v,h)),p.length===d)return p;for(var b=1;b<=y.length-1;b++)if(Zl(p,y[b]),p.length===d)return p;h=v=g;}}return Zl(p,tu(a,v)),p}]}),ru||!eu,Jl);var nu=function(){function r(){this.title=t.t("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button";}return r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(t){var r=ln(e.Editor.nodes(t,{match:Wi(t,"td")}),1),n=ln(r[0],1)[0],o=n.rowSpan,i=void 0===o?1:o,a=n.colSpan;return !(i>1||(void 0===a?1:a)>1)},r.prototype.exec=function(t,e){this.isDisabled(t)||this.split(t);},r.prototype.split=function(t,r){void 0===r&&(r={});var n=ln(e.Editor.nodes(t,{match:Wi(t,"table","th","td"),at:r.at}),2),o=n[0],i=n[1];if(o&&i){var a=Di.get(t)||[],l=Fi(t,{at:r.at});e.Editor.withoutNormalizing(t,(function(){for(var n=l.length-1;n>=0;n--)for(var o=l[n].length-1;o>=0;o--){var u=ln(l[n][o],2),c=ln(u[0],2)[1],s=u[1],f=s.ltr,d=s.rtl,v=s.btt,h=s.ttb;if(d>1)o-=d-2;else if(!(h>1||1===v&&1===f)){var p=!!r.all;if(a.length)t:for(var g=0;!r.all&&g<a.length;g++)for(var y=0;y<a[g].length;y++){var b=ln(a[g][y],1),m=ln(b[0],2)[1];if(e.Path.equals(m,c)){p=!0;break t}}else {m=ln(i,2)[1];e.Path.equals(m,c)&&(p=!0);}if(p){var w=ln(e.Editor.nodes(t,{match:Wi(t,"table"),at:c}),1);ln(w[0],1)[0];t:for(var x=1;x<v;x++)for(g=o;g>=0;g--){var E=ln(l[n+x][g],2);if(ln(E[0],2)[1],1!=E[1].ttb){for(var S=0;S<f;S++){var T=ln(l[n+x][g+S],1),M=ln(T[0],2)[1];e.Transforms.unsetNodes(t,["hidden","colSpan","rowSpan"],{at:M});}continue t}}for(S=1;S<f;S++){var z=ln(l[n][o+S],1);M=ln(z[0],2)[1];e.Transforms.unsetNodes(t,["hidden","colSpan","rowSpan"],{at:M});}e.Transforms.setNodes(t,{rowSpan:1,colSpan:1},{at:c});}}}}));}},r}(),ou=function(){function r(){this.title=t.t("tableModule.tableProperty"),this.iconSvg='<svg viewBox="0 0 20 20"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.borderStyle=[{value:"none",label:t.t("tableModule.borderStyle.none")},{value:"solid",label:t.t("tableModule.borderStyle.solid")},{value:"dotted",label:t.t("tableModule.borderStyle.dotted")},{value:"dashed",label:t.t("tableModule.borderStyle.dashed")},{value:"double",label:t.t("tableModule.borderStyle.double")},{value:"groove",label:t.t("tableModule.borderStyle.groove")},{value:"ridge",label:t.t("tableModule.borderStyle.ridge")},{value:"inset",label:t.t("tableModule.borderStyle.inset")},{value:"outset",label:t.t("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:t.t("justify.left"),svg:'<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>'},{value:"center",label:t.t("justify.center"),svg:'<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>'},{value:"right",label:t.t("justify.right"),svg:'<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>'},{value:"justify",label:t.t("justify.justify"),svg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>'}];}return r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||null==t.DomEditor.getSelectedNodeByType(r,"table"))},r.prototype.exec=function(t,e){},r.prototype.getModalContentNode=function(t){return ln(e.Editor.nodes(t,{match:Wi(t,"table")}),1)[0]},r.prototype.getModalPositionNode=function(t){return null},r.prototype.getModalContentElem=function(r){var n=this,o=this.getModalContentNode(r);if(!o)return null;var i=ln(o,2),a=i[0],l=i[1],u=c.default('<div>\n <label class="babel-container">\n <span>'+t.t("tableModule.modal.border")+'</span>\n <span class="babel-container-border">\n <select name="borderStyle">\n '+this.borderStyle.map((function(t){return '<option value="'+t.value+'">'+t.label+"</option>"})).join("")+'\n </select>\n <span class="color-group" data-mark="color">\n <span class="color-group-block"></span>\n <input name="borderColor" type="hidden">\n </span>\n <input name="borderWidth" type="number" placeholder="'+t.t("tableModule.modal.borderWidth")+'">\n </span>\n </label>\n <div class="babel-container">\n <span>'+t.t("tableModule.modal.bgColor")+'</span>\n <span class="babel-container-background">\n <span class="color-group" data-mark="bgColor">\n <span class="color-group-block"></span>\n <input name="backgroundColor" type="hidden">\n </span>\n </span>\n </div>\n <label class="babel-container">\n <span>'+t.t("tableModule.modal.align")+'</span>\n <span class="babel-container-align">\n <select name="textAlign">\n '+this.textAlignOptions.map((function(t){return '<option value="'+t.value+'">'+t.label+"</option>"})).join("")+'\n </select>\n </span>\n </label>\n <div class="button-container">\n <button type="button">'+t.t("tableModule.modal.ok")+"</button>\n </div>\n </div>");u.find("[name]").each((function(t){c.default(t).val(a[c.default(t).attr("name")]);}));var s=function(t,e){e?c.default(".color-group-block",t).css("background-color",e).empty():c.default(".color-group-block",t).css("background-color","").html(Dl);};return u.find(".color-group").each((function(t){var e=c.default('[type="hidden"]',t).val()||"";s(t,e);var o=c.default(t);o.on("click",(function(){u.find(".color-group .w-e-drop-panel").hide();var i=o.data("panel");i?i.show():(i=n.getPanelContentElem(r,{mark:o.data("mark"),selectedColor:e,callback:function(e){c.default('[type="hidden"]',t).val(e||""),s(t,e),i.hide();}}),o.append(i),o.data("panel",i));}));})),u.find("button").on("click",(function(){var t=Array.from(u.find("[name]")).reduce((function(t,e){return t[c.default(e).attr("name")]=c.default(e).val(),t}),{});e.Transforms.setNodes(r,t,{at:l}),setTimeout((function(){r.focus();}));})),u[0]},r.prototype.getPanelContentElem=function(e,r){var n=r.mark,o=r.selectedColor,i=r.callback,a=c.default('<ul class="w-e-panel-content-color"></ul>');a.on("click","li",(function(t){var e=t.target;if(e){t.preventDefault(),t.stopPropagation();var r=c.default(e).attr("data-value");i(r);}}));var l=e.getMenuConfig(n).colors;(void 0===l?[]:l).forEach((function(t){var e=c.default('<div class="color-block" data-value="'+t+'"></div>');e.css("background-color",t);var r=c.default('<li data-value="'+t+'"></li>');o===t&&r.addClass("active"),r.append(e),a.append(r);}));var u="";"color"===n&&(u=t.t("tableModule.color.default")),"bgColor"===n&&(u=t.t("tableModule.color.clear"));var s=c.default('\n <li data-value="" class="clear">\n '+Dl+"\n "+u+"\n </li>\n ");a.prepend(s);var f=c.default('<div class="w-e-drop-panel"></div>');return f.append(a),f},r}(),iu=function(r){function n(){var e=null!==r&&r.apply(this,arguments)||this;return e.title=t.t("tableModule.cellProperty"),e.iconSvg='<svg viewBox="0 0 20 20"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',e.tag="button",e.showModal=!0,e.modalWidth=300,e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t;}rn(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r);}(n,r),n.prototype.getModalContentNode=function(t){return ln(e.Editor.nodes(t,{match:Wi(t,"td")}),1)[0]},n}(ou),au={renderStyle:function(t,r){var n,o;if(!e.Element.isElement(t))return r;var i=t,a=i.backgroundColor,l=i.borderWidth,u=i.borderStyle,c=i.borderColor,s=i.textAlign,f={};a&&(f.backgroundColor=a),l&&(f.borderWidth=l+"px"),u&&(f.borderStyle=u),c&&(f.borderColor=c),s&&(f.textAlign=s);var d=r;return "table"===t.type?Ha(null===(o=(null===(n=d.children)||void 0===n?void 0:n[0]).children)||void 0===o?void 0:o[0],f):Ha(d,f),d},styleToHtml:function(t,e){if("table"!==t.type&&"table-cell"!==t.type)return e;var r=t.backgroundColor,n=t.borderWidth,o=t.borderStyle,i=t.borderColor,a=t.textAlign;if(!(r||n||o||i||a))return e;var l=c.default(e);return r&&l.css("background-color",r),n&&l.css("border-width",n+"px"),o&&l.css("border-style",o),i&&l.css("border-color",i),a&&l.css("text-align",a),function(t){return 0===t.length?"":t[0].outerHTML}(l)},parseStyleHtml:function(t,e,r){if("TABLE"!==t.tagName&&"TD"!==t.tagName)return e;var n=c.default(t),o=e,i=ia(n,"background-color");i||(i=ia(n,"background")),i&&(o.backgroundColor=i);var a=ia(n,"border");a||"TD"!==t.tagName||(a="1px solid "+cl);var l=ln((null==a?void 0:a.split(" "))||[],3),u=l[0],s=l[1],f=l[2];(u=ia(n,"border-width")||u)&&(o.borderWidth=u.replace(/[^\d]/g,"")),(s=ia(n,"border-style")||s)&&(o.borderStyle=s),(f=ia(n,"border-color")||f)&&(o.borderColor=f);var d=ia(n,"text-align");return (d=ia(n,"text-align")||d)&&(o.textAlign=d),e},renderElems:[wa,xa,Ea],elemsToHtml:[za,Na,Oa],preParseHtml:[Da],parseElemsHtml:[ml,wl,xl],menus:[{key:"insertTable",factory:function(){return new Pl}},{key:"deleteTable",factory:function(){return new kl}},{key:"insertTableRow",factory:function(){return new jl}},{key:"deleteTableRow",factory:function(){return new Al}},{key:"insertTableCol",factory:function(){return new Fl}},{key:"deleteTableCol",factory:function(){return new ql}},{key:"tableHeader",factory:function(){return new $l}},{key:"tableFullWidth",factory:function(){return new Gl}},{key:"mergeTableCell",factory:function(){return new Ul}},{key:"splitTableCell",factory:function(){return new nu}},{key:"setTableProperty",factory:function(){return new ou}},{key:"setTableCellProperty",factory:function(){return new iu}}],editorPlugin:function(r){var n=r.insertBreak,o=r.deleteBackward,i=r.deleteForward,a=r.normalizeNode,l=r.insertData,u=r.handleTab,c=r.selectAll,s=r;return s.insertBreak=function(){null==t.DomEditor.getSelectedNodeByType(s,"table")?n():s.insertText("\n");},s.deleteBackward=function(r){if(!Gi(s)){var n=s.selection;if(n){var i=e.Editor.before(s,n);if(i){var a=function(r,n){var o,i,a=e.Editor.nodes(r,{at:n,match:function(e){return "table"===t.DomEditor.getNodeType(e)}}),l=!1;try{for(var u=an(a),c=u.next();!c.done;c=u.next())c.value,l=!0;}catch(t){o={error:t};}finally{try{c&&!c.done&&(i=u.return)&&i.call(u);}finally{if(o)throw o.error}}return l}(s,i);if(a&&t.DomEditor.getSelectedNodeByType(s,"paragraph"))return}}o(r);}},s.handleTab=function(){var n;if(t.DomEditor.getSelectedNodeByType(s,"table")){var o=e.Editor.above(r);t.DomEditor.checkNodeType(o[0],"table-cell")&&e.Transforms.select(r,o[1]);var i=e.Editor.next(r);if(i)i[0]&&i[0].text&&(i=null!==(n=e.Editor.above(r,{at:i[1]}))&&void 0!==n?n:i),e.Transforms.select(r,i[1]);else {var a=s.children||[],l=a.length;if(t.DomEditor.checkNodeType(a[l-1],"table")){var c=t.DomEditor.genEmptyParagraph();e.Transforms.insertNodes(s,c,{at:[l]}),s.handleTab();}}}else u();},s.deleteForward=function(t){Gi(s)||i(t);},s.normalizeNode=function(r){var n=ln(r,2),o=n[0],i=n[1];if("table"!==t.DomEditor.getNodeType(o))return a([o,i]);if(t.DomEditor.isLastNode(s,o)){var l=t.DomEditor.genEmptyParagraph();e.Transforms.insertNodes(s,l,{at:[i[0]+1]});}},s.insertData=function(r){if(null!=t.DomEditor.getSelectedNodeByType(s,"table")){var n=r.getData("text/plain");"\n"===n||/<img[^>]+>/.test(r.getData("text/html"))?l(r):e.Editor.insertText(s,n);}else l(r);},s.selectAll=function(){var r=s.selection;if(null!=r){var n=t.DomEditor.getSelectedNodeByType(s,"table-cell");if(null!=n){var o=r.anchor,i=r.focus;if(e.Path.equals(o.path.slice(0,3),i.path.slice(0,3)))if(0!==e.Node.string(n).length){var a=t.DomEditor.findPath(s,n),l={anchor:e.Editor.start(s,a),focus:e.Editor.end(s,a)};s.select(l);}else c();else c();}else c();}else c();},function(t){var r=t.apply;t.apply=function(n){if(!e.Operation.isSelectionOperation(n)||!n.newProperties)return r(n);var o=nn(nn({},t.selection),n.newProperties);if(!e.Range.isRange(o))return $i.unselect(t),r(n);var i=ln(e.Editor.nodes(t,{match:Wi(t,"th","td"),at:e.Range.start(o)}),1)[0],a=ln(e.Editor.nodes(t,{match:Wi(t,"th","td"),at:e.Range.end(o)}),1)[0];if(!i||!a)return $i.unselect(t),r(n);var l=ln(i,2)[1],u=ln(a,2)[1];if(e.Path.equals(l,u)||!_i(t,[l,u],"table"))return $i.unselect(t),r(n);var c=Fi(t,{at:l}),s=qi.valueOf(0,0),f=qi.valueOf(0,0);t:for(var d=0;d<c.length;d++)for(var v=0;v<c[d].length;v++){var h=ln(c[d][v],1),p=ln(h[0],2)[1];if(e.Path.equals(l,p)&&(s.x=d,s.y=v),e.Path.equals(u,p)){f.x=d,f.y=v;break t}}for(var g=qi.valueOf(Math.min(s.x,f.x),Math.min(s.y,f.y)),y=qi.valueOf(Math.max(s.x,f.x),Math.max(s.y,f.y));;){var b=qi.valueOf(g.x,g.y),m=qi.valueOf(y.x,y.y);for(d=b.x;d<=m.x;d++)for(v=b.y;v<=m.y;v++){var w=ln(c[d][v],2)[1],x=w.rtl,E=w.ltr,S=w.btt,T=w.ttb;b.x=Math.min(b.x,d-(T-1)),b.y=Math.min(b.y,v-(x-1)),m.x=Math.max(m.x,d+(S-1)),m.y=Math.max(m.y,v+(E-1));}if(qi.equals(g,b)&&qi.equals(y,m))break;g=b,y=m;}var M=[],z=new WeakSet;for(d=g.x;d<=y.x;d++){var N=[];for(v=g.y;v<=y.y;v++){var O=ln(c[d][v],1),D=ln(O[0],1)[0];z.add(D),N.push(c[d][v]);}M.push(N);}Di.set(t,M),Pi.set(t,z),r(n);};}(s),s}};return au}));
21692
+ !function(t,e){module.exports=e(dist$6,dist$7,require$$2,require$$4,lodash_debounce,lodash_throttle);}(commonjsGlobal,(function(t,e,r,n,o,i){function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var l=a(r),u=a(o),c=a(i);t.i18nAddResources("en",{tableModule:{modal:{border:"Border",borderWidth:"Width",bgColor:"Back color",align:"Text Align",ok:"OK"},color:{default:"Default color",clear:"Clear back color"},borderStyle:{none:"None",solid:"Solid",dotted:"Dotted",dashed:"Dashed",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"},deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",mergeCell:"merge cell",splitCell:"split cell",tableProperty:"Table property",cellProperty:"Cell property"}}),t.i18nAddResources("zh-CN",{tableModule:{modal:{border:"边框",borderWidth:"宽度",bgColor:"背景色",align:"对齐方式",ok:"确定"},color:{default:"默认颜色",clear:"清除背景色"},borderStyle:{none:"无样式",solid:"实线",dotted:"点状虚线",dashed:"虚线",double:"双线",groove:"凹槽边框",ridge:"菱形边框",inset:"凹边框",outset:"凸边框"},deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格",tableProperty:"表格属性",cellProperty:"单元格属性"}});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function f(t){var e={exports:{}};return t(e,e.exports),e.exports}var d,v,h=function(t){return t&&t.Math===Math&&t},p=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof s&&s)||h("object"==typeof s&&s)||function(){return this}()||Function("return this")(),g=function(t){try{return !!t()}catch(t){return !0}},y=!g((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),b=!g((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),m=Function.prototype.call,w=b?m.bind(m):function(){return m.apply(m,arguments)},x={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,S={f:E&&!x.call({1:2},1)?function(t){var e=E(this,t);return !!e&&e.enumerable}:x},T=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},M=Function.prototype,z=M.call,N=b&&M.bind.bind(z,z),O=b?N:function(t){return function(){return z.apply(t,arguments)}},D=O({}.toString),P=O("".slice),k=function(t){return P(D(t),8,-1)},j=Object,A=O("".split),H=g((function(){return !j("z").propertyIsEnumerable(0)}))?function(t){return "String"===k(t)?A(t,""):j(t)}:j,C=function(t){return null==t},V=TypeError,R=function(t){if(C(t))throw new V("Can't call method on "+t);return t},I=function(t){return H(R(t))},L="object"==typeof document&&document.all,B=void 0===L&&void 0!==L?function(t){return "function"==typeof t||t===L}:function(t){return "function"==typeof t},W=function(t){return "object"==typeof t?null!==t:B(t)},_=function(t,e){return arguments.length<2?(r=p[t],B(r)?r:void 0):p[t]&&p[t][e];var r;},F=O({}.isPrototypeOf),q=p.navigator,$=q&&q.userAgent,G=$?String($):"",U=p.process,X=p.Deno,K=U&&U.versions||X&&X.version,Y=K&&K.v8;Y&&(v=(d=Y.split("."))[0]>0&&d[0]<4?1:+(d[0]+d[1])),!v&&G&&(!(d=G.match(/Edge\/(\d+)/))||d[1]>=74)&&(d=G.match(/Chrome\/(\d+)/))&&(v=+d[1]);var J=v,Q=p.String,Z=!!Object.getOwnPropertySymbols&&!g((function(){var t=Symbol("symbol detection");return !Q(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&J&&J<41})),tt=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,et=Object,rt=tt?function(t){return "symbol"==typeof t}:function(t){var e=_("Symbol");return B(e)&&F(e.prototype,et(t))},nt=String,ot=function(t){try{return nt(t)}catch(t){return "Object"}},it=TypeError,at=function(t){if(B(t))return t;throw new it(ot(t)+" is not a function")},lt=function(t,e){var r=t[e];return C(r)?void 0:at(r)},ut=TypeError,ct=Object.defineProperty,st=function(t,e){try{ct(p,t,{value:e,configurable:!0,writable:!0});}catch(r){p[t]=e;}return e},ft=f((function(t){var e="__core-js_shared__",r=t.exports=p[e]||st(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),dt=function(t,e){return ft[t]||(ft[t]=e||{})},vt=Object,ht=function(t){return vt(R(t))},pt=O({}.hasOwnProperty),gt=Object.hasOwn||function(t,e){return pt(ht(t),e)},yt=0,bt=Math.random(),mt=O(1..toString),wt=function(t){return "Symbol("+(void 0===t?"":t)+")_"+mt(++yt+bt,36)},xt=p.Symbol,Et=dt("wks"),St=tt?xt.for||xt:xt&&xt.withoutSetter||wt,Tt=function(t){return gt(Et,t)||(Et[t]=Z&&gt(xt,t)?xt[t]:St("Symbol."+t)),Et[t]},Mt=TypeError,zt=Tt("toPrimitive"),Nt=function(t,e){if(!W(t)||rt(t))return t;var r,n=lt(t,zt);if(n){if(void 0===e&&(e="default"),r=w(n,t,e),!W(r)||rt(r))return r;throw new Mt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&B(r=t.toString)&&!W(n=w(r,t)))return n;if(B(r=t.valueOf)&&!W(n=w(r,t)))return n;if("string"!==e&&B(r=t.toString)&&!W(n=w(r,t)))return n;throw new ut("Can't convert object to primitive value")}(t,e)},Ot=function(t){var e=Nt(t,"string");return rt(e)?e:e+""},Dt=p.document,Pt=W(Dt)&&W(Dt.createElement),kt=function(t){return Pt?Dt.createElement(t):{}},jt=!y&&!g((function(){return 7!==Object.defineProperty(kt("div"),"a",{get:function(){return 7}}).a})),At=Object.getOwnPropertyDescriptor,Ht={f:y?At:function(t,e){if(t=I(t),e=Ot(e),jt)try{return At(t,e)}catch(t){}if(gt(t,e))return T(!w(S.f,t,e),t[e])}},Ct=y&&g((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Vt=String,Rt=TypeError,It=function(t){if(W(t))return t;throw new Rt(Vt(t)+" is not an object")},Lt=TypeError,Bt=Object.defineProperty,Wt=Object.getOwnPropertyDescriptor,_t="enumerable",Ft="configurable",qt="writable",$t={f:y?Ct?function(t,e,r){if(It(t),e=Ot(e),It(r),"function"==typeof t&&"prototype"===e&&"value"in r&&qt in r&&!r[qt]){var n=Wt(t,e);n&&n[qt]&&(t[e]=r.value,r={configurable:Ft in r?r[Ft]:n[Ft],enumerable:_t in r?r[_t]:n[_t],writable:!1});}return Bt(t,e,r)}:Bt:function(t,e,r){if(It(t),e=Ot(e),It(r),jt)try{return Bt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new Lt("Accessors not supported");return "value"in r&&(t[e]=r.value),t}},Gt=y?function(t,e,r){return $t.f(t,e,T(1,r))}:function(t,e,r){return t[e]=r,t},Ut=Function.prototype,Xt=y&&Object.getOwnPropertyDescriptor,Kt=gt(Ut,"name"),Yt={EXISTS:Kt,PROPER:Kt&&"something"===function(){}.name,CONFIGURABLE:Kt&&(!y||y&&Xt(Ut,"name").configurable)},Jt=O(Function.toString);B(ft.inspectSource)||(ft.inspectSource=function(t){return Jt(t)});var Qt,Zt,te,ee=ft.inspectSource,re=p.WeakMap,ne=B(re)&&/native code/.test(String(re)),oe=dt("keys"),ie=function(t){return oe[t]||(oe[t]=wt(t))},ae={},le="Object already initialized",ue=p.TypeError,ce=p.WeakMap;if(ne||ft.state){var se=ft.state||(ft.state=new ce);se.get=se.get,se.has=se.has,se.set=se.set,Qt=function(t,e){if(se.has(t))throw new ue(le);return e.facade=t,se.set(t,e),e},Zt=function(t){return se.get(t)||{}},te=function(t){return se.has(t)};}else {var fe=ie("state");ae[fe]=!0,Qt=function(t,e){if(gt(t,fe))throw new ue(le);return e.facade=t,Gt(t,fe,e),e},Zt=function(t){return gt(t,fe)?t[fe]:{}},te=function(t){return gt(t,fe)};}var de={set:Qt,get:Zt,has:te,enforce:function(t){return te(t)?Zt(t):Qt(t,{})},getterFor:function(t){return function(e){var r;if(!W(e)||(r=Zt(e)).type!==t)throw new ue("Incompatible receiver, "+t+" required");return r}}},ve=f((function(t){var e=Yt.CONFIGURABLE,r=de.enforce,n=de.get,o=String,i=Object.defineProperty,a=O("".slice),l=O("".replace),u=O([].join),c=y&&!g((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),f=t.exports=function(t,n,f){"Symbol("===a(o(n),0,7)&&(n="["+l(o(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(n="get "+n),f&&f.setter&&(n="set "+n),(!gt(t,"name")||e&&t.name!==n)&&(y?i(t,"name",{value:n,configurable:!0}):t.name=n),c&&f&&gt(f,"arity")&&t.length!==f.arity&&i(t,"length",{value:f.arity});try{f&&gt(f,"constructor")&&f.constructor?y&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var d=r(t);return gt(d,"source")||(d.source=u(s,"string"==typeof n?n:"")),t};Function.prototype.toString=f((function(){return B(this)&&n(this).source||ee(this)}),"toString");})),he=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(B(r)&&ve(r,i,n),n.global)o?t[e]=r:st(e,r);else {try{n.unsafe?t[e]&&(o=!0):delete t[e];}catch(t){}o?t[e]=r:$t.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable});}return t},pe=Math.ceil,ge=Math.floor,ye=Math.trunc||function(t){var e=+t;return (e>0?ge:pe)(e)},be=function(t){var e=+t;return e!=e||0===e?0:ye(e)},me=Math.max,we=Math.min,xe=function(t,e){var r=be(t);return r<0?me(r+e,0):we(r,e)},Ee=Math.min,Se=function(t){var e=be(t);return e>0?Ee(e,9007199254740991):0},Te=function(t){return Se(t.length)},Me=function(t){return function(e,r,n){var o=I(e),i=Te(o);if(0===i)return !t&&-1;var a,l=xe(n,i);if(t&&r!=r){for(;i>l;)if((a=o[l++])!=a)return !0}else for(;i>l;l++)if((t||l in o)&&o[l]===r)return t||l||0;return !t&&-1}},ze={includes:Me(!0),indexOf:Me(!1)},Ne=ze.indexOf,Oe=O([].push),De=function(t,e){var r,n=I(t),o=0,i=[];for(r in n)!gt(ae,r)&&gt(n,r)&&Oe(i,r);for(;e.length>o;)gt(n,r=e[o++])&&(~Ne(i,r)||Oe(i,r));return i},Pe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ke=Pe.concat("length","prototype"),je={f:Object.getOwnPropertyNames||function(t){return De(t,ke)}},Ae={f:Object.getOwnPropertySymbols},He=O([].concat),Ce=_("Reflect","ownKeys")||function(t){var e=je.f(It(t)),r=Ae.f;return r?He(e,r(t)):e},Ve=function(t,e,r){for(var n=Ce(e),o=$t.f,i=Ht.f,a=0;a<n.length;a++){var l=n[a];gt(t,l)||r&&gt(r,l)||o(t,l,i(e,l));}},Re=/#|\.prototype\./,Ie=function(t,e){var r=Be[Le(t)];return r===_e||r!==We&&(B(e)?g(e):!!e)},Le=Ie.normalize=function(t){return String(t).replace(Re,".").toLowerCase()},Be=Ie.data={},We=Ie.NATIVE="N",_e=Ie.POLYFILL="P",Fe=Ie,qe=Ht.f,$e=function(t,e){var r,n,o,i,a,l=t.target,u=t.global,c=t.stat;if(r=u?p:c?p[l]||st(l,{}):p[l]&&p[l].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=qe(r,n))&&a.value:r[n],!Fe(u?n:l+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ve(i,o);}(t.sham||o&&o.sham)&&Gt(i,"sham",!0),he(r,n,i,t);}},Ge=Array.isArray||function(t){return "Array"===k(t)},Ue=TypeError,Xe=function(t){if(t>9007199254740991)throw Ue("Maximum allowed index exceeded");return t},Ke=function(t,e,r){y?$t.f(t,e,T(0,r)):t[e]=r;},Ye={};Ye[Tt("toStringTag")]="z";var Je="[object z]"===String(Ye),Qe=Tt("toStringTag"),Ze=Object,tr="Arguments"===k(function(){return arguments}()),er=Je?k:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Ze(t),Qe))?r:tr?k(e):"Object"===(n=k(e))&&B(e.callee)?"Arguments":n},rr=function(){},nr=_("Reflect","construct"),or=/^\s*(?:class|function)\b/,ir=O(or.exec),ar=!or.test(rr),lr=function(t){if(!B(t))return !1;try{return nr(rr,[],t),!0}catch(t){return !1}},ur=function(t){if(!B(t))return !1;switch(er(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return ar||!!ir(or,ee(t))}catch(t){return !0}};ur.sham=!0;var cr=!nr||g((function(){var t;return lr(lr.call)||!lr(Object)||!lr((function(){t=!0;}))||t}))?ur:lr,sr=Tt("species"),fr=Array,dr=function(t,e){return new(function(t){var e;return Ge(t)&&(e=t.constructor,(cr(e)&&(e===fr||Ge(e.prototype))||W(e)&&null===(e=e[sr]))&&(e=void 0)),void 0===e?fr:e}(t))(0===e?0:e)},vr=Tt("species"),hr=function(t){return J>=51||!g((function(){var e=[];return (e.constructor={})[vr]=function(){return {foo:1}},1!==e[t](Boolean).foo}))},pr=Tt("isConcatSpreadable"),gr=J>=51||!g((function(){var t=[];return t[pr]=!1,t.concat()[0]!==t})),yr=function(t){if(!W(t))return !1;var e=t[pr];return void 0!==e?!!e:Ge(t)},br=!gr||!hr("concat");$e({target:"Array",proto:!0,arity:1,forced:br},{concat:function(t){var e,r,n,o,i,a=ht(this),l=dr(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(yr(i=-1===e?a:arguments[e]))for(o=Te(i),Xe(u+o),r=0;r<o;r++,u++)r in i&&Ke(l,u,i[r]);else Xe(u+1),Ke(l,u++,i);return l.length=u,l}});var mr=function(t,e){var r=[][t];return !!r&&g((function(){r.call(null,e||function(){return 1},1);}))},wr=O([].join),xr=H!==Object||!mr("join",",");$e({target:"Array",proto:!0,forced:xr},{join:function(t){return wr(I(this),void 0===t?",":t)}});var Er=function(t){if("Function"===k(t))return O(t)},Sr=Er(Er.bind),Tr=function(t,e){return at(t),void 0===e?t:b?Sr(t,e):function(){return t.apply(e,arguments)}},Mr=O([].push),zr=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,l=5===t||i;return function(u,c,s,f){for(var d,v,h=ht(u),p=H(h),g=Te(p),y=Tr(c,s),b=0,m=f||dr,w=e?m(u,g):r||a?m(u,0):void 0;g>b;b++)if((l||b in p)&&(v=y(d=p[b],b,h),t))if(e)w[b]=v;else if(v)switch(t){case 3:return !0;case 5:return d;case 6:return b;case 2:Mr(w,d);}else switch(t){case 4:return !1;case 7:Mr(w,d);}return i?-1:n||o?o:w}},Nr={forEach:zr(0),map:zr(1),filter:zr(2),some:zr(3),every:zr(4),find:zr(5),findIndex:zr(6),filterReject:zr(7)},Or=Nr.map,Dr=hr("map");$e({target:"Array",proto:!0,forced:!Dr},{map:function(t){return Or(this,t,arguments.length>1?arguments[1]:void 0)}});var Pr={type:"table",elemToHtml:function(t,e){var r=t,n=r.width,o=void 0===n?"auto":n,i=r.columnWidths,a=r.height,l=void 0===a?"auto":a,u=null==i?void 0:i.map((function(t){return "<col width=".concat(t,"></col>")})).join(""),c=u?'<colgroup contentEditable="false">'.concat(u,"</colgroup>"):"";return '<table style="width: '.concat(o,";table-layout: fixed;height:").concat(l,'">').concat(c,"<tbody>").concat(e,"</tbody></table>")}},kr={type:"table-row",elemToHtml:function(t,e){return "<tr>".concat(e,"</tr>")}},jr={type:"table-cell",elemToHtml:function(t,e){var r=t,n=r.colSpan,o=void 0===n?1:n,i=r.rowSpan,a=void 0===i?1:i,l=r.isHeader,u=void 0!==l&&l,c=r.width,s=void 0===c?"auto":c,f=r.hidden,d=u?"th":"td",v=void 0!==f&&f?"display:none":"";return "<".concat(d,' colSpan="').concat(o,'" rowSpan="').concat(a,'" width="').concat(s,'" style="').concat(v,'">').concat(e,"</").concat(d,">")}},Ar=function(t,e){return Ar=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);},Ar(t,e)};var Hr=function(){return Hr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Hr.apply(this,arguments)};function Cr(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(u){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=e.call(t,a);}catch(t){l=[6,t],n=0;}finally{r=o=0;}if(5&l[0])throw l[1];return {value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}function Vr(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Rr(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value);}catch(t){o={error:t};}finally{try{n&&!n.done&&(r=i.return)&&r.call(i);}finally{if(o)throw o.error}}return a}function Ir(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var Lr,Br='<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>',Wr=Object.keys||function(t){return De(t,Pe)},_r=y&&!Ct?Object.defineProperties:function(t,e){It(t);for(var r,n=I(e),o=Wr(e),i=o.length,a=0;i>a;)$t.f(t,r=o[a++],n[r]);return t},Fr={f:_r},qr=_("document","documentElement"),$r="prototype",Gr="script",Ur=ie("IE_PROTO"),Xr=function(){},Kr=function(t){return "<"+Gr+">"+t+"</"+Gr+">"},Yr=function(t){t.write(Kr("")),t.close();var e=t.parentWindow.Object;return t=null,e},Jr=function(){try{Lr=new ActiveXObject("htmlfile");}catch(t){}var t,e,r;Jr="undefined"!=typeof document?document.domain&&Lr?Yr(Lr):(e=kt("iframe"),r="java"+Gr+":",e.style.display="none",qr.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Kr("document.F=Object")),t.close(),t.F):Yr(Lr);for(var n=Pe.length;n--;)delete Jr[$r][Pe[n]];return Jr()};ae[Ur]=!0;var Qr=Object.create||function(t,e){var r;return null!==t?(Xr[$r]=It(t),r=new Xr,Xr[$r]=null,r[Ur]=t):r=Jr(),void 0===e?r:Fr.f(r,e)},Zr=$t.f,tn=Tt("unscopables"),en=Array.prototype;void 0===en[tn]&&Zr(en,tn,{configurable:!0,value:Qr(null)});var rn=function(t){en[tn][t]=!0;},nn=ze.includes,on=g((function(){return !Array(1).includes()}));$e({target:"Array",proto:!0,forced:on},{includes:function(t){return nn(this,t,arguments.length>1?arguments[1]:void 0)}}),rn("includes");var an=Tt("match"),ln=TypeError,un=function(t){if(function(t){var e;return W(t)&&(void 0!==(e=t[an])?!!e:"RegExp"===k(t))}(t))throw new ln("The method doesn't accept regular expressions");return t},cn=String,sn=function(t){if("Symbol"===er(t))throw new TypeError("Cannot convert a Symbol value to a string");return cn(t)},fn=Tt("match"),dn=O("".indexOf);$e({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e);}catch(r){try{return e[fn]=!1,"/./"[t](e)}catch(t){}}return !1}("includes")},{includes:function(t){return !!~dn(sn(R(this)),sn(un(t)),arguments.length>1?arguments[1]:void 0)}});var vn={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function hn(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=vn,i=r.map((function(t){var e;return null===(e=null==o?void 0:o.blocks)||void 0===e?void 0:e[t]}));return function(t){return function(t){return !e.Editor.isEditor(t)&&e.Element.isElement(t)&&"type"in t}(t)&&i.includes(t.type)}}function pn(t,r){for(var n=Rr(r,2),o=n[0],i=n[1],a=[],l=2;l<arguments.length;l++)a[l-2]=arguments[l];var u=Rr(e.Node.common(t,o,i),2),c=u[0],s=u[1];return !!hn.apply(void 0,Ir([t],Rr(a),!1))(c,s)||!!e.Editor.above(t,{match:hn.apply(void 0,Ir([t],Rr(a),!1)),at:s})}function gn(t,r){var n,o;void 0===r&&(r={});var i=[];try{for(var a=Vr(function(t,r){var n,o,i,a,l,u,c,s,f,d,v,h,p,g,y,b,m,w;return void 0===r&&(r={}),Cr(this,(function(x){switch(x.label){case 0:if(n=Rr(e.Editor.nodes(t,{match:hn(t,"table"),at:r.at}),1),!(o=n[0]))return [2,[]];i=Rr(o,2),a=i[1],x.label=1;case 1:x.trys.push([1,6,7,8]),l=Vr(e.Editor.nodes(t,{match:hn(t,"table"),at:a})),u=l.next(),x.label=2;case 2:if(u.done)return [3,5];c=Rr(u.value,2),s=c[1],f=[];try{for(m=void 0,d=Vr(e.Editor.nodes(t,{match:hn(t,"tr"),at:s})),v=d.next();!v.done;v=d.next())h=Rr(v.value,2),p=h[1],f.push(Ir([],Rr(e.Editor.nodes(t,{match:hn(t,"th","td"),at:p})),!1));}catch(t){m={error:t};}finally{try{v&&!v.done&&(w=d.return)&&w.call(d);}finally{if(m)throw m.error}}return [4,f];case 3:x.sent(),x.label=4;case 4:return u=l.next(),[3,2];case 5:return [3,8];case 6:return g=x.sent(),y={error:g},[3,8];case 7:try{u&&!u.done&&(b=l.return)&&b.call(l);}finally{if(y)throw y.error}return [7];case 8:return [2]}}))}(t,{at:r.at})),l=a.next();!l.done;l=a.next()){for(var u=l.value,c=[],s=0;s<u.length;s+=1){c[s]||(c[s]=[]);for(var f=0;f<u[s].length;f+=1)for(var d=Rr(u[s][f],1)[0],v=d.rowSpan,h=void 0===v?1:v,p=d.colSpan,g=void 0===p?1:p,y=0;y<g+0;y+=1)for(var b=0;b<h;b+=1)c[s+b]||(c[s+b]=[]),c[s+b][f+y]||(c[s+b][f+y]=[u[s+b][f+y],{rtl:y-0+1,ltr:g-y+0,ttb:b+1,btt:h-b}]);}i.push.apply(i,Ir([],Rr(c),!1));}}catch(t){n={error:t};}finally{try{l&&!l.done&&(o=a.return)&&o.call(a);}finally{if(n)throw n.error}}return i}var yn=function(){function t(t,e){this.x=t,this.y=e;}return t.valueOf=function(t,e){return new this(t,e)},t.equals=function(t,e){return t.x===e.x&&t.y===e.y},t}(),bn=Nr.find,mn="find",wn=!0;mn in[]&&Array(1)[mn]((function(){wn=!1;})),$e({target:"Array",proto:!0,forced:wn},{find:function(t){return bn(this,t,arguments.length>1?arguments[1]:void 0)}}),rn(mn);var xn=function(t,e,r){var n,o;It(t);try{if(!(n=lt(t,"return"))){if("throw"===e)throw r;return r}n=w(n,t);}catch(t){o=!0,n=t;}if("throw"===e)throw r;if(o)throw n;return It(n),r},En=function(t,e,r,n){try{return n?e(It(r)[0],r[1]):e(r)}catch(e){xn(t,"throw",e);}},Sn={},Tn=Tt("iterator"),Mn=Array.prototype,zn=function(t){return void 0!==t&&(Sn.Array===t||Mn[Tn]===t)},Nn=Tt("iterator"),On=function(t){if(!C(t))return lt(t,Nn)||lt(t,"@@iterator")||Sn[er(t)]},Dn=TypeError,Pn=function(t,e){var r=arguments.length<2?On(t):e;if(at(r))return It(w(r,t));throw new Dn(ot(t)+" is not iterable")},kn=Array,jn=Tt("iterator"),An=!1;try{var Hn=0,Cn={next:function(){return {done:!!Hn++}},return:function(){An=!0;}};Cn[jn]=function(){return this},Array.from(Cn,(function(){throw 2}));}catch(t){}var Vn=function(t,e){try{if(!e&&!An)return !1}catch(t){return !1}var r=!1;try{var n={};n[jn]=function(){return {next:function(){return {done:r=!0}}}},t(n);}catch(t){}return r},Rn=!Vn((function(t){Array.from(t);}));$e({target:"Array",stat:!0,forced:Rn},{from:function(t){var e=ht(t),r=cr(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Tr(o,n>2?arguments[2]:void 0));var a,l,u,c,s,f,d=On(e),v=0;if(!d||this===kn&&zn(d))for(a=Te(e),l=r?new this(a):kn(a);a>v;v++)f=i?o(e[v],v):e[v],Ke(l,v,f);else for(l=r?new this:[],s=(c=Pn(e,d)).next;!(u=w(s,c)).done;v++)f=i?En(c,o,[u.value,v],!0):u.value,Ke(l,v,f);return l.length=v,l}});var In=Je?{}.toString:function(){return "[object "+er(this)+"]"};Je||he(Object.prototype,"toString",In,{unsafe:!0});var Ln,Bn,Wn=function(){var t=It(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},_n=p.RegExp,Fn=g((function(){var t=_n("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),qn=Fn||g((function(){return !_n("a","y").sticky})),$n={BROKEN_CARET:Fn||g((function(){var t=_n("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:qn,UNSUPPORTED_Y:Fn},Gn=p.RegExp,Un=g((function(){var t=Gn(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)})),Xn=p.RegExp,Kn=g((function(){var t=Xn("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Yn=de.get,Jn=dt("native-string-replace",String.prototype.replace),Qn=RegExp.prototype.exec,Zn=Qn,to=O("".charAt),eo=O("".indexOf),ro=O("".replace),no=O("".slice),oo=(Bn=/b*/g,w(Qn,Ln=/a/,"a"),w(Qn,Bn,"a"),0!==Ln.lastIndex||0!==Bn.lastIndex),io=$n.BROKEN_CARET,ao=void 0!==/()??/.exec("")[1];(oo||ao||io||Un||Kn)&&(Zn=function(t){var e,r,n,o,i,a,l,u=this,c=Yn(u),s=sn(t),f=c.raw;if(f)return f.lastIndex=u.lastIndex,e=w(Zn,f,s),u.lastIndex=f.lastIndex,e;var d=c.groups,v=io&&u.sticky,h=w(Wn,u),p=u.source,g=0,y=s;if(v&&(h=ro(h,"y",""),-1===eo(h,"g")&&(h+="g"),y=no(s,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==to(s,u.lastIndex-1))&&(p="(?: "+p+")",y=" "+y,g++),r=new RegExp("^(?:"+p+")",h)),ao&&(r=new RegExp("^"+p+"$(?!\\s)",h)),oo&&(n=u.lastIndex),o=w(Qn,v?r:u,y),v?o?(o.input=no(o.input,g),o[0]=no(o[0],g),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:oo&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),ao&&o&&o.length>1&&w(Jn,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0);})),o&&d)for(o.groups=a=Qr(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var lo=Zn;$e({target:"RegExp",proto:!0,forced:/./.exec!==lo},{exec:lo});var uo,co,so,fo=O("".charAt),vo=O("".charCodeAt),ho=O("".slice),po=function(t){return function(e,r){var n,o,i=sn(R(e)),a=be(r),l=i.length;return a<0||a>=l?t?"":void 0:(n=vo(i,a))<55296||n>56319||a+1===l||(o=vo(i,a+1))<56320||o>57343?t?fo(i,a):n:t?ho(i,a,a+2):o-56320+(n-55296<<10)+65536}},go={codeAt:po(!1),charAt:po(!0)},yo=!g((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),bo=ie("IE_PROTO"),mo=Object,wo=mo.prototype,xo=yo?mo.getPrototypeOf:function(t){var e=ht(t);if(gt(e,bo))return e[bo];var r=e.constructor;return B(r)&&e instanceof r?r.prototype:e instanceof mo?wo:null},Eo=Tt("iterator"),So=!1;[].keys&&("next"in(so=[].keys())?(co=xo(xo(so)))!==Object.prototype&&(uo=co):So=!0);var To=!W(uo)||g((function(){var t={};return uo[Eo].call(t)!==t}));To&&(uo={}),B(uo[Eo])||he(uo,Eo,(function(){return this}));var Mo={IteratorPrototype:uo,BUGGY_SAFARI_ITERATORS:So},zo=$t.f,No=Tt("toStringTag"),Oo=function(t,e,r){t&&!r&&(t=t.prototype),t&&!gt(t,No)&&zo(t,No,{configurable:!0,value:e});},Do=Mo.IteratorPrototype,Po=function(){return this},ko=String,jo=TypeError,Ao=function(t){if(function(t){return W(t)||null===t}(t))return t;throw new jo("Can't set "+ko(t)+" as a prototype")},Ho=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=function(t,e,r){try{return O(at(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array;}catch(t){}return function(r,n){return R(r),Ao(n),W(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),Co=Yt.PROPER,Vo=Yt.CONFIGURABLE,Ro=Mo.IteratorPrototype,Io=Mo.BUGGY_SAFARI_ITERATORS,Lo=Tt("iterator"),Bo="keys",Wo="values",_o="entries",Fo=function(){return this},qo=function(t,e,r,n,o,i,a){!function(t,e,r,n){var o=e+" Iterator";t.prototype=Qr(Do,{next:T(+!n,r)}),Oo(t,o,!1),Sn[o]=Po;}(r,e,n);var l,u,c,s=function(t){if(t===o&&p)return p;if(!Io&&t&&t in v)return v[t];switch(t){case Bo:case Wo:case _o:return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",d=!1,v=t.prototype,h=v[Lo]||v["@@iterator"]||o&&v[o],p=!Io&&h||s(o),g="Array"===e&&v.entries||h;if(g&&(l=xo(g.call(new t)))!==Object.prototype&&l.next&&(xo(l)!==Ro&&(Ho?Ho(l,Ro):B(l[Lo])||he(l,Lo,Fo)),Oo(l,f,!0)),Co&&o===Wo&&h&&h.name!==Wo&&(Vo?Gt(v,"name",Wo):(d=!0,p=function(){return w(h,this)})),o)if(u={values:s(Wo),keys:i?p:s(Bo),entries:s(_o)},a)for(c in u)(Io||d||!(c in v))&&he(v,c,u[c]);else $e({target:e,proto:!0,forced:Io||d},u);return v[Lo]!==p&&he(v,Lo,p,{name:o}),Sn[e]=p,u},$o=function(t,e){return {value:t,done:e}},Go=go.charAt,Uo="String Iterator",Xo=de.set,Ko=de.getterFor(Uo);qo(String,"String",(function(t){Xo(this,{type:Uo,string:sn(t),index:0});}),(function(){var t,e=Ko(this),r=e.string,n=e.index;return n>=r.length?$o(void 0,!0):(t=Go(r,n),e.index+=t.length,$o(t,!1))}));var Yo={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},Jo=kt("span").classList,Qo=Jo&&Jo.constructor&&Jo.constructor.prototype,Zo=Qo===Object.prototype?void 0:Qo,ti=Nr.forEach,ei=mr("forEach")?[].forEach:function(t){return ti(this,t,arguments.length>1?arguments[1]:void 0)},ri=function(t){if(t&&t.forEach!==ei)try{Gt(t,"forEach",ei);}catch(e){t.forEach=ei;}};for(var ni in Yo)Yo[ni]&&ri(p[ni]&&p[ni].prototype);ri(Zo);var oi,ii="\t\n\v\f\r                 \u2028\u2029\ufeff",ai=O("".replace),li=RegExp("^["+ii+"]+"),ui=RegExp("(^|[^"+ii+"])["+ii+"]+$"),ci=function(t){return function(e){var r=sn(R(e));return 1&t&&(r=ai(r,li,"")),2&t&&(r=ai(r,ui,"$1")),r}},si={start:ci(1),end:ci(2),trim:ci(3)},fi=Yt.PROPER,di=si.trim;function vi(t){return t.length?t[0].tagName.toLowerCase():""}function hi(t,e){for(var r="",n=(t.attr("style")||"").split(";"),o=n.length,i=0;i<o;i+=1){var a=n[i];if(a){var l=a.split(":");l[0].trim()===e&&(r=l[1].trim());}}return r}$e({target:"String",proto:!0,forced:(oi="trim",g((function(){return !!ii[oi]()||"​…᠎"!=="​…᠎"[oi]()||fi&&ii[oi].name!==oi})))},{trim:function(){return di(this)}}),$e({global:!0,forced:p.globalThis!==p},{globalThis:p}),r.append&&(l.default.fn.append=r.append),r.on&&(l.default.fn.on=r.on),r.focus&&(l.default.fn.focus=r.focus),r.attr&&(l.default.fn.attr=r.attr),r.val&&(l.default.fn.val=r.val),r.html&&(l.default.fn.html=r.html),r.dataset&&(l.default.fn.dataset=r.dataset),r.addClass&&(l.default.fn.addClass=r.addClass),r.removeClass&&(l.default.fn.removeClass=r.removeClass),r.children&&(l.default.fn.children=r.children),r.each&&(l.default.fn.each=r.each),r.find&&(l.default.fn.find=r.find),r.data&&(l.default.fn.data=r.data),r.hide&&(l.default.fn.hide=r.hide),r.show&&(l.default.fn.show=r.show);var pi=function(){function r(){this.title=t.t("tableModule.tableProperty"),this.iconSvg='<svg viewBox="0 0 20 20"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.borderStyle=[{value:"none",label:t.t("tableModule.borderStyle.none")},{value:"solid",label:t.t("tableModule.borderStyle.solid")},{value:"dotted",label:t.t("tableModule.borderStyle.dotted")},{value:"dashed",label:t.t("tableModule.borderStyle.dashed")},{value:"double",label:t.t("tableModule.borderStyle.double")},{value:"groove",label:t.t("tableModule.borderStyle.groove")},{value:"ridge",label:t.t("tableModule.borderStyle.ridge")},{value:"inset",label:t.t("tableModule.borderStyle.inset")},{value:"outset",label:t.t("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:t.t("justify.left"),svg:'<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>'},{value:"center",label:t.t("justify.center"),svg:'<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>'},{value:"right",label:t.t("justify.right"),svg:'<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>'},{value:"justify",label:t.t("justify.justify"),svg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>'}];}return r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||null==t.DomEditor.getSelectedNodeByType(r,"table"))},r.prototype.exec=function(t,e){},r.prototype.getModalContentNode=function(t){return Rr(e.Editor.nodes(t,{match:hn(t,"table")}),1)[0]},r.prototype.getModalPositionNode=function(t){return null},r.prototype.getModalContentElem=function(r){var n=this,o=this.getModalContentNode(r);if(!o)return null;var i=Rr(o,2),a=i[0],u=i[1],c=l.default('<div>\n <label class="babel-container">\n <span>'.concat(t.t("tableModule.modal.border"),'</span>\n <span class="babel-container-border">\n <select name="borderStyle">\n ').concat(this.borderStyle.map((function(t){return '<option value="'.concat(t.value,'">').concat(t.label,"</option>")})).join(""),'\n </select>\n <span class="color-group" data-mark="color">\n <span class="color-group-block"></span>\n <input name="borderColor" type="hidden">\n </span>\n <input name="borderWidth" type="number" placeholder="').concat(t.t("tableModule.modal.borderWidth"),'">\n </span>\n </label>\n <div class="babel-container">\n <span>').concat(t.t("tableModule.modal.bgColor"),'</span>\n <span class="babel-container-background">\n <span class="color-group" data-mark="bgColor">\n <span class="color-group-block"></span>\n <input name="backgroundColor" type="hidden">\n </span>\n </span>\n </div>\n <label class="babel-container">\n <span>').concat(t.t("tableModule.modal.align"),'</span>\n <span class="babel-container-align">\n <select name="textAlign">\n ').concat(this.textAlignOptions.map((function(t){return '<option value="'.concat(t.value,'">').concat(t.label,"</option>")})).join(""),'\n </select>\n </span>\n </label>\n <div class="button-container">\n <button type="button">').concat(t.t("tableModule.modal.ok"),"</button>\n </div>\n </div>"));c.find("[name]").each((function(t){l.default(t).val(a[l.default(t).attr("name")]);}));var s=function(t,e){e?l.default(".color-group-block",t).css("background-color",e).empty():l.default(".color-group-block",t).css("background-color","").html(Br);};return c.find(".color-group").each((function(t){var e=l.default('[type="hidden"]',t).val()||"";s(t,e);var o=l.default(t);o.on("click",(function(){c.find(".color-group .w-e-drop-panel").hide();var i=o.data("panel");i?i.show():(i=n.getPanelContentElem(r,{mark:o.data("mark"),selectedColor:e,callback:function(e){l.default('[type="hidden"]',t).val(e||""),s(t,e),i.hide();}}),o.append(i),o.data("panel",i));}));})),c.find("button").on("click",(function(){var t=Array.from(c.find("[name]")).reduce((function(t,e){return t[l.default(e).attr("name")]=l.default(e).val(),t}),{});e.Transforms.setNodes(r,t,{at:u}),setTimeout((function(){r.focus();}));})),c[0]},r.prototype.getPanelContentElem=function(e,r){var n=r.mark,o=r.selectedColor,i=r.callback,a=l.default('<ul class="w-e-panel-content-color"></ul>');a.on("click","li",(function(t){var e=t.target;if(e){t.preventDefault(),t.stopPropagation();var r=l.default(e).attr("data-value");i(r);}}));var u=e.getMenuConfig(n).colors;(void 0===u?[]:u).forEach((function(t){var e=l.default('<div class="color-block" data-value="'.concat(t,'"></div>'));e.css("background-color",t);var r=l.default('<li data-value="'.concat(t,'"></li>'));o===t&&r.addClass("active"),r.append(e),a.append(r);}));var c="";"color"===n&&(c=t.t("tableModule.color.default")),"bgColor"===n&&(c=t.t("tableModule.color.clear"));var s=l.default('\n <li data-value="" class="clear">\n '.concat(Br,"\n ").concat(c,"\n </li>\n "));a.prepend(s);var f=l.default('<div class="w-e-drop-panel"></div>');return f.append(a),f},r}(),gi=function(r){function n(){var e=null!==r&&r.apply(this,arguments)||this;return e.title=t.t("tableModule.cellProperty"),e.iconSvg='<svg viewBox="0 0 20 20"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',e.tag="button",e.showModal=!0,e.modalWidth=300,e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t;}Ar(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r);}(n,r),n.prototype.getModalContentNode=function(t){return Rr(e.Editor.nodes(t,{match:hn(t,"td")}),1)[0]},n}(pi),yi=TypeError,bi=Object.getOwnPropertyDescriptor,mi=y&&!function(){if(void 0!==this)return !0;try{Object.defineProperty([],"length",{writable:!1}).length=1;}catch(t){return t instanceof TypeError}}()?function(t,e){if(Ge(t)&&!bi(t,"length").writable)throw new yi("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},wi=TypeError,xi=function(t,e){if(!delete t[e])throw new wi("Cannot delete property "+ot(e)+" of "+ot(t))},Ei=hr("splice"),Si=Math.max,Ti=Math.min;$e({target:"Array",proto:!0,forced:!Ei},{splice:function(t,e){var r,n,o,i,a,l,u=ht(this),c=Te(u),s=xe(t,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-s):(r=f-2,n=Ti(Si(be(e),0),c-s)),Xe(c+r-n),o=dr(u,n),i=0;i<n;i++)(a=s+i)in u&&Ke(o,i,u[a]);if(o.length=n,r<n){for(i=s;i<c-n;i++)l=i+r,(a=i+n)in u?u[l]=u[a]:xi(u,l);for(i=c;i>c-n+r;i--)xi(u,i-1);}else if(r>n)for(i=c-n;i>s;i--)l=i+r-1,(a=i+n-1)in u?u[l]=u[a]:xi(u,l);for(i=0;i<r;i++)u[i+s]=arguments[i+2];return mi(u,c-n+r),o}});var Mi=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||null==t.DomEditor.getSelectedNodeByType(r,"table-cell"))},r.prototype.exec=function(r,n){if(!this.isDisabled(r)){var o=Rr(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table-cell")},universal:!0}),1),i=Rr(o[0],2),a=i[0],l=i[1],u=t.DomEditor.getParentNode(r,a),c=(null==u?void 0:u.children.length)||0;if(!u||c<=1)e.Transforms.removeNodes(r,{mode:"highest"});else if(null!=t.DomEditor.getParentNode(r,u)){var s=gn(r),f=0;t:for(var d=0;d<s.length;d+=1)for(var v=0;v<s[d].length;v+=1){var h=Rr(s[d][v],1),p=Rr(h[0],2)[1];if(e.Path.equals(l,p)){f=v;break t}}e.Editor.withoutNormalizing(r,(function(){for(var n,o,i=0;i<s.length;i+=1){var a=Rr(s[i][f],2),l=Rr(a[0],1)[0].hidden,u=a[1],c=u.rtl,d=u.ltr;if(c>1||d>1){var v=Rr(s[i][f-(c-1)],1),h=Rr(v[0],2),p=h[0],g=p.rowSpan,y=void 0===g?1:g,b=p.colSpan,m=void 0===b?1:b,w=h[1];if(l)e.Transforms.setNodes(r,{rowSpan:y,colSpan:Math.max(m-1,1)},{at:w});else {var x=Rr(s[i][f+1],1),E=Rr(x[0],2)[1];e.Transforms.setNodes(r,{rowSpan:y,colSpan:m-1,hidden:!1},{at:E});try{for(var S=(n=void 0,Vr(e.Node.children(r,w,{reverse:!0}))),T=S.next();!T.done;T=S.next()){var M=Rr(T.value,2)[1];e.Transforms.moveNodes(r,{to:Ir(Ir([],Rr(E),!1),[0],!1),at:M});}}catch(t){n={error:t};}finally{try{T&&!T.done&&(o=S.return)&&o.call(S);}finally{if(n)throw n.error}}}}}for(i=0;i<s.length;i+=1){var z=Rr(s[i][f],1);w=Rr(z[0],2)[1];e.Transforms.removeNodes(r,{at:w});}var N=Rr(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table")},universal:!0}),1)[0];if(N){var O=Rr(N,2),D=O[0],P=O[1],k=D.columnWidths,j=Ir([],Rr(void 0===k?[]:k),!1);j.splice(f,1),e.Transforms.setNodes(r,{columnWidths:j},{at:P});}}));}}},r}(),zi=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||null==t.DomEditor.getSelectedNodeByType(r,"table-row"))},r.prototype.exec=function(r,n){if(!this.isDisabled(r)){var o=Rr(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table-row")},universal:!0}),1),i=Rr(o[0],2),a=i[0],l=i[1],u=t.DomEditor.getParentNode(r,a);if(((null==u?void 0:u.children.length)||0)<=1)e.Transforms.removeNodes(r,{mode:"highest"});else {var c=Rr(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table-cell")},universal:!0}),1),s=Rr(c[0],2)[1],f=gn(r),d=0;t:for(var v=0;v<f.length;v+=1)for(var h=0;h<f[v].length;h+=1){var p=Rr(f[v][h],1),g=Rr(p[0],2)[1];if(e.Path.equals(s,g)){d=v;break t}}e.Editor.withoutNormalizing(r,(function(){for(var t,n,o=0;o<f[d].length;o+=1){var i=Rr(f[d][o],2),a=Rr(i[0],1)[0].hidden,u=i[1],c=u.ttb,s=u.btt;if(c>1||s>1){var v=Rr(f[d-(c-1)][o],1),h=Rr(v[0],2),p=h[0],g=p.rowSpan,y=void 0===g?1:g,b=p.colSpan,m=void 0===b?1:b,w=h[1];if(a)e.Transforms.setNodes(r,{rowSpan:Math.max(y-1,1),colSpan:m},{at:w});else {var x=Rr(f[d+1][o],1),E=Rr(x[0],2)[1];e.Transforms.setNodes(r,{rowSpan:y-1,colSpan:m,hidden:!1},{at:E});try{for(var S=(t=void 0,Vr(e.Node.children(r,w,{reverse:!0}))),T=S.next();!T.done;T=S.next()){var M=Rr(T.value,2)[1];e.Transforms.moveNodes(r,{to:Ir(Ir([],Rr(E),!1),[0],!1),at:M});}}catch(e){t={error:e};}finally{try{T&&!T.done&&(n=S.return)&&n.call(S);}finally{if(t)throw t.error}}}}}e.Transforms.removeNodes(r,{at:l});}));}}},r}(),Ni=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(e){return null==e.selection||null==t.DomEditor.getSelectedNodeByType(e,"table")},r.prototype.exec=function(t,r){this.isDisabled(t)||e.Transforms.removeNodes(t,{mode:"highest"});},r}(),Oi=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(e){var r=t.DomEditor.getSelectedNodeByType(e,"table");return null!=r&&"100%"===r.width},r.prototype.isActive=function(t){return !!this.getValue(t)},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||null==t.DomEditor.getSelectedNodeByType(r,"table"))},r.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n={width:r?"auto":"100%"};e.Transforms.setNodes(t,n,{mode:"highest"});}},r}();function Di(t){var e=t.children||[];return 0===e.length?[]:(e[0]||{}).children||[]}function Pi(t){return Di(t).every((function(t){return !!t.isHeader}))}var ki=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||null==t.DomEditor.getSelectedNodeByType(r,"table"))},r.prototype.exec=function(r,n){if(!this.isDisabled(r)){var o=Rr(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table-cell")},universal:!0}),1),i=Rr(o[0],2),a=i[0],l=i[1],u=t.DomEditor.getParentNode(r,a);if(null!=u){var c=t.DomEditor.getParentNode(r,u);if(null!=c){for(var s=gn(r),f=0,d=0;d<s.length;d+=1)for(var v=0;v<s[d].length;v+=1){var h=Rr(s[d][v],1),p=Rr(h[0],2)[1];if(e.Path.equals(l,p)){f=v;break}}e.Editor.withoutNormalizing(r,(function(){for(var n=[],o=0;o<s.length;o+=1){var i=Rr(s[o][f],2)[1],a=i.ltr,l=i.rtl;if(a>1||l>1){if(1===l)continue;var u=Rr(s[o][f-(l-1)],1),d=Rr(u[0],2),v=d[0],h=d[1],p=v.colSpan||1;n.push(o),v.hidden||e.Transforms.setNodes(r,{colSpan:p+1},{at:h});}}for(o=0;o<s.length;o+=1){var g={type:"table-cell",hidden:n.includes(o),children:[{text:""}]};0===o&&Pi(c)&&(g.isHeader=!0);var y=Rr(s[o][f],1),b=Rr(y[0],2)[1];e.Transforms.insertNodes(r,g,{at:b});}var m=Rr(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table")},universal:!0}),1)[0];if(m){var w=Rr(m,2),x=w[0],E=w[1],S=x.columnWidths,T=Ir([],Rr(void 0===S?[]:S),!1),M=r.getMenuConfig("insertTable").minWidth,z=void 0===M?60:M;T.splice(f,0,parseInt(z,10)||60),e.Transforms.setNodes(r,{columnWidths:T},{at:E});}}));}}}},r}(),ji=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||null==t.DomEditor.getSelectedNodeByType(r,"table"))},r.prototype.exec=function(r,n){if(!this.isDisabled(r)){var o=Rr(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table-cell")},universal:!0}),1),i=Rr(o[0],2),a=i[0],l=i[1],u=t.DomEditor.getParentNode(r,a),c=(null==u?void 0:u.children.length)||0;if(0!==c){var s=gn(r),f=0;t:for(var d=0;d<s.length;d+=1)for(var v=0;v<s[d].length;v+=1){var h=Rr(s[d][v],1),p=Rr(h[0],2)[1];if(e.Path.equals(l,p)){f=d;break t}}e.Editor.withoutNormalizing(r,(function(){for(var t=f+1,n=t>=0&&t<s.length,o=[],i=0;n&&i<s[f].length;i+=1){var a=Rr(s[f][i],2)[1],u=a.ttb,d=a.btt;if(u>1||d>1){if(1===d)continue;var v=Rr(s[f-(u-1)][i],1),h=Rr(v[0],2),p=h[0],g=h[1],y=p.rowSpan||1;o.push(i),p.hidden||e.Transforms.setNodes(r,{rowSpan:y+1},{at:g});}}for(var b={type:"table-row",children:[]},m=0;m<c;m+=1){var w={type:"table-cell",hidden:o.includes(m),children:[{text:""}]};b.children.push(w);}var x=e.Path.parent(l),E=e.Path.next(x);e.Transforms.insertNodes(r,b,{at:E});}));}}},r}();$e({target:"Array",proto:!0},{fill:function(t){for(var e=ht(this),r=Te(e),n=arguments.length,o=xe(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:xe(i,r);a>o;)e[o++]=t;return e}}),rn("fill");var Ai=RegExp.prototype,Hi=Yt.PROPER,Ci="toString",Vi=RegExp.prototype,Ri=Vi[Ci],Ii=g((function(){return "/a/b"!==Ri.call({source:"a",flags:"b"})})),Li=Hi&&Ri.name!==Ci;(Ii||Li)&&he(Vi,Ci,(function(){var t=It(this),e=sn(t.source),r=sn(function(t){var e=t.flags;return void 0!==e||"flags"in Ai||gt(t,"flags")||!F(Ai,t)?e:w(Wn,t)}(t));return "/"+e+"/"+r}),{unsafe:!0});var Bi=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.exec=function(t,e){},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||!!t.DomEditor.getSelectedElems(r).some((function(e){var n=t.DomEditor.getNodeType(e);return "pre"===n||("table"===n||("list-item"===n||!!r.isVoid(e)))})))},r.prototype.getPanelContentElem=function(t){var e=this;if(this.$content)return this.$content[0];for(var r=l.default('<div class="w-e-panel-content-table"></div>'),n=l.default("<span>0 &times; 0</span>"),o=l.default("<table></table>"),i=0;i<10;i+=1){for(var a=l.default("<tr></tr>"),u=0;u<10;u+=1){var c=l.default("<td></td>");c.attr("data-x",u.toString()),c.attr("data-y",i.toString()),a.append(c),c.on("mouseenter",(function(t){var e=t.target;if(null!=e){var r=l.default(e).dataset(),i=r.x,a=r.y;n[0].innerHTML="".concat(i+1," &times; ").concat(a+1),o.children().each((function(t){l.default(t).children().each((function(t){var e=l.default(t),r=e.dataset(),n=r.x,o=r.y;n<=i&&o<=a?e.addClass("active"):e.removeClass("active");}));}));}})),c.on("click",(function(r){r.preventDefault();var n=r.target;if(null!=n){var o=l.default(n).dataset(),i=o.x,a=o.y;e.insertTable(t,a+1,i+1);}}));}o.append(a);}return r.append(o),r.append(n),this.$content=r,r[0]},r.prototype.insertTable=function(r,n,o){var i=parseInt(n,10),a=parseInt(o,10);if(i&&a&&!(i<=0||a<=0)){if(t.DomEditor.isSelectedEmptyParagraph(r)&&e.Transforms.removeNodes(r,{mode:"highest"}),0===r.children.length){e.Transforms.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"});}var l=function(t,e,r){for(var n,o=[],i=t.getMenuConfig("insertTable"),a=i.minWidth,l=void 0===a?60:a,u=i.tableFullWidth,c=i.tableHeader,s=Array(r).fill(parseInt(l,10)||60),f=0;f<e;f+=1){for(var d=[],v=0;v<r;v+=1){var h={type:"table-cell",children:[{text:""}]};0===f&&(h.isHeader=null===(n=null==c?void 0:c.selected)||void 0===n||n),d.push(h);}o.push({type:"table-row",children:d});}return {type:"table",width:(null==u?void 0:u.selected)?"100%":"auto",children:o,columnWidths:s}}(r,i,a);e.Transforms.insertNodes(r,l,{mode:"highest"});}},r}(),Wi=$t.f,_i="Array Iterator",Fi=de.set,qi=de.getterFor(_i),$i=qo(Array,"Array",(function(t,e){Fi(this,{type:_i,target:I(t),index:0,kind:e});}),(function(){var t=qi(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,$o(void 0,!0);switch(t.kind){case"keys":return $o(r,!1);case"values":return $o(e[r],!1)}return $o([r,e[r]],!1)}),"values"),Gi=Sn.Arguments=Sn.Array;if(rn("keys"),rn("values"),rn("entries"),y&&"values"!==Gi.name)try{Wi(Gi,"name",{value:"values"});}catch(t){}var Ui=!g((function(){return Object.isExtensible(Object.preventExtensions({}))})),Xi=function(t,e,r){for(var n in e)he(t,n,e[n],r);return t},Ki=O([].slice),Yi=je.f,Ji="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Qi={f:function(t){return Ji&&"Window"===k(t)?function(t){try{return Yi(t)}catch(t){return Ki(Ji)}}(t):Yi(I(t))}},Zi=g((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8});}})),ta=Object.isExtensible,ea=g((function(){ta(1);}))||Zi?function(t){return !!W(t)&&((!Zi||"ArrayBuffer"!==k(t))&&(!ta||ta(t)))}:ta,ra=f((function(t){var e=$t.f,r=!1,n=wt("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}});},a=t.exports={enable:function(){a.enable=function(){},r=!0;var t=je.f,e=O([].splice),o={};o[n]=1,t(o).length&&(je.f=function(r){for(var o=t(r),i=0,a=o.length;i<a;i++)if(o[i]===n){e(o,i,1);break}return o},$e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Qi.f}));},fastKey:function(t,e){if(!W(t))return "symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!gt(t,n)){if(!ea(t))return "F";if(!e)return "E";i(t);}return t[n].objectID},getWeakData:function(t,e){if(!gt(t,n)){if(!ea(t))return !0;if(!e)return !1;i(t);}return t[n].weakData},onFreeze:function(t){return Ui&&r&&ea(t)&&!gt(t,n)&&i(t),t}};ae[n]=!0;})),na=TypeError,oa=function(t,e){this.stopped=t,this.result=e;},ia=oa.prototype,aa=function(t,e,r){var n,o,i,a,l,u,c,s=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),v=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),p=Tr(e,s),g=function(t){return n&&xn(n,"normal",t),new oa(!0,t)},y=function(t){return f?(It(t),h?p(t[0],t[1],g):p(t[0],t[1])):h?p(t,g):p(t)};if(d)n=t.iterator;else if(v)n=t;else {if(!(o=On(t)))throw new na(ot(t)+" is not iterable");if(zn(o)){for(i=0,a=Te(t);a>i;i++)if((l=y(t[i]))&&F(ia,l))return l;return new oa(!1)}n=Pn(t,o);}for(u=d?t.next:n.next;!(c=w(u,n)).done;){try{l=y(c.value);}catch(t){xn(n,"throw",t);}if("object"==typeof l&&l&&F(ia,l))return l}return new oa(!1)},la=TypeError,ua=function(t,e){if(F(e,t))return t;throw new la("Incorrect invocation")},ca=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=p[t],l=a&&a.prototype,u=a,c={},s=function(t){var e=O(l[t]);he(l,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return !(o&&!W(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!W(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return !(o&&!W(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this});};if(Fe(t,!B(a)||!(o||l.forEach&&!g((function(){(new a).entries().next();})))))u=r.getConstructor(e,t,n,i),ra.enable();else if(Fe(t,!0)){var f=new u,d=f[i](o?{}:-0,1)!==f,v=g((function(){f.has(1);})),h=Vn((function(t){new a(t);})),y=!o&&g((function(){for(var t=new a,e=5;e--;)t[i](e,e);return !t.has(-0)}));h||((u=e((function(t,e){ua(t,l);var r=function(t,e,r){var n,o;return Ho&&B(n=e.constructor)&&n!==r&&W(o=n.prototype)&&o!==r.prototype&&Ho(t,o),t}(new a,t,u);return C(e)||aa(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=l,l.constructor=u),(v||y)&&(s("delete"),s("has"),n&&s("get")),(y||d)&&s(i),o&&l.clear&&delete l.clear;}return c[t]=u,$e({global:!0,constructor:!0,forced:u!==a},c),Oo(u,t),o||r.setStrong(u,t,n),u},sa=ra.getWeakData,fa=de.set,da=de.getterFor,va=Nr.find,ha=Nr.findIndex,pa=O([].splice),ga=0,ya=function(t){return t.frozen||(t.frozen=new ba)},ba=function(){this.entries=[];},ma=function(t,e){return va(t.entries,(function(t){return t[0]===e}))};ba.prototype={get:function(t){var e=ma(this,t);if(e)return e[1]},has:function(t){return !!ma(this,t)},set:function(t,e){var r=ma(this,t);r?r[1]=e:this.entries.push([t,e]);},delete:function(t){var e=ha(this.entries,(function(e){return e[0]===t}));return ~e&&pa(this.entries,e,1),!!~e}};var wa,xa={getConstructor:function(t,e,r,n){var o=t((function(t,o){ua(t,i),fa(t,{type:e,id:ga++,frozen:null}),C(o)||aa(o,t[n],{that:t,AS_ENTRIES:r});})),i=o.prototype,a=da(e),l=function(t,e,r){var n=a(t),o=sa(It(e),!0);return !0===o?ya(n).set(e,r):o[n.id]=r,t};return Xi(i,{delete:function(t){var e=a(this);if(!W(t))return !1;var r=sa(t);return !0===r?ya(e).delete(t):r&&gt(r,e.id)&&delete r[e.id]},has:function(t){var e=a(this);if(!W(t))return !1;var r=sa(t);return !0===r?ya(e).has(t):r&&gt(r,e.id)}}),Xi(i,r?{get:function(t){var e=a(this);if(W(t)){var r=sa(t);if(!0===r)return ya(e).get(t);if(r)return r[e.id]}},set:function(t,e){return l(this,t,e)}}:{add:function(t){return l(this,t,!0)}}),o}},Ea=de.enforce,Sa=Object,Ta=Array.isArray,Ma=Sa.isExtensible,za=Sa.isFrozen,Na=Sa.isSealed,Oa=Sa.freeze,Da=Sa.seal,Pa=!p.ActiveXObject&&"ActiveXObject"in p,ka=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},ja=ca("WeakMap",ka,xa),Aa=ja.prototype,Ha=O(Aa.set);if(ne)if(Pa){wa=xa.getConstructor(ka,"WeakMap",!0),ra.enable();var Ca=O(Aa.delete),Va=O(Aa.has),Ra=O(Aa.get);Xi(Aa,{delete:function(t){if(W(t)&&!Ma(t)){var e=Ea(this);return e.frozen||(e.frozen=new wa),Ca(this,t)||e.frozen.delete(t)}return Ca(this,t)},has:function(t){if(W(t)&&!Ma(t)){var e=Ea(this);return e.frozen||(e.frozen=new wa),Va(this,t)||e.frozen.has(t)}return Va(this,t)},get:function(t){if(W(t)&&!Ma(t)){var e=Ea(this);return e.frozen||(e.frozen=new wa),Va(this,t)?Ra(this,t):e.frozen.get(t)}return Ra(this,t)},set:function(t,e){if(W(t)&&!Ma(t)){var r=Ea(this);r.frozen||(r.frozen=new wa),Va(this,t)?Ha(this,t,e):r.frozen.set(t,e);}else Ha(this,t,e);return this}});}else Ui&&g((function(){var t=Oa([]);return Ha(new ja,t,1),!za(t)}))&&Xi(Aa,{set:function(t,e){var r;return Ta(t)&&(za(t)?r=Oa:Na(t)&&(r=Da)),Ha(this,t,e),r&&r(t),this}});var Ia=Tt("iterator"),La=$i.values,Ba=function(t,e){if(t){if(t[Ia]!==La)try{Gt(t,Ia,La);}catch(e){t[Ia]=La;}if(Oo(t,e,!0),Yo[e])for(var r in $i)if(t[r]!==$i[r])try{Gt(t,r,$i[r]);}catch(e){t[r]=$i[r];}}};for(var Wa in Yo)Ba(p[Wa]&&p[Wa].prototype,Wa);Ba(Zo,"DOMTokenList");var _a=new WeakMap,Fa=new WeakMap,qa={isInTable:function(t,r){return void 0===r&&(r={}),!!Rr(e.Editor.nodes(t,{match:hn(t,"table"),at:r.at}),1)[0]},selection:function(t){var e,r,n,o,i,a,l,u;return Cr(this,(function(c){switch(c.label){case 0:e=_a.get(t),r=0,c.label=1;case 1:if(!(e&&r<e.length))return [3,4];for(n=[],o=0;o<e[r].length;o+=1)i=Rr(e[r][o],2),a=i[0],l=i[1],u=l.ltr,1===l.ttb&&n.push(a),o+=u-1;return [4,n];case 2:c.sent(),c.label=3;case 3:return r+=1,[3,1];case 4:return [2]}}))},unselect:function(t){Fa.delete(t),_a.delete(t);},isSelected:function(t,e){var r=Fa.get(t);return !!r&&r.has(e)}},$a=function(){function r(){this.title=t.t("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button";}return r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(t){return !this.canMerge(t)},r.prototype.exec=function(t,e){this.isDisabled(t)||(this.merge(t),qa.unselect(t));},r.prototype.canMerge=function(t){var e=_a.get(t);if(!e||!e.length)return !1;var r=Rr(e[e.length-1][e[e.length-1].length-1],1),n=Rr(r[0],2)[1],o=Rr(e[0][0],1);return !!pn(t,[Rr(o[0],2)[1],n],"table")},r.prototype.merge=function(t){if(this.canMerge(t)){var r=_a.get(t);if(r&&r.length){var n=Rr(r[0][0],1),o=Rr(n[0],2)[1],i=Rr(e.Node.children(t,o,{reverse:!0}),1),a=Rr(i[0],2)[1];e.Editor.withoutNormalizing(t,(function(){for(var n,i,l=0,u=0,c=r.length-1;c>=0;c-=1,l+=1){u=0;for(var s=r[c].length-1;s>=0;s-=1,u+=1){var f=Rr(r[c][s],2),d=Rr(f[0],2)[1],v=f[1].ttb;if(!(e.Path.equals(o,d)||v>1)){try{for(var h=(n=void 0,Vr(e.Node.children(t,d,{reverse:!0}))),p=h.next();!p.done;p=h.next()){var g=Rr(p.value,2)[1];e.Transforms.moveNodes(t,{to:e.Path.next(a),at:g});}}catch(t){n={error:t};}finally{try{p&&!p.done&&(i=h.return)&&i.call(h);}finally{if(n)throw n.error}}var y=Rr(e.Editor.nodes(t,{match:hn(t,"tr"),at:d}),1),b=Rr(y[0],2)[1];Rr(e.Node.children(t,b),2)[1]&&e.Transforms.setNodes(t,{hidden:!0},{at:d});}}}e.Transforms.setNodes(t,{rowSpan:l,colSpan:u},{at:o});}));}}},r}(),Ga=Tt("species"),Ua=RegExp.prototype,Xa=function(t,e,r,n){var o=Tt(t),i=!g((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),a=i&&!g((function(){var e=!1,r=/a/;return "split"===t&&((r={}).constructor={},r.constructor[Ga]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var l=/./[o],u=e(o,""[t],(function(t,e,r,n,o){var a=e.exec;return a===lo||a===Ua.exec?i&&!o?{done:!0,value:w(l,e,r,n)}:{done:!0,value:w(t,r,e,n)}:{done:!1}}));he(String.prototype,t,u[0]),he(Ua,o,u[1]);}n&&Gt(Ua[o],"sham",!0);},Ka=TypeError,Ya=Tt("species"),Ja=function(t,e){var r,n=It(t).constructor;return void 0===n||C(r=It(n)[Ya])?e:function(t){if(cr(t))return t;throw new Ka(ot(t)+" is not a constructor")}(r)},Qa=go.charAt,Za=function(t,e,r){return e+(r?Qa(t,e).length:1)},tl=TypeError,el=function(t,e){var r=t.exec;if(B(r)){var n=w(r,t,e);return null!==n&&It(n),n}if("RegExp"===k(t))return w(lo,t,e);throw new tl("RegExp#exec called on incompatible receiver")},rl=$n.UNSUPPORTED_Y,nl=Math.min,ol=O([].push),il=O("".slice),al=!g((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),ll="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;Xa("split",(function(t,e,r){var n="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:w(e,this,t,r)}:e;return [function(e,r){var o=R(this),i=C(e)?void 0:lt(e,t);return i?w(i,e,o,r):w(n,sn(o),e,r)},function(t,o){var i=It(this),a=sn(t);if(!ll){var l=r(n,i,a,o,n!==e);if(l.done)return l.value}var u=Ja(i,RegExp),c=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(rl?"g":"y"),f=new u(rl?"^(?:"+i.source+")":i,s),d=void 0===o?4294967295:o>>>0;if(0===d)return [];if(0===a.length)return null===el(f,a)?[a]:[];for(var v=0,h=0,p=[];h<a.length;){f.lastIndex=rl?0:h;var g,y=el(f,rl?il(a,h):a);if(null===y||(g=nl(Se(f.lastIndex+(rl?h:0)),a.length))===v)h=Za(a,h,c);else {if(ol(p,il(a,v,h)),p.length===d)return p;for(var b=1;b<=y.length-1;b++)if(ol(p,y[b]),p.length===d)return p;h=v=g;}}return ol(p,il(a,v)),p}]}),ll||!al,rl);var ul=function(){function r(){this.title=t.t("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button";}return r.prototype.getValue=function(t){return ""},r.prototype.isActive=function(t){return !1},r.prototype.isDisabled=function(t){var r=Rr(e.Editor.nodes(t,{match:hn(t,"td")}),1),n=Rr(r[0],1)[0],o=n.rowSpan,i=void 0===o?1:o,a=n.colSpan;return !(i>1||(void 0===a?1:a)>1)},r.prototype.exec=function(t,e){this.isDisabled(t)||this.split(t);},r.prototype.split=function(t,r){void 0===r&&(r={});var n=Rr(e.Editor.nodes(t,{match:hn(t,"table","th","td"),at:r.at}),2),o=n[0],i=n[1];if(o&&i){var a=_a.get(t)||[],l=gn(t,{at:r.at});e.Editor.withoutNormalizing(t,(function(){for(var n=l.length-1;n>=0;n-=1)for(var o=l[n].length-1;o>=0;o-=1){var u=Rr(l[n][o],2),c=Rr(u[0],2)[1],s=u[1],f=s.ltr,d=s.rtl,v=s.btt,h=s.ttb;if(d>1)o-=d-2;else if(!(h>1||1===v&&1===f)){var p=!!r.all;if(a.length)t:for(var g=0;!r.all&&g<a.length;g+=1)for(var y=0;y<a[g].length;y+=1){var b=Rr(a[g][y],1),m=Rr(b[0],2)[1];if(e.Path.equals(m,c)){p=!0;break t}}else {m=Rr(i,2)[1];e.Path.equals(m,c)&&(p=!0);}if(p){t:for(var w=1;w<v;w+=1)for(g=o;g>=0;g-=1){if(1!==Rr(l[n+w][g],2)[1].ttb){for(var x=0;x<f;x+=1){var E=Rr(l[n+w][g+x],1),S=Rr(E[0],2)[1];e.Transforms.unsetNodes(t,["hidden","colSpan","rowSpan"],{at:S});}continue t}}for(x=1;x<f;x+=1){var T=Rr(l[n][o+x],1);S=Rr(T[0],2)[1];e.Transforms.unsetNodes(t,["hidden","colSpan","rowSpan"],{at:S});}e.Transforms.setNodes(t,{rowSpan:1,colSpan:1},{at:c});}}}}));}},r}(),cl=function(){function r(){this.title=t.t("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 r.prototype.getValue=function(e){var r=t.DomEditor.getSelectedNodeByType(e,"table");return null!=r&&Pi(r)},r.prototype.isActive=function(t){return !!this.getValue(t)},r.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||null==t.DomEditor.getSelectedNodeByType(r,"table"))},r.prototype.exec=function(r,n){if(!this.isDisabled(r)){var o=!n,i=t.DomEditor.getSelectedNodeByType(r,"table");if(null!=i)Di(i).forEach((function(n){return e.Transforms.setNodes(r,{isHeader:o},{at:t.DomEditor.findPath(r,n)})}));}},r}(),sl={key:"insertTable",factory:function(){return new Bi}},fl={key:"deleteTable",factory:function(){return new Ni}},dl={key:"insertTableRow",factory:function(){return new ji}},vl={key:"deleteTableRow",factory:function(){return new zi}},hl={key:"insertTableCol",factory:function(){return new ki}},pl={key:"deleteTableCol",factory:function(){return new Mi}},gl={key:"tableHeader",factory:function(){return new cl}},yl={key:"tableFullWidth",factory:function(){return new Oi}},bl={key:"mergeTableCell",factory:function(){return new $a}},ml={key:"splitTableCell",factory:function(){return new ul}},wl={key:"setTableProperty",factory:function(){return new pi}},xl={key:"setTableCellProperty",factory:function(){return new gi}},El=Nr.filter,Sl=hr("filter");$e({target:"Array",proto:!0,forced:!Sl},{filter:function(t){return El(this,t,arguments.length>1?arguments[1]:void 0)}});var Tl=Function.prototype,Ml=Tl.apply,zl=Tl.call,Nl="object"==typeof Reflect&&Reflect.apply||(b?zl.bind(Ml):function(){return zl.apply(Ml,arguments)}),Ol=Math.floor,Dl=O("".charAt),Pl=O("".replace),kl=O("".slice),jl=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Al=/\$([$&'`]|\d{1,2})/g,Hl=function(t,e,r,n,o,i){var a=r+t.length,l=n.length,u=Al;return void 0!==o&&(o=ht(o),u=jl),Pl(i,u,(function(i,u){var c;switch(Dl(u,0)){case"$":return "$";case"&":return t;case"`":return kl(e,0,r);case"'":return kl(e,a);case"<":c=o[kl(u,1,-1)];break;default:var s=+u;if(0===s)return i;if(s>l){var f=Ol(s/10);return 0===f?i:f<=l?void 0===n[f-1]?Dl(u,1):n[f-1]+Dl(u,1):i}c=n[s-1];}return void 0===c?"":c}))},Cl=Tt("replace"),Vl=Math.max,Rl=Math.min,Il=O([].concat),Ll=O([].push),Bl=O("".indexOf),Wl=O("".slice),_l="$0"==="a".replace(/./,"$0"),Fl=!!/./[Cl]&&""===/./[Cl]("a","$0");Xa("replace",(function(t,e,r){var n=Fl?"$":"$0";return [function(t,r){var n=R(this),o=C(t)?void 0:lt(t,Cl);return o?w(o,t,n,r):w(e,sn(n),t,r)},function(t,o){var i=It(this),a=sn(t);if("string"==typeof o&&-1===Bl(o,n)&&-1===Bl(o,"$<")){var l=r(e,i,a,o);if(l.done)return l.value}var u=B(o);u||(o=sn(o));var c,s=i.global;s&&(c=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=el(i,a))&&(Ll(d,f),s);){""===sn(f[0])&&(i.lastIndex=Za(a,Se(i.lastIndex),c));}for(var v,h="",p=0,g=0;g<d.length;g++){for(var y,b=sn((f=d[g])[0]),m=Vl(Rl(be(f.index),a.length),0),w=[],x=1;x<f.length;x++)Ll(w,void 0===(v=f[x])?v:String(v));var E=f.groups;if(u){var S=Il([b],w,m,a);void 0!==E&&Ll(S,E),y=sn(Nl(o,void 0,S));}else y=Hl(b,a,m,w,E,o);m>=p&&(h+=Wl(a,p,m)+y,p=m+b.length);}return h+Wl(a,p)}]}),!!g((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!_l||Fl);var ql={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(r,n,o){var i=l.default(r);0===(n=n.filter((function(r){return "paragraph"===t.DomEditor.getNodeType(r)||(!!e.Text.isText(r)||!!o.isInline(r))}))).length&&(n=[{text:i.text().replace(/\s+/gm," ")}]);var a=parseInt(i.attr("colSpan")||"1",10),u=parseInt(i.attr("rowSpan")||"1",10),c="none"===hi(i,"display"),s=i.attr("width")||"auto";return {type:"table-cell",isHeader:"th"===vi(i),colSpan:a,rowSpan:u,width:s,children:n,hidden:c}}};var $l={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,r,n){return {type:"table-row",children:r.filter((function(e){return "table-cell"===t.DomEditor.getNodeType(e)}))}}};var Gl,Ul={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,r,n){var o,i,a=l.default(e),u="auto";"100%"===hi(a,"width")&&(u="100%"),"100%"===a.attr("width")&&(u="100%");var c={type:"table",width:u,height:parseInt(hi(a,"height")||"0",10),children:r.filter((function(e){return "table-row"===t.DomEditor.getNodeType(e)}))},s=(null===(o=a.find("tr")[0])||void 0===o?void 0:o.children)||[],f=(null===(i=a.find("colgroup")[0])||void 0===i?void 0:i.children)||null;if(f)c.columnWidths=Array.from(f).map((function(t){return parseInt(t.getAttribute("width"),10)}));else if(s.length>0){var d=[];Array.from(s).forEach((function(t){for(var e=parseInt(l.default(t).attr("colspan")||"1",10),r=parseInt(hi(l.default(t),"width")||"180",10),n=0;n<e;n+=1)d.push(r);})),c.columnWidths=d;}return c}},Xl=null===(Gl=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===Gl?void 0:Gl.getPropertyValue("--w-e-textarea-border-color");var Kl=hr("slice"),Yl=Tt("species"),Jl=Array,Ql=Math.max;$e({target:"Array",proto:!0,forced:!Kl},{slice:function(t,e){var r,n,o,i=I(this),a=Te(i),l=xe(t,a),u=xe(void 0===e?a:e,a);if(Ge(i)&&(r=i.constructor,(cr(r)&&(r===Jl||Ge(r.prototype))||W(r)&&null===(r=r[Yl]))&&(r=void 0),r===Jl||void 0===r))return Ki(i,l,u);for(n=new(void 0===r?Jl:r)(Ql(u-l,0)),o=0;l<u;l++,o++)l in i&&Ke(n,o,i[l]);return n.length=o,n}});var Zl=/"/g,tu=O("".replace);function eu(r){var n=r.selection;if(null==n)return !1;var o=Rr(e.Editor.nodes(r,{match:function(e){return t.DomEditor.checkNodeType(e,"table-cell")}}),1)[0];if(o){var i=Rr(o,2)[1],a=e.Editor.start(r,i);if(e.Point.equals(n.anchor,a))return !0}return !1}$e({target:"String",proto:!0,forced:function(t){return g((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}("anchor")},{anchor:function(t){return e="a",r="name",n=t,o=sn(R(this)),i="<"+e,""!==r&&(i+=" "+r+'="'+tu(sn(n),Zl,"&quot;")+'"'),i+">"+o+"</"+e+">";var e,r,n,o,i;}}),ca("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),xa);var ru={selector:"table",preParseHtml:function(t){var e=l.default(t);if("table"!==vi(e))return t;var r=e.find("tbody");if(0===r.length)return t;var n=e.find("tr");return e.append(n),r.remove(),e[0]}};function nu(t){var e,r,n=[],o=t.reduce((function(t,e){return t+e}),0);try{for(var i=Vr(t),a=i.next();!a.done;a=i.next()){var l=a.value;n.push(l/o);}}catch(t){e={error:t};}finally{try{a&&!a.done&&(r=i.return)&&r.call(i);}finally{if(e)throw e.error}}return n}var ou=null;var iu=!1,au=!1,lu=0,uu=0,cu=null,su=l.default(window);su.on("mousedown",(function(t){var r=t.target;if(r.closest('[data-block-type="table-cell"]'))iu=!0;else if("DIV"===r.tagName&&r.closest(".column-resizer-item")){if(null===cu)return;var n=Rr(e.Editor.nodes(cu,{match:hn(cu,"table")}),1),o=Rr(n[0],1)[0],i=o.columnWidths,a=void 0===i?[]:i,l=o.resizingIndex,u=void 0===l?-1:l;au=!0;var c=t.clientX;lu=c,uu=a[u],document.body.style.cursor="col-resize",t.preventDefault();}su.on("mousemove",fu),su.on("mouseup",du);}));var fu=c.default((function(t){if(au&&null!==cu){t.preventDefault();var r=t.clientX,n=uu+(r-lu);(n=Math.floor(100*n)/100)<30&&(n=30);var o=Rr(e.Editor.nodes(cu,{match:hn(cu,"table")}),1),i=Rr(o[0],1)[0],a=i.columnWidths,l=void 0===a?[]:a,u=i.resizingIndex,c=void 0===u?-1:u,s=l.reduce((function(t,e){return t+e}),0)-l[c],f=document.querySelector(".table-container");if(!(f&&s+n>f.clientWidth)){var d=Ir([],Rr(l),!1).map((function(t){return Math.floor(t)}));d[c]=n,e.Transforms.setNodes(cu,{columnWidths:d},{mode:"highest"});}}}),100);function du(t){iu=!1,au=!1,cu=null,document.body.style.cursor="",su.off("mousemove",fu),su.off("mouseup",du);}function vu(r,n,o,i){if(!r.isDisabled()&&!iu&&!au){var a=n,l=a.width,u=void 0===l?"auto":l,c=a.columnWidths,s=void 0===c?[]:c,f=a.isHoverCellBorder,d=a.resizingIndex,v=o.clientX,h=o.target;if(t.isHTMLElememt(h))if(v>(y=h.getBoundingClientRect()).x+5&&v<y.x+y.width-5)return void(f&&e.Transforms.setNodes(r,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(t.isHTMLElememt(h)){var p=h.closest(".table");if(p)for(var g=o.clientX,y=p.getBoundingClientRect(),b=function(t){var e,r,n=[],o=0;try{for(var i=Vr(t),a=i.next();!a.done;a=i.next())o+=a.value,n.push(o);}catch(t){e={error:t};}finally{try{a&&!a.done&&(r=i.return)&&r.call(i);}finally{if(e)throw e.error}}return n}("100%"===u?nu(s).map((function(t){return t*i})):s),m=0;m<b.length;m+=1)if(g-y.x>=b[m]-5&&g-y.x<b[m]+5){if(d===m)return;return void e.Transforms.setNodes(r,{isHoverCellBorder:!0,resizingIndex:m},{mode:"highest"})}}!0===f&&e.Transforms.setNodes(r,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"});}}function hu(t,r){"mouseenter"===r.type?e.Transforms.setNodes(t,{isResizing:!0},{mode:"highest"}):e.Transforms.setNodes(t,{isResizing:!1},{mode:"highest"});}var pu={type:"table",renderElem:function(r,o,i){var a=function(r,n){if(r.isDisabled())return !1;var o=r.selection;if(null==o)return !0;if(e.Range.isCollapsed(o))return !0;var i=o.anchor,a=o.focus,l=t.DomEditor.findPath(r,n),u=e.Editor.start(r,l),c=e.Editor.end(r,l),s=e.Point.compare(i,c)<=0&&e.Point.compare(i,u)>=0,f=e.Point.compare(a,c)<=0&&e.Point.compare(a,u)>=0;return !!(s&&f&&e.Path.equals(i.path.slice(0,3),a.path.slice(0,3)))}(i,r),l=r,c=l.width,s=void 0===c?"auto":c,f=l.height,d=l.columnWidths,v=void 0===d?[]:d,h=l.scrollWidth,p=void 0===h?0:h,g=l.isHoverCellBorder,y=l.resizingIndex,b=l.isResizing,m=t.DomEditor.isNodeSelected(i,r),w=Rr(qa.selection(i),1)[0],x=nu(v),E=n.jsx("div",{className:"table-container","data-selected":m,on:{mousedown:function(n){if("DIV"===n.target.tagName&&n.preventDefault(),!i.isDisabled()){n.target.closest('[data-block-type="table-cell"]')&&qa.unselect(i);var o=t.DomEditor.findPath(i,r),a=e.Editor.start(i,o),l=i.selection;if(null!=l)l.anchor.path[0]!==o[0]&&i.select(a);else i.select(a);}}}},n.jsx("table",{width:s,contentEditable:a,className:"table ".concat(w?"table-selection-none":""),style:{width:"100%"===s?s:"".concat(v.reduce((function(t,e){return t+e}),0),"px")},on:{mousemove:u.default((function(t){return vu(i,r,t,p)}),25)}},n.jsx("colgroup",{contentEditable:!1},v.map((function(t){return n.jsx("col",{width:t})}))),n.jsx("tbody",null,o)),n.jsx("div",{className:"column-resizer",contenteditable:"false"},v.map((function(t,e){var r=t;return "100%"===s&&(r=x[e]*p),n.jsx("div",{className:"column-resizer-item",style:{minWidth:"".concat(r,"px")}},n.jsx("div",{className:"resizer-line-hotzone ".concat(g&&e===y?"visible ":"").concat(b&&e===y?"highlight":""),style:{height:"".concat(f,"px")},on:{mouseenter:function(t){return hu(i,t)},mouseleave:function(t){return hu(i,t)},mousedown:function(t){return function(t){au||(cu=t);}(i)}}},n.jsx("div",{className:"resizer-line"})))})))),S=n.h("div",{hook:{insert:function(r){var n=r.elm;return function(r,n){if(t.isHTMLElememt(n)){var o=n.querySelector("table");o&&(ou=new ResizeObserver((function(t){var n=Rr(t,1)[0].contentRect;e.Transforms.setNodes(r,{scrollWidth:n.width,height:n.height},{mode:"highest"});})),ou.observe(o));}}(i,n)},destroy:function(){ou&&(null==ou||ou.disconnect(),ou=null);}}},E);return S}},gu={type:"table-row",renderElem:function(t,e,r){return n.jsx("tr",null,e)}},yu={type:"table-cell",renderElem:function(e,r,o){var i=function(e,r){var n=t.DomEditor.getParentNode(e,r);if(null==n)return !1;var o=t.DomEditor.getParentNode(e,n);return null!=o&&Di(o).some((function(t){return t===r}))}(o,e),a=e,l=a.colSpan,u=void 0===l?1:l,c=a.rowSpan,s=void 0===c?1:c,f=a.isHeader,d=void 0!==f&&f,v=a.hidden,h=void 0!==v&&v,p=qa.isSelected(o,e);if(!i)return n.jsx("td",{colSpan:u,rowSpan:s,"data-block-type":"table-cell",className:p?"w-e-selected":"",style:{display:h?"none":""}},r);var g=d?"th":"td";return n.jsx(g,{colSpan:u,rowSpan:s,"data-block-type":"table-cell",className:p?"w-e-selected":"",style:{display:h?"none":""}},r)}},bu=Object.assign,mu=Object.defineProperty,wu=O([].concat),xu=!bu||g((function(){if(y&&1!==bu({b:1},bu(mu({},"a",{enumerable:!0,get:function(){mu(this,"b",{value:3,enumerable:!1});}}),{b:2})).b)return !0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t;})),7!==bu({},t)[r]||Wr(bu({},e)).join("")!==n}))?function(t,e){for(var r=ht(t),n=arguments.length,o=1,i=Ae.f,a=S.f;n>o;)for(var l,u=H(arguments[o++]),c=i?wu(Wr(u),i(u)):Wr(u),s=c.length,f=0;s>f;)l=c[f++],y&&!w(a,u,l)||(r[l]=u[l]);return r}:bu;function Eu(t,e){null==t.data&&(t.data={});var r=t.data;null==r.style&&(r.style={}),Object.assign(r.style,e);}$e({target:"Object",stat:!0,arity:2,forced:Object.assign!==xu},{assign:xu});var Su={renderStyle:function(t,r){var n,o;if(!e.Element.isElement(t))return r;var i=t,a=i.backgroundColor,l=i.borderWidth,u=i.borderStyle,c=i.borderColor,s=i.textAlign,f={};a&&(f.backgroundColor=a),l&&(f.borderWidth="".concat(l,"px")),u&&(f.borderStyle=u),c&&(f.borderColor=c),s&&(f.textAlign=s);var d=r;return "table"===t.type?Eu(null===(o=(null===(n=d.children)||void 0===n?void 0:n[0]).children)||void 0===o?void 0:o[0],f):Eu(d,f),d},styleToHtml:function(t,e){if("table"!==t.type&&"table-cell"!==t.type)return e;var r=t.backgroundColor,n=t.borderWidth,o=t.borderStyle,i=t.borderColor,a=t.textAlign;if(!(r||n||o||i||a))return e;var u=l.default(e);return r&&u.css("background-color",r),n&&u.css("border-width","".concat(n,"px")),o&&u.css("border-style",o),i&&u.css("border-color",i),a&&u.css("text-align",a),function(t){return 0===t.length?"":t[0].outerHTML}(u)},parseStyleHtml:function(t,e,r){if("TABLE"!==t.tagName&&"TD"!==t.tagName)return e;var n=l.default(t),o=e,i=hi(n,"background-color");i||(i=hi(n,"background")),i&&(o.backgroundColor=i);var a=hi(n,"border");a||"TD"!==t.tagName||(a="1px solid ".concat(Xl));var u=Rr((null==a?void 0:a.split(" "))||[],3),c=u[0],s=u[1],f=u[2];(c=hi(n,"border-width")||c)&&(o.borderWidth=c.replace(/[^\d]/g,"")),(s=hi(n,"border-style")||s)&&(o.borderStyle=s),(f=hi(n,"border-color")||f)&&(o.borderColor=f);var d=hi(n,"text-align");return (d=hi(n,"text-align")||d)&&(o.textAlign=d),e},renderElems:[pu,gu,yu],elemsToHtml:[Pr,kr,jr],preParseHtml:[ru],parseElemsHtml:[ql,$l,Ul],menus:[sl,fl,dl,vl,hl,pl,gl,yl,bl,ml,wl,xl],editorPlugin:function(r){var n=r.insertBreak,o=r.deleteBackward,i=r.deleteForward,a=r.normalizeNode,l=r.insertData,u=r.handleTab,c=r.selectAll,s=r;return s.insertBreak=function(){null==t.DomEditor.getSelectedNodeByType(s,"table")?n():s.insertText("\n");},s.deleteBackward=function(r){if(!eu(s)){var n=s.selection;if(n){var i=e.Editor.before(s,n);if(i){var a=function(r,n){return !!Ir([],Rr(e.Editor.nodes(r,{at:n,match:function(e){return "table"===t.DomEditor.getNodeType(e)}})),!1).find((function(){return !0}))}(s,i);if(a&&t.DomEditor.getSelectedNodeByType(s,"paragraph"))return}}o(r);}},s.handleTab=function(){var n;if(t.DomEditor.getSelectedNodeByType(s,"table")){var o=e.Editor.above(r);t.DomEditor.checkNodeType(o[0],"table-cell")&&e.Transforms.select(r,o[1]);var i=e.Editor.next(r);if(i)i[0]&&i[0].text&&(i=null!==(n=e.Editor.above(r,{at:i[1]}))&&void 0!==n?n:i),e.Transforms.select(r,i[1]);else {var a=s.children||[],l=a.length;if(t.DomEditor.checkNodeType(a[l-1],"table")){var c=t.DomEditor.genEmptyParagraph();e.Transforms.insertNodes(s,c,{at:[l]}),s.handleTab();}}}else u();},s.deleteForward=function(t){eu(s)||i(t);},s.normalizeNode=function(r){var n=Rr(r,2),o=n[0],i=n[1];if("table"!==t.DomEditor.getNodeType(o))return a([o,i]);if(t.DomEditor.isLastNode(s,o)){var l=t.DomEditor.genEmptyParagraph();e.Transforms.insertNodes(s,l,{at:[i[0]+1]});}},s.insertData=function(r){if(null!=t.DomEditor.getSelectedNodeByType(s,"table")){var n=r.getData("text/plain");"\n"===n||/<img[^>]+>/.test(r.getData("text/html"))?l(r):e.Editor.insertText(s,n);}else l(r);},s.selectAll=function(){var r=s.selection;if(null!=r){var n=t.DomEditor.getSelectedNodeByType(s,"table-cell");if(null!=n){var o=r.anchor,i=r.focus;if(e.Path.equals(o.path.slice(0,3),i.path.slice(0,3)))if(0!==e.Node.string(n).length){var a=t.DomEditor.findPath(s,n),l={anchor:e.Editor.start(s,a),focus:e.Editor.end(s,a)};s.select(l);}else c();else c();}else c();}else c();},function(t){var r=t.apply;t.apply=function(n){if(!e.Operation.isSelectionOperation(n)||!n.newProperties)return r(n);var o=Hr(Hr({},t.selection),n.newProperties);if(!e.Range.isRange(o))return qa.unselect(t),r(n);var i=Rr(e.Editor.nodes(t,{match:hn(t,"th","td"),at:e.Range.start(o)}),1)[0],a=Rr(e.Editor.nodes(t,{match:hn(t,"th","td"),at:e.Range.end(o)}),1)[0];if(!i||!a)return qa.unselect(t),r(n);var l=Rr(i,2)[1],u=Rr(a,2)[1];if(e.Path.equals(l,u)||!pn(t,[l,u],"table"))return qa.unselect(t),r(n);for(var c=gn(t,{at:l}),s=yn.valueOf(0,0),f=yn.valueOf(0,0),d=0;d<c.length;d+=1)for(var v=0;v<c[d].length;v+=1){var h=Rr(c[d][v],1),p=Rr(h[0],2)[1];if(e.Path.equals(l,p)&&(s.x=d,s.y=v),e.Path.equals(u,p)){f.x=d,f.y=v;break}}for(var g=yn.valueOf(Math.min(s.x,f.x),Math.min(s.y,f.y)),y=yn.valueOf(Math.max(s.x,f.x),Math.max(s.y,f.y));;){var b=yn.valueOf(g.x,g.y),m=yn.valueOf(y.x,y.y);for(d=b.x;d<=m.x;d+=1)for(v=b.y;v<=m.y;v+=1){var w=Rr(c[d][v],2)[1],x=w.rtl,E=w.ltr,S=w.btt,T=w.ttb;b.x=Math.min(b.x,d-(T-1)),b.y=Math.min(b.y,v-(x-1)),m.x=Math.max(m.x,d+(S-1)),m.y=Math.max(m.y,v+(E-1));}if(yn.equals(g,b)&&yn.equals(y,m))break;g=b,y=m;}var M=[],z=new WeakSet;for(d=g.x;d<=y.x;d+=1){var N=[];for(v=g.y;v<=y.y;v+=1){var O=Rr(c[d][v],1),D=Rr(O[0],1)[0];z.add(D),N.push(c[d][v]);}M.push(N);}_a.set(t,M),Fa.set(t,z),r(n);};}(s),s}};return Su}));
21693
21693
 
21694
21694
  });
21695
21695
 
21696
21696
  var dist$2 = createCommonjsModule$1(function (module, exports) {
21697
- !function(t,e){module.exports=e(dist$6,dist$7,require$$2,require$$1,require$$4);}(commonjsGlobal,(function(t,e,n,r,o){function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var u=i(r);t.i18nAddResources("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",edit:"Edit video",width:"Width",height:"Height"}}),t.i18nAddResources("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var a=function(){return a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a.apply(this,arguments)};function c(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{c(r.next(t));}catch(t){i(t);}}function a(t){try{c(r.throw(t));}catch(t){i(t);}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e);}))).then(u,a);}c((r=r.apply(t,e||[])).next());}))}function s(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u);}catch(t){a=[6,t],r=0;}finally{n=o=0;}if(5&a[0])throw a[1];return {value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value);}catch(t){o={error:t};}finally{try{r&&!r.done&&(n=i.return)&&n.call(i);}finally{if(o)throw o.error}}return u}function d(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=f(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n});}),e);})(r,o,(e=t[n](e)).done,e.value);}))};}}"function"==typeof SuppressedError&&SuppressedError;var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function v(t){var e={exports:{}};return t(e,e.exports),e.exports}var h,y,g=function(t){return t&&t.Math===Math&&t},m=g("object"==typeof globalThis&&globalThis)||g("object"==typeof window&&window)||g("object"==typeof self&&self)||g("object"==typeof p&&p)||g("object"==typeof p&&p)||function(){return this}()||Function("return this")(),b=function(t){try{return !!t()}catch(t){return !0}},w=!b((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),S=!b((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),E=Function.prototype.call,O=S?E.bind(E):function(){return E.apply(E,arguments)},x={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,j={f:I&&!x.call({1:2},1)?function(t){var e=I(this,t);return !!e&&e.enumerable}:x},T=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},P=Function.prototype,M=P.call,A=S&&P.bind.bind(M,M),N=S?A:function(t){return function(){return M.apply(t,arguments)}},R=N({}.toString),C=N("".slice),k=function(t){return C(R(t),8,-1)},D=Object,V=N("".split),L=b((function(){return !D("z").propertyIsEnumerable(0)}))?function(t){return "String"===k(t)?V(t,""):D(t)}:D,z=function(t){return null==t},F=TypeError,_=function(t){if(z(t))throw new F("Can't call method on "+t);return t},$=function(t){return L(_(t))},B="object"==typeof document&&document.all,U=void 0===B&&void 0!==B?function(t){return "function"==typeof t||t===B}:function(t){return "function"==typeof t},H=function(t){return "object"==typeof t?null!==t:U(t)},W=function(t,e){return arguments.length<2?(n=m[t],U(n)?n:void 0):m[t]&&m[t][e];var n;},G=N({}.isPrototypeOf),q=m.navigator,K=q&&q.userAgent,X=K?String(K):"",Y=m.process,J=m.Deno,Q=Y&&Y.versions||J&&J.version,Z=Q&&Q.v8;Z&&(y=(h=Z.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!y&&X&&(!(h=X.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=X.match(/Chrome\/(\d+)/))&&(y=+h[1]);var tt=y,et=m.String,nt=!!Object.getOwnPropertySymbols&&!b((function(){var t=Symbol("symbol detection");return !et(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&tt&&tt<41})),rt=nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ot=Object,it=rt?function(t){return "symbol"==typeof t}:function(t){var e=W("Symbol");return U(e)&&G(e.prototype,ot(t))},ut=String,at=function(t){try{return ut(t)}catch(t){return "Object"}},ct=TypeError,st=function(t){if(U(t))return t;throw new ct(at(t)+" is not a function")},ft=function(t,e){var n=t[e];return z(n)?void 0:st(n)},lt=TypeError,dt=Object.defineProperty,pt=function(t,e){try{dt(m,t,{value:e,configurable:!0,writable:!0});}catch(n){m[t]=e;}return e},vt=v((function(t){var e="__core-js_shared__",n=t.exports=m[e]||pt(e,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),ht=function(t,e){return vt[t]||(vt[t]=e||{})},yt=Object,gt=function(t){return yt(_(t))},mt=N({}.hasOwnProperty),bt=Object.hasOwn||function(t,e){return mt(gt(t),e)},wt=0,St=Math.random(),Et=N(1..toString),Ot=function(t){return "Symbol("+(void 0===t?"":t)+")_"+Et(++wt+St,36)},xt=m.Symbol,It=ht("wks"),jt=rt?xt.for||xt:xt&&xt.withoutSetter||Ot,Tt=function(t){return bt(It,t)||(It[t]=nt&&bt(xt,t)?xt[t]:jt("Symbol."+t)),It[t]},Pt=TypeError,Mt=Tt("toPrimitive"),At=function(t,e){if(!H(t)||it(t))return t;var n,r=ft(t,Mt);if(r){if(void 0===e&&(e="default"),n=O(r,t,e),!H(n)||it(n))return n;throw new Pt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&U(n=t.toString)&&!H(r=O(n,t)))return r;if(U(n=t.valueOf)&&!H(r=O(n,t)))return r;if("string"!==e&&U(n=t.toString)&&!H(r=O(n,t)))return r;throw new lt("Can't convert object to primitive value")}(t,e)},Nt=function(t){var e=At(t,"string");return it(e)?e:e+""},Rt=m.document,Ct=H(Rt)&&H(Rt.createElement),kt=function(t){return Ct?Rt.createElement(t):{}},Dt=!w&&!b((function(){return 7!==Object.defineProperty(kt("div"),"a",{get:function(){return 7}}).a})),Vt=Object.getOwnPropertyDescriptor,Lt={f:w?Vt:function(t,e){if(t=$(t),e=Nt(e),Dt)try{return Vt(t,e)}catch(t){}if(bt(t,e))return T(!O(j.f,t,e),t[e])}},zt=w&&b((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ft=String,_t=TypeError,$t=function(t){if(H(t))return t;throw new _t(Ft(t)+" is not an object")},Bt=TypeError,Ut=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Wt="enumerable",Gt="configurable",qt="writable",Kt={f:w?zt?function(t,e,n){if($t(t),e=Nt(e),$t(n),"function"==typeof t&&"prototype"===e&&"value"in n&&qt in n&&!n[qt]){var r=Ht(t,e);r&&r[qt]&&(t[e]=n.value,n={configurable:Gt in n?n[Gt]:r[Gt],enumerable:Wt in n?n[Wt]:r[Wt],writable:!1});}return Ut(t,e,n)}:Ut:function(t,e,n){if($t(t),e=Nt(e),$t(n),Dt)try{return Ut(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Bt("Accessors not supported");return "value"in n&&(t[e]=n.value),t}},Xt=w?function(t,e,n){return Kt.f(t,e,T(1,n))}:function(t,e,n){return t[e]=n,t},Yt=Function.prototype,Jt=w&&Object.getOwnPropertyDescriptor,Qt=bt(Yt,"name"),Zt={EXISTS:Qt,PROPER:Qt&&"something"===function(){}.name,CONFIGURABLE:Qt&&(!w||w&&Jt(Yt,"name").configurable)},te=N(Function.toString);U(vt.inspectSource)||(vt.inspectSource=function(t){return te(t)});var ee,ne,re,oe=vt.inspectSource,ie=m.WeakMap,ue=U(ie)&&/native code/.test(String(ie)),ae=ht("keys"),ce=function(t){return ae[t]||(ae[t]=Ot(t))},se={},fe="Object already initialized",le=m.TypeError,de=m.WeakMap;if(ue||vt.state){var pe=vt.state||(vt.state=new de);pe.get=pe.get,pe.has=pe.has,pe.set=pe.set,ee=function(t,e){if(pe.has(t))throw new le(fe);return e.facade=t,pe.set(t,e),e},ne=function(t){return pe.get(t)||{}},re=function(t){return pe.has(t)};}else {var ve=ce("state");se[ve]=!0,ee=function(t,e){if(bt(t,ve))throw new le(fe);return e.facade=t,Xt(t,ve,e),e},ne=function(t){return bt(t,ve)?t[ve]:{}},re=function(t){return bt(t,ve)};}var he={set:ee,get:ne,has:re,enforce:function(t){return re(t)?ne(t):ee(t,{})},getterFor:function(t){return function(e){var n;if(!H(e)||(n=ne(e)).type!==t)throw new le("Incompatible receiver, "+t+" required");return n}}},ye=v((function(t){var e=Zt.CONFIGURABLE,n=he.enforce,r=he.get,o=String,i=Object.defineProperty,u=N("".slice),a=N("".replace),c=N([].join),s=w&&!b((function(){return 8!==i((function(){}),"length",{value:8}).length})),f=String(String).split("String"),l=t.exports=function(t,r,l){"Symbol("===u(o(r),0,7)&&(r="["+a(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),l&&l.getter&&(r="get "+r),l&&l.setter&&(r="set "+r),(!bt(t,"name")||e&&t.name!==r)&&(w?i(t,"name",{value:r,configurable:!0}):t.name=r),s&&l&&bt(l,"arity")&&t.length!==l.arity&&i(t,"length",{value:l.arity});try{l&&bt(l,"constructor")&&l.constructor?w&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var d=n(t);return bt(d,"source")||(d.source=c(f,"string"==typeof r?r:"")),t};Function.prototype.toString=l((function(){return U(this)&&r(this).source||oe(this)}),"toString");})),ge=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(U(n)&&ye(n,i,r),r.global)o?t[e]=n:pt(e,n);else {try{r.unsafe?t[e]&&(o=!0):delete t[e];}catch(t){}o?t[e]=n:Kt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable});}return t},me=Math.ceil,be=Math.floor,we=Math.trunc||function(t){var e=+t;return (e>0?be:me)(e)},Se=function(t){var e=+t;return e!=e||0===e?0:we(e)},Ee=Math.max,Oe=Math.min,xe=function(t,e){var n=Se(t);return n<0?Ee(n+e,0):Oe(n,e)},Ie=Math.min,je=function(t){var e=Se(t);return e>0?Ie(e,9007199254740991):0},Te=function(t){return je(t.length)},Pe=function(t){return function(e,n,r){var o=$(e),i=Te(o);if(0===i)return !t&&-1;var u,a=xe(r,i);if(t&&n!=n){for(;i>a;)if((u=o[a++])!=u)return !0}else for(;i>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return !t&&-1}},Me={includes:Pe(!0),indexOf:Pe(!1)},Ae=Me.indexOf,Ne=N([].push),Re=function(t,e){var n,r=$(t),o=0,i=[];for(n in r)!bt(se,n)&&bt(r,n)&&Ne(i,n);for(;e.length>o;)bt(r,n=e[o++])&&(~Ae(i,n)||Ne(i,n));return i},Ce=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ke=Ce.concat("length","prototype"),De={f:Object.getOwnPropertyNames||function(t){return Re(t,ke)}},Ve={f:Object.getOwnPropertySymbols},Le=N([].concat),ze=W("Reflect","ownKeys")||function(t){var e=De.f($t(t)),n=Ve.f;return n?Le(e,n(t)):e},Fe=function(t,e,n){for(var r=ze(e),o=Kt.f,i=Lt.f,u=0;u<r.length;u++){var a=r[u];bt(t,a)||n&&bt(n,a)||o(t,a,i(e,a));}},_e=/#|\.prototype\./,$e=function(t,e){var n=Ue[Be(t)];return n===We||n!==He&&(U(e)?b(e):!!e)},Be=$e.normalize=function(t){return String(t).replace(_e,".").toLowerCase()},Ue=$e.data={},He=$e.NATIVE="N",We=$e.POLYFILL="P",Ge=$e,qe=Lt.f,Ke=function(t,e){var n,r,o,i,u,a=t.target,c=t.global,s=t.stat;if(n=c?m:s?m[a]||pt(a,{}):m[a]&&m[a].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(u=qe(n,r))&&u.value:n[r],!Ge(c?r:a+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Fe(i,o);}(t.sham||o&&o.sham)&&Xt(i,"sham",!0),ge(n,r,i,t);}},Xe={};Xe[Tt("toStringTag")]="z";var Ye,Je="[object z]"===String(Xe),Qe=Tt("toStringTag"),Ze=Object,tn="Arguments"===k(function(){return arguments}()),en=Je?k:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Ze(t),Qe))?n:tn?k(e):"Object"===(r=k(e))&&U(e.callee)?"Arguments":r},nn=String,rn=function(t){if("Symbol"===en(t))throw new TypeError("Cannot convert a Symbol value to a string");return nn(t)},on="\t\n\v\f\r                 \u2028\u2029\ufeff",un=N("".replace),an=RegExp("^["+on+"]+"),cn=RegExp("(^|[^"+on+"])["+on+"]+$"),sn=function(t){return function(e){var n=rn(_(e));return 1&t&&(n=un(n,an,"")),2&t&&(n=un(n,cn,"$1")),n}},fn={start:sn(1),end:sn(2),trim:sn(3)},ln=Zt.PROPER,dn=fn.trim;function pn(t){return t.length?t[0].tagName.toLowerCase():""}function vn(t,e,n,r){void 0===e&&(e="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=u.default(t),i=r.width,a=void 0===i?"":i,c=r.height,s=void 0===c?"":c,f="";return a&&(f+="width: "+a+";"),s&&(f+="height: "+s+";"),o.attr("width",e),o.attr("height",n),o.attr("style",f),o[0].outerHTML}Ke({target:"String",proto:!0,forced:(Ye="trim",b((function(){return !!on[Ye]()||"​…᠎"!=="​…᠎"[Ye]()||ln&&on[Ye].name!==Ye})))},{trim:function(){return dn(this)}}),Ke({global:!0,forced:m.globalThis!==m},{globalThis:m}),r.append&&(u.default.fn.append=r.append),r.on&&(u.default.fn.on=r.on),r.focus&&(u.default.fn.focus=r.focus),r.attr&&(u.default.fn.attr=r.attr),r.val&&(u.default.fn.val=r.val),r.html&&(u.default.fn.html=r.html),r.parent&&(u.default.fn.parent=r.parent),r.hasClass&&(u.default.fn.hasClass=r.hasClass),r.empty&&(u.default.fn.empty=r.empty);var hn={type:"video",renderElem:function(e,r,o){var i,u=e,a=u.src,c=void 0===a?"":a,s=u.poster,f=void 0===s?"":s,l=u.key,d=void 0===l?"":l,p=u.width,v=void 0===p?"auto":p,h=u.height,y=void 0===h?"auto":h,g=u.style,m=void 0===g?{}:g,b=u.textAlign,w=void 0===b?"center":b,S=t.DomEditor.isNodeSelected(o,e);if(0===c.trim().indexOf("<iframe ")){var E=vn(c,v,y,m);i=n.jsx("div",{className:"w-e-textarea-video-container","data-selected":S?"true":"",style:{textAlign:w},innerHTML:E});}else {var O=n.jsx("video",{key:d,poster:f,controls:!0,style:m},n.jsx("source",{src:c,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==v&&(O.data.width=v),"auto"!==y&&(O.data.height=y),i=n.jsx("div",{className:"w-e-textarea-video-container","data-selected":S?"true":"",style:{textAlign:w}},O);}return n.h("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},i)}};var yn,gn={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,o=void 0===r?"":r,i=n.poster,u=void 0===i?"":i,a=n.width,c=void 0===a?"auto":a,s=n.height,f=void 0===s?"auto":s,l=n.style,d=void 0===l?{}:l,p=n.textAlign,v='<div data-w-e-type="video" data-w-e-is-void style="text-align: '+(void 0===p?"center":p)+';">\n';if(0===o.trim().indexOf("<iframe ")){v+=vn(o,c,f,d);}else {var h=d.width,y=void 0===h?"":h,g=d.height,m=void 0===g?"":g,b="";y&&(b+="width: "+y+";"),m&&(b+="height: "+m+";"),v+='<video poster="'+u+'" controls="true" width="'+c+'" height="'+f+'" style="'+b+'"><source src="'+o+'" type="video/mp4"/></video>';}return v+="\n</div>"}},mn=Object.keys||function(t){return Re(t,Ce)},bn=w&&!zt?Object.defineProperties:function(t,e){$t(t);for(var n,r=$(e),o=mn(e),i=o.length,u=0;i>u;)Kt.f(t,n=o[u++],r[n]);return t},wn={f:bn},Sn=W("document","documentElement"),En="prototype",On="script",xn=ce("IE_PROTO"),In=function(){},jn=function(t){return "<"+On+">"+t+"</"+On+">"},Tn=function(t){t.write(jn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Pn=function(){try{yn=new ActiveXObject("htmlfile");}catch(t){}var t,e,n;Pn="undefined"!=typeof document?document.domain&&yn?Tn(yn):(e=kt("iframe"),n="java"+On+":",e.style.display="none",Sn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(jn("document.F=Object")),t.close(),t.F):Tn(yn);for(var r=Ce.length;r--;)delete Pn[En][Ce[r]];return Pn()};se[xn]=!0;var Mn=Object.create||function(t,e){var n;return null!==t?(In[En]=$t(t),n=new In,In[En]=null,n[xn]=t):n=Pn(),void 0===e?n:wn.f(n,e)},An=Kt.f,Nn=Tt("unscopables"),Rn=Array.prototype;void 0===Rn[Nn]&&An(Rn,Nn,{configurable:!0,value:Mn(null)});var Cn=function(t){Rn[Nn][t]=!0;},kn=Me.includes,Dn=b((function(){return !Array(1).includes()}));Ke({target:"Array",proto:!0,forced:Dn},{includes:function(t){return kn(this,t,arguments.length>1?arguments[1]:void 0)}}),Cn("includes");var Vn={selector:"iframe,video,p",preParseHtml:function(t){var e=u.default(t),n=e;if("p"===pn(e)){var r=e.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=u.default(o));}}var a=pn(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var c=u.default('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return c.append(n),c[0]}},Ln=function(t){if("Function"===k(t))return N(t)},zn=Ln(Ln.bind),Fn=function(t,e){return st(t),void 0===e?t:S?zn(t,e):function(){return t.apply(e,arguments)}},_n=Array.isArray||function(t){return "Array"===k(t)},$n=function(){},Bn=W("Reflect","construct"),Un=/^\s*(?:class|function)\b/,Hn=N(Un.exec),Wn=!Un.test($n),Gn=function(t){if(!U(t))return !1;try{return Bn($n,[],t),!0}catch(t){return !1}},qn=function(t){if(!U(t))return !1;switch(en(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return Wn||!!Hn(Un,oe(t))}catch(t){return !0}};qn.sham=!0;var Kn=!Bn||b((function(){var t;return Gn(Gn.call)||!Gn(Object)||!Gn((function(){t=!0;}))||t}))?qn:Gn,Xn=Tt("species"),Yn=Array,Jn=function(t,e){return new(function(t){var e;return _n(t)&&(e=t.constructor,(Kn(e)&&(e===Yn||_n(e.prototype))||H(e)&&null===(e=e[Xn]))&&(e=void 0)),void 0===e?Yn:e}(t))(0===e?0:e)},Qn=N([].push),Zn=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,s,f,l){for(var d,p,v=gt(c),h=L(v),y=Te(h),g=Fn(s,f),m=0,b=l||Jn,w=e?b(c,y):n||u?b(c,0):void 0;y>m;m++)if((a||m in h)&&(p=g(d=h[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return !0;case 5:return d;case 6:return m;case 2:Qn(w,d);}else switch(t){case 4:return !1;case 7:Qn(w,d);}return i?-1:r||o?o:w}},tr={forEach:Zn(0),map:Zn(1),filter:Zn(2),some:Zn(3),every:Zn(4),find:Zn(5),findIndex:Zn(6),filterReject:Zn(7)},er=tr.find,nr="find",rr=!0;nr in[]&&Array(1)[nr]((function(){rr=!1;})),Ke({target:"Array",proto:!0,forced:rr},{find:function(t){return er(this,t,arguments.length>1?arguments[1]:void 0)}}),Cn(nr);var or=Je?{}.toString:function(){return "[object "+en(this)+"]"};Je||ge(Object.prototype,"toString",or,{unsafe:!0});var ir,ur,ar=function(){var t=$t(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},cr=m.RegExp,sr=b((function(){var t=cr("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),fr=sr||b((function(){return !cr("a","y").sticky})),lr={BROKEN_CARET:sr||b((function(){var t=cr("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:fr,UNSUPPORTED_Y:sr},dr=m.RegExp,pr=b((function(){var t=dr(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)})),vr=m.RegExp,hr=b((function(){var t=vr("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),yr=he.get,gr=ht("native-string-replace",String.prototype.replace),mr=RegExp.prototype.exec,br=mr,wr=N("".charAt),Sr=N("".indexOf),Er=N("".replace),Or=N("".slice),xr=(ur=/b*/g,O(mr,ir=/a/,"a"),O(mr,ur,"a"),0!==ir.lastIndex||0!==ur.lastIndex),Ir=lr.BROKEN_CARET,jr=void 0!==/()??/.exec("")[1];(xr||jr||Ir||pr||hr)&&(br=function(t){var e,n,r,o,i,u,a,c=this,s=yr(c),f=rn(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=O(br,l,f),c.lastIndex=l.lastIndex,e;var d=s.groups,p=Ir&&c.sticky,v=O(ar,c),h=c.source,y=0,g=f;if(p&&(v=Er(v,"y",""),-1===Sr(v,"g")&&(v+="g"),g=Or(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==wr(f,c.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,y++),n=new RegExp("^(?:"+h+")",v)),jr&&(n=new RegExp("^"+h+"$(?!\\s)",v)),xr&&(r=c.lastIndex),o=O(mr,p?n:c,g),p?o?(o.input=Or(o.input,y),o[0]=Or(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:xr&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),jr&&o&&o.length>1&&O(gr,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=u=Mn(null),i=0;i<d.length;i++)u[(a=d[i])[0]]=o[a[1]];return o});var Tr=br;Ke({target:"RegExp",proto:!0,forced:/./.exec!==Tr},{exec:Tr});var Pr=Function.prototype,Mr=Pr.apply,Ar=Pr.call,Nr="object"==typeof Reflect&&Reflect.apply||(S?Ar.bind(Mr):function(){return Ar.apply(Mr,arguments)}),Rr=Tt("species"),Cr=RegExp.prototype,kr=N("".charAt),Dr=N("".charCodeAt),Vr=N("".slice),Lr=function(t){return function(e,n){var r,o,i=rn(_(e)),u=Se(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=Dr(i,u))<55296||r>56319||u+1===a||(o=Dr(i,u+1))<56320||o>57343?t?kr(i,u):r:t?Vr(i,u,u+2):o-56320+(r-55296<<10)+65536}},zr={codeAt:Lr(!1),charAt:Lr(!0)},Fr=zr.charAt,_r=function(t,e,n){return e+(n?Fr(t,e).length:1)},$r=Math.floor,Br=N("".charAt),Ur=N("".replace),Hr=N("".slice),Wr=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Gr=/\$([$&'`]|\d{1,2})/g,qr=function(t,e,n,r,o,i){var u=n+t.length,a=r.length,c=Gr;return void 0!==o&&(o=gt(o),c=Wr),Ur(i,c,(function(i,c){var s;switch(Br(c,0)){case"$":return "$";case"&":return t;case"`":return Hr(e,0,n);case"'":return Hr(e,u);case"<":s=o[Hr(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>a){var l=$r(f/10);return 0===l?i:l<=a?void 0===r[l-1]?Br(c,1):r[l-1]+Br(c,1):i}s=r[f-1];}return void 0===s?"":s}))},Kr=TypeError,Xr=function(t,e){var n=t.exec;if(U(n)){var r=O(n,t,e);return null!==r&&$t(r),r}if("RegExp"===k(t))return O(Tr,t,e);throw new Kr("RegExp#exec called on incompatible receiver")},Yr=Tt("replace"),Jr=Math.max,Qr=Math.min,Zr=N([].concat),to=N([].push),eo=N("".indexOf),no=N("".slice),ro="$0"==="a".replace(/./,"$0"),oo=!!/./[Yr]&&""===/./[Yr]("a","$0");!function(t,e,n,r){var o=Tt(t),i=!b((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),u=i&&!b((function(){var e=!1,n=/a/;return "split"===t&&((n={}).constructor={},n.constructor[Rr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!u||n){var a=/./[o],c=e(o,""[t],(function(t,e,n,r,o){var u=e.exec;return u===Tr||u===Cr.exec?i&&!o?{done:!0,value:O(a,e,n,r)}:{done:!0,value:O(t,n,e,r)}:{done:!1}}));ge(String.prototype,t,c[0]),ge(Cr,o,c[1]);}r&&Xt(Cr[o],"sham",!0);}("replace",(function(t,e,n){var r=oo?"$":"$0";return [function(t,n){var r=_(this),o=z(t)?void 0:ft(t,Yr);return o?O(o,t,r,n):O(e,rn(r),t,n)},function(t,o){var i=$t(this),u=rn(t);if("string"==typeof o&&-1===eo(o,r)&&-1===eo(o,"$<")){var a=n(e,i,u,o);if(a.done)return a.value}var c=U(o);c||(o=rn(o));var s,f=i.global;f&&(s=i.unicode,i.lastIndex=0);for(var l,d=[];null!==(l=Xr(i,u))&&(to(d,l),f);){""===rn(l[0])&&(i.lastIndex=_r(u,je(i.lastIndex),s));}for(var p,v="",h=0,y=0;y<d.length;y++){for(var g,m=rn((l=d[y])[0]),b=Jr(Qr(Se(l.index),u.length),0),w=[],S=1;S<l.length;S++)to(w,void 0===(p=l[S])?p:String(p));var E=l.groups;if(c){var O=Zr([m],w,b,u);void 0!==E&&to(O,E),g=rn(Nr(o,void 0,O));}else g=qr(m,u,b,w,E,o);b>=h&&(v+=no(u,h,b)+g,h=b+m.length);}return v+no(u,h)}]}),!!b((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!ro||oo);var io={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},uo=kt("span").classList,ao=uo&&uo.constructor&&uo.constructor.prototype,co=ao===Object.prototype?void 0:ao,so=function(t,e){var n=[][t];return !!n&&b((function(){n.call(null,e||function(){return 1},1);}))},fo=tr.forEach,lo=so("forEach")?[].forEach:function(t){return fo(this,t,arguments.length>1?arguments[1]:void 0)},po=function(t){if(t&&t.forEach!==lo)try{Xt(t,"forEach",lo);}catch(e){t.forEach=lo;}};for(var vo in io)io[vo]&&po(m[vo]&&m[vo].prototype);function ho(t){return void 0===t&&(t="r"),t+"-"+o.nanoid()}function yo(t){var e={};return t.trim().split(";").forEach((function(t){if(t){var n=l(t.split(":"),2),r=n[0],o=n[1];r&&o&&(e[r.trim()]=o.trim());}})),e}function go(t,e,n,r,o){return void 0===e&&(e=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),{type:"video",src:t,poster:e,width:n,height:r,style:o,children:[{text:""}]}}po(co);var mo,bo,wo,So,Eo={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=u.default(t),o="",i="",a="auto",c="auto",s={},f=r.find("iframe");if(f.length>0)return a=f.attr("width")||"auto",c=f.attr("height")||"auto",s=yo(s=f.attr("style")||""),go(o=f[0].outerHTML,i,a,c,s);var l=r.find("video");return (o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",c=l.attr("height")||"auto",go(o,i=l.attr("poster")||"",a,c,s=yo(s=l.attr("style")||""))}},Oo=function(t){return X.slice(0,t.length)===t},xo=Oo("Bun/")?"BUN":Oo("Cloudflare-Workers")?"CLOUDFLARE":Oo("Deno/")?"DENO":Oo("Node.js/")?"NODE":m.Bun&&"string"==typeof Bun.version?"BUN":m.Deno&&"object"==typeof Deno.version?"DENO":"process"===k(m.process)?"NODE":m.window&&m.document?"BROWSER":"REST",Io="NODE"===xo,jo=String,To=TypeError,Po=function(t){if(function(t){return H(t)||null===t}(t))return t;throw new To("Can't set "+jo(t)+" as a prototype")},Mo=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return N(st(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array;}catch(t){}return function(n,r){return _(n),Po(r),H(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0),Ao=Kt.f,No=Tt("toStringTag"),Ro=function(t,e,n){t&&!n&&(t=t.prototype),t&&!bt(t,No)&&Ao(t,No,{configurable:!0,value:e});},Co=function(t,e,n){return n.get&&ye(n.get,e,{getter:!0}),n.set&&ye(n.set,e,{setter:!0}),Kt.f(t,e,n)},ko=Tt("species"),Do=TypeError,Vo=function(t,e){if(G(e,t))return t;throw new Do("Incorrect invocation")},Lo=TypeError,zo=Tt("species"),Fo=function(t,e){var n,r=$t(t).constructor;return void 0===r||z(n=$t(r)[zo])?e:function(t){if(Kn(t))return t;throw new Lo(at(t)+" is not a constructor")}(n)},_o=N([].slice),$o=TypeError,Bo=/(?:ipad|iphone|ipod).*applewebkit/i.test(X),Uo=m.setImmediate,Ho=m.clearImmediate,Wo=m.process,Go=m.Dispatch,qo=m.Function,Ko=m.MessageChannel,Xo=m.String,Yo=0,Jo={},Qo="onreadystatechange";b((function(){mo=m.location;}));var Zo=function(t){if(bt(Jo,t)){var e=Jo[t];delete Jo[t],e();}},ti=function(t){return function(){Zo(t);}},ei=function(t){Zo(t.data);},ni=function(t){m.postMessage(Xo(t),mo.protocol+"//"+mo.host);};Uo&&Ho||(Uo=function(t){!function(t,e){if(t<e)throw new $o("Not enough arguments")}(arguments.length,1);var e=U(t)?t:qo(t),n=_o(arguments,1);return Jo[++Yo]=function(){Nr(e,void 0,n);},bo(Yo),Yo},Ho=function(t){delete Jo[t];},Io?bo=function(t){Wo.nextTick(ti(t));}:Go&&Go.now?bo=function(t){Go.now(ti(t));}:Ko&&!Bo?(So=(wo=new Ko).port2,wo.port1.onmessage=ei,bo=Fn(So.postMessage,So)):m.addEventListener&&U(m.postMessage)&&!m.importScripts&&mo&&"file:"!==mo.protocol&&!b(ni)?(bo=ni,m.addEventListener("message",ei,!1)):bo=Qo in kt("script")?function(t){Sn.appendChild(kt("script"))[Qo]=function(){Sn.removeChild(this),Zo(t);};}:function(t){setTimeout(ti(t),0);});var ri={set:Uo,clear:Ho},oi=Object.getOwnPropertyDescriptor,ii=function(){this.head=null,this.tail=null;};ii.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e;},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var ui,ai,ci,si,fi,li=ii,di=/ipad|iphone|ipod/i.test(X)&&"undefined"!=typeof Pebble,pi=/web0s(?!.*chrome)/i.test(X),vi=ri.set,hi=m.MutationObserver||m.WebKitMutationObserver,yi=m.document,gi=m.process,mi=m.Promise,bi=function(t){if(!w)return m[t];var e=oi(m,t);return e&&e.value}("queueMicrotask");if(!bi){var wi=new li,Si=function(){var t,e;for(Io&&(t=gi.domain)&&t.exit();e=wi.get();)try{e();}catch(t){throw wi.head&&ui(),t}t&&t.enter();};Bo||Io||pi||!hi||!yi?!di&&mi&&mi.resolve?((si=mi.resolve(void 0)).constructor=mi,fi=Fn(si.then,si),ui=function(){fi(Si);}):Io?ui=function(){gi.nextTick(Si);}:(vi=Fn(vi,m),ui=function(){vi(Si);}):(ai=!0,ci=yi.createTextNode(""),new hi(Si).observe(ci,{characterData:!0}),ui=function(){ci.data=ai=!ai;}),bi=function(t){wi.head||ui(),wi.add(t);};}var Ei=bi,Oi=function(t){try{return {error:!1,value:t()}}catch(t){return {error:!0,value:t}}},xi=m.Promise;xi&&xi.prototype;var Ii,ji,Ti,Pi,Mi=Tt("species"),Ai=!1,Ni=U(m.PromiseRejectionEvent),Ri=Ge("Promise",(function(){var t=oe(xi),e=t!==String(xi);if(!e&&66===tt)return !0;if(!tt||tt<51||!/native code/.test(t)){var n=new xi((function(t){t(1);})),r=function(t){t((function(){}),(function(){}));};if((n.constructor={})[Mi]=r,!(Ai=n.then((function(){}))instanceof r))return !0}return !(e||"BROWSER"!==xo&&"DENO"!==xo||Ni)})),Ci={CONSTRUCTOR:Ri,REJECTION_EVENT:Ni,SUBCLASSING:Ai},ki=TypeError,Di=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new ki("Bad Promise constructor");e=t,n=r;})),this.resolve=st(e),this.reject=st(n);},Vi={f:function(t){return new Di(t)}},Li=ri.set,zi="Promise",Fi=Ci.CONSTRUCTOR,_i=Ci.REJECTION_EVENT,$i=Ci.SUBCLASSING,Bi=he.getterFor(zi),Ui=he.set,Hi=xi&&xi.prototype,Wi=xi,Gi=Hi,qi=m.TypeError,Ki=m.document,Xi=m.process,Yi=Vi.f,Ji=Yi,Qi=!!(Ki&&Ki.createEvent&&m.dispatchEvent),Zi="unhandledrejection",tu=function(t){var e;return !(!H(t)||!U(e=t.then))&&e},eu=function(t,e){var n,r,o,i=e.value,u=1===e.state,a=u?t.ok:t.fail,c=t.resolve,s=t.reject,f=t.domain;try{a?(u||(2===e.rejection&&uu(e),e.rejection=1),!0===a?n=i:(f&&f.enter(),n=a(i),f&&(f.exit(),o=!0)),n===t.promise?s(new qi("Promise-chain cycle")):(r=tu(n))?O(r,n,c,s):c(n)):s(i);}catch(t){f&&!o&&f.exit(),s(t);}},nu=function(t,e){t.notified||(t.notified=!0,Ei((function(){for(var n,r=t.reactions;n=r.get();)eu(n,t);t.notified=!1,e&&!t.rejection&&ou(t);})));},ru=function(t,e,n){var r,o;Qi?((r=Ki.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),m.dispatchEvent(r)):r={promise:e,reason:n},!_i&&(o=m["on"+t])?o(r):t===Zi&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e);}catch(t){}}("Unhandled promise rejection",n);},ou=function(t){O(Li,m,(function(){var e,n=t.facade,r=t.value;if(iu(t)&&(e=Oi((function(){Io?Xi.emit("unhandledRejection",r,n):ru(Zi,n,r);})),t.rejection=Io||iu(t)?2:1,e.error))throw e.value}));},iu=function(t){return 1!==t.rejection&&!t.parent},uu=function(t){O(Li,m,(function(){var e=t.facade;Io?Xi.emit("rejectionHandled",e):ru("rejectionhandled",e,t.value);}));},au=function(t,e,n){return function(r){t(e,r,n);}},cu=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,nu(t,!0));},su=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new qi("Promise can't be resolved itself");var r=tu(e);r?Ei((function(){var n={done:!1};try{O(r,e,au(su,n,t),au(cu,n,t));}catch(e){cu(n,e,t);}})):(t.value=e,t.state=1,nu(t,!1));}catch(e){cu({done:!1},e,t);}}};if(Fi&&(Gi=(Wi=function(t){Vo(this,Gi),st(t),O(Ii,this);var e=Bi(this);try{t(au(su,e),au(cu,e));}catch(t){cu(e,t);}}).prototype,(Ii=function(t){Ui(this,{type:zi,done:!1,notified:!1,parent:!1,reactions:new li,rejection:!1,state:0,value:null});}).prototype=ge(Gi,"then",(function(t,e){var n=Bi(this),r=Yi(Fo(this,Wi));return n.parent=!0,r.ok=!U(t)||t,r.fail=U(e)&&e,r.domain=Io?Xi.domain:void 0,0===n.state?n.reactions.add(r):Ei((function(){eu(r,n);})),r.promise})),ji=function(){var t=new Ii,e=Bi(t);this.promise=t,this.resolve=au(su,e),this.reject=au(cu,e);},Vi.f=Yi=function(t){return t===Wi||undefined===t?new ji(t):Ji(t)},U(xi)&&Hi!==Object.prototype)){Ti=Hi.then,$i||ge(Hi,"then",(function(t,e){var n=this;return new Wi((function(t,e){O(Ti,n,t,e);})).then(t,e)}),{unsafe:!0});try{delete Hi.constructor;}catch(t){}Mo&&Mo(Hi,Gi);}Ke({global:!0,constructor:!0,wrap:!0,forced:Fi},{Promise:Wi}),Ro(Wi,zi,!1),Pi=W(zi),w&&Pi&&!Pi[ko]&&Co(Pi,ko,{configurable:!0,get:function(){return this}});var fu={},lu=Tt("iterator"),du=Array.prototype,pu=Tt("iterator"),vu=function(t){if(!z(t))return ft(t,pu)||ft(t,"@@iterator")||fu[en(t)]},hu=TypeError,yu=function(t,e,n){var r,o;$t(t);try{if(!(r=ft(t,"return"))){if("throw"===e)throw n;return n}r=O(r,t);}catch(t){o=!0,r=t;}if("throw"===e)throw n;if(o)throw r;return $t(r),n},gu=TypeError,mu=function(t,e){this.stopped=t,this.result=e;},bu=mu.prototype,wu=function(t,e,n){var r,o,i,u,a,c,s,f,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),y=Fn(e,l),g=function(t){return r&&yu(r,"normal",t),new mu(!0,t)},m=function(t){return d?($t(t),h?y(t[0],t[1],g):y(t[0],t[1])):h?y(t,g):y(t)};if(p)r=t.iterator;else if(v)r=t;else {if(!(o=vu(t)))throw new gu(at(t)+" is not iterable");if(void 0!==(f=o)&&(fu.Array===f||du[lu]===f)){for(i=0,u=Te(t);u>i;i++)if((a=m(t[i]))&&G(bu,a))return a;return new mu(!1)}r=function(t,e){var n=arguments.length<2?vu(t):e;if(st(n))return $t(O(n,t));throw new hu(at(t)+" is not iterable")}(t,o);}for(c=p?t.next:r.next;!(s=O(c,r)).done;){try{a=m(s.value);}catch(t){yu(r,"throw",t);}if("object"==typeof a&&a&&G(bu,a))return a}return new mu(!1)},Su=Tt("iterator"),Eu=!1;try{var Ou=0,xu={next:function(){return {done:!!Ou++}},return:function(){Eu=!0;}};xu[Su]=function(){return this},Array.from(xu,(function(){throw 2}));}catch(t){}var Iu=function(t,e){try{if(!e&&!Eu)return !1}catch(t){return !1}var n=!1;try{var r={};r[Su]=function(){return {next:function(){return {done:n=!0}}}},t(r);}catch(t){}return n},ju=Ci.CONSTRUCTOR||!Iu((function(t){xi.all(t).then(void 0,(function(){}));}));Ke({target:"Promise",stat:!0,forced:ju},{all:function(t){var e=this,n=Vi.f(e),r=n.resolve,o=n.reject,i=Oi((function(){var n=st(e.resolve),i=[],u=0,a=1;wu(t,(function(t){var c=u++,s=!1;a++,O(n,e,t).then((function(t){s||(s=!0,i[c]=t,--a||r(i));}),o);})),--a||r(i);}));return i.error&&o(i.value),n.promise}});var Tu=Ci.CONSTRUCTOR,Pu=xi&&xi.prototype;if(Ke({target:"Promise",proto:!0,forced:Tu,real:!0},{catch:function(t){return this.then(void 0,t)}}),U(xi)){var Mu=W("Promise").prototype.catch;Pu.catch!==Mu&&ge(Pu,"catch",Mu,{unsafe:!0});}Ke({target:"Promise",stat:!0,forced:ju},{race:function(t){var e=this,n=Vi.f(e),r=n.reject,o=Oi((function(){var o=st(e.resolve);wu(t,(function(t){O(o,e,t).then(n.resolve,r);}));}));return o.error&&r(o.value),n.promise}}),Ke({target:"Promise",stat:!0,forced:Ci.CONSTRUCTOR},{reject:function(t){var e=Vi.f(this);return (0, e.reject)(t),e.promise}});var Au=Ci.CONSTRUCTOR;function Nu(n,r,o,i,u){return void 0===o&&(o=""),void 0===i&&(i=""),void 0===u&&(u=""),c(this,void 0,void 0,(function(){var a,c,f,l,d,p,v;return s(this,(function(s){switch(s.label){case 0:return r?(n.restoreSelection(),a=n.getMenuConfig("insertVideo"),c=a.onInsertedVideo,f=a.checkVideo,l=a.parseVideoSrc,[4,f(r,o)]):[2];case 1:return "string"==typeof(d=s.sent())?(n.alert(d,"error"),[2]):null==d?[2]:[4,l(r)];case 2:return 0!==(p=s.sent()).trim().indexOf("<iframe ")&&(p=p.replace(/</g,"&lt;").replace(/>/g,"&gt;")),v={type:"video",src:p,poster:o,children:[{text:""}],style:{width:i,height:u}},Promise.resolve().then((function(){t.DomEditor.isSelectedEmptyParagraph(n)&&e.Transforms.removeNodes(n,{mode:"highest"}),e.Transforms.insertNodes(n,v,{mode:"highest"});})),c(v),[2]}}))}))}function Ru(){return ho("w-e-insert-video")}W("Promise"),Ke({target:"Promise",stat:!0,forced:Au},{resolve:function(t){return function(t,e){if($t(t),H(e)&&e.constructor===t)return e;var n=Vi.f(t);return (0, n.resolve)(e),n.promise}(this,t)}});var Cu=function(){function n(){this.title=t.t("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=Ru(),this.posterInputId=Ru(),this.buttonId=Ru();}return n.prototype.getValue=function(t){return ""},n.prototype.isActive=function(t){return !1},n.prototype.exec=function(t,e){},n.prototype.isDisabled=function(n){var r=n.selection;return null==r||(!e.Range.isCollapsed(r)||!!t.DomEditor.getSelectedElems(n).some((function(e){var r=t.DomEditor.getNodeType(e);return "pre"===r||("list-item"===r||!!n.isVoid(e))})))},n.prototype.getModalPositionNode=function(t){return null},n.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,f=l(t.genModalInputElems(t.t("videoModule.videoSrc"),o,t.t("videoModule.videoSrcPlaceHolder")),2),d=f[0],p=f[1],v=l(t.genModalInputElems(t.t("videoModule.videoPoster"),i,t.t("videoModule.videoPosterPlaceHolder")),2),h=v[0],y=v[1],g=u.default(p),m=u.default(y),b=l(t.genModalButtonElems(a,t.t("videoModule.ok")),1)[0];if(null==this.$content){var w=u.default("<div></div>");w.on("click","#"+a,(function(t){return c(n,void 0,void 0,(function(){var n,r;return s(this,(function(u){switch(u.label){case 0:return t.preventDefault(),n=w.find("#"+o).val().trim(),r=w.find("#"+i).val().trim(),[4,Nu(e,n,r)];case 1:return u.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=w;}var S=this.$content;return S.empty(),S.append(d),S.append(h),S.append(b),g.val(""),m.val(""),setTimeout((function(){g.focus();})),S[0]},n}(),ku=N([].join),Du=L!==Object||!so("join",",");Ke({target:"Array",proto:!0,forced:Du},{join:function(t){return ku($(this),void 0===t?",":t)}});var Vu,Lu,zu,Fu=!b((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),_u=ce("IE_PROTO"),$u=Object,Bu=$u.prototype,Uu=Fu?$u.getPrototypeOf:function(t){var e=gt(t);if(bt(e,_u))return e[_u];var n=e.constructor;return U(n)&&e instanceof n?n.prototype:e instanceof $u?Bu:null},Hu=Tt("iterator"),Wu=!1;[].keys&&("next"in(zu=[].keys())?(Lu=Uu(Uu(zu)))!==Object.prototype&&(Vu=Lu):Wu=!0);var Gu=!H(Vu)||b((function(){var t={};return Vu[Hu].call(t)!==t}));Gu&&(Vu={}),U(Vu[Hu])||ge(Vu,Hu,(function(){return this}));var qu={IteratorPrototype:Vu,BUGGY_SAFARI_ITERATORS:Wu},Ku=qu.IteratorPrototype,Xu=function(){return this},Yu=Zt.PROPER,Ju=Zt.CONFIGURABLE,Qu=qu.IteratorPrototype,Zu=qu.BUGGY_SAFARI_ITERATORS,ta=Tt("iterator"),ea="keys",na="values",ra="entries",oa=function(){return this},ia=function(t,e,n,r,o,i,u){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Mn(Ku,{next:T(+!r,n)}),Ro(t,o,!1),fu[o]=Xu;}(n,e,r);var a,c,s,f=function(t){if(t===o&&h)return h;if(!Zu&&t&&t in p)return p[t];switch(t){case ea:case na:case ra:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,p=t.prototype,v=p[ta]||p["@@iterator"]||o&&p[o],h=!Zu&&v||f(o),y="Array"===e&&p.entries||v;if(y&&(a=Uu(y.call(new t)))!==Object.prototype&&a.next&&(Uu(a)!==Qu&&(Mo?Mo(a,Qu):U(a[ta])||ge(a,ta,oa)),Ro(a,l,!0)),Yu&&o===na&&v&&v.name!==na&&(Ju?Xt(p,"name",na):(d=!0,h=function(){return O(v,this)})),o)if(c={values:f(na),keys:i?h:f(ea),entries:f(ra)},u)for(s in c)(Zu||d||!(s in p))&&ge(p,s,c[s]);else Ke({target:e,proto:!0,forced:Zu||d},c);return p[ta]!==h&&ge(p,ta,h,{name:o}),fu[e]=h,c},ua=function(t,e){return {value:t,done:e}},aa=Kt.f,ca="Array Iterator",sa=he.set,fa=he.getterFor(ca),la=ia(Array,"Array",(function(t,e){sa(this,{type:ca,target:$(t),index:0,kind:e});}),(function(){var t=fa(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,ua(void 0,!0);switch(t.kind){case"keys":return ua(n,!1);case"values":return ua(e[n],!1)}return ua([n,e[n]],!1)}),"values"),da=fu.Arguments=fu.Array;if(Cn("keys"),Cn("values"),Cn("entries"),w&&"values"!==da.name)try{aa(da,"name",{value:"values"});}catch(t){}var pa=Tt("species"),va=function(t){return tt>=51||!b((function(){var e=[];return (e.constructor={})[pa]=function(){return {foo:1}},1!==e[t](Boolean).foo}))}("slice"),ha=Tt("species"),ya=Array,ga=Math.max;Ke({target:"Array",proto:!0,forced:!va},{slice:function(t,e){var n,r,o,i,u,a,c=$(this),s=Te(c),f=xe(t,s),l=xe(void 0===e?s:e,s);if(_n(c)&&(n=c.constructor,(Kn(n)&&(n===ya||_n(n.prototype))||H(n)&&null===(n=n[ha]))&&(n=void 0),n===ya||void 0===n))return _o(c,f,l);for(r=new(void 0===n?ya:n)(ga(l-f,0)),o=0;f<l;f++,o++)f in c&&(i=r,u=o,a=c[f],w?Kt.f(i,u,T(0,a)):i[u]=a);return r.length=o,r}});var ma=Zt.EXISTS,ba=Function.prototype,wa=N(ba.toString),Sa=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ea=N(Sa.exec);w&&!ma&&Co(ba,"name",{configurable:!0,get:function(){try{return Ea(Sa,wa(this))[1]}catch(t){return ""}}});var Oa=zr.charAt,xa="String Iterator",Ia=he.set,ja=he.getterFor(xa);ia(String,"String",(function(t){Ia(this,{type:xa,string:rn(t),index:0});}),(function(){var t,e=ja(this),n=e.string,r=e.index;return r>=n.length?ua(void 0,!0):(t=Oa(n,r),e.index+=t.length,ua(t,!1))}));var Ta=!b((function(){return Object.isExtensible(Object.preventExtensions({}))})),Pa=function(t,e,n){for(var r in e)ge(t,r,e[r],n);return t},Ma=De.f,Aa="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Na={f:function(t){return Aa&&"Window"===k(t)?function(t){try{return Ma(t)}catch(t){return _o(Aa)}}(t):Ma($(t))}},Ra=b((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8});}})),Ca=Object.isExtensible,ka=b((function(){Ca(1);}))||Ra?function(t){return !!H(t)&&((!Ra||"ArrayBuffer"!==k(t))&&(!Ca||Ca(t)))}:Ca,Da=v((function(t){var e=Kt.f,n=!1,r=Ot("meta"),o=0,i=function(t){e(t,r,{value:{objectID:"O"+o++,weakData:{}}});},u=t.exports={enable:function(){u.enable=function(){},n=!0;var t=De.f,e=N([].splice),o={};o[r]=1,t(o).length&&(De.f=function(n){for(var o=t(n),i=0,u=o.length;i<u;i++)if(o[i]===r){e(o,i,1);break}return o},Ke({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Na.f}));},fastKey:function(t,e){if(!H(t))return "symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!bt(t,r)){if(!ka(t))return "F";if(!e)return "E";i(t);}return t[r].objectID},getWeakData:function(t,e){if(!bt(t,r)){if(!ka(t))return !0;if(!e)return !1;i(t);}return t[r].weakData},onFreeze:function(t){return Ta&&n&&ka(t)&&!bt(t,r)&&i(t),t}};se[r]=!0;})),Va=Da.getWeakData,La=he.set,za=he.getterFor,Fa=tr.find,_a=tr.findIndex,$a=N([].splice),Ba=0,Ua=function(t){return t.frozen||(t.frozen=new Ha)},Ha=function(){this.entries=[];},Wa=function(t,e){return Fa(t.entries,(function(t){return t[0]===e}))};Ha.prototype={get:function(t){var e=Wa(this,t);if(e)return e[1]},has:function(t){return !!Wa(this,t)},set:function(t,e){var n=Wa(this,t);n?n[1]=e:this.entries.push([t,e]);},delete:function(t){var e=_a(this.entries,(function(e){return e[0]===t}));return ~e&&$a(this.entries,e,1),!!~e}};var Ga,qa={getConstructor:function(t,e,n,r){var o=t((function(t,o){Vo(t,i),La(t,{type:e,id:Ba++,frozen:null}),z(o)||wu(o,t[r],{that:t,AS_ENTRIES:n});})),i=o.prototype,u=za(e),a=function(t,e,n){var r=u(t),o=Va($t(e),!0);return !0===o?Ua(r).set(e,n):o[r.id]=n,t};return Pa(i,{delete:function(t){var e=u(this);if(!H(t))return !1;var n=Va(t);return !0===n?Ua(e).delete(t):n&&bt(n,e.id)&&delete n[e.id]},has:function(t){var e=u(this);if(!H(t))return !1;var n=Va(t);return !0===n?Ua(e).has(t):n&&bt(n,e.id)}}),Pa(i,n?{get:function(t){var e=u(this);if(H(t)){var n=Va(t);if(!0===n)return Ua(e).get(t);if(n)return n[e.id]}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Ka=he.enforce,Xa=Object,Ya=Array.isArray,Ja=Xa.isExtensible,Qa=Xa.isFrozen,Za=Xa.isSealed,tc=Xa.freeze,ec=Xa.seal,nc=!m.ActiveXObject&&"ActiveXObject"in m,rc=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},oc=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",u=m[t],a=u&&u.prototype,c=u,s={},f=function(t){var e=N(a[t]);ge(a,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return !(o&&!H(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!H(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return !(o&&!H(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this});};if(Ge(t,!U(u)||!(o||a.forEach&&!b((function(){(new u).entries().next();})))))c=n.getConstructor(e,t,r,i),Da.enable();else if(Ge(t,!0)){var l=new c,d=l[i](o?{}:-0,1)!==l,p=b((function(){l.has(1);})),v=Iu((function(t){new u(t);})),h=!o&&b((function(){for(var t=new u,e=5;e--;)t[i](e,e);return !t.has(-0)}));v||((c=e((function(t,e){Vo(t,a);var n=function(t,e,n){var r,o;return Mo&&U(r=e.constructor)&&r!==n&&H(o=r.prototype)&&o!==n.prototype&&Mo(t,o),t}(new u,t,c);return z(e)||wu(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=c),(p||h)&&(f("delete"),f("has"),r&&f("get")),(h||d)&&f(i),o&&a.clear&&delete a.clear;}return s[t]=c,Ke({global:!0,constructor:!0,forced:c!==u},s),Ro(c,t),o||n.setStrong(c,t,r),c}("WeakMap",rc,qa),ic=oc.prototype,uc=N(ic.set);if(ue)if(nc){Ga=qa.getConstructor(rc,"WeakMap",!0),Da.enable();var ac=N(ic.delete),cc=N(ic.has),sc=N(ic.get);Pa(ic,{delete:function(t){if(H(t)&&!Ja(t)){var e=Ka(this);return e.frozen||(e.frozen=new Ga),ac(this,t)||e.frozen.delete(t)}return ac(this,t)},has:function(t){if(H(t)&&!Ja(t)){var e=Ka(this);return e.frozen||(e.frozen=new Ga),cc(this,t)||e.frozen.has(t)}return cc(this,t)},get:function(t){if(H(t)&&!Ja(t)){var e=Ka(this);return e.frozen||(e.frozen=new Ga),cc(this,t)?sc(this,t):e.frozen.get(t)}return sc(this,t)},set:function(t,e){if(H(t)&&!Ja(t)){var n=Ka(this);n.frozen||(n.frozen=new Ga),cc(this,t)?uc(this,t,e):n.frozen.set(t,e);}else uc(this,t,e);return this}});}else Ta&&b((function(){var t=tc([]);return uc(new oc,t,1),!Qa(t)}))&&Pa(ic,{set:function(t,e){var n;return Ya(t)&&(Qa(t)?n=tc:Za(t)&&(n=ec)),uc(this,t,e),n&&n(t),this}});var fc=Tt("iterator"),lc=la.values,dc=function(t,e){if(t){if(t[fc]!==lc)try{Xt(t,fc,lc);}catch(e){t[fc]=lc;}if(Ro(t,e,!0),io[e])for(var n in la)if(t[n]!==la[n])try{Xt(t,n,la[n]);}catch(e){t[n]=la[n];}}};for(var pc in io)dc(m[pc]&&m[pc].prototype,pc);function vc(t){return t.getMenuConfig("uploadVideo")}dc(co,"DOMTokenList");var hc=new WeakMap;function yc(e,n){return c(this,void 0,void 0,(function(){var r,o,i,u;return s(this,(function(c){switch(c.label){case 0:return r=function(e){var n=hc.get(e);if(null!=n)return n;var r=vc(e),o=r.onSuccess,i=r.onProgress,u=r.onFailed,c=r.customInsert,s=r.onError;return n=t.createUploader(a(a({},r),{onProgress:function(t){e.showProgressBar(t),i&&i(t);},onSuccess:function(t,n){if(c)return c(n,(function(t,n){return Nu(e,t,n)})),void o(t,n);var r=n.errno,i=void 0===r?1:r,a=n.data,s=void 0===a?{}:a;if(0===i){var f=s.url,l=void 0===f?"":f,d=s.poster;Nu(e,l,void 0===d?"":d),o(t,n);}else u(t,n);},onError:function(t,e,n){s(t,e,n);}})),hc.set(e,n),n}(e),o=n.name,i=n.type,u=n.size,r.addFile({name:o,type:i,size:u,data:n}),[4,r.upload()];case 1:return c.sent(),[2]}}))}))}var gc=function(){function n(){this.title=t.t("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 n.prototype.getValue=function(t){return ""},n.prototype.isActive=function(t){return !1},n.prototype.exec=function(t,e){var n=this.getMenuConfig(t),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(e,n){return Nu(t,e,n)}));else {var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var f=u.default("body"),l=u.default('<input type="file" '+a+" multiple/>");l.hide(),f.append(l),l.click(),l.on("change",(function(){var e=l[0].files;!function(t,e){var n,r;c(this,void 0,void 0,(function(){var o,i,u,a,c,f;return s(this,(function(s){switch(s.label){case 0:if(null==e)return [2];o=Array.prototype.slice.call(e),i=vc(t).customUpload,s.label=1;case 1:s.trys.push([1,9,10,15]),u=d(o),s.label=2;case 2:return [4,u.next()];case 3:return (a=s.sent()).done?[3,8]:(c=a.value,i?[4,i(c,(function(e,n){return Nu(t,e,n)}))]:[3,5]);case 4:return s.sent(),[3,7];case 5:return [4,yc(t,c)];case 6:s.sent(),s.label=7;case 7:return [3,2];case 8:return [3,15];case 9:return f=s.sent(),n={error:f},[3,15];case 10:return s.trys.push([10,,13,14]),a&&!a.done&&(r=u.return)?[4,r.call(u)]:[3,12];case 11:s.sent(),s.label=12;case 12:return [3,14];case 13:if(n)throw n.error;return [7];case 14:return [7];case 15:return [2]}}))}));}(t,e);}));}},n.prototype.isDisabled=function(n){var r=n.selection;return null==r||(!e.Range.isCollapsed(r)||!!t.DomEditor.getSelectedElems(n).some((function(e){var r=t.DomEditor.getNodeType(e);return "pre"===r||("list-item"===r||!!n.isVoid(e))})))},n.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},n}();function mc(){return ho("w-e-insert-video")}var bc=function(){function n(){this.title=t.t("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=mc(),this.heightInputId=mc(),this.buttonId=mc();}return n.prototype.getSelectedVideoNode=function(e){return t.DomEditor.getSelectedNodeByType(e,"video")},n.prototype.getValue=function(t){return ""},n.prototype.isActive=function(t){return !1},n.prototype.exec=function(t,e){},n.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},n.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},n.prototype.getModalContentElem=function(n){var r=this,o=r.widthInputId,i=r.heightInputId,c=r.buttonId,s=l(t.genModalInputElems(t.t("videoModule.width"),o,"auto"),2),f=s[0],d=s[1],p=u.default(d),v=l(t.genModalInputElems(t.t("videoModule.height"),i,"auto"),2),h=v[0],y=v[1],g=u.default(y),m=l(t.genModalButtonElems(c,t.t("videoModule.ok")),1)[0];if(null==this.$content){var b=u.default("<div></div>");b.on("click","#"+c,(function(r){r.preventDefault();var u=b.find("#"+o).val().trim(),c=b.find("#"+i).val().trim(),s=function(t){return /^\d+(\.\d+)?%$/.test(t)},f=function(t){return /^\d+(\.\d+)?$/.test(t)},l="auto",d="auto";s(u)?l=u:f(u)&&(l=parseInt(u)+"px"),s(c)?d=c:f(c)&&(d=parseInt(c)+"px");var p=S.style,v=void 0===p?{}:p;n.restoreSelection();var h={style:a(a({},v),{width:l,height:d})};e.Transforms.setNodes(n,h,{match:function(e){return t.DomEditor.checkNodeType(e,"video")}}),n.hidePanelOrModal();})),this.$content=b;}var w=this.$content;w.empty(),w.append(f),w.append(h),w.append(m);var S=this.getSelectedVideoNode(n);if(null==S)return w[0];var E=S.style,O=void 0===E?{}:E,x=O.width,I=void 0===x?"":x,j=O.height,T=void 0===j?"":j;return p.val(I),g.val(T),setTimeout((function(){p.focus();})),w[0]},n}();function wc(){return ho("w-e-edit-video")}var Sc=function(){function n(){this.title=t.t("videoModule.edit"),this.iconSvg='<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>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=wc(),this.posterInputId=wc(),this.buttonId=wc();}return n.prototype.getSelectedVideoNode=function(e){return t.DomEditor.getSelectedNodeByType(e,"video")},n.prototype.getValue=function(t){return ""},n.prototype.isActive=function(t){return !1},n.prototype.exec=function(t,e){},n.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},n.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},n.prototype.getModalContentElem=function(n){var r=this,o=this,i=o.srcInputId,a=o.posterInputId,f=o.buttonId,d=l(t.genModalInputElems(t.t("videoModule.videoSrc"),i,t.t("videoModule.videoSrcPlaceHolder")),2),p=d[0],v=d[1],h=l(t.genModalInputElems(t.t("videoModule.videoPoster"),a,t.t("videoModule.videoPosterPlaceHolder")),2),y=h[0],g=h[1],m=u.default(v),b=u.default(g),w=l(t.genModalButtonElems(f,t.t("videoModule.ok")),1)[0];if(null==this.$content){var S=u.default("<div></div>");S.on("click","#"+f,(function(o){return c(r,void 0,void 0,(function(){var r,u,c,f;return s(this,(function(s){return o.preventDefault(),r=S.find("#"+i).val().trim(),u=S.find("#"+a).val().trim(),c=ho("video-"),f={src:r,poster:u,key:c},n.restoreSelection(),e.Transforms.setNodes(n,f,{match:function(e){return t.DomEditor.checkNodeType(e,"video")}}),n.hidePanelOrModal(),[2]}))}))})),this.$content=S;}var E=this.$content;E.empty(),E.append(p),E.append(y),E.append(w);var O=this.getSelectedVideoNode(n);if(null==O)return E[0];var x=O.src,I=void 0===x?"":x,j=O.poster,T=void 0===j?"":j;return m.val(I),b.val(T),setTimeout((function(){m.focus();})),E[0]},n}();var Ec={renderElems:[hn],elemsToHtml:[gn],preParseHtml:[Vn],parseElemsHtml:[Eo],menus:[{key:"insertVideo",factory:function(){return new Cu},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return !0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new gc},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e);},onError:function(t,e,n){console.error("'"+t.name+" upload error",e,n);}}},{key:"editVideoSize",factory:function(){return new bc}},{key:"editVideoSrc",factory:function(){return new Sc}}],editorPlugin:function(n){var r=n.isVoid,o=n.normalizeNode,i=n;return i.isVoid=function(t){return "video"===t.type||r(t)},i.normalizeNode=function(n){var r=l(n,2),u=r[0],a=r[1];"video"===t.DomEditor.getNodeType(u)&&(t.DomEditor.isLastNode(i,u)&&e.Transforms.insertNodes(i,t.DomEditor.genEmptyParagraph(),{at:[a[0]+1]}));return o([u,a])},i}};return Ec}));
21697
+ !function(t,e){module.exports=e(dist$6,require$$2,dist$7,require$$3,require$$4);}(commonjsGlobal,(function(t,e,n,r,o){function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var u=i(e);t.i18nAddResources("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",edit:"Edit video",width:"Width",height:"Height"}}),t.i18nAddResources("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function c(t){var e={exports:{}};return t(e,e.exports),e.exports}var s,f,l=function(t){return t&&t.Math===Math&&t},d=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof a&&a)||l("object"==typeof a&&a)||function(){return this}()||Function("return this")(),p=function(t){try{return !!t()}catch(t){return !0}},v=!p((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!p((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),y=Function.prototype.call,g=h?y.bind(y):function(){return y.apply(y,arguments)},m={}.propertyIsEnumerable,b=Object.getOwnPropertyDescriptor,w={f:b&&!m.call({1:2},1)?function(t){var e=b(this,t);return !!e&&e.enumerable}:m},S=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},E=Function.prototype,O=E.call,x=h&&E.bind.bind(O,O),I=h?x:function(t){return function(){return O.apply(t,arguments)}},j=I({}.toString),T=I("".slice),P=function(t){return T(j(t),8,-1)},M=Object,A=I("".split),N=p((function(){return !M("z").propertyIsEnumerable(0)}))?function(t){return "String"===P(t)?A(t,""):M(t)}:M,R=function(t){return null==t},C=TypeError,k=function(t){if(R(t))throw new C("Can't call method on "+t);return t},D=function(t){return N(k(t))},V="object"==typeof document&&document.all,L=void 0===V&&void 0!==V?function(t){return "function"==typeof t||t===V}:function(t){return "function"==typeof t},z=function(t){return "object"==typeof t?null!==t:L(t)},F=function(t,e){return arguments.length<2?(n=d[t],L(n)?n:void 0):d[t]&&d[t][e];var n;},_=I({}.isPrototypeOf),$=d.navigator,B=$&&$.userAgent,U=B?String(B):"",H=d.process,W=d.Deno,G=H&&H.versions||W&&W.version,q=G&&G.v8;q&&(f=(s=q.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!f&&U&&(!(s=U.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=U.match(/Chrome\/(\d+)/))&&(f=+s[1]);var K=f,X=d.String,Y=!!Object.getOwnPropertySymbols&&!p((function(){var t=Symbol("symbol detection");return !X(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&K&&K<41})),J=Y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Q=Object,Z=J?function(t){return "symbol"==typeof t}:function(t){var e=F("Symbol");return L(e)&&_(e.prototype,Q(t))},tt=String,et=function(t){try{return tt(t)}catch(t){return "Object"}},nt=TypeError,rt=function(t){if(L(t))return t;throw new nt(et(t)+" is not a function")},ot=function(t,e){var n=t[e];return R(n)?void 0:rt(n)},it=TypeError,ut=Object.defineProperty,at=function(t,e){try{ut(d,t,{value:e,configurable:!0,writable:!0});}catch(n){d[t]=e;}return e},ct=c((function(t){var e="__core-js_shared__",n=t.exports=d[e]||at(e,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),st=function(t,e){return ct[t]||(ct[t]=e||{})},ft=Object,lt=function(t){return ft(k(t))},dt=I({}.hasOwnProperty),pt=Object.hasOwn||function(t,e){return dt(lt(t),e)},vt=0,ht=Math.random(),yt=I(1..toString),gt=function(t){return "Symbol("+(void 0===t?"":t)+")_"+yt(++vt+ht,36)},mt=d.Symbol,bt=st("wks"),wt=J?mt.for||mt:mt&&mt.withoutSetter||gt,St=function(t){return pt(bt,t)||(bt[t]=Y&&pt(mt,t)?mt[t]:wt("Symbol."+t)),bt[t]},Et=TypeError,Ot=St("toPrimitive"),xt=function(t,e){if(!z(t)||Z(t))return t;var n,r=ot(t,Ot);if(r){if(void 0===e&&(e="default"),n=g(r,t,e),!z(n)||Z(n))return n;throw new Et("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&L(n=t.toString)&&!z(r=g(n,t)))return r;if(L(n=t.valueOf)&&!z(r=g(n,t)))return r;if("string"!==e&&L(n=t.toString)&&!z(r=g(n,t)))return r;throw new it("Can't convert object to primitive value")}(t,e)},It=function(t){var e=xt(t,"string");return Z(e)?e:e+""},jt=d.document,Tt=z(jt)&&z(jt.createElement),Pt=function(t){return Tt?jt.createElement(t):{}},Mt=!v&&!p((function(){return 7!==Object.defineProperty(Pt("div"),"a",{get:function(){return 7}}).a})),At=Object.getOwnPropertyDescriptor,Nt={f:v?At:function(t,e){if(t=D(t),e=It(e),Mt)try{return At(t,e)}catch(t){}if(pt(t,e))return S(!g(w.f,t,e),t[e])}},Rt=v&&p((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,kt=TypeError,Dt=function(t){if(z(t))return t;throw new kt(Ct(t)+" is not an object")},Vt=TypeError,Lt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,Ft="enumerable",_t="configurable",$t="writable",Bt={f:v?Rt?function(t,e,n){if(Dt(t),e=It(e),Dt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&$t in n&&!n[$t]){var r=zt(t,e);r&&r[$t]&&(t[e]=n.value,n={configurable:_t in n?n[_t]:r[_t],enumerable:Ft in n?n[Ft]:r[Ft],writable:!1});}return Lt(t,e,n)}:Lt:function(t,e,n){if(Dt(t),e=It(e),Dt(n),Mt)try{return Lt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Vt("Accessors not supported");return "value"in n&&(t[e]=n.value),t}},Ut=v?function(t,e,n){return Bt.f(t,e,S(1,n))}:function(t,e,n){return t[e]=n,t},Ht=Function.prototype,Wt=v&&Object.getOwnPropertyDescriptor,Gt=pt(Ht,"name"),qt={EXISTS:Gt,PROPER:Gt&&"something"===function(){}.name,CONFIGURABLE:Gt&&(!v||v&&Wt(Ht,"name").configurable)},Kt=I(Function.toString);L(ct.inspectSource)||(ct.inspectSource=function(t){return Kt(t)});var Xt,Yt,Jt,Qt=ct.inspectSource,Zt=d.WeakMap,te=L(Zt)&&/native code/.test(String(Zt)),ee=st("keys"),ne=function(t){return ee[t]||(ee[t]=gt(t))},re={},oe="Object already initialized",ie=d.TypeError,ue=d.WeakMap;if(te||ct.state){var ae=ct.state||(ct.state=new ue);ae.get=ae.get,ae.has=ae.has,ae.set=ae.set,Xt=function(t,e){if(ae.has(t))throw new ie(oe);return e.facade=t,ae.set(t,e),e},Yt=function(t){return ae.get(t)||{}},Jt=function(t){return ae.has(t)};}else {var ce=ne("state");re[ce]=!0,Xt=function(t,e){if(pt(t,ce))throw new ie(oe);return e.facade=t,Ut(t,ce,e),e},Yt=function(t){return pt(t,ce)?t[ce]:{}},Jt=function(t){return pt(t,ce)};}var se={set:Xt,get:Yt,has:Jt,enforce:function(t){return Jt(t)?Yt(t):Xt(t,{})},getterFor:function(t){return function(e){var n;if(!z(e)||(n=Yt(e)).type!==t)throw new ie("Incompatible receiver, "+t+" required");return n}}},fe=c((function(t){var e=qt.CONFIGURABLE,n=se.enforce,r=se.get,o=String,i=Object.defineProperty,u=I("".slice),a=I("".replace),c=I([].join),s=v&&!p((function(){return 8!==i((function(){}),"length",{value:8}).length})),f=String(String).split("String"),l=t.exports=function(t,r,l){"Symbol("===u(o(r),0,7)&&(r="["+a(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),l&&l.getter&&(r="get "+r),l&&l.setter&&(r="set "+r),(!pt(t,"name")||e&&t.name!==r)&&(v?i(t,"name",{value:r,configurable:!0}):t.name=r),s&&l&&pt(l,"arity")&&t.length!==l.arity&&i(t,"length",{value:l.arity});try{l&&pt(l,"constructor")&&l.constructor?v&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var d=n(t);return pt(d,"source")||(d.source=c(f,"string"==typeof r?r:"")),t};Function.prototype.toString=l((function(){return L(this)&&r(this).source||Qt(this)}),"toString");})),le=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(L(n)&&fe(n,i,r),r.global)o?t[e]=n:at(e,n);else {try{r.unsafe?t[e]&&(o=!0):delete t[e];}catch(t){}o?t[e]=n:Bt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable});}return t},de=Math.ceil,pe=Math.floor,ve=Math.trunc||function(t){var e=+t;return (e>0?pe:de)(e)},he=function(t){var e=+t;return e!=e||0===e?0:ve(e)},ye=Math.max,ge=Math.min,me=function(t,e){var n=he(t);return n<0?ye(n+e,0):ge(n,e)},be=Math.min,we=function(t){var e=he(t);return e>0?be(e,9007199254740991):0},Se=function(t){return we(t.length)},Ee=function(t){return function(e,n,r){var o=D(e),i=Se(o);if(0===i)return !t&&-1;var u,a=me(r,i);if(t&&n!=n){for(;i>a;)if((u=o[a++])!=u)return !0}else for(;i>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return !t&&-1}},Oe={includes:Ee(!0),indexOf:Ee(!1)},xe=Oe.indexOf,Ie=I([].push),je=function(t,e){var n,r=D(t),o=0,i=[];for(n in r)!pt(re,n)&&pt(r,n)&&Ie(i,n);for(;e.length>o;)pt(r,n=e[o++])&&(~xe(i,n)||Ie(i,n));return i},Te=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pe=Te.concat("length","prototype"),Me={f:Object.getOwnPropertyNames||function(t){return je(t,Pe)}},Ae={f:Object.getOwnPropertySymbols},Ne=I([].concat),Re=F("Reflect","ownKeys")||function(t){var e=Me.f(Dt(t)),n=Ae.f;return n?Ne(e,n(t)):e},Ce=function(t,e,n){for(var r=Re(e),o=Bt.f,i=Nt.f,u=0;u<r.length;u++){var a=r[u];pt(t,a)||n&&pt(n,a)||o(t,a,i(e,a));}},ke=/#|\.prototype\./,De=function(t,e){var n=Le[Ve(t)];return n===Fe||n!==ze&&(L(e)?p(e):!!e)},Ve=De.normalize=function(t){return String(t).replace(ke,".").toLowerCase()},Le=De.data={},ze=De.NATIVE="N",Fe=De.POLYFILL="P",_e=De,$e=Nt.f,Be=function(t,e){var n,r,o,i,u,a=t.target,c=t.global,s=t.stat;if(n=c?d:s?d[a]||at(a,{}):d[a]&&d[a].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(u=$e(n,r))&&u.value:n[r],!_e(c?r:a+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ce(i,o);}(t.sham||o&&o.sham)&&Ut(i,"sham",!0),le(n,r,i,t);}},Ue=Array.isArray||function(t){return "Array"===P(t)},He=TypeError,We=function(t){if(t>9007199254740991)throw He("Maximum allowed index exceeded");return t},Ge=function(t,e,n){v?Bt.f(t,e,S(0,n)):t[e]=n;},qe={};qe[St("toStringTag")]="z";var Ke="[object z]"===String(qe),Xe=St("toStringTag"),Ye=Object,Je="Arguments"===P(function(){return arguments}()),Qe=Ke?P:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Ye(t),Xe))?n:Je?P(e):"Object"===(r=P(e))&&L(e.callee)?"Arguments":r},Ze=function(){},tn=F("Reflect","construct"),en=/^\s*(?:class|function)\b/,nn=I(en.exec),rn=!en.test(Ze),on=function(t){if(!L(t))return !1;try{return tn(Ze,[],t),!0}catch(t){return !1}},un=function(t){if(!L(t))return !1;switch(Qe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return rn||!!nn(en,Qt(t))}catch(t){return !0}};un.sham=!0;var an=!tn||p((function(){var t;return on(on.call)||!on(Object)||!on((function(){t=!0;}))||t}))?un:on,cn=St("species"),sn=Array,fn=function(t,e){return new(function(t){var e;return Ue(t)&&(e=t.constructor,(an(e)&&(e===sn||Ue(e.prototype))||z(e)&&null===(e=e[cn]))&&(e=void 0)),void 0===e?sn:e}(t))(0===e?0:e)},ln=St("species"),dn=function(t){return K>=51||!p((function(){var e=[];return (e.constructor={})[ln]=function(){return {foo:1}},1!==e[t](Boolean).foo}))},pn=St("isConcatSpreadable"),vn=K>=51||!p((function(){var t=[];return t[pn]=!1,t.concat()[0]!==t})),hn=function(t){if(!z(t))return !1;var e=t[pn];return void 0!==e?!!e:Ue(t)},yn=!vn||!dn("concat");Be({target:"Array",proto:!0,arity:1,forced:yn},{concat:function(t){var e,n,r,o,i,u=lt(this),a=fn(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(hn(i=-1===e?u:arguments[e]))for(o=Se(i),We(c+o),n=0;n<o;n++,c++)n in i&&Ge(a,c,i[n]);else We(c+1),Ge(a,c++,i);return a.length=c,a}});var gn,mn=String,bn=function(t){if("Symbol"===Qe(t))throw new TypeError("Cannot convert a Symbol value to a string");return mn(t)},wn="\t\n\v\f\r                 \u2028\u2029\ufeff",Sn=I("".replace),En=RegExp("^["+wn+"]+"),On=RegExp("(^|[^"+wn+"])["+wn+"]+$"),xn=function(t){return function(e){var n=bn(k(e));return 1&t&&(n=Sn(n,En,"")),2&t&&(n=Sn(n,On,"$1")),n}},In={start:xn(1),end:xn(2),trim:xn(3)},jn=qt.PROPER,Tn=In.trim;function Pn(t){return t.length?t[0].tagName.toLowerCase():""}function Mn(t,e,n,r){void 0===e&&(e="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=u.default(t),i=r.width,a=void 0===i?"":i,c=r.height,s=void 0===c?"":c,f="";return a&&(f+="width: ".concat(a,";")),s&&(f+="height: ".concat(s,";")),o.attr("width",e),o.attr("height",n),o.attr("style",f),o[0].outerHTML}Be({target:"String",proto:!0,forced:(gn="trim",p((function(){return !!wn[gn]()||"​…᠎"!=="​…᠎"[gn]()||jn&&wn[gn].name!==gn})))},{trim:function(){return Tn(this)}}),Be({global:!0,forced:d.globalThis!==d},{globalThis:d}),e.append&&(u.default.fn.append=e.append),e.on&&(u.default.fn.on=e.on),e.focus&&(u.default.fn.focus=e.focus),e.attr&&(u.default.fn.attr=e.attr),e.val&&(u.default.fn.val=e.val),e.html&&(u.default.fn.html=e.html),e.parent&&(u.default.fn.parent=e.parent),e.hasClass&&(u.default.fn.hasClass=e.hasClass),e.empty&&(u.default.fn.empty=e.empty);var An={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,o=void 0===r?"":r,i=n.poster,u=void 0===i?"":i,a=n.width,c=void 0===a?"auto":a,s=n.height,f=void 0===s?"auto":s,l=n.style,d=void 0===l?{}:l,p=n.textAlign,v='<div data-w-e-type="video" data-w-e-is-void style="text-align: '.concat(void 0===p?"center":p,';">\n');if(0===o.trim().indexOf("<iframe ")){v+=Mn(o,c,f,d);}else {var h=d.width,y=void 0===h?"":h,g=d.height,m=void 0===g?"":g,b="";y&&(b+="width: ".concat(y,";")),m&&(b+="height: ".concat(m,";")),v+='<video poster="'.concat(u,'" controls="true" width="').concat(c,'" height="').concat(f,'" style="').concat(b,'"><source src="').concat(o,'" type="video/mp4"/></video>');}return v+="\n</div>"}},Nn=function(t,e,n){return n.get&&fe(n.get,e,{getter:!0}),n.set&&fe(n.set,e,{setter:!0}),Bt.f(t,e,n)},Rn=qt.EXISTS,Cn=Function.prototype,kn=I(Cn.toString),Dn=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Vn=I(Dn.exec);v&&!Rn&&Nn(Cn,"name",{configurable:!0,get:function(){try{return Vn(Dn,kn(this))[1]}catch(t){return ""}}});var Ln,zn=function(t){if("Function"===P(t))return I(t)},Fn=zn(zn.bind),_n=function(t,e){return rt(t),void 0===e?t:h?Fn(t,e):function(){return t.apply(e,arguments)}},$n=I([].push),Bn=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,s,f,l){for(var d,p,v=lt(c),h=N(v),y=Se(h),g=_n(s,f),m=0,b=l||fn,w=e?b(c,y):n||u?b(c,0):void 0;y>m;m++)if((a||m in h)&&(p=g(d=h[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return !0;case 5:return d;case 6:return m;case 2:$n(w,d);}else switch(t){case 4:return !1;case 7:$n(w,d);}return i?-1:r||o?o:w}},Un={forEach:Bn(0),map:Bn(1),filter:Bn(2),some:Bn(3),every:Bn(4),find:Bn(5),findIndex:Bn(6),filterReject:Bn(7)},Hn=Object.keys||function(t){return je(t,Te)},Wn=v&&!Rt?Object.defineProperties:function(t,e){Dt(t);for(var n,r=D(e),o=Hn(e),i=o.length,u=0;i>u;)Bt.f(t,n=o[u++],r[n]);return t},Gn={f:Wn},qn=F("document","documentElement"),Kn="prototype",Xn="script",Yn=ne("IE_PROTO"),Jn=function(){},Qn=function(t){return "<"+Xn+">"+t+"</"+Xn+">"},Zn=function(t){t.write(Qn("")),t.close();var e=t.parentWindow.Object;return t=null,e},tr=function(){try{Ln=new ActiveXObject("htmlfile");}catch(t){}var t,e,n;tr="undefined"!=typeof document?document.domain&&Ln?Zn(Ln):(e=Pt("iframe"),n="java"+Xn+":",e.style.display="none",qn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Qn("document.F=Object")),t.close(),t.F):Zn(Ln);for(var r=Te.length;r--;)delete tr[Kn][Te[r]];return tr()};re[Yn]=!0;var er=Object.create||function(t,e){var n;return null!==t?(Jn[Kn]=Dt(t),n=new Jn,Jn[Kn]=null,n[Yn]=t):n=tr(),void 0===e?n:Gn.f(n,e)},nr=Bt.f,rr=St("unscopables"),or=Array.prototype;void 0===or[rr]&&nr(or,rr,{configurable:!0,value:er(null)});var ir=function(t){or[rr][t]=!0;},ur=Un.find,ar="find",cr=!0;ar in[]&&Array(1)[ar]((function(){cr=!1;})),Be({target:"Array",proto:!0,forced:cr},{find:function(t){return ur(this,t,arguments.length>1?arguments[1]:void 0)}}),ir(ar);var sr=Ke?{}.toString:function(){return "[object "+Qe(this)+"]"};Ke||le(Object.prototype,"toString",sr,{unsafe:!0});var fr,lr,dr=function(){var t=Dt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},pr=d.RegExp,vr=p((function(){var t=pr("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),hr=vr||p((function(){return !pr("a","y").sticky})),yr={BROKEN_CARET:vr||p((function(){var t=pr("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:hr,UNSUPPORTED_Y:vr},gr=d.RegExp,mr=p((function(){var t=gr(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)})),br=d.RegExp,wr=p((function(){var t=br("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Sr=se.get,Er=st("native-string-replace",String.prototype.replace),Or=RegExp.prototype.exec,xr=Or,Ir=I("".charAt),jr=I("".indexOf),Tr=I("".replace),Pr=I("".slice),Mr=(lr=/b*/g,g(Or,fr=/a/,"a"),g(Or,lr,"a"),0!==fr.lastIndex||0!==lr.lastIndex),Ar=yr.BROKEN_CARET,Nr=void 0!==/()??/.exec("")[1];(Mr||Nr||Ar||mr||wr)&&(xr=function(t){var e,n,r,o,i,u,a,c=this,s=Sr(c),f=bn(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=g(xr,l,f),c.lastIndex=l.lastIndex,e;var d=s.groups,p=Ar&&c.sticky,v=g(dr,c),h=c.source,y=0,m=f;if(p&&(v=Tr(v,"y",""),-1===jr(v,"g")&&(v+="g"),m=Pr(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Ir(f,c.lastIndex-1))&&(h="(?: "+h+")",m=" "+m,y++),n=new RegExp("^(?:"+h+")",v)),Nr&&(n=new RegExp("^"+h+"$(?!\\s)",v)),Mr&&(r=c.lastIndex),o=g(Or,p?n:c,m),p?o?(o.input=Pr(o.input,y),o[0]=Pr(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Mr&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),Nr&&o&&o.length>1&&g(Er,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=u=er(null),i=0;i<d.length;i++)u[(a=d[i])[0]]=o[a[1]];return o});var Rr=xr;Be({target:"RegExp",proto:!0,forced:/./.exec!==Rr},{exec:Rr});var Cr=function(){return Cr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Cr.apply(this,arguments)};function kr(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{c(r.next(t));}catch(t){i(t);}}function a(t){try{c(r.throw(t));}catch(t){i(t);}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e);}))).then(u,a);}c((r=r.apply(t,e||[])).next());}))}function Dr(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u);}catch(t){a=[6,t],r=0;}finally{n=o=0;}if(5&a[0])throw a[1];return {value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function Vr(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Lr(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value);}catch(t){o={error:t};}finally{try{r&&!r.done&&(n=i.return)&&n.call(i);}finally{if(o)throw o.error}}return u}function zr(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=Vr(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n});}),e);})(r,o,(e=t[n](e)).done,e.value);}))};}}"function"==typeof SuppressedError&&SuppressedError;var Fr=Function.prototype,_r=Fr.apply,$r=Fr.call,Br="object"==typeof Reflect&&Reflect.apply||(h?$r.bind(_r):function(){return $r.apply(_r,arguments)}),Ur=St("species"),Hr=RegExp.prototype,Wr=I("".charAt),Gr=I("".charCodeAt),qr=I("".slice),Kr=function(t){return function(e,n){var r,o,i=bn(k(e)),u=he(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=Gr(i,u))<55296||r>56319||u+1===a||(o=Gr(i,u+1))<56320||o>57343?t?Wr(i,u):r:t?qr(i,u,u+2):o-56320+(r-55296<<10)+65536}},Xr={codeAt:Kr(!1),charAt:Kr(!0)},Yr=Xr.charAt,Jr=function(t,e,n){return e+(n?Yr(t,e).length:1)},Qr=Math.floor,Zr=I("".charAt),to=I("".replace),eo=I("".slice),no=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ro=/\$([$&'`]|\d{1,2})/g,oo=function(t,e,n,r,o,i){var u=n+t.length,a=r.length,c=ro;return void 0!==o&&(o=lt(o),c=no),to(i,c,(function(i,c){var s;switch(Zr(c,0)){case"$":return "$";case"&":return t;case"`":return eo(e,0,n);case"'":return eo(e,u);case"<":s=o[eo(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>a){var l=Qr(f/10);return 0===l?i:l<=a?void 0===r[l-1]?Zr(c,1):r[l-1]+Zr(c,1):i}s=r[f-1];}return void 0===s?"":s}))},io=TypeError,uo=function(t,e){var n=t.exec;if(L(n)){var r=g(n,t,e);return null!==r&&Dt(r),r}if("RegExp"===P(t))return g(Rr,t,e);throw new io("RegExp#exec called on incompatible receiver")},ao=St("replace"),co=Math.max,so=Math.min,fo=I([].concat),lo=I([].push),po=I("".indexOf),vo=I("".slice),ho="$0"==="a".replace(/./,"$0"),yo=!!/./[ao]&&""===/./[ao]("a","$0");!function(t,e,n,r){var o=St(t),i=!p((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),u=i&&!p((function(){var e=!1,n=/a/;return "split"===t&&((n={}).constructor={},n.constructor[Ur]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!u||n){var a=/./[o],c=e(o,""[t],(function(t,e,n,r,o){var u=e.exec;return u===Rr||u===Hr.exec?i&&!o?{done:!0,value:g(a,e,n,r)}:{done:!0,value:g(t,n,e,r)}:{done:!1}}));le(String.prototype,t,c[0]),le(Hr,o,c[1]);}r&&Ut(Hr[o],"sham",!0);}("replace",(function(t,e,n){var r=yo?"$":"$0";return [function(t,n){var r=k(this),o=R(t)?void 0:ot(t,ao);return o?g(o,t,r,n):g(e,bn(r),t,n)},function(t,o){var i=Dt(this),u=bn(t);if("string"==typeof o&&-1===po(o,r)&&-1===po(o,"$<")){var a=n(e,i,u,o);if(a.done)return a.value}var c=L(o);c||(o=bn(o));var s,f=i.global;f&&(s=i.unicode,i.lastIndex=0);for(var l,d=[];null!==(l=uo(i,u))&&(lo(d,l),f);){""===bn(l[0])&&(i.lastIndex=Jr(u,we(i.lastIndex),s));}for(var p,v="",h=0,y=0;y<d.length;y++){for(var g,m=bn((l=d[y])[0]),b=co(so(he(l.index),u.length),0),w=[],S=1;S<l.length;S++)lo(w,void 0===(p=l[S])?p:String(p));var E=l.groups;if(c){var O=fo([m],w,b,u);void 0!==E&&lo(O,E),g=bn(Br(o,void 0,O));}else g=oo(m,u,b,w,E,o);b>=h&&(v+=vo(u,h,b)+g,h=b+m.length);}return v+vo(u,h)}]}),!!p((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!ho||yo);var go={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},mo=Pt("span").classList,bo=mo&&mo.constructor&&mo.constructor.prototype,wo=bo===Object.prototype?void 0:bo,So=function(t,e){var n=[][t];return !!n&&p((function(){n.call(null,e||function(){return 1},1);}))},Eo=Un.forEach,Oo=So("forEach")?[].forEach:function(t){return Eo(this,t,arguments.length>1?arguments[1]:void 0)},xo=function(t){if(t&&t.forEach!==Oo)try{Ut(t,"forEach",Oo);}catch(e){t.forEach=Oo;}};for(var Io in go)go[Io]&&xo(d[Io]&&d[Io].prototype);function jo(t){return void 0===t&&(t="r"),"".concat(t,"-").concat(r.nanoid())}function To(t){var e={};return t.trim().split(";").forEach((function(t){if(t){var n=Lr(t.split(":"),2),r=n[0],o=n[1];r&&o&&(e[r.trim()]=o.trim());}})),e}function Po(){return jo("w-e-insert-video")}xo(wo);var Mo=function(){function e(){this.title=t.t("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Po(),this.heightInputId=Po(),this.buttonId=Po();}return e.prototype.getSelectedVideoNode=function(e){return t.DomEditor.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(t){return ""},e.prototype.isActive=function(t){return !1},e.prototype.exec=function(t,e){},e.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(e){var r=this,o=r.widthInputId,i=r.heightInputId,a=r.buttonId,c=Lr(t.genModalInputElems(t.t("videoModule.width"),o,"auto"),2),s=c[0],f=c[1],l=u.default(f),d=Lr(t.genModalInputElems(t.t("videoModule.height"),i,"auto"),2),p=d[0],v=d[1],h=u.default(v),y=Lr(t.genModalButtonElems(a,t.t("videoModule.ok")),1)[0],g=this.getSelectedVideoNode(e);if(null==this.$content){var m=u.default("<div></div>");m.on("click","#".concat(a),(function(r){r.preventDefault();var u=m.find("#".concat(o)).val().trim(),a=m.find("#".concat(i)).val().trim(),c=function(t){return /^\d+(\.\d+)?%$/.test(t)},s=function(t){return /^\d+(\.\d+)?$/.test(t)},f="auto",l="auto";c(u)?f=u:s(u)&&(f="".concat(parseInt(u,10),"px")),c(a)?l=a:s(a)&&(l="".concat(parseInt(a,10),"px"));var d=g.style,p=void 0===d?{}:d;e.restoreSelection();var v={style:Cr(Cr({},p),{width:f,height:l})};n.Transforms.setNodes(e,v,{match:function(e){return t.DomEditor.checkNodeType(e,"video")}}),e.hidePanelOrModal();})),this.$content=m;}var b=this.$content;if(b.empty(),b.append(s),b.append(p),b.append(y),null==g)return b[0];var w=g.style,S=void 0===w?{}:w,E=S.width,O=void 0===E?"":E,x=S.height,I=void 0===x?"":x;return l.val(O),h.val(I),setTimeout((function(){l.focus();})),b[0]},e}();function Ao(){return jo("w-e-edit-video")}var No,Ro,Co,ko,Do=function(){function e(){this.title=t.t("videoModule.edit"),this.iconSvg='<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>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Ao(),this.posterInputId=Ao(),this.buttonId=Ao();}return e.prototype.getSelectedVideoNode=function(e){return t.DomEditor.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(t){return ""},e.prototype.isActive=function(t){return !1},e.prototype.exec=function(t,e){},e.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(e){var r=this,o=this,i=o.srcInputId,a=o.posterInputId,c=o.buttonId,s=Lr(t.genModalInputElems(t.t("videoModule.videoSrc"),i,t.t("videoModule.videoSrcPlaceHolder")),2),f=s[0],l=s[1],d=Lr(t.genModalInputElems(t.t("videoModule.videoPoster"),a,t.t("videoModule.videoPosterPlaceHolder")),2),p=d[0],v=d[1],h=u.default(l),y=u.default(v),g=Lr(t.genModalButtonElems(c,t.t("videoModule.ok")),1)[0];if(null==this.$content){var m=u.default("<div></div>");m.on("click","#".concat(c),(function(o){return kr(r,void 0,void 0,(function(){var r,u,c,s;return Dr(this,(function(f){return o.preventDefault(),r=m.find("#".concat(i)).val().trim(),u=m.find("#".concat(a)).val().trim(),c=jo("video-"),s={src:r,poster:u,key:c},e.restoreSelection(),n.Transforms.setNodes(e,s,{match:function(e){return t.DomEditor.checkNodeType(e,"video")}}),e.hidePanelOrModal(),[2]}))}))})),this.$content=m;}var b=this.$content;b.empty(),b.append(f),b.append(p),b.append(g);var w=this.getSelectedVideoNode(e);if(null==w)return b[0];var S=w.src,E=void 0===S?"":S,O=w.poster,x=void 0===O?"":O;return h.val(E),y.val(x),setTimeout((function(){h.focus();})),b[0]},e}(),Vo=function(t){return U.slice(0,t.length)===t},Lo=Vo("Bun/")?"BUN":Vo("Cloudflare-Workers")?"CLOUDFLARE":Vo("Deno/")?"DENO":Vo("Node.js/")?"NODE":d.Bun&&"string"==typeof Bun.version?"BUN":d.Deno&&"object"==typeof Deno.version?"DENO":"process"===P(d.process)?"NODE":d.window&&d.document?"BROWSER":"REST",zo="NODE"===Lo,Fo=String,_o=TypeError,$o=function(t){if(function(t){return z(t)||null===t}(t))return t;throw new _o("Can't set "+Fo(t)+" as a prototype")},Bo=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return I(rt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array;}catch(t){}return function(n,r){return k(n),$o(r),z(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0),Uo=Bt.f,Ho=St("toStringTag"),Wo=function(t,e,n){t&&!n&&(t=t.prototype),t&&!pt(t,Ho)&&Uo(t,Ho,{configurable:!0,value:e});},Go=St("species"),qo=TypeError,Ko=function(t,e){if(_(e,t))return t;throw new qo("Incorrect invocation")},Xo=TypeError,Yo=St("species"),Jo=function(t,e){var n,r=Dt(t).constructor;return void 0===r||R(n=Dt(r)[Yo])?e:function(t){if(an(t))return t;throw new Xo(et(t)+" is not a constructor")}(n)},Qo=I([].slice),Zo=TypeError,ti=/(?:ipad|iphone|ipod).*applewebkit/i.test(U),ei=d.setImmediate,ni=d.clearImmediate,ri=d.process,oi=d.Dispatch,ii=d.Function,ui=d.MessageChannel,ai=d.String,ci=0,si={},fi="onreadystatechange";p((function(){No=d.location;}));var li=function(t){if(pt(si,t)){var e=si[t];delete si[t],e();}},di=function(t){return function(){li(t);}},pi=function(t){li(t.data);},vi=function(t){d.postMessage(ai(t),No.protocol+"//"+No.host);};ei&&ni||(ei=function(t){!function(t,e){if(t<e)throw new Zo("Not enough arguments")}(arguments.length,1);var e=L(t)?t:ii(t),n=Qo(arguments,1);return si[++ci]=function(){Br(e,void 0,n);},Ro(ci),ci},ni=function(t){delete si[t];},zo?Ro=function(t){ri.nextTick(di(t));}:oi&&oi.now?Ro=function(t){oi.now(di(t));}:ui&&!ti?(ko=(Co=new ui).port2,Co.port1.onmessage=pi,Ro=_n(ko.postMessage,ko)):d.addEventListener&&L(d.postMessage)&&!d.importScripts&&No&&"file:"!==No.protocol&&!p(vi)?(Ro=vi,d.addEventListener("message",pi,!1)):Ro=fi in Pt("script")?function(t){qn.appendChild(Pt("script"))[fi]=function(){qn.removeChild(this),li(t);};}:function(t){setTimeout(di(t),0);});var hi={set:ei,clear:ni},yi=Object.getOwnPropertyDescriptor,gi=function(){this.head=null,this.tail=null;};gi.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e;},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var mi,bi,wi,Si,Ei,Oi=gi,xi=/ipad|iphone|ipod/i.test(U)&&"undefined"!=typeof Pebble,Ii=/web0s(?!.*chrome)/i.test(U),ji=hi.set,Ti=d.MutationObserver||d.WebKitMutationObserver,Pi=d.document,Mi=d.process,Ai=d.Promise,Ni=function(t){if(!v)return d[t];var e=yi(d,t);return e&&e.value}("queueMicrotask");if(!Ni){var Ri=new Oi,Ci=function(){var t,e;for(zo&&(t=Mi.domain)&&t.exit();e=Ri.get();)try{e();}catch(t){throw Ri.head&&mi(),t}t&&t.enter();};ti||zo||Ii||!Ti||!Pi?!xi&&Ai&&Ai.resolve?((Si=Ai.resolve(void 0)).constructor=Ai,Ei=_n(Si.then,Si),mi=function(){Ei(Ci);}):zo?mi=function(){Mi.nextTick(Ci);}:(ji=_n(ji,d),mi=function(){ji(Ci);}):(bi=!0,wi=Pi.createTextNode(""),new Ti(Ci).observe(wi,{characterData:!0}),mi=function(){wi.data=bi=!bi;}),Ni=function(t){Ri.head||mi(),Ri.add(t);};}var ki=Ni,Di=function(t){try{return {error:!1,value:t()}}catch(t){return {error:!0,value:t}}},Vi=d.Promise;Vi&&Vi.prototype;var Li,zi,Fi,_i,$i=St("species"),Bi=!1,Ui=L(d.PromiseRejectionEvent),Hi=_e("Promise",(function(){var t=Qt(Vi),e=t!==String(Vi);if(!e&&66===K)return !0;if(!K||K<51||!/native code/.test(t)){var n=new Vi((function(t){t(1);})),r=function(t){t((function(){}),(function(){}));};if((n.constructor={})[$i]=r,!(Bi=n.then((function(){}))instanceof r))return !0}return !(e||"BROWSER"!==Lo&&"DENO"!==Lo||Ui)})),Wi={CONSTRUCTOR:Hi,REJECTION_EVENT:Ui,SUBCLASSING:Bi},Gi=TypeError,qi=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new Gi("Bad Promise constructor");e=t,n=r;})),this.resolve=rt(e),this.reject=rt(n);},Ki={f:function(t){return new qi(t)}},Xi=hi.set,Yi="Promise",Ji=Wi.CONSTRUCTOR,Qi=Wi.REJECTION_EVENT,Zi=Wi.SUBCLASSING,tu=se.getterFor(Yi),eu=se.set,nu=Vi&&Vi.prototype,ru=Vi,ou=nu,iu=d.TypeError,uu=d.document,au=d.process,cu=Ki.f,su=cu,fu=!!(uu&&uu.createEvent&&d.dispatchEvent),lu="unhandledrejection",du=function(t){var e;return !(!z(t)||!L(e=t.then))&&e},pu=function(t,e){var n,r,o,i=e.value,u=1===e.state,a=u?t.ok:t.fail,c=t.resolve,s=t.reject,f=t.domain;try{a?(u||(2===e.rejection&&mu(e),e.rejection=1),!0===a?n=i:(f&&f.enter(),n=a(i),f&&(f.exit(),o=!0)),n===t.promise?s(new iu("Promise-chain cycle")):(r=du(n))?g(r,n,c,s):c(n)):s(i);}catch(t){f&&!o&&f.exit(),s(t);}},vu=function(t,e){t.notified||(t.notified=!0,ki((function(){for(var n,r=t.reactions;n=r.get();)pu(n,t);t.notified=!1,e&&!t.rejection&&yu(t);})));},hu=function(t,e,n){var r,o;fu?((r=uu.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),d.dispatchEvent(r)):r={promise:e,reason:n},!Qi&&(o=d["on"+t])?o(r):t===lu&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e);}catch(t){}}("Unhandled promise rejection",n);},yu=function(t){g(Xi,d,(function(){var e,n=t.facade,r=t.value;if(gu(t)&&(e=Di((function(){zo?au.emit("unhandledRejection",r,n):hu(lu,n,r);})),t.rejection=zo||gu(t)?2:1,e.error))throw e.value}));},gu=function(t){return 1!==t.rejection&&!t.parent},mu=function(t){g(Xi,d,(function(){var e=t.facade;zo?au.emit("rejectionHandled",e):hu("rejectionhandled",e,t.value);}));},bu=function(t,e,n){return function(r){t(e,r,n);}},wu=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,vu(t,!0));},Su=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new iu("Promise can't be resolved itself");var r=du(e);r?ki((function(){var n={done:!1};try{g(r,e,bu(Su,n,t),bu(wu,n,t));}catch(e){wu(n,e,t);}})):(t.value=e,t.state=1,vu(t,!1));}catch(e){wu({done:!1},e,t);}}};if(Ji&&(ou=(ru=function(t){Ko(this,ou),rt(t),g(Li,this);var e=tu(this);try{t(bu(Su,e),bu(wu,e));}catch(t){wu(e,t);}}).prototype,(Li=function(t){eu(this,{type:Yi,done:!1,notified:!1,parent:!1,reactions:new Oi,rejection:!1,state:0,value:null});}).prototype=le(ou,"then",(function(t,e){var n=tu(this),r=cu(Jo(this,ru));return n.parent=!0,r.ok=!L(t)||t,r.fail=L(e)&&e,r.domain=zo?au.domain:void 0,0===n.state?n.reactions.add(r):ki((function(){pu(r,n);})),r.promise})),zi=function(){var t=new Li,e=tu(t);this.promise=t,this.resolve=bu(Su,e),this.reject=bu(wu,e);},Ki.f=cu=function(t){return t===ru||undefined===t?new zi(t):su(t)},L(Vi)&&nu!==Object.prototype)){Fi=nu.then,Zi||le(nu,"then",(function(t,e){var n=this;return new ru((function(t,e){g(Fi,n,t,e);})).then(t,e)}),{unsafe:!0});try{delete nu.constructor;}catch(t){}Bo&&Bo(nu,ou);}Be({global:!0,constructor:!0,wrap:!0,forced:Ji},{Promise:ru}),Wo(ru,Yi,!1),_i=F(Yi),v&&_i&&!_i[Go]&&Nn(_i,Go,{configurable:!0,get:function(){return this}});var Eu={},Ou=St("iterator"),xu=Array.prototype,Iu=St("iterator"),ju=function(t){if(!R(t))return ot(t,Iu)||ot(t,"@@iterator")||Eu[Qe(t)]},Tu=TypeError,Pu=function(t,e,n){var r,o;Dt(t);try{if(!(r=ot(t,"return"))){if("throw"===e)throw n;return n}r=g(r,t);}catch(t){o=!0,r=t;}if("throw"===e)throw n;if(o)throw r;return Dt(r),n},Mu=TypeError,Au=function(t,e){this.stopped=t,this.result=e;},Nu=Au.prototype,Ru=function(t,e,n){var r,o,i,u,a,c,s,f,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),y=_n(e,l),m=function(t){return r&&Pu(r,"normal",t),new Au(!0,t)},b=function(t){return d?(Dt(t),h?y(t[0],t[1],m):y(t[0],t[1])):h?y(t,m):y(t)};if(p)r=t.iterator;else if(v)r=t;else {if(!(o=ju(t)))throw new Mu(et(t)+" is not iterable");if(void 0!==(f=o)&&(Eu.Array===f||xu[Ou]===f)){for(i=0,u=Se(t);u>i;i++)if((a=b(t[i]))&&_(Nu,a))return a;return new Au(!1)}r=function(t,e){var n=arguments.length<2?ju(t):e;if(rt(n))return Dt(g(n,t));throw new Tu(et(t)+" is not iterable")}(t,o);}for(c=p?t.next:r.next;!(s=g(c,r)).done;){try{a=b(s.value);}catch(t){Pu(r,"throw",t);}if("object"==typeof a&&a&&_(Nu,a))return a}return new Au(!1)},Cu=St("iterator"),ku=!1;try{var Du=0,Vu={next:function(){return {done:!!Du++}},return:function(){ku=!0;}};Vu[Cu]=function(){return this},Array.from(Vu,(function(){throw 2}));}catch(t){}var Lu=function(t,e){try{if(!e&&!ku)return !1}catch(t){return !1}var n=!1;try{var r={};r[Cu]=function(){return {next:function(){return {done:n=!0}}}},t(r);}catch(t){}return n},zu=Wi.CONSTRUCTOR||!Lu((function(t){Vi.all(t).then(void 0,(function(){}));}));Be({target:"Promise",stat:!0,forced:zu},{all:function(t){var e=this,n=Ki.f(e),r=n.resolve,o=n.reject,i=Di((function(){var n=rt(e.resolve),i=[],u=0,a=1;Ru(t,(function(t){var c=u++,s=!1;a++,g(n,e,t).then((function(t){s||(s=!0,i[c]=t,--a||r(i));}),o);})),--a||r(i);}));return i.error&&o(i.value),n.promise}});var Fu=Wi.CONSTRUCTOR,_u=Vi&&Vi.prototype;if(Be({target:"Promise",proto:!0,forced:Fu,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(Vi)){var $u=F("Promise").prototype.catch;_u.catch!==$u&&le(_u,"catch",$u,{unsafe:!0});}Be({target:"Promise",stat:!0,forced:zu},{race:function(t){var e=this,n=Ki.f(e),r=n.reject,o=Di((function(){var o=rt(e.resolve);Ru(t,(function(t){g(o,e,t).then(n.resolve,r);}));}));return o.error&&r(o.value),n.promise}}),Be({target:"Promise",stat:!0,forced:Wi.CONSTRUCTOR},{reject:function(t){var e=Ki.f(this);return (0, e.reject)(t),e.promise}});var Bu=Wi.CONSTRUCTOR;function Uu(e,r,o,i,u){return void 0===o&&(o=""),void 0===i&&(i=""),void 0===u&&(u=""),kr(this,void 0,void 0,(function(){var a,c,s,f,l,d,p;return Dr(this,(function(v){switch(v.label){case 0:return r?(e.restoreSelection(),a=e.getMenuConfig("insertVideo"),c=a.onInsertedVideo,s=a.checkVideo,f=a.parseVideoSrc,[4,s(r,o)]):[2];case 1:return "string"==typeof(l=v.sent())?(e.alert(l,"error"),[2]):null==l?[2]:[4,f(r)];case 2:return 0!==(d=v.sent()).trim().indexOf("<iframe ")&&(d=d.replace(/</g,"&lt;").replace(/>/g,"&gt;")),p={type:"video",src:d,poster:o,children:[{text:""}],style:{width:i,height:u}},Promise.resolve().then((function(){t.DomEditor.isSelectedEmptyParagraph(e)&&n.Transforms.removeNodes(e,{mode:"highest"}),n.Transforms.insertNodes(e,p,{mode:"highest"});})),c(p),[2]}}))}))}function Hu(){return jo("w-e-insert-video")}F("Promise"),Be({target:"Promise",stat:!0,forced:Bu},{resolve:function(t){return function(t,e){if(Dt(t),z(e)&&e.constructor===t)return e;var n=Ki.f(t);return (0, n.resolve)(e),n.promise}(this,t)}});var Wu=function(){function e(){this.title=t.t("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=Hu(),this.posterInputId=Hu(),this.buttonId=Hu();}return e.prototype.getValue=function(t){return ""},e.prototype.isActive=function(t){return !1},e.prototype.exec=function(t,e){},e.prototype.isDisabled=function(e){var r=e.selection;return null==r||(!n.Range.isCollapsed(r)||!!t.DomEditor.getSelectedElems(e).some((function(n){var r=t.DomEditor.getNodeType(n);return "pre"===r||("list-item"===r||!!e.isVoid(n))})))},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,c=Lr(t.genModalInputElems(t.t("videoModule.videoSrc"),o,t.t("videoModule.videoSrcPlaceHolder")),2),s=c[0],f=c[1],l=Lr(t.genModalInputElems(t.t("videoModule.videoPoster"),i,t.t("videoModule.videoPosterPlaceHolder")),2),d=l[0],p=l[1],v=u.default(f),h=u.default(p),y=Lr(t.genModalButtonElems(a,t.t("videoModule.ok")),1)[0];if(null==this.$content){var g=u.default("<div></div>");g.on("click","#".concat(a),(function(t){return kr(n,void 0,void 0,(function(){var n,r;return Dr(this,(function(u){switch(u.label){case 0:return t.preventDefault(),n=g.find("#".concat(o)).val().trim(),r=g.find("#".concat(i)).val().trim(),[4,Uu(e,n,r)];case 1:return u.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g;}var m=this.$content;return m.empty(),m.append(s),m.append(d),m.append(y),v.val(""),h.val(""),setTimeout((function(){v.focus();})),m[0]},e}(),Gu=I([].join),qu=N!==Object||!So("join",",");Be({target:"Array",proto:!0,forced:qu},{join:function(t){return Gu(D(this),void 0===t?",":t)}});var Ku,Xu,Yu,Ju=!p((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Qu=ne("IE_PROTO"),Zu=Object,ta=Zu.prototype,ea=Ju?Zu.getPrototypeOf:function(t){var e=lt(t);if(pt(e,Qu))return e[Qu];var n=e.constructor;return L(n)&&e instanceof n?n.prototype:e instanceof Zu?ta:null},na=St("iterator"),ra=!1;[].keys&&("next"in(Yu=[].keys())?(Xu=ea(ea(Yu)))!==Object.prototype&&(Ku=Xu):ra=!0);var oa=!z(Ku)||p((function(){var t={};return Ku[na].call(t)!==t}));oa&&(Ku={}),L(Ku[na])||le(Ku,na,(function(){return this}));var ia={IteratorPrototype:Ku,BUGGY_SAFARI_ITERATORS:ra},ua=ia.IteratorPrototype,aa=function(){return this},ca=qt.PROPER,sa=qt.CONFIGURABLE,fa=ia.IteratorPrototype,la=ia.BUGGY_SAFARI_ITERATORS,da=St("iterator"),pa="keys",va="values",ha="entries",ya=function(){return this},ga=function(t,e,n,r,o,i,u){!function(t,e,n,r){var o=e+" Iterator";t.prototype=er(ua,{next:S(+!r,n)}),Wo(t,o,!1),Eu[o]=aa;}(n,e,r);var a,c,s,f=function(t){if(t===o&&h)return h;if(!la&&t&&t in p)return p[t];switch(t){case pa:case va:case ha:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,p=t.prototype,v=p[da]||p["@@iterator"]||o&&p[o],h=!la&&v||f(o),y="Array"===e&&p.entries||v;if(y&&(a=ea(y.call(new t)))!==Object.prototype&&a.next&&(ea(a)!==fa&&(Bo?Bo(a,fa):L(a[da])||le(a,da,ya)),Wo(a,l,!0)),ca&&o===va&&v&&v.name!==va&&(sa?Ut(p,"name",va):(d=!0,h=function(){return g(v,this)})),o)if(c={values:f(va),keys:i?h:f(pa),entries:f(ha)},u)for(s in c)(la||d||!(s in p))&&le(p,s,c[s]);else Be({target:e,proto:!0,forced:la||d},c);return p[da]!==h&&le(p,da,h,{name:o}),Eu[e]=h,c},ma=function(t,e){return {value:t,done:e}},ba=Bt.f,wa="Array Iterator",Sa=se.set,Ea=se.getterFor(wa),Oa=ga(Array,"Array",(function(t,e){Sa(this,{type:wa,target:D(t),index:0,kind:e});}),(function(){var t=Ea(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,ma(void 0,!0);switch(t.kind){case"keys":return ma(n,!1);case"values":return ma(e[n],!1)}return ma([n,e[n]],!1)}),"values"),xa=Eu.Arguments=Eu.Array;if(ir("keys"),ir("values"),ir("entries"),v&&"values"!==xa.name)try{ba(xa,"name",{value:"values"});}catch(t){}var Ia=dn("slice"),ja=St("species"),Ta=Array,Pa=Math.max;Be({target:"Array",proto:!0,forced:!Ia},{slice:function(t,e){var n,r,o,i=D(this),u=Se(i),a=me(t,u),c=me(void 0===e?u:e,u);if(Ue(i)&&(n=i.constructor,(an(n)&&(n===Ta||Ue(n.prototype))||z(n)&&null===(n=n[ja]))&&(n=void 0),n===Ta||void 0===n))return Qo(i,a,c);for(r=new(void 0===n?Ta:n)(Pa(c-a,0)),o=0;a<c;a++,o++)a in i&&Ge(r,o,i[a]);return r.length=o,r}});var Ma=Xr.charAt,Aa="String Iterator",Na=se.set,Ra=se.getterFor(Aa);ga(String,"String",(function(t){Na(this,{type:Aa,string:bn(t),index:0});}),(function(){var t,e=Ra(this),n=e.string,r=e.index;return r>=n.length?ma(void 0,!0):(t=Ma(n,r),e.index+=t.length,ma(t,!1))}));var Ca=!p((function(){return Object.isExtensible(Object.preventExtensions({}))})),ka=function(t,e,n){for(var r in e)le(t,r,e[r],n);return t},Da=Me.f,Va="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],La={f:function(t){return Va&&"Window"===P(t)?function(t){try{return Da(t)}catch(t){return Qo(Va)}}(t):Da(D(t))}},za=p((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8});}})),Fa=Object.isExtensible,_a=p((function(){Fa(1);}))||za?function(t){return !!z(t)&&((!za||"ArrayBuffer"!==P(t))&&(!Fa||Fa(t)))}:Fa,$a=c((function(t){var e=Bt.f,n=!1,r=gt("meta"),o=0,i=function(t){e(t,r,{value:{objectID:"O"+o++,weakData:{}}});},u=t.exports={enable:function(){u.enable=function(){},n=!0;var t=Me.f,e=I([].splice),o={};o[r]=1,t(o).length&&(Me.f=function(n){for(var o=t(n),i=0,u=o.length;i<u;i++)if(o[i]===r){e(o,i,1);break}return o},Be({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:La.f}));},fastKey:function(t,e){if(!z(t))return "symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!pt(t,r)){if(!_a(t))return "F";if(!e)return "E";i(t);}return t[r].objectID},getWeakData:function(t,e){if(!pt(t,r)){if(!_a(t))return !0;if(!e)return !1;i(t);}return t[r].weakData},onFreeze:function(t){return Ca&&n&&_a(t)&&!pt(t,r)&&i(t),t}};re[r]=!0;})),Ba=$a.getWeakData,Ua=se.set,Ha=se.getterFor,Wa=Un.find,Ga=Un.findIndex,qa=I([].splice),Ka=0,Xa=function(t){return t.frozen||(t.frozen=new Ya)},Ya=function(){this.entries=[];},Ja=function(t,e){return Wa(t.entries,(function(t){return t[0]===e}))};Ya.prototype={get:function(t){var e=Ja(this,t);if(e)return e[1]},has:function(t){return !!Ja(this,t)},set:function(t,e){var n=Ja(this,t);n?n[1]=e:this.entries.push([t,e]);},delete:function(t){var e=Ga(this.entries,(function(e){return e[0]===t}));return ~e&&qa(this.entries,e,1),!!~e}};var Qa,Za={getConstructor:function(t,e,n,r){var o=t((function(t,o){Ko(t,i),Ua(t,{type:e,id:Ka++,frozen:null}),R(o)||Ru(o,t[r],{that:t,AS_ENTRIES:n});})),i=o.prototype,u=Ha(e),a=function(t,e,n){var r=u(t),o=Ba(Dt(e),!0);return !0===o?Xa(r).set(e,n):o[r.id]=n,t};return ka(i,{delete:function(t){var e=u(this);if(!z(t))return !1;var n=Ba(t);return !0===n?Xa(e).delete(t):n&&pt(n,e.id)&&delete n[e.id]},has:function(t){var e=u(this);if(!z(t))return !1;var n=Ba(t);return !0===n?Xa(e).has(t):n&&pt(n,e.id)}}),ka(i,n?{get:function(t){var e=u(this);if(z(t)){var n=Ba(t);if(!0===n)return Xa(e).get(t);if(n)return n[e.id]}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},tc=se.enforce,ec=Object,nc=Array.isArray,rc=ec.isExtensible,oc=ec.isFrozen,ic=ec.isSealed,uc=ec.freeze,ac=ec.seal,cc=!d.ActiveXObject&&"ActiveXObject"in d,sc=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},fc=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",u=d[t],a=u&&u.prototype,c=u,s={},f=function(t){var e=I(a[t]);le(a,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return !(o&&!z(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!z(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return !(o&&!z(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this});};if(_e(t,!L(u)||!(o||a.forEach&&!p((function(){(new u).entries().next();})))))c=n.getConstructor(e,t,r,i),$a.enable();else if(_e(t,!0)){var l=new c,v=l[i](o?{}:-0,1)!==l,h=p((function(){l.has(1);})),y=Lu((function(t){new u(t);})),g=!o&&p((function(){for(var t=new u,e=5;e--;)t[i](e,e);return !t.has(-0)}));y||((c=e((function(t,e){Ko(t,a);var n=function(t,e,n){var r,o;return Bo&&L(r=e.constructor)&&r!==n&&z(o=r.prototype)&&o!==n.prototype&&Bo(t,o),t}(new u,t,c);return R(e)||Ru(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=c),(h||g)&&(f("delete"),f("has"),r&&f("get")),(g||v)&&f(i),o&&a.clear&&delete a.clear;}return s[t]=c,Be({global:!0,constructor:!0,forced:c!==u},s),Wo(c,t),o||n.setStrong(c,t,r),c}("WeakMap",sc,Za),lc=fc.prototype,dc=I(lc.set);if(te)if(cc){Qa=Za.getConstructor(sc,"WeakMap",!0),$a.enable();var pc=I(lc.delete),vc=I(lc.has),hc=I(lc.get);ka(lc,{delete:function(t){if(z(t)&&!rc(t)){var e=tc(this);return e.frozen||(e.frozen=new Qa),pc(this,t)||e.frozen.delete(t)}return pc(this,t)},has:function(t){if(z(t)&&!rc(t)){var e=tc(this);return e.frozen||(e.frozen=new Qa),vc(this,t)||e.frozen.has(t)}return vc(this,t)},get:function(t){if(z(t)&&!rc(t)){var e=tc(this);return e.frozen||(e.frozen=new Qa),vc(this,t)?hc(this,t):e.frozen.get(t)}return hc(this,t)},set:function(t,e){if(z(t)&&!rc(t)){var n=tc(this);n.frozen||(n.frozen=new Qa),vc(this,t)?dc(this,t,e):n.frozen.set(t,e);}else dc(this,t,e);return this}});}else Ca&&p((function(){var t=uc([]);return dc(new fc,t,1),!oc(t)}))&&ka(lc,{set:function(t,e){var n;return nc(t)&&(oc(t)?n=uc:ic(t)&&(n=ac)),dc(this,t,e),n&&n(t),this}});var yc=St("iterator"),gc=Oa.values,mc=function(t,e){if(t){if(t[yc]!==gc)try{Ut(t,yc,gc);}catch(e){t[yc]=gc;}if(Wo(t,e,!0),go[e])for(var n in Oa)if(t[n]!==Oa[n])try{Ut(t,n,Oa[n]);}catch(e){t[n]=Oa[n];}}};for(var bc in go)mc(d[bc]&&d[bc].prototype,bc);function wc(t){return t.getMenuConfig("uploadVideo")}mc(wo,"DOMTokenList");var Sc=new WeakMap;function Ec(e,n){return kr(this,void 0,void 0,(function(){var r,o,i,u;return Dr(this,(function(a){switch(a.label){case 0:return r=function(e){var n=Sc.get(e);if(null!=n)return n;var r=wc(e),o=r.onSuccess,i=r.onProgress,u=r.onFailed,a=r.customInsert,c=r.onError;return n=t.createUploader(Cr(Cr({},r),{onProgress:function(t){e.showProgressBar(t),i&&i(t);},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return Uu(e,t,n)})),void o(t,n);var r=n.errno,i=void 0===r?1:r,c=n.data,s=void 0===c?{}:c;if(0===i){var f=s.url,l=void 0===f?"":f,d=s.poster;Uu(e,l,void 0===d?"":d),o(t,n);}else u(t,n);},onError:function(t,e,n){c(t,e,n);}})),Sc.set(e,n),n}(e),o=n.name,i=n.type,u=n.size,r.addFile({name:o,type:i,size:u,data:n}),[4,r.upload()];case 1:return a.sent(),[2]}}))}))}var Oc=function(){function e(){this.title=t.t("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button";}return e.prototype.getValue=function(t){return ""},e.prototype.isActive=function(t){return !1},e.prototype.exec=function(t,e){var n=this.getMenuConfig(t),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(e,n){return Uu(t,e,n)}));else {var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var c=u.default("body"),s=u.default('<input type="file" '.concat(a," multiple/>"));s.hide(),c.append(s),s.click(),s.on("change",(function(){var e=s[0].files;!function(t,e){var n,r,o,i;kr(this,void 0,void 0,(function(){var u,a,c,s,f,l,d;return Dr(this,(function(p){switch(p.label){case 0:if(null==e)return [2];u=Array.prototype.slice.call(e),a=wc(t).customUpload,p.label=1;case 1:p.trys.push([1,12,13,18]),c=!0,s=zr(u),p.label=2;case 2:return [4,s.next()];case 3:if(f=p.sent(),n=f.done)return [3,11];i=f.value,c=!1,p.label=4;case 4:return p.trys.push([4,,9,10]),l=i,a?[4,a(l,(function(e,n){return Uu(t,e,n)}))]:[3,6];case 5:return p.sent(),[3,8];case 6:return [4,Ec(t,l)];case 7:p.sent(),p.label=8;case 8:return [3,10];case 9:return c=!0,[7];case 10:return [3,2];case 11:return [3,18];case 12:return d=p.sent(),r={error:d},[3,18];case 13:return p.trys.push([13,,16,17]),c||n||!(o=s.return)?[3,15]:[4,o.call(s)];case 14:p.sent(),p.label=15;case 15:return [3,17];case 16:if(r)throw r.error;return [7];case 17:return [7];case 18:return [2]}}))}));}(t,e);}));}},e.prototype.isDisabled=function(e){var r=e.selection;return null==r||(!n.Range.isCollapsed(r)||!!t.DomEditor.getSelectedElems(e).some((function(n){var r=t.DomEditor.getNodeType(n);return "pre"===r||("list-item"===r||!!e.isVoid(n))})))},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),xc={key:"insertVideo",factory:function(){return new Wu},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return !0},parseVideoSrc:function(t){return t}}},Ic={key:"uploadVideo",factory:function(){return new Oc},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'".concat(t.name,"' upload failed"),e);},onError:function(t,e,n){console.error("'".concat(t.name," upload error"),e,n);}}},jc={key:"editVideoSize",factory:function(){return new Mo}},Tc={key:"editVideoSrc",factory:function(){return new Do}};function Pc(t,e,n,r,o){return void 0===e&&(e=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),{type:"video",src:t,poster:e,width:n,height:r,style:o,children:[{text:""}]}}var Mc={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=u.default(t),o="",i="",a="auto",c="auto",s={},f=r.find("iframe");if(f.length>0)return a=f.attr("width")||"auto",c=f.attr("height")||"auto",s=To(s=f.attr("style")||""),Pc(o=f[0].outerHTML,i,a,c,s);var l=r.find("video");return (o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",c=l.attr("height")||"auto",Pc(o,i=l.attr("poster")||"",a,c,s=To(s=l.attr("style")||""))}};var Ac=Oe.includes,Nc=p((function(){return !Array(1).includes()}));Be({target:"Array",proto:!0,forced:Nc},{includes:function(t){return Ac(this,t,arguments.length>1?arguments[1]:void 0)}}),ir("includes");var Rc={renderElems:[{type:"video",renderElem:function(e,n,r){var i,u=e,a=u.src,c=void 0===a?"":a,s=u.poster,f=void 0===s?"":s,l=u.key,d=void 0===l?"":l,p=u.width,v=void 0===p?"auto":p,h=u.height,y=void 0===h?"auto":h,g=u.style,m=void 0===g?{}:g,b=u.textAlign,w=void 0===b?"center":b,S=t.DomEditor.isNodeSelected(r,e);if(0===c.trim().indexOf("<iframe ")){var E=Mn(c,v,y,m);i=o.jsx("div",{className:"w-e-textarea-video-container","data-selected":S?"true":"",style:{textAlign:w},innerHTML:E});}else {var O=o.jsx("video",{key:d,poster:f,controls:!0,style:m},o.jsx("source",{src:c,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==v&&(O.data.width=v),"auto"!==y&&(O.data.height=y),i=o.jsx("div",{className:"w-e-textarea-video-container","data-selected":S?"true":"",style:{textAlign:w}},O);}return o.h("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},i)}}],elemsToHtml:[An],preParseHtml:[{selector:"iframe,video,p",preParseHtml:function(t){var e=u.default(t),n=e;if("p"===Pn(e)){var r=e.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=u.default(o));}}var a=Pn(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var c=u.default('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return c.append(n),c[0]}}],parseElemsHtml:[Mc],menus:[xc,Ic,jc,Tc],editorPlugin:function(e){var r=e.isVoid,o=e.normalizeNode,i=e;return i.isVoid=function(t){return "video"===t.type||r(t)},i.normalizeNode=function(e){var r=Lr(e,2),u=r[0],a=r[1];"video"===t.DomEditor.getNodeType(u)&&(t.DomEditor.isLastNode(i,u)&&n.Transforms.insertNodes(i,t.DomEditor.genEmptyParagraph(),{at:[a[0]+1]}));return o([u,a])},i}};return Rc}));
21698
21698
 
21699
21699
  });
21700
21700
 
21701
21701
  var dist$1 = createCommonjsModule$1(function (module, exports) {
21702
- !function(t,e){module.exports=e(dist$6,dist$5,require$$1);}(commonjsGlobal,(function(t,e,n){function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=r(n);t.i18nAddResources("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),t.i18nAddResources("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function u(t){var e={exports:{}};return t(e,e.exports),e.exports}var a,c,f=function(t){return t&&t.Math===Math&&t},s=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof i&&i)||f("object"==typeof i&&i)||function(){return this}()||Function("return this")(),l=function(t){try{return !!t()}catch(t){return !0}},p=!l((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),d=!l((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),v=Function.prototype.call,h=d?v.bind(v):function(){return v.apply(v,arguments)},y={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,m={f:g&&!y.call({1:2},1)?function(t){var e=g(this,t);return !!e&&e.enumerable}:y},b=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},w=Function.prototype,S=w.call,O=d&&w.bind.bind(S,S),E=d?O:function(t){return function(){return S.apply(t,arguments)}},j=E({}.toString),x=E("".slice),I=function(t){return x(j(t),8,-1)},T=Object,P=E("".split),R=l((function(){return !T("z").propertyIsEnumerable(0)}))?function(t){return "String"===I(t)?P(t,""):T(t)}:T,A=function(t){return null==t},C=TypeError,N=function(t){if(A(t))throw new C("Can't call method on "+t);return t},k=function(t){return R(N(t))},M="object"==typeof document&&document.all,L=void 0===M&&void 0!==M?function(t){return "function"==typeof t||t===M}:function(t){return "function"==typeof t},D=function(t){return "object"==typeof t?null!==t:L(t)},F=function(t,e){return arguments.length<2?(n=s[t],L(n)?n:void 0):s[t]&&s[t][e];var n;},z=E({}.isPrototypeOf),_=s.navigator,U=_&&_.userAgent,B=U?String(U):"",G=s.process,W=s.Deno,V=G&&G.versions||W&&W.version,H=V&&V.v8;H&&(c=(a=H.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!c&&B&&(!(a=B.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=B.match(/Chrome\/(\d+)/))&&(c=+a[1]);var q=c,K=s.String,X=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol("symbol detection");return !K(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q&&q<41})),Y=X&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$=Object,J=Y?function(t){return "symbol"==typeof t}:function(t){var e=F("Symbol");return L(e)&&z(e.prototype,$(t))},Q=String,Z=function(t){try{return Q(t)}catch(t){return "Object"}},tt=TypeError,et=function(t){if(L(t))return t;throw new tt(Z(t)+" is not a function")},nt=function(t,e){var n=t[e];return A(n)?void 0:et(n)},rt=TypeError,ot=Object.defineProperty,it=function(t,e){try{ot(s,t,{value:e,configurable:!0,writable:!0});}catch(n){s[t]=e;}return e},ut=u((function(t){var e="__core-js_shared__",n=t.exports=s[e]||it(e,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),at=function(t,e){return ut[t]||(ut[t]=e||{})},ct=Object,ft=function(t){return ct(N(t))},st=E({}.hasOwnProperty),lt=Object.hasOwn||function(t,e){return st(ft(t),e)},pt=0,dt=Math.random(),vt=E(1..toString),ht=function(t){return "Symbol("+(void 0===t?"":t)+")_"+vt(++pt+dt,36)},yt=s.Symbol,gt=at("wks"),mt=Y?yt.for||yt:yt&&yt.withoutSetter||ht,bt=function(t){return lt(gt,t)||(gt[t]=X&&lt(yt,t)?yt[t]:mt("Symbol."+t)),gt[t]},wt=TypeError,St=bt("toPrimitive"),Ot=function(t,e){if(!D(t)||J(t))return t;var n,r=nt(t,St);if(r){if(void 0===e&&(e="default"),n=h(r,t,e),!D(n)||J(n))return n;throw new wt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&L(n=t.toString)&&!D(r=h(n,t)))return r;if(L(n=t.valueOf)&&!D(r=h(n,t)))return r;if("string"!==e&&L(n=t.toString)&&!D(r=h(n,t)))return r;throw new rt("Can't convert object to primitive value")}(t,e)},Et=function(t){var e=Ot(t,"string");return J(e)?e:e+""},jt=s.document,xt=D(jt)&&D(jt.createElement),It=function(t){return xt?jt.createElement(t):{}},Tt=!p&&!l((function(){return 7!==Object.defineProperty(It("div"),"a",{get:function(){return 7}}).a})),Pt=Object.getOwnPropertyDescriptor,Rt={f:p?Pt:function(t,e){if(t=k(t),e=Et(e),Tt)try{return Pt(t,e)}catch(t){}if(lt(t,e))return b(!h(m.f,t,e),t[e])}},At=p&&l((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,Nt=TypeError,kt=function(t){if(D(t))return t;throw new Nt(Ct(t)+" is not an object")},Mt=TypeError,Lt=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor,Ft="enumerable",zt="configurable",_t="writable",Ut={f:p?At?function(t,e,n){if(kt(t),e=Et(e),kt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&_t in n&&!n[_t]){var r=Dt(t,e);r&&r[_t]&&(t[e]=n.value,n={configurable:zt in n?n[zt]:r[zt],enumerable:Ft in n?n[Ft]:r[Ft],writable:!1});}return Lt(t,e,n)}:Lt:function(t,e,n){if(kt(t),e=Et(e),kt(n),Tt)try{return Lt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Mt("Accessors not supported");return "value"in n&&(t[e]=n.value),t}},Bt=p?function(t,e,n){return Ut.f(t,e,b(1,n))}:function(t,e,n){return t[e]=n,t},Gt=Function.prototype,Wt=p&&Object.getOwnPropertyDescriptor,Vt=lt(Gt,"name"),Ht={EXISTS:Vt,PROPER:Vt&&"something"===function(){}.name,CONFIGURABLE:Vt&&(!p||p&&Wt(Gt,"name").configurable)},qt=E(Function.toString);L(ut.inspectSource)||(ut.inspectSource=function(t){return qt(t)});var Kt,Xt,Yt,$t=ut.inspectSource,Jt=s.WeakMap,Qt=L(Jt)&&/native code/.test(String(Jt)),Zt=at("keys"),te=function(t){return Zt[t]||(Zt[t]=ht(t))},ee={},ne="Object already initialized",re=s.TypeError,oe=s.WeakMap;if(Qt||ut.state){var ie=ut.state||(ut.state=new oe);ie.get=ie.get,ie.has=ie.has,ie.set=ie.set,Kt=function(t,e){if(ie.has(t))throw new re(ne);return e.facade=t,ie.set(t,e),e},Xt=function(t){return ie.get(t)||{}},Yt=function(t){return ie.has(t)};}else {var ue=te("state");ee[ue]=!0,Kt=function(t,e){if(lt(t,ue))throw new re(ne);return e.facade=t,Bt(t,ue,e),e},Xt=function(t){return lt(t,ue)?t[ue]:{}},Yt=function(t){return lt(t,ue)};}var ae={set:Kt,get:Xt,has:Yt,enforce:function(t){return Yt(t)?Xt(t):Kt(t,{})},getterFor:function(t){return function(e){var n;if(!D(e)||(n=Xt(e)).type!==t)throw new re("Incompatible receiver, "+t+" required");return n}}},ce=u((function(t){var e=Ht.CONFIGURABLE,n=ae.enforce,r=ae.get,o=String,i=Object.defineProperty,u=E("".slice),a=E("".replace),c=E([].join),f=p&&!l((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),d=t.exports=function(t,r,l){"Symbol("===u(o(r),0,7)&&(r="["+a(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),l&&l.getter&&(r="get "+r),l&&l.setter&&(r="set "+r),(!lt(t,"name")||e&&t.name!==r)&&(p?i(t,"name",{value:r,configurable:!0}):t.name=r),f&&l&&lt(l,"arity")&&t.length!==l.arity&&i(t,"length",{value:l.arity});try{l&&lt(l,"constructor")&&l.constructor?p&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var d=n(t);return lt(d,"source")||(d.source=c(s,"string"==typeof r?r:"")),t};Function.prototype.toString=d((function(){return L(this)&&r(this).source||$t(this)}),"toString");})),fe=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(L(n)&&ce(n,i,r),r.global)o?t[e]=n:it(e,n);else {try{r.unsafe?t[e]&&(o=!0):delete t[e];}catch(t){}o?t[e]=n:Ut.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable});}return t},se=Math.ceil,le=Math.floor,pe=Math.trunc||function(t){var e=+t;return (e>0?le:se)(e)},de=function(t){var e=+t;return e!=e||0===e?0:pe(e)},ve=Math.max,he=Math.min,ye=function(t,e){var n=de(t);return n<0?ve(n+e,0):he(n,e)},ge=Math.min,me=function(t){return e=t.length,(n=de(e))>0?ge(n,9007199254740991):0;var e,n;},be=function(t){return function(e,n,r){var o=k(e),i=me(o);if(0===i)return !t&&-1;var u,a=ye(r,i);if(t&&n!=n){for(;i>a;)if((u=o[a++])!=u)return !0}else for(;i>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return !t&&-1}},we={includes:be(!0),indexOf:be(!1)}.indexOf,Se=E([].push),Oe=function(t,e){var n,r=k(t),o=0,i=[];for(n in r)!lt(ee,n)&&lt(r,n)&&Se(i,n);for(;e.length>o;)lt(r,n=e[o++])&&(~we(i,n)||Se(i,n));return i},Ee=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],je=Ee.concat("length","prototype"),xe={f:Object.getOwnPropertyNames||function(t){return Oe(t,je)}},Ie={f:Object.getOwnPropertySymbols},Te=E([].concat),Pe=F("Reflect","ownKeys")||function(t){var e=xe.f(kt(t)),n=Ie.f;return n?Te(e,n(t)):e},Re=function(t,e,n){for(var r=Pe(e),o=Ut.f,i=Rt.f,u=0;u<r.length;u++){var a=r[u];lt(t,a)||n&&lt(n,a)||o(t,a,i(e,a));}},Ae=/#|\.prototype\./,Ce=function(t,e){var n=ke[Ne(t)];return n===Le||n!==Me&&(L(e)?l(e):!!e)},Ne=Ce.normalize=function(t){return String(t).replace(Ae,".").toLowerCase()},ke=Ce.data={},Me=Ce.NATIVE="N",Le=Ce.POLYFILL="P",De=Ce,Fe=Rt.f,ze=function(t,e){var n,r,o,i,u,a=t.target,c=t.global,f=t.stat;if(n=c?s:f?s[a]||it(a,{}):s[a]&&s[a].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(u=Fe(n,r))&&u.value:n[r],!De(c?r:a+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Re(i,o);}(t.sham||o&&o.sham)&&Bt(i,"sham",!0),fe(n,r,i,t);}},_e=Array.isArray||function(t){return "Array"===I(t)},Ue={};Ue[bt("toStringTag")]="z";var Be="[object z]"===String(Ue),Ge=bt("toStringTag"),We=Object,Ve="Arguments"===I(function(){return arguments}()),He=Be?I:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=We(t),Ge))?n:Ve?I(e):"Object"===(r=I(e))&&L(e.callee)?"Arguments":r},qe=function(){},Ke=F("Reflect","construct"),Xe=/^\s*(?:class|function)\b/,Ye=E(Xe.exec),$e=!Xe.test(qe),Je=function(t){if(!L(t))return !1;try{return Ke(qe,[],t),!0}catch(t){return !1}},Qe=function(t){if(!L(t))return !1;switch(He(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return $e||!!Ye(Xe,$t(t))}catch(t){return !0}};Qe.sham=!0;var Ze,tn=!Ke||l((function(){var t;return Je(Je.call)||!Je(Object)||!Je((function(){t=!0;}))||t}))?Qe:Je,en=bt("species"),nn=E([].slice),rn=(Ze="slice",q>=51||!l((function(){var t=[];return (t.constructor={})[en]=function(){return {foo:1}},1!==t[Ze](Boolean).foo}))),on=bt("species"),un=Array,an=Math.max;ze({target:"Array",proto:!0,forced:!rn},{slice:function(t,e){var n,r,o,i,u,a,c=k(this),f=me(c),s=ye(t,f),l=ye(void 0===e?f:e,f);if(_e(c)&&(n=c.constructor,(tn(n)&&(n===un||_e(n.prototype))||D(n)&&null===(n=n[on]))&&(n=void 0),n===un||void 0===n))return nn(c,s,l);for(r=new(void 0===n?un:n)(an(l-s,0)),o=0;s<l;s++,o++)s in c&&(i=r,u=o,a=c[s],p?Ut.f(i,u,b(0,a)):i[u]=a);return r.length=o,r}});var cn=Be?{}.toString:function(){return "[object "+He(this)+"]"};Be||fe(Object.prototype,"toString",cn,{unsafe:!0});var fn=function(){return fn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},fn.apply(this,arguments)};function sn(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{c(r.next(t));}catch(t){i(t);}}function a(t){try{c(r.throw(t));}catch(t){i(t);}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e);}))).then(u,a);}c((r=r.apply(t,e||[])).next());}))}function ln(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u);}catch(t){a=[6,t],r=0;}finally{n=o=0;}if(5&a[0])throw a[1];return {value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function pn(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function dn(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=pn(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n});}),e);})(r,o,(e=t[n](e)).done,e.value);}))};}}"function"==typeof SuppressedError&&SuppressedError;var vn,hn=Object.keys||function(t){return Oe(t,Ee)},yn=p&&!At?Object.defineProperties:function(t,e){kt(t);for(var n,r=k(e),o=hn(e),i=o.length,u=0;i>u;)Ut.f(t,n=o[u++],r[n]);return t},gn={f:yn},mn=F("document","documentElement"),bn="prototype",wn="script",Sn=te("IE_PROTO"),On=function(){},En=function(t){return "<"+wn+">"+t+"</"+wn+">"},jn=function(t){t.write(En("")),t.close();var e=t.parentWindow.Object;return t=null,e},xn=function(){try{vn=new ActiveXObject("htmlfile");}catch(t){}var t,e,n;xn="undefined"!=typeof document?document.domain&&vn?jn(vn):(e=It("iframe"),n="java"+wn+":",e.style.display="none",mn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(En("document.F=Object")),t.close(),t.F):jn(vn);for(var r=Ee.length;r--;)delete xn[bn][Ee[r]];return xn()};ee[Sn]=!0;var In=Object.create||function(t,e){var n;return null!==t?(On[bn]=kt(t),n=new On,On[bn]=null,n[Sn]=t):n=xn(),void 0===e?n:gn.f(n,e)},Tn=Ut.f,Pn=bt("unscopables"),Rn=Array.prototype;void 0===Rn[Pn]&&Tn(Rn,Pn,{configurable:!0,value:In(null)});var An,Cn,Nn,kn=function(t){Rn[Pn][t]=!0;},Mn={},Ln=!l((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Dn=te("IE_PROTO"),Fn=Object,zn=Fn.prototype,_n=Ln?Fn.getPrototypeOf:function(t){var e=ft(t);if(lt(e,Dn))return e[Dn];var n=e.constructor;return L(n)&&e instanceof n?n.prototype:e instanceof Fn?zn:null},Un=bt("iterator"),Bn=!1;[].keys&&("next"in(Nn=[].keys())?(Cn=_n(_n(Nn)))!==Object.prototype&&(An=Cn):Bn=!0);var Gn=!D(An)||l((function(){var t={};return An[Un].call(t)!==t}));Gn&&(An={}),L(An[Un])||fe(An,Un,(function(){return this}));var Wn={IteratorPrototype:An,BUGGY_SAFARI_ITERATORS:Bn},Vn=Ut.f,Hn=bt("toStringTag"),qn=function(t,e,n){t&&!n&&(t=t.prototype),t&&!lt(t,Hn)&&Vn(t,Hn,{configurable:!0,value:e});},Kn=Wn.IteratorPrototype,Xn=function(){return this},Yn=String,$n=TypeError,Jn=function(t){if(function(t){return D(t)||null===t}(t))return t;throw new $n("Can't set "+Yn(t)+" as a prototype")},Qn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return E(et(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array;}catch(t){}return function(n,r){return N(n),Jn(r),D(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0),Zn=Ht.PROPER,tr=Ht.CONFIGURABLE,er=Wn.IteratorPrototype,nr=Wn.BUGGY_SAFARI_ITERATORS,rr=bt("iterator"),or="keys",ir="values",ur="entries",ar=function(){return this},cr=function(t,e,n,r,o,i,u){!function(t,e,n,r){var o=e+" Iterator";t.prototype=In(Kn,{next:b(+!r,n)}),qn(t,o,!1),Mn[o]=Xn;}(n,e,r);var a,c,f,s=function(t){if(t===o&&y)return y;if(!nr&&t&&t in d)return d[t];switch(t){case or:case ir:case ur:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",p=!1,d=t.prototype,v=d[rr]||d["@@iterator"]||o&&d[o],y=!nr&&v||s(o),g="Array"===e&&d.entries||v;if(g&&(a=_n(g.call(new t)))!==Object.prototype&&a.next&&(_n(a)!==er&&(Qn?Qn(a,er):L(a[rr])||fe(a,rr,ar)),qn(a,l,!0)),Zn&&o===ir&&v&&v.name!==ir&&(tr?Bt(d,"name",ir):(p=!0,y=function(){return h(v,this)})),o)if(c={values:s(ir),keys:i?y:s(or),entries:s(ur)},u)for(f in c)(nr||p||!(f in d))&&fe(d,f,c[f]);else ze({target:e,proto:!0,forced:nr||p},c);return d[rr]!==y&&fe(d,rr,y,{name:o}),Mn[e]=y,c},fr=function(t,e){return {value:t,done:e}},sr=Ut.f,lr="Array Iterator",pr=ae.set,dr=ae.getterFor(lr),vr=cr(Array,"Array",(function(t,e){pr(this,{type:lr,target:k(t),index:0,kind:e});}),(function(){var t=dr(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,fr(void 0,!0);switch(t.kind){case"keys":return fr(n,!1);case"values":return fr(e[n],!1)}return fr([n,e[n]],!1)}),"values"),hr=Mn.Arguments=Mn.Array;if(kn("keys"),kn("values"),kn("entries"),p&&"values"!==hr.name)try{sr(hr,"name",{value:"values"});}catch(t){}var yr=function(t,e,n){return n.get&&ce(n.get,e,{getter:!0}),n.set&&ce(n.set,e,{setter:!0}),Ut.f(t,e,n)},gr=Ht.EXISTS,mr=Function.prototype,br=E(mr.toString),wr=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Sr=E(wr.exec);p&&!gr&&yr(mr,"name",{configurable:!0,get:function(){try{return Sr(wr,br(this))[1]}catch(t){return ""}}});var Or,Er,jr,xr,Ir=function(t){return B.slice(0,t.length)===t},Tr=Ir("Bun/")?"BUN":Ir("Cloudflare-Workers")?"CLOUDFLARE":Ir("Deno/")?"DENO":Ir("Node.js/")?"NODE":s.Bun&&"string"==typeof Bun.version?"BUN":s.Deno&&"object"==typeof Deno.version?"DENO":"process"===I(s.process)?"NODE":s.window&&s.document?"BROWSER":"REST",Pr="NODE"===Tr,Rr=bt("species"),Ar=TypeError,Cr=function(t,e){if(z(e,t))return t;throw new Ar("Incorrect invocation")},Nr=TypeError,kr=bt("species"),Mr=function(t,e){var n,r=kt(t).constructor;return void 0===r||A(n=kt(r)[kr])?e:function(t){if(tn(t))return t;throw new Nr(Z(t)+" is not a constructor")}(n)},Lr=Function.prototype,Dr=Lr.apply,Fr=Lr.call,zr="object"==typeof Reflect&&Reflect.apply||(d?Fr.bind(Dr):function(){return Fr.apply(Dr,arguments)}),_r=function(t){if("Function"===I(t))return E(t)},Ur=_r(_r.bind),Br=function(t,e){return et(t),void 0===e?t:d?Ur(t,e):function(){return t.apply(e,arguments)}},Gr=TypeError,Wr=/(?:ipad|iphone|ipod).*applewebkit/i.test(B),Vr=s.setImmediate,Hr=s.clearImmediate,qr=s.process,Kr=s.Dispatch,Xr=s.Function,Yr=s.MessageChannel,$r=s.String,Jr=0,Qr={},Zr="onreadystatechange";l((function(){Or=s.location;}));var to=function(t){if(lt(Qr,t)){var e=Qr[t];delete Qr[t],e();}},eo=function(t){return function(){to(t);}},no=function(t){to(t.data);},ro=function(t){s.postMessage($r(t),Or.protocol+"//"+Or.host);};Vr&&Hr||(Vr=function(t){!function(t,e){if(t<e)throw new Gr("Not enough arguments")}(arguments.length,1);var e=L(t)?t:Xr(t),n=nn(arguments,1);return Qr[++Jr]=function(){zr(e,void 0,n);},Er(Jr),Jr},Hr=function(t){delete Qr[t];},Pr?Er=function(t){qr.nextTick(eo(t));}:Kr&&Kr.now?Er=function(t){Kr.now(eo(t));}:Yr&&!Wr?(xr=(jr=new Yr).port2,jr.port1.onmessage=no,Er=Br(xr.postMessage,xr)):s.addEventListener&&L(s.postMessage)&&!s.importScripts&&Or&&"file:"!==Or.protocol&&!l(ro)?(Er=ro,s.addEventListener("message",no,!1)):Er=Zr in It("script")?function(t){mn.appendChild(It("script"))[Zr]=function(){mn.removeChild(this),to(t);};}:function(t){setTimeout(eo(t),0);});var oo={set:Vr,clear:Hr},io=Object.getOwnPropertyDescriptor,uo=function(){this.head=null,this.tail=null;};uo.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e;},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var ao,co,fo,so,lo,po=uo,vo=/ipad|iphone|ipod/i.test(B)&&"undefined"!=typeof Pebble,ho=/web0s(?!.*chrome)/i.test(B),yo=oo.set,go=s.MutationObserver||s.WebKitMutationObserver,mo=s.document,bo=s.process,wo=s.Promise,So=function(t){if(!p)return s[t];var e=io(s,t);return e&&e.value}("queueMicrotask");if(!So){var Oo=new po,Eo=function(){var t,e;for(Pr&&(t=bo.domain)&&t.exit();e=Oo.get();)try{e();}catch(t){throw Oo.head&&ao(),t}t&&t.enter();};Wr||Pr||ho||!go||!mo?!vo&&wo&&wo.resolve?((so=wo.resolve(void 0)).constructor=wo,lo=Br(so.then,so),ao=function(){lo(Eo);}):Pr?ao=function(){bo.nextTick(Eo);}:(yo=Br(yo,s),ao=function(){yo(Eo);}):(co=!0,fo=mo.createTextNode(""),new go(Eo).observe(fo,{characterData:!0}),ao=function(){fo.data=co=!co;}),So=function(t){Oo.head||ao(),Oo.add(t);};}var jo=So,xo=function(t){try{return {error:!1,value:t()}}catch(t){return {error:!0,value:t}}},Io=s.Promise;Io&&Io.prototype;var To,Po,Ro,Ao,Co=bt("species"),No=!1,ko=L(s.PromiseRejectionEvent),Mo=De("Promise",(function(){var t=$t(Io),e=t!==String(Io);if(!e&&66===q)return !0;if(!q||q<51||!/native code/.test(t)){var n=new Io((function(t){t(1);})),r=function(t){t((function(){}),(function(){}));};if((n.constructor={})[Co]=r,!(No=n.then((function(){}))instanceof r))return !0}return !(e||"BROWSER"!==Tr&&"DENO"!==Tr||ko)})),Lo={CONSTRUCTOR:Mo,REJECTION_EVENT:ko,SUBCLASSING:No},Do=TypeError,Fo=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new Do("Bad Promise constructor");e=t,n=r;})),this.resolve=et(e),this.reject=et(n);},zo={f:function(t){return new Fo(t)}},_o=oo.set,Uo="Promise",Bo=Lo.CONSTRUCTOR,Go=Lo.REJECTION_EVENT,Wo=Lo.SUBCLASSING,Vo=ae.getterFor(Uo),Ho=ae.set,qo=Io&&Io.prototype,Ko=Io,Xo=qo,Yo=s.TypeError,$o=s.document,Jo=s.process,Qo=zo.f,Zo=Qo,ti=!!($o&&$o.createEvent&&s.dispatchEvent),ei="unhandledrejection",ni=function(t){var e;return !(!D(t)||!L(e=t.then))&&e},ri=function(t,e){var n,r,o,i=e.value,u=1===e.state,a=u?t.ok:t.fail,c=t.resolve,f=t.reject,s=t.domain;try{a?(u||(2===e.rejection&&ci(e),e.rejection=1),!0===a?n=i:(s&&s.enter(),n=a(i),s&&(s.exit(),o=!0)),n===t.promise?f(new Yo("Promise-chain cycle")):(r=ni(n))?h(r,n,c,f):c(n)):f(i);}catch(t){s&&!o&&s.exit(),f(t);}},oi=function(t,e){t.notified||(t.notified=!0,jo((function(){for(var n,r=t.reactions;n=r.get();)ri(n,t);t.notified=!1,e&&!t.rejection&&ui(t);})));},ii=function(t,e,n){var r,o;ti?((r=$o.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!Go&&(o=s["on"+t])?o(r):t===ei&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e);}catch(t){}}("Unhandled promise rejection",n);},ui=function(t){h(_o,s,(function(){var e,n=t.facade,r=t.value;if(ai(t)&&(e=xo((function(){Pr?Jo.emit("unhandledRejection",r,n):ii(ei,n,r);})),t.rejection=Pr||ai(t)?2:1,e.error))throw e.value}));},ai=function(t){return 1!==t.rejection&&!t.parent},ci=function(t){h(_o,s,(function(){var e=t.facade;Pr?Jo.emit("rejectionHandled",e):ii("rejectionhandled",e,t.value);}));},fi=function(t,e,n){return function(r){t(e,r,n);}},si=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,oi(t,!0));},li=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new Yo("Promise can't be resolved itself");var r=ni(e);r?jo((function(){var n={done:!1};try{h(r,e,fi(li,n,t),fi(si,n,t));}catch(e){si(n,e,t);}})):(t.value=e,t.state=1,oi(t,!1));}catch(e){si({done:!1},e,t);}}};if(Bo&&(Xo=(Ko=function(t){Cr(this,Xo),et(t),h(To,this);var e=Vo(this);try{t(fi(li,e),fi(si,e));}catch(t){si(e,t);}}).prototype,(To=function(t){Ho(this,{type:Uo,done:!1,notified:!1,parent:!1,reactions:new po,rejection:!1,state:0,value:null});}).prototype=fe(Xo,"then",(function(t,e){var n=Vo(this),r=Qo(Mr(this,Ko));return n.parent=!0,r.ok=!L(t)||t,r.fail=L(e)&&e,r.domain=Pr?Jo.domain:void 0,0===n.state?n.reactions.add(r):jo((function(){ri(r,n);})),r.promise})),Po=function(){var t=new To,e=Vo(t);this.promise=t,this.resolve=fi(li,e),this.reject=fi(si,e);},zo.f=Qo=function(t){return t===Ko||undefined===t?new Po(t):Zo(t)},L(Io)&&qo!==Object.prototype)){Ro=qo.then,Wo||fe(qo,"then",(function(t,e){var n=this;return new Ko((function(t,e){h(Ro,n,t,e);})).then(t,e)}),{unsafe:!0});try{delete qo.constructor;}catch(t){}Qn&&Qn(qo,Xo);}ze({global:!0,constructor:!0,wrap:!0,forced:Bo},{Promise:Ko}),qn(Ko,Uo,!1),Ao=F(Uo),p&&Ao&&!Ao[Rr]&&yr(Ao,Rr,{configurable:!0,get:function(){return this}});var pi=bt("iterator"),di=Array.prototype,vi=bt("iterator"),hi=function(t){if(!A(t))return nt(t,vi)||nt(t,"@@iterator")||Mn[He(t)]},yi=TypeError,gi=function(t,e,n){var r,o;kt(t);try{if(!(r=nt(t,"return"))){if("throw"===e)throw n;return n}r=h(r,t);}catch(t){o=!0,r=t;}if("throw"===e)throw n;if(o)throw r;return kt(r),n},mi=TypeError,bi=function(t,e){this.stopped=t,this.result=e;},wi=bi.prototype,Si=function(t,e,n){var r,o,i,u,a,c,f,s,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Br(e,l),m=function(t){return r&&gi(r,"normal",t),new bi(!0,t)},b=function(t){return p?(kt(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else {if(!(o=hi(t)))throw new mi(Z(t)+" is not iterable");if(void 0!==(s=o)&&(Mn.Array===s||di[pi]===s)){for(i=0,u=me(t);u>i;i++)if((a=b(t[i]))&&z(wi,a))return a;return new bi(!1)}r=function(t,e){var n=arguments.length<2?hi(t):e;if(et(n))return kt(h(n,t));throw new yi(Z(t)+" is not iterable")}(t,o);}for(c=d?t.next:r.next;!(f=h(c,r)).done;){try{a=b(f.value);}catch(t){gi(r,"throw",t);}if("object"==typeof a&&a&&z(wi,a))return a}return new bi(!1)},Oi=bt("iterator"),Ei=!1;try{var ji=0,xi={next:function(){return {done:!!ji++}},return:function(){Ei=!0;}};xi[Oi]=function(){return this},Array.from(xi,(function(){throw 2}));}catch(t){}var Ii=function(t,e){try{if(!e&&!Ei)return !1}catch(t){return !1}var n=!1;try{var r={};r[Oi]=function(){return {next:function(){return {done:n=!0}}}},t(r);}catch(t){}return n},Ti=Lo.CONSTRUCTOR||!Ii((function(t){Io.all(t).then(void 0,(function(){}));}));ze({target:"Promise",stat:!0,forced:Ti},{all:function(t){var e=this,n=zo.f(e),r=n.resolve,o=n.reject,i=xo((function(){var n=et(e.resolve),i=[],u=0,a=1;Si(t,(function(t){var c=u++,f=!1;a++,h(n,e,t).then((function(t){f||(f=!0,i[c]=t,--a||r(i));}),o);})),--a||r(i);}));return i.error&&o(i.value),n.promise}});var Pi=Lo.CONSTRUCTOR,Ri=Io&&Io.prototype;if(ze({target:"Promise",proto:!0,forced:Pi,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(Io)){var Ai=F("Promise").prototype.catch;Ri.catch!==Ai&&fe(Ri,"catch",Ai,{unsafe:!0});}ze({target:"Promise",stat:!0,forced:Ti},{race:function(t){var e=this,n=zo.f(e),r=n.reject,o=xo((function(){var o=et(e.resolve);Si(t,(function(t){h(o,e,t).then(n.resolve,r);}));}));return o.error&&r(o.value),n.promise}}),ze({target:"Promise",stat:!0,forced:Lo.CONSTRUCTOR},{reject:function(t){var e=zo.f(this);return (0, e.reject)(t),e.promise}});var Ci=Lo.CONSTRUCTOR;F("Promise"),ze({target:"Promise",stat:!0,forced:Ci},{resolve:function(t){return function(t,e){if(kt(t),D(e)&&e.constructor===t)return e;var n=zo.f(t);return (0, n.resolve)(e),n.promise}(this,t)}});var Ni=String,ki=function(t){if("Symbol"===He(t))throw new TypeError("Cannot convert a Symbol value to a string");return Ni(t)},Mi=function(){var t=kt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Li=RegExp.prototype,Di=Ht.PROPER,Fi="toString",zi=RegExp.prototype,_i=zi[Fi],Ui=l((function(){return "/a/b"!==_i.call({source:"a",flags:"b"})})),Bi=Di&&_i.name!==Fi;(Ui||Bi)&&fe(zi,Fi,(function(){var t=kt(this),e=ki(t.source),n=ki(function(t){var e=t.flags;return void 0!==e||"flags"in Li||lt(t,"flags")||!z(Li,t)?e:h(Mi,t)}(t));return "/"+e+"/"+n}),{unsafe:!0});var Gi=E("".charAt),Wi=E("".charCodeAt),Vi=E("".slice),Hi=function(t){return function(e,n){var r,o,i=ki(N(e)),u=de(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=Wi(i,u))<55296||r>56319||u+1===a||(o=Wi(i,u+1))<56320||o>57343?t?Gi(i,u):r:t?Vi(i,u,u+2):o-56320+(r-55296<<10)+65536}},qi={codeAt:Hi(!1),charAt:Hi(!0)}.charAt,Ki="String Iterator",Xi=ae.set,Yi=ae.getterFor(Ki);cr(String,"String",(function(t){Xi(this,{type:Ki,string:ki(t),index:0});}),(function(){var t,e=Yi(this),n=e.string,r=e.index;return r>=n.length?fr(void 0,!0):(t=qi(n,r),e.index+=t.length,fr(t,!1))}));var $i=!l((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ji=function(t,e,n){for(var r in e)fe(t,r,e[r],n);return t},Qi=xe.f,Zi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tu={f:function(t){return Zi&&"Window"===I(t)?function(t){try{return Qi(t)}catch(t){return nn(Zi)}}(t):Qi(k(t))}},eu=l((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8});}})),nu=Object.isExtensible,ru=l((function(){nu(1);}))||eu?function(t){return !!D(t)&&((!eu||"ArrayBuffer"!==I(t))&&(!nu||nu(t)))}:nu,ou=u((function(t){var e=Ut.f,n=!1,r=ht("meta"),o=0,i=function(t){e(t,r,{value:{objectID:"O"+o++,weakData:{}}});},u=t.exports={enable:function(){u.enable=function(){},n=!0;var t=xe.f,e=E([].splice),o={};o[r]=1,t(o).length&&(xe.f=function(n){for(var o=t(n),i=0,u=o.length;i<u;i++)if(o[i]===r){e(o,i,1);break}return o},ze({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:tu.f}));},fastKey:function(t,e){if(!D(t))return "symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!lt(t,r)){if(!ru(t))return "F";if(!e)return "E";i(t);}return t[r].objectID},getWeakData:function(t,e){if(!lt(t,r)){if(!ru(t))return !0;if(!e)return !1;i(t);}return t[r].weakData},onFreeze:function(t){return $i&&n&&ru(t)&&!lt(t,r)&&i(t),t}};ee[r]=!0;})),iu=bt("species"),uu=Array,au=function(t,e){return new(function(t){var e;return _e(t)&&(e=t.constructor,(tn(e)&&(e===uu||_e(e.prototype))||D(e)&&null===(e=e[iu]))&&(e=void 0)),void 0===e?uu:e}(t))(0===e?0:e)},cu=E([].push),fu=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,f,s,l){for(var p,d,v=ft(c),h=R(v),y=me(h),g=Br(f,s),m=0,b=l||au,w=e?b(c,y):n||u?b(c,0):void 0;y>m;m++)if((a||m in h)&&(d=g(p=h[m],m,v),t))if(e)w[m]=d;else if(d)switch(t){case 3:return !0;case 5:return p;case 6:return m;case 2:cu(w,p);}else switch(t){case 4:return !1;case 7:cu(w,p);}return i?-1:r||o?o:w}},su={forEach:fu(0),map:fu(1),filter:fu(2),some:fu(3),every:fu(4),find:fu(5),findIndex:fu(6),filterReject:fu(7)},lu=ou.getWeakData,pu=ae.set,du=ae.getterFor,vu=su.find,hu=su.findIndex,yu=E([].splice),gu=0,mu=function(t){return t.frozen||(t.frozen=new bu)},bu=function(){this.entries=[];},wu=function(t,e){return vu(t.entries,(function(t){return t[0]===e}))};bu.prototype={get:function(t){var e=wu(this,t);if(e)return e[1]},has:function(t){return !!wu(this,t)},set:function(t,e){var n=wu(this,t);n?n[1]=e:this.entries.push([t,e]);},delete:function(t){var e=hu(this.entries,(function(e){return e[0]===t}));return ~e&&yu(this.entries,e,1),!!~e}};var Su,Ou={getConstructor:function(t,e,n,r){var o=t((function(t,o){Cr(t,i),pu(t,{type:e,id:gu++,frozen:null}),A(o)||Si(o,t[r],{that:t,AS_ENTRIES:n});})),i=o.prototype,u=du(e),a=function(t,e,n){var r=u(t),o=lu(kt(e),!0);return !0===o?mu(r).set(e,n):o[r.id]=n,t};return Ji(i,{delete:function(t){var e=u(this);if(!D(t))return !1;var n=lu(t);return !0===n?mu(e).delete(t):n&&lt(n,e.id)&&delete n[e.id]},has:function(t){var e=u(this);if(!D(t))return !1;var n=lu(t);return !0===n?mu(e).has(t):n&&lt(n,e.id)}}),Ji(i,n?{get:function(t){var e=u(this);if(D(t)){var n=lu(t);if(!0===n)return mu(e).get(t);if(n)return n[e.id]}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Eu=ae.enforce,ju=Object,xu=Array.isArray,Iu=ju.isExtensible,Tu=ju.isFrozen,Pu=ju.isSealed,Ru=ju.freeze,Au=ju.seal,Cu=!s.ActiveXObject&&"ActiveXObject"in s,Nu=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},ku=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",u=s[t],a=u&&u.prototype,c=u,f={},p=function(t){var e=E(a[t]);fe(a,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return !(o&&!D(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!D(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return !(o&&!D(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this});};if(De(t,!L(u)||!(o||a.forEach&&!l((function(){(new u).entries().next();})))))c=n.getConstructor(e,t,r,i),ou.enable();else if(De(t,!0)){var d=new c,v=d[i](o?{}:-0,1)!==d,h=l((function(){d.has(1);})),y=Ii((function(t){new u(t);})),g=!o&&l((function(){for(var t=new u,e=5;e--;)t[i](e,e);return !t.has(-0)}));y||((c=e((function(t,e){Cr(t,a);var n=function(t,e,n){var r,o;return Qn&&L(r=e.constructor)&&r!==n&&D(o=r.prototype)&&o!==n.prototype&&Qn(t,o),t}(new u,t,c);return A(e)||Si(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=c),(h||g)&&(p("delete"),p("has"),r&&p("get")),(g||v)&&p(i),o&&a.clear&&delete a.clear;}return f[t]=c,ze({global:!0,constructor:!0,forced:c!==u},f),qn(c,t),o||n.setStrong(c,t,r),c}("WeakMap",Nu,Ou),Mu=ku.prototype,Lu=E(Mu.set);if(Qt)if(Cu){Su=Ou.getConstructor(Nu,"WeakMap",!0),ou.enable();var Du=E(Mu.delete),Fu=E(Mu.has),zu=E(Mu.get);Ji(Mu,{delete:function(t){if(D(t)&&!Iu(t)){var e=Eu(this);return e.frozen||(e.frozen=new Su),Du(this,t)||e.frozen.delete(t)}return Du(this,t)},has:function(t){if(D(t)&&!Iu(t)){var e=Eu(this);return e.frozen||(e.frozen=new Su),Fu(this,t)||e.frozen.has(t)}return Fu(this,t)},get:function(t){if(D(t)&&!Iu(t)){var e=Eu(this);return e.frozen||(e.frozen=new Su),Fu(this,t)?zu(this,t):e.frozen.get(t)}return zu(this,t)},set:function(t,e){if(D(t)&&!Iu(t)){var n=Eu(this);n.frozen||(n.frozen=new Su),Fu(this,t)?Lu(this,t,e):n.frozen.set(t,e);}else Lu(this,t,e);return this}});}else $i&&l((function(){var t=Ru([]);return Lu(new ku,t,1),!Tu(t)}))&&Ji(Mu,{set:function(t,e){var n;return xu(t)&&(Tu(t)?n=Ru:Pu(t)&&(n=Au)),Lu(this,t,e),n&&n(t),this}});var _u={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},Uu=It("span").classList,Bu=Uu&&Uu.constructor&&Uu.constructor.prototype,Gu=Bu===Object.prototype?void 0:Bu,Wu=function(t,e){var n=[][t];return !!n&&l((function(){n.call(null,e||function(){return 1},1);}))},Vu=su.forEach,Hu=Wu("forEach")?[].forEach:function(t){return Vu(this,t,arguments.length>1?arguments[1]:void 0)},qu=function(t){if(t&&t.forEach!==Hu)try{Bt(t,"forEach",Hu);}catch(e){t.forEach=Hu;}};for(var Ku in _u)_u[Ku]&&qu(s[Ku]&&s[Ku].prototype);qu(Gu);var Xu=bt("iterator"),Yu=vr.values,$u=function(t,e){if(t){if(t[Xu]!==Yu)try{Bt(t,Xu,Yu);}catch(e){t[Xu]=Yu;}if(qn(t,e,!0),_u[e])for(var n in vr)if(t[n]!==vr[n])try{Bt(t,n,vr[n]);}catch(e){t[n]=vr[n];}}};for(var Ju in _u)$u(s[Ju]&&s[Ju].prototype,Ju);$u(Gu,"DOMTokenList");var Qu=new WeakMap;function Zu(t){return t.getMenuConfig("uploadImage")}function ta(t,n){return sn(this,void 0,void 0,(function(){return ln(this,(function(r){return [2,new Promise((function(r){var o=new FileReader;o.readAsDataURL(n),o.onload=function(){var i=o.result;if(i){var u=i.toString(),a=0===u.indexOf("data:image")?"":u;e.insertImageNode(t,u,n.name,a),r("ok");}};}))]}))}))}function ea(n,r){return sn(this,void 0,void 0,(function(){var o,i,u,a;return ln(this,(function(c){switch(c.label){case 0:return o=function(n){var r=Qu.get(n);if(null!=r)return r;var o=Zu(n),i=o.onSuccess,u=o.onProgress,a=o.onFailed,c=o.customInsert,f=o.onError;return r=t.createUploader(fn(fn({},o),{onProgress:function(t){n.showProgressBar(t),u&&u(t);},onSuccess:function(t,r){if(c)return c(r,(function(t,r,o){return e.insertImageNode(n,t,r,o)})),void i(t,r);var o=r.errno,u=void 0===o?1:o,f=r.data,s=void 0===f?{}:f;if(0===u){if(Array.isArray(s))s.forEach((function(t){var r=t.url,o=void 0===r?"":r,i=t.alt,u=void 0===i?"":i,a=t.href,c=void 0===a?"":a;e.insertImageNode(n,o,u,c);}));else {var l=s.url,p=void 0===l?"":l,d=s.alt,v=void 0===d?"":d,h=s.href,y=void 0===h?"":h;e.insertImageNode(n,p,v,y);}i(t,r);}else a(t,r);},onError:function(t,e,n){f(t,e,n);}})),Qu.set(n,r),r}(n),i=r.name,u=r.type,a=r.size,o.addFile({name:i,type:u,size:a,data:r}),[4,o.upload()];case 1:return c.sent(),[2]}}))}))}function na(t,n){var r,o;return sn(this,void 0,void 0,(function(){var i,u,a,c,f,s,l,p,d;return ln(this,(function(v){switch(v.label){case 0:if(null==n)return [2];i=Array.prototype.slice.call(n),u=Zu(t),a=u.customUpload,c=u.base64LimitSize,v.label=1;case 1:v.trys.push([1,11,12,17]),f=dn(i),v.label=2;case 2:return [4,f.next()];case 3:return (s=v.sent()).done?[3,10]:(l=s.value,p=l.size,c&&p<=c?[4,ta(t,l)]:[3,5]);case 4:return v.sent(),[3,9];case 5:return a?[4,a(l,(function(n,r,o){return e.insertImageNode(t,n,r,o)}))]:[3,7];case 6:return v.sent(),[3,9];case 7:return [4,ea(t,l)];case 8:v.sent(),v.label=9;case 9:return [3,2];case 10:return [3,17];case 11:return d=v.sent(),r={error:d},[3,17];case 12:return v.trys.push([12,,15,16]),s&&!s.done&&(o=f.return)?[4,o.call(f)]:[3,14];case 13:v.sent(),v.label=14;case 14:return [3,16];case 15:if(r)throw r.error;return [7];case 16:return [7];case 17:return [2]}}))}))}var ra=E([].join),oa=R!==Object||!Wu("join",",");ze({target:"Array",proto:!0,forced:oa},{join:function(t){return ra(k(this),void 0===t?",":t)}});var ia,ua,aa=s.RegExp,ca=l((function(){var t=aa("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),fa=ca||l((function(){return !aa("a","y").sticky})),sa={BROKEN_CARET:ca||l((function(){var t=aa("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:fa,UNSUPPORTED_Y:ca},la=s.RegExp,pa=l((function(){var t=la(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)})),da=s.RegExp,va=l((function(){var t=da("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),ha=ae.get,ya=at("native-string-replace",String.prototype.replace),ga=RegExp.prototype.exec,ma=ga,ba=E("".charAt),wa=E("".indexOf),Sa=E("".replace),Oa=E("".slice),Ea=(ua=/b*/g,h(ga,ia=/a/,"a"),h(ga,ua,"a"),0!==ia.lastIndex||0!==ua.lastIndex),ja=sa.BROKEN_CARET,xa=void 0!==/()??/.exec("")[1];(Ea||xa||ja||pa||va)&&(ma=function(t){var e,n,r,o,i,u,a,c=this,f=ha(c),s=ki(t),l=f.raw;if(l)return l.lastIndex=c.lastIndex,e=h(ma,l,s),c.lastIndex=l.lastIndex,e;var p=f.groups,d=ja&&c.sticky,v=h(Mi,c),y=c.source,g=0,m=s;if(d&&(v=Sa(v,"y",""),-1===wa(v,"g")&&(v+="g"),m=Oa(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==ba(s,c.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,g++),n=new RegExp("^(?:"+y+")",v)),xa&&(n=new RegExp("^"+y+"$(?!\\s)",v)),Ea&&(r=c.lastIndex),o=h(ga,d?n:c,m),d?o?(o.input=Oa(o.input,g),o[0]=Oa(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Ea&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),xa&&o&&o.length>1&&h(ya,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0);})),o&&p)for(o.groups=u=In(null),i=0;i<p.length;i++)u[(a=p[i])[0]]=o[a[1]];return o});ze({target:"RegExp",proto:!0,forced:/./.exec!==ma},{exec:ma});n.append&&(o.default.fn.append=n.append),n.on&&(o.default.fn.on=n.on),n.remove&&(o.default.fn.remove=n.remove),n.val&&(o.default.fn.val=n.val),n.click&&(o.default.fn.click=n.click),n.hide&&(o.default.fn.hide=n.hide);var Ia=function(){function n(){this.title=t.t("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 n.prototype.getValue=function(t){return ""},n.prototype.isActive=function(t){return !1},n.prototype.isDisabled=function(t){return e.isInsertImageMenuDisabled(t)},n.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},n.prototype.exec=function(t,n){var r=this.getMenuConfig(t),i=r.allowedFileTypes,u=void 0===i?[]:i,a=r.customBrowseAndUpload;if(a)a((function(n,r,o){return e.insertImageNode(t,n,r,o)}));else {var c="";u.length>0&&(c='accept="'+u.join(", ")+'"');var f=o.default("body"),s=o.default('<input type="file" '+c+" multiple/>");s.hide(),f.append(s),s.click(),s.on("change",(function(){var e=s[0].files;na(t,e);}));}},n}();var Ta={menus:[{key:"uploadImage",factory:function(){return new Ia},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e);},onError:function(t,e,n){console.error("'"+t.name+"' upload error",n);},base64LimitSize:0}}],editorPlugin:function(t){var n=t.insertData,r=t;return r.insertData=function(o){if(e.isInsertImageMenuDisabled(r))n(o);else if(o.getData("text/plain"))n(o);else {var i=o.files;if(i.length<=0)n(o);else Array.prototype.slice.call(i).some((function(t){return "image"===function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value);}catch(t){o={error:t};}finally{try{r&&!r.done&&(n=i.return)&&n.call(i);}finally{if(o)throw o.error}}return u}(t.type.split("/"),1)[0]}))?na(t,i):n(o);}},r}};return Ta}));
21702
+ !function(t,e){module.exports=e(dist$6,dist$5,require$$2);}(commonjsGlobal,(function(t,e,n){function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=r(n);t.i18nAddResources("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),t.i18nAddResources("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var i=function(t){try{return !!t()}catch(t){return !0}},u=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=!i((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),c=Function.prototype,f=c.call,s=a&&c.bind.bind(f,f),l=a?s:function(t){return function(){return f.apply(t,arguments)}},p=function(t){return null==t},d=TypeError,v=function(t){if(p(t))throw new d("Can't call method on "+t);return t},h=Object,y=function(t){return h(v(t))},g=l({}.hasOwnProperty),m=Object.hasOwn||function(t,e){return g(y(t),e)},b=Function.prototype,w=u&&Object.getOwnPropertyDescriptor,S=m(b,"name"),O={EXISTS:S,PROPER:S&&"something"===function(){}.name,CONFIGURABLE:S&&(!u||u&&w(b,"name").configurable)},E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function j(t){var e={exports:{}};return t(e,e.exports),e.exports}var x="object"==typeof document&&document.all,I=void 0===x&&void 0!==x?function(t){return "function"==typeof t||t===x}:function(t){return "function"==typeof t},T=function(t){return t&&t.Math===Math&&t},P=T("object"==typeof globalThis&&globalThis)||T("object"==typeof window&&window)||T("object"==typeof self&&self)||T("object"==typeof E&&E)||T("object"==typeof E&&E)||function(){return this}()||Function("return this")(),R=Object.defineProperty,A=function(t,e){try{R(P,t,{value:e,configurable:!0,writable:!0});}catch(n){P[t]=e;}return e},C=j((function(t){var e="__core-js_shared__",n=t.exports=P[e]||A(e,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),N=l(Function.toString);I(C.inspectSource)||(C.inspectSource=function(t){return N(t)});var k,M,L=C.inspectSource,D=P.WeakMap,F=I(D)&&/native code/.test(String(D)),z=function(t){return "object"==typeof t?null!==t:I(t)},_=P.document,U=z(_)&&z(_.createElement),B=function(t){return U?_.createElement(t):{}},G=!u&&!i((function(){return 7!==Object.defineProperty(B("div"),"a",{get:function(){return 7}}).a})),W=u&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),V=String,H=TypeError,q=function(t){if(z(t))return t;throw new H(V(t)+" is not an object")},K=Function.prototype.call,X=a?K.bind(K):function(){return K.apply(K,arguments)},Y=function(t,e){return arguments.length<2?(n=P[t],I(n)?n:void 0):P[t]&&P[t][e];var n;},$=l({}.isPrototypeOf),J=P.navigator,Q=J&&J.userAgent,Z=Q?String(Q):"",tt=P.process,et=P.Deno,nt=tt&&tt.versions||et&&et.version,rt=nt&&nt.v8;rt&&(M=(k=rt.split("."))[0]>0&&k[0]<4?1:+(k[0]+k[1])),!M&&Z&&(!(k=Z.match(/Edge\/(\d+)/))||k[1]>=74)&&(k=Z.match(/Chrome\/(\d+)/))&&(M=+k[1]);var ot,it,ut,at=M,ct=P.String,ft=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return !ct(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&at&&at<41})),st=ft&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lt=Object,pt=st?function(t){return "symbol"==typeof t}:function(t){var e=Y("Symbol");return I(e)&&$(e.prototype,lt(t))},dt=String,vt=function(t){try{return dt(t)}catch(t){return "Object"}},ht=TypeError,yt=function(t){if(I(t))return t;throw new ht(vt(t)+" is not a function")},gt=function(t,e){var n=t[e];return p(n)?void 0:yt(n)},mt=TypeError,bt=function(t,e){return C[t]||(C[t]=e||{})},wt=0,St=Math.random(),Ot=l(1..toString),Et=function(t){return "Symbol("+(void 0===t?"":t)+")_"+Ot(++wt+St,36)},jt=P.Symbol,xt=bt("wks"),It=st?jt.for||jt:jt&&jt.withoutSetter||Et,Tt=function(t){return m(xt,t)||(xt[t]=ft&&m(jt,t)?jt[t]:It("Symbol."+t)),xt[t]},Pt=TypeError,Rt=Tt("toPrimitive"),At=function(t,e){if(!z(t)||pt(t))return t;var n,r=gt(t,Rt);if(r){if(void 0===e&&(e="default"),n=X(r,t,e),!z(n)||pt(n))return n;throw new Pt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&I(n=t.toString)&&!z(r=X(n,t)))return r;if(I(n=t.valueOf)&&!z(r=X(n,t)))return r;if("string"!==e&&I(n=t.toString)&&!z(r=X(n,t)))return r;throw new mt("Can't convert object to primitive value")}(t,e)},Ct=function(t){var e=At(t,"string");return pt(e)?e:e+""},Nt=TypeError,kt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Lt="enumerable",Dt="configurable",Ft="writable",zt={f:u?W?function(t,e,n){if(q(t),e=Ct(e),q(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ft in n&&!n[Ft]){var r=Mt(t,e);r&&r[Ft]&&(t[e]=n.value,n={configurable:Dt in n?n[Dt]:r[Dt],enumerable:Lt in n?n[Lt]:r[Lt],writable:!1});}return kt(t,e,n)}:kt:function(t,e,n){if(q(t),e=Ct(e),q(n),G)try{return kt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new Nt("Accessors not supported");return "value"in n&&(t[e]=n.value),t}},_t=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ut=u?function(t,e,n){return zt.f(t,e,_t(1,n))}:function(t,e,n){return t[e]=n,t},Bt=bt("keys"),Gt=function(t){return Bt[t]||(Bt[t]=Et(t))},Wt={},Vt="Object already initialized",Ht=P.TypeError,qt=P.WeakMap;if(F||C.state){var Kt=C.state||(C.state=new qt);Kt.get=Kt.get,Kt.has=Kt.has,Kt.set=Kt.set,ot=function(t,e){if(Kt.has(t))throw new Ht(Vt);return e.facade=t,Kt.set(t,e),e},it=function(t){return Kt.get(t)||{}},ut=function(t){return Kt.has(t)};}else {var Xt=Gt("state");Wt[Xt]=!0,ot=function(t,e){if(m(t,Xt))throw new Ht(Vt);return e.facade=t,Ut(t,Xt,e),e},it=function(t){return m(t,Xt)?t[Xt]:{}},ut=function(t){return m(t,Xt)};}var Yt={set:ot,get:it,has:ut,enforce:function(t){return ut(t)?it(t):ot(t,{})},getterFor:function(t){return function(e){var n;if(!z(e)||(n=it(e)).type!==t)throw new Ht("Incompatible receiver, "+t+" required");return n}}},$t=j((function(t){var e=O.CONFIGURABLE,n=Yt.enforce,r=Yt.get,o=String,a=Object.defineProperty,c=l("".slice),f=l("".replace),s=l([].join),p=u&&!i((function(){return 8!==a((function(){}),"length",{value:8}).length})),d=String(String).split("String"),v=t.exports=function(t,r,i){"Symbol("===c(o(r),0,7)&&(r="["+f(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(r="get "+r),i&&i.setter&&(r="set "+r),(!m(t,"name")||e&&t.name!==r)&&(u?a(t,"name",{value:r,configurable:!0}):t.name=r),p&&i&&m(i,"arity")&&t.length!==i.arity&&a(t,"length",{value:i.arity});try{i&&m(i,"constructor")&&i.constructor?u&&a(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var l=n(t);return m(l,"source")||(l.source=s(d,"string"==typeof r?r:"")),t};Function.prototype.toString=v((function(){return I(this)&&r(this).source||L(this)}),"toString");})),Jt=function(t,e,n){return n.get&&$t(n.get,e,{getter:!0}),n.set&&$t(n.set,e,{setter:!0}),zt.f(t,e,n)},Qt=O.EXISTS,Zt=Function.prototype,te=l(Zt.toString),ee=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ne=l(ee.exec);u&&!Qt&&Jt(Zt,"name",{configurable:!0,get:function(){try{return ne(ee,te(this))[1]}catch(t){return ""}}});var re={}.propertyIsEnumerable,oe=Object.getOwnPropertyDescriptor,ie={f:oe&&!re.call({1:2},1)?function(t){var e=oe(this,t);return !!e&&e.enumerable}:re},ue=l({}.toString),ae=l("".slice),ce=function(t){return ae(ue(t),8,-1)},fe=Object,se=l("".split),le=i((function(){return !fe("z").propertyIsEnumerable(0)}))?function(t){return "String"===ce(t)?se(t,""):fe(t)}:fe,pe=function(t){return le(v(t))},de=Object.getOwnPropertyDescriptor,ve={f:u?de:function(t,e){if(t=pe(t),e=Ct(e),G)try{return de(t,e)}catch(t){}if(m(t,e))return _t(!X(ie.f,t,e),t[e])}},he=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(I(n)&&$t(n,i,r),r.global)o?t[e]=n:A(e,n);else {try{r.unsafe?t[e]&&(o=!0):delete t[e];}catch(t){}o?t[e]=n:zt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable});}return t},ye=Math.ceil,ge=Math.floor,me=Math.trunc||function(t){var e=+t;return (e>0?ge:ye)(e)},be=function(t){var e=+t;return e!=e||0===e?0:me(e)},we=Math.max,Se=Math.min,Oe=function(t,e){var n=be(t);return n<0?we(n+e,0):Se(n,e)},Ee=Math.min,je=function(t){return e=t.length,(n=be(e))>0?Ee(n,9007199254740991):0;var e,n;},xe=function(t){return function(e,n,r){var o=pe(e),i=je(o);if(0===i)return !t&&-1;var u,a=Oe(r,i);if(t&&n!=n){for(;i>a;)if((u=o[a++])!=u)return !0}else for(;i>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return !t&&-1}},Ie={includes:xe(!0),indexOf:xe(!1)}.indexOf,Te=l([].push),Pe=function(t,e){var n,r=pe(t),o=0,i=[];for(n in r)!m(Wt,n)&&m(r,n)&&Te(i,n);for(;e.length>o;)m(r,n=e[o++])&&(~Ie(i,n)||Te(i,n));return i},Re=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ae=Re.concat("length","prototype"),Ce={f:Object.getOwnPropertyNames||function(t){return Pe(t,Ae)}},Ne={f:Object.getOwnPropertySymbols},ke=l([].concat),Me=Y("Reflect","ownKeys")||function(t){var e=Ce.f(q(t)),n=Ne.f;return n?ke(e,n(t)):e},Le=function(t,e,n){for(var r=Me(e),o=zt.f,i=ve.f,u=0;u<r.length;u++){var a=r[u];m(t,a)||n&&m(n,a)||o(t,a,i(e,a));}},De=/#|\.prototype\./,Fe=function(t,e){var n=_e[ze(t)];return n===Be||n!==Ue&&(I(e)?i(e):!!e)},ze=Fe.normalize=function(t){return String(t).replace(De,".").toLowerCase()},_e=Fe.data={},Ue=Fe.NATIVE="N",Be=Fe.POLYFILL="P",Ge=Fe,We=ve.f,Ve=function(t,e){var n,r,o,i,u,a=t.target,c=t.global,f=t.stat;if(n=c?P:f?P[a]||A(a,{}):P[a]&&P[a].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(u=We(n,r))&&u.value:n[r],!Ge(c?r:a+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Le(i,o);}(t.sham||o&&o.sham)&&Ut(i,"sham",!0),he(n,r,i,t);}},He=function(t,e){var n=[][t];return !!n&&i((function(){n.call(null,e||function(){return 1},1);}))},qe=l([].join),Ke=le!==Object||!He("join",",");Ve({target:"Array",proto:!0,forced:Ke},{join:function(t){return qe(pe(this),void 0===t?",":t)}});var Xe={};Xe[Tt("toStringTag")]="z";var Ye,$e="[object z]"===String(Xe),Je=Tt("toStringTag"),Qe=Object,Ze="Arguments"===ce(function(){return arguments}()),tn=$e?ce:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Qe(t),Je))?n:Ze?ce(e):"Object"===(r=ce(e))&&I(e.callee)?"Arguments":r},en=String,nn=function(t){if("Symbol"===tn(t))throw new TypeError("Cannot convert a Symbol value to a string");return en(t)},rn=function(){var t=q(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},on=P.RegExp,un=i((function(){var t=on("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),an=un||i((function(){return !on("a","y").sticky})),cn={BROKEN_CARET:un||i((function(){var t=on("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:an,UNSUPPORTED_Y:un},fn=Object.keys||function(t){return Pe(t,Re)},sn=u&&!W?Object.defineProperties:function(t,e){q(t);for(var n,r=pe(e),o=fn(e),i=o.length,u=0;i>u;)zt.f(t,n=o[u++],r[n]);return t},ln={f:sn},pn=Y("document","documentElement"),dn="prototype",vn="script",hn=Gt("IE_PROTO"),yn=function(){},gn=function(t){return "<"+vn+">"+t+"</"+vn+">"},mn=function(t){t.write(gn("")),t.close();var e=t.parentWindow.Object;return t=null,e},bn=function(){try{Ye=new ActiveXObject("htmlfile");}catch(t){}var t,e,n;bn="undefined"!=typeof document?document.domain&&Ye?mn(Ye):(e=B("iframe"),n="java"+vn+":",e.style.display="none",pn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(gn("document.F=Object")),t.close(),t.F):mn(Ye);for(var r=Re.length;r--;)delete bn[dn][Re[r]];return bn()};Wt[hn]=!0;var wn,Sn,On=Object.create||function(t,e){var n;return null!==t?(yn[dn]=q(t),n=new yn,yn[dn]=null,n[hn]=t):n=bn(),void 0===e?n:ln.f(n,e)},En=P.RegExp,jn=i((function(){var t=En(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)})),xn=P.RegExp,In=i((function(){var t=xn("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Tn=Yt.get,Pn=bt("native-string-replace",String.prototype.replace),Rn=RegExp.prototype.exec,An=Rn,Cn=l("".charAt),Nn=l("".indexOf),kn=l("".replace),Mn=l("".slice),Ln=(Sn=/b*/g,X(Rn,wn=/a/,"a"),X(Rn,Sn,"a"),0!==wn.lastIndex||0!==Sn.lastIndex),Dn=cn.BROKEN_CARET,Fn=void 0!==/()??/.exec("")[1];(Ln||Fn||Dn||jn||In)&&(An=function(t){var e,n,r,o,i,u,a,c=this,f=Tn(c),s=nn(t),l=f.raw;if(l)return l.lastIndex=c.lastIndex,e=X(An,l,s),c.lastIndex=l.lastIndex,e;var p=f.groups,d=Dn&&c.sticky,v=X(rn,c),h=c.source,y=0,g=s;if(d&&(v=kn(v,"y",""),-1===Nn(v,"g")&&(v+="g"),g=Mn(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Cn(s,c.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,y++),n=new RegExp("^(?:"+h+")",v)),Fn&&(n=new RegExp("^"+h+"$(?!\\s)",v)),Ln&&(r=c.lastIndex),o=X(Rn,d?n:c,g),d?o?(o.input=Mn(o.input,y),o[0]=Mn(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Ln&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),Fn&&o&&o.length>1&&X(Pn,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0);})),o&&p)for(o.groups=u=On(null),i=0;i<p.length;i++)u[(a=p[i])[0]]=o[a[1]];return o});Ve({target:"RegExp",proto:!0,forced:/./.exec!==An},{exec:An});n.append&&(o.default.fn.append=n.append),n.on&&(o.default.fn.on=n.on),n.remove&&(o.default.fn.remove=n.remove),n.val&&(o.default.fn.val=n.val),n.click&&(o.default.fn.click=n.click),n.hide&&(o.default.fn.hide=n.hide);var zn=zt.f,_n=Tt("unscopables"),Un=Array.prototype;void 0===Un[_n]&&zn(Un,_n,{configurable:!0,value:On(null)});var Bn,Gn,Wn,Vn=function(t){Un[_n][t]=!0;},Hn={},qn=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Kn=Gt("IE_PROTO"),Xn=Object,Yn=Xn.prototype,$n=qn?Xn.getPrototypeOf:function(t){var e=y(t);if(m(e,Kn))return e[Kn];var n=e.constructor;return I(n)&&e instanceof n?n.prototype:e instanceof Xn?Yn:null},Jn=Tt("iterator"),Qn=!1;[].keys&&("next"in(Wn=[].keys())?(Gn=$n($n(Wn)))!==Object.prototype&&(Bn=Gn):Qn=!0);var Zn=!z(Bn)||i((function(){var t={};return Bn[Jn].call(t)!==t}));Zn&&(Bn={}),I(Bn[Jn])||he(Bn,Jn,(function(){return this}));var tr={IteratorPrototype:Bn,BUGGY_SAFARI_ITERATORS:Qn},er=zt.f,nr=Tt("toStringTag"),rr=function(t,e,n){t&&!n&&(t=t.prototype),t&&!m(t,nr)&&er(t,nr,{configurable:!0,value:e});},or=tr.IteratorPrototype,ir=function(){return this},ur=String,ar=TypeError,cr=function(t){if(function(t){return z(t)||null===t}(t))return t;throw new ar("Can't set "+ur(t)+" as a prototype")},fr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return l(yt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array;}catch(t){}return function(n,r){return v(n),cr(r),z(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0),sr=O.PROPER,lr=O.CONFIGURABLE,pr=tr.IteratorPrototype,dr=tr.BUGGY_SAFARI_ITERATORS,vr=Tt("iterator"),hr="keys",yr="values",gr="entries",mr=function(){return this},br=function(t,e,n,r,o,i,u){!function(t,e,n,r){var o=e+" Iterator";t.prototype=On(or,{next:_t(+!r,n)}),rr(t,o,!1),Hn[o]=ir;}(n,e,r);var a,c,f,s=function(t){if(t===o&&h)return h;if(!dr&&t&&t in d)return d[t];switch(t){case hr:case yr:case gr:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",p=!1,d=t.prototype,v=d[vr]||d["@@iterator"]||o&&d[o],h=!dr&&v||s(o),y="Array"===e&&d.entries||v;if(y&&(a=$n(y.call(new t)))!==Object.prototype&&a.next&&($n(a)!==pr&&(fr?fr(a,pr):I(a[vr])||he(a,vr,mr)),rr(a,l,!0)),sr&&o===yr&&v&&v.name!==yr&&(lr?Ut(d,"name",yr):(p=!0,h=function(){return X(v,this)})),o)if(c={values:s(yr),keys:i?h:s(hr),entries:s(gr)},u)for(f in c)(dr||p||!(f in d))&&he(d,f,c[f]);else Ve({target:e,proto:!0,forced:dr||p},c);return d[vr]!==h&&he(d,vr,h,{name:o}),Hn[e]=h,c},wr=function(t,e){return {value:t,done:e}},Sr=zt.f,Or="Array Iterator",Er=Yt.set,jr=Yt.getterFor(Or),xr=br(Array,"Array",(function(t,e){Er(this,{type:Or,target:pe(t),index:0,kind:e});}),(function(){var t=jr(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,wr(void 0,!0);switch(t.kind){case"keys":return wr(n,!1);case"values":return wr(e[n],!1)}return wr([n,e[n]],!1)}),"values"),Ir=Hn.Arguments=Hn.Array;if(Vn("keys"),Vn("values"),Vn("entries"),u&&"values"!==Ir.name)try{Sr(Ir,"name",{value:"values"});}catch(t){}var Tr=Array.isArray||function(t){return "Array"===ce(t)},Pr=function(){},Rr=Y("Reflect","construct"),Ar=/^\s*(?:class|function)\b/,Cr=l(Ar.exec),Nr=!Ar.test(Pr),kr=function(t){if(!I(t))return !1;try{return Rr(Pr,[],t),!0}catch(t){return !1}},Mr=function(t){if(!I(t))return !1;switch(tn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return Nr||!!Cr(Ar,L(t))}catch(t){return !0}};Mr.sham=!0;var Lr,Dr=!Rr||i((function(){var t;return kr(kr.call)||!kr(Object)||!kr((function(){t=!0;}))||t}))?Mr:kr,Fr=Tt("species"),zr=l([].slice),_r=(Lr="slice",at>=51||!i((function(){var t=[];return (t.constructor={})[Fr]=function(){return {foo:1}},1!==t[Lr](Boolean).foo}))),Ur=Tt("species"),Br=Array,Gr=Math.max;Ve({target:"Array",proto:!0,forced:!_r},{slice:function(t,e){var n,r,o,i,a,c,f=pe(this),s=je(f),l=Oe(t,s),p=Oe(void 0===e?s:e,s);if(Tr(f)&&(n=f.constructor,(Dr(n)&&(n===Br||Tr(n.prototype))||z(n)&&null===(n=n[Ur]))&&(n=void 0),n===Br||void 0===n))return zr(f,l,p);for(r=new(void 0===n?Br:n)(Gr(p-l,0)),o=0;l<p;l++,o++)l in f&&(i=r,a=o,c=f[l],u?zt.f(i,a,_t(0,c)):i[a]=c);return r.length=o,r}});var Wr=$e?{}.toString:function(){return "[object "+tn(this)+"]"};$e||he(Object.prototype,"toString",Wr,{unsafe:!0});var Vr,Hr,qr,Kr,Xr=function(t){return Z.slice(0,t.length)===t},Yr=Xr("Bun/")?"BUN":Xr("Cloudflare-Workers")?"CLOUDFLARE":Xr("Deno/")?"DENO":Xr("Node.js/")?"NODE":P.Bun&&"string"==typeof Bun.version?"BUN":P.Deno&&"object"==typeof Deno.version?"DENO":"process"===ce(P.process)?"NODE":P.window&&P.document?"BROWSER":"REST",$r="NODE"===Yr,Jr=Tt("species"),Qr=TypeError,Zr=function(t,e){if($(e,t))return t;throw new Qr("Incorrect invocation")},to=TypeError,eo=Tt("species"),no=function(t,e){var n,r=q(t).constructor;return void 0===r||p(n=q(r)[eo])?e:function(t){if(Dr(t))return t;throw new to(vt(t)+" is not a constructor")}(n)},ro=Function.prototype,oo=ro.apply,io=ro.call,uo="object"==typeof Reflect&&Reflect.apply||(a?io.bind(oo):function(){return io.apply(oo,arguments)}),ao=function(t){if("Function"===ce(t))return l(t)},co=ao(ao.bind),fo=function(t,e){return yt(t),void 0===e?t:a?co(t,e):function(){return t.apply(e,arguments)}},so=TypeError,lo=/(?:ipad|iphone|ipod).*applewebkit/i.test(Z),po=P.setImmediate,vo=P.clearImmediate,ho=P.process,yo=P.Dispatch,go=P.Function,mo=P.MessageChannel,bo=P.String,wo=0,So={},Oo="onreadystatechange";i((function(){Vr=P.location;}));var Eo=function(t){if(m(So,t)){var e=So[t];delete So[t],e();}},jo=function(t){return function(){Eo(t);}},xo=function(t){Eo(t.data);},Io=function(t){P.postMessage(bo(t),Vr.protocol+"//"+Vr.host);};po&&vo||(po=function(t){!function(t,e){if(t<e)throw new so("Not enough arguments")}(arguments.length,1);var e=I(t)?t:go(t),n=zr(arguments,1);return So[++wo]=function(){uo(e,void 0,n);},Hr(wo),wo},vo=function(t){delete So[t];},$r?Hr=function(t){ho.nextTick(jo(t));}:yo&&yo.now?Hr=function(t){yo.now(jo(t));}:mo&&!lo?(Kr=(qr=new mo).port2,qr.port1.onmessage=xo,Hr=fo(Kr.postMessage,Kr)):P.addEventListener&&I(P.postMessage)&&!P.importScripts&&Vr&&"file:"!==Vr.protocol&&!i(Io)?(Hr=Io,P.addEventListener("message",xo,!1)):Hr=Oo in B("script")?function(t){pn.appendChild(B("script"))[Oo]=function(){pn.removeChild(this),Eo(t);};}:function(t){setTimeout(jo(t),0);});var To={set:po,clear:vo},Po=Object.getOwnPropertyDescriptor,Ro=function(){this.head=null,this.tail=null;};Ro.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e;},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Ao,Co,No,ko,Mo,Lo=Ro,Do=/ipad|iphone|ipod/i.test(Z)&&"undefined"!=typeof Pebble,Fo=/web0s(?!.*chrome)/i.test(Z),zo=To.set,_o=P.MutationObserver||P.WebKitMutationObserver,Uo=P.document,Bo=P.process,Go=P.Promise,Wo=function(t){if(!u)return P[t];var e=Po(P,t);return e&&e.value}("queueMicrotask");if(!Wo){var Vo=new Lo,Ho=function(){var t,e;for($r&&(t=Bo.domain)&&t.exit();e=Vo.get();)try{e();}catch(t){throw Vo.head&&Ao(),t}t&&t.enter();};lo||$r||Fo||!_o||!Uo?!Do&&Go&&Go.resolve?((ko=Go.resolve(void 0)).constructor=Go,Mo=fo(ko.then,ko),Ao=function(){Mo(Ho);}):$r?Ao=function(){Bo.nextTick(Ho);}:(zo=fo(zo,P),Ao=function(){zo(Ho);}):(Co=!0,No=Uo.createTextNode(""),new _o(Ho).observe(No,{characterData:!0}),Ao=function(){No.data=Co=!Co;}),Wo=function(t){Vo.head||Ao(),Vo.add(t);};}var qo=Wo,Ko=function(t){try{return {error:!1,value:t()}}catch(t){return {error:!0,value:t}}},Xo=P.Promise;Xo&&Xo.prototype;var Yo,$o,Jo,Qo,Zo=Tt("species"),ti=!1,ei=I(P.PromiseRejectionEvent),ni=Ge("Promise",(function(){var t=L(Xo),e=t!==String(Xo);if(!e&&66===at)return !0;if(!at||at<51||!/native code/.test(t)){var n=new Xo((function(t){t(1);})),r=function(t){t((function(){}),(function(){}));};if((n.constructor={})[Zo]=r,!(ti=n.then((function(){}))instanceof r))return !0}return !(e||"BROWSER"!==Yr&&"DENO"!==Yr||ei)})),ri={CONSTRUCTOR:ni,REJECTION_EVENT:ei,SUBCLASSING:ti},oi=TypeError,ii=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new oi("Bad Promise constructor");e=t,n=r;})),this.resolve=yt(e),this.reject=yt(n);},ui={f:function(t){return new ii(t)}},ai=To.set,ci="Promise",fi=ri.CONSTRUCTOR,si=ri.REJECTION_EVENT,li=ri.SUBCLASSING,pi=Yt.getterFor(ci),di=Yt.set,vi=Xo&&Xo.prototype,hi=Xo,yi=vi,gi=P.TypeError,mi=P.document,bi=P.process,wi=ui.f,Si=wi,Oi=!!(mi&&mi.createEvent&&P.dispatchEvent),Ei="unhandledrejection",ji=function(t){var e;return !(!z(t)||!I(e=t.then))&&e},xi=function(t,e){var n,r,o,i=e.value,u=1===e.state,a=u?t.ok:t.fail,c=t.resolve,f=t.reject,s=t.domain;try{a?(u||(2===e.rejection&&Ai(e),e.rejection=1),!0===a?n=i:(s&&s.enter(),n=a(i),s&&(s.exit(),o=!0)),n===t.promise?f(new gi("Promise-chain cycle")):(r=ji(n))?X(r,n,c,f):c(n)):f(i);}catch(t){s&&!o&&s.exit(),f(t);}},Ii=function(t,e){t.notified||(t.notified=!0,qo((function(){for(var n,r=t.reactions;n=r.get();)xi(n,t);t.notified=!1,e&&!t.rejection&&Pi(t);})));},Ti=function(t,e,n){var r,o;Oi?((r=mi.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),P.dispatchEvent(r)):r={promise:e,reason:n},!si&&(o=P["on"+t])?o(r):t===Ei&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e);}catch(t){}}("Unhandled promise rejection",n);},Pi=function(t){X(ai,P,(function(){var e,n=t.facade,r=t.value;if(Ri(t)&&(e=Ko((function(){$r?bi.emit("unhandledRejection",r,n):Ti(Ei,n,r);})),t.rejection=$r||Ri(t)?2:1,e.error))throw e.value}));},Ri=function(t){return 1!==t.rejection&&!t.parent},Ai=function(t){X(ai,P,(function(){var e=t.facade;$r?bi.emit("rejectionHandled",e):Ti("rejectionhandled",e,t.value);}));},Ci=function(t,e,n){return function(r){t(e,r,n);}},Ni=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Ii(t,!0));},ki=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new gi("Promise can't be resolved itself");var r=ji(e);r?qo((function(){var n={done:!1};try{X(r,e,Ci(ki,n,t),Ci(Ni,n,t));}catch(e){Ni(n,e,t);}})):(t.value=e,t.state=1,Ii(t,!1));}catch(e){Ni({done:!1},e,t);}}};if(fi&&(yi=(hi=function(t){Zr(this,yi),yt(t),X(Yo,this);var e=pi(this);try{t(Ci(ki,e),Ci(Ni,e));}catch(t){Ni(e,t);}}).prototype,(Yo=function(t){di(this,{type:ci,done:!1,notified:!1,parent:!1,reactions:new Lo,rejection:!1,state:0,value:null});}).prototype=he(yi,"then",(function(t,e){var n=pi(this),r=wi(no(this,hi));return n.parent=!0,r.ok=!I(t)||t,r.fail=I(e)&&e,r.domain=$r?bi.domain:void 0,0===n.state?n.reactions.add(r):qo((function(){xi(r,n);})),r.promise})),$o=function(){var t=new Yo,e=pi(t);this.promise=t,this.resolve=Ci(ki,e),this.reject=Ci(Ni,e);},ui.f=wi=function(t){return t===hi||undefined===t?new $o(t):Si(t)},I(Xo)&&vi!==Object.prototype)){Jo=vi.then,li||he(vi,"then",(function(t,e){var n=this;return new hi((function(t,e){X(Jo,n,t,e);})).then(t,e)}),{unsafe:!0});try{delete vi.constructor;}catch(t){}fr&&fr(vi,yi);}Ve({global:!0,constructor:!0,wrap:!0,forced:fi},{Promise:hi}),rr(hi,ci,!1),Qo=Y(ci),u&&Qo&&!Qo[Jr]&&Jt(Qo,Jr,{configurable:!0,get:function(){return this}});var Mi=Tt("iterator"),Li=Array.prototype,Di=Tt("iterator"),Fi=function(t){if(!p(t))return gt(t,Di)||gt(t,"@@iterator")||Hn[tn(t)]},zi=TypeError,_i=function(t,e,n){var r,o;q(t);try{if(!(r=gt(t,"return"))){if("throw"===e)throw n;return n}r=X(r,t);}catch(t){o=!0,r=t;}if("throw"===e)throw n;if(o)throw r;return q(r),n},Ui=TypeError,Bi=function(t,e){this.stopped=t,this.result=e;},Gi=Bi.prototype,Wi=function(t,e,n){var r,o,i,u,a,c,f,s,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),y=fo(e,l),g=function(t){return r&&_i(r,"normal",t),new Bi(!0,t)},m=function(t){return p?(q(t),h?y(t[0],t[1],g):y(t[0],t[1])):h?y(t,g):y(t)};if(d)r=t.iterator;else if(v)r=t;else {if(!(o=Fi(t)))throw new Ui(vt(t)+" is not iterable");if(void 0!==(s=o)&&(Hn.Array===s||Li[Mi]===s)){for(i=0,u=je(t);u>i;i++)if((a=m(t[i]))&&$(Gi,a))return a;return new Bi(!1)}r=function(t,e){var n=arguments.length<2?Fi(t):e;if(yt(n))return q(X(n,t));throw new zi(vt(t)+" is not iterable")}(t,o);}for(c=d?t.next:r.next;!(f=X(c,r)).done;){try{a=m(f.value);}catch(t){_i(r,"throw",t);}if("object"==typeof a&&a&&$(Gi,a))return a}return new Bi(!1)},Vi=Tt("iterator"),Hi=!1;try{var qi=0,Ki={next:function(){return {done:!!qi++}},return:function(){Hi=!0;}};Ki[Vi]=function(){return this},Array.from(Ki,(function(){throw 2}));}catch(t){}var Xi=function(t,e){try{if(!e&&!Hi)return !1}catch(t){return !1}var n=!1;try{var r={};r[Vi]=function(){return {next:function(){return {done:n=!0}}}},t(r);}catch(t){}return n},Yi=ri.CONSTRUCTOR||!Xi((function(t){Xo.all(t).then(void 0,(function(){}));}));Ve({target:"Promise",stat:!0,forced:Yi},{all:function(t){var e=this,n=ui.f(e),r=n.resolve,o=n.reject,i=Ko((function(){var n=yt(e.resolve),i=[],u=0,a=1;Wi(t,(function(t){var c=u++,f=!1;a++,X(n,e,t).then((function(t){f||(f=!0,i[c]=t,--a||r(i));}),o);})),--a||r(i);}));return i.error&&o(i.value),n.promise}});var $i=ri.CONSTRUCTOR,Ji=Xo&&Xo.prototype;if(Ve({target:"Promise",proto:!0,forced:$i,real:!0},{catch:function(t){return this.then(void 0,t)}}),I(Xo)){var Qi=Y("Promise").prototype.catch;Ji.catch!==Qi&&he(Ji,"catch",Qi,{unsafe:!0});}Ve({target:"Promise",stat:!0,forced:Yi},{race:function(t){var e=this,n=ui.f(e),r=n.reject,o=Ko((function(){var o=yt(e.resolve);Wi(t,(function(t){X(o,e,t).then(n.resolve,r);}));}));return o.error&&r(o.value),n.promise}}),Ve({target:"Promise",stat:!0,forced:ri.CONSTRUCTOR},{reject:function(t){var e=ui.f(this);return (0, e.reject)(t),e.promise}});var Zi=ri.CONSTRUCTOR;Y("Promise"),Ve({target:"Promise",stat:!0,forced:Zi},{resolve:function(t){return function(t,e){if(q(t),z(e)&&e.constructor===t)return e;var n=ui.f(t);return (0, n.resolve)(e),n.promise}(this,t)}});var tu=RegExp.prototype,eu=O.PROPER,nu="toString",ru=RegExp.prototype,ou=ru[nu],iu=i((function(){return "/a/b"!==ou.call({source:"a",flags:"b"})})),uu=eu&&ou.name!==nu;(iu||uu)&&he(ru,nu,(function(){var t=q(this),e=nn(t.source),n=nn(function(t){var e=t.flags;return void 0!==e||"flags"in tu||m(t,"flags")||!$(tu,t)?e:X(rn,t)}(t));return "/"+e+"/"+n}),{unsafe:!0});var au=l("".charAt),cu=l("".charCodeAt),fu=l("".slice),su=function(t){return function(e,n){var r,o,i=nn(v(e)),u=be(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=cu(i,u))<55296||r>56319||u+1===a||(o=cu(i,u+1))<56320||o>57343?t?au(i,u):r:t?fu(i,u,u+2):o-56320+(r-55296<<10)+65536}},lu={codeAt:su(!1),charAt:su(!0)}.charAt,pu="String Iterator",du=Yt.set,vu=Yt.getterFor(pu);br(String,"String",(function(t){du(this,{type:pu,string:nn(t),index:0});}),(function(){var t,e=vu(this),n=e.string,r=e.index;return r>=n.length?wr(void 0,!0):(t=lu(n,r),e.index+=t.length,wr(t,!1))}));var hu=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),yu=function(t,e,n){for(var r in e)he(t,r,e[r],n);return t},gu=Ce.f,mu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],bu={f:function(t){return mu&&"Window"===ce(t)?function(t){try{return gu(t)}catch(t){return zr(mu)}}(t):gu(pe(t))}},wu=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8});}})),Su=Object.isExtensible,Ou=i((function(){Su(1);}))||wu?function(t){return !!z(t)&&((!wu||"ArrayBuffer"!==ce(t))&&(!Su||Su(t)))}:Su,Eu=j((function(t){var e=zt.f,n=!1,r=Et("meta"),o=0,i=function(t){e(t,r,{value:{objectID:"O"+o++,weakData:{}}});},u=t.exports={enable:function(){u.enable=function(){},n=!0;var t=Ce.f,e=l([].splice),o={};o[r]=1,t(o).length&&(Ce.f=function(n){for(var o=t(n),i=0,u=o.length;i<u;i++)if(o[i]===r){e(o,i,1);break}return o},Ve({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:bu.f}));},fastKey:function(t,e){if(!z(t))return "symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!m(t,r)){if(!Ou(t))return "F";if(!e)return "E";i(t);}return t[r].objectID},getWeakData:function(t,e){if(!m(t,r)){if(!Ou(t))return !0;if(!e)return !1;i(t);}return t[r].weakData},onFreeze:function(t){return hu&&n&&Ou(t)&&!m(t,r)&&i(t),t}};Wt[r]=!0;})),ju=Tt("species"),xu=Array,Iu=function(t,e){return new(function(t){var e;return Tr(t)&&(e=t.constructor,(Dr(e)&&(e===xu||Tr(e.prototype))||z(e)&&null===(e=e[ju]))&&(e=void 0)),void 0===e?xu:e}(t))(0===e?0:e)},Tu=l([].push),Pu=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,f,s,l){for(var p,d,v=y(c),h=le(v),g=je(h),m=fo(f,s),b=0,w=l||Iu,S=e?w(c,g):n||u?w(c,0):void 0;g>b;b++)if((a||b in h)&&(d=m(p=h[b],b,v),t))if(e)S[b]=d;else if(d)switch(t){case 3:return !0;case 5:return p;case 6:return b;case 2:Tu(S,p);}else switch(t){case 4:return !1;case 7:Tu(S,p);}return i?-1:r||o?o:S}},Ru={forEach:Pu(0),map:Pu(1),filter:Pu(2),some:Pu(3),every:Pu(4),find:Pu(5),findIndex:Pu(6),filterReject:Pu(7)},Au=Eu.getWeakData,Cu=Yt.set,Nu=Yt.getterFor,ku=Ru.find,Mu=Ru.findIndex,Lu=l([].splice),Du=0,Fu=function(t){return t.frozen||(t.frozen=new zu)},zu=function(){this.entries=[];},_u=function(t,e){return ku(t.entries,(function(t){return t[0]===e}))};zu.prototype={get:function(t){var e=_u(this,t);if(e)return e[1]},has:function(t){return !!_u(this,t)},set:function(t,e){var n=_u(this,t);n?n[1]=e:this.entries.push([t,e]);},delete:function(t){var e=Mu(this.entries,(function(e){return e[0]===t}));return ~e&&Lu(this.entries,e,1),!!~e}};var Uu,Bu={getConstructor:function(t,e,n,r){var o=t((function(t,o){Zr(t,i),Cu(t,{type:e,id:Du++,frozen:null}),p(o)||Wi(o,t[r],{that:t,AS_ENTRIES:n});})),i=o.prototype,u=Nu(e),a=function(t,e,n){var r=u(t),o=Au(q(e),!0);return !0===o?Fu(r).set(e,n):o[r.id]=n,t};return yu(i,{delete:function(t){var e=u(this);if(!z(t))return !1;var n=Au(t);return !0===n?Fu(e).delete(t):n&&m(n,e.id)&&delete n[e.id]},has:function(t){var e=u(this);if(!z(t))return !1;var n=Au(t);return !0===n?Fu(e).has(t):n&&m(n,e.id)}}),yu(i,n?{get:function(t){var e=u(this);if(z(t)){var n=Au(t);if(!0===n)return Fu(e).get(t);if(n)return n[e.id]}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Gu=Yt.enforce,Wu=Object,Vu=Array.isArray,Hu=Wu.isExtensible,qu=Wu.isFrozen,Ku=Wu.isSealed,Xu=Wu.freeze,Yu=Wu.seal,$u=!P.ActiveXObject&&"ActiveXObject"in P,Ju=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Qu=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),u=r?"set":"add",a=P[t],c=a&&a.prototype,f=a,s={},d=function(t){var e=l(c[t]);he(c,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return !(o&&!z(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!z(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return !(o&&!z(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this});};if(Ge(t,!I(a)||!(o||c.forEach&&!i((function(){(new a).entries().next();})))))f=n.getConstructor(e,t,r,u),Eu.enable();else if(Ge(t,!0)){var v=new f,h=v[u](o?{}:-0,1)!==v,y=i((function(){v.has(1);})),g=Xi((function(t){new a(t);})),m=!o&&i((function(){for(var t=new a,e=5;e--;)t[u](e,e);return !t.has(-0)}));g||((f=e((function(t,e){Zr(t,c);var n=function(t,e,n){var r,o;return fr&&I(r=e.constructor)&&r!==n&&z(o=r.prototype)&&o!==n.prototype&&fr(t,o),t}(new a,t,f);return p(e)||Wi(e,n[u],{that:n,AS_ENTRIES:r}),n}))).prototype=c,c.constructor=f),(y||m)&&(d("delete"),d("has"),r&&d("get")),(m||h)&&d(u),o&&c.clear&&delete c.clear;}return s[t]=f,Ve({global:!0,constructor:!0,forced:f!==a},s),rr(f,t),o||n.setStrong(f,t,r),f}("WeakMap",Ju,Bu),Zu=Qu.prototype,ta=l(Zu.set);if(F)if($u){Uu=Bu.getConstructor(Ju,"WeakMap",!0),Eu.enable();var ea=l(Zu.delete),na=l(Zu.has),ra=l(Zu.get);yu(Zu,{delete:function(t){if(z(t)&&!Hu(t)){var e=Gu(this);return e.frozen||(e.frozen=new Uu),ea(this,t)||e.frozen.delete(t)}return ea(this,t)},has:function(t){if(z(t)&&!Hu(t)){var e=Gu(this);return e.frozen||(e.frozen=new Uu),na(this,t)||e.frozen.has(t)}return na(this,t)},get:function(t){if(z(t)&&!Hu(t)){var e=Gu(this);return e.frozen||(e.frozen=new Uu),na(this,t)?ra(this,t):e.frozen.get(t)}return ra(this,t)},set:function(t,e){if(z(t)&&!Hu(t)){var n=Gu(this);n.frozen||(n.frozen=new Uu),na(this,t)?ta(this,t,e):n.frozen.set(t,e);}else ta(this,t,e);return this}});}else hu&&i((function(){var t=Xu([]);return ta(new Qu,t,1),!qu(t)}))&&yu(Zu,{set:function(t,e){var n;return Vu(t)&&(qu(t)?n=Xu:Ku(t)&&(n=Yu)),ta(this,t,e),n&&n(t),this}});var oa={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},ia=B("span").classList,ua=ia&&ia.constructor&&ia.constructor.prototype,aa=ua===Object.prototype?void 0:ua,ca=Ru.forEach,fa=He("forEach")?[].forEach:function(t){return ca(this,t,arguments.length>1?arguments[1]:void 0)},sa=function(t){if(t&&t.forEach!==fa)try{Ut(t,"forEach",fa);}catch(e){t.forEach=fa;}};for(var la in oa)oa[la]&&sa(P[la]&&P[la].prototype);sa(aa);var pa=Tt("iterator"),da=xr.values,va=function(t,e){if(t){if(t[pa]!==da)try{Ut(t,pa,da);}catch(e){t[pa]=da;}if(rr(t,e,!0),oa[e])for(var n in xr)if(t[n]!==xr[n])try{Ut(t,n,xr[n]);}catch(e){t[n]=xr[n];}}};for(var ha in oa)va(P[ha]&&P[ha].prototype,ha);va(aa,"DOMTokenList");var ya=function(){return ya=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ya.apply(this,arguments)};function ga(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{c(r.next(t));}catch(t){i(t);}}function a(t){try{c(r.throw(t));}catch(t){i(t);}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e);}))).then(u,a);}c((r=r.apply(t,e||[])).next());}))}function ma(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u);}catch(t){a=[6,t],r=0;}finally{n=o=0;}if(5&a[0])throw a[1];return {value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function ba(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function wa(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=ba(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n});}),e);})(r,o,(e=t[n](e)).done,e.value);}))};}}"function"==typeof SuppressedError&&SuppressedError;var Sa=new WeakMap;function Oa(t){return t.getMenuConfig("uploadImage")}function Ea(t,n){return ga(this,void 0,void 0,(function(){return ma(this,(function(r){return [2,new Promise((function(r){var o=new FileReader;o.readAsDataURL(n),o.onload=function(){var i=o.result;if(i){var u=i.toString(),a=0===u.indexOf("data:image")?"":u;e.insertImageNode(t,u,n.name,a),r("ok");}};}))]}))}))}function ja(n,r){return ga(this,void 0,void 0,(function(){var o,i,u,a;return ma(this,(function(c){switch(c.label){case 0:return o=function(n){var r=Sa.get(n);if(null!=r)return r;var o=Oa(n),i=o.onSuccess,u=o.onProgress,a=o.onFailed,c=o.customInsert,f=o.onError;return r=t.createUploader(ya(ya({},o),{onProgress:function(t){n.showProgressBar(t),u&&u(t);},onSuccess:function(t,r){if(c)return c(r,(function(t,r,o){return e.insertImageNode(n,t,r,o)})),void i(t,r);var o=r.errno,u=void 0===o?1:o,f=r.data,s=void 0===f?{}:f;if(0===u){if(Array.isArray(s))s.forEach((function(t){var r=t.url,o=void 0===r?"":r,i=t.alt,u=void 0===i?"":i,a=t.href,c=void 0===a?"":a;e.insertImageNode(n,o,u,c);}));else {var l=s.url,p=void 0===l?"":l,d=s.alt,v=void 0===d?"":d,h=s.href,y=void 0===h?"":h;e.insertImageNode(n,p,v,y);}i(t,r);}else a(t,r);},onError:function(t,e,n){f(t,e,n);}})),Sa.set(n,r),r}(n),i=r.name,u=r.type,a=r.size,o.addFile({name:i,type:u,size:a,data:r}),[4,o.upload()];case 1:return c.sent(),[2]}}))}))}function xa(t,n){var r,o,i,u;return ga(this,void 0,void 0,(function(){var a,c,f,s,l,p,d,v,h,y;return ma(this,(function(g){switch(g.label){case 0:if(null==n)return [2];a=Array.prototype.slice.call(n),c=Oa(t),f=c.customUpload,s=c.base64LimitSize,g.label=1;case 1:g.trys.push([1,14,15,20]),l=!0,p=wa(a),g.label=2;case 2:return [4,p.next()];case 3:if(d=g.sent(),r=d.done)return [3,13];u=d.value,l=!1,g.label=4;case 4:return g.trys.push([4,,11,12]),h=(v=u).size,s&&h<=s?[4,Ea(t,v)]:[3,6];case 5:return g.sent(),[3,10];case 6:return f?[4,f(v,(function(n,r,o){return e.insertImageNode(t,n,r,o)}))]:[3,8];case 7:return g.sent(),[3,10];case 8:return [4,ja(t,v)];case 9:g.sent(),g.label=10;case 10:return [3,12];case 11:return l=!0,[7];case 12:return [3,2];case 13:return [3,20];case 14:return y=g.sent(),o={error:y},[3,20];case 15:return g.trys.push([15,,18,19]),l||r||!(i=p.return)?[3,17]:[4,i.call(p)];case 16:g.sent(),g.label=17;case 17:return [3,19];case 18:if(o)throw o.error;return [7];case 19:return [7];case 20:return [2]}}))}))}var Ia=function(){function n(){this.title=t.t("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 n.prototype.getValue=function(t){return ""},n.prototype.isActive=function(t){return !1},n.prototype.isDisabled=function(t){return e.isInsertImageMenuDisabled(t)},n.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},n.prototype.exec=function(t,n){var r=this.getMenuConfig(t),i=r.allowedFileTypes,u=void 0===i?[]:i,a=r.customBrowseAndUpload;if(a)a((function(n,r,o){return e.insertImageNode(t,n,r,o)}));else {var c="";u.length>0&&(c='accept="'.concat(u.join(", "),'"'));var f=o.default("body"),s=o.default('<input type="file" '.concat(c," multiple/>"));s.hide(),f.append(s),s.click(),s.on("change",(function(){var e=s[0].files;xa(t,e);}));}},n}();var Ta={menus:[{key:"uploadImage",factory:function(){return new Ia},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'".concat(t.name,"' upload failed"),e);},onError:function(t,e,n){console.error("'".concat(t.name,"' upload error"),n);},base64LimitSize:0}}],editorPlugin:function(t){var n=t.insertData,r=t;return r.insertData=function(o){if(e.isInsertImageMenuDisabled(r))n(o);else if(o.getData("text/plain"))n(o);else {var i=o.files;if(i.length<=0)n(o);else Array.prototype.slice.call(i).some((function(t){return "image"===function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value);}catch(t){o={error:t};}finally{try{r&&!r.done&&(n=i.return)&&n.call(i);}finally{if(o)throw o.error}}return u}(t.type.split("/"),1)[0]}))?xa(t,i):n(o);}},r}};return Ta}));
21703
21703
 
21704
21704
  });
21705
21705
 
21706
21706
  var dist = createCommonjsModule$1(function (module, exports) {
21707
- !function(e,t){t(exports,dist$6,require$$1,dist$7);}(commonjsGlobal,(function(e,t,n,a){function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(n);t.i18nAddResources("en",{highLightModule:{selectLang:"Language"}}),t.i18nAddResources("zh-CN",{highLightModule:{selectLang:"选择语言"}});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function o(e){var t={exports:{}};return e(t,t.exports),t.exports}var l,u,c=function(e){return e&&e.Math===Math&&e},d=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof s&&s)||c("object"==typeof s&&s)||function(){return this}()||Function("return this")(),p=Object.defineProperty,g=function(e,t){try{p(d,e,{value:t,configurable:!0,writable:!0});}catch(n){d[e]=t;}return t},E=o((function(e){var t="__core-js_shared__",n=e.exports=d[t]||g(t,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),f=function(e,t){return E[e]||(E[e]=t||{})},b=function(e){try{return !!e()}catch(e){return !0}},S=!b((function(){var e=function(){}.bind();return "function"!=typeof e||e.hasOwnProperty("prototype")})),T=Function.prototype,h=T.call,m=S&&T.bind.bind(h,h),N=S?m:function(e){return function(){return h.apply(e,arguments)}},I=function(e){return null==e},A=TypeError,O=function(e){if(I(e))throw new A("Can't call method on "+e);return e},R=Object,y=function(e){return R(O(e))},L=N({}.hasOwnProperty),C=Object.hasOwn||function(e,t){return L(y(e),t)},v=0,D=Math.random(),w=N(1..toString),P=function(e){return "Symbol("+(void 0===e?"":e)+")_"+w(++v+D,36)},k=d.navigator,_=k&&k.userAgent,x=_?String(_):"",F=d.process,M=d.Deno,U=F&&F.versions||M&&M.version,G=U&&U.v8;G&&(u=(l=G.split("."))[0]>0&&l[0]<4?1:+(l[0]+l[1])),!u&&x&&(!(l=x.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=x.match(/Chrome\/(\d+)/))&&(u=+l[1]);var B=u,H=d.String,$=!!Object.getOwnPropertySymbols&&!b((function(){var e=Symbol("symbol detection");return !H(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&B&&B<41})),Y=$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,j=d.Symbol,z=f("wks"),V=Y?j.for||j:j&&j.withoutSetter||P,X=function(e){return C(z,e)||(z[e]=$&&C(j,e)?j[e]:V("Symbol."+e)),z[e]},W={};W[X("toStringTag")]="z";var K="[object z]"===String(W),Z="object"==typeof document&&document.all,q=void 0===Z&&void 0!==Z?function(e){return "function"==typeof e||e===Z}:function(e){return "function"==typeof e},Q=!b((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),J=function(e){return "object"==typeof e?null!==e:q(e)},ee=d.document,te=J(ee)&&J(ee.createElement),ne=function(e){return te?ee.createElement(e):{}},ae=!Q&&!b((function(){return 7!==Object.defineProperty(ne("div"),"a",{get:function(){return 7}}).a})),re=Q&&b((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ie=String,se=TypeError,oe=function(e){if(J(e))return e;throw new se(ie(e)+" is not an object")},le=Function.prototype.call,ue=S?le.bind(le):function(){return le.apply(le,arguments)},ce=function(e,t){return arguments.length<2?(n=d[e],q(n)?n:void 0):d[e]&&d[e][t];var n;},de=N({}.isPrototypeOf),pe=Object,ge=Y?function(e){return "symbol"==typeof e}:function(e){var t=ce("Symbol");return q(t)&&de(t.prototype,pe(e))},Ee=String,fe=TypeError,be=function(e){if(q(e))return e;throw new fe(function(e){try{return Ee(e)}catch(e){return "Object"}}(e)+" is not a function")},Se=TypeError,Te=TypeError,he=X("toPrimitive"),me=function(e,t){if(!J(e)||ge(e))return e;var n,a,r=(n=e[he],I(n)?void 0:be(n));if(r){if(void 0===t&&(t="default"),a=ue(r,e,t),!J(a)||ge(a))return a;throw new Te("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,a;if("string"===t&&q(n=e.toString)&&!J(a=ue(n,e)))return a;if(q(n=e.valueOf)&&!J(a=ue(n,e)))return a;if("string"!==t&&q(n=e.toString)&&!J(a=ue(n,e)))return a;throw new Se("Can't convert object to primitive value")}(e,t)},Ne=function(e){var t=me(e,"string");return ge(t)?t:t+""},Ie=TypeError,Ae=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Re="enumerable",ye="configurable",Le="writable",Ce={f:Q?re?function(e,t,n){if(oe(e),t=Ne(t),oe(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Le in n&&!n[Le]){var a=Oe(e,t);a&&a[Le]&&(e[t]=n.value,n={configurable:ye in n?n[ye]:a[ye],enumerable:Re in n?n[Re]:a[Re],writable:!1});}return Ae(e,t,n)}:Ae:function(e,t,n){if(oe(e),t=Ne(t),oe(n),ae)try{return Ae(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Ie("Accessors not supported");return "value"in n&&(e[t]=n.value),e}},ve=Function.prototype,De=Q&&Object.getOwnPropertyDescriptor,we=C(ve,"name"),Pe={EXISTS:we,PROPER:we&&"something"===function(){}.name,CONFIGURABLE:we&&(!Q||Q&&De(ve,"name").configurable)},ke=N(Function.toString);q(E.inspectSource)||(E.inspectSource=function(e){return ke(e)});var _e,xe,Fe,Me=E.inspectSource,Ue=d.WeakMap,Ge=q(Ue)&&/native code/.test(String(Ue)),Be=function(e,t){return {enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},He=Q?function(e,t,n){return Ce.f(e,t,Be(1,n))}:function(e,t,n){return e[t]=n,e},$e=f("keys"),Ye=function(e){return $e[e]||($e[e]=P(e))},je={},ze="Object already initialized",Ve=d.TypeError,Xe=d.WeakMap;if(Ge||E.state){var We=E.state||(E.state=new Xe);We.get=We.get,We.has=We.has,We.set=We.set,_e=function(e,t){if(We.has(e))throw new Ve(ze);return t.facade=e,We.set(e,t),t},xe=function(e){return We.get(e)||{}},Fe=function(e){return We.has(e)};}else {var Ke=Ye("state");je[Ke]=!0,_e=function(e,t){if(C(e,Ke))throw new Ve(ze);return t.facade=e,He(e,Ke,t),t},xe=function(e){return C(e,Ke)?e[Ke]:{}},Fe=function(e){return C(e,Ke)};}var Ze={set:_e,get:xe,has:Fe,enforce:function(e){return Fe(e)?xe(e):_e(e,{})},getterFor:function(e){return function(t){var n;if(!J(t)||(n=xe(t)).type!==e)throw new Ve("Incompatible receiver, "+e+" required");return n}}},qe=o((function(e){var t=Pe.CONFIGURABLE,n=Ze.enforce,a=Ze.get,r=String,i=Object.defineProperty,s=N("".slice),o=N("".replace),l=N([].join),u=Q&&!b((function(){return 8!==i((function(){}),"length",{value:8}).length})),c=String(String).split("String"),d=e.exports=function(e,a,d){"Symbol("===s(r(a),0,7)&&(a="["+o(r(a),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),d&&d.getter&&(a="get "+a),d&&d.setter&&(a="set "+a),(!C(e,"name")||t&&e.name!==a)&&(Q?i(e,"name",{value:a,configurable:!0}):e.name=a),u&&d&&C(d,"arity")&&e.length!==d.arity&&i(e,"length",{value:d.arity});try{d&&C(d,"constructor")&&d.constructor?Q&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0);}catch(e){}var p=n(e);return C(p,"source")||(p.source=l(c,"string"==typeof a?a:"")),e};Function.prototype.toString=d((function(){return q(this)&&a(this).source||Me(this)}),"toString");})),Qe=function(e,t,n,a){a||(a={});var r=a.enumerable,i=void 0!==a.name?a.name:t;if(q(n)&&qe(n,i,a),a.global)r?e[t]=n:g(t,n);else {try{a.unsafe?e[t]&&(r=!0):delete e[t];}catch(e){}r?e[t]=n:Ce.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable});}return e},Je=N({}.toString),et=N("".slice),tt=function(e){return et(Je(e),8,-1)},nt=X("toStringTag"),at=Object,rt="Arguments"===tt(function(){return arguments}()),it=K?tt:function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=at(e),nt))?n:rt?tt(t):"Object"===(a=tt(t))&&q(t.callee)?"Arguments":a},st=K?{}.toString:function(){return "[object "+it(this)+"]"};K||Qe(Object.prototype,"toString",st,{unsafe:!0});var ot={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},lt=ne("span").classList,ut=lt&&lt.constructor&&lt.constructor.prototype,ct=ut===Object.prototype?void 0:ut,dt=function(e){if("Function"===tt(e))return N(e)},pt=dt(dt.bind),gt=Object,Et=N("".split),ft=b((function(){return !gt("z").propertyIsEnumerable(0)}))?function(e){return "String"===tt(e)?Et(e,""):gt(e)}:gt,bt=Math.ceil,St=Math.floor,Tt=Math.trunc||function(e){var t=+e;return (t>0?St:bt)(t)},ht=function(e){var t=+e;return t!=t||0===t?0:Tt(t)},mt=Math.min,Nt=function(e){return t=e.length,(n=ht(t))>0?mt(n,9007199254740991):0;var t,n;},It=Array.isArray||function(e){return "Array"===tt(e)},At=function(){},Ot=ce("Reflect","construct"),Rt=/^\s*(?:class|function)\b/,yt=N(Rt.exec),Lt=!Rt.test(At),Ct=function(e){if(!q(e))return !1;try{return Ot(At,[],e),!0}catch(e){return !1}},vt=function(e){if(!q(e))return !1;switch(it(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return Lt||!!yt(Rt,Me(e))}catch(e){return !0}};vt.sham=!0;var Dt,wt,Pt=!Ot||b((function(){var e;return Ct(Ct.call)||!Ct(Object)||!Ct((function(){e=!0;}))||e}))?vt:Ct,kt=X("species"),_t=Array,xt=function(e,t){return new(function(e){var t;return It(e)&&(t=e.constructor,(Pt(t)&&(t===_t||It(t.prototype))||J(t)&&null===(t=t[kt]))&&(t=void 0)),void 0===t?_t:t}(e))(0===t?0:t)},Ft=N([].push),Mt=function(e){var t=1===e,n=2===e,a=3===e,r=4===e,i=6===e,s=7===e,o=5===e||i;return function(l,u,c,d){for(var p,g,E=y(l),f=ft(E),b=Nt(f),T=function(e,t){return be(e),void 0===t?e:S?pt(e,t):function(){return e.apply(t,arguments)}}(u,c),h=0,m=d||xt,N=t?m(l,b):n||s?m(l,0):void 0;b>h;h++)if((o||h in f)&&(g=T(p=f[h],h,E),e))if(t)N[h]=g;else if(g)switch(e){case 3:return !0;case 5:return p;case 6:return h;case 2:Ft(N,p);}else switch(e){case 4:return !1;case 7:Ft(N,p);}return i?-1:a||r?r:N}},Ut={forEach:Mt(0),map:Mt(1),filter:Mt(2),some:Mt(3),every:Mt(4),find:Mt(5),findIndex:Mt(6),filterReject:Mt(7)}.forEach,Gt=!!(wt=[]["forEach"])&&b((function(){wt.call(null,Dt||function(){return 1},1);}))?[].forEach:function(e){return Ut(this,e,arguments.length>1?arguments[1]:void 0)},Bt=function(e){if(e&&e.forEach!==Gt)try{He(e,"forEach",Gt);}catch(t){e.forEach=Gt;}};for(var Ht in ot)ot[Ht]&&Bt(d[Ht]&&d[Ht].prototype);Bt(ct);var $t={}.propertyIsEnumerable,Yt=Object.getOwnPropertyDescriptor,jt={f:Yt&&!$t.call({1:2},1)?function(e){var t=Yt(this,e);return !!t&&t.enumerable}:$t},zt=function(e){return ft(O(e))},Vt=Object.getOwnPropertyDescriptor,Xt={f:Q?Vt:function(e,t){if(e=zt(e),t=Ne(t),ae)try{return Vt(e,t)}catch(e){}if(C(e,t))return Be(!ue(jt.f,e,t),e[t])}},Wt=Math.max,Kt=Math.min,Zt=function(e){return function(t,n,a){var r=zt(t),i=Nt(r);if(0===i)return !e&&-1;var s,o=function(e,t){var n=ht(e);return n<0?Wt(n+t,0):Kt(n,t)}(a,i);if(e&&n!=n){for(;i>o;)if((s=r[o++])!=s)return !0}else for(;i>o;o++)if((e||o in r)&&r[o]===n)return e||o||0;return !e&&-1}},qt={includes:Zt(!0),indexOf:Zt(!1)}.indexOf,Qt=N([].push),Jt=function(e,t){var n,a=zt(e),r=0,i=[];for(n in a)!C(je,n)&&C(a,n)&&Qt(i,n);for(;t.length>r;)C(a,n=t[r++])&&(~qt(i,n)||Qt(i,n));return i},en=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tn=en.concat("length","prototype"),nn={f:Object.getOwnPropertyNames||function(e){return Jt(e,tn)}},an={f:Object.getOwnPropertySymbols},rn=N([].concat),sn=ce("Reflect","ownKeys")||function(e){var t=nn.f(oe(e)),n=an.f;return n?rn(t,n(e)):t},on=function(e,t,n){for(var a=sn(t),r=Ce.f,i=Xt.f,s=0;s<a.length;s++){var o=a[s];C(e,o)||n&&C(n,o)||r(e,o,i(t,o));}},ln=/#|\.prototype\./,un=function(e,t){var n=dn[cn(e)];return n===gn||n!==pn&&(q(t)?b(t):!!t)},cn=un.normalize=function(e){return String(e).replace(ln,".").toLowerCase()},dn=un.data={},pn=un.NATIVE="N",gn=un.POLYFILL="P",En=un,fn=Xt.f,bn=function(e,t){var n,a,r,i,s,o=e.target,l=e.global,u=e.stat;if(n=l?d:u?d[o]||g(o,{}):d[o]&&d[o].prototype)for(a in t){if(i=t[a],r=e.dontCallGetSet?(s=fn(n,a))&&s.value:n[a],!En(l?a:o+(u?".":"#")+a,e.forced)&&void 0!==r){if(typeof i==typeof r)continue;on(i,r);}(e.sham||r&&r.sham)&&He(i,"sham",!0),Qe(n,a,i,e);}},Sn=Object.keys||function(e){return Jt(e,en)},Tn=Object.assign,hn=Object.defineProperty,mn=N([].concat),Nn=!Tn||b((function(){if(Q&&1!==Tn({b:1},Tn(hn({},"a",{enumerable:!0,get:function(){hn(this,"b",{value:3,enumerable:!1});}}),{b:2})).b)return !0;var e={},t={},n=Symbol("assign detection"),a="abcdefghijklmnopqrst";return e[n]=7,a.split("").forEach((function(e){t[e]=e;})),7!==Tn({},e)[n]||Sn(Tn({},t)).join("")!==a}))?function(e,t){for(var n=y(e),a=arguments.length,r=1,i=an.f,s=jt.f;a>r;)for(var o,l=ft(arguments[r++]),u=i?mn(Sn(l),i(l)):Sn(l),c=u.length,d=0;c>d;)o=u[d++],Q&&!ue(s,l,o)||(n[o]=l[o]);return n}:Tn;bn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Nn},{assign:Nn});var In=o((function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,a={},r={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 a,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var s in a={},n[i]=a,t)t.hasOwnProperty(s)&&(a[s]=e(t[s],n));return a;case"Array":return i=r.util.objId(t),n[i]?n[i]:(a=[],n[i]=a,t.forEach((function(t,r){a[r]=e(t,n);})),a);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement;}return "none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n);},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(a){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.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 a="no-"+t;e;){var r=e.classList;if(r.contains(t))return !0;if(r.contains(a))return !1;e=e.parentElement;}return !!n}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var i=(a=a||r.languages)[e],s={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var l in n)n.hasOwnProperty(l)&&(s[l]=n[l]);n.hasOwnProperty(o)||(s[o]=i[o]);}var u=a[e];return a[e]=s,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=s);})),s},DFS:function e(t,n,a,i){i=i||{};var s=r.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],a||o);var l=t[o],u=r.util.type(l);"Object"!==u||i[s(l)]?"Array"!==u||i[s(l)]||(i[s(l)]=!0,e(l,n,o,i)):(i[s(l)]=!0,e(l,n,null,i));}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t);},highlightAllUnder:function(e,t,n){var a={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),r.hooks.run("before-all-elements-highlight",a);for(var i,s=0;i=a.elements[s++];)r.highlightElement(i,!0===t,a.callback);},highlightElement:function(t,n,a){var i=r.util.getLanguage(t),s=r.languages[i];r.util.setLanguage(t,i);var o=t.parentElement;o&&"pre"===o.nodeName.toLowerCase()&&r.util.setLanguage(o,i);var l={element:t,language:i,grammar:s,code:t.textContent};function u(e){l.highlightedCode=e,r.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,r.hooks.run("after-highlight",l),r.hooks.run("complete",l),a&&a.call(l.element);}if(r.hooks.run("before-sanity-check",l),(o=l.element.parentElement)&&"pre"===o.nodeName.toLowerCase()&&!o.hasAttribute("tabindex")&&o.setAttribute("tabindex","0"),!l.code)return r.hooks.run("complete",l),void(a&&a.call(l.element));if(r.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var c=new Worker(r.filename);c.onmessage=function(e){u(e.data);},c.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}));}else u(r.highlight(l.code,l.grammar,l.language));else u(r.util.encode(l.code));},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),i.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var a in n)t[a]=n[a];delete t.rest;}var r=new l;return u(r,r.head,e),o(e,r,t,r.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(r)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t);},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,i=0;a=n[i++];)a(t);}},Token:i};function i(e,t,n,a){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length;}function s(e,t,n,a){e.lastIndex=t;var r=e.exec(n);if(r&&a&&r[1]){var i=r[1].length;r.index+=i,r[0]=r[0].slice(i);}return r}function o(e,t,n,a,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var g=n[p];g=Array.isArray(g)?g:[g];for(var E=0;E<g.length;++E){if(d&&d.cause==p+","+E)return;var f=g[E],b=f.inside,S=!!f.lookbehind,T=!!f.greedy,h=f.alias;if(T&&!f.pattern.global){var m=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,m+"g");}for(var N=f.pattern||f,I=a.next,A=l;I!==t.tail&&!(d&&A>=d.reach);A+=I.value.length,I=I.next){var O=I.value;if(t.length>e.length)return;if(!(O instanceof i)){var R,y=1;if(T){if(!(R=s(N,A,e,S))||R.index>=e.length)break;var L=R.index,C=R.index+R[0].length,v=A;for(v+=I.value.length;L>=v;)v+=(I=I.next).value.length;if(A=v-=I.value.length,I.value instanceof i)continue;for(var D=I;D!==t.tail&&(v<C||"string"==typeof D.value);D=D.next)y++,v+=D.value.length;y--,O=e.slice(A,v),R.index-=A;}else if(!(R=s(N,0,O,S)))continue;L=R.index;var w=R[0],P=O.slice(0,L),k=O.slice(L+w.length),_=A+O.length;d&&_>d.reach&&(d.reach=_);var x=I.prev;if(P&&(x=u(t,x,P),A+=P.length),c(t,x,y),I=u(t,x,new i(p,b?r.tokenize(w,b):w,h,w)),k&&u(t,I,k),y>1){var F={cause:p+","+E,reach:_};o(e,t,n,I.prev,A,F),d&&F.reach>d.reach&&(d.reach=F.reach);}}}}}}function l(){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 u(e,t,n){var a=t.next,r={value:n,prev:t,next:a};return t.next=r,a.prev=r,e.length++,r}function c(e,t,n){for(var a=t.next,r=0;r<n&&a!==e.tail;r++)a=a.next;t.next=a,a.prev=t,e.length-=r;}if(e.Prism=r,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n);})),a}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(i.classes,s):i.classes.push(s)),r.hooks.run("wrap",i);var o="";for(var l in i.attributes)o+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,"&quot;")+'"';return "<"+i.tag+' class="'+i.classes.join(" ")+'"'+o+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),a=n.language,i=n.code,s=n.immediateClose;e.postMessage(r.highlight(i,r.languages[a],a)),s&&e.close();}),!1),r):r;var d=r.util.currentScript();function p(){r.manual||r.highlightAll();}if(d&&(r.filename=d.src,d.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var g=document.readyState;"loading"===g||"interactive"===g&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16);}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
21707
+ !function(e,t){t(exports,dist$6,dist$7,require$$2);}(commonjsGlobal,(function(e,t,n,a){function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(a);t.i18nAddResources("en",{highLightModule:{selectLang:"Language"}}),t.i18nAddResources("zh-CN",{highLightModule:{selectLang:"选择语言"}});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};function o(e){var t={exports:{}};return e(t,t.exports),t.exports}var l,u,c=function(e){return e&&e.Math===Math&&e},d=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof s&&s)||c("object"==typeof s&&s)||function(){return this}()||Function("return this")(),p=function(e){try{return !!e()}catch(e){return !0}},g=!p((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=!p((function(){var e=function(){}.bind();return "function"!=typeof e||e.hasOwnProperty("prototype")})),f=Function.prototype.call,b=E?f.bind(f):function(){return f.apply(f,arguments)},S={}.propertyIsEnumerable,T=Object.getOwnPropertyDescriptor,h={f:T&&!S.call({1:2},1)?function(e){var t=T(this,e);return !!t&&t.enumerable}:S},m=function(e,t){return {enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},N=Function.prototype,I=N.call,A=E&&N.bind.bind(I,I),O=E?A:function(e){return function(){return I.apply(e,arguments)}},R=O({}.toString),y=O("".slice),L=function(e){return y(R(e),8,-1)},C=Object,v=O("".split),w=p((function(){return !C("z").propertyIsEnumerable(0)}))?function(e){return "String"===L(e)?v(e,""):C(e)}:C,D=function(e){return null==e},P=TypeError,k=function(e){if(D(e))throw new P("Can't call method on "+e);return e},_=function(e){return w(k(e))},x="object"==typeof document&&document.all,F=void 0===x&&void 0!==x?function(e){return "function"==typeof e||e===x}:function(e){return "function"==typeof e},M=function(e){return "object"==typeof e?null!==e:F(e)},U=function(e,t){return arguments.length<2?(n=d[e],F(n)?n:void 0):d[e]&&d[e][t];var n;},G=O({}.isPrototypeOf),B=d.navigator,H=B&&B.userAgent,$=H?String(H):"",Y=d.process,j=d.Deno,z=Y&&Y.versions||j&&j.version,V=z&&z.v8;V&&(u=(l=V.split("."))[0]>0&&l[0]<4?1:+(l[0]+l[1])),!u&&$&&(!(l=$.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=$.match(/Chrome\/(\d+)/))&&(u=+l[1]);var X=u,W=d.String,K=!!Object.getOwnPropertySymbols&&!p((function(){var e=Symbol("symbol detection");return !W(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&X&&X<41})),Z=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,q=Object,Q=Z?function(e){return "symbol"==typeof e}:function(e){var t=U("Symbol");return F(t)&&G(t.prototype,q(e))},J=String,ee=TypeError,te=function(e){if(F(e))return e;throw new ee(function(e){try{return J(e)}catch(e){return "Object"}}(e)+" is not a function")},ne=TypeError,ae=Object.defineProperty,re=function(e,t){try{ae(d,e,{value:t,configurable:!0,writable:!0});}catch(n){d[e]=t;}return t},ie=o((function(e){var t="__core-js_shared__",n=e.exports=d[t]||re(t,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),se=function(e,t){return ie[e]||(ie[e]=t||{})},oe=Object,le=function(e){return oe(k(e))},ue=O({}.hasOwnProperty),ce=Object.hasOwn||function(e,t){return ue(le(e),t)},de=0,pe=Math.random(),ge=O(1..toString),Ee=function(e){return "Symbol("+(void 0===e?"":e)+")_"+ge(++de+pe,36)},fe=d.Symbol,be=se("wks"),Se=Z?fe.for||fe:fe&&fe.withoutSetter||Ee,Te=function(e){return ce(be,e)||(be[e]=K&&ce(fe,e)?fe[e]:Se("Symbol."+e)),be[e]},he=TypeError,me=Te("toPrimitive"),Ne=function(e,t){if(!M(e)||Q(e))return e;var n,a,r=(n=e[me],D(n)?void 0:te(n));if(r){if(void 0===t&&(t="default"),a=b(r,e,t),!M(a)||Q(a))return a;throw new he("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,a;if("string"===t&&F(n=e.toString)&&!M(a=b(n,e)))return a;if(F(n=e.valueOf)&&!M(a=b(n,e)))return a;if("string"!==t&&F(n=e.toString)&&!M(a=b(n,e)))return a;throw new ne("Can't convert object to primitive value")}(e,t)},Ie=function(e){var t=Ne(e,"string");return Q(t)?t:t+""},Ae=d.document,Oe=M(Ae)&&M(Ae.createElement),Re=function(e){return Oe?Ae.createElement(e):{}},ye=!g&&!p((function(){return 7!==Object.defineProperty(Re("div"),"a",{get:function(){return 7}}).a})),Le=Object.getOwnPropertyDescriptor,Ce={f:g?Le:function(e,t){if(e=_(e),t=Ie(t),ye)try{return Le(e,t)}catch(e){}if(ce(e,t))return m(!b(h.f,e,t),e[t])}},ve=g&&p((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),we=String,De=TypeError,Pe=function(e){if(M(e))return e;throw new De(we(e)+" is not an object")},ke=TypeError,_e=Object.defineProperty,xe=Object.getOwnPropertyDescriptor,Fe="enumerable",Me="configurable",Ue="writable",Ge={f:g?ve?function(e,t,n){if(Pe(e),t=Ie(t),Pe(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ue in n&&!n[Ue]){var a=xe(e,t);a&&a[Ue]&&(e[t]=n.value,n={configurable:Me in n?n[Me]:a[Me],enumerable:Fe in n?n[Fe]:a[Fe],writable:!1});}return _e(e,t,n)}:_e:function(e,t,n){if(Pe(e),t=Ie(t),Pe(n),ye)try{return _e(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new ke("Accessors not supported");return "value"in n&&(e[t]=n.value),e}},Be=g?function(e,t,n){return Ge.f(e,t,m(1,n))}:function(e,t,n){return e[t]=n,e},He=Function.prototype,$e=g&&Object.getOwnPropertyDescriptor,Ye=ce(He,"name"),je={EXISTS:Ye,PROPER:Ye&&"something"===function(){}.name,CONFIGURABLE:Ye&&(!g||g&&$e(He,"name").configurable)},ze=O(Function.toString);F(ie.inspectSource)||(ie.inspectSource=function(e){return ze(e)});var Ve,Xe,We,Ke=ie.inspectSource,Ze=d.WeakMap,qe=F(Ze)&&/native code/.test(String(Ze)),Qe=se("keys"),Je=function(e){return Qe[e]||(Qe[e]=Ee(e))},et={},tt="Object already initialized",nt=d.TypeError,at=d.WeakMap;if(qe||ie.state){var rt=ie.state||(ie.state=new at);rt.get=rt.get,rt.has=rt.has,rt.set=rt.set,Ve=function(e,t){if(rt.has(e))throw new nt(tt);return t.facade=e,rt.set(e,t),t},Xe=function(e){return rt.get(e)||{}},We=function(e){return rt.has(e)};}else {var it=Je("state");et[it]=!0,Ve=function(e,t){if(ce(e,it))throw new nt(tt);return t.facade=e,Be(e,it,t),t},Xe=function(e){return ce(e,it)?e[it]:{}},We=function(e){return ce(e,it)};}var st={set:Ve,get:Xe,has:We,enforce:function(e){return We(e)?Xe(e):Ve(e,{})},getterFor:function(e){return function(t){var n;if(!M(t)||(n=Xe(t)).type!==e)throw new nt("Incompatible receiver, "+e+" required");return n}}},ot=o((function(e){var t=je.CONFIGURABLE,n=st.enforce,a=st.get,r=String,i=Object.defineProperty,s=O("".slice),o=O("".replace),l=O([].join),u=g&&!p((function(){return 8!==i((function(){}),"length",{value:8}).length})),c=String(String).split("String"),d=e.exports=function(e,a,d){"Symbol("===s(r(a),0,7)&&(a="["+o(r(a),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),d&&d.getter&&(a="get "+a),d&&d.setter&&(a="set "+a),(!ce(e,"name")||t&&e.name!==a)&&(g?i(e,"name",{value:a,configurable:!0}):e.name=a),u&&d&&ce(d,"arity")&&e.length!==d.arity&&i(e,"length",{value:d.arity});try{d&&ce(d,"constructor")&&d.constructor?g&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0);}catch(e){}var p=n(e);return ce(p,"source")||(p.source=l(c,"string"==typeof a?a:"")),e};Function.prototype.toString=d((function(){return F(this)&&a(this).source||Ke(this)}),"toString");})),lt=function(e,t,n,a){a||(a={});var r=a.enumerable,i=void 0!==a.name?a.name:t;if(F(n)&&ot(n,i,a),a.global)r?e[t]=n:re(t,n);else {try{a.unsafe?e[t]&&(r=!0):delete e[t];}catch(e){}r?e[t]=n:Ge.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable});}return e},ut=Math.ceil,ct=Math.floor,dt=Math.trunc||function(e){var t=+e;return (t>0?ct:ut)(t)},pt=function(e){var t=+e;return t!=t||0===t?0:dt(t)},gt=Math.max,Et=Math.min,ft=Math.min,bt=function(e){return t=e.length,(n=pt(t))>0?ft(n,9007199254740991):0;var t,n;},St=function(e){return function(t,n,a){var r=_(t),i=bt(r);if(0===i)return !e&&-1;var s,o=function(e,t){var n=pt(e);return n<0?gt(n+t,0):Et(n,t)}(a,i);if(e&&n!=n){for(;i>o;)if((s=r[o++])!=s)return !0}else for(;i>o;o++)if((e||o in r)&&r[o]===n)return e||o||0;return !e&&-1}},Tt={includes:St(!0),indexOf:St(!1)}.indexOf,ht=O([].push),mt=function(e,t){var n,a=_(e),r=0,i=[];for(n in a)!ce(et,n)&&ce(a,n)&&ht(i,n);for(;t.length>r;)ce(a,n=t[r++])&&(~Tt(i,n)||ht(i,n));return i},Nt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],It=Nt.concat("length","prototype"),At={f:Object.getOwnPropertyNames||function(e){return mt(e,It)}},Ot={f:Object.getOwnPropertySymbols},Rt=O([].concat),yt=U("Reflect","ownKeys")||function(e){var t=At.f(Pe(e)),n=Ot.f;return n?Rt(t,n(e)):t},Lt=function(e,t,n){for(var a=yt(t),r=Ge.f,i=Ce.f,s=0;s<a.length;s++){var o=a[s];ce(e,o)||n&&ce(n,o)||r(e,o,i(t,o));}},Ct=/#|\.prototype\./,vt=function(e,t){var n=Dt[wt(e)];return n===kt||n!==Pt&&(F(t)?p(t):!!t)},wt=vt.normalize=function(e){return String(e).replace(Ct,".").toLowerCase()},Dt=vt.data={},Pt=vt.NATIVE="N",kt=vt.POLYFILL="P",_t=vt,xt=Ce.f,Ft=function(e,t){var n,a,r,i,s,o=e.target,l=e.global,u=e.stat;if(n=l?d:u?d[o]||re(o,{}):d[o]&&d[o].prototype)for(a in t){if(i=t[a],r=e.dontCallGetSet?(s=xt(n,a))&&s.value:n[a],!_t(l?a:o+(u?".":"#")+a,e.forced)&&void 0!==r){if(typeof i==typeof r)continue;Lt(i,r);}(e.sham||r&&r.sham)&&Be(i,"sham",!0),lt(n,a,i,e);}},Mt={};Mt[Te("toStringTag")]="z";var Ut,Gt="[object z]"===String(Mt),Bt=Te("toStringTag"),Ht=Object,$t="Arguments"===L(function(){return arguments}()),Yt=Gt?L:function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Ht(e),Bt))?n:$t?L(t):"Object"===(a=L(t))&&F(t.callee)?"Arguments":a},jt=String,zt=function(e){if("Symbol"===Yt(e))throw new TypeError("Cannot convert a Symbol value to a string");return jt(e)},Vt=/"/g,Xt=O("".replace);Ft({target:"String",proto:!0,forced:(Ut="anchor",p((function(){var e=""[Ut]('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return t="a",n="name",a=e,r=zt(k(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+Xt(zt(a),Vt,"&quot;")+'"'),i+">"+r+"</"+t+">";var t,n,a,r,i;}}),"function"==typeof SuppressedError&&SuppressedError;var Wt=Gt?{}.toString:function(){return "[object "+Yt(this)+"]"};Gt||lt(Object.prototype,"toString",Wt,{unsafe:!0});var Kt=o((function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,a={},r={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 a,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var s in a={},n[i]=a,t)t.hasOwnProperty(s)&&(a[s]=e(t[s],n));return a;case"Array":return i=r.util.objId(t),n[i]?n[i]:(a=[],n[i]=a,t.forEach((function(t,r){a[r]=e(t,n);})),a);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement;}return "none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n);},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(a){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.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 a="no-"+t;e;){var r=e.classList;if(r.contains(t))return !0;if(r.contains(a))return !1;e=e.parentElement;}return !!n}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var i=(a=a||r.languages)[e],s={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var l in n)n.hasOwnProperty(l)&&(s[l]=n[l]);n.hasOwnProperty(o)||(s[o]=i[o]);}var u=a[e];return a[e]=s,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=s);})),s},DFS:function e(t,n,a,i){i=i||{};var s=r.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],a||o);var l=t[o],u=r.util.type(l);"Object"!==u||i[s(l)]?"Array"!==u||i[s(l)]||(i[s(l)]=!0,e(l,n,o,i)):(i[s(l)]=!0,e(l,n,null,i));}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t);},highlightAllUnder:function(e,t,n){var a={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",a),a.elements=Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)),r.hooks.run("before-all-elements-highlight",a);for(var i,s=0;i=a.elements[s++];)r.highlightElement(i,!0===t,a.callback);},highlightElement:function(t,n,a){var i=r.util.getLanguage(t),s=r.languages[i];r.util.setLanguage(t,i);var o=t.parentElement;o&&"pre"===o.nodeName.toLowerCase()&&r.util.setLanguage(o,i);var l={element:t,language:i,grammar:s,code:t.textContent};function u(e){l.highlightedCode=e,r.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,r.hooks.run("after-highlight",l),r.hooks.run("complete",l),a&&a.call(l.element);}if(r.hooks.run("before-sanity-check",l),(o=l.element.parentElement)&&"pre"===o.nodeName.toLowerCase()&&!o.hasAttribute("tabindex")&&o.setAttribute("tabindex","0"),!l.code)return r.hooks.run("complete",l),void(a&&a.call(l.element));if(r.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var c=new Worker(r.filename);c.onmessage=function(e){u(e.data);},c.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}));}else u(r.highlight(l.code,l.grammar,l.language));else u(r.util.encode(l.code));},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),i.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var a in n)t[a]=n[a];delete t.rest;}var r=new l;return u(r,r.head,e),o(e,r,t,r.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(r)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t);},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,i=0;a=n[i++];)a(t);}},Token:i};function i(e,t,n,a){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length;}function s(e,t,n,a){e.lastIndex=t;var r=e.exec(n);if(r&&a&&r[1]){var i=r[1].length;r.index+=i,r[0]=r[0].slice(i);}return r}function o(e,t,n,a,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var g=n[p];g=Array.isArray(g)?g:[g];for(var E=0;E<g.length;++E){if(d&&d.cause==p+","+E)return;var f=g[E],b=f.inside,S=!!f.lookbehind,T=!!f.greedy,h=f.alias;if(T&&!f.pattern.global){var m=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,m+"g");}for(var N=f.pattern||f,I=a.next,A=l;I!==t.tail&&!(d&&A>=d.reach);A+=I.value.length,I=I.next){var O=I.value;if(t.length>e.length)return;if(!(O instanceof i)){var R,y=1;if(T){if(!(R=s(N,A,e,S))||R.index>=e.length)break;var L=R.index,C=R.index+R[0].length,v=A;for(v+=I.value.length;L>=v;)v+=(I=I.next).value.length;if(A=v-=I.value.length,I.value instanceof i)continue;for(var w=I;w!==t.tail&&(v<C||"string"==typeof w.value);w=w.next)y++,v+=w.value.length;y--,O=e.slice(A,v),R.index-=A;}else if(!(R=s(N,0,O,S)))continue;L=R.index;var D=R[0],P=O.slice(0,L),k=O.slice(L+D.length),_=A+O.length;d&&_>d.reach&&(d.reach=_);var x=I.prev;if(P&&(x=u(t,x,P),A+=P.length),c(t,x,y),I=u(t,x,new i(p,b?r.tokenize(D,b):D,h,D)),k&&u(t,I,k),y>1){var F={cause:p+","+E,reach:_};o(e,t,n,I.prev,A,F),d&&F.reach>d.reach&&(d.reach=F.reach);}}}}}}function l(){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 u(e,t,n){var a=t.next,r={value:n,prev:t,next:a};return t.next=r,a.prev=r,e.length++,r}function c(e,t,n){for(var a=t.next,r=0;r<n&&a!==e.tail;r++)a=a.next;t.next=a,a.prev=t,e.length-=r;}if(e.Prism=r,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n);})),a}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(i.classes,s):i.classes.push(s)),r.hooks.run("wrap",i);var o="";for(var l in i.attributes)o+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,"&quot;")+'"';return "<"+i.tag+' class="'+i.classes.join(" ")+'"'+o+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),a=n.language,i=n.code,s=n.immediateClose;e.postMessage(r.highlight(i,r.languages[a],a)),s&&e.close();}),!1),r):r;var d=r.util.currentScript();function p(){r.manual||r.highlightAll();}if(d&&(r.filename=d.src,d.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var g=document.readyState;"loading"===g||"interactive"===g&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16);}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
21708
21708
  /**
21709
21709
  * Prism: Lightweight, robust, elegant syntax highlighting
21710
21710
  *
@@ -21712,7 +21712,7 @@
21712
21712
  * @author Lea Verou <https://lea.verou.me>
21713
21713
  * @namespace
21714
21714
  * @public
21715
- */e.exports&&(e.exports=t),void 0!==s&&(s.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"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},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 a={};a["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};r["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:r},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:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),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|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\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])*(?=\.(?:constructor|prototype))/,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:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),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]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),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",a="loading",r="loaded",i="pre[data-src]:not(["+n+'="'+r+'"]):not(['+n+'="'+a+'"])';t.hooks.add("before-highlightall",(function(e){e.selector+=", "+i;})),t.hooks.add("before-sanity-check",(function(s){var o=s.element;if(o.matches(i)){s.code="",o.setAttribute(n,a);var l=o.appendChild(document.createElement("CODE"));l.textContent="Loading…";var u=o.getAttribute("data-src"),c=s.language;if("none"===c){var d=(/\.(\w+)$/.exec(u)||[,"none"])[1];c=e[d]||d;}t.util.setLanguage(l,c),t.util.setLanguage(o,c);var p=t.plugins.autoloader;p&&p.loadLanguages(c),function(e,t,n){var a=new XMLHttpRequest;a.open("GET",e,!0),a.onreadystatechange=function(){4==a.readyState&&(a.status<400&&a.responseText?t(a.responseText):a.status>=400?n("✖ Error "+a.status+" while fetching file: "+a.statusText):n("✖ Error: File does not exist or is empty"));},a.send(null);}(u,(function(e){o.setAttribute(n,r);var a=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),a=t[2],r=t[3];return a?r?[n,Number(r)]:[n,void 0]:[n,n]}}(o.getAttribute("data-range"));if(a){var i=e.split(/\r\n?|\n/g),s=a[0],u=null==a[1]?i.length:a[1];s<0&&(s+=i.length),s=Math.max(0,Math.min(s-1,i.length)),u<0&&(u+=i.length),u=Math.max(0,Math.min(u,i.length)),e=i.slice(s,u).join("\n"),o.hasAttribute("data-start")||o.setAttribute("data-start",String(s+1));}l.textContent=e,t.highlightElement(l);}),(function(e){o.setAttribute(n,"failed"),l.textContent=e;}));}})),t.plugins.fileHighlight={highlight:function(e){for(var n,a=(e||document).querySelectorAll(i),r=0;n=a[r++];)t.highlightElement(n);}};var s=!1;t.fileHighlight=function(){s||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),s=!0),t.plugins.fileHighlight.highlight.apply(this,arguments);};}}();}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,r=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return a})).replace(/<SPREAD>/g,(function(){return r})),RegExp(e,t)}r=i(r).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>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,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),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""},o=function(t){for(var n=[],a=0;a<t.length;a++){var r=t[a],i=!1;if("string"!=typeof r&&("tag"===r.type&&r.content[0]&&"tag"===r.content[0].type?"</"===r.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===s(r.content[0].content[1])&&n.pop():"/>"===r.content[r.content.length-1].content||n.push({tagName:s(r.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===r.type&&"{"===r.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===r.type&&"}"===r.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof r)&&n.length>0&&0===n[n.length-1].openedBraces){var l=s(r);a<t.length-1&&("string"==typeof t[a+1]||"plain-text"===t[a+1].type)&&(l+=s(t[a+1]),t.splice(a+1,1)),a>0&&("string"==typeof t[a-1]||"plain-text"===t[a-1].type)&&(l=s(t[a-1])+l,t.splice(a-1,1),a--),t[a]=new e.Token("plain-text",l,null,l);}r.content&&"string"!=typeof r.content&&o(r.content);}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||o(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(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|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,delete e.languages.typescript["literal-property"];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"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},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 a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};a["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var r={};r[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:a},Prism.languages.insertBefore("markup","cdata",r);}}),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:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,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(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),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*\()/],a=/\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,r=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,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(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/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(?: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|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\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:a,operator:r,punctuation:i};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},o=[{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:s}},{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:s}}];e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:o,"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:a,operator:r,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g);}})),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},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,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(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|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",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),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],char:Prism.languages.c.char,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}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\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]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\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+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|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(?:False|None|True)\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?(?!\w)/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(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|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=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(/(^|[^\w.])/.source+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",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:a.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:a.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},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),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":a,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:a.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:a.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],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|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_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|uint16_t|uint32_t|uint64_t|uint8_t|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(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\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,a){return RegExp(t(e,n),a||"")}function a(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 r="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",s="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*{)",o="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return "\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var u=l(i),c=RegExp(l(r+" "+i+" "+s+" "+o)),d=l(i+" "+s+" "+o),p=l(r+" "+i+" "+o),g=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),E=a(/\((?:[^()]|<<self>>)*\)/.source,2),f=/@?\b[A-Za-z_]\w*\b/.source,b=t(/<<0>>(?:\s*<<1>>)?/.source,[f,g]),S=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,b]),T=/\[\s*(?:,\s*)*\]/.source,h=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,T]),m=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,E,T]),N=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[m]),I=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[N,S,T]),A={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,y=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[y]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:A},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[f,I]),lookbehind:!0,inside:A},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[f]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[u,b]),lookbehind:!0,inside:A},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:A},{pattern:n(/(\bwhere\s+)<<0>>/.source,[f]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[h]),lookbehind:!0,inside:A},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[I,p,f]),inside:A}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\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,[f]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[E]),lookbehind:!0,alias:"class-name",inside:A},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[I,S]),inside:A,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[I]),lookbehind:!0,inside:A,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[f,g]),inside:{function:n(/^<<0>>/.source,[f]),generic:{pattern:RegExp(g),alias:"class-name",inside:A}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,b,f,I,c.source,E,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,E]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(I),greedy:!0,inside:A},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 L=R+"|"+O,C=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[L]),v=a(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),D=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,w=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,v]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[D,w]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[D]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[v]),inside:e.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var P=/:[^}\r\n]+/.source,k=a(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),_=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[k,P]),x=a(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[L]),2),F=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[x,P]);function M(t,a){return {interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[a,P]),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,[_]),lookbehind:!0,greedy:!0,inside:M(_,k)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[F]),lookbehind:!0,greedy:!0,inside:M(F,x)}],char:{pattern:RegExp(O),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp;}(Prism),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)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\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)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,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},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},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(?:COL|_INSERT)?|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(?:ING|S)?|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(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|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|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",a=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+a),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+a+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),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(?:false|true)\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|isolated|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(?:false|true)\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},a={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}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};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+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{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:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|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|docker|docker-compose|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|java|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|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|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|sysctl|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|vcpkg|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;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\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 r=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=a.variable[1].inside,s=0;s<r.length;s++)i[r[s]]=e.languages.bash[r[s]];e.languages.sh=e.languages.bash,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 a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return a})),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:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+i+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+i+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(a),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,a=t.length;n<a;n++){var r=t[n];if("code"===r.type){var i=r.content[1],s=r.content[3];if(i&&s&&"code-language"===i.type&&"code-block"===s.type&&"string"==typeof i.content){var o=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase());s.alias?"string"==typeof s.alias?s.alias=[s.alias,l]:s.alias.push(l):s.alias=[l];}}else e(r.content);}}(e.tokens);})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",a=0,r=t.classes.length;a<r;a++){var i=t.classes[a],u=/language-(.+)/.exec(i);if(u){n=u[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(s,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n);var a=o[t];return a||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n));}));}}}));var s=RegExp(e.languages.markup.tag.pattern.source,"gi"),o={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown;}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},function(e){var t={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|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:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.groovy;}(Prism),Prism.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/};var An=["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 On(e){return "string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+On(t)}),0)}bn({global:!0,forced:d.globalThis!==d},{globalThis:d}),n.attr&&(i.default.fn.attr=n.attr);var Rn,yn=String,Ln=function(e){if("Symbol"===it(e))throw new TypeError("Cannot convert a Symbol value to a string");return yn(e)},Cn=function(){var e=oe(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},vn=d.RegExp,Dn=b((function(){var e=vn("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),wn=Dn||b((function(){return !vn("a","y").sticky})),Pn={BROKEN_CARET:Dn||b((function(){var e=vn("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:wn,UNSUPPORTED_Y:Dn},kn=Q&&!re?Object.defineProperties:function(e,t){oe(e);for(var n,a=zt(t),r=Sn(t),i=r.length,s=0;i>s;)Ce.f(e,n=r[s++],a[n]);return e},_n={f:kn},xn=ce("document","documentElement"),Fn="prototype",Mn="script",Un=Ye("IE_PROTO"),Gn=function(){},Bn=function(e){return "<"+Mn+">"+e+"</"+Mn+">"},Hn=function(e){e.write(Bn("")),e.close();var t=e.parentWindow.Object;return e=null,t},$n=function(){try{Rn=new ActiveXObject("htmlfile");}catch(e){}var e,t,n;$n="undefined"!=typeof document?document.domain&&Rn?Hn(Rn):(t=ne("iframe"),n="java"+Mn+":",t.style.display="none",xn.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Bn("document.F=Object")),e.close(),e.F):Hn(Rn);for(var a=en.length;a--;)delete $n[Fn][en[a]];return $n()};je[Un]=!0;var Yn,jn,zn=Object.create||function(e,t){var n;return null!==e?(Gn[Fn]=oe(e),n=new Gn,Gn[Fn]=null,n[Un]=e):n=$n(),void 0===t?n:_n.f(n,t)},Vn=d.RegExp,Xn=b((function(){var e=Vn(".","s");return !(e.dotAll&&e.test("\n")&&"s"===e.flags)})),Wn=d.RegExp,Kn=b((function(){var e=Wn("(?<a>b)","g");return "b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Zn=Ze.get,qn=f("native-string-replace",String.prototype.replace),Qn=RegExp.prototype.exec,Jn=Qn,ea=N("".charAt),ta=N("".indexOf),na=N("".replace),aa=N("".slice),ra=(jn=/b*/g,ue(Qn,Yn=/a/,"a"),ue(Qn,jn,"a"),0!==Yn.lastIndex||0!==jn.lastIndex),ia=Pn.BROKEN_CARET,sa=void 0!==/()??/.exec("")[1];(ra||sa||ia||Xn||Kn)&&(Jn=function(e){var t,n,a,r,i,s,o,l=this,u=Zn(l),c=Ln(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=ue(Jn,d,c),l.lastIndex=d.lastIndex,t;var p=u.groups,g=ia&&l.sticky,E=ue(Cn,l),f=l.source,b=0,S=c;if(g&&(E=na(E,"y",""),-1===ta(E,"g")&&(E+="g"),S=aa(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==ea(c,l.lastIndex-1))&&(f="(?: "+f+")",S=" "+S,b++),n=new RegExp("^(?:"+f+")",E)),sa&&(n=new RegExp("^"+f+"$(?!\\s)",E)),ra&&(a=l.lastIndex),r=ue(Qn,g?n:l,S),g?r?(r.input=aa(r.input,b),r[0]=aa(r[0],b),r.index=l.lastIndex,l.lastIndex+=r[0].length):l.lastIndex=0:ra&&r&&(l.lastIndex=l.global?r.index+r[0].length:a),sa&&r&&r.length>1&&ue(qn,r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0);})),r&&p)for(r.groups=s=zn(null),i=0;i<p.length;i++)s[(o=p[i])[0]]=r[o[1]];return r});bn({target:"RegExp",proto:!0,forced:/./.exec!==Jn},{exec:Jn});var oa=RegExp.prototype,la=Pe.PROPER,ua="toString",ca=RegExp.prototype,da=ca[ua],pa=b((function(){return "/a/b"!==da.call({source:"a",flags:"b"})})),ga=la&&da.name!==ua;(pa||ga)&&Qe(ca,ua,(function(){var e=oe(this),t=Ln(e.source),n=Ln(function(e){var t=e.flags;return void 0!==t||"flags"in oa||C(e,"flags")||!de(oa,e)?t:ue(Cn,e)}(e));return "/"+t+"/"+n}),{unsafe:!0});var Ea=function(){function e(){this.title=t.t("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,this.defaultCodeLang="";}return e.prototype.getOptions=function(e){var t=this,n=[],a=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===a?[]:a;n.push({text:"plain text",value:""}),r.forEach((function(e){var a=e.text,r=e.value;e.selected&&(t.defaultCodeLang=r),n.push({text:a,value:r});}));var i=this.getValue(e);return n.forEach((function(e){e.value===i?e.selected=!0:delete e.selected;})),n},e.prototype.isActive=function(e){return !1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return this.defaultCodeLang;if(!a.Element.isElement(t))return this.defaultCodeLang;var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return (void 0===r?[]:r).some((function(e){return e.value===n}))?n:this.defaultCodeLang},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,n){if(null!=this.getSelectCodeElem(e)){var r={language:n.toString()};a.Transforms.setNodes(e,r,{match:function(e){return t.DomEditor.checkNodeType(e,"code")}});}},e.prototype.getSelectCodeElem=function(e){var n=t.DomEditor.getSelectedNodeByType(e,"code");if(null==n)return null;var r=t.DomEditor.getParentNode(e,n);return a.Element.isElement(r)?"pre"!==r.type?null:n:null},e}();var fa={renderStyle:function(e,t){var n=e,a=t,r="";return An.forEach((function(e){n[e]&&(r=e);})),r&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t});}(a,r="token "+r),a},parseStyleHtml:function(e,n,r){var s=i.default(e);if(!a.Element.isElement(n))return n;if("code"!==t.DomEditor.getNodeType(n))return n;var o=n,l=s.attr("class")||"";return 0===l.indexOf("language-")?o.language=l.split("-")[1]||"":o.language=l.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Ea},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"},{text:"ABAP",value:"abap"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,a=void 0===n?"":n;return "<code "+(a?'class="language-'+a+'"':"")+">"+t+"</code>"}}]},ba=/"/g,Sa=N("".replace);bn({target:"String",proto:!0,forced:function(e){return b((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}("anchor")},{anchor:function(e){return t="a",n="name",a=e,r=Ln(O(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+Sa(Ln(a),ba,"&quot;")+'"'),i+">"+r+"</"+t+">";var t,n,a,r,i;}}),"function"==typeof SuppressedError&&SuppressedError;e.wangEditorCodeHighLightDecorate=function(e){var n,r,i,s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value);}catch(e){r={error:e};}finally{try{a&&!a.done&&(n=i.return)&&n.call(i);}finally{if(r)throw r.error}}return s}(e,2),o=s[0],l=s[1],u=[],c=function(e){if(!a.Text.isText(e))return null;var n=t.DomEditor.getParentNode(null,e);if(n&&"code"===t.DomEditor.getNodeType(n)){var r=t.DomEditor.getParentNode(null,n);if(r&&"pre"===t.DomEditor.getNodeType(r))return n}return null}(o);if(null==c)return u;var d=c.language,p=void 0===d?"":d;if(!p)return u;var g=function(e,t){if(!t)return [];var n=In.languages[t];return n?In.tokenize(e.text,n):[]}(o,p),E=0;try{for(var f=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return {next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(g),b=f.next();!b.done;b=f.next()){var S=b.value,T=E+On(S);"string"!=typeof S&&u.push(((i={})[S.type]=!0,i.anchor={path:l,offset:E},i.focus={path:l,offset:T},i)),E=T;}}catch(e){n={error:e};}finally{try{b&&!b.done&&(r=f.return)&&r.call(f);}finally{if(n)throw n.error}}return u},e.wangEditorCodeHighlightModule=fa,Object.defineProperty(e,"__esModule",{value:!0});}));
21715
+ */e.exports&&(e.exports=t),void 0!==s&&(s.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"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},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 a={};a["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};r["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:r},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:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),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|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\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])*(?=\.(?:constructor|prototype))/,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:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),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]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),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",a="loading",r="loaded",i="pre[data-src]:not(["+n+'="'+r+'"]):not(['+n+'="'+a+'"])';t.hooks.add("before-highlightall",(function(e){e.selector+=", "+i;})),t.hooks.add("before-sanity-check",(function(s){var o=s.element;if(o.matches(i)){s.code="",o.setAttribute(n,a);var l=o.appendChild(document.createElement("CODE"));l.textContent="Loading…";var u=o.getAttribute("data-src"),c=s.language;if("none"===c){var d=(/\.(\w+)$/.exec(u)||[,"none"])[1];c=e[d]||d;}t.util.setLanguage(l,c),t.util.setLanguage(o,c);var p=t.plugins.autoloader;p&&p.loadLanguages(c),function(e,t,n){var a=new XMLHttpRequest;a.open("GET",e,!0),a.onreadystatechange=function(){4==a.readyState&&(a.status<400&&a.responseText?t(a.responseText):a.status>=400?n("✖ Error "+a.status+" while fetching file: "+a.statusText):n("✖ Error: File does not exist or is empty"));},a.send(null);}(u,(function(e){o.setAttribute(n,r);var a=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),a=t[2],r=t[3];return a?r?[n,Number(r)]:[n,void 0]:[n,n]}}(o.getAttribute("data-range"));if(a){var i=e.split(/\r\n?|\n/g),s=a[0],u=null==a[1]?i.length:a[1];s<0&&(s+=i.length),s=Math.max(0,Math.min(s-1,i.length)),u<0&&(u+=i.length),u=Math.max(0,Math.min(u,i.length)),e=i.slice(s,u).join("\n"),o.hasAttribute("data-start")||o.setAttribute("data-start",String(s+1));}l.textContent=e,t.highlightElement(l);}),(function(e){o.setAttribute(n,"failed"),l.textContent=e;}));}})),t.plugins.fileHighlight={highlight:function(e){for(var n,a=(e||document).querySelectorAll(i),r=0;n=a[r++];)t.highlightElement(n);}};var s=!1;t.fileHighlight=function(){s||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),s=!0),t.plugins.fileHighlight.highlight.apply(this,arguments);};}}();}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,r=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return a})).replace(/<SPREAD>/g,(function(){return r})),RegExp(e,t)}r=i(r).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>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,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),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""},o=function(t){for(var n=[],a=0;a<t.length;a++){var r=t[a],i=!1;if("string"!=typeof r&&("tag"===r.type&&r.content[0]&&"tag"===r.content[0].type?"</"===r.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===s(r.content[0].content[1])&&n.pop():"/>"===r.content[r.content.length-1].content||n.push({tagName:s(r.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===r.type&&"{"===r.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===r.type&&"}"===r.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof r)&&n.length>0&&0===n[n.length-1].openedBraces){var l=s(r);a<t.length-1&&("string"==typeof t[a+1]||"plain-text"===t[a+1].type)&&(l+=s(t[a+1]),t.splice(a+1,1)),a>0&&("string"==typeof t[a-1]||"plain-text"===t[a-1].type)&&(l=s(t[a-1])+l,t.splice(a-1,1),a--),t[a]=new e.Token("plain-text",l,null,l);}r.content&&"string"!=typeof r.content&&o(r.content);}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||o(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(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|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,delete e.languages.typescript["literal-property"];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"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},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 a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};a["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var r={};r[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:a},Prism.languages.insertBefore("markup","cdata",r);}}),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:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,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(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),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*\()/],a=/\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,r=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,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(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/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(?: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|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\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:a,operator:r,punctuation:i};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},o=[{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:s}},{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:s}}];e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:o,"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:a,operator:r,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g);}})),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},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,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(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|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",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),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],char:Prism.languages.c.char,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}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\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]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\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+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|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(?:False|None|True)\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?(?!\w)/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(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|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=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(/(^|[^\w.])/.source+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",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:a.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:a.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},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),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":a,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:a.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:a.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],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|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_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|uint16_t|uint32_t|uint64_t|uint8_t|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(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\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,a){return RegExp(t(e,n),a||"")}function a(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 r="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",s="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*{)",o="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return "\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var u=l(i),c=RegExp(l(r+" "+i+" "+s+" "+o)),d=l(i+" "+s+" "+o),p=l(r+" "+i+" "+o),g=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),E=a(/\((?:[^()]|<<self>>)*\)/.source,2),f=/@?\b[A-Za-z_]\w*\b/.source,b=t(/<<0>>(?:\s*<<1>>)?/.source,[f,g]),S=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,b]),T=/\[\s*(?:,\s*)*\]/.source,h=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,T]),m=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,E,T]),N=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[m]),I=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[N,S,T]),A={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,y=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[y]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:A},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[f,I]),lookbehind:!0,inside:A},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[f]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[u,b]),lookbehind:!0,inside:A},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:A},{pattern:n(/(\bwhere\s+)<<0>>/.source,[f]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[h]),lookbehind:!0,inside:A},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[I,p,f]),inside:A}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\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,[f]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[E]),lookbehind:!0,alias:"class-name",inside:A},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[I,S]),inside:A,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[I]),lookbehind:!0,inside:A,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[f,g]),inside:{function:n(/^<<0>>/.source,[f]),generic:{pattern:RegExp(g),alias:"class-name",inside:A}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,b,f,I,c.source,E,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,E]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(I),greedy:!0,inside:A},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 L=R+"|"+O,C=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[L]),v=a(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),w=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,D=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,v]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[w,D]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[w]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[v]),inside:e.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var P=/:[^}\r\n]+/.source,k=a(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[C]),2),_=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[k,P]),x=a(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[L]),2),F=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[x,P]);function M(t,a){return {interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[a,P]),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,[_]),lookbehind:!0,greedy:!0,inside:M(_,k)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[F]),lookbehind:!0,greedy:!0,inside:M(F,x)}],char:{pattern:RegExp(O),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp;}(Prism),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)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\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)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,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},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},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(?:COL|_INSERT)?|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(?:ING|S)?|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(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|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|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",a=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+a),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+a+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),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(?:false|true)\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|isolated|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(?:false|true)\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},a={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}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};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+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{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:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|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|docker|docker-compose|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|java|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|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|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|sysctl|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|vcpkg|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;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\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 r=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=a.variable[1].inside,s=0;s<r.length;s++)i[r[s]]=e.languages.bash[r[s]];e.languages.sh=e.languages.bash,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 a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return a})),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:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+i+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+i+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(a),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,a=t.length;n<a;n++){var r=t[n];if("code"===r.type){var i=r.content[1],s=r.content[3];if(i&&s&&"code-language"===i.type&&"code-block"===s.type&&"string"==typeof i.content){var o=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase());s.alias?"string"==typeof s.alias?s.alias=[s.alias,l]:s.alias.push(l):s.alias=[l];}}else e(r.content);}}(e.tokens);})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",a=0,r=t.classes.length;a<r;a++){var i=t.classes[a],u=/language-(.+)/.exec(i);if(u){n=u[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(s,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n);var a=o[t];return a||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n));}));}}}));var s=RegExp(e.languages.markup.tag.pattern.source,"gi"),o={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown;}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},function(e){var t={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|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:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.groovy;}(Prism),Prism.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/};var Zt=["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 qt(e){return "string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+qt(t)}),0)}var Qt=Array.isArray||function(e){return "Array"===L(e)},Jt=TypeError,en=function(e){if(e>9007199254740991)throw Jt("Maximum allowed index exceeded");return e},tn=function(e,t,n){g?Ge.f(e,t,m(0,n)):e[t]=n;},nn=function(){},an=U("Reflect","construct"),rn=/^\s*(?:class|function)\b/,sn=O(rn.exec),on=!rn.test(nn),ln=function(e){if(!F(e))return !1;try{return an(nn,[],e),!0}catch(e){return !1}},un=function(e){if(!F(e))return !1;switch(Yt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return on||!!sn(rn,Ke(e))}catch(e){return !0}};un.sham=!0;var cn=!an||p((function(){var e;return ln(ln.call)||!ln(Object)||!ln((function(){e=!0;}))||e}))?un:ln,dn=Te("species"),pn=Array,gn=function(e,t){return new(function(e){var t;return Qt(e)&&(t=e.constructor,(cn(t)&&(t===pn||Qt(t.prototype))||M(t)&&null===(t=t[dn]))&&(t=void 0)),void 0===t?pn:t}(e))(0===t?0:t)},En=Te("species"),fn=Te("isConcatSpreadable"),bn=X>=51||!p((function(){var e=[];return e[fn]=!1,e.concat()[0]!==e})),Sn=function(e){if(!M(e))return !1;var t=e[fn];return void 0!==t?!!t:Qt(e)},Tn=!bn||!function(e){return X>=51||!p((function(){var t=[];return (t.constructor={})[En]=function(){return {foo:1}},1!==t[e](Boolean).foo}))}("concat");Ft({target:"Array",proto:!0,arity:1,forced:Tn},{concat:function(e){var t,n,a,r,i,s=le(this),o=gn(s,0),l=0;for(t=-1,a=arguments.length;t<a;t++)if(Sn(i=-1===t?s:arguments[t]))for(r=bt(i),en(l+r),n=0;n<r;n++,l++)n in i&&tn(o,l,i[n]);else en(l+1),tn(o,l++,i);return o.length=l,o}});var hn={type:"code",elemToHtml:function(e,t){var n=e.language,a=void 0===n?"":n,r=a?'class="language-'.concat(a,'"'):"";return "<code ".concat(r,">").concat(t,"</code>")}};var mn,Nn=function(){var e=Pe(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},In=d.RegExp,An=p((function(){var e=In("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),On=An||p((function(){return !In("a","y").sticky})),Rn={BROKEN_CARET:An||p((function(){var e=In("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:On,UNSUPPORTED_Y:An},yn=Object.keys||function(e){return mt(e,Nt)},Ln=g&&!ve?Object.defineProperties:function(e,t){Pe(e);for(var n,a=_(t),r=yn(t),i=r.length,s=0;i>s;)Ge.f(e,n=r[s++],a[n]);return e},Cn={f:Ln},vn=U("document","documentElement"),wn="prototype",Dn="script",Pn=Je("IE_PROTO"),kn=function(){},_n=function(e){return "<"+Dn+">"+e+"</"+Dn+">"},xn=function(e){e.write(_n("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fn=function(){try{mn=new ActiveXObject("htmlfile");}catch(e){}var e,t,n;Fn="undefined"!=typeof document?document.domain&&mn?xn(mn):(t=Re("iframe"),n="java"+Dn+":",t.style.display="none",vn.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(_n("document.F=Object")),e.close(),e.F):xn(mn);for(var a=Nt.length;a--;)delete Fn[wn][Nt[a]];return Fn()};et[Pn]=!0;var Mn,Un,Gn=Object.create||function(e,t){var n;return null!==e?(kn[wn]=Pe(e),n=new kn,kn[wn]=null,n[Pn]=e):n=Fn(),void 0===t?n:Cn.f(n,t)},Bn=d.RegExp,Hn=p((function(){var e=Bn(".","s");return !(e.dotAll&&e.test("\n")&&"s"===e.flags)})),$n=d.RegExp,Yn=p((function(){var e=$n("(?<a>b)","g");return "b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),jn=st.get,zn=se("native-string-replace",String.prototype.replace),Vn=RegExp.prototype.exec,Xn=Vn,Wn=O("".charAt),Kn=O("".indexOf),Zn=O("".replace),qn=O("".slice),Qn=(Un=/b*/g,b(Vn,Mn=/a/,"a"),b(Vn,Un,"a"),0!==Mn.lastIndex||0!==Un.lastIndex),Jn=Rn.BROKEN_CARET,ea=void 0!==/()??/.exec("")[1];(Qn||ea||Jn||Hn||Yn)&&(Xn=function(e){var t,n,a,r,i,s,o,l=this,u=jn(l),c=zt(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=b(Xn,d,c),l.lastIndex=d.lastIndex,t;var p=u.groups,g=Jn&&l.sticky,E=b(Nn,l),f=l.source,S=0,T=c;if(g&&(E=Zn(E,"y",""),-1===Kn(E,"g")&&(E+="g"),T=qn(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==Wn(c,l.lastIndex-1))&&(f="(?: "+f+")",T=" "+T,S++),n=new RegExp("^(?:"+f+")",E)),ea&&(n=new RegExp("^"+f+"$(?!\\s)",E)),Qn&&(a=l.lastIndex),r=b(Vn,g?n:l,T),g?r?(r.input=qn(r.input,S),r[0]=qn(r[0],S),r.index=l.lastIndex,l.lastIndex+=r[0].length):l.lastIndex=0:Qn&&r&&(l.lastIndex=l.global?r.index+r[0].length:a),ea&&r&&r.length>1&&b(zn,r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0);})),r&&p)for(r.groups=s=Gn(null),i=0;i<p.length;i++)s[(o=p[i])[0]]=r[o[1]];return r});Ft({target:"RegExp",proto:!0,forced:/./.exec!==Xn},{exec:Xn});var ta=RegExp.prototype,na=je.PROPER,aa="toString",ra=RegExp.prototype,ia=ra[aa],sa=p((function(){return "/a/b"!==ia.call({source:"a",flags:"b"})})),oa=na&&ia.name!==aa;(sa||oa)&&lt(ra,aa,(function(){var e=Pe(this),t=zt(e.source),n=zt(function(e){var t=e.flags;return void 0!==t||"flags"in ta||ce(e,"flags")||!G(ta,e)?t:b(Nn,e)}(e));return "/"+t+"/"+n}),{unsafe:!0});var la={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},ua=Re("span").classList,ca=ua&&ua.constructor&&ua.constructor.prototype,da=ca===Object.prototype?void 0:ca,pa=function(e){if("Function"===L(e))return O(e)},ga=pa(pa.bind),Ea=O([].push),fa=function(e){var t=1===e,n=2===e,a=3===e,r=4===e,i=6===e,s=7===e,o=5===e||i;return function(l,u,c,d){for(var p,g,f=le(l),b=w(f),S=bt(b),T=function(e,t){return te(e),void 0===t?e:E?ga(e,t):function(){return e.apply(t,arguments)}}(u,c),h=0,m=d||gn,N=t?m(l,S):n||s?m(l,0):void 0;S>h;h++)if((o||h in b)&&(g=T(p=b[h],h,f),e))if(t)N[h]=g;else if(g)switch(e){case 3:return !0;case 5:return p;case 6:return h;case 2:Ea(N,p);}else switch(e){case 4:return !1;case 7:Ea(N,p);}return i?-1:a||r?r:N}},ba={forEach:fa(0),map:fa(1),filter:fa(2),some:fa(3),every:fa(4),find:fa(5),findIndex:fa(6),filterReject:fa(7)}.forEach,Sa=function(e,t){var n=[][e];return !!n&&p((function(){n.call(null,t||function(){return 1},1);}))}("forEach"),Ta=Sa?[].forEach:function(e){return ba(this,e,arguments.length>1?arguments[1]:void 0)},ha=function(e){if(e&&e.forEach!==Ta)try{Be(e,"forEach",Ta);}catch(t){e.forEach=Ta;}};for(var ma in la)la[ma]&&ha(d[ma]&&d[ma].prototype);ha(da);var Na=function(){function e(){this.title=t.t("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,this.defaultCodeLang="";}return e.prototype.getOptions=function(e){var t=this,n=[],a=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===a?[]:a;n.push({text:"plain text",value:""}),r.forEach((function(e){var a=e.text,r=e.value;e.selected&&(t.defaultCodeLang=r),n.push({text:a,value:r});}));var i=this.getValue(e);return n.forEach((function(e){e.value===i?e.selected=!0:delete e.selected;})),n},e.prototype.isActive=function(e){return !1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return this.defaultCodeLang;if(!n.Element.isElement(t))return this.defaultCodeLang;var a=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return (void 0===r?[]:r).some((function(e){return e.value===a}))?a:this.defaultCodeLang},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,a){if(null!=this.getSelectCodeElem(e)){var r={language:a.toString()};n.Transforms.setNodes(e,r,{match:function(e){return t.DomEditor.checkNodeType(e,"code")}});}},e.prototype.getSelectCodeElem=function(e){var a=t.DomEditor.getSelectedNodeByType(e,"code");if(null==a)return null;var r=t.DomEditor.getParentNode(e,a);return n.Element.isElement(r)?"pre"!==r.type?null:a:null},e}(),Ia={key:"codeSelectLang",factory:function(){return new Na},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"},{text:"ABAP",value:"abap"}]}};Ft({global:!0,forced:d.globalThis!==d},{globalThis:d}),a.attr&&(i.default.fn.attr=a.attr);var Aa=Object.assign,Oa=Object.defineProperty,Ra=O([].concat),ya=!Aa||p((function(){if(g&&1!==Aa({b:1},Aa(Oa({},"a",{enumerable:!0,get:function(){Oa(this,"b",{value:3,enumerable:!1});}}),{b:2})).b)return !0;var e={},t={},n=Symbol("assign detection"),a="abcdefghijklmnopqrst";return e[n]=7,a.split("").forEach((function(e){t[e]=e;})),7!==Aa({},e)[n]||yn(Aa({},t)).join("")!==a}))?function(e,t){for(var n=le(e),a=arguments.length,r=1,i=Ot.f,s=h.f;a>r;)for(var o,l=w(arguments[r++]),u=i?Ra(yn(l),i(l)):yn(l),c=u.length,d=0;c>d;)o=u[d++],g&&!b(s,l,o)||(n[o]=l[o]);return n}:Aa;Ft({target:"Object",stat:!0,arity:2,forced:Object.assign!==ya},{assign:ya});var La={renderStyle:function(e,t){var n=e,a=t,r="";return Zt.forEach((function(e){n[e]&&(r=e);})),r&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t});}(a,r="token ".concat(r)),a},parseStyleHtml:function(e,a,r){var s=i.default(e);if(!n.Element.isElement(a))return a;if("code"!==t.DomEditor.getNodeType(a))return a;var o=a,l=s.attr("class")||"";return 0===l.indexOf("language-")?o.language=l.split("-")[1]||"":o.language=l.toLowerCase(),o},menus:[Ia],elemsToHtml:[hn]};e.wangEditorCodeHighLightDecorate=function(e){var a,r,i,s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value);}catch(e){r={error:e};}finally{try{a&&!a.done&&(n=i.return)&&n.call(i);}finally{if(r)throw r.error}}return s}(e,2),o=s[0],l=s[1],u=[],c=function(e){if(!n.Text.isText(e))return null;var a=t.DomEditor.getParentNode(null,e);if(a&&"code"===t.DomEditor.getNodeType(a)){var r=t.DomEditor.getParentNode(null,a);if(r&&"pre"===t.DomEditor.getNodeType(r))return a}return null}(o);if(null==c)return u;var d=c.language,p=void 0===d?"":d;if(!p)return u;var g=function(e,t){if(!t)return [];var n=Kt.languages[t];return n?Kt.tokenize(e.text,n):[]}(o,p),E=0;try{for(var f=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return {next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(g),b=f.next();!b.done;b=f.next()){var S=b.value,T=E+qt(S);"string"!=typeof S&&u.push(((i={})[S.type]=!0,i.anchor={path:l,offset:E},i.focus={path:l,offset:T},i)),E=T;}}catch(e){a={error:e};}finally{try{b&&!b.done&&(r=f.return)&&r.call(f);}finally{if(a)throw a.error}}return u},e.wangEditorCodeHighlightModule=La,Object.defineProperty(e,"__esModule",{value:!0});}));
21716
21716
 
21717
21717
  });
21718
21718